sproutcore 1.6.0.beta.3 → 1.6.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +33 -0
- data/Rakefile +213 -10
- data/VERSION.yml +1 -1
- data/lib/Buildfile +5 -1
- data/lib/buildtasks/manifest.rake +7 -1
- data/lib/frameworks/sproutcore/Buildfile +3 -2
- data/lib/frameworks/sproutcore/CHANGELOG.md +154 -1
- data/lib/frameworks/sproutcore/README.md +1 -1
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +9 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +254 -207
- data/lib/frameworks/sproutcore/frameworks/ajax/system/response.js +243 -172
- data/lib/frameworks/sproutcore/frameworks/ajax/tests/system/request.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +5 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controls/button.js +6 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/bind.js +36 -14
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +14 -15
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +14 -14
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/application.js +2 -7
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/responder.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +20 -12
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +61 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils.js +20 -6
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controls/button.js +39 -57
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +5 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +32 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +28 -17
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +396 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/view.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/{system → views}/bindable_span.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +78 -51
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/enabled.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/keyboard.js +233 -67
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/manipulation.js +3 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/core.js +8 -2
- data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/target.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +15 -8
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +66 -55
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/data_source.js +190 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record_attribute.js +15 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +0 -1
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/system/datetime.js +212 -182
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/system/datetime.js +14 -16
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +23 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/alert.css +49 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/debug/a_sample_image.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/debug/apple-logo1.jpeg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/debug/iframe.html +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/disclosure.css +20 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/drag.css +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/icons.css +214 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/cap.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/downbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-alert-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-alert-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-alert-48.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-bookmark-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-bookmark-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-cancel-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-document-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-document-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-down-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-error-48.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-favorite-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-favorite-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-folder-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-folder-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-group-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-group-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-help-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-help-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-info-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-info-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-info-48.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-left-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-options-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-options-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-redo-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-right-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-tools-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-trash-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-trash-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-undo-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-up-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-user-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-user-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/thumb-bottom.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/thumb-center.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/thumb-top.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/track.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/upbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/list_item.css +145 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/menu.css +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/menu_item_view.css +88 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/modal.css +3 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/panel.css +91 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/picker.css +37 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/progress.css +29 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/radio.css +11 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/segmented.css +121 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/separator.css +20 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/slider.css +34 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/split.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/split_divider.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/tab.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/toolbar.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/touch-scroller.css +13 -13
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/well.css +65 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +114 -103
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +7 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +4 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +9 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/{panes → views}/select_button.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/views/form.js +35 -33
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +15 -8
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +4 -7
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +55 -13
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +3 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/benchmark.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/blank.gif +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/bootstrap.rhtml +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/button_view.css +36 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/checkbox_view.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/debug/control-test-pane.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/favicon.ico +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-logo.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-startup-landscape.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-startup-landscape.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-startup-portrait.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-startup-portrait.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-startup.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/inline_editor.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/label.css +47 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/radio_view.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/static_layout.css +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/text_field.css +130 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/chance.js +5 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/string.js +0 -43
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/string_measurement.js +5 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +4 -5
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/routing/system/routes.js +6 -3
- data/lib/frameworks/sproutcore/frameworks/routing/tests/system/routes.js +11 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/private/property_chain.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/statechart/debug/monitor.js +4 -73
- data/lib/frameworks/sproutcore/frameworks/statechart/debug/sequence_matcher.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/ext/function.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/async.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/empty_state.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/history_state.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +7 -189
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +14 -78
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/debug/sequence_matcher.js +464 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/basic/with_concurrent_states.js +31 -11
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/with_concurrent_states.js +6 -4
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/advanced.js +40 -6
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/basic.js +22 -2
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/intermediate.js +44 -3
- data/lib/frameworks/sproutcore/frameworks/testing/core.js +61 -9
- data/lib/frameworks/sproutcore/frameworks/testing/{english.lproj → resources}/additions.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/testing/{english.lproj → resources}/runner.css +11 -2
- data/lib/frameworks/sproutcore/frameworks/testing/{english.lproj → resources}/testsuite.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +66 -27
- data/lib/frameworks/sproutcore/frameworks/testing/tests/spy_on.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/testing/tests/stub_method.js +9 -0
- data/lib/frameworks/sproutcore/frameworks/yuireset/resources/core.css +24 -0
- data/lib/frameworks/sproutcore/frameworks/yuireset/resources/fonts.css +39 -0
- data/lib/frameworks/sproutcore/frameworks/yuireset/resources/reset.css +126 -0
- data/lib/frameworks/sproutcore/frameworks/yuireset/resources/view.css +57 -0
- data/lib/frameworks/sproutcore/lib/index.rhtml +7 -4
- 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_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/collection/normal/list.css +13 -4
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +16 -14
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
- data/lib/gen/app/templates/apps/@target_name@/Buildfile +1 -4
- data/lib/gen/app/templates/apps/@target_name@/core.js +1 -4
- data/lib/gen/app/templates/apps/@target_name@/main.js +1 -4
- data/lib/gen/app/templates/apps/@target_name@/resources/main_page.js +1 -4
- data/lib/gen/app/templates/apps/@target_name@/theme.js +1 -4
- data/lib/gen/controller/templates/controllers/{@filename@.js → @filename@_controller.js} +1 -4
- data/lib/gen/controller/templates/tests/controllers/{@filename@.js → @filename@_test.js} +1 -4
- data/lib/gen/data-source/templates/data_sources/{@filename@.js → @filename@_data_source.js} +1 -4
- data/lib/gen/design/templates/resources/@filename@.js +1 -4
- data/lib/gen/framework/templates/frameworks/@target_name@/core.js +1 -4
- data/lib/gen/framework/templates/frameworks/@target_name@/english.lproj/strings.js +1 -4
- data/lib/gen/html_app/templates/apps/@target_name@/@target_name@.js +1 -4
- data/lib/gen/html_app/templates/apps/@target_name@/resources/stylesheets/@target_name@.css +2 -0
- data/lib/gen/html_project/templates/@filename@/Buildfile +1 -4
- data/lib/gen/html_project/templates/@filename@/README +1 -4
- data/lib/gen/language/templates/@filename@/strings.js +1 -4
- data/lib/gen/model/templates/fixtures/{@filename@.js → @filename@_fixtures.js} +2 -5
- data/lib/gen/model/templates/models/{@filename@.js → @filename@_model.js} +1 -4
- data/lib/gen/model/templates/tests/models/{@filename@.js → @filename@_test.js} +1 -4
- data/lib/gen/page/templates/pages/@target_name@/Buildfile +1 -4
- data/lib/gen/page/templates/pages/@target_name@/core.js +1 -4
- data/lib/gen/page/templates/pages/@target_name@/en.lproj/strings.js +1 -4
- data/lib/gen/page/templates/pages/@target_name@/resources/body.css +3 -1
- data/lib/gen/project/templates/@filename@/Buildfile +1 -4
- data/lib/gen/project/templates/@filename@/README +1 -5
- data/lib/gen/responder/templates/states/{@filename@.js → @filename@_state.js} +1 -4
- data/lib/gen/test/templates/tests/{@filename@.js → @filename@_test.js} +1 -4
- data/lib/gen/theme/templates/themes/@target_name@/resources/theme_styles.css +1 -5
- data/lib/gen/theme/templates/themes/@target_name@/theme.js +1 -4
- data/lib/gen/view/templates/tests/views/{@filename@.js → @filename@_test.js} +1 -4
- data/lib/gen/view/templates/views/{@filename@.js → @filename@_view.js} +1 -4
- data/lib/sproutcore.rb +4 -1
- data/lib/sproutcore/builders/handlebars.rb +1 -1
- data/lib/sproutcore/builders/module.rb +2 -2
- data/lib/sproutcore/helpers/static_helper.rb +4 -2
- data/lib/sproutcore/models/generator.rb +22 -0
- data/lib/sproutcore/models/manifest_entry.rb +1 -0
- data/lib/sproutcore/models/target.rb +4 -1
- data/lib/sproutcore/rack/builder.rb +3 -0
- data/lib/sproutcore/tools.rb +11 -11
- data/lib/sproutcore/tools/init.rb +10 -22
- data/lib/sproutcore/tools/manifest.rb +21 -22
- data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +21 -1
- data/spec/fixtures/ordered_entries/apps/template_style/a.js +0 -0
- data/spec/fixtures/ordered_entries/apps/template_style/template_style.js +0 -0
- data/spec/lib/buildfile_commands/build_task_spec.rb +1 -1
- data/spec/lib/tools/manifest_spec.rb +11 -0
- data/sproutcore.gemspec +2 -2
- data/vendor/chance/lib/chance/instance.rb +3 -1
- metadata +118 -74
- data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/core.css +0 -378
- data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/view.css +0 -57
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/alert.css +0 -56
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/disclosure.css +0 -73
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/icons.css +0 -916
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +0 -185
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu.css +0 -12
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +0 -101
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/panel.css +0 -91
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/picker.css +0 -35
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/progress.css +0 -33
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/radio.css +0 -10
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +0 -132
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/separator.css +0 -19
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +0 -69
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/strings.js +0 -14
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/well.css +0 -71
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/button_view.css +0 -40
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/label.css +0 -47
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +0 -146
- data/lib/frameworks/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +0 -69
@@ -78,10 +78,11 @@ SC.BaseTheme.canvasImageRenderDelegate = SC.RenderDelegate.create({
|
|
78
78
|
|
79
79
|
// We only care about specific values, check specifically for what matters
|
80
80
|
var innerFrameDidChange = ![innerFrame.x, innerFrame.y, innerFrame.width, innerFrame.height].isEqual(renderState._lastInnerFrameValues),
|
81
|
+
elemSizeDidChange = ![elem.width, elem.height].isEqual(renderState._lastElemSizeValues),
|
81
82
|
backgroundDidChange = dataSource.didChangeFor('canvasImageRenderDelegate', 'backgroundColor'),
|
82
83
|
imageDidChange = dataSource.didChangeFor('canvasImageRenderDelegate', 'image') || (image && image.complete) !== renderState._lastImageComplete;
|
83
84
|
|
84
|
-
if (innerFrameDidChange || backgroundDidChange || imageDidChange) {
|
85
|
+
if (elemSizeDidChange || innerFrameDidChange || backgroundDidChange || imageDidChange) {
|
85
86
|
|
86
87
|
if (elem && elem.getContext) {
|
87
88
|
elem.height = frameHeight;
|
@@ -103,6 +104,7 @@ SC.BaseTheme.canvasImageRenderDelegate = SC.RenderDelegate.create({
|
|
103
104
|
|
104
105
|
// Update caches
|
105
106
|
renderState._lastInnerFrameValues = [innerFrame.x, innerFrame.y, innerFrame.width, innerFrame.height];
|
107
|
+
renderState._lastElemSizeValues = [elem.width, elem.height];
|
106
108
|
renderState._lastImageComplete = image && image.complete;
|
107
109
|
}
|
108
110
|
}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
and can be simpler to subclass between themes than `SC.Object`.
|
15
15
|
|
16
16
|
Creating & Subclassing
|
17
|
-
|
17
|
+
===
|
18
18
|
You create render delegates just like you create SC.Objects:
|
19
19
|
|
20
20
|
MyTheme.someRenderDelegate = SC.RenderDelegate.create({ ... });
|
@@ -40,7 +40,7 @@
|
|
40
40
|
that you expect to be instances.
|
41
41
|
|
42
42
|
Rendering and Updating
|
43
|
-
|
43
|
+
===
|
44
44
|
Render delegates are most commonly used for two things: rendering and updating
|
45
45
|
DOM representations of controls.
|
46
46
|
|
@@ -61,7 +61,7 @@
|
|
61
61
|
}
|
62
62
|
|
63
63
|
Variables
|
64
|
-
|
64
|
+
===
|
65
65
|
The data source provides your render delegate with all of the information
|
66
66
|
needed to render. However, the render delegate's consumer--usually a view--
|
67
67
|
may need to get information back.
|
@@ -111,7 +111,7 @@
|
|
111
111
|
helper discussion below.
|
112
112
|
|
113
113
|
Helpers
|
114
|
-
|
114
|
+
===
|
115
115
|
SC.RenderDelegate have "helper methods" to assist the rendering process.
|
116
116
|
There are a few built-in helpers, and you can add your own.
|
117
117
|
|
@@ -242,7 +242,7 @@
|
|
242
242
|
});
|
243
243
|
|
244
244
|
Data Sources
|
245
|
-
|
245
|
+
===
|
246
246
|
Render delegates get the content to be rendered from their data sources.
|
247
247
|
|
248
248
|
A data source can be any object, so long as the object implements
|
@@ -260,10 +260,10 @@
|
|
260
260
|
While render delegates are _usually_ completely stateless, there are
|
261
261
|
cases where they may need to save some sort of state.
|
262
262
|
*/
|
263
|
-
SC.RenderDelegate = {
|
263
|
+
SC.RenderDelegate = /** @scope SC.RenderDelegate.prototype */{
|
264
|
+
|
264
265
|
// docs will look more natural if these are all considered instance
|
265
266
|
// methods/properties.
|
266
|
-
/*@scope SC.RenderDelegate.prototype*/
|
267
267
|
|
268
268
|
/**
|
269
269
|
Creates a new render delegate based on this one. When you want to
|
data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/benchmark.css
RENAMED
File without changes
|
File without changes
|
data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/bootstrap.rhtml
RENAMED
File without changes
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/* SC.ButtonView */
|
2
|
+
.sc-button-view {
|
3
|
+
display: inline-block ;
|
4
|
+
vertical-align: middle;
|
5
|
+
text-decoration: none ;
|
6
|
+
border: 1px #555 solid;
|
7
|
+
border-radius: 3px;
|
8
|
+
-moz-border-radius: 3px;
|
9
|
+
|
10
|
+
&.sc-static-layout {
|
11
|
+
margin: 0 4px;
|
12
|
+
}
|
13
|
+
.sc-button-inner {
|
14
|
+
position: relative;
|
15
|
+
display: block;
|
16
|
+
height: 100%;
|
17
|
+
text-align: center ;
|
18
|
+
}
|
19
|
+
label {
|
20
|
+
position: relative;
|
21
|
+
display: block;
|
22
|
+
line-height: 21px;
|
23
|
+
text-align: center;
|
24
|
+
}
|
25
|
+
img {
|
26
|
+
vertical-align: middle ;
|
27
|
+
margin-right: 2px;
|
28
|
+
position: relative ;
|
29
|
+
top: -2px;
|
30
|
+
left: -2px;
|
31
|
+
}
|
32
|
+
|
33
|
+
.ie7 &{
|
34
|
+
display: inline;
|
35
|
+
}
|
36
|
+
}
|
data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/checkbox_view.css
RENAMED
File without changes
|
File without changes
|
data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/favicon.ico
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/inline_editor.css
RENAMED
File without changes
|
@@ -0,0 +1,47 @@
|
|
1
|
+
/* SC.LabelView */
|
2
|
+
|
3
|
+
.sc-label-view {
|
4
|
+
font-weight: normal;
|
5
|
+
text-align: left;
|
6
|
+
|
7
|
+
&.icon {
|
8
|
+
position: relative;
|
9
|
+
vertical-align: middle;
|
10
|
+
}
|
11
|
+
|
12
|
+
&.sc-hint {
|
13
|
+
position: absolute;
|
14
|
+
top: 3px;
|
15
|
+
left: 1px;
|
16
|
+
right: 1px;
|
17
|
+
bottom: 3px;
|
18
|
+
padding: 0px;
|
19
|
+
color: #aaa ;
|
20
|
+
font-size: 12px;
|
21
|
+
}
|
22
|
+
|
23
|
+
&.disabled {
|
24
|
+
color: #999;
|
25
|
+
color: rgba(50,50,50,0.5);
|
26
|
+
}
|
27
|
+
|
28
|
+
&.sc-large-size {
|
29
|
+
font-size: 18px;
|
30
|
+
line-height: 24px;
|
31
|
+
}
|
32
|
+
|
33
|
+
&.sc-regular-size {
|
34
|
+
font-size: 12px;
|
35
|
+
line-height: 19px;
|
36
|
+
}
|
37
|
+
|
38
|
+
&.sc-small-size {
|
39
|
+
font-size: 11px;
|
40
|
+
line-height: 14px;
|
41
|
+
}
|
42
|
+
|
43
|
+
&.sc-tiny-size {
|
44
|
+
font-size: 9px;
|
45
|
+
line-height: 12px;
|
46
|
+
}
|
47
|
+
}
|
data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/radio_view.css
RENAMED
File without changes
|
@@ -0,0 +1,130 @@
|
|
1
|
+
/* Common SC.TextFieldView styles - needed to work properly */
|
2
|
+
|
3
|
+
.sc-text-field-view {
|
4
|
+
border:none;
|
5
|
+
z-index:100;
|
6
|
+
overflow: visible;
|
7
|
+
background :white;
|
8
|
+
.border {
|
9
|
+
position: absolute;
|
10
|
+
top: 0px;
|
11
|
+
left: 0px;
|
12
|
+
bottom: 0px;
|
13
|
+
right: 0px;
|
14
|
+
}
|
15
|
+
.padding {
|
16
|
+
top: 0px;
|
17
|
+
left: 3px;
|
18
|
+
bottom: 0px;
|
19
|
+
right: 3px;
|
20
|
+
position: absolute;
|
21
|
+
}
|
22
|
+
&.text-area .padding {
|
23
|
+
right: 0px;
|
24
|
+
}
|
25
|
+
&.sc-text-field-accessory-view {
|
26
|
+
z-index: 2;
|
27
|
+
}
|
28
|
+
input {
|
29
|
+
position: absolute;
|
30
|
+
top: 0px;
|
31
|
+
left: 0px;
|
32
|
+
width: 100%;
|
33
|
+
height: 100%;
|
34
|
+
line-height: 100%;
|
35
|
+
bottom: 0px;
|
36
|
+
right: 0px;
|
37
|
+
display: block;
|
38
|
+
background: transparent;
|
39
|
+
vertical-align: middle;
|
40
|
+
border: none;
|
41
|
+
outline: none;
|
42
|
+
-webkit-appearance:none;
|
43
|
+
}
|
44
|
+
|
45
|
+
textarea {
|
46
|
+
position: absolute;
|
47
|
+
top: 0px;
|
48
|
+
left: 0px;
|
49
|
+
width:100%;
|
50
|
+
bottom: 0px;
|
51
|
+
right: 0px;
|
52
|
+
display: block;
|
53
|
+
background: transparent;
|
54
|
+
vertical-align: middle;
|
55
|
+
resize: none;
|
56
|
+
overflow: auto;
|
57
|
+
border: none;
|
58
|
+
outline: none;
|
59
|
+
-webkit-appearance:none;
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
.sc-hint {
|
64
|
+
z-index: 1;
|
65
|
+
position: absolute;
|
66
|
+
top: 3px;
|
67
|
+
left: 1px;
|
68
|
+
right: 1px;
|
69
|
+
bottom: 3px;
|
70
|
+
padding: 0px;
|
71
|
+
color: #aaa ;
|
72
|
+
font-size: 12px;
|
73
|
+
}
|
74
|
+
|
75
|
+
&.text-area .sc-hint {
|
76
|
+
top: 2px;
|
77
|
+
left: 3px;
|
78
|
+
right: 3px;
|
79
|
+
bottom: 2px;
|
80
|
+
}
|
81
|
+
|
82
|
+
&.focus .sc-hint,
|
83
|
+
&.not-empty .sc-hint {
|
84
|
+
display: none ;
|
85
|
+
}
|
86
|
+
|
87
|
+
&.sc-hint .field{
|
88
|
+
color: #B3B3B3 !important;
|
89
|
+
}
|
90
|
+
|
91
|
+
.safari &{
|
92
|
+
&.focus {
|
93
|
+
outline: auto 7px -webkit-focus-ring-color;
|
94
|
+
outline-offset: -2px;
|
95
|
+
}
|
96
|
+
.border {
|
97
|
+
-webkit-appearance: textfield;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
.mozilla &{
|
102
|
+
&.focus {
|
103
|
+
outline-color:-moz-mac-focusring;
|
104
|
+
outline-offset:-5px;
|
105
|
+
outline-style:solid;
|
106
|
+
outline-width:3px;
|
107
|
+
}
|
108
|
+
.border {
|
109
|
+
-moz-appearance: textfield;
|
110
|
+
}
|
111
|
+
textarea.field {
|
112
|
+
height: 100%;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
.msie &{
|
117
|
+
&.focus {
|
118
|
+
outline: 1px dotted;
|
119
|
+
}
|
120
|
+
.border {
|
121
|
+
border:1px inset;
|
122
|
+
}
|
123
|
+
input.field {
|
124
|
+
padding-bottom: 1px;
|
125
|
+
}
|
126
|
+
textarea.field {
|
127
|
+
height: 100%;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
@@ -8,20 +8,7 @@
|
|
8
8
|
|
9
9
|
/** @private */
|
10
10
|
SC.STRING_TITLEIZE_REGEXP = (/([\s|\-|\_|\n])([^\s|\-|\_|\n]?)/g);
|
11
|
-
|
12
|
-
/** @private */
|
13
11
|
SC.STRING_HUMANIZE_REGEXP = (/[\-_]/g);
|
14
|
-
|
15
|
-
/** @private */
|
16
|
-
SC.STRING_TRIM_REGEXP = (/^\s+|\s+$/g);
|
17
|
-
|
18
|
-
/** @private */
|
19
|
-
SC.STRING_TRIM_LEFT_REGEXP = (/^\s+/g);
|
20
|
-
|
21
|
-
/** @private */
|
22
|
-
SC.STRING_TRIM_RIGHT_REGEXP = (/\s+$/g);
|
23
|
-
|
24
|
-
/** @private */
|
25
12
|
SC.STRING_REGEXP_ESCAPED_REGEXP = (/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g);
|
26
13
|
|
27
14
|
/** @private
|
@@ -313,36 +300,6 @@ SC.mixin(SC.String, {
|
|
313
300
|
return ret;
|
314
301
|
},
|
315
302
|
|
316
|
-
/**
|
317
|
-
Removes any extra whitespace from the edges of the string. This method is
|
318
|
-
also aliased as strip().
|
319
|
-
|
320
|
-
@param {String} str String to trim
|
321
|
-
@returns {String} the trimmed string
|
322
|
-
*/
|
323
|
-
trim: function(str) {
|
324
|
-
return str.replace(SC.STRING_TRIM_REGEXP, "");
|
325
|
-
},
|
326
|
-
|
327
|
-
/**
|
328
|
-
Removes any extra whitespace from the left edge of the string.
|
329
|
-
|
330
|
-
@param {String} str String to left trim
|
331
|
-
@returns {String} the trimmed string
|
332
|
-
*/
|
333
|
-
trimLeft: function (str) {
|
334
|
-
return str.replace(SC.STRING_TRIM_LEFT_REGEXP, "");
|
335
|
-
},
|
336
|
-
|
337
|
-
/**
|
338
|
-
Removes any extra whitespace from the right edge of the string.
|
339
|
-
|
340
|
-
@param {String} str String to right trim
|
341
|
-
@returns {String} the trimmed string
|
342
|
-
*/
|
343
|
-
trimRight: function (str) {
|
344
|
-
return str.replace(SC.STRING_TRIM_RIGHT_REGEXP, "");
|
345
|
-
},
|
346
303
|
|
347
304
|
/**
|
348
305
|
Converts a word into its plural form.
|
@@ -10,7 +10,7 @@ SC.mixin( /** @scope SC */ {
|
|
10
10
|
_copy_computed_props: [
|
11
11
|
"maxWidth", "maxHeight", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom",
|
12
12
|
"fontFamily", "fontSize", "fontStyle", "fontWeight", "fontVariant", "lineHeight",
|
13
|
-
"whiteSpace"
|
13
|
+
"whiteSpace", "letterSpacing"
|
14
14
|
],
|
15
15
|
|
16
16
|
/**
|
@@ -219,8 +219,11 @@ SC.mixin( /** @scope SC */ {
|
|
219
219
|
throw "measureString requires a string measurement environment to be set up. Did you mean metricsForString?";
|
220
220
|
}
|
221
221
|
|
222
|
+
// since the string has already been escaped (if the user wants it to be),
|
223
|
+
// we should set the innerHTML instead of innertext
|
224
|
+
if(ignoreEscape) element.innerHTML = string;
|
222
225
|
// the conclusion of which to use (innerText or textContent) should be cached
|
223
|
-
if (typeof element.innerText != "undefined") element.innerText = string;
|
226
|
+
else if (typeof element.innerText != "undefined") element.innerText = string;
|
224
227
|
else element.textContent = string;
|
225
228
|
|
226
229
|
// generate result
|
@@ -33,12 +33,12 @@ SC.Validator.Date = SC.Validator.extend(
|
|
33
33
|
/*
|
34
34
|
TODO [CC] deprecated warning, we should remove this in a future release
|
35
35
|
*/
|
36
|
-
|
36
|
+
// @if (debug)
|
37
37
|
if (format.indexOf('%') === -1) {
|
38
38
|
SC.Logger.warn("You're using a Date validator with a format (%@) for time.js, which has been deprecated. Please change your format to something compatible with SC.DateTime".fmt(format));
|
39
39
|
format = this.constructor.prototype.format;
|
40
40
|
}
|
41
|
-
|
41
|
+
// @endif
|
42
42
|
|
43
43
|
if (SC.typeOf(object) === SC.T_NUMBER) {
|
44
44
|
dateTime = SC.DateTime.create(object);
|
@@ -62,12 +62,12 @@ SC.Validator.Date = SC.Validator.extend(
|
|
62
62
|
/*
|
63
63
|
TODO [CC] deprecated warning, we should remove this in a future release
|
64
64
|
*/
|
65
|
-
|
65
|
+
// @if (debug)
|
66
66
|
if (format.indexOf('%') === -1) {
|
67
67
|
SC.Logger.warn("You're using a Date validator with a format (%@) for time.js, which has been deprecated. Please change your format to something compatible with SC.DateTime".fmt(format));
|
68
68
|
format = this.constructor.prototype.format;
|
69
69
|
}
|
70
|
-
|
70
|
+
// @endif
|
71
71
|
|
72
72
|
if (value) {
|
73
73
|
dateTime = SC.DateTime.parse(value, format);
|