@progress/kendo-vue-scheduler 8.0.3-develop.2 → 8.0.3-develop.3
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 +1536 -0
- package/common.d.ts +13 -0
- package/components/BaseView.d.ts +74 -0
- package/components/CurrentTimeMarker.d.ts +35 -0
- package/components/CurrentTimeMarkerArrow.d.ts +33 -0
- package/components/DateHeaderCell.d.ts +70 -0
- package/components/SchedulerActionButtons.d.ts +32 -0
- package/components/SchedulerForm.d.ts +70 -0
- package/components/SchedulerOccurrenceDialog.d.ts +75 -0
- package/components/SchedulerRemoveDialog.d.ts +61 -0
- package/components/ShowMoreItemsButton.d.ts +36 -0
- package/components/TimeHeaderCell.d.ts +70 -0
- package/components/footer/SchedulerFooter.d.ts +20 -0
- package/components/footer/bussiness-hours/BusinessHours.d.ts +27 -0
- package/components/footer/bussiness-hours/BusinessHours.js +1 -1
- package/components/footer/bussiness-hours/BusinessHours.mjs +1 -1
- package/components/header/SchedulerHeader.d.ts +23 -0
- package/components/header/navigation/DatePickerToggleButton.d.ts +16 -0
- package/components/header/navigation/NavigationDatePicker.d.ts +34 -0
- package/components/header/navigation/SchedulerNavigation.d.ts +39 -0
- package/components/header/view-selector/SchedulerViewSelector.d.ts +20 -0
- package/components/header/view-selector/ViewSelectorItem.d.ts +25 -0
- package/components/header/view-selector/ViewSelectorList.d.ts +17 -0
- package/constants/main.d.ts +66 -0
- package/context/SchedulerContext.d.ts +29 -0
- package/context/SchedulerEditItemContext.d.ts +22 -0
- package/context/SchedulerEditSlotContext.d.ts +17 -0
- package/context/SchedulerEditTaskContext.d.ts +18 -0
- package/context/SchedulerResourceIteratorContext.d.ts +47 -0
- package/context/SchedulerViewContext.d.ts +25 -0
- package/context/main.d.ts +12 -0
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/editors/FilterableComboBox.d.ts +38 -0
- package/editors/ResourceEditor.d.ts +60 -0
- package/editors/SchedulerFormEditor.d.ts +3858 -0
- package/editors/ZonedDateTime.d.ts +32 -0
- package/editors/common.d.ts +19 -0
- package/hooks/main.d.ts +16 -0
- package/hooks/use-items-focus.d.ts +29 -0
- package/hooks/use-items-focus.js +1 -1
- package/hooks/use-items-focus.mjs +2 -2
- package/hooks/use-items-selection.d.ts +36 -0
- package/hooks/use-items-selection.js +1 -1
- package/hooks/use-items-selection.mjs +2 -2
- package/hooks/use-slots-focus.d.ts +39 -0
- package/hooks/use-slots-focus.js +1 -1
- package/hooks/use-slots-focus.mjs +2 -2
- package/hooks/use-slots-selection.d.ts +29 -0
- package/hooks/use-slots-selection.js +1 -1
- package/hooks/use-slots-selection.mjs +2 -2
- package/hooks/useAsyncMouseEnterLeave.d.ts +17 -0
- package/hooks/useCellSync.d.ts +16 -0
- package/hooks/useEditable.d.ts +10 -0
- package/hooks/usePropOrState.d.ts +9 -0
- package/hooks/useRowSync.d.ts +17 -0
- package/hooks/useSchedulerSlot.d.ts +13 -0
- package/hooks/useSlotExpand.d.ts +10 -0
- package/hooks/useWorkHours.d.ts +9 -0
- package/index.d.mts +45 -10991
- package/index.d.ts +45 -10991
- package/items/SchedulerEditItem.d.ts +896 -0
- package/items/SchedulerItem.d.ts +404 -0
- package/items/SchedulerItemContent.d.ts +27 -0
- package/items/SchedulerViewItem.d.ts +235 -0
- package/items/hooks/use-drag-item.d.ts +40 -0
- package/items/hooks/use-drag-item.js +1 -1
- package/items/hooks/use-drag-item.mjs +2 -2
- package/items/hooks/use-form-item.d.ts +29 -0
- package/items/hooks/use-form-item.js +1 -1
- package/items/hooks/use-form-item.mjs +2 -2
- package/items/hooks/use-remove-item.d.ts +37 -0
- package/items/hooks/use-remove-item.js +1 -1
- package/items/hooks/use-remove-item.mjs +2 -2
- package/items/hooks/use-resize-item.d.ts +45 -0
- package/items/hooks/use-resize-item.js +1 -1
- package/items/hooks/use-resize-item.mjs +2 -2
- package/items/hooks/use-series.d.ts +32 -0
- package/items/hooks/use-series.js +1 -1
- package/items/hooks/use-series.mjs +2 -2
- package/items/hooks/use-show-occurrence-dialog.d.ts +36 -0
- package/items/hooks/use-show-occurrence-dialog.js +1 -1
- package/items/hooks/use-show-occurrence-dialog.mjs +2 -2
- package/items/hooks/use-show-remove-item-dialog.d.ts +36 -0
- package/items/hooks/use-show-remove-item-dialog.js +1 -1
- package/items/hooks/use-show-remove-item-dialog.mjs +2 -2
- package/messages/main.d.ts +243 -0
- package/models/DataItem.d.ts +15 -0
- package/models/DateRange.d.ts +25 -0
- package/models/EditableProp.d.ts +36 -0
- package/models/Fields.d.ts +24 -0
- package/models/Group.d.ts +15 -0
- package/models/Item.d.ts +69 -0
- package/models/NavigationAction.d.ts +24 -0
- package/models/Occurrence.d.ts +59 -0
- package/models/Omit.d.ts +11 -0
- package/models/Orientation.d.ts +9 -0
- package/models/Range.d.ts +17 -0
- package/models/Rect.d.ts +22 -0
- package/models/Resource.d.ts +15 -0
- package/models/SchedulerGroup.d.ts +20 -0
- package/models/SchedulerHandle.d.ts +13 -0
- package/models/SchedulerModelFields.d.ts +69 -0
- package/models/SchedulerResource.d.ts +40 -0
- package/models/SchedulerView.d.ts +90 -0
- package/models/Slot.d.ts +58 -0
- package/models/events.d.ts +88 -0
- package/models/main.d.ts +24 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +19 -13
- package/recurrence/RecurrenceEditor.d.ts +82 -0
- package/recurrence/RecurrenceFrequencyEditor.d.ts +32 -0
- package/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +59 -0
- package/recurrence/common.d.ts +64 -0
- package/recurrence/types/EndRule.d.ts +11 -0
- package/recurrence/types/Frequency.d.ts +11 -0
- package/recurrence/types/FrequencyEntity.d.ts +15 -0
- package/recurrence/types/MonthEntity.d.ts +14 -0
- package/recurrence/types/OffsetPosition.d.ts +11 -0
- package/recurrence/types/OffsetPositionEntity.d.ts +14 -0
- package/recurrence/types/RepeatOnRule.d.ts +11 -0
- package/recurrence/types/WeekDayEntity.d.ts +14 -0
- package/recurrence/types/WeekDayRule.d.ts +14 -0
- package/recurrence/utils/main.d.ts +7 -0
- package/reducers/editReducer.d.ts +40 -0
- package/reducers/main.d.ts +8 -0
- package/services/itemsService.d.ts +21 -0
- package/services/main.d.ts +11 -0
- package/services/occurrenceService.d.ts +14 -0
- package/services/rangeService.d.ts +13 -0
- package/services/slotsService.d.ts +15 -0
- package/slots/SchedulerEditSlot.d.ts +148 -0
- package/slots/SchedulerSlot.d.ts +248 -0
- package/slots/SchedulerViewSlot.d.ts +134 -0
- package/tasks/SchedulerEditTask.d.ts +225 -0
- package/tasks/SchedulerTask.d.ts +139 -0
- package/tasks/SchedulerViewTask.d.ts +120 -0
- package/utils/main.d.ts +192 -0
- package/utils/main.mjs +3 -3
- package/views/agenda/AgendaView.d.ts +173 -0
- package/views/agenda/AgendaView.js +1 -1
- package/views/agenda/AgendaView.mjs +2 -2
- package/views/agenda/AgendaViewBody.d.ts +53 -0
- package/views/agenda/AgendaViewHead.d.ts +24 -0
- package/views/agenda/AgendaViewHeaderItem.d.ts +22 -0
- package/views/common/HorizontalResourceIterator.d.ts +57 -0
- package/views/common/SchedulerDrag.d.ts +459 -0
- package/views/common/SchedulerResize.d.ts +462 -0
- package/views/common/VerticalResourceIterator.d.ts +57 -0
- package/views/common/utils.d.ts +41 -0
- package/views/day/DayView.d.ts +208 -0
- package/views/day/DayViewAllDayRowContent.d.ts +19 -0
- package/views/day/DayViewAllDaySlots.d.ts +63 -0
- package/views/day/DayViewGroupRowContent.d.ts +19 -0
- package/views/day/DayViewHead.d.ts +21 -0
- package/views/day/DayViewMiddleRow.d.ts +82 -0
- package/views/day/DayViewRowContent.d.ts +29 -0
- package/views/day/DayViewVerticalRow.d.ts +43 -0
- package/views/day/DayViewVerticalSlotsRow.d.ts +94 -0
- package/views/day/DayViewVerticalSlotsRow.mjs +3 -3
- package/views/day/MultiDayView.d.ts +411 -0
- package/views/month/MonthView.d.ts +205 -0
- package/views/month/MonthView.js +1 -1
- package/views/month/MonthView.mjs +1 -1
- package/views/month/MonthViewBody.d.ts +57 -0
- package/views/month/MonthViewHead.d.ts +30 -0
- package/views/time/MultiDayTimelineView.d.ts +382 -0
- package/views/time/TimelineView.d.ts +233 -0
- package/views/time/TimelineViewAllEventsRowContent.d.ts +13 -0
- package/views/time/TimelineViewBody.d.ts +66 -0
- package/views/time/TimelineViewBody.mjs +3 -3
- package/views/time/TimelineViewRowContent.d.ts +13 -0
- package/views/week/WeekView.d.ts +270 -0
- package/views/week/WeekView.mjs +1 -1
- package/views/week/WorkWeekView.d.ts +141 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DataItem } from '../../models/main';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the available `action` types for the `SchedulerItemDragItemAction` objects.
|
|
11
|
+
*
|
|
12
|
+
* The available types are:
|
|
13
|
+
* - `DRAG_ITEM_SET'`
|
|
14
|
+
* - `DRAG_ITEM_START'`
|
|
15
|
+
* - `DRAG_ITEM_DRAG'`
|
|
16
|
+
* - `DRAG_ITEM_COMPLETE'`
|
|
17
|
+
* - `DRAG_ITEM_COMPLETE_OCCURRENCE'`
|
|
18
|
+
* - `DRAG_ITEM_COMPLETE_SERIES'`
|
|
19
|
+
* - `DRAG_ITEM_RESET'`
|
|
20
|
+
* - `DRAG_ITEM_DRAG_SELECTED`
|
|
21
|
+
*/
|
|
22
|
+
export declare enum DRAG_ITEM_ACTION {
|
|
23
|
+
set = "DRAG_ITEM_SET",
|
|
24
|
+
start = "DRAG_ITEM_START",
|
|
25
|
+
drag = "DRAG_ITEM_DRAG",
|
|
26
|
+
complete = "DRAG_ITEM_COMPLETE",
|
|
27
|
+
completeOccurrence = "DRAG_ITEM_COMPLETE_OCCURRENCE",
|
|
28
|
+
completeSeries = "DRAG_ITEM_COMPLETE_SERIES",
|
|
29
|
+
reset = "DRAG_ITEM_RESET",
|
|
30
|
+
dragSelected = "DRAG_ITEM_DRAG_SELECTED"
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Represents the object passed to the `drag-item` reducer.
|
|
34
|
+
*/
|
|
35
|
+
export interface SchedulerItemDragItemAction {
|
|
36
|
+
type: DRAG_ITEM_ACTION;
|
|
37
|
+
payload?: DataItem;
|
|
38
|
+
}
|
|
39
|
+
/** @hidden */
|
|
40
|
+
export declare const useDragItem: (this: any, action: SchedulerItemDragItemAction) => void;
|
|
@@ -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 u=require("@progress/kendo-vue-common"),p=require("../../constants/main.js"),s=require("../../utils/main.js");let l=function(e){return e.set="DRAG_ITEM_SET",e.start="DRAG_ITEM_START",e.drag="DRAG_ITEM_DRAG",e.complete="DRAG_ITEM_COMPLETE",e.completeOccurrence="DRAG_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="DRAG_ITEM_COMPLETE_SERIES",e.reset="DRAG_ITEM_RESET",e.dragSelected="DRAG_ITEM_DRAG_SELECTED",e}({}),f=0,I=0,y=0,h=null;const k=function(e){const i=u.clone(this.dataItem);switch(e.type){case l.set:{this.currentDragItem=e.payload;break}case l.reset:{this.currentDragItem=null;break}case l.dragSelected:{if(Math.abs(I-e.payload.x)<10&&Math.abs(y-e.payload.y)<10)return;const t=s.slotDive(e.payload.x,e.payload.y,7);if(!t||t===h)return;const a=t.getAttribute("data-slot-start"),r=t.getAttribute("data-slot-allday")==="true";if(!this.ignoreIsAllDay&&r!==this.isAllDay)return;const n=new Date(s.getField(i,this.ks.fields.start)),d=Number(a)-n.getTime(),b=this.bv.selectedItems.map(o=>{if(!o)return null;const m=u.clone(o.props.dataItem),D=new Date(o.props.start.getTime()+d),g=new Date(o.props.end.getTime()+d);return s.setField(m,this.ks.fields.start,D),s.setField(m,this.ks.fields.end,g),m}).filter(Boolean);h=t,this.currentDragItem=[...b];break}case l.start:{const t=e.payload.x,a=e.payload.y;I=t,y=a;const r=s.slotDive(t,a,7);if(!r)return;const n=r.getAttribute("data-slot-start"),d=s.getField(i,this.ks.fields.start);if(n===null)return;f=Number(n)-new Date(d).getTime();break}case l.drag:{if(Math.abs(I-e.payload.x)<10&&Math.abs(y-e.payload.y)<10)return;const t=s.slotDive(e.payload.x,e.payload.y,7);if(!t||t===h)return;const a=t.getAttribute("data-slot-start"),r=t.getAttribute("data-slot-group"),n=t.getAttribute("data-slot-allday")==="true";if(!this.ignoreIsAllDay&&n!==this.isAllDay)return;const d=new Date(s.getField(i,this.ks.fields.start)),o=new Date(s.getField(i,this.ks.fields.end)).getTime()-d.getTime(),m=new Date(Number(a)-Number(f)),D=new Date(Number(a)-Number(f)+o),g=this.ks.groups.find(c=>c.index===Number(r));s.setField(i,this.ks.fields.start,m),s.setField(i,this.ks.fields.end,D),g&&this.ks.groups.length>1&&g.resources.forEach(c=>{c.multiple||s.setField(i,c.field,c[c.valueField])}),h=t,i&&(this.currentDragItem=i);break}case l.complete:{const t=this.compDragItem;this.currentDragItem=null,t&&this.$emit("dataaction",{type:p.DATA_ACTION.update,series:!1,dataItem:t});break}case l.completeOccurrence:{const t=Array.isArray(this.compDragItem)?this.compDragItem.slice():u.clone(this.compDragItem),a=this.compDragItem;this.currentDragItem=null,a&&this.$emit("dataaction",{type:p.DATA_ACTION.update,series:!1,dataItem:t});break}case l.completeSeries:{let t;if(Array.isArray(this.compDragItem))t=this.compDragItem.map(a=>{const r=u.clone(a);return s.setField(r,this.ks.fields.start,s.getField(a,this.ks.fields.start)),s.setField(r,this.ks.fields.end,s.getField(a,this.ks.fields.end)),r});else{const a=u.clone(this.compDragItem);s.setField(a,this.ks.fields.start,s.getField(this.compDragItem,this.ks.fields.start)),s.setField(a,this.ks.fields.end,s.getField(this.compDragItem,this.ks.fields.end)),t=a}this.currentDragItem=null,t&&this.$emit("dataaction",{type:p.DATA_ACTION.update,series:!0,dataItem:t});break}default:this.currentDragItem=this.compDragItem;break}this.$emit("dragitemchange",this.currentDragItem)};exports.DRAG_ITEM_ACTION=l;exports.useDragItem=k;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@progress/kendo-vue-common"),p=require("../../constants/main.js"),s=require("../../utils/main.js");let l=(function(e){return e.set="DRAG_ITEM_SET",e.start="DRAG_ITEM_START",e.drag="DRAG_ITEM_DRAG",e.complete="DRAG_ITEM_COMPLETE",e.completeOccurrence="DRAG_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="DRAG_ITEM_COMPLETE_SERIES",e.reset="DRAG_ITEM_RESET",e.dragSelected="DRAG_ITEM_DRAG_SELECTED",e})({}),f=0,I=0,y=0,h=null;const k=function(e){const i=u.clone(this.dataItem);switch(e.type){case l.set:{this.currentDragItem=e.payload;break}case l.reset:{this.currentDragItem=null;break}case l.dragSelected:{if(Math.abs(I-e.payload.x)<10&&Math.abs(y-e.payload.y)<10)return;const t=s.slotDive(e.payload.x,e.payload.y,7);if(!t||t===h)return;const a=t.getAttribute("data-slot-start"),r=t.getAttribute("data-slot-allday")==="true";if(!this.ignoreIsAllDay&&r!==this.isAllDay)return;const n=new Date(s.getField(i,this.ks.fields.start)),d=Number(a)-n.getTime(),b=this.bv.selectedItems.map(o=>{if(!o)return null;const m=u.clone(o.props.dataItem),D=new Date(o.props.start.getTime()+d),g=new Date(o.props.end.getTime()+d);return s.setField(m,this.ks.fields.start,D),s.setField(m,this.ks.fields.end,g),m}).filter(Boolean);h=t,this.currentDragItem=[...b];break}case l.start:{const t=e.payload.x,a=e.payload.y;I=t,y=a;const r=s.slotDive(t,a,7);if(!r)return;const n=r.getAttribute("data-slot-start"),d=s.getField(i,this.ks.fields.start);if(n===null)return;f=Number(n)-new Date(d).getTime();break}case l.drag:{if(Math.abs(I-e.payload.x)<10&&Math.abs(y-e.payload.y)<10)return;const t=s.slotDive(e.payload.x,e.payload.y,7);if(!t||t===h)return;const a=t.getAttribute("data-slot-start"),r=t.getAttribute("data-slot-group"),n=t.getAttribute("data-slot-allday")==="true";if(!this.ignoreIsAllDay&&n!==this.isAllDay)return;const d=new Date(s.getField(i,this.ks.fields.start)),o=new Date(s.getField(i,this.ks.fields.end)).getTime()-d.getTime(),m=new Date(Number(a)-Number(f)),D=new Date(Number(a)-Number(f)+o),g=this.ks.groups.find(c=>c.index===Number(r));s.setField(i,this.ks.fields.start,m),s.setField(i,this.ks.fields.end,D),g&&this.ks.groups.length>1&&g.resources.forEach(c=>{c.multiple||s.setField(i,c.field,c[c.valueField])}),h=t,i&&(this.currentDragItem=i);break}case l.complete:{const t=this.compDragItem;this.currentDragItem=null,t&&this.$emit("dataaction",{type:p.DATA_ACTION.update,series:!1,dataItem:t});break}case l.completeOccurrence:{const t=Array.isArray(this.compDragItem)?this.compDragItem.slice():u.clone(this.compDragItem),a=this.compDragItem;this.currentDragItem=null,a&&this.$emit("dataaction",{type:p.DATA_ACTION.update,series:!1,dataItem:t});break}case l.completeSeries:{let t;if(Array.isArray(this.compDragItem))t=this.compDragItem.map(a=>{const r=u.clone(a);return s.setField(r,this.ks.fields.start,s.getField(a,this.ks.fields.start)),s.setField(r,this.ks.fields.end,s.getField(a,this.ks.fields.end)),r});else{const a=u.clone(this.compDragItem);s.setField(a,this.ks.fields.start,s.getField(this.compDragItem,this.ks.fields.start)),s.setField(a,this.ks.fields.end,s.getField(this.compDragItem,this.ks.fields.end)),t=a}this.currentDragItem=null,t&&this.$emit("dataaction",{type:p.DATA_ACTION.update,series:!0,dataItem:t});break}default:this.currentDragItem=this.compDragItem;break}this.$emit("dragitemchange",this.currentDragItem)};exports.DRAG_ITEM_ACTION=l;exports.useDragItem=k;
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
import { clone as h } from "@progress/kendo-vue-common";
|
|
9
9
|
import { DATA_ACTION as D } from "../../constants/main.mjs";
|
|
10
10
|
import { setField as i, getField as l, slotDive as I } from "../../utils/main.mjs";
|
|
11
|
-
let n = /* @__PURE__ */ function(e) {
|
|
11
|
+
let n = /* @__PURE__ */ (function(e) {
|
|
12
12
|
return e.set = "DRAG_ITEM_SET", e.start = "DRAG_ITEM_START", e.drag = "DRAG_ITEM_DRAG", e.complete = "DRAG_ITEM_COMPLETE", e.completeOccurrence = "DRAG_ITEM_COMPLETE_OCCURRENCE", e.completeSeries = "DRAG_ITEM_COMPLETE_SERIES", e.reset = "DRAG_ITEM_RESET", e.dragSelected = "DRAG_ITEM_DRAG_SELECTED", e;
|
|
13
|
-
}({}), y = 0, b = 0, k = 0, f = null;
|
|
13
|
+
})({}), y = 0, b = 0, k = 0, f = null;
|
|
14
14
|
const R = function(e) {
|
|
15
15
|
const r = h(this.dataItem);
|
|
16
16
|
switch (e.type) {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DataItem } from '../../models/main';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare enum FORM_ITEM_ACTION {
|
|
11
|
+
set = "FORM_ITEM_SET",
|
|
12
|
+
setMaster = "FORM_ITEM_SET_MASTER",
|
|
13
|
+
reset = "FORM_ITEM_RESET",
|
|
14
|
+
complete = "FORM_ITEM_COMPLETE"
|
|
15
|
+
}
|
|
16
|
+
/** @hidden */
|
|
17
|
+
export type SchedulerItemFormItemAction = {
|
|
18
|
+
type: FORM_ITEM_ACTION;
|
|
19
|
+
payload?: DataItem;
|
|
20
|
+
};
|
|
21
|
+
/** @hidden */
|
|
22
|
+
export declare const useFormItem: (_config: {
|
|
23
|
+
series: boolean;
|
|
24
|
+
onDataaction?: any;
|
|
25
|
+
}, _state: [
|
|
26
|
+
DataItem,
|
|
27
|
+
DataItem,
|
|
28
|
+
any
|
|
29
|
+
]) => any[];
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let t=function(e){return e.set="FORM_ITEM_SET",e.setMaster="FORM_ITEM_SET_MASTER",e.reset="FORM_ITEM_RESET",e.complete="FORM_ITEM_COMPLETE",e}({});exports.FORM_ITEM_ACTION=t;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let t=(function(e){return e.set="FORM_ITEM_SET",e.setMaster="FORM_ITEM_SET_MASTER",e.reset="FORM_ITEM_RESET",e.complete="FORM_ITEM_COMPLETE",e})({});exports.FORM_ITEM_ACTION=t;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
let t = /* @__PURE__ */ function(e) {
|
|
8
|
+
let t = /* @__PURE__ */ (function(e) {
|
|
9
9
|
return e.set = "FORM_ITEM_SET", e.setMaster = "FORM_ITEM_SET_MASTER", e.reset = "FORM_ITEM_RESET", e.complete = "FORM_ITEM_COMPLETE", e;
|
|
10
|
-
}({});
|
|
10
|
+
})({});
|
|
11
11
|
export {
|
|
12
12
|
t as FORM_ITEM_ACTION
|
|
13
13
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DataItem } from '../../models/main';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the available `action` types for the `SchedulerItemRemoveItemAction` objects.
|
|
11
|
+
*
|
|
12
|
+
* The available types are:
|
|
13
|
+
* - `REMOVE_ITEM_SET`
|
|
14
|
+
* - `REMOVE_ITEM_RESET`
|
|
15
|
+
* - `REMOVE_ITEM_COMPLETE`
|
|
16
|
+
*/
|
|
17
|
+
export declare enum REMOVE_ITEM_ACTION {
|
|
18
|
+
set = "REMOVE_ITEM_SET",
|
|
19
|
+
reset = "REMOVE_ITEM_RESET",
|
|
20
|
+
complete = "REMOVE_ITEM_COMPLETE"
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Represents the object passed to the `remove-item` reducer.
|
|
24
|
+
*/
|
|
25
|
+
export type SchedulerItemRemoveItemAction = {
|
|
26
|
+
type: REMOVE_ITEM_ACTION;
|
|
27
|
+
payload?: DataItem;
|
|
28
|
+
};
|
|
29
|
+
/** @hidden */
|
|
30
|
+
export declare const useRemoveItem: (_config: {
|
|
31
|
+
series: boolean;
|
|
32
|
+
onDataaction?: any;
|
|
33
|
+
}, _state: [
|
|
34
|
+
DataItem,
|
|
35
|
+
DataItem,
|
|
36
|
+
any
|
|
37
|
+
]) => any[];
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let t=function(e){return e.set="REMOVE_ITEM_SET",e.reset="REMOVE_ITEM_RESET",e.complete="REMOVE_ITEM_COMPLETE",e}({});exports.REMOVE_ITEM_ACTION=t;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let t=(function(e){return e.set="REMOVE_ITEM_SET",e.reset="REMOVE_ITEM_RESET",e.complete="REMOVE_ITEM_COMPLETE",e})({});exports.REMOVE_ITEM_ACTION=t;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
let E = /* @__PURE__ */ function(e) {
|
|
8
|
+
let E = /* @__PURE__ */ (function(e) {
|
|
9
9
|
return e.set = "REMOVE_ITEM_SET", e.reset = "REMOVE_ITEM_RESET", e.complete = "REMOVE_ITEM_COMPLETE", e;
|
|
10
|
-
}({});
|
|
10
|
+
})({});
|
|
11
11
|
export {
|
|
12
12
|
E as REMOVE_ITEM_ACTION
|
|
13
13
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DataItem } from '../../models/main';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the available `action` types for the `SchedulerItemResizeItemAction` objects.
|
|
11
|
+
*
|
|
12
|
+
* The available types are:
|
|
13
|
+
* - `RESIZE_ITEM_SET`
|
|
14
|
+
* - `RESIZE_ITEM_START`
|
|
15
|
+
* - `RESIZE_ITEM_START_DRAG`
|
|
16
|
+
* - `RESIZE_ITEM_START_DRAG_SELECTED`
|
|
17
|
+
* - `RESIZE_ITEM_END_DRAG`
|
|
18
|
+
* - `RESIZE_ITEM_END_DRAG_SELECTED`
|
|
19
|
+
* - `RESIZE_ITEM_COMPLETE`
|
|
20
|
+
* - `RESIZE_ITEM_COMPLETE_OCCURRENCE`
|
|
21
|
+
* - `RESIZE_ITEM_COMPLETE_SERIES`
|
|
22
|
+
* - `RESIZE_ITEM_RESET`
|
|
23
|
+
*/
|
|
24
|
+
export declare enum RESIZE_ITEM_ACTION {
|
|
25
|
+
set = "RESIZE_ITEM_SET",
|
|
26
|
+
start = "RESIZE_ITEM_START",
|
|
27
|
+
startDrag = "RESIZE_ITEM_START_DRAG",
|
|
28
|
+
startDragSelected = "RESIZE_ITEM_START_DRAG_SELECTED",
|
|
29
|
+
endDrag = "RESIZE_ITEM_END_DRAG",
|
|
30
|
+
endDragSelected = "RESIZE_ITEM_END_DRAG_SELECTED",
|
|
31
|
+
complete = "RESIZE_ITEM_COMPLETE",
|
|
32
|
+
completeOccurrence = "RESIZE_ITEM_COMPLETE_OCCURRENCE",
|
|
33
|
+
completeSeries = "RESIZE_ITEM_COMPLETE_SERIES",
|
|
34
|
+
reset = "RESIZE_ITEM_RESET"
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Represents the object passed to the `resize-item` reducer.
|
|
38
|
+
*/
|
|
39
|
+
export interface SchedulerItemResizeItemAction {
|
|
40
|
+
type: RESIZE_ITEM_ACTION;
|
|
41
|
+
payload?: DataItem;
|
|
42
|
+
event?: any;
|
|
43
|
+
}
|
|
44
|
+
/** @hidden */
|
|
45
|
+
export declare const useResizeItem: (this: any, action: SchedulerItemResizeItemAction, event: any) => void;
|
|
@@ -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 c=require("@progress/kendo-vue-common"),E=require("../../constants/main.js"),t=require("../../utils/main.js");let d=function(e){return e.set="RESIZE_ITEM_SET",e.start="RESIZE_ITEM_START",e.startDrag="RESIZE_ITEM_START_DRAG",e.startDragSelected="RESIZE_ITEM_START_DRAG_SELECTED",e.endDrag="RESIZE_ITEM_END_DRAG",e.endDragSelected="RESIZE_ITEM_END_DRAG_SELECTED",e.complete="RESIZE_ITEM_COMPLETE",e.completeOccurrence="RESIZE_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="RESIZE_ITEM_COMPLETE_SERIES",e.reset="RESIZE_ITEM_RESET",e}({}),m=null;const R=function(e,f){let r=this.compResizeItem;switch(e.type){case d.set:r=e.payload;break;case d.reset:r=null;break;case d.start:{f.stopPropagation(),f.preventDefault();const n=e.payload.x,a=e.payload.y,s=t.slotDive(n,a,7);if(!s||s===m)return;const l=s.getAttribute("data-slot-start"),o=new Date(Number(l)),i=c.clone(this.dataItem);if(o>=t.getField(i,this.ks.fields.end))return;t.setField(i,this.ks.fields.start,o),m=s,r=i;break}case d.startDragSelected:{f.stopPropagation(),f.preventDefault();const n=e.payload.x,a=e.payload.y,s=c.clone(this.dataItem),l=t.slotDive(n,a,7);if(!l||l===m)return;const o=l.getAttribute("data-slot-start"),i=new Date(t.getField(s,this.ks.fields.start)),I=new Date(Number(o)).getTime()-i.getTime();let h=!1;const g=this.bv.selectedItems.map(u=>{if(!u)return null;const p=c.clone(u.props.dataItem),D=new Date(u.props.start.getTime()+I);if(D>=t.getField(p,this.ks.fields.end)){h=!0;return}return t.setField(p,this.ks.fields.start,D),p}).filter(Boolean);h||(r=[...g]);break}case d.startDrag:{const n=e.payload.x,a=e.payload.y,s=t.slotDive(n,a,7);if(!s||s===m)return;const l=s.getAttribute("data-slot-start"),o=new Date(Number(l)),i=c.clone(this.dataItem);if(o>=i.end)return;t.setField(i,this.ks.fields.start,o),m=s,r=i;break}case d.endDrag:{const n=e.payload.x,a=e.payload.y,s=t.slotDive(n,a,7);if(!s||s===m)return;const l=s.getAttribute("data-slot-end"),o=new Date(Number(l)),i=c.clone(this.dataItem);if(o<=i.start)return;t.setField(i,this.ks.fields.end,o),m=s,r=i;break}case d.endDragSelected:{f.stopPropagation(),f.preventDefault();const n=e.payload.x,a=e.payload.y,s=c.clone(this.dataItem),l=t.slotDive(n,a,7);if(!l||l===m)return;const o=l.getAttribute("data-slot-start"),i=new Date(t.getField(s,this.ks.fields.end)),I=new Date(Number(o)).getTime()-i.getTime();let h;const g=this.bv.selectedItems.map(u=>{if(!u)return null;const p=c.clone(u.props.dataItem),D=new Date(u.props.end.getTime()+I);if(D<=t.getField(p,this.ks.fields.start)){h=!0;return}return t.setField(p,this.ks.fields.end,D),p}).filter(Boolean);h||(r=[...g]);break}case d.complete:{r=null,this.compResizeItem&&this.$emit("dataaction",{type:E.DATA_ACTION.update,series:!1,dataItem:this.compResizeItem});break}case d.completeOccurrence:{r=null,this.compResizeItem&&this.$emit("dataaction",{type:E.DATA_ACTION.update,series:!1,dataItem:this.compResizeItem});break}case d.completeSeries:{r=null;let n;if(Array.isArray(this.compResizeItem))n=this.compResizeItem.map(a=>{const s=c.clone(a);return t.setField(s,this.ks.fields.start,t.getField(a,this.ks.fields.start)),t.setField(s,this.ks.fields.end,t.getField(a,this.ks.fields.end)),s});else{const a=c.clone(this.compResizeItem);t.setField(a,this.ks.fields.start,t.getField(this.compResizeItem,this.ks.fields.start)),t.setField(a,this.ks.fields.end,t.getField(this.compResizeItem,this.ks.fields.end)),n=a}n&&this.$emit("dataaction",{type:E.DATA_ACTION.update,series:!0,dataItem:n});break}default:r=null;break}this.currentResizeItem=r,this.$emit("resizeitemchange",r)};exports.RESIZE_ITEM_ACTION=d;exports.useResizeItem=R;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@progress/kendo-vue-common"),E=require("../../constants/main.js"),t=require("../../utils/main.js");let d=(function(e){return e.set="RESIZE_ITEM_SET",e.start="RESIZE_ITEM_START",e.startDrag="RESIZE_ITEM_START_DRAG",e.startDragSelected="RESIZE_ITEM_START_DRAG_SELECTED",e.endDrag="RESIZE_ITEM_END_DRAG",e.endDragSelected="RESIZE_ITEM_END_DRAG_SELECTED",e.complete="RESIZE_ITEM_COMPLETE",e.completeOccurrence="RESIZE_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="RESIZE_ITEM_COMPLETE_SERIES",e.reset="RESIZE_ITEM_RESET",e})({}),m=null;const R=function(e,f){let r=this.compResizeItem;switch(e.type){case d.set:r=e.payload;break;case d.reset:r=null;break;case d.start:{f.stopPropagation(),f.preventDefault();const n=e.payload.x,a=e.payload.y,s=t.slotDive(n,a,7);if(!s||s===m)return;const l=s.getAttribute("data-slot-start"),o=new Date(Number(l)),i=c.clone(this.dataItem);if(o>=t.getField(i,this.ks.fields.end))return;t.setField(i,this.ks.fields.start,o),m=s,r=i;break}case d.startDragSelected:{f.stopPropagation(),f.preventDefault();const n=e.payload.x,a=e.payload.y,s=c.clone(this.dataItem),l=t.slotDive(n,a,7);if(!l||l===m)return;const o=l.getAttribute("data-slot-start"),i=new Date(t.getField(s,this.ks.fields.start)),I=new Date(Number(o)).getTime()-i.getTime();let h=!1;const g=this.bv.selectedItems.map(u=>{if(!u)return null;const p=c.clone(u.props.dataItem),D=new Date(u.props.start.getTime()+I);if(D>=t.getField(p,this.ks.fields.end)){h=!0;return}return t.setField(p,this.ks.fields.start,D),p}).filter(Boolean);h||(r=[...g]);break}case d.startDrag:{const n=e.payload.x,a=e.payload.y,s=t.slotDive(n,a,7);if(!s||s===m)return;const l=s.getAttribute("data-slot-start"),o=new Date(Number(l)),i=c.clone(this.dataItem);if(o>=i.end)return;t.setField(i,this.ks.fields.start,o),m=s,r=i;break}case d.endDrag:{const n=e.payload.x,a=e.payload.y,s=t.slotDive(n,a,7);if(!s||s===m)return;const l=s.getAttribute("data-slot-end"),o=new Date(Number(l)),i=c.clone(this.dataItem);if(o<=i.start)return;t.setField(i,this.ks.fields.end,o),m=s,r=i;break}case d.endDragSelected:{f.stopPropagation(),f.preventDefault();const n=e.payload.x,a=e.payload.y,s=c.clone(this.dataItem),l=t.slotDive(n,a,7);if(!l||l===m)return;const o=l.getAttribute("data-slot-start"),i=new Date(t.getField(s,this.ks.fields.end)),I=new Date(Number(o)).getTime()-i.getTime();let h;const g=this.bv.selectedItems.map(u=>{if(!u)return null;const p=c.clone(u.props.dataItem),D=new Date(u.props.end.getTime()+I);if(D<=t.getField(p,this.ks.fields.start)){h=!0;return}return t.setField(p,this.ks.fields.end,D),p}).filter(Boolean);h||(r=[...g]);break}case d.complete:{r=null,this.compResizeItem&&this.$emit("dataaction",{type:E.DATA_ACTION.update,series:!1,dataItem:this.compResizeItem});break}case d.completeOccurrence:{r=null,this.compResizeItem&&this.$emit("dataaction",{type:E.DATA_ACTION.update,series:!1,dataItem:this.compResizeItem});break}case d.completeSeries:{r=null;let n;if(Array.isArray(this.compResizeItem))n=this.compResizeItem.map(a=>{const s=c.clone(a);return t.setField(s,this.ks.fields.start,t.getField(a,this.ks.fields.start)),t.setField(s,this.ks.fields.end,t.getField(a,this.ks.fields.end)),s});else{const a=c.clone(this.compResizeItem);t.setField(a,this.ks.fields.start,t.getField(this.compResizeItem,this.ks.fields.start)),t.setField(a,this.ks.fields.end,t.getField(this.compResizeItem,this.ks.fields.end)),n=a}n&&this.$emit("dataaction",{type:E.DATA_ACTION.update,series:!0,dataItem:n});break}default:r=null;break}this.currentResizeItem=r,this.$emit("resizeitemchange",r)};exports.RESIZE_ITEM_ACTION=d;exports.useResizeItem=R;
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
import { clone as c } from "@progress/kendo-vue-common";
|
|
9
9
|
import { DATA_ACTION as S } from "../../constants/main.mjs";
|
|
10
10
|
import { setField as d, getField as m, slotDive as E } from "../../utils/main.mjs";
|
|
11
|
-
let o = /* @__PURE__ */ function(t) {
|
|
11
|
+
let o = /* @__PURE__ */ (function(t) {
|
|
12
12
|
return t.set = "RESIZE_ITEM_SET", t.start = "RESIZE_ITEM_START", t.startDrag = "RESIZE_ITEM_START_DRAG", t.startDragSelected = "RESIZE_ITEM_START_DRAG_SELECTED", t.endDrag = "RESIZE_ITEM_END_DRAG", t.endDragSelected = "RESIZE_ITEM_END_DRAG_SELECTED", t.complete = "RESIZE_ITEM_COMPLETE", t.completeOccurrence = "RESIZE_ITEM_COMPLETE_OCCURRENCE", t.completeSeries = "RESIZE_ITEM_COMPLETE_SERIES", t.reset = "RESIZE_ITEM_RESET", t;
|
|
13
|
-
}({}), p = null;
|
|
13
|
+
})({}), p = null;
|
|
14
14
|
const z = function(t, h) {
|
|
15
15
|
let n = this.compResizeItem;
|
|
16
16
|
switch (t.type) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DataItem } from '../../models/main';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the available `action` types for the `SchedulerItemSeriesAction` objects.
|
|
11
|
+
*
|
|
12
|
+
* The available actions are:
|
|
13
|
+
* - `SERIES_RESET`
|
|
14
|
+
* - `SERIES_SET`
|
|
15
|
+
* - `SERIES_TOGGLE`
|
|
16
|
+
*/
|
|
17
|
+
export declare enum SERIES_ACTION {
|
|
18
|
+
reset = "SERIES_RESET",
|
|
19
|
+
set = "SERIES_SET",
|
|
20
|
+
toggle = "SERIES_TOGGLE"
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Represents the object passed to the `series` reducer.
|
|
24
|
+
*/
|
|
25
|
+
export type SchedulerItemSeriesAction = {
|
|
26
|
+
type: SERIES_ACTION;
|
|
27
|
+
payload?: boolean;
|
|
28
|
+
};
|
|
29
|
+
/** @hidden */
|
|
30
|
+
export declare const seriesReducer: (state: any, action: SchedulerItemSeriesAction) => any;
|
|
31
|
+
/** @hidden */
|
|
32
|
+
export declare const useSeries: (_defaultProp: DataItem, _prop?: DataItem, _callback?: any) => any[];
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let r=function(e){return e.reset="SERIES_RESET",e.set="SERIES_SET",e.toggle="SERIES_TOGGLE",e}({});const s=(e,t)=>{switch(t.type){case r.reset:return null;case r.set:return t.payload;case r.toggle:return!e;default:return e}};exports.SERIES_ACTION=r;exports.seriesReducer=s;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let r=(function(e){return e.reset="SERIES_RESET",e.set="SERIES_SET",e.toggle="SERIES_TOGGLE",e})({});const s=(e,t)=>{switch(t.type){case r.reset:return null;case r.set:return t.payload;case r.toggle:return!e;default:return e}};exports.SERIES_ACTION=r;exports.seriesReducer=s;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
let r = /* @__PURE__ */ function(e) {
|
|
8
|
+
let r = /* @__PURE__ */ (function(e) {
|
|
9
9
|
return e.reset = "SERIES_RESET", e.set = "SERIES_SET", e.toggle = "SERIES_TOGGLE", e;
|
|
10
|
-
}({});
|
|
10
|
+
})({});
|
|
11
11
|
const s = (e, t) => {
|
|
12
12
|
switch (t.type) {
|
|
13
13
|
case r.reset:
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DataItem } from '../../models/main';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the available `action` types for the `SchedulerItemShowOccurrenceDialogAction` objects.
|
|
11
|
+
*
|
|
12
|
+
* The available actions are:
|
|
13
|
+
* - `SHOW_OCCURRENCE_DIALOG_SET`
|
|
14
|
+
* - `SHOW_OCCURRENCE_DIALOG_OPEN`
|
|
15
|
+
* - `SHOW_OCCURRENCE_DIALOG_CLOSE`
|
|
16
|
+
* - `SHOW_OCCURRENCE_DIALOG_RESET`
|
|
17
|
+
* - `SHOW_OCCURRENCE_DIALOG_TOGGLE`
|
|
18
|
+
*/
|
|
19
|
+
export declare enum SHOW_OCCURRENCE_DIALOG_ACTION {
|
|
20
|
+
set = "SHOW_OCCURRENCE_DIALOG_SET",
|
|
21
|
+
open = "SHOW_OCCURRENCE_DIALOG_OPEN",
|
|
22
|
+
close = "SHOW_OCCURRENCE_DIALOG_CLOSE",
|
|
23
|
+
reset = "SHOW_OCCURRENCE_DIALOG_RESET",
|
|
24
|
+
toggle = "SHOW_OCCURRENCE_DIALOG_TOGGLE"
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Represents the object passed to the `show-occurrence-dialog` reducer.
|
|
28
|
+
*/
|
|
29
|
+
export type SchedulerItemShowOccurrenceDialogAction = {
|
|
30
|
+
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
31
|
+
payload?: boolean;
|
|
32
|
+
};
|
|
33
|
+
/** @hidden */
|
|
34
|
+
export declare const showOccurrenceDialogReducer: (state: any, action: SchedulerItemShowOccurrenceDialogAction) => any;
|
|
35
|
+
/** @hidden */
|
|
36
|
+
export declare const useShowOccurrenceDialog: (_defaultProp: DataItem, _prop?: DataItem, _callback?: any) => any[];
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let r=function(e){return e.set="SHOW_OCCURRENCE_DIALOG_SET",e.open="SHOW_OCCURRENCE_DIALOG_OPEN",e.close="SHOW_OCCURRENCE_DIALOG_CLOSE",e.reset="SHOW_OCCURRENCE_DIALOG_RESET",e.toggle="SHOW_OCCURRENCE_DIALOG_TOGGLE",e}({});const c=(e,t)=>{switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}};exports.SHOW_OCCURRENCE_DIALOG_ACTION=r;exports.showOccurrenceDialogReducer=c;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let r=(function(e){return e.set="SHOW_OCCURRENCE_DIALOG_SET",e.open="SHOW_OCCURRENCE_DIALOG_OPEN",e.close="SHOW_OCCURRENCE_DIALOG_CLOSE",e.reset="SHOW_OCCURRENCE_DIALOG_RESET",e.toggle="SHOW_OCCURRENCE_DIALOG_TOGGLE",e})({});const c=(e,t)=>{switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}};exports.SHOW_OCCURRENCE_DIALOG_ACTION=r;exports.showOccurrenceDialogReducer=c;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
let r = /* @__PURE__ */ function(e) {
|
|
8
|
+
let r = /* @__PURE__ */ (function(e) {
|
|
9
9
|
return e.set = "SHOW_OCCURRENCE_DIALOG_SET", e.open = "SHOW_OCCURRENCE_DIALOG_OPEN", e.close = "SHOW_OCCURRENCE_DIALOG_CLOSE", e.reset = "SHOW_OCCURRENCE_DIALOG_RESET", e.toggle = "SHOW_OCCURRENCE_DIALOG_TOGGLE", e;
|
|
10
|
-
}({});
|
|
10
|
+
})({});
|
|
11
11
|
const s = (e, t) => {
|
|
12
12
|
switch (t.type) {
|
|
13
13
|
case r.reset:
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DataItem } from '../../models/main';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the available `action` types for the `SchedulerItemShowRemoveDialogAction` objects.
|
|
11
|
+
*
|
|
12
|
+
* The available actions are:
|
|
13
|
+
* - `SHOW_REMOVE_DIALOG_SET`
|
|
14
|
+
* - `SHOW_REMOVE_DIALOG_OPEN`
|
|
15
|
+
* - `SHOW_REMOVE_DIALOG_CLOSE`
|
|
16
|
+
* - `SHOW_REMOVE_DIALOG_RESET`
|
|
17
|
+
* - `SHOW_REMOVE_DIALOG_TOGGLE`
|
|
18
|
+
*/
|
|
19
|
+
export declare enum SHOW_REMOVE_DIALOG_ACTION {
|
|
20
|
+
set = "SHOW_REMOVE_DIALOG_SET",
|
|
21
|
+
open = "SHOW_REMOVE_DIALOG_OPEN",
|
|
22
|
+
close = "SHOW_REMOVE_DIALOG_CLOSE",
|
|
23
|
+
reset = "SHOW_REMOVE_DIALOG_RESET",
|
|
24
|
+
toggle = "SHOW_REMOVE_DIALOG_TOGGLE"
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Represents the object passed to the `show-remove-dialog` reducer.
|
|
28
|
+
*/
|
|
29
|
+
export type SchedulerItemShowRemoveDialogAction = {
|
|
30
|
+
type: SHOW_REMOVE_DIALOG_ACTION;
|
|
31
|
+
payload?: boolean;
|
|
32
|
+
};
|
|
33
|
+
/** @hidden */
|
|
34
|
+
export declare const showRemoveDialogReducer: (state: any, action: SchedulerItemShowRemoveDialogAction) => any;
|
|
35
|
+
/** @hidden */
|
|
36
|
+
export declare const useShowRemoveDialog: (_defaultProp: DataItem, _prop?: DataItem, _callback?: any) => any[];
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let r=function(e){return e.set="SHOW_REMOVE_DIALOG_SET",e.open="SHOW_REMOVE_DIALOG_OPEN",e.close="SHOW_REMOVE_DIALOG_CLOSE",e.reset="SHOW_REMOVE_DIALOG_RESET",e.toggle="SHOW_REMOVE_DIALOG_TOGGLE",e}({});const o=(e,t)=>{switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}};exports.SHOW_REMOVE_DIALOG_ACTION=r;exports.showRemoveDialogReducer=o;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let r=(function(e){return e.set="SHOW_REMOVE_DIALOG_SET",e.open="SHOW_REMOVE_DIALOG_OPEN",e.close="SHOW_REMOVE_DIALOG_CLOSE",e.reset="SHOW_REMOVE_DIALOG_RESET",e.toggle="SHOW_REMOVE_DIALOG_TOGGLE",e})({});const o=(e,t)=>{switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}};exports.SHOW_REMOVE_DIALOG_ACTION=r;exports.showRemoveDialogReducer=o;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
let r = /* @__PURE__ */ function(e) {
|
|
8
|
+
let r = /* @__PURE__ */ (function(e) {
|
|
9
9
|
return e.set = "SHOW_REMOVE_DIALOG_SET", e.open = "SHOW_REMOVE_DIALOG_OPEN", e.close = "SHOW_REMOVE_DIALOG_CLOSE", e.reset = "SHOW_REMOVE_DIALOG_RESET", e.toggle = "SHOW_REMOVE_DIALOG_TOGGLE", e;
|
|
10
|
-
}({});
|
|
10
|
+
})({});
|
|
11
11
|
const s = (e, t) => {
|
|
12
12
|
switch (t.type) {
|
|
13
13
|
case r.reset:
|