sproutcore 1.6.0.beta.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/.mailmap +32 -0
- data/.rspec +1 -0
- data/CHANGELOG +170 -0
- data/Gemfile +3 -0
- data/History.txt +54 -0
- data/README.txt +129 -0
- data/Rakefile +62 -0
- data/Todo.txt +1 -0
- data/VERSION.yml +4 -0
- data/bin/sc-build +13 -0
- data/bin/sc-build-number +13 -0
- data/bin/sc-docs +14 -0
- data/bin/sc-gen +13 -0
- data/bin/sc-init +13 -0
- data/bin/sc-manifest +13 -0
- data/bin/sc-server +13 -0
- data/bin/sproutcore +13 -0
- data/lib/Buildfile +152 -0
- data/lib/buildtasks/build.rake +119 -0
- data/lib/buildtasks/entry.rake +68 -0
- data/lib/buildtasks/manifest.rake +893 -0
- data/lib/buildtasks/render.rake +21 -0
- data/lib/buildtasks/target.rake +66 -0
- data/lib/doc_templates/jsdoc/allclasses.tmpl +17 -0
- data/lib/doc_templates/jsdoc/allfiles.tmpl +56 -0
- data/lib/doc_templates/jsdoc/class.tmpl +487 -0
- data/lib/doc_templates/jsdoc/index.tmpl +38 -0
- data/lib/doc_templates/jsdoc/publish.js +170 -0
- data/lib/doc_templates/jsdoc/static/default.css +162 -0
- data/lib/doc_templates/jsdoc/static/header.html +2 -0
- data/lib/doc_templates/jsdoc/static/index.html +19 -0
- data/lib/doc_templates/jsdoc/symbol.tmpl +35 -0
- data/lib/doc_templates/sproutcore/allclasses.tmpl +0 -0
- data/lib/doc_templates/sproutcore/allfiles.tmpl +56 -0
- data/lib/doc_templates/sproutcore/class.tmpl +674 -0
- data/lib/doc_templates/sproutcore/classes-json.tmpl +55 -0
- data/lib/doc_templates/sproutcore/index.tmpl +62 -0
- data/lib/doc_templates/sproutcore/publish.js +346 -0
- data/lib/doc_templates/sproutcore/static/default.css +258 -0
- data/lib/doc_templates/sproutcore/static/header.html +2 -0
- data/lib/doc_templates/sproutcore/static/index.html +19 -0
- data/lib/doc_templates/sproutcore/symbol.tmpl +35 -0
- data/lib/frameworks/sproutcore/Buildfile +104 -0
- data/lib/frameworks/sproutcore/CHANGELOG.md +435 -0
- data/lib/frameworks/sproutcore/README.md +139 -0
- data/lib/frameworks/sproutcore/apps/test_controls/Buildfile +0 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/alert.js +39 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/buttons.js +21 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/categories.js +125 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/category.js +36 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/split.js +74 -0
- data/lib/frameworks/sproutcore/apps/test_controls/core.js +29 -0
- data/lib/frameworks/sproutcore/apps/test_controls/main.js +14 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/buttons_page.js +158 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js +53 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/flow_layout_page.js +85 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js +40 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.css +60 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.js +151 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/panels_page.js +62 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/progress_page.js +33 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/radio_page.js +55 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/scroll_page.js +77 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/segmented_page.js +99 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/select_page.js +61 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/sliders_page.js +54 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/split_page.js +141 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/strings.js +50 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js +53 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/text_field_page.js +65 -0
- data/lib/frameworks/sproutcore/apps/test_controls/theme.js +34 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/detail.js +25 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/source.js +29 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/target.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/targets.js +86 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/tests.js +33 -0
- data/lib/frameworks/sproutcore/apps/tests/core.js +133 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.css +48 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.js +233 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/strings.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/main.js +27 -0
- data/lib/frameworks/sproutcore/apps/tests/states/no_targets.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready.js +56 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_detail.js +41 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_empty.js +48 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_list.js +41 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_loading.js +44 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_no_tests.js +31 -0
- data/lib/frameworks/sproutcore/apps/tests/states/start.js +39 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/detail.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/source.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/target.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/targets.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/tests.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/models/target.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/models/test.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/views/offset_checkbox.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js +26 -0
- data/lib/frameworks/sproutcore/apps/welcome/controllers/targets.js +55 -0
- data/lib/frameworks/sproutcore/apps/welcome/core.js +30 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/loading.rhtml +10 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +25 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +67 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/apps/welcome/main.js +19 -0
- data/lib/frameworks/sproutcore/apps/welcome/tests/controllers/targets.js +15 -0
- data/lib/frameworks/sproutcore/design/Record State Table.numbers +0 -0
- data/lib/frameworks/sproutcore/design/greenhouse-statechart.pdf +0 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/fixtures/file_exists.json +1 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/fixtures/malformed.json +11 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +609 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/system/response.js +550 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/tests/system/request.js +276 -0
- data/lib/frameworks/sproutcore/frameworks/animation/Buildfile +3 -0
- data/lib/frameworks/sproutcore/frameworks/animation/LICENSE +25 -0
- data/lib/frameworks/sproutcore/frameworks/animation/README.md +79 -0
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +1205 -0
- data/lib/frameworks/sproutcore/frameworks/animation/tests/core.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/README +9 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/core.js +7 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/setup_body_class_names.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/bench.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +225 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/tests/system/browser.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +524 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +342 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controls/button.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/core.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/function.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/bind.js +293 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/localization.js +5 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/view.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/object.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/run_loop.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/string.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/responder_context.js +268 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/selection_support.js +249 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +63 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +174 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/keyboard.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/layout.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/main.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +670 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/visibility.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/protocols/sparse_array_delegate.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/core.css +378 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/view.css +57 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/application.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/bindable_span.js +164 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/browser.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/builder.js +202 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/core_query.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/cursor.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/datetime.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +210 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +991 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/locale.js +289 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/page.js +106 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +419 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/ready.js +103 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +1030 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/responder.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +2180 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/selection_set.js +693 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +401 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/theme.js +316 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/timer.js +548 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils/rect.js +104 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +301 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/enum_case.js +206 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/null_case.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/selection_support.js +344 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/single_case.js +136 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/empty_case.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/multiple_case.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/single_case.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/single_enumerable_case.js +265 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controls/button.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/responder_context.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/string.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/checkbox_support.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/panes/template.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/builder.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/core_query/within.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/locale.js +140 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/ready/done.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/begin.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/element.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/end.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/get.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_attr.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_basic.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_className.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +109 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/init.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/join.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/push_text.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/tag.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/update.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeKeyPane.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMainPane.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMenuPane.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/root_responder.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/targetForAction.js +288 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/add.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/indexSetForSource.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/isEqual.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/remove.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +256 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/theme.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/invalidate.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/invokeLater.js +209 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/isPaused.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/performAction.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/schedule.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/normalizeURL.js +24 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/offset.js +284 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/rect.js +105 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/main_pane.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/append_remove.js +224 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/child_view.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/firstResponder.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/keyPane.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/sendEvent.js +206 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +249 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/core.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +937 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/animation.js +382 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/build.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/build_children.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/convertFrames.js +248 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/convertLayouts.js +153 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/createChildViews.js +132 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/createLayer.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/destroyLayer.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/didAppendToDocument.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/findLayerInParentLayer.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/init.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/insertBefore.js +217 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/isVisible.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/isVisibleInWindow.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layer.js +146 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutChildViews.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutDidChange.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutStyle.js +745 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/parentViewDidChange.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/prepareContext.js +203 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/removeChild.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/render.js +203 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/render_delegate_support.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/replaceChild.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/theme.js +45 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/updateLayer.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/updateLayerLocation.js +213 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/view.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/viewDidResize.js +202 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template.js +132 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +244 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +182 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/base.js +4 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/cursor.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/enabled.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/keyboard.js +223 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1116 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout_style.js +624 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/manipulation.js +401 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/theming.js +400 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/touch.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/visibility.js +118 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +1521 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/core.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/target.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/test.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/target.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/test.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/core.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +530 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +393 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/debug/json.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/debug/standard_setup.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/fixtures/author_fixtures.js +2503 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/fixtures/sample.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_attribute.js +105 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/children_attribute.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +1441 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +604 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +277 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +453 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +613 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +1526 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +758 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +2860 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/contact_model.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/mail_model.js +91 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/datetime_recordattribute.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/many_attribute.js +423 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/data_store.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +313 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +363 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +421 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +304 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/destroy.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/normalize.js +336 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/refresh.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +170 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record_attribute.js +252 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/single_attribute.js +284 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +204 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +173 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +158 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +70 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +102 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +126 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +166 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/builders.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/compare.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/contains.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/copy.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +197 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/parse.js +224 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +70 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/array_observers.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +230 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +137 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +221 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +156 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +278 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +62 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/find.js +530 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/loadRecord.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/loadRecords.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +61 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +200 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/unloadRecord.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/unloadRecords.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/system/datetime.js +1103 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/tests/system/datetime.js +390 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/resources/strings.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/system/datetime.js +91 -0
- data/lib/frameworks/sproutcore/frameworks/debug/core.js +114 -0
- data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +259 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/core.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/alert.css +56 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/a_sample_image.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/apple-logo1.jpeg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/iframe.html +23 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/disclosure.css +73 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/drag.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/icons.css +916 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/cap.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/downbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-bottom.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-center.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-top.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/track.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/upbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +185 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu.css +12 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +101 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/modal.css +9 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/panel.css +91 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/picker.css +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/progress.css +33 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/radio.css +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +132 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/separator.css +19 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +69 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/split.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/split_divider.css +6 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/strings.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/tab.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/toolbar.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/touch-scroller.css +196 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/well.css +71 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +161 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +711 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_group.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +300 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +138 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +267 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +589 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +1081 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/palette.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +939 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +950 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +237 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +301 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/button.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/collection.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/disclosure.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/helpers/slicing.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/image_button.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/menu.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/panel.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/picker.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/popup_button.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +116 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segment.js +58 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segmented.js +80 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/source_list.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/toolbar.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/well.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/workspace.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +1017 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +224 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/mixins/border.js +106 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +320 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +136 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +283 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/pane_page.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +69 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +220 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/content.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/displayProperties.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/keyEquivalents.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/methods.js +166 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +236 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +126 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/content.js +249 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +215 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +300 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/length.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +262 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/reload.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/select.js +240 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +211 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selection.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +188 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +456 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +102 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/ui.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/render.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +130 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +396 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/methods.js +128 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +418 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/methods.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/ui.js +338 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/integration.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +143 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroller.js +118 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +62 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +457 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/methods.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/ui.js +224 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/methods.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/ui.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +238 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/toolbar/method.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/toolbar/ui.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/ui.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +944 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +120 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +3186 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/date_field.js +343 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/grid.js +243 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/image_button.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +657 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +995 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +313 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +720 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +702 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation.js +261 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation_bar.js +191 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +303 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +259 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +404 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scene.js +211 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +1987 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +995 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segment.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +1088 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +907 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +400 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/separator.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +299 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +61 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list_group.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +897 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +58 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/stacked.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +286 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/thumb.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +138 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +103 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/workspace.js +285 -0
- data/lib/frameworks/sproutcore/frameworks/documentation/core.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +8 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/README.md +23 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/README +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/TODO +56 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/beautify.js +1058 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/design.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/file.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/files.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/layout.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/library.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/page.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/property.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/property_editor.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/target.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/targets.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/view_configs.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/core.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/core_file.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/data_source.js +250 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/app_page.js +399 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/app-selector.css +107 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/button.css +314 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/dock.css +90 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/general.css +51 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/main-page.css +93 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/menu.css +49 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/modal.css +41 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/picker.css +195 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/search.css +60 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/text-field.css +67 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/dialogs.js +303 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/actions.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/inspector.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/library-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/library.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/projects.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/run-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/run.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/save-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/save.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/bottom.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/close-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/close.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/left.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/right.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/search-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/search.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/top-left.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/top-right.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/top.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/inspectors.js +365 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/main_page.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/strings.js +93 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/fixtures/file.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/main.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/mixins/drop_down.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/design.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/dir.js +93 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/file.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/target.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/view_config.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/resources/test_page.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/inspector.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/library.js +142 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/main.js +283 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/modals.js +299 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/ready.js +235 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/design.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/designs.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/file.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/files.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/models/file.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/models/view_config.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/views/list_item.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/views/plist_item.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/theme.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/anchor.js +277 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/application_list_item.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/event_blocker.js +32 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/label_designer.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/list_item.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/plist_item.js +178 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/simple_button.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/tear_off_picker.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/web.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/design.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/object.js +349 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/controllers.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/design.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js +139 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_design.js +172 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_files.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/core.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_rule.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js +199 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/button.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/label.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/object_designer.js +298 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/tab.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/text_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +1269 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/css/designer.css +96 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/design_page.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/high_light.css +10 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/controller.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-sel-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-sel-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/page.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/pane.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/view.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/selection_handles.css +58 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/object.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/page.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/button.js +13 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/snap_lines.js +228 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/tests/coders/page.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/tests/designers/view_designer.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/designer_drop_target.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/drawing.js +226 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/high_light.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/page_item_view.js +130 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/selection_handles.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/README.md +11 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +215 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/platform.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/english.lproj/default_styles.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/mixins/edit_mode.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/mixins/emptiness.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/render_delegates/form.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/render_delegates/form_row.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_checkbox_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_label.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_radio_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_row.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_text_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/views/form.js +285 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/views/form_row.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/README.md +46 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/many.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/simple.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/single.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/mixins/split_child.js +229 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/mixins/split_thumb.js +236 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/render_delegates/split.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/render_delegates/split_divider.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/children.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/dividers.js +243 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/methods.js +294 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/split_child.js +135 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/split_thumb.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split.js +929 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split_divider.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/thumb.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/TESTING +46 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/delegates/inline_text_field.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/benchmark.css +146 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/blank.gif +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +67 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/button_view.css +40 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/checkbox_view.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/debug/control-test-pane.css +9 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/favicon.ico +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-logo.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/inline_editor.css +12 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/label.css +47 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/radio_view.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/static_layout.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +146 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/string.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/fixtures/file_exists.json +1 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/fixtures/malformed.json +11 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/pinch.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/swipe.js +234 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/tap.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/license.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_mixin.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +355 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_value_support.js +227 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +282 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +153 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +745 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/gestureable.js +214 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editable.js +254 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor.js +188 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +195 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inner_frame.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/tree_item_content.js +164 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/validatable.js +198 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +916 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/container.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/helpers/sizing.js +174 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/image.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/label.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +386 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +727 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/chance.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/cookie.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +63 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +91 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/gesture.js +363 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +429 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/math.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/module.js +591 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/string.js +422 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +153 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/text_selection.js +103 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +392 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/colors.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/misc.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/range.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/string_measurement.js +254 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/task.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +340 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/delegates/inline_text_field/inline_text_field.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/integration/creating_views.js +118 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_display.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_value_support/content.js +168 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/editable/ui.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/beginEditing.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/commitEditing.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/discardEditing.js +151 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/beginEditing.js +114 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/commitEditing.js +151 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/discardEditing.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +228 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/ui.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +149 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +325 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +718 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +484 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/render_delegates/render_delegate.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/cookie.js +182 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/math.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/string.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/task_queue.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/user_defaults.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/pointInElement.js +241 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/range.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/credit_card.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/date.js +24 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/not_empty.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/number.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/password.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/validator.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +512 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +173 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/nextValidKeyView.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +614 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/credit_card.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/email.js +45 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/not_empty.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/number.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/password.js +86 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/positive_integer.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/validator.js +328 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +337 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +382 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +648 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +225 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +1117 -0
- data/lib/frameworks/sproutcore/frameworks/handlebars/handlebars.js +1435 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffer.js +390 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffered.js +210 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-sc.js +12 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +7179 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/tests/set_class.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/controls.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/playeras3.fla +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/video.css +124 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/videoCanvas.swf +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +741 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/media_slider.js +243 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/mini_controls.js +63 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/video.js +832 -0
- data/lib/frameworks/sproutcore/frameworks/mini/license.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/README.md +24 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/package.json +21 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/qunit/qunit.css +215 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/qunit/qunit.js +1442 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/headless.html +24 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/index.html +18 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/logs.html +17 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/logs.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/same.js +1421 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/test.js +314 -0
- data/lib/frameworks/sproutcore/frameworks/routing/system/routes.js +503 -0
- data/lib/frameworks/sproutcore/frameworks/routing/tests/system/routes.js +362 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/README +12 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +758 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +391 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +371 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/array.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/date.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/function.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/string.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/license.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +911 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +1341 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +109 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +1499 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +181 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +179 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/property_chain.js +195 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +1013 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +107 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/function.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +1209 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/json.js +515 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +1585 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +940 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +273 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +308 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +538 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/string.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/IsEqual.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/beget.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/clone.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/compare.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/console.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/guidFor.js +115 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/inspect.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js +27 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/itemType.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/keys.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/makeArray.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array_observers.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/comparable.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable/enumerable.js +623 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable/enumerable_observers.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/chained.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +868 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observersForKey.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +161 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +474 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/error.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/add.js +212 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/create.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/max.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/min.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/without.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/json.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/logger.js +265 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/base.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/bindings.js +385 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/concatenated_properties.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/enhance.js +196 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/observer_set.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/run_loop.js +126 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/set.js +324 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/core.js +5 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/debug/monitor.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +1253 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +1546 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/advanced/respond_to_event.js +401 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/advanced/without_concurrent_states.js +306 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/basic/with_concurrent_states.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/basic/without_concurrent_states.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/pane.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/responder_chain.js +109 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/root_responder.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/initial_substate.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/is_current_state.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/namespacing.js +248 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/plugin/mixin.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/plugin/nesting.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/state_observes.js +235 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/core.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/with_concurrent_states.js +123 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/without_concurrent_states.js +191 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/initial_substate/core.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/initial_substate/without_concurrent_states.js +218 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/with_concurrent_states.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/without_concurrent_states/context.js +191 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/without_concurrent_states/core.js +200 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/advanced.js +239 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/basic.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/intermediate.js +120 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/without_concurrent_states/context.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/without_concurrent_states/core.js +281 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/transient/without_concurrent_states.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/create/assigned_root_state.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/create/unassigned_root_state.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/destroy.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/invoke_state_method.js +241 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/owner.js +236 -0
- data/lib/frameworks/sproutcore/frameworks/table/mixins/table_delegate.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/table/system/table_column.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table.js +440 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_cell.js +63 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +158 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_header.js +214 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/testing/core.js +199 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/additions.css +8 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/runner.css +128 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/testsuite.css +136 -0
- data/lib/frameworks/sproutcore/frameworks/testing/extras.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/dump.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/equiv.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +708 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +222 -0
- data/lib/frameworks/sproutcore/frameworks/testing/utils.js +62 -0
- data/lib/frameworks/sproutcore/lib/index.rhtml +167 -0
- data/lib/frameworks/sproutcore/license.js +32 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/dark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/light.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_handle.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_off.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_on.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/body.css +13 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/button.css +33 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/button.css +102 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/button.css +78 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/button.css +39 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/button.css +41 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/button.css +93 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/button.css +72 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.css +17 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.js +5 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/active_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/normal_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/select.css +21 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox.css +40 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox.css +40 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/checkbox.css +7 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list.css +4 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +17 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source-list.js +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source_list_view.css +36 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure.css +24 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/imagebutton/ace/imagebutton.css +11 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/loading.css +50 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/master-detail/master-detail.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/down.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.css +79 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/up.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/pane/pane.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.css +13 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/panel.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.css +41 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/pointers.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js +32 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.css +111 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.js +12 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_empty.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js +28 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_content.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio.css +57 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_unselected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal.css +78 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal_touch.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical.css +80 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical_touch.css +92 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented.css +95 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/segmented.css +83 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/slider.css +8 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/split/split.css +31 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/tab/tab.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.css +8 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/well/well.css +7 -0
- data/lib/frameworks/sproutcore/themes/ace/theme.js +30 -0
- data/lib/frameworks/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +69 -0
- data/lib/frameworks/sproutcore/themes/empty_theme/theme.js +16 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/button.css +41 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/core.css +8 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/backButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/blueButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/cancel.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/grayButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/leftButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listArrow.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listArrowSel.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listGroup.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/loading.gif +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/pinstripes.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/rightButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toggle.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toggleOn.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toolButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/whiteButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/button.css +399 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/checkbox.css +78 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/collection.css +135 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/core.css +76 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/disclosure.css +57 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_222222.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_454545.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_888888.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_ffffff.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/panels/sprite-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/panels/sprite-y.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-scroller-repeat-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-scroller-repeat-y.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-scroller-sprite.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-theme-repeat-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-theme-ysprite.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-toolbar-view.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/label.css +11 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/list_item.css +82 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/menu.css +20 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/menu_item_view.css +36 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/pane.css +18 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/panel.css +33 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/picker.css +17 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/progress.css +27 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/radio.css +125 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/scroller.css +159 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/segmented.css +270 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/slider.css +94 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/split_view.css +11 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/tab.css +14 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/table.css +14 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/text_field.css +5 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/toolbar.css +7 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/well.css +36 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/button.js +89 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/panel.js +28 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/progress.js +194 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/slider.js +67 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/well.js +27 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/theme.js +13 -0
- data/lib/gen/Buildfile +16 -0
- data/lib/gen/app/Buildfile +36 -0
- data/lib/gen/app/README +1 -0
- data/lib/gen/app/USAGE +13 -0
- data/lib/gen/app/templates/apps/@target_name@/Buildfile +14 -0
- data/lib/gen/app/templates/apps/@target_name@/core.js +27 -0
- data/lib/gen/app/templates/apps/@target_name@/main.js +30 -0
- data/lib/gen/app/templates/apps/@target_name@/resources/loading.rhtml +9 -0
- data/lib/gen/app/templates/apps/@target_name@/resources/main_page.js +24 -0
- data/lib/gen/app/templates/apps/@target_name@/theme.js +27 -0
- data/lib/gen/controller/Buildfile +18 -0
- data/lib/gen/controller/README +1 -0
- data/lib/gen/controller/USAGE +13 -0
- data/lib/gen/controller/templates/controllers/@filename@.js +18 -0
- data/lib/gen/controller/templates/tests/controllers/@filename@.js +15 -0
- data/lib/gen/data-source/Buildfile +18 -0
- data/lib/gen/data-source/README +1 -0
- data/lib/gen/data-source/USAGE +15 -0
- data/lib/gen/data-source/templates/data_sources/@filename@.js +64 -0
- data/lib/gen/design/Buildfile +23 -0
- data/lib/gen/design/README +1 -0
- data/lib/gen/design/USAGE +10 -0
- data/lib/gen/design/templates/resources/@filename@.js +16 -0
- data/lib/gen/framework/Buildfile +36 -0
- data/lib/gen/framework/README +1 -0
- data/lib/gen/framework/USAGE +13 -0
- data/lib/gen/framework/templates/frameworks/@target_name@/core.js +21 -0
- data/lib/gen/framework/templates/frameworks/@target_name@/english.lproj/strings.js +15 -0
- data/lib/gen/html_app/Buildfile +36 -0
- data/lib/gen/html_app/README +1 -0
- data/lib/gen/html_app/USAGE +15 -0
- data/lib/gen/html_app/templates/apps/@target_name@/@target_name@.js +14 -0
- data/lib/gen/html_app/templates/apps/@target_name@/resources/images/.gitkeep +0 -0
- data/lib/gen/html_app/templates/apps/@target_name@/resources/stylesheets/@target_name@.css +4 -0
- data/lib/gen/html_app/templates/apps/@target_name@/resources/templates/@target_name@.handlebars +1 -0
- data/lib/gen/html_project/Buildfile +45 -0
- data/lib/gen/html_project/INIT +3 -0
- data/lib/gen/html_project/README +1 -0
- data/lib/gen/html_project/USAGE +2 -0
- data/lib/gen/html_project/templates/@filename@/Buildfile +8 -0
- data/lib/gen/html_project/templates/@filename@/README +7 -0
- data/lib/gen/language/Buildfile +26 -0
- data/lib/gen/language/README +1 -0
- data/lib/gen/language/USAGE +13 -0
- data/lib/gen/language/templates/@filename@/strings.js +14 -0
- data/lib/gen/model/Buildfile +16 -0
- data/lib/gen/model/README +1 -0
- data/lib/gen/model/USAGE +15 -0
- data/lib/gen/model/templates/fixtures/@filename@.js +35 -0
- data/lib/gen/model/templates/models/@filename@.js +19 -0
- data/lib/gen/model/templates/tests/models/@filename@.js +15 -0
- data/lib/gen/page/Buildfile +36 -0
- data/lib/gen/page/README +1 -0
- data/lib/gen/page/USAGE +15 -0
- data/lib/gen/page/templates/pages/@target_name@/Buildfile +16 -0
- data/lib/gen/page/templates/pages/@target_name@/core.js +22 -0
- data/lib/gen/page/templates/pages/@target_name@/en.lproj/strings.js +14 -0
- data/lib/gen/page/templates/pages/@target_name@/resources/body.css +1 -0
- data/lib/gen/page/templates/pages/@target_name@/resources/body.rhtml +7 -0
- data/lib/gen/project/Buildfile +45 -0
- data/lib/gen/project/INIT +3 -0
- data/lib/gen/project/README +1 -0
- data/lib/gen/project/USAGE +2 -0
- data/lib/gen/project/templates/@filename@/Buildfile +12 -0
- data/lib/gen/project/templates/@filename@/README +7 -0
- data/lib/gen/responder/Buildfile +18 -0
- data/lib/gen/responder/README +1 -0
- data/lib/gen/responder/USAGE +15 -0
- data/lib/gen/responder/templates/states/@filename@.js +39 -0
- data/lib/gen/test/Buildfile +25 -0
- data/lib/gen/test/README +1 -0
- data/lib/gen/test/USAGE +12 -0
- data/lib/gen/test/templates/tests/@filename@.js +15 -0
- data/lib/gen/theme/Buildfile +36 -0
- data/lib/gen/theme/README +1 -0
- data/lib/gen/theme/USAGE +13 -0
- data/lib/gen/theme/templates/themes/@target_name@/Buildfile +3 -0
- data/lib/gen/theme/templates/themes/@target_name@/resources/theme_styles.css +11 -0
- data/lib/gen/theme/templates/themes/@target_name@/theme.js +23 -0
- data/lib/gen/view/Buildfile +18 -0
- data/lib/gen/view/README +1 -0
- data/lib/gen/view/USAGE +13 -0
- data/lib/gen/view/templates/tests/views/@filename@.js +15 -0
- data/lib/gen/view/templates/views/@filename@.js +18 -0
- data/lib/sproutcore/builders/base.rb +97 -0
- data/lib/sproutcore/builders/chance_file.rb +78 -0
- data/lib/sproutcore/builders/combine.rb +61 -0
- data/lib/sproutcore/builders/handlebars.rb +30 -0
- data/lib/sproutcore/builders/html.rb +213 -0
- data/lib/sproutcore/builders/javascript.rb +107 -0
- data/lib/sproutcore/builders/less.rb +41 -0
- data/lib/sproutcore/builders/minify.rb +148 -0
- data/lib/sproutcore/builders/module.rb +74 -0
- data/lib/sproutcore/builders/sass.rb +65 -0
- data/lib/sproutcore/builders/string_wrapper.rb +41 -0
- data/lib/sproutcore/builders/strings.rb +45 -0
- data/lib/sproutcore/builders/stylesheet.rb +49 -0
- data/lib/sproutcore/builders/test.rb +59 -0
- data/lib/sproutcore/builders/test_index.rb +26 -0
- data/lib/sproutcore/builders.rb +15 -0
- data/lib/sproutcore/buildfile/build_task.rb +33 -0
- data/lib/sproutcore/buildfile/buildfile_dsl.rb +169 -0
- data/lib/sproutcore/buildfile/early_time.rb +30 -0
- data/lib/sproutcore/buildfile/invocation_chain.rb +64 -0
- data/lib/sproutcore/buildfile/namespace.rb +33 -0
- data/lib/sproutcore/buildfile/string_ext.rb +202 -0
- data/lib/sproutcore/buildfile/task.rb +325 -0
- data/lib/sproutcore/buildfile/task_arguments.rb +106 -0
- data/lib/sproutcore/buildfile/task_manager.rb +204 -0
- data/lib/sproutcore/buildfile.rb +490 -0
- data/lib/sproutcore/deprecated/view_helper.rb +662 -0
- data/lib/sproutcore/helpers/capture_helper.rb +30 -0
- data/lib/sproutcore/helpers/cssmin.rb +202 -0
- data/lib/sproutcore/helpers/dom_id_helper.rb +21 -0
- data/lib/sproutcore/helpers/entry_sorter.rb +125 -0
- data/lib/sproutcore/helpers/html5_manifest.rb +88 -0
- data/lib/sproutcore/helpers/minifier.rb +106 -0
- data/lib/sproutcore/helpers/packed_optimizer.rb +102 -0
- data/lib/sproutcore/helpers/static_helper.rb +444 -0
- data/lib/sproutcore/helpers/tag_helper.rb +182 -0
- data/lib/sproutcore/helpers/text_helper.rb +303 -0
- data/lib/sproutcore/helpers.rb +11 -0
- data/lib/sproutcore/models/generator.rb +509 -0
- data/lib/sproutcore/models/hash_struct.rb +124 -0
- data/lib/sproutcore/models/manifest.rb +387 -0
- data/lib/sproutcore/models/manifest_entry.rb +362 -0
- data/lib/sproutcore/models/project.rb +267 -0
- data/lib/sproutcore/models/target.rb +870 -0
- data/lib/sproutcore/models.rb +8 -0
- data/lib/sproutcore/rack/builder.rb +344 -0
- data/lib/sproutcore/rack/dev.rb +92 -0
- data/lib/sproutcore/rack/docs.rb +24 -0
- data/lib/sproutcore/rack/filesystem.rb +324 -0
- data/lib/sproutcore/rack/proxy.rb +165 -0
- data/lib/sproutcore/rack/service.rb +153 -0
- data/lib/sproutcore/rack/test_runner.rb +24 -0
- data/lib/sproutcore/rack.rb +7 -0
- data/lib/sproutcore/render_engines/erubis.rb +55 -0
- data/lib/sproutcore/render_engines/haml.rb +39 -0
- data/lib/sproutcore/tools/build.rb +100 -0
- data/lib/sproutcore/tools/build_number.rb +23 -0
- data/lib/sproutcore/tools/docs.rb +53 -0
- data/lib/sproutcore/tools/gen.rb +101 -0
- data/lib/sproutcore/tools/init.rb +56 -0
- data/lib/sproutcore/tools/manifest.rb +85 -0
- data/lib/sproutcore/tools/server.rb +56 -0
- data/lib/sproutcore/tools.rb +419 -0
- data/lib/sproutcore/version.rb +12 -0
- data/lib/sproutcore.rb +169 -0
- data/spec/buildtasks/build/copy_spec.rb +60 -0
- data/spec/buildtasks/build/spec_helper.rb +36 -0
- data/spec/buildtasks/manifest/catalog_spec.rb +48 -0
- data/spec/buildtasks/manifest/hide_buildfiles_spec.rb +126 -0
- data/spec/buildtasks/manifest/localize_spec.rb +97 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/chance_2x_spec.rb +100 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/chance_spec.rb +104 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +331 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb +87 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/handlebars_spec.rb +39 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/html_spec.rb +175 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/javascript_spec.rb +65 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb +70 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/module_info_spec.rb +96 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/module_spec.rb +83 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_2x_indirect_spec.rb +191 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_2x_spec.rb +185 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb +187 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/sass_spec.rb +98 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/strings_spec.rb +64 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/tests_spec.rb +163 -0
- data/spec/buildtasks/manifest/prepare_spec.rb +43 -0
- data/spec/buildtasks/manifest/spec_helper.rb +39 -0
- data/spec/buildtasks/target_spec.rb +270 -0
- data/spec/fixtures/builder_tests/Buildfile +22 -0
- data/spec/fixtures/builder_tests/apps/chance_test/Buildfile +14 -0
- data/spec/fixtures/builder_tests/apps/chance_test/core.js +27 -0
- data/spec/fixtures/builder_tests/apps/chance_test/main.js +30 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/demo.css +6 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/force@2x.png +0 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/last_file.css +7 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/loading.rhtml +9 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/main_page.js +24 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/z_first_file.css +6 -0
- data/spec/fixtures/builder_tests/apps/chance_test/theme.js +27 -0
- data/spec/fixtures/builder_tests/apps/combine_test/a.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/b.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/c.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/a.css +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/b.css +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/c.css +1 -0
- data/spec/fixtures/builder_tests/apps/handlebars_test/template.handlebars +5 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/bar1_sample.rhtml +2 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/erb_sample.html.erb +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/icons/image.png +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/image.jpg +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/rhtml_sample.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/style.css +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/french.lproj/french-icons/fr.png +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/french.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/html_test/lib/layout_template.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/scripts.js +0 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/sc_static.js +15 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/sc_super.js +4 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/strings.js +7 -0
- data/spec/fixtures/builder_tests/apps/less_test/sample.less +4 -0
- data/spec/fixtures/builder_tests/apps/module_test/module.js +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/english.lproj/req_style_2.css +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/javascript.js +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/lib/alt_layout.rhtml +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/req_js_2.js +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/dynamic_req_target_1/dynamic_req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/dynamic_req_target_1/english.lproj/dynamic_req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/inlined_module/README +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/apps/sass_test/sample.sass +4 -0
- data/spec/fixtures/builder_tests/apps/sass_test/sample.scss +4 -0
- data/spec/fixtures/builder_tests/apps/strings_test/lproj/strings.js +8 -0
- data/spec/fixtures/builder_tests/apps/stylesheet_test/build_directives.css +9 -0
- data/spec/fixtures/builder_tests/apps/stylesheet_test/sc_static.css +12 -0
- data/spec/fixtures/builder_tests/apps/test_test/lib/alt_layout.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/lib/test_layout.rhtml +3 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test.js +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test2.js +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/rhtml_test.rhtml +4 -0
- data/spec/fixtures/builder_tests/frameworks/debug/core.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/debug/english.lproj/dummy.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/dynamic_req_target_1/dynamic_req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/dynamic_req_target_1/english.lproj/dynamic_req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/qunit/core.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/qunit/english.lproj/dummy.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/req_style_2.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/javascript.js +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/lib/alt_layout.rhtml +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/req_js_2.js +0 -0
- data/spec/fixtures/builder_tests/themes/sample_theme/Buildfile +1 -0
- data/spec/fixtures/buildfiles/basic/Buildfile +11 -0
- data/spec/fixtures/buildfiles/basic/task_module.rake +6 -0
- data/spec/fixtures/buildfiles/installed/Buildfile +5 -0
- data/spec/fixtures/buildfiles/installed/Buildfile2 +5 -0
- data/spec/fixtures/buildfiles/project_test/Buildfile +4 -0
- data/spec/fixtures/buildfiles/project_test/not_project/Buildfile +2 -0
- data/spec/fixtures/buildfiles/project_test/not_project/child/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/Buildfile +1 -0
- data/spec/fixtures/entry_for_project/apps/test_app/entry.txt +0 -0
- data/spec/fixtures/entry_for_project/apps/test_app/frameworks/nested/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/frameworks/shared/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/frameworks/unrelated/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/Buildfile +8 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/Buildfile +5 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/foos/not_foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/nested/Buildfile +8 -0
- data/spec/fixtures/find_targets/nested/apps/app1/Buildfile +1 -0
- data/spec/fixtures/find_targets/nested/apps/app1/apps/nested_app/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/clients/client1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/frameworks/framework1/frameworks/framework1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/frameworks/framework2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/themes/theme1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/themes/theme2/PLACEHOLDER +0 -0
- data/spec/fixtures/helper_tests/apps/minifier_test/core.js +8 -0
- data/spec/fixtures/languages/apps/caps_long_names/English.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/FreNCH.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/UnknOWN.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/english.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/french.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/german.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/italian.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/japanese.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/spanish.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/unknown.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/no_names/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/de.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-CA.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-GB.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-US.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/es.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/foo.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/fr.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/it.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/ja.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/1.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/B.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a/b.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/b/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/c.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/core.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/B.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/b.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/b/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/c.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/strings.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/main.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/resources/main_page.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/t.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/utils.js +1 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/a.js +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/b.js +3 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/c.js +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/a.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/b.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/c.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/d.js +1 -0
- data/spec/fixtures/real_world/Buildfile +22 -0
- data/spec/fixtures/real_world/apps/account/README +1 -0
- data/spec/fixtures/real_world/apps/account/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/calendar/README +1 -0
- data/spec/fixtures/real_world/apps/calendar/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/contacts/README_BEFORE_EDITING +1 -0
- data/spec/fixtures/real_world/apps/contacts/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/contacts/modules/printing/README +0 -0
- data/spec/fixtures/real_world/apps/files/README +1 -0
- data/spec/fixtures/real_world/apps/mail/README +1 -0
- data/spec/fixtures/real_world/apps/mail/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/mail/modules/printing/README +0 -0
- data/spec/fixtures/real_world/apps/mobile_photos/README +1 -0
- data/spec/fixtures/real_world/apps/photos/README +1 -0
- data/spec/fixtures/real_world/apps/photos/modules/email/README +0 -0
- data/spec/fixtures/real_world/apps/photos/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/uploader/README +1 -0
- data/spec/fixtures/real_world/frameworks/core_files/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/core_photos/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/no_2x/resources/test.css +1 -0
- data/spec/fixtures/real_world/frameworks/no_2x/resources/test.png +0 -0
- data/spec/fixtures/real_world/frameworks/shared/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/Buildfile +26 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/README +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/docs/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/test_runner/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/core.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/debug/debug-resource.html +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/debug/sample_debug.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/demo2.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/demo3.scss +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/debug/sample_debug-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.css +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.html +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo2.sass +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo3.scss +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo4.less +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.haml +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.html.erb +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.rhtml +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/fixtures/sample_fixtures-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/has_require.css +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_require.css +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_sc_resource.rhtml +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/protocols/sample-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.css +6 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.rhtml +3 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/strings.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/templates/demo.handlebars +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/tests/sample-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample-json-fixture.json +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample_fixtures.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/application/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/costello/core.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/data_store/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/debug/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/desktop/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/empty_theme/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/foundation/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/mobile/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/qunit/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/uploader/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/french-resource.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/strings.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/german-resource.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/strings.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/has_require.js +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/lib/index.html +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/no_require.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/protocols/sample.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/resources/boo.png +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/resources/force@2x.png +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/sc_resource.js +6 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample1.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample2.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.rhtml +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/themes/standard_theme/README +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/views/view.js +1 -0
- data/spec/fixtures/real_world/generators/sample_custom/Buildfile +0 -0
- data/spec/fixtures/real_world/generators/sample_custom/templates/{filename}.js +1 -0
- data/spec/fixtures/recursive_project/Buildfile +8 -0
- data/spec/fixtures/recursive_project/frameworks/sproutcore/frameworks/costello/PLACEHOLDER +0 -0
- data/spec/lib/builders/chance_file_spec.rb +44 -0
- data/spec/lib/builders/combine_spec.rb +67 -0
- data/spec/lib/builders/handlebars_spec.rb +29 -0
- data/spec/lib/builders/html_spec.rb +580 -0
- data/spec/lib/builders/javascript_spec.rb +82 -0
- data/spec/lib/builders/less_spec.rb +51 -0
- data/spec/lib/builders/module_spec.rb +133 -0
- data/spec/lib/builders/sass_spec.rb +72 -0
- data/spec/lib/builders/spec_helper.rb +30 -0
- data/spec/lib/builders/strings_spec.rb +56 -0
- data/spec/lib/builders/stylesheet_spec.rb +64 -0
- data/spec/lib/builders/test_index_spec.rb +45 -0
- data/spec/lib/builders/test_spec.rb +137 -0
- data/spec/lib/buildfile/config_for_spec.rb +81 -0
- data/spec/lib/buildfile/define_spec.rb +59 -0
- data/spec/lib/buildfile/dup_spec.rb +65 -0
- data/spec/lib/buildfile/invoke_spec.rb +135 -0
- data/spec/lib/buildfile/load_spec.rb +51 -0
- data/spec/lib/buildfile/task/dup_spec.rb +55 -0
- data/spec/lib/buildfile/task_defined_spec.rb +17 -0
- data/spec/lib/buildfile_commands/build_task_spec.rb +19 -0
- data/spec/lib/buildfile_commands/config_spec.rb +97 -0
- data/spec/lib/buildfile_commands/import_spec.rb +17 -0
- data/spec/lib/buildfile_commands/namespace_spec.rb +18 -0
- data/spec/lib/buildfile_commands/proxies_spec.rb +38 -0
- data/spec/lib/buildfile_commands/replace_task_spec.rb +29 -0
- data/spec/lib/buildfile_commands/task_spec.rb +36 -0
- data/spec/lib/helpers/minifier.rb +31 -0
- data/spec/lib/helpers/packing_optimizer/optimize_spec.rb +26 -0
- data/spec/lib/models/hash_struct/deep_clone_spec.rb +27 -0
- data/spec/lib/models/hash_struct/has_options_spec.rb +32 -0
- data/spec/lib/models/hash_struct/hash_spec.rb +29 -0
- data/spec/lib/models/hash_struct/merge_spec.rb +19 -0
- data/spec/lib/models/hash_struct/method_missing.rb +41 -0
- data/spec/lib/models/manifest/add_entry_spec.rb +36 -0
- data/spec/lib/models/manifest/add_transform_spec.rb +93 -0
- data/spec/lib/models/manifest/build_spec.rb +78 -0
- data/spec/lib/models/manifest/entry_for_spec.rb +94 -0
- data/spec/lib/models/manifest/find_entry.rb +119 -0
- data/spec/lib/models/manifest/prepare_spec.rb +62 -0
- data/spec/lib/models/manifest_entry/cacheable_url_spec.rb +31 -0
- data/spec/lib/models/manifest_entry/hyperdomain_prefix.rb +34 -0
- data/spec/lib/models/manifest_entry/prepare_spec.rb +54 -0
- data/spec/lib/models/project/add_target_spec.rb +44 -0
- data/spec/lib/models/project/buildfile_spec.rb +35 -0
- data/spec/lib/models/project/find_targets_for_spec.rb +78 -0
- data/spec/lib/models/project/load_nearest_project_spec.rb +23 -0
- data/spec/lib/models/project/target_for_spec.rb +33 -0
- data/spec/lib/models/project/targets_spec.rb +62 -0
- data/spec/lib/models/target/compute_build_number_spec.rb +126 -0
- data/spec/lib/models/target/config_spec.rb +30 -0
- data/spec/lib/models/target/expand_required_targets_spec.rb +48 -0
- data/spec/lib/models/target/installed_languages_spec.rb +47 -0
- data/spec/lib/models/target/lproj_for_spec.rb +38 -0
- data/spec/lib/models/target/manifest_for_spec.rb +42 -0
- data/spec/lib/models/target/parent_target_spec.rb +21 -0
- data/spec/lib/models/target/prepare_spec.rb +53 -0
- data/spec/lib/models/target/required_targets_spec.rb +129 -0
- data/spec/lib/models/target/target_for_spec.rb +56 -0
- data/spec/lib/tools/build_number_spec.rb +35 -0
- data/spec/lib/tools/gen_spec.rb +209 -0
- data/spec/lib/tools/tools_spec.rb +96 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +138 -0
- data/sproutcore.gemspec +65 -0
- data/vendor/chance/.gitignore +5 -0
- data/vendor/chance/Gemfile +4 -0
- data/vendor/chance/Rakefile +2 -0
- data/vendor/chance/bin/chance +46 -0
- data/vendor/chance/chance.gemspec +28 -0
- data/vendor/chance/lib/chance/instance/data_url.rb +85 -0
- data/vendor/chance/lib/chance/instance/javascript.rb +19 -0
- data/vendor/chance/lib/chance/instance/slicing.rb +181 -0
- data/vendor/chance/lib/chance/instance/spriting.rb +311 -0
- data/vendor/chance/lib/chance/instance.rb +330 -0
- data/vendor/chance/lib/chance/parser.rb +835 -0
- data/vendor/chance/lib/chance/perf.rb +17 -0
- data/vendor/chance/lib/chance/version.rb +3 -0
- data/vendor/chance/lib/chance.rb +158 -0
- data/vendor/chance/lib/tester/test.rb +108 -0
- data/vendor/chance/lib/tester/test_runner.rb +27 -0
- data/vendor/chance/test/case/abc.png +0 -0
- data/vendor/chance/test/case/more/abc.png +0 -0
- data/vendor/chance/test/case/more/another.css +4 -0
- data/vendor/chance/test/case/test1.css +22 -0
- data/vendor/chance/test/case/test2.css +6 -0
- data/vendor/chance/tests/parser/basic/input/test.css +4 -0
- data/vendor/chance/tests/parser/basic/output/test.parsed.css +5 -0
- data/vendor/jsdoc/README.txt +151 -0
- data/vendor/jsdoc/app/frame/Chain.js +102 -0
- data/vendor/jsdoc/app/frame/Dumper.js +144 -0
- data/vendor/jsdoc/app/frame/Hash.js +47 -0
- data/vendor/jsdoc/app/frame/Link.js +142 -0
- data/vendor/jsdoc/app/frame/Namespace.js +10 -0
- data/vendor/jsdoc/app/frame/Opt.js +134 -0
- data/vendor/jsdoc/app/frame/Reflection.js +26 -0
- data/vendor/jsdoc/app/frame/String.js +93 -0
- data/vendor/jsdoc/app/frame/Testrun.js +129 -0
- data/vendor/jsdoc/app/frame.js +33 -0
- data/vendor/jsdoc/app/handlers/FOODOC.js +26 -0
- data/vendor/jsdoc/app/handlers/XMLDOC/DomReader.js +159 -0
- data/vendor/jsdoc/app/handlers/XMLDOC/XMLDoc.js +16 -0
- data/vendor/jsdoc/app/handlers/XMLDOC/XMLParse.js +292 -0
- data/vendor/jsdoc/app/handlers/XMLDOC.js +26 -0
- data/vendor/jsdoc/app/lib/JSDOC/DocComment.js +200 -0
- data/vendor/jsdoc/app/lib/JSDOC/DocTag.js +294 -0
- data/vendor/jsdoc/app/lib/JSDOC/JsDoc.js +162 -0
- data/vendor/jsdoc/app/lib/JSDOC/JsPlate.js +100 -0
- data/vendor/jsdoc/app/lib/JSDOC/Lang.js +144 -0
- data/vendor/jsdoc/app/lib/JSDOC/Parser.js +109 -0
- data/vendor/jsdoc/app/lib/JSDOC/PluginManager.js +33 -0
- data/vendor/jsdoc/app/lib/JSDOC/Symbol.js +681 -0
- data/vendor/jsdoc/app/lib/JSDOC/SymbolSet.js +226 -0
- data/vendor/jsdoc/app/lib/JSDOC/TextStream.js +41 -0
- data/vendor/jsdoc/app/lib/JSDOC/Token.js +18 -0
- data/vendor/jsdoc/app/lib/JSDOC/TokenReader.js +332 -0
- data/vendor/jsdoc/app/lib/JSDOC/TokenStream.js +133 -0
- data/vendor/jsdoc/app/lib/JSDOC/Util.js +32 -0
- data/vendor/jsdoc/app/lib/JSDOC/Walker.js +453 -0
- data/vendor/jsdoc/app/lib/JSDOC.js +98 -0
- data/vendor/jsdoc/app/main.js +74 -0
- data/vendor/jsdoc/app/plugins/commentSrcJson.js +19 -0
- data/vendor/jsdoc/app/plugins/frameworkPrototype.js +16 -0
- data/vendor/jsdoc/app/plugins/functionCall.js +10 -0
- data/vendor/jsdoc/app/plugins/publishSrcHilite.js +62 -0
- data/vendor/jsdoc/app/plugins/sproutcoreTags.js +26 -0
- data/vendor/jsdoc/app/plugins/symbolLink.js +9 -0
- data/vendor/jsdoc/app/plugins/tagParamConfig.js +31 -0
- data/vendor/jsdoc/app/plugins/tagSynonyms.js +43 -0
- data/vendor/jsdoc/app/run.js +346 -0
- data/vendor/jsdoc/app/t/TestDoc.js +144 -0
- data/vendor/jsdoc/app/t/runner.js +13 -0
- data/vendor/jsdoc/app/test/addon.js +24 -0
- data/vendor/jsdoc/app/test/anon_inner.js +14 -0
- data/vendor/jsdoc/app/test/augments.js +31 -0
- data/vendor/jsdoc/app/test/augments2.js +26 -0
- data/vendor/jsdoc/app/test/borrows.js +41 -0
- data/vendor/jsdoc/app/test/borrows2.js +23 -0
- data/vendor/jsdoc/app/test/config.js +22 -0
- data/vendor/jsdoc/app/test/constructs.js +18 -0
- data/vendor/jsdoc/app/test/encoding.js +10 -0
- data/vendor/jsdoc/app/test/encoding_other.js +12 -0
- data/vendor/jsdoc/app/test/functions_anon.js +39 -0
- data/vendor/jsdoc/app/test/functions_nested.js +33 -0
- data/vendor/jsdoc/app/test/global.js +13 -0
- data/vendor/jsdoc/app/test/globals.js +25 -0
- data/vendor/jsdoc/app/test/ignore.js +10 -0
- data/vendor/jsdoc/app/test/inner.js +16 -0
- data/vendor/jsdoc/app/test/jsdoc_test.js +477 -0
- data/vendor/jsdoc/app/test/lend.js +33 -0
- data/vendor/jsdoc/app/test/memberof.js +20 -0
- data/vendor/jsdoc/app/test/memberof_constructor.js +15 -0
- data/vendor/jsdoc/app/test/name.js +19 -0
- data/vendor/jsdoc/app/test/namespace_nested.js +23 -0
- data/vendor/jsdoc/app/test/nocode.js +13 -0
- data/vendor/jsdoc/app/test/oblit_anon.js +20 -0
- data/vendor/jsdoc/app/test/overview.js +20 -0
- data/vendor/jsdoc/app/test/param_inline.js +37 -0
- data/vendor/jsdoc/app/test/params_optional.js +8 -0
- data/vendor/jsdoc/app/test/prototype.js +17 -0
- data/vendor/jsdoc/app/test/prototype_nested.js +9 -0
- data/vendor/jsdoc/app/test/prototype_oblit.js +13 -0
- data/vendor/jsdoc/app/test/prototype_oblit_constructor.js +24 -0
- data/vendor/jsdoc/app/test/public.js +10 -0
- data/vendor/jsdoc/app/test/shared.js +42 -0
- data/vendor/jsdoc/app/test/shared2.js +2 -0
- data/vendor/jsdoc/app/test/shortcuts.js +22 -0
- data/vendor/jsdoc/app/test/static_this.js +13 -0
- data/vendor/jsdoc/app/test/synonyms.js +23 -0
- data/vendor/jsdoc/app/test/tosource.js +23 -0
- data/vendor/jsdoc/app/test/variable_redefine.js +14 -0
- data/vendor/jsdoc/app/test.js +304 -0
- data/vendor/jsdoc/changes.txt +47 -0
- data/vendor/jsdoc/conf/sample.conf +31 -0
- data/vendor/jsdoc/java/build.xml +36 -0
- data/vendor/jsdoc/java/build_1.4.xml +36 -0
- data/vendor/jsdoc/java/classes/js.jar +0 -0
- data/vendor/jsdoc/java/src/JsDebugRun.java +21 -0
- data/vendor/jsdoc/java/src/JsRun.java +21 -0
- data/vendor/jsdoc/jsdebug.jar +0 -0
- data/vendor/jsdoc/jsrun.jar +0 -0
- data/vendor/jsdoc/t/TestDoc.js +144 -0
- data/vendor/jsdoc/t/runner.js +13 -0
- data/vendor/jsdoc/test/addon.js +24 -0
- data/vendor/jsdoc/test/anon_inner.js +14 -0
- data/vendor/jsdoc/test/augments.js +31 -0
- data/vendor/jsdoc/test/augments2.js +26 -0
- data/vendor/jsdoc/test/borrows.js +41 -0
- data/vendor/jsdoc/test/borrows2.js +23 -0
- data/vendor/jsdoc/test/config.js +22 -0
- data/vendor/jsdoc/test/constructs.js +18 -0
- data/vendor/jsdoc/test/encoding.js +10 -0
- data/vendor/jsdoc/test/encoding_other.js +12 -0
- data/vendor/jsdoc/test/functions_anon.js +39 -0
- data/vendor/jsdoc/test/functions_nested.js +33 -0
- data/vendor/jsdoc/test/global.js +13 -0
- data/vendor/jsdoc/test/globals.js +25 -0
- data/vendor/jsdoc/test/ignore.js +10 -0
- data/vendor/jsdoc/test/inner.js +16 -0
- data/vendor/jsdoc/test/jsdoc_test.js +477 -0
- data/vendor/jsdoc/test/lend.js +33 -0
- data/vendor/jsdoc/test/memberof.js +20 -0
- data/vendor/jsdoc/test/memberof_constructor.js +15 -0
- data/vendor/jsdoc/test/name.js +19 -0
- data/vendor/jsdoc/test/namespace_nested.js +23 -0
- data/vendor/jsdoc/test/nocode.js +13 -0
- data/vendor/jsdoc/test/oblit_anon.js +20 -0
- data/vendor/jsdoc/test/overview.js +20 -0
- data/vendor/jsdoc/test/param_inline.js +37 -0
- data/vendor/jsdoc/test/params_optional.js +8 -0
- data/vendor/jsdoc/test/prototype.js +17 -0
- data/vendor/jsdoc/test/prototype_nested.js +9 -0
- data/vendor/jsdoc/test/prototype_oblit.js +13 -0
- data/vendor/jsdoc/test/prototype_oblit_constructor.js +24 -0
- data/vendor/jsdoc/test/public.js +10 -0
- data/vendor/jsdoc/test/shared.js +42 -0
- data/vendor/jsdoc/test/shared2.js +2 -0
- data/vendor/jsdoc/test/shortcuts.js +22 -0
- data/vendor/jsdoc/test/static_this.js +13 -0
- data/vendor/jsdoc/test/synonyms.js +23 -0
- data/vendor/jsdoc/test/tosource.js +23 -0
- data/vendor/jsdoc/test/variable_redefine.js +14 -0
- data/vendor/jsdoc/test.js +304 -0
- data/vendor/sproutcore/lib/htmlcompressor-0.9.3.jar +0 -0
- data/vendor/sproutcore/lib/yuicompressor-2.4.6.jar +0 -0
- metadata +2339 -0
@@ -0,0 +1,1987 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Project: SproutCore - JavaScript Application Framework
|
3
|
+
// Copyright: ©2006-2011 Strobe Inc. and contributors.
|
4
|
+
// Portions ©2008-2011 Apple Inc. All rights reserved.
|
5
|
+
// License: Licensed under MIT license (see license.js)
|
6
|
+
// ==========================================================================
|
7
|
+
|
8
|
+
sc_require('views/scroller');
|
9
|
+
|
10
|
+
/**
|
11
|
+
@static
|
12
|
+
@type Number
|
13
|
+
@default 0.95
|
14
|
+
*/
|
15
|
+
SC.NORMAL_SCROLL_DECELERATION = 0.95;
|
16
|
+
|
17
|
+
/**
|
18
|
+
@static
|
19
|
+
@type Number
|
20
|
+
@default 0.85
|
21
|
+
*/
|
22
|
+
SC.FAST_SCROLL_DECELERATION = 0.85;
|
23
|
+
|
24
|
+
/** @class
|
25
|
+
Implements a complete scroll view. This class uses a manual implementation
|
26
|
+
of scrollers in order to properly support clipping frames.
|
27
|
+
|
28
|
+
Important Events:
|
29
|
+
|
30
|
+
- contentView frame size changes (to autoshow/hide scrollbar - adjust scrollbar size)
|
31
|
+
- horizontalScrollOffset change
|
32
|
+
- verticalScrollOffsetChanges
|
33
|
+
- scroll wheel events
|
34
|
+
|
35
|
+
@extends SC.View
|
36
|
+
@since SproutCore 1.0
|
37
|
+
*/
|
38
|
+
SC.ScrollView = SC.View.extend({
|
39
|
+
/** @scope SC.ScrollView.prototype */
|
40
|
+
|
41
|
+
/**
|
42
|
+
@type Array
|
43
|
+
@default ['sc-scroll-view']
|
44
|
+
@see SC.View#classNames
|
45
|
+
*/
|
46
|
+
classNames: ['sc-scroll-view'],
|
47
|
+
|
48
|
+
// ..........................................................
|
49
|
+
// PROPERTIES
|
50
|
+
//
|
51
|
+
|
52
|
+
/**
|
53
|
+
Walk like a duck
|
54
|
+
|
55
|
+
@type Boolean
|
56
|
+
@default YES
|
57
|
+
@readOnly
|
58
|
+
*/
|
59
|
+
isScrollable: YES,
|
60
|
+
|
61
|
+
/**
|
62
|
+
The content view you want the scroll view to manage. This will be assigned to the contentView of the clipView also.
|
63
|
+
|
64
|
+
@type SC.View
|
65
|
+
@default null
|
66
|
+
*/
|
67
|
+
contentView: null,
|
68
|
+
|
69
|
+
/**
|
70
|
+
The horizontal alignment for non-filling content inside of the ScrollView. Possible values:
|
71
|
+
|
72
|
+
- SC.ALIGN_LEFT
|
73
|
+
- SC.ALIGN_RIGHT
|
74
|
+
- SC.ALIGN_CENTER
|
75
|
+
|
76
|
+
@type String
|
77
|
+
@default SC.ALIGN_LEFT
|
78
|
+
*/
|
79
|
+
horizontalAlign: SC.ALIGN_LEFT,
|
80
|
+
|
81
|
+
/**
|
82
|
+
The vertical alignment for non-filling content inside of the ScrollView. Possible values:
|
83
|
+
|
84
|
+
- SC.ALIGN_TOP
|
85
|
+
- SC.ALIGN_BOTTOM
|
86
|
+
- SC.ALIGN_MIDDLE
|
87
|
+
|
88
|
+
@type String
|
89
|
+
@default SC.ALIGN_TOP
|
90
|
+
*/
|
91
|
+
verticalAlign: SC.ALIGN_TOP,
|
92
|
+
|
93
|
+
/**
|
94
|
+
The current horizontal scroll offset. Changing this value will update both the contentView and the horizontal scroller, if there is one.
|
95
|
+
|
96
|
+
@field
|
97
|
+
@type Number
|
98
|
+
@default 0
|
99
|
+
*/
|
100
|
+
horizontalScrollOffset: function(key, value) {
|
101
|
+
if (value !== undefined) {
|
102
|
+
var minOffset = this.minimumHorizontalScrollOffset(),
|
103
|
+
maxOffset = this.get('maximumHorizontalScrollOffset');
|
104
|
+
this._scroll_horizontalScrollOffset = Math.max(minOffset,Math.min(maxOffset, value)) ;
|
105
|
+
}
|
106
|
+
|
107
|
+
return this._scroll_horizontalScrollOffset||0;
|
108
|
+
}.property().cacheable(),
|
109
|
+
|
110
|
+
/**
|
111
|
+
The current vertical scroll offset. Changing this value will update both the contentView and the vertical scroller, if there is one.
|
112
|
+
|
113
|
+
@field
|
114
|
+
@type Number
|
115
|
+
@default 0
|
116
|
+
*/
|
117
|
+
verticalScrollOffset: function(key, value) {
|
118
|
+
if (value !== undefined) {
|
119
|
+
var minOffset = this.get('minimumVerticalScrollOffset'),
|
120
|
+
maxOffset = this.get('maximumVerticalScrollOffset');
|
121
|
+
this._scroll_verticalScrollOffset = Math.max(minOffset,Math.min(maxOffset, value)) ;
|
122
|
+
}
|
123
|
+
|
124
|
+
return this._scroll_verticalScrollOffset||0;
|
125
|
+
}.property().cacheable(),
|
126
|
+
|
127
|
+
/** @private
|
128
|
+
Calculates the maximum offset given content and container sizes, and the
|
129
|
+
alignment.
|
130
|
+
*/
|
131
|
+
maximumScrollOffset: function(contentSize, containerSize, align) {
|
132
|
+
// if our content size is larger than or the same size as the container, it's quite
|
133
|
+
// simple to calculate the answer. Otherwise, we need to do some fancy-pants
|
134
|
+
// alignment logic (read: simple math)
|
135
|
+
if (contentSize >= containerSize) return contentSize - containerSize;
|
136
|
+
|
137
|
+
// alignment, yeah
|
138
|
+
if (align === SC.ALIGN_LEFT || align === SC.ALIGN_TOP) {
|
139
|
+
// if we left-align something, and it is smaller than the view, does that not mean
|
140
|
+
// that it's maximum (and minimum) offset is 0, because it should be positioned at 0?
|
141
|
+
return 0;
|
142
|
+
} else if (align === SC.ALIGN_MIDDLE || align === SC.ALIGN_CENTER) {
|
143
|
+
// middle align means the difference divided by two, because we want equal parts on each side.
|
144
|
+
return 0 - Math.round((containerSize - contentSize) / 2);
|
145
|
+
} else {
|
146
|
+
// right align means the entire difference, because we want all that space on the left
|
147
|
+
return 0 - (containerSize - contentSize);
|
148
|
+
}
|
149
|
+
},
|
150
|
+
|
151
|
+
/** @private
|
152
|
+
Calculates the minimum offset given content and container sizes, and the
|
153
|
+
alignment.
|
154
|
+
*/
|
155
|
+
minimumScrollOffset: function(contentSize, containerSize, align) {
|
156
|
+
// if the content is larger than the container, we have no need to change the minimum
|
157
|
+
// away from the natural 0 position.
|
158
|
+
if (contentSize > containerSize) return 0;
|
159
|
+
|
160
|
+
// alignment, yeah
|
161
|
+
if (align === SC.ALIGN_LEFT || align === SC.ALIGN_TOP) {
|
162
|
+
// if we left-align something, and it is smaller than the view, does that not mean
|
163
|
+
// that it's maximum (and minimum) offset is 0, because it should be positioned at 0?
|
164
|
+
return 0;
|
165
|
+
} else if (align === SC.ALIGN_MIDDLE || align === SC.ALIGN_CENTER) {
|
166
|
+
// middle align means the difference divided by two, because we want equal parts on each side.
|
167
|
+
return 0 - Math.round((containerSize - contentSize) / 2);
|
168
|
+
} else {
|
169
|
+
// right align means the entire difference, because we want all that space on the left
|
170
|
+
return 0 - (containerSize - contentSize);
|
171
|
+
}
|
172
|
+
},
|
173
|
+
|
174
|
+
/**
|
175
|
+
The maximum horizontal scroll offset allowed given the current contentView
|
176
|
+
size and the size of the scroll view. If horizontal scrolling is
|
177
|
+
disabled, this will always return 0.
|
178
|
+
|
179
|
+
@field
|
180
|
+
@type Number
|
181
|
+
@default 0
|
182
|
+
*/
|
183
|
+
maximumHorizontalScrollOffset: function() {
|
184
|
+
var view = this.get('contentView') ;
|
185
|
+
var contentWidth = view ? view.get('frame').width : 0,
|
186
|
+
calculatedWidth = view ? view.get('calculatedWidth') : 0;
|
187
|
+
|
188
|
+
// The following code checks if there is a calculatedWidth (collections)
|
189
|
+
// to avoid looking at the incorrect value calculated by frame.
|
190
|
+
if (calculatedWidth) {
|
191
|
+
contentWidth = view.calculatedWidth;
|
192
|
+
}
|
193
|
+
contentWidth *= this._scale;
|
194
|
+
|
195
|
+
var containerWidth = this.get('containerView').get('frame').width ;
|
196
|
+
|
197
|
+
// we still must go through minimumScrollOffset even if we can't scroll
|
198
|
+
// because we need to adjust for alignment. So, just make sure it won't allow scrolling.
|
199
|
+
if (!this.get('canScrollHorizontal')) contentWidth = Math.min(contentWidth, containerWidth);
|
200
|
+
return this.maximumScrollOffset(contentWidth, containerWidth, this.get("horizontalAlign"));
|
201
|
+
}.property(),
|
202
|
+
|
203
|
+
/**
|
204
|
+
The maximum vertical scroll offset allowed given the current contentView
|
205
|
+
size and the size of the scroll view. If vertical scrolling is disabled,
|
206
|
+
this will always return 0 (or whatever alignment dictates).
|
207
|
+
|
208
|
+
@field
|
209
|
+
@type Number
|
210
|
+
@default 0
|
211
|
+
*/
|
212
|
+
maximumVerticalScrollOffset: function() {
|
213
|
+
var view = this.get('contentView'),
|
214
|
+
contentHeight = (view && view.get('frame')) ? view.get('frame').height : 0,
|
215
|
+
calculatedHeight = view ? view.get('calculatedHeight') : 0;
|
216
|
+
|
217
|
+
// The following code checks if there is a calculatedWidth (collections)
|
218
|
+
// to avoid looking at the incorrect value calculated by frame.
|
219
|
+
if(calculatedHeight){
|
220
|
+
contentHeight = calculatedHeight;
|
221
|
+
}
|
222
|
+
contentHeight *= this._scale;
|
223
|
+
|
224
|
+
var containerHeight = this.get('containerView').get('frame').height ;
|
225
|
+
|
226
|
+
// we still must go through minimumScrollOffset even if we can't scroll
|
227
|
+
// because we need to adjust for alignment. So, just make sure it won't allow scrolling.
|
228
|
+
if (!this.get('canScrollVertical')) contentHeight = Math.min(contentHeight, containerHeight);
|
229
|
+
return this.maximumScrollOffset(contentHeight, containerHeight, this.get("verticalAlign"));
|
230
|
+
}.property(),
|
231
|
+
|
232
|
+
|
233
|
+
/**
|
234
|
+
The minimum horizontal scroll offset allowed given the current contentView
|
235
|
+
size and the size of the scroll view. If horizontal scrolling is
|
236
|
+
disabled, this will always return 0 (or whatever alignment dictates).
|
237
|
+
|
238
|
+
@field
|
239
|
+
@type Number
|
240
|
+
@default 0
|
241
|
+
*/
|
242
|
+
minimumHorizontalScrollOffset: function() {
|
243
|
+
var view = this.get('contentView') ;
|
244
|
+
var contentWidth = view ? view.get('frame').width : 0,
|
245
|
+
calculatedWidth = view ? view.get('calculatedWidth') : 0;
|
246
|
+
// The following code checks if there is a calculatedWidth (collections)
|
247
|
+
// to avoid looking at the incorrect value calculated by frame.
|
248
|
+
if(calculatedWidth){
|
249
|
+
contentWidth = calculatedWidth;
|
250
|
+
}
|
251
|
+
contentWidth *= this._scale;
|
252
|
+
|
253
|
+
var containerWidth = this.get('containerView').get('frame').width ;
|
254
|
+
|
255
|
+
// we still must go through minimumScrollOffset even if we can't scroll
|
256
|
+
// because we need to adjust for alignment. So, just make sure it won't allow scrolling.
|
257
|
+
if (!this.get('canScrollHorizontal')) contentWidth = Math.min(contentWidth, containerWidth);
|
258
|
+
return this.minimumScrollOffset(contentWidth, containerWidth, this.get("horizontalAlign"));
|
259
|
+
}.property(),
|
260
|
+
|
261
|
+
/**
|
262
|
+
The minimum vertical scroll offset allowed given the current contentView
|
263
|
+
size and the size of the scroll view. If vertical scrolling is disabled,
|
264
|
+
this will always return 0 (or whatever alignment dictates).
|
265
|
+
|
266
|
+
@field
|
267
|
+
@type Number
|
268
|
+
@default 0
|
269
|
+
*/
|
270
|
+
minimumVerticalScrollOffset: function() {
|
271
|
+
var view = this.get('contentView') ;
|
272
|
+
var contentHeight = (view && view.get('frame')) ? view.get('frame').height : 0,
|
273
|
+
calculatedHeight = view ? view.get('calculatedHeight') : 0;
|
274
|
+
|
275
|
+
// The following code checks if there is a calculatedWidth (collections)
|
276
|
+
// to avoid looking at the incorrect value calculated by frame.
|
277
|
+
if(calculatedHeight){
|
278
|
+
contentHeight = view.calculatedHeight;
|
279
|
+
}
|
280
|
+
contentHeight *= this._scale;
|
281
|
+
|
282
|
+
var containerHeight = this.get('containerView').get('frame').height ;
|
283
|
+
|
284
|
+
// we still must go through minimumScrollOffset even if we can't scroll
|
285
|
+
// because we need to adjust for alignment. So, just make sure it won't allow scrolling.
|
286
|
+
if (!this.get('canScrollVertical')) contentHeight = Math.min(contentHeight, containerHeight);
|
287
|
+
return this.minimumScrollOffset(contentHeight, containerHeight, this.get("verticalAlign"));
|
288
|
+
}.property(),
|
289
|
+
|
290
|
+
|
291
|
+
/**
|
292
|
+
Amount to scroll one vertical line.
|
293
|
+
|
294
|
+
Used by the default implementation of scrollDownLine() and scrollUpLine().
|
295
|
+
|
296
|
+
@type Number
|
297
|
+
@default 20
|
298
|
+
*/
|
299
|
+
verticalLineScroll: 20,
|
300
|
+
|
301
|
+
/**
|
302
|
+
Amount to scroll one horizontal line.
|
303
|
+
|
304
|
+
Used by the default implementation of scrollLeftLine() and
|
305
|
+
scrollRightLine().
|
306
|
+
|
307
|
+
@type Number
|
308
|
+
@default 20
|
309
|
+
*/
|
310
|
+
horizontalLineScroll: 20,
|
311
|
+
|
312
|
+
/**
|
313
|
+
Amount to scroll one vertical page.
|
314
|
+
|
315
|
+
Used by the default implementation of scrollUpPage() and scrollDownPage().
|
316
|
+
|
317
|
+
@field
|
318
|
+
@type Number
|
319
|
+
@default value of frame.height
|
320
|
+
@observes frame
|
321
|
+
*/
|
322
|
+
verticalPageScroll: function() {
|
323
|
+
return this.get('frame').height;
|
324
|
+
}.property('frame'),
|
325
|
+
|
326
|
+
/**
|
327
|
+
Amount to scroll one horizontal page.
|
328
|
+
|
329
|
+
Used by the default implementation of scrollLeftPage() and
|
330
|
+
scrollRightPage().
|
331
|
+
|
332
|
+
@field
|
333
|
+
@type Number
|
334
|
+
@default value of frame.width
|
335
|
+
@observes frame
|
336
|
+
*/
|
337
|
+
horizontalPageScroll: function() {
|
338
|
+
return this.get('frame').width;
|
339
|
+
}.property('frame'),
|
340
|
+
|
341
|
+
|
342
|
+
// ..........................................................
|
343
|
+
// SCROLLERS
|
344
|
+
//
|
345
|
+
|
346
|
+
/**
|
347
|
+
YES if the view should maintain a horizontal scroller. This property
|
348
|
+
must be set when the view is created.
|
349
|
+
|
350
|
+
@type Boolean
|
351
|
+
@default YES
|
352
|
+
*/
|
353
|
+
hasHorizontalScroller: YES,
|
354
|
+
|
355
|
+
/**
|
356
|
+
The horizontal scroller view class. This will be replaced with a view
|
357
|
+
instance when the ScrollView is created unless hasHorizontalScroller is
|
358
|
+
NO.
|
359
|
+
|
360
|
+
@type SC.View
|
361
|
+
@default SC.ScrollerView
|
362
|
+
*/
|
363
|
+
horizontalScrollerView: SC.ScrollerView,
|
364
|
+
|
365
|
+
/**
|
366
|
+
The horizontal scroller view for touch. This will be replaced with a view
|
367
|
+
instance when touch is enabled when the ScrollView is created unless
|
368
|
+
hasHorizontalScroller is NO.
|
369
|
+
|
370
|
+
@type SC.View
|
371
|
+
@default SC.TouchScrollerView
|
372
|
+
*/
|
373
|
+
horizontalTouchScrollerView: SC.TouchScrollerView,
|
374
|
+
|
375
|
+
/**
|
376
|
+
YES if the horizontal scroller should be visible. You can change this
|
377
|
+
property value anytime to show or hide the horizontal scroller. If you
|
378
|
+
do not want to use a horizontal scroller at all, you should instead set
|
379
|
+
hasHorizontalScroller to NO to avoid creating a scroller view in the
|
380
|
+
first place.
|
381
|
+
|
382
|
+
@type Boolean
|
383
|
+
@default YES
|
384
|
+
*/
|
385
|
+
isHorizontalScrollerVisible: YES,
|
386
|
+
|
387
|
+
/**
|
388
|
+
Returns YES if the view both has a horizontal scroller, the scroller is
|
389
|
+
visible.
|
390
|
+
|
391
|
+
@field
|
392
|
+
@type Boolean
|
393
|
+
@default YES
|
394
|
+
*/
|
395
|
+
canScrollHorizontal: function() {
|
396
|
+
return !!(this.get('hasHorizontalScroller') &&
|
397
|
+
this.get('horizontalScrollerView') &&
|
398
|
+
this.get('isHorizontalScrollerVisible')) ;
|
399
|
+
}.property('isHorizontalScrollerVisible').cacheable(),
|
400
|
+
|
401
|
+
/**
|
402
|
+
If YES, the horizontal scroller will autohide if the contentView is
|
403
|
+
smaller than the visible area. You must set hasHorizontalScroller to YES
|
404
|
+
for this property to have any effect.
|
405
|
+
|
406
|
+
@type Boolean
|
407
|
+
@default YES
|
408
|
+
*/
|
409
|
+
autohidesHorizontalScroller: YES,
|
410
|
+
|
411
|
+
/**
|
412
|
+
YES if the view shuld maintain a vertical scroller. This property must
|
413
|
+
be set when the view is created.
|
414
|
+
|
415
|
+
@type Boolean
|
416
|
+
@default YES
|
417
|
+
*/
|
418
|
+
hasVerticalScroller: YES,
|
419
|
+
|
420
|
+
/**
|
421
|
+
The vertical scroller view class. This will be replaced with a view
|
422
|
+
instance when the ScrollView is created unless hasVerticalScroller is NO.
|
423
|
+
|
424
|
+
@type SC.View
|
425
|
+
@default SC.ScrollerView
|
426
|
+
*/
|
427
|
+
verticalScrollerView: SC.ScrollerView,
|
428
|
+
|
429
|
+
/**
|
430
|
+
The vertical touch scroller view class. This will be replaced with a view
|
431
|
+
instance when the ScrollView is created.
|
432
|
+
|
433
|
+
@type SC.View
|
434
|
+
@default SC.TouchScrollerView
|
435
|
+
*/
|
436
|
+
verticalTouchScrollerView: SC.TouchScrollerView,
|
437
|
+
|
438
|
+
/**
|
439
|
+
YES if the vertical scroller should be visible. You can change this
|
440
|
+
property value anytime to show or hide the vertical scroller. If you do
|
441
|
+
not want to use a vertical scroller at all, you should instead set
|
442
|
+
hasVerticalScroller to NO to avoid creating a scroller view in the first
|
443
|
+
place.
|
444
|
+
|
445
|
+
@type Boolean
|
446
|
+
@default YES
|
447
|
+
*/
|
448
|
+
isVerticalScrollerVisible: YES,
|
449
|
+
|
450
|
+
/**
|
451
|
+
Returns YES if the view both has a horizontal scroller, the scroller is
|
452
|
+
visible.
|
453
|
+
|
454
|
+
@field
|
455
|
+
@type Boolean
|
456
|
+
@default YES
|
457
|
+
*/
|
458
|
+
canScrollVertical: function() {
|
459
|
+
return !!(this.get('hasVerticalScroller') &&
|
460
|
+
this.get('verticalScrollerView') &&
|
461
|
+
this.get('isVerticalScrollerVisible')) ;
|
462
|
+
}.property('isVerticalScrollerVisible').cacheable(),
|
463
|
+
|
464
|
+
/**
|
465
|
+
If YES, the vertical scroller will autohide if the contentView is
|
466
|
+
smaller than the visible area. You must set hasVerticalScroller to YES
|
467
|
+
for this property to have any effect.
|
468
|
+
|
469
|
+
@type Boolean
|
470
|
+
@default YES
|
471
|
+
*/
|
472
|
+
autohidesVerticalScroller: YES,
|
473
|
+
|
474
|
+
/**
|
475
|
+
Use this property to set the 'bottom' offset of your vertical scroller,
|
476
|
+
to make room for a thumb view or other accessory view. Default is 0.
|
477
|
+
|
478
|
+
@type Number
|
479
|
+
@default 0
|
480
|
+
*/
|
481
|
+
verticalScrollerBottom: 0,
|
482
|
+
|
483
|
+
/**
|
484
|
+
Use this to overlay the vertical scroller.
|
485
|
+
|
486
|
+
This ensures that the container frame will not resize to accomodate the
|
487
|
+
vertical scroller, hence overlaying the scroller on top of
|
488
|
+
the container.
|
489
|
+
|
490
|
+
@field
|
491
|
+
@type Boolean
|
492
|
+
@default NO
|
493
|
+
*/
|
494
|
+
verticalOverlay: function() {
|
495
|
+
if (SC.platform.touch) return YES;
|
496
|
+
return NO;
|
497
|
+
}.property().cacheable(),
|
498
|
+
|
499
|
+
/**
|
500
|
+
Use this to overlay the horizontal scroller.
|
501
|
+
|
502
|
+
This ensures that the container frame will not resize to accomodate the
|
503
|
+
horizontal scroller, hence overlaying the scroller on top of
|
504
|
+
the container
|
505
|
+
|
506
|
+
@field
|
507
|
+
@type Boolean
|
508
|
+
@default NO
|
509
|
+
*/
|
510
|
+
horizontalOverlay: function() {
|
511
|
+
if (SC.platform.touch) return YES;
|
512
|
+
return NO;
|
513
|
+
}.property().cacheable(),
|
514
|
+
|
515
|
+
/**
|
516
|
+
Use to control the positioning of the vertical scroller. If you do not
|
517
|
+
set 'verticalOverlay' to YES, then the content view will be automatically
|
518
|
+
sized to meet the left edge of the vertical scroller, wherever it may be.
|
519
|
+
This allows you to easily, for example, have “one pixel higher and one
|
520
|
+
pixel lower” scroll bars that blend into their parent views.
|
521
|
+
|
522
|
+
If you do set 'verticalOverlay' to YES, then the scroller view will
|
523
|
+
“float on top” of the content view.
|
524
|
+
|
525
|
+
Example: { top: -1, bottom: -1, right: 0 }
|
526
|
+
|
527
|
+
@type Hash
|
528
|
+
@default null
|
529
|
+
*/
|
530
|
+
verticalScrollerLayout: null,
|
531
|
+
|
532
|
+
/**
|
533
|
+
Use to control the positioning of the horizontal scroller. If you do not
|
534
|
+
set 'horizontalOverlay' to YES, then the content view will be
|
535
|
+
automatically sized to meet the top edge of the horizontal scroller,
|
536
|
+
wherever it may be.
|
537
|
+
|
538
|
+
If you do set 'horizontalOverlay' to YES, then the scroller view will
|
539
|
+
“float on top” of the content view.
|
540
|
+
|
541
|
+
Example: { left: 0, bottom: 0, right: 0 }
|
542
|
+
|
543
|
+
@type Hash
|
544
|
+
@default null
|
545
|
+
*/
|
546
|
+
horizontalScrollerLayout: null,
|
547
|
+
|
548
|
+
// ..........................................................
|
549
|
+
// CUSTOM VIEWS
|
550
|
+
//
|
551
|
+
|
552
|
+
/**
|
553
|
+
The container view that will contain your main content view. You can
|
554
|
+
replace this property with your own custom subclass if you prefer.
|
555
|
+
|
556
|
+
@type SC.ContainerView
|
557
|
+
@default SC.ConainerView
|
558
|
+
*/
|
559
|
+
containerView: SC.ContainerView.extend({}),
|
560
|
+
|
561
|
+
|
562
|
+
// ..........................................................
|
563
|
+
// METHODS
|
564
|
+
//
|
565
|
+
|
566
|
+
/**
|
567
|
+
Scrolls the receiver to the specified x,y coordinate. This should be the
|
568
|
+
offset into the contentView you want to appear at the top-left corner of
|
569
|
+
the scroll view.
|
570
|
+
|
571
|
+
This method will contrain the actual scroll based on whether the view
|
572
|
+
can scroll in the named direction and the maximum distance it can
|
573
|
+
scroll.
|
574
|
+
|
575
|
+
If you only want to scroll in one direction, pass null for the other
|
576
|
+
direction. You can also optionally pass a Hash for the first parameter
|
577
|
+
with x and y coordinates.
|
578
|
+
|
579
|
+
@param {Number} x the x scroll location
|
580
|
+
@param {Number} y the y scroll location
|
581
|
+
@returns {SC.ScrollView} receiver
|
582
|
+
*/
|
583
|
+
scrollTo: function(x,y) {
|
584
|
+
// normalize params
|
585
|
+
if (y===undefined && SC.typeOf(x) === SC.T_HASH) {
|
586
|
+
y = x.y; x = x.x;
|
587
|
+
}
|
588
|
+
|
589
|
+
if (!SC.none(x)) {
|
590
|
+
this.set('horizontalScrollOffset', x) ;
|
591
|
+
}
|
592
|
+
|
593
|
+
if (!SC.none(y)) {
|
594
|
+
this.set('verticalScrollOffset', y) ;
|
595
|
+
}
|
596
|
+
|
597
|
+
return this ;
|
598
|
+
},
|
599
|
+
|
600
|
+
/**
|
601
|
+
Scrolls the receiver in the horizontal and vertical directions by the
|
602
|
+
amount specified, if allowed. The actual scroll amount will be
|
603
|
+
constrained by the current scroll view settings.
|
604
|
+
|
605
|
+
If you only want to scroll in one direction, pass null or 0 for the other
|
606
|
+
direction. You can also optionally pass a Hash for the first parameter
|
607
|
+
with x and y coordinates.
|
608
|
+
|
609
|
+
@param {Number} x change in the x direction (or hash)
|
610
|
+
@param {Number} y change in the y direction
|
611
|
+
@returns {SC.ScrollView} receiver
|
612
|
+
*/
|
613
|
+
scrollBy: function(x , y) {
|
614
|
+
// normalize params
|
615
|
+
if (y===undefined && SC.typeOf(x) === SC.T_HASH) {
|
616
|
+
y = x.y; x = x.x;
|
617
|
+
}
|
618
|
+
|
619
|
+
// if null, undefined, or 0, pass null; otherwise just add current offset
|
620
|
+
x = (x) ? this.get('horizontalScrollOffset')+x : null ;
|
621
|
+
y = (y) ? this.get('verticalScrollOffset')+y : null ;
|
622
|
+
return this.scrollTo(x,y) ;
|
623
|
+
},
|
624
|
+
|
625
|
+
/**
|
626
|
+
Scroll the view to make the view's frame visible. For this to make sense,
|
627
|
+
the view should be a subview of the contentView. Otherwise the results
|
628
|
+
will be undefined.
|
629
|
+
|
630
|
+
@param {SC.View} view view to scroll or null to scroll receiver visible
|
631
|
+
@returns {Boolean} YES if scroll position was changed
|
632
|
+
*/
|
633
|
+
scrollToVisible: function(view) {
|
634
|
+
|
635
|
+
// if no view is passed, do default
|
636
|
+
if (arguments.length === 0) return sc_super();
|
637
|
+
|
638
|
+
var contentView = this.get('contentView') ;
|
639
|
+
if (!contentView) return NO; // nothing to do if no contentView.
|
640
|
+
|
641
|
+
// get the frame for the view - should work even for views with static
|
642
|
+
// layout, assuming it has been added to the screen.
|
643
|
+
var vf = view.get('frame');
|
644
|
+
if (!vf) return NO; // nothing to do
|
645
|
+
|
646
|
+
// convert view's frame to an offset from the contentView origin. This
|
647
|
+
// will become the new scroll offset after some adjustment.
|
648
|
+
vf = contentView.convertFrameFromView(vf, view.get('parentView')) ;
|
649
|
+
|
650
|
+
return this.scrollToRect(vf);
|
651
|
+
},
|
652
|
+
|
653
|
+
/**
|
654
|
+
Scroll to the supplied rectangle.
|
655
|
+
@param {Rect} rect Rectangle to scroll to.
|
656
|
+
@returns {Boolean} YES if scroll position was changed.
|
657
|
+
*/
|
658
|
+
scrollToRect: function(rect) {
|
659
|
+
// find current visible frame.
|
660
|
+
var vo = SC.cloneRect(this.get('containerView').get('frame')) ;
|
661
|
+
|
662
|
+
vo.x = this.get('horizontalScrollOffset') ;
|
663
|
+
vo.y = this.get('verticalScrollOffset') ;
|
664
|
+
|
665
|
+
var origX = vo.x, origY = vo.y;
|
666
|
+
|
667
|
+
// if top edge is not visible, shift origin
|
668
|
+
vo.y -= Math.max(0, SC.minY(vo) - SC.minY(rect)) ;
|
669
|
+
vo.x -= Math.max(0, SC.minX(vo) - SC.minX(rect)) ;
|
670
|
+
|
671
|
+
// if bottom edge is not visible, shift origin
|
672
|
+
vo.y += Math.max(0, SC.maxY(rect) - SC.maxY(vo)) ;
|
673
|
+
vo.x += Math.max(0, SC.maxX(rect) - SC.maxX(vo)) ;
|
674
|
+
|
675
|
+
// scroll to that origin.
|
676
|
+
if ((origX !== vo.x) || (origY !== vo.y)) {
|
677
|
+
this.scrollTo(vo.x, vo.y);
|
678
|
+
return YES ;
|
679
|
+
} else return NO;
|
680
|
+
},
|
681
|
+
|
682
|
+
|
683
|
+
/**
|
684
|
+
Scrolls the receiver down one or more lines if allowed. If number of
|
685
|
+
lines is not specified, scrolls one line.
|
686
|
+
|
687
|
+
@param {Number} lines number of lines
|
688
|
+
@returns {SC.ScrollView} receiver
|
689
|
+
*/
|
690
|
+
scrollDownLine: function(lines) {
|
691
|
+
if (lines === undefined) lines = 1 ;
|
692
|
+
return this.scrollBy(null, this.get('verticalLineScroll')*lines) ;
|
693
|
+
},
|
694
|
+
|
695
|
+
/**
|
696
|
+
Scrolls the receiver up one or more lines if allowed. If number of
|
697
|
+
lines is not specified, scrolls one line.
|
698
|
+
|
699
|
+
@param {Number} lines number of lines
|
700
|
+
@returns {SC.ScrollView} receiver
|
701
|
+
*/
|
702
|
+
scrollUpLine: function(lines) {
|
703
|
+
if (lines === undefined) lines = 1 ;
|
704
|
+
return this.scrollBy(null, 0-this.get('verticalLineScroll')*lines) ;
|
705
|
+
},
|
706
|
+
|
707
|
+
/**
|
708
|
+
Scrolls the receiver right one or more lines if allowed. If number of
|
709
|
+
lines is not specified, scrolls one line.
|
710
|
+
|
711
|
+
@param {Number} lines number of lines
|
712
|
+
@returns {SC.ScrollView} receiver
|
713
|
+
*/
|
714
|
+
scrollRightLine: function(lines) {
|
715
|
+
if (lines === undefined) lines = 1 ;
|
716
|
+
return this.scrollTo(this.get('horizontalLineScroll')*lines, null) ;
|
717
|
+
},
|
718
|
+
|
719
|
+
/**
|
720
|
+
Scrolls the receiver left one or more lines if allowed. If number of
|
721
|
+
lines is not specified, scrolls one line.
|
722
|
+
|
723
|
+
@param {Number} lines number of lines
|
724
|
+
@returns {SC.ScrollView} receiver
|
725
|
+
*/
|
726
|
+
scrollLeftLine: function(lines) {
|
727
|
+
if (lines === undefined) lines = 1 ;
|
728
|
+
return this.scrollTo(0-this.get('horizontalLineScroll')*lines, null) ;
|
729
|
+
},
|
730
|
+
|
731
|
+
/**
|
732
|
+
Scrolls the receiver down one or more page if allowed. If number of
|
733
|
+
pages is not specified, scrolls one page. The page size is determined by
|
734
|
+
the verticalPageScroll value. By default this is the size of the current
|
735
|
+
scrollable area.
|
736
|
+
|
737
|
+
@param {Number} pages number of lines
|
738
|
+
@returns {SC.ScrollView} receiver
|
739
|
+
*/
|
740
|
+
scrollDownPage: function(pages) {
|
741
|
+
if (pages === undefined) pages = 1 ;
|
742
|
+
return this.scrollBy(null, this.get('verticalPageScroll')*pages) ;
|
743
|
+
},
|
744
|
+
|
745
|
+
/**
|
746
|
+
Scrolls the receiver up one or more page if allowed. If number of
|
747
|
+
pages is not specified, scrolls one page. The page size is determined by
|
748
|
+
the verticalPageScroll value. By default this is the size of the current
|
749
|
+
scrollable area.
|
750
|
+
|
751
|
+
@param {Number} pages number of lines
|
752
|
+
@returns {SC.ScrollView} receiver
|
753
|
+
*/
|
754
|
+
scrollUpPage: function(pages) {
|
755
|
+
if (pages === undefined) pages = 1 ;
|
756
|
+
return this.scrollBy(null, 0-(this.get('verticalPageScroll')*pages)) ;
|
757
|
+
},
|
758
|
+
|
759
|
+
/**
|
760
|
+
Scrolls the receiver right one or more page if allowed. If number of
|
761
|
+
pages is not specified, scrolls one page. The page size is determined by
|
762
|
+
the verticalPageScroll value. By default this is the size of the current
|
763
|
+
scrollable area.
|
764
|
+
|
765
|
+
@param {Number} pages number of lines
|
766
|
+
@returns {SC.ScrollView} receiver
|
767
|
+
*/
|
768
|
+
scrollRightPage: function(pages) {
|
769
|
+
if (pages === undefined) pages = 1 ;
|
770
|
+
return this.scrollBy(this.get('horizontalPageScroll')*pages, null) ;
|
771
|
+
},
|
772
|
+
|
773
|
+
/**
|
774
|
+
Scrolls the receiver left one or more page if allowed. If number of
|
775
|
+
pages is not specified, scrolls one page. The page size is determined by
|
776
|
+
the verticalPageScroll value. By default this is the size of the current
|
777
|
+
scrollable area.
|
778
|
+
|
779
|
+
@param {Number} pages number of lines
|
780
|
+
@returns {SC.ScrollView} receiver
|
781
|
+
*/
|
782
|
+
scrollLeftPage: function(pages) {
|
783
|
+
if (pages === undefined) pages = 1 ;
|
784
|
+
return this.scrollBy(0-(this.get('horizontalPageScroll')*pages), null) ;
|
785
|
+
},
|
786
|
+
|
787
|
+
/** @private
|
788
|
+
Adjusts the layout for the various internal views. This method is called
|
789
|
+
once when the scroll view is first configured and then anytime a scroller
|
790
|
+
is shown or hidden. You can call this method yourself as well to retile.
|
791
|
+
|
792
|
+
You may also want to override this method to handle layout for any
|
793
|
+
additional controls you have added to the view.
|
794
|
+
*/
|
795
|
+
tile: function() {
|
796
|
+
// get horizontal scroller/determine if we should have a scroller
|
797
|
+
var hscroll = this.get('hasHorizontalScroller') ? this.get('horizontalScrollerView') : null ;
|
798
|
+
var hasHorizontal = hscroll && this.get('isHorizontalScrollerVisible');
|
799
|
+
|
800
|
+
// get vertical scroller/determine if we should have a scroller
|
801
|
+
var vscroll = this.get('hasVerticalScroller') ? this.get('verticalScrollerView') : null ;
|
802
|
+
var hasVertical = vscroll && this.get('isVerticalScrollerVisible') ;
|
803
|
+
|
804
|
+
// get the containerView
|
805
|
+
var clip = this.get('containerView') ;
|
806
|
+
var clipLayout = { left: 0, top: 0 } ;
|
807
|
+
var t, layout, vo, ho, vl, hl;
|
808
|
+
|
809
|
+
var ht = ((hasHorizontal) ? hscroll.get('scrollbarThickness') : 0) ;
|
810
|
+
var vt = (hasVertical) ? vscroll.get('scrollbarThickness') : 0 ;
|
811
|
+
|
812
|
+
if (hasHorizontal) {
|
813
|
+
hl = this.get('horizontalScrollerLayout');
|
814
|
+
layout = {
|
815
|
+
left: (hl ? hl.left : 0),
|
816
|
+
bottom: (hl ? hl.bottom : 0),
|
817
|
+
right: (hl ? hl.right + vt-1 : vt-1),
|
818
|
+
height: ht
|
819
|
+
};
|
820
|
+
hscroll.set('layout', layout) ;
|
821
|
+
ho = this.get('horizontalOverlay');
|
822
|
+
clipLayout.bottom = ho ? 0 : (layout.bottom + ht) ;
|
823
|
+
} else {
|
824
|
+
clipLayout.bottom = 0 ;
|
825
|
+
}
|
826
|
+
if (hscroll) hscroll.set('isVisible', hasHorizontal) ;
|
827
|
+
|
828
|
+
if (hasVertical) {
|
829
|
+
ht = ht + this.get('verticalScrollerBottom') ;
|
830
|
+
vl = this.get('verticalScrollerLayout');
|
831
|
+
layout = {
|
832
|
+
top: (vl ? vl.top : 0),
|
833
|
+
bottom: (vl ? vl.bottom + ht : ht),
|
834
|
+
right: (vl ? vl.right : 0),
|
835
|
+
width: vt
|
836
|
+
};
|
837
|
+
vscroll.set('layout', layout) ;
|
838
|
+
vo = this.get('verticalOverlay');
|
839
|
+
clipLayout.right = vo ? 0 : (layout.right + vt) ;
|
840
|
+
} else {
|
841
|
+
clipLayout.right = 0 ;
|
842
|
+
}
|
843
|
+
if (vscroll) vscroll.set('isVisible', hasVertical) ;
|
844
|
+
|
845
|
+
clip.adjust(clipLayout) ;
|
846
|
+
},
|
847
|
+
|
848
|
+
/** @private
|
849
|
+
Called whenever a scroller visibility changes. Calls the tile() method.
|
850
|
+
*/
|
851
|
+
scrollerVisibilityDidChange: function() {
|
852
|
+
this.tile();
|
853
|
+
}.observes('isVerticalScrollerVisible', 'isHorizontalScrollerVisible'),
|
854
|
+
|
855
|
+
// ..........................................................
|
856
|
+
// SCROLL WHEEL SUPPORT
|
857
|
+
//
|
858
|
+
|
859
|
+
/** @private */
|
860
|
+
_scroll_wheelDeltaX: 0,
|
861
|
+
|
862
|
+
/** @private */
|
863
|
+
_scroll_wheelDeltaY: 0,
|
864
|
+
|
865
|
+
/** @private */
|
866
|
+
mouseWheel: function(evt) {
|
867
|
+
var deltaAdjust = (SC.browser.webkit && SC.browser.version > 533.0) ? 120 : 1;
|
868
|
+
|
869
|
+
this._scroll_wheelDeltaX += evt.wheelDeltaX / deltaAdjust;
|
870
|
+
this._scroll_wheelDeltaY += evt.wheelDeltaY / deltaAdjust;
|
871
|
+
this.invokeLater(this._scroll_mouseWheel, 10) ;
|
872
|
+
return this.get('canScrollHorizontal') || this.get('canScrollVertical') ;
|
873
|
+
},
|
874
|
+
|
875
|
+
/** @private */
|
876
|
+
_scroll_mouseWheel: function() {
|
877
|
+
this.scrollBy(this._scroll_wheelDeltaX, this._scroll_wheelDeltaY);
|
878
|
+
if (SC.WHEEL_MOMENTUM && this._scroll_wheelDeltaY > 0) {
|
879
|
+
this._scroll_wheelDeltaY = Math.floor(this._scroll_wheelDeltaY*0.950);
|
880
|
+
this._scroll_wheelDeltaY = Math.max(this._scroll_wheelDeltaY, 0);
|
881
|
+
this.invokeLater(this._scroll_mouseWheel, 10) ;
|
882
|
+
} else if (SC.WHEEL_MOMENTUM && this._scroll_wheelDeltaY < 0){
|
883
|
+
this._scroll_wheelDeltaY = Math.ceil(this._scroll_wheelDeltaY*0.950);
|
884
|
+
this._scroll_wheelDeltaY = Math.min(this._scroll_wheelDeltaY, 0);
|
885
|
+
this.invokeLater(this._scroll_mouseWheel, 10) ;
|
886
|
+
} else {
|
887
|
+
this._scroll_wheelDeltaY = 0;
|
888
|
+
this._scroll_wheelDeltaX = 0;
|
889
|
+
}
|
890
|
+
},
|
891
|
+
|
892
|
+
/*..............................................
|
893
|
+
SCALING SUPPORT
|
894
|
+
*/
|
895
|
+
|
896
|
+
/**
|
897
|
+
Determines whether scaling is allowed.
|
898
|
+
|
899
|
+
@type Boolean
|
900
|
+
@default NO
|
901
|
+
*/
|
902
|
+
canScale: NO,
|
903
|
+
|
904
|
+
/** @private
|
905
|
+
The current scale.
|
906
|
+
*/
|
907
|
+
_scale: 1.0,
|
908
|
+
|
909
|
+
/**
|
910
|
+
@field
|
911
|
+
@type Number
|
912
|
+
@default 1.0
|
913
|
+
*/
|
914
|
+
scale: function(key, value) {
|
915
|
+
if (value !== undefined) {
|
916
|
+
this._scale = Math.min(Math.max(this.get("minimumScale"), value), this.get("maximumScale"));
|
917
|
+
}
|
918
|
+
return this._scale;
|
919
|
+
}.property().cacheable(),
|
920
|
+
|
921
|
+
/**
|
922
|
+
The minimum scale.
|
923
|
+
|
924
|
+
@type Number
|
925
|
+
@default 0.25
|
926
|
+
*/
|
927
|
+
minimumScale: 0.25,
|
928
|
+
|
929
|
+
/**
|
930
|
+
The maximum scale.
|
931
|
+
|
932
|
+
@type Number
|
933
|
+
@default 2.0
|
934
|
+
*/
|
935
|
+
maximumScale: 2.0,
|
936
|
+
|
937
|
+
/**
|
938
|
+
Whether to automatically determine the scale range based on the size of the content.
|
939
|
+
|
940
|
+
@type Boolean
|
941
|
+
@default NO
|
942
|
+
*/
|
943
|
+
autoScaleRange: NO,
|
944
|
+
|
945
|
+
/** @private */
|
946
|
+
_scale_css: "",
|
947
|
+
|
948
|
+
/** @private */
|
949
|
+
updateScale: function(scale) {
|
950
|
+
var contentView = this.get("contentView");
|
951
|
+
if (!contentView) return;
|
952
|
+
|
953
|
+
if (contentView.isScalable) {
|
954
|
+
this.get("contentView").applyScale(scale);
|
955
|
+
this._scale_css = "";
|
956
|
+
} else {
|
957
|
+
this._scale_css = "scale3d(" + scale + ", " + scale + ", 1)";
|
958
|
+
}
|
959
|
+
},
|
960
|
+
|
961
|
+
|
962
|
+
// ..........................................................
|
963
|
+
// Touch Support
|
964
|
+
//
|
965
|
+
|
966
|
+
/**
|
967
|
+
@type Boolean
|
968
|
+
@default YES
|
969
|
+
@readOnly
|
970
|
+
*/
|
971
|
+
acceptsMultitouch: YES,
|
972
|
+
|
973
|
+
/**
|
974
|
+
The scroll deceleration rate.
|
975
|
+
|
976
|
+
@type Number
|
977
|
+
@default SC.NORMAL_SCROLL_DECELERATION
|
978
|
+
*/
|
979
|
+
decelerationRate: SC.NORMAL_SCROLL_DECELERATION,
|
980
|
+
|
981
|
+
/**
|
982
|
+
If YES, bouncing will always be enabled in the horizontal direction, even if the content
|
983
|
+
is smaller or the same size as the view.
|
984
|
+
|
985
|
+
@type Boolean
|
986
|
+
@default NO
|
987
|
+
*/
|
988
|
+
alwaysBounceHorizontal: NO,
|
989
|
+
|
990
|
+
/**
|
991
|
+
If NO, bouncing will not be enabled in the vertical direction when the content is smaller
|
992
|
+
or the same size as the scroll view.
|
993
|
+
|
994
|
+
@type Boolean
|
995
|
+
@default YES
|
996
|
+
*/
|
997
|
+
alwaysBounceVertical: YES,
|
998
|
+
|
999
|
+
/**
|
1000
|
+
Whether to delay touches from passing through to the content.
|
1001
|
+
|
1002
|
+
@type Boolean
|
1003
|
+
@default YES
|
1004
|
+
*/
|
1005
|
+
delaysContentTouches: YES,
|
1006
|
+
|
1007
|
+
/** @private
|
1008
|
+
If the view supports it, this
|
1009
|
+
*/
|
1010
|
+
_touchScrollDidChange: function() {
|
1011
|
+
if (this.get("contentView").touchScrollDidChange) {
|
1012
|
+
this.get("contentView").touchScrollDidChange(
|
1013
|
+
this._scroll_horizontalScrollOffset,
|
1014
|
+
this._scroll_verticalScrollOffset
|
1015
|
+
);
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
// tell scrollers
|
1019
|
+
if (this.verticalScrollerView && this.verticalScrollerView.touchScrollDidChange) {
|
1020
|
+
this.verticalScrollerView.touchScrollDidChange(this._scroll_verticalScrollOffset);
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
if (this.horizontalScrollerView && this.horizontalScrollerView.touchScrollDidChange) {
|
1024
|
+
this.horizontalScrollerView.touchScrollDidChange(this._scroll_horizontalScrollOffset);
|
1025
|
+
}
|
1026
|
+
},
|
1027
|
+
|
1028
|
+
/** @private */
|
1029
|
+
_touchScrollDidStart: function() {
|
1030
|
+
if (this.get("contentView").touchScrollDidStart) {
|
1031
|
+
this.get("contentView").touchScrollDidStart(this._scroll_horizontalScrollOffset, this._scroll_verticalScrollOffset);
|
1032
|
+
}
|
1033
|
+
|
1034
|
+
// tell scrollers
|
1035
|
+
if (this.verticalScrollerView && this.verticalScrollerView.touchScrollDidStart) {
|
1036
|
+
this.verticalScrollerView.touchScrollDidStart(this._touch_verticalScrollOffset);
|
1037
|
+
}
|
1038
|
+
if (this.horizontalScrollerView && this.horizontalScrollerView.touchScrollDidStart) {
|
1039
|
+
this.horizontalScrollerView.touchScrollDidStart(this._touch_horizontalScrollOffset);
|
1040
|
+
}
|
1041
|
+
},
|
1042
|
+
|
1043
|
+
/** @private */
|
1044
|
+
_touchScrollDidEnd: function() {
|
1045
|
+
if (this.get("contentView").touchScrollDidEnd) {
|
1046
|
+
this.get("contentView").touchScrollDidEnd(this._scroll_horizontalScrollOffset, this._scroll_verticalScrollOffset);
|
1047
|
+
}
|
1048
|
+
|
1049
|
+
// tell scrollers
|
1050
|
+
if (this.verticalScrollerView && this.verticalScrollerView.touchScrollDidEnd) {
|
1051
|
+
this.verticalScrollerView.touchScrollDidEnd(this._touch_verticalScrollOffset);
|
1052
|
+
}
|
1053
|
+
|
1054
|
+
if (this.horizontalScrollerView && this.horizontalScrollerView.touchScrollDidEnd) {
|
1055
|
+
this.horizontalScrollerView.touchScrollDidEnd(this._touch_horizontalScrollOffset);
|
1056
|
+
}
|
1057
|
+
},
|
1058
|
+
|
1059
|
+
/** @private */
|
1060
|
+
_applyCSSTransforms: function(layer) {
|
1061
|
+
var transform = "";
|
1062
|
+
this.updateScale(this._scale);
|
1063
|
+
transform += 'translate3d('+ -this._scroll_horizontalScrollOffset +'px, '+ -Math.round(this._scroll_verticalScrollOffset)+'px,0) ';
|
1064
|
+
transform += this._scale_css;
|
1065
|
+
if (layer) {
|
1066
|
+
layer.style.webkitTransform = transform;
|
1067
|
+
layer.style.webkitTransformOrigin = "top left";
|
1068
|
+
}
|
1069
|
+
},
|
1070
|
+
|
1071
|
+
/** @private */
|
1072
|
+
captureTouch: function(touch) {
|
1073
|
+
return YES;
|
1074
|
+
},
|
1075
|
+
|
1076
|
+
/** @private */
|
1077
|
+
touchGeneration: 0,
|
1078
|
+
|
1079
|
+
/** @private */
|
1080
|
+
touchStart: function(touch) {
|
1081
|
+
var generation = ++this.touchGeneration;
|
1082
|
+
if (!this.tracking && this.get("delaysContentTouches")) {
|
1083
|
+
this.invokeLater(this.beginTouchesInContent, 150, generation);
|
1084
|
+
} else if (!this.tracking) {
|
1085
|
+
// NOTE: We still have to delay because we don't want to call touchStart
|
1086
|
+
// while touchStart is itself being called...
|
1087
|
+
this.invokeLater(this.beginTouchesInContent, 1, generation);
|
1088
|
+
}
|
1089
|
+
this.beginTouchTracking(touch, YES);
|
1090
|
+
return YES;
|
1091
|
+
},
|
1092
|
+
|
1093
|
+
/** @private */
|
1094
|
+
beginTouchesInContent: function(gen) {
|
1095
|
+
if (gen !== this.touchGeneration) return;
|
1096
|
+
|
1097
|
+
var touch = this.touch, itemView;
|
1098
|
+
if (touch && this.tracking && !this.dragging && !touch.touch.scrollHasEnded) {
|
1099
|
+
// try to capture the touch
|
1100
|
+
touch.touch.captureTouch(this, YES);
|
1101
|
+
|
1102
|
+
if (!touch.touch.touchResponder) {
|
1103
|
+
// if it DIDN'T WORK!!!!!
|
1104
|
+
// then we need to take possession again.
|
1105
|
+
touch.touch.makeTouchResponder(this);
|
1106
|
+
} else {
|
1107
|
+
// Otherwise, it did work, and if we had a pending scroll end, we must do it now
|
1108
|
+
if (touch.needsScrollEnd) {
|
1109
|
+
this._touchScrollDidEnd();
|
1110
|
+
}
|
1111
|
+
}
|
1112
|
+
}
|
1113
|
+
},
|
1114
|
+
|
1115
|
+
/** @private
|
1116
|
+
Initializes the start state of the gesture.
|
1117
|
+
|
1118
|
+
We keep information about the initial location of the touch so we can
|
1119
|
+
disambiguate between a tap and a drag.
|
1120
|
+
|
1121
|
+
@param {Event} evt
|
1122
|
+
*/
|
1123
|
+
beginTouchTracking: function(touch, starting) {
|
1124
|
+
var avg = touch.averagedTouchesForView(this, starting);
|
1125
|
+
|
1126
|
+
var verticalScrollOffset = this._scroll_verticalScrollOffset || 0,
|
1127
|
+
horizontalScrollOffset = this._scroll_horizontalScrollOffset || 0,
|
1128
|
+
startClipOffsetX = horizontalScrollOffset,
|
1129
|
+
startClipOffsetY = verticalScrollOffset,
|
1130
|
+
needsScrollEnd = NO;
|
1131
|
+
|
1132
|
+
if (this.touch && this.touch.timeout) {
|
1133
|
+
// clear the timeout
|
1134
|
+
clearTimeout(this.touch.timeout);
|
1135
|
+
this.touch.timeout = null;
|
1136
|
+
|
1137
|
+
// get the scroll offsets
|
1138
|
+
startClipOffsetX = this.touch.startClipOffset.x;
|
1139
|
+
startClipOffsetY = this.touch.startClipOffset.y;
|
1140
|
+
needsScrollEnd = YES;
|
1141
|
+
}
|
1142
|
+
|
1143
|
+
// calculate container+content width/height
|
1144
|
+
var view = this.get('contentView') ;
|
1145
|
+
var contentWidth = view ? view.get('frame').width : 0,
|
1146
|
+
contentHeight = view ? view.get('frame').height : 0;
|
1147
|
+
|
1148
|
+
if(view.calculatedWidth && view.calculatedWidth!==0) contentWidth = view.calculatedWidth;
|
1149
|
+
if (view.calculatedHeight && view.calculatedHeight !==0) contentHeight = view.calculatedHeight;
|
1150
|
+
|
1151
|
+
var containerWidth = this.get('containerView').get('frame').width,
|
1152
|
+
containerHeight = this.get('containerView').get('frame').height;
|
1153
|
+
|
1154
|
+
|
1155
|
+
// calculate position in content
|
1156
|
+
var globalFrame = this.convertFrameToView(this.get("frame"), null),
|
1157
|
+
positionInContentX = (horizontalScrollOffset + (avg.x - globalFrame.x)) / this._scale,
|
1158
|
+
positionInContentY = (verticalScrollOffset + (avg.y - globalFrame.y)) / this._scale;
|
1159
|
+
|
1160
|
+
this.touch = {
|
1161
|
+
startTime: touch.timeStamp,
|
1162
|
+
notCalculated: YES,
|
1163
|
+
|
1164
|
+
enableScrolling: {
|
1165
|
+
x: contentWidth * this._scale > containerWidth || this.get("alwaysBounceHorizontal"),
|
1166
|
+
y: contentHeight * this._scale > containerHeight || this.get("alwaysBounceVertical")
|
1167
|
+
},
|
1168
|
+
scrolling: { x: NO, y: NO },
|
1169
|
+
|
1170
|
+
enableBouncing: SC.platform.bounceOnScroll,
|
1171
|
+
|
1172
|
+
// offsets and velocities
|
1173
|
+
startClipOffset: { x: startClipOffsetX, y: startClipOffsetY },
|
1174
|
+
lastScrollOffset: { x: horizontalScrollOffset, y: verticalScrollOffset },
|
1175
|
+
startTouchOffset: { x: avg.x, y: avg.y },
|
1176
|
+
scrollVelocity: { x: 0, y: 0 },
|
1177
|
+
|
1178
|
+
startTouchOffsetInContent: { x: positionInContentX, y: positionInContentY },
|
1179
|
+
|
1180
|
+
containerSize: { width: containerWidth, height: containerHeight },
|
1181
|
+
contentSize: { width: contentWidth, height: contentHeight },
|
1182
|
+
|
1183
|
+
startScale: this._scale,
|
1184
|
+
startDistance: avg.d,
|
1185
|
+
canScale: this.get("canScale") && SC.platform.pinchToZoom,
|
1186
|
+
minimumScale: this.get("minimumScale"),
|
1187
|
+
maximumScale: this.get("maximumScale"),
|
1188
|
+
|
1189
|
+
globalFrame: globalFrame,
|
1190
|
+
|
1191
|
+
// cache some things
|
1192
|
+
layer: this.get("contentView").get('layer'),
|
1193
|
+
|
1194
|
+
// some constants
|
1195
|
+
resistanceCoefficient: 0.998,
|
1196
|
+
resistanceAsymptote: 320,
|
1197
|
+
decelerationFromEdge: 0.05,
|
1198
|
+
accelerationToEdge: 0.1,
|
1199
|
+
|
1200
|
+
// how much percent of the other drag direction you must drag to start dragging that direction too.
|
1201
|
+
scrollTolerance: { x: 15, y: 15 },
|
1202
|
+
scaleTolerance: 5,
|
1203
|
+
secondaryScrollTolerance: 30,
|
1204
|
+
scrollLock: 500,
|
1205
|
+
|
1206
|
+
decelerationRate: this.get("decelerationRate"),
|
1207
|
+
|
1208
|
+
// general status
|
1209
|
+
lastEventTime: touch.timeStamp,
|
1210
|
+
|
1211
|
+
// the touch used
|
1212
|
+
touch: (starting ? touch : (this.touch ? this.touch.touch : null)),
|
1213
|
+
|
1214
|
+
// needsScrollEnd will cause a scrollDidEnd even if this particular touch does not start a scroll.
|
1215
|
+
// the reason for this is because we don't want to say we've stopped scrolling just because we got
|
1216
|
+
// another touch, but simultaneously, we still need to send a touch end eventually.
|
1217
|
+
// there are two cases in which this will be used:
|
1218
|
+
//
|
1219
|
+
// 1. If the touch was sent to content touches (in which case we will not be scrolling)
|
1220
|
+
// 2. If the touch ends before scrolling starts (no scrolling then, either)
|
1221
|
+
needsScrollEnd: needsScrollEnd
|
1222
|
+
};
|
1223
|
+
|
1224
|
+
if (!this.tracking) {
|
1225
|
+
this.tracking = YES;
|
1226
|
+
this.dragging = NO;
|
1227
|
+
}
|
1228
|
+
},
|
1229
|
+
|
1230
|
+
/** @private */
|
1231
|
+
_adjustForEdgeResistance: function(offset, minOffset, maxOffset, resistanceCoefficient, asymptote) {
|
1232
|
+
var distanceFromEdge;
|
1233
|
+
|
1234
|
+
// find distance from edge
|
1235
|
+
if (offset < minOffset) distanceFromEdge = offset - minOffset;
|
1236
|
+
else if (offset > maxOffset) distanceFromEdge = maxOffset - offset;
|
1237
|
+
else return offset;
|
1238
|
+
|
1239
|
+
// manipulate logarithmically
|
1240
|
+
distanceFromEdge = Math.pow(resistanceCoefficient, Math.abs(distanceFromEdge)) * asymptote;
|
1241
|
+
|
1242
|
+
// adjust mathematically
|
1243
|
+
if (offset < minOffset) distanceFromEdge = distanceFromEdge - asymptote;
|
1244
|
+
else distanceFromEdge = -distanceFromEdge + asymptote;
|
1245
|
+
|
1246
|
+
// generate final value
|
1247
|
+
return Math.min(Math.max(minOffset, offset), maxOffset) + distanceFromEdge;
|
1248
|
+
},
|
1249
|
+
|
1250
|
+
/** @private */
|
1251
|
+
touchesDragged: function(evt, touches) {
|
1252
|
+
var avg = evt.averagedTouchesForView(this);
|
1253
|
+
this.updateTouchScroll(avg.x, avg.y, avg.d, evt.timeStamp);
|
1254
|
+
},
|
1255
|
+
|
1256
|
+
/** @private */
|
1257
|
+
updateTouchScroll: function(touchX, touchY, distance, timeStamp) {
|
1258
|
+
// get some vars
|
1259
|
+
var touch = this.touch,
|
1260
|
+
touchXInFrame = touchX - touch.globalFrame.x,
|
1261
|
+
touchYInFrame = touchY - touch.globalFrame.y,
|
1262
|
+
offsetY,
|
1263
|
+
maxOffsetY,
|
1264
|
+
offsetX,
|
1265
|
+
maxOffsetX,
|
1266
|
+
minOffsetX, minOffsetY;
|
1267
|
+
|
1268
|
+
// calculate new position in content
|
1269
|
+
var positionInContentX = ((this._scroll_horizontalScrollOffset||0) + touchXInFrame) / this._scale,
|
1270
|
+
positionInContentY = ((this._scroll_verticalScrollOffset||0) + touchYInFrame) / this._scale;
|
1271
|
+
|
1272
|
+
// calculate deltas
|
1273
|
+
var deltaX = positionInContentX - touch.startTouchOffset.x,
|
1274
|
+
deltaY = positionInContentY - touch.startTouchOffset.y;
|
1275
|
+
|
1276
|
+
var isDragging = touch.dragging;
|
1277
|
+
if (!touch.scrolling.x && Math.abs(deltaX) > touch.scrollTolerance.x && touch.enableScrolling.x) {
|
1278
|
+
// say we are scrolling
|
1279
|
+
isDragging = YES;
|
1280
|
+
touch.scrolling.x = YES;
|
1281
|
+
touch.scrollTolerance.y = touch.secondaryScrollTolerance;
|
1282
|
+
|
1283
|
+
// reset position
|
1284
|
+
touch.startTouchOffset.x = touchX;
|
1285
|
+
deltaX = 0;
|
1286
|
+
}
|
1287
|
+
if (!touch.scrolling.y && Math.abs(deltaY) > touch.scrollTolerance.y && touch.enableScrolling.y) {
|
1288
|
+
// say we are scrolling
|
1289
|
+
isDragging = YES;
|
1290
|
+
touch.scrolling.y = YES;
|
1291
|
+
touch.scrollTolerance.x = touch.secondaryScrollTolerance;
|
1292
|
+
|
1293
|
+
// reset position
|
1294
|
+
touch.startTouchOffset.y = touchY;
|
1295
|
+
deltaY = 0;
|
1296
|
+
}
|
1297
|
+
|
1298
|
+
// handle scroll start
|
1299
|
+
if (isDragging && !touch.dragging) {
|
1300
|
+
touch.dragging = YES;
|
1301
|
+
this.dragging = YES;
|
1302
|
+
this._touchScrollDidStart();
|
1303
|
+
}
|
1304
|
+
|
1305
|
+
// calculate new offset
|
1306
|
+
if (!touch.scrolling.x && !touch.scrolling.y && !touch.canScale) return;
|
1307
|
+
if (touch.scrolling.x && !touch.scrolling.y) {
|
1308
|
+
if (deltaX > touch.scrollLock && !touch.scrolling.y) touch.enableScrolling.y = NO;
|
1309
|
+
}
|
1310
|
+
if (touch.scrolling.y && !touch.scrolling.x) {
|
1311
|
+
if (deltaY > touch.scrollLock && !touch.scrolling.x) touch.enableScrolling.x = NO;
|
1312
|
+
}
|
1313
|
+
|
1314
|
+
// handle scaling through pinch gesture
|
1315
|
+
if (touch.canScale) {
|
1316
|
+
|
1317
|
+
var startDistance = touch.startDistance, dd = distance - startDistance;
|
1318
|
+
if (Math.abs(dd) > touch.scaleTolerance) {
|
1319
|
+
touch.scrolling.y = YES; // if you scale, you can scroll.
|
1320
|
+
touch.scrolling.x = YES;
|
1321
|
+
|
1322
|
+
// we want to say something that was the startDistance away from each other should now be
|
1323
|
+
// distance away. So, if we are twice as far away as we started...
|
1324
|
+
var scale = touch.startScale * (distance / Math.max(startDistance, 50));
|
1325
|
+
|
1326
|
+
var newScale = this._adjustForEdgeResistance(scale, touch.minimumScale, touch.maximumScale, touch.resistanceCoefficient, touch.resistanceAsymptote);
|
1327
|
+
this.dragging = YES;
|
1328
|
+
this._scale = newScale;
|
1329
|
+
var newPositionInContentX = positionInContentX * this._scale,
|
1330
|
+
newPositionInContentY = positionInContentY * this._scale;
|
1331
|
+
}
|
1332
|
+
}
|
1333
|
+
|
1334
|
+
// these do exactly what they sound like. So, this comment is just to
|
1335
|
+
// block off the code a bit
|
1336
|
+
// In english, these calculate the minimum X/Y offsets
|
1337
|
+
minOffsetX = this.minimumScrollOffset(touch.contentSize.width * this._scale, touch.containerSize.width, this.get("horizontalAlign"));
|
1338
|
+
minOffsetY = this.minimumScrollOffset(touch.contentSize.height * this._scale, touch.containerSize.height, this.get("verticalAlign"));
|
1339
|
+
|
1340
|
+
// and now, maximum...
|
1341
|
+
maxOffsetX = this.maximumScrollOffset(touch.contentSize.width * this._scale, touch.containerSize.width, this.get("horizontalAlign"));
|
1342
|
+
maxOffsetY = this.maximumScrollOffset(touch.contentSize.height * this._scale, touch.containerSize.height, this.get("verticalAlign"));
|
1343
|
+
|
1344
|
+
|
1345
|
+
// So, the following is the completely written out algebra:
|
1346
|
+
// (offsetY + touchYInFrame) / this._scale = touch.startTouchOffsetInContent.y
|
1347
|
+
// offsetY + touchYInFrame = touch.startTouchOffsetInContent.y * this._scale;
|
1348
|
+
// offsetY = touch.startTouchOffset * this._scale - touchYInFrame
|
1349
|
+
|
1350
|
+
// and the result applied:
|
1351
|
+
offsetX = touch.startTouchOffsetInContent.x * this._scale - touchXInFrame;
|
1352
|
+
offsetY = touch.startTouchOffsetInContent.y * this._scale - touchYInFrame;
|
1353
|
+
|
1354
|
+
|
1355
|
+
// we need to adjust for edge resistance, or, if bouncing is disabled, just stop flat.
|
1356
|
+
if (touch.enableBouncing) {
|
1357
|
+
offsetX = this._adjustForEdgeResistance(offsetX, minOffsetX, maxOffsetX, touch.resistanceCoefficient, touch.resistanceAsymptote);
|
1358
|
+
offsetY = this._adjustForEdgeResistance(offsetY, minOffsetY, maxOffsetY, touch.resistanceCoefficient, touch.resistanceAsymptote);
|
1359
|
+
} else {
|
1360
|
+
offsetX = Math.max(minOffsetX, Math.min(maxOffsetX, offsetX));
|
1361
|
+
offsetY = Math.max(minOffsetY, Math.min(maxOffsetY, offsetY));
|
1362
|
+
}
|
1363
|
+
|
1364
|
+
// and now, _if_ scrolling is enabled, set the new coordinates
|
1365
|
+
if (touch.scrolling.x) this._scroll_horizontalScrollOffset = offsetX;
|
1366
|
+
if (touch.scrolling.y) this._scroll_verticalScrollOffset = offsetY;
|
1367
|
+
|
1368
|
+
// and apply the CSS transforms.
|
1369
|
+
this._applyCSSTransforms(touch.layer);
|
1370
|
+
this._touchScrollDidChange();
|
1371
|
+
|
1372
|
+
|
1373
|
+
// now we must prepare for momentum scrolling by calculating the momentum.
|
1374
|
+
if (timeStamp - touch.lastEventTime >= 1 || touch.notCalculated) {
|
1375
|
+
touch.notCalculated = NO;
|
1376
|
+
var horizontalOffset = this._scroll_horizontalScrollOffset;
|
1377
|
+
var verticalOffset = this._scroll_verticalScrollOffset;
|
1378
|
+
|
1379
|
+
touch.scrollVelocity.x = ((horizontalOffset - touch.lastScrollOffset.x) / Math.max(1, timeStamp - touch.lastEventTime)); // in px per ms
|
1380
|
+
touch.scrollVelocity.y = ((verticalOffset - touch.lastScrollOffset.y) / Math.max(1, timeStamp - touch.lastEventTime)); // in px per ms
|
1381
|
+
touch.lastScrollOffset.x = horizontalOffset;
|
1382
|
+
touch.lastScrollOffset.y = verticalOffset;
|
1383
|
+
touch.lastEventTime = timeStamp;
|
1384
|
+
}
|
1385
|
+
},
|
1386
|
+
|
1387
|
+
/** @private */
|
1388
|
+
touchEnd: function(touch) {
|
1389
|
+
var touchStatus = this.touch,
|
1390
|
+
avg = touch.averagedTouchesForView(this);
|
1391
|
+
|
1392
|
+
touch.scrollHasEnded = YES;
|
1393
|
+
if (avg.touchCount > 0) {
|
1394
|
+
this.beginTouchTracking(touch, NO);
|
1395
|
+
} else {
|
1396
|
+
if (this.dragging) {
|
1397
|
+
touchStatus.dragging = NO;
|
1398
|
+
|
1399
|
+
// reset last event time
|
1400
|
+
touchStatus.lastEventTime = touch.timeStamp;
|
1401
|
+
|
1402
|
+
this.startDecelerationAnimation();
|
1403
|
+
} else {
|
1404
|
+
// well. The scrolling stopped. Let us tell everyone if there was a pending one that this non-drag op interrupted.
|
1405
|
+
if (touchStatus.needsScrollEnd) this._touchScrollDidEnd();
|
1406
|
+
|
1407
|
+
// this part looks weird, but it is actually quite simple.
|
1408
|
+
// First, we send the touch off for capture+starting again, but telling it to return to us
|
1409
|
+
// if nothing is found or if it is released.
|
1410
|
+
touch.captureTouch(this, YES);
|
1411
|
+
|
1412
|
+
// if we went anywhere, did anything, etc., call end()
|
1413
|
+
if (touch.touchResponder && touch.touchResponder !== this) {
|
1414
|
+
touch.end();
|
1415
|
+
} else if (!touch.touchResponder || touch.touchResponder === this) {
|
1416
|
+
// if it was released to us or stayed with us the whole time, or is for some
|
1417
|
+
// wacky reason empty (in which case it is ours still). If so, and there is a next responder,
|
1418
|
+
// relay to that.
|
1419
|
+
|
1420
|
+
if (touch.nextTouchResponder) touch.makeTouchResponder(touch.nextTouchResponder);
|
1421
|
+
} else {
|
1422
|
+
// in this case, the view that captured it and changed responder should have handled
|
1423
|
+
// everything for us.
|
1424
|
+
}
|
1425
|
+
|
1426
|
+
this.touch = null;
|
1427
|
+
}
|
1428
|
+
|
1429
|
+
this.tracking = NO;
|
1430
|
+
this.dragging = NO;
|
1431
|
+
}
|
1432
|
+
},
|
1433
|
+
|
1434
|
+
/** @private */
|
1435
|
+
touchCancelled: function(touch) {
|
1436
|
+
var touchStatus = this.touch,
|
1437
|
+
avg = touch.averagedTouchesForView(this);
|
1438
|
+
|
1439
|
+
// if we are decelerating, we don't want to stop that. That would be bad. Because there's no point.
|
1440
|
+
if (!this.touch || !this.touch.timeout) {
|
1441
|
+
this.beginPropertyChanges();
|
1442
|
+
this.set("scale", this._scale);
|
1443
|
+
this.set("verticalScrollOffset", this._scroll_verticalScrollOffset);
|
1444
|
+
this.set("horizontalScrollOffset", this._scroll_horizontalScrollOffset);
|
1445
|
+
this.endPropertyChanges();
|
1446
|
+
this.tracking = NO;
|
1447
|
+
|
1448
|
+
if (this.dragging) {
|
1449
|
+
this._touchScrollDidEnd();
|
1450
|
+
}
|
1451
|
+
|
1452
|
+
this.dragging = NO;
|
1453
|
+
this.touch = null;
|
1454
|
+
}
|
1455
|
+
},
|
1456
|
+
|
1457
|
+
/** @private */
|
1458
|
+
startDecelerationAnimation: function(evt) {
|
1459
|
+
var touch = this.touch;
|
1460
|
+
touch.decelerationVelocity = {
|
1461
|
+
x: touch.scrollVelocity.x * 10,
|
1462
|
+
y: touch.scrollVelocity.y * 10
|
1463
|
+
};
|
1464
|
+
|
1465
|
+
this.decelerateAnimation();
|
1466
|
+
},
|
1467
|
+
|
1468
|
+
/** @private
|
1469
|
+
Does bounce calculations, adjusting velocity.
|
1470
|
+
|
1471
|
+
Bouncing is fun. Functions that handle it should have fun names,
|
1472
|
+
don'tcha think?
|
1473
|
+
|
1474
|
+
P.S.: should this be named "bouncityBounce" instead?
|
1475
|
+
*/
|
1476
|
+
bouncyBounce: function(velocity, value, minValue, maxValue, de, ac, additionalAcceleration) {
|
1477
|
+
// we have 4 possible paths. On a higher level, we have two leaf paths that can be applied
|
1478
|
+
// for either of two super-paths.
|
1479
|
+
//
|
1480
|
+
// The first path is if we are decelerating past an edge: in this case, this function must
|
1481
|
+
// must enhance that deceleration. In this case, our math boils down to taking the amount
|
1482
|
+
// by which we are past the edge, multiplying it by our deceleration factor, and reducing
|
1483
|
+
// velocity by that amount.
|
1484
|
+
//
|
1485
|
+
// The second path is if we are not decelerating, but are still past the edge. In this case,
|
1486
|
+
// we must start acceleration back _to_ the edge. The math here takes the distance we are from
|
1487
|
+
// the edge, multiplies by the acceleration factor, and then performs two additional things:
|
1488
|
+
// First, it speeds up the acceleration artificially with additionalAcceleration; this will
|
1489
|
+
// make the stop feel more sudden, as it will still have this additional acceleration when it reaches
|
1490
|
+
// the edge. Second, it ensures the result does not go past the final value, so we don't end up
|
1491
|
+
// bouncing back and forth all crazy-like.
|
1492
|
+
if (value < minValue) {
|
1493
|
+
if (velocity < 0) velocity = velocity + ((minValue - value) * de);
|
1494
|
+
else {
|
1495
|
+
velocity = Math.min((minValue-value) * ac + additionalAcceleration, minValue - value - 0.01);
|
1496
|
+
}
|
1497
|
+
} else if (value > maxValue) {
|
1498
|
+
if (velocity > 0) velocity = velocity - ((value - maxValue) * de);
|
1499
|
+
else {
|
1500
|
+
velocity = -Math.min((value - maxValue) * ac + additionalAcceleration, value - maxValue - 0.01);
|
1501
|
+
}
|
1502
|
+
}
|
1503
|
+
return velocity;
|
1504
|
+
},
|
1505
|
+
|
1506
|
+
/** @private */
|
1507
|
+
decelerateAnimation: function() {
|
1508
|
+
// get a bunch of properties. They are named well, so not much explanation of what they are...
|
1509
|
+
// However, note maxOffsetX/Y takes into account the scale;
|
1510
|
+
// also, newX/Y adds in the current deceleration velocity (the deceleration velocity will
|
1511
|
+
// be changed later in this function).
|
1512
|
+
var touch = this.touch,
|
1513
|
+
scale = this._scale,
|
1514
|
+
minOffsetX = this.minimumScrollOffset(touch.contentSize.width * this._scale, touch.containerSize.width, this.get("horizontalAlign")),
|
1515
|
+
minOffsetY = this.minimumScrollOffset(touch.contentSize.height * this._scale, touch.containerSize.height, this.get("verticalAlign")),
|
1516
|
+
maxOffsetX = this.maximumScrollOffset(touch.contentSize.width * this._scale, touch.containerSize.width, this.get("horizontalAlign")),
|
1517
|
+
maxOffsetY = this.maximumScrollOffset(touch.contentSize.height * this._scale, touch.containerSize.height, this.get("verticalAlign")),
|
1518
|
+
|
1519
|
+
now = Date.now(),
|
1520
|
+
t = Math.max(now - touch.lastEventTime, 1),
|
1521
|
+
|
1522
|
+
newX = this._scroll_horizontalScrollOffset + touch.decelerationVelocity.x * (t/10),
|
1523
|
+
newY = this._scroll_verticalScrollOffset + touch.decelerationVelocity.y * (t/10);
|
1524
|
+
|
1525
|
+
var de = touch.decelerationFromEdge, ac = touch.accelerationToEdge;
|
1526
|
+
|
1527
|
+
// under a few circumstances, we may want to force a valid X/Y position.
|
1528
|
+
// For instance, if bouncing is disabled, or if position was okay before
|
1529
|
+
// adjusting scale.
|
1530
|
+
var forceValidXPosition = !touch.enableBouncing, forceValidYPosition = !touch.enableBouncing;
|
1531
|
+
|
1532
|
+
// determine if position was okay before adjusting scale (which we do, in
|
1533
|
+
// a lovely, animated way, for the scaled out/in too far bounce-back).
|
1534
|
+
// if the position was okay, then we are going to make sure that we keep the
|
1535
|
+
// position okay when adjusting the scale.
|
1536
|
+
//
|
1537
|
+
// Position OKness, here, referring to if the position is valid (within
|
1538
|
+
// minimum and maximum scroll offsets)
|
1539
|
+
if (newX >= minOffsetX && newX <= maxOffsetX) forceValidXPosition = YES;
|
1540
|
+
if (newY >= minOffsetY && newY <= maxOffsetY) forceValidYPosition = YES;
|
1541
|
+
|
1542
|
+
// We are going to change scale in a moment, but the position should stay the
|
1543
|
+
// same, if possible (unless it would be more jarring, as described above, in
|
1544
|
+
// the case of starting with a valid position and ending with an invalid one).
|
1545
|
+
//
|
1546
|
+
// Because we are changing the scale, we need to make the position scale-neutral.
|
1547
|
+
// we'll make it non-scale-neutral after applying scale.
|
1548
|
+
//
|
1549
|
+
// Question: might it be better to save the center position instead, so scaling
|
1550
|
+
// bounces back around the center of the screen?
|
1551
|
+
newX /= this._scale;
|
1552
|
+
newY /= this._scale;
|
1553
|
+
|
1554
|
+
// scale velocity (amount to change) starts out at 0 each time, because
|
1555
|
+
// it is calculated by how far out of bounds it is, rather than by the
|
1556
|
+
// previous such velocity.
|
1557
|
+
var sv = 0;
|
1558
|
+
|
1559
|
+
// do said calculation; we'll use the same bouncyBounce method used for everything
|
1560
|
+
// else, but our adjustor that gives a minimum amount to change by and (which, as we'll
|
1561
|
+
// discuss, is to make the stop feel slightly more like a stop), we'll leave at 0
|
1562
|
+
// (scale doesn't really need it as much; if you disagree, at least come up with
|
1563
|
+
// numbers more appropriate for scale than the ones for X/Y)
|
1564
|
+
sv = this.bouncyBounce(sv, scale, touch.minimumScale, touch.maximumScale, de, ac, 0);
|
1565
|
+
|
1566
|
+
// add the amount to scale. This is linear, rather than multiplicative. If you think
|
1567
|
+
// it should be multiplicative (or however you say that), come up with a new formula.
|
1568
|
+
this._scale = scale = scale + sv;
|
1569
|
+
|
1570
|
+
// now we can convert newX/Y back to scale-specific coordinates...
|
1571
|
+
newX *= this._scale;
|
1572
|
+
newY *= this._scale;
|
1573
|
+
|
1574
|
+
// It looks very weird if the content started in-bounds, but the scale animation
|
1575
|
+
// made it not be in bounds; it causes the position to animate snapping back, and,
|
1576
|
+
// well, it looks very weird. It is more proper to just make sure it stays in a valid
|
1577
|
+
// position. So, we'll determine the new maximum/minimum offsets, and then, if it was
|
1578
|
+
// originally a valid position, we'll adjust the new position to a valid position as well.
|
1579
|
+
|
1580
|
+
|
1581
|
+
// determine new max offset
|
1582
|
+
minOffsetX = this.minimumScrollOffset(touch.contentSize.width * this._scale, touch.containerSize.width, this.get("horizontalAlign"));
|
1583
|
+
minOffsetY = this.minimumScrollOffset(touch.contentSize.height * this._scale, touch.containerSize.height, this.get("verticalAlign"));
|
1584
|
+
maxOffsetX = this.maximumScrollOffset(touch.contentSize.width * this._scale, touch.containerSize.width, this.get("horizontalAlign"));
|
1585
|
+
maxOffsetY = this.maximumScrollOffset(touch.contentSize.height * this._scale, touch.containerSize.height, this.get("verticalAlign"));
|
1586
|
+
|
1587
|
+
// see if scaling messed up the X position (but ignore if 'tweren't right to begin with).
|
1588
|
+
if (forceValidXPosition && (newX < minOffsetX || newX > maxOffsetX)) {
|
1589
|
+
// Correct the position
|
1590
|
+
newX = Math.max(minOffsetX, Math.min(newX, maxOffsetX));
|
1591
|
+
|
1592
|
+
// also, make the velocity be ZERO; it is obviously not needed...
|
1593
|
+
touch.decelerationVelocity.x = 0;
|
1594
|
+
}
|
1595
|
+
|
1596
|
+
// now the y
|
1597
|
+
if (forceValidYPosition && (newY < minOffsetY || newY > maxOffsetY)) {
|
1598
|
+
// again, correct it...
|
1599
|
+
newY = Math.max(minOffsetY, Math.min(newY, maxOffsetY));
|
1600
|
+
|
1601
|
+
// also, make the velocity be ZERO; it is obviously not needed...
|
1602
|
+
touch.decelerationVelocity.y = 0;
|
1603
|
+
}
|
1604
|
+
|
1605
|
+
|
1606
|
+
// now that we are done modifying the position, we may update the actual scroll
|
1607
|
+
this._scroll_horizontalScrollOffset = newX;
|
1608
|
+
this._scroll_verticalScrollOffset = newY;
|
1609
|
+
|
1610
|
+
this._applyCSSTransforms(touch.layer); // <- Does what it sounds like.
|
1611
|
+
|
1612
|
+
this._touchScrollDidChange();
|
1613
|
+
|
1614
|
+
// Now we have to adjust the velocities. The velocities are simple x and y numbers that
|
1615
|
+
// get added to the scroll X/Y positions each frame.
|
1616
|
+
// The default decay rate is .950 per frame. To achieve some semblance of accuracy, we
|
1617
|
+
// make it to the power of the elapsed number of frames. This is not fully accurate,
|
1618
|
+
// as this is applying the elapsed time between this frame and the previous time to
|
1619
|
+
// modify the velocity for the next frame. My mind goes blank when I try to figure out
|
1620
|
+
// a way to fix this (given that we don't want to change the velocity on the first frame),
|
1621
|
+
// and as it seems to work great as-is, I'm just leaving it.
|
1622
|
+
var decay = touch.decelerationRate;
|
1623
|
+
touch.decelerationVelocity.y *= Math.pow(decay, (t / 10));
|
1624
|
+
touch.decelerationVelocity.x *= Math.pow(decay, (t / 10));
|
1625
|
+
|
1626
|
+
// We have a bouncyBounce method that adjusts the velocity for bounce. That is, if it is
|
1627
|
+
// out of range and still going, it will slow it down. This step is decelerationFromEdge.
|
1628
|
+
// If it is not moving (or has come to a stop from decelerating), but is still out of range,
|
1629
|
+
// it will start it moving back into range (accelerationToEdge)
|
1630
|
+
// we supply de and ac as these properties.
|
1631
|
+
// The .3 artificially increases the acceleration by .3; this is actually to make the final
|
1632
|
+
// stop a bit more abrupt.
|
1633
|
+
touch.decelerationVelocity.x = this.bouncyBounce(touch.decelerationVelocity.x, newX, minOffsetX, maxOffsetX, de, ac, 0.3);
|
1634
|
+
touch.decelerationVelocity.y = this.bouncyBounce(touch.decelerationVelocity.y, newY, minOffsetY, maxOffsetY, de, ac, 0.3);
|
1635
|
+
|
1636
|
+
// if we ain't got no velocity... then we must be finished, as there is no where else to go.
|
1637
|
+
// to determine our velocity, we take the absolue value, and use that; if it is less than .01, we
|
1638
|
+
// must be done. Note that we check scale's most recent velocity, calculated above using bouncyBounce,
|
1639
|
+
// as well.
|
1640
|
+
var absXVelocity = Math.abs(touch.decelerationVelocity.x);
|
1641
|
+
var absYVelocity = Math.abs(touch.decelerationVelocity.y);
|
1642
|
+
if (absYVelocity < 0.05 && absXVelocity < 0.05 && Math.abs(sv) < 0.05) {
|
1643
|
+
// we can reset the timeout, as it will no longer be required, and we don't want to re-cancel it later.
|
1644
|
+
touch.timeout = null;
|
1645
|
+
this.touch = null;
|
1646
|
+
|
1647
|
+
// trigger scroll end
|
1648
|
+
this._touchScrollDidEnd();
|
1649
|
+
|
1650
|
+
// set the scale, vertical, and horizontal offsets to what they technically already are,
|
1651
|
+
// but don't know they are yet. This will finally update things like, say, the clipping frame.
|
1652
|
+
this.beginPropertyChanges();
|
1653
|
+
this.set("scale", this._scale);
|
1654
|
+
this.set("verticalScrollOffset", this._scroll_verticalScrollOffset);
|
1655
|
+
this.set("horizontalScrollOffset", this._scroll_horizontalScrollOffset);
|
1656
|
+
this.endPropertyChanges();
|
1657
|
+
|
1658
|
+
return;
|
1659
|
+
}
|
1660
|
+
|
1661
|
+
// We now set up the next round. We are doing this as raw as we possibly can, not touching the
|
1662
|
+
// run loop at all. This speeds up performance drastically--keep in mind, we're on comparatively
|
1663
|
+
// slow devices, here. So, we'll just make a closure, saving "this" into "self" and calling
|
1664
|
+
// 10ms later (or however long it takes). Note also that we save both the last event time
|
1665
|
+
// (so we may calculate elapsed time) and the timeout we are creating, so we may cancel it in future.
|
1666
|
+
var self = this;
|
1667
|
+
touch.lastEventTime = Date.now();
|
1668
|
+
this.touch.timeout = setTimeout(function(){
|
1669
|
+
SC.run(self.decelerateAnimation(), self);
|
1670
|
+
}, 10);
|
1671
|
+
},
|
1672
|
+
|
1673
|
+
// ..........................................................
|
1674
|
+
// INTERNAL SUPPORT
|
1675
|
+
//
|
1676
|
+
|
1677
|
+
/** @private
|
1678
|
+
Instantiate scrollers & container views as needed. Replace their classes
|
1679
|
+
in the regular properties.
|
1680
|
+
*/
|
1681
|
+
createChildViews: function() {
|
1682
|
+
var childViews = [] , view;
|
1683
|
+
|
1684
|
+
// create the containerView. We must always have a container view.
|
1685
|
+
// also, setup the contentView as the child of the containerView...
|
1686
|
+
if (SC.none(view = this.containerView)) view = SC.ContainerView;
|
1687
|
+
|
1688
|
+
childViews.push(this.containerView = this.createChildView(view, {
|
1689
|
+
contentView: this.contentView,
|
1690
|
+
isScrollContainer: YES
|
1691
|
+
}));
|
1692
|
+
|
1693
|
+
// and replace our own contentView...
|
1694
|
+
this.contentView = this.containerView.get('contentView');
|
1695
|
+
|
1696
|
+
// create a horizontal scroller view if needed...
|
1697
|
+
view = SC.platform.touch ? this.get("horizontalTouchScrollerView") : this.get("horizontalScrollerView");
|
1698
|
+
if (view) {
|
1699
|
+
if (this.get('hasHorizontalScroller')) {
|
1700
|
+
view = this.horizontalScrollerView = this.createChildView(view, {
|
1701
|
+
layoutDirection: SC.LAYOUT_HORIZONTAL,
|
1702
|
+
valueBinding: '*owner.horizontalScrollOffset'
|
1703
|
+
}) ;
|
1704
|
+
childViews.push(view);
|
1705
|
+
} else this.horizontalScrollerView = null ;
|
1706
|
+
}
|
1707
|
+
|
1708
|
+
// create a vertical scroller view if needed...
|
1709
|
+
view = SC.platform.touch ? this.get("verticalTouchScrollerView") : this.get("verticalScrollerView");
|
1710
|
+
if (view) {
|
1711
|
+
if (this.get('hasVerticalScroller')) {
|
1712
|
+
view = this.verticalScrollerView = this.createChildView(view, {
|
1713
|
+
layoutDirection: SC.LAYOUT_VERTICAL,
|
1714
|
+
valueBinding: '*owner.verticalScrollOffset'
|
1715
|
+
}) ;
|
1716
|
+
childViews.push(view);
|
1717
|
+
} else this.verticalScrollerView = null ;
|
1718
|
+
}
|
1719
|
+
|
1720
|
+
// set childViews array.
|
1721
|
+
this.childViews = childViews ;
|
1722
|
+
|
1723
|
+
this.contentViewDidChange() ; // setup initial display...
|
1724
|
+
this.tile() ; // set up initial tiling
|
1725
|
+
},
|
1726
|
+
|
1727
|
+
/** @private */
|
1728
|
+
init: function() {
|
1729
|
+
sc_super();
|
1730
|
+
|
1731
|
+
// start observing initial content view. The content view's frame has
|
1732
|
+
// already been setup in prepareDisplay so we don't need to call
|
1733
|
+
// viewFrameDidChange...
|
1734
|
+
this._scroll_contentView = this.get('contentView') ;
|
1735
|
+
var contentView = this._scroll_contentView ;
|
1736
|
+
|
1737
|
+
if (contentView) {
|
1738
|
+
contentView.addObserver('frame', this, this.contentViewFrameDidChange);
|
1739
|
+
contentView.addObserver('calculatedWidth', this, this.contentViewFrameDidChange);
|
1740
|
+
contentView.addObserver('calculatedHeight', this, this.contentViewFrameDidChange);
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
if (this.get('isVisibleInWindow')) this._scsv_registerAutoscroll() ;
|
1744
|
+
},
|
1745
|
+
|
1746
|
+
/** @private
|
1747
|
+
Registers/deregisters view with SC.Drag for autoscrolling
|
1748
|
+
*/
|
1749
|
+
_scsv_registerAutoscroll: function() {
|
1750
|
+
if (this.get('isVisibleInWindow')) SC.Drag.addScrollableView(this);
|
1751
|
+
else SC.Drag.removeScrollableView(this);
|
1752
|
+
}.observes('isVisibleInWindow'),
|
1753
|
+
|
1754
|
+
/** @private
|
1755
|
+
Whenever the contentView is changed, we need to observe the content view's
|
1756
|
+
frame to be notified whenever it's size changes.
|
1757
|
+
*/
|
1758
|
+
contentViewDidChange: function() {
|
1759
|
+
var newView = this.get('contentView'),
|
1760
|
+
oldView = this._scroll_contentView,
|
1761
|
+
frameObserver = this.contentViewFrameDidChange,
|
1762
|
+
layerObserver = this.contentViewLayerDidChange;
|
1763
|
+
|
1764
|
+
if (newView !== oldView) {
|
1765
|
+
|
1766
|
+
// stop observing old content view
|
1767
|
+
if (oldView) {
|
1768
|
+
oldView.removeObserver('calculatedWidth', this, this.contentViewFrameDidChange);
|
1769
|
+
oldView.removeObserver('calculatedHeight', this, this.contentViewFrameDidChange);
|
1770
|
+
oldView.removeObserver('frame', this, frameObserver);
|
1771
|
+
oldView.removeObserver('layer', this, layerObserver);
|
1772
|
+
}
|
1773
|
+
|
1774
|
+
// update cache
|
1775
|
+
this._scroll_contentView = newView;
|
1776
|
+
if (newView) {
|
1777
|
+
newView.addObserver('frame', this, frameObserver);
|
1778
|
+
newView.addObserver('calculatedWidth', this, this.contentViewFrameDidChange);
|
1779
|
+
newView.addObserver('calculatedHeight', this, this.contentViewFrameDidChange);
|
1780
|
+
newView.addObserver('layer', this, layerObserver);
|
1781
|
+
}
|
1782
|
+
|
1783
|
+
// replace container
|
1784
|
+
this.containerView.set('contentView', newView);
|
1785
|
+
|
1786
|
+
this.contentViewFrameDidChange();
|
1787
|
+
}
|
1788
|
+
}.observes('contentView'),
|
1789
|
+
|
1790
|
+
/** @private
|
1791
|
+
If we redraw after the initial render, we need to make sure that we reset
|
1792
|
+
the scrollTop/scrollLeft properties on the content view. This ensures
|
1793
|
+
that, for example, the scroll views displays correctly when switching
|
1794
|
+
views out in a ContainerView.
|
1795
|
+
*/
|
1796
|
+
render: function(context, firstTime) {
|
1797
|
+
this.invokeLast(this.adjustElementScroll);
|
1798
|
+
|
1799
|
+
if (firstTime) {
|
1800
|
+
context.push('<div class="corner"></div>');
|
1801
|
+
}
|
1802
|
+
return sc_super();
|
1803
|
+
},
|
1804
|
+
|
1805
|
+
/** @private */
|
1806
|
+
oldMaxHOffset: 0,
|
1807
|
+
|
1808
|
+
/** @private */
|
1809
|
+
oldMaxVOffset: 0,
|
1810
|
+
|
1811
|
+
/** @private
|
1812
|
+
Invoked whenever the contentView's frame changes. This will update the
|
1813
|
+
scroller maxmimum and optionally update the scroller visibility if the
|
1814
|
+
size of the contentView changes. We don't care about the origin since
|
1815
|
+
that is tracked separately from the offset values.
|
1816
|
+
|
1817
|
+
@param {Boolean} force (optional) Re-calculate everything even if the contentView’s frame didn’t change size
|
1818
|
+
*/
|
1819
|
+
contentViewFrameDidChange: function(force) {
|
1820
|
+
var view = this.get('contentView'),
|
1821
|
+
f = (view) ? view.get('frame') : null,
|
1822
|
+
scale = this._scale,
|
1823
|
+
width = 0,
|
1824
|
+
height = 0,
|
1825
|
+
dim, dimWidth, dimHeight, calculatedWidth, calculatedHeight;
|
1826
|
+
|
1827
|
+
// If no view has been set yet, or it doesn't have a frame,
|
1828
|
+
// we can avoid doing any work.
|
1829
|
+
if (!view || !f) { return; }
|
1830
|
+
|
1831
|
+
width = view.get('calculatedWidth') || f.width || 0;
|
1832
|
+
height = view.get('calculatedHeight') || f.height || 0;
|
1833
|
+
|
1834
|
+
width *= scale;
|
1835
|
+
height *= scale;
|
1836
|
+
|
1837
|
+
// cache out scroll settings...
|
1838
|
+
if (!force && (width === this._scroll_contentWidth) && (height === this._scroll_contentHeight)) return ;
|
1839
|
+
this._scroll_contentWidth = width;
|
1840
|
+
this._scroll_contentHeight = height;
|
1841
|
+
|
1842
|
+
dim = this.getPath('containerView.frame');
|
1843
|
+
dimWidth = dim.width;
|
1844
|
+
dimHeight = dim.height;
|
1845
|
+
|
1846
|
+
if (this.get('hasHorizontalScroller') && (view = this.get('horizontalScrollerView'))) {
|
1847
|
+
// decide if it should be visible or not
|
1848
|
+
if (this.get('autohidesHorizontalScroller')) {
|
1849
|
+
this.set('isHorizontalScrollerVisible', width > dimWidth);
|
1850
|
+
}
|
1851
|
+
view.setIfChanged('maximum', width-dimWidth) ;
|
1852
|
+
view.setIfChanged('proportion', dimWidth/width);
|
1853
|
+
}
|
1854
|
+
|
1855
|
+
if (this.get('hasVerticalScroller') && (view = this.get('verticalScrollerView'))) {
|
1856
|
+
// decide if it should be visible or not
|
1857
|
+
if (this.get('autohidesVerticalScroller')) {
|
1858
|
+
this.set('isVerticalScrollerVisible', height > dimHeight);
|
1859
|
+
}
|
1860
|
+
view.setIfChanged('maximum', height-dimHeight) ;
|
1861
|
+
view.setIfChanged('proportion', dimHeight/height);
|
1862
|
+
}
|
1863
|
+
|
1864
|
+
// If there is no vertical scroller and auto hiding is on, make
|
1865
|
+
// sure we are at the top if not already there
|
1866
|
+
if (!this.get('isVerticalScrollerVisible') && (this.get('verticalScrollOffset') !== 0) &&
|
1867
|
+
this.get('autohidesVerticalScroller')) {
|
1868
|
+
this.set('verticalScrollOffset', 0);
|
1869
|
+
}
|
1870
|
+
|
1871
|
+
// Same thing for horizontal scrolling.
|
1872
|
+
if (!this.get('isHorizontalScrollerVisible') && (this.get('horizontalScrollOffset') !== 0) &&
|
1873
|
+
this.get('autohidesHorizontalScroller')) {
|
1874
|
+
this.set('horizontalScrollOffset', 0);
|
1875
|
+
}
|
1876
|
+
|
1877
|
+
// This forces to recalculate the height of the frame when is at the bottom
|
1878
|
+
// of the scroll and the content dimension are smaller that the previous one
|
1879
|
+
var mxVOffSet = this.get('maximumVerticalScrollOffset'),
|
1880
|
+
vOffSet = this.get('verticalScrollOffset'),
|
1881
|
+
mxHOffSet = this.get('maximumHorizontalScrollOffset'),
|
1882
|
+
hOffSet = this.get('horizontalScrollOffset'),
|
1883
|
+
forceHeight = mxVOffSet < vOffSet,
|
1884
|
+
forceWidth = mxHOffSet < hOffSet;
|
1885
|
+
if (forceHeight || forceWidth) {
|
1886
|
+
this.forceDimensionsRecalculation(forceWidth, forceHeight, vOffSet, hOffSet);
|
1887
|
+
}
|
1888
|
+
},
|
1889
|
+
|
1890
|
+
/** @private
|
1891
|
+
If our frame changes, then we need to re-calculate the visiblility of our
|
1892
|
+
scrollers, etc.
|
1893
|
+
*/
|
1894
|
+
frameDidChange: function() {
|
1895
|
+
this.contentViewFrameDidChange(YES);
|
1896
|
+
}.observes('frame'),
|
1897
|
+
|
1898
|
+
/** @private
|
1899
|
+
If the layer of the content view changes, we need to readjust the
|
1900
|
+
scrollTop and scrollLeft properties on the new DOM element.
|
1901
|
+
*/
|
1902
|
+
contentViewLayerDidChange: function() {
|
1903
|
+
// Invalidate these cached values, as they're no longer valid
|
1904
|
+
if (this._verticalScrollOffset !== 0) this._verticalScrollOffset = -1;
|
1905
|
+
if (this._horizontalScrollOffset !== 0) this._horizontalScrollOffset = -1;
|
1906
|
+
this.invokeLast(this.adjustElementScroll);
|
1907
|
+
},
|
1908
|
+
|
1909
|
+
/** @private
|
1910
|
+
Whenever the horizontal scroll offset changes, update the scrollers and
|
1911
|
+
edit the location of the contentView.
|
1912
|
+
*/
|
1913
|
+
_scroll_horizontalScrollOffsetDidChange: function() {
|
1914
|
+
this.invokeLast(this.adjustElementScroll);
|
1915
|
+
}.observes('horizontalScrollOffset'),
|
1916
|
+
|
1917
|
+
/** @private
|
1918
|
+
Whenever the vertical scroll offset changes, update the scrollers and
|
1919
|
+
edit the location of the contentView.
|
1920
|
+
*/
|
1921
|
+
_scroll_verticalScrollOffsetDidChange: function() {
|
1922
|
+
this.invokeLast(this.adjustElementScroll);
|
1923
|
+
}.observes('verticalScrollOffset'),
|
1924
|
+
|
1925
|
+
/** @private
|
1926
|
+
Called at the end of the run loop to actually adjust the scrollTop
|
1927
|
+
and scrollLeft properties of the container view.
|
1928
|
+
*/
|
1929
|
+
adjustElementScroll: function() {
|
1930
|
+
var container = this.get('containerView'),
|
1931
|
+
content = this.get('contentView'),
|
1932
|
+
verticalScrollOffset = this.get('verticalScrollOffset'),
|
1933
|
+
horizontalScrollOffset = this.get('horizontalScrollOffset');
|
1934
|
+
|
1935
|
+
// We notify the content view that its frame property has changed
|
1936
|
+
// before we actually update the scrollTop/scrollLeft properties.
|
1937
|
+
// This gives views that use incremental rendering a chance to render
|
1938
|
+
// newly-appearing elements before they come into view.
|
1939
|
+
if (content) {
|
1940
|
+
// Use accelerated drawing if the browser supports it
|
1941
|
+
if (SC.platform.touch) {
|
1942
|
+
this._applyCSSTransforms(content.get('layer'));
|
1943
|
+
}
|
1944
|
+
|
1945
|
+
if (content._viewFrameDidChange) { content._viewFrameDidChange(); }
|
1946
|
+
}
|
1947
|
+
|
1948
|
+
if (container && !SC.platform.touch) {
|
1949
|
+
container = container.$()[0];
|
1950
|
+
|
1951
|
+
if (container) {
|
1952
|
+
if (verticalScrollOffset !== this._verticalScrollOffset) {
|
1953
|
+
container.scrollTop = verticalScrollOffset;
|
1954
|
+
this._verticalScrollOffset = verticalScrollOffset;
|
1955
|
+
}
|
1956
|
+
|
1957
|
+
if (horizontalScrollOffset !== this._horizontalScrollOffset) {
|
1958
|
+
container.scrollLeft = horizontalScrollOffset;
|
1959
|
+
this._horizontalScrollOffset = horizontalScrollOffset;
|
1960
|
+
}
|
1961
|
+
}
|
1962
|
+
}
|
1963
|
+
},
|
1964
|
+
|
1965
|
+
/** @private */
|
1966
|
+
forceDimensionsRecalculation: function (forceWidth, forceHeight, vOffSet, hOffSet) {
|
1967
|
+
var oldScrollHOffset = hOffSet;
|
1968
|
+
var oldScrollVOffset = vOffSet;
|
1969
|
+
this.scrollTo(0,0);
|
1970
|
+
if(forceWidth && forceHeight){
|
1971
|
+
this.scrollTo(this.get('maximumHorizontalScrollOffset'), this.get('maximumVerticalScrollOffset'));
|
1972
|
+
}
|
1973
|
+
if(forceWidth && !forceHeight){
|
1974
|
+
this.scrollTo(this.get('maximumHorizontalScrollOffset'), oldScrollVOffset);
|
1975
|
+
}
|
1976
|
+
if(!forceWidth && forceHeight){
|
1977
|
+
this.scrollTo(oldScrollHOffset ,this.get('maximumVerticalScrollOffset'));
|
1978
|
+
}
|
1979
|
+
},
|
1980
|
+
|
1981
|
+
/** @private */
|
1982
|
+
_scroll_verticalScrollOffset: 0,
|
1983
|
+
|
1984
|
+
/** @private */
|
1985
|
+
_scroll_horizontalScrollOffset: 0
|
1986
|
+
|
1987
|
+
});
|