extjs-rails 4.1.0.alpha5 → 4.1.0.alpha6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (507) hide show
  1. data/app/assets/javascripts/extjs-rails.js +95613 -11000
  2. data/lib/extjs-rails/version.rb +1 -1
  3. metadata +2 -509
  4. data/app/assets/javascripts/src/AbstractComponent.js +0 -3290
  5. data/app/assets/javascripts/src/AbstractManager.js +0 -144
  6. data/app/assets/javascripts/src/AbstractPlugin.js +0 -72
  7. data/app/assets/javascripts/src/Action.js +0 -276
  8. data/app/assets/javascripts/src/Ajax.js +0 -99
  9. data/app/assets/javascripts/src/Component.js +0 -1344
  10. data/app/assets/javascripts/src/ComponentLoader.js +0 -202
  11. data/app/assets/javascripts/src/ComponentManager.js +0 -47
  12. data/app/assets/javascripts/src/ComponentQuery.js +0 -521
  13. data/app/assets/javascripts/src/Editor.js +0 -494
  14. data/app/assets/javascripts/src/ElementLoader.js +0 -404
  15. data/app/assets/javascripts/src/FocusManager.js +0 -712
  16. data/app/assets/javascripts/src/Img.js +0 -111
  17. data/app/assets/javascripts/src/Layer.js +0 -543
  18. data/app/assets/javascripts/src/LoadMask.js +0 -432
  19. data/app/assets/javascripts/src/ModelManager.js +0 -186
  20. data/app/assets/javascripts/src/PluginManager.js +0 -110
  21. data/app/assets/javascripts/src/ProgressBar.js +0 -336
  22. data/app/assets/javascripts/src/Shadow.js +0 -233
  23. data/app/assets/javascripts/src/ShadowPool.js +0 -43
  24. data/app/assets/javascripts/src/Template.js +0 -331
  25. data/app/assets/javascripts/src/XTemplate.js +0 -365
  26. data/app/assets/javascripts/src/XTemplateCompiler.js +0 -450
  27. data/app/assets/javascripts/src/XTemplateParser.js +0 -249
  28. data/app/assets/javascripts/src/ZIndexManager.js +0 -519
  29. data/app/assets/javascripts/src/app/Application.js +0 -271
  30. data/app/assets/javascripts/src/app/Controller.js +0 -458
  31. data/app/assets/javascripts/src/app/EventBus.js +0 -112
  32. data/app/assets/javascripts/src/button/Button.js +0 -1483
  33. data/app/assets/javascripts/src/button/Cycle.js +0 -215
  34. data/app/assets/javascripts/src/button/Split.js +0 -99
  35. data/app/assets/javascripts/src/chart/Callout.js +0 -140
  36. data/app/assets/javascripts/src/chart/Chart.js +0 -966
  37. data/app/assets/javascripts/src/chart/Highlight.js +0 -172
  38. data/app/assets/javascripts/src/chart/Label.js +0 -241
  39. data/app/assets/javascripts/src/chart/Legend.js +0 -474
  40. data/app/assets/javascripts/src/chart/LegendItem.js +0 -217
  41. data/app/assets/javascripts/src/chart/Mask.js +0 -230
  42. data/app/assets/javascripts/src/chart/MaskLayer.js +0 -48
  43. data/app/assets/javascripts/src/chart/Navigation.js +0 -79
  44. data/app/assets/javascripts/src/chart/Shape.js +0 -106
  45. data/app/assets/javascripts/src/chart/Tip.js +0 -98
  46. data/app/assets/javascripts/src/chart/TipSurface.js +0 -42
  47. data/app/assets/javascripts/src/chart/axis/Abstract.js +0 -73
  48. data/app/assets/javascripts/src/chart/axis/Axis.js +0 -961
  49. data/app/assets/javascripts/src/chart/axis/Category.js +0 -130
  50. data/app/assets/javascripts/src/chart/axis/Gauge.js +0 -203
  51. data/app/assets/javascripts/src/chart/axis/Numeric.js +0 -235
  52. data/app/assets/javascripts/src/chart/axis/Radial.js +0 -204
  53. data/app/assets/javascripts/src/chart/axis/Time.js +0 -135
  54. data/app/assets/javascripts/src/chart/series/Area.js +0 -803
  55. data/app/assets/javascripts/src/chart/series/Bar.js +0 -853
  56. data/app/assets/javascripts/src/chart/series/Cartesian.js +0 -328
  57. data/app/assets/javascripts/src/chart/series/Column.js +0 -104
  58. data/app/assets/javascripts/src/chart/series/Gauge.js +0 -490
  59. data/app/assets/javascripts/src/chart/series/Line.js +0 -1104
  60. data/app/assets/javascripts/src/chart/series/Pie.js +0 -1072
  61. data/app/assets/javascripts/src/chart/series/Radar.js +0 -440
  62. data/app/assets/javascripts/src/chart/series/Scatter.js +0 -668
  63. data/app/assets/javascripts/src/chart/series/Series.js +0 -443
  64. data/app/assets/javascripts/src/chart/theme/Base.js +0 -175
  65. data/app/assets/javascripts/src/chart/theme/Theme.js +0 -253
  66. data/app/assets/javascripts/src/container/AbstractContainer.js +0 -1062
  67. data/app/assets/javascripts/src/container/ButtonGroup.js +0 -143
  68. data/app/assets/javascripts/src/container/Container.js +0 -212
  69. data/app/assets/javascripts/src/container/DockingContainer.js +0 -265
  70. data/app/assets/javascripts/src/container/Viewport.js +0 -184
  71. data/app/assets/javascripts/src/core/dom/Element.form.js +0 -50
  72. data/app/assets/javascripts/src/core/dom/Element.static-more.js +0 -159
  73. data/app/assets/javascripts/src/core/examples/index.html +0 -321
  74. data/app/assets/javascripts/src/core/examples/index.js +0 -6
  75. data/app/assets/javascripts/src/core/examples/src/Sample/CTO.js +0 -25
  76. data/app/assets/javascripts/src/core/examples/src/Sample/CoolGuy.js +0 -20
  77. data/app/assets/javascripts/src/core/examples/src/Sample/Developer.js +0 -43
  78. data/app/assets/javascripts/src/core/examples/src/Sample/Gun.js +0 -3
  79. data/app/assets/javascripts/src/core/examples/src/Sample/HumanResource.js +0 -23
  80. data/app/assets/javascripts/src/core/examples/src/Sample/Musician.js +0 -20
  81. data/app/assets/javascripts/src/core/examples/src/Sample/Person.js +0 -50
  82. data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanComposeSongs.js +0 -9
  83. data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanPlayGuitar.js +0 -9
  84. data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanSing.js +0 -18
  85. data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/A.js +0 -3
  86. data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/B.js +0 -3
  87. data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/C.js +0 -3
  88. data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/D.js +0 -3
  89. data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/E.js +0 -3
  90. data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/A.js +0 -3
  91. data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/B.js +0 -4
  92. data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/C.js +0 -3
  93. data/app/assets/javascripts/src/core/src/EventManager.js +0 -1167
  94. data/app/assets/javascripts/src/core/src/EventObject.js +0 -883
  95. data/app/assets/javascripts/src/core/src/Ext-more.js +0 -1283
  96. data/app/assets/javascripts/src/core/src/Ext.js +0 -736
  97. data/app/assets/javascripts/src/core/src/Support.js +0 -662
  98. data/app/assets/javascripts/src/core/src/class/Base.js +0 -1085
  99. data/app/assets/javascripts/src/core/src/class/Class.js +0 -676
  100. data/app/assets/javascripts/src/core/src/class/ClassManager.js +0 -1591
  101. data/app/assets/javascripts/src/core/src/class/Loader.js +0 -1423
  102. data/app/assets/javascripts/src/core/src/dom/AbstractElement.alignment.js +0 -173
  103. data/app/assets/javascripts/src/core/src/dom/AbstractElement.insertion.js +0 -193
  104. data/app/assets/javascripts/src/core/src/dom/AbstractElement.js +0 -681
  105. data/app/assets/javascripts/src/core/src/dom/AbstractElement.position.js +0 -356
  106. data/app/assets/javascripts/src/core/src/dom/AbstractElement.static.js +0 -474
  107. data/app/assets/javascripts/src/core/src/dom/AbstractElement.style.js +0 -851
  108. data/app/assets/javascripts/src/core/src/dom/AbstractElement.traversal.js +0 -180
  109. data/app/assets/javascripts/src/core/src/dom/AbstractHelper.js +0 -291
  110. data/app/assets/javascripts/src/core/src/dom/AbstractQuery.js +0 -72
  111. data/app/assets/javascripts/src/core/src/dom/CompositeElement.js +0 -75
  112. data/app/assets/javascripts/src/core/src/dom/CompositeElementLite.js +0 -436
  113. data/app/assets/javascripts/src/core/src/dom/DomQuery-aria.js +0 -1049
  114. data/app/assets/javascripts/src/core/src/env/Browser.js +0 -186
  115. data/app/assets/javascripts/src/core/src/env/FeatureDetector.js +0 -274
  116. data/app/assets/javascripts/src/core/src/env/OS.js +0 -141
  117. data/app/assets/javascripts/src/core/src/lang/Array.js +0 -1205
  118. data/app/assets/javascripts/src/core/src/lang/Date.js +0 -1463
  119. data/app/assets/javascripts/src/core/src/lang/Error.js +0 -326
  120. data/app/assets/javascripts/src/core/src/lang/Function.js +0 -485
  121. data/app/assets/javascripts/src/core/src/lang/Number.js +0 -175
  122. data/app/assets/javascripts/src/core/src/lang/Object.js +0 -606
  123. data/app/assets/javascripts/src/core/src/lang/String.js +0 -333
  124. data/app/assets/javascripts/src/core/src/misc/JSON.js +0 -236
  125. data/app/assets/javascripts/src/core/src/perf/Accumulator.js +0 -244
  126. data/app/assets/javascripts/src/core/src/perf/Monitor.js +0 -197
  127. data/app/assets/javascripts/src/core/src/util/DelayedTask.js +0 -71
  128. data/app/assets/javascripts/src/core/src/util/Event.js +0 -215
  129. data/app/assets/javascripts/src/core/src/util/Format.js +0 -551
  130. data/app/assets/javascripts/src/core/src/util/TaskManager.js +0 -417
  131. data/app/assets/javascripts/src/core/src/version/Version.js +0 -364
  132. data/app/assets/javascripts/src/core/test/unit/README.MD +0 -91
  133. data/app/assets/javascripts/src/core/test/unit/bootstrap.js +0 -39
  134. data/app/assets/javascripts/src/core/test/unit/build/build-data.js +0 -34
  135. data/app/assets/javascripts/src/core/test/unit/build/build.sh +0 -2
  136. data/app/assets/javascripts/src/core/test/unit/data.js +0 -27
  137. data/app/assets/javascripts/src/core/test/unit/index.html +0 -15
  138. data/app/assets/javascripts/src/core/test/unit/other_specs/dom.html +0 -40
  139. data/app/assets/javascripts/src/core/test/unit/other_specs/dom/extjs-api.js +0 -12
  140. data/app/assets/javascripts/src/core/test/unit/other_specs/dom/platform-api.js +0 -134
  141. data/app/assets/javascripts/src/core/test/unit/other_specs/dom/sanity.js +0 -4
  142. data/app/assets/javascripts/src/core/test/unit/other_specs/dom/touch-api-out.js +0 -128
  143. data/app/assets/javascripts/src/core/test/unit/other_specs/dom/touch-api.js +0 -89
  144. data/app/assets/javascripts/src/core/test/unit/other_specs/env/Environment.js +0 -357
  145. data/app/assets/javascripts/src/core/test/unit/resources/APITest.js +0 -37
  146. data/app/assets/javascripts/src/core/test/unit/resources/jsb3.js +0 -14
  147. data/app/assets/javascripts/src/core/test/unit/resources/test-setup.js +0 -137
  148. data/app/assets/javascripts/src/core/test/unit/spec/EventManager.js +0 -629
  149. data/app/assets/javascripts/src/core/test/unit/spec/Ext-mess.backup +0 -198
  150. data/app/assets/javascripts/src/core/test/unit/spec/Ext-more.js +0 -520
  151. data/app/assets/javascripts/src/core/test/unit/spec/Ext.js +0 -1550
  152. data/app/assets/javascripts/src/core/test/unit/spec/Support.js +0 -250
  153. data/app/assets/javascripts/src/core/test/unit/spec/class/Base.js +0 -47
  154. data/app/assets/javascripts/src/core/test/unit/spec/class/Class.js +0 -561
  155. data/app/assets/javascripts/src/core/test/unit/spec/class/ClassManager.js +0 -555
  156. data/app/assets/javascripts/src/core/test/unit/spec/dom/CompositeElementLite.js +0 -409
  157. data/app/assets/javascripts/src/core/test/unit/spec/dom/DomHelper.js +0 -444
  158. data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.insertion.js +0 -342
  159. data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.js +0 -731
  160. data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.static.js +0 -201
  161. data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.style.js +0 -118
  162. data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.traversal.js +0 -336
  163. data/app/assets/javascripts/src/core/test/unit/spec/lang/Array.js +0 -1229
  164. data/app/assets/javascripts/src/core/test/unit/spec/lang/Date.js +0 -697
  165. data/app/assets/javascripts/src/core/test/unit/spec/lang/Error.js +0 -277
  166. data/app/assets/javascripts/src/core/test/unit/spec/lang/Function.js +0 -536
  167. data/app/assets/javascripts/src/core/test/unit/spec/lang/Number.js +0 -323
  168. data/app/assets/javascripts/src/core/test/unit/spec/lang/Object.js +0 -591
  169. data/app/assets/javascripts/src/core/test/unit/spec/lang/String.js +0 -451
  170. data/app/assets/javascripts/src/core/test/unit/spec/misc/JSON.js +0 -252
  171. data/app/assets/javascripts/src/core/test/unit/spec/util/Format.js +0 -521
  172. data/app/assets/javascripts/src/core/test/unit/spec/version/Version.js +0 -148
  173. data/app/assets/javascripts/src/core/test/unit/specs.html +0 -19
  174. data/app/assets/javascripts/src/data/AbstractStore.js +0 -887
  175. data/app/assets/javascripts/src/data/ArrayStore.js +0 -74
  176. data/app/assets/javascripts/src/data/Batch.js +0 -236
  177. data/app/assets/javascripts/src/data/BufferStore.js +0 -13
  178. data/app/assets/javascripts/src/data/Connection.js +0 -969
  179. data/app/assets/javascripts/src/data/DirectStore.js +0 -50
  180. data/app/assets/javascripts/src/data/Errors.js +0 -52
  181. data/app/assets/javascripts/src/data/Field.js +0 -341
  182. data/app/assets/javascripts/src/data/IdGenerator.js +0 -198
  183. data/app/assets/javascripts/src/data/JsonP.js +0 -253
  184. data/app/assets/javascripts/src/data/JsonPStore.js +0 -51
  185. data/app/assets/javascripts/src/data/JsonStore.js +0 -60
  186. data/app/assets/javascripts/src/data/Model.js +0 -1673
  187. data/app/assets/javascripts/src/data/NodeInterface.js +0 -1294
  188. data/app/assets/javascripts/src/data/NodeStore.js +0 -254
  189. data/app/assets/javascripts/src/data/Operation.js +0 -331
  190. data/app/assets/javascripts/src/data/Request.js +0 -40
  191. data/app/assets/javascripts/src/data/ResultSet.js +0 -56
  192. data/app/assets/javascripts/src/data/SequentialIdGenerator.js +0 -61
  193. data/app/assets/javascripts/src/data/SortTypes.js +0 -125
  194. data/app/assets/javascripts/src/data/Store.js +0 -2609
  195. data/app/assets/javascripts/src/data/StoreManager.js +0 -156
  196. data/app/assets/javascripts/src/data/Tree.js +0 -290
  197. data/app/assets/javascripts/src/data/TreeStore.js +0 -655
  198. data/app/assets/javascripts/src/data/Types.js +0 -190
  199. data/app/assets/javascripts/src/data/UuidGenerator.js +0 -215
  200. data/app/assets/javascripts/src/data/XmlStore.js +0 -76
  201. data/app/assets/javascripts/src/data/association/Association.js +0 -243
  202. data/app/assets/javascripts/src/data/association/BelongsTo.js +0 -291
  203. data/app/assets/javascripts/src/data/association/HasMany.js +0 -289
  204. data/app/assets/javascripts/src/data/association/HasOne.js +0 -304
  205. data/app/assets/javascripts/src/data/proxy/Ajax.js +0 -282
  206. data/app/assets/javascripts/src/data/proxy/Client.js +0 -21
  207. data/app/assets/javascripts/src/data/proxy/Direct.js +0 -181
  208. data/app/assets/javascripts/src/data/proxy/JsonP.js +0 -313
  209. data/app/assets/javascripts/src/data/proxy/LocalStorage.js +0 -69
  210. data/app/assets/javascripts/src/data/proxy/Memory.js +0 -156
  211. data/app/assets/javascripts/src/data/proxy/Proxy.js +0 -433
  212. data/app/assets/javascripts/src/data/proxy/Rest.js +0 -173
  213. data/app/assets/javascripts/src/data/proxy/Server.js +0 -460
  214. data/app/assets/javascripts/src/data/proxy/SessionStorage.js +0 -39
  215. data/app/assets/javascripts/src/data/proxy/WebStorage.js +0 -546
  216. data/app/assets/javascripts/src/data/reader/Array.js +0 -68
  217. data/app/assets/javascripts/src/data/reader/Json.js +0 -383
  218. data/app/assets/javascripts/src/data/reader/Reader.js +0 -735
  219. data/app/assets/javascripts/src/data/reader/Xml.js +0 -292
  220. data/app/assets/javascripts/src/data/validations.js +0 -149
  221. data/app/assets/javascripts/src/data/writer/Json.js +0 -81
  222. data/app/assets/javascripts/src/data/writer/Writer.js +0 -147
  223. data/app/assets/javascripts/src/data/writer/Xml.js +0 -88
  224. data/app/assets/javascripts/src/dd/DD.js +0 -300
  225. data/app/assets/javascripts/src/dd/DDProxy.js +0 -204
  226. data/app/assets/javascripts/src/dd/DDTarget.js +0 -171
  227. data/app/assets/javascripts/src/dd/DragDrop.js +0 -1101
  228. data/app/assets/javascripts/src/dd/DragDropManager.js +0 -1264
  229. data/app/assets/javascripts/src/dd/DragSource.js +0 -392
  230. data/app/assets/javascripts/src/dd/DragTracker.js +0 -562
  231. data/app/assets/javascripts/src/dd/DragZone.js +0 -137
  232. data/app/assets/javascripts/src/dd/DropTarget.js +0 -118
  233. data/app/assets/javascripts/src/dd/DropZone.js +0 -254
  234. data/app/assets/javascripts/src/dd/Registry.js +0 -117
  235. data/app/assets/javascripts/src/dd/ScrollManager.js +0 -218
  236. data/app/assets/javascripts/src/dd/StatusProxy.js +0 -179
  237. data/app/assets/javascripts/src/diag/layout/Context.js +0 -523
  238. data/app/assets/javascripts/src/diag/layout/ContextItem.js +0 -179
  239. data/app/assets/javascripts/src/direct/Event.js +0 -35
  240. data/app/assets/javascripts/src/direct/ExceptionEvent.js +0 -16
  241. data/app/assets/javascripts/src/direct/JsonProvider.js +0 -82
  242. data/app/assets/javascripts/src/direct/Manager.js +0 -263
  243. data/app/assets/javascripts/src/direct/PollingProvider.js +0 -156
  244. data/app/assets/javascripts/src/direct/Provider.js +0 -96
  245. data/app/assets/javascripts/src/direct/RemotingEvent.js +0 -24
  246. data/app/assets/javascripts/src/direct/RemotingMethod.js +0 -100
  247. data/app/assets/javascripts/src/direct/RemotingProvider.js +0 -510
  248. data/app/assets/javascripts/src/direct/Transaction.js +0 -41
  249. data/app/assets/javascripts/src/dom/Element.alignment.js +0 -378
  250. data/app/assets/javascripts/src/dom/Element.anim.js +0 -962
  251. data/app/assets/javascripts/src/dom/Element.dd.js +0 -40
  252. data/app/assets/javascripts/src/dom/Element.fx.js +0 -194
  253. data/app/assets/javascripts/src/dom/Element.js +0 -1407
  254. data/app/assets/javascripts/src/dom/Element.position.js +0 -501
  255. data/app/assets/javascripts/src/dom/Element.scroll.js +0 -214
  256. data/app/assets/javascripts/src/dom/Element.style.js +0 -792
  257. data/app/assets/javascripts/src/dom/Element.traversal.js +0 -8
  258. data/app/assets/javascripts/src/dom/Helper.js +0 -466
  259. data/app/assets/javascripts/src/dom/Query.js +0 -1067
  260. data/app/assets/javascripts/src/draw/Color.js +0 -303
  261. data/app/assets/javascripts/src/draw/Component.js +0 -245
  262. data/app/assets/javascripts/src/draw/CompositeSprite.js +0 -299
  263. data/app/assets/javascripts/src/draw/Draw.js +0 -1217
  264. data/app/assets/javascripts/src/draw/Matrix.js +0 -183
  265. data/app/assets/javascripts/src/draw/Sprite.js +0 -554
  266. data/app/assets/javascripts/src/draw/SpriteDD.js +0 -87
  267. data/app/assets/javascripts/src/draw/Surface.js +0 -1001
  268. data/app/assets/javascripts/src/draw/Text.js +0 -175
  269. data/app/assets/javascripts/src/draw/engine/ImageExporter.js +0 -106
  270. data/app/assets/javascripts/src/draw/engine/Svg.js +0 -734
  271. data/app/assets/javascripts/src/draw/engine/SvgExporter.js +0 -280
  272. data/app/assets/javascripts/src/draw/engine/Vml.js +0 -916
  273. data/app/assets/javascripts/src/flash/Component.js +0 -248
  274. data/app/assets/javascripts/src/form/Basic.js +0 -1018
  275. data/app/assets/javascripts/src/form/CheckboxGroup.js +0 -441
  276. data/app/assets/javascripts/src/form/CheckboxManager.js +0 -26
  277. data/app/assets/javascripts/src/form/FieldAncestor.js +0 -210
  278. data/app/assets/javascripts/src/form/FieldContainer.js +0 -290
  279. data/app/assets/javascripts/src/form/FieldSet.js +0 -506
  280. data/app/assets/javascripts/src/form/Label.js +0 -110
  281. data/app/assets/javascripts/src/form/Labelable.js +0 -764
  282. data/app/assets/javascripts/src/form/Panel.js +0 -335
  283. data/app/assets/javascripts/src/form/RadioGroup.js +0 -124
  284. data/app/assets/javascripts/src/form/RadioManager.js +0 -26
  285. data/app/assets/javascripts/src/form/action/Action.js +0 -307
  286. data/app/assets/javascripts/src/form/action/DirectLoad.js +0 -107
  287. data/app/assets/javascripts/src/form/action/DirectSubmit.js +0 -119
  288. data/app/assets/javascripts/src/form/action/Load.js +0 -120
  289. data/app/assets/javascripts/src/form/action/StandardSubmit.js +0 -34
  290. data/app/assets/javascripts/src/form/action/Submit.js +0 -257
  291. data/app/assets/javascripts/src/form/field/Base.js +0 -813
  292. data/app/assets/javascripts/src/form/field/Checkbox.js +0 -505
  293. data/app/assets/javascripts/src/form/field/ComboBox.js +0 -1427
  294. data/app/assets/javascripts/src/form/field/Date.js +0 -578
  295. data/app/assets/javascripts/src/form/field/Display.js +0 -155
  296. data/app/assets/javascripts/src/form/field/Field.js +0 -430
  297. data/app/assets/javascripts/src/form/field/File.js +0 -265
  298. data/app/assets/javascripts/src/form/field/Hidden.js +0 -75
  299. data/app/assets/javascripts/src/form/field/HtmlEditor.js +0 -1439
  300. data/app/assets/javascripts/src/form/field/Number.js +0 -380
  301. data/app/assets/javascripts/src/form/field/Picker.js +0 -321
  302. data/app/assets/javascripts/src/form/field/Radio.js +0 -279
  303. data/app/assets/javascripts/src/form/field/Spinner.js +0 -321
  304. data/app/assets/javascripts/src/form/field/Text.js +0 -727
  305. data/app/assets/javascripts/src/form/field/TextArea.js +0 -228
  306. data/app/assets/javascripts/src/form/field/Time.js +0 -459
  307. data/app/assets/javascripts/src/form/field/Trigger.js +0 -469
  308. data/app/assets/javascripts/src/form/field/VTypes.js +0 -172
  309. data/app/assets/javascripts/src/fx/Anim.js +0 -472
  310. data/app/assets/javascripts/src/fx/Animator.js +0 -410
  311. data/app/assets/javascripts/src/fx/CubicBezier.js +0 -77
  312. data/app/assets/javascripts/src/fx/Easing.js +0 -136
  313. data/app/assets/javascripts/src/fx/Manager.js +0 -353
  314. data/app/assets/javascripts/src/fx/PropertyHandler.js +0 -381
  315. data/app/assets/javascripts/src/fx/Queue.js +0 -123
  316. data/app/assets/javascripts/src/fx/target/Component.js +0 -118
  317. data/app/assets/javascripts/src/fx/target/CompositeElement.js +0 -46
  318. data/app/assets/javascripts/src/fx/target/CompositeElementCSS.js +0 -22
  319. data/app/assets/javascripts/src/fx/target/CompositeSprite.js +0 -34
  320. data/app/assets/javascripts/src/fx/target/Element.js +0 -83
  321. data/app/assets/javascripts/src/fx/target/ElementCSS.js +0 -77
  322. data/app/assets/javascripts/src/fx/target/Sprite.js +0 -128
  323. data/app/assets/javascripts/src/fx/target/Target.js +0 -36
  324. data/app/assets/javascripts/src/grid/CellEditor.js +0 -172
  325. data/app/assets/javascripts/src/grid/ColumnComponentLayout.js +0 -34
  326. data/app/assets/javascripts/src/grid/ColumnLayout.js +0 -201
  327. data/app/assets/javascripts/src/grid/Lockable.js +0 -863
  328. data/app/assets/javascripts/src/grid/LockingView.js +0 -169
  329. data/app/assets/javascripts/src/grid/PagingScroller.js +0 -539
  330. data/app/assets/javascripts/src/grid/Panel.js +0 -393
  331. data/app/assets/javascripts/src/grid/RowEditor.js +0 -731
  332. data/app/assets/javascripts/src/grid/RowNumberer.js +0 -76
  333. data/app/assets/javascripts/src/grid/Scroller.js +0 -5
  334. data/app/assets/javascripts/src/grid/View.js +0 -44
  335. data/app/assets/javascripts/src/grid/ViewDropZone.js +0 -41
  336. data/app/assets/javascripts/src/grid/column/Action.js +0 -318
  337. data/app/assets/javascripts/src/grid/column/Boolean.js +0 -82
  338. data/app/assets/javascripts/src/grid/column/Column.js +0 -835
  339. data/app/assets/javascripts/src/grid/column/Date.js +0 -63
  340. data/app/assets/javascripts/src/grid/column/Number.js +0 -52
  341. data/app/assets/javascripts/src/grid/column/Template.js +0 -58
  342. data/app/assets/javascripts/src/grid/feature/AbstractSummary.js +0 -154
  343. data/app/assets/javascripts/src/grid/feature/Chunking.js +0 -77
  344. data/app/assets/javascripts/src/grid/feature/Feature.js +0 -158
  345. data/app/assets/javascripts/src/grid/feature/Grouping.js +0 -822
  346. data/app/assets/javascripts/src/grid/feature/GroupingSummary.js +0 -243
  347. data/app/assets/javascripts/src/grid/feature/RowBody.js +0 -116
  348. data/app/assets/javascripts/src/grid/feature/RowWrap.js +0 -120
  349. data/app/assets/javascripts/src/grid/feature/Summary.js +0 -167
  350. data/app/assets/javascripts/src/grid/header/Container.js +0 -965
  351. data/app/assets/javascripts/src/grid/header/DragZone.js +0 -69
  352. data/app/assets/javascripts/src/grid/header/DropZone.js +0 -265
  353. data/app/assets/javascripts/src/grid/plugin/CellEditing.js +0 -453
  354. data/app/assets/javascripts/src/grid/plugin/DragDrop.js +0 -254
  355. data/app/assets/javascripts/src/grid/plugin/Editing.js +0 -561
  356. data/app/assets/javascripts/src/grid/plugin/HeaderReorderer.js +0 -49
  357. data/app/assets/javascripts/src/grid/plugin/HeaderResizer.js +0 -292
  358. data/app/assets/javascripts/src/grid/plugin/RowEditing.js +0 -339
  359. data/app/assets/javascripts/src/grid/property/Grid.js +0 -351
  360. data/app/assets/javascripts/src/grid/property/HeaderContainer.js +0 -109
  361. data/app/assets/javascripts/src/grid/property/Property.js +0 -36
  362. data/app/assets/javascripts/src/grid/property/Store.js +0 -141
  363. data/app/assets/javascripts/src/layout/ClassList.js +0 -90
  364. data/app/assets/javascripts/src/layout/Context.js +0 -1232
  365. data/app/assets/javascripts/src/layout/ContextItem.js +0 -1470
  366. data/app/assets/javascripts/src/layout/Layout.js +0 -761
  367. data/app/assets/javascripts/src/layout/component/Auto.js +0 -220
  368. data/app/assets/javascripts/src/layout/component/Body.js +0 -80
  369. data/app/assets/javascripts/src/layout/component/BoundList.js +0 -95
  370. data/app/assets/javascripts/src/layout/component/Button.js +0 -261
  371. data/app/assets/javascripts/src/layout/component/Component.js +0 -427
  372. data/app/assets/javascripts/src/layout/component/Dock.js +0 -1132
  373. data/app/assets/javascripts/src/layout/component/Draw.js +0 -79
  374. data/app/assets/javascripts/src/layout/component/FieldSet.js +0 -62
  375. data/app/assets/javascripts/src/layout/component/ProgressBar.js +0 -54
  376. data/app/assets/javascripts/src/layout/component/Tab.js +0 -23
  377. data/app/assets/javascripts/src/layout/component/field/ComboBox.js +0 -52
  378. data/app/assets/javascripts/src/layout/component/field/Field.js +0 -372
  379. data/app/assets/javascripts/src/layout/component/field/FieldContainer.js +0 -48
  380. data/app/assets/javascripts/src/layout/component/field/HtmlEditor.js +0 -54
  381. data/app/assets/javascripts/src/layout/component/field/Slider.js +0 -58
  382. data/app/assets/javascripts/src/layout/component/field/Text.js +0 -75
  383. data/app/assets/javascripts/src/layout/component/field/TextArea.js +0 -51
  384. data/app/assets/javascripts/src/layout/component/field/Trigger.js +0 -132
  385. data/app/assets/javascripts/src/layout/container/Absolute.js +0 -121
  386. data/app/assets/javascripts/src/layout/container/Accordion.js +0 -308
  387. data/app/assets/javascripts/src/layout/container/Anchor.js +0 -403
  388. data/app/assets/javascripts/src/layout/container/Auto.js +0 -70
  389. data/app/assets/javascripts/src/layout/container/Border-old-js +0 -1079
  390. data/app/assets/javascripts/src/layout/container/Border.js +0 -816
  391. data/app/assets/javascripts/src/layout/container/Box.js +0 -929
  392. data/app/assets/javascripts/src/layout/container/Card.js +0 -361
  393. data/app/assets/javascripts/src/layout/container/CheckboxGroup.js +0 -376
  394. data/app/assets/javascripts/src/layout/container/Column.js +0 -234
  395. data/app/assets/javascripts/src/layout/container/Container.js +0 -961
  396. data/app/assets/javascripts/src/layout/container/Editor.js +0 -74
  397. data/app/assets/javascripts/src/layout/container/Fit.js +0 -287
  398. data/app/assets/javascripts/src/layout/container/Form.js +0 -157
  399. data/app/assets/javascripts/src/layout/container/HBox.js +0 -134
  400. data/app/assets/javascripts/src/layout/container/Table.js +0 -412
  401. data/app/assets/javascripts/src/layout/container/VBox.js +0 -139
  402. data/app/assets/javascripts/src/layout/container/boxOverflow/Menu.js +0 -365
  403. data/app/assets/javascripts/src/layout/container/boxOverflow/None.js +0 -83
  404. data/app/assets/javascripts/src/layout/container/boxOverflow/Scroller.js +0 -475
  405. data/app/assets/javascripts/src/menu/CheckItem.js +0 -169
  406. data/app/assets/javascripts/src/menu/ColorPicker.js +0 -110
  407. data/app/assets/javascripts/src/menu/DatePicker.js +0 -100
  408. data/app/assets/javascripts/src/menu/Item.js +0 -553
  409. data/app/assets/javascripts/src/menu/KeyNav.js +0 -134
  410. data/app/assets/javascripts/src/menu/Manager.js +0 -219
  411. data/app/assets/javascripts/src/menu/Menu.js +0 -579
  412. data/app/assets/javascripts/src/menu/Separator.js +0 -126
  413. data/app/assets/javascripts/src/panel/AbstractPanel.js +0 -323
  414. data/app/assets/javascripts/src/panel/DD.js +0 -99
  415. data/app/assets/javascripts/src/panel/Header.js +0 -518
  416. data/app/assets/javascripts/src/panel/Panel.js +0 -2150
  417. data/app/assets/javascripts/src/panel/Proxy.js +0 -131
  418. data/app/assets/javascripts/src/panel/Table.js +0 -1018
  419. data/app/assets/javascripts/src/panel/Tool.js +0 -304
  420. data/app/assets/javascripts/src/picker/Color.js +0 -219
  421. data/app/assets/javascripts/src/picker/Date.js +0 -1140
  422. data/app/assets/javascripts/src/picker/Month.js +0 -490
  423. data/app/assets/javascripts/src/picker/Time.js +0 -165
  424. data/app/assets/javascripts/src/resizer/BorderSplitter.js +0 -22
  425. data/app/assets/javascripts/src/resizer/BorderSplitterTracker.js +0 -210
  426. data/app/assets/javascripts/src/resizer/Handle.js +0 -29
  427. data/app/assets/javascripts/src/resizer/ResizeTracker.js +0 -346
  428. data/app/assets/javascripts/src/resizer/Resizer.js +0 -477
  429. data/app/assets/javascripts/src/resizer/Splitter.js +0 -242
  430. data/app/assets/javascripts/src/resizer/SplitterTracker.js +0 -230
  431. data/app/assets/javascripts/src/selection/CellModel.js +0 -395
  432. data/app/assets/javascripts/src/selection/CheckboxModel.js +0 -234
  433. data/app/assets/javascripts/src/selection/DataViewModel.js +0 -160
  434. data/app/assets/javascripts/src/selection/Model.js +0 -646
  435. data/app/assets/javascripts/src/selection/RowModel.js +0 -499
  436. data/app/assets/javascripts/src/selection/TreeModel.js +0 -78
  437. data/app/assets/javascripts/src/slider/Multi.js +0 -835
  438. data/app/assets/javascripts/src/slider/Single.js +0 -56
  439. data/app/assets/javascripts/src/slider/Thumb.js +0 -259
  440. data/app/assets/javascripts/src/slider/Tip.js +0 -130
  441. data/app/assets/javascripts/src/state/CookieProvider.js +0 -120
  442. data/app/assets/javascripts/src/state/LocalStorageProvider.js +0 -72
  443. data/app/assets/javascripts/src/state/Manager.js +0 -70
  444. data/app/assets/javascripts/src/state/Provider.js +0 -182
  445. data/app/assets/javascripts/src/state/Stateful.js +0 -364
  446. data/app/assets/javascripts/src/tab/Bar.js +0 -258
  447. data/app/assets/javascripts/src/tab/Panel.js +0 -654
  448. data/app/assets/javascripts/src/tab/Tab.js +0 -358
  449. data/app/assets/javascripts/src/tail.js +0 -10
  450. data/app/assets/javascripts/src/tip/QuickTip.js +0 -335
  451. data/app/assets/javascripts/src/tip/QuickTipManager.js +0 -239
  452. data/app/assets/javascripts/src/tip/Tip.js +0 -160
  453. data/app/assets/javascripts/src/tip/ToolTip.js +0 -691
  454. data/app/assets/javascripts/src/toolbar/Fill.js +0 -28
  455. data/app/assets/javascripts/src/toolbar/Item.js +0 -16
  456. data/app/assets/javascripts/src/toolbar/Paging.js +0 -600
  457. data/app/assets/javascripts/src/toolbar/Separator.js +0 -23
  458. data/app/assets/javascripts/src/toolbar/Spacer.js +0 -33
  459. data/app/assets/javascripts/src/toolbar/TextItem.js +0 -57
  460. data/app/assets/javascripts/src/toolbar/Toolbar-legacy.js +0 -123
  461. data/app/assets/javascripts/src/toolbar/Toolbar.js +0 -447
  462. data/app/assets/javascripts/src/tree/Column.js +0 -90
  463. data/app/assets/javascripts/src/tree/Panel.js +0 -505
  464. data/app/assets/javascripts/src/tree/View.js +0 -658
  465. data/app/assets/javascripts/src/tree/ViewDragZone.js +0 -49
  466. data/app/assets/javascripts/src/tree/ViewDropZone.js +0 -287
  467. data/app/assets/javascripts/src/tree/plugin/TreeViewDragDrop.js +0 -244
  468. data/app/assets/javascripts/src/util/AbstractMixedCollection.js +0 -772
  469. data/app/assets/javascripts/src/util/Animate.js +0 -426
  470. data/app/assets/javascripts/src/util/Bindable.js +0 -102
  471. data/app/assets/javascripts/src/util/CSS.js +0 -185
  472. data/app/assets/javascripts/src/util/ClickRepeater.js +0 -238
  473. data/app/assets/javascripts/src/util/ComponentDragger.js +0 -126
  474. data/app/assets/javascripts/src/util/Cookies.js +0 -91
  475. data/app/assets/javascripts/src/util/ElementContainer.js +0 -293
  476. data/app/assets/javascripts/src/util/Filter.js +0 -159
  477. data/app/assets/javascripts/src/util/Floating.js +0 -321
  478. data/app/assets/javascripts/src/util/Grouper.js +0 -26
  479. data/app/assets/javascripts/src/util/HashMap.js +0 -356
  480. data/app/assets/javascripts/src/util/History.js +0 -285
  481. data/app/assets/javascripts/src/util/Inflector.js +0 -297
  482. data/app/assets/javascripts/src/util/KeyMap.js +0 -427
  483. data/app/assets/javascripts/src/util/KeyNav.js +0 -239
  484. data/app/assets/javascripts/src/util/LruCache.js +0 -257
  485. data/app/assets/javascripts/src/util/Memento.js +0 -131
  486. data/app/assets/javascripts/src/util/MixedCollection.js +0 -239
  487. data/app/assets/javascripts/src/util/Observable.js +0 -1003
  488. data/app/assets/javascripts/src/util/Offset.js +0 -60
  489. data/app/assets/javascripts/src/util/Point.js +0 -93
  490. data/app/assets/javascripts/src/util/ProtoElement.js +0 -205
  491. data/app/assets/javascripts/src/util/Queue.js +0 -76
  492. data/app/assets/javascripts/src/util/Region.js +0 -388
  493. data/app/assets/javascripts/src/util/Renderable.js +0 -1079
  494. data/app/assets/javascripts/src/util/Sortable.js +0 -248
  495. data/app/assets/javascripts/src/util/Sorter.js +0 -179
  496. data/app/assets/javascripts/src/util/TextMetrics.js +0 -148
  497. data/app/assets/javascripts/src/view/AbstractView.js +0 -1103
  498. data/app/assets/javascripts/src/view/BoundList.js +0 -207
  499. data/app/assets/javascripts/src/view/BoundListKeyNav.js +0 -92
  500. data/app/assets/javascripts/src/view/DragZone.js +0 -106
  501. data/app/assets/javascripts/src/view/DropZone.js +0 -240
  502. data/app/assets/javascripts/src/view/Table.js +0 -1229
  503. data/app/assets/javascripts/src/view/TableChunker.js +0 -139
  504. data/app/assets/javascripts/src/view/View.js +0 -636
  505. data/app/assets/javascripts/src/window/MessageBox.js +0 -880
  506. data/app/assets/javascripts/src/window/Window-legacy.js +0 -56
  507. data/app/assets/javascripts/src/window/Window.js +0 -793
@@ -1,356 +0,0 @@
1
- /**
2
- * @class Ext.dom.AbstractElement
3
- */
4
- (function(){
5
-
6
- var Element = Ext.dom.AbstractElement;
7
-
8
- Element.override({
9
-
10
- /**
11
- * Gets the current X position of the element based on page coordinates. Element must be part of the DOM
12
- * tree to have page coordinates (display:none or elements not appended return false).
13
- * @return {Number} The X position of the element
14
- */
15
- getX: function(el) {
16
- return this.getXY(el)[0];
17
- },
18
-
19
- /**
20
- * Gets the current Y position of the element based on page coordinates. Element must be part of the DOM
21
- * tree to have page coordinates (display:none or elements not appended return false).
22
- * @return {Number} The Y position of the element
23
- */
24
- getY: function(el) {
25
- return this.getXY(el)[1];
26
- },
27
-
28
- /**
29
- * Gets the current position of the element based on page coordinates. Element must be part of the DOM
30
- * tree to have page coordinates (display:none or elements not appended return false).
31
- * @return {Array} The XY position of the element
32
- */
33
- getXY: function() {
34
- // @FEATUREDETECT
35
- var point = window.webkitConvertPointFromNodeToPage(this.dom, new WebKitPoint(0, 0));
36
- return [point.x, point.y];
37
- },
38
-
39
- /**
40
- * Returns the offsets of this element from the passed element. Both element must be part of the DOM
41
- * tree and not have display:none to have page coordinates.
42
- * @param {Ext.Element/HTMLElement/String} element The element to get the offsets from.
43
- * @return {Array} The XY page offsets (e.g. [100, -200])
44
- */
45
- getOffsetsTo: function(el){
46
- var o = this.getXY(),
47
- e = Ext.fly(el, '_internal').getXY();
48
- return [o[0]-e[0],o[1]-e[1]];
49
- },
50
-
51
- /**
52
- * Sets the X position of the element based on page coordinates. Element must be part of the DOM tree
53
- * to have page coordinates (display:none or elements not appended return false).
54
- * @param {Number} The X position of the element
55
- * @param {Boolean/Object} [animate] True for the default animation, or a standard Element
56
- * animation config object
57
- * @return {Ext.dom.AbstractElement} this
58
- */
59
- setX: function(x){
60
- return this.setXY([x, this.getY()]);
61
- },
62
-
63
- /**
64
- * Sets the Y position of the element based on page coordinates. Element must be part of the DOM tree
65
- * to have page coordinates (display:none or elements not appended return false).
66
- * @param {Number} The Y position of the element
67
- * @param {Boolean/Object} [animate] True for the default animation, or a standard Element
68
- * animation config object
69
- * @return {Ext.dom.AbstractElement} this
70
- */
71
- setY: function(y) {
72
- return this.setXY([this.getX(), y]);
73
- },
74
-
75
- /**
76
- * Sets the element's left position directly using CSS style (instead of {@link #setX}).
77
- * @param {String} left The left CSS property value
78
- * @return {Ext.dom.AbstractElement} this
79
- */
80
- setLeft: function(left) {
81
- this.setStyle('left', Element.addUnits(left));
82
- return this;
83
- },
84
-
85
- /**
86
- * Sets the element's top position directly using CSS style (instead of {@link #setY}).
87
- * @param {String} top The top CSS property value
88
- * @return {Ext.dom.AbstractElement} this
89
- */
90
- setTop: function(top) {
91
- this.setStyle('top', Element.addUnits(top));
92
- return this;
93
- },
94
-
95
- /**
96
- * Sets the element's CSS right style.
97
- * @param {String} right The right CSS property value
98
- * @return {Ext.dom.AbstractElement} this
99
- */
100
- setRight: function(right) {
101
- this.setStyle('right', Element.addUnits(right));
102
- return this;
103
- },
104
-
105
- /**
106
- * Sets the element's CSS bottom style.
107
- * @param {String} bottom The bottom CSS property value
108
- * @return {Ext.dom.AbstractElement} this
109
- */
110
- setBottom: function(bottom) {
111
- this.setStyle('bottom', Element.addUnits(bottom));
112
- return this;
113
- },
114
-
115
- /**
116
- * Sets the position of the element in page coordinates, regardless of how the element is positioned.
117
- * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
118
- * @param {Array} pos Contains X & Y [x, y] values for new position (coordinates are page-based)
119
- * @param {Boolean/Object} [animate] True for the default animation, or a standard Element animation config object
120
- * @return {Ext.dom.AbstractElement} this
121
- */
122
- setXY: function(pos) {
123
- var me = this,
124
- pts,
125
- style,
126
- pt;
127
-
128
- if (arguments.length > 1) {
129
- pos = [pos, arguments[1]];
130
- }
131
-
132
- // me.position();
133
- pts = me.translatePoints(pos);
134
- style = me.dom.style;
135
-
136
- for (pt in pts) {
137
- if (!pts.hasOwnProperty(pt)) {
138
- continue;
139
- }
140
- if (!isNaN(pts[pt])) {
141
- style[pt] = pts[pt] + "px";
142
- }
143
- }
144
- return me;
145
- },
146
-
147
- /**
148
- * Gets the left X coordinate
149
- * @param {Boolean} local True to get the local css position instead of page coordinate
150
- * @return {Number}
151
- */
152
- getLeft: function(local) {
153
- return parseInt(this.getStyle('left'), 10) || 0;
154
- },
155
-
156
- /**
157
- * Gets the right X coordinate of the element (element X position + element width)
158
- * @param {Boolean} local True to get the local css position instead of page coordinate
159
- * @return {Number}
160
- */
161
- getRight: function(local) {
162
- return parseInt(this.getStyle('right'), 10) || 0;
163
- },
164
-
165
- /**
166
- * Gets the top Y coordinate
167
- * @param {Boolean} local True to get the local css position instead of page coordinate
168
- * @return {Number}
169
- */
170
- getTop: function(local) {
171
- return parseInt(this.getStyle('top'), 10) || 0;
172
- },
173
-
174
- /**
175
- * Gets the bottom Y coordinate of the element (element Y position + element height)
176
- * @param {Boolean} local True to get the local css position instead of page coordinate
177
- * @return {Number}
178
- */
179
- getBottom: function(local) {
180
- return parseInt(this.getStyle('bottom'), 10) || 0;
181
- },
182
-
183
- /**
184
- * Translates the passed page coordinates into left/top css values for this element
185
- * @param {Number/Array} x The page x or an array containing [x, y]
186
- * @param {Number} [y] The page y, required if x is not an array
187
- * @return {Object} An object with left and top properties. e.g. {left: (value), top: (value)}
188
- */
189
- translatePoints: function(x, y) {
190
- y = isNaN(x[1]) ? y : x[1];
191
- x = isNaN(x[0]) ? x : x[0];
192
- var me = this,
193
- relative = me.isStyle('position', 'relative'),
194
- o = me.getXY(),
195
- l = parseInt(me.getStyle('left'), 10),
196
- t = parseInt(me.getStyle('top'), 10);
197
-
198
- l = !isNaN(l) ? l : (relative ? 0 : me.dom.offsetLeft);
199
- t = !isNaN(t) ? t : (relative ? 0 : me.dom.offsetTop);
200
-
201
- return {left: (x - o[0] + l), top: (y - o[1] + t)};
202
- },
203
-
204
- /**
205
- * Sets the element's box. Use getBox() on another element to get a box obj.
206
- * If animate is true then width, height, x and y will be animated concurrently.
207
- * @param {Object} box The box to fill {x, y, width, height}
208
- * @param {Boolean} [adjust] Whether to adjust for box-model issues automatically
209
- * @param {Boolean/Object} [animate] true for the default animation or a standard
210
- * Element animation config object
211
- * @return {Ext.dom.AbstractElement} this
212
- */
213
- setBox: function(box) {
214
- var me = this,
215
- width = box.width,
216
- height = box.height,
217
- top = box.top,
218
- left = box.left;
219
-
220
- if (left !== undefined) {
221
- me.setLeft(left);
222
- }
223
- if (top !== undefined) {
224
- me.setTop(top);
225
- }
226
- if (width !== undefined) {
227
- me.setWidth(width);
228
- }
229
- if (height !== undefined) {
230
- me.setHeight(height);
231
- }
232
-
233
- return this;
234
- },
235
-
236
- /**
237
- * Return an object defining the area of this Element which can be passed to {@link #setBox} to
238
- * set another Element's size/location to match this element.
239
- *
240
- * @param {Boolean} [contentBox] If true a box for the content of the element is returned.
241
- * @param {Boolean} [local] If true the element's left and top are returned instead of page x/y.
242
- * @return {Object} box An object in the format:
243
- *
244
- * {
245
- * x: <Element's X position>,
246
- * y: <Element's Y position>,
247
- * width: <Element's width>,
248
- * height: <Element's height>,
249
- * bottom: <Element's lower bound>,
250
- * right: <Element's rightmost bound>
251
- * }
252
- *
253
- * The returned object may also be addressed as an Array where index 0 contains the X position
254
- * and index 1 contains the Y position. So the result may also be used for {@link #setXY}
255
- */
256
- getBox: function(contentBox, local) {
257
- var me = this,
258
- dom = me.dom,
259
- width = dom.offsetWidth,
260
- height = dom.offsetHeight,
261
- xy, box, l, r, t, b;
262
-
263
- if (!local) {
264
- xy = me.getXY();
265
- }
266
- else if (contentBox) {
267
- xy = [0,0];
268
- }
269
- else {
270
- xy = [parseInt(me.getStyle("left"), 10) || 0, parseInt(me.getStyle("top"), 10) || 0];
271
- }
272
-
273
- if (!contentBox) {
274
- box = {
275
- x: xy[0],
276
- y: xy[1],
277
- 0: xy[0],
278
- 1: xy[1],
279
- width: width,
280
- height: height
281
- };
282
- }
283
- else {
284
- l = me.getBorderWidth.call(me, "l") + me.getPadding.call(me, "l");
285
- r = me.getBorderWidth.call(me, "r") + me.getPadding.call(me, "r");
286
- t = me.getBorderWidth.call(me, "t") + me.getPadding.call(me, "t");
287
- b = me.getBorderWidth.call(me, "b") + me.getPadding.call(me, "b");
288
- box = {
289
- x: xy[0] + l,
290
- y: xy[1] + t,
291
- 0: xy[0] + l,
292
- 1: xy[1] + t,
293
- width: width - (l + r),
294
- height: height - (t + b)
295
- };
296
- }
297
-
298
- box.left = box.x;
299
- box.top = box.y;
300
- box.right = box.x + box.width;
301
- box.bottom = box.y + box.height;
302
-
303
- return box;
304
- },
305
-
306
- /**
307
- * Return an object defining the area of this Element which can be passed to {@link #setBox} to
308
- * set another Element's size/location to match this element.
309
- *
310
- * @param {Boolean} [asRegion] If true an Ext.util.Region will be returned
311
- * @return {Object} box An object in the format
312
- *
313
- * {
314
- * x: <Element's X position>,
315
- * y: <Element's Y position>,
316
- * width: <Element's width>,
317
- * height: <Element's height>,
318
- * bottom: <Element's lower bound>,
319
- * right: <Element's rightmost bound>
320
- * }
321
- *
322
- * The returned object may also be addressed as an Array where index 0 contains the X position
323
- * and index 1 contains the Y position. So the result may also be used for {@link #setXY}
324
- */
325
- getPageBox: function(getRegion) {
326
- var me = this,
327
- el = me.dom,
328
- w = el.offsetWidth,
329
- h = el.offsetHeight,
330
- xy = me.getXY(),
331
- t = xy[1],
332
- r = xy[0] + w,
333
- b = xy[1] + h,
334
- l = xy[0];
335
-
336
- if (!el) {
337
- return new Ext.util.Region();
338
- }
339
-
340
- if (getRegion) {
341
- return new Ext.util.Region(t, r, b, l);
342
- }
343
- else {
344
- return {
345
- left: l,
346
- top: t,
347
- width: w,
348
- height: h,
349
- right: r,
350
- bottom: b
351
- };
352
- }
353
- }
354
- });
355
-
356
- }());
@@ -1,474 +0,0 @@
1
- /**
2
- * @class Ext.dom.AbstractElement
3
- */
4
- Ext.dom.AbstractElement.addInheritableStatics({
5
- unitRe: /\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,
6
- camelRe: /(-[a-z])/gi,
7
- cssRe: /([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,
8
- opacityRe: /alpha\(opacity=(.*)\)/i,
9
- propertyCache: {},
10
- defaultUnit : "px",
11
- borders: {l: 'border-left-width', r: 'border-right-width', t: 'border-top-width', b: 'border-bottom-width'},
12
- paddings: {l: 'padding-left', r: 'padding-right', t: 'padding-top', b: 'padding-bottom'},
13
- margins: {l: 'margin-left', r: 'margin-right', t: 'margin-top', b: 'margin-bottom'},
14
- /**
15
- * Test if size has a unit, otherwise appends the passed unit string, or the default for this Element.
16
- * @param size {Object} The size to set
17
- * @param units {String} The units to append to a numeric size value
18
- * @private
19
- * @static
20
- */
21
- addUnits: function(size, units) {
22
- // Most common case first: Size is set to a number
23
- if (typeof size == 'number') {
24
- return size + (units || this.defaultUnit || 'px');
25
- }
26
-
27
- // Size set to a value which means "auto"
28
- if (size === "" || size == "auto" || size === undefined || size === null) {
29
- return size || '';
30
- }
31
-
32
- // Otherwise, warn if it's not a valid CSS measurement
33
- if (!this.unitRe.test(size)) {
34
- //<debug>
35
- if (Ext.isDefined(Ext.global.console)) {
36
- Ext.global.console.warn("Warning, size detected as NaN on Element.addUnits.");
37
- }
38
- //</debug>
39
- return size || '';
40
- }
41
-
42
- return size;
43
- },
44
-
45
- /**
46
- * @static
47
- * @private
48
- */
49
- isAncestor: function(p, c) {
50
- var ret = false;
51
-
52
- p = Ext.getDom(p);
53
- c = Ext.getDom(c);
54
- if (p && c) {
55
- if (p.contains) {
56
- return p.contains(c);
57
- } else if (p.compareDocumentPosition) {
58
- return !!(p.compareDocumentPosition(c) & 16);
59
- } else {
60
- while ((c = c.parentNode)) {
61
- ret = c == p || ret;
62
- }
63
- }
64
- }
65
- return ret;
66
- },
67
-
68
- /**
69
- * Parses a number or string representing margin sizes into an object. Supports CSS-style margin declarations
70
- * (e.g. 10, "10", "10 10", "10 10 10" and "10 10 10 10" are all valid options and would return the same result)
71
- * @static
72
- * @param {Number/String} box The encoded margins
73
- * @return {Object} An object with margin sizes for top, right, bottom and left
74
- */
75
- parseBox: function(box) {
76
- if (typeof box != 'string') {
77
- box = box.toString();
78
- }
79
- var parts = box.split(' '),
80
- ln = parts.length;
81
-
82
- if (ln == 1) {
83
- parts[1] = parts[2] = parts[3] = parts[0];
84
- }
85
- else if (ln == 2) {
86
- parts[2] = parts[0];
87
- parts[3] = parts[1];
88
- }
89
- else if (ln == 3) {
90
- parts[3] = parts[1];
91
- }
92
-
93
- return {
94
- top :parseFloat(parts[0]) || 0,
95
- right :parseFloat(parts[1]) || 0,
96
- bottom:parseFloat(parts[2]) || 0,
97
- left :parseFloat(parts[3]) || 0
98
- };
99
- },
100
-
101
- /**
102
- * Parses a number or string representing margin sizes into an object. Supports CSS-style margin declarations
103
- * (e.g. 10, "10", "10 10", "10 10 10" and "10 10 10 10" are all valid options and would return the same result)
104
- * @static
105
- * @param {Number/String} box The encoded margins
106
- * @param {String} units The type of units to add
107
- * @return {String} An string with unitized (px if units is not specified) metrics for top, right, bottom and left
108
- */
109
- unitizeBox: function(box, units) {
110
- var a = this.addUnits,
111
- b = this.parseBox(box);
112
-
113
- return a(b.top, units) + ' ' +
114
- a(b.right, units) + ' ' +
115
- a(b.bottom, units) + ' ' +
116
- a(b.left, units);
117
-
118
- },
119
-
120
- // private
121
- camelReplaceFn: function(m, a) {
122
- return a.charAt(1).toUpperCase();
123
- },
124
-
125
- /**
126
- * Normalizes CSS property keys from dash delimited to camel case JavaScript Syntax.
127
- * For example:
128
- *
129
- * - border-width -> borderWidth
130
- * - padding-top -> paddingTop
131
- *
132
- * @static
133
- * @param {String} prop The property to normalize
134
- * @return {String} The normalized string
135
- */
136
- normalize: function(prop) {
137
- // TODO: Mobile optimization?
138
- if (prop == 'float') {
139
- prop = Ext.supports.Float ? 'cssFloat' : 'styleFloat';
140
- }
141
- return this.propertyCache[prop] || (this.propertyCache[prop] = prop.replace(this.camelRe, this.camelReplaceFn));
142
- },
143
-
144
- /**
145
- * Retrieves the document height
146
- * @static
147
- * @return {Number} documentHeight
148
- */
149
- getDocumentHeight: function() {
150
- return Math.max(!Ext.isStrict ? document.body.scrollHeight : document.documentElement.scrollHeight, this.getViewportHeight());
151
- },
152
-
153
- /**
154
- * Retrieves the document width
155
- * @static
156
- * @return {Number} documentWidth
157
- */
158
- getDocumentWidth: function() {
159
- return Math.max(!Ext.isStrict ? document.body.scrollWidth : document.documentElement.scrollWidth, this.getViewportWidth());
160
- },
161
-
162
- /**
163
- * Retrieves the viewport height of the window.
164
- * @static
165
- * @return {Number} viewportHeight
166
- */
167
- getViewportHeight: function(){
168
- return window.innerHeight;
169
- },
170
-
171
- /**
172
- * Retrieves the viewport width of the window.
173
- * @static
174
- * @return {Number} viewportWidth
175
- */
176
- getViewportWidth: function() {
177
- return window.innerWidth;
178
- },
179
-
180
- /**
181
- * Retrieves the viewport size of the window.
182
- * @static
183
- * @return {Object} object containing width and height properties
184
- */
185
- getViewSize: function() {
186
- return {
187
- width: window.innerWidth,
188
- height: window.innerHeight
189
- };
190
- },
191
-
192
- /**
193
- * Retrieves the current orientation of the window. This is calculated by
194
- * determing if the height is greater than the width.
195
- * @static
196
- * @return {String} Orientation of window: 'portrait' or 'landscape'
197
- */
198
- getOrientation: function() {
199
- if (Ext.supports.OrientationChange) {
200
- return (window.orientation == 0) ? 'portrait' : 'landscape';
201
- }
202
-
203
- return (window.innerHeight > window.innerWidth) ? 'portrait' : 'landscape';
204
- },
205
-
206
- /**
207
- * Returns the top Element that is located at the passed coordinates
208
- * @static
209
- * @param {Number} x The x coordinate
210
- * @param {Number} y The y coordinate
211
- * @return {String} The found Element
212
- */
213
- fromPoint: function(x, y) {
214
- return Ext.get(document.elementFromPoint(x, y));
215
- },
216
-
217
- /**
218
- * Converts a CSS string into an object with a property for each style.
219
- *
220
- * The sample code below would return an object with 2 properties, one
221
- * for background-color and one for color.
222
- *
223
- * var css = 'background-color: red;color: blue; ';
224
- * console.log(Ext.dom.Element.parseStyles(css));
225
- *
226
- * @static
227
- * @param {String} styles A CSS string
228
- * @return {Object} styles
229
- */
230
- parseStyles: function(styles){
231
- var out = {},
232
- cssRe = this.cssRe,
233
- matches;
234
-
235
- if (styles) {
236
- // Since we're using the g flag on the regex, we need to set the lastIndex.
237
- // This automatically happens on some implementations, but not others, see:
238
- // http://stackoverflow.com/questions/2645273/javascript-regular-expression-literal-persists-between-function-calls
239
- // http://blog.stevenlevithan.com/archives/fixing-javascript-regexp
240
- cssRe.lastIndex = 0;
241
- while ((matches = cssRe.exec(styles))) {
242
- out[matches[1]] = matches[2];
243
- }
244
- }
245
- return out;
246
- }
247
- });
248
-
249
- //TODO Need serious cleanups
250
- (function(){
251
- var doc = document,
252
- AbstractElement = Ext.dom.AbstractElement,
253
- activeElement = null,
254
- isCSS1 = doc.compatMode == "CSS1Compat",
255
- flyInstance,
256
- fly = function (el) {
257
- if (!flyInstance) {
258
- flyInstance = new AbstractElement.Fly();
259
- }
260
- flyInstance.attach(el);
261
- return flyInstance;
262
- };
263
-
264
- // If the browser does not support document.activeElement we need some assistance.
265
- // This covers old Safari 3.2 (4.0 added activeElement along with just about all
266
- // other browsers). We need this support to handle issues with old Safari.
267
- if (!('activeElement' in doc) && doc.addEventListener) {
268
- doc.addEventListener('focus',
269
- function (ev) {
270
- if (ev && ev.target) {
271
- activeElement = (ev.target == doc) ? null : ev.target;
272
- }
273
- }, true);
274
- }
275
-
276
- /*
277
- * Helper function to create the function that will restore the selection.
278
- */
279
- function makeSelectionRestoreFn (activeEl, start, end) {
280
- return function () {
281
- activeEl.selectionStart = start;
282
- activeEl.selectionEnd = end;
283
- };
284
- }
285
-
286
- AbstractElement.addInheritableStatics({
287
- /**
288
- * Returns the active element in the DOM. If the browser supports activeElement
289
- * on the document, this is returned. If not, the focus is tracked and the active
290
- * element is maintained internally.
291
- * @return {HTMLElement} The active (focused) element in the document.
292
- */
293
- getActiveElement: function () {
294
- return doc.activeElement || activeElement;
295
- },
296
-
297
- /**
298
- * Creates a function to call to clean up problems with the work-around for the
299
- * WebKit RightMargin bug. The work-around is to add "display: 'inline-block'" to
300
- * the element before calling getComputedStyle and then to restore its original
301
- * display value. The problem with this is that it corrupts the selection of an
302
- * INPUT or TEXTAREA element (as in the "I-beam" goes away but ths focus remains).
303
- * To cleanup after this, we need to capture the selection of any such element and
304
- * then restore it after we have restored the display style.
305
- *
306
- * @param {Ext.dom.Element} target The top-most element being adjusted.
307
- * @private
308
- */
309
- getRightMarginFixCleaner: function (target) {
310
- var supports = Ext.supports,
311
- hasInputBug = supports.DisplayChangeInputSelectionBug,
312
- hasTextAreaBug = supports.DisplayChangeTextAreaSelectionBug,
313
- activeEl,
314
- tag,
315
- start,
316
- end;
317
-
318
- if (hasInputBug || hasTextAreaBug) {
319
- activeEl = doc.activeElement || activeElement; // save a call
320
- tag = activeEl && activeEl.tagName;
321
-
322
- if ((hasTextAreaBug && tag == 'TEXTAREA') ||
323
- (hasInputBug && tag == 'INPUT' && activeEl.type == 'text')) {
324
- if (Ext.dom.Element.isAncestor(target, activeEl)) {
325
- start = activeEl.selectionStart;
326
- end = activeEl.selectionEnd;
327
-
328
- if (Ext.isNumber(start) && Ext.isNumber(end)) { // to be safe...
329
- // We don't create the raw closure here inline because that
330
- // will be costly even if we don't want to return it (nested
331
- // function decls and exprs are often instantiated on entry
332
- // regardless of whether execution ever reaches them):
333
- return makeSelectionRestoreFn(activeEl, start, end);
334
- }
335
- }
336
- }
337
- }
338
-
339
- return Ext.emptyFn; // avoid special cases, just return a nop
340
- },
341
-
342
- getViewWidth: function(full) {
343
- return full ? Ext.dom.Element.getDocumentWidth() : Ext.dom.Element.getViewportWidth();
344
- },
345
-
346
- getViewHeight: function(full) {
347
- return full ? Ext.dom.Element.getDocumentHeight() : Ext.dom.Element.getViewportHeight();
348
- },
349
-
350
- getDocumentHeight: function() {
351
- return Math.max(!isCSS1 ? doc.body.scrollHeight : doc.documentElement.scrollHeight, Ext.dom.Element.getViewportHeight());
352
- },
353
-
354
- getDocumentWidth: function() {
355
- return Math.max(!isCSS1 ? doc.body.scrollWidth : doc.documentElement.scrollWidth, Ext.dom.Element.getViewportWidth());
356
- },
357
-
358
- getViewportHeight: function(){
359
- return Ext.isIE ?
360
- (Ext.isStrict ? doc.documentElement.clientHeight : doc.body.clientHeight) :
361
- self.innerHeight;
362
- },
363
-
364
- getViewportWidth: function() {
365
- return (!Ext.isStrict && !Ext.isOpera) ? doc.body.clientWidth :
366
- Ext.isIE ? doc.documentElement.clientWidth : self.innerWidth;
367
- },
368
-
369
- getY: function(el) {
370
- return Ext.dom.Element.getXY(el)[1];
371
- },
372
-
373
- getX: function(el) {
374
- return Ext.dom.Element.getXY(el)[0];
375
- },
376
-
377
- getXY: function(el) {
378
- var bd = doc.body,
379
- docEl = doc.documentElement,
380
- leftBorder = 0,
381
- topBorder = 0,
382
- ret = [0,0],
383
- round = Math.round,
384
- box,
385
- scroll;
386
-
387
- el = Ext.getDom(el);
388
-
389
- if(el != doc && el != bd){
390
- // IE has the potential to throw when getBoundingClientRect called
391
- // on element not attached to dom
392
- if (Ext.isIE) {
393
- try {
394
- box = el.getBoundingClientRect();
395
- // In some versions of IE, the documentElement (HTML element) will have a 2px border that gets included, so subtract it off
396
- topBorder = docEl.clientTop || bd.clientTop;
397
- leftBorder = docEl.clientLeft || bd.clientLeft;
398
- } catch (ex) {
399
- box = { left: 0, top: 0 };
400
- }
401
- } else {
402
- box = el.getBoundingClientRect();
403
- }
404
-
405
- scroll = fly(document).getScroll();
406
- ret = [round(box.left + scroll.left - leftBorder), round(box.top + scroll.top - topBorder)];
407
- }
408
- return ret;
409
- },
410
-
411
- setXY: function(el, xy) {
412
- (el = Ext.fly(el, '_setXY')).position();
413
-
414
- var pts = el.translatePoints(xy),
415
- style = el.dom.style,
416
- pos;
417
-
418
- for (pos in pts) {
419
- if (!isNaN(pts[pos])) {
420
- style[pos] = pts[pos] + "px";
421
- }
422
- }
423
- },
424
-
425
- setX: function(el, x) {
426
- Ext.dom.Element.setXY(el, [x, false]);
427
- },
428
-
429
- setY: function(el, y) {
430
- Ext.dom.Element.setXY(el, [false, y]);
431
- },
432
-
433
- /**
434
- * Serializes a DOM form into a url encoded string
435
- * @param {Object} form The form
436
- * @return {String} The url encoded form
437
- */
438
- serializeForm: function(form) {
439
- var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements,
440
- hasSubmit = false,
441
- encoder = encodeURIComponent,
442
- data = '',
443
- eLen = fElements.length,
444
- element, name, type, options, hasValue, e,
445
- o, oLen, opt;
446
-
447
- for (e = 0; e < eLen; e++) {
448
- element = fElements[e];
449
- name = element.name;
450
- type = element.type;
451
- options = element.options;
452
-
453
- if (!element.disabled && name) {
454
- if (/select-(one|multiple)/i.test(type)) {
455
- oLen = options.length;
456
- for (o = 0; o < oLen; o++) {
457
- opt = options[o];
458
- if (opt.selected) {
459
- hasValue = opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified;
460
- data += Ext.String.format("{0}={1}&", encoder(name), encoder(hasValue ? opt.value : opt.text));
461
- }
462
- }
463
- } else if (!(/file|undefined|reset|button/i.test(type))) {
464
- if (!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)) {
465
- data += encoder(name) + '=' + encoder(element.value) + '&';
466
- hasSubmit = /submit/i.test(type);
467
- }
468
- }
469
- }
470
- }
471
- return data.substr(0, data.length - 1);
472
- }
473
- });
474
- }());