@progress/kendo-vue-dateinputs 6.4.1-develop.2 → 6.4.2-develop.3

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.
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-dateinputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1748961820,version:"6.4.1-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-dateinputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1750421722,version:"6.4.2-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1748961820,
14
- version: "6.4.1-develop.2",
13
+ publishDate: 1750421722,
14
+ version: "6.4.2-develop.3",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-dateinputs",
3
- "version": "6.4.1-develop.2",
3
+ "version": "6.4.2-develop.3",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -20,12 +20,12 @@
20
20
  "peerDependencies": {
21
21
  "@progress/kendo-date-math": "^1.4.0",
22
22
  "@progress/kendo-licensing": "^1.4.0",
23
- "@progress/kendo-vue-buttons": "6.4.1-develop.2",
24
- "@progress/kendo-vue-common": "6.4.1-develop.2",
25
- "@progress/kendo-vue-intl": "6.4.1-develop.2",
26
- "@progress/kendo-vue-labels": "6.4.1-develop.2",
27
- "@progress/kendo-vue-layout": "6.4.1-develop.2",
28
- "@progress/kendo-vue-popup": "6.4.1-develop.2",
23
+ "@progress/kendo-vue-buttons": "6.4.2-develop.3",
24
+ "@progress/kendo-vue-common": "6.4.2-develop.3",
25
+ "@progress/kendo-vue-intl": "6.4.2-develop.3",
26
+ "@progress/kendo-vue-labels": "6.4.2-develop.3",
27
+ "@progress/kendo-vue-layout": "6.4.2-develop.3",
28
+ "@progress/kendo-vue-popup": "6.4.2-develop.3",
29
29
  "@progress/kendo-svg-icons": "^4.0.0",
30
30
  "vue": "^3.0.2"
31
31
  },
@@ -46,7 +46,7 @@
46
46
  "package": {
47
47
  "productName": "Kendo UI for Vue",
48
48
  "productCode": "KENDOUIVUE",
49
- "publishDate": 1748961820,
49
+ "publishDate": 1750421722,
50
50
  "licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
51
51
  }
52
52
  },
@@ -5,9 +5,9 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as d, inject as m, createVNode as a, isVNode as f } from "vue";
8
+ import { defineComponent as d, createVNode as a, inject as m, isVNode as f } from "vue";
9
9
  import { cloneDate as c } from "@progress/kendo-date-math";
10
- import { Keys as n, canUseDOM as v, noop as g } from "@progress/kendo-vue-common";
10
+ import { Keys as n, noop as v, canUseDOM as g } from "@progress/kendo-vue-common";
11
11
  import { provideIntlService as $ } from "@progress/kendo-vue-intl";
12
12
  import { Virtualization as x } from "../virtualization/Virtualization.mjs";
13
13
  import { TIME_PART as l } from "./models/TimePart.mjs";
@@ -16,7 +16,7 @@ import { DOMService as I } from "./services/DOMService.mjs";
16
16
  import { HoursService as T } from "./services/HoursService.mjs";
17
17
  import { MinutesService as b } from "./services/MinutesService.mjs";
18
18
  import { SecondsService as y } from "./services/SecondsService.mjs";
19
- import { MAX_TIME as O, MIDNIGHT_DATE as H } from "../utils.mjs";
19
+ import { MIDNIGHT_DATE as O, MAX_TIME as H } from "../utils.mjs";
20
20
  function k(t) {
21
21
  return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !f(t);
22
22
  }
@@ -46,13 +46,13 @@ const D = 2, u = 0.05, M = 0, z = {
46
46
  max: {
47
47
  type: Date,
48
48
  default: function() {
49
- return O;
49
+ return H;
50
50
  }
51
51
  },
52
52
  min: {
53
53
  type: Date,
54
54
  default: function() {
55
- return H;
55
+ return O;
56
56
  }
57
57
  },
58
58
  part: Object,
@@ -212,7 +212,7 @@ const D = 2, u = 0.05, M = 0, z = {
212
212
  this.$emit("blur", t);
213
213
  },
214
214
  handleMouseOver() {
215
- this.$el && v && document.activeElement !== this.$el && this.$el.focus({
215
+ this.$el && g && document.activeElement !== this.$el && this.$el.focus({
216
216
  preventScroll: !0
217
217
  });
218
218
  },
@@ -221,7 +221,7 @@ const D = 2, u = 0.05, M = 0, z = {
221
221
  keyCode: e
222
222
  } = t;
223
223
  (e === n.down || e === n.up || e === n.end || e === n.home) && t.preventDefault();
224
- const s = (z[t.keyCode] || g)(this.service.data(this.$props.value), this.service.selectedIndex(this.$props.value));
224
+ const s = (z[t.keyCode] || v)(this.service.data(this.$props.value), this.service.selectedIndex(this.$props.value));
225
225
  s && this.handleChange(s);
226
226
  },
227
227
  handleChange(t) {
@@ -5,16 +5,16 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as w, inject as m, createVNode as s, isVNode as B } from "vue";
8
+ import { defineComponent as w, createVNode as s, inject as m, isVNode as B } from "vue";
9
9
  import { Button as b } from "@progress/kendo-vue-buttons";
10
10
  import { cloneDate as S } from "@progress/kendo-date-math";
11
- import { classNames as d, canUseDOM as I, Keys as f } from "@progress/kendo-vue-common";
12
- import { provideIntlService as M, provideLocalizationService as T } from "@progress/kendo-vue-intl";
11
+ import { Keys as d, canUseDOM as I, classNames as f } from "@progress/kendo-vue-common";
12
+ import { provideLocalizationService as M, provideIntlService as T } from "@progress/kendo-vue-intl";
13
13
  import { selectNow as g, messages as v, now as y } from "../messages/main.mjs";
14
14
  import { TimeList as R } from "./TimeList.mjs";
15
- import { MAX_TIME as F, MIN_TIME as N, MIDNIGHT_DATE as x } from "../utils.mjs";
15
+ import { MIDNIGHT_DATE as F, MIN_TIME as N, MAX_TIME as x } from "../utils.mjs";
16
16
  import { TIME_PART as a } from "./models/TimePart.mjs";
17
- import { snapTime as L, generateSnappers as k, timeInRange as D, isInTimeRange as _, getNow as C } from "./utils.mjs";
17
+ import { isInTimeRange as D, getNow as _, snapTime as L, generateSnappers as k, timeInRange as C } from "./utils.mjs";
18
18
  function j(t) {
19
19
  return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !B(t);
20
20
  }
@@ -42,7 +42,7 @@ const X = /* @__PURE__ */ w({
42
42
  max: {
43
43
  type: Date,
44
44
  default: function() {
45
- return F;
45
+ return x;
46
46
  }
47
47
  },
48
48
  min: {
@@ -104,10 +104,10 @@ const X = /* @__PURE__ */ w({
104
104
  return this._element;
105
105
  },
106
106
  computedValue() {
107
- return D(this.snapTime(S(this.$props.value || x)), this.computedMin, this.computedMax);
107
+ return C(this.snapTime(S(this.$props.value || F)), this.computedMin, this.computedMax);
108
108
  },
109
109
  intl() {
110
- return M(this);
110
+ return T(this);
111
111
  },
112
112
  computedMin() {
113
113
  return this.snapTime(this.$props.min);
@@ -136,9 +136,9 @@ const X = /* @__PURE__ */ w({
136
136
  disabled: i
137
137
  } = this.$props;
138
138
  this.snapTime = L(k(this.$props.steps, this.computedMin)), this.dateFormatParts = this.intl.splitDateFormat(e).filter(this.timeFormatFilter);
139
- const $ = d({
139
+ const $ = f({
140
140
  "k-disabled": i
141
- }, "k-time-part"), h = T(this), p = h.toLanguageString(g, v[g]);
141
+ }, "k-time-part"), h = M(this), p = h.toLanguageString(g, v[g]);
142
142
  return s("div", {
143
143
  class: $
144
144
  }, [s("div", {
@@ -164,7 +164,7 @@ const X = /* @__PURE__ */ w({
164
164
  }, null), this.dateFormatParts.map(function(o, r) {
165
165
  return o.type !== "literal" ? s("div", {
166
166
  key: r,
167
- class: d("k-time-list-wrapper", {
167
+ class: f("k-time-list-wrapper", {
168
168
  "k-focus": r === this.activeListIndex
169
169
  }),
170
170
  role: "presentation",
@@ -228,7 +228,7 @@ const X = /* @__PURE__ */ w({
228
228
  }];
229
229
  },
230
230
  showNowButton() {
231
- return !this.hasSteps() && this.$props.nowButton && _(C(), this.computedMin, this.computedMax);
231
+ return !this.hasSteps() && this.$props.nowButton && D(_(), this.computedMin, this.computedMax);
232
232
  },
233
233
  hasSteps() {
234
234
  const t = Object.keys(this.$props.steps);
@@ -239,10 +239,10 @@ const X = /* @__PURE__ */ w({
239
239
  keyCode: e
240
240
  } = t;
241
241
  switch (e) {
242
- case f.left:
242
+ case d.left:
243
243
  t.preventDefault(), this.focusList(c.Left);
244
244
  return;
245
- case f.right:
245
+ case d.right:
246
246
  t.preventDefault(), this.focusList(c.Right);
247
247
  return;
248
248
  default:
@@ -5,18 +5,18 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as Z, ref as ee, inject as te, createVNode as n, h as y, isVNode as ie } from "vue";
8
+ import { defineComponent as Z, createVNode as n, h as y, ref as ee, inject as te, isVNode as ie } from "vue";
9
9
  import { FloatingLabel as ne } from "@progress/kendo-vue-labels";
10
10
  import { Popup as oe } from "@progress/kendo-vue-popup";
11
11
  import { cloneDate as b } from "@progress/kendo-date-math";
12
- import { guid as _, getDefaultSlots as le, classNames as f, templateRendering as $, getListeners as D, getTemplate as k, kendoThemeMaps as V, canUseDOM as se, Keys as o } from "@progress/kendo-vue-common";
12
+ import { Keys as o, canUseDOM as le, getDefaultSlots as se, classNames as f, templateRendering as _, getListeners as $, getTemplate as D, kendoThemeMaps as k, guid as V } from "@progress/kendo-vue-common";
13
13
  import { provideLocalizationService as ae } from "@progress/kendo-vue-intl";
14
14
  import { Button as ue } from "@progress/kendo-vue-buttons";
15
15
  import { toggleClock as T, messages as B, toggleTimeSelector as C } from "../messages/main.mjs";
16
16
  import { DateInput as re } from "../dateinput/DateInput.mjs";
17
17
  import { TimeSelector as de } from "./TimeSelector.mjs";
18
- import { MIN_TIME as he, MAX_TIME as pe, setTime as F, MIDNIGHT_DATE as ce } from "../utils.mjs";
19
- import { isInRange as me, isBiggerThanMax as fe, isSmallerThanMin as ge } from "./utils.mjs";
18
+ import { setTime as F, MAX_TIME as he, MIN_TIME as pe, MIDNIGHT_DATE as ce } from "../utils.mjs";
19
+ import { isInRange as me, isSmallerThanMin as fe, isBiggerThanMax as ge } from "./utils.mjs";
20
20
  import { defaultFormatPlaceholder as Se } from "../dateinput/utils.mjs";
21
21
  import { clockIcon as we } from "@progress/kendo-svg-icons";
22
22
  function g(e) {
@@ -114,13 +114,13 @@ const ze = /* @__PURE__ */ Z({
114
114
  min: {
115
115
  type: Date,
116
116
  default: function() {
117
- return he;
117
+ return pe;
118
118
  }
119
119
  },
120
120
  max: {
121
121
  type: Date,
122
122
  default: function() {
123
- return pe;
123
+ return he;
124
124
  }
125
125
  },
126
126
  name: String,
@@ -179,7 +179,7 @@ const ze = /* @__PURE__ */ Z({
179
179
  inputAttributes: Object
180
180
  },
181
181
  created() {
182
- this._anchor = _(), this._popupId = "popup" + _(), this._element = null, this._wrapper = null, this._dateInput = null, this._timeSelector = null, this.shouldFocusDateInput = !1, this.currentValue = this.$props.defaultValue, this.currentShow = this.$props.defaultShow;
182
+ this._anchor = V(), this._popupId = "popup" + V(), this._element = null, this._wrapper = null, this._dateInput = null, this._timeSelector = null, this.shouldFocusDateInput = !1, this.currentValue = this.$props.defaultValue, this.currentShow = this.$props.defaultShow;
183
183
  },
184
184
  inject: {
185
185
  kendoLocalizationService: {
@@ -231,7 +231,7 @@ const ze = /* @__PURE__ */ Z({
231
231
  };
232
232
  },
233
233
  render() {
234
- const e = le(this), {
234
+ const e = se(this), {
235
235
  disabled: t,
236
236
  tabIndex: i,
237
237
  title: r,
@@ -264,7 +264,7 @@ const ze = /* @__PURE__ */ Z({
264
264
  "k-disabled": t,
265
265
  "k-focus": this.isFocused
266
266
  });
267
- const q = f("k-group k-reset", E), v = ae(this), U = v.toLanguageString(T, B[T]), H = v.toLanguageString(C, B[C]), G = this.$props.dateInput ? $.call(this, this.$props.dateInput, D.call(this)) : void 0, X = n(re, {
267
+ const q = f("k-group k-reset", E), v = ae(this), U = v.toLanguageString(T, B[T]), H = v.toLanguageString(C, B[C]), G = this.$props.dateInput ? _.call(this, this.$props.dateInput, $.call(this)) : void 0, X = n(re, {
268
268
  ref: (m) => {
269
269
  this.dateInputRef = m;
270
270
  },
@@ -311,14 +311,14 @@ const ze = /* @__PURE__ */ Z({
311
311
  onFocus: this.timeFocus,
312
312
  onBlur: this.timeBlur,
313
313
  onKeydown: this.handleKeyDown
314
- }, null), J = k.call(this, {
314
+ }, null), J = D.call(this, {
315
315
  h: y,
316
316
  template: G,
317
317
  defaultRendering: X,
318
318
  additionalListeners: {
319
319
  change: this.handleInputValueChange
320
320
  }
321
- }), Q = this.$props.popup ? $.call(this, this.$props.popup, D.call(this)) : void 0, W = n(oe, {
321
+ }), Q = this.$props.popup ? _.call(this, this.$props.popup, $.call(this)) : void 0, W = n(oe, {
322
322
  show: this.computedShow,
323
323
  anchor: this._anchor,
324
324
  class: q,
@@ -335,16 +335,16 @@ const ze = /* @__PURE__ */ Z({
335
335
  animate: N
336
336
  }, g(a) ? a : {
337
337
  default: () => [a]
338
- }), Y = k.call(this, {
338
+ }), Y = D.call(this, {
339
339
  h: y,
340
340
  template: Q,
341
341
  defaultRendering: W,
342
342
  defaultSlots: a
343
343
  }), u = n("div", {
344
344
  class: f("k-input", "k-timepicker", {
345
- [`k-input-${V.sizeMap[h] || h}`]: h,
345
+ [`k-input-${k.sizeMap[h] || h}`]: h,
346
346
  [`k-input-${I}`]: I,
347
- [`k-rounded-${V.roundedMap[p] || p}`]: p,
347
+ [`k-rounded-${k.roundedMap[p] || p}`]: p,
348
348
  "k-invalid": !c,
349
349
  "k-required": this.required,
350
350
  "k-disabled": this.$props.disabled,
@@ -391,8 +391,8 @@ const ze = /* @__PURE__ */ Z({
391
391
  const e = this.computedValue && this.normalizeTime(this.computedValue), t = this.normalizeTime(this.$props.min), i = this.normalizeTime(this.$props.max), r = me(e, t, i), l = this.$props.validationMessage !== void 0, d = (!this.$props.required || this.computedValue !== null) && r, s = this.$props.valid !== void 0 ? this.$props.valid : d;
392
392
  return {
393
393
  customError: l,
394
- rangeOverflow: fe(e, i),
395
- rangeUnderflow: ge(e, t),
394
+ rangeOverflow: ge(e, i),
395
+ rangeUnderflow: fe(e, t),
396
396
  valid: s,
397
397
  valueMissing: this.computedValue === null
398
398
  };
@@ -450,7 +450,7 @@ const ze = /* @__PURE__ */ Z({
450
450
  this._blurTimeout = setTimeout(() => {
451
451
  this.isFocused = !1;
452
452
  const e = document.activeElement && document.activeElement.closest(`#${this._popupId}`);
453
- this._dateInput && se && document.activeElement !== this._dateInput.element() && !e && this.setShow(!1);
453
+ this._dateInput && le && document.activeElement !== this._dateInput.element() && !e && this.setShow(!1);
454
454
  }, 200);
455
455
  },
456
456
  handleValueReject(e) {
@@ -5,14 +5,14 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as y, inject as c, createVNode as a, isVNode as C } from "vue";
8
+ import { defineComponent as y, createVNode as a, inject as c, isVNode as C } from "vue";
9
9
  import { Button as s } from "@progress/kendo-vue-buttons";
10
10
  import { cloneDate as o } from "@progress/kendo-date-math";
11
- import { classNames as D, canUseDOM as V, Keys as $ } from "@progress/kendo-vue-common";
12
- import { provideIntlService as w, provideLocalizationService as O } from "@progress/kendo-vue-intl";
11
+ import { Keys as D, canUseDOM as V, classNames as $ } from "@progress/kendo-vue-common";
12
+ import { provideLocalizationService as w, provideIntlService as O } from "@progress/kendo-vue-intl";
13
13
  import { timePickerCancel as h, messages as d, timePickerSet as m } from "../messages/main.mjs";
14
- import { MAX_TIME as P, MIN_TIME as j, MIDNIGHT_DATE as I } from "../utils.mjs";
15
- import { valueMerger as A, generateGetters as N, getNow as u } from "./utils.mjs";
14
+ import { MIDNIGHT_DATE as P, MIN_TIME as j, MAX_TIME as I } from "../utils.mjs";
15
+ import { getNow as u, valueMerger as A, generateGetters as N } from "./utils.mjs";
16
16
  import { TimePart as F } from "./TimePart.mjs";
17
17
  function p(t) {
18
18
  return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !C(t);
@@ -46,7 +46,7 @@ const G = /* @__PURE__ */ y({
46
46
  max: {
47
47
  type: Date,
48
48
  default: function() {
49
- return P;
49
+ return I;
50
50
  }
51
51
  },
52
52
  min: {
@@ -78,7 +78,7 @@ const G = /* @__PURE__ */ y({
78
78
  onKeydown: Function
79
79
  },
80
80
  created() {
81
- this.dateFormatParts = this.intl.splitDateFormat(this.$props.format), this.mergeValue = A(N(this.dateFormatParts)), this.hasActiveButton = this.hasActiveButton.bind(this), this.currentState = this.$props.value || I, this.currentValue = this.$props.value;
81
+ this.dateFormatParts = this.intl.splitDateFormat(this.$props.format), this.mergeValue = A(N(this.dateFormatParts)), this.hasActiveButton = this.hasActiveButton.bind(this), this.currentState = this.$props.value || P, this.currentValue = this.$props.value;
82
82
  },
83
83
  inject: {
84
84
  kendoIntlService: {
@@ -101,7 +101,7 @@ const G = /* @__PURE__ */ y({
101
101
  return t !== null ? o(t) : null;
102
102
  },
103
103
  intl() {
104
- return w(this);
104
+ return O(this);
105
105
  },
106
106
  current() {
107
107
  return this.currentState !== null ? o(this.currentState) : null;
@@ -129,10 +129,10 @@ const G = /* @__PURE__ */ y({
129
129
  boundRange: B,
130
130
  nowButton: b,
131
131
  steps: k
132
- } = this.$props, l = O(this), n = l.toLanguageString(h, d[h]), i = l.toLanguageString(m, d[m]);
132
+ } = this.$props, l = w(this), n = l.toLanguageString(h, d[h]), i = l.toLanguageString(m, d[m]);
133
133
  return a("div", {
134
134
  tabindex: r ? void 0 : f || 0,
135
- class: D("k-timeselector", {
135
+ class: $("k-timeselector", {
136
136
  "k-disabled": r
137
137
  }),
138
138
  onKeydown: this.handleKeyDown
@@ -194,7 +194,7 @@ const G = /* @__PURE__ */ y({
194
194
  keyCode: e
195
195
  } = t;
196
196
  switch (this.$emit("keydown", t), e) {
197
- case $.enter:
197
+ case D.enter:
198
198
  this.hasActiveButton() || this.handleAccept(t);
199
199
  return;
200
200
  default:
package/utils.mjs CHANGED
@@ -5,7 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { cloneDate as c, getDate as u } from "@progress/kendo-date-math";
8
+ import { getDate as u, cloneDate as c } from "@progress/kendo-date-math";
9
9
  import { EMPTY_SELECTIONRANGE as g } from "./calendar/models/SelectionRange.mjs";
10
10
  const f = (e, t, o) => t === void 0 || o === void 0 || t <= e && e <= o ? e : e < t ? t : o, l = new Date(1980, 0, 1), E = new Date(1900, 0, 1), M = new Date(2099, 11, 31), T = new Date(1980, 0, 1), p = new Date(1980, 0, 1, 23, 59, 59), w = (e, t) => {
11
11
  const o = c(e);