sproutcore 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +70 -2
- data/Manifest.txt +3 -15
- data/config/hoe.rb +1 -1
- data/frameworks/sproutcore/animation/animation.js +411 -0
- data/frameworks/sproutcore/controllers/array.js +68 -21
- data/frameworks/sproutcore/controllers/object.js +21 -2
- data/frameworks/sproutcore/drag/drag.js +13 -4
- data/frameworks/sproutcore/drag/drop_target.js +26 -19
- data/frameworks/sproutcore/english.lproj/core.css +4 -0
- data/frameworks/sproutcore/english.lproj/strings.js +5 -0
- data/frameworks/sproutcore/english.lproj/theme.css +5 -0
- data/frameworks/sproutcore/foundation/application.js +1 -2
- data/frameworks/sproutcore/foundation/set.js +31 -12
- data/frameworks/sproutcore/foundation/sorted_set.js +590 -0
- data/frameworks/sproutcore/foundation/string.js +43 -9
- data/frameworks/sproutcore/globals/window.js +34 -9
- data/frameworks/sproutcore/lib/button_views.rb +1 -0
- data/frameworks/sproutcore/lib/collection_view.rb +1 -0
- data/frameworks/sproutcore/lib/core_views.rb +3 -0
- data/frameworks/sproutcore/lib/index.rhtml +1 -1
- data/frameworks/sproutcore/mixins/collection_view_delegate.js +201 -0
- data/frameworks/sproutcore/mixins/observable.js +2 -7
- data/frameworks/sproutcore/models/record.js +1 -1
- data/frameworks/sproutcore/models/store.js +81 -28
- data/frameworks/sproutcore/tests/views/view/clippingFrame.rhtml +9 -6
- data/frameworks/sproutcore/views/collection/collection.js +649 -211
- data/frameworks/sproutcore/views/collection/grid.js +62 -26
- data/frameworks/sproutcore/views/collection/list.js +57 -21
- data/frameworks/sproutcore/views/collection/source_list.js +61 -13
- data/frameworks/sproutcore/views/image.js +7 -0
- data/frameworks/sproutcore/views/inline_text_field.js +4 -5
- data/frameworks/sproutcore/views/slider.js +2 -0
- data/frameworks/sproutcore/views/view.js +2 -2
- data/lib/sproutcore/build_tools/html_builder.rb +4 -6
- data/lib/sproutcore/build_tools/resource_builder.rb +32 -20
- data/lib/sproutcore/bundle.rb +130 -32
- data/lib/sproutcore/bundle_manifest.rb +24 -21
- data/lib/sproutcore/helpers/static_helper.rb +22 -9
- data/lib/sproutcore/merb/bundle_controller.rb +4 -3
- data/lib/sproutcore/version.rb +1 -1
- metadata +14 -17
- data/clients/view_builder/builders/builder.js +0 -339
- data/clients/view_builder/builders/button.js +0 -81
- data/clients/view_builder/controllers/document.js +0 -21
- data/clients/view_builder/core.js +0 -19
- data/clients/view_builder/english.lproj/body.css +0 -77
- data/clients/view_builder/english.lproj/body.rhtml +0 -39
- data/clients/view_builder/english.lproj/controls.css +0 -0
- data/clients/view_builder/english.lproj/strings.js +0 -14
- data/clients/view_builder/main.js +0 -38
- data/clients/view_builder/mixins/design_mode.js +0 -92
- data/clients/view_builder/tests/controllers/document.rhtml +0 -20
- data/clients/view_builder/tests/views/builder.rhtml +0 -20
- data/clients/view_builder/tests/views/palette.rhtml +0 -21
- data/clients/view_builder/views/builder.js +0 -26
- data/clients/view_builder/views/palette.js +0 -30
@@ -1,26 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// ViewBuilder.BuilderView
|
3
|
-
// ==========================================================================
|
4
|
-
|
5
|
-
require('core');
|
6
|
-
require('mixins/design_mode') ;
|
7
|
-
|
8
|
-
/** @class
|
9
|
-
|
10
|
-
A BuilderView displays the visible and editable portion of a view. You
|
11
|
-
can plug any generic builder record into a view and it will display the
|
12
|
-
content. If the builder is a container, it will also allow you to add
|
13
|
-
child views to the container.
|
14
|
-
|
15
|
-
@extends SC.View
|
16
|
-
@author AuthorName
|
17
|
-
@version 0.1
|
18
|
-
*/
|
19
|
-
SC.BuilderView = SC.ButtonView.extend(SC.DesignMode,
|
20
|
-
/** @scope ViewBuilder.BuilderView.prototype */ {
|
21
|
-
|
22
|
-
init: function() {
|
23
|
-
arguments.callee.base.call(this) ;
|
24
|
-
this.set('designModeIsEnabled', YES) ; // activate design mode.
|
25
|
-
}
|
26
|
-
}) ;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// ViewBuilder.PaletteView
|
3
|
-
// ==========================================================================
|
4
|
-
|
5
|
-
require('core');
|
6
|
-
|
7
|
-
/** @class
|
8
|
-
|
9
|
-
(Document Your View Here)
|
10
|
-
|
11
|
-
@extends SC.View
|
12
|
-
@author AuthorName
|
13
|
-
@version 0.1
|
14
|
-
*/
|
15
|
-
ViewBuilder.PaletteView = SC.View.extend(
|
16
|
-
/** @scope ViewBuilder.PaletteView.prototype */ {
|
17
|
-
|
18
|
-
title: 'TITLE',
|
19
|
-
|
20
|
-
emptyElement: '<div class="sc-smoke-theme palette"><div class="titlebar"><div class="label"></div></div><div class="body"></div></div>',
|
21
|
-
|
22
|
-
containerElement: '.body?',
|
23
|
-
|
24
|
-
outlets: ['titleLabelView'],
|
25
|
-
|
26
|
-
titleLabelView: SC.LabelView.extend({
|
27
|
-
valueBinding: '*owner.title'
|
28
|
-
}).outletFor('.titlebar .label?')
|
29
|
-
|
30
|
-
}) ;
|