@progress/kendo-vue-dateinputs 4.4.0-dev.202405071452 → 4.4.0-dev.202405101126
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/calendar/components/Calendar.js +4 -3
- package/dist/es/calendar/components/CalendarHeaderTitle.js +5 -1
- package/dist/es/calendar/components/Header.js +27 -14
- package/dist/es/calendar/components/View.js +3 -2
- package/dist/es/calendar/components/ViewList.js +3 -8
- package/dist/es/calendar/services/DOMService.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/calendar/components/Calendar.js +4 -3
- package/dist/esm/calendar/components/CalendarHeaderTitle.js +5 -1
- package/dist/esm/calendar/components/Header.js +27 -14
- package/dist/esm/calendar/components/View.js +3 -2
- package/dist/esm/calendar/components/ViewList.js +3 -8
- package/dist/esm/calendar/services/DOMService.js +1 -1
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/calendar/components/Calendar.js +4 -3
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +5 -1
- package/dist/npm/calendar/components/Header.js +27 -14
- package/dist/npm/calendar/components/View.js +3 -2
- package/dist/npm/calendar/components/ViewList.js +3 -8
- package/dist/npm/calendar/services/DOMService.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +7 -7
|
@@ -425,7 +425,8 @@ var CalendarVue2 = {
|
|
|
425
425
|
this._intl = provideIntlService(this);
|
|
426
426
|
this._bus.configure(CalendarViewEnum[this.$props.bottomView], CalendarViewEnum[this.$props.topView]);
|
|
427
427
|
this._service = this._bus.service(activeView, this._intl);
|
|
428
|
-
var rootClassNames = classNames('k-
|
|
428
|
+
var rootClassNames = classNames('k-calendar', 'k-calendar-md', {
|
|
429
|
+
'k-calendar-range': views > 1,
|
|
429
430
|
'k-disabled': this.$props.disabled,
|
|
430
431
|
'k-week-number': this.$props.weekNumber
|
|
431
432
|
}, this.$props.className);
|
|
@@ -482,7 +483,7 @@ var CalendarVue2 = {
|
|
|
482
483
|
attrs: this.v3 ? undefined : {
|
|
483
484
|
allowReverse: this.$props.allowReverse,
|
|
484
485
|
isActive: this.$data.isActive,
|
|
485
|
-
tabIndex:
|
|
486
|
+
tabIndex: this.$props.tabIndex || 0,
|
|
486
487
|
activeView: this.$data.currentActiveView,
|
|
487
488
|
focusedDate: this._focusedDate,
|
|
488
489
|
min: this.currentMin,
|
|
@@ -501,7 +502,7 @@ var CalendarVue2 = {
|
|
|
501
502
|
cellUID: this.$data.cellUID
|
|
502
503
|
},
|
|
503
504
|
isActive: this.$data.isActive,
|
|
504
|
-
tabIndex:
|
|
505
|
+
tabIndex: this.$props.tabIndex || 0,
|
|
505
506
|
ref: this.v3 ? function (el) {
|
|
506
507
|
_this.calendarViewListRef = el;
|
|
507
508
|
} : 'calendarViewList',
|
|
@@ -42,17 +42,21 @@ var CalendarHeaderTitleVue2 = {
|
|
|
42
42
|
return (
|
|
43
43
|
// @ts-ignore function children
|
|
44
44
|
h(KButton, {
|
|
45
|
-
|
|
45
|
+
role: "link",
|
|
46
46
|
attrs: this.v3 ? undefined : {
|
|
47
|
+
role: "link",
|
|
47
48
|
type: "button",
|
|
48
49
|
value: this.$props.value,
|
|
49
50
|
id: this.$props.id,
|
|
50
51
|
fillMode: 'flat',
|
|
52
|
+
themeColor: 'primary',
|
|
51
53
|
tabIndex: 0
|
|
52
54
|
},
|
|
55
|
+
type: "button",
|
|
53
56
|
value: this.$props.value,
|
|
54
57
|
id: this.$props.id,
|
|
55
58
|
fillMode: 'flat',
|
|
59
|
+
themeColor: 'primary',
|
|
56
60
|
onClick: this.handleClick,
|
|
57
61
|
on: this.v3 ? undefined : {
|
|
58
62
|
"click": this.handleClick
|
|
@@ -174,7 +174,7 @@ var HeaderVue2 = {
|
|
|
174
174
|
var nextViewTittle = this._localization.toLanguageString(nextView, messages[nextView]);
|
|
175
175
|
var isPrevDisabled = !this.canNavigate(Action.PrevView);
|
|
176
176
|
var isNextDisabled = !this.canNavigate(Action.NextView);
|
|
177
|
-
var titleClassNames = classNames('k-calendar-title',
|
|
177
|
+
var titleClassNames = classNames('k-calendar-title', {
|
|
178
178
|
'k-disabled': !this.navigate
|
|
179
179
|
});
|
|
180
180
|
var todayClassNames = classNames('k-calendar-nav-today', {
|
|
@@ -203,6 +203,31 @@ var HeaderVue2 = {
|
|
|
203
203
|
template: this.$props.headerTitle,
|
|
204
204
|
defaultRendering: headerTitleDefaultRendering
|
|
205
205
|
});
|
|
206
|
+
var todayButtonRendering =
|
|
207
|
+
// @ts-ignore function children
|
|
208
|
+
h(KButton, {
|
|
209
|
+
fillMode: 'flat',
|
|
210
|
+
attrs: this.v3 ? undefined : {
|
|
211
|
+
fillMode: 'flat',
|
|
212
|
+
themeColor: 'base',
|
|
213
|
+
tabindex: this.$props.tabIndex
|
|
214
|
+
},
|
|
215
|
+
themeColor: 'base',
|
|
216
|
+
"class": todayClassNames,
|
|
217
|
+
tabindex: this.$props.tabIndex,
|
|
218
|
+
onKeydown: this.todayKeyDown,
|
|
219
|
+
on: this.v3 ? undefined : {
|
|
220
|
+
"keydown": this.todayKeyDown,
|
|
221
|
+
"click": this.handleTodayClick
|
|
222
|
+
},
|
|
223
|
+
onClick: this.handleTodayClick
|
|
224
|
+
}, this.v3 ? function () {
|
|
225
|
+
return [todayMessage];
|
|
226
|
+
} : [todayMessage]);
|
|
227
|
+
var todayButton = getTemplate.call(this, {
|
|
228
|
+
h: h,
|
|
229
|
+
defaultRendering: todayButtonRendering
|
|
230
|
+
});
|
|
206
231
|
return h("div", {
|
|
207
232
|
"class": "k-calendar-header k-hstack",
|
|
208
233
|
style: this.$attrs.style
|
|
@@ -236,19 +261,7 @@ var HeaderVue2 = {
|
|
|
236
261
|
on: this.v3 ? undefined : {
|
|
237
262
|
"click": this.handlePrevClick
|
|
238
263
|
}
|
|
239
|
-
}),
|
|
240
|
-
"class": todayClassNames,
|
|
241
|
-
tabindex: this.$props.tabIndex,
|
|
242
|
-
attrs: this.v3 ? undefined : {
|
|
243
|
-
tabindex: this.$props.tabIndex
|
|
244
|
-
},
|
|
245
|
-
onKeydown: this.todayKeyDown,
|
|
246
|
-
on: this.v3 ? undefined : {
|
|
247
|
-
"keydown": this.todayKeyDown,
|
|
248
|
-
"click": this.handleTodayClick
|
|
249
|
-
},
|
|
250
|
-
onClick: this.handleTodayClick
|
|
251
|
-
}, [todayMessage]),
|
|
264
|
+
}), todayButton,
|
|
252
265
|
// @ts-ignore
|
|
253
266
|
h(KButton, {
|
|
254
267
|
type: "button",
|
|
@@ -160,8 +160,9 @@ var ViewVue2 = {
|
|
|
160
160
|
// tslint:disable-next-line jsx-use-translation-function
|
|
161
161
|
var emptyCell = function emptyCell(idx) {
|
|
162
162
|
return h("td", {
|
|
163
|
-
key: idx
|
|
164
|
-
|
|
163
|
+
key: idx,
|
|
164
|
+
"class": "k-calendar-td k-empty"
|
|
165
|
+
}, ["\xA0"]);
|
|
165
166
|
};
|
|
166
167
|
// const weekNames = this._weekService.getWeekNames(this.weekNumber);
|
|
167
168
|
// const colSpan = this.$props.service.rowLength(this.weekNumber);
|
|
@@ -227,21 +227,16 @@ var ViewListVue2 = {
|
|
|
227
227
|
'k-calendar-decadeview': this.$props.activeView === CalendarViewEnum.decade,
|
|
228
228
|
'k-calendar-centuryview': this.$props.activeView === CalendarViewEnum.century
|
|
229
229
|
});
|
|
230
|
-
var tableClassNames = classNames('k-calendar-table'
|
|
231
|
-
'k-month': this.$props.activeView === CalendarViewEnum.month,
|
|
232
|
-
'k-year': this.$props.activeView === CalendarViewEnum.year,
|
|
233
|
-
'k-decade': this.$props.activeView === CalendarViewEnum.decade,
|
|
234
|
-
'k-century': this.$props.activeView === CalendarViewEnum.century
|
|
235
|
-
});
|
|
230
|
+
var tableClassNames = classNames('k-calendar-table');
|
|
236
231
|
var buildMonthView = function buildMonthView(weekNames) {
|
|
237
232
|
var that = this;
|
|
238
233
|
return h("thead", {
|
|
239
234
|
"class": 'k-calendar-thead'
|
|
240
235
|
}, [h("tr", {
|
|
241
|
-
"class": 'k-calendar-tr
|
|
236
|
+
"class": 'k-calendar-tr'
|
|
242
237
|
}, [weekNames.map(function (name, idx) {
|
|
243
238
|
return h("th", {
|
|
244
|
-
"class": 'k-calendar-
|
|
239
|
+
"class": 'k-calendar-th',
|
|
245
240
|
key: idx,
|
|
246
241
|
onClick: function onClick(ev) {
|
|
247
242
|
return that.handleWeekNameClick(ev, name);
|
|
@@ -33,7 +33,7 @@ var DOMService = /** @class */ (function () {
|
|
|
33
33
|
thead([
|
|
34
34
|
tr([th('MO')])
|
|
35
35
|
])
|
|
36
|
-
]
|
|
36
|
+
])); };
|
|
37
37
|
var repeat = function (count, mapper) { return new Array(count).fill('1').map(mapper); };
|
|
38
38
|
var content = function (rows, cells) {
|
|
39
39
|
if (cells === void 0) { cells = 1; }
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-dateinputs',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1715340025,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|
|
@@ -425,7 +425,8 @@ var CalendarVue2 = {
|
|
|
425
425
|
this._intl = provideIntlService(this);
|
|
426
426
|
this._bus.configure(CalendarViewEnum[this.$props.bottomView], CalendarViewEnum[this.$props.topView]);
|
|
427
427
|
this._service = this._bus.service(activeView, this._intl);
|
|
428
|
-
var rootClassNames = classNames('k-
|
|
428
|
+
var rootClassNames = classNames('k-calendar', 'k-calendar-md', {
|
|
429
|
+
'k-calendar-range': views > 1,
|
|
429
430
|
'k-disabled': this.$props.disabled,
|
|
430
431
|
'k-week-number': this.$props.weekNumber
|
|
431
432
|
}, this.$props.className);
|
|
@@ -482,7 +483,7 @@ var CalendarVue2 = {
|
|
|
482
483
|
attrs: this.v3 ? undefined : {
|
|
483
484
|
allowReverse: this.$props.allowReverse,
|
|
484
485
|
isActive: this.$data.isActive,
|
|
485
|
-
tabIndex:
|
|
486
|
+
tabIndex: this.$props.tabIndex || 0,
|
|
486
487
|
activeView: this.$data.currentActiveView,
|
|
487
488
|
focusedDate: this._focusedDate,
|
|
488
489
|
min: this.currentMin,
|
|
@@ -501,7 +502,7 @@ var CalendarVue2 = {
|
|
|
501
502
|
cellUID: this.$data.cellUID
|
|
502
503
|
},
|
|
503
504
|
isActive: this.$data.isActive,
|
|
504
|
-
tabIndex:
|
|
505
|
+
tabIndex: this.$props.tabIndex || 0,
|
|
505
506
|
ref: this.v3 ? function (el) {
|
|
506
507
|
_this.calendarViewListRef = el;
|
|
507
508
|
} : 'calendarViewList',
|
|
@@ -42,17 +42,21 @@ var CalendarHeaderTitleVue2 = {
|
|
|
42
42
|
return (
|
|
43
43
|
// @ts-ignore function children
|
|
44
44
|
h(KButton, {
|
|
45
|
-
|
|
45
|
+
role: "link",
|
|
46
46
|
attrs: this.v3 ? undefined : {
|
|
47
|
+
role: "link",
|
|
47
48
|
type: "button",
|
|
48
49
|
value: this.$props.value,
|
|
49
50
|
id: this.$props.id,
|
|
50
51
|
fillMode: 'flat',
|
|
52
|
+
themeColor: 'primary',
|
|
51
53
|
tabIndex: 0
|
|
52
54
|
},
|
|
55
|
+
type: "button",
|
|
53
56
|
value: this.$props.value,
|
|
54
57
|
id: this.$props.id,
|
|
55
58
|
fillMode: 'flat',
|
|
59
|
+
themeColor: 'primary',
|
|
56
60
|
onClick: this.handleClick,
|
|
57
61
|
on: this.v3 ? undefined : {
|
|
58
62
|
"click": this.handleClick
|
|
@@ -174,7 +174,7 @@ var HeaderVue2 = {
|
|
|
174
174
|
var nextViewTittle = this._localization.toLanguageString(nextView, messages[nextView]);
|
|
175
175
|
var isPrevDisabled = !this.canNavigate(Action.PrevView);
|
|
176
176
|
var isNextDisabled = !this.canNavigate(Action.NextView);
|
|
177
|
-
var titleClassNames = classNames('k-calendar-title',
|
|
177
|
+
var titleClassNames = classNames('k-calendar-title', {
|
|
178
178
|
'k-disabled': !this.navigate
|
|
179
179
|
});
|
|
180
180
|
var todayClassNames = classNames('k-calendar-nav-today', {
|
|
@@ -203,6 +203,31 @@ var HeaderVue2 = {
|
|
|
203
203
|
template: this.$props.headerTitle,
|
|
204
204
|
defaultRendering: headerTitleDefaultRendering
|
|
205
205
|
});
|
|
206
|
+
var todayButtonRendering =
|
|
207
|
+
// @ts-ignore function children
|
|
208
|
+
h(KButton, {
|
|
209
|
+
fillMode: 'flat',
|
|
210
|
+
attrs: this.v3 ? undefined : {
|
|
211
|
+
fillMode: 'flat',
|
|
212
|
+
themeColor: 'base',
|
|
213
|
+
tabindex: this.$props.tabIndex
|
|
214
|
+
},
|
|
215
|
+
themeColor: 'base',
|
|
216
|
+
"class": todayClassNames,
|
|
217
|
+
tabindex: this.$props.tabIndex,
|
|
218
|
+
onKeydown: this.todayKeyDown,
|
|
219
|
+
on: this.v3 ? undefined : {
|
|
220
|
+
"keydown": this.todayKeyDown,
|
|
221
|
+
"click": this.handleTodayClick
|
|
222
|
+
},
|
|
223
|
+
onClick: this.handleTodayClick
|
|
224
|
+
}, this.v3 ? function () {
|
|
225
|
+
return [todayMessage];
|
|
226
|
+
} : [todayMessage]);
|
|
227
|
+
var todayButton = getTemplate.call(this, {
|
|
228
|
+
h: h,
|
|
229
|
+
defaultRendering: todayButtonRendering
|
|
230
|
+
});
|
|
206
231
|
return h("div", {
|
|
207
232
|
"class": "k-calendar-header k-hstack",
|
|
208
233
|
style: this.$attrs.style
|
|
@@ -236,19 +261,7 @@ var HeaderVue2 = {
|
|
|
236
261
|
on: this.v3 ? undefined : {
|
|
237
262
|
"click": this.handlePrevClick
|
|
238
263
|
}
|
|
239
|
-
}),
|
|
240
|
-
"class": todayClassNames,
|
|
241
|
-
tabindex: this.$props.tabIndex,
|
|
242
|
-
attrs: this.v3 ? undefined : {
|
|
243
|
-
tabindex: this.$props.tabIndex
|
|
244
|
-
},
|
|
245
|
-
onKeydown: this.todayKeyDown,
|
|
246
|
-
on: this.v3 ? undefined : {
|
|
247
|
-
"keydown": this.todayKeyDown,
|
|
248
|
-
"click": this.handleTodayClick
|
|
249
|
-
},
|
|
250
|
-
onClick: this.handleTodayClick
|
|
251
|
-
}, [todayMessage]),
|
|
264
|
+
}), todayButton,
|
|
252
265
|
// @ts-ignore
|
|
253
266
|
h(KButton, {
|
|
254
267
|
type: "button",
|
|
@@ -160,8 +160,9 @@ var ViewVue2 = {
|
|
|
160
160
|
// tslint:disable-next-line jsx-use-translation-function
|
|
161
161
|
var emptyCell = function emptyCell(idx) {
|
|
162
162
|
return h("td", {
|
|
163
|
-
key: idx
|
|
164
|
-
|
|
163
|
+
key: idx,
|
|
164
|
+
"class": "k-calendar-td k-empty"
|
|
165
|
+
}, ["\xA0"]);
|
|
165
166
|
};
|
|
166
167
|
// const weekNames = this._weekService.getWeekNames(this.weekNumber);
|
|
167
168
|
// const colSpan = this.$props.service.rowLength(this.weekNumber);
|
|
@@ -227,21 +227,16 @@ var ViewListVue2 = {
|
|
|
227
227
|
'k-calendar-decadeview': this.$props.activeView === CalendarViewEnum.decade,
|
|
228
228
|
'k-calendar-centuryview': this.$props.activeView === CalendarViewEnum.century
|
|
229
229
|
});
|
|
230
|
-
var tableClassNames = classNames('k-calendar-table'
|
|
231
|
-
'k-month': this.$props.activeView === CalendarViewEnum.month,
|
|
232
|
-
'k-year': this.$props.activeView === CalendarViewEnum.year,
|
|
233
|
-
'k-decade': this.$props.activeView === CalendarViewEnum.decade,
|
|
234
|
-
'k-century': this.$props.activeView === CalendarViewEnum.century
|
|
235
|
-
});
|
|
230
|
+
var tableClassNames = classNames('k-calendar-table');
|
|
236
231
|
var buildMonthView = function buildMonthView(weekNames) {
|
|
237
232
|
var that = this;
|
|
238
233
|
return h("thead", {
|
|
239
234
|
"class": 'k-calendar-thead'
|
|
240
235
|
}, [h("tr", {
|
|
241
|
-
"class": 'k-calendar-tr
|
|
236
|
+
"class": 'k-calendar-tr'
|
|
242
237
|
}, [weekNames.map(function (name, idx) {
|
|
243
238
|
return h("th", {
|
|
244
|
-
"class": 'k-calendar-
|
|
239
|
+
"class": 'k-calendar-th',
|
|
245
240
|
key: idx,
|
|
246
241
|
onClick: function onClick(ev) {
|
|
247
242
|
return that.handleWeekNameClick(ev, name);
|
|
@@ -33,7 +33,7 @@ var DOMService = /** @class */ (function () {
|
|
|
33
33
|
thead([
|
|
34
34
|
tr([th('MO')])
|
|
35
35
|
])
|
|
36
|
-
]
|
|
36
|
+
])); };
|
|
37
37
|
var repeat = function (count, mapper) { return new Array(count).fill('1').map(mapper); };
|
|
38
38
|
var content = function (rows, cells) {
|
|
39
39
|
if (cells === void 0) { cells = 1; }
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-dateinputs',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1715340025,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|
|
@@ -431,7 +431,8 @@ var CalendarVue2 = {
|
|
|
431
431
|
this._intl = (0, kendo_vue_intl_1.provideIntlService)(this);
|
|
432
432
|
this._bus.configure(main_1.CalendarViewEnum[this.$props.bottomView], main_1.CalendarViewEnum[this.$props.topView]);
|
|
433
433
|
this._service = this._bus.service(activeView, this._intl);
|
|
434
|
-
var rootClassNames = (0, kendo_vue_common_1.classNames)('k-
|
|
434
|
+
var rootClassNames = (0, kendo_vue_common_1.classNames)('k-calendar', 'k-calendar-md', {
|
|
435
|
+
'k-calendar-range': views > 1,
|
|
435
436
|
'k-disabled': this.$props.disabled,
|
|
436
437
|
'k-week-number': this.$props.weekNumber
|
|
437
438
|
}, this.$props.className);
|
|
@@ -487,7 +488,7 @@ var CalendarVue2 = {
|
|
|
487
488
|
attrs: this.v3 ? undefined : {
|
|
488
489
|
allowReverse: this.$props.allowReverse,
|
|
489
490
|
isActive: this.$data.isActive,
|
|
490
|
-
tabIndex:
|
|
491
|
+
tabIndex: this.$props.tabIndex || 0,
|
|
491
492
|
activeView: this.$data.currentActiveView,
|
|
492
493
|
focusedDate: this._focusedDate,
|
|
493
494
|
min: this.currentMin,
|
|
@@ -506,7 +507,7 @@ var CalendarVue2 = {
|
|
|
506
507
|
cellUID: this.$data.cellUID
|
|
507
508
|
},
|
|
508
509
|
isActive: this.$data.isActive,
|
|
509
|
-
tabIndex:
|
|
510
|
+
tabIndex: this.$props.tabIndex || 0,
|
|
510
511
|
ref: this.v3 ? function (el) {
|
|
511
512
|
_this.calendarViewListRef = el;
|
|
512
513
|
} : 'calendarViewList',
|
|
@@ -48,17 +48,21 @@ var CalendarHeaderTitleVue2 = {
|
|
|
48
48
|
return (
|
|
49
49
|
// @ts-ignore function children
|
|
50
50
|
h(kendo_vue_buttons_1.Button, {
|
|
51
|
-
|
|
51
|
+
role: "link",
|
|
52
52
|
attrs: this.v3 ? undefined : {
|
|
53
|
+
role: "link",
|
|
53
54
|
type: "button",
|
|
54
55
|
value: this.$props.value,
|
|
55
56
|
id: this.$props.id,
|
|
56
57
|
fillMode: 'flat',
|
|
58
|
+
themeColor: 'primary',
|
|
57
59
|
tabIndex: 0
|
|
58
60
|
},
|
|
61
|
+
type: "button",
|
|
59
62
|
value: this.$props.value,
|
|
60
63
|
id: this.$props.id,
|
|
61
64
|
fillMode: 'flat',
|
|
65
|
+
themeColor: 'primary',
|
|
62
66
|
onClick: this.handleClick,
|
|
63
67
|
on: this.v3 ? undefined : {
|
|
64
68
|
"click": this.handleClick
|
|
@@ -180,7 +180,7 @@ var HeaderVue2 = {
|
|
|
180
180
|
var nextViewTittle = this._localization.toLanguageString(main_1.nextView, main_1.messages[main_1.nextView]);
|
|
181
181
|
var isPrevDisabled = !this.canNavigate(main_2.Action.PrevView);
|
|
182
182
|
var isNextDisabled = !this.canNavigate(main_2.Action.NextView);
|
|
183
|
-
var titleClassNames = (0, kendo_vue_common_1.classNames)('k-calendar-title',
|
|
183
|
+
var titleClassNames = (0, kendo_vue_common_1.classNames)('k-calendar-title', {
|
|
184
184
|
'k-disabled': !this.navigate
|
|
185
185
|
});
|
|
186
186
|
var todayClassNames = (0, kendo_vue_common_1.classNames)('k-calendar-nav-today', {
|
|
@@ -209,6 +209,31 @@ var HeaderVue2 = {
|
|
|
209
209
|
template: this.$props.headerTitle,
|
|
210
210
|
defaultRendering: headerTitleDefaultRendering
|
|
211
211
|
});
|
|
212
|
+
var todayButtonRendering =
|
|
213
|
+
// @ts-ignore function children
|
|
214
|
+
h(kendo_vue_buttons_1.Button, {
|
|
215
|
+
fillMode: 'flat',
|
|
216
|
+
attrs: this.v3 ? undefined : {
|
|
217
|
+
fillMode: 'flat',
|
|
218
|
+
themeColor: 'base',
|
|
219
|
+
tabindex: this.$props.tabIndex
|
|
220
|
+
},
|
|
221
|
+
themeColor: 'base',
|
|
222
|
+
"class": todayClassNames,
|
|
223
|
+
tabindex: this.$props.tabIndex,
|
|
224
|
+
onKeydown: this.todayKeyDown,
|
|
225
|
+
on: this.v3 ? undefined : {
|
|
226
|
+
"keydown": this.todayKeyDown,
|
|
227
|
+
"click": this.handleTodayClick
|
|
228
|
+
},
|
|
229
|
+
onClick: this.handleTodayClick
|
|
230
|
+
}, this.v3 ? function () {
|
|
231
|
+
return [todayMessage];
|
|
232
|
+
} : [todayMessage]);
|
|
233
|
+
var todayButton = kendo_vue_common_1.getTemplate.call(this, {
|
|
234
|
+
h: h,
|
|
235
|
+
defaultRendering: todayButtonRendering
|
|
236
|
+
});
|
|
212
237
|
return h("div", {
|
|
213
238
|
"class": "k-calendar-header k-hstack",
|
|
214
239
|
style: this.$attrs.style
|
|
@@ -242,19 +267,7 @@ var HeaderVue2 = {
|
|
|
242
267
|
on: this.v3 ? undefined : {
|
|
243
268
|
"click": this.handlePrevClick
|
|
244
269
|
}
|
|
245
|
-
}),
|
|
246
|
-
"class": todayClassNames,
|
|
247
|
-
tabindex: this.$props.tabIndex,
|
|
248
|
-
attrs: this.v3 ? undefined : {
|
|
249
|
-
tabindex: this.$props.tabIndex
|
|
250
|
-
},
|
|
251
|
-
onKeydown: this.todayKeyDown,
|
|
252
|
-
on: this.v3 ? undefined : {
|
|
253
|
-
"keydown": this.todayKeyDown,
|
|
254
|
-
"click": this.handleTodayClick
|
|
255
|
-
},
|
|
256
|
-
onClick: this.handleTodayClick
|
|
257
|
-
}, [todayMessage]),
|
|
270
|
+
}), todayButton,
|
|
258
271
|
// @ts-ignore
|
|
259
272
|
h(kendo_vue_buttons_1.Button, {
|
|
260
273
|
type: "button",
|
|
@@ -166,8 +166,9 @@ var ViewVue2 = {
|
|
|
166
166
|
// tslint:disable-next-line jsx-use-translation-function
|
|
167
167
|
var emptyCell = function emptyCell(idx) {
|
|
168
168
|
return h("td", {
|
|
169
|
-
key: idx
|
|
170
|
-
|
|
169
|
+
key: idx,
|
|
170
|
+
"class": "k-calendar-td k-empty"
|
|
171
|
+
}, ["\xA0"]);
|
|
171
172
|
};
|
|
172
173
|
// const weekNames = this._weekService.getWeekNames(this.weekNumber);
|
|
173
174
|
// const colSpan = this.$props.service.rowLength(this.weekNumber);
|
|
@@ -233,21 +233,16 @@ var ViewListVue2 = {
|
|
|
233
233
|
'k-calendar-decadeview': this.$props.activeView === main_1.CalendarViewEnum.decade,
|
|
234
234
|
'k-calendar-centuryview': this.$props.activeView === main_1.CalendarViewEnum.century
|
|
235
235
|
});
|
|
236
|
-
var tableClassNames = (0, kendo_vue_common_1.classNames)('k-calendar-table'
|
|
237
|
-
'k-month': this.$props.activeView === main_1.CalendarViewEnum.month,
|
|
238
|
-
'k-year': this.$props.activeView === main_1.CalendarViewEnum.year,
|
|
239
|
-
'k-decade': this.$props.activeView === main_1.CalendarViewEnum.decade,
|
|
240
|
-
'k-century': this.$props.activeView === main_1.CalendarViewEnum.century
|
|
241
|
-
});
|
|
236
|
+
var tableClassNames = (0, kendo_vue_common_1.classNames)('k-calendar-table');
|
|
242
237
|
var buildMonthView = function buildMonthView(weekNames) {
|
|
243
238
|
var that = this;
|
|
244
239
|
return h("thead", {
|
|
245
240
|
"class": 'k-calendar-thead'
|
|
246
241
|
}, [h("tr", {
|
|
247
|
-
"class": 'k-calendar-tr
|
|
242
|
+
"class": 'k-calendar-tr'
|
|
248
243
|
}, [weekNames.map(function (name, idx) {
|
|
249
244
|
return h("th", {
|
|
250
|
-
"class": 'k-calendar-
|
|
245
|
+
"class": 'k-calendar-th',
|
|
251
246
|
key: idx,
|
|
252
247
|
onClick: function onClick(ev) {
|
|
253
248
|
return that.handleWeekNameClick(ev, name);
|
|
@@ -36,7 +36,7 @@ var DOMService = /** @class */ (function () {
|
|
|
36
36
|
thead([
|
|
37
37
|
tr([th('MO')])
|
|
38
38
|
])
|
|
39
|
-
]
|
|
39
|
+
])); };
|
|
40
40
|
var repeat = function (count, mapper) { return new Array(count).fill('1').map(mapper); };
|
|
41
41
|
var content = function (rows, cells) {
|
|
42
42
|
if (cells === void 0) { cells = 1; }
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-dateinputs',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1715340025,
|
|
12
12
|
version: '',
|
|
13
13
|
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'
|
|
14
14
|
};
|
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": "4.4.0-dev.
|
|
4
|
+
"version": "4.4.0-dev.202405101126",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@progress/kendo-date-math": "1.5.12",
|
|
57
|
-
"@progress/kendo-vue-buttons": "4.4.0-dev.
|
|
58
|
-
"@progress/kendo-vue-common": "4.4.0-dev.
|
|
59
|
-
"@progress/kendo-vue-labels": "4.4.0-dev.
|
|
60
|
-
"@progress/kendo-vue-popup": "4.4.0-dev.
|
|
57
|
+
"@progress/kendo-vue-buttons": "4.4.0-dev.202405101126",
|
|
58
|
+
"@progress/kendo-vue-common": "4.4.0-dev.202405101126",
|
|
59
|
+
"@progress/kendo-vue-labels": "4.4.0-dev.202405101126",
|
|
60
|
+
"@progress/kendo-vue-popup": "4.4.0-dev.202405101126"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@progress/kendo-data-query": "^1.5.4",
|
|
64
64
|
"@progress/kendo-licensing": "^1.3.0",
|
|
65
65
|
"@progress/kendo-svg-icons": "^2.0.0",
|
|
66
|
-
"@progress/kendo-vue-dropdowns": "4.4.0-dev.
|
|
67
|
-
"@progress/kendo-vue-intl": "4.4.0-dev.
|
|
66
|
+
"@progress/kendo-vue-dropdowns": "4.4.0-dev.202405101126",
|
|
67
|
+
"@progress/kendo-vue-intl": "4.4.0-dev.202405101126"
|
|
68
68
|
},
|
|
69
69
|
"author": "Progress",
|
|
70
70
|
"license": "SEE LICENSE IN LICENSE.md",
|