primereact 10.6.6 → 10.8.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/README.md +1 -0
- package/api/api.cjs.js +18 -14
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +3 -3
- package/api/api.esm.js +18 -14
- package/api/api.esm.min.js +1 -1
- package/api/api.js +18 -14
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +2 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +4 -3
- package/autocomplete/autocomplete.esm.js +2 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +2 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/button/button.cjs.js +1 -0
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +2 -2
- package/button/button.esm.js +1 -0
- package/button/button.esm.min.js +1 -1
- package/button/button.js +1 -0
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +87 -49
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +10 -11
- package/calendar/calendar.esm.js +87 -49
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +87 -49
- package/calendar/calendar.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +4 -3
- package/checkbox/checkbox.cjs.js +64 -0
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +12 -0
- package/checkbox/checkbox.esm.js +64 -0
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +64 -0
- package/checkbox/checkbox.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +18 -4
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +19 -5
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +18 -4
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +26 -16
- package/core/core.js +172 -88
- package/core/core.min.js +13 -13
- package/csstransition/csstransition.cjs.js +0 -6
- package/csstransition/csstransition.esm.js +0 -6
- package/csstransition/csstransition.js +0 -6
- package/datatable/datatable.cjs.js +145 -92
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +38 -2
- package/datatable/datatable.esm.js +145 -92
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +145 -92
- package/datatable/datatable.min.js +1 -1
- package/dialog/dialog.cjs.js +16 -3
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +16 -3
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +16 -3
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.cjs.js +15 -7
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +15 -7
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +15 -7
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +12 -2
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +12 -2
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +12 -2
- package/editor/editor.min.js +1 -1
- package/focustrap/focustrap.cjs.js +12 -1
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +12 -1
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +12 -1
- package/focustrap/focustrap.min.js +1 -1
- package/hooks/hooks.cjs.js +2 -1
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +2 -1
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +2 -1
- package/hooks/hooks.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +1 -16
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +1 -16
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +1 -16
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +1 -16
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +1 -16
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +1 -16
- package/icons/sortamountupalt/index.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +7 -4
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +7 -4
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +7 -4
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +1 -2
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.d.ts +2 -3
- package/inputotp/inputotp.esm.js +1 -2
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +1 -2
- package/inputotp/inputotp.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/listbox/listbox.cjs.js +27 -35
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +27 -35
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +27 -35
- package/listbox/listbox.min.js +1 -1
- package/mention/mention.cjs.js +1 -0
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +1 -0
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +1 -0
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +3 -3
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +3 -3
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +3 -3
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +1 -1
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +9 -0
- package/menubar/menubar.esm.js +1 -1
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +1 -1
- package/menubar/menubar.min.js +1 -1
- package/messages/messages.d.ts +21 -0
- package/metergroup/metergroup.cjs.js +3 -3
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.d.ts +3 -10
- package/metergroup/metergroup.esm.js +3 -3
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +3 -3
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +17 -5
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +1 -9
- package/multiselect/multiselect.esm.js +17 -5
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +17 -5
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +9 -0
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +9 -0
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +9 -0
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +3 -2
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +3 -2
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +3 -2
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +0 -1
- package/organizationchart/organizationchart.esm.js +0 -1
- package/organizationchart/organizationchart.js +0 -1
- package/package.json +4 -4
- package/paginator/paginator.cjs.js +9 -7
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +9 -7
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +9 -7
- package/paginator/paginator.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +2 -2
- package/passthrough/tailwind/index.cjs.js +10 -81
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +10 -81
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +10 -81
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +1 -0
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +1 -0
- package/password/password.esm.min.js +1 -1
- package/password/password.js +1 -0
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +9 -7
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +9 -7
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +9 -7
- package/picklist/picklist.min.js +1 -1
- package/primereact.all.cjs.js +557 -448
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +557 -448
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +557 -448
- package/primereact.all.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +7 -4
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +7 -4
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +7 -4
- package/radiobutton/radiobutton.min.js +1 -1
- package/resources/images/line.gif +0 -0
- package/resources/themes/lara-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/sidebar/sidebar.cjs.js +1 -1
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +4 -0
- package/sidebar/sidebar.esm.js +1 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +0 -1
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +0 -1
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +0 -1
- package/splitbutton/splitbutton.min.js +1 -1
- package/stepper/stepper.cjs.js +5 -0
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +6 -1
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +5 -0
- package/stepper/stepper.min.js +1 -1
- package/tabview/tabview.cjs.js +0 -1
- package/tabview/tabview.d.ts +1 -1
- package/tabview/tabview.esm.js +0 -1
- package/tabview/tabview.js +0 -1
- package/tieredmenu/tieredmenu.cjs.js +0 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +0 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +0 -1
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/toast/toast.cjs.js +9 -7
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +1 -1
- package/toast/toast.esm.js +9 -7
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +9 -7
- package/toast/toast.min.js +1 -1
- package/tooltip/tooltip.cjs.js +10 -1
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +11 -2
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +10 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +5 -0
- package/tree/tree.cjs.js +20 -7
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +20 -7
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +20 -7
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +0 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +0 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +0 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +9 -2
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +6 -6
- package/treetable/treetable.esm.js +9 -2
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +9 -2
- package/treetable/treetable.min.js +1 -1
- package/utils/utils.cjs.js +8 -6
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -0
- package/utils/utils.esm.js +8 -6
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +8 -6
- package/utils/utils.min.js +1 -1
- package/web-types.json +27 -9
package/primereact.all.esm.js
CHANGED
|
@@ -218,7 +218,7 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
218
218
|
function DomHandler() {
|
|
219
219
|
_classCallCheck(this, DomHandler);
|
|
220
220
|
}
|
|
221
|
-
_createClass(DomHandler, null, [{
|
|
221
|
+
return _createClass(DomHandler, null, [{
|
|
222
222
|
key: "innerWidth",
|
|
223
223
|
value: function innerWidth(el) {
|
|
224
224
|
if (el) {
|
|
@@ -1448,7 +1448,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
1448
1448
|
return false;
|
|
1449
1449
|
}
|
|
1450
1450
|
}]);
|
|
1451
|
-
return DomHandler;
|
|
1452
1451
|
}();
|
|
1453
1452
|
/**
|
|
1454
1453
|
* All data- properties like data-test-id
|
|
@@ -1491,7 +1490,7 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
1491
1490
|
function ObjectUtils() {
|
|
1492
1491
|
_classCallCheck(this, ObjectUtils);
|
|
1493
1492
|
}
|
|
1494
|
-
_createClass(ObjectUtils, null, [{
|
|
1493
|
+
return _createClass(ObjectUtils, null, [{
|
|
1495
1494
|
key: "equals",
|
|
1496
1495
|
value: function equals(obj1, obj2, field) {
|
|
1497
1496
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') {
|
|
@@ -1860,6 +1859,11 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
1860
1859
|
value: function isLetter(_char2) {
|
|
1861
1860
|
return /^[a-zA-Z\u00C0-\u017F]$/.test(_char2);
|
|
1862
1861
|
}
|
|
1862
|
+
}, {
|
|
1863
|
+
key: "isScalar",
|
|
1864
|
+
value: function isScalar(value) {
|
|
1865
|
+
return value != null && (typeof value === 'string' || typeof value === 'number' || typeof value === 'bigint' || typeof value === 'boolean');
|
|
1866
|
+
}
|
|
1863
1867
|
|
|
1864
1868
|
/**
|
|
1865
1869
|
* Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
|
|
@@ -2013,16 +2017,15 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
2013
2017
|
}
|
|
2014
2018
|
}
|
|
2015
2019
|
}]);
|
|
2016
|
-
return ObjectUtils;
|
|
2017
2020
|
}();
|
|
2018
2021
|
|
|
2019
|
-
function ownKeys$
|
|
2020
|
-
function _objectSpread$
|
|
2022
|
+
function ownKeys$20(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2023
|
+
function _objectSpread$20(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$20(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$20(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2021
2024
|
var IconUtils = /*#__PURE__*/function () {
|
|
2022
2025
|
function IconUtils() {
|
|
2023
2026
|
_classCallCheck(this, IconUtils);
|
|
2024
2027
|
}
|
|
2025
|
-
_createClass(IconUtils, null, [{
|
|
2028
|
+
return _createClass(IconUtils, null, [{
|
|
2026
2029
|
key: "getJSXIcon",
|
|
2027
2030
|
value: function getJSXIcon(icon) {
|
|
2028
2031
|
var iconProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -2035,7 +2038,7 @@ var IconUtils = /*#__PURE__*/function () {
|
|
|
2035
2038
|
className: className
|
|
2036
2039
|
}));
|
|
2037
2040
|
if (iconType !== 'string') {
|
|
2038
|
-
var defaultContentOptions = _objectSpread$
|
|
2041
|
+
var defaultContentOptions = _objectSpread$20({
|
|
2039
2042
|
iconProps: iconProps,
|
|
2040
2043
|
element: content
|
|
2041
2044
|
}, options);
|
|
@@ -2045,11 +2048,10 @@ var IconUtils = /*#__PURE__*/function () {
|
|
|
2045
2048
|
return content;
|
|
2046
2049
|
}
|
|
2047
2050
|
}]);
|
|
2048
|
-
return IconUtils;
|
|
2049
2051
|
}();
|
|
2050
2052
|
|
|
2051
|
-
function ownKeys$
|
|
2052
|
-
function _objectSpread$
|
|
2053
|
+
function ownKeys$1$(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2054
|
+
function _objectSpread$1$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2053
2055
|
function mask(el, options) {
|
|
2054
2056
|
var defaultOptions = {
|
|
2055
2057
|
mask: null,
|
|
@@ -2062,7 +2064,7 @@ function mask(el, options) {
|
|
|
2062
2064
|
onFocus: null,
|
|
2063
2065
|
onBlur: null
|
|
2064
2066
|
};
|
|
2065
|
-
options = _objectSpread$
|
|
2067
|
+
options = _objectSpread$1$(_objectSpread$1$({}, defaultOptions), options);
|
|
2066
2068
|
var tests;
|
|
2067
2069
|
var partialPosition;
|
|
2068
2070
|
var len;
|
|
@@ -2502,8 +2504,8 @@ function mask(el, options) {
|
|
|
2502
2504
|
};
|
|
2503
2505
|
}
|
|
2504
2506
|
|
|
2505
|
-
function ownKeys$
|
|
2506
|
-
function _objectSpread$
|
|
2507
|
+
function ownKeys$1_(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2508
|
+
function _objectSpread$1_(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1_(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1_(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2507
2509
|
/**
|
|
2508
2510
|
* Merges properties together taking an Array of props and merging into one single set of
|
|
2509
2511
|
* properties. The options can contain a "classNameMergeFunction" which can be something
|
|
@@ -2530,7 +2532,7 @@ function mergeProps(props) {
|
|
|
2530
2532
|
var _loop = function _loop() {
|
|
2531
2533
|
var value = ps[key];
|
|
2532
2534
|
if (key === 'style') {
|
|
2533
|
-
merged.style = _objectSpread$
|
|
2535
|
+
merged.style = _objectSpread$1_(_objectSpread$1_({}, merged.style), ps.style);
|
|
2534
2536
|
} else if (key === 'className') {
|
|
2535
2537
|
var newClassName = '';
|
|
2536
2538
|
if (hasMergeFunction) {
|
|
@@ -2884,22 +2886,24 @@ _defineProperty(PrimeReact$1, "filterMatchModeOptions", {
|
|
|
2884
2886
|
_defineProperty(PrimeReact$1, "changeTheme", function (currentTheme, newTheme, linkElementId, callback) {
|
|
2885
2887
|
var _linkElement$parentNo;
|
|
2886
2888
|
var linkElement = document.getElementById(linkElementId);
|
|
2887
|
-
|
|
2889
|
+
if (!linkElement) {
|
|
2890
|
+
throw Error("Element with id ".concat(linkElementId, " not found."));
|
|
2891
|
+
}
|
|
2888
2892
|
var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2893
|
+
var newLinkElement = document.createElement('link');
|
|
2894
|
+
newLinkElement.setAttribute('rel', 'stylesheet');
|
|
2895
|
+
newLinkElement.setAttribute('id', linkElementId);
|
|
2896
|
+
newLinkElement.setAttribute('href', newThemeUrl);
|
|
2897
|
+
newLinkElement.addEventListener('load', function () {
|
|
2894
2898
|
if (callback) {
|
|
2895
2899
|
callback();
|
|
2896
2900
|
}
|
|
2897
2901
|
});
|
|
2898
|
-
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.
|
|
2902
|
+
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.replaceChild(newLinkElement, linkElement);
|
|
2899
2903
|
});
|
|
2900
2904
|
|
|
2901
|
-
function ownKeys$
|
|
2902
|
-
function _objectSpread$
|
|
2905
|
+
function ownKeys$1Z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2906
|
+
function _objectSpread$1Z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2903
2907
|
var locales = {
|
|
2904
2908
|
en: {
|
|
2905
2909
|
accept: 'Yes',
|
|
@@ -3037,7 +3041,7 @@ function addLocale(locale, options) {
|
|
|
3037
3041
|
if (locale.includes('__proto__') || locale.includes('prototype')) {
|
|
3038
3042
|
throw new Error('Unsafe locale detected');
|
|
3039
3043
|
}
|
|
3040
|
-
locales[locale] = _objectSpread$
|
|
3044
|
+
locales[locale] = _objectSpread$1Z(_objectSpread$1Z({}, locales.en), options);
|
|
3041
3045
|
}
|
|
3042
3046
|
function updateLocaleOption(key, value, locale) {
|
|
3043
3047
|
if (key.includes('__proto__') || key.includes('prototype')) {
|
|
@@ -3050,7 +3054,7 @@ function updateLocaleOptions(options, locale) {
|
|
|
3050
3054
|
throw new Error('Unsafe locale detected');
|
|
3051
3055
|
}
|
|
3052
3056
|
var _locale = locale || PrimeReact$1.locale;
|
|
3053
|
-
locales[_locale] = _objectSpread$
|
|
3057
|
+
locales[_locale] = _objectSpread$1Z(_objectSpread$1Z({}, locales[_locale]), options);
|
|
3054
3058
|
}
|
|
3055
3059
|
function localeOption(key, locale) {
|
|
3056
3060
|
if (key.includes('__proto__') || key.includes('prototype')) {
|
|
@@ -3514,18 +3518,20 @@ var PrimeReactProvider = function PrimeReactProvider(props) {
|
|
|
3514
3518
|
var changeTheme = function changeTheme(currentTheme, newTheme, linkElementId, callback) {
|
|
3515
3519
|
var _linkElement$parentNo;
|
|
3516
3520
|
var linkElement = document.getElementById(linkElementId);
|
|
3517
|
-
|
|
3521
|
+
if (!linkElement) {
|
|
3522
|
+
throw Error("Element with id ".concat(linkElementId, " not found."));
|
|
3523
|
+
}
|
|
3518
3524
|
var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3525
|
+
var newLinkElement = document.createElement('link');
|
|
3526
|
+
newLinkElement.setAttribute('rel', 'stylesheet');
|
|
3527
|
+
newLinkElement.setAttribute('id', linkElementId);
|
|
3528
|
+
newLinkElement.setAttribute('href', newThemeUrl);
|
|
3529
|
+
newLinkElement.addEventListener('load', function () {
|
|
3524
3530
|
if (callback) {
|
|
3525
3531
|
callback();
|
|
3526
3532
|
}
|
|
3527
3533
|
});
|
|
3528
|
-
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.
|
|
3534
|
+
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.replaceChild(newLinkElement, linkElement);
|
|
3529
3535
|
};
|
|
3530
3536
|
|
|
3531
3537
|
/**
|
|
@@ -3848,7 +3854,8 @@ var ESC_KEY_HANDLING_PRIORITIES = {
|
|
|
3848
3854
|
PASSWORD: 700,
|
|
3849
3855
|
CASCADE_SELECT: 800,
|
|
3850
3856
|
SPLIT_BUTTON: 900,
|
|
3851
|
-
SPEED_DIAL: 1000
|
|
3857
|
+
SPEED_DIAL: 1000,
|
|
3858
|
+
TOOLTIP: 1200
|
|
3852
3859
|
};
|
|
3853
3860
|
|
|
3854
3861
|
/**
|
|
@@ -4050,8 +4057,8 @@ var useMountEffect = function useMountEffect(fn) {
|
|
|
4050
4057
|
};
|
|
4051
4058
|
/* eslint-enable */
|
|
4052
4059
|
|
|
4053
|
-
function ownKeys$
|
|
4054
|
-
function _objectSpread$
|
|
4060
|
+
function ownKeys$1Y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4061
|
+
function _objectSpread$1Y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4055
4062
|
var useMouse = function useMouse() {
|
|
4056
4063
|
var _React$useState = React.useState({
|
|
4057
4064
|
x: 0,
|
|
@@ -4112,15 +4119,15 @@ var useMouse = function useMouse() {
|
|
|
4112
4119
|
}
|
|
4113
4120
|
};
|
|
4114
4121
|
}, [bindDocumentMoveEventListener, bindMouseMoveEventListener, unbindDocumentMoveEventListener, unbindMouseMoveEventListener]);
|
|
4115
|
-
return _objectSpread$
|
|
4122
|
+
return _objectSpread$1Y(_objectSpread$1Y({
|
|
4116
4123
|
ref: ref
|
|
4117
4124
|
}, position), {}, {
|
|
4118
4125
|
reset: reset
|
|
4119
4126
|
});
|
|
4120
4127
|
};
|
|
4121
4128
|
|
|
4122
|
-
function ownKeys$
|
|
4123
|
-
function _objectSpread$
|
|
4129
|
+
function ownKeys$1X(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4130
|
+
function _objectSpread$1X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1X(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1X(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4124
4131
|
function useMove(_ref) {
|
|
4125
4132
|
var _ref$mode = _ref.mode,
|
|
4126
4133
|
mode = _ref$mode === void 0 ? 'both' : _ref$mode,
|
|
@@ -4304,7 +4311,7 @@ function useMove(_ref) {
|
|
|
4304
4311
|
}
|
|
4305
4312
|
};
|
|
4306
4313
|
}, [bindMouseDownListener, bindTouchStartListener, positions, unbindMouseDownListener, unbindTouchStartListener]);
|
|
4307
|
-
return _objectSpread$
|
|
4314
|
+
return _objectSpread$1X(_objectSpread$1X({
|
|
4308
4315
|
ref: ref
|
|
4309
4316
|
}, positions), {}, {
|
|
4310
4317
|
active: active,
|
|
@@ -4718,8 +4725,8 @@ var useUpdateEffect = function useUpdateEffect(fn, deps) {
|
|
|
4718
4725
|
};
|
|
4719
4726
|
/* eslint-enable */
|
|
4720
4727
|
|
|
4721
|
-
function ownKeys$
|
|
4722
|
-
function _objectSpread$
|
|
4728
|
+
function ownKeys$1W(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4729
|
+
function _objectSpread$1W(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1W(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1W(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4723
4730
|
var baseStyle = "\n.p-hidden-accessible {\n border: 0;\n padding: 0;\n margin: -1px;\n position: absolute;\n height: 1px;\n width: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n.p-hidden-accessible input,\n.p-hidden-accessible select {\n transform: scale(0);\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: var(--scrollbar-width);\n}\n";
|
|
4724
4731
|
var buttonStyles = "\n.p-button {\n margin: 0;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-group .p-button {\n margin: 0;\n}\n\n.p-button-group .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-button-group .p-button:focus {\n position: relative;\n z-index: 1;\n}\n";
|
|
4725
4732
|
var inputTextStyles = "\n.p-inputtext {\n margin: 0;\n}\n\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -0.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label,\n.p-float-label .p-mention ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input:-webkit-autofill ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label,\n.p-float-label .p-tooltip-target-wrapper ~ label {\n top: -0.75rem;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-right > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > svg,\n.p-input-icon-left > .p-input-prefix,\n.p-input-icon-right > .p-input-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n";
|
|
@@ -4741,7 +4748,7 @@ var ComponentBase = {
|
|
|
4741
4748
|
extend: function extend() {
|
|
4742
4749
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4743
4750
|
var css = props.css;
|
|
4744
|
-
var defaultProps = _objectSpread$
|
|
4751
|
+
var defaultProps = _objectSpread$1W(_objectSpread$1W({}, props.defaultProps), ComponentBase.defaultProps);
|
|
4745
4752
|
var inlineStyles = {};
|
|
4746
4753
|
var getProps = function getProps(props) {
|
|
4747
4754
|
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -4804,10 +4811,10 @@ var ComponentBase = {
|
|
|
4804
4811
|
};
|
|
4805
4812
|
var globalPT = searchInDefaultPT ? isNestedParam ? _useGlobalPT(getPTClassValue, originalkey, params) : _useDefaultPT(getPTClassValue, originalkey, params) : undefined;
|
|
4806
4813
|
var self = isNestedParam ? undefined : _usePT(_getPT(obj, componentName), getPTClassValue, originalkey, params);
|
|
4807
|
-
var datasetProps = !isTransition && _objectSpread$
|
|
4814
|
+
var datasetProps = !isTransition && _objectSpread$1W(_objectSpread$1W({}, fkey === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), params.props && params.props.__parentMetadata ? ObjectUtils.toFlatCase(params.props.__TYPE) : componentName)), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), fkey));
|
|
4808
4815
|
return mergeSections || !mergeSections && self ? useMergeProps ? mergeProps([globalPT, self, Object.keys(datasetProps).length ? datasetProps : {}], {
|
|
4809
4816
|
classNameMergeFunction: (_ComponentBase$contex = ComponentBase.context.ptOptions) === null || _ComponentBase$contex === void 0 ? void 0 : _ComponentBase$contex.classNameMergeFunction
|
|
4810
|
-
}) : _objectSpread$
|
|
4817
|
+
}) : _objectSpread$1W(_objectSpread$1W(_objectSpread$1W({}, globalPT), self), Object.keys(datasetProps).length ? datasetProps : {}) : _objectSpread$1W(_objectSpread$1W({}, self), Object.keys(datasetProps).length ? datasetProps : {});
|
|
4811
4818
|
};
|
|
4812
4819
|
var setMetaData = function setMetaData() {
|
|
4813
4820
|
var metadata = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -4816,7 +4823,7 @@ var ComponentBase = {
|
|
|
4816
4823
|
var ptm = function ptm() {
|
|
4817
4824
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
4818
4825
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
4819
|
-
return getPTValue((props || {}).pt, key, _objectSpread$
|
|
4826
|
+
return getPTValue((props || {}).pt, key, _objectSpread$1W(_objectSpread$1W({}, metadata), params));
|
|
4820
4827
|
};
|
|
4821
4828
|
var ptmo = function ptmo() {
|
|
4822
4829
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -4830,7 +4837,7 @@ var ComponentBase = {
|
|
|
4830
4837
|
var cx = function cx() {
|
|
4831
4838
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
4832
4839
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
4833
|
-
return !isUnstyled() ? getOptionValue(css && css.classes, key, _objectSpread$
|
|
4840
|
+
return !isUnstyled() ? getOptionValue(css && css.classes, key, _objectSpread$1W({
|
|
4834
4841
|
props: props,
|
|
4835
4842
|
state: state
|
|
4836
4843
|
}, params)) : undefined;
|
|
@@ -4841,11 +4848,11 @@ var ComponentBase = {
|
|
|
4841
4848
|
var when = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
4842
4849
|
if (when) {
|
|
4843
4850
|
var _ComponentBase$contex2;
|
|
4844
|
-
var self = getOptionValue(css && css.inlineStyles, key, _objectSpread$
|
|
4851
|
+
var self = getOptionValue(css && css.inlineStyles, key, _objectSpread$1W({
|
|
4845
4852
|
props: props,
|
|
4846
4853
|
state: state
|
|
4847
4854
|
}, params));
|
|
4848
|
-
var base = getOptionValue(inlineStyles, key, _objectSpread$
|
|
4855
|
+
var base = getOptionValue(inlineStyles, key, _objectSpread$1W({
|
|
4849
4856
|
props: props,
|
|
4850
4857
|
state: state
|
|
4851
4858
|
}, params));
|
|
@@ -4863,7 +4870,7 @@ var ComponentBase = {
|
|
|
4863
4870
|
isUnstyled: isUnstyled
|
|
4864
4871
|
};
|
|
4865
4872
|
};
|
|
4866
|
-
return _objectSpread$
|
|
4873
|
+
return _objectSpread$1W(_objectSpread$1W({
|
|
4867
4874
|
getProps: getProps,
|
|
4868
4875
|
getOtherProps: getOtherProps,
|
|
4869
4876
|
setMetaData: setMetaData
|
|
@@ -4921,7 +4928,7 @@ var _usePT = function _usePT(pt, callback, key, params) {
|
|
|
4921
4928
|
}
|
|
4922
4929
|
return mergeSections || !mergeSections && value ? useMergeProps ? mergeProps([originalValue, value], {
|
|
4923
4930
|
classNameMergeFunction: classNameMergeFunction
|
|
4924
|
-
}) : _objectSpread$
|
|
4931
|
+
}) : _objectSpread$1W(_objectSpread$1W({}, originalValue), value) : value;
|
|
4925
4932
|
}
|
|
4926
4933
|
return fn(pt);
|
|
4927
4934
|
};
|
|
@@ -5008,8 +5015,8 @@ var CSSTransitionBase = {
|
|
|
5008
5015
|
}
|
|
5009
5016
|
};
|
|
5010
5017
|
|
|
5011
|
-
function ownKeys$
|
|
5012
|
-
function _objectSpread$
|
|
5018
|
+
function ownKeys$1V(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5019
|
+
function _objectSpread$1V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1V(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5013
5020
|
var CSSTransition = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
5014
5021
|
var props = CSSTransitionBase.getProps(inProps);
|
|
5015
5022
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -5018,32 +5025,26 @@ var CSSTransition = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5018
5025
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
5019
5026
|
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
5020
5027
|
};
|
|
5021
|
-
|
|
5022
5028
|
var onEntering = function onEntering(node, isAppearing) {
|
|
5023
5029
|
props.onEntering && props.onEntering(node, isAppearing); // component
|
|
5024
5030
|
props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
|
|
5025
5031
|
};
|
|
5026
|
-
|
|
5027
5032
|
var onEntered = function onEntered(node, isAppearing) {
|
|
5028
5033
|
props.onEntered && props.onEntered(node, isAppearing); // component
|
|
5029
5034
|
props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
|
|
5030
5035
|
};
|
|
5031
|
-
|
|
5032
5036
|
var onExit = function onExit(node) {
|
|
5033
5037
|
props.onExit && props.onExit(node); // component
|
|
5034
5038
|
props.options && props.options.onExit && props.options.onExit(node); // user option
|
|
5035
5039
|
};
|
|
5036
|
-
|
|
5037
5040
|
var onExiting = function onExiting(node) {
|
|
5038
5041
|
props.onExiting && props.onExiting(node); // component
|
|
5039
5042
|
props.options && props.options.onExiting && props.options.onExiting(node); // user option
|
|
5040
5043
|
};
|
|
5041
|
-
|
|
5042
5044
|
var onExited = function onExited(node) {
|
|
5043
5045
|
props.onExited && props.onExited(node); // component
|
|
5044
5046
|
props.options && props.options.onExited && props.options.onExited(node); // user option
|
|
5045
5047
|
};
|
|
5046
|
-
|
|
5047
5048
|
useUpdateEffect(function () {
|
|
5048
5049
|
if (disabled) {
|
|
5049
5050
|
// no animation
|
|
@@ -5077,7 +5078,7 @@ var CSSTransition = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5077
5078
|
timeout: props.timeout,
|
|
5078
5079
|
unmountOnExit: props.unmountOnExit
|
|
5079
5080
|
};
|
|
5080
|
-
var mergedProps = _objectSpread$
|
|
5081
|
+
var mergedProps = _objectSpread$1V(_objectSpread$1V(_objectSpread$1V({}, mutableProps), props.options || {}), immutableProps);
|
|
5081
5082
|
return /*#__PURE__*/React.createElement(CSSTransition$1, mergedProps, props.children);
|
|
5082
5083
|
});
|
|
5083
5084
|
CSSTransition.displayName = 'CSSTransition';
|
|
@@ -5216,8 +5217,8 @@ var AccordionTabBase = ComponentBase.extend({
|
|
|
5216
5217
|
}
|
|
5217
5218
|
});
|
|
5218
5219
|
|
|
5219
|
-
function ownKeys$
|
|
5220
|
-
function _objectSpread$
|
|
5220
|
+
function ownKeys$1U(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5221
|
+
function _objectSpread$1U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1U(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5221
5222
|
var AccordionTab = function AccordionTab() {};
|
|
5222
5223
|
var Accordion = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
5223
5224
|
var mergeProps = useMergeProps();
|
|
@@ -5241,7 +5242,7 @@ var Accordion = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5241
5242
|
activeIndex: activeIndexState
|
|
5242
5243
|
}
|
|
5243
5244
|
};
|
|
5244
|
-
var _AccordionBase$setMet = AccordionBase.setMetaData(_objectSpread$
|
|
5245
|
+
var _AccordionBase$setMet = AccordionBase.setMetaData(_objectSpread$1U({}, metaData)),
|
|
5245
5246
|
ptm = _AccordionBase$setMet.ptm,
|
|
5246
5247
|
ptmo = _AccordionBase$setMet.ptmo,
|
|
5247
5248
|
cx = _AccordionBase$setMet.cx,
|
|
@@ -5392,7 +5393,7 @@ var Accordion = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5392
5393
|
return null;
|
|
5393
5394
|
}
|
|
5394
5395
|
var createTabHeader = function createTabHeader(tab, selected, index) {
|
|
5395
|
-
var style = _objectSpread$
|
|
5396
|
+
var style = _objectSpread$1U(_objectSpread$1U({}, getTabProp(tab, 'style') || {}), getTabProp(tab, 'headerStyle') || {});
|
|
5396
5397
|
var headerId = idState + '_header_' + index;
|
|
5397
5398
|
var ariaControls = idState + '_content_' + index;
|
|
5398
5399
|
var tabIndex = getTabProp(tab, 'disabled') ? -1 : getTabProp(tab, 'tabIndex');
|
|
@@ -5406,7 +5407,7 @@ var Accordion = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5406
5407
|
className: cx('accordiontab.headericon')
|
|
5407
5408
|
}, getTabPT(tab, 'headericon', index));
|
|
5408
5409
|
var icon = selected ? props.collapseIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, headerIconProps) : props.expandIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, headerIconProps);
|
|
5409
|
-
var toggleIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
5410
|
+
var toggleIcon = IconUtils.getJSXIcon(icon, _objectSpread$1U({}, headerIconProps), {
|
|
5410
5411
|
props: props,
|
|
5411
5412
|
selected: selected
|
|
5412
5413
|
});
|
|
@@ -5439,7 +5440,7 @@ var Accordion = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5439
5440
|
return /*#__PURE__*/React.createElement("div", headerProps, /*#__PURE__*/React.createElement("a", headerActionProps, toggleIcon, header));
|
|
5440
5441
|
};
|
|
5441
5442
|
var createTabContent = function createTabContent(tab, selected, index) {
|
|
5442
|
-
var style = _objectSpread$
|
|
5443
|
+
var style = _objectSpread$1U(_objectSpread$1U({}, getTabProp(tab, 'style') || {}), getTabProp(tab, 'contentStyle') || {});
|
|
5443
5444
|
var contentId = idState + '_content_' + index;
|
|
5444
5445
|
var ariaLabelledby = idState + '_header_' + index;
|
|
5445
5446
|
var contentRef = /*#__PURE__*/React.createRef();
|
|
@@ -5529,13 +5530,13 @@ var BadgeBase = ComponentBase.extend({
|
|
|
5529
5530
|
}
|
|
5530
5531
|
});
|
|
5531
5532
|
|
|
5532
|
-
function ownKeys$
|
|
5533
|
-
function _objectSpread$
|
|
5533
|
+
function ownKeys$1T(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5534
|
+
function _objectSpread$1T(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1T(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1T(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5534
5535
|
var Badge = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
5535
5536
|
var mergeProps = useMergeProps();
|
|
5536
5537
|
var context = React.useContext(PrimeReactContext);
|
|
5537
5538
|
var props = BadgeBase.getProps(inProps, context);
|
|
5538
|
-
var _BadgeBase$setMetaDat = BadgeBase.setMetaData(_objectSpread$
|
|
5539
|
+
var _BadgeBase$setMetaDat = BadgeBase.setMetaData(_objectSpread$1T({
|
|
5539
5540
|
props: props
|
|
5540
5541
|
}, props.__parentMetadata)),
|
|
5541
5542
|
ptm = _BadgeBase$setMetaDat.ptm,
|
|
@@ -5599,8 +5600,8 @@ var RippleBase = ComponentBase.extend({
|
|
|
5599
5600
|
}
|
|
5600
5601
|
});
|
|
5601
5602
|
|
|
5602
|
-
function ownKeys$
|
|
5603
|
-
function _objectSpread$
|
|
5603
|
+
function ownKeys$1S(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5604
|
+
function _objectSpread$1S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5604
5605
|
var Ripple = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
5605
5606
|
var _React$useState = React.useState(false),
|
|
5606
5607
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -5619,7 +5620,7 @@ var Ripple = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
|
|
|
5619
5620
|
name: 'ripple',
|
|
5620
5621
|
manual: !isRippleActive
|
|
5621
5622
|
});
|
|
5622
|
-
var _RippleBase$setMetaDa = RippleBase.setMetaData(_objectSpread$
|
|
5623
|
+
var _RippleBase$setMetaDa = RippleBase.setMetaData(_objectSpread$1S({}, metaData)),
|
|
5623
5624
|
ptm = _RippleBase$setMetaDa.ptm,
|
|
5624
5625
|
cx = _RippleBase$setMetaDa.cx;
|
|
5625
5626
|
var getTarget = function getTarget() {
|
|
@@ -5794,6 +5795,7 @@ var TooltipBase = ComponentBase.extend({
|
|
|
5794
5795
|
autoZIndex: true,
|
|
5795
5796
|
baseZIndex: 0,
|
|
5796
5797
|
className: null,
|
|
5798
|
+
closeOnEscape: false,
|
|
5797
5799
|
content: null,
|
|
5798
5800
|
disabled: false,
|
|
5799
5801
|
event: null,
|
|
@@ -5824,8 +5826,8 @@ var TooltipBase = ComponentBase.extend({
|
|
|
5824
5826
|
}
|
|
5825
5827
|
});
|
|
5826
5828
|
|
|
5827
|
-
function ownKeys$
|
|
5828
|
-
function _objectSpread$
|
|
5829
|
+
function ownKeys$1R(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5830
|
+
function _objectSpread$1R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5829
5831
|
var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
5830
5832
|
var mergeProps = useMergeProps();
|
|
5831
5833
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -5864,6 +5866,13 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
5864
5866
|
useHandleStyle(TooltipBase.css.styles, isUnstyled, {
|
|
5865
5867
|
name: 'tooltip'
|
|
5866
5868
|
});
|
|
5869
|
+
useGlobalOnEscapeKey({
|
|
5870
|
+
callback: function callback() {
|
|
5871
|
+
hide();
|
|
5872
|
+
},
|
|
5873
|
+
when: props.closeOnEscape,
|
|
5874
|
+
priority: [ESC_KEY_HANDLING_PRIORITIES.TOOLTIP, 0]
|
|
5875
|
+
});
|
|
5867
5876
|
var elementRef = React.useRef(null);
|
|
5868
5877
|
var textRef = React.useRef(null);
|
|
5869
5878
|
var currentTargetRef = React.useRef(null);
|
|
@@ -6261,7 +6270,8 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
6261
6270
|
};
|
|
6262
6271
|
}, [visibleState]);
|
|
6263
6272
|
useUpdateEffect(function () {
|
|
6264
|
-
|
|
6273
|
+
var position = getPosition(currentTargetRef.current);
|
|
6274
|
+
if (visibleState && position !== 'mouse') {
|
|
6265
6275
|
applyDelay('updateDelay', function () {
|
|
6266
6276
|
updateText(currentTargetRef.current, function () {
|
|
6267
6277
|
align(currentTargetRef.current);
|
|
@@ -6309,7 +6319,7 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
6309
6319
|
}, TooltipBase.getOtherProps(props), ptm('root'));
|
|
6310
6320
|
var arrowProps = mergeProps({
|
|
6311
6321
|
className: cx('arrow'),
|
|
6312
|
-
style: sx('arrow', _objectSpread$
|
|
6322
|
+
style: sx('arrow', _objectSpread$1R({}, metaData))
|
|
6313
6323
|
}, ptm('arrow'));
|
|
6314
6324
|
var textProps = mergeProps({
|
|
6315
6325
|
className: cx('text')
|
|
@@ -6394,14 +6404,14 @@ var ButtonBase = ComponentBase.extend({
|
|
|
6394
6404
|
}
|
|
6395
6405
|
});
|
|
6396
6406
|
|
|
6397
|
-
function ownKeys$
|
|
6398
|
-
function _objectSpread$
|
|
6407
|
+
function ownKeys$1Q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6408
|
+
function _objectSpread$1Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6399
6409
|
var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
6400
6410
|
var mergeProps = useMergeProps();
|
|
6401
6411
|
var context = React.useContext(PrimeReactContext);
|
|
6402
6412
|
var props = ButtonBase.getProps(inProps, context);
|
|
6403
6413
|
var disabled = props.disabled || props.loading;
|
|
6404
|
-
var metaData = _objectSpread$
|
|
6414
|
+
var metaData = _objectSpread$1Q(_objectSpread$1Q({
|
|
6405
6415
|
props: props
|
|
6406
6416
|
}, props.__parentMetadata), {}, {
|
|
6407
6417
|
context: {
|
|
@@ -6439,7 +6449,7 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
|
|
|
6439
6449
|
var icon = props.loading ? props.loadingIcon || /*#__PURE__*/React.createElement(SpinnerIcon, _extends({}, loadingIconProps, {
|
|
6440
6450
|
spin: true
|
|
6441
6451
|
})) : props.icon;
|
|
6442
|
-
return IconUtils.getJSXIcon(icon, _objectSpread$
|
|
6452
|
+
return IconUtils.getJSXIcon(icon, _objectSpread$1Q({}, iconsProps), {
|
|
6443
6453
|
props: props
|
|
6444
6454
|
});
|
|
6445
6455
|
};
|
|
@@ -6484,6 +6494,7 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
|
|
|
6484
6494
|
var rootProps = mergeProps({
|
|
6485
6495
|
ref: elementRef,
|
|
6486
6496
|
'aria-label': defaultAriaLabel,
|
|
6497
|
+
'data-pc-autofocus': props.autoFocus,
|
|
6487
6498
|
className: classNames(props.className, cx('root', {
|
|
6488
6499
|
size: size,
|
|
6489
6500
|
disabled: disabled
|
|
@@ -6625,13 +6636,13 @@ var InputTextBase = ComponentBase.extend({
|
|
|
6625
6636
|
}
|
|
6626
6637
|
});
|
|
6627
6638
|
|
|
6628
|
-
function ownKeys$
|
|
6629
|
-
function _objectSpread$
|
|
6639
|
+
function ownKeys$1P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6640
|
+
function _objectSpread$1P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6630
6641
|
var InputText = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
6631
6642
|
var mergeProps = useMergeProps();
|
|
6632
6643
|
var context = React.useContext(PrimeReactContext);
|
|
6633
6644
|
var props = InputTextBase.getProps(inProps, context);
|
|
6634
|
-
var _InputTextBase$setMet = InputTextBase.setMetaData(_objectSpread$
|
|
6645
|
+
var _InputTextBase$setMet = InputTextBase.setMetaData(_objectSpread$1P(_objectSpread$1P({
|
|
6635
6646
|
props: props
|
|
6636
6647
|
}, props.__parentMetadata), {}, {
|
|
6637
6648
|
context: {
|
|
@@ -6885,8 +6896,8 @@ var VirtualScrollerBase = ComponentBase.extend({
|
|
|
6885
6896
|
}
|
|
6886
6897
|
});
|
|
6887
6898
|
|
|
6888
|
-
function ownKeys$
|
|
6889
|
-
function _objectSpread$
|
|
6899
|
+
function ownKeys$1O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6900
|
+
function _objectSpread$1O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6890
6901
|
var VirtualScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
6891
6902
|
var mergeProps = useMergeProps();
|
|
6892
6903
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -7268,7 +7279,7 @@ var VirtualScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
7268
7279
|
var contentPos = getContentPosition();
|
|
7269
7280
|
var setProp = function setProp(_name, _value, _size) {
|
|
7270
7281
|
var _cpos = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
7271
|
-
return spacerStyle.current = _objectSpread$
|
|
7282
|
+
return spacerStyle.current = _objectSpread$1O(_objectSpread$1O({}, spacerStyle.current), _defineProperty({}, "".concat(_name), (_value || []).length * _size + _cpos + 'px'));
|
|
7272
7283
|
};
|
|
7273
7284
|
if (both) {
|
|
7274
7285
|
setProp('height', items, props.itemSize[0], contentPos.y);
|
|
@@ -7288,7 +7299,7 @@ var VirtualScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
7288
7299
|
var _x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
7289
7300
|
var _y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
7290
7301
|
_stickyRef.current && (_stickyRef.current.style.top = "-".concat(_y, "px"));
|
|
7291
|
-
contentStyle.current = _objectSpread$
|
|
7302
|
+
contentStyle.current = _objectSpread$1O(_objectSpread$1O({}, contentStyle.current), {
|
|
7292
7303
|
transform: "translate3d(".concat(_x, "px, ").concat(_y, "px, 0)")
|
|
7293
7304
|
});
|
|
7294
7305
|
};
|
|
@@ -7468,7 +7479,7 @@ var VirtualScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
7468
7479
|
};
|
|
7469
7480
|
var loaderOptions = function loaderOptions(index, extOptions) {
|
|
7470
7481
|
var count = loaderArrState.length || 0;
|
|
7471
|
-
return _objectSpread$
|
|
7482
|
+
return _objectSpread$1O({
|
|
7472
7483
|
index: index,
|
|
7473
7484
|
count: count,
|
|
7474
7485
|
first: index === 0,
|
|
@@ -7592,7 +7603,7 @@ var VirtualScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
7592
7603
|
var icon = props.loadingIcon || /*#__PURE__*/React.createElement(SpinnerIcon, _extends({}, loadingIconProps, {
|
|
7593
7604
|
spin: true
|
|
7594
7605
|
}));
|
|
7595
|
-
var loadingIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
7606
|
+
var loadingIcon = IconUtils.getJSXIcon(icon, _objectSpread$1O({}, loadingIconProps), {
|
|
7596
7607
|
props: props
|
|
7597
7608
|
});
|
|
7598
7609
|
if (!props.loaderDisabled && props.showLoader && loadingState) {
|
|
@@ -7720,15 +7731,15 @@ var VirtualScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
7720
7731
|
}));
|
|
7721
7732
|
VirtualScroller.displayName = 'VirtualScroller';
|
|
7722
7733
|
|
|
7723
|
-
function ownKeys$
|
|
7724
|
-
function _objectSpread$
|
|
7734
|
+
function ownKeys$1N(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7735
|
+
function _objectSpread$1N(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1N(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1N(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7725
7736
|
var AutoCompletePanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
7726
7737
|
var mergeProps = useMergeProps();
|
|
7727
7738
|
var ptm = props.ptm,
|
|
7728
7739
|
cx = props.cx;
|
|
7729
7740
|
var context = React.useContext(PrimeReactContext);
|
|
7730
7741
|
var _ptm = function _ptm(key, options) {
|
|
7731
|
-
return ptm(key, _objectSpread$
|
|
7742
|
+
return ptm(key, _objectSpread$1N({
|
|
7732
7743
|
hostName: props.hostName
|
|
7733
7744
|
}, options));
|
|
7734
7745
|
};
|
|
@@ -7768,7 +7779,7 @@ var AutoCompletePanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(f
|
|
|
7768
7779
|
});
|
|
7769
7780
|
var createLabelItem = function createLabelItem(item, key, index, labelItemProps) {
|
|
7770
7781
|
var content = props.optionGroupTemplate ? ObjectUtils.getJSXElement(props.optionGroupTemplate, item, index) : props.getOptionGroupLabel(item) || item;
|
|
7771
|
-
var itemGroupProps = mergeProps(_objectSpread$
|
|
7782
|
+
var itemGroupProps = mergeProps(_objectSpread$1N({
|
|
7772
7783
|
index: index,
|
|
7773
7784
|
key: key ? key : null,
|
|
7774
7785
|
className: cx('itemGroup'),
|
|
@@ -7779,7 +7790,7 @@ var AutoCompletePanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(f
|
|
|
7779
7790
|
var createListItem = function createListItem(item, key, index, listItemProps) {
|
|
7780
7791
|
var selected = ObjectUtils.deepEquals(props.selectedItem, item);
|
|
7781
7792
|
var content = props.itemTemplate ? ObjectUtils.getJSXElement(props.itemTemplate, item, index) : props.field ? ObjectUtils.resolveFieldData(item, props.field) : item;
|
|
7782
|
-
var itemProps = mergeProps(_objectSpread$
|
|
7793
|
+
var itemProps = mergeProps(_objectSpread$1N({
|
|
7783
7794
|
index: index,
|
|
7784
7795
|
role: 'option',
|
|
7785
7796
|
className: cx('item', {
|
|
@@ -7873,8 +7884,8 @@ var AutoCompletePanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(f
|
|
|
7873
7884
|
}
|
|
7874
7885
|
if (props.virtualScrollerOptions) {
|
|
7875
7886
|
var _items = props.suggestions ? props.optionGroupLabel ? flattenGroupedItems(props === null || props === void 0 ? void 0 : props.suggestions) : props.suggestions : null;
|
|
7876
|
-
var virtualScrollerProps = _objectSpread$
|
|
7877
|
-
style: _objectSpread$
|
|
7887
|
+
var virtualScrollerProps = _objectSpread$1N(_objectSpread$1N({}, props.virtualScrollerOptions), {
|
|
7888
|
+
style: _objectSpread$1N(_objectSpread$1N({}, props.virtualScrollerOptions.style), {
|
|
7878
7889
|
height: props.scrollHeight
|
|
7879
7890
|
}),
|
|
7880
7891
|
autoSize: true,
|
|
@@ -7920,7 +7931,7 @@ var AutoCompletePanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(f
|
|
|
7920
7931
|
return /*#__PURE__*/React.createElement("div", listWrapperProps, /*#__PURE__*/React.createElement("ul", listProps, items));
|
|
7921
7932
|
};
|
|
7922
7933
|
var createElement = function createElement() {
|
|
7923
|
-
var style = _objectSpread$
|
|
7934
|
+
var style = _objectSpread$1N({}, props.panelStyle || {});
|
|
7924
7935
|
var content = createContent();
|
|
7925
7936
|
var footer = createFooter();
|
|
7926
7937
|
var panelProps = mergeProps({
|
|
@@ -7961,8 +7972,8 @@ var AutoCompletePanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(f
|
|
|
7961
7972
|
}));
|
|
7962
7973
|
AutoCompletePanel.displayName = 'AutoCompletePanel';
|
|
7963
7974
|
|
|
7964
|
-
function ownKeys$
|
|
7965
|
-
function _objectSpread$
|
|
7975
|
+
function ownKeys$1M(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7976
|
+
function _objectSpread$1M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7966
7977
|
var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
7967
7978
|
var mergeProps = useMergeProps();
|
|
7968
7979
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -8453,7 +8464,8 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
8453
8464
|
onContextMenu: props.onContextMenu,
|
|
8454
8465
|
onClick: props.onClick,
|
|
8455
8466
|
onDoubleClick: props.onDblClick,
|
|
8456
|
-
pt: ptm('input')
|
|
8467
|
+
pt: ptm('input'),
|
|
8468
|
+
unstyled: props.unstyled
|
|
8457
8469
|
}, ariaProps, {
|
|
8458
8470
|
__parentMetadata: {
|
|
8459
8471
|
parent: metaData
|
|
@@ -8471,7 +8483,7 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
8471
8483
|
}
|
|
8472
8484
|
}, ptm('removeTokenIcon'));
|
|
8473
8485
|
var icon = props.removeTokenIcon || /*#__PURE__*/React.createElement(TimesCircleIcon, removeTokenIconProps);
|
|
8474
|
-
var removeTokenIcon = !props.disabled && IconUtils.getJSXIcon(icon, _objectSpread$
|
|
8486
|
+
var removeTokenIcon = !props.disabled && IconUtils.getJSXIcon(icon, _objectSpread$1M({}, removeTokenIconProps), {
|
|
8475
8487
|
props: props
|
|
8476
8488
|
});
|
|
8477
8489
|
var tokenProps = mergeProps({
|
|
@@ -8493,7 +8505,7 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
8493
8505
|
var inputTokenProps = mergeProps({
|
|
8494
8506
|
className: cx('inputToken')
|
|
8495
8507
|
}, ptm('inputToken'));
|
|
8496
|
-
var inputProps = mergeProps(_objectSpread$
|
|
8508
|
+
var inputProps = mergeProps(_objectSpread$1M({
|
|
8497
8509
|
id: props.inputId,
|
|
8498
8510
|
ref: inputRef,
|
|
8499
8511
|
'aria-autocomplete': 'list',
|
|
@@ -8565,7 +8577,7 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
8565
8577
|
var icon = props.loadingIcon || /*#__PURE__*/React.createElement(SpinnerIcon, _extends({}, loadingIconProps, {
|
|
8566
8578
|
spin: true
|
|
8567
8579
|
}));
|
|
8568
|
-
var loaderIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
8580
|
+
var loaderIcon = IconUtils.getJSXIcon(icon, _objectSpread$1M({}, loadingIconProps), {
|
|
8569
8581
|
props: props
|
|
8570
8582
|
});
|
|
8571
8583
|
return loaderIcon;
|
|
@@ -8656,8 +8668,8 @@ var AvatarBase = ComponentBase.extend({
|
|
|
8656
8668
|
}
|
|
8657
8669
|
});
|
|
8658
8670
|
|
|
8659
|
-
function ownKeys$
|
|
8660
|
-
function _objectSpread$
|
|
8671
|
+
function ownKeys$1L(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8672
|
+
function _objectSpread$1L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8661
8673
|
var Avatar = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
8662
8674
|
var mergeProps = useMergeProps();
|
|
8663
8675
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -8702,7 +8714,7 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
8702
8714
|
var iconProps = mergeProps({
|
|
8703
8715
|
className: cx('icon')
|
|
8704
8716
|
}, ptm('icon'));
|
|
8705
|
-
return IconUtils.getJSXIcon(props.icon, _objectSpread$
|
|
8717
|
+
return IconUtils.getJSXIcon(props.icon, _objectSpread$1L({}, iconProps), {
|
|
8706
8718
|
props: props
|
|
8707
8719
|
});
|
|
8708
8720
|
}
|
|
@@ -8826,8 +8838,8 @@ var BlockUIBase = ComponentBase.extend({
|
|
|
8826
8838
|
}
|
|
8827
8839
|
});
|
|
8828
8840
|
|
|
8829
|
-
function ownKeys$
|
|
8830
|
-
function _objectSpread$
|
|
8841
|
+
function ownKeys$1K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8842
|
+
function _objectSpread$1K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8831
8843
|
var BlockUI = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
8832
8844
|
var mergeProps = useMergeProps();
|
|
8833
8845
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -8907,7 +8919,7 @@ var BlockUI = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
8907
8919
|
var appendTo = props.fullScreen ? document.body : 'self';
|
|
8908
8920
|
var maskProps = mergeProps({
|
|
8909
8921
|
className: classNames(props.className, cx('mask')),
|
|
8910
|
-
style: _objectSpread$
|
|
8922
|
+
style: _objectSpread$1K(_objectSpread$1K({}, props.style), {}, {
|
|
8911
8923
|
position: props.fullScreen ? 'fixed' : 'absolute',
|
|
8912
8924
|
top: '0',
|
|
8913
8925
|
left: '0',
|
|
@@ -8979,8 +8991,8 @@ var BreadCrumbBase = ComponentBase.extend({
|
|
|
8979
8991
|
}
|
|
8980
8992
|
});
|
|
8981
8993
|
|
|
8982
|
-
function ownKeys$
|
|
8983
|
-
function _objectSpread$
|
|
8994
|
+
function ownKeys$1J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8995
|
+
function _objectSpread$1J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8984
8996
|
var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
8985
8997
|
var mergeProps = useMergeProps();
|
|
8986
8998
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -9039,7 +9051,7 @@ var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
9039
9051
|
var iconProps = mergeProps({
|
|
9040
9052
|
className: cx('icon')
|
|
9041
9053
|
}, ptm('icon'));
|
|
9042
|
-
var icon = IconUtils.getJSXIcon(_icon, _objectSpread$
|
|
9054
|
+
var icon = IconUtils.getJSXIcon(_icon, _objectSpread$1J({}, iconProps), {
|
|
9043
9055
|
props: props
|
|
9044
9056
|
});
|
|
9045
9057
|
var actionProps = mergeProps({
|
|
@@ -9090,7 +9102,7 @@ var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
9090
9102
|
'aria-hidden': 'true'
|
|
9091
9103
|
}, ptm('separatorIcon'));
|
|
9092
9104
|
var icon = props.separatorIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, separatorIconProps);
|
|
9093
|
-
var separatorIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
9105
|
+
var separatorIcon = IconUtils.getJSXIcon(icon, _objectSpread$1J({}, separatorIconProps), {
|
|
9094
9106
|
props: props
|
|
9095
9107
|
});
|
|
9096
9108
|
var separatorProps = mergeProps({
|
|
@@ -9480,8 +9492,8 @@ var CalendarPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
9480
9492
|
});
|
|
9481
9493
|
CalendarPanel.displayName = 'CalendarPanel';
|
|
9482
9494
|
|
|
9483
|
-
function ownKeys$
|
|
9484
|
-
function _objectSpread$
|
|
9495
|
+
function ownKeys$1I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9496
|
+
function _objectSpread$1I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9485
9497
|
function _createForOfIteratorHelper$e(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$e(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; } } }; }
|
|
9486
9498
|
function _unsupportedIterableToArray$e(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$e(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$e(o, minLen); }
|
|
9487
9499
|
function _arrayLikeToArray$e(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; }
|
|
@@ -9663,7 +9675,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
9663
9675
|
return isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false) && isSelectableTime(v);
|
|
9664
9676
|
})) {
|
|
9665
9677
|
if (isRangeSelection()) {
|
|
9666
|
-
isValid = value.length > 1 && value[1]
|
|
9678
|
+
isValid = value.length > 1 && value[1] >= value[0];
|
|
9667
9679
|
}
|
|
9668
9680
|
}
|
|
9669
9681
|
return isValid;
|
|
@@ -9810,24 +9822,33 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
9810
9822
|
newViewDate.setDate(1);
|
|
9811
9823
|
if (currentView === 'date') {
|
|
9812
9824
|
if (newViewDate.getMonth() === 0) {
|
|
9825
|
+
var newYear = decrementYear();
|
|
9813
9826
|
newViewDate.setMonth(11);
|
|
9814
|
-
newViewDate.setFullYear(
|
|
9827
|
+
newViewDate.setFullYear(newYear);
|
|
9828
|
+
props.onMonthChange && props.onMonthChange({
|
|
9829
|
+
month: 11,
|
|
9830
|
+
year: newYear
|
|
9831
|
+
});
|
|
9815
9832
|
setCurrentMonth(11);
|
|
9816
9833
|
} else {
|
|
9817
9834
|
newViewDate.setMonth(newViewDate.getMonth() - 1);
|
|
9835
|
+
props.onMonthChange && props.onMonthChange({
|
|
9836
|
+
month: currentMonth - 1,
|
|
9837
|
+
year: currentYear
|
|
9838
|
+
});
|
|
9818
9839
|
setCurrentMonth(function (prevState) {
|
|
9819
9840
|
return prevState - 1;
|
|
9820
9841
|
});
|
|
9821
9842
|
}
|
|
9822
9843
|
} else if (currentView === 'month') {
|
|
9823
|
-
var
|
|
9844
|
+
var _newYear = newViewDate.getFullYear() - 1;
|
|
9824
9845
|
if (props.yearNavigator) {
|
|
9825
9846
|
var minYear = parseInt(props.yearRange.split(':')[0], 10);
|
|
9826
|
-
if (
|
|
9827
|
-
|
|
9847
|
+
if (_newYear < minYear) {
|
|
9848
|
+
_newYear = minYear;
|
|
9828
9849
|
}
|
|
9829
9850
|
}
|
|
9830
|
-
newViewDate.setFullYear(
|
|
9851
|
+
newViewDate.setFullYear(_newYear);
|
|
9831
9852
|
}
|
|
9832
9853
|
if (currentView === 'month') {
|
|
9833
9854
|
newViewDate.setFullYear(decrementYear());
|
|
@@ -9846,24 +9867,33 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
9846
9867
|
newViewDate.setDate(1);
|
|
9847
9868
|
if (currentView === 'date') {
|
|
9848
9869
|
if (newViewDate.getMonth() === 11) {
|
|
9870
|
+
var newYear = incrementYear();
|
|
9849
9871
|
newViewDate.setMonth(0);
|
|
9850
|
-
newViewDate.setFullYear(
|
|
9872
|
+
newViewDate.setFullYear(newYear);
|
|
9873
|
+
props.onMonthChange && props.onMonthChange({
|
|
9874
|
+
month: 0,
|
|
9875
|
+
year: newYear
|
|
9876
|
+
});
|
|
9851
9877
|
setCurrentMonth(0);
|
|
9852
9878
|
} else {
|
|
9853
9879
|
newViewDate.setMonth(newViewDate.getMonth() + 1);
|
|
9880
|
+
props.onMonthChange && props.onMonthChange({
|
|
9881
|
+
month: currentMonth + 1,
|
|
9882
|
+
year: currentYear
|
|
9883
|
+
});
|
|
9854
9884
|
setCurrentMonth(function (prevState) {
|
|
9855
9885
|
return prevState + 1;
|
|
9856
9886
|
});
|
|
9857
9887
|
}
|
|
9858
9888
|
} else if (currentView === 'month') {
|
|
9859
|
-
var
|
|
9889
|
+
var _newYear2 = newViewDate.getFullYear() + 1;
|
|
9860
9890
|
if (props.yearNavigator) {
|
|
9861
9891
|
var maxYear = parseInt(props.yearRange.split(':')[1], 10);
|
|
9862
|
-
if (
|
|
9863
|
-
|
|
9892
|
+
if (_newYear2 > maxYear) {
|
|
9893
|
+
_newYear2 = maxYear;
|
|
9864
9894
|
}
|
|
9865
9895
|
}
|
|
9866
|
-
newViewDate.setFullYear(
|
|
9896
|
+
newViewDate.setFullYear(_newYear2);
|
|
9867
9897
|
}
|
|
9868
9898
|
if (currentView === 'month') {
|
|
9869
9899
|
newViewDate.setFullYear(incrementYear());
|
|
@@ -9901,6 +9931,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
9901
9931
|
var onMonthDropdownChange = function onMonthDropdownChange(event, value) {
|
|
9902
9932
|
var currentViewDate = getViewDate();
|
|
9903
9933
|
var newViewDate = cloneDate(currentViewDate);
|
|
9934
|
+
newViewDate.setDate(1);
|
|
9904
9935
|
newViewDate.setMonth(parseInt(value, 10));
|
|
9905
9936
|
updateViewDate(event, newViewDate);
|
|
9906
9937
|
};
|
|
@@ -10387,7 +10418,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
10387
10418
|
month: month,
|
|
10388
10419
|
year: year,
|
|
10389
10420
|
selectable: isSelectable(day, month, year)
|
|
10390
|
-
});
|
|
10421
|
+
}, null, true);
|
|
10391
10422
|
}
|
|
10392
10423
|
};
|
|
10393
10424
|
var setNavigationState = function setNavigationState(newViewDate) {
|
|
@@ -10859,7 +10890,10 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
10859
10890
|
}
|
|
10860
10891
|
}
|
|
10861
10892
|
};
|
|
10862
|
-
var onDateSelect = function onDateSelect(event, dateMeta, timeMeta) {
|
|
10893
|
+
var onDateSelect = function onDateSelect(event, dateMeta, timeMeta, isUpdateViewDate) {
|
|
10894
|
+
if (!event) {
|
|
10895
|
+
return;
|
|
10896
|
+
}
|
|
10863
10897
|
if (props.disabled || !dateMeta.selectable) {
|
|
10864
10898
|
event.preventDefault();
|
|
10865
10899
|
return;
|
|
@@ -10881,7 +10915,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
10881
10915
|
} else {
|
|
10882
10916
|
selectDate(event, dateMeta, timeMeta);
|
|
10883
10917
|
}
|
|
10884
|
-
if (!props.inline && isSingleSelection() && (!props.showTime || props.hideOnDateTimeSelect)) {
|
|
10918
|
+
if (!props.inline && isSingleSelection() && (!props.showTime || props.hideOnDateTimeSelect) && !isUpdateViewDate) {
|
|
10885
10919
|
setTimeout(function () {
|
|
10886
10920
|
hide('dateselect');
|
|
10887
10921
|
}, 100);
|
|
@@ -10951,6 +10985,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
10951
10985
|
if (props.hideOnRangeSelection && endDate !== null) {
|
|
10952
10986
|
setTimeout(function () {
|
|
10953
10987
|
setOverlayVisibleState(false);
|
|
10988
|
+
isOverlayClicked.current = false;
|
|
10954
10989
|
}, 150);
|
|
10955
10990
|
}
|
|
10956
10991
|
} else {
|
|
@@ -11484,28 +11519,44 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
11484
11519
|
return props.value != null && typeof props.value !== 'string';
|
|
11485
11520
|
};
|
|
11486
11521
|
var isMonthSelected = function isMonthSelected(month) {
|
|
11487
|
-
if (isComparable())
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
return
|
|
11491
|
-
|
|
11492
|
-
|
|
11522
|
+
if (!isComparable()) return false;
|
|
11523
|
+
if (isMultipleSelection()) {
|
|
11524
|
+
return props.value.some(function (v) {
|
|
11525
|
+
return v.getMonth() === month && v.getFullYear() === currentYear;
|
|
11526
|
+
});
|
|
11527
|
+
} else if (isRangeSelection()) {
|
|
11528
|
+
var _props$value = _slicedToArray(props.value, 2),
|
|
11529
|
+
start = _props$value[0],
|
|
11530
|
+
end = _props$value[1];
|
|
11531
|
+
var startYear = start ? start.getFullYear() : null;
|
|
11532
|
+
var endYear = end ? end.getFullYear() : null;
|
|
11533
|
+
var startMonth = start ? start.getMonth() : null;
|
|
11534
|
+
var endMonth = end ? end.getMonth() : null;
|
|
11535
|
+
if (!end) {
|
|
11536
|
+
return startYear === currentYear && startMonth === month;
|
|
11537
|
+
} else {
|
|
11538
|
+
var currentDate = new Date(currentYear, month, 1);
|
|
11539
|
+
var startDate = new Date(startYear, startMonth, 1);
|
|
11540
|
+
var endDate = new Date(endYear, endMonth, 1);
|
|
11541
|
+
return currentDate >= startDate && currentDate <= endDate;
|
|
11493
11542
|
}
|
|
11494
|
-
|
|
11543
|
+
} else {
|
|
11544
|
+
return props.value.getMonth() === month && props.value.getFullYear() === currentYear;
|
|
11495
11545
|
}
|
|
11496
|
-
return false;
|
|
11497
11546
|
};
|
|
11498
11547
|
var isYearSelected = function isYearSelected(year) {
|
|
11499
|
-
if (isComparable())
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
return
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11548
|
+
if (!isComparable()) return false;
|
|
11549
|
+
if (isMultipleSelection()) {
|
|
11550
|
+
return props.value.some(function (v) {
|
|
11551
|
+
return v.getFullYear() === year;
|
|
11552
|
+
});
|
|
11553
|
+
} else if (isRangeSelection()) {
|
|
11554
|
+
var start = props.value[0] ? props.value[0].getFullYear() : null;
|
|
11555
|
+
var end = props.value[1] ? props.value[1].getFullYear() : null;
|
|
11556
|
+
return start === year || end === year || start < year && end > year;
|
|
11557
|
+
} else {
|
|
11558
|
+
return props.value.getFullYear() === year;
|
|
11507
11559
|
}
|
|
11508
|
-
return false;
|
|
11509
11560
|
};
|
|
11510
11561
|
var switchViewButtonDisabled = function switchViewButtonDisabled() {
|
|
11511
11562
|
return props.numberOfMonths > 1 || props.disabled;
|
|
@@ -11998,7 +12049,6 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
11998
12049
|
if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
|
|
11999
12050
|
throw new Error('Invalid date'); // E.g. 31/02/00
|
|
12000
12051
|
}
|
|
12001
|
-
|
|
12002
12052
|
return date;
|
|
12003
12053
|
};
|
|
12004
12054
|
var isInMinYear = function isInMinYear(viewDate) {
|
|
@@ -12101,26 +12151,25 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
12101
12151
|
isTypingRef.current = false;
|
|
12102
12152
|
|
|
12103
12153
|
// #3516 view date not updated when value set programatically
|
|
12104
|
-
if (!
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
}
|
|
12110
|
-
} else if (isRangeSelection()) {
|
|
12111
|
-
if (newDate.length) {
|
|
12112
|
-
var startDate = newDate[0];
|
|
12113
|
-
var endDate = newDate[1];
|
|
12114
|
-
viewDate = endDate || startDate;
|
|
12115
|
-
}
|
|
12154
|
+
if (!newDate) return;
|
|
12155
|
+
var viewDate = newDate;
|
|
12156
|
+
if (isMultipleSelection()) {
|
|
12157
|
+
if (newDate.length) {
|
|
12158
|
+
viewDate = newDate[newDate.length - 1];
|
|
12116
12159
|
}
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12160
|
+
} else if (isRangeSelection()) {
|
|
12161
|
+
if (newDate.length) {
|
|
12162
|
+
var startDate = newDate[0];
|
|
12163
|
+
var endDate = newDate[1];
|
|
12164
|
+
viewDate = endDate || startDate;
|
|
12122
12165
|
}
|
|
12123
12166
|
}
|
|
12167
|
+
if (viewDate instanceof Date) {
|
|
12168
|
+
validateDate(viewDate);
|
|
12169
|
+
setViewDateState(viewDate);
|
|
12170
|
+
setCurrentMonth(viewDate.getMonth());
|
|
12171
|
+
setCurrentYear(viewDate.getFullYear());
|
|
12172
|
+
}
|
|
12124
12173
|
}
|
|
12125
12174
|
}, [props.value, visible]);
|
|
12126
12175
|
useUpdateEffect(function () {
|
|
@@ -12195,7 +12244,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
12195
12244
|
className: cx('previousIcon')
|
|
12196
12245
|
}, ptm('previousIcon'));
|
|
12197
12246
|
var icon = props.prevIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, previousIconProps);
|
|
12198
|
-
var backwardNavigatorIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
12247
|
+
var backwardNavigatorIcon = IconUtils.getJSXIcon(icon, _objectSpread$1I({}, previousIconProps), {
|
|
12199
12248
|
props: props
|
|
12200
12249
|
});
|
|
12201
12250
|
var _localeOptions4 = localeOptions(props.locale),
|
|
@@ -12203,7 +12252,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
12203
12252
|
prevYear = _localeOptions4.prevYear,
|
|
12204
12253
|
prevMonth = _localeOptions4.prevMonth;
|
|
12205
12254
|
var previousButtonLabel = currentView === 'year' ? prevDecade : currentView === 'month' ? prevYear : prevMonth;
|
|
12206
|
-
var previousButtonProps = mergeProps(_objectSpread$
|
|
12255
|
+
var previousButtonProps = mergeProps(_objectSpread$1I({
|
|
12207
12256
|
type: 'button',
|
|
12208
12257
|
className: cx('previousButton'),
|
|
12209
12258
|
'aria-label': previousButtonLabel
|
|
@@ -12227,7 +12276,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
12227
12276
|
className: cx('nextIcon')
|
|
12228
12277
|
}, ptm('nextIcon'));
|
|
12229
12278
|
var icon = props.nextIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, nextIconProps);
|
|
12230
|
-
var forwardNavigatorIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
12279
|
+
var forwardNavigatorIcon = IconUtils.getJSXIcon(icon, _objectSpread$1I({}, nextIconProps), {
|
|
12231
12280
|
props: props
|
|
12232
12281
|
});
|
|
12233
12282
|
var _localeOptions5 = localeOptions(props.locale),
|
|
@@ -12235,7 +12284,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
12235
12284
|
nextYear = _localeOptions5.nextYear,
|
|
12236
12285
|
nextMonth = _localeOptions5.nextMonth;
|
|
12237
12286
|
var nextButtonLabel = currentView === 'year' ? nextDecade : currentView === 'month' ? nextYear : nextMonth;
|
|
12238
|
-
var nextButtonProps = mergeProps(_objectSpread$
|
|
12287
|
+
var nextButtonProps = mergeProps(_objectSpread$1I({
|
|
12239
12288
|
type: 'button',
|
|
12240
12289
|
className: cx('nextButton'),
|
|
12241
12290
|
'aria-label': nextButtonLabel
|
|
@@ -12596,10 +12645,10 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
12596
12645
|
};
|
|
12597
12646
|
var incrementIconProps = mergeProps(ptm('incrementIcon'));
|
|
12598
12647
|
var decrementIconProps = mergeProps(ptm('decrementIcon'));
|
|
12599
|
-
var incrementIcon = IconUtils.getJSXIcon(props.incrementIcon || /*#__PURE__*/React.createElement(ChevronUpIcon, incrementIconProps), _objectSpread$
|
|
12648
|
+
var incrementIcon = IconUtils.getJSXIcon(props.incrementIcon || /*#__PURE__*/React.createElement(ChevronUpIcon, incrementIconProps), _objectSpread$1I({}, incrementIconProps), {
|
|
12600
12649
|
props: props
|
|
12601
12650
|
});
|
|
12602
|
-
var decrementIcon = IconUtils.getJSXIcon(props.decrementIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, decrementIconProps), _objectSpread$
|
|
12651
|
+
var decrementIcon = IconUtils.getJSXIcon(props.decrementIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, decrementIconProps), _objectSpread$1I({}, decrementIconProps), {
|
|
12603
12652
|
props: props
|
|
12604
12653
|
});
|
|
12605
12654
|
var createHourPicker = function createHourPicker() {
|
|
@@ -12864,6 +12913,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
12864
12913
|
tooltip: props.tooltip,
|
|
12865
12914
|
tooltipOptions: props.tooltipOptions,
|
|
12866
12915
|
pt: ptm('input'),
|
|
12916
|
+
unstyled: props.unstyled,
|
|
12867
12917
|
__parentMetadata: {
|
|
12868
12918
|
parent: metaData
|
|
12869
12919
|
}
|
|
@@ -13266,8 +13316,8 @@ var CarouselBase = ComponentBase.extend({
|
|
|
13266
13316
|
}
|
|
13267
13317
|
});
|
|
13268
13318
|
|
|
13269
|
-
function ownKeys$
|
|
13270
|
-
function _objectSpread$
|
|
13319
|
+
function ownKeys$1H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13320
|
+
function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13271
13321
|
var CarouselItem = /*#__PURE__*/React.memo(function (props) {
|
|
13272
13322
|
var mergeProps = useMergeProps();
|
|
13273
13323
|
var ptm = props.ptm,
|
|
@@ -13817,7 +13867,7 @@ var Carousel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
13817
13867
|
className: cx('previousButtonIcon')
|
|
13818
13868
|
}, ptm('previousButtonIcon'));
|
|
13819
13869
|
var icon = isVertical ? props.prevIcon || /*#__PURE__*/React.createElement(ChevronUpIcon, previousButtonIconProps) : props.prevIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, previousButtonIconProps);
|
|
13820
|
-
var backwardNavigatorIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
13870
|
+
var backwardNavigatorIcon = IconUtils.getJSXIcon(icon, _objectSpread$1H({}, previousButtonIconProps), {
|
|
13821
13871
|
props: props
|
|
13822
13872
|
});
|
|
13823
13873
|
var previousButtonProps = mergeProps({
|
|
@@ -13843,7 +13893,7 @@ var Carousel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
13843
13893
|
className: cx('nextButtonIcon')
|
|
13844
13894
|
}, ptm('nextButtonIcon'));
|
|
13845
13895
|
var icon = isVertical ? props.nextIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, nextButtonIconProps) : props.nextIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, nextButtonIconProps);
|
|
13846
|
-
var forwardNavigatorIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
13896
|
+
var forwardNavigatorIcon = IconUtils.getJSXIcon(icon, _objectSpread$1H({}, nextButtonIconProps), {
|
|
13847
13897
|
props: props
|
|
13848
13898
|
});
|
|
13849
13899
|
var nextButtonProps = mergeProps({
|
|
@@ -14040,8 +14090,8 @@ var AngleRightIcon = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(func
|
|
|
14040
14090
|
}));
|
|
14041
14091
|
AngleRightIcon.displayName = 'AngleRightIcon';
|
|
14042
14092
|
|
|
14043
|
-
function ownKeys$
|
|
14044
|
-
function _objectSpread$
|
|
14093
|
+
function ownKeys$1G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14094
|
+
function _objectSpread$1G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14045
14095
|
var CascadeSelectSub = /*#__PURE__*/React.memo(function (props) {
|
|
14046
14096
|
var mergeProps = useMergeProps();
|
|
14047
14097
|
var _React$useState = React.useState(null),
|
|
@@ -14055,7 +14105,7 @@ var CascadeSelectSub = /*#__PURE__*/React.memo(function (props) {
|
|
|
14055
14105
|
var getPTOptions = function getPTOptions(key, options) {
|
|
14056
14106
|
return ptm(key, {
|
|
14057
14107
|
hostName: props.hostName,
|
|
14058
|
-
state: _objectSpread$
|
|
14108
|
+
state: _objectSpread$1G({}, options)
|
|
14059
14109
|
});
|
|
14060
14110
|
};
|
|
14061
14111
|
var position = function position() {
|
|
@@ -14219,7 +14269,7 @@ var CascadeSelectSub = /*#__PURE__*/React.memo(function (props) {
|
|
|
14219
14269
|
className: cx('optionGroupIcon')
|
|
14220
14270
|
}, getPTOptions('optionGroupIcon'));
|
|
14221
14271
|
var icon = props.optionGroupIcon || /*#__PURE__*/React.createElement(AngleRightIcon, optionGroupIconProps);
|
|
14222
|
-
var optionGroup = isOptionGroup(option) && IconUtils.getJSXIcon(icon, _objectSpread$
|
|
14272
|
+
var optionGroup = isOptionGroup(option) && IconUtils.getJSXIcon(icon, _objectSpread$1G({}, optionGroupIconProps), {
|
|
14223
14273
|
props: props
|
|
14224
14274
|
});
|
|
14225
14275
|
var key = getOptionLabelToRender(option) + '_' + index;
|
|
@@ -14282,8 +14332,8 @@ var CascadeSelectSub = /*#__PURE__*/React.memo(function (props) {
|
|
|
14282
14332
|
function _createForOfIteratorHelper$d(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$d(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; } } }; }
|
|
14283
14333
|
function _unsupportedIterableToArray$d(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$d(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$d(o, minLen); }
|
|
14284
14334
|
function _arrayLikeToArray$d(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; }
|
|
14285
|
-
function ownKeys$
|
|
14286
|
-
function _objectSpread$
|
|
14335
|
+
function ownKeys$1F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14336
|
+
function _objectSpread$1F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14287
14337
|
var CascadeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
14288
14338
|
var mergeProps = useMergeProps();
|
|
14289
14339
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -14307,7 +14357,7 @@ var CascadeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
14307
14357
|
overlayVisible: overlayVisibleState,
|
|
14308
14358
|
attributeSelector: attributeSelectorState
|
|
14309
14359
|
},
|
|
14310
|
-
context: _objectSpread$
|
|
14360
|
+
context: _objectSpread$1F({}, context)
|
|
14311
14361
|
}),
|
|
14312
14362
|
ptm = _CascadeSelectBase$se.ptm,
|
|
14313
14363
|
cx = _CascadeSelectBase$se.cx,
|
|
@@ -14552,7 +14602,7 @@ var CascadeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
14552
14602
|
var hiddenSelectedMessageProps = mergeProps({
|
|
14553
14603
|
className: 'p-hidden-accessible'
|
|
14554
14604
|
}, ptm('hiddenSelectedMessage'));
|
|
14555
|
-
var inputProps = mergeProps(_objectSpread$
|
|
14605
|
+
var inputProps = mergeProps(_objectSpread$1F({
|
|
14556
14606
|
ref: inputRef,
|
|
14557
14607
|
type: 'text',
|
|
14558
14608
|
id: props.inputId,
|
|
@@ -14578,7 +14628,7 @@ var CascadeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
14578
14628
|
label: label
|
|
14579
14629
|
})
|
|
14580
14630
|
}, ptm('label', {
|
|
14581
|
-
context: _objectSpread$
|
|
14631
|
+
context: _objectSpread$1F({
|
|
14582
14632
|
label: label
|
|
14583
14633
|
}, context)
|
|
14584
14634
|
}));
|
|
@@ -14591,7 +14641,7 @@ var CascadeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
14591
14641
|
var icon = props.loadingIcon || /*#__PURE__*/React.createElement(SpinnerIcon, {
|
|
14592
14642
|
spin: true
|
|
14593
14643
|
});
|
|
14594
|
-
var loadingIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
14644
|
+
var loadingIcon = IconUtils.getJSXIcon(icon, _objectSpread$1F({}, loadingIconProps), {
|
|
14595
14645
|
props: props
|
|
14596
14646
|
});
|
|
14597
14647
|
var loadingButtonProps = mergeProps({
|
|
@@ -14607,7 +14657,7 @@ var CascadeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
14607
14657
|
className: cx('dropdownIcon')
|
|
14608
14658
|
}, ptm('dropdownIcon'));
|
|
14609
14659
|
var icon = props.dropdownIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, dropdownIconProps);
|
|
14610
|
-
var dropdownIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
14660
|
+
var dropdownIcon = IconUtils.getJSXIcon(icon, _objectSpread$1F({}, dropdownIconProps), {
|
|
14611
14661
|
props: props
|
|
14612
14662
|
});
|
|
14613
14663
|
var dropdownButtonProps = mergeProps({
|
|
@@ -14906,14 +14956,21 @@ var CheckboxBase = ComponentBase.extend({
|
|
|
14906
14956
|
}
|
|
14907
14957
|
});
|
|
14908
14958
|
|
|
14909
|
-
function ownKeys$
|
|
14910
|
-
function _objectSpread$
|
|
14959
|
+
function ownKeys$1E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14960
|
+
function _objectSpread$1E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14911
14961
|
var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
14912
14962
|
var mergeProps = useMergeProps();
|
|
14913
14963
|
var context = React.useContext(PrimeReactContext);
|
|
14914
14964
|
var props = CheckboxBase.getProps(inProps, context);
|
|
14965
|
+
var _React$useState = React.useState(false),
|
|
14966
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
14967
|
+
focusedState = _React$useState2[0],
|
|
14968
|
+
setFocusedState = _React$useState2[1];
|
|
14915
14969
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
14916
14970
|
props: props,
|
|
14971
|
+
state: {
|
|
14972
|
+
focused: focusedState
|
|
14973
|
+
},
|
|
14917
14974
|
context: {
|
|
14918
14975
|
checked: props.checked === props.trueValue,
|
|
14919
14976
|
disabled: props.disabled
|
|
@@ -14967,10 +15024,12 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
14967
15024
|
};
|
|
14968
15025
|
var _onFocus = function onFocus() {
|
|
14969
15026
|
var _props$onFocus;
|
|
15027
|
+
setFocusedState(true);
|
|
14970
15028
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
14971
15029
|
};
|
|
14972
15030
|
var _onBlur = function onBlur() {
|
|
14973
15031
|
var _props$onBlur;
|
|
15032
|
+
setFocusedState(false);
|
|
14974
15033
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
14975
15034
|
};
|
|
14976
15035
|
React.useImperativeHandle(ref, function () {
|
|
@@ -15015,7 +15074,7 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
15015
15074
|
}, otherProps, ptm('root'));
|
|
15016
15075
|
var createInputElement = function createInputElement() {
|
|
15017
15076
|
var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
|
|
15018
|
-
var inputProps = mergeProps(_objectSpread$
|
|
15077
|
+
var inputProps = mergeProps(_objectSpread$1E({
|
|
15019
15078
|
id: props.inputId,
|
|
15020
15079
|
type: 'checkbox',
|
|
15021
15080
|
className: cx('input'),
|
|
@@ -15052,7 +15111,7 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
15052
15111
|
'data-p-disabled': props.disabled
|
|
15053
15112
|
}, ptm('box'));
|
|
15054
15113
|
var icon = checked ? props.icon || /*#__PURE__*/React.createElement(CheckIcon, iconProps) : null;
|
|
15055
|
-
var checkboxIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
15114
|
+
var checkboxIcon = IconUtils.getJSXIcon(icon, _objectSpread$1E({}, iconProps), {
|
|
15056
15115
|
props: props,
|
|
15057
15116
|
checked: checked
|
|
15058
15117
|
});
|
|
@@ -15102,8 +15161,8 @@ var ChipBase = ComponentBase.extend({
|
|
|
15102
15161
|
}
|
|
15103
15162
|
});
|
|
15104
15163
|
|
|
15105
|
-
function ownKeys$
|
|
15106
|
-
function _objectSpread$
|
|
15164
|
+
function ownKeys$1D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15165
|
+
function _objectSpread$1D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15107
15166
|
var Chip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
15108
15167
|
var mergeProps = useMergeProps();
|
|
15109
15168
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -15161,7 +15220,7 @@ var Chip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
15161
15220
|
key: 'icon',
|
|
15162
15221
|
className: cx('icon')
|
|
15163
15222
|
}, ptm('icon'));
|
|
15164
|
-
content.push(IconUtils.getJSXIcon(props.icon, _objectSpread$
|
|
15223
|
+
content.push(IconUtils.getJSXIcon(props.icon, _objectSpread$1D({}, chipIconProps), {
|
|
15165
15224
|
props: props
|
|
15166
15225
|
}));
|
|
15167
15226
|
}
|
|
@@ -15173,7 +15232,7 @@ var Chip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
15173
15232
|
content.push( /*#__PURE__*/React.createElement("span", labelProps, props.label));
|
|
15174
15233
|
}
|
|
15175
15234
|
if (props.removable) {
|
|
15176
|
-
content.push(IconUtils.getJSXIcon(icon, _objectSpread$
|
|
15235
|
+
content.push(IconUtils.getJSXIcon(icon, _objectSpread$1D({}, removeIconProps), {
|
|
15177
15236
|
props: props
|
|
15178
15237
|
}));
|
|
15179
15238
|
}
|
|
@@ -15275,8 +15334,8 @@ var ChipsBase = ComponentBase.extend({
|
|
|
15275
15334
|
}
|
|
15276
15335
|
});
|
|
15277
15336
|
|
|
15278
|
-
function ownKeys$
|
|
15279
|
-
function _objectSpread$
|
|
15337
|
+
function ownKeys$1C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15338
|
+
function _objectSpread$1C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15280
15339
|
var Chips = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
15281
15340
|
var mergeProps = useMergeProps();
|
|
15282
15341
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -15557,7 +15616,7 @@ var Chips = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inP
|
|
|
15557
15616
|
'aria-hidden': 'true'
|
|
15558
15617
|
}, ptm('removeTokenIcon'));
|
|
15559
15618
|
var icon = props.removeIcon || /*#__PURE__*/React.createElement(TimesCircleIcon, iconProps);
|
|
15560
|
-
var removeIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
15619
|
+
var removeIcon = IconUtils.getJSXIcon(icon, _objectSpread$1C({}, iconProps), {
|
|
15561
15620
|
props: props
|
|
15562
15621
|
});
|
|
15563
15622
|
return removeIcon;
|
|
@@ -15592,7 +15651,7 @@ var Chips = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inP
|
|
|
15592
15651
|
var inputTokenProps = mergeProps({
|
|
15593
15652
|
className: cx('inputToken')
|
|
15594
15653
|
}, ptm('inputToken'));
|
|
15595
|
-
var inputProps = mergeProps(_objectSpread$
|
|
15654
|
+
var inputProps = mergeProps(_objectSpread$1C({
|
|
15596
15655
|
id: props.inputId,
|
|
15597
15656
|
ref: inputRef,
|
|
15598
15657
|
placeholder: props.placeholder,
|
|
@@ -15784,8 +15843,8 @@ var ColorPickerPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
15784
15843
|
});
|
|
15785
15844
|
ColorPickerPanel.displayName = 'ColorPickerPanel';
|
|
15786
15845
|
|
|
15787
|
-
function ownKeys$
|
|
15788
|
-
function _objectSpread$
|
|
15846
|
+
function ownKeys$1B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15847
|
+
function _objectSpread$1B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15789
15848
|
var ColorPicker = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
15790
15849
|
var mergeProps = useMergeProps();
|
|
15791
15850
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -15803,9 +15862,18 @@ var ColorPicker = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
15803
15862
|
ptm = _ColorPickerBase$setM.ptm,
|
|
15804
15863
|
cx = _ColorPickerBase$setM.cx,
|
|
15805
15864
|
isUnstyled = _ColorPickerBase$setM.isUnstyled;
|
|
15865
|
+
var isCloseOnEscape = overlayVisibleState && props.closeOnEscape;
|
|
15866
|
+
var overlayDisplayOrder = useDisplayOrder('overlay-panel', isCloseOnEscape);
|
|
15806
15867
|
useHandleStyle(ColorPickerBase.css.styles, isUnstyled, {
|
|
15807
15868
|
name: 'colorpicker'
|
|
15808
15869
|
});
|
|
15870
|
+
useGlobalOnEscapeKey({
|
|
15871
|
+
callback: function callback() {
|
|
15872
|
+
hide();
|
|
15873
|
+
},
|
|
15874
|
+
when: overlayVisibleState && overlayDisplayOrder,
|
|
15875
|
+
priority: [ESC_KEY_HANDLING_PRIORITIES.OVERLAY_PANEL, overlayDisplayOrder]
|
|
15876
|
+
});
|
|
15809
15877
|
var elementRef = React.useRef(null);
|
|
15810
15878
|
var overlayRef = React.useRef(null);
|
|
15811
15879
|
var inputRef = React.useRef(props.inputRef);
|
|
@@ -15873,12 +15941,17 @@ var ColorPicker = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
15873
15941
|
pickHue(event);
|
|
15874
15942
|
!isUnstyled && DomHandler.addClass(elementRef.current, 'p-colorpicker-dragging');
|
|
15875
15943
|
};
|
|
15944
|
+
var getPositionY = function getPositionY(event) {
|
|
15945
|
+
if (event.pageY !== undefined) return event.pageY;else if (event.changedTouches !== undefined) return event.changedTouches[0].pageY;else return 0;
|
|
15946
|
+
};
|
|
15876
15947
|
var pickHue = function pickHue(event) {
|
|
15877
|
-
var top = hueViewRef.current.getBoundingClientRect().top + (window.
|
|
15948
|
+
var top = hueViewRef.current.getBoundingClientRect().top + (window.scrollY || document.documentElement.scrollTop || document.body.scrollTop || 0);
|
|
15949
|
+
var yPos = getPositionY(event);
|
|
15950
|
+
var hue = Math.floor(360 * (150 - Math.max(0, Math.min(150, yPos - top))) / 150);
|
|
15878
15951
|
hsbValue.current = validateHSB({
|
|
15879
|
-
h:
|
|
15880
|
-
s:
|
|
15881
|
-
b:
|
|
15952
|
+
h: hue,
|
|
15953
|
+
s: hsbValue.current.s,
|
|
15954
|
+
b: hsbValue.current.b
|
|
15882
15955
|
});
|
|
15883
15956
|
updateColorSelector();
|
|
15884
15957
|
updateHue();
|
|
@@ -16290,7 +16363,7 @@ var ColorPicker = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
16290
16363
|
var createInput = function createInput() {
|
|
16291
16364
|
if (!props.inline) {
|
|
16292
16365
|
var inputProps = ColorPickerBase.getOtherProps(props);
|
|
16293
|
-
var _inputProps = mergeProps(_objectSpread$
|
|
16366
|
+
var _inputProps = mergeProps(_objectSpread$1B({
|
|
16294
16367
|
ref: inputRef,
|
|
16295
16368
|
type: 'text',
|
|
16296
16369
|
readOnly: true,
|
|
@@ -16365,8 +16438,8 @@ var FocusTrapBase = ComponentBase.extend({
|
|
|
16365
16438
|
}
|
|
16366
16439
|
});
|
|
16367
16440
|
|
|
16368
|
-
function ownKeys$
|
|
16369
|
-
function _objectSpread$
|
|
16441
|
+
function ownKeys$1A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16442
|
+
function _objectSpread$1A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16370
16443
|
var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.forwardRef(function (inProps, ref) {
|
|
16371
16444
|
var targetRef = React__default.useRef(null);
|
|
16372
16445
|
var firstFocusableElementRef = React__default.useRef(null);
|
|
@@ -16379,7 +16452,7 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
|
|
|
16379
16452
|
useStyle(FocusTrapBase.css.styles, {
|
|
16380
16453
|
name: 'focustrap'
|
|
16381
16454
|
});
|
|
16382
|
-
var _FocusTrapBase$setMet = FocusTrapBase.setMetaData(_objectSpread$
|
|
16455
|
+
var _FocusTrapBase$setMet = FocusTrapBase.setMetaData(_objectSpread$1A({}, metaData));
|
|
16383
16456
|
_FocusTrapBase$setMet.ptm;
|
|
16384
16457
|
React__default.useImperativeHandle(ref, function () {
|
|
16385
16458
|
return {
|
|
@@ -16401,6 +16474,15 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
|
|
|
16401
16474
|
var getTarget = function getTarget() {
|
|
16402
16475
|
return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
|
|
16403
16476
|
};
|
|
16477
|
+
|
|
16478
|
+
/**
|
|
16479
|
+
* This method sets the auto focus on the first focusable element within the target element.
|
|
16480
|
+
* It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
|
|
16481
|
+
* it then tries to find a focusable element using the firstFocusableSelector.
|
|
16482
|
+
* If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
|
|
16483
|
+
*
|
|
16484
|
+
* @param {HTMLElement} target - The target element within which to find a focusable element.
|
|
16485
|
+
*/
|
|
16404
16486
|
var setAutoFocus = function setAutoFocus(target) {
|
|
16405
16487
|
var _ref = props || {},
|
|
16406
16488
|
_ref$autoFocusSelecto = _ref.autoFocusSelector,
|
|
@@ -16409,7 +16491,9 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
|
|
|
16409
16491
|
firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
|
|
16410
16492
|
_ref$autoFocus = _ref.autoFocus,
|
|
16411
16493
|
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
|
|
16412
|
-
var
|
|
16494
|
+
var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
|
|
16495
|
+
var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
|
|
16496
|
+
var focusableElement = DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
|
|
16413
16497
|
autoFocus && !focusableElement && (focusableElement = DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
|
|
16414
16498
|
DomHandler.focus(focusableElement);
|
|
16415
16499
|
};
|
|
@@ -16511,8 +16595,8 @@ var WindowMinimizeIcon = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
|
|
|
16511
16595
|
}));
|
|
16512
16596
|
WindowMinimizeIcon.displayName = 'WindowMinimizeIcon';
|
|
16513
16597
|
|
|
16514
|
-
function ownKeys$
|
|
16515
|
-
function _objectSpread$
|
|
16598
|
+
function ownKeys$1z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16599
|
+
function _objectSpread$1z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16516
16600
|
var classes$$ = {
|
|
16517
16601
|
closeButtonIcon: 'p-dialog-header-close-icon',
|
|
16518
16602
|
closeButton: 'p-dialog-header-icon p-dialog-header-close p-link',
|
|
@@ -16564,7 +16648,7 @@ var styles$O = "\n@layer primereact {\n .p-dialog-mask {\n background-
|
|
|
16564
16648
|
var inlineStyles$k = {
|
|
16565
16649
|
mask: function mask(_ref6) {
|
|
16566
16650
|
var props = _ref6.props;
|
|
16567
|
-
return _objectSpread$
|
|
16651
|
+
return _objectSpread$1z({
|
|
16568
16652
|
position: 'fixed',
|
|
16569
16653
|
height: '100%',
|
|
16570
16654
|
width: '100%',
|
|
@@ -16640,8 +16724,8 @@ var DialogBase = ComponentBase.extend({
|
|
|
16640
16724
|
}
|
|
16641
16725
|
});
|
|
16642
16726
|
|
|
16643
|
-
function ownKeys$
|
|
16644
|
-
function _objectSpread$
|
|
16727
|
+
function ownKeys$1y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16728
|
+
function _objectSpread$1y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16645
16729
|
var Dialog = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
16646
16730
|
var mergeProps = useMergeProps();
|
|
16647
16731
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -16681,7 +16765,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
16681
16765
|
var shouldBlockScroll = visibleState && (props.blockScroll || props.maximizable && maximized);
|
|
16682
16766
|
var isCloseOnEscape = props.closable && props.closeOnEscape && visibleState;
|
|
16683
16767
|
var displayOrder = useDisplayOrder('dialog', isCloseOnEscape);
|
|
16684
|
-
var _DialogBase$setMetaDa = DialogBase.setMetaData(_objectSpread$
|
|
16768
|
+
var _DialogBase$setMetaDa = DialogBase.setMetaData(_objectSpread$1y(_objectSpread$1y({
|
|
16685
16769
|
props: props
|
|
16686
16770
|
}, props.__parentMetadata), {}, {
|
|
16687
16771
|
state: {
|
|
@@ -17073,7 +17157,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
17073
17157
|
'aria-hidden': true
|
|
17074
17158
|
}, ptm('closeButtonIcon'));
|
|
17075
17159
|
var icon = props.closeIcon || /*#__PURE__*/React.createElement(TimesIcon, closeButtonIconProps);
|
|
17076
|
-
var headerCloseIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
17160
|
+
var headerCloseIcon = IconUtils.getJSXIcon(icon, _objectSpread$1y({}, closeButtonIconProps), {
|
|
17077
17161
|
props: props
|
|
17078
17162
|
});
|
|
17079
17163
|
var closeButtonProps = mergeProps({
|
|
@@ -17083,7 +17167,9 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
17083
17167
|
'aria-label': ariaLabel,
|
|
17084
17168
|
onClick: onClose,
|
|
17085
17169
|
onKeyDown: function onKeyDown(ev) {
|
|
17086
|
-
|
|
17170
|
+
if (ev.key !== 'Escape') {
|
|
17171
|
+
ev.stopPropagation();
|
|
17172
|
+
}
|
|
17087
17173
|
}
|
|
17088
17174
|
}, ptm('closeButton'));
|
|
17089
17175
|
return /*#__PURE__*/React.createElement("button", closeButtonProps, headerCloseIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
@@ -17240,7 +17326,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
17240
17326
|
var rootElement = /*#__PURE__*/React.createElement("div", maskProps, /*#__PURE__*/React.createElement(CSSTransition, _extends({
|
|
17241
17327
|
nodeRef: dialogRef
|
|
17242
17328
|
}, transitionProps), /*#__PURE__*/React.createElement("div", rootProps, /*#__PURE__*/React.createElement(FocusTrap$1, {
|
|
17243
|
-
autoFocus:
|
|
17329
|
+
autoFocus: props.focusOnShow
|
|
17244
17330
|
}, contentElement))));
|
|
17245
17331
|
return /*#__PURE__*/React.createElement(Portal, {
|
|
17246
17332
|
element: rootElement,
|
|
@@ -17293,17 +17379,17 @@ var ConfirmDialogBase = ComponentBase.extend({
|
|
|
17293
17379
|
}
|
|
17294
17380
|
});
|
|
17295
17381
|
|
|
17296
|
-
function ownKeys$
|
|
17297
|
-
function _objectSpread$
|
|
17382
|
+
function ownKeys$1x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17383
|
+
function _objectSpread$1x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17298
17384
|
var confirmDialog = function confirmDialog() {
|
|
17299
17385
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
17300
|
-
props = _objectSpread$
|
|
17386
|
+
props = _objectSpread$1x(_objectSpread$1x({}, props), {
|
|
17301
17387
|
visible: props.visible === undefined ? true : props.visible
|
|
17302
17388
|
});
|
|
17303
17389
|
props.visible && OverlayService.emit('confirm-dialog', props);
|
|
17304
17390
|
var show = function show() {
|
|
17305
17391
|
var updatedProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
17306
|
-
OverlayService.emit('confirm-dialog', _objectSpread$
|
|
17392
|
+
OverlayService.emit('confirm-dialog', _objectSpread$1x(_objectSpread$1x(_objectSpread$1x({}, props), updatedProps), {
|
|
17307
17393
|
visible: true
|
|
17308
17394
|
}));
|
|
17309
17395
|
};
|
|
@@ -17492,7 +17578,7 @@ var ConfirmDialog = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
17492
17578
|
var iconProps = mergeProps({
|
|
17493
17579
|
className: cx('icon')
|
|
17494
17580
|
}, ptm('icon'));
|
|
17495
|
-
var icon = IconUtils.getJSXIcon(getPropValue('icon'), _objectSpread$
|
|
17581
|
+
var icon = IconUtils.getJSXIcon(getPropValue('icon'), _objectSpread$1x({}, iconProps), {
|
|
17496
17582
|
props: currentProps
|
|
17497
17583
|
});
|
|
17498
17584
|
var footer = createFooter();
|
|
@@ -17585,17 +17671,17 @@ var ConfirmPopupBase = ComponentBase.extend({
|
|
|
17585
17671
|
}
|
|
17586
17672
|
});
|
|
17587
17673
|
|
|
17588
|
-
function ownKeys$
|
|
17589
|
-
function _objectSpread$
|
|
17674
|
+
function ownKeys$1w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17675
|
+
function _objectSpread$1w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17590
17676
|
var confirmPopup = function confirmPopup() {
|
|
17591
17677
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
17592
|
-
props = _objectSpread$
|
|
17678
|
+
props = _objectSpread$1w(_objectSpread$1w({}, props), {
|
|
17593
17679
|
visible: props.visible === undefined ? true : props.visible
|
|
17594
17680
|
});
|
|
17595
17681
|
props.visible && OverlayService.emit('confirm-popup', props);
|
|
17596
17682
|
var show = function show() {
|
|
17597
17683
|
var updatedProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
17598
|
-
OverlayService.emit('confirm-popup', _objectSpread$
|
|
17684
|
+
OverlayService.emit('confirm-popup', _objectSpread$1w(_objectSpread$1w(_objectSpread$1w({}, props), updatedProps), {
|
|
17599
17685
|
visible: true
|
|
17600
17686
|
}));
|
|
17601
17687
|
};
|
|
@@ -17825,7 +17911,7 @@ var ConfirmPopup = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
17825
17911
|
var iconProps = mergeProps({
|
|
17826
17912
|
className: cx('icon')
|
|
17827
17913
|
}, ptm('icon'));
|
|
17828
|
-
var icon = IconUtils.getJSXIcon(getPropValue('icon'), _objectSpread$
|
|
17914
|
+
var icon = IconUtils.getJSXIcon(getPropValue('icon'), _objectSpread$1w({}, iconProps), {
|
|
17829
17915
|
props: currentProps
|
|
17830
17916
|
});
|
|
17831
17917
|
var messageProps = mergeProps({
|
|
@@ -18013,8 +18099,8 @@ var ContextMenuBase = ComponentBase.extend({
|
|
|
18013
18099
|
}
|
|
18014
18100
|
});
|
|
18015
18101
|
|
|
18016
|
-
function ownKeys$
|
|
18017
|
-
function _objectSpread$
|
|
18102
|
+
function ownKeys$1v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18103
|
+
function _objectSpread$1v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18018
18104
|
var ContextMenuSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
18019
18105
|
var mergeProps = useMergeProps();
|
|
18020
18106
|
var submenuRef = React.useRef(null);
|
|
@@ -18184,7 +18270,7 @@ var ContextMenuSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(func
|
|
|
18184
18270
|
var iconProps = mergeProps({
|
|
18185
18271
|
className: cx('icon')
|
|
18186
18272
|
}, getPTOptions(processedItem, 'icon', index));
|
|
18187
|
-
var icon = IconUtils.getJSXIcon(item.icon, _objectSpread$
|
|
18273
|
+
var icon = IconUtils.getJSXIcon(item.icon, _objectSpread$1v({}, iconProps), {
|
|
18188
18274
|
props: props.menuProps
|
|
18189
18275
|
});
|
|
18190
18276
|
var submenuIconProps = mergeProps({
|
|
@@ -18194,7 +18280,7 @@ var ContextMenuSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(func
|
|
|
18194
18280
|
className: cx('label')
|
|
18195
18281
|
}, getPTOptions(processedItem, 'label', index));
|
|
18196
18282
|
var items = getItemProp(processedItem, 'items');
|
|
18197
|
-
var submenuIcon = items && IconUtils.getJSXIcon(props.submenuIcon || /*#__PURE__*/React.createElement(AngleRightIcon, submenuIconProps), _objectSpread$
|
|
18283
|
+
var submenuIcon = items && IconUtils.getJSXIcon(props.submenuIcon || /*#__PURE__*/React.createElement(AngleRightIcon, submenuIconProps), _objectSpread$1v({}, submenuIconProps), {
|
|
18198
18284
|
props: props.menuProps
|
|
18199
18285
|
});
|
|
18200
18286
|
var label = item.label && /*#__PURE__*/React.createElement("span", labelProps, item.label);
|
|
@@ -18297,8 +18383,8 @@ var ContextMenuSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(func
|
|
|
18297
18383
|
}));
|
|
18298
18384
|
ContextMenuSub.displayName = 'ContextMenuSub';
|
|
18299
18385
|
|
|
18300
|
-
function ownKeys$
|
|
18301
|
-
function _objectSpread$
|
|
18386
|
+
function ownKeys$1u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18387
|
+
function _objectSpread$1u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18302
18388
|
var ContextMenu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
18303
18389
|
var mergeProps = useMergeProps();
|
|
18304
18390
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -18815,7 +18901,7 @@ var ContextMenu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
18815
18901
|
anchorElement ? anchorElement.click() : _element && _element.click();
|
|
18816
18902
|
var processedItem = visibleItems[focusedItemInfo.index];
|
|
18817
18903
|
var grouped = isProccessedItemGroup(processedItem);
|
|
18818
|
-
!grouped && setFocusedItemInfo(_objectSpread$
|
|
18904
|
+
!grouped && setFocusedItemInfo(_objectSpread$1u(_objectSpread$1u({}, focusedItemInfo), {}, {
|
|
18819
18905
|
index: findFirstFocusedItemIndex()
|
|
18820
18906
|
}));
|
|
18821
18907
|
}
|
|
@@ -18879,7 +18965,7 @@ var ContextMenu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
18879
18965
|
};
|
|
18880
18966
|
var changeFocusedItemIndex = function changeFocusedItemIndex(index) {
|
|
18881
18967
|
if (focusedItemInfo.index !== index) {
|
|
18882
|
-
setFocusedItemInfo(_objectSpread$
|
|
18968
|
+
setFocusedItemInfo(_objectSpread$1u(_objectSpread$1u({}, focusedItemInfo), {}, {
|
|
18883
18969
|
index: index
|
|
18884
18970
|
}));
|
|
18885
18971
|
scrollInView();
|
|
@@ -19271,6 +19357,19 @@ var DataScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
19271
19357
|
}));
|
|
19272
19358
|
DataScroller.displayName = 'DataScroller';
|
|
19273
19359
|
|
|
19360
|
+
var getStorage = function getStorage(stateStorageProp) {
|
|
19361
|
+
switch (stateStorageProp) {
|
|
19362
|
+
case 'local':
|
|
19363
|
+
return window.localStorage;
|
|
19364
|
+
case 'session':
|
|
19365
|
+
return window.sessionStorage;
|
|
19366
|
+
case 'custom':
|
|
19367
|
+
return null;
|
|
19368
|
+
default:
|
|
19369
|
+
throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
19370
|
+
}
|
|
19371
|
+
};
|
|
19372
|
+
|
|
19274
19373
|
var ColumnBase = ComponentBase.extend({
|
|
19275
19374
|
defaultProps: {
|
|
19276
19375
|
__TYPE: 'Column',
|
|
@@ -19566,8 +19665,8 @@ var RowsPerPageDropdownBase = ComponentBase.extend({
|
|
|
19566
19665
|
}
|
|
19567
19666
|
});
|
|
19568
19667
|
|
|
19569
|
-
function ownKeys$
|
|
19570
|
-
function _objectSpread$
|
|
19668
|
+
function ownKeys$1t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19669
|
+
function _objectSpread$1t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19571
19670
|
var CurrentPageReport = /*#__PURE__*/React.memo(function (inProps) {
|
|
19572
19671
|
var mergeProps = useMergeProps();
|
|
19573
19672
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -19589,7 +19688,7 @@ var CurrentPageReport = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
19589
19688
|
}));
|
|
19590
19689
|
var element = /*#__PURE__*/React.createElement("span", currentProps, text);
|
|
19591
19690
|
if (props.template) {
|
|
19592
|
-
var defaultOptions = _objectSpread$
|
|
19691
|
+
var defaultOptions = _objectSpread$1t(_objectSpread$1t({}, report), {
|
|
19593
19692
|
ariaLive: 'polite',
|
|
19594
19693
|
className: 'p-paginator-current',
|
|
19595
19694
|
element: element,
|
|
@@ -19619,8 +19718,8 @@ var AngleDoubleLeftIcon = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef
|
|
|
19619
19718
|
}));
|
|
19620
19719
|
AngleDoubleLeftIcon.displayName = 'AngleDoubleLeftIcon';
|
|
19621
19720
|
|
|
19622
|
-
function ownKeys$
|
|
19623
|
-
function _objectSpread$
|
|
19721
|
+
function ownKeys$1s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19722
|
+
function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19624
19723
|
var FirstPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
19625
19724
|
var mergeProps = useMergeProps();
|
|
19626
19725
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -19643,7 +19742,7 @@ var FirstPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
19643
19742
|
className: cx('firstPageIcon')
|
|
19644
19743
|
}, getPTOptions('firstPageIcon'));
|
|
19645
19744
|
var icon = props.firstPageLinkIcon || /*#__PURE__*/React.createElement(AngleDoubleLeftIcon, firstPageIconProps);
|
|
19646
|
-
var firstPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
19745
|
+
var firstPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$1s({}, firstPageIconProps), {
|
|
19647
19746
|
props: props
|
|
19648
19747
|
});
|
|
19649
19748
|
var firstPageButtonProps = mergeProps({
|
|
@@ -19808,8 +19907,8 @@ var InputNumberBase = ComponentBase.extend({
|
|
|
19808
19907
|
}
|
|
19809
19908
|
});
|
|
19810
19909
|
|
|
19811
|
-
function ownKeys$
|
|
19812
|
-
function _objectSpread$
|
|
19910
|
+
function ownKeys$1r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19911
|
+
function _objectSpread$1r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19813
19912
|
var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
19814
19913
|
var mergeProps = useMergeProps();
|
|
19815
19914
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -19818,7 +19917,7 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
19818
19917
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
19819
19918
|
focusedState = _React$useState2[0],
|
|
19820
19919
|
setFocusedState = _React$useState2[1];
|
|
19821
|
-
var metaData = _objectSpread$
|
|
19920
|
+
var metaData = _objectSpread$1r(_objectSpread$1r({
|
|
19822
19921
|
props: props
|
|
19823
19922
|
}, props.__parentMetadata), {}, {
|
|
19824
19923
|
state: {
|
|
@@ -19830,7 +19929,8 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
19830
19929
|
cx = _InputNumberBase$setM.cx,
|
|
19831
19930
|
isUnstyled = _InputNumberBase$setM.isUnstyled;
|
|
19832
19931
|
useHandleStyle(InputNumberBase.css.styles, isUnstyled, {
|
|
19833
|
-
name: 'inputnumber'
|
|
19932
|
+
name: 'inputnumber',
|
|
19933
|
+
styled: true
|
|
19834
19934
|
});
|
|
19835
19935
|
var elementRef = React.useRef(null);
|
|
19836
19936
|
var inputRef = React.useRef(null);
|
|
@@ -19857,14 +19957,15 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
19857
19957
|
var vertical = props.showButtons && props.buttonLayout === 'vertical';
|
|
19858
19958
|
var inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits ? 'numeric' : 'decimal');
|
|
19859
19959
|
var getOptions = function getOptions() {
|
|
19960
|
+
var _props$minFractionDig, _props$maxFractionDig;
|
|
19860
19961
|
return {
|
|
19861
19962
|
localeMatcher: props.localeMatcher,
|
|
19862
19963
|
style: props.mode,
|
|
19863
19964
|
currency: props.currency,
|
|
19864
19965
|
currencyDisplay: props.currencyDisplay,
|
|
19865
19966
|
useGrouping: props.useGrouping,
|
|
19866
|
-
minimumFractionDigits: props.minFractionDigits,
|
|
19867
|
-
maximumFractionDigits: props.maxFractionDigits,
|
|
19967
|
+
minimumFractionDigits: (_props$minFractionDig = props.minFractionDigits) !== null && _props$minFractionDig !== void 0 ? _props$minFractionDig : undefined,
|
|
19968
|
+
maximumFractionDigits: (_props$maxFractionDig = props.maxFractionDigits) !== null && _props$maxFractionDig !== void 0 ? _props$maxFractionDig : undefined,
|
|
19868
19969
|
roundingMode: props.roundingMode
|
|
19869
19970
|
};
|
|
19870
19971
|
};
|
|
@@ -19901,7 +20002,7 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
19901
20002
|
}).format(1.1).trim().replace(_numeral.current, '');
|
|
19902
20003
|
};
|
|
19903
20004
|
var getDecimalExpression = function getDecimalExpression() {
|
|
19904
|
-
var formatter = new Intl.NumberFormat(_locale, _objectSpread$
|
|
20005
|
+
var formatter = new Intl.NumberFormat(_locale, _objectSpread$1r(_objectSpread$1r({}, getOptions()), {}, {
|
|
19905
20006
|
useGrouping: false
|
|
19906
20007
|
}));
|
|
19907
20008
|
return new RegExp("[".concat(formatter.format(1.1).replace(_currency.current, '').trim().replace(_numeral.current, ''), "]"), 'g');
|
|
@@ -20282,7 +20383,7 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
20282
20383
|
if (_char2) {
|
|
20283
20384
|
var _isDecimalSign = isDecimalSign(_char2);
|
|
20284
20385
|
var _isMinusSign = isMinusSign(_char2);
|
|
20285
|
-
if (
|
|
20386
|
+
if (Number(_char2) >= 0 && Number(_char2) <= 9 || _isMinusSign || _isDecimalSign) {
|
|
20286
20387
|
insert(event, _char2, {
|
|
20287
20388
|
isDecimalSign: _isDecimalSign,
|
|
20288
20389
|
isMinusSign: _isMinusSign
|
|
@@ -20811,6 +20912,7 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
20811
20912
|
"aria-valuenow": props.value
|
|
20812
20913
|
}, ariaProps, dataProps, {
|
|
20813
20914
|
pt: ptm('input'),
|
|
20915
|
+
unstyled: props.unstyled,
|
|
20814
20916
|
__parentMetadata: {
|
|
20815
20917
|
parent: metaData
|
|
20816
20918
|
}
|
|
@@ -20821,7 +20923,7 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
20821
20923
|
className: cx('incrementIcon')
|
|
20822
20924
|
}, ptm('incrementIcon'));
|
|
20823
20925
|
var icon = props.incrementButtonIcon || /*#__PURE__*/React.createElement(AngleUpIcon, incrementIconProps);
|
|
20824
|
-
var upButton = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
20926
|
+
var upButton = IconUtils.getJSXIcon(icon, _objectSpread$1r({}, incrementIconProps), {
|
|
20825
20927
|
props: props
|
|
20826
20928
|
});
|
|
20827
20929
|
var incrementButtonProps = mergeProps({
|
|
@@ -20847,7 +20949,7 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
20847
20949
|
className: cx('decrementIcon')
|
|
20848
20950
|
}, ptm('decrementIcon'));
|
|
20849
20951
|
var icon = props.decrementButtonIcon || /*#__PURE__*/React.createElement(AngleDownIcon, decrementIconProps);
|
|
20850
|
-
var downButton = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
20952
|
+
var downButton = IconUtils.getJSXIcon(icon, _objectSpread$1r({}, decrementIconProps), {
|
|
20851
20953
|
props: props
|
|
20852
20954
|
});
|
|
20853
20955
|
var decrementButtonProps = mergeProps({
|
|
@@ -20962,8 +21064,8 @@ var AngleDoubleRightIcon = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRe
|
|
|
20962
21064
|
}));
|
|
20963
21065
|
AngleDoubleRightIcon.displayName = 'AngleDoubleRightIcon';
|
|
20964
21066
|
|
|
20965
|
-
function ownKeys$
|
|
20966
|
-
function _objectSpread$
|
|
21067
|
+
function ownKeys$1q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21068
|
+
function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20967
21069
|
var LastPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
20968
21070
|
var mergeProps = useMergeProps();
|
|
20969
21071
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -20986,7 +21088,7 @@ var LastPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
20986
21088
|
className: cx('lastPageIcon')
|
|
20987
21089
|
}, getPTOptions('lastPageIcon'));
|
|
20988
21090
|
var icon = props.lastPageLinkIcon || /*#__PURE__*/React.createElement(AngleDoubleRightIcon, lastPageIconProps);
|
|
20989
|
-
var lastPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
21091
|
+
var lastPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$1q({}, lastPageIconProps), {
|
|
20990
21092
|
props: props
|
|
20991
21093
|
});
|
|
20992
21094
|
var lastPageButtonProps = mergeProps({
|
|
@@ -21014,8 +21116,8 @@ var LastPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
21014
21116
|
});
|
|
21015
21117
|
LastPageLink.displayName = 'LastPageLink';
|
|
21016
21118
|
|
|
21017
|
-
function ownKeys$
|
|
21018
|
-
function _objectSpread$
|
|
21119
|
+
function ownKeys$1p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21120
|
+
function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21019
21121
|
var NextPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
21020
21122
|
var mergeProps = useMergeProps();
|
|
21021
21123
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -21038,7 +21140,7 @@ var NextPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
21038
21140
|
className: cx('nextPageIcon')
|
|
21039
21141
|
}, getPTOptions('nextPageIcon'));
|
|
21040
21142
|
var icon = props.nextPageLinkIcon || /*#__PURE__*/React.createElement(AngleRightIcon, nextPageIconProps);
|
|
21041
|
-
var nextPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
21143
|
+
var nextPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$1p({}, nextPageIconProps), {
|
|
21042
21144
|
props: props
|
|
21043
21145
|
});
|
|
21044
21146
|
var nextPageButtonProps = mergeProps({
|
|
@@ -21170,8 +21272,8 @@ var AngleLeftIcon = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
21170
21272
|
}));
|
|
21171
21273
|
AngleLeftIcon.displayName = 'AngleLeftIcon';
|
|
21172
21274
|
|
|
21173
|
-
function ownKeys$
|
|
21174
|
-
function _objectSpread$
|
|
21275
|
+
function ownKeys$1o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21276
|
+
function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21175
21277
|
var PrevPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
21176
21278
|
var mergeProps = useMergeProps();
|
|
21177
21279
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -21194,7 +21296,7 @@ var PrevPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
21194
21296
|
className: cx('prevPageIcon')
|
|
21195
21297
|
}, getPTOptions('prevPageIcon'));
|
|
21196
21298
|
var icon = props.prevPageLinkIcon || /*#__PURE__*/React.createElement(AngleLeftIcon, prevPageIconProps);
|
|
21197
|
-
var prevPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$
|
|
21299
|
+
var prevPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$1o({}, prevPageIconProps), {
|
|
21198
21300
|
props: props
|
|
21199
21301
|
});
|
|
21200
21302
|
var prevPageButtonProps = mergeProps({
|
|
@@ -21222,6 +21324,8 @@ var PrevPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
21222
21324
|
});
|
|
21223
21325
|
PrevPageLink.displayName = 'PrevPageLink';
|
|
21224
21326
|
|
|
21327
|
+
function ownKeys$1n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21328
|
+
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21225
21329
|
var classes$U = {
|
|
21226
21330
|
root: function root(_ref) {
|
|
21227
21331
|
var props = _ref.props,
|
|
@@ -21306,7 +21410,7 @@ var classes$U = {
|
|
|
21306
21410
|
footer: 'p-dropdown-footer',
|
|
21307
21411
|
transition: 'p-connected-overlay'
|
|
21308
21412
|
};
|
|
21309
|
-
var styles$I = "\n@layer primereact {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n \n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n \n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n \n .p-dropdown-label-empty {\n overflow: hidden;\n visibility: hidden;\n }\n \n input.p-dropdown-label {\n cursor: default;\n }\n \n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n \n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n \n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n \n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n \n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n \n .p-dropdown-filter {\n width: 100%;\n }\n \n .p-dropdown-filter-container {\n position: relative;\n }\n \n .p-dropdown-clear-icon,\n .p-dropdown-filter-icon,\n .p-dropdown-filter-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n }\n \n .p-fluid .p-dropdown {\n display: flex;\n }\n \n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n";
|
|
21413
|
+
var styles$I = "\n@layer primereact {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n \n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n \n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n \n .p-dropdown-label-empty {\n overflow: hidden;\n visibility: hidden;\n }\n \n input.p-dropdown-label {\n cursor: default;\n }\n \n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n \n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n \n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n \n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n \n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n \n .p-dropdown-filter {\n width: 100%;\n }\n \n .p-dropdown-filter-container {\n position: relative;\n }\n \n .p-dropdown-clear-icon,\n .p-dropdown-filter-icon,\n .p-dropdown-filter-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n right: 2rem;\n }\n \n .p-fluid .p-dropdown {\n display: flex;\n }\n \n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n";
|
|
21310
21414
|
var inlineStyles$i = {
|
|
21311
21415
|
wrapper: function wrapper(_ref9) {
|
|
21312
21416
|
var props = _ref9.props;
|
|
@@ -21316,7 +21420,7 @@ var inlineStyles$i = {
|
|
|
21316
21420
|
},
|
|
21317
21421
|
panel: function panel(_ref10) {
|
|
21318
21422
|
var props = _ref10.props;
|
|
21319
|
-
props.panelStyle;
|
|
21423
|
+
return _objectSpread$1n({}, props.panelStyle);
|
|
21320
21424
|
}
|
|
21321
21425
|
};
|
|
21322
21426
|
var DropdownBase = ComponentBase.extend({
|
|
@@ -22252,8 +22356,9 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
22252
22356
|
}
|
|
22253
22357
|
};
|
|
22254
22358
|
var onEditableInputChange = function onEditableInputChange(event) {
|
|
22359
|
+
!overlayVisibleState && show();
|
|
22255
22360
|
var searchIndex = null;
|
|
22256
|
-
if (event.target.value) {
|
|
22361
|
+
if (event.target.value && visibleOptions) {
|
|
22257
22362
|
searchIndex = visibleOptions.findIndex(function (item) {
|
|
22258
22363
|
return getOptionLabel(item).toLocaleLowerCase().startsWith(event.target.value.toLocaleLowerCase());
|
|
22259
22364
|
});
|
|
@@ -22459,10 +22564,15 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
22459
22564
|
}
|
|
22460
22565
|
};
|
|
22461
22566
|
var getOptionLabel = function getOptionLabel(option) {
|
|
22462
|
-
|
|
22567
|
+
if (ObjectUtils.isScalar(option)) {
|
|
22568
|
+
return "".concat(option);
|
|
22569
|
+
}
|
|
22570
|
+
var optionLabel = props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : option['label'];
|
|
22571
|
+
return "".concat(optionLabel);
|
|
22463
22572
|
};
|
|
22464
22573
|
var getOptionValue = function getOptionValue(option) {
|
|
22465
|
-
|
|
22574
|
+
var optionValue = props.optionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : option ? option['value'] : ObjectUtils.resolveFieldData(option, 'value');
|
|
22575
|
+
return ObjectUtils.isNotEmpty(optionValue) ? optionValue : option;
|
|
22466
22576
|
};
|
|
22467
22577
|
var getOptionRenderKey = function getOptionRenderKey(option) {
|
|
22468
22578
|
return props.dataKey ? ObjectUtils.resolveFieldData(option, props.dataKey) : getOptionLabel(option);
|
|
@@ -22635,7 +22745,7 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
22635
22745
|
}, ariaProps), ptm('input'));
|
|
22636
22746
|
return /*#__PURE__*/React.createElement("input", _inputProps);
|
|
22637
22747
|
}
|
|
22638
|
-
var content = props.valueTemplate ? ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder ||
|
|
22748
|
+
var content = props.valueTemplate ? ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder || props.emptyMessage || /*#__PURE__*/React.createElement(React.Fragment, null, "\xA0");
|
|
22639
22749
|
var inputProps = mergeProps({
|
|
22640
22750
|
ref: inputRef,
|
|
22641
22751
|
className: cx('input', {
|
|
@@ -22652,7 +22762,7 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
22652
22762
|
}
|
|
22653
22763
|
};
|
|
22654
22764
|
var createClearIcon = function createClearIcon() {
|
|
22655
|
-
if (props.value != null && props.showClear && !props.disabled) {
|
|
22765
|
+
if (props.value != null && props.showClear && !props.disabled && !ObjectUtils.isEmpty(props.options)) {
|
|
22656
22766
|
var clearIconProps = mergeProps({
|
|
22657
22767
|
className: cx('clearIcon'),
|
|
22658
22768
|
onPointerUp: clear,
|
|
@@ -23588,8 +23698,9 @@ var RowCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
23588
23698
|
'aria-label': props.ariaLabel,
|
|
23589
23699
|
checked: props.checked,
|
|
23590
23700
|
icon: checkIcon,
|
|
23591
|
-
disabled: props.disabled
|
|
23592
|
-
|
|
23701
|
+
disabled: props.disabled,
|
|
23702
|
+
pt: getColumnPTOptions('rowCheckbox')
|
|
23703
|
+
});
|
|
23593
23704
|
return /*#__PURE__*/React.createElement(Checkbox, checkboxProps);
|
|
23594
23705
|
});
|
|
23595
23706
|
RowCheckbox.displayName = 'RowCheckbox';
|
|
@@ -23746,7 +23857,10 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
23746
23857
|
})),
|
|
23747
23858
|
style: props.style,
|
|
23748
23859
|
'data-p-checked': props.checked
|
|
23749
|
-
},
|
|
23860
|
+
}, otherProps, ptm('root'));
|
|
23861
|
+
delete rootProps.input;
|
|
23862
|
+
delete rootProps.box;
|
|
23863
|
+
delete rootProps.icon;
|
|
23750
23864
|
var createInputElement = function createInputElement() {
|
|
23751
23865
|
var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
|
|
23752
23866
|
var inputProps = mergeProps(_objectSpread$1h({
|
|
@@ -23762,7 +23876,7 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
23762
23876
|
required: props.required,
|
|
23763
23877
|
tabIndex: props.tabIndex,
|
|
23764
23878
|
className: cx('input')
|
|
23765
|
-
}, ariaProps), ptm('input'));
|
|
23879
|
+
}, ariaProps), inProps.input, ptm('input'));
|
|
23766
23880
|
return /*#__PURE__*/React.createElement("input", _extends({
|
|
23767
23881
|
ref: inputRef
|
|
23768
23882
|
}, inputProps));
|
|
@@ -23770,10 +23884,10 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
23770
23884
|
var createBoxElement = function createBoxElement() {
|
|
23771
23885
|
var boxProps = mergeProps({
|
|
23772
23886
|
className: cx('box')
|
|
23773
|
-
}, ptm('box'));
|
|
23887
|
+
}, inProps.box, ptm('box'));
|
|
23774
23888
|
var iconProps = mergeProps({
|
|
23775
23889
|
className: cx('icon')
|
|
23776
|
-
}, ptm('icon'));
|
|
23890
|
+
}, inProps.icon, ptm('icon'));
|
|
23777
23891
|
return /*#__PURE__*/React.createElement("div", boxProps, /*#__PURE__*/React.createElement("div", iconProps));
|
|
23778
23892
|
};
|
|
23779
23893
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -23821,8 +23935,10 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
23821
23935
|
checked: props.checked,
|
|
23822
23936
|
disabled: props.disabled,
|
|
23823
23937
|
name: "".concat(props.tableSelector, "_dt_radio"),
|
|
23824
|
-
onChange: onChange
|
|
23825
|
-
|
|
23938
|
+
onChange: onChange,
|
|
23939
|
+
unstyled: props.unstyled,
|
|
23940
|
+
pt: getColumnPTOptions('rowRadioButton')
|
|
23941
|
+
});
|
|
23826
23942
|
return /*#__PURE__*/React.createElement(RadioButton, radioButtonProps);
|
|
23827
23943
|
});
|
|
23828
23944
|
RowRadioButton.displayName = 'RowRadioButton';
|
|
@@ -23847,7 +23963,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
23847
23963
|
var keyHelperRef = React.useRef(null);
|
|
23848
23964
|
var overlayEventListener = React.useRef(null);
|
|
23849
23965
|
var selfClick = React.useRef(false);
|
|
23850
|
-
var tabindexTimeout = React.useRef(null);
|
|
23851
23966
|
var initFocusTimeout = React.useRef(null);
|
|
23852
23967
|
var editingRowDataStateRef = React.useRef(null);
|
|
23853
23968
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
@@ -23884,7 +23999,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
23884
23999
|
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
23885
24000
|
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
23886
24001
|
var isEditable = function isEditable() {
|
|
23887
|
-
return getColumnProp('editor');
|
|
24002
|
+
return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
|
|
23888
24003
|
};
|
|
23889
24004
|
var cellEditValidateOnClose = function cellEditValidateOnClose() {
|
|
23890
24005
|
return getColumnProp('cellEditValidateOnClose');
|
|
@@ -24028,14 +24143,11 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24028
24143
|
}
|
|
24029
24144
|
};
|
|
24030
24145
|
var focusOnElement = function focusOnElement() {
|
|
24031
|
-
|
|
24032
|
-
|
|
24033
|
-
|
|
24034
|
-
|
|
24035
|
-
|
|
24036
|
-
}
|
|
24037
|
-
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
24038
|
-
}, 1);
|
|
24146
|
+
if (editingState) {
|
|
24147
|
+
var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
24148
|
+
focusableEl && focusableEl.focus();
|
|
24149
|
+
}
|
|
24150
|
+
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
24039
24151
|
};
|
|
24040
24152
|
var focusOnInit = function focusOnInit() {
|
|
24041
24153
|
clearTimeout(initFocusTimeout.current);
|
|
@@ -24077,6 +24189,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24077
24189
|
if (currentData) {
|
|
24078
24190
|
ObjectUtils.mutateFieldData(currentData, field, val);
|
|
24079
24191
|
}
|
|
24192
|
+
editingRowDataStateRef.current = editingRowData;
|
|
24080
24193
|
};
|
|
24081
24194
|
var _onClick = function onClick(event) {
|
|
24082
24195
|
var params = getCellCallbackParams(event);
|
|
@@ -24269,14 +24382,11 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24269
24382
|
}, [props.editMode, props.editing, editingState]);
|
|
24270
24383
|
useUpdateEffect(function () {
|
|
24271
24384
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
24272
|
-
|
|
24385
|
+
var editingRowData = getEditingRowData();
|
|
24386
|
+
setEditingRowDataState(editingRowData);
|
|
24387
|
+
editingRowDataStateRef.current = editingRowData;
|
|
24273
24388
|
}
|
|
24274
24389
|
}, [props.editingMeta]);
|
|
24275
|
-
React.useEffect(function () {
|
|
24276
|
-
if (editingRowDataState) {
|
|
24277
|
-
editingRowDataStateRef.current = editingRowDataState;
|
|
24278
|
-
}
|
|
24279
|
-
}, [editingRowDataState]);
|
|
24280
24390
|
React.useEffect(function () {
|
|
24281
24391
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
24282
24392
|
var callbackParams = getCellCallbackParams();
|
|
@@ -24351,7 +24461,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24351
24461
|
if (showSelection) {
|
|
24352
24462
|
var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
|
|
24353
24463
|
var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
|
|
24354
|
-
label = "".concat(props.selected ? ariaLabel('
|
|
24464
|
+
label = "".concat(props.selected ? ariaLabel('unselectRow') : ariaLabel('selectRow'), " ").concat(ariaLabelText);
|
|
24355
24465
|
}
|
|
24356
24466
|
content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {
|
|
24357
24467
|
hostName: props.hostName,
|
|
@@ -24366,7 +24476,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24366
24476
|
tableSelector: props.tableSelector,
|
|
24367
24477
|
ariaLabel: label,
|
|
24368
24478
|
ptCallbacks: props.ptCallbacks,
|
|
24369
|
-
metaData: props.metaData
|
|
24479
|
+
metaData: props.metaData,
|
|
24480
|
+
unstyled: props.unstyled
|
|
24370
24481
|
}), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {
|
|
24371
24482
|
hostName: props.hostName,
|
|
24372
24483
|
column: props.column,
|
|
@@ -24380,7 +24491,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24380
24491
|
ariaLabel: label,
|
|
24381
24492
|
checkIcon: props.checkIcon,
|
|
24382
24493
|
ptCallbacks: props.ptCallbacks,
|
|
24383
|
-
metaData: props.metaData
|
|
24494
|
+
metaData: props.metaData,
|
|
24495
|
+
unstyled: props.unstyled
|
|
24384
24496
|
}));
|
|
24385
24497
|
} else if (rowReorder) {
|
|
24386
24498
|
var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
|
|
@@ -24543,7 +24655,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24543
24655
|
}, editorKeyHelperProps), /*#__PURE__*/React.createElement("span", editorKeyHelperLabelProps));
|
|
24544
24656
|
/* eslint-enable */
|
|
24545
24657
|
}
|
|
24546
|
-
|
|
24547
24658
|
var bodyCellProps = mergeProps({
|
|
24548
24659
|
style: style,
|
|
24549
24660
|
className: classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
|
|
@@ -25027,7 +25138,8 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
25027
25138
|
value: props.value,
|
|
25028
25139
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
25029
25140
|
ptCallbacks: props.ptCallbacks,
|
|
25030
|
-
metaData: props.metaData
|
|
25141
|
+
metaData: props.metaData,
|
|
25142
|
+
unstyled: props.unstyled
|
|
25031
25143
|
});
|
|
25032
25144
|
}
|
|
25033
25145
|
return null;
|
|
@@ -25106,7 +25218,6 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
25106
25218
|
}, getBodyRowPTOptions('bodyRow'), {
|
|
25107
25219
|
className: classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
|
|
25108
25220
|
});
|
|
25109
|
-
|
|
25110
25221
|
return /*#__PURE__*/React.createElement("tr", rowProps, content);
|
|
25111
25222
|
});
|
|
25112
25223
|
BodyRow.displayName = 'BodyRow';
|
|
@@ -25118,7 +25229,8 @@ var RowTogglerButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
25118
25229
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
25119
25230
|
ptm = _props$ptCallbacks.ptm,
|
|
25120
25231
|
ptmo = _props$ptCallbacks.ptmo,
|
|
25121
|
-
cx = _props$ptCallbacks.cx
|
|
25232
|
+
cx = _props$ptCallbacks.cx,
|
|
25233
|
+
isUnstyled = _props$ptCallbacks.isUnstyled;
|
|
25122
25234
|
var _onClick = function onClick(event) {
|
|
25123
25235
|
props.onClick({
|
|
25124
25236
|
originalEvent: event,
|
|
@@ -25141,8 +25253,9 @@ var RowTogglerButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
25141
25253
|
};
|
|
25142
25254
|
var rowGroupTogglerIconProps = mergeProps({
|
|
25143
25255
|
className: cx('rowGroupTogglerIcon'),
|
|
25144
|
-
'aria-hidden': true
|
|
25145
|
-
|
|
25256
|
+
'aria-hidden': true,
|
|
25257
|
+
unstyled: isUnstyled()
|
|
25258
|
+
}, ptm('rowGroupTogglerIcon'), getColumnPTOptions('rowGroupTogglerIcon'));
|
|
25146
25259
|
var icon = props.expanded ? props.expandedRowIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, rowGroupTogglerIconProps) : props.collapsedRowIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, rowGroupTogglerIconProps);
|
|
25147
25260
|
var togglerIcon = IconUtils.getJSXIcon(icon, _objectSpread$1e({}, rowGroupTogglerIconProps), {
|
|
25148
25261
|
props: props
|
|
@@ -25155,8 +25268,9 @@ var RowTogglerButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
25155
25268
|
},
|
|
25156
25269
|
className: cx('rowGroupToggler'),
|
|
25157
25270
|
tabIndex: props.tabIndex,
|
|
25158
|
-
'aria-label': label
|
|
25159
|
-
|
|
25271
|
+
'aria-label': label,
|
|
25272
|
+
unstyled: isUnstyled()
|
|
25273
|
+
}, ptm('rowGroupToggler'), getColumnPTOptions('rowGroupToggler'));
|
|
25160
25274
|
return /*#__PURE__*/React.createElement("button", rowGroupTogglerProps, togglerIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
25161
25275
|
});
|
|
25162
25276
|
RowTogglerButton.displayName = 'RowTogglerButton';
|
|
@@ -25170,7 +25284,7 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
25170
25284
|
ptm = _props$ptCallbacks.ptm,
|
|
25171
25285
|
ptmo = _props$ptCallbacks.ptmo,
|
|
25172
25286
|
cx = _props$ptCallbacks.cx,
|
|
25173
|
-
|
|
25287
|
+
isUnstyled = _props$ptCallbacks.isUnstyled;
|
|
25174
25288
|
var _React$useState = React.useState({}),
|
|
25175
25289
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
25176
25290
|
rowGroupHeaderStyleObjectState = _React$useState2[0],
|
|
@@ -25605,7 +25719,7 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
25605
25719
|
if (props.dragSelection && !dragSelectionHelper.current) {
|
|
25606
25720
|
dragSelectionHelper.current = document.createElement('div');
|
|
25607
25721
|
dragSelectionHelper.current.setAttribute('p-datatable-drag-selection-helper', 'true');
|
|
25608
|
-
!
|
|
25722
|
+
!isUnstyled() && DomHandler.addClass(dragSelectionHelper.current, 'p-datatable-drag-selection-helper');
|
|
25609
25723
|
initialDragPosition.current = {
|
|
25610
25724
|
x: event.clientX,
|
|
25611
25725
|
y: event.clientY
|
|
@@ -25733,7 +25847,10 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
25733
25847
|
};
|
|
25734
25848
|
var onRowMouseDown = function onRowMouseDown(e) {
|
|
25735
25849
|
var event = e.originalEvent;
|
|
25736
|
-
if (!
|
|
25850
|
+
if (!isUnstyled() && DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle')) {
|
|
25851
|
+
event.currentTarget.draggable = true;
|
|
25852
|
+
event.target.draggable = false;
|
|
25853
|
+
} else if (isUnstyled() && DomHandler.getAttribute(event.target, 'data-pc-section') === 'rowreordericon') {
|
|
25737
25854
|
event.currentTarget.draggable = true;
|
|
25738
25855
|
event.target.draggable = false;
|
|
25739
25856
|
} else {
|
|
@@ -25814,7 +25931,6 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
25814
25931
|
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
25815
25932
|
}
|
|
25816
25933
|
};
|
|
25817
|
-
|
|
25818
25934
|
var onRowDragOver = function onRowDragOver(e) {
|
|
25819
25935
|
var event = e.originalEvent,
|
|
25820
25936
|
index = e.index;
|
|
@@ -25826,26 +25942,26 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
25826
25942
|
var prevRowElement = rowElement.previousElementSibling;
|
|
25827
25943
|
if (pageY < rowMidY) {
|
|
25828
25944
|
rowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'false');
|
|
25829
|
-
!
|
|
25945
|
+
!isUnstyled() && DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
25830
25946
|
droppedRowIndex.current = index;
|
|
25831
25947
|
if (prevRowElement) {
|
|
25832
25948
|
prevRowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'true');
|
|
25833
|
-
!
|
|
25949
|
+
!isUnstyled() && DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
25834
25950
|
} else {
|
|
25835
25951
|
rowElement.setAttribute('data-p-datatable-dragpoint-top', 'true');
|
|
25836
|
-
!
|
|
25952
|
+
!isUnstyled() && DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
25837
25953
|
}
|
|
25838
25954
|
} else {
|
|
25839
25955
|
if (prevRowElement) {
|
|
25840
25956
|
prevRowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'false');
|
|
25841
|
-
!
|
|
25957
|
+
!isUnstyled() && DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
25842
25958
|
} else {
|
|
25843
25959
|
rowElement.setAttribute('data-p-datatable-dragpoint-top', 'true');
|
|
25844
|
-
!
|
|
25960
|
+
!isUnstyled() && DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
25845
25961
|
}
|
|
25846
25962
|
droppedRowIndex.current = index + 1;
|
|
25847
25963
|
rowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'true');
|
|
25848
|
-
!
|
|
25964
|
+
!isUnstyled() && DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
25849
25965
|
}
|
|
25850
25966
|
}
|
|
25851
25967
|
event.preventDefault();
|
|
@@ -25856,12 +25972,12 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
25856
25972
|
var prevRowElement = rowElement.previousElementSibling;
|
|
25857
25973
|
if (prevRowElement) {
|
|
25858
25974
|
prevRowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'false');
|
|
25859
|
-
!
|
|
25975
|
+
!isUnstyled() && DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
25860
25976
|
}
|
|
25861
25977
|
rowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'false');
|
|
25862
|
-
!
|
|
25978
|
+
!isUnstyled() && DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
25863
25979
|
rowElement.setAttribute('data-p-datatable-dragpoint-top', 'false');
|
|
25864
|
-
!
|
|
25980
|
+
!isUnstyled() && DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-top');
|
|
25865
25981
|
};
|
|
25866
25982
|
var onRowDragEnd = function onRowDragEnd(e) {
|
|
25867
25983
|
var event = e.originalEvent;
|
|
@@ -26036,7 +26152,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
26036
26152
|
expandedRowIcon: props.expandedRowIcon,
|
|
26037
26153
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
26038
26154
|
ptCallbacks: props.ptCallbacks,
|
|
26039
|
-
metaData: props.metaData
|
|
26155
|
+
metaData: props.metaData,
|
|
26156
|
+
unstyled: isUnstyled()
|
|
26040
26157
|
});
|
|
26041
26158
|
var options = {
|
|
26042
26159
|
index: rowIndex,
|
|
@@ -26141,7 +26258,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
26141
26258
|
value: props.value,
|
|
26142
26259
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
26143
26260
|
ptCallbacks: props.ptCallbacks,
|
|
26144
|
-
metaData: props.metaData
|
|
26261
|
+
metaData: props.metaData,
|
|
26262
|
+
unstyled: isUnstyled()
|
|
26145
26263
|
});
|
|
26146
26264
|
}
|
|
26147
26265
|
};
|
|
@@ -27362,22 +27480,7 @@ var SortAmountDownIcon = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
|
|
|
27362
27480
|
fill: "none",
|
|
27363
27481
|
xmlns: "http://www.w3.org/2000/svg"
|
|
27364
27482
|
}, pti), /*#__PURE__*/React.createElement("path", {
|
|
27365
|
-
d: "
|
|
27366
|
-
fill: "currentColor"
|
|
27367
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27368
|
-
d: "M2.59836 13.2009C2.27032 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92641 13.2009 2.59836 13.2009Z",
|
|
27369
|
-
fill: "currentColor"
|
|
27370
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27371
|
-
d: "M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z",
|
|
27372
|
-
fill: "currentColor"
|
|
27373
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27374
|
-
d: "M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z",
|
|
27375
|
-
fill: "currentColor"
|
|
27376
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27377
|
-
d: "M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z",
|
|
27378
|
-
fill: "currentColor"
|
|
27379
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27380
|
-
d: "M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z",
|
|
27483
|
+
d: "M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z",
|
|
27381
27484
|
fill: "currentColor"
|
|
27382
27485
|
}));
|
|
27383
27486
|
}));
|
|
@@ -27393,22 +27496,7 @@ var SortAmountUpAltIcon = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef
|
|
|
27393
27496
|
fill: "none",
|
|
27394
27497
|
xmlns: "http://www.w3.org/2000/svg"
|
|
27395
27498
|
}, pti), /*#__PURE__*/React.createElement("path", {
|
|
27396
|
-
d: "
|
|
27397
|
-
fill: "currentColor"
|
|
27398
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27399
|
-
d: "M2.59841 13.2009C2.27036 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92646 13.2009 2.59841 13.2009Z",
|
|
27400
|
-
fill: "currentColor"
|
|
27401
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27402
|
-
d: "M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z",
|
|
27403
|
-
fill: "currentColor"
|
|
27404
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27405
|
-
d: "M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z",
|
|
27406
|
-
fill: "currentColor"
|
|
27407
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27408
|
-
d: "M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z",
|
|
27409
|
-
fill: "currentColor"
|
|
27410
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27411
|
-
d: "M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z",
|
|
27499
|
+
d: "M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z",
|
|
27412
27500
|
fill: "currentColor"
|
|
27413
27501
|
}));
|
|
27414
27502
|
}));
|
|
@@ -27651,7 +27739,7 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
27651
27739
|
column: props.column
|
|
27652
27740
|
});
|
|
27653
27741
|
};
|
|
27654
|
-
var
|
|
27742
|
+
var onResizeStart = function onResizeStart(event) {
|
|
27655
27743
|
props.onColumnResizeStart({
|
|
27656
27744
|
originalEvent: event,
|
|
27657
27745
|
column: props.column
|
|
@@ -27688,7 +27776,10 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
27688
27776
|
var columnResizerProps = mergeProps({
|
|
27689
27777
|
className: cx('columnResizer'),
|
|
27690
27778
|
onMouseDown: function onMouseDown(e) {
|
|
27691
|
-
return
|
|
27779
|
+
return onResizeStart(e);
|
|
27780
|
+
},
|
|
27781
|
+
onTouchStart: function onTouchStart(e) {
|
|
27782
|
+
return onResizeStart(e);
|
|
27692
27783
|
},
|
|
27693
27784
|
onClick: function onClick(e) {
|
|
27694
27785
|
return onResizerClick(e);
|
|
@@ -27748,7 +27839,8 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
27748
27839
|
onChange: props.onColumnCheckboxChange,
|
|
27749
27840
|
disabled: props.empty,
|
|
27750
27841
|
ptCallbacks: ptCallbacks,
|
|
27751
|
-
metaData: parentMetaData
|
|
27842
|
+
metaData: parentMetaData,
|
|
27843
|
+
unstyled: props.unstyled
|
|
27752
27844
|
});
|
|
27753
27845
|
}
|
|
27754
27846
|
return null;
|
|
@@ -28106,19 +28198,6 @@ var TableHeader = /*#__PURE__*/React.memo(function (props) {
|
|
|
28106
28198
|
});
|
|
28107
28199
|
TableHeader.displayName = 'TableHeader';
|
|
28108
28200
|
|
|
28109
|
-
var getStorage = function getStorage(stateStorageProp) {
|
|
28110
|
-
switch (stateStorageProp) {
|
|
28111
|
-
case 'local':
|
|
28112
|
-
return window.localStorage;
|
|
28113
|
-
case 'session':
|
|
28114
|
-
return window.sessionStorage;
|
|
28115
|
-
case 'custom':
|
|
28116
|
-
return null;
|
|
28117
|
-
default:
|
|
28118
|
-
throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
28119
|
-
}
|
|
28120
|
-
};
|
|
28121
|
-
|
|
28122
28201
|
function _createForOfIteratorHelper$b(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$b(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; } } }; }
|
|
28123
28202
|
function _unsupportedIterableToArray$b(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$b(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$b(o, minLen); }
|
|
28124
28203
|
function _arrayLikeToArray$b(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; }
|
|
@@ -28227,29 +28306,40 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
28227
28306
|
setRowsState(props.rows);
|
|
28228
28307
|
setD_rowsState(props.rows);
|
|
28229
28308
|
}
|
|
28309
|
+
var columnResizeStartListener = function columnResizeStartListener(event) {
|
|
28310
|
+
return columnResizing.current && onColumnResize(event);
|
|
28311
|
+
};
|
|
28312
|
+
var columnResizeEndListener = function columnResizeEndListener() {
|
|
28313
|
+
return columnResizing.current && (columnResizing.current = false, onColumnResizeEnd());
|
|
28314
|
+
};
|
|
28230
28315
|
var _useEventListener = useEventListener({
|
|
28231
28316
|
type: 'mousemove',
|
|
28232
|
-
listener:
|
|
28233
|
-
if (columnResizing.current) {
|
|
28234
|
-
onColumnResize(event);
|
|
28235
|
-
}
|
|
28236
|
-
}
|
|
28317
|
+
listener: columnResizeStartListener
|
|
28237
28318
|
}),
|
|
28238
28319
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
28239
28320
|
bindDocumentMouseMoveListener = _useEventListener2[0],
|
|
28240
28321
|
unbindDocumentMouseMoveListener = _useEventListener2[1];
|
|
28241
28322
|
var _useEventListener3 = useEventListener({
|
|
28242
28323
|
type: 'mouseup',
|
|
28243
|
-
listener:
|
|
28244
|
-
if (columnResizing.current) {
|
|
28245
|
-
columnResizing.current = false;
|
|
28246
|
-
onColumnResizeEnd();
|
|
28247
|
-
}
|
|
28248
|
-
}
|
|
28324
|
+
listener: columnResizeEndListener
|
|
28249
28325
|
}),
|
|
28250
28326
|
_useEventListener4 = _slicedToArray(_useEventListener3, 2),
|
|
28251
28327
|
bindDocumentMouseUpListener = _useEventListener4[0],
|
|
28252
28328
|
unbindDocumentMouseUpListener = _useEventListener4[1];
|
|
28329
|
+
var _useEventListener5 = useEventListener({
|
|
28330
|
+
type: 'touchmove',
|
|
28331
|
+
listener: columnResizeStartListener
|
|
28332
|
+
}),
|
|
28333
|
+
_useEventListener6 = _slicedToArray(_useEventListener5, 2),
|
|
28334
|
+
bindDocumentTouchMoveListener = _useEventListener6[0],
|
|
28335
|
+
unbindDocumentTouchMoveListener = _useEventListener6[1];
|
|
28336
|
+
var _useEventListener7 = useEventListener({
|
|
28337
|
+
type: 'touchend',
|
|
28338
|
+
listener: columnResizeEndListener
|
|
28339
|
+
}),
|
|
28340
|
+
_useEventListener8 = _slicedToArray(_useEventListener7, 2),
|
|
28341
|
+
bindDocumentTouchEndListener = _useEventListener8[0],
|
|
28342
|
+
unbindDocumentTouchEndListener = _useEventListener8[1];
|
|
28253
28343
|
var isCustomStateStorage = function isCustomStateStorage() {
|
|
28254
28344
|
return props.stateStorage === 'custom';
|
|
28255
28345
|
};
|
|
@@ -28585,7 +28675,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
28585
28675
|
resizeColumn.current = column;
|
|
28586
28676
|
resizeColumnElement.current = event.currentTarget.parentElement;
|
|
28587
28677
|
columnResizing.current = true;
|
|
28588
|
-
lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
|
|
28678
|
+
lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
|
|
28589
28679
|
bindColumnResizeEvents();
|
|
28590
28680
|
};
|
|
28591
28681
|
var onColumnResize = function onColumnResize(event) {
|
|
@@ -28593,7 +28683,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
28593
28683
|
elementRef.current.setAttribute('data-p-unselectable-text', true);
|
|
28594
28684
|
resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
|
|
28595
28685
|
resizeHelperRef.current.style.top = 0 + 'px';
|
|
28596
|
-
resizeHelperRef.current.style.left = event.pageX - containerLeft + elementRef.current.scrollLeft + 'px';
|
|
28686
|
+
resizeHelperRef.current.style.left = (event.type === 'touchmove' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft + 'px';
|
|
28597
28687
|
resizeHelperRef.current.style.display = 'block';
|
|
28598
28688
|
};
|
|
28599
28689
|
var onColumnResizeEnd = function onColumnResizeEnd() {
|
|
@@ -28664,10 +28754,14 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
28664
28754
|
var bindColumnResizeEvents = function bindColumnResizeEvents() {
|
|
28665
28755
|
bindDocumentMouseMoveListener();
|
|
28666
28756
|
bindDocumentMouseUpListener();
|
|
28757
|
+
bindDocumentTouchMoveListener();
|
|
28758
|
+
bindDocumentTouchEndListener();
|
|
28667
28759
|
};
|
|
28668
28760
|
var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
|
|
28669
28761
|
unbindDocumentMouseMoveListener();
|
|
28670
28762
|
unbindDocumentMouseUpListener();
|
|
28763
|
+
unbindDocumentTouchMoveListener();
|
|
28764
|
+
unbindDocumentTouchEndListener();
|
|
28671
28765
|
};
|
|
28672
28766
|
var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
|
|
28673
28767
|
DomHandler.clearSelection();
|
|
@@ -28733,7 +28827,6 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
28733
28827
|
draggedColumnElement.current = findParentHeader(event.currentTarget);
|
|
28734
28828
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
28735
28829
|
};
|
|
28736
|
-
|
|
28737
28830
|
var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
|
|
28738
28831
|
var event = e.originalEvent,
|
|
28739
28832
|
column = e.column;
|
|
@@ -29665,7 +29758,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29665
29758
|
value: props.frozenValue,
|
|
29666
29759
|
virtualScrollerOptions: options,
|
|
29667
29760
|
ptCallbacks: ptCallbacks,
|
|
29668
|
-
metaData: metaData
|
|
29761
|
+
metaData: metaData,
|
|
29762
|
+
unstyled: props.unstyled
|
|
29669
29763
|
});
|
|
29670
29764
|
var body = /*#__PURE__*/React.createElement(TableBody, {
|
|
29671
29765
|
hostName: "DataTable",
|
|
@@ -29748,7 +29842,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29748
29842
|
virtualScrollerContentRef: contentRef,
|
|
29749
29843
|
virtualScrollerOptions: options,
|
|
29750
29844
|
ptCallbacks: ptCallbacks,
|
|
29751
|
-
metaData: metaData
|
|
29845
|
+
metaData: metaData,
|
|
29846
|
+
unstyled: props.unstyled
|
|
29752
29847
|
});
|
|
29753
29848
|
var spacerBody = ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React.createElement(TableBody, {
|
|
29754
29849
|
hostName: "DataTable",
|
|
@@ -29757,7 +29852,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29757
29852
|
},
|
|
29758
29853
|
className: "p-datatable-virtualscroller-spacer",
|
|
29759
29854
|
ptCallbacks: ptCallbacks,
|
|
29760
|
-
metaData: metaData
|
|
29855
|
+
metaData: metaData,
|
|
29856
|
+
unstyled: props.unstyled
|
|
29761
29857
|
}) : null;
|
|
29762
29858
|
return /*#__PURE__*/React.createElement(React.Fragment, null, frozenBody, body, spacerBody);
|
|
29763
29859
|
};
|
|
@@ -29769,7 +29865,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29769
29865
|
columns: columns,
|
|
29770
29866
|
footerColumnGroup: props.footerColumnGroup,
|
|
29771
29867
|
ptCallbacks: ptCallbacks,
|
|
29772
|
-
metaData: metaData
|
|
29868
|
+
metaData: metaData,
|
|
29869
|
+
unstyled: props.unstyled
|
|
29773
29870
|
});
|
|
29774
29871
|
};
|
|
29775
29872
|
var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
|
|
@@ -29804,6 +29901,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29804
29901
|
parent: metaData
|
|
29805
29902
|
},
|
|
29806
29903
|
showSpacer: false,
|
|
29904
|
+
unstyled: props.unstyled,
|
|
29807
29905
|
contentTemplate: function contentTemplate(options) {
|
|
29808
29906
|
var ref = function ref(el) {
|
|
29809
29907
|
tableRef.current = el;
|
|
@@ -30989,7 +31087,10 @@ var Editor = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
|
|
|
30989
31087
|
var initQuill = function initQuill(quillInstance) {
|
|
30990
31088
|
quill.current = quillInstance;
|
|
30991
31089
|
if (props.value) {
|
|
30992
|
-
|
|
31090
|
+
quillInstance.setContents(quillInstance.clipboard.convert({
|
|
31091
|
+
html: props.value,
|
|
31092
|
+
text: ''
|
|
31093
|
+
}));
|
|
30993
31094
|
}
|
|
30994
31095
|
setQuillCreated(true);
|
|
30995
31096
|
};
|
|
@@ -31012,7 +31113,14 @@ var Editor = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
|
|
|
31012
31113
|
}, [quillCreated]);
|
|
31013
31114
|
useUpdateEffect(function () {
|
|
31014
31115
|
if (quill.current && !quill.current.hasFocus()) {
|
|
31015
|
-
|
|
31116
|
+
if (props.value) {
|
|
31117
|
+
quill.current.setContents(quill.current.clipboard.convert({
|
|
31118
|
+
html: props.value,
|
|
31119
|
+
text: ''
|
|
31120
|
+
}));
|
|
31121
|
+
} else {
|
|
31122
|
+
quill.current.setText('');
|
|
31123
|
+
}
|
|
31016
31124
|
}
|
|
31017
31125
|
}, [props.value]);
|
|
31018
31126
|
React.useImperativeHandle(ref, function () {
|
|
@@ -36610,6 +36718,10 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
36610
36718
|
var scrollInView = function scrollInView() {
|
|
36611
36719
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
36612
36720
|
setTimeout(function () {
|
|
36721
|
+
// As long as this is a timeout - there is not guarantee that listRef will still
|
|
36722
|
+
// exist by the moment of calling that function. So, if list is already destroyed
|
|
36723
|
+
// by this moment - do nothing:
|
|
36724
|
+
if (!listRef.current) return;
|
|
36613
36725
|
var idx = index !== -1 ? "".concat(id.current, "_").concat(index) : focusedOptionId();
|
|
36614
36726
|
var element = listRef.current.querySelector("li[id=\"".concat(idx, "\"]"));
|
|
36615
36727
|
if (element) {
|
|
@@ -36766,7 +36878,24 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
36766
36878
|
var getOptionGroupChildren = function getOptionGroupChildren(optionGroup) {
|
|
36767
36879
|
return ObjectUtils.resolveFieldData(optionGroup, props.optionGroupChildren);
|
|
36768
36880
|
};
|
|
36881
|
+
var flatOptions = function flatOptions(options) {
|
|
36882
|
+
return (options || []).reduce(function (result, option, index) {
|
|
36883
|
+
result.push({
|
|
36884
|
+
optionGroup: option,
|
|
36885
|
+
group: true,
|
|
36886
|
+
index: index,
|
|
36887
|
+
code: option.code,
|
|
36888
|
+
label: option.label
|
|
36889
|
+
});
|
|
36890
|
+
var optionGroupChildren = getOptionGroupChildren(option);
|
|
36891
|
+
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
36892
|
+
return result.push(o);
|
|
36893
|
+
});
|
|
36894
|
+
return result;
|
|
36895
|
+
}, []);
|
|
36896
|
+
};
|
|
36769
36897
|
var getVisibleOptions = function getVisibleOptions() {
|
|
36898
|
+
var options = props.optionGroupLabel ? flatOptions(props.options) : props.options;
|
|
36770
36899
|
if (hasFilter) {
|
|
36771
36900
|
var filterValue = filteredValue.trim().toLocaleLowerCase(props.filterLocale);
|
|
36772
36901
|
var searchFields = props.filterBy ? props.filterBy.split(',') : [props.optionLabel || 'label'];
|
|
@@ -36789,11 +36918,11 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
36789
36918
|
} finally {
|
|
36790
36919
|
_iterator.f();
|
|
36791
36920
|
}
|
|
36792
|
-
return filteredGroups;
|
|
36921
|
+
return flatOptions(filteredGroups);
|
|
36793
36922
|
}
|
|
36794
|
-
return FilterService.filter(
|
|
36923
|
+
return FilterService.filter(options, searchFields, filterValue, props.filterMatchMode, props.filterLocale);
|
|
36795
36924
|
}
|
|
36796
|
-
return
|
|
36925
|
+
return options;
|
|
36797
36926
|
};
|
|
36798
36927
|
var scrollToSelectedIndex = function scrollToSelectedIndex() {
|
|
36799
36928
|
if (virtualScrollerRef.current) {
|
|
@@ -36838,42 +36967,13 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
36838
36967
|
metaData: metaData
|
|
36839
36968
|
}) : null;
|
|
36840
36969
|
};
|
|
36841
|
-
var createGroupChildren = function createGroupChildren(optionGroup, style) {
|
|
36842
|
-
var groupChildren = getOptionGroupChildren(optionGroup);
|
|
36843
|
-
return groupChildren.map(function (option, j) {
|
|
36844
|
-
var optionLabel = getOptionLabel(option);
|
|
36845
|
-
var optionKey = j + '_' + getOptionRenderKey(option);
|
|
36846
|
-
var disabled = isOptionDisabled(option);
|
|
36847
|
-
return /*#__PURE__*/React.createElement(ListBoxItem, {
|
|
36848
|
-
id: id.current + '_' + j,
|
|
36849
|
-
hostName: "ListBox",
|
|
36850
|
-
optionKey: optionKey,
|
|
36851
|
-
key: optionKey,
|
|
36852
|
-
label: optionLabel,
|
|
36853
|
-
option: option,
|
|
36854
|
-
style: style,
|
|
36855
|
-
template: props.itemTemplate,
|
|
36856
|
-
selected: isSelected(option),
|
|
36857
|
-
onOptionMouseDown: onOptionMouseDown,
|
|
36858
|
-
onOptionMouseMove: onOptionMouseMove,
|
|
36859
|
-
onClick: onOptionSelect,
|
|
36860
|
-
index: j,
|
|
36861
|
-
focusedOptionIndex: focusedOptionIndex,
|
|
36862
|
-
onTouchEnd: onOptionTouchEnd,
|
|
36863
|
-
disabled: disabled,
|
|
36864
|
-
ptCallbacks: ptCallbacks,
|
|
36865
|
-
metaData: metaData
|
|
36866
|
-
});
|
|
36867
|
-
});
|
|
36868
|
-
};
|
|
36869
36970
|
var createItem = function createItem(option, index) {
|
|
36870
36971
|
var scrollerOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
36871
36972
|
var style = {
|
|
36872
36973
|
height: scrollerOptions.props ? scrollerOptions.props.itemSize : undefined
|
|
36873
36974
|
};
|
|
36874
|
-
if (props.optionGroupLabel) {
|
|
36975
|
+
if (option.group && option.optionGroup && props.optionGroupLabel) {
|
|
36875
36976
|
var groupContent = props.optionGroupTemplate ? ObjectUtils.getJSXElement(props.optionGroupTemplate, option, index) : getOptionGroupLabel(option);
|
|
36876
|
-
var groupChildrenContent = createGroupChildren(option, style);
|
|
36877
36977
|
var key = index + '_' + getOptionGroupRenderKey(option);
|
|
36878
36978
|
var itemGroupProps = mergeProps({
|
|
36879
36979
|
className: ptCallbacks.cx('itemGroup'),
|
|
@@ -36882,9 +36982,9 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
36882
36982
|
}),
|
|
36883
36983
|
role: 'group'
|
|
36884
36984
|
}, ptCallbacks.ptm('itemGroup'));
|
|
36885
|
-
return /*#__PURE__*/React.createElement(
|
|
36985
|
+
return /*#__PURE__*/React.createElement("li", _extends({
|
|
36886
36986
|
key: key
|
|
36887
|
-
},
|
|
36987
|
+
}, itemGroupProps), groupContent);
|
|
36888
36988
|
}
|
|
36889
36989
|
var optionLabel = getOptionLabel(option);
|
|
36890
36990
|
var optionKey = index + '_' + getOptionRenderKey(option);
|
|
@@ -38758,6 +38858,7 @@ var Mention = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
38758
38858
|
className: cx('input'),
|
|
38759
38859
|
style: props.inputStyle
|
|
38760
38860
|
}, inputProps), {}, {
|
|
38861
|
+
unstyled: props.unstyled,
|
|
38761
38862
|
onFocus: onFocus,
|
|
38762
38863
|
onBlur: onBlur,
|
|
38763
38864
|
onKeyDown: onKeyDown,
|
|
@@ -39150,12 +39251,12 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
39150
39251
|
key: key
|
|
39151
39252
|
}, /*#__PURE__*/React.createElement("li", submenuHeaderProps, submenu.label), items);
|
|
39152
39253
|
};
|
|
39153
|
-
var createSeparator = function createSeparator(index) {
|
|
39254
|
+
var createSeparator = function createSeparator(item, index) {
|
|
39154
39255
|
var key = idState + '_separator_' + index;
|
|
39155
39256
|
var separatorProps = mergeProps({
|
|
39156
39257
|
id: key,
|
|
39157
39258
|
key: key,
|
|
39158
|
-
className: cx('separator'),
|
|
39259
|
+
className: classNames(item.className, cx('separator')),
|
|
39159
39260
|
role: 'separator'
|
|
39160
39261
|
}, ptm('separator'));
|
|
39161
39262
|
return /*#__PURE__*/React.createElement("li", separatorProps);
|
|
@@ -39242,7 +39343,7 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
39242
39343
|
return /*#__PURE__*/React.createElement("li", menuitemProps, content);
|
|
39243
39344
|
};
|
|
39244
39345
|
var createItem = function createItem(item, index) {
|
|
39245
|
-
return item.separator ? createSeparator(index) : item.items ? createSubmenu(item, index) : createMenuItem(item, index);
|
|
39346
|
+
return item.separator ? createSeparator(item, index) : item.items ? createSubmenu(item, index) : createMenuItem(item, index);
|
|
39246
39347
|
};
|
|
39247
39348
|
var createMenu = function createMenu() {
|
|
39248
39349
|
return props.model.map(createItem);
|
|
@@ -39337,7 +39438,7 @@ var classes$y = {
|
|
|
39337
39438
|
});
|
|
39338
39439
|
}
|
|
39339
39440
|
};
|
|
39340
|
-
var styles$q = "\n@layer primereact {\n .p-menubar {\n display: flex;\n align-items: center;\n }\n\n .p-menubar ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .p-menubar .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-menubar .p-menuitem-text {\n line-height: 1;\n }\n\n .p-menubar .p-menuitem {\n position: relative;\n }\n\n .p-menubar-root-list {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n\n .p-menubar-root-list > li ul {\n display: none;\n z-index: 1;\n }\n\n .p-menubar-root-list > .p-menuitem-active > .p-submenu-list {\n display: block;\n }\n\n .p-menubar .p-submenu-list {\n display: none;\n position: absolute;\n z-index:
|
|
39441
|
+
var styles$q = "\n@layer primereact {\n .p-menubar {\n display: flex;\n align-items: center;\n }\n\n .p-menubar ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .p-menubar .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-menubar .p-menuitem-text {\n line-height: 1;\n }\n\n .p-menubar .p-menuitem {\n position: relative;\n }\n\n .p-menubar-root-list {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n\n .p-menubar-root-list > li ul {\n display: none;\n z-index: 1;\n }\n\n .p-menubar-root-list > .p-menuitem-active > .p-submenu-list {\n display: block;\n }\n\n .p-menubar .p-submenu-list {\n display: none;\n position: absolute;\n z-index: 5;\n }\n\n .p-menubar .p-submenu-list > .p-menuitem-active > .p-submenu-list {\n display: block;\n left: 100%;\n top: 0;\n }\n\n .p-menubar .p-submenu-list .p-menuitem .p-menuitem-content .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n }\n\n .p-menubar .p-menubar-end {\n margin-left: auto;\n align-self: center;\n }\n\n .p-menubar-button {\n display: none;\n cursor: pointer;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n }\n}\n";
|
|
39341
39442
|
var MenubarBase = ComponentBase.extend({
|
|
39342
39443
|
defaultProps: {
|
|
39343
39444
|
__TYPE: 'Menubar',
|
|
@@ -40497,10 +40598,10 @@ var MeterGroup = function MeterGroup(inProps) {
|
|
|
40497
40598
|
name: 'metergroup'
|
|
40498
40599
|
});
|
|
40499
40600
|
var totalPercent = 0;
|
|
40500
|
-
var
|
|
40601
|
+
var percentages = [];
|
|
40501
40602
|
values.map(function (item) {
|
|
40502
40603
|
totalPercent = totalPercent + item.value;
|
|
40503
|
-
|
|
40604
|
+
percentages.push(Math.round(item.value / totalPercent * 100));
|
|
40504
40605
|
});
|
|
40505
40606
|
var calculatePercentage = function calculatePercentage() {
|
|
40506
40607
|
var meterValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
@@ -40574,7 +40675,7 @@ var MeterGroup = function MeterGroup(inProps) {
|
|
|
40574
40675
|
};
|
|
40575
40676
|
var templateProps = {
|
|
40576
40677
|
totalPercent: totalPercent,
|
|
40577
|
-
|
|
40678
|
+
percentages: percentages,
|
|
40578
40679
|
values: values
|
|
40579
40680
|
};
|
|
40580
40681
|
var labelListContent = labelList || createLabelList();
|
|
@@ -40830,6 +40931,7 @@ var MultiSelectHeader = /*#__PURE__*/React.memo(function (props) {
|
|
|
40830
40931
|
className: "p-multiselect-filter",
|
|
40831
40932
|
placeholder: props.filterPlaceholder,
|
|
40832
40933
|
pt: ptm('filterInput'),
|
|
40934
|
+
unstyled: props.unstyled,
|
|
40833
40935
|
__parentMetadata: {
|
|
40834
40936
|
parent: props.metaData
|
|
40835
40937
|
}
|
|
@@ -40857,7 +40959,7 @@ var MultiSelectHeader = /*#__PURE__*/React.memo(function (props) {
|
|
|
40857
40959
|
}, getPTOptions('headerSelectAllLabel'));
|
|
40858
40960
|
var headerCheckboxIconProps = mergeProps({
|
|
40859
40961
|
className: cx('headerCheckboxIcon')
|
|
40860
|
-
}, getPTOptions('
|
|
40962
|
+
}, getPTOptions('headerCheckbox.icon'));
|
|
40861
40963
|
var headerCheckboxContainerProps = mergeProps({
|
|
40862
40964
|
className: cx('headerCheckboxContainer')
|
|
40863
40965
|
}, getPTOptions('headerCheckboxContainer'));
|
|
@@ -40956,7 +41058,7 @@ var MultiSelectItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
40956
41058
|
};
|
|
40957
41059
|
var checkboxIconProps = mergeProps({
|
|
40958
41060
|
className: cx('checkboxIcon')
|
|
40959
|
-
}, getPTOptions('
|
|
41061
|
+
}, getPTOptions('checkbox.icon'));
|
|
40960
41062
|
var icon = props.checkboxIcon || /*#__PURE__*/React.createElement(CheckIcon, checkboxIconProps);
|
|
40961
41063
|
var checkboxIcon = props.selected ? IconUtils.getJSXIcon(icon, _objectSpread$K({}, checkboxIconProps), {
|
|
40962
41064
|
selected: props.selected
|
|
@@ -41457,7 +41559,7 @@ var MultiSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
41457
41559
|
index !== -1 && setFocusedOptionIndex(index);
|
|
41458
41560
|
};
|
|
41459
41561
|
var onClick = function onClick(event) {
|
|
41460
|
-
if (!props.inline && !props.disabled && !props.loading && !isPanelClicked(event) &&
|
|
41562
|
+
if (!props.inline && !props.disabled && !props.loading && !isPanelClicked(event) && !isClearClicked(event)) {
|
|
41461
41563
|
overlayVisibleState ? hide() : show();
|
|
41462
41564
|
DomHandler.focus(inputRef.current);
|
|
41463
41565
|
event.preventDefault();
|
|
@@ -42058,6 +42160,7 @@ var MultiSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
42058
42160
|
}
|
|
42059
42161
|
};
|
|
42060
42162
|
var removeChip = function removeChip(event, item) {
|
|
42163
|
+
event.stopPropagation();
|
|
42061
42164
|
var value = props.value.filter(function (val) {
|
|
42062
42165
|
return !ObjectUtils.equals(val, item, equalityKey);
|
|
42063
42166
|
});
|
|
@@ -42234,7 +42337,7 @@ var MultiSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
42234
42337
|
empty: empty
|
|
42235
42338
|
})
|
|
42236
42339
|
}, ptm('label'));
|
|
42237
|
-
return /*#__PURE__*/React.createElement("div", labelContainerProps, /*#__PURE__*/React.createElement("div", labelProps, content || props.placeholder || 'empty'));
|
|
42340
|
+
return /*#__PURE__*/React.createElement("div", labelContainerProps, /*#__PURE__*/React.createElement("div", labelProps, content || props.placeholder || props.emptyMessage || 'empty'));
|
|
42238
42341
|
};
|
|
42239
42342
|
var visibleOptions = getVisibleOptions();
|
|
42240
42343
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
@@ -42284,7 +42387,8 @@ var MultiSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
42284
42387
|
role: 'combobox',
|
|
42285
42388
|
'aria-expanded': overlayVisibleState,
|
|
42286
42389
|
disabled: props.disabled,
|
|
42287
|
-
tabIndex: !props.disabled ? props.tabIndex : -1
|
|
42390
|
+
tabIndex: !props.disabled ? props.tabIndex : -1,
|
|
42391
|
+
value: JSON.stringify(props.value)
|
|
42288
42392
|
}, ariaProps), ptm('input'));
|
|
42289
42393
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", rootProps, /*#__PURE__*/React.createElement("div", hiddenInputWrapperProps, /*#__PURE__*/React.createElement("input", _extends({}, inputProps, {
|
|
42290
42394
|
readOnly: true
|
|
@@ -43419,7 +43523,8 @@ var OrderList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
43419
43523
|
metaData: metaData
|
|
43420
43524
|
}), /*#__PURE__*/React.createElement(OrderListSubList, _extends({
|
|
43421
43525
|
ref: listElementRef,
|
|
43422
|
-
hostName: "OrderList"
|
|
43526
|
+
hostName: "OrderList"
|
|
43527
|
+
}, props, {
|
|
43423
43528
|
focused: focused,
|
|
43424
43529
|
ariaLabel: props.ariaLabel,
|
|
43425
43530
|
ariaLabelledBy: props.ariaLabelledBy,
|
|
@@ -43449,7 +43554,7 @@ var OrderList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
43449
43554
|
ptm: ptm,
|
|
43450
43555
|
cx: cx,
|
|
43451
43556
|
changeFocusedOptionIndex: changeFocusedOptionIndex
|
|
43452
|
-
}
|
|
43557
|
+
})));
|
|
43453
43558
|
}));
|
|
43454
43559
|
OrderList.displayName = 'OrderList';
|
|
43455
43560
|
|
|
@@ -43666,7 +43771,6 @@ var OrganizationChartNode = /*#__PURE__*/React.memo(function (props) {
|
|
|
43666
43771
|
/* eslint-enable */
|
|
43667
43772
|
);
|
|
43668
43773
|
}
|
|
43669
|
-
|
|
43670
43774
|
return null;
|
|
43671
43775
|
};
|
|
43672
43776
|
var createNodeLabel = function createNodeLabel() {
|
|
@@ -45986,6 +46090,7 @@ var Password = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
45986
46090
|
invalid: props.invalid,
|
|
45987
46091
|
variant: props.variant,
|
|
45988
46092
|
style: props.inputStyle,
|
|
46093
|
+
unstyled: props.unstyled,
|
|
45989
46094
|
tabIndex: props.tabIndex || '0',
|
|
45990
46095
|
tooltip: props.tooltip,
|
|
45991
46096
|
tooltipOptions: props.tooltipOptions,
|
|
@@ -48690,7 +48795,7 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
48690
48795
|
if (props.visible !== visibleState && maskVisibleState) {
|
|
48691
48796
|
setVisibleState(props.visible);
|
|
48692
48797
|
}
|
|
48693
|
-
});
|
|
48798
|
+
}, [props.visible]);
|
|
48694
48799
|
useUpdateEffect(function () {
|
|
48695
48800
|
if (maskVisibleState) {
|
|
48696
48801
|
ZIndexUtils.set('modal', maskRef.current, context && context.autoZIndex || PrimeReact.autoZIndex, props.baseZIndex || context && context.zIndex.modal || PrimeReact.zIndex.modal);
|
|
@@ -50688,7 +50793,6 @@ var TieredMenuSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
50688
50793
|
'aria-disabled': disabled,
|
|
50689
50794
|
'aria-expanded': grouped ? active : undefined,
|
|
50690
50795
|
'aria-haspopup': grouped && !url ? 'menu' : undefined,
|
|
50691
|
-
'aria-level': props.level + 1,
|
|
50692
50796
|
'aria-setsize': getAriaSetSize(),
|
|
50693
50797
|
'aria-posinset': getAriaPosInset(index),
|
|
50694
50798
|
'data-p-highlight': active,
|
|
@@ -52364,6 +52468,11 @@ var Stepper = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.forw
|
|
|
52364
52468
|
setIdState(UniqueComponentId());
|
|
52365
52469
|
}
|
|
52366
52470
|
});
|
|
52471
|
+
useUpdateEffect(function () {
|
|
52472
|
+
if (props.activeStep >= 0 && props.activeStep <= stepperPanels().length - 1) {
|
|
52473
|
+
updateActiveStep(undefined, props.activeStep);
|
|
52474
|
+
}
|
|
52475
|
+
}, [props.activeStep]);
|
|
52367
52476
|
var getStepProp = function getStepProp(step, name) {
|
|
52368
52477
|
var _step$props;
|
|
52369
52478
|
return step === null || step === void 0 || (_step$props = step.props) === null || _step$props === void 0 ? void 0 : _step$props[name];
|
|
@@ -53967,7 +54076,6 @@ var TabView = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
53967
54076
|
React.createElement("a", headerActionProps, leftIconElement, titleElement, rightIconElement, closableIconElement, /*#__PURE__*/React.createElement(Ripple, null))
|
|
53968
54077
|
// eslint-enable /
|
|
53969
54078
|
;
|
|
53970
|
-
|
|
53971
54079
|
if (headerTemplate) {
|
|
53972
54080
|
var defaultContentOptions = {
|
|
53973
54081
|
className: 'p-tabview-nav-link',
|
|
@@ -55551,9 +55659,13 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
|
|
|
55551
55659
|
break;
|
|
55552
55660
|
case 'Enter':
|
|
55553
55661
|
case 'NumpadEnter':
|
|
55554
|
-
case 'Space':
|
|
55555
55662
|
onEnterKey(event);
|
|
55556
55663
|
break;
|
|
55664
|
+
case 'Space':
|
|
55665
|
+
if (!['INPUT'].includes(event.target.nodeName)) {
|
|
55666
|
+
onEnterKey(event);
|
|
55667
|
+
}
|
|
55668
|
+
break;
|
|
55557
55669
|
}
|
|
55558
55670
|
};
|
|
55559
55671
|
var onArrowDown = function onArrowDown(event) {
|
|
@@ -55778,18 +55890,18 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
|
|
|
55778
55890
|
}
|
|
55779
55891
|
};
|
|
55780
55892
|
var onDropPointDragOver = function onDropPointDragOver(event) {
|
|
55781
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55893
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55782
55894
|
event.dataTransfer.dropEffect = 'move';
|
|
55783
55895
|
event.preventDefault();
|
|
55784
55896
|
}
|
|
55785
55897
|
};
|
|
55786
55898
|
var onDropPointDragEnter = function onDropPointDragEnter(event) {
|
|
55787
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55899
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55788
55900
|
DomHandler.addClass(event.target, 'p-treenode-droppoint-active');
|
|
55789
55901
|
}
|
|
55790
55902
|
};
|
|
55791
55903
|
var onDropPointDragLeave = function onDropPointDragLeave(event) {
|
|
55792
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55904
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55793
55905
|
DomHandler.removeClass(event.target, 'p-treenode-droppoint-active');
|
|
55794
55906
|
}
|
|
55795
55907
|
};
|
|
@@ -55808,19 +55920,19 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
|
|
|
55808
55920
|
}
|
|
55809
55921
|
};
|
|
55810
55922
|
var onDragOver = function onDragOver(event) {
|
|
55811
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55923
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55812
55924
|
event.dataTransfer.dropEffect = 'move';
|
|
55813
55925
|
event.preventDefault();
|
|
55814
55926
|
event.stopPropagation();
|
|
55815
55927
|
}
|
|
55816
55928
|
};
|
|
55817
55929
|
var onDragEnter = function onDragEnter(event) {
|
|
55818
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55930
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55819
55931
|
DomHandler.addClass(contentRef.current, 'p-treenode-dragover');
|
|
55820
55932
|
}
|
|
55821
55933
|
};
|
|
55822
55934
|
var onDragLeave = function onDragLeave(event) {
|
|
55823
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55935
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55824
55936
|
var rect = event.currentTarget.getBoundingClientRect();
|
|
55825
55937
|
if (event.nativeEvent.x > rect.left + rect.width || event.nativeEvent.x < rect.left || event.nativeEvent.y >= Math.floor(rect.top + rect.height) || event.nativeEvent.y < rect.top) {
|
|
55826
55938
|
DomHandler.removeClass(contentRef.current, 'p-treenode-dragover');
|
|
@@ -57000,7 +57112,6 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
57000
57112
|
event.preventDefault();
|
|
57001
57113
|
focusInputRef.current && DomHandler.focus(focusInputRef.current);
|
|
57002
57114
|
break;
|
|
57003
|
-
case 'Space':
|
|
57004
57115
|
case 'Enter':
|
|
57005
57116
|
case 'NumpadEnter':
|
|
57006
57117
|
event.preventDefault();
|
|
@@ -58599,7 +58710,6 @@ var TreeTableRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
58599
58710
|
}, getRowPTOptions('row'), {
|
|
58600
58711
|
className: classNames(rowClassName, props.node.className) // #5983 must be last so all unstyled merging takes place first
|
|
58601
58712
|
});
|
|
58602
|
-
|
|
58603
58713
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tr", _extends({
|
|
58604
58714
|
ref: elementRef
|
|
58605
58715
|
}, rowProps), cells), children);
|
|
@@ -60123,7 +60233,6 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
60123
60233
|
draggedColumn.current = column;
|
|
60124
60234
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
60125
60235
|
};
|
|
60126
|
-
|
|
60127
60236
|
var onColumnDragOver = function onColumnDragOver(e) {
|
|
60128
60237
|
var event = e.originalEvent,
|
|
60129
60238
|
column = e.column;
|