luca 0.9.9 → 0.9.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +9 -153
- data/Gemfile +1 -10
- data/Gemfile.lock +40 -113
- data/Guardfile +25 -3
- data/README.md +57 -54
- data/ROADMAP +32 -15
- data/Rakefile +75 -24
- data/app.rb +46 -12
- data/{app/assets → assets}/images/glyphicons-halflings-white.png +0 -0
- data/{app/assets → assets}/images/glyphicons-halflings.png +0 -0
- data/assets/javascripts/dependencies/backbone-min.js +37 -0
- data/assets/javascripts/dependencies/backbone-query.min.js +1 -0
- data/assets/javascripts/dependencies/bootstrap.min.js +7 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-coffeescript.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-css.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-html.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-javascript.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-less.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-vim.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror.js +0 -0
- data/assets/javascripts/dependencies/coffee-script.js +12189 -0
- data/{spec → assets}/javascripts/dependencies/jasmine-html.js +0 -0
- data/{spec → assets}/javascripts/dependencies/jasmine.js +0 -0
- data/assets/javascripts/dependencies/jquery.js +4 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/modal.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/modernizr.min.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/prettify.js +0 -0
- data/{spec → assets}/javascripts/dependencies/sinon.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/spin-min.js +0 -0
- data/assets/javascripts/dependencies/underscore-min.js +31 -0
- data/assets/javascripts/dependencies/underscore-string.min.js +14 -0
- data/assets/javascripts/dependencies.coffee +5 -0
- data/assets/javascripts/luca/index.coffee +1 -0
- data/assets/javascripts/luca-templates.js +1 -0
- data/assets/javascripts/luca-ui-base.coffee +1 -0
- data/assets/javascripts/luca-ui-bootstrap.js +1 -0
- data/assets/javascripts/luca-ui-development-tools.coffee +9 -0
- data/assets/javascripts/luca-ui-full.js +3 -0
- data/assets/javascripts/luca-ui-spec.coffee +2 -0
- data/assets/javascripts/luca-ui.js +3 -0
- data/assets/javascripts/sandbox/application.coffee +57 -0
- data/assets/javascripts/sandbox/config.coffee +7 -0
- data/assets/javascripts/sandbox/router.coffee +24 -0
- data/assets/javascripts/sandbox/templates/builder/component_list.luca +1 -0
- data/assets/javascripts/sandbox/templates/builder.luca +2 -0
- data/assets/javascripts/sandbox/templates/main.luca +53 -0
- data/assets/javascripts/sandbox/templates/sandbox/docs_index.luca +1 -0
- data/assets/javascripts/sandbox/templates/sandbox/navigation.luca +8 -0
- data/assets/javascripts/sandbox/templates/sandbox/readme.luca +30 -0
- data/assets/javascripts/sandbox/templates/sandbox.luca +1 -0
- data/assets/javascripts/sandbox/views/builder/builder_canvas.coffee +3 -0
- data/assets/javascripts/sandbox/views/builder/builder_editor.coffee +6 -0
- data/assets/javascripts/sandbox/views/builder/component_list.coffee +38 -0
- data/assets/javascripts/sandbox/views/builder/project_browser.coffee +14 -0
- data/assets/javascripts/sandbox/views/builder.coffee +133 -0
- data/assets/javascripts/sandbox/views/docs_controller.coffee +7 -0
- data/assets/javascripts/sandbox/views/inspector/instance_filter.coffee +18 -0
- data/{app/assets/stylesheets/luca/containers/modal_view.scss → assets/javascripts/sandbox/views/inspector/instance_list.coffee} +0 -0
- data/assets/javascripts/sandbox/views/inspector.coffee +11 -0
- data/assets/javascripts/sandbox/views/top_navigation.coffee +4 -0
- data/assets/javascripts/sandbox.coffee +7 -0
- data/assets/javascripts/spec-dependencies.coffee +4 -0
- data/assets/stylesheets/bootstrap-responsive.min.css +2 -0
- data/assets/stylesheets/bootstrap.min.css +727 -0
- data/{vendor/assets → assets}/stylesheets/codemirror-blackboard.css +0 -0
- data/{vendor/assets → assets}/stylesheets/codemirror-monokai.css +0 -0
- data/{vendor/assets → assets}/stylesheets/codemirror.css +0 -0
- data/{vendor/assets → assets}/stylesheets/jasmine.css +0 -0
- data/assets/stylesheets/luca-ui-bootstrap.css +4 -0
- data/assets/stylesheets/luca-ui-development-tools.css +5 -0
- data/assets/stylesheets/luca-ui-full.css +3 -0
- data/assets/stylesheets/luca-ui-spec.css +3 -0
- data/assets/stylesheets/luca-ui.css +3 -0
- data/assets/stylesheets/prettify.css +40 -0
- data/assets/stylesheets/sandbox/builder.scss +79 -0
- data/assets/stylesheets/sandbox/sandbox.scss +18 -0
- data/assets/stylesheets/sandbox.css +3 -0
- data/assets/stylesheets/themes/amelia-bootstrap.css +826 -0
- data/assets/stylesheets/themes/slate-bootstrap.css +797 -0
- data/assets/stylesheets/themes/superhero-bootstrap.css +830 -0
- data/config.ru +2 -1
- data/docs/{old/application.md → application.md} +0 -0
- data/docs/{old/collection.md → collection.md} +0 -0
- data/docs/{old/collection_manager.md → collection_manager.md} +0 -0
- data/docs/{old/container_philosophy.md → container_philosophy.md} +0 -0
- data/docs/{old/event_binding_helpers.md → event_binding_helpers.md} +0 -0
- data/docs/{old/method_caching_and_computed_properties.md → method_caching_and_computed_properties.md} +0 -0
- data/docs/{old/view.md → view.md} +0 -0
- data/lib/luca/code_browser.rb +55 -0
- data/lib/luca/command_line.rb +69 -0
- data/lib/luca/rails/engine.rb +0 -12
- data/lib/luca/rails/version.rb +2 -1
- data/lib/luca/rails.rb +3 -5
- data/lib/luca/template.rb +0 -2
- data/lib/luca.rb +1 -25
- data/luca.gemspec +7 -16
- data/site/assets/bootstrap.min.js +7 -0
- data/site/assets/dependencies.js +94 -0
- data/site/assets/glyphicons-halflings-white.png +0 -0
- data/site/assets/glyphicons-halflings.png +0 -0
- data/site/assets/luca-ui-bootstrap.css +1331 -0
- data/site/assets/luca-ui-bootstrap.js +9 -0
- data/site/assets/luca-ui-development-tools.css +234 -0
- data/site/assets/luca-ui-development-tools.js +18561 -0
- data/site/assets/luca-ui-development-tools.min.js +15 -0
- data/site/assets/luca-ui-full.min.js +8 -0
- data/site/assets/luca-ui.min.js +4 -0
- data/site/assets/sandbox.css +62 -0
- data/site/assets/sandbox.js +469 -0
- data/site/docs/application.html +41 -0
- data/site/docs/caching.html +43 -0
- data/site/docs/collection.html +75 -0
- data/site/docs/collection_manager.html +71 -0
- data/site/docs/containers.html +118 -0
- data/site/docs/events.html +153 -0
- data/site/docs/view.html +128 -0
- data/site/img/glyphicons-halflings-white.png +0 -0
- data/site/img/glyphicons-halflings.png +0 -0
- data/site/index.html +20 -0
- data/site/source-map.js +1 -0
- data/spec/{javascripts/components → components}/application_spec.coffee +0 -0
- data/spec/{javascripts/components → components}/collection_loader_view_spec.coffee +0 -0
- data/{site/source/app/assets/javascripts/docs/lib/util.coffee → spec/components/controller_spec.coffee} +0 -0
- data/spec/{javascripts/components → components}/fields/checkbox_array_spec.coffee +0 -0
- data/spec/components/form_view_spec.coffee +80 -0
- data/spec/{javascripts/components → components}/grid_view_spec.coffee +0 -0
- data/spec/{javascripts/components → components}/record_manager_spec.coffee +0 -0
- data/spec/{javascripts/components → components}/template_spec.coffee +0 -0
- data/spec/containers/card_view_spec.coffee +50 -0
- data/{site/source/app/assets/javascripts/docs/views/components/code_editor/index.coffee → spec/containers/column_view_spec.coffee} +0 -0
- data/spec/{javascripts/containers → containers}/modal_view_spec.coffee +0 -0
- data/spec/{javascripts/containers → containers}/panel_view_spec.coffee +0 -0
- data/spec/{javascripts/components/pagination_control_spec.coffee → containers/split_view_spec.coffee} +0 -0
- data/spec/{javascripts/containers → containers}/tab_view_spec.coffee +0 -0
- data/spec/{javascripts/containers → containers}/viewport_spec.coffee +0 -0
- data/spec/{javascripts/core → core}/collection_spec.coffee +1 -26
- data/spec/core/container_spec.coffee +66 -0
- data/spec/{javascripts/concerns/paginatable_spec.coffee → core/field_spec.coffee} +0 -0
- data/spec/{javascripts/core → core}/model_spec.coffee +3 -26
- data/spec/{javascripts/core → core}/observer_spec.coffee +0 -0
- data/spec/{javascripts/core → core}/view_spec.coffee +38 -114
- data/spec/{javascripts/core/framework_spec.coffee → framework_spec.coffee} +2 -31
- data/spec/{javascripts/helper.coffee → helper.coffee} +0 -0
- data/spec/{javascripts/managers → managers}/collection_manager_spec.coffee +0 -0
- data/spec/{javascripts/managers → managers}/socket_manager_spec.coffee +0 -0
- data/src/components/application.coffee +318 -0
- data/src/components/base_toolbar.coffee +15 -0
- data/{app/assets/javascripts/luca → src}/components/collection_loader_view.coffee +1 -3
- data/src/components/collection_view.coffee +131 -0
- data/src/components/controller.coffee +63 -0
- data/src/components/fields/button_field.coffee +38 -0
- data/{app/assets/javascripts/luca → src}/components/fields/checkbox_array.coffee +7 -18
- data/{app/assets/javascripts/luca → src}/components/fields/checkbox_field.coffee +10 -19
- data/{app/assets/javascripts/luca → src}/components/fields/file_upload_field.coffee +4 -5
- data/src/components/fields/hidden_field.coffee +12 -0
- data/src/components/fields/label_field.coffee +14 -0
- data/src/components/fields/select_field.coffee +97 -0
- data/src/components/fields/text_area_field.coffee +40 -0
- data/{app/assets/javascripts/luca → src}/components/fields/text_field.coffee +5 -16
- data/src/components/fields/type_ahead_field.coffee +22 -0
- data/src/components/form_button_toolbar.coffee +25 -0
- data/src/components/form_view.coffee +275 -0
- data/src/components/grid_view.coffee +269 -0
- data/src/components/index.coffee +1 -0
- data/src/components/load_mask.coffee +3 -0
- data/src/components/nav_bar.coffee +22 -0
- data/src/components/page_controller.coffee +2 -0
- data/{app/assets/javascripts/luca → src}/components/record_manager.coffee +0 -0
- data/{app/assets/javascripts/luca → src}/components/router.coffee +1 -6
- data/src/components/table_view.coffee +53 -0
- data/src/components/template.coffee +5 -0
- data/src/components/toolbar_dialog.coffee +25 -0
- data/src/containers/card_view.coffee +93 -0
- data/src/containers/column_view.coffee +42 -0
- data/{app/assets/javascripts/luca → src}/containers/modal_view.coffee +9 -9
- data/src/containers/page_view.coffee +2 -0
- data/{app/assets/javascripts/luca → src}/containers/panel_toolbar.coffee +84 -89
- data/src/containers/panel_view.coffee +23 -0
- data/src/containers/split_view.coffee +8 -0
- data/{app/assets/javascripts/luca → src}/containers/tab_view.coffee +21 -27
- data/{app/assets/javascripts/luca → src}/containers/viewport.coffee +18 -14
- data/{app/assets/javascripts/luca → src}/core/collection.coffee +51 -97
- data/src/core/container.coffee +374 -0
- data/{tutorials/component-definitions.md → src/core/core.coffee} +0 -0
- data/src/core/field.coffee +79 -0
- data/src/core/model.coffee +43 -0
- data/{app/assets/javascripts/luca → src}/core/observer.coffee +0 -0
- data/src/core/panel.coffee +118 -0
- data/{app/assets/javascripts/luca/core/registry → src/core}/registry.coffee +43 -63
- data/{app/assets/javascripts/luca/util → src/core}/script_loader.coffee +0 -0
- data/src/core/view.coffee +264 -0
- data/src/define.coffee +110 -0
- data/{app/assets/javascripts/luca → src}/framework.coffee +103 -98
- data/src/index.coffee +23 -0
- data/{app/assets/javascripts/luca → src}/managers/collection_manager.coffee +13 -37
- data/src/managers/socket_manager.coffee +54 -0
- data/{app/assets/javascripts/luca/concerns → src/modules}/deferrable.coffee +4 -5
- data/src/modules/grid_layout.coffee +3 -0
- data/{app/assets/javascripts/luca/concerns/loadmaskable.coffee → src/modules/load_mask.coffee} +11 -23
- data/{app/assets/javascripts/luca/concerns → src/modules}/local_storage.coffee +0 -0
- data/src/plugins/development_tool_helpers.coffee +21 -0
- data/src/plugins/events.coffee +54 -0
- data/src/samples/definition.coffee +49 -0
- data/{tutorials/component-definitions/01_intro.md → src/stylesheets/base.scss} +0 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/components/checkbox_array.scss +1 -1
- data/src/stylesheets/components/form_view.scss +59 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/components/grid_view.scss +0 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/components/load_mask.scss +0 -0
- data/src/stylesheets/components/toolbar.scss +0 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/components/viewport.scss +4 -1
- data/src/stylesheets/containers/container.scss +16 -0
- data/src/stylesheets/containers/modal_view.scss +0 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/containers/panels.scss +0 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/containers/tab_view.scss +5 -5
- data/{app/assets/stylesheets/luca → src/stylesheets}/normalize.scss +0 -0
- data/src/stylesheets/tools/class_browser.scss +32 -0
- data/src/stylesheets/tools/code_editor.scss +24 -0
- data/src/stylesheets/tools/component_tester.scss +26 -0
- data/{app/assets/stylesheets/luca/development → src/stylesheets/tools}/console.scss +0 -0
- data/src/templates/components/bootstrap_form_controls.luca +7 -0
- data/src/templates/components/collection_loader_view.luca +5 -0
- data/src/templates/components/form_alert +0 -0
- data/src/templates/components/form_alert.luca +3 -0
- data/src/templates/components/grid_view.luca +7 -0
- data/src/templates/components/grid_view_empty_text.luca +3 -0
- data/src/templates/components/load_mask.luca +3 -0
- data/src/templates/components/nav_bar.luca +2 -0
- data/src/templates/containers/basic.luca +1 -0
- data/src/templates/containers/tab_selector_container.luca +8 -0
- data/src/templates/containers/tab_view.luca +2 -0
- data/src/templates/containers/toolbar_wrapper.luca +1 -0
- data/src/templates/fields/button_field.luca +2 -0
- data/src/templates/fields/button_field_link.luca +5 -0
- data/src/templates/fields/checkbox_array.luca +4 -0
- data/src/templates/fields/checkbox_array_item.luca +4 -0
- data/src/templates/fields/checkbox_field.luca +9 -0
- data/src/templates/fields/file_upload_field.luca +8 -0
- data/src/templates/fields/hidden_field.luca +1 -0
- data/src/templates/fields/select_field.luca +8 -0
- data/src/templates/fields/text_area_field.luca +8 -0
- data/src/templates/fields/text_field.luca +17 -0
- data/src/templates/sample/contents.luca +1 -0
- data/src/templates/sample/welcome.luca +1 -0
- data/src/templates/table_view.luca +4 -0
- data/src/tools/application_inspector.coffee +2 -0
- data/src/tools/code_editor.coffee +258 -0
- data/{app/assets/javascripts/luca/development → src/tools}/code_mirror_field.coffee +1 -2
- data/src/tools/coffee_script_editor.coffee +82 -0
- data/src/tools/collection_inspector.coffee +4 -0
- data/src/tools/collections/components.coffee +59 -0
- data/src/tools/collections/instances.coffee +15 -0
- data/src/tools/component_tester.coffee +462 -0
- data/{app/assets/javascripts/luca/development → src/tools}/console.coffee +24 -55
- data/src/tools/models/components.coffee +25 -0
- data/src/tools/models/instance.coffee +2 -0
- data/src/tools/templates/component_tester/help.luca +14 -0
- data/{app/assets/javascripts/luca/util/luca.coffee → src/util.coffee} +6 -90
- data/vendor/assets/javascripts/luca-ui-development-tools.js +18533 -0
- data/vendor/assets/javascripts/luca-ui-development-tools.min.js +15 -0
- data/vendor/assets/javascripts/luca-ui-full.js +4806 -0
- data/vendor/assets/javascripts/luca-ui-full.min.js +8 -0
- data/vendor/assets/javascripts/luca-ui-templates.js +24 -0
- data/vendor/assets/javascripts/luca-ui.js +1703 -4394
- data/vendor/assets/javascripts/luca-ui.min.js +4 -5
- data/vendor/assets/luca-ui/base.css +85 -0
- data/vendor/assets/luca-ui/components/application.js +91 -0
- data/vendor/assets/luca-ui/components/base_toolbar.js +23 -0
- data/vendor/assets/luca-ui/components/controller.js +38 -0
- data/vendor/assets/luca-ui/components/fields/button_field.js +45 -0
- data/vendor/assets/luca-ui/components/fields/checkbox_field.js +43 -0
- data/vendor/assets/luca-ui/components/fields/file_upload_field.js +20 -0
- data/vendor/assets/luca-ui/components/fields/hidden_field.js +20 -0
- data/vendor/assets/luca-ui/components/fields/select_field.js +97 -0
- data/vendor/assets/luca-ui/components/fields/text_area_field.js +48 -0
- data/vendor/assets/luca-ui/components/fields/text_field.js +46 -0
- data/vendor/assets/luca-ui/components/fields/type_ahead_field.js +13 -0
- data/vendor/assets/luca-ui/components/form_button_toolbar.js +32 -0
- data/vendor/assets/luca-ui/components/form_view.css +32 -0
- data/vendor/assets/luca-ui/components/form_view.js +207 -0
- data/{app/assets/stylesheets/luca/components/table_view.scss → vendor/assets/luca-ui/components/grid_view.css} +51 -60
- data/vendor/assets/luca-ui/components/grid_view.js +202 -0
- data/vendor/assets/luca-ui/components/record_manager.js +207 -0
- data/vendor/assets/luca-ui/components/router.js +36 -0
- data/vendor/assets/luca-ui/components/template.js +26 -0
- data/vendor/assets/luca-ui/components/toolbar.css +11 -0
- data/vendor/assets/luca-ui/containers/card_view.js +98 -0
- data/vendor/assets/luca-ui/containers/column_view.js +52 -0
- data/vendor/assets/luca-ui/containers/container.css +3 -0
- data/vendor/assets/luca-ui/containers/modal_view.css +0 -0
- data/vendor/assets/luca-ui/containers/modal_view.js +87 -0
- data/vendor/assets/luca-ui/containers/panel_view.js +34 -0
- data/vendor/assets/luca-ui/containers/split_view.js +13 -0
- data/vendor/assets/luca-ui/containers/tab_view.css +16 -0
- data/vendor/assets/luca-ui/containers/tab_view.js +80 -0
- data/vendor/assets/luca-ui/containers/viewport.js +18 -0
- data/vendor/assets/luca-ui/core/collection.js +221 -0
- data/vendor/assets/luca-ui/core/container.js +205 -0
- data/vendor/assets/luca-ui/core/field.js +59 -0
- data/vendor/assets/luca-ui/core/observer.js +42 -0
- data/vendor/assets/luca-ui/core/view.js +127 -0
- data/vendor/assets/luca-ui/framework.js +110 -0
- data/vendor/assets/luca-ui/index.js +5 -0
- data/vendor/assets/luca-ui/managers/collection_manager.js +98 -0
- data/vendor/assets/luca-ui/managers/socket_manager.js +52 -0
- data/vendor/assets/luca-ui/modules/deferrable.js +21 -0
- data/vendor/assets/luca-ui/modules/local_storage.js +81 -0
- data/vendor/assets/luca-ui/normalize.css +359 -0
- data/vendor/assets/luca-ui/stylesheets/base.css +85 -0
- data/vendor/assets/luca-ui/stylesheets/components/form_view.css +32 -0
- data/vendor/assets/luca-ui/stylesheets/components/grid_view.css +76 -0
- data/vendor/assets/luca-ui/stylesheets/components/toolbar.css +11 -0
- data/vendor/assets/luca-ui/stylesheets/containers/container.css +3 -0
- data/vendor/assets/luca-ui/stylesheets/containers/modal_view.css +0 -0
- data/vendor/assets/luca-ui/stylesheets/containers/tab_view.css +16 -0
- data/vendor/assets/luca-ui/stylesheets/normalize.css +359 -0
- data/vendor/assets/luca-ui/templates/components/bootstrap_form_controls.js +4 -0
- data/vendor/assets/luca-ui/templates/components/form_view.js +4 -0
- data/vendor/assets/luca-ui/templates/components/grid_view.js +4 -0
- data/vendor/assets/luca-ui/templates/components/grid_view_empty_text.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/basic.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/tab_selector_container.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/tab_view.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/toolbar_wrapper.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/button_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/button_field_link.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/checkbox_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/file_upload_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/hidden_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/select_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/text_area_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/text_field.js +4 -0
- data/vendor/assets/luca-ui/templates/sample/contents.js +4 -0
- data/vendor/assets/luca-ui/templates/sample/welcome.js +4 -0
- data/vendor/assets/stylesheets/luca-ui.css +471 -68
- data/views/jasmine.erb +2 -2
- metadata +328 -496
- data/app/assets/javascripts/luca/basic.coffee +0 -8
- data/app/assets/javascripts/luca/components/application.coffee +0 -530
- data/app/assets/javascripts/luca/components/collection_view.coffee +0 -211
- data/app/assets/javascripts/luca/components/controller.coffee +0 -176
- data/app/assets/javascripts/luca/components/fields/base.coffee +0 -144
- data/app/assets/javascripts/luca/components/fields/button_field.coffee +0 -91
- data/app/assets/javascripts/luca/components/fields/hidden_field.coffee +0 -11
- data/app/assets/javascripts/luca/components/fields/label_field.coffee +0 -12
- data/app/assets/javascripts/luca/components/fields/select_field.coffee +0 -159
- data/app/assets/javascripts/luca/components/fields/text_area_field.coffee +0 -57
- data/app/assets/javascripts/luca/components/fields/type_ahead_field.coffee +0 -20
- data/app/assets/javascripts/luca/components/form_view.coffee +0 -421
- data/app/assets/javascripts/luca/components/grid_layout_view.coffee +0 -42
- data/app/assets/javascripts/luca/components/index.coffee +0 -7
- data/app/assets/javascripts/luca/components/load_mask.coffee +0 -8
- data/app/assets/javascripts/luca/components/multi_collection_view.coffee +0 -92
- data/app/assets/javascripts/luca/components/nav_bar.coffee +0 -80
- data/app/assets/javascripts/luca/components/page.coffee +0 -70
- data/app/assets/javascripts/luca/components/pagination_control.coffee +0 -104
- data/app/assets/javascripts/luca/components/simple_collection_view.coffee +0 -10
- data/app/assets/javascripts/luca/components/table_view.coffee +0 -93
- data/app/assets/javascripts/luca/components/table_view_scrollable.coffee +0 -23
- data/app/assets/javascripts/luca/concerns/application_event_bindings.coffee +0 -19
- data/app/assets/javascripts/luca/concerns/collection_event_bindings.coffee +0 -47
- data/app/assets/javascripts/luca/concerns/development_tool_helpers.coffee +0 -30
- data/app/assets/javascripts/luca/concerns/dom_helpers.coffee +0 -61
- data/app/assets/javascripts/luca/concerns/enhanced_properties.coffee +0 -23
- data/app/assets/javascripts/luca/concerns/filterable.coffee +0 -101
- data/app/assets/javascripts/luca/concerns/form_model_bindings.coffee +0 -20
- data/app/assets/javascripts/luca/concerns/grid_layout.coffee +0 -15
- data/app/assets/javascripts/luca/concerns/modal_view.coffee +0 -63
- data/app/assets/javascripts/luca/concerns/model_presenter.coffee +0 -23
- data/app/assets/javascripts/luca/concerns/paginatable.coffee +0 -79
- data/app/assets/javascripts/luca/concerns/query_collection_bindings.coffee +0 -52
- data/app/assets/javascripts/luca/concerns/sortable.coffee +0 -69
- data/app/assets/javascripts/luca/concerns/state_model.coffee +0 -58
- data/app/assets/javascripts/luca/concerns/templating.coffee +0 -13
- data/app/assets/javascripts/luca/config.coffee +0 -54
- data/app/assets/javascripts/luca/containers/card_view.coffee +0 -178
- data/app/assets/javascripts/luca/containers/container.coffee +0 -711
- data/app/assets/javascripts/luca/containers/index.coffee +0 -2
- data/app/assets/javascripts/luca/containers/page_controller.coffee +0 -25
- data/app/assets/javascripts/luca/core/events.coffee +0 -114
- data/app/assets/javascripts/luca/core/index.coffee +0 -12
- data/app/assets/javascripts/luca/core/model.coffee +0 -56
- data/app/assets/javascripts/luca/core/panel.coffee +0 -124
- data/app/assets/javascripts/luca/core/registry/component_definition.coffee +0 -319
- data/app/assets/javascripts/luca/core/registry/concerns.coffee +0 -70
- data/app/assets/javascripts/luca/core/registry/index.coffee +0 -4
- data/app/assets/javascripts/luca/core/registry/meta_data.coffee +0 -99
- data/app/assets/javascripts/luca/core/templates.coffee +0 -51
- data/app/assets/javascripts/luca/core/view.coffee +0 -383
- data/app/assets/javascripts/luca/dependencies.coffee +0 -9
- data/app/assets/javascripts/luca/development/code_sync_manager.coffee +0 -173
- data/app/assets/javascripts/luca/development/component.coffee +0 -76
- data/app/assets/javascripts/luca/development/components.coffee +0 -57
- data/app/assets/javascripts/luca/development/index.coffee +0 -5
- data/app/assets/javascripts/luca/index.coffee +0 -9
- data/app/assets/javascripts/luca/managers/index.coffee +0 -2
- data/app/assets/javascripts/luca/managers/socket_manager.coffee +0 -89
- data/app/assets/javascripts/luca/templates/components/bootstrap_form_controls.jst.ejs +0 -10
- data/app/assets/javascripts/luca/templates/components/collection_loader_view.jst.ejs +0 -6
- data/app/assets/javascripts/luca/templates/components/form_alert.jst.ejs +0 -4
- data/app/assets/javascripts/luca/templates/components/grid_view.jst.ejs +0 -11
- data/app/assets/javascripts/luca/templates/components/grid_view_empty_text.jst.ejs +0 -3
- data/app/assets/javascripts/luca/templates/components/load_mask.jst.ejs +0 -5
- data/app/assets/javascripts/luca/templates/components/nav_bar.jst.ejs +0 -19
- data/app/assets/javascripts/luca/templates/components/pagination.jst.ejs +0 -10
- data/app/assets/javascripts/luca/templates/components/table_view.jst.ejs +0 -4
- data/app/assets/javascripts/luca/templates/containers/basic.jst.ejs +0 -1
- data/app/assets/javascripts/luca/templates/containers/tab_selector_container.jst.ejs +0 -12
- data/app/assets/javascripts/luca/templates/containers/tab_view.jst.ejs +0 -2
- data/app/assets/javascripts/luca/templates/containers/toolbar_wrapper.jst.ejs +0 -1
- data/app/assets/javascripts/luca/templates/fields/button_field.jst.ejs +0 -2
- data/app/assets/javascripts/luca/templates/fields/button_field_link.jst.ejs +0 -6
- data/app/assets/javascripts/luca/templates/fields/checkbox_array.jst.ejs +0 -4
- data/app/assets/javascripts/luca/templates/fields/checkbox_array_item.jst.ejs +0 -3
- data/app/assets/javascripts/luca/templates/fields/checkbox_field.jst.ejs +0 -10
- data/app/assets/javascripts/luca/templates/fields/file_upload_field.jst.ejs +0 -10
- data/app/assets/javascripts/luca/templates/fields/hidden_field.jst.ejs +0 -1
- data/app/assets/javascripts/luca/templates/fields/select_field.jst.ejs +0 -11
- data/app/assets/javascripts/luca/templates/fields/text_area_field.jst.ejs +0 -11
- data/app/assets/javascripts/luca/templates/fields/text_field.jst.ejs +0 -16
- data/app/assets/javascripts/luca/util/deprecations.coffee +0 -18
- data/app/assets/javascripts/luca/util/index.coffee +0 -4
- data/app/assets/javascripts/luca/util/keybindings.coffee +0 -24
- data/app/assets/javascripts/luca/util/logging.coffee +0 -30
- data/app/assets/javascripts/luca-ui.js +0 -1
- data/app/assets/stylesheets/luca/components/form_view.scss +0 -7
- data/app/assets/stylesheets/luca/containers/container.scss +0 -19
- data/app/assets/stylesheets/luca/development/index.css +0 -3
- data/app/assets/stylesheets/luca/index.css +0 -4
- data/bin/luca +0 -14
- data/docs/framework.json +0 -1
- data/docs/luca-framework-documentation.js +0 -1
- data/lib/generators/luca/application/application_generator.rb +0 -75
- data/lib/generators/luca/application/templates/controller.rb +0 -4
- data/lib/generators/luca/application/templates/index.html.erb +0 -19
- data/lib/generators/luca/application/templates/index.html.haml +0 -7
- data/lib/generators/luca/application/templates/javascripts/application.coffee +0 -18
- data/lib/generators/luca/application/templates/javascripts/collection_manager.coffee +0 -2
- data/lib/generators/luca/application/templates/javascripts/config.coffee +0 -3
- data/lib/generators/luca/application/templates/javascripts/dependencies.coffee +0 -3
- data/lib/generators/luca/application/templates/javascripts/home.jst.ejs +0 -2
- data/lib/generators/luca/application/templates/javascripts/index.coffee +0 -15
- data/lib/generators/luca/application/templates/javascripts/router.coffee +0 -4
- data/lib/guard/luca.rb +0 -84
- data/lib/luca/asset_compiler.rb +0 -117
- data/lib/luca/cli/generate.rb +0 -37
- data/lib/luca/cli/server.rb +0 -20
- data/lib/luca/cli/sync.rb +0 -40
- data/lib/luca/cli/watch.rb +0 -16
- data/lib/luca/cli.rb +0 -68
- data/lib/luca/collection/endpoint.rb +0 -38
- data/lib/luca/collection/file_backend.rb +0 -121
- data/lib/luca/collection/redis_backend.rb +0 -153
- data/lib/luca/collection.rb +0 -64
- data/lib/luca/compiled_asset.rb +0 -61
- data/lib/luca/component_definition.rb +0 -356
- data/lib/luca/luca_application.rb +0 -258
- data/lib/luca/project.rb +0 -73
- data/lib/luca/project_harness.rb +0 -96
- data/lib/luca/server.rb +0 -7
- data/lib/luca/stylesheet.rb +0 -35
- data/lib/luca/template_asset.rb +0 -64
- data/lib/luca/version.rb +0 -3
- data/lib/luca/watcher.rb +0 -72
- data/lib/railties/luca/tasks.rake +0 -38
- data/site/.bundle/config +0 -2
- data/site/.gitignore +0 -5
- data/site/.rvmrc +0 -1
- data/site/CHANGELOG.md +0 -41
- data/site/DOCS.md +0 -41
- data/site/Gemfile +0 -8
- data/site/Gemfile.lock +0 -134
- data/site/LICENSE.md +0 -19
- data/site/config.rb +0 -84
- data/site/helpers/site_helpers.rb +0 -20
- data/site/html5bp-docs/README.md +0 -38
- data/site/html5bp-docs/contribute.md +0 -104
- data/site/html5bp-docs/crossdomain.md +0 -21
- data/site/html5bp-docs/css.md +0 -135
- data/site/html5bp-docs/extend.md +0 -507
- data/site/html5bp-docs/faq.md +0 -77
- data/site/html5bp-docs/htaccess.md +0 -323
- data/site/html5bp-docs/html.md +0 -170
- data/site/html5bp-docs/js.md +0 -31
- data/site/html5bp-docs/misc.md +0 -25
- data/site/html5bp-docs/usage.md +0 -109
- data/site/readme.md +0 -47
- data/site/source/.htaccess +0 -540
- data/site/source/404.html +0 -157
- data/site/source/app/assets/javascripts/dependencies.js.coffee +0 -6
- data/site/source/app/assets/javascripts/docs/application.coffee +0 -64
- data/site/source/app/assets/javascripts/docs/collections/docs_documentation.coffee +0 -17
- data/site/source/app/assets/javascripts/docs/collections/github_repositories.coffee +0 -7
- data/site/source/app/assets/javascripts/docs/collections/index.coffee +0 -1
- data/site/source/app/assets/javascripts/docs/collections/luca_documentation.coffee +0 -17
- data/site/source/app/assets/javascripts/docs/collections/public_gists.coffee +0 -4
- data/site/source/app/assets/javascripts/docs/config.coffee +0 -5
- data/site/source/app/assets/javascripts/docs/index.coffee +0 -12
- data/site/source/app/assets/javascripts/docs/lib/router.coffee +0 -3
- data/site/source/app/assets/javascripts/docs/models/component.coffee +0 -99
- data/site/source/app/assets/javascripts/docs/models/github_repository.coffee +0 -3
- data/site/source/app/assets/javascripts/docs/models/index.coffee +0 -1
- data/site/source/app/assets/javascripts/docs/templates/component_documentation.jst.ejs +0 -55
- data/site/source/app/assets/javascripts/docs/templates/examples_browser/overview.jst.ejs +0 -4
- data/site/source/app/assets/javascripts/docs/templates/examples_browser/selector.jst.ejs +0 -11
- data/site/source/app/assets/javascripts/docs/templates/github_repository.jst.ejs +0 -4
- data/site/source/app/assets/javascripts/docs/templates/layouts/main.jst.ejs +0 -4
- data/site/source/app/assets/javascripts/docs/templates/left_navigation.jst.ejs +0 -5
- data/site/source/app/assets/javascripts/docs/templates/pages/getting_started.jst.ejs +0 -78
- data/site/source/app/assets/javascripts/docs/templates/pages/home.jst.ejs +0 -57
- data/site/source/app/assets/javascripts/docs/views/components/code_editor.coffee +0 -45
- data/site/source/app/assets/javascripts/docs/views/components/component_documentation.coffee +0 -72
- data/site/source/app/assets/javascripts/docs/views/index.coffee +0 -3
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source/details.coffee +0 -37
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source/list.coffee +0 -31
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source.coffee +0 -46
- data/site/source/app/assets/javascripts/docs/views/pages/component_editor.coffee +0 -10
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser/docs.coffee +0 -12
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser/source.coffee +0 -13
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser.coffee +0 -102
- data/site/source/app/assets/javascripts/docs/views/pages/home.coffee +0 -10
- data/site/source/app/assets/javascripts/docs/views/views/api_browser/index.coffee +0 -43
- data/site/source/app/assets/javascripts/docs/views/views/collection_view_examples/grid_layout_view_example.coffee +0 -14
- data/site/source/app/assets/javascripts/docs/views/views/collection_view_examples/table_view_example.coffee +0 -39
- data/site/source/app/assets/javascripts/docs/views/views/form_view_examples/basic_example.coffee +0 -38
- data/site/source/app/assets/javascripts/docs/views/views/form_view_examples/complex_layout.coffee +0 -110
- data/site/source/app/assets/javascripts/docs/views/views/top_navigation.coffee +0 -6
- data/site/source/app/assets/javascripts/docs-docs.js +0 -1
- data/site/source/app/assets/javascripts/luca-docs.js +0 -1
- data/site/source/app/assets/javascripts/luca-framework-documentation.js +0 -1
- data/site/source/app/assets/javascripts/site.js.coffee +0 -4
- data/site/source/app/assets/javascripts/vendor/codemirror.js +0 -4786
- data/site/source/app/assets/javascripts/vendor/coffeescript.js +0 -346
- data/site/source/app/assets/javascripts/vendor/css.js +0 -465
- data/site/source/app/assets/javascripts/vendor/htmlmixed.js +0 -84
- data/site/source/app/assets/javascripts/vendor/javascript.js +0 -422
- data/site/source/app/assets/javascripts/vendor/js-beautify.js +0 -1353
- data/site/source/app/assets/javascripts/vendor/modernizr-2.6.1.min.js +0 -4
- data/site/source/app/assets/javascripts/vendor/vim.js +0 -2511
- data/site/source/app/assets/stylesheets/docs/api-browser.css.scss +0 -5
- data/site/source/app/assets/stylesheets/docs/application.css.scss +0 -35
- data/site/source/app/assets/stylesheets/docs/browse-source.css.scss +0 -5
- data/site/source/app/assets/stylesheets/docs/scrollable-table.css.scss +0 -5
- data/site/source/app/assets/stylesheets/site.css.scss +0 -2
- data/site/source/app/assets/stylesheets/vendor/codemirror.css +0 -240
- data/site/source/app/assets/stylesheets/vendor/prettify-tomorrow-night-bright.css +0 -160
- data/site/source/app/assets/stylesheets/vendor/twilight.css +0 -26
- data/site/source/crossdomain.xml +0 -15
- data/site/source/documentation.html.haml +0 -1
- data/site/source/favicon_base.png +0 -0
- data/site/source/humans.txt +0 -15
- data/site/source/images/background.png +0 -0
- data/site/source/images/middleman.png +0 -0
- data/site/source/index.html.haml +0 -1
- data/site/source/layouts/layout.haml +0 -55
- data/site/source/readme.md +0 -63
- data/site/source/robots.txt +0 -3
- data/spec/javascripts/components/collection_view_spec.coffee +0 -59
- data/spec/javascripts/components/controller_spec.coffee +0 -62
- data/spec/javascripts/components/form_view_spec.coffee +0 -162
- data/spec/javascripts/components/multi_collection_view_spec.coffee +0 -5
- data/spec/javascripts/components/table_view_spec.coffee +0 -17
- data/spec/javascripts/concerns/collection_event_bindings_spec.coffee +0 -15
- data/spec/javascripts/concerns/dom_helpers_spec.coffee +0 -16
- data/spec/javascripts/concerns/filterable_spec.coffee +0 -25
- data/spec/javascripts/concerns/model_presenter_spec.coffee +0 -31
- data/spec/javascripts/concerns/state_model_spec.coffee +0 -55
- data/spec/javascripts/containers/card_view_spec.coffee +0 -108
- data/spec/javascripts/core/concerns_spec.coffee +0 -88
- data/spec/javascripts/core/container_spec.coffee +0 -287
- data/spec/javascripts/core/define_spec.coffee +0 -116
- data/spec/javascripts/core/events_spec.coffee +0 -26
- data/spec/javascripts/core/field_spec.coffee +0 -4
- data/spec/javascripts/core/util_spec.coffee +0 -24
- data/spec/javascripts/dependencies/index.coffee +0 -3
- data/spec/lib/component_definition_spec.rb +0 -63
- data/spec/lib/input_compiler_spec.rb +0 -9
- data/spec/lib/luca_application_spec.rb +0 -30
- data/spec/support/fixtures/application.coffee +0 -45
- data/spec/support/fixtures/component.coffee +0 -34
- data/tutorials/component-driven-design.md +0 -140
- data/tutorials/structure-of-a-project.md +0 -63
- data/vendor/assets/javascripts/backbone-ext.js +0 -21
- data/vendor/assets/javascripts/backbone-min.js +0 -42
- data/vendor/assets/javascripts/backbone-query.min.js +0 -1
- data/vendor/assets/javascripts/bootstrap.min.js +0 -7
- data/vendor/assets/javascripts/codemirror-ui.js +0 -503
- data/vendor/assets/javascripts/hogan.js +0 -707
- data/vendor/assets/javascripts/inflections.js +0 -656
- data/vendor/assets/javascripts/jasmine-html.js +0 -190
- data/vendor/assets/javascripts/jasmine.js +0 -2476
- data/vendor/assets/javascripts/jquery.js +0 -5
- data/vendor/assets/javascripts/keymaster.min.js +0 -4
- data/vendor/assets/javascripts/luca-dependencies.min.js +0 -8
- data/vendor/assets/javascripts/luca-development.min.js +0 -1
- data/vendor/assets/javascripts/luca-spec.js +0 -11
- data/vendor/assets/javascripts/luca.full.min.js +0 -12
- data/vendor/assets/javascripts/luca.min.js +0 -5
- data/vendor/assets/javascripts/sinon.js +0 -3469
- data/vendor/assets/javascripts/underscore-min.js +0 -1
- data/vendor/assets/javascripts/underscore-string.min.js +0 -1
- data/vendor/assets/stylesheets/bootstrap-responsive.min.css +0 -9
- data/vendor/assets/stylesheets/bootstrap.min.css +0 -9
- data/vendor/assets/stylesheets/luca-components.css +0 -202
- data/vendor/assets/stylesheets/luca-development.css +0 -23
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.Docs = window.Docs || {}; window.Docs.documentation = [{"source":"./site/source/javascripts/docs/views/components/api_browser/index.coffee","defined_in_file":"./site/source/javascripts/docs/views/components/api_browser/index.coffee","type":"component_definition","starts_on_line":4,"class_name":"Docs.components.ApiBrowser","header_documentation":"<p>The <code>Docs.components.ApiBrowser</code> is an example of using\na <code>Luca.Container</code> with a <code>@componentEvents</code> configuration\nto broker communication between two child components.</p>\n","type_alias":"api_browser","css_class_identifier":"docs-api-browser","defines_methods":{"afterInitialize":{"defined_on_line":29,"documentation":"","arguments":[]},"runExample":{"defined_on_line":33,"documentation":"","arguments":[]},"loadUrl":{"defined_on_line":37,"documentation":"","arguments":[]}},"defines_properties":{"componentEvents":{"defined_on_line":8,"documentation":"","default":null},"type":{"defined_on_line":12,"documentation":"","default":"\"container\""},"rowFluid":{"defined_on_line":13,"documentation":"","default":"true"},"className":{"defined_on_line":14,"documentation":"","default":"\"url-selector\""},"components":{"defined_on_line":15,"documentation":"","default":"["},"tagName":{"defined_on_line":26,"documentation":"","default":"\"pre\""},"role":{"defined_on_line":28,"documentation":"","default":"\"output\""}},"source_file_contents":"# The `Docs.components.ApiBrowser` is an example of using\n# a `Luca.Container` with a `@componentEvents` configuration\n# to broker communication between two child components.\nview = Docs.register \"Docs.components.ApiBrowser\"\nview.extends \"Luca.Container\"\n\nview.configuration\n componentEvents:\n \"* button:click\" : \"loadUrl\"\n\nview.contains\n type: \"container\"\n rowFluid: true\n className: \"url-selector\"\n components:[\n type: \"text_field\"\n name: \"endpoint_url\"\n label: \"Enter a URL\"\n span: 9\n ,\n type: \"button_field\"\n input_value: \"Browse\"\n span: 3\n ]\n,\n tagName: \"pre\"\n className: \"prettyprint pre-scrollable\"\n role: \"output\"\n afterInitialize: ()->\n @$el.html(\"Loading...\")\n\nview.privateMethods\n runExample: ()->\n @findComponentByName(\"endpoint_url\", true).setValue(\"https://api.github.com/users/datapimp/gists\")\n @loadUrl()\n\n loadUrl: ()->\n url = @findComponentByName(\"endpoint_url\", true).getValue()\n $.get url, (parsed, state, options)=>\n @getOutput().$html( options.responseText )\n window.prettyPrint()\n\nview.register()"},{"source":"./site/source/javascripts/docs/views/components/component_documentation.coffee","defined_in_file":"./site/source/javascripts/docs/views/components/component_documentation.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.ComponentDocumentation","header_documentation":"","type_alias":"component_documentation","css_class_identifier":"docs-component-documentation","defines_methods":{"loadComponent":{"defined_on_line":22,"documentation":"<p>Loads a component definition from the documentation objects that\nare generated by the Luca gem's Luca::LucaApplication#export tool.\nThese objects are the result of parsing component definition files\nand determining the public and private properties and methods, and\nthe documentation that is rendered from their comments.</p>\n","arguments":[{"argument":"@component","value":null}]},"reset":{"defined_on_line":42,"documentation":"","arguments":[]},"renderMethodGroup":{"defined_on_line":47,"documentation":"","arguments":[{"argument":"group","value":"\"public\""}]},"renderPropertyGroup":{"defined_on_line":62,"documentation":"","arguments":[{"argument":"group","value":"\"public\""}]}},"defines_properties":{"bodyTemplate":{"defined_on_line":5,"documentation":"","default":"\"component_documentation\""},"displaySource":{"defined_on_line":10,"documentation":"<p>If set to true, we will render the source code\nfor the component in addition to all of the information\nabout the methods and properties</p>\n","default":"false"},"displayHeader":{"defined_on_line":14,"documentation":"<p>If set to true, we will render the header documentation\nthat is contained in the component</p>\n","default":"false"}},"source_file_contents":"view = Docs.register \"Docs.views.ComponentDocumentation\"\nview.extends \"Luca.View\"\n\nview.privateConfiguration\n bodyTemplate: \"component_documentation\"\n\n # If set to true, we will render the source code\n # for the component in addition to all of the information\n # about the methods and properties\n displaySource: false\n\n # If set to true, we will render the header documentation\n # that is contained in the component\n displayHeader: false\n\nview.publicMethods\n # Loads a component definition from the documentation objects that\n # are generated by the Luca gem's Luca::LucaApplication#export tool.\n # These objects are the result of parsing component definition files\n # and determining the public and private properties and methods, and \n # the documentation that is rendered from their comments.\n loadComponent: (@component)->\n @reset()\n\n for section in [\"private\", \"public\"]\n @renderMethodGroup(section) \n @renderPropertyGroup(section) \n\n @$('.source').hide()\n\n if @displayHeader is true\n @$('.header-documentation').show()\n @$('.header-documentation').html( @component.get(\"header_documentation\") )\n\n if @displaySource is true\n @$('.source').show()\n @$('pre.source').html( @component.contentsWithoutHeader() ) \n\n @$('pre').addClass('prettyprint')\n\nview.privateMethods\n reset: ()->\n @$('.table tbody').empty()\n @$('.properties,.methods').hide()\n @$('.header-documentation').hide()\n\n renderMethodGroup: (group=\"public\")->\n source = @component?.documentation()?.details[\"#{ group }Methods\"]\n return if _.isEmpty(source)\n prototype = Luca.util.resolve(@component.get(\"class_name\"))?.prototype \n list = @$(\".methods.#{ group }\").show().find('.table tbody')\n\n for method, details of source when _.isFunction(prototype[method])\n details ||= {}\n arg_details = _( details.arguments ).reduce (memo,pair)->\n memo += \"#{ pair.argument }\"\n memo += \"= #{ pair.value || 'undefined' }\" if pair.value?\n memo += \"<br/>\"\n , \"\"\n list.append \"<tr><td>#{ method }</td><td>#{ arg_details }</td><td>#{ details.documentation || \"\" }</td></tr>\"\n\n renderPropertyGroup: (group=\"public\")->\n source = @component?.documentation()?.details[\"#{ group }Properties\"]\n return if _.isEmpty(source)\n prototype = Luca.util.resolve(@component.get(\"class_name\"))?.prototype\n list = @$(\".properties.#{ group }\").show().find('.table tbody')\n\n for method, details of source when not _.isFunction(prototype[method])\n details ||= {}\n list.append \"<tr><td>#{ method }</td><td>#{ details.default || \"\" }</td><td>#{ details.documentation || \"\" }</td></tr>\"\n\nview.register()\n"},{"source":"./site/source/javascripts/docs/views/pages/browse_source/details.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/browse_source/details.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.ComponentDetails","header_documentation":"","type_alias":"component_details","css_class_identifier":"docs-component-details","defines_methods":{"loadComponent":{"defined_on_line":10,"documentation":"","arguments":[{"argument":"model","value":null}]},"afterRender":{"defined_on_line":21,"documentation":"","arguments":[]},"load":{"defined_on_line":25,"documentation":"","arguments":[{"argument":"model","value":null}]},"prettyPrint":{"defined_on_line":35,"documentation":"<p>Applies syntax highlighting to all pre elements</p>\n","arguments":[]}},"defines_properties":{"rowFluid":{"defined_on_line":5,"documentation":"","default":"true"},"role":{"defined_on_line":8,"documentation":"","default":"\"documentation\""},"span":{"defined_on_line":9,"documentation":"","default":"5"},"type":{"defined_on_line":15,"documentation":"","default":"\"component_documentation\""},"displaySource":{"defined_on_line":17,"documentation":"","default":"true"}},"source_file_contents":"view = Docs.register \"Docs.views.ComponentDetails\"\nview.extends \"Luca.Container\"\n\nview.configuration\n rowFluid: true\n\nview.contains\n role: \"documentation\"\n span: 5\n loadComponent: (model)->\n @$el.empty()\n @$el.append(\"<h2>#{ model.get('class_name') }</h2>\")\n @$el.append(\"<div class='header-documentation'>#{ model.get('header_documentation') }</div>\")\n,\n type: \"component_documentation\"\n role: \"details\"\n displaySource: true\n span: 7\n\nview.defines\n afterRender: ()->\n @getDetails().$el.hide()\n @getDocumentation().$el.hide()\n\n load: (model)->\n @getDetails().$el.show()\n @getDocumentation().$el.show()\n\n @getDetails().loadComponent(model)\n @getDocumentation().loadComponent(model)\n\n @prettyPrint()\n\n # Applies syntax highlighting to all pre elements\n prettyPrint: ()-> \n @$('pre').addClass('prettyprint')\n window.prettyPrint?()\n"},{"source":"./site/source/javascripts/docs/views/pages/browse_source/list.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/browse_source/list.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.ComponentList","header_documentation":"","type_alias":"component_list","css_class_identifier":"docs-component-list","defines_methods":{},"defines_properties":{"paginatable":{"defined_on_line":4,"documentation":"","default":"false"},"maxHeight":{"defined_on_line":5,"documentation":"","default":"200"},"collection":{"defined_on_line":6,"documentation":"","default":"\"luca_documentation\""},"columns":{"defined_on_line":7,"documentation":"","default":"["}},"source_file_contents":"view = Docs.register \"Docs.views.ComponentList\"\nview.extends \"Luca.components.ScrollableTable\"\nview.defines\n paginatable: false\n maxHeight: 200\n collection: \"luca_documentation\"\n columns:[\n reader: \"class_name\"\n width: \"20%\"\n renderer: (name)->\n \"<a class='link'>#{ name }</a>\"\n ,\n reader: \"class_name\"\n header: \"Extends From\"\n width: \"20%\"\n renderer: (className)->\n if component = Luca.util.resolve(className)\n name = component.prototype.componentMetaData()?.meta[\"super class name\"]\n \"<a class='link'>#{ name }</a>\"\n ,\n reader: \"type_alias\"\n header: \"Shortcut\"\n width: \"10%\"\n ,\n reader: \"defined_in_file\"\n header: \"<i class='icon icon-github'/> Github\"\n renderer: (file)->\n shortened = file.split(\"javascripts/luca/\")[1]\n \"<a href='https://github.com/datapimp/luca/blob/master/app/assets/javascripts/luca/#{ shortened }'>#{ shortened }</a>\"\n ]\n\n"},{"source":"./site/source/javascripts/docs/views/pages/browse_source.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/browse_source.coffee","type":"component_definition","starts_on_line":3,"class_name":"Docs.views.BrowseSource","header_documentation":"","type_alias":"browse_source","css_class_identifier":"docs-browse-source","defines_methods":{"index":{"defined_on_line":18,"documentation":"","arguments":[]},"show":{"defined_on_line":21,"documentation":"","arguments":[{"argument":"componentName","value":null}]},"selectComponent":{"defined_on_line":29,"documentation":"","arguments":[{"argument":"e","value":null}]}},"defines_properties":{"autoBindEventHandlers":{"defined_on_line":7,"documentation":"","default":"true"},"events":{"defined_on_line":8,"documentation":"","default":null},"component":{"defined_on_line":12,"documentation":"","default":"\"component_list\""}},"source_file_contents":"#= require_tree ./browse_source \n#= require_self\nview = Docs.register \"Docs.views.BrowseSource\"\nview.extends \"Luca.Container\"\n\nview.configuration\n autoBindEventHandlers: true\n events:\n \"click .docs-component-list a.link\" : \"selectComponent\"\n\nview.contains\n component: \"component_list\"\n,\n component: \"component_details\"\n\nview.privateMethods\n\n index: ()->\n @selectComponent(@getComponentList().getCollection().at(0))\n\n show: (componentName)-> \n component = @getComponentList().getCollection().detect (model)->\n model.get(\"class_name\") is componentName\n\n return @index() unless component?\n\n @selectComponent(component)\n \n selectComponent: (e)->\n list = @getComponentList()\n details = @getComponentDetails() \n\n if Luca.isBackboneModel(e) \n model = e\n index = list.getCollection().indexOf(model)\n row = list.$(\"tr[data-index='#{ index }']\")\n else\n $target = @$(e.target)\n row = $target.parents('tr').eq(0)\n index = row.data('index')\n model = list.getCollection().at(index) \n\n list.$('tr').removeClass('info')\n row.addClass('info')\n details.load(model)\n\n"},{"source":"./site/source/javascripts/docs/views/pages/component_editor.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/component_editor.coffee","type":"component_definition","starts_on_line":3,"class_name":"Docs.views.ComponentEditor","header_documentation":"","type_alias":"component_editor","css_class_identifier":"docs-component-editor","defines_methods":{},"defines_properties":{},"source_file_contents":"#= require_tree ./component_editor\n#= require_self\nview = Docs.register \"Docs.views.ComponentEditor\"\nview.extends \"Luca.Container\"\n\n"},{"source":"./site/source/javascripts/docs/views/pages/examples_browser/docs.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/examples_browser/docs.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.ExampleDocs","header_documentation":"","type_alias":"example_docs","css_class_identifier":"docs-example-docs","defines_methods":{"beforeRender":{"defined_on_line":6,"documentation":"","arguments":[]}},"defines_properties":{"collection":{"defined_on_line":4,"documentation":"","default":"\"docs_documentation\""},"displayHeader":{"defined_on_line":5,"documentation":"","default":"true"}},"source_file_contents":"view = Docs.register \"Docs.views.ExampleDocs\"\nview.extends \"Docs.views.ComponentDocumentation\"\nview.defines\n collection: \"docs_documentation\"\n displayHeader: true\n beforeRender: ()->\n component = @collection.detect (component)=>\n component.get(\"type_alias\") is @example\n\n if component?\n @loadComponent(component)\n\n"},{"source":"./site/source/javascripts/docs/views/pages/examples_browser/source.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/examples_browser/source.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.ExampleSource","header_documentation":"","type_alias":"example_source","css_class_identifier":"docs-example-source","defines_methods":{"beforeRender":{"defined_on_line":7,"documentation":"","arguments":[]}},"defines_properties":{"tagName":{"defined_on_line":4,"documentation":"","default":"\"pre\""},"className":{"defined_on_line":5,"documentation":"","default":"\"prettyprint pre-scrollable\""},"collection":{"defined_on_line":6,"documentation":"","default":"\"docs_documentation\""}},"source_file_contents":"view = Docs.register \"Docs.views.ExampleSource\"\nview.extends \"Luca.View\"\nview.defines\n tagName: \"pre\"\n className: \"prettyprint pre-scrollable\"\n collection: \"docs_documentation\"\n beforeRender: ()->\n component = @collection.detect (component)=>\n component.get(\"type_alias\") is @example\n\n @$el.html( component.get(\"source_file_contents\") )\n window.prettyPrint()\n\n"},{"source":"./site/source/javascripts/docs/views/pages/examples_browser.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/examples_browser.coffee","type":"component_definition","starts_on_line":4,"class_name":"Docs.views.ExamplesBrowser","header_documentation":"","type_alias":"examples_browser","css_class_identifier":"docs-examples-browser","defines_methods":{"wrapExampleComponents":{"defined_on_line":42,"documentation":"","arguments":[]},"afterInitialize":{"defined_on_line":76,"documentation":"","arguments":[]},"show":{"defined_on_line":80,"documentation":"","arguments":[{"argument":"exampleName","value":"0"},{"argument":"view","value":"\"component\""}]},"index":{"defined_on_line":86,"documentation":"","arguments":[]}},"defines_properties":{"title":{"defined_on_line":8,"documentation":"","default":"\"API Browser\""},"type":{"defined_on_line":9,"documentation":"","default":"\"api_browser\""},"name":{"defined_on_line":10,"documentation":"","default":"\"api_browser\""},"activeCard":{"defined_on_line":29,"documentation":"","default":"0"},"tab_position":{"defined_on_line":30,"documentation":"","default":"\"left\""},"defaults":{"defined_on_line":31,"documentation":"","default":null},"afterSelect":{"defined_on_line":37,"documentation":"<p>Hack</p>\n","default":"_.debounce ()->"}},"source_file_contents":"#= require_tree ./examples_browser\n#= require_self\n\npage = Docs.register \"Docs.views.ExamplesBrowser\"\npage.extends \"Luca.containers.TabView\"\n\npage.contains\n title: \"API Browser\"\n type: \"api_browser\"\n name: \"api_browser\"\n,\n title: \"Basic FormView\"\n type: \"basic_form_view\"\n name: \"basic_form_view\"\n,\n title: \"Complex Layout FormView\"\n type: \"complex_layout_form\"\n name: \"complex_layout_form\"\n,\n title: \"Scrollable Table\"\n type: \"table_view_example\"\n name: \"table_view_example\"\n,\n title: \"Grid Layout CollectionView\"\n type: \"grid_layout_view_example\"\n name: \"grid_layout_view_example\"\n\npage.privateConfiguration\n activeCard: 0\n tab_position: \"left\"\n defaults:\n activation: ()->\n Docs().router.navigate(\"#examples/#{ @name }/source\", false)\n\npage.privateMethods\n # Hack\n afterSelect: _.debounce ()->\n if active = @activeComponent()\n active.findComponentByName?(\"component\")?.runExample?()\n , 10\n\n wrapExampleComponents: ()->\n wrapped = []\n\n wrapped = _(@components).map (component,index)->\n title: component.title\n name: component.name\n components:[\n type: \"card\"\n role: \"view_selector\"\n afterInitialize: ()->\n @$el.append(\"<h3>#{ component.title } Example</h3>\")\n components:[\n type: component.type\n name: \"component\"\n activation: ()->\n @runExample?()\n ,\n type: \"example_source\"\n example: component.name\n name: \"source\"\n ,\n type: \"example_docs\"\n example: component.name\n name: \"documentation\"\n ] \n ,\n bodyTemplate: \"examples_browser/selector\"\n bodyTemplateVars: ()->\n example_name: component.name\n ]\n\n @components = wrapped\n @components.unshift title: \"Overview\", bodyTemplate: \"examples_browser/overview\"\n\n afterInitialize: ()->\n @wrapExampleComponents()\n\npage.publicMethods\n show: (exampleName=0, view=\"component\")->\n @activate exampleName, false, ()->\n @getViewSelector().activate(view)\n @$(\"li\").removeClass(\"active\")\n @$(\"li.#{view}\").addClass(\"active\")\n\n index: ()->\n @show()\n\npage.register()"},{"source":"./site/source/javascripts/docs/views/pages/home.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/home.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.Home","header_documentation":"","type_alias":"home","css_class_identifier":"docs-home","defines_methods":{"index":{"defined_on_line":7,"documentation":"","arguments":[]}},"defines_properties":{"template":{"defined_on_line":4,"documentation":"","default":"\"pages/home\""}},"source_file_contents":"page = Docs.register \"Docs.views.Home\"\npage.extends \"Luca.components.Page\"\npage.configuration\n template: \"pages/home\"\n\npage.defines\n index: ()->\n @trigger \"index\"\n\npage.register()"},{"source":"./site/source/javascripts/docs/views/views/collection_view_examples/grid_layout_view_example.coffee","defined_in_file":"./site/source/javascripts/docs/views/views/collection_view_examples/grid_layout_view_example.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.GridLayoutViewExample","header_documentation":"","type_alias":"grid_layout_view_example","css_class_identifier":"docs-grid-layout-view-example","defines_methods":{"runExample":{"defined_on_line":11,"documentation":"","arguments":[]}},"defines_properties":{"collection":{"defined_on_line":5,"documentation":"","default":"\"github_repositories\""},"itemPerRow":{"defined_on_line":6,"documentation":"","default":"4"},"paginatable":{"defined_on_line":7,"documentation":"","default":"12"},"itemTemplate":{"defined_on_line":8,"documentation":"","default":"\"github_repository\""}},"source_file_contents":"view = Docs.register \"Docs.views.GridLayoutViewExample\"\nview.extends \"Luca.components.GridLayoutView\"\n\nview.publicConfiguration\n collection: \"github_repositories\"\n itemPerRow: 4\n paginatable: 12\n itemTemplate: \"github_repository\"\n\nview.publicMethods\n runExample: ()->\n @getCollection().fetch()\n\nview.register()\n"},{"source":"./site/source/javascripts/docs/views/views/collection_view_examples/table_view_example.coffee","defined_in_file":"./site/source/javascripts/docs/views/views/collection_view_examples/table_view_example.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.TableViewExample","header_documentation":"","type_alias":"table_view_example","css_class_identifier":"docs-table-view-example","defines_methods":{"runExample":{"defined_on_line":36,"documentation":"","arguments":[]}},"defines_properties":{"paginatable":{"defined_on_line":7,"documentation":"<p>Only render 100 models at a time. The <code>Luca.CollectionView</code> has\nautomatic pagination control rendering, if you specify a pagination\nview class and render area.</p>\n","default":"100"},"maxHeight":{"defined_on_line":10,"documentation":"<p>The scrollable table element has a max height.</p>\n","default":"300"},"collection":{"defined_on_line":15,"documentation":"<p>The string "github_repositories" is an alias for the collection manager\nwhich is created by the <code>Docs.Application</code>. It represents a singular\nglobal instance of the <code>Docs.collections.GithubRepositories</code> collection.</p>\n","default":"\"github_repositories\""},"columns":{"defined_on_line":23,"documentation":"<p>The <code>Luca.components.TableView</code> component accepts an array of column\nconfigurations. Each column can specify the following properties:\n- header\n- reader ( a method, or attribute on the collection's model )\n- renderer ( a custom function which renders the model / reader )\n- width ( a percentage width for the column )</p>\n","default":"["}},"source_file_contents":"view = Docs.register \"Docs.views.TableViewExample\"\nview.extends \"Luca.components.ScrollableTable\"\nview.publicConfiguration\n # Only render 100 models at a time. The `Luca.CollectionView` has\n # automatic pagination control rendering, if you specify a pagination\n # view class and render area. \n paginatable: 100\n \n # The scrollable table element has a max height. \n maxHeight: 300\n\n # The string \"github_repositories\" is an alias for the collection manager\n # which is created by the `Docs.Application`. It represents a singular\n # global instance of the `Docs.collections.GithubRepositories` collection. \n collection: \"github_repositories\"\n\n # The `Luca.components.TableView` component accepts an array of column\n # configurations. Each column can specify the following properties:\n # - header\n # - reader ( a method, or attribute on the collection's model )\n # - renderer ( a custom function which renders the model / reader )\n # - width ( a percentage width for the column )\n columns:[\n reader: \"name\"\n renderer: (name, model)->\n \"<a href=#{ model.get('html_url') }>#{ name }</a>\"\n , \n reader: \"description\"\n ,\n reader: \"language\"\n ,\n reader: \"watchers\"\n ]\n\nview.publicMethods\n runExample: ()->\n @getCollection().fetch()\n\nview.register()"},{"source":"./site/source/javascripts/docs/views/views/form_view_examples/basic_example.coffee","defined_in_file":"./site/source/javascripts/docs/views/views/form_view_examples/basic_example.coffee","type":"component_definition","starts_on_line":6,"class_name":"Docs.views.BasicFormView","header_documentation":"<p>The <code>Docs.views.BasicFormView</code> is an example of the <code>Luca.components.FormView</code>.\nIn this basic example, the form contains a range of different fields. They are\nrendered one on top of another. You can get more advanced and nest containers within\nyour form, or use a <code>@bodyTemplate</code> and specify your own DOM structure, and assign\ncomponents to custom CSS selectors within it.</p>\n","type_alias":"basic_form_view","css_class_identifier":"docs-basic-form-view","defines_methods":{},"defines_properties":{"defaults":{"defined_on_line":12,"documentation":"<p>Any values you specify in the <code>@defaults</code> property will be\nset on each of the components in this container.</p>\n","default":null},"components":{"defined_on_line":19,"documentation":"<p>You can manually define a <code>@components</code> property, or in your component\ndefinition you can use the special <code>contains</code> directive, the only difference\nis your personal preference for readability. I did it this way</p>\n","default":"["}},"source_file_contents":"# The `Docs.views.BasicFormView` is an example of the `Luca.components.FormView`.\n# In this basic example, the form contains a range of different fields. They are\n# rendered one on top of another. You can get more advanced and nest containers within\n# your form, or use a `@bodyTemplate` and specify your own DOM structure, and assign\n# components to custom CSS selectors within it.\nform = Docs.register \"Docs.views.BasicFormView\"\nform.extends \"Luca.components.FormView\"\n\nform.privateConfiguration\n # Any values you specify in the `@defaults` property will be\n # set on each of the components in this container.\n defaults:\n type: \"text\"\n\nform.publicConfiguration\n # You can manually define a `@components` property, or in your component\n # definition you can use the special `contains` directive, the only difference\n # is your personal preference for readability. I did it this way \n components:[\n label: \"Text Field One\"\n ,\n type: \"select\"\n label: \"Select Field One\"\n collection:\n data:[\n ['Alpha','Alpha']\n ['Bravo','Bravo']\n ['Charlie','Charlie']\n ['Delta','Delta']\n ]\n ,\n type: \"checkbox_field\"\n label: \"Checkbox Field\"\n\n ]\n\nform.register() \n\n"},{"source":"./site/source/javascripts/docs/views/views/form_view_examples/complex_layout.coffee","defined_in_file":"./site/source/javascripts/docs/views/views/form_view_examples/complex_layout.coffee","type":"component_definition","starts_on_line":9,"class_name":"Docs.views.ComplexLayoutForm","header_documentation":"<p>The <code>Docs.views.ComplexLayoutForm</code> is an example of a <code>Luca.components.FormView</code> which contains\na nested container, and which uses the bootstrap grid helper properties <code>@rowFluid</code> and <code>@span</code> \nto arrange the nested components inside of a grid layout.\nIn addition to laying out the form components visually, there is a nested <code>Luca.containers.CardView</code>\ncomponent which shows / hides various field sets depending on what options you select on the form.\nThis is an example of how Luca framework components can be assembled together arbitrarily to build\nwhatever type of user interface you can imagine.</p>\n","type_alias":"complex_layout_form","css_class_identifier":"docs-complex-layout-form","defines_methods":{"selectGroup":{"defined_on_line":30,"documentation":"<p>The selectGroup method is bound to the componentEvent listener. Whenever\nthe group_selector field changes its value, we want to change which field\ngroup is visible on the form.</p>\n","arguments":[]}},"defines_properties":{"rowFluid":{"defined_on_line":17,"documentation":"<p>By setting <code>@rowFluid</code> to true, this container\nwill support the twitter bootstrap grid layout. Applying\nthe <code>@span</code> property to the direct children of this component\nwill control their width</p>\n","default":"true"},"componentEvents":{"defined_on_line":23,"documentation":"<p>Here is an example of using the <code>@componentEvents</code> property to listen\nto the change event on the select field identified by the role 'group_selector'.\nonce that field emits its change event, we change the active display card in the\nnested card selector.</p>\n","default":null},"type":{"defined_on_line":36,"documentation":"","default":"\"container\""},"span":{"defined_on_line":37,"documentation":"","default":"6"},"components":{"defined_on_line":38,"documentation":"","default":"["}},"source_file_contents":"# The `Docs.views.ComplexLayoutForm` is an example of a `Luca.components.FormView` which contains\n# a nested container, and which uses the bootstrap grid helper properties `@rowFluid` and `@span` \n# to arrange the nested components inside of a grid layout.\n#\n# In addition to laying out the form components visually, there is a nested `Luca.containers.CardView`\n# component which shows / hides various field sets depending on what options you select on the form.\n# This is an example of how Luca framework components can be assembled together arbitrarily to build\n# whatever type of user interface you can imagine.\nform = Docs.register \"Docs.views.ComplexLayoutForm\"\nform.extends \"Luca.components.FormView\"\n\nform.privateConfiguration\n # By setting `@rowFluid` to true, this container\n # will support the twitter bootstrap grid layout. Applying\n # the `@span` property to the direct children of this component\n # will control their width \n rowFluid: true\n\n # Here is an example of using the `@componentEvents` property to listen\n # to the change event on the select field identified by the role 'group_selector'.\n # once that field emits its change event, we change the active display card in the\n # nested card selector.\n componentEvents:\n \"group_selector on:change\" : \"selectGroup\"\n\nform.privateMethods\n # The selectGroup method is bound to the componentEvent listener. Whenever\n # the group_selector field changes its value, we want to change which field\n # group is visible on the form.\n selectGroup: ()->\n desiredGroup = @getGroupSelector().getValue()\n selector = @getGroupDisplaySelector()\n selector.activate(desiredGroup) \n\nform.contains\n type: \"container\"\n span: 6\n components:[\n type: \"text\"\n label: \"Field One\"\n ,\n type: \"text\"\n label: \"Field Two\"\n ,\n type: \"text\"\n label: \"Field Three\"\n ]\n,\n type: \"container\"\n span: 6\n components:[\n label: \"Select a Group\"\n type: \"select\"\n role: \"group_selector\"\n includeBlank: false\n valueType: \"string\"\n collection:\n data:[\n [\"alpha\",\"Alpha Group\"]\n [\"bravo\", \"Bravo Group\"]\n [\"charlie\",\"Charlie Group\"]\n ]\n ,\n type: \"card\"\n role: \"group_display_selector\"\n components:[\n name: \"alpha\"\n defaults:\n type: \"text\"\n components:[\n type: \"view\"\n tagName: \"h4\"\n bodyTemplate: ()-> \"Group One\"\n , \n label: \"Alpha\"\n ,\n label: \"Bravo\"\n ,\n label: \"Charlie\"\n ]\n ,\n name: \"bravo\"\n defaults:\n type: \"checkbox_field\"\n components:[\n type: \"view\"\n tagName: \"h4\"\n bodyTemplate: ()-> \"Group Two\"\n ,\n label: \"One\"\n ,\n label: \"Two\"\n ]\n ,\n name: \"charlie\"\n defaults:\n type: \"button_field\" \n components:[\n type: \"view\"\n tagName: \"h4\"\n bodyTemplate: ()-> \"Group Three\"\n ,\n input_value: \"Button One\"\n icon_class: \"chevron-up\"\n ,\n input_value: \"Button Two\"\n icon_class: \"pencil\"\n ] \n ]\n ]"},{"source":"./site/source/javascripts/docs/views/views/top_navigation.coffee","defined_in_file":"./site/source/javascripts/docs/views/views/top_navigation.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.TopNavigation","header_documentation":"","type_alias":"top_navigation","css_class_identifier":"docs-top-navigation","defines_methods":{},"defines_properties":{"brand":{"defined_on_line":4,"documentation":"","default":"\"Luca.js\""},"inverse":{"defined_on_line":5,"documentation":"","default":"true"},"orientation":{"defined_on_line":6,"documentation":"","default":"\"top\""}},"source_file_contents":"nav = Docs.register \"Docs.views.TopNavigation\"\nnav.extends \"Luca.components.NavBar\"\nnav.defines\n brand: \"Luca.js\"\n inverse: true\n orientation: \"top\"\n"},{"source":"./site/source/javascripts/docs/collections/docs_documentation.coffee","defined_in_file":"./site/source/javascripts/docs/collections/docs_documentation.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.collections.DocsDocumentation","header_documentation":"","type_alias":"docs_documentation","css_class_identifier":"","defines_methods":{"getSource":{"defined_on_line":7,"documentation":"","arguments":[]},"fetch":{"defined_on_line":10,"documentation":"","arguments":[]}},"defines_properties":{"model":{"defined_on_line":4,"documentation":"","default":"Docs.models.Component"},"appNamespace":{"defined_on_line":5,"documentation":"","default":"\"Docs\""}},"source_file_contents":"collection = Docs.register \"Docs.collections.DocsDocumentation\"\ncollection.extends \"Luca.Collection\"\ncollection.defines\n model: Docs.models.Component\n appNamespace: \"Docs\"\n\n getSource: ()->\n Luca.util.resolve(\"#{ @appNamespace }.documentation\")\n\n fetch: ()->\n models = _( @getSource() ).sortBy(\"class_name\")\n found = {}\n models = for model in models when not found[ model.class_name ]\n found[ model.class_name ] = true\n model\n\n @reset(models)"},{"source":"./site/source/javascripts/docs/collections/github_repositories.coffee","defined_in_file":"./site/source/javascripts/docs/collections/github_repositories.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.collections.GithubRepositories","header_documentation":"","type_alias":"github_repositories","css_class_identifier":"","defines_methods":{"url":{"defined_on_line":5,"documentation":"","arguments":[]}},"defines_properties":{"model":{"defined_on_line":4,"documentation":"","default":"Docs.models.GithubRepository"}},"source_file_contents":"collection = Docs.register \"Docs.collections.GithubRepositories\"\ncollection.extends \"Luca.Collection\"\ncollection.defines\n model: Docs.models.GithubRepository\n url: ()->\n \"https://api.github.com/users/datapimp/repos\"\n \n"},{"source":"./site/source/javascripts/docs/collections/luca_documentation.coffee","defined_in_file":"./site/source/javascripts/docs/collections/luca_documentation.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.collections.LucaDocumentation","header_documentation":"","type_alias":"luca_documentation","css_class_identifier":"","defines_methods":{"getSource":{"defined_on_line":7,"documentation":"","arguments":[]},"fetch":{"defined_on_line":10,"documentation":"","arguments":[]}},"defines_properties":{"model":{"defined_on_line":4,"documentation":"","default":"Docs.models.Component"},"appNamespace":{"defined_on_line":5,"documentation":"","default":"\"Luca\""}},"source_file_contents":"collection = Docs.register \"Docs.collections.LucaDocumentation\"\ncollection.extends \"Luca.Collection\"\ncollection.defines\n model: Docs.models.Component\n appNamespace: \"Luca\"\n\n getSource: ()->\n Luca.util.resolve(\"#{ @appNamespace }.documentation\")\n\n fetch: ()->\n models = _( @getSource() ).sortBy(\"class_name\")\n found = {}\n models = for model in models when not found[ model.class_name ]\n found[ model.class_name ] = true\n model\n\n @reset(models)"},{"source":"./site/source/javascripts/docs/collections/public_gists.coffee","defined_in_file":"./site/source/javascripts/docs/collections/public_gists.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.collections.PublicGists","header_documentation":"","type_alias":"public_gists","css_class_identifier":"","defines_methods":{},"defines_properties":{"fetch":{"defined_on_line":4,"documentation":"","default":"Backbone.Collection"}},"source_file_contents":"collection = Docs.register \"Docs.collections.PublicGists\"\ncollection.extends \"Luca.Collection\"\ncollection.defines\n fetch: Backbone.Collection::fetch"},{"source":"./site/source/javascripts/docs/models/component.coffee","defined_in_file":"./site/source/javascripts/docs/models/component.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.models.Component","header_documentation":"","type_alias":"component","css_class_identifier":"","defines_methods":{"contentsWithoutHeader":{"defined_on_line":15,"documentation":"","arguments":[]},"documentation":{"defined_on_line":25,"documentation":"","arguments":[]},"methodDocumentationFor":{"defined_on_line":38,"documentation":"","arguments":[{"argument":"groups...","value":null}]},"propertyDocumentationFor":{"defined_on_line":51,"documentation":"","arguments":[{"argument":"groups...","value":null}]},"url":{"defined_on_line":64,"documentation":"","arguments":[]},"metaData":{"defined_on_line":67,"documentation":"","arguments":[]},"classNameId":{"defined_on_line":70,"documentation":"","arguments":[]},"componentGroup":{"defined_on_line":73,"documentation":"","arguments":[]},"componentType":{"defined_on_line":77,"documentation":"","arguments":[]},"componentTypeAlias":{"defined_on_line":96,"documentation":"","arguments":[]}},"defines_properties":{"defaults":{"defined_on_line":5,"documentation":"","default":null},"idAttribute":{"defined_on_line":13,"documentation":"","default":"\"class_name\""}},"source_file_contents":"model = Docs.register \"Docs.models.Component\"\nmodel.extends \"Luca.Model\"\n\nmodel.configuration\n defaults:\n class_name: undefined\n superClass: undefined\n asset_id: undefined\n source_file_contents: \"\"\n defined_in_file: \"\"\n\nmodel.defines\n idAttribute: \"class_name\"\n \n contentsWithoutHeader: ()->\n startsAt = @get(\"starts_on_line\") || 0\n contents = @get(\"source_file_contents\").split(\"\\n\")\n count = contents.length \n\n if startsAt > 0\n startsAt = startsAt - 1\n\n contents.slice(startsAt, count).join(\"\\n\")\n\n documentation: ()->\n base = _( @toJSON() ).pick 'header_documentation', 'class_name', 'defined_in_file'\n\n _.extend base, @metaData(), \n componentGroup: @componentGroup() \n componentType: @componentType() \n componentTypeAlias: @componentTypeAlias()\n details:\n publicMethods: @methodDocumentationFor(\"publicMethods\")\n privateMethods: @methodDocumentationFor(\"privateMethods\")\n privateProperties: @propertyDocumentationFor(\"privateProperties\",\"privateConfiguration\")\n publicProperties: @propertyDocumentationFor(\"publicProperties\",\"publicConfiguration\")\n\n methodDocumentationFor: (groups...)->\n documentationSource = _.extend({}, @get(\"defines_methods\"))\n result = {}\n\n for group in groups\n if list = @metaData()?[ group ]?()\n _.extend result, _(list).reduce (memo, methodOrProperty)->\n memo[ methodOrProperty ] = documentationSource[ methodOrProperty ]\n memo\n , {} \n\n result \n\n propertyDocumentationFor: (groups...)->\n documentationSource = _.extend({}, @get(\"defines_properties\"))\n result = {}\n\n for group in groups\n if list = @metaData()?[ group ]?()\n _.extend result, _(list).reduce (memo, methodOrProperty)->\n memo[ methodOrProperty ] = documentationSource[ methodOrProperty ]\n memo\n , {} \n\n result\n\n url: ()->\n \"/project/components/#{ Luca.namespace }/#{ @classNameId() }\"\n\n metaData: ()->\n Luca.util.resolve( @get(\"class_name\") )?.prototype.componentMetaData()\n\n classNameId: ()->\n @get(\"class_name\").replace(/\\./g,'__')\n\n componentGroup: ()->\n parts = @get('class_name').split('.')\n parts.slice(0,2).join('.')\n\n componentType: ()->\n type = \"view\"\n parts = @get('class_name').split('.')\n\n switch group = parts[1]\n when \"collections\" then \"collection\"\n when \"models\" then \"model\"\n when (\"views\" || \"components\" || \"pages\") then \"view\"\n\n return if group?\n\n if componentPrototype = Luca.util.resolve( @get(\"class_name\") )\n return \"view\" if Luca.isViewPrototype( componentPrototype:: )\n return \"collection\" if Luca.isCollectionPrototype( componentPrototype:: )\n return \"model\" if Luca.isModelProtoype( componentPrototype:: )\n\n # meh, but what about Router?\n \"view\"\n\n componentTypeAlias: ()->\n parts = @get('class_name').split('.')\n name = parts.pop()\n _.str.underscored( name )\n"},{"source":"./site/source/javascripts/docs/models/github_repository.coffee","defined_in_file":"./site/source/javascripts/docs/models/github_repository.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.models.GithubRepository","header_documentation":"","type_alias":"github_repository","css_class_identifier":"","defines_methods":{},"defines_properties":{},"source_file_contents":"model = Docs.register \"Docs.models.GithubRepository\"\nmodel.extends \"Luca.Model\"\nmodel.register()"},{"source":"./site/source/javascripts/docs/application.coffee","defined_in_file":"./site/source/javascripts/docs/application.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.Application","header_documentation":"","type_alias":"application","css_class_identifier":"docs-application","defines_methods":{},"defines_properties":{"version":{"defined_on_line":4,"documentation":"","default":"1"},"el":{"defined_on_line":5,"documentation":"","default":"\"#viewport\""},"fluid":{"defined_on_line":6,"documentation":"","default":"true"},"fullscreen":{"defined_on_line":7,"documentation":"","default":"true"},"applyWrapper":{"defined_on_line":8,"documentation":"","default":"false"},"name":{"defined_on_line":9,"documentation":"","default":"\"DocsApp\""},"collectionManager":{"defined_on_line":12,"documentation":"","default":null},"router":{"defined_on_line":18,"documentation":"","default":"\"Docs.Router\""},"routes":{"defined_on_line":20,"documentation":"","default":null},"component":{"defined_on_line":30,"documentation":"","default":"\"home\""},"type":{"defined_on_line":37,"documentation":"","default":"\"page\""},"layout":{"defined_on_line":38,"documentation":"","default":"\"pages/getting_started\""},"index":{"defined_on_line":39,"documentation":"","default":"_.once ()->"}},"source_file_contents":"app = Docs.register \"Docs.Application\"\napp.extends \"Luca.Application\"\napp.configuration\n version: 1\n el: \"#viewport\"\n fluid: true\n fullscreen: true\n applyWrapper: false\n name: \"DocsApp\"\n\napp.configuration\n collectionManager: \n initialCollections:[\n \"luca_documentation\"\n \"docs_documentation\"\n ]\n\n router: \"Docs.Router\"\n \n routes:\n \"\": \"home#index\"\n \"docs\": \"browse_source#index\"\n \"docs/:component_name\": \"browse_source#show\"\n \"get-started\": \"getting_started#index\"\n \"examples\": \"examples_browser#index\"\n \"examples/:example_name/:section\": \"examples_browser#show\"\n \"examples/:example_name\": \"examples_browser#show\"\n\napp.contains\n component: \"home\"\n,\n component: \"browse_source\"\n,\n component: \"examples_browser\"\n,\n name: \"getting_started\"\n type: \"page\"\n layout: \"pages/getting_started\"\n index: _.once ()->\n @$('pre').addClass('prettyprint')\n window.prettyPrint() \n\napp.register()"},{"source":"./site/source/javascripts/docs/collections/docs_documentation.coffee","defined_in_file":"./site/source/javascripts/docs/collections/docs_documentation.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.collections.DocsDocumentation","header_documentation":"","type_alias":"docs_documentation","css_class_identifier":"","defines_methods":{"getSource":{"defined_on_line":7,"documentation":"","arguments":[]},"fetch":{"defined_on_line":10,"documentation":"","arguments":[]}},"defines_properties":{"model":{"defined_on_line":4,"documentation":"","default":"Docs.models.Component"},"appNamespace":{"defined_on_line":5,"documentation":"","default":"\"Docs\""}},"source_file_contents":"collection = Docs.register \"Docs.collections.DocsDocumentation\"\ncollection.extends \"Luca.Collection\"\ncollection.defines\n model: Docs.models.Component\n appNamespace: \"Docs\"\n\n getSource: ()->\n Luca.util.resolve(\"#{ @appNamespace }.documentation\")\n\n fetch: ()->\n models = _( @getSource() ).sortBy(\"class_name\")\n found = {}\n models = for model in models when not found[ model.class_name ]\n found[ model.class_name ] = true\n model\n\n @reset(models)"},{"source":"./site/source/javascripts/docs/collections/github_repositories.coffee","defined_in_file":"./site/source/javascripts/docs/collections/github_repositories.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.collections.GithubRepositories","header_documentation":"","type_alias":"github_repositories","css_class_identifier":"","defines_methods":{"url":{"defined_on_line":5,"documentation":"","arguments":[]}},"defines_properties":{"model":{"defined_on_line":4,"documentation":"","default":"Docs.models.GithubRepository"}},"source_file_contents":"collection = Docs.register \"Docs.collections.GithubRepositories\"\ncollection.extends \"Luca.Collection\"\ncollection.defines\n model: Docs.models.GithubRepository\n url: ()->\n \"https://api.github.com/users/datapimp/repos\"\n \n"},{"source":"./site/source/javascripts/docs/collections/luca_documentation.coffee","defined_in_file":"./site/source/javascripts/docs/collections/luca_documentation.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.collections.LucaDocumentation","header_documentation":"","type_alias":"luca_documentation","css_class_identifier":"","defines_methods":{"getSource":{"defined_on_line":7,"documentation":"","arguments":[]},"fetch":{"defined_on_line":10,"documentation":"","arguments":[]}},"defines_properties":{"model":{"defined_on_line":4,"documentation":"","default":"Docs.models.Component"},"appNamespace":{"defined_on_line":5,"documentation":"","default":"\"Luca\""}},"source_file_contents":"collection = Docs.register \"Docs.collections.LucaDocumentation\"\ncollection.extends \"Luca.Collection\"\ncollection.defines\n model: Docs.models.Component\n appNamespace: \"Luca\"\n\n getSource: ()->\n Luca.util.resolve(\"#{ @appNamespace }.documentation\")\n\n fetch: ()->\n models = _( @getSource() ).sortBy(\"class_name\")\n found = {}\n models = for model in models when not found[ model.class_name ]\n found[ model.class_name ] = true\n model\n\n @reset(models)"},{"source":"./site/source/javascripts/docs/collections/public_gists.coffee","defined_in_file":"./site/source/javascripts/docs/collections/public_gists.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.collections.PublicGists","header_documentation":"","type_alias":"public_gists","css_class_identifier":"","defines_methods":{},"defines_properties":{"fetch":{"defined_on_line":4,"documentation":"","default":"Backbone.Collection"}},"source_file_contents":"collection = Docs.register \"Docs.collections.PublicGists\"\ncollection.extends \"Luca.Collection\"\ncollection.defines\n fetch: Backbone.Collection::fetch"},{"source":"./site/source/javascripts/docs/lib/router.coffee","defined_in_file":"./site/source/javascripts/docs/lib/router.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.Router","header_documentation":"","type_alias":"router","css_class_identifier":"docs-router","defines_methods":{},"defines_properties":{},"source_file_contents":"router = Docs.register \"Docs.Router\"\nrouter.extends \"Luca.Router\"\nrouter.defines()"},{"source":"./site/source/javascripts/docs/models/component.coffee","defined_in_file":"./site/source/javascripts/docs/models/component.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.models.Component","header_documentation":"","type_alias":"component","css_class_identifier":"","defines_methods":{"contentsWithoutHeader":{"defined_on_line":15,"documentation":"","arguments":[]},"documentation":{"defined_on_line":25,"documentation":"","arguments":[]},"methodDocumentationFor":{"defined_on_line":38,"documentation":"","arguments":[{"argument":"groups...","value":null}]},"propertyDocumentationFor":{"defined_on_line":51,"documentation":"","arguments":[{"argument":"groups...","value":null}]},"url":{"defined_on_line":64,"documentation":"","arguments":[]},"metaData":{"defined_on_line":67,"documentation":"","arguments":[]},"classNameId":{"defined_on_line":70,"documentation":"","arguments":[]},"componentGroup":{"defined_on_line":73,"documentation":"","arguments":[]},"componentType":{"defined_on_line":77,"documentation":"","arguments":[]},"componentTypeAlias":{"defined_on_line":96,"documentation":"","arguments":[]}},"defines_properties":{"defaults":{"defined_on_line":5,"documentation":"","default":null},"idAttribute":{"defined_on_line":13,"documentation":"","default":"\"class_name\""}},"source_file_contents":"model = Docs.register \"Docs.models.Component\"\nmodel.extends \"Luca.Model\"\n\nmodel.configuration\n defaults:\n class_name: undefined\n superClass: undefined\n asset_id: undefined\n source_file_contents: \"\"\n defined_in_file: \"\"\n\nmodel.defines\n idAttribute: \"class_name\"\n \n contentsWithoutHeader: ()->\n startsAt = @get(\"starts_on_line\") || 0\n contents = @get(\"source_file_contents\").split(\"\\n\")\n count = contents.length \n\n if startsAt > 0\n startsAt = startsAt - 1\n\n contents.slice(startsAt, count).join(\"\\n\")\n\n documentation: ()->\n base = _( @toJSON() ).pick 'header_documentation', 'class_name', 'defined_in_file'\n\n _.extend base, @metaData(), \n componentGroup: @componentGroup() \n componentType: @componentType() \n componentTypeAlias: @componentTypeAlias()\n details:\n publicMethods: @methodDocumentationFor(\"publicMethods\")\n privateMethods: @methodDocumentationFor(\"privateMethods\")\n privateProperties: @propertyDocumentationFor(\"privateProperties\",\"privateConfiguration\")\n publicProperties: @propertyDocumentationFor(\"publicProperties\",\"publicConfiguration\")\n\n methodDocumentationFor: (groups...)->\n documentationSource = _.extend({}, @get(\"defines_methods\"))\n result = {}\n\n for group in groups\n if list = @metaData()?[ group ]?()\n _.extend result, _(list).reduce (memo, methodOrProperty)->\n memo[ methodOrProperty ] = documentationSource[ methodOrProperty ]\n memo\n , {} \n\n result \n\n propertyDocumentationFor: (groups...)->\n documentationSource = _.extend({}, @get(\"defines_properties\"))\n result = {}\n\n for group in groups\n if list = @metaData()?[ group ]?()\n _.extend result, _(list).reduce (memo, methodOrProperty)->\n memo[ methodOrProperty ] = documentationSource[ methodOrProperty ]\n memo\n , {} \n\n result\n\n url: ()->\n \"/project/components/#{ Luca.namespace }/#{ @classNameId() }\"\n\n metaData: ()->\n Luca.util.resolve( @get(\"class_name\") )?.prototype.componentMetaData()\n\n classNameId: ()->\n @get(\"class_name\").replace(/\\./g,'__')\n\n componentGroup: ()->\n parts = @get('class_name').split('.')\n parts.slice(0,2).join('.')\n\n componentType: ()->\n type = \"view\"\n parts = @get('class_name').split('.')\n\n switch group = parts[1]\n when \"collections\" then \"collection\"\n when \"models\" then \"model\"\n when (\"views\" || \"components\" || \"pages\") then \"view\"\n\n return if group?\n\n if componentPrototype = Luca.util.resolve( @get(\"class_name\") )\n return \"view\" if Luca.isViewPrototype( componentPrototype:: )\n return \"collection\" if Luca.isCollectionPrototype( componentPrototype:: )\n return \"model\" if Luca.isModelProtoype( componentPrototype:: )\n\n # meh, but what about Router?\n \"view\"\n\n componentTypeAlias: ()->\n parts = @get('class_name').split('.')\n name = parts.pop()\n _.str.underscored( name )\n"},{"source":"./site/source/javascripts/docs/models/github_repository.coffee","defined_in_file":"./site/source/javascripts/docs/models/github_repository.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.models.GithubRepository","header_documentation":"","type_alias":"github_repository","css_class_identifier":"","defines_methods":{},"defines_properties":{},"source_file_contents":"model = Docs.register \"Docs.models.GithubRepository\"\nmodel.extends \"Luca.Model\"\nmodel.register()"},{"source":"./site/source/javascripts/docs/views/components/api_browser/index.coffee","defined_in_file":"./site/source/javascripts/docs/views/components/api_browser/index.coffee","type":"component_definition","starts_on_line":4,"class_name":"Docs.components.ApiBrowser","header_documentation":"<p>The <code>Docs.components.ApiBrowser</code> is an example of using\na <code>Luca.Container</code> with a <code>@componentEvents</code> configuration\nto broker communication between two child components.</p>\n","type_alias":"api_browser","css_class_identifier":"docs-api-browser","defines_methods":{"afterInitialize":{"defined_on_line":29,"documentation":"","arguments":[]},"runExample":{"defined_on_line":33,"documentation":"","arguments":[]},"loadUrl":{"defined_on_line":37,"documentation":"","arguments":[]}},"defines_properties":{"componentEvents":{"defined_on_line":8,"documentation":"","default":null},"type":{"defined_on_line":12,"documentation":"","default":"\"container\""},"rowFluid":{"defined_on_line":13,"documentation":"","default":"true"},"className":{"defined_on_line":14,"documentation":"","default":"\"url-selector\""},"components":{"defined_on_line":15,"documentation":"","default":"["},"tagName":{"defined_on_line":26,"documentation":"","default":"\"pre\""},"role":{"defined_on_line":28,"documentation":"","default":"\"output\""}},"source_file_contents":"# The `Docs.components.ApiBrowser` is an example of using\n# a `Luca.Container` with a `@componentEvents` configuration\n# to broker communication between two child components.\nview = Docs.register \"Docs.components.ApiBrowser\"\nview.extends \"Luca.Container\"\n\nview.configuration\n componentEvents:\n \"* button:click\" : \"loadUrl\"\n\nview.contains\n type: \"container\"\n rowFluid: true\n className: \"url-selector\"\n components:[\n type: \"text_field\"\n name: \"endpoint_url\"\n label: \"Enter a URL\"\n span: 9\n ,\n type: \"button_field\"\n input_value: \"Browse\"\n span: 3\n ]\n,\n tagName: \"pre\"\n className: \"prettyprint pre-scrollable\"\n role: \"output\"\n afterInitialize: ()->\n @$el.html(\"Loading...\")\n\nview.privateMethods\n runExample: ()->\n @findComponentByName(\"endpoint_url\", true).setValue(\"https://api.github.com/users/datapimp/gists\")\n @loadUrl()\n\n loadUrl: ()->\n url = @findComponentByName(\"endpoint_url\", true).getValue()\n $.get url, (parsed, state, options)=>\n @getOutput().$html( options.responseText )\n window.prettyPrint()\n\nview.register()"},{"source":"./site/source/javascripts/docs/views/components/component_documentation.coffee","defined_in_file":"./site/source/javascripts/docs/views/components/component_documentation.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.ComponentDocumentation","header_documentation":"","type_alias":"component_documentation","css_class_identifier":"docs-component-documentation","defines_methods":{"loadComponent":{"defined_on_line":22,"documentation":"<p>Loads a component definition from the documentation objects that\nare generated by the Luca gem's Luca::LucaApplication#export tool.\nThese objects are the result of parsing component definition files\nand determining the public and private properties and methods, and\nthe documentation that is rendered from their comments.</p>\n","arguments":[{"argument":"@component","value":null}]},"reset":{"defined_on_line":42,"documentation":"","arguments":[]},"renderMethodGroup":{"defined_on_line":47,"documentation":"","arguments":[{"argument":"group","value":"\"public\""}]},"renderPropertyGroup":{"defined_on_line":62,"documentation":"","arguments":[{"argument":"group","value":"\"public\""}]}},"defines_properties":{"bodyTemplate":{"defined_on_line":5,"documentation":"","default":"\"component_documentation\""},"displaySource":{"defined_on_line":10,"documentation":"<p>If set to true, we will render the source code\nfor the component in addition to all of the information\nabout the methods and properties</p>\n","default":"false"},"displayHeader":{"defined_on_line":14,"documentation":"<p>If set to true, we will render the header documentation\nthat is contained in the component</p>\n","default":"false"}},"source_file_contents":"view = Docs.register \"Docs.views.ComponentDocumentation\"\nview.extends \"Luca.View\"\n\nview.privateConfiguration\n bodyTemplate: \"component_documentation\"\n\n # If set to true, we will render the source code\n # for the component in addition to all of the information\n # about the methods and properties\n displaySource: false\n\n # If set to true, we will render the header documentation\n # that is contained in the component\n displayHeader: false\n\nview.publicMethods\n # Loads a component definition from the documentation objects that\n # are generated by the Luca gem's Luca::LucaApplication#export tool.\n # These objects are the result of parsing component definition files\n # and determining the public and private properties and methods, and \n # the documentation that is rendered from their comments.\n loadComponent: (@component)->\n @reset()\n\n for section in [\"private\", \"public\"]\n @renderMethodGroup(section) \n @renderPropertyGroup(section) \n\n @$('.source').hide()\n\n if @displayHeader is true\n @$('.header-documentation').show()\n @$('.header-documentation').html( @component.get(\"header_documentation\") )\n\n if @displaySource is true\n @$('.source').show()\n @$('pre.source').html( @component.contentsWithoutHeader() ) \n\n @$('pre').addClass('prettyprint')\n\nview.privateMethods\n reset: ()->\n @$('.table tbody').empty()\n @$('.properties,.methods').hide()\n @$('.header-documentation').hide()\n\n renderMethodGroup: (group=\"public\")->\n source = @component?.documentation()?.details[\"#{ group }Methods\"]\n return if _.isEmpty(source)\n prototype = Luca.util.resolve(@component.get(\"class_name\"))?.prototype \n list = @$(\".methods.#{ group }\").show().find('.table tbody')\n\n for method, details of source when _.isFunction(prototype[method])\n details ||= {}\n arg_details = _( details.arguments ).reduce (memo,pair)->\n memo += \"#{ pair.argument }\"\n memo += \"= #{ pair.value || 'undefined' }\" if pair.value?\n memo += \"<br/>\"\n , \"\"\n list.append \"<tr><td>#{ method }</td><td>#{ arg_details }</td><td>#{ details.documentation || \"\" }</td></tr>\"\n\n renderPropertyGroup: (group=\"public\")->\n source = @component?.documentation()?.details[\"#{ group }Properties\"]\n return if _.isEmpty(source)\n prototype = Luca.util.resolve(@component.get(\"class_name\"))?.prototype\n list = @$(\".properties.#{ group }\").show().find('.table tbody')\n\n for method, details of source when not _.isFunction(prototype[method])\n details ||= {}\n list.append \"<tr><td>#{ method }</td><td>#{ details.default || \"\" }</td><td>#{ details.documentation || \"\" }</td></tr>\"\n\nview.register()\n"},{"source":"./site/source/javascripts/docs/views/pages/browse_source/details.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/browse_source/details.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.ComponentDetails","header_documentation":"","type_alias":"component_details","css_class_identifier":"docs-component-details","defines_methods":{"loadComponent":{"defined_on_line":10,"documentation":"","arguments":[{"argument":"model","value":null}]},"afterRender":{"defined_on_line":21,"documentation":"","arguments":[]},"load":{"defined_on_line":25,"documentation":"","arguments":[{"argument":"model","value":null}]},"prettyPrint":{"defined_on_line":35,"documentation":"<p>Applies syntax highlighting to all pre elements</p>\n","arguments":[]}},"defines_properties":{"rowFluid":{"defined_on_line":5,"documentation":"","default":"true"},"role":{"defined_on_line":8,"documentation":"","default":"\"documentation\""},"span":{"defined_on_line":9,"documentation":"","default":"5"},"type":{"defined_on_line":15,"documentation":"","default":"\"component_documentation\""},"displaySource":{"defined_on_line":17,"documentation":"","default":"true"}},"source_file_contents":"view = Docs.register \"Docs.views.ComponentDetails\"\nview.extends \"Luca.Container\"\n\nview.configuration\n rowFluid: true\n\nview.contains\n role: \"documentation\"\n span: 5\n loadComponent: (model)->\n @$el.empty()\n @$el.append(\"<h2>#{ model.get('class_name') }</h2>\")\n @$el.append(\"<div class='header-documentation'>#{ model.get('header_documentation') }</div>\")\n,\n type: \"component_documentation\"\n role: \"details\"\n displaySource: true\n span: 7\n\nview.defines\n afterRender: ()->\n @getDetails().$el.hide()\n @getDocumentation().$el.hide()\n\n load: (model)->\n @getDetails().$el.show()\n @getDocumentation().$el.show()\n\n @getDetails().loadComponent(model)\n @getDocumentation().loadComponent(model)\n\n @prettyPrint()\n\n # Applies syntax highlighting to all pre elements\n prettyPrint: ()-> \n @$('pre').addClass('prettyprint')\n window.prettyPrint?()\n"},{"source":"./site/source/javascripts/docs/views/pages/browse_source/list.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/browse_source/list.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.ComponentList","header_documentation":"","type_alias":"component_list","css_class_identifier":"docs-component-list","defines_methods":{},"defines_properties":{"paginatable":{"defined_on_line":4,"documentation":"","default":"false"},"maxHeight":{"defined_on_line":5,"documentation":"","default":"200"},"collection":{"defined_on_line":6,"documentation":"","default":"\"luca_documentation\""},"columns":{"defined_on_line":7,"documentation":"","default":"["}},"source_file_contents":"view = Docs.register \"Docs.views.ComponentList\"\nview.extends \"Luca.components.ScrollableTable\"\nview.defines\n paginatable: false\n maxHeight: 200\n collection: \"luca_documentation\"\n columns:[\n reader: \"class_name\"\n width: \"20%\"\n renderer: (name)->\n \"<a class='link'>#{ name }</a>\"\n ,\n reader: \"class_name\"\n header: \"Extends From\"\n width: \"20%\"\n renderer: (className)->\n if component = Luca.util.resolve(className)\n name = component.prototype.componentMetaData()?.meta[\"super class name\"]\n \"<a class='link'>#{ name }</a>\"\n ,\n reader: \"type_alias\"\n header: \"Shortcut\"\n width: \"10%\"\n ,\n reader: \"defined_in_file\"\n header: \"<i class='icon icon-github'/> Github\"\n renderer: (file)->\n shortened = file.split(\"javascripts/luca/\")[1]\n \"<a href='https://github.com/datapimp/luca/blob/master/app/assets/javascripts/luca/#{ shortened }'>#{ shortened }</a>\"\n ]\n\n"},{"source":"./site/source/javascripts/docs/views/pages/browse_source.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/browse_source.coffee","type":"component_definition","starts_on_line":3,"class_name":"Docs.views.BrowseSource","header_documentation":"","type_alias":"browse_source","css_class_identifier":"docs-browse-source","defines_methods":{"index":{"defined_on_line":18,"documentation":"","arguments":[]},"show":{"defined_on_line":21,"documentation":"","arguments":[{"argument":"componentName","value":null}]},"selectComponent":{"defined_on_line":29,"documentation":"","arguments":[{"argument":"e","value":null}]}},"defines_properties":{"autoBindEventHandlers":{"defined_on_line":7,"documentation":"","default":"true"},"events":{"defined_on_line":8,"documentation":"","default":null},"component":{"defined_on_line":12,"documentation":"","default":"\"component_list\""}},"source_file_contents":"#= require_tree ./browse_source \n#= require_self\nview = Docs.register \"Docs.views.BrowseSource\"\nview.extends \"Luca.Container\"\n\nview.configuration\n autoBindEventHandlers: true\n events:\n \"click .docs-component-list a.link\" : \"selectComponent\"\n\nview.contains\n component: \"component_list\"\n,\n component: \"component_details\"\n\nview.privateMethods\n\n index: ()->\n @selectComponent(@getComponentList().getCollection().at(0))\n\n show: (componentName)-> \n component = @getComponentList().getCollection().detect (model)->\n model.get(\"class_name\") is componentName\n\n return @index() unless component?\n\n @selectComponent(component)\n \n selectComponent: (e)->\n list = @getComponentList()\n details = @getComponentDetails() \n\n if Luca.isBackboneModel(e) \n model = e\n index = list.getCollection().indexOf(model)\n row = list.$(\"tr[data-index='#{ index }']\")\n else\n $target = @$(e.target)\n row = $target.parents('tr').eq(0)\n index = row.data('index')\n model = list.getCollection().at(index) \n\n list.$('tr').removeClass('info')\n row.addClass('info')\n details.load(model)\n\n"},{"source":"./site/source/javascripts/docs/views/pages/component_editor.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/component_editor.coffee","type":"component_definition","starts_on_line":3,"class_name":"Docs.views.ComponentEditor","header_documentation":"","type_alias":"component_editor","css_class_identifier":"docs-component-editor","defines_methods":{},"defines_properties":{},"source_file_contents":"#= require_tree ./component_editor\n#= require_self\nview = Docs.register \"Docs.views.ComponentEditor\"\nview.extends \"Luca.Container\"\n\n"},{"source":"./site/source/javascripts/docs/views/pages/examples_browser/docs.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/examples_browser/docs.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.ExampleDocs","header_documentation":"","type_alias":"example_docs","css_class_identifier":"docs-example-docs","defines_methods":{"beforeRender":{"defined_on_line":6,"documentation":"","arguments":[]}},"defines_properties":{"collection":{"defined_on_line":4,"documentation":"","default":"\"docs_documentation\""},"displayHeader":{"defined_on_line":5,"documentation":"","default":"true"}},"source_file_contents":"view = Docs.register \"Docs.views.ExampleDocs\"\nview.extends \"Docs.views.ComponentDocumentation\"\nview.defines\n collection: \"docs_documentation\"\n displayHeader: true\n beforeRender: ()->\n component = @collection.detect (component)=>\n component.get(\"type_alias\") is @example\n\n if component?\n @loadComponent(component)\n\n"},{"source":"./site/source/javascripts/docs/views/pages/examples_browser/source.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/examples_browser/source.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.ExampleSource","header_documentation":"","type_alias":"example_source","css_class_identifier":"docs-example-source","defines_methods":{"beforeRender":{"defined_on_line":7,"documentation":"","arguments":[]}},"defines_properties":{"tagName":{"defined_on_line":4,"documentation":"","default":"\"pre\""},"className":{"defined_on_line":5,"documentation":"","default":"\"prettyprint pre-scrollable\""},"collection":{"defined_on_line":6,"documentation":"","default":"\"docs_documentation\""}},"source_file_contents":"view = Docs.register \"Docs.views.ExampleSource\"\nview.extends \"Luca.View\"\nview.defines\n tagName: \"pre\"\n className: \"prettyprint pre-scrollable\"\n collection: \"docs_documentation\"\n beforeRender: ()->\n component = @collection.detect (component)=>\n component.get(\"type_alias\") is @example\n\n @$el.html( component.get(\"source_file_contents\") )\n window.prettyPrint()\n\n"},{"source":"./site/source/javascripts/docs/views/pages/examples_browser.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/examples_browser.coffee","type":"component_definition","starts_on_line":4,"class_name":"Docs.views.ExamplesBrowser","header_documentation":"","type_alias":"examples_browser","css_class_identifier":"docs-examples-browser","defines_methods":{"wrapExampleComponents":{"defined_on_line":42,"documentation":"","arguments":[]},"afterInitialize":{"defined_on_line":76,"documentation":"","arguments":[]},"show":{"defined_on_line":80,"documentation":"","arguments":[{"argument":"exampleName","value":"0"},{"argument":"view","value":"\"component\""}]},"index":{"defined_on_line":86,"documentation":"","arguments":[]}},"defines_properties":{"title":{"defined_on_line":8,"documentation":"","default":"\"API Browser\""},"type":{"defined_on_line":9,"documentation":"","default":"\"api_browser\""},"name":{"defined_on_line":10,"documentation":"","default":"\"api_browser\""},"activeCard":{"defined_on_line":29,"documentation":"","default":"0"},"tab_position":{"defined_on_line":30,"documentation":"","default":"\"left\""},"defaults":{"defined_on_line":31,"documentation":"","default":null},"afterSelect":{"defined_on_line":37,"documentation":"<p>Hack</p>\n","default":"_.debounce ()->"}},"source_file_contents":"#= require_tree ./examples_browser\n#= require_self\n\npage = Docs.register \"Docs.views.ExamplesBrowser\"\npage.extends \"Luca.containers.TabView\"\n\npage.contains\n title: \"API Browser\"\n type: \"api_browser\"\n name: \"api_browser\"\n,\n title: \"Basic FormView\"\n type: \"basic_form_view\"\n name: \"basic_form_view\"\n,\n title: \"Complex Layout FormView\"\n type: \"complex_layout_form\"\n name: \"complex_layout_form\"\n,\n title: \"Scrollable Table\"\n type: \"table_view_example\"\n name: \"table_view_example\"\n,\n title: \"Grid Layout CollectionView\"\n type: \"grid_layout_view_example\"\n name: \"grid_layout_view_example\"\n\npage.privateConfiguration\n activeCard: 0\n tab_position: \"left\"\n defaults:\n activation: ()->\n Docs().router.navigate(\"#examples/#{ @name }/source\", false)\n\npage.privateMethods\n # Hack\n afterSelect: _.debounce ()->\n if active = @activeComponent()\n active.findComponentByName?(\"component\")?.runExample?()\n , 10\n\n wrapExampleComponents: ()->\n wrapped = []\n\n wrapped = _(@components).map (component,index)->\n title: component.title\n name: component.name\n components:[\n type: \"card\"\n role: \"view_selector\"\n afterInitialize: ()->\n @$el.append(\"<h3>#{ component.title } Example</h3>\")\n components:[\n type: component.type\n name: \"component\"\n activation: ()->\n @runExample?()\n ,\n type: \"example_source\"\n example: component.name\n name: \"source\"\n ,\n type: \"example_docs\"\n example: component.name\n name: \"documentation\"\n ] \n ,\n bodyTemplate: \"examples_browser/selector\"\n bodyTemplateVars: ()->\n example_name: component.name\n ]\n\n @components = wrapped\n @components.unshift title: \"Overview\", bodyTemplate: \"examples_browser/overview\"\n\n afterInitialize: ()->\n @wrapExampleComponents()\n\npage.publicMethods\n show: (exampleName=0, view=\"component\")->\n @activate exampleName, false, ()->\n @getViewSelector().activate(view)\n @$(\"li\").removeClass(\"active\")\n @$(\"li.#{view}\").addClass(\"active\")\n\n index: ()->\n @show()\n\npage.register()"},{"source":"./site/source/javascripts/docs/views/pages/home.coffee","defined_in_file":"./site/source/javascripts/docs/views/pages/home.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.Home","header_documentation":"","type_alias":"home","css_class_identifier":"docs-home","defines_methods":{"index":{"defined_on_line":7,"documentation":"","arguments":[]}},"defines_properties":{"template":{"defined_on_line":4,"documentation":"","default":"\"pages/home\""}},"source_file_contents":"page = Docs.register \"Docs.views.Home\"\npage.extends \"Luca.components.Page\"\npage.configuration\n template: \"pages/home\"\n\npage.defines\n index: ()->\n @trigger \"index\"\n\npage.register()"},{"source":"./site/source/javascripts/docs/views/views/collection_view_examples/grid_layout_view_example.coffee","defined_in_file":"./site/source/javascripts/docs/views/views/collection_view_examples/grid_layout_view_example.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.GridLayoutViewExample","header_documentation":"","type_alias":"grid_layout_view_example","css_class_identifier":"docs-grid-layout-view-example","defines_methods":{"runExample":{"defined_on_line":11,"documentation":"","arguments":[]}},"defines_properties":{"collection":{"defined_on_line":5,"documentation":"","default":"\"github_repositories\""},"itemPerRow":{"defined_on_line":6,"documentation":"","default":"4"},"paginatable":{"defined_on_line":7,"documentation":"","default":"12"},"itemTemplate":{"defined_on_line":8,"documentation":"","default":"\"github_repository\""}},"source_file_contents":"view = Docs.register \"Docs.views.GridLayoutViewExample\"\nview.extends \"Luca.components.GridLayoutView\"\n\nview.publicConfiguration\n collection: \"github_repositories\"\n itemPerRow: 4\n paginatable: 12\n itemTemplate: \"github_repository\"\n\nview.publicMethods\n runExample: ()->\n @getCollection().fetch()\n\nview.register()\n"},{"source":"./site/source/javascripts/docs/views/views/collection_view_examples/table_view_example.coffee","defined_in_file":"./site/source/javascripts/docs/views/views/collection_view_examples/table_view_example.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.TableViewExample","header_documentation":"","type_alias":"table_view_example","css_class_identifier":"docs-table-view-example","defines_methods":{"runExample":{"defined_on_line":36,"documentation":"","arguments":[]}},"defines_properties":{"paginatable":{"defined_on_line":7,"documentation":"<p>Only render 100 models at a time. The <code>Luca.CollectionView</code> has\nautomatic pagination control rendering, if you specify a pagination\nview class and render area.</p>\n","default":"100"},"maxHeight":{"defined_on_line":10,"documentation":"<p>The scrollable table element has a max height.</p>\n","default":"300"},"collection":{"defined_on_line":15,"documentation":"<p>The string "github_repositories" is an alias for the collection manager\nwhich is created by the <code>Docs.Application</code>. It represents a singular\nglobal instance of the <code>Docs.collections.GithubRepositories</code> collection.</p>\n","default":"\"github_repositories\""},"columns":{"defined_on_line":23,"documentation":"<p>The <code>Luca.components.TableView</code> component accepts an array of column\nconfigurations. Each column can specify the following properties:\n- header\n- reader ( a method, or attribute on the collection's model )\n- renderer ( a custom function which renders the model / reader )\n- width ( a percentage width for the column )</p>\n","default":"["}},"source_file_contents":"view = Docs.register \"Docs.views.TableViewExample\"\nview.extends \"Luca.components.ScrollableTable\"\nview.publicConfiguration\n # Only render 100 models at a time. The `Luca.CollectionView` has\n # automatic pagination control rendering, if you specify a pagination\n # view class and render area. \n paginatable: 100\n \n # The scrollable table element has a max height. \n maxHeight: 300\n\n # The string \"github_repositories\" is an alias for the collection manager\n # which is created by the `Docs.Application`. It represents a singular\n # global instance of the `Docs.collections.GithubRepositories` collection. \n collection: \"github_repositories\"\n\n # The `Luca.components.TableView` component accepts an array of column\n # configurations. Each column can specify the following properties:\n # - header\n # - reader ( a method, or attribute on the collection's model )\n # - renderer ( a custom function which renders the model / reader )\n # - width ( a percentage width for the column )\n columns:[\n reader: \"name\"\n renderer: (name, model)->\n \"<a href=#{ model.get('html_url') }>#{ name }</a>\"\n , \n reader: \"description\"\n ,\n reader: \"language\"\n ,\n reader: \"watchers\"\n ]\n\nview.publicMethods\n runExample: ()->\n @getCollection().fetch()\n\nview.register()"},{"source":"./site/source/javascripts/docs/views/views/form_view_examples/basic_example.coffee","defined_in_file":"./site/source/javascripts/docs/views/views/form_view_examples/basic_example.coffee","type":"component_definition","starts_on_line":6,"class_name":"Docs.views.BasicFormView","header_documentation":"<p>The <code>Docs.views.BasicFormView</code> is an example of the <code>Luca.components.FormView</code>.\nIn this basic example, the form contains a range of different fields. They are\nrendered one on top of another. You can get more advanced and nest containers within\nyour form, or use a <code>@bodyTemplate</code> and specify your own DOM structure, and assign\ncomponents to custom CSS selectors within it.</p>\n","type_alias":"basic_form_view","css_class_identifier":"docs-basic-form-view","defines_methods":{},"defines_properties":{"defaults":{"defined_on_line":12,"documentation":"<p>Any values you specify in the <code>@defaults</code> property will be\nset on each of the components in this container.</p>\n","default":null},"components":{"defined_on_line":19,"documentation":"<p>You can manually define a <code>@components</code> property, or in your component\ndefinition you can use the special <code>contains</code> directive, the only difference\nis your personal preference for readability. I did it this way</p>\n","default":"["}},"source_file_contents":"# The `Docs.views.BasicFormView` is an example of the `Luca.components.FormView`.\n# In this basic example, the form contains a range of different fields. They are\n# rendered one on top of another. You can get more advanced and nest containers within\n# your form, or use a `@bodyTemplate` and specify your own DOM structure, and assign\n# components to custom CSS selectors within it.\nform = Docs.register \"Docs.views.BasicFormView\"\nform.extends \"Luca.components.FormView\"\n\nform.privateConfiguration\n # Any values you specify in the `@defaults` property will be\n # set on each of the components in this container.\n defaults:\n type: \"text\"\n\nform.publicConfiguration\n # You can manually define a `@components` property, or in your component\n # definition you can use the special `contains` directive, the only difference\n # is your personal preference for readability. I did it this way \n components:[\n label: \"Text Field One\"\n ,\n type: \"select\"\n label: \"Select Field One\"\n collection:\n data:[\n ['Alpha','Alpha']\n ['Bravo','Bravo']\n ['Charlie','Charlie']\n ['Delta','Delta']\n ]\n ,\n type: \"checkbox_field\"\n label: \"Checkbox Field\"\n\n ]\n\nform.register() \n\n"},{"source":"./site/source/javascripts/docs/views/views/form_view_examples/complex_layout.coffee","defined_in_file":"./site/source/javascripts/docs/views/views/form_view_examples/complex_layout.coffee","type":"component_definition","starts_on_line":9,"class_name":"Docs.views.ComplexLayoutForm","header_documentation":"<p>The <code>Docs.views.ComplexLayoutForm</code> is an example of a <code>Luca.components.FormView</code> which contains\na nested container, and which uses the bootstrap grid helper properties <code>@rowFluid</code> and <code>@span</code> \nto arrange the nested components inside of a grid layout.\nIn addition to laying out the form components visually, there is a nested <code>Luca.containers.CardView</code>\ncomponent which shows / hides various field sets depending on what options you select on the form.\nThis is an example of how Luca framework components can be assembled together arbitrarily to build\nwhatever type of user interface you can imagine.</p>\n","type_alias":"complex_layout_form","css_class_identifier":"docs-complex-layout-form","defines_methods":{"selectGroup":{"defined_on_line":30,"documentation":"<p>The selectGroup method is bound to the componentEvent listener. Whenever\nthe group_selector field changes its value, we want to change which field\ngroup is visible on the form.</p>\n","arguments":[]}},"defines_properties":{"rowFluid":{"defined_on_line":17,"documentation":"<p>By setting <code>@rowFluid</code> to true, this container\nwill support the twitter bootstrap grid layout. Applying\nthe <code>@span</code> property to the direct children of this component\nwill control their width</p>\n","default":"true"},"componentEvents":{"defined_on_line":23,"documentation":"<p>Here is an example of using the <code>@componentEvents</code> property to listen\nto the change event on the select field identified by the role 'group_selector'.\nonce that field emits its change event, we change the active display card in the\nnested card selector.</p>\n","default":null},"type":{"defined_on_line":36,"documentation":"","default":"\"container\""},"span":{"defined_on_line":37,"documentation":"","default":"6"},"components":{"defined_on_line":38,"documentation":"","default":"["}},"source_file_contents":"# The `Docs.views.ComplexLayoutForm` is an example of a `Luca.components.FormView` which contains\n# a nested container, and which uses the bootstrap grid helper properties `@rowFluid` and `@span` \n# to arrange the nested components inside of a grid layout.\n#\n# In addition to laying out the form components visually, there is a nested `Luca.containers.CardView`\n# component which shows / hides various field sets depending on what options you select on the form.\n# This is an example of how Luca framework components can be assembled together arbitrarily to build\n# whatever type of user interface you can imagine.\nform = Docs.register \"Docs.views.ComplexLayoutForm\"\nform.extends \"Luca.components.FormView\"\n\nform.privateConfiguration\n # By setting `@rowFluid` to true, this container\n # will support the twitter bootstrap grid layout. Applying\n # the `@span` property to the direct children of this component\n # will control their width \n rowFluid: true\n\n # Here is an example of using the `@componentEvents` property to listen\n # to the change event on the select field identified by the role 'group_selector'.\n # once that field emits its change event, we change the active display card in the\n # nested card selector.\n componentEvents:\n \"group_selector on:change\" : \"selectGroup\"\n\nform.privateMethods\n # The selectGroup method is bound to the componentEvent listener. Whenever\n # the group_selector field changes its value, we want to change which field\n # group is visible on the form.\n selectGroup: ()->\n desiredGroup = @getGroupSelector().getValue()\n selector = @getGroupDisplaySelector()\n selector.activate(desiredGroup) \n\nform.contains\n type: \"container\"\n span: 6\n components:[\n type: \"text\"\n label: \"Field One\"\n ,\n type: \"text\"\n label: \"Field Two\"\n ,\n type: \"text\"\n label: \"Field Three\"\n ]\n,\n type: \"container\"\n span: 6\n components:[\n label: \"Select a Group\"\n type: \"select\"\n role: \"group_selector\"\n includeBlank: false\n valueType: \"string\"\n collection:\n data:[\n [\"alpha\",\"Alpha Group\"]\n [\"bravo\", \"Bravo Group\"]\n [\"charlie\",\"Charlie Group\"]\n ]\n ,\n type: \"card\"\n role: \"group_display_selector\"\n components:[\n name: \"alpha\"\n defaults:\n type: \"text\"\n components:[\n type: \"view\"\n tagName: \"h4\"\n bodyTemplate: ()-> \"Group One\"\n , \n label: \"Alpha\"\n ,\n label: \"Bravo\"\n ,\n label: \"Charlie\"\n ]\n ,\n name: \"bravo\"\n defaults:\n type: \"checkbox_field\"\n components:[\n type: \"view\"\n tagName: \"h4\"\n bodyTemplate: ()-> \"Group Two\"\n ,\n label: \"One\"\n ,\n label: \"Two\"\n ]\n ,\n name: \"charlie\"\n defaults:\n type: \"button_field\" \n components:[\n type: \"view\"\n tagName: \"h4\"\n bodyTemplate: ()-> \"Group Three\"\n ,\n input_value: \"Button One\"\n icon_class: \"chevron-up\"\n ,\n input_value: \"Button Two\"\n icon_class: \"pencil\"\n ] \n ]\n ]"},{"source":"./site/source/javascripts/docs/views/views/top_navigation.coffee","defined_in_file":"./site/source/javascripts/docs/views/views/top_navigation.coffee","type":"component_definition","starts_on_line":1,"class_name":"Docs.views.TopNavigation","header_documentation":"","type_alias":"top_navigation","css_class_identifier":"docs-top-navigation","defines_methods":{},"defines_properties":{"brand":{"defined_on_line":4,"documentation":"","default":"\"Luca.js\""},"inverse":{"defined_on_line":5,"documentation":"","default":"true"},"orientation":{"defined_on_line":6,"documentation":"","default":"\"top\""}},"source_file_contents":"nav = Docs.register \"Docs.views.TopNavigation\"\nnav.extends \"Luca.components.NavBar\"\nnav.defines\n brand: \"Luca.js\"\n inverse: true\n orientation: \"top\"\n"}];
|