@fewangsit/wangsvue 1.5.219-alpha.1 → 1.5.219-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (588) hide show
  1. package/animation/index.es.js +54 -37
  2. package/assets/lottiejs/loading-page.es.js +14 -9
  3. package/assets/lottiejs/loading-plane.es.js +2 -2
  4. package/assets/lottiejs/loading-table.es.js +14 -9
  5. package/assets/lottiejs/no-data.es.js +14 -9
  6. package/backgroundimagecropper/index.es.js +61 -37
  7. package/badge/index.es.js +77 -67
  8. package/badgegroup/index.es.js +62 -50
  9. package/basecalendar/index.es.js +1258 -735
  10. package/basetree/index.es.js +213 -113
  11. package/breadcrumb/index.es.js +46 -38
  12. package/button/index.es.js +60 -54
  13. package/buttonbulkaction/index.es.js +168 -117
  14. package/buttoncopy/index.es.js +25 -22
  15. package/buttondownload/index.es.js +125 -76
  16. package/buttonfilter/index.es.js +21 -15
  17. package/buttonradio/index.es.js +91 -67
  18. package/buttonsearch/index.es.js +62 -46
  19. package/buttonselecttree/index.es.js +233 -172
  20. package/buttontoggle/index.es.js +8 -6
  21. package/calendar/index.es.js +113 -58
  22. package/card/index.es.js +44 -42
  23. package/checkbox/index.es.js +105 -74
  24. package/codesnippet/index.es.js +91 -71
  25. package/codesnippetadapter/index.es.js +25 -21
  26. package/columnlist/index.es.js +249 -171
  27. package/components.d.ts +0 -21
  28. package/config/defaultProps.es.js +9 -9
  29. package/config/index.es.js +11 -10
  30. package/config/locale.es.js +2 -2
  31. package/customcolumn/index.es.js +95 -78
  32. package/datatable/index.es.js +1071 -732
  33. package/dialog/index.es.js +54 -54
  34. package/dialogconfirm/index.es.js +90 -75
  35. package/dialogform/index.es.js +170 -133
  36. package/dialogselecttree/index.es.js +242 -194
  37. package/directives/focus.es.js +13 -8
  38. package/dropdown/index.es.js +250 -196
  39. package/editor/index.es.js +694 -498
  40. package/editorbutton/index.es.js +21 -19
  41. package/event-bus/index.es.js +3 -3
  42. package/event-bus/mitt.es.js +37 -20
  43. package/fieldwrapper/index.es.js +30 -25
  44. package/fileupload/index.es.js +230 -140
  45. package/filtercontainer/index.es.js +299 -222
  46. package/form/index.es.js +176 -126
  47. package/gallerypreview/index.es.js +138 -101
  48. package/icon/index.es.js +38 -36
  49. package/image/index.es.js +161 -108
  50. package/imagecompressor/index.es.js +616 -449
  51. package/imageinputinfo/index.es.js +26 -22
  52. package/inlinemessage/index.es.js +77 -65
  53. package/inputbadge/index.es.js +230 -156
  54. package/inputcurrency/index.es.js +146 -109
  55. package/inputemail/index.es.js +18 -16
  56. package/inputgroup/index.es.js +19 -16
  57. package/inputnumber/index.es.js +252 -182
  58. package/inputpassword/index.es.js +120 -94
  59. package/inputphonenumber/index.es.js +1017 -550
  60. package/inputrangenumber/index.es.js +129 -98
  61. package/inputtext/index.es.js +264 -189
  62. package/inputurl/index.es.js +31 -29
  63. package/invisiblefield/index.es.js +24 -16
  64. package/litedropdown/index.es.js +87 -81
  65. package/loading/index.es.js +21 -19
  66. package/loading-page-BXZ4fLOS.js +8 -0
  67. package/loading-page-BuLpsb_1.js +8 -0
  68. package/loading-page-CNqVBg__.js +4 -0
  69. package/loading-page-DbhhZih2.js +4 -0
  70. package/loading-page-DjfWXoOy.js +8 -0
  71. package/loading-page-S-KRY5zm.js +4 -0
  72. package/loading-plane-C1mi7Whv.js +4 -0
  73. package/loading-plane-CWq1hz_l.js +8 -0
  74. package/loading-table-B7LAXzAp.js +4 -0
  75. package/loading-table-BLmgKUsR.js +4 -0
  76. package/loading-table-CG7-cuhv.js +8 -0
  77. package/loading-table-CUPS49ta.js +4 -0
  78. package/loading-table-CuWWrTbv.js +8 -0
  79. package/loading-table-DbBzVwaZ.js +8 -0
  80. package/mentionlist/index.es.js +77 -44
  81. package/mentionsection/index.es.js +53 -43
  82. package/menu/index.es.js +65 -51
  83. package/menuitem/index.es.js +39 -37
  84. package/multirow/index.es.js +29 -28
  85. package/multiselect/index.es.js +184 -152
  86. package/no-data-B781skt3.js +4 -0
  87. package/no-data-CAksOnDl.js +4 -0
  88. package/no-data-DCsjBXQR.js +4 -0
  89. package/no-data-Dz0QOe7Q.js +8 -0
  90. package/no-data-_Huxiv9q.js +8 -0
  91. package/no-data-ybRQontJ.js +8 -0
  92. package/overlaypanel/index.es.js +49 -36
  93. package/package.json +1 -1
  94. package/paginator/index.es.js +36 -33
  95. package/plugins/WangsVue.es.js +63 -45
  96. package/plugins/formValidation.es.js +15 -11
  97. package/progressbar/index.es.js +39 -32
  98. package/quickfilter/index.es.js +94 -81
  99. package/stats.html +1 -1
  100. package/style.css +1 -1
  101. package/tabmenu/index.es.js +18 -16
  102. package/textarea/index.es.js +94 -72
  103. package/timeline/index.es.js +124 -102
  104. package/timelinecontentbytype/index.es.js +114 -92
  105. package/toast/index.es.js +67 -54
  106. package/toggleswitch/index.es.js +83 -66
  107. package/tree/index.es.js +306 -198
  108. package/treenode/index.es.js +464 -339
  109. package/treesearchinput/index.es.js +32 -26
  110. package/usergroup/index.es.js +83 -67
  111. package/username/index.es.js +99 -85
  112. package/utils/addAttachment.util.es.js +47 -21
  113. package/utils/baseToast.util.es.js +41 -33
  114. package/utils/convertJsonImage.util.es.js +24 -24
  115. package/utils/date.util.es.js +131 -106
  116. package/utils/exportToExcel.util.es.js +81 -47
  117. package/utils/filterOptions.util.es.js +8 -2
  118. package/utils/genPlaceholder.util.es.js +30 -16
  119. package/utils/getProjectPermission.util.es.js +15 -12
  120. package/utils/getSalesRole.util.es.js +4 -4
  121. package/utils/getUser.util.es.js +2 -2
  122. package/utils/getUserType.util.es.js +13 -8
  123. package/utils/isIntersect.es.js +4 -2
  124. package/utils/mergePropsWithDefaults.util.es.js +7 -6
  125. package/utils/object.util.es.js +88 -54
  126. package/utils/queryParamsStringfy.util.es.js +19 -11
  127. package/utils/role.util.es.js +5 -4
  128. package/utils/statusSeverity.util.es.js +20 -5
  129. package/utils/textFormatter.util.es.js +28 -50
  130. package/utils/toast.util.es.js +8 -5
  131. package/utils/xlsx.util.es.js +12 -6
  132. package/validatormessage/index.es.js +9 -9
  133. package/vendor/@popperjs/core/lib/createPopper.es.js +110 -83
  134. package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +14 -13
  135. package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +33 -18
  136. package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +55 -31
  137. package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +43 -22
  138. package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +4 -4
  139. package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +5 -5
  140. package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +23 -13
  141. package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +4 -4
  142. package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +17 -9
  143. package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +3 -3
  144. package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +11 -7
  145. package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +42 -26
  146. package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +13 -10
  147. package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +13 -7
  148. package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +25 -15
  149. package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +8 -7
  150. package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +8 -6
  151. package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +6 -6
  152. package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +16 -15
  153. package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +4 -4
  154. package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +5 -5
  155. package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +4 -4
  156. package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +17 -11
  157. package/vendor/@popperjs/core/lib/enums.es.js +43 -20
  158. package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +49 -25
  159. package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +61 -26
  160. package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +101 -69
  161. package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +30 -16
  162. package/vendor/@popperjs/core/lib/modifiers/flip.es.js +99 -60
  163. package/vendor/@popperjs/core/lib/modifiers/hide.es.js +44 -31
  164. package/vendor/@popperjs/core/lib/modifiers/offset.es.js +32 -20
  165. package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +11 -11
  166. package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +91 -40
  167. package/vendor/@popperjs/core/lib/popper.es.js +14 -13
  168. package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +29 -21
  169. package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +41 -36
  170. package/vendor/@popperjs/core/lib/utils/debounce.es.js +11 -7
  171. package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +42 -28
  172. package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +5 -4
  173. package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +3 -3
  174. package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +3 -3
  175. package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +2 -2
  176. package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +3 -3
  177. package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +5 -5
  178. package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +5 -5
  179. package/vendor/@popperjs/core/lib/utils/getVariation.es.js +3 -3
  180. package/vendor/@popperjs/core/lib/utils/math.es.js +6 -4
  181. package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +11 -10
  182. package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +4 -4
  183. package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +30 -22
  184. package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +7 -7
  185. package/vendor/@popperjs/core/lib/utils/userAgent.es.js +9 -6
  186. package/vendor/@popperjs/core/lib/utils/within.es.js +8 -8
  187. package/vendor/@tiptap/core/dist/index.es.js +3494 -2000
  188. package/vendor/@tiptap/extension-bold/dist/index.es.js +29 -19
  189. package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +145 -71
  190. package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +32 -19
  191. package/vendor/@tiptap/extension-code/dist/index.es.js +22 -14
  192. package/vendor/@tiptap/extension-document/dist/index.es.js +4 -4
  193. package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +106 -51
  194. package/vendor/@tiptap/extension-heading/dist/index.es.js +38 -22
  195. package/vendor/@tiptap/extension-history/dist/index.es.js +11 -7
  196. package/vendor/@tiptap/extension-image/dist/index.es.js +20 -17
  197. package/vendor/@tiptap/extension-italic/dist/index.es.js +28 -18
  198. package/vendor/@tiptap/extension-link/dist/index.es.js +236 -147
  199. package/vendor/@tiptap/extension-list-item/dist/index.es.js +6 -6
  200. package/vendor/@tiptap/extension-mention/dist/index.es.js +98 -63
  201. package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +38 -25
  202. package/vendor/@tiptap/extension-paragraph/dist/index.es.js +8 -6
  203. package/vendor/@tiptap/extension-placeholder/dist/index.es.js +34 -27
  204. package/vendor/@tiptap/extension-text/dist/index.es.js +3 -3
  205. package/vendor/@tiptap/extension-underline/dist/index.es.js +16 -10
  206. package/vendor/@tiptap/suggestion/dist/index.es.js +174 -90
  207. package/vendor/@tiptap/vue-3/dist/index.es.js +287 -188
  208. package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +17 -14
  209. package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +69 -55
  210. package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +26 -22
  211. package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +147 -102
  212. package/vendor/@wangs-ui/core/components/p-DPHEi31J.es.js +102 -77
  213. package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +1298 -551
  214. package/vendor/@wangs-ui/core/components/p-Duri5p90.es.js +60 -49
  215. package/vendor/@wangs-ui/core/components/wangs-button.es.js +19 -15
  216. package/vendor/@wangs-ui/core/components/wangs-icon.es.js +3 -3
  217. package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +3 -3
  218. package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +3 -3
  219. package/vendor/@wangs-ui/core/dist/esm/index-DCkh3cGv.es.js +116 -102
  220. package/vendor/@wangs-ui/vue/dist/index.es.js +77 -77
  221. package/vendor/base64toblob/base64toblob.es.js +31 -15
  222. package/vendor/highlight.js/es/core.es.js +5 -5
  223. package/vendor/highlight.js/es/languages/javascript.es.js +237 -193
  224. package/vendor/highlight.js/es/languages/json.es.js +18 -15
  225. package/vendor/highlight.js/es/languages/typescript.es.js +288 -228
  226. package/vendor/highlight.js/es/languages/vbscript-html.es.js +2 -2
  227. package/vendor/highlight.js/lib/core.es.js +1144 -666
  228. package/vendor/linkifyjs/dist/linkify.es.es.js +858 -405
  229. package/vendor/lodash/_Symbol.es.js +11 -8
  230. package/vendor/lodash/_baseGetTag.es.js +19 -12
  231. package/vendor/lodash/_baseTrim.es.js +13 -10
  232. package/vendor/lodash/_freeGlobal.es.js +10 -8
  233. package/vendor/lodash/_getRawTag.es.js +28 -15
  234. package/vendor/lodash/_objectToString.es.js +12 -9
  235. package/vendor/lodash/_root.es.js +12 -8
  236. package/vendor/lodash/_trimmedEndIndex.es.js +14 -11
  237. package/vendor/lodash/debounce.es.js +92 -54
  238. package/vendor/lodash/isObject.es.js +11 -9
  239. package/vendor/lodash/isObjectLike.es.js +10 -8
  240. package/vendor/lodash/isSymbol.es.js +14 -11
  241. package/vendor/lodash/now.es.js +12 -9
  242. package/vendor/lodash/throttle.es.js +25 -17
  243. package/vendor/lodash/toNumber.es.js +33 -23
  244. package/vendor/lodash-es/_DataView.es.js +4 -4
  245. package/vendor/lodash-es/_Hash.es.js +17 -16
  246. package/vendor/lodash-es/_ListCache.es.js +17 -16
  247. package/vendor/lodash-es/_Map.es.js +4 -4
  248. package/vendor/lodash-es/_MapCache.es.js +17 -16
  249. package/vendor/lodash-es/_Promise.es.js +4 -4
  250. package/vendor/lodash-es/_Set.es.js +4 -4
  251. package/vendor/lodash-es/_SetCache.es.js +12 -10
  252. package/vendor/lodash-es/_Stack.es.js +15 -15
  253. package/vendor/lodash-es/_Symbol.es.js +3 -3
  254. package/vendor/lodash-es/_Uint8Array.es.js +3 -3
  255. package/vendor/lodash-es/_WeakMap.es.js +4 -4
  256. package/vendor/lodash-es/_arrayEach.es.js +9 -5
  257. package/vendor/lodash-es/_arrayFilter.es.js +9 -6
  258. package/vendor/lodash-es/_arrayLikeKeys.es.js +21 -17
  259. package/vendor/lodash-es/_arrayPush.es.js +7 -5
  260. package/vendor/lodash-es/_arraySome.es.js +9 -6
  261. package/vendor/lodash-es/_assignValue.es.js +10 -7
  262. package/vendor/lodash-es/_assocIndexOf.es.js +9 -6
  263. package/vendor/lodash-es/_baseAssignValue.es.js +13 -9
  264. package/vendor/lodash-es/_baseClone.es.js +67 -49
  265. package/vendor/lodash-es/_baseCreate.es.js +15 -11
  266. package/vendor/lodash-es/_baseGetAllKeys.es.js +6 -6
  267. package/vendor/lodash-es/_baseGetTag.es.js +11 -7
  268. package/vendor/lodash-es/_baseIsArguments.es.js +6 -6
  269. package/vendor/lodash-es/_baseIsEqual.es.js +11 -5
  270. package/vendor/lodash-es/_baseIsEqualDeep.es.js +39 -26
  271. package/vendor/lodash-es/_baseIsMap.es.js +6 -6
  272. package/vendor/lodash-es/_baseIsNative.es.js +18 -12
  273. package/vendor/lodash-es/_baseIsSet.es.js +6 -6
  274. package/vendor/lodash-es/_baseIsTypedArray.es.js +11 -9
  275. package/vendor/lodash-es/_baseKeys.es.js +16 -11
  276. package/vendor/lodash-es/_baseTimes.es.js +7 -5
  277. package/vendor/lodash-es/_baseTrim.es.js +5 -5
  278. package/vendor/lodash-es/_baseUnary.es.js +4 -4
  279. package/vendor/lodash-es/_cacheHas.es.js +3 -3
  280. package/vendor/lodash-es/_cloneArrayBuffer.es.js +6 -5
  281. package/vendor/lodash-es/_cloneBuffer.es.js +11 -6
  282. package/vendor/lodash-es/_cloneDataView.es.js +5 -5
  283. package/vendor/lodash-es/_cloneRegExp.es.js +6 -5
  284. package/vendor/lodash-es/_cloneSymbol.es.js +5 -5
  285. package/vendor/lodash-es/_cloneTypedArray.es.js +5 -5
  286. package/vendor/lodash-es/_coreJsData.es.js +3 -3
  287. package/vendor/lodash-es/_defineProperty.es.js +7 -6
  288. package/vendor/lodash-es/_equalArrays.es.js +38 -28
  289. package/vendor/lodash-es/_equalByTag.es.js +55 -41
  290. package/vendor/lodash-es/_equalObjects.es.js +42 -28
  291. package/vendor/lodash-es/_freeGlobal.es.js +2 -2
  292. package/vendor/lodash-es/_getAllKeys.es.js +6 -6
  293. package/vendor/lodash-es/_getMapData.es.js +5 -5
  294. package/vendor/lodash-es/_getNative.es.js +6 -6
  295. package/vendor/lodash-es/_getPrototype.es.js +3 -3
  296. package/vendor/lodash-es/_getRawTag.es.js +20 -10
  297. package/vendor/lodash-es/_getSymbols.es.js +15 -8
  298. package/vendor/lodash-es/_getTag.es.js +31 -25
  299. package/vendor/lodash-es/_getValue.es.js +3 -3
  300. package/vendor/lodash-es/_hashClear.es.js +5 -4
  301. package/vendor/lodash-es/_hashDelete.es.js +5 -4
  302. package/vendor/lodash-es/_hashGet.es.js +11 -9
  303. package/vendor/lodash-es/_hashHas.es.js +7 -6
  304. package/vendor/lodash-es/_hashSet.es.js +8 -6
  305. package/vendor/lodash-es/_initCloneArray.es.js +10 -5
  306. package/vendor/lodash-es/_initCloneByTag.es.js +39 -38
  307. package/vendor/lodash-es/_initCloneObject.es.js +6 -6
  308. package/vendor/lodash-es/_isIndex.es.js +7 -5
  309. package/vendor/lodash-es/_isKeyable.es.js +4 -4
  310. package/vendor/lodash-es/_isMasked.es.js +7 -7
  311. package/vendor/lodash-es/_isPrototype.es.js +5 -5
  312. package/vendor/lodash-es/_listCacheClear.es.js +4 -3
  313. package/vendor/lodash-es/_listCacheDelete.es.js +17 -9
  314. package/vendor/lodash-es/_listCacheGet.es.js +5 -5
  315. package/vendor/lodash-es/_listCacheHas.es.js +4 -4
  316. package/vendor/lodash-es/_listCacheSet.es.js +11 -5
  317. package/vendor/lodash-es/_mapCacheClear.es.js +10 -9
  318. package/vendor/lodash-es/_mapCacheDelete.es.js +6 -5
  319. package/vendor/lodash-es/_mapCacheGet.es.js +4 -4
  320. package/vendor/lodash-es/_mapCacheHas.es.js +4 -4
  321. package/vendor/lodash-es/_mapCacheSet.es.js +7 -5
  322. package/vendor/lodash-es/_mapToArray.es.js +7 -6
  323. package/vendor/lodash-es/_nativeCreate.es.js +3 -3
  324. package/vendor/lodash-es/_nativeKeys.es.js +3 -3
  325. package/vendor/lodash-es/_nodeUtil.es.js +13 -6
  326. package/vendor/lodash-es/_objectToString.es.js +5 -4
  327. package/vendor/lodash-es/_overArg.es.js +4 -4
  328. package/vendor/lodash-es/_root.es.js +4 -3
  329. package/vendor/lodash-es/_setCacheAdd.es.js +5 -4
  330. package/vendor/lodash-es/_setCacheHas.es.js +3 -3
  331. package/vendor/lodash-es/_setToArray.es.js +7 -6
  332. package/vendor/lodash-es/_stackClear.es.js +5 -4
  333. package/vendor/lodash-es/_stackDelete.es.js +5 -4
  334. package/vendor/lodash-es/_stackGet.es.js +3 -3
  335. package/vendor/lodash-es/_stackHas.es.js +3 -3
  336. package/vendor/lodash-es/_stackSet.es.js +18 -13
  337. package/vendor/lodash-es/_toSource.es.js +9 -8
  338. package/vendor/lodash-es/_trimmedEndIndex.es.js +7 -6
  339. package/vendor/lodash-es/cloneDeep.es.js +5 -5
  340. package/vendor/lodash-es/debounce.es.js +84 -49
  341. package/vendor/lodash-es/eq.es.js +3 -3
  342. package/vendor/lodash-es/isArguments.es.js +9 -6
  343. package/vendor/lodash-es/isArray.es.js +2 -2
  344. package/vendor/lodash-es/isArrayLike.es.js +5 -5
  345. package/vendor/lodash-es/isBuffer.es.js +9 -4
  346. package/vendor/lodash-es/isEqual.es.js +4 -4
  347. package/vendor/lodash-es/isFunction.es.js +10 -9
  348. package/vendor/lodash-es/isLength.es.js +4 -4
  349. package/vendor/lodash-es/isMap.es.js +6 -5
  350. package/vendor/lodash-es/isObject.es.js +4 -4
  351. package/vendor/lodash-es/isObjectLike.es.js +3 -3
  352. package/vendor/lodash-es/isSet.es.js +6 -5
  353. package/vendor/lodash-es/isSymbol.es.js +6 -6
  354. package/vendor/lodash-es/isTypedArray.es.js +6 -5
  355. package/vendor/lodash-es/keys.es.js +6 -6
  356. package/vendor/lodash-es/now.es.js +4 -4
  357. package/vendor/lodash-es/stubArray.es.js +2 -2
  358. package/vendor/lodash-es/stubFalse.es.js +3 -3
  359. package/vendor/lodash-es/toNumber.es.js +25 -18
  360. package/vendor/lodash-es/toString.es.js +2 -2
  361. package/vendor/lodash-es/uniqueId.es.js +6 -6
  362. package/vendor/orderedmap/dist/index.es.js +65 -49
  363. package/vendor/primevue/api/api.esm.es.js +214 -121
  364. package/vendor/primevue/avatar/avatar.esm.es.js +44 -41
  365. package/vendor/primevue/avatar/style/avatarstyle.esm.es.js +12 -11
  366. package/vendor/primevue/avatargroup/avatargroup.esm.es.js +17 -16
  367. package/vendor/primevue/avatargroup/style/avatargroupstyle.esm.es.js +6 -5
  368. package/vendor/primevue/badge/badge.esm.es.js +21 -20
  369. package/vendor/primevue/badge/style/badgestyle.esm.es.js +19 -18
  370. package/vendor/primevue/base/style/basestyle.esm.es.js +88 -99
  371. package/vendor/primevue/basecomponent/basecomponent.esm.es.js +327 -261
  372. package/vendor/primevue/basedirective/basedirective.esm.es.js +257 -186
  373. package/vendor/primevue/baseicon/baseicon.esm.es.js +55 -49
  374. package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +5 -35
  375. package/vendor/primevue/button/button.esm.es.js +76 -72
  376. package/vendor/primevue/button/style/buttonstyle.esm.es.js +46 -39
  377. package/vendor/primevue/card/card.esm.es.js +30 -29
  378. package/vendor/primevue/card/style/cardstyle.esm.es.js +6 -5
  379. package/vendor/primevue/checkbox/checkbox.esm.es.js +109 -101
  380. package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +12 -11
  381. package/vendor/primevue/config/config.esm.es.js +76 -58
  382. package/vendor/primevue/dialog/dialog.esm.es.js +421 -281
  383. package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +26 -22
  384. package/vendor/primevue/dropdown/dropdown.esm.es.js +956 -742
  385. package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +33 -31
  386. package/vendor/primevue/fileupload/fileupload.esm.es.js +559 -450
  387. package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +14 -13
  388. package/vendor/primevue/focustrap/focustrap.esm.es.js +128 -90
  389. package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +2 -2
  390. package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +13 -11
  391. package/vendor/primevue/icons/angledoubleright/index.esm.es.js +13 -11
  392. package/vendor/primevue/icons/angledown/index.esm.es.js +13 -11
  393. package/vendor/primevue/icons/angleleft/index.esm.es.js +13 -11
  394. package/vendor/primevue/icons/angleright/index.esm.es.js +13 -11
  395. package/vendor/primevue/icons/angleup/index.esm.es.js +13 -11
  396. package/vendor/primevue/icons/blank/index.esm.es.js +13 -11
  397. package/vendor/primevue/icons/check/index.esm.es.js +13 -11
  398. package/vendor/primevue/icons/chevrondown/index.esm.es.js +13 -11
  399. package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +17 -13
  400. package/vendor/primevue/icons/eye/index.esm.es.js +13 -11
  401. package/vendor/primevue/icons/eyeslash/index.esm.es.js +13 -11
  402. package/vendor/primevue/icons/infocircle/index.esm.es.js +13 -11
  403. package/vendor/primevue/icons/plus/index.esm.es.js +13 -11
  404. package/vendor/primevue/icons/refresh/index.esm.es.js +13 -11
  405. package/vendor/primevue/icons/search/index.esm.es.js +13 -11
  406. package/vendor/primevue/icons/searchminus/index.esm.es.js +13 -11
  407. package/vendor/primevue/icons/searchplus/index.esm.es.js +13 -11
  408. package/vendor/primevue/icons/spinner/index.esm.es.js +13 -11
  409. package/vendor/primevue/icons/times/index.esm.es.js +13 -11
  410. package/vendor/primevue/icons/timescircle/index.esm.es.js +13 -11
  411. package/vendor/primevue/icons/undo/index.esm.es.js +13 -11
  412. package/vendor/primevue/icons/upload/index.esm.es.js +13 -11
  413. package/vendor/primevue/icons/windowmaximize/index.esm.es.js +13 -11
  414. package/vendor/primevue/icons/windowminimize/index.esm.es.js +13 -11
  415. package/vendor/primevue/image/image.esm.es.js +280 -235
  416. package/vendor/primevue/image/style/imagestyle.esm.es.js +18 -17
  417. package/vendor/primevue/inputgroup/inputgroup.esm.es.js +17 -16
  418. package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +6 -5
  419. package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +17 -16
  420. package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +6 -5
  421. package/vendor/primevue/inputnumber/inputnumber.esm.es.js +834 -566
  422. package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +23 -22
  423. package/vendor/primevue/inputtext/inputtext.esm.es.js +32 -30
  424. package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +13 -12
  425. package/vendor/primevue/menu/menu.esm.es.js +402 -304
  426. package/vendor/primevue/menu/style/menustyle.esm.es.js +14 -13
  427. package/vendor/primevue/message/message.esm.es.js +126 -112
  428. package/vendor/primevue/message/style/messagestyle.esm.es.js +9 -8
  429. package/vendor/primevue/multiselect/multiselect.esm.es.js +1083 -835
  430. package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +38 -36
  431. package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +3 -3
  432. package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +275 -169
  433. package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +9 -8
  434. package/vendor/primevue/paginator/paginator.esm.es.js +513 -469
  435. package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +50 -43
  436. package/vendor/primevue/password/password.esm.es.js +306 -233
  437. package/vendor/primevue/password/style/passwordstyle.esm.es.js +26 -24
  438. package/vendor/primevue/portal/portal.esm.es.js +17 -17
  439. package/vendor/primevue/progressbar/progressbar.esm.es.js +37 -35
  440. package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +10 -9
  441. package/vendor/primevue/ripple/ripple.esm.es.js +90 -62
  442. package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +6 -5
  443. package/vendor/primevue/selectbutton/selectbutton.esm.es.js +213 -167
  444. package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +14 -13
  445. package/vendor/primevue/skeleton/skeleton.esm.es.js +28 -26
  446. package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +13 -11
  447. package/vendor/primevue/textarea/style/textareastyle.esm.es.js +12 -11
  448. package/vendor/primevue/textarea/textarea.esm.es.js +49 -33
  449. package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +9 -8
  450. package/vendor/primevue/timeline/timeline.esm.es.js +53 -52
  451. package/vendor/primevue/toast/style/toaststyle.esm.es.js +54 -46
  452. package/vendor/primevue/toast/toast.esm.es.js +309 -260
  453. package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +3 -3
  454. package/vendor/primevue/toastservice/toastservice.esm.es.js +16 -15
  455. package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +6 -5
  456. package/vendor/primevue/tooltip/tooltip.esm.es.js +383 -186
  457. package/vendor/primevue/usestyle/usestyle.esm.es.js +94 -64
  458. package/vendor/primevue/usetoast/usetoast.esm.es.js +9 -8
  459. package/vendor/primevue/utils/utils.esm.es.js +1078 -772
  460. package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +5 -67
  461. package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +655 -428
  462. package/vendor/prosemirror-commands/dist/index.es.js +454 -316
  463. package/vendor/prosemirror-history/dist/index.es.js +286 -178
  464. package/vendor/prosemirror-keymap/dist/index.es.js +68 -48
  465. package/vendor/prosemirror-model/dist/index.es.js +1905 -1436
  466. package/vendor/prosemirror-schema-list/dist/index.es.js +115 -73
  467. package/vendor/prosemirror-state/dist/index.es.js +467 -353
  468. package/vendor/prosemirror-transform/dist/index.es.js +1146 -829
  469. package/vendor/prosemirror-view/dist/index.es.js +4127 -2719
  470. package/vendor/rope-sequence/dist/index.es.js +165 -82
  471. package/vendor/simplebar-core/dist/index.es.js +670 -242
  472. package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +73 -60
  473. package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +511 -510
  474. package/vendor/tippy.js/dist/tippy.esm.es.js +971 -525
  475. package/vendor/vee-validate/dist/vee-validate.esm.es.js +1830 -1097
  476. package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +740 -738
  477. package/vendor/w3c-keyname/index.es.js +25 -13
  478. package/wangsvue.es.js +167 -208
  479. package/wangsvue.esm.browser.js +67705 -0
  480. package/wangsvue.system.js +67600 -234
  481. package/api/index.es.js +0 -149
  482. package/apiitem/index.es.js +0 -611
  483. package/assignmember/index.es.js +0 -434
  484. package/attachment/index.es.js +0 -118
  485. package/attachmentchangelog/index.es.js +0 -79
  486. package/attachmentitem/index.es.js +0 -231
  487. package/attachmentthumbnail/index.es.js +0 -83
  488. package/changelog/index.d.ts +0 -164
  489. package/changelog/index.es.js +0 -85
  490. package/changelogfilter/index.es.js +0 -113
  491. package/changelogpage/index.d.ts +0 -184
  492. package/changelogpage/index.es.js +0 -176
  493. package/checklist/index.es.js +0 -571
  494. package/checklistchangelog/index.es.js +0 -85
  495. package/comment/index.d.ts +0 -187
  496. package/comment/index.es.js +0 -267
  497. package/commentblock/index.es.js +0 -337
  498. package/confirmdeploy/index.es.js +0 -64
  499. package/dependencycol/index.es.js +0 -32
  500. package/description/index.es.js +0 -135
  501. package/descriptiontab/index.es.js +0 -30
  502. package/detailmember/index.d.ts +0 -77
  503. package/detailmember/index.es.js +0 -32
  504. package/detailmemberadmin/index.es.js +0 -210
  505. package/detailmemberleader/index.es.js +0 -164
  506. package/detailmemberlog/index.es.js +0 -117
  507. package/detailsprint/index.d.ts +0 -86
  508. package/detailsprint/index.es.js +0 -414
  509. package/dialogaddattachment/index.es.js +0 -273
  510. package/dialogaddchecklist/index.es.js +0 -120
  511. package/dialogaddeditapi/index.es.js +0 -87
  512. package/dialogaddpbi/index.es.js +0 -197
  513. package/dialogadjustmenttask/index.es.js +0 -484
  514. package/dialogadjustmenttaskheader/index.es.js +0 -193
  515. package/dialogapichangelog/index.es.js +0 -83
  516. package/dialogassignmember/index.es.js +0 -171
  517. package/dialogconfirmapproval/index.es.js +0 -54
  518. package/dialogconfirmchecklist/index.es.js +0 -189
  519. package/dialogconfirmdeletetask/index.es.js +0 -70
  520. package/dialogconfirmdeletetaskpermanently/index.es.js +0 -50
  521. package/dialogconfirmedit/index.es.js +0 -50
  522. package/dialogconfirmfinishtask/index.es.js +0 -50
  523. package/dialogconfirmrestoretask/index.es.js +0 -46
  524. package/dialogconfirmsprint/index.es.js +0 -42
  525. package/dialogcopyapi/index.es.js +0 -130
  526. package/dialogcustomdependency/index.es.js +0 -55
  527. package/dialogdetailchecklisttemplate/index.es.js +0 -214
  528. package/dialogdetailcomponent/index.es.js +0 -121
  529. package/dialogdetailpbi/index.es.js +0 -192
  530. package/dialogfinishreview/index.es.js +0 -126
  531. package/dialogimprovementtask/index.es.js +0 -191
  532. package/dialogmemberadmin/index.es.js +0 -93
  533. package/dialogpreparepbi/index.es.js +0 -93
  534. package/dialogpriorityvalue/index.es.js +0 -85
  535. package/dialogreportbug/index.es.js +0 -207
  536. package/dialogreviewleader/index.es.js +0 -280
  537. package/dialogsavechecklisttemplate/index.es.js +0 -127
  538. package/dialogselectproject/index.es.js +0 -69
  539. package/dialogsetduration/index.es.js +0 -109
  540. package/dialogsettasklink/index.es.js +0 -153
  541. package/dialogtestapi/index.es.js +0 -389
  542. package/eventlogtab/index.es.js +0 -50
  543. package/infotasktab/index.es.js +0 -186
  544. package/inputadditional/index.es.js +0 -62
  545. package/inputinitialname/index.d.ts +0 -118
  546. package/inputinitialname/index.es.js +0 -95
  547. package/inputrepositoryname/index.d.ts +0 -86
  548. package/inputrepositoryname/index.es.js +0 -41
  549. package/isrequiredtext/index.es.js +0 -16
  550. package/legend/index.es.js +0 -727
  551. package/legendlist/index.es.js +0 -33
  552. package/loading-page-BrQattYE.js +0 -1
  553. package/loading-page-CgfbWppy.js +0 -1
  554. package/loading-page-DbLuqCHa.js +0 -1
  555. package/loading-plane-CgfbWppy.js +0 -1
  556. package/loading-table-Bdr9ZhtP.js +0 -1
  557. package/loading-table-BzrSQlA0.js +0 -1
  558. package/loading-table-chOgXi94.js +0 -1
  559. package/no-data-Cgze_Rvp.js +0 -1
  560. package/no-data-Dep79CBh.js +0 -1
  561. package/no-data-y1X5WtcQ.js +0 -1
  562. package/notificationitem/index.d.ts +0 -107
  563. package/notificationitem/index.es.js +0 -333
  564. package/reviewitem/index.es.js +0 -65
  565. package/reviewtab/index.es.js +0 -44
  566. package/services/calendar.service.es.js +0 -32
  567. package/sonarqubesummary/index.es.js +0 -234
  568. package/sprintsummary/index.es.js +0 -73
  569. package/summaryaccordion/index.d.ts +0 -121
  570. package/summaryaccordion/index.es.js +0 -365
  571. package/taskdependency/index.es.js +0 -686
  572. package/taskdetail/index.d.ts +0 -82
  573. package/taskdetail/index.es.js +0 -491
  574. package/taskdetailpbi/index.d.ts +0 -35
  575. package/taskdetailpbi/index.es.js +0 -172
  576. package/taskdetailunassignedpbi/index.es.js +0 -261
  577. package/tasklink/index.es.js +0 -257
  578. package/tasklinkchangelog/index.es.js +0 -93
  579. package/tasklist/index.es.js +0 -92
  580. package/taskmore/index.es.js +0 -52
  581. package/taskstatusbadge/index.es.js +0 -18
  582. package/tasktable/index.d.ts +0 -87
  583. package/tasktable/index.es.js +0 -832
  584. package/ticket/index.es.js +0 -151
  585. package/tooltipspan/index.es.js +0 -30
  586. package/utils/updateSprintStatus.util.es.js +0 -17
  587. package/valueformdatainput/index.es.js +0 -70
  588. package/workcalendar/index.es.js +0 -351
@@ -1,21 +1,21 @@
1
- import { a as X } from "../api/api.esm.es.js";
2
- import { s as Y } from "../icons/blank/index.esm.es.js";
3
- import { s as $ } from "../icons/check/index.esm.es.js";
4
- import { s as _ } from "../icons/chevrondown/index.esm.es.js";
5
- import { s as ee } from "../icons/search/index.esm.es.js";
6
- import { s as te } from "../icons/spinner/index.esm.es.js";
7
- import { s as ie } from "../icons/times/index.esm.es.js";
8
- import { O as ne } from "../overlayeventbus/overlayeventbus.esm.es.js";
9
- import { s as re } from "../portal/portal.esm.es.js";
10
- import { R as se } from "../ripple/ripple.esm.es.js";
11
- import { O as d, D as a, C as le, Z as T, U as R } from "../utils/utils.esm.es.js";
12
- import { s as oe } from "../virtualscroller/virtualscroller.esm.es.js";
13
- import { s as ae } from "../basecomponent/basecomponent.esm.es.js";
14
- import { D as ue } from "./style/dropdownstyle.esm.es.js";
15
- import { resolveComponent as L, resolveDirective as de, createElementBlock as c, openBlock as o, mergeProps as l, renderSlot as h, createCommentVNode as v, createElementVNode as y, createVNode as P, createTextVNode as A, toDisplayString as O, normalizeClass as K, createBlock as I, resolveDynamicComponent as B, withCtx as x, Transition as ce, createSlots as pe, Fragment as H, renderList as fe, withDirectives as he } from "vue";
16
- var ye = {
1
+ import { a as FilterService } from "../api/api.esm.es.js";
2
+ import { s as script$2 } from "../icons/blank/index.esm.es.js";
3
+ import { s as script$3 } from "../icons/check/index.esm.es.js";
4
+ import { s as script$6 } from "../icons/chevrondown/index.esm.es.js";
5
+ import { s as script$4 } from "../icons/search/index.esm.es.js";
6
+ import { s as script$5 } from "../icons/spinner/index.esm.es.js";
7
+ import { s as script$7 } from "../icons/times/index.esm.es.js";
8
+ import { O as OverlayEventBus } from "../overlayeventbus/overlayeventbus.esm.es.js";
9
+ import { s as script$8 } from "../portal/portal.esm.es.js";
10
+ import { R as Ripple } from "../ripple/ripple.esm.es.js";
11
+ import { O as ObjectUtils, D as DomHandler, C as ConnectedOverlayScrollHandler, Z as ZIndexUtils, U as UniqueComponentId } from "../utils/utils.esm.es.js";
12
+ import { s as script$9 } from "../virtualscroller/virtualscroller.esm.es.js";
13
+ import { s as script$a } from "../basecomponent/basecomponent.esm.es.js";
14
+ import { D as DropdownStyle } from "./style/dropdownstyle.esm.es.js";
15
+ import { resolveComponent, resolveDirective, createElementBlock, openBlock, mergeProps, renderSlot, createCommentVNode, createElementVNode, createVNode, createTextVNode, toDisplayString, normalizeClass, createBlock, resolveDynamicComponent, withCtx, Transition, createSlots, Fragment, renderList, withDirectives } from "vue";
16
+ var script$1 = {
17
17
  name: "BaseDropdown",
18
- extends: ae,
18
+ "extends": script$a,
19
19
  props: {
20
20
  modelValue: null,
21
21
  options: Array,
@@ -26,253 +26,258 @@ var ye = {
26
26
  optionGroupChildren: [String, Function],
27
27
  scrollHeight: {
28
28
  type: String,
29
- default: "200px"
29
+ "default": "200px"
30
30
  },
31
31
  filter: Boolean,
32
32
  filterPlaceholder: String,
33
33
  filterLocale: String,
34
34
  filterMatchMode: {
35
35
  type: String,
36
- default: "contains"
36
+ "default": "contains"
37
37
  },
38
38
  filterFields: {
39
39
  type: Array,
40
- default: null
40
+ "default": null
41
41
  },
42
42
  editable: Boolean,
43
43
  placeholder: {
44
44
  type: String,
45
- default: null
45
+ "default": null
46
46
  },
47
47
  variant: {
48
48
  type: String,
49
- default: null
49
+ "default": null
50
50
  },
51
51
  invalid: {
52
52
  type: Boolean,
53
- default: !1
53
+ "default": false
54
54
  },
55
55
  disabled: {
56
56
  type: Boolean,
57
- default: !1
57
+ "default": false
58
58
  },
59
59
  dataKey: null,
60
60
  showClear: {
61
61
  type: Boolean,
62
- default: !1
62
+ "default": false
63
63
  },
64
64
  inputId: {
65
65
  type: String,
66
- default: null
66
+ "default": null
67
67
  },
68
68
  inputClass: {
69
69
  type: [String, Object],
70
- default: null
70
+ "default": null
71
71
  },
72
72
  inputStyle: {
73
73
  type: Object,
74
- default: null
74
+ "default": null
75
75
  },
76
76
  inputProps: {
77
77
  type: null,
78
- default: null
78
+ "default": null
79
79
  },
80
80
  panelClass: {
81
81
  type: [String, Object],
82
- default: null
82
+ "default": null
83
83
  },
84
84
  panelStyle: {
85
85
  type: Object,
86
- default: null
86
+ "default": null
87
87
  },
88
88
  panelProps: {
89
89
  type: null,
90
- default: null
90
+ "default": null
91
91
  },
92
92
  filterInputProps: {
93
93
  type: null,
94
- default: null
94
+ "default": null
95
95
  },
96
96
  clearIconProps: {
97
97
  type: null,
98
- default: null
98
+ "default": null
99
99
  },
100
100
  appendTo: {
101
101
  type: [String, Object],
102
- default: "body"
102
+ "default": "body"
103
103
  },
104
104
  loading: {
105
105
  type: Boolean,
106
- default: !1
106
+ "default": false
107
107
  },
108
108
  clearIcon: {
109
109
  type: String,
110
- default: void 0
110
+ "default": void 0
111
111
  },
112
112
  dropdownIcon: {
113
113
  type: String,
114
- default: void 0
114
+ "default": void 0
115
115
  },
116
116
  filterIcon: {
117
117
  type: String,
118
- default: void 0
118
+ "default": void 0
119
119
  },
120
120
  loadingIcon: {
121
121
  type: String,
122
- default: void 0
122
+ "default": void 0
123
123
  },
124
124
  resetFilterOnHide: {
125
125
  type: Boolean,
126
- default: !1
126
+ "default": false
127
127
  },
128
128
  resetFilterOnClear: {
129
129
  type: Boolean,
130
- default: !1
130
+ "default": false
131
131
  },
132
132
  virtualScrollerOptions: {
133
133
  type: Object,
134
- default: null
134
+ "default": null
135
135
  },
136
136
  autoOptionFocus: {
137
137
  type: Boolean,
138
- default: !1
138
+ "default": false
139
139
  },
140
140
  autoFilterFocus: {
141
141
  type: Boolean,
142
- default: !1
142
+ "default": false
143
143
  },
144
144
  selectOnFocus: {
145
145
  type: Boolean,
146
- default: !1
146
+ "default": false
147
147
  },
148
148
  focusOnHover: {
149
149
  type: Boolean,
150
- default: !0
150
+ "default": true
151
151
  },
152
152
  highlightOnSelect: {
153
153
  type: Boolean,
154
- default: !0
154
+ "default": true
155
155
  },
156
156
  checkmark: {
157
157
  type: Boolean,
158
- default: !1
158
+ "default": false
159
159
  },
160
160
  filterMessage: {
161
161
  type: String,
162
- default: null
162
+ "default": null
163
163
  },
164
164
  selectionMessage: {
165
165
  type: String,
166
- default: null
166
+ "default": null
167
167
  },
168
168
  emptySelectionMessage: {
169
169
  type: String,
170
- default: null
170
+ "default": null
171
171
  },
172
172
  emptyFilterMessage: {
173
173
  type: String,
174
- default: null
174
+ "default": null
175
175
  },
176
176
  emptyMessage: {
177
177
  type: String,
178
- default: null
178
+ "default": null
179
179
  },
180
180
  tabindex: {
181
181
  type: Number,
182
- default: 0
182
+ "default": 0
183
183
  },
184
184
  ariaLabel: {
185
185
  type: String,
186
- default: null
186
+ "default": null
187
187
  },
188
188
  ariaLabelledby: {
189
189
  type: String,
190
- default: null
190
+ "default": null
191
191
  }
192
192
  },
193
- style: ue,
194
- provide: function() {
193
+ style: DropdownStyle,
194
+ provide: function provide() {
195
195
  return {
196
196
  $parentInstance: this
197
197
  };
198
198
  }
199
199
  };
200
- function w(t) {
200
+ function _typeof$1(o) {
201
201
  "@babel/helpers - typeof";
202
- return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
203
- return typeof e;
204
- } : function(e) {
205
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
206
- }, w(t);
202
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
203
+ return typeof o2;
204
+ } : function(o2) {
205
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
206
+ }, _typeof$1(o);
207
207
  }
208
- function be(t) {
209
- return ve(t) || Oe(t) || ge(t) || me();
208
+ function _toConsumableArray(arr) {
209
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
210
210
  }
211
- function me() {
212
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
213
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
211
+ function _nonIterableSpread() {
212
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
214
213
  }
215
- function ge(t, e) {
216
- if (t) {
217
- if (typeof t == "string") return j(t, e);
218
- var i = Object.prototype.toString.call(t).slice(8, -1);
219
- if (i === "Object" && t.constructor && (i = t.constructor.name), i === "Map" || i === "Set") return Array.from(t);
220
- if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return j(t, e);
221
- }
214
+ function _unsupportedIterableToArray(o, minLen) {
215
+ if (!o) return;
216
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
217
+ var n = Object.prototype.toString.call(o).slice(8, -1);
218
+ if (n === "Object" && o.constructor) n = o.constructor.name;
219
+ if (n === "Map" || n === "Set") return Array.from(o);
220
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
222
221
  }
223
- function Oe(t) {
224
- if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
222
+ function _iterableToArray(iter) {
223
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
225
224
  }
226
- function ve(t) {
227
- if (Array.isArray(t)) return j(t);
225
+ function _arrayWithoutHoles(arr) {
226
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
228
227
  }
229
- function j(t, e) {
230
- (e == null || e > t.length) && (e = t.length);
231
- for (var i = 0, r = new Array(e); i < e; i++) r[i] = t[i];
232
- return r;
228
+ function _arrayLikeToArray(arr, len) {
229
+ if (len == null || len > arr.length) len = arr.length;
230
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
231
+ return arr2;
233
232
  }
234
- function G(t, e) {
235
- var i = Object.keys(t);
233
+ function ownKeys$1(e, r) {
234
+ var t = Object.keys(e);
236
235
  if (Object.getOwnPropertySymbols) {
237
- var r = Object.getOwnPropertySymbols(t);
238
- e && (r = r.filter(function(s) {
239
- return Object.getOwnPropertyDescriptor(t, s).enumerable;
240
- })), i.push.apply(i, r);
236
+ var o = Object.getOwnPropertySymbols(e);
237
+ r && (o = o.filter(function(r2) {
238
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
239
+ })), t.push.apply(t, o);
241
240
  }
242
- return i;
241
+ return t;
243
242
  }
244
- function U(t) {
245
- for (var e = 1; e < arguments.length; e++) {
246
- var i = arguments[e] != null ? arguments[e] : {};
247
- e % 2 ? G(Object(i), !0).forEach(function(r) {
248
- N(t, r, i[r]);
249
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : G(Object(i)).forEach(function(r) {
250
- Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(i, r));
243
+ function _objectSpread$1(e) {
244
+ for (var r = 1; r < arguments.length; r++) {
245
+ var t = null != arguments[r] ? arguments[r] : {};
246
+ r % 2 ? ownKeys$1(Object(t), true).forEach(function(r2) {
247
+ _defineProperty$1(e, r2, t[r2]);
248
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r2) {
249
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
251
250
  });
252
251
  }
253
- return t;
252
+ return e;
254
253
  }
255
- function N(t, e, i) {
256
- return e = Ie(e), e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
254
+ function _defineProperty$1(obj, key, value) {
255
+ key = _toPropertyKey$1(key);
256
+ if (key in obj) {
257
+ Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
258
+ } else {
259
+ obj[key] = value;
260
+ }
261
+ return obj;
257
262
  }
258
- function Ie(t) {
259
- var e = Se(t, "string");
260
- return w(e) == "symbol" ? e : String(e);
263
+ function _toPropertyKey$1(t) {
264
+ var i = _toPrimitive$1(t, "string");
265
+ return "symbol" == _typeof$1(i) ? i : String(i);
261
266
  }
262
- function Se(t, e) {
263
- if (w(t) != "object" || !t) return t;
264
- var i = t[Symbol.toPrimitive];
265
- if (i !== void 0) {
266
- var r = i.call(t, e);
267
- if (w(r) != "object") return r;
267
+ function _toPrimitive$1(t, r) {
268
+ if ("object" != _typeof$1(t) || !t) return t;
269
+ var e = t[Symbol.toPrimitive];
270
+ if (void 0 !== e) {
271
+ var i = e.call(t, r);
272
+ if ("object" != _typeof$1(i)) return i;
268
273
  throw new TypeError("@@toPrimitive must return a primitive value.");
269
274
  }
270
- return (e === "string" ? String : Number)(t);
275
+ return ("string" === r ? String : Number)(t);
271
276
  }
272
- var Le = {
277
+ var script = {
273
278
  name: "Dropdown",
274
- extends: ye,
275
- inheritAttrs: !1,
279
+ "extends": script$1,
280
+ inheritAttrs: false,
276
281
  emits: ["update:modelValue", "change", "focus", "blur", "before-show", "before-hide", "show", "hide", "filter"],
277
282
  outsideClickListener: null,
278
283
  scrollHandler: null,
@@ -283,947 +288,1156 @@ var Le = {
283
288
  virtualScroller: null,
284
289
  searchTimeout: null,
285
290
  searchValue: null,
286
- isModelValueChanged: !1,
287
- data: function() {
291
+ isModelValueChanged: false,
292
+ data: function data() {
288
293
  return {
289
294
  id: this.$attrs.id,
290
- clicked: !1,
291
- focused: !1,
295
+ clicked: false,
296
+ focused: false,
292
297
  focusedOptionIndex: -1,
293
298
  filterValue: null,
294
- overlayVisible: !1
299
+ overlayVisible: false
295
300
  };
296
301
  },
297
302
  watch: {
298
- "$attrs.id": function(e) {
299
- this.id = e || R();
303
+ "$attrs.id": function $attrsId(newValue) {
304
+ this.id = newValue || UniqueComponentId();
300
305
  },
301
- modelValue: function() {
302
- this.isModelValueChanged = !0;
306
+ modelValue: function modelValue() {
307
+ this.isModelValueChanged = true;
303
308
  },
304
- options: function() {
309
+ options: function options() {
305
310
  this.autoUpdateModel();
306
311
  }
307
312
  },
308
- mounted: function() {
309
- this.id = this.id || R(), this.autoUpdateModel(), this.bindLabelClickListener();
313
+ mounted: function mounted() {
314
+ this.id = this.id || UniqueComponentId();
315
+ this.autoUpdateModel();
316
+ this.bindLabelClickListener();
310
317
  },
311
- updated: function() {
312
- this.overlayVisible && this.isModelValueChanged && this.scrollInView(this.findSelectedOptionIndex()), this.isModelValueChanged = !1;
318
+ updated: function updated() {
319
+ if (this.overlayVisible && this.isModelValueChanged) {
320
+ this.scrollInView(this.findSelectedOptionIndex());
321
+ }
322
+ this.isModelValueChanged = false;
313
323
  },
314
- beforeUnmount: function() {
315
- this.unbindOutsideClickListener(), this.unbindResizeListener(), this.unbindLabelClickListener(), this.scrollHandler && (this.scrollHandler.destroy(), this.scrollHandler = null), this.overlay && (T.clear(this.overlay), this.overlay = null);
324
+ beforeUnmount: function beforeUnmount() {
325
+ this.unbindOutsideClickListener();
326
+ this.unbindResizeListener();
327
+ this.unbindLabelClickListener();
328
+ if (this.scrollHandler) {
329
+ this.scrollHandler.destroy();
330
+ this.scrollHandler = null;
331
+ }
332
+ if (this.overlay) {
333
+ ZIndexUtils.clear(this.overlay);
334
+ this.overlay = null;
335
+ }
316
336
  },
317
337
  methods: {
318
- getOptionIndex: function(e, i) {
319
- return this.virtualScrollerDisabled ? e : i && i(e).index;
338
+ getOptionIndex: function getOptionIndex(index, fn) {
339
+ return this.virtualScrollerDisabled ? index : fn && fn(index)["index"];
320
340
  },
321
- getOptionLabel: function(e) {
322
- return this.optionLabel ? d.resolveFieldData(e, this.optionLabel) : e;
341
+ getOptionLabel: function getOptionLabel(option) {
342
+ return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
323
343
  },
324
- getOptionValue: function(e) {
325
- return this.optionValue ? d.resolveFieldData(e, this.optionValue) : e;
344
+ getOptionValue: function getOptionValue(option) {
345
+ return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;
326
346
  },
327
- getOptionRenderKey: function(e, i) {
328
- return (this.dataKey ? d.resolveFieldData(e, this.dataKey) : this.getOptionLabel(e)) + "_" + i;
347
+ getOptionRenderKey: function getOptionRenderKey(option, index) {
348
+ return (this.dataKey ? ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option)) + "_" + index;
329
349
  },
330
- getPTItemOptions: function(e, i, r, s) {
331
- return this.ptm(s, {
350
+ getPTItemOptions: function getPTItemOptions(option, itemOptions, index, key) {
351
+ return this.ptm(key, {
332
352
  context: {
333
- option: e,
334
- index: r,
335
- selected: this.isSelected(e),
336
- focused: this.focusedOptionIndex === this.getOptionIndex(r, i),
337
- disabled: this.isOptionDisabled(e)
353
+ option,
354
+ index,
355
+ selected: this.isSelected(option),
356
+ focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
357
+ disabled: this.isOptionDisabled(option)
338
358
  }
339
359
  });
340
360
  },
341
- isOptionDisabled: function(e) {
342
- return this.optionDisabled ? d.resolveFieldData(e, this.optionDisabled) : !1;
343
- },
344
- isOptionGroup: function(e) {
345
- return this.optionGroupLabel && e.optionGroup && e.group;
346
- },
347
- getOptionGroupLabel: function(e) {
348
- return d.resolveFieldData(e, this.optionGroupLabel);
349
- },
350
- getOptionGroupChildren: function(e) {
351
- return d.resolveFieldData(e, this.optionGroupChildren);
352
- },
353
- getAriaPosInset: function(e) {
354
- var i = this;
355
- return (this.optionGroupLabel ? e - this.visibleOptions.slice(0, e).filter(function(r) {
356
- return i.isOptionGroup(r);
357
- }).length : e) + 1;
358
- },
359
- show: function(e) {
360
- this.$emit("before-show"), this.overlayVisible = !0, this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex(), e && a.focus(this.$refs.focusInput);
361
- },
362
- hide: function(e) {
363
- var i = this, r = function() {
364
- i.$emit("before-hide"), i.overlayVisible = !1, i.clicked = !1, i.focusedOptionIndex = -1, i.searchValue = "", i.resetFilterOnHide && (i.filterValue = null), e && a.focus(i.$refs.focusInput);
361
+ isOptionDisabled: function isOptionDisabled(option) {
362
+ return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
363
+ },
364
+ isOptionGroup: function isOptionGroup(option) {
365
+ return this.optionGroupLabel && option.optionGroup && option.group;
366
+ },
367
+ getOptionGroupLabel: function getOptionGroupLabel(optionGroup) {
368
+ return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
369
+ },
370
+ getOptionGroupChildren: function getOptionGroupChildren(optionGroup) {
371
+ return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
372
+ },
373
+ getAriaPosInset: function getAriaPosInset(index) {
374
+ var _this = this;
375
+ return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter(function(option) {
376
+ return _this.isOptionGroup(option);
377
+ }).length : index) + 1;
378
+ },
379
+ show: function show(isFocus) {
380
+ this.$emit("before-show");
381
+ this.overlayVisible = true;
382
+ this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex();
383
+ isFocus && DomHandler.focus(this.$refs.focusInput);
384
+ },
385
+ hide: function hide(isFocus) {
386
+ var _this2 = this;
387
+ var _hide = function _hide2() {
388
+ _this2.$emit("before-hide");
389
+ _this2.overlayVisible = false;
390
+ _this2.clicked = false;
391
+ _this2.focusedOptionIndex = -1;
392
+ _this2.searchValue = "";
393
+ _this2.resetFilterOnHide && (_this2.filterValue = null);
394
+ isFocus && DomHandler.focus(_this2.$refs.focusInput);
365
395
  };
366
396
  setTimeout(function() {
367
- r();
397
+ _hide();
368
398
  }, 0);
369
399
  },
370
- onFocus: function(e) {
371
- this.disabled || (this.focused = !0, this.overlayVisible && (this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex(), this.scrollInView(this.focusedOptionIndex)), this.$emit("focus", e));
400
+ onFocus: function onFocus(event) {
401
+ if (this.disabled) {
402
+ return;
403
+ }
404
+ this.focused = true;
405
+ if (this.overlayVisible) {
406
+ this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex();
407
+ this.scrollInView(this.focusedOptionIndex);
408
+ }
409
+ this.$emit("focus", event);
372
410
  },
373
- onBlur: function(e) {
374
- this.focused = !1, this.focusedOptionIndex = -1, this.searchValue = "", this.$emit("blur", e);
411
+ onBlur: function onBlur(event) {
412
+ this.focused = false;
413
+ this.focusedOptionIndex = -1;
414
+ this.searchValue = "";
415
+ this.$emit("blur", event);
375
416
  },
376
- onKeyDown: function(e) {
377
- if (this.disabled || a.isAndroid()) {
378
- e.preventDefault();
417
+ onKeyDown: function onKeyDown(event) {
418
+ if (this.disabled || DomHandler.isAndroid()) {
419
+ event.preventDefault();
379
420
  return;
380
421
  }
381
- var i = e.metaKey || e.ctrlKey;
382
- switch (e.code) {
422
+ var metaKey = event.metaKey || event.ctrlKey;
423
+ switch (event.code) {
383
424
  case "ArrowDown":
384
- this.onArrowDownKey(e);
425
+ this.onArrowDownKey(event);
385
426
  break;
386
427
  case "ArrowUp":
387
- this.onArrowUpKey(e, this.editable);
428
+ this.onArrowUpKey(event, this.editable);
388
429
  break;
389
430
  case "ArrowLeft":
390
431
  case "ArrowRight":
391
- this.onArrowLeftKey(e, this.editable);
432
+ this.onArrowLeftKey(event, this.editable);
392
433
  break;
393
434
  case "Home":
394
- this.onHomeKey(e, this.editable);
435
+ this.onHomeKey(event, this.editable);
395
436
  break;
396
437
  case "End":
397
- this.onEndKey(e, this.editable);
438
+ this.onEndKey(event, this.editable);
398
439
  break;
399
440
  case "PageDown":
400
- this.onPageDownKey(e);
441
+ this.onPageDownKey(event);
401
442
  break;
402
443
  case "PageUp":
403
- this.onPageUpKey(e);
444
+ this.onPageUpKey(event);
404
445
  break;
405
446
  case "Space":
406
- this.onSpaceKey(e, this.editable);
447
+ this.onSpaceKey(event, this.editable);
407
448
  break;
408
449
  case "Enter":
409
450
  case "NumpadEnter":
410
- this.onEnterKey(e);
451
+ this.onEnterKey(event);
411
452
  break;
412
453
  case "Escape":
413
- this.onEscapeKey(e);
454
+ this.onEscapeKey(event);
414
455
  break;
415
456
  case "Tab":
416
- this.onTabKey(e);
457
+ this.onTabKey(event);
417
458
  break;
418
459
  case "Backspace":
419
- this.onBackspaceKey(e, this.editable);
460
+ this.onBackspaceKey(event, this.editable);
420
461
  break;
421
462
  case "ShiftLeft":
422
463
  case "ShiftRight":
423
464
  break;
424
465
  default:
425
- !i && d.isPrintableCharacter(e.key) && (!this.overlayVisible && this.show(), !this.editable && this.searchOptions(e, e.key));
466
+ if (!metaKey && ObjectUtils.isPrintableCharacter(event.key)) {
467
+ !this.overlayVisible && this.show();
468
+ !this.editable && this.searchOptions(event, event.key);
469
+ }
426
470
  break;
427
471
  }
428
- this.clicked = !1;
472
+ this.clicked = false;
429
473
  },
430
- onEditableInput: function(e) {
431
- var i = e.target.value;
474
+ onEditableInput: function onEditableInput(event) {
475
+ var value = event.target.value;
432
476
  this.searchValue = "";
433
- var r = this.searchOptions(e, i);
434
- !r && (this.focusedOptionIndex = -1), this.updateModel(e, i), !this.overlayVisible && d.isNotEmpty(i) && this.show();
477
+ var matched = this.searchOptions(event, value);
478
+ !matched && (this.focusedOptionIndex = -1);
479
+ this.updateModel(event, value);
480
+ !this.overlayVisible && ObjectUtils.isNotEmpty(value) && this.show();
435
481
  },
436
- onContainerClick: function(e) {
437
- this.disabled || this.loading || e.target.tagName === "INPUT" || e.target.getAttribute("data-pc-section") === "clearicon" || 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);
482
+ onContainerClick: function onContainerClick(event) {
483
+ if (this.disabled || this.loading) {
484
+ return;
485
+ }
486
+ if (event.target.tagName === "INPUT" || event.target.getAttribute("data-pc-section") === "clearicon" || event.target.closest('[data-pc-section="clearicon"]')) {
487
+ return;
488
+ } else if (!this.overlay || !this.overlay.contains(event.target)) {
489
+ this.overlayVisible ? this.hide(true) : this.show(true);
490
+ }
491
+ this.clicked = true;
438
492
  },
439
- onClearClick: function(e) {
440
- this.updateModel(e, null), this.resetFilterOnClear && (this.filterValue = null);
493
+ onClearClick: function onClearClick(event) {
494
+ this.updateModel(event, null);
495
+ this.resetFilterOnClear && (this.filterValue = null);
441
496
  },
442
- onFirstHiddenFocus: function(e) {
443
- var i = e.relatedTarget === this.$refs.focusInput ? a.getFirstFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
444
- a.focus(i);
497
+ onFirstHiddenFocus: function onFirstHiddenFocus(event) {
498
+ var focusableEl = event.relatedTarget === this.$refs.focusInput ? DomHandler.getFirstFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
499
+ DomHandler.focus(focusableEl);
445
500
  },
446
- onLastHiddenFocus: function(e) {
447
- var i = e.relatedTarget === this.$refs.focusInput ? a.getLastFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
448
- a.focus(i);
501
+ onLastHiddenFocus: function onLastHiddenFocus(event) {
502
+ var focusableEl = event.relatedTarget === this.$refs.focusInput ? DomHandler.getLastFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
503
+ DomHandler.focus(focusableEl);
449
504
  },
450
- onOptionSelect: function(e, i) {
451
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, s = this.getOptionValue(i);
452
- this.updateModel(e, s), r && this.hide(!0);
505
+ onOptionSelect: function onOptionSelect(event, option) {
506
+ var isHide = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
507
+ var value = this.getOptionValue(option);
508
+ this.updateModel(event, value);
509
+ isHide && this.hide(true);
453
510
  },
454
- onOptionMouseMove: function(e, i) {
455
- this.focusOnHover && this.changeFocusedOptionIndex(e, i);
511
+ onOptionMouseMove: function onOptionMouseMove(event, index) {
512
+ if (this.focusOnHover) {
513
+ this.changeFocusedOptionIndex(event, index);
514
+ }
456
515
  },
457
- onFilterChange: function(e) {
458
- var i = e.target.value;
459
- this.filterValue = i, this.focusedOptionIndex = -1, this.$emit("filter", {
460
- originalEvent: e,
461
- value: i
462
- }), !this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
516
+ onFilterChange: function onFilterChange(event) {
517
+ var value = event.target.value;
518
+ this.filterValue = value;
519
+ this.focusedOptionIndex = -1;
520
+ this.$emit("filter", {
521
+ originalEvent: event,
522
+ value
523
+ });
524
+ !this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
463
525
  },
464
- onFilterKeyDown: function(e) {
465
- switch (e.code) {
526
+ onFilterKeyDown: function onFilterKeyDown(event) {
527
+ switch (event.code) {
466
528
  case "ArrowDown":
467
- this.onArrowDownKey(e);
529
+ this.onArrowDownKey(event);
468
530
  break;
469
531
  case "ArrowUp":
470
- this.onArrowUpKey(e, !0);
532
+ this.onArrowUpKey(event, true);
471
533
  break;
472
534
  case "ArrowLeft":
473
535
  case "ArrowRight":
474
- this.onArrowLeftKey(e, !0);
536
+ this.onArrowLeftKey(event, true);
475
537
  break;
476
538
  case "Home":
477
- this.onHomeKey(e, !0);
539
+ this.onHomeKey(event, true);
478
540
  break;
479
541
  case "End":
480
- this.onEndKey(e, !0);
542
+ this.onEndKey(event, true);
481
543
  break;
482
544
  case "Enter":
483
545
  case "NumpadEnter":
484
- this.onEnterKey(e);
546
+ this.onEnterKey(event);
485
547
  break;
486
548
  case "Escape":
487
- this.onEscapeKey(e);
549
+ this.onEscapeKey(event);
488
550
  break;
489
551
  case "Tab":
490
- this.onTabKey(e, !0);
552
+ this.onTabKey(event, true);
491
553
  break;
492
554
  }
493
555
  },
494
- onFilterBlur: function() {
556
+ onFilterBlur: function onFilterBlur() {
495
557
  this.focusedOptionIndex = -1;
496
558
  },
497
- onFilterUpdated: function() {
498
- this.overlayVisible && this.alignOverlay();
559
+ onFilterUpdated: function onFilterUpdated() {
560
+ if (this.overlayVisible) {
561
+ this.alignOverlay();
562
+ }
499
563
  },
500
- onOverlayClick: function(e) {
501
- ne.emit("overlay-click", {
502
- originalEvent: e,
564
+ onOverlayClick: function onOverlayClick(event) {
565
+ OverlayEventBus.emit("overlay-click", {
566
+ originalEvent: event,
503
567
  target: this.$el
504
568
  });
505
569
  },
506
- onOverlayKeyDown: function(e) {
507
- switch (e.code) {
570
+ onOverlayKeyDown: function onOverlayKeyDown(event) {
571
+ switch (event.code) {
508
572
  case "Escape":
509
- this.onEscapeKey(e);
573
+ this.onEscapeKey(event);
510
574
  break;
511
575
  }
512
576
  },
513
- onArrowDownKey: function(e) {
514
- if (!this.overlayVisible)
515
- this.show(), this.editable && this.changeFocusedOptionIndex(e, this.findSelectedOptionIndex());
516
- else {
517
- var i = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();
518
- this.changeFocusedOptionIndex(e, i);
519
- }
520
- e.preventDefault();
521
- },
522
- onArrowUpKey: function(e) {
523
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
524
- if (e.altKey && !i)
525
- this.focusedOptionIndex !== -1 && this.onOptionSelect(e, this.visibleOptions[this.focusedOptionIndex]), this.overlayVisible && this.hide(), e.preventDefault();
526
- else {
527
- var r = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();
528
- this.changeFocusedOptionIndex(e, r), !this.overlayVisible && this.show(), e.preventDefault();
577
+ onArrowDownKey: function onArrowDownKey(event) {
578
+ if (!this.overlayVisible) {
579
+ this.show();
580
+ this.editable && this.changeFocusedOptionIndex(event, this.findSelectedOptionIndex());
581
+ } else {
582
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();
583
+ this.changeFocusedOptionIndex(event, optionIndex);
529
584
  }
585
+ event.preventDefault();
530
586
  },
531
- onArrowLeftKey: function(e) {
532
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
533
- i && (this.focusedOptionIndex = -1);
534
- },
535
- onHomeKey: function(e) {
536
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
537
- if (i) {
538
- var r = e.currentTarget;
539
- e.shiftKey ? r.setSelectionRange(0, e.target.selectionStart) : (r.setSelectionRange(0, 0), this.focusedOptionIndex = -1);
540
- } else
541
- this.changeFocusedOptionIndex(e, this.findFirstOptionIndex()), !this.overlayVisible && this.show();
542
- e.preventDefault();
543
- },
544
- onEndKey: function(e) {
545
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
546
- if (i) {
547
- var r = e.currentTarget;
548
- if (e.shiftKey)
549
- r.setSelectionRange(e.target.selectionStart, r.value.length);
550
- else {
551
- var s = r.value.length;
552
- r.setSelectionRange(s, s), this.focusedOptionIndex = -1;
587
+ onArrowUpKey: function onArrowUpKey(event) {
588
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
589
+ if (event.altKey && !pressedInInputText) {
590
+ if (this.focusedOptionIndex !== -1) {
591
+ this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
553
592
  }
554
- } else
555
- this.changeFocusedOptionIndex(e, this.findLastOptionIndex()), !this.overlayVisible && this.show();
556
- e.preventDefault();
557
- },
558
- onPageUpKey: function(e) {
559
- this.scrollInView(0), e.preventDefault();
560
- },
561
- onPageDownKey: function(e) {
562
- this.scrollInView(this.visibleOptions.length - 1), e.preventDefault();
563
- },
564
- onEnterKey: function(e) {
565
- this.overlayVisible ? (this.focusedOptionIndex !== -1 && this.onOptionSelect(e, this.visibleOptions[this.focusedOptionIndex]), this.hide()) : (this.focusedOptionIndex = -1, this.onArrowDownKey(e)), e.preventDefault();
566
- },
567
- onSpaceKey: function(e) {
568
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
569
- !i && this.onEnterKey(e);
570
- },
571
- onEscapeKey: function(e) {
572
- this.overlayVisible && this.hide(!0), e.preventDefault(), e.stopPropagation();
593
+ this.overlayVisible && this.hide();
594
+ event.preventDefault();
595
+ } else {
596
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();
597
+ this.changeFocusedOptionIndex(event, optionIndex);
598
+ !this.overlayVisible && this.show();
599
+ event.preventDefault();
600
+ }
573
601
  },
574
- onTabKey: function(e) {
575
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
576
- i || (this.overlayVisible && this.hasFocusableElements() ? (a.focus(this.$refs.firstHiddenFocusableElementOnOverlay), e.preventDefault()) : (this.focusedOptionIndex !== -1 && this.onOptionSelect(e, this.visibleOptions[this.focusedOptionIndex]), this.overlayVisible && this.hide(this.filter)));
602
+ onArrowLeftKey: function onArrowLeftKey(event) {
603
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
604
+ pressedInInputText && (this.focusedOptionIndex = -1);
605
+ },
606
+ onHomeKey: function onHomeKey(event) {
607
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
608
+ if (pressedInInputText) {
609
+ var target = event.currentTarget;
610
+ if (event.shiftKey) {
611
+ target.setSelectionRange(0, event.target.selectionStart);
612
+ } else {
613
+ target.setSelectionRange(0, 0);
614
+ this.focusedOptionIndex = -1;
615
+ }
616
+ } else {
617
+ this.changeFocusedOptionIndex(event, this.findFirstOptionIndex());
618
+ !this.overlayVisible && this.show();
619
+ }
620
+ event.preventDefault();
621
+ },
622
+ onEndKey: function onEndKey(event) {
623
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
624
+ if (pressedInInputText) {
625
+ var target = event.currentTarget;
626
+ if (event.shiftKey) {
627
+ target.setSelectionRange(event.target.selectionStart, target.value.length);
628
+ } else {
629
+ var len = target.value.length;
630
+ target.setSelectionRange(len, len);
631
+ this.focusedOptionIndex = -1;
632
+ }
633
+ } else {
634
+ this.changeFocusedOptionIndex(event, this.findLastOptionIndex());
635
+ !this.overlayVisible && this.show();
636
+ }
637
+ event.preventDefault();
638
+ },
639
+ onPageUpKey: function onPageUpKey(event) {
640
+ this.scrollInView(0);
641
+ event.preventDefault();
642
+ },
643
+ onPageDownKey: function onPageDownKey(event) {
644
+ this.scrollInView(this.visibleOptions.length - 1);
645
+ event.preventDefault();
646
+ },
647
+ onEnterKey: function onEnterKey(event) {
648
+ if (!this.overlayVisible) {
649
+ this.focusedOptionIndex = -1;
650
+ this.onArrowDownKey(event);
651
+ } else {
652
+ if (this.focusedOptionIndex !== -1) {
653
+ this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
654
+ }
655
+ this.hide();
656
+ }
657
+ event.preventDefault();
658
+ },
659
+ onSpaceKey: function onSpaceKey(event) {
660
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
661
+ !pressedInInputText && this.onEnterKey(event);
662
+ },
663
+ onEscapeKey: function onEscapeKey(event) {
664
+ this.overlayVisible && this.hide(true);
665
+ event.preventDefault();
666
+ event.stopPropagation();
667
+ },
668
+ onTabKey: function onTabKey(event) {
669
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
670
+ if (!pressedInInputText) {
671
+ if (this.overlayVisible && this.hasFocusableElements()) {
672
+ DomHandler.focus(this.$refs.firstHiddenFocusableElementOnOverlay);
673
+ event.preventDefault();
674
+ } else {
675
+ if (this.focusedOptionIndex !== -1) {
676
+ this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
677
+ }
678
+ this.overlayVisible && this.hide(this.filter);
679
+ }
680
+ }
577
681
  },
578
- onBackspaceKey: function(e) {
579
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
580
- i && !this.overlayVisible && this.show();
682
+ onBackspaceKey: function onBackspaceKey(event) {
683
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
684
+ if (pressedInInputText) {
685
+ !this.overlayVisible && this.show();
686
+ }
581
687
  },
582
- onOverlayEnter: function(e) {
583
- T.set("overlay", e, this.$primevue.config.zIndex.overlay), a.addStyles(e, {
688
+ onOverlayEnter: function onOverlayEnter(el) {
689
+ ZIndexUtils.set("overlay", el, this.$primevue.config.zIndex.overlay);
690
+ DomHandler.addStyles(el, {
584
691
  position: "absolute",
585
692
  top: "0",
586
693
  left: "0"
587
- }), this.alignOverlay(), this.scrollInView(), this.autoFilterFocus && a.focus(this.$refs.filterInput);
588
- },
589
- onOverlayAfterEnter: function() {
590
- this.bindOutsideClickListener(), this.bindScrollListener(), this.bindResizeListener(), this.$emit("show");
591
- },
592
- onOverlayLeave: function() {
593
- this.unbindOutsideClickListener(), this.unbindScrollListener(), this.unbindResizeListener(), this.$emit("hide"), this.overlay = null;
594
- },
595
- onOverlayAfterLeave: function(e) {
596
- T.clear(e);
597
- },
598
- alignOverlay: function() {
599
- this.appendTo === "self" ? a.relativePosition(this.overlay, this.$el) : (this.overlay.style.minWidth = a.getOuterWidth(this.$el) + "px", a.absolutePosition(this.overlay, this.$el));
694
+ });
695
+ this.alignOverlay();
696
+ this.scrollInView();
697
+ this.autoFilterFocus && DomHandler.focus(this.$refs.filterInput);
698
+ },
699
+ onOverlayAfterEnter: function onOverlayAfterEnter() {
700
+ this.bindOutsideClickListener();
701
+ this.bindScrollListener();
702
+ this.bindResizeListener();
703
+ this.$emit("show");
704
+ },
705
+ onOverlayLeave: function onOverlayLeave() {
706
+ this.unbindOutsideClickListener();
707
+ this.unbindScrollListener();
708
+ this.unbindResizeListener();
709
+ this.$emit("hide");
710
+ this.overlay = null;
711
+ },
712
+ onOverlayAfterLeave: function onOverlayAfterLeave(el) {
713
+ ZIndexUtils.clear(el);
714
+ },
715
+ alignOverlay: function alignOverlay() {
716
+ if (this.appendTo === "self") {
717
+ DomHandler.relativePosition(this.overlay, this.$el);
718
+ } else {
719
+ this.overlay.style.minWidth = DomHandler.getOuterWidth(this.$el) + "px";
720
+ DomHandler.absolutePosition(this.overlay, this.$el);
721
+ }
600
722
  },
601
- bindOutsideClickListener: function() {
602
- var e = this;
603
- this.outsideClickListener || (this.outsideClickListener = function(i) {
604
- e.overlayVisible && e.overlay && !e.$el.contains(i.target) && !e.overlay.contains(i.target) && e.hide();
605
- }, document.addEventListener("click", this.outsideClickListener));
723
+ bindOutsideClickListener: function bindOutsideClickListener() {
724
+ var _this3 = this;
725
+ if (!this.outsideClickListener) {
726
+ this.outsideClickListener = function(event) {
727
+ if (_this3.overlayVisible && _this3.overlay && !_this3.$el.contains(event.target) && !_this3.overlay.contains(event.target)) {
728
+ _this3.hide();
729
+ }
730
+ };
731
+ document.addEventListener("click", this.outsideClickListener);
732
+ }
606
733
  },
607
- unbindOutsideClickListener: function() {
608
- this.outsideClickListener && (document.removeEventListener("click", this.outsideClickListener), this.outsideClickListener = null);
734
+ unbindOutsideClickListener: function unbindOutsideClickListener() {
735
+ if (this.outsideClickListener) {
736
+ document.removeEventListener("click", this.outsideClickListener);
737
+ this.outsideClickListener = null;
738
+ }
609
739
  },
610
- bindScrollListener: function() {
611
- var e = this;
612
- this.scrollHandler || (this.scrollHandler = new le(this.$refs.container, function() {
613
- e.overlayVisible && e.hide();
614
- })), this.scrollHandler.bindScrollListener();
740
+ bindScrollListener: function bindScrollListener() {
741
+ var _this4 = this;
742
+ if (!this.scrollHandler) {
743
+ this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function() {
744
+ if (_this4.overlayVisible) {
745
+ _this4.hide();
746
+ }
747
+ });
748
+ }
749
+ this.scrollHandler.bindScrollListener();
615
750
  },
616
- unbindScrollListener: function() {
617
- this.scrollHandler && this.scrollHandler.unbindScrollListener();
751
+ unbindScrollListener: function unbindScrollListener() {
752
+ if (this.scrollHandler) {
753
+ this.scrollHandler.unbindScrollListener();
754
+ }
618
755
  },
619
- bindResizeListener: function() {
620
- var e = this;
621
- this.resizeListener || (this.resizeListener = function() {
622
- e.overlayVisible && !a.isTouchDevice() && e.hide();
623
- }, window.addEventListener("resize", this.resizeListener));
756
+ bindResizeListener: function bindResizeListener() {
757
+ var _this5 = this;
758
+ if (!this.resizeListener) {
759
+ this.resizeListener = function() {
760
+ if (_this5.overlayVisible && !DomHandler.isTouchDevice()) {
761
+ _this5.hide();
762
+ }
763
+ };
764
+ window.addEventListener("resize", this.resizeListener);
765
+ }
624
766
  },
625
- unbindResizeListener: function() {
626
- this.resizeListener && (window.removeEventListener("resize", this.resizeListener), this.resizeListener = null);
767
+ unbindResizeListener: function unbindResizeListener() {
768
+ if (this.resizeListener) {
769
+ window.removeEventListener("resize", this.resizeListener);
770
+ this.resizeListener = null;
771
+ }
627
772
  },
628
- bindLabelClickListener: function() {
629
- var e = this;
773
+ bindLabelClickListener: function bindLabelClickListener() {
774
+ var _this6 = this;
630
775
  if (!this.editable && !this.labelClickListener) {
631
- var i = document.querySelector('label[for="'.concat(this.inputId, '"]'));
632
- i && a.isVisible(i) && (this.labelClickListener = function() {
633
- a.focus(e.$refs.focusInput);
634
- }, i.addEventListener("click", this.labelClickListener));
776
+ var label2 = document.querySelector('label[for="'.concat(this.inputId, '"]'));
777
+ if (label2 && DomHandler.isVisible(label2)) {
778
+ this.labelClickListener = function() {
779
+ DomHandler.focus(_this6.$refs.focusInput);
780
+ };
781
+ label2.addEventListener("click", this.labelClickListener);
782
+ }
635
783
  }
636
784
  },
637
- unbindLabelClickListener: function() {
785
+ unbindLabelClickListener: function unbindLabelClickListener() {
638
786
  if (this.labelClickListener) {
639
- var e = document.querySelector('label[for="'.concat(this.inputId, '"]'));
640
- e && a.isVisible(e) && e.removeEventListener("click", this.labelClickListener);
787
+ var label2 = document.querySelector('label[for="'.concat(this.inputId, '"]'));
788
+ if (label2 && DomHandler.isVisible(label2)) {
789
+ label2.removeEventListener("click", this.labelClickListener);
790
+ }
641
791
  }
642
792
  },
643
- hasFocusableElements: function() {
644
- return a.getFocusableElements(this.overlay, ':not([data-p-hidden-focusable="true"])').length > 0;
793
+ hasFocusableElements: function hasFocusableElements() {
794
+ return DomHandler.getFocusableElements(this.overlay, ':not([data-p-hidden-focusable="true"])').length > 0;
645
795
  },
646
- isOptionMatched: function(e) {
647
- var i;
648
- return this.isValidOption(e) && ((i = this.getOptionLabel(e)) === null || i === void 0 ? void 0 : i.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)));
796
+ isOptionMatched: function isOptionMatched(option) {
797
+ var _this$getOptionLabel;
798
+ return this.isValidOption(option) && ((_this$getOptionLabel = this.getOptionLabel(option)) === null || _this$getOptionLabel === void 0 ? void 0 : _this$getOptionLabel.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)));
649
799
  },
650
- isValidOption: function(e) {
651
- return d.isNotEmpty(e) && !(this.isOptionDisabled(e) || this.isOptionGroup(e));
800
+ isValidOption: function isValidOption(option) {
801
+ return ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
652
802
  },
653
- isValidSelectedOption: function(e) {
654
- return this.isValidOption(e) && this.isSelected(e);
803
+ isValidSelectedOption: function isValidSelectedOption(option) {
804
+ return this.isValidOption(option) && this.isSelected(option);
655
805
  },
656
- isSelected: function(e) {
657
- return this.isValidOption(e) && d.equals(this.modelValue, this.getOptionValue(e), this.equalityKey);
806
+ isSelected: function isSelected(option) {
807
+ return this.isValidOption(option) && ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
658
808
  },
659
- findFirstOptionIndex: function() {
660
- var e = this;
661
- return this.visibleOptions.findIndex(function(i) {
662
- return e.isValidOption(i);
809
+ findFirstOptionIndex: function findFirstOptionIndex() {
810
+ var _this7 = this;
811
+ return this.visibleOptions.findIndex(function(option) {
812
+ return _this7.isValidOption(option);
663
813
  });
664
814
  },
665
- findLastOptionIndex: function() {
666
- var e = this;
667
- return d.findLastIndex(this.visibleOptions, function(i) {
668
- return e.isValidOption(i);
815
+ findLastOptionIndex: function findLastOptionIndex() {
816
+ var _this8 = this;
817
+ return ObjectUtils.findLastIndex(this.visibleOptions, function(option) {
818
+ return _this8.isValidOption(option);
669
819
  });
670
820
  },
671
- findNextOptionIndex: function(e) {
672
- var i = this, r = e < this.visibleOptions.length - 1 ? this.visibleOptions.slice(e + 1).findIndex(function(s) {
673
- return i.isValidOption(s);
821
+ findNextOptionIndex: function findNextOptionIndex(index) {
822
+ var _this9 = this;
823
+ var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function(option) {
824
+ return _this9.isValidOption(option);
674
825
  }) : -1;
675
- return r > -1 ? r + e + 1 : e;
826
+ return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
676
827
  },
677
- findPrevOptionIndex: function(e) {
678
- var i = this, r = e > 0 ? d.findLastIndex(this.visibleOptions.slice(0, e), function(s) {
679
- return i.isValidOption(s);
828
+ findPrevOptionIndex: function findPrevOptionIndex(index) {
829
+ var _this10 = this;
830
+ var matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function(option) {
831
+ return _this10.isValidOption(option);
680
832
  }) : -1;
681
- return r > -1 ? r : e;
833
+ return matchedOptionIndex > -1 ? matchedOptionIndex : index;
682
834
  },
683
- findSelectedOptionIndex: function() {
684
- var e = this;
685
- return this.hasSelectedOption ? this.visibleOptions.findIndex(function(i) {
686
- return e.isValidSelectedOption(i);
835
+ findSelectedOptionIndex: function findSelectedOptionIndex() {
836
+ var _this11 = this;
837
+ return this.hasSelectedOption ? this.visibleOptions.findIndex(function(option) {
838
+ return _this11.isValidSelectedOption(option);
687
839
  }) : -1;
688
840
  },
689
- findFirstFocusedOptionIndex: function() {
690
- var e = this.findSelectedOptionIndex();
691
- return e < 0 ? this.findFirstOptionIndex() : e;
692
- },
693
- findLastFocusedOptionIndex: function() {
694
- var e = this.findSelectedOptionIndex();
695
- return e < 0 ? this.findLastOptionIndex() : e;
696
- },
697
- searchOptions: function(e, i) {
698
- var r = this;
699
- this.searchValue = (this.searchValue || "") + i;
700
- var s = -1, n = !1;
701
- return d.isNotEmpty(this.searchValue) && (this.focusedOptionIndex !== -1 ? (s = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(p) {
702
- return r.isOptionMatched(p);
703
- }), s = s === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function(p) {
704
- return r.isOptionMatched(p);
705
- }) : s + this.focusedOptionIndex) : s = this.visibleOptions.findIndex(function(p) {
706
- return r.isOptionMatched(p);
707
- }), s !== -1 && (n = !0), s === -1 && this.focusedOptionIndex === -1 && (s = this.findFirstFocusedOptionIndex()), s !== -1 && this.changeFocusedOptionIndex(e, s)), this.searchTimeout && clearTimeout(this.searchTimeout), this.searchTimeout = setTimeout(function() {
708
- r.searchValue = "", r.searchTimeout = null;
709
- }, 500), n;
710
- },
711
- changeFocusedOptionIndex: function(e, i) {
712
- this.focusedOptionIndex !== i && (this.focusedOptionIndex = i, this.scrollInView(), this.selectOnFocus && this.onOptionSelect(e, this.visibleOptions[i], !1));
713
- },
714
- scrollInView: function() {
715
- var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
841
+ findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
842
+ var selectedIndex = this.findSelectedOptionIndex();
843
+ return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
844
+ },
845
+ findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
846
+ var selectedIndex = this.findSelectedOptionIndex();
847
+ return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
848
+ },
849
+ searchOptions: function searchOptions(event, _char) {
850
+ var _this12 = this;
851
+ this.searchValue = (this.searchValue || "") + _char;
852
+ var optionIndex = -1;
853
+ var matched = false;
854
+ if (ObjectUtils.isNotEmpty(this.searchValue)) {
855
+ if (this.focusedOptionIndex !== -1) {
856
+ optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(option) {
857
+ return _this12.isOptionMatched(option);
858
+ });
859
+ optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function(option) {
860
+ return _this12.isOptionMatched(option);
861
+ }) : optionIndex + this.focusedOptionIndex;
862
+ } else {
863
+ optionIndex = this.visibleOptions.findIndex(function(option) {
864
+ return _this12.isOptionMatched(option);
865
+ });
866
+ }
867
+ if (optionIndex !== -1) {
868
+ matched = true;
869
+ }
870
+ if (optionIndex === -1 && this.focusedOptionIndex === -1) {
871
+ optionIndex = this.findFirstFocusedOptionIndex();
872
+ }
873
+ if (optionIndex !== -1) {
874
+ this.changeFocusedOptionIndex(event, optionIndex);
875
+ }
876
+ }
877
+ if (this.searchTimeout) {
878
+ clearTimeout(this.searchTimeout);
879
+ }
880
+ this.searchTimeout = setTimeout(function() {
881
+ _this12.searchValue = "";
882
+ _this12.searchTimeout = null;
883
+ }, 500);
884
+ return matched;
885
+ },
886
+ changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
887
+ if (this.focusedOptionIndex !== index) {
888
+ this.focusedOptionIndex = index;
889
+ this.scrollInView();
890
+ if (this.selectOnFocus) {
891
+ this.onOptionSelect(event, this.visibleOptions[index], false);
892
+ }
893
+ }
894
+ },
895
+ scrollInView: function scrollInView() {
896
+ var _this13 = this;
897
+ var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
716
898
  this.$nextTick(function() {
717
- var r = i !== -1 ? "".concat(e.id, "_").concat(i) : e.focusedOptionId, s = a.findSingle(e.list, 'li[id="'.concat(r, '"]'));
718
- s ? s.scrollIntoView && s.scrollIntoView({
719
- block: "nearest"
720
- }) : e.virtualScrollerDisabled || e.virtualScroller && e.virtualScroller.scrollToIndex(i !== -1 ? i : e.focusedOptionIndex);
899
+ var id = index !== -1 ? "".concat(_this13.id, "_").concat(index) : _this13.focusedOptionId;
900
+ var element = DomHandler.findSingle(_this13.list, 'li[id="'.concat(id, '"]'));
901
+ if (element) {
902
+ element.scrollIntoView && element.scrollIntoView({
903
+ block: "nearest"
904
+ });
905
+ } else if (!_this13.virtualScrollerDisabled) {
906
+ _this13.virtualScroller && _this13.virtualScroller.scrollToIndex(index !== -1 ? index : _this13.focusedOptionIndex);
907
+ }
721
908
  });
722
909
  },
723
- autoUpdateModel: function() {
724
- this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption && (this.focusedOptionIndex = this.findFirstFocusedOptionIndex(), this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], !1));
910
+ autoUpdateModel: function autoUpdateModel() {
911
+ if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
912
+ this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
913
+ this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
914
+ }
725
915
  },
726
- updateModel: function(e, i) {
727
- this.$emit("update:modelValue", i), this.$emit("change", {
728
- originalEvent: e,
729
- value: i
916
+ updateModel: function updateModel(event, value) {
917
+ this.$emit("update:modelValue", value);
918
+ this.$emit("change", {
919
+ originalEvent: event,
920
+ value
730
921
  });
731
922
  },
732
- flatOptions: function(e) {
733
- var i = this;
734
- return (e || []).reduce(function(r, s, n) {
735
- r.push({
736
- optionGroup: s,
737
- group: !0,
738
- index: n
923
+ flatOptions: function flatOptions(options2) {
924
+ var _this14 = this;
925
+ return (options2 || []).reduce(function(result, option, index) {
926
+ result.push({
927
+ optionGroup: option,
928
+ group: true,
929
+ index
739
930
  });
740
- var p = i.getOptionGroupChildren(s);
741
- return p && p.forEach(function(S) {
742
- return r.push(S);
743
- }), r;
931
+ var optionGroupChildren = _this14.getOptionGroupChildren(option);
932
+ optionGroupChildren && optionGroupChildren.forEach(function(o) {
933
+ return result.push(o);
934
+ });
935
+ return result;
744
936
  }, []);
745
937
  },
746
- overlayRef: function(e) {
747
- this.overlay = e;
938
+ overlayRef: function overlayRef(el) {
939
+ this.overlay = el;
748
940
  },
749
- listRef: function(e, i) {
750
- this.list = e, i && i(e);
941
+ listRef: function listRef(el, contentRef) {
942
+ this.list = el;
943
+ contentRef && contentRef(el);
751
944
  },
752
- virtualScrollerRef: function(e) {
753
- this.virtualScroller = e;
945
+ virtualScrollerRef: function virtualScrollerRef(el) {
946
+ this.virtualScroller = el;
754
947
  }
755
948
  },
756
949
  computed: {
757
- visibleOptions: function() {
758
- var e = this, i = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
950
+ visibleOptions: function visibleOptions() {
951
+ var _this15 = this;
952
+ var options2 = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
759
953
  if (this.filterValue) {
760
- var r = X.filter(i, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
954
+ var filteredOptions = FilterService.filter(options2, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
761
955
  if (this.optionGroupLabel) {
762
- var s = this.options || [], n = [];
763
- return s.forEach(function(p) {
764
- var S = e.getOptionGroupChildren(p), k = S.filter(function(D) {
765
- return r.includes(D);
956
+ var optionGroups = this.options || [];
957
+ var filtered = [];
958
+ optionGroups.forEach(function(group) {
959
+ var groupChildren = _this15.getOptionGroupChildren(group);
960
+ var filteredItems = groupChildren.filter(function(item) {
961
+ return filteredOptions.includes(item);
766
962
  });
767
- k.length > 0 && n.push(U(U({}, p), {}, N({}, typeof e.optionGroupChildren == "string" ? e.optionGroupChildren : "items", be(k))));
768
- }), this.flatOptions(n);
963
+ if (filteredItems.length > 0) filtered.push(_objectSpread$1(_objectSpread$1({}, group), {}, _defineProperty$1({}, typeof _this15.optionGroupChildren === "string" ? _this15.optionGroupChildren : "items", _toConsumableArray(filteredItems))));
964
+ });
965
+ return this.flatOptions(filtered);
769
966
  }
770
- return r;
967
+ return filteredOptions;
771
968
  }
772
- return i;
969
+ return options2;
773
970
  },
774
- hasSelectedOption: function() {
775
- return d.isNotEmpty(this.modelValue);
971
+ hasSelectedOption: function hasSelectedOption() {
972
+ return ObjectUtils.isNotEmpty(this.modelValue);
776
973
  },
777
- label: function() {
778
- var e = this.findSelectedOptionIndex();
779
- return e !== -1 ? this.getOptionLabel(this.visibleOptions[e]) : this.placeholder || "p-emptylabel";
974
+ label: function label() {
975
+ var selectedOptionIndex = this.findSelectedOptionIndex();
976
+ return selectedOptionIndex !== -1 ? this.getOptionLabel(this.visibleOptions[selectedOptionIndex]) : this.placeholder || "p-emptylabel";
780
977
  },
781
- editableInputValue: function() {
782
- var e = this.findSelectedOptionIndex();
783
- return e !== -1 ? this.getOptionLabel(this.visibleOptions[e]) : this.modelValue || "";
978
+ editableInputValue: function editableInputValue() {
979
+ var selectedOptionIndex = this.findSelectedOptionIndex();
980
+ return selectedOptionIndex !== -1 ? this.getOptionLabel(this.visibleOptions[selectedOptionIndex]) : this.modelValue || "";
784
981
  },
785
- equalityKey: function() {
982
+ equalityKey: function equalityKey() {
786
983
  return this.optionValue ? null : this.dataKey;
787
984
  },
788
- searchFields: function() {
985
+ searchFields: function searchFields() {
789
986
  return this.filterFields || [this.optionLabel];
790
987
  },
791
- filterResultMessageText: function() {
792
- return d.isNotEmpty(this.visibleOptions) ? this.filterMessageText.replaceAll("{0}", this.visibleOptions.length) : this.emptyFilterMessageText;
988
+ filterResultMessageText: function filterResultMessageText() {
989
+ return ObjectUtils.isNotEmpty(this.visibleOptions) ? this.filterMessageText.replaceAll("{0}", this.visibleOptions.length) : this.emptyFilterMessageText;
793
990
  },
794
- filterMessageText: function() {
991
+ filterMessageText: function filterMessageText() {
795
992
  return this.filterMessage || this.$primevue.config.locale.searchMessage || "";
796
993
  },
797
- emptyFilterMessageText: function() {
994
+ emptyFilterMessageText: function emptyFilterMessageText() {
798
995
  return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || "";
799
996
  },
800
- emptyMessageText: function() {
997
+ emptyMessageText: function emptyMessageText() {
801
998
  return this.emptyMessage || this.$primevue.config.locale.emptyMessage || "";
802
999
  },
803
- selectionMessageText: function() {
1000
+ selectionMessageText: function selectionMessageText() {
804
1001
  return this.selectionMessage || this.$primevue.config.locale.selectionMessage || "";
805
1002
  },
806
- emptySelectionMessageText: function() {
1003
+ emptySelectionMessageText: function emptySelectionMessageText() {
807
1004
  return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || "";
808
1005
  },
809
- selectedMessageText: function() {
1006
+ selectedMessageText: function selectedMessageText() {
810
1007
  return this.hasSelectedOption ? this.selectionMessageText.replaceAll("{0}", "1") : this.emptySelectionMessageText;
811
1008
  },
812
- listAriaLabel: function() {
1009
+ listAriaLabel: function listAriaLabel() {
813
1010
  return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : void 0;
814
1011
  },
815
- focusedOptionId: function() {
1012
+ focusedOptionId: function focusedOptionId() {
816
1013
  return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
817
1014
  },
818
- ariaSetSize: function() {
819
- var e = this;
820
- return this.visibleOptions.filter(function(i) {
821
- return !e.isOptionGroup(i);
1015
+ ariaSetSize: function ariaSetSize() {
1016
+ var _this16 = this;
1017
+ return this.visibleOptions.filter(function(option) {
1018
+ return !_this16.isOptionGroup(option);
822
1019
  }).length;
823
1020
  },
824
- virtualScrollerDisabled: function() {
1021
+ virtualScrollerDisabled: function virtualScrollerDisabled() {
825
1022
  return !this.virtualScrollerOptions;
826
1023
  }
827
1024
  },
828
1025
  directives: {
829
- ripple: se
1026
+ ripple: Ripple
830
1027
  },
831
1028
  components: {
832
- VirtualScroller: oe,
833
- Portal: re,
834
- TimesIcon: ie,
835
- ChevronDownIcon: _,
836
- SpinnerIcon: te,
837
- SearchIcon: ee,
838
- CheckIcon: $,
839
- BlankIcon: Y
1029
+ VirtualScroller: script$9,
1030
+ Portal: script$8,
1031
+ TimesIcon: script$7,
1032
+ ChevronDownIcon: script$6,
1033
+ SpinnerIcon: script$5,
1034
+ SearchIcon: script$4,
1035
+ CheckIcon: script$3,
1036
+ BlankIcon: script$2
840
1037
  }
841
1038
  };
842
- function F(t) {
1039
+ function _typeof(o) {
843
1040
  "@babel/helpers - typeof";
844
- return F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
845
- return typeof e;
846
- } : function(e) {
847
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
848
- }, F(t);
1041
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
1042
+ return typeof o2;
1043
+ } : function(o2) {
1044
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
1045
+ }, _typeof(o);
849
1046
  }
850
- function z(t, e) {
851
- var i = Object.keys(t);
1047
+ function ownKeys(e, r) {
1048
+ var t = Object.keys(e);
852
1049
  if (Object.getOwnPropertySymbols) {
853
- var r = Object.getOwnPropertySymbols(t);
854
- e && (r = r.filter(function(s) {
855
- return Object.getOwnPropertyDescriptor(t, s).enumerable;
856
- })), i.push.apply(i, r);
1050
+ var o = Object.getOwnPropertySymbols(e);
1051
+ r && (o = o.filter(function(r2) {
1052
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
1053
+ })), t.push.apply(t, o);
857
1054
  }
858
- return i;
1055
+ return t;
859
1056
  }
860
- function m(t) {
861
- for (var e = 1; e < arguments.length; e++) {
862
- var i = arguments[e] != null ? arguments[e] : {};
863
- e % 2 ? z(Object(i), !0).forEach(function(r) {
864
- we(t, r, i[r]);
865
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : z(Object(i)).forEach(function(r) {
866
- Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(i, r));
1057
+ function _objectSpread(e) {
1058
+ for (var r = 1; r < arguments.length; r++) {
1059
+ var t = null != arguments[r] ? arguments[r] : {};
1060
+ r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
1061
+ _defineProperty(e, r2, t[r2]);
1062
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
1063
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
867
1064
  });
868
1065
  }
869
- return t;
1066
+ return e;
870
1067
  }
871
- function we(t, e, i) {
872
- return e = Fe(e), e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
1068
+ function _defineProperty(obj, key, value) {
1069
+ key = _toPropertyKey(key);
1070
+ if (key in obj) {
1071
+ Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
1072
+ } else {
1073
+ obj[key] = value;
1074
+ }
1075
+ return obj;
873
1076
  }
874
- function Fe(t) {
875
- var e = ke(t, "string");
876
- return F(e) == "symbol" ? e : String(e);
1077
+ function _toPropertyKey(t) {
1078
+ var i = _toPrimitive(t, "string");
1079
+ return "symbol" == _typeof(i) ? i : String(i);
877
1080
  }
878
- function ke(t, e) {
879
- if (F(t) != "object" || !t) return t;
880
- var i = t[Symbol.toPrimitive];
881
- if (i !== void 0) {
882
- var r = i.call(t, e);
883
- if (F(r) != "object") return r;
1081
+ function _toPrimitive(t, r) {
1082
+ if ("object" != _typeof(t) || !t) return t;
1083
+ var e = t[Symbol.toPrimitive];
1084
+ if (void 0 !== e) {
1085
+ var i = e.call(t, r);
1086
+ if ("object" != _typeof(i)) return i;
884
1087
  throw new TypeError("@@toPrimitive must return a primitive value.");
885
1088
  }
886
- return (e === "string" ? String : Number)(t);
1089
+ return ("string" === r ? String : Number)(t);
887
1090
  }
888
- var Ce = ["id"], Ve = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"], Ke = ["id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled"], xe = ["value", "placeholder", "aria-owns", "aria-activedescendant"], De = ["id", "aria-label"], Me = ["id"], Ee = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focused", "data-p-disabled"];
889
- function Te(t, e, i, r, s, n) {
890
- var p = L("SpinnerIcon"), S = L("CheckIcon"), k = L("BlankIcon"), D = L("VirtualScroller"), q = L("Portal"), W = de("ripple");
891
- return o(), c("div", l({
1091
+ var _hoisted_1 = ["id"];
1092
+ var _hoisted_2 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
1093
+ var _hoisted_3 = ["id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled"];
1094
+ var _hoisted_4 = ["value", "placeholder", "aria-owns", "aria-activedescendant"];
1095
+ var _hoisted_5 = ["id", "aria-label"];
1096
+ var _hoisted_6 = ["id"];
1097
+ var _hoisted_7 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focused", "data-p-disabled"];
1098
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
1099
+ var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
1100
+ var _component_CheckIcon = resolveComponent("CheckIcon");
1101
+ var _component_BlankIcon = resolveComponent("BlankIcon");
1102
+ var _component_VirtualScroller = resolveComponent("VirtualScroller");
1103
+ var _component_Portal = resolveComponent("Portal");
1104
+ var _directive_ripple = resolveDirective("ripple");
1105
+ return openBlock(), createElementBlock("div", mergeProps({
892
1106
  ref: "container",
893
- id: s.id,
894
- class: t.cx("root"),
895
- onClick: e[16] || (e[16] = function() {
896
- return n.onContainerClick && n.onContainerClick.apply(n, arguments);
1107
+ id: $data.id,
1108
+ "class": _ctx.cx("root"),
1109
+ onClick: _cache[16] || (_cache[16] = function() {
1110
+ return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
897
1111
  })
898
- }, t.ptmi("root")), [t.editable ? (o(), c("input", l({
1112
+ }, _ctx.ptmi("root")), [_ctx.editable ? (openBlock(), createElementBlock("input", mergeProps({
899
1113
  key: 0,
900
1114
  ref: "focusInput",
901
- id: t.inputId,
1115
+ id: _ctx.inputId,
902
1116
  type: "text",
903
- class: [t.cx("input"), t.inputClass],
904
- style: t.inputStyle,
905
- value: n.editableInputValue,
906
- placeholder: t.placeholder,
907
- tabindex: t.disabled ? -1 : t.tabindex,
908
- disabled: t.disabled,
1117
+ "class": [_ctx.cx("input"), _ctx.inputClass],
1118
+ style: _ctx.inputStyle,
1119
+ value: $options.editableInputValue,
1120
+ placeholder: _ctx.placeholder,
1121
+ tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
1122
+ disabled: _ctx.disabled,
909
1123
  autocomplete: "off",
910
1124
  role: "combobox",
911
- "aria-label": t.ariaLabel,
912
- "aria-labelledby": t.ariaLabelledby,
1125
+ "aria-label": _ctx.ariaLabel,
1126
+ "aria-labelledby": _ctx.ariaLabelledby,
913
1127
  "aria-haspopup": "listbox",
914
- "aria-expanded": s.overlayVisible,
915
- "aria-controls": s.id + "_list",
916
- "aria-activedescendant": s.focused ? n.focusedOptionId : void 0,
917
- "aria-invalid": t.invalid || void 0,
918
- onFocus: e[0] || (e[0] = function() {
919
- return n.onFocus && n.onFocus.apply(n, arguments);
1128
+ "aria-expanded": $data.overlayVisible,
1129
+ "aria-controls": $data.id + "_list",
1130
+ "aria-activedescendant": $data.focused ? $options.focusedOptionId : void 0,
1131
+ "aria-invalid": _ctx.invalid || void 0,
1132
+ onFocus: _cache[0] || (_cache[0] = function() {
1133
+ return $options.onFocus && $options.onFocus.apply($options, arguments);
920
1134
  }),
921
- onBlur: e[1] || (e[1] = function() {
922
- return n.onBlur && n.onBlur.apply(n, arguments);
1135
+ onBlur: _cache[1] || (_cache[1] = function() {
1136
+ return $options.onBlur && $options.onBlur.apply($options, arguments);
923
1137
  }),
924
- onKeydown: e[2] || (e[2] = function() {
925
- return n.onKeyDown && n.onKeyDown.apply(n, arguments);
1138
+ onKeydown: _cache[2] || (_cache[2] = function() {
1139
+ return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
926
1140
  }),
927
- onInput: e[3] || (e[3] = function() {
928
- return n.onEditableInput && n.onEditableInput.apply(n, arguments);
1141
+ onInput: _cache[3] || (_cache[3] = function() {
1142
+ return $options.onEditableInput && $options.onEditableInput.apply($options, arguments);
929
1143
  })
930
- }, m(m({}, t.inputProps), t.ptm("input"))), null, 16, Ve)) : (o(), c("span", l({
1144
+ }, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm("input"))), null, 16, _hoisted_2)) : (openBlock(), createElementBlock("span", mergeProps({
931
1145
  key: 1,
932
1146
  ref: "focusInput",
933
- id: t.inputId,
934
- class: [t.cx("input"), t.inputClass],
935
- style: t.inputStyle,
936
- tabindex: t.disabled ? -1 : t.tabindex,
1147
+ id: _ctx.inputId,
1148
+ "class": [_ctx.cx("input"), _ctx.inputClass],
1149
+ style: _ctx.inputStyle,
1150
+ tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
937
1151
  role: "combobox",
938
- "aria-label": t.ariaLabel || (n.label === "p-emptylabel" ? void 0 : n.label),
939
- "aria-labelledby": t.ariaLabelledby,
1152
+ "aria-label": _ctx.ariaLabel || ($options.label === "p-emptylabel" ? void 0 : $options.label),
1153
+ "aria-labelledby": _ctx.ariaLabelledby,
940
1154
  "aria-haspopup": "listbox",
941
- "aria-expanded": s.overlayVisible,
942
- "aria-controls": s.id + "_list",
943
- "aria-activedescendant": s.focused ? n.focusedOptionId : void 0,
944
- "aria-disabled": t.disabled,
945
- onFocus: e[4] || (e[4] = function() {
946
- return n.onFocus && n.onFocus.apply(n, arguments);
1155
+ "aria-expanded": $data.overlayVisible,
1156
+ "aria-controls": $data.id + "_list",
1157
+ "aria-activedescendant": $data.focused ? $options.focusedOptionId : void 0,
1158
+ "aria-disabled": _ctx.disabled,
1159
+ onFocus: _cache[4] || (_cache[4] = function() {
1160
+ return $options.onFocus && $options.onFocus.apply($options, arguments);
947
1161
  }),
948
- onBlur: e[5] || (e[5] = function() {
949
- return n.onBlur && n.onBlur.apply(n, arguments);
1162
+ onBlur: _cache[5] || (_cache[5] = function() {
1163
+ return $options.onBlur && $options.onBlur.apply($options, arguments);
950
1164
  }),
951
- onKeydown: e[6] || (e[6] = function() {
952
- return n.onKeyDown && n.onKeyDown.apply(n, arguments);
1165
+ onKeydown: _cache[6] || (_cache[6] = function() {
1166
+ return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
953
1167
  })
954
- }, m(m({}, t.inputProps), t.ptm("input"))), [h(t.$slots, "value", {
955
- value: t.modelValue,
956
- placeholder: t.placeholder
1168
+ }, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm("input"))), [renderSlot(_ctx.$slots, "value", {
1169
+ value: _ctx.modelValue,
1170
+ placeholder: _ctx.placeholder
957
1171
  }, function() {
958
- return [A(O(n.label === "p-emptylabel" ? " " : n.label || "empty"), 1)];
959
- })], 16, Ke)), t.showClear && t.modelValue != null ? h(t.$slots, "clearicon", {
1172
+ return [createTextVNode(toDisplayString($options.label === "p-emptylabel" ? " " : $options.label || "empty"), 1)];
1173
+ })], 16, _hoisted_3)), _ctx.showClear && _ctx.modelValue != null ? renderSlot(_ctx.$slots, "clearicon", {
960
1174
  key: 2,
961
- class: K(t.cx("clearIcon")),
962
- onClick: n.onClearClick,
963
- clearCallback: n.onClearClick
1175
+ "class": normalizeClass(_ctx.cx("clearIcon")),
1176
+ onClick: $options.onClearClick,
1177
+ clearCallback: $options.onClearClick
964
1178
  }, function() {
965
- return [(o(), I(B(t.clearIcon ? "i" : "TimesIcon"), l({
1179
+ return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon ? "i" : "TimesIcon"), mergeProps({
966
1180
  ref: "clearIcon",
967
- class: [t.cx("clearIcon"), t.clearIcon],
968
- onClick: n.onClearClick
969
- }, m(m({}, t.clearIconProps), t.ptm("clearIcon")), {
1181
+ "class": [_ctx.cx("clearIcon"), _ctx.clearIcon],
1182
+ onClick: $options.onClearClick
1183
+ }, _objectSpread(_objectSpread({}, _ctx.clearIconProps), _ctx.ptm("clearIcon")), {
970
1184
  "data-pc-section": "clearicon"
971
1185
  }), null, 16, ["class", "onClick"]))];
972
- }) : v("", !0), y("div", l({
973
- class: t.cx("trigger")
974
- }, t.ptm("trigger")), [t.loading ? h(t.$slots, "loadingicon", {
1186
+ }) : createCommentVNode("", true), createElementVNode("div", mergeProps({
1187
+ "class": _ctx.cx("trigger")
1188
+ }, _ctx.ptm("trigger")), [_ctx.loading ? renderSlot(_ctx.$slots, "loadingicon", {
975
1189
  key: 0,
976
- class: K(t.cx("loadingIcon"))
1190
+ "class": normalizeClass(_ctx.cx("loadingIcon"))
977
1191
  }, function() {
978
- return [t.loadingIcon ? (o(), c("span", l({
1192
+ return [_ctx.loadingIcon ? (openBlock(), createElementBlock("span", mergeProps({
979
1193
  key: 0,
980
- class: [t.cx("loadingIcon"), "pi-spin", t.loadingIcon],
1194
+ "class": [_ctx.cx("loadingIcon"), "pi-spin", _ctx.loadingIcon],
981
1195
  "aria-hidden": "true"
982
- }, t.ptm("loadingIcon")), null, 16)) : (o(), I(p, l({
1196
+ }, _ctx.ptm("loadingIcon")), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
983
1197
  key: 1,
984
- class: t.cx("loadingIcon"),
1198
+ "class": _ctx.cx("loadingIcon"),
985
1199
  spin: "",
986
1200
  "aria-hidden": "true"
987
- }, t.ptm("loadingIcon")), null, 16, ["class"]))];
988
- }) : h(t.$slots, "dropdownicon", {
1201
+ }, _ctx.ptm("loadingIcon")), null, 16, ["class"]))];
1202
+ }) : renderSlot(_ctx.$slots, "dropdownicon", {
989
1203
  key: 1,
990
- class: K(t.cx("dropdownIcon"))
1204
+ "class": normalizeClass(_ctx.cx("dropdownIcon"))
991
1205
  }, function() {
992
- return [(o(), I(B(t.dropdownIcon ? "span" : "ChevronDownIcon"), l({
993
- class: [t.cx("dropdownIcon"), t.dropdownIcon],
1206
+ return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? "span" : "ChevronDownIcon"), mergeProps({
1207
+ "class": [_ctx.cx("dropdownIcon"), _ctx.dropdownIcon],
994
1208
  "aria-hidden": "true"
995
- }, t.ptm("dropdownIcon")), null, 16, ["class"]))];
996
- })], 16), P(q, {
997
- appendTo: t.appendTo
1209
+ }, _ctx.ptm("dropdownIcon")), null, 16, ["class"]))];
1210
+ })], 16), createVNode(_component_Portal, {
1211
+ appendTo: _ctx.appendTo
998
1212
  }, {
999
- default: x(function() {
1000
- return [P(ce, l({
1213
+ "default": withCtx(function() {
1214
+ return [createVNode(Transition, mergeProps({
1001
1215
  name: "p-connected-overlay",
1002
- onEnter: n.onOverlayEnter,
1003
- onAfterEnter: n.onOverlayAfterEnter,
1004
- onLeave: n.onOverlayLeave,
1005
- onAfterLeave: n.onOverlayAfterLeave
1006
- }, t.ptm("transition")), {
1007
- default: x(function() {
1008
- return [s.overlayVisible ? (o(), c("div", l({
1216
+ onEnter: $options.onOverlayEnter,
1217
+ onAfterEnter: $options.onOverlayAfterEnter,
1218
+ onLeave: $options.onOverlayLeave,
1219
+ onAfterLeave: $options.onOverlayAfterLeave
1220
+ }, _ctx.ptm("transition")), {
1221
+ "default": withCtx(function() {
1222
+ return [$data.overlayVisible ? (openBlock(), createElementBlock("div", mergeProps({
1009
1223
  key: 0,
1010
- ref: n.overlayRef,
1011
- class: [t.cx("panel"), t.panelClass],
1012
- style: t.panelStyle,
1013
- onClick: e[14] || (e[14] = function() {
1014
- return n.onOverlayClick && n.onOverlayClick.apply(n, arguments);
1224
+ ref: $options.overlayRef,
1225
+ "class": [_ctx.cx("panel"), _ctx.panelClass],
1226
+ style: _ctx.panelStyle,
1227
+ onClick: _cache[14] || (_cache[14] = function() {
1228
+ return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
1015
1229
  }),
1016
- onKeydown: e[15] || (e[15] = function() {
1017
- return n.onOverlayKeyDown && n.onOverlayKeyDown.apply(n, arguments);
1230
+ onKeydown: _cache[15] || (_cache[15] = function() {
1231
+ return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
1018
1232
  })
1019
- }, m(m({}, t.panelProps), t.ptm("panel"))), [y("span", l({
1233
+ }, _objectSpread(_objectSpread({}, _ctx.panelProps), _ctx.ptm("panel"))), [createElementVNode("span", mergeProps({
1020
1234
  ref: "firstHiddenFocusableElementOnOverlay",
1021
1235
  role: "presentation",
1022
1236
  "aria-hidden": "true",
1023
- class: "p-hidden-accessible p-hidden-focusable",
1237
+ "class": "p-hidden-accessible p-hidden-focusable",
1024
1238
  tabindex: 0,
1025
- onFocus: e[7] || (e[7] = function() {
1026
- return n.onFirstHiddenFocus && n.onFirstHiddenFocus.apply(n, arguments);
1239
+ onFocus: _cache[7] || (_cache[7] = function() {
1240
+ return $options.onFirstHiddenFocus && $options.onFirstHiddenFocus.apply($options, arguments);
1027
1241
  })
1028
- }, t.ptm("hiddenFirstFocusableEl"), {
1029
- "data-p-hidden-accessible": !0,
1030
- "data-p-hidden-focusable": !0
1031
- }), null, 16), h(t.$slots, "header", {
1032
- value: t.modelValue,
1033
- options: n.visibleOptions
1034
- }), t.filter ? (o(), c("div", l({
1242
+ }, _ctx.ptm("hiddenFirstFocusableEl"), {
1243
+ "data-p-hidden-accessible": true,
1244
+ "data-p-hidden-focusable": true
1245
+ }), null, 16), renderSlot(_ctx.$slots, "header", {
1246
+ value: _ctx.modelValue,
1247
+ options: $options.visibleOptions
1248
+ }), _ctx.filter ? (openBlock(), createElementBlock("div", mergeProps({
1035
1249
  key: 0,
1036
- class: t.cx("header")
1037
- }, t.ptm("header")), [y("div", l({
1038
- class: t.cx("filterContainer")
1039
- }, t.ptm("filterContainer")), [y("input", l({
1250
+ "class": _ctx.cx("header")
1251
+ }, _ctx.ptm("header")), [createElementVNode("div", mergeProps({
1252
+ "class": _ctx.cx("filterContainer")
1253
+ }, _ctx.ptm("filterContainer")), [createElementVNode("input", mergeProps({
1040
1254
  ref: "filterInput",
1041
1255
  type: "text",
1042
- value: s.filterValue,
1043
- onVnodeMounted: e[8] || (e[8] = function() {
1044
- return n.onFilterUpdated && n.onFilterUpdated.apply(n, arguments);
1256
+ value: $data.filterValue,
1257
+ onVnodeMounted: _cache[8] || (_cache[8] = function() {
1258
+ return $options.onFilterUpdated && $options.onFilterUpdated.apply($options, arguments);
1045
1259
  }),
1046
- onVnodeUpdated: e[9] || (e[9] = function() {
1047
- return n.onFilterUpdated && n.onFilterUpdated.apply(n, arguments);
1260
+ onVnodeUpdated: _cache[9] || (_cache[9] = function() {
1261
+ return $options.onFilterUpdated && $options.onFilterUpdated.apply($options, arguments);
1048
1262
  }),
1049
- class: t.cx("filterInput"),
1050
- placeholder: t.filterPlaceholder,
1263
+ "class": _ctx.cx("filterInput"),
1264
+ placeholder: _ctx.filterPlaceholder,
1051
1265
  role: "searchbox",
1052
1266
  autocomplete: "off",
1053
- "aria-owns": s.id + "_list",
1054
- "aria-activedescendant": n.focusedOptionId,
1055
- onKeydown: e[10] || (e[10] = function() {
1056
- return n.onFilterKeyDown && n.onFilterKeyDown.apply(n, arguments);
1267
+ "aria-owns": $data.id + "_list",
1268
+ "aria-activedescendant": $options.focusedOptionId,
1269
+ onKeydown: _cache[10] || (_cache[10] = function() {
1270
+ return $options.onFilterKeyDown && $options.onFilterKeyDown.apply($options, arguments);
1057
1271
  }),
1058
- onBlur: e[11] || (e[11] = function() {
1059
- return n.onFilterBlur && n.onFilterBlur.apply(n, arguments);
1272
+ onBlur: _cache[11] || (_cache[11] = function() {
1273
+ return $options.onFilterBlur && $options.onFilterBlur.apply($options, arguments);
1060
1274
  }),
1061
- onInput: e[12] || (e[12] = function() {
1062
- return n.onFilterChange && n.onFilterChange.apply(n, arguments);
1275
+ onInput: _cache[12] || (_cache[12] = function() {
1276
+ return $options.onFilterChange && $options.onFilterChange.apply($options, arguments);
1063
1277
  })
1064
- }, m(m({}, t.filterInputProps), t.ptm("filterInput"))), null, 16, xe), h(t.$slots, "filtericon", {
1065
- class: K(t.cx("filterIcon"))
1278
+ }, _objectSpread(_objectSpread({}, _ctx.filterInputProps), _ctx.ptm("filterInput"))), null, 16, _hoisted_4), renderSlot(_ctx.$slots, "filtericon", {
1279
+ "class": normalizeClass(_ctx.cx("filterIcon"))
1066
1280
  }, function() {
1067
- return [(o(), I(B(t.filterIcon ? "span" : "SearchIcon"), l({
1068
- class: [t.cx("filterIcon"), t.filterIcon]
1069
- }, t.ptm("filterIcon")), null, 16, ["class"]))];
1070
- })], 16), y("span", l({
1281
+ return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.filterIcon ? "span" : "SearchIcon"), mergeProps({
1282
+ "class": [_ctx.cx("filterIcon"), _ctx.filterIcon]
1283
+ }, _ctx.ptm("filterIcon")), null, 16, ["class"]))];
1284
+ })], 16), createElementVNode("span", mergeProps({
1071
1285
  role: "status",
1072
1286
  "aria-live": "polite",
1073
- class: "p-hidden-accessible"
1074
- }, t.ptm("hiddenFilterResult"), {
1075
- "data-p-hidden-accessible": !0
1076
- }), O(n.filterResultMessageText), 17)], 16)) : v("", !0), y("div", l({
1077
- class: t.cx("wrapper"),
1287
+ "class": "p-hidden-accessible"
1288
+ }, _ctx.ptm("hiddenFilterResult"), {
1289
+ "data-p-hidden-accessible": true
1290
+ }), toDisplayString($options.filterResultMessageText), 17)], 16)) : createCommentVNode("", true), createElementVNode("div", mergeProps({
1291
+ "class": _ctx.cx("wrapper"),
1078
1292
  style: {
1079
- "max-height": n.virtualScrollerDisabled ? t.scrollHeight : ""
1293
+ "max-height": $options.virtualScrollerDisabled ? _ctx.scrollHeight : ""
1080
1294
  }
1081
- }, t.ptm("wrapper")), [P(D, l({
1082
- ref: n.virtualScrollerRef
1083
- }, t.virtualScrollerOptions, {
1084
- items: n.visibleOptions,
1295
+ }, _ctx.ptm("wrapper")), [createVNode(_component_VirtualScroller, mergeProps({
1296
+ ref: $options.virtualScrollerRef
1297
+ }, _ctx.virtualScrollerOptions, {
1298
+ items: $options.visibleOptions,
1085
1299
  style: {
1086
- height: t.scrollHeight
1300
+ height: _ctx.scrollHeight
1087
1301
  },
1088
1302
  tabindex: -1,
1089
- disabled: n.virtualScrollerDisabled,
1090
- pt: t.ptm("virtualScroller")
1091
- }), pe({
1092
- content: x(function(g) {
1093
- var M = g.styleClass, Z = g.contentRef, C = g.items, b = g.getItemOptions, J = g.contentStyle, V = g.itemSize;
1094
- return [y("ul", l({
1095
- ref: function(f) {
1096
- return n.listRef(f, Z);
1303
+ disabled: $options.virtualScrollerDisabled,
1304
+ pt: _ctx.ptm("virtualScroller")
1305
+ }), createSlots({
1306
+ content: withCtx(function(_ref) {
1307
+ var styleClass = _ref.styleClass, contentRef = _ref.contentRef, items = _ref.items, getItemOptions = _ref.getItemOptions, contentStyle = _ref.contentStyle, itemSize = _ref.itemSize;
1308
+ return [createElementVNode("ul", mergeProps({
1309
+ ref: function ref(el) {
1310
+ return $options.listRef(el, contentRef);
1097
1311
  },
1098
- id: s.id + "_list",
1099
- class: [t.cx("list"), M],
1100
- style: J,
1312
+ id: $data.id + "_list",
1313
+ "class": [_ctx.cx("list"), styleClass],
1314
+ style: contentStyle,
1101
1315
  role: "listbox",
1102
- "aria-label": n.listAriaLabel
1103
- }, t.ptm("list")), [(o(!0), c(H, null, fe(C, function(u, f) {
1104
- return o(), c(H, {
1105
- key: n.getOptionRenderKey(u, n.getOptionIndex(f, b))
1106
- }, [n.isOptionGroup(u) ? (o(), c("li", l({
1316
+ "aria-label": $options.listAriaLabel
1317
+ }, _ctx.ptm("list")), [(openBlock(true), createElementBlock(Fragment, null, renderList(items, function(option, i) {
1318
+ return openBlock(), createElementBlock(Fragment, {
1319
+ key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
1320
+ }, [$options.isOptionGroup(option) ? (openBlock(), createElementBlock("li", mergeProps({
1107
1321
  key: 0,
1108
- id: s.id + "_" + n.getOptionIndex(f, b),
1322
+ id: $data.id + "_" + $options.getOptionIndex(i, getItemOptions),
1109
1323
  style: {
1110
- height: V ? V + "px" : void 0
1324
+ height: itemSize ? itemSize + "px" : void 0
1111
1325
  },
1112
- class: t.cx("itemGroup"),
1326
+ "class": _ctx.cx("itemGroup"),
1113
1327
  role: "option"
1114
- }, t.ptm("itemGroup")), [h(t.$slots, "optiongroup", {
1115
- option: u.optionGroup,
1116
- index: n.getOptionIndex(f, b)
1328
+ }, _ctx.ptm("itemGroup")), [renderSlot(_ctx.$slots, "optiongroup", {
1329
+ option: option.optionGroup,
1330
+ index: $options.getOptionIndex(i, getItemOptions)
1117
1331
  }, function() {
1118
- return [y("span", l({
1119
- class: t.cx("itemGroupLabel")
1120
- }, t.ptm("itemGroupLabel")), O(n.getOptionGroupLabel(u.optionGroup)), 17)];
1121
- })], 16, Me)) : he((o(), c("li", l({
1332
+ return [createElementVNode("span", mergeProps({
1333
+ "class": _ctx.cx("itemGroupLabel")
1334
+ }, _ctx.ptm("itemGroupLabel")), toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 17)];
1335
+ })], 16, _hoisted_6)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
1122
1336
  key: 1,
1123
- id: s.id + "_" + n.getOptionIndex(f, b),
1124
- class: t.cx("item", {
1125
- option: u,
1126
- focusedOption: n.getOptionIndex(f, b)
1337
+ id: $data.id + "_" + $options.getOptionIndex(i, getItemOptions),
1338
+ "class": _ctx.cx("item", {
1339
+ option,
1340
+ focusedOption: $options.getOptionIndex(i, getItemOptions)
1127
1341
  }),
1128
1342
  style: {
1129
- height: V ? V + "px" : void 0
1343
+ height: itemSize ? itemSize + "px" : void 0
1130
1344
  },
1131
1345
  role: "option",
1132
- "aria-label": n.getOptionLabel(u),
1133
- "aria-selected": n.isSelected(u),
1134
- "aria-disabled": n.isOptionDisabled(u),
1135
- "aria-setsize": n.ariaSetSize,
1136
- "aria-posinset": n.getAriaPosInset(n.getOptionIndex(f, b)),
1137
- onClick: function(E) {
1138
- return n.onOptionSelect(E, u);
1346
+ "aria-label": $options.getOptionLabel(option),
1347
+ "aria-selected": $options.isSelected(option),
1348
+ "aria-disabled": $options.isOptionDisabled(option),
1349
+ "aria-setsize": $options.ariaSetSize,
1350
+ "aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
1351
+ onClick: function onClick($event) {
1352
+ return $options.onOptionSelect($event, option);
1139
1353
  },
1140
- onMousemove: function(E) {
1141
- return n.onOptionMouseMove(E, n.getOptionIndex(f, b));
1354
+ onMousemove: function onMousemove($event) {
1355
+ return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
1142
1356
  },
1143
- "data-p-highlight": n.isSelected(u),
1144
- "data-p-focused": s.focusedOptionIndex === n.getOptionIndex(f, b),
1145
- "data-p-disabled": n.isOptionDisabled(u)
1146
- }, n.getPTItemOptions(u, b, f, "item")), [t.checkmark ? (o(), c(H, {
1357
+ "data-p-highlight": $options.isSelected(option),
1358
+ "data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
1359
+ "data-p-disabled": $options.isOptionDisabled(option)
1360
+ }, $options.getPTItemOptions(option, getItemOptions, i, "item")), [_ctx.checkmark ? (openBlock(), createElementBlock(Fragment, {
1147
1361
  key: 0
1148
- }, [n.isSelected(u) ? (o(), I(S, l({
1362
+ }, [$options.isSelected(option) ? (openBlock(), createBlock(_component_CheckIcon, mergeProps({
1149
1363
  key: 0,
1150
- class: t.cx("checkIcon")
1151
- }, t.ptm("checkIcon")), null, 16, ["class"])) : (o(), I(k, l({
1364
+ "class": _ctx.cx("checkIcon")
1365
+ }, _ctx.ptm("checkIcon")), null, 16, ["class"])) : (openBlock(), createBlock(_component_BlankIcon, mergeProps({
1152
1366
  key: 1,
1153
- class: t.cx("blankIcon")
1154
- }, t.ptm("blankIcon")), null, 16, ["class"]))], 64)) : v("", !0), h(t.$slots, "option", {
1155
- option: u,
1156
- index: n.getOptionIndex(f, b)
1367
+ "class": _ctx.cx("blankIcon")
1368
+ }, _ctx.ptm("blankIcon")), null, 16, ["class"]))], 64)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "option", {
1369
+ option,
1370
+ index: $options.getOptionIndex(i, getItemOptions)
1157
1371
  }, function() {
1158
- return [y("span", l({
1159
- class: t.cx("itemLabel")
1160
- }, t.ptm("itemLabel")), O(n.getOptionLabel(u)), 17)];
1161
- })], 16, Ee)), [[W]])], 64);
1162
- }), 128)), s.filterValue && (!C || C && C.length === 0) ? (o(), c("li", l({
1372
+ return [createElementVNode("span", mergeProps({
1373
+ "class": _ctx.cx("itemLabel")
1374
+ }, _ctx.ptm("itemLabel")), toDisplayString($options.getOptionLabel(option)), 17)];
1375
+ })], 16, _hoisted_7)), [[_directive_ripple]])], 64);
1376
+ }), 128)), $data.filterValue && (!items || items && items.length === 0) ? (openBlock(), createElementBlock("li", mergeProps({
1163
1377
  key: 0,
1164
- class: t.cx("emptyMessage"),
1378
+ "class": _ctx.cx("emptyMessage"),
1165
1379
  role: "option"
1166
- }, t.ptm("emptyMessage"), {
1167
- "data-p-hidden-accessible": !0
1168
- }), [h(t.$slots, "emptyfilter", {}, function() {
1169
- return [A(O(n.emptyFilterMessageText), 1)];
1170
- })], 16)) : !t.options || t.options && t.options.length === 0 ? (o(), c("li", l({
1380
+ }, _ctx.ptm("emptyMessage"), {
1381
+ "data-p-hidden-accessible": true
1382
+ }), [renderSlot(_ctx.$slots, "emptyfilter", {}, function() {
1383
+ return [createTextVNode(toDisplayString($options.emptyFilterMessageText), 1)];
1384
+ })], 16)) : !_ctx.options || _ctx.options && _ctx.options.length === 0 ? (openBlock(), createElementBlock("li", mergeProps({
1171
1385
  key: 1,
1172
- class: t.cx("emptyMessage"),
1386
+ "class": _ctx.cx("emptyMessage"),
1173
1387
  role: "option"
1174
- }, t.ptm("emptyMessage"), {
1175
- "data-p-hidden-accessible": !0
1176
- }), [h(t.$slots, "empty", {}, function() {
1177
- return [A(O(n.emptyMessageText), 1)];
1178
- })], 16)) : v("", !0)], 16, De)];
1388
+ }, _ctx.ptm("emptyMessage"), {
1389
+ "data-p-hidden-accessible": true
1390
+ }), [renderSlot(_ctx.$slots, "empty", {}, function() {
1391
+ return [createTextVNode(toDisplayString($options.emptyMessageText), 1)];
1392
+ })], 16)) : createCommentVNode("", true)], 16, _hoisted_5)];
1179
1393
  }),
1180
1394
  _: 2
1181
- }, [t.$slots.loader ? {
1395
+ }, [_ctx.$slots.loader ? {
1182
1396
  name: "loader",
1183
- fn: x(function(g) {
1184
- var M = g.options;
1185
- return [h(t.$slots, "loader", {
1186
- options: M
1397
+ fn: withCtx(function(_ref2) {
1398
+ var options2 = _ref2.options;
1399
+ return [renderSlot(_ctx.$slots, "loader", {
1400
+ options: options2
1187
1401
  })];
1188
1402
  }),
1189
1403
  key: "0"
1190
- } : void 0]), 1040, ["items", "style", "disabled", "pt"])], 16), h(t.$slots, "footer", {
1191
- value: t.modelValue,
1192
- options: n.visibleOptions
1193
- }), !t.options || t.options && t.options.length === 0 ? (o(), c("span", l({
1404
+ } : void 0]), 1040, ["items", "style", "disabled", "pt"])], 16), renderSlot(_ctx.$slots, "footer", {
1405
+ value: _ctx.modelValue,
1406
+ options: $options.visibleOptions
1407
+ }), !_ctx.options || _ctx.options && _ctx.options.length === 0 ? (openBlock(), createElementBlock("span", mergeProps({
1194
1408
  key: 1,
1195
1409
  role: "status",
1196
1410
  "aria-live": "polite",
1197
- class: "p-hidden-accessible"
1198
- }, t.ptm("hiddenEmptyMessage"), {
1199
- "data-p-hidden-accessible": !0
1200
- }), O(n.emptyMessageText), 17)) : v("", !0), y("span", l({
1411
+ "class": "p-hidden-accessible"
1412
+ }, _ctx.ptm("hiddenEmptyMessage"), {
1413
+ "data-p-hidden-accessible": true
1414
+ }), toDisplayString($options.emptyMessageText), 17)) : createCommentVNode("", true), createElementVNode("span", mergeProps({
1201
1415
  role: "status",
1202
1416
  "aria-live": "polite",
1203
- class: "p-hidden-accessible"
1204
- }, t.ptm("hiddenSelectedMessage"), {
1205
- "data-p-hidden-accessible": !0
1206
- }), O(n.selectedMessageText), 17), y("span", l({
1417
+ "class": "p-hidden-accessible"
1418
+ }, _ctx.ptm("hiddenSelectedMessage"), {
1419
+ "data-p-hidden-accessible": true
1420
+ }), toDisplayString($options.selectedMessageText), 17), createElementVNode("span", mergeProps({
1207
1421
  ref: "lastHiddenFocusableElementOnOverlay",
1208
1422
  role: "presentation",
1209
1423
  "aria-hidden": "true",
1210
- class: "p-hidden-accessible p-hidden-focusable",
1424
+ "class": "p-hidden-accessible p-hidden-focusable",
1211
1425
  tabindex: 0,
1212
- onFocus: e[13] || (e[13] = function() {
1213
- return n.onLastHiddenFocus && n.onLastHiddenFocus.apply(n, arguments);
1426
+ onFocus: _cache[13] || (_cache[13] = function() {
1427
+ return $options.onLastHiddenFocus && $options.onLastHiddenFocus.apply($options, arguments);
1214
1428
  })
1215
- }, t.ptm("hiddenLastFocusableEl"), {
1216
- "data-p-hidden-accessible": !0,
1217
- "data-p-hidden-focusable": !0
1218
- }), null, 16)], 16)) : v("", !0)];
1429
+ }, _ctx.ptm("hiddenLastFocusableEl"), {
1430
+ "data-p-hidden-accessible": true,
1431
+ "data-p-hidden-focusable": true
1432
+ }), null, 16)], 16)) : createCommentVNode("", true)];
1219
1433
  }),
1220
1434
  _: 3
1221
1435
  }, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
1222
1436
  }),
1223
1437
  _: 3
1224
- }, 8, ["appendTo"])], 16, Ce);
1438
+ }, 8, ["appendTo"])], 16, _hoisted_1);
1225
1439
  }
1226
- Le.render = Te;
1440
+ script.render = render;
1227
1441
  export {
1228
- Le as s
1442
+ script as s
1229
1443
  };