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
@@ -1,6 +1,5 @@
1
1
  import { DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, UniqueComponentId } from 'primevue/utils';
2
2
  import OverlayEventBus from 'primevue/overlayeventbus';
3
- import InputText from 'primevue/inputtext';
4
3
  import Button from 'primevue/button';
5
4
  import Ripple from 'primevue/ripple';
6
5
  import { resolveComponent, resolveDirective, openBlock, createBlock, mergeProps, createCommentVNode, Teleport, createVNode, Transition, withCtx, Fragment, renderList, renderSlot, withDirectives, vShow, toDisplayString, createTextVNode, withKeys } from 'vue';
@@ -172,8 +171,11 @@ var script = {
172
171
  maskClickListener: null,
173
172
  resizeListener: null,
174
173
  overlay: null,
174
+ input: null,
175
175
  mask: null,
176
176
  timePickerTimer: null,
177
+ preventFocus: false,
178
+ typeUpdate: false,
177
179
  created() {
178
180
  this.updateCurrentMetaData();
179
181
  },
@@ -191,15 +193,19 @@ var script = {
191
193
  }
192
194
  }
193
195
  }
196
+ else {
197
+ this.input.value = this.formatValue(this.modelValue);
198
+ }
194
199
  },
195
200
  updated() {
196
201
  if (this.overlay) {
202
+ this.preventFocus = true;
197
203
  this.updateFocus();
198
204
  }
199
205
 
200
- if (this.$refs.input && this.selectionStart != null && this.selectionEnd != null) {
201
- this.$refs.input.$el.selectionStart = this.selectionStart;
202
- this.$refs.input.$el.selectionEnd = this.selectionEnd;
206
+ if (this.input && this.selectionStart != null && this.selectionEnd != null) {
207
+ this.input.selectionStart = this.selectionStart;
208
+ this.input.selectionEnd = this.selectionEnd;
203
209
  this.selectionStart = null;
204
210
  this.selectionEnd = null;
205
211
  }
@@ -241,15 +247,21 @@ var script = {
241
247
  }
242
248
  },
243
249
  watch: {
244
- modelValue() {
250
+ modelValue(newValue) {
245
251
  this.updateCurrentMetaData();
252
+ if (!this.typeUpdate && !this.inline && this.input) {
253
+ this.input.value = this.formatValue(newValue);
254
+ }
255
+ this.typeUpdate = false;
246
256
  },
247
257
  showTime() {
248
258
  this.updateCurrentMetaData();
249
259
  },
250
260
  months() {
251
261
  if (this.overlay) {
252
- setTimeout(this.updateFocus, 0);
262
+ if (!this.focused) {
263
+ setTimeout(this.updateFocus, 0);
264
+ }
253
265
  }
254
266
  },
255
267
  numberOfMonths() {
@@ -298,10 +310,22 @@ var script = {
298
310
  return false;
299
311
  },
300
312
  isMonthSelected(month) {
301
- return this.isComparable() ? (this.modelValue.getMonth() === month && this.modelValue.getFullYear() === this.currentYear) : false;
313
+ if (this.isComparable()) {
314
+ let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
315
+
316
+ return !this.isMultipleSelection() ? (value.getMonth() === month && value.getFullYear() === this.currentYear) : false;
317
+ }
318
+
319
+ return false;
302
320
  },
303
321
  isYearSelected(year) {
304
- return this.isComparable() ? (this.modelValue.getFullYear() === year) : false;
322
+ if (this.isComparable()) {
323
+ let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
324
+
325
+ return !this.isMultipleSelection() && this.isComparable() ? (value.getFullYear() === year) : false;
326
+ }
327
+
328
+ return false;
305
329
  },
306
330
  isDateEquals(value, dateMeta) {
307
331
  if (value)
@@ -645,7 +669,7 @@ var script = {
645
669
  onButtonClick() {
646
670
  if (this.isEnabled()) {
647
671
  if (!this.overlayVisible) {
648
- this.$refs.input.$el.focus();
672
+ this.input.focus();
649
673
  this.overlayVisible = true;
650
674
  }
651
675
  else {
@@ -1931,9 +1955,11 @@ var script = {
1931
1955
  if (cell) {
1932
1956
  cell.tabIndex = '0';
1933
1957
 
1934
- if ((!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
1958
+ if (!this.preventFocus && (!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
1935
1959
  cell.focus();
1936
1960
  }
1961
+
1962
+ this.preventFocus = false;
1937
1963
  }
1938
1964
  },
1939
1965
  trapFocus(event) {
@@ -1978,18 +2004,17 @@ var script = {
1978
2004
  },
1979
2005
  onInput(event) {
1980
2006
  try {
1981
- this.selectionStart = this.$refs.input.$el.selectionStart;
1982
- this.selectionEnd = this.$refs.input.$el.selectionEnd;
2007
+ this.selectionStart = this.input.selectionStart;
2008
+ this.selectionEnd = this.input.selectionEnd;
1983
2009
 
1984
2010
  let value = this.parseValue(event.target.value);
1985
2011
  if (this.isValidSelection(value)) {
2012
+ this.typeUpdate = true;
1986
2013
  this.updateModel(value);
1987
2014
  }
1988
2015
  }
1989
2016
  catch(err) {
1990
- if (this.keepInvalid) {
1991
- this.updateModel(event.target.value);
1992
- }
2017
+ /* NoOp */
1993
2018
  }
1994
2019
  },
1995
2020
  onFocus() {
@@ -2000,6 +2025,7 @@ var script = {
2000
2025
  },
2001
2026
  onBlur() {
2002
2027
  this.focused = false;
2028
+ this.input.value = this.formatValue(this.modelValue);
2003
2029
  },
2004
2030
  onKeyDown() {
2005
2031
  if (event.keyCode === 40 && this.overlay) {
@@ -2024,6 +2050,9 @@ var script = {
2024
2050
  overlayRef(el) {
2025
2051
  this.overlay = el;
2026
2052
  },
2053
+ inputRef(el) {
2054
+ this.input = el;
2055
+ },
2027
2056
  getMonthName(index) {
2028
2057
  return this.$primevue.config.locale.monthNames[index];
2029
2058
  },
@@ -2300,7 +2329,6 @@ var script = {
2300
2329
  }
2301
2330
  },
2302
2331
  components: {
2303
- 'CalendarInputText': InputText,
2304
2332
  'CalendarButton': Button
2305
2333
  },
2306
2334
  directives: {
@@ -2381,7 +2409,6 @@ const _hoisted_31 = {
2381
2409
  };
2382
2410
 
2383
2411
  function render(_ctx, _cache, $props, $setup, $data, $options) {
2384
- const _component_CalendarInputText = resolveComponent("CalendarInputText");
2385
2412
  const _component_CalendarButton = resolveComponent("CalendarButton");
2386
2413
  const _directive_ripple = resolveDirective("ripple");
2387
2414
 
@@ -2391,21 +2418,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2391
2418
  style: $props.style
2392
2419
  }, [
2393
2420
  (!$props.inline)
2394
- ? (openBlock(), createBlock(_component_CalendarInputText, mergeProps({
2421
+ ? (openBlock(), createBlock("input", mergeProps({
2395
2422
  key: 0,
2396
- ref: "input",
2397
- type: "text"
2423
+ ref: $options.inputRef,
2424
+ type: "text",
2425
+ class: ['p-inputtext p-component', $props.inputClass],
2426
+ style: $props.inputStyle,
2427
+ onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
2398
2428
  }, _ctx.$attrs, {
2399
- value: $options.inputFieldValue,
2400
- onInput: $options.onInput,
2401
- onFocus: $options.onFocus,
2402
- onBlur: $options.onBlur,
2403
- onKeydown: $options.onKeyDown,
2429
+ onFocus: _cache[2] || (_cache[2] = (...args) => ($options.onFocus && $options.onFocus(...args))),
2430
+ onBlur: _cache[3] || (_cache[3] = (...args) => ($options.onBlur && $options.onBlur(...args))),
2431
+ onKeydown: _cache[4] || (_cache[4] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
2404
2432
  readonly: !$props.manualInput,
2405
- inputmode: "none",
2406
- class: $props.inputClass,
2407
- style: $props.inputStyle
2408
- }), null, 16, ["value", "onInput", "onFocus", "onBlur", "onKeydown", "readonly", "class", "style"]))
2433
+ inputmode: "none"
2434
+ }), null, 16, ["readonly"]))
2409
2435
  : createCommentVNode("", true),
2410
2436
  ($props.showIcon)
2411
2437
  ? (openBlock(), createBlock(_component_CalendarButton, {
@@ -2425,7 +2451,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2425
2451
  }, [
2426
2452
  createVNode(Transition, {
2427
2453
  name: "p-connected-overlay",
2428
- onEnter: _cache[61] || (_cache[61] = $event => ($options.onOverlayEnter($event))),
2454
+ onEnter: _cache[67] || (_cache[67] = $event => ($options.onOverlayEnter($event))),
2429
2455
  onAfterEnter: $options.onOverlayEnterComplete,
2430
2456
  onAfterLeave: $options.onOverlayAfterLeave,
2431
2457
  onLeave: $options.onOverlayLeave
@@ -2437,8 +2463,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2437
2463
  ref: $options.overlayRef,
2438
2464
  class: $options.panelStyleClass,
2439
2465
  role: $props.inline ? null : 'dialog',
2440
- onClick: _cache[59] || (_cache[59] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
2441
- onMouseup: _cache[60] || (_cache[60] = (...args) => ($options.onOverlayMouseUp && $options.onOverlayMouseUp(...args)))
2466
+ onClick: _cache[65] || (_cache[65] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
2467
+ onMouseup: _cache[66] || (_cache[66] = (...args) => ($options.onOverlayMouseUp && $options.onOverlayMouseUp(...args)))
2442
2468
  }, [
2443
2469
  (!$props.timeOnly)
2444
2470
  ? (openBlock(), createBlock(Fragment, { key: 0 }, [
@@ -2452,9 +2478,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2452
2478
  renderSlot(_ctx.$slots, "header"),
2453
2479
  withDirectives(createVNode("button", {
2454
2480
  class: "p-datepicker-prev p-link",
2455
- onClick: _cache[1] || (_cache[1] = (...args) => ($options.onPrevButtonClick && $options.onPrevButtonClick(...args))),
2481
+ onClick: _cache[5] || (_cache[5] = (...args) => ($options.onPrevButtonClick && $options.onPrevButtonClick(...args))),
2456
2482
  type: "button",
2457
- onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2483
+ onKeydown: _cache[6] || (_cache[6] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2458
2484
  disabled: _ctx.$attrs.disabled
2459
2485
  }, [
2460
2486
  _hoisted_3
@@ -2467,19 +2493,21 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2467
2493
  ? (openBlock(), createBlock("button", {
2468
2494
  key: 0,
2469
2495
  type: "button",
2470
- onClick: _cache[3] || (_cache[3] = (...args) => ($options.switchToMonthView && $options.switchToMonthView(...args))),
2496
+ onClick: _cache[7] || (_cache[7] = (...args) => ($options.switchToMonthView && $options.switchToMonthView(...args))),
2497
+ onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2471
2498
  class: "p-datepicker-month p-link",
2472
2499
  disabled: $options.switchViewButtonDisabled
2473
- }, toDisplayString($options.getMonthName(month.month)), 9, ["disabled"]))
2500
+ }, toDisplayString($options.getMonthName(month.month)), 41, ["disabled"]))
2474
2501
  : createCommentVNode("", true),
2475
2502
  ($data.currentView !== 'year')
2476
2503
  ? (openBlock(), createBlock("button", {
2477
2504
  key: 1,
2478
2505
  type: "button",
2479
- onClick: _cache[4] || (_cache[4] = (...args) => ($options.switchToYearView && $options.switchToYearView(...args))),
2506
+ onClick: _cache[9] || (_cache[9] = (...args) => ($options.switchToYearView && $options.switchToYearView(...args))),
2507
+ onKeydown: _cache[10] || (_cache[10] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2480
2508
  class: "p-datepicker-year p-link",
2481
2509
  disabled: $options.switchViewButtonDisabled
2482
- }, toDisplayString($data.currentYear), 9, ["disabled"]))
2510
+ }, toDisplayString($data.currentYear), 41, ["disabled"]))
2483
2511
  : createCommentVNode("", true),
2484
2512
  ($data.currentView === 'year')
2485
2513
  ? (openBlock(), createBlock("span", _hoisted_5, [
@@ -2491,9 +2519,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2491
2519
  ]),
2492
2520
  withDirectives(createVNode("button", {
2493
2521
  class: "p-datepicker-next p-link",
2494
- onClick: _cache[5] || (_cache[5] = (...args) => ($options.onNextButtonClick && $options.onNextButtonClick(...args))),
2522
+ onClick: _cache[11] || (_cache[11] = (...args) => ($options.onNextButtonClick && $options.onNextButtonClick(...args))),
2495
2523
  type: "button",
2496
- onKeydown: _cache[6] || (_cache[6] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2524
+ onKeydown: _cache[12] || (_cache[12] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2497
2525
  disabled: _ctx.$attrs.disabled
2498
2526
  }, [
2499
2527
  _hoisted_6
@@ -2604,17 +2632,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2604
2632
  createVNode("div", _hoisted_16, [
2605
2633
  withDirectives(createVNode("button", {
2606
2634
  class: "p-link",
2607
- onMousedown: _cache[7] || (_cache[7] = $event => ($options.onTimePickerElementMouseDown($event, 0, 1))),
2608
- onMouseup: _cache[8] || (_cache[8] = $event => ($options.onTimePickerElementMouseUp($event))),
2635
+ onMousedown: _cache[13] || (_cache[13] = $event => ($options.onTimePickerElementMouseDown($event, 0, 1))),
2636
+ onMouseup: _cache[14] || (_cache[14] = $event => ($options.onTimePickerElementMouseUp($event))),
2609
2637
  onKeydown: [
2610
- _cache[9] || (_cache[9] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2611
- _cache[11] || (_cache[11] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["enter"])),
2612
- _cache[12] || (_cache[12] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["space"]))
2638
+ _cache[15] || (_cache[15] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2639
+ _cache[17] || (_cache[17] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["enter"])),
2640
+ _cache[18] || (_cache[18] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["space"]))
2613
2641
  ],
2614
- onMouseleave: _cache[10] || (_cache[10] = $event => ($options.onTimePickerElementMouseLeave())),
2642
+ onMouseleave: _cache[16] || (_cache[16] = $event => ($options.onTimePickerElementMouseLeave())),
2615
2643
  onKeyup: [
2616
- _cache[13] || (_cache[13] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2617
- _cache[14] || (_cache[14] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2644
+ _cache[19] || (_cache[19] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2645
+ _cache[20] || (_cache[20] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2618
2646
  ],
2619
2647
  type: "button"
2620
2648
  }, [
@@ -2625,17 +2653,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2625
2653
  createVNode("span", null, toDisplayString($options.formattedCurrentHour), 1),
2626
2654
  withDirectives(createVNode("button", {
2627
2655
  class: "p-link",
2628
- onMousedown: _cache[15] || (_cache[15] = $event => ($options.onTimePickerElementMouseDown($event, 0, -1))),
2629
- onMouseup: _cache[16] || (_cache[16] = $event => ($options.onTimePickerElementMouseUp($event))),
2656
+ onMousedown: _cache[21] || (_cache[21] = $event => ($options.onTimePickerElementMouseDown($event, 0, -1))),
2657
+ onMouseup: _cache[22] || (_cache[22] = $event => ($options.onTimePickerElementMouseUp($event))),
2630
2658
  onKeydown: [
2631
- _cache[17] || (_cache[17] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2632
- _cache[19] || (_cache[19] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["enter"])),
2633
- _cache[20] || (_cache[20] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["space"]))
2659
+ _cache[23] || (_cache[23] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2660
+ _cache[25] || (_cache[25] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["enter"])),
2661
+ _cache[26] || (_cache[26] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["space"]))
2634
2662
  ],
2635
- onMouseleave: _cache[18] || (_cache[18] = $event => ($options.onTimePickerElementMouseLeave())),
2663
+ onMouseleave: _cache[24] || (_cache[24] = $event => ($options.onTimePickerElementMouseLeave())),
2636
2664
  onKeyup: [
2637
- _cache[21] || (_cache[21] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2638
- _cache[22] || (_cache[22] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2665
+ _cache[27] || (_cache[27] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2666
+ _cache[28] || (_cache[28] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2639
2667
  ],
2640
2668
  type: "button"
2641
2669
  }, [
@@ -2650,18 +2678,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2650
2678
  createVNode("div", _hoisted_20, [
2651
2679
  withDirectives(createVNode("button", {
2652
2680
  class: "p-link",
2653
- onMousedown: _cache[23] || (_cache[23] = $event => ($options.onTimePickerElementMouseDown($event, 1, 1))),
2654
- onMouseup: _cache[24] || (_cache[24] = $event => ($options.onTimePickerElementMouseUp($event))),
2681
+ onMousedown: _cache[29] || (_cache[29] = $event => ($options.onTimePickerElementMouseDown($event, 1, 1))),
2682
+ onMouseup: _cache[30] || (_cache[30] = $event => ($options.onTimePickerElementMouseUp($event))),
2655
2683
  onKeydown: [
2656
- _cache[25] || (_cache[25] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2657
- _cache[27] || (_cache[27] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["enter"])),
2658
- _cache[28] || (_cache[28] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["space"]))
2684
+ _cache[31] || (_cache[31] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2685
+ _cache[33] || (_cache[33] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["enter"])),
2686
+ _cache[34] || (_cache[34] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["space"]))
2659
2687
  ],
2660
2688
  disabled: _ctx.$attrs.disabled,
2661
- onMouseleave: _cache[26] || (_cache[26] = $event => ($options.onTimePickerElementMouseLeave())),
2689
+ onMouseleave: _cache[32] || (_cache[32] = $event => ($options.onTimePickerElementMouseLeave())),
2662
2690
  onKeyup: [
2663
- _cache[29] || (_cache[29] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2664
- _cache[30] || (_cache[30] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2691
+ _cache[35] || (_cache[35] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2692
+ _cache[36] || (_cache[36] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2665
2693
  ],
2666
2694
  type: "button"
2667
2695
  }, [
@@ -2672,18 +2700,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2672
2700
  createVNode("span", null, toDisplayString($options.formattedCurrentMinute), 1),
2673
2701
  withDirectives(createVNode("button", {
2674
2702
  class: "p-link",
2675
- onMousedown: _cache[31] || (_cache[31] = $event => ($options.onTimePickerElementMouseDown($event, 1, -1))),
2676
- onMouseup: _cache[32] || (_cache[32] = $event => ($options.onTimePickerElementMouseUp($event))),
2703
+ onMousedown: _cache[37] || (_cache[37] = $event => ($options.onTimePickerElementMouseDown($event, 1, -1))),
2704
+ onMouseup: _cache[38] || (_cache[38] = $event => ($options.onTimePickerElementMouseUp($event))),
2677
2705
  onKeydown: [
2678
- _cache[33] || (_cache[33] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2679
- _cache[35] || (_cache[35] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["enter"])),
2680
- _cache[36] || (_cache[36] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["space"]))
2706
+ _cache[39] || (_cache[39] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2707
+ _cache[41] || (_cache[41] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["enter"])),
2708
+ _cache[42] || (_cache[42] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["space"]))
2681
2709
  ],
2682
2710
  disabled: _ctx.$attrs.disabled,
2683
- onMouseleave: _cache[34] || (_cache[34] = $event => ($options.onTimePickerElementMouseLeave())),
2711
+ onMouseleave: _cache[40] || (_cache[40] = $event => ($options.onTimePickerElementMouseLeave())),
2684
2712
  onKeyup: [
2685
- _cache[37] || (_cache[37] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2686
- _cache[38] || (_cache[38] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2713
+ _cache[43] || (_cache[43] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2714
+ _cache[44] || (_cache[44] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2687
2715
  ],
2688
2716
  type: "button"
2689
2717
  }, [
@@ -2701,18 +2729,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2701
2729
  ? (openBlock(), createBlock("div", _hoisted_24, [
2702
2730
  withDirectives(createVNode("button", {
2703
2731
  class: "p-link",
2704
- onMousedown: _cache[39] || (_cache[39] = $event => ($options.onTimePickerElementMouseDown($event, 2, 1))),
2705
- onMouseup: _cache[40] || (_cache[40] = $event => ($options.onTimePickerElementMouseUp($event))),
2732
+ onMousedown: _cache[45] || (_cache[45] = $event => ($options.onTimePickerElementMouseDown($event, 2, 1))),
2733
+ onMouseup: _cache[46] || (_cache[46] = $event => ($options.onTimePickerElementMouseUp($event))),
2706
2734
  onKeydown: [
2707
- _cache[41] || (_cache[41] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2708
- _cache[43] || (_cache[43] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["enter"])),
2709
- _cache[44] || (_cache[44] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["space"]))
2735
+ _cache[47] || (_cache[47] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2736
+ _cache[49] || (_cache[49] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["enter"])),
2737
+ _cache[50] || (_cache[50] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["space"]))
2710
2738
  ],
2711
2739
  disabled: _ctx.$attrs.disabled,
2712
- onMouseleave: _cache[42] || (_cache[42] = $event => ($options.onTimePickerElementMouseLeave())),
2740
+ onMouseleave: _cache[48] || (_cache[48] = $event => ($options.onTimePickerElementMouseLeave())),
2713
2741
  onKeyup: [
2714
- _cache[45] || (_cache[45] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2715
- _cache[46] || (_cache[46] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2742
+ _cache[51] || (_cache[51] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2743
+ _cache[52] || (_cache[52] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2716
2744
  ],
2717
2745
  type: "button"
2718
2746
  }, [
@@ -2723,18 +2751,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2723
2751
  createVNode("span", null, toDisplayString($options.formattedCurrentSecond), 1),
2724
2752
  withDirectives(createVNode("button", {
2725
2753
  class: "p-link",
2726
- onMousedown: _cache[47] || (_cache[47] = $event => ($options.onTimePickerElementMouseDown($event, 2, -1))),
2727
- onMouseup: _cache[48] || (_cache[48] = $event => ($options.onTimePickerElementMouseUp($event))),
2754
+ onMousedown: _cache[53] || (_cache[53] = $event => ($options.onTimePickerElementMouseDown($event, 2, -1))),
2755
+ onMouseup: _cache[54] || (_cache[54] = $event => ($options.onTimePickerElementMouseUp($event))),
2728
2756
  onKeydown: [
2729
- _cache[49] || (_cache[49] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2730
- _cache[51] || (_cache[51] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["enter"])),
2731
- _cache[52] || (_cache[52] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["space"]))
2757
+ _cache[55] || (_cache[55] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
2758
+ _cache[57] || (_cache[57] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["enter"])),
2759
+ _cache[58] || (_cache[58] = withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["space"]))
2732
2760
  ],
2733
2761
  disabled: _ctx.$attrs.disabled,
2734
- onMouseleave: _cache[50] || (_cache[50] = $event => ($options.onTimePickerElementMouseLeave())),
2762
+ onMouseleave: _cache[56] || (_cache[56] = $event => ($options.onTimePickerElementMouseLeave())),
2735
2763
  onKeyup: [
2736
- _cache[53] || (_cache[53] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2737
- _cache[54] || (_cache[54] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2764
+ _cache[59] || (_cache[59] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
2765
+ _cache[60] || (_cache[60] = withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
2738
2766
  ],
2739
2767
  type: "button"
2740
2768
  }, [
@@ -2753,7 +2781,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2753
2781
  ? (openBlock(), createBlock("div", _hoisted_28, [
2754
2782
  withDirectives(createVNode("button", {
2755
2783
  class: "p-link",
2756
- onClick: _cache[55] || (_cache[55] = $event => ($options.toggleAMPM($event))),
2784
+ onClick: _cache[61] || (_cache[61] = $event => ($options.toggleAMPM($event))),
2757
2785
  type: "button",
2758
2786
  disabled: _ctx.$attrs.disabled
2759
2787
  }, [
@@ -2764,7 +2792,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2764
2792
  createVNode("span", null, toDisplayString($data.pm ? 'PM' : 'AM'), 1),
2765
2793
  withDirectives(createVNode("button", {
2766
2794
  class: "p-link",
2767
- onClick: _cache[56] || (_cache[56] = $event => ($options.toggleAMPM($event))),
2795
+ onClick: _cache[62] || (_cache[62] = $event => ($options.toggleAMPM($event))),
2768
2796
  type: "button",
2769
2797
  disabled: _ctx.$attrs.disabled
2770
2798
  }, [
@@ -2781,14 +2809,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2781
2809
  createVNode(_component_CalendarButton, {
2782
2810
  type: "button",
2783
2811
  label: $options.todayLabel,
2784
- onClick: _cache[57] || (_cache[57] = $event => ($options.onTodayButtonClick($event))),
2812
+ onClick: _cache[63] || (_cache[63] = $event => ($options.onTodayButtonClick($event))),
2785
2813
  class: "p-button-text",
2786
2814
  onKeydown: $options.onContainerButtonKeydown
2787
2815
  }, null, 8, ["label", "onKeydown"]),
2788
2816
  createVNode(_component_CalendarButton, {
2789
2817
  type: "button",
2790
2818
  label: $options.clearLabel,
2791
- onClick: _cache[58] || (_cache[58] = $event => ($options.onClearButtonClick($event))),
2819
+ onClick: _cache[64] || (_cache[64] = $event => ($options.onClearButtonClick($event))),
2792
2820
  class: "p-button-text",
2793
2821
  onKeydown: $options.onContainerButtonKeydown
2794
2822
  }, null, 8, ["label", "onKeydown"])