primereact 10.9.2 → 10.9.4
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.d.ts +2 -2
- 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 +46 -60
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +5 -1
- package/api/api.esm.js +46 -60
- package/api/api.esm.min.js +1 -1
- package/api/api.js +46 -60
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +64 -55
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +27 -25
- package/autocomplete/autocomplete.esm.js +64 -55
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +64 -55
- 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.d.ts +2 -2
- 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/avatargroup/avatargroup.d.ts +2 -2
- package/badge/badge.cjs.js +17 -23
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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/buttongroup/buttongroup.cjs.js +4 -1
- package/buttongroup/buttongroup.cjs.min.js +1 -1
- package/buttongroup/buttongroup.esm.js +4 -1
- package/buttongroup/buttongroup.esm.min.js +1 -1
- package/buttongroup/buttongroup.js +4 -1
- package/buttongroup/buttongroup.min.js +1 -1
- package/calendar/calendar.cjs.js +52 -59
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +7 -7
- package/calendar/calendar.esm.js +52 -59
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +52 -59
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +44 -56
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +2 -2
- package/carousel/carousel.esm.js +44 -56
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +44 -56
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +40 -52
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +8 -8
- 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/chart/chart.d.ts +2 -2
- package/checkbox/checkbox.cjs.js +37 -49
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +4 -4
- 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 +48 -51
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +15 -4
- package/chip/chip.esm.js +48 -51
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +48 -51
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +43 -55
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +2 -2
- package/chips/chips.esm.js +43 -55
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +43 -55
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +38 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +6 -6
- package/colorpicker/colorpicker.esm.js +38 -49
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +38 -49
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +47 -45
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +47 -45
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +47 -45
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +41 -52
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +41 -52
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +41 -52
- 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.d.ts +2 -2
- 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 +1050 -1445
- package/core/core.min.js +65 -65
- 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 +28 -32
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +2 -2
- package/datascroller/datascroller.esm.js +28 -32
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +28 -32
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +203 -171
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +6 -5
- package/datatable/datatable.esm.js +203 -171
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +203 -171
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +47 -59
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +2 -2
- package/dataview/dataview.esm.js +47 -59
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +47 -59
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +14 -15
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.d.ts +2 -2
- 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 +43 -56
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +12 -12
- package/dialog/dialog.esm.js +43 -56
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +43 -56
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +2 -2
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.d.ts +2 -2
- package/divider/divider.esm.js +2 -2
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +2 -2
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +43 -55
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +2 -2
- 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 +52 -63
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +10 -10
- package/dropdown/dropdown.esm.js +53 -64
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +52 -63
- 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.d.ts +6 -6
- 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.d.ts +4 -4
- package/fieldset/fieldset.esm.js +20 -26
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +20 -26
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +50 -61
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +8 -4
- package/fileupload/fileupload.esm.js +50 -61
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +50 -61
- 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 +44 -56
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +2 -2
- package/galleria/galleria.esm.js +44 -56
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +44 -56
- 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.d.ts +3 -2
- 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.d.ts +4 -4
- 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.d.ts +2 -2
- 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 +10 -13
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +2 -2
- package/inputmask/inputmask.esm.js +10 -13
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +10 -13
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +50 -56
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +50 -56
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +50 -56
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +64 -56
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +64 -56
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +64 -56
- 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.d.ts +4 -4
- 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 +25 -35
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +25 -35
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +25 -35
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +23 -34
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +23 -34
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +23 -34
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +16 -17
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +16 -17
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +16 -17
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +15 -16
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +2 -2
- package/knob/knob.esm.js +15 -16
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +15 -16
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +46 -58
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +4 -4
- 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 +41 -57
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +2 -2
- package/megamenu/megamenu.esm.js +41 -57
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +41 -57
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +43 -55
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +6 -6
- package/mention/mention.esm.js +43 -55
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +43 -55
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +52 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -2
- package/menu/menu.esm.js +52 -55
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +52 -55
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +39 -51
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +8 -8
- package/menubar/menubar.esm.js +39 -51
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +39 -51
- 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.d.ts +2 -2
- 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 +43 -55
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +2 -2
- package/messages/messages.esm.js +43 -55
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +43 -55
- 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 +67 -85
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +6 -6
- package/multiselect/multiselect.esm.js +67 -85
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +67 -85
- 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.d.ts +2 -2
- 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 +67 -78
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +2 -2
- package/orderlist/orderlist.esm.js +67 -78
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +67 -78
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +43 -55
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +2 -2
- package/organizationchart/organizationchart.esm.js +43 -55
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +43 -55
- 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.d.ts +2 -2
- 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/package.json +1 -1
- package/paginator/paginator.cjs.js +44 -58
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +2 -2
- package/paginator/paginator.esm.js +44 -58
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +44 -58
- 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.d.ts +4 -4
- 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.d.ts +2 -2
- 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.d.ts +6 -6
- 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 +53 -67
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +2 -2
- package/picklist/picklist.esm.js +53 -67
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +53 -67
- 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 +690 -565
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +690 -565
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +690 -565
- 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.d.ts +2 -2
- 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/progressspinner/progressspinner.d.ts +2 -2
- package/radiobutton/radiobutton.cjs.js +23 -34
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +4 -4
- 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.d.ts +2 -2
- 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/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.d.ts +8 -8
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +6 -6
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +3 -2
- 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 +44 -56
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +2 -2
- package/speeddial/speeddial.esm.js +44 -56
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +44 -56
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +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.d.ts +2 -2
- 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 +39 -50
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.d.ts +33 -14
- package/stepper/stepper.esm.js +39 -50
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +39 -50
- 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.d.ts +2 -2
- 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.d.ts +4 -4
- 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.d.ts +2 -2
- 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 +38 -45
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +2 -2
- package/tabview/tabview.esm.js +38 -45
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +38 -45
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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/tieredmenu/tieredmenu.cjs.js +37 -49
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +2 -2
- 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.d.ts +4 -4
- 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 +43 -55
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +2 -2
- package/toast/toast.esm.js +43 -55
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +43 -55
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +25 -36
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +2 -2
- package/togglebutton/togglebutton.esm.js +25 -36
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +25 -36
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.d.ts +2 -2
- package/tooltip/tooltip.cjs.js +51 -62
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +3 -3
- package/tooltip/tooltip.esm.js +51 -62
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +51 -62
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +55 -64
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +2 -2
- package/tree/tree.esm.js +55 -64
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +55 -64
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +48 -65
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +2 -2
- package/treeselect/treeselect.esm.js +48 -65
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +48 -65
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +97 -99
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +2 -2
- package/treetable/treetable.esm.js +97 -99
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +97 -99
- 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.d.ts +2 -2
- 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 +81 -80
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +81 -80
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +81 -80
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +39 -51
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +39 -51
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +39 -51
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +29 -11
|
@@ -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 = {
|
|
@@ -146,7 +140,7 @@ var classes = {
|
|
|
146
140
|
});
|
|
147
141
|
}
|
|
148
142
|
};
|
|
149
|
-
var 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";
|
|
143
|
+
var 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-item .p-ink {\n pointer-events: none;\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";
|
|
150
144
|
var OrderListBase = componentbase.ComponentBase.extend({
|
|
151
145
|
defaultProps: {
|
|
152
146
|
__TYPE: 'OrderList',
|
|
@@ -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; }
|
|
@@ -618,7 +606,7 @@ var OrderListSubList = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__na
|
|
|
618
606
|
value: props.filterValue,
|
|
619
607
|
onChange: props.onFilter,
|
|
620
608
|
onKeyDown: onFilterInputKeyDown,
|
|
621
|
-
placeholder: props.
|
|
609
|
+
placeholder: props.filterPlaceholder,
|
|
622
610
|
className: cx('filterInput')
|
|
623
611
|
}, _ptm('filterInput'));
|
|
624
612
|
var filterIconProps = mergeProps({
|
|
@@ -1025,35 +1013,36 @@ var OrderList = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
1025
1013
|
ref: listElementRef,
|
|
1026
1014
|
hostName: "OrderList"
|
|
1027
1015
|
}, props, {
|
|
1028
|
-
focused: focused,
|
|
1029
1016
|
ariaLabel: props.ariaLabel,
|
|
1030
1017
|
ariaLabelledBy: props.ariaLabelledBy,
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
focusedOptionId: focusedOptionId,
|
|
1036
|
-
onListKeyDown: onListKeyDown,
|
|
1037
|
-
onListFocus: onListFocus,
|
|
1038
|
-
onListBlur: onListBlur,
|
|
1039
|
-
onFilterInputChange: onFilterInputChange,
|
|
1040
|
-
itemTemplate: props.itemTemplate,
|
|
1018
|
+
changeFocusedOptionIndex: changeFocusedOptionIndex,
|
|
1019
|
+
cx: cx,
|
|
1020
|
+
dataKey: props.dataKey,
|
|
1021
|
+
dragdrop: props.dragdrop,
|
|
1041
1022
|
filter: props.filter,
|
|
1042
|
-
|
|
1043
|
-
|
|
1023
|
+
filterIcon: props.filterIcon,
|
|
1024
|
+
filterPlaceholder: props.filterPlaceholder,
|
|
1044
1025
|
filterTemplate: props.filterTemplate,
|
|
1026
|
+
focused: focused,
|
|
1027
|
+
focusedOptionId: focusedOptionId,
|
|
1045
1028
|
header: props.header,
|
|
1046
|
-
|
|
1029
|
+
isUnstyled: isUnstyled,
|
|
1030
|
+
itemTemplate: props.itemTemplate,
|
|
1047
1031
|
listStyle: props.listStyle,
|
|
1048
|
-
dataKey: props.dataKey,
|
|
1049
|
-
dragdrop: props.dragdrop,
|
|
1050
1032
|
onChange: props.onChange,
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1033
|
+
onFilter: onFilter,
|
|
1034
|
+
onFilterInputChange: onFilterInputChange,
|
|
1035
|
+
onItemClick: onItemClick,
|
|
1036
|
+
onListBlur: onListBlur,
|
|
1037
|
+
onListFocus: onListFocus,
|
|
1038
|
+
onListKeyDown: onListKeyDown,
|
|
1039
|
+
onOptionMouseDown: onOptionMouseDown,
|
|
1040
|
+
parentId: attributeSelectorState,
|
|
1054
1041
|
ptm: ptm,
|
|
1055
|
-
|
|
1056
|
-
|
|
1042
|
+
resetFilter: resetFilter,
|
|
1043
|
+
selection: selectionState,
|
|
1044
|
+
tabIndex: props.tabIndex,
|
|
1045
|
+
value: visibleList
|
|
1057
1046
|
})));
|
|
1058
1047
|
}));
|
|
1059
1048
|
OrderList.displayName = 'OrderList';
|
|
@@ -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-item .p-ink {\n pointer-events: none;\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.filterPlaceholder,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 P=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),P=m.useRef(null),K=m.useRef(null),T=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(!K.current){K.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");K.current.innerHTML=e}};m.useImperativeHandle(i,(function(){return{props:c,getElement:function(){return P.current}}})),r.useMountEffect((function(){!h&&I(o.UniqueComponentId())})),r.useUpdateEffect((function(){return h&&(P.current.setAttribute(h,""),ce()),function(){K.current=o.DomHandler.removeInlineStyle(K.current)}}),[h,c.breakpoint]),r.useUpdateEffect((function(){N(-1!==B?B:null)}),[B]),r.useUpdateEffect((function(){T.current&&(T.current=null)}));var ue=l({ref:P,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}),T.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,{ariaLabel:c.ariaLabel,ariaLabelledBy:c.ariaLabelledBy,changeFocusedOptionIndex:le,cx:q,dataKey:c.dataKey,dragdrop:c.dragdrop,filter:c.filter,filterIcon:c.filterIcon,filterPlaceholder:c.filterPlaceholder,filterTemplate:c.filterTemplate,focused:E,focusedOptionId:C,header:c.header,isUnstyled:V,itemTemplate:c.itemTemplate,listStyle:c.listStyle,onChange:c.onChange,onFilter:function(e){var t=e.target.value;b(t),c.onFilter&&c.onFilter({originalEvent:e,value:t})},onFilterInputChange:function(e){var t=e.target.value;b(t),c.onFilter&&c.onFilter({originalEvent:e,filter:t})},onItemClick:X,onListBlur:function(e){w(!1),k(-1),c.onBlur&&c.onBlur(e)},onListFocus:function(e){w(!0);var t=J(),n=W(t);le(n),c.onFocus&&c.onFocus(e)},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())}},onOptionMouseDown:function(e){k(e)},parentId:h,ptm:_,resetFilter:function(){b(""),c.onFilter&&c.onFilter({filter:""})},selection:s,tabIndex:c.tabIndex,value:Y})))})));P.displayName="OrderList",exports.OrderList=P;
|
package/orderlist/orderlist.d.ts
CHANGED
|
@@ -311,7 +311,7 @@ export interface OrderListProps extends Omit<React.DetailedHTMLProps<React.HTMLA
|
|
|
311
311
|
export declare class OrderList extends React.Component<OrderListProps, any> {
|
|
312
312
|
/**
|
|
313
313
|
* Used to get container element.
|
|
314
|
-
* @return {HTMLDivElement} Container element
|
|
314
|
+
* @return {HTMLDivElement | null} Container element
|
|
315
315
|
*/
|
|
316
|
-
public getElement(): HTMLDivElement;
|
|
316
|
+
public getElement(): HTMLDivElement | null;
|
|
317
317
|
}
|
|
@@ -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 = {
|
|
@@ -119,7 +113,7 @@ var classes = {
|
|
|
119
113
|
});
|
|
120
114
|
}
|
|
121
115
|
};
|
|
122
|
-
var 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";
|
|
116
|
+
var 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-item .p-ink {\n pointer-events: none;\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";
|
|
123
117
|
var OrderListBase = ComponentBase.extend({
|
|
124
118
|
defaultProps: {
|
|
125
119
|
__TYPE: 'OrderList',
|
|
@@ -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; }
|
|
@@ -591,7 +579,7 @@ var OrderListSubList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(fun
|
|
|
591
579
|
value: props.filterValue,
|
|
592
580
|
onChange: props.onFilter,
|
|
593
581
|
onKeyDown: onFilterInputKeyDown,
|
|
594
|
-
placeholder: props.
|
|
582
|
+
placeholder: props.filterPlaceholder,
|
|
595
583
|
className: cx('filterInput')
|
|
596
584
|
}, _ptm('filterInput'));
|
|
597
585
|
var filterIconProps = mergeProps({
|
|
@@ -998,35 +986,36 @@ var OrderList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
998
986
|
ref: listElementRef,
|
|
999
987
|
hostName: "OrderList"
|
|
1000
988
|
}, props, {
|
|
1001
|
-
focused: focused,
|
|
1002
989
|
ariaLabel: props.ariaLabel,
|
|
1003
990
|
ariaLabelledBy: props.ariaLabelledBy,
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
focusedOptionId: focusedOptionId,
|
|
1009
|
-
onListKeyDown: onListKeyDown,
|
|
1010
|
-
onListFocus: onListFocus,
|
|
1011
|
-
onListBlur: onListBlur,
|
|
1012
|
-
onFilterInputChange: onFilterInputChange,
|
|
1013
|
-
itemTemplate: props.itemTemplate,
|
|
991
|
+
changeFocusedOptionIndex: changeFocusedOptionIndex,
|
|
992
|
+
cx: cx,
|
|
993
|
+
dataKey: props.dataKey,
|
|
994
|
+
dragdrop: props.dragdrop,
|
|
1014
995
|
filter: props.filter,
|
|
1015
|
-
|
|
1016
|
-
|
|
996
|
+
filterIcon: props.filterIcon,
|
|
997
|
+
filterPlaceholder: props.filterPlaceholder,
|
|
1017
998
|
filterTemplate: props.filterTemplate,
|
|
999
|
+
focused: focused,
|
|
1000
|
+
focusedOptionId: focusedOptionId,
|
|
1018
1001
|
header: props.header,
|
|
1019
|
-
|
|
1002
|
+
isUnstyled: isUnstyled,
|
|
1003
|
+
itemTemplate: props.itemTemplate,
|
|
1020
1004
|
listStyle: props.listStyle,
|
|
1021
|
-
dataKey: props.dataKey,
|
|
1022
|
-
dragdrop: props.dragdrop,
|
|
1023
1005
|
onChange: props.onChange,
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1006
|
+
onFilter: onFilter,
|
|
1007
|
+
onFilterInputChange: onFilterInputChange,
|
|
1008
|
+
onItemClick: onItemClick,
|
|
1009
|
+
onListBlur: onListBlur,
|
|
1010
|
+
onListFocus: onListFocus,
|
|
1011
|
+
onListKeyDown: onListKeyDown,
|
|
1012
|
+
onOptionMouseDown: onOptionMouseDown,
|
|
1013
|
+
parentId: attributeSelectorState,
|
|
1027
1014
|
ptm: ptm,
|
|
1028
|
-
|
|
1029
|
-
|
|
1015
|
+
resetFilter: resetFilter,
|
|
1016
|
+
selection: selectionState,
|
|
1017
|
+
tabIndex: props.tabIndex,
|
|
1018
|
+
value: visibleList
|
|
1030
1019
|
})));
|
|
1031
1020
|
}));
|
|
1032
1021
|
OrderList.displayName = 'OrderList';
|