Permalink
Browse files

a whole lot of changes for AMD/requirejs support

  • Loading branch information...
1 parent 239cf55 commit 5c9e70933433f7991db70e5ccfd917f86c4b78b8 @jonlb jonlb committed Feb 26, 2012
Showing with 255 additions and 36,456 deletions.
  1. +0 −160 build.sh
  2. +1 −0 build.sh
  3. +1 −1 builder/config.js
  4. +1 −1 builder/targets/deploy.target.js
  5. +9 −0 builder/targets/prepare.target.js
  6. +0 −21 src/Source-old/Adaptors/adaptor.combo.js
  7. +0 −86 src/Source-old/Adaptors/adaptor.js
  8. +0 −18 src/Source-old/Adaptors/adaptor.listview.js
  9. +0 −222 src/Source-old/Adaptors/adaptor.tree.js
  10. +0 −119 src/Source-old/Adaptors/combo.fill.js
  11. +0 −110 src/Source-old/Adaptors/listview.fill.js
  12. +0 −96 src/Source-old/Adaptors/tree.mptt.js
  13. +0 −143 src/Source-old/Adaptors/tree.object.js
  14. +0 −84 src/Source-old/Adaptors/tree.parent.js
  15. +0 −721 src/Source-old/Base/common.js
  16. +0 −488 src/Source-old/Base/list.js
  17. +0 −521 src/Source-old/Base/object.js
  18. +0 −212 src/Source-old/Base/selection.js
  19. +0 −99 src/Source-old/Base/stack.js
  20. +0 −206 src/Source-old/Base/styles.js
  21. +0 −1,010 src/Source-old/Base/widget.js
  22. +0 −688 src/Source-old/Base/widget.list.js
  23. +0 −449 src/Source-old/Button/button.js
  24. +0 −225 src/Source-old/Button/color.js
  25. +0 −311 src/Source-old/Button/flyout.js
  26. +0 −404 src/Source-old/Button/multi.js
  27. +0 −151 src/Source-old/Button/set.js
  28. +0 −147 src/Source-old/Data/compare.js
  29. +0 −120 src/Source-old/Data/heapsort.js
  30. +0 −114 src/Source-old/Data/mergesort.js
  31. +0 −61 src/Source-old/Data/nativesort.js
  32. +0 −54 src/Source-old/Data/parser.js
  33. +0 −79 src/Source-old/Data/parser.json.js
  34. +0 −296 src/Source-old/Data/protocol.ajax.js
  35. +0 −119 src/Source-old/Data/protocol.js
  36. +0 −108 src/Source-old/Data/protocol.local.js
  37. +0 −177 src/Source-old/Data/quicksort.js
  38. +0 −308 src/Source-old/Data/record.js
  39. +0 −83 src/Source-old/Data/response.js
  40. +0 −155 src/Source-old/Data/sort.js
  41. +0 −758 src/Source-old/Data/store.js
  42. +0 −129 src/Source-old/Data/strategy.full.js
  43. +0 −88 src/Source-old/Data/strategy.js
  44. +0 −308 src/Source-old/Data/strategy.paginate.js
  45. +0 −171 src/Source-old/Data/strategy.progressive.js
  46. +0 −261 src/Source-old/Data/strategy.save.js
  47. +0 −282 src/Source-old/Data/strategy.sort.js
  48. +0 −351 src/Source-old/Extras/colorpalette.js
  49. +0 −242 src/Source-old/Extras/datepicker.js
  50. +0 −730 src/Source-old/Extras/editor.js
  51. +0 −170 src/Source-old/Extras/editor.selection.js
  52. +0 −218 src/Source-old/Extras/monthpicker.js
  53. +0 −185 src/Source-old/Extras/notice.js
  54. +0 −94 src/Source-old/Extras/notifier.float.js
  55. +0 −111 src/Source-old/Extras/notifier.js
  56. +0 −236 src/Source-old/Extras/progressbar.js
  57. +0 −200 src/Source-old/Extras/scrollbar.js
  58. +0 −139 src/Source-old/Extras/slide.js
  59. +0 −168 src/Source-old/Extras/slider.js
  60. +0 −197 src/Source-old/Extras/tooltip.js
  61. +0 −147 src/Source-old/Form/checkbox.js
  62. +0 −150 src/Source-old/Form/combobox.js
  63. +0 −44 src/Source-old/Form/display.js
  64. +0 −135 src/Source-old/Form/field.date.js
  65. +0 −101 src/Source-old/Form/field.editor.js
  66. +0 −418 src/Source-old/Form/field.js
  67. +0 −122 src/Source-old/Form/field.options.js
  68. +0 −186 src/Source-old/Form/fieldset.js
  69. +0 −467 src/Source-old/Form/file.js
  70. +0 −407 src/Source-old/Form/form.js
  71. +0 −56 src/Source-old/Form/hidden.js
  72. +0 −98 src/Source-old/Form/jxbutton.js
  73. +0 −186 src/Source-old/Form/jxcolor.js
  74. +0 −265 src/Source-old/Form/jxcombo.js
  75. +0 −80 src/Source-old/Form/numberspinner.js
  76. +0 −44 src/Source-old/Form/password.js
  77. +0 −141 src/Source-old/Form/radio.js
  78. +0 −218 src/Source-old/Form/select.js
  79. +0 −84 src/Source-old/Form/spinner.js
  80. +0 −90 src/Source-old/Form/text.js
  81. +0 −96 src/Source-old/Form/textarea.js
  82. +0 −182 src/Source-old/Form/treecombo.js
  83. +0 −88 src/Source-old/Formatter/boolean.js
  84. +0 −84 src/Source-old/Formatter/currency.js
  85. +0 −61 src/Source-old/Formatter/date.js
  86. +0 −44 src/Source-old/Formatter/formatter.js
  87. +0 −67 src/Source-old/Formatter/formatter.text.js
  88. +0 −145 src/Source-old/Formatter/number.js
  89. +0 −89 src/Source-old/Formatter/phone.js
  90. +0 −85 src/Source-old/Formatter/uri.js
  91. +0 −403 src/Source-old/Grid/column.js
  92. +0 −470 src/Source-old/Grid/columnModel.js
  93. +0 −897 src/Source-old/Grid/grid.js
  94. +0 −62 src/Source-old/Grid/renderer.button.js
  95. +0 −101 src/Source-old/Grid/renderer.checkbox.js
  96. +0 −77 src/Source-old/Grid/renderer.js
  97. +0 −128 src/Source-old/Grid/renderer.text.js
  98. +0 −241 src/Source-old/Grid/rowModel.js
  99. +0 −225 src/Source-old/Layout/container.js
  100. +0 −453 src/Source-old/Layout/layout.js
  101. +0 −54 src/Source-old/Layout/manager.anchored.js
  102. +0 −440 src/Source-old/Layout/manager.columns.js
  103. +0 −56 src/Source-old/Layout/manager.fill.js
  104. +0 −392 src/Source-old/Layout/manager.js
  105. +0 −78 src/Source-old/Layout/manager.split.js
  106. +0 −146 src/Source-old/Layout/snap.js
  107. +0 −780 src/Source-old/Layout/splitter.js
  108. +0 −99 src/Source-old/Menu/context.js
  109. +0 −173 src/Source-old/Menu/menu.item.js
  110. +0 −556 src/Source-old/Menu/menu.js
  111. +0 −90 src/Source-old/Menu/menu.separator.js
  112. +0 −237 src/Source-old/Menu/submenu.js
  113. +0 −150 src/Source-old/Panel/confirm.js
  114. +0 −282 src/Source-old/Panel/dataview.js
  115. +0 −748 src/Source-old/Panel/dialog.js
  116. +0 −181 src/Source-old/Panel/group.js
  117. +0 −57 src/Source-old/Panel/listitem.js
  118. +0 −49 src/Source-old/Panel/listview.js
  119. +0 −161 src/Source-old/Panel/message.js
  120. +0 −611 src/Source-old/Panel/panel.js
  121. +0 −255 src/Source-old/Panel/panelset.js
  122. +0 −169 src/Source-old/Panel/prompt.js
  123. +0 −316 src/Source-old/Panel/upload.js
  124. +0 −124 src/Source-old/Plugins/dataview.groupfolder.js
  125. +0 −60 src/Source-old/Plugins/editor/editor.alignment.js
  126. +0 −101 src/Source-old/Plugins/editor/editor.block.js
  127. +0 −74 src/Source-old/Plugins/editor/editor.bold.js
  128. +0 −135 src/Source-old/Plugins/editor/editor.button.js
  129. +0 −133 src/Source-old/Plugins/editor/editor.buttonset.js
  130. +0 −113 src/Source-old/Plugins/editor/editor.customstyles.js
  131. +0 −54 src/Source-old/Plugins/editor/editor.image.js
  132. +0 −38 src/Source-old/Plugins/editor/editor.indent.js
  133. +0 −76 src/Source-old/Plugins/editor/editor.italic.js
  134. +0 −63 src/Source-old/Plugins/editor/editor.link.js
  135. +0 −38 src/Source-old/Plugins/editor/editor.orderedlist.js
  136. +0 −38 src/Source-old/Plugins/editor/editor.outdent.js
  137. +0 −39 src/Source-old/Plugins/editor/editor.redo.js
  138. +0 −28 src/Source-old/Plugins/editor/editor.separator.js
  139. +0 −40 src/Source-old/Plugins/editor/editor.strikethrough.js
  140. +0 −47 src/Source-old/Plugins/editor/editor.toggle.js
  141. +0 −40 src/Source-old/Plugins/editor/editor.underline.js
  142. +0 −39 src/Source-old/Plugins/editor/editor.undo.js
  143. +0 −37 src/Source-old/Plugins/editor/editor.unlink.js
  144. +0 −38 src/Source-old/Plugins/editor/editor.unorderedlist.js
  145. +0 −17 src/Source-old/Plugins/editor/plugin.editor.js
  146. +0 −212 src/Source-old/Plugins/field.validator.js
  147. +0 −84 src/Source-old/Plugins/form.InlineErrors.js
  148. +0 −114 src/Source-old/Plugins/form.notifier.js
  149. +0 −239 src/Source-old/Plugins/form.validator.js
  150. +0 −1,231 src/Source-old/Plugins/grid/grid.editor.js
  151. +0 −310 src/Source-old/Plugins/grid/grid.prelighter.js
  152. +0 −201 src/Source-old/Plugins/grid/grid.resize.js
  153. +0 −725 src/Source-old/Plugins/grid/grid.selector.js
  154. +0 −175 src/Source-old/Plugins/grid/grid.sorter.js
  155. +0 −28 src/Source-old/Plugins/grid/plugin.grid.js
  156. +0 −20 src/Source-old/Plugins/plugin.dataview.js
  157. +0 −28 src/Source-old/Plugins/plugin.field.js
  158. +0 −28 src/Source-old/Plugins/plugin.form.js
  159. +0 −72 src/Source-old/Plugins/plugin.js
  160. +0 −28 src/Source-old/Plugins/plugin.panel.js
  161. +0 −27 src/Source-old/Plugins/plugin.toolbarContainer.js
  162. +0 −27 src/Source-old/Plugins/plugin.tree.js
  163. +0 −119 src/Source-old/Plugins/toolbarContainer.tabMenu.js
  164. +0 −116 src/Source-old/Plugins/tree.sorter.js
  165. +0 −252 src/Source-old/Tab/tab.js
  166. +0 −213 src/Source-old/Tab/tabbox.js
  167. +0 −164 src/Source-old/Tab/tabset.js
  168. +0 −552 src/Source-old/Toolbar/container.js
  169. +0 −156 src/Source-old/Toolbar/paging.js
  170. +0 −60 src/Source-old/Toolbar/toolbar.item.js
  171. +0 −329 src/Source-old/Toolbar/toolbar.js
  172. +0 −50 src/Source-old/Toolbar/toolbar.separator.js
  173. +0 −436 src/Source-old/Tree/tree.folder.js
  174. +0 −331 src/Source-old/Tree/tree.item.js
  175. +0 −386 src/Source-old/Tree/tree.js
  176. +0 −29 src/Source-old/license.js
  177. +0 −94 src/Source-old/locales/locale.english.js
  178. +0 −99 src/Source-old/locales/locale.german.js
  179. +0 −94 src/Source-old/locales/locale.russian.js
  180. +0 −103 src/Source-old/locales/locale.spanish.js
  181. +0 −803 src/Source-old/scripts.json
  182. +214 −198 utils/ndconfig/Menu.txt
  183. +4 −4 www/reference/examples/adaptor_combo.html
  184. +2 −2 www/reference/examples/container.html
  185. +1 −1 www/reference/examples/editor.html
  186. +3 −3 www/reference/examples/forms.html
  187. +2 −2 www/reference/examples/grid.html
  188. +2 −2 www/reference/examples/grid_editor.html
  189. +2 −2 www/reference/examples/grid_rowheight.html
  190. +2 −2 www/reference/examples/paging-grid.html
  191. +1 −1 www/reference/examples/splitter.html
  192. +2 −2 www/reference/examples/splitter_advanced.html
  193. +2 −2 www/reference/examples/test.html
  194. +6 −6 www/reference/examples/tree_adaptors.html
View
160 build.sh
@@ -1,160 +0,0 @@
-#!/usr/bin/env node
-
-/**
- * Base script for invoking a build. Call with
- *
- * > build <target>
- */
-var Builder = require("build"),
- sys = require("sys"),
- path = require("path"),
- util = require("util"),
- fs = require("fs");
-
-
-
-/**
- * Parse arguments array
- * @param {Array} args optional arguments arrray.
- * @return {Object} opts key value hash.
- * @export
- */
- parse = function(args) {
- // args is optional, default is process.argv
- args = args || process.argv;
-
- var opts = {}, curSwitch;
-
- args.forEach(function(arg) {
- // its a switch
- if (/^(-|--)/.test(arg) || !curSwitch) {
- opts[arg] = true;
- curSwitch = arg;
- // this arg is a data
- } else {
- if (arg === 'false') {
- arg = false;
- } else if (arg === 'true') {
- arg = true;
- } else if (!isNaN(arg)) {
- arg = Number(arg);
- }
-
- // it was a boolean switch per default,
- // now it has got a val
- if (typeof opts[curSwitch] === 'boolean') {
- opts[curSwitch] = arg;
- } else if (Array.isArray(opts[curSwitch])) {
- opts[curSwitch].push(arg);
- } else {
- opts[curSwitch] = [opts[curSwitch], arg];
- }
- }
- });
-
- return opts;
-};
-
-var args = parse();
-
-//sys.puts("args: " + sys.inspect(args));
-var configPath = fs.realpathSync((args['--config'] != undefined) ? args['--config'] : "./builder/config.js"),
- logfile = (args['--logfile'] != undefined) ? args['--logfile'] : "./build.log",
- config = require(configPath),
- target = (args['--target'] != undefined) ? args['--target'] : config.project["default"];
-
-var logfileBase = path.basename(logfile),
- logfilePath = path.dirname(logfile)
-
-logfile = fs.realpathSync(logfilePath) + "/" + logfileBase;
-logfile = path.normalize(logfile);
-
-config.logfilePath = logfile;
-config.filepath = configPath;
-config.targets = fs.realpathSync(path.dirname(configPath) + "/targets");
-
-sys.puts("config: " + util.inspect(config, true, null));
-
-new Builder(config, logfile).build(target);
-
-
-/**
-
-
-
- <target description="Package Tutorials" name="tutorials" depends="build">
- <echo message="packaging tutorials"/>
- <mkdir dir="${build.home}/tutorials"/>
- <copy todir="${build.home}/tutorials/lib">
- <fileset dir="${build.home}/lib"/>
- </copy>
- <copy todir="${build.home}/tutorials/browsr">
- <fileset dir="${deploy.home}/reference/tutorials/browsr"/>
- </copy>
- </target>
-
- <target description="Package Examples" name="examples" depends="build">
- <echo message="packaging examples"/>
- <mkdir dir="${build.home}/examples"/>
- <copy todir="${build.home}/examples">
- <fileset dir="${deploy.home}/reference/examples"/>
- </copy>
-
- </target>
-
-
-
-
-
- <target name="dist" description="Create binary distribution" depends="clean,build,tutorials,examples">
-
- <echo message="Creating distribution archives"/>
- <mkdir dir="${dist.home}"/>
-
- <delete file="${dist.home}/${app.name}-${app.version}.tar.gz"/>
- <delete file="${dist.home}/${app.name}-tutorials-${app.version}.tar.gz"/>
- <delete file="${dist.home}/${app.name}-examples-${app.version}.tar.gz"/>
- <delete file="${dist.home}/${app.name}-${app.version}.zip"/>
- <delete file="${dist.home}/${app.name}-tutorials-${app.version}.zip"/>
- <delete file="${dist.home}/${app.name}-examples-${app.version}.zip"/>
-
- <!-- Create source zip file -->
- <zip destfile="${dist.home}/${app.name}-${app.version}.zip" update="true">
- <zipfileset dir="${build.home}/lib" prefix="${app.name}"/>
- </zip>
- <!-- Create tutorials zip file -->
- <zip destfile="${dist.home}/${app.name}-tutorials-${app.version}.zip" update="true">
- <zipfileset dir="${build.home}/tutorials" prefix="${app.name}"/>
- </zip>
- <!-- Create examples zip file -->
- <zip destfile="${dist.home}/${app.name}-examples-${app.version}.zip" update="true">
- <zipfileset dir="${build.home}/examples" prefix="${app.name}"/>
- </zip>
-
- <!-- create tar file -->
- <tar destfile="${dist.home}/${app.name}-${app.version}.tar">
- <tarfileset dir="${build.home}/lib" prefix="${app.name}"/>
- </tar>
- <gzip src="${dist.home}/${app.name}-${app.version}.tar" destfile="${dist.home}/${app.name}-${app.version}.tar.gz"/>
-
- <delete file="${dist.home}/${app.name}-${app.version}.tar"/>
-
- <!-- create tar file -->
- <tar destfile="${dist.home}/${app.name}-tutorials-${app.version}.tar">
- <tarfileset dir="${build.home}/tutorials" prefix="${app.name}"/>
- </tar>
- <gzip src="${dist.home}/${app.name}-tutorials-${app.version}.tar" destfile="${dist.home}/${app.name}-tutorials-${app.version}.tar.gz"/>
-
- <delete file="${dist.home}/${app.name}-tutorials-${app.version}.tar"/>
-
- <!-- create tar file -->
- <tar destfile="${dist.home}/${app.name}-examples-${app.version}.tar">
- <tarfileset dir="${build.home}/examples" prefix="${app.name}"/>
- </tar>
- <gzip src="${dist.home}/${app.name}-examples-${app.version}.tar" destfile="${dist.home}/${app.name}-examples-${app.version}.tar.gz"/>
-
- <delete file="${dist.home}/${app.name}-examples-${app.version}.tar"/>
-
- </target>
-
-*/
View
View
@@ -9,7 +9,7 @@ var basedir = fs.realpathSync(__dirname + "/.."),
app: {
name: "jxlib",
path: "/jxlib",
- version: "3.1b3",
+ version: "3.2-dev",
home: basedir,
build: basedir + "/build",
dist: basedir + "/dist",
@@ -3,7 +3,7 @@ module.exports = function(config,logger) {
return {
name: "deploy",
description: "Deploy JxLib",
- depends: ["tests","docs"],
+ depends: ["tests","docs","require"],
tasks: [{
echo: "Deploying files"
},{
@@ -62,6 +62,10 @@ module.exports = function(config,logger) {
},{
concat: {
files: [
+ config.project.basedir + "/src/open-comment.txt",
+ config.app.vendor + "/mootools-core/Source/license.txt",
+ config.app.vendor + "/mootools-more/Source/license.txt",
+ config.project.basedir + "/src/close-comment.txt",
config.app.build + "/Source/license.js",
config.app.build + "/lib/jxlib.uncompressed.temp.js"
],
@@ -88,6 +92,10 @@ module.exports = function(config,logger) {
},{
concat: {
files: [
+ config.project.basedir + "/src/open-comment.txt",
+ config.app.vendor + "/mootools-core/Source/license.txt",
+ config.app.vendor + "/mootools-more/Source/license.txt",
+ config.project.basedir + "/src/close-comment.txt",
config.app.build + "/Source/license.js",
config.app.build + "/lib/jxlib.compressed.js"
],
@@ -126,6 +134,7 @@ module.exports = function(config,logger) {
config.app.build + "/lib/jxlib.standalone.compressed.js",
config.app.build + "/lib/jxlib.compressed.js",
config.app.build + "/lib/jxlib.uncompressed.temp.js",
+ config.app.build + "/lib/jxlib.uncompressed.1.js",
config.app.build + "/lib/jxlib.temp.js"
]
},{
@@ -1,21 +0,0 @@
-/*
----
-
-name: Jx.Adaptor.Combo
-
-description: Namespace for all Jx.Combo adaptors.
-
-license: MIT-style license.
-
-requires:
- - Jx.Adaptor
-
-provides: [Jx.Adaptor.Combo]
-
-...
-*/
-/**
- * Class: Jx.Adaptor.Combo
- * The namespace for all combo adaptors
- */
-Jx.Adaptor.Combo = {};
@@ -1,86 +0,0 @@
-/*
----
-
-name: Jx.Adaptor
-
-description: Base class for all Adaptors.
-
-license: MIT-style license.
-
-requires:
- - Jx.Plugin
-
-provides: [Jx.Adaptor]
-
-...
- */
-/**
- * Class: Jx.Adaptor
- * Base class for all adaptor implementations. Provides a place to locate all
- * common code and the Jx.Adaptor namespace. Since it extends <Jx.Plugin> all
- * adaptors will be able to be used as plugins for their respective classes.
- * Also as such, they must have the attach() and detach() methods.
- *
- * Adaptors are specifically used to conform a <Jx.Store> to any one of
- * the different widgets (i.e. Jx.Tree, Jx.ListView, etc...) that could
- * benefit from integration with the store. This approach was taken to minimize
- * data access code in the widgets themselves. Widgets should have no idea where
- * the data/items come from so that they will be usable in the broadest number
- * of situations.
- *
- * Copyright 2010 by Jonathan Bomgardner
- * License: mit-style
- */
-Jx.Adaptor = new Class({
-
-
- Extends: Jx.Plugin,
- Family: 'Jx.Adaptor',
-
- name: 'Jx.Adaptor',
-
- options: {
- /**
- * Option: template
- * The text template to use in creating the items for this adaptor
- */
- template: '',
- /**
- * Option: useTemplate
- * Whether or not to use the text template above. Defaults to true.
- */
- useTemplate: true,
- /**
- * Option: store
- * The store to use with the adaptor.
- */
- store: null
- },
- /**
- * Property: columnsNeeded
- * Will hold an array of the column names needed for processing the
- * template
- */
- columnsNeeded: null,
-
- init: function () {
- var options = this.options;
- this.parent();
-
- this.store = options.store;
-
- if (options.useTemplate && (this.store.getFields() !== undefined || this.store.getFields() !== null)) {
- this.columnsNeeded = this.store.parseTemplate(options.template);
- }
- },
-
- attach: function (widget) {
- this.parent(widget);
- this.widget = widget;
- },
-
- detach: function () {
- this.parent();
- }
-
-});
@@ -1,18 +0,0 @@
-/*
----
-
-name: Jx.Adaptor.ListView
-
-description:
-
-license: MIT-style license.
-
-requires:
- - Jx.Adaptor
-
-
-provides: [Jx.Adaptor.ListView]
-
-...
- */
-Jx.Adaptor.ListView = {}
Oops, something went wrong.

0 comments on commit 5c9e709

Please sign in to comment.