lsd_rails 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Packages/Sheet.js/Demo/index.html +78 -0
- data/Packages/Sheet.js/Demo/pp.css +69 -0
- data/Packages/Sheet.js/Demo/subtlegradient-jslib.js +450 -0
- data/Packages/Sheet.js/LICENSE +21 -0
- data/Packages/Sheet.js/README.md +59 -0
- data/Packages/Sheet.js/Source/Sheet.DOM.js +65 -0
- data/Packages/Sheet.js/Source/Sheet.js +80 -0
- data/Packages/Sheet.js/Source/SheetParser.CSS.js +194 -0
- data/Packages/Sheet.js/Source/SheetParser.Property.js +227 -0
- data/Packages/Sheet.js/Source/SheetParser.Styles.js +115 -0
- data/Packages/Sheet.js/Source/SheetParser.Value.js +114 -0
- data/Packages/Sheet.js/Source/sg-regex-tools.js +42 -0
- data/Packages/Sheet.js/Test/DOM-styleSheet.api.js +404 -0
- data/Packages/Sheet.js/Test/Sheet.test.js +25 -0
- data/Packages/Sheet.js/Test/SheetParser.CSS.RegExp.test.js +108 -0
- data/Packages/Sheet.js/Test/SheetParser.Property.test.js +230 -0
- data/Packages/Sheet.js/Test/SheetParser.Value.test.js +94 -0
- data/Packages/Sheet.js/Test/all-types.mock.css +103 -0
- data/Packages/Sheet.js/Test/document.styleSheets.test.js +7 -0
- data/Packages/Sheet.js/Test/index.html +12 -0
- data/Packages/Sheet.js/Test/lib/qunit/package.json +21 -0
- data/Packages/Sheet.js/Test/lib/qunit/qunit/qunit.css +196 -0
- data/Packages/Sheet.js/Test/lib/qunit/qunit/qunit.js +1303 -0
- data/Packages/Sheet.js/Test/lib/sg-assert-helpers.js +93 -0
- data/Packages/Sheet.js/Test/lib/sg-qunit-testrunner.js +40 -0
- data/Packages/Sheet.js/Test/lib/sg-testrunner.js +49 -0
- data/Packages/Sheet.js/Test/properties.html +39 -0
- data/Packages/Sheet.js/Test/run.html +43 -0
- data/Packages/Sheet.js/Test/run.js +10 -0
- data/Packages/Sheet.js/Test/test-browser.html +47 -0
- data/Packages/Sheet.js/Test/values.html +38 -0
- data/Packages/Sheet.js/package.json +59 -0
- data/Packages/Sheet.js/test-all +13 -0
- data/Packages/art/Docs/ART/ART.Group.md +106 -0
- data/Packages/art/Docs/ART/ART.Path.md +167 -0
- data/Packages/art/Docs/ART/ART.Shape.md +106 -0
- data/Packages/art/Docs/ART/ART.Transform.md +148 -0
- data/Packages/art/Docs/ART/ART.md +113 -0
- data/Packages/art/Docs/Modes/ART.Base.md +10 -0
- data/Packages/art/Docs/Modes/ART.SVG.md +9 -0
- data/Packages/art/Docs/Modes/ART.VML.md +12 -0
- data/Packages/art/Docs/Shapes/ART.Font.md +15 -0
- data/Packages/art/Docs/Shapes/ART.Shapes.md +63 -0
- data/Packages/art/Docs/Shapes/ART.Text.md +14 -0
- data/Packages/art/Fonts/Moderna.Bold.js +31 -0
- data/Packages/art/Fonts/Moderna.js +31 -0
- data/Packages/art/README.md +3 -0
- data/Packages/art/Source/ART.Base.js +33 -0
- data/Packages/art/Source/ART.Font.js +89 -0
- data/Packages/art/Source/ART.Path.js +440 -0
- data/Packages/art/Source/ART.SVG.js +593 -0
- data/Packages/art/Source/ART.Shapes.js +136 -0
- data/Packages/art/Source/ART.VML.js +772 -0
- data/Packages/art/Source/ART.js +202 -0
- data/Packages/art/license.txt +21 -0
- data/Packages/art/package.yml +24 -0
- data/Packages/art-morph/Demos/index.html +18 -0
- data/Packages/art-morph/Demos/morph.js +30 -0
- data/Packages/art-morph/README.md +3 -0
- data/Packages/art-morph/Source/ART.Path.Morph.js +76 -0
- data/Packages/art-morph/license.txt +21 -0
- data/Packages/lsd/CHANGELOG +152 -0
- data/Packages/lsd/README.md +233 -0
- data/Packages/lsd/Source/ART/ART.Element.js +51 -0
- data/Packages/lsd/Source/ART/ART.Glyphs.js +51 -0
- data/Packages/lsd/Source/ART/ART.SVG.js +122 -0
- data/Packages/lsd/Source/ART/ART.Shape.Arrow.js +104 -0
- data/Packages/lsd/Source/ART/ART.Shape.Ellipse.js +42 -0
- data/Packages/lsd/Source/ART/ART.Shape.Flower.js +71 -0
- data/Packages/lsd/Source/ART/ART.Shape.Rectangle.js +67 -0
- data/Packages/lsd/Source/ART/ART.Shape.Star.js +57 -0
- data/Packages/lsd/Source/ART/ART.js +41 -0
- data/Packages/lsd/Source/Action/Clone.js +36 -0
- data/Packages/lsd/Source/Action/Counter.js +98 -0
- data/Packages/lsd/Source/Action/Create.js +26 -0
- data/Packages/lsd/Source/Action/Delete.js +32 -0
- data/Packages/lsd/Source/Action/Display.js +50 -0
- data/Packages/lsd/Source/Action/Edit.js +138 -0
- data/Packages/lsd/Source/Action/Focus.js +29 -0
- data/Packages/lsd/Source/Action/History.js +27 -0
- data/Packages/lsd/Source/Action/Invoke.js +34 -0
- data/Packages/lsd/Source/Action/List.js +40 -0
- data/Packages/lsd/Source/Action/Set.js +36 -0
- data/Packages/lsd/Source/Action/State.js +33 -0
- data/Packages/lsd/Source/Action/Submit.js +60 -0
- data/Packages/lsd/Source/Action/Toggle.js +41 -0
- data/Packages/lsd/Source/Action/Update.js +79 -0
- data/Packages/lsd/Source/Action.js +169 -0
- data/Packages/lsd/Source/Behavior.js +68 -0
- data/Packages/lsd/Source/Command.js +135 -0
- data/Packages/lsd/Source/Document.js +188 -0
- data/Packages/lsd/Source/Interpolation.js +103 -0
- data/Packages/lsd/Source/LSD.js +163 -0
- data/Packages/lsd/Source/Layer/Color.js +43 -0
- data/Packages/lsd/Source/Layer/Offset.js +37 -0
- data/Packages/lsd/Source/Layer/Position.js +35 -0
- data/Packages/lsd/Source/Layer/Radius.js +39 -0
- data/Packages/lsd/Source/Layer/Scale.js +36 -0
- data/Packages/lsd/Source/Layer/Shadow.Blur.js +41 -0
- data/Packages/lsd/Source/Layer/Shadow.Inset.js +99 -0
- data/Packages/lsd/Source/Layer/Shadow.Native.js +35 -0
- data/Packages/lsd/Source/Layer/Shadow.Onion.js +105 -0
- data/Packages/lsd/Source/Layer/Shadow.js +46 -0
- data/Packages/lsd/Source/Layer/Shape.js +56 -0
- data/Packages/lsd/Source/Layer/Size.js +38 -0
- data/Packages/lsd/Source/Layer/Stroke.js +61 -0
- data/Packages/lsd/Source/Layer.js +212 -0
- data/Packages/lsd/Source/Layout.js +445 -0
- data/Packages/lsd/Source/Mixin/Animation.js +77 -0
- data/Packages/lsd/Source/Mixin/Choice.js +62 -0
- data/Packages/lsd/Source/Mixin/Command.js +98 -0
- data/Packages/lsd/Source/Mixin/ContentEditable.js +124 -0
- data/Packages/lsd/Source/Mixin/Draggable.js +113 -0
- data/Packages/lsd/Source/Mixin/Fieldset.js +235 -0
- data/Packages/lsd/Source/Mixin/Focusable.js +122 -0
- data/Packages/lsd/Source/Mixin/Invokable.js +83 -0
- data/Packages/lsd/Source/Mixin/List.js +99 -0
- data/Packages/lsd/Source/Mixin/Placeholder.js +77 -0
- data/Packages/lsd/Source/Mixin/Request.js +120 -0
- data/Packages/lsd/Source/Mixin/Resizable.js +182 -0
- data/Packages/lsd/Source/Mixin/Resource.js +81 -0
- data/Packages/lsd/Source/Mixin/Root.js +41 -0
- data/Packages/lsd/Source/Mixin/Scrollable.js +69 -0
- data/Packages/lsd/Source/Mixin/Sortable.js +134 -0
- data/Packages/lsd/Source/Mixin/Submittable.js +64 -0
- data/Packages/lsd/Source/Mixin/Target.js +102 -0
- data/Packages/lsd/Source/Mixin/Touchable.js +41 -0
- data/Packages/lsd/Source/Mixin/Unselectable.js +35 -0
- data/Packages/lsd/Source/Mixin/Uploader.js +277 -0
- data/Packages/lsd/Source/Mixin/Validity.js +102 -0
- data/Packages/lsd/Source/Mixin/Value.js +160 -0
- data/Packages/lsd/Source/Module/Accessories/Actions.js +79 -0
- data/Packages/lsd/Source/Module/Accessories/Attributes.js +192 -0
- data/Packages/lsd/Source/Module/Accessories/Chain.js +232 -0
- data/Packages/lsd/Source/Module/Accessories/Dimensions.js +114 -0
- data/Packages/lsd/Source/Module/Accessories/Element.js +233 -0
- data/Packages/lsd/Source/Module/Accessories/Events.js +352 -0
- data/Packages/lsd/Source/Module/Accessories/Options.js +112 -0
- data/Packages/lsd/Source/Module/Accessories/Shortcuts.js +46 -0
- data/Packages/lsd/Source/Module/Accessories/States.js +28 -0
- data/Packages/lsd/Source/Module/Accessories/Styles.js +230 -0
- data/Packages/lsd/Source/Module/Accessories/Tag.js +145 -0
- data/Packages/lsd/Source/Module/Accessories.js +47 -0
- data/Packages/lsd/Source/Module/Ambient/Allocations.js +184 -0
- data/Packages/lsd/Source/Module/Ambient/Container.js +56 -0
- data/Packages/lsd/Source/Module/Ambient/DOM.js +355 -0
- data/Packages/lsd/Source/Module/Ambient/Expectations.js +358 -0
- data/Packages/lsd/Source/Module/Ambient/Layout.js +97 -0
- data/Packages/lsd/Source/Module/Ambient/Mutations.js +101 -0
- data/Packages/lsd/Source/Module/Ambient/Proxies.js +84 -0
- data/Packages/lsd/Source/Module/Ambient/Relations.js +99 -0
- data/Packages/lsd/Source/Module/Ambient/Selectors.js +136 -0
- data/Packages/lsd/Source/Module/Ambient.js +39 -0
- data/Packages/lsd/Source/Module/Graphics/Layers.js +177 -0
- data/Packages/lsd/Source/Module/Graphics/Render.js +96 -0
- data/Packages/lsd/Source/Module/Graphics/Shape.js +56 -0
- data/Packages/lsd/Source/Module/Graphics.js +30 -0
- data/Packages/lsd/Source/Relation.js +397 -0
- data/Packages/lsd/Source/Sheet.js +324 -0
- data/Packages/lsd/Source/Trait/Date.js +66 -0
- data/Packages/lsd/Source/Trait/Input.js +65 -0
- data/Packages/lsd/Source/Trait/Menu.js +21 -0
- data/Packages/lsd/Source/Trait/Slider.js +93 -0
- data/Packages/lsd/Source/Type.js +92 -0
- data/Packages/lsd/Source/Widget.js +60 -0
- data/Packages/lsd/UNLICENSE +24 -0
- data/Packages/lsd/package.yml +114 -0
- data/Packages/lsd-mobile/Source/Body/Dialog.js +57 -0
- data/Packages/lsd-mobile/Source/Body/Page.js +50 -0
- data/Packages/lsd-mobile/Source/Body.js +30 -0
- data/Packages/lsd-mobile/Source/Dialog.js +0 -0
- data/Packages/lsd-mobile/Source/Document.js +78 -0
- data/Packages/lsd-mobile/Source/Input/Date.js +119 -0
- data/Packages/lsd-mobile/Source/Input.js +24 -0
- data/Packages/lsd-mobile/Source/Mobile.js +27 -0
- data/Packages/lsd-mobile/package.yml +15 -0
- data/Packages/lsd-native/README.md +0 -0
- data/Packages/lsd-native/Source/Input/Checkbox.js +42 -0
- data/Packages/lsd-native/Source/Input/Date.js +33 -0
- data/Packages/lsd-native/Source/Input/File.js +23 -0
- data/Packages/lsd-native/Source/Input/Hidden.js +23 -0
- data/Packages/lsd-native/Source/Input/Password.js +29 -0
- data/Packages/lsd-native/Source/Input/Radio.js +42 -0
- data/Packages/lsd-native/Source/Input/Search.js +23 -0
- data/Packages/lsd-native/Source/Input.js +48 -0
- data/Packages/lsd-native/Source/Select.js +29 -0
- data/Packages/lsd-native/Source/Textarea.js +27 -0
- data/Packages/lsd-native/package.yml +18 -0
- data/Packages/lsd-specs/Compiled/includes.js +217 -0
- data/Packages/lsd-specs/Configuration.js +124 -0
- data/Packages/lsd-specs/compile.sh +1 -0
- data/Packages/lsd-specs/index.html +26 -0
- data/Packages/lsd-specs/lsd/Action/Counter.js +35 -0
- data/Packages/lsd-specs/lsd/Layout.js +146 -0
- data/Packages/lsd-specs/lsd/Module/Accessories/Attributes.js +68 -0
- data/Packages/lsd-specs/lsd/Module/Accessories/Chain.js +385 -0
- data/Packages/lsd-specs/lsd/Module/Accessories/Dimensions.js +53 -0
- data/Packages/lsd-specs/lsd/Module/Accessories/Element.js +112 -0
- data/Packages/lsd-specs/lsd/Module/Accessories/Events.js +151 -0
- data/Packages/lsd-specs/lsd/Module/Accessories/Options.js +36 -0
- data/Packages/lsd-specs/lsd/Module/Accessories/Shortcuts.js +0 -0
- data/Packages/lsd-specs/lsd/Module/Accessories/States.js +0 -0
- data/Packages/lsd-specs/lsd/Module/Accessories/Styles.js +14 -0
- data/Packages/lsd-specs/lsd/Module/Accessories/Tag.js +84 -0
- data/Packages/lsd-specs/lsd/Module/Ambient/DOM.js +394 -0
- data/Packages/lsd-specs/lsd/Module/Ambient/Expectations.js +199 -0
- data/Packages/lsd-specs/lsd/Module/Ambient/Layout.js +0 -0
- data/Packages/lsd-specs/lsd/Module/Ambient/Relations.js +7 -0
- data/Packages/lsd-specs/lsd/Module/Behavior/Target.Parser.js +123 -0
- data/Packages/lsd-specs/lsd/Module/Behavior/Target.js +0 -0
- data/Packages/lsd-specs/lsd/Relation.js +428 -0
- data/Packages/lsd-specs/lsd/Trait/Dimensions.js +216 -0
- data/Packages/lsd-specs/lsd/Trait/Layers.js +66 -0
- data/Packages/lsd-specs/lsd/Type.js +27 -0
- data/Packages/lsd-specs/outdated/Focus.js +137 -0
- data/Packages/lsd-widgets/Source/Body/Dialog.js +68 -0
- data/Packages/lsd-widgets/Source/Body/Page.js +38 -0
- data/Packages/lsd-widgets/Source/Body.js +27 -0
- data/Packages/lsd-widgets/Source/Button.js +34 -0
- data/Packages/lsd-widgets/Source/Form.js +43 -0
- data/Packages/lsd-widgets/Source/Input/Checkbox.js +31 -0
- data/Packages/lsd-widgets/Source/Input/Date.js +43 -0
- data/Packages/lsd-widgets/Source/Input/File.js +63 -0
- data/Packages/lsd-widgets/Source/Input/HTML.js +54 -0
- data/Packages/lsd-widgets/Source/Input/Radio.js +31 -0
- data/Packages/lsd-widgets/Source/Input/Range.js +61 -0
- data/Packages/lsd-widgets/Source/Input/Submit.js +55 -0
- data/Packages/lsd-widgets/Source/Input.js +62 -0
- data/Packages/lsd-widgets/Source/Label.js +66 -0
- data/Packages/lsd-widgets/Source/Menu/Context.js +39 -0
- data/Packages/lsd-widgets/Source/Menu/List.js +49 -0
- data/Packages/lsd-widgets/Source/Menu/Toolbar.Menu.js +65 -0
- data/Packages/lsd-widgets/Source/Menu/Toolbar.js +30 -0
- data/Packages/lsd-widgets/Source/Menu.js +38 -0
- data/Packages/lsd-widgets/Source/Progress.js +45 -0
- data/Packages/lsd-widgets/Source/Scrollbar.js +131 -0
- data/Packages/lsd-widgets/Source/Select.js +81 -0
- data/Packages/lsd-widgets/Source/Table/Calendar.js +127 -0
- data/Packages/lsd-widgets/Source/Table.js +100 -0
- data/Packages/lsd-widgets/Source/Textarea.js +32 -0
- data/Packages/lsd-widgets/package.yml +32 -0
- data/Packages/mootools-color/README.md +4 -0
- data/Packages/mootools-color/Source/Color.js +167 -0
- data/Packages/mootools-color/license.txt +21 -0
- data/Packages/mootools-color/package.yml +20 -0
- data/Packages/mootools-core/Docs/Browser/Browser.md +102 -0
- data/Packages/mootools-core/Docs/Class/Class.Extras.md +453 -0
- data/Packages/mootools-core/Docs/Class/Class.md +133 -0
- data/Packages/mootools-core/Docs/Core/Core.md +385 -0
- data/Packages/mootools-core/Docs/Element/Element.Dimensions.md +235 -0
- data/Packages/mootools-core/Docs/Element/Element.Event.md +330 -0
- data/Packages/mootools-core/Docs/Element/Element.Style.md +121 -0
- data/Packages/mootools-core/Docs/Element/Element.md +1924 -0
- data/Packages/mootools-core/Docs/Fx/Fx.CSS.md +12 -0
- data/Packages/mootools-core/Docs/Fx/Fx.Morph.md +225 -0
- data/Packages/mootools-core/Docs/Fx/Fx.Transitions.md +157 -0
- data/Packages/mootools-core/Docs/Fx/Fx.Tween.md +303 -0
- data/Packages/mootools-core/Docs/Fx/Fx.md +172 -0
- data/Packages/mootools-core/Docs/Intro.md +37 -0
- data/Packages/mootools-core/Docs/Request/Request.HTML.md +179 -0
- data/Packages/mootools-core/Docs/Request/Request.JSON.md +61 -0
- data/Packages/mootools-core/Docs/Request/Request.md +461 -0
- data/Packages/mootools-core/Docs/Types/Array.md +797 -0
- data/Packages/mootools-core/Docs/Types/Event.md +204 -0
- data/Packages/mootools-core/Docs/Types/Function.md +409 -0
- data/Packages/mootools-core/Docs/Types/Number.md +212 -0
- data/Packages/mootools-core/Docs/Types/Object.md +599 -0
- data/Packages/mootools-core/Docs/Types/String.md +400 -0
- data/Packages/mootools-core/Docs/Utilities/Cookie.md +95 -0
- data/Packages/mootools-core/Docs/Utilities/DOMReady.md +21 -0
- data/Packages/mootools-core/Docs/Utilities/JSON.md +56 -0
- data/Packages/mootools-core/Docs/Utilities/Swiff.md +90 -0
- data/Packages/mootools-core/Docs/license.md +8 -0
- data/Packages/mootools-core/README.md +6 -0
- data/Packages/mootools-core/Source/Browser/Browser.js +264 -0
- data/Packages/mootools-core/Source/Class/Class.Extras.js +121 -0
- data/Packages/mootools-core/Source/Class/Class.js +115 -0
- data/Packages/mootools-core/Source/Core/Core.js +511 -0
- data/Packages/mootools-core/Source/Element/Element.Dimensions.js +283 -0
- data/Packages/mootools-core/Source/Element/Element.Event.js +175 -0
- data/Packages/mootools-core/Source/Element/Element.Style.js +184 -0
- data/Packages/mootools-core/Source/Element/Element.js +862 -0
- data/Packages/mootools-core/Source/Fx/Fx.CSS.js +149 -0
- data/Packages/mootools-core/Source/Fx/Fx.Morph.js +77 -0
- data/Packages/mootools-core/Source/Fx/Fx.Transitions.js +113 -0
- data/Packages/mootools-core/Source/Fx/Fx.Tween.js +103 -0
- data/Packages/mootools-core/Source/Fx/Fx.js +179 -0
- data/Packages/mootools-core/Source/Request/Request.HTML.js +88 -0
- data/Packages/mootools-core/Source/Request/Request.JSON.js +46 -0
- data/Packages/mootools-core/Source/Request/Request.js +278 -0
- data/Packages/mootools-core/Source/Slick/Slick.Finder.js +970 -0
- data/Packages/mootools-core/Source/Slick/Slick.Parser.js +230 -0
- data/Packages/mootools-core/Source/Types/Array.js +178 -0
- data/Packages/mootools-core/Source/Types/Event.js +135 -0
- data/Packages/mootools-core/Source/Types/Function.js +118 -0
- data/Packages/mootools-core/Source/Types/Number.js +52 -0
- data/Packages/mootools-core/Source/Types/Object.js +209 -0
- data/Packages/mootools-core/Source/Types/String.js +82 -0
- data/Packages/mootools-core/Source/Utilities/Cookie.js +74 -0
- data/Packages/mootools-core/Source/Utilities/DOMReady.js +105 -0
- data/Packages/mootools-core/Source/Utilities/JSON.js +81 -0
- data/Packages/mootools-core/Source/Utilities/Swiff.js +113 -0
- data/Packages/mootools-core/Source/license.txt +21 -0
- data/Packages/mootools-core/build +40 -0
- data/Packages/mootools-core/package.yml +43 -0
- data/Packages/mootools-custom-event/Demos/index.html +147 -0
- data/Packages/mootools-custom-event/Demos/mootools-core.js +3183 -0
- data/Packages/mootools-custom-event/Demos/style.css +44 -0
- data/Packages/mootools-custom-event/LICENSE +24 -0
- data/Packages/mootools-custom-event/README.md +128 -0
- data/Packages/mootools-custom-event/Source/Element.defineCustomEvent.js +90 -0
- data/Packages/mootools-custom-event/package.yml +20 -0
- data/Packages/mootools-ext/Examples/Class.Includes.js +47 -0
- data/Packages/mootools-ext/Examples/Class.Macros.js +69 -0
- data/Packages/mootools-ext/Examples/Class.States.js +20 -0
- data/Packages/mootools-ext/Examples/_includes.haml +17 -0
- data/Packages/mootools-ext/Examples/examples.js +8 -0
- data/Packages/mootools-ext/Examples/index.haml +22 -0
- data/Packages/mootools-ext/README.md +8 -0
- data/Packages/mootools-ext/Rakefile +5 -0
- data/Packages/mootools-ext/Source/Core/Class.Binds.Remover.js +21 -0
- data/Packages/mootools-ext/Source/Core/Class.Includes.js +68 -0
- data/Packages/mootools-ext/Source/Core/Class.Macros.js +90 -0
- data/Packages/mootools-ext/Source/Core/Class.Mixin.js +89 -0
- data/Packages/mootools-ext/Source/Core/Class.Shortcuts.js +124 -0
- data/Packages/mootools-ext/Source/Core/Class.States.js +95 -0
- data/Packages/mootools-ext/Source/Drag/Drag.Limits.js +42 -0
- data/Packages/mootools-ext/Source/Drag/Slider.js +33 -0
- data/Packages/mootools-ext/Source/Drag/Sortables.Delegation.js +64 -0
- data/Packages/mootools-ext/Source/Element/Element.Selection.js +45 -0
- data/Packages/mootools-ext/Source/Element/Element.from.js +50 -0
- data/Packages/mootools-ext/Source/Element/Element.js +47 -0
- data/Packages/mootools-ext/Source/Element/Element.onDispose.js +36 -0
- data/Packages/mootools-ext/Source/Element/Events/Input.js +23 -0
- data/Packages/mootools-ext/Source/Element/Events/Keypress.js +65 -0
- data/Packages/mootools-ext/Source/Element/Properties/BorderRadius.js +41 -0
- data/Packages/mootools-ext/Source/Element/Properties/BoxShadow.js +61 -0
- data/Packages/mootools-ext/Source/Element/Properties/Data.js +32 -0
- data/Packages/mootools-ext/Source/Element/Properties/Item.js +210 -0
- data/Packages/mootools-ext/Source/Element/Properties/UserSelect.js +32 -0
- data/Packages/mootools-ext/Source/Element/Properties/Widget.js +32 -0
- data/Packages/mootools-ext/Source/Request/Request.Auto.js +38 -0
- data/Packages/mootools-ext/Source/Request/Request.Form.js +108 -0
- data/Packages/mootools-ext/Source/Request/Request.Headers.js +41 -0
- data/Packages/mootools-ext/Source/Request/Request.Statuses.js +95 -0
- data/Packages/mootools-ext/Source/Types/Event.js +336 -0
- data/Packages/mootools-ext/Source/Types/FastArray.js +74 -0
- data/Packages/mootools-ext/Source/Types/Object.js +34 -0
- data/Packages/mootools-ext/Source/Types/String.js +33 -0
- data/Packages/mootools-ext/package.yml +45 -0
- data/Packages/mootools-history/Demos/demo.css +14 -0
- data/Packages/mootools-history/Demos/demo.js +66 -0
- data/Packages/mootools-history/Demos/index.html +32 -0
- data/Packages/mootools-history/Demos/mootools-class-extras.js +27 -0
- data/Packages/mootools-history/Demos/mootools-core.js +4422 -0
- data/Packages/mootools-history/Demos/mootools.html +27 -0
- data/Packages/mootools-history/Demos/other.html +27 -0
- data/Packages/mootools-history/Demos/style.css +96 -0
- data/Packages/mootools-history/LICENSE +24 -0
- data/Packages/mootools-history/README.md +97 -0
- data/Packages/mootools-history/Source/History.handleInitialState.js +42 -0
- data/Packages/mootools-history/Source/History.js +102 -0
- data/Packages/mootools-history/package.yml +21 -0
- data/Packages/mootools-mobile/Demos/custom-event.js +91 -0
- data/Packages/mootools-mobile/Demos/demo.css +13 -0
- data/Packages/mootools-mobile/Demos/index.html +99 -0
- data/Packages/mootools-mobile/Demos/mootools-core.js +3831 -0
- data/Packages/mootools-mobile/Demos/pinch.html +60 -0
- data/Packages/mootools-mobile/Demos/style.css +121 -0
- data/Packages/mootools-mobile/Demos/swipe.html +45 -0
- data/Packages/mootools-mobile/Demos/touchhold.html +50 -0
- data/Packages/mootools-mobile/LICENSE +24 -0
- data/Packages/mootools-mobile/README.md +173 -0
- data/Packages/mootools-mobile/Source/Browser/Features.Touch.js +52 -0
- data/Packages/mootools-mobile/Source/Browser/Mobile.js +37 -0
- data/Packages/mootools-mobile/Source/Desktop/Mouse.js +60 -0
- data/Packages/mootools-mobile/Source/Touch/Click.js +30 -0
- data/Packages/mootools-mobile/Source/Touch/Pinch.js +66 -0
- data/Packages/mootools-mobile/Source/Touch/Swipe.js +95 -0
- data/Packages/mootools-mobile/Source/Touch/Touch.js +62 -0
- data/Packages/mootools-mobile/Source/Touch/Touchhold.js +69 -0
- data/Packages/mootools-mobile/package.yml +24 -0
- data/Packages/mootools-more/Docs/Class/Chain.Wait.md +69 -0
- data/Packages/mootools-more/Docs/Class/Class.Binds.md +84 -0
- data/Packages/mootools-more/Docs/Class/Class.Occlude.md +61 -0
- data/Packages/mootools-more/Docs/Class/Class.Refactor.md +65 -0
- data/Packages/mootools-more/Docs/Class/Events.Pseudos.md +125 -0
- data/Packages/mootools-more/Docs/Drag/Drag.Move.md +147 -0
- data/Packages/mootools-more/Docs/Drag/Drag.md +206 -0
- data/Packages/mootools-more/Docs/Drag/Slider.md +249 -0
- data/Packages/mootools-more/Docs/Drag/Sortables.md +287 -0
- data/Packages/mootools-more/Docs/Element/Element.Delegation.md +120 -0
- data/Packages/mootools-more/Docs/Element/Element.Event.Pseudos.Keys.md +67 -0
- data/Packages/mootools-more/Docs/Element/Element.Event.Pseudos.md +124 -0
- data/Packages/mootools-more/Docs/Element/Element.Forms.md +231 -0
- data/Packages/mootools-more/Docs/Element/Element.Measure.md +130 -0
- data/Packages/mootools-more/Docs/Element/Element.Pin.md +56 -0
- data/Packages/mootools-more/Docs/Element/Element.Position.md +77 -0
- data/Packages/mootools-more/Docs/Element/Element.Shortcuts.md +121 -0
- data/Packages/mootools-more/Docs/Element/Elements.From.md +32 -0
- data/Packages/mootools-more/Docs/Forms/Form.Request.Append.md +36 -0
- data/Packages/mootools-more/Docs/Forms/Form.Request.md +141 -0
- data/Packages/mootools-more/Docs/Forms/Form.Validator.Extras.md +157 -0
- data/Packages/mootools-more/Docs/Forms/Form.Validator.Inline.md +100 -0
- data/Packages/mootools-more/Docs/Forms/Form.Validator.md +666 -0
- data/Packages/mootools-more/Docs/Forms/OverText.md +237 -0
- data/Packages/mootools-more/Docs/Fx/Fx.Accordion.md +178 -0
- data/Packages/mootools-more/Docs/Fx/Fx.Elements.md +114 -0
- data/Packages/mootools-more/Docs/Fx/Fx.Move.md +160 -0
- data/Packages/mootools-more/Docs/Fx/Fx.Reveal.md +235 -0
- data/Packages/mootools-more/Docs/Fx/Fx.Scroll.md +291 -0
- data/Packages/mootools-more/Docs/Fx/Fx.Slide.md +272 -0
- data/Packages/mootools-more/Docs/Fx/Fx.SmoothScroll.md +50 -0
- data/Packages/mootools-more/Docs/Fx/Fx.Sort.md +201 -0
- data/Packages/mootools-more/Docs/Interface/HtmlTable.Select.md +246 -0
- data/Packages/mootools-more/Docs/Interface/HtmlTable.Sort.md +193 -0
- data/Packages/mootools-more/Docs/Interface/HtmlTable.Zebra.md +94 -0
- data/Packages/mootools-more/Docs/Interface/HtmlTable.md +250 -0
- data/Packages/mootools-more/Docs/Interface/Keyboard.Extras.md +163 -0
- data/Packages/mootools-more/Docs/Interface/Keyboard.md +226 -0
- data/Packages/mootools-more/Docs/Interface/Mask.md +232 -0
- data/Packages/mootools-more/Docs/Interface/Scroller.md +97 -0
- data/Packages/mootools-more/Docs/Interface/Spinner.md +284 -0
- data/Packages/mootools-more/Docs/Interface/Tips.md +267 -0
- data/Packages/mootools-more/Docs/Locale/Date.md +222 -0
- data/Packages/mootools-more/Docs/Locale/Form.Validator.md +197 -0
- data/Packages/mootools-more/Docs/Locale/Locale.Set.From.md +29 -0
- data/Packages/mootools-more/Docs/Locale/Locale.md +208 -0
- data/Packages/mootools-more/Docs/Locale/Number.md +97 -0
- data/Packages/mootools-more/Docs/More/More.md +20 -0
- data/Packages/mootools-more/Docs/Request/Request.JSONP.md +126 -0
- data/Packages/mootools-more/Docs/Request/Request.Periodical.md +82 -0
- data/Packages/mootools-more/Docs/Request/Request.Queue.md +337 -0
- data/Packages/mootools-more/Docs/Types/Array.Extras.md +193 -0
- data/Packages/mootools-more/Docs/Types/Date.Extras.md +97 -0
- data/Packages/mootools-more/Docs/Types/Date.md +564 -0
- data/Packages/mootools-more/Docs/Types/Hash.Extras.md +111 -0
- data/Packages/mootools-more/Docs/Types/Hash.md +633 -0
- data/Packages/mootools-more/Docs/Types/Number.Format.md +91 -0
- data/Packages/mootools-more/Docs/Types/Object.Extras.md +134 -0
- data/Packages/mootools-more/Docs/Types/String.Extras.md +188 -0
- data/Packages/mootools-more/Docs/Types/String.QueryString.md +56 -0
- data/Packages/mootools-more/Docs/Types/URI.Relative.md +46 -0
- data/Packages/mootools-more/Docs/Types/URI.md +213 -0
- data/Packages/mootools-more/Docs/Utilities/Assets.md +175 -0
- data/Packages/mootools-more/Docs/Utilities/Color.md +276 -0
- data/Packages/mootools-more/Docs/Utilities/Group.md +75 -0
- data/Packages/mootools-more/Docs/Utilities/Hash.Cookie.md +117 -0
- data/Packages/mootools-more/Docs/Utilities/IframeShim.md +136 -0
- data/Packages/mootools-more/Docs/Utilities/Table.md +114 -0
- data/Packages/mootools-more/Docs/license.md +8 -0
- data/Packages/mootools-more/README.md +244 -0
- data/Packages/mootools-more/Source/Class/Chain.Wait.js +63 -0
- data/Packages/mootools-more/Source/Class/Class.Binds.js +37 -0
- data/Packages/mootools-more/Source/Class/Class.Occlude.js +38 -0
- data/Packages/mootools-more/Source/Class/Class.Refactor.js +41 -0
- data/Packages/mootools-more/Source/Class/Events.Pseudos.js +180 -0
- data/Packages/mootools-more/Source/Drag/Drag.Move.js +197 -0
- data/Packages/mootools-more/Source/Drag/Drag.js +234 -0
- data/Packages/mootools-more/Source/Drag/Slider.js +225 -0
- data/Packages/mootools-more/Source/Drag/Sortables.js +233 -0
- data/Packages/mootools-more/Source/Element/Element.Delegation.js +140 -0
- data/Packages/mootools-more/Source/Element/Element.Event.Pseudos.Keys.js +82 -0
- data/Packages/mootools-more/Source/Element/Element.Event.Pseudos.js +36 -0
- data/Packages/mootools-more/Source/Element/Element.Forms.js +140 -0
- data/Packages/mootools-more/Source/Element/Element.Measure.js +170 -0
- data/Packages/mootools-more/Source/Element/Element.Pin.js +130 -0
- data/Packages/mootools-more/Source/Element/Element.Position.js +235 -0
- data/Packages/mootools-more/Source/Element/Element.Shortcuts.js +76 -0
- data/Packages/mootools-more/Source/Element/Elements.From.js +40 -0
- data/Packages/mootools-more/Source/Forms/Form.Request.Append.js +77 -0
- data/Packages/mootools-more/Source/Forms/Form.Request.js +203 -0
- data/Packages/mootools-more/Source/Forms/Form.Validator.Extras.js +231 -0
- data/Packages/mootools-more/Source/Forms/Form.Validator.Inline.js +190 -0
- data/Packages/mootools-more/Source/Forms/Form.Validator.js +523 -0
- data/Packages/mootools-more/Source/Forms/OverText.js +258 -0
- data/Packages/mootools-more/Source/Fx/Fx.Accordion.js +240 -0
- data/Packages/mootools-more/Source/Fx/Fx.Elements.js +74 -0
- data/Packages/mootools-more/Source/Fx/Fx.Move.js +71 -0
- data/Packages/mootools-more/Source/Fx/Fx.Reveal.js +246 -0
- data/Packages/mootools-more/Source/Fx/Fx.Scroll.js +180 -0
- data/Packages/mootools-more/Source/Fx/Fx.Slide.js +170 -0
- data/Packages/mootools-more/Source/Fx/Fx.SmoothScroll.js +70 -0
- data/Packages/mootools-more/Source/Fx/Fx.Sort.js +172 -0
- data/Packages/mootools-more/Source/Interface/HtmlTable.Select.js +352 -0
- data/Packages/mootools-more/Source/Interface/HtmlTable.Sort.js +349 -0
- data/Packages/mootools-more/Source/Interface/HtmlTable.Zebra.js +64 -0
- data/Packages/mootools-more/Source/Interface/HtmlTable.js +150 -0
- data/Packages/mootools-more/Source/Interface/Keyboard.Extras.js +109 -0
- data/Packages/mootools-more/Source/Interface/Keyboard.js +242 -0
- data/Packages/mootools-more/Source/Interface/Mask.js +211 -0
- data/Packages/mootools-more/Source/Interface/Scroller.js +104 -0
- data/Packages/mootools-more/Source/Interface/Spinner.js +216 -0
- data/Packages/mootools-more/Source/Interface/Tips.js +259 -0
- data/Packages/mootools-more/Source/Locale/Locale.EU.Number.js +30 -0
- data/Packages/mootools-more/Source/Locale/Locale.Set.From.js +52 -0
- data/Packages/mootools-more/Source/Locale/Locale.ar.Date.js +28 -0
- data/Packages/mootools-more/Source/Locale/Locale.ar.Form.Validator.js +40 -0
- data/Packages/mootools-more/Source/Locale/Locale.ca-CA.Date.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.ca-CA.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.cs-CZ.Date.js +80 -0
- data/Packages/mootools-more/Source/Locale/Locale.cs-CZ.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.da-DK.Date.js +68 -0
- data/Packages/mootools-more/Source/Locale/Locale.da-DK.Form.Validator.js +54 -0
- data/Packages/mootools-more/Source/Locale/Locale.de-CH.Date.js +22 -0
- data/Packages/mootools-more/Source/Locale/Locale.de-CH.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.de-DE.Date.js +70 -0
- data/Packages/mootools-more/Source/Locale/Locale.de-DE.Form.Validator.js +57 -0
- data/Packages/mootools-more/Source/Locale/Locale.de-DE.Number.js +22 -0
- data/Packages/mootools-more/Source/Locale/Locale.en-GB.Date.js +29 -0
- data/Packages/mootools-more/Source/Locale/Locale.en-US.Date.js +70 -0
- data/Packages/mootools-more/Source/Locale/Locale.en-US.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.en-US.Number.js +51 -0
- data/Packages/mootools-more/Source/Locale/Locale.es-AR.Date.js +23 -0
- data/Packages/mootools-more/Source/Locale/Locale.es-AR.Form.Validator.js +54 -0
- data/Packages/mootools-more/Source/Locale/Locale.es-ES.Date.js +67 -0
- data/Packages/mootools-more/Source/Locale/Locale.es-ES.Form.Validator.js +54 -0
- data/Packages/mootools-more/Source/Locale/Locale.es-VE.Date.js +22 -0
- data/Packages/mootools-more/Source/Locale/Locale.es-VE.Form.Validator.js +34 -0
- data/Packages/mootools-more/Source/Locale/Locale.es-VE.Number.js +44 -0
- data/Packages/mootools-more/Source/Locale/Locale.et-EE.Date.js +67 -0
- data/Packages/mootools-more/Source/Locale/Locale.et-EE.Form.Validator.js +54 -0
- data/Packages/mootools-more/Source/Locale/Locale.fa.Date.js +66 -0
- data/Packages/mootools-more/Source/Locale/Locale.fa.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.fi-FI.Date.js +72 -0
- data/Packages/mootools-more/Source/Locale/Locale.fi-FI.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.fi-FI.Number.js +26 -0
- data/Packages/mootools-more/Source/Locale/Locale.fr-FR.Date.js +70 -0
- data/Packages/mootools-more/Source/Locale/Locale.fr-FR.Form.Validator.js +56 -0
- data/Packages/mootools-more/Source/Locale/Locale.fr-FR.Number.js +27 -0
- data/Packages/mootools-more/Source/Locale/Locale.he-IL.Date.js +67 -0
- data/Packages/mootools-more/Source/Locale/Locale.he-IL.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.he-IL.Number.js +30 -0
- data/Packages/mootools-more/Source/Locale/Locale.hu-HU.Date.js +67 -0
- data/Packages/mootools-more/Source/Locale/Locale.hu-HU.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.it-IT.Date.js +68 -0
- data/Packages/mootools-more/Source/Locale/Locale.it-IT.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.ja-JP.Date.js +67 -0
- data/Packages/mootools-more/Source/Locale/Locale.ja-JP.Form.Validator.js +54 -0
- data/Packages/mootools-more/Source/Locale/Locale.ja-JP.Number.js +31 -0
- data/Packages/mootools-more/Source/Locale/Locale.js +188 -0
- data/Packages/mootools-more/Source/Locale/Locale.nl-NL.Date.js +68 -0
- data/Packages/mootools-more/Source/Locale/Locale.nl-NL.Form.Validator.js +57 -0
- data/Packages/mootools-more/Source/Locale/Locale.nl-NL.Number.js +25 -0
- data/Packages/mootools-more/Source/Locale/Locale.no-NO.Date.js +39 -0
- data/Packages/mootools-more/Source/Locale/Locale.no-NO.Form.Validator.js +40 -0
- data/Packages/mootools-more/Source/Locale/Locale.pl-PL.Date.js +57 -0
- data/Packages/mootools-more/Source/Locale/Locale.pl-PL.Form.Validator.js +54 -0
- data/Packages/mootools-more/Source/Locale/Locale.pt-BR.Date.js +27 -0
- data/Packages/mootools-more/Source/Locale/Locale.pt-BR.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.pt-BR.Number.js +33 -0
- data/Packages/mootools-more/Source/Locale/Locale.pt-PT.Date.js +67 -0
- data/Packages/mootools-more/Source/Locale/Locale.pt-PT.Form.Validator.js +40 -0
- data/Packages/mootools-more/Source/Locale/Locale.ru-RU.Date.js +98 -0
- data/Packages/mootools-more/Source/Locale/Locale.ru-RU.Form.Validator.js +46 -0
- data/Packages/mootools-more/Source/Locale/Locale.si-SI.Date.js +75 -0
- data/Packages/mootools-more/Source/Locale/Locale.si-SI.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.sv-SE.Date.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.sv-SE.Form.Validator.js +54 -0
- data/Packages/mootools-more/Source/Locale/Locale.sv-SE.Number.js +29 -0
- data/Packages/mootools-more/Source/Locale/Locale.tr-TR.Date.js +67 -0
- data/Packages/mootools-more/Source/Locale/Locale.tr-TR.Form.Validator.js +55 -0
- data/Packages/mootools-more/Source/Locale/Locale.tr-TR.Number.js +29 -0
- data/Packages/mootools-more/Source/Locale/Locale.uk-UA.Date.js +82 -0
- data/Packages/mootools-more/Source/Locale/Locale.uk-UA.Form.Validator.js +54 -0
- data/Packages/mootools-more/Source/Locale/Locale.zh-CH.Date.js +117 -0
- data/Packages/mootools-more/Source/Locale/Locale.zh-CH.Form.Validator.js +110 -0
- data/Packages/mootools-more/Source/Locale/Locale.zh-CH.Number.js +32 -0
- data/Packages/mootools-more/Source/More/More.js +33 -0
- data/Packages/mootools-more/Source/Request/Request.JSONP.js +142 -0
- data/Packages/mootools-more/Source/Request/Request.Periodical.js +51 -0
- data/Packages/mootools-more/Source/Request/Request.Queue.js +212 -0
- data/Packages/mootools-more/Source/Types/Array.Extras.js +79 -0
- data/Packages/mootools-more/Source/Types/Date.Extras.js +117 -0
- data/Packages/mootools-more/Source/Types/Date.js +559 -0
- data/Packages/mootools-more/Source/Types/Hash.Extras.js +38 -0
- data/Packages/mootools-more/Source/Types/Hash.js +145 -0
- data/Packages/mootools-more/Source/Types/Number.Format.js +105 -0
- data/Packages/mootools-more/Source/Types/Object.Extras.js +66 -0
- data/Packages/mootools-more/Source/Types/String.Extras.js +148 -0
- data/Packages/mootools-more/Source/Types/String.QueryString.js +68 -0
- data/Packages/mootools-more/Source/Types/URI.Relative.js +57 -0
- data/Packages/mootools-more/Source/Types/URI.js +169 -0
- data/Packages/mootools-more/Source/Utilities/Assets.js +131 -0
- data/Packages/mootools-more/Source/Utilities/Color.js +162 -0
- data/Packages/mootools-more/Source/Utilities/Group.js +60 -0
- data/Packages/mootools-more/Source/Utilities/Hash.Cookie.js +61 -0
- data/Packages/mootools-more/Source/Utilities/IframeShim.js +130 -0
- data/Packages/mootools-more/Source/Utilities/Table.js +57 -0
- data/Packages/mootools-more/Source/license.txt +21 -0
- data/Packages/mootools-more/Styles/Interface/Mask/mask.css +8 -0
- data/Packages/mootools-more/Styles/Interface/Spinner/spinner.css +19 -0
- data/Packages/mootools-more/Styles/Interface/Spinner/spinner.gif +0 -0
- data/Packages/mootools-more/Tests/Interactive/Class/Chain.Wait_(tween).html +14 -0
- data/Packages/mootools-more/Tests/Interactive/Class/Chain.Wait_(tween).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(basic).html +39 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(basic).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(container).html +130 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(container).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(drag_in_drag).html +46 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(drag_in_drag).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(drag_in_drag_border).html +48 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(drag_in_drag_border).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(droppables).html +88 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(droppables).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(no_offsetParent).html +42 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(no_offsetParent).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(position_right_bottom).html +41 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(style_false).html +23 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(style_false).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag_(resize).html +48 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Drag_(resize).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Slider.html +169 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Slider.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(images).html +19 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(images).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(multi).html +44 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(multi).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(revert).html +51 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(single).html +67 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(single).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(table).html +46 -0
- data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(table).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Delegation.html +89 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Delegation.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Delegation_(focus_blur).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Delegation_(non_bubbling).html +126 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Event.Pseudos.Keys.html +39 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Event.Pseudos.Keys.yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Event.Pseudos.html +56 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Forms.html +125 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Forms.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Pin.html +46 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Pin.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(basic).html +118 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(basic).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(scrolled).html +47 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(scrolled).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(scrolling).html +46 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(scrolling).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Shortcuts.html +171 -0
- data/Packages/mootools-more/Tests/Interactive/Element/Element.Shortcuts.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Request.Append.html +29 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Request.Append.yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Request.html +49 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Request.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Extras.html +88 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Extras.yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Extras_(data-).html +87 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Extras_(data-).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline.html +54 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline.yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(data-).html +54 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(data-).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(data-warnings).html +42 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(data-warnings).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(onBlur).html +60 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(onBlur).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(onChange).html +68 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(onChange).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(single_input).html +33 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(single_input).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(warnings).html +42 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(warnings).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/OverText.html +116 -0
- data/Packages/mootools-more/Tests/Interactive/Forms/OverText.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Accordion.html +152 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Accordion.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Elements.html +34 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Elements.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Move.html +91 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Move.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Reveal.html +42 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Reveal.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Scroll_(element).html +107 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Scroll_(element).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Scroll_(window).html +88 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Scroll_(window).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Slide.html +63 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Slide.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.SmoothScroll.html +77 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.SmoothScroll.yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Sort.html +100 -0
- data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Sort.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable.Select.html +109 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable.Select.yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable.html +46 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(empty_and_refill).html +46 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(empty_and_refill).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(id).html +43 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(id).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(sortable).html +256 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(sortable).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(zebra).html +93 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(zebra).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Keyboard_(nested).html +129 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Keyboard_(nested).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Keyboard_(single).html +93 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Keyboard_(single).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Mask.html +63 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Mask.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Scroller.html +40 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Scroller.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Scroller_(With_Drag).html +45 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Scroller_(With_Drag).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Spinner.html +125 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Spinner.yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Tips.html +156 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Tips.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Tips_(offset).html +64 -0
- data/Packages/mootools-more/Tests/Interactive/Interface/Tips_(offset).yml +3 -0
- data/Packages/mootools-more/Tests/Interactive/README.md +3 -0
- data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP.html +22 -0
- data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP_(async).html +33 -0
- data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP_(async).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP_(timeout).html +46 -0
- data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP_(timeout).yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Request/Request.Periodical.html +38 -0
- data/Packages/mootools-more/Tests/Interactive/Request/Request.Periodical.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Request/Request.Queue.html +42 -0
- data/Packages/mootools-more/Tests/Interactive/Request/Request.Queue.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Utilities/Assets.html +78 -0
- data/Packages/mootools-more/Tests/Interactive/Utilities/Assets.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/Utilities/IframeShim.html +36 -0
- data/Packages/mootools-more/Tests/Interactive/Utilities/IframeShim.yml +2 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/Assets.css.test.css +24 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/Assets.js.test.js +3 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/bullet_arrow_down.png +0 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/bullet_arrow_up.png +0 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/cow.png +0 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/mask.css +8 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/mediaplayer.swf +0 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/mootools.png +0 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/spinner.css +19 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/spinner.gif +0 -0
- data/Packages/mootools-more/Tests/Interactive/_assets/video.flv +0 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Class/Chain.Wait.js +74 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Class/Class.Binds.js +91 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Class/Class.Occlude.js +49 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Class/Class.Refactor.js +103 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Class/Events.Pseudos.js +367 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Delegation.js +32 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Event.Pseudos.Keys.js +33 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Event.Pseudos.js +69 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Forms.js +155 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Measure.js +92 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Pin.js +131 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Position.js +181 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Shortcuts.js +93 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Element/Elements.From.js +22 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Forms/Form.Validator.js +384 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Fx/Fx.Reveal.js +24 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Fx/Fx.Slide.js +21 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Interface/HtmlTable.Select.js +153 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Interface/HtmlTable.Sort.js +181 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Interface/HtmlTable.Zebra.js +39 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Interface/HtmlTable.js +153 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Interface/Keyboard.js +130 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Locale/Locale.js +104 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Request/Request.JSONP.js +55 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/Array.Extras.js +119 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/Date.Extras.js +80 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/Date.js +709 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/Hash.Extras.js +21 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/Hash.js +202 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/Number.Format.js +90 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/Object.Extras.js +105 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/Object.Extras_client.js +17 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/String.Extras.js +72 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/String.QueryString.js +63 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/URI.Relative.js +114 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Types/URI.js +123 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Utilities/Assets.js +211 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Utilities/Color.js +78 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Utilities/Group.js +25 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Utilities/Hash.Cookie.js +50 -0
- data/Packages/mootools-more/Tests/Specs/1.3/Utilities/Table.js +56 -0
- data/Packages/mootools-more/Tests/Specs/Configuration.js +245 -0
- data/Packages/mootools-more/Tests/Specs/assets/Assets.css.test.css +24 -0
- data/Packages/mootools-more/Tests/Specs/assets/Assets.js.test.js +3 -0
- data/Packages/mootools-more/Tests/Specs/assets/cow.png +0 -0
- data/Packages/mootools-more/Tests/Specs/assets/jsonp.js +8 -0
- data/Packages/mootools-more/Tests/Specs/assets/mootools.png +0 -0
- data/Packages/mootools-more/Tests/Specs/index.html +26 -0
- data/Packages/mootools-more/Tests/Specs/package.yml +47 -0
- data/Packages/mootools-more/build +40 -0
- data/Packages/mootools-more/package.yml +145 -0
- data/Packages/mootools-resource/README.md +60 -0
- data/Packages/mootools-resource/Source/Resource.Collection.js +40 -0
- data/Packages/mootools-resource/Source/Resource.Model.Actions.js +98 -0
- data/Packages/mootools-resource/Source/Resource.Model.js +175 -0
- data/Packages/mootools-resource/Source/Resource.Parser.HTML.js +28 -0
- data/Packages/mootools-resource/Source/Resource.Parser.JSON.js +35 -0
- data/Packages/mootools-resource/Source/Resource.Parser.XML.js +31 -0
- data/Packages/mootools-resource/Source/Resource.Parser.js +50 -0
- data/Packages/mootools-resource/Source/Resource.js +282 -0
- data/Packages/mootools-resource/package.yml +18 -0
- data/Packages/mootools-speedups/README.md +10 -0
- data/Packages/mootools-speedups/Source/Core/Class.Extras.Speedups.js +14 -0
- data/Packages/mootools-speedups/Source/Core/Class.Speedups.js +129 -0
- data/Packages/mootools-speedups/Source/Core/Core.Speedups.js +89 -0
- data/Packages/mootools-speedups/Source/Types/Object.js +36 -0
- data/Packages/mootools-speedups/package.yml +19 -0
- data/Packages/mootools-string-inflections/README.md +292 -0
- data/Packages/mootools-string-inflections/Source/String.Inflections.js +230 -0
- data/Packages/mootools-string-inflections/TODO.md +2 -0
- data/Packages/mootools-string-inflections/Tests/index.html +12 -0
- data/Packages/mootools-string-inflections/Tests/test.js +95 -0
- data/Packages/mootools-string-inflections/package.yml +7 -0
- data/Packages/qfocuser/README +63 -0
- data/Packages/qfocuser/Source/QFocuser.js +278 -0
- data/Packages/qfocuser/package.yml +8 -0
- data/Packages/slick/Makefile +19 -0
- data/Packages/slick/README.md +127 -0
- data/Packages/slick/SlickSpec/Configuration.js +56 -0
- data/Packages/slick/SlickSpec/assets/JSSpecHelpers.js +187 -0
- data/Packages/slick/SlickSpec/assets/getgetter.js +65 -0
- data/Packages/slick/SlickSpec/assets/ie.css +37 -0
- data/Packages/slick/SlickSpec/assets/moobugger/bookmarklet.html +46 -0
- data/Packages/slick/SlickSpec/assets/moobugger/debugger-iframe.js +386 -0
- data/Packages/slick/SlickSpec/assets/moobugger/debugger.css +190 -0
- data/Packages/slick/SlickSpec/assets/moobugger/debugger.html +25 -0
- data/Packages/slick/SlickSpec/assets/moobugger/debugger.js +284 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/close.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/error.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/group-close.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/group-open.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/icon.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/info.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/lick.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/max.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/min.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/mootools.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/time.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/images/warning.png +0 -0
- data/Packages/slick/SlickSpec/assets/moobugger/mootools.js +57 -0
- data/Packages/slick/SlickSpec/assets/moobugger/test.html +88 -0
- data/Packages/slick/SlickSpec/assets/screen.css +259 -0
- data/Packages/slick/SlickSpec/assets/simple_request.js +67 -0
- data/Packages/slick/SlickSpec/assets/slickspec.css +366 -0
- data/Packages/slick/SlickSpec/bootstrap/moo12.slickspec.js +55 -0
- data/Packages/slick/SlickSpec/bootstrap/nwmatcher.slickspec.js +27 -0
- data/Packages/slick/SlickSpec/bootstrap/sizzle.slickspec.js +65 -0
- data/Packages/slick/SlickSpec/bootstrap/slick.slickspec.js +66 -0
- data/Packages/slick/SlickSpec/bootstrap/yui.slickspec.js +36 -0
- data/Packages/slick/SlickSpec/index.html +26 -0
- data/Packages/slick/SlickSpec/mocks/MooTools_Logo.svg +24 -0
- data/Packages/slick/SlickSpec/mocks/html5-shim.html +70 -0
- data/Packages/slick/SlickSpec/mocks/query_test-dojo.html +79 -0
- data/Packages/slick/SlickSpec/mocks/query_test-google_closure.html +72 -0
- data/Packages/slick/SlickSpec/mocks/query_test-jquery.html +213 -0
- data/Packages/slick/SlickSpec/mocks/query_test-prototype.html +95 -0
- data/Packages/slick/SlickSpec/mocks/query_test-slick.html +20 -0
- data/Packages/slick/SlickSpec/mocks/query_test-yui.html +88 -0
- data/Packages/slick/SlickSpec/mocks/template-almost.html +2932 -0
- data/Packages/slick/SlickSpec/mocks/template-chromeframe.html +2932 -0
- data/Packages/slick/SlickSpec/mocks/template-ie7.html +2932 -0
- data/Packages/slick/SlickSpec/mocks/template-quirks.html +2932 -0
- data/Packages/slick/SlickSpec/mocks/template-standard.html +2932 -0
- data/Packages/slick/SlickSpec/mocks/template-transitional.html +2932 -0
- data/Packages/slick/SlickSpec/mocks/template.xhtml +2476 -0
- data/Packages/slick/SlickSpec/mocks/template.xml +2475 -0
- data/Packages/slick/SlickSpec/mocks/xml.xml +21 -0
- data/Packages/slick/SlickSpec/select.html +107 -0
- data/Packages/slick/SlickSpec/setup.js +93 -0
- data/Packages/slick/SlickSpec/slickspec.html +261 -0
- data/Packages/slick/SlickSpec/specrunner_browser.html +69 -0
- data/Packages/slick/SlickSpec/specs/api.js +167 -0
- data/Packages/slick/SlickSpec/specs/browser_bugs.js +269 -0
- data/Packages/slick/SlickSpec/specs/dojo.js +260 -0
- data/Packages/slick/SlickSpec/specs/engine_bugs.js +388 -0
- data/Packages/slick/SlickSpec/specs/google_closure.js +176 -0
- data/Packages/slick/SlickSpec/specs/html.js +58 -0
- data/Packages/slick/SlickSpec/specs/html5.js +40 -0
- data/Packages/slick/SlickSpec/specs/isxml.js +24 -0
- data/Packages/slick/SlickSpec/specs/jquery.js +465 -0
- data/Packages/slick/SlickSpec/specs/match.js +139 -0
- data/Packages/slick/SlickSpec/specs/mock_template.js +360 -0
- data/Packages/slick/SlickSpec/specs/parser.js +409 -0
- data/Packages/slick/SlickSpec/specs/prototype.js +428 -0
- data/Packages/slick/SlickSpec/specs/select_exhaustive.js +84 -0
- data/Packages/slick/SlickSpec/specs/select_nth-child.js +64 -0
- data/Packages/slick/SlickSpec/specs/syntax.js +45 -0
- data/Packages/slick/SlickSpec/specs/unit.js +87 -0
- data/Packages/slick/SlickSpec/specs/xml.js +47 -0
- data/Packages/slick/SlickSpec/specs/yui.js +510 -0
- data/Packages/slick/SlickSpec/user-specs/pseudos.html +45 -0
- data/Packages/slick/Source/Slick.Finder.js +1012 -0
- data/Packages/slick/Source/Slick.Parser.js +231 -0
- data/Packages/slick/Source/slick.js +10 -0
- data/Packages/slick/package.json +12 -0
- data/Packages/slick/package.yml +19 -0
- data/Packages/slick/speed/frameworks/dojo-acme.js +1625 -0
- data/Packages/slick/speed/frameworks/dojo.js +16 -0
- data/Packages/slick/speed/frameworks/domass.js +1365 -0
- data/Packages/slick/speed/frameworks/jquery.js +4376 -0
- data/Packages/slick/speed/frameworks/mootools-core-1.3.js +5367 -0
- data/Packages/slick/speed/frameworks/mootools-slick.js +626 -0
- data/Packages/slick/speed/frameworks/mootools.js +4329 -0
- data/Packages/slick/speed/frameworks/native.js +0 -0
- data/Packages/slick/speed/frameworks/nwmatcher.js +1264 -0
- data/Packages/slick/speed/frameworks/prototype.js +4320 -0
- data/Packages/slick/speed/frameworks/sizzle.js +1102 -0
- data/Packages/slick/speed/frameworks/slick.js +1099 -0
- data/Packages/slick/speed/frameworks/sly.js +857 -0
- data/Packages/slick/speed/frameworks/yass.css3.js +490 -0
- data/Packages/slick/speed/jslitmus/JSLitmus.js +714 -0
- data/Packages/slick/speed/jslitmus/JSLitmusHelpers.js +3 -0
- data/Packages/slick/speed/jslitmus/bench_catch.html +49 -0
- data/Packages/slick/speed/jslitmus/bench_match.html +214 -0
- data/Packages/slick/speed/jslitmus/bench_match.js +98 -0
- data/Packages/slick/speed/jslitmus/bench_parse.html +161 -0
- data/Packages/slick/speed/jslitmus/bench_parse.js +68 -0
- data/Packages/slick/speed/jslitmus/bench_select.html +198 -0
- data/Packages/slick/speed/jslitmus/bench_select.js +106 -0
- data/Packages/slick/speed/jslitmus/bench_select2.js +106 -0
- data/Packages/slick/speed/jslitmus/bench_uidOf.html +121 -0
- data/Packages/slick/speed/jslitmus/closedNodes.html +92 -0
- data/Packages/slick/speed/jslitmus/demo.html +97 -0
- data/Packages/slick/speed/jslitmus/get_attribute.html +75 -0
- data/Packages/slick/speed/jslitmus/label_break-vs-fn_return.html +65 -0
- data/Packages/slick/speed/jslitmus/label_string-vs-var.html +94 -0
- data/Packages/slick/speed/jslitmus/method_vs_propfn.html +109 -0
- data/Packages/slick/speed/jslitmus/nodeListtoArray.html +89 -0
- data/Packages/slick/speed/jslitmus/parse_vs_clone.html +41 -0
- data/Packages/slick/speed/jslitmus/results.html +68 -0
- data/Packages/slick/speed/jslitmus/select.html +25 -0
- data/Packages/slick/speed/jslitmus/selectHTML.html +206 -0
- data/Packages/slick/speed/jslitmus/selectXML.html +140 -0
- data/Packages/slick/speed/jslitmus/select_class-doctypes.html +150 -0
- data/Packages/slick/speed/jslitmus/select_class.html +92 -0
- data/Packages/slick/speed/jslitmus/select_id.html +133 -0
- data/Packages/slick/speed/slickspeed/config.ini +54 -0
- data/Packages/slick/speed/slickspeed/footer.html +3 -0
- data/Packages/slick/speed/slickspeed/header.php +28 -0
- data/Packages/slick/speed/slickspeed/index.php +36 -0
- data/Packages/slick/speed/slickspeed/instructions.txt +4 -0
- data/Packages/slick/speed/slickspeed/logo.png +0 -0
- data/Packages/slick/speed/slickspeed/selectors.list.crazy.css +319 -0
- data/Packages/slick/speed/slickspeed/selectors.list.css +40 -0
- data/Packages/slick/speed/slickspeed/selectors.list.extended.css +81 -0
- data/Packages/slick/speed/slickspeed/selectors.list.mine.css +54 -0
- data/Packages/slick/speed/slickspeed/selectors.list.org.css +37 -0
- data/Packages/slick/speed/slickspeed/selectors.list.simple.css +105 -0
- data/Packages/slick/speed/slickspeed/selectors.list.sly.css +54 -0
- data/Packages/slick/speed/slickspeed/selectors.list.yahoo.css +33 -0
- data/Packages/slick/speed/slickspeed/style.css +197 -0
- data/Packages/slick/speed/slickspeed/system/index.php +172 -0
- data/Packages/slick/speed/slickspeed/system/slickspeed.js +162 -0
- data/Packages/slick/speed/slickspeed/system/template.php +154 -0
- data/Packages/slick/speed/slickspeed/system_slackerspeed/index.php +295 -0
- data/Packages/slick/speed/slickspeed/system_slackerspeed/slickspeed.js +147 -0
- data/Packages/slick/speed/slickspeed/system_slackerspeed/template.php +54 -0
- data/Packages/slick/speed/slickspeed/template.html +2921 -0
- data/Packages/slick/speed/slickspeed/template.yahoo.html +1 -0
- data/Packages/slick/speed/speedtests/deepmatch/index.html +294 -0
- data/Packages/slick/speed/speedtests/index.html +14 -0
- data/Packages/slick/speed/speedtests/setdocument/index.html +44 -0
- data/Packages/slick/speed/speedtests/setdocument/slow-document.js +69 -0
- data/Packages/slick/speed/subtleslickspeed/README.mdown +6 -0
- data/Packages/slick/speed/subtleslickspeed/lib/ie.css +26 -0
- data/Packages/slick/speed/subtleslickspeed/lib/jslib.js +389 -0
- data/Packages/slick/speed/subtleslickspeed/lib/own_tests/report_test.html +64 -0
- data/Packages/slick/speed/subtleslickspeed/lib/print.css +30 -0
- data/Packages/slick/speed/subtleslickspeed/lib/screen.css +251 -0
- data/Packages/slick/speed/subtleslickspeed/lib/subtlesandbox.js +174 -0
- data/Packages/slick/speed/subtleslickspeed/lib/subtlesandbox_strict.html +18 -0
- data/Packages/slick/speed/subtleslickspeed/lib/subtleslickspeed.js +290 -0
- data/Packages/slick/speed/subtleslickspeed/lib/subtleslickspeed.reports.js +87 -0
- data/Packages/slick/speed/subtleslickspeed/lib/subtleslickspeed.reports.table.js +353 -0
- data/Packages/slick/speed/subtleslickspeed/lib/table_report.css +241 -0
- data/Packages/slick/speed/subtleslickspeed/selectors.html +156 -0
- data/Packages/slick/speed/subtleslickspeed/string_replace.html +2998 -0
- data/Packages/slick/speed/subtleslickspeed/tests/selectors/template.html +14 -0
- data/Packages/slick/speed/subtleslickspeed/tests/selectors/template.js +2924 -0
- data/Packages/slick/speed/subtleslickspeed/tests/selectors/tests.js +177 -0
- data/lib/lsd/helper.rb +12 -0
- data/lib/lsd/packages.rb +25 -0
- data/lib/lsd/railtie.rb +33 -0
- data/lib/lsd/source.rb +37 -0
- data/lib/lsd/widget_generator.rb +24 -0
- data/lib/lsd.rake +17 -0
- data/lib/lsd.rb +20 -0
- data/lib/templates/Application.js +37 -0
- data/lib/templates/Widget.js +25 -0
- data/lib/templates/app_name.js +18 -0
- data/lib/templates/new_widget.js +25 -0
- data/lib/templates/package.yml +18 -0
- metadata +1053 -0
@@ -0,0 +1,355 @@
|
|
1
|
+
/*
|
2
|
+
---
|
3
|
+
|
4
|
+
script: DOM.js
|
5
|
+
|
6
|
+
description: Provides DOM-compliant interface to play around with other widgets
|
7
|
+
|
8
|
+
license: Public domain (http://unlicense.org).
|
9
|
+
|
10
|
+
authors: Yaroslaff Fedin
|
11
|
+
|
12
|
+
requires:
|
13
|
+
- LSD.Module
|
14
|
+
- LSD.Module.Events
|
15
|
+
|
16
|
+
provides:
|
17
|
+
- LSD.Module.DOM
|
18
|
+
- LSD.Module.DOM.findDocument
|
19
|
+
|
20
|
+
...
|
21
|
+
*/
|
22
|
+
|
23
|
+
!function() {
|
24
|
+
|
25
|
+
LSD.Module.DOM = new Class({
|
26
|
+
options: {
|
27
|
+
nodeType: 1,
|
28
|
+
},
|
29
|
+
|
30
|
+
constructors: {
|
31
|
+
dom: function(options) {
|
32
|
+
this.childNodes = [];
|
33
|
+
}
|
34
|
+
},
|
35
|
+
|
36
|
+
contains: function(element) {
|
37
|
+
while (element = element.parentNode) if (element == this) return true;
|
38
|
+
return false;
|
39
|
+
},
|
40
|
+
|
41
|
+
getChildren: function() {
|
42
|
+
return this.childNodes;
|
43
|
+
},
|
44
|
+
|
45
|
+
getRoot: function() {
|
46
|
+
var widget = this;
|
47
|
+
while (widget.parentNode) widget = widget.parentNode;
|
48
|
+
return widget;
|
49
|
+
},
|
50
|
+
|
51
|
+
moveTo: function(widget) {
|
52
|
+
if (widget == this.parentNode) {
|
53
|
+
unset.call(this, widget);
|
54
|
+
} else {
|
55
|
+
if (this.parentNode) this.dispose();
|
56
|
+
return true;
|
57
|
+
}
|
58
|
+
},
|
59
|
+
|
60
|
+
setParent: function(widget, index){
|
61
|
+
if (!widget.lsd) widget = LSD.Module.DOM.find(widget);
|
62
|
+
if (!widget) return;
|
63
|
+
if (this.moveTo(widget)) {
|
64
|
+
this.parentNode = widget;
|
65
|
+
this.fireEvent('setParent', [widget, widget.document])
|
66
|
+
var changed = true;
|
67
|
+
}
|
68
|
+
set.call(this, widget, index);
|
69
|
+
if (changed) {
|
70
|
+
this.fireEvent('register', ['parent', widget]);
|
71
|
+
widget.fireEvent('adopt', [this]);
|
72
|
+
}
|
73
|
+
var previous = this.previousSibling;
|
74
|
+
var start = previous ? (previous.sourceLastIndex || previous.sourceIndex) : widget.sourceIndex || (widget.sourceIndex = 1);
|
75
|
+
var sourceIndex = start;
|
76
|
+
LSD.Module.DOM.walk(this, function(node) {
|
77
|
+
node.sourceIndex = ++sourceIndex;
|
78
|
+
if (node.sourceLastIndex) node.sourceLastIndex += start;
|
79
|
+
for (var parent = widget; parent; parent = parent.parentNode) {
|
80
|
+
parent.sourceLastIndex = (parent.sourceLastIndex || parent.sourceIndex) ;
|
81
|
+
if (!changed) continue;
|
82
|
+
var events = parent.$events.nodeInserted;
|
83
|
+
if (!events) continue;
|
84
|
+
for (var i = 0, j = events.length, fn; i < j; i++)
|
85
|
+
if ((fn = events[i])) fn.call(parent, node);
|
86
|
+
}
|
87
|
+
}, this);
|
88
|
+
},
|
89
|
+
|
90
|
+
unsetParent: function(widget, index) {
|
91
|
+
if (!widget) widget = this.parentNode;
|
92
|
+
LSD.Module.DOM.walk(this, function(node) {
|
93
|
+
widget.dispatchEvent('nodeRemoved', node);
|
94
|
+
});
|
95
|
+
this.fireEvent('unregister', ['parent', widget]);
|
96
|
+
this.removed = true;
|
97
|
+
unset.call(this, widget, index);
|
98
|
+
delete this.parentNode;
|
99
|
+
delete this.removed;
|
100
|
+
},
|
101
|
+
|
102
|
+
appendChild: function(widget, override) {
|
103
|
+
widget.parentNode = this;
|
104
|
+
if (!widget.quiet && (override !== false) && this.toElement()) (override || function() {
|
105
|
+
this.element.appendChild(widget.toElement());
|
106
|
+
}).apply(this, arguments);
|
107
|
+
delete widget.parentNode;
|
108
|
+
widget.setParent(this, this.childNodes.push(widget) - 1);
|
109
|
+
delete widget.quiet;
|
110
|
+
return true;
|
111
|
+
},
|
112
|
+
|
113
|
+
removeChild: function(child) {
|
114
|
+
var index = this.childNodes.indexOf(child);
|
115
|
+
if (index == -1) return false;
|
116
|
+
child.unsetParent(this, index);
|
117
|
+
this.childNodes.splice(index, 1);
|
118
|
+
if (child.element && child.element.parentNode) child.element.dispose();
|
119
|
+
},
|
120
|
+
|
121
|
+
replaceChild: function(insertion, child) {
|
122
|
+
var index = this.childNodes.indexOf(child);
|
123
|
+
if (index == -1) return;
|
124
|
+
this.removeChild(child);
|
125
|
+
this.childNodes.splice(index, 0, insertion);
|
126
|
+
insertion.setParent(this, index);
|
127
|
+
},
|
128
|
+
|
129
|
+
insertBefore: function(insertion, child) {
|
130
|
+
var widget = LSD.Module.DOM.findNext(child);
|
131
|
+
var index = widget && widget != this ? this.childNodes.indexOf(widget) : this.childNodes.length;
|
132
|
+
if (index == -1) return;
|
133
|
+
this.childNodes.splice(index, 0, insertion);
|
134
|
+
if (!child) {
|
135
|
+
if (index) insertion.toElement().inject(this.childNodes[index - 1].toElement(), 'after')
|
136
|
+
else this.toElement().appendChild(insertion.toElement())
|
137
|
+
} else this.toElement().insertBefore(insertion.toElement(), child.element || child);
|
138
|
+
insertion.setParent(this, index);
|
139
|
+
return this;
|
140
|
+
},
|
141
|
+
|
142
|
+
cloneNode: function(children, options) {
|
143
|
+
var clone = this.context.create(this.element.cloneNode(children), Object.merge({
|
144
|
+
source: this.source,
|
145
|
+
tag: this.tagName,
|
146
|
+
pseudos: this.pseudos.toObject(),
|
147
|
+
traverse: !!children
|
148
|
+
}, options));
|
149
|
+
return clone;
|
150
|
+
},
|
151
|
+
|
152
|
+
setDocument: function(document, revert) {
|
153
|
+
LSD.Module.DOM.walk(this, function(child) {
|
154
|
+
if (revert) {
|
155
|
+
delete child.ownerDocument;
|
156
|
+
delete child.document;
|
157
|
+
} else child.ownerDocument = child.document = document;
|
158
|
+
child.fireEvent(revert ? 'unregister' : 'register', ['document', document]);
|
159
|
+
child.fireEvent(revert ? 'unsetDocument' : 'setDocument', document);
|
160
|
+
});
|
161
|
+
return this;
|
162
|
+
},
|
163
|
+
|
164
|
+
unsetDocument: function(document) {
|
165
|
+
return this.setDocument(document, true);
|
166
|
+
},
|
167
|
+
|
168
|
+
inject: function(widget, where, quiet) {
|
169
|
+
if (!widget.lsd) {
|
170
|
+
var instance = LSD.Module.DOM.find(widget, true)
|
171
|
+
if (instance) widget = instance;
|
172
|
+
}
|
173
|
+
if (!this.pseudos.root) {
|
174
|
+
this.quiet = quiet || (widget.documentElement && this.element && this.element.parentNode);
|
175
|
+
if (where === false) widget.appendChild(this, false)
|
176
|
+
else if (!inserters[where || 'bottom'](widget.lsd ? this : this.toElement(), widget) && !quiet) return false;
|
177
|
+
}
|
178
|
+
if (where == 'after' || where == 'before') widget = this.parentNode;
|
179
|
+
if (quiet !== true || widget.document) this.setDocument(widget.document || LSD.document);
|
180
|
+
if (!this.pseudos.root) this.fireEvent('inject', this.parentNode);
|
181
|
+
return this;
|
182
|
+
},
|
183
|
+
|
184
|
+
grab: function(el, where){
|
185
|
+
inserters[where || 'bottom'](document.id(el, true), this);
|
186
|
+
return this;
|
187
|
+
},
|
188
|
+
|
189
|
+
/*
|
190
|
+
Wrapper is where content nodes get appended.
|
191
|
+
Defaults to this.element, but can be redefined
|
192
|
+
in other Modules or Traits (as seen in Container
|
193
|
+
module)
|
194
|
+
*/
|
195
|
+
|
196
|
+
getWrapper: function() {
|
197
|
+
return this.toElement();
|
198
|
+
},
|
199
|
+
|
200
|
+
write: function(content, hard) {
|
201
|
+
if (!content || !(content = content.toString())) return;
|
202
|
+
var wrapper = this.getWrapper();
|
203
|
+
if (hard && this.written) for (var node; node = this.written.shift();) Element.dispose(node);
|
204
|
+
var fragment = document.createFragment(content);
|
205
|
+
var written = Array.prototype.slice.call(fragment.childNodes, 0);
|
206
|
+
if (!hard) this.written.push.apply(this.written, written);
|
207
|
+
else this.written = written;
|
208
|
+
wrapper.appendChild(fragment);
|
209
|
+
this.fireEvent('write', [written, hard])
|
210
|
+
this.innerText = wrapper.get('text').trim();
|
211
|
+
return written;
|
212
|
+
},
|
213
|
+
|
214
|
+
replaces: function(el){
|
215
|
+
this.inject(el, 'after');
|
216
|
+
el.dispose();
|
217
|
+
return this;
|
218
|
+
},
|
219
|
+
|
220
|
+
watchInjection: function(callback) {
|
221
|
+
this.addEvent('setDocument', callback);
|
222
|
+
if (this.document) callback.call(this, this.document.element)
|
223
|
+
},
|
224
|
+
|
225
|
+
unwatchInjection: function(callback) {
|
226
|
+
this.removeEvent('setDocument', callback);
|
227
|
+
},
|
228
|
+
|
229
|
+
onElementDispose: function() {
|
230
|
+
if (this.parentNode) this.dispose();
|
231
|
+
},
|
232
|
+
|
233
|
+
dispose: function() {
|
234
|
+
var parent = this.parentNode;
|
235
|
+
if (!parent) return;
|
236
|
+
this.fireEvent('beforeDispose', parent);
|
237
|
+
parent.removeChild(this);
|
238
|
+
this.fireEvent('dispose', parent);
|
239
|
+
return this;
|
240
|
+
}
|
241
|
+
});
|
242
|
+
|
243
|
+
var set = function(widget, index) {
|
244
|
+
var siblings = widget.childNodes, length = siblings.length;
|
245
|
+
if (siblings[0] == this) widget.firstChild = this;
|
246
|
+
if (siblings[siblings.length - 1] == this) widget.lastChild = this;
|
247
|
+
if (index == null) index = length - 1;
|
248
|
+
var previous = siblings[index - 1], next = siblings[index + 1];
|
249
|
+
if (previous) {
|
250
|
+
previous.nextSibling = this;
|
251
|
+
this.previousSibling = previous;
|
252
|
+
}
|
253
|
+
if (next) {
|
254
|
+
next.previousSibling = this;
|
255
|
+
this.nextSibling = next;
|
256
|
+
}
|
257
|
+
};
|
258
|
+
|
259
|
+
var unset = function(widget, index) {
|
260
|
+
var parent = this.parentNode, siblings = widget.childNodes;
|
261
|
+
if (index == null) index = siblings.indexOf(this);
|
262
|
+
var previous = siblings[index - 1], next = siblings[index + 1];
|
263
|
+
if (previous && previous.nextSibling == this) {
|
264
|
+
previous.nextSibling = next;
|
265
|
+
if (this.previousSibling == previous) delete this.previousSibling;
|
266
|
+
}
|
267
|
+
if (next && next.previousSibling == this) {
|
268
|
+
next.previousSibling = previous;
|
269
|
+
if (this.nextSibling == next) delete this.nextSibling;
|
270
|
+
}
|
271
|
+
if (parent.firstChild == this) parent.firstChild = next;
|
272
|
+
if (parent.lastChild == this) parent.lastChild = previous;
|
273
|
+
};
|
274
|
+
|
275
|
+
var inserters = {
|
276
|
+
|
277
|
+
before: function(context, element){
|
278
|
+
var parent = element.parentNode;
|
279
|
+
if (parent) return parent.insertBefore(context, element);
|
280
|
+
},
|
281
|
+
|
282
|
+
after: function(context, element){
|
283
|
+
var parent = element.parentNode;
|
284
|
+
if (parent) return parent.insertBefore(context, element.nextSibling);
|
285
|
+
},
|
286
|
+
|
287
|
+
bottom: function(context, element){
|
288
|
+
return element.appendChild(context);
|
289
|
+
},
|
290
|
+
|
291
|
+
top: function(context, element){
|
292
|
+
return element.insertBefore(context, element.firstChild);
|
293
|
+
}
|
294
|
+
|
295
|
+
};
|
296
|
+
|
297
|
+
LSD.Module.Events.addEvents.call(LSD.Module.DOM.prototype, {
|
298
|
+
destroy: function() {
|
299
|
+
if (this.parentNode) this.dispose();
|
300
|
+
},
|
301
|
+
|
302
|
+
element: {
|
303
|
+
/*
|
304
|
+
When dispose event comes from the element,
|
305
|
+
it is is already removed from dom
|
306
|
+
*/
|
307
|
+
dispose: 'onElementDispose'
|
308
|
+
}
|
309
|
+
});
|
310
|
+
|
311
|
+
Object.append(LSD.Module.DOM, {
|
312
|
+
walk: function(element, callback, bind, memo) {
|
313
|
+
var widget = element.lsd ? element : LSD.Module.DOM.find(element, true);
|
314
|
+
if (widget) {
|
315
|
+
var result = callback.call(bind || this, widget, memo);
|
316
|
+
if (result) (memo || (memo = [])).push(widget);
|
317
|
+
}
|
318
|
+
for (var nodes = element.childNodes, node, i = 0; node = nodes[i]; i++)
|
319
|
+
if (node.nodeType == 1) LSD.Module.DOM.walk(node, callback, bind, memo);
|
320
|
+
return memo;
|
321
|
+
},
|
322
|
+
|
323
|
+
find: function(target, lazy) {
|
324
|
+
return target.lsd ? target : ((!lazy || target.uid) && Element[lazy ? 'retrieve' : 'get'](target, 'widget'));
|
325
|
+
},
|
326
|
+
|
327
|
+
findNext: function(target) {
|
328
|
+
var widget = target;
|
329
|
+
if (widget && !widget.lsd)
|
330
|
+
if (!target.uid || !(widget = target.retrieve('widget')))
|
331
|
+
for (var item = target, stack = [item.nextSibling]; item = stack.pop();)
|
332
|
+
if (item.uid && (widget = item.retrieve('widget'))) {
|
333
|
+
break;
|
334
|
+
} else {
|
335
|
+
if ((widget = item.nextSibling)) stack.push(widget);
|
336
|
+
else stack.push(item.parentNode);
|
337
|
+
}
|
338
|
+
return widget;
|
339
|
+
},
|
340
|
+
|
341
|
+
getID: function(target) {
|
342
|
+
if (target.lsd) {
|
343
|
+
return target.attributes.itemid;
|
344
|
+
} else {
|
345
|
+
return target.getAttribute('itemid');
|
346
|
+
}
|
347
|
+
}
|
348
|
+
});
|
349
|
+
|
350
|
+
}();
|
351
|
+
|
352
|
+
LSD.Options.document = {
|
353
|
+
add: 'setDocument',
|
354
|
+
remove: 'unsetDocument'
|
355
|
+
}
|
@@ -0,0 +1,358 @@
|
|
1
|
+
/*
|
2
|
+
---
|
3
|
+
|
4
|
+
script: Expectations.js
|
5
|
+
|
6
|
+
description: A trait that allows to wait for related widgets until they are ready
|
7
|
+
|
8
|
+
license: Public domain (http://unlicense.org).
|
9
|
+
|
10
|
+
authors: Yaroslaff Fedin
|
11
|
+
|
12
|
+
requires:
|
13
|
+
- LSD.Module
|
14
|
+
- LSD.Module.Events
|
15
|
+
- LSD.Module.Attributes
|
16
|
+
|
17
|
+
provides:
|
18
|
+
- LSD.Module.Expectations
|
19
|
+
|
20
|
+
...
|
21
|
+
*/
|
22
|
+
|
23
|
+
!function() {
|
24
|
+
|
25
|
+
var Expectations = LSD.Module.Expectations = new Class({
|
26
|
+
|
27
|
+
constructors: {
|
28
|
+
expectations: function() {
|
29
|
+
if (!this.expectations) this.expectations = {tag: {}}
|
30
|
+
}
|
31
|
+
},
|
32
|
+
|
33
|
+
getElementsByTagName: function(tag) {
|
34
|
+
return (this.expectations.tag && this.expectations.tag[LSD.toLowerCase(tag)]) || [];
|
35
|
+
},
|
36
|
+
|
37
|
+
/*
|
38
|
+
Expect processes a single step in a complex selector.
|
39
|
+
|
40
|
+
Each of those bits (e.g. strong.important) consists
|
41
|
+
pieces that can not be cnahged in runtime (tagname)
|
42
|
+
and other dynamic parts (classes, pseudos, attributes).
|
43
|
+
|
44
|
+
The idea is to split the selector bit to static and dynamic
|
45
|
+
parts. The widget that is *expect*ing the selector, groups
|
46
|
+
his expectations by tag name. Every node inserted into
|
47
|
+
that element or its children will pick up expectations
|
48
|
+
related to it, thus matching static part of a selector
|
49
|
+
- tag name and combinator.
|
50
|
+
|
51
|
+
It's only a matter of matching a dynamic part then.
|
52
|
+
- classes, pseudos and attributes.
|
53
|
+
*/
|
54
|
+
expect: function(selector, callback, self) {
|
55
|
+
if (selector.indexOf) selector = Slick.parse(selector);
|
56
|
+
if (selector.expressions) selector = selector.expressions[0][0];
|
57
|
+
if (!this.expectations) this.expectations = {};
|
58
|
+
var id = selector.id;
|
59
|
+
var index = self ? 'self' : (selector.combinator == ' ' && id) ? 'id' : selector.combinator || 'self';
|
60
|
+
var expectations = this.expectations[index];
|
61
|
+
if (!expectations) expectations = this.expectations[index] = {};
|
62
|
+
if (selector.combinator && !self) {
|
63
|
+
/*
|
64
|
+
Given selector has combinator.
|
65
|
+
Finds related elements and passes expectations to them.
|
66
|
+
*/
|
67
|
+
if (!selector.structure) {
|
68
|
+
var separated = separate(selector);
|
69
|
+
selector.structure = { Slick: true, expressions: [[separated.structure]] }
|
70
|
+
if (separated.state) selector.state = separated.state;
|
71
|
+
}
|
72
|
+
var key = (index == 'id') ? id : selector.tag;
|
73
|
+
var group = expectations[key];
|
74
|
+
if (!group) group = expectations[key] = [];
|
75
|
+
group.push([selector, callback]);
|
76
|
+
var state = selector.state;
|
77
|
+
if (this.document && this.document.documentElement) this.getElements(selector.structure).each(function(widget) {
|
78
|
+
if (state) widget.expect(state, callback);
|
79
|
+
else callback(widget, true);
|
80
|
+
});
|
81
|
+
} else {
|
82
|
+
/*
|
83
|
+
Selector without combinator,
|
84
|
+
depends on state of current widget.
|
85
|
+
*/
|
86
|
+
for (var types = ['pseudos', 'classes', 'attributes'], type, i = 0; type = types[i++];) {
|
87
|
+
var values = selector[type];
|
88
|
+
if (values) values: for (var j = 0, value; (value = values[j++]) && (value = value.key || value.value);) {
|
89
|
+
var kind = expectations[type];
|
90
|
+
if (!kind) kind = expectations[type] = {};
|
91
|
+
var group = kind[value];
|
92
|
+
if (!group) group = kind[value] = [];
|
93
|
+
for (var k = group.length, expectation; expectation = group[--k];) if (expectation[0] == selector) continue values;
|
94
|
+
group.push([selector, callback]);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
if (this.tagName && this.match(selector)) callback(this, true);
|
98
|
+
}
|
99
|
+
},
|
100
|
+
|
101
|
+
unexpect: function(selector, callback, self, iterator) {
|
102
|
+
if (selector.indexOf) selector = Slick.parse(selector);
|
103
|
+
if (selector.expressions) selector = selector.expressions[0][0];
|
104
|
+
if (iterator === true) iterator = function(widget) {
|
105
|
+
if (widget.match(selector)) callback(widget, false);
|
106
|
+
};
|
107
|
+
if (selector.combinator && !self) {
|
108
|
+
var id = selector.id;
|
109
|
+
var index = (selector.combinator == ' ' && id) ? 'id' : selector.combinator;
|
110
|
+
remove(this.expectations[index][index == 'id' ? id : selector.tag], callback);
|
111
|
+
if (this.document) this.getElements(selector.structure).each(function(widget) {
|
112
|
+
if (selector.state) widget.unexpect(selector.state, callback);
|
113
|
+
if (iterator) iterator(widget)
|
114
|
+
});
|
115
|
+
} else {
|
116
|
+
if (iterator) iterator(this);
|
117
|
+
for (var types = ['pseudos', 'classes', 'attributes'], type, i = 0; type = types[i++];) {
|
118
|
+
var bits = selector[type], group = this.expectations.self[type];
|
119
|
+
if (bits) for (var j = 0, bit; bit = bits[j++];) remove(group[bit.key || bit.value], callback);
|
120
|
+
}
|
121
|
+
}
|
122
|
+
},
|
123
|
+
|
124
|
+
watch: function(selector, callback, depth) {
|
125
|
+
if (selector.indexOf) selector = Slick.parse(selector);
|
126
|
+
if (!depth) depth = 0;
|
127
|
+
selector.expressions.each(function(expressions) {
|
128
|
+
var watcher = function(widget, state) {
|
129
|
+
if (expressions[depth + 1]) widget[state ? 'watch' : 'unwatch'](selector, callback, depth + 1)
|
130
|
+
else callback(widget, state)
|
131
|
+
};
|
132
|
+
watcher.callback = callback;
|
133
|
+
this.expect(expressions[depth], watcher);
|
134
|
+
}, this);
|
135
|
+
},
|
136
|
+
|
137
|
+
unwatch: function(selector, callback, depth) {
|
138
|
+
if (selector.indexOf) selector = Slick.parse(selector);
|
139
|
+
if (!depth) depth = 0;
|
140
|
+
selector.expressions.each(function(expressions) {
|
141
|
+
this.unexpect(expressions[depth], callback, false, function(widget) {
|
142
|
+
if (expressions[depth + 1]) widget.unwatch(selector, callback, depth + 1)
|
143
|
+
else callback(widget, false)
|
144
|
+
});
|
145
|
+
}, this);
|
146
|
+
},
|
147
|
+
|
148
|
+
use: function() {
|
149
|
+
var selectors = Array.flatten(arguments);
|
150
|
+
var widgets = []
|
151
|
+
var callback = selectors.pop();
|
152
|
+
var unresolved = selectors.length;
|
153
|
+
selectors.each(function(selector, i) {
|
154
|
+
var watcher = function(widget, state) {
|
155
|
+
if (state) {
|
156
|
+
if (!widgets[i]) {
|
157
|
+
widgets[i] = widget;
|
158
|
+
unresolved--;
|
159
|
+
if (!unresolved) callback.apply(this, widgets.concat(state))
|
160
|
+
}
|
161
|
+
} else {
|
162
|
+
if (widgets[i]) {
|
163
|
+
if (!unresolved) callback.apply(this, widgets.concat(state))
|
164
|
+
delete widgets[i];
|
165
|
+
unresolved++;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
169
|
+
this.watch(selector, watcher)
|
170
|
+
}, this)
|
171
|
+
}
|
172
|
+
});
|
173
|
+
|
174
|
+
var check = function(type, value, state, target) {
|
175
|
+
var expectations = this.expectations
|
176
|
+
if (!target) {
|
177
|
+
expectations = expectations.self;
|
178
|
+
target = this;
|
179
|
+
}
|
180
|
+
expectations = expectations && expectations[type] && expectations[type][value];
|
181
|
+
if (expectations) for (var i = 0, expectation; expectation = expectations[i++];) {
|
182
|
+
var selector = expectation[0];
|
183
|
+
if (selector.structure && selector.state) {
|
184
|
+
if (target.match(selector.structure)) {
|
185
|
+
if (!state) {
|
186
|
+
if (target.match(selector.state)) {
|
187
|
+
target.unexpect(selector.state, expectation[1]);
|
188
|
+
expectation[1](target, !!state)
|
189
|
+
}
|
190
|
+
} else target.expect(selector.state, expectation[1])
|
191
|
+
}
|
192
|
+
} else if (target.match(selector)) expectation[1](target, !!state)
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
var notify = function(type, tag, state, widget, single) {
|
197
|
+
check.call(this, type, tag, state, widget);
|
198
|
+
if (!single) check.call(this, type, '*', state, widget);
|
199
|
+
}
|
200
|
+
|
201
|
+
var update = function(widget, tag, state, single) {
|
202
|
+
notify.call(this, ' ', tag, state, widget, single);
|
203
|
+
var options = widget.options, id = widget.id;
|
204
|
+
if (id) check.call(this, 'id', id, state, widget);
|
205
|
+
if (this.previousSibling) {
|
206
|
+
notify.call(this.previousSibling, '!+', widget.tagName, state, widget, single);
|
207
|
+
notify.call(this.previousSibling, '++', widget.tagName, state, widget, single);
|
208
|
+
for (var sibling = this; sibling = sibling.previousSibling;) {
|
209
|
+
notify.call(sibling, '!~', tag, state, widget, single);
|
210
|
+
notify.call(sibling, '~~', tag, state, widget, single);
|
211
|
+
}
|
212
|
+
}
|
213
|
+
if (this.nextSibling) {
|
214
|
+
notify.call(this.nextSibling, '+', tag, state, widget, single);
|
215
|
+
notify.call(this.nextSibling, '++', tag, state, widget, single);
|
216
|
+
for (var sibling = this; sibling = sibling.nextSibling;) {
|
217
|
+
notify.call(sibling, '~', tag, state, widget, single);
|
218
|
+
notify.call(sibling, '~~', tag, state, widget, single);
|
219
|
+
}
|
220
|
+
}
|
221
|
+
if (widget.parentNode == this) notify.call(this, '>', widget.tagName, state, widget, single);
|
222
|
+
}
|
223
|
+
|
224
|
+
var remove = function(array, callback) {
|
225
|
+
if (array) for (var i = array.length; i--;) {
|
226
|
+
var fn = array[i][1];
|
227
|
+
if (fn == callback || fn.callback == callback) {
|
228
|
+
array.splice(i, 1);
|
229
|
+
break;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
var separate = function(selector) {
|
235
|
+
if (selector.state || selector.structure) return selector
|
236
|
+
var separated = {};
|
237
|
+
for (var criteria in selector) {
|
238
|
+
switch (criteria) {
|
239
|
+
case 'tag': case 'combinator': case 'id':
|
240
|
+
var type = 'structure';
|
241
|
+
break;
|
242
|
+
default:
|
243
|
+
var type = 'state';
|
244
|
+
}
|
245
|
+
var group = separated[type];
|
246
|
+
if (!group) group = separated[type] = {};
|
247
|
+
group[criteria] = selector[criteria]
|
248
|
+
};
|
249
|
+
return separated;
|
250
|
+
};
|
251
|
+
|
252
|
+
Expectations.events = {
|
253
|
+
nodeInserted: function(widget) {
|
254
|
+
var expectations = this.expectations, type = expectations.tag, tag = widget.tagName;
|
255
|
+
if (!type) type = expectations.tag = {};
|
256
|
+
var group = type[tag];
|
257
|
+
if (!group) group = type[tag] = [];
|
258
|
+
group.push(widget);
|
259
|
+
group = type['*'];
|
260
|
+
if (!group) group = type['*'] = [];
|
261
|
+
group.push(widget);
|
262
|
+
update.call(this, widget, tag, true);
|
263
|
+
},
|
264
|
+
nodeRemoved: function(widget) {
|
265
|
+
var expectations = this.expectations, type = expectations.tag, tag = widget.tagName;
|
266
|
+
if (tag) type[tag].erase(widget);
|
267
|
+
type['*'].erase(widget);
|
268
|
+
update.call(this, widget, tag, false);
|
269
|
+
},
|
270
|
+
nodeTagChanged: function(widget, tag, old) {
|
271
|
+
var expectations = this.expectations, type = expectations.tag;
|
272
|
+
var index = type[old].indexOf(widget);
|
273
|
+
if (index == -1) return;
|
274
|
+
type[old].splice(index, 1);
|
275
|
+
update.call(this, widget, old, false);
|
276
|
+
if (!tag) return;
|
277
|
+
var group = type[tag];
|
278
|
+
if (!group) group = type[tag] = [];
|
279
|
+
group.push(widget);
|
280
|
+
update.call(this, widget, tag, true);
|
281
|
+
},
|
282
|
+
relate: function(widget, tag) {
|
283
|
+
var expectations = widget.expectations, type = expectations['!::'];
|
284
|
+
if (!type) type = expectations['!::'] = {};
|
285
|
+
var group = type[tag];
|
286
|
+
if (!group) group = type[tag] = [];
|
287
|
+
group.push(this);
|
288
|
+
notify.call(this, '::', tag, true, widget);
|
289
|
+
},
|
290
|
+
unrelate: function(widget, tag) {
|
291
|
+
notify.call(this, '::', tag, false, widget);
|
292
|
+
widget.expectations['!::'][tag].erase(this);
|
293
|
+
},
|
294
|
+
setParent: function(parent) {
|
295
|
+
notify.call(this, '!>', parent.tagName, true, parent);
|
296
|
+
for (; parent; parent = parent.parentNode) notify.call(this, '!', parent.tagName, true, parent);
|
297
|
+
},
|
298
|
+
unsetParent: function(parent) {
|
299
|
+
notify.call(this, '!>', parent.tagName, false, parent);
|
300
|
+
for (; parent; parent = parent.parentNode) notify.call(this, '!', parent.tagName, false, parent);
|
301
|
+
},
|
302
|
+
selectorChange: check,
|
303
|
+
tagChanged: function(tag, old) {
|
304
|
+
check.call(this, 'tag', old, false);
|
305
|
+
if (tag) check.call(this, 'tag', tag, true);
|
306
|
+
if (old && this.parentNode && !this.removed) this.parentNode.dispatchEvent('nodeTagChanged', [this, tag, old]);
|
307
|
+
}
|
308
|
+
};
|
309
|
+
|
310
|
+
LSD.Module.Events.addEvents.call(Expectations.prototype, Expectations.events);
|
311
|
+
|
312
|
+
LSD.Module.Events.Targets.expected = function() {
|
313
|
+
var self = this, Targets = LSD.Module.Events.Targets;
|
314
|
+
return {
|
315
|
+
addEvent: function(key, value) {
|
316
|
+
if (!self.watchers) self.watchers = {};
|
317
|
+
self.watchers[key] = function(widget, state) {
|
318
|
+
value = Object.append({}, value)
|
319
|
+
for (var name in value) {
|
320
|
+
if (typeof value[name] == 'object') continue;
|
321
|
+
widget.addEvent(name, value[name]);
|
322
|
+
delete value[name];
|
323
|
+
}
|
324
|
+
for (var name in value) {
|
325
|
+
target = (Targets[name] || Targets.expected).call(widget);
|
326
|
+
target[state ? 'addEvents' : 'removeEvents'](value);
|
327
|
+
break;
|
328
|
+
}
|
329
|
+
};
|
330
|
+
self.watch(key, self.watchers[key]);
|
331
|
+
},
|
332
|
+
removeEvent: function(key, event) {
|
333
|
+
self.unwatch(key, self.watchers[key]);
|
334
|
+
}
|
335
|
+
}
|
336
|
+
};
|
337
|
+
|
338
|
+
LSD.Options.expects = {
|
339
|
+
add: function(selector, callback) {
|
340
|
+
this.expect(selector, callback, true);
|
341
|
+
},
|
342
|
+
remove: function(callback) {
|
343
|
+
this.unexpect(selector, callback, true);
|
344
|
+
},
|
345
|
+
iterate: true,
|
346
|
+
process: 'bindEvents'
|
347
|
+
};
|
348
|
+
|
349
|
+
LSD.Options.watches = Object.append({}, LSD.Options.expects, {
|
350
|
+
add: function(selector, callback) {
|
351
|
+
this.watch(selector, callback);
|
352
|
+
},
|
353
|
+
remove: function(callback) {
|
354
|
+
this.watch(selector, callback);
|
355
|
+
}
|
356
|
+
});
|
357
|
+
|
358
|
+
}();
|