primereact 9.0.0-beta.1 → 9.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +69 -50
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +1 -1
- package/accordion/accordion.esm.js +70 -51
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +69 -50
- package/accordion/accordion.min.js +1 -1
- package/accordion/package.json +2 -1
- package/api/api.cjs.js +21 -19
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +1 -1
- package/api/api.esm.js +21 -19
- package/api/api.esm.min.js +1 -1
- package/api/api.js +21 -19
- package/api/api.min.js +1 -1
- package/api/package.json +2 -1
- package/autocomplete/autocomplete.cjs.js +80 -73
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +1 -1
- package/autocomplete/autocomplete.esm.js +81 -74
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +80 -73
- package/autocomplete/autocomplete.min.js +1 -1
- package/autocomplete/package.json +2 -1
- package/avatar/avatar.cjs.js +29 -22
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.esm.js +29 -22
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +29 -22
- package/avatar/avatar.min.js +1 -1
- package/avatar/package.json +2 -1
- package/avatargroup/avatargroup.cjs.js +18 -7
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.d.ts +1 -1
- package/avatargroup/avatargroup.esm.js +18 -7
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +18 -7
- package/avatargroup/avatargroup.min.js +1 -1
- package/avatargroup/package.json +2 -1
- package/badge/badge.cjs.js +21 -10
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +1 -1
- package/badge/badge.esm.js +21 -10
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +21 -10
- package/badge/badge.min.js +1 -1
- package/badge/package.json +2 -1
- package/blockui/blockui.cjs.js +30 -23
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +1 -1
- package/blockui/blockui.esm.js +31 -24
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +30 -23
- package/blockui/blockui.min.js +1 -1
- package/blockui/package.json +2 -1
- package/breadcrumb/breadcrumb.cjs.js +21 -10
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +1 -1
- package/breadcrumb/breadcrumb.esm.js +21 -10
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +21 -10
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/breadcrumb/package.json +2 -1
- package/button/button.cjs.js +27 -16
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +27 -16
- package/button/button.esm.min.js +1 -1
- package/button/button.js +27 -16
- package/button/button.min.js +1 -1
- package/button/package.json +2 -1
- package/calendar/calendar.cjs.js +104 -97
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.esm.js +105 -98
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +104 -97
- package/calendar/calendar.min.js +1 -1
- package/calendar/package.json +2 -1
- package/card/card.cjs.js +23 -12
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +1 -1
- package/card/card.esm.js +23 -12
- package/card/card.esm.min.js +1 -1
- package/card/card.js +23 -12
- package/card/card.min.js +1 -1
- package/card/package.json +2 -1
- package/carousel/carousel.cjs.js +39 -32
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +1 -1
- package/carousel/carousel.esm.js +40 -33
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +39 -32
- package/carousel/carousel.min.js +1 -1
- package/carousel/package.json +2 -1
- package/cascadeselect/cascadeselect.cjs.js +46 -39
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +1 -1
- package/cascadeselect/cascadeselect.esm.js +47 -40
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +46 -39
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/cascadeselect/package.json +2 -1
- package/chart/chart.cjs.js +25 -14
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +1 -1
- package/chart/chart.esm.js +25 -14
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +25 -14
- package/chart/chart.min.js +1 -1
- package/chart/package.json +2 -1
- package/checkbox/checkbox.cjs.js +38 -31
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +2 -2
- package/checkbox/checkbox.esm.js +39 -32
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +38 -31
- package/checkbox/checkbox.min.js +1 -1
- package/checkbox/package.json +2 -1
- package/chip/chip.cjs.js +29 -22
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +1 -1
- package/chip/chip.esm.js +29 -22
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +29 -22
- package/chip/chip.min.js +1 -1
- package/chip/package.json +2 -1
- package/chips/chips.cjs.js +44 -37
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +1 -1
- package/chips/chips.esm.js +44 -37
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +44 -37
- package/chips/chips.min.js +1 -1
- package/chips/package.json +2 -1
- package/colorpicker/colorpicker.cjs.js +39 -32
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +1 -1
- package/colorpicker/colorpicker.esm.js +40 -33
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +39 -32
- package/colorpicker/colorpicker.min.js +1 -1
- package/colorpicker/package.json +2 -1
- package/column/column.cjs.js +0 -79
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +1 -1
- package/column/column.esm.js +0 -79
- package/column/column.esm.min.js +1 -1
- package/column/column.js +6 -85
- package/column/column.min.js +1 -1
- package/column/package.json +2 -1
- package/columngroup/columngroup.cjs.js +0 -3
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.d.ts +1 -1
- package/columngroup/columngroup.esm.js +0 -3
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +6 -9
- package/columngroup/columngroup.min.js +1 -1
- package/columngroup/package.json +2 -1
- package/confirmdialog/confirmdialog.cjs.js +35 -28
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +1 -1
- package/confirmdialog/confirmdialog.esm.js +36 -29
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +35 -28
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmdialog/package.json +2 -1
- package/confirmpopup/confirmpopup.cjs.js +39 -32
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +1 -1
- package/confirmpopup/confirmpopup.esm.js +40 -33
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +39 -32
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/confirmpopup/package.json +2 -1
- package/contextmenu/contextmenu.cjs.js +29 -22
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +2 -2
- package/contextmenu/contextmenu.esm.js +30 -23
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +29 -22
- package/contextmenu/contextmenu.min.js +1 -1
- package/contextmenu/package.json +2 -1
- package/core/core.js +1663 -1010
- package/core/core.min.js +18 -18
- package/csstransition/csstransition.cjs.js +15 -4
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.d.ts +1 -1
- package/csstransition/csstransition.esm.js +15 -4
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +15 -4
- package/csstransition/csstransition.min.js +1 -1
- package/csstransition/package.json +2 -1
- package/datascroller/datascroller.cjs.js +33 -26
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +1 -1
- package/datascroller/datascroller.esm.js +33 -26
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +33 -26
- package/datascroller/datascroller.min.js +1 -1
- package/datascroller/package.json +2 -1
- package/datatable/datatable.cjs.js +360 -218
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +26 -11
- package/datatable/datatable.esm.js +361 -219
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +361 -219
- package/datatable/datatable.min.js +1 -1
- package/datatable/package.json +2 -1
- package/dataview/dataview.cjs.js +69 -52
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +1 -1
- package/dataview/dataview.esm.js +69 -52
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +69 -52
- package/dataview/dataview.min.js +1 -1
- package/dataview/package.json +2 -1
- package/deferredcontent/deferredcontent.cjs.js +19 -12
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.d.ts +1 -1
- package/deferredcontent/deferredcontent.esm.js +19 -12
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +19 -12
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/deferredcontent/package.json +2 -1
- package/dialog/dialog.cjs.js +63 -56
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +1 -1
- package/dialog/dialog.esm.js +64 -57
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +63 -56
- package/dialog/dialog.min.js +1 -1
- package/dialog/package.json +2 -1
- package/divider/divider.cjs.js +21 -10
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.d.ts +1 -1
- package/divider/divider.esm.js +21 -10
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +21 -10
- package/divider/divider.min.js +1 -1
- package/divider/package.json +2 -1
- package/dock/dock.cjs.js +26 -19
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +1 -1
- package/dock/dock.esm.js +26 -19
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +26 -19
- package/dock/dock.min.js +1 -1
- package/dock/package.json +2 -1
- package/dropdown/dropdown.cjs.js +77 -70
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +1 -1
- package/dropdown/dropdown.esm.js +78 -71
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +77 -70
- package/dropdown/dropdown.min.js +1 -1
- package/dropdown/package.json +2 -1
- package/editor/editor.cjs.js +31 -20
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +1 -1
- package/editor/editor.esm.js +32 -21
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +31 -20
- package/editor/editor.min.js +1 -1
- package/editor/package.json +2 -1
- package/fieldset/fieldset.cjs.js +29 -22
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +1 -1
- package/fieldset/fieldset.esm.js +30 -23
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +29 -22
- package/fieldset/fieldset.min.js +1 -1
- package/fieldset/package.json +2 -1
- package/fileupload/fileupload.cjs.js +83 -76
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +1 -1
- package/fileupload/fileupload.esm.js +83 -76
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +83 -76
- package/fileupload/fileupload.min.js +1 -1
- package/fileupload/package.json +2 -1
- package/galleria/galleria.cjs.js +48 -41
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +1 -1
- package/galleria/galleria.esm.js +49 -42
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +48 -41
- package/galleria/galleria.min.js +1 -1
- package/galleria/package.json +2 -1
- package/hooks/hooks.cjs.js +577 -146
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +81 -0
- package/hooks/hooks.esm.js +557 -133
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +869 -438
- package/hooks/hooks.min.js +1 -1
- package/hooks/package.json +2 -1
- package/image/image.cjs.js +32 -25
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +1 -1
- package/image/image.esm.js +33 -26
- package/image/image.esm.min.js +1 -1
- package/image/image.js +32 -25
- package/image/image.min.js +1 -1
- package/image/package.json +2 -1
- package/inplace/inplace.cjs.js +51 -37
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.d.ts +1 -1
- package/inplace/inplace.esm.js +51 -37
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +51 -37
- package/inplace/inplace.min.js +1 -1
- package/inplace/package.json +2 -1
- package/inputmask/inputmask.cjs.js +44 -41
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +45 -42
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +44 -41
- package/inputmask/inputmask.min.js +1 -1
- package/inputmask/package.json +2 -1
- package/inputnumber/inputnumber.cjs.js +67 -60
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +1 -1
- package/inputnumber/inputnumber.esm.js +68 -61
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +67 -60
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputnumber/package.json +2 -1
- package/inputswitch/inputswitch.cjs.js +34 -27
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +2 -2
- package/inputswitch/inputswitch.esm.js +35 -28
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +34 -27
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputswitch/package.json +2 -1
- package/inputtext/inputtext.cjs.js +23 -12
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/inputtext/inputtext.esm.js +23 -12
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +23 -12
- package/inputtext/inputtext.min.js +1 -1
- package/inputtext/package.json +2 -1
- package/inputtextarea/inputtextarea.cjs.js +27 -16
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +1 -1
- package/inputtextarea/inputtextarea.esm.js +27 -16
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +27 -16
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/inputtextarea/package.json +2 -1
- package/keyfilter/keyfilter.cjs.js +1 -3
- package/keyfilter/keyfilter.esm.js +1 -3
- package/keyfilter/keyfilter.js +1 -3
- package/keyfilter/package.json +2 -1
- package/knob/knob.cjs.js +36 -29
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +1 -1
- package/knob/knob.esm.js +36 -29
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +36 -29
- package/knob/knob.min.js +1 -1
- package/knob/package.json +2 -1
- package/listbox/listbox.cjs.js +53 -46
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +1 -1
- package/listbox/listbox.esm.js +53 -46
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +53 -46
- package/listbox/listbox.min.js +1 -1
- package/listbox/package.json +2 -1
- package/megamenu/megamenu.cjs.js +25 -18
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +1 -1
- package/megamenu/megamenu.esm.js +26 -19
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +25 -18
- package/megamenu/megamenu.min.js +1 -1
- package/megamenu/package.json +2 -1
- package/mention/mention.cjs.js +71 -53
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +1 -1
- package/mention/mention.esm.js +71 -53
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +71 -53
- package/mention/mention.min.js +1 -1
- package/mention/package.json +2 -1
- package/menu/menu.cjs.js +29 -22
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +1 -1
- package/menu/menu.esm.js +30 -23
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +29 -22
- package/menu/menu.min.js +1 -1
- package/menu/package.json +2 -1
- package/menubar/menubar.cjs.js +24 -17
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +1 -1
- package/menubar/menubar.esm.js +25 -18
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +24 -17
- package/menubar/menubar.min.js +1 -1
- package/menubar/package.json +2 -1
- package/menuitem/package.json +2 -1
- package/message/message.cjs.js +23 -12
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +1 -1
- package/message/message.esm.js +23 -12
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -12
- package/message/message.min.js +1 -1
- package/message/package.json +2 -1
- package/messages/messages.cjs.js +24 -17
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +1 -1
- package/messages/messages.esm.js +25 -18
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +24 -17
- package/messages/messages.min.js +1 -1
- package/messages/package.json +2 -1
- package/multiselect/multiselect.cjs.js +116 -98
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +1 -1
- package/multiselect/multiselect.esm.js +117 -99
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +116 -98
- package/multiselect/multiselect.min.js +1 -1
- package/multiselect/package.json +2 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +39 -28
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +5 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +40 -29
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +39 -28
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/multistatecheckbox/package.json +2 -1
- package/orderlist/orderlist.cjs.js +37 -30
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +1 -1
- package/orderlist/orderlist.esm.js +37 -30
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +38 -31
- package/orderlist/orderlist.min.js +1 -1
- package/orderlist/package.json +2 -1
- package/organizationchart/organizationchart.cjs.js +28 -21
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +1 -1
- package/organizationchart/organizationchart.esm.js +29 -22
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +28 -21
- package/organizationchart/organizationchart.min.js +1 -1
- package/organizationchart/package.json +2 -1
- package/overlaypanel/overlaypanel.cjs.js +29 -22
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +1 -1
- package/overlaypanel/overlaypanel.esm.js +30 -23
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +29 -22
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlaypanel/package.json +2 -1
- package/overlayservice/overlayservice.d.ts +1 -1
- package/overlayservice/package.json +2 -1
- package/package.json +2 -2
- package/paginator/package.json +2 -1
- package/paginator/paginator.cjs.js +184 -97
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +1 -1
- package/paginator/paginator.esm.js +184 -97
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +184 -97
- package/paginator/paginator.min.js +1 -1
- package/panel/package.json +2 -1
- package/panel/panel.cjs.js +32 -25
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +2 -2
- package/panel/panel.esm.js +32 -25
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +32 -25
- package/panel/panel.min.js +1 -1
- package/panelmenu/package.json +2 -1
- package/panelmenu/panelmenu.cjs.js +24 -17
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +2 -2
- package/panelmenu/panelmenu.esm.js +25 -18
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +24 -17
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/package.json +2 -1
- package/password/password.cjs.js +46 -39
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +46 -39
- package/password/password.esm.min.js +1 -1
- package/password/password.js +46 -39
- package/password/password.min.js +1 -1
- package/picklist/package.json +2 -1
- package/picklist/picklist.cjs.js +57 -50
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +1 -1
- package/picklist/picklist.esm.js +58 -51
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +57 -50
- package/picklist/picklist.min.js +1 -1
- package/portal/package.json +2 -1
- package/portal/portal.cjs.js +22 -15
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +23 -16
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +22 -15
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +4356 -2992
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4350 -2991
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4356 -2992
- package/primereact.all.min.js +1 -1
- package/progressbar/package.json +2 -1
- package/progressbar/progressbar.cjs.js +26 -15
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.d.ts +1 -1
- package/progressbar/progressbar.esm.js +26 -15
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +26 -15
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/package.json +2 -1
- package/progressspinner/progressspinner.cjs.js +22 -11
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.d.ts +1 -1
- package/progressspinner/progressspinner.esm.js +22 -11
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +22 -11
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/package.json +2 -1
- package/radiobutton/radiobutton.cjs.js +32 -25
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +1 -1
- package/radiobutton/radiobutton.esm.js +32 -25
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +32 -25
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/package.json +2 -1
- package/rating/rating.cjs.js +33 -22
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +1 -1
- package/rating/rating.esm.js +33 -22
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +33 -22
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +574 -574
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +2 -0
- package/resources/themes/arya-green/theme.css +2 -0
- package/resources/themes/arya-orange/theme.css +2 -0
- package/resources/themes/arya-purple/theme.css +2 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +3 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +3 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +3 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +3 -1
- package/resources/themes/fluent-light/theme.css +3 -1
- package/resources/themes/lara-dark-blue/theme.css +2 -0
- package/resources/themes/lara-dark-indigo/theme.css +2 -0
- package/resources/themes/lara-dark-purple/theme.css +2 -0
- package/resources/themes/lara-dark-teal/theme.css +2 -0
- package/resources/themes/lara-light-blue/theme.css +2 -0
- package/resources/themes/lara-light-indigo/theme.css +2 -0
- package/resources/themes/lara-light-purple/theme.css +2 -0
- package/resources/themes/lara-light-teal/theme.css +2 -0
- package/resources/themes/luna-amber/theme.css +3 -1
- package/resources/themes/luna-blue/theme.css +3 -1
- package/resources/themes/luna-green/theme.css +3 -1
- package/resources/themes/luna-pink/theme.css +3 -1
- package/resources/themes/md-dark-deeppurple/theme.css +3 -1
- package/resources/themes/md-dark-indigo/theme.css +3 -1
- package/resources/themes/md-light-deeppurple/theme.css +3 -1
- package/resources/themes/md-light-indigo/theme.css +3 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-dark-indigo/theme.css +3 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-light-indigo/theme.css +3 -1
- package/resources/themes/mira/theme.css +3 -1
- package/resources/themes/nano/theme.css +3 -1
- package/resources/themes/nova/theme.css +3 -1
- package/resources/themes/nova-accent/theme.css +3 -1
- package/resources/themes/nova-alt/theme.css +3 -1
- package/resources/themes/rhea/theme.css +3 -1
- package/resources/themes/saga-blue/theme.css +3 -1
- package/resources/themes/saga-green/theme.css +3 -1
- package/resources/themes/saga-orange/theme.css +3 -1
- package/resources/themes/saga-purple/theme.css +3 -1
- package/resources/themes/soho-dark/theme.css +3 -1
- package/resources/themes/soho-light/theme.css +3 -1
- package/resources/themes/vela-blue/theme.css +3 -1
- package/resources/themes/vela-green/theme.css +3 -1
- package/resources/themes/vela-orange/theme.css +3 -1
- package/resources/themes/vela-purple/theme.css +3 -1
- package/resources/themes/viva-dark/theme.css +3 -1
- package/resources/themes/viva-light/theme.css +3 -1
- package/ripple/package.json +2 -1
- package/ripple/ripple.cjs.js +0 -3
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.d.ts +1 -1
- package/ripple/ripple.esm.js +0 -3
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +0 -3
- package/ripple/ripple.min.js +1 -1
- package/row/package.json +2 -1
- package/row/row.cjs.js +21 -7
- package/row/row.cjs.min.js +1 -1
- package/row/row.d.ts +1 -1
- package/row/row.esm.js +21 -7
- package/row/row.esm.min.js +1 -1
- package/row/row.js +21 -7
- package/row/row.min.js +1 -1
- package/scrollpanel/package.json +2 -1
- package/scrollpanel/scrollpanel.cjs.js +19 -8
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.d.ts +1 -1
- package/scrollpanel/scrollpanel.esm.js +19 -8
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +19 -8
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/package.json +2 -1
- package/scrolltop/scrolltop.cjs.js +27 -20
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +1 -1
- package/scrolltop/scrolltop.esm.js +28 -21
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +27 -20
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/package.json +2 -1
- package/selectbutton/selectbutton.cjs.js +35 -28
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +1 -1
- package/selectbutton/selectbutton.esm.js +36 -29
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +35 -28
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/package.json +2 -1
- package/sidebar/package.json +2 -1
- package/sidebar/sidebar.cjs.js +38 -31
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +1 -1
- package/sidebar/sidebar.esm.js +39 -32
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +38 -31
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/package.json +2 -1
- package/skeleton/skeleton.cjs.js +24 -13
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.d.ts +1 -1
- package/skeleton/skeleton.esm.js +24 -13
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +24 -13
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/package.json +2 -1
- package/slidemenu/slidemenu.cjs.js +35 -28
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +1 -1
- package/slidemenu/slidemenu.esm.js +36 -29
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +35 -28
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/package.json +2 -1
- package/slider/slider.cjs.js +31 -24
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +1 -1
- package/slider/slider.esm.js +31 -24
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +31 -24
- package/slider/slider.min.js +1 -1
- package/speeddial/package.json +2 -1
- package/speeddial/speeddial.cjs.js +43 -36
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +1 -1
- package/speeddial/speeddial.esm.js +44 -37
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -36
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/package.json +2 -1
- package/splitbutton/splitbutton.cjs.js +43 -36
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +1 -1
- package/splitbutton/splitbutton.esm.js +44 -37
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +43 -36
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/package.json +2 -1
- package/splitter/splitter.cjs.js +53 -33
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +1 -1
- package/splitter/splitter.esm.js +54 -34
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +53 -33
- package/splitter/splitter.min.js +1 -1
- package/steps/package.json +2 -1
- package/steps/steps.cjs.js +23 -12
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +1 -1
- package/steps/steps.esm.js +23 -12
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +23 -12
- package/steps/steps.min.js +1 -1
- package/styleclass/package.json +2 -1
- package/styleclass/styleclass.cjs.js +27 -20
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.d.ts +1 -1
- package/styleclass/styleclass.esm.js +28 -21
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +27 -20
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/package.json +2 -1
- package/tabmenu/tabmenu.cjs.js +29 -20
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +1 -1
- package/tabmenu/tabmenu.esm.js +29 -20
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +29 -20
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/package.json +2 -1
- package/tabview/tabview.cjs.js +79 -57
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +1 -1
- package/tabview/tabview.esm.js +80 -58
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +79 -57
- package/tabview/tabview.min.js +1 -1
- package/tag/package.json +2 -1
- package/tag/tag.cjs.js +22 -11
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +1 -1
- package/tag/tag.esm.js +22 -11
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +22 -11
- package/tag/tag.min.js +1 -1
- package/terminal/package.json +2 -1
- package/terminal/terminal.cjs.js +23 -16
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +1 -1
- package/terminal/terminal.esm.js +24 -17
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +23 -16
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/package.json +2 -1
- package/terminalservice/terminalservice.d.ts +1 -1
- package/tieredmenu/package.json +2 -1
- package/tieredmenu/tieredmenu.cjs.js +29 -22
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +1 -1
- package/tieredmenu/tieredmenu.esm.js +30 -23
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +29 -22
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/package.json +2 -1
- package/timeline/timeline.cjs.js +24 -13
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +1 -1
- package/timeline/timeline.esm.js +24 -13
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +24 -13
- package/timeline/timeline.min.js +1 -1
- package/toast/package.json +2 -1
- package/toast/toast.cjs.js +34 -25
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +1 -1
- package/toast/toast.esm.js +36 -27
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +34 -25
- package/toast/toast.min.js +1 -1
- package/togglebutton/package.json +2 -1
- package/togglebutton/togglebutton.cjs.js +31 -20
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +1 -1
- package/togglebutton/togglebutton.esm.js +32 -21
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +31 -20
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/package.json +2 -1
- package/toolbar/toolbar.cjs.js +24 -13
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +1 -1
- package/toolbar/toolbar.esm.js +24 -13
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +24 -13
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/package.json +2 -1
- package/tooltip/tooltip.cjs.js +45 -38
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +1 -1
- package/tooltip/tooltip.esm.js +46 -39
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +45 -38
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +17 -17
- package/tree/package.json +2 -1
- package/tree/tree.cjs.js +61 -54
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +1 -1
- package/tree/tree.esm.js +62 -55
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +61 -54
- package/tree/tree.min.js +1 -1
- package/treenode/package.json +2 -1
- package/treeselect/package.json +2 -1
- package/treeselect/treeselect.cjs.js +62 -55
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +1 -1
- package/treeselect/treeselect.esm.js +63 -56
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +62 -55
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/package.json +2 -1
- package/treetable/treetable.cjs.js +287 -151
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +58 -1
- package/treetable/treetable.esm.js +288 -152
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +288 -152
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/package.json +2 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +28 -21
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +29 -22
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +28 -21
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/package.json +2 -1
- package/utils/utils.cjs.js +57 -26
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +7 -0
- package/utils/utils.esm.js +57 -26
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +57 -26
- package/utils/utils.min.js +1 -1
- package/virtualscroller/package.json +2 -1
- package/virtualscroller/virtualscroller.cjs.js +44 -37
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +1 -1
- package/virtualscroller/virtualscroller.esm.js +45 -38
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +44 -37
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +9 -3
- package/captcha/captcha.cjs.js +0 -142
- package/captcha/captcha.cjs.min.js +0 -1
- package/captcha/captcha.d.ts +0 -88
- package/captcha/captcha.esm.js +0 -118
- package/captcha/captcha.esm.min.js +0 -1
- package/captcha/captcha.js +0 -144
- package/captcha/captcha.min.js +0 -1
- package/captcha/package.json +0 -6
- package/gmap/gmap.cjs.js +0 -186
- package/gmap/gmap.cjs.min.js +0 -1
- package/gmap/gmap.d.ts +0 -112
- package/gmap/gmap.esm.js +0 -162
- package/gmap/gmap.esm.min.js +0 -1
- package/gmap/gmap.js +0 -188
- package/gmap/gmap.min.js +0 -1
- package/gmap/package.json +0 -6
package/gmap/gmap.cjs.js
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var hooks = require('primereact/hooks');
|
|
7
|
-
var utils = require('primereact/utils');
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n["default"] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
|
-
|
|
29
|
-
function _extends() {
|
|
30
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
31
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
-
var source = arguments[i];
|
|
33
|
-
for (var key in source) {
|
|
34
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35
|
-
target[key] = source[key];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return target;
|
|
40
|
-
};
|
|
41
|
-
return _extends.apply(this, arguments);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
45
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
46
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
47
|
-
var GMap = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
48
|
-
var elementRef = React__namespace.useRef(null);
|
|
49
|
-
var map = React__namespace.useRef(null);
|
|
50
|
-
var prevOverlays = React__namespace.useRef(null);
|
|
51
|
-
var initMap = function initMap() {
|
|
52
|
-
map.current = new google.maps.Map(elementRef.current, props.options);
|
|
53
|
-
if (props.onMapReady) {
|
|
54
|
-
props.onMapReady({
|
|
55
|
-
map: map.current
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
initOverlays(props.overlays);
|
|
59
|
-
bindMapEvent('click', props.onMapClick);
|
|
60
|
-
bindMapEvent('dragend', props.onMapDragEnd);
|
|
61
|
-
bindMapEvent('zoom_changed', props.onZoomChanged);
|
|
62
|
-
};
|
|
63
|
-
var initOverlays = function initOverlays(overlays) {
|
|
64
|
-
if (overlays) {
|
|
65
|
-
var _iterator = _createForOfIteratorHelper(overlays),
|
|
66
|
-
_step;
|
|
67
|
-
try {
|
|
68
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
69
|
-
var overlay = _step.value;
|
|
70
|
-
overlay.setMap(map.current);
|
|
71
|
-
bindOverlayEvents(overlay);
|
|
72
|
-
}
|
|
73
|
-
} catch (err) {
|
|
74
|
-
_iterator.e(err);
|
|
75
|
-
} finally {
|
|
76
|
-
_iterator.f();
|
|
77
|
-
}
|
|
78
|
-
prevOverlays.current = overlays;
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
var bindOverlayEvents = function bindOverlayEvents(overlay) {
|
|
82
|
-
overlay.addListener('click', function (event) {
|
|
83
|
-
if (props.onOverlayClick) {
|
|
84
|
-
props.onOverlayClick({
|
|
85
|
-
originalEvent: event,
|
|
86
|
-
overlay: overlay,
|
|
87
|
-
map: map.current
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
if (overlay.getDraggable()) {
|
|
92
|
-
bindDragEvents(overlay);
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
var bindDragEvents = function bindDragEvents(overlay) {
|
|
96
|
-
bindDragEvent(overlay, 'dragstart', props.onOverlayDragStart);
|
|
97
|
-
bindDragEvent(overlay, 'drag', props.onOverlayDrag);
|
|
98
|
-
bindDragEvent(overlay, 'dragend', props.onOverlayDragEnd);
|
|
99
|
-
};
|
|
100
|
-
var bindMapEvent = function bindMapEvent(eventName, callback) {
|
|
101
|
-
map.current.addListener(eventName, function (event) {
|
|
102
|
-
callback && callback(event);
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
var bindDragEvent = function bindDragEvent(overlay, eventName, callback) {
|
|
106
|
-
overlay.addListener(eventName, function (event) {
|
|
107
|
-
if (callback) {
|
|
108
|
-
callback({
|
|
109
|
-
originalEvent: event,
|
|
110
|
-
overlay: overlay,
|
|
111
|
-
map: map.current
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
};
|
|
116
|
-
var removeOverlays = function removeOverlays(overlays) {
|
|
117
|
-
if (overlays) {
|
|
118
|
-
var _iterator2 = _createForOfIteratorHelper(overlays),
|
|
119
|
-
_step2;
|
|
120
|
-
try {
|
|
121
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
122
|
-
var overlay = _step2.value;
|
|
123
|
-
overlay.setMap(null);
|
|
124
|
-
unbindOverlayEvents(overlay);
|
|
125
|
-
}
|
|
126
|
-
} catch (err) {
|
|
127
|
-
_iterator2.e(err);
|
|
128
|
-
} finally {
|
|
129
|
-
_iterator2.f();
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
var unbindOverlayEvents = function unbindOverlayEvents(overlay) {
|
|
134
|
-
google.maps.event.clearListeners(overlay, 'click');
|
|
135
|
-
if (overlay.getDraggable()) {
|
|
136
|
-
google.maps.event.clearListeners(overlay, 'dragstart');
|
|
137
|
-
google.maps.event.clearListeners(overlay, 'drag');
|
|
138
|
-
google.maps.event.clearListeners(overlay, 'dragend');
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
var getMap = function getMap() {
|
|
142
|
-
return map.current;
|
|
143
|
-
};
|
|
144
|
-
hooks.useMountEffect(function () {
|
|
145
|
-
initMap();
|
|
146
|
-
});
|
|
147
|
-
hooks.useUpdateEffect(function () {
|
|
148
|
-
initOverlays(props.overlays);
|
|
149
|
-
return function () {
|
|
150
|
-
removeOverlays(prevOverlays.current);
|
|
151
|
-
};
|
|
152
|
-
});
|
|
153
|
-
React__namespace.useImperativeHandle(ref, function () {
|
|
154
|
-
return {
|
|
155
|
-
props: props,
|
|
156
|
-
getMap: getMap,
|
|
157
|
-
getElement: function getElement() {
|
|
158
|
-
return elementRef.current;
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
});
|
|
162
|
-
var otherProps = utils.ObjectUtils.findDiffKeys(props, GMap.defaultProps);
|
|
163
|
-
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
164
|
-
ref: elementRef,
|
|
165
|
-
style: props.style,
|
|
166
|
-
className: props.className
|
|
167
|
-
}, otherProps));
|
|
168
|
-
}));
|
|
169
|
-
GMap.displayName = 'GMap';
|
|
170
|
-
GMap.defaultProps = {
|
|
171
|
-
__TYPE: 'GMap',
|
|
172
|
-
options: null,
|
|
173
|
-
overlays: null,
|
|
174
|
-
style: null,
|
|
175
|
-
className: null,
|
|
176
|
-
onMapReady: null,
|
|
177
|
-
onMapClick: null,
|
|
178
|
-
onMapDragEnd: null,
|
|
179
|
-
onZoomChanged: null,
|
|
180
|
-
onOverlayDragStart: null,
|
|
181
|
-
onOverlayDrag: null,
|
|
182
|
-
onOverlayDragEnd: null,
|
|
183
|
-
onOverlayClick: null
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
exports.GMap = GMap;
|
package/gmap/gmap.cjs.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),n=require("primereact/hooks"),r=require("primereact/utils");function t(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})}})),n.default=e,Object.freeze(n)}var a=t(e);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},o.apply(this,arguments)}function l(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var t=0,a=function(){};return{s:a,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,i=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){i=!0,o=e},f:function(){try{l||null==r.return||r.return()}finally{if(i)throw o}}}}function u(e,n){if(e){if("string"==typeof e)return i(e,n);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)?i(e,n):void 0}}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var c=a.memo(a.forwardRef((function(e,t){var u=a.useRef(null),i=a.useRef(null),f=a.useRef(null),s=function(e){if(e){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var t=n.value;t.setMap(i.current),d(t)}}catch(e){r.e(e)}finally{r.f()}f.current=e}},d=function(n){n.addListener("click",(function(r){e.onOverlayClick&&e.onOverlayClick({originalEvent:r,overlay:n,map:i.current})})),n.getDraggable()&&p(n)},p=function(n){v(n,"dragstart",e.onOverlayDragStart),v(n,"drag",e.onOverlayDrag),v(n,"dragend",e.onOverlayDragEnd)},g=function(e,n){i.current.addListener(e,(function(e){n&&n(e)}))},v=function(e,n,r){e.addListener(n,(function(n){r&&r({originalEvent:n,overlay:e,map:i.current})}))},y=function(e){if(e){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var t=n.value;t.setMap(null),m(t)}}catch(e){r.e(e)}finally{r.f()}}},m=function(e){google.maps.event.clearListeners(e,"click"),e.getDraggable()&&(google.maps.event.clearListeners(e,"dragstart"),google.maps.event.clearListeners(e,"drag"),google.maps.event.clearListeners(e,"dragend"))},b=function(){return i.current};n.useMountEffect((function(){i.current=new google.maps.Map(u.current,e.options),e.onMapReady&&e.onMapReady({map:i.current}),s(e.overlays),g("click",e.onMapClick),g("dragend",e.onMapDragEnd),g("zoom_changed",e.onZoomChanged)})),n.useUpdateEffect((function(){return s(e.overlays),function(){y(f.current)}})),a.useImperativeHandle(t,(function(){return{props:e,getMap:b,getElement:function(){return u.current}}}));var O=r.ObjectUtils.findDiffKeys(e,c.defaultProps);return a.createElement("div",o({ref:u,style:e.style,className:e.className},O))})));c.displayName="GMap",c.defaultProps={__TYPE:"GMap",options:null,overlays:null,style:null,className:null,onMapReady:null,onMapClick:null,onMapDragEnd:null,onZoomChanged:null,onOverlayDragStart:null,onOverlayDrag:null,onOverlayDragEnd:null,onOverlayClick:null},exports.GMap=c;
|
package/gmap/gmap.d.ts
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* GMap component provides integration with Google Maps API. This sample demontrates various uses cases like binding, overlays and events. Click the map to add a new item.
|
|
4
|
-
*
|
|
5
|
-
* [Live Demo](https://www.primefaces.org/primereact/gmap/)
|
|
6
|
-
*
|
|
7
|
-
* @module gmap
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
import * as React from 'react';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Custom click event.
|
|
14
|
-
* @see {@link GMapProps.onOverlayClick}
|
|
15
|
-
* @event
|
|
16
|
-
*/
|
|
17
|
-
interface GMapEvent {
|
|
18
|
-
/**
|
|
19
|
-
* Google Maps mouse event
|
|
20
|
-
*/
|
|
21
|
-
originalEvent: React.SyntheticEvent;
|
|
22
|
-
/**
|
|
23
|
-
* Clicked overlay
|
|
24
|
-
*/
|
|
25
|
-
overlay: any;
|
|
26
|
-
/**
|
|
27
|
-
* Map instance
|
|
28
|
-
*/
|
|
29
|
-
map: any;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Defines valid properties in GMap component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
34
|
-
* @group Properties
|
|
35
|
-
*/
|
|
36
|
-
export interface GMapProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
37
|
-
/**
|
|
38
|
-
* Google Maps API configuration object.
|
|
39
|
-
*/
|
|
40
|
-
options?: object | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* An array of overlays to display.
|
|
43
|
-
*/
|
|
44
|
-
overlays?: any[] | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Callback to invoke when the map is ready to be used.
|
|
47
|
-
* @param {*} map - Google Maps instance
|
|
48
|
-
*/
|
|
49
|
-
onMapReady?(map: any): void;
|
|
50
|
-
/**
|
|
51
|
-
* Callback to invoke when map is clicked except markers.
|
|
52
|
-
* @param {React.SyntheticEvent} event - Mouse event.
|
|
53
|
-
*/
|
|
54
|
-
onMapClick?(event: React.SyntheticEvent): void;
|
|
55
|
-
/**
|
|
56
|
-
* Callback to invoke when the map is ready to be used.
|
|
57
|
-
*/
|
|
58
|
-
onMapDragEnd?(): void;
|
|
59
|
-
/**
|
|
60
|
-
* Callback to invoke when zoom level has changed.
|
|
61
|
-
*/
|
|
62
|
-
onZoomChanged?(): void;
|
|
63
|
-
/**
|
|
64
|
-
* Callback to invoke when an overlay drag starts.
|
|
65
|
-
* @param {React.SyntheticEvent} event - Google Maps mouse event.
|
|
66
|
-
*/
|
|
67
|
-
onOverlayDragStart?(event: React.SyntheticEvent): void;
|
|
68
|
-
/**
|
|
69
|
-
* Callback to invoke when an overlay is being dragged.
|
|
70
|
-
* @param {React.SyntheticEvent} event - Google Maps mouse event.
|
|
71
|
-
*/
|
|
72
|
-
onOverlayDrag?(event: React.SyntheticEvent): void;
|
|
73
|
-
/**
|
|
74
|
-
* Callback to invoke when an overlay drag ends.
|
|
75
|
-
* @param {React.SyntheticEvent} event - Google Maps mouse event.
|
|
76
|
-
*/
|
|
77
|
-
onOverlayDragEnd?(event: React.SyntheticEvent): void;
|
|
78
|
-
/**
|
|
79
|
-
* Callback to invoke when an overlay is clicked.
|
|
80
|
-
* @param {GMapEvent} event - Custom click event.
|
|
81
|
-
*/
|
|
82
|
-
onOverlayClick?(event: GMapEvent): void;
|
|
83
|
-
/**
|
|
84
|
-
* Used to get the child elements of the component.
|
|
85
|
-
* @readonly
|
|
86
|
-
*/
|
|
87
|
-
children?: React.ReactNode | undefined;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* **PrimeReact - GMap**
|
|
92
|
-
*
|
|
93
|
-
* _GMap component provides integration with Google Maps API. This sample demontrates various uses cases like binding, overlays and events. Click the map to add a new item._
|
|
94
|
-
*
|
|
95
|
-
* [Live Demo](https://www.primefaces.org/primereact/gmap/)
|
|
96
|
-
* --- ---
|
|
97
|
-
* 
|
|
98
|
-
*
|
|
99
|
-
* @group Component
|
|
100
|
-
*/
|
|
101
|
-
export declare class GMap extends React.Component<GMapProps, any> {
|
|
102
|
-
/**
|
|
103
|
-
* Used to get map instance
|
|
104
|
-
* @return {*} Map instance
|
|
105
|
-
*/
|
|
106
|
-
public getMap(): any;
|
|
107
|
-
/**
|
|
108
|
-
* Used to get container element.
|
|
109
|
-
* @return {HTMLDivElement} Container element
|
|
110
|
-
*/
|
|
111
|
-
public getElement(): HTMLDivElement;
|
|
112
|
-
}
|
package/gmap/gmap.esm.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useMountEffect, useUpdateEffect } from 'primereact/hooks';
|
|
3
|
-
import { ObjectUtils } from 'primereact/utils';
|
|
4
|
-
|
|
5
|
-
function _extends() {
|
|
6
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
7
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
8
|
-
var source = arguments[i];
|
|
9
|
-
for (var key in source) {
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
11
|
-
target[key] = source[key];
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return target;
|
|
16
|
-
};
|
|
17
|
-
return _extends.apply(this, arguments);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
21
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
23
|
-
var GMap = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
24
|
-
var elementRef = React.useRef(null);
|
|
25
|
-
var map = React.useRef(null);
|
|
26
|
-
var prevOverlays = React.useRef(null);
|
|
27
|
-
var initMap = function initMap() {
|
|
28
|
-
map.current = new google.maps.Map(elementRef.current, props.options);
|
|
29
|
-
if (props.onMapReady) {
|
|
30
|
-
props.onMapReady({
|
|
31
|
-
map: map.current
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
initOverlays(props.overlays);
|
|
35
|
-
bindMapEvent('click', props.onMapClick);
|
|
36
|
-
bindMapEvent('dragend', props.onMapDragEnd);
|
|
37
|
-
bindMapEvent('zoom_changed', props.onZoomChanged);
|
|
38
|
-
};
|
|
39
|
-
var initOverlays = function initOverlays(overlays) {
|
|
40
|
-
if (overlays) {
|
|
41
|
-
var _iterator = _createForOfIteratorHelper(overlays),
|
|
42
|
-
_step;
|
|
43
|
-
try {
|
|
44
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
45
|
-
var overlay = _step.value;
|
|
46
|
-
overlay.setMap(map.current);
|
|
47
|
-
bindOverlayEvents(overlay);
|
|
48
|
-
}
|
|
49
|
-
} catch (err) {
|
|
50
|
-
_iterator.e(err);
|
|
51
|
-
} finally {
|
|
52
|
-
_iterator.f();
|
|
53
|
-
}
|
|
54
|
-
prevOverlays.current = overlays;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
var bindOverlayEvents = function bindOverlayEvents(overlay) {
|
|
58
|
-
overlay.addListener('click', function (event) {
|
|
59
|
-
if (props.onOverlayClick) {
|
|
60
|
-
props.onOverlayClick({
|
|
61
|
-
originalEvent: event,
|
|
62
|
-
overlay: overlay,
|
|
63
|
-
map: map.current
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
if (overlay.getDraggable()) {
|
|
68
|
-
bindDragEvents(overlay);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
var bindDragEvents = function bindDragEvents(overlay) {
|
|
72
|
-
bindDragEvent(overlay, 'dragstart', props.onOverlayDragStart);
|
|
73
|
-
bindDragEvent(overlay, 'drag', props.onOverlayDrag);
|
|
74
|
-
bindDragEvent(overlay, 'dragend', props.onOverlayDragEnd);
|
|
75
|
-
};
|
|
76
|
-
var bindMapEvent = function bindMapEvent(eventName, callback) {
|
|
77
|
-
map.current.addListener(eventName, function (event) {
|
|
78
|
-
callback && callback(event);
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
var bindDragEvent = function bindDragEvent(overlay, eventName, callback) {
|
|
82
|
-
overlay.addListener(eventName, function (event) {
|
|
83
|
-
if (callback) {
|
|
84
|
-
callback({
|
|
85
|
-
originalEvent: event,
|
|
86
|
-
overlay: overlay,
|
|
87
|
-
map: map.current
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
var removeOverlays = function removeOverlays(overlays) {
|
|
93
|
-
if (overlays) {
|
|
94
|
-
var _iterator2 = _createForOfIteratorHelper(overlays),
|
|
95
|
-
_step2;
|
|
96
|
-
try {
|
|
97
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
98
|
-
var overlay = _step2.value;
|
|
99
|
-
overlay.setMap(null);
|
|
100
|
-
unbindOverlayEvents(overlay);
|
|
101
|
-
}
|
|
102
|
-
} catch (err) {
|
|
103
|
-
_iterator2.e(err);
|
|
104
|
-
} finally {
|
|
105
|
-
_iterator2.f();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
var unbindOverlayEvents = function unbindOverlayEvents(overlay) {
|
|
110
|
-
google.maps.event.clearListeners(overlay, 'click');
|
|
111
|
-
if (overlay.getDraggable()) {
|
|
112
|
-
google.maps.event.clearListeners(overlay, 'dragstart');
|
|
113
|
-
google.maps.event.clearListeners(overlay, 'drag');
|
|
114
|
-
google.maps.event.clearListeners(overlay, 'dragend');
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
var getMap = function getMap() {
|
|
118
|
-
return map.current;
|
|
119
|
-
};
|
|
120
|
-
useMountEffect(function () {
|
|
121
|
-
initMap();
|
|
122
|
-
});
|
|
123
|
-
useUpdateEffect(function () {
|
|
124
|
-
initOverlays(props.overlays);
|
|
125
|
-
return function () {
|
|
126
|
-
removeOverlays(prevOverlays.current);
|
|
127
|
-
};
|
|
128
|
-
});
|
|
129
|
-
React.useImperativeHandle(ref, function () {
|
|
130
|
-
return {
|
|
131
|
-
props: props,
|
|
132
|
-
getMap: getMap,
|
|
133
|
-
getElement: function getElement() {
|
|
134
|
-
return elementRef.current;
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
});
|
|
138
|
-
var otherProps = ObjectUtils.findDiffKeys(props, GMap.defaultProps);
|
|
139
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
140
|
-
ref: elementRef,
|
|
141
|
-
style: props.style,
|
|
142
|
-
className: props.className
|
|
143
|
-
}, otherProps));
|
|
144
|
-
}));
|
|
145
|
-
GMap.displayName = 'GMap';
|
|
146
|
-
GMap.defaultProps = {
|
|
147
|
-
__TYPE: 'GMap',
|
|
148
|
-
options: null,
|
|
149
|
-
overlays: null,
|
|
150
|
-
style: null,
|
|
151
|
-
className: null,
|
|
152
|
-
onMapReady: null,
|
|
153
|
-
onMapClick: null,
|
|
154
|
-
onMapDragEnd: null,
|
|
155
|
-
onZoomChanged: null,
|
|
156
|
-
onOverlayDragStart: null,
|
|
157
|
-
onOverlayDrag: null,
|
|
158
|
-
onOverlayDragEnd: null,
|
|
159
|
-
onOverlayClick: null
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export { GMap };
|
package/gmap/gmap.esm.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as n from"react";import{useMountEffect as r,useUpdateEffect as e}from"primereact/hooks";import{ObjectUtils as t}from"primereact/utils";function a(){return a=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},a.apply(this,arguments)}function o(n,r){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=l(n))||r&&n&&"number"==typeof n.length){e&&(n=e);var t=0,a=function(){};return{s:a,n:function(){return t>=n.length?{done:!0}:{done:!1,value:n[t++]}},e:function(n){throw n},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return i=n.done,n},e:function(n){u=!0,o=n},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw o}}}}function l(n,r){if(n){if("string"==typeof n)return i(n,r);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(n,r):void 0}}function i(n,r){(null==r||r>n.length)&&(r=n.length);for(var e=0,t=new Array(r);e<r;e++)t[e]=n[e];return t}var u=n.memo(n.forwardRef((function(l,i){var c=n.useRef(null),f=n.useRef(null),s=n.useRef(null),p=function(n){if(n){var r,e=o(n);try{for(e.s();!(r=e.n()).done;){var t=r.value;t.setMap(f.current),g(t)}}catch(n){e.e(n)}finally{e.f()}s.current=n}},g=function(n){n.addListener("click",(function(r){l.onOverlayClick&&l.onOverlayClick({originalEvent:r,overlay:n,map:f.current})})),n.getDraggable()&&d(n)},d=function(n){v(n,"dragstart",l.onOverlayDragStart),v(n,"drag",l.onOverlayDrag),v(n,"dragend",l.onOverlayDragEnd)},y=function(n,r){f.current.addListener(n,(function(n){r&&r(n)}))},v=function(n,r,e){n.addListener(r,(function(r){e&&e({originalEvent:r,overlay:n,map:f.current})}))},m=function(n){if(n){var r,e=o(n);try{for(e.s();!(r=e.n()).done;){var t=r.value;t.setMap(null),h(t)}}catch(n){e.e(n)}finally{e.f()}}},h=function(n){google.maps.event.clearListeners(n,"click"),n.getDraggable()&&(google.maps.event.clearListeners(n,"dragstart"),google.maps.event.clearListeners(n,"drag"),google.maps.event.clearListeners(n,"dragend"))},b=function(){return f.current};r((function(){f.current=new google.maps.Map(c.current,l.options),l.onMapReady&&l.onMapReady({map:f.current}),p(l.overlays),y("click",l.onMapClick),y("dragend",l.onMapDragEnd),y("zoom_changed",l.onZoomChanged)})),e((function(){return p(l.overlays),function(){m(s.current)}})),n.useImperativeHandle(i,(function(){return{props:l,getMap:b,getElement:function(){return c.current}}}));var O=t.findDiffKeys(l,u.defaultProps);return n.createElement("div",a({ref:c,style:l.style,className:l.className},O))})));u.displayName="GMap",u.defaultProps={__TYPE:"GMap",options:null,overlays:null,style:null,className:null,onMapReady:null,onMapClick:null,onMapDragEnd:null,onZoomChanged:null,onOverlayDragStart:null,onOverlayDrag:null,onOverlayDragEnd:null,onOverlayClick:null};export{u as GMap};
|
package/gmap/gmap.js
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.gmap = (function (exports, React, hooks, utils) {
|
|
3
|
-
'use strict';
|
|
4
|
-
|
|
5
|
-
function _interopNamespace(e) {
|
|
6
|
-
if (e && e.__esModule) return e;
|
|
7
|
-
var n = Object.create(null);
|
|
8
|
-
if (e) {
|
|
9
|
-
Object.keys(e).forEach(function (k) {
|
|
10
|
-
if (k !== 'default') {
|
|
11
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return e[k]; }
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
n["default"] = e;
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
|
-
|
|
25
|
-
function _extends() {
|
|
26
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
27
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
28
|
-
var source = arguments[i];
|
|
29
|
-
for (var key in source) {
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
-
target[key] = source[key];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return target;
|
|
36
|
-
};
|
|
37
|
-
return _extends.apply(this, arguments);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
41
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
42
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
43
|
-
var GMap = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
44
|
-
var elementRef = React__namespace.useRef(null);
|
|
45
|
-
var map = React__namespace.useRef(null);
|
|
46
|
-
var prevOverlays = React__namespace.useRef(null);
|
|
47
|
-
var initMap = function initMap() {
|
|
48
|
-
map.current = new google.maps.Map(elementRef.current, props.options);
|
|
49
|
-
if (props.onMapReady) {
|
|
50
|
-
props.onMapReady({
|
|
51
|
-
map: map.current
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
initOverlays(props.overlays);
|
|
55
|
-
bindMapEvent('click', props.onMapClick);
|
|
56
|
-
bindMapEvent('dragend', props.onMapDragEnd);
|
|
57
|
-
bindMapEvent('zoom_changed', props.onZoomChanged);
|
|
58
|
-
};
|
|
59
|
-
var initOverlays = function initOverlays(overlays) {
|
|
60
|
-
if (overlays) {
|
|
61
|
-
var _iterator = _createForOfIteratorHelper(overlays),
|
|
62
|
-
_step;
|
|
63
|
-
try {
|
|
64
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
65
|
-
var overlay = _step.value;
|
|
66
|
-
overlay.setMap(map.current);
|
|
67
|
-
bindOverlayEvents(overlay);
|
|
68
|
-
}
|
|
69
|
-
} catch (err) {
|
|
70
|
-
_iterator.e(err);
|
|
71
|
-
} finally {
|
|
72
|
-
_iterator.f();
|
|
73
|
-
}
|
|
74
|
-
prevOverlays.current = overlays;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var bindOverlayEvents = function bindOverlayEvents(overlay) {
|
|
78
|
-
overlay.addListener('click', function (event) {
|
|
79
|
-
if (props.onOverlayClick) {
|
|
80
|
-
props.onOverlayClick({
|
|
81
|
-
originalEvent: event,
|
|
82
|
-
overlay: overlay,
|
|
83
|
-
map: map.current
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
if (overlay.getDraggable()) {
|
|
88
|
-
bindDragEvents(overlay);
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
var bindDragEvents = function bindDragEvents(overlay) {
|
|
92
|
-
bindDragEvent(overlay, 'dragstart', props.onOverlayDragStart);
|
|
93
|
-
bindDragEvent(overlay, 'drag', props.onOverlayDrag);
|
|
94
|
-
bindDragEvent(overlay, 'dragend', props.onOverlayDragEnd);
|
|
95
|
-
};
|
|
96
|
-
var bindMapEvent = function bindMapEvent(eventName, callback) {
|
|
97
|
-
map.current.addListener(eventName, function (event) {
|
|
98
|
-
callback && callback(event);
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
var bindDragEvent = function bindDragEvent(overlay, eventName, callback) {
|
|
102
|
-
overlay.addListener(eventName, function (event) {
|
|
103
|
-
if (callback) {
|
|
104
|
-
callback({
|
|
105
|
-
originalEvent: event,
|
|
106
|
-
overlay: overlay,
|
|
107
|
-
map: map.current
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
var removeOverlays = function removeOverlays(overlays) {
|
|
113
|
-
if (overlays) {
|
|
114
|
-
var _iterator2 = _createForOfIteratorHelper(overlays),
|
|
115
|
-
_step2;
|
|
116
|
-
try {
|
|
117
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
118
|
-
var overlay = _step2.value;
|
|
119
|
-
overlay.setMap(null);
|
|
120
|
-
unbindOverlayEvents(overlay);
|
|
121
|
-
}
|
|
122
|
-
} catch (err) {
|
|
123
|
-
_iterator2.e(err);
|
|
124
|
-
} finally {
|
|
125
|
-
_iterator2.f();
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
var unbindOverlayEvents = function unbindOverlayEvents(overlay) {
|
|
130
|
-
google.maps.event.clearListeners(overlay, 'click');
|
|
131
|
-
if (overlay.getDraggable()) {
|
|
132
|
-
google.maps.event.clearListeners(overlay, 'dragstart');
|
|
133
|
-
google.maps.event.clearListeners(overlay, 'drag');
|
|
134
|
-
google.maps.event.clearListeners(overlay, 'dragend');
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
var getMap = function getMap() {
|
|
138
|
-
return map.current;
|
|
139
|
-
};
|
|
140
|
-
hooks.useMountEffect(function () {
|
|
141
|
-
initMap();
|
|
142
|
-
});
|
|
143
|
-
hooks.useUpdateEffect(function () {
|
|
144
|
-
initOverlays(props.overlays);
|
|
145
|
-
return function () {
|
|
146
|
-
removeOverlays(prevOverlays.current);
|
|
147
|
-
};
|
|
148
|
-
});
|
|
149
|
-
React__namespace.useImperativeHandle(ref, function () {
|
|
150
|
-
return {
|
|
151
|
-
props: props,
|
|
152
|
-
getMap: getMap,
|
|
153
|
-
getElement: function getElement() {
|
|
154
|
-
return elementRef.current;
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
});
|
|
158
|
-
var otherProps = utils.ObjectUtils.findDiffKeys(props, GMap.defaultProps);
|
|
159
|
-
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
160
|
-
ref: elementRef,
|
|
161
|
-
style: props.style,
|
|
162
|
-
className: props.className
|
|
163
|
-
}, otherProps));
|
|
164
|
-
}));
|
|
165
|
-
GMap.displayName = 'GMap';
|
|
166
|
-
GMap.defaultProps = {
|
|
167
|
-
__TYPE: 'GMap',
|
|
168
|
-
options: null,
|
|
169
|
-
overlays: null,
|
|
170
|
-
style: null,
|
|
171
|
-
className: null,
|
|
172
|
-
onMapReady: null,
|
|
173
|
-
onMapClick: null,
|
|
174
|
-
onMapDragEnd: null,
|
|
175
|
-
onZoomChanged: null,
|
|
176
|
-
onOverlayDragStart: null,
|
|
177
|
-
onOverlayDrag: null,
|
|
178
|
-
onOverlayDragEnd: null,
|
|
179
|
-
onOverlayClick: null
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
exports.GMap = GMap;
|
|
183
|
-
|
|
184
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
185
|
-
|
|
186
|
-
return exports;
|
|
187
|
-
|
|
188
|
-
})({}, React, primereact.hooks, primereact.utils);
|
package/gmap/gmap.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.gmap=function(e,n,r,t){"use strict";function a(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})}})),n.default=e,Object.freeze(n)}var o=a(n);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},l.apply(this,arguments)}function u(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var t=0,a=function(){};return{s:a,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){u=!0,o=e},f:function(){try{l||null==r.return||r.return()}finally{if(u)throw o}}}}function i(e,n){if(e){if("string"==typeof e)return c(e,n);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)?c(e,n):void 0}}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var f=o.memo(o.forwardRef((function(e,n){var a=o.useRef(null),i=o.useRef(null),c=o.useRef(null),s=function(e){if(e){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var t=n.value;t.setMap(i.current),p(t)}}catch(e){r.e(e)}finally{r.f()}c.current=e}},p=function(n){n.addListener("click",(function(r){e.onOverlayClick&&e.onOverlayClick({originalEvent:r,overlay:n,map:i.current})})),n.getDraggable()&&d(n)},d=function(n){y(n,"dragstart",e.onOverlayDragStart),y(n,"drag",e.onOverlayDrag),y(n,"dragend",e.onOverlayDragEnd)},g=function(e,n){i.current.addListener(e,(function(e){n&&n(e)}))},y=function(e,n,r){e.addListener(n,(function(n){r&&r({originalEvent:n,overlay:e,map:i.current})}))},v=function(e){if(e){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var t=n.value;t.setMap(null),m(t)}}catch(e){r.e(e)}finally{r.f()}}},m=function(e){google.maps.event.clearListeners(e,"click"),e.getDraggable()&&(google.maps.event.clearListeners(e,"dragstart"),google.maps.event.clearListeners(e,"drag"),google.maps.event.clearListeners(e,"dragend"))},b=function(){return i.current};r.useMountEffect((function(){i.current=new google.maps.Map(a.current,e.options),e.onMapReady&&e.onMapReady({map:i.current}),s(e.overlays),g("click",e.onMapClick),g("dragend",e.onMapDragEnd),g("zoom_changed",e.onZoomChanged)})),r.useUpdateEffect((function(){return s(e.overlays),function(){v(c.current)}})),o.useImperativeHandle(n,(function(){return{props:e,getMap:b,getElement:function(){return a.current}}}));var O=t.ObjectUtils.findDiffKeys(e,f.defaultProps);return o.createElement("div",l({ref:a,style:e.style,className:e.className},O))})));return f.displayName="GMap",f.defaultProps={__TYPE:"GMap",options:null,overlays:null,style:null,className:null,onMapReady:null,onMapClick:null,onMapDragEnd:null,onZoomChanged:null,onOverlayDragStart:null,onOverlayDrag:null,onOverlayDragEnd:null,onOverlayClick:null},e.GMap=f,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.hooks,primereact.utils);
|