@progress/kendo-vue-scheduler 9.3.0-develop.5 → 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,15 +5,15 @@
|
|
|
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 { SchedulerActionButtons as
|
|
10
|
-
import { Form as
|
|
11
|
-
import { Dialog as
|
|
12
|
-
import { provideLocalizationService as
|
|
13
|
-
import { SchedulerFormEditor as
|
|
14
|
-
import { editorValidationRequired as
|
|
15
|
-
import { canUseDOM as
|
|
16
|
-
const
|
|
8
|
+
import { defineComponent as L, createVNode as r, h as o, inject as C } from "vue";
|
|
9
|
+
import { SchedulerActionButtons as D } from "./SchedulerActionButtons.mjs";
|
|
10
|
+
import { Form as E } from "@progress/kendo-vue-form";
|
|
11
|
+
import { Dialog as b } from "@progress/kendo-vue-dialogs";
|
|
12
|
+
import { provideLocalizationService as w } from "@progress/kendo-vue-intl";
|
|
13
|
+
import { SchedulerFormEditor as T } from "../editors/SchedulerFormEditor.mjs";
|
|
14
|
+
import { editorValidationRequired as h, messages as i, editorValidationEnd as c, editorSave as u, editorCancel as g, editorDelete as m, editorEditEvent as f, editorNewEvent as p, editorValidationStart as k } from "../messages/main.mjs";
|
|
15
|
+
import { canUseDOM as F, getTemplate as q, guid as z } from "@progress/kendo-vue-common";
|
|
16
|
+
const N = /* @__PURE__ */ L({
|
|
17
17
|
name: "KendoSchedulerForm",
|
|
18
18
|
emits: {
|
|
19
19
|
cancel: null,
|
|
@@ -21,7 +21,8 @@ const $ = /* @__PURE__ */ S({
|
|
|
21
21
|
submit: null
|
|
22
22
|
},
|
|
23
23
|
props: {
|
|
24
|
-
dataItem: Object
|
|
24
|
+
dataItem: Object,
|
|
25
|
+
onDelete: Function
|
|
25
26
|
},
|
|
26
27
|
inject: {
|
|
27
28
|
ks: {
|
|
@@ -38,7 +39,7 @@ const $ = /* @__PURE__ */ S({
|
|
|
38
39
|
}
|
|
39
40
|
},
|
|
40
41
|
created() {
|
|
41
|
-
this.dialogId =
|
|
42
|
+
this.dialogId = z();
|
|
42
43
|
},
|
|
43
44
|
data() {
|
|
44
45
|
return {
|
|
@@ -47,109 +48,116 @@ const $ = /* @__PURE__ */ S({
|
|
|
47
48
|
},
|
|
48
49
|
mounted() {
|
|
49
50
|
this.calculateMedia(), setTimeout(() => {
|
|
50
|
-
const
|
|
51
|
-
|
|
51
|
+
const e = document.getElementById(this.dialogId);
|
|
52
|
+
e && e.focus();
|
|
52
53
|
}, 10);
|
|
53
54
|
},
|
|
54
55
|
setup() {
|
|
55
56
|
return {
|
|
56
|
-
kendoLocalizationService:
|
|
57
|
+
kendoLocalizationService: C("kendoLocalizationService", {})
|
|
57
58
|
};
|
|
58
59
|
},
|
|
59
60
|
render() {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
var l;
|
|
62
|
+
const e = this, t = w(this);
|
|
63
|
+
this.requiredValidationMessage = t.toLanguageString(h, i[h]), this.endValidationMessage = t.toLanguageString(c, i[c]);
|
|
64
|
+
const s = t.toLanguageString(u, i[u]), n = t.toLanguageString(g, i[g]), d = t.toLanguageString(m, i[m]), a = !!((l = this.$props.dataItem) != null && l[this.ks.fields.id]), S = a ? t.toLanguageString(f, i[f]) : t.toLanguageString(p, i[p]);
|
|
65
|
+
this.startValidationMessage = t.toLanguageString(k, i[k]);
|
|
66
|
+
const M = r(T, null, {
|
|
67
|
+
default: () => [r(D, {
|
|
68
|
+
editSaveMessage: s,
|
|
69
|
+
editCancelMessage: n,
|
|
70
|
+
editDeleteMessage: a ? d : void 0,
|
|
71
|
+
onCancel: this.handleCancel,
|
|
72
|
+
onDelete: a && this.onDelete ? this.handleDelete : void 0
|
|
69
73
|
}, null)]
|
|
70
|
-
}),
|
|
71
|
-
h:
|
|
74
|
+
}), V = q.call(this, {
|
|
75
|
+
h: o,
|
|
72
76
|
template: this.ks.form,
|
|
73
|
-
defaultRendering:
|
|
77
|
+
defaultRendering: M,
|
|
74
78
|
additionalProps: {
|
|
75
79
|
dataItem: this.dataItem,
|
|
76
|
-
editSaveMessage:
|
|
77
|
-
editCancelMessage:
|
|
80
|
+
editSaveMessage: s,
|
|
81
|
+
editCancelMessage: n
|
|
78
82
|
},
|
|
79
83
|
additionalListeners: {
|
|
80
84
|
cancel: this.handleCancel
|
|
81
85
|
}
|
|
82
|
-
}),
|
|
83
|
-
title:
|
|
86
|
+
}), v = {
|
|
87
|
+
title: S,
|
|
84
88
|
appendTo: "body",
|
|
85
|
-
|
|
89
|
+
width: this.media === "desktop" ? 650 : "85%",
|
|
86
90
|
wrapperId: this.dialogId,
|
|
87
91
|
...this.ks.dialogProps
|
|
88
|
-
},
|
|
89
|
-
initialValues:
|
|
90
|
-
validator:
|
|
92
|
+
}, I = {
|
|
93
|
+
initialValues: e.ksModifyInitialFormValues(e.$props.dataItem),
|
|
94
|
+
validator: e.formValidator,
|
|
91
95
|
...this.ks.formProps
|
|
92
96
|
};
|
|
93
|
-
return
|
|
97
|
+
return o(b, {
|
|
94
98
|
onClose: this.handleClose,
|
|
95
99
|
class: "k-scheduler-edit-dialog",
|
|
96
|
-
...
|
|
100
|
+
...v
|
|
97
101
|
}, function() {
|
|
98
|
-
return [
|
|
99
|
-
onSubmit:
|
|
100
|
-
...
|
|
102
|
+
return [o(E, {
|
|
103
|
+
onSubmit: e.handleSubmit,
|
|
104
|
+
...I
|
|
101
105
|
}, function() {
|
|
102
|
-
return [
|
|
106
|
+
return [V];
|
|
103
107
|
})];
|
|
104
108
|
});
|
|
105
109
|
},
|
|
106
110
|
methods: {
|
|
107
111
|
calculateMedia() {
|
|
108
|
-
|
|
112
|
+
F && window.matchMedia && (this.media = window.matchMedia("(min-width: 600px)").matches ? "desktop" : "mobile");
|
|
109
113
|
},
|
|
110
|
-
handleCancel(
|
|
114
|
+
handleCancel(e) {
|
|
111
115
|
this.$emit("cancel", {
|
|
112
116
|
value: null,
|
|
113
|
-
event:
|
|
117
|
+
event: e,
|
|
114
118
|
target: this.form
|
|
115
119
|
});
|
|
116
120
|
},
|
|
117
121
|
handleClose({
|
|
118
|
-
event:
|
|
122
|
+
event: e
|
|
119
123
|
}) {
|
|
120
124
|
this.$emit("close", {
|
|
121
125
|
value: null,
|
|
122
|
-
event:
|
|
126
|
+
event: e,
|
|
123
127
|
target: this.form
|
|
124
128
|
});
|
|
125
129
|
},
|
|
126
|
-
|
|
130
|
+
handleDelete() {
|
|
131
|
+
var e;
|
|
132
|
+
(e = this.onDelete) == null || e.call(this, this.$props.dataItem);
|
|
133
|
+
},
|
|
134
|
+
handleSubmit(e, t) {
|
|
127
135
|
this.$emit("submit", {
|
|
128
|
-
value:
|
|
129
|
-
event:
|
|
136
|
+
value: e,
|
|
137
|
+
event: t,
|
|
130
138
|
target: this.form
|
|
131
139
|
});
|
|
132
140
|
},
|
|
133
|
-
startAfterEndValidator(
|
|
134
|
-
return
|
|
141
|
+
startAfterEndValidator(e, t) {
|
|
142
|
+
return e && t(this.ks.fields.end) && e.getTime() > t(this.ks.fields.end).getTime() ? this.startValidationMessage : void 0;
|
|
135
143
|
},
|
|
136
|
-
endAfterStartValidator(
|
|
137
|
-
return
|
|
144
|
+
endAfterStartValidator(e, t) {
|
|
145
|
+
return e && t(this.ks.fields.start) && e.getTime() < t(this.ks.fields.start).getTime() ? this.endValidationMessage : void 0;
|
|
138
146
|
},
|
|
139
|
-
requiredValidator(
|
|
140
|
-
return
|
|
147
|
+
requiredValidator(e) {
|
|
148
|
+
return e ? void 0 : this.requiredValidationMessage;
|
|
141
149
|
},
|
|
142
|
-
formValidator(
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
const
|
|
150
|
+
formValidator(e, t) {
|
|
151
|
+
const s = {};
|
|
152
|
+
s[this.ks.fields.start] = [this.requiredValidator(t(this.ks.fields.start)), this.startAfterEndValidator(t(this.ks.fields.start), t)].filter(Boolean).reduce((d, a) => d || a, ""), s[this.ks.fields.end] = [this.requiredValidator(t(this.ks.fields.start)), this.endAfterStartValidator(t(this.ks.fields.start), t)].filter(Boolean).reduce((d, a) => d || a, "");
|
|
153
|
+
const n = this.ksValidator(t);
|
|
146
154
|
return {
|
|
147
|
-
...
|
|
148
|
-
...
|
|
155
|
+
...s,
|
|
156
|
+
...n
|
|
149
157
|
};
|
|
150
158
|
}
|
|
151
159
|
}
|
|
152
160
|
});
|
|
153
161
|
export {
|
|
154
|
-
|
|
162
|
+
N as SchedulerForm
|
|
155
163
|
};
|
|
@@ -57,8 +57,8 @@ declare const SchedulerOccurrenceDialog: import('vue').DefineComponent<import('v
|
|
|
57
57
|
dataItem: PropType<any>;
|
|
58
58
|
isRemove: PropType<boolean>;
|
|
59
59
|
onClose: PropType<(event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void>;
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
onOccurrenceclick: PropType<(event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void>;
|
|
61
|
+
onSeriesclick: PropType<(event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void>;
|
|
62
62
|
}>, {
|
|
63
63
|
kendoLocalizationService: {};
|
|
64
64
|
}, {}, {}, {
|
|
@@ -69,7 +69,7 @@ declare const SchedulerOccurrenceDialog: import('vue').DefineComponent<import('v
|
|
|
69
69
|
dataItem: PropType<any>;
|
|
70
70
|
isRemove: PropType<boolean>;
|
|
71
71
|
onClose: PropType<(event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void>;
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
onOccurrenceclick: PropType<(event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void>;
|
|
73
|
+
onSeriesclick: PropType<(event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void>;
|
|
74
74
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
75
75
|
export { SchedulerOccurrenceDialog };
|
|
@@ -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 n=require("vue"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("@progress/kendo-vue-dialogs"),v=require("@progress/kendo-vue-intl"),t=require("../messages/main.js"),M=require("@progress/kendo-vue-common"),a=require("@progress/kendo-vue-buttons");function u(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const D=n.defineComponent({name:"KendoSchedulerOccurrenceDialog",props:{dataItem:Object,isRemove:Boolean,onClose:Function,onOccurrenceclick:Function,onSeriesclick:Function},inject:{kendoLocalizationService:{default:null}},created(){this.dialogId=M.guid()},mounted(){setTimeout(()=>{const e=document.getElementById(this.dialogId);e&&e.focus()},10)},setup(){return{kendoLocalizationService:n.inject("kendoLocalizationService",{})}},render(){const{isRemove:e}=this.$props,o=v.provideLocalizationService(this),i=s=>o.toLanguageString(s,t.messages[s]),d=i(t.editorOccurrence),g=i(t.editorSeries),p=i(t.editorRecurringConfirmation),h=i(t.editorRecurringDialogTitle),S=i(t.deleteOccurrence),m=i(t.deleteSeries),k=i(t.deleteRecurringDialogTitle),f=i(t.deleteRecurringConfirmation),C=e?k:h,O=e?f:p,c=e?S:d,r=e?m:g;return n.createVNode(l.Dialog,{title:C,appendTo:"body",wrapperId:this.dialogId,onClose:this.handleClose},{default:()=>[O,n.createVNode(l.DialogActionsBar,null,{default:()=>[n.createVNode(a.Button,{onClick:this.handleOccurrenceClick},u(c)?c:{default:()=>[c]}),n.createVNode(a.Button,{onClick:this.handleSeriesClick},u(r)?r:{default:()=>[r]})]})]})},methods:{handleClose({event:e}){var o;(o=this.onClose)==null||o.call(this,{event:e,value:null,target:{props:this.$props}})},handleSeriesClick(e){var o;(o=this.onSeriesclick)==null||o.call(this,{event:e,value:null,target:{props:this.$props}})},handleOccurrenceClick(e){var o;(o=this.onOccurrenceclick)==null||o.call(this,{event:e,value:null,target:{props:this.$props}})}}});exports.SchedulerOccurrenceDialog=D;
|
|
@@ -5,23 +5,23 @@
|
|
|
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 { Dialog as
|
|
8
|
+
import { defineComponent as k, createVNode as i, inject as M, isVNode as O } from "vue";
|
|
9
|
+
import { Dialog as v, DialogActionsBar as R } from "@progress/kendo-vue-dialogs";
|
|
10
10
|
import { provideLocalizationService as D } from "@progress/kendo-vue-intl";
|
|
11
11
|
import { messages as z, deleteRecurringDialogTitle as j, editorRecurringDialogTitle as I, deleteRecurringConfirmation as L, editorRecurringConfirmation as T, deleteOccurrence as b, editorOccurrence as y, deleteSeries as B, editorSeries as $ } from "../messages/main.mjs";
|
|
12
12
|
import { guid as F } from "@progress/kendo-vue-common";
|
|
13
|
-
import { Button as
|
|
14
|
-
function
|
|
13
|
+
import { Button as s } from "@progress/kendo-vue-buttons";
|
|
14
|
+
function l(e) {
|
|
15
15
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !O(e);
|
|
16
16
|
}
|
|
17
|
-
const K = /* @__PURE__ */
|
|
17
|
+
const K = /* @__PURE__ */ k({
|
|
18
18
|
name: "KendoSchedulerOccurrenceDialog",
|
|
19
19
|
props: {
|
|
20
20
|
dataItem: Object,
|
|
21
21
|
isRemove: Boolean,
|
|
22
22
|
onClose: Function,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
onOccurrenceclick: Function,
|
|
24
|
+
onSeriesclick: Function
|
|
25
25
|
},
|
|
26
26
|
inject: {
|
|
27
27
|
kendoLocalizationService: {
|
|
@@ -39,28 +39,28 @@ const K = /* @__PURE__ */ M({
|
|
|
39
39
|
},
|
|
40
40
|
setup() {
|
|
41
41
|
return {
|
|
42
|
-
kendoLocalizationService:
|
|
42
|
+
kendoLocalizationService: M("kendoLocalizationService", {})
|
|
43
43
|
};
|
|
44
44
|
},
|
|
45
45
|
render() {
|
|
46
46
|
const {
|
|
47
47
|
isRemove: e
|
|
48
|
-
} = this.$props,
|
|
49
|
-
return
|
|
48
|
+
} = this.$props, o = D(this), t = (c) => o.toLanguageString(c, z[c]), a = t(y), d = t($), u = t(T), g = t(I), p = t(b), m = t(B), h = t(j), f = t(L), S = e ? h : g, C = e ? f : u, n = e ? p : a, r = e ? m : d;
|
|
49
|
+
return i(v, {
|
|
50
50
|
title: S,
|
|
51
51
|
appendTo: "body",
|
|
52
52
|
wrapperId: this.dialogId,
|
|
53
53
|
onClose: this.handleClose
|
|
54
54
|
}, {
|
|
55
|
-
default: () => [C,
|
|
56
|
-
default: () => [
|
|
55
|
+
default: () => [C, i(R, null, {
|
|
56
|
+
default: () => [i(s, {
|
|
57
57
|
onClick: this.handleOccurrenceClick
|
|
58
|
-
},
|
|
59
|
-
default: () => [i]
|
|
60
|
-
}), t(r, {
|
|
61
|
-
onClick: this.handleSeriesClick
|
|
62
|
-
}, s(n) ? n : {
|
|
58
|
+
}, l(n) ? n : {
|
|
63
59
|
default: () => [n]
|
|
60
|
+
}), i(s, {
|
|
61
|
+
onClick: this.handleSeriesClick
|
|
62
|
+
}, l(r) ? r : {
|
|
63
|
+
default: () => [r]
|
|
64
64
|
})]
|
|
65
65
|
})]
|
|
66
66
|
});
|
|
@@ -69,24 +69,33 @@ const K = /* @__PURE__ */ M({
|
|
|
69
69
|
handleClose({
|
|
70
70
|
event: e
|
|
71
71
|
}) {
|
|
72
|
-
|
|
72
|
+
var o;
|
|
73
|
+
(o = this.onClose) == null || o.call(this, {
|
|
73
74
|
event: e,
|
|
74
|
-
value: null
|
|
75
|
-
|
|
75
|
+
value: null,
|
|
76
|
+
target: {
|
|
77
|
+
props: this.$props
|
|
78
|
+
}
|
|
76
79
|
});
|
|
77
80
|
},
|
|
78
81
|
handleSeriesClick(e) {
|
|
79
|
-
|
|
82
|
+
var o;
|
|
83
|
+
(o = this.onSeriesclick) == null || o.call(this, {
|
|
80
84
|
event: e,
|
|
81
|
-
value: null
|
|
82
|
-
|
|
85
|
+
value: null,
|
|
86
|
+
target: {
|
|
87
|
+
props: this.$props
|
|
88
|
+
}
|
|
83
89
|
});
|
|
84
90
|
},
|
|
85
91
|
handleOccurrenceClick(e) {
|
|
86
|
-
|
|
92
|
+
var o;
|
|
93
|
+
(o = this.onOccurrenceclick) == null || o.call(this, {
|
|
87
94
|
event: e,
|
|
88
|
-
value: null
|
|
89
|
-
|
|
95
|
+
value: null,
|
|
96
|
+
target: {
|
|
97
|
+
props: this.$props
|
|
98
|
+
}
|
|
90
99
|
});
|
|
91
100
|
}
|
|
92
101
|
}
|
|
@@ -33,6 +33,10 @@ export interface SchedulerRemoveDialogProps {
|
|
|
33
33
|
* Called when the `confirm` button is clicked.
|
|
34
34
|
*/
|
|
35
35
|
onConfirm?: (event: SchedulerRemoveDialogStateChangeEvent<DataItem | null>) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates whether the delete action targets an entire series.
|
|
38
|
+
*/
|
|
39
|
+
isSeries?: boolean;
|
|
36
40
|
}
|
|
37
41
|
/** @hidden */
|
|
38
42
|
export type SchedulerRemoveDialogHandle = {
|
|
@@ -46,6 +50,7 @@ declare const SchedulerRemoveDialog: import('vue').DefineComponent<import('vue')
|
|
|
46
50
|
onClose: PropType<(event: SchedulerRemoveDialogStateChangeEvent<null>) => void>;
|
|
47
51
|
onCancel: PropType<(event: SchedulerRemoveDialogStateChangeEvent<null>) => void>;
|
|
48
52
|
onConfirm: PropType<(event: SchedulerRemoveDialogStateChangeEvent<DataItem | null>) => void>;
|
|
53
|
+
isSeries: PropType<boolean>;
|
|
49
54
|
}>, {
|
|
50
55
|
kendoLocalizationService: {};
|
|
51
56
|
}, {}, {}, {
|
|
@@ -57,5 +62,6 @@ declare const SchedulerRemoveDialog: import('vue').DefineComponent<import('vue')
|
|
|
57
62
|
onClose: PropType<(event: SchedulerRemoveDialogStateChangeEvent<null>) => void>;
|
|
58
63
|
onCancel: PropType<(event: SchedulerRemoveDialogStateChangeEvent<null>) => void>;
|
|
59
64
|
onConfirm: PropType<(event: SchedulerRemoveDialogStateChangeEvent<DataItem | null>) => void>;
|
|
65
|
+
isSeries: PropType<boolean>;
|
|
60
66
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
61
67
|
export { SchedulerRemoveDialog };
|
|
@@ -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 t=require("vue"),a=require("@progress/kendo-vue-dialogs"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),a=require("@progress/kendo-vue-dialogs"),c=require("@progress/kendo-vue-intl"),o=require("../messages/main.js"),l=require("@progress/kendo-vue-buttons"),u=require("@progress/kendo-vue-common");function s(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const g=t.defineComponent({name:"KendoSchedulerRemoveDialog",props:{dataItem:Object,onClose:Function,onCancel:Function,onConfirm:Function,isSeries:Boolean},inject:{kendoLocalizationService:{default:null}},created(){this.dialogId=u.guid()},mounted(){setTimeout(()=>{const e=document.getElementById(this.dialogId);e&&e.focus()},10)},setup(){return{kendoLocalizationService:t.inject("kendoLocalizationService",{})}},render(){const e=c.provideLocalizationService(this),i=e.toLanguageString(o.editorCancel,o.messages[o.editorCancel]),n=e.toLanguageString(o.editorDelete,o.messages[o.editorDelete]),r=this.isSeries?e.toLanguageString(o.deleteSeriesConfirmation,o.messages[o.deleteSeriesConfirmation]):e.toLanguageString(o.deleteConfirmation,o.messages[o.deleteConfirmation]),d=this.isSeries?e.toLanguageString(o.deleteSeriesDialogTitle,o.messages[o.deleteSeriesDialogTitle]):e.toLanguageString(o.deleteDialogTitle,o.messages[o.deleteDialogTitle]);return t.createVNode(a.Dialog,{title:d,appendTo:"body",wrapperId:this.dialogId,onClose:this.handleClose},{default:()=>[r,t.createVNode(a.DialogActionsBar,null,{default:()=>[t.createVNode(l.Button,{onClick:this.handleCancel},s(i)?i:{default:()=>[i]}),t.createVNode(l.Button,{onClick:this.handleConfirm},s(n)?n:{default:()=>[n]})]})]})},methods:{handleClose({event:e}){this.$emit("close",{event:e})},handleCancel(e){this.$emit("cancel",{event:e,value:null})},handleConfirm(e){this.$emit("confirm",{event:e,value:null})}}});exports.SchedulerRemoveDialog=g;
|
|
@@ -5,22 +5,23 @@
|
|
|
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 { Dialog as
|
|
10
|
-
import { provideLocalizationService as
|
|
11
|
-
import { editorCancel as a, messages as
|
|
12
|
-
import { Button as
|
|
13
|
-
import { guid as
|
|
14
|
-
function
|
|
15
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
8
|
+
import { defineComponent as h, createVNode as t, inject as p, isVNode as S } from "vue";
|
|
9
|
+
import { Dialog as C, DialogActionsBar as v } from "@progress/kendo-vue-dialogs";
|
|
10
|
+
import { provideLocalizationService as L } from "@progress/kendo-vue-intl";
|
|
11
|
+
import { editorCancel as a, messages as o, editorDelete as l, deleteSeriesConfirmation as r, deleteConfirmation as s, deleteSeriesDialogTitle as c, deleteDialogTitle as d } from "../messages/main.mjs";
|
|
12
|
+
import { Button as g } from "@progress/kendo-vue-buttons";
|
|
13
|
+
import { guid as D } from "@progress/kendo-vue-common";
|
|
14
|
+
function m(e) {
|
|
15
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !S(e);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const y = /* @__PURE__ */ h({
|
|
18
18
|
name: "KendoSchedulerRemoveDialog",
|
|
19
19
|
props: {
|
|
20
20
|
dataItem: Object,
|
|
21
21
|
onClose: Function,
|
|
22
22
|
onCancel: Function,
|
|
23
|
-
onConfirm: Function
|
|
23
|
+
onConfirm: Function,
|
|
24
|
+
isSeries: Boolean
|
|
24
25
|
},
|
|
25
26
|
inject: {
|
|
26
27
|
kendoLocalizationService: {
|
|
@@ -28,7 +29,7 @@ const b = /* @__PURE__ */ g({
|
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
created() {
|
|
31
|
-
this.dialogId =
|
|
32
|
+
this.dialogId = D();
|
|
32
33
|
},
|
|
33
34
|
mounted() {
|
|
34
35
|
setTimeout(() => {
|
|
@@ -38,26 +39,26 @@ const b = /* @__PURE__ */ g({
|
|
|
38
39
|
},
|
|
39
40
|
setup() {
|
|
40
41
|
return {
|
|
41
|
-
kendoLocalizationService:
|
|
42
|
+
kendoLocalizationService: p("kendoLocalizationService", {})
|
|
42
43
|
};
|
|
43
44
|
},
|
|
44
45
|
render() {
|
|
45
|
-
const e =
|
|
46
|
-
return
|
|
47
|
-
title:
|
|
46
|
+
const e = L(this), i = e.toLanguageString(a, o[a]), n = e.toLanguageString(l, o[l]), u = this.isSeries ? e.toLanguageString(r, o[r]) : e.toLanguageString(s, o[s]), f = this.isSeries ? e.toLanguageString(c, o[c]) : e.toLanguageString(d, o[d]);
|
|
47
|
+
return t(C, {
|
|
48
|
+
title: f,
|
|
48
49
|
appendTo: "body",
|
|
49
50
|
wrapperId: this.dialogId,
|
|
50
51
|
onClose: this.handleClose
|
|
51
52
|
}, {
|
|
52
|
-
default: () => [
|
|
53
|
-
default: () => [
|
|
53
|
+
default: () => [u, t(v, null, {
|
|
54
|
+
default: () => [t(g, {
|
|
54
55
|
onClick: this.handleCancel
|
|
55
|
-
},
|
|
56
|
-
default: () => [n]
|
|
57
|
-
}), o(d, {
|
|
58
|
-
onClick: this.handleConfirm
|
|
59
|
-
}, s(i) ? i : {
|
|
56
|
+
}, m(i) ? i : {
|
|
60
57
|
default: () => [i]
|
|
58
|
+
}), t(g, {
|
|
59
|
+
onClick: this.handleConfirm
|
|
60
|
+
}, m(n) ? n : {
|
|
61
|
+
default: () => [n]
|
|
61
62
|
})]
|
|
62
63
|
})]
|
|
63
64
|
});
|
|
@@ -85,5 +86,5 @@ const b = /* @__PURE__ */ g({
|
|
|
85
86
|
}
|
|
86
87
|
});
|
|
87
88
|
export {
|
|
88
|
-
|
|
89
|
+
y as SchedulerRemoveDialog
|
|
89
90
|
};
|
|
@@ -12,25 +12,34 @@ import { PropType } from 'vue';
|
|
|
12
12
|
*/
|
|
13
13
|
export interface ShowMoreItemsButtonMouseEvent {
|
|
14
14
|
event: any;
|
|
15
|
-
target:
|
|
15
|
+
target: {
|
|
16
|
+
element: HTMLElement | null;
|
|
17
|
+
slot?: Slot;
|
|
18
|
+
};
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
21
|
* @hidden
|
|
19
22
|
*/
|
|
20
23
|
export interface ShowMoreItemsButtonProps {
|
|
21
24
|
currentSlot?: Slot;
|
|
25
|
+
hiddenCount?: number;
|
|
22
26
|
onClick?: (event: ShowMoreItemsButtonMouseEvent) => void;
|
|
23
27
|
}
|
|
24
28
|
/**
|
|
25
29
|
* @hidden
|
|
26
30
|
*/
|
|
27
31
|
declare const ShowMoreItemsButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
32
|
+
currentSlot: PropType<Slot>;
|
|
33
|
+
hiddenCount: PropType<number>;
|
|
28
34
|
onClick: PropType<(event: ShowMoreItemsButtonMouseEvent) => void>;
|
|
29
35
|
}>, {
|
|
30
36
|
kendoLocalizationService: {};
|
|
31
37
|
}, {}, {}, {
|
|
32
38
|
handleClick(event: any): void;
|
|
39
|
+
handleDoubleClick(event: MouseEvent): void;
|
|
33
40
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
|
+
currentSlot: PropType<Slot>;
|
|
42
|
+
hiddenCount: PropType<number>;
|
|
34
43
|
onClick: PropType<(event: ShowMoreItemsButtonMouseEvent) => void>;
|
|
35
44
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
36
45
|
export { ShowMoreItemsButton };
|
|
@@ -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"),r=require("@progress/kendo-vue-buttons"),l=require("@progress/kendo-vue-intl"),i=require("../messages/main.js");function s(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const c=n.defineComponent({name:"KendoShowMoreItemsButton",props:{currentSlot:Object,hiddenCount:Number,onClick:Function},inject:{kendoLocalizationService:{default:null}},setup(){return{kendoLocalizationService:n.inject("kendoLocalizationService",{})}},mounted(){var e,t;(t=(e=this.$refs.button)==null?void 0:e.$el)==null||t.addEventListener("dblclick",this.handleDoubleClick)},unmounted(){var e,t;(t=(e=this.$refs.button)==null?void 0:e.$el)==null||t.removeEventListener("dblclick",this.handleDoubleClick)},render(){const t=l.provideLocalizationService(this).toLanguageString(i.moreEvents,i.messages[i.moreEvents]),o=this.$props.hiddenCount!==void 0?`${String(this.$props.hiddenCount)} ${t}`:t;return n.createVNode(r.Button,{ref:"button",tabIndex:-1,size:"xs",fillMode:"flat",themeColor:"primary",class:"k-more-events",onClick:this.handleClick,ariaLabel:o},s(o)?o:{default:()=>[o]})},methods:{handleClick(e){if(e.stopPropagation(),!this.onClick)return;const t=this.$refs.button,o=(t==null?void 0:t.$el)||(t==null?void 0:t.element)||null;this.onClick({target:{element:o,slot:this.currentSlot},event:e})},handleDoubleClick(e){e.stopPropagation()}}});exports.ShowMoreItemsButton=c;
|
|
@@ -5,14 +5,18 @@
|
|
|
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 { Button as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
8
|
+
import { defineComponent as i, createVNode as r, inject as l, isVNode as c } from "vue";
|
|
9
|
+
import { Button as a } from "@progress/kendo-vue-buttons";
|
|
10
|
+
import { provideLocalizationService as s } from "@progress/kendo-vue-intl";
|
|
11
|
+
import { moreEvents as n, messages as d } from "../messages/main.mjs";
|
|
12
|
+
function u(e) {
|
|
13
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
|
|
14
|
+
}
|
|
15
|
+
const k = /* @__PURE__ */ i({
|
|
13
16
|
name: "KendoShowMoreItemsButton",
|
|
14
17
|
props: {
|
|
15
|
-
|
|
18
|
+
currentSlot: Object,
|
|
19
|
+
hiddenCount: Number,
|
|
16
20
|
onClick: Function
|
|
17
21
|
},
|
|
18
22
|
inject: {
|
|
@@ -22,32 +26,50 @@ const s = /* @__PURE__ */ t({
|
|
|
22
26
|
},
|
|
23
27
|
setup() {
|
|
24
28
|
return {
|
|
25
|
-
kendoLocalizationService:
|
|
29
|
+
kendoLocalizationService: l("kendoLocalizationService", {})
|
|
26
30
|
};
|
|
27
31
|
},
|
|
32
|
+
mounted() {
|
|
33
|
+
var e, t;
|
|
34
|
+
(t = (e = this.$refs.button) == null ? void 0 : e.$el) == null || t.addEventListener("dblclick", this.handleDoubleClick);
|
|
35
|
+
},
|
|
36
|
+
unmounted() {
|
|
37
|
+
var e, t;
|
|
38
|
+
(t = (e = this.$refs.button) == null ? void 0 : e.$el) == null || t.removeEventListener("dblclick", this.handleDoubleClick);
|
|
39
|
+
},
|
|
28
40
|
render() {
|
|
29
|
-
|
|
41
|
+
const t = s(this).toLanguageString(n, d[n]), o = this.$props.hiddenCount !== void 0 ? `${String(this.$props.hiddenCount)} ${t}` : t;
|
|
42
|
+
return r(a, {
|
|
43
|
+
ref: "button",
|
|
30
44
|
tabIndex: -1,
|
|
45
|
+
size: "xs",
|
|
46
|
+
fillMode: "flat",
|
|
47
|
+
themeColor: "primary",
|
|
31
48
|
class: "k-more-events",
|
|
32
|
-
onClick: this.handleClick
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
icon: c
|
|
37
|
-
}, null)]
|
|
49
|
+
onClick: this.handleClick,
|
|
50
|
+
ariaLabel: o
|
|
51
|
+
}, u(o) ? o : {
|
|
52
|
+
default: () => [o]
|
|
38
53
|
});
|
|
39
54
|
},
|
|
40
55
|
methods: {
|
|
41
|
-
handleClick(
|
|
42
|
-
|
|
56
|
+
handleClick(e) {
|
|
57
|
+
if (e.stopPropagation(), !this.onClick)
|
|
58
|
+
return;
|
|
59
|
+
const t = this.$refs.button, o = (t == null ? void 0 : t.$el) || (t == null ? void 0 : t.element) || null;
|
|
60
|
+
this.onClick({
|
|
43
61
|
target: {
|
|
62
|
+
element: o,
|
|
44
63
|
slot: this.currentSlot
|
|
45
64
|
},
|
|
46
|
-
event:
|
|
65
|
+
event: e
|
|
47
66
|
});
|
|
67
|
+
},
|
|
68
|
+
handleDoubleClick(e) {
|
|
69
|
+
e.stopPropagation();
|
|
48
70
|
}
|
|
49
71
|
}
|
|
50
72
|
});
|
|
51
73
|
export {
|
|
52
|
-
|
|
74
|
+
k as ShowMoreItemsButton
|
|
53
75
|
};
|
|
@@ -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 t=require("vue"),e=require("../../../messages/main.js"),n=require("@progress/kendo-vue-
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("../../../messages/main.js"),n=require("@progress/kendo-vue-common"),i=require("@progress/kendo-vue-buttons"),l=require("@progress/kendo-vue-intl"),r=require("@progress/kendo-svg-icons");function u(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!t.isVNode(o)}const c=t.defineComponent({name:"KendoBusinessHours",emits:{click:null},inject:{ks:{default:null},kendoLocalizationService:{default:null}},props:{slotDuration:Number},render(){let o;const s=n.getDefaultSlots(this);return this.localization=l.provideLocalizationService(this),this.slotDuration&&this.slotDuration<1440?s||t.createVNode(i.Button,{tabIndex:-1,class:"k-toolbar-button k-scheduler-fullday",svgIcon:r.clockIcon,onClick:this.handleShowWorkHoursClick},u(o=this.localization.toLanguageString(this.ks.showWorkHours?e.showFullDay:e.showWorkDay,e.messages[this.ks.showWorkHours?e.showFullDay:e.showWorkDay]))?o:{default:()=>[o]}):null},methods:{handleShowWorkHoursClick(o){this.$emit("click",o)}}});exports.BusinessHours=c;
|