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