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.
- data/LICENSE +3 -0
- data/README +3 -0
- data/Rakefile +45 -0
- data/bin/lpmp +107 -0
- data/config/help.yaml +1 -0
- data/config/hosts.yaml +2 -0
- data/config/log.yaml +1 -0
- data/config/memcache.yaml +5 -0
- data/erb/index.erb +62 -0
- data/lib/bg_pull/caichen.rb +199 -0
- data/lib/bg_pull/lpmp.rb +45 -0
- data/lib/exception.rb +8 -0
- data/lib/lpmp.rb +53 -0
- data/lib/pull/lpmp.rb +355 -0
- data/lib/remote_lmp.rb +129 -0
- data/lib/utils.rb +14 -0
- data/lib/xq_push/caichen.rb +174 -0
- data/lib/xq_push/lpmp.rb +96 -0
- data/log/lpmp1st.log +1 -0
- data/public/css/ext-portal.css +40 -0
- data/public/css/lpmp.css +6 -0
- data/public/designer/caichen.epj +1 -0
- data/public/designer/hostmonitor.epj +1 -0
- data/public/ext-3.0.0/INCLUDE_ORDER.txt +35 -0
- data/public/ext-3.0.0/adapter/ext/ext-base-debug.js +3589 -0
- data/public/ext-3.0.0/adapter/ext/ext-base.js +7 -0
- data/public/ext-3.0.0/adapter/jquery/ext-jquery-adapter-debug.js +2292 -0
- data/public/ext-3.0.0/adapter/jquery/ext-jquery-adapter.js +7 -0
- data/public/ext-3.0.0/adapter/prototype/ext-prototype-adapter-debug.js +2346 -0
- data/public/ext-3.0.0/adapter/prototype/ext-prototype-adapter.js +7 -0
- data/public/ext-3.0.0/adapter/yui/ext-yui-adapter-debug.js +2136 -0
- data/public/ext-3.0.0/adapter/yui/ext-yui-adapter.js +7 -0
- data/public/ext-3.0.0/ext-all-debug.js +65610 -0
- data/public/ext-3.0.0/ext-all.js +11 -0
- data/public/ext-3.0.0/license.txt +42 -0
- data/public/ext-3.0.0/pkgs/cmp-foundation-debug.js +11287 -0
- data/public/ext-3.0.0/pkgs/cmp-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/data-foundation-debug.js +3853 -0
- data/public/ext-3.0.0/pkgs/data-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/data-grouping-debug.js +139 -0
- data/public/ext-3.0.0/pkgs/data-grouping.js +7 -0
- data/public/ext-3.0.0/pkgs/data-json-debug.js +582 -0
- data/public/ext-3.0.0/pkgs/data-json.js +7 -0
- data/public/ext-3.0.0/pkgs/data-list-views-debug.js +1278 -0
- data/public/ext-3.0.0/pkgs/data-list-views.js +7 -0
- data/public/ext-3.0.0/pkgs/data-xml-debug.js +234 -0
- data/public/ext-3.0.0/pkgs/data-xml.js +7 -0
- data/public/ext-3.0.0/pkgs/direct-debug.js +1121 -0
- data/public/ext-3.0.0/pkgs/direct.js +7 -0
- data/public/ext-3.0.0/pkgs/ext-dd-debug.js +4567 -0
- data/public/ext-3.0.0/pkgs/ext-dd.js +7 -0
- data/public/ext-3.0.0/pkgs/ext-foundation-debug.js +13417 -0
- data/public/ext-3.0.0/pkgs/ext-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-buttons-debug.js +1060 -0
- data/public/ext-3.0.0/pkgs/pkg-buttons.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-charts-debug.js +1621 -0
- data/public/ext-3.0.0/pkgs/pkg-charts.js +10 -0
- data/public/ext-3.0.0/pkgs/pkg-forms-debug.js +7661 -0
- data/public/ext-3.0.0/pkgs/pkg-forms.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-editor-debug.js +560 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-editor.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-foundation-debug.js +4765 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-grouping-debug.js +517 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-grouping.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-property-debug.js +370 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-property.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-history-debug.js +203 -0
- data/public/ext-3.0.0/pkgs/pkg-history.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-menu-debug.js +1628 -0
- data/public/ext-3.0.0/pkgs/pkg-menu.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-tabs-debug.js +1100 -0
- data/public/ext-3.0.0/pkgs/pkg-tabs.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-tips-debug.js +994 -0
- data/public/ext-3.0.0/pkgs/pkg-tips.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-toolbars-debug.js +1374 -0
- data/public/ext-3.0.0/pkgs/pkg-toolbars.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-tree-debug.js +4522 -0
- data/public/ext-3.0.0/pkgs/pkg-tree.js +7 -0
- data/public/ext-3.0.0/pkgs/resizable-debug.js +760 -0
- data/public/ext-3.0.0/pkgs/resizable.js +7 -0
- data/public/ext-3.0.0/pkgs/state-debug.js +274 -0
- data/public/ext-3.0.0/pkgs/state.js +7 -0
- data/public/ext-3.0.0/pkgs/window-debug.js +1888 -0
- data/public/ext-3.0.0/pkgs/window.js +7 -0
- data/public/ext-3.0.0/resources/charts.swf +0 -0
- data/public/ext-3.0.0/resources/css/README.txt +3 -0
- data/public/ext-3.0.0/resources/css/ext-all-notheme.css +5345 -0
- data/public/ext-3.0.0/resources/css/ext-all.css +6990 -0
- data/public/ext-3.0.0/resources/css/reset-min.css +7 -0
- data/public/ext-3.0.0/resources/css/structure/borders.css +54 -0
- data/public/ext-3.0.0/resources/css/structure/box.css +80 -0
- data/public/ext-3.0.0/resources/css/structure/button.css +440 -0
- data/public/ext-3.0.0/resources/css/structure/combo.css +45 -0
- data/public/ext-3.0.0/resources/css/structure/core.css +326 -0
- data/public/ext-3.0.0/resources/css/structure/date-picker.css +265 -0
- data/public/ext-3.0.0/resources/css/structure/dd.css +61 -0
- data/public/ext-3.0.0/resources/css/structure/debug.css +26 -0
- data/public/ext-3.0.0/resources/css/structure/dialog.css +62 -0
- data/public/ext-3.0.0/resources/css/structure/editor.css +92 -0
- data/public/ext-3.0.0/resources/css/structure/form.css +562 -0
- data/public/ext-3.0.0/resources/css/structure/grid.css +552 -0
- data/public/ext-3.0.0/resources/css/structure/layout.css +296 -0
- data/public/ext-3.0.0/resources/css/structure/list-view.css +85 -0
- data/public/ext-3.0.0/resources/css/structure/menu.css +205 -0
- data/public/ext-3.0.0/resources/css/structure/panel-reset.css +130 -0
- data/public/ext-3.0.0/resources/css/structure/panel.css +468 -0
- data/public/ext-3.0.0/resources/css/structure/progress.css +42 -0
- data/public/ext-3.0.0/resources/css/structure/qtips.css +153 -0
- data/public/ext-3.0.0/resources/css/structure/reset.css +7 -0
- data/public/ext-3.0.0/resources/css/structure/resizable.css +149 -0
- data/public/ext-3.0.0/resources/css/structure/slider.css +103 -0
- data/public/ext-3.0.0/resources/css/structure/tabs.css +372 -0
- data/public/ext-3.0.0/resources/css/structure/toolbar.css +259 -0
- data/public/ext-3.0.0/resources/css/structure/tree.css +203 -0
- data/public/ext-3.0.0/resources/css/structure/window.css +222 -0
- data/public/ext-3.0.0/resources/css/visual/borders.css +25 -0
- data/public/ext-3.0.0/resources/css/visual/box.css +74 -0
- data/public/ext-3.0.0/resources/css/visual/button.css +94 -0
- data/public/ext-3.0.0/resources/css/visual/combo.css +43 -0
- data/public/ext-3.0.0/resources/css/visual/core.css +76 -0
- data/public/ext-3.0.0/resources/css/visual/date-picker.css +143 -0
- data/public/ext-3.0.0/resources/css/visual/dd.css +29 -0
- data/public/ext-3.0.0/resources/css/visual/debug.css +24 -0
- data/public/ext-3.0.0/resources/css/visual/dialog.css +34 -0
- data/public/ext-3.0.0/resources/css/visual/editor.css +13 -0
- data/public/ext-3.0.0/resources/css/visual/form.css +117 -0
- data/public/ext-3.0.0/resources/css/visual/grid.css +272 -0
- data/public/ext-3.0.0/resources/css/visual/layout.css +53 -0
- data/public/ext-3.0.0/resources/css/visual/list-view.css +37 -0
- data/public/ext-3.0.0/resources/css/visual/menu.css +82 -0
- data/public/ext-3.0.0/resources/css/visual/panel.css +87 -0
- data/public/ext-3.0.0/resources/css/visual/progress.css +32 -0
- data/public/ext-3.0.0/resources/css/visual/qtips.css +44 -0
- data/public/ext-3.0.0/resources/css/visual/resizable.css +43 -0
- data/public/ext-3.0.0/resources/css/visual/slider.css +21 -0
- data/public/ext-3.0.0/resources/css/visual/tabs.css +119 -0
- data/public/ext-3.0.0/resources/css/visual/toolbar.css +103 -0
- data/public/ext-3.0.0/resources/css/visual/tree.css +157 -0
- data/public/ext-3.0.0/resources/css/visual/window.css +86 -0
- data/public/ext-3.0.0/resources/css/xtheme-blue.css +1652 -0
- data/public/ext-3.0.0/resources/expressinstall.swf +0 -0
- data/public/ext-3.0.0/resources/images/default/box/corners-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/corners.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/l-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/l.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/r-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/r.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/tb-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/tb.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/arrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/group-cs.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/group-lr.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/group-tb.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-b-noline.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-b.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-bo.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-noline.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-o.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/dd/drop-add.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/dd/drop-no.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/dd/drop-yes.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/editor/tb-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/checkbox.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/clear-trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/clear-trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/form/date-trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/date-trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/form/error-tip-corners.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/exclamation.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/radio.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/search-trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/search-trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/form/text-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/trigger-tpl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/gradient-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/arrow-left-white.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/arrow-right-white.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/col-move-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/col-move-top.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/columns.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/dirty.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/done.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/drop-no.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/drop-yes.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/footer-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-blue-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-blue-split.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-hrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-split.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-vista-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-hd-btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-hrow-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-hrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-by.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-collapse.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-expand-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-expand.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hd-pop.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-asc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-desc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-lock.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-lock.png +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-unlock.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-unlock.png +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/invalid_line.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/mso-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/nowait.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-first-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-first.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-last-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-last.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-next-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-next.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-prev-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-prev.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/pick-button.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/refresh.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-check-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-expand-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-sel.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/sort-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/sort_asc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/sort_desc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/wait.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/collapse.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/expand.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/gradient-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-left.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-top.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/ns-collapse.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/ns-expand.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/panel-close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/panel-title-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/panel-title-light-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/stick.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/stuck.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/tab-close-on.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/tab-close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/checked.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/group-checked.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/item-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/menu-parent.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/menu.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/unchecked.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/corners-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/left-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/light-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/tool-sprites.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/tools-sprites-trans.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/top-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/top-bottom.png +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/white-corners-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/white-left-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/white-top-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/progress/progress-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/tip-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/s.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shadow-c.png +0 -0
- data/public/ext-3.0.0/resources/images/default/shadow-lr.png +0 -0
- data/public/ext-3.0.0/resources/images/default/shadow.png +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/blue-loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/calendar.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/glass-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/hd-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/large-loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/left-btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/loading-balls.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/right-btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/warning.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/e-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/e-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/ne-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/ne-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/nw-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/nw-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/s-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/s-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/se-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/se-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/square.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/sw-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/sw-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-bg.png +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-thumb.png +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-v-bg.png +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-v-thumb.png +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/scroll-left.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/scroll-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/scroller-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-bg.png +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tabs-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/btn-arrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/btn-over-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/gray-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/more.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/arrows.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-add.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-between.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-no.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-under.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-yes.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-minus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-plus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-line.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-minus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-minus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-plus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-plus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/folder-open.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/folder.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/leaf.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/s.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-error.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-info.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-question.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-warning.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-corners.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-corners.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-right.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-right.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/window/right-corners.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/right-corners.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/window/top-bottom.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/top-bottom.psd +0 -0
- data/public/ext-3.0.0/resources/images/icon/chart.gif +0 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-ajax.js +371 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-anim-extra.js +301 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-anim.js +477 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-begin.js +18 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-dom.js +157 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-end.js +21 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-event.js +453 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-point.js +17 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-region.js +81 -0
- data/public/ext-3.0.0/src/adapter/ext-base-dom-more.js +9 -0
- data/public/ext-3.0.0/src/adapter/jquery-bridge.js +546 -0
- data/public/ext-3.0.0/src/adapter/prototype-bridge.js +600 -0
- data/public/ext-3.0.0/src/adapter/yui-bridge.js +390 -0
- data/public/ext-3.0.0/src/core/CompositeElement.js +136 -0
- data/public/ext-3.0.0/src/core/CompositeElementLite-more.js +102 -0
- data/public/ext-3.0.0/src/core/DomHelper-more.js +179 -0
- data/public/ext-3.0.0/src/core/Element-more.js +192 -0
- data/public/ext-3.0.0/src/core/Element.alignment.js +370 -0
- data/public/ext-3.0.0/src/core/Element.dd.js +46 -0
- data/public/ext-3.0.0/src/core/Element.fx-more.js +152 -0
- data/public/ext-3.0.0/src/core/Element.insertion-more.js +52 -0
- data/public/ext-3.0.0/src/core/Element.keys.js +48 -0
- data/public/ext-3.0.0/src/core/Element.legacy.js +42 -0
- data/public/ext-3.0.0/src/core/Element.position-more.js +165 -0
- data/public/ext-3.0.0/src/core/Element.scroll-more.js +110 -0
- data/public/ext-3.0.0/src/core/Element.style-more.js +318 -0
- data/public/ext-3.0.0/src/core/Error.js +81 -0
- data/public/ext-3.0.0/src/core/EventManager-more.js +334 -0
- data/public/ext-3.0.0/src/core/Ext-more.js +669 -0
- data/public/ext-3.0.0/src/core/Template-more.js +115 -0
- data/public/ext-3.0.0/src/core/core/CompositeElementLite.js +197 -0
- data/public/ext-3.0.0/src/core/core/DomHelper.js +378 -0
- data/public/ext-3.0.0/src/core/core/DomQuery.js +826 -0
- data/public/ext-3.0.0/src/core/core/Element.fx.js +324 -0
- data/public/ext-3.0.0/src/core/core/Element.insertion.js +147 -0
- data/public/ext-3.0.0/src/core/core/Element.js +945 -0
- data/public/ext-3.0.0/src/core/core/Element.position.js +303 -0
- data/public/ext-3.0.0/src/core/core/Element.scroll.js +58 -0
- data/public/ext-3.0.0/src/core/core/Element.style.js +439 -0
- data/public/ext-3.0.0/src/core/core/Element.traversal.js +176 -0
- data/public/ext-3.0.0/src/core/core/EventManager.js +623 -0
- data/public/ext-3.0.0/src/core/core/Ext.js +922 -0
- data/public/ext-3.0.0/src/core/core/Fx.js +1115 -0
- data/public/ext-3.0.0/src/core/core/Template.js +185 -0
- data/public/ext-3.0.0/src/data/Api.js +210 -0
- data/public/ext-3.0.0/src/data/ArrayReader.js +102 -0
- data/public/ext-3.0.0/src/data/ArrayStore.js +70 -0
- data/public/ext-3.0.0/src/data/DataField.js +249 -0
- data/public/ext-3.0.0/src/data/DataProxy.js +427 -0
- data/public/ext-3.0.0/src/data/DataReader.js +160 -0
- data/public/ext-3.0.0/src/data/DataWriter.js +201 -0
- data/public/ext-3.0.0/src/data/DirectProxy.js +141 -0
- data/public/ext-3.0.0/src/data/DirectStore.js +52 -0
- data/public/ext-3.0.0/src/data/GroupingStore.js +139 -0
- data/public/ext-3.0.0/src/data/HttpProxy.js +276 -0
- data/public/ext-3.0.0/src/data/JsonReader.js +311 -0
- data/public/ext-3.0.0/src/data/JsonStore.js +49 -0
- data/public/ext-3.0.0/src/data/JsonWriter.js +77 -0
- data/public/ext-3.0.0/src/data/MemoryProxy.js +69 -0
- data/public/ext-3.0.0/src/data/Record.js +400 -0
- data/public/ext-3.0.0/src/data/ScriptTagProxy.js +279 -0
- data/public/ext-3.0.0/src/data/SortTypes.js +91 -0
- data/public/ext-3.0.0/src/data/Store.js +1492 -0
- data/public/ext-3.0.0/src/data/StoreMgr.js +72 -0
- data/public/ext-3.0.0/src/data/Tree.js +785 -0
- data/public/ext-3.0.0/src/data/XmlReader.js +128 -0
- data/public/ext-3.0.0/src/data/XmlStore.js +75 -0
- data/public/ext-3.0.0/src/data/XmlWriter.js +45 -0
- data/public/ext-3.0.0/src/data/core/Connection.js +575 -0
- data/public/ext-3.0.0/src/dd/DDCore.js +2992 -0
- data/public/ext-3.0.0/src/dd/DragSource.js +365 -0
- data/public/ext-3.0.0/src/dd/DragTracker.js +217 -0
- data/public/ext-3.0.0/src/dd/DragZone.js +133 -0
- data/public/ext-3.0.0/src/dd/DropTarget.js +115 -0
- data/public/ext-3.0.0/src/dd/DropZone.js +262 -0
- data/public/ext-3.0.0/src/dd/Registry.js +127 -0
- data/public/ext-3.0.0/src/dd/ScrollManager.js +201 -0
- data/public/ext-3.0.0/src/dd/StatusProxy.js +171 -0
- data/public/ext-3.0.0/src/debug.js +906 -0
- data/public/ext-3.0.0/src/direct/Direct.js +235 -0
- data/public/ext-3.0.0/src/direct/Event.js +34 -0
- data/public/ext-3.0.0/src/direct/JsonProvider.js +45 -0
- data/public/ext-3.0.0/src/direct/PollingProvider.js +151 -0
- data/public/ext-3.0.0/src/direct/Provider.js +110 -0
- data/public/ext-3.0.0/src/direct/RemotingProvider.js +373 -0
- data/public/ext-3.0.0/src/direct/Transaction.js +32 -0
- data/public/ext-3.0.0/src/locale/ext-lang-af.js +184 -0
- data/public/ext-3.0.0/src/locale/ext-lang-bg.js +278 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ca.js +315 -0
- data/public/ext-3.0.0/src/locale/ext-lang-cs.js +293 -0
- data/public/ext-3.0.0/src/locale/ext-lang-da.js +296 -0
- data/public/ext-3.0.0/src/locale/ext-lang-de.js +326 -0
- data/public/ext-3.0.0/src/locale/ext-lang-el_GR.js +309 -0
- data/public/ext-3.0.0/src/locale/ext-lang-en.js +335 -0
- data/public/ext-3.0.0/src/locale/ext-lang-en_GB.js +315 -0
- data/public/ext-3.0.0/src/locale/ext-lang-es.js +318 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fa.js +272 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fi.js +302 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fr.js +335 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fr_CA.js +218 -0
- data/public/ext-3.0.0/src/locale/ext-lang-gr.js +175 -0
- data/public/ext-3.0.0/src/locale/ext-lang-he.js +292 -0
- data/public/ext-3.0.0/src/locale/ext-lang-hr.js +295 -0
- data/public/ext-3.0.0/src/locale/ext-lang-hu.js +296 -0
- data/public/ext-3.0.0/src/locale/ext-lang-id.js +302 -0
- data/public/ext-3.0.0/src/locale/ext-lang-it.js +295 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ja.js +318 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ko.js +267 -0
- data/public/ext-3.0.0/src/locale/ext-lang-lt.js +333 -0
- data/public/ext-3.0.0/src/locale/ext-lang-lv.js +176 -0
- data/public/ext-3.0.0/src/locale/ext-lang-mk.js +176 -0
- data/public/ext-3.0.0/src/locale/ext-lang-nl.js +323 -0
- data/public/ext-3.0.0/src/locale/ext-lang-no_NB.js +294 -0
- data/public/ext-3.0.0/src/locale/ext-lang-no_NN.js +294 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pl.js +304 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pt.js +260 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pt_BR.js +302 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pt_PT.js +298 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ro.js +295 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ru.js +319 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sk.js +182 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sl.js +176 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sr.js +179 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sr_RS.js +178 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sv_SE.js +178 -0
- data/public/ext-3.0.0/src/locale/ext-lang-th.js +294 -0
- data/public/ext-3.0.0/src/locale/ext-lang-tr.js +306 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ukr.js +258 -0
- data/public/ext-3.0.0/src/locale/ext-lang-vn.js +181 -0
- data/public/ext-3.0.0/src/locale/ext-lang-zh_CN.js +174 -0
- data/public/ext-3.0.0/src/locale/ext-lang-zh_TW.js +178 -0
- data/public/ext-3.0.0/src/state/CookieProvider.js +91 -0
- data/public/ext-3.0.0/src/state/Provider.js +127 -0
- data/public/ext-3.0.0/src/state/StateManager.js +69 -0
- data/public/ext-3.0.0/src/util/CSS.js +161 -0
- data/public/ext-3.0.0/src/util/ClickRepeater.js +200 -0
- data/public/ext-3.0.0/src/util/Cookies.js +96 -0
- data/public/ext-3.0.0/src/util/Date.js +1317 -0
- data/public/ext-3.0.0/src/util/Format.js +356 -0
- data/public/ext-3.0.0/src/util/History.js +203 -0
- data/public/ext-3.0.0/src/util/KeyMap.js +242 -0
- data/public/ext-3.0.0/src/util/KeyNav.js +161 -0
- data/public/ext-3.0.0/src/util/MixedCollection.js +576 -0
- data/public/ext-3.0.0/src/util/Observable-more.js +178 -0
- data/public/ext-3.0.0/src/util/TextMetrics.js +131 -0
- data/public/ext-3.0.0/src/util/UpdateManager.js +536 -0
- data/public/ext-3.0.0/src/util/XTemplate.js +379 -0
- data/public/ext-3.0.0/src/util/core/DelayedTask.js +68 -0
- data/public/ext-3.0.0/src/util/core/JSON.js +174 -0
- data/public/ext-3.0.0/src/util/core/Observable.js +483 -0
- data/public/ext-3.0.0/src/util/core/TaskMgr.js +174 -0
- data/public/ext-3.0.0/src/widgets/Action.js +252 -0
- data/public/ext-3.0.0/src/widgets/BoxComponent.js +519 -0
- data/public/ext-3.0.0/src/widgets/Button.js +762 -0
- data/public/ext-3.0.0/src/widgets/ButtonGroup.js +103 -0
- data/public/ext-3.0.0/src/widgets/ColorPalette.js +148 -0
- data/public/ext-3.0.0/src/widgets/Component.js +1540 -0
- data/public/ext-3.0.0/src/widgets/ComponentMgr.js +159 -0
- data/public/ext-3.0.0/src/widgets/Container.js +894 -0
- data/public/ext-3.0.0/src/widgets/CycleButton.js +188 -0
- data/public/ext-3.0.0/src/widgets/DataView.js +749 -0
- data/public/ext-3.0.0/src/widgets/DatePicker.js +771 -0
- data/public/ext-3.0.0/src/widgets/Editor.js +385 -0
- data/public/ext-3.0.0/src/widgets/Layer.js +466 -0
- data/public/ext-3.0.0/src/widgets/LoadMask.js +123 -0
- data/public/ext-3.0.0/src/widgets/MessageBox.js +626 -0
- data/public/ext-3.0.0/src/widgets/PagingToolbar.js +502 -0
- data/public/ext-3.0.0/src/widgets/Panel.js +1772 -0
- data/public/ext-3.0.0/src/widgets/PanelDD.js +154 -0
- data/public/ext-3.0.0/src/widgets/ProgressBar.js +289 -0
- data/public/ext-3.0.0/src/widgets/Resizable.js +760 -0
- data/public/ext-3.0.0/src/widgets/Shadow.js +192 -0
- data/public/ext-3.0.0/src/widgets/Slider.js +426 -0
- data/public/ext-3.0.0/src/widgets/SplitBar.js +436 -0
- data/public/ext-3.0.0/src/widgets/SplitButton.js +124 -0
- data/public/ext-3.0.0/src/widgets/TabPanel.js +1100 -0
- data/public/ext-3.0.0/src/widgets/Toolbar.js +781 -0
- data/public/ext-3.0.0/src/widgets/Viewport.js +124 -0
- data/public/ext-3.0.0/src/widgets/Window.js +941 -0
- data/public/ext-3.0.0/src/widgets/WindowManager.js +187 -0
- data/public/ext-3.0.0/src/widgets/chart/Chart.js +721 -0
- data/public/ext-3.0.0/src/widgets/chart/EventProxy.js +20 -0
- data/public/ext-3.0.0/src/widgets/chart/FlashComponent.js +117 -0
- data/public/ext-3.0.0/src/widgets/chart/swfobject.js +783 -0
- data/public/ext-3.0.0/src/widgets/form/Action.js +626 -0
- data/public/ext-3.0.0/src/widgets/form/BasicForm.js +735 -0
- data/public/ext-3.0.0/src/widgets/form/Checkbox.js +177 -0
- data/public/ext-3.0.0/src/widgets/form/CheckboxGroup.js +419 -0
- data/public/ext-3.0.0/src/widgets/form/Combo.js +1232 -0
- data/public/ext-3.0.0/src/widgets/form/DateField.js +389 -0
- data/public/ext-3.0.0/src/widgets/form/DisplayField.js +98 -0
- data/public/ext-3.0.0/src/widgets/form/Field.js +640 -0
- data/public/ext-3.0.0/src/widgets/form/FieldSet.js +305 -0
- data/public/ext-3.0.0/src/widgets/form/Form.js +335 -0
- data/public/ext-3.0.0/src/widgets/form/Hidden.js +39 -0
- data/public/ext-3.0.0/src/widgets/form/HtmlEditor.js +1179 -0
- data/public/ext-3.0.0/src/widgets/form/Label.js +64 -0
- data/public/ext-3.0.0/src/widgets/form/NumberField.js +139 -0
- data/public/ext-3.0.0/src/widgets/form/Radio.js +81 -0
- data/public/ext-3.0.0/src/widgets/form/RadioGroup.js +116 -0
- data/public/ext-3.0.0/src/widgets/form/TextArea.js +117 -0
- data/public/ext-3.0.0/src/widgets/form/TextField.js +491 -0
- data/public/ext-3.0.0/src/widgets/form/TimeField.js +146 -0
- data/public/ext-3.0.0/src/widgets/form/TriggerField.js +328 -0
- data/public/ext-3.0.0/src/widgets/form/VTypes.js +135 -0
- data/public/ext-3.0.0/src/widgets/grid/AbstractSelectionModel.js +57 -0
- data/public/ext-3.0.0/src/widgets/grid/CellSelectionModel.js +262 -0
- data/public/ext-3.0.0/src/widgets/grid/CheckboxSelectionModel.js +103 -0
- data/public/ext-3.0.0/src/widgets/grid/Column.js +406 -0
- data/public/ext-3.0.0/src/widgets/grid/ColumnDD.js +199 -0
- data/public/ext-3.0.0/src/widgets/grid/ColumnModel.js +592 -0
- data/public/ext-3.0.0/src/widgets/grid/ColumnSplitDD.js +62 -0
- data/public/ext-3.0.0/src/widgets/grid/EditorGrid.js +291 -0
- data/public/ext-3.0.0/src/widgets/grid/GridDD.js +95 -0
- data/public/ext-3.0.0/src/widgets/grid/GridEditor.js +21 -0
- data/public/ext-3.0.0/src/widgets/grid/GridPanel.js +952 -0
- data/public/ext-3.0.0/src/widgets/grid/GridView.js +1776 -0
- data/public/ext-3.0.0/src/widgets/grid/GroupingView.js +517 -0
- data/public/ext-3.0.0/src/widgets/grid/PropertyGrid.js +370 -0
- data/public/ext-3.0.0/src/widgets/grid/RowNumberer.js +61 -0
- data/public/ext-3.0.0/src/widgets/grid/RowSelectionModel.js +530 -0
- data/public/ext-3.0.0/src/widgets/layout/AbsoluteLayout.js +82 -0
- data/public/ext-3.0.0/src/widgets/layout/AccordionLayout.js +177 -0
- data/public/ext-3.0.0/src/widgets/layout/AnchorLayout.js +200 -0
- data/public/ext-3.0.0/src/widgets/layout/BorderLayout.js +1108 -0
- data/public/ext-3.0.0/src/widgets/layout/BoxLayout.js +417 -0
- data/public/ext-3.0.0/src/widgets/layout/CardLayout.js +127 -0
- data/public/ext-3.0.0/src/widgets/layout/ColumnLayout.js +130 -0
- data/public/ext-3.0.0/src/widgets/layout/ContainerLayout.js +215 -0
- data/public/ext-3.0.0/src/widgets/layout/FitLayout.js +48 -0
- data/public/ext-3.0.0/src/widgets/layout/FormLayout.js +266 -0
- data/public/ext-3.0.0/src/widgets/layout/TableLayout.js +194 -0
- data/public/ext-3.0.0/src/widgets/list/ColumnResizer.js +123 -0
- data/public/ext-3.0.0/src/widgets/list/ListView.js +357 -0
- data/public/ext-3.0.0/src/widgets/list/Sorter.js +70 -0
- data/public/ext-3.0.0/src/widgets/menu/BaseItem.js +160 -0
- data/public/ext-3.0.0/src/widgets/menu/CheckItem.js +114 -0
- data/public/ext-3.0.0/src/widgets/menu/ColorMenu.js +72 -0
- data/public/ext-3.0.0/src/widgets/menu/DateMenu.js +90 -0
- data/public/ext-3.0.0/src/widgets/menu/Item.js +211 -0
- data/public/ext-3.0.0/src/widgets/menu/Menu.js +733 -0
- data/public/ext-3.0.0/src/widgets/menu/MenuMgr.js +211 -0
- data/public/ext-3.0.0/src/widgets/menu/Separator.js +46 -0
- data/public/ext-3.0.0/src/widgets/menu/TextItem.js +46 -0
- data/public/ext-3.0.0/src/widgets/tips/QuickTip.js +207 -0
- data/public/ext-3.0.0/src/widgets/tips/QuickTips.js +159 -0
- data/public/ext-3.0.0/src/widgets/tips/Tip.js +157 -0
- data/public/ext-3.0.0/src/widgets/tips/ToolTip.js +492 -0
- data/public/ext-3.0.0/src/widgets/tree/AsyncTreeNode.js +114 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeDragZone.js +82 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeDropZone.js +321 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeEditor.js +160 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeEventModel.js +169 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeFilter.js +114 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeLoader.js +342 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeNode.js +546 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeNodeUI.js +633 -0
- data/public/ext-3.0.0/src/widgets/tree/TreePanel.js +918 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeSelectionModel.js +315 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeSorter.js +106 -0
- data/public/js/ext-portal.js +235 -0
- data/public/js/global.js +7 -0
- data/public/js/outerframe.js +47 -0
- data/public/js/portal.js +713 -0
- data/public/js/test_chart.js +152 -0
- data/test/config.rb +62 -0
- data/test/config/hosts.yaml +5 -0
- data/test/config/log.yaml +1 -0
- data/test/config/memcache.yaml +5 -0
- data/test/exception.rb +39 -0
- data/test/method_missing.rb +14 -0
- data/test/module.rb +39 -0
- data/test/remote_lmp.rb +126 -0
- data/test/sinatra.rb +29 -0
- data/test/sinatra_base.rb +16 -0
- metadata +690 -0
|
@@ -0,0 +1,626 @@
|
|
|
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.form.Action
|
|
9
|
+
* <p>The subclasses of this class provide actions to perform upon {@link Ext.form.BasicForm Form}s.</p>
|
|
10
|
+
* <p>Instances of this class are only created by a {@link Ext.form.BasicForm Form} when
|
|
11
|
+
* the Form needs to perform an action such as submit or load. The Configuration options
|
|
12
|
+
* listed for this class are set through the Form's action methods: {@link Ext.form.BasicForm#submit submit},
|
|
13
|
+
* {@link Ext.form.BasicForm#load load} and {@link Ext.form.BasicForm#doAction doAction}</p>
|
|
14
|
+
* <p>The instance of Action which performed the action is passed to the success
|
|
15
|
+
* and failure callbacks of the Form's action methods ({@link Ext.form.BasicForm#submit submit},
|
|
16
|
+
* {@link Ext.form.BasicForm#load load} and {@link Ext.form.BasicForm#doAction doAction}),
|
|
17
|
+
* and to the {@link Ext.form.BasicForm#actioncomplete actioncomplete} and
|
|
18
|
+
* {@link Ext.form.BasicForm#actionfailed actionfailed} event handlers.</p>
|
|
19
|
+
*/
|
|
20
|
+
Ext.form.Action = function(form, options){
|
|
21
|
+
this.form = form;
|
|
22
|
+
this.options = options || {};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Failure type returned when client side validation of the Form fails
|
|
27
|
+
* thus aborting a submit action. Client side validation is performed unless
|
|
28
|
+
* {@link #clientValidation} is explicitly set to <tt>false</tt>.
|
|
29
|
+
* @type {String}
|
|
30
|
+
* @static
|
|
31
|
+
*/
|
|
32
|
+
Ext.form.Action.CLIENT_INVALID = 'client';
|
|
33
|
+
/**
|
|
34
|
+
* <p>Failure type returned when server side processing fails and the {@link #result}'s
|
|
35
|
+
* <tt style="font-weight:bold">success</tt> property is set to <tt>false</tt>.</p>
|
|
36
|
+
* <p>In the case of a form submission, field-specific error messages may be returned in the
|
|
37
|
+
* {@link #result}'s <tt style="font-weight:bold">errors</tt> property.</p>
|
|
38
|
+
* @type {String}
|
|
39
|
+
* @static
|
|
40
|
+
*/
|
|
41
|
+
Ext.form.Action.SERVER_INVALID = 'server';
|
|
42
|
+
/**
|
|
43
|
+
* Failure type returned when a communication error happens when attempting
|
|
44
|
+
* to send a request to the remote server. The {@link #response} may be examined to
|
|
45
|
+
* provide further information.
|
|
46
|
+
* @type {String}
|
|
47
|
+
* @static
|
|
48
|
+
*/
|
|
49
|
+
Ext.form.Action.CONNECT_FAILURE = 'connect';
|
|
50
|
+
/**
|
|
51
|
+
* Failure type returned when the response's <tt style="font-weight:bold">success</tt>
|
|
52
|
+
* property is set to <tt>false</tt>, or no field values are returned in the response's
|
|
53
|
+
* <tt style="font-weight:bold">data</tt> property.
|
|
54
|
+
* @type {String}
|
|
55
|
+
* @static
|
|
56
|
+
*/
|
|
57
|
+
Ext.form.Action.LOAD_FAILURE = 'load';
|
|
58
|
+
|
|
59
|
+
Ext.form.Action.prototype = {
|
|
60
|
+
/**
|
|
61
|
+
* @cfg {String} url The URL that the Action is to invoke.
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* @cfg {Boolean} reset When set to <tt><b>true</b></tt>, causes the Form to be
|
|
65
|
+
* {@link Ext.form.BasicForm.reset reset} on Action success. If specified, this happens
|
|
66
|
+
* <b>before</b> the {@link #success} callback is called and before the Form's
|
|
67
|
+
* {@link Ext.form.BasicForm.actioncomplete actioncomplete} event fires.
|
|
68
|
+
*/
|
|
69
|
+
/**
|
|
70
|
+
* @cfg {String} method The HTTP method to use to access the requested URL. Defaults to the
|
|
71
|
+
* {@link Ext.form.BasicForm}'s method, or if that is not specified, the underlying DOM form's method.
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* @cfg {Mixed} params <p>Extra parameter values to pass. These are added to the Form's
|
|
75
|
+
* {@link Ext.form.BasicForm#baseParams} and passed to the specified URL along with the Form's
|
|
76
|
+
* input fields.</p>
|
|
77
|
+
* <p>Parameters are encoded as standard HTTP parameters using {@link Ext#urlEncode}.</p>
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* @cfg {Number} timeout The number of seconds to wait for a server response before
|
|
81
|
+
* failing with the {@link #failureType} as {@link #Action.CONNECT_FAILURE}. If not specified,
|
|
82
|
+
* defaults to the configured <tt>{@link Ext.form.BasicForm#timeout timeout}</tt> of the
|
|
83
|
+
* {@link Ext.form.BasicForm form}.
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* @cfg {Function} success The function to call when a valid success return packet is recieved.
|
|
87
|
+
* The function is passed the following parameters:<ul class="mdetail-params">
|
|
88
|
+
* <li><b>form</b> : Ext.form.BasicForm<div class="sub-desc">The form that requested the action</div></li>
|
|
89
|
+
* <li><b>action</b> : Ext.form.Action<div class="sub-desc">The Action class. The {@link #result}
|
|
90
|
+
* property of this object may be examined to perform custom postprocessing.</div></li>
|
|
91
|
+
* </ul>
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* @cfg {Function} failure The function to call when a failure packet was recieved, or when an
|
|
95
|
+
* error ocurred in the Ajax communication.
|
|
96
|
+
* The function is passed the following parameters:<ul class="mdetail-params">
|
|
97
|
+
* <li><b>form</b> : Ext.form.BasicForm<div class="sub-desc">The form that requested the action</div></li>
|
|
98
|
+
* <li><b>action</b> : Ext.form.Action<div class="sub-desc">The Action class. If an Ajax
|
|
99
|
+
* error ocurred, the failure type will be in {@link #failureType}. The {@link #result}
|
|
100
|
+
* property of this object may be examined to perform custom postprocessing.</div></li>
|
|
101
|
+
* </ul>
|
|
102
|
+
*/
|
|
103
|
+
/**
|
|
104
|
+
* @cfg {Object} scope The scope in which to call the callback functions (The <tt>this</tt> reference
|
|
105
|
+
* for the callback functions).
|
|
106
|
+
*/
|
|
107
|
+
/**
|
|
108
|
+
* @cfg {String} waitMsg The message to be displayed by a call to {@link Ext.MessageBox#wait}
|
|
109
|
+
* during the time the action is being processed.
|
|
110
|
+
*/
|
|
111
|
+
/**
|
|
112
|
+
* @cfg {String} waitTitle The title to be displayed by a call to {@link Ext.MessageBox#wait}
|
|
113
|
+
* during the time the action is being processed.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The type of action this Action instance performs.
|
|
118
|
+
* Currently only "submit" and "load" are supported.
|
|
119
|
+
* @type {String}
|
|
120
|
+
*/
|
|
121
|
+
type : 'default',
|
|
122
|
+
/**
|
|
123
|
+
* The type of failure detected will be one of these: {@link #CLIENT_INVALID},
|
|
124
|
+
* {@link #SERVER_INVALID}, {@link #CONNECT_FAILURE}, or {@link #LOAD_FAILURE}. Usage:
|
|
125
|
+
* <pre><code>
|
|
126
|
+
var fp = new Ext.form.FormPanel({
|
|
127
|
+
...
|
|
128
|
+
buttons: [{
|
|
129
|
+
text: 'Save',
|
|
130
|
+
formBind: true,
|
|
131
|
+
handler: function(){
|
|
132
|
+
if(fp.getForm().isValid()){
|
|
133
|
+
fp.getForm().submit({
|
|
134
|
+
url: 'form-submit.php',
|
|
135
|
+
waitMsg: 'Submitting your data...',
|
|
136
|
+
success: function(form, action){
|
|
137
|
+
// server responded with success = true
|
|
138
|
+
var result = action.{@link #result};
|
|
139
|
+
},
|
|
140
|
+
failure: function(form, action){
|
|
141
|
+
if (action.{@link #failureType} === Ext.form.Action.{@link #CONNECT_FAILURE}) {
|
|
142
|
+
Ext.Msg.alert('Error',
|
|
143
|
+
'Status:'+action.{@link #response}.status+': '+
|
|
144
|
+
action.{@link #response}.statusText);
|
|
145
|
+
}
|
|
146
|
+
if (action.failureType === Ext.form.Action.{@link #SERVER_INVALID}){
|
|
147
|
+
// server responded with success = false
|
|
148
|
+
Ext.Msg.alert('Invalid', action.{@link #result}.errormsg);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},{
|
|
155
|
+
text: 'Reset',
|
|
156
|
+
handler: function(){
|
|
157
|
+
fp.getForm().reset();
|
|
158
|
+
}
|
|
159
|
+
}]
|
|
160
|
+
* </code></pre>
|
|
161
|
+
* @property failureType
|
|
162
|
+
* @type {String}
|
|
163
|
+
*/
|
|
164
|
+
/**
|
|
165
|
+
* The XMLHttpRequest object used to perform the action.
|
|
166
|
+
* @property response
|
|
167
|
+
* @type {Object}
|
|
168
|
+
*/
|
|
169
|
+
/**
|
|
170
|
+
* The decoded response object containing a boolean <tt style="font-weight:bold">success</tt> property and
|
|
171
|
+
* other, action-specific properties.
|
|
172
|
+
* @property result
|
|
173
|
+
* @type {Object}
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
// interface method
|
|
177
|
+
run : function(options){
|
|
178
|
+
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
// interface method
|
|
182
|
+
success : function(response){
|
|
183
|
+
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
// interface method
|
|
187
|
+
handleResponse : function(response){
|
|
188
|
+
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
// default connection failure
|
|
192
|
+
failure : function(response){
|
|
193
|
+
this.response = response;
|
|
194
|
+
this.failureType = Ext.form.Action.CONNECT_FAILURE;
|
|
195
|
+
this.form.afterAction(this, false);
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
// private
|
|
199
|
+
// shared code among all Actions to validate that there was a response
|
|
200
|
+
// with either responseText or responseXml
|
|
201
|
+
processResponse : function(response){
|
|
202
|
+
this.response = response;
|
|
203
|
+
if(!response.responseText && !response.responseXML){
|
|
204
|
+
return true;
|
|
205
|
+
}
|
|
206
|
+
this.result = this.handleResponse(response);
|
|
207
|
+
return this.result;
|
|
208
|
+
},
|
|
209
|
+
|
|
210
|
+
// utility functions used internally
|
|
211
|
+
getUrl : function(appendParams){
|
|
212
|
+
var url = this.options.url || this.form.url || this.form.el.dom.action;
|
|
213
|
+
if(appendParams){
|
|
214
|
+
var p = this.getParams();
|
|
215
|
+
if(p){
|
|
216
|
+
url = Ext.urlAppend(url, p);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return url;
|
|
220
|
+
},
|
|
221
|
+
|
|
222
|
+
// private
|
|
223
|
+
getMethod : function(){
|
|
224
|
+
return (this.options.method || this.form.method || this.form.el.dom.method || 'POST').toUpperCase();
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
// private
|
|
228
|
+
getParams : function(){
|
|
229
|
+
var bp = this.form.baseParams;
|
|
230
|
+
var p = this.options.params;
|
|
231
|
+
if(p){
|
|
232
|
+
if(typeof p == "object"){
|
|
233
|
+
p = Ext.urlEncode(Ext.applyIf(p, bp));
|
|
234
|
+
}else if(typeof p == 'string' && bp){
|
|
235
|
+
p += '&' + Ext.urlEncode(bp);
|
|
236
|
+
}
|
|
237
|
+
}else if(bp){
|
|
238
|
+
p = Ext.urlEncode(bp);
|
|
239
|
+
}
|
|
240
|
+
return p;
|
|
241
|
+
},
|
|
242
|
+
|
|
243
|
+
// private
|
|
244
|
+
createCallback : function(opts){
|
|
245
|
+
var opts = opts || {};
|
|
246
|
+
return {
|
|
247
|
+
success: this.success,
|
|
248
|
+
failure: this.failure,
|
|
249
|
+
scope: this,
|
|
250
|
+
timeout: (opts.timeout*1000) || (this.form.timeout*1000),
|
|
251
|
+
upload: this.form.fileUpload ? this.success : undefined
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @class Ext.form.Action.Submit
|
|
258
|
+
* @extends Ext.form.Action
|
|
259
|
+
* <p>A class which handles submission of data from {@link Ext.form.BasicForm Form}s
|
|
260
|
+
* and processes the returned response.</p>
|
|
261
|
+
* <p>Instances of this class are only created by a {@link Ext.form.BasicForm Form} when
|
|
262
|
+
* {@link Ext.form.BasicForm#submit submit}ting.</p>
|
|
263
|
+
* <p><u><b>Response Packet Criteria</b></u></p>
|
|
264
|
+
* <p>A response packet may contain:
|
|
265
|
+
* <div class="mdetail-params"><ul>
|
|
266
|
+
* <li><b><code>success</code></b> property : Boolean
|
|
267
|
+
* <div class="sub-desc">The <code>success</code> property is required.</div></li>
|
|
268
|
+
* <li><b><code>errors</code></b> property : Object
|
|
269
|
+
* <div class="sub-desc"><div class="sub-desc">The <code>errors</code> property,
|
|
270
|
+
* which is optional, contains error messages for invalid fields.</div></li>
|
|
271
|
+
* </ul></div>
|
|
272
|
+
* <p><u><b>JSON Packets</b></u></p>
|
|
273
|
+
* <p>By default, response packets are assumed to be JSON, so a typical response
|
|
274
|
+
* packet may look like this:</p><pre><code>
|
|
275
|
+
{
|
|
276
|
+
success: false,
|
|
277
|
+
errors: {
|
|
278
|
+
clientCode: "Client not found",
|
|
279
|
+
portOfLoading: "This field must not be null"
|
|
280
|
+
}
|
|
281
|
+
}</code></pre>
|
|
282
|
+
* <p>Other data may be placed into the response for processing by the {@link Ext.form.BasicForm}'s callback
|
|
283
|
+
* or event handler methods. The object decoded from this JSON is available in the
|
|
284
|
+
* {@link Ext.form.Action#result result} property.</p>
|
|
285
|
+
* <p>Alternatively, if an {@link #errorReader} is specified as an {@link Ext.data.XmlReader XmlReader}:</p><pre><code>
|
|
286
|
+
errorReader: new Ext.data.XmlReader({
|
|
287
|
+
record : 'field',
|
|
288
|
+
success: '@success'
|
|
289
|
+
}, [
|
|
290
|
+
'id', 'msg'
|
|
291
|
+
]
|
|
292
|
+
)
|
|
293
|
+
</code></pre>
|
|
294
|
+
* <p>then the results may be sent back in XML format:</p><pre><code>
|
|
295
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
296
|
+
<message success="false">
|
|
297
|
+
<errors>
|
|
298
|
+
<field>
|
|
299
|
+
<id>clientCode</id>
|
|
300
|
+
<msg><![CDATA[Code not found. <br /><i>This is a test validation message from the server </i>]]></msg>
|
|
301
|
+
</field>
|
|
302
|
+
<field>
|
|
303
|
+
<id>portOfLoading</id>
|
|
304
|
+
<msg><![CDATA[Port not found. <br /><i>This is a test validation message from the server </i>]]></msg>
|
|
305
|
+
</field>
|
|
306
|
+
</errors>
|
|
307
|
+
</message>
|
|
308
|
+
</code></pre>
|
|
309
|
+
* <p>Other elements may be placed into the response XML for processing by the {@link Ext.form.BasicForm}'s callback
|
|
310
|
+
* or event handler methods. The XML document is available in the {@link #errorReader}'s {@link Ext.data.XmlReader#xmlData xmlData} property.</p>
|
|
311
|
+
*/
|
|
312
|
+
Ext.form.Action.Submit = function(form, options){
|
|
313
|
+
Ext.form.Action.Submit.superclass.constructor.call(this, form, options);
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
Ext.extend(Ext.form.Action.Submit, Ext.form.Action, {
|
|
317
|
+
/**
|
|
318
|
+
* @cfg {Ext.data.DataReader} errorReader <p><b>Optional. JSON is interpreted with
|
|
319
|
+
* no need for an errorReader.</b></p>
|
|
320
|
+
* <p>A Reader which reads a single record from the returned data. The DataReader's
|
|
321
|
+
* <b>success</b> property specifies how submission success is determined. The Record's
|
|
322
|
+
* data provides the error messages to apply to any invalid form Fields.</p>
|
|
323
|
+
*/
|
|
324
|
+
/**
|
|
325
|
+
* @cfg {boolean} clientValidation Determines whether a Form's fields are validated
|
|
326
|
+
* in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission.
|
|
327
|
+
* Pass <tt>false</tt> in the Form's submit options to prevent this. If not defined, pre-submission field validation
|
|
328
|
+
* is performed.
|
|
329
|
+
*/
|
|
330
|
+
type : 'submit',
|
|
331
|
+
|
|
332
|
+
// private
|
|
333
|
+
run : function(){
|
|
334
|
+
var o = this.options;
|
|
335
|
+
var method = this.getMethod();
|
|
336
|
+
var isGet = method == 'GET';
|
|
337
|
+
if(o.clientValidation === false || this.form.isValid()){
|
|
338
|
+
Ext.Ajax.request(Ext.apply(this.createCallback(o), {
|
|
339
|
+
form:this.form.el.dom,
|
|
340
|
+
url:this.getUrl(isGet),
|
|
341
|
+
method: method,
|
|
342
|
+
headers: o.headers,
|
|
343
|
+
params:!isGet ? this.getParams() : null,
|
|
344
|
+
isUpload: this.form.fileUpload
|
|
345
|
+
}));
|
|
346
|
+
}else if (o.clientValidation !== false){ // client validation failed
|
|
347
|
+
this.failureType = Ext.form.Action.CLIENT_INVALID;
|
|
348
|
+
this.form.afterAction(this, false);
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
|
|
352
|
+
// private
|
|
353
|
+
success : function(response){
|
|
354
|
+
var result = this.processResponse(response);
|
|
355
|
+
if(result === true || result.success){
|
|
356
|
+
this.form.afterAction(this, true);
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
if(result.errors){
|
|
360
|
+
this.form.markInvalid(result.errors);
|
|
361
|
+
this.failureType = Ext.form.Action.SERVER_INVALID;
|
|
362
|
+
}
|
|
363
|
+
this.form.afterAction(this, false);
|
|
364
|
+
},
|
|
365
|
+
|
|
366
|
+
// private
|
|
367
|
+
handleResponse : function(response){
|
|
368
|
+
if(this.form.errorReader){
|
|
369
|
+
var rs = this.form.errorReader.read(response);
|
|
370
|
+
var errors = [];
|
|
371
|
+
if(rs.records){
|
|
372
|
+
for(var i = 0, len = rs.records.length; i < len; i++) {
|
|
373
|
+
var r = rs.records[i];
|
|
374
|
+
errors[i] = r.data;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
if(errors.length < 1){
|
|
378
|
+
errors = null;
|
|
379
|
+
}
|
|
380
|
+
return {
|
|
381
|
+
success : rs.success,
|
|
382
|
+
errors : errors
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
return Ext.decode(response.responseText);
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* @class Ext.form.Action.Load
|
|
392
|
+
* @extends Ext.form.Action
|
|
393
|
+
* <p>A class which handles loading of data from a server into the Fields of an {@link Ext.form.BasicForm}.</p>
|
|
394
|
+
* <p>Instances of this class are only created by a {@link Ext.form.BasicForm Form} when
|
|
395
|
+
* {@link Ext.form.BasicForm#load load}ing.</p>
|
|
396
|
+
* <p><u><b>Response Packet Criteria</b></u></p>
|
|
397
|
+
* <p>A response packet <b>must</b> contain:
|
|
398
|
+
* <div class="mdetail-params"><ul>
|
|
399
|
+
* <li><b><code>success</code></b> property : Boolean</li>
|
|
400
|
+
* <li><b><code>data</code></b> property : Object</li>
|
|
401
|
+
* <div class="sub-desc">The <code>data</code> property contains the values of Fields to load.
|
|
402
|
+
* The individual value object for each Field is passed to the Field's
|
|
403
|
+
* {@link Ext.form.Field#setValue setValue} method.</div></li>
|
|
404
|
+
* </ul></div>
|
|
405
|
+
* <p><u><b>JSON Packets</b></u></p>
|
|
406
|
+
* <p>By default, response packets are assumed to be JSON, so for the following form load call:<pre><code>
|
|
407
|
+
var myFormPanel = new Ext.form.FormPanel({
|
|
408
|
+
title: 'Client and routing info',
|
|
409
|
+
items: [{
|
|
410
|
+
fieldLabel: 'Client',
|
|
411
|
+
name: 'clientName'
|
|
412
|
+
}, {
|
|
413
|
+
fieldLabel: 'Port of loading',
|
|
414
|
+
name: 'portOfLoading'
|
|
415
|
+
}, {
|
|
416
|
+
fieldLabel: 'Port of discharge',
|
|
417
|
+
name: 'portOfDischarge'
|
|
418
|
+
}]
|
|
419
|
+
});
|
|
420
|
+
myFormPanel.{@link Ext.form.FormPanel#getForm getForm}().{@link Ext.form.BasicForm#load load}({
|
|
421
|
+
url: '/getRoutingInfo.php',
|
|
422
|
+
params: {
|
|
423
|
+
consignmentRef: myConsignmentRef
|
|
424
|
+
},
|
|
425
|
+
failure: function(form, action() {
|
|
426
|
+
Ext.Msg.alert("Load failed", action.result.errorMessage);
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
</code></pre>
|
|
430
|
+
* a <b>success response</b> packet may look like this:</p><pre><code>
|
|
431
|
+
{
|
|
432
|
+
success: true,
|
|
433
|
+
data: {
|
|
434
|
+
clientName: "Fred. Olsen Lines",
|
|
435
|
+
portOfLoading: "FXT",
|
|
436
|
+
portOfDischarge: "OSL"
|
|
437
|
+
}
|
|
438
|
+
}</code></pre>
|
|
439
|
+
* while a <b>failure response</b> packet may look like this:</p><pre><code>
|
|
440
|
+
{
|
|
441
|
+
success: false,
|
|
442
|
+
errorMessage: "Consignment reference not found"
|
|
443
|
+
}</code></pre>
|
|
444
|
+
* <p>Other data may be placed into the response for processing the {@link Ext.form.BasicForm Form}'s
|
|
445
|
+
* callback or event handler methods. The object decoded from this JSON is available in the
|
|
446
|
+
* {@link Ext.form.Action#result result} property.</p>
|
|
447
|
+
*/
|
|
448
|
+
Ext.form.Action.Load = function(form, options){
|
|
449
|
+
Ext.form.Action.Load.superclass.constructor.call(this, form, options);
|
|
450
|
+
this.reader = this.form.reader;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
Ext.extend(Ext.form.Action.Load, Ext.form.Action, {
|
|
454
|
+
// private
|
|
455
|
+
type : 'load',
|
|
456
|
+
|
|
457
|
+
// private
|
|
458
|
+
run : function(){
|
|
459
|
+
Ext.Ajax.request(Ext.apply(
|
|
460
|
+
this.createCallback(this.options), {
|
|
461
|
+
method:this.getMethod(),
|
|
462
|
+
url:this.getUrl(false),
|
|
463
|
+
headers: this.options.headers,
|
|
464
|
+
params:this.getParams()
|
|
465
|
+
}));
|
|
466
|
+
},
|
|
467
|
+
|
|
468
|
+
// private
|
|
469
|
+
success : function(response){
|
|
470
|
+
var result = this.processResponse(response);
|
|
471
|
+
if(result === true || !result.success || !result.data){
|
|
472
|
+
this.failureType = Ext.form.Action.LOAD_FAILURE;
|
|
473
|
+
this.form.afterAction(this, false);
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
this.form.clearInvalid();
|
|
477
|
+
this.form.setValues(result.data);
|
|
478
|
+
this.form.afterAction(this, true);
|
|
479
|
+
},
|
|
480
|
+
|
|
481
|
+
// private
|
|
482
|
+
handleResponse : function(response){
|
|
483
|
+
if(this.form.reader){
|
|
484
|
+
var rs = this.form.reader.read(response);
|
|
485
|
+
var data = rs.records && rs.records[0] ? rs.records[0].data : null;
|
|
486
|
+
return {
|
|
487
|
+
success : rs.success,
|
|
488
|
+
data : data
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
return Ext.decode(response.responseText);
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* @class Ext.form.Action.DirectLoad
|
|
499
|
+
* @extends Ext.form.Action.Load
|
|
500
|
+
* Provides Ext.direct support for loading form data. This example illustrates usage
|
|
501
|
+
* of Ext.Direct to load a submit a form through Ext.Direct.
|
|
502
|
+
* <pre><code>
|
|
503
|
+
var myFormPanel = new Ext.form.FormPanel({
|
|
504
|
+
// configs for FormPanel
|
|
505
|
+
title: 'Basic Information',
|
|
506
|
+
border: false,
|
|
507
|
+
padding: 10,
|
|
508
|
+
buttons:[{
|
|
509
|
+
text: 'Submit',
|
|
510
|
+
handler: function(){
|
|
511
|
+
basicInfo.getForm().submit({
|
|
512
|
+
params: {
|
|
513
|
+
uid: 5
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
}],
|
|
518
|
+
|
|
519
|
+
// configs apply to child items
|
|
520
|
+
defaults: {anchor: '100%'},
|
|
521
|
+
defaultType: 'textfield',
|
|
522
|
+
items: [
|
|
523
|
+
// form fields go here
|
|
524
|
+
],
|
|
525
|
+
|
|
526
|
+
// configs for BasicForm
|
|
527
|
+
api: {
|
|
528
|
+
load: Profile.getBasicInfo,
|
|
529
|
+
// The server-side must mark the submit handler as a 'formHandler'
|
|
530
|
+
submit: Profile.updateBasicInfo
|
|
531
|
+
},
|
|
532
|
+
paramOrder: ['uid']
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
// load the form
|
|
536
|
+
myFormPanel.getForm().load({
|
|
537
|
+
params: {
|
|
538
|
+
uid: 5
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
* </code></pre>
|
|
542
|
+
*/
|
|
543
|
+
Ext.form.Action.DirectLoad = Ext.extend(Ext.form.Action.Load, {
|
|
544
|
+
constructor: function(form, opts) {
|
|
545
|
+
Ext.form.Action.DirectLoad.superclass.constructor.call(this, form, opts);
|
|
546
|
+
},
|
|
547
|
+
type: 'directload',
|
|
548
|
+
|
|
549
|
+
run : function(){
|
|
550
|
+
var args = this.getParams();
|
|
551
|
+
args.push(this.success, this);
|
|
552
|
+
this.form.api.load.apply(window, args);
|
|
553
|
+
},
|
|
554
|
+
|
|
555
|
+
getParams: function() {
|
|
556
|
+
var buf = [], o = {};
|
|
557
|
+
var bp = this.form.baseParams;
|
|
558
|
+
var p = this.options.params;
|
|
559
|
+
Ext.apply(o, p, bp);
|
|
560
|
+
var paramOrder = this.form.paramOrder;
|
|
561
|
+
if(paramOrder){
|
|
562
|
+
for(var i = 0, len = paramOrder.length; i < len; i++){
|
|
563
|
+
buf.push(o[paramOrder[i]]);
|
|
564
|
+
}
|
|
565
|
+
}else if(this.form.paramsAsHash){
|
|
566
|
+
buf.push(o);
|
|
567
|
+
}
|
|
568
|
+
return buf;
|
|
569
|
+
},
|
|
570
|
+
// Direct actions have already been processed and therefore
|
|
571
|
+
// we can directly set the result; Direct Actions do not have
|
|
572
|
+
// a this.response property.
|
|
573
|
+
processResponse: function(result) {
|
|
574
|
+
this.result = result;
|
|
575
|
+
return result;
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* @class Ext.form.Action.DirectSubmit
|
|
581
|
+
* @extends Ext.form.Action.Submit
|
|
582
|
+
* Provides Ext.direct support for submitting form data.
|
|
583
|
+
* See {@link Ext.form.Action.DirectLoad}.
|
|
584
|
+
*/
|
|
585
|
+
Ext.form.Action.DirectSubmit = Ext.extend(Ext.form.Action.Submit, {
|
|
586
|
+
constructor: function(form, opts) {
|
|
587
|
+
Ext.form.Action.DirectSubmit.superclass.constructor.call(this, form, opts);
|
|
588
|
+
},
|
|
589
|
+
type: 'directsubmit',
|
|
590
|
+
// override of Submit
|
|
591
|
+
run : function(){
|
|
592
|
+
var o = this.options;
|
|
593
|
+
if(o.clientValidation === false || this.form.isValid()){
|
|
594
|
+
// tag on any additional params to be posted in the
|
|
595
|
+
// form scope
|
|
596
|
+
this.success.params = this.getParams();
|
|
597
|
+
this.form.api.submit(this.form.el.dom, this.success, this);
|
|
598
|
+
}else if (o.clientValidation !== false){ // client validation failed
|
|
599
|
+
this.failureType = Ext.form.Action.CLIENT_INVALID;
|
|
600
|
+
this.form.afterAction(this, false);
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
|
|
604
|
+
getParams: function() {
|
|
605
|
+
var o = {};
|
|
606
|
+
var bp = this.form.baseParams;
|
|
607
|
+
var p = this.options.params;
|
|
608
|
+
Ext.apply(o, p, bp);
|
|
609
|
+
return o;
|
|
610
|
+
},
|
|
611
|
+
// Direct actions have already been processed and therefore
|
|
612
|
+
// we can directly set the result; Direct Actions do not have
|
|
613
|
+
// a this.response property.
|
|
614
|
+
processResponse: function(result) {
|
|
615
|
+
this.result = result;
|
|
616
|
+
return result;
|
|
617
|
+
}
|
|
618
|
+
});
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
Ext.form.Action.ACTION_TYPES = {
|
|
622
|
+
'load' : Ext.form.Action.Load,
|
|
623
|
+
'submit' : Ext.form.Action.Submit,
|
|
624
|
+
'directload': Ext.form.Action.DirectLoad,
|
|
625
|
+
'directsubmit': Ext.form.Action.DirectSubmit
|
|
626
|
+
};
|