lpmp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (636) hide show
  1. data/LICENSE +3 -0
  2. data/README +3 -0
  3. data/Rakefile +45 -0
  4. data/bin/lpmp +107 -0
  5. data/config/help.yaml +1 -0
  6. data/config/hosts.yaml +2 -0
  7. data/config/log.yaml +1 -0
  8. data/config/memcache.yaml +5 -0
  9. data/erb/index.erb +62 -0
  10. data/lib/bg_pull/caichen.rb +199 -0
  11. data/lib/bg_pull/lpmp.rb +45 -0
  12. data/lib/exception.rb +8 -0
  13. data/lib/lpmp.rb +53 -0
  14. data/lib/pull/lpmp.rb +355 -0
  15. data/lib/remote_lmp.rb +129 -0
  16. data/lib/utils.rb +14 -0
  17. data/lib/xq_push/caichen.rb +174 -0
  18. data/lib/xq_push/lpmp.rb +96 -0
  19. data/log/lpmp1st.log +1 -0
  20. data/public/css/ext-portal.css +40 -0
  21. data/public/css/lpmp.css +6 -0
  22. data/public/designer/caichen.epj +1 -0
  23. data/public/designer/hostmonitor.epj +1 -0
  24. data/public/ext-3.0.0/INCLUDE_ORDER.txt +35 -0
  25. data/public/ext-3.0.0/adapter/ext/ext-base-debug.js +3589 -0
  26. data/public/ext-3.0.0/adapter/ext/ext-base.js +7 -0
  27. data/public/ext-3.0.0/adapter/jquery/ext-jquery-adapter-debug.js +2292 -0
  28. data/public/ext-3.0.0/adapter/jquery/ext-jquery-adapter.js +7 -0
  29. data/public/ext-3.0.0/adapter/prototype/ext-prototype-adapter-debug.js +2346 -0
  30. data/public/ext-3.0.0/adapter/prototype/ext-prototype-adapter.js +7 -0
  31. data/public/ext-3.0.0/adapter/yui/ext-yui-adapter-debug.js +2136 -0
  32. data/public/ext-3.0.0/adapter/yui/ext-yui-adapter.js +7 -0
  33. data/public/ext-3.0.0/ext-all-debug.js +65610 -0
  34. data/public/ext-3.0.0/ext-all.js +11 -0
  35. data/public/ext-3.0.0/license.txt +42 -0
  36. data/public/ext-3.0.0/pkgs/cmp-foundation-debug.js +11287 -0
  37. data/public/ext-3.0.0/pkgs/cmp-foundation.js +7 -0
  38. data/public/ext-3.0.0/pkgs/data-foundation-debug.js +3853 -0
  39. data/public/ext-3.0.0/pkgs/data-foundation.js +7 -0
  40. data/public/ext-3.0.0/pkgs/data-grouping-debug.js +139 -0
  41. data/public/ext-3.0.0/pkgs/data-grouping.js +7 -0
  42. data/public/ext-3.0.0/pkgs/data-json-debug.js +582 -0
  43. data/public/ext-3.0.0/pkgs/data-json.js +7 -0
  44. data/public/ext-3.0.0/pkgs/data-list-views-debug.js +1278 -0
  45. data/public/ext-3.0.0/pkgs/data-list-views.js +7 -0
  46. data/public/ext-3.0.0/pkgs/data-xml-debug.js +234 -0
  47. data/public/ext-3.0.0/pkgs/data-xml.js +7 -0
  48. data/public/ext-3.0.0/pkgs/direct-debug.js +1121 -0
  49. data/public/ext-3.0.0/pkgs/direct.js +7 -0
  50. data/public/ext-3.0.0/pkgs/ext-dd-debug.js +4567 -0
  51. data/public/ext-3.0.0/pkgs/ext-dd.js +7 -0
  52. data/public/ext-3.0.0/pkgs/ext-foundation-debug.js +13417 -0
  53. data/public/ext-3.0.0/pkgs/ext-foundation.js +7 -0
  54. data/public/ext-3.0.0/pkgs/pkg-buttons-debug.js +1060 -0
  55. data/public/ext-3.0.0/pkgs/pkg-buttons.js +7 -0
  56. data/public/ext-3.0.0/pkgs/pkg-charts-debug.js +1621 -0
  57. data/public/ext-3.0.0/pkgs/pkg-charts.js +10 -0
  58. data/public/ext-3.0.0/pkgs/pkg-forms-debug.js +7661 -0
  59. data/public/ext-3.0.0/pkgs/pkg-forms.js +7 -0
  60. data/public/ext-3.0.0/pkgs/pkg-grid-editor-debug.js +560 -0
  61. data/public/ext-3.0.0/pkgs/pkg-grid-editor.js +7 -0
  62. data/public/ext-3.0.0/pkgs/pkg-grid-foundation-debug.js +4765 -0
  63. data/public/ext-3.0.0/pkgs/pkg-grid-foundation.js +7 -0
  64. data/public/ext-3.0.0/pkgs/pkg-grid-grouping-debug.js +517 -0
  65. data/public/ext-3.0.0/pkgs/pkg-grid-grouping.js +7 -0
  66. data/public/ext-3.0.0/pkgs/pkg-grid-property-debug.js +370 -0
  67. data/public/ext-3.0.0/pkgs/pkg-grid-property.js +7 -0
  68. data/public/ext-3.0.0/pkgs/pkg-history-debug.js +203 -0
  69. data/public/ext-3.0.0/pkgs/pkg-history.js +7 -0
  70. data/public/ext-3.0.0/pkgs/pkg-menu-debug.js +1628 -0
  71. data/public/ext-3.0.0/pkgs/pkg-menu.js +7 -0
  72. data/public/ext-3.0.0/pkgs/pkg-tabs-debug.js +1100 -0
  73. data/public/ext-3.0.0/pkgs/pkg-tabs.js +7 -0
  74. data/public/ext-3.0.0/pkgs/pkg-tips-debug.js +994 -0
  75. data/public/ext-3.0.0/pkgs/pkg-tips.js +7 -0
  76. data/public/ext-3.0.0/pkgs/pkg-toolbars-debug.js +1374 -0
  77. data/public/ext-3.0.0/pkgs/pkg-toolbars.js +7 -0
  78. data/public/ext-3.0.0/pkgs/pkg-tree-debug.js +4522 -0
  79. data/public/ext-3.0.0/pkgs/pkg-tree.js +7 -0
  80. data/public/ext-3.0.0/pkgs/resizable-debug.js +760 -0
  81. data/public/ext-3.0.0/pkgs/resizable.js +7 -0
  82. data/public/ext-3.0.0/pkgs/state-debug.js +274 -0
  83. data/public/ext-3.0.0/pkgs/state.js +7 -0
  84. data/public/ext-3.0.0/pkgs/window-debug.js +1888 -0
  85. data/public/ext-3.0.0/pkgs/window.js +7 -0
  86. data/public/ext-3.0.0/resources/charts.swf +0 -0
  87. data/public/ext-3.0.0/resources/css/README.txt +3 -0
  88. data/public/ext-3.0.0/resources/css/ext-all-notheme.css +5345 -0
  89. data/public/ext-3.0.0/resources/css/ext-all.css +6990 -0
  90. data/public/ext-3.0.0/resources/css/reset-min.css +7 -0
  91. data/public/ext-3.0.0/resources/css/structure/borders.css +54 -0
  92. data/public/ext-3.0.0/resources/css/structure/box.css +80 -0
  93. data/public/ext-3.0.0/resources/css/structure/button.css +440 -0
  94. data/public/ext-3.0.0/resources/css/structure/combo.css +45 -0
  95. data/public/ext-3.0.0/resources/css/structure/core.css +326 -0
  96. data/public/ext-3.0.0/resources/css/structure/date-picker.css +265 -0
  97. data/public/ext-3.0.0/resources/css/structure/dd.css +61 -0
  98. data/public/ext-3.0.0/resources/css/structure/debug.css +26 -0
  99. data/public/ext-3.0.0/resources/css/structure/dialog.css +62 -0
  100. data/public/ext-3.0.0/resources/css/structure/editor.css +92 -0
  101. data/public/ext-3.0.0/resources/css/structure/form.css +562 -0
  102. data/public/ext-3.0.0/resources/css/structure/grid.css +552 -0
  103. data/public/ext-3.0.0/resources/css/structure/layout.css +296 -0
  104. data/public/ext-3.0.0/resources/css/structure/list-view.css +85 -0
  105. data/public/ext-3.0.0/resources/css/structure/menu.css +205 -0
  106. data/public/ext-3.0.0/resources/css/structure/panel-reset.css +130 -0
  107. data/public/ext-3.0.0/resources/css/structure/panel.css +468 -0
  108. data/public/ext-3.0.0/resources/css/structure/progress.css +42 -0
  109. data/public/ext-3.0.0/resources/css/structure/qtips.css +153 -0
  110. data/public/ext-3.0.0/resources/css/structure/reset.css +7 -0
  111. data/public/ext-3.0.0/resources/css/structure/resizable.css +149 -0
  112. data/public/ext-3.0.0/resources/css/structure/slider.css +103 -0
  113. data/public/ext-3.0.0/resources/css/structure/tabs.css +372 -0
  114. data/public/ext-3.0.0/resources/css/structure/toolbar.css +259 -0
  115. data/public/ext-3.0.0/resources/css/structure/tree.css +203 -0
  116. data/public/ext-3.0.0/resources/css/structure/window.css +222 -0
  117. data/public/ext-3.0.0/resources/css/visual/borders.css +25 -0
  118. data/public/ext-3.0.0/resources/css/visual/box.css +74 -0
  119. data/public/ext-3.0.0/resources/css/visual/button.css +94 -0
  120. data/public/ext-3.0.0/resources/css/visual/combo.css +43 -0
  121. data/public/ext-3.0.0/resources/css/visual/core.css +76 -0
  122. data/public/ext-3.0.0/resources/css/visual/date-picker.css +143 -0
  123. data/public/ext-3.0.0/resources/css/visual/dd.css +29 -0
  124. data/public/ext-3.0.0/resources/css/visual/debug.css +24 -0
  125. data/public/ext-3.0.0/resources/css/visual/dialog.css +34 -0
  126. data/public/ext-3.0.0/resources/css/visual/editor.css +13 -0
  127. data/public/ext-3.0.0/resources/css/visual/form.css +117 -0
  128. data/public/ext-3.0.0/resources/css/visual/grid.css +272 -0
  129. data/public/ext-3.0.0/resources/css/visual/layout.css +53 -0
  130. data/public/ext-3.0.0/resources/css/visual/list-view.css +37 -0
  131. data/public/ext-3.0.0/resources/css/visual/menu.css +82 -0
  132. data/public/ext-3.0.0/resources/css/visual/panel.css +87 -0
  133. data/public/ext-3.0.0/resources/css/visual/progress.css +32 -0
  134. data/public/ext-3.0.0/resources/css/visual/qtips.css +44 -0
  135. data/public/ext-3.0.0/resources/css/visual/resizable.css +43 -0
  136. data/public/ext-3.0.0/resources/css/visual/slider.css +21 -0
  137. data/public/ext-3.0.0/resources/css/visual/tabs.css +119 -0
  138. data/public/ext-3.0.0/resources/css/visual/toolbar.css +103 -0
  139. data/public/ext-3.0.0/resources/css/visual/tree.css +157 -0
  140. data/public/ext-3.0.0/resources/css/visual/window.css +86 -0
  141. data/public/ext-3.0.0/resources/css/xtheme-blue.css +1652 -0
  142. data/public/ext-3.0.0/resources/expressinstall.swf +0 -0
  143. data/public/ext-3.0.0/resources/images/default/box/corners-blue.gif +0 -0
  144. data/public/ext-3.0.0/resources/images/default/box/corners.gif +0 -0
  145. data/public/ext-3.0.0/resources/images/default/box/l-blue.gif +0 -0
  146. data/public/ext-3.0.0/resources/images/default/box/l.gif +0 -0
  147. data/public/ext-3.0.0/resources/images/default/box/r-blue.gif +0 -0
  148. data/public/ext-3.0.0/resources/images/default/box/r.gif +0 -0
  149. data/public/ext-3.0.0/resources/images/default/box/tb-blue.gif +0 -0
  150. data/public/ext-3.0.0/resources/images/default/box/tb.gif +0 -0
  151. data/public/ext-3.0.0/resources/images/default/button/arrow.gif +0 -0
  152. data/public/ext-3.0.0/resources/images/default/button/btn.gif +0 -0
  153. data/public/ext-3.0.0/resources/images/default/button/group-cs.gif +0 -0
  154. data/public/ext-3.0.0/resources/images/default/button/group-lr.gif +0 -0
  155. data/public/ext-3.0.0/resources/images/default/button/group-tb.gif +0 -0
  156. data/public/ext-3.0.0/resources/images/default/button/s-arrow-b-noline.gif +0 -0
  157. data/public/ext-3.0.0/resources/images/default/button/s-arrow-b.gif +0 -0
  158. data/public/ext-3.0.0/resources/images/default/button/s-arrow-bo.gif +0 -0
  159. data/public/ext-3.0.0/resources/images/default/button/s-arrow-noline.gif +0 -0
  160. data/public/ext-3.0.0/resources/images/default/button/s-arrow-o.gif +0 -0
  161. data/public/ext-3.0.0/resources/images/default/button/s-arrow.gif +0 -0
  162. data/public/ext-3.0.0/resources/images/default/dd/drop-add.gif +0 -0
  163. data/public/ext-3.0.0/resources/images/default/dd/drop-no.gif +0 -0
  164. data/public/ext-3.0.0/resources/images/default/dd/drop-yes.gif +0 -0
  165. data/public/ext-3.0.0/resources/images/default/editor/tb-sprite.gif +0 -0
  166. data/public/ext-3.0.0/resources/images/default/form/checkbox.gif +0 -0
  167. data/public/ext-3.0.0/resources/images/default/form/clear-trigger.gif +0 -0
  168. data/public/ext-3.0.0/resources/images/default/form/clear-trigger.psd +0 -0
  169. data/public/ext-3.0.0/resources/images/default/form/date-trigger.gif +0 -0
  170. data/public/ext-3.0.0/resources/images/default/form/date-trigger.psd +0 -0
  171. data/public/ext-3.0.0/resources/images/default/form/error-tip-corners.gif +0 -0
  172. data/public/ext-3.0.0/resources/images/default/form/exclamation.gif +0 -0
  173. data/public/ext-3.0.0/resources/images/default/form/radio.gif +0 -0
  174. data/public/ext-3.0.0/resources/images/default/form/search-trigger.gif +0 -0
  175. data/public/ext-3.0.0/resources/images/default/form/search-trigger.psd +0 -0
  176. data/public/ext-3.0.0/resources/images/default/form/text-bg.gif +0 -0
  177. data/public/ext-3.0.0/resources/images/default/form/trigger-tpl.gif +0 -0
  178. data/public/ext-3.0.0/resources/images/default/form/trigger.gif +0 -0
  179. data/public/ext-3.0.0/resources/images/default/form/trigger.psd +0 -0
  180. data/public/ext-3.0.0/resources/images/default/gradient-bg.gif +0 -0
  181. data/public/ext-3.0.0/resources/images/default/grid/arrow-left-white.gif +0 -0
  182. data/public/ext-3.0.0/resources/images/default/grid/arrow-right-white.gif +0 -0
  183. data/public/ext-3.0.0/resources/images/default/grid/col-move-bottom.gif +0 -0
  184. data/public/ext-3.0.0/resources/images/default/grid/col-move-top.gif +0 -0
  185. data/public/ext-3.0.0/resources/images/default/grid/columns.gif +0 -0
  186. data/public/ext-3.0.0/resources/images/default/grid/dirty.gif +0 -0
  187. data/public/ext-3.0.0/resources/images/default/grid/done.gif +0 -0
  188. data/public/ext-3.0.0/resources/images/default/grid/drop-no.gif +0 -0
  189. data/public/ext-3.0.0/resources/images/default/grid/drop-yes.gif +0 -0
  190. data/public/ext-3.0.0/resources/images/default/grid/footer-bg.gif +0 -0
  191. data/public/ext-3.0.0/resources/images/default/grid/grid-blue-hd.gif +0 -0
  192. data/public/ext-3.0.0/resources/images/default/grid/grid-blue-split.gif +0 -0
  193. data/public/ext-3.0.0/resources/images/default/grid/grid-hrow.gif +0 -0
  194. data/public/ext-3.0.0/resources/images/default/grid/grid-loading.gif +0 -0
  195. data/public/ext-3.0.0/resources/images/default/grid/grid-split.gif +0 -0
  196. data/public/ext-3.0.0/resources/images/default/grid/grid-vista-hd.gif +0 -0
  197. data/public/ext-3.0.0/resources/images/default/grid/grid3-hd-btn.gif +0 -0
  198. data/public/ext-3.0.0/resources/images/default/grid/grid3-hrow-over.gif +0 -0
  199. data/public/ext-3.0.0/resources/images/default/grid/grid3-hrow.gif +0 -0
  200. data/public/ext-3.0.0/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
  201. data/public/ext-3.0.0/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
  202. data/public/ext-3.0.0/resources/images/default/grid/group-by.gif +0 -0
  203. data/public/ext-3.0.0/resources/images/default/grid/group-collapse.gif +0 -0
  204. data/public/ext-3.0.0/resources/images/default/grid/group-expand-sprite.gif +0 -0
  205. data/public/ext-3.0.0/resources/images/default/grid/group-expand.gif +0 -0
  206. data/public/ext-3.0.0/resources/images/default/grid/hd-pop.gif +0 -0
  207. data/public/ext-3.0.0/resources/images/default/grid/hmenu-asc.gif +0 -0
  208. data/public/ext-3.0.0/resources/images/default/grid/hmenu-desc.gif +0 -0
  209. data/public/ext-3.0.0/resources/images/default/grid/hmenu-lock.gif +0 -0
  210. data/public/ext-3.0.0/resources/images/default/grid/hmenu-lock.png +0 -0
  211. data/public/ext-3.0.0/resources/images/default/grid/hmenu-unlock.gif +0 -0
  212. data/public/ext-3.0.0/resources/images/default/grid/hmenu-unlock.png +0 -0
  213. data/public/ext-3.0.0/resources/images/default/grid/invalid_line.gif +0 -0
  214. data/public/ext-3.0.0/resources/images/default/grid/loading.gif +0 -0
  215. data/public/ext-3.0.0/resources/images/default/grid/mso-hd.gif +0 -0
  216. data/public/ext-3.0.0/resources/images/default/grid/nowait.gif +0 -0
  217. data/public/ext-3.0.0/resources/images/default/grid/page-first-disabled.gif +0 -0
  218. data/public/ext-3.0.0/resources/images/default/grid/page-first.gif +0 -0
  219. data/public/ext-3.0.0/resources/images/default/grid/page-last-disabled.gif +0 -0
  220. data/public/ext-3.0.0/resources/images/default/grid/page-last.gif +0 -0
  221. data/public/ext-3.0.0/resources/images/default/grid/page-next-disabled.gif +0 -0
  222. data/public/ext-3.0.0/resources/images/default/grid/page-next.gif +0 -0
  223. data/public/ext-3.0.0/resources/images/default/grid/page-prev-disabled.gif +0 -0
  224. data/public/ext-3.0.0/resources/images/default/grid/page-prev.gif +0 -0
  225. data/public/ext-3.0.0/resources/images/default/grid/pick-button.gif +0 -0
  226. data/public/ext-3.0.0/resources/images/default/grid/refresh.gif +0 -0
  227. data/public/ext-3.0.0/resources/images/default/grid/row-check-sprite.gif +0 -0
  228. data/public/ext-3.0.0/resources/images/default/grid/row-expand-sprite.gif +0 -0
  229. data/public/ext-3.0.0/resources/images/default/grid/row-over.gif +0 -0
  230. data/public/ext-3.0.0/resources/images/default/grid/row-sel.gif +0 -0
  231. data/public/ext-3.0.0/resources/images/default/grid/sort-hd.gif +0 -0
  232. data/public/ext-3.0.0/resources/images/default/grid/sort_asc.gif +0 -0
  233. data/public/ext-3.0.0/resources/images/default/grid/sort_desc.gif +0 -0
  234. data/public/ext-3.0.0/resources/images/default/grid/wait.gif +0 -0
  235. data/public/ext-3.0.0/resources/images/default/layout/collapse.gif +0 -0
  236. data/public/ext-3.0.0/resources/images/default/layout/expand.gif +0 -0
  237. data/public/ext-3.0.0/resources/images/default/layout/gradient-bg.gif +0 -0
  238. data/public/ext-3.0.0/resources/images/default/layout/mini-bottom.gif +0 -0
  239. data/public/ext-3.0.0/resources/images/default/layout/mini-left.gif +0 -0
  240. data/public/ext-3.0.0/resources/images/default/layout/mini-right.gif +0 -0
  241. data/public/ext-3.0.0/resources/images/default/layout/mini-top.gif +0 -0
  242. data/public/ext-3.0.0/resources/images/default/layout/ns-collapse.gif +0 -0
  243. data/public/ext-3.0.0/resources/images/default/layout/ns-expand.gif +0 -0
  244. data/public/ext-3.0.0/resources/images/default/layout/panel-close.gif +0 -0
  245. data/public/ext-3.0.0/resources/images/default/layout/panel-title-bg.gif +0 -0
  246. data/public/ext-3.0.0/resources/images/default/layout/panel-title-light-bg.gif +0 -0
  247. data/public/ext-3.0.0/resources/images/default/layout/stick.gif +0 -0
  248. data/public/ext-3.0.0/resources/images/default/layout/stuck.gif +0 -0
  249. data/public/ext-3.0.0/resources/images/default/layout/tab-close-on.gif +0 -0
  250. data/public/ext-3.0.0/resources/images/default/layout/tab-close.gif +0 -0
  251. data/public/ext-3.0.0/resources/images/default/menu/checked.gif +0 -0
  252. data/public/ext-3.0.0/resources/images/default/menu/group-checked.gif +0 -0
  253. data/public/ext-3.0.0/resources/images/default/menu/item-over.gif +0 -0
  254. data/public/ext-3.0.0/resources/images/default/menu/menu-parent.gif +0 -0
  255. data/public/ext-3.0.0/resources/images/default/menu/menu.gif +0 -0
  256. data/public/ext-3.0.0/resources/images/default/menu/unchecked.gif +0 -0
  257. data/public/ext-3.0.0/resources/images/default/panel/corners-sprite.gif +0 -0
  258. data/public/ext-3.0.0/resources/images/default/panel/left-right.gif +0 -0
  259. data/public/ext-3.0.0/resources/images/default/panel/light-hd.gif +0 -0
  260. data/public/ext-3.0.0/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
  261. data/public/ext-3.0.0/resources/images/default/panel/tool-sprites.gif +0 -0
  262. data/public/ext-3.0.0/resources/images/default/panel/tools-sprites-trans.gif +0 -0
  263. data/public/ext-3.0.0/resources/images/default/panel/top-bottom.gif +0 -0
  264. data/public/ext-3.0.0/resources/images/default/panel/top-bottom.png +0 -0
  265. data/public/ext-3.0.0/resources/images/default/panel/white-corners-sprite.gif +0 -0
  266. data/public/ext-3.0.0/resources/images/default/panel/white-left-right.gif +0 -0
  267. data/public/ext-3.0.0/resources/images/default/panel/white-top-bottom.gif +0 -0
  268. data/public/ext-3.0.0/resources/images/default/progress/progress-bg.gif +0 -0
  269. data/public/ext-3.0.0/resources/images/default/qtip/bg.gif +0 -0
  270. data/public/ext-3.0.0/resources/images/default/qtip/close.gif +0 -0
  271. data/public/ext-3.0.0/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
  272. data/public/ext-3.0.0/resources/images/default/qtip/tip-sprite.gif +0 -0
  273. data/public/ext-3.0.0/resources/images/default/s.gif +0 -0
  274. data/public/ext-3.0.0/resources/images/default/shadow-c.png +0 -0
  275. data/public/ext-3.0.0/resources/images/default/shadow-lr.png +0 -0
  276. data/public/ext-3.0.0/resources/images/default/shadow.png +0 -0
  277. data/public/ext-3.0.0/resources/images/default/shared/blue-loading.gif +0 -0
  278. data/public/ext-3.0.0/resources/images/default/shared/calendar.gif +0 -0
  279. data/public/ext-3.0.0/resources/images/default/shared/glass-bg.gif +0 -0
  280. data/public/ext-3.0.0/resources/images/default/shared/hd-sprite.gif +0 -0
  281. data/public/ext-3.0.0/resources/images/default/shared/large-loading.gif +0 -0
  282. data/public/ext-3.0.0/resources/images/default/shared/left-btn.gif +0 -0
  283. data/public/ext-3.0.0/resources/images/default/shared/loading-balls.gif +0 -0
  284. data/public/ext-3.0.0/resources/images/default/shared/right-btn.gif +0 -0
  285. data/public/ext-3.0.0/resources/images/default/shared/warning.gif +0 -0
  286. data/public/ext-3.0.0/resources/images/default/sizer/e-handle-dark.gif +0 -0
  287. data/public/ext-3.0.0/resources/images/default/sizer/e-handle.gif +0 -0
  288. data/public/ext-3.0.0/resources/images/default/sizer/ne-handle-dark.gif +0 -0
  289. data/public/ext-3.0.0/resources/images/default/sizer/ne-handle.gif +0 -0
  290. data/public/ext-3.0.0/resources/images/default/sizer/nw-handle-dark.gif +0 -0
  291. data/public/ext-3.0.0/resources/images/default/sizer/nw-handle.gif +0 -0
  292. data/public/ext-3.0.0/resources/images/default/sizer/s-handle-dark.gif +0 -0
  293. data/public/ext-3.0.0/resources/images/default/sizer/s-handle.gif +0 -0
  294. data/public/ext-3.0.0/resources/images/default/sizer/se-handle-dark.gif +0 -0
  295. data/public/ext-3.0.0/resources/images/default/sizer/se-handle.gif +0 -0
  296. data/public/ext-3.0.0/resources/images/default/sizer/square.gif +0 -0
  297. data/public/ext-3.0.0/resources/images/default/sizer/sw-handle-dark.gif +0 -0
  298. data/public/ext-3.0.0/resources/images/default/sizer/sw-handle.gif +0 -0
  299. data/public/ext-3.0.0/resources/images/default/slider/slider-bg.png +0 -0
  300. data/public/ext-3.0.0/resources/images/default/slider/slider-thumb.png +0 -0
  301. data/public/ext-3.0.0/resources/images/default/slider/slider-v-bg.png +0 -0
  302. data/public/ext-3.0.0/resources/images/default/slider/slider-v-thumb.png +0 -0
  303. data/public/ext-3.0.0/resources/images/default/tabs/scroll-left.gif +0 -0
  304. data/public/ext-3.0.0/resources/images/default/tabs/scroll-right.gif +0 -0
  305. data/public/ext-3.0.0/resources/images/default/tabs/scroller-bg.gif +0 -0
  306. data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
  307. data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
  308. data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
  309. data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
  310. data/public/ext-3.0.0/resources/images/default/tabs/tab-close.gif +0 -0
  311. data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-bg.gif +0 -0
  312. data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-bg.png +0 -0
  313. data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
  314. data/public/ext-3.0.0/resources/images/default/tabs/tabs-sprite.gif +0 -0
  315. data/public/ext-3.0.0/resources/images/default/toolbar/bg.gif +0 -0
  316. data/public/ext-3.0.0/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
  317. data/public/ext-3.0.0/resources/images/default/toolbar/btn-arrow.gif +0 -0
  318. data/public/ext-3.0.0/resources/images/default/toolbar/btn-over-bg.gif +0 -0
  319. data/public/ext-3.0.0/resources/images/default/toolbar/gray-bg.gif +0 -0
  320. data/public/ext-3.0.0/resources/images/default/toolbar/more.gif +0 -0
  321. data/public/ext-3.0.0/resources/images/default/toolbar/tb-bg.gif +0 -0
  322. data/public/ext-3.0.0/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
  323. data/public/ext-3.0.0/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
  324. data/public/ext-3.0.0/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
  325. data/public/ext-3.0.0/resources/images/default/tree/arrows.gif +0 -0
  326. data/public/ext-3.0.0/resources/images/default/tree/drop-add.gif +0 -0
  327. data/public/ext-3.0.0/resources/images/default/tree/drop-between.gif +0 -0
  328. data/public/ext-3.0.0/resources/images/default/tree/drop-no.gif +0 -0
  329. data/public/ext-3.0.0/resources/images/default/tree/drop-over.gif +0 -0
  330. data/public/ext-3.0.0/resources/images/default/tree/drop-under.gif +0 -0
  331. data/public/ext-3.0.0/resources/images/default/tree/drop-yes.gif +0 -0
  332. data/public/ext-3.0.0/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
  333. data/public/ext-3.0.0/resources/images/default/tree/elbow-end-minus.gif +0 -0
  334. data/public/ext-3.0.0/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
  335. data/public/ext-3.0.0/resources/images/default/tree/elbow-end-plus.gif +0 -0
  336. data/public/ext-3.0.0/resources/images/default/tree/elbow-end.gif +0 -0
  337. data/public/ext-3.0.0/resources/images/default/tree/elbow-line.gif +0 -0
  338. data/public/ext-3.0.0/resources/images/default/tree/elbow-minus-nl.gif +0 -0
  339. data/public/ext-3.0.0/resources/images/default/tree/elbow-minus.gif +0 -0
  340. data/public/ext-3.0.0/resources/images/default/tree/elbow-plus-nl.gif +0 -0
  341. data/public/ext-3.0.0/resources/images/default/tree/elbow-plus.gif +0 -0
  342. data/public/ext-3.0.0/resources/images/default/tree/elbow.gif +0 -0
  343. data/public/ext-3.0.0/resources/images/default/tree/folder-open.gif +0 -0
  344. data/public/ext-3.0.0/resources/images/default/tree/folder.gif +0 -0
  345. data/public/ext-3.0.0/resources/images/default/tree/leaf.gif +0 -0
  346. data/public/ext-3.0.0/resources/images/default/tree/loading.gif +0 -0
  347. data/public/ext-3.0.0/resources/images/default/tree/s.gif +0 -0
  348. data/public/ext-3.0.0/resources/images/default/window/icon-error.gif +0 -0
  349. data/public/ext-3.0.0/resources/images/default/window/icon-info.gif +0 -0
  350. data/public/ext-3.0.0/resources/images/default/window/icon-question.gif +0 -0
  351. data/public/ext-3.0.0/resources/images/default/window/icon-warning.gif +0 -0
  352. data/public/ext-3.0.0/resources/images/default/window/left-corners.png +0 -0
  353. data/public/ext-3.0.0/resources/images/default/window/left-corners.psd +0 -0
  354. data/public/ext-3.0.0/resources/images/default/window/left-right.png +0 -0
  355. data/public/ext-3.0.0/resources/images/default/window/left-right.psd +0 -0
  356. data/public/ext-3.0.0/resources/images/default/window/right-corners.png +0 -0
  357. data/public/ext-3.0.0/resources/images/default/window/right-corners.psd +0 -0
  358. data/public/ext-3.0.0/resources/images/default/window/top-bottom.png +0 -0
  359. data/public/ext-3.0.0/resources/images/default/window/top-bottom.psd +0 -0
  360. data/public/ext-3.0.0/resources/images/icon/chart.gif +0 -0
  361. data/public/ext-3.0.0/src/adapter/core/ext-base-ajax.js +371 -0
  362. data/public/ext-3.0.0/src/adapter/core/ext-base-anim-extra.js +301 -0
  363. data/public/ext-3.0.0/src/adapter/core/ext-base-anim.js +477 -0
  364. data/public/ext-3.0.0/src/adapter/core/ext-base-begin.js +18 -0
  365. data/public/ext-3.0.0/src/adapter/core/ext-base-dom.js +157 -0
  366. data/public/ext-3.0.0/src/adapter/core/ext-base-end.js +21 -0
  367. data/public/ext-3.0.0/src/adapter/core/ext-base-event.js +453 -0
  368. data/public/ext-3.0.0/src/adapter/core/ext-base-point.js +17 -0
  369. data/public/ext-3.0.0/src/adapter/core/ext-base-region.js +81 -0
  370. data/public/ext-3.0.0/src/adapter/ext-base-dom-more.js +9 -0
  371. data/public/ext-3.0.0/src/adapter/jquery-bridge.js +546 -0
  372. data/public/ext-3.0.0/src/adapter/prototype-bridge.js +600 -0
  373. data/public/ext-3.0.0/src/adapter/yui-bridge.js +390 -0
  374. data/public/ext-3.0.0/src/core/CompositeElement.js +136 -0
  375. data/public/ext-3.0.0/src/core/CompositeElementLite-more.js +102 -0
  376. data/public/ext-3.0.0/src/core/DomHelper-more.js +179 -0
  377. data/public/ext-3.0.0/src/core/Element-more.js +192 -0
  378. data/public/ext-3.0.0/src/core/Element.alignment.js +370 -0
  379. data/public/ext-3.0.0/src/core/Element.dd.js +46 -0
  380. data/public/ext-3.0.0/src/core/Element.fx-more.js +152 -0
  381. data/public/ext-3.0.0/src/core/Element.insertion-more.js +52 -0
  382. data/public/ext-3.0.0/src/core/Element.keys.js +48 -0
  383. data/public/ext-3.0.0/src/core/Element.legacy.js +42 -0
  384. data/public/ext-3.0.0/src/core/Element.position-more.js +165 -0
  385. data/public/ext-3.0.0/src/core/Element.scroll-more.js +110 -0
  386. data/public/ext-3.0.0/src/core/Element.style-more.js +318 -0
  387. data/public/ext-3.0.0/src/core/Error.js +81 -0
  388. data/public/ext-3.0.0/src/core/EventManager-more.js +334 -0
  389. data/public/ext-3.0.0/src/core/Ext-more.js +669 -0
  390. data/public/ext-3.0.0/src/core/Template-more.js +115 -0
  391. data/public/ext-3.0.0/src/core/core/CompositeElementLite.js +197 -0
  392. data/public/ext-3.0.0/src/core/core/DomHelper.js +378 -0
  393. data/public/ext-3.0.0/src/core/core/DomQuery.js +826 -0
  394. data/public/ext-3.0.0/src/core/core/Element.fx.js +324 -0
  395. data/public/ext-3.0.0/src/core/core/Element.insertion.js +147 -0
  396. data/public/ext-3.0.0/src/core/core/Element.js +945 -0
  397. data/public/ext-3.0.0/src/core/core/Element.position.js +303 -0
  398. data/public/ext-3.0.0/src/core/core/Element.scroll.js +58 -0
  399. data/public/ext-3.0.0/src/core/core/Element.style.js +439 -0
  400. data/public/ext-3.0.0/src/core/core/Element.traversal.js +176 -0
  401. data/public/ext-3.0.0/src/core/core/EventManager.js +623 -0
  402. data/public/ext-3.0.0/src/core/core/Ext.js +922 -0
  403. data/public/ext-3.0.0/src/core/core/Fx.js +1115 -0
  404. data/public/ext-3.0.0/src/core/core/Template.js +185 -0
  405. data/public/ext-3.0.0/src/data/Api.js +210 -0
  406. data/public/ext-3.0.0/src/data/ArrayReader.js +102 -0
  407. data/public/ext-3.0.0/src/data/ArrayStore.js +70 -0
  408. data/public/ext-3.0.0/src/data/DataField.js +249 -0
  409. data/public/ext-3.0.0/src/data/DataProxy.js +427 -0
  410. data/public/ext-3.0.0/src/data/DataReader.js +160 -0
  411. data/public/ext-3.0.0/src/data/DataWriter.js +201 -0
  412. data/public/ext-3.0.0/src/data/DirectProxy.js +141 -0
  413. data/public/ext-3.0.0/src/data/DirectStore.js +52 -0
  414. data/public/ext-3.0.0/src/data/GroupingStore.js +139 -0
  415. data/public/ext-3.0.0/src/data/HttpProxy.js +276 -0
  416. data/public/ext-3.0.0/src/data/JsonReader.js +311 -0
  417. data/public/ext-3.0.0/src/data/JsonStore.js +49 -0
  418. data/public/ext-3.0.0/src/data/JsonWriter.js +77 -0
  419. data/public/ext-3.0.0/src/data/MemoryProxy.js +69 -0
  420. data/public/ext-3.0.0/src/data/Record.js +400 -0
  421. data/public/ext-3.0.0/src/data/ScriptTagProxy.js +279 -0
  422. data/public/ext-3.0.0/src/data/SortTypes.js +91 -0
  423. data/public/ext-3.0.0/src/data/Store.js +1492 -0
  424. data/public/ext-3.0.0/src/data/StoreMgr.js +72 -0
  425. data/public/ext-3.0.0/src/data/Tree.js +785 -0
  426. data/public/ext-3.0.0/src/data/XmlReader.js +128 -0
  427. data/public/ext-3.0.0/src/data/XmlStore.js +75 -0
  428. data/public/ext-3.0.0/src/data/XmlWriter.js +45 -0
  429. data/public/ext-3.0.0/src/data/core/Connection.js +575 -0
  430. data/public/ext-3.0.0/src/dd/DDCore.js +2992 -0
  431. data/public/ext-3.0.0/src/dd/DragSource.js +365 -0
  432. data/public/ext-3.0.0/src/dd/DragTracker.js +217 -0
  433. data/public/ext-3.0.0/src/dd/DragZone.js +133 -0
  434. data/public/ext-3.0.0/src/dd/DropTarget.js +115 -0
  435. data/public/ext-3.0.0/src/dd/DropZone.js +262 -0
  436. data/public/ext-3.0.0/src/dd/Registry.js +127 -0
  437. data/public/ext-3.0.0/src/dd/ScrollManager.js +201 -0
  438. data/public/ext-3.0.0/src/dd/StatusProxy.js +171 -0
  439. data/public/ext-3.0.0/src/debug.js +906 -0
  440. data/public/ext-3.0.0/src/direct/Direct.js +235 -0
  441. data/public/ext-3.0.0/src/direct/Event.js +34 -0
  442. data/public/ext-3.0.0/src/direct/JsonProvider.js +45 -0
  443. data/public/ext-3.0.0/src/direct/PollingProvider.js +151 -0
  444. data/public/ext-3.0.0/src/direct/Provider.js +110 -0
  445. data/public/ext-3.0.0/src/direct/RemotingProvider.js +373 -0
  446. data/public/ext-3.0.0/src/direct/Transaction.js +32 -0
  447. data/public/ext-3.0.0/src/locale/ext-lang-af.js +184 -0
  448. data/public/ext-3.0.0/src/locale/ext-lang-bg.js +278 -0
  449. data/public/ext-3.0.0/src/locale/ext-lang-ca.js +315 -0
  450. data/public/ext-3.0.0/src/locale/ext-lang-cs.js +293 -0
  451. data/public/ext-3.0.0/src/locale/ext-lang-da.js +296 -0
  452. data/public/ext-3.0.0/src/locale/ext-lang-de.js +326 -0
  453. data/public/ext-3.0.0/src/locale/ext-lang-el_GR.js +309 -0
  454. data/public/ext-3.0.0/src/locale/ext-lang-en.js +335 -0
  455. data/public/ext-3.0.0/src/locale/ext-lang-en_GB.js +315 -0
  456. data/public/ext-3.0.0/src/locale/ext-lang-es.js +318 -0
  457. data/public/ext-3.0.0/src/locale/ext-lang-fa.js +272 -0
  458. data/public/ext-3.0.0/src/locale/ext-lang-fi.js +302 -0
  459. data/public/ext-3.0.0/src/locale/ext-lang-fr.js +335 -0
  460. data/public/ext-3.0.0/src/locale/ext-lang-fr_CA.js +218 -0
  461. data/public/ext-3.0.0/src/locale/ext-lang-gr.js +175 -0
  462. data/public/ext-3.0.0/src/locale/ext-lang-he.js +292 -0
  463. data/public/ext-3.0.0/src/locale/ext-lang-hr.js +295 -0
  464. data/public/ext-3.0.0/src/locale/ext-lang-hu.js +296 -0
  465. data/public/ext-3.0.0/src/locale/ext-lang-id.js +302 -0
  466. data/public/ext-3.0.0/src/locale/ext-lang-it.js +295 -0
  467. data/public/ext-3.0.0/src/locale/ext-lang-ja.js +318 -0
  468. data/public/ext-3.0.0/src/locale/ext-lang-ko.js +267 -0
  469. data/public/ext-3.0.0/src/locale/ext-lang-lt.js +333 -0
  470. data/public/ext-3.0.0/src/locale/ext-lang-lv.js +176 -0
  471. data/public/ext-3.0.0/src/locale/ext-lang-mk.js +176 -0
  472. data/public/ext-3.0.0/src/locale/ext-lang-nl.js +323 -0
  473. data/public/ext-3.0.0/src/locale/ext-lang-no_NB.js +294 -0
  474. data/public/ext-3.0.0/src/locale/ext-lang-no_NN.js +294 -0
  475. data/public/ext-3.0.0/src/locale/ext-lang-pl.js +304 -0
  476. data/public/ext-3.0.0/src/locale/ext-lang-pt.js +260 -0
  477. data/public/ext-3.0.0/src/locale/ext-lang-pt_BR.js +302 -0
  478. data/public/ext-3.0.0/src/locale/ext-lang-pt_PT.js +298 -0
  479. data/public/ext-3.0.0/src/locale/ext-lang-ro.js +295 -0
  480. data/public/ext-3.0.0/src/locale/ext-lang-ru.js +319 -0
  481. data/public/ext-3.0.0/src/locale/ext-lang-sk.js +182 -0
  482. data/public/ext-3.0.0/src/locale/ext-lang-sl.js +176 -0
  483. data/public/ext-3.0.0/src/locale/ext-lang-sr.js +179 -0
  484. data/public/ext-3.0.0/src/locale/ext-lang-sr_RS.js +178 -0
  485. data/public/ext-3.0.0/src/locale/ext-lang-sv_SE.js +178 -0
  486. data/public/ext-3.0.0/src/locale/ext-lang-th.js +294 -0
  487. data/public/ext-3.0.0/src/locale/ext-lang-tr.js +306 -0
  488. data/public/ext-3.0.0/src/locale/ext-lang-ukr.js +258 -0
  489. data/public/ext-3.0.0/src/locale/ext-lang-vn.js +181 -0
  490. data/public/ext-3.0.0/src/locale/ext-lang-zh_CN.js +174 -0
  491. data/public/ext-3.0.0/src/locale/ext-lang-zh_TW.js +178 -0
  492. data/public/ext-3.0.0/src/state/CookieProvider.js +91 -0
  493. data/public/ext-3.0.0/src/state/Provider.js +127 -0
  494. data/public/ext-3.0.0/src/state/StateManager.js +69 -0
  495. data/public/ext-3.0.0/src/util/CSS.js +161 -0
  496. data/public/ext-3.0.0/src/util/ClickRepeater.js +200 -0
  497. data/public/ext-3.0.0/src/util/Cookies.js +96 -0
  498. data/public/ext-3.0.0/src/util/Date.js +1317 -0
  499. data/public/ext-3.0.0/src/util/Format.js +356 -0
  500. data/public/ext-3.0.0/src/util/History.js +203 -0
  501. data/public/ext-3.0.0/src/util/KeyMap.js +242 -0
  502. data/public/ext-3.0.0/src/util/KeyNav.js +161 -0
  503. data/public/ext-3.0.0/src/util/MixedCollection.js +576 -0
  504. data/public/ext-3.0.0/src/util/Observable-more.js +178 -0
  505. data/public/ext-3.0.0/src/util/TextMetrics.js +131 -0
  506. data/public/ext-3.0.0/src/util/UpdateManager.js +536 -0
  507. data/public/ext-3.0.0/src/util/XTemplate.js +379 -0
  508. data/public/ext-3.0.0/src/util/core/DelayedTask.js +68 -0
  509. data/public/ext-3.0.0/src/util/core/JSON.js +174 -0
  510. data/public/ext-3.0.0/src/util/core/Observable.js +483 -0
  511. data/public/ext-3.0.0/src/util/core/TaskMgr.js +174 -0
  512. data/public/ext-3.0.0/src/widgets/Action.js +252 -0
  513. data/public/ext-3.0.0/src/widgets/BoxComponent.js +519 -0
  514. data/public/ext-3.0.0/src/widgets/Button.js +762 -0
  515. data/public/ext-3.0.0/src/widgets/ButtonGroup.js +103 -0
  516. data/public/ext-3.0.0/src/widgets/ColorPalette.js +148 -0
  517. data/public/ext-3.0.0/src/widgets/Component.js +1540 -0
  518. data/public/ext-3.0.0/src/widgets/ComponentMgr.js +159 -0
  519. data/public/ext-3.0.0/src/widgets/Container.js +894 -0
  520. data/public/ext-3.0.0/src/widgets/CycleButton.js +188 -0
  521. data/public/ext-3.0.0/src/widgets/DataView.js +749 -0
  522. data/public/ext-3.0.0/src/widgets/DatePicker.js +771 -0
  523. data/public/ext-3.0.0/src/widgets/Editor.js +385 -0
  524. data/public/ext-3.0.0/src/widgets/Layer.js +466 -0
  525. data/public/ext-3.0.0/src/widgets/LoadMask.js +123 -0
  526. data/public/ext-3.0.0/src/widgets/MessageBox.js +626 -0
  527. data/public/ext-3.0.0/src/widgets/PagingToolbar.js +502 -0
  528. data/public/ext-3.0.0/src/widgets/Panel.js +1772 -0
  529. data/public/ext-3.0.0/src/widgets/PanelDD.js +154 -0
  530. data/public/ext-3.0.0/src/widgets/ProgressBar.js +289 -0
  531. data/public/ext-3.0.0/src/widgets/Resizable.js +760 -0
  532. data/public/ext-3.0.0/src/widgets/Shadow.js +192 -0
  533. data/public/ext-3.0.0/src/widgets/Slider.js +426 -0
  534. data/public/ext-3.0.0/src/widgets/SplitBar.js +436 -0
  535. data/public/ext-3.0.0/src/widgets/SplitButton.js +124 -0
  536. data/public/ext-3.0.0/src/widgets/TabPanel.js +1100 -0
  537. data/public/ext-3.0.0/src/widgets/Toolbar.js +781 -0
  538. data/public/ext-3.0.0/src/widgets/Viewport.js +124 -0
  539. data/public/ext-3.0.0/src/widgets/Window.js +941 -0
  540. data/public/ext-3.0.0/src/widgets/WindowManager.js +187 -0
  541. data/public/ext-3.0.0/src/widgets/chart/Chart.js +721 -0
  542. data/public/ext-3.0.0/src/widgets/chart/EventProxy.js +20 -0
  543. data/public/ext-3.0.0/src/widgets/chart/FlashComponent.js +117 -0
  544. data/public/ext-3.0.0/src/widgets/chart/swfobject.js +783 -0
  545. data/public/ext-3.0.0/src/widgets/form/Action.js +626 -0
  546. data/public/ext-3.0.0/src/widgets/form/BasicForm.js +735 -0
  547. data/public/ext-3.0.0/src/widgets/form/Checkbox.js +177 -0
  548. data/public/ext-3.0.0/src/widgets/form/CheckboxGroup.js +419 -0
  549. data/public/ext-3.0.0/src/widgets/form/Combo.js +1232 -0
  550. data/public/ext-3.0.0/src/widgets/form/DateField.js +389 -0
  551. data/public/ext-3.0.0/src/widgets/form/DisplayField.js +98 -0
  552. data/public/ext-3.0.0/src/widgets/form/Field.js +640 -0
  553. data/public/ext-3.0.0/src/widgets/form/FieldSet.js +305 -0
  554. data/public/ext-3.0.0/src/widgets/form/Form.js +335 -0
  555. data/public/ext-3.0.0/src/widgets/form/Hidden.js +39 -0
  556. data/public/ext-3.0.0/src/widgets/form/HtmlEditor.js +1179 -0
  557. data/public/ext-3.0.0/src/widgets/form/Label.js +64 -0
  558. data/public/ext-3.0.0/src/widgets/form/NumberField.js +139 -0
  559. data/public/ext-3.0.0/src/widgets/form/Radio.js +81 -0
  560. data/public/ext-3.0.0/src/widgets/form/RadioGroup.js +116 -0
  561. data/public/ext-3.0.0/src/widgets/form/TextArea.js +117 -0
  562. data/public/ext-3.0.0/src/widgets/form/TextField.js +491 -0
  563. data/public/ext-3.0.0/src/widgets/form/TimeField.js +146 -0
  564. data/public/ext-3.0.0/src/widgets/form/TriggerField.js +328 -0
  565. data/public/ext-3.0.0/src/widgets/form/VTypes.js +135 -0
  566. data/public/ext-3.0.0/src/widgets/grid/AbstractSelectionModel.js +57 -0
  567. data/public/ext-3.0.0/src/widgets/grid/CellSelectionModel.js +262 -0
  568. data/public/ext-3.0.0/src/widgets/grid/CheckboxSelectionModel.js +103 -0
  569. data/public/ext-3.0.0/src/widgets/grid/Column.js +406 -0
  570. data/public/ext-3.0.0/src/widgets/grid/ColumnDD.js +199 -0
  571. data/public/ext-3.0.0/src/widgets/grid/ColumnModel.js +592 -0
  572. data/public/ext-3.0.0/src/widgets/grid/ColumnSplitDD.js +62 -0
  573. data/public/ext-3.0.0/src/widgets/grid/EditorGrid.js +291 -0
  574. data/public/ext-3.0.0/src/widgets/grid/GridDD.js +95 -0
  575. data/public/ext-3.0.0/src/widgets/grid/GridEditor.js +21 -0
  576. data/public/ext-3.0.0/src/widgets/grid/GridPanel.js +952 -0
  577. data/public/ext-3.0.0/src/widgets/grid/GridView.js +1776 -0
  578. data/public/ext-3.0.0/src/widgets/grid/GroupingView.js +517 -0
  579. data/public/ext-3.0.0/src/widgets/grid/PropertyGrid.js +370 -0
  580. data/public/ext-3.0.0/src/widgets/grid/RowNumberer.js +61 -0
  581. data/public/ext-3.0.0/src/widgets/grid/RowSelectionModel.js +530 -0
  582. data/public/ext-3.0.0/src/widgets/layout/AbsoluteLayout.js +82 -0
  583. data/public/ext-3.0.0/src/widgets/layout/AccordionLayout.js +177 -0
  584. data/public/ext-3.0.0/src/widgets/layout/AnchorLayout.js +200 -0
  585. data/public/ext-3.0.0/src/widgets/layout/BorderLayout.js +1108 -0
  586. data/public/ext-3.0.0/src/widgets/layout/BoxLayout.js +417 -0
  587. data/public/ext-3.0.0/src/widgets/layout/CardLayout.js +127 -0
  588. data/public/ext-3.0.0/src/widgets/layout/ColumnLayout.js +130 -0
  589. data/public/ext-3.0.0/src/widgets/layout/ContainerLayout.js +215 -0
  590. data/public/ext-3.0.0/src/widgets/layout/FitLayout.js +48 -0
  591. data/public/ext-3.0.0/src/widgets/layout/FormLayout.js +266 -0
  592. data/public/ext-3.0.0/src/widgets/layout/TableLayout.js +194 -0
  593. data/public/ext-3.0.0/src/widgets/list/ColumnResizer.js +123 -0
  594. data/public/ext-3.0.0/src/widgets/list/ListView.js +357 -0
  595. data/public/ext-3.0.0/src/widgets/list/Sorter.js +70 -0
  596. data/public/ext-3.0.0/src/widgets/menu/BaseItem.js +160 -0
  597. data/public/ext-3.0.0/src/widgets/menu/CheckItem.js +114 -0
  598. data/public/ext-3.0.0/src/widgets/menu/ColorMenu.js +72 -0
  599. data/public/ext-3.0.0/src/widgets/menu/DateMenu.js +90 -0
  600. data/public/ext-3.0.0/src/widgets/menu/Item.js +211 -0
  601. data/public/ext-3.0.0/src/widgets/menu/Menu.js +733 -0
  602. data/public/ext-3.0.0/src/widgets/menu/MenuMgr.js +211 -0
  603. data/public/ext-3.0.0/src/widgets/menu/Separator.js +46 -0
  604. data/public/ext-3.0.0/src/widgets/menu/TextItem.js +46 -0
  605. data/public/ext-3.0.0/src/widgets/tips/QuickTip.js +207 -0
  606. data/public/ext-3.0.0/src/widgets/tips/QuickTips.js +159 -0
  607. data/public/ext-3.0.0/src/widgets/tips/Tip.js +157 -0
  608. data/public/ext-3.0.0/src/widgets/tips/ToolTip.js +492 -0
  609. data/public/ext-3.0.0/src/widgets/tree/AsyncTreeNode.js +114 -0
  610. data/public/ext-3.0.0/src/widgets/tree/TreeDragZone.js +82 -0
  611. data/public/ext-3.0.0/src/widgets/tree/TreeDropZone.js +321 -0
  612. data/public/ext-3.0.0/src/widgets/tree/TreeEditor.js +160 -0
  613. data/public/ext-3.0.0/src/widgets/tree/TreeEventModel.js +169 -0
  614. data/public/ext-3.0.0/src/widgets/tree/TreeFilter.js +114 -0
  615. data/public/ext-3.0.0/src/widgets/tree/TreeLoader.js +342 -0
  616. data/public/ext-3.0.0/src/widgets/tree/TreeNode.js +546 -0
  617. data/public/ext-3.0.0/src/widgets/tree/TreeNodeUI.js +633 -0
  618. data/public/ext-3.0.0/src/widgets/tree/TreePanel.js +918 -0
  619. data/public/ext-3.0.0/src/widgets/tree/TreeSelectionModel.js +315 -0
  620. data/public/ext-3.0.0/src/widgets/tree/TreeSorter.js +106 -0
  621. data/public/js/ext-portal.js +235 -0
  622. data/public/js/global.js +7 -0
  623. data/public/js/outerframe.js +47 -0
  624. data/public/js/portal.js +713 -0
  625. data/public/js/test_chart.js +152 -0
  626. data/test/config.rb +62 -0
  627. data/test/config/hosts.yaml +5 -0
  628. data/test/config/log.yaml +1 -0
  629. data/test/config/memcache.yaml +5 -0
  630. data/test/exception.rb +39 -0
  631. data/test/method_missing.rb +14 -0
  632. data/test/module.rb +39 -0
  633. data/test/remote_lmp.rb +126 -0
  634. data/test/sinatra.rb +29 -0
  635. data/test/sinatra_base.rb +16 -0
  636. metadata +690 -0
@@ -0,0 +1,154 @@
1
+ /*!
2
+ * Ext JS Library 3.0.0
3
+ * Copyright(c) 2006-2009 Ext JS, LLC
4
+ * licensing@extjs.com
5
+ * http://www.extjs.com/license
6
+ */
7
+ /**
8
+ * @class Ext.dd.PanelProxy
9
+ * A custom drag proxy implementation specific to {@link Ext.Panel}s. This class is primarily used internally
10
+ * for the Panel's drag drop implementation, and should never need to be created directly.
11
+ * @constructor
12
+ * @param panel The {@link Ext.Panel} to proxy for
13
+ * @param config Configuration options
14
+ */
15
+ Ext.dd.PanelProxy = function(panel, config){
16
+ this.panel = panel;
17
+ this.id = this.panel.id +'-ddproxy';
18
+ Ext.apply(this, config);
19
+ };
20
+
21
+ Ext.dd.PanelProxy.prototype = {
22
+ /**
23
+ * @cfg {Boolean} insertProxy True to insert a placeholder proxy element while dragging the panel,
24
+ * false to drag with no proxy (defaults to true).
25
+ */
26
+ insertProxy : true,
27
+
28
+ // private overrides
29
+ setStatus : Ext.emptyFn,
30
+ reset : Ext.emptyFn,
31
+ update : Ext.emptyFn,
32
+ stop : Ext.emptyFn,
33
+ sync: Ext.emptyFn,
34
+
35
+ /**
36
+ * Gets the proxy's element
37
+ * @return {Element} The proxy's element
38
+ */
39
+ getEl : function(){
40
+ return this.ghost;
41
+ },
42
+
43
+ /**
44
+ * Gets the proxy's ghost element
45
+ * @return {Element} The proxy's ghost element
46
+ */
47
+ getGhost : function(){
48
+ return this.ghost;
49
+ },
50
+
51
+ /**
52
+ * Gets the proxy's element
53
+ * @return {Element} The proxy's element
54
+ */
55
+ getProxy : function(){
56
+ return this.proxy;
57
+ },
58
+
59
+ /**
60
+ * Hides the proxy
61
+ */
62
+ hide : function(){
63
+ if(this.ghost){
64
+ if(this.proxy){
65
+ this.proxy.remove();
66
+ delete this.proxy;
67
+ }
68
+ this.panel.el.dom.style.display = '';
69
+ this.ghost.remove();
70
+ delete this.ghost;
71
+ }
72
+ },
73
+
74
+ /**
75
+ * Shows the proxy
76
+ */
77
+ show : function(){
78
+ if(!this.ghost){
79
+ this.ghost = this.panel.createGhost(undefined, undefined, Ext.getBody());
80
+ this.ghost.setXY(this.panel.el.getXY())
81
+ if(this.insertProxy){
82
+ this.proxy = this.panel.el.insertSibling({cls:'x-panel-dd-spacer'});
83
+ this.proxy.setSize(this.panel.getSize());
84
+ }
85
+ this.panel.el.dom.style.display = 'none';
86
+ }
87
+ },
88
+
89
+ // private
90
+ repair : function(xy, callback, scope){
91
+ this.hide();
92
+ if(typeof callback == "function"){
93
+ callback.call(scope || this);
94
+ }
95
+ },
96
+
97
+ /**
98
+ * Moves the proxy to a different position in the DOM. This is typically called while dragging the Panel
99
+ * to keep the proxy sync'd to the Panel's location.
100
+ * @param {HTMLElement} parentNode The proxy's parent DOM node
101
+ * @param {HTMLElement} before (optional) The sibling node before which the proxy should be inserted (defaults
102
+ * to the parent's last child if not specified)
103
+ */
104
+ moveProxy : function(parentNode, before){
105
+ if(this.proxy){
106
+ parentNode.insertBefore(this.proxy.dom, before);
107
+ }
108
+ }
109
+ };
110
+
111
+ // private - DD implementation for Panels
112
+ Ext.Panel.DD = function(panel, cfg){
113
+ this.panel = panel;
114
+ this.dragData = {panel: panel};
115
+ this.proxy = new Ext.dd.PanelProxy(panel, cfg);
116
+ Ext.Panel.DD.superclass.constructor.call(this, panel.el, cfg);
117
+ var h = panel.header;
118
+ if(h){
119
+ this.setHandleElId(h.id);
120
+ }
121
+ (h ? h : this.panel.body).setStyle('cursor', 'move');
122
+ this.scroll = false;
123
+ };
124
+
125
+ Ext.extend(Ext.Panel.DD, Ext.dd.DragSource, {
126
+ showFrame: Ext.emptyFn,
127
+ startDrag: Ext.emptyFn,
128
+ b4StartDrag: function(x, y) {
129
+ this.proxy.show();
130
+ },
131
+ b4MouseDown: function(e) {
132
+ var x = e.getPageX();
133
+ var y = e.getPageY();
134
+ this.autoOffset(x, y);
135
+ },
136
+ onInitDrag : function(x, y){
137
+ this.onStartDrag(x, y);
138
+ return true;
139
+ },
140
+ createFrame : Ext.emptyFn,
141
+ getDragEl : function(e){
142
+ return this.proxy.ghost.dom;
143
+ },
144
+ endDrag : function(e){
145
+ this.proxy.hide();
146
+ this.panel.saveState();
147
+ },
148
+
149
+ autoOffset : function(x, y) {
150
+ x -= this.startPageX;
151
+ y -= this.startPageY;
152
+ this.setDelta(x, y);
153
+ }
154
+ });
@@ -0,0 +1,289 @@
1
+ /*!
2
+ * Ext JS Library 3.0.0
3
+ * Copyright(c) 2006-2009 Ext JS, LLC
4
+ * licensing@extjs.com
5
+ * http://www.extjs.com/license
6
+ */
7
+ /**
8
+ * @class Ext.ProgressBar
9
+ * @extends Ext.BoxComponent
10
+ * <p>An updateable progress bar component. The progress bar supports two different modes: manual and automatic.</p>
11
+ * <p>In manual mode, you are responsible for showing, updating (via {@link #updateProgress}) and clearing the
12
+ * progress bar as needed from your own code. This method is most appropriate when you want to show progress
13
+ * throughout an operation that has predictable points of interest at which you can update the control.</p>
14
+ * <p>In automatic mode, you simply call {@link #wait} and let the progress bar run indefinitely, only clearing it
15
+ * once the operation is complete. You can optionally have the progress bar wait for a specific amount of time
16
+ * and then clear itself. Automatic mode is most appropriate for timed operations or asynchronous operations in
17
+ * which you have no need for indicating intermediate progress.</p>
18
+ * @cfg {Float} value A floating point value between 0 and 1 (e.g., .5, defaults to 0)
19
+ * @cfg {String} text The progress bar text (defaults to '')
20
+ * @cfg {Mixed} textEl The element to render the progress text to (defaults to the progress
21
+ * bar's internal text element)
22
+ * @cfg {String} id The progress bar element's id (defaults to an auto-generated id)
23
+ * @xtype progress
24
+ */
25
+ Ext.ProgressBar = Ext.extend(Ext.BoxComponent, {
26
+ /**
27
+ * @cfg {String} baseCls
28
+ * The base CSS class to apply to the progress bar's wrapper element (defaults to 'x-progress')
29
+ */
30
+ baseCls : 'x-progress',
31
+
32
+ /**
33
+ * @cfg {Boolean} animate
34
+ * True to animate the progress bar during transitions (defaults to false)
35
+ */
36
+ animate : false,
37
+
38
+ // private
39
+ waitTimer : null,
40
+
41
+ // private
42
+ initComponent : function(){
43
+ Ext.ProgressBar.superclass.initComponent.call(this);
44
+ this.addEvents(
45
+ /**
46
+ * @event update
47
+ * Fires after each update interval
48
+ * @param {Ext.ProgressBar} this
49
+ * @param {Number} The current progress value
50
+ * @param {String} The current progress text
51
+ */
52
+ "update"
53
+ );
54
+ },
55
+
56
+ // private
57
+ onRender : function(ct, position){
58
+ var tpl = new Ext.Template(
59
+ '<div class="{cls}-wrap">',
60
+ '<div class="{cls}-inner">',
61
+ '<div class="{cls}-bar">',
62
+ '<div class="{cls}-text">',
63
+ '<div>&#160;</div>',
64
+ '</div>',
65
+ '</div>',
66
+ '<div class="{cls}-text {cls}-text-back">',
67
+ '<div>&#160;</div>',
68
+ '</div>',
69
+ '</div>',
70
+ '</div>'
71
+ );
72
+
73
+ this.el = position ? tpl.insertBefore(position, {cls: this.baseCls}, true)
74
+ : tpl.append(ct, {cls: this.baseCls}, true);
75
+
76
+ if(this.id){
77
+ this.el.dom.id = this.id;
78
+ }
79
+ var inner = this.el.dom.firstChild;
80
+ this.progressBar = Ext.get(inner.firstChild);
81
+
82
+ if(this.textEl){
83
+ //use an external text el
84
+ this.textEl = Ext.get(this.textEl);
85
+ delete this.textTopEl;
86
+ }else{
87
+ //setup our internal layered text els
88
+ this.textTopEl = Ext.get(this.progressBar.dom.firstChild);
89
+ var textBackEl = Ext.get(inner.childNodes[1]);
90
+ this.textTopEl.setStyle("z-index", 99).addClass('x-hidden');
91
+ this.textEl = new Ext.CompositeElement([this.textTopEl.dom.firstChild, textBackEl.dom.firstChild]);
92
+ this.textEl.setWidth(inner.offsetWidth);
93
+ }
94
+ this.progressBar.setHeight(inner.offsetHeight);
95
+ },
96
+
97
+ // private
98
+ afterRender : function(){
99
+ Ext.ProgressBar.superclass.afterRender.call(this);
100
+ if(this.value){
101
+ this.updateProgress(this.value, this.text);
102
+ }else{
103
+ this.updateText(this.text);
104
+ }
105
+ },
106
+
107
+ /**
108
+ * Updates the progress bar value, and optionally its text. If the text argument is not specified,
109
+ * any existing text value will be unchanged. To blank out existing text, pass ''. Note that even
110
+ * if the progress bar value exceeds 1, it will never automatically reset -- you are responsible for
111
+ * determining when the progress is complete and calling {@link #reset} to clear and/or hide the control.
112
+ * @param {Float} value (optional) A floating point value between 0 and 1 (e.g., .5, defaults to 0)
113
+ * @param {String} text (optional) The string to display in the progress text element (defaults to '')
114
+ * @param {Boolean} animate (optional) Whether to animate the transition of the progress bar. If this value is
115
+ * not specified, the default for the class is used (default to false)
116
+ * @return {Ext.ProgressBar} this
117
+ */
118
+ updateProgress : function(value, text, animate){
119
+ this.value = value || 0;
120
+ if(text){
121
+ this.updateText(text);
122
+ }
123
+ if(this.rendered){
124
+ var w = Math.floor(value*this.el.dom.firstChild.offsetWidth);
125
+ this.progressBar.setWidth(w, animate === true || (animate !== false && this.animate));
126
+ if(this.textTopEl){
127
+ //textTopEl should be the same width as the bar so overflow will clip as the bar moves
128
+ this.textTopEl.removeClass('x-hidden').setWidth(w);
129
+ }
130
+ }
131
+ this.fireEvent('update', this, value, text);
132
+ return this;
133
+ },
134
+
135
+ /**
136
+ * Initiates an auto-updating progress bar. A duration can be specified, in which case the progress
137
+ * bar will automatically reset after a fixed amount of time and optionally call a callback function
138
+ * if specified. If no duration is passed in, then the progress bar will run indefinitely and must
139
+ * be manually cleared by calling {@link #reset}. The wait method accepts a config object with
140
+ * the following properties:
141
+ * <pre>
142
+ Property Type Description
143
+ ---------- ------------ ----------------------------------------------------------------------
144
+ duration Number The length of time in milliseconds that the progress bar should
145
+ run before resetting itself (defaults to undefined, in which case it
146
+ will run indefinitely until reset is called)
147
+ interval Number The length of time in milliseconds between each progress update
148
+ (defaults to 1000 ms)
149
+ animate Boolean Whether to animate the transition of the progress bar. If this value is
150
+ not specified, the default for the class is used.
151
+ increment Number The number of progress update segments to display within the progress
152
+ bar (defaults to 10). If the bar reaches the end and is still
153
+ updating, it will automatically wrap back to the beginning.
154
+ text String Optional text to display in the progress bar element (defaults to '').
155
+ fn Function A callback function to execute after the progress bar finishes auto-
156
+ updating. The function will be called with no arguments. This function
157
+ will be ignored if duration is not specified since in that case the
158
+ progress bar can only be stopped programmatically, so any required function
159
+ should be called by the same code after it resets the progress bar.
160
+ scope Object The scope that is passed to the callback function (only applies when
161
+ duration and fn are both passed).
162
+ </pre>
163
+ *
164
+ * Example usage:
165
+ * <pre><code>
166
+ var p = new Ext.ProgressBar({
167
+ renderTo: 'my-el'
168
+ });
169
+
170
+ //Wait for 5 seconds, then update the status el (progress bar will auto-reset)
171
+ p.wait({
172
+ interval: 100, //bar will move fast!
173
+ duration: 5000,
174
+ increment: 15,
175
+ text: 'Updating...',
176
+ scope: this,
177
+ fn: function(){
178
+ Ext.fly('status').update('Done!');
179
+ }
180
+ });
181
+
182
+ //Or update indefinitely until some async action completes, then reset manually
183
+ p.wait();
184
+ myAction.on('complete', function(){
185
+ p.reset();
186
+ Ext.fly('status').update('Done!');
187
+ });
188
+ </code></pre>
189
+ * @param {Object} config (optional) Configuration options
190
+ * @return {Ext.ProgressBar} this
191
+ */
192
+ wait : function(o){
193
+ if(!this.waitTimer){
194
+ var scope = this;
195
+ o = o || {};
196
+ this.updateText(o.text);
197
+ this.waitTimer = Ext.TaskMgr.start({
198
+ run: function(i){
199
+ var inc = o.increment || 10;
200
+ this.updateProgress(((((i+inc)%inc)+1)*(100/inc))*0.01, null, o.animate);
201
+ },
202
+ interval: o.interval || 1000,
203
+ duration: o.duration,
204
+ onStop: function(){
205
+ if(o.fn){
206
+ o.fn.apply(o.scope || this);
207
+ }
208
+ this.reset();
209
+ },
210
+ scope: scope
211
+ });
212
+ }
213
+ return this;
214
+ },
215
+
216
+ /**
217
+ * Returns true if the progress bar is currently in a {@link #wait} operation
218
+ * @return {Boolean} True if waiting, else false
219
+ */
220
+ isWaiting : function(){
221
+ return this.waitTimer !== null;
222
+ },
223
+
224
+ /**
225
+ * Updates the progress bar text. If specified, textEl will be updated, otherwise the progress
226
+ * bar itself will display the updated text.
227
+ * @param {String} text (optional) The string to display in the progress text element (defaults to '')
228
+ * @return {Ext.ProgressBar} this
229
+ */
230
+ updateText : function(text){
231
+ this.text = text || '&#160;';
232
+ if(this.rendered){
233
+ this.textEl.update(this.text);
234
+ }
235
+ return this;
236
+ },
237
+
238
+ /**
239
+ * Synchronizes the inner bar width to the proper proportion of the total componet width based
240
+ * on the current progress {@link #value}. This will be called automatically when the ProgressBar
241
+ * is resized by a layout, but if it is rendered auto width, this method can be called from
242
+ * another resize handler to sync the ProgressBar if necessary.
243
+ */
244
+ syncProgressBar : function(){
245
+ if(this.value){
246
+ this.updateProgress(this.value, this.text);
247
+ }
248
+ return this;
249
+ },
250
+
251
+ /**
252
+ * Sets the size of the progress bar.
253
+ * @param {Number} width The new width in pixels
254
+ * @param {Number} height The new height in pixels
255
+ * @return {Ext.ProgressBar} this
256
+ */
257
+ setSize : function(w, h){
258
+ Ext.ProgressBar.superclass.setSize.call(this, w, h);
259
+ if(this.textTopEl){
260
+ var inner = this.el.dom.firstChild;
261
+ this.textEl.setSize(inner.offsetWidth, inner.offsetHeight);
262
+ }
263
+ this.syncProgressBar();
264
+ return this;
265
+ },
266
+
267
+ /**
268
+ * Resets the progress bar value to 0 and text to empty string. If hide = true, the progress
269
+ * bar will also be hidden (using the {@link #hideMode} property internally).
270
+ * @param {Boolean} hide (optional) True to hide the progress bar (defaults to false)
271
+ * @return {Ext.ProgressBar} this
272
+ */
273
+ reset : function(hide){
274
+ this.updateProgress(0);
275
+ if(this.textTopEl){
276
+ this.textTopEl.addClass('x-hidden');
277
+ }
278
+ if(this.waitTimer){
279
+ this.waitTimer.onStop = null; //prevent recursion
280
+ Ext.TaskMgr.stop(this.waitTimer);
281
+ this.waitTimer = null;
282
+ }
283
+ if(hide === true){
284
+ this.hide();
285
+ }
286
+ return this;
287
+ }
288
+ });
289
+ Ext.reg('progress', Ext.ProgressBar);
@@ -0,0 +1,760 @@
1
+ /*!
2
+ * Ext JS Library 3.0.0
3
+ * Copyright(c) 2006-2009 Ext JS, LLC
4
+ * licensing@extjs.com
5
+ * http://www.extjs.com/license
6
+ */
7
+ /**
8
+ * @class Ext.Resizable
9
+ * @extends Ext.util.Observable
10
+ * <p>Applies drag handles to an element to make it resizable. The drag handles are inserted into the element
11
+ * and positioned absolute. Some elements, such as a textarea or image, don't support this. To overcome that, you can wrap
12
+ * the textarea in a div and set 'resizeChild' to true (or to the id of the element), <b>or</b> set wrap:true in your config and
13
+ * the element will be wrapped for you automatically.</p>
14
+ * <p>Here is the list of valid resize handles:</p>
15
+ * <pre>
16
+ Value Description
17
+ ------ -------------------
18
+ 'n' north
19
+ 's' south
20
+ 'e' east
21
+ 'w' west
22
+ 'nw' northwest
23
+ 'sw' southwest
24
+ 'se' southeast
25
+ 'ne' northeast
26
+ 'all' all
27
+ </pre>
28
+ * <p>Here's an example showing the creation of a typical Resizable:</p>
29
+ * <pre><code>
30
+ var resizer = new Ext.Resizable('element-id', {
31
+ handles: 'all',
32
+ minWidth: 200,
33
+ minHeight: 100,
34
+ maxWidth: 500,
35
+ maxHeight: 400,
36
+ pinned: true
37
+ });
38
+ resizer.on('resize', myHandler);
39
+ </code></pre>
40
+ * <p>To hide a particular handle, set its display to none in CSS, or through script:<br>
41
+ * resizer.east.setDisplayed(false);</p>
42
+ * @constructor
43
+ * Create a new resizable component
44
+ * @param {Mixed} el The id or element to resize
45
+ * @param {Object} config configuration options
46
+ */
47
+ Ext.Resizable = function(el, config){
48
+ this.el = Ext.get(el);
49
+
50
+ if(config && config.wrap){
51
+ config.resizeChild = this.el;
52
+ this.el = this.el.wrap(typeof config.wrap == 'object' ? config.wrap : {cls:'xresizable-wrap'});
53
+ this.el.id = this.el.dom.id = config.resizeChild.id + '-rzwrap';
54
+ this.el.setStyle('overflow', 'hidden');
55
+ this.el.setPositioning(config.resizeChild.getPositioning());
56
+ config.resizeChild.clearPositioning();
57
+ if(!config.width || !config.height){
58
+ var csize = config.resizeChild.getSize();
59
+ this.el.setSize(csize.width, csize.height);
60
+ }
61
+ if(config.pinned && !config.adjustments){
62
+ config.adjustments = 'auto';
63
+ }
64
+ }
65
+
66
+ /**
67
+ * The proxy Element that is resized in place of the real Element during the resize operation.
68
+ * This may be queried using {@link Ext.Element#getBox} to provide the new area to resize to.
69
+ * Read only.
70
+ * @type Ext.Element.
71
+ * @property proxy
72
+ */
73
+ this.proxy = this.el.createProxy({tag: 'div', cls: 'x-resizable-proxy', id: this.el.id + '-rzproxy'}, Ext.getBody());
74
+ this.proxy.unselectable();
75
+ this.proxy.enableDisplayMode('block');
76
+
77
+ Ext.apply(this, config);
78
+
79
+ if(this.pinned){
80
+ this.disableTrackOver = true;
81
+ this.el.addClass('x-resizable-pinned');
82
+ }
83
+ // if the element isn't positioned, make it relative
84
+ var position = this.el.getStyle('position');
85
+ if(position != 'absolute' && position != 'fixed'){
86
+ this.el.setStyle('position', 'relative');
87
+ }
88
+ if(!this.handles){ // no handles passed, must be legacy style
89
+ this.handles = 's,e,se';
90
+ if(this.multiDirectional){
91
+ this.handles += ',n,w';
92
+ }
93
+ }
94
+ if(this.handles == 'all'){
95
+ this.handles = 'n s e w ne nw se sw';
96
+ }
97
+ var hs = this.handles.split(/\s*?[,;]\s*?| /);
98
+ var ps = Ext.Resizable.positions;
99
+ for(var i = 0, len = hs.length; i < len; i++){
100
+ if(hs[i] && ps[hs[i]]){
101
+ var pos = ps[hs[i]];
102
+ this[pos] = new Ext.Resizable.Handle(this, pos, this.disableTrackOver, this.transparent);
103
+ }
104
+ }
105
+ // legacy
106
+ this.corner = this.southeast;
107
+
108
+ if(this.handles.indexOf('n') != -1 || this.handles.indexOf('w') != -1){
109
+ this.updateBox = true;
110
+ }
111
+
112
+ this.activeHandle = null;
113
+
114
+ if(this.resizeChild){
115
+ if(typeof this.resizeChild == 'boolean'){
116
+ this.resizeChild = Ext.get(this.el.dom.firstChild, true);
117
+ }else{
118
+ this.resizeChild = Ext.get(this.resizeChild, true);
119
+ }
120
+ }
121
+
122
+ if(this.adjustments == 'auto'){
123
+ var rc = this.resizeChild;
124
+ var hw = this.west, he = this.east, hn = this.north, hs = this.south;
125
+ if(rc && (hw || hn)){
126
+ rc.position('relative');
127
+ rc.setLeft(hw ? hw.el.getWidth() : 0);
128
+ rc.setTop(hn ? hn.el.getHeight() : 0);
129
+ }
130
+ this.adjustments = [
131
+ (he ? -he.el.getWidth() : 0) + (hw ? -hw.el.getWidth() : 0),
132
+ (hn ? -hn.el.getHeight() : 0) + (hs ? -hs.el.getHeight() : 0) -1
133
+ ];
134
+ }
135
+
136
+ if(this.draggable){
137
+ this.dd = this.dynamic ?
138
+ this.el.initDD(null) : this.el.initDDProxy(null, {dragElId: this.proxy.id});
139
+ this.dd.setHandleElId(this.resizeChild ? this.resizeChild.id : this.el.id);
140
+ }
141
+
142
+ this.addEvents(
143
+ /**
144
+ * @event beforeresize
145
+ * Fired before resize is allowed. Set {@link #enabled} to false to cancel resize.
146
+ * @param {Ext.Resizable} this
147
+ * @param {Ext.EventObject} e The mousedown event
148
+ */
149
+ 'beforeresize',
150
+ /**
151
+ * @event resize
152
+ * Fired after a resize.
153
+ * @param {Ext.Resizable} this
154
+ * @param {Number} width The new width
155
+ * @param {Number} height The new height
156
+ * @param {Ext.EventObject} e The mouseup event
157
+ */
158
+ 'resize'
159
+ );
160
+
161
+ if(this.width !== null && this.height !== null){
162
+ this.resizeTo(this.width, this.height);
163
+ }else{
164
+ this.updateChildSize();
165
+ }
166
+ if(Ext.isIE){
167
+ this.el.dom.style.zoom = 1;
168
+ }
169
+ Ext.Resizable.superclass.constructor.call(this);
170
+ };
171
+
172
+ Ext.extend(Ext.Resizable, Ext.util.Observable, {
173
+
174
+ /**
175
+ * @cfg {Array/String} adjustments String 'auto' or an array [width, height] with values to be <b>added</b> to the
176
+ * resize operation's new size (defaults to <tt>[0, 0]</tt>)
177
+ */
178
+ adjustments : [0, 0],
179
+ /**
180
+ * @cfg {Boolean} animate True to animate the resize (not compatible with dynamic sizing, defaults to false)
181
+ */
182
+ animate : false,
183
+ /**
184
+ * @cfg {Mixed} constrainTo Constrain the resize to a particular element
185
+ */
186
+ /**
187
+ * @cfg {Boolean} disableTrackOver True to disable mouse tracking. This is only applied at config time. (defaults to false)
188
+ */
189
+ disableTrackOver : false,
190
+ /**
191
+ * @cfg {Boolean} draggable Convenience to initialize drag drop (defaults to false)
192
+ */
193
+ draggable: false,
194
+ /**
195
+ * @cfg {Number} duration Animation duration if animate = true (defaults to 0.35)
196
+ */
197
+ duration : 0.35,
198
+ /**
199
+ * @cfg {Boolean} dynamic True to resize the element while dragging instead of using a proxy (defaults to false)
200
+ */
201
+ dynamic : false,
202
+ /**
203
+ * @cfg {String} easing Animation easing if animate = true (defaults to <tt>'easingOutStrong'</tt>)
204
+ */
205
+ easing : 'easeOutStrong',
206
+ /**
207
+ * @cfg {Boolean} enabled False to disable resizing (defaults to true)
208
+ */
209
+ enabled : true,
210
+ /**
211
+ * @property enabled Writable. False if resizing is disabled.
212
+ * @type Boolean
213
+ */
214
+ /**
215
+ * @cfg {String} handles String consisting of the resize handles to display (defaults to undefined).
216
+ * Specify either <tt>'all'</tt> or any of <tt>'n s e w ne nw se sw'</tt>.
217
+ */
218
+ handles : false,
219
+ /**
220
+ * @cfg {Boolean} multiDirectional <b>Deprecated</b>. Deprecated style of adding multi-direction resize handles.
221
+ */
222
+ multiDirectional : false,
223
+ /**
224
+ * @cfg {Number} height The height of the element in pixels (defaults to null)
225
+ */
226
+ height : null,
227
+ /**
228
+ * @cfg {Number} width The width of the element in pixels (defaults to null)
229
+ */
230
+ width : null,
231
+ /**
232
+ * @cfg {Number} heightIncrement The increment to snap the height resize in pixels
233
+ * (only applies if <code>{@link #dynamic}==true</code>). Defaults to <tt>0</tt>.
234
+ */
235
+ heightIncrement : 0,
236
+ /**
237
+ * @cfg {Number} widthIncrement The increment to snap the width resize in pixels
238
+ * (only applies if <code>{@link #dynamic}==true</code>). Defaults to <tt>0</tt>.
239
+ */
240
+ widthIncrement : 0,
241
+ /**
242
+ * @cfg {Number} minHeight The minimum height for the element (defaults to 5)
243
+ */
244
+ minHeight : 5,
245
+ /**
246
+ * @cfg {Number} minWidth The minimum width for the element (defaults to 5)
247
+ */
248
+ minWidth : 5,
249
+ /**
250
+ * @cfg {Number} maxHeight The maximum height for the element (defaults to 10000)
251
+ */
252
+ maxHeight : 10000,
253
+ /**
254
+ * @cfg {Number} maxWidth The maximum width for the element (defaults to 10000)
255
+ */
256
+ maxWidth : 10000,
257
+ /**
258
+ * @cfg {Number} minX The minimum x for the element (defaults to 0)
259
+ */
260
+ minX: 0,
261
+ /**
262
+ * @cfg {Number} minY The minimum x for the element (defaults to 0)
263
+ */
264
+ minY: 0,
265
+ /**
266
+ * @cfg {Boolean} pinned True to ensure that the resize handles are always visible, false to display them only when the
267
+ * user mouses over the resizable borders. This is only applied at config time. (defaults to false)
268
+ */
269
+ pinned : false,
270
+ /**
271
+ * @cfg {Boolean} preserveRatio True to preserve the original ratio between height
272
+ * and width during resize (defaults to false)
273
+ */
274
+ preserveRatio : false,
275
+ /**
276
+ * @cfg {Boolean/String/Element} resizeChild True to resize the first child, or id/element to resize (defaults to false)
277
+ */
278
+ resizeChild : false,
279
+ /**
280
+ * @cfg {Boolean} transparent True for transparent handles. This is only applied at config time. (defaults to false)
281
+ */
282
+ transparent: false,
283
+ /**
284
+ * @cfg {Ext.lib.Region} resizeRegion Constrain the resize to a particular region
285
+ */
286
+ /**
287
+ * @cfg {Boolean} wrap True to wrap an element with a div if needed (required for textareas and images, defaults to false)
288
+ * in favor of the handles config option (defaults to false)
289
+ */
290
+
291
+
292
+ /**
293
+ * Perform a manual resize and fires the 'resize' event.
294
+ * @param {Number} width
295
+ * @param {Number} height
296
+ */
297
+ resizeTo : function(width, height){
298
+ this.el.setSize(width, height);
299
+ this.updateChildSize();
300
+ this.fireEvent('resize', this, width, height, null);
301
+ },
302
+
303
+ // private
304
+ startSizing : function(e, handle){
305
+ this.fireEvent('beforeresize', this, e);
306
+ if(this.enabled){ // 2nd enabled check in case disabled before beforeresize handler
307
+
308
+ if(!this.overlay){
309
+ this.overlay = this.el.createProxy({tag: 'div', cls: 'x-resizable-overlay', html: '&#160;'}, Ext.getBody());
310
+ this.overlay.unselectable();
311
+ this.overlay.enableDisplayMode('block');
312
+ this.overlay.on({
313
+ scope: this,
314
+ mousemove: this.onMouseMove,
315
+ mouseup: this.onMouseUp
316
+ });
317
+ }
318
+ this.overlay.setStyle('cursor', handle.el.getStyle('cursor'));
319
+
320
+ this.resizing = true;
321
+ this.startBox = this.el.getBox();
322
+ this.startPoint = e.getXY();
323
+ this.offsets = [(this.startBox.x + this.startBox.width) - this.startPoint[0],
324
+ (this.startBox.y + this.startBox.height) - this.startPoint[1]];
325
+
326
+ this.overlay.setSize(Ext.lib.Dom.getViewWidth(true), Ext.lib.Dom.getViewHeight(true));
327
+ this.overlay.show();
328
+
329
+ if(this.constrainTo) {
330
+ var ct = Ext.get(this.constrainTo);
331
+ this.resizeRegion = ct.getRegion().adjust(
332
+ ct.getFrameWidth('t'),
333
+ ct.getFrameWidth('l'),
334
+ -ct.getFrameWidth('b'),
335
+ -ct.getFrameWidth('r')
336
+ );
337
+ }
338
+
339
+ this.proxy.setStyle('visibility', 'hidden'); // workaround display none
340
+ this.proxy.show();
341
+ this.proxy.setBox(this.startBox);
342
+ if(!this.dynamic){
343
+ this.proxy.setStyle('visibility', 'visible');
344
+ }
345
+ }
346
+ },
347
+
348
+ // private
349
+ onMouseDown : function(handle, e){
350
+ if(this.enabled){
351
+ e.stopEvent();
352
+ this.activeHandle = handle;
353
+ this.startSizing(e, handle);
354
+ }
355
+ },
356
+
357
+ // private
358
+ onMouseUp : function(e){
359
+ this.activeHandle = null;
360
+ var size = this.resizeElement();
361
+ this.resizing = false;
362
+ this.handleOut();
363
+ this.overlay.hide();
364
+ this.proxy.hide();
365
+ this.fireEvent('resize', this, size.width, size.height, e);
366
+ },
367
+
368
+ // private
369
+ updateChildSize : function(){
370
+ if(this.resizeChild){
371
+ var el = this.el;
372
+ var child = this.resizeChild;
373
+ var adj = this.adjustments;
374
+ if(el.dom.offsetWidth){
375
+ var b = el.getSize(true);
376
+ child.setSize(b.width+adj[0], b.height+adj[1]);
377
+ }
378
+ // Second call here for IE
379
+ // The first call enables instant resizing and
380
+ // the second call corrects scroll bars if they
381
+ // exist
382
+ if(Ext.isIE){
383
+ setTimeout(function(){
384
+ if(el.dom.offsetWidth){
385
+ var b = el.getSize(true);
386
+ child.setSize(b.width+adj[0], b.height+adj[1]);
387
+ }
388
+ }, 10);
389
+ }
390
+ }
391
+ },
392
+
393
+ // private
394
+ snap : function(value, inc, min){
395
+ if(!inc || !value){
396
+ return value;
397
+ }
398
+ var newValue = value;
399
+ var m = value % inc;
400
+ if(m > 0){
401
+ if(m > (inc/2)){
402
+ newValue = value + (inc-m);
403
+ }else{
404
+ newValue = value - m;
405
+ }
406
+ }
407
+ return Math.max(min, newValue);
408
+ },
409
+
410
+ /**
411
+ * <p>Performs resizing of the associated Element. This method is called internally by this
412
+ * class, and should not be called by user code.</p>
413
+ * <p>If a Resizable is being used to resize an Element which encapsulates a more complex UI
414
+ * component such as a Panel, this method may be overridden by specifying an implementation
415
+ * as a config option to provide appropriate behaviour at the end of the resize operation on
416
+ * mouseup, for example resizing the Panel, and relaying the Panel's content.</p>
417
+ * <p>The new area to be resized to is available by examining the state of the {@link #proxy}
418
+ * Element. Example:
419
+ <pre><code>
420
+ new Ext.Panel({
421
+ title: 'Resize me',
422
+ x: 100,
423
+ y: 100,
424
+ renderTo: Ext.getBody(),
425
+ floating: true,
426
+ frame: true,
427
+ width: 400,
428
+ height: 200,
429
+ listeners: {
430
+ render: function(p) {
431
+ new Ext.Resizable(p.getEl(), {
432
+ handles: 'all',
433
+ pinned: true,
434
+ transparent: true,
435
+ resizeElement: function() {
436
+ var box = this.proxy.getBox();
437
+ p.updateBox(box);
438
+ if (p.layout) {
439
+ p.doLayout();
440
+ }
441
+ return box;
442
+ }
443
+ });
444
+ }
445
+ }
446
+ }).show();
447
+ </code></pre>
448
+ */
449
+ resizeElement : function(){
450
+ var box = this.proxy.getBox();
451
+ if(this.updateBox){
452
+ this.el.setBox(box, false, this.animate, this.duration, null, this.easing);
453
+ }else{
454
+ this.el.setSize(box.width, box.height, this.animate, this.duration, null, this.easing);
455
+ }
456
+ this.updateChildSize();
457
+ if(!this.dynamic){
458
+ this.proxy.hide();
459
+ }
460
+ return box;
461
+ },
462
+
463
+ // private
464
+ constrain : function(v, diff, m, mx){
465
+ if(v - diff < m){
466
+ diff = v - m;
467
+ }else if(v - diff > mx){
468
+ diff = v - mx;
469
+ }
470
+ return diff;
471
+ },
472
+
473
+ // private
474
+ onMouseMove : function(e){
475
+ if(this.enabled && this.activeHandle){
476
+ try{// try catch so if something goes wrong the user doesn't get hung
477
+
478
+ if(this.resizeRegion && !this.resizeRegion.contains(e.getPoint())) {
479
+ return;
480
+ }
481
+
482
+ //var curXY = this.startPoint;
483
+ var curSize = this.curSize || this.startBox,
484
+ x = this.startBox.x, y = this.startBox.y,
485
+ ox = x,
486
+ oy = y,
487
+ w = curSize.width,
488
+ h = curSize.height,
489
+ ow = w,
490
+ oh = h,
491
+ mw = this.minWidth,
492
+ mh = this.minHeight,
493
+ mxw = this.maxWidth,
494
+ mxh = this.maxHeight,
495
+ wi = this.widthIncrement,
496
+ hi = this.heightIncrement,
497
+ eventXY = e.getXY(),
498
+ diffX = -(this.startPoint[0] - Math.max(this.minX, eventXY[0])),
499
+ diffY = -(this.startPoint[1] - Math.max(this.minY, eventXY[1])),
500
+ pos = this.activeHandle.position,
501
+ tw,
502
+ th;
503
+
504
+ switch(pos){
505
+ case 'east':
506
+ w += diffX;
507
+ w = Math.min(Math.max(mw, w), mxw);
508
+ break;
509
+ case 'south':
510
+ h += diffY;
511
+ h = Math.min(Math.max(mh, h), mxh);
512
+ break;
513
+ case 'southeast':
514
+ w += diffX;
515
+ h += diffY;
516
+ w = Math.min(Math.max(mw, w), mxw);
517
+ h = Math.min(Math.max(mh, h), mxh);
518
+ break;
519
+ case 'north':
520
+ diffY = this.constrain(h, diffY, mh, mxh);
521
+ y += diffY;
522
+ h -= diffY;
523
+ break;
524
+ case 'west':
525
+ diffX = this.constrain(w, diffX, mw, mxw);
526
+ x += diffX;
527
+ w -= diffX;
528
+ break;
529
+ case 'northeast':
530
+ w += diffX;
531
+ w = Math.min(Math.max(mw, w), mxw);
532
+ diffY = this.constrain(h, diffY, mh, mxh);
533
+ y += diffY;
534
+ h -= diffY;
535
+ break;
536
+ case 'northwest':
537
+ diffX = this.constrain(w, diffX, mw, mxw);
538
+ diffY = this.constrain(h, diffY, mh, mxh);
539
+ y += diffY;
540
+ h -= diffY;
541
+ x += diffX;
542
+ w -= diffX;
543
+ break;
544
+ case 'southwest':
545
+ diffX = this.constrain(w, diffX, mw, mxw);
546
+ h += diffY;
547
+ h = Math.min(Math.max(mh, h), mxh);
548
+ x += diffX;
549
+ w -= diffX;
550
+ break;
551
+ }
552
+
553
+ var sw = this.snap(w, wi, mw);
554
+ var sh = this.snap(h, hi, mh);
555
+ if(sw != w || sh != h){
556
+ switch(pos){
557
+ case 'northeast':
558
+ y -= sh - h;
559
+ break;
560
+ case 'north':
561
+ y -= sh - h;
562
+ break;
563
+ case 'southwest':
564
+ x -= sw - w;
565
+ break;
566
+ case 'west':
567
+ x -= sw - w;
568
+ break;
569
+ case 'northwest':
570
+ x -= sw - w;
571
+ y -= sh - h;
572
+ break;
573
+ }
574
+ w = sw;
575
+ h = sh;
576
+ }
577
+
578
+ if(this.preserveRatio){
579
+ switch(pos){
580
+ case 'southeast':
581
+ case 'east':
582
+ h = oh * (w/ow);
583
+ h = Math.min(Math.max(mh, h), mxh);
584
+ w = ow * (h/oh);
585
+ break;
586
+ case 'south':
587
+ w = ow * (h/oh);
588
+ w = Math.min(Math.max(mw, w), mxw);
589
+ h = oh * (w/ow);
590
+ break;
591
+ case 'northeast':
592
+ w = ow * (h/oh);
593
+ w = Math.min(Math.max(mw, w), mxw);
594
+ h = oh * (w/ow);
595
+ break;
596
+ case 'north':
597
+ tw = w;
598
+ w = ow * (h/oh);
599
+ w = Math.min(Math.max(mw, w), mxw);
600
+ h = oh * (w/ow);
601
+ x += (tw - w) / 2;
602
+ break;
603
+ case 'southwest':
604
+ h = oh * (w/ow);
605
+ h = Math.min(Math.max(mh, h), mxh);
606
+ tw = w;
607
+ w = ow * (h/oh);
608
+ x += tw - w;
609
+ break;
610
+ case 'west':
611
+ th = h;
612
+ h = oh * (w/ow);
613
+ h = Math.min(Math.max(mh, h), mxh);
614
+ y += (th - h) / 2;
615
+ tw = w;
616
+ w = ow * (h/oh);
617
+ x += tw - w;
618
+ break;
619
+ case 'northwest':
620
+ tw = w;
621
+ th = h;
622
+ h = oh * (w/ow);
623
+ h = Math.min(Math.max(mh, h), mxh);
624
+ w = ow * (h/oh);
625
+ y += th - h;
626
+ x += tw - w;
627
+ break;
628
+
629
+ }
630
+ }
631
+ this.proxy.setBounds(x, y, w, h);
632
+ if(this.dynamic){
633
+ this.resizeElement();
634
+ }
635
+ }catch(ex){}
636
+ }
637
+ },
638
+
639
+ // private
640
+ handleOver : function(){
641
+ if(this.enabled){
642
+ this.el.addClass('x-resizable-over');
643
+ }
644
+ },
645
+
646
+ // private
647
+ handleOut : function(){
648
+ if(!this.resizing){
649
+ this.el.removeClass('x-resizable-over');
650
+ }
651
+ },
652
+
653
+ /**
654
+ * Returns the element this component is bound to.
655
+ * @return {Ext.Element}
656
+ */
657
+ getEl : function(){
658
+ return this.el;
659
+ },
660
+
661
+ /**
662
+ * Returns the resizeChild element (or null).
663
+ * @return {Ext.Element}
664
+ */
665
+ getResizeChild : function(){
666
+ return this.resizeChild;
667
+ },
668
+
669
+ /**
670
+ * Destroys this resizable. If the element was wrapped and
671
+ * removeEl is not true then the element remains.
672
+ * @param {Boolean} removeEl (optional) true to remove the element from the DOM
673
+ */
674
+ destroy : function(removeEl){
675
+ Ext.destroy(this.dd, this.overlay, this.proxy);
676
+ this.overlay = null;
677
+ this.proxy = null;
678
+
679
+ var ps = Ext.Resizable.positions;
680
+ for(var k in ps){
681
+ if(typeof ps[k] != 'function' && this[ps[k]]){
682
+ this[ps[k]].destroy();
683
+ }
684
+ }
685
+ if(removeEl){
686
+ this.el.update('');
687
+ Ext.destroy(this.el);
688
+ this.el = null;
689
+ }
690
+ this.purgeListeners();
691
+ },
692
+
693
+ syncHandleHeight : function(){
694
+ var h = this.el.getHeight(true);
695
+ if(this.west){
696
+ this.west.el.setHeight(h);
697
+ }
698
+ if(this.east){
699
+ this.east.el.setHeight(h);
700
+ }
701
+ }
702
+ });
703
+
704
+ // private
705
+ // hash to map config positions to true positions
706
+ Ext.Resizable.positions = {
707
+ n: 'north', s: 'south', e: 'east', w: 'west', se: 'southeast', sw: 'southwest', nw: 'northwest', ne: 'northeast'
708
+ };
709
+
710
+ // private
711
+ Ext.Resizable.Handle = function(rz, pos, disableTrackOver, transparent){
712
+ if(!this.tpl){
713
+ // only initialize the template if resizable is used
714
+ var tpl = Ext.DomHelper.createTemplate(
715
+ {tag: 'div', cls: 'x-resizable-handle x-resizable-handle-{0}'}
716
+ );
717
+ tpl.compile();
718
+ Ext.Resizable.Handle.prototype.tpl = tpl;
719
+ }
720
+ this.position = pos;
721
+ this.rz = rz;
722
+ this.el = this.tpl.append(rz.el.dom, [this.position], true);
723
+ this.el.unselectable();
724
+ if(transparent){
725
+ this.el.setOpacity(0);
726
+ }
727
+ this.el.on('mousedown', this.onMouseDown, this);
728
+ if(!disableTrackOver){
729
+ this.el.on({
730
+ scope: this,
731
+ mouseover: this.onMouseOver,
732
+ mouseout: this.onMouseOut
733
+ });
734
+ }
735
+ };
736
+
737
+ // private
738
+ Ext.Resizable.Handle.prototype = {
739
+ // private
740
+ afterResize : function(rz){
741
+ // do nothing
742
+ },
743
+ // private
744
+ onMouseDown : function(e){
745
+ this.rz.onMouseDown(this, e);
746
+ },
747
+ // private
748
+ onMouseOver : function(e){
749
+ this.rz.handleOver(this, e);
750
+ },
751
+ // private
752
+ onMouseOut : function(e){
753
+ this.rz.handleOut(this, e);
754
+ },
755
+ // private
756
+ destroy : function(){
757
+ Ext.destroy(this.el);
758
+ this.el = null;
759
+ }
760
+ };