primevue 4.2.5 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (496) hide show
  1. package/LICENSE.md +1 -1
  2. package/accordion/Accordion.vue +0 -8
  3. package/accordion/index.mjs +1 -9
  4. package/accordion/index.mjs.map +1 -1
  5. package/accordion/style/index.mjs +2 -5
  6. package/accordion/style/index.mjs.map +1 -1
  7. package/accordioncontent/index.mjs +1 -1
  8. package/accordionheader/AccordionHeader.vue +2 -2
  9. package/accordionheader/index.mjs +4 -4
  10. package/accordionheader/index.mjs.map +1 -1
  11. package/accordionpanel/index.mjs +1 -1
  12. package/animateonscroll/index.d.ts +1 -1
  13. package/animateonscroll/index.mjs +4 -4
  14. package/animateonscroll/index.mjs.map +1 -1
  15. package/animateonscroll/style/index.d.ts +1 -1
  16. package/autocomplete/AutoComplete.vue +90 -23
  17. package/autocomplete/index.d.ts +19 -2
  18. package/autocomplete/index.mjs +127 -55
  19. package/autocomplete/index.mjs.map +1 -1
  20. package/autocomplete/style/index.mjs +15 -19
  21. package/autocomplete/style/index.mjs.map +1 -1
  22. package/avatar/index.mjs +1 -1
  23. package/avatar/style/index.mjs +4 -7
  24. package/avatar/style/index.mjs.map +1 -1
  25. package/avatargroup/index.mjs +1 -1
  26. package/badge/index.mjs +1 -1
  27. package/badge/style/index.mjs +6 -9
  28. package/badge/style/index.mjs.map +1 -1
  29. package/badgedirective/index.mjs +6 -6
  30. package/badgedirective/index.mjs.map +1 -1
  31. package/blockui/BlockUI.vue +2 -1
  32. package/blockui/index.mjs +3 -2
  33. package/blockui/index.mjs.map +1 -1
  34. package/blockui/style/index.mjs +2 -5
  35. package/blockui/style/index.mjs.map +1 -1
  36. package/breadcrumb/index.mjs +1 -1
  37. package/breadcrumb/style/index.mjs +4 -7
  38. package/breadcrumb/style/index.mjs.map +1 -1
  39. package/button/Button.vue +1 -1
  40. package/button/index.d.ts +11 -1
  41. package/button/index.mjs +5 -4
  42. package/button/index.mjs.map +1 -1
  43. package/button/style/index.mjs +9 -12
  44. package/button/style/index.mjs.map +1 -1
  45. package/buttongroup/index.mjs +1 -1
  46. package/buttongroup/style/index.mjs +2 -5
  47. package/buttongroup/style/index.mjs.map +1 -1
  48. package/card/index.mjs +1 -1
  49. package/card/style/index.mjs +2 -5
  50. package/card/style/index.mjs.map +1 -1
  51. package/carousel/index.mjs +2 -2
  52. package/carousel/index.mjs.map +1 -1
  53. package/carousel/style/index.mjs +19 -22
  54. package/carousel/style/index.mjs.map +1 -1
  55. package/cascadeselect/CascadeSelect.vue +16 -17
  56. package/cascadeselect/CascadeSelectSub.vue +1 -1
  57. package/cascadeselect/index.d.ts +2 -2
  58. package/cascadeselect/index.mjs +26 -28
  59. package/cascadeselect/index.mjs.map +1 -1
  60. package/cascadeselect/style/index.mjs +17 -19
  61. package/cascadeselect/style/index.mjs.map +1 -1
  62. package/chart/index.mjs +4 -4
  63. package/checkbox/index.d.ts +2 -2
  64. package/checkbox/index.mjs +2 -2
  65. package/checkbox/index.mjs.map +1 -1
  66. package/checkbox/style/index.mjs +5 -8
  67. package/checkbox/style/index.mjs.map +1 -1
  68. package/checkboxgroup/index.mjs +1 -1
  69. package/checkboxgroup/style/index.mjs +2 -5
  70. package/checkboxgroup/style/index.mjs.map +1 -1
  71. package/chip/index.mjs +1 -1
  72. package/chip/style/index.mjs +2 -5
  73. package/chip/style/index.mjs.map +1 -1
  74. package/colorpicker/ColorPicker.vue +2 -2
  75. package/colorpicker/index.mjs +7 -7
  76. package/colorpicker/index.mjs.map +1 -1
  77. package/colorpicker/style/index.mjs +7 -10
  78. package/colorpicker/style/index.mjs.map +1 -1
  79. package/column/BaseColumn.vue +1 -1
  80. package/column/index.d.ts +2 -2
  81. package/column/index.mjs +1 -1
  82. package/column/index.mjs.map +1 -1
  83. package/columngroup/index.mjs.map +1 -1
  84. package/confirmdialog/index.d.ts +4 -0
  85. package/confirmdialog/index.mjs +1 -1
  86. package/confirmdialog/index.mjs.map +1 -1
  87. package/confirmdialog/style/index.mjs +2 -5
  88. package/confirmdialog/style/index.mjs.map +1 -1
  89. package/confirmpopup/ConfirmPopup.vue +2 -2
  90. package/confirmpopup/index.mjs +4 -4
  91. package/confirmpopup/index.mjs.map +1 -1
  92. package/confirmpopup/style/index.mjs +2 -5
  93. package/confirmpopup/style/index.mjs.map +1 -1
  94. package/contextmenu/ContextMenu.vue +6 -12
  95. package/contextmenu/index.mjs +9 -15
  96. package/contextmenu/index.mjs.map +1 -1
  97. package/contextmenu/style/index.mjs +7 -10
  98. package/contextmenu/style/index.mjs.map +1 -1
  99. package/datatable/BodyCell.vue +24 -14
  100. package/datatable/BodyRow.vue +0 -1
  101. package/datatable/ColumnFilter.vue +10 -16
  102. package/datatable/DataTable.vue +6 -6
  103. package/datatable/FilterHeaderCell.vue +189 -0
  104. package/datatable/FooterCell.vue +2 -2
  105. package/datatable/HeaderCell.vue +4 -4
  106. package/datatable/TableBody.vue +3 -10
  107. package/datatable/TableHeader.vue +23 -50
  108. package/datatable/index.d.ts +89 -39
  109. package/datatable/index.mjs +444 -234
  110. package/datatable/index.mjs.map +1 -1
  111. package/datatable/style/index.mjs +32 -36
  112. package/datatable/style/index.mjs.map +1 -1
  113. package/dataview/index.mjs +2 -2
  114. package/dataview/index.mjs.map +1 -1
  115. package/dataview/style/index.mjs +6 -9
  116. package/dataview/style/index.mjs.map +1 -1
  117. package/datepicker/BaseDatePicker.vue +0 -4
  118. package/datepicker/DatePicker.vue +46 -20
  119. package/datepicker/index.d.ts +2 -6
  120. package/datepicker/index.mjs +78 -52
  121. package/datepicker/index.mjs.map +1 -1
  122. package/datepicker/style/index.mjs +26 -28
  123. package/datepicker/style/index.mjs.map +1 -1
  124. package/deferredcontent/index.mjs +1 -1
  125. package/dialog/Dialog.vue +3 -11
  126. package/dialog/index.d.ts +1 -1
  127. package/dialog/index.mjs +7 -14
  128. package/dialog/index.mjs.map +1 -1
  129. package/dialog/style/index.mjs +10 -14
  130. package/dialog/style/index.mjs.map +1 -1
  131. package/divider/index.mjs +1 -1
  132. package/divider/style/index.mjs +6 -10
  133. package/divider/style/index.mjs.map +1 -1
  134. package/dock/DockSub.vue +5 -13
  135. package/dock/index.mjs +6 -14
  136. package/dock/index.mjs.map +1 -1
  137. package/dock/style/index.mjs +9 -12
  138. package/dock/style/index.mjs.map +1 -1
  139. package/drawer/Drawer.vue +7 -4
  140. package/drawer/index.d.ts +4 -0
  141. package/drawer/index.mjs +7 -5
  142. package/drawer/index.mjs.map +1 -1
  143. package/drawer/style/index.mjs +10 -13
  144. package/drawer/style/index.mjs.map +1 -1
  145. package/dynamicdialog/DynamicDialog.vue +5 -5
  146. package/dynamicdialog/index.mjs +8 -6
  147. package/dynamicdialog/index.mjs.map +1 -1
  148. package/editor/Editor.vue +9 -11
  149. package/editor/index.d.ts +0 -15
  150. package/editor/index.mjs +16 -16
  151. package/editor/index.mjs.map +1 -1
  152. package/editor/style/index.mjs +4 -7
  153. package/editor/style/index.mjs.map +1 -1
  154. package/fieldset/Fieldset.vue +4 -12
  155. package/fieldset/index.mjs +9 -17
  156. package/fieldset/index.mjs.map +1 -1
  157. package/fieldset/style/index.mjs +4 -7
  158. package/fieldset/style/index.mjs.map +1 -1
  159. package/fileupload/FileUpload.vue +9 -7
  160. package/fileupload/index.d.ts +3 -3
  161. package/fileupload/index.mjs +12 -10
  162. package/fileupload/index.mjs.map +1 -1
  163. package/fileupload/style/index.mjs +4 -7
  164. package/fileupload/style/index.mjs.map +1 -1
  165. package/floatlabel/index.mjs +1 -1
  166. package/floatlabel/style/index.mjs +4 -8
  167. package/floatlabel/style/index.mjs.map +1 -1
  168. package/fluid/index.mjs +1 -1
  169. package/focustrap/index.mjs +4 -4
  170. package/focustrap/index.mjs.map +1 -1
  171. package/galleria/Galleria.vue +2 -1
  172. package/galleria/GalleriaContent.vue +3 -11
  173. package/galleria/GalleriaThumbnails.vue +15 -8
  174. package/galleria/index.mjs +28 -30
  175. package/galleria/index.mjs.map +1 -1
  176. package/galleria/style/index.mjs +23 -26
  177. package/galleria/style/index.mjs.map +1 -1
  178. package/iconfield/index.mjs +1 -1
  179. package/iconfield/style/index.mjs +2 -5
  180. package/iconfield/style/index.mjs.map +1 -1
  181. package/iftalabel/index.mjs +1 -1
  182. package/iftalabel/style/index.mjs +2 -5
  183. package/iftalabel/style/index.mjs.map +1 -1
  184. package/image/Image.vue +2 -1
  185. package/image/index.d.ts +4 -0
  186. package/image/index.mjs +6 -5
  187. package/image/index.mjs.map +1 -1
  188. package/image/style/index.mjs +8 -11
  189. package/image/style/index.mjs.map +1 -1
  190. package/imagecompare/index.mjs +1 -1
  191. package/imagecompare/style/index.mjs +2 -5
  192. package/imagecompare/style/index.mjs.map +1 -1
  193. package/index.d.ts +3 -0
  194. package/index.mjs +1 -0
  195. package/index.mjs.map +1 -1
  196. package/inlinemessage/index.mjs +1 -1
  197. package/inlinemessage/style/index.mjs +7 -10
  198. package/inlinemessage/style/index.mjs.map +1 -1
  199. package/inplace/index.mjs +4 -4
  200. package/inplace/style/index.mjs +4 -7
  201. package/inplace/style/index.mjs.map +1 -1
  202. package/inputchips/InputChips.vue +2 -10
  203. package/inputchips/index.mjs +6 -14
  204. package/inputchips/index.mjs.map +1 -1
  205. package/inputchips/style/index.mjs +11 -14
  206. package/inputchips/style/index.mjs.map +1 -1
  207. package/inputgroup/index.mjs +1 -1
  208. package/inputgroup/style/index.mjs +2 -5
  209. package/inputgroup/style/index.mjs.map +1 -1
  210. package/inputgroupaddon/index.mjs +1 -1
  211. package/inputicon/index.mjs +1 -1
  212. package/inputmask/InputMask.vue +26 -17
  213. package/inputmask/index.d.ts +2 -2
  214. package/inputmask/index.mjs +28 -17
  215. package/inputmask/index.mjs.map +1 -1
  216. package/inputnumber/InputNumber.vue +17 -6
  217. package/inputnumber/index.d.ts +4 -4
  218. package/inputnumber/index.mjs +20 -12
  219. package/inputnumber/index.mjs.map +1 -1
  220. package/inputnumber/style/index.mjs +12 -14
  221. package/inputnumber/style/index.mjs.map +1 -1
  222. package/inputotp/index.d.ts +23 -8
  223. package/inputotp/index.mjs +1 -1
  224. package/inputotp/style/index.mjs +2 -5
  225. package/inputotp/style/index.mjs.map +1 -1
  226. package/inputtext/InputText.vue +1 -1
  227. package/inputtext/index.d.ts +1 -1
  228. package/inputtext/index.mjs +3 -2
  229. package/inputtext/index.mjs.map +1 -1
  230. package/inputtext/style/index.mjs +5 -8
  231. package/inputtext/style/index.mjs.map +1 -1
  232. package/keyfilter/index.mjs +8 -9
  233. package/keyfilter/index.mjs.map +1 -1
  234. package/knob/index.mjs +3 -3
  235. package/knob/index.mjs.map +1 -1
  236. package/knob/style/index.mjs +5 -8
  237. package/knob/style/index.mjs.map +1 -1
  238. package/listbox/Listbox.vue +7 -13
  239. package/listbox/index.mjs +10 -16
  240. package/listbox/index.mjs.map +1 -1
  241. package/listbox/style/index.mjs +11 -14
  242. package/listbox/style/index.mjs.map +1 -1
  243. package/megamenu/MegaMenu.vue +9 -15
  244. package/megamenu/index.mjs +12 -18
  245. package/megamenu/index.mjs.map +1 -1
  246. package/megamenu/style/index.mjs +15 -18
  247. package/megamenu/style/index.mjs.map +1 -1
  248. package/menu/Menu.vue +9 -17
  249. package/menu/index.d.ts +10 -0
  250. package/menu/index.mjs +10 -17
  251. package/menu/index.mjs.map +1 -1
  252. package/menu/style/index.mjs +6 -9
  253. package/menu/style/index.mjs.map +1 -1
  254. package/menubar/Menubar.vue +10 -16
  255. package/menubar/index.mjs +14 -20
  256. package/menubar/index.mjs.map +1 -1
  257. package/menubar/style/index.mjs +10 -13
  258. package/menubar/style/index.mjs.map +1 -1
  259. package/message/index.mjs +4 -4
  260. package/message/style/index.mjs +4 -7
  261. package/message/style/index.mjs.map +1 -1
  262. package/metergroup/index.mjs +1 -1
  263. package/metergroup/style/index.mjs +6 -9
  264. package/metergroup/style/index.mjs.map +1 -1
  265. package/multiselect/MultiSelect.vue +23 -18
  266. package/multiselect/index.d.ts +12 -6
  267. package/multiselect/index.mjs +32 -28
  268. package/multiselect/index.mjs.map +1 -1
  269. package/multiselect/style/index.mjs +17 -20
  270. package/multiselect/style/index.mjs.map +1 -1
  271. package/orderlist/OrderList.vue +1 -10
  272. package/orderlist/index.mjs +7 -15
  273. package/orderlist/index.mjs.map +1 -1
  274. package/orderlist/style/index.mjs +2 -5
  275. package/orderlist/style/index.mjs.map +1 -1
  276. package/organizationchart/index.mjs +4 -4
  277. package/organizationchart/style/index.mjs +9 -12
  278. package/organizationchart/style/index.mjs.map +1 -1
  279. package/overlaybadge/index.mjs +1 -1
  280. package/overlaybadge/style/index.mjs +2 -5
  281. package/overlaybadge/style/index.mjs.map +1 -1
  282. package/package.json +6 -5
  283. package/paginator/index.mjs +2 -2
  284. package/paginator/index.mjs.map +1 -1
  285. package/paginator/style/index.mjs +18 -21
  286. package/paginator/style/index.mjs.map +1 -1
  287. package/panel/Panel.vue +5 -13
  288. package/panel/index.mjs +7 -15
  289. package/panel/index.mjs.map +1 -1
  290. package/panel/style/index.mjs +4 -7
  291. package/panel/style/index.mjs.map +1 -1
  292. package/panelmenu/PanelMenu.vue +2 -12
  293. package/panelmenu/index.mjs +8 -18
  294. package/panelmenu/index.mjs.map +1 -1
  295. package/panelmenu/style/index.mjs +8 -11
  296. package/panelmenu/style/index.mjs.map +1 -1
  297. package/passthrough/index.mjs +3 -3
  298. package/password/Password.vue +3 -10
  299. package/password/index.d.ts +2 -2
  300. package/password/index.mjs +9 -16
  301. package/password/index.mjs.map +1 -1
  302. package/password/style/index.mjs +8 -11
  303. package/password/style/index.mjs.map +1 -1
  304. package/picklist/PickList.vue +2 -9
  305. package/picklist/index.mjs +8 -14
  306. package/picklist/index.mjs.map +1 -1
  307. package/picklist/style/index.mjs +2 -5
  308. package/picklist/style/index.mjs.map +1 -1
  309. package/popover/Popover.vue +2 -2
  310. package/popover/index.mjs +4 -4
  311. package/popover/index.mjs.map +1 -1
  312. package/popover/style/index.mjs +2 -5
  313. package/popover/style/index.mjs.map +1 -1
  314. package/portal/index.mjs +1 -1
  315. package/progressbar/index.mjs +1 -1
  316. package/progressbar/style/index.mjs +4 -7
  317. package/progressbar/style/index.mjs.map +1 -1
  318. package/progressspinner/index.mjs +1 -1
  319. package/progressspinner/style/index.mjs +2 -5
  320. package/progressspinner/style/index.mjs.map +1 -1
  321. package/radiobutton/index.d.ts +2 -2
  322. package/radiobutton/index.mjs +1 -1
  323. package/radiobutton/index.mjs.map +1 -1
  324. package/radiobutton/style/index.mjs +5 -8
  325. package/radiobutton/style/index.mjs.map +1 -1
  326. package/radiobuttongroup/index.mjs +1 -1
  327. package/radiobuttongroup/style/index.mjs +2 -5
  328. package/radiobuttongroup/style/index.mjs.map +1 -1
  329. package/rating/Rating.vue +6 -11
  330. package/rating/index.mjs +7 -12
  331. package/rating/index.mjs.map +1 -1
  332. package/rating/style/index.mjs +11 -14
  333. package/rating/style/index.mjs.map +1 -1
  334. package/ripple/index.mjs +16 -13
  335. package/ripple/index.mjs.map +1 -1
  336. package/ripple/style/index.mjs +2 -5
  337. package/ripple/style/index.mjs.map +1 -1
  338. package/row/index.mjs.map +1 -1
  339. package/scrollpanel/ScrollPanel.vue +1 -10
  340. package/scrollpanel/index.mjs +3 -11
  341. package/scrollpanel/index.mjs.map +1 -1
  342. package/scrollpanel/style/index.mjs +2 -5
  343. package/scrollpanel/style/index.mjs.map +1 -1
  344. package/scrolltop/index.mjs +1 -1
  345. package/scrolltop/style/index.mjs +4 -7
  346. package/scrolltop/style/index.mjs.map +1 -1
  347. package/select/Select.vue +55 -26
  348. package/select/index.d.ts +9 -5
  349. package/select/index.mjs +89 -63
  350. package/select/index.mjs.map +1 -1
  351. package/select/style/index.mjs +15 -18
  352. package/select/style/index.mjs.map +1 -1
  353. package/selectbutton/index.mjs +3 -3
  354. package/selectbutton/style/index.mjs +4 -7
  355. package/selectbutton/style/index.mjs.map +1 -1
  356. package/skeleton/index.mjs +1 -1
  357. package/skeleton/style/index.mjs +4 -7
  358. package/skeleton/style/index.mjs.map +1 -1
  359. package/slider/Slider.vue +1 -1
  360. package/slider/index.mjs +3 -3
  361. package/slider/index.mjs.map +1 -1
  362. package/slider/style/index.mjs +5 -8
  363. package/slider/style/index.mjs.map +1 -1
  364. package/speeddial/SpeedDial.vue +8 -15
  365. package/speeddial/index.d.ts +1 -1
  366. package/speeddial/index.mjs +13 -19
  367. package/speeddial/index.mjs.map +1 -1
  368. package/speeddial/style/index.mjs +15 -18
  369. package/speeddial/style/index.mjs.map +1 -1
  370. package/splitbutton/SplitButton.vue +2 -11
  371. package/splitbutton/index.d.ts +2 -2
  372. package/splitbutton/index.mjs +3 -11
  373. package/splitbutton/index.mjs.map +1 -1
  374. package/splitbutton/style/index.mjs +5 -8
  375. package/splitbutton/style/index.mjs.map +1 -1
  376. package/splitter/Splitter.vue +31 -14
  377. package/splitter/index.d.ts +1 -1
  378. package/splitter/index.mjs +28 -14
  379. package/splitter/index.mjs.map +1 -1
  380. package/splitter/style/index.mjs +6 -9
  381. package/splitter/style/index.mjs.map +1 -1
  382. package/splitterpanel/index.mjs +1 -1
  383. package/step/index.mjs +1 -1
  384. package/step/index.mjs.map +1 -1
  385. package/stepitem/index.mjs +1 -1
  386. package/stepitem/index.mjs.map +1 -1
  387. package/steplist/index.mjs +1 -1
  388. package/steppanel/index.mjs +1 -1
  389. package/steppanel/index.mjs.map +1 -1
  390. package/steppanels/index.mjs +1 -1
  391. package/stepper/Stepper.vue +0 -8
  392. package/stepper/index.mjs +1 -9
  393. package/stepper/index.mjs.map +1 -1
  394. package/stepper/style/index.mjs +4 -7
  395. package/stepper/style/index.mjs.map +1 -1
  396. package/steps/index.mjs +2 -2
  397. package/steps/style/index.mjs +8 -11
  398. package/steps/style/index.mjs.map +1 -1
  399. package/styleclass/index.mjs +1 -1
  400. package/tab/Tab.vue +3 -3
  401. package/tab/index.mjs +4 -4
  402. package/tab/index.mjs.map +1 -1
  403. package/tablist/TabList.vue +2 -2
  404. package/tablist/index.mjs +4 -4
  405. package/tablist/index.mjs.map +1 -1
  406. package/tabmenu/index.mjs +2 -2
  407. package/tabmenu/index.mjs.map +1 -1
  408. package/tabmenu/style/index.mjs +6 -9
  409. package/tabmenu/style/index.mjs.map +1 -1
  410. package/tabpanel/index.mjs +1 -1
  411. package/tabpanel/index.mjs.map +1 -1
  412. package/tabpanels/index.mjs +1 -1
  413. package/tabs/Tabs.vue +0 -8
  414. package/tabs/index.mjs +1 -9
  415. package/tabs/index.mjs.map +1 -1
  416. package/tabs/style/index.mjs +4 -7
  417. package/tabs/style/index.mjs.map +1 -1
  418. package/tabview/TabView.vue +3 -9
  419. package/tabview/index.mjs +7 -13
  420. package/tabview/index.mjs.map +1 -1
  421. package/tabview/style/index.mjs +11 -14
  422. package/tabview/style/index.mjs.map +1 -1
  423. package/tag/index.mjs +1 -1
  424. package/tag/style/index.mjs +4 -7
  425. package/tag/style/index.mjs.map +1 -1
  426. package/terminal/index.mjs +1 -1
  427. package/terminal/style/index.mjs +2 -5
  428. package/terminal/style/index.mjs.map +1 -1
  429. package/textarea/Textarea.vue +5 -2
  430. package/textarea/index.d.ts +4 -4
  431. package/textarea/index.mjs +7 -3
  432. package/textarea/index.mjs.map +1 -1
  433. package/textarea/style/index.mjs +5 -8
  434. package/textarea/style/index.mjs.map +1 -1
  435. package/tieredmenu/TieredMenu.vue +8 -13
  436. package/tieredmenu/index.mjs +11 -16
  437. package/tieredmenu/index.mjs.map +1 -1
  438. package/tieredmenu/style/index.mjs +11 -14
  439. package/tieredmenu/style/index.mjs.map +1 -1
  440. package/timeline/index.d.ts +4 -0
  441. package/timeline/index.mjs +1 -1
  442. package/timeline/style/index.mjs +4 -7
  443. package/timeline/style/index.mjs.map +1 -1
  444. package/toast/BaseToast.vue +12 -0
  445. package/toast/ToastMessage.vue +38 -4
  446. package/toast/index.d.ts +12 -0
  447. package/toast/index.mjs +79 -15
  448. package/toast/index.mjs.map +1 -1
  449. package/toast/style/index.mjs +12 -15
  450. package/toast/style/index.mjs.map +1 -1
  451. package/togglebutton/ToggleButton.vue +1 -0
  452. package/togglebutton/index.mjs +3 -2
  453. package/togglebutton/index.mjs.map +1 -1
  454. package/togglebutton/style/index.mjs +5 -8
  455. package/togglebutton/style/index.mjs.map +1 -1
  456. package/toggleswitch/index.mjs +1 -1
  457. package/toggleswitch/index.mjs.map +1 -1
  458. package/toggleswitch/style/index.mjs +5 -8
  459. package/toggleswitch/style/index.mjs.map +1 -1
  460. package/toolbar/index.mjs +1 -1
  461. package/toolbar/style/index.mjs +2 -5
  462. package/toolbar/style/index.mjs.map +1 -1
  463. package/tooltip/index.mjs +62 -14
  464. package/tooltip/index.mjs.map +1 -1
  465. package/tooltip/style/index.mjs +2 -5
  466. package/tooltip/style/index.mjs.map +1 -1
  467. package/tree/Tree.vue +2 -2
  468. package/tree/index.mjs +16 -16
  469. package/tree/index.mjs.map +1 -1
  470. package/tree/style/index.mjs +8 -11
  471. package/tree/style/index.mjs.map +1 -1
  472. package/treeselect/TreeSelect.vue +21 -26
  473. package/treeselect/index.d.ts +2 -2
  474. package/treeselect/index.mjs +56 -72
  475. package/treeselect/index.mjs.map +1 -1
  476. package/treeselect/style/index.mjs +10 -13
  477. package/treeselect/style/index.mjs.map +1 -1
  478. package/treetable/BodyCell.vue +8 -5
  479. package/treetable/FooterCell.vue +2 -2
  480. package/treetable/HeaderCell.vue +4 -4
  481. package/treetable/index.d.ts +29 -0
  482. package/treetable/index.mjs +42 -35
  483. package/treetable/index.mjs.map +1 -1
  484. package/treetable/style/index.mjs +22 -25
  485. package/treetable/style/index.mjs.map +1 -1
  486. package/umd/primevue.min.js +1 -1
  487. package/utils/index.d.ts +9 -0
  488. package/utils/index.mjs +16 -0
  489. package/utils/index.mjs.map +1 -0
  490. package/utils/package.json +5 -0
  491. package/virtualscroller/VirtualScroller.vue +16 -10
  492. package/virtualscroller/index.mjs +21 -15
  493. package/virtualscroller/index.mjs.map +1 -1
  494. package/virtualscroller/style/index.mjs +2 -5
  495. package/virtualscroller/style/index.mjs.map +1 -1
  496. package/web-types.json +1 -1
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <span ref="container" :id="d_id" :class="cx('root')" :style="sx('root')" v-bind="ptmi('root')">
2
+ <span ref="container" :id="$id" :class="cx('root')" :style="sx('root')" v-bind="ptmi('root')">
3
3
  <InputText
4
4
  v-if="!inline"
5
5
  :ref="inputRef"
@@ -392,6 +392,7 @@
392
392
  :class="cx('pcDecrementButton')"
393
393
  :aria-label="$primevue.config.locale.prevMinute"
394
394
  :disabled="disabled"
395
+ :unstyled="unstyled"
395
396
  @mousedown="onTimePickerElementMouseDown($event, 1, -1)"
396
397
  @mouseup="onTimePickerElementMouseUp($event)"
397
398
  @keydown="onContainerButtonKeydown"
@@ -536,7 +537,7 @@
536
537
  import { absolutePosition, addStyle, find, findSingle, getAttribute, getFocusableElements, getIndex, getOuterWidth, isTouchDevice, relativePosition, setAttribute } from '@primeuix/utils/dom';
537
538
  import { localeComparator } from '@primeuix/utils/object';
538
539
  import { ZIndex } from '@primeuix/utils/zindex';
539
- import { ConnectedOverlayScrollHandler, UniqueComponentId } from '@primevue/core/utils';
540
+ import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';
540
541
  import CalendarIcon from '@primevue/icons/calendar';
541
542
  import ChevronDownIcon from '@primevue/icons/chevrondown';
542
543
  import ChevronLeftIcon from '@primevue/icons/chevronleft';
@@ -563,6 +564,7 @@ export default {
563
564
  outsideClickListener: null,
564
565
  resizeListener: null,
565
566
  matchMediaListener: null,
567
+ matchMediaOrientationListener: null,
566
568
  overlay: null,
567
569
  input: null,
568
570
  previousButton: null,
@@ -572,7 +574,6 @@ export default {
572
574
  typeUpdate: false,
573
575
  data() {
574
576
  return {
575
- d_id: this.id,
576
577
  currentMonth: null,
577
578
  currentYear: null,
578
579
  currentHour: null,
@@ -583,13 +584,11 @@ export default {
583
584
  overlayVisible: false,
584
585
  currentView: this.view,
585
586
  query: null,
586
- queryMatches: false
587
+ queryMatches: false,
588
+ queryOrientation: null
587
589
  };
588
590
  },
589
591
  watch: {
590
- id: function (newValue) {
591
- this.d_id = newValue || UniqueComponentId();
592
- },
593
592
  modelValue(newValue) {
594
593
  this.updateCurrentMetaData();
595
594
 
@@ -638,9 +637,9 @@ export default {
638
637
  this.updateCurrentMetaData();
639
638
  },
640
639
  mounted() {
641
- this.d_id = this.d_id || UniqueComponentId();
642
640
  this.createResponsiveStyle();
643
641
  this.bindMatchMediaListener();
642
+ this.bindMatchMediaOrientationListener();
644
643
 
645
644
  if (this.inline) {
646
645
  if (!this.disabled) {
@@ -674,6 +673,7 @@ export default {
674
673
  this.unbindOutsideClickListener();
675
674
  this.unbindResizeListener();
676
675
  this.unbindMatchMediaListener();
676
+ this.unbindMatchMediaOrientationListener();
677
677
 
678
678
  if (this.scrollHandler) {
679
679
  this.scrollHandler.destroy();
@@ -1075,6 +1075,26 @@ export default {
1075
1075
  this.matchMediaListener = null;
1076
1076
  }
1077
1077
  },
1078
+ bindMatchMediaOrientationListener() {
1079
+ if (!this.matchMediaOrientationListener) {
1080
+ const query = matchMedia(`(orientation: portrait)`);
1081
+
1082
+ this.queryOrientation = query;
1083
+
1084
+ this.matchMediaOrientationListener = () => {
1085
+ this.alignOverlay();
1086
+ };
1087
+
1088
+ this.queryOrientation.addEventListener('change', this.matchMediaOrientationListener);
1089
+ }
1090
+ },
1091
+ unbindMatchMediaOrientationListener() {
1092
+ if (this.matchMediaOrientationListener) {
1093
+ this.queryOrientation.removeEventListener('change', this.matchMediaOrientationListener);
1094
+ this.queryOrientation = null;
1095
+ this.matchMediaOrientationListener = null;
1096
+ }
1097
+ },
1078
1098
  isOutsideClicked(event) {
1079
1099
  return !(this.$el.isSameNode(event.target) || this.isNavIconClicked(event) || this.$el.contains(event.target) || (this.overlay && this.overlay.contains(event.target)));
1080
1100
  },
@@ -1251,7 +1271,7 @@ export default {
1251
1271
  },
1252
1272
  formatValue(value) {
1253
1273
  if (typeof value === 'string') {
1254
- return this.dateFormat ? this.formatDate(new Date(value), this.dateFormat) : value;
1274
+ return value;
1255
1275
  }
1256
1276
 
1257
1277
  let formattedValue = '';
@@ -1328,6 +1348,8 @@ export default {
1328
1348
  if (lookAhead(match)) {
1329
1349
  while (num.length < len) {
1330
1350
  num = '0' + num;
1351
+ this.selectionStart = this.selectionStart + 1;
1352
+ this.selectionEnd = this.selectionEnd + 1;
1331
1353
  }
1332
1354
  }
1333
1355
 
@@ -2546,19 +2568,23 @@ export default {
2546
2568
  if (this.timeOnly) {
2547
2569
  focusableElements[0].focus();
2548
2570
  } else {
2549
- let spanIndex = null;
2571
+ let elementIndex = focusableElements.findIndex((el) => el.tagName === 'SPAN');
2550
2572
 
2551
- for (let i = 0; i < focusableElements.length; i++) {
2552
- if (focusableElements[i].tagName === 'SPAN') {
2553
- spanIndex = i;
2554
- break;
2555
- }
2573
+ if (elementIndex === -1) {
2574
+ elementIndex = focusableElements.findIndex((el) => el.tagName === 'BUTTON');
2556
2575
  }
2557
2576
 
2558
- focusableElements[spanIndex].focus();
2577
+ if (elementIndex !== -1) {
2578
+ focusableElements[elementIndex].focus();
2579
+ } else {
2580
+ focusableElements[0].focus();
2581
+ }
2559
2582
  }
2560
- } else if (focusedIndex === focusableElements.length - 1) focusableElements[0].focus();
2561
- else focusableElements[focusedIndex + 1].focus();
2583
+ } else if (focusedIndex === focusableElements.length - 1) {
2584
+ focusableElements[0].focus();
2585
+ } else {
2586
+ focusableElements[focusedIndex + 1].focus();
2587
+ }
2562
2588
  }
2563
2589
  }
2564
2590
  }
@@ -2753,7 +2779,7 @@ export default {
2753
2779
 
2754
2780
  if (propValue && Array.isArray(propValue)) {
2755
2781
  if (this.isRangeSelection()) {
2756
- propValue = this.inline ? propValue[0] : propValue[1] || propValue[0];
2782
+ propValue = propValue[1] || propValue[0];
2757
2783
  } else if (this.isMultipleSelection()) {
2758
2784
  propValue = propValue[propValue.length - 1];
2759
2785
  }
@@ -2955,7 +2981,7 @@ export default {
2955
2981
  return this.numberOfMonths > 1 || this.disabled;
2956
2982
  },
2957
2983
  panelId() {
2958
- return this.d_id + '_panel';
2984
+ return this.$id + '_panel';
2959
2985
  }
2960
2986
  },
2961
2987
  components: {
@@ -719,9 +719,9 @@ export interface DatePickerProps {
719
719
  disabled?: boolean | undefined;
720
720
  /**
721
721
  * Specifies the input variant of the component.
722
- * @defaultValue outlined
722
+ * @defaultValue null
723
723
  */
724
- variant?: 'outlined' | 'filled' | undefined;
724
+ variant?: 'outlined' | 'filled' | undefined | null;
725
725
  /**
726
726
  * When present, it specifies that an input field is read-only.
727
727
  * @defaultValue false
@@ -736,10 +736,6 @@ export interface DatePickerProps {
736
736
  * @defaultValue body
737
737
  */
738
738
  appendTo?: HintedString<'body' | 'self'> | undefined | HTMLElement;
739
- /**
740
- * Identifier of the element.
741
- */
742
- id?: string | undefined;
743
739
  /**
744
740
  * Identifier of the underlying input element.
745
741
  */
@@ -1,7 +1,7 @@
1
- import { addStyle, isTouchDevice, relativePosition, getOuterWidth, absolutePosition, find, getIndex, getAttribute, findSingle, getFocusableElements, setAttribute } from '@primeuix/utils/dom';
1
+ import { setAttribute, getFocusableElements, find, findSingle, getIndex, getAttribute, relativePosition, getOuterWidth, absolutePosition, isTouchDevice, addStyle } from '@primeuix/utils/dom';
2
2
  import { localeComparator } from '@primeuix/utils/object';
3
3
  import { ZIndex } from '@primeuix/utils/zindex';
4
- import { UniqueComponentId, ConnectedOverlayScrollHandler } from '@primevue/core/utils';
4
+ import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';
5
5
  import CalendarIcon from '@primevue/icons/calendar';
6
6
  import ChevronDownIcon from '@primevue/icons/chevrondown';
7
7
  import ChevronLeftIcon from '@primevue/icons/chevronleft';
@@ -14,7 +14,7 @@ import Portal from 'primevue/portal';
14
14
  import Ripple from 'primevue/ripple';
15
15
  import BaseInput from '@primevue/core/baseinput';
16
16
  import DatePickerStyle from 'primevue/datepicker/style';
17
- import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createBlock, normalizeClass, normalizeStyle, createCommentVNode, renderSlot, createElementVNode, resolveDynamicComponent, Fragment, createVNode, withCtx, Transition, renderList, withDirectives, vShow, toDisplayString, createTextVNode, withKeys } from 'vue';
17
+ import { resolveComponent, resolveDirective, createElementBlock, openBlock, mergeProps, createBlock, createCommentVNode, renderSlot, createVNode, normalizeStyle, normalizeClass, createElementVNode, resolveDynamicComponent, Fragment, withCtx, Transition, renderList, withDirectives, vShow, toDisplayString, createTextVNode, withKeys } from 'vue';
18
18
 
19
19
  var script$1 = {
20
20
  name: 'BaseDatePicker',
@@ -181,10 +181,6 @@ var script$1 = {
181
181
  type: String,
182
182
  "default": null
183
183
  },
184
- id: {
185
- type: String,
186
- "default": null
187
- },
188
184
  inputId: {
189
185
  type: String,
190
186
  "default": null
@@ -268,7 +264,7 @@ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArra
268
264
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
269
265
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
270
266
  function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
271
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
267
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
272
268
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
273
269
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
274
270
  var script = {
@@ -287,6 +283,7 @@ var script = {
287
283
  outsideClickListener: null,
288
284
  resizeListener: null,
289
285
  matchMediaListener: null,
286
+ matchMediaOrientationListener: null,
290
287
  overlay: null,
291
288
  input: null,
292
289
  previousButton: null,
@@ -296,7 +293,6 @@ var script = {
296
293
  typeUpdate: false,
297
294
  data: function data() {
298
295
  return {
299
- d_id: this.id,
300
296
  currentMonth: null,
301
297
  currentYear: null,
302
298
  currentHour: null,
@@ -307,13 +303,11 @@ var script = {
307
303
  overlayVisible: false,
308
304
  currentView: this.view,
309
305
  query: null,
310
- queryMatches: false
306
+ queryMatches: false,
307
+ queryOrientation: null
311
308
  };
312
309
  },
313
310
  watch: {
314
- id: function id(newValue) {
315
- this.d_id = newValue || UniqueComponentId();
316
- },
317
311
  modelValue: function modelValue(newValue) {
318
312
  this.updateCurrentMetaData();
319
313
  if (!this.typeUpdate && !this.inline && this.input) {
@@ -362,9 +356,9 @@ var script = {
362
356
  this.updateCurrentMetaData();
363
357
  },
364
358
  mounted: function mounted() {
365
- this.d_id = this.d_id || UniqueComponentId();
366
359
  this.createResponsiveStyle();
367
360
  this.bindMatchMediaListener();
361
+ this.bindMatchMediaOrientationListener();
368
362
  if (this.inline) {
369
363
  if (!this.disabled) {
370
364
  this.preventFocus = true;
@@ -394,6 +388,7 @@ var script = {
394
388
  this.unbindOutsideClickListener();
395
389
  this.unbindResizeListener();
396
390
  this.unbindMatchMediaListener();
391
+ this.unbindMatchMediaOrientationListener();
397
392
  if (this.scrollHandler) {
398
393
  this.scrollHandler.destroy();
399
394
  this.scrollHandler = null;
@@ -790,6 +785,24 @@ var script = {
790
785
  this.matchMediaListener = null;
791
786
  }
792
787
  },
788
+ bindMatchMediaOrientationListener: function bindMatchMediaOrientationListener() {
789
+ var _this7 = this;
790
+ if (!this.matchMediaOrientationListener) {
791
+ var query = matchMedia("(orientation: portrait)");
792
+ this.queryOrientation = query;
793
+ this.matchMediaOrientationListener = function () {
794
+ _this7.alignOverlay();
795
+ };
796
+ this.queryOrientation.addEventListener('change', this.matchMediaOrientationListener);
797
+ }
798
+ },
799
+ unbindMatchMediaOrientationListener: function unbindMatchMediaOrientationListener() {
800
+ if (this.matchMediaOrientationListener) {
801
+ this.queryOrientation.removeEventListener('change', this.matchMediaOrientationListener);
802
+ this.queryOrientation = null;
803
+ this.matchMediaOrientationListener = null;
804
+ }
805
+ },
793
806
  isOutsideClicked: function isOutsideClicked(event) {
794
807
  return !(this.$el.isSameNode(event.target) || this.isNavIconClicked(event) || this.$el.contains(event.target) || this.overlay && this.overlay.contains(event.target));
795
808
  },
@@ -863,7 +876,7 @@ var script = {
863
876
  });
864
877
  },
865
878
  onDateSelect: function onDateSelect(event, dateMeta) {
866
- var _this7 = this;
879
+ var _this8 = this;
867
880
  if (this.disabled || !dateMeta.selectable) {
868
881
  return;
869
882
  }
@@ -875,7 +888,7 @@ var script = {
875
888
  }
876
889
  if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
877
890
  var newValue = this.d_value.filter(function (date) {
878
- return !_this7.isDateEquals(date, dateMeta);
891
+ return !_this8.isDateEquals(date, dateMeta);
879
892
  });
880
893
  this.updateModel(newValue);
881
894
  } else {
@@ -894,12 +907,12 @@ var script = {
894
907
  this.input.focus();
895
908
  }
896
909
  setTimeout(function () {
897
- _this7.overlayVisible = false;
910
+ _this8.overlayVisible = false;
898
911
  }, 150);
899
912
  }
900
913
  },
901
914
  selectDate: function selectDate(dateMeta) {
902
- var _this8 = this;
915
+ var _this9 = this;
903
916
  var date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
904
917
  if (this.showTime) {
905
918
  this.hourFormat === '12' && this.currentHour !== 12 && this.pm ? date.setHours(this.currentHour + 12) : date.setHours(this.currentHour);
@@ -943,7 +956,7 @@ var script = {
943
956
  }
944
957
  if (this.isRangeSelection() && this.hideOnRangeSelection && modelVal[1] !== null) {
945
958
  setTimeout(function () {
946
- _this8.overlayVisible = false;
959
+ _this9.overlayVisible = false;
947
960
  }, 150);
948
961
  }
949
962
  this.$emit('date-select', date);
@@ -965,7 +978,7 @@ var script = {
965
978
  },
966
979
  formatValue: function formatValue(value) {
967
980
  if (typeof value === 'string') {
968
- return this.dateFormat ? this.formatDate(new Date(value), this.dateFormat) : value;
981
+ return value;
969
982
  }
970
983
  var formattedValue = '';
971
984
  if (value) {
@@ -1011,6 +1024,7 @@ var script = {
1011
1024
  return formattedValue;
1012
1025
  },
1013
1026
  formatDate: function formatDate(date, format) {
1027
+ var _this10 = this;
1014
1028
  if (!date) {
1015
1029
  return '';
1016
1030
  }
@@ -1027,6 +1041,8 @@ var script = {
1027
1041
  if (lookAhead(match)) {
1028
1042
  while (num.length < len) {
1029
1043
  num = '0' + num;
1044
+ _this10.selectionStart = _this10.selectionStart + 1;
1045
+ _this10.selectionEnd = _this10.selectionEnd + 1;
1030
1046
  }
1031
1047
  }
1032
1048
  return num;
@@ -1149,11 +1165,11 @@ var script = {
1149
1165
  this.clearTimePickerTimer();
1150
1166
  },
1151
1167
  repeat: function repeat(event, interval, type, direction) {
1152
- var _this9 = this;
1168
+ var _this11 = this;
1153
1169
  var i = interval || 500;
1154
1170
  this.clearTimePickerTimer();
1155
1171
  this.timePickerTimer = setTimeout(function () {
1156
- _this9.repeat(event, 100, type, direction);
1172
+ _this11.repeat(event, 100, type, direction);
1157
1173
  }, i);
1158
1174
  switch (type) {
1159
1175
  case 0:
@@ -1283,7 +1299,7 @@ var script = {
1283
1299
  event.preventDefault();
1284
1300
  },
1285
1301
  updateModelTime: function updateModelTime() {
1286
- var _this10 = this;
1302
+ var _this12 = this;
1287
1303
  this.timePickerChange = true;
1288
1304
  var value = this.isComparable() ? this.d_value : this.viewDate;
1289
1305
  if (this.isRangeSelection()) {
@@ -1309,7 +1325,7 @@ var script = {
1309
1325
  this.updateModel(value);
1310
1326
  this.$emit('date-select', value);
1311
1327
  setTimeout(function () {
1312
- return _this10.timePickerChange = false;
1328
+ return _this12.timePickerChange = false;
1313
1329
  }, 0);
1314
1330
  },
1315
1331
  toggleAMPM: function toggleAMPM(event) {
@@ -1371,7 +1387,7 @@ var script = {
1371
1387
  }
1372
1388
  },
1373
1389
  isValidSelection: function isValidSelection(value) {
1374
- var _this11 = this;
1390
+ var _this13 = this;
1375
1391
  if (value == null) {
1376
1392
  return true;
1377
1393
  }
@@ -1381,7 +1397,7 @@ var script = {
1381
1397
  isValid = false;
1382
1398
  }
1383
1399
  } else if (value.every(function (v) {
1384
- return _this11.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
1400
+ return _this13.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
1385
1401
  })) {
1386
1402
  if (this.isRangeSelection()) {
1387
1403
  isValid = value.length > 1 && value[1] >= value[0];
@@ -2116,16 +2132,25 @@ var script = {
2116
2132
  if (this.timeOnly) {
2117
2133
  focusableElements[0].focus();
2118
2134
  } else {
2119
- var spanIndex = null;
2120
- for (var i = 0; i < focusableElements.length; i++) {
2121
- if (focusableElements[i].tagName === 'SPAN') {
2122
- spanIndex = i;
2123
- break;
2124
- }
2135
+ var elementIndex = focusableElements.findIndex(function (el) {
2136
+ return el.tagName === 'SPAN';
2137
+ });
2138
+ if (elementIndex === -1) {
2139
+ elementIndex = focusableElements.findIndex(function (el) {
2140
+ return el.tagName === 'BUTTON';
2141
+ });
2142
+ }
2143
+ if (elementIndex !== -1) {
2144
+ focusableElements[elementIndex].focus();
2145
+ } else {
2146
+ focusableElements[0].focus();
2125
2147
  }
2126
- focusableElements[spanIndex].focus();
2127
2148
  }
2128
- } else if (focusedIndex === focusableElements.length - 1) focusableElements[0].focus();else focusableElements[focusedIndex + 1].focus();
2149
+ } else if (focusedIndex === focusableElements.length - 1) {
2150
+ focusableElements[0].focus();
2151
+ } else {
2152
+ focusableElements[focusedIndex + 1].focus();
2153
+ }
2129
2154
  }
2130
2155
  }
2131
2156
  }
@@ -2296,7 +2321,7 @@ var script = {
2296
2321
  var propValue = this.d_value;
2297
2322
  if (propValue && Array.isArray(propValue)) {
2298
2323
  if (this.isRangeSelection()) {
2299
- propValue = this.inline ? propValue[0] : propValue[1] || propValue[0];
2324
+ propValue = propValue[1] || propValue[0];
2300
2325
  } else if (this.isMultipleSelection()) {
2301
2326
  propValue = propValue[propValue.length - 1];
2302
2327
  }
@@ -2416,20 +2441,20 @@ var script = {
2416
2441
  return this.dateFormat || this.$primevue.config.locale.dateFormat;
2417
2442
  },
2418
2443
  monthPickerValues: function monthPickerValues() {
2419
- var _this12 = this;
2444
+ var _this14 = this;
2420
2445
  var monthPickerValues = [];
2421
2446
  var isSelectableMonth = function isSelectableMonth(baseMonth) {
2422
- if (_this12.minDate) {
2423
- var minMonth = _this12.minDate.getMonth();
2424
- var minYear = _this12.minDate.getFullYear();
2425
- if (_this12.currentYear < minYear || _this12.currentYear === minYear && baseMonth < minMonth) {
2447
+ if (_this14.minDate) {
2448
+ var minMonth = _this14.minDate.getMonth();
2449
+ var minYear = _this14.minDate.getFullYear();
2450
+ if (_this14.currentYear < minYear || _this14.currentYear === minYear && baseMonth < minMonth) {
2426
2451
  return false;
2427
2452
  }
2428
2453
  }
2429
- if (_this12.maxDate) {
2430
- var maxMonth = _this12.maxDate.getMonth();
2431
- var maxYear = _this12.maxDate.getFullYear();
2432
- if (_this12.currentYear > maxYear || _this12.currentYear === maxYear && baseMonth > maxMonth) {
2454
+ if (_this14.maxDate) {
2455
+ var maxMonth = _this14.maxDate.getMonth();
2456
+ var maxYear = _this14.maxDate.getFullYear();
2457
+ if (_this14.currentYear > maxYear || _this14.currentYear === maxYear && baseMonth > maxMonth) {
2433
2458
  return false;
2434
2459
  }
2435
2460
  }
@@ -2444,15 +2469,15 @@ var script = {
2444
2469
  return monthPickerValues;
2445
2470
  },
2446
2471
  yearPickerValues: function yearPickerValues() {
2447
- var _this13 = this;
2472
+ var _this15 = this;
2448
2473
  var yearPickerValues = [];
2449
2474
  var base = this.currentYear - this.currentYear % 10;
2450
2475
  var isSelectableYear = function isSelectableYear(baseYear) {
2451
- if (_this13.minDate) {
2452
- if (_this13.minDate.getFullYear() > baseYear) return false;
2476
+ if (_this15.minDate) {
2477
+ if (_this15.minDate.getFullYear() > baseYear) return false;
2453
2478
  }
2454
- if (_this13.maxDate) {
2455
- if (_this13.maxDate.getFullYear() < baseYear) return false;
2479
+ if (_this15.maxDate) {
2480
+ if (_this15.maxDate.getFullYear() < baseYear) return false;
2456
2481
  }
2457
2482
  return true;
2458
2483
  };
@@ -2492,7 +2517,7 @@ var script = {
2492
2517
  return this.numberOfMonths > 1 || this.disabled;
2493
2518
  },
2494
2519
  panelId: function panelId() {
2495
- return this.d_id + '_panel';
2520
+ return this.$id + '_panel';
2496
2521
  }
2497
2522
  },
2498
2523
  components: {
@@ -2531,7 +2556,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2531
2556
  var _directive_ripple = resolveDirective("ripple");
2532
2557
  return openBlock(), createElementBlock("span", mergeProps({
2533
2558
  ref: "container",
2534
- id: $data.d_id,
2559
+ id: _ctx.$id,
2535
2560
  "class": _ctx.cx('root'),
2536
2561
  style: _ctx.sx('root')
2537
2562
  }, _ctx.ptmi('root')), [!_ctx.inline ? (openBlock(), createBlock(_component_InputText, {
@@ -3113,6 +3138,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
3113
3138
  "class": _ctx.cx('pcDecrementButton'),
3114
3139
  "aria-label": _ctx.$primevue.config.locale.prevMinute,
3115
3140
  disabled: _ctx.disabled,
3141
+ unstyled: _ctx.unstyled,
3116
3142
  onMousedown: _cache[30] || (_cache[30] = function ($event) {
3117
3143
  return $options.onTimePickerElementMouseDown($event, 1, -1);
3118
3144
  }),
@@ -3146,7 +3172,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
3146
3172
  })];
3147
3173
  }),
3148
3174
  _: 3
3149
- }, 16, ["class", "aria-label", "disabled", "onKeydown", "pt"])], 16), _ctx.showSeconds ? (openBlock(), createElementBlock("div", mergeProps({
3175
+ }, 16, ["class", "aria-label", "disabled", "unstyled", "onKeydown", "pt"])], 16), _ctx.showSeconds ? (openBlock(), createElementBlock("div", mergeProps({
3150
3176
  key: 0,
3151
3177
  "class": _ctx.cx('separatorContainer')
3152
3178
  }, _ctx.ptm('separatorContainer'), {