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
|
@@ -13,53 +13,47 @@ import { SearchIcon } from 'primereact/icons/search';
|
|
|
13
13
|
import { Ripple } from 'primereact/ripple';
|
|
14
14
|
|
|
15
15
|
function _extends() {
|
|
16
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
17
|
-
for (var
|
|
18
|
-
var
|
|
19
|
-
for (var
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
21
|
-
target[key] = source[key];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
16
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
17
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
18
|
+
var t = arguments[e];
|
|
19
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
24
20
|
}
|
|
25
|
-
return
|
|
26
|
-
};
|
|
27
|
-
return _extends.apply(this, arguments);
|
|
21
|
+
return n;
|
|
22
|
+
}, _extends.apply(null, arguments);
|
|
28
23
|
}
|
|
29
24
|
|
|
30
|
-
function _arrayLikeToArray(
|
|
31
|
-
|
|
32
|
-
for (var
|
|
33
|
-
return
|
|
25
|
+
function _arrayLikeToArray(r, a) {
|
|
26
|
+
(null == a || a > r.length) && (a = r.length);
|
|
27
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
28
|
+
return n;
|
|
34
29
|
}
|
|
35
30
|
|
|
36
|
-
function _arrayWithoutHoles(
|
|
37
|
-
if (Array.isArray(
|
|
31
|
+
function _arrayWithoutHoles(r) {
|
|
32
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
38
33
|
}
|
|
39
34
|
|
|
40
|
-
function _iterableToArray(
|
|
41
|
-
if (typeof Symbol
|
|
35
|
+
function _iterableToArray(r) {
|
|
36
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
42
37
|
}
|
|
43
38
|
|
|
44
|
-
function _unsupportedIterableToArray(
|
|
45
|
-
if (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
39
|
+
function _unsupportedIterableToArray(r, a) {
|
|
40
|
+
if (r) {
|
|
41
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
42
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
43
|
+
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;
|
|
44
|
+
}
|
|
51
45
|
}
|
|
52
46
|
|
|
53
47
|
function _nonIterableSpread() {
|
|
54
48
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
55
49
|
}
|
|
56
50
|
|
|
57
|
-
function _toConsumableArray(
|
|
58
|
-
return _arrayWithoutHoles(
|
|
51
|
+
function _toConsumableArray(r) {
|
|
52
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
59
53
|
}
|
|
60
54
|
|
|
61
|
-
function _arrayWithHoles(
|
|
62
|
-
if (Array.isArray(
|
|
55
|
+
function _arrayWithHoles(r) {
|
|
56
|
+
if (Array.isArray(r)) return r;
|
|
63
57
|
}
|
|
64
58
|
|
|
65
59
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -94,8 +88,8 @@ function _nonIterableRest() {
|
|
|
94
88
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
95
89
|
}
|
|
96
90
|
|
|
97
|
-
function _slicedToArray(
|
|
98
|
-
return _arrayWithHoles(
|
|
91
|
+
function _slicedToArray(r, e) {
|
|
92
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
99
93
|
}
|
|
100
94
|
|
|
101
95
|
var classes = {
|
|
@@ -332,40 +326,34 @@ function _typeof(o) {
|
|
|
332
326
|
}, _typeof(o);
|
|
333
327
|
}
|
|
334
328
|
|
|
335
|
-
function
|
|
336
|
-
if (
|
|
337
|
-
var
|
|
338
|
-
if (
|
|
339
|
-
var
|
|
340
|
-
if (
|
|
329
|
+
function toPrimitive(t, r) {
|
|
330
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
331
|
+
var e = t[Symbol.toPrimitive];
|
|
332
|
+
if (void 0 !== e) {
|
|
333
|
+
var i = e.call(t, r || "default");
|
|
334
|
+
if ("object" != _typeof(i)) return i;
|
|
341
335
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
342
336
|
}
|
|
343
|
-
return (
|
|
337
|
+
return ("string" === r ? String : Number)(t);
|
|
344
338
|
}
|
|
345
339
|
|
|
346
|
-
function
|
|
347
|
-
var
|
|
348
|
-
return _typeof(
|
|
340
|
+
function toPropertyKey(t) {
|
|
341
|
+
var i = toPrimitive(t, "string");
|
|
342
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
349
343
|
}
|
|
350
344
|
|
|
351
|
-
function _defineProperty(
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
writable: true
|
|
359
|
-
});
|
|
360
|
-
} else {
|
|
361
|
-
obj[key] = value;
|
|
362
|
-
}
|
|
363
|
-
return obj;
|
|
345
|
+
function _defineProperty(e, r, t) {
|
|
346
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
347
|
+
value: t,
|
|
348
|
+
enumerable: !0,
|
|
349
|
+
configurable: !0,
|
|
350
|
+
writable: !0
|
|
351
|
+
}) : e[r] = t, e;
|
|
364
352
|
}
|
|
365
353
|
|
|
366
354
|
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; }
|
|
367
355
|
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; }
|
|
368
|
-
var OrderListSubList = /*#__PURE__*/React.memo(
|
|
356
|
+
var OrderListSubList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
369
357
|
var mergeProps = useMergeProps();
|
|
370
358
|
var ptm = props.ptm,
|
|
371
359
|
cx = props.cx;
|
|
@@ -520,7 +508,7 @@ var OrderListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fu
|
|
|
520
508
|
if (i === 0) {
|
|
521
509
|
items.push(createDropPoint(item, i));
|
|
522
510
|
}
|
|
523
|
-
items.push(
|
|
511
|
+
items.push(/*#__PURE__*/React.createElement("li", _extends({
|
|
524
512
|
key: key
|
|
525
513
|
}, _itemProps), content));
|
|
526
514
|
items.push(createDropPoint(i, key + '_droppoint'));
|
|
@@ -630,7 +618,7 @@ var OrderListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fu
|
|
|
630
618
|
}));
|
|
631
619
|
OrderListSubList.displayName = 'OrderListSubList';
|
|
632
620
|
|
|
633
|
-
var OrderList = /*#__PURE__*/React.memo(
|
|
621
|
+
var OrderList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
634
622
|
var mergeProps = useMergeProps();
|
|
635
623
|
var context = React.useContext(PrimeReactContext);
|
|
636
624
|
var props = OrderListBase.getProps(inProps, context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t,{ariaLabel as n,PrimeReactContext as r,FilterService as o}from"primereact/api";import{ComponentBase as i,useHandleStyle as l}from"primereact/componentbase";import{useMergeProps as a,useMountEffect as c,useUpdateEffect as u}from"primereact/hooks";import{classNames as s,ObjectUtils as d,IconUtils as p,DomHandler as f,UniqueComponentId as m}from"primereact/utils";import{Button as v}from"primereact/button";import{AngleDoubleDownIcon as g}from"primereact/icons/angledoubledown";import{AngleDoubleUpIcon as y}from"primereact/icons/angledoubleup";import{AngleDownIcon as h}from"primereact/icons/angledown";import{AngleUpIcon as b}from"primereact/icons/angleup";import{SearchIcon as I}from"primereact/icons/search";import{Ripple as w}from"primereact/ripple";function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){if(Array.isArray(e))return x(e)}function D(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function S(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function L(){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 C(e){return O(e)||D(e)||S(e)||L()}function N(e){if(Array.isArray(e))return e}function k(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}function B(){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 K(e,t){return N(e)||k(e,t)||S(e,t)||B()}var T=i.extend({defaultProps:{__TYPE:"OrderList",id:null,ariaLabel:null,ariaLabelledBy:null,value:null,header:null,style:null,className:null,listStyle:null,dragdrop:!1,tabIndex:0,filterIcon:null,moveUpIcon:null,moveTopIcon:null,moveDownIcon:null,moveBottomIcon:null,dataKey:null,autoOptionFocus:!0,focusOnHover:!0,breakpoint:"960px",onChange:null,itemTemplate:null,filter:!1,filterBy:null,filterMatchMode:"contains",filterLocale:void 0,filterPlaceholder:null,filterTemplate:null,onFilter:null,children:void 0},css:{classes:{root:"p-orderlist p-component",controls:"p-orderlist-controls",droppoint:"p-orderlist-droppoint",header:"p-orderlist-header",list:"p-orderlist-list",icon:"p-orderlist-filter",filter:"p-orderlist-filter",filterInput:"p-orderlist-filter-input p-inputtext p-component",filterIcon:"p-orderlist-filter-icon",filterContainer:"p-orderlist-filter-container",container:"p-orderlist-list-container",item:function(e){return s("p-orderlist-item",{"p-highlight":e.selected,"p-focus":e.focused})}},styles:"\n@layer primereact {\n .p-orderlist {\n display: flex;\n }\n\n .p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n\n .p-orderlist-list-container {\n flex: 1 1 auto;\n }\n\n .p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n }\n\n .p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n }\n\n .p-orderlist-filter {\n position: relative;\n }\n\n .p-orderlist-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n }\n\n .p-orderlist-filter-input {\n width: 100%;\n }\n\n .p-orderlist.p-state-disabled .p-orderlist-item,\n .p-orderlist.p-state-disabled .p-button {\n cursor: default;\n }\n\n .p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n }\n\n .p-orderlist .p-orderlist-droppoint {\n height: 0.5rem;\n }\n\n .p-orderlist .p-orderlist-droppoint.p-orderlist-droppoint-highlight {\n background: var(--primary-color);\n }\n}\n"}}),j=e.memo((function(t){var r=a(),o=t.moveUpIcon||e.createElement(b,null),i=t.moveTopIcon||e.createElement(y,null),l=t.moveDownIcon||e.createElement(h,null),c=t.moveBottomIcon||e.createElement(g,null),u=t.ptm,s=t.cx,p=t.unstyled,f=d.isEmpty(t.value)||d.isEmpty(t.selection),m=r({className:s("controls")},u("controls",{hostName:t.hostName})),I=r({type:"button",unstyled:p,icon:o,onClick:function(e){if(t.selection){for(var n=C(t.value),r=0;r<t.selection.length;r++){var o=d.findIndexInList(t.selection[r],n,t.dataKey);if(0===o)break;var i=n[o-1];n[o-1]=n[o],n[o]=i}t.onReorder&&t.onReorder({originalEvent:e,value:n,direction:"up"})}},disabled:f,"aria-label":n("moveUp"),__parentMetadata:{parent:t.metaData}},u("moveUpButton")),w=r({type:"button",unstyled:p,icon:i,onClick:function(e){if(t.selection){for(var n=C(t.value),r=t.selection.length-1;r>=0;r--){var o=d.findIndexInList(t.selection[r],n,t.dataKey);if(0===o)break;var i=n.splice(o,1)[0];n.unshift(i)}t.onReorder&&t.onReorder({originalEvent:e,value:n,direction:"top"})}},disabled:f,"aria-label":n("moveTop"),__parentMetadata:{parent:t.metaData}},u("moveTopButton")),x=r({type:"button",unstyled:p,icon:l,onClick:function(e){if(t.selection){for(var n=C(t.value),r=t.selection.length-1;r>=0;r--){var o=d.findIndexInList(t.selection[r],n,t.dataKey);if(o===n.length-1)break;var i=n[o+1];n[o+1]=n[o],n[o]=i}t.onReorder&&t.onReorder({originalEvent:e,value:n,direction:"down"})}},disabled:f,"aria-label":n("moveDown"),__parentMetadata:{parent:t.metaData}},u("moveDownButton")),O=r({type:"button",unstyled:p,icon:c,onClick:function(e){if(t.selection){for(var n=C(t.value),r=0;r<t.selection.length;r++){var o=d.findIndexInList(t.selection[r],n,t.dataKey);if(o===n.length-1)break;var i=n.splice(o,1)[0];n.push(i)}t.onReorder&&t.onReorder({originalEvent:e,value:n,direction:"bottom"})}},disabled:f,"aria-label":n("moveBottom"),__parentMetadata:{parent:t.metaData}},u("moveBottomButton"));return e.createElement("div",m,e.createElement(v,E({pt:u("moveUpButton")},I)),e.createElement(v,E({pt:u("moveTopButton")},w)),e.createElement(v,E({pt:u("moveDownButton")},x)),e.createElement(v,E({pt:u("moveBottomButton")},O)))}));function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function M(e,t){if("object"!==F(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function R(e){var t=M(e,"string");return"symbol"===F(t)?t:String(t)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){var r,o,i;r=e,i=n[t],(o=R(o=t))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}j.displayName="OrderListControls";var U=e.memo(e.forwardRef((function(t,n){var r=a(),o=t.ptm,i=t.cx,l=function(e,n){return o(e,P({hostName:t.hostName},n))},c=function(e,t){return l(t,{context:{selected:h(e)}})},u=e.useRef(null),m=e.useRef(null),v=e.useRef(null),g=e.useRef(null),y={filter:function(e){return t.onFilterInputChange(e)},reset:function(){return t.resetFilter()}},h=function(e){return-1!==d.findIndexInList(e,t.selection,t.dataKey)},b=function(e,n){m.current!==n&&m.current+1!==n&&(v.current=n,!t.isUnstyled()&&f.addClass(e.target,"p-orderlist-droppoint-highlight"),e.target.setAttribute("data-p-orderlist-droppoint-highlight",!0),e.preventDefault())},x=function(e){v.current=null,!t.isUnstyled()&&f.removeClass(e.target,"p-orderlist-droppoint-highlight"),e.target.setAttribute("data-p-orderlist-droppoint-highlight",!1)},O=function(e){var n=m.current>v.current?v.current:0===v.current?0:v.current-1,r=C(t.value);d.reorderArray(r,m.current,n),v.current=null,!t.isUnstyled()&&f.removeClass(e.target,"p-orderlist-droppoint-highlight"),e.target.setAttribute("data-p-orderlist-droppoint-highlight",!1),t.onChange&&t.onChange({originalEvent:e,value:r})},D=function(e){u.current=!1},S=function(e){if(u.current){var t=g.current.getBoundingClientRect().top+f.getWindowScrollTop(),n=t+g.current.clientHeight-e.pageY,r=e.pageY-t;n<25&&n>0?g.current.scrollTop+=15:r<25&&r>0&&(g.current.scrollTop-=15)}},L=function(e){13===e.which&&e.preventDefault()},N=function(e,n){var r;t.focusOnHover&&t.focused&&(null==t||null===(r=t.changeFocusedOptionIndex)||void 0===r||r.call(t,n))},k=function(t,n){var o=r({className:i("droppoint"),onDragOver:function(e){return b(e,t+1)},onDragLeave:x,onDrop:O},l("droppoint"));return e.createElement("li",E({key:n},o))};e.useImperativeHandle(n,(function(){return{getElement:function(){return g.current}}}));var B,K,T,j=(B=r({className:i("header")},l("header")),t.header?e.createElement("div",B,t.header):null),F=function(){var n=r({className:i("icon")},l("icon")),o=p.getJSXIcon(t.filterIcon||e.createElement(I,n),P({},n),{props:t});if(t.filter){var a=r({className:i("filter")},l("filter")),c=r({type:"text",value:t.filterValue,onChange:t.onFilter,onKeyDown:L,placeholder:t.placeholder,className:i("filterInput")},l("filterInput")),u=r({className:i("filterIcon")},l("filterIcon")),s=e.createElement("div",a,e.createElement("input",c),e.createElement("span",u,o));if(t.filterTemplate)s=d.getJSXElement(t.filterTemplate,{className:"p-orderlist-filter",inputProps:{inputClassName:"p-orderlist-filter-input p-inputtext p-component",onChange:t.onFilter,onKeyDown:L},filterOptions:y,iconClassName:"p-orderlist-filter-icon",element:s,props:t});var f=r({className:i("filterContainer")},l("filterContainer"));return e.createElement("div",f,s)}return null}(),M=(K=t.value?t.value.map((function(n,o){var l=t.itemTemplate?t.itemTemplate(n):n,a=t.parentId+"_"+o,d=t.focused&&t.focusedOptionId===a,p=h(n);if(t.dragdrop){var f=r({id:a,role:"option",draggable:"true",onClick:function(e){return t.onItemClick({originalEvent:e,value:n,index:o})},onMouseDown:t.onOptionMouseDown,onMouseMove:function(e){return N(0,o)},onDragStart:function(e){return t=o,e.dataTransfer.setData("text","orderlist"),u.current=!0,void(m.current=t);var t},onDragEnd:D,className:s(t.className,i("item",{selected:p,focused:d})),"aria-selected":p,"data-p-highlight":p,"data-p-focused":d},c(n,"item")),v=[];return 0===o&&v.push(k(n,o)),v.push(e.createElement("li",E({key:a},f),l)),v.push(k(o,a+"_droppoint")),v}var g=r({id:a,role:"option",onClick:function(e){return t.onItemClick({originalEvent:e,value:n,index:o})},onMouseDown:t.onOptionMouseDown,onMouseMove:function(e){return N(0,o)},className:s(t.className,i("item",{selected:p,focused:d})),"aria-selected":p,"data-p-highlight":p,"data-p-focused":d},c(n,"item"));return e.createElement("li",E({key:a},g),l,e.createElement(w,null))})):null,T=r({ref:g,className:i("list"),style:t.listStyle,onDragOver:S,role:"listbox",onFocus:t.onListFocus,onBlur:t.onListBlur,onKeyDown:t.onListKeyDown,tabIndex:t.tabIndex,"aria-activedescendant":t.focused?t.focusedOptionId:null,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-multiselectable":!0},l("list")),e.createElement("ul",T,K)),R=r({className:i("container")},l("container"));return e.createElement("div",R,j,F,M)})));U.displayName="OrderListSubList";var _=e.memo(e.forwardRef((function(n,i){var p=a(),v=e.useContext(r),g=T.getProps(n,v),y=K(e.useState([]),2),h=y[0],b=y[1],I=K(e.useState(""),2),w=I[0],x=I[1],O=K(e.useState(null),2),D=O[0],S=O[1],L=K(e.useState(!1),2),N=L[0],k=L[1],B=K(e.useState(null),2),F=B[0],M=B[1],R=K(e.useState(-1),2),A=R[0],P=R[1],_=d.isNotEmpty(w),H=e.useRef(null),V=e.useRef(null),Y=e.useRef(null),J=e.useRef(null),X={props:g,state:{selection:h,filterValue:w,attributeSelector:D}},W=T.setMetaData(X),$=W.ptm,q=W.cx,z=W.isUnstyled;l(T.css.styles,z,{name:"orderlist"});var G=function(){if(_){var e=w.trim().toLocaleLowerCase(g.filterLocale),t=g.filterBy?g.filterBy.split(","):[];return o.filter(g.value,t,e,g.filterMatchMode,g.filterLocale)}return g.value}(),Q=function(){return J.current&&J.current.getElement()},Z=function(e){var t=e.originalEvent,n=e.value,r=e.index,o=d.findIndexInList(n,h),i=Q(),l=f.find(i,'[data-pc-section="item"]')[r].getAttribute("id");P(l);var a,c=t.metaKey||t.ctrlKey;a=-1!==o?c?h.filter((function(e,t){return t!==o})):[n]:c?[].concat(C(h),[n]):[n],b(a)},ee=function(e){var t=G[e],n=-1!==d.findIndexInList(t,h);b(n?h.filter((function(e){return e!==t})):[].concat(C(h),[t]))},te=function(e){if(-1===A){var t=e&&e.children?C(e.children):[],n=ne(e,t);return g.autoOptionFocus&&-1===n&&(n=re(e,t)),n}return-1},ne=function(e,t){if(h.length){var n=f.findSingle(e,'[data-p-highlight="true"]');return d.findIndexInList(n,t)}return-1},re=function(e,t){var n=f.findSingle(e,'[data-pc-section="item"]');return d.findIndexInList(n,t)},oe=function(e){var t=se(A);pe(t),e.shiftKey&&ee(t),e.preventDefault()},ie=function(e){var t=de(A);pe(t),e.shiftKey&&ee(t),e.preventDefault()},le=function(e){if(e.ctrlKey&&e.shiftKey){var t=Q(),n=f.find(t,'[data-pc-section="item"]'),r=f.findSingle(t,'[data-pc-section="item"][id='.concat(A,"]")),o=C(n).findIndex((function(e){return e===r}));b(C(G).slice(0,o+1))}else pe(0);e.preventDefault()},ae=function(e){var t=Q();if(e.ctrlKey&&e.shiftKey){var n=f.find(t,'[data-pc-section="item"]'),r=f.findSingle(t,'[data-pc-section="item"][id='.concat(A,"]")),o=C(n).findIndex((function(e){return e===r}));b(C(G).slice(o,n.length))}else pe(f.find(t,'[data-pc-section="item"]').length-1);e.preventDefault()},ce=function(e){var t=Q(),n=f.find(t,'[data-pc-section="item"]'),r=f.findSingle(t,'[data-pc-section="item"][id='.concat(A,"]")),o=C(n).findIndex((function(e){return e===r}));Z({originalEvent:e,value:G[o],index:o}),e.preventDefault()},ue=function(e){e.preventDefault();var t=Q();if(e.shiftKey&&h&&h.length>0){var n=f.find(t,'[data-pc-section="item"]'),r=d.findIndexInList(h[0],C(G)),o=f.findSingle(t,'[data-pc-section="item"][id='.concat(A,"]")),i=C(n).findIndex((function(e){return e===o}));b(C(G).slice(Math.min(r,i),Math.max(r,i)+1))}else ce(e)},se=function(e){var t=Q(),n=C(f.find(t,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return n>-1?n+1:0},de=function(e){var t=Q(),n=C(f.find(t,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return n>-1?n-1:0},pe=function(e){var t,n=Q(),r=f.find(n,'[data-pc-section="item"]');if(e>=r.length)t=r.length-1;else{if(e<0)return;t=e}var o=r[t]?r[t].getAttribute("id"):-1;P(o),fe(o)},fe=function(e){var t=Q(),n=f.findSingle(t,'[data-pc-section="item"][id="'.concat(e,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})},me=function(){if(!V.current){V.current=f.createInlineStyle(v&&v.nonce||t.nonce,v&&v.styleContainer);var e="\n@media screen and (max-width: ".concat(g.breakpoint,") {\n .p-orderlist[").concat(D,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(D,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(D,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(D,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");V.current.innerHTML=e}};e.useImperativeHandle(i,(function(){return{props:g,getElement:function(){return H.current}}})),c((function(){!D&&S(m())})),u((function(){return D&&(H.current.setAttribute(D,""),me()),function(){V.current=f.removeInlineStyle(V.current)}}),[D,g.breakpoint]),u((function(){M(-1!==A?A:null)}),[A]),u((function(){Y.current&&(Y.current=null)}));var ve=p({ref:H,id:g.id,className:s(g.className,q("root")),style:g.style},T.getOtherProps(g),$("root"));return e.createElement("div",ve,e.createElement(j,{hostName:"OrderList",value:G,selection:h,onReorder:function(e){g.onChange&&g.onChange({event:e.originalEvent,value:e.value}),Y.current=e.direction},dataKey:g.dataKey,moveUpIcon:g.moveUpIcon,moveTopIcon:g.moveTopIcon,moveDownIcon:g.moveDownIcon,moveBottomIcon:g.moveBottomIcon,ptm:$,cx:q,unstyled:g.unstyled,metaData:X}),e.createElement(U,E({ref:J,hostName:"OrderList"},g,{focused:N,ariaLabel:g.ariaLabel,ariaLabelledBy:g.ariaLabelledBy,value:G,selection:h,onItemClick:Z,onOptionMouseDown:function(e){P(e)},focusedOptionId:F,onListKeyDown:function(e){switch(e.code){case"ArrowDown":oe(e);break;case"ArrowUp":ie(e);break;case"Home":le(e);break;case"End":ae(e);break;case"Enter":case"NumpadEnter":ce(e);break;case"Space":ue(e);break;case"KeyA":e.ctrlKey&&(b(G),e.preventDefault())}},onListFocus:function(e){k(!0);var t=Q(),n=te(t);pe(n),g.onFocus&&g.onFocus(e)},onListBlur:function(e){k(!1),P(-1),g.onBlur&&g.onBlur(e)},onFilterInputChange:function(e){var t=e.target.value;x(t),g.onFilter&&g.onFilter({originalEvent:e,filter:t})},itemTemplate:g.itemTemplate,filter:g.filter,onFilter:function(e){var t=e.target.value;x(t),g.onFilter&&g.onFilter({originalEvent:e,value:t})},resetFilter:function(){x(""),g.onFilter&&g.onFilter({filter:""})},filterTemplate:g.filterTemplate,header:g.header,parentId:D,listStyle:g.listStyle,dataKey:g.dataKey,dragdrop:g.dragdrop,onChange:g.onChange,tabIndex:g.tabIndex,filterIcon:g.filterIcon,isUnstyled:z,ptm:$,cx:q,changeFocusedOptionIndex:pe})))})));_.displayName="OrderList";export{_ as OrderList};
|
|
1
|
+
import*as e from"react";import t,{ariaLabel as n,PrimeReactContext as r,FilterService as o}from"primereact/api";import{ComponentBase as i,useHandleStyle as l}from"primereact/componentbase";import{useMergeProps as a,useMountEffect as c,useUpdateEffect as u}from"primereact/hooks";import{classNames as s,ObjectUtils as d,IconUtils as p,DomHandler as f,UniqueComponentId as m}from"primereact/utils";import{Button as v}from"primereact/button";import{AngleDoubleDownIcon as g}from"primereact/icons/angledoubledown";import{AngleDoubleUpIcon as y}from"primereact/icons/angledoubleup";import{AngleDownIcon as h}from"primereact/icons/angledown";import{AngleUpIcon as b}from"primereact/icons/angleup";import{SearchIcon as I}from"primereact/icons/search";import{Ripple as E}from"primereact/ripple";function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(null,arguments)}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O(e){if(Array.isArray(e))return x(e)}function D(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function S(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function L(){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 C(e){return O(e)||D(e)||S(e)||L()}function N(e){if(Array.isArray(e))return e}function k(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}function B(){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 K(e,t){return N(e)||k(e,t)||S(e,t)||B()}var T=i.extend({defaultProps:{__TYPE:"OrderList",id:null,ariaLabel:null,ariaLabelledBy:null,value:null,header:null,style:null,className:null,listStyle:null,dragdrop:!1,tabIndex:0,filterIcon:null,moveUpIcon:null,moveTopIcon:null,moveDownIcon:null,moveBottomIcon:null,dataKey:null,autoOptionFocus:!0,focusOnHover:!0,breakpoint:"960px",onChange:null,itemTemplate:null,filter:!1,filterBy:null,filterMatchMode:"contains",filterLocale:void 0,filterPlaceholder:null,filterTemplate:null,onFilter:null,children:void 0},css:{classes:{root:"p-orderlist p-component",controls:"p-orderlist-controls",droppoint:"p-orderlist-droppoint",header:"p-orderlist-header",list:"p-orderlist-list",icon:"p-orderlist-filter",filter:"p-orderlist-filter",filterInput:"p-orderlist-filter-input p-inputtext p-component",filterIcon:"p-orderlist-filter-icon",filterContainer:"p-orderlist-filter-container",container:"p-orderlist-list-container",item:function(e){return s("p-orderlist-item",{"p-highlight":e.selected,"p-focus":e.focused})}},styles:"\n@layer primereact {\n .p-orderlist {\n display: flex;\n }\n\n .p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n\n .p-orderlist-list-container {\n flex: 1 1 auto;\n }\n\n .p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n }\n\n .p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n }\n\n .p-orderlist-filter {\n position: relative;\n }\n\n .p-orderlist-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n }\n\n .p-orderlist-filter-input {\n width: 100%;\n }\n\n .p-orderlist.p-state-disabled .p-orderlist-item,\n .p-orderlist.p-state-disabled .p-button {\n cursor: default;\n }\n\n .p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n }\n\n .p-orderlist .p-orderlist-droppoint {\n height: 0.5rem;\n }\n\n .p-orderlist .p-orderlist-droppoint.p-orderlist-droppoint-highlight {\n background: var(--primary-color);\n }\n}\n"}}),F=e.memo((function(t){var r=a(),o=t.moveUpIcon||e.createElement(b,null),i=t.moveTopIcon||e.createElement(y,null),l=t.moveDownIcon||e.createElement(h,null),c=t.moveBottomIcon||e.createElement(g,null),u=t.ptm,s=t.cx,p=t.unstyled,f=d.isEmpty(t.value)||d.isEmpty(t.selection),m=r({className:s("controls")},u("controls",{hostName:t.hostName})),I=r({type:"button",unstyled:p,icon:o,onClick:function(e){if(t.selection){for(var n=C(t.value),r=0;r<t.selection.length;r++){var o=d.findIndexInList(t.selection[r],n,t.dataKey);if(0===o)break;var i=n[o-1];n[o-1]=n[o],n[o]=i}t.onReorder&&t.onReorder({originalEvent:e,value:n,direction:"up"})}},disabled:f,"aria-label":n("moveUp"),__parentMetadata:{parent:t.metaData}},u("moveUpButton")),E=r({type:"button",unstyled:p,icon:i,onClick:function(e){if(t.selection){for(var n=C(t.value),r=t.selection.length-1;r>=0;r--){var o=d.findIndexInList(t.selection[r],n,t.dataKey);if(0===o)break;var i=n.splice(o,1)[0];n.unshift(i)}t.onReorder&&t.onReorder({originalEvent:e,value:n,direction:"top"})}},disabled:f,"aria-label":n("moveTop"),__parentMetadata:{parent:t.metaData}},u("moveTopButton")),x=r({type:"button",unstyled:p,icon:l,onClick:function(e){if(t.selection){for(var n=C(t.value),r=t.selection.length-1;r>=0;r--){var o=d.findIndexInList(t.selection[r],n,t.dataKey);if(o===n.length-1)break;var i=n[o+1];n[o+1]=n[o],n[o]=i}t.onReorder&&t.onReorder({originalEvent:e,value:n,direction:"down"})}},disabled:f,"aria-label":n("moveDown"),__parentMetadata:{parent:t.metaData}},u("moveDownButton")),O=r({type:"button",unstyled:p,icon:c,onClick:function(e){if(t.selection){for(var n=C(t.value),r=0;r<t.selection.length;r++){var o=d.findIndexInList(t.selection[r],n,t.dataKey);if(o===n.length-1)break;var i=n.splice(o,1)[0];n.push(i)}t.onReorder&&t.onReorder({originalEvent:e,value:n,direction:"bottom"})}},disabled:f,"aria-label":n("moveBottom"),__parentMetadata:{parent:t.metaData}},u("moveBottomButton"));return e.createElement("div",m,e.createElement(v,w({pt:u("moveUpButton")},I)),e.createElement(v,w({pt:u("moveTopButton")},E)),e.createElement(v,w({pt:u("moveDownButton")},x)),e.createElement(v,w({pt:u("moveBottomButton")},O)))}));function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function M(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function R(e){var t=M(e,"string");return"symbol"==j(t)?t:t+""}function A(e,t,n){return(t=R(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}F.displayName="OrderListControls";var _=e.memo(e.forwardRef((function(t,n){var r=a(),o=t.ptm,i=t.cx,l=function(e,n){return o(e,U({hostName:t.hostName},n))},c=function(e,t){return l(t,{context:{selected:h(e)}})},u=e.useRef(null),m=e.useRef(null),v=e.useRef(null),g=e.useRef(null),y={filter:function(e){return t.onFilterInputChange(e)},reset:function(){return t.resetFilter()}},h=function(e){return-1!==d.findIndexInList(e,t.selection,t.dataKey)},b=function(e,n){m.current!==n&&m.current+1!==n&&(v.current=n,!t.isUnstyled()&&f.addClass(e.target,"p-orderlist-droppoint-highlight"),e.target.setAttribute("data-p-orderlist-droppoint-highlight",!0),e.preventDefault())},x=function(e){v.current=null,!t.isUnstyled()&&f.removeClass(e.target,"p-orderlist-droppoint-highlight"),e.target.setAttribute("data-p-orderlist-droppoint-highlight",!1)},O=function(e){var n=m.current>v.current?v.current:0===v.current?0:v.current-1,r=C(t.value);d.reorderArray(r,m.current,n),v.current=null,!t.isUnstyled()&&f.removeClass(e.target,"p-orderlist-droppoint-highlight"),e.target.setAttribute("data-p-orderlist-droppoint-highlight",!1),t.onChange&&t.onChange({originalEvent:e,value:r})},D=function(e){u.current=!1},S=function(e){if(u.current){var t=g.current.getBoundingClientRect().top+f.getWindowScrollTop(),n=t+g.current.clientHeight-e.pageY,r=e.pageY-t;n<25&&n>0?g.current.scrollTop+=15:r<25&&r>0&&(g.current.scrollTop-=15)}},L=function(e){13===e.which&&e.preventDefault()},N=function(e,n){var r;t.focusOnHover&&t.focused&&(null==t||null===(r=t.changeFocusedOptionIndex)||void 0===r||r.call(t,n))},k=function(t,n){var o=r({className:i("droppoint"),onDragOver:function(e){return b(e,t+1)},onDragLeave:x,onDrop:O},l("droppoint"));return e.createElement("li",w({key:n},o))};e.useImperativeHandle(n,(function(){return{getElement:function(){return g.current}}}));var B,K,T,F=(B=r({className:i("header")},l("header")),t.header?e.createElement("div",B,t.header):null),j=function(){var n=r({className:i("icon")},l("icon")),o=p.getJSXIcon(t.filterIcon||e.createElement(I,n),U({},n),{props:t});if(t.filter){var a=r({className:i("filter")},l("filter")),c=r({type:"text",value:t.filterValue,onChange:t.onFilter,onKeyDown:L,placeholder:t.placeholder,className:i("filterInput")},l("filterInput")),u=r({className:i("filterIcon")},l("filterIcon")),s=e.createElement("div",a,e.createElement("input",c),e.createElement("span",u,o));if(t.filterTemplate)s=d.getJSXElement(t.filterTemplate,{className:"p-orderlist-filter",inputProps:{inputClassName:"p-orderlist-filter-input p-inputtext p-component",onChange:t.onFilter,onKeyDown:L},filterOptions:y,iconClassName:"p-orderlist-filter-icon",element:s,props:t});var f=r({className:i("filterContainer")},l("filterContainer"));return e.createElement("div",f,s)}return null}(),M=(K=t.value?t.value.map((function(n,o){var l=t.itemTemplate?t.itemTemplate(n):n,a=t.parentId+"_"+o,d=t.focused&&t.focusedOptionId===a,p=h(n);if(t.dragdrop){var f=r({id:a,role:"option",draggable:"true",onClick:function(e){return t.onItemClick({originalEvent:e,value:n,index:o})},onMouseDown:t.onOptionMouseDown,onMouseMove:function(e){return N(0,o)},onDragStart:function(e){return t=o,e.dataTransfer.setData("text","orderlist"),u.current=!0,void(m.current=t);var t},onDragEnd:D,className:s(t.className,i("item",{selected:p,focused:d})),"aria-selected":p,"data-p-highlight":p,"data-p-focused":d},c(n,"item")),v=[];return 0===o&&v.push(k(n,o)),v.push(e.createElement("li",w({key:a},f),l)),v.push(k(o,a+"_droppoint")),v}var g=r({id:a,role:"option",onClick:function(e){return t.onItemClick({originalEvent:e,value:n,index:o})},onMouseDown:t.onOptionMouseDown,onMouseMove:function(e){return N(0,o)},className:s(t.className,i("item",{selected:p,focused:d})),"aria-selected":p,"data-p-highlight":p,"data-p-focused":d},c(n,"item"));return e.createElement("li",w({key:a},g),l,e.createElement(E,null))})):null,T=r({ref:g,className:i("list"),style:t.listStyle,onDragOver:S,role:"listbox",onFocus:t.onListFocus,onBlur:t.onListBlur,onKeyDown:t.onListKeyDown,tabIndex:t.tabIndex,"aria-activedescendant":t.focused?t.focusedOptionId:null,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-multiselectable":!0},l("list")),e.createElement("ul",T,K)),R=r({className:i("container")},l("container"));return e.createElement("div",R,F,j,M)})));_.displayName="OrderListSubList";var H=e.memo(e.forwardRef((function(n,i){var p=a(),v=e.useContext(r),g=T.getProps(n,v),y=K(e.useState([]),2),h=y[0],b=y[1],I=K(e.useState(""),2),E=I[0],x=I[1],O=K(e.useState(null),2),D=O[0],S=O[1],L=K(e.useState(!1),2),N=L[0],k=L[1],B=K(e.useState(null),2),j=B[0],M=B[1],R=K(e.useState(-1),2),A=R[0],P=R[1],U=d.isNotEmpty(E),H=e.useRef(null),V=e.useRef(null),Y=e.useRef(null),J=e.useRef(null),X={props:g,state:{selection:h,filterValue:E,attributeSelector:D}},W=T.setMetaData(X),$=W.ptm,q=W.cx,z=W.isUnstyled;l(T.css.styles,z,{name:"orderlist"});var G=function(){if(U){var e=E.trim().toLocaleLowerCase(g.filterLocale),t=g.filterBy?g.filterBy.split(","):[];return o.filter(g.value,t,e,g.filterMatchMode,g.filterLocale)}return g.value}(),Q=function(){return J.current&&J.current.getElement()},Z=function(e){var t=e.originalEvent,n=e.value,r=e.index,o=d.findIndexInList(n,h),i=Q(),l=f.find(i,'[data-pc-section="item"]')[r].getAttribute("id");P(l);var a,c=t.metaKey||t.ctrlKey;a=-1!==o?c?h.filter((function(e,t){return t!==o})):[n]:c?[].concat(C(h),[n]):[n],b(a)},ee=function(e){var t=G[e],n=-1!==d.findIndexInList(t,h);b(n?h.filter((function(e){return e!==t})):[].concat(C(h),[t]))},te=function(e){if(-1===A){var t=e&&e.children?C(e.children):[],n=ne(e,t);return g.autoOptionFocus&&-1===n&&(n=re(e,t)),n}return-1},ne=function(e,t){if(h.length){var n=f.findSingle(e,'[data-p-highlight="true"]');return d.findIndexInList(n,t)}return-1},re=function(e,t){var n=f.findSingle(e,'[data-pc-section="item"]');return d.findIndexInList(n,t)},oe=function(e){var t=se(A);pe(t),e.shiftKey&&ee(t),e.preventDefault()},ie=function(e){var t=de(A);pe(t),e.shiftKey&&ee(t),e.preventDefault()},le=function(e){if(e.ctrlKey&&e.shiftKey){var t=Q(),n=f.find(t,'[data-pc-section="item"]'),r=f.findSingle(t,'[data-pc-section="item"][id='.concat(A,"]")),o=C(n).findIndex((function(e){return e===r}));b(C(G).slice(0,o+1))}else pe(0);e.preventDefault()},ae=function(e){var t=Q();if(e.ctrlKey&&e.shiftKey){var n=f.find(t,'[data-pc-section="item"]'),r=f.findSingle(t,'[data-pc-section="item"][id='.concat(A,"]")),o=C(n).findIndex((function(e){return e===r}));b(C(G).slice(o,n.length))}else pe(f.find(t,'[data-pc-section="item"]').length-1);e.preventDefault()},ce=function(e){var t=Q(),n=f.find(t,'[data-pc-section="item"]'),r=f.findSingle(t,'[data-pc-section="item"][id='.concat(A,"]")),o=C(n).findIndex((function(e){return e===r}));Z({originalEvent:e,value:G[o],index:o}),e.preventDefault()},ue=function(e){e.preventDefault();var t=Q();if(e.shiftKey&&h&&h.length>0){var n=f.find(t,'[data-pc-section="item"]'),r=d.findIndexInList(h[0],C(G)),o=f.findSingle(t,'[data-pc-section="item"][id='.concat(A,"]")),i=C(n).findIndex((function(e){return e===o}));b(C(G).slice(Math.min(r,i),Math.max(r,i)+1))}else ce(e)},se=function(e){var t=Q(),n=C(f.find(t,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return n>-1?n+1:0},de=function(e){var t=Q(),n=C(f.find(t,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return n>-1?n-1:0},pe=function(e){var t,n=Q(),r=f.find(n,'[data-pc-section="item"]');if(e>=r.length)t=r.length-1;else{if(e<0)return;t=e}var o=r[t]?r[t].getAttribute("id"):-1;P(o),fe(o)},fe=function(e){var t=Q(),n=f.findSingle(t,'[data-pc-section="item"][id="'.concat(e,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})},me=function(){if(!V.current){V.current=f.createInlineStyle(v&&v.nonce||t.nonce,v&&v.styleContainer);var e="\n@media screen and (max-width: ".concat(g.breakpoint,") {\n .p-orderlist[").concat(D,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(D,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(D,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(D,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");V.current.innerHTML=e}};e.useImperativeHandle(i,(function(){return{props:g,getElement:function(){return H.current}}})),c((function(){!D&&S(m())})),u((function(){return D&&(H.current.setAttribute(D,""),me()),function(){V.current=f.removeInlineStyle(V.current)}}),[D,g.breakpoint]),u((function(){M(-1!==A?A:null)}),[A]),u((function(){Y.current&&(Y.current=null)}));var ve=p({ref:H,id:g.id,className:s(g.className,q("root")),style:g.style},T.getOtherProps(g),$("root"));return e.createElement("div",ve,e.createElement(F,{hostName:"OrderList",value:G,selection:h,onReorder:function(e){g.onChange&&g.onChange({event:e.originalEvent,value:e.value}),Y.current=e.direction},dataKey:g.dataKey,moveUpIcon:g.moveUpIcon,moveTopIcon:g.moveTopIcon,moveDownIcon:g.moveDownIcon,moveBottomIcon:g.moveBottomIcon,ptm:$,cx:q,unstyled:g.unstyled,metaData:X}),e.createElement(_,w({ref:J,hostName:"OrderList"},g,{focused:N,ariaLabel:g.ariaLabel,ariaLabelledBy:g.ariaLabelledBy,value:G,selection:h,onItemClick:Z,onOptionMouseDown:function(e){P(e)},focusedOptionId:j,onListKeyDown:function(e){switch(e.code){case"ArrowDown":oe(e);break;case"ArrowUp":ie(e);break;case"Home":le(e);break;case"End":ae(e);break;case"Enter":case"NumpadEnter":ce(e);break;case"Space":ue(e);break;case"KeyA":e.ctrlKey&&(b(G),e.preventDefault())}},onListFocus:function(e){k(!0);var t=Q(),n=te(t);pe(n),g.onFocus&&g.onFocus(e)},onListBlur:function(e){k(!1),P(-1),g.onBlur&&g.onBlur(e)},onFilterInputChange:function(e){var t=e.target.value;x(t),g.onFilter&&g.onFilter({originalEvent:e,filter:t})},itemTemplate:g.itemTemplate,filter:g.filter,onFilter:function(e){var t=e.target.value;x(t),g.onFilter&&g.onFilter({originalEvent:e,value:t})},resetFilter:function(){x(""),g.onFilter&&g.onFilter({filter:""})},filterTemplate:g.filterTemplate,header:g.header,parentId:D,listStyle:g.listStyle,dataKey:g.dataKey,dragdrop:g.dragdrop,onChange:g.onChange,tabIndex:g.tabIndex,filterIcon:g.filterIcon,isUnstyled:z,ptm:$,cx:q,changeFocusedOptionIndex:pe})))})));H.displayName="OrderList";export{H as OrderList};
|
package/orderlist/orderlist.js
CHANGED
|
@@ -26,53 +26,47 @@ this.primereact.orderlist = (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
|
-
function _arrayLikeToArray(
|
|
44
|
-
|
|
45
|
-
for (var
|
|
46
|
-
return
|
|
38
|
+
function _arrayLikeToArray(r, a) {
|
|
39
|
+
(null == a || a > r.length) && (a = r.length);
|
|
40
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
41
|
+
return n;
|
|
47
42
|
}
|
|
48
43
|
|
|
49
|
-
function _arrayWithoutHoles(
|
|
50
|
-
if (Array.isArray(
|
|
44
|
+
function _arrayWithoutHoles(r) {
|
|
45
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
51
46
|
}
|
|
52
47
|
|
|
53
|
-
function _iterableToArray(
|
|
54
|
-
if (typeof Symbol
|
|
48
|
+
function _iterableToArray(r) {
|
|
49
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
55
50
|
}
|
|
56
51
|
|
|
57
|
-
function _unsupportedIterableToArray(
|
|
58
|
-
if (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
52
|
+
function _unsupportedIterableToArray(r, a) {
|
|
53
|
+
if (r) {
|
|
54
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
55
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
56
|
+
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;
|
|
57
|
+
}
|
|
64
58
|
}
|
|
65
59
|
|
|
66
60
|
function _nonIterableSpread() {
|
|
67
61
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
68
62
|
}
|
|
69
63
|
|
|
70
|
-
function _toConsumableArray(
|
|
71
|
-
return _arrayWithoutHoles(
|
|
64
|
+
function _toConsumableArray(r) {
|
|
65
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
72
66
|
}
|
|
73
67
|
|
|
74
|
-
function _arrayWithHoles(
|
|
75
|
-
if (Array.isArray(
|
|
68
|
+
function _arrayWithHoles(r) {
|
|
69
|
+
if (Array.isArray(r)) return r;
|
|
76
70
|
}
|
|
77
71
|
|
|
78
72
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -107,8 +101,8 @@ this.primereact.orderlist = (function (exports, React, PrimeReact, componentbase
|
|
|
107
101
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
108
102
|
}
|
|
109
103
|
|
|
110
|
-
function _slicedToArray(
|
|
111
|
-
return _arrayWithHoles(
|
|
104
|
+
function _slicedToArray(r, e) {
|
|
105
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
112
106
|
}
|
|
113
107
|
|
|
114
108
|
var classes = {
|
|
@@ -345,40 +339,34 @@ this.primereact.orderlist = (function (exports, React, PrimeReact, componentbase
|
|
|
345
339
|
}, _typeof(o);
|
|
346
340
|
}
|
|
347
341
|
|
|
348
|
-
function
|
|
349
|
-
if (
|
|
350
|
-
var
|
|
351
|
-
if (
|
|
352
|
-
var
|
|
353
|
-
if (
|
|
342
|
+
function toPrimitive(t, r) {
|
|
343
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
344
|
+
var e = t[Symbol.toPrimitive];
|
|
345
|
+
if (void 0 !== e) {
|
|
346
|
+
var i = e.call(t, r || "default");
|
|
347
|
+
if ("object" != _typeof(i)) return i;
|
|
354
348
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
355
349
|
}
|
|
356
|
-
return (
|
|
350
|
+
return ("string" === r ? String : Number)(t);
|
|
357
351
|
}
|
|
358
352
|
|
|
359
|
-
function
|
|
360
|
-
var
|
|
361
|
-
return _typeof(
|
|
353
|
+
function toPropertyKey(t) {
|
|
354
|
+
var i = toPrimitive(t, "string");
|
|
355
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
362
356
|
}
|
|
363
357
|
|
|
364
|
-
function _defineProperty(
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
writable: true
|
|
372
|
-
});
|
|
373
|
-
} else {
|
|
374
|
-
obj[key] = value;
|
|
375
|
-
}
|
|
376
|
-
return obj;
|
|
358
|
+
function _defineProperty(e, r, t) {
|
|
359
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
360
|
+
value: t,
|
|
361
|
+
enumerable: !0,
|
|
362
|
+
configurable: !0,
|
|
363
|
+
writable: !0
|
|
364
|
+
}) : e[r] = t, e;
|
|
377
365
|
}
|
|
378
366
|
|
|
379
367
|
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; }
|
|
380
368
|
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; }
|
|
381
|
-
var OrderListSubList = /*#__PURE__*/React__namespace.memo(
|
|
369
|
+
var OrderListSubList = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
382
370
|
var mergeProps = hooks.useMergeProps();
|
|
383
371
|
var ptm = props.ptm,
|
|
384
372
|
cx = props.cx;
|
|
@@ -533,7 +521,7 @@ this.primereact.orderlist = (function (exports, React, PrimeReact, componentbase
|
|
|
533
521
|
if (i === 0) {
|
|
534
522
|
items.push(createDropPoint(item, i));
|
|
535
523
|
}
|
|
536
|
-
items.push(
|
|
524
|
+
items.push(/*#__PURE__*/React__namespace.createElement("li", _extends({
|
|
537
525
|
key: key
|
|
538
526
|
}, _itemProps), content));
|
|
539
527
|
items.push(createDropPoint(i, key + '_droppoint'));
|
|
@@ -643,7 +631,7 @@ this.primereact.orderlist = (function (exports, React, PrimeReact, componentbase
|
|
|
643
631
|
}));
|
|
644
632
|
OrderListSubList.displayName = 'OrderListSubList';
|
|
645
633
|
|
|
646
|
-
var OrderList = /*#__PURE__*/React__namespace.memo(
|
|
634
|
+
var OrderList = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
647
635
|
var mergeProps = hooks.useMergeProps();
|
|
648
636
|
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
649
637
|
var props = OrderListBase.getProps(inProps, context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.orderlist=function(e,t,n,r,o,i,l,a,c,u,s,d,p){"use strict";function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var v=m(t),g=f(n);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e){if(Array.isArray(e))return y(e)}function I(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function D(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function O(){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(e){return h(e)||I(e)||D(e)||O()}function w(e){if(Array.isArray(e))return e}function x(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}function S(){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 j(e,t){return w(e)||x(e,t)||D(e,t)||S()}var L=r.ComponentBase.extend({defaultProps:{__TYPE:"OrderList",id:null,ariaLabel:null,ariaLabelledBy:null,value:null,header:null,style:null,className:null,listStyle:null,dragdrop:!1,tabIndex:0,filterIcon:null,moveUpIcon:null,moveTopIcon:null,moveDownIcon:null,moveBottomIcon:null,dataKey:null,autoOptionFocus:!0,focusOnHover:!0,breakpoint:"960px",onChange:null,itemTemplate:null,filter:!1,filterBy:null,filterMatchMode:"contains",filterLocale:void 0,filterPlaceholder:null,filterTemplate:null,onFilter:null,children:void 0},css:{classes:{root:"p-orderlist p-component",controls:"p-orderlist-controls",droppoint:"p-orderlist-droppoint",header:"p-orderlist-header",list:"p-orderlist-list",icon:"p-orderlist-filter",filter:"p-orderlist-filter",filterInput:"p-orderlist-filter-input p-inputtext p-component",filterIcon:"p-orderlist-filter-icon",filterContainer:"p-orderlist-filter-container",container:"p-orderlist-list-container",item:function(e){return i.classNames("p-orderlist-item",{"p-highlight":e.selected,"p-focus":e.focused})}},styles:"\n@layer primereact {\n .p-orderlist {\n display: flex;\n }\n\n .p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n\n .p-orderlist-list-container {\n flex: 1 1 auto;\n }\n\n .p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n }\n\n .p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n }\n\n .p-orderlist-filter {\n position: relative;\n }\n\n .p-orderlist-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n }\n\n .p-orderlist-filter-input {\n width: 100%;\n }\n\n .p-orderlist.p-state-disabled .p-orderlist-item,\n .p-orderlist.p-state-disabled .p-button {\n cursor: default;\n }\n\n .p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n }\n\n .p-orderlist .p-orderlist-droppoint {\n height: 0.5rem;\n }\n\n .p-orderlist .p-orderlist-droppoint.p-orderlist-droppoint-highlight {\n background: var(--primary-color);\n }\n}\n"}}),C=v.memo((function(e){var t=o.useMergeProps(),r=e.moveUpIcon||v.createElement(s.AngleUpIcon,null),d=e.moveTopIcon||v.createElement(c.AngleDoubleUpIcon,null),p=e.moveDownIcon||v.createElement(u.AngleDownIcon,null),f=e.moveBottomIcon||v.createElement(a.AngleDoubleDownIcon,null),m=e.ptm,g=e.cx,y=e.unstyled,h=i.ObjectUtils.isEmpty(e.value)||i.ObjectUtils.isEmpty(e.selection),I=t({className:g("controls")},m("controls",{hostName:e.hostName})),D=t({type:"button",unstyled:y,icon:r,onClick:function(t){if(e.selection){for(var n=E(e.value),r=0;r<e.selection.length;r++){var o=i.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(0===o)break;var l=n[o-1];n[o-1]=n[o],n[o]=l}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"up"})}},disabled:h,"aria-label":n.ariaLabel("moveUp"),__parentMetadata:{parent:e.metaData}},m("moveUpButton")),O=t({type:"button",unstyled:y,icon:d,onClick:function(t){if(e.selection){for(var n=E(e.value),r=e.selection.length-1;r>=0;r--){var o=i.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(0===o)break;var l=n.splice(o,1)[0];n.unshift(l)}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"top"})}},disabled:h,"aria-label":n.ariaLabel("moveTop"),__parentMetadata:{parent:e.metaData}},m("moveTopButton")),w=t({type:"button",unstyled:y,icon:p,onClick:function(t){if(e.selection){for(var n=E(e.value),r=e.selection.length-1;r>=0;r--){var o=i.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(o===n.length-1)break;var l=n[o+1];n[o+1]=n[o],n[o]=l}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"down"})}},disabled:h,"aria-label":n.ariaLabel("moveDown"),__parentMetadata:{parent:e.metaData}},m("moveDownButton")),x=t({type:"button",unstyled:y,icon:f,onClick:function(t){if(e.selection){for(var n=E(e.value),r=0;r<e.selection.length;r++){var o=i.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(o===n.length-1)break;var l=n.splice(o,1)[0];n.push(l)}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"bottom"})}},disabled:h,"aria-label":n.ariaLabel("moveBottom"),__parentMetadata:{parent:e.metaData}},m("moveBottomButton"));return v.createElement("div",I,v.createElement(l.Button,b({pt:m("moveUpButton")},D)),v.createElement(l.Button,b({pt:m("moveTopButton")},O)),v.createElement(l.Button,b({pt:m("moveDownButton")},w)),v.createElement(l.Button,b({pt:m("moveBottomButton")},x)))}));function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function U(e,t){if("object"!==N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function B(e){var t=U(e,"string");return"symbol"===N(t)?t:String(t)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){var r,o,i;r=e,i=n[t],(o=B(o=t))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}C.displayName="OrderListControls";var M=v.memo(v.forwardRef((function(e,t){var n=o.useMergeProps(),r=e.ptm,l=e.cx,a=function(t,n){return r(t,H({hostName:e.hostName},n))},c=function(e,t){return a(t,{context:{selected:y(e)}})},u=v.useRef(null),s=v.useRef(null),f=v.useRef(null),m=v.useRef(null),g={filter:function(t){return e.onFilterInputChange(t)},reset:function(){return e.resetFilter()}},y=function(t){return-1!==i.ObjectUtils.findIndexInList(t,e.selection,e.dataKey)},h=function(t,n){s.current!==n&&s.current+1!==n&&(f.current=n,!e.isUnstyled()&&i.DomHandler.addClass(t.target,"p-orderlist-droppoint-highlight"),t.target.setAttribute("data-p-orderlist-droppoint-highlight",!0),t.preventDefault())},I=function(t){f.current=null,!e.isUnstyled()&&i.DomHandler.removeClass(t.target,"p-orderlist-droppoint-highlight"),t.target.setAttribute("data-p-orderlist-droppoint-highlight",!1)},D=function(t){var n=s.current>f.current?f.current:0===f.current?0:f.current-1,r=E(e.value);i.ObjectUtils.reorderArray(r,s.current,n),f.current=null,!e.isUnstyled()&&i.DomHandler.removeClass(t.target,"p-orderlist-droppoint-highlight"),t.target.setAttribute("data-p-orderlist-droppoint-highlight",!1),e.onChange&&e.onChange({originalEvent:t,value:r})},O=function(e){u.current=!1},w=function(e){if(u.current){var t=m.current.getBoundingClientRect().top+i.DomHandler.getWindowScrollTop(),n=t+m.current.clientHeight-e.pageY,r=e.pageY-t;n<25&&n>0?m.current.scrollTop+=15:r<25&&r>0&&(m.current.scrollTop-=15)}},x=function(e){13===e.which&&e.preventDefault()},S=function(t,n){var r;e.focusOnHover&&e.focused&&(null==e||null===(r=e.changeFocusedOptionIndex)||void 0===r||r.call(e,n))},j=function(e,t){var r=n({className:l("droppoint"),onDragOver:function(t){return h(t,e+1)},onDragLeave:I,onDrop:D},a("droppoint"));return v.createElement("li",b({key:t},r))};v.useImperativeHandle(t,(function(){return{getElement:function(){return m.current}}}));var L,C,N,U=(L=n({className:l("header")},a("header")),e.header?v.createElement("div",L,e.header):null),B=function(){var t=n({className:l("icon")},a("icon")),r=i.IconUtils.getJSXIcon(e.filterIcon||v.createElement(d.SearchIcon,t),H({},t),{props:e});if(e.filter){var o=n({className:l("filter")},a("filter")),c=n({type:"text",value:e.filterValue,onChange:e.onFilter,onKeyDown:x,placeholder:e.placeholder,className:l("filterInput")},a("filterInput")),u=n({className:l("filterIcon")},a("filterIcon")),s=v.createElement("div",o,v.createElement("input",c),v.createElement("span",u,r));if(e.filterTemplate)s=i.ObjectUtils.getJSXElement(e.filterTemplate,{className:"p-orderlist-filter",inputProps:{inputClassName:"p-orderlist-filter-input p-inputtext p-component",onChange:e.onFilter,onKeyDown:x},filterOptions:g,iconClassName:"p-orderlist-filter-icon",element:s,props:e});var p=n({className:l("filterContainer")},a("filterContainer"));return v.createElement("div",p,s)}return null}(),k=(C=e.value?e.value.map((function(t,r){var o=e.itemTemplate?e.itemTemplate(t):t,a=e.parentId+"_"+r,d=e.focused&&e.focusedOptionId===a,f=y(t);if(e.dragdrop){var m=n({id:a,role:"option",draggable:"true",onClick:function(n){return e.onItemClick({originalEvent:n,value:t,index:r})},onMouseDown:e.onOptionMouseDown,onMouseMove:function(e){return S(0,r)},onDragStart:function(e){return t=r,e.dataTransfer.setData("text","orderlist"),u.current=!0,void(s.current=t);var t},onDragEnd:O,className:i.classNames(e.className,l("item",{selected:f,focused:d})),"aria-selected":f,"data-p-highlight":f,"data-p-focused":d},c(t,"item")),g=[];return 0===r&&g.push(j(t,r)),g.push(v.createElement("li",b({key:a},m),o)),g.push(j(r,a+"_droppoint")),g}var h=n({id:a,role:"option",onClick:function(n){return e.onItemClick({originalEvent:n,value:t,index:r})},onMouseDown:e.onOptionMouseDown,onMouseMove:function(e){return S(0,r)},className:i.classNames(e.className,l("item",{selected:f,focused:d})),"aria-selected":f,"data-p-highlight":f,"data-p-focused":d},c(t,"item"));return v.createElement("li",b({key:a},h),o,v.createElement(p.Ripple,null))})):null,N=n({ref:m,className:l("list"),style:e.listStyle,onDragOver:w,role:"listbox",onFocus:e.onListFocus,onBlur:e.onListBlur,onKeyDown:e.onListKeyDown,tabIndex:e.tabIndex,"aria-activedescendant":e.focused?e.focusedOptionId:null,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-multiselectable":!0},a("list")),v.createElement("ul",N,C)),M=n({className:l("container")},a("container"));return v.createElement("div",M,U,B,k)})));M.displayName="OrderListSubList";var K=v.memo(v.forwardRef((function(e,t){var l=o.useMergeProps(),a=v.useContext(n.PrimeReactContext),c=L.getProps(e,a),u=j(v.useState([]),2),s=u[0],d=u[1],p=j(v.useState(""),2),f=p[0],m=p[1],y=j(v.useState(null),2),h=y[0],I=y[1],D=j(v.useState(!1),2),O=D[0],w=D[1],x=j(v.useState(null),2),S=x[0],N=x[1],U=j(v.useState(-1),2),B=U[0],k=U[1],H=i.ObjectUtils.isNotEmpty(f),K=v.useRef(null),T=v.useRef(null),P=v.useRef(null),F=v.useRef(null),A={props:c,state:{selection:s,filterValue:f,attributeSelector:h}},R=L.setMetaData(A),_=R.ptm,V=R.cx,Y=R.isUnstyled;r.useHandleStyle(L.css.styles,Y,{name:"orderlist"});var J=function(){if(H){var e=f.trim().toLocaleLowerCase(c.filterLocale),t=c.filterBy?c.filterBy.split(","):[];return n.FilterService.filter(c.value,t,e,c.filterMatchMode,c.filterLocale)}return c.value}(),X=function(){return F.current&&F.current.getElement()},q=function(e){var t=e.originalEvent,n=e.value,r=e.index,o=i.ObjectUtils.findIndexInList(n,s),l=X(),a=i.DomHandler.find(l,'[data-pc-section="item"]')[r].getAttribute("id");k(a);var c,u=t.metaKey||t.ctrlKey;c=-1!==o?u?s.filter((function(e,t){return t!==o})):[n]:u?[].concat(E(s),[n]):[n],d(c)},z=function(e){var t=J[e],n=-1!==i.ObjectUtils.findIndexInList(t,s);d(n?s.filter((function(e){return e!==t})):[].concat(E(s),[t]))},W=function(e){if(-1===B){var t=e&&e.children?E(e.children):[],n=$(e,t);return c.autoOptionFocus&&-1===n&&(n=G(e,t)),n}return-1},$=function(e,t){if(s.length){var n=i.DomHandler.findSingle(e,'[data-p-highlight="true"]');return i.ObjectUtils.findIndexInList(n,t)}return-1},G=function(e,t){var n=i.DomHandler.findSingle(e,'[data-pc-section="item"]');return i.ObjectUtils.findIndexInList(n,t)},Q=function(e){var t=oe(B);le(t),e.shiftKey&&z(t),e.preventDefault()},Z=function(e){var t=ie(B);le(t),e.shiftKey&&z(t),e.preventDefault()},ee=function(e){if(e.ctrlKey&&e.shiftKey){var t=X(),n=i.DomHandler.find(t,'[data-pc-section="item"]'),r=i.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),o=E(n).findIndex((function(e){return e===r}));d(E(J).slice(0,o+1))}else le(0);e.preventDefault()},te=function(e){var t=X();if(e.ctrlKey&&e.shiftKey){var n=i.DomHandler.find(t,'[data-pc-section="item"]'),r=i.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),o=E(n).findIndex((function(e){return e===r}));d(E(J).slice(o,n.length))}else le(i.DomHandler.find(t,'[data-pc-section="item"]').length-1);e.preventDefault()},ne=function(e){var t=X(),n=i.DomHandler.find(t,'[data-pc-section="item"]'),r=i.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),o=E(n).findIndex((function(e){return e===r}));q({originalEvent:e,value:J[o],index:o}),e.preventDefault()},re=function(e){e.preventDefault();var t=X();if(e.shiftKey&&s&&s.length>0){var n=i.DomHandler.find(t,'[data-pc-section="item"]'),r=i.ObjectUtils.findIndexInList(s[0],E(J)),o=i.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),l=E(n).findIndex((function(e){return e===o}));d(E(J).slice(Math.min(r,l),Math.max(r,l)+1))}else ne(e)},oe=function(e){var t=X(),n=E(i.DomHandler.find(t,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return n>-1?n+1:0},ie=function(e){var t=X(),n=E(i.DomHandler.find(t,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return n>-1?n-1:0},le=function(e){var t,n=X(),r=i.DomHandler.find(n,'[data-pc-section="item"]');if(e>=r.length)t=r.length-1;else{if(e<0)return;t=e}var o=r[t]?r[t].getAttribute("id"):-1;k(o),ae(o)},ae=function(e){var t=X(),n=i.DomHandler.findSingle(t,'[data-pc-section="item"][id="'.concat(e,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})},ce=function(){if(!T.current){T.current=i.DomHandler.createInlineStyle(a&&a.nonce||g.default.nonce,a&&a.styleContainer);var e="\n@media screen and (max-width: ".concat(c.breakpoint,") {\n .p-orderlist[").concat(h,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(h,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(h,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(h,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");T.current.innerHTML=e}};v.useImperativeHandle(t,(function(){return{props:c,getElement:function(){return K.current}}})),o.useMountEffect((function(){!h&&I(i.UniqueComponentId())})),o.useUpdateEffect((function(){return h&&(K.current.setAttribute(h,""),ce()),function(){T.current=i.DomHandler.removeInlineStyle(T.current)}}),[h,c.breakpoint]),o.useUpdateEffect((function(){N(-1!==B?B:null)}),[B]),o.useUpdateEffect((function(){P.current&&(P.current=null)}));var ue=l({ref:K,id:c.id,className:i.classNames(c.className,V("root")),style:c.style},L.getOtherProps(c),_("root"));return v.createElement("div",ue,v.createElement(C,{hostName:"OrderList",value:J,selection:s,onReorder:function(e){c.onChange&&c.onChange({event:e.originalEvent,value:e.value}),P.current=e.direction},dataKey:c.dataKey,moveUpIcon:c.moveUpIcon,moveTopIcon:c.moveTopIcon,moveDownIcon:c.moveDownIcon,moveBottomIcon:c.moveBottomIcon,ptm:_,cx:V,unstyled:c.unstyled,metaData:A}),v.createElement(M,b({ref:F,hostName:"OrderList"},c,{focused:O,ariaLabel:c.ariaLabel,ariaLabelledBy:c.ariaLabelledBy,value:J,selection:s,onItemClick:q,onOptionMouseDown:function(e){k(e)},focusedOptionId:S,onListKeyDown:function(e){switch(e.code){case"ArrowDown":Q(e);break;case"ArrowUp":Z(e);break;case"Home":ee(e);break;case"End":te(e);break;case"Enter":case"NumpadEnter":ne(e);break;case"Space":re(e);break;case"KeyA":e.ctrlKey&&(d(J),e.preventDefault())}},onListFocus:function(e){w(!0);var t=X(),n=W(t);le(n),c.onFocus&&c.onFocus(e)},onListBlur:function(e){w(!1),k(-1),c.onBlur&&c.onBlur(e)},onFilterInputChange:function(e){var t=e.target.value;m(t),c.onFilter&&c.onFilter({originalEvent:e,filter:t})},itemTemplate:c.itemTemplate,filter:c.filter,onFilter:function(e){var t=e.target.value;m(t),c.onFilter&&c.onFilter({originalEvent:e,value:t})},resetFilter:function(){m(""),c.onFilter&&c.onFilter({filter:""})},filterTemplate:c.filterTemplate,header:c.header,parentId:h,listStyle:c.listStyle,dataKey:c.dataKey,dragdrop:c.dragdrop,onChange:c.onChange,tabIndex:c.tabIndex,filterIcon:c.filterIcon,isUnstyled:Y,ptm:_,cx:V,changeFocusedOptionIndex:le})))})));return K.displayName="OrderList",e.OrderList=K,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.utils,primereact.button,primereact.icons.angledoubledown,primereact.icons.angledoubleup,primereact.icons.angledown,primereact.icons.angleup,primereact.icons.search,primereact.ripple);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.orderlist=function(e,t,n,r,o,i,l,a,c,u,s,d,p){"use strict";function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var v=m(t),g=f(n);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(null,arguments)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e){if(Array.isArray(e))return y(e)}function I(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function D(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function O(){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(e){return h(e)||I(e)||D(e)||O()}function w(e){if(Array.isArray(e))return e}function x(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}function S(){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 j(e,t){return w(e)||x(e,t)||D(e,t)||S()}var L=r.ComponentBase.extend({defaultProps:{__TYPE:"OrderList",id:null,ariaLabel:null,ariaLabelledBy:null,value:null,header:null,style:null,className:null,listStyle:null,dragdrop:!1,tabIndex:0,filterIcon:null,moveUpIcon:null,moveTopIcon:null,moveDownIcon:null,moveBottomIcon:null,dataKey:null,autoOptionFocus:!0,focusOnHover:!0,breakpoint:"960px",onChange:null,itemTemplate:null,filter:!1,filterBy:null,filterMatchMode:"contains",filterLocale:void 0,filterPlaceholder:null,filterTemplate:null,onFilter:null,children:void 0},css:{classes:{root:"p-orderlist p-component",controls:"p-orderlist-controls",droppoint:"p-orderlist-droppoint",header:"p-orderlist-header",list:"p-orderlist-list",icon:"p-orderlist-filter",filter:"p-orderlist-filter",filterInput:"p-orderlist-filter-input p-inputtext p-component",filterIcon:"p-orderlist-filter-icon",filterContainer:"p-orderlist-filter-container",container:"p-orderlist-list-container",item:function(e){return i.classNames("p-orderlist-item",{"p-highlight":e.selected,"p-focus":e.focused})}},styles:"\n@layer primereact {\n .p-orderlist {\n display: flex;\n }\n\n .p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n\n .p-orderlist-list-container {\n flex: 1 1 auto;\n }\n\n .p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n }\n\n .p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n }\n\n .p-orderlist-filter {\n position: relative;\n }\n\n .p-orderlist-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n }\n\n .p-orderlist-filter-input {\n width: 100%;\n }\n\n .p-orderlist.p-state-disabled .p-orderlist-item,\n .p-orderlist.p-state-disabled .p-button {\n cursor: default;\n }\n\n .p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n }\n\n .p-orderlist .p-orderlist-droppoint {\n height: 0.5rem;\n }\n\n .p-orderlist .p-orderlist-droppoint.p-orderlist-droppoint-highlight {\n background: var(--primary-color);\n }\n}\n"}}),C=v.memo((function(e){var t=o.useMergeProps(),r=e.moveUpIcon||v.createElement(s.AngleUpIcon,null),d=e.moveTopIcon||v.createElement(c.AngleDoubleUpIcon,null),p=e.moveDownIcon||v.createElement(u.AngleDownIcon,null),f=e.moveBottomIcon||v.createElement(a.AngleDoubleDownIcon,null),m=e.ptm,g=e.cx,y=e.unstyled,h=i.ObjectUtils.isEmpty(e.value)||i.ObjectUtils.isEmpty(e.selection),I=t({className:g("controls")},m("controls",{hostName:e.hostName})),D=t({type:"button",unstyled:y,icon:r,onClick:function(t){if(e.selection){for(var n=E(e.value),r=0;r<e.selection.length;r++){var o=i.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(0===o)break;var l=n[o-1];n[o-1]=n[o],n[o]=l}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"up"})}},disabled:h,"aria-label":n.ariaLabel("moveUp"),__parentMetadata:{parent:e.metaData}},m("moveUpButton")),O=t({type:"button",unstyled:y,icon:d,onClick:function(t){if(e.selection){for(var n=E(e.value),r=e.selection.length-1;r>=0;r--){var o=i.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(0===o)break;var l=n.splice(o,1)[0];n.unshift(l)}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"top"})}},disabled:h,"aria-label":n.ariaLabel("moveTop"),__parentMetadata:{parent:e.metaData}},m("moveTopButton")),w=t({type:"button",unstyled:y,icon:p,onClick:function(t){if(e.selection){for(var n=E(e.value),r=e.selection.length-1;r>=0;r--){var o=i.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(o===n.length-1)break;var l=n[o+1];n[o+1]=n[o],n[o]=l}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"down"})}},disabled:h,"aria-label":n.ariaLabel("moveDown"),__parentMetadata:{parent:e.metaData}},m("moveDownButton")),x=t({type:"button",unstyled:y,icon:f,onClick:function(t){if(e.selection){for(var n=E(e.value),r=0;r<e.selection.length;r++){var o=i.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(o===n.length-1)break;var l=n.splice(o,1)[0];n.push(l)}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"bottom"})}},disabled:h,"aria-label":n.ariaLabel("moveBottom"),__parentMetadata:{parent:e.metaData}},m("moveBottomButton"));return v.createElement("div",I,v.createElement(l.Button,b({pt:m("moveUpButton")},D)),v.createElement(l.Button,b({pt:m("moveTopButton")},O)),v.createElement(l.Button,b({pt:m("moveDownButton")},w)),v.createElement(l.Button,b({pt:m("moveBottomButton")},x)))}));function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function U(e,t){if("object"!=N(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function B(e){var t=U(e,"string");return"symbol"==N(t)?t:t+""}function k(e,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}C.displayName="OrderListControls";var K=v.memo(v.forwardRef((function(e,t){var n=o.useMergeProps(),r=e.ptm,l=e.cx,a=function(t,n){return r(t,M({hostName:e.hostName},n))},c=function(e,t){return a(t,{context:{selected:y(e)}})},u=v.useRef(null),s=v.useRef(null),f=v.useRef(null),m=v.useRef(null),g={filter:function(t){return e.onFilterInputChange(t)},reset:function(){return e.resetFilter()}},y=function(t){return-1!==i.ObjectUtils.findIndexInList(t,e.selection,e.dataKey)},h=function(t,n){s.current!==n&&s.current+1!==n&&(f.current=n,!e.isUnstyled()&&i.DomHandler.addClass(t.target,"p-orderlist-droppoint-highlight"),t.target.setAttribute("data-p-orderlist-droppoint-highlight",!0),t.preventDefault())},I=function(t){f.current=null,!e.isUnstyled()&&i.DomHandler.removeClass(t.target,"p-orderlist-droppoint-highlight"),t.target.setAttribute("data-p-orderlist-droppoint-highlight",!1)},D=function(t){var n=s.current>f.current?f.current:0===f.current?0:f.current-1,r=E(e.value);i.ObjectUtils.reorderArray(r,s.current,n),f.current=null,!e.isUnstyled()&&i.DomHandler.removeClass(t.target,"p-orderlist-droppoint-highlight"),t.target.setAttribute("data-p-orderlist-droppoint-highlight",!1),e.onChange&&e.onChange({originalEvent:t,value:r})},O=function(e){u.current=!1},w=function(e){if(u.current){var t=m.current.getBoundingClientRect().top+i.DomHandler.getWindowScrollTop(),n=t+m.current.clientHeight-e.pageY,r=e.pageY-t;n<25&&n>0?m.current.scrollTop+=15:r<25&&r>0&&(m.current.scrollTop-=15)}},x=function(e){13===e.which&&e.preventDefault()},S=function(t,n){var r;e.focusOnHover&&e.focused&&(null==e||null===(r=e.changeFocusedOptionIndex)||void 0===r||r.call(e,n))},j=function(e,t){var r=n({className:l("droppoint"),onDragOver:function(t){return h(t,e+1)},onDragLeave:I,onDrop:D},a("droppoint"));return v.createElement("li",b({key:t},r))};v.useImperativeHandle(t,(function(){return{getElement:function(){return m.current}}}));var L,C,N,U=(L=n({className:l("header")},a("header")),e.header?v.createElement("div",L,e.header):null),B=function(){var t=n({className:l("icon")},a("icon")),r=i.IconUtils.getJSXIcon(e.filterIcon||v.createElement(d.SearchIcon,t),M({},t),{props:e});if(e.filter){var o=n({className:l("filter")},a("filter")),c=n({type:"text",value:e.filterValue,onChange:e.onFilter,onKeyDown:x,placeholder:e.placeholder,className:l("filterInput")},a("filterInput")),u=n({className:l("filterIcon")},a("filterIcon")),s=v.createElement("div",o,v.createElement("input",c),v.createElement("span",u,r));if(e.filterTemplate)s=i.ObjectUtils.getJSXElement(e.filterTemplate,{className:"p-orderlist-filter",inputProps:{inputClassName:"p-orderlist-filter-input p-inputtext p-component",onChange:e.onFilter,onKeyDown:x},filterOptions:g,iconClassName:"p-orderlist-filter-icon",element:s,props:e});var p=n({className:l("filterContainer")},a("filterContainer"));return v.createElement("div",p,s)}return null}(),k=(C=e.value?e.value.map((function(t,r){var o=e.itemTemplate?e.itemTemplate(t):t,a=e.parentId+"_"+r,d=e.focused&&e.focusedOptionId===a,f=y(t);if(e.dragdrop){var m=n({id:a,role:"option",draggable:"true",onClick:function(n){return e.onItemClick({originalEvent:n,value:t,index:r})},onMouseDown:e.onOptionMouseDown,onMouseMove:function(e){return S(0,r)},onDragStart:function(e){return t=r,e.dataTransfer.setData("text","orderlist"),u.current=!0,void(s.current=t);var t},onDragEnd:O,className:i.classNames(e.className,l("item",{selected:f,focused:d})),"aria-selected":f,"data-p-highlight":f,"data-p-focused":d},c(t,"item")),g=[];return 0===r&&g.push(j(t,r)),g.push(v.createElement("li",b({key:a},m),o)),g.push(j(r,a+"_droppoint")),g}var h=n({id:a,role:"option",onClick:function(n){return e.onItemClick({originalEvent:n,value:t,index:r})},onMouseDown:e.onOptionMouseDown,onMouseMove:function(e){return S(0,r)},className:i.classNames(e.className,l("item",{selected:f,focused:d})),"aria-selected":f,"data-p-highlight":f,"data-p-focused":d},c(t,"item"));return v.createElement("li",b({key:a},h),o,v.createElement(p.Ripple,null))})):null,N=n({ref:m,className:l("list"),style:e.listStyle,onDragOver:w,role:"listbox",onFocus:e.onListFocus,onBlur:e.onListBlur,onKeyDown:e.onListKeyDown,tabIndex:e.tabIndex,"aria-activedescendant":e.focused?e.focusedOptionId:null,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-multiselectable":!0},a("list")),v.createElement("ul",N,C)),H=n({className:l("container")},a("container"));return v.createElement("div",H,U,B,k)})));K.displayName="OrderListSubList";var T=v.memo(v.forwardRef((function(e,t){var l=o.useMergeProps(),a=v.useContext(n.PrimeReactContext),c=L.getProps(e,a),u=j(v.useState([]),2),s=u[0],d=u[1],p=j(v.useState(""),2),f=p[0],m=p[1],y=j(v.useState(null),2),h=y[0],I=y[1],D=j(v.useState(!1),2),O=D[0],w=D[1],x=j(v.useState(null),2),S=x[0],N=x[1],U=j(v.useState(-1),2),B=U[0],k=U[1],H=i.ObjectUtils.isNotEmpty(f),M=v.useRef(null),T=v.useRef(null),P=v.useRef(null),F=v.useRef(null),A={props:c,state:{selection:s,filterValue:f,attributeSelector:h}},R=L.setMetaData(A),_=R.ptm,V=R.cx,Y=R.isUnstyled;r.useHandleStyle(L.css.styles,Y,{name:"orderlist"});var J=function(){if(H){var e=f.trim().toLocaleLowerCase(c.filterLocale),t=c.filterBy?c.filterBy.split(","):[];return n.FilterService.filter(c.value,t,e,c.filterMatchMode,c.filterLocale)}return c.value}(),X=function(){return F.current&&F.current.getElement()},q=function(e){var t=e.originalEvent,n=e.value,r=e.index,o=i.ObjectUtils.findIndexInList(n,s),l=X(),a=i.DomHandler.find(l,'[data-pc-section="item"]')[r].getAttribute("id");k(a);var c,u=t.metaKey||t.ctrlKey;c=-1!==o?u?s.filter((function(e,t){return t!==o})):[n]:u?[].concat(E(s),[n]):[n],d(c)},z=function(e){var t=J[e],n=-1!==i.ObjectUtils.findIndexInList(t,s);d(n?s.filter((function(e){return e!==t})):[].concat(E(s),[t]))},W=function(e){if(-1===B){var t=e&&e.children?E(e.children):[],n=$(e,t);return c.autoOptionFocus&&-1===n&&(n=G(e,t)),n}return-1},$=function(e,t){if(s.length){var n=i.DomHandler.findSingle(e,'[data-p-highlight="true"]');return i.ObjectUtils.findIndexInList(n,t)}return-1},G=function(e,t){var n=i.DomHandler.findSingle(e,'[data-pc-section="item"]');return i.ObjectUtils.findIndexInList(n,t)},Q=function(e){var t=oe(B);le(t),e.shiftKey&&z(t),e.preventDefault()},Z=function(e){var t=ie(B);le(t),e.shiftKey&&z(t),e.preventDefault()},ee=function(e){if(e.ctrlKey&&e.shiftKey){var t=X(),n=i.DomHandler.find(t,'[data-pc-section="item"]'),r=i.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),o=E(n).findIndex((function(e){return e===r}));d(E(J).slice(0,o+1))}else le(0);e.preventDefault()},te=function(e){var t=X();if(e.ctrlKey&&e.shiftKey){var n=i.DomHandler.find(t,'[data-pc-section="item"]'),r=i.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),o=E(n).findIndex((function(e){return e===r}));d(E(J).slice(o,n.length))}else le(i.DomHandler.find(t,'[data-pc-section="item"]').length-1);e.preventDefault()},ne=function(e){var t=X(),n=i.DomHandler.find(t,'[data-pc-section="item"]'),r=i.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),o=E(n).findIndex((function(e){return e===r}));q({originalEvent:e,value:J[o],index:o}),e.preventDefault()},re=function(e){e.preventDefault();var t=X();if(e.shiftKey&&s&&s.length>0){var n=i.DomHandler.find(t,'[data-pc-section="item"]'),r=i.ObjectUtils.findIndexInList(s[0],E(J)),o=i.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),l=E(n).findIndex((function(e){return e===o}));d(E(J).slice(Math.min(r,l),Math.max(r,l)+1))}else ne(e)},oe=function(e){var t=X(),n=E(i.DomHandler.find(t,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return n>-1?n+1:0},ie=function(e){var t=X(),n=E(i.DomHandler.find(t,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return n>-1?n-1:0},le=function(e){var t,n=X(),r=i.DomHandler.find(n,'[data-pc-section="item"]');if(e>=r.length)t=r.length-1;else{if(e<0)return;t=e}var o=r[t]?r[t].getAttribute("id"):-1;k(o),ae(o)},ae=function(e){var t=X(),n=i.DomHandler.findSingle(t,'[data-pc-section="item"][id="'.concat(e,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})},ce=function(){if(!T.current){T.current=i.DomHandler.createInlineStyle(a&&a.nonce||g.default.nonce,a&&a.styleContainer);var e="\n@media screen and (max-width: ".concat(c.breakpoint,") {\n .p-orderlist[").concat(h,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(h,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(h,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(h,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");T.current.innerHTML=e}};v.useImperativeHandle(t,(function(){return{props:c,getElement:function(){return M.current}}})),o.useMountEffect((function(){!h&&I(i.UniqueComponentId())})),o.useUpdateEffect((function(){return h&&(M.current.setAttribute(h,""),ce()),function(){T.current=i.DomHandler.removeInlineStyle(T.current)}}),[h,c.breakpoint]),o.useUpdateEffect((function(){N(-1!==B?B:null)}),[B]),o.useUpdateEffect((function(){P.current&&(P.current=null)}));var ue=l({ref:M,id:c.id,className:i.classNames(c.className,V("root")),style:c.style},L.getOtherProps(c),_("root"));return v.createElement("div",ue,v.createElement(C,{hostName:"OrderList",value:J,selection:s,onReorder:function(e){c.onChange&&c.onChange({event:e.originalEvent,value:e.value}),P.current=e.direction},dataKey:c.dataKey,moveUpIcon:c.moveUpIcon,moveTopIcon:c.moveTopIcon,moveDownIcon:c.moveDownIcon,moveBottomIcon:c.moveBottomIcon,ptm:_,cx:V,unstyled:c.unstyled,metaData:A}),v.createElement(K,b({ref:F,hostName:"OrderList"},c,{focused:O,ariaLabel:c.ariaLabel,ariaLabelledBy:c.ariaLabelledBy,value:J,selection:s,onItemClick:q,onOptionMouseDown:function(e){k(e)},focusedOptionId:S,onListKeyDown:function(e){switch(e.code){case"ArrowDown":Q(e);break;case"ArrowUp":Z(e);break;case"Home":ee(e);break;case"End":te(e);break;case"Enter":case"NumpadEnter":ne(e);break;case"Space":re(e);break;case"KeyA":e.ctrlKey&&(d(J),e.preventDefault())}},onListFocus:function(e){w(!0);var t=X(),n=W(t);le(n),c.onFocus&&c.onFocus(e)},onListBlur:function(e){w(!1),k(-1),c.onBlur&&c.onBlur(e)},onFilterInputChange:function(e){var t=e.target.value;m(t),c.onFilter&&c.onFilter({originalEvent:e,filter:t})},itemTemplate:c.itemTemplate,filter:c.filter,onFilter:function(e){var t=e.target.value;m(t),c.onFilter&&c.onFilter({originalEvent:e,value:t})},resetFilter:function(){m(""),c.onFilter&&c.onFilter({filter:""})},filterTemplate:c.filterTemplate,header:c.header,parentId:h,listStyle:c.listStyle,dataKey:c.dataKey,dragdrop:c.dragdrop,onChange:c.onChange,tabIndex:c.tabIndex,filterIcon:c.filterIcon,isUnstyled:Y,ptm:_,cx:V,changeFocusedOptionIndex:le})))})));return T.displayName="OrderList",e.OrderList=T,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.utils,primereact.button,primereact.icons.angledoubledown,primereact.icons.angledoubleup,primereact.icons.angledown,primereact.icons.angleup,primereact.icons.search,primereact.ripple);
|