sproutcore 1.6.0.beta.3-x86-mingw32 → 1.6.0.rc.1-x86-mingw32
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 +150 -106
- 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
@@ -5,62 +5,60 @@
|
|
5
5
|
// License: Licensed under MIT license (see license.js)
|
6
6
|
// ==========================================================================
|
7
7
|
|
8
|
-
|
9
8
|
SC.DateTime.mixin(
|
10
|
-
|
11
|
-
|
9
|
+
/** @scope SC.DateTime */ {
|
10
|
+
|
12
11
|
/**
|
13
|
-
The localized day names. Add the key `
|
12
|
+
The localized day names. Add the key `_SC.DateTime.dayNames` and its
|
14
13
|
value to your `strings.js` file to add support for another language than
|
15
14
|
English.
|
16
15
|
|
17
16
|
Default is evaluated on the `document.ready` event.
|
18
17
|
|
19
|
-
@
|
18
|
+
@type Array
|
20
19
|
@default '_SC.DateTime.dayNames'.loc().w()
|
21
20
|
*/
|
22
21
|
dayNames: null,
|
23
|
-
|
22
|
+
|
24
23
|
/**
|
25
24
|
The localized abbreviated day names. Add the key
|
26
|
-
`
|
25
|
+
`_SC.DateTime.abbreviatedDayNames` and its value to your `strings.js`
|
27
26
|
file to add support for another language than English.
|
28
27
|
|
29
28
|
Default is evaluated on the `document.ready` event.
|
30
29
|
|
31
|
-
@
|
32
|
-
@type {Array}
|
30
|
+
@type Array
|
33
31
|
@default '_SC.DateTime.abbreviatedDayNames'.loc().w()
|
34
32
|
*/
|
35
33
|
abbreviatedDayNames: null,
|
36
34
|
|
37
35
|
/**
|
38
|
-
The localized month names. Add the key `
|
36
|
+
The localized month names. Add the key `_SC.DateTime.monthNames` and its
|
39
37
|
value to your `strings.js` file to add support for another language than
|
40
38
|
English.
|
41
39
|
|
42
40
|
Default is evaluated on the `document.ready` event.
|
43
41
|
|
44
|
-
@
|
45
|
-
@type {Array}
|
42
|
+
@type Array
|
46
43
|
@default '_SC.DateTime.monthNames'.loc().w()
|
47
44
|
*/
|
48
45
|
monthNames: null,
|
49
46
|
|
50
47
|
/**
|
51
48
|
The localized abbreviated month names. Add the key
|
52
|
-
`
|
49
|
+
`_SC.DateTime.abbreviatedMonthNames` and its value to your `strings.js`
|
53
50
|
file to add support for another language than English.
|
54
51
|
|
55
52
|
Default is evaluated on the `document.ready` event.
|
56
53
|
|
57
|
-
@
|
58
|
-
@type {Array}
|
54
|
+
@type Array
|
59
55
|
@default '_SC.DateTime.abbreviatedMonthNames'.loc().w()
|
60
56
|
*/
|
61
57
|
abbreviatedMonthNames: null,
|
62
58
|
|
63
|
-
/**
|
59
|
+
/**
|
60
|
+
@private
|
61
|
+
|
64
62
|
Called on `document.ready`.
|
65
63
|
|
66
64
|
Because localizations may have been modified by an application developer,
|
@@ -235,7 +235,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
235
235
|
@default YES
|
236
236
|
*/
|
237
237
|
localize: YES,
|
238
|
-
|
238
|
+
|
239
239
|
/**
|
240
240
|
Whether or not this menu pane should accept the “current menu pane”
|
241
241
|
designation when visible, which is the highest-priority pane when routing
|
@@ -246,7 +246,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
246
246
|
@default YES
|
247
247
|
*/
|
248
248
|
acceptsMenuPane: YES,
|
249
|
-
|
249
|
+
|
250
250
|
/**
|
251
251
|
Disable context menu.
|
252
252
|
|
@@ -383,7 +383,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
383
383
|
itemSeparatorKey: 'separator',
|
384
384
|
|
385
385
|
/**
|
386
|
-
The name of the property that contains the target for the action that is
|
386
|
+
The name of the property that contains the target for the action that is
|
387
387
|
triggered when the user clicks the menu item.
|
388
388
|
|
389
389
|
Note that this property is ignored if the menu item has a submenu.
|
@@ -457,14 +457,23 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
457
457
|
itemDisableMenuFlashKey: 'disableMenuFlash',
|
458
458
|
|
459
459
|
/**
|
460
|
-
The
|
460
|
+
The name of the property that determines whether layerID should be applied to the item .
|
461
|
+
|
462
|
+
@type String
|
463
|
+
@default "layerId"
|
464
|
+
@commonTask Menu Item Properties
|
465
|
+
*/
|
466
|
+
itemLayerIdKey: 'layerId',
|
467
|
+
|
468
|
+
/**
|
469
|
+
The array of keys used by SC.MenuItemView when inspecting your menu items
|
461
470
|
for display properties.
|
462
471
|
|
463
472
|
@private
|
464
473
|
@isReadOnly
|
465
474
|
@property Array
|
466
475
|
*/
|
467
|
-
menuItemKeys: ['itemTitleKey', 'itemValueKey', 'itemIsEnabledKey', 'itemIconKey', 'itemSeparatorKey', 'itemActionKey', 'itemCheckboxKey', 'itemShortCutKey', 'itemHeightKey', 'itemSubMenuKey', 'itemKeyEquivalentKey', 'itemTargetKey'],
|
476
|
+
menuItemKeys: ['itemTitleKey', 'itemValueKey', 'itemIsEnabledKey', 'itemIconKey', 'itemSeparatorKey', 'itemActionKey', 'itemCheckboxKey', 'itemShortCutKey', 'itemHeightKey', 'itemSubMenuKey', 'itemKeyEquivalentKey', 'itemTargetKey', 'itemLayerIdKey'],
|
468
477
|
|
469
478
|
// ..........................................................
|
470
479
|
// INTERNAL PROPERTIES
|
@@ -604,7 +613,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
604
613
|
exampleView = this.get('exampleView'), item, view,
|
605
614
|
height, heightKey, separatorKey, defaultHeight, separatorHeight,
|
606
615
|
menuHeight, menuHeightPadding, keyEquivalentKey, keyEquivalent,
|
607
|
-
keyArray, idx,
|
616
|
+
keyArray, idx, layerIdKey, propertiesHash,
|
608
617
|
len;
|
609
618
|
|
610
619
|
if (!items) return views; // return an empty array
|
@@ -613,7 +622,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
613
622
|
defaultHeight = this.get('itemHeight');
|
614
623
|
keyEquivalentKey = this.get('itemKeyEquivalentKey');
|
615
624
|
separatorHeight = this.get('itemSeparatorHeight');
|
616
|
-
|
625
|
+
layerIdKey = this.get('itemLayerIdKey');
|
617
626
|
menuHeightPadding = Math.floor(this.get('menuHeightPadding')/2);
|
618
627
|
menuHeight = menuHeightPadding;
|
619
628
|
|
@@ -626,15 +635,18 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
626
635
|
if (!height) {
|
627
636
|
height = item.get(separatorKey) ? separatorHeight : defaultHeight;
|
628
637
|
}
|
629
|
-
|
638
|
+
propertiesHash = {
|
630
639
|
layout: { height: height, top: menuHeight },
|
631
640
|
contentDisplayProperties: keyArray,
|
632
641
|
content: item,
|
633
642
|
parentMenu: this
|
634
|
-
}
|
643
|
+
};
|
644
|
+
if(item.get(layerIdKey)) {
|
645
|
+
propertiesHash.layerId = item.get(layerIdKey);
|
646
|
+
}
|
647
|
+
view = this._menuView.createChildView(exampleView, propertiesHash);
|
635
648
|
views[idx] = view;
|
636
649
|
menuHeight += height;
|
637
|
-
|
638
650
|
keyEquivalent = item.get(keyEquivalentKey);
|
639
651
|
if (keyEquivalent) {
|
640
652
|
// if array, apply each one for this view
|
@@ -997,7 +1009,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
997
1009
|
performKeyEquivalent: function(keyEquivalent, evt, fromVisibleControl) {
|
998
1010
|
//If menu is not visible
|
999
1011
|
if (!fromVisibleControl && !this.get('isVisibleInWindow')) return NO;
|
1000
|
-
|
1012
|
+
|
1001
1013
|
// Look for menu item that has this key equivalent
|
1002
1014
|
var menuItem = this._keyEquivalents[keyEquivalent];
|
1003
1015
|
|
@@ -0,0 +1,49 @@
|
|
1
|
+
.sc-alert {
|
2
|
+
background: white;
|
3
|
+
.info {
|
4
|
+
position: relative ;
|
5
|
+
min-height: 48px;
|
6
|
+
padding: 20px 12px 58px 74px;
|
7
|
+
&.plain {
|
8
|
+
padding: 20px 12px 58px 16px;
|
9
|
+
}
|
10
|
+
.icon {
|
11
|
+
position: absolute;
|
12
|
+
left: 12px;
|
13
|
+
top: 14px;
|
14
|
+
}
|
15
|
+
.header {
|
16
|
+
background-color: transparent;
|
17
|
+
color: black;
|
18
|
+
margin: 0;
|
19
|
+
padding: 0;
|
20
|
+
font-size: 16px;
|
21
|
+
margin-bottom: 6px;
|
22
|
+
font-family: inherit ;
|
23
|
+
}
|
24
|
+
.description {
|
25
|
+
padding: 0;
|
26
|
+
margin: 6px 0px;
|
27
|
+
font-size: 12px;
|
28
|
+
margin-right: 20px;
|
29
|
+
}
|
30
|
+
.caption {
|
31
|
+
padding: 0;
|
32
|
+
margin: 6px 0px;
|
33
|
+
font-size: 11px;
|
34
|
+
margin-right: 20px;
|
35
|
+
}
|
36
|
+
.separator {
|
37
|
+
position: absolute;
|
38
|
+
width: 100%;
|
39
|
+
height: 2px;
|
40
|
+
left: 0px;
|
41
|
+
bottom: 50px;
|
42
|
+
background: #eaeaea ;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.sc-pane.sc-panel.sc-alert > div > .sc-view {
|
48
|
+
overflow: visible;
|
49
|
+
}
|
File without changes
|
data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/debug/apple-logo1.jpeg
RENAMED
File without changes
|
data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/debug/iframe.html
RENAMED
File without changes
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/* SC.DisclosureView - sc-theme */
|
2
|
+
|
3
|
+
.sc-button-view.sc-disclosure-view {
|
4
|
+
background: transparent;
|
5
|
+
.button {
|
6
|
+
width: 16px;
|
7
|
+
height: 16px;
|
8
|
+
position: absolute;
|
9
|
+
left: 0px;
|
10
|
+
top: 0px;
|
11
|
+
}
|
12
|
+
.sc-button-label {
|
13
|
+
position: absolute;
|
14
|
+
left: 16px;
|
15
|
+
top: 0;
|
16
|
+
bottom: 0;
|
17
|
+
right: 0;
|
18
|
+
text-align: left;
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,214 @@
|
|
1
|
+
/*
|
2
|
+
These built-in images/icons are available for use in your own application free of charge. Just pass one of these CSS classnames as an image.
|
3
|
+
*/
|
4
|
+
|
5
|
+
/* @group 48-Pixel images/icons */
|
6
|
+
|
7
|
+
.sc-icon-alert-48 {
|
8
|
+
width: 48px;
|
9
|
+
height: 48px;
|
10
|
+
@include slice("images/icons/sc-icon-alert-48.png");
|
11
|
+
}
|
12
|
+
|
13
|
+
.sc-icon-info-48 {
|
14
|
+
width: 48px;
|
15
|
+
height: 48px;
|
16
|
+
@include slice("images/icons/sc-icon-info-48.png");
|
17
|
+
}
|
18
|
+
|
19
|
+
.sc-icon-error-48 {
|
20
|
+
width: 48px;
|
21
|
+
height: 48px;
|
22
|
+
@include slice("images/icons/sc-icon-error-48.png");
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
/* @end */
|
27
|
+
|
28
|
+
/* @group 24-Pixel images/icons */
|
29
|
+
|
30
|
+
.sc-icon-tools-24 {
|
31
|
+
width: 24px;
|
32
|
+
height: 24px;
|
33
|
+
@include slice("images/icons/sc-icon-tools-24.png");
|
34
|
+
}
|
35
|
+
|
36
|
+
.sc-icon-bookmark-24 {
|
37
|
+
width: 24px;
|
38
|
+
height: 24px;
|
39
|
+
@include slice("images/icons/sc-icon-bookmark-24.png");
|
40
|
+
}
|
41
|
+
|
42
|
+
.sc-icon-info-24 {
|
43
|
+
width: 24px;
|
44
|
+
height: 24px;
|
45
|
+
@include slice("images/icons/sc-icon-info-24.png");
|
46
|
+
}
|
47
|
+
|
48
|
+
.sc-icon-help-24 {
|
49
|
+
width: 24px;
|
50
|
+
height: 24px;
|
51
|
+
@include slice("images/icons/sc-icon-help-24.png");
|
52
|
+
}
|
53
|
+
|
54
|
+
.sc-icon-alert-24 {
|
55
|
+
width: 24px;
|
56
|
+
height: 24px;
|
57
|
+
@include slice("images/icons/sc-icon-alert-24.png");
|
58
|
+
}
|
59
|
+
|
60
|
+
.sc-icon-left-24 {
|
61
|
+
width: 24px;
|
62
|
+
height: 24px;
|
63
|
+
@include slice("images/icons/sc-icon-left-24.png");
|
64
|
+
}
|
65
|
+
|
66
|
+
.sc-icon-right-24 {
|
67
|
+
width: 24px;
|
68
|
+
height: 24px;
|
69
|
+
@include slice("images/icons/sc-icon-right-24.png");
|
70
|
+
}
|
71
|
+
|
72
|
+
.sc-icon-up-24 {
|
73
|
+
width: 24px;
|
74
|
+
height: 24px;
|
75
|
+
@include slice("images/icons/sc-icon-up-24.png");
|
76
|
+
}
|
77
|
+
|
78
|
+
.sc-icon-down-24 {
|
79
|
+
width: 24px;
|
80
|
+
height: 24px;
|
81
|
+
@include slice("images/icons/sc-icon-down-24.png");
|
82
|
+
}
|
83
|
+
|
84
|
+
.sc-icon-undo-24 {
|
85
|
+
width: 24px;
|
86
|
+
height: 24px;
|
87
|
+
@include slice("images/icons/sc-icon-undo-24.png");
|
88
|
+
}
|
89
|
+
|
90
|
+
.sc-icon-redo-24 {
|
91
|
+
width: 24px;
|
92
|
+
height: 24px;
|
93
|
+
@include slice("images/icons/sc-icon-redo-24.png");
|
94
|
+
}
|
95
|
+
|
96
|
+
.sc-icon-group-24 {
|
97
|
+
width: 24px;
|
98
|
+
height: 24px;
|
99
|
+
@include slice("images/icons/sc-icon-group-24.png");
|
100
|
+
}
|
101
|
+
|
102
|
+
.sc-icon-user-24 {
|
103
|
+
width: 24px;
|
104
|
+
height: 24px;
|
105
|
+
@include slice("images/icons/sc-icon-user-24.png");
|
106
|
+
}
|
107
|
+
|
108
|
+
.sc-icon-cancel-24 {
|
109
|
+
width: 24px;
|
110
|
+
height: 24px;
|
111
|
+
@include slice("images/icons/sc-icon-cancel-24.png");
|
112
|
+
}
|
113
|
+
|
114
|
+
.sc-icon-options-24 {
|
115
|
+
width: 24px;
|
116
|
+
height: 24px;
|
117
|
+
@include slice("images/icons/sc-icon-options-24.png");
|
118
|
+
}
|
119
|
+
|
120
|
+
.sc-icon-folder-24 {
|
121
|
+
width: 24px;
|
122
|
+
height: 24px;
|
123
|
+
@include slice("images/icons/sc-icon-folder-24.png");
|
124
|
+
}
|
125
|
+
|
126
|
+
.sc-icon-trash-24 {
|
127
|
+
width: 24px;
|
128
|
+
height: 24px;
|
129
|
+
@include slice("images/icons/sc-icon-trash-24.png");
|
130
|
+
}
|
131
|
+
|
132
|
+
.sc-icon-document-24 {
|
133
|
+
width: 24px;
|
134
|
+
height: 24px;
|
135
|
+
@include slice("images/icons/sc-icon-document-24.png");
|
136
|
+
}
|
137
|
+
|
138
|
+
.sc-icon-favorite-24 {
|
139
|
+
width: 24px;
|
140
|
+
height: 24px;
|
141
|
+
@include slice("images/icons/sc-icon-favorite-24.png");
|
142
|
+
}
|
143
|
+
|
144
|
+
/* @end */
|
145
|
+
|
146
|
+
/* @group 16-Pixel images/icons */
|
147
|
+
|
148
|
+
.sc-icon-bookmark-16 {
|
149
|
+
width: 16px;
|
150
|
+
height: 16px;
|
151
|
+
@include slice("images/icons/sc-icon-bookmark-16.png");
|
152
|
+
}
|
153
|
+
|
154
|
+
.sc-icon-info-16 {
|
155
|
+
width: 16px;
|
156
|
+
height: 16px;
|
157
|
+
@include slice("images/icons/sc-icon-info-16.png");
|
158
|
+
}
|
159
|
+
|
160
|
+
.sc-icon-help-16 {
|
161
|
+
width: 16px;
|
162
|
+
height: 16px;
|
163
|
+
@include slice("images/icons/sc-icon-help-16.png");
|
164
|
+
}
|
165
|
+
|
166
|
+
.sc-icon-alert-16 {
|
167
|
+
width: 16px;
|
168
|
+
height: 16px;
|
169
|
+
@include slice("images/icons/sc-icon-alert-16.png");
|
170
|
+
}
|
171
|
+
|
172
|
+
.sc-icon-group-16 {
|
173
|
+
width: 16px;
|
174
|
+
height: 16px;
|
175
|
+
@include slice("images/icons/sc-icon-group-16.png");
|
176
|
+
}
|
177
|
+
|
178
|
+
.sc-icon-user-16 {
|
179
|
+
width: 16px;
|
180
|
+
height: 16px;
|
181
|
+
@include slice("images/icons/sc-icon-user-16.png");
|
182
|
+
}
|
183
|
+
|
184
|
+
.sc-icon-options-16 {
|
185
|
+
width: 16px;
|
186
|
+
height: 16px;
|
187
|
+
@include slice("images/icons/sc-icon-options-16.png");
|
188
|
+
}
|
189
|
+
|
190
|
+
.sc-icon-folder-16 {
|
191
|
+
width: 16px;
|
192
|
+
height: 16px;
|
193
|
+
@include slice("images/icons/sc-icon-folder-16.png");
|
194
|
+
}
|
195
|
+
|
196
|
+
.sc-icon-trash-16 {
|
197
|
+
width: 16px;
|
198
|
+
height: 16px;
|
199
|
+
@include slice("images/icons/sc-icon-trash-16.png");
|
200
|
+
}
|
201
|
+
|
202
|
+
.sc-icon-document-16 {
|
203
|
+
width: 16px;
|
204
|
+
height: 16px;
|
205
|
+
@include slice("images/icons/sc-icon-document-16.png");
|
206
|
+
}
|
207
|
+
|
208
|
+
.sc-icon-favorite-16 {
|
209
|
+
width: 16px;
|
210
|
+
height: 16px;
|
211
|
+
@include slice("images/icons/sc-icon-favorite-16.png");
|
212
|
+
}
|
213
|
+
|
214
|
+
/* @end */
|