@progress/kendo-vue-dateinputs 7.0.1-develop.2 → 7.0.1-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.
@@ -6,36 +6,36 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { defineComponent as ie, createVNode as n, h as b, ref as ne, inject as ae, 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
- import { cloneDate as u } from "@progress/kendo-date-math";
9
+ import { FloatingLabel as ue } from "@progress/kendo-vue-labels";
10
+ import { Button as se } from "@progress/kendo-vue-buttons";
11
+ import { Popup as le } from "@progress/kendo-vue-popup";
12
+ import { cloneDate as s } from "@progress/kendo-date-math";
13
13
  import { Keys as a, canUseDOM as re, getDefaultSlots as de, templateRendering as c, getListeners as m, getTemplate as T, classNames as _, kendoThemeMaps as k, guid as V, validatePackage as pe } from "@progress/kendo-vue-common";
14
14
  import { DateInput as he } from "../dateinput/DateInput.mjs";
15
15
  import { packageMetadata as ce } from "../package-metadata.mjs";
16
16
  import { isInDateRange as me, MAX_TIME as B, MAX_DATE as fe, MIN_DATE as ge } from "../utils.mjs";
17
- import { toggleDateTimeSelector as s, messages as C } from "../messages/main.mjs";
17
+ import { toggleDateTimeSelector as l, messages as C } from "../messages/main.mjs";
18
18
  import { provideLocalizationService as F } from "@progress/kendo-vue-intl";
19
19
  import { DateTimeSelector as Se } from "./DateTimeSelector.mjs";
20
- import { isInTimeRange as we } from "../timepicker/utils.mjs";
20
+ import { isInTimeRange as ve } from "../timepicker/utils.mjs";
21
21
  import { MIN_TIME as M } from "../defaults.mjs";
22
- import { defaultFormatPlaceholder as Ie } from "../dateinput/utils.mjs";
23
- import { calendarIcon as ve } from "@progress/kendo-svg-icons";
22
+ import { defaultFormatPlaceholder as we } from "../dateinput/utils.mjs";
23
+ import { calendarIcon as Ie } from "@progress/kendo-svg-icons";
24
24
  function f(e) {
25
25
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !oe(e);
26
26
  }
27
27
  const Pe = /* @__PURE__ */ ie({
28
28
  name: "KendoDateTimePicker",
29
29
  emits: {
30
- changemodel: null,
31
- "update:modelValue": null,
32
- iconclick: null,
33
- change: null,
34
- focus: null,
35
- blur: null,
36
- keydown: null,
37
- open: null,
38
- close: null
30
+ changemodel: (e) => !0,
31
+ "update:modelValue": (e) => !0,
32
+ iconclick: (e) => !0,
33
+ change: (e) => !0,
34
+ focus: (e) => !0,
35
+ blur: (e) => !0,
36
+ keydown: (e) => !0,
37
+ open: (e) => !0,
38
+ close: (e) => !0
39
39
  },
40
40
  props: {
41
41
  modelValue: {
@@ -79,7 +79,7 @@ const Pe = /* @__PURE__ */ ie({
79
79
  formatPlaceholder: {
80
80
  type: [String, Object],
81
81
  default: function() {
82
- return Ie;
82
+ return we;
83
83
  }
84
84
  },
85
85
  rounded: {
@@ -121,13 +121,13 @@ const Pe = /* @__PURE__ */ ie({
121
121
  maxTime: {
122
122
  type: Date,
123
123
  default: function() {
124
- return u(B);
124
+ return s(B);
125
125
  }
126
126
  },
127
127
  minTime: {
128
128
  type: Date,
129
129
  default: function() {
130
- return u(M);
130
+ return s(M);
131
131
  }
132
132
  },
133
133
  name: String,
@@ -209,7 +209,7 @@ const Pe = /* @__PURE__ */ ie({
209
209
  computed: {
210
210
  computedValue() {
211
211
  const e = this.valueDuringOnChange !== void 0 ? this.valueDuringOnChange : this.$props.value !== void 0 ? this.$props.value : this.$props.modelValue !== void 0 ? this.$props.modelValue : this.$data.currentValue;
212
- return e !== null ? u(e) : null;
212
+ return e !== null ? s(e) : null;
213
213
  },
214
214
  computedShow() {
215
215
  return this.showDuringOnChange !== void 0 ? this.showDuringOnChange : this.$props.show !== void 0 ? this.$props.show : this.currentShow;
@@ -255,15 +255,15 @@ const Pe = /* @__PURE__ */ ie({
255
255
  max: R,
256
256
  weekNumber: E,
257
257
  focusedDate: A,
258
- width: w,
258
+ width: v,
259
259
  name: j,
260
- steps: I,
260
+ steps: w,
261
261
  placeholder: P,
262
262
  validationMessage: z,
263
263
  required: L,
264
264
  validityStyles: N,
265
265
  cancelButton: K,
266
- minTime: v,
266
+ minTime: I,
267
267
  maxTime: D,
268
268
  ariaLabelledBy: De,
269
269
  ariaDescribedBy: ye,
@@ -286,7 +286,7 @@ const Pe = /* @__PURE__ */ ie({
286
286
  id: g,
287
287
  max: R,
288
288
  min: x,
289
- minTime: v,
289
+ minTime: I,
290
290
  maxTime: D,
291
291
  name: j,
292
292
  size: null,
@@ -294,7 +294,7 @@ const Pe = /* @__PURE__ */ ie({
294
294
  fillMode: null,
295
295
  onChange: this.handleValueChange,
296
296
  required: L,
297
- steps: I,
297
+ steps: w,
298
298
  tabIndex: this.computedShow ? -1 : i,
299
299
  title: r,
300
300
  valid: this.validity().valid,
@@ -322,16 +322,16 @@ const Pe = /* @__PURE__ */ ie({
322
322
  weekNumber: E,
323
323
  min: this.$props.min,
324
324
  max: this.$props.max,
325
- minTime: v,
325
+ minTime: I,
326
326
  maxTime: D,
327
327
  focusedDate: A,
328
328
  format: S,
329
329
  calendar: W,
330
- steps: I,
330
+ steps: w,
331
331
  onFocus: this.timeSelectorFocus,
332
332
  onBlur: this.timeSelectorBlur,
333
333
  onKeydown: this.handleKeyDown
334
- }, null), Y = _("k-datetime-container k-reset", U), Z = this.$props.popup ? c.call(this, this.$props.popup, m.call(this)) : void 0, ee = n(se, {
334
+ }, null), Y = _("k-datetime-container k-reset", U), Z = this.$props.popup ? c.call(this, this.$props.popup, m.call(this)) : void 0, ee = n(le, {
335
335
  show: this.computedShow,
336
336
  anchor: this._anchor,
337
337
  popupClass: Y,
@@ -353,7 +353,7 @@ const Pe = /* @__PURE__ */ ie({
353
353
  template: Z,
354
354
  defaultRendering: ee,
355
355
  defaultSlots: o
356
- }), l = n("div", {
356
+ }), u = n("div", {
357
357
  class: _("k-input", "k-datetimepicker", {
358
358
  [`k-input-${k.sizeMap[d] || d}`]: d,
359
359
  [`k-input-${y}`]: y,
@@ -367,24 +367,24 @@ const Pe = /* @__PURE__ */ ie({
367
367
  },
368
368
  onKeydown: this.handleKeyDown,
369
369
  style: {
370
- width: w
370
+ width: v
371
371
  },
372
372
  onFocusin: this.handleFocus,
373
373
  onFocusout: this.handleBlur
374
- }, [Q, n(ue, {
374
+ }, [Q, n(se, {
375
375
  type: "button",
376
376
  tabIndex: -1,
377
377
  icon: "calendar",
378
- svgIcon: ve,
378
+ svgIcon: Ie,
379
379
  onMousedown: this.handleIconMouseDown,
380
380
  onClick: this.handleDateIconClick,
381
- title: F(this).toLanguageString(s, C[s]),
381
+ title: F(this).toLanguageString(l, C[l]),
382
382
  rounded: null,
383
383
  class: "k-input-button",
384
384
  "aria-controls": this._popupId,
385
- "aria-label": F(this).toLanguageString(s, C[s])
385
+ "aria-label": F(this).toLanguageString(l, C[l])
386
386
  }, null), te]);
387
- return this.$props.label ? n(le, {
387
+ return this.$props.label ? n(ue, {
388
388
  label: this.$props.label,
389
389
  editorId: g,
390
390
  editorValid: $,
@@ -392,15 +392,15 @@ const Pe = /* @__PURE__ */ ie({
392
392
  editorPlaceholder: this.$props.placeholder,
393
393
  editorDisabled: this.$props.disabled,
394
394
  style: {
395
- width: w
395
+ width: v
396
396
  }
397
- }, f(l) ? l : {
398
- default: () => [l]
399
- }) : l;
397
+ }, f(u) ? u : {
398
+ default: () => [u]
399
+ }) : u;
400
400
  },
401
401
  methods: {
402
402
  validity() {
403
- const e = me(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;
403
+ const e = me(this.computedValue, this.$props.min, this.$props.max) && ve(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;
404
404
  return {
405
405
  customError: t,
406
406
  rangeOverflow: this.computedValue && this.$props.max.getTime() < this.computedValue.getTime() || !1,
@@ -425,7 +425,7 @@ const Pe = /* @__PURE__ */ ie({
425
425
  this.setShow(!1);
426
426
  },
427
427
  handleValueChange(e) {
428
- this.currentValue = u(e.value || void 0), this.valueDuringOnChange = e.value, this.showDuringOnChange = !1, this.shouldFocusDateInput = !0, this.$emit("changemodel", this.computedValue), this.$emit("update:modelValue", this.computedValue), this.$emit("change", {
428
+ this.currentValue = s(e.value || void 0), this.valueDuringOnChange = e.value, this.showDuringOnChange = !1, this.shouldFocusDateInput = !0, this.$emit("changemodel", this.computedValue), this.$emit("update:modelValue", this.computedValue), this.$emit("change", {
429
429
  event: e.event,
430
430
  value: this.computedValue,
431
431
  show: this.computedShow,
@@ -438,13 +438,19 @@ const Pe = /* @__PURE__ */ ie({
438
438
  }), this.valueDuringOnChange = void 0, this.showDuringOnChange = void 0, this.setShow(!1);
439
439
  },
440
440
  handleFocus(e) {
441
- this.isFocused = !0, this.$emit("focus", e);
441
+ this.isFocused = !0, this.$emit("focus", {
442
+ event: e
443
+ });
442
444
  },
443
445
  handleBlur(e) {
444
- this.createBlurTimeout(), this.$emit("blur", e);
446
+ this.createBlurTimeout(), this.$emit("blur", {
447
+ event: e
448
+ });
445
449
  },
446
450
  timeSelectorBlur(e) {
447
- this.$emit("blur", e), clearTimeout(this._blurTimeout), this.createBlurTimeout();
451
+ this.$emit("blur", {
452
+ event: e
453
+ }), clearTimeout(this._blurTimeout), this.createBlurTimeout();
448
454
  },
449
455
  timeSelectorFocus() {
450
456
  clearTimeout(this._blurTimeout);