sproutcore 1.6.0.rc.2-x86-mingw32 → 1.6.0.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -8,54 +8,6 @@
|
|
8
8
|
SC.DateTime.mixin(
|
9
9
|
/** @scope SC.DateTime */ {
|
10
10
|
|
11
|
-
/**
|
12
|
-
The localized day names. Add the key `_SC.DateTime.dayNames` and its
|
13
|
-
value to your `strings.js` file to add support for another language than
|
14
|
-
English.
|
15
|
-
|
16
|
-
Default is evaluated on the `document.ready` event.
|
17
|
-
|
18
|
-
@type Array
|
19
|
-
@default '_SC.DateTime.dayNames'.loc().w()
|
20
|
-
*/
|
21
|
-
dayNames: null,
|
22
|
-
|
23
|
-
/**
|
24
|
-
The localized abbreviated day names. Add the key
|
25
|
-
`_SC.DateTime.abbreviatedDayNames` and its value to your `strings.js`
|
26
|
-
file to add support for another language than English.
|
27
|
-
|
28
|
-
Default is evaluated on the `document.ready` event.
|
29
|
-
|
30
|
-
@type Array
|
31
|
-
@default '_SC.DateTime.abbreviatedDayNames'.loc().w()
|
32
|
-
*/
|
33
|
-
abbreviatedDayNames: null,
|
34
|
-
|
35
|
-
/**
|
36
|
-
The localized month names. Add the key `_SC.DateTime.monthNames` and its
|
37
|
-
value to your `strings.js` file to add support for another language than
|
38
|
-
English.
|
39
|
-
|
40
|
-
Default is evaluated on the `document.ready` event.
|
41
|
-
|
42
|
-
@type Array
|
43
|
-
@default '_SC.DateTime.monthNames'.loc().w()
|
44
|
-
*/
|
45
|
-
monthNames: null,
|
46
|
-
|
47
|
-
/**
|
48
|
-
The localized abbreviated month names. Add the key
|
49
|
-
`_SC.DateTime.abbreviatedMonthNames` and its value to your `strings.js`
|
50
|
-
file to add support for another language than English.
|
51
|
-
|
52
|
-
Default is evaluated on the `document.ready` event.
|
53
|
-
|
54
|
-
@type Array
|
55
|
-
@default '_SC.DateTime.abbreviatedMonthNames'.loc().w()
|
56
|
-
*/
|
57
|
-
abbreviatedMonthNames: null,
|
58
|
-
|
59
11
|
/**
|
60
12
|
@private
|
61
13
|
|
@@ -65,21 +17,10 @@ SC.DateTime.mixin(
|
|
65
17
|
we need to wait for the ready event to actually evaluate the localizations.
|
66
18
|
*/
|
67
19
|
_setup: function() {
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
if (!SC.DateTime.abbreviatedDayNames) {
|
73
|
-
SC.DateTime.abbreviatedDayNames = SC.String.w(SC.String.loc('_SC.DateTime.abbreviatedDayNames'));
|
74
|
-
}
|
75
|
-
|
76
|
-
if (!SC.DateTime.monthNames) {
|
77
|
-
SC.DateTime.monthNames = SC.String.w(SC.String.loc('_SC.DateTime.monthNames'));
|
78
|
-
}
|
79
|
-
|
80
|
-
if (!SC.DateTime.abbreviatedMonthNames) {
|
81
|
-
SC.DateTime.abbreviatedMonthNames = SC.String.w(SC.String.loc('_SC.DateTime.abbreviatedMonthNames'));
|
82
|
-
}
|
20
|
+
SC.DateTime.dayNames = SC.String.w(SC.String.loc('_SC.DateTime.dayNames'));
|
21
|
+
SC.DateTime.abbreviatedDayNames = SC.String.w(SC.String.loc('_SC.DateTime.abbreviatedDayNames'));
|
22
|
+
SC.DateTime.monthNames = SC.String.w(SC.String.loc('_SC.DateTime.monthNames'));
|
23
|
+
SC.DateTime.abbreviatedMonthNames = SC.String.w(SC.String.loc('_SC.DateTime.abbreviatedMonthNames'));
|
83
24
|
}
|
84
25
|
|
85
26
|
});
|
@@ -15,7 +15,7 @@ SC.BORDER_NONE = null ;
|
|
15
15
|
|
16
16
|
/**
|
17
17
|
@namespace
|
18
|
-
@deprecated
|
18
|
+
@deprecated Border functionality is now included in SC.View.
|
19
19
|
|
20
20
|
The `SC.Border` mixin has be deprecated in favour of applying border properties
|
21
21
|
to an `SC.View`'s layout object. See {@link SC.View#layout}.
|
@@ -386,17 +386,15 @@ SC.AlertPane = SC.PanelPane.extend(
|
|
386
386
|
if (del && del.alertPaneDidDismiss) {
|
387
387
|
del.alertPaneDidDismiss(this, sender.get('actionKey'));
|
388
388
|
}
|
389
|
-
|
390
|
-
|
389
|
+
|
390
|
+
if (action = (sender && sender.get('customAction'))) {
|
391
|
+
if (SC.typeOf(action) === SC.T_FUNCTION) {
|
391
392
|
action.call(action);
|
392
|
-
}
|
393
|
-
else if(target = sender.get('target')) {
|
394
|
-
target.tryToPerform(action);
|
395
|
-
}
|
396
|
-
else {
|
393
|
+
} else {
|
397
394
|
rootResponder = this.getPath('pane.rootResponder');
|
398
395
|
if(rootResponder) {
|
399
|
-
|
396
|
+
target = sender.get('target');
|
397
|
+
rootResponder.sendAction(action, target || del, this, this, null, this);
|
400
398
|
}
|
401
399
|
}
|
402
400
|
}
|
@@ -446,6 +444,7 @@ SC.AlertPane.mixin(
|
|
446
444
|
if(buttons) {
|
447
445
|
buttons.forEach(function(button) {
|
448
446
|
idx++;
|
447
|
+
if(!button) return;
|
449
448
|
buttonView = pane.get('button%@'.fmt(idx));
|
450
449
|
|
451
450
|
title = button.title;
|
@@ -604,11 +604,28 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
604
604
|
This computed property parses `displayItems` and constructs an
|
605
605
|
`SC.MenuItemView` (or whatever class you have set as the `exampleView`) for every item.
|
606
606
|
|
607
|
+
This calls createMenuItemViews. If you want to override this property, override
|
608
|
+
that method.
|
609
|
+
|
610
|
+
This calls createMenuItemViews. If you want to override this property, override
|
611
|
+
that method.
|
612
|
+
|
607
613
|
@property
|
608
614
|
@type Array
|
609
615
|
@readOnly
|
610
616
|
*/
|
611
617
|
menuItemViews: function() {
|
618
|
+
return this.createMenuItemViews();
|
619
|
+
}.property('displayItems').cacheable(),
|
620
|
+
|
621
|
+
/**
|
622
|
+
Processes the displayItems and creates menu item views for each item.
|
623
|
+
|
624
|
+
Override this method to change how menuItemViews is calculated.
|
625
|
+
|
626
|
+
@return Array
|
627
|
+
*/
|
628
|
+
createMenuItemViews: function() {
|
612
629
|
var views = [], items = this.get('displayItems'),
|
613
630
|
exampleView = this.get('exampleView'), item, view,
|
614
631
|
height, heightKey, separatorKey, defaultHeight, separatorHeight,
|
@@ -663,7 +680,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
663
680
|
|
664
681
|
this.set('menuHeight', menuHeight+menuHeightPadding);
|
665
682
|
return views;
|
666
|
-
}
|
683
|
+
},
|
667
684
|
|
668
685
|
/**
|
669
686
|
Returns the menu item view for the content object at the specified index.
|
@@ -164,6 +164,15 @@ SC.PanelPane = SC.Pane.extend(
|
|
164
164
|
}
|
165
165
|
return ret ;
|
166
166
|
},
|
167
|
+
|
168
|
+
destroy: function() {
|
169
|
+
var modal = this.get('modalPane');
|
170
|
+
if (modal && !modal.isClass) {
|
171
|
+
modal.destroy();
|
172
|
+
}
|
173
|
+
|
174
|
+
sc_super();
|
175
|
+
},
|
167
176
|
|
168
177
|
/** @private - if isModal state changes, update pane state if needed. */
|
169
178
|
_isModalDidChange: function() {
|
@@ -10,9 +10,9 @@ sc_require('system/drag') ;
|
|
10
10
|
/**
|
11
11
|
@namespace
|
12
12
|
|
13
|
-
This
|
14
|
-
|
15
|
-
|
13
|
+
This procol implements a dynamic data source for a drag operation. You can
|
14
|
+
return a set of allowed data types and then the method will be used to
|
15
|
+
actually get data in that format when requested.
|
16
16
|
*/
|
17
17
|
SC.DragDataSource = {
|
18
18
|
|
@@ -8,10 +8,10 @@
|
|
8
8
|
sc_require('system/drag');
|
9
9
|
|
10
10
|
/**
|
11
|
-
@
|
11
|
+
@namespace
|
12
12
|
|
13
|
-
|
14
|
-
should
|
13
|
+
Implement the DropTarget protocol in your view to be able to accept drop events. You
|
14
|
+
should define the methods below as needed to handle accepting of events.
|
15
15
|
|
16
16
|
See the method descriptions for more information on what you need to implement.
|
17
17
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
// collections don't need their own rendering; however, in future, constants
|
10
10
|
// like the row height will likely be specified on the render delegate.
|
11
11
|
SC.BaseTheme.collectionRenderDelegate = SC.RenderDelegate.create({
|
12
|
-
|
12
|
+
className: 'collection',
|
13
13
|
|
14
14
|
render: function(dataSource, context) {
|
15
15
|
context.setClass('focus', dataSource.get('isFirstResponder'));
|
@@ -16,7 +16,8 @@
|
|
16
16
|
SC.BaseTheme.MASTER_DETAIL_DIVIDER_WIDTH = 1;
|
17
17
|
|
18
18
|
SC.BaseTheme.masterDetailRenderDelegate = SC.RenderDelegate.create({
|
19
|
-
|
19
|
+
className: 'master-detail',
|
20
|
+
dividerWidth: 1,
|
20
21
|
|
21
22
|
render: function(dataSource, context) {
|
22
23
|
context.setClass('round-toolbars', SC.platform.touch);
|
@@ -26,4 +27,4 @@ SC.BaseTheme.masterDetailRenderDelegate = SC.RenderDelegate.create({
|
|
26
27
|
jquery.setClass('round-toolbars', SC.platform.touch);
|
27
28
|
}
|
28
29
|
|
29
|
-
});
|
30
|
+
});
|
@@ -9,7 +9,7 @@ sc_require('render_delegates/picker');
|
|
9
9
|
|
10
10
|
// This is the same as a pickerRenderDelegate, but is named 'menu' instead.
|
11
11
|
SC.BaseTheme.menuRenderDelegate = SC.BaseTheme.pickerRenderDelegate.create({
|
12
|
-
|
12
|
+
className: 'menu',
|
13
13
|
|
14
14
|
render: function(orig, dataSource, context) {
|
15
15
|
this.addSizeClassName(dataSource, context);
|
@@ -21,11 +21,21 @@ SC.BaseTheme.menuRenderDelegate = SC.BaseTheme.pickerRenderDelegate.create({
|
|
21
21
|
orig(dataSource, jquery);
|
22
22
|
}.enhance(),
|
23
23
|
|
24
|
+
// height for items in this menu size
|
24
25
|
itemHeight: 20,
|
26
|
+
|
27
|
+
// height of separator items
|
25
28
|
itemSeparatorHeight: 9,
|
29
|
+
|
30
|
+
// amount to add to the calculated menu height
|
26
31
|
menuHeightPadding: 6,
|
27
|
-
submenuOffsetX: 2,
|
28
32
|
|
33
|
+
// amount to add to any calculated menu width to determine the actual width
|
34
|
+
menuWidthPadding: 50,
|
35
|
+
|
36
|
+
minimumMenuWidth: 50,
|
37
|
+
|
38
|
+
submenuOffsetX: 2,
|
29
39
|
verticalOffset: 23,
|
30
40
|
|
31
41
|
'sc-tiny-size': {
|
@@ -8,7 +8,7 @@
|
|
8
8
|
sc_require('render_delegates/panel');
|
9
9
|
|
10
10
|
SC.BaseTheme.pickerRenderDelegate = SC.RenderDelegate.create({
|
11
|
-
|
11
|
+
className: 'picker',
|
12
12
|
|
13
13
|
render: function(dataSource, context) {
|
14
14
|
var panelRenderDelegate = dataSource.get('theme').panelRenderDelegate;
|
@@ -27,7 +27,7 @@
|
|
27
27
|
button, there is a method to update a specific index.
|
28
28
|
*/
|
29
29
|
SC.BaseTheme.radioGroupRenderDelegate = SC.RenderDelegate.create({
|
30
|
-
|
30
|
+
className: 'radio-group',
|
31
31
|
|
32
32
|
render: function(dataSource, context) {
|
33
33
|
this.addSizeClassName(dataSource, context);
|
@@ -47,7 +47,7 @@ SC.BaseTheme.radioGroupRenderDelegate = SC.RenderDelegate.create({
|
|
47
47
|
.addClass('radio-' + idx)
|
48
48
|
.attr('index', idx)
|
49
49
|
.addClass(theme.classNames)
|
50
|
-
.addClass(theme.radioRenderDelegate.
|
50
|
+
.addClass(theme.radioRenderDelegate.className)
|
51
51
|
|
52
52
|
// so we can identify it in event handling
|
53
53
|
.addClass('sc-radio-button');
|
@@ -9,7 +9,7 @@
|
|
9
9
|
Renders and updates the HTML representation of SC.SegmentedView.
|
10
10
|
*/
|
11
11
|
SC.BaseTheme.segmentedRenderDelegate = SC.RenderDelegate.create({
|
12
|
-
|
12
|
+
className: 'segmented',
|
13
13
|
|
14
14
|
/*
|
15
15
|
We render everything external to the segments and let each segment use it's own render
|
@@ -6,7 +6,7 @@
|
|
6
6
|
// ==========================================================================
|
7
7
|
|
8
8
|
SC.BaseTheme.toolbarRenderDelegate = SC.RenderDelegate.create({
|
9
|
-
|
9
|
+
className: 'toolbar',
|
10
10
|
|
11
11
|
render: function(dataSource, context) {
|
12
12
|
// toolbar has nothing in it
|
@@ -6,7 +6,7 @@
|
|
6
6
|
// ==========================================================================
|
7
7
|
|
8
8
|
SC.BaseTheme.wellRenderDelegate = SC.RenderDelegate.create({
|
9
|
-
|
9
|
+
className: 'well',
|
10
10
|
render: function(dataSource, context) {
|
11
11
|
this.includeSlices(dataSource, context, SC.NINE_SLICE);
|
12
12
|
},
|
@@ -6,7 +6,7 @@
|
|
6
6
|
// ==========================================================================
|
7
7
|
|
8
8
|
SC.BaseTheme.workspaceRenderDelegate = SC.RenderDelegate.create({
|
9
|
-
|
9
|
+
className: 'workspace',
|
10
10
|
|
11
11
|
render: function() {
|
12
12
|
// No DOM to generate -- uses CSS3 to style.
|