@progress/kendo-vue-scheduler 9.3.0-develop.4 → 9.3.0-develop.6
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/Scheduler.d.ts +67 -4
- package/Scheduler.js +1 -1
- package/Scheduler.mjs +267 -115
- package/components/BaseView.js +1 -1
- package/components/BaseView.mjs +10 -4
- package/components/CurrentTimeMarker.js +1 -1
- package/components/CurrentTimeMarker.mjs +9 -9
- package/components/CurrentTimeMarkerArrow.js +1 -1
- package/components/CurrentTimeMarkerArrow.mjs +3 -3
- package/components/DateHeaderCell.js +1 -1
- package/components/DateHeaderCell.mjs +22 -13
- package/components/MoreEventsPopover.d.ts +77 -0
- package/components/MoreEventsPopover.js +8 -0
- package/components/MoreEventsPopover.mjs +125 -0
- package/components/SchedulerActionButtons.d.ts +6 -0
- package/components/SchedulerActionButtons.js +1 -1
- package/components/SchedulerActionButtons.mjs +25 -19
- package/components/SchedulerForm.d.ts +7 -0
- package/components/SchedulerForm.js +1 -1
- package/components/SchedulerForm.mjs +69 -61
- package/components/SchedulerOccurrenceDialog.d.ts +4 -4
- package/components/SchedulerOccurrenceDialog.js +1 -1
- package/components/SchedulerOccurrenceDialog.mjs +35 -26
- package/components/SchedulerRemoveDialog.d.ts +6 -0
- package/components/SchedulerRemoveDialog.js +1 -1
- package/components/SchedulerRemoveDialog.mjs +24 -23
- package/components/ShowMoreItemsButton.d.ts +10 -1
- package/components/ShowMoreItemsButton.js +1 -1
- package/components/ShowMoreItemsButton.mjs +40 -18
- package/components/footer/bussiness-hours/BusinessHours.js +1 -1
- package/components/footer/bussiness-hours/BusinessHours.mjs +16 -21
- package/components/header/SchedulerAdaptiveHeader.js +1 -1
- package/components/header/SchedulerAdaptiveHeader.mjs +28 -26
- package/components/header/SchedulerHeader.d.ts +5 -1
- package/components/header/SchedulerHeader.js +1 -1
- package/components/header/SchedulerHeader.mjs +11 -7
- package/components/header/navigation/NavigationDatePicker.d.ts +22 -3
- package/components/header/navigation/NavigationDatePicker.js +1 -1
- package/components/header/navigation/NavigationDatePicker.mjs +27 -30
- package/components/header/view-selector/ViewSelectorList.d.ts +26 -6
- package/components/header/view-selector/ViewSelectorList.js +1 -1
- package/components/header/view-selector/ViewSelectorList.mjs +55 -49
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/editors/RemoveRecurrenceConfirmDialog.d.ts +29 -0
- package/editors/RemoveRecurrenceConfirmDialog.js +8 -0
- package/editors/RemoveRecurrenceConfirmDialog.mjs +65 -0
- package/editors/ResourceEditor.d.ts +3 -0
- package/editors/ResourceEditor.js +1 -1
- package/editors/ResourceEditor.mjs +12 -10
- package/editors/SchedulerFormEditor.d.ts +1067 -2953
- package/editors/SchedulerFormEditor.js +1 -1
- package/editors/SchedulerFormEditor.mjs +297 -365
- package/editors/SchedulerRecurrenceDialog.d.ts +143 -0
- package/editors/SchedulerRecurrenceDialog.js +8 -0
- package/editors/SchedulerRecurrenceDialog.mjs +575 -0
- package/editors/TimezoneDropDownList.d.ts +46 -0
- package/editors/TimezoneDropDownList.js +8 -0
- package/editors/TimezoneDropDownList.mjs +63 -0
- package/editors/ZonedSplitDateTime.d.ts +65 -0
- package/editors/ZonedSplitDateTime.js +8 -0
- package/editors/ZonedSplitDateTime.mjs +100 -0
- package/hooks/main.d.ts +1 -0
- package/hooks/useGroupRowHeightSync.d.ts +10 -0
- package/hooks/useRecurrenceSummary.d.ts +10 -0
- package/hooks/useRecurrenceSummary.js +8 -0
- package/hooks/useRecurrenceSummary.mjs +74 -0
- package/hooks/useRowSync.js +1 -1
- package/hooks/useRowSync.mjs +23 -4
- package/hooks/useSlotExpand.js +1 -1
- package/hooks/useSlotExpand.mjs +36 -28
- package/index.d.mts +9 -3
- package/index.d.ts +9 -3
- package/index.js +1 -1
- package/index.mjs +83 -71
- package/items/SchedulerEditItem.d.ts +14 -3
- package/items/SchedulerEditItem.js +1 -1
- package/items/SchedulerEditItem.mjs +130 -72
- package/items/SchedulerItem.d.ts +10 -0
- package/items/SchedulerItem.js +1 -1
- package/items/SchedulerItem.mjs +153 -135
- package/items/SchedulerProportionalViewItem.d.ts +183 -0
- package/items/SchedulerProportionalViewItem.js +8 -0
- package/items/SchedulerProportionalViewItem.mjs +378 -0
- package/items/SchedulerViewItem.d.ts +3 -0
- package/items/SchedulerViewItem.js +1 -1
- package/items/SchedulerViewItem.mjs +107 -67
- package/messages/main.d.ts +186 -0
- package/messages/main.js +1 -1
- package/messages/main.mjs +226 -102
- package/models/Item.d.ts +2 -0
- package/models/Occurrence.d.ts +2 -0
- package/models/SchedulerModelFields.d.ts +5 -0
- package/models/SchedulerResource.d.ts +6 -0
- package/models/SchedulerView.d.ts +2 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -11
- package/recurrence/common.js +1 -1
- package/recurrence/common.mjs +36 -39
- package/services/itemsService.js +1 -1
- package/services/itemsService.mjs +31 -27
- package/services/occurrenceService.js +1 -1
- package/services/occurrenceService.mjs +41 -35
- package/slots/SchedulerEditSlot.d.ts +2 -0
- package/slots/SchedulerEditSlot.js +1 -1
- package/slots/SchedulerEditSlot.mjs +27 -28
- package/slots/SchedulerSlot.d.ts +4 -0
- package/slots/SchedulerSlot.js +1 -1
- package/slots/SchedulerSlot.mjs +10 -1
- package/slots/SchedulerViewSlot.d.ts +5 -0
- package/slots/SchedulerViewSlot.js +1 -1
- package/slots/SchedulerViewSlot.mjs +70 -50
- package/tasks/SchedulerEditTask.d.ts +6 -0
- package/tasks/SchedulerEditTask.js +1 -1
- package/tasks/SchedulerEditTask.mjs +64 -23
- package/tasks/SchedulerTask.d.ts +15 -0
- package/tasks/SchedulerTask.js +1 -1
- package/tasks/SchedulerTask.mjs +39 -28
- package/tasks/SchedulerViewTask.d.ts +9 -0
- package/tasks/SchedulerViewTask.js +1 -1
- package/tasks/SchedulerViewTask.mjs +10 -5
- package/utils/main.d.ts +4 -1
- package/utils/main.js +1 -1
- package/utils/main.mjs +133 -112
- package/views/agenda/AgendaView.js +1 -1
- package/views/agenda/AgendaView.mjs +28 -22
- package/views/agenda/AgendaViewBody.js +1 -1
- package/views/agenda/AgendaViewBody.mjs +44 -42
- package/views/agenda/AgendaViewHead.js +1 -1
- package/views/agenda/AgendaViewHead.mjs +14 -10
- package/views/common/SchedulerDrag.d.ts +12 -0
- package/views/common/SchedulerResize.d.ts +12 -0
- package/views/common/VerticalResourceIterator.d.ts +3 -0
- package/views/common/VerticalResourceIterator.js +1 -1
- package/views/common/VerticalResourceIterator.mjs +16 -9
- package/views/day/DayView.js +1 -1
- package/views/day/DayView.mjs +2 -2
- package/views/day/MultiDayView.js +1 -1
- package/views/day/MultiDayView.mjs +98 -127
- package/views/month/MonthView.d.ts +8 -2
- package/views/month/MonthView.js +1 -1
- package/views/month/MonthView.mjs +115 -109
- package/views/month/MonthViewBody.d.ts +7 -2
- package/views/month/MonthViewBody.js +1 -1
- package/views/month/MonthViewBody.mjs +15 -11
- package/views/time/MultiDayTimelineView.d.ts +5 -0
- package/views/time/MultiDayTimelineView.js +1 -1
- package/views/time/MultiDayTimelineView.mjs +125 -132
- package/views/time/TimelineView.js +1 -1
- package/views/time/TimelineView.mjs +2 -2
- package/views/week/WeekView.js +1 -1
- package/views/week/WeekView.mjs +2 -2
- package/views/week/WorkWeekView.js +1 -1
- package/views/week/WorkWeekView.mjs +9 -9
- package/components/header/navigation/DatePickerToggleButton.d.ts +0 -16
- package/editors/FilterableComboBox.d.ts +0 -38
- package/editors/FilterableComboBox.js +0 -8
- package/editors/FilterableComboBox.mjs +0 -61
- package/editors/ZonedDateTime.js +0 -8
- package/editors/ZonedDateTime.mjs +0 -57
|
@@ -5,16 +5,16 @@
|
|
|
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 { showFullDay as
|
|
10
|
-
import { ToolbarItem as a, Button as c } from "@progress/kendo-vue-buttons";
|
|
8
|
+
import { defineComponent as s, createVNode as l, isVNode as r } from "vue";
|
|
9
|
+
import { showFullDay as t, showWorkDay as e, messages as n } from "../../../messages/main.mjs";
|
|
11
10
|
import { getDefaultSlots as u } from "@progress/kendo-vue-common";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
11
|
+
import { Button as a } from "@progress/kendo-vue-buttons";
|
|
12
|
+
import { provideLocalizationService as c } from "@progress/kendo-vue-intl";
|
|
13
|
+
import { clockIcon as h } from "@progress/kendo-svg-icons";
|
|
14
|
+
function m(o) {
|
|
15
15
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !r(o);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const g = /* @__PURE__ */ s({
|
|
18
18
|
name: "KendoBusinessHours",
|
|
19
19
|
emits: {
|
|
20
20
|
click: null
|
|
@@ -32,19 +32,14 @@ const w = /* @__PURE__ */ l({
|
|
|
32
32
|
},
|
|
33
33
|
render() {
|
|
34
34
|
let o;
|
|
35
|
-
const
|
|
36
|
-
return this.localization =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
svgIcon: m,
|
|
44
|
-
onClick: this.handleShowWorkHoursClick
|
|
45
|
-
}, d(o = this.localization.toLanguageString(this.ks.showWorkHours ? i : s, n[this.ks.showWorkHours ? i : s])) ? o : {
|
|
46
|
-
default: () => [o]
|
|
47
|
-
})]
|
|
35
|
+
const i = u(this);
|
|
36
|
+
return this.localization = c(this), this.slotDuration && this.slotDuration < 1440 ? i || l(a, {
|
|
37
|
+
tabIndex: -1,
|
|
38
|
+
class: "k-toolbar-button k-scheduler-fullday",
|
|
39
|
+
svgIcon: h,
|
|
40
|
+
onClick: this.handleShowWorkHoursClick
|
|
41
|
+
}, m(o = this.localization.toLanguageString(this.ks.showWorkHours ? t : e, n[this.ks.showWorkHours ? t : e])) ? o : {
|
|
42
|
+
default: () => [o]
|
|
48
43
|
}) : null;
|
|
49
44
|
},
|
|
50
45
|
methods: {
|
|
@@ -54,5 +49,5 @@ const w = /* @__PURE__ */ l({
|
|
|
54
49
|
}
|
|
55
50
|
});
|
|
56
51
|
export {
|
|
57
|
-
|
|
52
|
+
g as BusinessHours
|
|
58
53
|
};
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("@progress/kendo-vue-buttons"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("@progress/kendo-vue-buttons"),s=require("@progress/kendo-vue-intl"),r=require("../../messages/main.js"),c=require("@progress/kendo-svg-icons"),u=require("./view-selector/ViewSelectorList.js");function d(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!e.isVNode(n)}const v=e.defineComponent({name:"KendoSchedulerAdaptiveHeader",props:{isRtl:Boolean,onPrevclick:Function,onNextclick:Function,onTodayclick:Function,onCreateclick:Function,onCalendarclick:Function,onPdfclick:Function},inject:{ks:{default:null},kendoLocalizationService:{default:null},kendoIntlService:{default:null}},render(){const n=s.provideLocalizationService(this),l=s.provideIntlService(this),o=n.toLanguageString(r.previousTitle,r.messages[r.previousTitle]),a=n.toLanguageString(r.nextTitle,r.messages[r.nextTitle]),i=l.formatDate(this.ks.currentDate,this.ks.shortDateFormat);return e.createVNode("div",null,[e.createVNode(t.Toolbar,{overflow:"none",class:"k-scheduler-toolbar"},{default:()=>[e.createVNode(t.ButtonGroup,{class:"k-scheduler-tools"},{default:()=>[e.createVNode(t.Button,{class:"k-pdf",icon:"file-pdf",svgIcon:c.filePdfIcon,tabIndex:-1,onClick:this.$props.onPdfclick},null),e.createVNode(t.Button,{class:"k-nav-calendar",icon:"calendar",svgIcon:c.calendarIcon,tabIndex:-1,onClick:this.$props.onCalendarclick},null),e.createVNode(t.Button,{class:"k-create-event",icon:"plus",svgIcon:c.plusIcon,tabIndex:-1,onClick:this.$props.onCreateclick},null)]}),e.createVNode(t.ToolbarSpacer,null,null),e.createVNode(u.ViewSelectorList,null,null)]}),e.createVNode(t.Toolbar,{overflow:"none",class:"k-scheduler-toolbar"},{default:()=>[e.createVNode(t.Button,{class:"k-nav-prev",icon:this.isRtl?"chevron-right":"chevron-left",svgIcon:this.isRtl?c.chevronRightIcon:c.chevronLeftIcon,title:o,"aria-label":o,tabIndex:-1,onClick:this.handlePrevClick},null),e.createVNode(t.ToolbarSpacer,null,null),e.createVNode(t.Button,{class:"k-nav-current",fillMode:"flat",tabIndex:-1},d(i)?i:{default:()=>[i]}),e.createVNode(t.ToolbarSpacer,null,null),e.createVNode(t.Button,{class:"k-nav-next",icon:this.isRtl?"chevron-left":"chevron-right",svgIcon:this.isRtl?c.chevronLeftIcon:c.chevronRightIcon,title:a,"aria-label":a,tabIndex:-1,onClick:this.handleNextClick},null)]})])},methods:{handlePrevClick(n){var l,o;(o=(l=this.$props).onPrevclick)==null||o.call(l,n)},handleNextClick(n){var l,o;(o=(l=this.$props).onNextclick)==null||o.call(l,n)}}});exports.SchedulerAdaptiveHeader=v;
|
|
@@ -5,16 +5,16 @@
|
|
|
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 { Toolbar as
|
|
8
|
+
import { defineComponent as k, createVNode as e, isVNode as v } from "vue";
|
|
9
|
+
import { Toolbar as a, ButtonGroup as f, Button as o, ToolbarSpacer as i } from "@progress/kendo-vue-buttons";
|
|
10
10
|
import { provideLocalizationService as m, provideIntlService as I } from "@progress/kendo-vue-intl";
|
|
11
|
-
import { previousTitle as
|
|
12
|
-
import { filePdfIcon as x, calendarIcon as g, plusIcon as b, chevronRightIcon as
|
|
11
|
+
import { previousTitle as s, messages as u, nextTitle as d } from "../../messages/main.mjs";
|
|
12
|
+
import { filePdfIcon as x, calendarIcon as g, plusIcon as b, chevronRightIcon as p, chevronLeftIcon as h } from "@progress/kendo-svg-icons";
|
|
13
13
|
import { ViewSelectorList as C } from "./view-selector/ViewSelectorList.mjs";
|
|
14
14
|
function S(n) {
|
|
15
|
-
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !
|
|
15
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !v(n);
|
|
16
16
|
}
|
|
17
|
-
const $ = /* @__PURE__ */
|
|
17
|
+
const $ = /* @__PURE__ */ k({
|
|
18
18
|
name: "KendoSchedulerAdaptiveHeader",
|
|
19
19
|
props: {
|
|
20
20
|
isRtl: Boolean,
|
|
@@ -37,58 +37,58 @@ const $ = /* @__PURE__ */ v({
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
render() {
|
|
40
|
-
const n = m(this),
|
|
41
|
-
return e("div", null, [e(
|
|
40
|
+
const n = m(this), l = I(this), t = n.toLanguageString(s, u[s]), r = n.toLanguageString(d, u[d]), c = l.formatDate(this.ks.currentDate, this.ks.shortDateFormat);
|
|
41
|
+
return e("div", null, [e(a, {
|
|
42
42
|
overflow: "none",
|
|
43
43
|
class: "k-scheduler-toolbar"
|
|
44
44
|
}, {
|
|
45
45
|
default: () => [e(f, {
|
|
46
46
|
class: "k-scheduler-tools"
|
|
47
47
|
}, {
|
|
48
|
-
default: () => [e(
|
|
48
|
+
default: () => [e(o, {
|
|
49
49
|
class: "k-pdf",
|
|
50
50
|
icon: "file-pdf",
|
|
51
51
|
svgIcon: x,
|
|
52
52
|
tabIndex: -1,
|
|
53
53
|
onClick: this.$props.onPdfclick
|
|
54
|
-
}, null), e(
|
|
54
|
+
}, null), e(o, {
|
|
55
55
|
class: "k-nav-calendar",
|
|
56
56
|
icon: "calendar",
|
|
57
57
|
svgIcon: g,
|
|
58
58
|
tabIndex: -1,
|
|
59
59
|
onClick: this.$props.onCalendarclick
|
|
60
|
-
}, null), e(
|
|
60
|
+
}, null), e(o, {
|
|
61
61
|
class: "k-create-event",
|
|
62
62
|
icon: "plus",
|
|
63
63
|
svgIcon: b,
|
|
64
64
|
tabIndex: -1,
|
|
65
65
|
onClick: this.$props.onCreateclick
|
|
66
66
|
}, null)]
|
|
67
|
-
}), e(
|
|
68
|
-
}), e(
|
|
67
|
+
}), e(i, null, null), e(C, null, null)]
|
|
68
|
+
}), e(a, {
|
|
69
69
|
overflow: "none",
|
|
70
70
|
class: "k-scheduler-toolbar"
|
|
71
71
|
}, {
|
|
72
|
-
default: () => [e(
|
|
72
|
+
default: () => [e(o, {
|
|
73
73
|
class: "k-nav-prev",
|
|
74
74
|
icon: this.isRtl ? "chevron-right" : "chevron-left",
|
|
75
|
-
svgIcon: this.isRtl ?
|
|
76
|
-
title:
|
|
77
|
-
"aria-label":
|
|
75
|
+
svgIcon: this.isRtl ? p : h,
|
|
76
|
+
title: t,
|
|
77
|
+
"aria-label": t,
|
|
78
78
|
tabIndex: -1,
|
|
79
79
|
onClick: this.handlePrevClick
|
|
80
|
-
}, null), e(
|
|
80
|
+
}, null), e(i, null, null), e(o, {
|
|
81
81
|
class: "k-nav-current",
|
|
82
82
|
fillMode: "flat",
|
|
83
83
|
tabIndex: -1
|
|
84
|
-
}, S(
|
|
85
|
-
default: () => [
|
|
86
|
-
}), e(
|
|
84
|
+
}, S(c) ? c : {
|
|
85
|
+
default: () => [c]
|
|
86
|
+
}), e(i, null, null), e(o, {
|
|
87
87
|
class: "k-nav-next",
|
|
88
88
|
icon: this.isRtl ? "chevron-left" : "chevron-right",
|
|
89
|
-
svgIcon: this.isRtl ? h :
|
|
90
|
-
title:
|
|
91
|
-
"aria-label":
|
|
89
|
+
svgIcon: this.isRtl ? h : p,
|
|
90
|
+
title: r,
|
|
91
|
+
"aria-label": r,
|
|
92
92
|
tabIndex: -1,
|
|
93
93
|
onClick: this.handleNextClick
|
|
94
94
|
}, null)]
|
|
@@ -96,10 +96,12 @@ const $ = /* @__PURE__ */ v({
|
|
|
96
96
|
},
|
|
97
97
|
methods: {
|
|
98
98
|
handlePrevClick(n) {
|
|
99
|
-
|
|
99
|
+
var l, t;
|
|
100
|
+
(t = (l = this.$props).onPrevclick) == null || t.call(l, n);
|
|
100
101
|
},
|
|
101
102
|
handleNextClick(n) {
|
|
102
|
-
|
|
103
|
+
var l, t;
|
|
104
|
+
(t = (l = this.$props).onNextclick) == null || t.call(l, n);
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
});
|
|
@@ -19,5 +19,9 @@ export interface SchedulerHeaderHandle {
|
|
|
19
19
|
/**
|
|
20
20
|
* @hidden
|
|
21
21
|
*/
|
|
22
|
-
declare const SchedulerHeader: import('vue').DefineComponent<
|
|
22
|
+
declare const SchedulerHeader: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
23
|
+
ariaLabel: StringConstructor;
|
|
24
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
|
+
ariaLabel: StringConstructor;
|
|
26
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
27
|
export { SchedulerHeader };
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("@progress/kendo-vue-common"),r=require("@progress/kendo-vue-buttons");function n(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const a=t.defineComponent({name:"KendoSchedulerHeader",props:{ariaLabel:String},render(){const e=o.getDefaultSlots(this);return t.createVNode(r.Toolbar,{overflow:"none",class:"k-scheduler-toolbar",ariaLabel:this.ariaLabel},n(e)?e:{default:()=>[e]})}});exports.SchedulerHeader=a;
|
|
@@ -6,23 +6,27 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as o, createVNode as t, isVNode as r } from "vue";
|
|
9
|
-
import { getDefaultSlots as
|
|
9
|
+
import { getDefaultSlots as a } from "@progress/kendo-vue-common";
|
|
10
10
|
import { Toolbar as l } from "@progress/kendo-vue-buttons";
|
|
11
|
-
function
|
|
11
|
+
function n(e) {
|
|
12
12
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !r(e);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const f = /* @__PURE__ */ o({
|
|
15
15
|
name: "KendoSchedulerHeader",
|
|
16
|
+
props: {
|
|
17
|
+
ariaLabel: String
|
|
18
|
+
},
|
|
16
19
|
render() {
|
|
17
|
-
const e =
|
|
20
|
+
const e = a(this);
|
|
18
21
|
return t(l, {
|
|
19
22
|
overflow: "none",
|
|
20
|
-
class: "k-scheduler-toolbar"
|
|
21
|
-
|
|
23
|
+
class: "k-scheduler-toolbar",
|
|
24
|
+
ariaLabel: this.ariaLabel
|
|
25
|
+
}, n(e) ? e : {
|
|
22
26
|
default: () => [e]
|
|
23
27
|
});
|
|
24
28
|
}
|
|
25
29
|
});
|
|
26
30
|
export {
|
|
27
|
-
|
|
31
|
+
f as SchedulerHeader
|
|
28
32
|
};
|
|
@@ -5,18 +5,32 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
+
import { DatePickerProps } from '@progress/kendo-vue-dateinputs';
|
|
8
9
|
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface NavigationDatePickerProps extends DatePickerProps {
|
|
14
|
+
/**
|
|
15
|
+
* Responsive collapse level from the parent toolbar.
|
|
16
|
+
* When >= 2 the short date format is used.
|
|
17
|
+
*/
|
|
18
|
+
level?: number;
|
|
19
|
+
}
|
|
9
20
|
/**
|
|
10
21
|
* @hidden
|
|
11
22
|
*/
|
|
12
23
|
declare const NavigationDatePicker: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
24
|
value: PropType<Date>;
|
|
14
25
|
onChange: PropType<(event: import('@progress/kendo-vue-dateinputs').DatePickerChangeEvent) => void>;
|
|
26
|
+
level: {
|
|
27
|
+
type: PropType<number>;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
15
30
|
}>, {}, {
|
|
16
31
|
hasMounted: boolean;
|
|
17
32
|
show: boolean;
|
|
18
33
|
focused: boolean;
|
|
19
|
-
media: string;
|
|
20
34
|
}, {}, {
|
|
21
35
|
handleChange(event: any): void;
|
|
22
36
|
handleClick(): void;
|
|
@@ -26,9 +40,14 @@ declare const NavigationDatePicker: import('vue').DefineComponent<import('vue').
|
|
|
26
40
|
createBlurTimeout(): void;
|
|
27
41
|
calendarKeydown(e: any): void;
|
|
28
42
|
hideAndFocusButton(): void;
|
|
29
|
-
calculateMedia(): void;
|
|
30
43
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
31
44
|
value: PropType<Date>;
|
|
32
45
|
onChange: PropType<(event: import('@progress/kendo-vue-dateinputs').DatePickerChangeEvent) => void>;
|
|
33
|
-
|
|
46
|
+
level: {
|
|
47
|
+
type: PropType<number>;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{}>, {
|
|
51
|
+
level: number;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
53
|
export { NavigationDatePicker };
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),c=require("@progress/kendo-vue-dateinputs"),n=require("@progress/kendo-date-math"),h=require("@progress/kendo-vue-popup"),l=require("@progress/kendo-vue-intl"),f=require("@progress/kendo-vue-buttons"),m=require("../../../utils/main.js"),a=require("@progress/kendo-vue-common"),k=require("@progress/kendo-svg-icons"),p=s.defineComponent({name:"KendoNavigationDatePicker",props:{value:[Date,Object],onChange:Function,level:{type:Number,default:0}},inject:{kendoIntlService:{default:null},ks:{default:null}},created(){this.buttonId=a.guid(),this._popupId="popup"+a.guid()},data(){return{hasMounted:!1,show:!1,focused:!1}},mounted(){this.buttonRef=this.$refs.button,this.hasMounted=!0},updated(){this.show&&this.focused&&this.$refs.calendar&&this.$refs.calendar.focus()},render(){const e=n.ZonedDate.fromLocalDate(this.$props.value||this.ks.currentDate,this.ks.timezone),t=n.getDate(e),i=this.show,o=this.ks.dateRange.end.getTime()-this.ks.dateRange.start.getTime()>n.MS_PER_DAY*27,u=l.provideIntlService(this),r=u.format(this.ks.dateFormat,o?this.ks.currentDate:this.ks.dateRange.zonedStart,o?this.ks.currentDate:this.ks.dateRange.zonedEnd.addDays(-1)),d=u.format(this.ks.shortDateFormat,o?this.ks.currentDate:this.ks.dateRange.zonedStart,o?this.ks.currentDate:this.ks.dateRange.zonedEnd.addDays(-1));return s.createVNode(f.Button,{ref:"button",id:this.buttonId,onFocus:this.onFocus,onBlur:this.onBlur,fillMode:"flat",class:"k-nav-current k-toolbar-button","aria-live":"polite",tabIndex:-1,icon:"calendar",svgIcon:k.calendarIcon,onClick:this.handleClick},{default:()=>[this.$props.level>=2?d:r,s.createVNode(h.Popup,{id:this._popupId,anchor:this.buttonId,show:i},{default:()=>[this.hasMounted&&s.createVNode(c.Calendar,{ref:"calendar",onBlur:this.onCalendarBlur,onChange:this.handleChange,onKeydown:this.calendarKeydown,value:t},null)]})]})},methods:{handleChange(e){const t=n.ZonedDate.fromUTCDate(m.toUTCDateTime(e.value),this.ks.timezone);this.$emit("change",{...e,value:t}),this.hideAndFocusButton()},handleClick(){this.show=!this.show},onFocus(){clearTimeout(this._blurTimeout),this.focused=!0},onBlur(){this.focused=!1},onCalendarBlur(){clearTimeout(this._blurTimeout),this.createBlurTimeout()},createBlurTimeout(){const e=this;this._blurTimeout=setTimeout(()=>{this.focused=!1;const t=document.activeElement&&document.activeElement.closest(`#${e._popupId}`);a.canUseDOM&&document.activeElement!==e.$refs.button.$el&&!t&&(e.show=!1)},200)},calendarKeydown(e){e.keyCode===a.Keys.esc&&this.hideAndFocusButton()},hideAndFocusButton(){this.show=!1,this.$refs.button.focus()}}});exports.NavigationDatePicker=p;
|
|
@@ -5,20 +5,24 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
8
|
+
import { defineComponent as h, createVNode as s } from "vue";
|
|
9
9
|
import { Calendar as l } from "@progress/kendo-vue-dateinputs";
|
|
10
|
-
import { ZonedDate as
|
|
11
|
-
import { Popup as
|
|
12
|
-
import { provideIntlService as
|
|
13
|
-
import { Button as
|
|
14
|
-
import { toUTCDateTime as
|
|
15
|
-
import {
|
|
16
|
-
import { calendarIcon as
|
|
17
|
-
const
|
|
10
|
+
import { ZonedDate as i, getDate as c, MS_PER_DAY as m } from "@progress/kendo-date-math";
|
|
11
|
+
import { Popup as f } from "@progress/kendo-vue-popup";
|
|
12
|
+
import { provideIntlService as p } from "@progress/kendo-vue-intl";
|
|
13
|
+
import { Button as k } from "@progress/kendo-vue-buttons";
|
|
14
|
+
import { toUTCDateTime as v } from "../../../utils/main.mjs";
|
|
15
|
+
import { Keys as g, canUseDOM as D, guid as r } from "@progress/kendo-vue-common";
|
|
16
|
+
import { calendarIcon as b } from "@progress/kendo-svg-icons";
|
|
17
|
+
const R = /* @__PURE__ */ h({
|
|
18
18
|
name: "KendoNavigationDatePicker",
|
|
19
19
|
props: {
|
|
20
20
|
value: [Date, Object],
|
|
21
|
-
onChange: Function
|
|
21
|
+
onChange: Function,
|
|
22
|
+
level: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 0
|
|
25
|
+
}
|
|
22
26
|
},
|
|
23
27
|
inject: {
|
|
24
28
|
kendoIntlService: {
|
|
@@ -29,46 +33,42 @@ const F = /* @__PURE__ */ c({
|
|
|
29
33
|
}
|
|
30
34
|
},
|
|
31
35
|
created() {
|
|
32
|
-
this.buttonId =
|
|
36
|
+
this.buttonId = r(), this._popupId = "popup" + r();
|
|
33
37
|
},
|
|
34
38
|
data() {
|
|
35
39
|
return {
|
|
36
40
|
hasMounted: !1,
|
|
37
41
|
show: !1,
|
|
38
|
-
focused: !1
|
|
39
|
-
media: "desktop"
|
|
42
|
+
focused: !1
|
|
40
43
|
};
|
|
41
44
|
},
|
|
42
45
|
mounted() {
|
|
43
|
-
this.buttonRef = this.$refs.button, this.
|
|
44
|
-
},
|
|
45
|
-
unmounted() {
|
|
46
|
-
this.observer && this.observer.disconnect();
|
|
46
|
+
this.buttonRef = this.$refs.button, this.hasMounted = !0;
|
|
47
47
|
},
|
|
48
48
|
updated() {
|
|
49
49
|
this.show && this.focused && this.$refs.calendar && this.$refs.calendar.focus();
|
|
50
50
|
},
|
|
51
51
|
render() {
|
|
52
|
-
const t =
|
|
53
|
-
return
|
|
52
|
+
const t = i.fromLocalDate(this.$props.value || this.ks.currentDate, this.ks.timezone), e = c(t), n = this.show, o = this.ks.dateRange.end.getTime() - this.ks.dateRange.start.getTime() > m * 27, a = p(this), u = a.format(this.ks.dateFormat, o ? this.ks.currentDate : this.ks.dateRange.zonedStart, o ? this.ks.currentDate : this.ks.dateRange.zonedEnd.addDays(-1)), d = a.format(this.ks.shortDateFormat, o ? this.ks.currentDate : this.ks.dateRange.zonedStart, o ? this.ks.currentDate : this.ks.dateRange.zonedEnd.addDays(-1));
|
|
53
|
+
return s(k, {
|
|
54
54
|
ref: "button",
|
|
55
55
|
id: this.buttonId,
|
|
56
56
|
onFocus: this.onFocus,
|
|
57
57
|
onBlur: this.onBlur,
|
|
58
58
|
fillMode: "flat",
|
|
59
|
-
class: "k-nav-current",
|
|
59
|
+
class: "k-nav-current k-toolbar-button",
|
|
60
60
|
"aria-live": "polite",
|
|
61
61
|
tabIndex: -1,
|
|
62
62
|
icon: "calendar",
|
|
63
|
-
svgIcon:
|
|
63
|
+
svgIcon: b,
|
|
64
64
|
onClick: this.handleClick
|
|
65
65
|
}, {
|
|
66
|
-
default: () => [this.
|
|
66
|
+
default: () => [this.$props.level >= 2 ? d : u, s(f, {
|
|
67
67
|
id: this._popupId,
|
|
68
68
|
anchor: this.buttonId,
|
|
69
69
|
show: n
|
|
70
70
|
}, {
|
|
71
|
-
default: () => [this.hasMounted &&
|
|
71
|
+
default: () => [this.hasMounted && s(l, {
|
|
72
72
|
ref: "calendar",
|
|
73
73
|
onBlur: this.onCalendarBlur,
|
|
74
74
|
onChange: this.handleChange,
|
|
@@ -80,7 +80,7 @@ const F = /* @__PURE__ */ c({
|
|
|
80
80
|
},
|
|
81
81
|
methods: {
|
|
82
82
|
handleChange(t) {
|
|
83
|
-
const e =
|
|
83
|
+
const e = i.fromUTCDate(v(t.value), this.ks.timezone);
|
|
84
84
|
this.$emit("change", {
|
|
85
85
|
...t,
|
|
86
86
|
value: e
|
|
@@ -103,20 +103,17 @@ const F = /* @__PURE__ */ c({
|
|
|
103
103
|
this._blurTimeout = setTimeout(() => {
|
|
104
104
|
this.focused = !1;
|
|
105
105
|
const e = document.activeElement && document.activeElement.closest(`#${t._popupId}`);
|
|
106
|
-
|
|
106
|
+
D && document.activeElement !== t.$refs.button.$el && !e && (t.show = !1);
|
|
107
107
|
}, 200);
|
|
108
108
|
},
|
|
109
109
|
calendarKeydown(t) {
|
|
110
|
-
t.keyCode ===
|
|
110
|
+
t.keyCode === g.esc && this.hideAndFocusButton();
|
|
111
111
|
},
|
|
112
112
|
hideAndFocusButton() {
|
|
113
113
|
this.show = !1, this.$refs.button.focus();
|
|
114
|
-
},
|
|
115
|
-
calculateMedia() {
|
|
116
|
-
i && window.matchMedia && (this.media = window.matchMedia("(min-width: 1024px)").matches ? "desktop" : "mobile");
|
|
117
114
|
}
|
|
118
115
|
}
|
|
119
116
|
});
|
|
120
117
|
export {
|
|
121
|
-
|
|
118
|
+
R as NavigationDatePicker
|
|
122
119
|
};
|
|
@@ -5,14 +5,34 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
8
9
|
/**
|
|
9
10
|
* @hidden
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
export interface ViewSelectorListProps {
|
|
13
|
+
/**
|
|
14
|
+
* Responsive collapse level from the parent toolbar.
|
|
15
|
+
* When >= 1 the SegmentedControl collapses to a MenuButton.
|
|
16
|
+
*/
|
|
17
|
+
level?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
declare const ViewSelectorList: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
23
|
+
level: {
|
|
24
|
+
type: PropType<number>;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {
|
|
14
28
|
handleViewChange(value: string): void;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
handleItemClick(event: any): void;
|
|
30
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
31
|
+
level: {
|
|
32
|
+
type: PropType<number>;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
level: number;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
38
|
export { ViewSelectorList };
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),c=require("@progress/kendo-vue-buttons"),m=require("@progress/kendo-vue-intl"),s=require("../../../messages/main.js"),d=require("@progress/kendo-vue-common"),h=require("@progress/kendo-svg-icons"),V=n.defineComponent({name:"KendoViewSelectorList",props:{level:{type:Number,default:0}},inject:{kendoLocalizationService:{default:null},ks:{default:null},setActiveViewName:{default:null}},render(){const e=this.ks.views;this.localization=m.provideLocalizationService(this);const a=e.find(t=>t.name===this.ks.activeViewName);if(this.$props.level>=1&&a){const t="scheduler."+a.name+"ViewTitle",o=this.localization.toLanguageString(t,s.messages[t])||a.name;return n.createVNode(c.DropDownButton,{class:"k-toolbar-menu-button",fillMode:"flat",onItemclick:this.handleItemClick,popupSettings:{popupClass:"k-scheduler-toolbar"},textField:"title",items:e.map(i=>{const l="scheduler."+i.name+"ViewTitle",u=this.localization.toLanguageString(l,s.messages[l])||i.name;return{...i,selected:i.name===this.ks.activeViewName,title:i.title||u}}),text:a.title||o},{default:()=>[n.createVNode("span",{class:"k-menu-button-arrow k-button-arrow"},[n.createVNode(d.SvgIcon,{icon:h.chevronDownIcon},null)])]})}const r=e.map(t=>{const o="scheduler."+t.name+"ViewTitle",i=this.localization.toLanguageString(o,s.messages[o])||t.name;return{value:t.name,text:t.title||i}});return n.createVNode(c.SegmentedControl,{class:"k-scheduler-views",items:r,value:this.ks.activeViewName,onChange:this.handleViewChange},null)},methods:{handleViewChange(e){this.setActiveViewName(e)},handleItemClick(e){this.setActiveViewName&&(e.event&&e.event.preventDefault(),this.setActiveViewName(e.item.name))}}});exports.ViewSelectorList=V;
|
|
@@ -5,13 +5,20 @@
|
|
|
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 {
|
|
10
|
-
import { provideLocalizationService as
|
|
11
|
-
import { messages as
|
|
12
|
-
import {
|
|
13
|
-
|
|
8
|
+
import { defineComponent as c, createVNode as o } from "vue";
|
|
9
|
+
import { DropDownButton as u, SegmentedControl as h } from "@progress/kendo-vue-buttons";
|
|
10
|
+
import { provideLocalizationService as d } from "@progress/kendo-vue-intl";
|
|
11
|
+
import { messages as l } from "../../../messages/main.mjs";
|
|
12
|
+
import { SvgIcon as p } from "@progress/kendo-vue-common";
|
|
13
|
+
import { chevronDownIcon as f } from "@progress/kendo-svg-icons";
|
|
14
|
+
const S = /* @__PURE__ */ c({
|
|
14
15
|
name: "KendoViewSelectorList",
|
|
16
|
+
props: {
|
|
17
|
+
level: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 0
|
|
20
|
+
}
|
|
21
|
+
},
|
|
15
22
|
inject: {
|
|
16
23
|
kendoLocalizationService: {
|
|
17
24
|
default: null
|
|
@@ -23,61 +30,60 @@ const V = /* @__PURE__ */ h({
|
|
|
23
30
|
default: null
|
|
24
31
|
}
|
|
25
32
|
},
|
|
26
|
-
mounted() {
|
|
27
|
-
this.calculateMedia(), c && window.ResizeObserver && (this.observer = new window.ResizeObserver(this.calculateMedia), this.ks.scheduler && this.ks.scheduler.$el && this.observer.observe(this.ks.scheduler.$el));
|
|
28
|
-
},
|
|
29
|
-
unmounted() {
|
|
30
|
-
this.observer && this.observer.disconnect();
|
|
31
|
-
},
|
|
32
|
-
data() {
|
|
33
|
-
return {
|
|
34
|
-
media: "desktop"
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
33
|
render() {
|
|
38
|
-
const
|
|
39
|
-
this.localization =
|
|
40
|
-
const
|
|
41
|
-
this.
|
|
42
|
-
|
|
43
|
-
return o(
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
34
|
+
const e = this.ks.views;
|
|
35
|
+
this.localization = d(this);
|
|
36
|
+
const n = e.find((t) => t.name === this.ks.activeViewName);
|
|
37
|
+
if (this.$props.level >= 1 && n) {
|
|
38
|
+
const t = "scheduler." + n.name + "ViewTitle", a = this.localization.toLanguageString(t, l[t]) || n.name;
|
|
39
|
+
return o(u, {
|
|
40
|
+
class: "k-toolbar-menu-button",
|
|
41
|
+
fillMode: "flat",
|
|
42
|
+
onItemclick: this.handleItemClick,
|
|
43
|
+
popupSettings: {
|
|
44
|
+
popupClass: "k-scheduler-toolbar"
|
|
45
|
+
},
|
|
46
|
+
textField: "title",
|
|
47
|
+
items: e.map((i) => {
|
|
48
|
+
const s = "scheduler." + i.name + "ViewTitle", m = this.localization.toLanguageString(s, l[s]) || i.name;
|
|
49
|
+
return {
|
|
50
|
+
...i,
|
|
51
|
+
selected: i.name === this.ks.activeViewName,
|
|
52
|
+
title: i.title || m
|
|
53
|
+
};
|
|
54
|
+
}),
|
|
55
|
+
text: n.title || a
|
|
56
|
+
}, {
|
|
57
|
+
default: () => [o("span", {
|
|
58
|
+
class: "k-menu-button-arrow k-button-arrow"
|
|
59
|
+
}, [o(p, {
|
|
60
|
+
icon: f
|
|
61
|
+
}, null)])]
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
const r = e.map((t) => {
|
|
65
|
+
const a = "scheduler." + t.name + "ViewTitle", i = this.localization.toLanguageString(a, l[a]) || t.name;
|
|
57
66
|
return {
|
|
58
|
-
value:
|
|
59
|
-
text:
|
|
67
|
+
value: t.name,
|
|
68
|
+
text: t.title || i
|
|
60
69
|
};
|
|
61
70
|
});
|
|
62
|
-
return
|
|
63
|
-
class: "k-
|
|
64
|
-
items:
|
|
71
|
+
return o(h, {
|
|
72
|
+
class: "k-scheduler-views",
|
|
73
|
+
items: r,
|
|
65
74
|
value: this.ks.activeViewName,
|
|
66
75
|
onChange: this.handleViewChange
|
|
67
76
|
}, null);
|
|
68
77
|
},
|
|
69
78
|
methods: {
|
|
70
|
-
handleViewChange(
|
|
71
|
-
this.setActiveViewName(
|
|
72
|
-
},
|
|
73
|
-
ddlChange(t) {
|
|
74
|
-
this.setActiveViewName(t.target.value);
|
|
79
|
+
handleViewChange(e) {
|
|
80
|
+
this.setActiveViewName(e);
|
|
75
81
|
},
|
|
76
|
-
|
|
77
|
-
|
|
82
|
+
handleItemClick(e) {
|
|
83
|
+
this.setActiveViewName && (e.event && e.event.preventDefault(), this.setActiveViewName(e.item.name));
|
|
78
84
|
}
|
|
79
85
|
}
|
|
80
86
|
});
|
|
81
87
|
export {
|
|
82
|
-
|
|
88
|
+
S as ViewSelectorList
|
|
83
89
|
};
|