-
16 | <%= include "partials/short_description", :collection => [@doc_instance] %>
17 |
├── src ├── experimental.js ├── constants.yml ├── ui │ ├── dragdrop.js │ ├── behaviors │ │ ├── resize.js │ │ ├── focus.js │ │ ├── hover.js │ │ ├── down.js │ │ └── drag.js │ ├── controls.js │ ├── mixin │ │ ├── trackable.js │ │ ├── element.js │ │ ├── configurable.js │ │ └── shim.js │ ├── mixin.js │ ├── controls │ │ ├── base.js │ │ ├── overlay.js │ │ ├── button_with_menu.js │ │ ├── button_set.js │ │ ├── progress_bar.js │ │ └── tabs.js │ └── behaviors.js ├── license.js ├── effects │ ├── scroll.js │ ├── style.js │ ├── operators │ │ ├── scroll.js │ │ ├── style.js │ │ └── base.js │ ├── attribute.js │ ├── slide.js │ ├── debugger.js │ ├── parallel.js │ ├── heartbeat.js │ ├── queue.js │ ├── transitions │ │ ├── cubic-bezier.js │ │ └── transitions.js │ └── morph.js ├── effects.js ├── ui.js ├── addons │ ├── helpers.js │ ├── slowmotion.js │ └── zoom.js ├── s2.js └── extensions │ └── misc.js ├── .gitignore ├── themes ├── default │ ├── ui.all.css │ ├── images │ │ ├── widget-header.png │ │ ├── button-down-middle.png │ │ ├── header-down-middle.png │ │ ├── button-hover-middle.png │ │ ├── header-active-middle.png │ │ ├── progress-bar-default.png │ │ ├── slider-handle-active.png │ │ ├── accordion-header-active.png │ │ ├── button-default-middle.png │ │ ├── button-disabled-middle.png │ │ ├── header-default-middle.png │ │ ├── progress-bar-disabled.png │ │ ├── slider-handle-default.png │ │ ├── slider-handle-disabled.png │ │ ├── ui-icons_222222_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_454545_256x240.png │ │ ├── ui-icons_888888_256x240.png │ │ ├── ui-icons_941010_256x240.png │ │ ├── ui-icons_f5f5f5_256x240.png │ │ ├── button-active-down-middle.png │ │ ├── button-active-default-middle.png │ │ ├── button-active-hover-middle.png │ │ ├── button-primary-down-middle.png │ │ ├── button-primary-hover-middle.png │ │ ├── progress-bar-track-default.png │ │ ├── progress-bar-track-disabled.png │ │ ├── button-primary-default-middle.png │ │ ├── slider-range-default-vertical.png │ │ ├── slider-track-default-vertical.png │ │ ├── slider-track-disabled-vertical.png │ │ ├── slider-range-default-horizontal.png │ │ ├── slider-track-default-horizontal.png │ │ └── slider-track-disabled-horizontal.png │ ├── ui.progressbar.css │ ├── ui.base.css │ ├── ui.accordion.css │ ├── ui.slider.css │ ├── ui.resizable.css │ ├── ui.tabs.css │ ├── ui.dialog.css │ ├── ui.core.css │ └── ui.datepicker.css └── test │ └── images │ ├── ui-icons_222222_256x240.png │ ├── ui-icons_228ef1_256x240.png │ ├── ui-icons_ef8c08_256x240.png │ ├── ui-icons_ffd27a_256x240.png │ ├── ui-icons_ffffff_256x240.png │ ├── ui-bg_flat_10_000000_40x100.png │ ├── ui-bg_glass_100_f6f6f6_1x400.png │ ├── ui-bg_glass_100_fdf5ce_1x400.png │ ├── ui-bg_glass_65_ffffff_1x400.png │ ├── ui-bg_gloss-wave_35_f6a828_500x100.png │ ├── ui-bg_highlight-soft_75_ffe45c_1x100.png │ ├── ui-bg_diagonals-thick_18_b81900_40x40.png │ ├── ui-bg_diagonals-thick_20_666666_40x40.png │ └── ui-bg_highlight-soft_100_eeeeee_1x100.png ├── demos ├── images │ └── body.jpg ├── basic.html ├── morph.html └── demos.css ├── templates └── html │ ├── assets │ └── images │ │ ├── cc.png │ │ ├── class.png │ │ ├── demo.png │ │ ├── method.png │ │ ├── section.png │ │ ├── subclass.png │ │ ├── constructor.png │ │ ├── description.png │ │ ├── header-logo.png │ │ ├── manipulate.png │ │ ├── namespace.png │ │ ├── superclass.png │ │ ├── class_method.png │ │ └── instance_method.png │ ├── item_index.js.erb │ ├── partials │ ├── breadcrumbs.erb │ └── short_description.erb │ ├── utility.erb │ ├── section.erb │ ├── layout.erb │ ├── index.erb │ ├── namespace.erb │ └── helpers.rb ├── vendor ├── google-compiler │ └── compiler.jar └── yuicompressor │ ├── yuicompressor-2.4.2.jar │ └── README ├── test ├── functional │ ├── images │ │ ├── header-logo.png │ │ ├── header-logo-small.png │ │ ├── manipulations_pan.jpg │ │ ├── manipulations_scale.jpg │ │ └── manipulations_rotate.jpg │ ├── index.html │ ├── effects_units.html │ ├── manipulations_rotate.html │ ├── manipulations_scale.html │ ├── controls_overlay.html │ ├── manipulations_pan.html │ ├── navigation.html │ ├── controls_progress_bar.html │ ├── controls_tabs.html │ ├── css │ │ └── test.css │ ├── css_transitions_2.html │ ├── css_transitions.html │ └── controls_accordion.html └── unit │ ├── package_test.js │ ├── fixtures │ ├── css.html │ ├── operators_style.html │ └── effects.html │ ├── templates │ └── default.erb │ ├── addons_test.js │ ├── operators_style_test.js │ ├── heartbeat_test.js │ ├── extensions_test.js │ └── css_test.js ├── .gitmodules ├── MIT-LICENSE ├── CHANGELOG └── README.rdoc /src/experimental.js: -------------------------------------------------------------------------------- 1 | //= require "ui" 2 | -------------------------------------------------------------------------------- /src/constants.yml: -------------------------------------------------------------------------------- 1 | SCRIPTY2_VERSION: 2.0.0_b1 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | pkg 3 | test/unit/tmp/* 4 | doc 5 | tmp 6 | dist/* -------------------------------------------------------------------------------- /themes/default/ui.all.css: -------------------------------------------------------------------------------- 1 | @import "ui.base.css"; 2 | @import "ui.theme.css"; 3 | -------------------------------------------------------------------------------- /src/ui/dragdrop.js: -------------------------------------------------------------------------------- 1 | //=require "dragdrop/draggable" 2 | //=require "dragdrop/droppable" -------------------------------------------------------------------------------- /demos/images/body.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/demos/images/body.jpg -------------------------------------------------------------------------------- /templates/html/assets/images/cc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/cc.png -------------------------------------------------------------------------------- /vendor/google-compiler/compiler.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/vendor/google-compiler/compiler.jar -------------------------------------------------------------------------------- /templates/html/assets/images/class.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/class.png -------------------------------------------------------------------------------- /templates/html/assets/images/demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/demo.png -------------------------------------------------------------------------------- /templates/html/assets/images/method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/method.png -------------------------------------------------------------------------------- /test/functional/images/header-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/test/functional/images/header-logo.png -------------------------------------------------------------------------------- /themes/default/images/widget-header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/widget-header.png -------------------------------------------------------------------------------- /templates/html/assets/images/section.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/section.png -------------------------------------------------------------------------------- /templates/html/assets/images/subclass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/subclass.png -------------------------------------------------------------------------------- /templates/html/assets/images/constructor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/constructor.png -------------------------------------------------------------------------------- /templates/html/assets/images/description.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/description.png -------------------------------------------------------------------------------- /templates/html/assets/images/header-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/header-logo.png -------------------------------------------------------------------------------- /templates/html/assets/images/manipulate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/manipulate.png -------------------------------------------------------------------------------- /templates/html/assets/images/namespace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/namespace.png -------------------------------------------------------------------------------- /templates/html/assets/images/superclass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/superclass.png -------------------------------------------------------------------------------- /test/functional/images/header-logo-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/test/functional/images/header-logo-small.png -------------------------------------------------------------------------------- /test/functional/images/manipulations_pan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/test/functional/images/manipulations_pan.jpg -------------------------------------------------------------------------------- /themes/default/images/button-down-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/button-down-middle.png -------------------------------------------------------------------------------- /themes/default/images/header-down-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/header-down-middle.png -------------------------------------------------------------------------------- /vendor/yuicompressor/yuicompressor-2.4.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/vendor/yuicompressor/yuicompressor-2.4.2.jar -------------------------------------------------------------------------------- /templates/html/assets/images/class_method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/class_method.png -------------------------------------------------------------------------------- /test/functional/images/manipulations_scale.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/test/functional/images/manipulations_scale.jpg -------------------------------------------------------------------------------- /themes/default/images/button-hover-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/button-hover-middle.png -------------------------------------------------------------------------------- /themes/default/images/header-active-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/header-active-middle.png -------------------------------------------------------------------------------- /themes/default/images/progress-bar-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/progress-bar-default.png -------------------------------------------------------------------------------- /themes/default/images/slider-handle-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/slider-handle-active.png -------------------------------------------------------------------------------- /themes/test/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /themes/test/images/ui-icons_228ef1_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-icons_228ef1_256x240.png -------------------------------------------------------------------------------- /themes/test/images/ui-icons_ef8c08_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-icons_ef8c08_256x240.png -------------------------------------------------------------------------------- /themes/test/images/ui-icons_ffd27a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-icons_ffd27a_256x240.png -------------------------------------------------------------------------------- /themes/test/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /templates/html/assets/images/instance_method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/templates/html/assets/images/instance_method.png -------------------------------------------------------------------------------- /test/functional/images/manipulations_rotate.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/test/functional/images/manipulations_rotate.jpg -------------------------------------------------------------------------------- /themes/default/images/accordion-header-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/accordion-header-active.png -------------------------------------------------------------------------------- /themes/default/images/button-default-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/button-default-middle.png -------------------------------------------------------------------------------- /themes/default/images/button-disabled-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/button-disabled-middle.png -------------------------------------------------------------------------------- /themes/default/images/header-default-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/header-default-middle.png -------------------------------------------------------------------------------- /themes/default/images/progress-bar-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/progress-bar-disabled.png -------------------------------------------------------------------------------- /themes/default/images/slider-handle-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/slider-handle-default.png -------------------------------------------------------------------------------- /themes/default/images/slider-handle-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/slider-handle-disabled.png -------------------------------------------------------------------------------- /themes/default/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /themes/default/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /themes/default/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /themes/default/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /themes/default/images/ui-icons_941010_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/ui-icons_941010_256x240.png -------------------------------------------------------------------------------- /themes/default/images/ui-icons_f5f5f5_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/ui-icons_f5f5f5_256x240.png -------------------------------------------------------------------------------- /themes/default/images/button-active-down-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/button-active-down-middle.png -------------------------------------------------------------------------------- /themes/test/images/ui-bg_flat_10_000000_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-bg_flat_10_000000_40x100.png -------------------------------------------------------------------------------- /themes/test/images/ui-bg_glass_100_f6f6f6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-bg_glass_100_f6f6f6_1x400.png -------------------------------------------------------------------------------- /themes/test/images/ui-bg_glass_100_fdf5ce_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-bg_glass_100_fdf5ce_1x400.png -------------------------------------------------------------------------------- /themes/test/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /themes/default/images/button-active-default-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/button-active-default-middle.png -------------------------------------------------------------------------------- /themes/default/images/button-active-hover-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/button-active-hover-middle.png -------------------------------------------------------------------------------- /themes/default/images/button-primary-down-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/button-primary-down-middle.png -------------------------------------------------------------------------------- /themes/default/images/button-primary-hover-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/button-primary-hover-middle.png -------------------------------------------------------------------------------- /themes/default/images/progress-bar-track-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/progress-bar-track-default.png -------------------------------------------------------------------------------- /themes/default/images/progress-bar-track-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/progress-bar-track-disabled.png -------------------------------------------------------------------------------- /themes/default/images/button-primary-default-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/button-primary-default-middle.png -------------------------------------------------------------------------------- /themes/default/images/slider-range-default-vertical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/slider-range-default-vertical.png -------------------------------------------------------------------------------- /themes/default/images/slider-track-default-vertical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/slider-track-default-vertical.png -------------------------------------------------------------------------------- /themes/default/images/slider-track-disabled-vertical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/slider-track-disabled-vertical.png -------------------------------------------------------------------------------- /test/unit/package_test.js: -------------------------------------------------------------------------------- 1 | new Test.Unit.Runner({ 2 | 3 | testS2Defined: function() { with(this) { 4 | assertNotUndefined(window['S2']); 5 | }} 6 | 7 | }); -------------------------------------------------------------------------------- /themes/default/images/slider-range-default-horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/slider-range-default-horizontal.png -------------------------------------------------------------------------------- /themes/default/images/slider-track-default-horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/slider-track-default-horizontal.png -------------------------------------------------------------------------------- /themes/default/images/slider-track-disabled-horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/default/images/slider-track-disabled-horizontal.png -------------------------------------------------------------------------------- /themes/test/images/ui-bg_gloss-wave_35_f6a828_500x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-bg_gloss-wave_35_f6a828_500x100.png -------------------------------------------------------------------------------- /themes/test/images/ui-bg_highlight-soft_75_ffe45c_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-bg_highlight-soft_75_ffe45c_1x100.png -------------------------------------------------------------------------------- /themes/test/images/ui-bg_diagonals-thick_18_b81900_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-bg_diagonals-thick_18_b81900_40x40.png -------------------------------------------------------------------------------- /themes/test/images/ui-bg_diagonals-thick_20_666666_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-bg_diagonals-thick_20_666666_40x40.png -------------------------------------------------------------------------------- /themes/test/images/ui-bg_highlight-soft_100_eeeeee_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tag/scripty2/master/themes/test/images/ui-bg_highlight-soft_100_eeeeee_1x100.png -------------------------------------------------------------------------------- /themes/default/ui.progressbar.css: -------------------------------------------------------------------------------- 1 | /* Progressbar 2 | ----------------------------------*/ 3 | .ui-progressbar { height:2em; text-align: left; } 4 | .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; } -------------------------------------------------------------------------------- /src/ui/behaviors/resize.js: -------------------------------------------------------------------------------- 1 | /** section: scripty2 ui 2 | * class S2.UI.Behavior.Resize < S2.UI.Behavior 3 | **/ 4 | S2.UI.Behavior.Resize = Class.create(S2.UI.Behavior, { 5 | initialize: function(element, options) { 6 | } 7 | }); -------------------------------------------------------------------------------- /templates/html/item_index.js.erb: -------------------------------------------------------------------------------- 1 | if (!window.PDoc) window.PDoc = {}; 2 | PDoc.elements = { 3 | <%= @root.map { |e, i| 4 | "'#{e.full_name}': { 'name': '#{e.full_name}', 'type': '#{e.type}', 'path': '#{path_to(e)}' }" }.join(",\n") 5 | %> 6 | }; -------------------------------------------------------------------------------- /src/license.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * script.aculo.us version <%= SCRIPTY2_VERSION %> 3 | * (c) 2005-2010 Thomas Fuchs 4 | * 5 | * script.aculo.us is freely distributable under the terms of an MIT-style license. 6 | *----------------------------------------------------------------------------------*/ 7 | -------------------------------------------------------------------------------- /templates/html/partials/breadcrumbs.erb: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /test/unit/fixtures/css.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /themes/default/ui.base.css: -------------------------------------------------------------------------------- 1 | @import url("ui.core.css"); 2 | @import url("ui.resizable.css"); 3 | @import url("ui.accordion.css"); 4 | @import url("ui.dialog.css"); 5 | @import url("ui.slider.css"); 6 | @import url("ui.tabs.css"); 7 | @import url("ui.datepicker.css"); 8 | @import url("ui.progressbar.css"); 9 | @import url("ui.button.css"); -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "vendor/unittest_js"] 2 | path = vendor/unittest_js 3 | url = git://github.com/tobie/unittest_js.git 4 | [submodule "vendor/pdoc"] 5 | path = vendor/pdoc 6 | url = git://github.com/tobie/pdoc.git 7 | [submodule "vendor/sprockets"] 8 | path = vendor/sprockets 9 | url = git://github.com/sstephenson/sprockets.git 10 | -------------------------------------------------------------------------------- /src/effects/scroll.js: -------------------------------------------------------------------------------- 1 | //= require "operators/scroll" 2 | 3 | /** 4 | * class S2.FX.Scroll < S2.FX.Element 5 | * 6 | * Effect for scrolling an elements' contents. 7 | **/ 8 | S2.FX.Scroll = Class.create(S2.FX.Element, { 9 | setup: function() { 10 | this.animate('scroll', this.element, { scrollTo: this.options.to }); 11 | } 12 | }); -------------------------------------------------------------------------------- /src/effects/style.js: -------------------------------------------------------------------------------- 1 | /** 2 | * class S2.FX.Style < S2.FX.Element 3 | * 4 | * This effect is similiar to [[S2.FX.Morph]] but doesn't provide any 5 | * of the more advanced functionality, like content morphing. 6 | **/ 7 | S2.FX.Style = Class.create(S2.FX.Element, { 8 | setup: function() { 9 | this.animate('style', this.element, { style: this.options.style }); 10 | } 11 | }); -------------------------------------------------------------------------------- /test/unit/fixtures/operators_style.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/effects.js: -------------------------------------------------------------------------------- 1 | //= require "effects/base" 2 | //= require "effects/heartbeat" 3 | //= require "effects/queue" 4 | 5 | //= require "effects/attribute" 6 | //= require "effects/style" 7 | //= require "effects/morph" 8 | //= require "effects/parallel" 9 | //= require "effects/scroll" 10 | //= require "effects/slide" 11 | 12 | //= require "effects/transitions/transitions" 13 | //= require "effects/transitions/penner" 14 | //= require "effects/css_transitions" -------------------------------------------------------------------------------- /src/ui/controls.js: -------------------------------------------------------------------------------- 1 | 2 | //= require "controls/base" 3 | 4 | //= require "controls/accordion" 5 | //= require "controls/button" 6 | //= require "controls/button_set" 7 | //= require "controls/button_with_menu" 8 | //= require "controls/tabs" 9 | //= require "controls/overlay" 10 | //= require "controls/dialog" 11 | //= require "controls/slider" 12 | //= require "controls/progress_bar" 13 | //= require "controls/menu" 14 | //= require "controls/autocompleter" -------------------------------------------------------------------------------- /src/ui.js: -------------------------------------------------------------------------------- 1 | /** 2 | * == scripty2 ui == 3 | * * [[S2.CSS]]: functions for CSS parsing, color normalization and CSS value interpolation. 4 | * * [[S2.UI]]: User interface patterns that can be used to build components and page behaviours on top of it. 5 | **/ 6 | 7 | /** section: scripty2 ui 8 | * S2.UI 9 | * This is the main user interface namespace. 10 | **/ 11 | 12 | S2.UI = {}; 13 | 14 | //= require "ui/mixin" 15 | //= require "ui/util" 16 | //= require "ui/behaviors" 17 | //= require "ui/controls" 18 | 19 | //= require "ui/manipulate" 20 | -------------------------------------------------------------------------------- /templates/html/utility.erb: -------------------------------------------------------------------------------- 1 | <% d = @doc_instance %> 2 | <% @title = "#{@doc_instance.full_name} utility" %> 3 | <%= include "partials/breadcrumbs", :object => d %> 4 | 5 |22 | Hello scripty2! (animate width, font-size) 23 |
24 |25 | Hello scripty2! (animate width, background color, set duration to 2 seconds) 26 |
27 | 28 |29 | Hello scripty2! (animate transparency) 30 |
31 |32 | Hello scripty2! (animate border) 33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /themes/default/ui.core.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery UI CSS Framework 3 | * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) 4 | * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. 5 | */ 6 | 7 | /* Layout helpers 8 | ----------------------------------*/ 9 | .ui-helper-hidden { display: none; } 10 | .ui-helper-hidden-accessible { position: absolute; left: -99999999px; } 11 | .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } 12 | .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } 13 | .ui-helper-clearfix { display: inline-block; } 14 | /* required comment for clearfix to work in Opera \*/ 15 | * html .ui-helper-clearfix { height:1%; } 16 | .ui-helper-clearfix { display:block; } 17 | /* end clearfix */ 18 | .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } 19 | 20 | 21 | /* Interaction Cues 22 | ----------------------------------*/ 23 | .ui-state-disabled { cursor: default !important; } 24 | 25 | 26 | /* Icons 27 | ----------------------------------*/ 28 | 29 | /* states and images */ 30 | .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } 31 | 32 | 33 | /* Misc visuals 34 | ----------------------------------*/ 35 | 36 | /* Overlays */ 37 | .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } -------------------------------------------------------------------------------- /src/effects/operators/style.js: -------------------------------------------------------------------------------- 1 | //= require<%= arg.name %>
15 | <% unless arg.types.empty? %>
16 | (<%= arg.types.map { |t| auto_link_code(t, false) }.join(' | ') %>)
17 | <% end %>
18 | <%= ' – ' + inline_htmlize(arg.description) unless arg.description.empty? %>
19 | Aliased as: <%= object.aliases.map { |a| auto_link_code(a, false) }.join(', ') %>
29 | <% end %> 30 | <% if object.alias? %> 31 |Alias of: <%= auto_link_code(object.alias_of, false) %>
32 | <% end %> 33 | <% if object.is_a?(Documentation::Utility) && object.related_to %> 34 | 36 | <% end %> 37 | <% if object.is_a?(Documentation::Method) && object.methodized? %> 38 |This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.
39 | <% end %> 40 |
27 |
27 | 33 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 34 |
35 | 36 | 45 | 46 | -------------------------------------------------------------------------------- /test/functional/manipulations_pan.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 |
27 | <%= htmlize(namespace.short_description) %>
49 | <% end %> 50 |<%= htmlize(klass.short_description) %>
72 | <% end %> 73 |
53 | script.aculo.us version
54 | Prototype version
55 |
58 | 59 |
60 | 61 | 62 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /test/functional/controls_progress_bar.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 |A standard progress bar with all the default options.
76 |A standard instance of S2.UI.Tabs with all the default options.
Welcome to the scripty2 API Documentation.
7 | 8 |9 | scripty2 is divided into three parts, core, fx, and ui, 10 | and supports IE6+, Safari 3+, Firefox 3+, Chrome, Opera 10 and most WebKit-based browsers. 11 |
12 | 13 |14 | This rewrite of the script.aculo.us library is in beta. While we advise to proceed with caution, 15 | scripty2 is used in many live, production projects like twistori 16 | and freckle and it works great! 17 |
18 | 19 |20 | Beta notice: scripty2 is currently in beta. 21 | The S2.UI API is not final and subject to change. 22 |
23 |<%= htmlize(section.short_description) %>
39 |54 | scripty2 depends on Prototype 1.7 or later. For your convenience, a development copy 55 | and a minified version of Prototype is included in the distribution. 56 |
57 |58 | To use scripty2, include this line in your HTML: 59 |
<script src="prototype.s2.min.js" type="text/javascript"></script>
60 |
61 | 62 | For debugging, you can also include the libraries seperately: 63 |
<script src="prototype.js" type="text/javascript"></script>
64 | <script src="s2.js" type="text/javascript"></script>
65 |
66 | The scripty2 UI controls are under heavy development and are still in alpha. Consult the README for instructions on how to include these UI controls in the scripty2 distributable.
92 | To get started quickly, see our tutorial for building a simple memory puzzle game. 93 |
94 |95 | In additional, there are several demos on the scripty2 website. 96 |
97 |111 | Want to discuss? Share feature ideas, problems, suggestions, praise? 112 | You're welcome to do so on the scripty2 Google Group. 113 |
114 |115 | Found a genuine bug? 116 | Please report in detail on our Lighthouse bug tracker.. 117 |
118 |119 | Interested in development? Check out the scripty2 repository on Github. 120 |
121 |<%= auto_link_code(d.superklass, false) %>
28 |<%= d.subklasses.map { |s| auto_link_code(s, false) }.join(', ') %>
39 |<%= d.mixins.map { |m| auto_link_code(m, false) }.join(', ') %>
51 |<%= d.related_utilities.map { |u| auto_link_code(u, false) }.join(', ') %>
62 |<%= d.constructor.ebnf_expressions.join("\n").strip %>
98 | <% unless d.constructor.arguments.empty? %>
99 | <%= arg.name %>
103 | <% unless arg.types.empty? %>
104 | (<%= arg.types.map { |t| auto_link_code(t, false) }.join(' | ') %>)
105 | <% end %>
106 | <%= ' – ' + inline_htmlize(arg.description) unless arg.description.empty? %>
107 | <%= htmlize(d.constructor.description) %>
112 |Movement along two axes. In environments where animation can be hardware-accelerated, example 1 should look like example 3. Both should appear much smoother than example 2.
54 | 55 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
58 | 59 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
60 | 61 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
62 | 63 |Movement along one axis. In environments where animation can be hardware-accelerated, example 1 should look like example 3. Both should appear much smoother than example 2.
53 | 54 | 55 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
58 | 59 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
60 | 61 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
62 | 63 |Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
63 |Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.
68 |Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. 73 |
74 |Standard accordion menu with all default options.
88 |Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
106 |Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.
111 |Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. 116 |
117 |Like the above, except the multiple option is now true.
/, '').gsub(/<\/p>$/, '')
39 | end
40 |
41 | def javascript_include_tag(*names)
42 | names.map do |name|
43 | attributes = {
44 | :src => "#{path_prefix}javascripts/#{name}.js",
45 | :type => "text/javascript",
46 | :charset => "utf-8"
47 | }
48 | content_tag(:script, "", attributes)
49 | end.join("\n")
50 | end
51 |
52 | def stylesheet_link_tag(*names)
53 | names.map do |name|
54 | attributes = {
55 | :href => "#{path_prefix}stylesheets/#{name}.css",
56 | :type => "text/css",
57 | :media => "screen, projection",
58 | :charset => "utf-8",
59 | :rel => "stylesheet"
60 | }
61 | tag(:link, attributes)
62 | end.join("\n")
63 | end
64 |
65 | private
66 | def attributes_to_html(attributes)
67 | attributes.map { |k, v| v ? " #{k}=\"#{v}\"" : "" }.join
68 | end
69 | end
70 |
71 | module LinkHelper
72 | def path_prefix
73 | "../" * depth
74 | end
75 |
76 | def path_to(obj)
77 | return path_to_section(obj) if obj.is_a?(Documentation::Section)
78 | path = path_prefix << [obj.section.name.downcase].concat(obj.namespace_string.downcase.split('.')).join("/")
79 | has_own_page?(obj) ? "#{path}/#{obj.id.downcase}.html" : "#{path}.html##{dom_id(obj)}"
80 | end
81 |
82 | def path_to_section(obj)
83 | "#{path_prefix}#{obj.id.gsub(/\s/, '_')}.html"
84 | end
85 |
86 | def section_from_name(name)
87 | root.sections.find { |section| section.name == name }
88 | end
89 |
90 | def auto_link(obj, short = true, attributes = {})
91 | if obj.is_a?(String) && obj =~ /\ssection$/
92 | obj = section_from_name(obj.gsub(/\ssection$/, ''))
93 | end
94 | obj = root.find_by_name(obj) || obj if obj.is_a?(String)
95 | return nil if obj.nil?
96 | return obj if obj.is_a?(String)
97 | name = short ? obj.name : obj.full_name
98 | link_to(name, path_to(obj), { :title => "#{obj.full_name} (#{obj.type})" }.merge(attributes))
99 | end
100 |
101 | def auto_link_code(obj, short = true, attributes = {})
102 | return "#{auto_link(obj, short, attributes)}"
103 | end
104 |
105 | def auto_link_content(content)
106 | content ||= ''
107 | content.gsub!(/\[\[([a-zA-Z]+)\s+section\]\]/) do |m|
108 | result = auto_link(section_from_name($1), false)
109 | result
110 | end
111 | content.gsub(/\[\[([a-zA-Z0-9$\.#]+)(?:\s+([^\]]+))?\]\]/) do |m|
112 | if doc_instance = root.find_by_name($1)
113 | $2 ? link_to($2, path_to(doc_instance)) :
114 | auto_link_code(doc_instance, false)
115 | else
116 | $1
117 | end
118 | end
119 | end
120 |
121 | def dom_id(obj)
122 | "#{obj.id}-#{obj.type.gsub(/\s+/, '_')}"
123 | end
124 |
125 | private
126 | def has_own_page?(obj)
127 | obj.is_a?(Documentation::Namespace) || obj.is_a?(Documentation::Utility)
128 | end
129 | end
130 |
131 | module CodeHelper
132 | def method_synopsis(object)
133 | if (object.is_a?(Documentation::Property))
134 | return <<-EOS
135 |
#{ object.signature }
136 | EOS
137 | end
138 |
139 | if (object.is_a?(Documentation::InstanceMethod) && object.methodized?)
140 | return <<-EOS
141 | #{ object.signature } -> #{ auto_link(object.returns, false) }
142 | #{ object.generic_signature } -> #{ auto_link(object.returns, false) }
143 | EOS
144 | end
145 |
146 | <<-EOS
147 | #{ object.signature } -> #{ auto_link(object.returns, false) }
148 | EOS
149 | end
150 | end
151 |
152 | module MenuHelper
153 | def menu(obj)
154 | class_names = menu_class_name(obj)
155 | html = <<-EOS
156 |
159 | EOS
160 | unless obj.children.empty?
161 | html << content_tag(:ul, obj.children.map { |n|menu(n) }.join("\n"))
162 | end
163 | content_tag(:li, html, :class => class_names)
164 | end
165 |
166 | def menu_class_name(obj)
167 | if !doc_instance
168 | nil
169 | elsif obj == doc_instance
170 | "current"
171 | elsif obj.descendants.include?(doc_instance)
172 | "current-parent"
173 | else
174 | nil
175 | end
176 | end
177 |
178 | def class_names_for(obj)
179 | classes = [obj.type.gsub(/\s+/, '-')]
180 | classes << "deprecated" if obj.deprecated?
181 | classes.join(" ")
182 | end
183 | end
184 | end
185 | end
186 | end
187 | end
188 |
--------------------------------------------------------------------------------