primevue 3.52.0 → 3.53.0

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.
Files changed (163) hide show
  1. package/README.md +1 -1
  2. package/api/Api.d.ts +58 -6
  3. package/api/api.cjs.js +58 -6
  4. package/api/api.cjs.min.js +1 -1
  5. package/api/api.esm.js +58 -6
  6. package/api/api.esm.min.js +1 -1
  7. package/api/api.js +58 -6
  8. package/api/api.min.js +1 -1
  9. package/autocomplete/AutoComplete.vue +1 -1
  10. package/autocomplete/autocomplete.cjs.js +2 -2
  11. package/autocomplete/autocomplete.cjs.min.js +1 -1
  12. package/autocomplete/autocomplete.esm.js +2 -2
  13. package/autocomplete/autocomplete.esm.min.js +1 -1
  14. package/autocomplete/autocomplete.js +2 -2
  15. package/autocomplete/autocomplete.min.js +1 -1
  16. package/basecomponent/BaseComponent.vue +11 -11
  17. package/basecomponent/basecomponent.cjs.js +20 -20
  18. package/basecomponent/basecomponent.cjs.min.js +1 -1
  19. package/basecomponent/basecomponent.esm.js +20 -20
  20. package/basecomponent/basecomponent.esm.min.js +1 -1
  21. package/basecomponent/basecomponent.js +20 -20
  22. package/basecomponent/basecomponent.min.js +1 -1
  23. package/basedirective/basedirective.cjs.js +5 -5
  24. package/basedirective/basedirective.cjs.min.js +1 -1
  25. package/basedirective/basedirective.esm.js +5 -5
  26. package/basedirective/basedirective.esm.min.js +1 -1
  27. package/basedirective/basedirective.js +5 -5
  28. package/basedirective/basedirective.min.js +1 -1
  29. package/calendar/BaseCalendar.vue +4 -0
  30. package/calendar/Calendar.d.ts +4 -0
  31. package/calendar/Calendar.vue +3 -2
  32. package/calendar/calendar.cjs.js +8 -8
  33. package/calendar/calendar.cjs.min.js +1 -1
  34. package/calendar/calendar.esm.js +8 -8
  35. package/calendar/calendar.esm.min.js +1 -1
  36. package/calendar/calendar.js +8 -8
  37. package/calendar/calendar.min.js +1 -1
  38. package/colorpicker/ColorPicker.vue +0 -23
  39. package/colorpicker/colorpicker.cjs.js +0 -19
  40. package/colorpicker/colorpicker.cjs.min.js +1 -1
  41. package/colorpicker/colorpicker.esm.js +0 -19
  42. package/colorpicker/colorpicker.esm.min.js +1 -1
  43. package/colorpicker/colorpicker.js +0 -19
  44. package/colorpicker/colorpicker.min.js +1 -1
  45. package/column/Column.d.ts +1 -1
  46. package/confirmpopup/ConfirmPopup.vue +6 -1
  47. package/confirmpopup/confirmpopup.cjs.js +5 -1
  48. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  49. package/confirmpopup/confirmpopup.esm.js +5 -1
  50. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  51. package/confirmpopup/confirmpopup.js +5 -1
  52. package/confirmpopup/confirmpopup.min.js +1 -1
  53. package/contextmenu/ContextMenu.vue +3 -1
  54. package/contextmenu/contextmenu.cjs.js +3 -1
  55. package/contextmenu/contextmenu.cjs.min.js +1 -1
  56. package/contextmenu/contextmenu.esm.js +3 -1
  57. package/contextmenu/contextmenu.esm.min.js +1 -1
  58. package/contextmenu/contextmenu.js +3 -1
  59. package/contextmenu/contextmenu.min.js +1 -1
  60. package/core/core.js +137 -55
  61. package/core/core.min.js +11 -9
  62. package/datatable/BodyCell.vue +8 -16
  63. package/datatable/DataTable.d.ts +1 -1
  64. package/datatable/DataTable.vue +3 -1
  65. package/datatable/datatable.cjs.js +10 -15
  66. package/datatable/datatable.cjs.min.js +1 -1
  67. package/datatable/datatable.esm.js +10 -15
  68. package/datatable/datatable.esm.min.js +1 -1
  69. package/datatable/datatable.js +10 -15
  70. package/datatable/datatable.min.js +1 -1
  71. package/dialog/Dialog.vue +5 -1
  72. package/dialog/dialog.cjs.js +5 -1
  73. package/dialog/dialog.cjs.min.js +1 -1
  74. package/dialog/dialog.esm.js +5 -1
  75. package/dialog/dialog.esm.min.js +1 -1
  76. package/dialog/dialog.js +5 -1
  77. package/dialog/dialog.min.js +1 -1
  78. package/dropdown/Dropdown.d.ts +1 -1
  79. package/dropdown/Dropdown.vue +17 -15
  80. package/dropdown/dropdown.cjs.js +15 -15
  81. package/dropdown/dropdown.cjs.min.js +1 -1
  82. package/dropdown/dropdown.esm.js +15 -15
  83. package/dropdown/dropdown.esm.min.js +1 -1
  84. package/dropdown/dropdown.js +15 -15
  85. package/dropdown/dropdown.min.js +1 -1
  86. package/floatlabel/floatlabel.js +1 -1
  87. package/floatlabel/floatlabel.min.js +1 -1
  88. package/inplace/Inplace.vue +2 -2
  89. package/inplace/inplace.cjs.js +3 -3
  90. package/inplace/inplace.cjs.min.js +1 -1
  91. package/inplace/inplace.esm.js +4 -4
  92. package/inplace/inplace.esm.min.js +1 -1
  93. package/inplace/inplace.js +3 -3
  94. package/inplace/inplace.min.js +1 -1
  95. package/inputnumber/InputNumber.vue +7 -2
  96. package/inputnumber/inputnumber.cjs.js +6 -2
  97. package/inputnumber/inputnumber.cjs.min.js +1 -1
  98. package/inputnumber/inputnumber.esm.js +6 -2
  99. package/inputnumber/inputnumber.esm.min.js +1 -1
  100. package/inputnumber/inputnumber.js +6 -2
  101. package/inputnumber/inputnumber.min.js +1 -1
  102. package/inputotp/InputOtp.vue +8 -0
  103. package/inputotp/inputotp.cjs.js +6 -0
  104. package/inputotp/inputotp.cjs.min.js +1 -1
  105. package/inputotp/inputotp.esm.js +6 -0
  106. package/inputotp/inputotp.esm.min.js +1 -1
  107. package/inputotp/inputotp.js +6 -0
  108. package/inputotp/inputotp.min.js +1 -1
  109. package/listbox/Listbox.d.ts +1 -1
  110. package/listbox/Listbox.vue +16 -5
  111. package/listbox/listbox.cjs.js +14 -5
  112. package/listbox/listbox.cjs.min.js +1 -1
  113. package/listbox/listbox.esm.js +14 -5
  114. package/listbox/listbox.esm.min.js +1 -1
  115. package/listbox/listbox.js +14 -5
  116. package/listbox/listbox.min.js +1 -1
  117. package/multiselect/MultiSelect.d.ts +1 -1
  118. package/multiselect/MultiSelect.vue +16 -10
  119. package/multiselect/multiselect.cjs.js +15 -8
  120. package/multiselect/multiselect.cjs.min.js +1 -1
  121. package/multiselect/multiselect.esm.js +15 -8
  122. package/multiselect/multiselect.esm.min.js +1 -1
  123. package/multiselect/multiselect.js +15 -8
  124. package/multiselect/multiselect.min.js +1 -1
  125. package/package.json +1 -1
  126. package/password/BasePassword.vue +2 -2
  127. package/password/Password.d.ts +2 -2
  128. package/password/password.cjs.js +2 -2
  129. package/password/password.cjs.min.js +1 -1
  130. package/password/password.esm.js +2 -2
  131. package/password/password.esm.min.js +1 -1
  132. package/password/password.js +2 -2
  133. package/password/password.min.js +1 -1
  134. package/ripple/ripple.cjs.js +1 -1
  135. package/ripple/ripple.cjs.min.js +1 -1
  136. package/ripple/ripple.esm.js +1 -1
  137. package/ripple/ripple.esm.min.js +1 -1
  138. package/ripple/ripple.js +1 -1
  139. package/ripple/ripple.min.js +1 -1
  140. package/splitbutton/SplitButton.vue +1 -0
  141. package/splitbutton/splitbutton.cjs.js +2 -1
  142. package/splitbutton/splitbutton.cjs.min.js +1 -1
  143. package/splitbutton/splitbutton.esm.js +2 -1
  144. package/splitbutton/splitbutton.esm.min.js +1 -1
  145. package/splitbutton/splitbutton.js +2 -1
  146. package/splitbutton/splitbutton.min.js +1 -1
  147. package/tieredmenu/TieredMenu.vue +3 -2
  148. package/tieredmenu/tieredmenu.cjs.js +4 -3
  149. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  150. package/tieredmenu/tieredmenu.esm.js +4 -3
  151. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  152. package/tieredmenu/tieredmenu.js +4 -3
  153. package/tieredmenu/tieredmenu.min.js +1 -1
  154. package/treenode/TreeNode.d.ts +1 -1
  155. package/treeselect/TreeSelect.d.ts +1 -1
  156. package/virtualscroller/BaseVirtualScroller.vue +1 -1
  157. package/virtualscroller/virtualscroller.cjs.js +2 -2
  158. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  159. package/virtualscroller/virtualscroller.esm.js +2 -2
  160. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  161. package/virtualscroller/virtualscroller.js +2 -2
  162. package/virtualscroller/virtualscroller.min.js +1 -1
  163. package/web-types.json +1 -1
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.dropdown=function(e,t,i,n,o,l,r,s,a,c,d,u,p,h,f){"use strict";function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y=b(t),m=b(i),v=b(n),O=b(o),g=b(l),I=b(r),x=b(s),S=b(a),k=b(c),w=b(u);function L(e){return L="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},L(e)}function V(){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 F(e,t){if(e){if("string"==typeof e)return E(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?E(e,t):void 0}}function C(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function D(e){if(Array.isArray(e))return E(e)}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function P(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function B(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?P(Object(i),!0).forEach((function(t){M(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):P(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function M(e,t,i){var n;return(t="symbol"==L(n=K(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function K(e,t){if("object"!=L(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var T={name:"Dropdown",extends:{name:"BaseDropdown",extends:b(p).default,props:{modelValue:null,options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:[String,Object],default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:b(h).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||d.UniqueComponentId()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||d.UniqueComponentId(),this.autoUpdateModel(),this.bindLabelClickListener()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(d.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?d.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?d.ObjectUtils.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?d.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTItemOptions:function(e,t,i,n){return this.ptm(n,{context:{option:e,index:i,selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&d.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return d.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return d.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),e&&d.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.clicked=!1,t.focusedOptionIndex=-1,t.searchValue="",t.resetFilterOnHide&&(t.filterValue=null),e&&d.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled||d.DomHandler.isAndroid())e.preventDefault();else{var t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t&&d.ObjectUtils.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}this.clicked=!1}},onEditableInput:function(e){var t=e.target.value;this.searchValue="",!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.updateModel(e,t),!this.overlayVisible&&d.ObjectUtils.isNotEmpty(t)&&this.show()},onContainerClick:function(e){this.disabled||this.loading||"INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]')||(this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(e){this.updateModel(e,null),this.resetFilterOnClear&&(this.filterValue=null)},onFirstHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?d.DomHandler.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;d.DomHandler.focus(t)},onLastHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?d.DomHandler.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;d.DomHandler.focus(t)},onOptionSelect:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.getOptionValue(t);this.updateModel(e,n),i&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){x.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onDeleteKey:function(e){this.showClear&&(this.updateModel(e,null),e.preventDefault())},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t)}else this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(i,i),this.focusedOptionIndex=-1}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)),e.preventDefault()},onSpaceKey:function(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault(),e.stopPropagation()},onTabKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(d.DomHandler.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){d.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),d.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&d.DomHandler.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){d.ZIndexUtils.clear(e)},alignOverlay:function(){"self"===this.appendTo?d.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=d.DomHandler.getOuterWidth(this.$el)+"px",d.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&!e.$el.contains(t.target)&&!e.overlay.contains(t.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new d.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!d.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var e=this;if(!this.editable&&!this.labelClickListener){var t=document.querySelector('label[for="'.concat(this.inputId,'"]'));t&&d.DomHandler.isVisible(t)&&(this.labelClickListener=function(){d.DomHandler.focus(e.$refs.focusInput)},t.addEventListener("click",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var e=document.querySelector('label[for="'.concat(this.inputId,'"]'));e&&d.DomHandler.isVisible(e)&&e.removeEventListener("click",this.labelClickListener)}},hasFocusableElements:function(){return d.DomHandler.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){var t;return this.isValidOption(e)&&(null===(t=this.getOptionLabel(e))||void 0===t?void 0:t.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(e){return d.ObjectUtils.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.isValidOption(e)&&d.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return d.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?d.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,o=!1;return d.ObjectUtils.isNotEmpty(this.searchValue)&&(-1!==(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(e){return i.isOptionMatched(e)})))&&(o=!0),-1===n&&-1===this.focusedOptionIndex&&(n=this.findFirstFocusedOptionIndex()),-1!==n&&this.changeFocusedOptionIndex(e,n)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),o},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var i=-1!==t?"".concat(e.id,"_").concat(t):e.focusedOptionId,n=d.DomHandler.findSingle(e.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}))},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var t=this,i=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=e.FilterService.filter(i,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=[];return(this.options||[]).forEach((function(e){var i,l=t.getOptionGroupChildren(e).filter((function(e){return n.includes(e)}));l.length>0&&o.push(B(B({},e),{},M({},"string"==typeof t.optionGroupChildren?t.optionGroupChildren:"items",D(i=l)||C(i)||F(i)||V())))})),this.flatOptions(o)}return n}return i},hasSelectedOption:function(){return d.ObjectUtils.isNotEmpty(this.modelValue)},label:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return d.ObjectUtils.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},listAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.listLabel:void 0},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:k.default},components:{VirtualScroller:w.default,Portal:S.default,TimesIcon:I.default,ChevronDownIcon:v.default,SpinnerIcon:g.default,SearchIcon:O.default,CheckIcon:m.default,BlankIcon:y.default}};function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function $(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function H(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$(Object(i),!0).forEach((function(t){A(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function A(e,t,i){var n;return(t="symbol"==j(n=U(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function U(e,t){if("object"!=j(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var N=["id"],G=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],z=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],R=["value","placeholder","aria-owns","aria-activedescendant"],_=["id","aria-label"],q=["id"],W=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];return T.render=function(e,t,i,n,o,l){var r=f.resolveComponent("SpinnerIcon"),s=f.resolveComponent("CheckIcon"),a=f.resolveComponent("BlankIcon"),c=f.resolveComponent("VirtualScroller"),d=f.resolveComponent("Portal"),u=f.resolveDirective("ripple");return f.openBlock(),f.createElementBlock("div",f.mergeProps({ref:"container",id:o.id,class:e.cx("root"),onClick:t[16]||(t[16]=function(){return l.onContainerClick&&l.onContainerClick.apply(l,arguments)})},e.ptmi("root")),[e.editable?(f.openBlock(),f.createElementBlock("input",f.mergeProps({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:l.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:t[0]||(t[0]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[1]||(t[1]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[2]||(t[2]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)}),onInput:t[3]||(t[3]=function(){return l.onEditableInput&&l.onEditableInput.apply(l,arguments)})},H(H({},e.inputProps),e.ptm("input"))),null,16,G)):(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:1,ref:"focusInput",id:e.inputId,class:[e.cx("input"),e.inputClass],style:e.inputStyle,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel||("p-emptylabel"===l.label?void 0:l.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,"aria-disabled":e.disabled,onFocus:t[4]||(t[4]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[5]||(t[5]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[6]||(t[6]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)})},H(H({},e.inputProps),e.ptm("input"))),[f.renderSlot(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return[f.createTextVNode(f.toDisplayString("p-emptylabel"===l.label?" ":l.label||"empty"),1)]}))],16,z)),e.showClear&&null!=e.modelValue?f.renderSlot(e.$slots,"clearicon",{key:2,class:f.normalizeClass(e.cx("clearIcon")),onClick:l.onClearClick,clearCallback:l.onClearClick},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.clearIcon?"i":"TimesIcon"),f.mergeProps({ref:"clearIcon",class:[e.cx("clearIcon"),e.clearIcon],onClick:l.onClearClick},H(H({},e.clearIconProps),e.ptm("clearIcon")),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]})):f.createCommentVNode("",!0),f.createElementVNode("div",f.mergeProps({class:e.cx("trigger")},e.ptm("trigger")),[e.loading?f.renderSlot(e.$slots,"loadingicon",{key:0,class:f.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(f.openBlock(),f.createBlock(r,f.mergeProps({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):f.renderSlot(e.$slots,"dropdownicon",{key:1,class:f.normalizeClass(e.cx("dropdownIcon"))},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),f.mergeProps({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),f.createVNode(d,{appendTo:e.appendTo},{default:f.withCtx((function(){return[f.createVNode(f.Transition,f.mergeProps({name:"p-connected-overlay",onEnter:l.onOverlayEnter,onAfterEnter:l.onOverlayAfterEnter,onLeave:l.onOverlayLeave,onAfterLeave:l.onOverlayAfterLeave},e.ptm("transition")),{default:f.withCtx((function(){return[o.overlayVisible?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:0,ref:l.overlayRef,class:[e.cx("panel"),e.panelClass],style:e.panelStyle,onClick:t[14]||(t[14]=function(){return l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)}),onKeydown:t[15]||(t[15]=function(){return l.onOverlayKeyDown&&l.onOverlayKeyDown.apply(l,arguments)})},H(H({},e.panelProps),e.ptm("panel"))),[f.createElementVNode("span",f.mergeProps({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[7]||(t[7]=function(){return l.onFirstHiddenFocus&&l.onFirstHiddenFocus.apply(l,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),f.renderSlot(e.$slots,"header",{value:e.modelValue,options:l.visibleOptions}),e.filter?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[f.createElementVNode("div",f.mergeProps({class:e.cx("filterContainer")},e.ptm("filterContainer")),[f.createElementVNode("input",f.mergeProps({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:t[8]||(t[8]=function(){return l.onFilterUpdated&&l.onFilterUpdated.apply(l,arguments)}),onVnodeUpdated:t[9]||(t[9]=function(){return l.onFilterUpdated&&l.onFilterUpdated.apply(l,arguments)}),class:e.cx("filterInput"),placeholder:e.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":l.focusedOptionId,onKeydown:t[10]||(t[10]=function(){return l.onFilterKeyDown&&l.onFilterKeyDown.apply(l,arguments)}),onBlur:t[11]||(t[11]=function(){return l.onFilterBlur&&l.onFilterBlur.apply(l,arguments)}),onInput:t[12]||(t[12]=function(){return l.onFilterChange&&l.onFilterChange.apply(l,arguments)})},H(H({},e.filterInputProps),e.ptm("filterInput"))),null,16,R),f.renderSlot(e.$slots,"filtericon",{class:f.normalizeClass(e.cx("filterIcon"))},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.filterIcon?"span":"SearchIcon"),f.mergeProps({class:[e.cx("filterIcon"),e.filterIcon]},e.ptm("filterIcon")),null,16,["class"]))]}))],16),f.createElementVNode("span",f.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.filterResultMessageText),17)],16)):f.createCommentVNode("",!0),f.createElementVNode("div",f.mergeProps({class:e.cx("wrapper"),style:{"max-height":l.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("wrapper")),[f.createVNode(c,f.mergeProps({ref:l.virtualScrollerRef},e.virtualScrollerOptions,{items:l.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:l.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),f.createSlots({content:f.withCtx((function(t){var i=t.styleClass,n=t.contentRef,r=t.items,c=t.getItemOptions,d=t.contentStyle,p=t.itemSize;return[f.createElementVNode("ul",f.mergeProps({ref:function(e){return l.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:d,role:"listbox","aria-label":l.listAriaLabel},e.ptm("list")),[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r,(function(t,i){return f.openBlock(),f.createElementBlock(f.Fragment,{key:l.getOptionRenderKey(t,l.getOptionIndex(i,c))},[l.isOptionGroup(t)?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:0,id:o.id+"_"+l.getOptionIndex(i,c),style:{height:p?p+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[f.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,index:l.getOptionIndex(i,c)},(function(){return[f.createElementVNode("span",f.mergeProps({class:e.cx("itemGroupLabel")},e.ptm("itemGroupLabel")),f.toDisplayString(l.getOptionGroupLabel(t.optionGroup)),17)]}))],16,q)):f.withDirectives((f.openBlock(),f.createElementBlock("li",f.mergeProps({key:1,id:o.id+"_"+l.getOptionIndex(i,c),class:e.cx("item",{option:t,focusedOption:l.getOptionIndex(i,c)}),style:{height:p?p+"px":void 0},role:"option","aria-label":l.getOptionLabel(t),"aria-selected":l.isSelected(t),"aria-disabled":l.isOptionDisabled(t),"aria-setsize":l.ariaSetSize,"aria-posinset":l.getAriaPosInset(l.getOptionIndex(i,c)),onClick:function(e){return l.onOptionSelect(e,t)},onMousemove:function(e){return l.onOptionMouseMove(e,l.getOptionIndex(i,c))},"data-p-highlight":l.isSelected(t),"data-p-focused":o.focusedOptionIndex===l.getOptionIndex(i,c),"data-p-disabled":l.isOptionDisabled(t)},l.getPTItemOptions(t,c,i,"item")),[e.checkmark?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[l.isSelected(t)?(f.openBlock(),f.createBlock(s,f.mergeProps({key:0,class:e.cx("checkIcon")},e.ptm("checkIcon")),null,16,["class"])):(f.openBlock(),f.createBlock(a,f.mergeProps({key:1,class:e.cx("blankIcon")},e.ptm("blankIcon")),null,16,["class"]))],64)):f.createCommentVNode("",!0),f.renderSlot(e.$slots,"option",{option:t,index:l.getOptionIndex(i,c)},(function(){return[f.createElementVNode("span",f.mergeProps({class:e.cx("itemLabel")},e.ptm("itemLabel")),f.toDisplayString(l.getOptionLabel(t)),17)]}))],16,W)),[[u]])],64)})),128)),o.filterValue&&(!r||r&&0===r.length)?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[f.renderSlot(e.$slots,"emptyfilter",{},(function(){return[f.createTextVNode(f.toDisplayString(l.emptyFilterMessageText),1)]}))],16)):!e.options||e.options&&0===e.options.length?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[f.renderSlot(e.$slots,"empty",{},(function(){return[f.createTextVNode(f.toDisplayString(l.emptyMessageText),1)]}))],16)):f.createCommentVNode("",!0)],16,_)]})),_:2},[e.$slots.loader?{name:"loader",fn:f.withCtx((function(t){return[f.renderSlot(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),f.renderSlot(e.$slots,"footer",{value:e.modelValue,options:l.visibleOptions}),!e.options||e.options&&0===e.options.length?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.emptyMessageText),17)):f.createCommentVNode("",!0),f.createElementVNode("span",f.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.selectedMessageText),17),f.createElementVNode("span",f.mergeProps({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[13]||(t[13]=function(){return l.onLastHiddenFocus&&l.onLastHiddenFocus.apply(l,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):f.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16,N)},T}(primevue.api,primevue.icons.blank,primevue.icons.check,primevue.icons.chevrondown,primevue.icons.search,primevue.icons.spinner,primevue.icons.times,primevue.overlayeventbus,primevue.portal,primevue.ripple,primevue.utils,primevue.virtualscroller,primevue.basecomponent,primevue.dropdown.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.dropdown=function(e,t,i,n,o,l,r,s,a,c,d,u,p,h,f){"use strict";function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y=b(t),m=b(i),v=b(n),g=b(o),O=b(l),I=b(r),x=b(s),S=b(a),k=b(c),w=b(u);function L(e){return L="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},L(e)}function V(){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 F(e,t){if(e){if("string"==typeof e)return E(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?E(e,t):void 0}}function C(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function D(e){if(Array.isArray(e))return E(e)}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function P(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function B(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?P(Object(i),!0).forEach((function(t){M(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):P(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function M(e,t,i){var n;return(t="symbol"==L(n=K(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function K(e,t){if("object"!=L(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var T={name:"Dropdown",extends:{name:"BaseDropdown",extends:b(p).default,props:{modelValue:null,options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:[String,Object],default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:b(h).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||d.UniqueComponentId()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||d.UniqueComponentId(),this.autoUpdateModel(),this.bindLabelClickListener()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(d.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?d.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?d.ObjectUtils.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?d.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTItemOptions:function(e,t,i,n){return this.ptm(n,{context:{option:e,index:i,selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&d.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return d.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return d.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),e&&d.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.clicked=!1,t.focusedOptionIndex=-1,t.searchValue="",t.resetFilterOnHide&&(t.filterValue=null),e&&d.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled||d.DomHandler.isAndroid())e.preventDefault();else{var t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t&&d.ObjectUtils.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}this.clicked=!1}},onEditableInput:function(e){var t=e.target.value;this.searchValue="",!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.updateModel(e,t),!this.overlayVisible&&d.ObjectUtils.isNotEmpty(t)&&this.show()},onContainerClick:function(e){this.disabled||this.loading||"INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]')||(this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(e){this.updateModel(e,null),this.resetFilterOnClear&&(this.filterValue=null)},onFirstHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?d.DomHandler.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;d.DomHandler.focus(t)},onLastHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?d.DomHandler.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;d.DomHandler.focus(t)},onOptionSelect:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.getOptionValue(t);this.updateModel(e,n),i&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){x.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t)}else this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget;e.shiftKey?t.setSelectionRange(0,e.target.selectionStart):(t.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget;if(e.shiftKey)t.setSelectionRange(e.target.selectionStart,t.value.length);else{var i=t.value.length;t.setSelectionRange(i,i),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)),e.preventDefault()},onSpaceKey:function(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault(),e.stopPropagation()},onTabKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(d.DomHandler.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){d.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),d.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&d.DomHandler.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){d.ZIndexUtils.clear(e)},alignOverlay:function(){"self"===this.appendTo?d.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=d.DomHandler.getOuterWidth(this.$el)+"px",d.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&!e.$el.contains(t.target)&&!e.overlay.contains(t.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new d.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!d.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var e=this;if(!this.editable&&!this.labelClickListener){var t=document.querySelector('label[for="'.concat(this.inputId,'"]'));t&&d.DomHandler.isVisible(t)&&(this.labelClickListener=function(){d.DomHandler.focus(e.$refs.focusInput)},t.addEventListener("click",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var e=document.querySelector('label[for="'.concat(this.inputId,'"]'));e&&d.DomHandler.isVisible(e)&&e.removeEventListener("click",this.labelClickListener)}},hasFocusableElements:function(){return d.DomHandler.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){var t;return this.isValidOption(e)&&(null===(t=this.getOptionLabel(e))||void 0===t?void 0:t.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(e){return d.ObjectUtils.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.isValidOption(e)&&d.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return d.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?d.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,o=!1;return d.ObjectUtils.isNotEmpty(this.searchValue)&&(-1!==(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(e){return i.isOptionMatched(e)})))&&(o=!0),-1===n&&-1===this.focusedOptionIndex&&(n=this.findFirstFocusedOptionIndex()),-1!==n&&this.changeFocusedOptionIndex(e,n)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),o},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var i=-1!==t?"".concat(e.id,"_").concat(t):e.focusedOptionId,n=d.DomHandler.findSingle(e.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest"}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}))},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var t=this,i=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=e.FilterService.filter(i,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=[];return(this.options||[]).forEach((function(e){var i,l=t.getOptionGroupChildren(e).filter((function(e){return n.includes(e)}));l.length>0&&o.push(B(B({},e),{},M({},"string"==typeof t.optionGroupChildren?t.optionGroupChildren:"items",D(i=l)||C(i)||F(i)||V())))})),this.flatOptions(o)}return n}return i},hasSelectedOption:function(){return d.ObjectUtils.isNotEmpty(this.modelValue)},label:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return d.ObjectUtils.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},listAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.listLabel:void 0},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:k.default},components:{VirtualScroller:w.default,Portal:S.default,TimesIcon:I.default,ChevronDownIcon:v.default,SpinnerIcon:O.default,SearchIcon:g.default,CheckIcon:m.default,BlankIcon:y.default}};function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function $(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function H(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$(Object(i),!0).forEach((function(t){A(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function A(e,t,i){var n;return(t="symbol"==j(n=U(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function U(e,t){if("object"!=j(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var N=["id"],G=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],z=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],R=["value","placeholder","aria-owns","aria-activedescendant"],_=["id","aria-label"],q=["id"],W=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];return T.render=function(e,t,i,n,o,l){var r=f.resolveComponent("SpinnerIcon"),s=f.resolveComponent("CheckIcon"),a=f.resolveComponent("BlankIcon"),c=f.resolveComponent("VirtualScroller"),d=f.resolveComponent("Portal"),u=f.resolveDirective("ripple");return f.openBlock(),f.createElementBlock("div",f.mergeProps({ref:"container",id:o.id,class:e.cx("root"),onClick:t[16]||(t[16]=function(){return l.onContainerClick&&l.onContainerClick.apply(l,arguments)})},e.ptmi("root")),[e.editable?(f.openBlock(),f.createElementBlock("input",f.mergeProps({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:l.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:t[0]||(t[0]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[1]||(t[1]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[2]||(t[2]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)}),onInput:t[3]||(t[3]=function(){return l.onEditableInput&&l.onEditableInput.apply(l,arguments)})},H(H({},e.inputProps),e.ptm("input"))),null,16,G)):(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:1,ref:"focusInput",id:e.inputId,class:[e.cx("input"),e.inputClass],style:e.inputStyle,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel||("p-emptylabel"===l.label?void 0:l.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,"aria-disabled":e.disabled,onFocus:t[4]||(t[4]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[5]||(t[5]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[6]||(t[6]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)})},H(H({},e.inputProps),e.ptm("input"))),[f.renderSlot(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return[f.createTextVNode(f.toDisplayString("p-emptylabel"===l.label?" ":l.label||"empty"),1)]}))],16,z)),e.showClear&&null!=e.modelValue?f.renderSlot(e.$slots,"clearicon",{key:2,class:f.normalizeClass(e.cx("clearIcon")),onClick:l.onClearClick,clearCallback:l.onClearClick},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.clearIcon?"i":"TimesIcon"),f.mergeProps({ref:"clearIcon",class:[e.cx("clearIcon"),e.clearIcon],onClick:l.onClearClick},H(H({},e.clearIconProps),e.ptm("clearIcon")),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]})):f.createCommentVNode("",!0),f.createElementVNode("div",f.mergeProps({class:e.cx("trigger")},e.ptm("trigger")),[e.loading?f.renderSlot(e.$slots,"loadingicon",{key:0,class:f.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(f.openBlock(),f.createBlock(r,f.mergeProps({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):f.renderSlot(e.$slots,"dropdownicon",{key:1,class:f.normalizeClass(e.cx("dropdownIcon"))},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),f.mergeProps({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),f.createVNode(d,{appendTo:e.appendTo},{default:f.withCtx((function(){return[f.createVNode(f.Transition,f.mergeProps({name:"p-connected-overlay",onEnter:l.onOverlayEnter,onAfterEnter:l.onOverlayAfterEnter,onLeave:l.onOverlayLeave,onAfterLeave:l.onOverlayAfterLeave},e.ptm("transition")),{default:f.withCtx((function(){return[o.overlayVisible?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:0,ref:l.overlayRef,class:[e.cx("panel"),e.panelClass],style:e.panelStyle,onClick:t[14]||(t[14]=function(){return l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)}),onKeydown:t[15]||(t[15]=function(){return l.onOverlayKeyDown&&l.onOverlayKeyDown.apply(l,arguments)})},H(H({},e.panelProps),e.ptm("panel"))),[f.createElementVNode("span",f.mergeProps({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[7]||(t[7]=function(){return l.onFirstHiddenFocus&&l.onFirstHiddenFocus.apply(l,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),f.renderSlot(e.$slots,"header",{value:e.modelValue,options:l.visibleOptions}),e.filter?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[f.createElementVNode("div",f.mergeProps({class:e.cx("filterContainer")},e.ptm("filterContainer")),[f.createElementVNode("input",f.mergeProps({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:t[8]||(t[8]=function(){return l.onFilterUpdated&&l.onFilterUpdated.apply(l,arguments)}),onVnodeUpdated:t[9]||(t[9]=function(){return l.onFilterUpdated&&l.onFilterUpdated.apply(l,arguments)}),class:e.cx("filterInput"),placeholder:e.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":l.focusedOptionId,onKeydown:t[10]||(t[10]=function(){return l.onFilterKeyDown&&l.onFilterKeyDown.apply(l,arguments)}),onBlur:t[11]||(t[11]=function(){return l.onFilterBlur&&l.onFilterBlur.apply(l,arguments)}),onInput:t[12]||(t[12]=function(){return l.onFilterChange&&l.onFilterChange.apply(l,arguments)})},H(H({},e.filterInputProps),e.ptm("filterInput"))),null,16,R),f.renderSlot(e.$slots,"filtericon",{class:f.normalizeClass(e.cx("filterIcon"))},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.filterIcon?"span":"SearchIcon"),f.mergeProps({class:[e.cx("filterIcon"),e.filterIcon]},e.ptm("filterIcon")),null,16,["class"]))]}))],16),f.createElementVNode("span",f.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.filterResultMessageText),17)],16)):f.createCommentVNode("",!0),f.createElementVNode("div",f.mergeProps({class:e.cx("wrapper"),style:{"max-height":l.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("wrapper")),[f.createVNode(c,f.mergeProps({ref:l.virtualScrollerRef},e.virtualScrollerOptions,{items:l.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:l.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),f.createSlots({content:f.withCtx((function(t){var i=t.styleClass,n=t.contentRef,r=t.items,c=t.getItemOptions,d=t.contentStyle,p=t.itemSize;return[f.createElementVNode("ul",f.mergeProps({ref:function(e){return l.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:d,role:"listbox","aria-label":l.listAriaLabel},e.ptm("list")),[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r,(function(t,i){return f.openBlock(),f.createElementBlock(f.Fragment,{key:l.getOptionRenderKey(t,l.getOptionIndex(i,c))},[l.isOptionGroup(t)?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:0,id:o.id+"_"+l.getOptionIndex(i,c),style:{height:p?p+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[f.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,index:l.getOptionIndex(i,c)},(function(){return[f.createElementVNode("span",f.mergeProps({class:e.cx("itemGroupLabel")},e.ptm("itemGroupLabel")),f.toDisplayString(l.getOptionGroupLabel(t.optionGroup)),17)]}))],16,q)):f.withDirectives((f.openBlock(),f.createElementBlock("li",f.mergeProps({key:1,id:o.id+"_"+l.getOptionIndex(i,c),class:e.cx("item",{option:t,focusedOption:l.getOptionIndex(i,c)}),style:{height:p?p+"px":void 0},role:"option","aria-label":l.getOptionLabel(t),"aria-selected":l.isSelected(t),"aria-disabled":l.isOptionDisabled(t),"aria-setsize":l.ariaSetSize,"aria-posinset":l.getAriaPosInset(l.getOptionIndex(i,c)),onClick:function(e){return l.onOptionSelect(e,t)},onMousemove:function(e){return l.onOptionMouseMove(e,l.getOptionIndex(i,c))},"data-p-highlight":l.isSelected(t),"data-p-focused":o.focusedOptionIndex===l.getOptionIndex(i,c),"data-p-disabled":l.isOptionDisabled(t)},l.getPTItemOptions(t,c,i,"item")),[e.checkmark?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[l.isSelected(t)?(f.openBlock(),f.createBlock(s,f.mergeProps({key:0,class:e.cx("checkIcon")},e.ptm("checkIcon")),null,16,["class"])):(f.openBlock(),f.createBlock(a,f.mergeProps({key:1,class:e.cx("blankIcon")},e.ptm("blankIcon")),null,16,["class"]))],64)):f.createCommentVNode("",!0),f.renderSlot(e.$slots,"option",{option:t,index:l.getOptionIndex(i,c)},(function(){return[f.createElementVNode("span",f.mergeProps({class:e.cx("itemLabel")},e.ptm("itemLabel")),f.toDisplayString(l.getOptionLabel(t)),17)]}))],16,W)),[[u]])],64)})),128)),o.filterValue&&(!r||r&&0===r.length)?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[f.renderSlot(e.$slots,"emptyfilter",{},(function(){return[f.createTextVNode(f.toDisplayString(l.emptyFilterMessageText),1)]}))],16)):!e.options||e.options&&0===e.options.length?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[f.renderSlot(e.$slots,"empty",{},(function(){return[f.createTextVNode(f.toDisplayString(l.emptyMessageText),1)]}))],16)):f.createCommentVNode("",!0)],16,_)]})),_:2},[e.$slots.loader?{name:"loader",fn:f.withCtx((function(t){return[f.renderSlot(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),f.renderSlot(e.$slots,"footer",{value:e.modelValue,options:l.visibleOptions}),!e.options||e.options&&0===e.options.length?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.emptyMessageText),17)):f.createCommentVNode("",!0),f.createElementVNode("span",f.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.selectedMessageText),17),f.createElementVNode("span",f.mergeProps({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[13]||(t[13]=function(){return l.onLastHiddenFocus&&l.onLastHiddenFocus.apply(l,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):f.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16,N)},T}(primevue.api,primevue.icons.blank,primevue.icons.check,primevue.icons.chevrondown,primevue.icons.search,primevue.icons.spinner,primevue.icons.times,primevue.overlayeventbus,primevue.portal,primevue.ripple,primevue.utils,primevue.virtualscroller,primevue.basecomponent,primevue.dropdown.style,Vue);
@@ -35,4 +35,4 @@ this.primevue.floatlabel = (function (BaseComponent, FloatLabelStyle, vue) {
35
35
 
36
36
  return script;
37
37
 
38
- })(primevue.basecomponent, FloatLabelStyle, Vue);
38
+ })(primevue.basecomponent, primevue.floatlabel.style, Vue);
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.floatlabel=function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"FloatLabel",extends:{name:"BaseFloatLabel",extends:r(e).default,props:{},style:r(t).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1};return o.render=function(e,t,r,o,a,l){return n.openBlock(),n.createElementBlock("span",n.mergeProps({class:e.cx("root")},e.ptmi("root")),[n.renderSlot(e.$slots,"default")],16)},o}(primevue.basecomponent,FloatLabelStyle,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.floatlabel=function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"FloatLabel",extends:{name:"BaseFloatLabel",extends:n(e).default,props:{},style:n(t).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1};return o.render=function(e,t,n,o,a,l){return r.openBlock(),r.createElementBlock("span",r.mergeProps({class:e.cx("root")},e.ptmi("root")),[r.renderSlot(e.$slots,"default")],16)},o}(primevue.basecomponent,primevue.floatlabel.style,Vue);
@@ -1,9 +1,9 @@
1
1
  <template>
2
- <div v-focustrap :class="cx('root')" aria-live="polite" v-bind="ptmi('root')">
2
+ <div :class="cx('root')" aria-live="polite" v-bind="ptmi('root')">
3
3
  <div v-if="!d_active" ref="display" :class="cx('display')" :tabindex="$attrs.tabindex || '0'" role="button" @click="open" @keydown.enter="open" v-bind="{ ...displayProps, ...ptm('display') }">
4
4
  <slot name="display"></slot>
5
5
  </div>
6
- <div v-else :class="cx('content')" v-bind="ptm('content')">
6
+ <div v-else v-focustrap :class="cx('content')" v-bind="ptm('content')">
7
7
  <slot name="content"></slot>
8
8
  <IPButton v-if="closable" :aria-label="closeAriaLabel" @click="close" :unstyled="unstyled" :pt="ptm('closeButton')" v-bind="closeButtonProps">
9
9
  <template #icon>
@@ -110,7 +110,7 @@ var _hoisted_1 = ["tabindex"];
110
110
  function render(_ctx, _cache, $props, $setup, $data, $options) {
111
111
  var _component_IPButton = vue.resolveComponent("IPButton");
112
112
  var _directive_focustrap = vue.resolveDirective("focustrap");
113
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
113
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
114
114
  "class": _ctx.cx('root'),
115
115
  "aria-live": "polite"
116
116
  }, _ctx.ptmi('root')), [!$data.d_active ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
@@ -125,7 +125,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
125
125
  onKeydown: _cache[1] || (_cache[1] = vue.withKeys(function () {
126
126
  return $options.open && $options.open.apply($options, arguments);
127
127
  }, ["enter"]))
128
- }, _objectSpread(_objectSpread({}, _ctx.displayProps), _ctx.ptm('display'))), [vue.renderSlot(_ctx.$slots, "display")], 16, _hoisted_1)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
128
+ }, _objectSpread(_objectSpread({}, _ctx.displayProps), _ctx.ptm('display'))), [vue.renderSlot(_ctx.$slots, "display")], 16, _hoisted_1)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
129
129
  key: 1,
130
130
  "class": _ctx.cx('content')
131
131
  }, _ctx.ptm('content')), [vue.renderSlot(_ctx.$slots, "content"), _ctx.closable ? (vue.openBlock(), vue.createBlock(_component_IPButton, vue.mergeProps({
@@ -145,7 +145,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
145
145
  })];
146
146
  }),
147
147
  _: 3
148
- }, 16, ["aria-label", "onClick", "unstyled", "pt"])) : vue.createCommentVNode("", true)], 16))], 16)), [[_directive_focustrap]]);
148
+ }, 16, ["aria-label", "onClick", "unstyled", "pt"])) : vue.createCommentVNode("", true)], 16)), [[_directive_focustrap]])], 16);
149
149
  }
150
150
 
151
151
  script.render = render;
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),t=require("primevue/focustrap"),o=require("primevue/icons/times"),n=require("primevue/basecomponent"),r=require("primevue/inplace/style"),i=require("vue");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),a=c(t),s=c(o),u={name:"Inplace",extends:{name:"BaseInplace",extends:c(n).default,props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},style:c(r).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["open","close","update:active"],data:function(){return{d_active:this.active}},watch:{active:function(e){this.d_active=e}},methods:{open:function(e){this.disabled||(this.$emit("open",e),this.d_active=!0,this.$emit("update:active",!0))},close:function(e){var t=this;this.$emit("close",e),this.d_active=!1,this.$emit("update:active",!1),setTimeout((function(){t.$refs.display.focus()}),0)}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:l.default,TimesIcon:s.default},directives:{focustrap:a.default}};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){m(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function m(e,t,o){var n;return(t="symbol"==p(n=y(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){if("object"!=p(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var v=["tabindex"];u.render=function(e,t,o,n,r,c){var l=i.resolveComponent("IPButton"),a=i.resolveDirective("focustrap");return i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps({class:e.cx("root"),"aria-live":"polite"},e.ptmi("root")),[r.d_active?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:1,class:e.cx("content")},e.ptm("content")),[i.renderSlot(e.$slots,"content"),e.closable?(i.openBlock(),i.createBlock(l,i.mergeProps({key:0,"aria-label":c.closeAriaLabel,onClick:c.close,unstyled:e.unstyled,pt:e.ptm("closeButton")},e.closeButtonProps),{icon:i.withCtx((function(){return[i.renderSlot(e.$slots,"closeicon",{},(function(){return[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),i.mergeProps({class:e.closeIcon},e.ptm("closeButton").icon,{"data-pc-section":"closebuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["aria-label","onClick","unstyled","pt"])):i.createCommentVNode("",!0)],16)):(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,ref:"display",class:e.cx("display"),tabindex:e.$attrs.tabindex||"0",role:"button",onClick:t[0]||(t[0]=function(){return c.open&&c.open.apply(c,arguments)}),onKeydown:t[1]||(t[1]=i.withKeys((function(){return c.open&&c.open.apply(c,arguments)}),["enter"]))},d(d({},e.displayProps),e.ptm("display"))),[i.renderSlot(e.$slots,"display")],16,v))],16)),[[a]])},module.exports=u;
1
+ "use strict";var e=require("primevue/button"),t=require("primevue/focustrap"),o=require("primevue/icons/times"),n=require("primevue/basecomponent"),r=require("primevue/inplace/style"),i=require("vue");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),a=c(t),s=c(o),u={name:"Inplace",extends:{name:"BaseInplace",extends:c(n).default,props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},style:c(r).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["open","close","update:active"],data:function(){return{d_active:this.active}},watch:{active:function(e){this.d_active=e}},methods:{open:function(e){this.disabled||(this.$emit("open",e),this.d_active=!0,this.$emit("update:active",!0))},close:function(e){var t=this;this.$emit("close",e),this.d_active=!1,this.$emit("update:active",!1),setTimeout((function(){t.$refs.display.focus()}),0)}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:l.default,TimesIcon:s.default},directives:{focustrap:a.default}};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){m(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function m(e,t,o){var n;return(t="symbol"==p(n=y(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){if("object"!=p(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var v=["tabindex"];u.render=function(e,t,o,n,r,c){var l=i.resolveComponent("IPButton"),a=i.resolveDirective("focustrap");return i.openBlock(),i.createElementBlock("div",i.mergeProps({class:e.cx("root"),"aria-live":"polite"},e.ptmi("root")),[r.d_active?i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps({key:1,class:e.cx("content")},e.ptm("content")),[i.renderSlot(e.$slots,"content"),e.closable?(i.openBlock(),i.createBlock(l,i.mergeProps({key:0,"aria-label":c.closeAriaLabel,onClick:c.close,unstyled:e.unstyled,pt:e.ptm("closeButton")},e.closeButtonProps),{icon:i.withCtx((function(){return[i.renderSlot(e.$slots,"closeicon",{},(function(){return[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),i.mergeProps({class:e.closeIcon},e.ptm("closeButton").icon,{"data-pc-section":"closebuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["aria-label","onClick","unstyled","pt"])):i.createCommentVNode("",!0)],16)),[[a]]):(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,ref:"display",class:e.cx("display"),tabindex:e.$attrs.tabindex||"0",role:"button",onClick:t[0]||(t[0]=function(){return c.open&&c.open.apply(c,arguments)}),onKeydown:t[1]||(t[1]=i.withKeys((function(){return c.open&&c.open.apply(c,arguments)}),["enter"]))},d(d({},e.displayProps),e.ptm("display"))),[i.renderSlot(e.$slots,"display")],16,v))],16)},module.exports=u;
@@ -3,7 +3,7 @@ import FocusTrap from 'primevue/focustrap';
3
3
  import TimesIcon from 'primevue/icons/times';
4
4
  import BaseComponent from 'primevue/basecomponent';
5
5
  import InplaceStyle from 'primevue/inplace/style';
6
- import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, mergeProps, withKeys, renderSlot, createBlock, withCtx, resolveDynamicComponent, createCommentVNode } from 'vue';
6
+ import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, withKeys, renderSlot, withDirectives, createBlock, withCtx, resolveDynamicComponent, createCommentVNode } from 'vue';
7
7
 
8
8
  var script$1 = {
9
9
  name: 'BaseInplace',
@@ -100,7 +100,7 @@ var _hoisted_1 = ["tabindex"];
100
100
  function render(_ctx, _cache, $props, $setup, $data, $options) {
101
101
  var _component_IPButton = resolveComponent("IPButton");
102
102
  var _directive_focustrap = resolveDirective("focustrap");
103
- return withDirectives((openBlock(), createElementBlock("div", mergeProps({
103
+ return openBlock(), createElementBlock("div", mergeProps({
104
104
  "class": _ctx.cx('root'),
105
105
  "aria-live": "polite"
106
106
  }, _ctx.ptmi('root')), [!$data.d_active ? (openBlock(), createElementBlock("div", mergeProps({
@@ -115,7 +115,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
115
115
  onKeydown: _cache[1] || (_cache[1] = withKeys(function () {
116
116
  return $options.open && $options.open.apply($options, arguments);
117
117
  }, ["enter"]))
118
- }, _objectSpread(_objectSpread({}, _ctx.displayProps), _ctx.ptm('display'))), [renderSlot(_ctx.$slots, "display")], 16, _hoisted_1)) : (openBlock(), createElementBlock("div", mergeProps({
118
+ }, _objectSpread(_objectSpread({}, _ctx.displayProps), _ctx.ptm('display'))), [renderSlot(_ctx.$slots, "display")], 16, _hoisted_1)) : withDirectives((openBlock(), createElementBlock("div", mergeProps({
119
119
  key: 1,
120
120
  "class": _ctx.cx('content')
121
121
  }, _ctx.ptm('content')), [renderSlot(_ctx.$slots, "content"), _ctx.closable ? (openBlock(), createBlock(_component_IPButton, mergeProps({
@@ -135,7 +135,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
135
135
  })];
136
136
  }),
137
137
  _: 3
138
- }, 16, ["aria-label", "onClick", "unstyled", "pt"])) : createCommentVNode("", true)], 16))], 16)), [[_directive_focustrap]]);
138
+ }, 16, ["aria-label", "onClick", "unstyled", "pt"])) : createCommentVNode("", true)], 16)), [[_directive_focustrap]])], 16);
139
139
  }
140
140
 
141
141
  script.render = render;
@@ -1 +1 @@
1
- import t from"primevue/button";import e from"primevue/focustrap";import o from"primevue/icons/times";import n from"primevue/basecomponent";import r from"primevue/inplace/style";import{resolveComponent as i,resolveDirective as c,withDirectives as l,openBlock as s,createElementBlock as a,mergeProps as u,withKeys as p,renderSlot as f,createBlock as m,withCtx as d,resolveDynamicComponent as y,createCommentVNode as b}from"vue";var v={name:"Inplace",extends:{name:"BaseInplace",extends:n,props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},style:r,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["open","close","update:active"],data:function(){return{d_active:this.active}},watch:{active:function(t){this.d_active=t}},methods:{open:function(t){this.disabled||(this.$emit("open",t),this.d_active=!0,this.$emit("update:active",!0))},close:function(t){var e=this;this.$emit("close",t),this.d_active=!1,this.$emit("update:active",!1),setTimeout((function(){e.$refs.display.focus()}),0)}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:t,TimesIcon:o},directives:{focustrap:e}};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function O(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function P(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?O(Object(o),!0).forEach((function(e){g(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):O(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function g(t,e,o){var n;return(e="symbol"==h(n=j(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function j(t,e){if("object"!=h(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $=["tabindex"];v.render=function(t,e,o,n,r,v){var h=i("IPButton"),O=c("focustrap");return l((s(),a("div",u({class:t.cx("root"),"aria-live":"polite"},t.ptmi("root")),[r.d_active?(s(),a("div",u({key:1,class:t.cx("content")},t.ptm("content")),[f(t.$slots,"content"),t.closable?(s(),m(h,u({key:0,"aria-label":v.closeAriaLabel,onClick:v.close,unstyled:t.unstyled,pt:t.ptm("closeButton")},t.closeButtonProps),{icon:d((function(){return[f(t.$slots,"closeicon",{},(function(){return[(s(),m(y(t.closeIcon?"span":"TimesIcon"),u({class:t.closeIcon},t.ptm("closeButton").icon,{"data-pc-section":"closebuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["aria-label","onClick","unstyled","pt"])):b("",!0)],16)):(s(),a("div",u({key:0,ref:"display",class:t.cx("display"),tabindex:t.$attrs.tabindex||"0",role:"button",onClick:e[0]||(e[0]=function(){return v.open&&v.open.apply(v,arguments)}),onKeydown:e[1]||(e[1]=p((function(){return v.open&&v.open.apply(v,arguments)}),["enter"]))},P(P({},t.displayProps),t.ptm("display"))),[f(t.$slots,"display")],16,$))],16)),[[O]])};export{v as default};
1
+ import t from"primevue/button";import e from"primevue/focustrap";import o from"primevue/icons/times";import n from"primevue/basecomponent";import r from"primevue/inplace/style";import{resolveComponent as i,resolveDirective as c,openBlock as l,createElementBlock as s,mergeProps as a,withKeys as u,renderSlot as p,withDirectives as f,createBlock as m,withCtx as d,resolveDynamicComponent as y,createCommentVNode as b}from"vue";var v={name:"Inplace",extends:{name:"BaseInplace",extends:n,props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},style:r,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["open","close","update:active"],data:function(){return{d_active:this.active}},watch:{active:function(t){this.d_active=t}},methods:{open:function(t){this.disabled||(this.$emit("open",t),this.d_active=!0,this.$emit("update:active",!0))},close:function(t){var e=this;this.$emit("close",t),this.d_active=!1,this.$emit("update:active",!1),setTimeout((function(){e.$refs.display.focus()}),0)}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:t,TimesIcon:o},directives:{focustrap:e}};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function O(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function P(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?O(Object(o),!0).forEach((function(e){g(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):O(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function g(t,e,o){var n;return(e="symbol"==h(n=j(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function j(t,e){if("object"!=h(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $=["tabindex"];v.render=function(t,e,o,n,r,v){var h=i("IPButton"),O=c("focustrap");return l(),s("div",a({class:t.cx("root"),"aria-live":"polite"},t.ptmi("root")),[r.d_active?f((l(),s("div",a({key:1,class:t.cx("content")},t.ptm("content")),[p(t.$slots,"content"),t.closable?(l(),m(h,a({key:0,"aria-label":v.closeAriaLabel,onClick:v.close,unstyled:t.unstyled,pt:t.ptm("closeButton")},t.closeButtonProps),{icon:d((function(){return[p(t.$slots,"closeicon",{},(function(){return[(l(),m(y(t.closeIcon?"span":"TimesIcon"),a({class:t.closeIcon},t.ptm("closeButton").icon,{"data-pc-section":"closebuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["aria-label","onClick","unstyled","pt"])):b("",!0)],16)),[[O]]):(l(),s("div",a({key:0,ref:"display",class:t.cx("display"),tabindex:t.$attrs.tabindex||"0",role:"button",onClick:e[0]||(e[0]=function(){return v.open&&v.open.apply(v,arguments)}),onKeydown:e[1]||(e[1]=u((function(){return v.open&&v.open.apply(v,arguments)}),["enter"]))},P(P({},t.displayProps),t.ptm("display"))),[p(t.$slots,"display")],16,$))],16)};export{v as default};
@@ -105,7 +105,7 @@ this.primevue.inplace = (function (Button, FocusTrap, TimesIcon, BaseComponent,
105
105
  function render(_ctx, _cache, $props, $setup, $data, $options) {
106
106
  var _component_IPButton = vue.resolveComponent("IPButton");
107
107
  var _directive_focustrap = vue.resolveDirective("focustrap");
108
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
108
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
109
109
  "class": _ctx.cx('root'),
110
110
  "aria-live": "polite"
111
111
  }, _ctx.ptmi('root')), [!$data.d_active ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
@@ -120,7 +120,7 @@ this.primevue.inplace = (function (Button, FocusTrap, TimesIcon, BaseComponent,
120
120
  onKeydown: _cache[1] || (_cache[1] = vue.withKeys(function () {
121
121
  return $options.open && $options.open.apply($options, arguments);
122
122
  }, ["enter"]))
123
- }, _objectSpread(_objectSpread({}, _ctx.displayProps), _ctx.ptm('display'))), [vue.renderSlot(_ctx.$slots, "display")], 16, _hoisted_1)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
123
+ }, _objectSpread(_objectSpread({}, _ctx.displayProps), _ctx.ptm('display'))), [vue.renderSlot(_ctx.$slots, "display")], 16, _hoisted_1)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
124
124
  key: 1,
125
125
  "class": _ctx.cx('content')
126
126
  }, _ctx.ptm('content')), [vue.renderSlot(_ctx.$slots, "content"), _ctx.closable ? (vue.openBlock(), vue.createBlock(_component_IPButton, vue.mergeProps({
@@ -140,7 +140,7 @@ this.primevue.inplace = (function (Button, FocusTrap, TimesIcon, BaseComponent,
140
140
  })];
141
141
  }),
142
142
  _: 3
143
- }, 16, ["aria-label", "onClick", "unstyled", "pt"])) : vue.createCommentVNode("", true)], 16))], 16)), [[_directive_focustrap]]);
143
+ }, 16, ["aria-label", "onClick", "unstyled", "pt"])) : vue.createCommentVNode("", true)], 16)), [[_directive_focustrap]])], 16);
144
144
  }
145
145
 
146
146
  script.render = render;
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.inplace=function(e,t,o,n,r,i){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),s=c(t),a=c(o),u={name:"Inplace",extends:{name:"BaseInplace",extends:c(n).default,props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},style:c(r).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["open","close","update:active"],data:function(){return{d_active:this.active}},watch:{active:function(e){this.d_active=e}},methods:{open:function(e){this.disabled||(this.$emit("open",e),this.d_active=!0,this.$emit("update:active",!0))},close:function(e){var t=this;this.$emit("close",e),this.d_active=!1,this.$emit("update:active",!1),setTimeout((function(){t.$refs.display.focus()}),0)}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:l.default,TimesIcon:a.default},directives:{focustrap:s.default}};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){m(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function m(e,t,o){var n;return(t="symbol"==p(n=y(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){if("object"!=p(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var v=["tabindex"];return u.render=function(e,t,o,n,r,c){var l=i.resolveComponent("IPButton"),s=i.resolveDirective("focustrap");return i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps({class:e.cx("root"),"aria-live":"polite"},e.ptmi("root")),[r.d_active?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:1,class:e.cx("content")},e.ptm("content")),[i.renderSlot(e.$slots,"content"),e.closable?(i.openBlock(),i.createBlock(l,i.mergeProps({key:0,"aria-label":c.closeAriaLabel,onClick:c.close,unstyled:e.unstyled,pt:e.ptm("closeButton")},e.closeButtonProps),{icon:i.withCtx((function(){return[i.renderSlot(e.$slots,"closeicon",{},(function(){return[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),i.mergeProps({class:e.closeIcon},e.ptm("closeButton").icon,{"data-pc-section":"closebuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["aria-label","onClick","unstyled","pt"])):i.createCommentVNode("",!0)],16)):(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,ref:"display",class:e.cx("display"),tabindex:e.$attrs.tabindex||"0",role:"button",onClick:t[0]||(t[0]=function(){return c.open&&c.open.apply(c,arguments)}),onKeydown:t[1]||(t[1]=i.withKeys((function(){return c.open&&c.open.apply(c,arguments)}),["enter"]))},d(d({},e.displayProps),e.ptm("display"))),[i.renderSlot(e.$slots,"display")],16,v))],16)),[[s]])},u}(primevue.button,primevue.focustrap,primevue.icons.times,primevue.basecomponent,primevue.inplace.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.inplace=function(e,t,o,n,r,i){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),s=c(t),a=c(o),u={name:"Inplace",extends:{name:"BaseInplace",extends:c(n).default,props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},style:c(r).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["open","close","update:active"],data:function(){return{d_active:this.active}},watch:{active:function(e){this.d_active=e}},methods:{open:function(e){this.disabled||(this.$emit("open",e),this.d_active=!0,this.$emit("update:active",!0))},close:function(e){var t=this;this.$emit("close",e),this.d_active=!1,this.$emit("update:active",!1),setTimeout((function(){t.$refs.display.focus()}),0)}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:l.default,TimesIcon:a.default},directives:{focustrap:s.default}};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){m(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function m(e,t,o){var n;return(t="symbol"==p(n=y(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){if("object"!=p(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var v=["tabindex"];return u.render=function(e,t,o,n,r,c){var l=i.resolveComponent("IPButton"),s=i.resolveDirective("focustrap");return i.openBlock(),i.createElementBlock("div",i.mergeProps({class:e.cx("root"),"aria-live":"polite"},e.ptmi("root")),[r.d_active?i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps({key:1,class:e.cx("content")},e.ptm("content")),[i.renderSlot(e.$slots,"content"),e.closable?(i.openBlock(),i.createBlock(l,i.mergeProps({key:0,"aria-label":c.closeAriaLabel,onClick:c.close,unstyled:e.unstyled,pt:e.ptm("closeButton")},e.closeButtonProps),{icon:i.withCtx((function(){return[i.renderSlot(e.$slots,"closeicon",{},(function(){return[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),i.mergeProps({class:e.closeIcon},e.ptm("closeButton").icon,{"data-pc-section":"closebuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["aria-label","onClick","unstyled","pt"])):i.createCommentVNode("",!0)],16)),[[s]]):(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,ref:"display",class:e.cx("display"),tabindex:e.$attrs.tabindex||"0",role:"button",onClick:t[0]||(t[0]=function(){return c.open&&c.open.apply(c,arguments)}),onKeydown:t[1]||(t[1]=i.withKeys((function(){return c.open&&c.open.apply(c,arguments)}),["enter"]))},d(d({},e.displayProps),e.ptm("display"))),[i.renderSlot(e.$slots,"display")],16,v))],16)},u}(primevue.button,primevue.focustrap,primevue.icons.times,primevue.basecomponent,primevue.inplace.style,Vue);
@@ -160,8 +160,8 @@ export default {
160
160
  currency: this.currency,
161
161
  currencyDisplay: this.currencyDisplay,
162
162
  useGrouping: this.useGrouping,
163
- minimumFractionDigits: this.minFractionDigits,
164
- maximumFractionDigits: this.maxFractionDigits,
163
+ minimumFractionDigits: this.minFractionDigits ?? undefined,
164
+ maximumFractionDigits: this.maxFractionDigits ?? undefined,
165
165
  roundingMode: this.roundingMode
166
166
  };
167
167
  },
@@ -549,7 +549,12 @@ export default {
549
549
  }
550
550
  },
551
551
  onPaste(event) {
552
+ if (this.readonly || this.disabled) {
553
+ return;
554
+ }
555
+
552
556
  event.preventDefault();
557
+
553
558
  let data = (event.clipboardData || window['clipboardData']).getData('Text');
554
559
 
555
560
  if (data) {
@@ -259,14 +259,15 @@ var script = {
259
259
  },
260
260
  methods: {
261
261
  getOptions: function getOptions() {
262
+ var _this$minFractionDigi, _this$maxFractionDigi;
262
263
  return {
263
264
  localeMatcher: this.localeMatcher,
264
265
  style: this.mode,
265
266
  currency: this.currency,
266
267
  currencyDisplay: this.currencyDisplay,
267
268
  useGrouping: this.useGrouping,
268
- minimumFractionDigits: this.minFractionDigits,
269
- maximumFractionDigits: this.maxFractionDigits,
269
+ minimumFractionDigits: (_this$minFractionDigi = this.minFractionDigits) !== null && _this$minFractionDigi !== void 0 ? _this$minFractionDigi : undefined,
270
+ maximumFractionDigits: (_this$maxFractionDigi = this.maxFractionDigits) !== null && _this$maxFractionDigi !== void 0 ? _this$maxFractionDigi : undefined,
270
271
  roundingMode: this.roundingMode
271
272
  };
272
273
  },
@@ -618,6 +619,9 @@ var script = {
618
619
  }
619
620
  },
620
621
  onPaste: function onPaste(event) {
622
+ if (this.readonly || this.disabled) {
623
+ return;
624
+ }
621
625
  event.preventDefault();
622
626
  var data = (event.clipboardData || window['clipboardData']).getData('Text');
623
627
  if (data) {
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),t=require("primevue/icons/angledown"),n=require("primevue/icons/angleup"),i=require("primevue/inputtext"),r=require("primevue/utils"),s=require("primevue/basecomponent"),a=require("primevue/inputnumber/style"),l=require("vue");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=u(e),c=u(t),h=u(n),p=u(i);function d(e){return d="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},d(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){var i;return(t="symbol"==d(i=y(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function x(){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 v(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 b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function I(e){if(Array.isArray(e))return B(e)}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var S={name:"InputNumber",extends:{name:"BaseInputNumber",extends:u(s).default,props:{modelValue:{type:Number,default:null},format:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!1},buttonLayout:{type:String,default:"stacked"},incrementButtonClass:{type:String,default:null},decrementButtonClass:{type:String,default:null},incrementButtonIcon:{type:String,default:void 0},decrementButtonIcon:{type:String,default:void 0},locale:{type:String,default:void 0},localeMatcher:{type:String,default:void 0},mode:{type:String,default:"decimal"},prefix:{type:String,default:null},suffix:{type:String,default:null},currency:{type:String,default:void 0},currencyDisplay:{type:String,default:void 0},useGrouping:{type:Boolean,default:!0},minFractionDigits:{type:Number,default:void 0},maxFractionDigits:{type:Number,default:void 0},roundingMode:{type:String,default:"halfExpand",validator:function(e){return["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"].includes(e)}},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},allowEmpty:{type:Boolean,default:!0},highlightOnFocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},incrementButtonProps:{type:null,default:null},decrementButtonProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:u(a).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:modelValue","input","focus","blur"],numberFormat:null,_numeral:null,_decimal:null,_group:null,_minusSign:null,_currency:null,_suffix:null,_prefix:null,_index:null,groupChar:"",isSpecialChar:null,prefixChar:null,suffixChar:null,timer:null,data:function(){return{d_modelValue:this.modelValue,focused:!1}},watch:{modelValue:function(e){this.d_modelValue=e},locale:function(e,t){this.updateConstructParser(e,t)},localeMatcher:function(e,t){this.updateConstructParser(e,t)},mode:function(e,t){this.updateConstructParser(e,t)},currency:function(e,t){this.updateConstructParser(e,t)},currencyDisplay:function(e,t){this.updateConstructParser(e,t)},useGrouping:function(e,t){this.updateConstructParser(e,t)},minFractionDigits:function(e,t){this.updateConstructParser(e,t)},maxFractionDigits:function(e,t){this.updateConstructParser(e,t)},suffix:function(e,t){this.updateConstructParser(e,t)},prefix:function(e,t){this.updateConstructParser(e,t)}},created:function(){this.constructParser()},methods:{getOptions:function(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits,roundingMode:this.roundingMode}},constructParser:function(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());var e,t=(e=new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210),I(e)||b(e)||v(e)||x()).reverse(),n=new Map(t.map((function(e,t){return[e,t]})));this._numeral=new RegExp("[".concat(t.join(""),"]"),"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=function(e){return n.get(e)}},updateConstructParser:function(e,t){e!==t&&this.constructParser()},escapeRegExp:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},getDecimalExpression:function(){var e=new Intl.NumberFormat(this.locale,f(f({},this.getOptions()),{},{useGrouping:!1}));return new RegExp("[".concat(e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,""),"]"),"g")},getGroupingExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp("[".concat(this.groupChar,"]"),"g")},getMinusSignExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp("[".concat(e.format(-1).trim().replace(this._numeral,""),"]"),"g")},getCurrencyExpression:function(){if(this.currency){var e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});return new RegExp("[".concat(e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,""),"]"),"g")}return new RegExp("[]","g")},getPrefixExpression:function(){if(this.prefix)this.prefixChar=this.prefix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp("".concat(this.escapeRegExp(this.prefixChar||"")),"g")},getSuffixExpression:function(){if(this.suffix)this.suffixChar=this.suffix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});this.suffixChar=e.format(1).split("1")[1]}return new RegExp("".concat(this.escapeRegExp(this.suffixChar||"")),"g")},formatValue:function(e){if(null!=e){if("-"===e)return e;if(this.format){var t=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(t=this.prefix+t),this.suffix&&(t+=this.suffix),t}return e.toString()}return""},parseValue:function(e){var t=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(t){if("-"===t)return t;var n=+t;return isNaN(n)?null:n}return null},repeat:function(e,t,n){var i=this;if(!this.readonly){var r=t||500;this.clearTimer(),this.timer=setTimeout((function(){i.repeat(e,40,n)}),r),this.spin(e,n)}},spin:function(e,t){if(this.$refs.input){var n=this.step*t,i=this.parseValue(this.$refs.input.$el.value)||0,r=this.validateValue(i+n);this.updateInput(r,null,"spin"),this.updateModel(e,r),this.handleOnInput(e,i,r)}},onUpButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,1),e.preventDefault())},onUpButtonMouseUp:function(){this.disabled||this.clearTimer()},onUpButtonMouseLeave:function(){this.disabled||this.clearTimer()},onUpButtonKeyUp:function(){this.disabled||this.clearTimer()},onUpButtonKeyDown:function(e){"Space"!==e.code&&"Enter"!==e.code&&"NumpadEnter"!==e.code||this.repeat(e,null,1)},onDownButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,-1),e.preventDefault())},onDownButtonMouseUp:function(){this.disabled||this.clearTimer()},onDownButtonMouseLeave:function(){this.disabled||this.clearTimer()},onDownButtonKeyUp:function(){this.disabled||this.clearTimer()},onDownButtonKeyDown:function(e){"Space"!==e.code&&"Enter"!==e.code&&"NumpadEnter"!==e.code||this.repeat(e,null,-1)},onUserInput:function(){this.isSpecialChar&&(this.$refs.input.$el.value=this.lastValue),this.isSpecialChar=!1},onInputKeyDown:function(e){if(!this.readonly){if(e.altKey||e.ctrlKey||e.metaKey)return this.isSpecialChar=!0,void(this.lastValue=this.$refs.input.$el.value);this.lastValue=e.target.value;var t=e.target.selectionStart,n=e.target.selectionEnd,i=e.target.value,s=null;switch(e.code){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":this.isNumeralChar(i.charAt(t-1))||e.preventDefault();break;case"ArrowRight":this.isNumeralChar(i.charAt(t))||e.preventDefault();break;case"Tab":case"Enter":case"NumpadEnter":s=this.validateValue(this.parseValue(i)),this.$refs.input.$el.value=this.formatValue(s),this.$refs.input.$el.setAttribute("aria-valuenow",s),this.updateModel(e,s);break;case"Backspace":if(e.preventDefault(),t===n){var a=i.charAt(t-1),l=this.getDecimalCharIndexes(i),u=l.decimalCharIndex,o=l.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(a)){var c=this.getDecimalLength(i);if(this._group.test(a))this._group.lastIndex=0,s=i.slice(0,t-2)+i.slice(t-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,c?this.$refs.input.$el.setSelectionRange(t-1,t-1):s=i.slice(0,t-1)+i.slice(t);else if(u>0&&t>u){var h=this.isDecimalMode()&&(this.minFractionDigits||0)<c?"":"0";s=i.slice(0,t-1)+h+i.slice(t)}else 1===o?(s=i.slice(0,t-1)+"0"+i.slice(t),s=this.parseValue(s)>0?s:""):s=i.slice(0,t-1)+i.slice(t)}this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(i,t,n),this.updateValue(e,s,null,"delete-range");break;case"Delete":if(e.preventDefault(),t===n){var p=i.charAt(t),d=this.getDecimalCharIndexes(i),m=d.decimalCharIndex,f=d.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(p)){var g=this.getDecimalLength(i);if(this._group.test(p))this._group.lastIndex=0,s=i.slice(0,t)+i.slice(t+2);else if(this._decimal.test(p))this._decimal.lastIndex=0,g?this.$refs.input.$el.setSelectionRange(t+1,t+1):s=i.slice(0,t)+i.slice(t+1);else if(m>0&&t>m){var y=this.isDecimalMode()&&(this.minFractionDigits||0)<g?"":"0";s=i.slice(0,t)+y+i.slice(t+1)}else 1===f?(s=i.slice(0,t)+"0"+i.slice(t+1),s=this.parseValue(s)>0?s:""):s=i.slice(0,t)+i.slice(t+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(i,t,n),this.updateValue(e,s,null,"delete-range");break;case"Home":e.preventDefault(),r.ObjectUtils.isEmpty(this.min)||this.updateModel(e,this.min);break;case"End":e.preventDefault(),r.ObjectUtils.isEmpty(this.max)||this.updateModel(e,this.max)}}},onInputKeyPress:function(e){if(!this.readonly){var t=e.key,n=this.isDecimalSign(t),i=this.isMinusSign(t);"Enter"!==e.code&&e.preventDefault(),(Number(t)>=0&&Number(t)<=9||i||n)&&this.insert(e,t,{isDecimalSign:n,isMinusSign:i})}},onPaste:function(e){e.preventDefault();var t=(e.clipboardData||window.clipboardData).getData("Text");if(t){var n=this.parseValue(t);null!=n&&this.insert(e,n.toString())}},allowMinusSign:function(){return null===this.min||this.min<0},isMinusSign:function(e){return!(!this._minusSign.test(e)&&"-"!==e)&&(this._minusSign.lastIndex=0,!0)},isDecimalSign:function(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)},isDecimalMode:function(){return"decimal"===this.mode},getDecimalCharIndexes:function(e){var t=e.search(this._decimal);this._decimal.lastIndex=0;var n=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:t,decimalCharIndexWithoutPrefix:n}},getCharIndexes:function(e){var t=e.search(this._decimal);this._decimal.lastIndex=0;var n=e.search(this._minusSign);this._minusSign.lastIndex=0;var i=e.search(this._suffix);this._suffix.lastIndex=0;var r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:t,minusCharIndex:n,suffixCharIndex:i,currencyCharIndex:r}},insert:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},i=t.search(this._minusSign);if(this._minusSign.lastIndex=0,this.allowMinusSign()||-1===i){var r,s=this.$refs.input.$el.selectionStart,a=this.$refs.input.$el.selectionEnd,l=this.$refs.input.$el.value.trim(),u=this.getCharIndexes(l),o=u.decimalCharIndex,c=u.suffixCharIndex,h=u.currencyCharIndex;if(n.isMinusSign)0===s&&(r=l,-1!==u.minusCharIndex&&0===a||(r=this.insertText(l,t,0,a)),this.updateValue(e,r,t,"insert"));else if(n.isDecimalSign)o>0&&s===o?this.updateValue(e,l,t,"insert"):(o>s&&o<a||-1===o&&this.maxFractionDigits)&&(r=this.insertText(l,t,s,a),this.updateValue(e,r,t,"insert"));else{var p=this.numberFormat.resolvedOptions().maximumFractionDigits,d=s!==a?"range-insert":"insert";if(o>0&&s>o){if(s+t.length-(o+1)<=p){var m=h>=s?h-1:c>=s?c:l.length;r=l.slice(0,s)+t+l.slice(s+t.length,m)+l.slice(m),this.updateValue(e,r,t,d)}}else r=this.insertText(l,t,s,a),this.updateValue(e,r,t,d)}}},insertText:function(e,t,n,i){if(2===("."===t?t:t.split(".")).length){var r=e.slice(n,i).search(this._decimal);return this._decimal.lastIndex=0,r>0?e.slice(0,n)+this.formatValue(t)+e.slice(i):this.formatValue(t)||e}return i-n===e.length?this.formatValue(t):0===n?t+e.slice(i):i===e.length?e.slice(0,n)+t:e.slice(0,n)+t+e.slice(i)},deleteRange:function(e,t,n){return n-t===e.length?"":0===t?e.slice(n):n===e.length?e.slice(0,t):e.slice(0,t)+e.slice(n)},initCursor:function(){var e=this.$refs.input.$el.selectionStart,t=this.$refs.input.$el.value,n=t.length,i=null,r=(this.prefixChar||"").length,s=(t=t.replace(this._prefix,"")).charAt(e-=r);if(this.isNumeralChar(s))return e+r;for(var a=e-1;a>=0;){if(s=t.charAt(a),this.isNumeralChar(s)){i=a+r;break}a--}if(null!==i)this.$refs.input.$el.setSelectionRange(i+1,i+1);else{for(a=e;a<n;){if(s=t.charAt(a),this.isNumeralChar(s)){i=a+r;break}a++}null!==i&&this.$refs.input.$el.setSelectionRange(i,i)}return i||0},onInputClick:function(){this.readonly||this.$refs.input.$el.value===r.DomHandler.getSelection()||this.initCursor()},isNumeralChar:function(e){return!(1!==e.length||!(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e)))&&(this.resetRegex(),!0)},resetRegex:function(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0},updateValue:function(e,t,n,i){var r=this.$refs.input.$el.value,s=null;null!=t&&(s=this.parseValue(t),this.updateInput(s=s||this.allowEmpty?s:0,n,i,t),this.handleOnInput(e,r,s))},handleOnInput:function(e,t,n){this.isValueChanged(t,n)&&this.$emit("input",{originalEvent:e,value:n,formattedValue:t})},isValueChanged:function(e,t){return null===t&&null!==e||null!=t&&t!==("string"==typeof e?this.parseValue(e):e)},validateValue:function(e){return"-"===e||null==e?null:null!=this.min&&e<this.min?this.min:null!=this.max&&e>this.max?this.max:e},updateInput:function(e,t,n,i){t=t||"";var r=this.$refs.input.$el.value,s=this.formatValue(e),a=r.length;if(s!==i&&(s=this.concatValues(s,i)),0===a){this.$refs.input.$el.value=s,this.$refs.input.$el.setSelectionRange(0,0);var l=this.initCursor()+t.length;this.$refs.input.$el.setSelectionRange(l,l)}else{var u=this.$refs.input.$el.selectionStart,o=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=s;var c=s.length;if("range-insert"===n){var h=this.parseValue((r||"").slice(0,u)),p=(null!==h?h.toString():"").split("").join("(".concat(this.groupChar,")?")),d=new RegExp(p,"g");d.test(s);var m=t.split("").join("(".concat(this.groupChar,")?")),f=new RegExp(m,"g");f.test(s.slice(d.lastIndex)),this.$refs.input.$el.setSelectionRange(o=d.lastIndex+f.lastIndex,o)}else if(c===a)"insert"===n||"delete-back-single"===n?this.$refs.input.$el.setSelectionRange(o+1,o+1):"delete-single"===n?this.$refs.input.$el.setSelectionRange(o-1,o-1):"delete-range"!==n&&"spin"!==n||this.$refs.input.$el.setSelectionRange(o,o);else if("delete-back-single"===n){var g=r.charAt(o-1),y=r.charAt(o),x=a-c,v=this._group.test(y);v&&1===x?o+=1:!v&&this.isNumeralChar(g)&&(o+=-1*x+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(o,o)}else if("-"===r&&"insert"===n){this.$refs.input.$el.setSelectionRange(0,0);var b=this.initCursor()+t.length+1;this.$refs.input.$el.setSelectionRange(b,b)}else this.$refs.input.$el.setSelectionRange(o+=c-a,o)}this.$refs.input.$el.setAttribute("aria-valuenow",e)},concatValues:function(e,t){if(e&&t){var n=t.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?-1!==n?e.replace(this.suffixChar,"").split(this._decimal)[0]+t.replace(this.suffixChar,"").slice(n)+this.suffixChar:e:-1!==n?e.split(this._decimal)[0]+t.slice(n):e}return e},getDecimalLength:function(e){if(e){var t=e.split(this._decimal);if(2===t.length)return t[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0},updateModel:function(e,t){this.d_modelValue=t,this.$emit("update:modelValue",t)},onInputFocus:function(e){this.focused=!0,this.disabled||this.readonly||this.$refs.input.$el.value===r.DomHandler.getSelection()||!this.highlightOnFocus||e.target.select(),this.$emit("focus",e)},onInputBlur:function(e){this.focused=!1;var t=e.target,n=this.validateValue(this.parseValue(t.value));this.$emit("blur",{originalEvent:e,value:t.value}),t.value=this.formatValue(n),t.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.disabled||this.readonly||!this.highlightOnFocus||r.DomHandler.clearSelection()},clearTimer:function(){this.timer&&clearInterval(this.timer)},maxBoundry:function(){return this.d_modelValue>=this.max},minBoundry:function(){return this.d_modelValue<=this.min}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0},upButtonListeners:function(){var e=this;return{mousedown:function(t){return e.onUpButtonMouseDown(t)},mouseup:function(t){return e.onUpButtonMouseUp(t)},mouseleave:function(t){return e.onUpButtonMouseLeave(t)},keydown:function(t){return e.onUpButtonKeyDown(t)},keyup:function(t){return e.onUpButtonKeyUp(t)}}},downButtonListeners:function(){var e=this;return{mousedown:function(t){return e.onDownButtonMouseDown(t)},mouseup:function(t){return e.onDownButtonMouseUp(t)},mouseleave:function(t){return e.onDownButtonMouseLeave(t)},keydown:function(t){return e.onDownButtonKeyDown(t)},keyup:function(t){return e.onDownButtonKeyUp(t)}}},formattedValue:function(){return this.formatValue(this.modelValue||this.allowEmpty?this.modelValue:0)},getFormatter:function(){return this.numberFormat}},components:{INInputText:p.default,INButton:o.default,AngleUpIcon:h.default,AngleDownIcon:c.default}};S.render=function(e,t,n,i,r,s){var a=l.resolveComponent("INInputText"),u=l.resolveComponent("INButton");return l.openBlock(),l.createElementBlock("span",l.mergeProps({class:e.cx("root")},e.ptmi("root")),[l.createVNode(a,l.mergeProps({ref:"input",id:e.inputId,role:"spinbutton",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.formattedValue,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,inputmode:"decimal"!==e.mode||e.minFractionDigits?"decimal":"numeric",disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-invalid":e.invalid||void 0,onInput:s.onUserInput,onKeydown:s.onInputKeyDown,onKeypress:s.onInputKeyPress,onPaste:s.onPaste,onClick:s.onInputClick,onFocus:s.onInputFocus,onBlur:s.onInputBlur},e.inputProps,{pt:e.ptm("input"),unstyled:e.unstyled}),null,16,["id","class","style","value","aria-valuemin","aria-valuemax","aria-valuenow","inputmode","disabled","readonly","placeholder","aria-labelledby","aria-label","aria-invalid","onInput","onKeydown","onKeypress","onPaste","onClick","onFocus","onBlur","pt","unstyled"]),e.showButtons&&"stacked"===e.buttonLayout?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:e.cx("buttonGroup")},e.ptm("buttonGroup")),[l.createVNode(u,l.mergeProps({class:[e.cx("incrementButton"),e.incrementButtonClass]},l.toHandlers(s.upButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.incrementButtonProps,{pt:e.ptm("incrementButton"),unstyled:e.unstyled}),{icon:l.withCtx((function(){return[l.renderSlot(e.$slots,"incrementbuttonicon",{},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.incrementButtonIcon?"span":"AngleUpIcon"),l.mergeProps({class:e.incrementButtonIcon},e.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"]),l.createVNode(u,l.mergeProps({class:[e.cx("decrementButton"),e.decrementButtonClass]},l.toHandlers(s.downButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.decrementButtonProps,{pt:e.ptm("decrementButton"),unstyled:e.unstyled}),{icon:l.withCtx((function(){return[l.renderSlot(e.$slots,"decrementbuttonicon",{},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.decrementButtonIcon?"span":"AngleDownIcon"),l.mergeProps({class:e.decrementButtonIcon},e.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])],16)):l.createCommentVNode("",!0),e.showButtons&&"stacked"!==e.buttonLayout?(l.openBlock(),l.createBlock(u,l.mergeProps({key:1,class:[e.cx("incrementButton"),e.incrementButtonClass]},l.toHandlers(s.upButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.incrementButtonProps,{pt:e.ptm("incrementButton"),unstyled:e.unstyled}),{icon:l.withCtx((function(){return[l.renderSlot(e.$slots,"incrementbuttonicon",{},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.incrementButtonIcon?"span":"AngleUpIcon"),l.mergeProps({class:e.incrementButtonIcon},e.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])):l.createCommentVNode("",!0),e.showButtons&&"stacked"!==e.buttonLayout?(l.openBlock(),l.createBlock(u,l.mergeProps({key:2,class:[e.cx("decrementButton"),e.decrementButtonClass]},l.toHandlers(s.downButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.decrementButtonProps,{pt:e.ptm("decrementButton"),unstyled:e.unstyled}),{icon:l.withCtx((function(){return[l.renderSlot(e.$slots,"decrementbuttonicon",{},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.decrementButtonIcon?"span":"AngleDownIcon"),l.mergeProps({class:e.decrementButtonIcon},e.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])):l.createCommentVNode("",!0)],16)},module.exports=S;
1
+ "use strict";var e=require("primevue/button"),t=require("primevue/icons/angledown"),n=require("primevue/icons/angleup"),i=require("primevue/inputtext"),r=require("primevue/utils"),s=require("primevue/basecomponent"),a=require("primevue/inputnumber/style"),l=require("vue");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=u(e),c=u(t),h=u(n),p=u(i);function d(e){return d="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},d(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){var i;return(t="symbol"==d(i=y(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function v(){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 x(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 b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function I(e){if(Array.isArray(e))return B(e)}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var S={name:"InputNumber",extends:{name:"BaseInputNumber",extends:u(s).default,props:{modelValue:{type:Number,default:null},format:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!1},buttonLayout:{type:String,default:"stacked"},incrementButtonClass:{type:String,default:null},decrementButtonClass:{type:String,default:null},incrementButtonIcon:{type:String,default:void 0},decrementButtonIcon:{type:String,default:void 0},locale:{type:String,default:void 0},localeMatcher:{type:String,default:void 0},mode:{type:String,default:"decimal"},prefix:{type:String,default:null},suffix:{type:String,default:null},currency:{type:String,default:void 0},currencyDisplay:{type:String,default:void 0},useGrouping:{type:Boolean,default:!0},minFractionDigits:{type:Number,default:void 0},maxFractionDigits:{type:Number,default:void 0},roundingMode:{type:String,default:"halfExpand",validator:function(e){return["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"].includes(e)}},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},allowEmpty:{type:Boolean,default:!0},highlightOnFocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},incrementButtonProps:{type:null,default:null},decrementButtonProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:u(a).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:modelValue","input","focus","blur"],numberFormat:null,_numeral:null,_decimal:null,_group:null,_minusSign:null,_currency:null,_suffix:null,_prefix:null,_index:null,groupChar:"",isSpecialChar:null,prefixChar:null,suffixChar:null,timer:null,data:function(){return{d_modelValue:this.modelValue,focused:!1}},watch:{modelValue:function(e){this.d_modelValue=e},locale:function(e,t){this.updateConstructParser(e,t)},localeMatcher:function(e,t){this.updateConstructParser(e,t)},mode:function(e,t){this.updateConstructParser(e,t)},currency:function(e,t){this.updateConstructParser(e,t)},currencyDisplay:function(e,t){this.updateConstructParser(e,t)},useGrouping:function(e,t){this.updateConstructParser(e,t)},minFractionDigits:function(e,t){this.updateConstructParser(e,t)},maxFractionDigits:function(e,t){this.updateConstructParser(e,t)},suffix:function(e,t){this.updateConstructParser(e,t)},prefix:function(e,t){this.updateConstructParser(e,t)}},created:function(){this.constructParser()},methods:{getOptions:function(){var e,t;return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:null!==(e=this.minFractionDigits)&&void 0!==e?e:void 0,maximumFractionDigits:null!==(t=this.maxFractionDigits)&&void 0!==t?t:void 0,roundingMode:this.roundingMode}},constructParser:function(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());var e,t=(e=new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210),I(e)||b(e)||x(e)||v()).reverse(),n=new Map(t.map((function(e,t){return[e,t]})));this._numeral=new RegExp("[".concat(t.join(""),"]"),"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=function(e){return n.get(e)}},updateConstructParser:function(e,t){e!==t&&this.constructParser()},escapeRegExp:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},getDecimalExpression:function(){var e=new Intl.NumberFormat(this.locale,f(f({},this.getOptions()),{},{useGrouping:!1}));return new RegExp("[".concat(e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,""),"]"),"g")},getGroupingExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp("[".concat(this.groupChar,"]"),"g")},getMinusSignExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp("[".concat(e.format(-1).trim().replace(this._numeral,""),"]"),"g")},getCurrencyExpression:function(){if(this.currency){var e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});return new RegExp("[".concat(e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,""),"]"),"g")}return new RegExp("[]","g")},getPrefixExpression:function(){if(this.prefix)this.prefixChar=this.prefix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp("".concat(this.escapeRegExp(this.prefixChar||"")),"g")},getSuffixExpression:function(){if(this.suffix)this.suffixChar=this.suffix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});this.suffixChar=e.format(1).split("1")[1]}return new RegExp("".concat(this.escapeRegExp(this.suffixChar||"")),"g")},formatValue:function(e){if(null!=e){if("-"===e)return e;if(this.format){var t=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(t=this.prefix+t),this.suffix&&(t+=this.suffix),t}return e.toString()}return""},parseValue:function(e){var t=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(t){if("-"===t)return t;var n=+t;return isNaN(n)?null:n}return null},repeat:function(e,t,n){var i=this;if(!this.readonly){var r=t||500;this.clearTimer(),this.timer=setTimeout((function(){i.repeat(e,40,n)}),r),this.spin(e,n)}},spin:function(e,t){if(this.$refs.input){var n=this.step*t,i=this.parseValue(this.$refs.input.$el.value)||0,r=this.validateValue(i+n);this.updateInput(r,null,"spin"),this.updateModel(e,r),this.handleOnInput(e,i,r)}},onUpButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,1),e.preventDefault())},onUpButtonMouseUp:function(){this.disabled||this.clearTimer()},onUpButtonMouseLeave:function(){this.disabled||this.clearTimer()},onUpButtonKeyUp:function(){this.disabled||this.clearTimer()},onUpButtonKeyDown:function(e){"Space"!==e.code&&"Enter"!==e.code&&"NumpadEnter"!==e.code||this.repeat(e,null,1)},onDownButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,-1),e.preventDefault())},onDownButtonMouseUp:function(){this.disabled||this.clearTimer()},onDownButtonMouseLeave:function(){this.disabled||this.clearTimer()},onDownButtonKeyUp:function(){this.disabled||this.clearTimer()},onDownButtonKeyDown:function(e){"Space"!==e.code&&"Enter"!==e.code&&"NumpadEnter"!==e.code||this.repeat(e,null,-1)},onUserInput:function(){this.isSpecialChar&&(this.$refs.input.$el.value=this.lastValue),this.isSpecialChar=!1},onInputKeyDown:function(e){if(!this.readonly){if(e.altKey||e.ctrlKey||e.metaKey)return this.isSpecialChar=!0,void(this.lastValue=this.$refs.input.$el.value);this.lastValue=e.target.value;var t=e.target.selectionStart,n=e.target.selectionEnd,i=e.target.value,s=null;switch(e.code){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":this.isNumeralChar(i.charAt(t-1))||e.preventDefault();break;case"ArrowRight":this.isNumeralChar(i.charAt(t))||e.preventDefault();break;case"Tab":case"Enter":case"NumpadEnter":s=this.validateValue(this.parseValue(i)),this.$refs.input.$el.value=this.formatValue(s),this.$refs.input.$el.setAttribute("aria-valuenow",s),this.updateModel(e,s);break;case"Backspace":if(e.preventDefault(),t===n){var a=i.charAt(t-1),l=this.getDecimalCharIndexes(i),u=l.decimalCharIndex,o=l.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(a)){var c=this.getDecimalLength(i);if(this._group.test(a))this._group.lastIndex=0,s=i.slice(0,t-2)+i.slice(t-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,c?this.$refs.input.$el.setSelectionRange(t-1,t-1):s=i.slice(0,t-1)+i.slice(t);else if(u>0&&t>u){var h=this.isDecimalMode()&&(this.minFractionDigits||0)<c?"":"0";s=i.slice(0,t-1)+h+i.slice(t)}else 1===o?(s=i.slice(0,t-1)+"0"+i.slice(t),s=this.parseValue(s)>0?s:""):s=i.slice(0,t-1)+i.slice(t)}this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(i,t,n),this.updateValue(e,s,null,"delete-range");break;case"Delete":if(e.preventDefault(),t===n){var p=i.charAt(t),d=this.getDecimalCharIndexes(i),m=d.decimalCharIndex,f=d.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(p)){var g=this.getDecimalLength(i);if(this._group.test(p))this._group.lastIndex=0,s=i.slice(0,t)+i.slice(t+2);else if(this._decimal.test(p))this._decimal.lastIndex=0,g?this.$refs.input.$el.setSelectionRange(t+1,t+1):s=i.slice(0,t)+i.slice(t+1);else if(m>0&&t>m){var y=this.isDecimalMode()&&(this.minFractionDigits||0)<g?"":"0";s=i.slice(0,t)+y+i.slice(t+1)}else 1===f?(s=i.slice(0,t)+"0"+i.slice(t+1),s=this.parseValue(s)>0?s:""):s=i.slice(0,t)+i.slice(t+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(i,t,n),this.updateValue(e,s,null,"delete-range");break;case"Home":e.preventDefault(),r.ObjectUtils.isEmpty(this.min)||this.updateModel(e,this.min);break;case"End":e.preventDefault(),r.ObjectUtils.isEmpty(this.max)||this.updateModel(e,this.max)}}},onInputKeyPress:function(e){if(!this.readonly){var t=e.key,n=this.isDecimalSign(t),i=this.isMinusSign(t);"Enter"!==e.code&&e.preventDefault(),(Number(t)>=0&&Number(t)<=9||i||n)&&this.insert(e,t,{isDecimalSign:n,isMinusSign:i})}},onPaste:function(e){if(!this.readonly&&!this.disabled){e.preventDefault();var t=(e.clipboardData||window.clipboardData).getData("Text");if(t){var n=this.parseValue(t);null!=n&&this.insert(e,n.toString())}}},allowMinusSign:function(){return null===this.min||this.min<0},isMinusSign:function(e){return!(!this._minusSign.test(e)&&"-"!==e)&&(this._minusSign.lastIndex=0,!0)},isDecimalSign:function(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)},isDecimalMode:function(){return"decimal"===this.mode},getDecimalCharIndexes:function(e){var t=e.search(this._decimal);this._decimal.lastIndex=0;var n=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:t,decimalCharIndexWithoutPrefix:n}},getCharIndexes:function(e){var t=e.search(this._decimal);this._decimal.lastIndex=0;var n=e.search(this._minusSign);this._minusSign.lastIndex=0;var i=e.search(this._suffix);this._suffix.lastIndex=0;var r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:t,minusCharIndex:n,suffixCharIndex:i,currencyCharIndex:r}},insert:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},i=t.search(this._minusSign);if(this._minusSign.lastIndex=0,this.allowMinusSign()||-1===i){var r,s=this.$refs.input.$el.selectionStart,a=this.$refs.input.$el.selectionEnd,l=this.$refs.input.$el.value.trim(),u=this.getCharIndexes(l),o=u.decimalCharIndex,c=u.suffixCharIndex,h=u.currencyCharIndex;if(n.isMinusSign)0===s&&(r=l,-1!==u.minusCharIndex&&0===a||(r=this.insertText(l,t,0,a)),this.updateValue(e,r,t,"insert"));else if(n.isDecimalSign)o>0&&s===o?this.updateValue(e,l,t,"insert"):(o>s&&o<a||-1===o&&this.maxFractionDigits)&&(r=this.insertText(l,t,s,a),this.updateValue(e,r,t,"insert"));else{var p=this.numberFormat.resolvedOptions().maximumFractionDigits,d=s!==a?"range-insert":"insert";if(o>0&&s>o){if(s+t.length-(o+1)<=p){var m=h>=s?h-1:c>=s?c:l.length;r=l.slice(0,s)+t+l.slice(s+t.length,m)+l.slice(m),this.updateValue(e,r,t,d)}}else r=this.insertText(l,t,s,a),this.updateValue(e,r,t,d)}}},insertText:function(e,t,n,i){if(2===("."===t?t:t.split(".")).length){var r=e.slice(n,i).search(this._decimal);return this._decimal.lastIndex=0,r>0?e.slice(0,n)+this.formatValue(t)+e.slice(i):this.formatValue(t)||e}return i-n===e.length?this.formatValue(t):0===n?t+e.slice(i):i===e.length?e.slice(0,n)+t:e.slice(0,n)+t+e.slice(i)},deleteRange:function(e,t,n){return n-t===e.length?"":0===t?e.slice(n):n===e.length?e.slice(0,t):e.slice(0,t)+e.slice(n)},initCursor:function(){var e=this.$refs.input.$el.selectionStart,t=this.$refs.input.$el.value,n=t.length,i=null,r=(this.prefixChar||"").length,s=(t=t.replace(this._prefix,"")).charAt(e-=r);if(this.isNumeralChar(s))return e+r;for(var a=e-1;a>=0;){if(s=t.charAt(a),this.isNumeralChar(s)){i=a+r;break}a--}if(null!==i)this.$refs.input.$el.setSelectionRange(i+1,i+1);else{for(a=e;a<n;){if(s=t.charAt(a),this.isNumeralChar(s)){i=a+r;break}a++}null!==i&&this.$refs.input.$el.setSelectionRange(i,i)}return i||0},onInputClick:function(){this.readonly||this.$refs.input.$el.value===r.DomHandler.getSelection()||this.initCursor()},isNumeralChar:function(e){return!(1!==e.length||!(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e)))&&(this.resetRegex(),!0)},resetRegex:function(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0},updateValue:function(e,t,n,i){var r=this.$refs.input.$el.value,s=null;null!=t&&(s=this.parseValue(t),this.updateInput(s=s||this.allowEmpty?s:0,n,i,t),this.handleOnInput(e,r,s))},handleOnInput:function(e,t,n){this.isValueChanged(t,n)&&this.$emit("input",{originalEvent:e,value:n,formattedValue:t})},isValueChanged:function(e,t){return null===t&&null!==e||null!=t&&t!==("string"==typeof e?this.parseValue(e):e)},validateValue:function(e){return"-"===e||null==e?null:null!=this.min&&e<this.min?this.min:null!=this.max&&e>this.max?this.max:e},updateInput:function(e,t,n,i){t=t||"";var r=this.$refs.input.$el.value,s=this.formatValue(e),a=r.length;if(s!==i&&(s=this.concatValues(s,i)),0===a){this.$refs.input.$el.value=s,this.$refs.input.$el.setSelectionRange(0,0);var l=this.initCursor()+t.length;this.$refs.input.$el.setSelectionRange(l,l)}else{var u=this.$refs.input.$el.selectionStart,o=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=s;var c=s.length;if("range-insert"===n){var h=this.parseValue((r||"").slice(0,u)),p=(null!==h?h.toString():"").split("").join("(".concat(this.groupChar,")?")),d=new RegExp(p,"g");d.test(s);var m=t.split("").join("(".concat(this.groupChar,")?")),f=new RegExp(m,"g");f.test(s.slice(d.lastIndex)),this.$refs.input.$el.setSelectionRange(o=d.lastIndex+f.lastIndex,o)}else if(c===a)"insert"===n||"delete-back-single"===n?this.$refs.input.$el.setSelectionRange(o+1,o+1):"delete-single"===n?this.$refs.input.$el.setSelectionRange(o-1,o-1):"delete-range"!==n&&"spin"!==n||this.$refs.input.$el.setSelectionRange(o,o);else if("delete-back-single"===n){var g=r.charAt(o-1),y=r.charAt(o),v=a-c,x=this._group.test(y);x&&1===v?o+=1:!x&&this.isNumeralChar(g)&&(o+=-1*v+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(o,o)}else if("-"===r&&"insert"===n){this.$refs.input.$el.setSelectionRange(0,0);var b=this.initCursor()+t.length+1;this.$refs.input.$el.setSelectionRange(b,b)}else this.$refs.input.$el.setSelectionRange(o+=c-a,o)}this.$refs.input.$el.setAttribute("aria-valuenow",e)},concatValues:function(e,t){if(e&&t){var n=t.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?-1!==n?e.replace(this.suffixChar,"").split(this._decimal)[0]+t.replace(this.suffixChar,"").slice(n)+this.suffixChar:e:-1!==n?e.split(this._decimal)[0]+t.slice(n):e}return e},getDecimalLength:function(e){if(e){var t=e.split(this._decimal);if(2===t.length)return t[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0},updateModel:function(e,t){this.d_modelValue=t,this.$emit("update:modelValue",t)},onInputFocus:function(e){this.focused=!0,this.disabled||this.readonly||this.$refs.input.$el.value===r.DomHandler.getSelection()||!this.highlightOnFocus||e.target.select(),this.$emit("focus",e)},onInputBlur:function(e){this.focused=!1;var t=e.target,n=this.validateValue(this.parseValue(t.value));this.$emit("blur",{originalEvent:e,value:t.value}),t.value=this.formatValue(n),t.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.disabled||this.readonly||!this.highlightOnFocus||r.DomHandler.clearSelection()},clearTimer:function(){this.timer&&clearInterval(this.timer)},maxBoundry:function(){return this.d_modelValue>=this.max},minBoundry:function(){return this.d_modelValue<=this.min}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0},upButtonListeners:function(){var e=this;return{mousedown:function(t){return e.onUpButtonMouseDown(t)},mouseup:function(t){return e.onUpButtonMouseUp(t)},mouseleave:function(t){return e.onUpButtonMouseLeave(t)},keydown:function(t){return e.onUpButtonKeyDown(t)},keyup:function(t){return e.onUpButtonKeyUp(t)}}},downButtonListeners:function(){var e=this;return{mousedown:function(t){return e.onDownButtonMouseDown(t)},mouseup:function(t){return e.onDownButtonMouseUp(t)},mouseleave:function(t){return e.onDownButtonMouseLeave(t)},keydown:function(t){return e.onDownButtonKeyDown(t)},keyup:function(t){return e.onDownButtonKeyUp(t)}}},formattedValue:function(){return this.formatValue(this.modelValue||this.allowEmpty?this.modelValue:0)},getFormatter:function(){return this.numberFormat}},components:{INInputText:p.default,INButton:o.default,AngleUpIcon:h.default,AngleDownIcon:c.default}};S.render=function(e,t,n,i,r,s){var a=l.resolveComponent("INInputText"),u=l.resolveComponent("INButton");return l.openBlock(),l.createElementBlock("span",l.mergeProps({class:e.cx("root")},e.ptmi("root")),[l.createVNode(a,l.mergeProps({ref:"input",id:e.inputId,role:"spinbutton",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.formattedValue,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,inputmode:"decimal"!==e.mode||e.minFractionDigits?"decimal":"numeric",disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-invalid":e.invalid||void 0,onInput:s.onUserInput,onKeydown:s.onInputKeyDown,onKeypress:s.onInputKeyPress,onPaste:s.onPaste,onClick:s.onInputClick,onFocus:s.onInputFocus,onBlur:s.onInputBlur},e.inputProps,{pt:e.ptm("input"),unstyled:e.unstyled}),null,16,["id","class","style","value","aria-valuemin","aria-valuemax","aria-valuenow","inputmode","disabled","readonly","placeholder","aria-labelledby","aria-label","aria-invalid","onInput","onKeydown","onKeypress","onPaste","onClick","onFocus","onBlur","pt","unstyled"]),e.showButtons&&"stacked"===e.buttonLayout?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:e.cx("buttonGroup")},e.ptm("buttonGroup")),[l.createVNode(u,l.mergeProps({class:[e.cx("incrementButton"),e.incrementButtonClass]},l.toHandlers(s.upButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.incrementButtonProps,{pt:e.ptm("incrementButton"),unstyled:e.unstyled}),{icon:l.withCtx((function(){return[l.renderSlot(e.$slots,"incrementbuttonicon",{},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.incrementButtonIcon?"span":"AngleUpIcon"),l.mergeProps({class:e.incrementButtonIcon},e.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"]),l.createVNode(u,l.mergeProps({class:[e.cx("decrementButton"),e.decrementButtonClass]},l.toHandlers(s.downButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.decrementButtonProps,{pt:e.ptm("decrementButton"),unstyled:e.unstyled}),{icon:l.withCtx((function(){return[l.renderSlot(e.$slots,"decrementbuttonicon",{},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.decrementButtonIcon?"span":"AngleDownIcon"),l.mergeProps({class:e.decrementButtonIcon},e.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])],16)):l.createCommentVNode("",!0),e.showButtons&&"stacked"!==e.buttonLayout?(l.openBlock(),l.createBlock(u,l.mergeProps({key:1,class:[e.cx("incrementButton"),e.incrementButtonClass]},l.toHandlers(s.upButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.incrementButtonProps,{pt:e.ptm("incrementButton"),unstyled:e.unstyled}),{icon:l.withCtx((function(){return[l.renderSlot(e.$slots,"incrementbuttonicon",{},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.incrementButtonIcon?"span":"AngleUpIcon"),l.mergeProps({class:e.incrementButtonIcon},e.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])):l.createCommentVNode("",!0),e.showButtons&&"stacked"!==e.buttonLayout?(l.openBlock(),l.createBlock(u,l.mergeProps({key:2,class:[e.cx("decrementButton"),e.decrementButtonClass]},l.toHandlers(s.downButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.decrementButtonProps,{pt:e.ptm("decrementButton"),unstyled:e.unstyled}),{icon:l.withCtx((function(){return[l.renderSlot(e.$slots,"decrementbuttonicon",{},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.decrementButtonIcon?"span":"AngleDownIcon"),l.mergeProps({class:e.decrementButtonIcon},e.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])):l.createCommentVNode("",!0)],16)},module.exports=S;
@@ -248,14 +248,15 @@ var script = {
248
248
  },
249
249
  methods: {
250
250
  getOptions: function getOptions() {
251
+ var _this$minFractionDigi, _this$maxFractionDigi;
251
252
  return {
252
253
  localeMatcher: this.localeMatcher,
253
254
  style: this.mode,
254
255
  currency: this.currency,
255
256
  currencyDisplay: this.currencyDisplay,
256
257
  useGrouping: this.useGrouping,
257
- minimumFractionDigits: this.minFractionDigits,
258
- maximumFractionDigits: this.maxFractionDigits,
258
+ minimumFractionDigits: (_this$minFractionDigi = this.minFractionDigits) !== null && _this$minFractionDigi !== void 0 ? _this$minFractionDigi : undefined,
259
+ maximumFractionDigits: (_this$maxFractionDigi = this.maxFractionDigits) !== null && _this$maxFractionDigi !== void 0 ? _this$maxFractionDigi : undefined,
259
260
  roundingMode: this.roundingMode
260
261
  };
261
262
  },
@@ -607,6 +608,9 @@ var script = {
607
608
  }
608
609
  },
609
610
  onPaste: function onPaste(event) {
611
+ if (this.readonly || this.disabled) {
612
+ return;
613
+ }
610
614
  event.preventDefault();
611
615
  var data = (event.clipboardData || window['clipboardData']).getData('Text');
612
616
  if (data) {