sproutcore 1.6.0.rc.2-x86-mingw32 → 1.6.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +12 -0
- data/VERSION.yml +1 -1
- data/bin/sc-docs +6 -1
- data/lib/buildtasks/target.rake +1 -1
- data/lib/frameworks/sproutcore/Buildfile +5 -1
- data/lib/frameworks/sproutcore/CHANGELOG.md +175 -1
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/select.js +12 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/select_page.js +19 -5
- data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +28 -31
- data/lib/frameworks/sproutcore/frameworks/ajax/system/response.js +9 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +21 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/responder_context.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +6 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +26 -8
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/keyboard.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +12 -5
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +25 -9
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/locale.js +157 -5
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +7 -6
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +9 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +8 -8
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +104 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/theme.js +3 -56
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils.js +4 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/content_destroyed.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/string.js +41 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +10 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/panes/template.js +16 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +11 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/didAppendToDocument.js +18 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/insertBefore.js +10 -6
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +18 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +9 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +9 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/keyboard.js +15 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/manipulation.js +14 -8
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/theming.js +8 -18
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +12 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/mixins/relationship_support.js +296 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +330 -326
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +22 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +614 -614
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/data_source.js +14 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +3 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +20 -13
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record_attribute.js +61 -46
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +30 -30
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +24 -24
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/connectDataSource.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/pushRelationships.js +1177 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/system/datetime.js +4 -63
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +7 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +18 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +9 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/button.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/collection.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/disclosure.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/image_button.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/menu.js +12 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/panel.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/picker.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segment.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segmented.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/toolbar.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/well.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/workspace.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/segmented.css +1 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +33 -22
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +20 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +10 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +34 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +14 -15
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +40 -14
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +699 -700
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +11 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +16 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +0 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +49 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_button.js +9 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +6 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +4 -26
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +20 -19
- data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +2 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +249 -249
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/mixins/edit_mode.js +13 -5
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/mixins/emptiness.js +53 -37
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/render_delegates/form.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/render_delegates/form_row.js +3 -11
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/mixins/edit_mode.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/mixins/emptiness.js +114 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form.js +174 -6
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_row.js +86 -6
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/views/form.js +80 -110
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/views/form_row.js +96 -97
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/README.md +2 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +20 -36
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/ext/menu.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/ext/menu_item.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/mixins/select_view_menu.js +139 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/render_delegates/select_button.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/tests/ext/menu_resizing.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/tests/mixins/select_view_menu/bindings.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/tests/mixins/select_view_menu/check_selected.js +32 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/tests/views/popup_button/menu_setup.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/tests/views/popup_button/show_menu.js +45 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/tests/views/select/menu_width.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/tests/views/select/selected_item.js +191 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/views/popup_button.js +264 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/views/select.js +450 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/mixins/split_child.js +14 -6
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/mixins/split_thumb.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/render_delegates/split.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/render_delegates/split_divider.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split.js +9 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/thumb.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +7 -17
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_value_support.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +35 -8
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inner_frame.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/helpers/sizing.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/image.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/label.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/favicon.ico +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/text_field.css +0 -5
- data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +4 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/system/math.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/module.js +13 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/string_measurement.js +6 -9
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/flowed_layout/tests.js +912 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +36 -7
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +58 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/validator.js +1 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +25 -14
- data/lib/frameworks/sproutcore/frameworks/handlebars/handlebars.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +15 -9
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/flatten.js +24 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/array.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/function.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +14 -14
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +3 -0
- 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/runtime/system/range_observer.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +15 -16
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/itemType.js +6 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/enhance.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +9 -2
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +3 -1
- data/lib/frameworks/sproutcore/frameworks/testing/resources/runner.css +0 -1
- data/lib/frameworks/sproutcore/frameworks/yuireset/resources/base.css +80 -0
- data/lib/frameworks/sproutcore/frameworks/yuireset/resources/core.css +0 -4
- data/lib/frameworks/sproutcore/lib/index.rhtml +2 -1
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list.css +3 -3
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +2 -2
- data/lib/frameworks/sproutcore/themes/ace/resources/form/form.css +9 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.css +3 -1
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js +1 -1
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js +1 -1
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/button.js +1 -1
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/panel.js +1 -1
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/progress.js +2 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/slider.js +1 -1
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/well.js +1 -1
- data/lib/sproutcore/builders/base.rb +5 -1
- data/lib/sproutcore/builders/handlebars.rb +12 -1
- data/lib/sproutcore/models/target.rb +1 -9
- data/lib/sproutcore/rack/proxy.rb +238 -92
- data/lib/sproutcore/tools/docs.rb +1 -7
- data/spec/fixtures/builder_tests/apps/handlebars_test/Buildfile +1 -0
- data/spec/fixtures/builder_tests/apps/handlebars_test/{template.handlebars → templates/template.handlebars} +2 -0
- data/spec/lib/builders/handlebars_spec.rb +10 -4
- data/sproutcore.gemspec +3 -1
- metadata +73 -44
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/english.lproj/default_styles.css +0 -5
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/english.lproj/strings.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_checkbox_field.js +0 -17
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_field.js +0 -17
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_label.js +0 -17
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_radio_field.js +0 -17
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_text_field.js +0 -17
data/CHANGELOG
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
*SproutCore 1.6.0 (June 09, 2011)*
|
2
|
+
|
3
|
+
* Code cleanup + Stream the headers and body directly across the proxy as they arrive, which will work with streaming APIs like Twitter
|
4
|
+
* Merge pull request #53 from publickeating/master
|
5
|
+
* Fixed variable typo
|
6
|
+
* Rewritten to make the proxy non-blocking. Probably needs some real-world hardening.
|
7
|
+
* Added sc_static support to handlebars and did some test cleanup
|
8
|
+
* Should fix broken module building - Fixes #58
|
9
|
+
* Fixed sc-docs warning
|
10
|
+
* Switch absolute_path to expand_path for Ruby 1.8 compatibility
|
11
|
+
* Bumped RSpec Dependency
|
12
|
+
|
1
13
|
*SproutCore 1.6.0.rc.2 (May 23, 2011)*
|
2
14
|
|
3
15
|
* Allow for absolute build_prefix
|
data/VERSION.yml
CHANGED
data/bin/sc-docs
CHANGED
data/lib/buildtasks/target.rake
CHANGED
@@ -45,7 +45,7 @@ namespace :target do
|
|
45
45
|
unless path
|
46
46
|
base = prefix || ''
|
47
47
|
# Check if it's absolute, if not add project_root
|
48
|
-
unless base[0..0] == '~' || File.
|
48
|
+
unless base[0..0] == '~' || File.expand_path(base) == base
|
49
49
|
base = File.join((project.project_root || '').to_s, base)
|
50
50
|
end
|
51
51
|
path = File.join(base, url_prefix, (target[:target_name] || '').to_s)
|
@@ -86,7 +86,11 @@ config :ace,
|
|
86
86
|
# CONFIGURE APPS
|
87
87
|
config :core_tools, :required => [
|
88
88
|
:desktop, :datastore, :animation, "sproutcore/experimental/forms",
|
89
|
-
"sproutcore/ace",
|
89
|
+
"sproutcore/ace",
|
90
|
+
|
91
|
+
# The SC apps will use the experimental version of these controls:
|
92
|
+
"sproutcore/experimental/select_view",
|
93
|
+
"sproutcore/experimental/split_view"
|
90
94
|
]
|
91
95
|
|
92
96
|
# mode :debug do
|
@@ -1,6 +1,181 @@
|
|
1
1
|
CHANGE LOG FOR 1.6
|
2
2
|
==================
|
3
3
|
|
4
|
+
1.6.0
|
5
|
+
-----
|
6
|
+
* Minor bug fix for SC.Checkbox with no title
|
7
|
+
* Fixed test typo
|
8
|
+
* Make sure YUI reset styles are in the yuireset framework
|
9
|
+
* Add displayTitle for SC.Checkbox which allows the title to be localized.
|
10
|
+
* Fix datetime values being null when localization is being used. Causes problems when you try to format dates at execution time
|
11
|
+
* I'm not sure the intention of having the right padding gone for text-areas, but this override of the default looks really bad in Safari & Chrome & Firefox.
|
12
|
+
* 'i' before 'e' except after 'c', plus Sublime Text 2 automatically removes extra whitespace, so lots of whitespace cleanups
|
13
|
+
* Fixes failing Text Field unit tests in IE. Listens for focusin/focusout instead of focus/blur.
|
14
|
+
* Clearer test message
|
15
|
+
* Test for clippingFrame fixes
|
16
|
+
* clippingFrame should always return a frame relative to the view itself, not its parent
|
17
|
+
* Remove unused init override from SC.Request
|
18
|
+
* Controller update to help clean up old record arrays and objects.
|
19
|
+
* Added sc_require for sizing render delegate
|
20
|
+
* Replaced a failing test with a pending one until fixed
|
21
|
+
* Fixed SC.DateFieldView tests
|
22
|
+
* Fixed tab responder tests
|
23
|
+
* Test fixes for childView insertion
|
24
|
+
* Testing CSS fixes
|
25
|
+
* Revert "Remove namescape definition from SC.browser"
|
26
|
+
* Added documentation for tagName in SC.TemplateCollectionView
|
27
|
+
* Added missing semicolon
|
28
|
+
* Fix CollectionView touchStart function not properly setting touchSelectedView
|
29
|
+
* Statechart documentation improvements
|
30
|
+
* Polymorphism requires datastore and added myself as Contributor
|
31
|
+
* If a superclass was used to load a record first (ex. toOne: {MyApp.Person}), then if a subclass later appeared with the same ID (ex. store.find(MyApp.Male, id), it would error out because the subclass would generate a new store key and as it passed the storeKey up to its superclass, the superclass would already have a different storeKey and throw an exception. Plus store.recordTypesByStoreKey would forever be stuck on the superclass Record Type.
|
32
|
+
* Added a DataSource reset function for fixtures - Fixes #408
|
33
|
+
* Minor docs fix
|
34
|
+
* Fix tests on nested records
|
35
|
+
* Throw arror on attribute types that can't be resolved into an object
|
36
|
+
* Fixed typo in docs (thx iammerrick)
|
37
|
+
* Fixed didAppendToLayer callbacks from appendChild - Fixes #168
|
38
|
+
* More rigorous test on didAppendToDocument
|
39
|
+
* Make sure to awake SC.TemplatePane - Fixes #387
|
40
|
+
* Deprecated SC.SelectButtonView - Fixes #393
|
41
|
+
* Better target/action handling for AlertPanes - Fixes #394
|
42
|
+
* Throw error when dataSource object can't be found in data store.
|
43
|
+
* Minor documentation improvement
|
44
|
+
* SC.RangeObserver method handles string (thx kswenson) - Fixes #482
|
45
|
+
* Fix SC.TextField to only update DOM if actually changed - Fixes #436
|
46
|
+
* Always re-render SelectField when firstTime is true - Fixes #448
|
47
|
+
* refactored record relationship support into it's own mixin, SC.RelationshipSupport
|
48
|
+
* modified relationships API to use enhance
|
49
|
+
* added the ability for 'createIfEmpty' to follow a relationship chain. objects related via 'isMaster' RecordAttribute relationships will be lazily created with pushRetrieve
|
50
|
+
* Added tests for pushDestroy not destroying a destroyed record & beginning of authoritative server push.
|
51
|
+
* Cleaned up code, added comments, minimized common code across pushRetrieve and pushDestroy.
|
52
|
+
* added support for propagating SingleAttribute and ManyAttribute relationships between store records on asynchronous updates
|
53
|
+
* Fixed SC.Record JSON encoding - Closes #473
|
54
|
+
* Fix parse error in SC.Math
|
55
|
+
* Doc improvements
|
56
|
+
* Improved docs on SC.DragDataSource
|
57
|
+
* Correct SC.DropTarget documentation
|
58
|
+
* Switch @mixin to @namespace for JSDoc to recognize
|
59
|
+
* Added support for 'readOnly' attributes in the input and textarea fields. As discussed in issue 453, if isEnabled is set to YES and isEditable is set to NO a 'readOnly' attribute will be added to the input and textarea fields. This allows input fields to remain uneditable, but allows the user to select the text.
|
60
|
+
* Documentation Improvements
|
61
|
+
* Fix a bug in string measurement.js where the measurement width would be capped to the body width even without a max-width set
|
62
|
+
* Remove namescape definition from SC.browser
|
63
|
+
* fix TABBING_ONLY_INSIDE_DOCUMENT to work when tabbing backwards
|
64
|
+
* fix for nextValidKeyView unit test failing with wrong return value when TABBING_ONLY_INSIDE_DOCUMENT is disabled
|
65
|
+
* Form render delegate should use 'className' instead of 'name'
|
66
|
+
* Fix formatting of warning for renderdelegate name property.
|
67
|
+
* rename renderDelegate's 'name' property to 'className' to be more clear about what it does.
|
68
|
+
* Separate logic for menuItemViews property so it can be overriden.
|
69
|
+
* Make destroying panel panes destroy their modal pane as well, and test this.
|
70
|
+
* Fix for focus issues with textfield and the app in general
|
71
|
+
* Removing css rule to 3d accelerate panes, this rule is to aggresive and might be consuming too much memory
|
72
|
+
* Allow exception handler to handle it so it is not thrown again
|
73
|
+
* Adding isResponse flag to SC.Response
|
74
|
+
* fixed isEnabled for new select and popup view
|
75
|
+
* prevented invalid value from being changed to null by selectedItemDidChange
|
76
|
+
* removed duplicate code and fixed prepare/teardown in situations where no elements could be measured
|
77
|
+
* U-UA header needs to be on top before any other headers to actually be respected
|
78
|
+
* Fix bug where null button would break pane
|
79
|
+
* don't set border-right on collection
|
80
|
+
* fixed docs for split_child.js
|
81
|
+
* Forgot to revert part of the action button regression
|
82
|
+
* Additional FormRowView tests.
|
83
|
+
* Do not implicitly set contentValueKey from FormView.
|
84
|
+
* Clean up FormRow, and start testing it.
|
85
|
+
* Clean up FormView some more, and test it.
|
86
|
+
* Fix FormView createChildViews logic.
|
87
|
+
* Fix FormRowView whitespace.
|
88
|
+
* Clean up forms a bit more. Styles should be in Ace.
|
89
|
+
* Clean up and fix typo in FormRowView.
|
90
|
+
* Clean up and test SC.CalculatesEmptiness.
|
91
|
+
* Add tests for FormsEditMode.
|
92
|
+
* Clean up FormsEditMode a little.
|
93
|
+
* Checking for hasContentValueSupport in conditions
|
94
|
+
* Make FlowedLayout handle empty defaultFlowSpacing gracefully (and test this)
|
95
|
+
* Clean up FormView/FormRowView a little.
|
96
|
+
* Remove the empty test files for views that are no longer used.
|
97
|
+
* Get rid of View#getThemedProperty
|
98
|
+
* Remove unused "renderer" code from SC.Theme.
|
99
|
+
* Deprecate SelectFieldView.
|
100
|
+
* Buttons removed support for legacy handlers (method-based actions and null targets), so, fixing test.
|
101
|
+
* Fix CheckboxView
|
102
|
+
* Test isSpacer in FlowedLayout.
|
103
|
+
* For testing, we need to observe everything. If this causes performance issues we should investigate other solutions.
|
104
|
+
* Add some tests for flowedLayout.
|
105
|
+
* Add unit test for view.reopen bug.
|
106
|
+
* Make SplitView 'guess' autoResizeStyle automatically based on the supplied 'size'.
|
107
|
+
* Add 'extends' to list of reserved words (Safari reserves it, apparently)
|
108
|
+
* Putting back legacy button support, we have to look into how to make action strings work faster, this seems to be way slower for mobile
|
109
|
+
* Adding a check to focus event when the mainPane is still not initialized
|
110
|
+
* fix alternating colors
|
111
|
+
* updated some styling in runtime
|
112
|
+
* Clean up SelectView handling to handle other types of items more easily.
|
113
|
+
* Try to make the popup button auto-closing of the menu less tolerant.
|
114
|
+
* Get rid of unnecessary sc_requires.
|
115
|
+
* Test SelectView more thoroughly in Test Controls.
|
116
|
+
* Adding reset styles back as it's affecting basic styling for template views
|
117
|
+
* Add string-loaded CSS.
|
118
|
+
* Fixed SC.typeOf to work correctly. Was giving incorrect results when determining if an object was an error object.
|
119
|
+
* Set identifying headers in send() not init, get rid of attachHeaders parameter from class methods. Call set() attachIdentifyingHeaders to NO either in the hash or later.
|
120
|
+
* updated statechart's gotoState method. Now provides a warning if an explicit fromCurrentState value was not supplied.
|
121
|
+
* minor fix for Array.prototype.copy. Was missing a semicolon that JSLint was complaining about.
|
122
|
+
* Updated SC.Copyable's copy method. Now provides a more informative error if copy has not been overriden.
|
123
|
+
* Updated SC.State.plugin to perform addition checks on given value. If invalid then an error is reported
|
124
|
+
* Make first responder in view hierarchy when gaining back focus only if not tabbing only inside the document
|
125
|
+
* Update SC .ico file
|
126
|
+
* Added code to imitate browser tabbing
|
127
|
+
* Disabling default focus ring
|
128
|
+
* Removing orphan code in render context update function
|
129
|
+
* Adding z-index to segmented view since we need to change the order of tab view rendering for ARIA purposes
|
130
|
+
* Change order tabs views are created, to fix accesibility tabindex order bug
|
131
|
+
* Fix for radio button keyboard support
|
132
|
+
* Always focus when it becomes key responder
|
133
|
+
* removing debugger statement
|
134
|
+
* Removing legacy action handler and improving keyboard handling for buttons
|
135
|
+
* Keyboard support for radio views
|
136
|
+
* Small code tweak
|
137
|
+
* Stop bringing always SC app into focus by default
|
138
|
+
* Call focus whenever a view gets responder that way ARIA does the right thing, and it also solves some issues with tabbing focus
|
139
|
+
* Removing unneccesary keyresponder code from slider and field views
|
140
|
+
* Added keyboard support to checkbox
|
141
|
+
* Fixed regression to be able to tab between address bar and views, also added tabindex to view that is firstResponder, this will enable ARIA to handle focus
|
142
|
+
* Fix a bug where setting the same value of the iframe would blow it away and cleaning it up a bit
|
143
|
+
* Apply nested stores patch by Brian Moore.
|
144
|
+
* Reset invalid widths and heights for views inside a FlowedLayout.
|
145
|
+
* The previous method of calculating minWidth/Height was correct when canWrap was NO, but incorrect when canWrap was YES.
|
146
|
+
* Fix docs for SelectView/PopupButtonView/etc.
|
147
|
+
* Fix some broken styles.
|
148
|
+
* Add tests for selectview's menu width.
|
149
|
+
* Improve docs and get rid of useless minimumMenuWidthDidChange (it was not even observing anything)
|
150
|
+
* Bind menu's minimumMenuWidth to the selectview.
|
151
|
+
* Add defaults and observe the minimumMenuWidth.
|
152
|
+
* Test aspects related to the selected item.
|
153
|
+
* Fix bug and make it observe the selected item so it can change value and title appropriately.
|
154
|
+
* Update some documentation.
|
155
|
+
* Add PopupButtonView tests.
|
156
|
+
* Lazy menu instantiation...
|
157
|
+
* Add tests for the mixins and extensions for SC.MenuPane/SC.MenuItemView.
|
158
|
+
* Fix menu item checkmark styling.
|
159
|
+
* Fix list item styling...
|
160
|
+
* Setting currentMenuItem doesn't work. This feature, while we should have it, wasn't in the old one, so skipping for now.
|
161
|
+
* Update for new AutoResize API.
|
162
|
+
* Add menuWidthPadding property for render delegate.
|
163
|
+
* Test long menu items.
|
164
|
+
* Update menu item for the new AutoResize API.
|
165
|
+
* Enhance the createMenuItemViews method instead of menuItemViews, which is not enhanceable.
|
166
|
+
* Separate logic for menuItemViews property so it can be overriden.
|
167
|
+
* Improve key handling so that up/down goes relative to current selected item.
|
168
|
+
* Make menu's minimum width themeable.
|
169
|
+
* Make button handle the allowDefault.
|
170
|
+
* Keyboard mostly working...
|
171
|
+
* For mouse events, SelectView is now fully operational. Keyboard... not so much.
|
172
|
+
* Make MenuItem a little more flexible.
|
173
|
+
* Make Test Controls use experimental SelectView
|
174
|
+
* Clean up select page
|
175
|
+
* Add unfinished new SelectView/PopupButton.
|
176
|
+
* Add in new support for specifying and accessing localized metrics in the same manner as you can currently specify and access localized strings. For strings, you do:
|
177
|
+
* 1. Introduces changes to maintain a separate hash of layout values, for the current locale 2. Added a separate method to do localization of layout hash
|
178
|
+
|
4
179
|
1.6.0.rc.2
|
5
180
|
----------
|
6
181
|
* Fixed SC.PickerPane#modalPaneDidClick return values - Fixes #339
|
@@ -131,7 +306,6 @@ CHANGE LOG FOR 1.6
|
|
131
306
|
* Disabling image preloading by default
|
132
307
|
* Fix the html examples of the routes file
|
133
308
|
* Fix documentation for SC.routes
|
134
|
-
* Fix problem with last merge
|
135
309
|
* Refactor base css styles to use SCSS
|
136
310
|
* Update to trimming functions
|
137
311
|
* Minor unit test bug fixes for IE
|
@@ -0,0 +1,12 @@
|
|
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
|
+
/*globals TestControls */
|
8
|
+
|
9
|
+
TestControls.buttonsController = SC.Controller.create({
|
10
|
+
selectedValue: 'printer:a'
|
11
|
+
});
|
12
|
+
|
@@ -11,7 +11,7 @@ TestControls.selectPage = SC.View.design({
|
|
11
11
|
form: SC.FormView.design({
|
12
12
|
classNames: ["sample_controls"],
|
13
13
|
layout: { left: 20, top: 40, right: 20, bottom: 40 },
|
14
|
-
childViews: "header normal disabled".w(),
|
14
|
+
childViews: "header normal strings disabled".w(),
|
15
15
|
|
16
16
|
// Plain Views
|
17
17
|
header: SC.LabelView.design({
|
@@ -27,16 +27,30 @@ TestControls.selectPage = SC.View.design({
|
|
27
27
|
{"name": "Printer A", "value": "printer:a"},
|
28
28
|
{"name": "Printer B", "value": "printer:b"},
|
29
29
|
{"name": "Printer C", "value": "printer:c"},
|
30
|
-
|
30
|
+
|
31
31
|
{"name": "Printer D", "value": "printer:d"},
|
32
32
|
{"name": "Printer E", "value": "printer:e"},
|
33
33
|
{"name": "Printer F", "value": "printer:f"},
|
34
|
+
|
35
|
+
{"separator": YES, name: "none" },
|
34
36
|
{"name": "MICR 1", "value": "printer:m1"},
|
35
|
-
{"name": "MICR 2", "value": "printer:m2"}
|
37
|
+
{"name": "MICR 2", "value": "printer:m2"},
|
38
|
+
|
39
|
+
{"separator": YES, name: "Hi" },
|
40
|
+
{"name": "This name is Really Really Long, OK?", "value": "LONG" }
|
36
41
|
],
|
37
42
|
itemTitleKey: "name", itemValueKey: "value", itemSeparatorKey: "separator",
|
38
|
-
value:
|
43
|
+
value: 'printer:a',
|
44
|
+
valueBinding: 'TestControls.buttonsController.selectedValue'
|
39
45
|
})),
|
46
|
+
|
47
|
+
strings: SC.FormView.row(SC.SelectView.design({
|
48
|
+
layout: { width: 150, height: 24 },
|
49
|
+
items: ["printer:a", "printer:b", "printer:c", "printer:d", "printer:e", "printer:f", "printer:m1", "printer:m2", "LONG"],
|
50
|
+
value: 'printer:a',
|
51
|
+
valueBinding: 'TestControls.buttonsController.selectedValue'
|
52
|
+
})),
|
53
|
+
|
40
54
|
disabled: SC.FormView.row(SC.SelectView.design({
|
41
55
|
layout: { width: 150, height: 24 },
|
42
56
|
|
@@ -58,4 +72,4 @@ TestControls.selectPage = SC.View.design({
|
|
58
72
|
value: null
|
59
73
|
}))
|
60
74
|
})
|
61
|
-
});
|
75
|
+
});
|
@@ -64,19 +64,16 @@ SC.Request = SC.Object.extend(SC.Copyable, SC.Freezable,
|
|
64
64
|
X-SproutCore-Version headers to all outgoing requests. This allows
|
65
65
|
you to override that behavior.
|
66
66
|
|
67
|
+
You may want to set this to NO if you are making simple CORS requests
|
68
|
+
in compatible browsers. See <a href="http://www.w3.org/TR/cors/">CORS
|
69
|
+
Spec for more informatinon.</a>
|
70
|
+
|
71
|
+
TODO: Add unit tests for this feature
|
72
|
+
|
67
73
|
@type Boolean
|
68
74
|
@default YES
|
69
75
|
*/
|
70
76
|
attachIdentifyingHeaders: YES,
|
71
|
-
|
72
|
-
init: function() {
|
73
|
-
sc_super();
|
74
|
-
|
75
|
-
if (this.get('attachIdentifyingHeaders') !== NO) {
|
76
|
-
this.header('X-Requested-With', 'XMLHttpRequest');
|
77
|
-
this.header('X-SproutCore-Version', SC.VERSION);
|
78
|
-
}
|
79
|
-
},
|
80
77
|
|
81
78
|
/**
|
82
79
|
Current set of headers for the request
|
@@ -354,15 +351,19 @@ SC.Request = SC.Object.extend(SC.Copyable, SC.Freezable,
|
|
354
351
|
if (flag) { this.set('isJSON', NO); }
|
355
352
|
return this.set('isXML', flag);
|
356
353
|
},
|
357
|
-
|
358
|
-
/**
|
359
|
-
|
360
|
-
|
361
|
-
Called just before a request is enqueued. This will encode the body
|
362
|
-
into JSON if it is not already encoded.
|
354
|
+
|
355
|
+
/**
|
356
|
+
Called just before a request is enqueued. This will encode the body
|
357
|
+
into JSON if it is not already encoded, and set identifying headers
|
363
358
|
*/
|
364
359
|
_prep: function() {
|
365
360
|
var hasContentType = !!this.header('Content-Type');
|
361
|
+
|
362
|
+
if(this.get('attachIdentifyingHeaders')) {
|
363
|
+
this.header('X-Requested-With', 'XMLHttpRequest');
|
364
|
+
this.header('X-SproutCore-Version', SC.VERSION);
|
365
|
+
}
|
366
|
+
|
366
367
|
if (this.get('isJSON') && !hasContentType) {
|
367
368
|
this.header('Content-Type', 'application/json');
|
368
369
|
} else if (this.get('isXML') && !hasContentType) {
|
@@ -469,11 +470,10 @@ SC.Request.mixin(
|
|
469
470
|
Helper method for quickly setting up a GET request.
|
470
471
|
|
471
472
|
@param {String} address url of request
|
472
|
-
@param {Boolean} [attachHeaders] See documentation for SC.Request#attachIdentifyingHeaders
|
473
473
|
@returns {SC.Request} receiver
|
474
474
|
*/
|
475
|
-
getUrl: function(address
|
476
|
-
return this.create(
|
475
|
+
getUrl: function(address) {
|
476
|
+
return this.create().set('address', address).set('type', 'GET');
|
477
477
|
},
|
478
478
|
|
479
479
|
/**
|
@@ -481,24 +481,22 @@ SC.Request.mixin(
|
|
481
481
|
|
482
482
|
@param {String} address url of request
|
483
483
|
@param {String} body
|
484
|
-
@param {Boolean} [attachHeaders] See documentation for SC.Request#attachIdentifyingHeaders
|
485
484
|
@returns {SC.Request} receiver
|
486
485
|
*/
|
487
|
-
postUrl: function(address, body
|
488
|
-
var req = this.create(
|
489
|
-
if(body) { req.set('body', body); }
|
490
|
-
return req;
|
486
|
+
postUrl: function(address, body) {
|
487
|
+
var req = this.create().set('address', address).set('type', 'POST');
|
488
|
+
if(body) { req.set('body', body) ; }
|
489
|
+
return req ;
|
491
490
|
},
|
492
491
|
|
493
492
|
/**
|
494
493
|
Helper method for quickly setting up a DELETE request.
|
495
494
|
|
496
495
|
@param {String} address url of request
|
497
|
-
@param {Boolean} [attachHeaders] See documentation for SC.Request#attachIdentifyingHeaders
|
498
496
|
@returns {SC.Request} receiver
|
499
497
|
*/
|
500
|
-
deleteUrl: function(address
|
501
|
-
return this.create(
|
498
|
+
deleteUrl: function(address) {
|
499
|
+
return this.create().set('address', address).set('type', 'DELETE');
|
502
500
|
},
|
503
501
|
|
504
502
|
/**
|
@@ -506,13 +504,12 @@ SC.Request.mixin(
|
|
506
504
|
|
507
505
|
@param {String} address url of request
|
508
506
|
@param {String} body
|
509
|
-
@param {Boolean} [attachHeaders] See documentation for SC.Request#attachIdentifyingHeaders
|
510
507
|
@returns {SC.Request} receiver
|
511
508
|
*/
|
512
|
-
putUrl: function(address, body
|
513
|
-
var req = this.create(
|
514
|
-
if(body) { req.set('body', body); }
|
515
|
-
return req;
|
509
|
+
putUrl: function(address, body) {
|
510
|
+
var req = this.create().set('address', address).set('type', 'PUT');
|
511
|
+
if(body) { req.set('body', body) ; }
|
512
|
+
return req ;
|
516
513
|
}
|
517
514
|
|
518
515
|
});
|
@@ -22,6 +22,13 @@
|
|
22
22
|
SC.Response = SC.Object.extend(
|
23
23
|
/** @scope SC.Response.prototype */ {
|
24
24
|
|
25
|
+
/**
|
26
|
+
Walk like a duck
|
27
|
+
|
28
|
+
@type Boolean
|
29
|
+
*/
|
30
|
+
isResponse: YES,
|
31
|
+
|
25
32
|
/**
|
26
33
|
Becomes true if there was a failure. Makes this into an error object.
|
27
34
|
|
@@ -177,9 +184,9 @@ SC.Response = SC.Object.extend(
|
|
177
184
|
|
178
185
|
/**
|
179
186
|
@private
|
180
|
-
@deprecated
|
187
|
+
@deprecated Use body instead.
|
181
188
|
|
182
|
-
Alias for body.
|
189
|
+
Alias for body.
|
183
190
|
|
184
191
|
@type Hash|String
|
185
192
|
@see #body
|