primereact 7.1.0 → 7.2.0
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/LICENSE.md +1 -1
- package/accordion/accordion.cjs.js +15 -15
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +15 -15
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +15 -15
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +27 -6
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +1 -0
- package/api/api.esm.js +27 -6
- package/api/api.esm.min.js +1 -1
- package/api/api.js +27 -6
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +18 -18
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +18 -18
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +18 -18
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +11 -11
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +11 -11
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +11 -11
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +11 -11
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +11 -11
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +11 -11
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +11 -11
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +11 -11
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +11 -11
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +11 -11
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +11 -11
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +11 -11
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +11 -11
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +11 -11
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +11 -11
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +13 -13
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +13 -13
- package/button/button.esm.min.js +1 -1
- package/button/button.js +13 -13
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +17 -17
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +17 -17
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +17 -17
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +11 -11
- package/captcha/captcha.cjs.min.js +1 -1
- package/captcha/captcha.esm.js +11 -11
- package/captcha/captcha.esm.min.js +1 -1
- package/captcha/captcha.js +11 -11
- package/captcha/captcha.min.js +1 -1
- package/card/card.cjs.js +11 -11
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +11 -11
- package/card/card.esm.min.js +1 -1
- package/card/card.js +11 -11
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +16 -14
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +15 -14
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +17 -16
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +14 -14
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +14 -14
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +14 -14
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +13 -13
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +13 -13
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +13 -13
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +13 -13
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +13 -13
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +13 -13
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +11 -11
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +11 -11
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +11 -11
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +13 -13
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +13 -13
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +13 -13
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +15 -15
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +15 -15
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +15 -15
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.js +31 -12
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +4 -0
- package/column/column.esm.js +31 -12
- package/column/column.esm.min.js +1 -1
- package/column/column.js +31 -12
- package/column/column.min.js +1 -1
- package/columngroup/columngroup.cjs.js +28 -12
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +28 -12
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +28 -12
- package/columngroup/columngroup.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +13 -13
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +13 -13
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +13 -13
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +14 -14
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +14 -14
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +14 -14
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +13 -13
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +13 -13
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +13 -13
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +326 -276
- package/core/core.min.js +18 -18
- package/csstransition/csstransition.cjs.js +17 -17
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +17 -17
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +17 -17
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +11 -11
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +11 -11
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +11 -11
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +315 -200
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +8 -0
- package/datatable/datatable.esm.js +318 -203
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +315 -200
- package/datatable/datatable.min.css +1 -1
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +11 -11
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +11 -11
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +11 -11
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +11 -11
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +11 -11
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +11 -11
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +19 -15
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +19 -15
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +19 -15
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +11 -11
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +11 -11
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +11 -11
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +11 -11
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +11 -11
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +11 -11
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +21 -21
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +21 -21
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +21 -21
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +15 -15
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +15 -15
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +15 -15
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +14 -14
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +14 -14
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +14 -14
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +16 -13
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +2 -0
- package/fileupload/fileupload.esm.js +16 -13
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +16 -13
- package/fileupload/fileupload.min.js +1 -1
- package/fullcalendar/fullcalendar.cjs.js +11 -11
- package/fullcalendar/fullcalendar.cjs.min.js +1 -1
- package/fullcalendar/fullcalendar.esm.js +11 -11
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +11 -11
- package/fullcalendar/fullcalendar.min.js +1 -1
- package/galleria/galleria.cjs.js +16 -16
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +16 -16
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +17 -17
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.cjs.js +12 -12
- package/gmap/gmap.cjs.min.js +1 -1
- package/gmap/gmap.esm.js +12 -12
- package/gmap/gmap.esm.min.js +1 -1
- package/gmap/gmap.js +12 -12
- package/gmap/gmap.min.js +1 -1
- package/image/image.cjs.js +39 -18
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +1 -0
- package/image/image.esm.js +40 -19
- package/image/image.esm.min.js +1 -1
- package/image/image.js +39 -18
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +11 -11
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +11 -11
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +11 -11
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +13 -13
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +13 -13
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +13 -13
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +32 -29
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +32 -29
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +32 -29
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +13 -13
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +13 -13
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +13 -13
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +13 -13
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +13 -13
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +13 -13
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +13 -13
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +13 -13
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +13 -13
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +4 -1
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +4 -1
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +4 -1
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +11 -11
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +11 -11
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +11 -11
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +14 -14
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +14 -14
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +14 -14
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +11 -11
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +11 -11
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +11 -11
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +16 -16
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +16 -16
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +16 -16
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +12 -12
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +12 -12
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +12 -12
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +11 -11
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +11 -11
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +11 -11
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +11 -11
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +11 -11
- package/message/message.esm.min.js +1 -1
- package/message/message.js +11 -11
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +11 -11
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +11 -11
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +11 -11
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +20 -20
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +20 -20
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +20 -20
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +13 -13
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +13 -13
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +13 -13
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +11 -11
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +11 -11
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +11 -11
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +11 -11
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +11 -11
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +11 -11
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +13 -13
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +13 -13
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +13 -13
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +13 -13
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +13 -13
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +13 -13
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +14 -14
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +14 -14
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +14 -14
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +13 -13
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +13 -13
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +13 -13
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +14 -14
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +14 -14
- package/password/password.esm.min.js +1 -1
- package/password/password.js +14 -14
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +11 -11
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +11 -11
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +11 -11
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +13 -12
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +13 -12
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +13 -12
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +642 -424
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +642 -424
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +642 -424
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +11 -11
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +11 -11
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +11 -11
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +11 -11
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +11 -11
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +11 -11
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +13 -13
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +13 -13
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +13 -13
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +13 -13
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +13 -13
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +13 -13
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +328 -305
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +56 -24
- package/resources/themes/arya-green/theme.css +56 -24
- package/resources/themes/arya-orange/theme.css +56 -24
- package/resources/themes/arya-purple/theme.css +56 -24
- package/resources/themes/bootstrap4-dark-blue/theme.css +33 -8
- package/resources/themes/bootstrap4-dark-purple/theme.css +33 -8
- package/resources/themes/bootstrap4-light-blue/theme.css +32 -7
- package/resources/themes/bootstrap4-light-purple/theme.css +32 -7
- package/resources/themes/fluent-light/theme.css +56 -24
- package/resources/themes/lara-dark-blue/theme.css +400 -368
- package/resources/themes/lara-dark-indigo/theme.css +400 -368
- package/resources/themes/lara-dark-purple/theme.css +400 -368
- package/resources/themes/lara-dark-teal/theme.css +400 -368
- package/resources/themes/lara-light-blue/theme.css +56 -24
- package/resources/themes/lara-light-indigo/theme.css +56 -24
- package/resources/themes/lara-light-purple/theme.css +56 -24
- package/resources/themes/lara-light-teal/theme.css +56 -24
- package/resources/themes/luna-amber/theme.css +49 -24
- package/resources/themes/luna-blue/theme.css +49 -24
- package/resources/themes/luna-green/theme.css +49 -24
- package/resources/themes/luna-pink/theme.css +49 -24
- package/resources/themes/md-dark-deeppurple/theme.css +38 -6
- package/resources/themes/md-dark-indigo/theme.css +38 -6
- package/resources/themes/md-light-deeppurple/theme.css +38 -6
- package/resources/themes/md-light-indigo/theme.css +38 -6
- package/resources/themes/mdc-dark-deeppurple/theme.css +38 -6
- package/resources/themes/mdc-dark-indigo/theme.css +38 -6
- package/resources/themes/mdc-light-deeppurple/theme.css +38 -6
- package/resources/themes/mdc-light-indigo/theme.css +38 -6
- package/resources/themes/nova/theme.css +49 -24
- package/resources/themes/nova-accent/theme.css +49 -24
- package/resources/themes/nova-alt/theme.css +49 -24
- package/resources/themes/rhea/theme.css +49 -24
- package/resources/themes/saga-blue/theme.css +39 -7
- package/resources/themes/saga-green/theme.css +39 -7
- package/resources/themes/saga-orange/theme.css +39 -7
- package/resources/themes/saga-purple/theme.css +39 -7
- package/resources/themes/tailwind-light/theme.css +59 -27
- package/resources/themes/vela-blue/theme.css +56 -24
- package/resources/themes/vela-green/theme.css +56 -24
- package/resources/themes/vela-orange/theme.css +56 -24
- package/resources/themes/vela-purple/theme.css +56 -24
- package/ripple/ripple.cjs.js +11 -11
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +11 -11
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +11 -11
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +11 -11
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +11 -11
- package/row/row.esm.min.js +1 -1
- package/row/row.js +11 -11
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +11 -11
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +11 -11
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +11 -11
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +12 -12
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +12 -12
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +12 -12
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +14 -14
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +14 -14
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +14 -14
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +14 -13
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +14 -13
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +14 -13
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +11 -11
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +11 -11
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +11 -11
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +12 -12
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +12 -12
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +12 -12
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +11 -11
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +11 -11
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +11 -11
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +13 -13
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +13 -13
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +13 -13
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +15 -15
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +15 -15
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +15 -15
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +12 -12
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +12 -12
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +12 -12
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +11 -11
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +11 -11
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +11 -11
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +11 -11
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +11 -11
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +11 -11
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +11 -11
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +11 -11
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +11 -11
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +35 -28
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +35 -28
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +35 -28
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +11 -11
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +11 -11
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +11 -11
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +11 -11
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +11 -11
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +11 -11
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +12 -12
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +12 -12
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +12 -12
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +11 -11
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +11 -11
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +11 -11
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +26 -15
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +3 -0
- package/toast/toast.esm.js +26 -15
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +27 -17
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +13 -13
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +13 -13
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +13 -13
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +11 -11
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +11 -11
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +11 -11
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +13 -13
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +13 -13
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +13 -13
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +17 -17
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +17 -17
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +17 -17
- package/tree/tree.min.js +1 -1
- package/treenode/treenode.d.ts +1 -0
- package/treeselect/treeselect.cjs.js +16 -16
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +16 -16
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +16 -16
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +60 -48
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +1 -0
- package/treetable/treetable.esm.js +60 -48
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +60 -48
- package/treetable/treetable.min.css +1 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +13 -13
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +13 -13
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +13 -13
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +43 -41
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -0
- package/utils/utils.esm.js +43 -41
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +43 -41
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +35 -19
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +35 -19
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +35 -19
- package/virtualscroller/virtualscroller.min.css +1 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +44 -7
|
@@ -39,6 +39,9 @@ function _defineProperties(target, props) {
|
|
|
39
39
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
40
40
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
41
41
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
42
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
43
|
+
writable: false
|
|
44
|
+
});
|
|
42
45
|
return Constructor;
|
|
43
46
|
}
|
|
44
47
|
|
|
@@ -71,23 +74,20 @@ function _inherits(subClass, superClass) {
|
|
|
71
74
|
configurable: true
|
|
72
75
|
}
|
|
73
76
|
});
|
|
77
|
+
Object.defineProperty(subClass, "prototype", {
|
|
78
|
+
writable: false
|
|
79
|
+
});
|
|
74
80
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
75
81
|
}
|
|
76
82
|
|
|
77
83
|
function _typeof(obj) {
|
|
78
84
|
"@babel/helpers - typeof";
|
|
79
85
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
_typeof = function _typeof(obj) {
|
|
86
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return _typeof(obj);
|
|
86
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
87
|
+
return typeof obj;
|
|
88
|
+
} : function (obj) {
|
|
89
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
90
|
+
}, _typeof(obj);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
function _possibleConstructorReturn(self, call) {
|
|
@@ -122,9 +122,9 @@ function _defineProperty(obj, key, value) {
|
|
|
122
122
|
return obj;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
125
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
126
126
|
|
|
127
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
127
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
128
128
|
|
|
129
129
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
130
130
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{createRef as e,Component as o}from"react";import{DomHandler as r,classNames as n,ObjectUtils as i}from"primereact/utils";import{tip as s}from"primereact/tooltip";function
|
|
1
|
+
import t,{createRef as e,Component as o}from"react";import{DomHandler as r,classNames as n,ObjectUtils as i}from"primereact/utils";import{tip as s}from"primereact/tooltip";function p(){return p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},p.apply(this,arguments)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function y(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function b(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function m(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function v(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?m(Object(o),!0).forEach((function(e){b(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var O=function(a){f(j,o);var h,b,m,O,R,w=(h=j,b=g(),function(){var t,e=d(h);if(b){var o=d(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return y(this,t)});function j(t){var o;return l(this,j),(o=w.call(this,t)).onFocus=o.onFocus.bind(c(o)),o.onBlur=o.onBlur.bind(c(o)),o.onKeyUp=o.onKeyUp.bind(c(o)),o.onInput=o.onInput.bind(c(o)),o.elementRef=e(o.props.forwardRef),o}return m=j,(O=[{key:"onFocus",value:function(t){this.props.autoResize&&this.resize(),this.props.onFocus&&this.props.onFocus(t)}},{key:"onBlur",value:function(t){this.props.autoResize&&this.resize(),this.props.onBlur&&this.props.onBlur(t)}},{key:"onKeyUp",value:function(t){this.props.autoResize&&this.resize(),this.props.onKeyUp&&this.props.onKeyUp(t)}},{key:"onInput",value:function(t){this.props.autoResize&&this.resize(),t.target.value.length>0?r.addClass(t.target,"p-filled"):r.removeClass(t.target,"p-filled"),this.props.onInput&&this.props.onInput(t)}},{key:"resize",value:function(t){var e=this.elementRef&&this.elementRef.current;e&&r.isVisible(e)&&(this.cachedScrollHeight||(this.cachedScrollHeight=e.scrollHeight,e.style.overflow="hidden"),(this.cachedScrollHeight!==e.scrollHeight||t)&&(e.style.height="",e.style.height=e.scrollHeight+"px",parseFloat(e.style.height)>=parseFloat(e.style.maxHeight)?(e.style.overflowY="scroll",e.style.height=e.style.maxHeight):e.style.overflow="hidden",this.cachedScrollHeight=e.scrollHeight))}},{key:"isFilled",value:function(){return null!=this.props.value&&this.props.value.toString().length>0||null!=this.props.defaultValue&&this.props.defaultValue.toString().length>0||this.elementRef&&this.elementRef.current&&this.elementRef.current.value.toString().length>0}},{key:"updateForwardRef",value:function(){var t=this.props.forwardRef;t&&("function"==typeof t?t(this.elementRef.current):t.current=this.elementRef.current)}},{key:"componentDidMount",value:function(){this.updateForwardRef(),this.props.tooltip&&this.renderTooltip(),this.props.autoResize&&this.resize(!0)}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(v({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.props.autoResize&&this.resize(!0)}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=s({target:this.elementRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var e=n("p-inputtextarea p-inputtext p-component",{"p-disabled":this.props.disabled,"p-filled":this.isFilled(),"p-inputtextarea-resizable":this.props.autoResize},this.props.className),o=i.findDiffKeys(this.props,j.defaultProps);return t.createElement("textarea",p({ref:this.elementRef},o,{className:e,onFocus:this.onFocus,onBlur:this.onBlur,onKeyUp:this.onKeyUp,onInput:this.onInput}))}}])&&u(m.prototype,O),R&&u(m,R),Object.defineProperty(m,"prototype",{writable:!1}),j}();b(O,"defaultProps",{autoResize:!1,tooltip:null,tooltipOptions:null,onInput:null,forwardRef:null});var R=t.forwardRef((function(e,o){return t.createElement(O,p({forwardRef:o},e))}));export{R as InputTextarea};
|
|
@@ -43,6 +43,9 @@ this.primereact.inputtextarea = (function (exports, React, utils, tooltip) {
|
|
|
43
43
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
44
44
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
45
45
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
46
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
47
|
+
writable: false
|
|
48
|
+
});
|
|
46
49
|
return Constructor;
|
|
47
50
|
}
|
|
48
51
|
|
|
@@ -75,23 +78,20 @@ this.primereact.inputtextarea = (function (exports, React, utils, tooltip) {
|
|
|
75
78
|
configurable: true
|
|
76
79
|
}
|
|
77
80
|
});
|
|
81
|
+
Object.defineProperty(subClass, "prototype", {
|
|
82
|
+
writable: false
|
|
83
|
+
});
|
|
78
84
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
79
85
|
}
|
|
80
86
|
|
|
81
87
|
function _typeof(obj) {
|
|
82
88
|
"@babel/helpers - typeof";
|
|
83
89
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
_typeof = function _typeof(obj) {
|
|
90
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return _typeof(obj);
|
|
90
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
91
|
+
return typeof obj;
|
|
92
|
+
} : function (obj) {
|
|
93
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
94
|
+
}, _typeof(obj);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
function _possibleConstructorReturn(self, call) {
|
|
@@ -126,9 +126,9 @@ this.primereact.inputtextarea = (function (exports, React, utils, tooltip) {
|
|
|
126
126
|
return obj;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
129
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
130
130
|
|
|
131
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
131
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
132
132
|
|
|
133
133
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
134
134
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.inputtextarea=function(t,e,o,r){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},s.apply(this,arguments)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function h(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function b(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?b(Object(o),!0).forEach((function(e){d(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.inputtextarea=function(t,e,o,r){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},s.apply(this,arguments)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function h(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function b(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?b(Object(o),!0).forEach((function(e){d(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var O=function(t){a(g,t);var n,c,f,d,b,O=(n=g,c=v(),function(){var t,e=y(n);if(c){var o=y(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return h(this,t)});function g(t){var o;return l(this,g),(o=O.call(this,t)).onFocus=o.onFocus.bind(u(o)),o.onBlur=o.onBlur.bind(u(o)),o.onKeyUp=o.onKeyUp.bind(u(o)),o.onInput=o.onInput.bind(u(o)),o.elementRef=e.createRef(o.props.forwardRef),o}return f=g,(d=[{key:"onFocus",value:function(t){this.props.autoResize&&this.resize(),this.props.onFocus&&this.props.onFocus(t)}},{key:"onBlur",value:function(t){this.props.autoResize&&this.resize(),this.props.onBlur&&this.props.onBlur(t)}},{key:"onKeyUp",value:function(t){this.props.autoResize&&this.resize(),this.props.onKeyUp&&this.props.onKeyUp(t)}},{key:"onInput",value:function(t){this.props.autoResize&&this.resize(),t.target.value.length>0?o.DomHandler.addClass(t.target,"p-filled"):o.DomHandler.removeClass(t.target,"p-filled"),this.props.onInput&&this.props.onInput(t)}},{key:"resize",value:function(t){var e=this.elementRef&&this.elementRef.current;e&&o.DomHandler.isVisible(e)&&(this.cachedScrollHeight||(this.cachedScrollHeight=e.scrollHeight,e.style.overflow="hidden"),(this.cachedScrollHeight!==e.scrollHeight||t)&&(e.style.height="",e.style.height=e.scrollHeight+"px",parseFloat(e.style.height)>=parseFloat(e.style.maxHeight)?(e.style.overflowY="scroll",e.style.height=e.style.maxHeight):e.style.overflow="hidden",this.cachedScrollHeight=e.scrollHeight))}},{key:"isFilled",value:function(){return null!=this.props.value&&this.props.value.toString().length>0||null!=this.props.defaultValue&&this.props.defaultValue.toString().length>0||this.elementRef&&this.elementRef.current&&this.elementRef.current.value.toString().length>0}},{key:"updateForwardRef",value:function(){var t=this.props.forwardRef;t&&("function"==typeof t?t(this.elementRef.current):t.current=this.elementRef.current)}},{key:"componentDidMount",value:function(){this.updateForwardRef(),this.props.tooltip&&this.renderTooltip(),this.props.autoResize&&this.resize(!0)}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(m({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.props.autoResize&&this.resize(!0)}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=r.tip({target:this.elementRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var t=o.classNames("p-inputtextarea p-inputtext p-component",{"p-disabled":this.props.disabled,"p-filled":this.isFilled(),"p-inputtextarea-resizable":this.props.autoResize},this.props.className),e=o.ObjectUtils.findDiffKeys(this.props,g.defaultProps);return i.default.createElement("textarea",s({ref:this.elementRef},e,{className:t,onFocus:this.onFocus,onBlur:this.onBlur,onKeyUp:this.onKeyUp,onInput:this.onInput}))}}])&&p(f.prototype,d),b&&p(f,b),Object.defineProperty(f,"prototype",{writable:!1}),g}(e.Component);return d(O,"defaultProps",{autoResize:!1,tooltip:null,tooltipOptions:null,onInput:null,forwardRef:null}),t.InputTextarea=i.default.forwardRef((function(t,e){return i.default.createElement(O,s({forwardRef:e},t))})),Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.utils,primereact.tooltip);
|
|
@@ -23,6 +23,9 @@ function _defineProperties(target, props) {
|
|
|
23
23
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
24
24
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
25
25
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
26
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
27
|
+
writable: false
|
|
28
|
+
});
|
|
26
29
|
return Constructor;
|
|
27
30
|
}
|
|
28
31
|
|
|
@@ -124,7 +127,7 @@ var KeyFilter = /*#__PURE__*/function () {
|
|
|
124
127
|
|
|
125
128
|
_defineProperty(KeyFilter, "DEFAULT_MASKS", {
|
|
126
129
|
pint: /[\d]/,
|
|
127
|
-
int: /[\d\-]/,
|
|
130
|
+
"int": /[\d\-]/,
|
|
128
131
|
pnum: /[\d\.]/,
|
|
129
132
|
money: /[\d\.\s,]/,
|
|
130
133
|
num: /[\d\-\.]/,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("primereact/utils");function r(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){for(var a=0;a<r.length;a++){var t=r[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function t(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var n=function(){function t(){r(this,t)}var n,i,o;return n=t,o=[{key:"isNavKeyPress",value:function(r){var a=r.keyCode;return(a=e.DomHandler.getBrowser().safari&&t.SAFARI_KEYS[a]||a)>=33&&a<=40||a===t.KEYS.RETURN||a===t.KEYS.TAB||a===t.KEYS.ESC}},{key:"isSpecialKey",value:function(r){var a=r.keyCode;return 9===a||13===a||27===a||16===a||17===a||a>=18&&a<=20||e.DomHandler.getBrowser().opera&&!r.shiftKey&&(8===a||a>=33&&a<=35||a>=36&&a<=39||a>=44&&a<=45)}},{key:"getKey",value:function(r){var a=r.keyCode||r.charCode;return e.DomHandler.getBrowser().safari&&t.SAFARI_KEYS[a]||a}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(r,a,n){if(!n){var i=t.DEFAULT_MASKS[a]?t.DEFAULT_MASKS[a]:a,o=e.DomHandler.getBrowser();if(!r.ctrlKey&&!r.altKey){var l=this.getKey(r);if(!o.mozilla||!(this.isNavKeyPress(r)||l===t.KEYS.BACKSPACE||l===t.KEYS.DELETE&&0===r.charCode)){var u=this.getCharCode(r),s=String.fromCharCode(u);(!o.mozilla||!this.isSpecialKey(r)&&s)&&(i.test(s)||r.preventDefault())}}}}},{key:"validate",value:function(e,r){var a=e.target.value,t=!0;return a&&!r.test(a)&&(t=!1),t}}],(i=null)&&a(n.prototype,i),o&&a(n,o),t}();t(n,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),t(n,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),t(n,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35}),exports.KeyFilter=n;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("primereact/utils");function r(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){for(var a=0;a<r.length;a++){var t=r[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function t(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var n=function(){function t(){r(this,t)}var n,i,o;return n=t,o=[{key:"isNavKeyPress",value:function(r){var a=r.keyCode;return(a=e.DomHandler.getBrowser().safari&&t.SAFARI_KEYS[a]||a)>=33&&a<=40||a===t.KEYS.RETURN||a===t.KEYS.TAB||a===t.KEYS.ESC}},{key:"isSpecialKey",value:function(r){var a=r.keyCode;return 9===a||13===a||27===a||16===a||17===a||a>=18&&a<=20||e.DomHandler.getBrowser().opera&&!r.shiftKey&&(8===a||a>=33&&a<=35||a>=36&&a<=39||a>=44&&a<=45)}},{key:"getKey",value:function(r){var a=r.keyCode||r.charCode;return e.DomHandler.getBrowser().safari&&t.SAFARI_KEYS[a]||a}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(r,a,n){if(!n){var i=t.DEFAULT_MASKS[a]?t.DEFAULT_MASKS[a]:a,o=e.DomHandler.getBrowser();if(!r.ctrlKey&&!r.altKey){var l=this.getKey(r);if(!o.mozilla||!(this.isNavKeyPress(r)||l===t.KEYS.BACKSPACE||l===t.KEYS.DELETE&&0===r.charCode)){var u=this.getCharCode(r),s=String.fromCharCode(u);(!o.mozilla||!this.isSpecialKey(r)&&s)&&(i.test(s)||r.preventDefault())}}}}},{key:"validate",value:function(e,r){var a=e.target.value,t=!0;return a&&!r.test(a)&&(t=!1),t}}],(i=null)&&a(n.prototype,i),o&&a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}();t(n,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),t(n,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),t(n,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35}),exports.KeyFilter=n;
|
|
@@ -19,6 +19,9 @@ function _defineProperties(target, props) {
|
|
|
19
19
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
20
20
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
21
21
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
22
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
23
|
+
writable: false
|
|
24
|
+
});
|
|
22
25
|
return Constructor;
|
|
23
26
|
}
|
|
24
27
|
|
|
@@ -120,7 +123,7 @@ var KeyFilter = /*#__PURE__*/function () {
|
|
|
120
123
|
|
|
121
124
|
_defineProperty(KeyFilter, "DEFAULT_MASKS", {
|
|
122
125
|
pint: /[\d]/,
|
|
123
|
-
int: /[\d\-]/,
|
|
126
|
+
"int": /[\d\-]/,
|
|
124
127
|
pnum: /[\d\.]/,
|
|
125
128
|
money: /[\d\.\s,]/,
|
|
126
129
|
num: /[\d\-\.]/,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DomHandler as e}from"primereact/utils";function r(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function
|
|
1
|
+
import{DomHandler as e}from"primereact/utils";function r(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function t(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var n=function(){function a(){r(this,a)}var n,i,o;return n=a,o=[{key:"isNavKeyPress",value:function(r){var t=r.keyCode;return(t=e.getBrowser().safari&&a.SAFARI_KEYS[t]||t)>=33&&t<=40||t===a.KEYS.RETURN||t===a.KEYS.TAB||t===a.KEYS.ESC}},{key:"isSpecialKey",value:function(r){var t=r.keyCode;return 9===t||13===t||27===t||16===t||17===t||t>=18&&t<=20||e.getBrowser().opera&&!r.shiftKey&&(8===t||t>=33&&t<=35||t>=36&&t<=39||t>=44&&t<=45)}},{key:"getKey",value:function(r){var t=r.keyCode||r.charCode;return e.getBrowser().safari&&a.SAFARI_KEYS[t]||t}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(r,t,n){if(!n){var i=a.DEFAULT_MASKS[t]?a.DEFAULT_MASKS[t]:t,o=e.getBrowser();if(!r.ctrlKey&&!r.altKey){var u=this.getKey(r);if(!o.mozilla||!(this.isNavKeyPress(r)||u===a.KEYS.BACKSPACE||u===a.KEYS.DELETE&&0===r.charCode)){var l=this.getCharCode(r),f=String.fromCharCode(l);(!o.mozilla||!this.isSpecialKey(r)&&f)&&(i.test(f)||r.preventDefault())}}}}},{key:"validate",value:function(e,r){var t=e.target.value,a=!0;return t&&!r.test(t)&&(a=!1),a}}],(i=null)&&t(n.prototype,i),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();a(n,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),a(n,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),a(n,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35});export{n as KeyFilter};
|
package/keyfilter/keyfilter.js
CHANGED
|
@@ -21,6 +21,9 @@ this.primereact.keyfilter = (function (exports, utils) {
|
|
|
21
21
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
22
22
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
23
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
25
|
+
writable: false
|
|
26
|
+
});
|
|
24
27
|
return Constructor;
|
|
25
28
|
}
|
|
26
29
|
|
|
@@ -122,7 +125,7 @@ this.primereact.keyfilter = (function (exports, utils) {
|
|
|
122
125
|
|
|
123
126
|
_defineProperty(KeyFilter, "DEFAULT_MASKS", {
|
|
124
127
|
pint: /[\d]/,
|
|
125
|
-
int: /[\d\-]/,
|
|
128
|
+
"int": /[\d\-]/,
|
|
126
129
|
pnum: /[\d\.]/,
|
|
127
130
|
money: /[\d\.\s,]/,
|
|
128
131
|
num: /[\d\-\.]/,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.keyfilter=function(e,r){"use strict";function t(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var n=function(){function e(){t(this,e)}var i,n,o;return i=e,o=[{key:"isNavKeyPress",value:function(t){var a=t.keyCode;return(a=r.DomHandler.getBrowser().safari&&e.SAFARI_KEYS[a]||a)>=33&&a<=40||a===e.KEYS.RETURN||a===e.KEYS.TAB||a===e.KEYS.ESC}},{key:"isSpecialKey",value:function(e){var t=e.keyCode;return 9===t||13===t||27===t||16===t||17===t||t>=18&&t<=20||r.DomHandler.getBrowser().opera&&!e.shiftKey&&(8===t||t>=33&&t<=35||t>=36&&t<=39||t>=44&&t<=45)}},{key:"getKey",value:function(t){var a=t.keyCode||t.charCode;return r.DomHandler.getBrowser().safari&&e.SAFARI_KEYS[a]||a}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(t,a,i){if(!i){var n=e.DEFAULT_MASKS[a]?e.DEFAULT_MASKS[a]:a,o=r.DomHandler.getBrowser();if(!t.ctrlKey&&!t.altKey){var l=this.getKey(t);if(!o.mozilla||!(this.isNavKeyPress(t)||l===e.KEYS.BACKSPACE||l===e.KEYS.DELETE&&0===t.charCode)){var u=this.getCharCode(t),s=String.fromCharCode(u);(!o.mozilla||!this.isSpecialKey(t)&&s)&&(n.test(s)||t.preventDefault())}}}}},{key:"validate",value:function(e,r){var t=e.target.value,a=!0;return t&&!r.test(t)&&(a=!1),a}}],(n=null)&&a(i.prototype,n),o&&a(i,o),e}();return i(n,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),i(n,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),i(n,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35}),e.KeyFilter=n,Object.defineProperty(e,"__esModule",{value:!0}),e}({},primereact.utils);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.keyfilter=function(e,r){"use strict";function t(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var n=function(){function e(){t(this,e)}var i,n,o;return i=e,o=[{key:"isNavKeyPress",value:function(t){var a=t.keyCode;return(a=r.DomHandler.getBrowser().safari&&e.SAFARI_KEYS[a]||a)>=33&&a<=40||a===e.KEYS.RETURN||a===e.KEYS.TAB||a===e.KEYS.ESC}},{key:"isSpecialKey",value:function(e){var t=e.keyCode;return 9===t||13===t||27===t||16===t||17===t||t>=18&&t<=20||r.DomHandler.getBrowser().opera&&!e.shiftKey&&(8===t||t>=33&&t<=35||t>=36&&t<=39||t>=44&&t<=45)}},{key:"getKey",value:function(t){var a=t.keyCode||t.charCode;return r.DomHandler.getBrowser().safari&&e.SAFARI_KEYS[a]||a}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(t,a,i){if(!i){var n=e.DEFAULT_MASKS[a]?e.DEFAULT_MASKS[a]:a,o=r.DomHandler.getBrowser();if(!t.ctrlKey&&!t.altKey){var l=this.getKey(t);if(!o.mozilla||!(this.isNavKeyPress(t)||l===e.KEYS.BACKSPACE||l===e.KEYS.DELETE&&0===t.charCode)){var u=this.getCharCode(t),s=String.fromCharCode(u);(!o.mozilla||!this.isSpecialKey(t)&&s)&&(n.test(s)||t.preventDefault())}}}}},{key:"validate",value:function(e,r){var t=e.target.value,a=!0;return t&&!r.test(t)&&(a=!1),a}}],(n=null)&&a(i.prototype,n),o&&a(i,o),Object.defineProperty(i,"prototype",{writable:!1}),e}();return i(n,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),i(n,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),i(n,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35}),e.KeyFilter=n,Object.defineProperty(e,"__esModule",{value:!0}),e}({},primereact.utils);
|
package/knob/knob.cjs.js
CHANGED
|
@@ -28,6 +28,9 @@ function _defineProperties(target, props) {
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
29
29
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
30
30
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
31
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
32
|
+
writable: false
|
|
33
|
+
});
|
|
31
34
|
return Constructor;
|
|
32
35
|
}
|
|
33
36
|
|
|
@@ -60,23 +63,20 @@ function _inherits(subClass, superClass) {
|
|
|
60
63
|
configurable: true
|
|
61
64
|
}
|
|
62
65
|
});
|
|
66
|
+
Object.defineProperty(subClass, "prototype", {
|
|
67
|
+
writable: false
|
|
68
|
+
});
|
|
63
69
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
function _typeof(obj) {
|
|
67
73
|
"@babel/helpers - typeof";
|
|
68
74
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
_typeof = function _typeof(obj) {
|
|
75
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return _typeof(obj);
|
|
75
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
76
|
+
return typeof obj;
|
|
77
|
+
} : function (obj) {
|
|
78
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
79
|
+
}, _typeof(obj);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
function _possibleConstructorReturn(self, call) {
|
package/knob/knob.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function l(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return r(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var d,f,v,m=function(n){u(y,e.Component);var a,h,d,f,v,m=(a=y,h=p(),function(){var e,t=c(a);if(h){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function y(e){var t;return o(this,y),(t=m.call(this,e)).state={},t.radius=40,t.midX=50,t.midY=50,t.minRadians=4*Math.PI/3,t.maxRadians=-Math.PI/3,t.onClick=t.onClick.bind(r(t)),t.onMouseDown=t.onMouseDown.bind(r(t)),t.onMouseUp=t.onMouseUp.bind(r(t)),t.onTouchStart=t.onTouchStart.bind(r(t)),t.onTouchEnd=t.onTouchEnd.bind(r(t)),t.onMouseMove=t.onMouseMove.bind(r(t)),t.onTouchMove=t.onTouchMove.bind(r(t)),t}return d=y,(f=[{key:"updateValue",value:function(e,t){var n=Math.atan2(this.props.size/2-t,e-this.props.size/2),i=-Math.PI/2-Math.PI/6;this.updateModel(n,i)}},{key:"updateModel",value:function(e,t){var n;if(e>this.maxRadians)n=this.mapRange(e,this.minRadians,this.maxRadians,this.props.min,this.props.max);else{if(!(e<t))return;n=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.props.min,this.props.max)}if(this.props.onChange){var i=Math.round((n-this.props.min)/this.props.step)*this.props.step+this.props.min;this.props.onChange({value:i})}}},{key:"mapRange",value:function(e,t,n,i,o){return(e-t)*(o-i)/(n-t)+i}},{key:"onClick",value:function(e){this.props.disabled||this.props.readOnly||this.updateValue(e.nativeEvent.offsetX,e.nativeEvent.offsetY)}},{key:"onMouseDown",value:function(e){this.props.disabled||this.props.readOnly||(this.windowMouseMoveListener=this.onMouseMove,this.windowMouseUpListener=this.onMouseUp,window.addEventListener("mousemove",this.windowMouseMoveListener),window.addEventListener("mouseup",this.windowMouseUpListener),e.preventDefault())}},{key:"onMouseUp",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("mousemove",this.windowMouseMoveListener),window.removeEventListener("mouseup",this.windowMouseUpListener),this.windowMouseMoveListener=null,this.windowMouseUpListener=null,e.preventDefault())}},{key:"onTouchStart",value:function(e){this.props.disabled||this.props.readOnly||(this.windowTouchMoveListener=this.onTouchMove,this.windowTouchEndListener=this.onTouchEnd,window.addEventListener("touchmove",this.windowTouchMoveListener,{passive:!1,cancelable:!1}),window.addEventListener("touchend",this.windowTouchEndListener))}},{key:"onTouchEnd",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("touchmove",this.windowTouchMoveListener),window.removeEventListener("touchend",this.windowTouchEndListener),this.windowTouchMoveListener=null,this.windowTouchEndListener=null)}},{key:"onMouseMove",value:function(e){this.props.disabled||this.props.readOnly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())}},{key:"onTouchMove",value:function(e){if(!this.props.disabled&&!this.props.readOnly&&1===e.touches.length){var t=this.element.getBoundingClientRect(),n=e.targetTouches.item(0);this.updateValue(n.clientX-t.left,n.clientY-t.top),e.preventDefault()}}},{key:"rangePath",value:function(){return"M ".concat(this.minX()," ").concat(this.minY()," A ").concat(this.radius," ").concat(this.radius," 0 1 1 ").concat(this.maxX()," ").concat(this.maxY())}},{key:"valuePath",value:function(){return"M ".concat(this.zeroX()," ").concat(this.zeroY()," A ").concat(this.radius," ").concat(this.radius," 0 ").concat(this.largeArc()," ").concat(this.sweep()," ").concat(this.valueX()," ").concat(this.valueY())}},{key:"zeroRadians",value:function(){return this.mapRange(this.props.min>0&&this.props.max>0?this.props.min:0,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"valueRadians",value:function(){return this.mapRange(this.props.value,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"minX",value:function(){return this.midX+Math.cos(this.minRadians)*this.radius}},{key:"minY",value:function(){return this.midY-Math.sin(this.minRadians)*this.radius}},{key:"maxX",value:function(){return this.midX+Math.cos(this.maxRadians)*this.radius}},{key:"maxY",value:function(){return this.midY-Math.sin(this.maxRadians)*this.radius}},{key:"zeroX",value:function(){return this.midX+Math.cos(this.zeroRadians())*this.radius}},{key:"zeroY",value:function(){return this.midY-Math.sin(this.zeroRadians())*this.radius}},{key:"valueX",value:function(){return this.midX+Math.cos(this.valueRadians())*this.radius}},{key:"valueY",value:function(){return this.midY-Math.sin(this.valueRadians())*this.radius}},{key:"largeArc",value:function(){return Math.abs(this.zeroRadians()-this.valueRadians())<Math.PI?0:1}},{key:"sweep",value:function(){return this.valueRadians()>this.zeroRadians()?0:1}},{key:"valueToDisplay",value:function(){return this.props.valueTemplate.replace("{value}",this.props.value.toString())}},{key:"render",value:function(){var e=this,n=t.classNames("p-knob p-component",{"p-disabled":this.props.disabled},this.props.className),o=this.props.showValue&&i.default.createElement("text",{x:50,y:57,textAnchor:"middle",fill:this.props.textColor,className:"p-knob-text",name:this.props.name},this.valueToDisplay());return i.default.createElement("div",{id:this.props.id,className:n,style:this.props.style,ref:function(t){return e.element=t}},i.default.createElement("svg",{viewBox:"0 0 100 100",width:this.props.size,height:this.props.size,onClick:this.onClick,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,onTouchEnd:this.onTouchEnd},i.default.createElement("path",{d:this.rangePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.rangeColor,className:"p-knob-range"}),i.default.createElement("path",{d:this.valuePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.valueColor,className:"p-knob-value"}),o))}}])&&s(d.prototype,f),v&&s(d,v),Object.defineProperty(d,"prototype",{writable:!1}),y}();v={id:null,style:null,className:null,value:null,size:100,disabled:!1,readOnly:!1,showValue:!0,step:1,min:0,max:100,strokeWidth:14,name:null,valueColor:"var(--primary-color, Black)",rangeColor:"var(--surface-d, LightGray)",textColor:"var(--text-color-secondary, Black)",valueTemplate:"{value}",onChange:null},(f="defaultProps")in(d=m)?Object.defineProperty(d,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):d[f]=v,exports.Knob=m;
|
package/knob/knob.esm.js
CHANGED
|
@@ -20,6 +20,9 @@ function _defineProperties(target, props) {
|
|
|
20
20
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
21
21
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
22
22
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
23
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
24
|
+
writable: false
|
|
25
|
+
});
|
|
23
26
|
return Constructor;
|
|
24
27
|
}
|
|
25
28
|
|
|
@@ -52,23 +55,20 @@ function _inherits(subClass, superClass) {
|
|
|
52
55
|
configurable: true
|
|
53
56
|
}
|
|
54
57
|
});
|
|
58
|
+
Object.defineProperty(subClass, "prototype", {
|
|
59
|
+
writable: false
|
|
60
|
+
});
|
|
55
61
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
function _typeof(obj) {
|
|
59
65
|
"@babel/helpers - typeof";
|
|
60
66
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
_typeof = function _typeof(obj) {
|
|
67
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return _typeof(obj);
|
|
67
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
68
|
+
return typeof obj;
|
|
69
|
+
} : function (obj) {
|
|
70
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
71
|
+
}, _typeof(obj);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
function _possibleConstructorReturn(self, call) {
|
package/knob/knob.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{Component as t}from"react";import{classNames as n}from"primereact/utils";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function
|
|
1
|
+
import e,{Component as t}from"react";import{classNames as n}from"primereact/utils";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var c,d,v,f=function(r){a(y,t);var u,c,d,v,f,m=(u=y,c=p(),function(){var e,t=l(u);if(c){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function y(e){var t;return i(this,y),(t=m.call(this,e)).state={},t.radius=40,t.midX=50,t.midY=50,t.minRadians=4*Math.PI/3,t.maxRadians=-Math.PI/3,t.onClick=t.onClick.bind(s(t)),t.onMouseDown=t.onMouseDown.bind(s(t)),t.onMouseUp=t.onMouseUp.bind(s(t)),t.onTouchStart=t.onTouchStart.bind(s(t)),t.onTouchEnd=t.onTouchEnd.bind(s(t)),t.onMouseMove=t.onMouseMove.bind(s(t)),t.onTouchMove=t.onTouchMove.bind(s(t)),t}return d=y,(v=[{key:"updateValue",value:function(e,t){var n=Math.atan2(this.props.size/2-t,e-this.props.size/2),i=-Math.PI/2-Math.PI/6;this.updateModel(n,i)}},{key:"updateModel",value:function(e,t){var n;if(e>this.maxRadians)n=this.mapRange(e,this.minRadians,this.maxRadians,this.props.min,this.props.max);else{if(!(e<t))return;n=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.props.min,this.props.max)}if(this.props.onChange){var i=Math.round((n-this.props.min)/this.props.step)*this.props.step+this.props.min;this.props.onChange({value:i})}}},{key:"mapRange",value:function(e,t,n,i,o){return(e-t)*(o-i)/(n-t)+i}},{key:"onClick",value:function(e){this.props.disabled||this.props.readOnly||this.updateValue(e.nativeEvent.offsetX,e.nativeEvent.offsetY)}},{key:"onMouseDown",value:function(e){this.props.disabled||this.props.readOnly||(this.windowMouseMoveListener=this.onMouseMove,this.windowMouseUpListener=this.onMouseUp,window.addEventListener("mousemove",this.windowMouseMoveListener),window.addEventListener("mouseup",this.windowMouseUpListener),e.preventDefault())}},{key:"onMouseUp",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("mousemove",this.windowMouseMoveListener),window.removeEventListener("mouseup",this.windowMouseUpListener),this.windowMouseMoveListener=null,this.windowMouseUpListener=null,e.preventDefault())}},{key:"onTouchStart",value:function(e){this.props.disabled||this.props.readOnly||(this.windowTouchMoveListener=this.onTouchMove,this.windowTouchEndListener=this.onTouchEnd,window.addEventListener("touchmove",this.windowTouchMoveListener,{passive:!1,cancelable:!1}),window.addEventListener("touchend",this.windowTouchEndListener))}},{key:"onTouchEnd",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("touchmove",this.windowTouchMoveListener),window.removeEventListener("touchend",this.windowTouchEndListener),this.windowTouchMoveListener=null,this.windowTouchEndListener=null)}},{key:"onMouseMove",value:function(e){this.props.disabled||this.props.readOnly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())}},{key:"onTouchMove",value:function(e){if(!this.props.disabled&&!this.props.readOnly&&1===e.touches.length){var t=this.element.getBoundingClientRect(),n=e.targetTouches.item(0);this.updateValue(n.clientX-t.left,n.clientY-t.top),e.preventDefault()}}},{key:"rangePath",value:function(){return"M ".concat(this.minX()," ").concat(this.minY()," A ").concat(this.radius," ").concat(this.radius," 0 1 1 ").concat(this.maxX()," ").concat(this.maxY())}},{key:"valuePath",value:function(){return"M ".concat(this.zeroX()," ").concat(this.zeroY()," A ").concat(this.radius," ").concat(this.radius," 0 ").concat(this.largeArc()," ").concat(this.sweep()," ").concat(this.valueX()," ").concat(this.valueY())}},{key:"zeroRadians",value:function(){return this.mapRange(this.props.min>0&&this.props.max>0?this.props.min:0,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"valueRadians",value:function(){return this.mapRange(this.props.value,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"minX",value:function(){return this.midX+Math.cos(this.minRadians)*this.radius}},{key:"minY",value:function(){return this.midY-Math.sin(this.minRadians)*this.radius}},{key:"maxX",value:function(){return this.midX+Math.cos(this.maxRadians)*this.radius}},{key:"maxY",value:function(){return this.midY-Math.sin(this.maxRadians)*this.radius}},{key:"zeroX",value:function(){return this.midX+Math.cos(this.zeroRadians())*this.radius}},{key:"zeroY",value:function(){return this.midY-Math.sin(this.zeroRadians())*this.radius}},{key:"valueX",value:function(){return this.midX+Math.cos(this.valueRadians())*this.radius}},{key:"valueY",value:function(){return this.midY-Math.sin(this.valueRadians())*this.radius}},{key:"largeArc",value:function(){return Math.abs(this.zeroRadians()-this.valueRadians())<Math.PI?0:1}},{key:"sweep",value:function(){return this.valueRadians()>this.zeroRadians()?0:1}},{key:"valueToDisplay",value:function(){return this.props.valueTemplate.replace("{value}",this.props.value.toString())}},{key:"render",value:function(){var t=this,i=n("p-knob p-component",{"p-disabled":this.props.disabled},this.props.className),o=this.props.showValue&&e.createElement("text",{x:50,y:57,textAnchor:"middle",fill:this.props.textColor,className:"p-knob-text",name:this.props.name},this.valueToDisplay());return e.createElement("div",{id:this.props.id,className:i,style:this.props.style,ref:function(e){return t.element=e}},e.createElement("svg",{viewBox:"0 0 100 100",width:this.props.size,height:this.props.size,onClick:this.onClick,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,onTouchEnd:this.onTouchEnd},e.createElement("path",{d:this.rangePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.rangeColor,className:"p-knob-range"}),e.createElement("path",{d:this.valuePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.valueColor,className:"p-knob-value"}),o))}}])&&o(d.prototype,v),f&&o(d,f),Object.defineProperty(d,"prototype",{writable:!1}),y}();v={id:null,style:null,className:null,value:null,size:100,disabled:!1,readOnly:!1,showValue:!0,step:1,min:0,max:100,strokeWidth:14,name:null,valueColor:"var(--primary-color, Black)",rangeColor:"var(--surface-d, LightGray)",textColor:"var(--text-color-secondary, Black)",valueTemplate:"{value}",onChange:null},(d="defaultProps")in(c=f)?Object.defineProperty(c,d,{value:v,enumerable:!0,configurable:!0,writable:!0}):c[d]=v;export{f as Knob};
|
package/knob/knob.js
CHANGED
|
@@ -25,6 +25,9 @@ this.primereact.knob = (function (exports, React, utils) {
|
|
|
25
25
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
26
26
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
27
27
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
29
|
+
writable: false
|
|
30
|
+
});
|
|
28
31
|
return Constructor;
|
|
29
32
|
}
|
|
30
33
|
|
|
@@ -57,23 +60,20 @@ this.primereact.knob = (function (exports, React, utils) {
|
|
|
57
60
|
configurable: true
|
|
58
61
|
}
|
|
59
62
|
});
|
|
63
|
+
Object.defineProperty(subClass, "prototype", {
|
|
64
|
+
writable: false
|
|
65
|
+
});
|
|
60
66
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
function _typeof(obj) {
|
|
64
70
|
"@babel/helpers - typeof";
|
|
65
71
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
_typeof = function _typeof(obj) {
|
|
72
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return _typeof(obj);
|
|
72
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
73
|
+
return typeof obj;
|
|
74
|
+
} : function (obj) {
|
|
75
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
76
|
+
}, _typeof(obj);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
function _possibleConstructorReturn(self, call) {
|
package/knob/knob.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.knob=function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(t);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return r(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var f,v,m,y=function(e){h(m,e);var t,i,u,l,f,v=(t=m,i=d(),function(){var e,n=p(t);if(i){var o=p(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return c(this,e)});function m(e){var t;return s(this,m),(t=v.call(this,e)).state={},t.radius=40,t.midX=50,t.midY=50,t.minRadians=4*Math.PI/3,t.maxRadians=-Math.PI/3,t.onClick=t.onClick.bind(r(t)),t.onMouseDown=t.onMouseDown.bind(r(t)),t.onMouseUp=t.onMouseUp.bind(r(t)),t.onTouchStart=t.onTouchStart.bind(r(t)),t.onTouchEnd=t.onTouchEnd.bind(r(t)),t.onMouseMove=t.onMouseMove.bind(r(t)),t.onTouchMove=t.onTouchMove.bind(r(t)),t}return u=m,(l=[{key:"updateValue",value:function(e,t){var n=Math.atan2(this.props.size/2-t,e-this.props.size/2),i=-Math.PI/2-Math.PI/6;this.updateModel(n,i)}},{key:"updateModel",value:function(e,t){var n;if(e>this.maxRadians)n=this.mapRange(e,this.minRadians,this.maxRadians,this.props.min,this.props.max);else{if(!(e<t))return;n=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.props.min,this.props.max)}if(this.props.onChange){var i=Math.round((n-this.props.min)/this.props.step)*this.props.step+this.props.min;this.props.onChange({value:i})}}},{key:"mapRange",value:function(e,t,n,i,o){return(e-t)*(o-i)/(n-t)+i}},{key:"onClick",value:function(e){this.props.disabled||this.props.readOnly||this.updateValue(e.nativeEvent.offsetX,e.nativeEvent.offsetY)}},{key:"onMouseDown",value:function(e){this.props.disabled||this.props.readOnly||(this.windowMouseMoveListener=this.onMouseMove,this.windowMouseUpListener=this.onMouseUp,window.addEventListener("mousemove",this.windowMouseMoveListener),window.addEventListener("mouseup",this.windowMouseUpListener),e.preventDefault())}},{key:"onMouseUp",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("mousemove",this.windowMouseMoveListener),window.removeEventListener("mouseup",this.windowMouseUpListener),this.windowMouseMoveListener=null,this.windowMouseUpListener=null,e.preventDefault())}},{key:"onTouchStart",value:function(e){this.props.disabled||this.props.readOnly||(this.windowTouchMoveListener=this.onTouchMove,this.windowTouchEndListener=this.onTouchEnd,window.addEventListener("touchmove",this.windowTouchMoveListener,{passive:!1,cancelable:!1}),window.addEventListener("touchend",this.windowTouchEndListener))}},{key:"onTouchEnd",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("touchmove",this.windowTouchMoveListener),window.removeEventListener("touchend",this.windowTouchEndListener),this.windowTouchMoveListener=null,this.windowTouchEndListener=null)}},{key:"onMouseMove",value:function(e){this.props.disabled||this.props.readOnly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())}},{key:"onTouchMove",value:function(e){if(!this.props.disabled&&!this.props.readOnly&&1===e.touches.length){var t=this.element.getBoundingClientRect(),n=e.targetTouches.item(0);this.updateValue(n.clientX-t.left,n.clientY-t.top),e.preventDefault()}}},{key:"rangePath",value:function(){return"M ".concat(this.minX()," ").concat(this.minY()," A ").concat(this.radius," ").concat(this.radius," 0 1 1 ").concat(this.maxX()," ").concat(this.maxY())}},{key:"valuePath",value:function(){return"M ".concat(this.zeroX()," ").concat(this.zeroY()," A ").concat(this.radius," ").concat(this.radius," 0 ").concat(this.largeArc()," ").concat(this.sweep()," ").concat(this.valueX()," ").concat(this.valueY())}},{key:"zeroRadians",value:function(){return this.mapRange(this.props.min>0&&this.props.max>0?this.props.min:0,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"valueRadians",value:function(){return this.mapRange(this.props.value,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"minX",value:function(){return this.midX+Math.cos(this.minRadians)*this.radius}},{key:"minY",value:function(){return this.midY-Math.sin(this.minRadians)*this.radius}},{key:"maxX",value:function(){return this.midX+Math.cos(this.maxRadians)*this.radius}},{key:"maxY",value:function(){return this.midY-Math.sin(this.maxRadians)*this.radius}},{key:"zeroX",value:function(){return this.midX+Math.cos(this.zeroRadians())*this.radius}},{key:"zeroY",value:function(){return this.midY-Math.sin(this.zeroRadians())*this.radius}},{key:"valueX",value:function(){return this.midX+Math.cos(this.valueRadians())*this.radius}},{key:"valueY",value:function(){return this.midY-Math.sin(this.valueRadians())*this.radius}},{key:"largeArc",value:function(){return Math.abs(this.zeroRadians()-this.valueRadians())<Math.PI?0:1}},{key:"sweep",value:function(){return this.valueRadians()>this.zeroRadians()?0:1}},{key:"valueToDisplay",value:function(){return this.props.valueTemplate.replace("{value}",this.props.value.toString())}},{key:"render",value:function(){var e=this,t=n.classNames("p-knob p-component",{"p-disabled":this.props.disabled},this.props.className),i=this.props.showValue&&o.default.createElement("text",{x:50,y:57,textAnchor:"middle",fill:this.props.textColor,className:"p-knob-text",name:this.props.name},this.valueToDisplay());return o.default.createElement("div",{id:this.props.id,className:t,style:this.props.style,ref:function(t){return e.element=t}},o.default.createElement("svg",{viewBox:"0 0 100 100",width:this.props.size,height:this.props.size,onClick:this.onClick,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,onTouchEnd:this.onTouchEnd},o.default.createElement("path",{d:this.rangePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.rangeColor,className:"p-knob-range"}),o.default.createElement("path",{d:this.valuePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.valueColor,className:"p-knob-value"}),i))}}])&&a(u.prototype,l),f&&a(u,f),m}(t.Component);return m={id:null,style:null,className:null,value:null,size:100,disabled:!1,readOnly:!1,showValue:!0,step:1,min:0,max:100,strokeWidth:14,name:null,valueColor:"var(--primary-color, Black)",rangeColor:"var(--surface-d, LightGray)",textColor:"var(--text-color-secondary, Black)",valueTemplate:"{value}",onChange:null},(v="defaultProps")in(f=y)?Object.defineProperty(f,v,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[v]=m,e.Knob=y,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.knob=function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(t);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return r(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var f,v,m,y=function(e){h(m,e);var t,i,u,l,f,v=(t=m,i=d(),function(){var e,n=p(t);if(i){var o=p(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return c(this,e)});function m(e){var t;return s(this,m),(t=v.call(this,e)).state={},t.radius=40,t.midX=50,t.midY=50,t.minRadians=4*Math.PI/3,t.maxRadians=-Math.PI/3,t.onClick=t.onClick.bind(r(t)),t.onMouseDown=t.onMouseDown.bind(r(t)),t.onMouseUp=t.onMouseUp.bind(r(t)),t.onTouchStart=t.onTouchStart.bind(r(t)),t.onTouchEnd=t.onTouchEnd.bind(r(t)),t.onMouseMove=t.onMouseMove.bind(r(t)),t.onTouchMove=t.onTouchMove.bind(r(t)),t}return u=m,(l=[{key:"updateValue",value:function(e,t){var n=Math.atan2(this.props.size/2-t,e-this.props.size/2),i=-Math.PI/2-Math.PI/6;this.updateModel(n,i)}},{key:"updateModel",value:function(e,t){var n;if(e>this.maxRadians)n=this.mapRange(e,this.minRadians,this.maxRadians,this.props.min,this.props.max);else{if(!(e<t))return;n=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.props.min,this.props.max)}if(this.props.onChange){var i=Math.round((n-this.props.min)/this.props.step)*this.props.step+this.props.min;this.props.onChange({value:i})}}},{key:"mapRange",value:function(e,t,n,i,o){return(e-t)*(o-i)/(n-t)+i}},{key:"onClick",value:function(e){this.props.disabled||this.props.readOnly||this.updateValue(e.nativeEvent.offsetX,e.nativeEvent.offsetY)}},{key:"onMouseDown",value:function(e){this.props.disabled||this.props.readOnly||(this.windowMouseMoveListener=this.onMouseMove,this.windowMouseUpListener=this.onMouseUp,window.addEventListener("mousemove",this.windowMouseMoveListener),window.addEventListener("mouseup",this.windowMouseUpListener),e.preventDefault())}},{key:"onMouseUp",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("mousemove",this.windowMouseMoveListener),window.removeEventListener("mouseup",this.windowMouseUpListener),this.windowMouseMoveListener=null,this.windowMouseUpListener=null,e.preventDefault())}},{key:"onTouchStart",value:function(e){this.props.disabled||this.props.readOnly||(this.windowTouchMoveListener=this.onTouchMove,this.windowTouchEndListener=this.onTouchEnd,window.addEventListener("touchmove",this.windowTouchMoveListener,{passive:!1,cancelable:!1}),window.addEventListener("touchend",this.windowTouchEndListener))}},{key:"onTouchEnd",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("touchmove",this.windowTouchMoveListener),window.removeEventListener("touchend",this.windowTouchEndListener),this.windowTouchMoveListener=null,this.windowTouchEndListener=null)}},{key:"onMouseMove",value:function(e){this.props.disabled||this.props.readOnly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())}},{key:"onTouchMove",value:function(e){if(!this.props.disabled&&!this.props.readOnly&&1===e.touches.length){var t=this.element.getBoundingClientRect(),n=e.targetTouches.item(0);this.updateValue(n.clientX-t.left,n.clientY-t.top),e.preventDefault()}}},{key:"rangePath",value:function(){return"M ".concat(this.minX()," ").concat(this.minY()," A ").concat(this.radius," ").concat(this.radius," 0 1 1 ").concat(this.maxX()," ").concat(this.maxY())}},{key:"valuePath",value:function(){return"M ".concat(this.zeroX()," ").concat(this.zeroY()," A ").concat(this.radius," ").concat(this.radius," 0 ").concat(this.largeArc()," ").concat(this.sweep()," ").concat(this.valueX()," ").concat(this.valueY())}},{key:"zeroRadians",value:function(){return this.mapRange(this.props.min>0&&this.props.max>0?this.props.min:0,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"valueRadians",value:function(){return this.mapRange(this.props.value,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"minX",value:function(){return this.midX+Math.cos(this.minRadians)*this.radius}},{key:"minY",value:function(){return this.midY-Math.sin(this.minRadians)*this.radius}},{key:"maxX",value:function(){return this.midX+Math.cos(this.maxRadians)*this.radius}},{key:"maxY",value:function(){return this.midY-Math.sin(this.maxRadians)*this.radius}},{key:"zeroX",value:function(){return this.midX+Math.cos(this.zeroRadians())*this.radius}},{key:"zeroY",value:function(){return this.midY-Math.sin(this.zeroRadians())*this.radius}},{key:"valueX",value:function(){return this.midX+Math.cos(this.valueRadians())*this.radius}},{key:"valueY",value:function(){return this.midY-Math.sin(this.valueRadians())*this.radius}},{key:"largeArc",value:function(){return Math.abs(this.zeroRadians()-this.valueRadians())<Math.PI?0:1}},{key:"sweep",value:function(){return this.valueRadians()>this.zeroRadians()?0:1}},{key:"valueToDisplay",value:function(){return this.props.valueTemplate.replace("{value}",this.props.value.toString())}},{key:"render",value:function(){var e=this,t=n.classNames("p-knob p-component",{"p-disabled":this.props.disabled},this.props.className),i=this.props.showValue&&o.default.createElement("text",{x:50,y:57,textAnchor:"middle",fill:this.props.textColor,className:"p-knob-text",name:this.props.name},this.valueToDisplay());return o.default.createElement("div",{id:this.props.id,className:t,style:this.props.style,ref:function(t){return e.element=t}},o.default.createElement("svg",{viewBox:"0 0 100 100",width:this.props.size,height:this.props.size,onClick:this.onClick,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,onTouchEnd:this.onTouchEnd},o.default.createElement("path",{d:this.rangePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.rangeColor,className:"p-knob-range"}),o.default.createElement("path",{d:this.valuePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.valueColor,className:"p-knob-value"}),i))}}])&&a(u.prototype,l),f&&a(u,f),Object.defineProperty(u,"prototype",{writable:!1}),m}(t.Component);return m={id:null,style:null,className:null,value:null,size:100,disabled:!1,readOnly:!1,showValue:!0,step:1,min:0,max:100,strokeWidth:14,name:null,valueColor:"var(--primary-color, Black)",rangeColor:"var(--surface-d, LightGray)",textColor:"var(--text-color-secondary, Black)",valueTemplate:"{value}",onChange:null},(v="defaultProps")in(f=y)?Object.defineProperty(f,v,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[v]=m,e.Knob=y,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);
|
package/listbox/listbox.cjs.js
CHANGED
|
@@ -86,6 +86,9 @@ function _defineProperties(target, props) {
|
|
|
86
86
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
87
87
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
88
88
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
89
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
90
|
+
writable: false
|
|
91
|
+
});
|
|
89
92
|
return Constructor;
|
|
90
93
|
}
|
|
91
94
|
|
|
@@ -118,23 +121,20 @@ function _inherits(subClass, superClass) {
|
|
|
118
121
|
configurable: true
|
|
119
122
|
}
|
|
120
123
|
});
|
|
124
|
+
Object.defineProperty(subClass, "prototype", {
|
|
125
|
+
writable: false
|
|
126
|
+
});
|
|
121
127
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
122
128
|
}
|
|
123
129
|
|
|
124
130
|
function _typeof(obj) {
|
|
125
131
|
"@babel/helpers - typeof";
|
|
126
132
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
_typeof = function _typeof(obj) {
|
|
133
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
return _typeof(obj);
|
|
133
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
134
|
+
return typeof obj;
|
|
135
|
+
} : function (obj) {
|
|
136
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
137
|
+
}, _typeof(obj);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
function _possibleConstructorReturn(self, call) {
|
|
@@ -352,15 +352,15 @@ _defineProperty(ListBoxHeader, "defaultProps", {
|
|
|
352
352
|
onFilter: null
|
|
353
353
|
});
|
|
354
354
|
|
|
355
|
-
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
|
|
355
|
+
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; } } }; }
|
|
356
356
|
|
|
357
357
|
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); }
|
|
358
358
|
|
|
359
359
|
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; }
|
|
360
360
|
|
|
361
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
361
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
362
362
|
|
|
363
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
363
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
364
364
|
|
|
365
365
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
366
366
|
|