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,1117 @@
|
|
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/field') ;
|
9
|
+
sc_require('system/text_selection') ;
|
10
|
+
sc_require('mixins/static_layout') ;
|
11
|
+
sc_require('mixins/editable');
|
12
|
+
|
13
|
+
/**
|
14
|
+
@class
|
15
|
+
|
16
|
+
A text field is an input element with type "text". This view adds support
|
17
|
+
for hinted values, etc.
|
18
|
+
|
19
|
+
@extends SC.FieldView
|
20
|
+
@extends SC.Editable
|
21
|
+
@author Charles Jolley
|
22
|
+
*/
|
23
|
+
SC.TextFieldView = SC.FieldView.extend(SC.StaticLayout, SC.Editable,
|
24
|
+
/** @scope SC.TextFieldView.prototype */ {
|
25
|
+
|
26
|
+
tagName: 'label',
|
27
|
+
classNames: ['sc-text-field-view'],
|
28
|
+
isTextField: YES,
|
29
|
+
|
30
|
+
/**
|
31
|
+
The WAI-ARIA role for text field view. This property's value should not be
|
32
|
+
changed.
|
33
|
+
|
34
|
+
@property {String}
|
35
|
+
*/
|
36
|
+
ariaRole: 'textbox',
|
37
|
+
|
38
|
+
// ..........................................................
|
39
|
+
// PROPERTIES
|
40
|
+
//
|
41
|
+
|
42
|
+
/**
|
43
|
+
When applyImmediately is turned on, every keystroke will set the value
|
44
|
+
of the underlying object. Turning it off will only set the value on blur.
|
45
|
+
|
46
|
+
@type String
|
47
|
+
@default YES
|
48
|
+
*/
|
49
|
+
applyImmediately: YES,
|
50
|
+
|
51
|
+
/*
|
52
|
+
* Flag indicating whether the editor should automatically commit if you click
|
53
|
+
* outside it.
|
54
|
+
*
|
55
|
+
* @type {Boolean}
|
56
|
+
*/
|
57
|
+
commitOnBlur: YES,
|
58
|
+
|
59
|
+
/**
|
60
|
+
If YES, the field will hide its text from display. The default value is NO.
|
61
|
+
|
62
|
+
@property
|
63
|
+
@type Boolean
|
64
|
+
*/
|
65
|
+
isPassword: NO,
|
66
|
+
|
67
|
+
/**
|
68
|
+
If YES then allow multi-line input. This will also change the default
|
69
|
+
tag type from "input" to "textarea". Otherwise, pressing return will
|
70
|
+
trigger the default insertion handler.
|
71
|
+
|
72
|
+
@property
|
73
|
+
@type Boolean
|
74
|
+
*/
|
75
|
+
isTextArea: NO,
|
76
|
+
|
77
|
+
/**
|
78
|
+
The hint to display while the field is not active.
|
79
|
+
|
80
|
+
@property
|
81
|
+
@type String
|
82
|
+
*/
|
83
|
+
hint: '',
|
84
|
+
|
85
|
+
/*
|
86
|
+
* Localizes the hint if necessary.
|
87
|
+
*/
|
88
|
+
formattedHint: function() {
|
89
|
+
var hint = this.get('hint');
|
90
|
+
|
91
|
+
return typeof(hint) === 'string' && this.get('localize') ? SC.String.loc(hint) : hint;
|
92
|
+
}.property('hint', 'localize').cacheable(),
|
93
|
+
|
94
|
+
/*
|
95
|
+
* Whether the hint should be localized or not.
|
96
|
+
*/
|
97
|
+
localize: YES,
|
98
|
+
|
99
|
+
/**
|
100
|
+
If YES then the text field is currently editing.
|
101
|
+
|
102
|
+
@property
|
103
|
+
@type Boolean
|
104
|
+
*/
|
105
|
+
isEditing: NO,
|
106
|
+
|
107
|
+
/**
|
108
|
+
If you set this property to false the tab key won't trigger its default
|
109
|
+
behavior (tabbing to the next field).
|
110
|
+
|
111
|
+
@property
|
112
|
+
@type Boolean
|
113
|
+
*/
|
114
|
+
defaultTabbingEnabled: YES,
|
115
|
+
|
116
|
+
/**
|
117
|
+
Enabled context menu for textfields.
|
118
|
+
|
119
|
+
@property
|
120
|
+
@type Boolean
|
121
|
+
*/
|
122
|
+
isContextMenuEnabled: YES,
|
123
|
+
|
124
|
+
/**
|
125
|
+
@deprecated
|
126
|
+
|
127
|
+
If true, every change to the text in the text field updates 'value'.
|
128
|
+
If false, 'value' is only updated when commitEditing() is called (this
|
129
|
+
is called automatically when the text field loses focus), or whenever
|
130
|
+
the return key is pressed while editing the field.
|
131
|
+
|
132
|
+
@type Boolean
|
133
|
+
@default null
|
134
|
+
*/
|
135
|
+
continuouslyUpdatesValue: null,
|
136
|
+
|
137
|
+
/**
|
138
|
+
If no, will not allow transform or validation errors (SC.Error objects)
|
139
|
+
to be passed to 'value'. Upon focus lost, the text field will revert
|
140
|
+
to its previous value.
|
141
|
+
|
142
|
+
@property
|
143
|
+
@type Boolean
|
144
|
+
*/
|
145
|
+
allowsErrorAsValue: YES,
|
146
|
+
|
147
|
+
/**
|
148
|
+
An optional view instance, or view class reference, which will be visible
|
149
|
+
on the left side of the text field. Visually the accessory view will look
|
150
|
+
to be inside the field but the text editing will not overlap the accessory
|
151
|
+
view.
|
152
|
+
|
153
|
+
The view will be rooted to the top-left of the text field. You should use
|
154
|
+
a layout with 'left' and/or 'top' specified if you would like to adjust
|
155
|
+
the offset from the top-left.
|
156
|
+
|
157
|
+
One example use would be for a web site's icon, found to the left of the
|
158
|
+
URL field, in many popular web browsers.
|
159
|
+
|
160
|
+
Note: If you set a left accessory view, the left padding of the text
|
161
|
+
field (really, the left offset of the padding element) will automatically
|
162
|
+
be set to the width of the accessory view, overriding any CSS you may have
|
163
|
+
defined on the "padding" element. If you would like to customize the
|
164
|
+
amount of left padding used when the accessory view is visible, make the
|
165
|
+
accessory view wider, with empty space on the right.
|
166
|
+
|
167
|
+
@property
|
168
|
+
@type SC.View
|
169
|
+
*/
|
170
|
+
leftAccessoryView: null,
|
171
|
+
|
172
|
+
/**
|
173
|
+
An optional view instance, or view class reference, which will be visible
|
174
|
+
on the right side of the text field. Visually the accessory view will
|
175
|
+
look to be inside the field but the text editing will not overlap the
|
176
|
+
accessory view.
|
177
|
+
|
178
|
+
The view will be rooted to the top-right of the text field. You should
|
179
|
+
use a layout with 'right' and/or 'top' specified if you would like to
|
180
|
+
adjust the offset from the top-right. If 'left' is specified in the
|
181
|
+
layout it will be cleared.
|
182
|
+
|
183
|
+
One example use would be for a button to clear the contents of the text
|
184
|
+
field.
|
185
|
+
|
186
|
+
Note: If you set a right accessory view, the right padding of the text
|
187
|
+
field (really, the right offset of the padding element) will automatically
|
188
|
+
be set to the width of the accessory view, overriding any CSS you may have
|
189
|
+
defined on the "padding" element. If you would like to customize the
|
190
|
+
amount of right padding used when the accessory view is visible, make the
|
191
|
+
accessory view wider, with empty space on the left.
|
192
|
+
|
193
|
+
@property
|
194
|
+
@type SC.View
|
195
|
+
*/
|
196
|
+
rightAccessoryView: null,
|
197
|
+
|
198
|
+
/**
|
199
|
+
This property will enable disable HTML5 spell checking if available on the
|
200
|
+
browser. As of today Safari 4+, Chrome 3+ and Firefox 3+ support it
|
201
|
+
|
202
|
+
@property
|
203
|
+
@type Boolean
|
204
|
+
*/
|
205
|
+
spellCheckEnabled: YES,
|
206
|
+
|
207
|
+
/**
|
208
|
+
Maximum amount of characters this field will allow.
|
209
|
+
|
210
|
+
@property
|
211
|
+
@type Number
|
212
|
+
*/
|
213
|
+
maxLength: 5096,
|
214
|
+
|
215
|
+
/**
|
216
|
+
Whether to render a border or not.
|
217
|
+
|
218
|
+
@property
|
219
|
+
@type Boolean
|
220
|
+
*/
|
221
|
+
shouldRenderBorder: YES,
|
222
|
+
|
223
|
+
//
|
224
|
+
// SUPPORT FOR AUTOMATIC RESIZING
|
225
|
+
//
|
226
|
+
supportsAutoResize: YES,
|
227
|
+
autoResizeLayer: function() { return this.$input()[0]; }
|
228
|
+
.property('layer').cacheable(),
|
229
|
+
|
230
|
+
autoResizeText: function() { return this.get('value'); }
|
231
|
+
.property('value').cacheable(),
|
232
|
+
|
233
|
+
autoResizePadding: SC.propertyFromRenderDelegate('autoResizePadding', 20),
|
234
|
+
|
235
|
+
/** @private
|
236
|
+
Whether to show hint or not
|
237
|
+
*/
|
238
|
+
_hintON: YES,
|
239
|
+
|
240
|
+
init: function() {
|
241
|
+
var val = this.get('value');
|
242
|
+
this._hintON = (!val || val && val.length===0) ? YES : NO;
|
243
|
+
|
244
|
+
var continuouslyUpdatesValue = this.get('continouslyUpdatesValue');
|
245
|
+
if (continuouslyUpdatesValue !== null && continuouslyUpdatesValue !== undefined) {
|
246
|
+
this.set('applyImmediately', continuouslyUpdatesValue);
|
247
|
+
|
248
|
+
//@ if (debug)
|
249
|
+
SC.Logger.warn("SC.TextFieldView#continuouslyUpdatesValue is deprecated. Please use #applyImmediately instead.");
|
250
|
+
//@ endif
|
251
|
+
}
|
252
|
+
|
253
|
+
return sc_super();
|
254
|
+
},
|
255
|
+
|
256
|
+
/** isEditable maps to isEnabled with a TextField. */
|
257
|
+
isEditable: function() {
|
258
|
+
return this.get('isEnabled') ;
|
259
|
+
}.property('isEnabled').cacheable(),
|
260
|
+
|
261
|
+
/**
|
262
|
+
The current selection of the text field, returned as an SC.TextSelection
|
263
|
+
object.
|
264
|
+
|
265
|
+
Note that if the selection changes a new object will be returned -- it is
|
266
|
+
not the case that a previously-returned SC.TextSelection object will
|
267
|
+
simply have its properties mutated.
|
268
|
+
|
269
|
+
@property {SC.TextSelection}
|
270
|
+
*/
|
271
|
+
selection: function(key, value) {
|
272
|
+
var element = this.$input()[0],
|
273
|
+
range, start, end;
|
274
|
+
|
275
|
+
// Are we being asked to set the value, or return the current value?
|
276
|
+
if (value === undefined) {
|
277
|
+
// The client is retrieving the value.
|
278
|
+
if (element) {
|
279
|
+
start = null;
|
280
|
+
end = null;
|
281
|
+
|
282
|
+
if (!element.value) {
|
283
|
+
start = end = 0 ;
|
284
|
+
}
|
285
|
+
else {
|
286
|
+
// In IE8, input elements don't have hasOwnProperty() defined.
|
287
|
+
try {
|
288
|
+
if ('selectionStart' in element) {
|
289
|
+
start = element.selectionStart ;
|
290
|
+
}
|
291
|
+
if ('selectionEnd' in element) {
|
292
|
+
end = element.selectionEnd ;
|
293
|
+
}
|
294
|
+
}
|
295
|
+
// In Firefox when you ask the selectionStart or End of a hidden
|
296
|
+
// input, sometimes it throws a weird error.
|
297
|
+
// Adding this to just ignore it.
|
298
|
+
catch (e){
|
299
|
+
return null;
|
300
|
+
}
|
301
|
+
|
302
|
+
// Support Internet Explorer.
|
303
|
+
if (start === null || end === null ) {
|
304
|
+
var selection = document.selection ;
|
305
|
+
if (selection) {
|
306
|
+
var type = selection.type ;
|
307
|
+
if (type && (type === 'None' || type === 'Text')) {
|
308
|
+
range = selection.createRange() ;
|
309
|
+
|
310
|
+
if (!this.get('isTextArea')) {
|
311
|
+
// Input tag support. Figure out the starting position by
|
312
|
+
// moving the range's start position as far left as possible
|
313
|
+
// and seeing how many characters it actually moved over.
|
314
|
+
var length = range.text.length ;
|
315
|
+
start = Math.abs(range.moveStart('character', 0 - (element.value.length + 1))) ;
|
316
|
+
end = start + length ;
|
317
|
+
}
|
318
|
+
else {
|
319
|
+
// Textarea support. Unfortunately, this case is a bit more
|
320
|
+
// complicated than the input tag case. We need to create a
|
321
|
+
// "dummy" range to help in the calculations.
|
322
|
+
var dummyRange = range.duplicate() ;
|
323
|
+
dummyRange.moveToElementText(element) ;
|
324
|
+
dummyRange.setEndPoint('EndToStart', range) ;
|
325
|
+
start = dummyRange.text.length ;
|
326
|
+
end = start + range.text.length ;
|
327
|
+
}
|
328
|
+
}
|
329
|
+
}
|
330
|
+
}
|
331
|
+
}
|
332
|
+
return SC.TextSelection.create({ start:start, end:end }) ;
|
333
|
+
}
|
334
|
+
else {
|
335
|
+
return null;
|
336
|
+
}
|
337
|
+
}
|
338
|
+
else {
|
339
|
+
// The client is setting the value. Make sure the new value is a text
|
340
|
+
// selection object.
|
341
|
+
if (!value || !value.kindOf || !value.kindOf(SC.TextSelection)) {
|
342
|
+
throw "When setting the selection, you must specify an SC.TextSelection instance.";
|
343
|
+
}
|
344
|
+
|
345
|
+
if (element) {
|
346
|
+
if (element.setSelectionRange) {
|
347
|
+
element.setSelectionRange(value.get('start'), value.get('end')) ;
|
348
|
+
}
|
349
|
+
else {
|
350
|
+
// Support Internet Explorer.
|
351
|
+
range = element.createTextRange() ;
|
352
|
+
start = value.get('start') ;
|
353
|
+
range.move('character', start) ;
|
354
|
+
range.moveEnd('character', value.get('end') - start) ;
|
355
|
+
range.select() ;
|
356
|
+
}
|
357
|
+
}
|
358
|
+
return value;
|
359
|
+
}
|
360
|
+
|
361
|
+
// Implementation note:
|
362
|
+
// There are certain ways users can add/remove text that we can't identify
|
363
|
+
// via our key/mouse down/up handlers (such as the user choosing Paste
|
364
|
+
// from a menu). So that's why we need to update our 'selection' property
|
365
|
+
// whenever the field's value changes.
|
366
|
+
}.property('fieldValue').cacheable(),
|
367
|
+
|
368
|
+
// ..........................................................
|
369
|
+
// INTERNAL SUPPORT
|
370
|
+
//
|
371
|
+
|
372
|
+
displayProperties: ['formattedHint', 'fieldValue', 'isEditing', 'leftAccessoryView', 'rightAccessoryView', 'isTextArea'],
|
373
|
+
|
374
|
+
createChildViews: function() {
|
375
|
+
sc_super();
|
376
|
+
this.accessoryViewObserver();
|
377
|
+
},
|
378
|
+
|
379
|
+
acceptsFirstResponder: function() {
|
380
|
+
return this.get('isEnabled');
|
381
|
+
}.property('isEnabled'),
|
382
|
+
|
383
|
+
accessoryViewObserver: function() {
|
384
|
+
var classNames,
|
385
|
+
viewProperties = ['leftAccessoryView', 'rightAccessoryView'],
|
386
|
+
len = viewProperties.length , i, viewProperty, previousView,
|
387
|
+
accessoryView;
|
388
|
+
|
389
|
+
for (i=0; i<len; i++) {
|
390
|
+
viewProperty = viewProperties[i] ;
|
391
|
+
|
392
|
+
// Is there an accessory view specified?
|
393
|
+
previousView = this['_'+viewProperty] ;
|
394
|
+
accessoryView = this.get(viewProperty) ;
|
395
|
+
|
396
|
+
// If the view is the same, there's nothing to do. Otherwise, remove
|
397
|
+
// the old one (if any) and add the new one.
|
398
|
+
if (! (previousView
|
399
|
+
&& accessoryView
|
400
|
+
&& (previousView === accessoryView) ) ) {
|
401
|
+
|
402
|
+
// If there was a previous previous accessory view, remove it now.
|
403
|
+
if (previousView) {
|
404
|
+
// Remove the "sc-text-field-accessory-view" class name that we had
|
405
|
+
// added earlier.
|
406
|
+
classNames = previousView.get('classNames') ;
|
407
|
+
classNames = classNames.without('sc-text-field-accessory-view') ;
|
408
|
+
previousView.set('classNames', classNames) ;
|
409
|
+
this.removeChild(previousView) ;
|
410
|
+
previousView = null ;
|
411
|
+
this['_'+viewProperty] = null ;
|
412
|
+
}
|
413
|
+
|
414
|
+
// If there's a new accessory view to add, do so now.
|
415
|
+
if (accessoryView) {
|
416
|
+
// If the user passed in a class rather than an instance, create an
|
417
|
+
// instance now.
|
418
|
+
if (accessoryView.isClass) {
|
419
|
+
accessoryView = accessoryView.create({
|
420
|
+
layoutView: this
|
421
|
+
}) ;
|
422
|
+
}
|
423
|
+
|
424
|
+
// Add in the "sc-text-field-accessory-view" class name so that the
|
425
|
+
// z-index gets set correctly.
|
426
|
+
classNames = accessoryView.get('classNames') ;
|
427
|
+
var className = 'sc-text-field-accessory-view' ;
|
428
|
+
if (classNames.indexOf(className) < 0) {
|
429
|
+
classNames = SC.clone(classNames);
|
430
|
+
classNames.push(className) ;
|
431
|
+
accessoryView.set('classNames', classNames);
|
432
|
+
}
|
433
|
+
|
434
|
+
// Actually add the view to our hierarchy and cache a reference.
|
435
|
+
this.appendChild(accessoryView) ;
|
436
|
+
this['_'+viewProperty] = accessoryView ;
|
437
|
+
}
|
438
|
+
}
|
439
|
+
}
|
440
|
+
}.observes('leftAccessoryView', 'rightAccessoryView'),
|
441
|
+
|
442
|
+
layoutChildViewsIfNeeded: function(isVisible) {
|
443
|
+
// For the right accessory view, adjust the positioning such that the view
|
444
|
+
// is right-justified, unless 'right' is specified.
|
445
|
+
if (!isVisible) isVisible = this.get('isVisibleInWindow') ;
|
446
|
+
if (isVisible && this.get('childViewsNeedLayout')) {
|
447
|
+
var rightAccessoryView = this.get('rightAccessoryView') ;
|
448
|
+
if (rightAccessoryView && rightAccessoryView.get) {
|
449
|
+
var layout = rightAccessoryView.get('layout') ;
|
450
|
+
if (layout) {
|
451
|
+
// Clear out any 'left' value.
|
452
|
+
layout.left = null;
|
453
|
+
|
454
|
+
// Unless the user specified a 'right' value, specify a default to
|
455
|
+
// right-justify the view.
|
456
|
+
if (!layout.right) layout.right = 0 ;
|
457
|
+
|
458
|
+
rightAccessoryView.adjust({ layout: layout }) ;
|
459
|
+
}
|
460
|
+
}
|
461
|
+
}
|
462
|
+
sc_super() ;
|
463
|
+
},
|
464
|
+
|
465
|
+
render: function(context, firstTime) {
|
466
|
+
sc_super() ;
|
467
|
+
var v, accessoryViewWidths, leftAdjustment, rightAdjustment;
|
468
|
+
|
469
|
+
// always have at least an empty string
|
470
|
+
v = this.get('fieldValue');
|
471
|
+
if (SC.none(v)) v = '';
|
472
|
+
v = String(v);
|
473
|
+
|
474
|
+
// update layer classes always
|
475
|
+
context.setClass('not-empty', v.length > 0);
|
476
|
+
|
477
|
+
//addressing accessibility
|
478
|
+
if(firstTime) {
|
479
|
+
context.attr('aria-multiline', this.get('isTextArea'));
|
480
|
+
context.attr('aria-disabled', !this.get('isEnabled'));
|
481
|
+
}
|
482
|
+
if(!SC.ok(this.get('value'))) {
|
483
|
+
context.attr('aria-invalid', YES);
|
484
|
+
}
|
485
|
+
|
486
|
+
// If we have accessory views, we'll want to update the padding on the
|
487
|
+
// hint to compensate for the width of the accessory view. (It'd be nice
|
488
|
+
// if we could add in the original padding, too, but there's no efficient
|
489
|
+
// way to do that without first rendering the element somewhere on/off-
|
490
|
+
// screen, and we don't want to take the performance hit.)
|
491
|
+
accessoryViewWidths = this._getAccessoryViewWidths() ;
|
492
|
+
leftAdjustment = accessoryViewWidths['left'] ;
|
493
|
+
rightAdjustment = accessoryViewWidths['right'] ;
|
494
|
+
|
495
|
+
if (leftAdjustment) leftAdjustment += 'px' ;
|
496
|
+
if (rightAdjustment) rightAdjustment += 'px' ;
|
497
|
+
|
498
|
+
this._renderField(context, firstTime, v, leftAdjustment, rightAdjustment) ;
|
499
|
+
if(SC.browser.mozilla) this.invokeLast(this._applyFirefoxCursorFix);
|
500
|
+
},
|
501
|
+
|
502
|
+
/** @private
|
503
|
+
If isTextArea is changed (this might happen in inlineeditor constantly)
|
504
|
+
force the field render to render like the firsttime to avoid writing extra
|
505
|
+
code. This can be useful also
|
506
|
+
*/
|
507
|
+
_forceRenderFirstTime: NO,
|
508
|
+
|
509
|
+
/** @private */
|
510
|
+
_renderFieldLikeFirstTime: function(){
|
511
|
+
this.set('_forceRenderFirstTime', YES);
|
512
|
+
}.observes('isTextArea'),
|
513
|
+
|
514
|
+
/** @private */
|
515
|
+
_renderField: function(context, firstTime, value, leftAdjustment, rightAdjustment) {
|
516
|
+
// TODO: The cleanest thing might be to create a sub- rendering context
|
517
|
+
// here, but currently SC.RenderContext will render sibling
|
518
|
+
// contexts as parent/child.
|
519
|
+
|
520
|
+
var hint = this.get('formattedHint'), disabled, name, adjustmentStyle, type,
|
521
|
+
hintElements, element, paddingElementStyle, fieldClassNames,
|
522
|
+
spellCheckEnabled=this.get('spellCheckEnabled'), spellCheckString,
|
523
|
+
maxLength = this.get('maxLength'), isOldSafari;
|
524
|
+
|
525
|
+
context.setClass('text-area', this.get('isTextArea'));
|
526
|
+
|
527
|
+
//Adding this to differentiate between older and newer versions of safari
|
528
|
+
//since the internal default field padding changed
|
529
|
+
isOldSafari= (parseInt(SC.browser.webkit,0)<532);
|
530
|
+
context.setClass('oldWebKitFieldPadding', isOldSafari);
|
531
|
+
|
532
|
+
spellCheckString = spellCheckEnabled ? ' spellcheck="true"' : ' spellcheck="false"';
|
533
|
+
if (firstTime || this._forceRenderFirstTime) {
|
534
|
+
this._forceRenderFirstTime = NO;
|
535
|
+
disabled = this.get('isEnabled') ? '' : 'disabled="disabled"' ;
|
536
|
+
name = this.get('layerId');
|
537
|
+
|
538
|
+
if(this.get('shouldRenderBorder')) context.push('<span class="border"></span>');
|
539
|
+
|
540
|
+
// Render the padding element, with any necessary positioning
|
541
|
+
// adjustments to accommodate accessory views.
|
542
|
+
adjustmentStyle = '' ;
|
543
|
+
if (leftAdjustment || rightAdjustment) {
|
544
|
+
adjustmentStyle = 'style="' ;
|
545
|
+
if (leftAdjustment) adjustmentStyle += 'left: ' + leftAdjustment + '; ' ;
|
546
|
+
if (rightAdjustment) adjustmentStyle += 'right: ' + rightAdjustment + ';' ;
|
547
|
+
adjustmentStyle += '"' ;
|
548
|
+
}
|
549
|
+
context.push('<span class="padding" '+adjustmentStyle+'>');
|
550
|
+
|
551
|
+
value = this.get('escapeHTML') ? SC.RenderContext.escapeHTML(value) : value;
|
552
|
+
if(!SC.platform.input.placeholder && (!value || (value && value.length===0))) {
|
553
|
+
value = hint;
|
554
|
+
context.setClass('sc-hint', YES);
|
555
|
+
}
|
556
|
+
|
557
|
+
//for gecko pre 1.9 vertical aligment is completely broken so we need
|
558
|
+
//different styling.
|
559
|
+
fieldClassNames = (SC.browser.mozilla &&
|
560
|
+
(parseFloat(SC.browser.mozilla)<1.9 ||
|
561
|
+
SC.browser.mozilla.match(/1\.9\.0|1\.9\.1/))) ?
|
562
|
+
"field oldGecko": "field";
|
563
|
+
|
564
|
+
// Render the input/textarea field itself, and close off the padding.
|
565
|
+
if (this.get('isTextArea')) {
|
566
|
+
context.push('<textarea class="',fieldClassNames,'" name="', name,
|
567
|
+
'" ', disabled, ' placeholder="',hint, '"',
|
568
|
+
spellCheckString,' maxlength="', maxLength, '">',
|
569
|
+
value, '</textarea></span>') ;
|
570
|
+
}
|
571
|
+
else {
|
572
|
+
type = 'text';
|
573
|
+
|
574
|
+
// Internet Explorer won't let us change the type attribute later
|
575
|
+
// so we force it to password if needed now, or if the value is not the hint
|
576
|
+
if (this.get('isPassword') && (value !== hint || SC.browser.isIE || SC.platform.input.placeholder)) { type = 'password'; }
|
577
|
+
|
578
|
+
context.push('<input class="',fieldClassNames,'" type="', type,
|
579
|
+
'" name="', name, '" ', disabled, ' value="', value,
|
580
|
+
'" placeholder="',hint,'"', spellCheckString,
|
581
|
+
' maxlength="', maxLength, '" /></span>') ;
|
582
|
+
}
|
583
|
+
|
584
|
+
}
|
585
|
+
else {
|
586
|
+
var input= this.$input(),
|
587
|
+
elem = input[0],
|
588
|
+
val = this.get('value');
|
589
|
+
|
590
|
+
if (!val || (val && val.length === 0)) {
|
591
|
+
if (this._hintON && !this.get('isFirstResponder')) {
|
592
|
+
// Internet Explorer doesn't allow you to modify the type afterwards
|
593
|
+
// jQuery throws an exception as well, so set attribute directly
|
594
|
+
if (this.get('isPassword') && elem.type === "password" && !SC.browser.isIE) { elem.type = 'text'; }
|
595
|
+
|
596
|
+
if (!SC.platform.input.placeholder) {
|
597
|
+
context.setClass('sc-hint', YES);
|
598
|
+
}
|
599
|
+
} else {
|
600
|
+
// Internet Explorer doesn't allow you to modify the type afterwards
|
601
|
+
// jQuery throws an exception as well, so set attribute directly
|
602
|
+
if (this.get('isPassword') && elem.type === 'text' && !SC.browser.isIE) { elem.type = 'password'; }
|
603
|
+
|
604
|
+
if (!SC.platform.input.placeholder) {
|
605
|
+
context.setClass('sc-hint', NO);
|
606
|
+
input.val('');
|
607
|
+
}
|
608
|
+
}
|
609
|
+
}
|
610
|
+
|
611
|
+
if (SC.platform.input.placeholder) input.attr('placeholder', hint);
|
612
|
+
|
613
|
+
// Enable/disable the actual input/textarea as appropriate.
|
614
|
+
element = input[0];
|
615
|
+
if (element) {
|
616
|
+
if (!this.get('isEnabled')) {
|
617
|
+
element.disabled = 'true' ;
|
618
|
+
}
|
619
|
+
else {
|
620
|
+
element.disabled = null ;
|
621
|
+
}
|
622
|
+
|
623
|
+
// Adjust the padding element to accommodate any accessory views.
|
624
|
+
paddingElementStyle = element.parentNode.style;
|
625
|
+
if (leftAdjustment) {
|
626
|
+
if (paddingElementStyle.left !== leftAdjustment) {
|
627
|
+
paddingElementStyle.left = leftAdjustment ;
|
628
|
+
}
|
629
|
+
}
|
630
|
+
else {
|
631
|
+
paddingElementStyle.left = null ;
|
632
|
+
}
|
633
|
+
|
634
|
+
if (rightAdjustment) {
|
635
|
+
if (paddingElementStyle.right !== rightAdjustment) {
|
636
|
+
paddingElementStyle.right = rightAdjustment ;
|
637
|
+
}
|
638
|
+
}
|
639
|
+
else {
|
640
|
+
paddingElementStyle.right = null ;
|
641
|
+
}
|
642
|
+
}
|
643
|
+
}
|
644
|
+
},
|
645
|
+
|
646
|
+
_getAccessoryViewWidths: function() {
|
647
|
+
var widths = {},
|
648
|
+
accessoryViewPositions = ['left', 'right'],
|
649
|
+
numberOfAccessoryViewPositions = accessoryViewPositions.length, i,
|
650
|
+
position, accessoryView, frames, width, layout, offset, frame;
|
651
|
+
for (i = 0; i < numberOfAccessoryViewPositions; i++) {
|
652
|
+
position = accessoryViewPositions[i];
|
653
|
+
accessoryView = this.get(position + 'AccessoryView');
|
654
|
+
if (accessoryView) {
|
655
|
+
// need acessoryView as an instance, not class...
|
656
|
+
if (accessoryView.isClass) {
|
657
|
+
accessoryView = accessoryView.create({
|
658
|
+
layoutView: this
|
659
|
+
});
|
660
|
+
}
|
661
|
+
// sanity check
|
662
|
+
if (accessoryView.get) {
|
663
|
+
frame = accessoryView.get('frame');
|
664
|
+
if (frame) {
|
665
|
+
width = frame.width;
|
666
|
+
if (width) {
|
667
|
+
// Also account for the accessory view's inset.
|
668
|
+
layout = accessoryView.get('layout');
|
669
|
+
if (layout) {
|
670
|
+
offset = layout[position];
|
671
|
+
width += offset;
|
672
|
+
}
|
673
|
+
widths[position] = width;
|
674
|
+
}
|
675
|
+
}
|
676
|
+
}
|
677
|
+
}
|
678
|
+
}
|
679
|
+
return widths;
|
680
|
+
},
|
681
|
+
|
682
|
+
// ..........................................................
|
683
|
+
// HANDLE NATIVE CONTROL EVENTS
|
684
|
+
//
|
685
|
+
|
686
|
+
didCreateLayer: function() {
|
687
|
+
sc_super();
|
688
|
+
// For some strange reason if we add focus/blur events to textarea
|
689
|
+
// inmediately they won't work. However if I add them at the end of the
|
690
|
+
// runLoop it works fine.
|
691
|
+
if(!SC.platform.input.placeholder && this._hintON){
|
692
|
+
var currentValue = this.$input().val();
|
693
|
+
if(!currentValue || (currentValue && currentValue.length===0)){
|
694
|
+
this.$input().val(this.get('formattedHint'));
|
695
|
+
}
|
696
|
+
}
|
697
|
+
if(this.get('isTextArea')) {
|
698
|
+
this.invokeLast(this._addTextAreaEvents);
|
699
|
+
}
|
700
|
+
else {
|
701
|
+
this._addTextAreaEvents();
|
702
|
+
|
703
|
+
// In Firefox, for input fields only (that is, not textarea elements),
|
704
|
+
// if the cursor is at the end of the field, the "down" key will not
|
705
|
+
// result in a "keypress" event for the document (only for the input
|
706
|
+
// element), although it will be bubbled up in other contexts. Since
|
707
|
+
// SproutCore's event dispatching requires the document to see the
|
708
|
+
// event, we'll manually forward the event along.
|
709
|
+
if (SC.browser.mozilla) {
|
710
|
+
var input = this.$input();
|
711
|
+
SC.Event.add(input, 'keypress', this, this._firefox_dispatch_keypress);
|
712
|
+
}
|
713
|
+
}
|
714
|
+
},
|
715
|
+
|
716
|
+
|
717
|
+
/**
|
718
|
+
Adds all the textarea events. This functions is called by didCreateLayer
|
719
|
+
at different moments depending if it is a textarea or not. Appending
|
720
|
+
events to text areas is not reliable unless the element is already added
|
721
|
+
to the DOM.
|
722
|
+
|
723
|
+
*/
|
724
|
+
_addTextAreaEvents: function() {
|
725
|
+
var input = this.$input();
|
726
|
+
SC.Event.add(input, 'focus', this, this._textField_fieldDidFocus);
|
727
|
+
SC.Event.add(input, 'blur', this, this._textField_fieldDidBlur);
|
728
|
+
|
729
|
+
// There are certain ways users can select text that we can't identify via
|
730
|
+
// our key/mouse down/up handlers (such as the user choosing Select All
|
731
|
+
// from a menu).
|
732
|
+
SC.Event.add(input, 'select', this, this._textField_selectionDidChange);
|
733
|
+
|
734
|
+
if(SC.browser.mozilla){
|
735
|
+
// cache references to layer items to improve firefox hack perf
|
736
|
+
this._cacheInputElement = this.$input();
|
737
|
+
this._cachePaddingElement = this.$('.padding');
|
738
|
+
}
|
739
|
+
},
|
740
|
+
|
741
|
+
/**
|
742
|
+
Removes all the events attached to the textfield
|
743
|
+
*/
|
744
|
+
|
745
|
+
willDestroyLayer: function() {
|
746
|
+
sc_super();
|
747
|
+
|
748
|
+
var input = this.$input();
|
749
|
+
SC.Event.remove(input, 'focus', this, this._textField_fieldDidFocus);
|
750
|
+
SC.Event.remove(input, 'blur', this, this._textField_fieldDidBlur);
|
751
|
+
SC.Event.remove(input, 'select', this, this._textField_selectionDidChange);
|
752
|
+
SC.Event.remove(input, 'keypress', this, this._firefox_dispatch_keypress);
|
753
|
+
},
|
754
|
+
|
755
|
+
/** @private
|
756
|
+
This function is called by the event when the textfield gets focus
|
757
|
+
*/
|
758
|
+
_textField_fieldDidFocus: function(evt) {
|
759
|
+
SC.run(function() {
|
760
|
+
this.set('focused',YES);
|
761
|
+
this.fieldDidFocus(evt);
|
762
|
+
var val = this.get('value');
|
763
|
+
if(!SC.platform.input.placeholder && ((!val) || (val && val.length===0))) {
|
764
|
+
this._hintON = NO;
|
765
|
+
}
|
766
|
+
}, this);
|
767
|
+
},
|
768
|
+
|
769
|
+
/** @private
|
770
|
+
This function is called by the event when the textfield blurs
|
771
|
+
*/
|
772
|
+
_textField_fieldDidBlur: function(evt) {
|
773
|
+
SC.run(function() {
|
774
|
+
this.set('focused',NO);
|
775
|
+
// passing the original event here instead that was potentially set from
|
776
|
+
// loosing the responder on the inline text editor so that we can
|
777
|
+
// use it for the delegate to end editing
|
778
|
+
this.fieldDidBlur(this._origEvent);
|
779
|
+
var val = this.get('value');
|
780
|
+
if(!SC.platform.input.placeholder && ((!val) || (val && val.length===0))) {
|
781
|
+
this._hintON = YES;
|
782
|
+
}
|
783
|
+
}, this);
|
784
|
+
},
|
785
|
+
|
786
|
+
fieldDidFocus: function(evt) {
|
787
|
+
this.becomeFirstResponder();
|
788
|
+
|
789
|
+
this.beginEditing(evt);
|
790
|
+
|
791
|
+
// We have to hide the intercept pane, as it blocks the events.
|
792
|
+
// However, show any that we previously hid, first just in case something wacky happened.
|
793
|
+
if (this._didHideInterceptForPane) {
|
794
|
+
this._didHideInterceptForPane.showTouchIntercept();
|
795
|
+
this._didHideInterceptForPane = null;
|
796
|
+
}
|
797
|
+
|
798
|
+
// now, hide the intercept on this pane if it has one
|
799
|
+
var pane = this.get('pane');
|
800
|
+
if (pane && pane.get('hasTouchIntercept')) {
|
801
|
+
// hide
|
802
|
+
pane.hideTouchIntercept();
|
803
|
+
|
804
|
+
// and set our internal one so we can unhide it (even if the pane somehow changes)
|
805
|
+
this._didHideInterceptForPane = this.get("pane");
|
806
|
+
}
|
807
|
+
},
|
808
|
+
|
809
|
+
fieldDidBlur: function(evt) {
|
810
|
+
this.resignFirstResponder() ;
|
811
|
+
|
812
|
+
if(this.get('commitOnBlur')) this.commitEditing(evt);
|
813
|
+
|
814
|
+
// get the pane we hid intercept pane for (if any)
|
815
|
+
var touchPane = this._didHideInterceptForPane;
|
816
|
+
if (touchPane) {
|
817
|
+
touchPane.showTouchIntercept();
|
818
|
+
touchPane = null;
|
819
|
+
}
|
820
|
+
},
|
821
|
+
|
822
|
+
_field_fieldValueDidChange: function(evt) {
|
823
|
+
if(this.get('focused')){
|
824
|
+
SC.run(function() {
|
825
|
+
this.fieldValueDidChange(NO);
|
826
|
+
}, this);
|
827
|
+
}
|
828
|
+
},
|
829
|
+
|
830
|
+
/** @private
|
831
|
+
Move magic number out so it can be over-written later in inline editor
|
832
|
+
*/
|
833
|
+
_topOffsetForFirefoxCursorFix: 3,
|
834
|
+
|
835
|
+
/** @private
|
836
|
+
Mozilla had this bug until firefox 3.5 or gecko 1.8 They rewrote input text
|
837
|
+
and textareas and now they work better. But we have to keep this for older
|
838
|
+
versions.
|
839
|
+
*/
|
840
|
+
_applyFirefoxCursorFix: function() {
|
841
|
+
// Be extremely careful changing this code. !!!!!!!!
|
842
|
+
// Contact me if you need to change or improve the code. After several
|
843
|
+
// iterations the new way to apply the fix seems to be the most
|
844
|
+
// consistent.
|
845
|
+
// This fixes: selection visibility, cursor visibility, and the ability
|
846
|
+
// to fix the cursor at any position. As of FF 3.5.3 mozilla hasn't fixed this
|
847
|
+
// bug, even though related bugs that I've found on their database appear
|
848
|
+
// as fixed.
|
849
|
+
|
850
|
+
// UPDATE: Things seem to be working on FF3.6 therefore we are disabling the
|
851
|
+
// hack for the latest versions of FF.
|
852
|
+
//
|
853
|
+
// Juan Pinzon
|
854
|
+
|
855
|
+
if (parseFloat(SC.browser.mozilla)<1.9 && !this.get('useStaticLayout')) {
|
856
|
+
var top, left, width, height, p, layer, element, textfield;
|
857
|
+
|
858
|
+
// I'm caching in didCreateLayer this elements to improve perf
|
859
|
+
element = this._cacheInputElement;
|
860
|
+
textfield = this._cachePaddingElement;
|
861
|
+
if(textfield && textfield[0]){
|
862
|
+
layer = textfield[0];
|
863
|
+
p = SC.$(layer).offset() ;
|
864
|
+
|
865
|
+
// this is to take into account an styling issue.
|
866
|
+
// this is counterproductive in FF >= 3.6
|
867
|
+
if(SC.browser.compareVersion(1,9,2) < 0 &&
|
868
|
+
element[0].tagName.toLowerCase()==="input") {
|
869
|
+
top = p.top+this._topOffsetForFirefoxCursorFix;
|
870
|
+
}
|
871
|
+
else top = p.top;
|
872
|
+
left = p.left;
|
873
|
+
width = layer.offsetWidth;
|
874
|
+
height = layer.offsetHeight ;
|
875
|
+
|
876
|
+
var style = 'position: fixed; top: %@px; left: %@px; width: %@px; height: %@px;'.fmt(top, left, width, height) ;
|
877
|
+
// if the style is the same don't re-apply
|
878
|
+
if(!this._prevStyle || this._prevStyle!=style) element.attr('style', style) ;
|
879
|
+
this._prevStyle = style;
|
880
|
+
}
|
881
|
+
}
|
882
|
+
return this ;
|
883
|
+
},
|
884
|
+
|
885
|
+
|
886
|
+
/** @private
|
887
|
+
In Firefox, as of 3.6 -- including 3.0 and 3.5 -- for input fields only
|
888
|
+
(that is, not textarea elements), if the cursor is at the end of the
|
889
|
+
field, the "down" key will not result in a "keypress" event for the
|
890
|
+
document (only for the input element), although it will be bubbled up in
|
891
|
+
other contexts. Since SproutCore's event dispatching requires the
|
892
|
+
document to see the event, we'll manually forward the event along.
|
893
|
+
*/
|
894
|
+
_firefox_dispatch_keypress: function(evt) {
|
895
|
+
var selection = this.get('selection'),
|
896
|
+
value = this.get('value'),
|
897
|
+
valueLen = value ? value.length : 0,
|
898
|
+
responder;
|
899
|
+
|
900
|
+
if (!selection || ((selection.get('length') === 0 && (selection.get('start') === 0) || selection.get('end') === valueLen))) {
|
901
|
+
responder = SC.RootResponder.responder;
|
902
|
+
if(evt.keyCode===9) return;
|
903
|
+
responder.keypress.call(responder, evt);
|
904
|
+
evt.stopPropagation();
|
905
|
+
}
|
906
|
+
},
|
907
|
+
|
908
|
+
/** @private */
|
909
|
+
_textField_selectionDidChange: function() {
|
910
|
+
this.notifyPropertyChange('selection');
|
911
|
+
},
|
912
|
+
|
913
|
+
// ..........................................................
|
914
|
+
// FIRST RESPONDER SUPPORT
|
915
|
+
//
|
916
|
+
// When we become first responder, make sure the field gets focus and
|
917
|
+
// the hint value is hidden if needed.
|
918
|
+
|
919
|
+
/** @private
|
920
|
+
When we become first responder, focus the text field if needed and
|
921
|
+
hide the hint text.
|
922
|
+
*/
|
923
|
+
willBecomeKeyResponderFrom: function(keyView) {
|
924
|
+
if(this.get('isVisibleInWindow')) {
|
925
|
+
var inp = this.$input()[0];
|
926
|
+
try{
|
927
|
+
if(inp) inp.focus();
|
928
|
+
}
|
929
|
+
catch(e){}
|
930
|
+
if(!this._txtFieldMouseDown){
|
931
|
+
this.invokeLast(this._selectRootElement) ;
|
932
|
+
}
|
933
|
+
}
|
934
|
+
},
|
935
|
+
|
936
|
+
/** @private
|
937
|
+
In IE, you can't modify functions on DOM elements so we need to wrap the
|
938
|
+
call to select() like this.
|
939
|
+
*/
|
940
|
+
_selectRootElement: function() {
|
941
|
+
var inputElem = this.$input()[0];
|
942
|
+
// Make sure input element still exists, as a redraw could have remove it
|
943
|
+
// already.
|
944
|
+
if(inputElem) inputElem.select() ;
|
945
|
+
else this._textField_selectionDidChange();
|
946
|
+
},
|
947
|
+
|
948
|
+
/** @private
|
949
|
+
When we lose first responder, blur the text field if needed and show
|
950
|
+
the hint text if needed.
|
951
|
+
*/
|
952
|
+
didLoseKeyResponderTo: function(keyView) {
|
953
|
+
var el = this.$input()[0];
|
954
|
+
if (el) el.blur();
|
955
|
+
|
956
|
+
this.invokeLater("scrollToOriginIfNeeded", 100);
|
957
|
+
},
|
958
|
+
|
959
|
+
/** @private
|
960
|
+
Scrolls to origin if necessary (if the pane's current firstResponder is not a text field).
|
961
|
+
*/
|
962
|
+
scrollToOriginIfNeeded: function() {
|
963
|
+
var pane = this.get("pane");
|
964
|
+
if (!pane) return;
|
965
|
+
|
966
|
+
var first = pane.get("firstResponder");
|
967
|
+
if (!first || !first.get("isTextField")) {
|
968
|
+
document.body.scrollTop = document.body.scrollLeft = 0;
|
969
|
+
}
|
970
|
+
},
|
971
|
+
|
972
|
+
parentViewDidResize: function() {
|
973
|
+
if (SC.browser.mozilla) {
|
974
|
+
this.invokeLast(this._applyFirefoxCursorFix);
|
975
|
+
}
|
976
|
+
sc_super();
|
977
|
+
},
|
978
|
+
|
979
|
+
/**
|
980
|
+
Simply allow keyDown & keyUp to pass through to the default web browser
|
981
|
+
implementation.
|
982
|
+
*/
|
983
|
+
keyDown: function(evt) {
|
984
|
+
var which = evt.which,
|
985
|
+
keyCode = evt.keyCode,
|
986
|
+
maxLengthReached = false,
|
987
|
+
value, view;
|
988
|
+
|
989
|
+
// Handle return and escape. this way they can be passed on to the
|
990
|
+
// responder chain.
|
991
|
+
// If the event is triggered by a return while entering IME input,
|
992
|
+
// don't got through this path.
|
993
|
+
if ((which === SC.Event.KEY_RETURN && !evt.isIMEInput) && !this.get('isTextArea')) { return NO; }
|
994
|
+
if (which === SC.Event.KEY_ESC) { return NO; }
|
995
|
+
|
996
|
+
// handle tab key
|
997
|
+
if ((which === SC.Event.KEY_TAB || keyCode === SC.Event.KEY_TAB) && this.get('defaultTabbingEnabled')) {
|
998
|
+
view = evt.shiftKey ? this.get('previousValidKeyView') : this.get('nextValidKeyView');
|
999
|
+
if (view) view.becomeFirstResponder();
|
1000
|
+
else evt.allowDefault();
|
1001
|
+
return YES ; // handled
|
1002
|
+
}
|
1003
|
+
|
1004
|
+
// maxlength for textareas
|
1005
|
+
if(!SC.platform.input.maxlength && this.get('isTextArea')){
|
1006
|
+
var val = this.get('value');
|
1007
|
+
|
1008
|
+
// This code is nasty. It's thanks gecko .keycode table that has charters like & with the same keycode as up arrow key
|
1009
|
+
if(val && ((!SC.browser.mozilla && which>47) ||
|
1010
|
+
(SC.browser.mozilla && ((which>32 && which<43) || which>47) && !(keyCode>36 && keyCode<41))) &&
|
1011
|
+
(val.length >= this.get('maxLength'))) {
|
1012
|
+
maxLengthReached = true;
|
1013
|
+
}
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
// validate keyDown...
|
1017
|
+
// do not validate on touch, as it prevents return.
|
1018
|
+
if ((this.performValidateKeyDown(evt) || SC.platform.touch) && !maxLengthReached) {
|
1019
|
+
this._isKeyDown = YES;
|
1020
|
+
evt.allowDefault();
|
1021
|
+
} else {
|
1022
|
+
evt.stop();
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
if (this.get('applyImmediately')) {
|
1026
|
+
// We need this invokeLater as we need to get the value of the field
|
1027
|
+
// once the event has been processed. I tried with invokeLast , but
|
1028
|
+
// I guess the field doesn't repaint until js execution finishes and
|
1029
|
+
// therefore the field value doesn't update if we don't give it a break.
|
1030
|
+
this.invokeLater(this.fieldValueDidChange, 1);
|
1031
|
+
}
|
1032
|
+
|
1033
|
+
return YES;
|
1034
|
+
},
|
1035
|
+
|
1036
|
+
keyUp: function(evt) {
|
1037
|
+
if (SC.browser.mozilla && evt.keyCode === SC.Event.KEY_RETURN) { this.fieldValueDidChange(); }
|
1038
|
+
|
1039
|
+
// The caret/selection could have moved. In some browsers, though, the
|
1040
|
+
// element's values won't be updated until after this event is finished
|
1041
|
+
// processing.
|
1042
|
+
this.notifyPropertyChange('selection');
|
1043
|
+
this._isKeyDown = NO;
|
1044
|
+
evt.allowDefault();
|
1045
|
+
return YES;
|
1046
|
+
},
|
1047
|
+
|
1048
|
+
mouseDown: function(evt) {
|
1049
|
+
var fieldValue = this.get('fieldValue'); // use 'fieldValue' since we want actual text
|
1050
|
+
this._txtFieldMouseDown=YES;
|
1051
|
+
if (!this.get('isEnabled')) {
|
1052
|
+
evt.stop();
|
1053
|
+
return YES;
|
1054
|
+
} else {
|
1055
|
+
return sc_super();
|
1056
|
+
}
|
1057
|
+
},
|
1058
|
+
|
1059
|
+
mouseUp: function(evt) {
|
1060
|
+
this._txtFieldMouseDown=NO;
|
1061
|
+
// The caret/selection could have moved. In some browsers, though, the
|
1062
|
+
// element's values won't be updated until after this event is finished
|
1063
|
+
// processing.
|
1064
|
+
this.notifyPropertyChange('selection');
|
1065
|
+
|
1066
|
+
if (!this.get('isEnabled')) {
|
1067
|
+
evt.stop();
|
1068
|
+
return YES;
|
1069
|
+
}
|
1070
|
+
return sc_super();
|
1071
|
+
},
|
1072
|
+
|
1073
|
+
touchStart: function(evt) {
|
1074
|
+
return this.mouseDown(evt);
|
1075
|
+
},
|
1076
|
+
|
1077
|
+
touchEnd: function(evt) {
|
1078
|
+
return this.mouseUp(evt);
|
1079
|
+
},
|
1080
|
+
|
1081
|
+
/**
|
1082
|
+
Adds mouse wheel support for textareas.
|
1083
|
+
*/
|
1084
|
+
mouseWheel: function(evt) {
|
1085
|
+
if(this.get('isTextArea')) {
|
1086
|
+
evt.allowDefault();
|
1087
|
+
return YES;
|
1088
|
+
} else return NO;
|
1089
|
+
},
|
1090
|
+
|
1091
|
+
/*
|
1092
|
+
Allows text selection in IE. We block the IE only event selectStart to
|
1093
|
+
block text selection in all other views.
|
1094
|
+
*/
|
1095
|
+
selectStart: function(evt) {
|
1096
|
+
return YES;
|
1097
|
+
},
|
1098
|
+
|
1099
|
+
/** @private
|
1100
|
+
This observer makes sure to hide the hint when a value is entered, or
|
1101
|
+
show it if it becomes empty.
|
1102
|
+
*/
|
1103
|
+
_valueObserver: function() {
|
1104
|
+
var val = this.get('value'), max;
|
1105
|
+
if (val && val.length>0) {
|
1106
|
+
this._hintON = NO;
|
1107
|
+
|
1108
|
+
max = this.get('maxLength');
|
1109
|
+
if (!SC.platform.input.maxlength && val.length > max) {
|
1110
|
+
this.set('value', val.substr(0, max));
|
1111
|
+
}
|
1112
|
+
} else {
|
1113
|
+
this._hintON = YES;
|
1114
|
+
}
|
1115
|
+
}.observes('value')
|
1116
|
+
|
1117
|
+
});
|