primereact 10.8.4 → 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 +43 -55
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +43 -55
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +43 -55
- 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 +72 -71
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +72 -71
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +72 -71
- 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 +17 -23
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +17 -23
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +17 -23
- 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 +37 -49
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +37 -49
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +37 -49
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +23 -34
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +23 -34
- package/button/button.esm.min.js +1 -1
- package/button/button.js +23 -34
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +48 -60
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +48 -60
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +48 -60
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +43 -55
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +43 -55
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +43 -55
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +40 -52
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +40 -52
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +40 -52
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/checkbox.cjs.js +37 -49
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +37 -49
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +37 -49
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +37 -49
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +37 -49
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +37 -49
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +46 -56
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +46 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +46 -56
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +37 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +37 -49
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +37 -49
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +33 -40
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +33 -40
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +33 -40
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +37 -49
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +37 -49
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +37 -49
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +37 -49
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +37 -49
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +37 -49
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +37 -49
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +37 -49
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +37 -49
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1008 -1436
- package/core/core.min.js +67 -67
- package/csstransition/csstransition.cjs.js +17 -23
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +17 -23
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +17 -23
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +26 -32
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +26 -32
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +26 -32
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +94 -113
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +94 -113
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +94 -113
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +46 -58
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +46 -58
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +46 -58
- 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 +44 -56
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +44 -56
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +44 -56
- package/dialog/dialog.min.js +1 -1
- package/dock/dock.cjs.js +43 -55
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +43 -55
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +43 -55
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +46 -58
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +46 -58
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +46 -58
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +37 -49
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +37 -49
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +37 -49
- 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 +48 -60
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +48 -60
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +48 -60
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +17 -23
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +17 -23
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +17 -23
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +43 -55
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +43 -55
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +43 -55
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +37 -44
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +37 -44
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +37 -44
- package/hooks/hooks.min.js +1 -1
- package/iconfield/iconfield.cjs.js +23 -34
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +23 -34
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +23 -34
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +6 -11
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +6 -11
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +6 -11
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +6 -11
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +6 -11
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +6 -11
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +6 -11
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +6 -11
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +6 -11
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +6 -11
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +6 -11
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +6 -11
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +6 -11
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +6 -11
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +6 -11
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +6 -11
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +6 -11
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +6 -11
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +6 -11
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +6 -11
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +6 -11
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +6 -11
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +6 -11
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +6 -11
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +6 -11
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +6 -11
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -11
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +6 -11
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +6 -11
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -11
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +6 -11
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +6 -11
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -11
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +6 -11
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +6 -11
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +6 -11
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +6 -11
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +6 -11
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +6 -11
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +6 -11
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +6 -11
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +6 -11
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +6 -11
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +6 -11
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +6 -11
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +6 -11
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +6 -11
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +6 -11
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +6 -11
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +6 -11
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +6 -11
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +6 -11
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +6 -11
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +6 -11
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +6 -11
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +6 -11
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +6 -11
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +6 -11
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +6 -11
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +6 -11
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +6 -11
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +6 -11
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +6 -11
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +6 -11
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +6 -11
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +6 -11
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +6 -11
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -11
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +6 -11
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +6 -11
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -11
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +6 -11
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +6 -11
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -11
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +6 -11
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +6 -11
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -11
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +6 -11
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +6 -11
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +6 -11
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +6 -11
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +6 -11
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -11
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +6 -11
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +6 -11
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -11
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +6 -11
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +6 -11
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -11
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +6 -11
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +6 -11
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -11
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +6 -11
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +6 -11
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -11
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +6 -11
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +6 -11
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -11
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +6 -11
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -11
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +6 -11
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +6 -11
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +6 -11
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +6 -11
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +6 -11
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +6 -11
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -11
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +6 -11
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +6 -11
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -11
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +6 -11
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +6 -11
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -11
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +6 -11
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +6 -11
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -11
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +6 -11
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +6 -11
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +6 -11
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +6 -11
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +6 -11
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -11
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +6 -11
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +6 -11
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -11
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +6 -11
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +6 -11
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -11
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +6 -11
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +6 -11
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -11
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +6 -11
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +6 -11
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -11
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +6 -11
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +6 -11
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -11
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +37 -49
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +37 -49
- package/image/image.esm.min.js +1 -1
- package/image/image.js +37 -49
- 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 +23 -34
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +23 -34
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +23 -34
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +8 -12
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +8 -12
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +8 -12
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +46 -55
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +47 -56
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +46 -55
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +43 -55
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +43 -55
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +43 -55
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +23 -34
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +23 -34
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +23 -34
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +30 -34
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +30 -34
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +30 -34
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +25 -35
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +25 -35
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -35
- 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 +14 -15
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +14 -15
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +14 -15
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +46 -58
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +46 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +46 -58
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +39 -51
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +39 -51
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +39 -51
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +46 -56
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +46 -56
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +46 -56
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +43 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +43 -55
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +43 -55
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +37 -49
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +37 -49
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +37 -49
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +23 -34
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +23 -34
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -34
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +44 -57
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +45 -58
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +44 -57
- 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 +138 -155
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +138 -155
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +138 -155
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +37 -49
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +37 -49
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +37 -49
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +43 -55
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +43 -55
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +43 -55
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +45 -61
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +45 -61
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +45 -61
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +37 -49
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +37 -49
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +37 -49
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +41 -56
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +41 -56
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +41 -56
- 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 +37 -49
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +37 -49
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +37 -49
- 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 +14 -15
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +14 -15
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +14 -15
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +37 -49
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +37 -49
- package/password/password.esm.min.js +1 -1
- package/password/password.js +37 -49
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +49 -64
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +49 -64
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +49 -64
- 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 +324 -320
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +324 -320
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +324 -320
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +23 -34
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +23 -34
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +23 -34
- package/progressbar/progressbar.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +23 -34
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +23 -34
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +23 -34
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +37 -49
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +37 -49
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +37 -49
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +4 -1
- package/resources/themes/arya-green/theme.css +4 -1
- package/resources/themes/arya-orange/theme.css +4 -1
- package/resources/themes/arya-purple/theme.css +4 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +4 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +4 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +4 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +4 -1
- package/resources/themes/fluent-light/theme.css +4 -1
- package/resources/themes/lara-dark-amber/theme.css +2 -1
- package/resources/themes/lara-dark-blue/theme.css +2 -1
- package/resources/themes/lara-dark-cyan/theme.css +2 -1
- package/resources/themes/lara-dark-green/theme.css +2 -1
- package/resources/themes/lara-dark-indigo/theme.css +2 -1
- package/resources/themes/lara-dark-pink/theme.css +2 -1
- package/resources/themes/lara-dark-purple/theme.css +2 -1
- package/resources/themes/lara-dark-teal/theme.css +2 -1
- package/resources/themes/lara-light-amber/theme.css +2 -1
- package/resources/themes/lara-light-blue/theme.css +2 -1
- package/resources/themes/lara-light-cyan/theme.css +2 -1
- package/resources/themes/lara-light-green/theme.css +2 -1
- package/resources/themes/lara-light-indigo/theme.css +2 -1
- package/resources/themes/lara-light-pink/theme.css +2 -1
- package/resources/themes/lara-light-purple/theme.css +2 -1
- package/resources/themes/lara-light-teal/theme.css +2 -1
- package/resources/themes/luna-amber/theme.css +4 -1
- package/resources/themes/luna-blue/theme.css +4 -1
- package/resources/themes/luna-green/theme.css +4 -1
- package/resources/themes/luna-pink/theme.css +4 -1
- package/resources/themes/md-dark-deeppurple/theme.css +3 -1
- package/resources/themes/md-dark-indigo/theme.css +3 -1
- package/resources/themes/md-light-deeppurple/theme.css +3 -1
- package/resources/themes/md-light-indigo/theme.css +3 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-dark-indigo/theme.css +3 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-light-indigo/theme.css +3 -1
- package/resources/themes/mira/theme.css +2 -1
- package/resources/themes/nano/theme.css +4 -1
- package/resources/themes/nova/theme.css +4 -1
- package/resources/themes/nova-accent/theme.css +4 -1
- package/resources/themes/nova-alt/theme.css +4 -1
- package/resources/themes/rhea/theme.css +4 -1
- package/resources/themes/saga-blue/theme.css +4 -1
- package/resources/themes/saga-green/theme.css +4 -1
- package/resources/themes/saga-orange/theme.css +4 -1
- package/resources/themes/saga-purple/theme.css +4 -1
- package/resources/themes/soho-dark/theme.css +1 -0
- package/resources/themes/soho-light/theme.css +1 -0
- package/resources/themes/tailwind-light/theme.css +2 -1
- package/resources/themes/vela-blue/theme.css +4 -1
- package/resources/themes/vela-green/theme.css +4 -1
- package/resources/themes/vela-orange/theme.css +4 -1
- package/resources/themes/vela-purple/theme.css +4 -1
- package/resources/themes/viva-dark/theme.css +1 -0
- package/resources/themes/viva-light/theme.css +1 -0
- package/ripple/ripple.cjs.js +37 -49
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +37 -49
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +37 -49
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +20 -26
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +20 -26
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +20 -26
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +37 -49
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +37 -49
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +37 -49
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +26 -32
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +26 -32
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +26 -32
- 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.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 +17 -23
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +17 -23
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +17 -23
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +37 -49
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +37 -49
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +37 -49
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +43 -55
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +43 -55
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +43 -55
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +43 -55
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +43 -55
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -55
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +37 -49
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -2
- package/splitbutton/splitbutton.esm.js +37 -49
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +37 -49
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +43 -55
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +43 -55
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +43 -55
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.js +37 -49
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +37 -49
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +37 -49
- package/stepper/stepper.min.js +1 -1
- package/steps/steps.cjs.js +37 -49
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +37 -49
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +37 -49
- 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 +37 -49
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +37 -49
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +37 -49
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +37 -44
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +37 -44
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +37 -44
- 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 +20 -21
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +20 -21
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +20 -21
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +37 -49
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +37 -49
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +37 -49
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +23 -34
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +23 -34
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +23 -34
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +53 -73
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +53 -73
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +53 -73
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +24 -35
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +24 -35
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +24 -35
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/tooltip.cjs.js +43 -55
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +43 -55
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +43 -55
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +50 -62
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +50 -62
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +50 -62
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +48 -59
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +48 -59
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +48 -59
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +61 -70
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +61 -70
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +61 -70
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +37 -49
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +37 -49
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +37 -49
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +59 -79
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +59 -79
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +59 -79
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +37 -49
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +37 -49
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +37 -49
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +3 -3
|
@@ -23,18 +23,13 @@ this.primereact.multistatecheckbox = (function (exports, React, api, componentba
|
|
|
23
23
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
24
|
|
|
25
25
|
function _extends() {
|
|
26
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
27
|
-
for (var
|
|
28
|
-
var
|
|
29
|
-
for (var
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
-
target[key] = source[key];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
26
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
27
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
28
|
+
var t = arguments[e];
|
|
29
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
34
30
|
}
|
|
35
|
-
return
|
|
36
|
-
};
|
|
37
|
-
return _extends.apply(this, arguments);
|
|
31
|
+
return n;
|
|
32
|
+
}, _extends.apply(null, arguments);
|
|
38
33
|
}
|
|
39
34
|
|
|
40
35
|
function _typeof(o) {
|
|
@@ -47,39 +42,33 @@ this.primereact.multistatecheckbox = (function (exports, React, api, componentba
|
|
|
47
42
|
}, _typeof(o);
|
|
48
43
|
}
|
|
49
44
|
|
|
50
|
-
function
|
|
51
|
-
if (
|
|
52
|
-
var
|
|
53
|
-
if (
|
|
54
|
-
var
|
|
55
|
-
if (
|
|
45
|
+
function toPrimitive(t, r) {
|
|
46
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
47
|
+
var e = t[Symbol.toPrimitive];
|
|
48
|
+
if (void 0 !== e) {
|
|
49
|
+
var i = e.call(t, r || "default");
|
|
50
|
+
if ("object" != _typeof(i)) return i;
|
|
56
51
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
57
52
|
}
|
|
58
|
-
return (
|
|
53
|
+
return ("string" === r ? String : Number)(t);
|
|
59
54
|
}
|
|
60
55
|
|
|
61
|
-
function
|
|
62
|
-
var
|
|
63
|
-
return _typeof(
|
|
56
|
+
function toPropertyKey(t) {
|
|
57
|
+
var i = toPrimitive(t, "string");
|
|
58
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
64
59
|
}
|
|
65
60
|
|
|
66
|
-
function _defineProperty(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
writable: true
|
|
74
|
-
});
|
|
75
|
-
} else {
|
|
76
|
-
obj[key] = value;
|
|
77
|
-
}
|
|
78
|
-
return obj;
|
|
61
|
+
function _defineProperty(e, r, t) {
|
|
62
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
63
|
+
value: t,
|
|
64
|
+
enumerable: !0,
|
|
65
|
+
configurable: !0,
|
|
66
|
+
writable: !0
|
|
67
|
+
}) : e[r] = t, e;
|
|
79
68
|
}
|
|
80
69
|
|
|
81
|
-
function _arrayWithHoles(
|
|
82
|
-
if (Array.isArray(
|
|
70
|
+
function _arrayWithHoles(r) {
|
|
71
|
+
if (Array.isArray(r)) return r;
|
|
83
72
|
}
|
|
84
73
|
|
|
85
74
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -110,27 +99,26 @@ this.primereact.multistatecheckbox = (function (exports, React, api, componentba
|
|
|
110
99
|
}
|
|
111
100
|
}
|
|
112
101
|
|
|
113
|
-
function _arrayLikeToArray(
|
|
114
|
-
|
|
115
|
-
for (var
|
|
116
|
-
return
|
|
102
|
+
function _arrayLikeToArray(r, a) {
|
|
103
|
+
(null == a || a > r.length) && (a = r.length);
|
|
104
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
105
|
+
return n;
|
|
117
106
|
}
|
|
118
107
|
|
|
119
|
-
function _unsupportedIterableToArray(
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
108
|
+
function _unsupportedIterableToArray(r, a) {
|
|
109
|
+
if (r) {
|
|
110
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
111
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
112
|
+
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;
|
|
113
|
+
}
|
|
126
114
|
}
|
|
127
115
|
|
|
128
116
|
function _nonIterableRest() {
|
|
129
117
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
130
118
|
}
|
|
131
119
|
|
|
132
|
-
function _slicedToArray(
|
|
133
|
-
return _arrayWithHoles(
|
|
120
|
+
function _slicedToArray(r, e) {
|
|
121
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
134
122
|
}
|
|
135
123
|
|
|
136
124
|
var classes$1 = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.multistatecheckbox=function(e,t,n,o,r,l,a,c){"use strict";function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=i(t);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function p(e){return p="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},p(e)}function d(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function f(e){var t=d(e,"string");return"symbol"===p(t)?t:String(t)}function b(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){if(Array.isArray(e))return e}function y(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,l,a,c=[],i=!0,u=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(o=l.call(n)).done)&&(c.push(o.value),c.length!==t);i=!0);}catch(e){u=!0,r=e}finally{try{if(!i&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return c}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function h(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function O(){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 g(e,t){return m(e)||y(e,t)||h(e,t)||O()}var x=o.ComponentBase.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:{box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(e){var t=e.props,n=e.context;return c.classNames("p-checkbox p-component",{"p-highlight":e.checked,"p-disabled":t.disabled,"p-invalid":t.invalid,"p-variant-filled":t.variant?"filled"===t.variant:n&&"filled"===n.inputStyle})}}}});function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=u.memo(u.forwardRef((function(e,t){var i=r.useMergeProps(),p=u.useContext(n.PrimeReactContext),d=x.getProps(e,p),f=g(u.useState(!1),2),b=f[1],m=x.setMetaData({props:d,state:{focused:f[0]},context:{checked:d.checked===d.trueValue,disabled:d.disabled}}),y=m.ptm,v=m.cx;o.useHandleStyle(x.css.styles,m.isUnstyled,{name:"checkbox"});var h=u.useRef(null),O=u.useRef(d.inputRef),j=function(){return d.checked===d.trueValue},P=function(e){if(!d.disabled&&!d.readonly&&d.onChange){var t,n=j()?d.falseValue:d.trueValue;if(null==d||null===(t=d.onChange)||void 0===t||t.call(d,{originalEvent:e,value:d.value,checked:n,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{type:"checkbox",name:d.name,id:d.id,value:d.value,checked:n}}),e.defaultPrevented)return;c.DomHandler.focus(O.current)}};u.useImperativeHandle(t,(function(){return{props:d,focus:function(){return c.DomHandler.focus(O.current)},getElement:function(){return h.current},getInput:function(){return O.current}}})),u.useEffect((function(){c.ObjectUtils.combinedRefs(O,d.inputRef)}),[O,d.inputRef]),r.useUpdateEffect((function(){O.current.checked=j()}),[d.checked,d.trueValue]),r.useMountEffect((function(){d.autoFocus&&c.DomHandler.focus(O.current,d.autoFocus)}));var E,S,D,w,N,C=j(),I=c.ObjectUtils.isNotEmpty(d.tooltip),M=x.getOtherProps(d),R=i({id:d.id,className:c.classNames(d.className,v("root",{checked:C,context:p})),style:d.style,"data-p-highlight":C,"data-p-disabled":d.disabled,onContextMenu:d.onContextMenu,onMouseDown:d.onMouseDown},M,y("root"));return u.createElement(u.Fragment,null,u.createElement("div",s({ref:h},R),(w=c.ObjectUtils.reduceKeys(M,c.DomHandler.ARIA_PROPS),N=i(k({id:d.inputId,type:"checkbox",className:v("input"),name:d.name,tabIndex:d.tabIndex,onFocus:function(e){return b(!0),void(null==d||null===(t=d.onFocus)||void 0===t||t.call(d));var t},onBlur:function(e){return b(!1),void(null==d||null===(t=d.onBlur)||void 0===t||t.call(d));var t},onChange:function(e){return P(e)},disabled:d.disabled,readOnly:d.readOnly,required:d.required,"aria-invalid":d.invalid,checked:C},w),y("input")),u.createElement("input",s({ref:O},N))),(E=i({className:v("icon")},y("icon")),S=i({className:v("box",{checked:C}),"data-p-highlight":C,"data-p-disabled":d.disabled},y("box")),D=c.IconUtils.getJSXIcon(C?d.icon||u.createElement(l.CheckIcon,E):null,k({},E),{props:d,checked:C}),u.createElement("div",S,D))),I&&u.createElement(a.Tooltip,s({target:h,content:d.tooltip,pt:y("tooltip")},d.tooltipOptions)))})));P.displayName="Checkbox";var E=o.ComponentBase.extend({defaultProps:{__TYPE:"MultiStateCheckbox",autoFocus:!1,className:null,dataKey:null,disabled:!1,empty:!0,iconTemplate:null,id:null,onChange:null,optionIcon:null,optionLabel:null,optionValue:null,options:null,readOnly:!1,style:null,tabIndex:"0",tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:{icon:function(e){return c.classNames("p-checkbox-icon p-c",b({},"".concat(e.icon),!0))},root:function(e){return c.classNames("p-multistatecheckbox p-checkbox p-component",e.props.classNames)}},inlineStyles:{checkbox:function(e){var t=e.selectedOption;return t&&t.style}}}});function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=u.memo(u.forwardRef((function(e,t){var l=r.useMergeProps(),i=u.useContext(n.PrimeReactContext),p=E.getProps(e,i),d=g(u.useState(!1),2),f=d[0],m=d[1],y=u.useRef(null),v=p.optionValue?null:p.dataKey,h=E.setMetaData({props:p,state:{focused:f}}),O=h.ptm,x=h.cx,j=h.sx;o.useHandleStyle(E.css.styles,h.isUnstyled,{name:"multistatecheckbox"});var k=function(e){p.disabled||p.readOnly||w(e)},S=function(e){return p.optionValue?c.ObjectUtils.resolveFieldData(e,p.optionValue):e},w=function(e){if(p.onChange){var t=S(p.options?R===p.options.length-1?p.empty?null:p.options[0]:p.options[R+1]:null);p.onChange({originalEvent:e,value:t,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:p.name,id:p.id,value:t}})}};u.useImperativeHandle(t,(function(){return{props:p,focus:function(){return c.DomHandler.focusFirstElement(y.current)},getElement:function(){return y.current}}})),r.useMountEffect((function(){p.empty||null!==p.value||w(),p.autoFocus&&c.DomHandler.focusFirstElement(y.current)}));var N,C,I=(p.options&&(C=p.options.findIndex((function(e){return c.ObjectUtils.equals(p.value,S(e),v)})),N=p.options[C]),{option:N,index:C}),M=I.option,R=I.index,U=c.ObjectUtils.isNotEmpty(p.tooltip),F=E.getOtherProps(p),V=c.ObjectUtils.reduceKeys(F,c.DomHandler.ARIA_PROPS),A=function(){var e=M&&c.ObjectUtils.resolveFieldData(M,p.optionIcon||"icon")||"",t=c.classNames("p-checkbox-icon p-c",b({},"".concat(e),!0)),n=l({className:x("icon",{icon:e})},O("icon")),o=c.IconUtils.getJSXIcon(e,D({},n),{props:p});return p.iconTemplate?c.ObjectUtils.getJSXElement(p.iconTemplate,{option:M,className:t,element:o,props:p}):o}(),H=M?function(e){var t=p.optionLabel||p.optionValue;return t?c.ObjectUtils.resolveFieldData(e,t):e}(M):n.ariaLabel("nullLabel"),_=M?"true":"false",T=l({ref:y,id:p.id,className:c.classNames(p.className,x("root")),style:p.style,onClick:k},E.getOtherProps(p),O("root")),B=l(D({className:c.classNames(p.className),style:j("checkbox",{selectedOption:M}),tabIndex:p.tabIndex,onFocus:function(){m(!0)},onBlur:function(){m(!1)},onKeyDown:function(e){32===e.keyCode&&(w(e),e.preventDefault())},role:"checkbox","aria-checked":_,onChange:k,checked:!!M,disabled:null==p?void 0:p.disabled,icon:A},V),O("checkbox")),K=l({className:"p-sr-only p-hidden-accessible","aria-live":"polite"},O("srOnlyAria"));return u.createElement(u.Fragment,null,u.createElement("div",T,u.createElement(P,B),f&&u.createElement("span",K,H)),U&&u.createElement(a.Tooltip,s({target:y,content:p.tooltip,pt:O("tooltip")},p.tooltipOptions)))})));return w.displayName="MultiStateCheckbox",e.MultiStateCheckbox=w,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.icons.check,primereact.tooltip,primereact.utils);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.multistatecheckbox=function(e,t,n,o,r,l,a,c){"use strict";function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=i(t);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(null,arguments)}function p(e){return p="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},p(e)}function d(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function f(e){var t=d(e,"string");return"symbol"==p(t)?t:t+""}function b(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){if(Array.isArray(e))return e}function y(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,l,a,c=[],i=!0,u=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(o=l.call(n)).done)&&(c.push(o.value),c.length!==t);i=!0);}catch(e){u=!0,r=e}finally{try{if(!i&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return c}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function h(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function O(){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 g(e,t){return m(e)||y(e,t)||h(e,t)||O()}var x=o.ComponentBase.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:{box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(e){var t=e.props,n=e.context;return c.classNames("p-checkbox p-component",{"p-highlight":e.checked,"p-disabled":t.disabled,"p-invalid":t.invalid,"p-variant-filled":t.variant?"filled"===t.variant:n&&"filled"===n.inputStyle})}}}});function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=u.memo(u.forwardRef((function(e,t){var i=r.useMergeProps(),p=u.useContext(n.PrimeReactContext),d=x.getProps(e,p),f=g(u.useState(!1),2),b=f[1],m=x.setMetaData({props:d,state:{focused:f[0]},context:{checked:d.checked===d.trueValue,disabled:d.disabled}}),y=m.ptm,v=m.cx;o.useHandleStyle(x.css.styles,m.isUnstyled,{name:"checkbox"});var h=u.useRef(null),O=u.useRef(d.inputRef),j=function(){return d.checked===d.trueValue},P=function(e){if(!d.disabled&&!d.readonly&&d.onChange){var t,n=j()?d.falseValue:d.trueValue;if(null==d||null===(t=d.onChange)||void 0===t||t.call(d,{originalEvent:e,value:d.value,checked:n,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{type:"checkbox",name:d.name,id:d.id,value:d.value,checked:n}}),e.defaultPrevented)return;c.DomHandler.focus(O.current)}};u.useImperativeHandle(t,(function(){return{props:d,focus:function(){return c.DomHandler.focus(O.current)},getElement:function(){return h.current},getInput:function(){return O.current}}})),u.useEffect((function(){c.ObjectUtils.combinedRefs(O,d.inputRef)}),[O,d.inputRef]),r.useUpdateEffect((function(){O.current.checked=j()}),[d.checked,d.trueValue]),r.useMountEffect((function(){d.autoFocus&&c.DomHandler.focus(O.current,d.autoFocus)}));var E,D,S,N,w,C=j(),I=c.ObjectUtils.isNotEmpty(d.tooltip),M=x.getOtherProps(d),R=i({id:d.id,className:c.classNames(d.className,v("root",{checked:C,context:p})),style:d.style,"data-p-highlight":C,"data-p-disabled":d.disabled,onContextMenu:d.onContextMenu,onMouseDown:d.onMouseDown},M,y("root"));return u.createElement(u.Fragment,null,u.createElement("div",s({ref:h},R),(N=c.ObjectUtils.reduceKeys(M,c.DomHandler.ARIA_PROPS),w=i(k({id:d.inputId,type:"checkbox",className:v("input"),name:d.name,tabIndex:d.tabIndex,onFocus:function(e){return b(!0),void(null==d||null===(t=d.onFocus)||void 0===t||t.call(d));var t},onBlur:function(e){return b(!1),void(null==d||null===(t=d.onBlur)||void 0===t||t.call(d));var t},onChange:function(e){return P(e)},disabled:d.disabled,readOnly:d.readOnly,required:d.required,"aria-invalid":d.invalid,checked:C},N),y("input")),u.createElement("input",s({ref:O},w))),(E=i({className:v("icon")},y("icon")),D=i({className:v("box",{checked:C}),"data-p-highlight":C,"data-p-disabled":d.disabled},y("box")),S=c.IconUtils.getJSXIcon(C?d.icon||u.createElement(l.CheckIcon,E):null,k({},E),{props:d,checked:C}),u.createElement("div",D,S))),I&&u.createElement(a.Tooltip,s({target:h,content:d.tooltip,pt:y("tooltip")},d.tooltipOptions)))})));P.displayName="Checkbox";var E=o.ComponentBase.extend({defaultProps:{__TYPE:"MultiStateCheckbox",autoFocus:!1,className:null,dataKey:null,disabled:!1,empty:!0,iconTemplate:null,id:null,onChange:null,optionIcon:null,optionLabel:null,optionValue:null,options:null,readOnly:!1,style:null,tabIndex:"0",tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:{icon:function(e){return c.classNames("p-checkbox-icon p-c",b({},"".concat(e.icon),!0))},root:function(e){return c.classNames("p-multistatecheckbox p-checkbox p-component",e.props.classNames)}},inlineStyles:{checkbox:function(e){var t=e.selectedOption;return t&&t.style}}}});function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=u.memo(u.forwardRef((function(e,t){var l=r.useMergeProps(),i=u.useContext(n.PrimeReactContext),p=E.getProps(e,i),d=g(u.useState(!1),2),f=d[0],m=d[1],y=u.useRef(null),v=p.optionValue?null:p.dataKey,h=E.setMetaData({props:p,state:{focused:f}}),O=h.ptm,x=h.cx,j=h.sx;o.useHandleStyle(E.css.styles,h.isUnstyled,{name:"multistatecheckbox"});var k=function(e){p.disabled||p.readOnly||N(e)},D=function(e){return p.optionValue?c.ObjectUtils.resolveFieldData(e,p.optionValue):e},N=function(e){if(p.onChange){var t=D(p.options?R===p.options.length-1?p.empty?null:p.options[0]:p.options[R+1]:null);p.onChange({originalEvent:e,value:t,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:p.name,id:p.id,value:t}})}};u.useImperativeHandle(t,(function(){return{props:p,focus:function(){return c.DomHandler.focusFirstElement(y.current)},getElement:function(){return y.current}}})),r.useMountEffect((function(){p.empty||null!==p.value||N(),p.autoFocus&&c.DomHandler.focusFirstElement(y.current)}));var w,C,I=(p.options&&(C=p.options.findIndex((function(e){return c.ObjectUtils.equals(p.value,D(e),v)})),w=p.options[C]),{option:w,index:C}),M=I.option,R=I.index,U=c.ObjectUtils.isNotEmpty(p.tooltip),F=E.getOtherProps(p),V=c.ObjectUtils.reduceKeys(F,c.DomHandler.ARIA_PROPS),A=function(){var e=M&&c.ObjectUtils.resolveFieldData(M,p.optionIcon||"icon")||"",t=c.classNames("p-checkbox-icon p-c",b({},"".concat(e),!0)),n=l({className:x("icon",{icon:e})},O("icon")),o=c.IconUtils.getJSXIcon(e,S({},n),{props:p});return p.iconTemplate?c.ObjectUtils.getJSXElement(p.iconTemplate,{option:M,className:t,element:o,props:p}):o}(),H=M?function(e){var t=p.optionLabel||p.optionValue;return t?c.ObjectUtils.resolveFieldData(e,t):e}(M):n.ariaLabel("nullLabel"),_=M?"true":"false",T=l({ref:y,id:p.id,className:c.classNames(p.className,x("root")),style:p.style,onClick:k},E.getOtherProps(p),O("root")),B=l(S({className:c.classNames(p.className),style:j("checkbox",{selectedOption:M}),tabIndex:p.tabIndex,onFocus:function(){m(!0)},onBlur:function(){m(!1)},onKeyDown:function(e){32===e.keyCode&&(N(e),e.preventDefault())},role:"checkbox","aria-checked":_,onChange:k,checked:!!M,disabled:null==p?void 0:p.disabled,icon:A},V),O("checkbox")),K=l({className:"p-sr-only p-hidden-accessible","aria-live":"polite"},O("srOnlyAria"));return u.createElement(u.Fragment,null,u.createElement("div",T,u.createElement(P,B),f&&u.createElement("span",K,H)),U&&u.createElement(a.Tooltip,s({target:y,content:p.tooltip,pt:O("tooltip")},p.tooltipOptions)))})));return N.displayName="MultiStateCheckbox",e.MultiStateCheckbox=N,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.icons.check,primereact.tooltip,primereact.utils);
|
|
@@ -40,53 +40,47 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
40
40
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
41
41
|
|
|
42
42
|
function _extends() {
|
|
43
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
44
|
-
for (var
|
|
45
|
-
var
|
|
46
|
-
for (var
|
|
47
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
48
|
-
target[key] = source[key];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
43
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
44
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
45
|
+
var t = arguments[e];
|
|
46
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
51
47
|
}
|
|
52
|
-
return
|
|
53
|
-
};
|
|
54
|
-
return _extends.apply(this, arguments);
|
|
48
|
+
return n;
|
|
49
|
+
}, _extends.apply(null, arguments);
|
|
55
50
|
}
|
|
56
51
|
|
|
57
|
-
function _arrayLikeToArray(
|
|
58
|
-
|
|
59
|
-
for (var
|
|
60
|
-
return
|
|
52
|
+
function _arrayLikeToArray(r, a) {
|
|
53
|
+
(null == a || a > r.length) && (a = r.length);
|
|
54
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
55
|
+
return n;
|
|
61
56
|
}
|
|
62
57
|
|
|
63
|
-
function _arrayWithoutHoles(
|
|
64
|
-
if (Array.isArray(
|
|
58
|
+
function _arrayWithoutHoles(r) {
|
|
59
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
65
60
|
}
|
|
66
61
|
|
|
67
|
-
function _iterableToArray(
|
|
68
|
-
if (typeof Symbol
|
|
62
|
+
function _iterableToArray(r) {
|
|
63
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
69
64
|
}
|
|
70
65
|
|
|
71
|
-
function _unsupportedIterableToArray(
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
66
|
+
function _unsupportedIterableToArray(r, a) {
|
|
67
|
+
if (r) {
|
|
68
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
69
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
70
|
+
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;
|
|
71
|
+
}
|
|
78
72
|
}
|
|
79
73
|
|
|
80
74
|
function _nonIterableSpread() {
|
|
81
75
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
82
76
|
}
|
|
83
77
|
|
|
84
|
-
function _toConsumableArray(
|
|
85
|
-
return _arrayWithoutHoles(
|
|
78
|
+
function _toConsumableArray(r) {
|
|
79
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
86
80
|
}
|
|
87
81
|
|
|
88
|
-
function _arrayWithHoles(
|
|
89
|
-
if (Array.isArray(
|
|
82
|
+
function _arrayWithHoles(r) {
|
|
83
|
+
if (Array.isArray(r)) return r;
|
|
90
84
|
}
|
|
91
85
|
|
|
92
86
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -121,8 +115,8 @@ function _nonIterableRest() {
|
|
|
121
115
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
122
116
|
}
|
|
123
117
|
|
|
124
|
-
function _slicedToArray(
|
|
125
|
-
return _arrayWithHoles(
|
|
118
|
+
function _slicedToArray(r, e) {
|
|
119
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
126
120
|
}
|
|
127
121
|
|
|
128
122
|
var classes = {
|
|
@@ -359,35 +353,29 @@ function _typeof(o) {
|
|
|
359
353
|
}, _typeof(o);
|
|
360
354
|
}
|
|
361
355
|
|
|
362
|
-
function
|
|
363
|
-
if (
|
|
364
|
-
var
|
|
365
|
-
if (
|
|
366
|
-
var
|
|
367
|
-
if (
|
|
356
|
+
function toPrimitive(t, r) {
|
|
357
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
358
|
+
var e = t[Symbol.toPrimitive];
|
|
359
|
+
if (void 0 !== e) {
|
|
360
|
+
var i = e.call(t, r || "default");
|
|
361
|
+
if ("object" != _typeof(i)) return i;
|
|
368
362
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
369
363
|
}
|
|
370
|
-
return (
|
|
364
|
+
return ("string" === r ? String : Number)(t);
|
|
371
365
|
}
|
|
372
366
|
|
|
373
|
-
function
|
|
374
|
-
var
|
|
375
|
-
return _typeof(
|
|
367
|
+
function toPropertyKey(t) {
|
|
368
|
+
var i = toPrimitive(t, "string");
|
|
369
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
376
370
|
}
|
|
377
371
|
|
|
378
|
-
function _defineProperty(
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
writable: true
|
|
386
|
-
});
|
|
387
|
-
} else {
|
|
388
|
-
obj[key] = value;
|
|
389
|
-
}
|
|
390
|
-
return obj;
|
|
372
|
+
function _defineProperty(e, r, t) {
|
|
373
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
374
|
+
value: t,
|
|
375
|
+
enumerable: !0,
|
|
376
|
+
configurable: !0,
|
|
377
|
+
writable: !0
|
|
378
|
+
}) : e[r] = t, e;
|
|
391
379
|
}
|
|
392
380
|
|
|
393
381
|
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; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/componentbase"),r=require("primereact/hooks"),o=require("primereact/utils"),i=require("primereact/button"),l=require("primereact/icons/angledoubledown"),a=require("primereact/icons/angledoubleup"),c=require("primereact/icons/angledown"),u=require("primereact/icons/angleup"),s=require("primereact/icons/search"),d=require("primereact/ripple");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function f(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 m=f(e),v=p(t);function g(){return g=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},g.apply(this,arguments)}function b(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 y(e){if(Array.isArray(e))return b(e)}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function I(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}function D(){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 O(e){return y(e)||h(e)||I(e)||D()}function E(e){if(Array.isArray(e))return e}function w(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 x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e,t){return E(e)||w(e,t)||I(e,t)||x()}var j=n.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 o.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"}}),L=m.memo((function(e){var n=r.useMergeProps(),s=e.moveUpIcon||m.createElement(u.AngleUpIcon,null),d=e.moveTopIcon||m.createElement(a.AngleDoubleUpIcon,null),p=e.moveDownIcon||m.createElement(c.AngleDownIcon,null),f=e.moveBottomIcon||m.createElement(l.AngleDoubleDownIcon,null),v=e.ptm,b=e.cx,y=e.unstyled,h=o.ObjectUtils.isEmpty(e.value)||o.ObjectUtils.isEmpty(e.selection),I=n({className:b("controls")},v("controls",{hostName:e.hostName})),D=n({type:"button",unstyled:y,icon:s,onClick:function(t){if(e.selection){for(var n=O(e.value),r=0;r<e.selection.length;r++){var i=o.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(0===i)break;var l=n[i-1];n[i-1]=n[i],n[i]=l}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"up"})}},disabled:h,"aria-label":t.ariaLabel("moveUp"),__parentMetadata:{parent:e.metaData}},v("moveUpButton")),E=n({type:"button",unstyled:y,icon:d,onClick:function(t){if(e.selection){for(var n=O(e.value),r=e.selection.length-1;r>=0;r--){var i=o.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(0===i)break;var l=n.splice(i,1)[0];n.unshift(l)}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"top"})}},disabled:h,"aria-label":t.ariaLabel("moveTop"),__parentMetadata:{parent:e.metaData}},v("moveTopButton")),w=n({type:"button",unstyled:y,icon:p,onClick:function(t){if(e.selection){for(var n=O(e.value),r=e.selection.length-1;r>=0;r--){var i=o.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(i===n.length-1)break;var l=n[i+1];n[i+1]=n[i],n[i]=l}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"down"})}},disabled:h,"aria-label":t.ariaLabel("moveDown"),__parentMetadata:{parent:e.metaData}},v("moveDownButton")),x=n({type:"button",unstyled:y,icon:f,onClick:function(t){if(e.selection){for(var n=O(e.value),r=0;r<e.selection.length;r++){var i=o.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(i===n.length-1)break;var l=n.splice(i,1)[0];n.push(l)}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"bottom"})}},disabled:h,"aria-label":t.ariaLabel("moveBottom"),__parentMetadata:{parent:e.metaData}},v("moveBottomButton"));return m.createElement("div",I,m.createElement(i.Button,g({pt:v("moveUpButton")},D)),m.createElement(i.Button,g({pt:v("moveTopButton")},E)),m.createElement(i.Button,g({pt:v("moveDownButton")},w)),m.createElement(i.Button,g({pt:v("moveBottomButton")},x)))}));function C(e){return C="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},C(e)}function N(e,t){if("object"!==C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function U(e){var t=N(e,"string");return"symbol"===C(t)?t:String(t)}function B(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 k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){var r,o,i;r=e,i=n[t],(o=U(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)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}L.displayName="OrderListControls";var H=m.memo(m.forwardRef((function(e,t){var n=r.useMergeProps(),i=e.ptm,l=e.cx,a=function(t,n){return i(t,k({hostName:e.hostName},n))},c=function(e,t){return a(t,{context:{selected:y(e)}})},u=m.useRef(null),p=m.useRef(null),f=m.useRef(null),v=m.useRef(null),b={filter:function(t){return e.onFilterInputChange(t)},reset:function(){return e.resetFilter()}},y=function(t){return-1!==o.ObjectUtils.findIndexInList(t,e.selection,e.dataKey)},h=function(t,n){p.current!==n&&p.current+1!==n&&(f.current=n,!e.isUnstyled()&&o.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()&&o.DomHandler.removeClass(t.target,"p-orderlist-droppoint-highlight"),t.target.setAttribute("data-p-orderlist-droppoint-highlight",!1)},D=function(t){var n=p.current>f.current?f.current:0===f.current?0:f.current-1,r=O(e.value);o.ObjectUtils.reorderArray(r,p.current,n),f.current=null,!e.isUnstyled()&&o.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})},E=function(e){u.current=!1},w=function(e){if(u.current){var t=v.current.getBoundingClientRect().top+o.DomHandler.getWindowScrollTop(),n=t+v.current.clientHeight-e.pageY,r=e.pageY-t;n<25&&n>0?v.current.scrollTop+=15:r<25&&r>0&&(v.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 m.createElement("li",g({key:t},r))};m.useImperativeHandle(t,(function(){return{getElement:function(){return v.current}}}));var L,C,N,U=(L=n({className:l("header")},a("header")),e.header?m.createElement("div",L,e.header):null),B=function(){var t=n({className:l("icon")},a("icon")),r=o.IconUtils.getJSXIcon(e.filterIcon||m.createElement(s.SearchIcon,t),k({},t),{props:e});if(e.filter){var i=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")),d=m.createElement("div",i,m.createElement("input",c),m.createElement("span",u,r));if(e.filterTemplate)d=o.ObjectUtils.getJSXElement(e.filterTemplate,{className:"p-orderlist-filter",inputProps:{inputClassName:"p-orderlist-filter-input p-inputtext p-component",onChange:e.onFilter,onKeyDown:x},filterOptions:b,iconClassName:"p-orderlist-filter-icon",element:d,props:e});var p=n({className:l("filterContainer")},a("filterContainer"));return m.createElement("div",p,d)}return null}(),H=(C=e.value?e.value.map((function(t,r){var i=e.itemTemplate?e.itemTemplate(t):t,a=e.parentId+"_"+r,s=e.focused&&e.focusedOptionId===a,f=y(t);if(e.dragdrop){var v=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(p.current=t);var t},onDragEnd:E,className:o.classNames(e.className,l("item",{selected:f,focused:s})),"aria-selected":f,"data-p-highlight":f,"data-p-focused":s},c(t,"item")),b=[];return 0===r&&b.push(j(t,r)),b.push(m.createElement("li",g({key:a},v),i)),b.push(j(r,a+"_droppoint")),b}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:o.classNames(e.className,l("item",{selected:f,focused:s})),"aria-selected":f,"data-p-highlight":f,"data-p-focused":s},c(t,"item"));return m.createElement("li",g({key:a},h),i,m.createElement(d.Ripple,null))})):null,N=n({ref:v,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")),m.createElement("ul",N,C)),M=n({className:l("container")},a("container"));return m.createElement("div",M,U,B,H)})));H.displayName="OrderListSubList";var M=m.memo(m.forwardRef((function(e,i){var l=r.useMergeProps(),a=m.useContext(t.PrimeReactContext),c=j.getProps(e,a),u=S(m.useState([]),2),s=u[0],d=u[1],p=S(m.useState(""),2),f=p[0],b=p[1],y=S(m.useState(null),2),h=y[0],I=y[1],D=S(m.useState(!1),2),E=D[0],w=D[1],x=S(m.useState(null),2),C=x[0],N=x[1],U=S(m.useState(-1),2),B=U[0],k=U[1],M=o.ObjectUtils.isNotEmpty(f),K=m.useRef(null),T=m.useRef(null),P=m.useRef(null),F=m.useRef(null),A={props:c,state:{selection:s,filterValue:f,attributeSelector:h}},R=j.setMetaData(A),_=R.ptm,q=R.cx,V=R.isUnstyled;n.useHandleStyle(j.css.styles,V,{name:"orderlist"});var Y=function(){if(M){var e=f.trim().toLocaleLowerCase(c.filterLocale),n=c.filterBy?c.filterBy.split(","):[];return t.FilterService.filter(c.value,n,e,c.filterMatchMode,c.filterLocale)}return c.value}(),J=function(){return F.current&&F.current.getElement()},X=function(e){var t=e.originalEvent,n=e.value,r=e.index,i=o.ObjectUtils.findIndexInList(n,s),l=J(),a=o.DomHandler.find(l,'[data-pc-section="item"]')[r].getAttribute("id");k(a);var c,u=t.metaKey||t.ctrlKey;c=-1!==i?u?s.filter((function(e,t){return t!==i})):[n]:u?[].concat(O(s),[n]):[n],d(c)},z=function(e){var t=Y[e],n=-1!==o.ObjectUtils.findIndexInList(t,s);d(n?s.filter((function(e){return e!==t})):[].concat(O(s),[t]))},W=function(e){if(-1===B){var t=e&&e.children?O(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=o.DomHandler.findSingle(e,'[data-p-highlight="true"]');return o.ObjectUtils.findIndexInList(n,t)}return-1},G=function(e,t){var n=o.DomHandler.findSingle(e,'[data-pc-section="item"]');return o.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=J(),n=o.DomHandler.find(t,'[data-pc-section="item"]'),r=o.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),i=O(n).findIndex((function(e){return e===r}));d(O(Y).slice(0,i+1))}else le(0);e.preventDefault()},te=function(e){var t=J();if(e.ctrlKey&&e.shiftKey){var n=o.DomHandler.find(t,'[data-pc-section="item"]'),r=o.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),i=O(n).findIndex((function(e){return e===r}));d(O(Y).slice(i,n.length))}else le(o.DomHandler.find(t,'[data-pc-section="item"]').length-1);e.preventDefault()},ne=function(e){var t=J(),n=o.DomHandler.find(t,'[data-pc-section="item"]'),r=o.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),i=O(n).findIndex((function(e){return e===r}));X({originalEvent:e,value:Y[i],index:i}),e.preventDefault()},re=function(e){e.preventDefault();var t=J();if(e.shiftKey&&s&&s.length>0){var n=o.DomHandler.find(t,'[data-pc-section="item"]'),r=o.ObjectUtils.findIndexInList(s[0],O(Y)),i=o.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),l=O(n).findIndex((function(e){return e===i}));d(O(Y).slice(Math.min(r,l),Math.max(r,l)+1))}else ne(e)},oe=function(e){var t=J(),n=O(o.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=J(),n=O(o.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=J(),r=o.DomHandler.find(n,'[data-pc-section="item"]');if(e>=r.length)t=r.length-1;else{if(e<0)return;t=e}var i=r[t]?r[t].getAttribute("id"):-1;k(i),ae(i)},ae=function(e){var t=J(),n=o.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=o.DomHandler.createInlineStyle(a&&a.nonce||v.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}};m.useImperativeHandle(i,(function(){return{props:c,getElement:function(){return K.current}}})),r.useMountEffect((function(){!h&&I(o.UniqueComponentId())})),r.useUpdateEffect((function(){return h&&(K.current.setAttribute(h,""),ce()),function(){T.current=o.DomHandler.removeInlineStyle(T.current)}}),[h,c.breakpoint]),r.useUpdateEffect((function(){N(-1!==B?B:null)}),[B]),r.useUpdateEffect((function(){P.current&&(P.current=null)}));var ue=l({ref:K,id:c.id,className:o.classNames(c.className,q("root")),style:c.style},j.getOtherProps(c),_("root"));return m.createElement("div",ue,m.createElement(L,{hostName:"OrderList",value:Y,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:q,unstyled:c.unstyled,metaData:A}),m.createElement(H,g({ref:F,hostName:"OrderList"},c,{focused:E,ariaLabel:c.ariaLabel,ariaLabelledBy:c.ariaLabelledBy,value:Y,selection:s,onItemClick:X,onOptionMouseDown:function(e){k(e)},focusedOptionId:C,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(Y),e.preventDefault())}},onListFocus:function(e){w(!0);var t=J(),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;b(t),c.onFilter&&c.onFilter({originalEvent:e,filter:t})},itemTemplate:c.itemTemplate,filter:c.filter,onFilter:function(e){var t=e.target.value;b(t),c.onFilter&&c.onFilter({originalEvent:e,value:t})},resetFilter:function(){b(""),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:V,ptm:_,cx:q,changeFocusedOptionIndex:le})))})));M.displayName="OrderList",exports.OrderList=M;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/componentbase"),r=require("primereact/hooks"),o=require("primereact/utils"),i=require("primereact/button"),l=require("primereact/icons/angledoubledown"),a=require("primereact/icons/angledoubleup"),c=require("primereact/icons/angledown"),u=require("primereact/icons/angleup"),s=require("primereact/icons/search"),d=require("primereact/ripple");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function f(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 m=f(e),v=p(t);function g(){return g=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},g.apply(null,arguments)}function b(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 y(e){if(Array.isArray(e))return b(e)}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function I(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}function D(){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 O(e){return y(e)||h(e)||I(e)||D()}function E(e){if(Array.isArray(e))return e}function w(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 x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e,t){return E(e)||w(e,t)||I(e,t)||x()}var j=n.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 o.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"}}),L=m.memo((function(e){var n=r.useMergeProps(),s=e.moveUpIcon||m.createElement(u.AngleUpIcon,null),d=e.moveTopIcon||m.createElement(a.AngleDoubleUpIcon,null),p=e.moveDownIcon||m.createElement(c.AngleDownIcon,null),f=e.moveBottomIcon||m.createElement(l.AngleDoubleDownIcon,null),v=e.ptm,b=e.cx,y=e.unstyled,h=o.ObjectUtils.isEmpty(e.value)||o.ObjectUtils.isEmpty(e.selection),I=n({className:b("controls")},v("controls",{hostName:e.hostName})),D=n({type:"button",unstyled:y,icon:s,onClick:function(t){if(e.selection){for(var n=O(e.value),r=0;r<e.selection.length;r++){var i=o.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(0===i)break;var l=n[i-1];n[i-1]=n[i],n[i]=l}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"up"})}},disabled:h,"aria-label":t.ariaLabel("moveUp"),__parentMetadata:{parent:e.metaData}},v("moveUpButton")),E=n({type:"button",unstyled:y,icon:d,onClick:function(t){if(e.selection){for(var n=O(e.value),r=e.selection.length-1;r>=0;r--){var i=o.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(0===i)break;var l=n.splice(i,1)[0];n.unshift(l)}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"top"})}},disabled:h,"aria-label":t.ariaLabel("moveTop"),__parentMetadata:{parent:e.metaData}},v("moveTopButton")),w=n({type:"button",unstyled:y,icon:p,onClick:function(t){if(e.selection){for(var n=O(e.value),r=e.selection.length-1;r>=0;r--){var i=o.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(i===n.length-1)break;var l=n[i+1];n[i+1]=n[i],n[i]=l}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"down"})}},disabled:h,"aria-label":t.ariaLabel("moveDown"),__parentMetadata:{parent:e.metaData}},v("moveDownButton")),x=n({type:"button",unstyled:y,icon:f,onClick:function(t){if(e.selection){for(var n=O(e.value),r=0;r<e.selection.length;r++){var i=o.ObjectUtils.findIndexInList(e.selection[r],n,e.dataKey);if(i===n.length-1)break;var l=n.splice(i,1)[0];n.push(l)}e.onReorder&&e.onReorder({originalEvent:t,value:n,direction:"bottom"})}},disabled:h,"aria-label":t.ariaLabel("moveBottom"),__parentMetadata:{parent:e.metaData}},v("moveBottomButton"));return m.createElement("div",I,m.createElement(i.Button,g({pt:v("moveUpButton")},D)),m.createElement(i.Button,g({pt:v("moveTopButton")},E)),m.createElement(i.Button,g({pt:v("moveDownButton")},w)),m.createElement(i.Button,g({pt:v("moveBottomButton")},x)))}));function C(e){return C="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},C(e)}function N(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function U(e){var t=N(e,"string");return"symbol"==C(t)?t:t+""}function B(e,t,n){return(t=U(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}L.displayName="OrderListControls";var M=m.memo(m.forwardRef((function(e,t){var n=r.useMergeProps(),i=e.ptm,l=e.cx,a=function(t,n){return i(t,H({hostName:e.hostName},n))},c=function(e,t){return a(t,{context:{selected:y(e)}})},u=m.useRef(null),p=m.useRef(null),f=m.useRef(null),v=m.useRef(null),b={filter:function(t){return e.onFilterInputChange(t)},reset:function(){return e.resetFilter()}},y=function(t){return-1!==o.ObjectUtils.findIndexInList(t,e.selection,e.dataKey)},h=function(t,n){p.current!==n&&p.current+1!==n&&(f.current=n,!e.isUnstyled()&&o.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()&&o.DomHandler.removeClass(t.target,"p-orderlist-droppoint-highlight"),t.target.setAttribute("data-p-orderlist-droppoint-highlight",!1)},D=function(t){var n=p.current>f.current?f.current:0===f.current?0:f.current-1,r=O(e.value);o.ObjectUtils.reorderArray(r,p.current,n),f.current=null,!e.isUnstyled()&&o.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})},E=function(e){u.current=!1},w=function(e){if(u.current){var t=v.current.getBoundingClientRect().top+o.DomHandler.getWindowScrollTop(),n=t+v.current.clientHeight-e.pageY,r=e.pageY-t;n<25&&n>0?v.current.scrollTop+=15:r<25&&r>0&&(v.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 m.createElement("li",g({key:t},r))};m.useImperativeHandle(t,(function(){return{getElement:function(){return v.current}}}));var L,C,N,U=(L=n({className:l("header")},a("header")),e.header?m.createElement("div",L,e.header):null),B=function(){var t=n({className:l("icon")},a("icon")),r=o.IconUtils.getJSXIcon(e.filterIcon||m.createElement(s.SearchIcon,t),H({},t),{props:e});if(e.filter){var i=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")),d=m.createElement("div",i,m.createElement("input",c),m.createElement("span",u,r));if(e.filterTemplate)d=o.ObjectUtils.getJSXElement(e.filterTemplate,{className:"p-orderlist-filter",inputProps:{inputClassName:"p-orderlist-filter-input p-inputtext p-component",onChange:e.onFilter,onKeyDown:x},filterOptions:b,iconClassName:"p-orderlist-filter-icon",element:d,props:e});var p=n({className:l("filterContainer")},a("filterContainer"));return m.createElement("div",p,d)}return null}(),k=(C=e.value?e.value.map((function(t,r){var i=e.itemTemplate?e.itemTemplate(t):t,a=e.parentId+"_"+r,s=e.focused&&e.focusedOptionId===a,f=y(t);if(e.dragdrop){var v=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(p.current=t);var t},onDragEnd:E,className:o.classNames(e.className,l("item",{selected:f,focused:s})),"aria-selected":f,"data-p-highlight":f,"data-p-focused":s},c(t,"item")),b=[];return 0===r&&b.push(j(t,r)),b.push(m.createElement("li",g({key:a},v),i)),b.push(j(r,a+"_droppoint")),b}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:o.classNames(e.className,l("item",{selected:f,focused:s})),"aria-selected":f,"data-p-highlight":f,"data-p-focused":s},c(t,"item"));return m.createElement("li",g({key:a},h),i,m.createElement(d.Ripple,null))})):null,N=n({ref:v,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")),m.createElement("ul",N,C)),M=n({className:l("container")},a("container"));return m.createElement("div",M,U,B,k)})));M.displayName="OrderListSubList";var K=m.memo(m.forwardRef((function(e,i){var l=r.useMergeProps(),a=m.useContext(t.PrimeReactContext),c=j.getProps(e,a),u=S(m.useState([]),2),s=u[0],d=u[1],p=S(m.useState(""),2),f=p[0],b=p[1],y=S(m.useState(null),2),h=y[0],I=y[1],D=S(m.useState(!1),2),E=D[0],w=D[1],x=S(m.useState(null),2),C=x[0],N=x[1],U=S(m.useState(-1),2),B=U[0],k=U[1],H=o.ObjectUtils.isNotEmpty(f),K=m.useRef(null),T=m.useRef(null),P=m.useRef(null),F=m.useRef(null),A={props:c,state:{selection:s,filterValue:f,attributeSelector:h}},R=j.setMetaData(A),_=R.ptm,q=R.cx,V=R.isUnstyled;n.useHandleStyle(j.css.styles,V,{name:"orderlist"});var Y=function(){if(H){var e=f.trim().toLocaleLowerCase(c.filterLocale),n=c.filterBy?c.filterBy.split(","):[];return t.FilterService.filter(c.value,n,e,c.filterMatchMode,c.filterLocale)}return c.value}(),J=function(){return F.current&&F.current.getElement()},X=function(e){var t=e.originalEvent,n=e.value,r=e.index,i=o.ObjectUtils.findIndexInList(n,s),l=J(),a=o.DomHandler.find(l,'[data-pc-section="item"]')[r].getAttribute("id");k(a);var c,u=t.metaKey||t.ctrlKey;c=-1!==i?u?s.filter((function(e,t){return t!==i})):[n]:u?[].concat(O(s),[n]):[n],d(c)},z=function(e){var t=Y[e],n=-1!==o.ObjectUtils.findIndexInList(t,s);d(n?s.filter((function(e){return e!==t})):[].concat(O(s),[t]))},W=function(e){if(-1===B){var t=e&&e.children?O(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=o.DomHandler.findSingle(e,'[data-p-highlight="true"]');return o.ObjectUtils.findIndexInList(n,t)}return-1},G=function(e,t){var n=o.DomHandler.findSingle(e,'[data-pc-section="item"]');return o.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=J(),n=o.DomHandler.find(t,'[data-pc-section="item"]'),r=o.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),i=O(n).findIndex((function(e){return e===r}));d(O(Y).slice(0,i+1))}else le(0);e.preventDefault()},te=function(e){var t=J();if(e.ctrlKey&&e.shiftKey){var n=o.DomHandler.find(t,'[data-pc-section="item"]'),r=o.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),i=O(n).findIndex((function(e){return e===r}));d(O(Y).slice(i,n.length))}else le(o.DomHandler.find(t,'[data-pc-section="item"]').length-1);e.preventDefault()},ne=function(e){var t=J(),n=o.DomHandler.find(t,'[data-pc-section="item"]'),r=o.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),i=O(n).findIndex((function(e){return e===r}));X({originalEvent:e,value:Y[i],index:i}),e.preventDefault()},re=function(e){e.preventDefault();var t=J();if(e.shiftKey&&s&&s.length>0){var n=o.DomHandler.find(t,'[data-pc-section="item"]'),r=o.ObjectUtils.findIndexInList(s[0],O(Y)),i=o.DomHandler.findSingle(t,'[data-pc-section="item"][id='.concat(B,"]")),l=O(n).findIndex((function(e){return e===i}));d(O(Y).slice(Math.min(r,l),Math.max(r,l)+1))}else ne(e)},oe=function(e){var t=J(),n=O(o.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=J(),n=O(o.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=J(),r=o.DomHandler.find(n,'[data-pc-section="item"]');if(e>=r.length)t=r.length-1;else{if(e<0)return;t=e}var i=r[t]?r[t].getAttribute("id"):-1;k(i),ae(i)},ae=function(e){var t=J(),n=o.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=o.DomHandler.createInlineStyle(a&&a.nonce||v.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}};m.useImperativeHandle(i,(function(){return{props:c,getElement:function(){return K.current}}})),r.useMountEffect((function(){!h&&I(o.UniqueComponentId())})),r.useUpdateEffect((function(){return h&&(K.current.setAttribute(h,""),ce()),function(){T.current=o.DomHandler.removeInlineStyle(T.current)}}),[h,c.breakpoint]),r.useUpdateEffect((function(){N(-1!==B?B:null)}),[B]),r.useUpdateEffect((function(){P.current&&(P.current=null)}));var ue=l({ref:K,id:c.id,className:o.classNames(c.className,q("root")),style:c.style},j.getOtherProps(c),_("root"));return m.createElement("div",ue,m.createElement(L,{hostName:"OrderList",value:Y,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:q,unstyled:c.unstyled,metaData:A}),m.createElement(M,g({ref:F,hostName:"OrderList"},c,{focused:E,ariaLabel:c.ariaLabel,ariaLabelledBy:c.ariaLabelledBy,value:Y,selection:s,onItemClick:X,onOptionMouseDown:function(e){k(e)},focusedOptionId:C,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(Y),e.preventDefault())}},onListFocus:function(e){w(!0);var t=J(),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;b(t),c.onFilter&&c.onFilter({originalEvent:e,filter:t})},itemTemplate:c.itemTemplate,filter:c.filter,onFilter:function(e){var t=e.target.value;b(t),c.onFilter&&c.onFilter({originalEvent:e,value:t})},resetFilter:function(){b(""),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:V,ptm:_,cx:q,changeFocusedOptionIndex:le})))})));K.displayName="OrderList",exports.OrderList=K;
|
|
@@ -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,35 +326,29 @@ 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; }
|