@progress/kendo-vue-dateinputs 2.7.2-dev.202201051440 → 2.8.0-dev.202201111325
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/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
- package/dist/es/additionalTypes.ts +7 -1
- package/dist/es/calendar/components/Calendar.d.ts +2 -3
- package/dist/es/calendar/components/CalendarCell.d.ts +2 -3
- package/dist/es/calendar/components/CalendarCell.js +1 -1
- package/dist/es/calendar/components/CalendarHeaderTitle.d.ts +2 -3
- package/dist/es/calendar/components/CalendarHeaderTitle.js +19 -12
- package/dist/es/calendar/components/CalendarWeekCell.d.ts +2 -3
- package/dist/es/calendar/components/Header.d.ts +2 -3
- package/dist/es/calendar/components/Header.js +36 -37
- package/dist/es/calendar/components/View.d.ts +2 -3
- package/dist/es/calendar/components/ViewList.d.ts +2 -3
- package/dist/es/common/PickerWrap.d.ts +2 -3
- package/dist/es/dateinput/DateInput.d.ts +2 -3
- package/dist/es/dateinput/DateInput.js +62 -49
- package/dist/es/dateinput/models/DateInputSettings.d.ts +39 -0
- package/dist/es/dateinput/utils.js +2 -2
- package/dist/es/datepicker/DatePicker.d.ts +2 -3
- package/dist/es/datepicker/DatePicker.js +66 -80
- package/dist/es/datepicker/ToggleButton.d.ts +3 -24
- package/dist/es/datepicker/ToggleButton.js +2 -67
- package/dist/es/datepicker/interfaces/DatePickerComputed.d.ts +0 -1
- package/dist/es/datepicker/models/DatePickerSettings.d.ts +39 -0
- package/dist/es/daterangepicker/DateRangePicker.d.ts +2 -3
- package/dist/es/daterangepicker/DateRangePicker.js +49 -20
- package/dist/es/daterangepicker/models/DateRangePickerSettings.d.ts +39 -0
- package/dist/es/datetimepicker/DateTimePicker.d.ts +2 -3
- package/dist/es/datetimepicker/DateTimePicker.js +75 -51
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +2 -3
- package/dist/es/datetimepicker/DateTimeSelector.js +21 -14
- package/dist/es/datetimepicker/models/DateTimePickerSettings.d.ts +39 -0
- package/dist/es/main.d.ts +2 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimeList.d.ts +2 -3
- package/dist/es/timepicker/TimePart.d.ts +2 -3
- package/dist/es/timepicker/TimePart.js +13 -6
- package/dist/es/timepicker/TimePicker.d.ts +2 -3
- package/dist/es/timepicker/TimePicker.js +73 -41
- package/dist/es/timepicker/TimeSelector.d.ts +2 -3
- package/dist/es/timepicker/TimeSelector.js +20 -11
- package/dist/es/timepicker/models/TimePickerSettings.d.ts +39 -0
- package/dist/es/virtualization/Virtualization.d.ts +2 -3
- package/dist/npm/additionalTypes.ts +7 -1
- package/dist/npm/calendar/components/Calendar.d.ts +2 -3
- package/dist/npm/calendar/components/CalendarCell.d.ts +2 -3
- package/dist/npm/calendar/components/CalendarCell.js +1 -1
- package/dist/npm/calendar/components/CalendarHeaderTitle.d.ts +2 -3
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +20 -12
- package/dist/npm/calendar/components/CalendarWeekCell.d.ts +2 -3
- package/dist/npm/calendar/components/Header.d.ts +2 -3
- package/dist/npm/calendar/components/Header.js +37 -37
- package/dist/npm/calendar/components/View.d.ts +2 -3
- package/dist/npm/calendar/components/ViewList.d.ts +2 -3
- package/dist/npm/common/PickerWrap.d.ts +2 -3
- package/dist/npm/dateinput/DateInput.d.ts +2 -3
- package/dist/npm/dateinput/DateInput.js +60 -46
- package/dist/npm/dateinput/models/DateInputSettings.d.ts +39 -0
- package/dist/npm/dateinput/utils.js +2 -2
- package/dist/npm/datepicker/DatePicker.d.ts +2 -3
- package/dist/npm/datepicker/DatePicker.js +65 -80
- package/dist/npm/datepicker/ToggleButton.d.ts +3 -24
- package/dist/npm/datepicker/ToggleButton.js +3 -69
- package/dist/npm/datepicker/interfaces/DatePickerComputed.d.ts +0 -1
- package/dist/npm/datepicker/models/DatePickerSettings.d.ts +39 -0
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +2 -3
- package/dist/npm/daterangepicker/DateRangePicker.js +49 -20
- package/dist/npm/daterangepicker/models/DateRangePickerSettings.d.ts +39 -0
- package/dist/npm/datetimepicker/DateTimePicker.d.ts +2 -3
- package/dist/npm/datetimepicker/DateTimePicker.js +75 -50
- package/dist/npm/datetimepicker/DateTimeSelector.d.ts +2 -3
- package/dist/npm/datetimepicker/DateTimeSelector.js +21 -14
- package/dist/npm/datetimepicker/models/DateTimePickerSettings.d.ts +39 -0
- package/dist/npm/main.d.ts +2 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimeList.d.ts +2 -3
- package/dist/npm/timepicker/TimePart.d.ts +2 -3
- package/dist/npm/timepicker/TimePart.js +14 -6
- package/dist/npm/timepicker/TimePicker.d.ts +2 -3
- package/dist/npm/timepicker/TimePicker.js +73 -40
- package/dist/npm/timepicker/TimeSelector.d.ts +2 -3
- package/dist/npm/timepicker/TimeSelector.js +21 -11
- package/dist/npm/timepicker/models/TimePickerSettings.d.ts +39 -0
- package/dist/npm/virtualization/Virtualization.d.ts +2 -3
- package/package.json +7 -7
|
@@ -11,6 +11,8 @@ var allVue = Vue;
|
|
|
11
11
|
var gh = allVue.h;
|
|
12
12
|
var inject = allVue.inject;
|
|
13
13
|
|
|
14
|
+
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
15
|
+
|
|
14
16
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
15
17
|
|
|
16
18
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
@@ -94,7 +96,8 @@ var TimePart = {
|
|
|
94
96
|
emits: {
|
|
95
97
|
'change': null,
|
|
96
98
|
'focus': null,
|
|
97
|
-
'blur': null
|
|
99
|
+
'blur': null,
|
|
100
|
+
'nowclick': null
|
|
98
101
|
},
|
|
99
102
|
created: function created() {
|
|
100
103
|
this.timeLists = [];
|
|
@@ -173,22 +176,27 @@ var TimePart = {
|
|
|
173
176
|
"class": "k-time-header"
|
|
174
177
|
}, [h("span", {
|
|
175
178
|
"class": "k-title"
|
|
176
|
-
}, [this.intl.formatDate(this.computedValue, this.dateFormatParts.reduce(this.timeFormatReducer, ''))]), this.showNowButton() &&
|
|
179
|
+
}, [this.intl.formatDate(this.computedValue, this.dateFormatParts.reduce(this.timeFormatReducer, ''))]), this.showNowButton() && // @ts-ignore function children
|
|
180
|
+
h(kendo_vue_buttons_1.Button, {
|
|
177
181
|
ref: 'nowButton',
|
|
178
|
-
|
|
179
|
-
title: selectNowMessage,
|
|
182
|
+
fillMode: 'flat',
|
|
180
183
|
attrs: this.v3 ? undefined : {
|
|
184
|
+
fillMode: 'flat',
|
|
181
185
|
title: selectNowMessage,
|
|
182
186
|
"aria-label": selectNowMessage,
|
|
183
187
|
tabIndex: disabled ? -1 : 0
|
|
184
188
|
},
|
|
189
|
+
"class": "k-time-now",
|
|
190
|
+
title: selectNowMessage,
|
|
185
191
|
"aria-label": selectNowMessage,
|
|
186
192
|
onClick: this.onNowClick,
|
|
187
193
|
on: this.v3 ? undefined : {
|
|
188
194
|
"click": this.onNowClick
|
|
189
195
|
},
|
|
190
196
|
tabIndex: disabled ? -1 : 0
|
|
191
|
-
},
|
|
197
|
+
}, this.v3 ? function () {
|
|
198
|
+
return [localizationService.toLanguageString(messages_1.now, messages_1.messages[messages_1.now])];
|
|
199
|
+
} : [localizationService.toLanguageString(messages_1.now, messages_1.messages[messages_1.now])])]), h("div", {
|
|
192
200
|
"class": "k-time-list-container",
|
|
193
201
|
onKeydown: this.handleKeyDown,
|
|
194
202
|
on: this.v3 ? undefined : {
|
|
@@ -293,7 +301,7 @@ var TimePart = {
|
|
|
293
301
|
return formatRegExp.test(part.type || '');
|
|
294
302
|
},
|
|
295
303
|
hasActiveButton: function hasActiveButton() {
|
|
296
|
-
return kendo_vue_common_1.canUseDOM && document.activeElement === this._nowButton;
|
|
304
|
+
return kendo_vue_common_1.canUseDOM && document.activeElement === this._nowButton.$el;
|
|
297
305
|
},
|
|
298
306
|
focusList: function focusList(dir) {
|
|
299
307
|
if (!this.timeLists.length) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -106,7 +105,7 @@ export interface TimePickerComputed {
|
|
|
106
105
|
/**
|
|
107
106
|
* @hidden
|
|
108
107
|
*/
|
|
109
|
-
export interface TimePickerAll extends
|
|
108
|
+
export interface TimePickerAll extends Vue2type, TimePickerMethods, TimePickerData, TimePickerComputed, TimePickerState {
|
|
110
109
|
}
|
|
111
110
|
declare let TimePicker: ComponentOptions<TimePickerAll, DefaultData<TimePickerData>, DefaultMethods<TimePickerAll>, TimePickerComputed, RecordPropsDefinition<TimePickerProps>>;
|
|
112
111
|
declare const TimePickerVue3: DefineComponent<TimePickerProps, any, TimePickerData, TimePickerComputed, TimePickerMethods, {}, {}, {}, string, TimePickerProps, TimePickerProps, {}>;
|
|
@@ -38,6 +38,8 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
|
38
38
|
|
|
39
39
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
40
40
|
|
|
41
|
+
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
42
|
+
|
|
41
43
|
var messages_1 = require("../messages");
|
|
42
44
|
|
|
43
45
|
var DateInput_1 = require("../dateinput/DateInput");
|
|
@@ -115,6 +117,27 @@ var TimePicker = {
|
|
|
115
117
|
return utils_3.defaultFormatPlaceholder;
|
|
116
118
|
}
|
|
117
119
|
},
|
|
120
|
+
rounded: {
|
|
121
|
+
type: String,
|
|
122
|
+
default: 'medium',
|
|
123
|
+
validator: function validator(value) {
|
|
124
|
+
return ['small', 'medium', 'large', 'full'].includes(value);
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
fillMode: {
|
|
128
|
+
type: String,
|
|
129
|
+
default: 'solid',
|
|
130
|
+
validator: function validator(value) {
|
|
131
|
+
return ['solid', 'flat', 'outline'].includes(value);
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
size: {
|
|
135
|
+
type: String,
|
|
136
|
+
default: 'medium',
|
|
137
|
+
validator: function validator(value) {
|
|
138
|
+
return ['small', 'medium', 'large'].includes(value);
|
|
139
|
+
}
|
|
140
|
+
},
|
|
118
141
|
id: String,
|
|
119
142
|
ariaLabelledBy: String,
|
|
120
143
|
ariaDescribedBy: String,
|
|
@@ -278,38 +301,43 @@ var TimePicker = {
|
|
|
278
301
|
},
|
|
279
302
|
// @ts-ignore
|
|
280
303
|
render: function render(createElement) {
|
|
304
|
+
var _a;
|
|
305
|
+
|
|
281
306
|
var _this = this;
|
|
282
307
|
|
|
283
308
|
var h = gh || createElement;
|
|
284
|
-
var
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
309
|
+
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
310
|
+
var _b = this.$props,
|
|
311
|
+
disabled = _b.disabled,
|
|
312
|
+
tabIndex = _b.tabIndex,
|
|
313
|
+
title = _b.title,
|
|
314
|
+
id = _b.id,
|
|
315
|
+
placeholder = _b.placeholder,
|
|
316
|
+
format = _b.format,
|
|
317
|
+
formatPlaceholder = _b.formatPlaceholder,
|
|
318
|
+
smoothScroll = _b.smoothScroll,
|
|
319
|
+
width = _b.width,
|
|
320
|
+
name = _b.name,
|
|
321
|
+
steps = _b.steps,
|
|
322
|
+
cancelButton = _b.cancelButton,
|
|
323
|
+
nowButton = _b.nowButton,
|
|
324
|
+
validationMessage = _b.validationMessage,
|
|
325
|
+
required = _b.required,
|
|
326
|
+
validityStyles = _b.validityStyles,
|
|
327
|
+
ariaLabelledBy = _b.ariaLabelledBy,
|
|
328
|
+
ariaDescribedBy = _b.ariaDescribedBy,
|
|
329
|
+
size = _b.size,
|
|
330
|
+
rounded = _b.rounded,
|
|
331
|
+
fillMode = _b.fillMode;
|
|
332
|
+
var _c = this.$props.popupSettings,
|
|
333
|
+
popupClass = _c.popupClass,
|
|
334
|
+
appendTo = _c.appendTo,
|
|
335
|
+
animate = _c.animate;
|
|
307
336
|
var isValid = !this.$props.validityStyles || this.validity().valid;
|
|
308
|
-
var rootClassName = kendo_vue_common_1.classNames('k-widget k-timepicker');
|
|
309
337
|
var wrapperClassNames = kendo_vue_common_1.classNames('k-picker-wrap', {
|
|
310
|
-
'k-
|
|
311
|
-
'k-
|
|
312
|
-
'k-
|
|
338
|
+
'k-invalid': !isValid,
|
|
339
|
+
'k-disabled': disabled,
|
|
340
|
+
'k-focus': this.isFocused
|
|
313
341
|
});
|
|
314
342
|
var popupClassNames = kendo_vue_common_1.classNames('k-group k-reset', popupClass);
|
|
315
343
|
var localizationService = kendo_vue_intl_1.provideLocalizationService(this);
|
|
@@ -328,6 +356,9 @@ var TimePicker = {
|
|
|
328
356
|
format: format,
|
|
329
357
|
formatPlaceholder: formatPlaceholder,
|
|
330
358
|
id: id,
|
|
359
|
+
size: null,
|
|
360
|
+
rounded: null,
|
|
361
|
+
fillMode: null,
|
|
331
362
|
ariaLabelledBy: ariaLabelledBy,
|
|
332
363
|
ariaDescribedBy: ariaDescribedBy,
|
|
333
364
|
max: this.normalizeTime(this.$props.max),
|
|
@@ -346,6 +377,9 @@ var TimePicker = {
|
|
|
346
377
|
format: format,
|
|
347
378
|
formatPlaceholder: formatPlaceholder,
|
|
348
379
|
id: id,
|
|
380
|
+
size: null,
|
|
381
|
+
rounded: null,
|
|
382
|
+
fillMode: null,
|
|
349
383
|
ariaLabelledBy: ariaLabelledBy,
|
|
350
384
|
ariaDescribedBy: ariaDescribedBy,
|
|
351
385
|
max: this.normalizeTime(this.$props.max),
|
|
@@ -363,7 +397,9 @@ var TimePicker = {
|
|
|
363
397
|
validationMessage: validationMessage,
|
|
364
398
|
validityStyles: validityStyles,
|
|
365
399
|
value: this.computedValue && this.normalizeTime(this.computedValue)
|
|
366
|
-
})
|
|
400
|
+
}, this.v3 ? function () {
|
|
401
|
+
return [defaultSlot];
|
|
402
|
+
} : [defaultSlot]);
|
|
367
403
|
var timeSelector = // @ts-ignore function children
|
|
368
404
|
h(TimeSelector_1.TimeSelector, {
|
|
369
405
|
ref: 'timeSelector',
|
|
@@ -447,7 +483,7 @@ var TimePicker = {
|
|
|
447
483
|
defaultSlots: timeSelector
|
|
448
484
|
});
|
|
449
485
|
var timePicker = h("div", {
|
|
450
|
-
"class":
|
|
486
|
+
"class": kendo_vue_common_1.classNames('k-input', 'k-timepicker', (_a = {}, _a["k-input-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-" + fillMode] = fillMode, _a["k-rounded-" + (kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-valid'] = isValid, _a['k-invalid'] = !isValid, _a['k-required'] = this.required, _a['k-disabled'] = this.$props.disabled, _a['k-focus'] = this.isFocused, _a)),
|
|
451
487
|
onKeydown: this.handleKeyDown,
|
|
452
488
|
on: this.v3 ? undefined : {
|
|
453
489
|
"keydown": this.handleKeyDown,
|
|
@@ -458,16 +494,15 @@ var TimePicker = {
|
|
|
458
494
|
width: width
|
|
459
495
|
},
|
|
460
496
|
onFocusin: this.handleFocus,
|
|
461
|
-
onFocusout: this.handleBlur
|
|
462
|
-
}, [h("span", {
|
|
497
|
+
onFocusout: this.handleBlur,
|
|
463
498
|
ref: this.v3 ? function (el) {
|
|
464
499
|
_this.kendoAnchorRef = el;
|
|
465
|
-
} : this._anchor
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
500
|
+
} : this._anchor
|
|
501
|
+
}, [dateInputRendering, // @ts-ignore
|
|
502
|
+
h(kendo_vue_buttons_1.Button, {
|
|
503
|
+
icon: 'clock',
|
|
469
504
|
attrs: this.v3 ? undefined : {
|
|
470
|
-
|
|
505
|
+
icon: 'clock',
|
|
471
506
|
title: toggleTimeMessage,
|
|
472
507
|
"aria-controls": this._popupId,
|
|
473
508
|
"aria-label": toggleClockMessage
|
|
@@ -479,12 +514,10 @@ var TimePicker = {
|
|
|
479
514
|
},
|
|
480
515
|
onClick: this.handleIconClick,
|
|
481
516
|
title: toggleTimeMessage,
|
|
482
|
-
"class": "k-
|
|
517
|
+
"class": "k-input-button",
|
|
483
518
|
"aria-controls": this._popupId,
|
|
484
519
|
"aria-label": toggleClockMessage
|
|
485
|
-
},
|
|
486
|
-
"class": "k-icon k-i-clock"
|
|
487
|
-
})])]), popupRendering]);
|
|
520
|
+
}), popupRendering]);
|
|
488
521
|
return this.$props.label ? // @ts-ignore function children
|
|
489
522
|
h(kendo_vue_labels_1.FloatingLabel, {
|
|
490
523
|
label: this.$props.label,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -84,7 +83,7 @@ export interface TimeSelectorComputed {
|
|
|
84
83
|
/**
|
|
85
84
|
* @hidden
|
|
86
85
|
*/
|
|
87
|
-
export interface TimeSelectorAll extends
|
|
86
|
+
export interface TimeSelectorAll extends Vue2type, TimeSelectorMethods, TimeSelectorData, TimeSelectorComputed, TimeSelectorState {
|
|
88
87
|
}
|
|
89
88
|
declare let TimeSelector: ComponentOptions<TimeSelectorAll, DefaultData<TimeSelectorData>, DefaultMethods<TimeSelectorAll>, TimeSelectorComputed, RecordPropsDefinition<TimeSelectorProps>>;
|
|
90
89
|
declare const TimeSelectorVue3: DefineComponent<TimeSelectorProps, any, TimeSelectorData, TimeSelectorComputed, TimeSelectorMethods, {}, {}, {}, string, TimeSelectorProps, TimeSelectorProps, {}>;
|
|
@@ -11,6 +11,8 @@ var allVue = Vue;
|
|
|
11
11
|
var gh = allVue.h;
|
|
12
12
|
var inject = allVue.inject;
|
|
13
13
|
|
|
14
|
+
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
15
|
+
|
|
14
16
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
15
17
|
|
|
16
18
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
@@ -207,10 +209,11 @@ var TimeSelector = {
|
|
|
207
209
|
nowButton: nowButton,
|
|
208
210
|
steps: steps
|
|
209
211
|
}), h("div", {
|
|
210
|
-
"class": "k-time-footer k-
|
|
211
|
-
}, [cancelButton &&
|
|
212
|
+
"class": "k-time-footer k-actions k-actions-stretched"
|
|
213
|
+
}, [cancelButton && // @ts-ignore function children
|
|
214
|
+
h(kendo_vue_buttons_1.Button, {
|
|
212
215
|
ref: 'cancelButton',
|
|
213
|
-
"class": "k-
|
|
216
|
+
"class": "k-time-cancel",
|
|
214
217
|
onClick: this.handleReject,
|
|
215
218
|
on: this.v3 ? undefined : {
|
|
216
219
|
"click": this.handleReject
|
|
@@ -221,20 +224,27 @@ var TimeSelector = {
|
|
|
221
224
|
"aria-label": cancelMessage
|
|
222
225
|
},
|
|
223
226
|
"aria-label": cancelMessage
|
|
224
|
-
},
|
|
227
|
+
}, this.v3 ? function () {
|
|
228
|
+
return [cancelMessage];
|
|
229
|
+
} : [cancelMessage]), // @ts-ignore function children
|
|
230
|
+
h(kendo_vue_buttons_1.Button, {
|
|
225
231
|
ref: 'acceptButton',
|
|
226
|
-
|
|
232
|
+
themeColor: 'primary',
|
|
233
|
+
attrs: this.v3 ? undefined : {
|
|
234
|
+
themeColor: 'primary',
|
|
235
|
+
title: setMessage,
|
|
236
|
+
"aria-label": setMessage
|
|
237
|
+
},
|
|
238
|
+
"class": "k-time-accept",
|
|
227
239
|
onClick: this.handleAccept,
|
|
228
240
|
on: this.v3 ? undefined : {
|
|
229
241
|
"click": this.handleAccept
|
|
230
242
|
},
|
|
231
243
|
title: setMessage,
|
|
232
|
-
attrs: this.v3 ? undefined : {
|
|
233
|
-
title: setMessage,
|
|
234
|
-
"aria-label": setMessage
|
|
235
|
-
},
|
|
236
244
|
"aria-label": setMessage
|
|
237
|
-
},
|
|
245
|
+
}, this.v3 ? function () {
|
|
246
|
+
return [setMessage];
|
|
247
|
+
} : [setMessage])])]);
|
|
238
248
|
},
|
|
239
249
|
methods: {
|
|
240
250
|
handleBlur: function handleBlur(event) {
|
|
@@ -257,7 +267,7 @@ var TimeSelector = {
|
|
|
257
267
|
return false;
|
|
258
268
|
}
|
|
259
269
|
|
|
260
|
-
return kendo_vue_common_1.canUseDOM && (document.activeElement === this._acceptButton || document.activeElement === this._cancelButton);
|
|
270
|
+
return kendo_vue_common_1.canUseDOM && (document.activeElement === this._acceptButton.$el || document.activeElement === this._cancelButton.$el);
|
|
261
271
|
},
|
|
262
272
|
handleKeyDown: function handleKeyDown(event) {
|
|
263
273
|
var keyCode = event.keyCode;
|
|
@@ -65,6 +65,45 @@ export interface TimePickerSettings {
|
|
|
65
65
|
* Specifies the value of the placeholder.
|
|
66
66
|
*/
|
|
67
67
|
placeholder?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Configures the `size` of the TimeInput.
|
|
70
|
+
*
|
|
71
|
+
* The available options are:
|
|
72
|
+
* - small
|
|
73
|
+
* - medium
|
|
74
|
+
* - large
|
|
75
|
+
* - null—Does not set a size `class`.
|
|
76
|
+
*
|
|
77
|
+
* @default `medium`
|
|
78
|
+
*/
|
|
79
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
80
|
+
/**
|
|
81
|
+
* Configures the `roundness` of the TimeInput.
|
|
82
|
+
*
|
|
83
|
+
* The available options are:
|
|
84
|
+
* - small
|
|
85
|
+
* - medium
|
|
86
|
+
* - large
|
|
87
|
+
* - circle
|
|
88
|
+
* - full
|
|
89
|
+
* - null—Does not set a rounded `class`.
|
|
90
|
+
*
|
|
91
|
+
* @default `medium`
|
|
92
|
+
*/
|
|
93
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
94
|
+
/**
|
|
95
|
+
* Configures the `fillMode` of the TimeInput.
|
|
96
|
+
*
|
|
97
|
+
* The available options are:
|
|
98
|
+
* - solid
|
|
99
|
+
* - outline
|
|
100
|
+
* - flat
|
|
101
|
+
* - link
|
|
102
|
+
* - null—Does not set a fillMode `class`.
|
|
103
|
+
*
|
|
104
|
+
* @default `solid`
|
|
105
|
+
*/
|
|
106
|
+
fillMode?: null | 'solid' | 'outline' | 'flat' | string;
|
|
68
107
|
/**
|
|
69
108
|
* Fires each time any of the TimePicker elements gets blurred.
|
|
70
109
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -102,7 +101,7 @@ export interface VirtualizationProps {
|
|
|
102
101
|
/**
|
|
103
102
|
* @hidden
|
|
104
103
|
*/
|
|
105
|
-
export interface VirtualizationAll extends
|
|
104
|
+
export interface VirtualizationAll extends Vue2type, VirtualizationMethods, VirtualizationData, VirtualizationComputed, VirtualizationState {
|
|
106
105
|
}
|
|
107
106
|
declare let Virtualization: ComponentOptions<VirtualizationAll, DefaultData<VirtualizationData>, DefaultMethods<VirtualizationAll>, VirtualizationComputed, RecordPropsDefinition<VirtualizationProps>>;
|
|
108
107
|
declare const VirtualizationVue3: DefineComponent<VirtualizationProps, any, VirtualizationData, VirtualizationComputed, VirtualizationMethods, {}, {}, {}, string, VirtualizationProps, VirtualizationProps, {}>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-dateinputs",
|
|
3
3
|
"description": "Kendo UI for Vue Date Inputs package",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.8.0-dev.202201111325",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@progress/kendo-date-math": "1.5.1",
|
|
49
|
-
"@progress/kendo-vue-buttons": "2.
|
|
50
|
-
"@progress/kendo-vue-common": "2.
|
|
51
|
-
"@progress/kendo-vue-labels": "2.
|
|
52
|
-
"@progress/kendo-vue-popup": "2.
|
|
49
|
+
"@progress/kendo-vue-buttons": "2.8.0-dev.202201111325",
|
|
50
|
+
"@progress/kendo-vue-common": "2.8.0-dev.202201111325",
|
|
51
|
+
"@progress/kendo-vue-labels": "2.8.0-dev.202201111325",
|
|
52
|
+
"@progress/kendo-vue-popup": "2.8.0-dev.202201111325"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@progress/kendo-data-query": "^1.5.4",
|
|
56
56
|
"@progress/kendo-licensing": "^1.1.0",
|
|
57
|
-
"@progress/kendo-vue-dropdowns": "2.
|
|
58
|
-
"@progress/kendo-vue-intl": "2.
|
|
57
|
+
"@progress/kendo-vue-dropdowns": "2.8.0-dev.202201111325",
|
|
58
|
+
"@progress/kendo-vue-intl": "2.8.0-dev.202201111325"
|
|
59
59
|
},
|
|
60
60
|
"author": "Progress",
|
|
61
61
|
"license": "SEE LICENSE IN LICENSE.md",
|