primereact 10.6.6 → 10.7.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/button/button.cjs.js +1 -0
- package/button/button.cjs.min.js +1 -1
- 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 +81 -45
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +8 -10
- package/calendar/calendar.esm.js +81 -45
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +81 -45
- package/calendar/calendar.min.js +1 -1
- 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 +30 -14
- package/core/core.js +122 -31
- package/core/core.min.js +9 -9
- 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 +119 -72
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +1 -1
- package/datatable/datatable.esm.js +119 -72
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +119 -72
- package/datatable/datatable.min.js +1 -1
- package/dialog/dialog.cjs.js +15 -2
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +15 -2
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +15 -2
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.cjs.js +8 -6
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +8 -6
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +8 -6
- package/dropdown/dropdown.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/inputnumber/inputnumber.cjs.js +4 -3
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +4 -3
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +4 -3
- 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.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 +23 -35
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +23 -35
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +23 -35
- package/listbox/listbox.min.js +1 -1
- package/menubar/menubar.d.ts +9 -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 +9 -0
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +9 -0
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +9 -0
- 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/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/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/primereact.all.cjs.js +281 -195
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +281 -195
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +281 -195
- package/primereact.all.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +13 -10
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +13 -10
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +13 -10
- 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.d.ts +4 -0
- 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/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/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 +15 -6
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +15 -6
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +15 -6
- 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.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 +3 -6
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +3 -6
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +3 -6
- package/utils/utils.min.js +1 -1
- package/web-types.json +12 -3
package/column/column.d.ts
CHANGED
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import * as React from 'react';
|
|
12
12
|
import { FilterMatchMode } from '../api/api';
|
|
13
|
-
import { ButtonPassThroughOptions } from '../button/button';
|
|
14
13
|
import { ComponentHooks } from '../componentbase/componentbase';
|
|
15
14
|
import { DataTablePassThroughOptions } from '../datatable/datatable';
|
|
16
|
-
import { DropdownPassThroughOptions } from '../dropdown/dropdown';
|
|
17
15
|
import { PassThroughOptions } from '../passthrough';
|
|
18
16
|
import { TooltipOptions } from '../tooltip/tooltipoptions';
|
|
19
17
|
import { IconType, PassThroughType } from '../utils/utils';
|
|
@@ -208,9 +206,8 @@ export interface ColumnPassThroughOptions {
|
|
|
208
206
|
filterOperator?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
209
207
|
/**
|
|
210
208
|
* Uses to pass attributes to the Dropdown component.
|
|
211
|
-
* @see {@link DropdownPassThroughOptions}
|
|
212
209
|
*/
|
|
213
|
-
filterOperatorDropdown?:
|
|
210
|
+
filterOperatorDropdown?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
214
211
|
/**
|
|
215
212
|
* Uses to pass attributes to the filter constraints' DOM element.
|
|
216
213
|
*/
|
|
@@ -221,45 +218,44 @@ export interface ColumnPassThroughOptions {
|
|
|
221
218
|
filterConstraint?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
222
219
|
/**
|
|
223
220
|
* Uses to pass attributes to the Dropdown component.
|
|
224
|
-
* @see {@link DropdownPassThroughOptions}
|
|
225
221
|
*/
|
|
226
|
-
filterMatchModeDropdown?:
|
|
222
|
+
filterMatchModeDropdown?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
227
223
|
/**
|
|
228
224
|
* Uses to pass attributes to the filter remove button container's DOM element.
|
|
229
225
|
*/
|
|
230
226
|
filterRemove?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
231
227
|
/**
|
|
232
228
|
* Uses to pass attributes to the Button component.
|
|
233
|
-
* @see {@link DropdownPassThroughOptions}
|
|
234
229
|
*/
|
|
235
|
-
filterRemoveButton?:
|
|
230
|
+
filterRemoveButton?: ColumnPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
236
231
|
/**
|
|
237
232
|
* Uses to pass attributes to the filter add rule's DOM element.
|
|
238
233
|
*/
|
|
239
234
|
filterAddRule?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
240
235
|
/**
|
|
241
236
|
* Uses to pass attributes to the Button component.
|
|
242
|
-
* @see {@link DropdownPassThroughOptions}
|
|
243
237
|
*/
|
|
244
|
-
filterAddRuleButton?:
|
|
238
|
+
filterAddRuleButton?: ColumnPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
245
239
|
/**
|
|
246
240
|
* Uses to pass attributes to the filter buttonbar's DOM element.
|
|
247
241
|
*/
|
|
248
242
|
filterButtonbar?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
249
243
|
/**
|
|
250
244
|
* Uses to pass attributes to the Button component.
|
|
251
|
-
* @see {@link ButtonPassThroughOptions}
|
|
252
245
|
*/
|
|
253
|
-
filterClearButton?:
|
|
246
|
+
filterClearButton?: ColumnPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
254
247
|
/**
|
|
255
248
|
* Uses to pass attributes to the Button component.
|
|
256
|
-
* @see {@link ButtonPassThroughOptions}
|
|
257
249
|
*/
|
|
258
|
-
filterApplyButton?:
|
|
250
|
+
filterApplyButton?: ColumnPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
259
251
|
/**
|
|
260
252
|
* Uses to pass attributes to the body cell's DOM element.
|
|
261
253
|
*/
|
|
262
254
|
bodyCell?: ColumnPassThroughType<React.HTMLAttributes<HTMLTableCellElement>>;
|
|
255
|
+
/**
|
|
256
|
+
* Uses to pass attributes to the footer cell's DOM element.
|
|
257
|
+
*/
|
|
258
|
+
footerCell?: ColumnPassThroughType<React.HTMLAttributes<HTMLTableCellElement>>;
|
|
263
259
|
/**
|
|
264
260
|
* Uses to pass attributes to the rowgroup toggler's DOM element.
|
|
265
261
|
*/
|
|
@@ -312,6 +308,26 @@ export interface ColumnPassThroughOptions {
|
|
|
312
308
|
* Uses to pass attributes to the row editor cancel icon's DOM element.
|
|
313
309
|
*/
|
|
314
310
|
rowEditorCancelIcon?: ColumnPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
311
|
+
/**
|
|
312
|
+
* Uses to pass attributes to the row reorder icon's DOM element.
|
|
313
|
+
*/
|
|
314
|
+
rowReorderIcon?: ColumnPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
315
|
+
/**
|
|
316
|
+
* Uses to pass attributes to the row radiobutton wrapper's DOM element.
|
|
317
|
+
*/
|
|
318
|
+
radioButton?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
319
|
+
/**
|
|
320
|
+
* Uses to pass attributes to the row radiobutton input's DOM element.
|
|
321
|
+
*/
|
|
322
|
+
radioButtonInput?: ColumnPassThroughType<React.HTMLAttributes<HTMLInputElement>>;
|
|
323
|
+
/**
|
|
324
|
+
* Uses to pass attributes to the row radiobutton box's DOM element.
|
|
325
|
+
*/
|
|
326
|
+
radioButtonBox?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
327
|
+
/**
|
|
328
|
+
* Uses to pass attributes to the row radiobutton icon's DOM element.
|
|
329
|
+
*/
|
|
330
|
+
radioButtonIcon?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
315
331
|
/**
|
|
316
332
|
* Used to manage all lifecycle hooks
|
|
317
333
|
* @see {@link ComponentHooks}
|
package/core/core.js
CHANGED
|
@@ -196,7 +196,7 @@ this.primereact.utils = (function (exports, React) {
|
|
|
196
196
|
function DomHandler() {
|
|
197
197
|
_classCallCheck(this, DomHandler);
|
|
198
198
|
}
|
|
199
|
-
_createClass(DomHandler, null, [{
|
|
199
|
+
return _createClass(DomHandler, null, [{
|
|
200
200
|
key: "innerWidth",
|
|
201
201
|
value: function innerWidth(el) {
|
|
202
202
|
if (el) {
|
|
@@ -1426,7 +1426,6 @@ this.primereact.utils = (function (exports, React) {
|
|
|
1426
1426
|
return false;
|
|
1427
1427
|
}
|
|
1428
1428
|
}]);
|
|
1429
|
-
return DomHandler;
|
|
1430
1429
|
}();
|
|
1431
1430
|
/**
|
|
1432
1431
|
* All data- properties like data-test-id
|
|
@@ -1484,7 +1483,7 @@ this.primereact.utils = (function (exports, React) {
|
|
|
1484
1483
|
function ObjectUtils() {
|
|
1485
1484
|
_classCallCheck(this, ObjectUtils);
|
|
1486
1485
|
}
|
|
1487
|
-
_createClass(ObjectUtils, null, [{
|
|
1486
|
+
return _createClass(ObjectUtils, null, [{
|
|
1488
1487
|
key: "equals",
|
|
1489
1488
|
value: function equals(obj1, obj2, field) {
|
|
1490
1489
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') {
|
|
@@ -2006,7 +2005,6 @@ this.primereact.utils = (function (exports, React) {
|
|
|
2006
2005
|
}
|
|
2007
2006
|
}
|
|
2008
2007
|
}]);
|
|
2009
|
-
return ObjectUtils;
|
|
2010
2008
|
}();
|
|
2011
2009
|
|
|
2012
2010
|
function ownKeys$2(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; }
|
|
@@ -2015,7 +2013,7 @@ this.primereact.utils = (function (exports, React) {
|
|
|
2015
2013
|
function IconUtils() {
|
|
2016
2014
|
_classCallCheck(this, IconUtils);
|
|
2017
2015
|
}
|
|
2018
|
-
_createClass(IconUtils, null, [{
|
|
2016
|
+
return _createClass(IconUtils, null, [{
|
|
2019
2017
|
key: "getJSXIcon",
|
|
2020
2018
|
value: function getJSXIcon(icon) {
|
|
2021
2019
|
var iconProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -2038,7 +2036,6 @@ this.primereact.utils = (function (exports, React) {
|
|
|
2038
2036
|
return content;
|
|
2039
2037
|
}
|
|
2040
2038
|
}]);
|
|
2041
|
-
return IconUtils;
|
|
2042
2039
|
}();
|
|
2043
2040
|
|
|
2044
2041
|
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; }
|
|
@@ -4497,7 +4494,8 @@ this.primereact.hooks = (function (exports, React, utils, PrimeReact) {
|
|
|
4497
4494
|
PASSWORD: 700,
|
|
4498
4495
|
CASCADE_SELECT: 800,
|
|
4499
4496
|
SPLIT_BUTTON: 900,
|
|
4500
|
-
SPEED_DIAL: 1000
|
|
4497
|
+
SPEED_DIAL: 1000,
|
|
4498
|
+
TOOLTIP: 1200
|
|
4501
4499
|
};
|
|
4502
4500
|
|
|
4503
4501
|
/**
|
|
@@ -5812,32 +5810,26 @@ this.primereact.csstransition = (function (exports, React, reactTransitionGroup,
|
|
|
5812
5810
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
5813
5811
|
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
5814
5812
|
};
|
|
5815
|
-
|
|
5816
5813
|
var onEntering = function onEntering(node, isAppearing) {
|
|
5817
5814
|
props.onEntering && props.onEntering(node, isAppearing); // component
|
|
5818
5815
|
props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
|
|
5819
5816
|
};
|
|
5820
|
-
|
|
5821
5817
|
var onEntered = function onEntered(node, isAppearing) {
|
|
5822
5818
|
props.onEntered && props.onEntered(node, isAppearing); // component
|
|
5823
5819
|
props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
|
|
5824
5820
|
};
|
|
5825
|
-
|
|
5826
5821
|
var onExit = function onExit(node) {
|
|
5827
5822
|
props.onExit && props.onExit(node); // component
|
|
5828
5823
|
props.options && props.options.onExit && props.options.onExit(node); // user option
|
|
5829
5824
|
};
|
|
5830
|
-
|
|
5831
5825
|
var onExiting = function onExiting(node) {
|
|
5832
5826
|
props.onExiting && props.onExiting(node); // component
|
|
5833
5827
|
props.options && props.options.onExiting && props.options.onExiting(node); // user option
|
|
5834
5828
|
};
|
|
5835
|
-
|
|
5836
5829
|
var onExited = function onExited(node) {
|
|
5837
5830
|
props.onExited && props.onExited(node); // component
|
|
5838
5831
|
props.options && props.options.onExited && props.options.onExited(node); // user option
|
|
5839
5832
|
};
|
|
5840
|
-
|
|
5841
5833
|
hooks.useUpdateEffect(function () {
|
|
5842
5834
|
if (disabled) {
|
|
5843
5835
|
// no animation
|
|
@@ -9337,6 +9329,7 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9337
9329
|
autoZIndex: true,
|
|
9338
9330
|
baseZIndex: 0,
|
|
9339
9331
|
className: null,
|
|
9332
|
+
closeOnEscape: false,
|
|
9340
9333
|
content: null,
|
|
9341
9334
|
disabled: false,
|
|
9342
9335
|
event: null,
|
|
@@ -9407,6 +9400,13 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9407
9400
|
componentbase.useHandleStyle(TooltipBase.css.styles, isUnstyled, {
|
|
9408
9401
|
name: 'tooltip'
|
|
9409
9402
|
});
|
|
9403
|
+
hooks.useGlobalOnEscapeKey({
|
|
9404
|
+
callback: function callback() {
|
|
9405
|
+
hide();
|
|
9406
|
+
},
|
|
9407
|
+
when: props.closeOnEscape,
|
|
9408
|
+
priority: [hooks.ESC_KEY_HANDLING_PRIORITIES.TOOLTIP, 0]
|
|
9409
|
+
});
|
|
9410
9410
|
var elementRef = React__namespace.useRef(null);
|
|
9411
9411
|
var textRef = React__namespace.useRef(null);
|
|
9412
9412
|
var currentTargetRef = React__namespace.useRef(null);
|
|
@@ -9804,7 +9804,8 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9804
9804
|
};
|
|
9805
9805
|
}, [visibleState]);
|
|
9806
9806
|
hooks.useUpdateEffect(function () {
|
|
9807
|
-
|
|
9807
|
+
var position = getPosition(currentTargetRef.current);
|
|
9808
|
+
if (visibleState && position !== 'mouse') {
|
|
9808
9809
|
applyDelay('updateDelay', function () {
|
|
9809
9810
|
updateText(currentTargetRef.current, function () {
|
|
9810
9811
|
align(currentTargetRef.current);
|
|
@@ -11012,6 +11013,61 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
11012
11013
|
return obj;
|
|
11013
11014
|
}
|
|
11014
11015
|
|
|
11016
|
+
function _arrayWithHoles(arr) {
|
|
11017
|
+
if (Array.isArray(arr)) return arr;
|
|
11018
|
+
}
|
|
11019
|
+
|
|
11020
|
+
function _iterableToArrayLimit(r, l) {
|
|
11021
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
11022
|
+
if (null != t) {
|
|
11023
|
+
var e,
|
|
11024
|
+
n,
|
|
11025
|
+
i,
|
|
11026
|
+
u,
|
|
11027
|
+
a = [],
|
|
11028
|
+
f = !0,
|
|
11029
|
+
o = !1;
|
|
11030
|
+
try {
|
|
11031
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
11032
|
+
if (Object(t) !== t) return;
|
|
11033
|
+
f = !1;
|
|
11034
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
11035
|
+
} catch (r) {
|
|
11036
|
+
o = !0, n = r;
|
|
11037
|
+
} finally {
|
|
11038
|
+
try {
|
|
11039
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
11040
|
+
} finally {
|
|
11041
|
+
if (o) throw n;
|
|
11042
|
+
}
|
|
11043
|
+
}
|
|
11044
|
+
return a;
|
|
11045
|
+
}
|
|
11046
|
+
}
|
|
11047
|
+
|
|
11048
|
+
function _arrayLikeToArray(arr, len) {
|
|
11049
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
11050
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
11051
|
+
return arr2;
|
|
11052
|
+
}
|
|
11053
|
+
|
|
11054
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
11055
|
+
if (!o) return;
|
|
11056
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
11057
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11058
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11059
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
11060
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
11061
|
+
}
|
|
11062
|
+
|
|
11063
|
+
function _nonIterableRest() {
|
|
11064
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11065
|
+
}
|
|
11066
|
+
|
|
11067
|
+
function _slicedToArray(arr, i) {
|
|
11068
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
11069
|
+
}
|
|
11070
|
+
|
|
11015
11071
|
var classes = {
|
|
11016
11072
|
box: 'p-checkbox-box',
|
|
11017
11073
|
input: 'p-checkbox-input',
|
|
@@ -11067,8 +11123,15 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
11067
11123
|
var mergeProps = hooks.useMergeProps();
|
|
11068
11124
|
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
11069
11125
|
var props = CheckboxBase.getProps(inProps, context);
|
|
11126
|
+
var _React$useState = React__namespace.useState(false),
|
|
11127
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
11128
|
+
focusedState = _React$useState2[0],
|
|
11129
|
+
setFocusedState = _React$useState2[1];
|
|
11070
11130
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
11071
11131
|
props: props,
|
|
11132
|
+
state: {
|
|
11133
|
+
focused: focusedState
|
|
11134
|
+
},
|
|
11072
11135
|
context: {
|
|
11073
11136
|
checked: props.checked === props.trueValue,
|
|
11074
11137
|
disabled: props.disabled
|
|
@@ -11122,10 +11185,12 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
11122
11185
|
};
|
|
11123
11186
|
var _onFocus = function onFocus() {
|
|
11124
11187
|
var _props$onFocus;
|
|
11188
|
+
setFocusedState(true);
|
|
11125
11189
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
11126
11190
|
};
|
|
11127
11191
|
var _onBlur = function onBlur() {
|
|
11128
11192
|
var _props$onBlur;
|
|
11193
|
+
setFocusedState(false);
|
|
11129
11194
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
11130
11195
|
};
|
|
11131
11196
|
React__namespace.useImperativeHandle(ref, function () {
|
|
@@ -11525,6 +11590,7 @@ this.primereact.button = (function (exports, React, api, componentbase, hooks, u
|
|
|
11525
11590
|
var rootProps = mergeProps({
|
|
11526
11591
|
ref: elementRef,
|
|
11527
11592
|
'aria-label': defaultAriaLabel,
|
|
11593
|
+
'data-pc-autofocus': props.autoFocus,
|
|
11528
11594
|
className: utils.classNames(props.className, cx('root', {
|
|
11529
11595
|
size: size,
|
|
11530
11596
|
disabled: disabled
|
|
@@ -12055,14 +12121,15 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
12055
12121
|
var vertical = props.showButtons && props.buttonLayout === 'vertical';
|
|
12056
12122
|
var inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits ? 'numeric' : 'decimal');
|
|
12057
12123
|
var getOptions = function getOptions() {
|
|
12124
|
+
var _props$minFractionDig, _props$maxFractionDig;
|
|
12058
12125
|
return {
|
|
12059
12126
|
localeMatcher: props.localeMatcher,
|
|
12060
12127
|
style: props.mode,
|
|
12061
12128
|
currency: props.currency,
|
|
12062
12129
|
currencyDisplay: props.currencyDisplay,
|
|
12063
12130
|
useGrouping: props.useGrouping,
|
|
12064
|
-
minimumFractionDigits: props.minFractionDigits,
|
|
12065
|
-
maximumFractionDigits: props.maxFractionDigits,
|
|
12131
|
+
minimumFractionDigits: (_props$minFractionDig = props.minFractionDigits) !== null && _props$minFractionDig !== void 0 ? _props$minFractionDig : undefined,
|
|
12132
|
+
maximumFractionDigits: (_props$maxFractionDig = props.maxFractionDigits) !== null && _props$maxFractionDig !== void 0 ? _props$maxFractionDig : undefined,
|
|
12066
12133
|
roundingMode: props.roundingMode
|
|
12067
12134
|
};
|
|
12068
12135
|
};
|
|
@@ -12480,7 +12547,7 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
12480
12547
|
if (_char2) {
|
|
12481
12548
|
var _isDecimalSign = isDecimalSign(_char2);
|
|
12482
12549
|
var _isMinusSign = isMinusSign(_char2);
|
|
12483
|
-
if (
|
|
12550
|
+
if (Number(_char2) >= 0 && Number(_char2) <= 9 || _isMinusSign || _isDecimalSign) {
|
|
12484
12551
|
insert(event, _char2, {
|
|
12485
12552
|
isDecimalSign: _isDecimalSign,
|
|
12486
12553
|
isMinusSign: _isMinusSign
|
|
@@ -14658,10 +14725,9 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14658
14725
|
};
|
|
14659
14726
|
var onOptionSelect = function onOptionSelect(event, option) {
|
|
14660
14727
|
var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
14661
|
-
var value = getOptionValue(option);
|
|
14662
14728
|
selectItem({
|
|
14663
14729
|
originalEvent: event,
|
|
14664
|
-
option:
|
|
14730
|
+
option: option
|
|
14665
14731
|
});
|
|
14666
14732
|
isHide && hide();
|
|
14667
14733
|
};
|
|
@@ -14944,8 +15010,9 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14944
15010
|
}
|
|
14945
15011
|
};
|
|
14946
15012
|
var onEditableInputChange = function onEditableInputChange(event) {
|
|
15013
|
+
!overlayVisibleState && show();
|
|
14947
15014
|
var searchIndex = null;
|
|
14948
|
-
if (event.target.value) {
|
|
15015
|
+
if (event.target.value && visibleOptions) {
|
|
14949
15016
|
searchIndex = visibleOptions.findIndex(function (item) {
|
|
14950
15017
|
return getOptionLabel(item).toLocaleLowerCase().startsWith(event.target.value.toLocaleLowerCase());
|
|
14951
15018
|
});
|
|
@@ -15151,10 +15218,12 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
15151
15218
|
}
|
|
15152
15219
|
};
|
|
15153
15220
|
var getOptionLabel = function getOptionLabel(option) {
|
|
15154
|
-
|
|
15221
|
+
var optionLabel = props.optionLabel ? utils.ObjectUtils.resolveFieldData(option, props.optionLabel) : utils.ObjectUtils.resolveFieldData(option, 'label');
|
|
15222
|
+
return utils.ObjectUtils.isNotEmpty(optionLabel) ? optionLabel : option;
|
|
15155
15223
|
};
|
|
15156
15224
|
var getOptionValue = function getOptionValue(option) {
|
|
15157
|
-
|
|
15225
|
+
var optionValue = props.OptionValue ? utils.ObjectUtils.resolveFieldData(option, props.optionValue) : utils.ObjectUtils.resolveFieldData(option, 'value');
|
|
15226
|
+
return utils.ObjectUtils.isNotEmpty(optionValue) ? optionValue : option;
|
|
15158
15227
|
};
|
|
15159
15228
|
var getOptionRenderKey = function getOptionRenderKey(option) {
|
|
15160
15229
|
return props.dataKey ? utils.ObjectUtils.resolveFieldData(option, props.dataKey) : getOptionLabel(option);
|
|
@@ -15327,7 +15396,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
15327
15396
|
}, ariaProps), ptm('input'));
|
|
15328
15397
|
return /*#__PURE__*/React__namespace.createElement("input", _inputProps);
|
|
15329
15398
|
}
|
|
15330
|
-
var content = props.valueTemplate ? utils.ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder ||
|
|
15399
|
+
var content = props.valueTemplate ? utils.ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder || props.emptyMessage || /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, "\xA0");
|
|
15331
15400
|
var inputProps = mergeProps({
|
|
15332
15401
|
ref: inputRef,
|
|
15333
15402
|
className: cx('input', {
|
|
@@ -15706,6 +15775,15 @@ this.primereact.dialog = (function (exports, React, PrimeReact, componentbase, c
|
|
|
15706
15775
|
var getTarget = function getTarget() {
|
|
15707
15776
|
return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
|
|
15708
15777
|
};
|
|
15778
|
+
|
|
15779
|
+
/**
|
|
15780
|
+
* This method sets the auto focus on the first focusable element within the target element.
|
|
15781
|
+
* It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
|
|
15782
|
+
* it then tries to find a focusable element using the firstFocusableSelector.
|
|
15783
|
+
* If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
|
|
15784
|
+
*
|
|
15785
|
+
* @param {HTMLElement} target - The target element within which to find a focusable element.
|
|
15786
|
+
*/
|
|
15709
15787
|
var setAutoFocus = function setAutoFocus(target) {
|
|
15710
15788
|
var _ref = props || {},
|
|
15711
15789
|
_ref$autoFocusSelecto = _ref.autoFocusSelector,
|
|
@@ -15714,7 +15792,9 @@ this.primereact.dialog = (function (exports, React, PrimeReact, componentbase, c
|
|
|
15714
15792
|
firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
|
|
15715
15793
|
_ref$autoFocus = _ref.autoFocus,
|
|
15716
15794
|
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
|
|
15717
|
-
var
|
|
15795
|
+
var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
|
|
15796
|
+
var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
|
|
15797
|
+
var focusableElement = utils.DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
|
|
15718
15798
|
autoFocus && !focusableElement && (focusableElement = utils.DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
|
|
15719
15799
|
utils.DomHandler.focus(focusableElement);
|
|
15720
15800
|
};
|
|
@@ -16336,7 +16416,9 @@ this.primereact.dialog = (function (exports, React, PrimeReact, componentbase, c
|
|
|
16336
16416
|
'aria-label': ariaLabel,
|
|
16337
16417
|
onClick: onClose,
|
|
16338
16418
|
onKeyDown: function onKeyDown(ev) {
|
|
16339
|
-
|
|
16419
|
+
if (ev.key !== 'Escape') {
|
|
16420
|
+
ev.stopPropagation();
|
|
16421
|
+
}
|
|
16340
16422
|
}
|
|
16341
16423
|
}, ptm('closeButton'));
|
|
16342
16424
|
return /*#__PURE__*/React__namespace.createElement("button", closeButtonProps, headerCloseIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
@@ -18083,8 +18165,15 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18083
18165
|
var mergeProps = hooks.useMergeProps();
|
|
18084
18166
|
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
18085
18167
|
var props = CheckboxBase.getProps(inProps, context);
|
|
18168
|
+
var _React$useState = React__namespace.useState(false),
|
|
18169
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
18170
|
+
focusedState = _React$useState2[0],
|
|
18171
|
+
setFocusedState = _React$useState2[1];
|
|
18086
18172
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
18087
18173
|
props: props,
|
|
18174
|
+
state: {
|
|
18175
|
+
focused: focusedState
|
|
18176
|
+
},
|
|
18088
18177
|
context: {
|
|
18089
18178
|
checked: props.checked === props.trueValue,
|
|
18090
18179
|
disabled: props.disabled
|
|
@@ -18138,10 +18227,12 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18138
18227
|
};
|
|
18139
18228
|
var _onFocus = function onFocus() {
|
|
18140
18229
|
var _props$onFocus;
|
|
18230
|
+
setFocusedState(true);
|
|
18141
18231
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
18142
18232
|
};
|
|
18143
18233
|
var _onBlur = function onBlur() {
|
|
18144
18234
|
var _props$onBlur;
|
|
18235
|
+
setFocusedState(false);
|
|
18145
18236
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
18146
18237
|
};
|
|
18147
18238
|
React__namespace.useImperativeHandle(ref, function () {
|
|
@@ -18757,18 +18848,18 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18757
18848
|
}
|
|
18758
18849
|
};
|
|
18759
18850
|
var onDropPointDragOver = function onDropPointDragOver(event) {
|
|
18760
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18851
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18761
18852
|
event.dataTransfer.dropEffect = 'move';
|
|
18762
18853
|
event.preventDefault();
|
|
18763
18854
|
}
|
|
18764
18855
|
};
|
|
18765
18856
|
var onDropPointDragEnter = function onDropPointDragEnter(event) {
|
|
18766
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18857
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18767
18858
|
utils.DomHandler.addClass(event.target, 'p-treenode-droppoint-active');
|
|
18768
18859
|
}
|
|
18769
18860
|
};
|
|
18770
18861
|
var onDropPointDragLeave = function onDropPointDragLeave(event) {
|
|
18771
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18862
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18772
18863
|
utils.DomHandler.removeClass(event.target, 'p-treenode-droppoint-active');
|
|
18773
18864
|
}
|
|
18774
18865
|
};
|
|
@@ -18787,19 +18878,19 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18787
18878
|
}
|
|
18788
18879
|
};
|
|
18789
18880
|
var onDragOver = function onDragOver(event) {
|
|
18790
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18881
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18791
18882
|
event.dataTransfer.dropEffect = 'move';
|
|
18792
18883
|
event.preventDefault();
|
|
18793
18884
|
event.stopPropagation();
|
|
18794
18885
|
}
|
|
18795
18886
|
};
|
|
18796
18887
|
var onDragEnter = function onDragEnter(event) {
|
|
18797
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18888
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18798
18889
|
utils.DomHandler.addClass(contentRef.current, 'p-treenode-dragover');
|
|
18799
18890
|
}
|
|
18800
18891
|
};
|
|
18801
18892
|
var onDragLeave = function onDragLeave(event) {
|
|
18802
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18893
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18803
18894
|
var rect = event.currentTarget.getBoundingClientRect();
|
|
18804
18895
|
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) {
|
|
18805
18896
|
utils.DomHandler.removeClass(contentRef.current, 'p-treenode-dragover');
|