UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

2 lines (1 loc) 19.9 kB
import e from"primevue/button";import t from"primevue/ripple";import{UniqueComponentId as i,ObjectUtils as l,DomHandler as o}from"primevue/utils";import{resolveComponent as s,resolveDirective as n,openBlock as r,createElementBlock as a,normalizeClass as d,renderSlot as c,createVNode as u,mergeProps as p,createCommentVNode as h,createElementVNode as m,TransitionGroup as f,withCtx as v,Fragment as b,renderList as g,withDirectives as y}from"vue";var $={name:"PickList",emits:["update:modelValue","reorder","update:selection","selection-change","move-to-target","move-to-source","move-all-to-target","move-all-to-source","focus","blur"],props:{modelValue:{type:Array,default:()=>[[],[]]},selection:{type:Array,default:()=>[[],[]]},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},showSourceControls:{type:Boolean,default:!0},showTargetControls:{type:Boolean,default:!0},targetListProps:{type:null,default:null},sourceListProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},moveToTargetProps:{type:null,default:null},moveAllToTargetProps:{type:null,default:null},moveToSourceProps:{type:null,default:null},moveAllToSourceProps:{type:null,default:null},tabindex:{type:Number,default:0}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{id:this.$attrs.id,d_selection:this.selection,focused:{sourceList:!1,targetList:!1},focusedOptionIndex:-1}},watch:{"$attrs.id":function(e){this.id=e||i()},selection(e){this.d_selection=e}},updated(){this.reorderDirection&&(this.updateListScroll(this.$refs.sourceList.$el),this.updateListScroll(this.$refs.targetList.$el),this.reorderDirection=null)},beforeUnmount(){this.destroyStyle()},mounted(){this.id=this.id||i(),this.responsive&&this.createStyle()},methods:{getItemKey(e,t){return this.dataKey?l.resolveFieldData(e,this.dataKey):t},isSelected(e,t){return-1!=l.findIndexInList(e,this.d_selection[t])},onListFocus(e,t){const i=o.findSingle(this.$refs[t].$el,"li.p-picklist-item.p-highlight"),s=l.findIndexInList(i,this.$refs[t].$el.children);this.focused[t]=!0;const n=-1!==this.focusedOptionIndex?this.focusedOptionIndex:i?s:-1;this.changeFocusedOptionIndex(n,t),this.$emit("focus",e)},onListBlur(e,t){this.focused[t]=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onOptionMouseDown(e,t){this.focused[t]=!0,this.focusedOptionIndex=e},moveUp(e,t){if(this.d_selection&&this.d_selection[t]){let i=[...this.modelValue[t]],o=this.d_selection[t];for(let e=0;e<o.length;e++){let t=o[e],s=l.findIndexInList(t,i);if(0===s)break;{let e=i[s],t=i[s-1];i[s-1]=e,i[s]=t}}let s=[...this.modelValue];s[t]=i,this.reorderDirection="up",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveTop(e,t){if(this.d_selection){let i=[...this.modelValue[t]],o=this.d_selection[t];for(let e=0;e<o.length;e++){let t=o[e],s=l.findIndexInList(t,i);if(0===s)break;{let e=i.splice(s,1)[0];i.unshift(e)}}let s=[...this.modelValue];s[t]=i,this.reorderDirection="top",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveDown(e,t){if(this.d_selection){let i=[...this.modelValue[t]],o=this.d_selection[t];for(let e=o.length-1;e>=0;e--){let t=o[e],s=l.findIndexInList(t,i);if(s===i.length-1)break;{let e=i[s],t=i[s+1];i[s+1]=e,i[s]=t}}let s=[...this.modelValue];s[t]=i,this.reorderDirection="down",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveBottom(e,t){if(this.d_selection){let i=[...this.modelValue[t]],o=this.d_selection[t];for(let e=o.length-1;e>=0;e--){let t=o[e],s=l.findIndexInList(t,i);if(s===i.length-1)break;{let e=i.splice(s,1)[0];i.push(e)}}let s=[...this.modelValue];s[t]=i,this.reorderDirection="bottom",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveToTarget(e){let t=this.d_selection&&this.d_selection[0]?this.d_selection[0]:null,i=[...this.modelValue[0]],o=[...this.modelValue[1]];if(t){for(let e=0;e<t.length;e++){let s=t[e];-1==l.findIndexInList(s,o)&&o.push(i.splice(l.findIndexInList(s,i),1)[0])}let s=[...this.modelValue];s[0]=i,s[1]=o,this.$emit("update:modelValue",s),this.$emit("move-to-target",{originalEvent:e,items:t}),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToTarget(e){if(this.modelValue[0]){let t=[...this.modelValue[0]],i=[...this.modelValue[1]];this.$emit("move-all-to-target",{originalEvent:e,items:t}),i=[...i,...t],t=[];let l=[...this.modelValue];l[0]=t,l[1]=i,this.$emit("update:modelValue",l),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveToSource(e){let t=this.d_selection&&this.d_selection[1]?this.d_selection[1]:null,i=[...this.modelValue[0]],o=[...this.modelValue[1]];if(t){for(let e=0;e<t.length;e++){let s=t[e];-1==l.findIndexInList(s,i)&&i.push(o.splice(l.findIndexInList(s,o),1)[0])}let s=[...this.modelValue];s[0]=i,s[1]=o,this.$emit("update:modelValue",s),this.$emit("move-to-source",{originalEvent:e,items:t}),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToSource(e){if(this.modelValue[1]){let t=[...this.modelValue[0]],i=[...this.modelValue[1]];this.$emit("move-all-to-source",{originalEvent:e,items:i}),t=[...t,...i],i=[];let l=[...this.modelValue];l[0]=t,l[1]=i,this.$emit("update:modelValue",l),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},onItemClick(e,t,i,s){const n=0===s?"sourceList":"targetList";this.itemTouched=!1;const r=this.d_selection[s],a=l.findIndexInList(t,this.d_selection),d=-1!=a,c=!this.itemTouched&&this.metaKeySelection,u=o.find(this.$refs[n].$el,".p-picklist-item")[i].getAttribute("id");let p;if(this.focusedOptionIndex=u,c){let i=e.metaKey||e.ctrlKey;d&&i?p=r.filter(((e,t)=>t!==a)):(p=i&&r?[...r]:[],p.push(t))}else d?p=r.filter(((e,t)=>t!==a)):(p=r?[...r]:[],p.push(t));let h=[...this.d_selection];h[s]=p,this.d_selection=h,this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemDblClick(e,t,i){0===i?this.moveToTarget(e):1===i&&this.moveToSource(e)},onItemTouchEnd(){this.itemTouched=!0},onItemKeyDown(e,t){switch(e.code){case"ArrowDown":this.onArrowDownKey(e,t);break;case"ArrowUp":this.onArrowUpKey(e,t);break;case"Home":this.onHomeKey(e,t);break;case"End":this.onEndKey(e,t);break;case"Enter":this.onEnterKey(e,t);break;case"Space":this.onSpaceKey(e,t);break;case"KeyA":e.ctrlKey&&(this.d_selection=[...this.modelValue],this.$emit("update:selection",this.d_selection))}},onArrowDownKey(e,t){const i=this.findNextOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(i,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onArrowUpKey(e,t){const i=this.findPrevOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(i,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onEnterKey(e,t){const i=o.find(this.$refs[t].$el,"li.p-picklist-item"),l=o.findSingle(this.$refs[t].$el,`li.p-picklist-item[id=${this.focusedOptionIndex}]`),s=[...i].findIndex((e=>e===l)),n="sourceList"===t?0:1;this.onItemClick(e,this.modelValue[n][s],s,n),e.preventDefault()},onSpaceKey(e,t){if(e.preventDefault(),e.shiftKey){const e="sourceList"===t?0:1,i=o.find(this.$refs[t].$el,"li.p-picklist-item"),s=l.findIndexInList(this.d_selection[e][0],[...this.modelValue[e]]),n=o.findSingle(this.$refs[t].$el,`li.p-picklist-item[id=${this.focusedOptionIndex}]`),r=[...i].findIndex((e=>e===n));this.d_selection[e]=[...this.modelValue[e]].slice(Math.min(s,r),Math.max(s,r)+1),this.$emit("update:selection",this.d_selection)}else this.onEnterKey(e,t)},onHomeKey(e,t){if(e.ctrlKey&&e.shiftKey){const e="sourceList"===t?0:1,i=o.find(this.$refs[t].$el,"li.p-picklist-item"),l=o.findSingle(this.$refs[t].$el,`li.p-picklist-item[id=${this.focusedOptionIndex}]`),s=[...i].findIndex((e=>e===l));this.d_selection[e]=[...this.modelValue[e]].slice(0,s+1),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(0,t);e.preventDefault()},onEndKey(e,t){const i=o.find(this.$refs[t].$el,"li.p-picklist-item");if(e.ctrlKey&&e.shiftKey){const e="sourceList"===t?0:1,l=o.findSingle(this.$refs[t].$el,`li.p-picklist-item[id=${this.focusedOptionIndex}]`),s=[...i].findIndex((e=>e===l));this.d_selection[e]=[...this.modelValue[e]].slice(s,i.length),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(i.length-1,t);e.preventDefault()},findNextOptionIndex(e,t){const i=[...o.find(this.$refs[t].$el,"li.p-picklist-item")].findIndex((t=>t.id===e));return i>-1?i+1:0},findPrevOptionIndex(e,t){const i=[...o.find(this.$refs[t].$el,"li.p-picklist-item")].findIndex((t=>t.id===e));return i>-1?i-1:0},changeFocusedOptionIndex(e,t){const i=o.find(this.$refs[t].$el,"li.p-picklist-item");let l=e>=i.length?i.length-1:e<0?0:e;this.focusedOptionIndex=i[l].getAttribute("id"),this.scrollInView(i[l].getAttribute("id"),t)},scrollInView(e,t){const i=o.findSingle(this.$refs[t].$el,`li[id="${e}"]`);i&&i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"start"})},updateListScroll(e){const t=o.find(e,".p-picklist-item.p-highlight");if(t&&t.length)switch(this.reorderDirection){case"up":o.scrollInView(e,t[0]);break;case"top":e.scrollTop=0;break;case"down":o.scrollInView(e,t[t.length-1]);break;case"bottom":e.scrollTop=e.scrollHeight}},createStyle(){if(!this.styleElement){this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e=`\n@media screen and (max-width: ${this.breakpoint}) {\n .p-picklist[${this.attributeSelector}] {\n flex-direction: column;\n }\n\n .p-picklist[${this.attributeSelector}] .p-picklist-buttons {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-picklist[${this.attributeSelector}] .p-picklist-buttons .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-picklist[${this.attributeSelector}] .p-picklist-buttons .p-button:last-child {\n margin-right: 0;\n }\n\n .p-picklist[${this.attributeSelector}] .pi-angle-right:before {\n content: "\\e930"\n }\n\n .p-picklist[${this.attributeSelector}] .pi-angle-double-right:before {\n content: "\\e92c"\n }\n\n .p-picklist[${this.attributeSelector}] .pi-angle-left:before {\n content: "\\e933"\n }\n\n .p-picklist[${this.attributeSelector}] .pi-angle-double-left:before {\n content: "\\e92f"\n }\n}\n`;this.styleElement.innerHTML=e}},destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled(e){if(!this.d_selection[e]||!this.d_selection[e].length)return!0},moveAllDisabled(e){return l.isEmpty(this[e])},moveSourceDisabled(){return l.isEmpty(this.targetList)},itemClass(e,t,i){return["p-picklist-item",{"p-highlight":this.isSelected(e,i),"p-focus":t===this.focusedOptionId}]}},computed:{idSource(){return`${this.id}_source`},idTarget(){return`${this.id}_target`},focusedOptionId(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},containerClass(){return["p-picklist p-component",{"p-picklist-striped":this.stripedRows}]},sourceList(){return this.modelValue&&this.modelValue[0]?this.modelValue[0]:null},targetList(){return this.modelValue&&this.modelValue[1]?this.modelValue[1]:null},attributeSelector:()=>i(),moveUpAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0},moveToTargetAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToTarget:void 0},moveAllToTargetAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToTarget:void 0},moveToSourceAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToSource:void 0},moveAllToSourceAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToSource:void 0}},components:{PLButton:e},directives:{ripple:t}};const k={key:0,class:"p-picklist-buttons p-picklist-source-controls"},I={class:"p-picklist-list-wrapper p-picklist-source-wrapper"},L={key:0,class:"p-picklist-header"},T=["id","onClick","onDblclick","onMousedown","aria-selected"],x={class:"p-picklist-buttons p-picklist-transfer-buttons"},w={class:"p-picklist-list-wrapper p-picklist-target-wrapper"},S={key:0,class:"p-picklist-header"},D=["id","onClick","onDblclick","onMousedown","aria-selected"],_={key:1,class:"p-picklist-buttons p-picklist-target-controls"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&l.firstChild?l.insertBefore(o,l.firstChild):l.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-picklist {\n display: flex;\n}\n.p-picklist-buttons {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.p-picklist-list-wrapper {\n flex: 1 1 50%;\n}\n.p-picklist-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.p-picklist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-picklist-item.p-picklist-flip-enter-active.p-picklist-flip-enter-to,\n.p-picklist-item.p-picklist-flip-leave-active.p-picklist-flip-leave-to {\n transition: none !important;\n}\n"),$.render=function(e,t,i,l,o,$){const A=s("PLButton"),V=n("ripple");return r(),a("div",{class:d($.containerClass)},[i.showSourceControls?(r(),a("div",k,[c(e.$slots,"sourcecontrolsstart"),u(A,p({"aria-label":$.moveUpAriaLabel,disabled:$.moveDisabled(0)},i.moveUpButtonProps,{type:"button",icon:"pi pi-angle-up",onClick:t[0]||(t[0]=e=>$.moveUp(e,0))}),null,16,["aria-label","disabled"]),u(A,p({"aria-label":$.moveTopAriaLabel,disabled:$.moveDisabled(0)},i.moveTopButtonProps,{type:"button",icon:"pi pi-angle-double-up",onClick:t[1]||(t[1]=e=>$.moveTop(e,0))}),null,16,["aria-label","disabled"]),u(A,p({"aria-label":$.moveDownAriaLabel,disabled:$.moveDisabled(0)},i.moveDownButtonProps,{type:"button",icon:"pi pi-angle-down",onClick:t[2]||(t[2]=e=>$.moveDown(e,0))}),null,16,["aria-label","disabled"]),u(A,p({"aria-label":$.moveBottomAriaLabel,disabled:$.moveDisabled(0)},i.moveBottomButtonProps,{type:"button",icon:"pi pi-angle-double-down",onClick:t[3]||(t[3]=e=>$.moveBottom(e,0))}),null,16,["aria-label","disabled"]),c(e.$slots,"sourcecontrolsend")])):h("",!0),m("div",I,[e.$slots.sourceheader?(r(),a("div",L,[c(e.$slots,"sourceheader")])):h("",!0),u(f,p({ref:"sourceList",id:$.idSource+"_list",name:"p-picklist-flip",tag:"ul",class:"p-picklist-list p-picklist-source",style:i.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":o.focused.sourceList?$.focusedOptionId:void 0,tabindex:$.sourceList&&$.sourceList.length>0?i.tabindex:-1,onFocus:t[5]||(t[5]=e=>$.onListFocus(e,"sourceList")),onBlur:t[6]||(t[6]=e=>$.onListBlur(e,"sourceList")),onKeydown:t[7]||(t[7]=e=>$.onItemKeyDown(e,"sourceList"))},i.sourceListProps),{default:v((()=>[(r(!0),a(b,null,g($.sourceList,((i,l)=>y((r(),a("li",{key:$.getItemKey(i,l),id:$.idSource+"_"+l,class:d($.itemClass(i,`${$.idSource}_${l}`,0)),onClick:e=>$.onItemClick(e,i,l,0),onDblclick:e=>$.onItemDblClick(e,i,0),onTouchend:t[4]||(t[4]=(...e)=>$.onItemTouchEnd&&$.onItemTouchEnd(...e)),onMousedown:e=>$.onOptionMouseDown(l,"sourceList"),role:"option","aria-selected":$.isSelected(i,0)},[c(e.$slots,"item",{item:i,index:l})],42,T)),[[V]]))),128))])),_:3},16,["id","style","aria-activedescendant","tabindex"])]),m("div",x,[c(e.$slots,"movecontrolsstart"),u(A,p({"aria-label":$.moveToTargetAriaLabel,type:"button",icon:"pi pi-angle-right",onClick:$.moveToTarget,disabled:$.moveDisabled(0)},i.moveToTargetProps),null,16,["aria-label","onClick","disabled"]),u(A,p({"aria-label":$.moveAllToTargetAriaLabel,type:"button",icon:"pi pi-angle-double-right",onClick:$.moveAllToTarget,disabled:$.moveAllDisabled("sourceList")},i.moveAllToTargetProps),null,16,["aria-label","onClick","disabled"]),u(A,p({"aria-label":$.moveToSourceAriaLabel,type:"button",icon:"pi pi-angle-left",onClick:$.moveToSource,disabled:$.moveDisabled(1)},i.moveToSourceProps),null,16,["aria-label","onClick","disabled"]),u(A,p({"aria-label":$.moveAllToSourceAriaLabel,type:"button",icon:"pi pi-angle-double-left",onClick:$.moveAllToSource,disabled:$.moveSourceDisabled("targetList")},i.moveAllToSourceProps),null,16,["aria-label","onClick","disabled"]),c(e.$slots,"movecontrolsend")]),m("div",w,[e.$slots.targetheader?(r(),a("div",S,[c(e.$slots,"targetheader")])):h("",!0),u(f,p({ref:"targetList",id:$.idTarget+"_list",name:"p-picklist-flip",tag:"ul",class:"p-picklist-list p-picklist-target",style:i.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":o.focused.targetList?$.focusedOptionId:void 0,tabindex:$.targetList&&$.targetList.length>0?i.tabindex:-1,onFocus:t[10]||(t[10]=e=>$.onListFocus(e,"targetList")),onBlur:t[11]||(t[11]=e=>$.onListBlur(e,"targetList")),onKeydown:t[12]||(t[12]=e=>$.onItemKeyDown(e,"targetList"))},i.targetListProps),{default:v((()=>[(r(!0),a(b,null,g($.targetList,((i,l)=>y((r(),a("li",{key:$.getItemKey(i,l),id:$.idTarget+"_"+l,class:d($.itemClass(i,`${$.idTarget}_${l}`,1)),onClick:e=>$.onItemClick(e,i,l,1),onDblclick:e=>$.onItemDblClick(e,i,1),onKeydown:t[8]||(t[8]=e=>$.onItemKeyDown(e,"targetList")),onMousedown:e=>$.onOptionMouseDown(l,"targetList"),onTouchend:t[9]||(t[9]=(...e)=>$.onItemTouchEnd&&$.onItemTouchEnd(...e)),role:"option","aria-selected":$.isSelected(i,1)},[c(e.$slots,"item",{item:i,index:l})],42,D)),[[V]]))),128))])),_:3},16,["id","style","aria-activedescendant","tabindex"])]),i.showTargetControls?(r(),a("div",_,[c(e.$slots,"targetcontrolsstart"),u(A,p({"aria-label":$.moveUpAriaLabel,disabled:$.moveDisabled(1)},i.moveUpButtonProps,{type:"button",icon:"pi pi-angle-up",onClick:t[13]||(t[13]=e=>$.moveUp(e,1))}),null,16,["aria-label","disabled"]),u(A,p({"aria-label":$.moveTopAriaLabel,disabled:$.moveDisabled(1)},i.moveTopButtonProps,{type:"button",icon:"pi pi-angle-double-up",onClick:t[14]||(t[14]=e=>$.moveTop(e,1))}),null,16,["aria-label","disabled"]),u(A,p({"aria-label":$.moveDownAriaLabel,disabled:$.moveDisabled(1)},i.moveDownButtonProps,{type:"button",icon:"pi pi-angle-down",onClick:t[15]||(t[15]=e=>$.moveDown(e,1))}),null,16,["aria-label","disabled"]),u(A,p({"aria-label":$.moveBottomAriaLabel,disabled:$.moveDisabled(1)},i.moveBottomButtonProps,{type:"button",icon:"pi pi-angle-double-down",onClick:t[16]||(t[16]=e=>$.moveBottom(e,1))}),null,16,["aria-label","disabled"]),c(e.$slots,"targetcontrolsend")])):h("",!0)],2)};export{$ as default};