@progress/kendo-vue-dateinputs 6.0.2-develop.1 → 6.1.0-develop.2

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 (101) hide show
  1. package/README.md +1 -1
  2. package/calendar/components/Calendar.js +1 -1
  3. package/calendar/components/Calendar.mjs +1 -1
  4. package/calendar/components/CalendarCell.js +1 -1
  5. package/calendar/components/CalendarCell.mjs +1 -1
  6. package/calendar/components/CalendarHeaderTitle.js +1 -1
  7. package/calendar/components/CalendarHeaderTitle.mjs +1 -1
  8. package/calendar/components/CalendarWeekCell.js +1 -1
  9. package/calendar/components/CalendarWeekCell.mjs +1 -1
  10. package/calendar/components/Header.js +1 -1
  11. package/calendar/components/Header.mjs +1 -1
  12. package/calendar/components/View.js +1 -1
  13. package/calendar/components/View.mjs +1 -1
  14. package/calendar/components/ViewList.js +1 -1
  15. package/calendar/components/ViewList.mjs +1 -1
  16. package/calendar/models/CalendarViewEnum.js +1 -1
  17. package/calendar/models/CalendarViewEnum.mjs +1 -1
  18. package/calendar/models/NavigationAction.js +1 -1
  19. package/calendar/models/NavigationAction.mjs +1 -1
  20. package/calendar/models/SelectionRange.js +1 -1
  21. package/calendar/models/SelectionRange.mjs +1 -1
  22. package/calendar/services/BusViewService.js +1 -1
  23. package/calendar/services/BusViewService.mjs +1 -1
  24. package/calendar/services/CenturyViewService.js +1 -1
  25. package/calendar/services/CenturyViewService.mjs +1 -1
  26. package/calendar/services/DOMService.js +1 -1
  27. package/calendar/services/DOMService.mjs +1 -1
  28. package/calendar/services/DecadeViewService.js +1 -1
  29. package/calendar/services/DecadeViewService.mjs +1 -1
  30. package/calendar/services/MonthViewService.js +1 -1
  31. package/calendar/services/MonthViewService.mjs +1 -1
  32. package/calendar/services/NavigationService.js +1 -1
  33. package/calendar/services/NavigationService.mjs +1 -1
  34. package/calendar/services/WeekNamesService.js +1 -1
  35. package/calendar/services/WeekNamesService.mjs +1 -1
  36. package/calendar/services/YearViewService.js +1 -1
  37. package/calendar/services/YearViewService.mjs +1 -1
  38. package/calendar/utils/main.js +1 -1
  39. package/calendar/utils/main.mjs +1 -1
  40. package/common/PickerWrap.js +1 -1
  41. package/common/PickerWrap.mjs +1 -1
  42. package/dateinput/DateInput.js +2 -2
  43. package/dateinput/DateInput.mjs +83 -81
  44. package/dateinput/models/kendo-date.js +2 -2
  45. package/dateinput/models/kendo-date.mjs +30 -27
  46. package/dateinput/models/mask.js +1 -1
  47. package/dateinput/models/mask.mjs +1 -1
  48. package/dateinput/utils.js +1 -1
  49. package/dateinput/utils.mjs +1 -1
  50. package/datepicker/DatePicker.js +2 -2
  51. package/datepicker/DatePicker.mjs +67 -64
  52. package/datepicker/ToggleButton.js +1 -1
  53. package/datepicker/ToggleButton.mjs +1 -1
  54. package/daterangepicker/DateRangePicker.js +2 -2
  55. package/daterangepicker/DateRangePicker.mjs +30 -27
  56. package/datetimepicker/DateTimePicker.js +2 -2
  57. package/datetimepicker/DateTimePicker.mjs +60 -57
  58. package/datetimepicker/DateTimeSelector.js +1 -1
  59. package/datetimepicker/DateTimeSelector.mjs +1 -1
  60. package/defaults.js +1 -1
  61. package/defaults.mjs +1 -1
  62. package/dist/cdn/js/kendo-vue-dateinputs.js +2 -2
  63. package/index.d.mts +108 -76
  64. package/index.d.ts +108 -76
  65. package/index.js +1 -1
  66. package/index.mjs +1 -1
  67. package/messages/main.js +1 -1
  68. package/messages/main.mjs +1 -1
  69. package/package-metadata.js +1 -1
  70. package/package-metadata.mjs +2 -2
  71. package/package.json +7 -7
  72. package/timepicker/TimeList.js +1 -1
  73. package/timepicker/TimeList.mjs +1 -1
  74. package/timepicker/TimePart.js +1 -1
  75. package/timepicker/TimePart.mjs +1 -1
  76. package/timepicker/TimePicker.js +2 -2
  77. package/timepicker/TimePicker.mjs +63 -60
  78. package/timepicker/TimeSelector.js +1 -1
  79. package/timepicker/TimeSelector.mjs +1 -1
  80. package/timepicker/models/TimePart.js +1 -1
  81. package/timepicker/models/TimePart.mjs +1 -1
  82. package/timepicker/services/DOMService.js +1 -1
  83. package/timepicker/services/DOMService.mjs +1 -1
  84. package/timepicker/services/DayPeriodService.js +1 -1
  85. package/timepicker/services/DayPeriodService.mjs +1 -1
  86. package/timepicker/services/HoursService.js +1 -1
  87. package/timepicker/services/HoursService.mjs +1 -1
  88. package/timepicker/services/MinutesService.js +1 -1
  89. package/timepicker/services/MinutesService.mjs +1 -1
  90. package/timepicker/services/SecondsService.js +1 -1
  91. package/timepicker/services/SecondsService.mjs +1 -1
  92. package/timepicker/utils.js +1 -1
  93. package/timepicker/utils.mjs +1 -1
  94. package/utils.js +1 -1
  95. package/utils.mjs +1 -1
  96. package/virtualization/Virtualization.js +1 -1
  97. package/virtualization/Virtualization.mjs +1 -1
  98. package/virtualization/services/RowHeightService.js +1 -1
  99. package/virtualization/services/RowHeightService.mjs +1 -1
  100. package/virtualization/services/ScrollerService.js +1 -1
  101. package/virtualization/services/ScrollerService.mjs +1 -1
@@ -1,30 +1,30 @@
1
1
  /**
2
2
  * @license
3
3
  *-------------------------------------------------------------------------------------------
4
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
4
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as te, ref as ie, inject as ne, createVNode as n, h as b, isVNode as ae } from "vue";
9
- import { FloatingLabel as oe } from "@progress/kendo-vue-labels";
10
- import { Button as le } from "@progress/kendo-vue-buttons";
11
- import { Popup as ue } from "@progress/kendo-vue-popup";
8
+ import { defineComponent as ie, ref as ne, inject as ae, createVNode as n, h as b, isVNode as oe } from "vue";
9
+ import { FloatingLabel as le } from "@progress/kendo-vue-labels";
10
+ import { Button as ue } from "@progress/kendo-vue-buttons";
11
+ import { Popup as se } from "@progress/kendo-vue-popup";
12
12
  import { cloneDate as u } from "@progress/kendo-date-math";
13
- import { guid as T, validatePackage as se, getDefaultSlots as re, templateRendering as c, getListeners as m, getTemplate as _, classNames as k, kendoThemeMaps as V, canUseDOM as de, Keys as a } from "@progress/kendo-vue-common";
14
- import { DateInput as pe } from "../dateinput/DateInput.mjs";
15
- import { packageMetadata as he } from "../package-metadata.mjs";
16
- import { MIN_DATE as ce, MAX_DATE as me, MAX_TIME as B, isInDateRange as fe } from "../utils.mjs";
13
+ import { guid as T, validatePackage as re, getDefaultSlots as de, templateRendering as c, getListeners as m, getTemplate as _, classNames as k, kendoThemeMaps as V, canUseDOM as pe, Keys as a } from "@progress/kendo-vue-common";
14
+ import { DateInput as he } from "../dateinput/DateInput.mjs";
15
+ import { packageMetadata as ce } from "../package-metadata.mjs";
16
+ import { MIN_DATE as me, MAX_DATE as fe, MAX_TIME as B, isInDateRange as ge } from "../utils.mjs";
17
17
  import { toggleDateTimeSelector as s, messages as C } from "../messages/main.mjs";
18
18
  import { provideLocalizationService as F } from "@progress/kendo-vue-intl";
19
- import { DateTimeSelector as ge } from "./DateTimeSelector.mjs";
20
- import { isInTimeRange as Se } from "../timepicker/utils.mjs";
19
+ import { DateTimeSelector as Se } from "./DateTimeSelector.mjs";
20
+ import { isInTimeRange as we } from "../timepicker/utils.mjs";
21
21
  import { MIN_TIME as M } from "../defaults.mjs";
22
- import { defaultFormatPlaceholder as we } from "../dateinput/utils.mjs";
23
- import { calendarIcon as Ie } from "@progress/kendo-svg-icons";
22
+ import { defaultFormatPlaceholder as Ie } from "../dateinput/utils.mjs";
23
+ import { calendarIcon as ve } from "@progress/kendo-svg-icons";
24
24
  function f(e) {
25
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ae(e);
25
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !oe(e);
26
26
  }
27
- const Ae = /* @__PURE__ */ te({
27
+ const Pe = /* @__PURE__ */ ie({
28
28
  name: "KendoDateTimePicker",
29
29
  emits: {
30
30
  changemodel: null,
@@ -79,7 +79,7 @@ const Ae = /* @__PURE__ */ te({
79
79
  formatPlaceholder: {
80
80
  type: [String, Object],
81
81
  default: function() {
82
- return we;
82
+ return Ie;
83
83
  }
84
84
  },
85
85
  rounded: {
@@ -109,13 +109,13 @@ const Ae = /* @__PURE__ */ te({
109
109
  min: {
110
110
  type: Date,
111
111
  default: function() {
112
- return ce;
112
+ return me;
113
113
  }
114
114
  },
115
115
  max: {
116
116
  type: Date,
117
117
  default: function() {
118
- return me;
118
+ return fe;
119
119
  }
120
120
  },
121
121
  maxTime: {
@@ -182,13 +182,14 @@ const Ae = /* @__PURE__ */ te({
182
182
  cancelButton: {
183
183
  type: Boolean,
184
184
  default: !0
185
- }
185
+ },
186
+ inputAttributes: Object
186
187
  },
187
188
  model: {
188
189
  event: "changemodel"
189
190
  },
190
191
  created() {
191
- this._anchor = T(), this._popupId = "popup" + T(), this._wrapper = null, this._dateInput = null, this._dateTimeSelector = null, se(he), this.currentValue = this.$props.defaultValue, this.currentShow = this.$props.defaultShow;
192
+ this._anchor = T(), this._popupId = "popup" + T(), this._wrapper = null, this._dateInput = null, this._dateTimeSelector = null, re(ce), this.currentValue = this.$props.defaultValue, this.currentShow = this.$props.defaultShow;
192
193
  },
193
194
  inject: {
194
195
  kendoLocalizationService: {
@@ -236,26 +237,26 @@ const Ae = /* @__PURE__ */ te({
236
237
  }), this.shouldFocusDateInput = !1;
237
238
  },
238
239
  setup() {
239
- const e = ie(null), t = ne("kendoLocalizationService", {});
240
+ const e = ne(null), t = ae("kendoLocalizationService", {});
240
241
  return {
241
242
  kendoAnchorRef: e,
242
243
  kendoLocalizationService: t
243
244
  };
244
245
  },
245
246
  render() {
246
- const e = re(this), {
247
+ const e = de(this), {
247
248
  disabled: t,
248
249
  tabIndex: i,
249
250
  title: r,
250
251
  id: g,
251
252
  format: S,
252
- formatPlaceholder: x,
253
- min: O,
253
+ formatPlaceholder: O,
254
+ min: x,
254
255
  max: R,
255
256
  weekNumber: E,
256
- focusedDate: j,
257
+ focusedDate: A,
257
258
  width: w,
258
- name: A,
259
+ name: j,
259
260
  steps: I,
260
261
  placeholder: P,
261
262
  validationMessage: z,
@@ -264,29 +265,30 @@ const Ae = /* @__PURE__ */ te({
264
265
  cancelButton: K,
265
266
  minTime: v,
266
267
  maxTime: D,
267
- ariaLabelledBy: ve,
268
- ariaDescribedBy: De,
268
+ ariaLabelledBy: De,
269
+ ariaDescribedBy: ye,
269
270
  size: d,
270
271
  fillMode: y,
271
- rounded: p
272
+ rounded: p,
273
+ inputAttributes: q
272
274
  } = this.$props, {
273
- popupClass: q,
274
- appendTo: U,
275
- animate: X
276
- } = this.$props.popupSettings, $ = !this.$props.validityStyles || this.validity().valid, H = this.$props.dateInput ? c.call(this, this.$props.dateInput, m.call(this)) : void 0, G = n(pe, {
275
+ popupClass: U,
276
+ appendTo: X,
277
+ animate: H
278
+ } = this.$props.popupSettings, $ = !this.$props.validityStyles || this.validity().valid, G = this.$props.dateInput ? c.call(this, this.$props.dateInput, m.call(this)) : void 0, J = n(he, {
277
279
  ref: (h) => {
278
280
  this.dateInputRef = h;
279
281
  },
280
282
  placeholder: P,
281
283
  disabled: t,
282
284
  format: S,
283
- formatPlaceholder: x,
285
+ formatPlaceholder: O,
284
286
  id: g,
285
287
  max: R,
286
- min: O,
288
+ min: x,
287
289
  minTime: v,
288
290
  maxTime: D,
289
- name: A,
291
+ name: j,
290
292
  size: null,
291
293
  rounded: null,
292
294
  fillMode: null,
@@ -302,14 +304,15 @@ const Ae = /* @__PURE__ */ te({
302
304
  ariaHasPopup: "dialog",
303
305
  ariaExpanded: this.computedShow,
304
306
  ariaRole: "combobox",
305
- ariaControls: this._popupId
307
+ ariaControls: this._popupId,
308
+ inputAttributes: q
306
309
  }, f(e) ? e : {
307
310
  default: () => [e]
308
- }), J = _.call(this, {
311
+ }), Q = _.call(this, {
309
312
  h: b,
310
- template: H,
311
- defaultRendering: G
312
- }), Q = this.$props.calendar ? c.call(this, this.$props.calendar, m.call(this)) : void 0, o = n(ge, {
313
+ template: G,
314
+ defaultRendering: J
315
+ }), W = this.$props.calendar ? c.call(this, this.$props.calendar, m.call(this)) : void 0, o = n(Se, {
313
316
  ref: "dateTimeSelector",
314
317
  cancelButton: K,
315
318
  value: this.computedValue,
@@ -321,17 +324,17 @@ const Ae = /* @__PURE__ */ te({
321
324
  max: this.$props.max,
322
325
  minTime: v,
323
326
  maxTime: D,
324
- focusedDate: j,
327
+ focusedDate: A,
325
328
  format: S,
326
- calendar: Q,
329
+ calendar: W,
327
330
  steps: I,
328
331
  onFocus: this.timeSelectorFocus,
329
332
  onBlur: this.timeSelectorBlur,
330
333
  onKeydown: this.handleKeyDown
331
- }, null), W = k("k-datetime-container k-reset", q), Y = this.$props.popup ? c.call(this, this.$props.popup, m.call(this)) : void 0, Z = n(ue, {
334
+ }, null), Y = k("k-datetime-container k-reset", U), Z = this.$props.popup ? c.call(this, this.$props.popup, m.call(this)) : void 0, ee = n(se, {
332
335
  show: this.computedShow,
333
336
  anchor: this._anchor,
334
- popupClass: W,
337
+ popupClass: Y,
335
338
  id: this._popupId,
336
339
  anchorAlign: {
337
340
  horizontal: "left",
@@ -341,14 +344,14 @@ const Ae = /* @__PURE__ */ te({
341
344
  horizontal: "left",
342
345
  vertical: "top"
343
346
  },
344
- appendTo: U,
345
- animate: X
347
+ appendTo: X,
348
+ animate: H
346
349
  }, f(o) ? o : {
347
350
  default: () => [o]
348
- }), ee = _.call(this, {
351
+ }), te = _.call(this, {
349
352
  h: b,
350
- template: Y,
351
- defaultRendering: Z,
353
+ template: Z,
354
+ defaultRendering: ee,
352
355
  defaultSlots: o
353
356
  }), l = n("div", {
354
357
  class: k("k-input", "k-datetimepicker", {
@@ -368,11 +371,11 @@ const Ae = /* @__PURE__ */ te({
368
371
  },
369
372
  onFocusin: this.handleFocus,
370
373
  onFocusout: this.handleBlur
371
- }, [J, n(le, {
374
+ }, [Q, n(ue, {
372
375
  type: "button",
373
376
  tabIndex: -1,
374
377
  icon: "calendar",
375
- svgIcon: Ie,
378
+ svgIcon: ve,
376
379
  onMousedown: this.handleIconMouseDown,
377
380
  onClick: this.handleDateIconClick,
378
381
  title: F(this).toLanguageString(s, C[s]),
@@ -380,8 +383,8 @@ const Ae = /* @__PURE__ */ te({
380
383
  class: "k-input-button",
381
384
  "aria-controls": this._popupId,
382
385
  "aria-label": F(this).toLanguageString(s, C[s])
383
- }, null), ee]);
384
- return this.$props.label ? n(oe, {
386
+ }, null), te]);
387
+ return this.$props.label ? n(le, {
385
388
  label: this.$props.label,
386
389
  editorId: g,
387
390
  editorValid: $,
@@ -397,7 +400,7 @@ const Ae = /* @__PURE__ */ te({
397
400
  },
398
401
  methods: {
399
402
  validity() {
400
- const e = fe(this.computedValue, this.$props.min, this.$props.max) && Se(this.computedValue, this.$props.minTime || M, this.$props.maxTime || B), t = this.$props.validationMessage !== void 0, i = (!this.$props.required || this.computedValue !== null) && e, r = this.$props.valid !== void 0 ? this.$props.valid : i;
403
+ const e = ge(this.computedValue, this.$props.min, this.$props.max) && we(this.computedValue, this.$props.minTime || M, this.$props.maxTime || B), t = this.$props.validationMessage !== void 0, i = (!this.$props.required || this.computedValue !== null) && e, r = this.$props.valid !== void 0 ? this.$props.valid : i;
401
404
  return {
402
405
  customError: t,
403
406
  rangeOverflow: this.computedValue && this.$props.max.getTime() < this.computedValue.getTime() || !1,
@@ -450,7 +453,7 @@ const Ae = /* @__PURE__ */ te({
450
453
  this._blurTimeout = setTimeout(() => {
451
454
  this.isFocused = !1;
452
455
  const e = document.activeElement && document.activeElement.closest(`#${this._popupId}`);
453
- this._dateInput && de && document.activeElement !== this._dateInput.element() && !e && this.setShow(!1);
456
+ this._dateInput && pe && document.activeElement !== this._dateInput.element() && !e && this.setShow(!1);
454
457
  }, 200);
455
458
  },
456
459
  handleDateIconClick(e) {
@@ -480,5 +483,5 @@ const Ae = /* @__PURE__ */ te({
480
483
  }
481
484
  });
482
485
  export {
483
- Ae as DateTimePicker
486
+ Pe as DateTimePicker
484
487
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  *-------------------------------------------------------------------------------------------
4
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
4
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  *-------------------------------------------------------------------------------------------
4
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
4
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
package/defaults.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  *-------------------------------------------------------------------------------------------
4
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
4
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
package/defaults.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  *-------------------------------------------------------------------------------------------
4
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
4
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */