// WOx TODO:
// SkySchedulerDateCell
// LSWSchedulerDateTitle
// used components.cfg config key:
// colors_titleColor
// colors_contentText
// colors_sundayHeaderCell (titleColor)
// colors_saturdayHeaderCell (titleColor)
// colors_weekdayHeaderCell (titleColor)
// colors_selectedContentCell (contentColor)
// colors_contentCell (contentColor)
DragScript: WEDragScript {} //
DropScript: WEDropScript {} //
Font: SkyConfigFont {} // OGo:font
// new weekOverview
TitleMode: WEWeekOverviewTitleMode {}; // WOx: var:week-title
InfoMode: WEWeekOverviewInfoMode {}; // WOx: var:week-info
PMInfoMode: WEWeekOverviewPMInfoMode {}; // WOx: var:week-pminfo
ContentMode: WEWeekOverviewContentMode {}; // WOx: var:week
WeekOverview: WEWeekOverview { // WOx: var:week-overview
list = cacheDataSource.fetchObjects;
item = appointment;
weekStart = weekStart;
dayIndex = dayIndex;
isInfoItem = isAllDayApt;
infoItems = allDayApts;
titleColor = titleColor; // "#FFDAAA";
contentColor = contentColor; // "#FAE8B8";
}
Appointment: SkySchedulerDateCell { // WOx: no mapping for this dynamic element
appointment = appointment;
weekday = currentDate;
participants = appointment.participants;
isClickable = appointmentViewAccessAllowed;
isPrivate = isPrivateAppointment;
action = viewAppointment;
privateLabel = labels.private;
icon = dateCellIcon;
aptTypeLabel = aptTypeLabel;
}
DayTitle: LSWSchedulerDateTitle {
title = labels.$currentDate;
newLabel = labels.new;
highlight = currentDate.isToday;
date = currentDate;
disableNew = isResCategorySelected;
directActionName = dayDirectActionName
}
HolidayInfo: SkyRichString {
value = holidayInfo;
size = "-2";
isBold = YES;
}
HasDayInfoCond: WOConditional { condition = hasCurrentDayInfo; }
HasHolidayInfo: WOConditional { condition = hasHolidays; }
HasAllDayApts: WOConditional { condition = hasAllDayApts; }
AllDayApts: WORepetition {
list = allDayApts;
item = appointment;
}
UseDACond: WOConditional {
condition = useDirectActionForView;
}
UseDACondElse: WOConditional {
condition = useDirectActionForView;
negate = YES;
}
ViewAptLink: WOHyperlink {
directActionName = "viewApt";
?oid = appointmentOID;
?entity = appointmentEntity;
?tz = appointment.startDate.timeZone.abbreviation;
?ctx = context.contextID;
title = shortTextForApt;
class = "skydatecell_link";
}
ViewAptAction: WOHyperlink {
action = viewAppointment;
title = shortTextForApt;
class = "skydatecell_link";
}
AptInfoIcon: WOImage {
filename = dateCellIcon;
border = "0";
valign = "top";
alt = shortTextForApt;
title = shortTextForApt;
}
AptTitleSpan: WOGenericContainer {
elementName = "span";
class = aptTitleCellClass;
}
AptTitle: WOString {
value = appointment;
formatter = aptTitleFormatter;
//color = config.colors_titleColor;
}
AptContentText: SkyRichString {
value = appointment;
formatter = aptContentFormatter;
color = config.colors_contentText;
}
IsListOnlyApt: WOConditional {
condition = appointment.permissions;
value = "l";
}
IsViewableApt: WOConditional {
condition = appointment.permissions;
value = "l";
negate = YES;
}
ShowListOnlyApts: WOConditional {
// Note: this will still show a separate when there are any apts
condition = session.userDefaults.scheduler_hide_listonly_appointments;
negate = YES;
}
DropZone: WEDropContainer {
tags = ( appointment );
action = droppedAppointment;
droppedObject = appointment;
elementName = "td";
isAttached = YES;
VALIGN = "top";
}
DragZone: WEDragContainer {
tag = "appointment";
object = appointment;
isDraggable = isAppointmentDraggable;
}