Skip to content
  • 16 commits
  • 274 files changed
  • 0 commit comments
  • 2 contributors
Showing with 20,326 additions and 1,275 deletions.
  1. +7 −1 .gitignore
  2. BIN area-chart.xda
  3. +0 −14 area-chart/app.html
  4. +0 −19 area-chart/app/view/Viewport.js
  5. +0 −65 area-chart/area-chart.xds
  6. BIN areaChart.xda
  7. +34 −0 areaChart/Readme.md
  8. +11 −9 {area-chart → areaChart}/app.js
  9. +11 −0 areaChart/app.json
  10. +17 −0 areaChart/app/Application.js
  11. +15 −0 areaChart/app/Readme.md
  12. +3 −0 areaChart/app/controller/Main.js
  13. +1 −0 areaChart/app/controller/Readme.md
  14. +1 −0 areaChart/app/model/Readme.md
  15. +7 −3 {area-chart → areaChart}/app/store/MyStore.js
  16. +1 −0 areaChart/app/store/Readme.md
  17. +26 −0 areaChart/app/view/Main.js
  18. +21 −15 {area-chart → areaChart}/app/view/MyWindow.js
  19. +1 −0 areaChart/app/view/Readme.md
  20. +55 −0 areaChart/areaChart.xds
  21. +2 −0 areaChart/bootstrap.css
  22. +2,021 −0 areaChart/bootstrap.js
  23. +7 −0 areaChart/bootstrap.json
  24. +18 −0 areaChart/index.html
  25. +2 −3 {area-chart → areaChart}/metadata/Application
  26. +4 −0 {area-chart → areaChart}/metadata/resource/Library
  27. +12 −18 {area-chart → areaChart}/metadata/store/MyStore
  28. +28 −39 {area-chart → areaChart}/metadata/view/MyWindow
  29. +2 −0 areaChart/sass/config.rb
  30. +7 −0 areaChart/sass/example/bootstrap.css
  31. +12 −0 areaChart/sass/example/custom.js
  32. +426 −0 areaChart/sass/example/render.js
  33. +44 −0 areaChart/sass/example/theme.html
  34. BIN array-grid.xda
  35. +0 −14 array-grid/app.html
  36. +0 −19 array-grid/app/view/Viewport.js
  37. +0 −65 array-grid/array-grid.xds
  38. +0 −113 array-grid/metadata/store/MyArrayStore
  39. BIN arrayGrid.xda
  40. +34 −0 arrayGrid/Readme.md
  41. +6 −9 {array-grid → arrayGrid}/app.js
  42. +11 −0 arrayGrid/app.json
  43. +17 −0 arrayGrid/app/Application.js
  44. +15 −0 arrayGrid/app/Readme.md
  45. +3 −0 arrayGrid/app/controller/Main.js
  46. +1 −0 arrayGrid/app/controller/Readme.md
  47. +1 −0 arrayGrid/app/model/Readme.md
  48. +9 −3 {array-grid → arrayGrid}/app/store/MyArrayStore.js
  49. +1 −0 arrayGrid/app/store/Readme.md
  50. +26 −0 arrayGrid/app/view/Main.js
  51. +3 −3 {array-grid → arrayGrid}/app/view/MyGridPanel.js
  52. +1 −0 arrayGrid/app/view/Readme.md
  53. +55 −0 arrayGrid/arrayGrid.xds
  54. +2 −0 arrayGrid/bootstrap.css
  55. +2,019 −0 arrayGrid/bootstrap.js
  56. +7 −0 arrayGrid/bootstrap.json
  57. +18 −0 arrayGrid/index.html
  58. +2 −4 {array-grid → arrayGrid}/metadata/Application
  59. +4 −0 {array-grid → arrayGrid}/metadata/resource/Library
  60. +134 −0 arrayGrid/metadata/store/MyArrayStore
  61. +15 −24 {array-grid → arrayGrid}/metadata/view/MyGridPanel
  62. +2 −0 arrayGrid/sass/config.rb
  63. +7 −0 arrayGrid/sass/example/bootstrap.css
  64. +12 −0 arrayGrid/sass/example/custom.js
  65. +426 −0 arrayGrid/sass/example/render.js
  66. +44 −0 arrayGrid/sass/example/theme.html
  67. BIN check-tree.xda
  68. +0 −14 check-tree/app.html
  69. +0 −19 check-tree/app/view/Viewport.js
  70. +0 −65 check-tree/check-tree.xds
  71. BIN checkTree.xda
  72. +34 −0 checkTree/Readme.md
  73. +11 −9 {check-tree → checkTree}/app.js
  74. +11 −0 checkTree/app.json
  75. +17 −0 checkTree/app/Application.js
  76. +15 −0 checkTree/app/Readme.md
  77. +3 −0 checkTree/app/controller/Main.js
  78. +1 −0 checkTree/app/controller/Readme.md
  79. +1 −0 checkTree/app/model/Readme.md
  80. +9 −3 {check-tree → checkTree}/app/store/MyJsonTreeStore.js
  81. +1 −0 checkTree/app/store/Readme.md
  82. +3 −3 {check-tree → checkTree}/app/view/CheckTreePanel.js
  83. +26 −0 checkTree/app/view/Main.js
  84. +1 −0 checkTree/app/view/Readme.md
  85. +2 −0 checkTree/bootstrap.css
  86. +2,019 −0 checkTree/bootstrap.js
  87. +7 −0 checkTree/bootstrap.json
  88. 0 {check-tree → checkTree}/check-nodes.json
  89. +54 −0 checkTree/checkTree.xds
  90. +18 −0 checkTree/index.html
  91. +2 −3 {check-tree → checkTree}/metadata/Application
  92. +4 −0 {check-tree → checkTree}/metadata/resource/Library
  93. +3 −8 {check-tree → checkTree}/metadata/store/MyJsonTreeStore
  94. +7 −13 {check-tree → checkTree}/metadata/view/CheckTreePanel
  95. +2 −0 checkTree/sass/config.rb
  96. +7 −0 checkTree/sass/example/bootstrap.css
  97. +12 −0 checkTree/sass/example/custom.js
  98. +426 −0 checkTree/sass/example/render.js
  99. +44 −0 checkTree/sass/example/theme.html
  100. BIN dynamic-form.xda
  101. +0 −19 dynamic-form/app/view/Viewport.js
  102. +0 −100 dynamic-form/dynamic-form.xds
  103. BIN dynamicForm.xda
  104. +34 −0 dynamicForm/Readme.md
  105. 0 {dynamic-form → dynamicForm}/app.html
  106. +11 −14 {dynamic-form → dynamicForm}/app.js
  107. +11 −0 dynamicForm/app.json
  108. +17 −0 dynamicForm/app/Application.js
  109. +15 −0 dynamicForm/app/Readme.md
  110. +3 −0 dynamicForm/app/controller/Main.js
  111. +1 −0 dynamicForm/app/controller/Readme.md
  112. +1 −0 dynamicForm/app/model/Readme.md
  113. +1 −0 dynamicForm/app/store/Readme.md
  114. +3 −3 {dynamic-form → dynamicForm}/app/view/ComplexForm.js
  115. +3 −3 {dynamic-form → dynamicForm}/app/view/ComplexLayoutForm.js
  116. +26 −0 dynamicForm/app/view/Main.js
  117. +3 −3 {dynamic-form → dynamicForm}/app/view/MyViewport.js
  118. +1 −0 dynamicForm/app/view/Readme.md
  119. +3 −3 {dynamic-form → dynamicForm}/app/view/SimpleFieldsetsForm.js
  120. +3 −3 {dynamic-form → dynamicForm}/app/view/SimpleForm.js
  121. +3 −3 {dynamic-form → dynamicForm}/app/view/TabbedForm.js
  122. +2 −0 dynamicForm/bootstrap.css
  123. +2,037 −0 dynamicForm/bootstrap.js
  124. +7 −0 dynamicForm/bootstrap.json
  125. +58 −0 dynamicForm/dynamicForm.xds
  126. +18 −0 dynamicForm/index.html
  127. +2 −3 {dynamic-form → dynamicForm}/metadata/Application
  128. +4 −0 {dynamic-form → dynamicForm}/metadata/resource/Library
  129. +25 −58 {dynamic-form → dynamicForm}/metadata/view/ComplexForm
  130. +22 −34 {dynamic-form → dynamicForm}/metadata/view/ComplexLayoutForm
  131. +2 −2 {dynamic-form → dynamicForm}/metadata/view/MyViewport
  132. +23 −37 {dynamic-form → dynamicForm}/metadata/view/SimpleFieldsetsForm
  133. +17 −26 {dynamic-form → dynamicForm}/metadata/view/SimpleForm
  134. +9 −30 {dynamic-form → dynamicForm}/metadata/view/TabbedForm
  135. +2 −0 dynamicForm/sass/config.rb
  136. +7 −0 dynamicForm/sass/example/bootstrap.css
  137. +12 −0 dynamicForm/sass/example/custom.js
  138. +426 −0 dynamicForm/sass/example/render.js
  139. +44 −0 dynamicForm/sass/example/theme.html
  140. BIN editablegrid.xda
  141. +34 −0 editablegrid/Readme.md
  142. +0 −14 editablegrid/app.html
  143. +11 −5 editablegrid/app.js
  144. +11 −0 editablegrid/app.json
  145. +17 −0 editablegrid/app/Application.js
  146. +15 −0 editablegrid/app/Readme.md
  147. +3 −0 editablegrid/app/controller/Main.js
  148. +1 −0 editablegrid/app/controller/Readme.md
  149. +7 −3 editablegrid/app/model/Plant.js
  150. +1 −0 editablegrid/app/model/Readme.md
  151. +6 −4 editablegrid/app/store/Plants.js
  152. +1 −0 editablegrid/app/store/Readme.md
  153. +26 −0 editablegrid/app/view/Main.js
  154. +13 −5 editablegrid/app/view/PlantsGridPanel.js
  155. +1 −0 editablegrid/app/view/Readme.md
  156. +0 −19 editablegrid/app/view/Viewport.js
  157. +2 −0 editablegrid/bootstrap.css
  158. +2,023 −0 editablegrid/bootstrap.js
  159. +7 −0 editablegrid/bootstrap.json
  160. +21 −39 editablegrid/editablegrid.xds
  161. +18 −0 editablegrid/index.html
  162. +2 −3 editablegrid/metadata/Application
  163. +6 −12 editablegrid/metadata/model/Plant
  164. +4 −0 editablegrid/metadata/resource/Library
  165. +332 −8 editablegrid/metadata/store/Plants
  166. +40 −47 editablegrid/metadata/view/PlantsGridPanel
  167. +2 −0 editablegrid/sass/config.rb
  168. +7 −0 editablegrid/sass/example/bootstrap.css
  169. +12 −0 editablegrid/sass/example/custom.js
  170. +426 −0 editablegrid/sass/example/render.js
  171. +44 −0 editablegrid/sass/example/theme.html
  172. BIN interactivity/controlleraction.xda
  173. +34 −0 interactivity/controlleraction/Readme.md
  174. +11 −9 interactivity/controlleraction/app.js
  175. +10 −0 interactivity/controlleraction/app.json
  176. +17 −0 interactivity/controlleraction/app/Application.js
  177. +15 −0 interactivity/controlleraction/app/Readme.md
  178. +3 −0 interactivity/controlleraction/app/controller/Main.js
  179. +3 −3 interactivity/controlleraction/app/controller/MyController.js
  180. +1 −0 interactivity/controlleraction/app/controller/Readme.md
  181. +1 −0 interactivity/controlleraction/app/model/Readme.md
  182. +1 −0 interactivity/controlleraction/app/store/Readme.md
  183. +26 −0 interactivity/controlleraction/app/view/Main.js
  184. +3 −3 interactivity/controlleraction/app/view/MyPanel.js
  185. +1 −0 interactivity/controlleraction/app/view/Readme.md
  186. +0 −19 interactivity/controlleraction/app/view/Viewport.js
  187. +2 −0 interactivity/controlleraction/bootstrap.css
  188. +2,019 −0 interactivity/controlleraction/bootstrap.js
  189. +7 −0 interactivity/controlleraction/bootstrap.json
  190. +21 −31 interactivity/controlleraction/controlleraction.xds
  191. +2 −2 interactivity/controlleraction/{app.html → index.html}
  192. +4 −5 interactivity/controlleraction/metadata/Application
  193. +3 −4 interactivity/controlleraction/metadata/controller/MyController
  194. +4 −0 interactivity/controlleraction/metadata/resource/Library
  195. +5 −6 interactivity/controlleraction/metadata/view/MyPanel
  196. +2 −0 interactivity/controlleraction/sass/config.rb
  197. +7 −0 interactivity/controlleraction/sass/example/bootstrap.css
  198. +12 −0 interactivity/controlleraction/sass/example/custom.js
  199. +426 −0 interactivity/controlleraction/sass/example/render.js
  200. +44 −0 interactivity/controlleraction/sass/example/theme.html
  201. BIN interactivity/eventbinding.xda
  202. +11 −9 interactivity/eventbinding/app.js
  203. +10 −0 interactivity/eventbinding/app.json
  204. +15 −0 interactivity/eventbinding/app/Readme.md
  205. +3 −0 interactivity/eventbinding/app/controller/Main.js
  206. +1 −0 interactivity/eventbinding/app/controller/Readme.md
  207. +1 −0 interactivity/eventbinding/app/model/Readme.md
  208. +1 −0 interactivity/eventbinding/app/store/Readme.md
  209. +3 −3 interactivity/eventbinding/app/view/MyPanel.js
  210. +1 −0 interactivity/eventbinding/app/view/Readme.md
  211. +0 −19 interactivity/eventbinding/app/view/Viewport.js
  212. +2 −0 interactivity/eventbinding/bootstrap.css
  213. +2,011 −0 interactivity/eventbinding/bootstrap.js
  214. +7 −0 interactivity/eventbinding/bootstrap.json
  215. +21 −23 interactivity/eventbinding/eventbinding.xds
  216. +2 −2 interactivity/eventbinding/{app.html → index.html}
  217. +2 −3 interactivity/eventbinding/metadata/Application
  218. +4 −0 interactivity/eventbinding/metadata/resource/Library
  219. +4 −6 interactivity/eventbinding/metadata/view/MyPanel
  220. +2 −0 interactivity/eventbinding/packages/eventbinding-theme/Readme.md
  221. BIN interactivity/eventbinding/packages/eventbinding-theme/docs/package.png
  222. BIN interactivity/eventbinding/packages/eventbinding-theme/docs/screenshots/screenshot-1.png
  223. +38 −0 interactivity/eventbinding/packages/eventbinding-theme/examples/Readme.md
  224. +3 −0 interactivity/eventbinding/packages/eventbinding-theme/licenses/Readme.md
  225. +3 −0 interactivity/eventbinding/packages/eventbinding-theme/overrides/Readme.md
  226. +13 −0 interactivity/eventbinding/packages/eventbinding-theme/package.json
  227. +3 −0 interactivity/eventbinding/packages/eventbinding-theme/resources/Readme.md
  228. +1 −0 interactivity/eventbinding/packages/eventbinding-theme/resources/app.css
  229. +7 −0 interactivity/eventbinding/packages/eventbinding-theme/sass/Readme.md
  230. +2 −0 interactivity/eventbinding/packages/eventbinding-theme/sass/config.rb
  231. +4 −0 interactivity/eventbinding/packages/eventbinding-theme/sass/etc/Readme.md
  232. 0 interactivity/eventbinding/packages/eventbinding-theme/sass/etc/all.scss
  233. +7 −0 interactivity/eventbinding/packages/eventbinding-theme/sass/etc/app.scss
  234. +12 −0 interactivity/eventbinding/packages/eventbinding-theme/sass/example/custom.js
  235. +423 −0 interactivity/eventbinding/packages/eventbinding-theme/sass/example/render.js
  236. +44 −0 interactivity/eventbinding/packages/eventbinding-theme/sass/example/theme.html
  237. +4 −0 interactivity/eventbinding/packages/eventbinding-theme/sass/src/Readme.md
  238. +3 −0 interactivity/eventbinding/packages/eventbinding-theme/sass/var/Readme.md
  239. +4 −0 interactivity/eventbinding/packages/eventbinding-theme/src/Readme.md
  240. +2 −0 interactivity/eventbinding/sass/config.rb
  241. +426 −0 interactivity/eventbinding/sass/example/render.js
  242. +44 −0 interactivity/eventbinding/sass/example/theme.html
  243. BIN menu.xda
  244. +34 −0 menu/Readme.md
  245. +0 −14 menu/app.html
  246. +11 −9 menu/app.js
  247. +11 −0 menu/app.json
  248. +17 −0 menu/app/Application.js
  249. +15 −0 menu/app/Readme.md
  250. +3 −0 menu/app/controller/Main.js
  251. +1 −0 menu/app/controller/Readme.md
  252. +1 −0 menu/app/model/Readme.md
  253. +9 −3 menu/app/store/ComboStore.js
  254. +1 −0 menu/app/store/Readme.md
  255. +26 −0 menu/app/view/Main.js
  256. +3 −3 menu/app/view/MyComboBox.js
  257. +3 −3 menu/app/view/MyPanel.js
  258. +1 −0 menu/app/view/Readme.md
  259. +0 −19 menu/app/view/Viewport.js
  260. +2 −0 menu/bootstrap.css
Sorry, we could not display the entire diff because it was too big.
View
8 .gitignore
@@ -1,2 +1,8 @@
.DS_Store
-*.architect
+.architect
+.sencha
+.sencha_backup
+ext
+touch
+build
+build.xml
View
BIN area-chart.xda
Binary file not shown.
View
14 area-chart/app.html
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-
-<!-- Auto Generated with Sencha Architect -->
-<!-- Modifications to this file will be overwritten. -->
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>area-chart</title>
- <script src="http://extjs.cachefly.net/ext-4.0.7-commercial/ext-all.js"></script>
- <link rel="stylesheet" href="http://extjs.cachefly.net/ext-4.0.7-commercial/resources/css/ext-all.css">
- <script type="text/javascript" src="app.js"></script>
-</head>
-<body></body>
-</html>
View
19 area-chart/app/view/Viewport.js
@@ -1,19 +0,0 @@
-/*
- * File: app/view/Viewport.js
- *
- * This file was generated by Sencha Architect version 2.2.0.
- * http://www.sencha.com/products/architect/
- *
- * This file requires use of the Ext JS 4.0.x library, under independent license.
- * License of Sencha Architect does not include license for Ext JS 4.0.x. For more
- * details see http://www.sencha.com/license or contact license@sencha.com.
- *
- * This file will be auto-generated each and everytime you save your project.
- *
- * Do NOT hand edit this file.
- */
-
-Ext.define('MyApp.view.Viewport', {
- extend: 'MyApp.view.MyWindow',
- renderTo: Ext.getBody()
-});
View
65 area-chart/area-chart.xds
@@ -1,65 +0,0 @@
-{
- "name": "area-chart",
- "settings": {
- "urlPrefix": "http://localhost/",
- "spacesToIndent": 4,
- "exportPath": "",
- "sdkPath": "",
- "lineEnding": "LF",
- "genTimestamps": false,
- "cacheBust": false,
- "codeGenFormat": "Class",
- "senchaIoKey": "",
- "senchaIoPath": "http://extjs.cachefly.net/designer/IO/",
- "instantiateStore": true,
- "saveOnDeploy": false,
- "appName": "MyApp",
- "cssPath": ""
- },
- "xdsVersion": "2.2.0",
- "xdsBuild": 840,
- "schemaVersion": 1,
- "upgradeVersion": 210000000499,
- "framework": "ext40",
- "topInstanceFileMap": {
- "2f0a83e9-cc8c-4aeb-b6d7-6f685decfa16": {
- "paths": [
- "metadata/view/MyWindow",
- "app/view/override/MyWindow.js",
- "app/view/MyWindow.js",
- "app/view/Viewport.js"
- ],
- "className": "MyWindow"
- },
- "613a5e61-a5b9-4423-8837-9f746de96e01": {
- "paths": [
- "metadata/store/MyStore",
- "app/store/override/MyStore.js",
- "app/store/MyStore.js"
- ],
- "className": "MyStore"
- },
- "464e301b-dd9d-4c4b-b030-b6874e6ff0be": {
- "paths": [
- "metadata/resource/Library"
- ],
- "className": "Library"
- }
- },
- "viewOrderMap": {
- "view": [
- "2f0a83e9-cc8c-4aeb-b6d7-6f685decfa16"
- ],
- "store": [
- "613a5e61-a5b9-4423-8837-9f746de96e01"
- ],
- "controller": [],
- "model": [],
- "resource": [
- "464e301b-dd9d-4c4b-b030-b6874e6ff0be"
- ],
- "app": [
- "application"
- ]
- }
-}
View
BIN areaChart.xda
Binary file not shown.
View
34 areaChart/Readme.md
@@ -0,0 +1,34 @@
+# areaChart/app
+
+This folder contains the javascript files for the application.
+
+# areaChart/resources
+
+This folder contains static resources (typically an `"images"` folder as well).
+
+# areaChart/overrides
+
+This folder contains override classes. All overrides in this folder will be
+automatically included in application builds if the target class of the override
+is loaded.
+
+# areaChart/sass/etc
+
+This folder contains misc. support code for sass builds (global functions,
+mixins, etc.)
+
+# areaChart/sass/src
+
+This folder contains sass files defining css rules corresponding to classes
+included in the application's javascript code build. By default, files in this
+folder are mapped to the application's root namespace, 'areaChart'. The
+namespace to which files in this directory are matched is controlled by the
+app.sass.namespace property in areaChart/.sencha/app/sencha.cfg.
+
+# areaChart/sass/var
+
+This folder contains sass files defining sass variables corresponding to classes
+included in the application's javascript code build. By default, files in this
+folder are mapped to the application's root namespace, 'areaChart'. The
+namespace to which files in this directory are matched is controlled by the
+app.sass.namespace property in areaChart/.sencha/app/sencha.cfg.
View
20 area-chart/app.js → areaChart/app.js
@@ -1,11 +1,11 @@
/*
* File: app.js
*
- * This file was generated by Sencha Architect version 2.2.0.
+ * This file was generated by Sencha Architect version 3.0.0.
* http://www.sencha.com/products/architect/
*
- * This file requires use of the Ext JS 4.0.x library, under independent license.
- * License of Sencha Architect does not include license for Ext JS 4.0.x. For more
+ * This file requires use of the Ext JS 4.2.x library, under independent license.
+ * License of Sencha Architect does not include license for Ext JS 4.2.x. For more
* details see http://www.sencha.com/license or contact license@sencha.com.
*
* This file will be auto-generated each and everytime you save your project.
@@ -13,21 +13,23 @@
* Do NOT hand edit this file.
*/
+// @require @packageOverrides
Ext.Loader.setConfig({
enabled: true
});
-Ext.application({
- requires: [
- 'MyApp.view.MyWindow'
- ],
+Ext.application({
stores: [
'MyStore'
],
views: [
'MyWindow'
],
- autoCreateViewport: true,
- name: 'MyApp'
+ name: 'MyApp',
+
+ launch: function() {
+ Ext.create('MyApp.view.MyWindow', {renderTo: Ext.getBody()});
+ }
+
});
View
11 areaChart/app.json
@@ -0,0 +1,11 @@
+{
+ "name": "MyApp",
+ "requires": [],
+ "id": "e3148612-dfcc-49e4-a8e4-a9d838563077",
+ "resources": [],
+ "_architect": {
+ "_comment": "Please don't edit. This is Architect data.",
+ "resources": [],
+ "requires": []
+ }
+}
View
17 areaChart/app/Application.js
@@ -0,0 +1,17 @@
+Ext.define('areaChart.Application', {
+ name: 'areaChart',
+
+ extend: 'Ext.app.Application',
+
+ views: [
+ // TODO: add views here
+ ],
+
+ controllers: [
+ // TODO: add controllers here
+ ],
+
+ stores: [
+ // TODO: add stores here
+ ]
+});
View
15 areaChart/app/Readme.md
@@ -0,0 +1,15 @@
+# ./controller
+
+This folder contains the controllers
+
+# ./model
+
+This folder contains the models
+
+# ./view
+
+This folder contains the views
+
+# ./store
+
+This folder contains the stores
View
3 areaChart/app/controller/Main.js
@@ -0,0 +1,3 @@
+Ext.define('areaChart.controller.Main', {
+ extend: 'Ext.app.Controller'
+});
View
1 areaChart/app/controller/Readme.md
@@ -0,0 +1 @@
+This folder contains the controllers
View
1 areaChart/app/model/Readme.md
@@ -0,0 +1 @@
+This folder contains the models
View
10 area-chart/app/store/MyStore.js → areaChart/app/store/MyStore.js
@@ -1,11 +1,11 @@
/*
* File: app/store/MyStore.js
*
- * This file was generated by Sencha Architect version 2.2.0.
+ * This file was generated by Sencha Architect version 3.0.0.
* http://www.sencha.com/products/architect/
*
- * This file requires use of the Ext JS 4.0.x library, under independent license.
- * License of Sencha Architect does not include license for Ext JS 4.0.x. For more
+ * This file requires use of the Ext JS 4.2.x library, under independent license.
+ * License of Sencha Architect does not include license for Ext JS 4.2.x. For more
* details see http://www.sencha.com/license or contact license@sencha.com.
*
* This file will be auto-generated each and everytime you save your project.
@@ -16,6 +16,10 @@
Ext.define('MyApp.store.MyStore', {
extend: 'Ext.data.Store',
+ requires: [
+ 'Ext.data.Field'
+ ],
+
constructor: function(cfg) {
var me = this;
cfg = cfg || {};
View
1 areaChart/app/store/Readme.md
@@ -0,0 +1 @@
+This folder contains the stores
View
26 areaChart/app/view/Main.js
@@ -0,0 +1,26 @@
+Ext.define('areaChart.view.Main', {
+ extend: 'Ext.container.Container',
+ requires:[
+ 'Ext.tab.Panel',
+ 'Ext.layout.container.Border'
+ ],
+
+ xtype: 'app-main',
+
+ layout: {
+ type: 'border'
+ },
+
+ items: [{
+ region: 'west',
+ xtype: 'panel',
+ title: 'west',
+ width: 150
+ },{
+ region: 'center',
+ xtype: 'tabpanel',
+ items:[{
+ title: 'Center Tab 1'
+ }]
+ }]
+});
View
36 area-chart/app/view/MyWindow.js → areaChart/app/view/MyWindow.js
@@ -1,11 +1,11 @@
/*
* File: app/view/MyWindow.js
*
- * This file was generated by Sencha Architect version 2.2.0.
+ * This file was generated by Sencha Architect version 3.0.0.
* http://www.sencha.com/products/architect/
*
- * This file requires use of the Ext JS 4.0.x library, under independent license.
- * License of Sencha Architect does not include license for Ext JS 4.0.x. For more
+ * This file requires use of the Ext JS 4.2.x library, under independent license.
+ * License of Sencha Architect does not include license for Ext JS 4.2.x. For more
* details see http://www.sencha.com/license or contact license@sencha.com.
*
* This file will be auto-generated each and everytime you save your project.
@@ -17,6 +17,12 @@ Ext.define('MyApp.view.MyWindow', {
extend: 'Ext.window.Window',
alias: 'widget.mywindow',
+ requires: [
+ 'Ext.chart.axis.Numeric',
+ 'Ext.chart.axis.Category',
+ 'Ext.chart.series.Area'
+ ],
+
autoShow: true,
height: 600,
width: 800,
@@ -72,16 +78,6 @@ Ext.define('MyApp.view.MyWindow', {
axes: [
{
type: 'Numeric',
- grid: {
- odd: {
- opacity: 1,
- fill: '#ddd',
- stroke: '#bbb',
- 'stroke-width': 1
- }
- },
- position: 'left',
- title: 'Numeric Axis',
fields: [
'data1',
'data2',
@@ -91,12 +87,20 @@ Ext.define('MyApp.view.MyWindow', {
'data6',
'data7'
],
+ grid: {
+ odd: {
+ opacity: 1,
+ fill: '#ddd',
+ stroke: '#bbb',
+ 'stroke-width': 1
+ }
+ },
+ position: 'bottom',
+ title: 'Numeric Axis',
minimum: 0
},
{
type: 'Category',
- grid: true,
- title: 'Month of the Year',
fields: [
'name'
],
@@ -105,6 +109,8 @@ Ext.define('MyApp.view.MyWindow', {
degrees: 315
}
},
+ grid: true,
+ title: 'Month of the Year',
position: 'bottom'
}
],
View
1 areaChart/app/view/Readme.md
@@ -0,0 +1 @@
+This folder contains the views
View
55 areaChart/areaChart.xds
@@ -0,0 +1,55 @@
+{
+ "name": "areaChart",
+ "settings": {
+ "cmd": {
+ "license": "commercial",
+ "cmdVersion": "4.0.1.33",
+ "frameworkVersion": "4.2.1.883"
+ },
+ "urlPrefix": "http://localhost:4000/areaChart",
+ "spacesToIndent": 4,
+ "exportPath": "",
+ "sdkPath": "",
+ "lineEnding": "LF",
+ "genTimestamps": false,
+ "cacheBust": false,
+ "codeGenFormat": "Class",
+ "senchaIoKey": "",
+ "senchaIoPath": "http://extjs.cachefly.net/designer/IO/",
+ "instantiateStore": true,
+ "saveOnDeploy": false,
+ "appName": "MyApp",
+ "cssPath": "",
+ "canvasControls": {
+ "viewportSize": {
+ "name": "Auto Expand",
+ "builtIn": true,
+ "height": null,
+ "width": null
+ }
+ },
+ "buildShouldOverwriteIndex": true,
+ "generateArchitectVersion": true
+ },
+ "xdsVersion": "3.0.0",
+ "xdsBuild": 1337,
+ "schemaVersion": 1,
+ "upgradeVersion": 300000000003,
+ "framework": "ext42",
+ "viewOrderMap": {
+ "view": [
+ "2f0a83e9-cc8c-4aeb-b6d7-6f685decfa16"
+ ],
+ "store": [
+ "613a5e61-a5b9-4423-8837-9f746de96e01"
+ ],
+ "controller": [],
+ "model": [],
+ "resource": [
+ "464e301b-dd9d-4c4b-b030-b6874e6ff0be"
+ ],
+ "app": [
+ "application"
+ ]
+ }
+}
View
2 areaChart/bootstrap.css
@@ -0,0 +1,2 @@
+/* generated file */
+@import 'ext/packages/ext-theme-classic/build/resources/ext-theme-classic-all-rtl.css'
View
2,021 areaChart/bootstrap.js
2,021 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
7 areaChart/bootstrap.json
@@ -0,0 +1,7 @@
+
+/**
+ * This file is generated by Sencha Cmd and should NOT be edited. It is a
+ * combination of content from app.json, and all required package's package.json
+ * files. Customizations should be placed in app.json.
+ */
+{"id":"6c0df6e7-09cc-4386-b0b9-ffd2b4d168e4","js":[],"css":[]}
View
18 areaChart/index.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML>
+
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>areaChart</title>
+ <!-- <x-compile> -->
+ <!-- <x-bootstrap> -->
+ <link rel="stylesheet" href="bootstrap.css">
+ <script src="ext/ext-dev.js"></script>
+ <script src="bootstrap.js"></script>
+ <!-- </x-bootstrap> -->
+ <script type="text/javascript" src="app.js"></script>
+ <!-- </x-compile> -->
+</head>
+<body>
+</body>
+</html>
View
5 area-chart/metadata/Application → areaChart/metadata/Application
@@ -6,14 +6,13 @@
},
"codeClass": null,
"userConfig": {
+ "name": "MyApp",
"stores": [
"MyStore"
],
"views": [
"MyWindow"
- ],
- "autoCreateViewport": true,
- "name": "MyApp"
+ ]
},
"designerId": "application"
}
View
4 area-chart/metadata/resource/Library → areaChart/metadata/resource/Library
@@ -5,5 +5,9 @@
"type": "array"
},
"codeClass": null,
+ "userConfig": {
+ "basePath": "ext/",
+ "designer|userClassName": "Library"
+ },
"designerId": "464e301b-dd9d-4c4b-b030-b6874e6ff0be"
}
View
30 area-chart/metadata/store/MyStore → areaChart/metadata/store/MyStore
@@ -6,9 +6,11 @@
},
"codeClass": null,
"userConfig": {
- "storeId": "MyStore",
+ "data": [
+ "[{\"name\":\"January\",\"data1\":27,\"data2\":65,\"data3\":79,\"data4\":99,\"data5\":20,\"data6\":52,\"data7\":23,\"data8\":20,\"data9\":67},{\"name\":\"February\",\"data1\":28,\"data2\":45,\"data3\":21,\"data4\":21,\"data5\":99,\"data6\":77,\"data7\":80,\"data8\":75,\"data9\":92},{\"name\":\"March\",\"data1\":33,\"data2\":20,\"data3\":20,\"data4\":20,\"data5\":31,\"data6\":96,\"data7\":96,\"data8\":31,\"data9\":90},{\"name\":\"April\",\"data1\":97,\"data2\":20,\"data3\":46,\"data4\":60,\"data5\":20,\"data6\":87,\"data7\":88,\"data8\":90,\"data9\":89},{\"name\":\"May\",\"data1\":20,\"data2\":42,\"data3\":99,\"data4\":79,\"data5\":67,\"data6\":26,\"data7\":85,\"data8\":72,\"data9\":54},{\"name\":\"June\",\"data1\":20,\"data2\":94,\"data3\":79,\"data4\":20,\"data5\":28,\"data6\":49,\"data7\":20,\"data8\":67,\"data9\":60},{\"name\":\"July\",\"data1\":99,\"data2\":66,\"data3\":70,\"data4\":32,\"data5\":51,\"data6\":30,\"data7\":56,\"data8\":96,\"data9\":75},{\"name\":\"August\",\"data1\":42,\"data2\":59,\"data3\":23,\"data4\":54,\"data5\":29,\"data6\":68,\"data7\":20,\"data8\":67,\"data9\":48},{\"name\":\"September\",\"data1\":76,\"data2\":20,\"data3\":67,\"data4\":53,\"data5\":94,\"data6\":39,\"data7\":54,\"data8\":88,\"data9\":20},{\"name\":\"October\",\"data1\":58,\"data2\":23,\"data3\":23,\"data4\":59,\"data5\":63,\"data6\":29,\"data7\":20,\"data8\":20,\"data9\":25},{\"name\":\"November\",\"data1\":20,\"data2\":73,\"data3\":91,\"data4\":53,\"data5\":25,\"data6\":64,\"data7\":70,\"data8\":20,\"data9\":36},{\"name\":\"December\",\"data1\":20,\"data2\":57,\"data3\":20,\"data4\":28,\"data5\":50,\"data6\":20,\"data7\":59,\"data8\":51,\"data9\":47}]"
+ ],
"designer|userClassName": "MyStore",
- "data": "[{\"name\":\"January\",\"data1\":27,\"data2\":65,\"data3\":79,\"data4\":99,\"data5\":20,\"data6\":52,\"data7\":23,\"data8\":20,\"data9\":67},{\"name\":\"February\",\"data1\":28,\"data2\":45,\"data3\":21,\"data4\":21,\"data5\":99,\"data6\":77,\"data7\":80,\"data8\":75,\"data9\":92},{\"name\":\"March\",\"data1\":33,\"data2\":20,\"data3\":20,\"data4\":20,\"data5\":31,\"data6\":96,\"data7\":96,\"data8\":31,\"data9\":90},{\"name\":\"April\",\"data1\":97,\"data2\":20,\"data3\":46,\"data4\":60,\"data5\":20,\"data6\":87,\"data7\":88,\"data8\":90,\"data9\":89},{\"name\":\"May\",\"data1\":20,\"data2\":42,\"data3\":99,\"data4\":79,\"data5\":67,\"data6\":26,\"data7\":85,\"data8\":72,\"data9\":54},{\"name\":\"June\",\"data1\":20,\"data2\":94,\"data3\":79,\"data4\":20,\"data5\":28,\"data6\":49,\"data7\":20,\"data8\":67,\"data9\":60},{\"name\":\"July\",\"data1\":99,\"data2\":66,\"data3\":70,\"data4\":32,\"data5\":51,\"data6\":30,\"data7\":56,\"data8\":96,\"data9\":75},{\"name\":\"August\",\"data1\":42,\"data2\":59,\"data3\":23,\"data4\":54,\"data5\":29,\"data6\":68,\"data7\":20,\"data8\":67,\"data9\":48},{\"name\":\"September\",\"data1\":76,\"data2\":20,\"data3\":67,\"data4\":53,\"data5\":94,\"data6\":39,\"data7\":54,\"data8\":88,\"data9\":20},{\"name\":\"October\",\"data1\":58,\"data2\":23,\"data3\":23,\"data4\":59,\"data5\":63,\"data6\":29,\"data7\":20,\"data8\":20,\"data9\":25},{\"name\":\"November\",\"data1\":20,\"data2\":73,\"data3\":91,\"data4\":53,\"data5\":25,\"data6\":64,\"data7\":70,\"data8\":20,\"data9\":36},{\"name\":\"December\",\"data1\":20,\"data2\":57,\"data3\":20,\"data4\":28,\"data5\":50,\"data6\":20,\"data7\":59,\"data8\":51,\"data9\":47}]"
+ "storeId": "MyStore"
},
"mockCfgs": [
"data"
@@ -23,8 +25,7 @@
},
"codeClass": null,
"userConfig": {
- "name": "name",
- "designer|userClassName": "MyField"
+ "name": "name"
},
"designerId": "7529d9c3-45f9-4d19-bd31-165078cd5b28"
},
@@ -37,8 +38,7 @@
"codeClass": null,
"userConfig": {
"name": "data1",
- "type": null,
- "designer|userClassName": "MyField1"
+ "type": null
},
"designerId": "81af2745-9543-4c5e-9f12-5d2716aaff52"
},
@@ -50,8 +50,7 @@
},
"codeClass": null,
"userConfig": {
- "name": "data2",
- "designer|userClassName": "MyField2"
+ "name": "data2"
},
"designerId": "a8061a74-8ef6-463c-a588-0b5a3ee5eb61"
},
@@ -63,8 +62,7 @@
},
"codeClass": null,
"userConfig": {
- "name": "data3",
- "designer|userClassName": "MyField3"
+ "name": "data3"
},
"designerId": "77d026ef-a561-41bc-843d-327a1c0344d0"
},
@@ -76,8 +74,7 @@
},
"codeClass": null,
"userConfig": {
- "name": "data4",
- "designer|userClassName": "MyField4"
+ "name": "data4"
},
"designerId": "61fda478-94c8-4b24-9e85-942f6a99dd6f"
},
@@ -89,8 +86,7 @@
},
"codeClass": null,
"userConfig": {
- "name": "data5",
- "designer|userClassName": "MyField5"
+ "name": "data5"
},
"designerId": "b1af54dc-5c3a-4dad-81c9-647f48dfaa52"
},
@@ -102,8 +98,7 @@
},
"codeClass": null,
"userConfig": {
- "name": "data6",
- "designer|userClassName": "MyField6"
+ "name": "data6"
},
"designerId": "081f5d91-2173-4628-8963-859ab01639c3"
},
@@ -115,8 +110,7 @@
},
"codeClass": null,
"userConfig": {
- "name": "data7",
- "designer|userClassName": "MyField7"
+ "name": "data7"
},
"designerId": "d94cf916-436b-46f9-b994-b579e61e78f2"
}
View
67 area-chart/metadata/view/MyWindow → areaChart/metadata/view/MyWindow
@@ -7,14 +7,14 @@
"codeClass": null,
"userConfig": {
"autoShow": true,
- "height": 600,
- "width": 800,
- "designer|userClassName": "MyWindow",
- "designer|userAlias": "mywindow",
"designer|initialView": true,
+ "designer|userAlias": "mywindow",
+ "designer|userClassName": "MyWindow",
+ "height": 600,
"layout": "fit",
+ "maximizable": true,
"title": "Area Chart",
- "maximizable": true
+ "width": 800
},
"designerId": "2f0a83e9-cc8c-4aeb-b6d7-6f685decfa16",
"cn": [
@@ -26,8 +26,7 @@
},
"codeClass": null,
"userConfig": {
- "dock": "top",
- "designer|userClassName": "MyToolbar"
+ "dock": "top"
},
"designerId": "416bb12b-d066-42b0-8cba-c710ad5aac01",
"cn": [
@@ -40,7 +39,6 @@
"codeClass": null,
"userConfig": {
"layout|flex": null,
- "designer|userClassName": "MyButton",
"text": "Reload Data"
},
"designerId": "8849040b-6b28-48e2-9a0c-05cbf60d7ba5",
@@ -53,7 +51,6 @@
},
"codeClass": null,
"userConfig": {
- "designer|userClassName": "onButtonClick",
"fn": "onButtonClick",
"implHandler": [
"this.refreshData();"
@@ -73,9 +70,8 @@
},
"codeClass": null,
"userConfig": {
- "layout|flex": null,
- "designer|userClassName": "MyButton1",
"enableToggle": true,
+ "layout|flex": null,
"pressed": true,
"text": "Animate"
},
@@ -89,7 +85,6 @@
},
"codeClass": null,
"userConfig": {
- "designer|userClassName": "onButtonToggle",
"fn": "onButtonToggle",
"implHandler": [
"var chart = this.child('chart');",
@@ -112,15 +107,14 @@
},
"codeClass": null,
"userConfig": {
- "height": 250,
- "itemId": "chart",
- "width": 400,
- "designer|userClassName": "MyChart",
"animate": [
"true"
],
+ "height": 250,
"insetPadding": 20,
- "store": "MyStore"
+ "itemId": "chart",
+ "store": "MyStore",
+ "width": 400
},
"designerId": "5644be3d-bd94-4680-9950-a6f69b3e3633",
"cn": [
@@ -132,7 +126,15 @@
},
"codeClass": null,
"userConfig": {
- "designer|userClassName": "MyNumericAxis",
+ "fields": [
+ "data1",
+ "data2",
+ "data3",
+ "data4",
+ "data5",
+ "data6",
+ "data7"
+ ],
"grid": [
"{",
" odd: {",
@@ -143,18 +145,9 @@
" }",
" }"
],
- "position": "left",
- "title": "Numeric Axis",
- "fields": [
- "data1",
- "data2",
- "data3",
- "data4",
- "data5",
- "data6",
- "data7"
- ],
- "minimum": 0
+ "minimum": 0,
+ "position": "bottom",
+ "title": "Numeric Axis"
},
"designerId": "af831918-d492-44b5-8f67-92658448335c"
},
@@ -166,17 +159,16 @@
},
"codeClass": null,
"userConfig": {
- "designer|userClassName": "MyCategoryAxis",
- "grid": [
- "true"
- ],
- "title": "Month of the Year",
"fields": [
"name"
],
+ "grid": [
+ "true"
+ ],
"label": [
"{\"rotate\":{\"degrees\":315}}"
- ]
+ ],
+ "title": "Month of the Year"
},
"designerId": "ffc0b368-4f45-4c72-b6e7-5a7dd8786ad0"
},
@@ -188,7 +180,6 @@
},
"codeClass": null,
"userConfig": {
- "designer|userClassName": "MyAreaSeries",
"xField": "name",
"yField": [
"data1",
@@ -212,7 +203,6 @@
},
"codeClass": null,
"userConfig": {
- "designer|userClassName": "refreshData",
"fn": "refreshData",
"implHandler": [
"var data = [],",
@@ -249,7 +239,6 @@
},
"codeClass": null,
"userConfig": {
- "designer|userClassName": "onWindowAfterRender",
"fn": "onWindowAfterRender",
"implHandler": [
"this.refreshData();"
View
2 areaChart/sass/config.rb
@@ -0,0 +1,2 @@
+cur_dir = File.dirname(__FILE__)
+output_style = :nested
View
7 areaChart/sass/example/bootstrap.css
@@ -0,0 +1,7 @@
+/**
+ * This file is generated by Sencha Cmd and should NOT be edited. It will
+ * redirect to the most recently built example css file for the application to
+ * support capture of theme background, frame, and corner images for non-CSS3
+ * browsers.
+ */
+@import '../../bootstrap.css';
View
12 areaChart/sass/example/custom.js
@@ -0,0 +1,12 @@
+/*
+ * This file is generated as a starting point by Sencha Cmd - it will not be replaced or
+ * updated by "sencha package upgrade".
+ *
+ * This file can be removed and the script tag in theme.html removed if this theme does
+ * not need custom additional manifest or shortcut entries. These are documented in
+ * ./packages/ext-theme-base/sass/example/render.js.
+ */
+
+//Ext.theme.addManifest();
+
+//Ext.theme.addShortcuts();
View
426 areaChart/sass/example/render.js
@@ -0,0 +1,426 @@
+/*
+ * This file is generated by Sencha Cmd and should NOT be edited. It will be replaced
+ * during an upgrade.
+ */
+
+Ext.require([
+ 'Ext.layout.Context',
+]);
+
+Ext.theme = {
+ /**
+ * The array of all component manifests. These objects have the following set of
+ * properties recognized by the slicer:
+ * @private
+ */
+ _manifest: [],
+
+ /**
+ * The collection of shortcuts for a given alias (e.g., 'widget.panel'). This is an
+ * object keyed by alias whose values are arrays of shortcut definitions.
+ * @private
+ */
+ _shortcuts: {},
+
+ doRequire : function(xtype) {
+ if(xtype.indexOf("widget.") != 0) {
+ xtype = "widget." + xtype;
+ }
+ Ext.require([xtype]);
+ },
+
+ /**
+ * Adds one ore more component entries to the theme manifest. These entries will be
+ * instantiated by the `Ext.theme.render` method when the page is ready.
+ *
+ * Usage:
+ *
+ * Ext.theme.addManifest({
+ * xtype: 'widget.menu',
+ * folder: 'menu',
+ * delegate: '.x-menu-item-link',
+ * filename: 'menu-item-active',
+ * config: {
+ * floating: false,
+ * width: 200,
+ * items: [{
+ * text: 'test',
+ * cls: 'x-menu-item-active'
+ * }]
+ * }
+ * },{
+ * //...
+ * });
+ *
+ * @param manifest {Object} An object with type of component, slicing information and
+ * component configuration. If this parameter is an array, each element is treated as
+ * a manifest entry. Otherwise, each argument passed is treated as a manifest entry.
+ *
+ * @param manifest.xtype {String} The xtype ('grid') or alias ('widget.grid'). This
+ * is used to specify the type of component to create as well as a potential key to
+ * any `shortcuts` defined for the xtype.
+ *
+ * @param manifest.config {Object} The component configuration object. The properties
+ * of this depend on the `xtype` of the component.
+ *
+ * @param [manifest.delegate] {String} The DOM query to use to select the element to
+ * slice. The default is to slice the primary element of the component.
+ *
+ * @param [manifest.parentCls] An optional CSS class to add to the parent of the
+ * component.
+ *
+ * @param [manifest.setup] {Function} An optional function to be called to initialize
+ * the component.
+ * @param manifest.setup.component {Ext.Component} The component instance
+ * @param manifest.setup.container {Element} The component's container.
+ *
+ * @param [manifest.folder] {String} The folder in to which to produce image slices.
+ * Only applies to Ext JS 4.1 (removed in 4.2).
+ *
+ * @param [manifest.filename] {String} The base filename for slices.
+ * Only applies to Ext JS 4.1 (removed in 4.2).
+ *
+ * @param [manifest.reverse] {Boolean} True to position the slices for linear gradient
+ * background at then opposite "end" (right or bottom) and apply the stretch to the
+ * area before it (left or top). Only applies to Ext JS 4.1 (removed in 4.2).
+ */
+ addManifest: function (manifest) {
+ var all = Ext.theme._manifest;
+ var add = Ext.isArray(manifest) ? manifest : arguments;
+
+ if(manifest.xtype) {
+ Ext.theme.doRequire(manifest.xtype);
+ }
+
+ for (var i = 0, n = add.length; i < n; ++i) {
+ if(add[i].xtype) {
+ Ext.theme.doRequire(add[i].xtype);
+ }
+ all.push(add[i]);
+ }
+ },
+
+ /**
+ * Adds one or more shortcuts to the rendering process. A `shortcut` is an object that
+ * looks the same as a `manifest` entry. These are combined by copying the properties
+ * from the shortcut over those of the manifest entry. In basic terms:
+ *
+ * var config = Ext.apply(Ext.apply({}, manfiest.config), shortcut.config);
+ * var entry = Ext.apply(Ext.apply({}, manfiest), shortcut);
+ * entry.config = config;
+ *
+ * This is not exactly the process, but the idea is the same. The difference is that
+ * the `ui` of the manifest entry is used to replace any `"{ui}"` substrings found in
+ * any string properties of the shortcut or its `config` object.
+ *
+ * Usage:
+ *
+ * Ext.theme.addShortcuts({
+ * 'widget.foo': [{
+ * config: {
+ * }
+ * },{
+ * config: {
+ * }
+ * }],
+ *
+ * 'widget.bar': [ ... ]
+ * });
+ */
+ addShortcuts: function (shortcuts) {
+ var all = Ext.theme._shortcuts;
+
+ for (var key in shortcuts) {
+
+ var add = shortcuts[key];
+ var xtype = Ext.theme.addWidget(key);
+ var existing = all[xtype];
+
+ Ext.theme.doRequire(xtype);
+ for(var i=0; i < add.length; i++) {
+ var config = add[i];
+ if(config.xtype) {
+ Ext.theme.doRequire(config.xtype);
+ }
+ }
+
+ if (!existing) {
+ all[xtype] = existing = [];
+ }
+
+ existing.push.apply(existing, add);
+ }
+ },
+
+ /**
+ * This method ensures that a given string has the specified prefix (e.g., "widget.").
+ * @private
+ */
+ addPrefix: function (prefix, s) {
+ if (!s || (s.length > prefix.length && s.substring(0,prefix.length) === prefix)) {
+ return s;
+ }
+ return prefix + s;
+ },
+
+ /**
+ * This method returns the given string with "widget." added to the front if that is
+ * not already present.
+ * @private
+ */
+ addWidget: function (str) {
+ return Ext.theme.addPrefix('widget.', str);
+ },
+
+ /**
+ * This method accepts an manifest entry and a shortcut entry and returns the merged
+ * version.
+ * @private
+ */
+ applyShortcut: function (manifestEntry, shortcut) {
+ var ui = manifestEntry.ui;
+ var config = Ext.theme.copyProps({}, manifestEntry.config);
+ var entry = Ext.theme.copyProps({}, manifestEntry);
+
+ if (ui && !config.ui) {
+ config.ui = ui;
+ }
+ if (shortcut) {
+ var tpl = { ui: ui };
+ Ext.theme.copyProps(entry, shortcut, tpl);
+ Ext.theme.copyProps(config, shortcut.config, tpl);
+ }
+
+ entry.xtype = Ext.theme.addWidget(entry.xtype);
+ entry.config = config; // both guys have "config" so smash merged one on now...
+ return entry;
+ },
+
+ /**
+ * This method copies property from a `src` object to a `dest` object and reaplces
+ * `"{foo}"` fragments of any string properties as defined in the `tpl` object.
+ *
+ * var obj = Ext.theme.copyProps({}, {
+ * foo: 'Hello-{ui}'
+ * }, {
+ * ui: 'World'
+ * });
+ *
+ * console.log('obj.foo: ' + obj.foo); // logs "Hello-World"
+ *
+ * @return {Object} The `dest` object or a new object (if `dest` was null).
+ * @private
+ */
+ copyProps: function (dest, src, tpl) {
+ var out = dest || {};
+ var replacements = [];
+ var token;
+
+ if (src) {
+ if (tpl) {
+ for (token in tpl) {
+ replacements.push({
+ re: new RegExp('\\{' + token + '\\}', 'g'),
+ value: tpl[token]
+ });
+ }
+ }
+
+ for (var key in src) {
+ var val = src[key];
+ if (tpl && typeof val === 'string') {
+ for (var i = 0; i < replacements.length; ++ i) {
+ val = val.replace(replacements[i].re, replacements[i].value);
+ }
+ }
+ out[key] = val;
+ }
+ }
+
+ return out;
+ },
+
+ /**
+ * Renders a component given its manifest and shortcut entries.
+ * @private
+ */
+ renderWidget: function (manifestEntry, shortcut) {
+ var entry = Ext.theme.applyShortcut(manifestEntry, shortcut);
+ var config = entry.config;
+ var widget = Ext.create(entry.xtype, config);
+ var ct = Ext.fly(document.body).createChild({ cls: 'widget-container' });
+
+ Ext.theme.currentWidget = widget;
+
+ if (widget.floating === true) {
+ widget.floating = { shadow: false };
+ }
+ if (widget.floating) {
+ widget.focusOnToFront = false;
+ }
+
+ if (entry.setup) {
+ entry.setup.call(widget, widget, ct);
+ } else {
+ widget.render(ct);
+ if (widget.floating) {
+ widget.showAt(0, 0);
+ ct.setHeight(widget.getHeight());
+ }
+ }
+
+ var el = widget.el;
+ if (entry.delegate) {
+ el = el.down(entry.delegate);
+ }
+
+ el.addCls('x-slicer-target'); // this is what generateSlicerManifest looks for
+
+ if (entry.over) {
+ widget.addOverCls();
+ }
+ if (config.parentCls) {
+ el.parent().addCls(config.parentCls);
+ }
+
+ if (Ext.theme.legacy) {
+ // The 4.1 approach has some interesting extra pieces
+ //
+ var data = {};
+ if (entry.reverse) {
+ data.reverse = true;
+ }
+ if (entry.filename) {
+ data.filename = entry.filename;
+ }
+ if (entry.folder) {
+ data.folder = entry.folder;
+ }
+ if (entry.offsets) {
+ data.offsets = entry.offsets;
+ }
+
+ Ext.theme.setData(el.dom, data);
+ }
+
+ Ext.theme.currentWidget = null;
+ },
+
+ /**
+ * Renders all of the components that have been added to the manifest.
+ * @private
+ */
+ render: function () {
+ var manifest = Ext.theme._manifest;
+ var shortcuts = Ext.theme._shortcuts;
+
+ for (var k = 0, n = manifest ? manifest.length : 0; k < n; ++k) {
+ var manifestEntry = manifest[k];
+ var xtype = Ext.theme.addWidget(manifestEntry.xtype);
+ var widgetShortcuts = xtype ? shortcuts[xtype] : null;
+
+ if (xtype && manifestEntry.ui && widgetShortcuts) {
+ for (var i = 0; i < widgetShortcuts.length; i++) {
+ Ext.theme.renderWidget(manifestEntry, widgetShortcuts[i]);
+ }
+ } else {
+ Ext.theme.renderWidget(manifestEntry);
+ }
+ }
+ },
+
+ /**
+ * Renders all components (see `render`) and notifies the Slicer that things are ready.
+ * @private
+ */
+ run: function () {
+ var extjsVer = Ext.versions.extjs;
+ var globalData = {};
+
+ if (Ext.layout.Context) {
+ Ext.override(Ext.layout.Context, {
+ run: function () {
+ var ok = this.callParent(),
+ widget = Ext.theme.currentWidget;
+ if (!ok && widget) {
+ Ext.Error.raise("Layout run failed: " + widget.id);
+ }
+ return ok;
+ }
+ });
+ }
+
+ // Previous to Ext JS 4.2, themes and their manifests where defined differently.
+ // So pass this along if we are hosting a pre-4.2 theme.
+ //
+ if (extjsVer && extjsVer.isLessThan(new Ext.Version("4.2"))) {
+ globalData.format = "1.0"; // tell the Slicer tool
+ Ext.theme.legacy = true; // not for our own data collection
+
+ // Check for the Cmd3.0/ExtJS4.1 variables:
+ //
+ if (Ext.manifest && Ext.manifest.widgets) {
+ Ext.theme.addManifest(Ext.manifest.widgets);
+ }
+ if (Ext.shortcuts) {
+ Ext.theme.addShortcuts(Ext.shortcuts);
+ }
+ if (Ext.userManifest && Ext.userManifest.widgets) {
+ Ext.theme.addManifest(Ext.userManifest.widgets);
+ }
+ }
+
+ Ext.theme.setData(document.body, globalData);
+
+ Ext.theme.render();
+
+ // This function is defined by slicer.js (the framework-independent piece)
+ Ext.defer(generateSlicerManifest, 1);
+ },
+
+ /**
+ * Sets the `data-slicer` attribute to the JSON-encoded value of the provided data.
+ * @private
+ */
+ setData: function (el, data) {
+ if (data) {
+ var json = Ext.encode(data);
+ if (json !== '{}') {
+ el.setAttribute('data-slicer', json);
+ }
+ }
+ },
+
+ /**
+ * This used to be `loadExtStylesheet`.
+ * @private
+ */
+ loadCss: function (src, callback) {
+ var xhr = new XMLHttpRequest();
+
+ xhr.open('GET', src);
+
+ xhr.onload = function() {
+ var css = xhr.responseText,
+ head = document.getElementsByTagName('head')[0],
+ style = document.createElement('style');
+
+ // There's bugginess in the next gradient syntax in WebKit r84622
+ // This might be fixed in a later WebKit, but for now we're going to
+ // strip it out here since compass generates it.
+ //
+ // TODO: Upgrade to later WebKit revision
+ css = css.replace(/background(-image)?: ?-webkit-linear-gradient(?:.*?);/g, '');
+
+ style.type = 'text/css';
+ style.innerText = css;
+
+ head.appendChild(style);
+ callback();
+ };
+
+ xhr.send(null);
+ }
+};
+
+Ext.onReady(Ext.theme.run, Ext.theme);
View
44 areaChart/sass/example/theme.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<!--
+ Copyright (c) 2012-2013. Sencha Inc.
+-->
+<html>
+<head>
+ <title>Ext JS Theme Harness</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+ <!--
+ Load all required links and scripts
+ -->
+ <link rel="stylesheet" type="text/css" href="example.css" />
+ <script type="text/javascript" src="../../ext/ext-dev.js"></script>
+ <script type="text/javascript" src="bootstrap.js"></script>
+
+ <!--
+ Load the Slicer core scripts
+ -->
+ <script type="text/javascript" src="render.js"></script>
+
+ <!--
+ Load all manifests and shortcuts
+ -->
+ <script type="text/javascript" src="../../ext/packages/ext-theme-base/sass/example/manifest.js"></script>
+ <script type="text/javascript" src="../../ext/packages/ext-theme-base/sass/example/shortcuts.js"></script>
+ <script type="text/javascript" src="custom.js"></script>
+
+ <style>
+ .widget-container {
+ margin: 10px;
+ width: 400px;
+ position: relative;
+ overflow: visible;
+ }
+
+ .x-slicer-target,
+ .x-slicer-target * {
+ opacity: 1;
+ }
+ </style>
+</head>
+ <body></body>
+</html>
View
BIN array-grid.xda
Binary file not shown.
View
14 array-grid/app.html
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-
-<!-- Auto Generated with Sencha Architect -->
-<!-- Modifications to this file will be overwritten. -->
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>array-grid</title>
- <script src="http://extjs.cachefly.net/ext-4.0.7-commercial/ext-all.js"></script>
- <link rel="stylesheet" href="http://extjs.cachefly.net/ext-4.0.7-commercial/resources/css/ext-all.css">
- <script type="text/javascript" src="app.js"></script>
-</head>
-<body></body>
-</html>
View
19 array-grid/app/view/Viewport.js
@@ -1,19 +0,0 @@
-/*
- * File: app/view/Viewport.js
- *
- * This file was generated by Sencha Architect version 2.2.0.
- * http://www.sencha.com/products/architect/
- *
- * This file requires use of the Ext JS 4.0.x library, under independent license.
- * License of Sencha Architect does not include license for Ext JS 4.0.x. For more
- * details see http://www.sencha.com/license or contact license@sencha.com.
- *
- * This file will be auto-generated each and everytime you save your project.
- *
- * Do NOT hand edit this file.
- */
-
-Ext.define('MyApp.view.Viewport', {
- extend: 'MyApp.view.MyGridPanel',
- renderTo: Ext.getBody()
-});
View
65 array-grid/array-grid.xds
@@ -1,65 +0,0 @@
-{
- "name": "array-grid",
- "settings": {
- "urlPrefix": "http://localhost/",
- "spacesToIndent": 4,
- "exportPath": "",
- "sdkPath": "",
- "lineEnding": "LF",
- "genTimestamps": false,
- "cacheBust": false,
- "codeGenFormat": "Class",
- "senchaIoKey": "",
- "senchaIoPath": "http://extjs.cachefly.net/designer/IO/",
- "instantiateStore": true,
- "saveOnDeploy": false,
- "appName": "MyApp",
- "cssPath": ""
- },
- "xdsVersion": "2.2.0",
- "xdsBuild": 840,
- "schemaVersion": 1,
- "upgradeVersion": 210000000499,
- "framework": "ext40",
- "topInstanceFileMap": {
- "fa466732-60ff-446d-94fb-f0f7d0b8c068": {
- "paths": [
- "metadata/view/MyGridPanel",
- "app/view/override/MyGridPanel.js",
- "app/view/MyGridPanel.js",
- "app/view/Viewport.js"
- ],
- "className": "MyGridPanel"
- },
- "f9590438-c918-48e1-b555-90f1e58755e3": {
- "paths": [
- "metadata/store/MyArrayStore",
- "app/store/override/MyArrayStore.js",
- "app/store/MyArrayStore.js"
- ],
- "className": "MyArrayStore"
- },
- "20b3e781-b063-4238-82f5-7281bd7f93c4": {
- "paths": [
- "metadata/resource/Library"
- ],
- "className": "Library"
- }
- },
- "viewOrderMap": {
- "view": [
- "fa466732-60ff-446d-94fb-f0f7d0b8c068"
- ],
- "store": [
- "f9590438-c918-48e1-b555-90f1e58755e3"
- ],
- "controller": [],
- "model": [],
- "resource": [
- "20b3e781-b063-4238-82f5-7281bd7f93c4"
- ],
- "app": [
- "application"
- ]
- }
-}
View
113 array-grid/metadata/store/MyArrayStore
@@ -1,113 +0,0 @@
-{
- "type": "arraystore",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "autoLoad": true,
- "storeId": "MyArrayStore",
- "designer|userClassName": "MyArrayStore",
- "data": "[\n['3m Co', 71.72, 0.02, 0.03, '9/1 12:00am'],\n['Alcoa Inc', 29.01, 0.42, 1.47, '9/1 12:00am'],\n['Altria Group Inc', 83.81, 0.28, 0.34, '9/1 12:00am'],\n['American Express Company', 52.55, 0.01, 0.02, '9/1 12:00am'],\n['American International Group, Inc.', 64.13, 0.31, 0.49, '9/1 12:00am'],\n['AT&T Inc.', 31.61, -0.48, -1.54, '9/1 12:00am'],\n['Boeing Co.', 75.43, 0.53, 0.71, '9/1 12:00am'],\n['Caterpillar Inc.', 67.27, 0.92, 1.39, '9/1 12:00am'],\n['Citigroup, Inc.', 49.37, 0.02, 0.04, '9/1 12:00am'],\n['E.I. du Pont de Nemours and Company', 40.48, 0.51, 1.28, '9/1 12:00am'],\n['Exxon Mobil Corp', 68.1, -0.43, -0.64, '9/1 12:00am'],\n['General Electric Company', 34.14, -0.08, -0.23, '9/1 12:00am'],\n['General Motors Corporation', 30.27, 1.09, 3.74, '9/1 12:00am'],\n['Hewlett-Packard Co.', 36.53, -0.03, -0.08, '9/1 12:00am'],\n['Honeywell Intl Inc', 38.77, 0.05, 0.13, '9/1 12:00am'],\n['Intel Corporation', 19.88, 0.31, 1.58, '9/1 12:00am'],\n['International Business Machines', 81.41, 0.44, 0.54, '9/1 12:00am'],\n['Johnson & Johnson', 64.72, 0.06, 0.09, '9/1 12:00am'],\n['JP Morgan & Chase & Co', 45.73, 0.07, 0.15, '9/1 12:00am'],\n['McDonald\\'s Corporation', 36.76, 0.86, 2.40, '9/1 12:00am'],\n['Merck & Co., Inc.', 40.96, 0.41, 1.01, '9/1 12:00am'],\n['Microsoft Corporation', 25.84, 0.14, 0.54, '9/1 12:00am'],\n['Pfizer Inc', 27.96, 0.4, 1.45, '9/1 12:00am'],\n['The Coca-Cola Company', 45.07, 0.26, 0.58, '9/1 12:00am'],\n['The Home Depot, Inc.', 34.64, 0.35, 1.02, '9/1 12:00am'],\n['The Procter & Gamble Company', 61.91, 0.01, 0.02, '9/1 12:00am'],\n['United Technologies Corporation', 63.26, 0.55, 0.88, '9/1 12:00am'],\n['Verizon Communications', 35.57, 0.39, 1.11, '9/1 12:00am'],\n['Wal-Mart Stores, Inc.', 45.45, 0.73, 1.63, '9/1 12:00am']\n]"
- },
- "designerId": "f9590438-c918-48e1-b555-90f1e58755e3",
- "cn": [
- {
- "type": "Ext.data.proxy.Memory",
- "reference": {
- "name": "proxy",
- "type": "object"
- },
- "codeClass": null,
- "userConfig": {
- "designer|userClassName": "MyMemoryProxy"
- },
- "designerId": "b6abd376-9558-4005-bffe-73ad6e71a47c",
- "cn": [
- {
- "type": "Ext.data.reader.Array",
- "reference": {
- "name": "reader",
- "type": "object"
- },
- "codeClass": null,
- "userConfig": {
- "designer|userClassName": "MyArrayReader"
- },
- "designerId": "eabf480e-bbee-41cc-84d5-c7b629b3c928"
- }
- ]
- },
- {
- "type": "Ext.data.Field",
- "reference": {
- "name": "fields",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "name": "company",
- "designer|userClassName": "MyField"
- },
- "designerId": "4c75ba54-5a63-4ac2-8b60-d280fd0bd178"
- },
- {
- "type": "Ext.data.Field",
- "reference": {
- "name": "fields",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "name": "price",
- "type": "float",
- "designer|userClassName": "MyField1"
- },
- "designerId": "6453a8ef-d239-44f0-98fd-ab1d535ce025"
- },
- {
- "type": "Ext.data.Field",
- "reference": {
- "name": "fields",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "name": "change",
- "type": "float",
- "designer|userClassName": "MyField2"
- },
- "designerId": "d283c801-2c5e-4477-969e-f4f2fa87d71c"
- },
- {
- "type": "Ext.data.Field",
- "reference": {
- "name": "fields",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "name": "pctChange",
- "type": "float",
- "designer|userClassName": "MyField3"
- },
- "designerId": "84e9901c-480b-4049-ba05-49b1520164db"
- },
- {
- "type": "Ext.data.Field",
- "reference": {
- "name": "fields",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "dateFormat": "n/j h:ia",
- "name": "lastChange",
- "type": "date",
- "designer|userClassName": "MyField4"
- },
- "designerId": "49ef3ff9-d96d-4dac-a0d7-706183987464"
- }
- ]
-}
View
BIN arrayGrid.xda
Binary file not shown.
View
34 arrayGrid/Readme.md
@@ -0,0 +1,34 @@
+# arrayGrid/app
+
+This folder contains the javascript files for the application.
+
+# arrayGrid/resources
+