primevue 3.30.0 → 3.30.2
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/README.md +4 -2
- package/accordion/Accordion.d.ts +6 -1
- package/accordion/Accordion.vue +2 -1
- package/accordion/accordion.cjs.js +5 -9
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +5 -9
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +6 -10
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +1 -1
- package/autocomplete/AutoComplete.d.ts +1 -1
- package/avatar/Avatar.d.ts +1 -1
- package/badge/Badge.d.ts +1 -1
- package/basecomponent/BaseComponent.vue +12 -16
- package/basecomponent/basecomponent.cjs.js +18 -6
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +18 -6
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +18 -6
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +8 -2
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +8 -2
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +8 -2
- package/basedirective/basedirective.min.js +1 -1
- package/blockui/BlockUI.d.ts +1 -1
- package/breadcrumb/Breadcrumb.d.ts +1 -1
- package/button/Button.d.ts +1 -1
- package/calendar/Calendar.d.ts +1 -1
- package/carousel/Carousel.d.ts +1 -1
- package/cascadeselect/CascadeSelect.d.ts +1 -1
- package/chart/Chart.d.ts +1 -1
- package/checkbox/Checkbox.d.ts +1 -1
- package/chip/Chip.d.ts +1 -1
- package/chips/Chips.d.ts +1 -1
- package/colorpicker/ColorPicker.d.ts +1 -1
- package/column/Column.d.ts +49 -1
- package/columngroup/ColumnGroup.d.ts +6 -1
- package/config/PrimeVue.d.ts +13 -6
- package/confirmdialog/ConfirmDialog.d.ts +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +1 -1
- package/contextmenu/ContextMenu.d.ts +1 -1
- package/core/core.js +144 -103
- package/core/core.min.js +10 -10
- package/datatable/BaseDataTable.vue +7 -1
- package/datatable/BodyCell.vue +7 -4
- package/datatable/ColumnFilter.vue +43 -8
- package/datatable/DataTable.d.ts +31 -1
- package/datatable/FooterCell.vue +5 -2
- package/datatable/HeaderCell.vue +8 -3
- package/datatable/HeaderCheckbox.vue +5 -2
- package/datatable/RowCheckbox.vue +5 -2
- package/datatable/RowRadioButton.vue +5 -2
- package/datatable/TableBody.vue +33 -13
- package/datatable/TableFooter.vue +13 -4
- package/datatable/TableHeader.vue +16 -5
- package/datatable/datatable.cjs.js +221 -145
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +221 -145
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +222 -146
- package/datatable/datatable.min.js +1 -1
- package/dataview/BaseDataView.vue +1 -2
- package/dataview/DataView.d.ts +1 -1
- package/dataview/DataView.vue +3 -3
- package/dataview/dataview.cjs.js +5 -13
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +5 -13
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +5 -13
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +6 -1
- package/deferredcontent/DeferredContent.d.ts +1 -1
- package/dialog/Dialog.d.ts +1 -1
- package/dialog/Dialog.vue +13 -1
- package/dialog/dialog.cjs.js +6 -2
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +6 -2
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +6 -2
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +1 -1
- package/dock/Dock.d.ts +5 -1
- package/dock/DockSub.vue +9 -8
- package/dock/dock.cjs.js +9 -8
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +9 -8
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +9 -8
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +1 -1
- package/editor/Editor.d.ts +1 -1
- package/fieldset/Fieldset.d.ts +1 -1
- package/fileupload/FileUpload.d.ts +1 -1
- package/galleria/Galleria.d.ts +5 -1
- package/galleria/GalleriaContent.vue +16 -6
- package/galleria/GalleriaItem.vue +2 -1
- package/galleria/GalleriaThumbnails.vue +1 -0
- package/galleria/galleria.cjs.js +34 -17
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +35 -18
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +34 -17
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +1 -1
- package/inlinemessage/InlineMessage.d.ts +1 -1
- package/inplace/Inplace.d.ts +1 -1
- package/inputnumber/InputNumber.d.ts +1 -1
- package/inputswitch/InputSwitch.d.ts +1 -1
- package/inputtext/InputText.d.ts +26 -1
- package/inputtext/InputText.vue +2 -1
- package/inputtext/inputtext.cjs.js +2 -1
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +2 -1
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +2 -1
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +1 -1
- package/listbox/Listbox.d.ts +1 -1
- package/megamenu/MegaMenu.d.ts +1 -1
- package/menu/Menu.d.ts +1 -1
- package/menubar/Menubar.d.ts +1 -1
- package/message/BaseMessage.vue +2 -2
- package/message/Message.d.ts +11 -1
- package/message/Message.vue +3 -3
- package/message/message.cjs.js +8 -8
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +8 -8
- package/message/message.esm.min.js +1 -1
- package/message/message.js +8 -8
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +1 -1
- package/multiselect/MultiSelect.vue +3 -2
- package/multiselect/multiselect.cjs.js +5 -5
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +6 -6
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +5 -5
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +18 -1
- package/orderlist/OrderList.vue +7 -7
- package/orderlist/orderlist.cjs.js +19 -15
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +19 -15
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +19 -15
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +1 -1
- package/overlaypanel/OverlayPanel.d.ts +1 -1
- package/overlaypanel/OverlayPanel.vue +4 -2
- package/overlaypanel/overlaypanel.cjs.js +4 -2
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +4 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +4 -2
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/JumpToPageDropdown.vue +1 -1
- package/paginator/Paginator.d.ts +1 -26
- package/paginator/paginator.cjs.js +1 -1
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +1 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +1 -1
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +2 -2
- package/panelmenu/PanelMenu.d.ts +1 -1
- package/password/Password.d.ts +1 -1
- package/picklist/BasePickList.vue +4 -4
- package/picklist/PickList.d.ts +22 -1
- package/picklist/PickList.vue +19 -19
- package/picklist/picklist.cjs.js +59 -47
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +59 -47
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +59 -47
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +1 -1
- package/progressspinner/ProgressSpinner.d.ts +1 -1
- package/radiobutton/RadioButton.d.ts +1 -1
- package/rating/Rating.d.ts +1 -1
- package/row/Row.d.ts +1 -1
- package/scrollpanel/ScrollPanel.d.ts +1 -1
- package/scrollpanel/ScrollPanel.vue +2 -0
- package/scrollpanel/scrollpanel.cjs.js +6 -2
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +6 -2
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +6 -2
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/ScrollTop.d.ts +1 -1
- package/selectbutton/SelectButton.d.ts +1 -1
- package/sidebar/Sidebar.d.ts +1 -1
- package/sidebar/Sidebar.vue +1 -1
- package/sidebar/sidebar.cjs.js +3 -1
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +3 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +3 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +1 -1
- package/slider/Slider.d.ts +1 -1
- package/speeddial/SpeedDial.d.ts +1 -1
- package/splitbutton/SplitButton.d.ts +1 -1
- package/splitbutton/SplitButton.vue +2 -1
- package/splitbutton/splitbutton.cjs.js +4 -2
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +4 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +4 -2
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +1 -1
- package/splitterpanel/SplitterPanel.d.ts +1 -1
- package/steps/Steps.d.ts +1 -1
- package/tabmenu/TabMenu.d.ts +1 -1
- package/tabmenu/TabMenu.vue +71 -72
- package/tabmenu/tabmenu.cjs.js +67 -75
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +67 -75
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +67 -75
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +17 -1
- package/tabview/TabView.d.ts +6 -1
- package/tabview/TabView.vue +12 -4
- package/tabview/tabview.cjs.js +23 -16
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +23 -16
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +24 -17
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +1 -1
- package/terminal/Terminal.d.ts +1 -1
- package/textarea/Textarea.d.ts +18 -1
- package/textarea/Textarea.vue +8 -1
- package/textarea/textarea.cjs.js +8 -1
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +8 -1
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +8 -1
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +1 -1
- package/timeline/Timeline.d.ts +20 -1
- package/timeline/Timeline.vue +14 -6
- package/timeline/timeline.cjs.js +17 -7
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +17 -7
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +17 -7
- package/timeline/timeline.min.js +1 -1
- package/toast/BaseToast.vue +2 -2
- package/toast/Toast.d.ts +11 -1
- package/toast/ToastMessage.vue +3 -2
- package/toast/toast.cjs.js +7 -6
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +7 -6
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +7 -6
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +1 -1
- package/toolbar/Toolbar.d.ts +1 -1
- package/tree/Tree.d.ts +10 -1
- package/tree/TreeNode.vue +3 -1
- package/tree/tree.cjs.js +3 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +3 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +3 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +1 -1
- package/treetable/BaseTreeTable.vue +9 -3
- package/treetable/BodyCell.vue +16 -5
- package/treetable/FooterCell.vue +5 -2
- package/treetable/HeaderCell.vue +11 -3
- package/treetable/TreeTable.d.ts +31 -9
- package/treetable/TreeTable.vue +13 -5
- package/treetable/TreeTableRow.vue +11 -2
- package/treetable/treetable.cjs.js +84 -55
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +85 -56
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +84 -55
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +1 -1
- package/usestyle/UseStyle.d.ts +1 -0
- package/usestyle/usestyle.cjs.js +12 -10
- package/usestyle/usestyle.cjs.min.js +1 -1
- package/usestyle/usestyle.esm.js +12 -10
- package/usestyle/usestyle.esm.min.js +1 -1
- package/usestyle/usestyle.js +12 -10
- package/usestyle/usestyle.min.js +1 -1
- package/utils/Utils.d.ts +4 -3
- package/utils/utils.cjs.js +19 -5
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +19 -5
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +19 -5
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +8 -0
- package/vetur-tags.json +2 -0
- package/virtualscroller/VirtualScroller.d.ts +1 -1
- package/web-types.json +21 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.paginator=function(e,t,n,a,o,r,i,l,s,p,u){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=c(t),d=c(o),m=c(r),f=c(i),h=c(l),P=c(s),b=c(p),v=c(u);function y(e){return y="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},y(e)}function k(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=B(e,"string");return"symbol"===y(t)?t:String(t)}function B(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==y(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var L={paginator:function(e){var t=e.instance,n=e.key;return["p-paginator p-component",k({"p-paginator-default":!t.hasBreakpoints()},"p-paginator-".concat(n),t.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(e){return["p-paginator-first p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(e){return["p-paginator-prev p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(e){return["p-paginator-next p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(e){return["p-paginator-last p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(e){return["p-paginator-page p-paginator-element p-link",{"p-highlight":e.pageLink-1===e.props.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"},C=n.useStyle("\n.p-paginator-default {\n display: flex;\n}\n\n.p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n}\n\n.p-paginator-left-content {\n margin-right: auto;\n}\n\n.p-paginator-right-content {\n margin-left: auto;\n}\n\n.p-paginator-page,\n.p-paginator-next,\n.p-paginator-last,\n.p-paginator-first,\n.p-paginator-prev,\n.p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n}\n\n.p-paginator-element:focus {\n z-index: 1;\n position: relative;\n}\n",{name:"paginator",manual:!0}),x={name:"BasePaginator",extends:g.default,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},css:{classes:L,loadStyle:C.load},provide:function(){return{$parentInstance:this}}},T={name:"CurrentPageReport",hostName:"Paginator",extends:g.default,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var e=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return e}}};T.render=function(e,t,n,o,r,i){return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:e.cx("current")},e.ptm("current")),a.toDisplayString(i.text),17)};var S={name:"FirstPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:d.default},directives:{ripple:m.default}};S.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("firstPageButton"),type:"button"},i.getPTOptions("firstPageButton")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleLeftIcon"),a.mergeProps({class:e.cx("firstPageIcon")},i.getPTOptions("firstPageIcon")),null,16,["class"]))],16)),[[l]])};var D={name:"JumpToPageDropdown",hostName:"Paginator",extends:g.default,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},methods:{onChange:function(e){this.$emit("page-change",e)}},computed:{pageOptions:function(){for(var e=[],t=0;t<this.pageCount;t++)e.push({label:String(t+1),value:t});return e}},components:{JTPDropdown:f.default}};D.render=function(e,t,n,o,r,i){var l=a.resolveComponent("JTPDropdown");return a.openBlock(),a.createBlock(l,{modelValue:n.page,options:i.pageOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.onChange(e)}),class:a.normalizeClass(e.cx("jumpToPageDropdown")),disabled:n.disabled,unstyled:e.unstyled,pt:e.ptm("jumpTpPageDropdown"),"data-pc-section":"jumptopagedropdown"},null,8,["modelValue","options","class","disabled","unstyled","pt"])};var I={name:"JumpToPageInput",hostName:"Paginator",extends:g.default,inheritAttrs:!1,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},data:function(){return{d_page:this.page}},watch:{page:function(e){this.d_page=e}},methods:{onChange:function(e){e!==this.page&&(this.d_page=e,this.$emit("page-change",e-1))}},computed:{inputArialabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.jumpToPageInputLabel:void 0}},components:{JTPInput:h.default}};I.render=function(e,t,n,o,r,i){var l=a.resolveComponent("JTPInput");return a.openBlock(),a.createBlock(l,{ref:"jtpInput",modelValue:r.d_page,class:a.normalizeClass(e.cx("jumpToPageInput")),"aria-label":i.inputArialabel,disabled:n.disabled,"onUpdate:modelValue":i.onChange,unstyled:e.unstyled,pt:e.ptm("jumpToPageInput"),"data-pc-section":"jumptopageinput"},null,8,["modelValue","class","aria-label","disabled","onUpdate:modelValue","unstyled","pt"])};var N={name:"LastPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleRightIcon:P.default},directives:{ripple:m.default}};N.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("lastPageButton"),type:"button"},i.getPTOptions("lastPageButton")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleRightIcon"),a.mergeProps({class:e.cx("lastPageIcon")},i.getPTOptions("lastPageIcon")),null,16,["class"]))],16)),[[l]])};var A={name:"NextPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleRightIcon:b.default},directives:{ripple:m.default}};A.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("nextPageButton"),type:"button"},i.getPTOptions("nextPageButton")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleRightIcon"),a.mergeProps({class:e.cx("nextPageIcon")},i.getPTOptions("nextPageIcon")),null,16,["class"]))],16)),[[l]])};var $={name:"PageLinks",hostName:"Paginator",extends:g.default,inheritAttrs:!1,emits:["click"],props:{value:Array,page:Number},methods:{getPTOptions:function(e,t){return this.ptm(t,{context:{active:e===this.page}})},onPageLinkClick:function(e,t){this.$emit("click",{originalEvent:e,value:t})},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},directives:{ripple:m.default}},O=["aria-label","aria-current","onClick","data-p-highlight"];$.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:e.cx("pages")},e.ptm("pages")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(function(t){return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:t,class:e.cx("pageButton",{pageLink:t}),type:"button","aria-label":i.ariaPageLabel(t),"aria-current":t-1===n.page?"page":void 0,onClick:function(e){return i.onPageLinkClick(e,t)}},i.getPTOptions(t-1,"pageButton"),{"data-p-highlight":t-1===n.page}),[a.createTextVNode(a.toDisplayString(t),1)],16,O)),[[l]])})),128))],16)};var R={name:"PrevPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleLeftIcon:v.default},directives:{ripple:m.default}};R.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("previousPageButton"),type:"button"},i.getPTOptions("previousPageButton")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleLeftIcon"),a.mergeProps({class:e.cx("previousPageIcon")},i.getPTOptions("previousPageIcon")),null,16,["class"]))],16)),[[l]])};var j={name:"RowsPerPageDropdown",hostName:"Paginator",extends:g.default,emits:["rows-change"],props:{options:Array,rows:Number,disabled:Boolean},methods:{onChange:function(e){this.$emit("rows-change",e)}},computed:{rowsOptions:function(){var e=[];if(this.options)for(var t=0;t<this.options.length;t++)e.push({label:String(this.options[t]),value:this.options[t]});return e}},components:{RPPDropdown:f.default}};function E(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function F(e){if(Array.isArray(e))return U(e)}function V(e){return V="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},V(e)}function J(e,t){return H(e)||q(e,t)||z(e,t)||M()}function M(){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 z(e,t){if(e){if("string"==typeof e)return U(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)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function q(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,r,i,l=[],s=!0,p=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){p=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(p)throw o}}return l}}function H(e){if(Array.isArray(e))return e}j.render=function(e,t,n,o,r,i){var l=a.resolveComponent("RPPDropdown");return a.openBlock(),a.createBlock(l,{modelValue:n.rows,options:i.rowsOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.onChange(e)}),class:a.normalizeClass(e.cx("rowPerPageDropdown")),disabled:n.disabled,unstyled:e.unstyled,pt:e.ptm("rowPerPageDropdown"),"data-pc-section":"rowperpagedropdown"},null,8,["modelValue","options","class","disabled","unstyled","pt"])};var W={name:"Paginator",extends:x,emits:["update:first","update:rows","page"],data:function(){return{d_first:this.first,d_rows:this.rows}},watch:{first:function(e){this.d_first=e},rows:function(e){this.d_rows=e},totalRecords:function(e){this.page>0&&e&&this.d_first>=e&&this.changePage(this.pageCount-1)}},mounted:function(){this.setPaginatorAttribute(),this.createStyle()},methods:{changePage:function(e){var t=this.pageCount;if(e>=0&&e<t){this.d_first=this.d_rows*e;var n={page:e,first:this.d_first,rows:this.d_rows,pageCount:t};this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",n)}},changePageToFirst:function(e){this.isFirstPage||this.changePage(0),e.preventDefault()},changePageToPrev:function(e){this.changePage(this.page-1),e.preventDefault()},changePageLink:function(e){this.changePage(e.value-1),e.originalEvent.preventDefault()},changePageToNext:function(e){this.changePage(this.page+1),e.preventDefault()},changePageToLast:function(e){this.isLastPage||this.changePage(this.pageCount-1),e.preventDefault()},onRowChange:function(e){this.d_rows=e,this.changePage(this.page)},createStyle:function(){var e=this;if(this.hasBreakpoints()&&!this.isUnstyled){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);var t="",n=Object.keys(this.template),a={};n.sort((function(e,t){return parseInt(e)-parseInt(t)})).forEach((function(t){a[t]=e.template[t]}));for(var o=0,r=Object.entries(Object.entries(a));o<r.length;o++){var i=J(r[o],2),l=i[0],s=J(i[1],1)[0],p=Object.entries(a)[l-1]?"and (min-width:".concat(Object.keys(a)[l-1],")"):"";t+="default"===s?"\n @media screen ".concat(p," {\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: flex !important;\n }\n }\n "):"\n .paginator[".concat(this.attributeSelector,"], .p-paginator-").concat(s," {\n display: none !important;\n }\n @media screen ").concat(p," and (max-width: ").concat(s,") {\n .paginator[").concat(this.attributeSelector,"], .p-paginator-").concat(s," {\n display: flex !important;\n }\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: none !important;\n }\n }\n ")}this.styleElement.innerHTML=t}},hasBreakpoints:function(){return"object"===V(this.template)},setPaginatorAttribute:function(){var e,t=this;this.$refs.paginator&&this.$refs.paginator.length>=0&&(e=this.$refs.paginator,F(e)||_(e)||z(e)||E()).forEach((function(e){e.setAttribute(t.attributeSelector,"")}))},getAriaLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[e]:void 0}},computed:{templateItems:function(){var e={};if(this.hasBreakpoints()){for(var t in(e=this.template).default||(e.default="FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"),e)e[t]=this.template[t].split(" ").map((function(e){return e.trim()}));return e}return e.default=this.template.split(" ").map((function(e){return e.trim()})),e},page:function(){return Math.floor(this.d_first/this.d_rows)},pageCount:function(){return Math.ceil(this.totalRecords/this.d_rows)},isFirstPage:function(){return 0===this.page},isLastPage:function(){return this.page===this.pageCount-1},calculatePageLinkBoundaries:function(){var e=this.pageCount,t=Math.min(this.pageLinkSize,e),n=Math.max(0,Math.ceil(this.page-t/2)),a=Math.min(e-1,n+t-1);return[n=Math.max(0,n-(this.pageLinkSize-(a-n+1))),a]},pageLinks:function(){for(var e=[],t=this.calculatePageLinkBoundaries,n=t[1],a=t[0];a<=n;a++)e.push(a+1);return e},currentState:function(){return{page:this.page,first:this.d_first,rows:this.d_rows}},empty:function(){return 0===this.pageCount},currentPage:function(){return this.pageCount>0?this.page+1:0},attributeSelector:function(){return e.UniqueComponentId()}},components:{CurrentPageReport:T,FirstPageLink:S,LastPageLink:N,NextPageLink:A,PageLinks:$,PrevPageLink:R,RowsPerPageDropdown:j,JumpToPageDropdown:D,JumpToPageInput:I}};return W.render=function(e,t,n,o,r,i){var l=a.resolveComponent("FirstPageLink"),s=a.resolveComponent("PrevPageLink"),p=a.resolveComponent("NextPageLink"),u=a.resolveComponent("LastPageLink"),c=a.resolveComponent("PageLinks"),g=a.resolveComponent("CurrentPageReport"),d=a.resolveComponent("RowsPerPageDropdown"),m=a.resolveComponent("JumpToPageDropdown"),f=a.resolveComponent("JumpToPageInput");return e.alwaysShow||i.pageLinks&&i.pageLinks.length>1?(a.openBlock(),a.createElementBlock("nav",a.normalizeProps(a.mergeProps({key:0},e.ptm("paginatorWrapper"))),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.templateItems,(function(n,o){return a.openBlock(),a.createElementBlock("div",a.mergeProps({key:o,ref_for:!0,ref:"paginator",class:e.cx("paginator",{key:o})},e.ptm("root"),{"data-pc-name":"paginator"}),[e.$slots.start?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("start")},e.ptm("start")),[a.renderSlot(e.$slots,"start",{state:i.currentState})],16)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n,(function(n){return a.openBlock(),a.createElementBlock(a.Fragment,{key:n},["FirstPageLink"===n?(a.openBlock(),a.createBlock(l,{key:0,"aria-label":i.getAriaLabel("firstPageLabel"),template:e.$slots.firstpagelinkicon,onClick:t[0]||(t[0]=function(e){return i.changePageToFirst(e)}),disabled:i.isFirstPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"PrevPageLink"===n?(a.openBlock(),a.createBlock(s,{key:1,"aria-label":i.getAriaLabel("prevPageLabel"),template:e.$slots.prevpagelinkicon,onClick:t[1]||(t[1]=function(e){return i.changePageToPrev(e)}),disabled:i.isFirstPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"NextPageLink"===n?(a.openBlock(),a.createBlock(p,{key:2,"aria-label":i.getAriaLabel("nextPageLabel"),template:e.$slots.nextpagelinkicon,onClick:t[2]||(t[2]=function(e){return i.changePageToNext(e)}),disabled:i.isLastPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"LastPageLink"===n?(a.openBlock(),a.createBlock(u,{key:3,"aria-label":i.getAriaLabel("lastPageLabel"),template:e.$slots.lastpagelinkicon,onClick:t[3]||(t[3]=function(e){return i.changePageToLast(e)}),disabled:i.isLastPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"PageLinks"===n?(a.openBlock(),a.createBlock(c,{key:4,"aria-label":i.getAriaLabel("pageLabel"),value:i.pageLinks,page:i.page,onClick:t[4]||(t[4]=function(e){return i.changePageLink(e)}),pt:e.pt},null,8,["aria-label","value","page","pt"])):"CurrentPageReport"===n?(a.openBlock(),a.createBlock(g,{key:5,"aria-live":"polite",template:e.currentPageReportTemplate,currentPage:i.currentPage,page:i.page,pageCount:i.pageCount,first:r.d_first,rows:r.d_rows,totalRecords:e.totalRecords,pt:e.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","pt"])):"RowsPerPageDropdown"===n&&e.rowsPerPageOptions?(a.openBlock(),a.createBlock(d,{key:6,"aria-label":i.getAriaLabel("rowsPerPageLabel"),rows:r.d_rows,options:e.rowsPerPageOptions,onRowsChange:t[5]||(t[5]=function(e){return i.onRowChange(e)}),disabled:i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","rows","options","disabled","unstyled","pt"])):"JumpToPageDropdown"===n?(a.openBlock(),a.createBlock(m,{key:7,"aria-label":i.getAriaLabel("jumpToPageDropdownLabel"),page:i.page,pageCount:i.pageCount,onPageChange:t[6]||(t[6]=function(e){return i.changePage(e)}),disabled:i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","page","pageCount","disabled","unstyled","pt"])):"JumpToPageInput"===n?(a.openBlock(),a.createBlock(f,{key:8,page:i.currentPage,onPageChange:t[7]||(t[7]=function(e){return i.changePage(e)}),disabled:i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["page","disabled","unstyled","pt"])):a.createCommentVNode("",!0)],64)})),128)),e.$slots.end?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:e.cx("end")},e.ptm("end")),[a.renderSlot(e.$slots,"end",{state:i.currentState})],16)):a.createCommentVNode("",!0)],16)})),128))],16)):a.createCommentVNode("",!0)},W}(primevue.utils,primevue.basecomponent,primevue.usestyle,Vue,primevue.icons.angledoubleleft,primevue.ripple,primevue.dropdown,primevue.inputnumber,primevue.icons.angledoubleright,primevue.icons.angleright,primevue.icons.angleleft);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.paginator=function(e,t,n,a,o,r,i,l,s,p,u){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=c(t),d=c(o),m=c(r),f=c(i),h=c(l),P=c(s),b=c(p),v=c(u);function y(e){return y="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},y(e)}function k(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=B(e,"string");return"symbol"===y(t)?t:String(t)}function B(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==y(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var L={paginator:function(e){var t=e.instance,n=e.key;return["p-paginator p-component",k({"p-paginator-default":!t.hasBreakpoints()},"p-paginator-".concat(n),t.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(e){return["p-paginator-first p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(e){return["p-paginator-prev p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(e){return["p-paginator-next p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(e){return["p-paginator-last p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(e){return["p-paginator-page p-paginator-element p-link",{"p-highlight":e.pageLink-1===e.props.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"},C=n.useStyle("\n.p-paginator-default {\n display: flex;\n}\n\n.p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n}\n\n.p-paginator-left-content {\n margin-right: auto;\n}\n\n.p-paginator-right-content {\n margin-left: auto;\n}\n\n.p-paginator-page,\n.p-paginator-next,\n.p-paginator-last,\n.p-paginator-first,\n.p-paginator-prev,\n.p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n}\n\n.p-paginator-element:focus {\n z-index: 1;\n position: relative;\n}\n",{name:"paginator",manual:!0}),x={name:"BasePaginator",extends:g.default,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},css:{classes:L,loadStyle:C.load},provide:function(){return{$parentInstance:this}}},T={name:"CurrentPageReport",hostName:"Paginator",extends:g.default,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var e=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return e}}};T.render=function(e,t,n,o,r,i){return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:e.cx("current")},e.ptm("current")),a.toDisplayString(i.text),17)};var S={name:"FirstPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:d.default},directives:{ripple:m.default}};S.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("firstPageButton"),type:"button"},i.getPTOptions("firstPageButton")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleLeftIcon"),a.mergeProps({class:e.cx("firstPageIcon")},i.getPTOptions("firstPageIcon")),null,16,["class"]))],16)),[[l]])};var D={name:"JumpToPageDropdown",hostName:"Paginator",extends:g.default,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},methods:{onChange:function(e){this.$emit("page-change",e)}},computed:{pageOptions:function(){for(var e=[],t=0;t<this.pageCount;t++)e.push({label:String(t+1),value:t});return e}},components:{JTPDropdown:f.default}};D.render=function(e,t,n,o,r,i){var l=a.resolveComponent("JTPDropdown");return a.openBlock(),a.createBlock(l,{modelValue:n.page,options:i.pageOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.onChange(e)}),class:a.normalizeClass(e.cx("jumpToPageDropdown")),disabled:n.disabled,unstyled:e.unstyled,pt:e.ptm("jumpToPageDropdown"),"data-pc-section":"jumptopagedropdown"},null,8,["modelValue","options","class","disabled","unstyled","pt"])};var I={name:"JumpToPageInput",hostName:"Paginator",extends:g.default,inheritAttrs:!1,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},data:function(){return{d_page:this.page}},watch:{page:function(e){this.d_page=e}},methods:{onChange:function(e){e!==this.page&&(this.d_page=e,this.$emit("page-change",e-1))}},computed:{inputArialabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.jumpToPageInputLabel:void 0}},components:{JTPInput:h.default}};I.render=function(e,t,n,o,r,i){var l=a.resolveComponent("JTPInput");return a.openBlock(),a.createBlock(l,{ref:"jtpInput",modelValue:r.d_page,class:a.normalizeClass(e.cx("jumpToPageInput")),"aria-label":i.inputArialabel,disabled:n.disabled,"onUpdate:modelValue":i.onChange,unstyled:e.unstyled,pt:e.ptm("jumpToPageInput"),"data-pc-section":"jumptopageinput"},null,8,["modelValue","class","aria-label","disabled","onUpdate:modelValue","unstyled","pt"])};var N={name:"LastPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleRightIcon:P.default},directives:{ripple:m.default}};N.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("lastPageButton"),type:"button"},i.getPTOptions("lastPageButton")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleRightIcon"),a.mergeProps({class:e.cx("lastPageIcon")},i.getPTOptions("lastPageIcon")),null,16,["class"]))],16)),[[l]])};var A={name:"NextPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleRightIcon:b.default},directives:{ripple:m.default}};A.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("nextPageButton"),type:"button"},i.getPTOptions("nextPageButton")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleRightIcon"),a.mergeProps({class:e.cx("nextPageIcon")},i.getPTOptions("nextPageIcon")),null,16,["class"]))],16)),[[l]])};var $={name:"PageLinks",hostName:"Paginator",extends:g.default,inheritAttrs:!1,emits:["click"],props:{value:Array,page:Number},methods:{getPTOptions:function(e,t){return this.ptm(t,{context:{active:e===this.page}})},onPageLinkClick:function(e,t){this.$emit("click",{originalEvent:e,value:t})},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},directives:{ripple:m.default}},O=["aria-label","aria-current","onClick","data-p-highlight"];$.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:e.cx("pages")},e.ptm("pages")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(function(t){return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:t,class:e.cx("pageButton",{pageLink:t}),type:"button","aria-label":i.ariaPageLabel(t),"aria-current":t-1===n.page?"page":void 0,onClick:function(e){return i.onPageLinkClick(e,t)}},i.getPTOptions(t-1,"pageButton"),{"data-p-highlight":t-1===n.page}),[a.createTextVNode(a.toDisplayString(t),1)],16,O)),[[l]])})),128))],16)};var R={name:"PrevPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleLeftIcon:v.default},directives:{ripple:m.default}};R.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("previousPageButton"),type:"button"},i.getPTOptions("previousPageButton")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleLeftIcon"),a.mergeProps({class:e.cx("previousPageIcon")},i.getPTOptions("previousPageIcon")),null,16,["class"]))],16)),[[l]])};var j={name:"RowsPerPageDropdown",hostName:"Paginator",extends:g.default,emits:["rows-change"],props:{options:Array,rows:Number,disabled:Boolean},methods:{onChange:function(e){this.$emit("rows-change",e)}},computed:{rowsOptions:function(){var e=[];if(this.options)for(var t=0;t<this.options.length;t++)e.push({label:String(this.options[t]),value:this.options[t]});return e}},components:{RPPDropdown:f.default}};function E(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function F(e){if(Array.isArray(e))return U(e)}function V(e){return V="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},V(e)}function J(e,t){return H(e)||q(e,t)||z(e,t)||M()}function M(){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 z(e,t){if(e){if("string"==typeof e)return U(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)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function q(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,r,i,l=[],s=!0,p=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){p=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(p)throw o}}return l}}function H(e){if(Array.isArray(e))return e}j.render=function(e,t,n,o,r,i){var l=a.resolveComponent("RPPDropdown");return a.openBlock(),a.createBlock(l,{modelValue:n.rows,options:i.rowsOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.onChange(e)}),class:a.normalizeClass(e.cx("rowPerPageDropdown")),disabled:n.disabled,unstyled:e.unstyled,pt:e.ptm("rowPerPageDropdown"),"data-pc-section":"rowperpagedropdown"},null,8,["modelValue","options","class","disabled","unstyled","pt"])};var W={name:"Paginator",extends:x,emits:["update:first","update:rows","page"],data:function(){return{d_first:this.first,d_rows:this.rows}},watch:{first:function(e){this.d_first=e},rows:function(e){this.d_rows=e},totalRecords:function(e){this.page>0&&e&&this.d_first>=e&&this.changePage(this.pageCount-1)}},mounted:function(){this.setPaginatorAttribute(),this.createStyle()},methods:{changePage:function(e){var t=this.pageCount;if(e>=0&&e<t){this.d_first=this.d_rows*e;var n={page:e,first:this.d_first,rows:this.d_rows,pageCount:t};this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",n)}},changePageToFirst:function(e){this.isFirstPage||this.changePage(0),e.preventDefault()},changePageToPrev:function(e){this.changePage(this.page-1),e.preventDefault()},changePageLink:function(e){this.changePage(e.value-1),e.originalEvent.preventDefault()},changePageToNext:function(e){this.changePage(this.page+1),e.preventDefault()},changePageToLast:function(e){this.isLastPage||this.changePage(this.pageCount-1),e.preventDefault()},onRowChange:function(e){this.d_rows=e,this.changePage(this.page)},createStyle:function(){var e=this;if(this.hasBreakpoints()&&!this.isUnstyled){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);var t="",n=Object.keys(this.template),a={};n.sort((function(e,t){return parseInt(e)-parseInt(t)})).forEach((function(t){a[t]=e.template[t]}));for(var o=0,r=Object.entries(Object.entries(a));o<r.length;o++){var i=J(r[o],2),l=i[0],s=J(i[1],1)[0],p=Object.entries(a)[l-1]?"and (min-width:".concat(Object.keys(a)[l-1],")"):"";t+="default"===s?"\n @media screen ".concat(p," {\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: flex !important;\n }\n }\n "):"\n .paginator[".concat(this.attributeSelector,"], .p-paginator-").concat(s," {\n display: none !important;\n }\n @media screen ").concat(p," and (max-width: ").concat(s,") {\n .paginator[").concat(this.attributeSelector,"], .p-paginator-").concat(s," {\n display: flex !important;\n }\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: none !important;\n }\n }\n ")}this.styleElement.innerHTML=t}},hasBreakpoints:function(){return"object"===V(this.template)},setPaginatorAttribute:function(){var e,t=this;this.$refs.paginator&&this.$refs.paginator.length>=0&&(e=this.$refs.paginator,F(e)||_(e)||z(e)||E()).forEach((function(e){e.setAttribute(t.attributeSelector,"")}))},getAriaLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[e]:void 0}},computed:{templateItems:function(){var e={};if(this.hasBreakpoints()){for(var t in(e=this.template).default||(e.default="FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"),e)e[t]=this.template[t].split(" ").map((function(e){return e.trim()}));return e}return e.default=this.template.split(" ").map((function(e){return e.trim()})),e},page:function(){return Math.floor(this.d_first/this.d_rows)},pageCount:function(){return Math.ceil(this.totalRecords/this.d_rows)},isFirstPage:function(){return 0===this.page},isLastPage:function(){return this.page===this.pageCount-1},calculatePageLinkBoundaries:function(){var e=this.pageCount,t=Math.min(this.pageLinkSize,e),n=Math.max(0,Math.ceil(this.page-t/2)),a=Math.min(e-1,n+t-1);return[n=Math.max(0,n-(this.pageLinkSize-(a-n+1))),a]},pageLinks:function(){for(var e=[],t=this.calculatePageLinkBoundaries,n=t[1],a=t[0];a<=n;a++)e.push(a+1);return e},currentState:function(){return{page:this.page,first:this.d_first,rows:this.d_rows}},empty:function(){return 0===this.pageCount},currentPage:function(){return this.pageCount>0?this.page+1:0},attributeSelector:function(){return e.UniqueComponentId()}},components:{CurrentPageReport:T,FirstPageLink:S,LastPageLink:N,NextPageLink:A,PageLinks:$,PrevPageLink:R,RowsPerPageDropdown:j,JumpToPageDropdown:D,JumpToPageInput:I}};return W.render=function(e,t,n,o,r,i){var l=a.resolveComponent("FirstPageLink"),s=a.resolveComponent("PrevPageLink"),p=a.resolveComponent("NextPageLink"),u=a.resolveComponent("LastPageLink"),c=a.resolveComponent("PageLinks"),g=a.resolveComponent("CurrentPageReport"),d=a.resolveComponent("RowsPerPageDropdown"),m=a.resolveComponent("JumpToPageDropdown"),f=a.resolveComponent("JumpToPageInput");return e.alwaysShow||i.pageLinks&&i.pageLinks.length>1?(a.openBlock(),a.createElementBlock("nav",a.normalizeProps(a.mergeProps({key:0},e.ptm("paginatorWrapper"))),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.templateItems,(function(n,o){return a.openBlock(),a.createElementBlock("div",a.mergeProps({key:o,ref_for:!0,ref:"paginator",class:e.cx("paginator",{key:o})},e.ptm("root"),{"data-pc-name":"paginator"}),[e.$slots.start?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("start")},e.ptm("start")),[a.renderSlot(e.$slots,"start",{state:i.currentState})],16)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n,(function(n){return a.openBlock(),a.createElementBlock(a.Fragment,{key:n},["FirstPageLink"===n?(a.openBlock(),a.createBlock(l,{key:0,"aria-label":i.getAriaLabel("firstPageLabel"),template:e.$slots.firstpagelinkicon,onClick:t[0]||(t[0]=function(e){return i.changePageToFirst(e)}),disabled:i.isFirstPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"PrevPageLink"===n?(a.openBlock(),a.createBlock(s,{key:1,"aria-label":i.getAriaLabel("prevPageLabel"),template:e.$slots.prevpagelinkicon,onClick:t[1]||(t[1]=function(e){return i.changePageToPrev(e)}),disabled:i.isFirstPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"NextPageLink"===n?(a.openBlock(),a.createBlock(p,{key:2,"aria-label":i.getAriaLabel("nextPageLabel"),template:e.$slots.nextpagelinkicon,onClick:t[2]||(t[2]=function(e){return i.changePageToNext(e)}),disabled:i.isLastPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"LastPageLink"===n?(a.openBlock(),a.createBlock(u,{key:3,"aria-label":i.getAriaLabel("lastPageLabel"),template:e.$slots.lastpagelinkicon,onClick:t[3]||(t[3]=function(e){return i.changePageToLast(e)}),disabled:i.isLastPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"PageLinks"===n?(a.openBlock(),a.createBlock(c,{key:4,"aria-label":i.getAriaLabel("pageLabel"),value:i.pageLinks,page:i.page,onClick:t[4]||(t[4]=function(e){return i.changePageLink(e)}),pt:e.pt},null,8,["aria-label","value","page","pt"])):"CurrentPageReport"===n?(a.openBlock(),a.createBlock(g,{key:5,"aria-live":"polite",template:e.currentPageReportTemplate,currentPage:i.currentPage,page:i.page,pageCount:i.pageCount,first:r.d_first,rows:r.d_rows,totalRecords:e.totalRecords,pt:e.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","pt"])):"RowsPerPageDropdown"===n&&e.rowsPerPageOptions?(a.openBlock(),a.createBlock(d,{key:6,"aria-label":i.getAriaLabel("rowsPerPageLabel"),rows:r.d_rows,options:e.rowsPerPageOptions,onRowsChange:t[5]||(t[5]=function(e){return i.onRowChange(e)}),disabled:i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","rows","options","disabled","unstyled","pt"])):"JumpToPageDropdown"===n?(a.openBlock(),a.createBlock(m,{key:7,"aria-label":i.getAriaLabel("jumpToPageDropdownLabel"),page:i.page,pageCount:i.pageCount,onPageChange:t[6]||(t[6]=function(e){return i.changePage(e)}),disabled:i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","page","pageCount","disabled","unstyled","pt"])):"JumpToPageInput"===n?(a.openBlock(),a.createBlock(f,{key:8,page:i.currentPage,onPageChange:t[7]||(t[7]=function(e){return i.changePage(e)}),disabled:i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["page","disabled","unstyled","pt"])):a.createCommentVNode("",!0)],64)})),128)),e.$slots.end?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:e.cx("end")},e.ptm("end")),[a.renderSlot(e.$slots,"end",{state:i.currentState})],16)):a.createCommentVNode("",!0)],16)})),128))],16)):a.createCommentVNode("",!0)},W}(primevue.utils,primevue.basecomponent,primevue.usestyle,Vue,primevue.icons.angledoubleleft,primevue.ripple,primevue.dropdown,primevue.inputnumber,primevue.icons.angledoubleright,primevue.icons.angleright,primevue.icons.angleleft);
|
package/panel/Panel.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
12
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
13
13
|
|
|
14
|
-
export declare type PanelPassThroughOptionType = PanelPassThroughAttributes | ((options: PanelPassThroughMethodOptions) => PanelPassThroughAttributes) | null | undefined;
|
|
14
|
+
export declare type PanelPassThroughOptionType = PanelPassThroughAttributes | ((options: PanelPassThroughMethodOptions) => PanelPassThroughAttributes | string) | string | null | undefined;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Custom passthrough(pt) option method.
|
|
@@ -153,7 +153,7 @@ export interface PanelSlots {
|
|
|
153
153
|
/**
|
|
154
154
|
* Current id state as a string
|
|
155
155
|
*/
|
|
156
|
-
id:
|
|
156
|
+
id: string;
|
|
157
157
|
/**
|
|
158
158
|
* Style class of the icon
|
|
159
159
|
*/
|
package/panelmenu/PanelMenu.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { ComponentHooks } from '../basecomponent';
|
|
|
12
12
|
import { MenuItem } from '../menuitem';
|
|
13
13
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
14
14
|
|
|
15
|
-
export declare type PanelMenuPassThroughOptionType = PanelMenuPassThroughAttributes | ((options: PanelMenuPassThroughMethodOptions) => PanelMenuPassThroughAttributes) | null | undefined;
|
|
15
|
+
export declare type PanelMenuPassThroughOptionType = PanelMenuPassThroughAttributes | ((options: PanelMenuPassThroughMethodOptions) => PanelMenuPassThroughAttributes | string) | string | null | undefined;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Custom passthrough(pt) option method.
|
package/password/Password.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { ComponentHooks } from '../basecomponent';
|
|
|
12
12
|
import { InputTextPassThroughOptionType } from '../inputtext';
|
|
13
13
|
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
|
|
14
14
|
|
|
15
|
-
export declare type PasswordPassThroughOptionType = PasswordPassThroughAttributes | ((options: PasswordPassThroughMethodOptions) => PasswordPassThroughAttributes) | null | undefined;
|
|
15
|
+
export declare type PasswordPassThroughOptionType = PasswordPassThroughAttributes | ((options: PasswordPassThroughMethodOptions) => PasswordPassThroughAttributes | string) | string | null | undefined;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Custom passthrough(pt) option method.
|
|
@@ -49,6 +49,10 @@ const classes = {
|
|
|
49
49
|
sourceWrapper: 'p-picklist-list-wrapper p-picklist-source-wrapper',
|
|
50
50
|
sourceHeader: 'p-picklist-header',
|
|
51
51
|
sourceList: 'p-picklist-list p-picklist-source-list',
|
|
52
|
+
buttons: 'p-picklist-buttons p-picklist-transfer-buttons',
|
|
53
|
+
targetWrapper: 'p-picklist-list-wrapper p-picklist-target-wrapper',
|
|
54
|
+
targetHeader: 'p-picklist-header',
|
|
55
|
+
targetList: 'p-picklist-list p-picklist-target',
|
|
52
56
|
item: ({ instance, item, id, listIndex }) => [
|
|
53
57
|
'p-picklist-item',
|
|
54
58
|
{
|
|
@@ -56,10 +60,6 @@ const classes = {
|
|
|
56
60
|
'p-focus': id === instance.focusedOptionId
|
|
57
61
|
}
|
|
58
62
|
],
|
|
59
|
-
buttons: 'p-picklist-buttons p-picklist-transfer-buttons',
|
|
60
|
-
targetWrapper: 'p-picklist-list-wrapper p-picklist-target-wrapper',
|
|
61
|
-
targetHeader: 'p-picklist-header',
|
|
62
|
-
targetList: 'p-picklist-list p-picklist-target',
|
|
63
63
|
targetControls: 'p-picklist-buttons p-picklist-target-controls'
|
|
64
64
|
};
|
|
65
65
|
|
package/picklist/PickList.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { ComponentHooks } from '../basecomponent';
|
|
|
12
12
|
import { ButtonPassThroughOptionType } from '../button';
|
|
13
13
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
14
14
|
|
|
15
|
-
export declare type PickListPassThroughOptionType = PickListPassThroughAttributes | ((options: PickListPassThroughMethodOptions) => PickListPassThroughAttributes) | null | undefined;
|
|
15
|
+
export declare type PickListPassThroughOptionType = PickListPassThroughAttributes | ((options: PickListPassThroughMethodOptions) => PickListPassThroughAttributes | string) | string | null | undefined;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Custom passthrough(pt) option method.
|
|
@@ -21,6 +21,7 @@ export interface PickListPassThroughMethodOptions {
|
|
|
21
21
|
instance: any;
|
|
22
22
|
props: PickListProps;
|
|
23
23
|
state: PickListState;
|
|
24
|
+
context: PickListContext;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
/**
|
|
@@ -170,6 +171,10 @@ export interface PickListPassThroughOptions {
|
|
|
170
171
|
* Uses to pass attributes to the target list's DOM element.
|
|
171
172
|
*/
|
|
172
173
|
targetList?: PickListPassThroughOptionType;
|
|
174
|
+
/**
|
|
175
|
+
* Uses to pass attributes to the target item's DOM element.
|
|
176
|
+
*/
|
|
177
|
+
item?: PickListPassThroughOptionType;
|
|
173
178
|
/**
|
|
174
179
|
* Uses to pass attributes to the target controls' DOM element.
|
|
175
180
|
*/
|
|
@@ -246,6 +251,22 @@ export interface PickListState {
|
|
|
246
251
|
viewChanged: boolean;
|
|
247
252
|
}
|
|
248
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Defines current options in PickList component.
|
|
256
|
+
*/
|
|
257
|
+
export interface PickListContext {
|
|
258
|
+
/**
|
|
259
|
+
* Current active state of the item as a boolean.
|
|
260
|
+
* @defaultValue false
|
|
261
|
+
*/
|
|
262
|
+
active: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Current focus state of the item as a boolean.
|
|
265
|
+
* @defaultValue false
|
|
266
|
+
*/
|
|
267
|
+
focused: boolean;
|
|
268
|
+
}
|
|
269
|
+
|
|
249
270
|
/**
|
|
250
271
|
* Defines valid properties in PickList component.
|
|
251
272
|
*/
|
package/picklist/PickList.vue
CHANGED
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
<div :class="cx('root')" v-bind="ptm('root')">
|
|
3
3
|
<div v-if="showSourceControls" :class="cx('sourceControls')" v-bind="ptm('sourceControls')">
|
|
4
4
|
<slot name="sourcecontrolsstart"></slot>
|
|
5
|
-
<PLButton :aria-label="moveUpAriaLabel" :disabled="moveDisabled(0)" type="button" @click="moveUp($event, 0)"
|
|
5
|
+
<PLButton :aria-label="moveUpAriaLabel" :disabled="moveDisabled(0)" type="button" @click="moveUp($event, 0)" :pt="ptm('sourceMoveUpButton')" v-bind="moveUpButtonProps" :unstyled="unstyled">
|
|
6
6
|
<template #icon>
|
|
7
7
|
<slot name="moveupicon">
|
|
8
8
|
<AngleUpIcon v-bind="ptm('sourceMoveUpButton')['icon']" />
|
|
9
9
|
</slot>
|
|
10
10
|
</template>
|
|
11
11
|
</PLButton>
|
|
12
|
-
<PLButton :aria-label="moveTopAriaLabel" :disabled="moveDisabled(0)" type="button" @click="moveTop($event, 0)"
|
|
12
|
+
<PLButton :aria-label="moveTopAriaLabel" :disabled="moveDisabled(0)" type="button" @click="moveTop($event, 0)" :pt="ptm('sourceMoveTopButton')" v-bind="moveTopButtonProps" :unstyled="unstyled">
|
|
13
13
|
<template #icon>
|
|
14
14
|
<slot name="movetopicon">
|
|
15
15
|
<AngleDoubleUpIcon v-bind="ptm('sourceMoveTopButton')['icon']" />
|
|
16
16
|
</slot>
|
|
17
17
|
</template>
|
|
18
18
|
</PLButton>
|
|
19
|
-
<PLButton :aria-label="moveDownAriaLabel" :disabled="moveDisabled(0)" type="button" @click="moveDown($event, 0)"
|
|
19
|
+
<PLButton :aria-label="moveDownAriaLabel" :disabled="moveDisabled(0)" type="button" @click="moveDown($event, 0)" :pt="ptm('sourceMoveDownButton')" v-bind="moveDownButtonProps" :unstyled="unstyled">
|
|
20
20
|
<template #icon>
|
|
21
21
|
<slot name="movedownicon">
|
|
22
22
|
<AngleDownIcon v-bind="ptm('sourceMoveDownButton')['icon']" />
|
|
23
23
|
</slot>
|
|
24
24
|
</template>
|
|
25
25
|
</PLButton>
|
|
26
|
-
<PLButton :aria-label="moveBottomAriaLabel" :disabled="moveDisabled(0)" type="button" @click="moveBottom($event, 0)"
|
|
26
|
+
<PLButton :aria-label="moveBottomAriaLabel" :disabled="moveDisabled(0)" type="button" @click="moveBottom($event, 0)" :pt="ptm('sourceMoveBottomButton')" v-bind="moveBottomButtonProps" :unstyled="unstyled">
|
|
27
27
|
<template #icon>
|
|
28
28
|
<slot name="movebottomicon">
|
|
29
29
|
<AngleDoubleDownIcon v-bind="ptm('sourceMoveBottomButton')['icon']" />
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
@mousedown="onOptionMouseDown(i, 'sourceList')"
|
|
64
64
|
role="option"
|
|
65
65
|
:aria-selected="isSelected(item, 0)"
|
|
66
|
-
v-bind="getPTOptions(item, 'item')"
|
|
66
|
+
v-bind="getPTOptions(item, 'item', `${idSource}_${i}`, 0)"
|
|
67
67
|
:data-p-highlight="isSelected(item, 0)"
|
|
68
|
-
:data-p-focused="`${
|
|
68
|
+
:data-p-focused="`${idSource}_${i}` === focusedOptionId"
|
|
69
69
|
>
|
|
70
70
|
<slot name="item" :item="item" :index="i"> </slot>
|
|
71
71
|
</li>
|
|
@@ -74,28 +74,28 @@
|
|
|
74
74
|
</div>
|
|
75
75
|
<div :class="cx('buttons')" v-bind="ptm('buttons')">
|
|
76
76
|
<slot name="movecontrolsstart"></slot>
|
|
77
|
-
<PLButton :aria-label="moveToTargetAriaLabel" type="button" @click="moveToTarget" :disabled="moveDisabled(0)"
|
|
77
|
+
<PLButton :aria-label="moveToTargetAriaLabel" type="button" @click="moveToTarget" :disabled="moveDisabled(0)" :pt="ptm('moveToTargetButton')" v-bind="moveToTargetProps" :unstyled="unstyled">
|
|
78
78
|
<template #icon>
|
|
79
79
|
<slot name="movetotargeticon" :viewChanged="viewChanged">
|
|
80
80
|
<component :is="viewChanged ? 'AngleDownIcon' : 'AngleRightIcon'" v-bind="ptm('moveToTargetButton')['icon']" />
|
|
81
81
|
</slot>
|
|
82
82
|
</template>
|
|
83
83
|
</PLButton>
|
|
84
|
-
<PLButton :aria-label="moveAllToTargetAriaLabel" type="button" @click="moveAllToTarget" :disabled="moveAllDisabled('sourceList')"
|
|
84
|
+
<PLButton :aria-label="moveAllToTargetAriaLabel" type="button" @click="moveAllToTarget" :disabled="moveAllDisabled('sourceList')" :pt="ptm('moveAllToTargetButton')" v-bind="moveAllToTargetProps" :unstyled="unstyled">
|
|
85
85
|
<template #icon>
|
|
86
86
|
<slot name="movealltotargeticon" :viewChanged="viewChanged">
|
|
87
87
|
<component :is="viewChanged ? 'AngleDoubleDownIcon' : 'AngleDoubleRightIcon'" v-bind="ptm('moveAllToTargetButton')['icon']" />
|
|
88
88
|
</slot>
|
|
89
89
|
</template>
|
|
90
90
|
</PLButton>
|
|
91
|
-
<PLButton :aria-label="moveToSourceAriaLabel" type="button" @click="moveToSource" :disabled="moveDisabled(1)"
|
|
91
|
+
<PLButton :aria-label="moveToSourceAriaLabel" type="button" @click="moveToSource" :disabled="moveDisabled(1)" :pt="ptm('moveToSourceButton')" v-bind="moveToSourceProps" :unstyled="unstyled">
|
|
92
92
|
<template #icon>
|
|
93
93
|
<slot name="movetosourceicon" :viewChanged="viewChanged">
|
|
94
94
|
<component :is="viewChanged ? 'AngleUpIcon' : 'AngleLeftIcon'" v-bind="ptm('moveToSourceButton')['icon']" />
|
|
95
95
|
</slot>
|
|
96
96
|
</template>
|
|
97
97
|
</PLButton>
|
|
98
|
-
<PLButton :aria-label="moveAllToSourceAriaLabel" type="button" @click="moveAllToSource" :disabled="moveSourceDisabled('targetList')"
|
|
98
|
+
<PLButton :aria-label="moveAllToSourceAriaLabel" type="button" @click="moveAllToSource" :disabled="moveSourceDisabled('targetList')" :pt="ptm('moveAllToSourceButton')" v-bind="moveAllToSourceProps" :unstyled="unstyled">
|
|
99
99
|
<template #icon>
|
|
100
100
|
<slot name="movealltosourceicon" :viewChanged="viewChanged">
|
|
101
101
|
<component :is="viewChanged ? 'AngleDoubleUpIcon' : 'AngleDoubleLeftIcon'" v-bind="ptm('moveAllToSourceButton')['icon']" />
|
|
@@ -136,9 +136,9 @@
|
|
|
136
136
|
@touchend="onItemTouchEnd"
|
|
137
137
|
role="option"
|
|
138
138
|
:aria-selected="isSelected(item, 1)"
|
|
139
|
-
v-bind="getPTOptions(item, 'item')"
|
|
139
|
+
v-bind="getPTOptions(item, 'item', `${idTarget}_${i}`, 1)"
|
|
140
140
|
:data-p-highlight="isSelected(item, 1)"
|
|
141
|
-
:data-p-focused="`${
|
|
141
|
+
:data-p-focused="`${idTarget}_${i}` === focusedOptionId"
|
|
142
142
|
>
|
|
143
143
|
<slot name="item" :item="item" :index="i"> </slot>
|
|
144
144
|
</li>
|
|
@@ -147,28 +147,28 @@
|
|
|
147
147
|
</div>
|
|
148
148
|
<div v-if="showTargetControls" :class="cx('targetControls')" v-bind="ptm('targetControls')">
|
|
149
149
|
<slot name="targetcontrolsstart"></slot>
|
|
150
|
-
<PLButton :aria-label="moveUpAriaLabel" :disabled="moveDisabled(1)" type="button" @click="moveUp($event, 1)"
|
|
150
|
+
<PLButton :aria-label="moveUpAriaLabel" :disabled="moveDisabled(1)" type="button" @click="moveUp($event, 1)" :pt="ptm('targetMoveUpButton')" v-bind="moveUpButtonProps" :unstyled="unstyled">
|
|
151
151
|
<template #icon>
|
|
152
152
|
<slot name="moveupicon">
|
|
153
153
|
<AngleUpIcon v-bind="ptm('targetMoveUpButton')['icon']" />
|
|
154
154
|
</slot>
|
|
155
155
|
</template>
|
|
156
156
|
</PLButton>
|
|
157
|
-
<PLButton :aria-label="moveTopAriaLabel" :disabled="moveDisabled(1)" type="button" @click="moveTop($event, 1)"
|
|
157
|
+
<PLButton :aria-label="moveTopAriaLabel" :disabled="moveDisabled(1)" type="button" @click="moveTop($event, 1)" :pt="ptm('targetMoveTopButton')" v-bind="moveTopButtonProps" :unstyled="unstyled">
|
|
158
158
|
<template #icon>
|
|
159
159
|
<slot name="movetopicon">
|
|
160
160
|
<AngleDoubleUpIcon v-bind="ptm('targetMoveTopButton')['icon']" />
|
|
161
161
|
</slot>
|
|
162
162
|
</template>
|
|
163
163
|
</PLButton>
|
|
164
|
-
<PLButton :aria-label="moveDownAriaLabel" :disabled="moveDisabled(1)" type="button" @click="moveDown($event, 1)"
|
|
164
|
+
<PLButton :aria-label="moveDownAriaLabel" :disabled="moveDisabled(1)" type="button" @click="moveDown($event, 1)" :pt="ptm('targetMoveDownButton')" v-bind="moveDownButtonProps" :unstyled="unstyled">
|
|
165
165
|
<template #icon>
|
|
166
166
|
<slot name="movedownicon">
|
|
167
167
|
<AngleDownIcon v-bind="ptm('targetMoveDownButton')['icon']" />
|
|
168
168
|
</slot>
|
|
169
169
|
</template>
|
|
170
170
|
</PLButton>
|
|
171
|
-
<PLButton :aria-label="moveBottomAriaLabel" :disabled="moveDisabled(1)" type="button" @click="moveBottom($event, 1)"
|
|
171
|
+
<PLButton :aria-label="moveBottomAriaLabel" :disabled="moveDisabled(1)" type="button" @click="moveBottom($event, 1)" :pt="ptm('targetMoveBottomButton')" v-bind="moveBottomButtonProps" :unstyled="unstyled">
|
|
172
172
|
<template #icon>
|
|
173
173
|
<slot name="movebottomicon">
|
|
174
174
|
<AngleDoubleDownIcon v-bind="ptm('targetMoveBottomButton')['icon']" />
|
|
@@ -250,11 +250,11 @@ export default {
|
|
|
250
250
|
getItemKey(item, index) {
|
|
251
251
|
return this.dataKey ? ObjectUtils.resolveFieldData(item, this.dataKey) : index;
|
|
252
252
|
},
|
|
253
|
-
getPTOptions(item, key) {
|
|
253
|
+
getPTOptions(item, key, id, listIndex) {
|
|
254
254
|
return this.ptm(key, {
|
|
255
255
|
context: {
|
|
256
|
-
active: this.isSelected(item),
|
|
257
|
-
focused:
|
|
256
|
+
active: this.isSelected(item, listIndex),
|
|
257
|
+
focused: id === this.focusedOptionId
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
},
|