DinarteCoelho.locales["es"] = {
closeText: "Cerrar",
prevText: "Anterior",
nextText: "Siguiente",
monthNames: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"],
monthNamesShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
dayNames: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"],
dayNamesShort: ["Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"],
dayNamesMin: ["D", "L", "M", "X", "J", "V", "S"],
weekHeader: "Semana",
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: "",
timeOnlyTitle: "Sólo hora",
timeText: "Tiempo",
hourText: "Hora",
minuteText: "Minuto",
secondText: "Segundo",
millisecondText: "Milisegundo",
currentText: "Fecha actual",
ampm: false,
month: "Mes",
week: "Semana",
day: "Día",
allDayText: "Todo el día",
today: "Hoy",
clear: "Claro"
};
DinarteCoelho.locales["de"] = {
closeText: "Schließen",
prevText: "Zurück",
nextText: "Weiter",
monthNames: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
monthNamesShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
dayNames: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
dayNamesShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"],
dayNamesMin: ["S", "M", "D", "M ", "D", "F ", "S"],
weekHeader: "Woche",
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: "",
timeOnlyTitle: "Nur Zeit",
timeText: "Zeit",
hourText: "Stunde",
minuteText: "Minute",
secondText: "Sekunde",
millisecondText: "Millisekunde",
currentText: "Aktuelles Datum",
ampm: false,
month: "Monat",
week: "Woche",
day: "Tag",
allDayText: "Ganzer Tag",
today: "Heute",
clear: "Löschen"
};
function dateTemplateFunc(date) {
return "<span style="background-color:" + ((date.day < 21 && date.day > 10) ? "#81C784" : "inherit") + ";border-radius:50%;width: 2.5rem;height: 2.5rem;line-height: 2.5rem;display: flex;align-items: center;justify-content: center;">" + date.day + "</span>";
};
dc.cw("Growl", "widget_msgs", {
id: "msgs",
sticky: false,
life: 6000,
escape: true,
keepAlive: false,
msgs: []
});
dc.cw("DatePicker", "widget_basic", {
id: "basic",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_popupConvertDateTime", {
id: "popupConvertDateTime",
inline: false,
userLocale: "pt_BR",
dateFormat: "dd\/mm\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_multiselect", {
id: "multiselect",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "multiple",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_range", {
id: "range",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "range",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_navigator", {
id: "navigator",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
minDate: "10\/5\/2023",
selectionMode: "single",
showOnFocus: true,
monthNavigator: true,
yearNavigator: true,
showWeek: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_month", {
id: "month",
inline: false,
userLocale: "pt_BR",
dateFormat: "mm\/yy",
yearRange: "2000:2030",
selectionMode: "single",
showOnFocus: true,
yearNavigator: true,
view: "month",
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_yearMonth", {
id: "yearMonth",
inline: false,
userLocale: "pt_BR",
dateFormat: "mm\/yy",
yearRange: "2000:2030",
selectionMode: "single",
showOnFocus: true,
yearNavigator: true,
view: "month",
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_touch", {
id: "touch",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
touchUI: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_mask", {
id: "mask",
inline: false,
userLocale: "pt_BR",
dateFormat: "dd\/mm\/yy",
selectionMode: "single",
showOnFocus: true,
showButtonBar: true,
appendTo: "@(body)",
timeInput: false,
mask: "dd\/mm\/yyyy"
});
dc.cw("DatePicker", "widget_dateTemplate", {
id: "dateTemplate",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
dateTemplate: dateTemplateFunc
});
dc.cw("DatePicker", "widget_disabledDD", {
id: "disabledDD",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
disabledDays: [0, 3],
disabledDates: ["9\/5\/2023", "10\/5\/2023", "11\/5\/2023", "12\/5\/2023", "13\/5\/2023", "14\/5\/2023"]
});
dc.cw("DatePicker", "widget_button", {
id: "button",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
showIcon: true,
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_event", {
id: "event",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
behaviors: {
dateSelect: function(ext, event) {
dc.ab({
s: "event",
e: "dateSelect",
f: "form",
p: "event",
u: "msgs"
}, ext);
}
}
});
dc.cw("DatePicker", "widget_spanish", {
id: "spanish",
inline: false,
userLocale: "es",
dateFormat: "yy\-M\-dd",
selectionMode: "single",
showOnFocus: true,
monthNavigator: true,
appendTo: "@(body)",
fractionSeparator: ",",
timeInput: false
});
dc.cw("DatePicker", "german", {
id: "german",
defaultDate: "27.07.2019",
inline: false,
userLocale: "de",
dateFormat: "dd.mm.yy",
selectionMode: "single",
showOnFocus: true,
monthNavigator: true,
appendTo: "@(body)",
fractionSeparator: ",",
timeInput: false
});
dc.cw("DatePicker", "widget_buttonbar", {
id: "buttonbar",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
showButtonBar: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_minmax", {
id: "minmax",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
minDate: "9\/5\/2022",
maxDate: "9\/5\/2024",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_multi", {
id: "multi",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
monthNavigator: true,
yearNavigator: true,
numberOfMonths: 3,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_inline", {
id: "inline",
inline: true,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_time1", {
id: "time1",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
showTime: true,
behaviors: {
dateSelect: function(ext, event) {
dc.ab({
s: "time1",
e: "dateSelect",
f: "form",
p: "time1",
u: "msgs"
}, ext);
}
}
});
dc.cw("DatePicker", "widget_time3", {
id: "time3",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
minDate: "2\/5\/2023 21:37",
maxDate: "16\/5\/2023 21:37",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
showTime: true
});
dc.cw("DatePicker", "widget_time4", {
id: "time4",
defaultDate: "9\/5\/2023 21:37",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
minDate: "2\/5\/2023 21:37",
maxDate: "16\/5\/2023 21:37",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
showTime: true
});
dc.cw("DatePicker", "widget_time5", {
id: "time5",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
showTime: true,
showSeconds: true
});
dc.cw("DatePicker", "widget_timeDe", {
id: "timeDe",
defaultDate: "27.07.2019 12:59",
inline: false,
userLocale: "de",
dateFormat: "dd.mm.yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
fractionSeparator: ",",
timeInput: false,
showTime: true
});
dc.cw("DatePicker", "widget_time2", {
id: "time2",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
minDate: "5\/11\/2023 00:00",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
showTime: true
});
dc.cw("DatePicker", "widget_zonedDateTime1", {
id: "zonedDateTime1",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false
});
dc.cw("DatePicker", "widget_time7", {
id: "time7",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: true,
showTime: true
});
dc.cw("DatePicker", "widget_timeonly", {
id: "timeonly",
inline: false,
userLocale: "pt_BR",
dateFormat: "",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
timeOnly: true
});
dc.cw("DatePicker", "widget_timeonlyMinMax", {
id: "timeonlyMinMax",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
minDate: "09:00",
maxDate: "17:00",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
timeOnly: true
});
dc.cw("DatePicker", "widget_timeonlyMinMax2", {
id: "timeonlyMinMax2",
defaultDate: "10:30",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
minDate: "09:00",
maxDate: "17:00",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
timeOnly: true
});
dc.cw("DatePicker", "widget_timeonlySeconds", {
id: "timeonlySeconds",
inline: false,
userLocale: "pt_BR",
dateFormat: "",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
timeOnly: true,
showSeconds: true
});
dc.cw("DatePicker", "widget_timeonly12", {
id: "timeonly12",
inline: false,
userLocale: "pt_BR",
dateFormat: "",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
hourFormat: "12",
timeOnly: true
});
dc.cw("DatePicker", "widget_timeonly8", {
id: "timeonly8",
inline: false,
userLocale: "pt_BR",
dateFormat: "d\/m\/yy",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: true,
timeOnly: true
});
dc.cw("DatePicker", "widget_timeonlyMilliseconds", {
id: "timeonlyMilliseconds",
inline: false,
userLocale: "pt_BR",
dateFormat: "",
selectionMode: "single",
showOnFocus: true,
appendTo: "@(body)",
timeInput: false,
timeOnly: true,
showSeconds: true,
showMilliseconds: true
});