@progress/kendo-vue-scheduler 3.1.1 → 3.1.3-dev.202203311441
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-scheduler.js +2 -2
- package/dist/es/Scheduler.js +4 -1
- package/dist/es/components/SchedulerActionButtons.d.ts +42 -0
- package/dist/es/components/SchedulerActionButtons.js +89 -0
- package/dist/es/components/SchedulerForm.js +58 -81
- package/dist/es/components/header/view-selector/ViewSelectorItem.js +1 -1
- package/dist/es/components/header/view-selector/ViewSelectorList.js +3 -3
- package/dist/es/editors/SchedulerFormEditor.js +331 -130
- package/dist/es/editors/ZonedDateTime.d.ts +2 -4
- package/dist/es/editors/ZonedDateTime.js +32 -15
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/recurrence/RecurrenceEditor.d.ts +3 -0
- package/dist/es/recurrence/RecurrenceEditor.js +307 -457
- package/dist/es/recurrence/RecurrenceFrequencyEditor.js +38 -12
- package/dist/es/slots/SchedulerEditSlot.js +41 -12
- package/dist/es/slots/SchedulerSlot.js +1 -0
- package/dist/es/slots/SchedulerViewSlot.js +13 -4
- package/dist/es/views/agenda/AgendaView.d.ts +1 -1
- package/dist/es/views/agenda/AgendaView.js +39 -9
- package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
- package/dist/es/views/agenda/AgendaViewBody.js +2 -1
- package/dist/es/views/common/VerticalResourceIterator.js +12 -6
- package/dist/es/views/day/DayView.js +18 -3
- package/dist/es/views/day/DayViewAllDaySlots.d.ts +1 -0
- package/dist/es/views/day/DayViewAllDaySlots.js +9 -3
- package/dist/es/views/day/DayViewMiddleRow.d.ts +12 -0
- package/dist/es/views/day/DayViewMiddleRow.js +1 -0
- package/dist/es/views/day/DayViewVerticalRow.d.ts +1 -0
- package/dist/es/views/day/DayViewVerticalRow.js +5 -2
- package/dist/es/views/day/DayViewVerticalSlotsRow.d.ts +1 -0
- package/dist/es/views/day/DayViewVerticalSlotsRow.js +1 -0
- package/dist/es/views/day/MultiDayView.js +65 -29
- package/dist/es/views/month/MonthView.js +10 -4
- package/dist/es/views/month/MonthViewBody.d.ts +1 -0
- package/dist/es/views/month/MonthViewBody.js +1 -0
- package/dist/es/views/time/MultiDayTimelineView.js +12 -4
- package/dist/es/views/time/TimelineView.js +15 -3
- package/dist/es/views/time/TimelineViewBody.d.ts +1 -0
- package/dist/es/views/time/TimelineViewBody.js +1 -0
- package/dist/es/views/week/WeekView.js +10 -1
- package/dist/es/views/week/WorkWeekView.js +10 -1
- package/dist/npm/Scheduler.js +4 -1
- package/dist/npm/components/SchedulerActionButtons.d.ts +42 -0
- package/dist/npm/components/SchedulerActionButtons.js +100 -0
- package/dist/npm/components/SchedulerForm.js +57 -80
- package/dist/npm/components/header/view-selector/ViewSelectorItem.js +1 -1
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +3 -3
- package/dist/npm/editors/SchedulerFormEditor.js +336 -129
- package/dist/npm/editors/ZonedDateTime.d.ts +2 -4
- package/dist/npm/editors/ZonedDateTime.js +32 -15
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/recurrence/RecurrenceEditor.d.ts +3 -0
- package/dist/npm/recurrence/RecurrenceEditor.js +307 -457
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +38 -12
- package/dist/npm/slots/SchedulerEditSlot.js +42 -12
- package/dist/npm/slots/SchedulerSlot.js +1 -0
- package/dist/npm/slots/SchedulerViewSlot.js +13 -4
- package/dist/npm/views/agenda/AgendaView.d.ts +1 -1
- package/dist/npm/views/agenda/AgendaView.js +39 -9
- package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
- package/dist/npm/views/agenda/AgendaViewBody.js +2 -1
- package/dist/npm/views/common/VerticalResourceIterator.js +12 -6
- package/dist/npm/views/day/DayView.js +18 -3
- package/dist/npm/views/day/DayViewAllDaySlots.d.ts +1 -0
- package/dist/npm/views/day/DayViewAllDaySlots.js +9 -3
- package/dist/npm/views/day/DayViewMiddleRow.d.ts +12 -0
- package/dist/npm/views/day/DayViewMiddleRow.js +1 -0
- package/dist/npm/views/day/DayViewVerticalRow.d.ts +1 -0
- package/dist/npm/views/day/DayViewVerticalRow.js +5 -2
- package/dist/npm/views/day/DayViewVerticalSlotsRow.d.ts +1 -0
- package/dist/npm/views/day/DayViewVerticalSlotsRow.js +1 -0
- package/dist/npm/views/day/MultiDayView.js +65 -29
- package/dist/npm/views/month/MonthView.js +10 -4
- package/dist/npm/views/month/MonthViewBody.d.ts +1 -0
- package/dist/npm/views/month/MonthViewBody.js +1 -0
- package/dist/npm/views/time/MultiDayTimelineView.js +12 -4
- package/dist/npm/views/time/TimelineView.js +15 -3
- package/dist/npm/views/time/TimelineViewBody.d.ts +1 -0
- package/dist/npm/views/time/TimelineViewBody.js +1 -0
- package/dist/npm/views/week/WeekView.js +10 -1
- package/dist/npm/views/week/WorkWeekView.js +10 -1
- package/package.json +12 -12
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SchedulerActionButtonsVue2 = exports.SchedulerActionButtons = void 0; // @ts-ignore
|
|
7
|
+
|
|
8
|
+
var Vue = require("vue");
|
|
9
|
+
|
|
10
|
+
var allVue = Vue;
|
|
11
|
+
var gh = allVue.h;
|
|
12
|
+
|
|
13
|
+
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
14
|
+
|
|
15
|
+
var kendo_vue_dialogs_1 = require("@progress/kendo-vue-dialogs"); // tslint:enable:max-line-length
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var SchedulerActionButtonsVue2 = {
|
|
19
|
+
name: 'KendoSchedulerActionButtons',
|
|
20
|
+
props: {
|
|
21
|
+
editSaveMessage: String,
|
|
22
|
+
editCancelMessage: String
|
|
23
|
+
},
|
|
24
|
+
inject: {
|
|
25
|
+
kendoForm: {
|
|
26
|
+
default: {}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
setup: !gh ? undefined : function () {
|
|
31
|
+
var v3 = !!gh;
|
|
32
|
+
return {
|
|
33
|
+
v3: v3
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
render: function render(createElement) {
|
|
38
|
+
var _this = this;
|
|
39
|
+
|
|
40
|
+
var h = gh || createElement;
|
|
41
|
+
return (// @ts-ignore function children
|
|
42
|
+
h(kendo_vue_dialogs_1.DialogActionsBar, this.v3 ? function () {
|
|
43
|
+
return [// @ts-ignore function children
|
|
44
|
+
h(kendo_vue_buttons_1.Button, {
|
|
45
|
+
type: "submit",
|
|
46
|
+
attrs: _this.v3 ? undefined : {
|
|
47
|
+
type: "submit",
|
|
48
|
+
disabled: !_this.kendoForm.allowSubmit
|
|
49
|
+
},
|
|
50
|
+
disabled: !_this.kendoForm.allowSubmit,
|
|
51
|
+
onClick: _this.onSubmit,
|
|
52
|
+
on: _this.v3 ? undefined : {
|
|
53
|
+
"click": _this.onSubmit
|
|
54
|
+
}
|
|
55
|
+
}, _this.v3 ? function () {
|
|
56
|
+
return [_this.editSaveMessage];
|
|
57
|
+
} : [_this.editSaveMessage]), // @ts-ignore function children
|
|
58
|
+
h(kendo_vue_buttons_1.Button, {
|
|
59
|
+
onClick: _this.handleCancel,
|
|
60
|
+
on: _this.v3 ? undefined : {
|
|
61
|
+
"click": _this.handleCancel
|
|
62
|
+
}
|
|
63
|
+
}, _this.v3 ? function () {
|
|
64
|
+
return [_this.editCancelMessage];
|
|
65
|
+
} : [_this.editCancelMessage])];
|
|
66
|
+
} : [h(kendo_vue_buttons_1.Button, {
|
|
67
|
+
type: "submit",
|
|
68
|
+
attrs: _this.v3 ? undefined : {
|
|
69
|
+
type: "submit",
|
|
70
|
+
disabled: !_this.kendoForm.allowSubmit
|
|
71
|
+
},
|
|
72
|
+
disabled: !_this.kendoForm.allowSubmit,
|
|
73
|
+
onClick: _this.onSubmit,
|
|
74
|
+
on: _this.v3 ? undefined : {
|
|
75
|
+
"click": _this.onSubmit
|
|
76
|
+
}
|
|
77
|
+
}, _this.v3 ? function () {
|
|
78
|
+
return [_this.editSaveMessage];
|
|
79
|
+
} : [_this.editSaveMessage]), h(kendo_vue_buttons_1.Button, {
|
|
80
|
+
onClick: _this.handleCancel,
|
|
81
|
+
on: _this.v3 ? undefined : {
|
|
82
|
+
"click": _this.handleCancel
|
|
83
|
+
}
|
|
84
|
+
}, _this.v3 ? function () {
|
|
85
|
+
return [_this.editCancelMessage];
|
|
86
|
+
} : [_this.editCancelMessage])])
|
|
87
|
+
);
|
|
88
|
+
},
|
|
89
|
+
methods: {
|
|
90
|
+
onSubmit: function onSubmit(e) {
|
|
91
|
+
this.kendoForm.onSubmit(e);
|
|
92
|
+
},
|
|
93
|
+
handleCancel: function handleCancel(e) {
|
|
94
|
+
this.$emit('cancel', e);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
exports.SchedulerActionButtonsVue2 = SchedulerActionButtonsVue2;
|
|
99
|
+
var SchedulerActionButtons = SchedulerActionButtonsVue2;
|
|
100
|
+
exports.SchedulerActionButtons = SchedulerActionButtons;
|
|
@@ -27,7 +27,7 @@ var allVue = Vue;
|
|
|
27
27
|
var gh = allVue.h;
|
|
28
28
|
var inject = allVue.inject;
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var SchedulerActionButtons_1 = require("./SchedulerActionButtons");
|
|
31
31
|
|
|
32
32
|
var kendo_vue_form_1 = require("@progress/kendo-vue-form");
|
|
33
33
|
|
|
@@ -35,7 +35,8 @@ var kendo_vue_dialogs_1 = require("@progress/kendo-vue-dialogs");
|
|
|
35
35
|
|
|
36
36
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
37
37
|
|
|
38
|
-
var SchedulerFormEditor_1 = require("../editors/SchedulerFormEditor");
|
|
38
|
+
var SchedulerFormEditor_1 = require("../editors/SchedulerFormEditor"); // import { useSchedulerFieldsContext } from '../context';
|
|
39
|
+
|
|
39
40
|
|
|
40
41
|
var messages_1 = require("../messages"); // tslint:enable:max-line-length
|
|
41
42
|
|
|
@@ -46,9 +47,18 @@ var SchedulerFormVue2 = {
|
|
|
46
47
|
dataItem: Object,
|
|
47
48
|
renderForm: Object,
|
|
48
49
|
editor: [String, Function, Object],
|
|
49
|
-
dialog: [String, Function, Object]
|
|
50
|
+
dialog: [String, Function, Object],
|
|
51
|
+
validator: {
|
|
52
|
+
type: Function,
|
|
53
|
+
default: function _default() {
|
|
54
|
+
return {};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
50
57
|
},
|
|
51
58
|
inject: {
|
|
59
|
+
ks: {
|
|
60
|
+
default: null
|
|
61
|
+
},
|
|
52
62
|
kendoLocalizationService: {
|
|
53
63
|
default: null
|
|
54
64
|
}
|
|
@@ -85,8 +95,10 @@ var SchedulerFormVue2 = {
|
|
|
85
95
|
title: editorTitleMessage,
|
|
86
96
|
attrs: this.v3 ? undefined : {
|
|
87
97
|
title: editorTitleMessage,
|
|
98
|
+
appendTo: 'body',
|
|
88
99
|
minWidth: 600
|
|
89
100
|
},
|
|
101
|
+
appendTo: 'body',
|
|
90
102
|
minWidth: 600,
|
|
91
103
|
onClose: this.handleClose,
|
|
92
104
|
on: this.v3 ? undefined : {
|
|
@@ -113,54 +125,35 @@ var SchedulerFormVue2 = {
|
|
|
113
125
|
attrs: _this.v3 ? undefined : {
|
|
114
126
|
as: Editor
|
|
115
127
|
}
|
|
128
|
+
}), h(SchedulerActionButtons_1.SchedulerActionButtons, {
|
|
129
|
+
editSaveMessage: editSaveMessage,
|
|
130
|
+
attrs: _this.v3 ? undefined : {
|
|
131
|
+
editSaveMessage: editSaveMessage,
|
|
132
|
+
editCancelMessage: editCancelMessage
|
|
133
|
+
},
|
|
134
|
+
editCancelMessage: editCancelMessage,
|
|
135
|
+
onCancel: _this.handleCancel,
|
|
136
|
+
on: _this.v3 ? undefined : {
|
|
137
|
+
"cancel": _this.handleCancel
|
|
138
|
+
}
|
|
116
139
|
})];
|
|
117
140
|
} : [h(SchedulerFormEditor_1.SchedulerFormEditor, {
|
|
118
141
|
as: Editor,
|
|
119
142
|
attrs: _this.v3 ? undefined : {
|
|
120
143
|
as: Editor
|
|
121
144
|
}
|
|
122
|
-
})
|
|
123
|
-
|
|
124
|
-
return [// @ts-ignore function children
|
|
125
|
-
h(kendo_vue_buttons_1.Button, {
|
|
126
|
-
disabled: !_this.renderProps.allowSubmit,
|
|
127
|
-
attrs: _this.v3 ? undefined : {
|
|
128
|
-
disabled: !_this.renderProps.allowSubmit
|
|
129
|
-
},
|
|
130
|
-
onClick: _this.renderProps.onSubmit,
|
|
131
|
-
on: _this.v3 ? undefined : {
|
|
132
|
-
"click": _this.renderProps.onSubmit
|
|
133
|
-
}
|
|
134
|
-
}, _this.v3 ? function () {
|
|
135
|
-
return [editSaveMessage];
|
|
136
|
-
} : [editSaveMessage]), // @ts-ignore function children
|
|
137
|
-
h(kendo_vue_buttons_1.Button, {
|
|
138
|
-
onClick: _this.handleCancel,
|
|
139
|
-
on: _this.v3 ? undefined : {
|
|
140
|
-
"click": _this.handleCancel
|
|
141
|
-
}
|
|
142
|
-
}, _this.v3 ? function () {
|
|
143
|
-
return [editCancelMessage];
|
|
144
|
-
} : [editCancelMessage])];
|
|
145
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
146
|
-
disabled: !_this.renderProps.allowSubmit,
|
|
145
|
+
}), h(SchedulerActionButtons_1.SchedulerActionButtons, {
|
|
146
|
+
editSaveMessage: editSaveMessage,
|
|
147
147
|
attrs: _this.v3 ? undefined : {
|
|
148
|
-
|
|
148
|
+
editSaveMessage: editSaveMessage,
|
|
149
|
+
editCancelMessage: editCancelMessage
|
|
149
150
|
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"click": _this.renderProps.onSubmit
|
|
153
|
-
}
|
|
154
|
-
}, _this.v3 ? function () {
|
|
155
|
-
return [editSaveMessage];
|
|
156
|
-
} : [editSaveMessage]), h(kendo_vue_buttons_1.Button, {
|
|
157
|
-
onClick: _this.handleCancel,
|
|
151
|
+
editCancelMessage: editCancelMessage,
|
|
152
|
+
onCancel: _this.handleCancel,
|
|
158
153
|
on: _this.v3 ? undefined : {
|
|
159
|
-
"
|
|
154
|
+
"cancel": _this.handleCancel
|
|
160
155
|
}
|
|
161
|
-
}
|
|
162
|
-
return [editCancelMessage];
|
|
163
|
-
} : [editCancelMessage])])];
|
|
156
|
+
})])];
|
|
164
157
|
} : [h(kendo_vue_form_1.Form, {
|
|
165
158
|
initialValues: _this.$props.dataItem,
|
|
166
159
|
attrs: _this.v3 ? undefined : {
|
|
@@ -178,51 +171,35 @@ var SchedulerFormVue2 = {
|
|
|
178
171
|
attrs: _this.v3 ? undefined : {
|
|
179
172
|
as: Editor
|
|
180
173
|
}
|
|
174
|
+
}), h(SchedulerActionButtons_1.SchedulerActionButtons, {
|
|
175
|
+
editSaveMessage: editSaveMessage,
|
|
176
|
+
attrs: _this.v3 ? undefined : {
|
|
177
|
+
editSaveMessage: editSaveMessage,
|
|
178
|
+
editCancelMessage: editCancelMessage
|
|
179
|
+
},
|
|
180
|
+
editCancelMessage: editCancelMessage,
|
|
181
|
+
onCancel: _this.handleCancel,
|
|
182
|
+
on: _this.v3 ? undefined : {
|
|
183
|
+
"cancel": _this.handleCancel
|
|
184
|
+
}
|
|
181
185
|
})];
|
|
182
186
|
} : [h(SchedulerFormEditor_1.SchedulerFormEditor, {
|
|
183
187
|
as: Editor,
|
|
184
188
|
attrs: _this.v3 ? undefined : {
|
|
185
189
|
as: Editor
|
|
186
190
|
}
|
|
187
|
-
})
|
|
188
|
-
|
|
189
|
-
disabled: !_this.renderProps.allowSubmit,
|
|
190
|
-
attrs: _this.v3 ? undefined : {
|
|
191
|
-
disabled: !_this.renderProps.allowSubmit
|
|
192
|
-
},
|
|
193
|
-
onClick: _this.renderProps.onSubmit,
|
|
194
|
-
on: _this.v3 ? undefined : {
|
|
195
|
-
"click": _this.renderProps.onSubmit
|
|
196
|
-
}
|
|
197
|
-
}, _this.v3 ? function () {
|
|
198
|
-
return [editSaveMessage];
|
|
199
|
-
} : [editSaveMessage]), h(kendo_vue_buttons_1.Button, {
|
|
200
|
-
onClick: _this.handleCancel,
|
|
201
|
-
on: _this.v3 ? undefined : {
|
|
202
|
-
"click": _this.handleCancel
|
|
203
|
-
}
|
|
204
|
-
}, _this.v3 ? function () {
|
|
205
|
-
return [editCancelMessage];
|
|
206
|
-
} : [editCancelMessage])];
|
|
207
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
208
|
-
disabled: !_this.renderProps.allowSubmit,
|
|
191
|
+
}), h(SchedulerActionButtons_1.SchedulerActionButtons, {
|
|
192
|
+
editSaveMessage: editSaveMessage,
|
|
209
193
|
attrs: _this.v3 ? undefined : {
|
|
210
|
-
|
|
194
|
+
editSaveMessage: editSaveMessage,
|
|
195
|
+
editCancelMessage: editCancelMessage
|
|
211
196
|
},
|
|
212
|
-
|
|
197
|
+
editCancelMessage: editCancelMessage,
|
|
198
|
+
onCancel: _this.handleCancel,
|
|
213
199
|
on: _this.v3 ? undefined : {
|
|
214
|
-
"
|
|
200
|
+
"cancel": _this.handleCancel
|
|
215
201
|
}
|
|
216
|
-
}
|
|
217
|
-
return [editSaveMessage];
|
|
218
|
-
} : [editSaveMessage]), h(kendo_vue_buttons_1.Button, {
|
|
219
|
-
onClick: _this.handleCancel,
|
|
220
|
-
on: _this.v3 ? undefined : {
|
|
221
|
-
"click": _this.handleCancel
|
|
222
|
-
}
|
|
223
|
-
}, _this.v3 ? function () {
|
|
224
|
-
return [editCancelMessage];
|
|
225
|
-
} : [editCancelMessage])])])
|
|
202
|
+
})])])
|
|
226
203
|
);
|
|
227
204
|
},
|
|
228
205
|
methods: {
|
|
@@ -249,20 +226,20 @@ var SchedulerFormVue2 = {
|
|
|
249
226
|
});
|
|
250
227
|
},
|
|
251
228
|
startAfterEndValidator: function startAfterEndValidator(value, formValueGetter) {
|
|
252
|
-
return Boolean(value && formValueGetter(this.fields.end) && value.getTime() > formValueGetter(this.fields.end).getTime()) ? this.startValidationMessage : undefined;
|
|
229
|
+
return Boolean(value && formValueGetter(this.ks.fields.end) && value.getTime() > formValueGetter(this.ks.fields.end).getTime()) ? this.startValidationMessage : undefined;
|
|
253
230
|
},
|
|
254
231
|
endAfterStartValidator: function endAfterStartValidator(value, formValueGetter) {
|
|
255
|
-
return Boolean(value && formValueGetter(this.fields.start) && value.getTime() < formValueGetter(this.fields.start).getTime()) ? this.endValidationMessage : undefined;
|
|
232
|
+
return Boolean(value && formValueGetter(this.ks.fields.start) && value.getTime() < formValueGetter(this.ks.fields.start).getTime()) ? this.endValidationMessage : undefined;
|
|
256
233
|
},
|
|
257
234
|
requiredValidator: function requiredValidator(value) {
|
|
258
235
|
return value ? undefined : this.requiredValidationMessage;
|
|
259
236
|
},
|
|
260
237
|
formValidator: function formValidator(_dataItem, formValueGetter) {
|
|
261
238
|
var result = {};
|
|
262
|
-
result[this.fields.start] = [this.requiredValidator(formValueGetter(this.fields.start)), this.startAfterEndValidator(formValueGetter(this.fields.start), formValueGetter)].filter(Boolean).reduce(function (current, acc) {
|
|
239
|
+
result[this.ks.fields.start] = [this.requiredValidator(formValueGetter(this.ks.fields.start)), this.startAfterEndValidator(formValueGetter(this.ks.fields.start), formValueGetter)].filter(Boolean).reduce(function (current, acc) {
|
|
263
240
|
return current || acc;
|
|
264
241
|
}, '');
|
|
265
|
-
result[this.fields.end] = [this.requiredValidator(formValueGetter(this.fields.start)), this.endAfterStartValidator(formValueGetter(this.fields.start), formValueGetter)].filter(Boolean).reduce(function (current, acc) {
|
|
242
|
+
result[this.ks.fields.end] = [this.requiredValidator(formValueGetter(this.ks.fields.start)), this.endAfterStartValidator(formValueGetter(this.ks.fields.start), formValueGetter)].filter(Boolean).reduce(function (current, acc) {
|
|
266
243
|
return current || acc;
|
|
267
244
|
}, '');
|
|
268
245
|
var additionalValidator = this.$props.validator(_dataItem, formValueGetter);
|
|
@@ -45,7 +45,7 @@ var ViewSelectorItemVue2 = {
|
|
|
45
45
|
var h = gh || createElement;
|
|
46
46
|
var localization = kendo_vue_intl_1.provideLocalizationService(this);
|
|
47
47
|
var nameTitle = 'scheduler.' + this.$props.view.name + 'ViewTitle';
|
|
48
|
-
var name = localization.toLanguageString(nameTitle, messages_1.messages[nameTitle]);
|
|
48
|
+
var name = localization.toLanguageString(nameTitle, messages_1.messages[nameTitle]) || this.$props.view.name;
|
|
49
49
|
var title = this.$props.view.title || name;
|
|
50
50
|
return (// @ts-ignore function children
|
|
51
51
|
h(kendo_vue_buttons_1.Button, {
|
|
@@ -91,7 +91,7 @@ var ViewSelectorListVue2 = {
|
|
|
91
91
|
return v.name === _this.ks.activeViewName;
|
|
92
92
|
});
|
|
93
93
|
var activeNameTitle = 'scheduler.' + activeView.name + 'ViewTitle';
|
|
94
|
-
var activeName = this.localization.toLanguageString(activeNameTitle, messages_1.messages[activeNameTitle]);
|
|
94
|
+
var activeName = this.localization.toLanguageString(activeNameTitle, messages_1.messages[activeNameTitle]) || activeView.name;
|
|
95
95
|
return h("div", {
|
|
96
96
|
"class": "k-scheduler-views-wrapper"
|
|
97
97
|
}, [activeView && this.media === 'mobile' && // @ts-ignore function children
|
|
@@ -111,7 +111,7 @@ var ViewSelectorListVue2 = {
|
|
|
111
111
|
textField: "title",
|
|
112
112
|
items: views.map(function (v) {
|
|
113
113
|
var nameTitle = 'scheduler.' + v.name + 'ViewTitle';
|
|
114
|
-
var name = this.localization.toLanguageString(nameTitle, messages_1.messages[nameTitle]);
|
|
114
|
+
var name = this.localization.toLanguageString(nameTitle, messages_1.messages[nameTitle]) || v.name;
|
|
115
115
|
return __assign(__assign({}, v.props), {
|
|
116
116
|
selected: v.name === this.ks.activeViewName,
|
|
117
117
|
name: v.name,
|
|
@@ -123,7 +123,7 @@ var ViewSelectorListVue2 = {
|
|
|
123
123
|
textField: "title",
|
|
124
124
|
items: views.map(function (v) {
|
|
125
125
|
var nameTitle = 'scheduler.' + v.name + 'ViewTitle';
|
|
126
|
-
var name = this.localization.toLanguageString(nameTitle, messages_1.messages[nameTitle]);
|
|
126
|
+
var name = this.localization.toLanguageString(nameTitle, messages_1.messages[nameTitle]) || v.name;
|
|
127
127
|
return __assign(__assign({}, v.props), {
|
|
128
128
|
selected: v.name === this.ks.activeViewName,
|
|
129
129
|
name: v.name,
|