view release on metacpan or search on metacpan
lib/HTML/Dojo/src.pm view on Meta::CPAN
}
this.readyState = 4;
if (this.onreadystatechange) {
this.onreadystatechange.call(this);
}
};
dojo.hostenv.CurlRequest._formatCall = function (query, url) {
var call = ["/usr/bin/curl"];
for (var key in query) {
if (query[key] != "") {
call.push("-" + key + " '" + query[key].replace(/'/g, "'") + "'");
} else {
call.push("-" + key);
}
}
call.push("'" + url.replace(/'/g, "'") + "'");
return call.join(" ");
};
dojo.hostenv.exit = function () {
if (widget.system) {
widget.system("/bin/rm -rf cache/*", null);
}
};
}});
__CPAN_FILE__ src/validate.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.validate"], ["require", "dojo.validate.common"]], definePackage:function (dojo) {
dojo.provide("dojo.validate");
dojo.require("dojo.validate.common");
}});
__CPAN_FILE__ src/iCalendar.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["require", "dojo.cal.iCalendar"]], definePackage:function (dojo) {
dojo.require("dojo.cal.iCalendar");
dojo.deprecated("dojo.icalendar", "use dojo.cal.iCalendar isntead", "0.5");
}});
__CPAN_FILE__ src/debug.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.debug"]], definePackage:function (dojo) {
dojo.provide("dojo.debug");
dojo.debug = function () {
if (!djConfig.isDebug) {
return;
}
var args = arguments;
if (dj_undef("println", dojo.hostenv)) {
dojo.raise("dojo.debug not available (yet?)");
}
var isJUM = dj_global["jum"] && !dj_global["jum"].isBrowser;
var s = [(isJUM ? "" : "DEBUG: ")];
for (var i = 0; i < args.length; ++i) {
if (!false && args[i] && args[i] instanceof Error) {
var msg = "[" + args[i].name + ": " + dojo.errorToString(args[i]) + (args[i].fileName ? ", file: " + args[i].fileName : "") + (args[i].lineNumber ? ", line: " + args[i].lineNumber : "") + "]";
} else {
try {
var msg = String(args[i]);
}
catch (e) {
if (dojo.render.html.ie) {
var msg = "[ActiveXObject]";
} else {
var msg = "[unknown]";
}
}
}
s.push(msg);
}
dojo.hostenv.println(s.join(" "));
};
dojo.debugShallow = function (obj) {
if (!djConfig.isDebug) {
return;
}
dojo.debug("------------------------------------------------------------");
dojo.debug("Object: " + obj);
var props = [];
for (var prop in obj) {
try {
props.push(prop + ": " + obj[prop]);
}
catch (E) {
props.push(prop + ": ERROR - " + E.message);
lib/HTML/Dojo/src.pm view on Meta::CPAN
enclosed = dojo.lang.curryArguments(null, enclosed, arguments, 2);
}
return this.addCallbacks(null, enclosed);
return this.addCallbacks(null, cbfn);
}, addCallbacks:function (cb, eb) {
this.chain.push([cb, eb]);
if (this.fired >= 0) {
this._fire();
}
return this;
}, _fire:function () {
var chain = this.chain;
var fired = this.fired;
var res = this.results[fired];
var self = this;
var cb = null;
while (chain.length > 0 && this.paused == 0) {
var pair = chain.shift();
var f = pair[fired];
if (f == null) {
continue;
}
try {
res = f(res);
fired = ((res instanceof Error) ? 1 : 0);
if (res instanceof dojo.Deferred) {
cb = function (res) {
self._continue(res);
};
this._pause();
}
}
catch (err) {
fired = 1;
res = err;
}
}
this.fired = fired;
this.results[fired] = res;
if ((cb) && (this.paused)) {
res.addBoth(cb);
}
}});
}});
__CPAN_FILE__ src/iCalendar.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.require("dojo.cal.iCalendar");
dojo.deprecated("dojo.icalendar", "use dojo.cal.iCalendar isntead", "0.5");
__CPAN_FILE__ src/profile.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.profile"]], definePackage:function (dojo) {
dojo.provide("dojo.profile");
dojo.profile = {_profiles:{}, _pns:[], start:function (name) {
if (!this._profiles[name]) {
this._profiles[name] = {iters:0, total:0};
this._pns[this._pns.length] = name;
} else {
if (this._profiles[name]["start"]) {
this.end(name);
}
}
this._profiles[name].end = null;
this._profiles[name].start = new Date();
}, end:function (name) {
var ed = new Date();
if ((this._profiles[name]) && (this._profiles[name]["start"])) {
with (this._profiles[name]) {
end = ed;
total += (end - start);
start = null;
iters++;
}
} else {
return true;
}
}, dump:function (appendToDoc) {
var tbl = document.createElement("table");
with (tbl.style) {
border = "1px solid black";
borderCollapse = "collapse";
}
var hdr = tbl.createTHead();
var hdrtr = hdr.insertRow(0);
var cols = ["Identifier", "Calls", "Total", "Avg"];
for (var x = 0; x < cols.length; x++) {
var ntd = hdrtr.insertCell(x);
with (ntd.style) {
backgroundColor = "#225d94";
color = "white";
borderBottom = "1px solid black";
borderRight = "1px solid black";
fontFamily = "tahoma";
fontWeight = "bolder";
paddingLeft = paddingRight = "5px";
}
lib/HTML/Dojo/src.pm view on Meta::CPAN
for (var i = 0; i < node.children.length; i++) {
if (node.children[i].isExpanded) {
var key = dojo.lang.isUndefined(field) ? i : node.children[i][field];
obj[key] = this.saveExpandedIndices(node.children[i], field);
}
}
return obj;
}, restoreExpandedIndices:function (node, savedIndices, field) {
var _this = this;
var handler = function (node, savedIndices) {
this.node = node;
this.savedIndices = savedIndices;
this.process = function () {
_this.restoreExpandedIndices(this.node, this.savedIndices, field);
};
};
for (var i = 0; i < node.children.length; i++) {
var child = node.children[i];
var found = false;
var key = -1;
if (dojo.lang.isUndefined(field) && savedIndices[i]) {
found = true;
key = i;
}
if (field) {
for (var key in savedIndices) {
if (key == child[field]) {
found = true;
break;
}
}
}
if (found) {
var h = new handler(child, savedIndices[key]);
_this.expand(child, false, h, h.process);
} else {
if (child.isExpanded) {
dojo.lang.forEach(child.getDescendants(), function (elem) {
_this.collapse(elem);
});
}
}
}
}});
}});
__CPAN_FILE__ src/widget/TimePicker.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.widget.TimePicker"], ["require", "dojo.widget.*"], ["require", "dojo.widget.HtmlWidget"], ["require", "dojo.event.*"], ["require", "dojo.date.serialize"], ["require", "dojo.date.format"], ["requi...
dojo.provide("dojo.widget.TimePicker");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.date.serialize");
dojo.require("dojo.date.format");
dojo.require("dojo.dom");
dojo.require("dojo.html.style");
dojo.widget.defineWidget("dojo.widget.TimePicker", dojo.widget.HtmlWidget, function () {
this.time = "";
this.useDefaultTime = false;
this.useDefaultMinutes = false;
this.storedTime = "";
this.currentTime = {};
this.classNames = {selectedTime:"selectedItem"};
this.any = "any";
this.selectedTime = {hour:"", minute:"", amPm:"", anyTime:false};
this.hourIndexMap = ["", 2, 4, 6, 8, 10, 1, 3, 5, 7, 9, 11, 0];
this.minuteIndexMap = [0, 2, 4, 6, 8, 10, 1, 3, 5, 7, 9, 11];
}, {isContainer:false, templateString:"<div class=\"timePickerContainer\" dojoAttachPoint=\"timePickerContainerNode\">\n\t<table class=\"timeContainer\" cellspacing=\"0\" >\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<td class=\"timeCorner cornerTopLeft\" val...
dojo.widget.TimePicker.superclass.postMixInProperties.apply(this, arguments);
this.calendar = dojo.i18n.getLocalization("dojo.i18n.calendar", "gregorian", this.lang);
this.widgetStrings = dojo.i18n.getLocalization("dojo.widget", "TimePicker", this.lang);
}, fillInTemplate:function (args, frag) {
var source = this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode, source);
if (args.value) {
if (args.value instanceof Date) {
this.storedTime = dojo.date.toRfc3339(args.value);
} else {
this.storedTime = args.value;
}
}
this.initData();
this.initUI();
}, initData:function () {
if (this.storedTime.indexOf("T") != -1 && this.storedTime.split("T")[1] && this.storedTime != " " && this.storedTime.split("T")[1] != "any") {
this.time = dojo.widget.TimePicker.util.fromRfcDateTime(this.storedTime, this.useDefaultMinutes, this.selectedTime.anyTime);
} else {
if (this.useDefaultTime) {
this.time = dojo.widget.TimePicker.util.fromRfcDateTime("", this.useDefaultMinutes, this.selectedTime.anyTime);
} else {
this.selectedTime.anyTime = true;
this.time = dojo.widget.TimePicker.util.fromRfcDateTime("", 0, 1);
}
}
}, initUI:function () {
if (!this.selectedTime.anyTime && this.time) {
var amPmHour = dojo.widget.TimePicker.util.toAmPmHour(this.time.getHours());
var hour = amPmHour[0];
var isAm = amPmHour[1];
var minute = this.time.getMinutes();
var minuteIndex = parseInt(minute / 5);
this.onSetSelectedHour(this.hourIndexMap[hour]);
this.onSetSelectedMinute(this.minuteIndexMap[minuteIndex]);
this.onSetSelectedAmPm(isAm);
} else {
this.onSetSelectedAnyTime();
}
}, setTime:function (date) {
if (date) {
this.selectedTime.anyTime = false;
this.setDateTime(dojo.date.toRfc3339(date));
} else {
this.selectedTime.anyTime = true;
}
this.initData();
this.initUI();
}, setDateTime:function (rfcDate) {
this.storedTime = rfcDate;
}, onClearSelectedHour:function (evt) {
this.clearSelectedHour();
}, onClearSelectedMinute:function (evt) {
this.clearSelectedMinute();
}, onClearSelectedAmPm:function (evt) {
this.clearSelectedAmPm();
}, onClearSelectedAnyTime:function (evt) {
this.clearSelectedAnyTime();
if (this.selectedTime.anyTime) {
this.selectedTime.anyTime = false;
this.time = dojo.widget.TimePicker.util.fromRfcDateTime("", this.useDefaultMinutes);
this.initUI();
lib/HTML/Dojo/src.pm view on Meta::CPAN
props.widgetType = type;
if ((!init) && (props["classConstructor"])) {
init = props.classConstructor;
delete props.classConstructor;
}
dojo.declare(widgetClass, superclasses, init, props);
};
__CPAN_FILE__ src/widget/DropdownDatePicker.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.DropdownDatePicker");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.DropdownContainer");
dojo.require("dojo.widget.DatePicker");
dojo.require("dojo.event.*");
dojo.require("dojo.html.*");
dojo.require("dojo.date.format");
dojo.require("dojo.date.serialize");
dojo.require("dojo.string.common");
dojo.require("dojo.i18n.common");
dojo.requireLocalization("dojo.widget", "DropdownDatePicker", null, "ROOT");
dojo.widget.defineWidget("dojo.widget.DropdownDatePicker", dojo.widget.DropdownContainer, {iconURL:dojo.uri.moduleUri("dojo.widget", "templates/images/dateIcon.gif"), formatLength:"short", displayFormat:"", saveFormat:"", value:"", name:"", displayWe...
dojo.widget.DropdownDatePicker.superclass.postMixInProperties.apply(this, arguments);
var messages = dojo.i18n.getLocalization("dojo.widget", "DropdownDatePicker", this.lang);
this.iconAlt = messages.selectDate;
if (typeof (this.value) == "string" && this.value.toLowerCase() == "today") {
this.value = new Date();
}
if (this.value && isNaN(this.value)) {
var orig = this.value;
this.value = dojo.date.fromRfc3339(this.value);
if (!this.value) {
this.value = new Date(orig);
dojo.deprecated("dojo.widget.DropdownDatePicker", "date attributes must be passed in Rfc3339 format", "0.5");
}
}
if (this.value && !isNaN(this.value)) {
this.value = new Date(this.value);
}
}, fillInTemplate:function (args, frag) {
dojo.widget.DropdownDatePicker.superclass.fillInTemplate.call(this, args, frag);
var dpArgs = {widgetContainerId:this.widgetId, lang:this.lang, value:this.value, startDate:this.startDate, endDate:this.endDate, displayWeeks:this.displayWeeks, weekStartsOn:this.weekStartsOn, adjustWeeks:this.adjustWeeks, staticDisplay:this.staticD...
this.datePicker = dojo.widget.createWidget("DatePicker", dpArgs, this.containerNode, "child");
dojo.event.connect(this.datePicker, "onValueChanged", this, "_updateText");
dojo.event.connect(this.inputNode, "onChange", this, "_updateText");
if (this.value) {
this._updateText();
}
this.containerNode.explodeClassName = "calendarBodyContainer";
this.valueNode.name = this.name;
}, getValue:function () {
return this.valueNode.value;
}, getDate:function () {
return this.datePicker.value;
}, setValue:function (rfcDate) {
this.setDate(rfcDate);
}, setDate:function (dateObj) {
this.datePicker.setDate(dateObj);
this._syncValueNode();
}, _updateText:function () {
this.inputNode.value = this.datePicker.value ? dojo.date.format(this.datePicker.value, {formatLength:this.formatLength, datePattern:this.displayFormat, selector:"dateOnly", locale:this.lang}) : "";
if (this.value < this.datePicker.startDate || this.value > this.datePicker.endDate) {
this.inputNode.value = "";
}
this._syncValueNode();
this.onValueChanged(this.getDate());
this.hideContainer();
}, onValueChanged:function (dateObj) {
}, onInputChange:function () {
var input = dojo.string.trim(this.inputNode.value);
if (input) {
var inputDate = dojo.date.parse(input, {formatLength:this.formatLength, datePattern:this.displayFormat, selector:"dateOnly", locale:this.lang});
if (!this.datePicker._isDisabledDate(inputDate)) {
this.setDate(inputDate);
}
} else {
if (input == "") {
this.datePicker.setDate("");
}
this.valueNode.value = input;
}
if (input) {
this._updateText();
}
}, _syncValueNode:function () {
var date = this.datePicker.value;
var value = "";
switch (this.saveFormat.toLowerCase()) {
case "rfc":
case "iso":
case "":
value = dojo.date.toRfc3339(date, "dateOnly");
break;
case "posix":
case "unix":
value = Number(date);
break;
default:
if (date) {
value = dojo.date.format(date, {datePattern:this.saveFormat, selector:"dateOnly", locale:this.lang});
}
}
this.valueNode.value = value;
}, destroy:function (finalize) {
this.datePicker.destroy(finalize);
dojo.widget.DropdownDatePicker.superclass.destroy.apply(this, arguments);
}});
lib/HTML/Dojo/src.pm view on Meta::CPAN
var tmp = "", code = "";
for (var i = 0; i < scripts.length; i++) {
if (scripts[i].path) {
dojo.io.bind(this._cacheSetting({"url":scripts[i].path, "load":function (type, scriptStr) {
dojo.lang.hitch(self, tmp = ";" + scriptStr);
}, "error":function (type, error) {
error.text = type + " downloading remote script";
self._handleDefaults.call(self, error, "onExecError", "debug");
}, "mimetype":"text/plain", "sync":true}, this.cacheContent));
code += tmp;
} else {
code += scripts[i];
}
}
try {
if (this.scriptSeparation) {
delete this.scriptScope;
this.scriptScope = new (new Function("_container_", code + "; return this;"))(self);
} else {
var djg = dojo.global();
if (djg.execScript) {
djg.execScript(code);
} else {
var djd = dojo.doc();
var sc = djd.createElement("script");
sc.appendChild(djd.createTextNode(code));
(this.containerNode || this.domNode).appendChild(sc);
}
}
}
catch (e) {
e.text = "Error running scripts from content:\n" + e.description;
this._handleDefaults(e, "onExecError", "debug");
}
}});
__CPAN_FILE__ src/widget/MonthlyCalendar.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.widget.MonthlyCalendar"], ["require", "dojo.date.common"], ["require", "dojo.date.format"], ["require", "dojo.widget.*"], ["require", "dojo.widget.DatePicker"], ["require", "dojo.event.*"], ["req...
dojo.provide("dojo.widget.MonthlyCalendar");
dojo.require("dojo.date.common");
dojo.require("dojo.date.format");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.DatePicker");
dojo.require("dojo.event.*");
dojo.require("dojo.html.*");
dojo.require("dojo.experimental");
dojo.experimental("dojo.widget.MonthlyCalendar");
dojo.widget.defineWidget("dojo.widget.MonthlyCalendar", dojo.widget.DatePicker, {dayWidth:"wide", templateString:"<div class=\"datePickerContainer\" dojoAttachPoint=\"datePickerContainerNode\">\n\t<h3 class=\"monthLabel\">\n\t<!--\n\t<span \n\t\tdoj...
this.iCalendars = [];
}, addCalendar:function (cal) {
dojo.debug("Adding Calendar");
this.iCalendars.push(cal);
dojo.debug("Starting init");
this.initUI();
dojo.debug("done init");
}, createDayContents:function (node, mydate) {
dojo.html.removeChildren(node);
node.appendChild(document.createTextNode(mydate.getDate()));
for (var x = 0; x < this.iCalendars.length; x++) {
var evts = this.iCalendars[x].getEvents(mydate);
if ((dojo.lang.isArray(evts)) && (evts.length > 0)) {
for (var y = 0; y < evts.length; y++) {
var el = document.createElement("div");
dojo.html.addClass(el, "dojoMonthlyCalendarEvent");
el.appendChild(document.createTextNode(evts[y].summary.value));
el.width = dojo.html.getContentBox(node).width;
node.appendChild(el);
}
}
}
}, initUI:function () {
var dayLabels = dojo.date.getNames("days", this.dayWidth, "standAlone", this.lang);
var dayLabelNodes = this.dayLabelsRow.getElementsByTagName("td");
for (var i = 0; i < 7; i++) {
dayLabelNodes.item(i).innerHTML = dayLabels[i];
}
this.selectedIsUsed = false;
this.currentIsUsed = false;
var currentClassName = "";
var previousDate = new Date();
var calendarNodes = this.calendarDatesContainerNode.getElementsByTagName("td");
var currentCalendarNode;
previousDate.setHours(8);
var nextDate = new Date(this.firstSaturday.year, this.firstSaturday.month, this.firstSaturday.date, 8);
var lastDay = new Date(this.firstSaturday.year, this.firstSaturday.month, this.firstSaturday.date + 42, 8);
if (this.iCalendars.length > 0) {
for (var x = 0; x < this.iCalendars.length; x++) {
this.iCalendars[x].preComputeRecurringEvents(lastDay);
}
}
if (this.firstSaturday.date < 7) {
var dayInWeek = 6;
for (var i = this.firstSaturday.date; i > 0; i--) {
currentCalendarNode = calendarNodes.item(dayInWeek);
this.createDayContents(currentCalendarNode, nextDate);
dojo.html.setClass(currentCalendarNode, this.getDateClassName(nextDate, "current"));
dayInWeek--;
previousDate = nextDate;
nextDate = this.incrementDate(nextDate, false);
}
for (var i = dayInWeek; i > -1; i--) {
currentCalendarNode = calendarNodes.item(i);
this.createDayContents(currentCalendarNode, nextDate);
dojo.html.setClass(currentCalendarNode, this.getDateClassName(nextDate, "previous"));
previousDate = nextDate;
nextDate = this.incrementDate(nextDate, false);
}
} else {
nextDate.setDate(1);
for (var i = 0; i < 7; i++) {
currentCalendarNode = calendarNodes.item(i);
this.createDayContents(currentCalendarNode, nextDate);
dojo.html.setClass(currentCalendarNode, this.getDateClassName(nextDate, "current"));
previousDate = nextDate;
nextDate = this.incrementDate(nextDate, true);
}
}
previousDate.setDate(this.firstSaturday.date);
previousDate.setMonth(this.firstSaturday.month);
previousDate.setFullYear(this.firstSaturday.year);
nextDate = this.incrementDate(previousDate, true);
var count = 7;
currentCalendarNode = calendarNodes.item(count);
while ((nextDate.getMonth() == previousDate.getMonth()) && (count < 42)) {
this.createDayContents(currentCalendarNode, nextDate);
dojo.html.setClass(currentCalendarNode, this.getDateClassName(nextDate, "current"));
currentCalendarNode = calendarNodes.item(++count);
previousDate = nextDate;
nextDate = this.incrementDate(nextDate, true);
}
while (count < 42) {
this.createDayContents(currentCalendarNode, nextDate);
dojo.html.setClass(currentCalendarNode, this.getDateClassName(nextDate, "next"));
currentCalendarNode = calendarNodes.item(++count);
previousDate = nextDate;
nextDate = this.incrementDate(nextDate, true);
}
this.setMonthLabel(this.firstSaturday.month);
this.setYearLabels(this.firstSaturday.year);
}});
dojo.widget.MonthlyCalendar.util = new function () {
this.toRfcDate = function (jsDate) {
if (!jsDate) {
jsDate = this.today;
}
var year = jsDate.getFullYear();
var month = jsDate.getMonth() + 1;
if (month < 10) {
month = "0" + month.toString();
}
var date = jsDate.getDate();
if (date < 10) {
date = "0" + date.toString();
}
return year + "-" + month + "-" + date + "T00:00:00+00:00";
};
this.fromRfcDate = function (rfcDate) {
var tempDate = rfcDate.split("-");
if (tempDate.length < 3) {
return new Date();
}
return new Date(parseInt(tempDate[0]), (parseInt(tempDate[1], 10) - 1), parseInt(tempDate[2].substr(0, 2), 10));
};
this.initFirstSaturday = function (month, year) {
if (!month) {
month = this.date.getMonth();
}
if (!year) {
year = this.date.getFullYear();
}
var firstOfMonth = new Date(year, month, 1);
return {year:year, month:month, date:7 - firstOfMonth.getDay()};
};
};
}});
__CPAN_FILE__ src/widget/Select.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.Select");
dojo.require("dojo.widget.ComboBox");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.html.stabile");
lib/HTML/Dojo/src.pm view on Meta::CPAN
var y = this.dragOffset.y + evt.pageY;
this.slider._snapY(y);
}
if (this.slider.activeDrag) {
this.slider.notifyListeners();
}
}});
__CPAN_FILE__ src/widget/DropdownDatePicker.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.widget.DropdownDatePicker"], ["require", "dojo.widget.*"], ["require", "dojo.widget.DropdownContainer"], ["require", "dojo.widget.DatePicker"], ["require", "dojo.event.*"], ["require", "dojo.html...
dojo.provide("dojo.widget.DropdownDatePicker");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.DropdownContainer");
dojo.require("dojo.widget.DatePicker");
dojo.require("dojo.event.*");
dojo.require("dojo.html.*");
dojo.require("dojo.date.format");
dojo.require("dojo.date.serialize");
dojo.require("dojo.string.common");
dojo.require("dojo.i18n.common");
dojo.widget.defineWidget("dojo.widget.DropdownDatePicker", dojo.widget.DropdownContainer, {iconURL:dojo.uri.moduleUri("dojo.widget", "templates/images/dateIcon.gif"), formatLength:"short", displayFormat:"", saveFormat:"", value:"", name:"", displayW...
dojo.widget.DropdownDatePicker.superclass.postMixInProperties.apply(this, arguments);
var messages = dojo.i18n.getLocalization("dojo.widget", "DropdownDatePicker", this.lang);
this.iconAlt = messages.selectDate;
if (typeof (this.value) == "string" && this.value.toLowerCase() == "today") {
this.value = new Date();
}
if (this.value && isNaN(this.value)) {
var orig = this.value;
this.value = dojo.date.fromRfc3339(this.value);
if (!this.value) {
this.value = new Date(orig);
dojo.deprecated("dojo.widget.DropdownDatePicker", "date attributes must be passed in Rfc3339 format", "0.5");
}
}
if (this.value && !isNaN(this.value)) {
this.value = new Date(this.value);
}
}, fillInTemplate:function (args, frag) {
dojo.widget.DropdownDatePicker.superclass.fillInTemplate.call(this, args, frag);
var dpArgs = {widgetContainerId:this.widgetId, lang:this.lang, value:this.value, startDate:this.startDate, endDate:this.endDate, displayWeeks:this.displayWeeks, weekStartsOn:this.weekStartsOn, adjustWeeks:this.adjustWeeks, staticDisplay:this.static...
this.datePicker = dojo.widget.createWidget("DatePicker", dpArgs, this.containerNode, "child");
dojo.event.connect(this.datePicker, "onValueChanged", this, "_updateText");
dojo.event.connect(this.inputNode, "onChange", this, "_updateText");
if (this.value) {
this._updateText();
}
this.containerNode.explodeClassName = "calendarBodyContainer";
this.valueNode.name = this.name;
}, getValue:function () {
return this.valueNode.value;
}, getDate:function () {
return this.datePicker.value;
}, setValue:function (rfcDate) {
this.setDate(rfcDate);
}, setDate:function (dateObj) {
this.datePicker.setDate(dateObj);
this._syncValueNode();
}, _updateText:function () {
this.inputNode.value = this.datePicker.value ? dojo.date.format(this.datePicker.value, {formatLength:this.formatLength, datePattern:this.displayFormat, selector:"dateOnly", locale:this.lang}) : "";
if (this.value < this.datePicker.startDate || this.value > this.datePicker.endDate) {
this.inputNode.value = "";
}
this._syncValueNode();
this.onValueChanged(this.getDate());
this.hideContainer();
}, onValueChanged:function (dateObj) {
}, onInputChange:function () {
var input = dojo.string.trim(this.inputNode.value);
if (input) {
var inputDate = dojo.date.parse(input, {formatLength:this.formatLength, datePattern:this.displayFormat, selector:"dateOnly", locale:this.lang});
if (!this.datePicker._isDisabledDate(inputDate)) {
this.setDate(inputDate);
}
} else {
if (input == "") {
this.datePicker.setDate("");
}
this.valueNode.value = input;
}
if (input) {
this._updateText();
}
}, _syncValueNode:function () {
var date = this.datePicker.value;
var value = "";
switch (this.saveFormat.toLowerCase()) {
case "rfc":
case "iso":
case "":
value = dojo.date.toRfc3339(date, "dateOnly");
break;
case "posix":
case "unix":
value = Number(date);
break;
default:
if (date) {
value = dojo.date.format(date, {datePattern:this.saveFormat, selector:"dateOnly", locale:this.lang});
}
}
this.valueNode.value = value;
}, destroy:function (finalize) {
this.datePicker.destroy(finalize);
dojo.widget.DropdownDatePicker.superclass.destroy.apply(this, arguments);
}});
}});
lib/HTML/Dojo/src.pm view on Meta::CPAN
this.map = new GMap2(this.domNode);
try {
this.geocoder = new GClientGeocoder();
}
catch (ex) {
}
this.render();
this.setControls();
}});
__CPAN_FILE__ src/widget/TreeDeselectOnDblselect.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.widget.TreeDeselectOnDblselect"], ["require", "dojo.widget.HtmlWidget"], ["require", "dojo.widget.TreeSelectorV3"]], definePackage:function (dojo) {
dojo.provide("dojo.widget.TreeDeselectOnDblselect");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.widget.TreeSelectorV3");
dojo.deprecated("Does anyone still need this extension? (TreeDeselectOnDblselect)");
dojo.widget.defineWidget("dojo.widget.TreeDeselectOnDblselect", [dojo.widget.HtmlWidget], {selector:"", initialize:function () {
this.selector = dojo.widget.byId(this.selector);
dojo.event.topic.subscribe(this.selector.eventNames.dblselect, this, "onDblselect");
}, onDblselect:function (message) {
this.selector.deselect(message.node);
}});
}});
__CPAN_FILE__ src/widget/MonthlyCalendar.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.MonthlyCalendar");
dojo.require("dojo.date.common");
dojo.require("dojo.date.format");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.DatePicker");
dojo.require("dojo.event.*");
dojo.require("dojo.html.*");
dojo.require("dojo.experimental");
dojo.experimental("dojo.widget.MonthlyCalendar");
dojo.widget.defineWidget("dojo.widget.MonthlyCalendar", dojo.widget.DatePicker, {dayWidth:"wide", templateString:"<div class=\"datePickerContainer\" dojoAttachPoint=\"datePickerContainerNode\">\n\t<h3 class=\"monthLabel\">\n\t<!--\n\t<span \n\t\tdojo...
this.iCalendars = [];
}, addCalendar:function (cal) {
dojo.debug("Adding Calendar");
this.iCalendars.push(cal);
dojo.debug("Starting init");
this.initUI();
dojo.debug("done init");
}, createDayContents:function (node, mydate) {
dojo.html.removeChildren(node);
node.appendChild(document.createTextNode(mydate.getDate()));
for (var x = 0; x < this.iCalendars.length; x++) {
var evts = this.iCalendars[x].getEvents(mydate);
if ((dojo.lang.isArray(evts)) && (evts.length > 0)) {
for (var y = 0; y < evts.length; y++) {
var el = document.createElement("div");
dojo.html.addClass(el, "dojoMonthlyCalendarEvent");
el.appendChild(document.createTextNode(evts[y].summary.value));
el.width = dojo.html.getContentBox(node).width;
node.appendChild(el);
}
}
}
}, initUI:function () {
var dayLabels = dojo.date.getNames("days", this.dayWidth, "standAlone", this.lang);
var dayLabelNodes = this.dayLabelsRow.getElementsByTagName("td");
for (var i = 0; i < 7; i++) {
dayLabelNodes.item(i).innerHTML = dayLabels[i];
}
this.selectedIsUsed = false;
this.currentIsUsed = false;
var currentClassName = "";
var previousDate = new Date();
var calendarNodes = this.calendarDatesContainerNode.getElementsByTagName("td");
var currentCalendarNode;
previousDate.setHours(8);
var nextDate = new Date(this.firstSaturday.year, this.firstSaturday.month, this.firstSaturday.date, 8);
var lastDay = new Date(this.firstSaturday.year, this.firstSaturday.month, this.firstSaturday.date + 42, 8);
if (this.iCalendars.length > 0) {
for (var x = 0; x < this.iCalendars.length; x++) {
this.iCalendars[x].preComputeRecurringEvents(lastDay);
}
}
if (this.firstSaturday.date < 7) {
var dayInWeek = 6;
for (var i = this.firstSaturday.date; i > 0; i--) {
currentCalendarNode = calendarNodes.item(dayInWeek);
this.createDayContents(currentCalendarNode, nextDate);
dojo.html.setClass(currentCalendarNode, this.getDateClassName(nextDate, "current"));
dayInWeek--;
previousDate = nextDate;
nextDate = this.incrementDate(nextDate, false);
}
for (var i = dayInWeek; i > -1; i--) {
currentCalendarNode = calendarNodes.item(i);
this.createDayContents(currentCalendarNode, nextDate);
dojo.html.setClass(currentCalendarNode, this.getDateClassName(nextDate, "previous"));
previousDate = nextDate;
nextDate = this.incrementDate(nextDate, false);
}
} else {
nextDate.setDate(1);
for (var i = 0; i < 7; i++) {
currentCalendarNode = calendarNodes.item(i);
this.createDayContents(currentCalendarNode, nextDate);
dojo.html.setClass(currentCalendarNode, this.getDateClassName(nextDate, "current"));
previousDate = nextDate;
nextDate = this.incrementDate(nextDate, true);
}
}
previousDate.setDate(this.firstSaturday.date);
previousDate.setMonth(this.firstSaturday.month);
previousDate.setFullYear(this.firstSaturday.year);
nextDate = this.incrementDate(previousDate, true);
var count = 7;
currentCalendarNode = calendarNodes.item(count);
while ((nextDate.getMonth() == previousDate.getMonth()) && (count < 42)) {
this.createDayContents(currentCalendarNode, nextDate);
dojo.html.setClass(currentCalendarNode, this.getDateClassName(nextDate, "current"));
currentCalendarNode = calendarNodes.item(++count);
previousDate = nextDate;
nextDate = this.incrementDate(nextDate, true);
}
while (count < 42) {
this.createDayContents(currentCalendarNode, nextDate);
dojo.html.setClass(currentCalendarNode, this.getDateClassName(nextDate, "next"));
currentCalendarNode = calendarNodes.item(++count);
previousDate = nextDate;
nextDate = this.incrementDate(nextDate, true);
}
this.setMonthLabel(this.firstSaturday.month);
this.setYearLabels(this.firstSaturday.year);
}});
dojo.widget.MonthlyCalendar.util = new function () {
this.toRfcDate = function (jsDate) {
if (!jsDate) {
jsDate = this.today;
}
var year = jsDate.getFullYear();
var month = jsDate.getMonth() + 1;
if (month < 10) {
month = "0" + month.toString();
}
var date = jsDate.getDate();
if (date < 10) {
date = "0" + date.toString();
}
return year + "-" + month + "-" + date + "T00:00:00+00:00";
};
this.fromRfcDate = function (rfcDate) {
var tempDate = rfcDate.split("-");
if (tempDate.length < 3) {
return new Date();
}
return new Date(parseInt(tempDate[0]), (parseInt(tempDate[1], 10) - 1), parseInt(tempDate[2].substr(0, 2), 10));
};
this.initFirstSaturday = function (month, year) {
if (!month) {
month = this.date.getMonth();
}
if (!year) {
year = this.date.getFullYear();
}
var firstOfMonth = new Date(year, month, 1);
return {year:year, month:month, date:7 - firstOfMonth.getDay()};
};
};
__CPAN_FILE__ src/widget/TreeWithNode.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.require("dojo.lang.declare");
dojo.provide("dojo.widget.TreeWithNode");
dojo.declare("dojo.widget.TreeWithNode", null, function () {
}, {loadStates:{UNCHECKED:"UNCHECKED", LOADING:"LOADING", LOADED:"LOADED"}, state:"UNCHECKED", objectId:"", isContainer:true, lockLevel:0, lock:function () {
this.lockLevel++;
lib/HTML/Dojo/src.pm view on Meta::CPAN
this.unBindTreeNode(message.child);
}, onAddChild:function (message) {
if (message.domNodeInitialized) {
this.bindTreeNode(message.child);
}
}});
dojo.widget.defineWidget("dojo.widget.TreeMenuItem", dojo.widget.MenuItem2, {treeActions:"", initialize:function (args, frag) {
this.treeActions = this.treeActions.split(",");
for (var i = 0; i < this.treeActions.length; i++) {
this.treeActions[i] = this.treeActions[i].toUpperCase();
}
}, getTreeNode:function () {
var menu = this;
while (!(menu instanceof dojo.widget.TreeContextMenu)) {
menu = menu.parent;
}
var source = menu.getTopOpenEvent().target;
while (!source.getAttribute("treeNode") && source.tagName != "body") {
source = source.parentNode;
}
if (source.tagName == "body") {
dojo.raise("treeNode not detected");
}
var treeNode = dojo.widget.manager.getWidgetById(source.getAttribute("treeNode"));
return treeNode;
}, menuOpen:function (message) {
var treeNode = this.getTreeNode();
this.setDisabled(false);
var _this = this;
dojo.lang.forEach(_this.treeActions, function (action) {
_this.setDisabled(treeNode.actionIsDisabled(action));
});
}, toString:function () {
return "[" + this.widgetType + " node " + this.getTreeNode() + "]";
}});
}});
__CPAN_FILE__ src/widget/DatePicker.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.DatePicker");
dojo.require("dojo.date.common");
dojo.require("dojo.date.format");
dojo.require("dojo.date.serialize");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.dom");
dojo.require("dojo.html.style");
dojo.widget.defineWidget("dojo.widget.DatePicker", dojo.widget.HtmlWidget, {value:"", name:"", displayWeeks:6, adjustWeeks:false, startDate:"1492-10-12", endDate:"2941-10-12", weekStartsOn:"", staticDisplay:false, dayWidth:"narrow", classNames:{previ...
dojo.widget.DatePicker.superclass.postMixInProperties.apply(this, arguments);
if (!this.weekStartsOn) {
this.weekStartsOn = dojo.date.getFirstDayOfWeek(this.lang);
}
this.today = new Date();
this.today.setHours(0, 0, 0, 0);
if (typeof (this.value) == "string" && this.value.toLowerCase() == "today") {
this.value = new Date();
} else {
if (this.value && (typeof this.value == "string") && (this.value.split("-").length > 2)) {
this.value = dojo.date.fromRfc3339(this.value);
this.value.setHours(0, 0, 0, 0);
}
}
}, fillInTemplate:function (args, frag) {
dojo.widget.DatePicker.superclass.fillInTemplate.apply(this, arguments);
var source = this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode, source);
this.weekTemplate = dojo.dom.removeNode(this.calendarWeekTemplate);
this._preInitUI(this.value ? this.value : this.today, false, true);
var dayLabels = dojo.lang.unnest(dojo.date.getNames("days", this.dayWidth, "standAlone", this.lang));
if (this.weekStartsOn > 0) {
for (var i = 0; i < this.weekStartsOn; i++) {
dayLabels.push(dayLabels.shift());
}
}
var dayLabelNodes = this.dayLabelsRow.getElementsByTagName("td");
for (i = 0; i < 7; i++) {
dayLabelNodes.item(i).innerHTML = dayLabels[i];
}
if (this.value) {
this.setValue(this.value);
}
}, getValue:function () {
return dojo.date.toRfc3339(new Date(this.value), "dateOnly");
}, getDate:function () {
return this.value;
}, setValue:function (rfcDate) {
this.setDate(rfcDate);
}, setDate:function (dateObj) {
if (dateObj == "") {
this.value = "";
this._preInitUI(this.curMonth, false, true);
} else {
if (typeof dateObj == "string") {
this.value = dojo.date.fromRfc3339(dateObj);
this.value.setHours(0, 0, 0, 0);
} else {
this.value = new Date(dateObj);
this.value.setHours(0, 0, 0, 0);
}
}
if (this.selectedNode != null) {
dojo.html.removeClass(this.selectedNode, this.classNames.selectedDate);
}
if (this.clickedNode != null) {
dojo.debug("adding selectedDate");
dojo.html.addClass(this.clickedNode, this.classNames.selectedDate);
this.selectedNode = this.clickedNode;
} else {
this._preInitUI(this.value, false, true);
}
this.clickedNode = null;
this.onValueChanged(this.value);
}, _preInitUI:function (dateObj, initFirst, initUI) {
if (typeof (this.startDate) == "string") {
this.startDate = dojo.date.fromRfc3339(this.startDate);
}
if (typeof (this.endDate) == "string") {
this.endDate = dojo.date.fromRfc3339(this.endDate);
}
this.startDate.setHours(0, 0, 0, 0);
this.endDate.setHours(24, 0, 0, -1);
if (dateObj < this.startDate || dateObj > this.endDate) {
dateObj = new Date((dateObj < this.startDate) ? this.startDate : this.endDate);
}
this.firstDay = this._initFirstDay(dateObj, initFirst);
this.selectedIsUsed = false;
this.currentIsUsed = false;
var nextDate = new Date(this.firstDay);
var tmpMonth = nextDate.getMonth();
this.curMonth = new Date(nextDate);
this.curMonth.setDate(nextDate.getDate() + 6);
this.curMonth.setDate(1);
if (this.displayWeeks == "" || this.adjustWeeks) {
this.adjustWeeks = true;
this.displayWeeks = Math.ceil((dojo.date.getDaysInMonth(this.curMonth) + this._getAdjustedDay(this.curMonth)) / 7);
}
var days = this.displayWeeks * 7;
if (dojo.date.diff(this.startDate, this.endDate, dojo.date.dateParts.DAY) < days) {
this.staticDisplay = true;
if (dojo.date.diff(nextDate, this.endDate, dojo.date.dateParts.DAY) > days) {
this._preInitUI(this.startDate, true, false);
nextDate = new Date(this.firstDay);
}
this.curMonth = new Date(nextDate);
this.curMonth.setDate(nextDate.getDate() + 6);
this.curMonth.setDate(1);
var curClass = (nextDate.getMonth() == this.curMonth.getMonth()) ? "current" : "previous";
}
if (initUI) {
this._initUI(days);
}
}, _initUI:function (days) {
dojo.dom.removeChildren(this.calendarDatesContainerNode);
for (var i = 0; i < this.displayWeeks; i++) {
this.calendarDatesContainerNode.appendChild(this.weekTemplate.cloneNode(true));
}
var nextDate = new Date(this.firstDay);
this._setMonthLabel(this.curMonth.getMonth());
this._setYearLabels(this.curMonth.getFullYear());
var calendarNodes = this.calendarDatesContainerNode.getElementsByTagName("td");
var calendarRows = this.calendarDatesContainerNode.getElementsByTagName("tr");
var currentCalendarNode;
for (i = 0; i < days; i++) {
currentCalendarNode = calendarNodes.item(i);
currentCalendarNode.innerHTML = nextDate.getDate();
currentCalendarNode.setAttribute("djDateValue", nextDate.valueOf());
var curClass = (nextDate.getMonth() != this.curMonth.getMonth() && Number(nextDate) < Number(this.curMonth)) ? "previous" : (nextDate.getMonth() == this.curMonth.getMonth()) ? "current" : "next";
var mappedClass = curClass;
if (this._isDisabledDate(nextDate)) {
var classMap = {previous:"disabledPrevious", current:"disabledCurrent", next:"disabledNext"};
mappedClass = classMap[curClass];
}
dojo.html.setClass(currentCalendarNode, this._getDateClassName(nextDate, mappedClass));
if (dojo.html.hasClass(currentCalendarNode, this.classNames.selectedDate)) {
this.selectedNode = currentCalendarNode;
}
nextDate = dojo.date.add(nextDate, dojo.date.dateParts.DAY, 1);
}
this.lastDay = dojo.date.add(nextDate, dojo.date.dateParts.DAY, -1);
this._initControls();
}, _initControls:function () {
var d = this.firstDay;
var d2 = this.lastDay;
var decWeek, incWeek, decMonth, incMonth, decYear, incYear;
decWeek = incWeek = decMonth = incMonth = decYear = incYear = !this.staticDisplay;
with (dojo.date.dateParts) {
var add = dojo.date.add;
if (decWeek && add(d, DAY, (-1 * (this._getAdjustedDay(d) + 1))) < this.startDate) {
decWeek = decMonth = decYear = false;
}
if (incWeek && d2 > this.endDate) {
incWeek = incMonth = incYear = false;
}
if (decMonth && add(d, DAY, -1) < this.startDate) {
decMonth = decYear = false;
}
if (incMonth && add(d2, DAY, 1) > this.endDate) {
incMonth = incYear = false;
}
if (decYear && add(d2, YEAR, -1) < this.startDate) {
decYear = false;
}
if (incYear && add(d, YEAR, 1) > this.endDate) {
incYear = false;
}
}
function enableControl(node, enabled) {
dojo.html.setVisibility(node, enabled ? "" : "hidden");
}
enableControl(this.decreaseWeekNode, decWeek);
enableControl(this.increaseWeekNode, incWeek);
enableControl(this.decreaseMonthNode, decMonth);
enableControl(this.increaseMonthNode, incMonth);
enableControl(this.previousYearLabelNode, decYear);
enableControl(this.nextYearLabelNode, incYear);
}, _incrementWeek:function (evt) {
var d = new Date(this.firstDay);
switch (evt.target) {
case this.increaseWeekNode.getElementsByTagName("img").item(0):
case this.increaseWeekNode:
var tmpDate = dojo.date.add(d, dojo.date.dateParts.WEEK, 1);
if (tmpDate < this.endDate) {
d = dojo.date.add(d, dojo.date.dateParts.WEEK, 1);
}
lib/HTML/Dojo/src.pm view on Meta::CPAN
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.IntegerTextbox");
dojo.require("dojo.widget.ValidationTextbox");
dojo.require("dojo.validate.common");
dojo.widget.defineWidget("dojo.widget.IntegerTextbox", dojo.widget.ValidationTextbox, {mixInProperties:function (localProperties, frag) {
dojo.widget.IntegerTextbox.superclass.mixInProperties.apply(this, arguments);
if ((localProperties.signed == "true") || (localProperties.signed == "always")) {
this.flags.signed = true;
} else {
if ((localProperties.signed == "false") || (localProperties.signed == "never")) {
this.flags.signed = false;
this.flags.min = 0;
} else {
this.flags.signed = [true, false];
}
}
if (localProperties.separator) {
this.flags.separator = localProperties.separator;
}
if (localProperties.min) {
this.flags.min = parseInt(localProperties.min);
}
if (localProperties.max) {
this.flags.max = parseInt(localProperties.max);
}
}, isValid:function () {
return dojo.validate.isInteger(this.textbox.value, this.flags);
}, isInRange:function () {
return dojo.validate.isInRange(this.textbox.value, this.flags);
}});
__CPAN_FILE__ src/widget/DatePicker.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.widget.DatePicker"], ["require", "dojo.date.common"], ["require", "dojo.date.format"], ["require", "dojo.date.serialize"], ["require", "dojo.widget.*"], ["require", "dojo.widget.HtmlWidget"], ["r...
dojo.provide("dojo.widget.DatePicker");
dojo.require("dojo.date.common");
dojo.require("dojo.date.format");
dojo.require("dojo.date.serialize");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.dom");
dojo.require("dojo.html.style");
dojo.widget.defineWidget("dojo.widget.DatePicker", dojo.widget.HtmlWidget, {value:"", name:"", displayWeeks:6, adjustWeeks:false, startDate:"1492-10-12", endDate:"2941-10-12", weekStartsOn:"", staticDisplay:false, dayWidth:"narrow", classNames:{prev...
dojo.widget.DatePicker.superclass.postMixInProperties.apply(this, arguments);
if (!this.weekStartsOn) {
this.weekStartsOn = dojo.date.getFirstDayOfWeek(this.lang);
}
this.today = new Date();
this.today.setHours(0, 0, 0, 0);
if (typeof (this.value) == "string" && this.value.toLowerCase() == "today") {
this.value = new Date();
} else {
if (this.value && (typeof this.value == "string") && (this.value.split("-").length > 2)) {
this.value = dojo.date.fromRfc3339(this.value);
this.value.setHours(0, 0, 0, 0);
}
}
}, fillInTemplate:function (args, frag) {
dojo.widget.DatePicker.superclass.fillInTemplate.apply(this, arguments);
var source = this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode, source);
this.weekTemplate = dojo.dom.removeNode(this.calendarWeekTemplate);
this._preInitUI(this.value ? this.value : this.today, false, true);
var dayLabels = dojo.lang.unnest(dojo.date.getNames("days", this.dayWidth, "standAlone", this.lang));
if (this.weekStartsOn > 0) {
for (var i = 0; i < this.weekStartsOn; i++) {
dayLabels.push(dayLabels.shift());
}
}
var dayLabelNodes = this.dayLabelsRow.getElementsByTagName("td");
for (i = 0; i < 7; i++) {
dayLabelNodes.item(i).innerHTML = dayLabels[i];
}
if (this.value) {
this.setValue(this.value);
}
}, getValue:function () {
return dojo.date.toRfc3339(new Date(this.value), "dateOnly");
}, getDate:function () {
return this.value;
}, setValue:function (rfcDate) {
this.setDate(rfcDate);
}, setDate:function (dateObj) {
if (dateObj == "") {
this.value = "";
this._preInitUI(this.curMonth, false, true);
} else {
if (typeof dateObj == "string") {
this.value = dojo.date.fromRfc3339(dateObj);
this.value.setHours(0, 0, 0, 0);
} else {
this.value = new Date(dateObj);
this.value.setHours(0, 0, 0, 0);
}
}
if (this.selectedNode != null) {
dojo.html.removeClass(this.selectedNode, this.classNames.selectedDate);
}
if (this.clickedNode != null) {
dojo.debug("adding selectedDate");
dojo.html.addClass(this.clickedNode, this.classNames.selectedDate);
this.selectedNode = this.clickedNode;
} else {
this._preInitUI(this.value, false, true);
}
this.clickedNode = null;
this.onValueChanged(this.value);
}, _preInitUI:function (dateObj, initFirst, initUI) {
if (typeof (this.startDate) == "string") {
this.startDate = dojo.date.fromRfc3339(this.startDate);
}
if (typeof (this.endDate) == "string") {
this.endDate = dojo.date.fromRfc3339(this.endDate);
}
this.startDate.setHours(0, 0, 0, 0);
this.endDate.setHours(24, 0, 0, -1);
if (dateObj < this.startDate || dateObj > this.endDate) {
dateObj = new Date((dateObj < this.startDate) ? this.startDate : this.endDate);
}
this.firstDay = this._initFirstDay(dateObj, initFirst);
this.selectedIsUsed = false;
this.currentIsUsed = false;
var nextDate = new Date(this.firstDay);
var tmpMonth = nextDate.getMonth();
this.curMonth = new Date(nextDate);
this.curMonth.setDate(nextDate.getDate() + 6);
this.curMonth.setDate(1);
if (this.displayWeeks == "" || this.adjustWeeks) {
this.adjustWeeks = true;
this.displayWeeks = Math.ceil((dojo.date.getDaysInMonth(this.curMonth) + this._getAdjustedDay(this.curMonth)) / 7);
}
var days = this.displayWeeks * 7;
if (dojo.date.diff(this.startDate, this.endDate, dojo.date.dateParts.DAY) < days) {
this.staticDisplay = true;
if (dojo.date.diff(nextDate, this.endDate, dojo.date.dateParts.DAY) > days) {
this._preInitUI(this.startDate, true, false);
nextDate = new Date(this.firstDay);
}
this.curMonth = new Date(nextDate);
this.curMonth.setDate(nextDate.getDate() + 6);
this.curMonth.setDate(1);
var curClass = (nextDate.getMonth() == this.curMonth.getMonth()) ? "current" : "previous";
}
if (initUI) {
this._initUI(days);
}
}, _initUI:function (days) {
dojo.dom.removeChildren(this.calendarDatesContainerNode);
for (var i = 0; i < this.displayWeeks; i++) {
this.calendarDatesContainerNode.appendChild(this.weekTemplate.cloneNode(true));
}
var nextDate = new Date(this.firstDay);
this._setMonthLabel(this.curMonth.getMonth());
this._setYearLabels(this.curMonth.getFullYear());
var calendarNodes = this.calendarDatesContainerNode.getElementsByTagName("td");
var calendarRows = this.calendarDatesContainerNode.getElementsByTagName("tr");
var currentCalendarNode;
for (i = 0; i < days; i++) {
currentCalendarNode = calendarNodes.item(i);
currentCalendarNode.innerHTML = nextDate.getDate();
currentCalendarNode.setAttribute("djDateValue", nextDate.valueOf());
var curClass = (nextDate.getMonth() != this.curMonth.getMonth() && Number(nextDate) < Number(this.curMonth)) ? "previous" : (nextDate.getMonth() == this.curMonth.getMonth()) ? "current" : "next";
var mappedClass = curClass;
if (this._isDisabledDate(nextDate)) {
var classMap = {previous:"disabledPrevious", current:"disabledCurrent", next:"disabledNext"};
mappedClass = classMap[curClass];
}
dojo.html.setClass(currentCalendarNode, this._getDateClassName(nextDate, mappedClass));
if (dojo.html.hasClass(currentCalendarNode, this.classNames.selectedDate)) {
this.selectedNode = currentCalendarNode;
}
nextDate = dojo.date.add(nextDate, dojo.date.dateParts.DAY, 1);
}
this.lastDay = dojo.date.add(nextDate, dojo.date.dateParts.DAY, -1);
this._initControls();
}, _initControls:function () {
var d = this.firstDay;
var d2 = this.lastDay;
var decWeek, incWeek, decMonth, incMonth, decYear, incYear;
decWeek = incWeek = decMonth = incMonth = decYear = incYear = !this.staticDisplay;
with (dojo.date.dateParts) {
var add = dojo.date.add;
if (decWeek && add(d, DAY, (-1 * (this._getAdjustedDay(d) + 1))) < this.startDate) {
decWeek = decMonth = decYear = false;
}
if (incWeek && d2 > this.endDate) {
incWeek = incMonth = incYear = false;
}
if (decMonth && add(d, DAY, -1) < this.startDate) {
decMonth = decYear = false;
}
if (incMonth && add(d2, DAY, 1) > this.endDate) {
incMonth = incYear = false;
}
if (decYear && add(d2, YEAR, -1) < this.startDate) {
decYear = false;
}
if (incYear && add(d, YEAR, 1) > this.endDate) {
incYear = false;
}
}
function enableControl(node, enabled) {
dojo.html.setVisibility(node, enabled ? "" : "hidden");
}
enableControl(this.decreaseWeekNode, decWeek);
enableControl(this.increaseWeekNode, incWeek);
enableControl(this.decreaseMonthNode, decMonth);
enableControl(this.increaseMonthNode, incMonth);
enableControl(this.previousYearLabelNode, decYear);
enableControl(this.nextYearLabelNode, incYear);
}, _incrementWeek:function (evt) {
var d = new Date(this.firstDay);
switch (evt.target) {
case this.increaseWeekNode.getElementsByTagName("img").item(0):
case this.increaseWeekNode:
var tmpDate = dojo.date.add(d, dojo.date.dateParts.WEEK, 1);
if (tmpDate < this.endDate) {
d = dojo.date.add(d, dojo.date.dateParts.WEEK, 1);
}
lib/HTML/Dojo/src.pm view on Meta::CPAN
}, getnodeDocType:function (node) {
var nodeDocType = node.getnodeDocType();
if (!nodeDocType) {
nodeDocType = node.isFolder ? "Folder" : "Document";
}
return nodeDocType;
}, setnodeDocTypeClass:function (node) {
var reg = new RegExp("(^|\\s)" + node.tree.classPrefix + "Icon\\w+", "g");
var clazz = dojo.html.getClass(node.iconNode).replace(reg, "") + " " + node.tree.classPrefix + "Icon" + this.getnodeDocType(node);
dojo.html.setClass(node.iconNode, clazz);
}, onAfterSetFolder:function (message) {
if (message.source.iconNode) {
this.setnodeDocTypeClass(message.source);
}
}, onAfterUnsetFolder:function (message) {
this.setnodeDocTypeClass(message.source);
}, listenNode:function (node) {
node.contentIconNode = document.createElement("div");
var clazz = node.tree.classPrefix + "IconContent";
if (dojo.render.html.ie) {
clazz = clazz + " " + node.tree.classPrefix + "IEIconContent";
}
dojo.html.setClass(node.contentIconNode, clazz);
node.contentNode.parentNode.replaceChild(node.contentIconNode, node.expandNode);
node.iconNode = document.createElement("div");
dojo.html.setClass(node.iconNode, node.tree.classPrefix + "Icon" + " " + node.tree.classPrefix + "Icon" + this.getnodeDocType(node));
node.contentIconNode.appendChild(node.expandNode);
node.contentIconNode.appendChild(node.iconNode);
dojo.dom.removeNode(node.contentNode);
node.contentIconNode.appendChild(node.contentNode);
}, onAfterChangeTree:function (message) {
var _this = this;
if (!message.oldTree || !this.listenedTrees[message.oldTree.widgetId]) {
this.processDescendants(message.node, this.listenNodeFilter, this.listenNode);
}
}});
}});
__CPAN_FILE__ src/widget/TimePicker.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.TimePicker");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.date.serialize");
dojo.require("dojo.date.format");
dojo.require("dojo.dom");
dojo.require("dojo.html.style");
dojo.requireLocalization("dojo.i18n.calendar", "gregorian", null, "ko,zh-cn,zh,sv,ja,en,zh-tw,it,hu,nl,fi,zh-hk,fr,pt,ROOT,es,de,pt-br");
dojo.requireLocalization("dojo.widget", "TimePicker", null, "ROOT");
dojo.widget.defineWidget("dojo.widget.TimePicker", dojo.widget.HtmlWidget, function () {
this.time = "";
this.useDefaultTime = false;
this.useDefaultMinutes = false;
this.storedTime = "";
this.currentTime = {};
this.classNames = {selectedTime:"selectedItem"};
this.any = "any";
this.selectedTime = {hour:"", minute:"", amPm:"", anyTime:false};
this.hourIndexMap = ["", 2, 4, 6, 8, 10, 1, 3, 5, 7, 9, 11, 0];
this.minuteIndexMap = [0, 2, 4, 6, 8, 10, 1, 3, 5, 7, 9, 11];
}, {isContainer:false, templateString:"<div class=\"timePickerContainer\" dojoAttachPoint=\"timePickerContainerNode\">\n\t<table class=\"timeContainer\" cellspacing=\"0\" >\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<td class=\"timeCorner cornerTopLeft\" vali...
dojo.widget.TimePicker.superclass.postMixInProperties.apply(this, arguments);
this.calendar = dojo.i18n.getLocalization("dojo.i18n.calendar", "gregorian", this.lang);
this.widgetStrings = dojo.i18n.getLocalization("dojo.widget", "TimePicker", this.lang);
}, fillInTemplate:function (args, frag) {
var source = this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode, source);
if (args.value) {
if (args.value instanceof Date) {
this.storedTime = dojo.date.toRfc3339(args.value);
} else {
this.storedTime = args.value;
}
}
this.initData();
this.initUI();
}, initData:function () {
if (this.storedTime.indexOf("T") != -1 && this.storedTime.split("T")[1] && this.storedTime != " " && this.storedTime.split("T")[1] != "any") {
this.time = dojo.widget.TimePicker.util.fromRfcDateTime(this.storedTime, this.useDefaultMinutes, this.selectedTime.anyTime);
} else {
if (this.useDefaultTime) {
this.time = dojo.widget.TimePicker.util.fromRfcDateTime("", this.useDefaultMinutes, this.selectedTime.anyTime);
} else {
this.selectedTime.anyTime = true;
this.time = dojo.widget.TimePicker.util.fromRfcDateTime("", 0, 1);
}
}
}, initUI:function () {
if (!this.selectedTime.anyTime && this.time) {
var amPmHour = dojo.widget.TimePicker.util.toAmPmHour(this.time.getHours());
var hour = amPmHour[0];
var isAm = amPmHour[1];
var minute = this.time.getMinutes();
var minuteIndex = parseInt(minute / 5);
this.onSetSelectedHour(this.hourIndexMap[hour]);
this.onSetSelectedMinute(this.minuteIndexMap[minuteIndex]);
this.onSetSelectedAmPm(isAm);
} else {
this.onSetSelectedAnyTime();
}
}, setTime:function (date) {
if (date) {
this.selectedTime.anyTime = false;
this.setDateTime(dojo.date.toRfc3339(date));
} else {
this.selectedTime.anyTime = true;
}
this.initData();
this.initUI();
}, setDateTime:function (rfcDate) {
this.storedTime = rfcDate;
}, onClearSelectedHour:function (evt) {
this.clearSelectedHour();
}, onClearSelectedMinute:function (evt) {
this.clearSelectedMinute();
}, onClearSelectedAmPm:function (evt) {
this.clearSelectedAmPm();
}, onClearSelectedAnyTime:function (evt) {
this.clearSelectedAnyTime();
if (this.selectedTime.anyTime) {
this.selectedTime.anyTime = false;
this.time = dojo.widget.TimePicker.util.fromRfcDateTime("", this.useDefaultMinutes);
this.initUI();
lib/HTML/Dojo/src.pm view on Meta::CPAN
.TreeStateChildrenNo-ExpandOpen .TreeIconContent {
background-image : url();
}
/* highest priority */
.TreeIconDocument {
background-image: url('../templates/images/TreeV3/document.gif');
}
.TreeExpandOpen .TreeIconFolder {
background-image: url('../templates/images/TreeV3/open.gif');
}
.TreeExpandClosed .TreeIconFolder {
background-image: url('../templates/images/TreeV3/closed.gif');
}
/* generic class for docIcon */
.TreeIcon {
width: 18px;
height: 18px;
float: left;
display: inline;
background-repeat : no-repeat;
}
div.TreeContent {
margin-left: 36px;
}
__CPAN_FILE__ src/widget/templates/MonthlyCalendar.css
.datePickerContainer {
margin:0.5em 2em 0.5em 0;
/*width:10em;*/
float:left;
}
.previousMonth {
background-color:#bbbbbb;
}
.currentMonth {
background-color:#8f8f8f;
}
.nextMonth {
background-color:#eeeeee;
}
.currentDate {
text-decoration:underline;
font-style:italic;
}
.selectedItem {
background-color:#3a3a3a;
color:#ffffff;
}
.calendarContainer {
border-collapse:collapse;
border-spacing:0;
border-bottom:1px solid #e6e6e6;
overflow: hidden;
text-align: right;
}
.calendarContainer thead{
border-bottom:1px solid #e6e6e6;
}
.calendarContainer tbody * td {
height: 100px;
border: 1px solid gray;
}
.calendarContainer td {
width: 100px;
padding: 2px;
vertical-align: top;
}
.monthLabel {
font-size:0.9em;
font-weight:400;
margin:0;
text-align:center;
}
.monthLabel .month {
padding:0 0.4em 0 0.4em;
}
.yearLabel {
font-size:0.9em;
font-weight:400;
margin:0.25em 0 0 0;
text-align:right;
color:#a3a3a3;
}
.yearLabel .selectedYear {
color:#000;
padding:0 0.2em;
}
.nextYear, .previousYear {
cursor:pointer;cursor:hand;
}
.incrementControl {
cursor:pointer;cursor:hand;
width:1em;
}
.dojoMonthlyCalendarEvent {
font-size:0.7em;
overflow: hidden;
font-color: grey;
white-space: nowrap;
text-align: left;
}
__CPAN_FILE__ src/widget/templates/ComboBox.html
<span _="whitespace and CR's between tags adds in FF"
class="dojoComboBoxOuter"
><input style="display:none" tabindex="-1" name="" value=""
dojoAttachPoint="comboBoxValue"
><input style="display:none" tabindex="-1" name="" value=""
dojoAttachPoint="comboBoxSelectionValue"
><input type="text" autocomplete="off" class="dojoComboBox"
dojoAttachEvent="key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize;"
dojoAttachPoint="textInputNode"
><img hspace="0"
vspace="0"
class="dojoComboBox"
dojoAttachPoint="downArrowNode"
lib/HTML/Dojo/src.pm view on Meta::CPAN
margin: 0px;
}
.dojoComboBoxItemEven {
background-color: #f4f4f4;
}
.dojoComboBoxItemOdd {
background-color: white;
}
.dojoComboBoxItemHighlight {
background-color: #63709A;
color: white;
}
__CPAN_FILE__ src/widget/templates/TabContainer.html
<div id="${this.widgetId}" class="dojoTabContainer">
<div dojoAttachPoint="tablistNode"></div>
<div class="dojoTabPaneWrapper" dojoAttachPoint="containerNode" dojoAttachEvent="onKey" waiRole="tabpanel"></div>
</div>
__CPAN_FILE__ src/widget/templates/richtextframe.html
<!-- <?xml version="1.0" encoding="UTF-8"?> -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<script type="text/javascript">
function init(){
document.designMode = 'on';
try{
parentPageDomain = document.location.href.split('#')[1];
if(parentPageDomain){
document.domain = parentPageDomain;
}
}catch(e){ }
}
window.onload = init;
</script>
</head>
<body>
<br />
</body>
</html>
__CPAN_FILE__ src/widget/templates/AccordionPane.html
<div dojoAttachPoint="domNode">
<div dojoAttachPoint="labelNode" dojoAttachEvent="onclick: onLabelClick" class="${this.labelNodeClass}">${this.label}</div>
<div dojoAttachPoint="containerNode" style="overflow: hidden;" class="${this.containerNodeClass}"></div>
</div>
__CPAN_FILE__ src/widget/templates/TimePicker.html
<div class="timePickerContainer" dojoAttachPoint="timePickerContainerNode">
<table class="timeContainer" cellspacing="0" >
<thead>
<tr>
<td class="timeCorner cornerTopLeft" valign="top"> </td>
<td class="timeLabelContainer hourSelector">${this.calendar.field-hour}</td>
<td class="timeLabelContainer minutesHeading">${this.calendar.field-minute}</td>
<td class="timeCorner cornerTopRight" valign="top"> </td>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" colspan="2" class="hours">
<table align="center">
<tbody dojoAttachPoint="hourContainerNode"
dojoAttachEvent="onClick: onSetSelectedHour;">
<tr>
<td>12</td>
<td>6</td>
</tr>
<tr>
<td>1</td>
<td>7</td>
</tr>
<tr>
<td>2</td>
<td>8</td>
</tr>
<tr>
<td>3</td>
<td>9</td>
</tr>
<tr>
<td>4</td>
<td>10</td>
</tr>
<tr>
<td>5</td>
<td>11</td>
</tr>
</tbody>
</table>
</td>
<td valign="top" class="minutes" colspan="2">
<table align="center">
<tbody dojoAttachPoint="minuteContainerNode"
dojoAttachEvent="onClick: onSetSelectedMinute;">
<tr>
<td>00</td>
<td>30</td>
</tr>
<tr>
<td>05</td>
<td>35</td>
</tr>
<tr>
<td>10</td>
<td>40</td>
</tr>
<tr>
<td>15</td>
<td>45</td>
</tr>
<tr>
<td>20</td>
<td>50</td>
</tr>
<tr>
<td>25</td>
<td>55</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="cornerBottomLeft"> </td>
<td valign="top" class="timeOptions">
<table class="amPmContainer">
<tbody dojoAttachPoint="amPmContainerNode"
dojoAttachEvent="onClick: onSetSelectedAmPm;">
<tr>
<td id="am">${this.calendar.am}</td>
<td id="pm">${this.calendar.pm}</td>
</tr>
</tbody>
</table>
</td>
<td class="timeOptions">
<div dojoAttachPoint="anyTimeContainerNode"
dojoAttachEvent="onClick: onSetSelectedAnyTime;"
class="anyTimeContainer">${this.widgetStrings.any}</div>
</td>
<td class="cornerBottomRight"> </td>
</tr>
</tbody>
</table>
</div>
__CPAN_FILE__ src/widget/templates/CiviCrmDatePicker.html
<table cellpadding="0" cellspacing="0" border="0" width="400">
<tr>
<td id="dateHolderTd" width="200">
</td>
<td id="timeHolderTd" width="200">
</td>
</tr>
<tr style="display: none;" id="formItemsTr">
<td id="formItemsTd"> </td>
<td> </td>
</tr>
</table>
__CPAN_FILE__ src/widget/templates/FloatingPane.css
/********** Outer Window ***************/
.dojoFloatingPane {
/* essential css */
position: absolute;
overflow: visible; /* so drop shadow is displayed */
z-index: 10;
/* styling css */
border: 1px solid;
border-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;
background-color: ThreeDFace;
}
/********** Title Bar ****************/
.dojoFloatingPaneTitleBar {
vertical-align: top;
margin: 2px 2px 2px 2px;
z-index: 10;
background-color: #7596c6;
cursor: default;
overflow: hidden;
border-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;
vertical-align: middle;
}
.dojoFloatingPaneTitleText {
lib/HTML/Dojo/src.pm view on Meta::CPAN
.inlineEditBox {
/*background-color : #ffc;*/
display : inline;
}
__CPAN_FILE__ src/widget/templates/CheckboxA11y.html
<span class='dojoHtmlCheckbox'>
<input type="checkbox" name="${this.name}" tabIndex="${this.tabIndex}" id="${this.id}" value="${this.value}"
dojoAttachEvent="onClick: _onClick;" dojoAttachPoint="inputNode">
</span>
__CPAN_FILE__ src/widget/templates/SliderVertical.html
<div class="sliderMainVertical">
<div class="sliderHandleVertical" dojoAttachPoint="sliderHandle"></div>
</div>
__CPAN_FILE__ src/widget/templates/SplitContainer.css
.dojoSplitContainer{
position: relative;
overflow: hidden;
display: block;
}
.dojoSplitPane{
position: absolute;
}
.dojoSplitContainerSizerH,
.dojoSplitContainerSizerV {
font-size: 1px;
cursor: move;
cursor: w-resize;
background-color: ThreeDFace;
border: 1px solid;
border-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;
margin: 0;
}
.dojoSplitContainerSizerV {
cursor: n-resize;
}
.dojoSplitContainerVirtualSizerH,
.dojoSplitContainerVirtualSizerV {
font-size: 1px;
cursor: move;
cursor: w-resize;
background-color: ThreeDShadow;
-moz-opacity: 0.5;
opacity: 0.5;
filter: Alpha(Opacity=50);
margin: 0;
}
.dojoSplitContainerVirtualSizerV {
cursor: n-resize;
}
__CPAN_FILE__ src/widget/templates/DatePicker.html
<div class="datePickerContainer" dojoAttachPoint="datePickerContainerNode">
<table cellspacing="0" cellpadding="0" class="calendarContainer">
<thead>
<tr>
<td class="monthWrapper" valign="top">
<table class="monthContainer" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="monthCurve monthCurveTL" valign="top"></td>
<td class="monthLabelContainer" valign="top">
<span dojoAttachPoint="increaseWeekNode"
dojoAttachEvent="onClick: onIncrementWeek;"
class="incrementControl increase">
<img src="${dojoWidgetModuleUri}templates/images/incrementMonth.png"
alt="↓" style="width:7px;height:5px;" />
</span>
<span
dojoAttachPoint="increaseMonthNode"
dojoAttachEvent="onClick: onIncrementMonth;" class="incrementControl increase">
<img src="${dojoWidgetModuleUri}templates/images/incrementMonth.png"
alt="↓" dojoAttachPoint="incrementMonthImageNode">
</span>
<span
dojoAttachPoint="decreaseWeekNode"
dojoAttachEvent="onClick: onIncrementWeek;"
class="incrementControl decrease">
<img src="${dojoWidgetModuleUri}templates/images/decrementMonth.png" alt="↑" style="width:7px;height:5px;" />
</span>
<span
dojoAttachPoint="decreaseMonthNode"
dojoAttachEvent="onClick: onIncrementMonth;" class="incrementControl decrease">
<img src="${dojoWidgetModuleUri}templates/images/decrementMonth.png"
alt="↑" dojoAttachPoint="decrementMonthImageNode">
</span>
<span dojoAttachPoint="monthLabelNode" class="month"></span>
</td>
<td class="monthCurve monthCurveTR" valign="top"></td>
</tr>
</table>
</td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3">
<table class="calendarBodyContainer" cellspacing="0" cellpadding="0" border="0">
<thead>
<tr dojoAttachPoint="dayLabelsRow">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</thead>
<tbody dojoAttachPoint="calendarDatesContainerNode"
dojoAttachEvent="onClick: _handleUiClick;">
<tr dojoAttachPoint="calendarWeekTemplate">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3" class="yearWrapper">
<table cellspacing="0" cellpadding="0" border="0" class="yearContainer">
<tr>
<td class="curveBL" valign="top"></td>
<td valign="top">
<h3 class="yearLabel">
<span dojoAttachPoint="previousYearLabelNode"
dojoAttachEvent="onClick: onIncrementYear;" class="previousYear"></span>
<span class="selectedYear" dojoAttachPoint="currentYearLabelNode"></span>
<span dojoAttachPoint="nextYearLabelNode"
dojoAttachEvent="onClick: onIncrementYear;" class="nextYear"></span>
</h3>
</td>
<td class="curveBR" valign="top"></td>
</tr>
</table>
</td>
</tr>
</tfoot>
</table>
</div>
__CPAN_FILE__ src/widget/templates/Textbox.html
<span style='float:${this.htmlfloat};'>
<input dojoAttachPoint='textbox' dojoAttachEvent='onblur;onfocus'
id='${this.widgetId}' name='${this.name}'
class='${this.className}' type='${this.type}' >
</span>
__CPAN_FILE__ src/widget/templates/ShowSlide.html
<div class="dojoShowSlide">
<div class="dojoShowSlideTitle">
<h1 dojoAttachPoint="htmlTitle">Title</h1>
</div>
<div class="dojoShowSlideBody" dojoAttachPoint="containerNode"></div>
</div>
__CPAN_FILE__ src/widget/templates/TaskBarItemTemplate.html
<div class="dojoTaskBarItem" dojoAttachEvent="onClick">
</div>
__CPAN_FILE__ src/widget/templates/EditorToolbar.html
<div dojoAttachPoint="domNode" class="EditorToolbarDomNode" unselectable="on">
<table cellpadding="3" cellspacing="0" border="0">
<!--
our toolbar should look something like:
lib/HTML/Dojo/src.pm view on Meta::CPAN
</div>
__CPAN_FILE__ src/widget/templates/DemoEngine.html
<div dojoAttachPoint="domNode">
<div dojoAttachPoint="navigationNode">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" valign="top" class="navigationCell"><h1>Categories</h1><div dojoAttachPoint="menuNavigationNode"></div></td>
<td width="99%" valign="top">
<div dojoAttachPoint="demoNavigationNode">
</div>
</td>
</tr>
</table>
</div>
<div dojoAttachPoint="demoContainerNode">
<div dojoAttachPoint="demoPaneNode">
</div>
<div dojoAttachPoint="demoHeaderNode">
<span dojoAttachPoint="collapsedMenuNode" dojoAttachEvent="onclick: expandDemoNavigation"></span>
<div dojoAttachPoint="aboutNode">About this Demo</div>
</div>
</div>
</div>
__CPAN_FILE__ src/widget/templates/MonthlyCalendar.html
<div class="datePickerContainer" dojoAttachPoint="datePickerContainerNode">
<h3 class="monthLabel">
<!--
<span
dojoAttachPoint="decreaseWeekNode"
dojoAttachEvent="onClick: onIncrementWeek;"
class="incrementControl">
<img src="${dojoWidgetModuleUri}templates/decrementWeek.gif" alt="↑" />
</span>
-->
<span
dojoAttachPoint="decreaseMonthNode"
dojoAttachEvent="onClick: onIncrementMonth;" class="incrementControl">
<img src="${dojoWidgetModuleUri}templates/decrementMonth.gif"
alt="↑" dojoAttachPoint="decrementMonthImageNode">
</span>
<span dojoAttachPoint="monthLabelNode" class="month">July</span>
<span
dojoAttachPoint="increaseMonthNode"
dojoAttachEvent="onClick: onIncrementMonth;" class="incrementControl">
<img src="${dojoWidgetModuleUri}templates/incrementMonth.gif"
alt="↓" dojoAttachPoint="incrementMonthImageNode">
</span>
<!--
<span dojoAttachPoint="increaseWeekNode"
dojoAttachEvent="onClick: onIncrementWeek;"
class="incrementControl">
<img src="${dojoWidgetModuleUri}templates/incrementWeek.gif"
alt="↓" />
</span>
-->
</h3>
<table class="calendarContainer">
<thead>
<tr dojoAttachPoint="dayLabelsRow">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</thead>
<tbody dojoAttachPoint="calendarDatesContainerNode"
dojoAttachEvent="onClick: onSetDate;">
<tr dojoAttachPoint="calendarRow0">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr dojoAttachPoint="calendarRow1">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr dojoAttachPoint="calendarRow2">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr dojoAttachPoint="calendarRow3">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr dojoAttachPoint="calendarRow4">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr dojoAttachPoint="calendarRow5">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<h3 class="yearLabel">
<span dojoAttachPoint="previousYearLabelNode"
dojoAttachEvent="onClick: onIncrementYear;" class="previousYear"></span>
<span class="selectedYear" dojoAttachPoint="currentYearLabelNode"></span>
<span dojoAttachPoint="nextYearLabelNode"
dojoAttachEvent="onClick: onIncrementYear;" class="nextYear"></span>
</h3>
</div>
__CPAN_FILE__ src/widget/templates/RemoteTabControl.css
.dojoRemoteTabController {
position: relative;
}
.dojoRemoteTab {
position : relative;
float : left;
padding-left : 9px;
border-bottom : 1px solid #6290d2;
background : url(images/tab_left.gif) no-repeat left top;
cursor: pointer;
white-space: nowrap;
z-index: 3;
}
.dojoRemoteTab div {
display : block;
padding : 4px 15px 4px 6px;
background : url(images/tab_top_right.gif) no-repeat right top;
color : #333;
font-size : 90%;
}
.dojoRemoteTabPaneClose {
position : absolute;
bottom : 0px;
right : 6px;
height : 12px;
width : 12px;
background : url(images/tab_close.gif) no-repeat right top;
}
.dojoRemoteTabPaneCloseHover {
background-image : url(images/tab_close_h.gif);
}
.dojoRemoteTabClose {
display : inline-block;
height : 12px;
width : 12px;
lib/HTML/Dojo/src.pm view on Meta::CPAN
top : 0px;
left : 0px;
overflow : visible;
margin-right : -1px;
z-index: 2;
}
.dojoTabLabels-left-h .dojoTab {
border-right : 1px solid #6290d2;
border-bottom : 0;
float : none;
}
.dojoTabLabels-left-h .dojoTab.current {
border-right : 0;
border-bottom : 1px solid #6290d2;
padding-bottom : 0;
}
.dojoTabLabels-left-h .dojoTab div {
background : 0;
border-bottom : 1px solid #6290d2;
}
__CPAN_FILE__ src/widget/templates/Show.html
<div class="dojoShow">
<div dojoAttachPoint="contentNode"></div>
<div class="dojoShowNav" dojoAttachPoint="nav">
<div class="dojoShowHider" dojoAttachPoint="hider"></div>
<span unselectable="on" style="cursor: default;" dojoAttachEvent="onClick:previousSlide"><</span>
<select dojoAttachEvent="onClick:gotoSlideByEvent" dojoAttachPoint="select">
<option dojoAttachPoint="option">Title</option>
</select>
<span unselectable="on" style="cursor: default;" dojoAttachEvent="onClick:nextSlide">></span>
</div>
</div>
__CPAN_FILE__ src/widget/templates/SlideShow.html
<div style="position: relative; padding: 3px;">
<div>
<input type="button" value="pause"
dojoAttachPoint="startStopButton"
dojoAttachEvent="onClick: togglePaused;">
</div>
<div style="position: relative; width: ${this.width}; height: ${this.height};"
dojoAttachPoint="imagesContainer"
dojoAttachEvent="onClick: togglePaused;">
<img dojoAttachPoint="img1" class="slideShowImg"
style="z-index: 1; width: ${this.width}; height: ${this.height};" />
<img dojoAttachPoint="img2" class="slideShowImg"
style="z-index: 0; width: ${this.width}; height: ${this.height};" />
</div>
</div>
__CPAN_FILE__ src/widget/templates/grabCorner.gif
GIF89a
djpÿÿÿ!ù,
©RPyÊúEtÓZÞ¤u3¢á[!;
__CPAN_FILE__ src/widget/templates/DatePicker.css
.datePickerContainer {
width:164px; /* needed for proper user styling */
}
.calendarContainer {
/* border:1px solid #566f8f;*/
}
.calendarBodyContainer {
width:100%; /* needed for the explode effect (explain?) */
background: #7591bc url("images/dpBg.gif") top left repeat-x;
}
.calendarBodyContainer thead tr td {
color:#293a4b;
font:bold 0.75em Helvetica, Arial, Verdana, sans-serif;
text-align:center;
padding:0.25em;
background: url("images/dpHorizLine.gif") bottom left repeat-x;
}
.calendarBodyContainer tbody tr td {
color:#fff;
font:bold 0.7em Helvetica, Arial, Verdana, sans-serif;
text-align:center;
padding:0.4em;
background: url("images/dpVertLine.gif") top right repeat-y;
cursor:pointer;
cursor:hand;
}
.monthWrapper {
padding-bottom:2px;
background: url("images/dpHorizLine.gif") bottom left repeat-x;
}
.monthContainer {
width:100%;
}
.monthLabelContainer {
text-align:center;
font:bold 0.75em Helvetica, Arial, Verdana, sans-serif;
background: url("images/dpMonthBg.png") repeat-x top left !important;
color:#293a4b;
padding:0.25em;
}
.monthCurve {
width:12px;
}
.monthCurveTL {
background: url("images/dpCurveTL.png") no-repeat top left !important;
}
.monthCurveTR {
background: url("images/dpCurveTR.png") no-repeat top right !important;
}
.yearWrapper {
background: url("images/dpHorizLineFoot.gif") top left repeat-x;
padding-top:2px;
}
.yearContainer {
width:100%;
}
.yearContainer td {
background:url("images/dpYearBg.png") top left repeat-x;
}
.yearContainer .yearLabel {
margin:0;
padding:0.45em 0 0.45em 0;
color:#fff;
font:bold 0.75em Helvetica, Arial, Verdana, sans-serif;
text-align:center;
}
lib/HTML/Dojo/src.pm view on Meta::CPAN
return Number.NaN;
}
var whole = Number(numbers[0].replace(new RegExp("\\" + flags.separator, "g"), ""));
var fract = (numbers.length == 1) ? 0 : Number(numbers[1]) / Math.pow(10, String(numbers[1]).length);
return whole + fract;
};
dojo.i18n.number.isInteger = function (value, locale, flags) {
flags = (typeof flags == "object") ? flags : {};
var formatData = dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE, locale);
if (typeof flags.separator == "undefined") {
flags.separator = formatData[1];
} else {
if (dojo.lang.isArray(flags.separator) && flags.separator.length === 0) {
flags.separator = [formatData[1], ""];
}
}
if (typeof flags.groupSize == "undefined") {
flags.groupSize = formatData[3];
}
if (typeof flags.groupSize2 == "undefined") {
flags.groupSize2 = formatData[4];
}
var re = new RegExp("^" + dojo.regexp.integer(flags) + "$");
return re.test(value);
};
dojo.i18n.number.isReal = function (value, locale, flags) {
flags = (typeof flags == "object") ? flags : {};
var formatData = dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE, locale);
if (typeof flags.separator == "undefined") {
flags.separator = formatData[1];
} else {
if (dojo.lang.isArray(flags.separator) && flags.separator.length === 0) {
flags.separator = [formatData[1], ""];
}
}
if (typeof flags.decimal == "undefined") {
flags.decimal = formatData[2];
}
if (typeof flags.groupSize == "undefined") {
flags.groupSize = formatData[3];
}
if (typeof flags.groupSize2 == "undefined") {
flags.groupSize2 = formatData[4];
}
var re = new RegExp("^" + dojo.regexp.realNumber(flags) + "$");
return re.test(value);
};
(function () {
dojo.i18n.number.FORMAT_TABLE = {"ar-ae":["", "", ",", 1], "ar-bh":["", "", ",", 1], "ar-dz":["", "", ",", 1], "ar-eg":["", "", ",", 1], "ar-jo":["", "", ",", 1], "ar-kw":["", "", ",", 1], "ar-lb":["", "", ",", 1], "ar-ma":["", "", ",", 1], "ar-om":...
})();
dojo.i18n.number._mapToLocalizedFormatData = function (table, locale) {
locale = dojo.hostenv.normalizeLocale(locale);
var data = table[locale];
if (typeof data == "undefined") {
data = table["*"];
}
return data;
};
__CPAN_DIR__ src/i18n/calendar
__CPAN_DIR__ src/i18n/calendar/nls
__CPAN_FILE__ src/i18n/calendar/nls/gregorianExtras.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"dateFormat-yearOnly":"yyyy"})
__CPAN_FILE__ src/i18n/calendar/nls/README
All files within this directory and subdirectories were manually derived from http://unicode.org/cldr
See terms of use: http://www.unicode.org/copyright.html#Exhibit1
Eventually, this data should be generated directly from the XML in the CLDR repository to provide
accurate and full support for the full set of locales.
__CPAN_FILE__ src/i18n/calendar/nls/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"field-weekday":"Day of the Week", "dateFormat-medium":"yyyy MMM d", "field-second":"Second", "field-week":"Week", "pm":"PM", "timeFormat-full":"HH:mm:ss z", "months-standAlone-narrow":["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]...
__CPAN_FILE__ src/i18n/calendar/nls/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "", ({"field-weekday":"Day of the Week", "dateFormat-medium":"yyyy MMM d", "field-second":"Second", "field-week":"Week", "pm":"PM", "timeFormat-full":"HH:mm:ss z", "months-standAl...
}})
__CPAN_FILE__ src/i18n/calendar/nls/gregorianExtras.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.gregorianExtras"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorianExtras", "", ({"dateFormat-yearOnly":"yyyy"}));
}})
__CPAN_DIR__ src/i18n/calendar/nls/es
__CPAN_FILE__ src/i18n/calendar/nls/es/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"field-weekday":"d\xeda de la semana", "dateFormat-medium":"dd-MMM-yy", "field-second":"segundo", "field-week":"semana", "pm":"p.m.", "timeFormat-full":"HH'H'mm''ss\" z", "months-standAlone-narrow":["E", "F", "M", "A", "M", "J", "J", "A", "S", "O",...
__CPAN_FILE__ src/i18n/calendar/nls/es/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.es.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.es.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "es", ({"field-weekday":"d\xeda de la semana", "dateFormat-medium":"dd-MMM-yy", "field-second":"segundo", "field-week":"semana", "pm":"p.m.", "timeFormat-full":"HH'H'mm''ss\" z", ...
}})
__CPAN_DIR__ src/i18n/calendar/nls/de
__CPAN_FILE__ src/i18n/calendar/nls/de/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"field-weekday":"Wochentag", "dateFormat-medium":"dd.MM.yyyy", "field-second":"Sekunde", "field-week":"Woche", "pm":"nachm.", "timeFormat-full":"H:mm' Uhr 'z", "months-standAlone-narrow":["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],...
__CPAN_FILE__ src/i18n/calendar/nls/de/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.de.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.de.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "de", ({"field-weekday":"Wochentag", "dateFormat-medium":"dd.MM.yyyy", "field-second":"Sekunde", "field-week":"Woche", "pm":"nachm.", "timeFormat-full":"H:mm' Uhr 'z", "months-sta...
}})
__CPAN_DIR__ src/i18n/calendar/nls/zh
__CPAN_FILE__ src/i18n/calendar/nls/zh/gregorianExtras.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"dateFormat-yearOnly":"yyyy'\u5e74'"})
__CPAN_FILE__ src/i18n/calendar/nls/zh/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"days-standAlone-narrow":["\u65e5", "\u4e00", "\u4e8c", "\u4e09", "\u56db", "\u4e94", "\u516d"], "eras":["\u516c\u5143\u524d", "\u516c\u5143"], "am":"\u4e0a\u5348", "months-format-abbr":["\u4e00\u6708", "\u4e8c\u6708", "\u4e09\u6708", "\u56db\u6708...
__CPAN_FILE__ src/i18n/calendar/nls/zh/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.zh.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.zh.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "zh", ({"days-standAlone-narrow":["\u65e5", "\u4e00", "\u4e8c", "\u4e09", "\u56db", "\u4e94", "\u516d"], "eras":["\u516c\u5143\u524d", "\u516c\u5143"], "am":"\u4e0a\u5348", "month...
}})
__CPAN_FILE__ src/i18n/calendar/nls/zh/gregorianExtras.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.zh.gregorianExtras"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.zh.gregorianExtras");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorianExtras", "zh", ({"dateFormat-yearOnly":"yyyy'\u5e74'"}));
}})
__CPAN_DIR__ src/i18n/calendar/nls/ja
__CPAN_FILE__ src/i18n/calendar/nls/ja/gregorianExtras.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"dateFormat-yearOnly":"yyyy\u5e74"})
__CPAN_FILE__ src/i18n/calendar/nls/ja/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"days-standAlone-narrow":["\u65e5", "\u6708", "\u706b", "\u6c34", "\u6728", "\u91d1", "\u571f"], "timeFormat-full":"H'\u6642'mm'\u5206'ss'\u79d2'z", "eras":["\u7d00\u5143\u524d", "\u897f\u66a6"], "timeFormat-medium":"H:mm:ss", "dateFormat-medium":"...
__CPAN_FILE__ src/i18n/calendar/nls/ja/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.ja.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.ja.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "ja", ({"days-standAlone-narrow":["\u65e5", "\u6708", "\u706b", "\u6c34", "\u6728", "\u91d1", "\u571f"], "timeFormat-full":"H'\u6642'mm'\u5206'ss'\u79d2'z", "eras":["\u7d00\u5143\...
}})
__CPAN_FILE__ src/i18n/calendar/nls/ja/gregorianExtras.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.ja.gregorianExtras"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.ja.gregorianExtras");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorianExtras", "ja", ({"dateFormat-yearOnly":"yyyy\u5e74"}));
}})
__CPAN_DIR__ src/i18n/calendar/nls/fi
__CPAN_FILE__ src/i18n/calendar/nls/fi/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"field-weekday":"viikonp\xe4iv\xe4", "dateFormat-medium":"d.M.yyyy", "field-second":"sekunti", "field-week":"viikko", "pm":"ip.", "timeFormat-full":"H.mm.ss v", "months-standAlone-narrow":["T", "H", "M", "H", "T", "K", "H", "E", "S", "L", "M", "J"]...
__CPAN_FILE__ src/i18n/calendar/nls/fi/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.fi.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.fi.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "fi", ({"field-weekday":"viikonp\xe4iv\xe4", "dateFormat-medium":"d.M.yyyy", "field-second":"sekunti", "field-week":"viikko", "pm":"ip.", "timeFormat-full":"H.mm.ss v", "months-st...
}})
__CPAN_DIR__ src/i18n/calendar/nls/zh-cn
__CPAN_FILE__ src/i18n/calendar/nls/zh-cn/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"dateFormat-medium":"yyyy-M-d", "field-second":"\u79d2\u949f", "field-week":"\u5468", "timeFormat-full":"ahh'\u65f6'mm'\u5206'ss'\u79d2' z", "field-year":"\u5e74", "field-minute":"\u5206\u949f", "timeFormat-medium":"ahh:mm:ss", "field-hour":"\u5c0f...
__CPAN_FILE__ src/i18n/calendar/nls/zh-cn/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.zh-cn.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.zh-cn.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "zh-cn", ({"dateFormat-medium":"yyyy-M-d", "field-second":"\u79d2\u949f", "field-week":"\u5468", "timeFormat-full":"ahh'\u65f6'mm'\u5206'ss'\u79d2' z", "field-year":"\u5e74", "fie...
}})
__CPAN_DIR__ src/i18n/calendar/nls/ko
__CPAN_FILE__ src/i18n/calendar/nls/ko/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"months-standAlone-narrow":["1\uc6d4", "2\uc6d4", "3\uc6d4", "4\uc6d4", "5\uc6d4", "6\uc6d4", "7\uc6d4", "8\uc6d4", "9\uc6d4", "10\uc6d4", "11\uc6d4", "12\uc6d4"], "dateFormat-long":"yyyy'\ub144' M'\uc6d4' d'\uc77c'", "timeFormat-full":"a hh'\uc2dc...
__CPAN_FILE__ src/i18n/calendar/nls/ko/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.ko.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.ko.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "ko", ({"months-standAlone-narrow":["1\uc6d4", "2\uc6d4", "3\uc6d4", "4\uc6d4", "5\uc6d4", "6\uc6d4", "7\uc6d4", "8\uc6d4", "9\uc6d4", "10\uc6d4", "11\uc6d4", "12\uc6d4"], "dateFo...
}})
__CPAN_DIR__ src/i18n/calendar/nls/sv
__CPAN_FILE__ src/i18n/calendar/nls/sv/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"field-weekday":"veckodag", "dateFormat-medium":"d MMM yyyy", "field-second":"sekund", "field-week":"vecka", "pm":"em", "timeFormat-full":"'kl. 'HH.mm.ss z", "months-standAlone-narrow":["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], "...
__CPAN_FILE__ src/i18n/calendar/nls/sv/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.sv.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.sv.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "sv", ({"field-weekday":"veckodag", "dateFormat-medium":"d MMM yyyy", "field-second":"sekund", "field-week":"vecka", "pm":"em", "timeFormat-full":"'kl. 'HH.mm.ss z", "months-stand...
}})
__CPAN_DIR__ src/i18n/calendar/nls/en
__CPAN_FILE__ src/i18n/calendar/nls/en/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"months-standAlone-narrow":["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], "dateFormat-long":"MMMM d, yyyy", "timeFormat-full":"h:mm:ss a v", "eras":["BC", "AD"], "timeFormat-medium":"h:mm:ss a", "dateFormat-medium":"MMM d, yyyy", "mo...
__CPAN_FILE__ src/i18n/calendar/nls/en/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.en.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.en.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "en", ({"months-standAlone-narrow":["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], "dateFormat-long":"MMMM d, yyyy", "timeFormat-full":"h:mm:ss a v", "eras":["BC", "...
}})
__CPAN_DIR__ src/i18n/calendar/nls/zh-hk
__CPAN_FILE__ src/i18n/calendar/nls/zh-hk/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"timeFormat-full":"ahh'\u6642'mm'\u5206'ss'\u79d2' z", "eras":["\u897f\u5143\u524d", "\u897f\u5143"], "timeFormat-medium":"a h:mm:ss", "dateFormat-medium":"yyyy/M/d", "dateFormat-full":"yyyy'\u5e74'M'\u6708'd'\u65e5'EEEE", "days-format-abbr":["\u90...
__CPAN_FILE__ src/i18n/calendar/nls/zh-hk/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.zh-hk.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.zh-hk.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "zh-hk", ({"timeFormat-full":"ahh'\u6642'mm'\u5206'ss'\u79d2' z", "eras":["\u897f\u5143\u524d", "\u897f\u5143"], "timeFormat-medium":"a h:mm:ss", "dateFormat-medium":"yyyy/M/d", "...
}})
__CPAN_DIR__ src/i18n/calendar/nls/zh-tw
__CPAN_FILE__ src/i18n/calendar/nls/zh-tw/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"dateFormat-medium":"yyyy'\u5e74'M'\u6708'd'\u65e5'", "field-second":"\u79d2", "field-week":"\u9031", "timeFormat-full":"ahh'\u6642'mm'\u5206'ss'\u79d2' z", "eras":["\u897f\u5143\u524d", "\u897f\u5143"], "field-year":"\u5e74", "field-minute":"\u520...
__CPAN_FILE__ src/i18n/calendar/nls/zh-tw/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.zh-tw.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.zh-tw.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "zh-tw", ({"dateFormat-medium":"yyyy'\u5e74'M'\u6708'd'\u65e5'", "field-second":"\u79d2", "field-week":"\u9031", "timeFormat-full":"ahh'\u6642'mm'\u5206'ss'\u79d2' z", "eras":["\u...
}})
__CPAN_DIR__ src/i18n/calendar/nls/pt
__CPAN_FILE__ src/i18n/calendar/nls/pt/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"months-standAlone-narrow":["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], "dateFormat-long":"d' de 'MMMM' de 'yyyy", "timeFormat-full":"HH'H'mm'm'ss's' z", "eras":["a.C.", "d.C."], "dateFormat-medium":"d/MMM/yyyy", "months-format-abb...
__CPAN_FILE__ src/i18n/calendar/nls/pt/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.pt.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.pt.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "pt", ({"months-standAlone-narrow":["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], "dateFormat-long":"d' de 'MMMM' de 'yyyy", "timeFormat-full":"HH'H'mm'm'ss's' z", ...
}})
__CPAN_DIR__ src/i18n/calendar/nls/it
__CPAN_FILE__ src/i18n/calendar/nls/it/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"field-weekday":"giorno della settimana", "dateFormat-medium":"dd/MMM/yy", "field-second":"secondo", "field-week":"settimana", "pm":"p.", "months-standAlone-narrow":["G", "F", "M", "A", "M", "G", "L", "A", "S", "O", "N", "D"], "am":"m.", "days-stan...
__CPAN_FILE__ src/i18n/calendar/nls/it/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.it.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.it.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "it", ({"field-weekday":"giorno della settimana", "dateFormat-medium":"dd/MMM/yy", "field-second":"secondo", "field-week":"settimana", "pm":"p.", "months-standAlone-narrow":["G", ...
}})
__CPAN_DIR__ src/i18n/calendar/nls/hu
__CPAN_FILE__ src/i18n/calendar/nls/hu/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"field-weekday":"h\xe9t napja", "dateFormat-medium":"yyyy MMM d", "field-second":"m\xe1sodperc", "field-week":"h\xe9t", "pm":"d.u.", "timeFormat-full":"h:mm:ss a v", "months-standAlone-narrow":["J", "F", "M", "\xc1", "M", "J", "J", "A", "S", "O", "...
__CPAN_FILE__ src/i18n/calendar/nls/hu/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.hu.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.hu.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "hu", ({"field-weekday":"h\xe9t napja", "dateFormat-medium":"yyyy MMM d", "field-second":"m\xe1sodperc", "field-week":"h\xe9t", "pm":"d.u.", "timeFormat-full":"h:mm:ss a v", "mont...
}})
__CPAN_DIR__ src/i18n/calendar/nls/pt-br
__CPAN_FILE__ src/i18n/calendar/nls/pt-br/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"field-hour":"Hora", "field-dayperiod":"Per\xedodo do dia", "field-minute":"Minuto", "timeFormat-full":"HH'h'mm'min'ss's' z", "field-weekday":"Dia da semana", "field-week":"Semana", "field-second":"Segundo", "dateFormat-medium":"dd/MM/yyyy", "field...
__CPAN_FILE__ src/i18n/calendar/nls/pt-br/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.pt-br.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.pt-br.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "pt-br", ({"field-hour":"Hora", "field-dayperiod":"Per\xedodo do dia", "field-minute":"Minuto", "timeFormat-full":"HH'h'mm'min'ss's' z", "field-weekday":"Dia da semana", "field-we...
}})
__CPAN_DIR__ src/i18n/calendar/nls/fr
__CPAN_FILE__ src/i18n/calendar/nls/fr/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"field-weekday":"jour de la semaine", "dateFormat-medium":"d MMM yy", "field-second":"seconde", "field-week":"semaine", "pm":"ap. m.", "timeFormat-full":"HH' h 'mm z", "months-standAlone-narrow":["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N...
__CPAN_FILE__ src/i18n/calendar/nls/fr/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.fr.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.fr.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "fr", ({"field-weekday":"jour de la semaine", "dateFormat-medium":"d MMM yy", "field-second":"seconde", "field-week":"semaine", "pm":"ap. m.", "timeFormat-full":"HH' h 'mm z", "mo...
}})
__CPAN_DIR__ src/i18n/calendar/nls/nl
__CPAN_FILE__ src/i18n/calendar/nls/nl/gregorian.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
({"dateFormat-medium":"d MMM yyyy", "field-second":"Seconde", "timeFormat-full":"HH:mm:ss v", "months-standAlone-narrow":["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], "days-standAlone-narrow":["Z", "M", "D", "W", "D", "V", "Z"], "fiel...
__CPAN_FILE__ src/i18n/calendar/nls/nl/gregorian.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.i18n.calendar.nls.nl.gregorian"]], definePackage:function (dojo) {
dojo.provide("dojo.i18n.calendar.nls.nl.gregorian");
dojo.hostenv.xdLoadFlattenedBundle("dojo.i18n.calendar", "gregorian", "nl", ({"dateFormat-medium":"d MMM yyyy", "field-second":"Seconde", "timeFormat-full":"HH:mm:ss v", "months-standAlone-narrow":["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "...
}})
__CPAN_DIR__ src/i18n/currency
__CPAN_FILE__ src/i18n/currency/common.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.i18n.currency.common");
dojo.require("dojo.experimental");
dojo.experimental("dojo.i18n.currency");
dojo.require("dojo.regexp");
dojo.require("dojo.i18n.common");
dojo.require("dojo.i18n.number");
dojo.require("dojo.lang.common");
dojo.i18n.currency.format = function (value, iso, flags, locale) {
flags = (typeof flags == "object") ? flags : {};
var formatData = dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE, iso, locale);
if (typeof flags.places == "undefined") {
flags.places = formatData.places;
}
if (typeof flags.places == "undefined") {
flags.places = 2;
}
flags.signed = false;
var result = dojo.i18n.number.format(value, flags, locale);
var sym = formatData.symbol;
if (formatData.adjSpace == "symbol") {
if (formatData.placement == "after") {
sym = " " + sym;
} else {
sym = sym + " ";
}
}
if (value < 0) {
if (formatData.signPlacement == "before") {
sym = "-" + sym;
} else {
if (formatData.signPlacement == "after") {
sym = sym + "-";
}
}
}
var spc = (formatData.adjSpace == "number") ? " " : "";
if (formatData.placement == "after") {
result = result + spc + sym;
} else {
result = sym + spc + result;
}
if (value < 0) {
if (formatData.signPlacement == "around") {
result = "(" + result + ")";
} else {
lib/HTML/Dojo/src.pm view on Meta::CPAN
parameters.splice(0, 1);
this.params = [];
var arr;
for (var i = 0; i < parameters.length; i++) {
arr = parameters[i].split("=");
var key = dojo.string.trim(arr[0].toUpperCase());
if (arr.length == 1) {
this.params.push([key]);
continue;
}
var values = dojo.string.splitEscaped(arr[1], ",");
for (var j = 0; j < values.length; j++) {
if (dojo.string.trim(values[j]) != "") {
this.params.push([key, dojo.string.trim(values[j])]);
}
}
}
if (this.name.indexOf(".") > 0) {
arr = this.name.split(".");
this.group = arr[0];
this.name = arr[1];
}
this.value = right;
};
dojo.cal.textDirectory.tokenise = function (text) {
var nText = dojo.string.normalizeNewlines(text, "\n").replace(/\n[ \t]/g, "").replace(/\x00/g, "");
var lines = nText.split("\n");
var properties = [];
for (var i = 0; i < lines.length; i++) {
if (dojo.string.trim(lines[i]) == "") {
continue;
}
var prop = new dojo.cal.textDirectory.Property(lines[i]);
properties.push(prop);
}
return properties;
};
__CPAN_FILE__ src/cal/iCalendar.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.cal.iCalendar"], ["require", "dojo.lang.common"], ["require", "dojo.cal.textDirectory"], ["require", "dojo.date.common"], ["require", "dojo.date.serialize"]], definePackage:function (dojo) {
dojo.provide("dojo.cal.iCalendar");
dojo.require("dojo.lang.common");
dojo.require("dojo.cal.textDirectory");
dojo.require("dojo.date.common");
dojo.require("dojo.date.serialize");
dojo.cal.iCalendar.fromText = function (text) {
var properties = dojo.cal.textDirectory.tokenise(text);
var calendars = [];
for (var i = 0, begun = false; i < properties.length; i++) {
var prop = properties[i];
if (!begun) {
if (prop.name == "BEGIN" && prop.value == "VCALENDAR") {
begun = true;
var calbody = [];
}
} else {
if (prop.name == "END" && prop.value == "VCALENDAR") {
calendars.push(new dojo.cal.iCalendar.VCalendar(calbody));
begun = false;
} else {
calbody.push(prop);
}
}
}
return calendars;
};
dojo.cal.iCalendar.Component = function (body) {
if (!this.name) {
this.name = "COMPONENT";
}
this.properties = [];
this.components = [];
if (body) {
for (var i = 0, context = ""; i < body.length; i++) {
if (context == "") {
if (body[i].name == "BEGIN") {
context = body[i].value;
var childprops = [];
} else {
this.addProperty(new dojo.cal.iCalendar.Property(body[i]));
}
} else {
if (body[i].name == "END" && body[i].value == context) {
if (context == "VEVENT") {
this.addComponent(new dojo.cal.iCalendar.VEvent(childprops));
} else {
if (context == "VTIMEZONE") {
this.addComponent(new dojo.cal.iCalendar.VTimeZone(childprops));
} else {
if (context == "VTODO") {
this.addComponent(new dojo.cal.iCalendar.VTodo(childprops));
} else {
if (context == "VJOURNAL") {
this.addComponent(new dojo.cal.iCalendar.VJournal(childprops));
} else {
if (context == "VFREEBUSY") {
this.addComponent(new dojo.cal.iCalendar.VFreeBusy(childprops));
} else {
if (context == "STANDARD") {
this.addComponent(new dojo.cal.iCalendar.Standard(childprops));
} else {
if (context == "DAYLIGHT") {
this.addComponent(new dojo.cal.iCalendar.Daylight(childprops));
} else {
if (context == "VALARM") {
this.addComponent(new dojo.cal.iCalendar.VAlarm(childprops));
} else {
dojo.unimplemented("dojo.cal.iCalendar." + context);
}
}
}
}
}
}
}
}
context = "";
} else {
childprops.push(body[i]);
}
}
}
if (this._ValidProperties) {
this.postCreate();
}
lib/HTML/Dojo/src.pm view on Meta::CPAN
return dojo.date.fromIso8601(this.dtstart.value);
}});
var VTimeZoneProperties = [_P("tzid", 1, true), _P("last-mod", 1), _P("tzurl", 1)];
dojo.cal.iCalendar.VTimeZone = function (body) {
this.name = "VTIMEZONE";
this._ValidProperties = VTimeZoneProperties;
dojo.cal.iCalendar.Component.call(this, body);
};
dojo.inherits(dojo.cal.iCalendar.VTimeZone, dojo.cal.iCalendar.Component);
var VTodoProperties = [_P("class", 1), _P("completed", 1), _P("created", 1), _P("description", 1), _P("dtstart", 1), _P("geo", 1), _P("last-mod", 1), _P("location", 1), _P("organizer", 1), _P("percent", 1), _P("priority", 1), _P("dtstamp", 1), _P("s...
dojo.cal.iCalendar.VTodo = function (body) {
this.name = "VTODO";
this._ValidProperties = VTodoProperties;
dojo.cal.iCalendar.Component.call(this, body);
};
dojo.inherits(dojo.cal.iCalendar.VTodo, dojo.cal.iCalendar.Component);
var VJournalProperties = [_P("class", 1), _P("created", 1), _P("description", 1), _P("dtstart", 1), _P("last-mod", 1), _P("organizer", 1), _P("dtstamp", 1), _P("seq", 1), _P("status", 1), _P("summary", 1), _P("uid", 1), _P("url", 1), _P("recurid", 1...
dojo.cal.iCalendar.VJournal = function (body) {
this.name = "VJOURNAL";
this._ValidProperties = VJournalProperties;
dojo.cal.iCalendar.Component.call(this, body);
};
dojo.inherits(dojo.cal.iCalendar.VJournal, dojo.cal.iCalendar.Component);
var VFreeBusyProperties = [_P("contact"), _P("dtstart", 1), _P("dtend"), _P("duration"), _P("organizer", 1), _P("dtstamp", 1), _P("uid", 1), _P("url", 1), _P("attendee"), _P("comment"), _P("freebusy"), _P("rstatus")];
dojo.cal.iCalendar.VFreeBusy = function (body) {
this.name = "VFREEBUSY";
this._ValidProperties = VFreeBusyProperties;
dojo.cal.iCalendar.Component.call(this, body);
};
dojo.inherits(dojo.cal.iCalendar.VFreeBusy, dojo.cal.iCalendar.Component);
var VAlarmProperties = [[_P("action", 1, true), _P("trigger", 1, true), [_P("duration", 1), _P("repeat", 1)], _P("attach", 1)], [_P("action", 1, true), _P("description", 1, true), _P("trigger", 1, true), [_P("duration", 1), _P("repeat", 1)]], [_P("a...
dojo.cal.iCalendar.VAlarm = function (body) {
this.name = "VALARM";
this._ValidProperties = VAlarmProperties;
dojo.cal.iCalendar.Component.call(this, body);
};
dojo.inherits(dojo.cal.iCalendar.VAlarm, dojo.cal.iCalendar.Component);
}});
__CPAN_FILE__ src/cal/iCalendar.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.cal.iCalendar");
dojo.require("dojo.lang.common");
dojo.require("dojo.cal.textDirectory");
dojo.require("dojo.date.common");
dojo.require("dojo.date.serialize");
dojo.cal.iCalendar.fromText = function (text) {
var properties = dojo.cal.textDirectory.tokenise(text);
var calendars = [];
for (var i = 0, begun = false; i < properties.length; i++) {
var prop = properties[i];
if (!begun) {
if (prop.name == "BEGIN" && prop.value == "VCALENDAR") {
begun = true;
var calbody = [];
}
} else {
if (prop.name == "END" && prop.value == "VCALENDAR") {
calendars.push(new dojo.cal.iCalendar.VCalendar(calbody));
begun = false;
} else {
calbody.push(prop);
}
}
}
return calendars;
};
dojo.cal.iCalendar.Component = function (body) {
if (!this.name) {
this.name = "COMPONENT";
}
this.properties = [];
this.components = [];
if (body) {
for (var i = 0, context = ""; i < body.length; i++) {
if (context == "") {
if (body[i].name == "BEGIN") {
context = body[i].value;
var childprops = [];
} else {
this.addProperty(new dojo.cal.iCalendar.Property(body[i]));
}
} else {
if (body[i].name == "END" && body[i].value == context) {
if (context == "VEVENT") {
this.addComponent(new dojo.cal.iCalendar.VEvent(childprops));
} else {
if (context == "VTIMEZONE") {
this.addComponent(new dojo.cal.iCalendar.VTimeZone(childprops));
} else {
if (context == "VTODO") {
this.addComponent(new dojo.cal.iCalendar.VTodo(childprops));
} else {
if (context == "VJOURNAL") {
this.addComponent(new dojo.cal.iCalendar.VJournal(childprops));
} else {
if (context == "VFREEBUSY") {
this.addComponent(new dojo.cal.iCalendar.VFreeBusy(childprops));
} else {
if (context == "STANDARD") {
this.addComponent(new dojo.cal.iCalendar.Standard(childprops));
} else {
if (context == "DAYLIGHT") {
this.addComponent(new dojo.cal.iCalendar.Daylight(childprops));
} else {
if (context == "VALARM") {
this.addComponent(new dojo.cal.iCalendar.VAlarm(childprops));
} else {
dojo.unimplemented("dojo.cal.iCalendar." + context);
}
}
}
}
}
}
}
}
context = "";
} else {
childprops.push(body[i]);
}
}
}
if (this._ValidProperties) {
this.postCreate();
}
lib/HTML/Dojo/src.pm view on Meta::CPAN
dojo.provide("dojo.date.supplemental");
dojo.date.getFirstDayOfWeek = function (locale) {
var firstDay = {mv:5, ae:6, af:6, bh:6, dj:6, dz:6, eg:6, er:6, et:6, iq:6, ir:6, jo:6, ke:6, kw:6, lb:6, ly:6, ma:6, om:6, qa:6, sa:6, sd:6, so:6, tn:6, ye:6, as:0, au:0, az:0, bw:0, ca:0, cn:0, fo:0, ge:0, gl:0, gu:0, hk:0, ie:0, il:0, is:0, jm:0,...
locale = dojo.hostenv.normalizeLocale(locale);
var country = locale.split("-")[1];
var dow = firstDay[country];
return (typeof dow == "undefined") ? 1 : dow;
};
dojo.date.getWeekend = function (locale) {
var weekendStart = {eg:5, il:5, sy:5, "in":0, ae:4, bh:4, dz:4, iq:4, jo:4, kw:4, lb:4, ly:4, ma:4, om:4, qa:4, sa:4, sd:4, tn:4, ye:4};
var weekendEnd = {ae:5, bh:5, dz:5, iq:5, jo:5, kw:5, lb:5, ly:5, ma:5, om:5, qa:5, sa:5, sd:5, tn:5, ye:5, af:5, ir:5, eg:6, il:6, sy:6};
locale = dojo.hostenv.normalizeLocale(locale);
var country = locale.split("-")[1];
var start = weekendStart[country];
var end = weekendEnd[country];
if (typeof start == "undefined") {
start = 6;
}
if (typeof end == "undefined") {
end = 0;
}
return {start:start, end:end};
};
dojo.date.isWeekend = function (dateObj, locale) {
var weekend = dojo.date.getWeekend(locale);
var day = (dateObj || new Date()).getDay();
if (weekend.end < weekend.start) {
weekend.end += 7;
if (day < weekend.start) {
day += 7;
}
}
return day >= weekend.start && day <= weekend.end;
};
__CPAN_FILE__ src/date/format.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.date.format");
dojo.require("dojo.date.common");
dojo.require("dojo.date.supplemental");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.func");
dojo.require("dojo.string.common");
dojo.require("dojo.i18n.common");
dojo.requireLocalization("dojo.i18n.calendar", "gregorian", null, "ko,zh-cn,zh,sv,ja,en,zh-tw,it,hu,nl,fi,zh-hk,fr,pt,ROOT,es,de,pt-br");
dojo.requireLocalization("dojo.i18n.calendar", "gregorianExtras", null, "zh,ROOT,ja");
(function () {
dojo.date.format = function (dateObject, options) {
if (typeof options == "string") {
dojo.deprecated("dojo.date.format", "To format dates with POSIX-style strings, please use dojo.date.strftime instead", "0.5");
return dojo.date.strftime(dateObject, options);
}
function formatPattern(dateObject, pattern) {
return pattern.replace(/([a-z])\1*/ig, function (match) {
var s;
var c = match.charAt(0);
var l = match.length;
var pad;
var widthList = ["abbr", "wide", "narrow"];
switch (c) {
case "G":
if (l > 3) {
dojo.unimplemented("Era format not implemented");
}
s = info.eras[dateObject.getFullYear() < 0 ? 1 : 0];
break;
case "y":
s = dateObject.getFullYear();
switch (l) {
case 1:
break;
case 2:
s = String(s).substr(-2);
break;
default:
pad = true;
}
break;
case "Q":
case "q":
s = Math.ceil((dateObject.getMonth() + 1) / 3);
switch (l) {
case 1:
case 2:
pad = true;
break;
case 3:
case 4:
dojo.unimplemented("Quarter format not implemented");
}
break;
case "M":
case "L":
var m = dateObject.getMonth();
var width;
switch (l) {
case 1:
case 2:
s = m + 1;
pad = true;
break;
case 3:
case 4:
case 5:
width = widthList[l - 3];
break;
lib/HTML/Dojo/src.pm view on Meta::CPAN
padChar = "0";
break;
case "^":
switchCase = "upper";
break;
case "*":
switchCase = "lower";
break;
case "#":
switchCase = "swap";
break;
default:
padChar = null;
index--;
break;
}
var property = $(format.charAt(index++));
switch (switchCase) {
case "upper":
property = property.toUpperCase();
break;
case "lower":
property = property.toLowerCase();
break;
case "swap":
var compareString = property.toLowerCase();
var swapString = "";
var j = 0;
var ch = "";
while (j < property.length) {
ch = property.charAt(j);
swapString += (ch == compareString.charAt(j)) ? ch.toUpperCase() : ch.toLowerCase();
j++;
}
property = swapString;
break;
default:
break;
}
switchCase = null;
string += property;
i = index;
}
string += format.substring(i);
return string;
};
(function () {
var _customFormats = [];
dojo.date.addCustomFormats = function (packageName, bundleName) {
_customFormats.push({pkg:packageName, name:bundleName});
};
dojo.date._getGregorianBundle = function (locale) {
var gregorian = {};
dojo.lang.forEach(_customFormats, function (desc) {
var bundle = dojo.i18n.getLocalization(desc.pkg, desc.name, locale);
gregorian = dojo.lang.mixin(gregorian, bundle);
}, this);
return gregorian;
};
})();
dojo.date.addCustomFormats("dojo.i18n.calendar", "gregorian");
dojo.date.addCustomFormats("dojo.i18n.calendar", "gregorianExtras");
dojo.date.getNames = function (item, type, use, locale) {
var label;
var lookup = dojo.date._getGregorianBundle(locale);
var props = [item, use, type];
if (use == "standAlone") {
label = lookup[props.join("-")];
}
props[1] = "format";
return (label || lookup[props.join("-")]).concat();
};
dojo.date.getDayName = function (dateObject, locale) {
return dojo.date.getNames("days", "wide", "format", locale)[dateObject.getDay()];
};
dojo.date.getDayShortName = function (dateObject, locale) {
return dojo.date.getNames("days", "abbr", "format", locale)[dateObject.getDay()];
};
dojo.date.getMonthName = function (dateObject, locale) {
return dojo.date.getNames("months", "wide", "format", locale)[dateObject.getMonth()];
};
dojo.date.getMonthShortName = function (dateObject, locale) {
return dojo.date.getNames("months", "abbr", "format", locale)[dateObject.getMonth()];
};
dojo.date.toRelativeString = function (dateObject) {
var now = new Date();
var diff = (now - dateObject) / 1000;
var end = " ago";
var future = false;
if (diff < 0) {
future = true;
end = " from now";
diff = -diff;
}
if (diff < 60) {
diff = Math.round(diff);
return diff + " second" + (diff == 1 ? "" : "s") + end;
}
if (diff < 60 * 60) {
diff = Math.round(diff / 60);
return diff + " minute" + (diff == 1 ? "" : "s") + end;
}
if (diff < 60 * 60 * 24) {
diff = Math.round(diff / 3600);
return diff + " hour" + (diff == 1 ? "" : "s") + end;
}
if (diff < 60 * 60 * 24 * 7) {
diff = Math.round(diff / (3600 * 24));
if (diff == 1) {
return future ? "Tomorrow" : "Yesterday";
} else {
return diff + " days" + end;
}
}
return dojo.date.format(dateObject);
};
dojo.date.toSql = function (dateObject, noTime) {
return dojo.date.strftime(dateObject, "%F" + !noTime ? " %T" : "");
};
dojo.date.fromSql = function (sqlDate) {
var parts = sqlDate.split(/[\- :]/g);
while (parts.length < 6) {
parts.push(0);
}
return new Date(parts[0], (parseInt(parts[1], 10) - 1), parts[2], parts[3], parts[4], parts[5]);
};
__CPAN_FILE__ src/date/format.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.date.format"], ["require", "dojo.date.common"], ["require", "dojo.date.supplemental"], ["require", "dojo.lang.array"], ["require", "dojo.lang.common"], ["require", "dojo.lang.func"], ["require", ...
dojo.provide("dojo.date.format");
dojo.require("dojo.date.common");
dojo.require("dojo.date.supplemental");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.func");
dojo.require("dojo.string.common");
dojo.require("dojo.i18n.common");
(function () {
dojo.date.format = function (dateObject, options) {
if (typeof options == "string") {
dojo.deprecated("dojo.date.format", "To format dates with POSIX-style strings, please use dojo.date.strftime instead", "0.5");
return dojo.date.strftime(dateObject, options);
}
function formatPattern(dateObject, pattern) {
return pattern.replace(/([a-z])\1*/ig, function (match) {
var s;
var c = match.charAt(0);
var l = match.length;
var pad;
var widthList = ["abbr", "wide", "narrow"];
switch (c) {
case "G":
if (l > 3) {
dojo.unimplemented("Era format not implemented");
}
s = info.eras[dateObject.getFullYear() < 0 ? 1 : 0];
break;
case "y":
s = dateObject.getFullYear();
switch (l) {
case 1:
break;
case 2:
s = String(s).substr(-2);
break;
default:
pad = true;
}
break;
case "Q":
case "q":
s = Math.ceil((dateObject.getMonth() + 1) / 3);
switch (l) {
case 1:
case 2:
pad = true;
break;
case 3:
case 4:
dojo.unimplemented("Quarter format not implemented");
}
break;
case "M":
case "L":
var m = dateObject.getMonth();
var width;
switch (l) {
case 1:
case 2:
lib/HTML/Dojo/src.pm view on Meta::CPAN
padChar = "0";
break;
case "^":
switchCase = "upper";
break;
case "*":
switchCase = "lower";
break;
case "#":
switchCase = "swap";
break;
default:
padChar = null;
index--;
break;
}
var property = $(format.charAt(index++));
switch (switchCase) {
case "upper":
property = property.toUpperCase();
break;
case "lower":
property = property.toLowerCase();
break;
case "swap":
var compareString = property.toLowerCase();
var swapString = "";
var j = 0;
var ch = "";
while (j < property.length) {
ch = property.charAt(j);
swapString += (ch == compareString.charAt(j)) ? ch.toUpperCase() : ch.toLowerCase();
j++;
}
property = swapString;
break;
default:
break;
}
switchCase = null;
string += property;
i = index;
}
string += format.substring(i);
return string;
};
(function () {
var _customFormats = [];
dojo.date.addCustomFormats = function (packageName, bundleName) {
_customFormats.push({pkg:packageName, name:bundleName});
};
dojo.date._getGregorianBundle = function (locale) {
var gregorian = {};
dojo.lang.forEach(_customFormats, function (desc) {
var bundle = dojo.i18n.getLocalization(desc.pkg, desc.name, locale);
gregorian = dojo.lang.mixin(gregorian, bundle);
}, this);
return gregorian;
};
})();
dojo.date.addCustomFormats("dojo.i18n.calendar", "gregorian");
dojo.date.addCustomFormats("dojo.i18n.calendar", "gregorianExtras");
dojo.date.getNames = function (item, type, use, locale) {
var label;
var lookup = dojo.date._getGregorianBundle(locale);
var props = [item, use, type];
if (use == "standAlone") {
label = lookup[props.join("-")];
}
props[1] = "format";
return (label || lookup[props.join("-")]).concat();
};
dojo.date.getDayName = function (dateObject, locale) {
return dojo.date.getNames("days", "wide", "format", locale)[dateObject.getDay()];
};
dojo.date.getDayShortName = function (dateObject, locale) {
return dojo.date.getNames("days", "abbr", "format", locale)[dateObject.getDay()];
};
dojo.date.getMonthName = function (dateObject, locale) {
return dojo.date.getNames("months", "wide", "format", locale)[dateObject.getMonth()];
};
dojo.date.getMonthShortName = function (dateObject, locale) {
return dojo.date.getNames("months", "abbr", "format", locale)[dateObject.getMonth()];
};
dojo.date.toRelativeString = function (dateObject) {
var now = new Date();
var diff = (now - dateObject) / 1000;
var end = " ago";
var future = false;
if (diff < 0) {
future = true;
end = " from now";
diff = -diff;
}
if (diff < 60) {
diff = Math.round(diff);
return diff + " second" + (diff == 1 ? "" : "s") + end;
}
if (diff < 60 * 60) {
diff = Math.round(diff / 60);
return diff + " minute" + (diff == 1 ? "" : "s") + end;
}
if (diff < 60 * 60 * 24) {
diff = Math.round(diff / 3600);
return diff + " hour" + (diff == 1 ? "" : "s") + end;
}
if (diff < 60 * 60 * 24 * 7) {
diff = Math.round(diff / (3600 * 24));
if (diff == 1) {
return future ? "Tomorrow" : "Yesterday";
} else {
return diff + " days" + end;
}
}
return dojo.date.format(dateObject);
};
dojo.date.toSql = function (dateObject, noTime) {
return dojo.date.strftime(dateObject, "%F" + !noTime ? " %T" : "");
};
dojo.date.fromSql = function (sqlDate) {
var parts = sqlDate.split(/[\- :]/g);
while (parts.length < 6) {