primevue 3.40.1 → 3.41.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 (311) hide show
  1. package/README.md +2 -20
  2. package/autocomplete/AutoComplete.vue +1 -1
  3. package/autocomplete/autocomplete.cjs.js +1 -1
  4. package/autocomplete/autocomplete.cjs.min.js +1 -1
  5. package/autocomplete/autocomplete.esm.js +1 -1
  6. package/autocomplete/autocomplete.esm.min.js +1 -1
  7. package/autocomplete/autocomplete.js +1 -1
  8. package/autocomplete/autocomplete.min.js +1 -1
  9. package/baseicon/BaseIcon.vue +3 -0
  10. package/baseicon/baseicon.cjs.js +4 -0
  11. package/baseicon/baseicon.cjs.min.js +1 -1
  12. package/baseicon/baseicon.esm.js +3 -0
  13. package/baseicon/baseicon.esm.min.js +1 -1
  14. package/baseicon/baseicon.js +5 -2
  15. package/baseicon/baseicon.min.js +1 -1
  16. package/breadcrumb/BreadcrumbItem.vue +1 -1
  17. package/breadcrumb/breadcrumb.cjs.js +1 -1
  18. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  19. package/breadcrumb/breadcrumb.esm.js +1 -1
  20. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  21. package/breadcrumb/breadcrumb.js +1 -1
  22. package/breadcrumb/breadcrumb.min.js +1 -1
  23. package/calendar/BaseCalendar.vue +4 -0
  24. package/calendar/Calendar.d.ts +6 -1
  25. package/calendar/Calendar.vue +9 -1
  26. package/calendar/calendar.cjs.js +54 -43
  27. package/calendar/calendar.cjs.min.js +1 -1
  28. package/calendar/calendar.esm.js +54 -43
  29. package/calendar/calendar.esm.min.js +1 -1
  30. package/calendar/calendar.js +54 -43
  31. package/calendar/calendar.min.js +1 -1
  32. package/calendar/style/calendarstyle.cjs.js +1 -0
  33. package/calendar/style/calendarstyle.cjs.min.js +1 -1
  34. package/calendar/style/calendarstyle.esm.js +1 -0
  35. package/calendar/style/calendarstyle.esm.min.js +1 -1
  36. package/calendar/style/calendarstyle.js +1 -0
  37. package/calendar/style/calendarstyle.min.js +1 -1
  38. package/confirmationoptions/ConfirmationOptions.d.ts +5 -1
  39. package/confirmdialog/ConfirmDialog.d.ts +2 -2
  40. package/core/core.js +65 -50
  41. package/core/core.min.js +17 -17
  42. package/datatable/DataTable.vue +3 -2
  43. package/datatable/datatable.cjs.js +3 -2
  44. package/datatable/datatable.cjs.min.js +1 -1
  45. package/datatable/datatable.esm.js +3 -2
  46. package/datatable/datatable.esm.min.js +1 -1
  47. package/datatable/datatable.js +3 -2
  48. package/datatable/datatable.min.js +1 -1
  49. package/dataview/DataView.d.ts +9 -19
  50. package/dataview/DataView.vue +11 -10
  51. package/dataview/dataview.cjs.js +18 -18
  52. package/dataview/dataview.cjs.min.js +1 -1
  53. package/dataview/dataview.esm.js +19 -19
  54. package/dataview/dataview.esm.min.js +1 -1
  55. package/dataview/dataview.js +18 -18
  56. package/dataview/dataview.min.js +1 -1
  57. package/dataview/style/dataviewstyle.cjs.js +0 -2
  58. package/dataview/style/dataviewstyle.cjs.min.js +1 -1
  59. package/dataview/style/dataviewstyle.esm.js +0 -2
  60. package/dataview/style/dataviewstyle.esm.min.js +1 -1
  61. package/dataview/style/dataviewstyle.js +0 -2
  62. package/dataview/style/dataviewstyle.min.js +1 -1
  63. package/dialog/Dialog.d.ts +2 -2
  64. package/dialog/Dialog.vue +4 -4
  65. package/dialog/dialog.cjs.js +6 -6
  66. package/dialog/dialog.cjs.min.js +1 -1
  67. package/dialog/dialog.esm.js +6 -6
  68. package/dialog/dialog.esm.min.js +1 -1
  69. package/dialog/dialog.js +6 -6
  70. package/dialog/dialog.min.js +1 -1
  71. package/dialog/style/dialogstyle.cjs.js +2 -2
  72. package/dialog/style/dialogstyle.cjs.min.js +1 -1
  73. package/dialog/style/dialogstyle.esm.js +2 -2
  74. package/dialog/style/dialogstyle.esm.min.js +1 -1
  75. package/dialog/style/dialogstyle.js +2 -2
  76. package/dialog/style/dialogstyle.min.js +1 -1
  77. package/dock/BaseDock.vue +4 -0
  78. package/dock/Dock.d.ts +5 -0
  79. package/dock/Dock.vue +14 -0
  80. package/dock/dock.cjs.js +17 -0
  81. package/dock/dock.cjs.min.js +1 -1
  82. package/dock/dock.esm.js +17 -0
  83. package/dock/dock.esm.min.js +1 -1
  84. package/dock/dock.js +17 -0
  85. package/dock/dock.min.js +1 -1
  86. package/dock/style/dockstyle.cjs.js +5 -2
  87. package/dock/style/dockstyle.cjs.min.js +1 -1
  88. package/dock/style/dockstyle.esm.js +5 -2
  89. package/dock/style/dockstyle.esm.min.js +1 -1
  90. package/dock/style/dockstyle.js +5 -2
  91. package/dock/style/dockstyle.min.js +1 -1
  92. package/fileupload/FileContent.vue +1 -1
  93. package/fileupload/FileUpload.vue +1 -1
  94. package/fileupload/fileupload.cjs.js +2 -2
  95. package/fileupload/fileupload.cjs.min.js +1 -1
  96. package/fileupload/fileupload.esm.js +2 -2
  97. package/fileupload/fileupload.esm.min.js +1 -1
  98. package/fileupload/fileupload.js +2 -2
  99. package/fileupload/fileupload.min.js +1 -1
  100. package/focustrap/focustrap.cjs.js +1 -1
  101. package/focustrap/focustrap.cjs.min.js +1 -1
  102. package/focustrap/focustrap.esm.js +1 -1
  103. package/focustrap/focustrap.esm.min.js +1 -1
  104. package/focustrap/focustrap.js +1 -1
  105. package/focustrap/focustrap.min.js +1 -1
  106. package/inputnumber/style/inputnumberstyle.cjs.js +1 -1
  107. package/inputnumber/style/inputnumberstyle.cjs.min.js +1 -1
  108. package/inputnumber/style/inputnumberstyle.esm.js +1 -1
  109. package/inputnumber/style/inputnumberstyle.esm.min.js +1 -1
  110. package/inputnumber/style/inputnumberstyle.js +1 -1
  111. package/inputnumber/style/inputnumberstyle.min.js +1 -1
  112. package/megamenu/BaseMegaMenu.vue +4 -0
  113. package/megamenu/MegaMenu.d.ts +9 -0
  114. package/megamenu/MegaMenu.vue +74 -6
  115. package/megamenu/MegaMenuSub.vue +6 -1
  116. package/megamenu/megamenu.cjs.js +118 -35
  117. package/megamenu/megamenu.cjs.min.js +1 -1
  118. package/megamenu/megamenu.esm.js +119 -37
  119. package/megamenu/megamenu.esm.min.js +1 -1
  120. package/megamenu/megamenu.js +119 -37
  121. package/megamenu/megamenu.min.js +1 -1
  122. package/megamenu/style/megamenustyle.cjs.js +22 -17
  123. package/megamenu/style/megamenustyle.cjs.min.js +1 -1
  124. package/megamenu/style/megamenustyle.esm.js +22 -17
  125. package/megamenu/style/megamenustyle.esm.min.js +1 -1
  126. package/megamenu/style/megamenustyle.js +22 -17
  127. package/megamenu/style/megamenustyle.min.js +1 -1
  128. package/menu/Menu.d.ts +1 -1
  129. package/menu/Menuitem.vue +0 -1
  130. package/menubar/BaseMenubar.vue +4 -0
  131. package/menubar/Menubar.d.ts +5 -0
  132. package/menubar/Menubar.vue +10 -1
  133. package/menubar/menubar.cjs.js +48 -36
  134. package/menubar/menubar.cjs.min.js +1 -1
  135. package/menubar/menubar.esm.js +48 -36
  136. package/menubar/menubar.esm.min.js +1 -1
  137. package/menubar/menubar.js +48 -36
  138. package/menubar/menubar.min.js +1 -1
  139. package/menubar/style/menubarstyle.cjs.js +2 -1
  140. package/menubar/style/menubarstyle.cjs.min.js +1 -1
  141. package/menubar/style/menubarstyle.esm.js +2 -1
  142. package/menubar/style/menubarstyle.esm.min.js +1 -1
  143. package/menubar/style/menubarstyle.js +2 -1
  144. package/menubar/style/menubarstyle.min.js +1 -1
  145. package/orderlist/OrderList.vue +18 -2
  146. package/orderlist/orderlist.cjs.js +16 -2
  147. package/orderlist/orderlist.cjs.min.js +1 -1
  148. package/orderlist/orderlist.esm.js +16 -2
  149. package/orderlist/orderlist.esm.min.js +1 -1
  150. package/orderlist/orderlist.js +16 -2
  151. package/orderlist/orderlist.min.js +1 -1
  152. package/overlaypanel/OverlayPanel.d.ts +14 -14
  153. package/package.json +1 -1
  154. package/paginator/Paginator.vue +21 -13
  155. package/paginator/paginator.cjs.js +9 -2
  156. package/paginator/paginator.cjs.min.js +1 -1
  157. package/paginator/paginator.esm.js +9 -2
  158. package/paginator/paginator.esm.min.js +1 -1
  159. package/paginator/paginator.js +9 -2
  160. package/paginator/paginator.min.js +1 -1
  161. package/panelmenu/BasePanelMenu.vue +4 -0
  162. package/panelmenu/PanelMenu.d.ts +5 -0
  163. package/panelmenu/PanelMenu.vue +13 -2
  164. package/panelmenu/panelmenu.cjs.js +21 -2
  165. package/panelmenu/panelmenu.cjs.min.js +1 -1
  166. package/panelmenu/panelmenu.esm.js +21 -2
  167. package/panelmenu/panelmenu.esm.min.js +1 -1
  168. package/panelmenu/panelmenu.js +21 -2
  169. package/panelmenu/panelmenu.min.js +1 -1
  170. package/passthrough/tailwind/index.cjs.js +4 -4
  171. package/passthrough/tailwind/index.cjs.min.js +1 -1
  172. package/passthrough/tailwind/index.esm.js +4 -4
  173. package/passthrough/tailwind/index.esm.min.js +1 -1
  174. package/passthrough/tailwind/index.js +4 -4
  175. package/passthrough/tailwind/index.min.js +1 -1
  176. package/picklist/PickList.vue +16 -2
  177. package/picklist/picklist.cjs.js +15 -2
  178. package/picklist/picklist.cjs.min.js +1 -1
  179. package/picklist/picklist.esm.js +15 -2
  180. package/picklist/picklist.esm.min.js +1 -1
  181. package/picklist/picklist.js +15 -2
  182. package/picklist/picklist.min.js +1 -1
  183. package/resources/themes/arya-blue/theme.css +133 -117
  184. package/resources/themes/arya-green/theme.css +133 -117
  185. package/resources/themes/arya-orange/theme.css +133 -117
  186. package/resources/themes/arya-purple/theme.css +133 -117
  187. package/resources/themes/bootstrap4-dark-blue/theme.css +133 -117
  188. package/resources/themes/bootstrap4-dark-purple/theme.css +133 -117
  189. package/resources/themes/bootstrap4-light-blue/theme.css +133 -117
  190. package/resources/themes/bootstrap4-light-purple/theme.css +133 -117
  191. package/resources/themes/fluent-light/theme.css +133 -117
  192. package/resources/themes/lara-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
  193. package/resources/themes/lara-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
  194. package/resources/themes/lara-dark-amber/theme.css +5757 -0
  195. package/resources/themes/lara-dark-blue/theme.css +337 -321
  196. package/resources/themes/lara-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
  197. package/resources/themes/lara-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
  198. package/resources/themes/lara-dark-cyan/theme.css +5757 -0
  199. package/resources/themes/lara-dark-green/fonts/Inter-italic.var.woff2 +0 -0
  200. package/resources/themes/lara-dark-green/fonts/Inter-roman.var.woff2 +0 -0
  201. package/resources/themes/lara-dark-green/theme.css +5757 -0
  202. package/resources/themes/lara-dark-indigo/theme.css +337 -321
  203. package/resources/themes/lara-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
  204. package/resources/themes/lara-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
  205. package/resources/themes/lara-dark-pink/theme.css +5757 -0
  206. package/resources/themes/lara-dark-purple/theme.css +337 -321
  207. package/resources/themes/lara-dark-teal/theme.css +577 -561
  208. package/resources/themes/lara-light-amber/fonts/Inter-italic.var.woff2 +0 -0
  209. package/resources/themes/lara-light-amber/fonts/Inter-roman.var.woff2 +0 -0
  210. package/resources/themes/lara-light-amber/theme.css +5749 -0
  211. package/resources/themes/lara-light-blue/theme.css +192 -176
  212. package/resources/themes/lara-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
  213. package/resources/themes/lara-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
  214. package/resources/themes/lara-light-cyan/theme.css +5749 -0
  215. package/resources/themes/lara-light-green/fonts/Inter-italic.var.woff2 +0 -0
  216. package/resources/themes/lara-light-green/fonts/Inter-roman.var.woff2 +0 -0
  217. package/resources/themes/lara-light-green/theme.css +5749 -0
  218. package/resources/themes/lara-light-indigo/theme.css +192 -176
  219. package/resources/themes/lara-light-pink/fonts/Inter-italic.var.woff2 +0 -0
  220. package/resources/themes/lara-light-pink/fonts/Inter-roman.var.woff2 +0 -0
  221. package/resources/themes/lara-light-pink/theme.css +5749 -0
  222. package/resources/themes/lara-light-purple/theme.css +192 -176
  223. package/resources/themes/lara-light-teal/theme.css +483 -467
  224. package/resources/themes/luna-amber/theme.css +133 -117
  225. package/resources/themes/luna-blue/theme.css +133 -117
  226. package/resources/themes/luna-green/theme.css +133 -117
  227. package/resources/themes/luna-pink/theme.css +133 -117
  228. package/resources/themes/md-dark-deeppurple/theme.css +133 -117
  229. package/resources/themes/md-dark-indigo/theme.css +133 -117
  230. package/resources/themes/md-light-deeppurple/theme.css +133 -117
  231. package/resources/themes/md-light-indigo/theme.css +133 -117
  232. package/resources/themes/mdc-dark-deeppurple/theme.css +133 -117
  233. package/resources/themes/mdc-dark-indigo/theme.css +133 -117
  234. package/resources/themes/mdc-light-deeppurple/theme.css +133 -117
  235. package/resources/themes/mdc-light-indigo/theme.css +133 -117
  236. package/resources/themes/mira/theme.css +133 -117
  237. package/resources/themes/nano/theme.css +133 -117
  238. package/resources/themes/nova/theme.css +133 -117
  239. package/resources/themes/nova-accent/theme.css +133 -117
  240. package/resources/themes/nova-alt/theme.css +133 -117
  241. package/resources/themes/nova-vue/theme.css +133 -117
  242. package/resources/themes/rhea/theme.css +133 -117
  243. package/resources/themes/saga-blue/theme.css +133 -117
  244. package/resources/themes/saga-green/theme.css +133 -117
  245. package/resources/themes/saga-orange/theme.css +133 -117
  246. package/resources/themes/saga-purple/theme.css +133 -117
  247. package/resources/themes/soho-dark/theme.css +133 -117
  248. package/resources/themes/soho-light/theme.css +133 -117
  249. package/resources/themes/tailwind-light/theme.css +133 -117
  250. package/resources/themes/vela-blue/theme.css +133 -117
  251. package/resources/themes/vela-green/theme.css +133 -117
  252. package/resources/themes/vela-orange/theme.css +133 -117
  253. package/resources/themes/vela-purple/theme.css +133 -117
  254. package/resources/themes/viva-dark/theme.css +133 -117
  255. package/resources/themes/viva-light/theme.css +133 -117
  256. package/sidebar/BaseSidebar.vue +4 -0
  257. package/sidebar/Sidebar.d.ts +12 -2
  258. package/sidebar/Sidebar.vue +3 -3
  259. package/sidebar/sidebar.cjs.js +12 -4
  260. package/sidebar/sidebar.cjs.min.js +1 -1
  261. package/sidebar/sidebar.esm.js +13 -5
  262. package/sidebar/sidebar.esm.min.js +1 -1
  263. package/sidebar/sidebar.js +12 -4
  264. package/sidebar/sidebar.min.js +1 -1
  265. package/sidebar/style/sidebarstyle.cjs.js +2 -2
  266. package/sidebar/style/sidebarstyle.cjs.min.js +1 -1
  267. package/sidebar/style/sidebarstyle.esm.js +2 -2
  268. package/sidebar/style/sidebarstyle.esm.min.js +1 -1
  269. package/sidebar/style/sidebarstyle.js +2 -2
  270. package/sidebar/style/sidebarstyle.min.js +1 -1
  271. package/speeddial/style/speeddialstyle.cjs.js +2 -2
  272. package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
  273. package/speeddial/style/speeddialstyle.esm.js +2 -2
  274. package/speeddial/style/speeddialstyle.esm.min.js +1 -1
  275. package/speeddial/style/speeddialstyle.js +2 -2
  276. package/speeddial/style/speeddialstyle.min.js +1 -1
  277. package/splitter/Splitter.vue +3 -1
  278. package/splitter/splitter.cjs.js +3 -1
  279. package/splitter/splitter.cjs.min.js +1 -1
  280. package/splitter/splitter.esm.js +3 -1
  281. package/splitter/splitter.esm.min.js +1 -1
  282. package/splitter/splitter.js +3 -1
  283. package/splitter/splitter.min.js +1 -1
  284. package/splitterpanel/style/splitterpanelstyle.cjs.js +1 -1
  285. package/splitterpanel/style/splitterpanelstyle.cjs.min.js +1 -1
  286. package/splitterpanel/style/splitterpanelstyle.esm.js +1 -1
  287. package/splitterpanel/style/splitterpanelstyle.esm.min.js +1 -1
  288. package/splitterpanel/style/splitterpanelstyle.js +1 -1
  289. package/splitterpanel/style/splitterpanelstyle.min.js +1 -1
  290. package/tree/TreeNode.vue +1 -1
  291. package/tree/style/treestyle.cjs.js +1 -4
  292. package/tree/style/treestyle.cjs.min.js +1 -1
  293. package/tree/style/treestyle.esm.js +1 -4
  294. package/tree/style/treestyle.esm.min.js +1 -1
  295. package/tree/style/treestyle.js +1 -4
  296. package/tree/style/treestyle.min.js +1 -1
  297. package/tree/tree.cjs.js +1 -1
  298. package/tree/tree.cjs.min.js +1 -1
  299. package/tree/tree.esm.js +1 -1
  300. package/tree/tree.esm.min.js +1 -1
  301. package/tree/tree.js +1 -1
  302. package/tree/tree.min.js +1 -1
  303. package/treeselect/TreeSelect.vue +67 -2
  304. package/treeselect/treeselect.cjs.js +73 -9
  305. package/treeselect/treeselect.cjs.min.js +1 -1
  306. package/treeselect/treeselect.esm.js +73 -9
  307. package/treeselect/treeselect.esm.min.js +1 -1
  308. package/treeselect/treeselect.js +73 -9
  309. package/treeselect/treeselect.min.js +1 -1
  310. package/web-types.json +1 -1
  311. /package/dynamicdialog/style/{AccordionStyle.d.ts → DynamicDialogStyle.d.ts} +0 -0
@@ -70,6 +70,10 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
70
70
  "default": 1
71
71
  },
72
72
  responsiveOptions: Array,
73
+ breakpoint: {
74
+ type: String,
75
+ "default": '769px'
76
+ },
73
77
  view: {
74
78
  type: String,
75
79
  "default": 'date'
@@ -279,7 +283,8 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
279
283
  pm: null,
280
284
  focused: false,
281
285
  overlayVisible: false,
282
- currentView: this.view
286
+ currentView: this.view,
287
+ queryMatches: false
283
288
  };
284
289
  },
285
290
  watch: {
@@ -328,7 +333,13 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
328
333
  this.updateCurrentMetaData();
329
334
  },
330
335
  mounted: function mounted() {
336
+ var _this2 = this;
331
337
  this.createResponsiveStyle();
338
+ var query = matchMedia("(max-width: ".concat(this.breakpoint, ")"));
339
+ this.queryMatches = query.matches;
340
+ query.addEventListener('change', function () {
341
+ _this2.queryMatches = query.matches;
342
+ });
332
343
  if (this.inline) {
333
344
  this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
334
345
  if (!this.disabled) {
@@ -411,12 +422,12 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
411
422
  return false;
412
423
  },
413
424
  isMonthSelected: function isMonthSelected(month) {
414
- var _this2 = this;
425
+ var _this3 = this;
415
426
  if (this.isComparable()) {
416
427
  var value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
417
428
  if (this.isMultipleSelection()) {
418
429
  return value.some(function (currentValue) {
419
- return currentValue.getMonth() === month && currentValue.getFullYear() === _this2.currentYear;
430
+ return currentValue.getMonth() === month && currentValue.getFullYear() === _this3.currentYear;
420
431
  });
421
432
  } else {
422
433
  return value.getMonth() === month && value.getFullYear() === this.currentYear;
@@ -697,11 +708,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
697
708
  this.currentSecond = Math.floor(date.getSeconds() / this.stepSecond) * this.stepSecond;
698
709
  },
699
710
  bindOutsideClickListener: function bindOutsideClickListener() {
700
- var _this3 = this;
711
+ var _this4 = this;
701
712
  if (!this.outsideClickListener) {
702
713
  this.outsideClickListener = function (event) {
703
- if (_this3.overlayVisible && _this3.isOutsideClicked(event)) {
704
- _this3.overlayVisible = false;
714
+ if (_this4.overlayVisible && _this4.isOutsideClicked(event)) {
715
+ _this4.overlayVisible = false;
705
716
  }
706
717
  };
707
718
  document.addEventListener('mousedown', this.outsideClickListener);
@@ -714,11 +725,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
714
725
  }
715
726
  },
716
727
  bindScrollListener: function bindScrollListener() {
717
- var _this4 = this;
728
+ var _this5 = this;
718
729
  if (!this.scrollHandler) {
719
730
  this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.$refs.container, function () {
720
- if (_this4.overlayVisible) {
721
- _this4.overlayVisible = false;
731
+ if (_this5.overlayVisible) {
732
+ _this5.overlayVisible = false;
722
733
  }
723
734
  });
724
735
  }
@@ -730,11 +741,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
730
741
  }
731
742
  },
732
743
  bindResizeListener: function bindResizeListener() {
733
- var _this5 = this;
744
+ var _this6 = this;
734
745
  if (!this.resizeListener) {
735
746
  this.resizeListener = function () {
736
- if (_this5.overlayVisible && !utils.DomHandler.isTouchDevice()) {
737
- _this5.overlayVisible = false;
747
+ if (_this6.overlayVisible && !utils.DomHandler.isTouchDevice()) {
748
+ _this6.overlayVisible = false;
738
749
  }
739
750
  };
740
751
  window.addEventListener('resize', this.resizeListener);
@@ -821,7 +832,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
821
832
  });
822
833
  },
823
834
  onDateSelect: function onDateSelect(event, dateMeta) {
824
- var _this6 = this;
835
+ var _this7 = this;
825
836
  if (this.disabled || !dateMeta.selectable) {
826
837
  return;
827
838
  }
@@ -833,7 +844,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
833
844
  }
834
845
  if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
835
846
  var newValue = this.modelValue.filter(function (date) {
836
- return !_this6.isDateEquals(date, dateMeta);
847
+ return !_this7.isDateEquals(date, dateMeta);
837
848
  });
838
849
  this.updateModel(newValue);
839
850
  } else {
@@ -849,15 +860,15 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
849
860
  }
850
861
  if (this.isSingleSelection() && (!this.showTime || this.hideOnDateTimeSelect)) {
851
862
  setTimeout(function () {
852
- if (_this6.input) {
853
- _this6.input.focus();
863
+ if (_this7.input) {
864
+ _this7.input.focus();
854
865
  }
855
- _this6.overlayVisible = false;
866
+ _this7.overlayVisible = false;
856
867
  }, 150);
857
868
  }
858
869
  },
859
870
  selectDate: function selectDate(dateMeta) {
860
- var _this7 = this;
871
+ var _this8 = this;
861
872
  var date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
862
873
  if (this.showTime) {
863
874
  if (this.hourFormat === '12' && this.pm && this.currentHour != 12) date.setHours(this.currentHour + 12);else date.setHours(this.currentHour);
@@ -901,7 +912,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
901
912
  }
902
913
  if (this.isRangeSelection() && this.hideOnRangeSelection && modelVal[1] !== null) {
903
914
  setTimeout(function () {
904
- _this7.overlayVisible = false;
915
+ _this8.overlayVisible = false;
905
916
  }, 150);
906
917
  }
907
918
  this.$emit('date-select', date);
@@ -1107,11 +1118,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
1107
1118
  this.clearTimePickerTimer();
1108
1119
  },
1109
1120
  repeat: function repeat(event, interval, type, direction) {
1110
- var _this8 = this;
1121
+ var _this9 = this;
1111
1122
  var i = interval || 500;
1112
1123
  this.clearTimePickerTimer();
1113
1124
  this.timePickerTimer = setTimeout(function () {
1114
- _this8.repeat(event, 100, type, direction);
1125
+ _this9.repeat(event, 100, type, direction);
1115
1126
  }, i);
1116
1127
  switch (type) {
1117
1128
  case 0:
@@ -1241,7 +1252,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
1241
1252
  event.preventDefault();
1242
1253
  },
1243
1254
  updateModelTime: function updateModelTime() {
1244
- var _this9 = this;
1255
+ var _this10 = this;
1245
1256
  this.timePickerChange = true;
1246
1257
  var value = this.isComparable() ? this.modelValue : this.viewDate;
1247
1258
  if (this.isRangeSelection()) {
@@ -1267,7 +1278,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
1267
1278
  this.updateModel(value);
1268
1279
  this.$emit('date-select', value);
1269
1280
  setTimeout(function () {
1270
- return _this9.timePickerChange = false;
1281
+ return _this10.timePickerChange = false;
1271
1282
  }, 0);
1272
1283
  },
1273
1284
  toggleAMPM: function toggleAMPM(event) {
@@ -1321,14 +1332,14 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
1321
1332
  setTimeout(this.updateFocus, 0);
1322
1333
  },
1323
1334
  enableModality: function enableModality() {
1324
- var _this10 = this;
1335
+ var _this11 = this;
1325
1336
  if (!this.mask) {
1326
1337
  this.mask = document.createElement('div');
1327
1338
  this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
1328
1339
  this.mask.setAttribute('data-pc-section', 'datepicker-mask');
1329
1340
  !this.isUnstyled && utils.DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
1330
1341
  this.maskClickListener = function () {
1331
- _this10.overlayVisible = false;
1342
+ _this11.overlayVisible = false;
1332
1343
  };
1333
1344
  this.mask.addEventListener('click', this.maskClickListener);
1334
1345
  document.body.appendChild(this.mask);
@@ -1336,14 +1347,14 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
1336
1347
  }
1337
1348
  },
1338
1349
  disableModality: function disableModality() {
1339
- var _this11 = this;
1350
+ var _this12 = this;
1340
1351
  if (this.mask) {
1341
1352
  if (this.isUnstyled) {
1342
1353
  this.destroyMask();
1343
1354
  } else {
1344
1355
  utils.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
1345
1356
  this.mask.addEventListener('animationend', function () {
1346
- _this11.destroyMask();
1357
+ _this12.destroyMask();
1347
1358
  });
1348
1359
  }
1349
1360
  }
@@ -1375,7 +1386,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
1375
1386
  }
1376
1387
  },
1377
1388
  isValidSelection: function isValidSelection(value) {
1378
- var _this12 = this;
1389
+ var _this13 = this;
1379
1390
  if (value == null) {
1380
1391
  return true;
1381
1392
  }
@@ -1385,7 +1396,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
1385
1396
  isValid = false;
1386
1397
  }
1387
1398
  } else if (value.every(function (v) {
1388
- return _this12.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
1399
+ return _this13.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
1389
1400
  })) {
1390
1401
  if (this.isRangeSelection()) {
1391
1402
  isValid = value.length > 1 && value[1] > value[0] ? true : false;
@@ -2417,20 +2428,20 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
2417
2428
  }
2418
2429
  },
2419
2430
  monthPickerValues: function monthPickerValues() {
2420
- var _this13 = this;
2431
+ var _this14 = this;
2421
2432
  var monthPickerValues = [];
2422
2433
  var isSelectableMonth = function isSelectableMonth(baseMonth) {
2423
- if (_this13.minDate) {
2424
- var minMonth = _this13.minDate.getMonth();
2425
- var minYear = _this13.minDate.getFullYear();
2426
- if (_this13.currentYear < minYear || _this13.currentYear === minYear && baseMonth < minMonth) {
2434
+ if (_this14.minDate) {
2435
+ var minMonth = _this14.minDate.getMonth();
2436
+ var minYear = _this14.minDate.getFullYear();
2437
+ if (_this14.currentYear < minYear || _this14.currentYear === minYear && baseMonth < minMonth) {
2427
2438
  return false;
2428
2439
  }
2429
2440
  }
2430
- if (_this13.maxDate) {
2431
- var maxMonth = _this13.maxDate.getMonth();
2432
- var maxYear = _this13.maxDate.getFullYear();
2433
- if (_this13.currentYear > maxYear || _this13.currentYear === maxYear && baseMonth > maxMonth) {
2441
+ if (_this14.maxDate) {
2442
+ var maxMonth = _this14.maxDate.getMonth();
2443
+ var maxYear = _this14.maxDate.getFullYear();
2444
+ if (_this14.currentYear > maxYear || _this14.currentYear === maxYear && baseMonth > maxMonth) {
2434
2445
  return false;
2435
2446
  }
2436
2447
  }
@@ -2445,15 +2456,15 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
2445
2456
  return monthPickerValues;
2446
2457
  },
2447
2458
  yearPickerValues: function yearPickerValues() {
2448
- var _this14 = this;
2459
+ var _this15 = this;
2449
2460
  var yearPickerValues = [];
2450
2461
  var base = this.currentYear - this.currentYear % 10;
2451
2462
  var isSelectableYear = function isSelectableYear(baseYear) {
2452
- if (_this14.minDate) {
2453
- if (_this14.minDate.getFullYear() > baseYear) return false;
2463
+ if (_this15.minDate) {
2464
+ if (_this15.minDate.getFullYear() > baseYear) return false;
2454
2465
  }
2455
- if (_this14.maxDate) {
2456
- if (_this14.maxDate.getFullYear() < baseYear) return false;
2466
+ if (_this15.maxDate) {
2467
+ if (_this15.maxDate.getFullYear() < baseYear) return false;
2457
2468
  }
2458
2469
  return true;
2459
2470
  };