sproutcore 1.4.5 → 1.5.0.pre.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +35 -0
- data/VERSION.yml +2 -2
- data/lib/Buildfile +13 -4
- data/lib/buildtasks/build.rake +20 -17
- data/lib/buildtasks/manifest.rake +143 -78
- data/lib/buildtasks/target.rake +1 -0
- data/lib/doc_templates/sproutcore/index.tmpl +18 -4
- data/lib/doc_templates/sproutcore/publish.js +1 -1
- data/lib/frameworks/sproutcore/Buildfile +24 -13
- data/lib/frameworks/sproutcore/{CHANGELOG-1.4.md → CHANGELOG.md} +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/file.js +8 -48
- data/lib/frameworks/sproutcore/apps/greenhouse/core.js +3 -5
- data/lib/frameworks/sproutcore/apps/greenhouse/data_source.js +1 -1
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/app_page.js +26 -4
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/strings.js +7 -1
- data/lib/frameworks/sproutcore/apps/greenhouse/main.js +1 -1
- data/lib/frameworks/sproutcore/apps/greenhouse/models/design.js +6 -2
- data/lib/frameworks/sproutcore/apps/greenhouse/models/dir.js +8 -7
- data/lib/frameworks/sproutcore/apps/greenhouse/models/file.js +2 -2
- data/lib/frameworks/sproutcore/apps/greenhouse/states/inspector.js +133 -125
- data/lib/frameworks/sproutcore/apps/greenhouse/states/library.js +121 -112
- data/lib/frameworks/sproutcore/apps/greenhouse/states/main.js +233 -191
- data/lib/frameworks/sproutcore/apps/greenhouse/states/modals.js +265 -258
- data/lib/frameworks/sproutcore/apps/greenhouse/states/ready.js +153 -141
- data/lib/frameworks/sproutcore/apps/test_controls/Buildfile +0 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/buttons.js +21 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/categories.js +108 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/category.js +36 -0
- data/lib/frameworks/sproutcore/apps/test_controls/core.js +29 -0
- data/lib/frameworks/sproutcore/apps/test_controls/main.js +14 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/buttons_page.js +142 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js +45 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/flow_layout_page.js +84 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js +40 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.css +60 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.js +144 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/progress_page.js +42 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/radio_page.js +48 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/scroll_page.js +76 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/segmented_page.js +98 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/select_page.js +60 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/sliders_page.js +53 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/strings.js +50 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js +44 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/text_field_page.js +41 -0
- data/lib/frameworks/sproutcore/apps/test_controls/theme.js +34 -0
- data/lib/frameworks/sproutcore/apps/welcome/controllers/targets.js +7 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +24 -6
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +36 -46
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/controllers/array.js +175 -195
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/controllers/controller.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/controllers/object.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/core.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/ext/object.js +23 -23
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/ext/run_loop.js +47 -47
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/mixins/delegate_support.js +36 -36
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/mixins/responder_context.js +55 -55
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/mixins/selection_support.js +45 -45
- data/lib/frameworks/sproutcore/frameworks/amber/mixins/string.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/panes/main.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/panes/pane.js +123 -9
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/protocols/observable_protocol.js +11 -11
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/protocols/sparse_array_delegate.js +40 -40
- data/lib/frameworks/sproutcore/frameworks/{foundation/english.lproj → amber/resources}/core.css +0 -103
- data/lib/frameworks/sproutcore/frameworks/{foundation/english.lproj → amber/resources}/view.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/application.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/browser.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/builder.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/system/core_query.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/cursor.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/device.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/event.js +34 -14
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/json.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/locale.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/page.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/platform.js +30 -10
- data/lib/frameworks/sproutcore/frameworks/amber/system/ready.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/render_context.js +330 -255
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/responder.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/root_responder.js +152 -60
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/system/selection_set.js +140 -145
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/system/sparse_array.js +101 -87
- data/lib/frameworks/sproutcore/frameworks/amber/system/theme.js +316 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/timer.js +149 -147
- data/lib/frameworks/sproutcore/frameworks/amber/system/utils.js +174 -0
- data/lib/frameworks/sproutcore/frameworks/amber/system/utils/rect.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/array/array_case.js +41 -41
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/array/enum_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/array/null_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/array/selection_support.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/array/single_case.js +9 -9
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/object/empty_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/object/multiple_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/object/single_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/object/single_enumerable_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/mixins/responder_context.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/mixins/string.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/builder.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/core_query/within.js +7 -8
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/json.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/locale.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/begin.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/element.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/end.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/get.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/helpers_attr.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/helpers_basic.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/helpers_className.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/helpers_style.js +11 -3
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/init.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/join.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/push_text.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/tag.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/update.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/root_responder/makeKeyPane.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/root_responder/makeMainPane.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/root_responder/makeMenuPane.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/root_responder/root_responder.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/root_responder/targetForAction.js +46 -9
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/selection_set/add.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/selection_set/copy.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/selection_set/indexSetForSource.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/selection_set/isEqual.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/selection_set/remove.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/sparse_array.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/system/theme.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/timer/invalidate.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/timer/invokeLater.js +7 -5
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/timer/isPaused.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/timer/performAction.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/timer/schedule.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/utils/normalizeURL.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/utils/rect.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/main_pane.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/pane/append_remove.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/pane/firstResponder.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/pane/keyPane.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/pane/layout.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/pane/sendEvent.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/pane/sendTouchEvent.js +267 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/animation.js +320 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/build.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/build_children.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/clippingFrame.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/convertFrames.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/convertLayouts.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/createChildViews.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/createLayer.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/destroyLayer.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/didAppendToDocument.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/findLayerInParentLayer.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/init.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/insertBefore.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/isVisible.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/isVisibleInWindow.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/layer.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/layoutChildViews.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/layoutDidChange.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/layoutStyle.js +135 -64
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/parentViewDidChange.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/prepareContext.js +16 -8
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/removeChild.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/render.js +37 -5
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/render_delegate_support.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/replaceChild.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/theme.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/updateLayer.js +12 -10
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/updateLayerLocation.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/view.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/viewDidResize.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/views/base.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/amber/views/layout_style.js +478 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/views/view.js +1719 -1029
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +32 -18
- data/lib/frameworks/sproutcore/frameworks/animation/tests/core.js +10 -5
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/bench.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +24 -17
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +1 -13
- data/lib/frameworks/sproutcore/frameworks/bootstrap/tests/system/browser.js +72 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +7 -3
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +66 -4
- data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +4 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +58 -10
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +5 -14
- data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +4 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +27 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +5 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +30 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +130 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +20 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +9 -27
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +32 -26
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +57 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/button.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/collection.js +24 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/disclosure.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/helpers/slicing.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/image_button.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/menu.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/panel.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/picker.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +175 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +109 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segment.js +70 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segmented.js +58 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/source_list.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/toolbar.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/well.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/workspace.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +79 -53
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +7 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/methods.js +45 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +33 -13
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +11 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +128 -20
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +10 -10
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +35 -15
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +153 -208
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +18 -48
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +26 -25
- data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +3 -20
- data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/image_button.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +3 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +388 -309
- data/lib/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +257 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +8 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation.js +237 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation_bar.js +181 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +14 -76
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +59 -164
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +80 -47
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segment.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +320 -289
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +212 -76
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +33 -36
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +347 -248
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +41 -9
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +2 -21
- data/lib/frameworks/sproutcore/frameworks/desktop/views/workspace.js +251 -0
- data/lib/frameworks/sproutcore/frameworks/documentation/core.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/forms/english.lproj/default_styles.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/forms/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/mixins/edit_mode.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/forms/mixins/emptiness.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/forms/renderer_delegates/form.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/forms/renderer_delegates/form_row.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_checkbox_field.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_field.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_label.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_radio_field.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_row.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_text_field.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/views/form.js +280 -0
- data/lib/frameworks/sproutcore/frameworks/forms/views/form_row.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +5 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +0 -150
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/benchmark.css +146 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +2 -14
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/favicon.ico +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/strings.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +4 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/pinch.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/swipe.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/tap.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/license.js +24 -26
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_mixin.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +244 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +68 -23
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +8 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +626 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/gestureable.js +214 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editable.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +139 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_text_field.js +25 -33
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/string.js +57 -209
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +7 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/container.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/image.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/label.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +360 -156
- data/lib/frameworks/sproutcore/frameworks/{runtime → foundation}/system/cookie.js +35 -35
- data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +19 -2012
- data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +3 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/gesture.js +363 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/{image_cache.js → image_queue.js} +19 -22
- data/lib/frameworks/sproutcore/frameworks/foundation/system/module.js +576 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/request.js +19 -22
- data/lib/frameworks/sproutcore/frameworks/foundation/system/response.js +73 -61
- data/lib/frameworks/sproutcore/frameworks/foundation/system/routes.js +122 -23
- data/lib/frameworks/sproutcore/frameworks/foundation/system/staticqueue.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +18 -15
- data/lib/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +82 -90
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/colors.js +80 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/misc.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/range.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/string_measurement.js +247 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/string.js +2 -57
- data/lib/frameworks/sproutcore/frameworks/{runtime → foundation}/tests/system/cookie.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +13 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/request.js +99 -49
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/routes.js +24 -20
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +9 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +31 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +454 -44
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +10 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/{view → text_field}/nextValidKeyView.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/number.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +9 -8
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +1 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +381 -105
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +44 -171
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +69 -16
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffer.js +376 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffered.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-sc.js +7 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +7179 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +4 -2
- data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +1 -3
- data/lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js +1 -2
- data/lib/frameworks/sproutcore/frameworks/mini/license.js +29 -28
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +366 -333
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +73 -73
- data/lib/frameworks/sproutcore/frameworks/runtime/license.js +29 -28
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +160 -150
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +9 -9
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +15 -15
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +228 -220
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +27 -27
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +355 -305
- data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +32 -32
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +53 -51
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +49 -106
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +252 -252
- data/lib/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +22 -22
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +31 -31
- data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +234 -234
- data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +167 -157
- data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +84 -85
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +104 -91
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +102 -98
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/IsEqual.js +19 -49
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/guidFor.js +53 -126
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/itemType.js +62 -33
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +41 -5
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +133 -98
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/observer_set.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +11 -11
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/set.js +71 -45
- data/lib/frameworks/sproutcore/frameworks/statechart/core.js +3 -9
- data/lib/frameworks/sproutcore/frameworks/statechart/debug/monitor.js +136 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +636 -99
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +951 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/async.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/advanced_event_handling.js +310 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/namespace/access_substates.js +252 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/is_current_state.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_history_state.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_advanced.js +234 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_async.js +123 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_basic.js +139 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_intermediate.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/send_event.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/default_responder.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_history_state.js +200 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state.js +256 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state_async.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/send_event.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/state_plugin.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/transient.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_cell.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +2 -1
- data/lib/frameworks/sproutcore/lib/index.rhtml +24 -1
- data/lib/frameworks/sproutcore/license.js +31 -30
- data/lib/frameworks/sproutcore/themes/ace/designs/dark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/dark.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/light.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/light.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/popup/active_select.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/popup/normal_select.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/collection/source-list/selection.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/checkmark.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/checkmark_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/down.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/menu.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/menu_item.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/up.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/panel/panel.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_empty.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_notoolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers_notoolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_content.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_indeterminate_content.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_unselected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/horizontal/thumb.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/vertical/thumb.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/22px/track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/toolbar/toolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_handle.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_handle.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_off.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_off.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_on.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_on.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/body.css +13 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/button.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/button.css +84 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/button.css +66 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/button.css +34 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/button.css +28 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/button.js +69 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/button.css +84 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/button.css +66 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.css +17 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.js +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/active_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/normal_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/select.css +20 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox.css +40 -0
- 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.css +40 -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/checkbox/ace/checkbox.css +7 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list.css +4 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +17 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source-list.js +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source_list_view.css +36 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure.css +24 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/loading.css +50 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/master-detail/master-detail.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/down.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.css +76 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/up.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/pane/pane.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.css +13 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.js +20 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js +32 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.css +111 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.js +12 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_empty.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js +28 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_content.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/progress.js +78 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio.css +63 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_unselected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal.css +78 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal_touch.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical.css +80 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical_touch.css +92 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented.css +95 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/segmented.css +79 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/slider.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/slider.js +48 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/split/split.css +5 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/tab/tab.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.css +8 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/well/well.css +8 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/well/well.js +19 -0
- data/lib/frameworks/sproutcore/themes/ace/theme.js +14 -0
- data/lib/frameworks/sproutcore/themes/empty_theme/theme.js +16 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/segmented.css +16 -21
- data/lib/sproutcore.rb +9 -2
- data/lib/sproutcore/builders.rb +2 -1
- data/lib/sproutcore/builders/base.rb +7 -2
- data/lib/sproutcore/builders/combine.rb +49 -1
- data/lib/sproutcore/builders/html.rb +2 -0
- data/lib/sproutcore/builders/javascript.rb +1 -1
- data/lib/sproutcore/builders/minify.rb +12 -12
- data/lib/sproutcore/builders/module.rb +72 -0
- data/lib/sproutcore/builders/string_wrapper.rb +43 -0
- data/lib/sproutcore/helpers/entry_sorter.rb +5 -9
- data/lib/sproutcore/helpers/static_helper.rb +13 -9
- data/lib/sproutcore/models/manifest_entry.rb +2 -2
- data/lib/sproutcore/models/target.rb +25 -11
- data/lib/sproutcore/rack/dev.rb +3 -3
- data/lib/sproutcore/tools.rb +51 -2
- data/lib/sproutcore/tools/build.rb +35 -7
- data/lib/sproutcore/version.rb +1 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/bundle_spec.rb +5 -5
- data/spec/fixtures/builder_tests/Buildfile +2 -2
- data/spec/lib/builders/bundle_spec.rb +8 -8
- data/spec/lib/builders/strings_spec.rb +1 -0
- data/sproutcore.gemspec +9 -2
- data/vendor/chance/.gitignore +5 -0
- data/vendor/chance/Gemfile +4 -0
- data/vendor/chance/Rakefile +2 -0
- data/vendor/chance/bin/chance +72 -0
- data/vendor/chance/chance.gemspec +28 -0
- data/vendor/chance/lib/chance.rb +139 -0
- data/vendor/chance/lib/chance/imager.rb +13 -0
- data/vendor/chance/lib/chance/imagers/data_url.rb +34 -0
- data/vendor/chance/lib/chance/importer.rb +64 -0
- data/vendor/chance/lib/chance/instance.rb +225 -0
- data/vendor/chance/lib/chance/parser.rb +831 -0
- data/vendor/chance/lib/chance/perf.rb +17 -0
- data/vendor/chance/lib/chance/sass_extensions.rb +24 -0
- data/vendor/chance/lib/chance/slicing.rb +104 -0
- data/vendor/chance/lib/chance/version.rb +3 -0
- data/vendor/chance/test/case/abc.png +0 -0
- data/vendor/chance/test/case/more/abc.png +0 -0
- data/vendor/chance/test/case/more/another.css +4 -0
- data/vendor/chance/test/case/test1.css +22 -0
- data/vendor/chance/test/case/test2.css +6 -0
- data/vendor/sproutcore/SCCompiler.jar +0 -0
- data/vendor/sproutcore/lib/args4j-2.0.12.jar +0 -0
- data/vendor/sproutcore/lib/htmlcompressor-0.9.3.jar +0 -0
- data/{lib/sproutcore/vendor/yui-compressor → vendor/sproutcore/lib}/yuicompressor-2.4.2.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/build.xml +74 -0
- data/vendor/sproutcore/src/SCCompiler/lib/args4j-2.0.12.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/lib/htmlcompressor-0.9.3.jar +0 -0
- data/{lib/sproutcore/vendor/yui-compressor/SCyuicompressor-2.4.2.jar → vendor/sproutcore/src/SCCompiler/lib/yuicompressor-2.4.2.jar} +0 -0
- data/vendor/sproutcore/src/SCCompiler/lib/yuicompressor-2.4.4.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/manifest.mf +3 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/build-impl.xml +894 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/genfiles.properties +8 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/config.properties +0 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.properties +10 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.xml +4 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/project.properties +90 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/project.xml +15 -0
- data/vendor/sproutcore/src/SCCompiler/src/com/sproutcore/Main.java +348 -0
- metadata +686 -177
- data/lib/frameworks/sproutcore/CHANGELOG +0 -93
- data/lib/frameworks/sproutcore/frameworks/datejs/core.js +0 -865
- data/lib/frameworks/sproutcore/frameworks/datejs/english.lproj/en-US.js +0 -186
- data/lib/frameworks/sproutcore/frameworks/datejs/extras.js +0 -332
- data/lib/frameworks/sproutcore/frameworks/datejs/license.js +0 -25
- data/lib/frameworks/sproutcore/frameworks/datejs/parser.js +0 -1116
- data/lib/frameworks/sproutcore/frameworks/datejs/spanish.lproj/es-CO.js +0 -186
- data/lib/frameworks/sproutcore/frameworks/datejs/sugarpak.js +0 -475
- data/lib/frameworks/sproutcore/frameworks/datejs/time.js +0 -269
- data/lib/frameworks/sproutcore/frameworks/datejs/validators/datejs.js +0 -34
- data/lib/frameworks/sproutcore/frameworks/foundation/protocols/inline_editor_delegate.js +0 -84
- data/lib/frameworks/sproutcore/frameworks/foundation/system/bundle.js +0 -337
- data/lib/frameworks/sproutcore/frameworks/foundation/system/ready.js +0 -197
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils.js +0 -710
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_core.js +0 -1334
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_dimensions.js +0 -387
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_selector.js +0 -405
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js +0 -25
- data/lib/frameworks/sproutcore/frameworks/statechart/mixins/statechart.js +0 -336
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/basic.js +0 -90
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/history.js +0 -71
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/nested.js +0 -59
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/transient.js +0 -148
- data/lib/sproutcore/builders/bundle.rb +0 -63
@@ -0,0 +1,53 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Project: SproutCore - JavaScript Application Framework
|
3
|
+
// Copyright: ©2006-2011 Strobe Inc. and contributors.
|
4
|
+
// Portions ©2008-2010 Apple Inc. All rights reserved.
|
5
|
+
// License: Licensed under MIT license (see license.js)
|
6
|
+
// ==========================================================================
|
7
|
+
|
8
|
+
/*globals TestControls Forms*/
|
9
|
+
TestControls.slidersPage = SC.View.design({
|
10
|
+
childViews: "form".w(),
|
11
|
+
form: SC.FormView.design({
|
12
|
+
classNames: ["sample_controls"],
|
13
|
+
layout: { left: 20, top: 40, right: 20, bottom: 40 },
|
14
|
+
childViews: "header small normal jumbo disabled".w(),
|
15
|
+
// Plain Views
|
16
|
+
header: SC.LabelView.design({
|
17
|
+
layout: { width: 250, height: 18 },
|
18
|
+
value: "Sliders",
|
19
|
+
classNames: "header".w()
|
20
|
+
}),
|
21
|
+
|
22
|
+
small: SC.FormView.row(SC.SliderView.design({
|
23
|
+
layout: { width: 150, height: 14 },
|
24
|
+
controlSize: SC.SMALL_CONTROL_SIZE,
|
25
|
+
minimum: 0,
|
26
|
+
maximum: 10,
|
27
|
+
value: 2
|
28
|
+
})),
|
29
|
+
|
30
|
+
normal: SC.FormView.row(SC.SliderView.design({
|
31
|
+
layout: { width: 150, height: 16 },
|
32
|
+
minimum: 0,
|
33
|
+
maximum: 10,
|
34
|
+
value: 2
|
35
|
+
})),
|
36
|
+
|
37
|
+
jumbo: SC.FormView.row(SC.SliderView.design({
|
38
|
+
controlSize: SC.JUMBO_CONTROL_SIZE,
|
39
|
+
layout: { width: 150, height: 22 },
|
40
|
+
minimum: 0,
|
41
|
+
maximum: 10,
|
42
|
+
value: 2
|
43
|
+
})),
|
44
|
+
|
45
|
+
disabled: SC.FormView.row(SC.SliderView.design({
|
46
|
+
layout: { width: 150, height: 16},
|
47
|
+
isEnabled: NO,
|
48
|
+
minimum: 0,
|
49
|
+
maximum: 10,
|
50
|
+
value: 2
|
51
|
+
}))
|
52
|
+
})
|
53
|
+
});
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// SampleControls English Strings
|
3
|
+
// ==========================================================================
|
4
|
+
|
5
|
+
// Place strings you want to localize here. In your app, use the key and
|
6
|
+
// localize it using "key string".loc(). HINT: For your key names, use the
|
7
|
+
// english string with an underscore in front. This way you can still see
|
8
|
+
// how your UI will look and you'll notice right away when something needs a
|
9
|
+
// localized string added to this file!
|
10
|
+
//
|
11
|
+
SC.stringsFor('en',{
|
12
|
+
|
13
|
+
"Loc.Title": "Localized Title!",
|
14
|
+
"Loc.Label": "Localized Label!",
|
15
|
+
|
16
|
+
// Global
|
17
|
+
"Class": "Class",
|
18
|
+
// TabView
|
19
|
+
"Welcome_tab": "Welcome",
|
20
|
+
"Collections_tab": "Collections",
|
21
|
+
"Collections2_tab": "Collections2",
|
22
|
+
"Buttons_tab": "Buttons",
|
23
|
+
"Panes_tab": "Panes",
|
24
|
+
"Forms_tab": "Forms",
|
25
|
+
"Icons_tab": "Icons",
|
26
|
+
|
27
|
+
// Text body.rhtml
|
28
|
+
"Title_body": "Sample Controls",
|
29
|
+
"Text_body": "SproutCore comes bundled with a wide array of controls that you can use in your own applications. Most of these controls can be created very easily using the built-in view helper functions. Consult the source code of this application for samples code to use in your own application.",
|
30
|
+
|
31
|
+
// Text collections.rhtml
|
32
|
+
|
33
|
+
// Text collections2.rhtml
|
34
|
+
|
35
|
+
// Text forms.rhtml
|
36
|
+
"Title_forms": "Forms",
|
37
|
+
"Text_forms": "SproutCore has built in support for form validation, and for buffering form input into a controller before it is committed to your backend model. The examples below show the built in validators and variety of controls that are supported.",
|
38
|
+
"FName_forms": "First Name",
|
39
|
+
"LName_forms": "Last Name",
|
40
|
+
"Email_forms": "Email",
|
41
|
+
"PNumber_forms": "Phone Number",
|
42
|
+
"CCard_forms": "Credit Card",
|
43
|
+
"Address_forms": "Address",
|
44
|
+
"Crazinnes_forms": "Crazinness",
|
45
|
+
|
46
|
+
// Text Buttons form.rhtml
|
47
|
+
"Submit_buttom_forms": "Submit",
|
48
|
+
"Cancel_buttom_forms": "Cancel",
|
49
|
+
"SChanges_buttom_forms": "Save Changes"
|
50
|
+
}) ;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Project: SproutCore - JavaScript Application Framework
|
3
|
+
// Copyright: ©2006-2011 Strobe Inc. and contributors.
|
4
|
+
// Portions ©2008-2010 Apple Inc. All rights reserved.
|
5
|
+
// License: Licensed under MIT license (see license.js)
|
6
|
+
// ==========================================================================
|
7
|
+
|
8
|
+
/*globals TestControls Forms*/
|
9
|
+
TestControls.tabPage = SC.View.design({
|
10
|
+
childViews: "form".w(),
|
11
|
+
form: SC.FormView.design({
|
12
|
+
layout: { left: 20, top: 40, right: 20, bottom: 40 },
|
13
|
+
childViews: "header top topToolbar bottom overflow".w(),
|
14
|
+
|
15
|
+
header: SC.LabelView.design({
|
16
|
+
layout: {width:300, height:24},
|
17
|
+
classNames: "header".w(),
|
18
|
+
value: "Tab Views"
|
19
|
+
}),
|
20
|
+
|
21
|
+
top: SC.FormView.row(SC.TabView.design({
|
22
|
+
layout: { width: 300, height: 100, centerY: 0 },
|
23
|
+
items: ["Item 1", "Item 2", "Item 3"],
|
24
|
+
tabLocation: SC.TOP_LOCATION
|
25
|
+
})),
|
26
|
+
|
27
|
+
topToolbar: SC.FormView.row(SC.TabView.design({
|
28
|
+
layout: { width: 300, height: 100, centerY: 0 },
|
29
|
+
items: ["Item 1", "Item 2", "Item 3"],
|
30
|
+
tabLocation: SC.TOP_TOOLBAR_LOCATION
|
31
|
+
})),
|
32
|
+
|
33
|
+
bottom: SC.FormView.row(SC.TabView.design({
|
34
|
+
layout: { width: 300, height: 100, centerY: 0 },
|
35
|
+
items: ["Item 1", "Item 2", "Item 3"],
|
36
|
+
tabLocation: SC.BOTTOM_LOCATION
|
37
|
+
})),
|
38
|
+
|
39
|
+
overflow: SC.FormView.row(SC.TabView.design({
|
40
|
+
layout: { width: 300, height: 100, centerY: 0 },
|
41
|
+
items: ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7"]
|
42
|
+
}))
|
43
|
+
})
|
44
|
+
});
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Project: SproutCore - JavaScript Application Framework
|
3
|
+
// Copyright: ©2006-2011 Strobe Inc. and contributors.
|
4
|
+
// Portions ©2008-2010 Apple Inc. All rights reserved.
|
5
|
+
// License: Licensed under MIT license (see license.js)
|
6
|
+
// ==========================================================================
|
7
|
+
|
8
|
+
/*globals TestControls Forms*/
|
9
|
+
TestControls.textFieldPage = SC.View.design({
|
10
|
+
childViews: "form".w(),
|
11
|
+
form: SC.ScrollView.design({
|
12
|
+
|
13
|
+
|
14
|
+
contentView: SC.FormView.design({
|
15
|
+
theme: "iphone-form",
|
16
|
+
|
17
|
+
classNames: ["sample_controls"],
|
18
|
+
layout: { left: 20, top: 40, right: 20, bottom: 40 },
|
19
|
+
childViews: "header normal disabled".w(),
|
20
|
+
|
21
|
+
header: SC.LabelView.design({
|
22
|
+
layout: { width: 200, height: 44 },
|
23
|
+
classNames: "header".w(),
|
24
|
+
value: "Text Fields"
|
25
|
+
}),
|
26
|
+
|
27
|
+
normal: SC.FormView.row(SC.TextFieldView.design({
|
28
|
+
layout: { left: 0, width: 150, height: 44, centerY: 0},
|
29
|
+
value: "Text",
|
30
|
+
isSpacer: YES
|
31
|
+
}), { classNames: ["first"] }),
|
32
|
+
|
33
|
+
disabled: SC.FormView.row(SC.TextFieldView.design({
|
34
|
+
layout: { left: 0, width: 150, height: 44, centerY: 0},
|
35
|
+
isEnabled: NO,
|
36
|
+
value: "Disabled",
|
37
|
+
isSpacer: YES
|
38
|
+
}))
|
39
|
+
})
|
40
|
+
})
|
41
|
+
});
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Project: SproutCore - JavaScript Application Framework
|
3
|
+
// Copyright: ©2006-2011 Strobe Inc. and contributors.
|
4
|
+
// Portions ©2008-2010 Apple Inc. All rights reserved.
|
5
|
+
// License: Licensed under MIT license (see license.js)
|
6
|
+
// ==========================================================================
|
7
|
+
|
8
|
+
/**
|
9
|
+
Styling becomes easier when your app has its own theme to target.
|
10
|
+
The theme's name will be included in every view's class names in DOM,
|
11
|
+
so you can apply styles without being exceedingly specific.
|
12
|
+
|
13
|
+
If working with Chance, the $theme variable (which has its initial
|
14
|
+
value set in your Buildfile) will allow you to target the theme
|
15
|
+
automatically:
|
16
|
+
|
17
|
+
Example:
|
18
|
+
|
19
|
+
$theme.button {
|
20
|
+
border: 1px solid black;
|
21
|
+
}
|
22
|
+
*/
|
23
|
+
TestControls.Theme = SC.AceTheme.create({
|
24
|
+
name: 'test-controls'
|
25
|
+
});
|
26
|
+
|
27
|
+
SC.Theme.addTheme(TestControls.Theme);
|
28
|
+
|
29
|
+
// this makes all panes use your app's theme by default
|
30
|
+
// QUESTION: should we make this be set by the Buildfile?
|
31
|
+
// :theme => 'test-controls'
|
32
|
+
// generates JS:
|
33
|
+
// SC.defaultTheme = 'test-controls'
|
34
|
+
SC.defaultTheme = 'test-controls';
|
@@ -39,6 +39,13 @@ Welcome.targetsController = SC.ArrayController.create(
|
|
39
39
|
});
|
40
40
|
}
|
41
41
|
},
|
42
|
+
|
43
|
+
launchEnabled: function() {
|
44
|
+
var canLoadApp = this.get('canLoadApp'),
|
45
|
+
selection = this.get('selection'),
|
46
|
+
selectedObject = selection.firstObject();
|
47
|
+
return canLoadApp && selectedObject && selectedObject.get('name') !== '/sproutcore';
|
48
|
+
}.property('canLoadApp', 'selection').cacheable(),
|
42
49
|
|
43
50
|
// used to disable all controls
|
44
51
|
canLoadApp: YES,
|
@@ -1,7 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
.sc-view.sc-main {
|
2
|
+
background: #262B32 static_url('images/main-bg.png') repeat;
|
3
|
+
}
|
4
|
+
|
5
|
+
.app-selector {
|
6
|
+
background-color: #f4f4f4;
|
7
|
+
-webkit-border-radius: 8px;
|
8
|
+
-moz-border-radius: 8px;
|
9
|
+
border: 1px solid #f4f4f4;
|
10
|
+
border-bottom-color: #fff;
|
11
|
+
-webkit-box-shadow: inset rgba(0,0,0,0.3) 0 3px 8px;
|
12
|
+
-moz-box-shadow: inset rgba(0,0,0,0.3) 0 3px 8px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.sc-list-view .sc-list-item-view {
|
16
|
+
border-bottom: 1px solid #ddd;
|
17
|
+
font-weight: bold;
|
18
|
+
}
|
19
|
+
|
20
|
+
.sc-list-view .sc-list-item-view:first-child {
|
21
|
+
-webkit-border-top-left-radius: 8px;
|
22
|
+
-webkit-border-top-right-radius: 8px;
|
23
|
+
-moz-border-radius-topleft: 8px;
|
24
|
+
-moz-border-radius-topright: 8px;
|
7
25
|
}
|
@@ -10,65 +10,55 @@ Welcome.mainPage = SC.Page.design({
|
|
10
10
|
// The main pane is made visible on screen as soon as your app is loaded.
|
11
11
|
// Add childViews to this pane for views to display immediately on page
|
12
12
|
// load.
|
13
|
-
mainPane: SC.
|
14
|
-
|
15
|
-
|
13
|
+
mainPane: SC.MainPane.design({
|
14
|
+
childViews: 'contentView'.w(),
|
15
|
+
|
16
16
|
contentView: SC.View.design({
|
17
|
-
|
17
|
+
layout: { width: 280, height: 340, centerX: 0, centerY: 0 },
|
18
|
+
childViews: 'heading appSelector launchApplication'.w(),
|
18
19
|
|
19
|
-
|
20
|
-
layout: { width:
|
20
|
+
heading: SC.View.design({
|
21
|
+
layout: { width: 271, centerX: 0, top: 0, height: 60 },
|
21
22
|
tagName: 'img',
|
22
23
|
render: function(context, firstTime) {
|
23
|
-
context.attr('src', sc_static('images/sproutcore
|
24
|
+
context.attr('src', sc_static('images/sproutcore'));
|
24
25
|
}
|
25
26
|
}),
|
26
27
|
|
27
|
-
|
28
|
-
layout: {
|
29
|
-
|
30
|
-
classNames:
|
31
|
-
valueBinding: 'Welcome.displayTitle'
|
32
|
-
}),
|
33
|
-
|
34
|
-
prompt: SC.LabelView.design({
|
35
|
-
layout: { left: 20, top: 60, right: 20, height: 20 },
|
36
|
-
escapeHTML: NO,
|
37
|
-
value: "Choose an application:"
|
38
|
-
}),
|
39
|
-
|
40
|
-
button: SC.ButtonView.design({
|
41
|
-
layout: { bottom: 18, height: 24, width: 140, centerX: 0 },
|
42
|
-
isEnabledBinding: "Welcome.targetsController.canLoadApp",
|
43
|
-
|
44
|
-
title: "Load Application",
|
45
|
-
theme: "capsule",
|
46
|
-
isDefault: YES,
|
47
|
-
|
48
|
-
target: "Welcome.targetsController",
|
49
|
-
action: "loadApplication"
|
28
|
+
appSelector: SC.View.design({
|
29
|
+
layout: {top:80, left:0, right:0, bottom:46},
|
30
|
+
childViews: 'scrollView'.w(),
|
31
|
+
classNames: 'app-selector',
|
50
32
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
layout: { left: 20, top: 80, right: 20, bottom: 63 },
|
55
|
-
hasHorizontalScroller: NO,
|
33
|
+
scrollView: SC.ScrollView.design({
|
34
|
+
layout: { left: 0, top: 0, right: 0, bottom: 0 },
|
35
|
+
hasHorizontalScroller: NO,
|
56
36
|
|
57
|
-
|
58
|
-
|
37
|
+
contentView: SC.ListView.design({
|
38
|
+
rowHeight: 40,
|
59
39
|
|
60
|
-
|
61
|
-
|
62
|
-
|
40
|
+
contentBinding: "Welcome.targetsController.appsOnly",
|
41
|
+
selectionBinding: "Welcome.targetsController.selection",
|
42
|
+
isEnabledBinding: "Welcome.targetsController.canLoadApp",
|
63
43
|
|
64
|
-
|
65
|
-
|
66
|
-
|
44
|
+
contentValueKey: "displayName",
|
45
|
+
contentIconKey: "targetIcon",
|
46
|
+
hasContentIcon: YES,
|
67
47
|
|
68
|
-
|
69
|
-
|
48
|
+
target: "Welcome.targetsController",
|
49
|
+
action: "loadApplication"
|
50
|
+
})
|
70
51
|
})
|
71
|
-
|
52
|
+
}),
|
53
|
+
|
54
|
+
launchApplication: SC.ButtonView.design({
|
55
|
+
layout: {bottom:0, height:30, width:160, centerX:0},
|
56
|
+
isEnabledBinding: "Welcome.targetsController.launchEnabled",
|
57
|
+
controlSize: SC.HUGE_CONTROL_SIZE,
|
58
|
+
title: "Launch Application",
|
59
|
+
isDefault: YES,
|
60
|
+
target: "Welcome.targetsController",
|
61
|
+
action: "loadApplication"
|
72
62
|
})
|
73
63
|
|
74
64
|
})
|
@@ -11,11 +11,11 @@ sc_require('mixins/selection_support');
|
|
11
11
|
@class
|
12
12
|
|
13
13
|
An ArrayController provides a way for you to publish an array of objects
|
14
|
-
for CollectionView or other controllers to work with. To work with an
|
15
|
-
ArrayController, set the content property to the array you want the
|
14
|
+
for CollectionView or other controllers to work with. To work with an
|
15
|
+
ArrayController, set the content property to the array you want the
|
16
16
|
controller to manage. Then work directly with the controller object as if
|
17
17
|
it were the array itself.
|
18
|
-
|
18
|
+
|
19
19
|
When you want to display an array of objects in a CollectionView, bind the
|
20
20
|
"arrangedObjects" of the array controller to the CollectionView's "content"
|
21
21
|
property. This will automatically display the array in the collection view.
|
@@ -31,20 +31,20 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
31
31
|
|
32
32
|
// ..........................................................
|
33
33
|
// PROPERTIES
|
34
|
-
//
|
35
|
-
|
34
|
+
//
|
35
|
+
|
36
36
|
/**
|
37
|
-
The content array managed by this controller.
|
38
|
-
|
39
|
-
You can set the content of the ArrayController to any object that
|
37
|
+
The content array managed by this controller.
|
38
|
+
|
39
|
+
You can set the content of the ArrayController to any object that
|
40
40
|
implements SC.Array or SC.Enumerable. If you set the content to an object
|
41
41
|
that implements SC.Enumerable only, you must also set the orderBy property
|
42
42
|
so that the ArrayController can order the enumerable for you.
|
43
|
-
|
43
|
+
|
44
44
|
If you set the content to a non-enumerable and non-array object, then the
|
45
45
|
ArrayController will wrap the item in an array in an attempt to normalize
|
46
46
|
the result.
|
47
|
-
|
47
|
+
|
48
48
|
@property {SC.Array}
|
49
49
|
*/
|
50
50
|
content: null,
|
@@ -52,14 +52,14 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
52
52
|
/**
|
53
53
|
Makes the array editable or not. If this is set to NO, then any attempts
|
54
54
|
at changing the array content itself will throw an exception.
|
55
|
-
|
55
|
+
|
56
56
|
@property {Boolean}
|
57
57
|
*/
|
58
58
|
isEditable: YES,
|
59
|
-
|
59
|
+
|
60
60
|
/**
|
61
61
|
Used to sort the array.
|
62
|
-
|
62
|
+
|
63
63
|
If you set this property to a key name, array of key names, or a function,
|
64
64
|
then then ArrayController will automatically reorder your content array
|
65
65
|
to match the sort order. (If you set a function, the function will be
|
@@ -69,79 +69,79 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
69
69
|
controller to an unordered enumerable such as SC.Set or SC.SelectionSet.
|
70
70
|
In this case the orderBy property is required in order for the controller
|
71
71
|
to property order the content for display.
|
72
|
-
|
73
|
-
If you set the content to an array, it is usually best to maintain the
|
74
|
-
array in the proper order that you want to display things rather than
|
72
|
+
|
73
|
+
If you set the content to an array, it is usually best to maintain the
|
74
|
+
array in the proper order that you want to display things rather than
|
75
75
|
using this method to order the array since it requires an extra processing
|
76
|
-
step. You can use this orderBy property, however, for displaying smaller
|
76
|
+
step. You can use this orderBy property, however, for displaying smaller
|
77
77
|
arrays of content.
|
78
|
-
|
78
|
+
|
79
79
|
Note that you can only to use addObject() to insert new objects into an
|
80
80
|
array that is ordered. You cannot manually reorder or insert new objects
|
81
|
-
into specific locations because the order is managed by this property
|
81
|
+
into specific locations because the order is managed by this property
|
82
82
|
instead.
|
83
|
-
|
83
|
+
|
84
84
|
If you pass a function, it should be suitable for use in compare().
|
85
|
-
|
85
|
+
|
86
86
|
@property {String|Array|Function}
|
87
87
|
*/
|
88
88
|
orderBy: null,
|
89
|
-
|
89
|
+
|
90
90
|
/**
|
91
|
-
Set to YES if you want the controller to wrap non-enumerable content
|
92
|
-
in an array and publish it. Otherwise, it will treat single content like
|
91
|
+
Set to YES if you want the controller to wrap non-enumerable content
|
92
|
+
in an array and publish it. Otherwise, it will treat single content like
|
93
93
|
null content.
|
94
|
-
|
94
|
+
|
95
95
|
@property {Boolean}
|
96
96
|
*/
|
97
97
|
allowsSingleContent: YES,
|
98
|
-
|
98
|
+
|
99
99
|
/**
|
100
100
|
Set to YES if you want objects removed from the array to also be
|
101
101
|
deleted. This is a convenient way to manage lists of items owned
|
102
102
|
by a parent record object.
|
103
|
-
|
103
|
+
|
104
104
|
Note that even if this is set to NO, calling destroyObject() instead of
|
105
|
-
removeObject() will still destroy the object in question as well as
|
105
|
+
removeObject() will still destroy the object in question as well as
|
106
106
|
removing it from the parent array.
|
107
|
-
|
107
|
+
|
108
108
|
@property {Boolean}
|
109
109
|
*/
|
110
110
|
destroyOnRemoval: NO,
|
111
111
|
|
112
112
|
/**
|
113
|
-
Returns an SC.Array object suitable for use in a CollectionView.
|
113
|
+
Returns an SC.Array object suitable for use in a CollectionView.
|
114
114
|
Depending on how you have your ArrayController configured, this property
|
115
|
-
may be one of several different values.
|
116
|
-
|
115
|
+
may be one of several different values.
|
116
|
+
|
117
117
|
@property {SC.Array}
|
118
118
|
*/
|
119
119
|
arrangedObjects: function() {
|
120
120
|
return this;
|
121
121
|
}.property().cacheable(),
|
122
|
-
|
122
|
+
|
123
123
|
/**
|
124
|
-
Computed property indicates whether or not the array controller can
|
124
|
+
Computed property indicates whether or not the array controller can
|
125
125
|
remove content. You can delete content only if the content is not single
|
126
126
|
content and isEditable is YES.
|
127
|
-
|
127
|
+
|
128
128
|
@property {Boolean}
|
129
129
|
*/
|
130
130
|
canRemoveContent: function() {
|
131
131
|
var content = this.get('content'), ret;
|
132
132
|
ret = !!content && this.get('isEditable') && this.get('hasContent');
|
133
133
|
if (ret) {
|
134
|
-
return !content.isEnumerable ||
|
134
|
+
return !content.isEnumerable ||
|
135
135
|
(SC.typeOf(content.removeObject) === SC.T_FUNCTION);
|
136
136
|
} else return NO ;
|
137
137
|
}.property('content', 'isEditable', 'hasContent'),
|
138
|
-
|
138
|
+
|
139
139
|
/**
|
140
140
|
Computed property indicates whether you can reorder content. You can
|
141
141
|
reorder content as long a the controller isEditable and the content is a
|
142
142
|
real SC.Array-like object. You cannot reorder content when orderBy is
|
143
143
|
non-null.
|
144
|
-
|
144
|
+
|
145
145
|
@property {Boolean}
|
146
146
|
*/
|
147
147
|
canReorderContent: function() {
|
@@ -149,44 +149,44 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
149
149
|
ret = !!content && this.get('isEditable') && !this.get('orderBy');
|
150
150
|
return ret && !!content.isSCArray;
|
151
151
|
}.property('content', 'isEditable', 'orderBy'),
|
152
|
-
|
152
|
+
|
153
153
|
/**
|
154
|
-
Computed property insides whether you can add content. You can add
|
155
|
-
content as long as the controller isEditable and the content is not a
|
154
|
+
Computed property insides whether you can add content. You can add
|
155
|
+
content as long as the controller isEditable and the content is not a
|
156
156
|
single object.
|
157
|
-
|
157
|
+
|
158
158
|
Note that the only way to simply add object to an ArrayController is to
|
159
|
-
use the addObject() or pushObject() methods. All other methods imply
|
159
|
+
use the addObject() or pushObject() methods. All other methods imply
|
160
160
|
reordering and will fail.
|
161
|
-
|
161
|
+
|
162
162
|
@property {Boolean}
|
163
163
|
*/
|
164
164
|
canAddContent: function() {
|
165
165
|
var content = this.get('content'), ret ;
|
166
166
|
ret = content && this.get('isEditable') && content.isEnumerable;
|
167
167
|
if (ret) {
|
168
|
-
return (SC.typeOf(content.addObject) === SC.T_FUNCTION) ||
|
169
|
-
(SC.typeOf(content.pushObject) === SC.T_FUNCTION);
|
168
|
+
return (SC.typeOf(content.addObject) === SC.T_FUNCTION) ||
|
169
|
+
(SC.typeOf(content.pushObject) === SC.T_FUNCTION);
|
170
170
|
} else return NO ;
|
171
171
|
}.property('content', 'isEditable'),
|
172
|
-
|
172
|
+
|
173
173
|
/**
|
174
174
|
Set to YES if the controller has valid content that can be displayed,
|
175
175
|
even an empty array. Returns NO if the content is null or not enumerable
|
176
176
|
and allowsSingleContent is NO.
|
177
|
-
|
177
|
+
|
178
178
|
@property {Boolean}
|
179
179
|
*/
|
180
180
|
hasContent: function() {
|
181
181
|
var content = this.get('content');
|
182
|
-
return !!content &&
|
182
|
+
return !!content &&
|
183
183
|
(!!content.isEnumerable || !!this.get('allowsSingleContent'));
|
184
184
|
}.property('content', 'allowSingleContent'),
|
185
185
|
|
186
186
|
/**
|
187
187
|
Returns the current status property for the content. If the content does
|
188
188
|
not have a status property, returns SC.Record.READY.
|
189
|
-
|
189
|
+
|
190
190
|
@property {Number}
|
191
191
|
*/
|
192
192
|
status: function() {
|
@@ -194,40 +194,40 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
194
194
|
ret = content ? content.get('status') : null;
|
195
195
|
return ret ? ret : SC.Record.READY;
|
196
196
|
}.property().cacheable(),
|
197
|
-
|
197
|
+
|
198
198
|
// ..........................................................
|
199
199
|
// METHODS
|
200
|
-
//
|
201
|
-
|
200
|
+
//
|
201
|
+
|
202
202
|
/**
|
203
|
-
Adds an object to the array. If the content is ordered, this will add the
|
203
|
+
Adds an object to the array. If the content is ordered, this will add the
|
204
204
|
object to the end of the content array. The content is not ordered, the
|
205
205
|
location depends on the implementation of the content.
|
206
|
-
|
207
|
-
If the source content does not support adding an object, then this method
|
206
|
+
|
207
|
+
If the source content does not support adding an object, then this method
|
208
208
|
will throw an exception.
|
209
|
-
|
209
|
+
|
210
210
|
@param {Object} object the object to add
|
211
211
|
@returns {SC.ArrayController} receiver
|
212
212
|
*/
|
213
213
|
addObject: function(object) {
|
214
|
-
if (!this.get('canAddContent')) throw "%@ cannot add content".fmt(this);
|
215
|
-
|
214
|
+
if (!this.get('canAddContent')) { throw "%@ cannot add content".fmt(this); }
|
215
|
+
|
216
216
|
var content = this.get('content');
|
217
|
-
if (content.isSCArray) content.pushObject(object);
|
218
|
-
else if (content.addObject) content.addObject(object);
|
219
|
-
else throw "%@.content does not support addObject".fmt(this);
|
220
|
-
|
217
|
+
if (content.isSCArray) { content.pushObject(object); }
|
218
|
+
else if (content.addObject) { content.addObject(object); }
|
219
|
+
else { throw "%@.content does not support addObject".fmt(this); }
|
220
|
+
|
221
221
|
return this;
|
222
222
|
},
|
223
|
-
|
223
|
+
|
224
224
|
/**
|
225
|
-
Removes the passed object from the array. If the underyling content
|
225
|
+
Removes the passed object from the array. If the underyling content
|
226
226
|
is a single object, then this simply sets the content to null. Otherwise
|
227
227
|
it will call removeObject() on the content.
|
228
|
-
|
228
|
+
|
229
229
|
Also, if destroyOnRemoval is YES, this will actually destroy the object.
|
230
|
-
|
230
|
+
|
231
231
|
@param {Object} object the object to remove
|
232
232
|
@returns {SC.ArrayController} receiver
|
233
233
|
*/
|
@@ -235,24 +235,25 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
235
235
|
if (!this.get('canRemoveContent')) {
|
236
236
|
throw "%@ cannot remove content".fmt(this);
|
237
237
|
}
|
238
|
-
|
238
|
+
|
239
239
|
var content = this.get('content');
|
240
|
-
if (content.isEnumerable)
|
241
|
-
|
240
|
+
if (content.isEnumerable) {
|
241
|
+
content.removeObject(object);
|
242
|
+
} else {
|
242
243
|
this.set('content', null);
|
243
244
|
}
|
244
|
-
|
245
|
-
if (this.get('destroyOnRemoval') && object.destroy) object.destroy();
|
246
|
-
return this;
|
245
|
+
|
246
|
+
if (this.get('destroyOnRemoval') && object.destroy) { object.destroy(); }
|
247
|
+
return this;
|
247
248
|
},
|
248
|
-
|
249
|
+
|
249
250
|
// ..........................................................
|
250
251
|
// SC.ARRAY SUPPORT
|
251
|
-
//
|
252
|
+
//
|
252
253
|
|
253
254
|
/**
|
254
255
|
Compute the length of the array based on the observable content
|
255
|
-
|
256
|
+
|
256
257
|
@property {Number}
|
257
258
|
*/
|
258
259
|
length: function() {
|
@@ -265,9 +266,9 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
265
266
|
*/
|
266
267
|
objectAt: function(idx) {
|
267
268
|
var content = this._scac_observableContent();
|
268
|
-
return content ? content.objectAt(idx) : undefined ;
|
269
|
+
return content ? content.objectAt(idx) : undefined ;
|
269
270
|
},
|
270
|
-
|
271
|
+
|
271
272
|
/** @private
|
272
273
|
Forwards a replace on to the content, but only if reordering is allowed.
|
273
274
|
*/
|
@@ -279,8 +280,8 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
279
280
|
}
|
280
281
|
} else if (!this.get('canReorderContent')) {
|
281
282
|
throw "%@ cannot add or reorder the current content".fmt(this);
|
282
|
-
}
|
283
|
-
|
283
|
+
}
|
284
|
+
|
284
285
|
// if we can do this, then just forward the change. This should fire
|
285
286
|
// updates back up the stack, updating rangeObservers, etc.
|
286
287
|
var content = this.get('content'); // note: use content, not observable
|
@@ -290,15 +291,15 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
290
291
|
objsToDestroy.push(content.objectAt(i+start));
|
291
292
|
}
|
292
293
|
}
|
293
|
-
|
294
|
+
|
294
295
|
if (content) content.replace(start, amt, objects);
|
295
296
|
for(i=0, objsLen = objsToDestroy.length; i<objsLen; i++){
|
296
|
-
|
297
|
+
|
297
298
|
objsToDestroy[i].destroy();
|
298
299
|
}
|
299
300
|
objsToDestroy = null;
|
300
|
-
|
301
|
-
return this;
|
301
|
+
|
302
|
+
return this;
|
302
303
|
},
|
303
304
|
|
304
305
|
indexOf: function(object, startAt) {
|
@@ -308,109 +309,88 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
308
309
|
|
309
310
|
// ..........................................................
|
310
311
|
// INTERNAL SUPPORT
|
311
|
-
//
|
312
|
-
|
312
|
+
//
|
313
|
+
|
313
314
|
/** @private */
|
314
315
|
init: function() {
|
315
316
|
sc_super();
|
316
317
|
this._scac_contentDidChange();
|
317
318
|
},
|
318
|
-
|
319
|
+
|
319
320
|
/** @private
|
320
|
-
Cached observable content property. Set to NO to indicate cache is
|
321
|
+
Cached observable content property. Set to NO to indicate cache is
|
321
322
|
invalid.
|
322
323
|
*/
|
323
324
|
_scac_cached: NO,
|
324
|
-
|
325
|
+
|
325
326
|
/**
|
326
327
|
@private
|
327
|
-
|
328
|
+
|
328
329
|
Returns the current array this controller is actually managing. Usually
|
329
330
|
this should be the same as the content property, but sometimes we need to
|
330
331
|
generate something different because the content is not a regular array.
|
331
|
-
|
332
|
+
|
332
333
|
Passing YES to the force parameter will force this value to be recomputed.
|
333
|
-
|
334
|
+
|
334
335
|
@returns {SC.Array} observable or null
|
335
336
|
*/
|
336
337
|
_scac_observableContent: function() {
|
337
338
|
var ret = this._scac_cached;
|
338
|
-
if (ret
|
339
|
-
|
340
|
-
var content = this.get('content'),
|
341
|
-
|
342
|
-
|
339
|
+
if (ret) { return ret; }
|
340
|
+
|
341
|
+
var content = this.get('content'), func, len, order;
|
342
|
+
|
343
343
|
// empty content
|
344
|
-
if (SC.none(content)) return this._scac_cached = [];
|
344
|
+
if (SC.none(content)) { return (this._scac_cached = []); }
|
345
345
|
|
346
346
|
// wrap non-enumerables
|
347
347
|
if (!content.isEnumerable) {
|
348
348
|
ret = this.get('allowsSingleContent') ? [content] : [];
|
349
349
|
return (this._scac_cached = ret);
|
350
|
-
}
|
351
|
-
|
350
|
+
}
|
351
|
+
|
352
352
|
// no-wrap
|
353
|
-
orderBy = this.get('orderBy');
|
353
|
+
var orderBy = this.get('orderBy');
|
354
354
|
if (!orderBy) {
|
355
|
-
if (content.isSCArray) return (this._scac_cached = content) ;
|
356
|
-
else throw "%@.orderBy is required for unordered content".fmt(this);
|
355
|
+
if (content.isSCArray) { return (this._scac_cached = content) ; }
|
356
|
+
else { throw "%@.orderBy is required for unordered content".fmt(this); }
|
357
357
|
}
|
358
|
-
|
358
|
+
|
359
359
|
// all remaining enumerables must be sorted.
|
360
|
-
|
360
|
+
|
361
361
|
// build array - then sort it
|
362
|
-
|
363
|
-
|
362
|
+
var type = SC.typeOf(orderBy);
|
363
|
+
|
364
|
+
if(type === SC.T_STRING) {
|
364
365
|
orderBy = [orderBy];
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
break;
|
369
|
-
case SC.T_ARRAY:
|
370
|
-
break;
|
371
|
-
default:
|
366
|
+
} else if(type === SC.T_FUNCTION) {
|
367
|
+
func = orderBy;
|
368
|
+
} else if(type !== SC.T_ARRAY) {
|
372
369
|
throw "%@.orderBy must be Array, String, or Function".fmt(this);
|
373
370
|
}
|
374
|
-
|
371
|
+
|
375
372
|
// generate comparison function if needed - use orderBy
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
if (key.indexOf('ASC') > -1) {
|
385
|
-
key = key.split('ASC ')[1];
|
386
|
-
} else if (key.indexOf('DESC') > -1) {
|
387
|
-
key = key.split('DESC ')[1];
|
388
|
-
descending = YES;
|
389
|
-
}
|
390
|
-
|
391
|
-
if (!a) aValue = a ;
|
392
|
-
else if (a.isObservable) aValue = a.get(key);
|
393
|
-
else aValue = a[key];
|
394
|
-
|
395
|
-
if (!b) bValue = b ;
|
396
|
-
else if (b.isObservable) bValue = b.get(key);
|
397
|
-
else bValue = b[key];
|
398
|
-
|
399
|
-
status = SC.compare(aValue, bValue);
|
400
|
-
if (descending) status = (-1) * status;
|
401
|
-
}
|
402
|
-
return status ;
|
403
|
-
};
|
404
|
-
}
|
373
|
+
func = func || function(a,b) {
|
374
|
+
var status, key, match, descending;
|
375
|
+
|
376
|
+
for(var i=0, l=orderBy.get('length'); i<l && !status; i++) {
|
377
|
+
key = orderBy.objectAt(i);
|
378
|
+
|
379
|
+
match = key.match(/^(ASC )?(DESC )?(.*)$/);
|
380
|
+
key = match[3]; order = match[2] ? -1 : 1;
|
405
381
|
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
382
|
+
if (a) { a = a.isObservable ? a.get(key) : a[key]; }
|
383
|
+
if (b) { b = b.isObservable ? b.get(key) : b[key]; }
|
384
|
+
|
385
|
+
status = SC.compare(a, b) * order;
|
386
|
+
}
|
387
|
+
|
388
|
+
return status ;
|
389
|
+
};
|
390
|
+
|
391
|
+
return (this._scac_cached = content.toArray().sort(func)) ;
|
412
392
|
},
|
413
|
-
|
393
|
+
|
414
394
|
/** @private
|
415
395
|
Whenever content changes, setup and teardown observers on the content
|
416
396
|
as needed.
|
@@ -418,45 +398,45 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
418
398
|
_scac_contentDidChange: function() {
|
419
399
|
|
420
400
|
this._scac_cached = NO; // invalidate observable content
|
421
|
-
|
401
|
+
|
422
402
|
var cur = this.get('content'),
|
423
403
|
orders = !!this.get('orderBy'),
|
424
404
|
last = this._scac_content,
|
425
405
|
oldlen = this._scac_length || 0,
|
426
|
-
ro = this._scac_rangeObserver,
|
427
406
|
func = this._scac_rangeDidChange,
|
428
407
|
efunc = this._scac_enumerableDidChange,
|
429
408
|
sfunc = this._scac_contentStatusDidChange,
|
430
409
|
newlen;
|
431
|
-
|
432
|
-
if (last === cur) return this; // nothing to do
|
410
|
+
|
411
|
+
if (last === cur) { return this; } // nothing to do
|
433
412
|
|
434
413
|
// teardown old observer
|
435
414
|
if (last) {
|
436
|
-
if (ro && last.isSCArray) last.removeRangeObserver(ro);
|
437
|
-
else if (last.isEnumerable) last.removeObserver('[]', this, efunc);
|
415
|
+
if (ro && last.isSCArray) { last.removeRangeObserver(ro); }
|
416
|
+
else if (last.isEnumerable) { last.removeObserver('[]', this, efunc); }
|
438
417
|
last.removeObserver('status', this, sfunc);
|
439
418
|
}
|
440
|
-
|
419
|
+
|
441
420
|
ro = null;
|
442
|
-
|
443
|
-
// save new cached values
|
421
|
+
|
422
|
+
// save new cached values
|
444
423
|
this._scac_cached = NO;
|
445
424
|
this._scac_content = cur ;
|
446
|
-
|
425
|
+
|
447
426
|
// setup new observers
|
448
|
-
// also, calculate new length. do it manually instead of using
|
427
|
+
// also, calculate new length. do it manually instead of using
|
449
428
|
// get(length) because we want to avoid computed an ordered array.
|
450
429
|
if (cur) {
|
451
|
-
if (!orders && cur.isSCArray) ro = cur.addRangeObserver(null,this,func);
|
452
|
-
else if (cur.isEnumerable) cur.addObserver('[]', this, efunc);
|
453
|
-
newlen = cur.isEnumerable ? cur.get('length') : 1;
|
430
|
+
if (!orders && cur.isSCArray) { ro = cur.addRangeObserver(null, this, func); }
|
431
|
+
else if (cur.isEnumerable) { cur.addObserver('[]', this, efunc); }
|
432
|
+
newlen = cur.isEnumerable ? cur.get('length') : 1;
|
454
433
|
cur.addObserver('status', this, sfunc);
|
455
|
-
|
456
|
-
} else
|
434
|
+
|
435
|
+
} else {
|
436
|
+
newlen = SC.none(cur) ? 0 : 1;
|
437
|
+
}
|
457
438
|
|
458
439
|
this._scac_rangeObserver = ro;
|
459
|
-
|
460
440
|
|
461
441
|
// finally, notify enumerable content has changed.
|
462
442
|
this._scac_length = newlen;
|
@@ -464,39 +444,19 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
464
444
|
this.enumerableContentDidChange(0, newlen, newlen - oldlen);
|
465
445
|
this.updateSelectionAfterContentChange();
|
466
446
|
}.observes('content'),
|
467
|
-
|
468
|
-
/** @private
|
469
|
-
Whenever enumerable content changes, need to regenerate the
|
470
|
-
observableContent and notify that the range has changed.
|
471
|
-
|
472
|
-
This is called whenever the content enumerable changes or whenever orderBy
|
473
|
-
changes.
|
474
|
-
*/
|
475
|
-
_scac_enumerableDidChange: function() {
|
476
|
-
var content = this.get('content'), // use content directly
|
477
|
-
newlen = content ? content.get('length') : 0,
|
478
|
-
oldlen = this._scac_length;
|
479
|
-
|
480
|
-
this._scac_length = newlen;
|
481
|
-
this.beginPropertyChanges();
|
482
|
-
this._scac_cached = NO; // invalidate
|
483
|
-
this.enumerableContentDidChange(0, newlen, newlen-oldlen);
|
484
|
-
this.endPropertyChanges();
|
485
|
-
this.updateSelectionAfterContentChange();
|
486
|
-
}.observes('orderBy'),
|
487
|
-
|
447
|
+
|
488
448
|
/** @private
|
489
449
|
Whenever array content changes, need to simply forward notification.
|
490
|
-
|
450
|
+
|
491
451
|
Assumes that content is not null and is SC.Array.
|
492
452
|
*/
|
493
453
|
_scac_rangeDidChange: function(array, objects, key, indexes) {
|
494
|
-
if (key !== '[]') return ; // nothing to do
|
495
|
-
|
454
|
+
if (key !== '[]') { return ; } // nothing to do
|
455
|
+
|
496
456
|
var content = this.get('content');
|
497
457
|
this._scac_length = content.get('length');
|
498
458
|
this._scac_cached = NO; // invalidate
|
499
|
-
|
459
|
+
|
500
460
|
// if array length has changed, just notify every index from min up
|
501
461
|
if (indexes) {
|
502
462
|
this.beginPropertyChanges();
|
@@ -507,12 +467,32 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
|
|
507
467
|
this.updateSelectionAfterContentChange();
|
508
468
|
}
|
509
469
|
},
|
510
|
-
|
470
|
+
|
471
|
+
/** @private
|
472
|
+
Whenever enumerable content changes, need to regenerate the
|
473
|
+
observableContent and notify that the range has changed.
|
474
|
+
|
475
|
+
This is called whenever the content enumerable changes or whenever orderBy
|
476
|
+
changes.
|
477
|
+
*/
|
478
|
+
_scac_enumerableDidChange: function() {
|
479
|
+
var content = this.get('content'), // use content directly
|
480
|
+
newlen = content ? content.get('length') : 0,
|
481
|
+
oldlen = this._scac_length;
|
482
|
+
|
483
|
+
this._scac_length = newlen;
|
484
|
+
this.beginPropertyChanges();
|
485
|
+
this._scac_cached = NO; // invalidate
|
486
|
+
this.enumerableContentDidChange(0, newlen, newlen-oldlen);
|
487
|
+
this.endPropertyChanges();
|
488
|
+
this.updateSelectionAfterContentChange();
|
489
|
+
}.observes('orderBy'),
|
490
|
+
|
511
491
|
/** @private
|
512
492
|
Whenver the content "status" property changes, relay out.
|
513
493
|
*/
|
514
494
|
_scac_contentStatusDidChange: function() {
|
515
495
|
this.notifyPropertyChange('status');
|
516
496
|
}
|
517
|
-
|
497
|
+
|
518
498
|
});
|