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
@@ -66,6 +66,10 @@ var script$1 = {
66
66
  "default": 1
67
67
  },
68
68
  responsiveOptions: Array,
69
+ breakpoint: {
70
+ type: String,
71
+ "default": '769px'
72
+ },
69
73
  view: {
70
74
  type: String,
71
75
  "default": 'date'
@@ -275,7 +279,8 @@ var script = {
275
279
  pm: null,
276
280
  focused: false,
277
281
  overlayVisible: false,
278
- currentView: this.view
282
+ currentView: this.view,
283
+ queryMatches: false
279
284
  };
280
285
  },
281
286
  watch: {
@@ -324,7 +329,13 @@ var script = {
324
329
  this.updateCurrentMetaData();
325
330
  },
326
331
  mounted: function mounted() {
332
+ var _this2 = this;
327
333
  this.createResponsiveStyle();
334
+ var query = matchMedia("(max-width: ".concat(this.breakpoint, ")"));
335
+ this.queryMatches = query.matches;
336
+ query.addEventListener('change', function () {
337
+ _this2.queryMatches = query.matches;
338
+ });
328
339
  if (this.inline) {
329
340
  this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
330
341
  if (!this.disabled) {
@@ -407,12 +418,12 @@ var script = {
407
418
  return false;
408
419
  },
409
420
  isMonthSelected: function isMonthSelected(month) {
410
- var _this2 = this;
421
+ var _this3 = this;
411
422
  if (this.isComparable()) {
412
423
  var value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
413
424
  if (this.isMultipleSelection()) {
414
425
  return value.some(function (currentValue) {
415
- return currentValue.getMonth() === month && currentValue.getFullYear() === _this2.currentYear;
426
+ return currentValue.getMonth() === month && currentValue.getFullYear() === _this3.currentYear;
416
427
  });
417
428
  } else {
418
429
  return value.getMonth() === month && value.getFullYear() === this.currentYear;
@@ -693,11 +704,11 @@ var script = {
693
704
  this.currentSecond = Math.floor(date.getSeconds() / this.stepSecond) * this.stepSecond;
694
705
  },
695
706
  bindOutsideClickListener: function bindOutsideClickListener() {
696
- var _this3 = this;
707
+ var _this4 = this;
697
708
  if (!this.outsideClickListener) {
698
709
  this.outsideClickListener = function (event) {
699
- if (_this3.overlayVisible && _this3.isOutsideClicked(event)) {
700
- _this3.overlayVisible = false;
710
+ if (_this4.overlayVisible && _this4.isOutsideClicked(event)) {
711
+ _this4.overlayVisible = false;
701
712
  }
702
713
  };
703
714
  document.addEventListener('mousedown', this.outsideClickListener);
@@ -710,11 +721,11 @@ var script = {
710
721
  }
711
722
  },
712
723
  bindScrollListener: function bindScrollListener() {
713
- var _this4 = this;
724
+ var _this5 = this;
714
725
  if (!this.scrollHandler) {
715
726
  this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function () {
716
- if (_this4.overlayVisible) {
717
- _this4.overlayVisible = false;
727
+ if (_this5.overlayVisible) {
728
+ _this5.overlayVisible = false;
718
729
  }
719
730
  });
720
731
  }
@@ -726,11 +737,11 @@ var script = {
726
737
  }
727
738
  },
728
739
  bindResizeListener: function bindResizeListener() {
729
- var _this5 = this;
740
+ var _this6 = this;
730
741
  if (!this.resizeListener) {
731
742
  this.resizeListener = function () {
732
- if (_this5.overlayVisible && !DomHandler.isTouchDevice()) {
733
- _this5.overlayVisible = false;
743
+ if (_this6.overlayVisible && !DomHandler.isTouchDevice()) {
744
+ _this6.overlayVisible = false;
734
745
  }
735
746
  };
736
747
  window.addEventListener('resize', this.resizeListener);
@@ -817,7 +828,7 @@ var script = {
817
828
  });
818
829
  },
819
830
  onDateSelect: function onDateSelect(event, dateMeta) {
820
- var _this6 = this;
831
+ var _this7 = this;
821
832
  if (this.disabled || !dateMeta.selectable) {
822
833
  return;
823
834
  }
@@ -829,7 +840,7 @@ var script = {
829
840
  }
830
841
  if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
831
842
  var newValue = this.modelValue.filter(function (date) {
832
- return !_this6.isDateEquals(date, dateMeta);
843
+ return !_this7.isDateEquals(date, dateMeta);
833
844
  });
834
845
  this.updateModel(newValue);
835
846
  } else {
@@ -845,15 +856,15 @@ var script = {
845
856
  }
846
857
  if (this.isSingleSelection() && (!this.showTime || this.hideOnDateTimeSelect)) {
847
858
  setTimeout(function () {
848
- if (_this6.input) {
849
- _this6.input.focus();
859
+ if (_this7.input) {
860
+ _this7.input.focus();
850
861
  }
851
- _this6.overlayVisible = false;
862
+ _this7.overlayVisible = false;
852
863
  }, 150);
853
864
  }
854
865
  },
855
866
  selectDate: function selectDate(dateMeta) {
856
- var _this7 = this;
867
+ var _this8 = this;
857
868
  var date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
858
869
  if (this.showTime) {
859
870
  if (this.hourFormat === '12' && this.pm && this.currentHour != 12) date.setHours(this.currentHour + 12);else date.setHours(this.currentHour);
@@ -897,7 +908,7 @@ var script = {
897
908
  }
898
909
  if (this.isRangeSelection() && this.hideOnRangeSelection && modelVal[1] !== null) {
899
910
  setTimeout(function () {
900
- _this7.overlayVisible = false;
911
+ _this8.overlayVisible = false;
901
912
  }, 150);
902
913
  }
903
914
  this.$emit('date-select', date);
@@ -1103,11 +1114,11 @@ var script = {
1103
1114
  this.clearTimePickerTimer();
1104
1115
  },
1105
1116
  repeat: function repeat(event, interval, type, direction) {
1106
- var _this8 = this;
1117
+ var _this9 = this;
1107
1118
  var i = interval || 500;
1108
1119
  this.clearTimePickerTimer();
1109
1120
  this.timePickerTimer = setTimeout(function () {
1110
- _this8.repeat(event, 100, type, direction);
1121
+ _this9.repeat(event, 100, type, direction);
1111
1122
  }, i);
1112
1123
  switch (type) {
1113
1124
  case 0:
@@ -1237,7 +1248,7 @@ var script = {
1237
1248
  event.preventDefault();
1238
1249
  },
1239
1250
  updateModelTime: function updateModelTime() {
1240
- var _this9 = this;
1251
+ var _this10 = this;
1241
1252
  this.timePickerChange = true;
1242
1253
  var value = this.isComparable() ? this.modelValue : this.viewDate;
1243
1254
  if (this.isRangeSelection()) {
@@ -1263,7 +1274,7 @@ var script = {
1263
1274
  this.updateModel(value);
1264
1275
  this.$emit('date-select', value);
1265
1276
  setTimeout(function () {
1266
- return _this9.timePickerChange = false;
1277
+ return _this10.timePickerChange = false;
1267
1278
  }, 0);
1268
1279
  },
1269
1280
  toggleAMPM: function toggleAMPM(event) {
@@ -1317,14 +1328,14 @@ var script = {
1317
1328
  setTimeout(this.updateFocus, 0);
1318
1329
  },
1319
1330
  enableModality: function enableModality() {
1320
- var _this10 = this;
1331
+ var _this11 = this;
1321
1332
  if (!this.mask) {
1322
1333
  this.mask = document.createElement('div');
1323
1334
  this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
1324
1335
  this.mask.setAttribute('data-pc-section', 'datepicker-mask');
1325
1336
  !this.isUnstyled && DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
1326
1337
  this.maskClickListener = function () {
1327
- _this10.overlayVisible = false;
1338
+ _this11.overlayVisible = false;
1328
1339
  };
1329
1340
  this.mask.addEventListener('click', this.maskClickListener);
1330
1341
  document.body.appendChild(this.mask);
@@ -1332,14 +1343,14 @@ var script = {
1332
1343
  }
1333
1344
  },
1334
1345
  disableModality: function disableModality() {
1335
- var _this11 = this;
1346
+ var _this12 = this;
1336
1347
  if (this.mask) {
1337
1348
  if (this.isUnstyled) {
1338
1349
  this.destroyMask();
1339
1350
  } else {
1340
1351
  DomHandler.addClass(this.mask, 'p-component-overlay-leave');
1341
1352
  this.mask.addEventListener('animationend', function () {
1342
- _this11.destroyMask();
1353
+ _this12.destroyMask();
1343
1354
  });
1344
1355
  }
1345
1356
  }
@@ -1371,7 +1382,7 @@ var script = {
1371
1382
  }
1372
1383
  },
1373
1384
  isValidSelection: function isValidSelection(value) {
1374
- var _this12 = this;
1385
+ var _this13 = this;
1375
1386
  if (value == null) {
1376
1387
  return true;
1377
1388
  }
@@ -1381,7 +1392,7 @@ var script = {
1381
1392
  isValid = false;
1382
1393
  }
1383
1394
  } else if (value.every(function (v) {
1384
- return _this12.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
1395
+ return _this13.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
1385
1396
  })) {
1386
1397
  if (this.isRangeSelection()) {
1387
1398
  isValid = value.length > 1 && value[1] > value[0] ? true : false;
@@ -2413,20 +2424,20 @@ var script = {
2413
2424
  }
2414
2425
  },
2415
2426
  monthPickerValues: function monthPickerValues() {
2416
- var _this13 = this;
2427
+ var _this14 = this;
2417
2428
  var monthPickerValues = [];
2418
2429
  var isSelectableMonth = function isSelectableMonth(baseMonth) {
2419
- if (_this13.minDate) {
2420
- var minMonth = _this13.minDate.getMonth();
2421
- var minYear = _this13.minDate.getFullYear();
2422
- if (_this13.currentYear < minYear || _this13.currentYear === minYear && baseMonth < minMonth) {
2430
+ if (_this14.minDate) {
2431
+ var minMonth = _this14.minDate.getMonth();
2432
+ var minYear = _this14.minDate.getFullYear();
2433
+ if (_this14.currentYear < minYear || _this14.currentYear === minYear && baseMonth < minMonth) {
2423
2434
  return false;
2424
2435
  }
2425
2436
  }
2426
- if (_this13.maxDate) {
2427
- var maxMonth = _this13.maxDate.getMonth();
2428
- var maxYear = _this13.maxDate.getFullYear();
2429
- if (_this13.currentYear > maxYear || _this13.currentYear === maxYear && baseMonth > maxMonth) {
2437
+ if (_this14.maxDate) {
2438
+ var maxMonth = _this14.maxDate.getMonth();
2439
+ var maxYear = _this14.maxDate.getFullYear();
2440
+ if (_this14.currentYear > maxYear || _this14.currentYear === maxYear && baseMonth > maxMonth) {
2430
2441
  return false;
2431
2442
  }
2432
2443
  }
@@ -2441,15 +2452,15 @@ var script = {
2441
2452
  return monthPickerValues;
2442
2453
  },
2443
2454
  yearPickerValues: function yearPickerValues() {
2444
- var _this14 = this;
2455
+ var _this15 = this;
2445
2456
  var yearPickerValues = [];
2446
2457
  var base = this.currentYear - this.currentYear % 10;
2447
2458
  var isSelectableYear = function isSelectableYear(baseYear) {
2448
- if (_this14.minDate) {
2449
- if (_this14.minDate.getFullYear() > baseYear) return false;
2459
+ if (_this15.minDate) {
2460
+ if (_this15.minDate.getFullYear() > baseYear) return false;
2450
2461
  }
2451
- if (_this14.maxDate) {
2452
- if (_this14.maxDate.getFullYear() < baseYear) return false;
2462
+ if (_this15.maxDate) {
2463
+ if (_this15.maxDate.getFullYear() < baseYear) return false;
2453
2464
  }
2454
2465
  return true;
2455
2466
  };