@progress/kendo-vue-scheduler 10.2.0-develop.17 → 10.2.0-develop.18
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/codemods/v11/index.js +8 -0
- package/codemods/v11/scheduler-data-action-prop-rename.js +12 -0
- package/codemods/v11/scheduler-default-behavior-changes.js +12 -0
- package/codemods/v11/scheduler-event-rendering-changes.js +14 -0
- package/components/EventOverviewPopover.js +1 -1
- package/components/EventOverviewPopover.mjs +67 -67
- package/components/SchedulerQuickCreateForm.js +1 -1
- package/components/SchedulerQuickCreateForm.mjs +6 -6
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/editors/SchedulerFormEditor.d.ts +79 -52
- package/editors/SchedulerFormEditor.js +1 -1
- package/editors/SchedulerFormEditor.mjs +145 -143
- package/hooks/useRecurrenceSummary.d.ts +1 -1
- package/hooks/useRecurrenceSummary.js +1 -1
- package/hooks/useRecurrenceSummary.mjs +6 -2
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +33 -13
- package/utils/main.d.ts +1 -1
- package/utils/main.js +1 -1
- package/utils/main.mjs +161 -161
|
@@ -5,29 +5,29 @@
|
|
|
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 { timezoneNames as
|
|
10
|
-
import { parseRule as
|
|
11
|
-
import { Label as
|
|
12
|
-
import { provideLocalizationService as
|
|
13
|
-
import { FormElement as
|
|
14
|
-
import { TextArea as
|
|
15
|
-
import { getDefaultSlots as
|
|
16
|
-
import { rightDoubleQuotesIcon as
|
|
8
|
+
import { defineComponent as te, createVNode as e, Fragment as E, inject as A, provide as re, watch as ie, isVNode as ne } from "vue";
|
|
9
|
+
import { timezoneNames as oe, MS_PER_DAY as se } from "@progress/kendo-date-math";
|
|
10
|
+
import { parseRule as le } from "@progress/kendo-recurrence";
|
|
11
|
+
import { Label as g } from "@progress/kendo-vue-labels";
|
|
12
|
+
import { provideLocalizationService as L, provideIntlService as ae } from "@progress/kendo-vue-intl";
|
|
13
|
+
import { FormElement as ue, FieldWrapper as p, Field as u } from "@progress/kendo-vue-form";
|
|
14
|
+
import { TextArea as de, Switch as ce, TextBox as me } from "@progress/kendo-vue-inputs";
|
|
15
|
+
import { getDefaultSlots as he, SvgIcon as T, guid as fe } from "@progress/kendo-vue-common";
|
|
16
|
+
import { rightDoubleQuotesIcon as ge, clockIcon as pe, globeIcon as I, arrowRotateCwIcon as Te, commentIcon as ke } from "@progress/kendo-svg-icons";
|
|
17
17
|
import { Button as h } from "@progress/kendo-vue-buttons";
|
|
18
|
-
import { Dialog as
|
|
19
|
-
import { editorValidationRequired as
|
|
20
|
-
import { RecurrenceEditor as
|
|
21
|
-
import { ResourceEditor as
|
|
22
|
-
import { ZonedSplitDateTime as
|
|
23
|
-
import { TimezoneDropDownList as
|
|
24
|
-
import { SchedulerRecurrenceDialog as
|
|
18
|
+
import { Dialog as Re, DialogActionsBar as Se } from "@progress/kendo-vue-dialogs";
|
|
19
|
+
import { editorValidationRequired as x, messages as n, editorEventAllDay as j, editorEventTitle as k, editorEventStart as R, editorDateConnectorTo as S, editorEventEnd as z, editorStartTimeAriaLabel as O, editorDateConnectorFrom as B, editorSetTimezoneTitle as G, editorTimezoneButton as M, editorEventStartTimeZone as V, editorResetTimezoneAriaLabel as $, editorResetTimezoneTitle as q, editorEndTimeAriaLabel as _, editorEventEndTimeZone as N, editorEventDescription as v, resetTimezoneDialogTitle as P, resetTimezoneConfirmation as Z, resetTimezoneNo as K, resetTimezoneYes as W, editorRecurrenceEdit as ze, editorRecurrenceMakeRecurring as ve } from "../messages/main.mjs";
|
|
20
|
+
import { RecurrenceEditor as De } from "../recurrence/RecurrenceEditor.mjs";
|
|
21
|
+
import { ResourceEditor as Fe } from "./ResourceEditor.mjs";
|
|
22
|
+
import { ZonedSplitDateTime as Y, readDateAsLocal as w, dayValue as Q, readDateWithTimezone as ye } from "./ZonedSplitDateTime.mjs";
|
|
23
|
+
import { TimezoneDropDownList as H } from "./TimezoneDropDownList.mjs";
|
|
24
|
+
import { SchedulerRecurrenceDialog as be } from "./SchedulerRecurrenceDialog.mjs";
|
|
25
25
|
import { RemoveRecurrenceConfirmDialog as Ee } from "./RemoveRecurrenceConfirmDialog.mjs";
|
|
26
|
-
import { renderRecurrenceSummary as
|
|
27
|
-
function
|
|
28
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
26
|
+
import { renderRecurrenceSummary as Le, getRecurrenceSummary as we } from "../hooks/useRecurrenceSummary.mjs";
|
|
27
|
+
function D(t) {
|
|
28
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !ne(t);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const Qe = /* @__PURE__ */ te({
|
|
31
31
|
name: "KendoSchedulerFormEditor",
|
|
32
32
|
props: {
|
|
33
33
|
as: [String, Function, Object],
|
|
@@ -36,31 +36,31 @@ const We = /* @__PURE__ */ ee({
|
|
|
36
36
|
titleEditor: {
|
|
37
37
|
type: [String, Function, Object],
|
|
38
38
|
default: function() {
|
|
39
|
-
return
|
|
39
|
+
return me;
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
startEditor: {
|
|
43
43
|
type: [String, Function, Object],
|
|
44
44
|
default: function() {
|
|
45
|
-
return
|
|
45
|
+
return Y;
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
startTimezoneEditor: {
|
|
49
49
|
type: [String, Function, Object],
|
|
50
50
|
default: function() {
|
|
51
|
-
return
|
|
51
|
+
return H;
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
endEditor: {
|
|
55
55
|
type: [String, Function, Object],
|
|
56
56
|
default: function() {
|
|
57
|
-
return
|
|
57
|
+
return Y;
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
endTimezoneEditor: {
|
|
61
61
|
type: [String, Function, Object],
|
|
62
62
|
default: function() {
|
|
63
|
-
return
|
|
63
|
+
return H;
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
allDayLabel: {
|
|
@@ -72,25 +72,25 @@ const We = /* @__PURE__ */ ee({
|
|
|
72
72
|
allDayEditor: {
|
|
73
73
|
type: [String, Function, Object],
|
|
74
74
|
default: function() {
|
|
75
|
-
return
|
|
75
|
+
return ce;
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
recurrenceEditor: {
|
|
79
79
|
type: [String, Function, Object],
|
|
80
80
|
default: function() {
|
|
81
|
-
return
|
|
81
|
+
return De;
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
descriptionEditor: {
|
|
85
85
|
type: [String, Function, Object],
|
|
86
86
|
default: function() {
|
|
87
|
-
return
|
|
87
|
+
return de;
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
resourceEditor: {
|
|
91
91
|
type: [String, Function, Object],
|
|
92
92
|
default: function() {
|
|
93
|
-
return
|
|
93
|
+
return Fe;
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
recurrenceButtonTextTemplate: [Object, Function],
|
|
@@ -122,44 +122,45 @@ const We = /* @__PURE__ */ ee({
|
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
data() {
|
|
125
|
-
const t = this.kendoForm,
|
|
125
|
+
const t = this.kendoForm, i = this.ks;
|
|
126
126
|
return {
|
|
127
|
-
showTimezones: !!t.valueGetter(
|
|
127
|
+
showTimezones: !!t.valueGetter(i.fields.startTimezone),
|
|
128
128
|
showTimezoneResetDialog: !1,
|
|
129
129
|
showRecurrenceDialog: !1,
|
|
130
130
|
showRemoveRecurrenceDialog: !1
|
|
131
131
|
};
|
|
132
132
|
},
|
|
133
133
|
setup() {
|
|
134
|
-
const t =
|
|
135
|
-
let
|
|
136
|
-
|
|
134
|
+
const t = A("ks"), i = A("kendoForm"), c = fe();
|
|
135
|
+
let l = null, d;
|
|
136
|
+
re("schedulerEndAdjustment", (o) => (d = o, () => {
|
|
137
137
|
d === o && (d = void 0);
|
|
138
138
|
}));
|
|
139
|
-
const
|
|
140
|
-
const o =
|
|
141
|
-
o instanceof Date && a instanceof Date && Number.isFinite(o.getTime()) && Number.isFinite(a.getTime()) && a.getTime() >= o.getTime() && (
|
|
139
|
+
const r = () => {
|
|
140
|
+
const o = i.valueGetter(t.fields.start), a = i.valueGetter(t.fields.end);
|
|
141
|
+
o instanceof Date && a instanceof Date && Number.isFinite(o.getTime()) && Number.isFinite(a.getTime()) && a.getTime() >= o.getTime() && (l = {
|
|
142
142
|
start: new Date(o),
|
|
143
143
|
end: new Date(a)
|
|
144
144
|
});
|
|
145
|
-
},
|
|
146
|
-
const o =
|
|
147
|
-
if (!
|
|
145
|
+
}, f = () => {
|
|
146
|
+
const o = i.valueGetter(t.fields.start);
|
|
147
|
+
if (!l || !(o instanceof Date) || !Number.isFinite(o.getTime()))
|
|
148
148
|
return;
|
|
149
|
-
let a = new Date(o.getTime() +
|
|
150
|
-
if (
|
|
151
|
-
const
|
|
152
|
-
m.setDate(m.getDate() + Math.round((
|
|
149
|
+
let a = new Date(o.getTime() + l.end.getTime() - l.start.getTime());
|
|
150
|
+
if (i.valueGetter(t.fields.isAllDay)) {
|
|
151
|
+
const F = w(l.start, t.timezone), y = w(o, t.timezone), m = new Date(w(l.end, t.timezone));
|
|
152
|
+
m.setDate(m.getDate() + Math.round((Q(y) - Q(F)) / se)), a = ye(m, t.timezone);
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
i.onChange(t.fields.end, {
|
|
155
155
|
value: d ? d(a) : a
|
|
156
|
-
}),
|
|
156
|
+
}), r();
|
|
157
157
|
};
|
|
158
|
-
return
|
|
158
|
+
return r(), ie([() => i.valueGetter(t.fields.start), () => i.valueGetter(t.fields.end)], r, {
|
|
159
159
|
flush: "post"
|
|
160
160
|
}), {
|
|
161
|
-
handleStartChange:
|
|
162
|
-
updatePreviousRange:
|
|
161
|
+
handleStartChange: f,
|
|
162
|
+
updatePreviousRange: r,
|
|
163
|
+
recurrenceSummaryId: c
|
|
163
164
|
};
|
|
164
165
|
},
|
|
165
166
|
computed: {
|
|
@@ -185,36 +186,36 @@ const We = /* @__PURE__ */ ee({
|
|
|
185
186
|
return !this.isEditingOccurrence;
|
|
186
187
|
},
|
|
187
188
|
recurrenceButtonText() {
|
|
188
|
-
const t =
|
|
189
|
-
return t.toLanguageString(
|
|
189
|
+
const t = L(this), i = this.recurrenceRule ? ze : ve;
|
|
190
|
+
return t.toLanguageString(i, n[i]);
|
|
190
191
|
},
|
|
191
192
|
recurrenceSummaryText() {
|
|
192
193
|
if (!this.recurrenceRule)
|
|
193
194
|
return "";
|
|
194
|
-
const t =
|
|
195
|
-
return
|
|
195
|
+
const t = ae(this), i = L(this);
|
|
196
|
+
return we(this.recurrenceRule, this.start, t, (c, l) => i.toLanguageString(c, l));
|
|
196
197
|
},
|
|
197
198
|
parsedRecurrenceRule() {
|
|
198
|
-
return this.recurrenceRule ?
|
|
199
|
+
return this.recurrenceRule ? le({
|
|
199
200
|
recurrenceRule: this.recurrenceRule
|
|
200
201
|
}) : null;
|
|
201
202
|
}
|
|
202
203
|
},
|
|
203
204
|
render() {
|
|
204
|
-
let t,
|
|
205
|
-
const
|
|
206
|
-
this.requiredValidationMessage =
|
|
207
|
-
const
|
|
208
|
-
return e(
|
|
205
|
+
let t, i, c;
|
|
206
|
+
const l = he(this), d = oe(), r = L(this), f = this.$props.startEditor, o = this.$props.endEditor, a = this.$props.startTimezoneEditor, F = this.$props.endTimezoneEditor, y = this.$props.allDayEditor, m = this.$props.allDayLabel, J = this.$props.descriptionEditor, U = this.$props.resourceEditor, X = this.$props.titleEditor, ee = this.startTimezone, C = !!(this.recurrenceRule && (this.recurrenceSummaryTemplate || this.recurrenceSummaryText));
|
|
207
|
+
this.requiredValidationMessage = r.toLanguageString(x, n[x]);
|
|
208
|
+
const b = r.toLanguageString(j, n[j]);
|
|
209
|
+
return e(E, null, [e(ue, {
|
|
209
210
|
horizontal: !0,
|
|
210
211
|
class: "k-scheduler-edit-form"
|
|
211
212
|
}, {
|
|
212
|
-
default: () => [e(
|
|
213
|
-
default: () => [e(
|
|
213
|
+
default: () => [e(p, null, {
|
|
214
|
+
default: () => [e(g, {
|
|
214
215
|
class: "k-form-label"
|
|
215
216
|
}, {
|
|
216
|
-
default: () => [e(
|
|
217
|
-
icon:
|
|
217
|
+
default: () => [e(T, {
|
|
218
|
+
icon: ge,
|
|
218
219
|
size: "xlarge"
|
|
219
220
|
}, null)]
|
|
220
221
|
}), e("div", {
|
|
@@ -223,16 +224,16 @@ const We = /* @__PURE__ */ ee({
|
|
|
223
224
|
id: "k-scheduler-editor-title",
|
|
224
225
|
name: this.ks.fields.title,
|
|
225
226
|
field: this.ks.fields.title,
|
|
226
|
-
component:
|
|
227
|
-
placeholder:
|
|
228
|
-
"aria-label":
|
|
227
|
+
component: X,
|
|
228
|
+
placeholder: r.toLanguageString(k, n[k]),
|
|
229
|
+
"aria-label": r.toLanguageString(k, n[k])
|
|
229
230
|
}, null)])]
|
|
230
|
-
}), e(
|
|
231
|
-
default: () => [e(
|
|
231
|
+
}), e(p, null, {
|
|
232
|
+
default: () => [e(g, {
|
|
232
233
|
class: "k-form-label"
|
|
233
234
|
}, {
|
|
234
|
-
default: () => [e(
|
|
235
|
-
icon:
|
|
235
|
+
default: () => [e(T, {
|
|
236
|
+
icon: pe,
|
|
236
237
|
size: "xlarge"
|
|
237
238
|
}, null)]
|
|
238
239
|
}), e("div", {
|
|
@@ -243,85 +244,85 @@ const We = /* @__PURE__ */ ee({
|
|
|
243
244
|
class: "k-scheduler-edit-form-row"
|
|
244
245
|
}, [e(u, {
|
|
245
246
|
name: this.ks.fields.isAllDay,
|
|
246
|
-
component:
|
|
247
|
+
component: y,
|
|
247
248
|
onLabel: "",
|
|
248
249
|
offLabel: ""
|
|
249
|
-
}, null), e(
|
|
250
|
-
default: () => [
|
|
250
|
+
}, null), e(m, null, D(b) ? b : {
|
|
251
|
+
default: () => [b]
|
|
251
252
|
})]), e("div", {
|
|
252
253
|
class: "k-scheduler-datetime-grid"
|
|
253
254
|
}, [this.isAllDay ? e("div", {
|
|
254
255
|
class: "k-scheduler-edit-form-row"
|
|
255
256
|
}, [e(u, {
|
|
256
257
|
name: this.ks.fields.start,
|
|
257
|
-
component:
|
|
258
|
+
component: f,
|
|
258
259
|
onChange: this.handleStartChange,
|
|
259
260
|
isAllDay: this.isAllDay,
|
|
260
261
|
fieldError: this.kendoForm.errors[this.ks.fields.start],
|
|
261
|
-
ariaLabel:
|
|
262
|
+
ariaLabel: r.toLanguageString(R, n[R]),
|
|
262
263
|
timezone: this.ks.timezone
|
|
263
264
|
}, null), e("span", {
|
|
264
265
|
class: "k-scheduler-datetime-label"
|
|
265
|
-
}, [
|
|
266
|
+
}, [r.toLanguageString(S, n[S])]), e(u, {
|
|
266
267
|
name: this.ks.fields.end,
|
|
267
|
-
component:
|
|
268
|
+
component: o,
|
|
268
269
|
onChange: this.updatePreviousRange,
|
|
269
270
|
isAllDay: this.isAllDay,
|
|
270
271
|
fieldError: this.kendoForm.errors[this.ks.fields.end],
|
|
271
|
-
ariaLabel:
|
|
272
|
+
ariaLabel: r.toLanguageString(z, n[z]),
|
|
272
273
|
timezone: this.ks.timezone
|
|
273
|
-
}, null)]) : e(
|
|
274
|
+
}, null)]) : e(E, null, [e("div", {
|
|
274
275
|
class: "k-scheduler-edit-form-row"
|
|
275
276
|
}, [e(u, {
|
|
276
277
|
name: this.ks.fields.start,
|
|
277
|
-
component:
|
|
278
|
+
component: f,
|
|
278
279
|
onChange: this.handleStartChange,
|
|
279
280
|
isAllDay: this.isAllDay,
|
|
280
|
-
connector:
|
|
281
|
+
connector: r.toLanguageString(B, n[B]),
|
|
281
282
|
fieldError: this.kendoForm.errors[this.ks.fields.start],
|
|
282
|
-
ariaLabel:
|
|
283
|
-
timeAriaLabel:
|
|
283
|
+
ariaLabel: r.toLanguageString(R, n[R]),
|
|
284
|
+
timeAriaLabel: r.toLanguageString(O, n[O]),
|
|
284
285
|
timezone: this.ks.timezone
|
|
285
286
|
}, null)]), !this.showTimezones && e(h, {
|
|
286
287
|
class: "k-col-span-2",
|
|
287
288
|
fillMode: "flat",
|
|
288
289
|
themeColor: "primary",
|
|
289
|
-
title:
|
|
290
|
+
title: r.toLanguageString(G, n[G]),
|
|
290
291
|
onClick: this.handleTimezoneToggle,
|
|
291
|
-
svgIcon:
|
|
292
|
-
},
|
|
292
|
+
svgIcon: I
|
|
293
|
+
}, D(t = r.toLanguageString(M, n[M])) ? t : {
|
|
293
294
|
default: () => [t]
|
|
294
|
-
}), this.showTimezones && e(
|
|
295
|
+
}), this.showTimezones && e(E, null, [e(u, {
|
|
295
296
|
name: this.ks.fields.startTimezone,
|
|
296
|
-
component:
|
|
297
|
-
dataItems:
|
|
298
|
-
value:
|
|
299
|
-
ariaLabel:
|
|
297
|
+
component: a,
|
|
298
|
+
dataItems: d,
|
|
299
|
+
value: ee,
|
|
300
|
+
ariaLabel: r.toLanguageString(V, n[V])
|
|
300
301
|
}, null), e(h, {
|
|
301
|
-
title:
|
|
302
|
-
"aria-label":
|
|
302
|
+
title: r.toLanguageString(q, n[q]),
|
|
303
|
+
"aria-label": r.toLanguageString($, n[$]),
|
|
303
304
|
onClick: this.handleTimezoneToggle,
|
|
304
|
-
svgIcon:
|
|
305
|
+
svgIcon: I,
|
|
305
306
|
fillMode: "flat",
|
|
306
307
|
themeColor: "primary"
|
|
307
308
|
}, null)]), e("div", {
|
|
308
309
|
class: "k-scheduler-edit-form-row"
|
|
309
310
|
}, [e(u, {
|
|
310
311
|
name: this.ks.fields.end,
|
|
311
|
-
component:
|
|
312
|
+
component: o,
|
|
312
313
|
onChange: this.updatePreviousRange,
|
|
313
314
|
isAllDay: this.isAllDay,
|
|
314
|
-
connector:
|
|
315
|
+
connector: r.toLanguageString(S, n[S]),
|
|
315
316
|
fieldError: this.kendoForm.errors[this.ks.fields.end],
|
|
316
|
-
ariaLabel:
|
|
317
|
-
timeAriaLabel:
|
|
317
|
+
ariaLabel: r.toLanguageString(z, n[z]),
|
|
318
|
+
timeAriaLabel: r.toLanguageString(_, n[_]),
|
|
318
319
|
timezone: this.ks.timezone
|
|
319
320
|
}, null)]), this.showTimezones && e(u, {
|
|
320
321
|
name: this.ks.fields.endTimezone,
|
|
321
322
|
component: F,
|
|
322
|
-
dataItems:
|
|
323
|
+
dataItems: d,
|
|
323
324
|
value: this.kendoForm.valueGetter(this.ks.fields.endTimezone) || "",
|
|
324
|
-
ariaLabel:
|
|
325
|
+
ariaLabel: r.toLanguageString(N, n[N])
|
|
325
326
|
}, null)])]), this.showRecurrenceButton && e("div", {
|
|
326
327
|
class: "k-scheduler-edit-form-row"
|
|
327
328
|
}, [e(h, {
|
|
@@ -329,54 +330,55 @@ const We = /* @__PURE__ */ ee({
|
|
|
329
330
|
type: "button",
|
|
330
331
|
fillMode: "flat",
|
|
331
332
|
themeColor: "primary",
|
|
332
|
-
svgIcon:
|
|
333
|
-
onClick: this.handleMakeRecurringClick
|
|
333
|
+
svgIcon: Te,
|
|
334
|
+
onClick: this.handleMakeRecurringClick,
|
|
335
|
+
"aria-describedby": C ? this.recurrenceSummaryId : void 0
|
|
334
336
|
}, {
|
|
335
337
|
default: () => [this.recurrenceButtonText]
|
|
336
|
-
}),
|
|
337
|
-
}), e(
|
|
338
|
-
default: () => [e(
|
|
338
|
+
}), C && Le(this.recurrenceSummaryText, this.renderRecurrenceSummaryTemplate(), this.recurrenceSummaryId)])])])]
|
|
339
|
+
}), e(p, null, {
|
|
340
|
+
default: () => [e(g, {
|
|
339
341
|
class: "k-form-label"
|
|
340
342
|
}, {
|
|
341
|
-
default: () => [e(
|
|
342
|
-
icon:
|
|
343
|
+
default: () => [e(T, {
|
|
344
|
+
icon: ke,
|
|
343
345
|
size: "xlarge"
|
|
344
346
|
}, null)]
|
|
345
347
|
}), e("div", {
|
|
346
348
|
class: "k-form-field-wrap"
|
|
347
349
|
}, [e(u, {
|
|
348
|
-
component:
|
|
350
|
+
component: J,
|
|
349
351
|
name: this.ks.fields.description,
|
|
350
352
|
id: "k-event-description",
|
|
351
353
|
resizable: "vertical",
|
|
352
|
-
placeholder:
|
|
353
|
-
"aria-label":
|
|
354
|
+
placeholder: r.toLanguageString(v, n[v]),
|
|
355
|
+
"aria-label": r.toLanguageString(v, n[v])
|
|
354
356
|
}, null)])]
|
|
355
|
-
}), (this.ks.props.resources || []).map((
|
|
356
|
-
key:
|
|
357
|
+
}), (this.ks.props.resources || []).map((s) => e(p, {
|
|
358
|
+
key: s.field
|
|
357
359
|
}, {
|
|
358
|
-
default: () => [
|
|
360
|
+
default: () => [s.svgIcon && e(g, {
|
|
359
361
|
class: "k-form-label"
|
|
360
362
|
}, {
|
|
361
|
-
default: () => [e(
|
|
362
|
-
icon:
|
|
363
|
+
default: () => [e(T, {
|
|
364
|
+
icon: s.svgIcon,
|
|
363
365
|
size: "xlarge"
|
|
364
366
|
}, null)]
|
|
365
367
|
}), e("div", {
|
|
366
368
|
class: "k-form-field-wrap"
|
|
367
369
|
}, [e(u, {
|
|
368
|
-
name:
|
|
369
|
-
component:
|
|
370
|
-
resource:
|
|
371
|
-
multiple:
|
|
372
|
-
dataItems:
|
|
373
|
-
textField:
|
|
374
|
-
valueField:
|
|
375
|
-
colorField:
|
|
376
|
-
ariaLabel:
|
|
370
|
+
name: s.field,
|
|
371
|
+
component: U,
|
|
372
|
+
resource: s,
|
|
373
|
+
multiple: s.multiple,
|
|
374
|
+
dataItems: s.data,
|
|
375
|
+
textField: s.textField,
|
|
376
|
+
valueField: s.valueField,
|
|
377
|
+
colorField: s.colorField,
|
|
378
|
+
ariaLabel: s.name || s.field
|
|
377
379
|
}, null)])]
|
|
378
|
-
})),
|
|
379
|
-
}), this.showRecurrenceDialog && e(
|
|
380
|
+
})), l]
|
|
381
|
+
}), this.showRecurrenceDialog && e(be, {
|
|
380
382
|
value: this.recurrenceRule,
|
|
381
383
|
start: this.start,
|
|
382
384
|
timezone: this.ks.timezone || "",
|
|
@@ -388,20 +390,20 @@ const We = /* @__PURE__ */ ee({
|
|
|
388
390
|
}, null), this.showRemoveRecurrenceDialog && e(Ee, {
|
|
389
391
|
onConfirm: this.handleRemoveRecurrenceConfirm,
|
|
390
392
|
onCancel: this.handleRemoveRecurrenceCancel
|
|
391
|
-
}, null), this.showTimezoneResetDialog && e(
|
|
392
|
-
title:
|
|
393
|
+
}, null), this.showTimezoneResetDialog && e(Re, {
|
|
394
|
+
title: r.toLanguageString(P, n[P]),
|
|
393
395
|
onClose: this.handleTimezoneResetClose
|
|
394
396
|
}, {
|
|
395
|
-
default: () => [
|
|
397
|
+
default: () => [r.toLanguageString(Z, n[Z]), e(Se, null, {
|
|
396
398
|
default: () => [e(h, {
|
|
397
399
|
onClick: this.handleTimezoneResetClose
|
|
398
|
-
},
|
|
399
|
-
default: () => [
|
|
400
|
+
}, D(i = r.toLanguageString(K, n[K])) ? i : {
|
|
401
|
+
default: () => [i]
|
|
400
402
|
}), e(h, {
|
|
401
403
|
themeColor: "primary",
|
|
402
404
|
onClick: this.handleTimezoneResetConfirm
|
|
403
|
-
},
|
|
404
|
-
default: () => [
|
|
405
|
+
}, D(c = r.toLanguageString(W, n[W])) ? c : {
|
|
406
|
+
default: () => [c]
|
|
405
407
|
})]
|
|
406
408
|
})]
|
|
407
409
|
})]);
|
|
@@ -442,29 +444,29 @@ const We = /* @__PURE__ */ ee({
|
|
|
442
444
|
handleRemoveRecurrenceCancel() {
|
|
443
445
|
this.showRemoveRecurrenceDialog = !1;
|
|
444
446
|
},
|
|
445
|
-
updateFormField(t,
|
|
447
|
+
updateFormField(t, i) {
|
|
446
448
|
this.kendoForm.onChange(t, {
|
|
447
|
-
value:
|
|
449
|
+
value: i
|
|
448
450
|
}), this.$emit("change", t, {
|
|
449
|
-
value:
|
|
451
|
+
value: i
|
|
450
452
|
});
|
|
451
453
|
},
|
|
452
454
|
requiredValidator(t) {
|
|
453
455
|
return t ? void 0 : this.requiredValidationMessage;
|
|
454
456
|
},
|
|
455
|
-
startTimezoneValidator(t,
|
|
456
|
-
return this.showTimezones ? this.requiredValidator(
|
|
457
|
+
startTimezoneValidator(t, i) {
|
|
458
|
+
return this.showTimezones ? this.requiredValidator(i(this.ks.fields.startTimezone)) : void 0;
|
|
457
459
|
},
|
|
458
|
-
endTimezoneValidator(t,
|
|
459
|
-
return this.showTimezones ? this.requiredValidator(
|
|
460
|
+
endTimezoneValidator(t, i) {
|
|
461
|
+
return this.showTimezones ? this.requiredValidator(i(this.ks.fields.endTimezone)) || this.requiredValidator(i(this.ks.fields.startTimezone)) : void 0;
|
|
460
462
|
}
|
|
461
463
|
},
|
|
462
464
|
watch: {
|
|
463
|
-
startTimezone(t,
|
|
464
|
-
this.showTimezones && t && t !==
|
|
465
|
+
startTimezone(t, i) {
|
|
466
|
+
this.showTimezones && t && t !== i && this.updateFormField(this.ks.fields.endTimezone, t);
|
|
465
467
|
}
|
|
466
468
|
}
|
|
467
469
|
});
|
|
468
470
|
export {
|
|
469
|
-
|
|
471
|
+
Qe as SchedulerFormEditor
|
|
470
472
|
};
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
import { VNode } from 'vue';
|
|
9
9
|
import { IntlService } from '@progress/kendo-vue-intl';
|
|
10
10
|
/** @hidden */
|
|
11
|
-
export declare const renderRecurrenceSummary: (text: string, template: VNode | null) => VNode;
|
|
11
|
+
export declare const renderRecurrenceSummary: (text: string, template: VNode | null, id?: string) => VNode;
|
|
12
12
|
/** @hidden */
|
|
13
13
|
export declare function getRecurrenceSummary(recurrenceRule: string | null, start: Date, intl: IntlService, localizeMessage: (key: string, defaultMessage: string) => string): string;
|
|
@@ -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 R=require("vue"),E=require("@progress/kendo-date-math"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("vue"),E=require("@progress/kendo-date-math"),c=require("../recurrence/common.js"),o=require("../messages/main.js"),f=new WeakMap,B=(t,n)=>{const a=f.get(t);if(!n.value){a==null||a.disconnect(),f.delete(t);return}const l=()=>{var u;t.title=((u=t.textContent)==null?void 0:u.trim())||""};if(l(),!a){const u=new MutationObserver(l);u.observe(t,{childList:!0,characterData:!0,subtree:!0}),f.set(t,u)}},N={mounted:B,updated:B,unmounted(t){var n;(n=f.get(t))==null||n.disconnect(),f.delete(t)}},j=(t,n,a)=>R.withDirectives(R.h("div",{id:a,class:"k-form-hint k-scheduler-recurrence-summary",title:n?void 0:t},[n||t]),[[N,!!n]]);function Y(t,n,a,l){var w,W,M,x,p,q;if(!t)return"";const u=(r,d)=>{const m=d?r:"scheduler.recurrenceEditor"+r;return l(m,o.messages[m])},e=c.getRule(t);if(!e.freq||e.freq==="never")return"";const C=c.getWeekDays(a),L=c.getExtendedWeekDays(a,u),k=c.getWeekDay(L,e,n),O=c.getMonths(a),g=c.getMonth(O,e),T=c.getOffsets(u),S=c.getOffset(T,e),b=c.getMonthDay(e,n),v=c.getRepeatOnRule(e),i=e.interval||1,y=(r,...d)=>{let m=l(r,o.messages[r]);return d.forEach((D,h)=>{m=m.replace(`{${h}}`,String(D))}),m};let s="";switch(e.freq){case"daily":s=y(o.recurrenceSummaryDaily,i);break;case"weekly":{const r=(e.byWeekDay||[]).map(({day:m})=>{var D;return(D=C.find(h=>h.value===m))==null?void 0:D.text}).filter(Boolean),d=r.length>0?r.join(", "):"";s=y(o.recurrenceSummaryWeekly,i,d);break}case"monthly":{if(v==="weekday"&&((w=e.byWeekDay)!=null&&w.length))s=y(o.recurrenceSummaryMonthlyByWeekDay,i,S.text.toLowerCase(),k.text.toLowerCase());else{const r=(M=(W=e.byMonthDay)==null?void 0:W[0])!=null?M:b;s=y(o.recurrenceSummaryMonthlyByDay,i,r)}break}case"yearly":{if(v==="weekday"&&((x=e.byWeekDay)!=null&&x.length))s=y(o.recurrenceSummaryYearlyByWeekDay,i,S.text.toLowerCase(),k.text.toLowerCase(),g.text);else{const r=(q=(p=e.byMonthDay)==null?void 0:p[0])!=null?q:b;s=y(o.recurrenceSummaryYearlyByDay,i,g.text,r)}break}}return e.count?s+=y(o.recurrenceSummaryCount,e.count):e.until&&(s+=y(o.recurrenceSummaryUntil,a.formatDate(E.toLocalDate(e.until),"D"))),s}exports.getRecurrenceSummary=Y;exports.renderRecurrenceSummary=j;
|
|
@@ -30,8 +30,12 @@ const l = /* @__PURE__ */ new WeakMap(), B = (t, a) => {
|
|
|
30
30
|
var a;
|
|
31
31
|
(a = l.get(t)) == null || a.disconnect(), l.delete(t);
|
|
32
32
|
}
|
|
33
|
-
}, ne = (t, a) => T(
|
|
34
|
-
q("div", {
|
|
33
|
+
}, ne = (t, a, n) => T(
|
|
34
|
+
q("div", {
|
|
35
|
+
id: n,
|
|
36
|
+
class: "k-form-hint k-scheduler-recurrence-summary",
|
|
37
|
+
title: a ? void 0 : t
|
|
38
|
+
}, [a || t]),
|
|
35
39
|
[[_, !!a]]
|
|
36
40
|
);
|
|
37
41
|
function oe(t, a, n, m) {
|
package/package-metadata.js
CHANGED
|
@@ -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={name:"@progress/kendo-vue-scheduler",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-scheduler",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1793978224,version:"10.2.0-develop.18",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "10.2.0-develop.
|
|
13
|
+
publishDate: 1793978224,
|
|
14
|
+
version: "10.2.0-develop.18",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
16
16
|
};
|
|
17
17
|
export {
|