@progress/kendo-vue-scheduler 8.4.0-develop.2 → 8.4.0-develop.4

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 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"),c=require("@progress/kendo-vue-common"),e=require("../../../messages/main.js"),r=require("@progress/kendo-vue-intl"),i=require("@progress/kendo-svg-icons");function s(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o.isVNode(t)}const u=o.defineComponent({name:"KendoSchedulerNavigation",props:{isRtl:Boolean,onPrevclick:Function,onNextclick:Function,onTodayclick:Function},inject:{ks:{default:null},kendoLocalizationService:{default:null}},render(){c.getDefaultSlots(this),this.localization=r.provideLocalizationService(this);const t=this.localization.toLanguageString(e.today,e.messages[e.today]),l=this.localization.toLanguageString(e.previousTitle,e.messages[e.previousTitle]),a=this.localization.toLanguageString(e.nextTitle,e.messages[e.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:t,"aria-label":t,onClick:this.handleTodayClick},s(t)?t:{default:()=>[t]}),o.createVNode(n.Button,{role:"button",tabIndex:-1,class:"k-button-icon k-nav-prev",icon:this.isRtl?"caret-alt-right":"caret-alt-left",svgIcon:this.isRtl?i.caretAltRightIcon:i.caretAltLeftIcon,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?"caret-alt-left":"caret-alt-right",svgIcon:this.isRtl?i.caretAltLeftIcon:i.caretAltRightIcon,title:a,"aria-label":a,onClick:this.handleNextClick},null)]})]})},methods:{handleTodayClick(t){this.$emit("todayclick",t)},handlePrevClick(t){this.$emit("prevclick",t)},handleNextClick(t){this.$emit("nextclick",t)}}});exports.SchedulerNavigation=u;
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 d, createVNode as e, isVNode as h } from "vue";
9
- import { ToolbarItem as k, ButtonGroup as g, Button as i } from "@progress/kendo-vue-buttons";
10
- import { getDefaultSlots as m } from "@progress/kendo-vue-common";
11
- import { today as a, messages as o, previousTitle as c, nextTitle as r } from "../../../messages/main.mjs";
12
- import { provideLocalizationService as f } from "@progress/kendo-vue-intl";
13
- import { caretAltRightIcon as s, caretAltLeftIcon as u } from "@progress/kendo-svg-icons";
14
- function p(t) {
15
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !h(t);
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__ */ d({
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
- m(this), this.localization = f(this);
35
- const t = this.localization.toLanguageString(a, o[a]), l = this.localization.toLanguageString(c, o[c]), n = this.localization.toLanguageString(r, o[r]);
36
- return e(k, null, {
37
- default: () => [e(g, {
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(i, {
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
- }, p(t) ? t : {
47
+ }, f(t) ? t : {
48
48
  default: () => [t]
49
- }), e(i, {
49
+ }), o(e, {
50
50
  role: "button",
51
51
  tabIndex: -1,
52
52
  class: "k-button-icon k-nav-prev",
53
- icon: this.isRtl ? "caret-alt-right" : "caret-alt-left",
54
- svgIcon: this.isRtl ? s : u,
55
- title: l,
56
- "aria-label": l,
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(i, {
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 ? "caret-alt-left" : "caret-alt-right",
63
- svgIcon: this.isRtl ? u : s,
64
- title: n,
65
- "aria-label": n,
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 i=require("vue"),u=require("@progress/kendo-vue-buttons"),m=require("./ViewSelectorItem.js"),h=require("@progress/kendo-vue-intl"),o=require("../../../messages/main.js"),c=require("@progress/kendo-vue-common");function w(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i.isVNode(t)}const k=i.defineComponent({name:"KendoViewSelectorList",inject:{kendoLocalizationService:{default:null},ks:{default:null},setActiveViewName:{default:null}},mounted(){this.calculateMedia(),c.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(){let t;const n=this.ks.views;this.localization=h.provideLocalizationService(this);const s=n.find(e=>e.name===this.ks.activeViewName),a="scheduler."+s.name+"ViewTitle";this.localization.toLanguageString(a,o.messages[a])||s.name;const d=function(){return i.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(o.dropdownlistSelectViewAriaLabel,o.messages[o.dropdownlistSelectViewAriaLabel]),onChange:this.ddlChange},[n.map(function(e){const r="scheduler."+e.name+"ViewTitle",l=this.localization.toLanguageString(r,o.messages[r])||e.name;return i.createVNode("option",{value:e.name||e.title||l,selected:e.name===this.ks.activeViewName},[e.title||l])},this)])};return s&&this.media==="mobile"?d.call(this):i.createVNode(u.ButtonGroup,{class:"k-toolbar-button-group k-scheduler-views"},w(t=n.map(function(e){return i.createVNode(m.ViewSelectorItem,{key:e.name,view:e},null)},this))?t:{default:()=>[t]})},methods:{ddlChange(t){this.setActiveViewName(t.target.value)},calculateMedia(){c.canUseDOM&&window.matchMedia&&(this.media=window.matchMedia("(min-width: 1024px)").matches?"desktop":"mobile")}}});exports.ViewSelectorList=k;
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 u, createVNode as i, isVNode as h } from "vue";
9
- import { ButtonGroup as w } from "@progress/kendo-vue-buttons";
10
- import { ViewSelectorItem as p } from "./ViewSelectorItem.mjs";
11
- import { provideLocalizationService as f } from "@progress/kendo-vue-intl";
12
- import { messages as a, dropdownlistSelectViewAriaLabel as c } from "../../../messages/main.mjs";
13
- import { canUseDOM as d } from "@progress/kendo-vue-common";
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(), d && window.ResizeObserver && (this.observer = new window.ResizeObserver(this.calculateMedia), this.ks.scheduler && this.ks.scheduler.$el && this.observer.observe(this.ks.scheduler.$el));
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
- let t;
43
- const o = this.ks.views;
44
- this.localization = f(this);
45
- const n = o.find((e) => e.name === this.ks.activeViewName), s = "scheduler." + n.name + "ViewTitle";
46
- this.localization.toLanguageString(s, a[s]) || n.name;
47
- const m = function() {
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(c, a[c]),
46
+ "aria-label": this.localization.toLanguageString(r, n[r]),
52
47
  onChange: this.ddlChange
53
- }, [o.map(function(e) {
54
- const r = "scheduler." + e.name + "ViewTitle", l = this.localization.toLanguageString(r, a[r]) || e.name;
55
- return i("option", {
56
- value: e.name || e.title || l,
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 || l]);
53
+ }, [e.title || a]);
59
54
  }, this)]);
60
- };
61
- return n && this.media === "mobile" ? m.call(this) : i(w, {
62
- class: "k-toolbar-button-group k-scheduler-views"
63
- }, k(t = o.map(function(e) {
64
- return i(p, {
65
- key: e.name,
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
- d && window.matchMedia && (this.media = window.matchMedia("(min-width: 1024px)").matches ? "desktop" : "mobile");
77
+ c && window.matchMedia && (this.media = window.matchMedia("(min-width: 1024px)").matches ? "desktop" : "mobile");
78
78
  }
79
79
  }
80
80
  });
81
81
  export {
82
- L as ViewSelectorList
82
+ V as ViewSelectorList
83
83
  };