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,81 @@
|
|
|
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
|
+
* Framework-wide error-handler. Developers can override this method to provide
|
|
9
|
+
* custom exception-handling. Framework errors will often extend from the base
|
|
10
|
+
* Ext.Error class.
|
|
11
|
+
* @param {Object/Error} e The thrown exception object.
|
|
12
|
+
*/
|
|
13
|
+
Ext.handleError = function(e) {
|
|
14
|
+
throw e;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @class Ext.Error
|
|
19
|
+
* @extends Error
|
|
20
|
+
* <p>A base error class. Future implementations are intended to provide more
|
|
21
|
+
* robust error handling throughout the framework (<b>in the debug build only</b>)
|
|
22
|
+
* to check for common errors and problems. The messages issued by this class
|
|
23
|
+
* will aid error checking. Error checks will be automatically removed in the
|
|
24
|
+
* production build so that performance is not negatively impacted.</p>
|
|
25
|
+
* <p>Some sample messages currently implemented:</p><pre>
|
|
26
|
+
"DataProxy attempted to execute an API-action but found an undefined
|
|
27
|
+
url / function. Please review your Proxy url/api-configuration."
|
|
28
|
+
* </pre><pre>
|
|
29
|
+
"Could not locate your "root" property in your server response.
|
|
30
|
+
Please review your JsonReader config to ensure the config-property
|
|
31
|
+
"root" matches the property your server-response. See the JsonReader
|
|
32
|
+
docs for additional assistance."
|
|
33
|
+
* </pre>
|
|
34
|
+
* <p>An example of the code used for generating error messages:</p><pre><code>
|
|
35
|
+
try {
|
|
36
|
+
generateError({
|
|
37
|
+
foo: 'bar'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
console.error(e);
|
|
42
|
+
}
|
|
43
|
+
function generateError(data) {
|
|
44
|
+
throw new Ext.Error('foo-error', data);
|
|
45
|
+
}
|
|
46
|
+
* </code></pre>
|
|
47
|
+
* @param {String} message
|
|
48
|
+
*/
|
|
49
|
+
Ext.Error = function(message) {
|
|
50
|
+
// Try to read the message from Ext.Error.lang
|
|
51
|
+
this.message = (this.lang[message]) ? this.lang[message] : message;
|
|
52
|
+
}
|
|
53
|
+
Ext.Error.prototype = new Error();
|
|
54
|
+
Ext.apply(Ext.Error.prototype, {
|
|
55
|
+
// protected. Extensions place their error-strings here.
|
|
56
|
+
lang: {},
|
|
57
|
+
|
|
58
|
+
name: 'Ext.Error',
|
|
59
|
+
/**
|
|
60
|
+
* getName
|
|
61
|
+
* @return {String}
|
|
62
|
+
*/
|
|
63
|
+
getName : function() {
|
|
64
|
+
return this.name;
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* getMessage
|
|
68
|
+
* @return {String}
|
|
69
|
+
*/
|
|
70
|
+
getMessage : function() {
|
|
71
|
+
return this.message;
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* toJson
|
|
75
|
+
* @return {String}
|
|
76
|
+
*/
|
|
77
|
+
toJson : function() {
|
|
78
|
+
return Ext.encode(this);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
|
|
@@ -0,0 +1,334 @@
|
|
|
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.EventManager
|
|
9
|
+
*/
|
|
10
|
+
Ext.apply(Ext.EventManager, function(){
|
|
11
|
+
var resizeEvent,
|
|
12
|
+
resizeTask,
|
|
13
|
+
textEvent,
|
|
14
|
+
textSize,
|
|
15
|
+
D = Ext.lib.Dom,
|
|
16
|
+
E = Ext.lib.Event,
|
|
17
|
+
propRe = /^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/,
|
|
18
|
+
curWidth = 0,
|
|
19
|
+
curHeight = 0,
|
|
20
|
+
// note 1: IE fires ONLY the keydown event on specialkey autorepeat
|
|
21
|
+
// note 2: Safari < 3.1, Gecko (Mac/Linux) & Opera fire only the keypress event on specialkey autorepeat
|
|
22
|
+
// (research done by @Jan Wolter at http://unixpapa.com/js/key.html)
|
|
23
|
+
useKeydown = Ext.isSafari ?
|
|
24
|
+
Ext.num(navigator.userAgent.toLowerCase().match(/version\/(\d+\.\d)/)[1] || 2) >= 3.1 :
|
|
25
|
+
!((Ext.isGecko && !Ext.isWindows) || Ext.isOpera);
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
// private
|
|
29
|
+
doResizeEvent: function(){
|
|
30
|
+
var h = D.getViewHeight(),
|
|
31
|
+
w = D.getViewWidth();
|
|
32
|
+
|
|
33
|
+
//whacky problem in IE where the resize event will fire even though the w/h are the same.
|
|
34
|
+
if(curHeight != h || curWidth != w){
|
|
35
|
+
resizeEvent.fire(curWidth = w, curHeight = h);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Fires when the window is resized and provides resize event buffering (50 milliseconds), passes new viewport width and height to handlers.
|
|
41
|
+
* @param {Function} fn The method the event invokes
|
|
42
|
+
* @param {Object} scope An object that becomes the scope of the handler
|
|
43
|
+
* @param {boolean} options
|
|
44
|
+
*/
|
|
45
|
+
onWindowResize : function(fn, scope, options){
|
|
46
|
+
if(!resizeEvent){
|
|
47
|
+
resizeEvent = new Ext.util.Event();
|
|
48
|
+
resizeTask = new Ext.util.DelayedTask(this.doResizeEvent);
|
|
49
|
+
E.on(window, "resize", this.fireWindowResize, this);
|
|
50
|
+
}
|
|
51
|
+
resizeEvent.addListener(fn, scope, options);
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
// exposed only to allow manual firing
|
|
55
|
+
fireWindowResize : function(){
|
|
56
|
+
if(resizeEvent){
|
|
57
|
+
if((Ext.isIE||Ext.isAir) && resizeTask){
|
|
58
|
+
resizeTask.delay(50);
|
|
59
|
+
}else{
|
|
60
|
+
resizeEvent.fire(D.getViewWidth(), D.getViewHeight());
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Fires when the user changes the active text size. Handler gets called with 2 params, the old size and the new size.
|
|
67
|
+
* @param {Function} fn The method the event invokes
|
|
68
|
+
* @param {Object} scope An object that becomes the scope of the handler
|
|
69
|
+
* @param {boolean} options
|
|
70
|
+
*/
|
|
71
|
+
onTextResize : function(fn, scope, options){
|
|
72
|
+
if(!textEvent){
|
|
73
|
+
textEvent = new Ext.util.Event();
|
|
74
|
+
var textEl = new Ext.Element(document.createElement('div'));
|
|
75
|
+
textEl.dom.className = 'x-text-resize';
|
|
76
|
+
textEl.dom.innerHTML = 'X';
|
|
77
|
+
textEl.appendTo(document.body);
|
|
78
|
+
textSize = textEl.dom.offsetHeight;
|
|
79
|
+
setInterval(function(){
|
|
80
|
+
if(textEl.dom.offsetHeight != textSize){
|
|
81
|
+
textEvent.fire(textSize, textSize = textEl.dom.offsetHeight);
|
|
82
|
+
}
|
|
83
|
+
}, this.textResizeInterval);
|
|
84
|
+
}
|
|
85
|
+
textEvent.addListener(fn, scope, options);
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Removes the passed window resize listener.
|
|
90
|
+
* @param {Function} fn The method the event invokes
|
|
91
|
+
* @param {Object} scope The scope of handler
|
|
92
|
+
*/
|
|
93
|
+
removeResizeListener : function(fn, scope){
|
|
94
|
+
if(resizeEvent){
|
|
95
|
+
resizeEvent.removeListener(fn, scope);
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
// private
|
|
100
|
+
fireResize : function(){
|
|
101
|
+
if(resizeEvent){
|
|
102
|
+
resizeEvent.fire(D.getViewWidth(), D.getViewHeight());
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The frequency, in milliseconds, to check for text resize events (defaults to 50)
|
|
108
|
+
*/
|
|
109
|
+
textResizeInterval : 50,
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Url used for onDocumentReady with using SSL (defaults to Ext.SSL_SECURE_URL)
|
|
113
|
+
*/
|
|
114
|
+
ieDeferSrc : false,
|
|
115
|
+
|
|
116
|
+
// protected for use inside the framework
|
|
117
|
+
// detects whether we should use keydown or keypress based on the browser.
|
|
118
|
+
useKeydown: useKeydown
|
|
119
|
+
};
|
|
120
|
+
}());
|
|
121
|
+
|
|
122
|
+
Ext.EventManager.on = Ext.EventManager.addListener;
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
Ext.apply(Ext.EventObjectImpl.prototype, {
|
|
126
|
+
/** Key constant @type Number */
|
|
127
|
+
BACKSPACE: 8,
|
|
128
|
+
/** Key constant @type Number */
|
|
129
|
+
TAB: 9,
|
|
130
|
+
/** Key constant @type Number */
|
|
131
|
+
NUM_CENTER: 12,
|
|
132
|
+
/** Key constant @type Number */
|
|
133
|
+
ENTER: 13,
|
|
134
|
+
/** Key constant @type Number */
|
|
135
|
+
RETURN: 13,
|
|
136
|
+
/** Key constant @type Number */
|
|
137
|
+
SHIFT: 16,
|
|
138
|
+
/** Key constant @type Number */
|
|
139
|
+
CTRL: 17,
|
|
140
|
+
CONTROL : 17, // legacy
|
|
141
|
+
/** Key constant @type Number */
|
|
142
|
+
ALT: 18,
|
|
143
|
+
/** Key constant @type Number */
|
|
144
|
+
PAUSE: 19,
|
|
145
|
+
/** Key constant @type Number */
|
|
146
|
+
CAPS_LOCK: 20,
|
|
147
|
+
/** Key constant @type Number */
|
|
148
|
+
ESC: 27,
|
|
149
|
+
/** Key constant @type Number */
|
|
150
|
+
SPACE: 32,
|
|
151
|
+
/** Key constant @type Number */
|
|
152
|
+
PAGE_UP: 33,
|
|
153
|
+
PAGEUP : 33, // legacy
|
|
154
|
+
/** Key constant @type Number */
|
|
155
|
+
PAGE_DOWN: 34,
|
|
156
|
+
PAGEDOWN : 34, // legacy
|
|
157
|
+
/** Key constant @type Number */
|
|
158
|
+
END: 35,
|
|
159
|
+
/** Key constant @type Number */
|
|
160
|
+
HOME: 36,
|
|
161
|
+
/** Key constant @type Number */
|
|
162
|
+
LEFT: 37,
|
|
163
|
+
/** Key constant @type Number */
|
|
164
|
+
UP: 38,
|
|
165
|
+
/** Key constant @type Number */
|
|
166
|
+
RIGHT: 39,
|
|
167
|
+
/** Key constant @type Number */
|
|
168
|
+
DOWN: 40,
|
|
169
|
+
/** Key constant @type Number */
|
|
170
|
+
PRINT_SCREEN: 44,
|
|
171
|
+
/** Key constant @type Number */
|
|
172
|
+
INSERT: 45,
|
|
173
|
+
/** Key constant @type Number */
|
|
174
|
+
DELETE: 46,
|
|
175
|
+
/** Key constant @type Number */
|
|
176
|
+
ZERO: 48,
|
|
177
|
+
/** Key constant @type Number */
|
|
178
|
+
ONE: 49,
|
|
179
|
+
/** Key constant @type Number */
|
|
180
|
+
TWO: 50,
|
|
181
|
+
/** Key constant @type Number */
|
|
182
|
+
THREE: 51,
|
|
183
|
+
/** Key constant @type Number */
|
|
184
|
+
FOUR: 52,
|
|
185
|
+
/** Key constant @type Number */
|
|
186
|
+
FIVE: 53,
|
|
187
|
+
/** Key constant @type Number */
|
|
188
|
+
SIX: 54,
|
|
189
|
+
/** Key constant @type Number */
|
|
190
|
+
SEVEN: 55,
|
|
191
|
+
/** Key constant @type Number */
|
|
192
|
+
EIGHT: 56,
|
|
193
|
+
/** Key constant @type Number */
|
|
194
|
+
NINE: 57,
|
|
195
|
+
/** Key constant @type Number */
|
|
196
|
+
A: 65,
|
|
197
|
+
/** Key constant @type Number */
|
|
198
|
+
B: 66,
|
|
199
|
+
/** Key constant @type Number */
|
|
200
|
+
C: 67,
|
|
201
|
+
/** Key constant @type Number */
|
|
202
|
+
D: 68,
|
|
203
|
+
/** Key constant @type Number */
|
|
204
|
+
E: 69,
|
|
205
|
+
/** Key constant @type Number */
|
|
206
|
+
F: 70,
|
|
207
|
+
/** Key constant @type Number */
|
|
208
|
+
G: 71,
|
|
209
|
+
/** Key constant @type Number */
|
|
210
|
+
H: 72,
|
|
211
|
+
/** Key constant @type Number */
|
|
212
|
+
I: 73,
|
|
213
|
+
/** Key constant @type Number */
|
|
214
|
+
J: 74,
|
|
215
|
+
/** Key constant @type Number */
|
|
216
|
+
K: 75,
|
|
217
|
+
/** Key constant @type Number */
|
|
218
|
+
L: 76,
|
|
219
|
+
/** Key constant @type Number */
|
|
220
|
+
M: 77,
|
|
221
|
+
/** Key constant @type Number */
|
|
222
|
+
N: 78,
|
|
223
|
+
/** Key constant @type Number */
|
|
224
|
+
O: 79,
|
|
225
|
+
/** Key constant @type Number */
|
|
226
|
+
P: 80,
|
|
227
|
+
/** Key constant @type Number */
|
|
228
|
+
Q: 81,
|
|
229
|
+
/** Key constant @type Number */
|
|
230
|
+
R: 82,
|
|
231
|
+
/** Key constant @type Number */
|
|
232
|
+
S: 83,
|
|
233
|
+
/** Key constant @type Number */
|
|
234
|
+
T: 84,
|
|
235
|
+
/** Key constant @type Number */
|
|
236
|
+
U: 85,
|
|
237
|
+
/** Key constant @type Number */
|
|
238
|
+
V: 86,
|
|
239
|
+
/** Key constant @type Number */
|
|
240
|
+
W: 87,
|
|
241
|
+
/** Key constant @type Number */
|
|
242
|
+
X: 88,
|
|
243
|
+
/** Key constant @type Number */
|
|
244
|
+
Y: 89,
|
|
245
|
+
/** Key constant @type Number */
|
|
246
|
+
Z: 90,
|
|
247
|
+
/** Key constant @type Number */
|
|
248
|
+
CONTEXT_MENU: 93,
|
|
249
|
+
/** Key constant @type Number */
|
|
250
|
+
NUM_ZERO: 96,
|
|
251
|
+
/** Key constant @type Number */
|
|
252
|
+
NUM_ONE: 97,
|
|
253
|
+
/** Key constant @type Number */
|
|
254
|
+
NUM_TWO: 98,
|
|
255
|
+
/** Key constant @type Number */
|
|
256
|
+
NUM_THREE: 99,
|
|
257
|
+
/** Key constant @type Number */
|
|
258
|
+
NUM_FOUR: 100,
|
|
259
|
+
/** Key constant @type Number */
|
|
260
|
+
NUM_FIVE: 101,
|
|
261
|
+
/** Key constant @type Number */
|
|
262
|
+
NUM_SIX: 102,
|
|
263
|
+
/** Key constant @type Number */
|
|
264
|
+
NUM_SEVEN: 103,
|
|
265
|
+
/** Key constant @type Number */
|
|
266
|
+
NUM_EIGHT: 104,
|
|
267
|
+
/** Key constant @type Number */
|
|
268
|
+
NUM_NINE: 105,
|
|
269
|
+
/** Key constant @type Number */
|
|
270
|
+
NUM_MULTIPLY: 106,
|
|
271
|
+
/** Key constant @type Number */
|
|
272
|
+
NUM_PLUS: 107,
|
|
273
|
+
/** Key constant @type Number */
|
|
274
|
+
NUM_MINUS: 109,
|
|
275
|
+
/** Key constant @type Number */
|
|
276
|
+
NUM_PERIOD: 110,
|
|
277
|
+
/** Key constant @type Number */
|
|
278
|
+
NUM_DIVISION: 111,
|
|
279
|
+
/** Key constant @type Number */
|
|
280
|
+
F1: 112,
|
|
281
|
+
/** Key constant @type Number */
|
|
282
|
+
F2: 113,
|
|
283
|
+
/** Key constant @type Number */
|
|
284
|
+
F3: 114,
|
|
285
|
+
/** Key constant @type Number */
|
|
286
|
+
F4: 115,
|
|
287
|
+
/** Key constant @type Number */
|
|
288
|
+
F5: 116,
|
|
289
|
+
/** Key constant @type Number */
|
|
290
|
+
F6: 117,
|
|
291
|
+
/** Key constant @type Number */
|
|
292
|
+
F7: 118,
|
|
293
|
+
/** Key constant @type Number */
|
|
294
|
+
F8: 119,
|
|
295
|
+
/** Key constant @type Number */
|
|
296
|
+
F9: 120,
|
|
297
|
+
/** Key constant @type Number */
|
|
298
|
+
F10: 121,
|
|
299
|
+
/** Key constant @type Number */
|
|
300
|
+
F11: 122,
|
|
301
|
+
/** Key constant @type Number */
|
|
302
|
+
F12: 123,
|
|
303
|
+
|
|
304
|
+
/** @private */
|
|
305
|
+
isNavKeyPress : function(){
|
|
306
|
+
var me = this,
|
|
307
|
+
k = this.normalizeKey(me.keyCode);
|
|
308
|
+
return (k >= 33 && k <= 40) || // Page Up/Down, End, Home, Left, Up, Right, Down
|
|
309
|
+
k == me.RETURN ||
|
|
310
|
+
k == me.TAB ||
|
|
311
|
+
k == me.ESC;
|
|
312
|
+
},
|
|
313
|
+
|
|
314
|
+
isSpecialKey : function(){
|
|
315
|
+
var k = this.normalizeKey(this.keyCode);
|
|
316
|
+
return (this.type == 'keypress' && this.ctrlKey) ||
|
|
317
|
+
this.isNavKeyPress() ||
|
|
318
|
+
(k == this.BACKSPACE) || // Backspace
|
|
319
|
+
(k >= 16 && k <= 20) || // Shift, Ctrl, Alt, Pause, Caps Lock
|
|
320
|
+
(k >= 44 && k <= 45); // Print Screen, Insert
|
|
321
|
+
},
|
|
322
|
+
|
|
323
|
+
getPoint : function(){
|
|
324
|
+
return new Ext.lib.Point(this.xy[0], this.xy[1]);
|
|
325
|
+
},
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Returns true if the control, meta, shift or alt key was pressed during this event.
|
|
329
|
+
* @return {Boolean}
|
|
330
|
+
*/
|
|
331
|
+
hasModifier : function(){
|
|
332
|
+
return ((this.ctrlKey || this.altKey) || this.shiftKey);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
@@ -0,0 +1,669 @@
|
|
|
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
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
Ext.ns("Ext.grid", "Ext.dd", "Ext.tree", "Ext.form", "Ext.menu",
|
|
12
|
+
"Ext.state", "Ext.layout", "Ext.app", "Ext.ux", "Ext.chart", "Ext.direct");
|
|
13
|
+
/**
|
|
14
|
+
* Namespace alloted for extensions to the framework.
|
|
15
|
+
* @property ux
|
|
16
|
+
* @type Object
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
Ext.apply(Ext, function(){
|
|
20
|
+
var E = Ext, idSeed = 0;
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
/**
|
|
24
|
+
* A reusable empty function
|
|
25
|
+
* @property
|
|
26
|
+
* @type Function
|
|
27
|
+
*/
|
|
28
|
+
emptyFn : function(){},
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* URL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images.
|
|
32
|
+
* In older versions of IE, this defaults to "http://extjs.com/s.gif" and you should change this to a URL on your server.
|
|
33
|
+
* For other browsers it uses an inline data URL.
|
|
34
|
+
* @type String
|
|
35
|
+
*/
|
|
36
|
+
BLANK_IMAGE_URL : Ext.isIE6 || Ext.isIE7 ?
|
|
37
|
+
'http:/' + '/extjs.com/s.gif' :
|
|
38
|
+
'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
|
|
39
|
+
|
|
40
|
+
extendX : function(supr, fn){
|
|
41
|
+
return Ext.extend(supr, fn(supr.prototype));
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Returns the current HTML document object as an {@link Ext.Element}.
|
|
46
|
+
* @return Ext.Element The document
|
|
47
|
+
*/
|
|
48
|
+
getDoc : function(){
|
|
49
|
+
return Ext.get(document);
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the passed object is a JavaScript date object, otherwise false.
|
|
54
|
+
* @param {Object} object The object to test
|
|
55
|
+
* @return {Boolean}
|
|
56
|
+
*/
|
|
57
|
+
isDate : function(v){
|
|
58
|
+
return Object.prototype.toString.apply(v) === '[object Date]';
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Utility method for validating that a value is numeric, returning the specified default value if it is not.
|
|
63
|
+
* @param {Mixed} value Should be a number, but any type will be handled appropriately
|
|
64
|
+
* @param {Number} defaultValue The value to return if the original value is non-numeric
|
|
65
|
+
* @return {Number} Value, if numeric, else defaultValue
|
|
66
|
+
*/
|
|
67
|
+
num : function(v, defaultValue){
|
|
68
|
+
v = Number(v === null || typeof v == 'boolean'? NaN : v);
|
|
69
|
+
return isNaN(v)? defaultValue : v;
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* <p>Utility method for returning a default value if the passed value is empty.</p>
|
|
74
|
+
* <p>The value is deemed to be empty if it is<div class="mdetail-params"><ul>
|
|
75
|
+
* <li>null</li>
|
|
76
|
+
* <li>undefined</li>
|
|
77
|
+
* <li>an empty array</li>
|
|
78
|
+
* <li>a zero length string (Unless the <tt>allowBlank</tt> parameter is <tt>true</tt>)</li>
|
|
79
|
+
* </ul></div>
|
|
80
|
+
* @param {Mixed} value The value to test
|
|
81
|
+
* @param {Mixed} defaultValue The value to return if the original value is empty
|
|
82
|
+
* @param {Boolean} allowBlank (optional) true to allow zero length strings to qualify as non-empty (defaults to false)
|
|
83
|
+
* @return {Mixed} value, if non-empty, else defaultValue
|
|
84
|
+
*/
|
|
85
|
+
value : function(v, defaultValue, allowBlank){
|
|
86
|
+
return Ext.isEmpty(v, allowBlank) ? defaultValue : v;
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Escapes the passed string for use in a regular expression
|
|
91
|
+
* @param {String} str
|
|
92
|
+
* @return {String}
|
|
93
|
+
*/
|
|
94
|
+
escapeRe : function(s) {
|
|
95
|
+
return s.replace(/([.*+?^${}()|[\]\/\\])/g, "\\$1");
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
sequence : function(o, name, fn, scope){
|
|
99
|
+
o[name] = o[name].createSequence(fn, scope);
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Applies event listeners to elements by selectors when the document is ready.
|
|
104
|
+
* The event name is specified with an <tt>@</tt> suffix.
|
|
105
|
+
* <pre><code>
|
|
106
|
+
Ext.addBehaviors({
|
|
107
|
+
// add a listener for click on all anchors in element with id foo
|
|
108
|
+
'#foo a@click' : function(e, t){
|
|
109
|
+
// do something
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
// add the same listener to multiple selectors (separated by comma BEFORE the @)
|
|
113
|
+
'#foo a, #bar span.some-class@mouseover' : function(){
|
|
114
|
+
// do something
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
* </code></pre>
|
|
118
|
+
* @param {Object} obj The list of behaviors to apply
|
|
119
|
+
*/
|
|
120
|
+
addBehaviors : function(o){
|
|
121
|
+
if(!Ext.isReady){
|
|
122
|
+
Ext.onReady(function(){
|
|
123
|
+
Ext.addBehaviors(o);
|
|
124
|
+
});
|
|
125
|
+
} else {
|
|
126
|
+
var cache = {}, // simple cache for applying multiple behaviors to same selector does query multiple times
|
|
127
|
+
parts,
|
|
128
|
+
b,
|
|
129
|
+
s;
|
|
130
|
+
for (b in o) {
|
|
131
|
+
if ((parts = b.split('@'))[1]) { // for Object prototype breakers
|
|
132
|
+
s = parts[0];
|
|
133
|
+
if(!cache[s]){
|
|
134
|
+
cache[s] = Ext.select(s);
|
|
135
|
+
}
|
|
136
|
+
cache[s].on(parts[1], o[b]);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
cache = null;
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
// deprecated
|
|
145
|
+
combine : function(){
|
|
146
|
+
var as = arguments, l = as.length, r = [];
|
|
147
|
+
for(var i = 0; i < l; i++){
|
|
148
|
+
var a = as[i];
|
|
149
|
+
if(Ext.isArray(a)){
|
|
150
|
+
r = r.concat(a);
|
|
151
|
+
}else if(a.length !== undefined && !a.substr){
|
|
152
|
+
r = r.concat(Array.prototype.slice.call(a, 0));
|
|
153
|
+
}else{
|
|
154
|
+
r.push(a);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return r;
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Copies a set of named properties fom the source object to the destination object.
|
|
162
|
+
* <p>example:<pre><code>
|
|
163
|
+
ImageComponent = Ext.extend(Ext.BoxComponent, {
|
|
164
|
+
initComponent: function() {
|
|
165
|
+
this.autoEl = { tag: 'img' };
|
|
166
|
+
MyComponent.superclass.initComponent.apply(this, arguments);
|
|
167
|
+
this.initialBox = Ext.copyTo({}, this.initialConfig, 'x,y,width,height');
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
* </code></pre>
|
|
171
|
+
* @param {Object} The destination object.
|
|
172
|
+
* @param {Object} The source object.
|
|
173
|
+
* @param {Array/String} Either an Array of property names, or a comma-delimited list
|
|
174
|
+
* of property names to copy.
|
|
175
|
+
* @return {Object} The modified object.
|
|
176
|
+
*/
|
|
177
|
+
copyTo : function(dest, source, names){
|
|
178
|
+
if(typeof names == 'string'){
|
|
179
|
+
names = names.split(/[,;\s]/);
|
|
180
|
+
}
|
|
181
|
+
Ext.each(names, function(name){
|
|
182
|
+
if(source.hasOwnProperty(name)){
|
|
183
|
+
dest[name] = source[name];
|
|
184
|
+
}
|
|
185
|
+
}, this);
|
|
186
|
+
return dest;
|
|
187
|
+
},
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Attempts to destroy any objects passed to it by removing all event listeners, removing them from the
|
|
191
|
+
* DOM (if applicable) and calling their destroy functions (if available). This method is primarily
|
|
192
|
+
* intended for arguments of type {@link Ext.Element} and {@link Ext.Component}, but any subclass of
|
|
193
|
+
* {@link Ext.util.Observable} can be passed in. Any number of elements and/or components can be
|
|
194
|
+
* passed into this function in a single call as separate arguments.
|
|
195
|
+
* @param {Mixed} arg1 An {@link Ext.Element}, {@link Ext.Component}, or an Array of either of these to destroy
|
|
196
|
+
* @param {Mixed} arg2 (optional)
|
|
197
|
+
* @param {Mixed} etc... (optional)
|
|
198
|
+
*/
|
|
199
|
+
destroy : function(){
|
|
200
|
+
Ext.each(arguments, function(arg){
|
|
201
|
+
if(arg){
|
|
202
|
+
if(Ext.isArray(arg)){
|
|
203
|
+
this.destroy.apply(this, arg);
|
|
204
|
+
}else if(Ext.isFunction(arg.destroy)){
|
|
205
|
+
arg.destroy();
|
|
206
|
+
}else if(arg.dom){
|
|
207
|
+
arg.remove();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}, this);
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Attempts to destroy and then remove a set of named properties of the passed object.
|
|
215
|
+
* @param {Object} o The object (most likely a Component) who's properties you wish to destroy.
|
|
216
|
+
* @param {Mixed} arg1 The name of the property to destroy and remove from the object.
|
|
217
|
+
* @param {Mixed} etc... More property names to destroy and remove.
|
|
218
|
+
*/
|
|
219
|
+
destroyMembers : function(o, arg1, arg2, etc){
|
|
220
|
+
for(var i = 1, a = arguments, len = a.length; i < len; i++) {
|
|
221
|
+
Ext.destroy(o[a[i]]);
|
|
222
|
+
delete o[a[i]];
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Creates a copy of the passed Array with falsy values removed.
|
|
228
|
+
* @param {Array/NodeList} arr The Array from which to remove falsy values.
|
|
229
|
+
* @return {Array} The new, compressed Array.
|
|
230
|
+
*/
|
|
231
|
+
clean : function(arr){
|
|
232
|
+
var ret = [];
|
|
233
|
+
Ext.each(arr, function(v){
|
|
234
|
+
if(!!v){
|
|
235
|
+
ret.push(v);
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
return ret;
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Creates a copy of the passed Array, filtered to contain only unique values.
|
|
243
|
+
* @param {Array} arr The Array to filter
|
|
244
|
+
* @return {Array} The new Array containing unique values.
|
|
245
|
+
*/
|
|
246
|
+
unique : function(arr){
|
|
247
|
+
var ret = [],
|
|
248
|
+
collect = {};
|
|
249
|
+
|
|
250
|
+
Ext.each(arr, function(v) {
|
|
251
|
+
if(!collect[v]){
|
|
252
|
+
ret.push(v);
|
|
253
|
+
}
|
|
254
|
+
collect[v] = true;
|
|
255
|
+
});
|
|
256
|
+
return ret;
|
|
257
|
+
},
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Recursively flattens into 1-d Array. Injects Arrays inline.
|
|
261
|
+
* @param {Array} arr The array to flatten
|
|
262
|
+
* @return {Array} The new, flattened array.
|
|
263
|
+
*/
|
|
264
|
+
flatten : function(arr){
|
|
265
|
+
var worker = [];
|
|
266
|
+
function rFlatten(a) {
|
|
267
|
+
Ext.each(a, function(v) {
|
|
268
|
+
if(Ext.isArray(v)){
|
|
269
|
+
rFlatten(v);
|
|
270
|
+
}else{
|
|
271
|
+
worker.push(v);
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
return worker;
|
|
275
|
+
}
|
|
276
|
+
return rFlatten(arr);
|
|
277
|
+
},
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Returns the minimum value in the Array.
|
|
281
|
+
* @param {Array|NodeList} arr The Array from which to select the minimum value.
|
|
282
|
+
* @param {Function} comp (optional) a function to perform the comparision which determines minimization.
|
|
283
|
+
* If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1
|
|
284
|
+
* @return {Object} The minimum value in the Array.
|
|
285
|
+
*/
|
|
286
|
+
min : function(arr, comp){
|
|
287
|
+
var ret = arr[0];
|
|
288
|
+
comp = comp || function(a,b){ return a < b ? -1 : 1; };
|
|
289
|
+
Ext.each(arr, function(v) {
|
|
290
|
+
ret = comp(ret, v) == -1 ? ret : v;
|
|
291
|
+
});
|
|
292
|
+
return ret;
|
|
293
|
+
},
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Returns the maximum value in the Array
|
|
297
|
+
* @param {Array|NodeList} arr The Array from which to select the maximum value.
|
|
298
|
+
* @param {Function} comp (optional) a function to perform the comparision which determines maximization.
|
|
299
|
+
* If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1
|
|
300
|
+
* @return {Object} The maximum value in the Array.
|
|
301
|
+
*/
|
|
302
|
+
max : function(arr, comp){
|
|
303
|
+
var ret = arr[0];
|
|
304
|
+
comp = comp || function(a,b){ return a > b ? 1 : -1; };
|
|
305
|
+
Ext.each(arr, function(v) {
|
|
306
|
+
ret = comp(ret, v) == 1 ? ret : v;
|
|
307
|
+
});
|
|
308
|
+
return ret;
|
|
309
|
+
},
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Calculates the mean of the Array
|
|
313
|
+
* @param {Array} arr The Array to calculate the mean value of.
|
|
314
|
+
* @return {Number} The mean.
|
|
315
|
+
*/
|
|
316
|
+
mean : function(arr){
|
|
317
|
+
return Ext.sum(arr) / arr.length;
|
|
318
|
+
},
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Calculates the sum of the Array
|
|
322
|
+
* @param {Array} arr The Array to calculate the sum value of.
|
|
323
|
+
* @return {Number} The sum.
|
|
324
|
+
*/
|
|
325
|
+
sum : function(arr){
|
|
326
|
+
var ret = 0;
|
|
327
|
+
Ext.each(arr, function(v) {
|
|
328
|
+
ret += v;
|
|
329
|
+
});
|
|
330
|
+
return ret;
|
|
331
|
+
},
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Partitions the set into two sets: a true set and a false set.
|
|
335
|
+
* Example:
|
|
336
|
+
* Example2:
|
|
337
|
+
* <pre><code>
|
|
338
|
+
// Example 1:
|
|
339
|
+
Ext.partition([true, false, true, true, false]); // [[true, true, true], [false, false]]
|
|
340
|
+
|
|
341
|
+
// Example 2:
|
|
342
|
+
Ext.partition(
|
|
343
|
+
Ext.query("p"),
|
|
344
|
+
function(val){
|
|
345
|
+
return val.className == "class1"
|
|
346
|
+
}
|
|
347
|
+
);
|
|
348
|
+
// true are those paragraph elements with a className of "class1",
|
|
349
|
+
// false set are those that do not have that className.
|
|
350
|
+
* </code></pre>
|
|
351
|
+
* @param {Array|NodeList} arr The array to partition
|
|
352
|
+
* @param {Function} truth (optional) a function to determine truth. If this is omitted the element
|
|
353
|
+
* itself must be able to be evaluated for its truthfulness.
|
|
354
|
+
* @return {Array} [true<Array>,false<Array>]
|
|
355
|
+
*/
|
|
356
|
+
partition : function(arr, truth){
|
|
357
|
+
var ret = [[],[]];
|
|
358
|
+
Ext.each(arr, function(v, i, a) {
|
|
359
|
+
ret[ (truth && truth(v, i, a)) || (!truth && v) ? 0 : 1].push(v);
|
|
360
|
+
});
|
|
361
|
+
return ret;
|
|
362
|
+
},
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Invokes a method on each item in an Array.
|
|
366
|
+
* <pre><code>
|
|
367
|
+
// Example:
|
|
368
|
+
Ext.invoke(Ext.query("p"), "getAttribute", "id");
|
|
369
|
+
// [el1.getAttribute("id"), el2.getAttribute("id"), ..., elN.getAttribute("id")]
|
|
370
|
+
* </code></pre>
|
|
371
|
+
* @param {Array|NodeList} arr The Array of items to invoke the method on.
|
|
372
|
+
* @param {String} methodName The method name to invoke.
|
|
373
|
+
* @param {Anything} ... Arguments to send into the method invocation.
|
|
374
|
+
* @return {Array} The results of invoking the method on each item in the array.
|
|
375
|
+
*/
|
|
376
|
+
invoke : function(arr, methodName){
|
|
377
|
+
var ret = [],
|
|
378
|
+
args = Array.prototype.slice.call(arguments, 2);
|
|
379
|
+
Ext.each(arr, function(v,i) {
|
|
380
|
+
if (v && typeof v[methodName] == "function") {
|
|
381
|
+
ret.push(v[methodName].apply(v, args));
|
|
382
|
+
} else {
|
|
383
|
+
ret.push(undefined);
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
return ret;
|
|
387
|
+
},
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Plucks the value of a property from each item in the Array
|
|
391
|
+
* <pre><code>
|
|
392
|
+
// Example:
|
|
393
|
+
Ext.pluck(Ext.query("p"), "className"); // [el1.className, el2.className, ..., elN.className]
|
|
394
|
+
* </code></pre>
|
|
395
|
+
* @param {Array|NodeList} arr The Array of items to pluck the value from.
|
|
396
|
+
* @param {String} prop The property name to pluck from each element.
|
|
397
|
+
* @return {Array} The value from each item in the Array.
|
|
398
|
+
*/
|
|
399
|
+
pluck : function(arr, prop){
|
|
400
|
+
var ret = [];
|
|
401
|
+
Ext.each(arr, function(v) {
|
|
402
|
+
ret.push( v[prop] );
|
|
403
|
+
});
|
|
404
|
+
return ret;
|
|
405
|
+
},
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* <p>Zips N sets together.</p>
|
|
409
|
+
* <pre><code>
|
|
410
|
+
// Example 1:
|
|
411
|
+
Ext.zip([1,2,3],[4,5,6]); // [[1,4],[2,5],[3,6]]
|
|
412
|
+
// Example 2:
|
|
413
|
+
Ext.zip(
|
|
414
|
+
[ "+", "-", "+"],
|
|
415
|
+
[ 12, 10, 22],
|
|
416
|
+
[ 43, 15, 96],
|
|
417
|
+
function(a, b, c){
|
|
418
|
+
return "$" + a + "" + b + "." + c
|
|
419
|
+
}
|
|
420
|
+
); // ["$+12.43", "$-10.15", "$+22.96"]
|
|
421
|
+
* </code></pre>
|
|
422
|
+
* @param {Arrays|NodeLists} arr This argument may be repeated. Array(s) to contribute values.
|
|
423
|
+
* @param {Function} zipper (optional) The last item in the argument list. This will drive how the items are zipped together.
|
|
424
|
+
* @return {Array} The zipped set.
|
|
425
|
+
*/
|
|
426
|
+
zip : function(){
|
|
427
|
+
var parts = Ext.partition(arguments, function( val ){ return !Ext.isFunction(val); }),
|
|
428
|
+
arrs = parts[0],
|
|
429
|
+
fn = parts[1][0],
|
|
430
|
+
len = Ext.max(Ext.pluck(arrs, "length")),
|
|
431
|
+
ret = [];
|
|
432
|
+
|
|
433
|
+
for (var i = 0; i < len; i++) {
|
|
434
|
+
ret[i] = [];
|
|
435
|
+
if(fn){
|
|
436
|
+
ret[i] = fn.apply(fn, Ext.pluck(arrs, i));
|
|
437
|
+
}else{
|
|
438
|
+
for (var j = 0, aLen = arrs.length; j < aLen; j++){
|
|
439
|
+
ret[i].push( arrs[j][i] );
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
return ret;
|
|
444
|
+
},
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* This is shorthand reference to {@link Ext.ComponentMgr#get}.
|
|
448
|
+
* Looks up an existing {@link Ext.Component Component} by {@link Ext.Component#id id}
|
|
449
|
+
* @param {String} id The component {@link Ext.Component#id id}
|
|
450
|
+
* @return Ext.Component The Component, <tt>undefined</tt> if not found, or <tt>null</tt> if a
|
|
451
|
+
* Class was found.
|
|
452
|
+
*/
|
|
453
|
+
getCmp : function(id){
|
|
454
|
+
return Ext.ComponentMgr.get(id);
|
|
455
|
+
},
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* By default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash,
|
|
459
|
+
* you may want to set this to true.
|
|
460
|
+
* @type Boolean
|
|
461
|
+
*/
|
|
462
|
+
useShims: E.isIE6 || (E.isMac && E.isGecko2),
|
|
463
|
+
|
|
464
|
+
// inpired by a similar function in mootools library
|
|
465
|
+
/**
|
|
466
|
+
* Returns the type of object that is passed in. If the object passed in is null or undefined it
|
|
467
|
+
* return false otherwise it returns one of the following values:<div class="mdetail-params"><ul>
|
|
468
|
+
* <li><b>string</b>: If the object passed is a string</li>
|
|
469
|
+
* <li><b>number</b>: If the object passed is a number</li>
|
|
470
|
+
* <li><b>boolean</b>: If the object passed is a boolean value</li>
|
|
471
|
+
* <li><b>date</b>: If the object passed is a Date object</li>
|
|
472
|
+
* <li><b>function</b>: If the object passed is a function reference</li>
|
|
473
|
+
* <li><b>object</b>: If the object passed is an object</li>
|
|
474
|
+
* <li><b>array</b>: If the object passed is an array</li>
|
|
475
|
+
* <li><b>regexp</b>: If the object passed is a regular expression</li>
|
|
476
|
+
* <li><b>element</b>: If the object passed is a DOM Element</li>
|
|
477
|
+
* <li><b>nodelist</b>: If the object passed is a DOM NodeList</li>
|
|
478
|
+
* <li><b>textnode</b>: If the object passed is a DOM text node and contains something other than whitespace</li>
|
|
479
|
+
* <li><b>whitespace</b>: If the object passed is a DOM text node and contains only whitespace</li>
|
|
480
|
+
* </ul></div>
|
|
481
|
+
* @param {Mixed} object
|
|
482
|
+
* @return {String}
|
|
483
|
+
*/
|
|
484
|
+
type : function(o){
|
|
485
|
+
if(o === undefined || o === null){
|
|
486
|
+
return false;
|
|
487
|
+
}
|
|
488
|
+
if(o.htmlElement){
|
|
489
|
+
return 'element';
|
|
490
|
+
}
|
|
491
|
+
var t = typeof o;
|
|
492
|
+
if(t == 'object' && o.nodeName) {
|
|
493
|
+
switch(o.nodeType) {
|
|
494
|
+
case 1: return 'element';
|
|
495
|
+
case 3: return (/\S/).test(o.nodeValue) ? 'textnode' : 'whitespace';
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
if(t == 'object' || t == 'function') {
|
|
499
|
+
switch(o.constructor) {
|
|
500
|
+
case Array: return 'array';
|
|
501
|
+
case RegExp: return 'regexp';
|
|
502
|
+
case Date: return 'date';
|
|
503
|
+
}
|
|
504
|
+
if(typeof o.length == 'number' && typeof o.item == 'function') {
|
|
505
|
+
return 'nodelist';
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return t;
|
|
509
|
+
},
|
|
510
|
+
|
|
511
|
+
intercept : function(o, name, fn, scope){
|
|
512
|
+
o[name] = o[name].createInterceptor(fn, scope);
|
|
513
|
+
},
|
|
514
|
+
|
|
515
|
+
// internal
|
|
516
|
+
callback : function(cb, scope, args, delay){
|
|
517
|
+
if(Ext.isFunction(cb)){
|
|
518
|
+
if(delay){
|
|
519
|
+
cb.defer(delay, scope, args || []);
|
|
520
|
+
}else{
|
|
521
|
+
cb.apply(scope, args || []);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
}());
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* @class Function
|
|
530
|
+
* These functions are available on every Function object (any JavaScript function).
|
|
531
|
+
*/
|
|
532
|
+
Ext.apply(Function.prototype, {
|
|
533
|
+
/**
|
|
534
|
+
* Create a combined function call sequence of the original function + the passed function.
|
|
535
|
+
* The resulting function returns the results of the original function.
|
|
536
|
+
* The passed fcn is called with the parameters of the original function. Example usage:
|
|
537
|
+
* <pre><code>
|
|
538
|
+
var sayHi = function(name){
|
|
539
|
+
alert('Hi, ' + name);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
sayHi('Fred'); // alerts "Hi, Fred"
|
|
543
|
+
|
|
544
|
+
var sayGoodbye = sayHi.createSequence(function(name){
|
|
545
|
+
alert('Bye, ' + name);
|
|
546
|
+
});
|
|
547
|
+
|
|
548
|
+
sayGoodbye('Fred'); // both alerts show
|
|
549
|
+
</code></pre>
|
|
550
|
+
* @param {Function} fcn The function to sequence
|
|
551
|
+
* @param {Object} scope (optional) The scope of the passed fcn (Defaults to scope of original function or window)
|
|
552
|
+
* @return {Function} The new function
|
|
553
|
+
*/
|
|
554
|
+
createSequence : function(fcn, scope){
|
|
555
|
+
var method = this;
|
|
556
|
+
return !Ext.isFunction(fcn) ?
|
|
557
|
+
this :
|
|
558
|
+
function(){
|
|
559
|
+
var retval = method.apply(this || window, arguments);
|
|
560
|
+
fcn.apply(scope || this || window, arguments);
|
|
561
|
+
return retval;
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* @class String
|
|
569
|
+
* These functions are available as static methods on the JavaScript String object.
|
|
570
|
+
*/
|
|
571
|
+
Ext.applyIf(String, {
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Escapes the passed string for ' and \
|
|
575
|
+
* @param {String} string The string to escape
|
|
576
|
+
* @return {String} The escaped string
|
|
577
|
+
* @static
|
|
578
|
+
*/
|
|
579
|
+
escape : function(string) {
|
|
580
|
+
return string.replace(/('|\\)/g, "\\$1");
|
|
581
|
+
},
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Pads the left side of a string with a specified character. This is especially useful
|
|
585
|
+
* for normalizing number and date strings. Example usage:
|
|
586
|
+
* <pre><code>
|
|
587
|
+
var s = String.leftPad('123', 5, '0');
|
|
588
|
+
// s now contains the string: '00123'
|
|
589
|
+
* </code></pre>
|
|
590
|
+
* @param {String} string The original string
|
|
591
|
+
* @param {Number} size The total length of the output string
|
|
592
|
+
* @param {String} char (optional) The character with which to pad the original string (defaults to empty string " ")
|
|
593
|
+
* @return {String} The padded string
|
|
594
|
+
* @static
|
|
595
|
+
*/
|
|
596
|
+
leftPad : function (val, size, ch) {
|
|
597
|
+
var result = String(val);
|
|
598
|
+
if(!ch) {
|
|
599
|
+
ch = " ";
|
|
600
|
+
}
|
|
601
|
+
while (result.length < size) {
|
|
602
|
+
result = ch + result;
|
|
603
|
+
}
|
|
604
|
+
return result;
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Utility function that allows you to easily switch a string between two alternating values. The passed value
|
|
610
|
+
* is compared to the current string, and if they are equal, the other value that was passed in is returned. If
|
|
611
|
+
* they are already different, the first value passed in is returned. Note that this method returns the new value
|
|
612
|
+
* but does not change the current string.
|
|
613
|
+
* <pre><code>
|
|
614
|
+
// alternate sort directions
|
|
615
|
+
sort = sort.toggle('ASC', 'DESC');
|
|
616
|
+
|
|
617
|
+
// instead of conditional logic:
|
|
618
|
+
sort = (sort == 'ASC' ? 'DESC' : 'ASC');
|
|
619
|
+
</code></pre>
|
|
620
|
+
* @param {String} value The value to compare to the current string
|
|
621
|
+
* @param {String} other The new value to use if the string already equals the first value passed in
|
|
622
|
+
* @return {String} The new value
|
|
623
|
+
*/
|
|
624
|
+
String.prototype.toggle = function(value, other){
|
|
625
|
+
return this == value ? other : value;
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Trims whitespace from either end of a string, leaving spaces within the string intact. Example:
|
|
630
|
+
* <pre><code>
|
|
631
|
+
var s = ' foo bar ';
|
|
632
|
+
alert('-' + s + '-'); //alerts "- foo bar -"
|
|
633
|
+
alert('-' + s.trim() + '-'); //alerts "-foo bar-"
|
|
634
|
+
</code></pre>
|
|
635
|
+
* @return {String} The trimmed string
|
|
636
|
+
*/
|
|
637
|
+
String.prototype.trim = function(){
|
|
638
|
+
var re = /^\s+|\s+$/g;
|
|
639
|
+
return function(){ return this.replace(re, ""); };
|
|
640
|
+
}();
|
|
641
|
+
|
|
642
|
+
// here to prevent dependency on Date.js
|
|
643
|
+
/**
|
|
644
|
+
Returns the number of milliseconds between this date and date
|
|
645
|
+
@param {Date} date (optional) Defaults to now
|
|
646
|
+
@return {Number} The diff in milliseconds
|
|
647
|
+
@member Date getElapsed
|
|
648
|
+
*/
|
|
649
|
+
Date.prototype.getElapsed = function(date) {
|
|
650
|
+
return Math.abs((date || new Date()).getTime()-this.getTime());
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* @class Number
|
|
656
|
+
*/
|
|
657
|
+
Ext.applyIf(Number.prototype, {
|
|
658
|
+
/**
|
|
659
|
+
* Checks whether or not the current number is within a desired range. If the number is already within the
|
|
660
|
+
* range it is returned, otherwise the min or max value is returned depending on which side of the range is
|
|
661
|
+
* exceeded. Note that this method returns the constrained value but does not change the current number.
|
|
662
|
+
* @param {Number} min The minimum number in the range
|
|
663
|
+
* @param {Number} max The maximum number in the range
|
|
664
|
+
* @return {Number} The constrained value if outside the range, otherwise the current value
|
|
665
|
+
*/
|
|
666
|
+
constrain : function(min, max){
|
|
667
|
+
return Math.min(Math.max(this, min), max);
|
|
668
|
+
}
|
|
669
|
+
});
|