@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.
- package/README.md +1 -1
- package/calendar/components/Calendar.js +1 -1
- package/calendar/components/Calendar.mjs +1 -1
- package/calendar/components/CalendarCell.js +1 -1
- package/calendar/components/CalendarCell.mjs +1 -1
- package/calendar/components/CalendarHeaderTitle.js +1 -1
- package/calendar/components/CalendarHeaderTitle.mjs +1 -1
- package/calendar/components/CalendarWeekCell.js +1 -1
- package/calendar/components/CalendarWeekCell.mjs +1 -1
- package/calendar/components/Header.js +1 -1
- package/calendar/components/Header.mjs +1 -1
- package/calendar/components/View.js +1 -1
- package/calendar/components/View.mjs +1 -1
- package/calendar/components/ViewList.js +1 -1
- package/calendar/components/ViewList.mjs +1 -1
- package/calendar/models/CalendarViewEnum.js +1 -1
- package/calendar/models/CalendarViewEnum.mjs +1 -1
- package/calendar/models/NavigationAction.js +1 -1
- package/calendar/models/NavigationAction.mjs +1 -1
- package/calendar/models/SelectionRange.js +1 -1
- package/calendar/models/SelectionRange.mjs +1 -1
- package/calendar/services/BusViewService.js +1 -1
- package/calendar/services/BusViewService.mjs +1 -1
- package/calendar/services/CenturyViewService.js +1 -1
- package/calendar/services/CenturyViewService.mjs +1 -1
- package/calendar/services/DOMService.js +1 -1
- package/calendar/services/DOMService.mjs +1 -1
- package/calendar/services/DecadeViewService.js +1 -1
- package/calendar/services/DecadeViewService.mjs +1 -1
- package/calendar/services/MonthViewService.js +1 -1
- package/calendar/services/MonthViewService.mjs +1 -1
- package/calendar/services/NavigationService.js +1 -1
- package/calendar/services/NavigationService.mjs +1 -1
- package/calendar/services/WeekNamesService.js +1 -1
- package/calendar/services/WeekNamesService.mjs +1 -1
- package/calendar/services/YearViewService.js +1 -1
- package/calendar/services/YearViewService.mjs +1 -1
- package/calendar/utils/main.js +1 -1
- package/calendar/utils/main.mjs +1 -1
- package/common/PickerWrap.js +1 -1
- package/common/PickerWrap.mjs +1 -1
- package/dateinput/DateInput.js +2 -2
- package/dateinput/DateInput.mjs +83 -81
- package/dateinput/models/kendo-date.js +2 -2
- package/dateinput/models/kendo-date.mjs +30 -27
- package/dateinput/models/mask.js +1 -1
- package/dateinput/models/mask.mjs +1 -1
- package/dateinput/utils.js +1 -1
- package/dateinput/utils.mjs +1 -1
- package/datepicker/DatePicker.js +2 -2
- package/datepicker/DatePicker.mjs +67 -64
- package/datepicker/ToggleButton.js +1 -1
- package/datepicker/ToggleButton.mjs +1 -1
- package/daterangepicker/DateRangePicker.js +2 -2
- package/daterangepicker/DateRangePicker.mjs +30 -27
- package/datetimepicker/DateTimePicker.js +2 -2
- package/datetimepicker/DateTimePicker.mjs +60 -57
- package/datetimepicker/DateTimeSelector.js +1 -1
- package/datetimepicker/DateTimeSelector.mjs +1 -1
- package/defaults.js +1 -1
- package/defaults.mjs +1 -1
- package/dist/cdn/js/kendo-vue-dateinputs.js +2 -2
- package/index.d.mts +108 -76
- package/index.d.ts +108 -76
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/messages/main.js +1 -1
- package/messages/main.mjs +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +7 -7
- package/timepicker/TimeList.js +1 -1
- package/timepicker/TimeList.mjs +1 -1
- package/timepicker/TimePart.js +1 -1
- package/timepicker/TimePart.mjs +1 -1
- package/timepicker/TimePicker.js +2 -2
- package/timepicker/TimePicker.mjs +63 -60
- package/timepicker/TimeSelector.js +1 -1
- package/timepicker/TimeSelector.mjs +1 -1
- package/timepicker/models/TimePart.js +1 -1
- package/timepicker/models/TimePart.mjs +1 -1
- package/timepicker/services/DOMService.js +1 -1
- package/timepicker/services/DOMService.mjs +1 -1
- package/timepicker/services/DayPeriodService.js +1 -1
- package/timepicker/services/DayPeriodService.mjs +1 -1
- package/timepicker/services/HoursService.js +1 -1
- package/timepicker/services/HoursService.mjs +1 -1
- package/timepicker/services/MinutesService.js +1 -1
- package/timepicker/services/MinutesService.mjs +1 -1
- package/timepicker/services/SecondsService.js +1 -1
- package/timepicker/services/SecondsService.mjs +1 -1
- package/timepicker/utils.js +1 -1
- package/timepicker/utils.mjs +1 -1
- package/utils.js +1 -1
- package/utils.mjs +1 -1
- package/virtualization/Virtualization.js +1 -1
- package/virtualization/Virtualization.mjs +1 -1
- package/virtualization/services/RowHeightService.js +1 -1
- package/virtualization/services/RowHeightService.mjs +1 -1
- package/virtualization/services/ScrollerService.js +1 -1
- package/virtualization/services/ScrollerService.mjs +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
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
|
|
9
|
-
import { FloatingLabel as
|
|
10
|
-
import { Button as
|
|
11
|
-
import { Popup as
|
|
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
|
|
14
|
-
import { DateInput as
|
|
15
|
-
import { packageMetadata as
|
|
16
|
-
import { MIN_DATE as
|
|
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
|
|
20
|
-
import { isInTimeRange as
|
|
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
|
|
23
|
-
import { calendarIcon as
|
|
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]" && !
|
|
25
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !oe(e);
|
|
26
26
|
}
|
|
27
|
-
const
|
|
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
|
|
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
|
|
112
|
+
return me;
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
max: {
|
|
116
116
|
type: Date,
|
|
117
117
|
default: function() {
|
|
118
|
-
return
|
|
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,
|
|
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 =
|
|
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 =
|
|
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:
|
|
253
|
-
min:
|
|
253
|
+
formatPlaceholder: O,
|
|
254
|
+
min: x,
|
|
254
255
|
max: R,
|
|
255
256
|
weekNumber: E,
|
|
256
|
-
focusedDate:
|
|
257
|
+
focusedDate: A,
|
|
257
258
|
width: w,
|
|
258
|
-
name:
|
|
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:
|
|
268
|
-
ariaDescribedBy:
|
|
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:
|
|
274
|
-
appendTo:
|
|
275
|
-
animate:
|
|
276
|
-
} = this.$props.popupSettings, $ = !this.$props.validityStyles || this.validity().valid,
|
|
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:
|
|
285
|
+
formatPlaceholder: O,
|
|
284
286
|
id: g,
|
|
285
287
|
max: R,
|
|
286
|
-
min:
|
|
288
|
+
min: x,
|
|
287
289
|
minTime: v,
|
|
288
290
|
maxTime: D,
|
|
289
|
-
name:
|
|
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
|
-
}),
|
|
311
|
+
}), Q = _.call(this, {
|
|
309
312
|
h: b,
|
|
310
|
-
template:
|
|
311
|
-
defaultRendering:
|
|
312
|
-
}),
|
|
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:
|
|
327
|
+
focusedDate: A,
|
|
325
328
|
format: S,
|
|
326
|
-
calendar:
|
|
329
|
+
calendar: W,
|
|
327
330
|
steps: I,
|
|
328
331
|
onFocus: this.timeSelectorFocus,
|
|
329
332
|
onBlur: this.timeSelectorBlur,
|
|
330
333
|
onKeydown: this.handleKeyDown
|
|
331
|
-
}, null),
|
|
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:
|
|
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:
|
|
345
|
-
animate:
|
|
347
|
+
appendTo: X,
|
|
348
|
+
animate: H
|
|
346
349
|
}, f(o) ? o : {
|
|
347
350
|
default: () => [o]
|
|
348
|
-
}),
|
|
351
|
+
}), te = _.call(this, {
|
|
349
352
|
h: b,
|
|
350
|
-
template:
|
|
351
|
-
defaultRendering:
|
|
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
|
-
}, [
|
|
374
|
+
}, [Q, n(ue, {
|
|
372
375
|
type: "button",
|
|
373
376
|
tabIndex: -1,
|
|
374
377
|
icon: "calendar",
|
|
375
|
-
svgIcon:
|
|
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),
|
|
384
|
-
return this.$props.label ? n(
|
|
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 =
|
|
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 &&
|
|
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
|
-
|
|
486
|
+
Pe as DateTimePicker
|
|
484
487
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
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 ©
|
|
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 ©
|
|
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 ©
|
|
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
|
*/
|