primevue 3.9.1 → 3.10.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 (195) hide show
  1. package/accordion/Accordion.d.ts +74 -11
  2. package/accordiontab/AccordionTab.d.ts +37 -8
  3. package/api/Api.d.ts +292 -285
  4. package/autocomplete/AutoComplete.d.ts +279 -62
  5. package/avatar/Avatar.d.ts +57 -8
  6. package/avatargroup/AvatarGroup.d.ts +29 -3
  7. package/badge/Badge.d.ts +46 -5
  8. package/blockui/BlockUI.d.ts +52 -11
  9. package/breadcrumb/Breadcrumb.d.ts +49 -9
  10. package/button/Button.d.ts +68 -11
  11. package/calendar/Calendar.d.ts +322 -62
  12. package/calendar/Calendar.vue +48 -20
  13. package/calendar/calendar.cjs.js +120 -93
  14. package/calendar/calendar.cjs.min.js +1 -1
  15. package/calendar/calendar.esm.js +120 -92
  16. package/calendar/calendar.esm.min.js +1 -1
  17. package/calendar/calendar.js +122 -94
  18. package/calendar/calendar.min.js +1 -1
  19. package/card/Card.d.ts +43 -9
  20. package/carousel/Carousel.d.ts +121 -24
  21. package/cascadeselect/CascadeSelect.d.ts +164 -31
  22. package/chart/Chart.d.ts +104 -12
  23. package/chart/Chart.vue +9 -2
  24. package/chart/chart.cjs.js +9 -2
  25. package/chart/chart.cjs.min.js +1 -1
  26. package/chart/chart.esm.js +9 -2
  27. package/chart/chart.esm.min.js +1 -1
  28. package/chart/chart.js +9 -2
  29. package/chart/chart.min.js +1 -1
  30. package/checkbox/Checkbox.d.ts +65 -7
  31. package/chip/Chip.d.ts +50 -4
  32. package/chips/Chips.d.ts +88 -15
  33. package/colorpicker/ColorPicker.d.ts +105 -16
  34. package/column/Column.d.ts +448 -78
  35. package/columngroup/ColumnGroup.d.ts +30 -4
  36. package/confirmationoptions/ConfirmationOptions.d.ts +50 -0
  37. package/confirmationoptions/package.json +3 -0
  38. package/confirmationservice/ConfirmationService.d.ts +2 -1
  39. package/confirmdialog/ConfirmDialog.d.ts +57 -5
  40. package/confirmpopup/ConfirmPopup.d.ts +38 -7
  41. package/contextmenu/ContextMenu.d.ts +88 -16
  42. package/core/core.js +364 -268
  43. package/core/core.min.js +2 -2
  44. package/datatable/BodyCell.vue +26 -1
  45. package/datatable/DataTable.d.ts +1056 -131
  46. package/datatable/DataTable.vue +102 -81
  47. package/datatable/HeaderCheckbox.vue +4 -1
  48. package/datatable/TableBody.vue +53 -14
  49. package/datatable/datatable.cjs.js +414 -307
  50. package/datatable/datatable.cjs.min.js +1 -1
  51. package/datatable/datatable.esm.js +414 -308
  52. package/datatable/datatable.esm.min.js +1 -1
  53. package/datatable/datatable.js +415 -309
  54. package/datatable/datatable.min.js +1 -1
  55. package/dataview/DataView.d.ts +198 -32
  56. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +34 -5
  57. package/deferredcontent/DeferredContent.d.ts +31 -6
  58. package/dialog/Dialog.d.ts +188 -35
  59. package/divider/Divider.d.ts +53 -8
  60. package/dock/Dock.d.ts +92 -15
  61. package/dropdown/Dropdown.d.ts +335 -76
  62. package/editor/Editor.d.ts +78 -11
  63. package/fieldset/Fieldset.d.ts +63 -11
  64. package/fileupload/FileUpload.d.ts +255 -37
  65. package/fullcalendar/FullCalendar.d.ts +29 -3
  66. package/galleria/Galleria.d.ts +196 -46
  67. package/image/Image.d.ts +51 -6
  68. package/inlinemessage/InlineMessage.d.ts +34 -6
  69. package/inplace/Inplace.d.ts +57 -12
  70. package/inputmask/InputMask.d.ts +75 -15
  71. package/inputnumber/InputNumber.d.ts +180 -30
  72. package/inputswitch/InputSwitch.d.ts +61 -9
  73. package/inputtext/InputText.d.ts +34 -5
  74. package/knob/Knob.d.ts +92 -18
  75. package/listbox/Listbox.d.ts +240 -55
  76. package/megamenu/MegaMenu.d.ts +60 -12
  77. package/menu/Menu.d.ts +84 -15
  78. package/menubar/Menubar.d.ts +52 -11
  79. package/menuitem/MenuItem.d.ts +80 -0
  80. package/menuitem/package.json +3 -0
  81. package/message/Message.d.ts +57 -11
  82. package/multiselect/MultiSelect.d.ts +363 -83
  83. package/orderlist/OrderList.d.ts +122 -19
  84. package/organizationchart/OrganizationChart.d.ts +137 -15
  85. package/overlaypanel/OverlayPanel.d.ts +107 -12
  86. package/package.json +1 -1
  87. package/paginator/Paginator.d.ts +129 -27
  88. package/panel/Panel.d.ts +64 -9
  89. package/panelmenu/PanelMenu.d.ts +59 -11
  90. package/panelmenu/PanelMenu.vue +2 -2
  91. package/panelmenu/panelmenu.cjs.js +4 -4
  92. package/panelmenu/panelmenu.cjs.min.js +1 -1
  93. package/panelmenu/panelmenu.esm.js +4 -4
  94. package/panelmenu/panelmenu.esm.min.js +1 -1
  95. package/panelmenu/panelmenu.js +4 -4
  96. package/panelmenu/panelmenu.min.js +1 -1
  97. package/password/Password.d.ts +115 -24
  98. package/picklist/PickList.d.ts +199 -32
  99. package/progressbar/ProgressBar.d.ts +43 -8
  100. package/progressspinner/ProgressSpinner.d.ts +39 -6
  101. package/radiobutton/RadioButton.d.ts +51 -6
  102. package/rating/Rating.d.ts +67 -10
  103. package/resources/themes/arya-blue/theme.css +5 -1
  104. package/resources/themes/arya-green/theme.css +5 -1
  105. package/resources/themes/arya-orange/theme.css +5 -1
  106. package/resources/themes/arya-purple/theme.css +5 -1
  107. package/resources/themes/bootstrap4-dark-blue/theme.css +5 -1
  108. package/resources/themes/bootstrap4-dark-purple/theme.css +5 -1
  109. package/resources/themes/bootstrap4-light-blue/theme.css +5 -1
  110. package/resources/themes/bootstrap4-light-purple/theme.css +5 -1
  111. package/resources/themes/fluent-light/theme.css +5 -1
  112. package/resources/themes/lara-dark-blue/theme.css +43 -39
  113. package/resources/themes/lara-dark-indigo/theme.css +43 -39
  114. package/resources/themes/lara-dark-purple/theme.css +43 -39
  115. package/resources/themes/lara-dark-teal/theme.css +43 -39
  116. package/resources/themes/lara-light-blue/theme.css +5 -1
  117. package/resources/themes/lara-light-indigo/theme.css +5 -1
  118. package/resources/themes/lara-light-purple/theme.css +5 -1
  119. package/resources/themes/lara-light-teal/theme.css +5 -1
  120. package/resources/themes/luna-amber/theme.css +5 -1
  121. package/resources/themes/luna-blue/theme.css +5 -1
  122. package/resources/themes/luna-green/theme.css +5 -1
  123. package/resources/themes/luna-pink/theme.css +5 -1
  124. package/resources/themes/md-dark-deeppurple/theme.css +5 -1
  125. package/resources/themes/md-dark-indigo/theme.css +5 -1
  126. package/resources/themes/md-light-deeppurple/theme.css +5 -1
  127. package/resources/themes/md-light-indigo/theme.css +5 -1
  128. package/resources/themes/mdc-dark-deeppurple/theme.css +5 -1
  129. package/resources/themes/mdc-dark-indigo/theme.css +5 -1
  130. package/resources/themes/mdc-light-deeppurple/theme.css +5 -1
  131. package/resources/themes/mdc-light-indigo/theme.css +5 -1
  132. package/resources/themes/nova/theme.css +5 -1
  133. package/resources/themes/nova-accent/theme.css +5 -1
  134. package/resources/themes/nova-alt/theme.css +5 -1
  135. package/resources/themes/nova-vue/theme.css +5 -1
  136. package/resources/themes/rhea/theme.css +5 -1
  137. package/resources/themes/saga-blue/theme.css +5 -1
  138. package/resources/themes/saga-green/theme.css +5 -1
  139. package/resources/themes/saga-orange/theme.css +5 -1
  140. package/resources/themes/saga-purple/theme.css +5 -1
  141. package/resources/themes/tailwind-light/theme.css +5 -1
  142. package/resources/themes/vela-blue/theme.css +5 -1
  143. package/resources/themes/vela-green/theme.css +5 -1
  144. package/resources/themes/vela-orange/theme.css +5 -1
  145. package/resources/themes/vela-purple/theme.css +5 -1
  146. package/row/Row.d.ts +25 -3
  147. package/scrollpanel/ScrollPanel.d.ts +27 -5
  148. package/scrolltop/ScrollTop.d.ts +47 -7
  149. package/selectbutton/SelectButton.d.ts +101 -17
  150. package/sidebar/Sidebar.d.ts +81 -16
  151. package/skeleton/Skeleton.d.ts +58 -9
  152. package/slider/Slider.d.ts +90 -14
  153. package/speeddial/SpeedDial.d.ts +166 -29
  154. package/splitbutton/SplitButton.d.ts +71 -11
  155. package/splitter/Splitter.d.ts +74 -7
  156. package/splitterpanel/SplitterPanel.d.ts +34 -7
  157. package/steps/Steps.d.ts +51 -11
  158. package/tabmenu/TabMenu.d.ts +63 -10
  159. package/tabpanel/TabPanel.d.ts +34 -7
  160. package/tabview/TabView.d.ts +73 -11
  161. package/tag/Tag.d.ts +44 -8
  162. package/terminal/Terminal.d.ts +36 -5
  163. package/terminalservice/TerminalService.d.ts +1 -1
  164. package/textarea/Textarea.d.ts +38 -6
  165. package/tieredmenu/TieredMenu.d.ts +89 -15
  166. package/timeline/Timeline.d.ts +94 -15
  167. package/toast/Toast.d.ts +110 -12
  168. package/toastservice/ToastService.d.ts +17 -5
  169. package/togglebutton/ToggleButton.d.ts +64 -11
  170. package/toolbar/Toolbar.d.ts +31 -6
  171. package/tree/Tree.d.ts +189 -26
  172. package/treeselect/TreeSelect.d.ts +201 -44
  173. package/treetable/TreeTable.d.ts +459 -63
  174. package/tristatecheckbox/TriStateCheckbox.d.ts +39 -5
  175. package/ts-helpers.d.ts +28 -0
  176. package/useconfirm/UseConfirm.d.ts +5 -19
  177. package/usetoast/UseToast.d.ts +3 -5
  178. package/utils/Utils.d.ts +3 -0
  179. package/utils/utils.cjs.js +39 -2
  180. package/utils/utils.cjs.min.js +1 -1
  181. package/utils/utils.esm.js +39 -2
  182. package/utils/utils.esm.min.js +1 -1
  183. package/utils/utils.js +39 -2
  184. package/utils/utils.min.js +1 -1
  185. package/vetur-attributes.json +57 -25
  186. package/vetur-tags.json +11 -3
  187. package/virtualscroller/VirtualScroller.d.ts +294 -53
  188. package/virtualscroller/VirtualScroller.vue +296 -255
  189. package/virtualscroller/virtualscroller.cjs.js +325 -266
  190. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  191. package/virtualscroller/virtualscroller.esm.js +325 -266
  192. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  193. package/virtualscroller/virtualscroller.js +325 -266
  194. package/virtualscroller/virtualscroller.min.js +1 -1
  195. package/web-types.json +153 -28
@@ -2,7 +2,6 @@
2
2
 
3
3
  var utils = require('primevue/utils');
4
4
  var OverlayEventBus = require('primevue/overlayeventbus');
5
- var InputText = require('primevue/inputtext');
6
5
  var Button = require('primevue/button');
7
6
  var Ripple = require('primevue/ripple');
8
7
  var vue = require('vue');
@@ -10,7 +9,6 @@ var vue = require('vue');
10
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
10
 
12
11
  var OverlayEventBus__default = /*#__PURE__*/_interopDefaultLegacy(OverlayEventBus);
13
- var InputText__default = /*#__PURE__*/_interopDefaultLegacy(InputText);
14
12
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
15
13
  var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
16
14
 
@@ -181,8 +179,11 @@ var script = {
181
179
  maskClickListener: null,
182
180
  resizeListener: null,
183
181
  overlay: null,
182
+ input: null,
184
183
  mask: null,
185
184
  timePickerTimer: null,
185
+ preventFocus: false,
186
+ typeUpdate: false,
186
187
  created() {
187
188
  this.updateCurrentMetaData();
188
189
  },
@@ -200,15 +201,19 @@ var script = {
200
201
  }
201
202
  }
202
203
  }
204
+ else {
205
+ this.input.value = this.formatValue(this.modelValue);
206
+ }
203
207
  },
204
208
  updated() {
205
209
  if (this.overlay) {
210
+ this.preventFocus = true;
206
211
  this.updateFocus();
207
212
  }
208
213
 
209
- if (this.$refs.input && this.selectionStart != null && this.selectionEnd != null) {
210
- this.$refs.input.$el.selectionStart = this.selectionStart;
211
- this.$refs.input.$el.selectionEnd = this.selectionEnd;
214
+ if (this.input && this.selectionStart != null && this.selectionEnd != null) {
215
+ this.input.selectionStart = this.selectionStart;
216
+ this.input.selectionEnd = this.selectionEnd;
212
217
  this.selectionStart = null;
213
218
  this.selectionEnd = null;
214
219
  }
@@ -250,15 +255,21 @@ var script = {
250
255
  }
251
256
  },
252
257
  watch: {
253
- modelValue() {
258
+ modelValue(newValue) {
254
259
  this.updateCurrentMetaData();
260
+ if (!this.typeUpdate && !this.inline && this.input) {
261
+ this.input.value = this.formatValue(newValue);
262
+ }
263
+ this.typeUpdate = false;
255
264
  },
256
265
  showTime() {
257
266
  this.updateCurrentMetaData();
258
267
  },
259
268
  months() {
260
269
  if (this.overlay) {
261
- setTimeout(this.updateFocus, 0);
270
+ if (!this.focused) {
271
+ setTimeout(this.updateFocus, 0);
272
+ }
262
273
  }
263
274
  },
264
275
  numberOfMonths() {
@@ -307,10 +318,22 @@ var script = {
307
318
  return false;
308
319
  },
309
320
  isMonthSelected(month) {
310
- return this.isComparable() ? (this.modelValue.getMonth() === month && this.modelValue.getFullYear() === this.currentYear) : false;
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;
311
328
  },
312
329
  isYearSelected(year) {
313
- return this.isComparable() ? (this.modelValue.getFullYear() === year) : false;
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;
314
337
  },
315
338
  isDateEquals(value, dateMeta) {
316
339
  if (value)
@@ -654,7 +677,7 @@ var script = {
654
677
  onButtonClick() {
655
678
  if (this.isEnabled()) {
656
679
  if (!this.overlayVisible) {
657
- this.$refs.input.$el.focus();
680
+ this.input.focus();
658
681
  this.overlayVisible = true;
659
682
  }
660
683
  else {
@@ -1940,9 +1963,11 @@ var script = {
1940
1963
  if (cell) {
1941
1964
  cell.tabIndex = '0';
1942
1965
 
1943
- if ((!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
1966
+ if (!this.preventFocus && (!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
1944
1967
  cell.focus();
1945
1968
  }
1969
+
1970
+ this.preventFocus = false;
1946
1971
  }
1947
1972
  },
1948
1973
  trapFocus(event) {
@@ -1987,18 +2012,17 @@ var script = {
1987
2012
  },
1988
2013
  onInput(event) {
1989
2014
  try {
1990
- this.selectionStart = this.$refs.input.$el.selectionStart;
1991
- this.selectionEnd = this.$refs.input.$el.selectionEnd;
2015
+ this.selectionStart = this.input.selectionStart;
2016
+ this.selectionEnd = this.input.selectionEnd;
1992
2017
 
1993
2018
  let value = this.parseValue(event.target.value);
1994
2019
  if (this.isValidSelection(value)) {
2020
+ this.typeUpdate = true;
1995
2021
  this.updateModel(value);
1996
2022
  }
1997
2023
  }
1998
2024
  catch(err) {
1999
- if (this.keepInvalid) {
2000
- this.updateModel(event.target.value);
2001
- }
2025
+ /* NoOp */
2002
2026
  }
2003
2027
  },
2004
2028
  onFocus() {
@@ -2009,6 +2033,7 @@ var script = {
2009
2033
  },
2010
2034
  onBlur() {
2011
2035
  this.focused = false;
2036
+ this.input.value = this.formatValue(this.modelValue);
2012
2037
  },
2013
2038
  onKeyDown() {
2014
2039
  if (event.keyCode === 40 && this.overlay) {
@@ -2033,6 +2058,9 @@ var script = {
2033
2058
  overlayRef(el) {
2034
2059
  this.overlay = el;
2035
2060
  },
2061
+ inputRef(el) {
2062
+ this.input = el;
2063
+ },
2036
2064
  getMonthName(index) {
2037
2065
  return this.$primevue.config.locale.monthNames[index];
2038
2066
  },
@@ -2309,7 +2337,6 @@ var script = {
2309
2337
  }
2310
2338
  },
2311
2339
  components: {
2312
- 'CalendarInputText': InputText__default['default'],
2313
2340
  'CalendarButton': Button__default['default']
2314
2341
  },
2315
2342
  directives: {
@@ -2390,7 +2417,6 @@ const _hoisted_31 = {
2390
2417
  };
2391
2418
 
2392
2419
  function render(_ctx, _cache, $props, $setup, $data, $options) {
2393
- const _component_CalendarInputText = vue.resolveComponent("CalendarInputText");
2394
2420
  const _component_CalendarButton = vue.resolveComponent("CalendarButton");
2395
2421
  const _directive_ripple = vue.resolveDirective("ripple");
2396
2422
 
@@ -2400,21 +2426,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2400
2426
  style: $props.style
2401
2427
  }, [
2402
2428
  (!$props.inline)
2403
- ? (vue.openBlock(), vue.createBlock(_component_CalendarInputText, vue.mergeProps({
2429
+ ? (vue.openBlock(), vue.createBlock("input", vue.mergeProps({
2404
2430
  key: 0,
2405
- ref: "input",
2406
- type: "text"
2431
+ ref: $options.inputRef,
2432
+ type: "text",
2433
+ class: ['p-inputtext p-component', $props.inputClass],
2434
+ style: $props.inputStyle,
2435
+ onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
2407
2436
  }, _ctx.$attrs, {
2408
- value: $options.inputFieldValue,
2409
- onInput: $options.onInput,
2410
- onFocus: $options.onFocus,
2411
- onBlur: $options.onBlur,
2412
- onKeydown: $options.onKeyDown,
2437
+ onFocus: _cache[2] || (_cache[2] = (...args) => ($options.onFocus && $options.onFocus(...args))),
2438
+ onBlur: _cache[3] || (_cache[3] = (...args) => ($options.onBlur && $options.onBlur(...args))),
2439
+ onKeydown: _cache[4] || (_cache[4] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
2413
2440
  readonly: !$props.manualInput,
2414
- inputmode: "none",
2415
- class: $props.inputClass,
2416
- style: $props.inputStyle
2417
- }), null, 16, ["value", "onInput", "onFocus", "onBlur", "onKeydown", "readonly", "class", "style"]))
2441
+ inputmode: "none"
2442
+ }), null, 16, ["readonly"]))
2418
2443
  : vue.createCommentVNode("", true),
2419
2444
  ($props.showIcon)
2420
2445
  ? (vue.openBlock(), vue.createBlock(_component_CalendarButton, {
@@ -2434,7 +2459,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2434
2459
  }, [
2435
2460
  vue.createVNode(vue.Transition, {
2436
2461
  name: "p-connected-overlay",
2437
- onEnter: _cache[61] || (_cache[61] = $event => ($options.onOverlayEnter($event))),
2462
+ onEnter: _cache[67] || (_cache[67] = $event => ($options.onOverlayEnter($event))),
2438
2463
  onAfterEnter: $options.onOverlayEnterComplete,
2439
2464
  onAfterLeave: $options.onOverlayAfterLeave,
2440
2465
  onLeave: $options.onOverlayLeave
@@ -2446,8 +2471,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2446
2471
  ref: $options.overlayRef,
2447
2472
  class: $options.panelStyleClass,
2448
2473
  role: $props.inline ? null : 'dialog',
2449
- onClick: _cache[59] || (_cache[59] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
2450
- onMouseup: _cache[60] || (_cache[60] = (...args) => ($options.onOverlayMouseUp && $options.onOverlayMouseUp(...args)))
2474
+ onClick: _cache[65] || (_cache[65] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
2475
+ onMouseup: _cache[66] || (_cache[66] = (...args) => ($options.onOverlayMouseUp && $options.onOverlayMouseUp(...args)))
2451
2476
  }, [
2452
2477
  (!$props.timeOnly)
2453
2478
  ? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 0 }, [
@@ -2461,9 +2486,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2461
2486
  vue.renderSlot(_ctx.$slots, "header"),
2462
2487
  vue.withDirectives(vue.createVNode("button", {
2463
2488
  class: "p-datepicker-prev p-link",
2464
- onClick: _cache[1] || (_cache[1] = (...args) => ($options.onPrevButtonClick && $options.onPrevButtonClick(...args))),
2489
+ onClick: _cache[5] || (_cache[5] = (...args) => ($options.onPrevButtonClick && $options.onPrevButtonClick(...args))),
2465
2490
  type: "button",
2466
- onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2491
+ onKeydown: _cache[6] || (_cache[6] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2467
2492
  disabled: _ctx.$attrs.disabled
2468
2493
  }, [
2469
2494
  _hoisted_3
@@ -2476,19 +2501,21 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2476
2501
  ? (vue.openBlock(), vue.createBlock("button", {
2477
2502
  key: 0,
2478
2503
  type: "button",
2479
- onClick: _cache[3] || (_cache[3] = (...args) => ($options.switchToMonthView && $options.switchToMonthView(...args))),
2504
+ onClick: _cache[7] || (_cache[7] = (...args) => ($options.switchToMonthView && $options.switchToMonthView(...args))),
2505
+ onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2480
2506
  class: "p-datepicker-month p-link",
2481
2507
  disabled: $options.switchViewButtonDisabled
2482
- }, vue.toDisplayString($options.getMonthName(month.month)), 9, ["disabled"]))
2508
+ }, vue.toDisplayString($options.getMonthName(month.month)), 41, ["disabled"]))
2483
2509
  : vue.createCommentVNode("", true),
2484
2510
  ($data.currentView !== 'year')
2485
2511
  ? (vue.openBlock(), vue.createBlock("button", {
2486
2512
  key: 1,
2487
2513
  type: "button",
2488
- onClick: _cache[4] || (_cache[4] = (...args) => ($options.switchToYearView && $options.switchToYearView(...args))),
2514
+ onClick: _cache[9] || (_cache[9] = (...args) => ($options.switchToYearView && $options.switchToYearView(...args))),
2515
+ onKeydown: _cache[10] || (_cache[10] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2489
2516
  class: "p-datepicker-year p-link",
2490
2517
  disabled: $options.switchViewButtonDisabled
2491
- }, vue.toDisplayString($data.currentYear), 9, ["disabled"]))
2518
+ }, vue.toDisplayString($data.currentYear), 41, ["disabled"]))
2492
2519
  : vue.createCommentVNode("", true),
2493
2520
  ($data.currentView === 'year')
2494
2521
  ? (vue.openBlock(), vue.createBlock("span", _hoisted_5, [
@@ -2500,9 +2527,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2500
2527
  ]),
2501
2528
  vue.withDirectives(vue.createVNode("button", {
2502
2529
  class: "p-datepicker-next p-link",
2503
- onClick: _cache[5] || (_cache[5] = (...args) => ($options.onNextButtonClick && $options.onNextButtonClick(...args))),
2530
+ onClick: _cache[11] || (_cache[11] = (...args) => ($options.onNextButtonClick && $options.onNextButtonClick(...args))),
2504
2531
  type: "button",
2505
- onKeydown: _cache[6] || (_cache[6] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2532
+ onKeydown: _cache[12] || (_cache[12] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2506
2533
  disabled: _ctx.$attrs.disabled
2507
2534
  }, [
2508
2535
  _hoisted_6
@@ -2613,17 +2640,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2613
2640
  vue.createVNode("div", _hoisted_16, [
2614
2641
  vue.withDirectives(vue.createVNode("button", {
2615
2642
  class: "p-link",
2616
- onMousedown: _cache[7] || (_cache[7] = $event => ($options.onTimePickerElementMouseDown($event, 0, 1))),
2617
- onMouseup: _cache[8] || (_cache[8] = $event => ($options.onTimePickerElementMouseUp($event))),
2643
+ onMousedown: _cache[13] || (_cache[13] = $event => ($options.onTimePickerElementMouseDown($event, 0, 1))),
2644
+ onMouseup: _cache[14] || (_cache[14] = $event => ($options.onTimePickerElementMouseUp($event))),
2618
2645
  onKeydown: [
2619
- _cache[9] || (_cache[9] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2620
- _cache[11] || (_cache[11] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["enter"])),
2621
- _cache[12] || (_cache[12] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["space"]))
2646
+ _cache[15] || (_cache[15] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2647
+ _cache[17] || (_cache[17] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["enter"])),
2648
+ _cache[18] || (_cache[18] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["space"]))
2622
2649
  ],
2623
- onMouseleave: _cache[10] || (_cache[10] = $event => ($options.onTimePickerElementMouseLeave())),
2650
+ onMouseleave: _cache[16] || (_cache[16] = $event => ($options.onTimePickerElementMouseLeave())),
2624
2651
  onKeyup: [
2625
- _cache[13] || (_cache[13] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2626
- _cache[14] || (_cache[14] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2652
+ _cache[19] || (_cache[19] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2653
+ _cache[20] || (_cache[20] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2627
2654
  ],
2628
2655
  type: "button"
2629
2656
  }, [
@@ -2634,17 +2661,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2634
2661
  vue.createVNode("span", null, vue.toDisplayString($options.formattedCurrentHour), 1),
2635
2662
  vue.withDirectives(vue.createVNode("button", {
2636
2663
  class: "p-link",
2637
- onMousedown: _cache[15] || (_cache[15] = $event => ($options.onTimePickerElementMouseDown($event, 0, -1))),
2638
- onMouseup: _cache[16] || (_cache[16] = $event => ($options.onTimePickerElementMouseUp($event))),
2664
+ onMousedown: _cache[21] || (_cache[21] = $event => ($options.onTimePickerElementMouseDown($event, 0, -1))),
2665
+ onMouseup: _cache[22] || (_cache[22] = $event => ($options.onTimePickerElementMouseUp($event))),
2639
2666
  onKeydown: [
2640
- _cache[17] || (_cache[17] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2641
- _cache[19] || (_cache[19] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["enter"])),
2642
- _cache[20] || (_cache[20] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["space"]))
2667
+ _cache[23] || (_cache[23] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2668
+ _cache[25] || (_cache[25] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["enter"])),
2669
+ _cache[26] || (_cache[26] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["space"]))
2643
2670
  ],
2644
- onMouseleave: _cache[18] || (_cache[18] = $event => ($options.onTimePickerElementMouseLeave())),
2671
+ onMouseleave: _cache[24] || (_cache[24] = $event => ($options.onTimePickerElementMouseLeave())),
2645
2672
  onKeyup: [
2646
- _cache[21] || (_cache[21] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2647
- _cache[22] || (_cache[22] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2673
+ _cache[27] || (_cache[27] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2674
+ _cache[28] || (_cache[28] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2648
2675
  ],
2649
2676
  type: "button"
2650
2677
  }, [
@@ -2659,18 +2686,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2659
2686
  vue.createVNode("div", _hoisted_20, [
2660
2687
  vue.withDirectives(vue.createVNode("button", {
2661
2688
  class: "p-link",
2662
- onMousedown: _cache[23] || (_cache[23] = $event => ($options.onTimePickerElementMouseDown($event, 1, 1))),
2663
- onMouseup: _cache[24] || (_cache[24] = $event => ($options.onTimePickerElementMouseUp($event))),
2689
+ onMousedown: _cache[29] || (_cache[29] = $event => ($options.onTimePickerElementMouseDown($event, 1, 1))),
2690
+ onMouseup: _cache[30] || (_cache[30] = $event => ($options.onTimePickerElementMouseUp($event))),
2664
2691
  onKeydown: [
2665
- _cache[25] || (_cache[25] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2666
- _cache[27] || (_cache[27] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["enter"])),
2667
- _cache[28] || (_cache[28] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["space"]))
2692
+ _cache[31] || (_cache[31] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2693
+ _cache[33] || (_cache[33] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["enter"])),
2694
+ _cache[34] || (_cache[34] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["space"]))
2668
2695
  ],
2669
2696
  disabled: _ctx.$attrs.disabled,
2670
- onMouseleave: _cache[26] || (_cache[26] = $event => ($options.onTimePickerElementMouseLeave())),
2697
+ onMouseleave: _cache[32] || (_cache[32] = $event => ($options.onTimePickerElementMouseLeave())),
2671
2698
  onKeyup: [
2672
- _cache[29] || (_cache[29] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2673
- _cache[30] || (_cache[30] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2699
+ _cache[35] || (_cache[35] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2700
+ _cache[36] || (_cache[36] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2674
2701
  ],
2675
2702
  type: "button"
2676
2703
  }, [
@@ -2681,18 +2708,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2681
2708
  vue.createVNode("span", null, vue.toDisplayString($options.formattedCurrentMinute), 1),
2682
2709
  vue.withDirectives(vue.createVNode("button", {
2683
2710
  class: "p-link",
2684
- onMousedown: _cache[31] || (_cache[31] = $event => ($options.onTimePickerElementMouseDown($event, 1, -1))),
2685
- onMouseup: _cache[32] || (_cache[32] = $event => ($options.onTimePickerElementMouseUp($event))),
2711
+ onMousedown: _cache[37] || (_cache[37] = $event => ($options.onTimePickerElementMouseDown($event, 1, -1))),
2712
+ onMouseup: _cache[38] || (_cache[38] = $event => ($options.onTimePickerElementMouseUp($event))),
2686
2713
  onKeydown: [
2687
- _cache[33] || (_cache[33] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2688
- _cache[35] || (_cache[35] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["enter"])),
2689
- _cache[36] || (_cache[36] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["space"]))
2714
+ _cache[39] || (_cache[39] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2715
+ _cache[41] || (_cache[41] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["enter"])),
2716
+ _cache[42] || (_cache[42] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["space"]))
2690
2717
  ],
2691
2718
  disabled: _ctx.$attrs.disabled,
2692
- onMouseleave: _cache[34] || (_cache[34] = $event => ($options.onTimePickerElementMouseLeave())),
2719
+ onMouseleave: _cache[40] || (_cache[40] = $event => ($options.onTimePickerElementMouseLeave())),
2693
2720
  onKeyup: [
2694
- _cache[37] || (_cache[37] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2695
- _cache[38] || (_cache[38] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2721
+ _cache[43] || (_cache[43] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2722
+ _cache[44] || (_cache[44] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2696
2723
  ],
2697
2724
  type: "button"
2698
2725
  }, [
@@ -2710,18 +2737,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2710
2737
  ? (vue.openBlock(), vue.createBlock("div", _hoisted_24, [
2711
2738
  vue.withDirectives(vue.createVNode("button", {
2712
2739
  class: "p-link",
2713
- onMousedown: _cache[39] || (_cache[39] = $event => ($options.onTimePickerElementMouseDown($event, 2, 1))),
2714
- onMouseup: _cache[40] || (_cache[40] = $event => ($options.onTimePickerElementMouseUp($event))),
2740
+ onMousedown: _cache[45] || (_cache[45] = $event => ($options.onTimePickerElementMouseDown($event, 2, 1))),
2741
+ onMouseup: _cache[46] || (_cache[46] = $event => ($options.onTimePickerElementMouseUp($event))),
2715
2742
  onKeydown: [
2716
- _cache[41] || (_cache[41] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2717
- _cache[43] || (_cache[43] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["enter"])),
2718
- _cache[44] || (_cache[44] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["space"]))
2743
+ _cache[47] || (_cache[47] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2744
+ _cache[49] || (_cache[49] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["enter"])),
2745
+ _cache[50] || (_cache[50] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["space"]))
2719
2746
  ],
2720
2747
  disabled: _ctx.$attrs.disabled,
2721
- onMouseleave: _cache[42] || (_cache[42] = $event => ($options.onTimePickerElementMouseLeave())),
2748
+ onMouseleave: _cache[48] || (_cache[48] = $event => ($options.onTimePickerElementMouseLeave())),
2722
2749
  onKeyup: [
2723
- _cache[45] || (_cache[45] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2724
- _cache[46] || (_cache[46] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2750
+ _cache[51] || (_cache[51] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2751
+ _cache[52] || (_cache[52] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2725
2752
  ],
2726
2753
  type: "button"
2727
2754
  }, [
@@ -2732,18 +2759,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2732
2759
  vue.createVNode("span", null, vue.toDisplayString($options.formattedCurrentSecond), 1),
2733
2760
  vue.withDirectives(vue.createVNode("button", {
2734
2761
  class: "p-link",
2735
- onMousedown: _cache[47] || (_cache[47] = $event => ($options.onTimePickerElementMouseDown($event, 2, -1))),
2736
- onMouseup: _cache[48] || (_cache[48] = $event => ($options.onTimePickerElementMouseUp($event))),
2762
+ onMousedown: _cache[53] || (_cache[53] = $event => ($options.onTimePickerElementMouseDown($event, 2, -1))),
2763
+ onMouseup: _cache[54] || (_cache[54] = $event => ($options.onTimePickerElementMouseUp($event))),
2737
2764
  onKeydown: [
2738
- _cache[49] || (_cache[49] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2739
- _cache[51] || (_cache[51] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["enter"])),
2740
- _cache[52] || (_cache[52] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["space"]))
2765
+ _cache[55] || (_cache[55] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2766
+ _cache[57] || (_cache[57] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["enter"])),
2767
+ _cache[58] || (_cache[58] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["space"]))
2741
2768
  ],
2742
2769
  disabled: _ctx.$attrs.disabled,
2743
- onMouseleave: _cache[50] || (_cache[50] = $event => ($options.onTimePickerElementMouseLeave())),
2770
+ onMouseleave: _cache[56] || (_cache[56] = $event => ($options.onTimePickerElementMouseLeave())),
2744
2771
  onKeyup: [
2745
- _cache[53] || (_cache[53] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2746
- _cache[54] || (_cache[54] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2772
+ _cache[59] || (_cache[59] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2773
+ _cache[60] || (_cache[60] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2747
2774
  ],
2748
2775
  type: "button"
2749
2776
  }, [
@@ -2762,7 +2789,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2762
2789
  ? (vue.openBlock(), vue.createBlock("div", _hoisted_28, [
2763
2790
  vue.withDirectives(vue.createVNode("button", {
2764
2791
  class: "p-link",
2765
- onClick: _cache[55] || (_cache[55] = $event => ($options.toggleAMPM($event))),
2792
+ onClick: _cache[61] || (_cache[61] = $event => ($options.toggleAMPM($event))),
2766
2793
  type: "button",
2767
2794
  disabled: _ctx.$attrs.disabled
2768
2795
  }, [
@@ -2773,7 +2800,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2773
2800
  vue.createVNode("span", null, vue.toDisplayString($data.pm ? 'PM' : 'AM'), 1),
2774
2801
  vue.withDirectives(vue.createVNode("button", {
2775
2802
  class: "p-link",
2776
- onClick: _cache[56] || (_cache[56] = $event => ($options.toggleAMPM($event))),
2803
+ onClick: _cache[62] || (_cache[62] = $event => ($options.toggleAMPM($event))),
2777
2804
  type: "button",
2778
2805
  disabled: _ctx.$attrs.disabled
2779
2806
  }, [
@@ -2790,14 +2817,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2790
2817
  vue.createVNode(_component_CalendarButton, {
2791
2818
  type: "button",
2792
2819
  label: $options.todayLabel,
2793
- onClick: _cache[57] || (_cache[57] = $event => ($options.onTodayButtonClick($event))),
2820
+ onClick: _cache[63] || (_cache[63] = $event => ($options.onTodayButtonClick($event))),
2794
2821
  class: "p-button-text",
2795
2822
  onKeydown: $options.onContainerButtonKeydown
2796
2823
  }, null, 8, ["label", "onKeydown"]),
2797
2824
  vue.createVNode(_component_CalendarButton, {
2798
2825
  type: "button",
2799
2826
  label: $options.clearLabel,
2800
- onClick: _cache[58] || (_cache[58] = $event => ($options.onClearButtonClick($event))),
2827
+ onClick: _cache[64] || (_cache[64] = $event => ($options.onClearButtonClick($event))),
2801
2828
  class: "p-button-text",
2802
2829
  onKeydown: $options.onContainerButtonKeydown
2803
2830
  }, null, 8, ["label", "onKeydown"])