r2221 - in branches/dev/spinner: . demos demos/functional demos/real-world release themes/base th...

r2221 - in branches/dev/spinner: . demos demos/functional demos/real-world release themes/base th...


Author: joern.zaefferer
Date: Sun Mar 8 08:57:49 2009
New Revision: 2221
Added:
branches/dev/spinner/demos/ui.spinner.html (contents, props changed)
branches/dev/spinner/jquery-1.3.2.js
Removed:
branches/dev/spinner/demos/functional/
branches/dev/spinner/demos/real-world/
branches/dev/spinner/jquery-1.2.6.js
branches/dev/spinner/release/
branches/dev/spinner/themes/base/images/
branches/dev/spinner/themes/base/ui.accordion.css
branches/dev/spinner/themes/base/ui.all.css
branches/dev/spinner/themes/base/ui.allplugins.css
branches/dev/spinner/themes/base/ui.core.css
branches/dev/spinner/themes/base/ui.datepicker.css
branches/dev/spinner/themes/base/ui.dialog.css
branches/dev/spinner/themes/base/ui.progressbar.css
branches/dev/spinner/themes/base/ui.resizable.css
branches/dev/spinner/themes/base/ui.slider.css
branches/dev/spinner/themes/base/ui.tabs.css
branches/dev/spinner/themes/base/ui.theme.css
branches/dev/spinner/themes/default/
branches/dev/spinner/ui/build.xml
branches/dev/spinner/ui/effects.blind.js
branches/dev/spinner/ui/effects.bounce.js
branches/dev/spinner/ui/effects.clip.js
branches/dev/spinner/ui/effects.core.js
branches/dev/spinner/ui/effects.drop.js
branches/dev/spinner/ui/effects.explode.js
branches/dev/spinner/ui/effects.fold.js
branches/dev/spinner/ui/effects.highlight.js
branches/dev/spinner/ui/effects.pulsate.js
branches/dev/spinner/ui/effects.scale.js
branches/dev/spinner/ui/effects.shake.js
branches/dev/spinner/ui/effects.slide.js
branches/dev/spinner/ui/effects.transfer.js
branches/dev/spinner/ui/i18n/
branches/dev/spinner/ui/ui.accordion.js
branches/dev/spinner/ui/ui.datepicker.js
branches/dev/spinner/ui/ui.dialog.js
branches/dev/spinner/ui/ui.draggable.js
branches/dev/spinner/ui/ui.droppable.js
branches/dev/spinner/ui/ui.progressbar.js
branches/dev/spinner/ui/ui.resizable.js
branches/dev/spinner/ui/ui.selectable.js
branches/dev/spinner/ui/ui.slider.js
branches/dev/spinner/ui/ui.sortable.js
branches/dev/spinner/ui/ui.tabs.js
Modified:
branches/dev/spinner/ (props changed)
branches/dev/spinner/ui/ui.core.js
Log:
updating dev/spinner to match trunk
Added: branches/dev/spinner/demos/ui.spinner.html
==============================================================================
--- (empty file)
+++ branches/dev/spinner/demos/ui.spinner.html    Sun Mar 8 08:57:49 2009
@@ -0,0 +1,36 @@
+<script type="text/javascript">
+
+    var model = {
+
+        renderAt: '#containerDemo',
+
+        title: 'Spinner Demos',
+
+        demos: [
+
+            {
+                title: 'Simple spinner',
+                desc: 'With few lines of code you could build a spinner. You can try
more options on the fly!',
+                html: '<input id="spinner" type="text" />',
+                destroy: '$("#spinner").spinner("destroy");',
+                options: [
+                    { desc: 'Make a spinner', source: '$("#spinner").spinner();' },
+                    { desc: 'A spinner with min and max value',
source: '$("#spinner").spinner({min:-100, max:150});' },
+                    { desc: 'Big stepping',
source: '$("#spinner").spinner({stepping:100});' },
+                    { desc: 'Currency option',
source: '$("#spinner").spinner({currency:"$"});' },
+                    { desc: 'Disable incremental option',
source: '$("#spinner").spinner({incremental:false});' },
+                    { desc: 'Disable the spinner',
source: '$("#spinner").spinner().spinner("disable");' },
+                    { desc: 'Enable the spinner',
source: '$("#spinner").spinner().spinner("enable");' }
+                ]
+            }
+
+        ]
+    };
+
+    $(function(){
+
+        uiRenderDemo(model);
+
+    });
+
+</script>
\ No newline at end of file
Added: branches/dev/spinner/jquery-1.3.2.js
==============================================================================
--- (empty file)
+++ branches/dev/spinner/jquery-1.3.2.js    Sun Mar 8 08:57:49 2009
@@ -0,0 +1,4376 @@
+/*!
+ * jQuery JavaScript Library v1.3.2
+ * http://jquery.com/
+ *
+ * Copyright (c) 2009 John Resig
+ * Dual licensed under the MIT and GPL licenses.
+ * http://docs.jquery.com/License
+ *
+ * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
+ * Revision: 6246
+ */
+(function(){
+
+var
+    // Will speed up references to window, and allows munging its name.
+    window = this,
+    // Will speed up references to undefined, and allows munging its name.
+    undefined,
+    // Map over jQuery in case of overwrite
+    _jQuery = window.jQuery,
+    // Map over the $ in case of overwrite
+    _$ = window.$,
+
+    jQuery = window.jQuery = window.$ = function( selector, context ) {
+        // The jQuery object is actually just the init constructor 'enhanced'
+        return new jQuery.fn.init( selector, context );
+    },
+
+    // A simple way to check for HTML strings or ID strings
+    // (both of which we optimize for)
+    quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
+    // Is it a simple selector
+    isSimple = /^.[^:#\[\.,]*$/;
+
+jQuery.fn = jQuery.prototype = {
+    init: function( selector, context ) {
+        // Make sure that a selection was provided
+        selector = selector || document;
+
+        // Handle $(DOMElement)
+        if ( selector.nodeType ) {
+            this[0] = selector;
+            this.length = 1;
+            this.context = selector;
+            return this;
+        }
+        // Handle HTML strings
+        if ( typeof selector === "string" ) {
+            // Are we dealing with HTML string or an ID?
+            var match = quickExpr.exec( selector );
+
+            // Verify a match, and that no context was specified for #id
+            if ( match && (match[1] || !context) ) {
+
+                // HANDLE: $(html) -> $(array)
+                if ( match[1] )
+                    selector = jQuery.clean( [ match[1] ], context );
+
+                // HANDLE: $("#id")
+                else {
+                    var elem = document.getElementById( match[3] );
+
+                    // Handle the case where IE and Opera return items
+                    // by name instead of ID
+                    if ( elem && elem.id != match[3] )
+                        return jQuery().find( selector );
+
+                    // Otherwise, we inject the element directly into the jQuery object
+                    var ret = jQuery( elem || [] );
+                    ret.context = document;
+                    ret.selector = selector;
+                    return ret;
+                }
+
+            // HANDLE: $(expr, [context])
+            // (which is just equivalent to: $(content).find(expr)
+            } else
+                return jQuery( context ).find( selector );
+
+        // HANDLE: $(function)
+        // Shortcut for document ready
+        } else if ( jQuery.isFunction( selector ) )
+            return jQuery( document ).ready( selector );
+
+        // Make sure that old selector state is passed along
+        if ( selector.selector && selector.context ) {
+            this.selector = selector.selector;
+            this.context = selector.context;
+        }
+
+        return this.setArray(jQuery.isArray( selector ) ?
+            selector :
+            jQuery.makeArray(selector));
+    },
+
+    // Start with an empty selector
+    selector: "",
+
+    // The current version of jQuery being used
+    jquery: "1.3.2",
+
+    // The number of elements contained in the matched element set
+    size: function() {
+        return this.length;
+    },
+
+    // Get the Nth element in the matched element set OR
+    // Get the whole matched element set as a clean array
+    get: function( num ) {
+        return num === undefined ?
+
+            // Return a 'clean' array
+            Array.prototype.slice.call( this ) :
+
+            // Return just the object
+            this[ num ];
+    },
+
+    // Take an array of elements and push it onto the stack
+    // (returning the new matched element set)
+    pushStack: function( elems, name, selector ) {
+        // Build a new jQuery matched element set
+        var ret = jQuery( elems );
+
+        // Add the old object onto the stack (as a reference)
+        ret.prevObject = this;
+
+        ret.context = this.context;
+
+        if ( name === "find" )
+            ret.selector = this.selector + (this.selector ? " " : "") + selector;
+        else if ( name )
+            ret.selector = this.selector + "." + name + "(" + selector + ")";
+
+        // Return the newly-formed element set
+        return ret;
+    },
+
+    // Force the current matched set of elements to become
+    // the specified array of elements (destroying the stack in the process)
+    // You should use pushStack() in order to do this, but maintain the stack
+    setArray: function( elems ) {
+        // Resetting the length to 0, then using the native Array push
+        // is a super-fast way to populate an object with array-like properties
+        this.length = 0;
+        Array.prototype.push.apply( this, elems );
+
+        return this;
+    },
+
+    // Execute a callback for every element in the matched set.
+    // (You can seed the arguments with an array of args, but this is
+    // only used internally.)
+    each: function( callback, args ) {
+        return jQuery.each( this, callback, args );
+    },
+
+    // Determine the position of an element within
+    // the matched set of elements
+    index: function( elem ) {
+        // Locate the position of the desired element
+        return jQuery.inArray(
+            // If it receives a jQuery object, the first element is used
+            elem && elem.jquery ? elem[0] : elem
+        , this );
+    },
+
+    attr: function( name, value, type ) {
+        var options = name;
+
+        // Look for the case where we're accessing a style value
+        if ( typeof name === "string" )
+            if ( value === undefined )
+                return this[0] && jQuery[ type || "attr" ]( this[0], name );
+
+            else {
+                options = {};
+                options[ name ] = value;
+            }
+
+        // Check to see if we're setting style values
+        return this.each(function(i){
+            // Set all the styles
+            for ( name in options )
+                jQuery.attr(
+                    type ?
+                        this.style :
+                        this,
+                    name, jQuery.prop( this, options[ name ], type, i, name )
+                );
+        });
+    },
+
+    css: function( key, value ) {
+        // ignore negative width and height values
+        if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
+            value = undefined;
+        return this.attr( key, value, "curCSS" );
+    },
+
+    text: function( text ) {
+        if ( typeof text !== "object" && text != null )
+            return this.empty().append( (this[0] && this[0].ownerDocument ||
document).createTextNode( text ) );
+
+        var ret = "";
+
+        jQuery.each( text || this, function(){
+            jQuery.each( this.childNodes, function(){
+                if ( this.nodeType != 8 )
+                    ret += this.nodeType != 1 ?
+                        this.nodeValue :
+                        jQuery.fn.text( [ this ] );
+            });
+        });
+
+        return ret;
+    },
+
+    wrapAll: function( html ) {
+        if ( this[0] ) {
+            // The elements to wrap the target around
+            var wrap = jQuery( html, this[0].ownerDocument ).clone();
+
+            if ( this[0].parentNode )
+                wrap.insertBefore( this[0] );
+
+            wrap.map(function(){
+                var elem = this;
+
+                while ( elem.firstChild )
+                    elem = elem.firstChild;
+
+                return elem;
+            }).append(this);
+        }
+
+        return this;
+    },
+
+    wrapInner: function( html ) {
+        return this.each(function(){
+            jQuery( this ).contents().wrapAll( html );
+        });
+    },
+
+    wrap: function( html ) {
+        return this.each(function(){
+            jQuery( this ).wrapAll( html );
+        });
+    },
+
+    append: function() {
+        return this.domManip(arguments, true, function(elem){
+            if (this.nodeType == 1)
+                this.appendChild( elem );
+        });
+    },
+
+    prepend: function() {
+        return this.domManip(arguments, true, function(elem){
+            if (this.nodeType == 1)
+                this.insertBefore( elem, this.firstChild );
+        });
+    },
+
+    before: function() {
+        return this.domManip(arguments, false, function(elem){
+            this.parentNode.insertBefore( elem, this );
+        });
+    },
+
+    after: function() {
+        return this.domManip(arguments, false, function(elem){
+            this.parentNode.insertBefore( elem, this.nextSibling );
+        });
+    },
+
+    end: function() {
+        return this.prevObject || jQuery( [] );
+    },
+
+    // For internal use only.
+    // Behaves like an Array's method, not like a jQuery method.
+    push: [].push,
+    sort: [].sort,
+    splice: [].splice,
+
+    find: function( selector ) {
+        if ( this.length === 1 ) {
+            var ret = this.pushStack( [], "find", selector );
+            ret.length = 0;
+            jQuery.find( selector, this[0], ret );
+            return ret;
+        } else {
+            return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){
+                return jQuery.find( selector, elem );
+            })), "find", selector );
+        }
+    },
+
+    clone: function( events ) {
+        // Do the clone
+        var ret = this.map(function(){
+            if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
+                // IE copies events bound via attachEvent when
+                // using cloneNode. Calling detachEvent on the
+                // clone will also remove the events from the orignal
+                // In order to get around this, we use innerHTML.
+                // Unfortunately, this means some modifications to
+                // attributes in IE that are actually only stored
+                // as properties will not be copied (such as the
+                // the name attribute on an input).
+                var html = this.outerHTML;
+                if ( !html ) {
+                    var div = this.ownerDocument.createElement("div");
+                    div.appendChild( this.cloneNode(true) );
+                    html = div.innerHTML;
+                }
+
+                return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|
null)"/g, "").replace(/^\s*/, "")])[0];
+            } else
+                return this.cloneNode(true);
+        });
+
+        // Copy the events from the original to the clone
+        if ( events === true ) {
+            var orig = this.find("*").andSelf(), i = 0;
+
+            ret.find("*").andSelf().each(function(){
+                if ( this.nodeName !== orig[i].nodeName )
+                    return;
+
+                var events = jQuery.data( orig[i], "events" );
+
+                for ( var type in events ) {
+                    for ( var handler in events[ type ] ) {
+                        jQuery.event.add( this, type, events[ type ][ handler ], events[
type ][ handler ].data );
+                    }
+                }
+
+                i++;
+            });
+        }
+
+        // Return the cloned set
+        return ret;
+    },
+
+    filter: function( selector ) {
+        return this.pushStack(
+            jQuery.isFunction( selector ) &&
+            jQuery.grep(this, function(elem, i){
+                return selector.call( elem, i );
+            }) ||
+
+            jQuery.multiFilter( selector, jQuery.grep(this, function(elem){
+                return elem.nodeType === 1;
+            }) ), "filter", selector );
+    },
+
+    closest: function( selector ) {
+        var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) :
null,
+            closer = 0;
+
+        return this.map(function(){
+            var cur = this;
+            while ( cur && cur.ownerDocument ) {
+                if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) {
+                    jQuery.data(cur, "closest", closer);
+                    return cur;
+                }
+                cur = cur.parentNode;
+                closer++;
+            }
+        });
+    },
+
+    not: function( selector ) {
+        if ( typeof selector === "string" )
+            // test special case where just one selector is passed in
+            if ( isSimple.test( selector ) )
+                return this.pushStack( jQuery.multiFilter( selector, this, true
), "not", selector );
+            else
+                selector = jQuery.multiFilter( selector, this );
+
+        var isArrayLike = selector.length && selector[selector.length - 1] !==
undefined && !selector.nodeType;
+        return this.filter(function() {
+            return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this !=
selector;
+        });
+    },
+
+    add: function( selector ) {
+        return this.pushStack( jQuery.unique( jQuery.merge(
+            this.get(),
+            typeof selector === "string" ?
+                jQuery( selector ) :
+                jQuery.makeArray( selector )
+        )));
+    },
+
+    is: function( selector ) {
+        return !!selector && jQuery.multiFilter( selector, this ).length > 0;
+    },
+
+    hasClass: function( selector ) {
+        return !!selector && this.is( "." + selector );
+    },
+
+    val: function( value ) {
+        if ( value === undefined ) {            
+            var elem = this[0];
+
+            if ( elem ) {
+                if( jQuery.nodeName( elem, 'option' ) )
+                    return (elem.attributes.value || {}).specified ? elem.value :
elem.text;
+                
+                // We need to handle select boxes special
+                if ( jQuery.nodeName( elem, "select" ) ) {
+                    var index = elem.selectedIndex,
+                        values = [],
+                        options = elem.options,
+                        one = elem.type == "select-one";
+
+