@progress/kendo-react-scheduler 15.2.0-develop.4 → 15.2.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 +2 -2
- package/Scheduler.js +1 -1
- package/Scheduler.mjs +394 -302
- package/components/DateHeaderCell.js +1 -1
- package/components/DateHeaderCell.mjs +23 -20
- package/components/MoreEventsPopover.d.ts +25 -0
- package/components/MoreEventsPopover.js +8 -0
- package/components/MoreEventsPopover.mjs +59 -0
- package/components/SchedulerForm.d.ts +4 -0
- package/components/SchedulerForm.js +1 -1
- package/components/SchedulerForm.mjs +113 -100
- package/components/SchedulerRemoveDialog.d.ts +4 -0
- package/components/SchedulerRemoveDialog.js +1 -1
- package/components/SchedulerRemoveDialog.mjs +29 -29
- package/components/ShowMoreItemsButton.d.ts +1 -0
- package/components/ShowMoreItemsButton.js +1 -1
- package/components/ShowMoreItemsButton.mjs +33 -26
- package/components/header/navigation/NavigationDatePicker.d.ts +9 -1
- package/components/header/navigation/NavigationDatePicker.js +1 -1
- package/components/header/navigation/NavigationDatePicker.mjs +65 -71
- package/components/header/view-selector/ViewSelectorList.d.ts +9 -1
- package/components/header/view-selector/ViewSelectorList.js +1 -1
- package/components/header/view-selector/ViewSelectorList.mjs +35 -51
- package/dist/cdn/js/kendo-react-scheduler.js +1 -1
- package/editors/RemoveRecurrenceConfirmDialog.d.ts +17 -0
- package/editors/RemoveRecurrenceConfirmDialog.js +8 -0
- package/editors/RemoveRecurrenceConfirmDialog.mjs +28 -0
- package/editors/ResourceEditor.d.ts +1 -0
- package/editors/ResourceEditor.js +1 -1
- package/editors/ResourceEditor.mjs +18 -17
- package/editors/SchedulerFormEditor.d.ts +69 -356
- package/editors/SchedulerFormEditor.js +1 -1
- package/editors/SchedulerFormEditor.mjs +360 -227
- package/editors/SchedulerRecurrenceDialog.d.ts +30 -0
- package/editors/SchedulerRecurrenceDialog.js +8 -0
- package/editors/SchedulerRecurrenceDialog.mjs +463 -0
- package/editors/{FilterableComboBox.d.ts → TimezoneDropDownList.d.ts} +2 -2
- package/editors/TimezoneDropDownList.js +8 -0
- package/editors/TimezoneDropDownList.mjs +42 -0
- package/editors/ZonedDateTime.d.ts +2 -0
- package/editors/ZonedDateTime.js +1 -1
- package/editors/ZonedDateTime.mjs +11 -18
- package/editors/ZonedSplitDateTime.d.ts +34 -0
- package/editors/ZonedSplitDateTime.js +8 -0
- package/editors/ZonedSplitDateTime.mjs +72 -0
- package/hooks/index.d.ts +2 -0
- package/hooks/useGroupRowHeightSync.d.ts +10 -0
- package/hooks/useGroupRowHeightSync.js +8 -0
- package/hooks/useGroupRowHeightSync.mjs +84 -0
- package/hooks/useRecurrenceSummary.d.ts +10 -0
- package/hooks/useRecurrenceSummary.js +8 -0
- package/hooks/useRecurrenceSummary.mjs +69 -0
- package/hooks/useSlotExpand.js +1 -1
- package/hooks/useSlotExpand.mjs +55 -45
- package/hooks/useToolbarResponsive.d.ts +22 -0
- package/hooks/useToolbarResponsive.js +8 -0
- package/hooks/useToolbarResponsive.mjs +37 -0
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.js +1 -1
- package/index.mjs +83 -79
- package/items/SchedulerEditItem.js +1 -1
- package/items/SchedulerEditItem.mjs +361 -347
- package/items/SchedulerItem.d.ts +4 -0
- package/items/SchedulerItem.js +1 -1
- package/items/SchedulerItem.mjs +171 -185
- package/items/SchedulerProportionalViewItem.js +1 -1
- package/items/SchedulerProportionalViewItem.mjs +111 -94
- package/items/SchedulerViewItem.js +1 -1
- package/items/SchedulerViewItem.mjs +175 -142
- package/messages/index.d.ts +75 -0
- package/messages/index.js +1 -1
- package/messages/index.mjs +147 -97
- 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 +3 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -11
- package/services/itemsService.js +1 -1
- package/services/itemsService.mjs +34 -32
- package/services/occurrenceService.js +1 -1
- package/services/occurrenceService.mjs +27 -26
- package/tasks/SchedulerTask.js +1 -1
- package/tasks/SchedulerTask.mjs +26 -26
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +7 -6
- package/views/agenda/AgendaView.js +1 -1
- package/views/agenda/AgendaView.mjs +7 -7
- 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 +2 -2
- package/views/month/MonthView.js +1 -1
- package/views/month/MonthView.mjs +111 -82
- package/views/time/MultiDayTimelineView.js +1 -1
- package/views/time/MultiDayTimelineView.mjs +23 -23
- 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 +5 -5
- package/views/week/WorkWeekView.js +1 -1
- package/views/week/WorkWeekView.mjs +15 -15
- package/editors/FilterableComboBox.js +0 -8
- package/editors/FilterableComboBox.mjs +0 -30
|
@@ -6,289 +6,422 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as e from "react";
|
|
9
|
-
import { timezoneNames as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
import { timezoneNames as Oe } from "@progress/kendo-date-math";
|
|
10
|
+
import { parseRule as Pe } from "@progress/kendo-recurrence";
|
|
11
|
+
import { Label as b } from "@progress/kendo-react-labels";
|
|
12
|
+
import { useLocalization as Ge, useInternationalization as Ke } from "@progress/kendo-react-intl";
|
|
13
|
+
import { FieldWrapper as k, Field as o, FormElement as Qe } from "@progress/kendo-react-form";
|
|
14
|
+
import { TextArea as We, Input as Ye, Switch as je } from "@progress/kendo-react-inputs";
|
|
15
|
+
import { Button as L } from "@progress/kendo-react-buttons";
|
|
16
|
+
import { classNames as qe, SvgIcon as p } from "@progress/kendo-react-common";
|
|
17
|
+
import { rightDoubleQuotesIcon as Je, clockIcon as Ue, globeIcon as q, arrowRotateCwIcon as Ve, commentIcon as Xe } from "@progress/kendo-svg-icons";
|
|
18
|
+
import { editorEventAllDay as J, messages as a, editorMakeRecurring as U, editorEventTitle as z, editorEventStart as C, editorDateConnectorTo as D, editorEventEnd as y, editorStartTimeAriaLabel as V, editorDateConnectorFrom as X, editorSetTimezoneTitle as $, editorTimezoneButton as ee, editorEventStartTimeZone as te, editorResetTimezoneAriaLabel as re, editorResetTimezoneTitle as ae, editorEndTimeAriaLabel as ne, editorEventEndTimeZone as le, editorEventDescription as N, resetTimezoneDialogTitle as oe, resetTimezoneConfirmation as ie, resetTimezoneNo as ce, resetTimezoneYes as me } from "../messages/index.mjs";
|
|
19
|
+
import { TimezoneDropDownList as se } from "./TimezoneDropDownList.mjs";
|
|
20
|
+
import { RecurrenceEditor as $e } from "../recurrence/RecurrenceEditor.mjs";
|
|
21
|
+
import { ResourceEditor as et } from "./ResourceEditor.mjs";
|
|
22
|
+
import { ZonedSplitDateTime as de } from "./ZonedSplitDateTime.mjs";
|
|
23
|
+
import { Dialog as tt, DialogActionsBar as rt } from "@progress/kendo-react-dialogs";
|
|
24
|
+
import { SchedulerRecurrenceDialog as at } from "./SchedulerRecurrenceDialog.mjs";
|
|
25
|
+
import { RemoveRecurrenceConfirmDialog as nt } from "./RemoveRecurrenceConfirmDialog.mjs";
|
|
26
|
+
import { getRecurrenceSummary as ue } from "../hooks/useRecurrenceSummary.mjs";
|
|
27
|
+
import { useSchedulerFieldsContext as lt, useSchedulerPropsContext as ot } from "../context/SchedulerContext.mjs";
|
|
28
|
+
const it = e.forwardRef(
|
|
29
|
+
(n, f) => {
|
|
30
|
+
const d = e.useRef(null), I = e.useRef(null), F = Oe(), r = Ge(), h = Ke(), t = lt(), { resources: _, timezone: s } = ot();
|
|
25
31
|
e.useImperativeHandle(
|
|
26
|
-
|
|
32
|
+
I,
|
|
27
33
|
() => {
|
|
28
|
-
var
|
|
34
|
+
var l;
|
|
29
35
|
return {
|
|
30
|
-
element: (
|
|
31
|
-
props:
|
|
36
|
+
element: (l = d.current) != null && l.element ? d.current.element : d.current,
|
|
37
|
+
props: n
|
|
32
38
|
};
|
|
33
39
|
}
|
|
34
40
|
), e.useImperativeHandle(
|
|
35
|
-
|
|
36
|
-
() =>
|
|
41
|
+
f,
|
|
42
|
+
() => I.current
|
|
37
43
|
);
|
|
38
|
-
const { as:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
resourceLabel: se = a.resourceLabel,
|
|
65
|
-
resourceEditor: Ee = a.resourceEditor
|
|
66
|
-
} = r, ue = r.valueGetter(t.start) || /* @__PURE__ */ new Date(), ze = r.valueGetter(t.startTimezone) || z || "", Te = r.valueGetter(t.endTimezone) || z || "", C = e.useMemo(
|
|
67
|
-
() => i.toLanguageString(y, d[y]),
|
|
68
|
-
[i]
|
|
69
|
-
), [c, ke] = e.useState(
|
|
70
|
-
!!r.valueGetter(t.startTimezone)
|
|
71
|
-
), [T, N] = e.useState(!!r.valueGetter(t.endTimezone)), be = e.useCallback(
|
|
72
|
-
(n) => {
|
|
73
|
-
n.value || (r.onChange(t.startTimezone, { value: null }), r.onChange(t.endTimezone, { value: null }), N(n.value)), ke(n.value);
|
|
44
|
+
const { as: S = i.as, ...x } = n, { onChange: m, valueGetter: u } = n, {
|
|
45
|
+
titleEditor: fe = i.titleEditor,
|
|
46
|
+
startEditor: H = i.startEditor,
|
|
47
|
+
endEditor: Z = i.endEditor,
|
|
48
|
+
startTimezoneEditor: he = i.startTimezoneEditor,
|
|
49
|
+
endTimezoneEditor: ve = i.endTimezoneEditor,
|
|
50
|
+
startLabel: Te = i.startLabel,
|
|
51
|
+
endLabel: O = i.endLabel,
|
|
52
|
+
allDayEditor: Le = i.allDayEditor,
|
|
53
|
+
allDayLabel: be = i.allDayLabel,
|
|
54
|
+
recurrenceEditor: Se,
|
|
55
|
+
descriptionEditor: Re = i.descriptionEditor,
|
|
56
|
+
resourceEditor: ke = i.resourceEditor
|
|
57
|
+
} = n, v = e.useMemo(() => u(t.start) || /* @__PURE__ */ new Date(), [u, t.start]), T = u(t.isAllDay) || !1, E = u(t.startTimezone) || s || "", c = u(t.recurrenceRule), P = u(t.recurrenceId), pe = !(P != null), G = e.useMemo(
|
|
58
|
+
() => r.toLanguageString(J, a[J]),
|
|
59
|
+
[r]
|
|
60
|
+
), [g, K] = e.useState(!!u(t.startTimezone)), [ze, A] = e.useState(!1), [Ce, R] = e.useState(!1), [De, M] = e.useState(!1), Q = n.recurrenceButtonTextTemplate, ye = n.recurrenceEditorHintTemplate, B = e.useMemo(
|
|
61
|
+
() => r.toLanguageString(U, a[U]),
|
|
62
|
+
[r]
|
|
63
|
+
), Ne = e.useMemo(() => c && ue(c, v, h, r) || B, [c, v, h, r, B]), we = e.useMemo(() => c ? ue(c, v, h, r) : null, [c, v, h, r]), Ie = e.useMemo(() => c ? Pe({ recurrenceRule: c }) : null, [c]), W = e.useRef(E);
|
|
64
|
+
e.useEffect(() => {
|
|
65
|
+
g && E && E !== W.current && m(t.endTimezone, { value: E }), W.current = E;
|
|
66
|
+
}, [E, g, m, t.endTimezone]);
|
|
67
|
+
const Y = e.useCallback(
|
|
68
|
+
(l) => {
|
|
69
|
+
l.preventDefault(), g ? A(!0) : K(!0);
|
|
74
70
|
},
|
|
75
|
-
[
|
|
76
|
-
),
|
|
77
|
-
(
|
|
78
|
-
|
|
71
|
+
[g]
|
|
72
|
+
), Fe = e.useCallback(() => {
|
|
73
|
+
m(t.startTimezone, { value: null }), m(t.endTimezone, { value: null }), K(!1), A(!1);
|
|
74
|
+
}, [m, t.startTimezone, t.endTimezone]), j = e.useCallback(() => {
|
|
75
|
+
A(!1);
|
|
76
|
+
}, []), xe = e.useCallback(() => {
|
|
77
|
+
R(!0);
|
|
78
|
+
}, []), Ae = e.useCallback(
|
|
79
|
+
(l) => {
|
|
80
|
+
m(t.recurrenceRule, { value: l }), R(!1);
|
|
79
81
|
},
|
|
80
|
-
[
|
|
81
|
-
),
|
|
82
|
-
(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
),
|
|
88
|
-
(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
v,
|
|
82
|
+
[m, t.recurrenceRule]
|
|
83
|
+
), Me = e.useCallback(() => {
|
|
84
|
+
R(!1);
|
|
85
|
+
}, []), Be = e.useCallback(() => {
|
|
86
|
+
M(!0);
|
|
87
|
+
}, []), _e = e.useCallback(() => {
|
|
88
|
+
m(t.recurrenceRule, { value: null }), m(t.recurrenceExceptions, { value: null }), M(!1), R(!1);
|
|
89
|
+
}, [m, t.recurrenceRule, t.recurrenceExceptions]), He = e.useCallback(() => {
|
|
90
|
+
M(!1);
|
|
91
|
+
}, []), Ze = e.useMemo(() => qe("k-scheduler-edit-form", n.className), [n.className]);
|
|
92
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
93
|
+
S,
|
|
93
94
|
{
|
|
94
|
-
ref:
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
ref: S === i.as ? d : void 0,
|
|
96
|
+
horizontal: !0,
|
|
97
|
+
...x,
|
|
98
|
+
className: Ze
|
|
97
99
|
},
|
|
98
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
99
|
-
o,
|
|
100
|
-
{
|
|
101
|
-
name: t.title,
|
|
102
|
-
component: M,
|
|
103
|
-
editorId: "k-scheduler-editor-title",
|
|
104
|
-
className: "k-form-label"
|
|
105
|
-
},
|
|
106
|
-
i.toLanguageString(x, d[x])
|
|
107
|
-
), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
|
|
100
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(k, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, /* @__PURE__ */ e.createElement(p, { icon: Je, size: "xlarge" })), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
|
|
108
101
|
o,
|
|
109
102
|
{
|
|
110
103
|
id: "k-scheduler-editor-title",
|
|
111
104
|
name: t.title,
|
|
112
105
|
field: t.title,
|
|
113
|
-
component:
|
|
106
|
+
component: fe,
|
|
107
|
+
placeholder: r.toLanguageString(
|
|
108
|
+
z,
|
|
109
|
+
a[z]
|
|
110
|
+
),
|
|
111
|
+
"aria-label": r.toLanguageString(
|
|
112
|
+
z,
|
|
113
|
+
a[z]
|
|
114
|
+
)
|
|
114
115
|
}
|
|
115
|
-
),
|
|
116
|
+
))), /* @__PURE__ */ e.createElement(k, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, /* @__PURE__ */ e.createElement(p, { icon: Ue, size: "xlarge" })), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-datetime-section" }, /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-edit-form-row" }, /* @__PURE__ */ e.createElement(
|
|
116
117
|
o,
|
|
117
118
|
{
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
|
|
125
|
-
o,
|
|
126
|
-
{
|
|
127
|
-
id: "k-scheduler-editor-start",
|
|
128
|
-
name: t.start,
|
|
129
|
-
width: "auto",
|
|
130
|
-
component: j,
|
|
131
|
-
as: r.valueGetter(t.isAllDay) ? S : D,
|
|
132
|
-
timezone: z
|
|
133
|
-
}
|
|
134
|
-
), r.errors[t.start] && /* @__PURE__ */ e.createElement(o, { name: t.start, component: W }, r.errors[t.start]))), /* @__PURE__ */ e.createElement(m, null, /* @__PURE__ */ e.createElement(g, { className: "k-form-label" }), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
|
|
135
|
-
U,
|
|
136
|
-
{
|
|
137
|
-
id: "k-scheduler-editor-set-start-timezone",
|
|
138
|
-
onChange: be,
|
|
139
|
-
value: c
|
|
119
|
+
id: "k-is-allday-switch",
|
|
120
|
+
name: t.isAllDay,
|
|
121
|
+
component: Le,
|
|
122
|
+
onLabel: "",
|
|
123
|
+
offLabel: "",
|
|
124
|
+
ariaLabel: G
|
|
140
125
|
}
|
|
141
126
|
), /* @__PURE__ */ e.createElement(
|
|
142
|
-
|
|
127
|
+
o,
|
|
143
128
|
{
|
|
144
|
-
|
|
145
|
-
|
|
129
|
+
name: t.isAllDay,
|
|
130
|
+
field: t.isAllDay,
|
|
131
|
+
editorId: "k-is-allday-switch",
|
|
132
|
+
component: be
|
|
146
133
|
},
|
|
147
|
-
|
|
148
|
-
))
|
|
149
|
-
F,
|
|
150
|
-
d[F]
|
|
151
|
-
)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
|
|
134
|
+
G
|
|
135
|
+
)), /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-datetime-grid" }, T ? /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-edit-form-row" }, /* @__PURE__ */ e.createElement(
|
|
152
136
|
o,
|
|
153
137
|
{
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
138
|
+
name: t.start,
|
|
139
|
+
component: H,
|
|
140
|
+
isAllDay: T,
|
|
141
|
+
fieldError: n.errors[t.start],
|
|
142
|
+
ariaLabel: r.toLanguageString(
|
|
143
|
+
C,
|
|
144
|
+
a[C]
|
|
145
|
+
),
|
|
146
|
+
timezone: s
|
|
159
147
|
}
|
|
160
|
-
),
|
|
148
|
+
), /* @__PURE__ */ e.createElement(
|
|
161
149
|
o,
|
|
162
150
|
{
|
|
163
151
|
name: t.end,
|
|
164
|
-
component:
|
|
152
|
+
component: O,
|
|
165
153
|
editorId: "k-scheduler-editor-end",
|
|
166
|
-
className: "k-
|
|
154
|
+
className: "k-scheduler-datetime-label"
|
|
167
155
|
},
|
|
168
|
-
|
|
169
|
-
|
|
156
|
+
r.toLanguageString(
|
|
157
|
+
D,
|
|
158
|
+
a[D]
|
|
159
|
+
)
|
|
160
|
+
), /* @__PURE__ */ e.createElement(
|
|
170
161
|
o,
|
|
171
162
|
{
|
|
172
|
-
id: "k-scheduler-editor-end",
|
|
173
163
|
name: t.end,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
164
|
+
component: Z,
|
|
165
|
+
isAllDay: T,
|
|
166
|
+
dateId: "k-scheduler-editor-end",
|
|
167
|
+
fieldError: n.errors[t.end],
|
|
168
|
+
ariaLabel: r.toLanguageString(
|
|
169
|
+
y,
|
|
170
|
+
a[y]
|
|
171
|
+
),
|
|
172
|
+
timezone: s
|
|
178
173
|
}
|
|
179
|
-
)
|
|
180
|
-
|
|
174
|
+
)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-edit-form-row" }, /* @__PURE__ */ e.createElement(
|
|
175
|
+
o,
|
|
181
176
|
{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
177
|
+
name: t.start,
|
|
178
|
+
component: H,
|
|
179
|
+
isAllDay: T,
|
|
180
|
+
timeId: "k-scheduler-editor-start-time",
|
|
181
|
+
connectorElement: /* @__PURE__ */ e.createElement(
|
|
182
|
+
o,
|
|
183
|
+
{
|
|
184
|
+
name: t.start,
|
|
185
|
+
component: Te,
|
|
186
|
+
editorId: "k-scheduler-editor-start-time",
|
|
187
|
+
className: "k-scheduler-datetime-label"
|
|
188
|
+
},
|
|
189
|
+
r.toLanguageString(
|
|
190
|
+
X,
|
|
191
|
+
a[X]
|
|
192
|
+
)
|
|
193
|
+
),
|
|
194
|
+
fieldError: n.errors[t.start],
|
|
195
|
+
ariaLabel: r.toLanguageString(
|
|
196
|
+
C,
|
|
197
|
+
a[C]
|
|
198
|
+
),
|
|
199
|
+
timeAriaLabel: r.toLanguageString(
|
|
200
|
+
V,
|
|
201
|
+
a[V]
|
|
202
|
+
),
|
|
203
|
+
timezone: s
|
|
185
204
|
}
|
|
186
|
-
)), /* @__PURE__ */ e.createElement(
|
|
187
|
-
|
|
205
|
+
)), !g && /* @__PURE__ */ e.createElement(
|
|
206
|
+
L,
|
|
188
207
|
{
|
|
189
|
-
|
|
190
|
-
|
|
208
|
+
className: "k-col-span-2",
|
|
209
|
+
fillMode: "flat",
|
|
210
|
+
themeColor: "primary",
|
|
211
|
+
title: r.toLanguageString(
|
|
212
|
+
$,
|
|
213
|
+
a[$]
|
|
214
|
+
),
|
|
215
|
+
onClick: Y,
|
|
216
|
+
svgIcon: q
|
|
191
217
|
},
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
218
|
+
r.toLanguageString(
|
|
219
|
+
ee,
|
|
220
|
+
a[ee]
|
|
195
221
|
)
|
|
196
|
-
)
|
|
197
|
-
Z,
|
|
198
|
-
d[Z]
|
|
199
|
-
)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
|
|
222
|
+
), g && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
200
223
|
o,
|
|
201
224
|
{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
225
|
+
name: t.startTimezone,
|
|
226
|
+
component: he,
|
|
227
|
+
data: F,
|
|
228
|
+
value: E,
|
|
229
|
+
ariaLabel: r.toLanguageString(
|
|
230
|
+
te,
|
|
231
|
+
a[te]
|
|
232
|
+
)
|
|
233
|
+
}
|
|
234
|
+
), /* @__PURE__ */ e.createElement(
|
|
235
|
+
L,
|
|
236
|
+
{
|
|
237
|
+
title: r.toLanguageString(
|
|
238
|
+
ae,
|
|
239
|
+
a[ae]
|
|
240
|
+
),
|
|
241
|
+
"aria-label": r.toLanguageString(
|
|
242
|
+
re,
|
|
243
|
+
a[re]
|
|
244
|
+
),
|
|
245
|
+
onClick: Y,
|
|
246
|
+
svgIcon: q,
|
|
247
|
+
fillMode: "flat",
|
|
248
|
+
themeColor: "primary"
|
|
207
249
|
}
|
|
208
|
-
)
|
|
250
|
+
)), /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-edit-form-row" }, /* @__PURE__ */ e.createElement(
|
|
209
251
|
o,
|
|
210
252
|
{
|
|
211
|
-
name: t.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
253
|
+
name: t.end,
|
|
254
|
+
component: Z,
|
|
255
|
+
isAllDay: T,
|
|
256
|
+
timeId: "k-scheduler-editor-end-time",
|
|
257
|
+
connectorElement: /* @__PURE__ */ e.createElement(
|
|
258
|
+
o,
|
|
259
|
+
{
|
|
260
|
+
name: t.end,
|
|
261
|
+
component: O,
|
|
262
|
+
editorId: "k-scheduler-editor-end-time",
|
|
263
|
+
className: "k-scheduler-datetime-label"
|
|
264
|
+
},
|
|
265
|
+
r.toLanguageString(
|
|
266
|
+
D,
|
|
267
|
+
a[D]
|
|
268
|
+
)
|
|
269
|
+
),
|
|
270
|
+
fieldError: n.errors[t.end],
|
|
271
|
+
ariaLabel: r.toLanguageString(
|
|
272
|
+
y,
|
|
273
|
+
a[y]
|
|
274
|
+
),
|
|
275
|
+
timeAriaLabel: r.toLanguageString(
|
|
276
|
+
ne,
|
|
277
|
+
a[ne]
|
|
278
|
+
),
|
|
279
|
+
timezone: s
|
|
280
|
+
}
|
|
281
|
+
)), g && /* @__PURE__ */ e.createElement(
|
|
219
282
|
o,
|
|
220
283
|
{
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
284
|
+
name: t.endTimezone,
|
|
285
|
+
component: ve,
|
|
286
|
+
data: F,
|
|
287
|
+
value: u(t.endTimezone) || s || "",
|
|
288
|
+
ariaLabel: r.toLanguageString(
|
|
289
|
+
le,
|
|
290
|
+
a[le]
|
|
291
|
+
)
|
|
225
292
|
}
|
|
226
|
-
)),
|
|
293
|
+
))), pe && /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-edit-form-row" }, /* @__PURE__ */ e.createElement(
|
|
294
|
+
L,
|
|
295
|
+
{
|
|
296
|
+
className: "k-scheduler-recurrence-button",
|
|
297
|
+
type: "button",
|
|
298
|
+
fillMode: "flat",
|
|
299
|
+
themeColor: "primary",
|
|
300
|
+
svgIcon: Ve,
|
|
301
|
+
onClick: xe
|
|
302
|
+
},
|
|
303
|
+
Q ? /* @__PURE__ */ e.createElement(
|
|
304
|
+
Q,
|
|
305
|
+
{
|
|
306
|
+
recurrenceRule: c,
|
|
307
|
+
text: we,
|
|
308
|
+
parsedRule: Ie
|
|
309
|
+
}
|
|
310
|
+
) : Ne
|
|
311
|
+
))))), /* @__PURE__ */ e.createElement(k, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, /* @__PURE__ */ e.createElement(p, { icon: Xe, size: "xlarge" })), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
|
|
227
312
|
o,
|
|
228
313
|
{
|
|
229
|
-
component:
|
|
314
|
+
component: Re,
|
|
230
315
|
name: t.description,
|
|
231
|
-
|
|
232
|
-
|
|
316
|
+
id: "k-event-description",
|
|
317
|
+
resizable: "vertical",
|
|
318
|
+
placeholder: r.toLanguageString(
|
|
319
|
+
N,
|
|
320
|
+
a[N]
|
|
321
|
+
),
|
|
322
|
+
"aria-label": r.toLanguageString(
|
|
323
|
+
N,
|
|
324
|
+
a[N]
|
|
325
|
+
)
|
|
233
326
|
}
|
|
234
|
-
),
|
|
327
|
+
))), (_ || []).map((l) => /* @__PURE__ */ e.createElement(k, { key: l.field }, l.svgIcon && /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, /* @__PURE__ */ e.createElement(p, { icon: l.svgIcon, size: "xlarge" })), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
|
|
235
328
|
o,
|
|
236
329
|
{
|
|
237
|
-
name:
|
|
238
|
-
component:
|
|
239
|
-
resource:
|
|
240
|
-
multiple:
|
|
241
|
-
data:
|
|
242
|
-
textField:
|
|
243
|
-
valueField:
|
|
244
|
-
colorField:
|
|
330
|
+
name: l.field,
|
|
331
|
+
component: ke,
|
|
332
|
+
resource: l,
|
|
333
|
+
multiple: l.multiple,
|
|
334
|
+
data: l.data,
|
|
335
|
+
textField: l.textField,
|
|
336
|
+
valueField: l.valueField,
|
|
337
|
+
colorField: l.colorField,
|
|
338
|
+
ariaLabel: l.name || l.field
|
|
245
339
|
}
|
|
246
|
-
))))
|
|
247
|
-
)
|
|
340
|
+
)))))
|
|
341
|
+
), Ce && /* @__PURE__ */ e.createElement(
|
|
342
|
+
at,
|
|
343
|
+
{
|
|
344
|
+
value: c,
|
|
345
|
+
start: v,
|
|
346
|
+
timezone: s || "",
|
|
347
|
+
onSave: Ae,
|
|
348
|
+
onCancel: Me,
|
|
349
|
+
onRemoveRecurrence: Be,
|
|
350
|
+
recurrenceEditorHintTemplate: ye,
|
|
351
|
+
recurrenceEditor: Se
|
|
352
|
+
}
|
|
353
|
+
), De && /* @__PURE__ */ e.createElement(
|
|
354
|
+
nt,
|
|
355
|
+
{
|
|
356
|
+
onConfirm: _e,
|
|
357
|
+
onCancel: He
|
|
358
|
+
}
|
|
359
|
+
), ze && /* @__PURE__ */ e.createElement(
|
|
360
|
+
tt,
|
|
361
|
+
{
|
|
362
|
+
title: r.toLanguageString(
|
|
363
|
+
oe,
|
|
364
|
+
a[oe]
|
|
365
|
+
),
|
|
366
|
+
onClose: j
|
|
367
|
+
},
|
|
368
|
+
r.toLanguageString(ie, a[ie]),
|
|
369
|
+
/* @__PURE__ */ e.createElement(rt, null, /* @__PURE__ */ e.createElement(L, { onClick: j }, r.toLanguageString(ce, a[ce])), /* @__PURE__ */ e.createElement(L, { themeColor: "primary", onClick: Fe }, r.toLanguageString(me, a[me])))
|
|
370
|
+
));
|
|
248
371
|
}
|
|
249
|
-
)
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
372
|
+
);
|
|
373
|
+
it.displayName = "KendoReactSchedulerFormEditor";
|
|
374
|
+
const Ee = e.forwardRef((n, f) => /* @__PURE__ */ e.createElement(
|
|
375
|
+
Qe,
|
|
376
|
+
{
|
|
377
|
+
ref: f,
|
|
378
|
+
id: n.id,
|
|
379
|
+
style: n.style,
|
|
380
|
+
tabIndex: n.tabIndex,
|
|
381
|
+
className: n.className,
|
|
382
|
+
horizontal: n.horizontal,
|
|
383
|
+
children: n.children
|
|
384
|
+
}
|
|
385
|
+
));
|
|
386
|
+
Ee.displayName = "SchedulerFormEditorDefaultElement";
|
|
387
|
+
const ge = (n) => {
|
|
388
|
+
const {
|
|
389
|
+
value: f,
|
|
390
|
+
onChange: d,
|
|
391
|
+
valid: I,
|
|
392
|
+
visited: F,
|
|
393
|
+
touched: r,
|
|
394
|
+
modified: h,
|
|
395
|
+
name: t,
|
|
396
|
+
validationMessage: _,
|
|
397
|
+
...s
|
|
398
|
+
} = n, S = e.useCallback(
|
|
399
|
+
(x) => {
|
|
400
|
+
d && d({ value: x.value });
|
|
401
|
+
},
|
|
402
|
+
[d]
|
|
403
|
+
);
|
|
404
|
+
return /* @__PURE__ */ e.createElement(je, { ...s, checked: f || !1, onChange: S });
|
|
405
|
+
};
|
|
406
|
+
ge.displayName = "SwitchFieldAdapter";
|
|
407
|
+
const w = (n) => /* @__PURE__ */ e.createElement(b, { ...n, style: { marginBottom: 0, ...n.style } });
|
|
408
|
+
w.displayName = "DefaultLabel";
|
|
409
|
+
const i = {
|
|
410
|
+
as: Ee,
|
|
411
|
+
titleEditor: Ye,
|
|
412
|
+
startEditor: de,
|
|
413
|
+
endEditor: de,
|
|
414
|
+
startTimezoneEditor: se,
|
|
415
|
+
endTimezoneEditor: se,
|
|
416
|
+
startLabel: w,
|
|
417
|
+
endLabel: w,
|
|
418
|
+
allDayEditor: ge,
|
|
419
|
+
allDayLabel: w,
|
|
420
|
+
recurrenceEditor: $e,
|
|
421
|
+
descriptionEditor: We,
|
|
422
|
+
resourceEditor: et
|
|
289
423
|
};
|
|
290
|
-
Re.displayName = "KendoReactSchedulerFormEditor";
|
|
291
424
|
export {
|
|
292
|
-
|
|
293
|
-
|
|
425
|
+
it as SchedulerFormEditor,
|
|
426
|
+
i as schedulerFormEditorDefaultProps
|
|
294
427
|
};
|