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