Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DojoCalendar #10

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
088c1c0
missing semicolon fix
ainthek Dec 7, 2011
a4be2cc
another semicolon fixes
ainthek Dec 7, 2011
89bb127
another semicolon fixes
ainthek Dec 7, 2011
464695b
another semicolon fixes
ainthek Dec 7, 2011
3cef45f
another semicolon fixes
ainthek Dec 7, 2011
94ae1b0
AMD for dojox storage (by repta)
ainthek Dec 7, 2011
f1ba458
Merge branch 'master' of https://github.com/ainthek/dojox
ainthek Dec 7, 2011
0d2903b
Merge remote-tracking branch 'upstream/master'
adros Dec 14, 2011
79141ec
bugfix - solved binding problem in dojox.mvc.group
Dec 15, 2011
a811d34
Merge remote-tracking branch 'upstream/master'
adros Dec 16, 2011
d8dc45a
Pagination plugin fixed
adros Dec 19, 2011
5ff5d90
timezone tables renamed to have extension
adros Jan 5, 2012
7145dda
bugfix for spiderchart with one series
Jan 10, 2012
f3f8bbb
recommit
Jan 17, 2012
90df6c2
recommit
Jan 17, 2012
6435efc
base for 3D pie chart
Jan 25, 2012
b052493
new calendar submodule
Jan 30, 2012
41106b2
new submodule for calendar (2nd try)
Jan 30, 2012
078a0af
Merge branch 'calendar'
Jan 30, 2012
325ebcf
removed calendar submodule
Jan 30, 2012
f18ac13
calendar
Jan 30, 2012
e38413d
Merge branch 'master' of https://github.com/ainthek/dojox
Jan 30, 2012
36da77e
enhancement in 3D pie chart
Jan 30, 2012
440a123
Merge branch 'master' of https://github.com/ainthek/dojox
Jan 30, 2012
bad56a0
moving 3D pie chart core into gjax-widgets
Jan 31, 2012
afda962
fixed bug with position of tooltips in Bar charts
Jan 31, 2012
c2f5ecb
merging upstream
ainthek Jan 31, 2012
14b9c19
rewrite of dojox.widget.Calendar into AMD
Feb 1, 2012
eeadbba
spiderchart fix
Feb 7, 2012
8ac9b05
Merge remote-tracking branch 'upstream/master'
ainthek Feb 13, 2012
da13346
calendard localization for SK and KO
adros Feb 14, 2012
93628be
dojox/calendar merged in
adros Feb 14, 2012
fe6b798
Merge remote-tracking branch 'upstream/master'
adros Feb 15, 2012
7af0aa4
IE7 bugfix for forgotten comma
Feb 15, 2012
252ab5d
Merge branch 'master' of https://github.com/ainthek/dojox
ainthek Feb 18, 2012
8984be1
Merge remote-tracking branch 'upstream/master'
ainthek Feb 18, 2012
2737faf
Merge remote-tracking branch 'upstream/master'
ainthek Mar 1, 2012
4555687
Merge branch 'master' of https://github.com/dojo/dojox
ainthek Mar 5, 2012
867451c
minor code style fixes in dojox/analytics
ainthek Mar 5, 2012
63b4101
Merge remote-tracking branch 'upstream/master'
Mar 6, 2012
7d130b0
Merge branch 'master' of https://github.com/ainthek/dojox
Mar 6, 2012
5ec9fb0
getPlainValue comma fix
Mar 6, 2012
f279a53
fixed IE bug with empty zIndex
Mar 6, 2012
5711a20
Merge branch 'master' of https://github.com/ainthek/dojox
Mar 6, 2012
e5eb622
bugfix for charts inside layout widgets
Mar 12, 2012
de2e2a3
Merge branch 'master' of https://github.com/ainthek/dojox
Mar 12, 2012
5b8828e
filter in empty grid IE bug, temp fix
Mar 13, 2012
bb05bb0
Merge remote-tracking branch 'upstream/master'
adros Mar 13, 2012
da4b896
fixing mvc testcase
ainthek Mar 14, 2012
ac5dec5
Merge remote-tracking branch 'upstream/master'
adros Mar 16, 2012
81e70e4
Merge branch 'master' of https://github.com/ainthek/dojox
adros Mar 16, 2012
25db3bc
filterBar plugin patch
Mar 30, 2012
29c72a2
merge from dojo
Apr 10, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions analytics/_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,7 @@ define(["dojo/_base/lang", "dojo/_base/config", "dojo/ready", "dojo/_base/unload
// data push

if(arguments.length > 2){
// FIXME: var c = dojo._toArray(arguments) ?
var c = [];
for(var i = 1; i < arguments.length; i++){
c.push(arguments[i]);
}
data = c;
data = Array.prototype.slice.call(arguments,1);
}

this._data.push({ plugin: dataType, data: data });
Expand Down
13 changes: 6 additions & 7 deletions analytics/plugins/consoleMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,21 @@ define(["dojo/_base/lang","../_base", "dojo/_base/config", "dojo/aspect"
dxa = dojox.analytics;
aspect = dojo.aspect;
=====*/
consoleMessages = lang.getObject("dojox.analytics.plugins.consoleMessages", true);
var consoleMessages = lang.getObject("dojox.analytics.plugins.consoleMessages", true);

// summary:
// plugin to have analyitcs return the base info dojo collects
this.addData = lang.hitch(dxa, "addData", "consoleMessages");

var lvls = config["consoleLogFuncs"] || ["error", "warn", "info", "rlog"];
if(!console){
console = {};
}
console || (console={});

for(var i = 0; i < lvls.length; i++){
if(console[lvls[i]]){
aspect.after(console, lvls[i], lang.hitch(this, "addData", lvls[i]),true);
var fnName=lvls[i], _addData=lang.hitch(this, "addData", fnName);
if(console[fnName]){
aspect.after(console, fnName, _addData , true);
}else{
console[lvls[i]] = lang.hitch(this, "addData", lvls[i]);
console[fnName] = _addData;
}
}
return consoleMessages;
Expand Down
4 changes: 2 additions & 2 deletions calc/Grapher.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ define([
td.appendChild(d);

d = domConstruct.create('div');
domStyle.set(d, { position: "absolute", left: "0px", top: "0px" })
domStyle.set(d, { position: "absolute", left: "0px", top: "0px" });
this.chartsParent.appendChild(d);
this.array[tr.rowIndex][this.chartNodeIndex] = d;
domClass.add(d, "dojoxCalcChart");
Expand Down Expand Up @@ -497,7 +497,7 @@ define([

points2[s].push(p);
// setup the next series
points2[++s] = []
points2[++s] = [];
}
var startK = k;
while(k < points.length && (points[k][y] > maxY || points[k][y] < minY)){
Expand Down
2 changes: 1 addition & 1 deletion calc/Standard.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ define([
//onClick="this.insertText(document.getElementById('textbox'), '\u221A')"
//this.sqrt.set("onClick", lang.hitch(this, "insertText", this.textboxWidget, '\u221A'));
//this.pi.set("onClick", lang.hitch(this, "insertText", this.textboxWidget, '\u03C0'));
this.startup()
this.startup();
}
});

Expand Down
75 changes: 75 additions & 0 deletions calendar/Calendar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
define(["dojo/_base/declare", "dojo/_base/lang", "./CalendarBase", "./ColumnView", "./ColumnViewSecondarySheet",
"./VerticalRenderer", "./MatrixView", "./HorizontalRenderer", "./LabelRenderer",
"./ExpandRenderer", "./Keyboard", "./Mouse", "dojo/text!./templates/Calendar.html",
"dijit/form/Button", "dijit/Toolbar", "dijit/ToolbarSeparator"],

function(declare, lang, CalendarBase, ColumnView, ColumnViewSecondarySheet, VerticalRenderer,
MatrixView, HorizontalRenderer, LabelRenderer, ExpandRenderer, Keyboard, Mouse, template){

/*=====
var CalendarBase = dojox.calendar.CalendarBase;
var ColumnView = dojox.calendar.ColumnView;
var ColumnViewSecondarySheet = dojox.calendar.ColumnViewSecondarySheet;
var MatrixView = dojox.calendar.MatrixView;
var VerticalRenderer = dojox.calendar.VerticalRenderer;
var HorizontalRenderer = dojox.calendar.HorizontalRenderer;
var LabelRenderer = dojox.calendar.LabelRenderer;
var ExpandRenderer = dojox.calendar.ExpandRenderer;
var Keyboard = dojox.calendar.Keyboard;
var Mouse = dojox.calendar.Mouse;
=====*/

return declare("dojox.calendar.Calendar", CalendarBase, {

templateString: template,

// module:
// dojox/calendar/Calendar
// summary:
// dojox.calendar.Calendar widget
// This class defines a calendar widget that display events in time.

_createDefaultViews: function(){
// summary:
// Creates the default views:
// | A ColumnView instance used to display one day to seven days time intervals,
// | A MatrixView instance used to display the other time intervals.
// The views are mixed with Mouse and Keyboard to allow editing items using mouse and keyboard.

var secondarySheetClass = declare([ColumnViewSecondarySheet, Keyboard, Mouse]);

var colView = declare([ColumnView, Keyboard, Mouse])(lang.mixin({
secondarySheetClass: secondarySheetClass,
verticalRenderer: VerticalRenderer,
horizontalRenderer: HorizontalRenderer,
expandRenderer: ExpandRenderer
}, this.columnViewProps));

var matrixView = declare([MatrixView, Keyboard, Mouse])(lang.mixin({
horizontalRenderer: HorizontalRenderer,
labelRenderer: LabelRenderer,
expandRenderer: ExpandRenderer
}, this.matrixViewProps));

this.columnView = colView;
this.matrixView = matrixView;

var views = [colView, matrixView];

this.installDefaultViewsActions(views);

return views;
},

installDefaultViewsActions: function(views){
// summary:
// Installs the default actions on newly created default views.
// By default this action is registering:
// | the matrixViewRowHeaderClick method on the rowHeaderClick event of the matrix view.
// | the columnViewColumnHeaderClick method on the columnHeaderClick event of the column view.
this.matrixView.on("rowHeaderClick", lang.hitch(this, this.matrixViewRowHeaderClick));
this.columnView.on("columnHeaderClick", lang.hitch(this, this.columnViewColumnHeaderClick));
}

})
});
Loading