primereact 10.8.3 → 10.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +51 -63
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +51 -63
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +51 -63
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +61 -75
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +61 -75
- package/api/api.esm.min.js +1 -1
- package/api/api.js +61 -75
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +81 -80
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +81 -80
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +81 -80
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +37 -49
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +37 -49
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +37 -49
- package/avatar/avatar.min.js +1 -1
- package/badge/badge.cjs.js +18 -24
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +18 -24
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +18 -24
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +37 -49
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +37 -49
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +37 -49
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +38 -50
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +38 -50
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +38 -50
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +25 -36
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +25 -36
- package/button/button.esm.min.js +1 -1
- package/button/button.js +25 -36
- package/button/button.min.js +1 -1
- package/buttongroup/buttongroup.cjs.js +1 -1
- package/buttongroup/buttongroup.esm.js +1 -1
- package/buttongroup/buttongroup.js +1 -1
- package/calendar/calendar.cjs.js +58 -68
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +59 -69
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +58 -68
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +44 -56
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +44 -56
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +44 -56
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +50 -62
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +50 -62
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +50 -62
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +1 -1
- package/chart/chart.esm.js +1 -1
- package/chart/chart.js +1 -1
- package/checkbox/checkbox.cjs.js +38 -50
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +38 -50
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +38 -50
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +40 -52
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +40 -52
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +40 -52
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +47 -57
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +47 -57
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +47 -57
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +38 -50
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +38 -50
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +38 -50
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +47 -54
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +47 -54
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +47 -54
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +38 -50
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +38 -50
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +38 -50
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +41 -54
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +41 -54
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +41 -54
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +42 -51
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +42 -51
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +42 -51
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1147 -1571
- package/core/core.min.js +67 -67
- package/csstransition/csstransition.cjs.js +18 -23
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +18 -23
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +18 -23
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +27 -33
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +27 -33
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +27 -33
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +135 -151
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +135 -151
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +135 -151
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +47 -59
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +47 -59
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +47 -59
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +14 -15
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +14 -15
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +14 -15
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +47 -59
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +48 -60
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +47 -59
- package/dialog/dialog.min.js +1 -1
- package/dock/dock.cjs.js +44 -56
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +44 -56
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +44 -56
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +54 -68
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +54 -68
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +54 -68
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +38 -50
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +38 -50
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +38 -50
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +20 -26
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +20 -26
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +20 -26
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +50 -62
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +50 -62
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +50 -62
- package/fileupload/fileupload.min.js +1 -1
- package/floatlabel/floatlabel.cjs.js +1 -1
- package/floatlabel/floatlabel.esm.js +1 -1
- package/floatlabel/floatlabel.js +1 -1
- package/focustrap/focustrap.cjs.js +18 -24
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +18 -24
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +18 -24
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +46 -58
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +46 -58
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +46 -58
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +37 -47
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +37 -47
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +37 -47
- package/hooks/hooks.min.js +1 -1
- package/iconfield/iconfield.cjs.js +24 -35
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +24 -35
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +24 -35
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +7 -12
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +7 -12
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +7 -12
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +7 -12
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +7 -12
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +7 -12
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +7 -12
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +7 -12
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +7 -12
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +7 -12
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +7 -12
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +7 -12
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +7 -12
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +7 -12
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +7 -12
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +7 -12
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +7 -12
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +7 -12
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +7 -12
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +7 -12
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +7 -12
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +7 -12
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +7 -12
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +7 -12
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +7 -12
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +7 -12
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +7 -12
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +7 -12
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +7 -12
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +7 -12
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +7 -12
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +7 -12
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +7 -12
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +7 -12
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +7 -12
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +7 -12
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +7 -12
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +7 -12
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +7 -12
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +7 -12
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +7 -12
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +7 -12
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +7 -12
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +7 -12
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +7 -12
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +7 -12
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +7 -12
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +7 -12
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +7 -12
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +7 -12
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +7 -12
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +7 -12
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +7 -12
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +7 -12
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +7 -12
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +7 -12
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +7 -12
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +7 -12
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +7 -12
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +7 -12
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +7 -12
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +7 -12
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +7 -12
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +7 -12
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +7 -12
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +7 -12
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +7 -12
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +7 -12
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +7 -12
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +7 -12
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +7 -12
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +7 -12
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +7 -12
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +7 -12
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +7 -12
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +7 -12
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +7 -12
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +7 -12
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +7 -12
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +7 -12
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +7 -12
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +7 -12
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +7 -12
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +7 -12
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +7 -12
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +7 -12
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +7 -12
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +7 -12
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +7 -12
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +7 -12
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +7 -12
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +7 -12
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +7 -12
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +7 -12
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +7 -12
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +7 -12
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +7 -12
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +7 -12
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +7 -12
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +7 -12
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +7 -12
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +7 -12
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +7 -12
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +7 -12
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +7 -12
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +7 -12
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +7 -12
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +7 -12
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +7 -12
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +7 -12
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +7 -12
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +7 -12
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +7 -12
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +7 -12
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +7 -12
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +7 -12
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +7 -12
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +7 -12
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +7 -12
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +7 -12
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +7 -12
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +7 -12
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +7 -12
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +7 -12
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +7 -12
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +7 -12
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +7 -12
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +7 -12
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +7 -12
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +7 -12
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +7 -12
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +7 -12
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +7 -12
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +7 -12
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +7 -12
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +7 -12
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +7 -12
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +7 -12
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +7 -12
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +7 -12
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +7 -12
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +39 -51
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +39 -51
- package/image/image.esm.min.js +1 -1
- package/image/image.js +39 -51
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +14 -15
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +14 -15
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +14 -15
- package/inplace/inplace.min.js +1 -1
- package/inputicon/inputicon.cjs.js +24 -35
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +24 -35
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +24 -35
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +10 -13
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +10 -13
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +10 -13
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +59 -66
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +60 -67
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +59 -66
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +53 -65
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +53 -65
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +53 -65
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +24 -35
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +24 -35
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +24 -35
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +31 -35
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -0
- package/inputtext/inputtext.esm.js +31 -35
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +31 -35
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +26 -36
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +26 -36
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +26 -36
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +16 -17
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +16 -17
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +16 -17
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +15 -16
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +15 -16
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +15 -16
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +48 -60
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +48 -60
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +48 -60
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +44 -56
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +44 -56
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +44 -56
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +48 -58
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +8 -0
- package/mention/mention.esm.js +48 -58
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +48 -58
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +47 -59
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +14 -0
- package/menu/menu.esm.js +47 -59
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +47 -59
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +45 -54
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +45 -54
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +45 -54
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +24 -35
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +24 -35
- package/message/message.esm.min.js +1 -1
- package/message/message.js +24 -35
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +46 -59
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +47 -60
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +46 -59
- package/messages/messages.min.js +1 -1
- package/metergroup/metergroup.cjs.js +23 -34
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +23 -34
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +23 -34
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +149 -163
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +149 -163
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +149 -163
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +39 -51
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +39 -51
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +39 -51
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +46 -58
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +46 -58
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +46 -58
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +46 -62
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +46 -62
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +46 -62
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +38 -50
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +38 -50
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +38 -50
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +42 -57
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +42 -57
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +42 -57
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +20 -26
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +20 -26
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +20 -26
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +59 -68
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +59 -68
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +59 -68
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +17 -23
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +17 -23
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +17 -23
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +360 -334
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +360 -334
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +360 -334
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +47 -53
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +47 -53
- package/password/password.esm.min.js +1 -1
- package/password/password.js +47 -53
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +51 -66
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +51 -66
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +51 -66
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +14 -15
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +14 -15
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +14 -15
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +917 -858
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +917 -858
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +917 -858
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +24 -35
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +24 -35
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +24 -35
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +1 -1
- package/progressspinner/progressspinner.esm.js +1 -1
- package/progressspinner/progressspinner.js +1 -1
- package/radiobutton/radiobutton.cjs.js +24 -35
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +24 -35
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +24 -35
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +38 -50
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +38 -50
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +38 -50
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +15 -25
- package/resources/themes/arya-green/theme.css +15 -25
- package/resources/themes/arya-orange/theme.css +15 -25
- package/resources/themes/arya-purple/theme.css +15 -25
- package/resources/themes/bootstrap4-dark-blue/theme.css +15 -25
- package/resources/themes/bootstrap4-dark-purple/theme.css +15 -25
- package/resources/themes/bootstrap4-light-blue/theme.css +15 -25
- package/resources/themes/bootstrap4-light-purple/theme.css +15 -25
- package/resources/themes/fluent-light/theme.css +15 -25
- package/resources/themes/lara-dark-amber/theme.css +15 -25
- package/resources/themes/lara-dark-blue/theme.css +15 -25
- package/resources/themes/lara-dark-cyan/theme.css +15 -25
- package/resources/themes/lara-dark-green/theme.css +15 -25
- package/resources/themes/lara-dark-indigo/theme.css +15 -25
- package/resources/themes/lara-dark-pink/theme.css +15 -25
- package/resources/themes/lara-dark-purple/theme.css +15 -25
- package/resources/themes/lara-dark-teal/theme.css +15 -25
- package/resources/themes/lara-light-amber/theme.css +15 -25
- package/resources/themes/lara-light-blue/theme.css +15 -25
- package/resources/themes/lara-light-cyan/theme.css +15 -25
- package/resources/themes/lara-light-green/theme.css +15 -25
- package/resources/themes/lara-light-indigo/theme.css +15 -25
- package/resources/themes/lara-light-pink/theme.css +15 -25
- package/resources/themes/lara-light-purple/theme.css +15 -25
- package/resources/themes/lara-light-teal/theme.css +15 -25
- package/resources/themes/luna-amber/theme.css +15 -25
- package/resources/themes/luna-blue/theme.css +15 -25
- package/resources/themes/luna-green/theme.css +15 -25
- package/resources/themes/luna-pink/theme.css +15 -25
- package/resources/themes/md-dark-deeppurple/theme.css +15 -25
- package/resources/themes/md-dark-indigo/theme.css +15 -25
- package/resources/themes/md-light-deeppurple/theme.css +15 -25
- package/resources/themes/md-light-indigo/theme.css +300 -310
- package/resources/themes/mdc-dark-deeppurple/theme.css +15 -25
- package/resources/themes/mdc-dark-indigo/theme.css +15 -25
- package/resources/themes/mdc-light-deeppurple/theme.css +15 -25
- package/resources/themes/mdc-light-indigo/theme.css +300 -310
- package/resources/themes/mira/theme.css +15 -25
- package/resources/themes/nano/theme.css +15 -25
- package/resources/themes/nova/theme.css +15 -25
- package/resources/themes/nova-accent/theme.css +15 -25
- package/resources/themes/nova-alt/theme.css +15 -25
- package/resources/themes/rhea/theme.css +15 -25
- package/resources/themes/saga-blue/theme.css +15 -25
- package/resources/themes/saga-green/theme.css +15 -25
- package/resources/themes/saga-orange/theme.css +15 -25
- package/resources/themes/saga-purple/theme.css +15 -25
- package/resources/themes/soho-dark/theme.css +15 -25
- package/resources/themes/soho-light/theme.css +15 -25
- package/resources/themes/tailwind-light/theme.css +15 -25
- package/resources/themes/vela-blue/theme.css +15 -25
- package/resources/themes/vela-green/theme.css +15 -25
- package/resources/themes/vela-orange/theme.css +15 -25
- package/resources/themes/vela-purple/theme.css +15 -25
- package/resources/themes/viva-dark/theme.css +15 -25
- package/resources/themes/viva-light/theme.css +15 -25
- package/ripple/ripple.cjs.js +38 -50
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +38 -50
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +38 -50
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +34 -32
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +34 -32
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +34 -32
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +38 -50
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +38 -50
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +38 -50
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +27 -33
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +27 -33
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +27 -33
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +38 -50
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +2 -1
- package/sidebar/sidebar.esm.js +38 -50
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +38 -50
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +18 -24
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +18 -24
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +18 -24
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +41 -50
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +41 -50
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +41 -50
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +44 -56
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +44 -56
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +44 -56
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +44 -56
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +44 -56
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +44 -56
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +60 -63
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -2
- package/splitbutton/splitbutton.esm.js +60 -63
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +60 -63
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +48 -60
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +48 -60
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +48 -60
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.js +41 -53
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +41 -53
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +41 -53
- package/stepper/stepper.min.js +1 -1
- package/stepperpanel/stepperpanel.cjs.js +1 -1
- package/stepperpanel/stepperpanel.esm.js +1 -1
- package/stepperpanel/stepperpanel.js +1 -1
- package/steps/steps.cjs.js +42 -59
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +42 -59
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +42 -59
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +14 -15
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +14 -15
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +14 -15
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +44 -56
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +44 -56
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +44 -56
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +45 -52
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +45 -52
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +45 -52
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +17 -23
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +17 -23
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +17 -23
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +21 -22
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +21 -22
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +21 -22
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +53 -59
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +53 -59
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +53 -59
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +24 -35
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +24 -35
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +24 -35
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +55 -75
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +55 -75
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +55 -75
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +25 -36
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +25 -36
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +25 -36
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +1 -1
- package/toolbar/toolbar.esm.js +1 -1
- package/toolbar/toolbar.js +1 -1
- package/tooltip/tooltip.cjs.js +51 -57
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +51 -57
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +51 -57
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +76 -88
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +76 -88
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +76 -88
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +57 -68
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +57 -68
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +57 -68
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +98 -105
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +1 -1
- package/treetable/treetable.esm.js +98 -105
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +98 -105
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +100 -46
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +101 -46
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +100 -46
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +70 -90
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +70 -90
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +70 -90
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +38 -50
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +38 -50
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +38 -50
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +3 -3
package/tooltip/tooltip.js
CHANGED
|
@@ -26,18 +26,13 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
26
26
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
27
|
|
|
28
28
|
function _extends() {
|
|
29
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
30
|
-
for (var
|
|
31
|
-
var
|
|
32
|
-
for (var
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
-
target[key] = source[key];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
29
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
30
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
31
|
+
var t = arguments[e];
|
|
32
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
37
33
|
}
|
|
38
|
-
return
|
|
39
|
-
};
|
|
40
|
-
return _extends.apply(this, arguments);
|
|
34
|
+
return n;
|
|
35
|
+
}, _extends.apply(null, arguments);
|
|
41
36
|
}
|
|
42
37
|
|
|
43
38
|
function _typeof(o) {
|
|
@@ -50,70 +45,63 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
50
45
|
}, _typeof(o);
|
|
51
46
|
}
|
|
52
47
|
|
|
53
|
-
function
|
|
54
|
-
if (
|
|
55
|
-
var
|
|
56
|
-
if (
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
48
|
+
function toPrimitive(t, r) {
|
|
49
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
50
|
+
var e = t[Symbol.toPrimitive];
|
|
51
|
+
if (void 0 !== e) {
|
|
52
|
+
var i = e.call(t, r || "default");
|
|
53
|
+
if ("object" != _typeof(i)) return i;
|
|
59
54
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
60
55
|
}
|
|
61
|
-
return (
|
|
56
|
+
return ("string" === r ? String : Number)(t);
|
|
62
57
|
}
|
|
63
58
|
|
|
64
|
-
function
|
|
65
|
-
var
|
|
66
|
-
return _typeof(
|
|
59
|
+
function toPropertyKey(t) {
|
|
60
|
+
var i = toPrimitive(t, "string");
|
|
61
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
67
62
|
}
|
|
68
63
|
|
|
69
|
-
function _defineProperty(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
writable: true
|
|
77
|
-
});
|
|
78
|
-
} else {
|
|
79
|
-
obj[key] = value;
|
|
80
|
-
}
|
|
81
|
-
return obj;
|
|
64
|
+
function _defineProperty(e, r, t) {
|
|
65
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
66
|
+
value: t,
|
|
67
|
+
enumerable: !0,
|
|
68
|
+
configurable: !0,
|
|
69
|
+
writable: !0
|
|
70
|
+
}) : e[r] = t, e;
|
|
82
71
|
}
|
|
83
72
|
|
|
84
|
-
function _arrayLikeToArray(
|
|
85
|
-
|
|
86
|
-
for (var
|
|
87
|
-
return
|
|
73
|
+
function _arrayLikeToArray(r, a) {
|
|
74
|
+
(null == a || a > r.length) && (a = r.length);
|
|
75
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
76
|
+
return n;
|
|
88
77
|
}
|
|
89
78
|
|
|
90
|
-
function _arrayWithoutHoles(
|
|
91
|
-
if (Array.isArray(
|
|
79
|
+
function _arrayWithoutHoles(r) {
|
|
80
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
92
81
|
}
|
|
93
82
|
|
|
94
|
-
function _iterableToArray(
|
|
95
|
-
if (typeof Symbol
|
|
83
|
+
function _iterableToArray(r) {
|
|
84
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
96
85
|
}
|
|
97
86
|
|
|
98
|
-
function _unsupportedIterableToArray(
|
|
99
|
-
if (
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
87
|
+
function _unsupportedIterableToArray(r, a) {
|
|
88
|
+
if (r) {
|
|
89
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
90
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
91
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
92
|
+
}
|
|
105
93
|
}
|
|
106
94
|
|
|
107
95
|
function _nonIterableSpread() {
|
|
108
96
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
109
97
|
}
|
|
110
98
|
|
|
111
|
-
function _toConsumableArray(
|
|
112
|
-
return _arrayWithoutHoles(
|
|
99
|
+
function _toConsumableArray(r) {
|
|
100
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
113
101
|
}
|
|
114
102
|
|
|
115
|
-
function _arrayWithHoles(
|
|
116
|
-
if (Array.isArray(
|
|
103
|
+
function _arrayWithHoles(r) {
|
|
104
|
+
if (Array.isArray(r)) return r;
|
|
117
105
|
}
|
|
118
106
|
|
|
119
107
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -148,8 +136,8 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
148
136
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
149
137
|
}
|
|
150
138
|
|
|
151
|
-
function _slicedToArray(
|
|
152
|
-
return _arrayWithHoles(
|
|
139
|
+
function _slicedToArray(r, e) {
|
|
140
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
153
141
|
}
|
|
154
142
|
|
|
155
143
|
var classes = {
|
|
@@ -215,7 +203,7 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
215
203
|
|
|
216
204
|
function ownKeys(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; }
|
|
217
205
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
218
|
-
var Tooltip = /*#__PURE__*/React__namespace.memo(
|
|
206
|
+
var Tooltip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
219
207
|
var mergeProps = hooks.useMergeProps();
|
|
220
208
|
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
221
209
|
var props = TooltipBase.getProps(inProps, context);
|
|
@@ -231,6 +219,10 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
231
219
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
232
220
|
classNameState = _React$useState6[0],
|
|
233
221
|
setClassNameState = _React$useState6[1];
|
|
222
|
+
var _React$useState7 = React__namespace.useState(false),
|
|
223
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
224
|
+
multipleFocusEvents = _React$useState8[0],
|
|
225
|
+
setMultipleFocusEvents = _React$useState8[1];
|
|
234
226
|
var metaData = {
|
|
235
227
|
props: props,
|
|
236
228
|
state: {
|
|
@@ -323,7 +315,7 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
323
315
|
}
|
|
324
316
|
if (event === 'both') {
|
|
325
317
|
showEvents = ['focus', 'mouseenter'];
|
|
326
|
-
hideEvents = ['blur'
|
|
318
|
+
hideEvents = multipleFocusEvents ? ['blur'] : ['mouseleave', 'blur'];
|
|
327
319
|
}
|
|
328
320
|
}
|
|
329
321
|
return {
|
|
@@ -383,6 +375,7 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
383
375
|
});
|
|
384
376
|
};
|
|
385
377
|
var show = function show(e) {
|
|
378
|
+
if (e.type && e.type === 'focus') setMultipleFocusEvents(true);
|
|
386
379
|
currentTargetRef.current = e.currentTarget;
|
|
387
380
|
var disabled = isDisabled(currentTargetRef.current);
|
|
388
381
|
var empty = isContentEmpty(isShowOnDisabled(currentTargetRef.current) && disabled ? currentTargetRef.current.firstChild : currentTargetRef.current);
|
|
@@ -410,6 +403,7 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
410
403
|
}
|
|
411
404
|
};
|
|
412
405
|
var hide = function hide(e) {
|
|
406
|
+
if (e && e.type === 'blur') setMultipleFocusEvents(false);
|
|
413
407
|
clearTimeouts();
|
|
414
408
|
if (visibleState) {
|
|
415
409
|
var success = sendCallback(props.onBeforeHide, {
|
package/tooltip/tooltip.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.tooltip=function(t,e,r,n,o,i,a){"use strict";function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function u(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var c=u(e),s=l(r);function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},p.apply(this,arguments)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function m(t){var e=d(t,"string");return"symbol"===f(e)?e:String(e)}function h(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function y(t){if(Array.isArray(t))return v(t)}function b(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function g(t,e){if(t){if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(t){if(Array.isArray(t))return t}function O(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(t,e){return E(t)||O(t,e)||g(t,e)||x()}var T=n.ComponentBase.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:{root:function(t){var e=t.classNameState;return a.classNames("p-tooltip p-component",h({},"p-tooltip-".concat(t.positionState),!0),e)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},styles:"\n@layer primereact {\n .p-tooltip {\n position: absolute;\n padding: .25em .5rem;\n /* #3687: Tooltip prevent scrollbar flickering */\n top: -9999px;\n left: -9999px;\n }\n \n .p-tooltip.p-tooltip-right,\n .p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n }\n \n .p-tooltip.p-tooltip-top,\n .p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n }\n \n .p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n }\n \n .p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n \n .p-tooltip-right .p-tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n }\n \n .p-tooltip-left .p-tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n }\n \n .p-tooltip.p-tooltip-top {\n padding: .25em 0;\n }\n \n .p-tooltip-top .p-tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n }\n \n .p-tooltip-bottom .p-tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n }\n\n .p-tooltip-target-wrapper {\n display: inline-flex;\n }\n}\n",inlineStyles:{arrow:function(t){var e=t.context;return{top:e.bottom?"0":e.right||e.left||!e.right&&!e.left&&!e.top&&!e.bottom?"50%":null,bottom:e.top?"0":null,left:!e.right&&(e.right||e.left||e.top||e.bottom)?e.top||e.bottom?"50%":null:"0",right:e.left?"0":null}}}}});function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function D(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var H=c.memo(c.forwardRef((function(t,e){var l=o.useMergeProps(),u=c.useContext(r.PrimeReactContext),f=T.getProps(t,u),d=S(c.useState(!1),2),m=d[0],h=d[1],v=S(c.useState(f.position||"right"),2),E=v[0],O=v[1],x=S(c.useState(""),2),j=x[0],H=x[1],P={props:f,state:{visible:m,position:E,className:j},context:{right:"right"===E,left:"left"===E,top:"top"===E,bottom:"bottom"===E}},I=T.setMetaData(P),k=I.ptm,N=I.cx,C=I.sx;n.useHandleStyle(T.css.styles,I.isUnstyled,{name:"tooltip"}),o.useGlobalOnEscapeKey({callback:function(){it()},when:f.closeOnEscape,priority:[o.ESC_KEY_HANDLING_PRIORITIES.TOOLTIP,0]});var A=c.useRef(null),L=c.useRef(null),R=c.useRef(null),U=c.useRef(null),M=c.useRef(!0),Z=c.useRef({}),_=c.useRef(null),W=S(o.useResizeListener({listener:function(t){!a.DomHandler.isTouchDevice()&&it(t)}}),2),B=W[0],z=W[1],F=S(o.useOverlayScrollListener({target:R.current,listener:function(t){it(t)},when:m}),2),Y=F[0],G=F[1],K=function(t){return J(t,"mousetrack")||f.mouseTrack},X=function(t){return"true"===J(t,"disabled")||Q(t,"disabled")||f.disabled},$=function(t){return J(t,"showondisabled")||f.showOnDisabled},q=function(){return J(R.current,"autohide")||f.autoHide},J=function(t,e){return Q(t,"data-pr-".concat(e))?t.getAttribute("data-pr-".concat(e)):null},Q=function(t,e){return t&&t.hasAttribute(e)},V=function(t){var e=[J(t,"showevent")||f.showEvent],r=[J(t,"hideevent")||f.hideEvent];if(K(t))e=["mousemove"],r=["mouseleave"];else{var n=J(t,"event")||f.event;"focus"===n&&(e=["focus"],r=["blur"]),"both"===n&&(e=["focus","mouseenter"],r=["blur","mouseleave"])}return{showEvents:e,hideEvents:r}},tt=function(t){return J(t,"position")||E},et=function(t){return{top:J(t,"mousetracktop")||f.mouseTrackTop,left:J(t,"mousetrackleft")||f.mouseTrackLeft}},rt=function(t,e){if(L.current){var r=J(t,"tooltip")||f.content;r?(L.current.innerHTML="",L.current.appendChild(document.createTextNode(r)),e()):f.children&&e()}},nt=function(t){rt(R.current,(function(){var e=_.current,r=e.pageX,n=e.pageY;f.autoZIndex&&!a.ZIndexUtils.get(A.current)&&a.ZIndexUtils.set("tooltip",A.current,u&&u.autoZIndex||s.default.autoZIndex,f.baseZIndex||u&&u.zIndex.tooltip||s.default.zIndex.tooltip),A.current.style.left="",A.current.style.top="",q()&&(A.current.style.pointerEvents="none");var o=K(R.current)||"mouse"===t;(o&&!U.current||o)&&(U.current={width:a.DomHandler.getOuterWidth(A.current),height:a.DomHandler.getOuterHeight(A.current)}),at(R.current,{x:r,y:n},t)}))},ot=function(t){R.current=t.currentTarget;var e,r=X(R.current);(e=$(R.current)&&r?R.current.firstChild:R.current,!(f.content||J(e,"tooltip")||f.children))||r||(_.current=t,m?pt("updateDelay",nt):ft(f.onBeforeShow,{originalEvent:t,target:R.current})&&pt("showDelay",(function(){h(!0),ft(f.onShow,{originalEvent:t,target:R.current})})))},it=function(t){(dt(),m)&&(ft(f.onBeforeHide,{originalEvent:t,target:R.current})&&pt("hideDelay",(function(){(q()||!1!==M.current)&&(a.ZIndexUtils.clear(A.current),a.DomHandler.removeClass(A.current,"p-tooltip-active"),h(!1),ft(f.onHide,{originalEvent:t,target:R.current}))})))},at=function(t,e,r){var n=0,o=0,i=r||E;if((K(t)||"mouse"==i)&&e){var l={width:a.DomHandler.getOuterWidth(A.current),height:a.DomHandler.getOuterHeight(A.current)};n=e.x,o=e.y;var u=et(t),c=u.top,s=u.left;switch(i){case"left":n-=l.width+s,o-=l.height/2-c;break;case"right":case"mouse":n+=s,o-=l.height/2-c;break;case"top":n-=l.width/2-s,o-=l.height+c;break;case"bottom":n-=l.width/2-s,o+=c}n<=0||U.current.width>l.width?(A.current.style.left="0px",A.current.style.right=window.innerWidth-l.width-n+"px"):(A.current.style.right="",A.current.style.left=n+"px"),A.current.style.top=o+"px",a.DomHandler.addClass(A.current,"p-tooltip-active")}else{var p=a.DomHandler.findCollisionPosition(i),d=J(t,"my")||f.my||p.my,m=J(t,"at")||f.at||p.at;A.current.style.padding="0px",a.DomHandler.flipfitCollision(A.current,t,d,m,(function(t){var e=t.at,r=e.x,n=f.at?"center"!==r&&r!==t.my.x?r:e.y:t.at["".concat(p.axis)];A.current.style.padding="",O(n),lt(n),a.DomHandler.addClass(A.current,"p-tooltip-active")}))}},lt=function(t){if(A.current){var e=getComputedStyle(A.current);"left"===t?A.current.style.left=parseFloat(e.left)-2*parseFloat(e.paddingLeft)+"px":"top"===t&&(A.current.style.top=parseFloat(e.top)-2*parseFloat(e.paddingTop)+"px")}},ut=function(t){q()||(M.current=!0,it(t))},ct=function(t){if(t){var e=V(t),r=e.showEvents,n=e.hideEvents,o=mt(t);r.forEach((function(t){return null==o?void 0:o.addEventListener(t,ot)})),n.forEach((function(t){return null==o?void 0:o.addEventListener(t,it)}))}},st=function(t){if(t){var e=V(t),r=e.showEvents,n=e.hideEvents,o=mt(t);r.forEach((function(t){return null==o?void 0:o.removeEventListener(t,ot)})),n.forEach((function(t){return null==o?void 0:o.removeEventListener(t,it)}))}},pt=function(t,e){dt();var r=J(R.current,t.toLowerCase())||f[t];r?Z.current["".concat(t)]=setTimeout((function(){return e()}),r):e()},ft=function(t){if(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.apply(void 0,r);return void 0===o&&(o=!0),o}return!0},dt=function(){Object.values(Z.current).forEach((function(t){return clearTimeout(t)}))},mt=function(t){if(t){if($(t)){if(!t.hasWrapper){var e=document.createElement("div");return"INPUT"===t.nodeName?a.DomHandler.addMultipleClasses(e,"p-tooltip-target-wrapper p-inputwrapper"):a.DomHandler.addClass(e,"p-tooltip-target-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t),t.hasWrapper=!0,e}return t.parentElement}var r;return t.hasWrapper&&((r=t.parentElement).replaceWith.apply(r,y(n=t.parentElement.childNodes)||b(n)||g(n)||w()),delete t.hasWrapper),t}var n;return null},ht=function(t){yt(t),vt(t)},vt=function(t){bt(t||f.target,ct)},yt=function(t){bt(t||f.target,st)},bt=function(t,e){if(t=a.ObjectUtils.getRefElement(t))if(a.DomHandler.isElement(t))e(t);else{var r=function(t){a.DomHandler.find(document,t).forEach((function(t){e(t)}))};t instanceof Array?t.forEach((function(t){r(t)})):r(t)}};o.useMountEffect((function(){m&&R.current&&X(R.current)&&it()})),o.useUpdateEffect((function(){return vt(),function(){yt()}}),[ot,it,f.target]),o.useUpdateEffect((function(){if(m){var t=tt(R.current),e=J(R.current,"classname");O(t),H(e),nt(t),B(),Y()}else O(f.position||"right"),H(""),R.current=null,U.current=null,M.current=!0;return function(){z(),G()}}),[m]),o.useUpdateEffect((function(){var t=tt(R.current);m&&"mouse"!==t&&pt("updateDelay",(function(){rt(R.current,(function(){at(R.current)}))}))}),[f.content]),o.useUnmountEffect((function(){it(),a.ZIndexUtils.clear(A.current)})),c.useImperativeHandle(e,(function(){return{props:f,updateTargetEvents:ht,loadTargetEvents:vt,unloadTargetEvents:yt,show:ot,hide:it,getElement:function(){return A.current},getTarget:function(){return R.current}}}));var gt,wt,Et,Ot,xt;if(m){var St=(gt=R.current,wt=!(f.content||J(gt,"tooltip")),Et=l({id:f.id,className:a.classNames(f.className,N("root",{positionState:E,classNameState:j})),style:f.style,role:"tooltip","aria-hidden":m,onMouseEnter:function(t){q()||(M.current=!1)},onMouseLeave:function(t){return ut(t)}},T.getOtherProps(f),k("root")),Ot=l({className:N("arrow"),style:C("arrow",D({},P))},k("arrow")),xt=l({className:N("text")},k("text")),c.createElement("div",p({ref:A},Et),c.createElement("div",Ot),c.createElement("div",p({ref:L},xt),wt&&f.children)));return c.createElement(i.Portal,{element:St,appendTo:f.appendTo,visible:!0})}return null})));return H.displayName="Tooltip",t.Tooltip=H,Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.portal,primereact.utils);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.tooltip=function(t,e,r,n,o,i,a){"use strict";function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function u(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var c=u(e),s=l(r);function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},p.apply(null,arguments)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function m(t){var e=d(t,"string");return"symbol"==f(e)?e:e+""}function h(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function y(t){if(Array.isArray(t))return v(t)}function b(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function g(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(t){if(Array.isArray(t))return t}function O(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(t,e){return E(t)||O(t,e)||g(t,e)||x()}var T=n.ComponentBase.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:{root:function(t){var e=t.classNameState;return a.classNames("p-tooltip p-component",h({},"p-tooltip-".concat(t.positionState),!0),e)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},styles:"\n@layer primereact {\n .p-tooltip {\n position: absolute;\n padding: .25em .5rem;\n /* #3687: Tooltip prevent scrollbar flickering */\n top: -9999px;\n left: -9999px;\n }\n \n .p-tooltip.p-tooltip-right,\n .p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n }\n \n .p-tooltip.p-tooltip-top,\n .p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n }\n \n .p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n }\n \n .p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n \n .p-tooltip-right .p-tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n }\n \n .p-tooltip-left .p-tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n }\n \n .p-tooltip.p-tooltip-top {\n padding: .25em 0;\n }\n \n .p-tooltip-top .p-tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n }\n \n .p-tooltip-bottom .p-tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n }\n\n .p-tooltip-target-wrapper {\n display: inline-flex;\n }\n}\n",inlineStyles:{arrow:function(t){var e=t.context;return{top:e.bottom?"0":e.right||e.left||!e.right&&!e.left&&!e.top&&!e.bottom?"50%":null,bottom:e.top?"0":null,left:!e.right&&(e.right||e.left||e.top||e.bottom)?e.top||e.bottom?"50%":null:"0",right:e.left?"0":null}}}}});function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var H=c.memo(c.forwardRef((function(t,e){var l=o.useMergeProps(),u=c.useContext(r.PrimeReactContext),f=T.getProps(t,u),d=S(c.useState(!1),2),m=d[0],h=d[1],v=S(c.useState(f.position||"right"),2),E=v[0],O=v[1],x=S(c.useState(""),2),D=x[0],H=x[1],P=S(c.useState(!1),2),I=P[0],k=P[1],N={props:f,state:{visible:m,position:E,className:D},context:{right:"right"===E,left:"left"===E,top:"top"===E,bottom:"bottom"===E}},C=T.setMetaData(N),A=C.ptm,L=C.cx,R=C.sx;n.useHandleStyle(T.css.styles,C.isUnstyled,{name:"tooltip"}),o.useGlobalOnEscapeKey({callback:function(){ut()},when:f.closeOnEscape,priority:[o.ESC_KEY_HANDLING_PRIORITIES.TOOLTIP,0]});var U=c.useRef(null),M=c.useRef(null),Z=c.useRef(null),_=c.useRef(null),W=c.useRef(!0),B=c.useRef({}),z=c.useRef(null),F=S(o.useResizeListener({listener:function(t){!a.DomHandler.isTouchDevice()&&ut(t)}}),2),Y=F[0],G=F[1],K=S(o.useOverlayScrollListener({target:Z.current,listener:function(t){ut(t)},when:m}),2),X=K[0],$=K[1],q=function(t){return tt(t,"mousetrack")||f.mouseTrack},J=function(t){return"true"===tt(t,"disabled")||et(t,"disabled")||f.disabled},Q=function(t){return tt(t,"showondisabled")||f.showOnDisabled},V=function(){return tt(Z.current,"autohide")||f.autoHide},tt=function(t,e){return et(t,"data-pr-".concat(e))?t.getAttribute("data-pr-".concat(e)):null},et=function(t,e){return t&&t.hasAttribute(e)},rt=function(t){var e=[tt(t,"showevent")||f.showEvent],r=[tt(t,"hideevent")||f.hideEvent];if(q(t))e=["mousemove"],r=["mouseleave"];else{var n=tt(t,"event")||f.event;"focus"===n&&(e=["focus"],r=["blur"]),"both"===n&&(e=["focus","mouseenter"],r=I?["blur"]:["mouseleave","blur"])}return{showEvents:e,hideEvents:r}},nt=function(t){return tt(t,"position")||E},ot=function(t){return{top:tt(t,"mousetracktop")||f.mouseTrackTop,left:tt(t,"mousetrackleft")||f.mouseTrackLeft}},it=function(t,e){if(M.current){var r=tt(t,"tooltip")||f.content;r?(M.current.innerHTML="",M.current.appendChild(document.createTextNode(r)),e()):f.children&&e()}},at=function(t){it(Z.current,(function(){var e=z.current,r=e.pageX,n=e.pageY;f.autoZIndex&&!a.ZIndexUtils.get(U.current)&&a.ZIndexUtils.set("tooltip",U.current,u&&u.autoZIndex||s.default.autoZIndex,f.baseZIndex||u&&u.zIndex.tooltip||s.default.zIndex.tooltip),U.current.style.left="",U.current.style.top="",V()&&(U.current.style.pointerEvents="none");var o=q(Z.current)||"mouse"===t;(o&&!_.current||o)&&(_.current={width:a.DomHandler.getOuterWidth(U.current),height:a.DomHandler.getOuterHeight(U.current)}),ct(Z.current,{x:r,y:n},t)}))},lt=function(t){t.type&&"focus"===t.type&&k(!0),Z.current=t.currentTarget;var e,r=J(Z.current);(e=Q(Z.current)&&r?Z.current.firstChild:Z.current,!(f.content||tt(e,"tooltip")||f.children))||r||(z.current=t,m?mt("updateDelay",at):ht(f.onBeforeShow,{originalEvent:t,target:Z.current})&&mt("showDelay",(function(){h(!0),ht(f.onShow,{originalEvent:t,target:Z.current})})))},ut=function(t){(t&&"blur"===t.type&&k(!1),vt(),m)&&(ht(f.onBeforeHide,{originalEvent:t,target:Z.current})&&mt("hideDelay",(function(){(V()||!1!==W.current)&&(a.ZIndexUtils.clear(U.current),a.DomHandler.removeClass(U.current,"p-tooltip-active"),h(!1),ht(f.onHide,{originalEvent:t,target:Z.current}))})))},ct=function(t,e,r){var n=0,o=0,i=r||E;if((q(t)||"mouse"==i)&&e){var l={width:a.DomHandler.getOuterWidth(U.current),height:a.DomHandler.getOuterHeight(U.current)};n=e.x,o=e.y;var u=ot(t),c=u.top,s=u.left;switch(i){case"left":n-=l.width+s,o-=l.height/2-c;break;case"right":case"mouse":n+=s,o-=l.height/2-c;break;case"top":n-=l.width/2-s,o-=l.height+c;break;case"bottom":n-=l.width/2-s,o+=c}n<=0||_.current.width>l.width?(U.current.style.left="0px",U.current.style.right=window.innerWidth-l.width-n+"px"):(U.current.style.right="",U.current.style.left=n+"px"),U.current.style.top=o+"px",a.DomHandler.addClass(U.current,"p-tooltip-active")}else{var p=a.DomHandler.findCollisionPosition(i),d=tt(t,"my")||f.my||p.my,m=tt(t,"at")||f.at||p.at;U.current.style.padding="0px",a.DomHandler.flipfitCollision(U.current,t,d,m,(function(t){var e=t.at,r=e.x,n=f.at?"center"!==r&&r!==t.my.x?r:e.y:t.at["".concat(p.axis)];U.current.style.padding="",O(n),st(n),a.DomHandler.addClass(U.current,"p-tooltip-active")}))}},st=function(t){if(U.current){var e=getComputedStyle(U.current);"left"===t?U.current.style.left=parseFloat(e.left)-2*parseFloat(e.paddingLeft)+"px":"top"===t&&(U.current.style.top=parseFloat(e.top)-2*parseFloat(e.paddingTop)+"px")}},pt=function(t){V()||(W.current=!0,ut(t))},ft=function(t){if(t){var e=rt(t),r=e.showEvents,n=e.hideEvents,o=yt(t);r.forEach((function(t){return null==o?void 0:o.addEventListener(t,lt)})),n.forEach((function(t){return null==o?void 0:o.addEventListener(t,ut)}))}},dt=function(t){if(t){var e=rt(t),r=e.showEvents,n=e.hideEvents,o=yt(t);r.forEach((function(t){return null==o?void 0:o.removeEventListener(t,lt)})),n.forEach((function(t){return null==o?void 0:o.removeEventListener(t,ut)}))}},mt=function(t,e){vt();var r=tt(Z.current,t.toLowerCase())||f[t];r?B.current["".concat(t)]=setTimeout((function(){return e()}),r):e()},ht=function(t){if(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.apply(void 0,r);return void 0===o&&(o=!0),o}return!0},vt=function(){Object.values(B.current).forEach((function(t){return clearTimeout(t)}))},yt=function(t){if(t){if(Q(t)){if(!t.hasWrapper){var e=document.createElement("div");return"INPUT"===t.nodeName?a.DomHandler.addMultipleClasses(e,"p-tooltip-target-wrapper p-inputwrapper"):a.DomHandler.addClass(e,"p-tooltip-target-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t),t.hasWrapper=!0,e}return t.parentElement}var r;return t.hasWrapper&&((r=t.parentElement).replaceWith.apply(r,y(n=t.parentElement.childNodes)||b(n)||g(n)||w()),delete t.hasWrapper),t}var n;return null},bt=function(t){wt(t),gt(t)},gt=function(t){Et(t||f.target,ft)},wt=function(t){Et(t||f.target,dt)},Et=function(t,e){if(t=a.ObjectUtils.getRefElement(t))if(a.DomHandler.isElement(t))e(t);else{var r=function(t){a.DomHandler.find(document,t).forEach((function(t){e(t)}))};t instanceof Array?t.forEach((function(t){r(t)})):r(t)}};o.useMountEffect((function(){m&&Z.current&&J(Z.current)&&ut()})),o.useUpdateEffect((function(){return gt(),function(){wt()}}),[lt,ut,f.target]),o.useUpdateEffect((function(){if(m){var t=nt(Z.current),e=tt(Z.current,"classname");O(t),H(e),at(t),Y(),X()}else O(f.position||"right"),H(""),Z.current=null,_.current=null,W.current=!0;return function(){G(),$()}}),[m]),o.useUpdateEffect((function(){var t=nt(Z.current);m&&"mouse"!==t&&mt("updateDelay",(function(){it(Z.current,(function(){ct(Z.current)}))}))}),[f.content]),o.useUnmountEffect((function(){ut(),a.ZIndexUtils.clear(U.current)})),c.useImperativeHandle(e,(function(){return{props:f,updateTargetEvents:bt,loadTargetEvents:gt,unloadTargetEvents:wt,show:lt,hide:ut,getElement:function(){return U.current},getTarget:function(){return Z.current}}}));var Ot,xt,St,Tt,Dt;if(m){var jt=(Ot=Z.current,xt=!(f.content||tt(Ot,"tooltip")),St=l({id:f.id,className:a.classNames(f.className,L("root",{positionState:E,classNameState:D})),style:f.style,role:"tooltip","aria-hidden":m,onMouseEnter:function(t){V()||(W.current=!1)},onMouseLeave:function(t){return pt(t)}},T.getOtherProps(f),A("root")),Tt=l({className:L("arrow"),style:R("arrow",j({},N))},A("arrow")),Dt=l({className:L("text")},A("text")),c.createElement("div",p({ref:U},St),c.createElement("div",Tt),c.createElement("div",p({ref:M},Dt),xt&&f.children)));return c.createElement(i.Portal,{element:jt,appendTo:f.appendTo,visible:!0})}return null})));return H.displayName="Tooltip",t.Tooltip=H,Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.portal,primereact.utils);
|
package/tree/tree.cjs.js
CHANGED
|
@@ -38,49 +38,43 @@ function _interopNamespace(e) {
|
|
|
38
38
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
39
39
|
|
|
40
40
|
function _extends() {
|
|
41
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
42
|
-
for (var
|
|
43
|
-
var
|
|
44
|
-
for (var
|
|
45
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
46
|
-
target[key] = source[key];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
41
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
42
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
43
|
+
var t = arguments[e];
|
|
44
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
49
45
|
}
|
|
50
|
-
return
|
|
51
|
-
};
|
|
52
|
-
return _extends.apply(this, arguments);
|
|
46
|
+
return n;
|
|
47
|
+
}, _extends.apply(null, arguments);
|
|
53
48
|
}
|
|
54
49
|
|
|
55
|
-
function _arrayLikeToArray$2(
|
|
56
|
-
|
|
57
|
-
for (var
|
|
58
|
-
return
|
|
50
|
+
function _arrayLikeToArray$2(r, a) {
|
|
51
|
+
(null == a || a > r.length) && (a = r.length);
|
|
52
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
53
|
+
return n;
|
|
59
54
|
}
|
|
60
55
|
|
|
61
|
-
function _arrayWithoutHoles(
|
|
62
|
-
if (Array.isArray(
|
|
56
|
+
function _arrayWithoutHoles(r) {
|
|
57
|
+
if (Array.isArray(r)) return _arrayLikeToArray$2(r);
|
|
63
58
|
}
|
|
64
59
|
|
|
65
|
-
function _iterableToArray(
|
|
66
|
-
if (typeof Symbol
|
|
60
|
+
function _iterableToArray(r) {
|
|
61
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
67
62
|
}
|
|
68
63
|
|
|
69
|
-
function _unsupportedIterableToArray$2(
|
|
70
|
-
if (
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
|
|
64
|
+
function _unsupportedIterableToArray$2(r, a) {
|
|
65
|
+
if (r) {
|
|
66
|
+
if ("string" == typeof r) return _arrayLikeToArray$2(r, a);
|
|
67
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
68
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0;
|
|
69
|
+
}
|
|
76
70
|
}
|
|
77
71
|
|
|
78
72
|
function _nonIterableSpread() {
|
|
79
73
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
80
74
|
}
|
|
81
75
|
|
|
82
|
-
function _toConsumableArray(
|
|
83
|
-
return _arrayWithoutHoles(
|
|
76
|
+
function _toConsumableArray(r) {
|
|
77
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$2(r) || _nonIterableSpread();
|
|
84
78
|
}
|
|
85
79
|
|
|
86
80
|
function _typeof(o) {
|
|
@@ -93,39 +87,33 @@ function _typeof(o) {
|
|
|
93
87
|
}, _typeof(o);
|
|
94
88
|
}
|
|
95
89
|
|
|
96
|
-
function
|
|
97
|
-
if (
|
|
98
|
-
var
|
|
99
|
-
if (
|
|
100
|
-
var
|
|
101
|
-
if (
|
|
90
|
+
function toPrimitive(t, r) {
|
|
91
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
92
|
+
var e = t[Symbol.toPrimitive];
|
|
93
|
+
if (void 0 !== e) {
|
|
94
|
+
var i = e.call(t, r || "default");
|
|
95
|
+
if ("object" != _typeof(i)) return i;
|
|
102
96
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
103
97
|
}
|
|
104
|
-
return (
|
|
98
|
+
return ("string" === r ? String : Number)(t);
|
|
105
99
|
}
|
|
106
100
|
|
|
107
|
-
function
|
|
108
|
-
var
|
|
109
|
-
return _typeof(
|
|
101
|
+
function toPropertyKey(t) {
|
|
102
|
+
var i = toPrimitive(t, "string");
|
|
103
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
110
104
|
}
|
|
111
105
|
|
|
112
|
-
function _defineProperty(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
writable: true
|
|
120
|
-
});
|
|
121
|
-
} else {
|
|
122
|
-
obj[key] = value;
|
|
123
|
-
}
|
|
124
|
-
return obj;
|
|
106
|
+
function _defineProperty(e, r, t) {
|
|
107
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
108
|
+
value: t,
|
|
109
|
+
enumerable: !0,
|
|
110
|
+
configurable: !0,
|
|
111
|
+
writable: !0
|
|
112
|
+
}) : e[r] = t, e;
|
|
125
113
|
}
|
|
126
114
|
|
|
127
|
-
function _arrayWithHoles(
|
|
128
|
-
if (Array.isArray(
|
|
115
|
+
function _arrayWithHoles(r) {
|
|
116
|
+
if (Array.isArray(r)) return r;
|
|
129
117
|
}
|
|
130
118
|
|
|
131
119
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -160,8 +148,8 @@ function _nonIterableRest() {
|
|
|
160
148
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
161
149
|
}
|
|
162
150
|
|
|
163
|
-
function _slicedToArray(
|
|
164
|
-
return _arrayWithHoles(
|
|
151
|
+
function _slicedToArray(r, e) {
|
|
152
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest();
|
|
165
153
|
}
|
|
166
154
|
|
|
167
155
|
/* eslint-disable */
|
|
@@ -338,7 +326,7 @@ var CheckboxBase = componentbase.ComponentBase.extend({
|
|
|
338
326
|
|
|
339
327
|
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; }
|
|
340
328
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
341
|
-
var Checkbox = /*#__PURE__*/React__namespace.memo(
|
|
329
|
+
var Checkbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
342
330
|
var mergeProps = hooks.useMergeProps();
|
|
343
331
|
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
344
332
|
var props = CheckboxBase.getProps(inProps, context);
|
|
@@ -507,9 +495,9 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
507
495
|
}));
|
|
508
496
|
Checkbox.displayName = 'Checkbox';
|
|
509
497
|
|
|
510
|
-
function _createForOfIteratorHelper$1(
|
|
511
|
-
function _unsupportedIterableToArray$1(
|
|
512
|
-
function _arrayLikeToArray$1(
|
|
498
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
499
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
500
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
513
501
|
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; }
|
|
514
502
|
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; }
|
|
515
503
|
var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
@@ -593,17 +581,17 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
593
581
|
}
|
|
594
582
|
return null;
|
|
595
583
|
};
|
|
596
|
-
var
|
|
584
|
+
var _findNextSiblingOfAncestor = function findNextSiblingOfAncestor(nodeElement) {
|
|
597
585
|
var parentNodeElement = getParentNodeElement(nodeElement);
|
|
598
|
-
return parentNodeElement ? findNextNonDroppointSibling(parentNodeElement) ||
|
|
586
|
+
return parentNodeElement ? findNextNonDroppointSibling(parentNodeElement) || _findNextSiblingOfAncestor(parentNodeElement) : null;
|
|
599
587
|
};
|
|
600
|
-
var
|
|
588
|
+
var _findLastVisibleDescendant = function findLastVisibleDescendant(nodeElement) {
|
|
601
589
|
var childrenListElement = nodeElement.children[1];
|
|
602
590
|
if (childrenListElement) {
|
|
603
591
|
//skip droppoint
|
|
604
592
|
var offset = props.dragdropScope ? 2 : 1;
|
|
605
593
|
var lastChildElement = childrenListElement.children[childrenListElement.children.length - offset];
|
|
606
|
-
return
|
|
594
|
+
return _findLastVisibleDescendant(lastChildElement);
|
|
607
595
|
}
|
|
608
596
|
return nodeElement;
|
|
609
597
|
};
|
|
@@ -632,7 +620,7 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
632
620
|
selectionKeys = props.selectionKeys ? _objectSpread$1({}, props.selectionKeys) : {};
|
|
633
621
|
if (checked) {
|
|
634
622
|
if (props.propagateSelectionDown) {
|
|
635
|
-
|
|
623
|
+
_propagateDown(props.node, false, selectionKeys);
|
|
636
624
|
} else {
|
|
637
625
|
delete selectionKeys[props.node.key];
|
|
638
626
|
}
|
|
@@ -651,7 +639,7 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
651
639
|
}
|
|
652
640
|
} else {
|
|
653
641
|
if (props.propagateSelectionDown) {
|
|
654
|
-
|
|
642
|
+
_propagateDown(props.node, true, selectionKeys);
|
|
655
643
|
} else {
|
|
656
644
|
selectionKeys[props.node.key] = {
|
|
657
645
|
checked: true
|
|
@@ -816,7 +804,7 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
816
804
|
} else if (nextElement) {
|
|
817
805
|
focusRowChange(nodeElement, nextElement);
|
|
818
806
|
} else {
|
|
819
|
-
var nextSiblingAncestor =
|
|
807
|
+
var nextSiblingAncestor = _findNextSiblingOfAncestor(nodeElement);
|
|
820
808
|
if (nextSiblingAncestor) {
|
|
821
809
|
focusRowChange(nodeElement, nextSiblingAncestor);
|
|
822
810
|
}
|
|
@@ -841,7 +829,7 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
841
829
|
var nodeElement = event.target;
|
|
842
830
|
var previous = getPreviousElement(nodeElement);
|
|
843
831
|
if (previous) {
|
|
844
|
-
focusRowChange(nodeElement, previous,
|
|
832
|
+
focusRowChange(nodeElement, previous, _findLastVisibleDescendant(previous));
|
|
845
833
|
} else {
|
|
846
834
|
var parentNodeElement = getParentNodeElement(nodeElement);
|
|
847
835
|
if (parentNodeElement) {
|
|
@@ -866,7 +854,7 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
866
854
|
togglerElement.click();
|
|
867
855
|
return false;
|
|
868
856
|
}
|
|
869
|
-
var target =
|
|
857
|
+
var target = _findBeforeClickableNode(event.currentTarget);
|
|
870
858
|
if (target) {
|
|
871
859
|
focusRowChange(event.currentTarget, target);
|
|
872
860
|
}
|
|
@@ -912,14 +900,14 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
912
900
|
currentFocusedRow.tabIndex = '0';
|
|
913
901
|
focusNode(lastVisibleDescendant || currentFocusedRow);
|
|
914
902
|
};
|
|
915
|
-
var
|
|
903
|
+
var _findBeforeClickableNode = function findBeforeClickableNode(node) {
|
|
916
904
|
var parentListElement = node.closest('ul').closest('li');
|
|
917
905
|
if (parentListElement) {
|
|
918
906
|
var prevNodeButton = utils.DomHandler.findSingle(parentListElement, 'button');
|
|
919
907
|
if (prevNodeButton && prevNodeButton.style.visibility !== 'hidden') {
|
|
920
908
|
return parentListElement;
|
|
921
909
|
}
|
|
922
|
-
return
|
|
910
|
+
return _findBeforeClickableNode(node.previousElementSibling);
|
|
923
911
|
}
|
|
924
912
|
return null;
|
|
925
913
|
};
|
|
@@ -971,7 +959,7 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
971
959
|
props.onPropagateUp(event);
|
|
972
960
|
}
|
|
973
961
|
};
|
|
974
|
-
var
|
|
962
|
+
var _propagateDown = function propagateDown(node, check, selectionKeys) {
|
|
975
963
|
if (check) {
|
|
976
964
|
selectionKeys[node.key] = {
|
|
977
965
|
checked: true,
|
|
@@ -982,7 +970,7 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
982
970
|
}
|
|
983
971
|
if (node.children && node.children.length) {
|
|
984
972
|
for (var i = 0; i < node.children.length; i++) {
|
|
985
|
-
|
|
973
|
+
_propagateDown(node.children[i], check, selectionKeys);
|
|
986
974
|
}
|
|
987
975
|
}
|
|
988
976
|
};
|
|
@@ -1163,7 +1151,7 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1163
1151
|
type: 'button',
|
|
1164
1152
|
className: cx('toggler'),
|
|
1165
1153
|
tabIndex: -1,
|
|
1166
|
-
'aria-hidden':
|
|
1154
|
+
'aria-hidden': false,
|
|
1167
1155
|
onClick: onTogglerClick
|
|
1168
1156
|
}, getPTOptions('toggler'));
|
|
1169
1157
|
var content = /*#__PURE__*/React__namespace.createElement("button", togglerProps, togglerIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
@@ -1316,10 +1304,10 @@ UITreeNode.displayName = 'UITreeNode';
|
|
|
1316
1304
|
|
|
1317
1305
|
function ownKeys(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; }
|
|
1318
1306
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1319
|
-
function _createForOfIteratorHelper(
|
|
1320
|
-
function _unsupportedIterableToArray(
|
|
1321
|
-
function _arrayLikeToArray(
|
|
1322
|
-
var Tree = /*#__PURE__*/React__namespace.memo(
|
|
1307
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
1308
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
1309
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1310
|
+
var Tree = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
1323
1311
|
var mergeProps = hooks.useMergeProps();
|
|
1324
1312
|
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
1325
1313
|
var props = TreeBase.getProps(inProps, context);
|
|
@@ -1412,16 +1400,16 @@ var Tree = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.for
|
|
|
1412
1400
|
* Deep copy a value. If the value has a data property, it will be shallow copied.
|
|
1413
1401
|
* Values that are not plain objects or arrays are returned as-is.
|
|
1414
1402
|
*/
|
|
1415
|
-
var
|
|
1403
|
+
var _cloneValue = function cloneValue(value) {
|
|
1416
1404
|
if (Array.isArray(value)) {
|
|
1417
|
-
return value.map(
|
|
1405
|
+
return value.map(_cloneValue);
|
|
1418
1406
|
} else if (!!value && Object.getPrototypeOf(value) === Object.prototype) {
|
|
1419
1407
|
var result = {};
|
|
1420
1408
|
|
|
1421
1409
|
// Leave data property alone and clone children
|
|
1422
1410
|
for (var key in value) {
|
|
1423
1411
|
if (key !== 'data') {
|
|
1424
|
-
result[key] =
|
|
1412
|
+
result[key] = _cloneValue(value[key]);
|
|
1425
1413
|
} else {
|
|
1426
1414
|
result[key] = value[key];
|
|
1427
1415
|
}
|
|
@@ -1433,12 +1421,12 @@ var Tree = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.for
|
|
|
1433
1421
|
var onDrop = function onDrop(event) {
|
|
1434
1422
|
var _dragState$current;
|
|
1435
1423
|
if (validateDropNode((_dragState$current = dragState.current) === null || _dragState$current === void 0 ? void 0 : _dragState$current.path, event.path)) {
|
|
1436
|
-
var value =
|
|
1424
|
+
var value = _cloneValue(props.value);
|
|
1437
1425
|
var dragPaths = dragState.current.path.split('-');
|
|
1438
1426
|
dragPaths.pop();
|
|
1439
|
-
var dragNodeParent =
|
|
1427
|
+
var dragNodeParent = _findNode(value, dragPaths);
|
|
1440
1428
|
var dragNode = dragNodeParent ? dragNodeParent.children[dragState.current.index] : value[dragState.current.index];
|
|
1441
|
-
var dropNode =
|
|
1429
|
+
var dropNode = _findNode(value, event.path.split('-'));
|
|
1442
1430
|
if (dropNode.children) {
|
|
1443
1431
|
dropNode.children.push(dragNode);
|
|
1444
1432
|
} else {
|
|
@@ -1462,13 +1450,13 @@ var Tree = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.for
|
|
|
1462
1450
|
};
|
|
1463
1451
|
var onDropPoint = function onDropPoint(event) {
|
|
1464
1452
|
if (validateDropPoint(event)) {
|
|
1465
|
-
var value =
|
|
1453
|
+
var value = _cloneValue(props.value);
|
|
1466
1454
|
var dragPaths = dragState.current.path.split('-');
|
|
1467
1455
|
dragPaths.pop();
|
|
1468
1456
|
var dropPaths = event.path.split('-');
|
|
1469
1457
|
dropPaths.pop();
|
|
1470
|
-
var dragNodeParent =
|
|
1471
|
-
var dropNodeParent =
|
|
1458
|
+
var dragNodeParent = _findNode(value, dragPaths);
|
|
1459
|
+
var dropNodeParent = _findNode(value, dropPaths);
|
|
1472
1460
|
var dragNode = dragNodeParent ? dragNodeParent.children[dragState.current.index] : value[dragState.current.index];
|
|
1473
1461
|
var siblings = areSiblings(dragState.current.path, event.path);
|
|
1474
1462
|
if (dragNodeParent) {
|
|
@@ -1544,7 +1532,7 @@ var Tree = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.for
|
|
|
1544
1532
|
}
|
|
1545
1533
|
return path1.substring(0, path1.lastIndexOf('-')) === path2.substring(0, path2.lastIndexOf('-'));
|
|
1546
1534
|
};
|
|
1547
|
-
var
|
|
1535
|
+
var _findNode = function findNode(value, path) {
|
|
1548
1536
|
if (path.length === 0) {
|
|
1549
1537
|
return null;
|
|
1550
1538
|
}
|
|
@@ -1554,7 +1542,7 @@ var Tree = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.for
|
|
|
1554
1542
|
return nextSearchRoot;
|
|
1555
1543
|
}
|
|
1556
1544
|
path.shift();
|
|
1557
|
-
return
|
|
1545
|
+
return _findNode(nextSearchRoot, path);
|
|
1558
1546
|
};
|
|
1559
1547
|
var isNodeLeaf = function isNodeLeaf(node) {
|
|
1560
1548
|
return node.leaf === false ? false : !(node.children && node.children.length);
|