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,258 +0,0 @@
1
- /**
2
- * @author Ed Spencer
3
- * TabBar is used internally by a {@link Ext.tab.Panel TabPanel} and typically should not need to be created manually.
4
- * The tab bar automatically removes the default title provided by {@link Ext.panel.Header}
5
- */
6
- Ext.define('Ext.tab.Bar', {
7
- extend: 'Ext.panel.Header',
8
- alias: 'widget.tabbar',
9
- baseCls: Ext.baseCSSPrefix + 'tab-bar',
10
-
11
- requires: ['Ext.tab.Tab'],
12
-
13
- /**
14
- * @property {Boolean} isTabBar
15
- * `true` in this class to identify an objact as an instantiated Tab Bar, or subclass thereof.
16
- */
17
- isTabBar: true,
18
-
19
- /**
20
- * @cfg {String} title @hide
21
- */
22
-
23
- /**
24
- * @cfg {String} iconCls @hide
25
- */
26
-
27
- // @private
28
- defaultType: 'tab',
29
-
30
- /**
31
- * @cfg {Boolean} plain
32
- * True to not show the full background on the tabbar
33
- */
34
- plain: false,
35
-
36
- childEls: [
37
- 'body', 'strip'
38
- ],
39
-
40
- // @private
41
- renderTpl: [
42
- '<div id="{id}-body" class="{baseCls}-body {bodyCls}<tpl if="ui"> {baseCls}-body-{ui}<tpl for="uiCls"> {parent.baseCls}-body-{parent.ui}-{.}</tpl></tpl>"<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>>',
43
- '{%this.renderContainer(out,values)%}',
44
- '</div>',
45
- '<div id="{id}-strip" class="{baseCls}-strip<tpl if="ui"> {baseCls}-strip-{ui}<tpl for="uiCls"> {parent.baseCls}-strip-{parent.ui}-{.}</tpl></tpl>"></div>'
46
- ],
47
-
48
- /**
49
- * @cfg {Number} minTabWidth
50
- * The minimum width for a tab in this tab Bar. Defaults to the tab Panel's {@link Ext.tab.Panel#minTabWidth minTabWidth} value.
51
- * @deprecated This config is deprecated. It is much easier to use the {@link Ext.tab.Panel#minTabWidth minTabWidth} config on the TabPanel.
52
- */
53
-
54
- /**
55
- * @cfg {Number} maxTabWidth
56
- * The maximum width for a tab in this tab Bar. Defaults to the tab Panel's {@link Ext.tab.Panel#maxTabWidth maxTabWidth} value.
57
- * @deprecated This config is deprecated. It is much easier to use the {@link Ext.tab.Panel#maxTabWidth maxTabWidth} config on the TabPanel.
58
- */
59
-
60
- // @private
61
- initComponent: function() {
62
- var me = this;
63
-
64
- if (me.plain) {
65
- me.setUI(me.ui + '-plain');
66
- }
67
-
68
- me.addClsWithUI(me.dock);
69
-
70
- me.addEvents(
71
- /**
72
- * @event change
73
- * Fired when the currently-active tab has changed
74
- * @param {Ext.tab.Bar} tabBar The TabBar
75
- * @param {Ext.tab.Tab} tab The new Tab
76
- * @param {Ext.Component} card The card that was just shown in the TabPanel
77
- */
78
- 'change'
79
- );
80
-
81
- // Element onClick listener added by Header base class
82
- me.callParent(arguments);
83
-
84
- // TabBar must override the Header's align setting.
85
- me.layout.align = (me.orientation == 'vertical') ? 'left' : 'top';
86
- me.layout.overflowHandler = new Ext.layout.container.boxOverflow.Scroller(me.layout);
87
-
88
- me.remove(me.titleCmp);
89
- delete me.titleCmp;
90
-
91
- Ext.apply(me.renderData, {
92
- bodyCls: me.bodyCls
93
- });
94
- },
95
-
96
- getLayout: function() {
97
- var me = this;
98
- me.layout.type = (me.dock === 'top' || me.dock === 'bottom') ? 'hbox' : 'vbox';
99
- return me.callParent(arguments);
100
- },
101
-
102
- // @private
103
- onAdd: function(tab) {
104
- tab.position = this.dock;
105
- this.callParent(arguments);
106
- },
107
-
108
- onRemove: function(tab) {
109
- var me = this;
110
-
111
- if (tab === me.previousTab) {
112
- me.previousTab = null;
113
- }
114
- me.callParent(arguments);
115
- },
116
-
117
- afterComponentLayout : function(width) {
118
- this.callParent(arguments);
119
- this.strip.setWidth(width);
120
- },
121
-
122
- // @private
123
- onClick: function(e, target) {
124
- // The target might not be a valid tab el.
125
- var me = this,
126
- tabEl = e.getTarget('.' + Ext.tab.Tab.prototype.baseCls),
127
- tab = tabEl && Ext.getCmp(tabEl.id),
128
- tabPanel = me.tabPanel,
129
- isCloseClick = tab && tab.closeEl && (target === tab.closeEl.dom);
130
-
131
- if (isCloseClick) {
132
- e.preventDefault();
133
- }
134
- if (tab && tab.isDisabled && !tab.isDisabled()) {
135
- if (tab.closable && isCloseClick) {
136
- tab.onCloseClick();
137
- } else {
138
- if (tabPanel) {
139
- // TabPanel will card setActiveTab of the TabBar
140
- tabPanel.setActiveTab(tab.card);
141
- } else {
142
- me.setActiveTab(tab);
143
- }
144
- tab.focus();
145
- }
146
- }
147
- },
148
-
149
- /**
150
- * @private
151
- * Closes the given tab by removing it from the TabBar and removing the corresponding card from the TabPanel
152
- * @param {Ext.tab.Tab} toClose The tab to close
153
- */
154
- closeTab: function(toClose) {
155
- var me = this,
156
- card = toClose.card,
157
- tabPanel = me.tabPanel,
158
- toActivate;
159
-
160
- if (card && card.fireEvent('beforeclose', card) === false) {
161
- return false;
162
- }
163
-
164
- // If we are closing the active tab, revert to the previously active tab (or the previous or next enabled sibling if
165
- // there *is* no previously active tab, or the previously active tab is the one that's being closed or the previously
166
- // active tab has since been disabled)
167
- toActivate = me.findNextActivatable(toClose);
168
-
169
- // We are going to remove the associated card, and then, if that was sucessful, remove the Tab,
170
- // And then potentially activate another Tab. We should not layout for each of these operations.
171
- Ext.suspendLayouts();
172
-
173
- if (tabPanel && card) {
174
- // Remove the ownerCt so the tab doesn't get destroyed if the remove is successful
175
- // We need this so we can have the tab fire it's own close event.
176
- delete toClose.ownerCt;
177
-
178
- // we must fire 'close' before removing the card from panel, otherwise
179
- // the event will no loger have any listener
180
- card.fireEvent('close', card);
181
- tabPanel.remove(card);
182
-
183
- // Remove succeeded
184
- if (!tabPanel.getComponent(card)) {
185
- /*
186
- * Force the close event to fire. By the time this function returns,
187
- * the tab is already destroyed and all listeners have been purged
188
- * so the tab can't fire itself.
189
- */
190
- toClose.fireClose();
191
- me.remove(toClose);
192
- } else {
193
- // Restore the ownerCt from above
194
- toClose.ownerCt = me;
195
- Ext.resumeLayouts(true);
196
- return false;
197
- }
198
- }
199
-
200
- // If we are closing the active tab, revert to the previously active tab (or the previous sibling or the nnext sibling)
201
- if (toActivate) {
202
- // Our owning TabPanel calls our setActiveTab method, so only call that if this Bar is being used
203
- // in some other context (unlikely)
204
- if (tabPanel) {
205
- tabPanel.setActiveTab(toActivate.card);
206
- } else {
207
- me.setActiveTab(toActivate);
208
- }
209
- toActivate.focus();
210
- }
211
- Ext.resumeLayouts(true);
212
- },
213
-
214
- // private - used by TabPanel too.
215
- // Works out the next tab to activate when one tab is closed.
216
- findNextActivatable: function(toClose) {
217
- var me = this;
218
- if (toClose.active && me.items.getCount() > 1) {
219
- return (me.previousTab && me.previousTab !== toClose && !me.previousTab.disabled) ? me.previousTab : (toClose.next('tab[disabled=false]') || toClose.prev('tab[disabled=false]'));
220
- }
221
- },
222
-
223
- /**
224
- * @private
225
- * Marks the given tab as active
226
- * @param {Ext.tab.Tab} tab The tab to mark active
227
- */
228
- setActiveTab: function(tab) {
229
- var me = this;
230
-
231
- if (!tab.disabled && tab !== me.activeTab) {
232
- if (me.activeTab) {
233
- if (me.activeTab.isDestroyed) {
234
- me.previousTab = null;
235
- } else {
236
- me.previousTab = me.activeTab;
237
- me.activeTab.deactivate();
238
- }
239
- }
240
- tab.activate();
241
-
242
- me.activeTab = tab;
243
- me.fireEvent('change', me, tab, tab.card);
244
-
245
- // Ensure that after the currently in progress layout, the active tab is scrolled into view
246
- me.on({
247
- afterlayout: me.afterTabActivate,
248
- scope: me,
249
- single: true
250
- });
251
- me.updateLayout();
252
- }
253
- },
254
-
255
- afterTabActivate: function() {
256
- this.layout.overflowHandler.scrollToItem(this.activeTab);
257
- }
258
- });
@@ -1,654 +0,0 @@
1
- /**
2
- * @author Ed Spencer, Tommy Maintz, Brian Moeskau
3
- *
4
- * A basic tab container. TabPanels can be used exactly like a standard {@link Ext.panel.Panel} for
5
- * layout purposes, but also have special support for containing child Components
6
- * (`{@link Ext.container.Container#cfg-items items}`) that are managed using a
7
- * {@link Ext.layout.container.Card CardLayout layout manager}, and displayed as separate tabs.
8
- *
9
- * **Note:** By default, a tab's close tool _destroys_ the child tab Component and all its descendants.
10
- * This makes the child tab Component, and all its descendants **unusable**. To enable re-use of a tab,
11
- * configure the TabPanel with `{@link #autoDestroy autoDestroy: false}`.
12
- *
13
- * ## TabPanel's layout
14
- *
15
- * TabPanels use a Dock layout to position the {@link Ext.tab.Bar TabBar} at the top of the widget.
16
- * Panels added to the TabPanel will have their header hidden by default because the Tab will
17
- * automatically take the Panel's configured title and icon.
18
- *
19
- * TabPanels use their {@link Ext.panel.Header header} or {@link Ext.panel.Panel#fbar footer}
20
- * element (depending on the {@link #tabPosition} configuration) to accommodate the tab selector buttons.
21
- * This means that a TabPanel will not display any configured title, and will not display any configured
22
- * header {@link Ext.panel.Panel#tools tools}.
23
- *
24
- * To display a header, embed the TabPanel in a {@link Ext.panel.Panel Panel} which uses
25
- * `{@link Ext.container.Container#layout layout: 'fit'}`.
26
- *
27
- * ## Controlling tabs
28
- *
29
- * Configuration options for the {@link Ext.tab.Tab} that represents the component can be passed in
30
- * by specifying the tabConfig option:
31
- *
32
- * @example
33
- * Ext.create('Ext.tab.Panel', {
34
- * width: 400,
35
- * height: 400,
36
- * renderTo: document.body,
37
- * items: [{
38
- * title: 'Foo'
39
- * }, {
40
- * title: 'Bar',
41
- * tabConfig: {
42
- * title: 'Custom Title',
43
- * tooltip: 'A button tooltip'
44
- * }
45
- * }]
46
- * });
47
- *
48
- * # Examples
49
- *
50
- * Here is a basic TabPanel rendered to the body. This also shows the useful configuration {@link #activeTab},
51
- * which allows you to set the active tab on render. If you do not set an {@link #activeTab}, no tabs will be
52
- * active by default.
53
- *
54
- * @example
55
- * Ext.create('Ext.tab.Panel', {
56
- * width: 300,
57
- * height: 200,
58
- * activeTab: 0,
59
- * items: [
60
- * {
61
- * title: 'Tab 1',
62
- * bodyPadding: 10,
63
- * html : 'A simple tab'
64
- * },
65
- * {
66
- * title: 'Tab 2',
67
- * html : 'Another one'
68
- * }
69
- * ],
70
- * renderTo : Ext.getBody()
71
- * });
72
- *
73
- * It is easy to control the visibility of items in the tab bar. Specify hidden: true to have the
74
- * tab button hidden initially. Items can be subsequently hidden and show by accessing the
75
- * tab property on the child item.
76
- *
77
- * @example
78
- * var tabs = Ext.create('Ext.tab.Panel', {
79
- * width: 400,
80
- * height: 400,
81
- * renderTo: document.body,
82
- * items: [{
83
- * title: 'Home',
84
- * html: 'Home',
85
- * itemId: 'home'
86
- * }, {
87
- * title: 'Users',
88
- * html: 'Users',
89
- * itemId: 'users',
90
- * hidden: true
91
- * }, {
92
- * title: 'Tickets',
93
- * html: 'Tickets',
94
- * itemId: 'tickets'
95
- * }]
96
- * });
97
- *
98
- * setTimeout(function(){
99
- * tabs.child('#home').tab.hide();
100
- * var users = tabs.child('#users');
101
- * users.tab.show();
102
- * tabs.setActiveTab(users);
103
- * }, 1000);
104
- *
105
- * You can remove the background of the TabBar by setting the {@link #plain} property to `true`.
106
- *
107
- * @example
108
- * Ext.create('Ext.tab.Panel', {
109
- * width: 300,
110
- * height: 200,
111
- * activeTab: 0,
112
- * plain: true,
113
- * items: [
114
- * {
115
- * title: 'Tab 1',
116
- * bodyPadding: 10,
117
- * html : 'A simple tab'
118
- * },
119
- * {
120
- * title: 'Tab 2',
121
- * html : 'Another one'
122
- * }
123
- * ],
124
- * renderTo : Ext.getBody()
125
- * });
126
- *
127
- * Another useful configuration of TabPanel is {@link #tabPosition}. This allows you to change the
128
- * position where the tabs are displayed. The available options for this are `'top'` (default) and
129
- * `'bottom'`.
130
- *
131
- * @example
132
- * Ext.create('Ext.tab.Panel', {
133
- * width: 300,
134
- * height: 200,
135
- * activeTab: 0,
136
- * bodyPadding: 10,
137
- * tabPosition: 'bottom',
138
- * items: [
139
- * {
140
- * title: 'Tab 1',
141
- * html : 'A simple tab'
142
- * },
143
- * {
144
- * title: 'Tab 2',
145
- * html : 'Another one'
146
- * }
147
- * ],
148
- * renderTo : Ext.getBody()
149
- * });
150
- *
151
- * The {@link #setActiveTab} is a very useful method in TabPanel which will allow you to change the
152
- * current active tab. You can either give it an index or an instance of a tab. For example:
153
- *
154
- * @example
155
- * var tabs = Ext.create('Ext.tab.Panel', {
156
- * items: [
157
- * {
158
- * id : 'my-tab',
159
- * title: 'Tab 1',
160
- * html : 'A simple tab'
161
- * },
162
- * {
163
- * title: 'Tab 2',
164
- * html : 'Another one'
165
- * }
166
- * ],
167
- * renderTo : Ext.getBody()
168
- * });
169
- *
170
- * var tab = Ext.getCmp('my-tab');
171
- *
172
- * Ext.create('Ext.button.Button', {
173
- * renderTo: Ext.getBody(),
174
- * text : 'Select the first tab',
175
- * scope : this,
176
- * handler : function() {
177
- * tabs.setActiveTab(tab);
178
- * }
179
- * });
180
- *
181
- * Ext.create('Ext.button.Button', {
182
- * text : 'Select the second tab',
183
- * scope : this,
184
- * handler : function() {
185
- * tabs.setActiveTab(1);
186
- * },
187
- * renderTo : Ext.getBody()
188
- * });
189
- *
190
- * The {@link #getActiveTab} is a another useful method in TabPanel which will return the current active tab.
191
- *
192
- * @example
193
- * var tabs = Ext.create('Ext.tab.Panel', {
194
- * items: [
195
- * {
196
- * title: 'Tab 1',
197
- * html : 'A simple tab'
198
- * },
199
- * {
200
- * title: 'Tab 2',
201
- * html : 'Another one'
202
- * }
203
- * ],
204
- * renderTo : Ext.getBody()
205
- * });
206
- *
207
- * Ext.create('Ext.button.Button', {
208
- * text : 'Get active tab',
209
- * scope : this,
210
- * handler : function() {
211
- * var tab = tabs.getActiveTab();
212
- * alert('Current tab: ' + tab.title);
213
- * },
214
- * renderTo : Ext.getBody()
215
- * });
216
- *
217
- * Adding a new tab is very simple with a TabPanel. You simple call the {@link #method-add} method with an config
218
- * object for a panel.
219
- *
220
- * @example
221
- * var tabs = Ext.create('Ext.tab.Panel', {
222
- * items: [
223
- * {
224
- * title: 'Tab 1',
225
- * html : 'A simple tab'
226
- * },
227
- * {
228
- * title: 'Tab 2',
229
- * html : 'Another one'
230
- * }
231
- * ],
232
- * renderTo : Ext.getBody()
233
- * });
234
- *
235
- * Ext.create('Ext.button.Button', {
236
- * text : 'New tab',
237
- * scope : this,
238
- * handler : function() {
239
- * var tab = tabs.add({
240
- * // we use the tabs.items property to get the length of current items/tabs
241
- * title: 'Tab ' + (tabs.items.length + 1),
242
- * html : 'Another one'
243
- * });
244
- *
245
- * tabs.setActiveTab(tab);
246
- * },
247
- * renderTo : Ext.getBody()
248
- * });
249
- *
250
- * Additionally, removing a tab is very also simple with a TabPanel. You simple call the {@link #method-remove} method
251
- * with an config object for a panel.
252
- *
253
- * @example
254
- * var tabs = Ext.create('Ext.tab.Panel', {
255
- * items: [
256
- * {
257
- * title: 'Tab 1',
258
- * html : 'A simple tab'
259
- * },
260
- * {
261
- * id : 'remove-this-tab',
262
- * title: 'Tab 2',
263
- * html : 'Another one'
264
- * }
265
- * ],
266
- * renderTo : Ext.getBody()
267
- * });
268
- *
269
- * Ext.create('Ext.button.Button', {
270
- * text : 'Remove tab',
271
- * scope : this,
272
- * handler : function() {
273
- * var tab = Ext.getCmp('remove-this-tab');
274
- * tabs.remove(tab);
275
- * },
276
- * renderTo : Ext.getBody()
277
- * });
278
- */
279
- Ext.define('Ext.tab.Panel', {
280
- extend: 'Ext.panel.Panel',
281
- alias: 'widget.tabpanel',
282
- alternateClassName: ['Ext.TabPanel'],
283
-
284
- requires: ['Ext.layout.container.Card', 'Ext.tab.Bar'],
285
-
286
- /**
287
- * @cfg {String} tabPosition
288
- * The position where the tab strip should be rendered. Can be `top` or `bottom`.
289
- */
290
- tabPosition : 'top',
291
-
292
- /**
293
- * @cfg {String/Number} activeItem
294
- * Doesn't apply for {@link Ext.tab.Panel TabPanel}, use {@link #activeTab} instead.
295
- */
296
-
297
- /**
298
- * @cfg {String/Number/Ext.Component} activeTab
299
- * The tab to activate initially. Either an ID, index or the tab component itself.
300
- */
301
-
302
- /**
303
- * @cfg {Object} tabBar
304
- * Optional configuration object for the internal {@link Ext.tab.Bar}.
305
- * If present, this is passed straight through to the TabBar's constructor
306
- */
307
-
308
- /**
309
- * @cfg {Object} layout
310
- * Optional configuration object for the internal {@link Ext.layout.container.Card card layout}.
311
- * If present, this is passed straight through to the layout's constructor
312
- */
313
-
314
- /**
315
- * @cfg {Boolean} removePanelHeader
316
- * True to instruct each Panel added to the TabContainer to not render its header element.
317
- * This is to ensure that the title of the panel does not appear twice.
318
- */
319
- removePanelHeader: true,
320
-
321
- /**
322
- * @cfg {Boolean} plain
323
- * True to not show the full background on the TabBar.
324
- */
325
- plain: false,
326
-
327
- /**
328
- * @cfg {String} [itemCls='x-tabpanel-child']
329
- * The class added to each child item of this TabPanel.
330
- */
331
- itemCls: Ext.baseCSSPrefix + 'tabpanel-child',
332
-
333
- /**
334
- * @cfg {Number} minTabWidth
335
- * The minimum width for a tab in the {@link #cfg-tabBar}.
336
- */
337
- minTabWidth: undefined,
338
-
339
- /**
340
- * @cfg {Number} maxTabWidth The maximum width for each tab.
341
- */
342
- maxTabWidth: undefined,
343
-
344
- /**
345
- * @cfg {Boolean} deferredRender
346
- *
347
- * True by default to defer the rendering of child {@link Ext.container.Container#cfg-items items} to the browsers DOM
348
- * until a tab is activated. False will render all contained {@link Ext.container.Container#cfg-items items} as soon as
349
- * the {@link Ext.layout.container.Card layout} is rendered. If there is a significant amount of content or a lot of
350
- * heavy controls being rendered into panels that are not displayed by default, setting this to true might improve
351
- * performance.
352
- *
353
- * The deferredRender property is internally passed to the layout manager for TabPanels ({@link
354
- * Ext.layout.container.Card}) as its {@link Ext.layout.container.Card#deferredRender} configuration value.
355
- *
356
- * **Note**: leaving deferredRender as true means that the content within an unactivated tab will not be available
357
- */
358
- deferredRender : true,
359
-
360
- //inherit docs
361
- initComponent: function() {
362
- var me = this,
363
- dockedItems = [].concat(me.dockedItems || []),
364
- activeTab = me.activeTab || (me.activeTab = 0);
365
-
366
- // Configure the layout with our deferredRender, and with our activeTeb
367
- me.layout = new Ext.layout.container.Card(Ext.apply({
368
- owner: me,
369
- deferredRender: me.deferredRender,
370
- itemCls: me.itemCls,
371
- activeItem: me.activeTab
372
- }, me.layout));
373
-
374
- /**
375
- * @property {Ext.tab.Bar} tabBar Internal reference to the docked TabBar
376
- */
377
- me.tabBar = new Ext.tab.Bar(Ext.apply({
378
- dock: me.tabPosition,
379
- plain: me.plain,
380
- border: me.border,
381
- cardLayout: me.layout,
382
- tabPanel: me
383
- }, me.tabBar));
384
-
385
- dockedItems.push(me.tabBar);
386
- me.dockedItems = dockedItems;
387
-
388
- me.addEvents(
389
- /**
390
- * @event
391
- * Fires before a tab change (activated by {@link #setActiveTab}). Return false in any listener to cancel
392
- * the tabchange
393
- * @param {Ext.tab.Panel} tabPanel The TabPanel
394
- * @param {Ext.Component} newCard The card that is about to be activated
395
- * @param {Ext.Component} oldCard The card that is currently active
396
- */
397
- 'beforetabchange',
398
-
399
- /**
400
- * @event
401
- * Fires when a new tab has been activated (activated by {@link #setActiveTab}).
402
- * @param {Ext.tab.Panel} tabPanel The TabPanel
403
- * @param {Ext.Component} newCard The newly activated item
404
- * @param {Ext.Component} oldCard The previously active item
405
- */
406
- 'tabchange'
407
- );
408
-
409
- me.callParent(arguments);
410
-
411
- // We have to convert the numeric index/string ID config into its component reference
412
- me.activeTab = me.getComponent(activeTab);
413
-
414
- // Ensure that the active child's tab is rendered in the active UI state
415
- if (me.activeTab) {
416
- me.activeTab.tab.activate(true);
417
-
418
- // So that it knows what to deactivate in subsequent tab changes
419
- me.tabBar.activeTab = me.activeTab.tab;
420
- }
421
- },
422
-
423
- /**
424
- * Makes the given card active. Makes it the visible card in the TabPanel's CardLayout and highlights the Tab.
425
- * @param {String/Number/Ext.Component} card The card to make active. Either an ID, index or the component itself.
426
- * @return {Ext.Component} The resulting active child Component. The call may have been vetoed, or otherwise
427
- * modified by an event listener.
428
- */
429
- setActiveTab: function(card) {
430
- var me = this,
431
- previous;
432
-
433
- card = me.getComponent(card);
434
- if (card) {
435
- previous = me.getActiveTab();
436
-
437
- if (previous !== card && me.fireEvent('beforetabchange', me, card, previous) === false) {
438
- return false;
439
- }
440
-
441
- // We may be passed a config object, so add it.
442
- // Without doing a layout!
443
- if (!card.isComponent) {
444
- Ext.suspendLayouts();
445
- card = me.add(card);
446
- Ext.resumeLayouts();
447
- }
448
-
449
- // MUST set the activeTab first so that the machinery which listens for show doesn't
450
- // think that the show is "driving" the activation and attempt to recurse into here.
451
- me.activeTab = card;
452
-
453
- // Attempt to switch to the requested card. Suspend layouts because if that was successful
454
- // we have to also update the active tab in the tab bar which is another layout operation
455
- // and we must coalesce them.
456
- Ext.suspendLayouts();
457
- me.layout.setActiveItem(card);
458
-
459
- // Read the result of the card layout. Events dear boy, events!
460
- card = me.activeTab = me.layout.getActiveItem();
461
-
462
- // Card switch was not vetoed by an event listener
463
- if (card && card !== previous) {
464
-
465
- // Update the active tab in the tab bar and resume layouts.
466
- me.tabBar.setActiveTab(card.tab);
467
- Ext.resumeLayouts(true);
468
-
469
- // previous will be undefined or this.activeTab at instantiation
470
- if (previous !== card) {
471
- me.fireEvent('tabchange', me, card, previous);
472
- }
473
- }
474
- // Card switch was vetoed by an event listener. Resume layouts (Nothing should have changed on a veto).
475
- else {
476
- Ext.resumeLayouts(true);
477
- }
478
- return card;
479
- }
480
- },
481
-
482
- /**
483
- * Returns the item that is currently active inside this TabPanel.
484
- * @return {Ext.Component} The currently active item.
485
- */
486
- getActiveTab: function() {
487
- var me = this,
488
- // Ensure the calculated result references a Component
489
- result = me.getComponent(me.activeTab);
490
-
491
- // Sanitize the result in case the active tab is no longer there.
492
- if (result && me.items.indexOf(result) != -1) {
493
- me.activeTab = result;
494
- } else {
495
- me.activeTab = null;
496
- }
497
-
498
- return me.activeTab;
499
- },
500
-
501
- /**
502
- * Returns the {@link Ext.tab.Bar} currently used in this TabPanel
503
- * @return {Ext.tab.Bar} The TabBar
504
- */
505
- getTabBar: function() {
506
- return this.tabBar;
507
- },
508
-
509
- /**
510
- * @protected
511
- * Makes sure we have a Tab for each item added to the TabPanel
512
- */
513
- onAdd: function(item, index) {
514
- var me = this,
515
- cfg = item.tabConfig || {},
516
- defaultConfig = {
517
- xtype: 'tab',
518
- card: item,
519
- disabled: item.disabled,
520
- closable: item.closable,
521
- hidden: item.hidden && !item.hiddenByLayout, // only hide if it wasn't hidden by the layout itself
522
- tooltip: item.tooltip,
523
- tabBar: me.tabBar,
524
- closeText: item.closeText
525
- };
526
-
527
- cfg = Ext.applyIf(cfg, defaultConfig);
528
-
529
- // Create the correspondiong tab in the tab bar
530
- item.tab = me.tabBar.insert(index, cfg);
531
-
532
- item.on({
533
- scope : me,
534
- enable: me.onItemEnable,
535
- disable: me.onItemDisable,
536
- beforeshow: me.onItemBeforeShow,
537
- iconchange: me.onItemIconChange,
538
- iconclschange: me.onItemIconClsChange,
539
- titlechange: me.onItemTitleChange
540
- });
541
-
542
- if (item.isPanel) {
543
- if (me.removePanelHeader) {
544
- if (item.rendered) {
545
- if (item.header) {
546
- item.header.hide();
547
- }
548
- } else {
549
- item.header = false;
550
- }
551
- }
552
- if (item.isPanel && me.border) {
553
- item.setBorder(false);
554
- }
555
- }
556
- },
557
-
558
- /**
559
- * @private
560
- * Enable corresponding tab when item is enabled.
561
- */
562
- onItemEnable: function(item){
563
- item.tab.enable();
564
- },
565
-
566
- /**
567
- * @private
568
- * Disable corresponding tab when item is enabled.
569
- */
570
- onItemDisable: function(item){
571
- item.tab.disable();
572
- },
573
-
574
- /**
575
- * @private
576
- * Sets activeTab before item is shown.
577
- */
578
- onItemBeforeShow: function(item) {
579
- if (item !== this.activeTab) {
580
- this.setActiveTab(item);
581
- return false;
582
- }
583
- },
584
-
585
- /**
586
- * @private
587
- * Update the tab icon when panel icon has been set or changed.
588
- */
589
- onItemIconChange: function(item, newIcon) {
590
- item.tab.setIcon(newIcon);
591
- },
592
-
593
- /**
594
- * @private
595
- * Update the tab iconCls when panel iconCls has been set or changed.
596
- */
597
- onItemIconClsChange: function(item, newIconCls) {
598
- item.tab.setIconCls(newIconCls);
599
- },
600
-
601
- /**
602
- * @private
603
- * Update the tab title when panel title has been set or changed.
604
- */
605
- onItemTitleChange: function(item, newTitle) {
606
- item.tab.setText(newTitle);
607
- },
608
-
609
- /**
610
- * @private
611
- * Unlink the removed child item from its (@link Ext.tab.Tab Tab}.
612
- *
613
- * If we're removing the currently active tab, activate the nearest one. The item is removed when we call super,
614
- * so we can do preprocessing before then to find the card's index
615
- */
616
- doRemove: function(item, autoDestroy) {
617
- var me = this,
618
- toActivate;
619
-
620
- // Destroying, or removing the last item, nothing to activate
621
- if (me.destroying || me.items.getCount() == 1) {
622
- me.activeTab = null;
623
- }
624
-
625
- // Ask the TabBar which tab to activate next.
626
- // Set the active child panel using the index of that tab
627
- else if ((toActivate = me.tabBar.items.indexOf(me.tabBar.findNextActivatable(item.tab))) !== -1) {
628
- me.setActiveTab(toActivate);
629
- }
630
- this.callParent(arguments);
631
-
632
- // Remove the two references
633
- delete item.tab.card;
634
- delete item.tab;
635
- },
636
-
637
- /**
638
- * @private
639
- * Makes sure we remove the corresponding Tab when an item is removed
640
- */
641
- onRemove: function(item, destroying) {
642
- var me = this;
643
-
644
- item.un({
645
- scope : me,
646
- enable: me.onItemEnable,
647
- disable: me.onItemDisable,
648
- beforeshow: me.onItemBeforeShow
649
- });
650
- if (!me.destroying && item.tab.ownerCt === me.tabBar) {
651
- me.tabBar.remove(item.tab);
652
- }
653
- }
654
- });