primereact 8.7.2 → 8.7.3
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 +56 -57
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +56 -57
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +56 -57
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +30 -68
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +30 -68
- package/api/api.esm.min.js +1 -1
- package/api/api.js +30 -68
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +82 -154
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +82 -154
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +82 -154
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +86 -14
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +5 -4
- package/avatar/avatar.esm.js +86 -14
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +86 -14
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +0 -2
- package/avatargroup/avatargroup.esm.js +0 -2
- package/avatargroup/avatargroup.js +0 -2
- package/badge/badge.cjs.js +27 -3
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +27 -3
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +27 -3
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +40 -54
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +5 -3
- package/blockui/blockui.esm.js +40 -54
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +40 -54
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +6 -29
- package/breadcrumb/breadcrumb.esm.js +6 -29
- package/breadcrumb/breadcrumb.js +6 -29
- package/button/button.cjs.js +29 -11
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +29 -11
- package/button/button.esm.min.js +1 -1
- package/button/button.js +29 -11
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +186 -664
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +6 -4
- package/calendar/calendar.esm.js +186 -664
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +186 -664
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +0 -15
- package/captcha/captcha.esm.js +0 -15
- package/captcha/captcha.js +0 -15
- package/card/card.cjs.js +0 -6
- package/card/card.esm.js +0 -6
- package/card/card.js +0 -6
- package/carousel/carousel.cjs.js +42 -130
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +42 -130
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +42 -130
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +47 -132
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +47 -132
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +47 -132
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +6 -7
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +6 -7
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +6 -7
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +26 -40
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +26 -40
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +26 -40
- package/checkbox/checkbox.min.css +1 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +26 -41
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +26 -41
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +26 -41
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +29 -72
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +29 -72
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +29 -72
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +75 -143
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +8 -6
- package/colorpicker/colorpicker.esm.js +75 -143
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +75 -143
- package/colorpicker/colorpicker.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +60 -60
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +60 -60
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +60 -60
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +74 -94
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +74 -94
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +74 -94
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +75 -120
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +75 -120
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +75 -120
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +970 -2021
- package/core/core.min.js +15 -15
- package/csstransition/csstransition.cjs.js +27 -13
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +27 -13
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +27 -13
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +32 -64
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +32 -64
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +32 -64
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +318 -1077
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +6 -1
- package/datatable/datatable.esm.js +318 -1077
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +318 -1077
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +56 -68
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +56 -68
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +56 -68
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +37 -46
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +37 -46
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +37 -46
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +89 -175
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +89 -175
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +89 -175
- package/dialog/dialog.min.css +1 -1
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +0 -2
- package/divider/divider.esm.js +0 -2
- package/divider/divider.js +0 -2
- package/dock/dock.cjs.js +31 -53
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +31 -53
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +31 -53
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +72 -199
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +39 -38
- package/dropdown/dropdown.esm.js +72 -199
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +72 -199
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +31 -22
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +31 -22
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +31 -22
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +29 -51
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +29 -51
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +29 -51
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +45 -128
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +45 -128
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +45 -128
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +54 -165
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +54 -165
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +54 -165
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.cjs.js +2 -23
- package/gmap/gmap.esm.js +2 -23
- package/gmap/gmap.js +2 -23
- package/hooks/hooks.cjs.js +102 -131
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +102 -131
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +102 -131
- package/hooks/hooks.min.js +1 -1
- package/image/image.cjs.js +41 -67
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +1 -1
- package/image/image.esm.js +41 -67
- package/image/image.esm.min.js +1 -1
- package/image/image.js +41 -67
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +26 -45
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +26 -45
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +26 -45
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +16 -108
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +16 -108
- package/inputmask/inputmask.js +16 -108
- package/inputnumber/inputnumber.cjs.js +82 -234
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +1 -1
- package/inputnumber/inputnumber.esm.js +82 -234
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +82 -234
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +26 -37
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +26 -37
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +26 -37
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +0 -11
- package/inputtext/inputtext.d.ts +1 -3
- package/inputtext/inputtext.esm.js +0 -11
- package/inputtext/inputtext.js +0 -11
- package/inputtextarea/inputtextarea.cjs.js +0 -20
- package/inputtextarea/inputtextarea.d.ts +1 -3
- package/inputtextarea/inputtextarea.esm.js +0 -20
- package/inputtextarea/inputtextarea.js +0 -20
- package/keyfilter/keyfilter.cjs.js +4 -15
- package/keyfilter/keyfilter.esm.js +4 -15
- package/keyfilter/keyfilter.js +4 -15
- package/knob/knob.cjs.js +74 -106
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +74 -106
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +74 -106
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +94 -125
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +6 -0
- package/listbox/listbox.esm.js +95 -126
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +94 -125
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +36 -99
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +36 -99
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +36 -99
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +82 -138
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +1 -1
- package/mention/mention.esm.js +82 -138
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +82 -138
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +38 -72
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +38 -72
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +38 -72
- package/menu/menu.min.css +1 -1
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +49 -99
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +49 -99
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +49 -99
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +0 -7
- package/message/message.esm.js +0 -7
- package/message/message.js +0 -7
- package/messages/messages.cjs.js +39 -67
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +39 -67
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +39 -67
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +137 -210
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +46 -41
- package/multiselect/multiselect.esm.js +137 -210
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +137 -210
- package/multiselect/multiselect.min.css +1 -1
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +58 -53
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +58 -53
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +58 -53
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +38 -103
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +38 -103
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +38 -103
- package/orderlist/orderlist.min.css +1 -1
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +26 -52
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +26 -52
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +26 -52
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +40 -79
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +40 -79
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +40 -79
- package/overlaypanel/overlaypanel.min.css +1 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +46 -87
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +46 -87
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +46 -87
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +29 -50
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +29 -50
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +29 -50
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +35 -81
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +35 -81
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +35 -81
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +54 -107
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +54 -107
- package/password/password.esm.min.js +1 -1
- package/password/password.js +54 -107
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +48 -159
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +48 -159
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +48 -159
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +26 -31
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +26 -31
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +26 -31
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +2246 -7336
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2246 -7336
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +2246 -7336
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +0 -7
- package/progressbar/progressbar.esm.js +0 -7
- package/progressbar/progressbar.js +0 -7
- package/progressspinner/progressspinner.cjs.js +0 -2
- package/progressspinner/progressspinner.esm.js +0 -2
- package/progressspinner/progressspinner.js +0 -2
- package/radiobutton/radiobutton.cjs.js +30 -40
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +30 -40
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +30 -40
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +27 -14
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +27 -14
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +27 -14
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +47 -1
- package/resources/primereact.min.css +1 -1
- package/ripple/ripple.cjs.js +0 -12
- package/ripple/ripple.esm.js +0 -12
- package/ripple/ripple.js +0 -12
- package/row/row.cjs.js +0 -2
- package/row/row.esm.js +0 -2
- package/row/row.js +0 -2
- package/scrollpanel/scrollpanel.cjs.js +2 -16
- package/scrollpanel/scrollpanel.esm.js +2 -16
- package/scrollpanel/scrollpanel.js +2 -16
- package/scrolltop/scrolltop.cjs.js +44 -57
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +44 -57
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +44 -57
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +26 -53
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +26 -53
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +26 -53
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +52 -83
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +52 -83
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +52 -83
- package/sidebar/sidebar.min.css +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +0 -2
- package/skeleton/skeleton.esm.js +0 -2
- package/skeleton/skeleton.js +0 -2
- package/slidemenu/slidemenu.cjs.js +73 -87
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +73 -87
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +73 -87
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +61 -96
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +61 -96
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +61 -96
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +70 -89
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +70 -89
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +70 -89
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +46 -80
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +46 -80
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +46 -80
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +72 -85
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +72 -85
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +72 -85
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +0 -14
- package/steps/steps.esm.js +0 -14
- package/steps/steps.js +0 -14
- package/styleclass/styleclass.cjs.js +75 -111
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +75 -111
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +75 -111
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +33 -54
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +33 -54
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +33 -54
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +83 -102
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +83 -102
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +83 -102
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +27 -4
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +27 -4
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +27 -4
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +37 -63
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +37 -63
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +37 -63
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +65 -110
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +65 -110
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +65 -110
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +27 -7
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +27 -7
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +27 -7
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +81 -99
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +81 -99
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +81 -99
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +0 -7
- package/togglebutton/togglebutton.esm.js +0 -7
- package/togglebutton/togglebutton.js +0 -7
- package/toolbar/toolbar.cjs.js +0 -2
- package/toolbar/toolbar.esm.js +0 -2
- package/toolbar/toolbar.js +0 -2
- package/tooltip/tooltip.cjs.js +111 -164
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +111 -164
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +111 -164
- package/tooltip/tooltip.min.css +1 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +13 -13
- package/tree/tree.cjs.js +68 -223
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +68 -223
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +68 -223
- package/tree/tree.min.js +1 -1
- package/treenode/treenode.d.ts +1 -0
- package/treeselect/treeselect.cjs.js +117 -167
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +30 -29
- package/treeselect/treeselect.esm.js +117 -167
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +117 -167
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +140 -460
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +140 -460
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +140 -460
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +29 -39
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +29 -39
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +29 -39
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +110 -328
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +110 -328
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +110 -328
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +108 -204
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +108 -204
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +108 -204
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +152 -38
package/inputmask/inputmask.js
CHANGED
|
@@ -26,14 +26,12 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
26
26
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
27
27
|
for (var i = 1; i < arguments.length; i++) {
|
|
28
28
|
var source = arguments[i];
|
|
29
|
-
|
|
30
29
|
for (var key in source) {
|
|
31
30
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32
31
|
target[key] = source[key];
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
|
-
|
|
37
35
|
return target;
|
|
38
36
|
};
|
|
39
37
|
return _extends.apply(this, arguments);
|
|
@@ -54,19 +52,15 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
54
52
|
var defaultBuffer = React__namespace.useRef(null);
|
|
55
53
|
var caretTimeoutId = React__namespace.useRef(null);
|
|
56
54
|
var androidChrome = React__namespace.useRef(false);
|
|
57
|
-
|
|
58
55
|
var caret = function caret(first, last) {
|
|
59
56
|
var range, begin, end;
|
|
60
57
|
var inputEl = elementRef.current;
|
|
61
|
-
|
|
62
58
|
if (!inputEl || !inputEl.offsetParent || inputEl !== document.activeElement) {
|
|
63
59
|
return;
|
|
64
60
|
}
|
|
65
|
-
|
|
66
61
|
if (typeof first === 'number') {
|
|
67
62
|
begin = first;
|
|
68
63
|
end = typeof last === 'number' ? last : begin;
|
|
69
|
-
|
|
70
64
|
if (inputEl.setSelectionRange) {
|
|
71
65
|
inputEl.setSelectionRange(begin, end);
|
|
72
66
|
} else if (inputEl['createTextRange']) {
|
|
@@ -85,57 +79,44 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
85
79
|
begin = 0 - range.duplicate().moveStart('character', -100000);
|
|
86
80
|
end = begin + range.text.length;
|
|
87
81
|
}
|
|
88
|
-
|
|
89
82
|
return {
|
|
90
83
|
begin: begin,
|
|
91
84
|
end: end
|
|
92
85
|
};
|
|
93
86
|
}
|
|
94
87
|
};
|
|
95
|
-
|
|
96
88
|
var isCompleted = function isCompleted() {
|
|
97
89
|
for (var i = firstNonMaskPos.current; i <= lastRequiredNonMaskPos.current; i++) {
|
|
98
90
|
if (tests.current[i] && buffer.current[i] === getPlaceholder(i)) {
|
|
99
91
|
return false;
|
|
100
92
|
}
|
|
101
93
|
}
|
|
102
|
-
|
|
103
94
|
return true;
|
|
104
95
|
};
|
|
105
|
-
|
|
106
96
|
var getPlaceholder = React__namespace.useCallback(function (i) {
|
|
107
97
|
if (i < props.slotChar.length) {
|
|
108
98
|
return props.slotChar.charAt(i);
|
|
109
99
|
}
|
|
110
|
-
|
|
111
100
|
return props.slotChar.charAt(0);
|
|
112
101
|
}, [props.slotChar]);
|
|
113
|
-
|
|
114
102
|
var getValue = function getValue() {
|
|
115
103
|
return props.unmask ? getUnmaskedValue() : elementRef.current && elementRef.current.value;
|
|
116
104
|
};
|
|
117
|
-
|
|
118
105
|
var seekNext = function seekNext(pos) {
|
|
119
106
|
while (++pos < len.current && !tests.current[pos]) {
|
|
120
107
|
}
|
|
121
|
-
|
|
122
108
|
return pos;
|
|
123
109
|
};
|
|
124
|
-
|
|
125
110
|
var seekPrev = function seekPrev(pos) {
|
|
126
111
|
while (--pos >= 0 && !tests.current[pos]) {
|
|
127
112
|
}
|
|
128
|
-
|
|
129
113
|
return pos;
|
|
130
114
|
};
|
|
131
|
-
|
|
132
115
|
var shiftL = function shiftL(begin, end) {
|
|
133
116
|
var i, j;
|
|
134
|
-
|
|
135
117
|
if (begin < 0) {
|
|
136
118
|
return;
|
|
137
119
|
}
|
|
138
|
-
|
|
139
120
|
for (i = begin, j = seekNext(end); i < len.current; i++) {
|
|
140
121
|
if (tests.current[i]) {
|
|
141
122
|
if (j < len.current && tests.current[i].test(buffer.current[j])) {
|
|
@@ -144,24 +125,19 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
144
125
|
} else {
|
|
145
126
|
break;
|
|
146
127
|
}
|
|
147
|
-
|
|
148
128
|
j = seekNext(j);
|
|
149
129
|
}
|
|
150
130
|
}
|
|
151
|
-
|
|
152
131
|
writeBuffer();
|
|
153
132
|
caret(Math.max(firstNonMaskPos.current, begin));
|
|
154
133
|
};
|
|
155
|
-
|
|
156
134
|
var shiftR = function shiftR(pos) {
|
|
157
135
|
var i, c, j, t;
|
|
158
|
-
|
|
159
136
|
for (i = pos, c = getPlaceholder(pos); i < len.current; i++) {
|
|
160
137
|
if (tests.current[i]) {
|
|
161
138
|
j = seekNext(i);
|
|
162
139
|
t = buffer.current[i];
|
|
163
140
|
buffer.current[i] = c;
|
|
164
|
-
|
|
165
141
|
if (j < len.current && tests.current[j].test(t)) {
|
|
166
142
|
c = t;
|
|
167
143
|
} else {
|
|
@@ -170,82 +146,68 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
170
146
|
}
|
|
171
147
|
}
|
|
172
148
|
};
|
|
173
|
-
|
|
174
149
|
var handleAndroidInput = function handleAndroidInput(e) {
|
|
175
150
|
var curVal = elementRef.current.value;
|
|
176
151
|
var pos = caret();
|
|
177
|
-
|
|
178
152
|
if (oldVal.current.length && oldVal.current.length > curVal.length) {
|
|
179
153
|
// a deletion or backspace happened
|
|
180
154
|
checkVal(true);
|
|
181
|
-
|
|
182
155
|
while (pos.begin > 0 && !tests.current[pos.begin - 1]) {
|
|
183
156
|
pos.begin--;
|
|
184
157
|
}
|
|
185
|
-
|
|
186
158
|
if (pos.begin === 0) {
|
|
187
159
|
while (pos.begin < firstNonMaskPos.current && !tests.current[pos.begin]) {
|
|
188
160
|
pos.begin++;
|
|
189
161
|
}
|
|
190
162
|
}
|
|
191
|
-
|
|
192
163
|
caret(pos.begin, pos.begin);
|
|
193
164
|
} else {
|
|
194
165
|
checkVal(true);
|
|
195
|
-
|
|
196
166
|
while (pos.begin < len.current && !tests.current[pos.begin]) {
|
|
197
167
|
pos.begin++;
|
|
198
168
|
}
|
|
199
|
-
|
|
200
169
|
caret(pos.begin, pos.begin);
|
|
201
170
|
}
|
|
202
|
-
|
|
203
171
|
if (props.onComplete && isCompleted()) {
|
|
204
172
|
props.onComplete({
|
|
205
173
|
originalEvent: e,
|
|
206
174
|
value: getValue()
|
|
207
175
|
});
|
|
208
176
|
}
|
|
209
|
-
|
|
210
177
|
updateModel(e);
|
|
211
178
|
};
|
|
212
|
-
|
|
213
179
|
var onBlur = function onBlur(e) {
|
|
214
180
|
focus.current = false;
|
|
215
181
|
checkVal();
|
|
216
182
|
updateModel(e);
|
|
217
183
|
updateFilledState();
|
|
218
184
|
props.onBlur && props.onBlur(e);
|
|
219
|
-
|
|
220
185
|
if (elementRef.current.value !== focusText.current) {
|
|
221
186
|
var event = document.createEvent('HTMLEvents');
|
|
222
187
|
event.initEvent('change', true, false);
|
|
223
188
|
elementRef.current.dispatchEvent(event);
|
|
224
189
|
}
|
|
225
190
|
};
|
|
226
|
-
|
|
227
191
|
var onKeyDown = function onKeyDown(e) {
|
|
228
192
|
if (props.readOnly) {
|
|
229
193
|
return;
|
|
230
194
|
}
|
|
231
|
-
|
|
232
195
|
var k = e.which || e.keyCode,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
196
|
+
pos,
|
|
197
|
+
begin,
|
|
198
|
+
end;
|
|
236
199
|
var iPhone = /iphone/i.test(utils.DomHandler.getUserAgent());
|
|
237
|
-
oldVal.current = elementRef.current.value;
|
|
200
|
+
oldVal.current = elementRef.current.value;
|
|
238
201
|
|
|
202
|
+
//backspace, delete, and escape get special treatment
|
|
239
203
|
if (k === 8 || k === 46 || iPhone && k === 127) {
|
|
240
204
|
pos = caret();
|
|
241
205
|
begin = pos.begin;
|
|
242
206
|
end = pos.end;
|
|
243
|
-
|
|
244
207
|
if (end - begin === 0) {
|
|
245
208
|
begin = k !== 46 ? seekPrev(begin) : end = seekNext(begin - 1);
|
|
246
209
|
end = k === 46 ? seekNext(end) : end;
|
|
247
210
|
}
|
|
248
|
-
|
|
249
211
|
clearBuffer(begin, end);
|
|
250
212
|
shiftL(begin, end - 1);
|
|
251
213
|
updateModel(e);
|
|
@@ -262,19 +224,16 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
262
224
|
e.preventDefault();
|
|
263
225
|
}
|
|
264
226
|
};
|
|
265
|
-
|
|
266
227
|
var onKeyPress = function onKeyPress(e) {
|
|
267
228
|
if (props.readOnly) {
|
|
268
229
|
return;
|
|
269
230
|
}
|
|
270
|
-
|
|
271
231
|
var k = e.which || e.keyCode,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
232
|
+
pos = caret(),
|
|
233
|
+
p,
|
|
234
|
+
c,
|
|
235
|
+
next,
|
|
236
|
+
completed;
|
|
278
237
|
if (e.ctrlKey || e.altKey || e.metaKey || k < 32) {
|
|
279
238
|
//Ignore
|
|
280
239
|
return;
|
|
@@ -283,40 +242,31 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
283
242
|
clearBuffer(pos.begin, pos.end);
|
|
284
243
|
shiftL(pos.begin, pos.end - 1);
|
|
285
244
|
}
|
|
286
|
-
|
|
287
245
|
p = seekNext(pos.begin - 1);
|
|
288
|
-
|
|
289
246
|
if (p < len.current) {
|
|
290
247
|
c = String.fromCharCode(k);
|
|
291
|
-
|
|
292
248
|
if (tests.current[p].test(c)) {
|
|
293
249
|
shiftR(p);
|
|
294
250
|
buffer.current[p] = c;
|
|
295
251
|
writeBuffer();
|
|
296
252
|
next = seekNext(p);
|
|
297
|
-
|
|
298
253
|
if (/android/i.test(utils.DomHandler.getUserAgent())) {
|
|
299
254
|
//Path for CSP Violation on FireFox OS 1.1
|
|
300
255
|
var proxy = function proxy() {
|
|
301
256
|
caret(next);
|
|
302
257
|
};
|
|
303
|
-
|
|
304
258
|
setTimeout(proxy, 0);
|
|
305
259
|
} else {
|
|
306
260
|
caret(next);
|
|
307
261
|
}
|
|
308
|
-
|
|
309
262
|
if (pos.begin <= lastRequiredNonMaskPos.current) {
|
|
310
263
|
completed = isCompleted();
|
|
311
264
|
}
|
|
312
265
|
}
|
|
313
266
|
}
|
|
314
|
-
|
|
315
267
|
e.preventDefault();
|
|
316
268
|
}
|
|
317
|
-
|
|
318
269
|
updateModel(e);
|
|
319
|
-
|
|
320
270
|
if (props.onComplete && completed) {
|
|
321
271
|
props.onComplete({
|
|
322
272
|
originalEvent: e,
|
|
@@ -324,44 +274,36 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
324
274
|
});
|
|
325
275
|
}
|
|
326
276
|
};
|
|
327
|
-
|
|
328
277
|
var clearBuffer = function clearBuffer(start, end) {
|
|
329
278
|
var i;
|
|
330
|
-
|
|
331
279
|
for (i = start; i < end && i < len.current; i++) {
|
|
332
280
|
if (tests.current[i]) {
|
|
333
281
|
buffer.current[i] = getPlaceholder(i);
|
|
334
282
|
}
|
|
335
283
|
}
|
|
336
284
|
};
|
|
337
|
-
|
|
338
285
|
var writeBuffer = function writeBuffer() {
|
|
339
286
|
elementRef.current.value = buffer.current.join('');
|
|
340
287
|
};
|
|
341
|
-
|
|
342
288
|
var checkVal = function checkVal(allow) {
|
|
343
|
-
isValueChecked.current = true;
|
|
344
|
-
|
|
289
|
+
isValueChecked.current = true;
|
|
290
|
+
//try to place characters where they belong
|
|
345
291
|
var test = elementRef.current.value,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
292
|
+
lastMatch = -1,
|
|
293
|
+
i,
|
|
294
|
+
c,
|
|
295
|
+
pos;
|
|
351
296
|
for (i = 0, pos = 0; i < len.current; i++) {
|
|
352
297
|
if (tests.current[i]) {
|
|
353
298
|
buffer.current[i] = getPlaceholder(i);
|
|
354
|
-
|
|
355
299
|
while (pos++ < test.length) {
|
|
356
300
|
c = test.charAt(pos - 1);
|
|
357
|
-
|
|
358
301
|
if (tests.current[i].test(c)) {
|
|
359
302
|
buffer.current[i] = c;
|
|
360
303
|
lastMatch = i;
|
|
361
304
|
break;
|
|
362
305
|
}
|
|
363
306
|
}
|
|
364
|
-
|
|
365
307
|
if (pos > test.length) {
|
|
366
308
|
clearBuffer(i + 1, len.current);
|
|
367
309
|
break;
|
|
@@ -370,13 +312,11 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
370
312
|
if (buffer.current[i] === test.charAt(pos)) {
|
|
371
313
|
pos++;
|
|
372
314
|
}
|
|
373
|
-
|
|
374
315
|
if (i < partialPosition.current) {
|
|
375
316
|
lastMatch = i;
|
|
376
317
|
}
|
|
377
318
|
}
|
|
378
319
|
}
|
|
379
|
-
|
|
380
320
|
if (allow) {
|
|
381
321
|
writeBuffer();
|
|
382
322
|
} else if (lastMatch + 1 < partialPosition.current) {
|
|
@@ -394,15 +334,12 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
394
334
|
writeBuffer();
|
|
395
335
|
elementRef.current.value = elementRef.current.value.substring(0, lastMatch + 1);
|
|
396
336
|
}
|
|
397
|
-
|
|
398
337
|
return partialPosition.current ? i : firstNonMaskPos.current;
|
|
399
338
|
};
|
|
400
|
-
|
|
401
339
|
var onFocus = function onFocus(e) {
|
|
402
340
|
if (props.readOnly) {
|
|
403
341
|
return;
|
|
404
342
|
}
|
|
405
|
-
|
|
406
343
|
focus.current = true;
|
|
407
344
|
clearTimeout(caretTimeoutId.current);
|
|
408
345
|
var pos;
|
|
@@ -412,33 +349,26 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
412
349
|
if (elementRef.current !== document.activeElement) {
|
|
413
350
|
return;
|
|
414
351
|
}
|
|
415
|
-
|
|
416
352
|
writeBuffer();
|
|
417
|
-
|
|
418
353
|
if (pos === props.mask.replace('?', '').length) {
|
|
419
354
|
caret(0, pos);
|
|
420
355
|
} else {
|
|
421
356
|
caret(pos);
|
|
422
357
|
}
|
|
423
|
-
|
|
424
358
|
updateFilledState();
|
|
425
359
|
}, 10);
|
|
426
360
|
props.onFocus && props.onFocus(e);
|
|
427
361
|
};
|
|
428
|
-
|
|
429
362
|
var onInput = function onInput(event) {
|
|
430
363
|
androidChrome.current ? handleAndroidInput(event) : handleInputChange(event);
|
|
431
364
|
};
|
|
432
|
-
|
|
433
365
|
var handleInputChange = function handleInputChange(e) {
|
|
434
366
|
if (props.readOnly) {
|
|
435
367
|
return;
|
|
436
368
|
}
|
|
437
|
-
|
|
438
369
|
var pos = checkVal(true);
|
|
439
370
|
caret(pos);
|
|
440
371
|
updateModel(e);
|
|
441
|
-
|
|
442
372
|
if (props.onComplete && isCompleted()) {
|
|
443
373
|
props.onComplete({
|
|
444
374
|
originalEvent: e,
|
|
@@ -446,21 +376,16 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
446
376
|
});
|
|
447
377
|
}
|
|
448
378
|
};
|
|
449
|
-
|
|
450
379
|
var getUnmaskedValue = React__namespace.useCallback(function () {
|
|
451
380
|
var unmaskedBuffer = [];
|
|
452
|
-
|
|
453
381
|
for (var i = 0; i < buffer.current.length; i++) {
|
|
454
382
|
var c = buffer.current[i];
|
|
455
|
-
|
|
456
383
|
if (tests.current[i] && c !== getPlaceholder(i)) {
|
|
457
384
|
unmaskedBuffer.push(c);
|
|
458
385
|
}
|
|
459
386
|
}
|
|
460
|
-
|
|
461
387
|
return unmaskedBuffer.join('');
|
|
462
388
|
}, [getPlaceholder]);
|
|
463
|
-
|
|
464
389
|
var updateModel = function updateModel(e) {
|
|
465
390
|
if (props.onChange) {
|
|
466
391
|
var val = props.unmask ? getUnmaskedValue() : e && e.target.value;
|
|
@@ -477,14 +402,11 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
477
402
|
});
|
|
478
403
|
}
|
|
479
404
|
};
|
|
480
|
-
|
|
481
405
|
var updateFilledState = function updateFilledState() {
|
|
482
406
|
if (elementRef.current && elementRef.current.value && elementRef.current.value.length > 0) utils.DomHandler.addClass(elementRef.current, 'p-filled');else utils.DomHandler.removeClass(elementRef.current, 'p-filled');
|
|
483
407
|
};
|
|
484
|
-
|
|
485
408
|
var updateValue = function updateValue(allow) {
|
|
486
409
|
var pos;
|
|
487
|
-
|
|
488
410
|
if (elementRef.current) {
|
|
489
411
|
if (props.value == null) {
|
|
490
412
|
elementRef.current.value = '';
|
|
@@ -498,18 +420,14 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
498
420
|
}
|
|
499
421
|
}, 10);
|
|
500
422
|
}
|
|
501
|
-
|
|
502
423
|
focusText.current = elementRef.current.value;
|
|
503
424
|
}
|
|
504
|
-
|
|
505
425
|
updateFilledState();
|
|
506
426
|
return pos;
|
|
507
427
|
};
|
|
508
|
-
|
|
509
428
|
var isValueUpdated = React__namespace.useCallback(function () {
|
|
510
429
|
return props.unmask ? props.value !== getUnmaskedValue() : defaultBuffer.current !== elementRef.current.value && elementRef.current.value !== props.value;
|
|
511
430
|
}, [props.unmask, props.value, getUnmaskedValue]);
|
|
512
|
-
|
|
513
431
|
var init = function init() {
|
|
514
432
|
if (props.mask) {
|
|
515
433
|
tests.current = [];
|
|
@@ -524,20 +442,16 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
524
442
|
var ua = utils.DomHandler.getUserAgent();
|
|
525
443
|
androidChrome.current = /chrome/i.test(ua) && /android/i.test(ua);
|
|
526
444
|
var maskTokens = props.mask.split('');
|
|
527
|
-
|
|
528
445
|
for (var i = 0; i < maskTokens.length; i++) {
|
|
529
446
|
var c = maskTokens[i];
|
|
530
|
-
|
|
531
447
|
if (c === '?') {
|
|
532
448
|
len.current--;
|
|
533
449
|
partialPosition.current = i;
|
|
534
450
|
} else if (defs[c]) {
|
|
535
451
|
tests.current.push(new RegExp(defs[c]));
|
|
536
|
-
|
|
537
452
|
if (firstNonMaskPos.current === null) {
|
|
538
453
|
firstNonMaskPos.current = tests.current.length - 1;
|
|
539
454
|
}
|
|
540
|
-
|
|
541
455
|
if (i < partialPosition.current) {
|
|
542
456
|
lastRequiredNonMaskPos.current = tests.current.length - 1;
|
|
543
457
|
}
|
|
@@ -545,21 +459,16 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
545
459
|
tests.current.push(null);
|
|
546
460
|
}
|
|
547
461
|
}
|
|
548
|
-
|
|
549
462
|
buffer.current = [];
|
|
550
|
-
|
|
551
463
|
for (var _i = 0; _i < maskTokens.length; _i++) {
|
|
552
464
|
var _c = maskTokens[_i];
|
|
553
|
-
|
|
554
465
|
if (_c !== '?') {
|
|
555
466
|
if (defs[_c]) buffer.current.push(getPlaceholder(_i));else buffer.current.push(_c);
|
|
556
467
|
}
|
|
557
468
|
}
|
|
558
|
-
|
|
559
469
|
defaultBuffer.current = buffer.current.join('');
|
|
560
470
|
}
|
|
561
471
|
};
|
|
562
|
-
|
|
563
472
|
React__namespace.useImperativeHandle(ref, function () {
|
|
564
473
|
return {
|
|
565
474
|
props: props,
|
|
@@ -578,7 +487,6 @@ this.primereact.inputmask = (function (exports, React, hooks, inputtext, utils)
|
|
|
578
487
|
hooks.useUpdateEffect(function () {
|
|
579
488
|
init();
|
|
580
489
|
caret(updateValue(true));
|
|
581
|
-
|
|
582
490
|
if (props.unmask) {
|
|
583
491
|
updateModel();
|
|
584
492
|
}
|