@progress/kendo-vue-scheduler 10.2.0-develop.9 → 11.0.0-develop.1
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 +157 -56
- package/Scheduler.js +1 -1
- package/Scheduler.mjs +242 -214
- package/codemods/v10/index.js +8 -0
- package/codemods/v10/scheduler-agenda-rendering-changes.js +12 -0
- package/codemods/v10/scheduler-date-format-changes.js +12 -0
- package/codemods/v10/scheduler-editor-title-message.js +8 -0
- package/codemods/v10/scheduler-form-rendering-changes.js +12 -0
- package/codemods/v10/scheduler-item-rendering-changes.js +12 -0
- package/codemods/v10/scheduler-more-events-changes.js +12 -0
- package/codemods/v10/scheduler-toolbar-rendering-changes.js +12 -0
- package/codemods/v10/utils.js +8 -0
- 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/codemods/v9/index.js +8 -0
- package/codemods/v9/scheduler-rendering-changes.js +12 -0
- package/codemods/v9/utils.js +8 -0
- package/components/EventOverviewPopover.d.ts +62 -0
- package/components/EventOverviewPopover.js +8 -0
- package/components/EventOverviewPopover.mjs +191 -0
- package/components/MoreEventsPopover.d.ts +3 -1
- package/components/MoreEventsPopover.js +1 -1
- package/components/MoreEventsPopover.mjs +31 -27
- package/components/SchedulerActionButtons.js +1 -1
- package/components/SchedulerActionButtons.mjs +1 -0
- package/components/SchedulerForm.d.ts +412 -2
- package/components/SchedulerForm.js +1 -1
- package/components/SchedulerForm.mjs +162 -60
- package/components/SchedulerQuickCreateForm.d.ts +118 -0
- package/components/SchedulerQuickCreateForm.js +8 -0
- package/components/SchedulerQuickCreateForm.mjs +249 -0
- package/constants/main.d.ts +2 -0
- package/constants/main.js +1 -1
- package/constants/main.mjs +10 -9
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/editors/KeepResetCustomEventsDialog.d.ts +31 -0
- package/editors/KeepResetCustomEventsDialog.js +8 -0
- package/editors/KeepResetCustomEventsDialog.mjs +72 -0
- package/editors/SchedulerFormEditor.d.ts +170 -44
- package/editors/SchedulerFormEditor.js +1 -1
- package/editors/SchedulerFormEditor.mjs +199 -144
- package/editors/SchedulerRecurrenceDialog.d.ts +2 -2
- package/editors/SchedulerRecurrenceDialog.js +1 -1
- package/editors/SchedulerRecurrenceDialog.mjs +126 -131
- package/editors/ZonedSplitDateTime.d.ts +32 -3
- package/editors/ZonedSplitDateTime.js +1 -1
- package/editors/ZonedSplitDateTime.mjs +112 -47
- package/hooks/useCloseOnAnchorScrollOut.d.ts +10 -0
- package/hooks/useCloseOnAnchorScrollOut.js +8 -0
- package/hooks/useCloseOnAnchorScrollOut.mjs +43 -0
- package/hooks/useCustomEventsConfirmation.d.ts +20 -0
- package/hooks/useCustomEventsConfirmation.js +8 -0
- package/hooks/useCustomEventsConfirmation.mjs +48 -0
- package/hooks/useDeferredClick.d.ts +12 -0
- package/hooks/useDeferredClick.js +8 -0
- package/hooks/useDeferredClick.mjs +22 -0
- package/hooks/useExclusivePopover.d.ts +26 -0
- package/hooks/useExclusivePopover.js +8 -0
- package/hooks/useExclusivePopover.mjs +30 -0
- package/hooks/useRecurrenceSummary.d.ts +3 -0
- package/hooks/useRecurrenceSummary.js +1 -1
- package/hooks/useRecurrenceSummary.mjs +72 -41
- package/index.d.mts +4 -2
- package/index.d.ts +4 -2
- package/index.js +1 -1
- package/index.mjs +83 -78
- package/items/SchedulerEditItem.d.ts +116 -12
- package/items/SchedulerEditItem.js +1 -1
- package/items/SchedulerEditItem.mjs +212 -131
- package/items/SchedulerItem.d.ts +2 -1
- package/items/SchedulerItem.js +1 -1
- package/items/SchedulerItem.mjs +28 -23
- package/items/SchedulerProportionalViewItem.d.ts +1 -0
- package/items/SchedulerProportionalViewItem.js +1 -1
- package/items/SchedulerProportionalViewItem.mjs +83 -68
- package/items/SchedulerViewItem.d.ts +1 -0
- package/items/SchedulerViewItem.js +1 -1
- package/items/SchedulerViewItem.mjs +84 -75
- package/items/hooks/use-drag-item.js +1 -1
- package/items/hooks/use-drag-item.mjs +49 -48
- package/items/hooks/use-form-item.d.ts +1 -1
- package/items/hooks/use-remove-item.d.ts +1 -1
- package/items/hooks/use-resize-item.js +1 -1
- package/items/hooks/use-resize-item.mjs +74 -65
- package/messages/main.d.ts +42 -0
- package/messages/main.js +1 -1
- package/messages/main.mjs +303 -275
- package/models/InternalDataAction.d.ts +13 -0
- package/models/SchedulerView.d.ts +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +94 -13
- package/recurrence/RecurrenceEditor.js +1 -1
- package/recurrence/RecurrenceEditor.mjs +42 -42
- package/recurrence/common.d.ts +10 -0
- package/recurrence/common.js +1 -1
- package/recurrence/common.mjs +39 -35
- package/services/itemsService.d.ts +5 -2
- package/services/itemsService.js +1 -1
- package/services/itemsService.mjs +46 -33
- package/services/occurrenceService.js +1 -1
- package/services/occurrenceService.mjs +18 -18
- package/slots/SchedulerEditSlot.d.ts +70 -8
- package/slots/SchedulerEditSlot.js +1 -1
- package/slots/SchedulerEditSlot.mjs +222 -141
- package/slots/SchedulerSlot.js +1 -1
- package/slots/SchedulerSlot.mjs +20 -16
- package/slots/SchedulerViewSlot.d.ts +3 -0
- package/slots/SchedulerViewSlot.js +1 -1
- package/slots/SchedulerViewSlot.mjs +21 -15
- package/tasks/SchedulerEditTask.d.ts +13 -2
- package/tasks/SchedulerEditTask.js +1 -1
- package/tasks/SchedulerEditTask.mjs +45 -30
- package/utils/main.d.ts +27 -0
- package/utils/main.js +1 -1
- package/utils/main.mjs +128 -92
- package/views/agenda/AgendaView.d.ts +6 -2
- package/views/agenda/AgendaView.js +1 -1
- package/views/agenda/AgendaView.mjs +31 -29
- package/views/agenda/AgendaViewBody.d.ts +3 -3
- package/views/agenda/AgendaViewBody.js +1 -1
- package/views/agenda/AgendaViewBody.mjs +31 -29
- package/views/common/SchedulerDrag.d.ts +4 -2
- package/views/common/SchedulerDrag.js +1 -1
- package/views/common/SchedulerDrag.mjs +8 -7
- package/views/common/SchedulerResize.d.ts +4 -2
- package/views/common/SchedulerResize.js +1 -1
- package/views/common/SchedulerResize.mjs +14 -12
- package/views/common/VerticalResourceIterator.d.ts +3 -3
- package/views/common/VerticalResourceIterator.js +1 -1
- package/views/common/VerticalResourceIterator.mjs +34 -33
- package/views/day/DayView.d.ts +2 -0
- package/views/day/DayView.js +1 -1
- package/views/day/DayView.mjs +9 -7
- package/views/day/DayViewAllDaySlots.d.ts +7 -5
- package/views/day/DayViewAllDaySlots.js +1 -1
- package/views/day/DayViewAllDaySlots.mjs +24 -21
- package/views/day/DayViewMiddleRow.d.ts +7 -5
- package/views/day/DayViewMiddleRow.js +1 -1
- package/views/day/DayViewMiddleRow.mjs +18 -13
- package/views/day/DayViewVerticalRow.d.ts +7 -5
- package/views/day/DayViewVerticalRow.js +1 -1
- package/views/day/DayViewVerticalRow.mjs +23 -17
- package/views/day/DayViewVerticalSlotsRow.d.ts +7 -5
- package/views/day/DayViewVerticalSlotsRow.js +1 -1
- package/views/day/DayViewVerticalSlotsRow.mjs +34 -29
- package/views/day/MultiDayView.d.ts +13 -7
- package/views/day/MultiDayView.js +1 -1
- package/views/day/MultiDayView.mjs +108 -95
- package/views/month/MonthView.d.ts +15 -4
- package/views/month/MonthView.js +1 -1
- package/views/month/MonthView.mjs +105 -68
- package/views/month/MonthViewBody.d.ts +3 -3
- package/views/month/MonthViewBody.js +1 -1
- package/views/month/MonthViewBody.mjs +18 -16
- package/views/time/MultiDayTimelineView.d.ts +6 -4
- package/views/time/MultiDayTimelineView.js +1 -1
- package/views/time/MultiDayTimelineView.mjs +64 -63
- package/views/time/TimelineView.d.ts +2 -0
- package/views/time/TimelineView.js +1 -1
- package/views/time/TimelineView.mjs +5 -3
- package/views/time/TimelineViewBody.d.ts +7 -5
- package/views/time/TimelineViewBody.js +1 -1
- package/views/time/TimelineViewBody.mjs +29 -27
- package/views/week/WeekView.d.ts +2 -0
- package/views/week/WeekView.js +1 -1
- package/views/week/WeekView.mjs +11 -10
- package/views/week/WorkWeekView.d.ts +2 -0
- package/views/week/WorkWeekView.js +1 -1
- package/views/week/WorkWeekView.mjs +17 -16
- package/EULA.pdf +0 -0
- package/EULA.rtf +0 -2730
|
@@ -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"),w=require("@progress/kendo-date-math"),h=require("@progress/kendo-vue-labels"),T=require("@progress/kendo-vue-intl"),n=require("@progress/kendo-vue-form"),p=require("@progress/kendo-vue-inputs"),d=require("@progress/kendo-vue-common"),a=require("@progress/kendo-svg-icons"),c=require("@progress/kendo-vue-buttons"),v=require("@progress/kendo-vue-dialogs"),e=require("../messages/main.js"),C=require("../recurrence/RecurrenceEditor.js"),I=require("./ResourceEditor.js"),R=require("./ZonedSplitDateTime.js"),S=require("./TimezoneDropDownList.js"),q=require("./SchedulerRecurrenceDialog.js"),A=require("./RemoveRecurrenceConfirmDialog.js"),B=require("../hooks/useRecurrenceSummary.js");function g(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!t.isVNode(r)}const j=t.defineComponent({name:"KendoSchedulerFormEditor",props:{as:[String,Function,Object],id:String,tabIndex:Number,titleEditor:{type:[String,Function,Object],default:function(){return p.TextBox}},startEditor:{type:[String,Function,Object],default:function(){return R.ZonedSplitDateTime}},startTimezoneEditor:{type:[String,Function,Object],default:function(){return S.TimezoneDropDownList}},endEditor:{type:[String,Function,Object],default:function(){return R.ZonedSplitDateTime}},endTimezoneEditor:{type:[String,Function,Object],default:function(){return S.TimezoneDropDownList}},allDayLabel:{type:[String,Function,Object],default:function(){return"span"}},allDayEditor:{type:[String,Function,Object],default:function(){return p.Switch}},recurrenceEditor:{type:[String,Function,Object],default:function(){return C.RecurrenceEditor}},descriptionEditor:{type:[String,Function,Object],default:function(){return p.TextArea}},resourceEditor:{type:[String,Function,Object],default:function(){return I.ResourceEditor}},recurrenceButtonTextTemplate:[Object,Function],recurrenceSummaryTemplate:[Object,Function],errors:Object,valid:Boolean,touched:Boolean,visited:Boolean,modified:Boolean,submitted:Boolean,allowSubmit:Boolean,valueGetter:Function},created(){this.requiredValidationMessage=void 0},inject:{ks:{default:null},kendoForm:{default:{}},kendoLocalizationService:{default:null}},data(){const r=this.kendoForm,o=this.ks;return{showTimezones:!!r.valueGetter(o.fields.startTimezone),showTimezoneResetDialog:!1,showRecurrenceDialog:!1,showRemoveRecurrenceDialog:!1}},computed:{isAllDay(){return!!this.kendoForm.valueGetter(this.ks.fields.isAllDay)},start(){return this.kendoForm.valueGetter(this.ks.fields.start)||new Date},startTimezone(){return this.kendoForm.valueGetter(this.ks.fields.startTimezone)||""},recurrenceRule(){return this.kendoForm.valueGetter(this.ks.fields.recurrenceRule)},recurrenceId(){return this.kendoForm.valueGetter(this.ks.fields.recurrenceId)},isEditingOccurrence(){return this.recurrenceId!==void 0&&this.recurrenceId!==null},showRecurrenceButton(){return!this.isEditingOccurrence},recurrenceButtonText(){const r=T.provideIntlService(this),o=T.provideLocalizationService(this),l=(m,i)=>o.toLanguageString(m,i),u=o.toLanguageString(e.editorRecurrenceMakeRecurring,e.messages[e.editorRecurrenceMakeRecurring]);return this.recurrenceRule&&B.getRecurrenceSummary(this.recurrenceRule,this.start,r,l)||u}},render(){let r,o,l;const u=d.getDefaultSlots(this),m=w.timezoneNames(),i=T.provideLocalizationService(this),k=this.$props.startEditor,z=this.$props.endEditor,F=this.$props.startTimezoneEditor,E=this.$props.endTimezoneEditor,D=this.$props.allDayEditor,V=this.$props.allDayLabel,b=this.$props.descriptionEditor,L=this.$props.resourceEditor,N=this.$props.titleEditor,y=this.startTimezone;this.requiredValidationMessage=i.toLanguageString(e.editorValidationRequired,e.messages[e.editorValidationRequired]);const f=i.toLanguageString(e.editorEventAllDay,e.messages[e.editorEventAllDay]);return t.createVNode(t.Fragment,null,[t.createVNode(n.FormElement,{horizontal:!0,class:"k-scheduler-edit-form"},{default:()=>[t.createVNode(n.FieldWrapper,null,{default:()=>[t.createVNode(h.Label,{class:"k-form-label"},{default:()=>[t.createVNode(d.SvgIcon,{icon:a.rightDoubleQuotesIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(n.Field,{id:"k-scheduler-editor-title",name:this.ks.fields.title,field:this.ks.fields.title,component:N,placeholder:i.toLanguageString(e.editorEventTitle,e.messages[e.editorEventTitle]),"aria-label":i.toLanguageString(e.editorEventTitle,e.messages[e.editorEventTitle])},null)])]}),t.createVNode(n.FieldWrapper,null,{default:()=>[t.createVNode(h.Label,{class:"k-form-label"},{default:()=>[t.createVNode(d.SvgIcon,{icon:a.clockIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode("div",{class:"k-scheduler-datetime-section"},[t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(n.Field,{name:this.ks.fields.isAllDay,component:D,onLabel:"",offLabel:""},null),t.createVNode(V,null,g(f)?f:{default:()=>[f]})]),t.createVNode("div",{class:"k-scheduler-datetime-grid"},[this.isAllDay?t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(n.Field,{name:this.ks.fields.start,component:k,isAllDay:this.isAllDay,fieldError:this.kendoForm.errors[this.ks.fields.start],ariaLabel:i.toLanguageString(e.editorEventStart,e.messages[e.editorEventStart]),timezone:this.ks.timezone},null),t.createVNode("span",{class:"k-scheduler-datetime-label"},[i.toLanguageString(e.editorDateConnectorTo,e.messages[e.editorDateConnectorTo])]),t.createVNode(n.Field,{name:this.ks.fields.end,component:z,isAllDay:this.isAllDay,fieldError:this.kendoForm.errors[this.ks.fields.end],ariaLabel:i.toLanguageString(e.editorEventEnd,e.messages[e.editorEventEnd]),timezone:this.ks.timezone},null)]):t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(n.Field,{name:this.ks.fields.start,component:k,isAllDay:this.isAllDay,connector:i.toLanguageString(e.editorDateConnectorFrom,e.messages[e.editorDateConnectorFrom]),fieldError:this.kendoForm.errors[this.ks.fields.start],ariaLabel:i.toLanguageString(e.editorEventStart,e.messages[e.editorEventStart]),timeAriaLabel:i.toLanguageString(e.editorStartTimeAriaLabel,e.messages[e.editorStartTimeAriaLabel]),timezone:this.ks.timezone},null)]),!this.showTimezones&&t.createVNode(c.Button,{class:"k-col-span-2",fillMode:"flat",themeColor:"primary",title:i.toLanguageString(e.editorSetTimezoneTitle,e.messages[e.editorSetTimezoneTitle]),onClick:this.handleTimezoneToggle,svgIcon:a.globeIcon},g(r=i.toLanguageString(e.editorTimezoneButton,e.messages[e.editorTimezoneButton]))?r:{default:()=>[r]}),this.showTimezones&&t.createVNode(t.Fragment,null,[t.createVNode(n.Field,{name:this.ks.fields.startTimezone,component:F,dataItems:m,value:y,ariaLabel:i.toLanguageString(e.editorEventStartTimeZone,e.messages[e.editorEventStartTimeZone])},null),t.createVNode(c.Button,{title:i.toLanguageString(e.editorResetTimezoneTitle,e.messages[e.editorResetTimezoneTitle]),"aria-label":i.toLanguageString(e.editorResetTimezoneAriaLabel,e.messages[e.editorResetTimezoneAriaLabel]),onClick:this.handleTimezoneToggle,svgIcon:a.globeIcon,fillMode:"flat",themeColor:"primary"},null)]),t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(n.Field,{name:this.ks.fields.end,component:z,isAllDay:this.isAllDay,connector:i.toLanguageString(e.editorDateConnectorTo,e.messages[e.editorDateConnectorTo]),fieldError:this.kendoForm.errors[this.ks.fields.end],ariaLabel:i.toLanguageString(e.editorEventEnd,e.messages[e.editorEventEnd]),timeAriaLabel:i.toLanguageString(e.editorEndTimeAriaLabel,e.messages[e.editorEndTimeAriaLabel]),timezone:this.ks.timezone},null)]),this.showTimezones&&t.createVNode(n.Field,{name:this.ks.fields.endTimezone,component:E,dataItems:m,value:this.kendoForm.valueGetter(this.ks.fields.endTimezone)||"",ariaLabel:i.toLanguageString(e.editorEventEndTimeZone,e.messages[e.editorEventEndTimeZone])},null)])]),this.showRecurrenceButton&&t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(c.Button,{class:"k-scheduler-recurrence-button",type:"button",fillMode:"flat",themeColor:"primary",svgIcon:a.arrowRotateCwIcon,onClick:this.handleMakeRecurringClick},{default:()=>[this.recurrenceButtonTextTemplate?this.renderRecurrenceButtonTextTemplate():this.recurrenceButtonText]})])])])]}),t.createVNode(n.FieldWrapper,null,{default:()=>[t.createVNode(h.Label,{class:"k-form-label"},{default:()=>[t.createVNode(d.SvgIcon,{icon:a.commentIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(n.Field,{component:b,name:this.ks.fields.description,id:"k-event-description",resizable:"vertical",placeholder:i.toLanguageString(e.editorEventDescription,e.messages[e.editorEventDescription]),"aria-label":i.toLanguageString(e.editorEventDescription,e.messages[e.editorEventDescription])},null)])]}),(this.ks.props.resources||[]).map(s=>t.createVNode(n.FieldWrapper,{key:s.field},{default:()=>[s.svgIcon&&t.createVNode(h.Label,{class:"k-form-label"},{default:()=>[t.createVNode(d.SvgIcon,{icon:s.svgIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(n.Field,{name:s.field,component:L,resource:s,multiple:s.multiple,dataItems:s.data,textField:s.textField,valueField:s.valueField,colorField:s.colorField,ariaLabel:s.name||s.field},null)])]})),u]}),this.showRecurrenceDialog&&t.createVNode(q.SchedulerRecurrenceDialog,{value:this.recurrenceRule,start:this.start,timezone:this.ks.timezone||"",onSave:this.handleRecurrenceSave,onCancel:this.handleRecurrenceCancel,onRemoveRecurrence:this.handleRemoveRecurrenceClick,recurrenceSummaryTemplate:this.recurrenceSummaryTemplate,recurrenceEditor:this.recurrenceEditor},null),this.showRemoveRecurrenceDialog&&t.createVNode(A.RemoveRecurrenceConfirmDialog,{onConfirm:this.handleRemoveRecurrenceConfirm,onCancel:this.handleRemoveRecurrenceCancel},null),this.showTimezoneResetDialog&&t.createVNode(v.Dialog,{title:i.toLanguageString(e.resetTimezoneDialogTitle,e.messages[e.resetTimezoneDialogTitle]),onClose:this.handleTimezoneResetClose},{default:()=>[i.toLanguageString(e.resetTimezoneConfirmation,e.messages[e.resetTimezoneConfirmation]),t.createVNode(v.DialogActionsBar,null,{default:()=>[t.createVNode(c.Button,{onClick:this.handleTimezoneResetClose},g(o=i.toLanguageString(e.resetTimezoneNo,e.messages[e.resetTimezoneNo]))?o:{default:()=>[o]}),t.createVNode(c.Button,{themeColor:"primary",onClick:this.handleTimezoneResetConfirm},g(l=i.toLanguageString(e.resetTimezoneYes,e.messages[e.resetTimezoneYes]))?l:{default:()=>[l]})]})]})])},methods:{renderRecurrenceButtonTextTemplate(){const r=this.recurrenceButtonTextTemplate;return r?t.createVNode(r,{recurrenceRule:this.recurrenceRule},null):null},handleTimezoneToggle(r){r.preventDefault(),this.showTimezones?this.showTimezoneResetDialog=!0:(this.updateFormField(this.ks.fields.startTimezone,null),this.updateFormField(this.ks.fields.endTimezone,null),this.showTimezones=!0)},handleTimezoneResetConfirm(){this.updateFormField(this.ks.fields.startTimezone,null),this.updateFormField(this.ks.fields.endTimezone,null),this.showTimezones=!1,this.showTimezoneResetDialog=!1},handleTimezoneResetClose(){this.showTimezoneResetDialog=!1},handleMakeRecurringClick(){this.showRecurrenceDialog=!0},handleRecurrenceSave(r){this.updateFormField(this.ks.fields.recurrenceRule,r),this.showRecurrenceDialog=!1},handleRecurrenceCancel(){this.showRecurrenceDialog=!1},handleRemoveRecurrenceClick(){this.showRemoveRecurrenceDialog=!0},handleRemoveRecurrenceConfirm(){this.updateFormField(this.ks.fields.recurrenceRule,null),this.updateFormField(this.ks.fields.recurrenceExceptions,null),this.showRemoveRecurrenceDialog=!1,this.showRecurrenceDialog=!1},handleRemoveRecurrenceCancel(){this.showRemoveRecurrenceDialog=!1},updateFormField(r,o){this.kendoForm.onChange(r,{value:o}),this.$emit("change",r,{value:o})},requiredValidator(r){return r?void 0:this.requiredValidationMessage},startTimezoneValidator(r,o){return this.showTimezones?this.requiredValidator(o(this.ks.fields.startTimezone)):void 0},endTimezoneValidator(r,o){return this.showTimezones?this.requiredValidator(o(this.ks.fields.endTimezone))||this.requiredValidator(o(this.ks.fields.startTimezone)):void 0}},watch:{startTimezone(r,o){this.showTimezones&&r&&r!==o&&this.updateFormField(this.ks.fields.endTimezone,r)}}});exports.SchedulerFormEditor=j;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),V=require("@progress/kendo-date-math"),A=require("@progress/kendo-recurrence"),k=require("@progress/kendo-vue-labels"),S=require("@progress/kendo-vue-intl"),s=require("@progress/kendo-vue-form"),F=require("@progress/kendo-vue-inputs"),h=require("@progress/kendo-vue-common"),g=require("@progress/kendo-svg-icons"),p=require("@progress/kendo-vue-buttons"),b=require("@progress/kendo-vue-dialogs"),e=require("../messages/main.js"),q=require("../recurrence/RecurrenceEditor.js"),B=require("./ResourceEditor.js"),u=require("./ZonedSplitDateTime.js"),y=require("./TimezoneDropDownList.js"),j=require("./SchedulerRecurrenceDialog.js"),x=require("./RemoveRecurrenceConfirmDialog.js"),L=require("../hooks/useRecurrenceSummary.js");function v(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!t.isVNode(r)}const O=t.defineComponent({name:"KendoSchedulerFormEditor",props:{as:[String,Function,Object],id:String,tabIndex:Number,titleEditor:{type:[String,Function,Object],default:function(){return F.TextBox}},startEditor:{type:[String,Function,Object],default:function(){return u.ZonedSplitDateTime}},startTimezoneEditor:{type:[String,Function,Object],default:function(){return y.TimezoneDropDownList}},endEditor:{type:[String,Function,Object],default:function(){return u.ZonedSplitDateTime}},endTimezoneEditor:{type:[String,Function,Object],default:function(){return y.TimezoneDropDownList}},allDayLabel:{type:[String,Function,Object],default:function(){return"span"}},allDayEditor:{type:[String,Function,Object],default:function(){return F.Switch}},recurrenceEditor:{type:[String,Function,Object],default:function(){return q.RecurrenceEditor}},descriptionEditor:{type:[String,Function,Object],default:function(){return F.TextArea}},resourceEditor:{type:[String,Function,Object],default:function(){return B.ResourceEditor}},recurrenceButtonTextTemplate:[Object,Function],recurrenceSummaryTemplate:[Object,Function],errors:Object,valid:Boolean,touched:Boolean,visited:Boolean,modified:Boolean,submitted:Boolean,allowSubmit:Boolean,valueGetter:Function},created(){this.requiredValidationMessage=void 0},inject:{ks:{default:null},kendoForm:{default:{}},kendoIntlService:{default:null},kendoLocalizationService:{default:null}},data(){const r=this.kendoForm,n=this.ks;return{showTimezones:!!r.valueGetter(n.fields.startTimezone),showTimezoneResetDialog:!1,showRecurrenceDialog:!1,showRemoveRecurrenceDialog:!1}},setup(){const r=t.inject("ks"),n=t.inject("kendoForm"),m=h.guid();let l=null,c;t.provide("schedulerEndAdjustment",o=>(c=o,()=>{c===o&&(c=void 0)}));const i=()=>{const o=n.valueGetter(r.fields.start),d=n.valueGetter(r.fields.end);o instanceof Date&&d instanceof Date&&Number.isFinite(o.getTime())&&Number.isFinite(d.getTime())&&d.getTime()>=o.getTime()&&(l={start:new Date(o),end:new Date(d)})},T=()=>{const o=n.valueGetter(r.fields.start);if(!l||!(o instanceof Date)||!Number.isFinite(o.getTime()))return;let d=new Date(o.getTime()+l.end.getTime()-l.start.getTime());if(n.valueGetter(r.fields.isAllDay)){const R=u.readDateAsLocal(l.start,r.timezone),z=u.readDateAsLocal(o,r.timezone),f=new Date(u.readDateAsLocal(l.end,r.timezone));f.setDate(f.getDate()+Math.round((u.dayValue(z)-u.dayValue(R))/V.MS_PER_DAY)),d=u.readDateWithTimezone(f,r.timezone)}n.onChange(r.fields.end,{value:c?c(d):d}),i()};return i(),t.watch([()=>n.valueGetter(r.fields.start),()=>n.valueGetter(r.fields.end)],i,{flush:"post"}),{handleStartChange:T,updatePreviousRange:i,recurrenceSummaryId:m}},computed:{isAllDay(){return!!this.kendoForm.valueGetter(this.ks.fields.isAllDay)},start(){return this.kendoForm.valueGetter(this.ks.fields.start)||new Date},startTimezone(){return this.kendoForm.valueGetter(this.ks.fields.startTimezone)||""},recurrenceRule(){return this.kendoForm.valueGetter(this.ks.fields.recurrenceRule)},recurrenceId(){return this.kendoForm.valueGetter(this.ks.fields.recurrenceId)},isEditingOccurrence(){return this.recurrenceId!==void 0&&this.recurrenceId!==null},showRecurrenceButton(){return!this.isEditingOccurrence},recurrenceButtonText(){const r=S.provideLocalizationService(this),n=this.recurrenceRule?e.editorRecurrenceEdit:e.editorRecurrenceMakeRecurring;return r.toLanguageString(n,e.messages[n])},recurrenceSummaryText(){if(!this.recurrenceRule)return"";const r=S.provideIntlService(this),n=S.provideLocalizationService(this);return L.getRecurrenceSummary(this.recurrenceRule,this.start,r,(m,l)=>n.toLanguageString(m,l))},parsedRecurrenceRule(){return this.recurrenceRule?A.parseRule({recurrenceRule:this.recurrenceRule}):null}},render(){let r,n,m;const l=h.getDefaultSlots(this),c=V.timezoneNames(),i=S.provideLocalizationService(this),T=this.$props.startEditor,o=this.$props.endEditor,d=this.$props.startTimezoneEditor,R=this.$props.endTimezoneEditor,z=this.$props.allDayEditor,f=this.$props.allDayLabel,N=this.$props.descriptionEditor,w=this.$props.resourceEditor,C=this.$props.titleEditor,I=this.startTimezone,E=!!(this.recurrenceRule&&(this.recurrenceSummaryTemplate||this.recurrenceSummaryText));this.requiredValidationMessage=i.toLanguageString(e.editorValidationRequired,e.messages[e.editorValidationRequired]);const D=i.toLanguageString(e.editorEventAllDay,e.messages[e.editorEventAllDay]);return t.createVNode(t.Fragment,null,[t.createVNode(s.FormElement,{horizontal:!0,class:"k-scheduler-edit-form"},{default:()=>[t.createVNode(s.FieldWrapper,null,{default:()=>[t.createVNode(k.Label,{class:"k-form-label"},{default:()=>[t.createVNode(h.SvgIcon,{icon:g.rightDoubleQuotesIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(s.Field,{id:"k-scheduler-editor-title",name:this.ks.fields.title,field:this.ks.fields.title,component:C,placeholder:i.toLanguageString(e.editorEventTitle,e.messages[e.editorEventTitle]),"aria-label":i.toLanguageString(e.editorEventTitle,e.messages[e.editorEventTitle])},null)])]}),t.createVNode(s.FieldWrapper,null,{default:()=>[t.createVNode(k.Label,{class:"k-form-label"},{default:()=>[t.createVNode(h.SvgIcon,{icon:g.clockIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode("div",{class:"k-scheduler-datetime-section"},[t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.isAllDay,component:z,onLabel:"",offLabel:""},null),t.createVNode(f,null,v(D)?D:{default:()=>[D]})]),t.createVNode("div",{class:"k-scheduler-datetime-grid"},[this.isAllDay?t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.start,component:T,onChange:this.handleStartChange,isAllDay:this.isAllDay,fieldError:this.kendoForm.errors[this.ks.fields.start],ariaLabel:i.toLanguageString(e.editorEventStart,e.messages[e.editorEventStart]),timezone:this.ks.timezone},null),t.createVNode("span",{class:"k-scheduler-datetime-label"},[i.toLanguageString(e.editorDateConnectorTo,e.messages[e.editorDateConnectorTo])]),t.createVNode(s.Field,{name:this.ks.fields.end,component:o,onChange:this.updatePreviousRange,isAllDay:this.isAllDay,fieldError:this.kendoForm.errors[this.ks.fields.end],ariaLabel:i.toLanguageString(e.editorEventEnd,e.messages[e.editorEventEnd]),timezone:this.ks.timezone},null)]):t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.start,component:T,onChange:this.handleStartChange,isAllDay:this.isAllDay,connector:i.toLanguageString(e.editorDateConnectorFrom,e.messages[e.editorDateConnectorFrom]),fieldError:this.kendoForm.errors[this.ks.fields.start],ariaLabel:i.toLanguageString(e.editorEventStart,e.messages[e.editorEventStart]),timeAriaLabel:i.toLanguageString(e.editorStartTimeAriaLabel,e.messages[e.editorStartTimeAriaLabel]),timezone:this.ks.timezone},null)]),!this.showTimezones&&t.createVNode(p.Button,{class:"k-col-span-2",fillMode:"flat",themeColor:"primary",title:i.toLanguageString(e.editorSetTimezoneTitle,e.messages[e.editorSetTimezoneTitle]),onClick:this.handleTimezoneToggle,svgIcon:g.globeIcon},v(r=i.toLanguageString(e.editorTimezoneButton,e.messages[e.editorTimezoneButton]))?r:{default:()=>[r]}),this.showTimezones&&t.createVNode(t.Fragment,null,[t.createVNode(s.Field,{name:this.ks.fields.startTimezone,component:d,dataItems:c,value:I,ariaLabel:i.toLanguageString(e.editorEventStartTimeZone,e.messages[e.editorEventStartTimeZone])},null),t.createVNode(p.Button,{title:i.toLanguageString(e.editorResetTimezoneTitle,e.messages[e.editorResetTimezoneTitle]),"aria-label":i.toLanguageString(e.editorResetTimezoneAriaLabel,e.messages[e.editorResetTimezoneAriaLabel]),onClick:this.handleTimezoneToggle,svgIcon:g.globeIcon,fillMode:"flat",themeColor:"primary"},null)]),t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.end,component:o,onChange:this.updatePreviousRange,isAllDay:this.isAllDay,connector:i.toLanguageString(e.editorDateConnectorTo,e.messages[e.editorDateConnectorTo]),fieldError:this.kendoForm.errors[this.ks.fields.end],ariaLabel:i.toLanguageString(e.editorEventEnd,e.messages[e.editorEventEnd]),timeAriaLabel:i.toLanguageString(e.editorEndTimeAriaLabel,e.messages[e.editorEndTimeAriaLabel]),timezone:this.ks.timezone},null)]),this.showTimezones&&t.createVNode(s.Field,{name:this.ks.fields.endTimezone,component:R,dataItems:c,value:this.kendoForm.valueGetter(this.ks.fields.endTimezone)||"",ariaLabel:i.toLanguageString(e.editorEventEndTimeZone,e.messages[e.editorEventEndTimeZone])},null)])]),this.showRecurrenceButton&&t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(p.Button,{class:"k-scheduler-recurrence-button",type:"button",fillMode:"flat",themeColor:"primary",svgIcon:g.arrowRotateCwIcon,onClick:this.handleMakeRecurringClick,"aria-describedby":E?this.recurrenceSummaryId:void 0},{default:()=>[this.recurrenceButtonText]}),E&&L.renderRecurrenceSummary(this.recurrenceSummaryText,this.renderRecurrenceSummaryTemplate(),this.recurrenceSummaryId)])])])]}),t.createVNode(s.FieldWrapper,null,{default:()=>[t.createVNode(k.Label,{class:"k-form-label"},{default:()=>[t.createVNode(h.SvgIcon,{icon:g.commentIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(s.Field,{component:N,name:this.ks.fields.description,id:"k-event-description",resizable:"vertical",placeholder:i.toLanguageString(e.editorEventDescription,e.messages[e.editorEventDescription]),"aria-label":i.toLanguageString(e.editorEventDescription,e.messages[e.editorEventDescription])},null)])]}),(this.ks.props.resources||[]).map(a=>t.createVNode(s.FieldWrapper,{key:a.field},{default:()=>[a.svgIcon&&t.createVNode(k.Label,{class:"k-form-label"},{default:()=>[t.createVNode(h.SvgIcon,{icon:a.svgIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(s.Field,{name:a.field,component:w,resource:a,multiple:a.multiple,dataItems:a.data,textField:a.textField,valueField:a.valueField,colorField:a.colorField,ariaLabel:a.name||a.field},null)])]})),l]}),this.showRecurrenceDialog&&t.createVNode(j.SchedulerRecurrenceDialog,{value:this.recurrenceRule,start:this.start,timezone:this.ks.timezone||"",onSave:this.handleRecurrenceSave,onCancel:this.handleRecurrenceCancel,onRemoveRecurrence:this.handleRemoveRecurrenceClick,recurrenceSummaryTemplate:this.recurrenceSummaryTemplate,recurrenceEditor:this.recurrenceEditor},null),this.showRemoveRecurrenceDialog&&t.createVNode(x.RemoveRecurrenceConfirmDialog,{onConfirm:this.handleRemoveRecurrenceConfirm,onCancel:this.handleRemoveRecurrenceCancel},null),this.showTimezoneResetDialog&&t.createVNode(b.Dialog,{title:i.toLanguageString(e.resetTimezoneDialogTitle,e.messages[e.resetTimezoneDialogTitle]),onClose:this.handleTimezoneResetClose},{default:()=>[i.toLanguageString(e.resetTimezoneConfirmation,e.messages[e.resetTimezoneConfirmation]),t.createVNode(b.DialogActionsBar,null,{default:()=>[t.createVNode(p.Button,{onClick:this.handleTimezoneResetClose},v(n=i.toLanguageString(e.resetTimezoneNo,e.messages[e.resetTimezoneNo]))?n:{default:()=>[n]}),t.createVNode(p.Button,{themeColor:"primary",onClick:this.handleTimezoneResetConfirm},v(m=i.toLanguageString(e.resetTimezoneYes,e.messages[e.resetTimezoneYes]))?m:{default:()=>[m]})]})]})])},methods:{renderRecurrenceSummaryTemplate(){const r=this.recurrenceSummaryTemplate;return!r||!this.recurrenceRule?null:t.createVNode(r,{recurrenceRule:this.recurrenceRule,text:this.recurrenceSummaryText,parsedRule:this.parsedRecurrenceRule},null)},handleTimezoneToggle(r){r.preventDefault(),this.showTimezones?this.showTimezoneResetDialog=!0:(this.updateFormField(this.ks.fields.startTimezone,null),this.updateFormField(this.ks.fields.endTimezone,null),this.showTimezones=!0)},handleTimezoneResetConfirm(){this.updateFormField(this.ks.fields.startTimezone,null),this.updateFormField(this.ks.fields.endTimezone,null),this.showTimezones=!1,this.showTimezoneResetDialog=!1},handleTimezoneResetClose(){this.showTimezoneResetDialog=!1},handleMakeRecurringClick(){this.showRecurrenceDialog=!0},handleRecurrenceSave(r){this.updateFormField(this.ks.fields.recurrenceRule,r),this.showRecurrenceDialog=!1},handleRecurrenceCancel(){this.showRecurrenceDialog=!1},handleRemoveRecurrenceClick(){this.showRemoveRecurrenceDialog=!0},handleRemoveRecurrenceConfirm(){this.updateFormField(this.ks.fields.recurrenceRule,null),this.updateFormField(this.ks.fields.recurrenceExceptions,null),this.showRemoveRecurrenceDialog=!1,this.showRecurrenceDialog=!1},handleRemoveRecurrenceCancel(){this.showRemoveRecurrenceDialog=!1},updateFormField(r,n){this.kendoForm.onChange(r,{value:n}),this.$emit("change",r,{value:n})},requiredValidator(r){return r?void 0:this.requiredValidationMessage},startTimezoneValidator(r,n){return this.showTimezones?this.requiredValidator(n(this.ks.fields.startTimezone)):void 0},endTimezoneValidator(r,n){return this.showTimezones?this.requiredValidator(n(this.ks.fields.endTimezone))||this.requiredValidator(n(this.ks.fields.startTimezone)):void 0}},watch:{startTimezone(r,n){this.showTimezones&&r&&r!==n&&this.updateFormField(this.ks.fields.endTimezone,r)}}});exports.SchedulerFormEditor=O;
|
|
@@ -5,28 +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 {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
import { Button as h } from "@progress/kendo-vue-buttons";
|
|
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
|
+
import { RemoveRecurrenceConfirmDialog as Ee } from "./RemoveRecurrenceConfirmDialog.mjs";
|
|
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);
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
+
const Qe = /* @__PURE__ */ te({
|
|
30
31
|
name: "KendoSchedulerFormEditor",
|
|
31
32
|
props: {
|
|
32
33
|
as: [String, Function, Object],
|
|
@@ -35,31 +36,31 @@ const Oe = /* @__PURE__ */ U({
|
|
|
35
36
|
titleEditor: {
|
|
36
37
|
type: [String, Function, Object],
|
|
37
38
|
default: function() {
|
|
38
|
-
return
|
|
39
|
+
return me;
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
startEditor: {
|
|
42
43
|
type: [String, Function, Object],
|
|
43
44
|
default: function() {
|
|
44
|
-
return
|
|
45
|
+
return Y;
|
|
45
46
|
}
|
|
46
47
|
},
|
|
47
48
|
startTimezoneEditor: {
|
|
48
49
|
type: [String, Function, Object],
|
|
49
50
|
default: function() {
|
|
50
|
-
return
|
|
51
|
+
return H;
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
endEditor: {
|
|
54
55
|
type: [String, Function, Object],
|
|
55
56
|
default: function() {
|
|
56
|
-
return
|
|
57
|
+
return Y;
|
|
57
58
|
}
|
|
58
59
|
},
|
|
59
60
|
endTimezoneEditor: {
|
|
60
61
|
type: [String, Function, Object],
|
|
61
62
|
default: function() {
|
|
62
|
-
return
|
|
63
|
+
return H;
|
|
63
64
|
}
|
|
64
65
|
},
|
|
65
66
|
allDayLabel: {
|
|
@@ -71,25 +72,25 @@ const Oe = /* @__PURE__ */ U({
|
|
|
71
72
|
allDayEditor: {
|
|
72
73
|
type: [String, Function, Object],
|
|
73
74
|
default: function() {
|
|
74
|
-
return
|
|
75
|
+
return ce;
|
|
75
76
|
}
|
|
76
77
|
},
|
|
77
78
|
recurrenceEditor: {
|
|
78
79
|
type: [String, Function, Object],
|
|
79
80
|
default: function() {
|
|
80
|
-
return
|
|
81
|
+
return De;
|
|
81
82
|
}
|
|
82
83
|
},
|
|
83
84
|
descriptionEditor: {
|
|
84
85
|
type: [String, Function, Object],
|
|
85
86
|
default: function() {
|
|
86
|
-
return
|
|
87
|
+
return de;
|
|
87
88
|
}
|
|
88
89
|
},
|
|
89
90
|
resourceEditor: {
|
|
90
91
|
type: [String, Function, Object],
|
|
91
92
|
default: function() {
|
|
92
|
-
return
|
|
93
|
+
return Fe;
|
|
93
94
|
}
|
|
94
95
|
},
|
|
95
96
|
recurrenceButtonTextTemplate: [Object, Function],
|
|
@@ -113,19 +114,55 @@ const Oe = /* @__PURE__ */ U({
|
|
|
113
114
|
kendoForm: {
|
|
114
115
|
default: {}
|
|
115
116
|
},
|
|
117
|
+
kendoIntlService: {
|
|
118
|
+
default: null
|
|
119
|
+
},
|
|
116
120
|
kendoLocalizationService: {
|
|
117
121
|
default: null
|
|
118
122
|
}
|
|
119
123
|
},
|
|
120
124
|
data() {
|
|
121
|
-
const t = this.kendoForm,
|
|
125
|
+
const t = this.kendoForm, i = this.ks;
|
|
122
126
|
return {
|
|
123
|
-
showTimezones: !!t.valueGetter(
|
|
127
|
+
showTimezones: !!t.valueGetter(i.fields.startTimezone),
|
|
124
128
|
showTimezoneResetDialog: !1,
|
|
125
129
|
showRecurrenceDialog: !1,
|
|
126
130
|
showRemoveRecurrenceDialog: !1
|
|
127
131
|
};
|
|
128
132
|
},
|
|
133
|
+
setup() {
|
|
134
|
+
const t = A("ks"), i = A("kendoForm"), c = fe();
|
|
135
|
+
let l = null, d;
|
|
136
|
+
re("schedulerEndAdjustment", (o) => (d = o, () => {
|
|
137
|
+
d === o && (d = void 0);
|
|
138
|
+
}));
|
|
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
|
+
start: new Date(o),
|
|
143
|
+
end: new Date(a)
|
|
144
|
+
});
|
|
145
|
+
}, f = () => {
|
|
146
|
+
const o = i.valueGetter(t.fields.start);
|
|
147
|
+
if (!l || !(o instanceof Date) || !Number.isFinite(o.getTime()))
|
|
148
|
+
return;
|
|
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
|
+
}
|
|
154
|
+
i.onChange(t.fields.end, {
|
|
155
|
+
value: d ? d(a) : a
|
|
156
|
+
}), r();
|
|
157
|
+
};
|
|
158
|
+
return r(), ie([() => i.valueGetter(t.fields.start), () => i.valueGetter(t.fields.end)], r, {
|
|
159
|
+
flush: "post"
|
|
160
|
+
}), {
|
|
161
|
+
handleStartChange: f,
|
|
162
|
+
updatePreviousRange: r,
|
|
163
|
+
recurrenceSummaryId: c
|
|
164
|
+
};
|
|
165
|
+
},
|
|
129
166
|
computed: {
|
|
130
167
|
isAllDay() {
|
|
131
168
|
return !!this.kendoForm.valueGetter(this.ks.fields.isAllDay);
|
|
@@ -149,43 +186,54 @@ const Oe = /* @__PURE__ */ U({
|
|
|
149
186
|
return !this.isEditingOccurrence;
|
|
150
187
|
},
|
|
151
188
|
recurrenceButtonText() {
|
|
152
|
-
const t =
|
|
153
|
-
return
|
|
189
|
+
const t = L(this), i = this.recurrenceRule ? ze : ve;
|
|
190
|
+
return t.toLanguageString(i, n[i]);
|
|
191
|
+
},
|
|
192
|
+
recurrenceSummaryText() {
|
|
193
|
+
if (!this.recurrenceRule)
|
|
194
|
+
return "";
|
|
195
|
+
const t = ae(this), i = L(this);
|
|
196
|
+
return we(this.recurrenceRule, this.start, t, (c, l) => i.toLanguageString(c, l));
|
|
197
|
+
},
|
|
198
|
+
parsedRecurrenceRule() {
|
|
199
|
+
return this.recurrenceRule ? le({
|
|
200
|
+
recurrenceRule: this.recurrenceRule
|
|
201
|
+
}) : null;
|
|
154
202
|
}
|
|
155
203
|
},
|
|
156
204
|
render() {
|
|
157
|
-
let t,
|
|
158
|
-
const
|
|
159
|
-
this.requiredValidationMessage =
|
|
160
|
-
const
|
|
161
|
-
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, {
|
|
162
210
|
horizontal: !0,
|
|
163
211
|
class: "k-scheduler-edit-form"
|
|
164
212
|
}, {
|
|
165
|
-
default: () => [e(
|
|
166
|
-
default: () => [e(
|
|
213
|
+
default: () => [e(p, null, {
|
|
214
|
+
default: () => [e(g, {
|
|
167
215
|
class: "k-form-label"
|
|
168
216
|
}, {
|
|
169
|
-
default: () => [e(
|
|
170
|
-
icon:
|
|
217
|
+
default: () => [e(T, {
|
|
218
|
+
icon: ge,
|
|
171
219
|
size: "xlarge"
|
|
172
220
|
}, null)]
|
|
173
221
|
}), e("div", {
|
|
174
222
|
class: "k-form-field-wrap"
|
|
175
|
-
}, [e(
|
|
223
|
+
}, [e(u, {
|
|
176
224
|
id: "k-scheduler-editor-title",
|
|
177
225
|
name: this.ks.fields.title,
|
|
178
226
|
field: this.ks.fields.title,
|
|
179
|
-
component:
|
|
180
|
-
placeholder:
|
|
181
|
-
"aria-label":
|
|
227
|
+
component: X,
|
|
228
|
+
placeholder: r.toLanguageString(k, n[k]),
|
|
229
|
+
"aria-label": r.toLanguageString(k, n[k])
|
|
182
230
|
}, null)])]
|
|
183
|
-
}), e(
|
|
184
|
-
default: () => [e(
|
|
231
|
+
}), e(p, null, {
|
|
232
|
+
default: () => [e(g, {
|
|
185
233
|
class: "k-form-label"
|
|
186
234
|
}, {
|
|
187
|
-
default: () => [e(
|
|
188
|
-
icon:
|
|
235
|
+
default: () => [e(T, {
|
|
236
|
+
icon: pe,
|
|
189
237
|
size: "xlarge"
|
|
190
238
|
}, null)]
|
|
191
239
|
}), e("div", {
|
|
@@ -194,138 +242,143 @@ const Oe = /* @__PURE__ */ U({
|
|
|
194
242
|
class: "k-scheduler-datetime-section"
|
|
195
243
|
}, [e("div", {
|
|
196
244
|
class: "k-scheduler-edit-form-row"
|
|
197
|
-
}, [e(
|
|
245
|
+
}, [e(u, {
|
|
198
246
|
name: this.ks.fields.isAllDay,
|
|
199
|
-
component:
|
|
247
|
+
component: y,
|
|
200
248
|
onLabel: "",
|
|
201
249
|
offLabel: ""
|
|
202
|
-
}, null), e(
|
|
203
|
-
default: () => [
|
|
250
|
+
}, null), e(m, null, D(b) ? b : {
|
|
251
|
+
default: () => [b]
|
|
204
252
|
})]), e("div", {
|
|
205
253
|
class: "k-scheduler-datetime-grid"
|
|
206
254
|
}, [this.isAllDay ? e("div", {
|
|
207
255
|
class: "k-scheduler-edit-form-row"
|
|
208
|
-
}, [e(
|
|
256
|
+
}, [e(u, {
|
|
209
257
|
name: this.ks.fields.start,
|
|
210
|
-
component:
|
|
258
|
+
component: f,
|
|
259
|
+
onChange: this.handleStartChange,
|
|
211
260
|
isAllDay: this.isAllDay,
|
|
212
261
|
fieldError: this.kendoForm.errors[this.ks.fields.start],
|
|
213
|
-
ariaLabel:
|
|
262
|
+
ariaLabel: r.toLanguageString(R, n[R]),
|
|
214
263
|
timezone: this.ks.timezone
|
|
215
264
|
}, null), e("span", {
|
|
216
265
|
class: "k-scheduler-datetime-label"
|
|
217
|
-
}, [
|
|
266
|
+
}, [r.toLanguageString(S, n[S])]), e(u, {
|
|
218
267
|
name: this.ks.fields.end,
|
|
219
|
-
component:
|
|
268
|
+
component: o,
|
|
269
|
+
onChange: this.updatePreviousRange,
|
|
220
270
|
isAllDay: this.isAllDay,
|
|
221
271
|
fieldError: this.kendoForm.errors[this.ks.fields.end],
|
|
222
|
-
ariaLabel:
|
|
272
|
+
ariaLabel: r.toLanguageString(z, n[z]),
|
|
223
273
|
timezone: this.ks.timezone
|
|
224
|
-
}, null)]) : e(
|
|
274
|
+
}, null)]) : e(E, null, [e("div", {
|
|
225
275
|
class: "k-scheduler-edit-form-row"
|
|
226
|
-
}, [e(
|
|
276
|
+
}, [e(u, {
|
|
227
277
|
name: this.ks.fields.start,
|
|
228
|
-
component:
|
|
278
|
+
component: f,
|
|
279
|
+
onChange: this.handleStartChange,
|
|
229
280
|
isAllDay: this.isAllDay,
|
|
230
|
-
connector:
|
|
281
|
+
connector: r.toLanguageString(B, n[B]),
|
|
231
282
|
fieldError: this.kendoForm.errors[this.ks.fields.start],
|
|
232
|
-
ariaLabel:
|
|
233
|
-
timeAriaLabel:
|
|
283
|
+
ariaLabel: r.toLanguageString(R, n[R]),
|
|
284
|
+
timeAriaLabel: r.toLanguageString(O, n[O]),
|
|
234
285
|
timezone: this.ks.timezone
|
|
235
|
-
}, null)]), !this.showTimezones && e(
|
|
286
|
+
}, null)]), !this.showTimezones && e(h, {
|
|
236
287
|
class: "k-col-span-2",
|
|
237
288
|
fillMode: "flat",
|
|
238
289
|
themeColor: "primary",
|
|
239
|
-
title:
|
|
290
|
+
title: r.toLanguageString(G, n[G]),
|
|
240
291
|
onClick: this.handleTimezoneToggle,
|
|
241
|
-
svgIcon:
|
|
242
|
-
},
|
|
292
|
+
svgIcon: I
|
|
293
|
+
}, D(t = r.toLanguageString(M, n[M])) ? t : {
|
|
243
294
|
default: () => [t]
|
|
244
|
-
}), this.showTimezones && e(
|
|
295
|
+
}), this.showTimezones && e(E, null, [e(u, {
|
|
245
296
|
name: this.ks.fields.startTimezone,
|
|
246
|
-
component:
|
|
247
|
-
dataItems:
|
|
248
|
-
value:
|
|
249
|
-
ariaLabel:
|
|
250
|
-
}, null), e(
|
|
251
|
-
title:
|
|
252
|
-
"aria-label":
|
|
297
|
+
component: a,
|
|
298
|
+
dataItems: d,
|
|
299
|
+
value: ee,
|
|
300
|
+
ariaLabel: r.toLanguageString(V, n[V])
|
|
301
|
+
}, null), e(h, {
|
|
302
|
+
title: r.toLanguageString(q, n[q]),
|
|
303
|
+
"aria-label": r.toLanguageString($, n[$]),
|
|
253
304
|
onClick: this.handleTimezoneToggle,
|
|
254
|
-
svgIcon:
|
|
305
|
+
svgIcon: I,
|
|
255
306
|
fillMode: "flat",
|
|
256
307
|
themeColor: "primary"
|
|
257
308
|
}, null)]), e("div", {
|
|
258
309
|
class: "k-scheduler-edit-form-row"
|
|
259
|
-
}, [e(
|
|
310
|
+
}, [e(u, {
|
|
260
311
|
name: this.ks.fields.end,
|
|
261
|
-
component:
|
|
312
|
+
component: o,
|
|
313
|
+
onChange: this.updatePreviousRange,
|
|
262
314
|
isAllDay: this.isAllDay,
|
|
263
|
-
connector:
|
|
315
|
+
connector: r.toLanguageString(S, n[S]),
|
|
264
316
|
fieldError: this.kendoForm.errors[this.ks.fields.end],
|
|
265
|
-
ariaLabel:
|
|
266
|
-
timeAriaLabel:
|
|
317
|
+
ariaLabel: r.toLanguageString(z, n[z]),
|
|
318
|
+
timeAriaLabel: r.toLanguageString(_, n[_]),
|
|
267
319
|
timezone: this.ks.timezone
|
|
268
|
-
}, null)]), this.showTimezones && e(
|
|
320
|
+
}, null)]), this.showTimezones && e(u, {
|
|
269
321
|
name: this.ks.fields.endTimezone,
|
|
270
|
-
component:
|
|
271
|
-
dataItems:
|
|
322
|
+
component: F,
|
|
323
|
+
dataItems: d,
|
|
272
324
|
value: this.kendoForm.valueGetter(this.ks.fields.endTimezone) || "",
|
|
273
|
-
ariaLabel:
|
|
325
|
+
ariaLabel: r.toLanguageString(N, n[N])
|
|
274
326
|
}, null)])]), this.showRecurrenceButton && e("div", {
|
|
275
327
|
class: "k-scheduler-edit-form-row"
|
|
276
|
-
}, [e(
|
|
328
|
+
}, [e(h, {
|
|
277
329
|
class: "k-scheduler-recurrence-button",
|
|
278
330
|
type: "button",
|
|
279
331
|
fillMode: "flat",
|
|
280
332
|
themeColor: "primary",
|
|
281
|
-
svgIcon:
|
|
282
|
-
onClick: this.handleMakeRecurringClick
|
|
333
|
+
svgIcon: Te,
|
|
334
|
+
onClick: this.handleMakeRecurringClick,
|
|
335
|
+
"aria-describedby": C ? this.recurrenceSummaryId : void 0
|
|
283
336
|
}, {
|
|
284
|
-
default: () => [this.
|
|
285
|
-
})])])])]
|
|
286
|
-
}), e(
|
|
287
|
-
default: () => [e(
|
|
337
|
+
default: () => [this.recurrenceButtonText]
|
|
338
|
+
}), C && Le(this.recurrenceSummaryText, this.renderRecurrenceSummaryTemplate(), this.recurrenceSummaryId)])])])]
|
|
339
|
+
}), e(p, null, {
|
|
340
|
+
default: () => [e(g, {
|
|
288
341
|
class: "k-form-label"
|
|
289
342
|
}, {
|
|
290
|
-
default: () => [e(
|
|
291
|
-
icon:
|
|
343
|
+
default: () => [e(T, {
|
|
344
|
+
icon: ke,
|
|
292
345
|
size: "xlarge"
|
|
293
346
|
}, null)]
|
|
294
347
|
}), e("div", {
|
|
295
348
|
class: "k-form-field-wrap"
|
|
296
|
-
}, [e(
|
|
297
|
-
component:
|
|
349
|
+
}, [e(u, {
|
|
350
|
+
component: J,
|
|
298
351
|
name: this.ks.fields.description,
|
|
299
352
|
id: "k-event-description",
|
|
300
353
|
resizable: "vertical",
|
|
301
|
-
placeholder:
|
|
302
|
-
"aria-label":
|
|
354
|
+
placeholder: r.toLanguageString(v, n[v]),
|
|
355
|
+
"aria-label": r.toLanguageString(v, n[v])
|
|
303
356
|
}, null)])]
|
|
304
|
-
}), (this.ks.props.resources || []).map((
|
|
305
|
-
key:
|
|
357
|
+
}), (this.ks.props.resources || []).map((s) => e(p, {
|
|
358
|
+
key: s.field
|
|
306
359
|
}, {
|
|
307
|
-
default: () => [
|
|
360
|
+
default: () => [s.svgIcon && e(g, {
|
|
308
361
|
class: "k-form-label"
|
|
309
362
|
}, {
|
|
310
|
-
default: () => [e(
|
|
311
|
-
icon:
|
|
363
|
+
default: () => [e(T, {
|
|
364
|
+
icon: s.svgIcon,
|
|
312
365
|
size: "xlarge"
|
|
313
366
|
}, null)]
|
|
314
367
|
}), e("div", {
|
|
315
368
|
class: "k-form-field-wrap"
|
|
316
|
-
}, [e(
|
|
317
|
-
name:
|
|
318
|
-
component:
|
|
319
|
-
resource:
|
|
320
|
-
multiple:
|
|
321
|
-
dataItems:
|
|
322
|
-
textField:
|
|
323
|
-
valueField:
|
|
324
|
-
colorField:
|
|
325
|
-
ariaLabel:
|
|
369
|
+
}, [e(u, {
|
|
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
|
|
326
379
|
}, null)])]
|
|
327
|
-
})),
|
|
328
|
-
}), this.showRecurrenceDialog && e(
|
|
380
|
+
})), l]
|
|
381
|
+
}), this.showRecurrenceDialog && e(be, {
|
|
329
382
|
value: this.recurrenceRule,
|
|
330
383
|
start: this.start,
|
|
331
384
|
timezone: this.ks.timezone || "",
|
|
@@ -334,33 +387,35 @@ const Oe = /* @__PURE__ */ U({
|
|
|
334
387
|
onRemoveRecurrence: this.handleRemoveRecurrenceClick,
|
|
335
388
|
recurrenceSummaryTemplate: this.recurrenceSummaryTemplate,
|
|
336
389
|
recurrenceEditor: this.recurrenceEditor
|
|
337
|
-
}, null), this.showRemoveRecurrenceDialog && e(
|
|
390
|
+
}, null), this.showRemoveRecurrenceDialog && e(Ee, {
|
|
338
391
|
onConfirm: this.handleRemoveRecurrenceConfirm,
|
|
339
392
|
onCancel: this.handleRemoveRecurrenceCancel
|
|
340
|
-
}, null), this.showTimezoneResetDialog && e(
|
|
341
|
-
title:
|
|
393
|
+
}, null), this.showTimezoneResetDialog && e(Re, {
|
|
394
|
+
title: r.toLanguageString(P, n[P]),
|
|
342
395
|
onClose: this.handleTimezoneResetClose
|
|
343
396
|
}, {
|
|
344
|
-
default: () => [
|
|
345
|
-
default: () => [e(
|
|
397
|
+
default: () => [r.toLanguageString(Z, n[Z]), e(Se, null, {
|
|
398
|
+
default: () => [e(h, {
|
|
346
399
|
onClick: this.handleTimezoneResetClose
|
|
347
|
-
},
|
|
348
|
-
default: () => [
|
|
349
|
-
}), e(
|
|
400
|
+
}, D(i = r.toLanguageString(K, n[K])) ? i : {
|
|
401
|
+
default: () => [i]
|
|
402
|
+
}), e(h, {
|
|
350
403
|
themeColor: "primary",
|
|
351
404
|
onClick: this.handleTimezoneResetConfirm
|
|
352
|
-
},
|
|
353
|
-
default: () => [
|
|
405
|
+
}, D(c = r.toLanguageString(W, n[W])) ? c : {
|
|
406
|
+
default: () => [c]
|
|
354
407
|
})]
|
|
355
408
|
})]
|
|
356
409
|
})]);
|
|
357
410
|
},
|
|
358
411
|
methods: {
|
|
359
|
-
|
|
360
|
-
const t = this.
|
|
361
|
-
return t ? e(t, {
|
|
362
|
-
recurrenceRule: this.recurrenceRule
|
|
363
|
-
|
|
412
|
+
renderRecurrenceSummaryTemplate() {
|
|
413
|
+
const t = this.recurrenceSummaryTemplate;
|
|
414
|
+
return !t || !this.recurrenceRule ? null : e(t, {
|
|
415
|
+
recurrenceRule: this.recurrenceRule,
|
|
416
|
+
text: this.recurrenceSummaryText,
|
|
417
|
+
parsedRule: this.parsedRecurrenceRule
|
|
418
|
+
}, null);
|
|
364
419
|
},
|
|
365
420
|
handleTimezoneToggle(t) {
|
|
366
421
|
t.preventDefault(), this.showTimezones ? this.showTimezoneResetDialog = !0 : (this.updateFormField(this.ks.fields.startTimezone, null), this.updateFormField(this.ks.fields.endTimezone, null), this.showTimezones = !0);
|
|
@@ -389,29 +444,29 @@ const Oe = /* @__PURE__ */ U({
|
|
|
389
444
|
handleRemoveRecurrenceCancel() {
|
|
390
445
|
this.showRemoveRecurrenceDialog = !1;
|
|
391
446
|
},
|
|
392
|
-
updateFormField(t,
|
|
447
|
+
updateFormField(t, i) {
|
|
393
448
|
this.kendoForm.onChange(t, {
|
|
394
|
-
value:
|
|
449
|
+
value: i
|
|
395
450
|
}), this.$emit("change", t, {
|
|
396
|
-
value:
|
|
451
|
+
value: i
|
|
397
452
|
});
|
|
398
453
|
},
|
|
399
454
|
requiredValidator(t) {
|
|
400
455
|
return t ? void 0 : this.requiredValidationMessage;
|
|
401
456
|
},
|
|
402
|
-
startTimezoneValidator(t,
|
|
403
|
-
return this.showTimezones ? this.requiredValidator(
|
|
457
|
+
startTimezoneValidator(t, i) {
|
|
458
|
+
return this.showTimezones ? this.requiredValidator(i(this.ks.fields.startTimezone)) : void 0;
|
|
404
459
|
},
|
|
405
|
-
endTimezoneValidator(t,
|
|
406
|
-
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;
|
|
407
462
|
}
|
|
408
463
|
},
|
|
409
464
|
watch: {
|
|
410
|
-
startTimezone(t,
|
|
411
|
-
this.showTimezones && t && t !==
|
|
465
|
+
startTimezone(t, i) {
|
|
466
|
+
this.showTimezones && t && t !== i && this.updateFormField(this.ks.fields.endTimezone, t);
|
|
412
467
|
}
|
|
413
468
|
}
|
|
414
469
|
});
|
|
415
470
|
export {
|
|
416
|
-
|
|
471
|
+
Qe as SchedulerFormEditor
|
|
417
472
|
};
|
|
@@ -11,7 +11,7 @@ import { DropDownListChangeEvent } from '@progress/kendo-vue-dropdowns';
|
|
|
11
11
|
import { DatePickerChangeEvent } from '@progress/kendo-vue-dateinputs';
|
|
12
12
|
import { ZonedDate } from '@progress/kendo-date-math';
|
|
13
13
|
import { RecurrenceRule } from '@progress/kendo-recurrence';
|
|
14
|
-
import { PropType } from 'vue';
|
|
14
|
+
import { PropType, VNode } from 'vue';
|
|
15
15
|
import { Frequency } from '../recurrence/types/Frequency';
|
|
16
16
|
import { WeekDayEntity } from '../recurrence/types/WeekDayEntity';
|
|
17
17
|
import { MonthEntity } from '../recurrence/types/MonthEntity';
|
|
@@ -100,7 +100,7 @@ declare const SchedulerRecurrenceDialog: import('vue').DefineComponent<import('v
|
|
|
100
100
|
parsedCurrentRule(): any;
|
|
101
101
|
}, {
|
|
102
102
|
localizeMessage(baseMassage: string, removePrepend?: boolean): string;
|
|
103
|
-
renderRecurrenceSummaryTemplate():
|
|
103
|
+
renderRecurrenceSummaryTemplate(): VNode | null;
|
|
104
104
|
updateRrule(newRrule: RecurrenceRule): void;
|
|
105
105
|
handleFrequencyChange(newFreq: string): void;
|
|
106
106
|
handleIntervalChange(event: NumericTextBoxChangeEvent): void;
|