@progress/kendo-vue-scheduler 8.4.0-develop.3 → 8.4.0-develop.5
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 +5 -5
- package/components/header/navigation/SchedulerNavigation.js +1 -1
- package/components/header/navigation/SchedulerNavigation.mjs +25 -25
- package/components/header/view-selector/ViewSelectorList.d.ts +1 -0
- package/components/header/view-selector/ViewSelectorList.js +1 -1
- package/components/header/view-selector/ViewSelectorList.mjs +36 -36
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/items/SchedulerItem.js +1 -1
- package/items/SchedulerItem.mjs +41 -42
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -12
- package/views/agenda/AgendaView.d.ts +1 -1
- package/views/agenda/AgendaViewBody.js +1 -1
- package/views/agenda/AgendaViewBody.mjs +21 -21
- package/views/day/DayView.d.ts +1 -1
- package/views/day/MultiDayView.d.ts +1 -1
- package/views/month/MonthView.d.ts +1 -1
- package/views/time/MultiDayTimelineView.d.ts +1 -1
- package/views/time/TimelineView.d.ts +1 -1
- package/views/week/WeekView.d.ts +1 -1
- package/views/week/WorkWeekView.d.ts +1 -1
- package/components/header/view-selector/ViewSelectorItem.js +0 -8
- package/components/header/view-selector/ViewSelectorItem.mjs +0 -53
package/Scheduler.d.ts
CHANGED
|
@@ -717,12 +717,12 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
717
717
|
name: string;
|
|
718
718
|
step: number;
|
|
719
719
|
editable: boolean | EditableProp;
|
|
720
|
+
slotDuration: number;
|
|
720
721
|
numberOfDays: number;
|
|
721
722
|
selectedDateFormat: string;
|
|
722
723
|
selectedShortDateFormat: string;
|
|
723
724
|
dateRange: DateRange | ((args: import('./models/SchedulerView').SchedulerViewDateRangeArgs) => DateRange);
|
|
724
725
|
slotDivisions: number;
|
|
725
|
-
slotDuration: number;
|
|
726
726
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
727
727
|
name: {
|
|
728
728
|
type: PropType<string>;
|
|
@@ -927,12 +927,12 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
927
927
|
columnWidth: number;
|
|
928
928
|
dragItem: any;
|
|
929
929
|
resizeItem: any;
|
|
930
|
+
slotDuration: number;
|
|
930
931
|
numberOfDays: number;
|
|
931
932
|
selectedDateFormat: string;
|
|
932
933
|
selectedShortDateFormat: string;
|
|
933
934
|
dateRange: DateRange | ((args: import('./models/SchedulerView').SchedulerViewDateRangeArgs) => DateRange);
|
|
934
935
|
slotDivisions: number;
|
|
935
|
-
slotDuration: number;
|
|
936
936
|
workWeekStart: import('@progress/kendo-date-math').Day;
|
|
937
937
|
workWeekEnd: import('@progress/kendo-date-math').Day;
|
|
938
938
|
currentTimeMarker: boolean;
|
|
@@ -1136,12 +1136,12 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
1136
1136
|
step: number;
|
|
1137
1137
|
startTime: string;
|
|
1138
1138
|
editable: boolean;
|
|
1139
|
+
slotDuration: number;
|
|
1139
1140
|
numberOfDays: number;
|
|
1140
1141
|
selectedDateFormat: string;
|
|
1141
1142
|
selectedShortDateFormat: string;
|
|
1142
1143
|
dateRange: DateRange | ((args: import('./models/SchedulerView').SchedulerViewDateRangeArgs) => DateRange);
|
|
1143
1144
|
slotDivisions: number;
|
|
1144
|
-
slotDuration: number;
|
|
1145
1145
|
workWeekStart: import('@progress/kendo-date-math').Day;
|
|
1146
1146
|
workWeekEnd: import('@progress/kendo-date-math').Day;
|
|
1147
1147
|
currentTimeMarker: boolean;
|
|
@@ -1265,12 +1265,12 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
1265
1265
|
}>, {
|
|
1266
1266
|
name: string;
|
|
1267
1267
|
editable: boolean;
|
|
1268
|
+
slotDuration: number;
|
|
1268
1269
|
numberOfDays: number;
|
|
1269
1270
|
selectedDateFormat: string;
|
|
1270
1271
|
selectedShortDateFormat: string;
|
|
1271
1272
|
dateRange: DateRange | ((args: import('./models/SchedulerView').SchedulerViewDateRangeArgs) => DateRange);
|
|
1272
1273
|
slotDivisions: number;
|
|
1273
|
-
slotDuration: number;
|
|
1274
1274
|
workWeekStart: import('@progress/kendo-date-math').Day;
|
|
1275
1275
|
workWeekEnd: import('@progress/kendo-date-math').Day;
|
|
1276
1276
|
showWorkHours: boolean;
|
|
@@ -1413,12 +1413,12 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
1413
1413
|
itemsPerSlot: number;
|
|
1414
1414
|
dragItem: any;
|
|
1415
1415
|
resizeItem: any;
|
|
1416
|
+
slotDuration: number;
|
|
1416
1417
|
numberOfDays: number;
|
|
1417
1418
|
selectedDateFormat: string;
|
|
1418
1419
|
selectedShortDateFormat: string;
|
|
1419
1420
|
dateRange: DateRange | ((args: import('./models/SchedulerView').SchedulerViewDateRangeArgs) => DateRange);
|
|
1420
1421
|
slotDivisions: number;
|
|
1421
|
-
slotDuration: number;
|
|
1422
1422
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1423
1423
|
getViewPropValue(view: any, propName: string, activeViewName: string): any;
|
|
1424
1424
|
handleDataChange({ created, updated, deleted }: {
|
|
@@ -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 o=require("vue"),n=require("@progress/kendo-vue-buttons"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),n=require("@progress/kendo-vue-buttons"),a=require("@progress/kendo-vue-common"),t=require("../../../messages/main.js"),r=require("@progress/kendo-vue-intl"),i=require("@progress/kendo-svg-icons");function s(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const u=o.defineComponent({name:"KendoSchedulerNavigation",props:{isRtl:Boolean,onPrevclick:Function,onNextclick:Function,onTodayclick:Function},inject:{ks:{default:null},kendoLocalizationService:{default:null}},render(){a.getDefaultSlots(this),this.localization=r.provideLocalizationService(this);const e=this.localization.toLanguageString(t.today,t.messages[t.today]),l=this.localization.toLanguageString(t.previousTitle,t.messages[t.previousTitle]),c=this.localization.toLanguageString(t.nextTitle,t.messages[t.nextTitle]);return o.createVNode(n.ToolbarItem,null,{default:()=>[o.createVNode(n.ButtonGroup,{class:"k-scheduler-navigation"},{default:()=>[o.createVNode(n.Button,{role:"button",class:"k-nav-today",tabIndex:-1,title:e,"aria-label":e,onClick:this.handleTodayClick},s(e)?e:{default:()=>[e]}),o.createVNode(n.Button,{role:"button",tabIndex:-1,class:"k-button-icon k-nav-prev",icon:this.isRtl?"chevron-right":"chevron-left",svgIcon:this.isRtl?i.chevronRightIcon:i.chevronLeftIcon,title:l,"aria-label":l,onClick:this.handlePrevClick},null),o.createVNode(n.Button,{role:"button",tabIndex:-1,class:"k-button-icon k-nav-next",icon:this.isRtl?"chevron-left":"chevron-right",svgIcon:this.isRtl?i.chevronLeftIcon:i.chevronRightIcon,title:c,"aria-label":c,onClick:this.handleNextClick},null)]})]})},methods:{handleTodayClick(e){this.$emit("todayclick",e)},handlePrevClick(e){this.$emit("prevclick",e)},handleNextClick(e){this.$emit("nextclick",e)}}});exports.SchedulerNavigation=u;
|
|
@@ -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 { ToolbarItem as
|
|
10
|
-
import { getDefaultSlots as
|
|
11
|
-
import { today as a, messages as
|
|
12
|
-
import { provideLocalizationService as
|
|
13
|
-
import {
|
|
14
|
-
function
|
|
15
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
8
|
+
import { defineComponent as u, createVNode as o, isVNode as d } from "vue";
|
|
9
|
+
import { ToolbarItem as v, ButtonGroup as k, Button as e } from "@progress/kendo-vue-buttons";
|
|
10
|
+
import { getDefaultSlots as g } from "@progress/kendo-vue-common";
|
|
11
|
+
import { today as a, messages as i, previousTitle as c, nextTitle as r } from "../../../messages/main.mjs";
|
|
12
|
+
import { provideLocalizationService as m } from "@progress/kendo-vue-intl";
|
|
13
|
+
import { chevronRightIcon as s, chevronLeftIcon as h } from "@progress/kendo-svg-icons";
|
|
14
|
+
function f(t) {
|
|
15
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !d(t);
|
|
16
16
|
}
|
|
17
|
-
const T = /* @__PURE__ */
|
|
17
|
+
const T = /* @__PURE__ */ u({
|
|
18
18
|
name: "KendoSchedulerNavigation",
|
|
19
19
|
props: {
|
|
20
20
|
isRtl: Boolean,
|
|
@@ -31,38 +31,38 @@ const T = /* @__PURE__ */ d({
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
render() {
|
|
34
|
-
|
|
35
|
-
const t = this.localization.toLanguageString(a,
|
|
36
|
-
return
|
|
37
|
-
default: () => [
|
|
34
|
+
g(this), this.localization = m(this);
|
|
35
|
+
const t = this.localization.toLanguageString(a, i[a]), n = this.localization.toLanguageString(c, i[c]), l = this.localization.toLanguageString(r, i[r]);
|
|
36
|
+
return o(v, null, {
|
|
37
|
+
default: () => [o(k, {
|
|
38
38
|
class: "k-scheduler-navigation"
|
|
39
39
|
}, {
|
|
40
|
-
default: () => [e
|
|
40
|
+
default: () => [o(e, {
|
|
41
41
|
role: "button",
|
|
42
42
|
class: "k-nav-today",
|
|
43
43
|
tabIndex: -1,
|
|
44
44
|
title: t,
|
|
45
45
|
"aria-label": t,
|
|
46
46
|
onClick: this.handleTodayClick
|
|
47
|
-
},
|
|
47
|
+
}, f(t) ? t : {
|
|
48
48
|
default: () => [t]
|
|
49
|
-
}), e
|
|
49
|
+
}), o(e, {
|
|
50
50
|
role: "button",
|
|
51
51
|
tabIndex: -1,
|
|
52
52
|
class: "k-button-icon k-nav-prev",
|
|
53
|
-
icon: this.isRtl ? "
|
|
54
|
-
svgIcon: this.isRtl ? s :
|
|
55
|
-
title:
|
|
56
|
-
"aria-label":
|
|
53
|
+
icon: this.isRtl ? "chevron-right" : "chevron-left",
|
|
54
|
+
svgIcon: this.isRtl ? s : h,
|
|
55
|
+
title: n,
|
|
56
|
+
"aria-label": n,
|
|
57
57
|
onClick: this.handlePrevClick
|
|
58
|
-
}, null), e
|
|
58
|
+
}, null), o(e, {
|
|
59
59
|
role: "button",
|
|
60
60
|
tabIndex: -1,
|
|
61
61
|
class: "k-button-icon k-nav-next",
|
|
62
|
-
icon: this.isRtl ? "
|
|
63
|
-
svgIcon: this.isRtl ?
|
|
64
|
-
title:
|
|
65
|
-
"aria-label":
|
|
62
|
+
icon: this.isRtl ? "chevron-left" : "chevron-right",
|
|
63
|
+
svgIcon: this.isRtl ? h : s,
|
|
64
|
+
title: l,
|
|
65
|
+
"aria-label": l,
|
|
66
66
|
onClick: this.handleNextClick
|
|
67
67
|
}, null)]
|
|
68
68
|
})]
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
declare const ViewSelectorList: import('vue').DefineComponent<{}, {}, {
|
|
12
12
|
media: string;
|
|
13
13
|
}, {}, {
|
|
14
|
+
handleViewChange(value: string): void;
|
|
14
15
|
ddlChange(event: any): void;
|
|
15
16
|
calculateMedia(): void;
|
|
16
17
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -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"),u=require("@progress/kendo-vue-buttons"),m=require("@progress/kendo-vue-intl"),i=require("../../../messages/main.js"),r=require("@progress/kendo-vue-common"),h=s.defineComponent({name:"KendoViewSelectorList",inject:{kendoLocalizationService:{default:null},ks:{default:null},setActiveViewName:{default:null}},mounted(){this.calculateMedia(),r.canUseDOM&&window.ResizeObserver&&(this.observer=new window.ResizeObserver(this.calculateMedia),this.ks.scheduler&&this.ks.scheduler.$el&&this.observer.observe(this.ks.scheduler.$el))},unmounted(){this.observer&&this.observer.disconnect()},data(){return{media:"desktop"}},render(){const t=this.ks.views;this.localization=m.provideLocalizationService(this);const o=t.find(e=>e.name===this.ks.activeViewName),l="scheduler."+o.name+"ViewTitle";this.localization.toLanguageString(l,i.messages[l])||o.name;const c=function(){return s.createVNode("select",{"tab-index":-1,class:"k-views-dropdown k-dropdown k-picker k-picker-solid k-rounded-md k-picker-md","aria-label":this.localization.toLanguageString(i.dropdownlistSelectViewAriaLabel,i.messages[i.dropdownlistSelectViewAriaLabel]),onChange:this.ddlChange},[t.map(function(e){const a="scheduler."+e.name+"ViewTitle",n=this.localization.toLanguageString(a,i.messages[a])||e.name;return s.createVNode("option",{value:e.name||e.title||n,selected:e.name===this.ks.activeViewName},[e.title||n])},this)])},d=t.map(e=>{const a="scheduler."+e.name+"ViewTitle",n=this.localization.toLanguageString(a,i.messages[a])||e.name;return{value:e.name,text:e.title||n}});return o&&this.media==="mobile"?c.call(this):s.createVNode(u.SegmentedControl,{class:"k-toolbar-button-group k-scheduler-views",items:d,value:this.ks.activeViewName,onChange:this.handleViewChange},null)},methods:{handleViewChange(t){this.setActiveViewName(t)},ddlChange(t){this.setActiveViewName(t.target.value)},calculateMedia(){r.canUseDOM&&window.matchMedia&&(this.media=window.matchMedia("(min-width: 1024px)").matches?"desktop":"mobile")}}});exports.ViewSelectorList=h;
|
|
@@ -5,16 +5,12 @@
|
|
|
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 {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
function k(t) {
|
|
15
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !h(t);
|
|
16
|
-
}
|
|
17
|
-
const L = /* @__PURE__ */ u({
|
|
8
|
+
import { defineComponent as h, createVNode as o } from "vue";
|
|
9
|
+
import { SegmentedControl as u } from "@progress/kendo-vue-buttons";
|
|
10
|
+
import { provideLocalizationService as w } from "@progress/kendo-vue-intl";
|
|
11
|
+
import { messages as n, dropdownlistSelectViewAriaLabel as r } from "../../../messages/main.mjs";
|
|
12
|
+
import { canUseDOM as c } from "@progress/kendo-vue-common";
|
|
13
|
+
const V = /* @__PURE__ */ h({
|
|
18
14
|
name: "KendoViewSelectorList",
|
|
19
15
|
inject: {
|
|
20
16
|
kendoLocalizationService: {
|
|
@@ -28,7 +24,7 @@ const L = /* @__PURE__ */ u({
|
|
|
28
24
|
}
|
|
29
25
|
},
|
|
30
26
|
mounted() {
|
|
31
|
-
this.calculateMedia(),
|
|
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));
|
|
32
28
|
},
|
|
33
29
|
unmounted() {
|
|
34
30
|
this.observer && this.observer.disconnect();
|
|
@@ -39,45 +35,49 @@ const L = /* @__PURE__ */ u({
|
|
|
39
35
|
};
|
|
40
36
|
},
|
|
41
37
|
render() {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return i("select", {
|
|
38
|
+
const t = this.ks.views;
|
|
39
|
+
this.localization = w(this);
|
|
40
|
+
const s = t.find((e) => e.name === this.ks.activeViewName), l = "scheduler." + s.name + "ViewTitle";
|
|
41
|
+
this.localization.toLanguageString(l, n[l]) || s.name;
|
|
42
|
+
const d = function() {
|
|
43
|
+
return o("select", {
|
|
49
44
|
"tab-index": -1,
|
|
50
45
|
class: "k-views-dropdown k-dropdown k-picker k-picker-solid k-rounded-md k-picker-md",
|
|
51
|
-
"aria-label": this.localization.toLanguageString(
|
|
46
|
+
"aria-label": this.localization.toLanguageString(r, n[r]),
|
|
52
47
|
onChange: this.ddlChange
|
|
53
|
-
}, [
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
-
value: e.name || e.title ||
|
|
48
|
+
}, [t.map(function(e) {
|
|
49
|
+
const i = "scheduler." + e.name + "ViewTitle", a = this.localization.toLanguageString(i, n[i]) || e.name;
|
|
50
|
+
return o("option", {
|
|
51
|
+
value: e.name || e.title || a,
|
|
57
52
|
selected: e.name === this.ks.activeViewName
|
|
58
|
-
}, [e.title ||
|
|
53
|
+
}, [e.title || a]);
|
|
59
54
|
}, this)]);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
view: e
|
|
67
|
-
}, null);
|
|
68
|
-
}, this)) ? t : {
|
|
69
|
-
default: () => [t]
|
|
55
|
+
}, m = t.map((e) => {
|
|
56
|
+
const i = "scheduler." + e.name + "ViewTitle", a = this.localization.toLanguageString(i, n[i]) || e.name;
|
|
57
|
+
return {
|
|
58
|
+
value: e.name,
|
|
59
|
+
text: e.title || a
|
|
60
|
+
};
|
|
70
61
|
});
|
|
62
|
+
return s && this.media === "mobile" ? d.call(this) : o(u, {
|
|
63
|
+
class: "k-toolbar-button-group k-scheduler-views",
|
|
64
|
+
items: m,
|
|
65
|
+
value: this.ks.activeViewName,
|
|
66
|
+
onChange: this.handleViewChange
|
|
67
|
+
}, null);
|
|
71
68
|
},
|
|
72
69
|
methods: {
|
|
70
|
+
handleViewChange(t) {
|
|
71
|
+
this.setActiveViewName(t);
|
|
72
|
+
},
|
|
73
73
|
ddlChange(t) {
|
|
74
74
|
this.setActiveViewName(t.target.value);
|
|
75
75
|
},
|
|
76
76
|
calculateMedia() {
|
|
77
|
-
|
|
77
|
+
c && window.matchMedia && (this.media = window.matchMedia("(min-width: 1024px)").matches ? "desktop" : "mobile");
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
V as ViewSelectorList
|
|
83
83
|
};
|