primevue 3.16.2 → 3.17.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 (797) hide show
  1. package/README.md +2 -1
  2. package/accordion/Accordion.d.ts +23 -5
  3. package/accordion/Accordion.vue +194 -77
  4. package/accordion/accordion.cjs.js +202 -96
  5. package/accordion/accordion.cjs.min.js +1 -1
  6. package/accordion/accordion.esm.js +200 -98
  7. package/accordion/accordion.esm.min.js +1 -1
  8. package/accordion/accordion.js +203 -98
  9. package/accordion/accordion.min.js +1 -1
  10. package/accordiontab/AccordionTab.d.ts +33 -5
  11. package/accordiontab/AccordionTab.vue +8 -1
  12. package/accordiontab/accordiontab.cjs.js +7 -0
  13. package/accordiontab/accordiontab.cjs.min.js +1 -1
  14. package/accordiontab/accordiontab.esm.js +7 -0
  15. package/accordiontab/accordiontab.esm.min.js +1 -1
  16. package/accordiontab/accordiontab.js +7 -0
  17. package/accordiontab/accordiontab.min.js +1 -1
  18. package/api/Api.d.ts +1 -1
  19. package/api/api.cjs.js +299 -313
  20. package/api/api.esm.js +299 -313
  21. package/api/api.js +299 -313
  22. package/autocomplete/AutoComplete.d.ts +22 -17
  23. package/autocomplete/AutoComplete.vue +239 -126
  24. package/autocomplete/autocomplete.cjs.js +145 -108
  25. package/autocomplete/autocomplete.cjs.min.js +1 -1
  26. package/autocomplete/autocomplete.esm.js +146 -109
  27. package/autocomplete/autocomplete.esm.min.js +1 -1
  28. package/autocomplete/autocomplete.js +145 -108
  29. package/autocomplete/autocomplete.min.js +1 -1
  30. package/avatar/Avatar.d.ts +4 -4
  31. package/avatar/Avatar.vue +15 -11
  32. package/avatar/avatar.cjs.js +11 -7
  33. package/avatar/avatar.cjs.min.js +1 -1
  34. package/avatar/avatar.esm.js +11 -7
  35. package/avatar/avatar.esm.min.js +1 -1
  36. package/avatar/avatar.js +11 -7
  37. package/avatar/avatar.min.js +1 -1
  38. package/avatargroup/AvatarGroup.d.ts +6 -9
  39. package/avatargroup/AvatarGroup.vue +1 -1
  40. package/badge/Badge.d.ts +4 -5
  41. package/badge/Badge.vue +16 -13
  42. package/badge/badge.cjs.js +14 -11
  43. package/badge/badge.esm.js +14 -11
  44. package/badge/badge.js +14 -11
  45. package/badgedirective/badgedirective.cjs.js +8 -10
  46. package/badgedirective/badgedirective.esm.js +8 -10
  47. package/badgedirective/badgedirective.js +8 -10
  48. package/blockui/BlockUI.d.ts +6 -6
  49. package/blockui/BlockUI.vue +13 -15
  50. package/blockui/blockui.cjs.js +11 -13
  51. package/blockui/blockui.cjs.min.js +1 -1
  52. package/blockui/blockui.esm.js +11 -13
  53. package/blockui/blockui.esm.min.js +1 -1
  54. package/blockui/blockui.js +11 -13
  55. package/blockui/blockui.min.js +1 -1
  56. package/breadcrumb/Breadcrumb.d.ts +5 -6
  57. package/breadcrumb/Breadcrumb.vue +2 -2
  58. package/breadcrumb/BreadcrumbItem.vue +18 -15
  59. package/breadcrumb/breadcrumb.cjs.js +15 -12
  60. package/breadcrumb/breadcrumb.esm.js +15 -12
  61. package/breadcrumb/breadcrumb.js +15 -12
  62. package/button/Button.d.ts +10 -7
  63. package/button/Button.vue +22 -14
  64. package/button/button.cjs.js +19 -11
  65. package/button/button.cjs.min.js +1 -1
  66. package/button/button.esm.js +19 -11
  67. package/button/button.esm.min.js +1 -1
  68. package/button/button.js +19 -11
  69. package/button/button.min.js +1 -1
  70. package/calendar/Calendar.d.ts +14 -14
  71. package/calendar/Calendar.vue +793 -583
  72. package/calendar/calendar.cjs.js +581 -526
  73. package/calendar/calendar.cjs.min.js +1 -1
  74. package/calendar/calendar.esm.js +581 -526
  75. package/calendar/calendar.esm.min.js +1 -1
  76. package/calendar/calendar.js +581 -526
  77. package/calendar/calendar.min.js +1 -1
  78. package/card/Card.d.ts +5 -7
  79. package/card/Card.vue +5 -5
  80. package/carousel/Carousel.d.ts +29 -19
  81. package/carousel/Carousel.vue +537 -528
  82. package/carousel/carousel.cjs.js +496 -493
  83. package/carousel/carousel.cjs.min.js +1 -1
  84. package/carousel/carousel.esm.js +496 -493
  85. package/carousel/carousel.esm.min.js +1 -1
  86. package/carousel/carousel.js +645 -642
  87. package/carousel/carousel.min.js +1 -1
  88. package/cascadeselect/CascadeSelect.d.ts +19 -14
  89. package/cascadeselect/CascadeSelect.vue +186 -100
  90. package/cascadeselect/CascadeSelectSub.vue +44 -14
  91. package/cascadeselect/cascadeselect.cjs.js +156 -95
  92. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  93. package/cascadeselect/cascadeselect.esm.js +157 -96
  94. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  95. package/cascadeselect/cascadeselect.js +156 -95
  96. package/cascadeselect/cascadeselect.min.js +1 -1
  97. package/chart/Chart.d.ts +6 -7
  98. package/chart/Chart.vue +12 -12
  99. package/chart/chart.cjs.js +11 -11
  100. package/chart/chart.cjs.min.js +1 -1
  101. package/chart/chart.esm.js +11 -11
  102. package/chart/chart.esm.min.js +1 -1
  103. package/chart/chart.js +11 -11
  104. package/chart/chart.min.js +1 -1
  105. package/checkbox/Checkbox.d.ts +12 -12
  106. package/checkbox/Checkbox.vue +48 -20
  107. package/checkbox/checkbox.cjs.js +28 -17
  108. package/checkbox/checkbox.cjs.min.js +1 -1
  109. package/checkbox/checkbox.esm.js +28 -17
  110. package/checkbox/checkbox.esm.min.js +1 -1
  111. package/checkbox/checkbox.js +28 -17
  112. package/checkbox/checkbox.min.js +1 -1
  113. package/chip/Chip.d.ts +5 -5
  114. package/chip/Chip.vue +13 -11
  115. package/chip/chip.cjs.js +7 -4
  116. package/chip/chip.esm.js +7 -4
  117. package/chip/chip.js +7 -4
  118. package/chips/Chips.d.ts +9 -9
  119. package/chips/Chips.vue +89 -33
  120. package/chips/chips.cjs.js +48 -26
  121. package/chips/chips.cjs.min.js +1 -1
  122. package/chips/chips.esm.js +48 -26
  123. package/chips/chips.esm.min.js +1 -1
  124. package/chips/chips.js +48 -26
  125. package/chips/chips.min.js +1 -1
  126. package/colorpicker/ColorPicker.d.ts +11 -12
  127. package/colorpicker/ColorPicker.vue +146 -110
  128. package/colorpicker/colorpicker.cjs.js +113 -74
  129. package/colorpicker/colorpicker.cjs.min.js +1 -1
  130. package/colorpicker/colorpicker.esm.js +113 -74
  131. package/colorpicker/colorpicker.esm.min.js +1 -1
  132. package/colorpicker/colorpicker.js +113 -74
  133. package/colorpicker/colorpicker.min.js +1 -1
  134. package/column/Column.d.ts +5 -6
  135. package/column/Column.vue +1 -1
  136. package/columngroup/ColumnGroup.d.ts +5 -7
  137. package/columngroup/ColumnGroup.vue +1 -1
  138. package/config/PrimeVue.d.ts +4 -2
  139. package/config/config.cjs.js +14 -29
  140. package/config/config.cjs.min.js +1 -1
  141. package/config/config.esm.js +14 -29
  142. package/config/config.esm.min.js +1 -1
  143. package/config/config.js +14 -29
  144. package/config/config.min.js +1 -1
  145. package/confirmationoptions/ConfirmationOptions.d.ts +4 -0
  146. package/confirmationservice/confirmationservice.cjs.js +1 -0
  147. package/confirmationservice/confirmationservice.esm.js +1 -0
  148. package/confirmationservice/confirmationservice.js +1 -0
  149. package/confirmdialog/ConfirmDialog.d.ts +11 -5
  150. package/confirmdialog/ConfirmDialog.vue +25 -15
  151. package/confirmdialog/confirmdialog.cjs.js +34 -16
  152. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  153. package/confirmdialog/confirmdialog.esm.js +34 -16
  154. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  155. package/confirmdialog/confirmdialog.js +35 -17
  156. package/confirmdialog/confirmdialog.min.js +1 -1
  157. package/confirmpopup/ConfirmPopup.d.ts +5 -8
  158. package/confirmpopup/ConfirmPopup.vue +44 -32
  159. package/confirmpopup/confirmpopup.cjs.js +24 -14
  160. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  161. package/confirmpopup/confirmpopup.esm.js +24 -14
  162. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  163. package/confirmpopup/confirmpopup.js +24 -14
  164. package/confirmpopup/confirmpopup.min.js +1 -1
  165. package/contextmenu/ContextMenu.d.ts +4 -5
  166. package/contextmenu/ContextMenu.vue +23 -19
  167. package/contextmenu/ContextMenuSub.vue +54 -42
  168. package/contextmenu/contextmenu.cjs.js +52 -44
  169. package/contextmenu/contextmenu.cjs.min.js +1 -1
  170. package/contextmenu/contextmenu.esm.js +52 -44
  171. package/contextmenu/contextmenu.esm.min.js +1 -1
  172. package/contextmenu/contextmenu.js +52 -44
  173. package/contextmenu/contextmenu.min.js +1 -1
  174. package/core/core.js +1918 -1744
  175. package/core/core.min.js +14 -14
  176. package/datatable/BodyCell.vue +93 -75
  177. package/datatable/ColumnFilter.vue +137 -86
  178. package/datatable/DataTable.d.ts +24 -24
  179. package/datatable/DataTable.vue +470 -296
  180. package/datatable/FooterCell.vue +20 -13
  181. package/datatable/HeaderCell.vue +108 -51
  182. package/datatable/HeaderCheckbox.vue +12 -5
  183. package/datatable/RowCheckbox.vue +14 -6
  184. package/datatable/RowRadioButton.vue +4 -4
  185. package/datatable/TableBody.vue +135 -83
  186. package/datatable/TableFooter.vue +17 -20
  187. package/datatable/TableHeader.vue +132 -52
  188. package/datatable/TableLoadingBody.vue +3 -3
  189. package/datatable/datatable.cjs.js +696 -559
  190. package/datatable/datatable.cjs.min.js +1 -1
  191. package/datatable/datatable.esm.js +696 -559
  192. package/datatable/datatable.esm.min.js +1 -1
  193. package/datatable/datatable.js +696 -559
  194. package/datatable/datatable.min.js +1 -1
  195. package/dataview/DataView.d.ts +8 -8
  196. package/dataview/DataView.vue +80 -66
  197. package/dataview/dataview.cjs.js +31 -35
  198. package/dataview/dataview.cjs.min.js +1 -1
  199. package/dataview/dataview.esm.js +31 -35
  200. package/dataview/dataview.esm.min.js +1 -1
  201. package/dataview/dataview.js +31 -35
  202. package/dataview/dataview.min.js +1 -1
  203. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +5 -6
  204. package/dataviewlayoutoptions/DataViewLayoutOptions.vue +28 -34
  205. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +19 -25
  206. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
  207. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +19 -25
  208. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  209. package/dataviewlayoutoptions/dataviewlayoutoptions.js +46 -52
  210. package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
  211. package/deferredcontent/DeferredContent.d.ts +6 -7
  212. package/deferredcontent/DeferredContent.vue +6 -9
  213. package/deferredcontent/deferredcontent.cjs.js +5 -8
  214. package/deferredcontent/deferredcontent.esm.js +5 -8
  215. package/deferredcontent/deferredcontent.js +5 -8
  216. package/dialog/Dialog.d.ts +10 -10
  217. package/dialog/Dialog.vue +64 -60
  218. package/dialog/dialog.cjs.js +50 -46
  219. package/dialog/dialog.cjs.min.js +1 -1
  220. package/dialog/dialog.esm.js +50 -46
  221. package/dialog/dialog.esm.min.js +1 -1
  222. package/dialog/dialog.js +50 -46
  223. package/dialog/dialog.min.js +1 -1
  224. package/divider/Divider.d.ts +4 -5
  225. package/divider/Divider.vue +15 -12
  226. package/divider/divider.cjs.js +17 -12
  227. package/divider/divider.cjs.min.js +1 -1
  228. package/divider/divider.esm.js +17 -12
  229. package/divider/divider.esm.min.js +1 -1
  230. package/divider/divider.js +17 -12
  231. package/divider/divider.min.js +1 -1
  232. package/dock/Dock.d.ts +5 -6
  233. package/dock/Dock.vue +3 -3
  234. package/dock/DockSub.vue +46 -25
  235. package/dock/dock.cjs.js +30 -23
  236. package/dock/dock.cjs.min.js +1 -1
  237. package/dock/dock.esm.js +30 -23
  238. package/dock/dock.esm.min.js +1 -1
  239. package/dock/dock.js +30 -23
  240. package/dock/dock.min.js +1 -1
  241. package/dropdown/Dropdown.d.ts +31 -17
  242. package/dropdown/Dropdown.vue +255 -125
  243. package/dropdown/dropdown.cjs.js +177 -109
  244. package/dropdown/dropdown.cjs.min.js +1 -1
  245. package/dropdown/dropdown.esm.js +178 -110
  246. package/dropdown/dropdown.esm.min.js +1 -1
  247. package/dropdown/dropdown.js +177 -109
  248. package/dropdown/dropdown.min.js +1 -1
  249. package/dynamicdialog/DynamicDialog.d.ts +4 -4
  250. package/dynamicdialog/DynamicDialog.vue +10 -10
  251. package/dynamicdialog/dynamicdialog.cjs.js +11 -9
  252. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  253. package/dynamicdialog/dynamicdialog.esm.js +11 -9
  254. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  255. package/dynamicdialog/dynamicdialog.js +11 -9
  256. package/dynamicdialog/dynamicdialog.min.js +1 -1
  257. package/editor/Editor.d.ts +20 -4
  258. package/editor/Editor.vue +506 -466
  259. package/editor/editor.cjs.js +99 -45
  260. package/editor/editor.cjs.min.js +1 -1
  261. package/editor/editor.esm.js +82 -42
  262. package/editor/editor.esm.min.js +1 -1
  263. package/editor/editor.js +83 -47
  264. package/editor/editor.min.js +1 -1
  265. package/fieldset/Fieldset.d.ts +9 -5
  266. package/fieldset/Fieldset.vue +28 -20
  267. package/fieldset/fieldset.cjs.js +31 -19
  268. package/fieldset/fieldset.cjs.min.js +1 -1
  269. package/fieldset/fieldset.esm.js +32 -20
  270. package/fieldset/fieldset.esm.min.js +1 -1
  271. package/fieldset/fieldset.js +31 -19
  272. package/fieldset/fieldset.min.js +1 -1
  273. package/fileupload/FileUpload.d.ts +11 -11
  274. package/fileupload/FileUpload.vue +75 -69
  275. package/fileupload/fileupload.cjs.js +56 -50
  276. package/fileupload/fileupload.cjs.min.js +1 -1
  277. package/fileupload/fileupload.esm.js +56 -50
  278. package/fileupload/fileupload.esm.min.js +1 -1
  279. package/fileupload/fileupload.js +56 -50
  280. package/fileupload/fileupload.min.js +1 -1
  281. package/fullcalendar/FullCalendar.d.ts +5 -7
  282. package/fullcalendar/FullCalendar.vue +6 -6
  283. package/fullcalendar/fullcalendar.cjs.js +3 -2
  284. package/fullcalendar/fullcalendar.esm.js +3 -2
  285. package/fullcalendar/fullcalendar.js +3 -2
  286. package/galleria/Galleria.d.ts +4 -4
  287. package/galleria/Galleria.vue +39 -34
  288. package/galleria/GalleriaContent.vue +58 -31
  289. package/galleria/GalleriaItem.vue +44 -36
  290. package/galleria/GalleriaItemSlot.vue +2 -1
  291. package/galleria/GalleriaThumbnails.vue +107 -91
  292. package/galleria/galleria.cjs.js +180 -152
  293. package/galleria/galleria.cjs.min.js +1 -1
  294. package/galleria/galleria.esm.js +180 -152
  295. package/galleria/galleria.esm.min.js +1 -1
  296. package/galleria/galleria.js +180 -152
  297. package/galleria/galleria.min.js +1 -1
  298. package/image/Image.d.ts +4 -5
  299. package/image/Image.vue +19 -15
  300. package/image/image.cjs.js +11 -7
  301. package/image/image.cjs.min.js +1 -1
  302. package/image/image.esm.js +11 -7
  303. package/image/image.esm.min.js +1 -1
  304. package/image/image.js +11 -7
  305. package/image/image.min.js +1 -1
  306. package/inlinemessage/InlineMessage.d.ts +4 -5
  307. package/inlinemessage/InlineMessage.vue +12 -9
  308. package/inlinemessage/inlinemessage.cjs.js +11 -8
  309. package/inlinemessage/inlinemessage.esm.js +11 -8
  310. package/inlinemessage/inlinemessage.js +11 -8
  311. package/inplace/Inplace.d.ts +6 -6
  312. package/inplace/Inplace.vue +11 -11
  313. package/inplace/inplace.cjs.js +9 -9
  314. package/inplace/inplace.cjs.min.js +1 -1
  315. package/inplace/inplace.esm.js +9 -9
  316. package/inplace/inplace.esm.min.js +1 -1
  317. package/inplace/inplace.js +9 -9
  318. package/inplace/inplace.min.js +1 -1
  319. package/inputmask/InputMask.d.ts +11 -12
  320. package/inputmask/InputMask.vue +119 -92
  321. package/inputmask/inputmask.cjs.js +116 -89
  322. package/inputmask/inputmask.cjs.min.js +1 -1
  323. package/inputmask/inputmask.esm.js +116 -89
  324. package/inputmask/inputmask.esm.min.js +1 -1
  325. package/inputmask/inputmask.js +116 -89
  326. package/inputmask/inputmask.min.js +1 -1
  327. package/inputnumber/InputNumber.d.ts +17 -17
  328. package/inputnumber/InputNumber.vue +237 -177
  329. package/inputnumber/inputnumber.cjs.js +208 -171
  330. package/inputnumber/inputnumber.cjs.min.js +1 -1
  331. package/inputnumber/inputnumber.esm.js +208 -171
  332. package/inputnumber/inputnumber.esm.min.js +1 -1
  333. package/inputnumber/inputnumber.js +208 -171
  334. package/inputnumber/inputnumber.min.js +1 -1
  335. package/inputswitch/InputSwitch.d.ts +10 -10
  336. package/inputswitch/InputSwitch.vue +39 -11
  337. package/inputswitch/inputswitch.cjs.js +23 -9
  338. package/inputswitch/inputswitch.cjs.min.js +1 -1
  339. package/inputswitch/inputswitch.esm.js +23 -9
  340. package/inputswitch/inputswitch.esm.min.js +1 -1
  341. package/inputswitch/inputswitch.js +23 -9
  342. package/inputswitch/inputswitch.min.js +1 -1
  343. package/inputtext/InputText.d.ts +5 -6
  344. package/inputtext/InputText.vue +3 -3
  345. package/inputtext/inputtext.cjs.js +2 -2
  346. package/inputtext/inputtext.esm.js +2 -2
  347. package/inputtext/inputtext.js +2 -2
  348. package/knob/Knob.d.ts +10 -11
  349. package/knob/Knob.vue +47 -29
  350. package/knob/knob.cjs.js +27 -25
  351. package/knob/knob.cjs.min.js +1 -1
  352. package/knob/knob.esm.js +27 -25
  353. package/knob/knob.esm.min.js +1 -1
  354. package/knob/knob.js +27 -25
  355. package/knob/knob.min.js +1 -1
  356. package/listbox/Listbox.d.ts +17 -13
  357. package/listbox/Listbox.vue +144 -97
  358. package/listbox/listbox.cjs.js +96 -86
  359. package/listbox/listbox.cjs.min.js +1 -1
  360. package/listbox/listbox.esm.js +97 -87
  361. package/listbox/listbox.esm.min.js +1 -1
  362. package/listbox/listbox.js +96 -86
  363. package/listbox/listbox.min.js +1 -1
  364. package/megamenu/MegaMenu.d.ts +5 -6
  365. package/megamenu/MegaMenu.vue +108 -94
  366. package/megamenu/megamenu.cjs.js +77 -72
  367. package/megamenu/megamenu.cjs.min.js +1 -1
  368. package/megamenu/megamenu.esm.js +77 -72
  369. package/megamenu/megamenu.esm.min.js +1 -1
  370. package/megamenu/megamenu.js +77 -72
  371. package/megamenu/megamenu.min.js +1 -1
  372. package/menu/Menu.d.ts +5 -8
  373. package/menu/Menu.vue +29 -23
  374. package/menu/Menuitem.vue +21 -18
  375. package/menu/menu.cjs.js +38 -29
  376. package/menu/menu.cjs.min.js +1 -1
  377. package/menu/menu.esm.js +38 -29
  378. package/menu/menu.esm.min.js +1 -1
  379. package/menu/menu.js +38 -29
  380. package/menu/menu.min.js +1 -1
  381. package/menubar/Menubar.d.ts +5 -6
  382. package/menubar/Menubar.vue +14 -15
  383. package/menubar/MenubarSub.vue +79 -62
  384. package/menubar/menubar.cjs.js +56 -58
  385. package/menubar/menubar.cjs.min.js +1 -1
  386. package/menubar/menubar.esm.js +56 -58
  387. package/menubar/menubar.esm.min.js +1 -1
  388. package/menubar/menubar.js +56 -58
  389. package/menubar/menubar.min.js +1 -1
  390. package/menuitem/MenuItem.d.ts +2 -2
  391. package/message/Message.d.ts +5 -5
  392. package/message/Message.vue +19 -14
  393. package/message/message.cjs.js +15 -10
  394. package/message/message.cjs.min.js +1 -1
  395. package/message/message.esm.js +15 -10
  396. package/message/message.esm.min.js +1 -1
  397. package/message/message.js +15 -10
  398. package/message/message.min.js +1 -1
  399. package/multiselect/MultiSelect.d.ts +21 -16
  400. package/multiselect/MultiSelect.vue +240 -150
  401. package/multiselect/multiselect.cjs.js +184 -133
  402. package/multiselect/multiselect.cjs.min.js +1 -1
  403. package/multiselect/multiselect.esm.js +185 -134
  404. package/multiselect/multiselect.esm.min.js +1 -1
  405. package/multiselect/multiselect.js +184 -133
  406. package/multiselect/multiselect.min.js +1 -1
  407. package/orderlist/OrderList.d.ts +5 -5
  408. package/orderlist/OrderList.vue +65 -60
  409. package/orderlist/orderlist.cjs.js +51 -53
  410. package/orderlist/orderlist.esm.js +51 -53
  411. package/orderlist/orderlist.js +51 -53
  412. package/organizationchart/OrganizationChart.d.ts +4 -4
  413. package/organizationchart/OrganizationChart.vue +13 -17
  414. package/organizationchart/OrganizationChartNode.vue +20 -12
  415. package/organizationchart/organizationchart.cjs.js +14 -16
  416. package/organizationchart/organizationchart.cjs.min.js +1 -1
  417. package/organizationchart/organizationchart.esm.js +14 -16
  418. package/organizationchart/organizationchart.esm.min.js +1 -1
  419. package/organizationchart/organizationchart.js +14 -16
  420. package/organizationchart/organizationchart.min.js +1 -1
  421. package/overlaypanel/OverlayPanel.d.ts +5 -5
  422. package/overlaypanel/OverlayPanel.vue +60 -50
  423. package/overlaypanel/overlaypanel.cjs.js +40 -32
  424. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  425. package/overlaypanel/overlaypanel.esm.js +40 -32
  426. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  427. package/overlaypanel/overlaypanel.js +40 -32
  428. package/overlaypanel/overlaypanel.min.js +1 -1
  429. package/package.json +1 -1
  430. package/paginator/CurrentPageReport.vue +47 -47
  431. package/paginator/FirstPageLink.vue +11 -8
  432. package/paginator/JumpToPageDropdown.vue +7 -6
  433. package/paginator/JumpToPageInput.vue +3 -3
  434. package/paginator/LastPageLink.vue +11 -8
  435. package/paginator/NextPageLink.vue +11 -8
  436. package/paginator/PageLinks.vue +3 -4
  437. package/paginator/Paginator.d.ts +5 -5
  438. package/paginator/Paginator.vue +39 -39
  439. package/paginator/PrevPageLink.vue +11 -8
  440. package/paginator/RowsPerPageDropdown.vue +7 -6
  441. package/paginator/paginator.cjs.js +110 -91
  442. package/paginator/paginator.cjs.min.js +1 -1
  443. package/paginator/paginator.esm.js +110 -91
  444. package/paginator/paginator.esm.min.js +1 -1
  445. package/paginator/paginator.js +633 -614
  446. package/paginator/paginator.min.js +1 -1
  447. package/panel/Panel.d.ts +9 -5
  448. package/panel/Panel.vue +29 -11
  449. package/panel/panel.cjs.js +24 -14
  450. package/panel/panel.cjs.min.js +1 -1
  451. package/panel/panel.esm.js +24 -14
  452. package/panel/panel.esm.min.js +1 -1
  453. package/panel/panel.js +24 -14
  454. package/panel/panel.min.js +1 -1
  455. package/panelmenu/PanelMenu.d.ts +5 -5
  456. package/panelmenu/PanelMenu.vue +46 -38
  457. package/panelmenu/PanelMenuSub.vue +40 -29
  458. package/panelmenu/panelmenu.cjs.js +56 -52
  459. package/panelmenu/panelmenu.cjs.min.js +1 -1
  460. package/panelmenu/panelmenu.esm.js +56 -52
  461. package/panelmenu/panelmenu.esm.min.js +1 -1
  462. package/panelmenu/panelmenu.js +56 -52
  463. package/panelmenu/panelmenu.min.js +1 -1
  464. package/password/Password.d.ts +12 -7
  465. package/password/Password.vue +156 -79
  466. package/password/password.cjs.js +135 -74
  467. package/password/password.cjs.min.js +1 -1
  468. package/password/password.esm.js +135 -74
  469. package/password/password.esm.min.js +1 -1
  470. package/password/password.js +135 -74
  471. package/password/password.min.js +1 -1
  472. package/picklist/PickList.d.ts +9 -9
  473. package/picklist/PickList.vue +99 -78
  474. package/picklist/picklist.cjs.js +71 -66
  475. package/picklist/picklist.cjs.min.js +1 -1
  476. package/picklist/picklist.esm.js +71 -66
  477. package/picklist/picklist.esm.min.js +1 -1
  478. package/picklist/picklist.js +71 -66
  479. package/picklist/picklist.min.js +1 -1
  480. package/portal/Portal.d.ts +3 -3
  481. package/portal/Portal.vue +2 -2
  482. package/portal/portal.cjs.js +1 -1
  483. package/portal/portal.esm.js +1 -1
  484. package/portal/portal.js +1 -1
  485. package/progressbar/ProgressBar.d.ts +4 -5
  486. package/progressbar/ProgressBar.vue +63 -51
  487. package/progressbar/progressbar.cjs.js +2 -2
  488. package/progressbar/progressbar.cjs.min.js +1 -1
  489. package/progressbar/progressbar.esm.js +2 -2
  490. package/progressbar/progressbar.esm.min.js +1 -1
  491. package/progressbar/progressbar.js +2 -2
  492. package/progressbar/progressbar.min.js +1 -1
  493. package/progressspinner/ProgressSpinner.d.ts +5 -7
  494. package/progressspinner/ProgressSpinner.vue +1 -1
  495. package/radiobutton/RadioButton.d.ts +9 -9
  496. package/radiobutton/RadioButton.vue +41 -13
  497. package/radiobutton/radiobutton.cjs.js +24 -10
  498. package/radiobutton/radiobutton.cjs.min.js +1 -1
  499. package/radiobutton/radiobutton.esm.js +24 -10
  500. package/radiobutton/radiobutton.esm.min.js +1 -1
  501. package/radiobutton/radiobutton.js +24 -10
  502. package/radiobutton/radiobutton.min.js +1 -1
  503. package/rating/Rating.d.ts +54 -5
  504. package/rating/Rating.vue +88 -62
  505. package/rating/rating.cjs.js +105 -84
  506. package/rating/rating.cjs.min.js +1 -1
  507. package/rating/rating.esm.js +106 -85
  508. package/rating/rating.esm.min.js +1 -1
  509. package/rating/rating.js +106 -86
  510. package/rating/rating.min.js +1 -1
  511. package/resources/themes/arya-blue/theme.css +23 -12
  512. package/resources/themes/arya-green/theme.css +23 -12
  513. package/resources/themes/arya-orange/theme.css +23 -12
  514. package/resources/themes/arya-purple/theme.css +23 -12
  515. package/resources/themes/bootstrap4-dark-blue/theme.css +24 -13
  516. package/resources/themes/bootstrap4-dark-purple/theme.css +24 -13
  517. package/resources/themes/bootstrap4-light-blue/theme.css +24 -13
  518. package/resources/themes/bootstrap4-light-purple/theme.css +24 -13
  519. package/resources/themes/fluent-light/theme.css +23 -12
  520. package/resources/themes/lara-dark-blue/theme.css +23 -12
  521. package/resources/themes/lara-dark-indigo/theme.css +23 -12
  522. package/resources/themes/lara-dark-purple/theme.css +23 -12
  523. package/resources/themes/lara-dark-teal/theme.css +23 -12
  524. package/resources/themes/lara-light-blue/theme.css +23 -12
  525. package/resources/themes/lara-light-indigo/theme.css +23 -12
  526. package/resources/themes/lara-light-purple/theme.css +23 -12
  527. package/resources/themes/lara-light-teal/theme.css +23 -12
  528. package/resources/themes/luna-amber/theme.css +24 -13
  529. package/resources/themes/luna-blue/theme.css +24 -13
  530. package/resources/themes/luna-green/theme.css +24 -13
  531. package/resources/themes/luna-pink/theme.css +24 -13
  532. package/resources/themes/md-dark-deeppurple/theme.css +46 -20
  533. package/resources/themes/md-dark-indigo/theme.css +46 -20
  534. package/resources/themes/md-light-deeppurple/theme.css +46 -20
  535. package/resources/themes/md-light-indigo/theme.css +46 -20
  536. package/resources/themes/mdc-dark-deeppurple/theme.css +46 -20
  537. package/resources/themes/mdc-dark-indigo/theme.css +46 -20
  538. package/resources/themes/mdc-light-deeppurple/theme.css +46 -20
  539. package/resources/themes/mdc-light-indigo/theme.css +46 -20
  540. package/resources/themes/nova/theme.css +24 -13
  541. package/resources/themes/nova-accent/theme.css +23 -12
  542. package/resources/themes/nova-alt/theme.css +24 -13
  543. package/resources/themes/nova-vue/theme.css +24 -13
  544. package/resources/themes/rhea/theme.css +23 -12
  545. package/resources/themes/saga-blue/theme.css +23 -12
  546. package/resources/themes/saga-green/theme.css +23 -12
  547. package/resources/themes/saga-orange/theme.css +23 -12
  548. package/resources/themes/saga-purple/theme.css +23 -12
  549. package/resources/themes/tailwind-light/theme.css +23 -12
  550. package/resources/themes/vela-blue/theme.css +23 -12
  551. package/resources/themes/vela-green/theme.css +23 -12
  552. package/resources/themes/vela-orange/theme.css +23 -12
  553. package/resources/themes/vela-purple/theme.css +23 -12
  554. package/ripple/ripple.cjs.js +7 -1
  555. package/ripple/ripple.esm.js +7 -1
  556. package/ripple/ripple.js +7 -1
  557. package/row/Row.d.ts +6 -9
  558. package/row/Row.vue +1 -1
  559. package/scrollpanel/ScrollPanel.d.ts +9 -5
  560. package/scrollpanel/ScrollPanel.vue +194 -56
  561. package/scrollpanel/scrollpanel.cjs.js +180 -56
  562. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  563. package/scrollpanel/scrollpanel.esm.js +181 -57
  564. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  565. package/scrollpanel/scrollpanel.js +180 -56
  566. package/scrollpanel/scrollpanel.min.js +1 -1
  567. package/scrolltop/ScrollTop.d.ts +5 -7
  568. package/scrolltop/ScrollTop.vue +18 -23
  569. package/scrolltop/scrolltop.cjs.js +14 -19
  570. package/scrolltop/scrolltop.cjs.min.js +1 -1
  571. package/scrolltop/scrolltop.esm.js +14 -19
  572. package/scrolltop/scrolltop.esm.min.js +1 -1
  573. package/scrolltop/scrolltop.js +14 -19
  574. package/scrolltop/scrolltop.min.js +1 -1
  575. package/selectbutton/SelectButton.d.ts +11 -11
  576. package/selectbutton/SelectButton.vue +50 -32
  577. package/selectbutton/selectbutton.cjs.js +30 -25
  578. package/selectbutton/selectbutton.esm.js +30 -25
  579. package/selectbutton/selectbutton.js +30 -25
  580. package/sidebar/Sidebar.d.ts +6 -6
  581. package/sidebar/Sidebar.vue +24 -14
  582. package/sidebar/sidebar.cjs.js +20 -10
  583. package/sidebar/sidebar.cjs.min.js +1 -1
  584. package/sidebar/sidebar.esm.js +20 -10
  585. package/sidebar/sidebar.esm.min.js +1 -1
  586. package/sidebar/sidebar.js +20 -10
  587. package/sidebar/sidebar.min.js +1 -1
  588. package/skeleton/Skeleton.d.ts +5 -7
  589. package/skeleton/Skeleton.vue +12 -11
  590. package/skeleton/skeleton.cjs.js +10 -9
  591. package/skeleton/skeleton.cjs.min.js +1 -1
  592. package/skeleton/skeleton.esm.js +10 -9
  593. package/skeleton/skeleton.esm.min.js +1 -1
  594. package/skeleton/skeleton.js +10 -9
  595. package/skeleton/skeleton.min.js +1 -1
  596. package/slider/Slider.d.ts +7 -8
  597. package/slider/Slider.vue +162 -141
  598. package/slider/slider.cjs.js +100 -127
  599. package/slider/slider.cjs.min.js +1 -1
  600. package/slider/slider.esm.js +100 -127
  601. package/slider/slider.esm.min.js +1 -1
  602. package/slider/slider.js +100 -127
  603. package/slider/slider.min.js +1 -1
  604. package/speeddial/SpeedDial.d.ts +8 -8
  605. package/speeddial/SpeedDial.vue +54 -39
  606. package/speeddial/speeddial.cjs.js +44 -36
  607. package/speeddial/speeddial.esm.js +44 -36
  608. package/speeddial/speeddial.js +44 -36
  609. package/splitbutton/SplitButton.d.ts +6 -6
  610. package/splitbutton/SplitButton.vue +9 -11
  611. package/splitbutton/splitbutton.cjs.js +7 -7
  612. package/splitbutton/splitbutton.cjs.min.js +1 -1
  613. package/splitbutton/splitbutton.esm.js +7 -7
  614. package/splitbutton/splitbutton.esm.min.js +1 -1
  615. package/splitbutton/splitbutton.js +7 -7
  616. package/splitbutton/splitbutton.min.js +1 -1
  617. package/splitter/Splitter.d.ts +10 -5
  618. package/splitter/Splitter.vue +158 -53
  619. package/splitter/splitter.cjs.js +156 -52
  620. package/splitter/splitter.cjs.min.js +1 -1
  621. package/splitter/splitter.esm.js +157 -53
  622. package/splitter/splitter.esm.min.js +1 -1
  623. package/splitter/splitter.js +156 -52
  624. package/splitter/splitter.min.js +1 -1
  625. package/splitterpanel/SplitterPanel.d.ts +4 -5
  626. package/splitterpanel/SplitterPanel.vue +3 -3
  627. package/splitterpanel/splitterpanel.cjs.js +2 -2
  628. package/splitterpanel/splitterpanel.esm.js +2 -2
  629. package/splitterpanel/splitterpanel.js +2 -2
  630. package/steps/Steps.d.ts +4 -5
  631. package/steps/Steps.vue +31 -23
  632. package/steps/steps.cjs.js +24 -16
  633. package/steps/steps.esm.js +24 -16
  634. package/steps/steps.js +24 -16
  635. package/styleclass/styleclass.cjs.js +19 -21
  636. package/styleclass/styleclass.esm.js +19 -21
  637. package/styleclass/styleclass.js +19 -21
  638. package/tabmenu/TabMenu.d.ts +4 -4
  639. package/tabmenu/TabMenu.vue +45 -34
  640. package/tabmenu/tabmenu.cjs.js +36 -25
  641. package/tabmenu/tabmenu.cjs.min.js +1 -1
  642. package/tabmenu/tabmenu.esm.js +36 -25
  643. package/tabmenu/tabmenu.esm.min.js +1 -1
  644. package/tabmenu/tabmenu.js +36 -25
  645. package/tabmenu/tabmenu.min.js +1 -1
  646. package/tabpanel/TabPanel.d.ts +33 -6
  647. package/tabpanel/TabPanel.vue +8 -1
  648. package/tabpanel/tabpanel.cjs.js +7 -0
  649. package/tabpanel/tabpanel.cjs.min.js +1 -1
  650. package/tabpanel/tabpanel.esm.js +7 -0
  651. package/tabpanel/tabpanel.esm.min.js +1 -1
  652. package/tabpanel/tabpanel.js +7 -0
  653. package/tabpanel/tabpanel.min.js +1 -1
  654. package/tabview/TabView.d.ts +22 -6
  655. package/tabview/TabView.vue +280 -96
  656. package/tabview/tabview.cjs.js +294 -131
  657. package/tabview/tabview.cjs.min.js +1 -1
  658. package/tabview/tabview.esm.js +296 -133
  659. package/tabview/tabview.esm.min.js +1 -1
  660. package/tabview/tabview.js +294 -131
  661. package/tabview/tabview.min.js +1 -1
  662. package/tag/Tag.d.ts +4 -5
  663. package/tag/Tag.vue +13 -10
  664. package/tag/tag.cjs.js +10 -7
  665. package/tag/tag.esm.js +10 -7
  666. package/tag/tag.js +10 -7
  667. package/terminal/Terminal.d.ts +5 -7
  668. package/terminal/Terminal.vue +10 -10
  669. package/terminal/terminal.cjs.js +3 -3
  670. package/terminal/terminal.cjs.min.js +1 -1
  671. package/terminal/terminal.esm.js +3 -3
  672. package/terminal/terminal.esm.min.js +1 -1
  673. package/terminal/terminal.js +3 -3
  674. package/terminal/terminal.min.js +1 -1
  675. package/textarea/Textarea.d.ts +5 -6
  676. package/textarea/Textarea.vue +7 -7
  677. package/textarea/textarea.cjs.js +6 -6
  678. package/textarea/textarea.esm.js +6 -6
  679. package/textarea/textarea.js +6 -6
  680. package/tieredmenu/TieredMenu.d.ts +4 -5
  681. package/tieredmenu/TieredMenu.vue +23 -15
  682. package/tieredmenu/TieredMenuSub.vue +62 -51
  683. package/tieredmenu/tieredmenu.cjs.js +60 -50
  684. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  685. package/tieredmenu/tieredmenu.esm.js +60 -50
  686. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  687. package/tieredmenu/tieredmenu.js +60 -50
  688. package/tieredmenu/tieredmenu.min.js +1 -1
  689. package/timeline/Timeline.d.ts +4 -5
  690. package/timeline/Timeline.vue +6 -10
  691. package/timeline/timeline.cjs.js +3 -7
  692. package/timeline/timeline.cjs.min.js +1 -1
  693. package/timeline/timeline.esm.js +3 -7
  694. package/timeline/timeline.esm.min.js +1 -1
  695. package/timeline/timeline.js +3 -7
  696. package/timeline/timeline.min.js +1 -1
  697. package/toast/Toast.d.ts +10 -13
  698. package/toast/Toast.vue +36 -29
  699. package/toast/ToastMessage.vue +25 -18
  700. package/toast/toast.cjs.js +37 -23
  701. package/toast/toast.cjs.min.js +1 -1
  702. package/toast/toast.esm.js +37 -23
  703. package/toast/toast.esm.min.js +1 -1
  704. package/toast/toast.js +37 -23
  705. package/toast/toast.min.js +1 -1
  706. package/toastservice/toastservice.cjs.js +1 -0
  707. package/toastservice/toastservice.esm.js +1 -0
  708. package/toastservice/toastservice.js +1 -0
  709. package/togglebutton/ToggleButton.d.ts +10 -10
  710. package/togglebutton/ToggleButton.vue +42 -18
  711. package/togglebutton/togglebutton.cjs.js +25 -13
  712. package/togglebutton/togglebutton.cjs.min.js +1 -1
  713. package/togglebutton/togglebutton.esm.js +25 -13
  714. package/togglebutton/togglebutton.esm.min.js +1 -1
  715. package/togglebutton/togglebutton.js +25 -13
  716. package/togglebutton/togglebutton.min.js +1 -1
  717. package/toolbar/Toolbar.d.ts +8 -5
  718. package/toolbar/Toolbar.vue +9 -3
  719. package/toolbar/toolbar.cjs.js +14 -7
  720. package/toolbar/toolbar.cjs.min.js +1 -1
  721. package/toolbar/toolbar.esm.js +14 -7
  722. package/toolbar/toolbar.esm.min.js +1 -1
  723. package/toolbar/toolbar.js +14 -7
  724. package/toolbar/toolbar.min.js +1 -1
  725. package/tooltip/tooltip.cjs.js +36 -24
  726. package/tooltip/tooltip.cjs.min.js +1 -1
  727. package/tooltip/tooltip.esm.js +37 -25
  728. package/tooltip/tooltip.esm.min.js +1 -1
  729. package/tooltip/tooltip.js +36 -24
  730. package/tooltip/tooltip.min.js +1 -1
  731. package/tree/Tree.d.ts +7 -7
  732. package/tree/Tree.vue +66 -56
  733. package/tree/TreeNode.vue +70 -66
  734. package/tree/tree.cjs.js +99 -102
  735. package/tree/tree.cjs.min.js +1 -1
  736. package/tree/tree.esm.js +99 -102
  737. package/tree/tree.esm.min.js +1 -1
  738. package/tree/tree.js +99 -102
  739. package/tree/tree.min.js +1 -1
  740. package/treeselect/TreeSelect.d.ts +9 -9
  741. package/treeselect/TreeSelect.vue +130 -72
  742. package/treeselect/treeselect.cjs.js +89 -59
  743. package/treeselect/treeselect.cjs.min.js +1 -1
  744. package/treeselect/treeselect.esm.js +89 -59
  745. package/treeselect/treeselect.esm.min.js +1 -1
  746. package/treeselect/treeselect.js +89 -59
  747. package/treeselect/treeselect.min.js +1 -1
  748. package/treetable/BodyCell.vue +29 -19
  749. package/treetable/FooterCell.vue +19 -11
  750. package/treetable/HeaderCell.vue +44 -36
  751. package/treetable/TreeTable.d.ts +8 -8
  752. package/treetable/TreeTable.vue +229 -178
  753. package/treetable/TreeTableRow.vue +74 -58
  754. package/treetable/treetable.cjs.js +287 -253
  755. package/treetable/treetable.cjs.min.js +1 -1
  756. package/treetable/treetable.esm.js +287 -253
  757. package/treetable/treetable.esm.min.js +1 -1
  758. package/treetable/treetable.js +287 -253
  759. package/treetable/treetable.min.js +1 -1
  760. package/tristatecheckbox/TriStateCheckbox.d.ts +9 -9
  761. package/tristatecheckbox/TriStateCheckbox.vue +39 -18
  762. package/tristatecheckbox/tristatecheckbox.cjs.js +24 -15
  763. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  764. package/tristatecheckbox/tristatecheckbox.esm.js +24 -15
  765. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  766. package/tristatecheckbox/tristatecheckbox.js +24 -15
  767. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  768. package/ts-helpers.d.ts +16 -10
  769. package/useconfirm/UseConfirm.d.ts +1 -1
  770. package/useconfirm/useconfirm.cjs.js +2 -1
  771. package/useconfirm/useconfirm.esm.js +2 -1
  772. package/useconfirm/useconfirm.js +2 -1
  773. package/usedialog/UseDialog.d.ts +1 -1
  774. package/usedialog/usedialog.cjs.js +2 -1
  775. package/usedialog/usedialog.esm.js +2 -1
  776. package/usedialog/usedialog.js +2 -1
  777. package/usetoast/usetoast.cjs.js +2 -1
  778. package/usetoast/usetoast.esm.js +2 -1
  779. package/usetoast/usetoast.js +2 -1
  780. package/utils/Utils.d.ts +7 -5
  781. package/utils/utils.cjs.js +183 -156
  782. package/utils/utils.cjs.min.js +1 -1
  783. package/utils/utils.esm.js +183 -156
  784. package/utils/utils.esm.min.js +1 -1
  785. package/utils/utils.js +183 -156
  786. package/utils/utils.min.js +1 -1
  787. package/vetur-attributes.json +160 -0
  788. package/vetur-tags.json +58 -8
  789. package/virtualscroller/VirtualScroller.d.ts +9 -9
  790. package/virtualscroller/VirtualScroller.vue +108 -96
  791. package/virtualscroller/virtualscroller.cjs.js +87 -89
  792. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  793. package/virtualscroller/virtualscroller.esm.js +87 -89
  794. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  795. package/virtualscroller/virtualscroller.js +87 -89
  796. package/virtualscroller/virtualscroller.min.js +1 -1
  797. package/web-types.json +488 -2
@@ -176,17 +176,41 @@ var script = {
176
176
  type: String,
177
177
  default: null
178
178
  },
179
- id: null,
180
- inputId: null,
181
- inputClass: null,
182
- inputStyle: null,
183
- inputProps: null,
184
- panelClass: null,
185
- panelStyle: null,
186
- panelProps: null,
179
+ id: {
180
+ type: String,
181
+ default: null
182
+ },
183
+ inputId: {
184
+ type: String,
185
+ default: null
186
+ },
187
+ inputClass: {
188
+ type: String,
189
+ default: null
190
+ },
191
+ inputStyle: {
192
+ type: null,
193
+ default: null
194
+ },
195
+ inputProps: {
196
+ type: null,
197
+ default: null
198
+ },
199
+ panelClass: {
200
+ type: String,
201
+ default: null
202
+ },
203
+ panelStyle: {
204
+ type: null,
205
+ default: null
206
+ },
207
+ panelProps: {
208
+ type: null,
209
+ default: null
210
+ },
187
211
  'aria-labelledby': {
188
212
  type: String,
189
- default: null
213
+ default: null
190
214
  },
191
215
  'aria-label': {
192
216
  type: String,
@@ -205,6 +229,55 @@ var script = {
205
229
  timePickerTimer: null,
206
230
  preventFocus: false,
207
231
  typeUpdate: false,
232
+ data() {
233
+ return {
234
+ currentMonth: null,
235
+ currentYear: null,
236
+ currentHour: null,
237
+ currentMinute: null,
238
+ currentSecond: null,
239
+ pm: null,
240
+ focused: false,
241
+ overlayVisible: false,
242
+ currentView: this.view
243
+ };
244
+ },
245
+ watch: {
246
+ modelValue(newValue) {
247
+ this.updateCurrentMetaData();
248
+
249
+ if (!this.typeUpdate && !this.inline && this.input) {
250
+ this.input.value = this.formatValue(newValue);
251
+ }
252
+
253
+ this.typeUpdate = false;
254
+ },
255
+ showTime() {
256
+ this.updateCurrentMetaData();
257
+ },
258
+ months() {
259
+ if (this.overlay) {
260
+ if (!this.focused) {
261
+ if (this.inline) {
262
+ this.preventFocus = true;
263
+ }
264
+
265
+ setTimeout(this.updateFocus, 0);
266
+ }
267
+ }
268
+ },
269
+ numberOfMonths() {
270
+ this.destroyResponsiveStyleElement();
271
+ this.createResponsiveStyle();
272
+ },
273
+ responsiveOptions() {
274
+ this.destroyResponsiveStyleElement();
275
+ this.createResponsiveStyle();
276
+ },
277
+ currentView() {
278
+ Promise.resolve(null).then(() => this.alignOverlay());
279
+ }
280
+ },
208
281
  created() {
209
282
  this.updateCurrentMetaData();
210
283
  },
@@ -222,8 +295,7 @@ var script = {
222
295
  this.overlay.style.width = utils.DomHandler.getOuterWidth(this.$el) + 'px';
223
296
  }
224
297
  }
225
- }
226
- else {
298
+ } else {
227
299
  this.input.value = this.formatValue(this.modelValue);
228
300
  }
229
301
  },
@@ -248,6 +320,7 @@ var script = {
248
320
  if (this.mask) {
249
321
  this.destroyMask();
250
322
  }
323
+
251
324
  this.destroyResponsiveStyleElement();
252
325
 
253
326
  this.unbindOutsideClickListener();
@@ -261,51 +334,9 @@ var script = {
261
334
  if (this.overlay && this.autoZIndex) {
262
335
  utils.ZIndexUtils.clear(this.overlay);
263
336
  }
337
+
264
338
  this.overlay = null;
265
339
  },
266
- data() {
267
- return {
268
- currentMonth: null,
269
- currentYear: null,
270
- currentHour: null,
271
- currentMinute: null,
272
- currentSecond: null,
273
- pm: null,
274
- focused: false,
275
- overlayVisible: false,
276
- currentView: this.view
277
- }
278
- },
279
- watch: {
280
- modelValue(newValue) {
281
- this.updateCurrentMetaData();
282
- if (!this.typeUpdate && !this.inline && this.input) {
283
- this.input.value = this.formatValue(newValue);
284
- }
285
- this.typeUpdate = false;
286
- },
287
- showTime() {
288
- this.updateCurrentMetaData();
289
- },
290
- months() {
291
- if (this.overlay) {
292
- if (!this.focused) {
293
- setTimeout(this.updateFocus, 0);
294
- }
295
- }
296
- },
297
- numberOfMonths() {
298
- this.destroyResponsiveStyleElement();
299
- this.createResponsiveStyle();
300
- },
301
- responsiveOptions() {
302
- this.destroyResponsiveStyleElement();
303
- this.createResponsiveStyle();
304
- },
305
- currentView() {
306
- Promise.resolve(null).then(() => this.alignOverlay());
307
- }
308
- },
309
340
  methods: {
310
341
  isComparable() {
311
342
  return this.modelValue != null && typeof this.modelValue !== 'string';
@@ -318,25 +349,23 @@ var script = {
318
349
  if (this.modelValue) {
319
350
  if (this.isSingleSelection()) {
320
351
  return this.isDateEquals(this.modelValue, dateMeta);
321
- }
322
- else if (this.isMultipleSelection()) {
352
+ } else if (this.isMultipleSelection()) {
323
353
  let selected = false;
354
+
324
355
  for (let date of this.modelValue) {
325
356
  selected = this.isDateEquals(date, dateMeta);
357
+
326
358
  if (selected) {
327
359
  break;
328
360
  }
329
361
  }
330
362
 
331
363
  return selected;
332
- }
333
- else if (this.isRangeSelection()) {
334
- if (this.modelValue[1])
335
- return this.isDateEquals(this.modelValue[0], dateMeta) || this.isDateEquals(this.modelValue[1], dateMeta) || this.isDateBetween(this.modelValue[0], this.modelValue[1], dateMeta);
364
+ } else if (this.isRangeSelection()) {
365
+ if (this.modelValue[1]) return this.isDateEquals(this.modelValue[0], dateMeta) || this.isDateEquals(this.modelValue[1], dateMeta) || this.isDateBetween(this.modelValue[0], this.modelValue[1], dateMeta);
336
366
  else {
337
367
  return this.isDateEquals(this.modelValue[0], dateMeta);
338
368
  }
339
-
340
369
  }
341
370
  }
342
371
 
@@ -346,7 +375,7 @@ var script = {
346
375
  if (this.isComparable()) {
347
376
  let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
348
377
 
349
- return !this.isMultipleSelection() ? (value.getMonth() === month && value.getFullYear() === this.currentYear) : false;
378
+ return !this.isMultipleSelection() ? value.getMonth() === month && value.getFullYear() === this.currentYear : false;
350
379
  }
351
380
 
352
381
  return false;
@@ -355,21 +384,21 @@ var script = {
355
384
  if (this.isComparable()) {
356
385
  let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
357
386
 
358
- return !this.isMultipleSelection() && this.isComparable() ? (value.getFullYear() === year) : false;
387
+ return !this.isMultipleSelection() && this.isComparable() ? value.getFullYear() === year : false;
359
388
  }
360
389
 
361
390
  return false;
362
391
  },
363
392
  isDateEquals(value, dateMeta) {
364
- if (value)
365
- return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
366
- else
367
- return false;
393
+ if (value) return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
394
+ else return false;
368
395
  },
369
396
  isDateBetween(start, end, dateMeta) {
370
397
  let between = false;
398
+
371
399
  if (start && end) {
372
400
  let date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
401
+
373
402
  return start.getTime() <= date.getTime() && end.getTime() >= date.getTime();
374
403
  }
375
404
 
@@ -377,11 +406,13 @@ var script = {
377
406
  },
378
407
  getFirstDayOfMonthIndex(month, year) {
379
408
  let day = new Date();
409
+
380
410
  day.setDate(1);
381
411
  day.setMonth(month);
382
412
  day.setFullYear(year);
383
413
 
384
414
  let dayIndex = day.getDay() + this.sundayIndex;
415
+
385
416
  return dayIndex >= 7 ? dayIndex - 7 : dayIndex;
386
417
  },
387
418
  getDaysCountInMonth(month, year) {
@@ -389,6 +420,7 @@ var script = {
389
420
  },
390
421
  getDaysCountInPrevMonth(month, year) {
391
422
  let prev = this.getPreviousMonthAndYear(month, year);
423
+
392
424
  return this.getDaysCountInMonth(prev.month, prev.year);
393
425
  },
394
426
  getPreviousMonthAndYear(month, year) {
@@ -397,13 +429,12 @@ var script = {
397
429
  if (month === 0) {
398
430
  m = 11;
399
431
  y = year - 1;
400
- }
401
- else {
432
+ } else {
402
433
  m = month - 1;
403
434
  y = year;
404
435
  }
405
436
 
406
- return {'month':m, 'year': y};
437
+ return { month: m, year: y };
407
438
  },
408
439
  getNextMonthAndYear(month, year) {
409
440
  let m, y;
@@ -411,13 +442,12 @@ var script = {
411
442
  if (month === 11) {
412
443
  m = 0;
413
444
  y = year + 1;
414
- }
415
- else {
445
+ } else {
416
446
  m = month + 1;
417
447
  y = year;
418
448
  }
419
449
 
420
- return {'month':m,'year':y};
450
+ return { month: m, year: y };
421
451
  },
422
452
  daylightSavingAdjust(date) {
423
453
  if (!date) {
@@ -444,12 +474,10 @@ var script = {
444
474
  if (this.minDate) {
445
475
  if (this.minDate.getFullYear() > year) {
446
476
  validMin = false;
447
- }
448
- else if (this.minDate.getFullYear() === year) {
477
+ } else if (this.minDate.getFullYear() === year) {
449
478
  if (this.minDate.getMonth() > month) {
450
479
  validMin = false;
451
- }
452
- else if (this.minDate.getMonth() === month) {
480
+ } else if (this.minDate.getMonth() === month) {
453
481
  if (this.minDate.getDate() > day) {
454
482
  validMin = false;
455
483
  }
@@ -460,12 +488,10 @@ var script = {
460
488
  if (this.maxDate) {
461
489
  if (this.maxDate.getFullYear() < year) {
462
490
  validMax = false;
463
- }
464
- else if (this.maxDate.getFullYear() === year) {
491
+ } else if (this.maxDate.getFullYear() === year) {
465
492
  if (this.maxDate.getMonth() < month) {
466
493
  validMax = false;
467
- }
468
- else if (this.maxDate.getMonth() === month) {
494
+ } else if (this.maxDate.getMonth() === month) {
469
495
  if (this.maxDate.getDate() < day) {
470
496
  validMax = false;
471
497
  }
@@ -474,11 +500,11 @@ var script = {
474
500
  }
475
501
 
476
502
  if (this.disabledDates) {
477
- validDate = !this.isDateDisabled(day,month,year);
503
+ validDate = !this.isDateDisabled(day, month, year);
478
504
  }
479
505
 
480
506
  if (this.disabledDays) {
481
- validDay = !this.isDayDisabled(day,month,year);
507
+ validDay = !this.isDayDisabled(day, month, year);
482
508
  }
483
509
 
484
510
  return validMin && validMax && validDate && validDay;
@@ -487,10 +513,8 @@ var script = {
487
513
  el.setAttribute(this.attributeSelector, '');
488
514
 
489
515
  if (this.autoZIndex) {
490
- if (this.touchUI)
491
- utils.ZIndexUtils.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);
492
- else
493
- utils.ZIndexUtils.set('overlay', el, this.baseZIndex || this.$primevue.config.zIndex.overlay);
516
+ if (this.touchUI) utils.ZIndexUtils.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);
517
+ else utils.ZIndexUtils.set('overlay', el, this.baseZIndex || this.$primevue.config.zIndex.overlay);
494
518
  }
495
519
 
496
520
  this.alignOverlay();
@@ -520,14 +544,14 @@ var script = {
520
544
  this.overlay = null;
521
545
  },
522
546
  onPrevButtonClick(event) {
523
- if(this.showOtherMonths) {
524
- this.navigationState = {backward: true, button: true};
547
+ if (this.showOtherMonths) {
548
+ this.navigationState = { backward: true, button: true };
525
549
  this.navBackward(event);
526
550
  }
527
551
  },
528
552
  onNextButtonClick(event) {
529
- if(this.showOtherMonths) {
530
- this.navigationState = {backward: false, button: true};
553
+ if (this.showOtherMonths) {
554
+ this.navigationState = { backward: false, button: true };
531
555
  this.navForward(event);
532
556
  }
533
557
  },
@@ -540,24 +564,20 @@ var script = {
540
564
 
541
565
  if (this.currentView === 'month') {
542
566
  this.decrementYear();
543
- }
544
- else if (this.currentView === 'year') {
567
+ } else if (this.currentView === 'year') {
545
568
  this.decrementDecade();
546
- }
547
- else {
569
+ } else {
548
570
  if (event.shiftKey) {
549
571
  this.decrementYear();
550
- }
551
- else {
572
+ } else {
552
573
  if (this.currentMonth === 0) {
553
574
  this.currentMonth = 11;
554
575
  this.decrementYear();
555
- }
556
- else {
576
+ } else {
557
577
  this.currentMonth--;
558
578
  }
559
579
 
560
- this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
580
+ this.$emit('month-change', { month: this.currentMonth + 1, year: this.currentYear });
561
581
  }
562
582
  }
563
583
  },
@@ -570,24 +590,20 @@ var script = {
570
590
 
571
591
  if (this.currentView === 'month') {
572
592
  this.incrementYear();
573
- }
574
- else if (this.currentView === 'year') {
593
+ } else if (this.currentView === 'year') {
575
594
  this.incrementDecade();
576
- }
577
- else {
595
+ } else {
578
596
  if (event.shiftKey) {
579
597
  this.incrementYear();
580
- }
581
- else {
598
+ } else {
582
599
  if (this.currentMonth === 11) {
583
600
  this.currentMonth = 0;
584
601
  this.incrementYear();
585
- }
586
- else {
602
+ } else {
587
603
  this.currentMonth++;
588
604
  }
589
605
 
590
- this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
606
+ this.$emit('month-change', { month: this.currentMonth + 1, year: this.currentYear });
591
607
  }
592
608
  }
593
609
  },
@@ -622,10 +638,8 @@ var script = {
622
638
  if (this.hourFormat === '12') {
623
639
  this.pm = currentHour > 11;
624
640
 
625
- if (currentHour >= 12)
626
- currentHour = (currentHour == 12) ? 12 : currentHour - 12;
627
- else
628
- currentHour = (currentHour == 0) ? 12 : currentHour;
641
+ if (currentHour >= 12) currentHour = currentHour == 12 ? 12 : currentHour - 12;
642
+ else currentHour = currentHour == 0 ? 12 : currentHour;
629
643
  }
630
644
 
631
645
  this.currentHour = Math.floor(currentHour / this.stepHour) * this.stepHour;
@@ -639,6 +653,7 @@ var script = {
639
653
  this.overlayVisible = false;
640
654
  }
641
655
  };
656
+
642
657
  document.addEventListener('mousedown', this.outsideClickListener);
643
658
  }
644
659
  },
@@ -671,6 +686,7 @@ var script = {
671
686
  this.overlayVisible = false;
672
687
  }
673
688
  };
689
+
674
690
  window.addEventListener('resize', this.resizeListener);
675
691
  }
676
692
  },
@@ -681,27 +697,27 @@ var script = {
681
697
  }
682
698
  },
683
699
  isOutsideClicked(event) {
684
- return !(this.$el.isSameNode(event.target) || this.isNavIconClicked(event) ||
685
- this.$el.contains(event.target) || (this.overlay && this.overlay.contains(event.target)));
700
+ return !(this.$el.isSameNode(event.target) || this.isNavIconClicked(event) || this.$el.contains(event.target) || (this.overlay && this.overlay.contains(event.target)));
686
701
  },
687
702
  isNavIconClicked(event) {
688
- return (utils.DomHandler.hasClass(event.target, 'p-datepicker-prev') || utils.DomHandler.hasClass(event.target, 'p-datepicker-prev-icon')
689
- || utils.DomHandler.hasClass(event.target, 'p-datepicker-next') || utils.DomHandler.hasClass(event.target, 'p-datepicker-next-icon'));
703
+ return (
704
+ utils.DomHandler.hasClass(event.target, 'p-datepicker-prev') ||
705
+ utils.DomHandler.hasClass(event.target, 'p-datepicker-prev-icon') ||
706
+ utils.DomHandler.hasClass(event.target, 'p-datepicker-next') ||
707
+ utils.DomHandler.hasClass(event.target, 'p-datepicker-next-icon')
708
+ );
690
709
  },
691
710
  alignOverlay() {
692
711
  if (this.touchUI) {
693
712
  this.enableModality();
694
- }
695
- else if (this.overlay) {
713
+ } else if (this.overlay) {
696
714
  if (this.appendTo === 'self' || this.inline) {
697
715
  utils.DomHandler.relativePosition(this.overlay, this.$el);
698
- }
699
- else {
716
+ } else {
700
717
  if (this.view === 'date') {
701
718
  this.overlay.style.width = utils.DomHandler.getOuterWidth(this.overlay) + 'px';
702
719
  this.overlay.style.minWidth = utils.DomHandler.getOuterWidth(this.$el) + 'px';
703
- }
704
- else {
720
+ } else {
705
721
  this.overlay.style.width = utils.DomHandler.getOuterWidth(this.$el) + 'px';
706
722
  }
707
723
 
@@ -714,8 +730,7 @@ var script = {
714
730
  if (!this.overlayVisible) {
715
731
  this.input.focus();
716
732
  this.overlayVisible = true;
717
- }
718
- else {
733
+ } else {
719
734
  this.overlayVisible = false;
720
735
  }
721
736
  }
@@ -735,41 +750,42 @@ var script = {
735
750
  if (this.disabledDays) {
736
751
  let weekday = new Date(year, month, day);
737
752
  let weekdayNumber = weekday.getDay();
753
+
738
754
  return this.disabledDays.indexOf(weekdayNumber) !== -1;
739
755
  }
756
+
740
757
  return false;
741
758
  },
742
759
  onMonthDropdownChange(value) {
743
760
  this.currentMonth = parseInt(value);
744
- this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
761
+ this.$emit('month-change', { month: this.currentMonth + 1, year: this.currentYear });
745
762
  },
746
763
  onYearDropdownChange(value) {
747
764
  this.currentYear = parseInt(value);
748
- this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
765
+ this.$emit('year-change', { month: this.currentMonth + 1, year: this.currentYear });
749
766
  },
750
767
  onDateSelect(event, dateMeta) {
751
768
  if (this.disabled || !dateMeta.selectable) {
752
769
  return;
753
770
  }
754
771
 
755
- utils.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled)').forEach(cell => cell.tabIndex = -1);
772
+ utils.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled)').forEach((cell) => (cell.tabIndex = -1));
756
773
 
757
774
  if (event) {
758
775
  event.currentTarget.focus();
759
776
  }
760
777
 
761
778
  if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
762
- let newValue = this.modelValue.filter(date => !this.isDateEquals(date, dateMeta));
779
+ let newValue = this.modelValue.filter((date) => !this.isDateEquals(date, dateMeta));
780
+
763
781
  this.updateModel(newValue);
764
- }
765
- else {
782
+ } else {
766
783
  if (this.shouldSelectDate(dateMeta)) {
767
784
  if (dateMeta.otherMonth) {
768
785
  this.currentMonth = dateMeta.month;
769
786
  this.currentYear = dateMeta.year;
770
787
  this.selectDate(dateMeta);
771
- }
772
- else {
788
+ } else {
773
789
  this.selectDate(dateMeta);
774
790
  }
775
791
  }
@@ -786,10 +802,8 @@ var script = {
786
802
  let date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
787
803
 
788
804
  if (this.showTime) {
789
- if (this.hourFormat === '12' && this.pm && this.currentHour != 12)
790
- date.setHours(this.currentHour + 12);
791
- else
792
- date.setHours(this.currentHour);
805
+ if (this.hourFormat === '12' && this.pm && this.currentHour != 12) date.setHours(this.currentHour + 12);
806
+ else date.setHours(this.currentHour);
793
807
 
794
808
  date.setMinutes(this.currentMinute);
795
809
  date.setSeconds(this.currentSecond);
@@ -813,25 +827,22 @@ var script = {
813
827
 
814
828
  if (this.isSingleSelection()) {
815
829
  modelVal = date;
816
- }
817
- else if (this.isMultipleSelection()) {
830
+ } else if (this.isMultipleSelection()) {
818
831
  modelVal = this.modelValue ? [...this.modelValue, date] : [date];
819
- }
820
- else if (this.isRangeSelection()) {
832
+ } else if (this.isRangeSelection()) {
821
833
  if (this.modelValue && this.modelValue.length) {
822
834
  let startDate = this.modelValue[0];
823
835
  let endDate = this.modelValue[1];
824
836
 
825
837
  if (!endDate && date.getTime() >= startDate.getTime()) {
826
838
  endDate = date;
827
- }
828
- else {
839
+ } else {
829
840
  startDate = date;
830
841
  endDate = null;
831
842
  }
843
+
832
844
  modelVal = [startDate, endDate];
833
- }
834
- else {
845
+ } else {
835
846
  modelVal = [date, null];
836
847
  }
837
848
  }
@@ -845,16 +856,15 @@ var script = {
845
856
  this.overlayVisible = false;
846
857
  }, 150);
847
858
  }
859
+
848
860
  this.$emit('date-select', date);
849
861
  },
850
862
  updateModel(value) {
851
863
  this.$emit('update:modelValue', value);
852
864
  },
853
865
  shouldSelectDate() {
854
- if (this.isMultipleSelection())
855
- return this.maxDateCount != null ? this.maxDateCount > (this.modelValue ? this.modelValue.length : 0) : true;
856
- else
857
- return true;
866
+ if (this.isMultipleSelection()) return this.maxDateCount != null ? this.maxDateCount > (this.modelValue ? this.modelValue.length : 0) : true;
867
+ else return true;
858
868
  },
859
869
  isSingleSelection() {
860
870
  return this.selectionMode === 'single';
@@ -871,33 +881,34 @@ var script = {
871
881
  }
872
882
 
873
883
  let formattedValue = '';
884
+
874
885
  if (value) {
875
886
  try {
876
887
  if (this.isSingleSelection()) {
877
888
  formattedValue = this.formatDateTime(value);
878
- }
879
- else if (this.isMultipleSelection()) {
880
- for(let i = 0; i < value.length; i++) {
889
+ } else if (this.isMultipleSelection()) {
890
+ for (let i = 0; i < value.length; i++) {
881
891
  let dateAsString = this.formatDateTime(value[i]);
892
+
882
893
  formattedValue += dateAsString;
883
- if(i !== (value.length - 1)) {
894
+
895
+ if (i !== value.length - 1) {
884
896
  formattedValue += ', ';
885
897
  }
886
898
  }
887
- }
888
- else if (this.isRangeSelection()) {
899
+ } else if (this.isRangeSelection()) {
889
900
  if (value && value.length) {
890
901
  let startDate = value[0];
891
902
  let endDate = value[1];
892
903
 
893
904
  formattedValue = this.formatDateTime(startDate);
905
+
894
906
  if (endDate) {
895
907
  formattedValue += ' - ' + this.formatDateTime(endDate);
896
908
  }
897
909
  }
898
910
  }
899
- }
900
- catch(err) {
911
+ } catch (err) {
901
912
  formattedValue = value;
902
913
  }
903
914
  }
@@ -906,13 +917,14 @@ var script = {
906
917
  },
907
918
  formatDateTime(date) {
908
919
  let formattedValue = null;
920
+
909
921
  if (date) {
910
- if(this.timeOnly) {
922
+ if (this.timeOnly) {
911
923
  formattedValue = this.formatTime(date);
912
- }
913
- else {
924
+ } else {
914
925
  formattedValue = this.formatDate(date, this.datePattern);
915
- if(this.showTime) {
926
+
927
+ if (this.showTime) {
916
928
  formattedValue += ' ' + this.formatTime(date);
917
929
  }
918
930
  }
@@ -926,32 +938,38 @@ var script = {
926
938
  }
927
939
 
928
940
  let iFormat;
941
+
929
942
  const lookAhead = (match) => {
930
- const matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
931
- if (matches) {
932
- iFormat++;
933
- }
934
- return matches;
935
- },
943
+ const matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;
944
+
945
+ if (matches) {
946
+ iFormat++;
947
+ }
948
+
949
+ return matches;
950
+ },
936
951
  formatNumber = (match, value, len) => {
937
952
  let num = '' + value;
953
+
938
954
  if (lookAhead(match)) {
939
955
  while (num.length < len) {
940
956
  num = '0' + num;
941
957
  }
942
958
  }
959
+
943
960
  return num;
944
961
  },
945
962
  formatName = (match, value, shortNames, longNames) => {
946
- return (lookAhead(match) ? longNames[value] : shortNames[value]);
963
+ return lookAhead(match) ? longNames[value] : shortNames[value];
947
964
  };
965
+
948
966
  let output = '';
949
967
  let literal = false;
950
968
 
951
969
  if (date) {
952
970
  for (iFormat = 0; iFormat < format.length; iFormat++) {
953
971
  if (literal) {
954
- if (format.charAt(iFormat) === '\'' && !lookAhead('\'')) {
972
+ if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
955
973
  literal = false;
956
974
  } else {
957
975
  output += format.charAt(iFormat);
@@ -965,16 +983,13 @@ var script = {
965
983
  output += formatName('D', date.getDay(), this.$primevue.config.locale.dayNamesShort, this.$primevue.config.locale.dayNames);
966
984
  break;
967
985
  case 'o':
968
- output += formatNumber('o',
969
- Math.round((
970
- new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() -
971
- new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
986
+ output += formatNumber('o', Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
972
987
  break;
973
988
  case 'm':
974
989
  output += formatNumber('m', date.getMonth() + 1, 2);
975
990
  break;
976
991
  case 'M':
977
- output += formatName('M',date.getMonth(), this.$primevue.config.locale.monthNamesShort, this.$primevue.config.locale.monthNames);
992
+ output += formatName('M', date.getMonth(), this.$primevue.config.locale.monthNamesShort, this.$primevue.config.locale.monthNames);
978
993
  break;
979
994
  case 'y':
980
995
  output += lookAhead('y') ? date.getFullYear() : (date.getFullYear() % 100 < 10 ? '0' : '') + (date.getFullYear() % 100);
@@ -985,12 +1000,13 @@ var script = {
985
1000
  case '!':
986
1001
  output += date.getTime() * 10000 + this.ticksTo1970;
987
1002
  break;
988
- case '\'':
989
- if (lookAhead('\'')) {
990
- output += '\'';
1003
+ case "'":
1004
+ if (lookAhead("'")) {
1005
+ output += "'";
991
1006
  } else {
992
1007
  literal = true;
993
1008
  }
1009
+
994
1010
  break;
995
1011
  default:
996
1012
  output += format.charAt(iFormat);
@@ -998,6 +1014,7 @@ var script = {
998
1014
  }
999
1015
  }
1000
1016
  }
1017
+
1001
1018
  return output;
1002
1019
  },
1003
1020
  formatTime(date) {
@@ -1015,17 +1032,17 @@ var script = {
1015
1032
  }
1016
1033
 
1017
1034
  if (this.hourFormat === '12') {
1018
- output += hours === 0 ? 12 : (hours < 10) ? '0' + hours : hours;
1019
- }
1020
- else {
1021
- output += (hours < 10) ? '0' + hours : hours;
1035
+ output += hours === 0 ? 12 : hours < 10 ? '0' + hours : hours;
1036
+ } else {
1037
+ output += hours < 10 ? '0' + hours : hours;
1022
1038
  }
1039
+
1023
1040
  output += ':';
1024
- output += (minutes < 10) ? '0' + minutes : minutes;
1041
+ output += minutes < 10 ? '0' + minutes : minutes;
1025
1042
 
1026
1043
  if (this.showSeconds) {
1027
1044
  output += ':';
1028
- output += (seconds < 10) ? '0' + seconds : seconds;
1045
+ output += seconds < 10 ? '0' + seconds : seconds;
1029
1046
  }
1030
1047
 
1031
1048
  if (this.hourFormat === '12') {
@@ -1072,44 +1089,39 @@ var script = {
1072
1089
  this.clearTimePickerTimer();
1073
1090
  },
1074
1091
  repeat(event, interval, type, direction) {
1075
- let i = interval||500;
1092
+ let i = interval || 500;
1076
1093
 
1077
1094
  this.clearTimePickerTimer();
1078
1095
  this.timePickerTimer = setTimeout(() => {
1079
1096
  this.repeat(event, 100, type, direction);
1080
1097
  }, i);
1081
1098
 
1082
- switch(type) {
1099
+ switch (type) {
1083
1100
  case 0:
1084
- if (direction === 1)
1085
- this.incrementHour(event);
1086
- else
1087
- this.decrementHour(event);
1088
- break;
1101
+ if (direction === 1) this.incrementHour(event);
1102
+ else this.decrementHour(event);
1103
+ break;
1089
1104
 
1090
1105
  case 1:
1091
- if (direction === 1)
1092
- this.incrementMinute(event);
1093
- else
1094
- this.decrementMinute(event);
1095
- break;
1106
+ if (direction === 1) this.incrementMinute(event);
1107
+ else this.decrementMinute(event);
1108
+ break;
1096
1109
 
1097
1110
  case 2:
1098
- if (direction === 1)
1099
- this.incrementSecond(event);
1100
- else
1101
- this.decrementSecond(event);
1102
- break;
1111
+ if (direction === 1) this.incrementSecond(event);
1112
+ else this.decrementSecond(event);
1113
+ break;
1103
1114
  }
1104
1115
  },
1105
1116
  convertTo24Hour(hours, pm) {
1106
1117
  if (this.hourFormat == '12') {
1107
1118
  if (hours === 12) {
1108
- return (pm ? 12 : 0);
1119
+ return pm ? 12 : 0;
1109
1120
  } else {
1110
- return (pm ? hours + 12 : hours);
1121
+ return pm ? hours + 12 : hours;
1111
1122
  }
1112
1123
  }
1124
+
1113
1125
  return hours;
1114
1126
  },
1115
1127
  validateTime(hour, minute, second, pm) {
@@ -1119,18 +1131,23 @@ var script = {
1119
1131
  if (this.isRangeSelection()) {
1120
1132
  value = this.modelValue[1] || this.modelValue[0];
1121
1133
  }
1134
+
1122
1135
  if (this.isMultipleSelection()) {
1123
1136
  value = this.modelValue[this.modelValue.length - 1];
1124
1137
  }
1138
+
1125
1139
  const valueDateString = value ? value.toDateString() : null;
1140
+
1126
1141
  if (this.minDate && valueDateString && this.minDate.toDateString() === valueDateString) {
1127
1142
  if (this.minDate.getHours() > convertedHour) {
1128
1143
  return false;
1129
1144
  }
1145
+
1130
1146
  if (this.minDate.getHours() === convertedHour) {
1131
1147
  if (this.minDate.getMinutes() > minute) {
1132
1148
  return false;
1133
1149
  }
1150
+
1134
1151
  if (this.minDate.getMinutes() === minute) {
1135
1152
  if (this.minDate.getSeconds() > second) {
1136
1153
  return false;
@@ -1143,10 +1160,12 @@ var script = {
1143
1160
  if (this.maxDate.getHours() < convertedHour) {
1144
1161
  return false;
1145
1162
  }
1163
+
1146
1164
  if (this.maxDate.getHours() === convertedHour) {
1147
1165
  if (this.maxDate.getMinutes() < minute) {
1148
1166
  return false;
1149
1167
  }
1168
+
1150
1169
  if (this.maxDate.getMinutes() === minute) {
1151
1170
  if (this.maxDate.getSeconds() < second) {
1152
1171
  return false;
@@ -1154,6 +1173,7 @@ var script = {
1154
1173
  }
1155
1174
  }
1156
1175
  }
1176
+
1157
1177
  return true;
1158
1178
  },
1159
1179
  incrementHour(event) {
@@ -1161,51 +1181,58 @@ var script = {
1161
1181
  let newHour = this.currentHour + this.stepHour;
1162
1182
  let newPM = this.pm;
1163
1183
 
1164
- if (this.hourFormat == '24')
1165
- newHour = (newHour >= 24) ? (newHour - 24) : newHour;
1184
+ if (this.hourFormat == '24') newHour = newHour >= 24 ? newHour - 24 : newHour;
1166
1185
  else if (this.hourFormat == '12') {
1167
1186
  // Before the AM/PM break, now after
1168
1187
  if (prevHour < 12 && newHour > 11) {
1169
- newPM= !this.pm;
1188
+ newPM = !this.pm;
1170
1189
  }
1171
- newHour = (newHour >= 13) ? (newHour - 12) : newHour;
1190
+
1191
+ newHour = newHour >= 13 ? newHour - 12 : newHour;
1172
1192
  }
1173
1193
 
1174
1194
  if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
1175
1195
  this.currentHour = newHour;
1176
1196
  this.pm = newPM;
1177
1197
  }
1198
+
1178
1199
  event.preventDefault();
1179
1200
  },
1180
1201
  decrementHour(event) {
1181
1202
  let newHour = this.currentHour - this.stepHour;
1182
1203
  let newPM = this.pm;
1183
1204
 
1184
- if (this.hourFormat == '24')
1185
- newHour = (newHour < 0) ? (24 + newHour) : newHour;
1205
+ if (this.hourFormat == '24') newHour = newHour < 0 ? 24 + newHour : newHour;
1186
1206
  else if (this.hourFormat == '12') {
1187
1207
  // If we were at noon/midnight, then switch
1188
1208
  if (this.currentHour === 12) {
1189
1209
  newPM = !this.pm;
1190
1210
  }
1191
- newHour = (newHour <= 0) ? (12 + newHour) : newHour;
1211
+
1212
+ newHour = newHour <= 0 ? 12 + newHour : newHour;
1192
1213
  }
1214
+
1193
1215
  if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
1194
1216
  this.currentHour = newHour;
1195
1217
  this.pm = newPM;
1196
1218
  }
1219
+
1197
1220
  event.preventDefault();
1198
1221
  },
1199
1222
  incrementMinute(event) {
1200
1223
  let newMinute = this.currentMinute + this.stepMinute;
1224
+
1201
1225
  if (this.validateTime(this.currentHour, newMinute, this.currentSecond, true)) {
1202
- this.currentMinute = (newMinute > 59) ? newMinute - 60 : newMinute;
1226
+ this.currentMinute = newMinute > 59 ? newMinute - 60 : newMinute;
1203
1227
  }
1228
+
1204
1229
  event.preventDefault();
1205
1230
  },
1206
1231
  decrementMinute(event) {
1207
1232
  let newMinute = this.currentMinute - this.stepMinute;
1208
- newMinute = (newMinute < 0) ? 60 + newMinute : newMinute;
1233
+
1234
+ newMinute = newMinute < 0 ? 60 + newMinute : newMinute;
1235
+
1209
1236
  if (this.validateTime(this.currentHour, newMinute, this.currentSecond, true)) {
1210
1237
  this.currentMinute = newMinute;
1211
1238
  }
@@ -1214,15 +1241,18 @@ var script = {
1214
1241
  },
1215
1242
  incrementSecond(event) {
1216
1243
  let newSecond = this.currentSecond + this.stepSecond;
1244
+
1217
1245
  if (this.validateTime(this.currentHour, this.currentMinute, newSecond, true)) {
1218
- this.currentSecond = (newSecond > 59) ? newSecond - 60 : newSecond;
1246
+ this.currentSecond = newSecond > 59 ? newSecond - 60 : newSecond;
1219
1247
  }
1220
1248
 
1221
1249
  event.preventDefault();
1222
1250
  },
1223
1251
  decrementSecond(event) {
1224
1252
  let newSecond = this.currentSecond - this.stepSecond;
1225
- newSecond = (newSecond < 0) ? 60 + newSecond : newSecond;
1253
+
1254
+ newSecond = newSecond < 0 ? 60 + newSecond : newSecond;
1255
+
1226
1256
  if (this.validateTime(this.currentHour, this.currentMinute, newSecond, true)) {
1227
1257
  this.currentSecond = newSecond;
1228
1258
  }
@@ -1236,18 +1266,17 @@ var script = {
1236
1266
  if (this.isRangeSelection()) {
1237
1267
  value = this.modelValue[1] || this.modelValue[0];
1238
1268
  }
1269
+
1239
1270
  if (this.isMultipleSelection()) {
1240
1271
  value = this.modelValue[this.modelValue.length - 1];
1241
1272
  }
1273
+
1242
1274
  value = value ? new Date(value.getTime()) : new Date();
1243
1275
 
1244
1276
  if (this.hourFormat == '12') {
1245
- if (this.currentHour === 12)
1246
- value.setHours(this.pm ? 12 : 0);
1247
- else
1248
- value.setHours(this.pm ? this.currentHour + 12 : this.currentHour);
1249
- }
1250
- else {
1277
+ if (this.currentHour === 12) value.setHours(this.pm ? 12 : 0);
1278
+ else value.setHours(this.pm ? this.currentHour + 12 : this.currentHour);
1279
+ } else {
1251
1280
  value.setHours(this.currentHour);
1252
1281
  }
1253
1282
 
@@ -1255,19 +1284,17 @@ var script = {
1255
1284
  value.setSeconds(this.currentSecond);
1256
1285
 
1257
1286
  if (this.isRangeSelection()) {
1258
- if (this.modelValue[1])
1259
- value = [this.modelValue[0], value];
1260
- else
1261
- value = [value, null];
1287
+ if (this.modelValue[1]) value = [this.modelValue[0], value];
1288
+ else value = [value, null];
1262
1289
  }
1263
1290
 
1264
- if (this.isMultipleSelection()){
1291
+ if (this.isMultipleSelection()) {
1265
1292
  value = [...this.modelValue.slice(0, -1), value];
1266
1293
  }
1267
1294
 
1268
1295
  this.updateModel(value);
1269
1296
  this.$emit('date-select', value);
1270
- setTimeout(() => this.timePickerChange = false, 0);
1297
+ setTimeout(() => (this.timePickerChange = false), 0);
1271
1298
  },
1272
1299
  toggleAMPM(event) {
1273
1300
  this.pm = !this.pm;
@@ -1281,24 +1308,22 @@ var script = {
1281
1308
  },
1282
1309
  onMonthSelect(event, index) {
1283
1310
  if (this.view === 'month') {
1284
- this.onDateSelect(event, {year: this.currentYear, month: index, day: 1, selectable: true});
1285
- }
1286
- else {
1311
+ this.onDateSelect(event, { year: this.currentYear, month: index, day: 1, selectable: true });
1312
+ } else {
1287
1313
  this.currentMonth = index;
1288
1314
  this.currentView = 'date';
1289
- this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
1315
+ this.$emit('month-change', { month: this.currentMonth + 1, year: this.currentYear });
1290
1316
  }
1291
1317
 
1292
1318
  setTimeout(this.updateFocus, 0);
1293
1319
  },
1294
1320
  onYearSelect(event, year) {
1295
1321
  if (this.view === 'year') {
1296
- this.onDateSelect(event, {year: year, month: 0, day: 1, selectable: true});
1297
- }
1298
- else {
1322
+ this.onDateSelect(event, { year: year, month: 0, day: 1, selectable: true });
1323
+ } else {
1299
1324
  this.currentYear = year;
1300
1325
  this.currentView = 'month';
1301
- this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
1326
+ this.$emit('year-change', { month: this.currentMonth + 1, year: this.currentYear });
1302
1327
  }
1303
1328
 
1304
1329
  setTimeout(this.updateFocus, 0);
@@ -1312,6 +1337,7 @@ var script = {
1312
1337
  this.maskClickListener = () => {
1313
1338
  this.overlayVisible = false;
1314
1339
  };
1340
+
1315
1341
  this.mask.addEventListener('click', this.maskClickListener);
1316
1342
 
1317
1343
  document.body.appendChild(this.mask);
@@ -1334,9 +1360,11 @@ var script = {
1334
1360
 
1335
1361
  let bodyChildren = document.body.children;
1336
1362
  let hasBlockerMasks;
1363
+
1337
1364
  for (let i = 0; i < bodyChildren.length; i++) {
1338
1365
  let bodyChild = bodyChildren[i];
1339
- if(utils.DomHandler.hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {
1366
+
1367
+ if (utils.DomHandler.hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {
1340
1368
  hasBlockerMasks = true;
1341
1369
  break;
1342
1370
  }
@@ -1348,6 +1376,7 @@ var script = {
1348
1376
  },
1349
1377
  updateCurrentMetaData() {
1350
1378
  const viewDate = this.viewDate;
1379
+
1351
1380
  this.currentMonth = viewDate.getMonth();
1352
1381
  this.currentYear = viewDate.getFullYear();
1353
1382
 
@@ -1361,15 +1390,17 @@ var script = {
1361
1390
  }
1362
1391
 
1363
1392
  let isValid = true;
1393
+
1364
1394
  if (this.isSingleSelection()) {
1365
1395
  if (!this.isSelectable(value.getDate(), value.getMonth(), value.getFullYear(), false)) {
1366
1396
  isValid = false;
1367
1397
  }
1368
- } else if (value.every(v => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false))) {
1398
+ } else if (value.every((v) => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false))) {
1369
1399
  if (this.isRangeSelection()) {
1370
1400
  isValid = value.length > 1 && value[1] > value[0] ? true : false;
1371
1401
  }
1372
1402
  }
1403
+
1373
1404
  return isValid;
1374
1405
  },
1375
1406
  parseValue(text) {
@@ -1381,17 +1412,19 @@ var script = {
1381
1412
 
1382
1413
  if (this.isSingleSelection()) {
1383
1414
  value = this.parseDateTime(text);
1384
- }
1385
- else if (this.isMultipleSelection()) {
1415
+ } else if (this.isMultipleSelection()) {
1386
1416
  let tokens = text.split(',');
1417
+
1387
1418
  value = [];
1419
+
1388
1420
  for (let token of tokens) {
1389
1421
  value.push(this.parseDateTime(token.trim()));
1390
1422
  }
1391
- }
1392
- else if (this.isRangeSelection()) {
1423
+ } else if (this.isRangeSelection()) {
1393
1424
  let tokens = text.split(' - ');
1425
+
1394
1426
  value = [];
1427
+
1395
1428
  for (let i = 0; i < tokens.length; i++) {
1396
1429
  value[i] = this.parseDateTime(tokens[i].trim());
1397
1430
  }
@@ -1406,14 +1439,13 @@ var script = {
1406
1439
  if (this.timeOnly) {
1407
1440
  date = new Date();
1408
1441
  this.populateTime(date, parts[0], parts[1]);
1409
- }
1410
- else {
1442
+ } else {
1411
1443
  const dateFormat = this.datePattern;
1444
+
1412
1445
  if (this.showTime) {
1413
1446
  date = this.parseDate(parts[0], dateFormat);
1414
1447
  this.populateTime(date, parts[1], parts[2]);
1415
- }
1416
- else {
1448
+ } else {
1417
1449
  date = this.parseDate(text, dateFormat);
1418
1450
  }
1419
1451
  }
@@ -1425,8 +1457,9 @@ var script = {
1425
1457
  throw 'Invalid Time';
1426
1458
  }
1427
1459
 
1428
- this.pm = (ampm === 'PM' || ampm === 'pm');
1460
+ this.pm = ampm === 'PM' || ampm === 'pm';
1429
1461
  let time = this.parseTime(timeString);
1462
+
1430
1463
  value.setHours(time.hour);
1431
1464
  value.setMinutes(time.minute);
1432
1465
  value.setSeconds(time.second);
@@ -1434,10 +1467,10 @@ var script = {
1434
1467
  parseTime(value) {
1435
1468
  let tokens = value.split(':');
1436
1469
  let validTokenLength = this.showSeconds ? 3 : 2;
1437
- let regex = (/^[0-9][0-9]$/);
1470
+ let regex = /^[0-9][0-9]$/;
1438
1471
 
1439
1472
  if (tokens.length !== validTokenLength || !tokens[0].match(regex) || !tokens[1].match(regex) || (this.showSeconds && !tokens[2].match(regex))) {
1440
- throw "Invalid time";
1473
+ throw 'Invalid time';
1441
1474
  }
1442
1475
 
1443
1476
  let h = parseInt(tokens[0]);
@@ -1445,88 +1478,97 @@ var script = {
1445
1478
  let s = this.showSeconds ? parseInt(tokens[2]) : null;
1446
1479
 
1447
1480
  if (isNaN(h) || isNaN(m) || h > 23 || m > 59 || (this.hourFormat == '12' && h > 12) || (this.showSeconds && (isNaN(s) || s > 59))) {
1448
- throw "Invalid time";
1449
- }
1450
- else {
1481
+ throw 'Invalid time';
1482
+ } else {
1451
1483
  if (this.hourFormat == '12' && h !== 12 && this.pm) {
1452
- h+= 12;
1484
+ h += 12;
1453
1485
  }
1454
1486
 
1455
- return {hour: h, minute: m, second: s};
1487
+ return { hour: h, minute: m, second: s };
1456
1488
  }
1457
1489
  },
1458
1490
  parseDate(value, format) {
1459
1491
  if (format == null || value == null) {
1460
- throw "Invalid arguments";
1492
+ throw 'Invalid arguments';
1461
1493
  }
1462
1494
 
1463
- value = (typeof value === "object" ? value.toString() : value + "");
1464
- if (value === "") {
1495
+ value = typeof value === 'object' ? value.toString() : value + '';
1496
+
1497
+ if (value === '') {
1465
1498
  return null;
1466
1499
  }
1467
1500
 
1468
- let iFormat, dim, extra,
1469
- iValue = 0,
1470
- shortYearCutoff = (typeof this.shortYearCutoff !== "string" ? this.shortYearCutoff : new Date().getFullYear() % 100 + parseInt(this.shortYearCutoff, 10)),
1471
- year = -1,
1472
- month = -1,
1473
- day = -1,
1474
- doy = -1,
1475
- literal = false,
1476
- date,
1477
- lookAhead = (match) => {
1478
- let matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
1479
- if (matches) {
1480
- iFormat++;
1481
- }
1482
- return matches;
1483
- },
1484
- getNumber = (match) => {
1485
- let isDoubled = lookAhead(match),
1486
- size = (match === "@" ? 14 : (match === "!" ? 20 :
1487
- (match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))),
1488
- minSize = (match === "y" ? size : 1),
1489
- digits = new RegExp("^\\d{" + minSize + "," + size + "}"),
1490
- num = value.substring(iValue).match(digits);
1491
- if (!num) {
1492
- throw "Missing number at position " + iValue;
1493
- }
1494
- iValue += num[ 0 ].length;
1495
- return parseInt(num[ 0 ], 10);
1496
- },
1497
- getName = (match, shortNames, longNames) => {
1498
- let index = -1;
1499
- let arr = lookAhead(match) ? longNames : shortNames;
1500
- let names = [];
1501
-
1502
- for (let i = 0; i < arr.length; i++) {
1503
- names.push([i,arr[i]]);
1504
- }
1505
- names.sort((a,b) => {
1506
- return -(a[ 1 ].length - b[ 1 ].length);
1507
- });
1501
+ let iFormat,
1502
+ dim,
1503
+ extra,
1504
+ iValue = 0,
1505
+ shortYearCutoff = typeof this.shortYearCutoff !== 'string' ? this.shortYearCutoff : (new Date().getFullYear() % 100) + parseInt(this.shortYearCutoff, 10),
1506
+ year = -1,
1507
+ month = -1,
1508
+ day = -1,
1509
+ doy = -1,
1510
+ literal = false,
1511
+ date,
1512
+ lookAhead = (match) => {
1513
+ let matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;
1508
1514
 
1509
- for (let i = 0; i < names.length; i++) {
1510
- let name = names[i][1];
1511
- if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
1512
- index = names[i][0];
1513
- iValue += name.length;
1514
- break;
1515
+ if (matches) {
1516
+ iFormat++;
1515
1517
  }
1516
- }
1517
1518
 
1518
- if (index !== -1) {
1519
- return index + 1;
1520
- } else {
1521
- throw "Unknown name at position " + iValue;
1522
- }
1523
- },
1524
- checkLiteral = () => {
1525
- if (value.charAt(iValue) !== format.charAt(iFormat)) {
1526
- throw "Unexpected literal at position " + iValue;
1527
- }
1528
- iValue++;
1529
- };
1519
+ return matches;
1520
+ },
1521
+ getNumber = (match) => {
1522
+ let isDoubled = lookAhead(match),
1523
+ size = match === '@' ? 14 : match === '!' ? 20 : match === 'y' && isDoubled ? 4 : match === 'o' ? 3 : 2,
1524
+ minSize = match === 'y' ? size : 1,
1525
+ digits = new RegExp('^\\d{' + minSize + ',' + size + '}'),
1526
+ num = value.substring(iValue).match(digits);
1527
+
1528
+ if (!num) {
1529
+ throw 'Missing number at position ' + iValue;
1530
+ }
1531
+
1532
+ iValue += num[0].length;
1533
+
1534
+ return parseInt(num[0], 10);
1535
+ },
1536
+ getName = (match, shortNames, longNames) => {
1537
+ let index = -1;
1538
+ let arr = lookAhead(match) ? longNames : shortNames;
1539
+ let names = [];
1540
+
1541
+ for (let i = 0; i < arr.length; i++) {
1542
+ names.push([i, arr[i]]);
1543
+ }
1544
+
1545
+ names.sort((a, b) => {
1546
+ return -(a[1].length - b[1].length);
1547
+ });
1548
+
1549
+ for (let i = 0; i < names.length; i++) {
1550
+ let name = names[i][1];
1551
+
1552
+ if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
1553
+ index = names[i][0];
1554
+ iValue += name.length;
1555
+ break;
1556
+ }
1557
+ }
1558
+
1559
+ if (index !== -1) {
1560
+ return index + 1;
1561
+ } else {
1562
+ throw 'Unknown name at position ' + iValue;
1563
+ }
1564
+ },
1565
+ checkLiteral = () => {
1566
+ if (value.charAt(iValue) !== format.charAt(iFormat)) {
1567
+ throw 'Unexpected literal at position ' + iValue;
1568
+ }
1569
+
1570
+ iValue++;
1571
+ };
1530
1572
 
1531
1573
  if (this.currentView === 'month') {
1532
1574
  day = 1;
@@ -1541,32 +1583,32 @@ var script = {
1541
1583
  }
1542
1584
  } else {
1543
1585
  switch (format.charAt(iFormat)) {
1544
- case "d":
1545
- day = getNumber("d");
1586
+ case 'd':
1587
+ day = getNumber('d');
1546
1588
  break;
1547
- case "D":
1548
- getName("D", this.$primevue.config.locale.dayNamesShort, this.$primevue.config.locale.dayNames);
1589
+ case 'D':
1590
+ getName('D', this.$primevue.config.locale.dayNamesShort, this.$primevue.config.locale.dayNames);
1549
1591
  break;
1550
- case "o":
1551
- doy = getNumber("o");
1592
+ case 'o':
1593
+ doy = getNumber('o');
1552
1594
  break;
1553
- case "m":
1554
- month = getNumber("m");
1595
+ case 'm':
1596
+ month = getNumber('m');
1555
1597
  break;
1556
- case "M":
1557
- month = getName("M", this.$primevue.config.locale.monthNamesShort, this.$primevue.config.locale.monthNames);
1598
+ case 'M':
1599
+ month = getName('M', this.$primevue.config.locale.monthNamesShort, this.$primevue.config.locale.monthNames);
1558
1600
  break;
1559
- case "y":
1560
- year = getNumber("y");
1601
+ case 'y':
1602
+ year = getNumber('y');
1561
1603
  break;
1562
- case "@":
1563
- date = new Date(getNumber("@"));
1604
+ case '@':
1605
+ date = new Date(getNumber('@'));
1564
1606
  year = date.getFullYear();
1565
1607
  month = date.getMonth() + 1;
1566
1608
  day = date.getDate();
1567
1609
  break;
1568
- case "!":
1569
- date = new Date((getNumber("!") - this.ticksTo1970) / 10000);
1610
+ case '!':
1611
+ date = new Date((getNumber('!') - this.ticksTo1970) / 10000);
1570
1612
  year = date.getFullYear();
1571
1613
  month = date.getMonth() + 1;
1572
1614
  day = date.getDate();
@@ -1577,6 +1619,7 @@ var script = {
1577
1619
  } else {
1578
1620
  literal = true;
1579
1621
  }
1622
+
1580
1623
  break;
1581
1624
  default:
1582
1625
  checkLiteral();
@@ -1586,47 +1629,53 @@ var script = {
1586
1629
 
1587
1630
  if (iValue < value.length) {
1588
1631
  extra = value.substr(iValue);
1632
+
1589
1633
  if (!/^\s+/.test(extra)) {
1590
- throw "Extra/unparsed characters found in date: " + extra;
1634
+ throw 'Extra/unparsed characters found in date: ' + extra;
1591
1635
  }
1592
1636
  }
1593
1637
 
1594
1638
  if (year === -1) {
1595
1639
  year = new Date().getFullYear();
1596
1640
  } else if (year < 100) {
1597
- year += new Date().getFullYear() - new Date().getFullYear() % 100 +
1598
- (year <= shortYearCutoff ? 0 : -100);
1641
+ year += new Date().getFullYear() - (new Date().getFullYear() % 100) + (year <= shortYearCutoff ? 0 : -100);
1599
1642
  }
1600
1643
 
1601
1644
  if (doy > -1) {
1602
1645
  month = 1;
1603
1646
  day = doy;
1647
+
1604
1648
  do {
1605
1649
  dim = this.getDaysCountInMonth(year, month - 1);
1650
+
1606
1651
  if (day <= dim) {
1607
1652
  break;
1608
1653
  }
1654
+
1609
1655
  month++;
1610
1656
  day -= dim;
1611
- // eslint-disable-next-line
1657
+ // eslint-disable-next-line
1612
1658
  } while (true);
1613
1659
  }
1614
1660
 
1615
1661
  date = this.daylightSavingAdjust(new Date(year, month - 1, day));
1616
1662
 
1617
1663
  if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
1618
- throw "Invalid date"; // E.g. 31/02/00
1664
+ throw 'Invalid date'; // E.g. 31/02/00
1619
1665
  }
1620
1666
 
1621
1667
  return date;
1622
1668
  },
1623
1669
  getWeekNumber(date) {
1624
1670
  let checkDate = new Date(date.getTime());
1625
- checkDate.setDate(checkDate.getDate() + 4 - ( checkDate.getDay() || 7 ));
1671
+
1672
+ checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));
1626
1673
  let time = checkDate.getTime();
1627
- checkDate.setMonth( 0 );
1628
- checkDate.setDate( 1 );
1629
- return Math.floor( Math.round((time - checkDate.getTime()) / 86400000 ) / 7 ) + 1;
1674
+
1675
+ checkDate.setMonth(0);
1676
+ checkDate.setDate(1);
1677
+
1678
+ return Math.floor(Math.round((time - checkDate.getTime()) / 86400000) / 7) + 1;
1630
1679
  },
1631
1680
  onDateCellKeydown(event, date, groupIndex) {
1632
1681
  const cellContent = event.currentTarget;
@@ -1637,21 +1686,22 @@ var script = {
1637
1686
  cellContent.tabIndex = '-1';
1638
1687
  let cellIndex = utils.DomHandler.index(cell);
1639
1688
  let nextRow = cell.parentElement.nextElementSibling;
1689
+
1640
1690
  if (nextRow) {
1641
1691
  let focusCell = nextRow.children[cellIndex].children[0];
1692
+
1642
1693
  if (utils.DomHandler.hasClass(focusCell, 'p-disabled')) {
1643
- this.navigationState = {backward: false};
1694
+ this.navigationState = { backward: false };
1644
1695
  this.navForward(event);
1645
- }
1646
- else {
1696
+ } else {
1647
1697
  nextRow.children[cellIndex].children[0].tabIndex = '0';
1648
1698
  nextRow.children[cellIndex].children[0].focus();
1649
1699
  }
1650
- }
1651
- else {
1652
- this.navigationState = {backward: false};
1700
+ } else {
1701
+ this.navigationState = { backward: false };
1653
1702
  this.navForward(event);
1654
1703
  }
1704
+
1655
1705
  event.preventDefault();
1656
1706
  break;
1657
1707
  }
@@ -1660,21 +1710,22 @@ var script = {
1660
1710
  cellContent.tabIndex = '-1';
1661
1711
  let cellIndex = utils.DomHandler.index(cell);
1662
1712
  let prevRow = cell.parentElement.previousElementSibling;
1713
+
1663
1714
  if (prevRow) {
1664
1715
  let focusCell = prevRow.children[cellIndex].children[0];
1716
+
1665
1717
  if (utils.DomHandler.hasClass(focusCell, 'p-disabled')) {
1666
- this.navigationState = {backward: true};
1718
+ this.navigationState = { backward: true };
1667
1719
  this.navBackward(event);
1668
- }
1669
- else {
1720
+ } else {
1670
1721
  focusCell.tabIndex = '0';
1671
1722
  focusCell.focus();
1672
1723
  }
1673
- }
1674
- else {
1675
- this.navigationState = {backward: true};
1724
+ } else {
1725
+ this.navigationState = { backward: true };
1676
1726
  this.navBackward(event);
1677
1727
  }
1728
+
1678
1729
  event.preventDefault();
1679
1730
  break;
1680
1731
  }
@@ -1682,19 +1733,20 @@ var script = {
1682
1733
  case 'ArrowLeft': {
1683
1734
  cellContent.tabIndex = '-1';
1684
1735
  let prevCell = cell.previousElementSibling;
1736
+
1685
1737
  if (prevCell) {
1686
1738
  let focusCell = prevCell.children[0];
1739
+
1687
1740
  if (utils.DomHandler.hasClass(focusCell, 'p-disabled')) {
1688
1741
  this.navigateToMonth(event, true, groupIndex);
1689
- }
1690
- else {
1742
+ } else {
1691
1743
  focusCell.tabIndex = '0';
1692
1744
  focusCell.focus();
1693
1745
  }
1694
- }
1695
- else {
1746
+ } else {
1696
1747
  this.navigateToMonth(event, true, groupIndex);
1697
1748
  }
1749
+
1698
1750
  event.preventDefault();
1699
1751
  break;
1700
1752
  }
@@ -1702,24 +1754,26 @@ var script = {
1702
1754
  case 'ArrowRight': {
1703
1755
  cellContent.tabIndex = '-1';
1704
1756
  let nextCell = cell.nextElementSibling;
1757
+
1705
1758
  if (nextCell) {
1706
1759
  let focusCell = nextCell.children[0];
1760
+
1707
1761
  if (utils.DomHandler.hasClass(focusCell, 'p-disabled')) {
1708
1762
  this.navigateToMonth(event, false, groupIndex);
1709
- }
1710
- else {
1763
+ } else {
1711
1764
  focusCell.tabIndex = '0';
1712
1765
  focusCell.focus();
1713
1766
  }
1714
- }
1715
- else {
1767
+ } else {
1716
1768
  this.navigateToMonth(event, false, groupIndex);
1717
1769
  }
1770
+
1718
1771
  event.preventDefault();
1719
1772
  break;
1720
1773
  }
1721
1774
 
1722
1775
  case 'Enter':
1776
+
1723
1777
  case 'Space': {
1724
1778
  this.onDateSelect(event, date);
1725
1779
  event.preventDefault();
@@ -1736,6 +1790,7 @@ var script = {
1736
1790
  if (!this.inline) {
1737
1791
  this.trapFocus(event);
1738
1792
  }
1793
+
1739
1794
  break;
1740
1795
  }
1741
1796
 
@@ -1743,10 +1798,10 @@ var script = {
1743
1798
  cellContent.tabIndex = '-1';
1744
1799
  let currentRow = cell.parentElement;
1745
1800
  let focusCell = currentRow.children[0].children[0];
1801
+
1746
1802
  if (utils.DomHandler.hasClass(focusCell, 'p-disabled')) {
1747
1803
  this.navigateToMonth(event, true, groupIndex);
1748
- }
1749
- else {
1804
+ } else {
1750
1805
  focusCell.tabIndex = '0';
1751
1806
  focusCell.focus();
1752
1807
  }
@@ -1758,11 +1813,11 @@ var script = {
1758
1813
  case 'End': {
1759
1814
  cellContent.tabIndex = '-1';
1760
1815
  let currentRow = cell.parentElement;
1761
- let focusCell = currentRow.children[currentRow.children.length -1].children[0];
1816
+ let focusCell = currentRow.children[currentRow.children.length - 1].children[0];
1817
+
1762
1818
  if (utils.DomHandler.hasClass(focusCell, 'p-disabled')) {
1763
1819
  this.navigateToMonth(event, false, groupIndex);
1764
- }
1765
- else {
1820
+ } else {
1766
1821
  focusCell.tabIndex = '0';
1767
1822
  focusCell.focus();
1768
1823
  }
@@ -1774,10 +1829,9 @@ var script = {
1774
1829
  case 'PageUp': {
1775
1830
  cellContent.tabIndex = '-1';
1776
1831
  if (event.shiftKey) {
1777
- this.navigationState = {backward: true};
1832
+ this.navigationState = { backward: true };
1778
1833
  this.navBackward(event);
1779
- }
1780
- else this.navigateToMonth(event, true, groupIndex);
1834
+ } else this.navigateToMonth(event, true, groupIndex);
1781
1835
 
1782
1836
  event.preventDefault();
1783
1837
  break;
@@ -1786,10 +1840,9 @@ var script = {
1786
1840
  case 'PageDown': {
1787
1841
  cellContent.tabIndex = '-1';
1788
1842
  if (event.shiftKey) {
1789
- this.navigationState = {backward: false};
1843
+ this.navigationState = { backward: false };
1790
1844
  this.navForward(event);
1791
- }
1792
- else this.navigateToMonth(event, false, groupIndex);
1845
+ } else this.navigateToMonth(event, false, groupIndex);
1793
1846
 
1794
1847
  event.preventDefault();
1795
1848
  break;
@@ -1798,26 +1851,25 @@ var script = {
1798
1851
  },
1799
1852
  navigateToMonth(event, prev, groupIndex) {
1800
1853
  if (prev) {
1801
- if (this.numberOfMonths === 1 || (groupIndex === 0)) {
1802
- this.navigationState = {backward: true};
1854
+ if (this.numberOfMonths === 1 || groupIndex === 0) {
1855
+ this.navigationState = { backward: true };
1803
1856
  this.navBackward(event);
1804
- }
1805
- else {
1857
+ } else {
1806
1858
  let prevMonthContainer = this.overlay.children[groupIndex - 1];
1807
1859
  let cells = utils.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
1808
1860
  let focusCell = cells[cells.length - 1];
1861
+
1809
1862
  focusCell.tabIndex = '0';
1810
1863
  focusCell.focus();
1811
1864
  }
1812
- }
1813
- else {
1814
- if (this.numberOfMonths === 1 || (groupIndex === this.numberOfMonths - 1)) {
1815
- this.navigationState = {backward: false};
1865
+ } else {
1866
+ if (this.numberOfMonths === 1 || groupIndex === this.numberOfMonths - 1) {
1867
+ this.navigationState = { backward: false };
1816
1868
  this.navForward(event);
1817
- }
1818
- else {
1869
+ } else {
1819
1870
  let nextMonthContainer = this.overlay.children[groupIndex + 1];
1820
1871
  let focusCell = utils.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
1872
+
1821
1873
  focusCell.tabIndex = '0';
1822
1874
  focusCell.focus();
1823
1875
  }
@@ -1828,15 +1880,18 @@ var script = {
1828
1880
 
1829
1881
  switch (event.code) {
1830
1882
  case 'ArrowUp':
1883
+
1831
1884
  case 'ArrowDown': {
1832
1885
  cell.tabIndex = '-1';
1833
1886
  var cells = cell.parentElement.children;
1834
1887
  var cellIndex = utils.DomHandler.index(cell);
1835
- let nextCell = cells[event.code === 'ArrowDown' ? cellIndex + 3 : cellIndex -3];
1888
+ let nextCell = cells[event.code === 'ArrowDown' ? cellIndex + 3 : cellIndex - 3];
1889
+
1836
1890
  if (nextCell) {
1837
1891
  nextCell.tabIndex = '0';
1838
1892
  nextCell.focus();
1839
1893
  }
1894
+
1840
1895
  event.preventDefault();
1841
1896
  break;
1842
1897
  }
@@ -1844,14 +1899,15 @@ var script = {
1844
1899
  case 'ArrowLeft': {
1845
1900
  cell.tabIndex = '-1';
1846
1901
  let prevCell = cell.previousElementSibling;
1902
+
1847
1903
  if (prevCell) {
1848
1904
  prevCell.tabIndex = '0';
1849
1905
  prevCell.focus();
1850
- }
1851
- else {
1852
- this.navigationState = {backward: true};
1906
+ } else {
1907
+ this.navigationState = { backward: true };
1853
1908
  this.navBackward(event);
1854
1909
  }
1910
+
1855
1911
  event.preventDefault();
1856
1912
  break;
1857
1913
  }
@@ -1859,21 +1915,22 @@ var script = {
1859
1915
  case 'ArrowRight': {
1860
1916
  cell.tabIndex = '-1';
1861
1917
  let nextCell = cell.nextElementSibling;
1918
+
1862
1919
  if (nextCell) {
1863
1920
  nextCell.tabIndex = '0';
1864
1921
  nextCell.focus();
1865
- }
1866
- else {
1867
- this.navigationState = {backward: false};
1922
+ } else {
1923
+ this.navigationState = { backward: false };
1868
1924
  this.navForward(event);
1869
1925
  }
1926
+
1870
1927
  event.preventDefault();
1871
1928
  break;
1872
1929
  }
1873
1930
 
1874
1931
  case 'PageUp': {
1875
1932
  if (event.shiftKey) return;
1876
- this.navigationState = {backward: true};
1933
+ this.navigationState = { backward: true };
1877
1934
  this.navBackward(event);
1878
1935
 
1879
1936
  break;
@@ -1881,13 +1938,14 @@ var script = {
1881
1938
 
1882
1939
  case 'PageDown': {
1883
1940
  if (event.shiftKey) return;
1884
- this.navigationState = {backward: false};
1941
+ this.navigationState = { backward: false };
1885
1942
  this.navForward(event);
1886
1943
 
1887
1944
  break;
1888
1945
  }
1889
1946
 
1890
1947
  case 'Enter':
1948
+
1891
1949
  case 'Space': {
1892
1950
  this.onMonthSelect(event, index);
1893
1951
  event.preventDefault();
@@ -1911,15 +1969,18 @@ var script = {
1911
1969
 
1912
1970
  switch (event.code) {
1913
1971
  case 'ArrowUp':
1914
- case 'ArrowDown': {
1972
+
1973
+ case 'ArrowDown': {
1915
1974
  cell.tabIndex = '-1';
1916
1975
  var cells = cell.parentElement.children;
1917
1976
  var cellIndex = utils.DomHandler.index(cell);
1918
1977
  let nextCell = cells[event.code === 'ArrowDown' ? cellIndex + 2 : cellIndex - 2];
1978
+
1919
1979
  if (nextCell) {
1920
1980
  nextCell.tabIndex = '0';
1921
1981
  nextCell.focus();
1922
1982
  }
1983
+
1923
1984
  event.preventDefault();
1924
1985
  break;
1925
1986
  }
@@ -1927,14 +1988,15 @@ var script = {
1927
1988
  case 'ArrowLeft': {
1928
1989
  cell.tabIndex = '-1';
1929
1990
  let prevCell = cell.previousElementSibling;
1991
+
1930
1992
  if (prevCell) {
1931
1993
  prevCell.tabIndex = '0';
1932
1994
  prevCell.focus();
1933
- }
1934
- else {
1935
- this.navigationState = {backward: true};
1995
+ } else {
1996
+ this.navigationState = { backward: true };
1936
1997
  this.navBackward(event);
1937
1998
  }
1999
+
1938
2000
  event.preventDefault();
1939
2001
  break;
1940
2002
  }
@@ -1942,21 +2004,22 @@ var script = {
1942
2004
  case 'ArrowRight': {
1943
2005
  cell.tabIndex = '-1';
1944
2006
  let nextCell = cell.nextElementSibling;
2007
+
1945
2008
  if (nextCell) {
1946
2009
  nextCell.tabIndex = '0';
1947
2010
  nextCell.focus();
1948
- }
1949
- else {
1950
- this.navigationState = {backward: false};
2011
+ } else {
2012
+ this.navigationState = { backward: false };
1951
2013
  this.navForward(event);
1952
2014
  }
2015
+
1953
2016
  event.preventDefault();
1954
2017
  break;
1955
2018
  }
1956
2019
 
1957
2020
  case 'PageUp': {
1958
2021
  if (event.shiftKey) return;
1959
- this.navigationState = {backward: true};
2022
+ this.navigationState = { backward: true };
1960
2023
  this.navBackward(event);
1961
2024
 
1962
2025
  break;
@@ -1964,13 +2027,14 @@ var script = {
1964
2027
 
1965
2028
  case 'PageDown': {
1966
2029
  if (event.shiftKey) return;
1967
- this.navigationState = {backward: false};
2030
+ this.navigationState = { backward: false };
1968
2031
  this.navForward(event);
1969
2032
 
1970
2033
  break;
1971
2034
  }
1972
2035
 
1973
2036
  case 'Enter':
2037
+
1974
2038
  case 'Space': {
1975
2039
  this.onYearSelect(event, index);
1976
2040
  event.preventDefault();
@@ -1996,37 +2060,29 @@ var script = {
1996
2060
  if (this.navigationState.button) {
1997
2061
  this.initFocusableCell();
1998
2062
 
1999
- if (this.navigationState.backward)
2000
- utils.DomHandler.findSingle(this.overlay, '.p-datepicker-prev').focus();
2001
- else
2002
- utils.DomHandler.findSingle(this.overlay, '.p-datepicker-next').focus();
2003
- }
2004
- else {
2063
+ if (this.navigationState.backward) utils.DomHandler.findSingle(this.overlay, '.p-datepicker-prev').focus();
2064
+ else utils.DomHandler.findSingle(this.overlay, '.p-datepicker-next').focus();
2065
+ } else {
2005
2066
  if (this.navigationState.backward) {
2006
2067
  let cells;
2007
2068
 
2008
2069
  if (this.currentView === 'month') {
2009
2070
  cells = utils.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
2010
- }
2011
- else if (this.currentView === 'year') {
2071
+ } else if (this.currentView === 'year') {
2012
2072
  cells = utils.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
2013
- }
2014
- else {
2073
+ } else {
2015
2074
  cells = utils.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
2016
2075
  }
2017
2076
 
2018
2077
  if (cells && cells.length > 0) {
2019
2078
  cell = cells[cells.length - 1];
2020
2079
  }
2021
- }
2022
- else {
2080
+ } else {
2023
2081
  if (this.currentView === 'month') {
2024
2082
  cell = utils.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
2025
- }
2026
- else if (this.currentView === 'year') {
2083
+ } else if (this.currentView === 'year') {
2027
2084
  cell = utils.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
2028
- }
2029
- else {
2085
+ } else {
2030
2086
  cell = utils.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
2031
2087
  }
2032
2088
  }
@@ -2038,8 +2094,7 @@ var script = {
2038
2094
  }
2039
2095
 
2040
2096
  this.navigationState = null;
2041
- }
2042
- else {
2097
+ } else {
2043
2098
  this.initFocusableCell();
2044
2099
  }
2045
2100
  },
@@ -2048,24 +2103,24 @@ var script = {
2048
2103
 
2049
2104
  if (this.currentView === 'month') {
2050
2105
  let cells = utils.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month');
2051
- let selectedCell= utils.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month.p-highlight');
2052
- cells.forEach(cell => cell.tabIndex = -1);
2106
+ let selectedCell = utils.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month.p-highlight');
2107
+
2108
+ cells.forEach((cell) => (cell.tabIndex = -1));
2053
2109
  cell = selectedCell || cells[0];
2054
- }
2055
- else if (this.currentView === 'year') {
2110
+ } else if (this.currentView === 'year') {
2056
2111
  let cells = utils.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year');
2057
- let selectedCell= utils.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year.p-highlight');
2058
- cells.forEach(cell => cell.tabIndex = -1);
2112
+ let selectedCell = utils.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year.p-highlight');
2113
+
2114
+ cells.forEach((cell) => (cell.tabIndex = -1));
2059
2115
  cell = selectedCell || cells[0];
2060
- }
2061
- else {
2116
+ } else {
2062
2117
  cell = utils.DomHandler.findSingle(this.overlay, 'span.p-highlight');
2118
+
2063
2119
  if (!cell) {
2064
2120
  let todayCell = utils.DomHandler.findSingle(this.overlay, 'td.p-datepicker-today span:not(.p-disabled):not(.p-ink');
2065
- if (todayCell)
2066
- cell = todayCell;
2067
- else
2068
- cell = utils.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink');
2121
+
2122
+ if (todayCell) cell = todayCell;
2123
+ else cell = utils.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink');
2069
2124
  }
2070
2125
  }
2071
2126
 
@@ -2086,34 +2141,27 @@ var script = {
2086
2141
  if (focusableElements && focusableElements.length > 0) {
2087
2142
  if (!document.activeElement) {
2088
2143
  focusableElements[0].focus();
2089
- }
2090
- else {
2144
+ } else {
2091
2145
  let focusedIndex = focusableElements.indexOf(document.activeElement);
2092
2146
 
2093
2147
  if (event.shiftKey) {
2094
- if (focusedIndex === -1 || focusedIndex === 0)
2095
- focusableElements[focusableElements.length - 1].focus();
2096
- else
2097
- focusableElements[focusedIndex - 1].focus();
2098
- }
2099
- else {
2148
+ if (focusedIndex === -1 || focusedIndex === 0) focusableElements[focusableElements.length - 1].focus();
2149
+ else focusableElements[focusedIndex - 1].focus();
2150
+ } else {
2100
2151
  if (focusedIndex === -1) {
2101
2152
  if (this.timeOnly) {
2102
2153
  focusableElements[0].focus();
2103
- }
2104
- else {
2154
+ } else {
2105
2155
  let spanIndex = null;
2106
- for (let i = 0; i < focusableElements.length; i++){
2107
- if (focusableElements[i].tagName === 'SPAN')
2108
- spanIndex = i;
2156
+
2157
+ for (let i = 0; i < focusableElements.length; i++) {
2158
+ if (focusableElements[i].tagName === 'SPAN') spanIndex = i;
2109
2159
  }
2160
+
2110
2161
  focusableElements[spanIndex].focus();
2111
2162
  }
2112
- }
2113
- else if (focusedIndex === (focusableElements.length - 1))
2114
- focusableElements[0].focus();
2115
- else
2116
- focusableElements[focusedIndex + 1].focus();
2163
+ } else if (focusedIndex === focusableElements.length - 1) focusableElements[0].focus();
2164
+ else focusableElements[focusedIndex + 1].focus();
2117
2165
  }
2118
2166
  }
2119
2167
  }
@@ -2122,12 +2170,12 @@ var script = {
2122
2170
  switch (event.code) {
2123
2171
  case 'Tab':
2124
2172
  this.trapFocus(event);
2125
- break;
2173
+ break;
2126
2174
 
2127
2175
  case 'Escape':
2128
2176
  this.overlayVisible = false;
2129
2177
  event.preventDefault();
2130
- break;
2178
+ break;
2131
2179
  }
2132
2180
 
2133
2181
  this.$emit('keydown', event);
@@ -2138,12 +2186,12 @@ var script = {
2138
2186
  this.selectionEnd = this.input.selectionEnd;
2139
2187
 
2140
2188
  let value = this.parseValue(event.target.value);
2189
+
2141
2190
  if (this.isValidSelection(value)) {
2142
2191
  this.typeUpdate = true;
2143
2192
  this.updateModel(value);
2144
2193
  }
2145
- }
2146
- catch(err) {
2194
+ } catch (err) {
2147
2195
  /* NoOp */
2148
2196
  }
2149
2197
 
@@ -2153,11 +2201,12 @@ var script = {
2153
2201
  if (this.showOnFocus && this.isEnabled()) {
2154
2202
  this.overlayVisible = true;
2155
2203
  }
2204
+
2156
2205
  this.focused = true;
2157
2206
  this.$emit('focus', event);
2158
2207
  },
2159
2208
  onBlur(event) {
2160
- this.$emit('blur', {originalEvent: event, value: event.target.value});
2209
+ this.$emit('blur', { originalEvent: event, value: event.target.value });
2161
2210
 
2162
2211
  this.focused = false;
2163
2212
  event.target.value = this.formatValue(this.modelValue);
@@ -2165,19 +2214,16 @@ var script = {
2165
2214
  onKeyDown(event) {
2166
2215
  if (event.code === 'ArrowDown' && this.overlay) {
2167
2216
  this.trapFocus(event);
2168
- }
2169
- else if (event.code === 'ArrowDown' && !this.overlay) {
2217
+ } else if (event.code === 'ArrowDown' && !this.overlay) {
2170
2218
  this.overlayVisible = true;
2171
- }
2172
- else if (event.code === 'Escape') {
2219
+ } else if (event.code === 'Escape') {
2173
2220
  if (this.overlayVisible) {
2174
2221
  this.overlayVisible = false;
2175
2222
  event.preventDefault();
2176
2223
  }
2177
- }
2178
- else if (event.code === 'Tab') {
2224
+ } else if (event.code === 'Tab') {
2179
2225
  if (this.overlay) {
2180
- utils.DomHandler.getFocusableElements(this.overlay).forEach(el => el.tabIndex = '-1');
2226
+ utils.DomHandler.getFocusableElements(this.overlay).forEach((el) => (el.tabIndex = '-1'));
2181
2227
  }
2182
2228
 
2183
2229
  if (this.overlayVisible) {
@@ -2225,10 +2271,9 @@ var script = {
2225
2271
  }
2226
2272
 
2227
2273
  let innerHTML = '';
2274
+
2228
2275
  if (this.responsiveOptions) {
2229
- let responsiveOptions = [...this.responsiveOptions]
2230
- .filter(o => !!(o.breakpoint && o.numMonths))
2231
- .sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
2276
+ let responsiveOptions = [...this.responsiveOptions].filter((o) => !!(o.breakpoint && o.numMonths)).sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
2232
2277
 
2233
2278
  for (let i = 0; i < responsiveOptions.length; i++) {
2234
2279
  let { breakpoint, numMonths } = responsiveOptions[i];
@@ -2256,7 +2301,7 @@ var script = {
2256
2301
 
2257
2302
  this.responsiveStyleElement.innerHTML = innerHTML;
2258
2303
  }
2259
- },
2304
+ },
2260
2305
  destroyResponsiveStyleElement() {
2261
2306
  if (this.responsiveStyleElement) {
2262
2307
  this.responsiveStyleElement.remove();
@@ -2267,19 +2312,18 @@ var script = {
2267
2312
  computed: {
2268
2313
  viewDate() {
2269
2314
  let propValue = this.modelValue;
2315
+
2270
2316
  if (propValue && Array.isArray(propValue)) {
2271
2317
  if (this.isRangeSelection()) {
2272
2318
  propValue = propValue[1] || propValue[0];
2273
- }
2274
- else if (this.isMultipleSelection()) {
2319
+ } else if (this.isMultipleSelection()) {
2275
2320
  propValue = propValue[propValue.length - 1];
2276
2321
  }
2277
2322
  }
2278
2323
 
2279
2324
  if (propValue && typeof propValue !== 'string') {
2280
2325
  return propValue;
2281
- }
2282
- else {
2326
+ } else {
2283
2327
  let today = new Date();
2284
2328
 
2285
2329
  if (this.maxDate && this.maxDate < today) {
@@ -2309,25 +2353,31 @@ var script = {
2309
2353
  ];
2310
2354
  },
2311
2355
  panelStyleClass() {
2312
- return ['p-datepicker p-component', this.panelClass, {
2313
- 'p-datepicker-inline': this.inline,
2314
- 'p-disabled': this.disabled,
2315
- 'p-datepicker-timeonly': this.timeOnly,
2316
- 'p-datepicker-multiple-month': this.numberOfMonths > 1,
2317
- 'p-datepicker-monthpicker': (this.currentView === 'month'),
2318
- 'p-datepicker-yearpicker': (this.currentView === 'year'),
2319
- 'p-datepicker-touch-ui': this.touchUI,
2320
- 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
2321
- 'p-ripple-disabled': this.$primevue.config.ripple === false
2322
- }];
2356
+ return [
2357
+ 'p-datepicker p-component',
2358
+ this.panelClass,
2359
+ {
2360
+ 'p-datepicker-inline': this.inline,
2361
+ 'p-disabled': this.disabled,
2362
+ 'p-datepicker-timeonly': this.timeOnly,
2363
+ 'p-datepicker-multiple-month': this.numberOfMonths > 1,
2364
+ 'p-datepicker-monthpicker': this.currentView === 'month',
2365
+ 'p-datepicker-yearpicker': this.currentView === 'year',
2366
+ 'p-datepicker-touch-ui': this.touchUI,
2367
+ 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
2368
+ 'p-ripple-disabled': this.$primevue.config.ripple === false
2369
+ }
2370
+ ];
2323
2371
  },
2324
2372
  months() {
2325
2373
  let months = [];
2326
- for (let i = 0 ; i < this.numberOfMonths; i++) {
2374
+
2375
+ for (let i = 0; i < this.numberOfMonths; i++) {
2327
2376
  let month = this.currentMonth + i;
2328
2377
  let year = this.currentYear;
2378
+
2329
2379
  if (month > 11) {
2330
- month = month % 11 - 1;
2380
+ month = (month % 11) - 1;
2331
2381
  year = year + 1;
2332
2382
  }
2333
2383
 
@@ -2344,30 +2394,33 @@ var script = {
2344
2394
  let week = [];
2345
2395
 
2346
2396
  if (i == 0) {
2347
- for (let j = (prevMonthDaysLength - firstDay + 1); j <= prevMonthDaysLength; j++) {
2397
+ for (let j = prevMonthDaysLength - firstDay + 1; j <= prevMonthDaysLength; j++) {
2348
2398
  let prev = this.getPreviousMonthAndYear(month, year);
2349
- week.push({day: j, month: prev.month, year: prev.year, otherMonth: true,
2350
- today: this.isToday(today, j, prev.month, prev.year), selectable: this.isSelectable(j, prev.month, prev.year, true)});
2399
+
2400
+ week.push({ day: j, month: prev.month, year: prev.year, otherMonth: true, today: this.isToday(today, j, prev.month, prev.year), selectable: this.isSelectable(j, prev.month, prev.year, true) });
2351
2401
  }
2352
2402
 
2353
2403
  let remainingDaysLength = 7 - week.length;
2404
+
2354
2405
  for (let j = 0; j < remainingDaysLength; j++) {
2355
- week.push({day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year),
2356
- selectable: this.isSelectable(dayNo, month, year, false)});
2406
+ week.push({ day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year), selectable: this.isSelectable(dayNo, month, year, false) });
2357
2407
  dayNo++;
2358
2408
  }
2359
- }
2360
- else {
2409
+ } else {
2361
2410
  for (let j = 0; j < 7; j++) {
2362
2411
  if (dayNo > daysLength) {
2363
2412
  let next = this.getNextMonthAndYear(month, year);
2364
- week.push({day: dayNo - daysLength, month: next.month, year: next.year, otherMonth: true,
2365
- today: this.isToday(today, dayNo - daysLength, next.month, next.year),
2366
- selectable: this.isSelectable((dayNo - daysLength), next.month, next.year, true)});
2367
- }
2368
- else {
2369
- week.push({day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year),
2370
- selectable: this.isSelectable(dayNo, month, year, false)});
2413
+
2414
+ week.push({
2415
+ day: dayNo - daysLength,
2416
+ month: next.month,
2417
+ year: next.year,
2418
+ otherMonth: true,
2419
+ today: this.isToday(today, dayNo - daysLength, next.month, next.year),
2420
+ selectable: this.isSelectable(dayNo - daysLength, next.month, next.year, true)
2421
+ });
2422
+ } else {
2423
+ week.push({ day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year), selectable: this.isSelectable(dayNo, month, year, false) });
2371
2424
  }
2372
2425
 
2373
2426
  dayNo++;
@@ -2394,15 +2447,16 @@ var script = {
2394
2447
  weekDays() {
2395
2448
  let weekDays = [];
2396
2449
  let dayIndex = this.$primevue.config.locale.firstDayOfWeek;
2450
+
2397
2451
  for (let i = 0; i < 7; i++) {
2398
2452
  weekDays.push(this.$primevue.config.locale.dayNamesMin[dayIndex]);
2399
- dayIndex = (dayIndex == 6) ? 0 : ++dayIndex;
2453
+ dayIndex = dayIndex == 6 ? 0 : ++dayIndex;
2400
2454
  }
2401
2455
 
2402
2456
  return weekDays;
2403
2457
  },
2404
2458
  ticksTo1970() {
2405
- return (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000);
2459
+ return ((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000;
2406
2460
  },
2407
2461
  sundayIndex() {
2408
2462
  return this.$primevue.config.locale.firstDayOfWeek > 0 ? 7 - this.$primevue.config.locale.firstDayOfWeek : 0;
@@ -2420,8 +2474,7 @@ var script = {
2420
2474
 
2421
2475
  if (this.currentYear < yearStart) {
2422
2476
  $vm.currentYear = yearEnd;
2423
- }
2424
- else if (this.currentYear > yearEnd) {
2477
+ } else if (this.currentYear > yearEnd) {
2425
2478
  $vm.currentYear = yearStart;
2426
2479
  }
2427
2480
 
@@ -2430,13 +2483,13 @@ var script = {
2430
2483
  }
2431
2484
 
2432
2485
  return yearOptions;
2433
- }
2434
- else {
2486
+ } else {
2435
2487
  return null;
2436
2488
  }
2437
2489
  },
2438
2490
  monthPickerValues() {
2439
2491
  let monthPickerValues = [];
2492
+
2440
2493
  for (let i = 0; i <= 11; i++) {
2441
2494
  monthPickerValues.push(this.$primevue.config.locale.monthNamesShort[i]);
2442
2495
  }
@@ -2445,7 +2498,8 @@ var script = {
2445
2498
  },
2446
2499
  yearPickerValues() {
2447
2500
  let yearPickerValues = [];
2448
- let base = this.currentYear - (this.currentYear % 10);
2501
+ let base = this.currentYear - (this.currentYear % 10);
2502
+
2449
2503
  for (let i = 0; i < 10; i++) {
2450
2504
  yearPickerValues.push(base + i);
2451
2505
  }
@@ -2484,16 +2538,16 @@ var script = {
2484
2538
  }
2485
2539
  },
2486
2540
  components: {
2487
- 'CalendarButton': Button__default["default"],
2488
- 'Portal': Portal__default["default"]
2541
+ CalendarButton: Button__default["default"],
2542
+ Portal: Portal__default["default"]
2489
2543
  },
2490
2544
  directives: {
2491
- 'ripple': Ripple__default["default"]
2545
+ ripple: Ripple__default["default"]
2492
2546
  }
2493
2547
  };
2494
2548
 
2495
2549
  const _hoisted_1 = ["id"];
2496
- const _hoisted_2 = ["id", "placeholder", "aria-expanded", "aria-controls", "aria-labelledby", "aria-label", "readonly"];
2550
+ const _hoisted_2 = ["id", "placeholder", "aria-expanded", "aria-controls", "aria-labelledby", "aria-label", "disabled", "readonly"];
2497
2551
  const _hoisted_3 = ["id", "role", "aria-modal", "aria-label"];
2498
2552
  const _hoisted_4 = { class: "p-datepicker-group-container" };
2499
2553
  const _hoisted_5 = { class: "p-datepicker-header" };
@@ -2646,9 +2700,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2646
2700
  ? (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
2647
2701
  key: 0,
2648
2702
  ref: $options.inputRef,
2703
+ id: $props.inputId,
2649
2704
  type: "text",
2650
2705
  role: "combobox",
2651
- id: $props.inputId,
2652
2706
  class: ['p-inputtext p-component', $props.inputClass],
2653
2707
  style: $props.inputStyle,
2654
2708
  placeholder: $props.placeholder,
@@ -2659,12 +2713,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2659
2713
  "aria-labelledby": _ctx.ariaLabelledby,
2660
2714
  "aria-label": _ctx.ariaLabel,
2661
2715
  inputmode: "none",
2716
+ disabled: $props.disabled,
2717
+ readonly: !$props.manualInput,
2718
+ tabindex: 0,
2662
2719
  onInput: _cache[0] || (_cache[0] = (...args) => ($options.onInput && $options.onInput(...args))),
2663
2720
  onFocus: _cache[1] || (_cache[1] = (...args) => ($options.onFocus && $options.onFocus(...args))),
2664
2721
  onBlur: _cache[2] || (_cache[2] = (...args) => ($options.onBlur && $options.onBlur(...args))),
2665
- onKeydown: _cache[3] || (_cache[3] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
2666
- readonly: !$props.manualInput,
2667
- tabindex: 0
2722
+ onKeydown: _cache[3] || (_cache[3] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args)))
2668
2723
  }, $props.inputProps), null, 16, _hoisted_2))
2669
2724
  : vue.createCommentVNode("", true),
2670
2725
  ($props.showIcon)
@@ -2713,8 +2768,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2713
2768
  vue.createElementVNode("div", _hoisted_4, [
2714
2769
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.months, (month, groupIndex) => {
2715
2770
  return (vue.openBlock(), vue.createElementBlock("div", {
2716
- class: "p-datepicker-group",
2717
- key: month.month + month.year
2771
+ key: month.month + month.year,
2772
+ class: "p-datepicker-group"
2718
2773
  }, [
2719
2774
  vue.createElementVNode("div", _hoisted_5, [
2720
2775
  vue.renderSlot(_ctx.$slots, "header"),
@@ -2724,7 +2779,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2724
2779
  type: "button",
2725
2780
  onKeydown: _cache[5] || (_cache[5] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2726
2781
  disabled: $props.disabled,
2727
- "aria-label": $data.currentView === 'year' ? _ctx.$primevue.config.locale.prevDecade: $data.currentView === 'month' ? _ctx.$primevue.config.locale.prevYear : _ctx.$primevue.config.locale.prevMonth
2782
+ "aria-label": $data.currentView === 'year' ? _ctx.$primevue.config.locale.prevDecade : $data.currentView === 'month' ? _ctx.$primevue.config.locale.prevYear : _ctx.$primevue.config.locale.prevMonth
2728
2783
  }, _hoisted_8, 40, _hoisted_6)), [
2729
2784
  [vue.vShow, $props.showOtherMonths ? groupIndex === 0 : false],
2730
2785
  [_directive_ripple]
@@ -2766,13 +2821,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2766
2821
  type: "button",
2767
2822
  onKeydown: _cache[11] || (_cache[11] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2768
2823
  disabled: $props.disabled,
2769
- "aria-label": $data.currentView === 'year' ? _ctx.$primevue.config.locale.nextDecade : $data.currentView === 'month' ? _ctx.$primevue.config.locale.nextYear : _ctx.$primevue.config.locale.nextMonth
2824
+ "aria-label": $data.currentView === 'year' ? _ctx.$primevue.config.locale.nextDecade : $data.currentView === 'month' ? _ctx.$primevue.config.locale.nextYear : _ctx.$primevue.config.locale.nextMonth
2770
2825
  }, _hoisted_15, 40, _hoisted_13)), [
2771
- [vue.vShow, $props.showOtherMonths ? $props.numberOfMonths === 1 ? true : (groupIndex === $props.numberOfMonths - 1) : false],
2826
+ [vue.vShow, $props.showOtherMonths ? ($props.numberOfMonths === 1 ? true : groupIndex === $props.numberOfMonths - 1) : false],
2772
2827
  [_directive_ripple]
2773
2828
  ])
2774
2829
  ]),
2775
- ($data.currentView ==='date')
2830
+ ($data.currentView === 'date')
2776
2831
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
2777
2832
  vue.createElementVNode("table", _hoisted_17, [
2778
2833
  vue.createElementVNode("thead", null, [
@@ -2784,8 +2839,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2784
2839
  : vue.createCommentVNode("", true),
2785
2840
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.weekDays, (weekDay) => {
2786
2841
  return (vue.openBlock(), vue.createElementBlock("th", {
2787
- scope: "col",
2788
2842
  key: weekDay,
2843
+ scope: "col",
2789
2844
  abbr: weekDay
2790
2845
  }, [
2791
2846
  vue.createElementVNode("span", null, vue.toDisplayString(weekDay), 1)
@@ -2810,15 +2865,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2810
2865
  : vue.createCommentVNode("", true),
2811
2866
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(week, (date) => {
2812
2867
  return (vue.openBlock(), vue.createElementBlock("td", {
2813
- "aria-label": date.day,
2814
2868
  key: date.day + '' + date.month,
2815
- class: vue.normalizeClass({'p-datepicker-other-month': date.otherMonth, 'p-datepicker-today': date.today})
2869
+ "aria-label": date.day,
2870
+ class: vue.normalizeClass({ 'p-datepicker-other-month': date.otherMonth, 'p-datepicker-today': date.today })
2816
2871
  }, [
2817
2872
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", {
2818
- class: vue.normalizeClass({'p-highlight': $options.isSelected(date), 'p-disabled': !date.selectable}),
2873
+ class: vue.normalizeClass({ 'p-highlight': $options.isSelected(date), 'p-disabled': !date.selectable }),
2819
2874
  onClick: $event => ($options.onDateSelect($event, date)),
2820
2875
  draggable: "false",
2821
- onKeydown: $event => ($options.onDateCellKeydown($event,date,groupIndex)),
2876
+ onKeydown: $event => ($options.onDateCellKeydown($event, date, groupIndex)),
2822
2877
  "aria-selected": $options.isSelected(date)
2823
2878
  }, [
2824
2879
  vue.renderSlot(_ctx.$slots, "date", { date: date }, () => [
@@ -2847,8 +2902,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2847
2902
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", {
2848
2903
  key: m,
2849
2904
  onClick: $event => ($options.onMonthSelect($event, i)),
2850
- onKeydown: $event => ($options.onMonthCellKeydown($event,i)),
2851
- class: vue.normalizeClass(["p-monthpicker-month", {'p-highlight': $options.isMonthSelected(i)}])
2905
+ onKeydown: $event => ($options.onMonthCellKeydown($event, i)),
2906
+ class: vue.normalizeClass(["p-monthpicker-month", { 'p-highlight': $options.isMonthSelected(i) }])
2852
2907
  }, [
2853
2908
  vue.createTextVNode(vue.toDisplayString(m) + " ", 1),
2854
2909
  ($options.isMonthSelected(i))
@@ -2866,8 +2921,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2866
2921
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", {
2867
2922
  key: y,
2868
2923
  onClick: $event => ($options.onYearSelect($event, y)),
2869
- onKeydown: $event => ($options.onYearCellKeydown($event,y)),
2870
- class: vue.normalizeClass(["p-yearpicker-year", {'p-highlight': $options.isYearSelected(y)}])
2924
+ onKeydown: $event => ($options.onYearCellKeydown($event, y)),
2925
+ class: vue.normalizeClass(["p-yearpicker-year", { 'p-highlight': $options.isYearSelected(y) }])
2871
2926
  }, [
2872
2927
  vue.createTextVNode(vue.toDisplayString(y) + " ", 1),
2873
2928
  ($options.isYearSelected(y))
@@ -2881,7 +2936,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2881
2936
  : vue.createCommentVNode("", true)
2882
2937
  ], 64))
2883
2938
  : vue.createCommentVNode("", true),
2884
- (($props.showTime||$props.timeOnly) && $data.currentView === 'date')
2939
+ (($props.showTime || $props.timeOnly) && $data.currentView === 'date')
2885
2940
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_32, [
2886
2941
  vue.createElementVNode("div", _hoisted_33, [
2887
2942
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
@@ -3020,12 +3075,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
3020
3075
  ])
3021
3076
  ]))
3022
3077
  : vue.createCommentVNode("", true),
3023
- ($props.hourFormat=='12')
3078
+ ($props.hourFormat == '12')
3024
3079
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_56, [
3025
3080
  vue.createElementVNode("span", null, vue.toDisplayString($props.timeSeparator), 1)
3026
3081
  ]))
3027
3082
  : vue.createCommentVNode("", true),
3028
- ($props.hourFormat=='12')
3083
+ ($props.hourFormat == '12')
3029
3084
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_57, [
3030
3085
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
3031
3086
  class: "p-link",
@@ -3107,7 +3162,7 @@ function styleInject(css, ref) {
3107
3162
  }
3108
3163
  }
3109
3164
 
3110
- var css_248z = "\n.p-calendar {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n max-width: 100%;\n}\n.p-calendar .p-inputtext {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-calendar-w-btn .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-calendar-w-btn .p-datepicker-trigger {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n/* Fluid */\n.p-fluid .p-calendar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-calendar .p-inputtext {\n width: 1%;\n}\n\n/* Datepicker */\n.p-calendar .p-datepicker {\n min-width: 100%;\n}\n.p-datepicker {\n\twidth: auto;\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-datepicker-inline {\n display: inline-block;\n position: static;\n overflow-x: auto;\n}\n\n/* Header */\n.p-datepicker-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-datepicker-header .p-datepicker-title {\n margin: 0 auto;\n}\n.p-datepicker-prev,\n.p-datepicker-next {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Multiple Month DatePicker */\n.p-datepicker-multiple-month .p-datepicker-group-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n\n/* DatePicker Table */\n.p-datepicker table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n}\n.p-datepicker td > span {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n margin: 0 auto;\n overflow: hidden;\n position: relative;\n}\n\n/* Month Picker */\n.p-monthpicker-month {\n width: 33.3%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Year Picker */\n.p-yearpicker-year {\n width: 50%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Button Bar */\n.p-datepicker-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n/* Time Picker */\n.p-timepicker {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-timepicker button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-timepicker > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n/* Touch UI */\n.p-datepicker-touch-ui,\n.p-calendar .p-datepicker-touch-ui {\n position: fixed;\n top: 50%;\n left: 50%;\n min-width: 80vw;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n";
3165
+ var css_248z = "\n.p-calendar {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n max-width: 100%;\n}\n.p-calendar .p-inputtext {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-calendar-w-btn .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-calendar-w-btn .p-datepicker-trigger {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n/* Fluid */\n.p-fluid .p-calendar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-calendar .p-inputtext {\n width: 1%;\n}\n\n/* Datepicker */\n.p-calendar .p-datepicker {\n min-width: 100%;\n}\n.p-datepicker {\n width: auto;\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-datepicker-inline {\n display: inline-block;\n position: static;\n overflow-x: auto;\n}\n\n/* Header */\n.p-datepicker-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-datepicker-header .p-datepicker-title {\n margin: 0 auto;\n}\n.p-datepicker-prev,\n.p-datepicker-next {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Multiple Month DatePicker */\n.p-datepicker-multiple-month .p-datepicker-group-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n\n/* DatePicker Table */\n.p-datepicker table {\n width: 100%;\n border-collapse: collapse;\n}\n.p-datepicker td > span {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n margin: 0 auto;\n overflow: hidden;\n position: relative;\n}\n\n/* Month Picker */\n.p-monthpicker-month {\n width: 33.3%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Year Picker */\n.p-yearpicker-year {\n width: 50%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Button Bar */\n.p-datepicker-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n/* Time Picker */\n.p-timepicker {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-timepicker button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-timepicker > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n/* Touch UI */\n.p-datepicker-touch-ui,\n.p-calendar .p-datepicker-touch-ui {\n position: fixed;\n top: 50%;\n left: 50%;\n min-width: 80vw;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n";
3111
3166
  styleInject(css_248z);
3112
3167
 
3113
3168
  script.render = render;