MDL-19162 imported latest YUI 2.7.0 - to be backported into MOODLE_19_STABLE later
@@ -1,71 +0,0 @@
|
||||
Animation Release Notes
|
||||
|
||||
*** version 2.6.0 ***
|
||||
* ColorAnim updated to use getAncestorBy
|
||||
|
||||
*** version 2.5.2 ***
|
||||
* no change
|
||||
|
||||
*** version 2.5.1 ***
|
||||
* no change
|
||||
|
||||
*** version 2.5.0 ***
|
||||
* replace toString overrides with static NAME property
|
||||
|
||||
*** version 2.4.0 ***
|
||||
* calling stop() on an non-animated Anim no longer fires onComplete
|
||||
|
||||
*** version 2.3.1 ***
|
||||
* no change
|
||||
|
||||
*** version 2.3.0 ***
|
||||
|
||||
* duration of zero now executes 1 frame animation
|
||||
* added setEl() method to enable reuse
|
||||
* fixed stop() for multiple animations
|
||||
|
||||
*** version 2.3.0 ***
|
||||
* duration of zero now executes 1 frame animation
|
||||
* added setEl() method to enable reuse
|
||||
* fixed stop() for multiple animations
|
||||
|
||||
*** version 2.2.2 ***
|
||||
* no change
|
||||
|
||||
*** version 2.2.1 ***
|
||||
* no change
|
||||
|
||||
*** version 2.2.0 ***
|
||||
* Fixed AnimMgr.stop() when called without tween
|
||||
|
||||
*** version 0.12.2 ***
|
||||
* raised AnimMgr.fps to 1000
|
||||
|
||||
*** version 0.12.1 ***
|
||||
* minified version no longer strips line breaks
|
||||
|
||||
*** version 0.12.0 ***
|
||||
* added boolean finish argument to Anim.stop()
|
||||
|
||||
*** version 0.11.3 ***
|
||||
* no changes
|
||||
|
||||
*** version 0.11.1 ***
|
||||
* changed "prototype" shorthand to "proto" (workaround firefox < 1.5 scoping
|
||||
bug)
|
||||
|
||||
*** version 0.11.0 ***
|
||||
* ColorAnim subclass added
|
||||
* Motion and Scroll now inherit from ColorAnim
|
||||
* getDefaultUnit method added
|
||||
* defaultUnit and defaultUnits deprecated
|
||||
* getDefault and setDefault methods deprecated
|
||||
|
||||
*** version 0.10.0 ***
|
||||
* Scroll now handles relative ("by") animation correctly
|
||||
* Now converts "auto" values of "from" to appropriate initial values
|
||||
|
||||
*** version 0.9.0 ***
|
||||
* Initial release
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
(function() {
|
||||
|
||||
@@ -89,11 +89,16 @@ Anim.prototype = {
|
||||
* @param {String} unit The unit ('px', '%', etc.) of the value.
|
||||
*/
|
||||
setAttribute: function(attr, val, unit) {
|
||||
var el = this.getEl();
|
||||
if ( this.patterns.noNegatives.test(attr) ) {
|
||||
val = (val > 0) ? val : 0;
|
||||
}
|
||||
|
||||
Y.Dom.setStyle(this.getEl(), attr, val + unit);
|
||||
if ('style' in el) {
|
||||
Y.Dom.setStyle(el, attr, val + unit);
|
||||
} else if (attr in el) {
|
||||
el[attr] = val;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -114,11 +119,15 @@ Anim.prototype = {
|
||||
var pos = !!( a[3] ); // top or left
|
||||
var box = !!( a[2] ); // width or height
|
||||
|
||||
// use offsets for width/height and abs pos top/left
|
||||
if ( box || (Y.Dom.getStyle(el, 'position') == 'absolute' && pos) ) {
|
||||
val = el['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)];
|
||||
} else { // default to zero for other 'auto'
|
||||
val = 0;
|
||||
if ('style' in el) {
|
||||
// use offsets for width/height and abs pos top/left
|
||||
if ( box || (Y.Dom.getStyle(el, 'position') == 'absolute' && pos) ) {
|
||||
val = el['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)];
|
||||
} else { // default to zero for other 'auto'
|
||||
val = 0;
|
||||
}
|
||||
} else if (attr in el) {
|
||||
val = el[attr];
|
||||
}
|
||||
|
||||
return val;
|
||||
@@ -1382,4 +1391,4 @@ YAHOO.util.Easing = {
|
||||
|
||||
Y.Scroll = Scroll;
|
||||
})();
|
||||
YAHOO.register("animation", YAHOO.util.Anim, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("animation", YAHOO.util.Anim, {version: "2.7.0", build: "1799"});
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
(function() {
|
||||
|
||||
@@ -88,11 +88,16 @@ Anim.prototype = {
|
||||
* @param {String} unit The unit ('px', '%', etc.) of the value.
|
||||
*/
|
||||
setAttribute: function(attr, val, unit) {
|
||||
var el = this.getEl();
|
||||
if ( this.patterns.noNegatives.test(attr) ) {
|
||||
val = (val > 0) ? val : 0;
|
||||
}
|
||||
|
||||
Y.Dom.setStyle(this.getEl(), attr, val + unit);
|
||||
if ('style' in el) {
|
||||
Y.Dom.setStyle(el, attr, val + unit);
|
||||
} else if (attr in el) {
|
||||
el[attr] = val;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -113,11 +118,15 @@ Anim.prototype = {
|
||||
var pos = !!( a[3] ); // top or left
|
||||
var box = !!( a[2] ); // width or height
|
||||
|
||||
// use offsets for width/height and abs pos top/left
|
||||
if ( box || (Y.Dom.getStyle(el, 'position') == 'absolute' && pos) ) {
|
||||
val = el['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)];
|
||||
} else { // default to zero for other 'auto'
|
||||
val = 0;
|
||||
if ('style' in el) {
|
||||
// use offsets for width/height and abs pos top/left
|
||||
if ( box || (Y.Dom.getStyle(el, 'position') == 'absolute' && pos) ) {
|
||||
val = el['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)];
|
||||
} else { // default to zero for other 'auto'
|
||||
val = 0;
|
||||
}
|
||||
} else if (attr in el) {
|
||||
val = el[attr];
|
||||
}
|
||||
|
||||
return val;
|
||||
@@ -1378,4 +1387,4 @@ YAHOO.util.Easing = {
|
||||
|
||||
Y.Scroll = Scroll;
|
||||
})();
|
||||
YAHOO.register("animation", YAHOO.util.Anim, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("animation", YAHOO.util.Anim, {version: "2.7.0", build: "1799"});
|
||||
|
||||
|
After Width: | Height: | Size: 3.1 KiB |
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%;}.yui-skin-sam .yui-ac-input{position:absolute;width:100%;}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%;}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:0.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em;}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%;}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1;}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#B3D4FF;}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426FD9;color:#FFF;}
|
||||
.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%;}.yui-skin-sam .yui-ac-input{position:absolute;width:100%;}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%;}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em;}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%;}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1;}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#B3D4FF;}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426FD9;color:#FFF;}
|
||||
|
||||
|
After Width: | Height: | Size: 212 B |
|
After Width: | Height: | Size: 481 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;*position:relative;*left:-1px;_margin:0;_position:static;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-focus button,.yui-skin-sam .yui-button-focus a{color:#000;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-hover button,.yui-skin-sam .yui-button-hover a{color:#000;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-active button,.yui-skin-sam .yui-button-active a{color:#000;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
|
||||
.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;_margin:0;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-focus button,.yui-skin-sam .yui-button-focus a{color:#000;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-hover button,.yui-skin-sam .yui-button-hover a{color:#000;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-active button,.yui-skin-sam .yui-button-active a{color:#000;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-carousel{visibility:hidden;overflow:hidden;position:relative;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;}.yui-carousel-element{margin:5px 0;overflow:hidden;padding:0;position:relative;width:32000px;z-index:1;}.yui-carousel-vertical .yui-carousel-element{margin:0 5px;}.yui-carousel-element li{border:1px solid #ccc;float:left;list-style:none;margin:1px;overflow:hidden;padding:0;text-align:center;*float:none;*display:inline-block;*zoom:1;*display:inline;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-carousel-vertical{height:32000px;margin:0 5px;width:auto;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{clear:both;content:"";display:block;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0px -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0px -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{float:left;height:19px;list-style:none;}.yui-skin-sam .yui-carousel-nav ul:after{clear:both;content:"";display:block;}.yui-skin-sam .yui-carousel-nav ul li a{background:url(sprite.png) no-repeat 0 -650px;display:block;height:9px;margin:10px 0 0 5px;overflow:hidden;width:9px;}.yui-skin-sam .yui-carousel-nav ul li a em{left:-10000px;position:absolute;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected a{background-position:0 -700px;}
|
||||
.yui-carousel{visibility:hidden;overflow:hidden;position:relative;text-align:left;zoom:1;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;}.yui-carousel-element{margin:5px 0;overflow:hidden;padding:0;position:relative;width:32000px;z-index:1;}.yui-carousel-vertical .yui-carousel-element{margin:0 5px;}.yui-carousel-element li{border:1px solid #ccc;float:left;list-style:none;margin:1px;overflow:hidden;padding:0;text-align:center;*float:none;*display:inline-block;*zoom:1;*display:inline;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-carousel-vertical{height:32000px;margin:0 5px;width:auto;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{clear:both;content:"";display:block;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-carousel-min-width .yui-carousel-content{margin:0 auto;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input,.yui-skin-sam .yui-carousel-button button{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0 -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0 -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;height:19px;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul{*margin-left:-170px;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{background:url(sprite.png) no-repeat 0 -650px;cursor:pointer;float:left;height:9px;list-style:none;margin:10px 0 0 5px;overflow:hidden;padding:0;width:9px;}.yui-skin-sam .yui-carousel-nav ul:after{clear:both;content:"";display:block;}.yui-skin-sam .yui-carousel-nav ul li a{left:-10000px;position:absolute;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected{background-position:0 -700px;}.yui-skin-sam .yui-carousel-item-loading{background:url(ajax-loader.gif) no-repeat 50% 50%;position:relative;text-indent:-150px;}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-picker-panel{background:#e3e3e3;border-color:#888;}.yui-picker-panel .hd{background-color:#ccc;font-size:100%;line-height:100%;border:1px solid #e3e3e3;font-weight:bold;overflow:hidden;padding:6px;color:#000;}.yui-picker-panel .bd{background:#e8e8e8;margin:1px;height:200px;}.yui-picker-panel .ft{background:#e8e8e8;margin:1px;padding:1px;}.yui-picker{position:relative;}.yui-picker-hue-thumb{cursor:default;width:18px;height:18px;top:-8px;left:-2px;z-index:9;position:absolute;}.yui-picker-hue-bg{-moz-outline:none;outline:0px none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px;}.yui-picker-bg{-moz-outline:none;outline:0px none;position:absolute;top:4px;left:4px;height:182px;width:182px;background-color:#F00;background-image:url(picker_mask.png);}*html .yui-picker-bg{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/colorpicker/assets/picker_mask.png',sizingMethod='scale');}.yui-picker-mask{position:absolute;z-index:1;top:0px;left:0px;}.yui-picker-thumb{cursor:default;width:11px;height:11px;z-index:9;position:absolute;top:-4px;left:-4px;}.yui-picker-swatch{position:absolute;left:240px;top:4px;height:60px;width:55px;border:1px solid #888;}.yui-picker-websafe-swatch{position:absolute;left:304px;top:4px;height:24px;width:24px;border:1px solid #888;}.yui-picker-controls{position:absolute;top:72px;left:226px;font:1em monospace;}.yui-picker-controls .hd{background:transparent;border-width:0px !important;}.yui-picker-controls .bd{height:100px;border-width:0px !important;}.yui-picker-controls ul{float:left;padding:0 2px 0 0;margin:0}.yui-picker-controls li{padding:2px;list-style:none;margin:0}.yui-picker-controls input{font-size:0.85em;width:2.4em;}.yui-picker-hex-controls{clear:both;padding:2px;}.yui-picker-hex-controls input{width:4.6em;}.yui-picker-controls a{font:1em arial,helvetica,clean,sans-serif;display:block;*display:inline-block;padding:0;color:#000;}
|
||||
.yui-picker-panel{background:#e3e3e3;border-color:#888;}.yui-picker-panel .hd{background-color:#ccc;font-size:100%;line-height:100%;border:1px solid #e3e3e3;font-weight:bold;overflow:hidden;padding:6px;color:#000;}.yui-picker-panel .bd{background:#e8e8e8;margin:1px;height:200px;}.yui-picker-panel .ft{background:#e8e8e8;margin:1px;padding:1px;}.yui-picker{position:relative;}.yui-picker-hue-thumb{cursor:default;width:18px;height:18px;top:-8px;left:-2px;z-index:9;position:absolute;}.yui-picker-hue-bg{-moz-outline:none;outline:0 none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px;}.yui-picker-bg{-moz-outline:none;outline:0 none;position:absolute;top:4px;left:4px;height:182px;width:182px;background-color:#F00;background-image:url(picker_mask.png);}*html .yui-picker-bg{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/colorpicker/assets/picker_mask.png',sizingMethod='scale');}.yui-picker-mask{position:absolute;z-index:1;top:0;left:0;}.yui-picker-thumb{cursor:default;width:11px;height:11px;z-index:9;position:absolute;top:-4px;left:-4px;}.yui-picker-swatch{position:absolute;left:240px;top:4px;height:60px;width:55px;border:1px solid #888;}.yui-picker-websafe-swatch{position:absolute;left:304px;top:4px;height:24px;width:24px;border:1px solid #888;}.yui-picker-controls{position:absolute;top:72px;left:226px;font:1em monospace;}.yui-picker-controls .hd{background:transparent;border-width:0!important;}.yui-picker-controls .bd{height:100px;border-width:0!important;}.yui-picker-controls ul{float:left;padding:0 2px 0 0;margin:0;}.yui-picker-controls li{padding:2px;list-style:none;margin:0;}.yui-picker-controls input{font-size:.85em;width:2.4em;}.yui-picker-hex-controls{clear:both;padding:2px;}.yui-picker-hex-controls input{width:4.6em;}.yui-picker-controls a{font:1em arial,helvetica,clean,sans-serif;display:block;*display:inline-block;padding:0;color:#000;}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.yui-panel-container form{margin:0;}.mask{z-index:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0;}.mask.block-scrollbars{overflow:auto;}.masked select,.drag select,.hide-select select{_visibility:hidden;}.yui-panel-container select{_visibility:inherit;}.hide-scrollbars,.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.show-scrollbars{overflow:auto;}.yui-panel-container.show-scrollbars,.yui-tt.show-scrollbars{overflow:visible;}.yui-panel-container.show-scrollbars .underlay,.yui-tt.show-scrollbars .yui-tt-shadow{overflow:auto;}.yui-panel-container.shadow .underlay.yui-force-redraw{padding-bottom:1px;}.yui-effect-fade .underlay{display:none;}.yui-tt-shadow{position:absolute;}.yui-override-padding{padding:0 !important;}.yui-panel-container .container-close{overflow:hidden;text-indent:-10000em;text-decoration:none;}.yui-skin-sam .mask{background-color:#000;opacity:.25;*filter:alpha(opacity=25);}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px;}.yui-skin-sam .yui-panel{position:relative;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;*border-width:1px;*zoom:1;_zoom:normal;}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;*margin:0;*border:0;}.yui-skin-sam .yui-panel .hd{border-bottom:solid 1px #ccc;}.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{background-color:#F2F2F2;}.yui-skin-sam .yui-panel .hd{padding:0 10px;font-size:93%;line-height:2;*line-height:1.9;font-weight:bold;color:#000;background:url(sprite.png) repeat-x 0 -200px;}.yui-skin-sam .yui-panel .bd{padding:10px;}.yui-skin-sam .yui-panel .ft{border-top:solid 1px #808080;padding:5px 10px;font-size:77%;}.yui-skin-sam .yui-panel-container.focused .yui-panel .hd{}.yui-skin-sam .container-close{position:absolute;top:5px;right:6px;width:25px;height:15px;background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;}.yui-skin-sam .yui-panel-container .underlay{right:-1px;left:-1px;}.yui-skin-sam .yui-panel-container.matte{padding:9px 10px;background-color:#fff;}.yui-skin-sam .yui-panel-container.shadow{_padding:2px 4px 0 2px;}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;left:-3px;right:-3px;bottom:-3px;*top:4px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_left:0;_right:0;_bottom:0;_margin-top:3px;_margin-left:-1px;background-color:#000;opacity:.12;*filter:alpha(opacity=12);}.yui-skin-sam .yui-dialog .ft{border-top:none;padding:0 10px 10px 10px;font-size:100%;}.yui-skin-sam .yui-dialog .ft .button-group{display:block;text-align:right;}.yui-skin-sam .yui-dialog .ft button.default{font-weight:bold;}.yui-skin-sam .yui-dialog .ft span.default{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-dialog .ft span.default .first-child{border-color:#304369;}.yui-skin-sam .yui-dialog .ft span.default button{color:#fff;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled{background-position:0pt -1500px;border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button{color:#a6a6a6;}.yui-skin-sam .yui-simple-dialog .bd .yui-icon{background:url(sprite.png) no-repeat 0 0;width:16px;height:16px;margin-right:10px;float:left;}.yui-skin-sam .yui-simple-dialog .bd span.blckicon{background-position:0 -1100px;}.yui-skin-sam .yui-simple-dialog .bd span.alrticon{background-position:0 -1050px;}.yui-skin-sam .yui-simple-dialog .bd span.hlpicon{background-position:0 -1150px;}.yui-skin-sam .yui-simple-dialog .bd span.infoicon{background-position:0 -1200px;}.yui-skin-sam .yui-simple-dialog .bd span.warnicon{background-position:0 -1900px;}.yui-skin-sam .yui-simple-dialog .bd span.tipicon{background-position:0 -1250px;}.yui-skin-sam .yui-tt .bd{position:relative;top:0;left:0;z-index:1;color:#000;padding:2px 5px;border-color:#D4C237 #A6982B #A6982B #A6982B;border-width:1px;border-style:solid;background-color:#FFEE69;}.yui-skin-sam .yui-tt.show-scrollbars .bd{overflow:auto;}.yui-skin-sam .yui-tt-shadow{top:2px;right:-3px;left:-3px;bottom:-3px;background-color:#000;}.yui-skin-sam .yui-tt-shadow-visible{opacity:.12;*filter:alpha(opacity=12);}
|
||||
.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.yui-panel{position:relative;}.yui-panel-container form{margin:0;}.mask{z-index:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0;}.mask.block-scrollbars{overflow:auto;}.masked select,.drag select,.hide-select select{_visibility:hidden;}.yui-panel-container select{_visibility:inherit;}.hide-scrollbars,.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.show-scrollbars{overflow:auto;}.yui-panel-container.show-scrollbars,.yui-tt.show-scrollbars{overflow:visible;}.yui-panel-container.show-scrollbars .underlay,.yui-tt.show-scrollbars .yui-tt-shadow{overflow:auto;}.yui-panel-container.shadow .underlay.yui-force-redraw{padding-bottom:1px;}.yui-effect-fade .underlay,.yui-effect-fade .yui-tt-shadow{display:none;}.yui-tt-shadow{position:absolute;}.yui-override-padding{padding:0!important;}.yui-panel-container .container-close{overflow:hidden;text-indent:-10000em;text-decoration:none;}.yui-overlay.yui-force-redraw,.yui-panel-container.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px;}.yui-skin-sam .yui-panel{position:relative;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;*border-width:1px;*zoom:1;_zoom:normal;}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;*margin:0;*border:0;}.yui-skin-sam .yui-panel .hd{border-bottom:solid 1px #ccc;}.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{background-color:#F2F2F2;}.yui-skin-sam .yui-panel .hd{padding:0 10px;font-size:93%;line-height:2;*line-height:1.9;font-weight:bold;color:#000;background:url(sprite.png) repeat-x 0 -200px;}.yui-skin-sam .yui-panel .bd{padding:10px;}.yui-skin-sam .yui-panel .ft{border-top:solid 1px #808080;padding:5px 10px;font-size:77%;}.yui-skin-sam .container-close{position:absolute;top:5px;right:6px;width:25px;height:15px;background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;}.yui-skin-sam .yui-panel-container .underlay{right:-1px;left:-1px;}.yui-skin-sam .yui-panel-container.matte{padding:9px 10px;background-color:#fff;}.yui-skin-sam .yui-panel-container.shadow{_padding:2px 4px 0 2px;}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;left:-3px;right:-3px;bottom:-3px;*top:4px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_left:0;_right:0;_bottom:0;_margin-top:3px;_margin-left:-1px;background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yui-dialog .ft{border-top:none;padding:0 10px 10px 10px;font-size:100%;}.yui-skin-sam .yui-dialog .ft .button-group{display:block;text-align:right;}.yui-skin-sam .yui-dialog .ft button.default{font-weight:bold;}.yui-skin-sam .yui-dialog .ft span.default{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-dialog .ft span.default .first-child{border-color:#304369;}.yui-skin-sam .yui-dialog .ft span.default button{color:#fff;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled{background-position:0 -1500px;border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button{color:#a6a6a6;}.yui-skin-sam .yui-simple-dialog .bd .yui-icon{background:url(sprite.png) no-repeat 0 0;width:16px;height:16px;margin-right:10px;float:left;}.yui-skin-sam .yui-simple-dialog .bd span.blckicon{background-position:0 -1100px;}.yui-skin-sam .yui-simple-dialog .bd span.alrticon{background-position:0 -1050px;}.yui-skin-sam .yui-simple-dialog .bd span.hlpicon{background-position:0 -1150px;}.yui-skin-sam .yui-simple-dialog .bd span.infoicon{background-position:0 -1200px;}.yui-skin-sam .yui-simple-dialog .bd span.warnicon{background-position:0 -1900px;}.yui-skin-sam .yui-simple-dialog .bd span.tipicon{background-position:0 -1250px;}.yui-skin-sam .yui-tt .bd{position:relative;top:0;left:0;z-index:1;color:#000;padding:2px 5px;border-color:#D4C237 #A6982B #A6982B #A6982B;border-width:1px;border-style:solid;background-color:#FFEE69;}.yui-skin-sam .yui-tt.show-scrollbars .bd{overflow:auto;}.yui-skin-sam .yui-tt-shadow{top:2px;right:-3px;left:-3px;bottom:-3px;background-color:#000;}.yui-skin-sam .yui-tt-shadow-visible{opacity:.12;filter:alpha(opacity=12);}
|
||||
|
||||
|
Before Width: | Height: | Size: 96 B After Width: | Height: | Size: 158 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-crop{position:relative;}.yui-crop .yui-crop-mask{position:absolute;top:0;left:0;height:100%;width:100%;}.yui-crop .yui-resize{position:absolute;top:10px;left:10px;border:0;}.yui-crop .yui-crop-resize-mask{position:absolute;top:0;left:0;height:100%;width:100%;background-position:-10px -10px;overflow:hidden;}.yui-skin-sam .yui-crop .yui-crop-mask{background-color:#000;opacity:.5;filter:alpha(opacity=50);}.yui-skin-sam .yui-crop .yui-resize{border:1px dashed #fff;}
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-skin-sam .yui-log{padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}.yui-skin-sam .yui-log-container{position:absolute;top:1em;right:1em;}.yui-skin-sam .yui-log input{margin:0;padding:0;font-family:arial;font-size:100%;font-weight:normal;}.yui-skin-sam .yui-log .yui-log-btns{position:relative;float:right;bottom:.25em;}.yui-skin-sam .yui-log .yui-log-hd{margin-top:1em;padding:.5em;background-color:#575757;}.yui-skin-sam .yui-log .yui-log-hd h4{margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF;}.yui-skin-sam .yui-log .yui-log-bd{width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;}.yui-skin-sam .yui-log p{margin:1px;padding:.1em;}.yui-skin-sam .yui-log pre{margin:0;padding:0;}.yui-skin-sam .yui-log pre.yui-log-verbose{white-space:pre-wrap;white-space:-moz-pre-wrap !important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}.yui-skin-sam .yui-log .yui-log-ft{margin-top:.5em;}.yui-skin-sam .yui-log .yui-log-ft .yui-log-categoryfilters{}.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters{width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}.yui-skin-sam .yui-log .yui-log-filtergrp{margin-right:.5em;}.yui-skin-sam .yui-log .info{background-color:#A7CC25;}.yui-skin-sam .yui-log .warn{background-color:#F58516;}.yui-skin-sam .yui-log .error{background-color:#E32F0B;}.yui-skin-sam .yui-log .time{background-color:#A6C9D7;}.yui-skin-sam .yui-log .window{background-color:#F2E886;}
|
||||
|
||||
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 173 B |
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 173 B |
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yuimenu{top:-999em;left:-999em;}.yuimenubar{position:static;}.yuimenu .yuimenu,.yuimenubar .yuimenu{position:absolute;}.yuimenubar li,.yuimenu li{list-style-type:none;}.yuimenubar ul,.yuimenu ul,.yuimenubar li,.yuimenu li,.yuimenu h6,.yuimenubar h6{margin:0;padding:0;}.yuimenuitemlabel,.yuimenubaritemlabel{text-align:left;white-space:nowrap;}.yuimenubar ul{*zoom:1;}.yuimenubar .yuimenu ul{*zoom:normal;}.yuimenubar>.bd>ul:after{content:".";display:block;clear:both;visibility:hidden;height:0;line-height:0;}.yuimenubaritem{float:left;}.yuimenubaritemlabel,.yuimenuitemlabel{display:block;}.yuimenuitemlabel .helptext{font-style:normal;display:block;margin:-1em 0 0 10em;}.yui-menu-shadow{position:absolute;visibility:hidden;z-index:-1;}.yui-menu-shadow-visible{top:2px;right:-3px;left:-3px;bottom:-3px;visibility:visible;}.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.yuimenu.show-scrollbars,.yuimenubar.show-scrollbars{overflow:visible;}.yuimenu.hide-scrollbars .yui-menu-shadow,.yuimenubar.hide-scrollbars .yui-menu-shadow{overflow:hidden;}.yuimenu.show-scrollbars .yui-menu-shadow,.yuimenubar.show-scrollbars .yui-menu-shadow{overflow:auto;}.yui-skin-sam .yuimenubar{font-size:93%;line-height:2;*line-height:1.9;border:solid 1px #808080;background:url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yuimenubarnav .yuimenubaritem{border-right:solid 1px #ccc;}.yui-skin-sam .yuimenubaritemlabel{padding:0 10px;color:#000;text-decoration:none;cursor:default;border-style:solid;border-color:#808080;border-width:1px 0;*position:relative;margin:-1px 0;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel{padding-right:20px;*display:inline-block;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu{background:url(menubaritem_submenuindicator.png) right center no-repeat;}.yui-skin-sam .yuimenubaritem-selected{background:url(sprite.png) repeat-x 0 -1700px;}.yui-skin-sam .yuimenubaritemlabel-selected{border-color:#7D98B8;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected{border-left-width:1px;margin-left:-1px;*left:-1px;}.yui-skin-sam .yuimenubaritemlabel-disabled{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled{background-image:url(menubaritem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenu{font-size:93%;line-height:1.5;*line-height:1.45;}.yui-skin-sam .yuimenubar .yuimenu,.yui-skin-sam .yuimenu .yuimenu{font-size:100%;}.yui-skin-sam .yuimenu .bd{*zoom:1;_zoom:normal;border:solid 1px #808080;background-color:#fff;}.yui-skin-sam .yuimenu .yuimenu .bd{*zoom:normal;}.yui-skin-sam .yuimenu ul{padding:3px 0;border-width:1px 0 0 0;border-color:#ccc;border-style:solid;}.yui-skin-sam .yuimenu ul.first-of-type{border-width:0;}.yui-skin-sam .yuimenu h6{font-weight:bold;border-style:solid;border-color:#ccc;border-width:1px 0 0 0;color:#a4a4a4;padding:3px 10px 0 10px;}.yui-skin-sam .yuimenu ul.hastitle,.yui-skin-sam .yuimenu h6.first-of-type{border-width:0;}.yui-skin-sam .yuimenu .yui-menu-body-scrolled{border-color:#ccc #808080;overflow:hidden;}.yui-skin-sam .yuimenu .topscrollbar,.yui-skin-sam .yuimenu .bottomscrollbar{height:16px;border:solid 1px #808080;background:#fff url(sprite.png) no-repeat 0 0;}.yui-skin-sam .yuimenu .topscrollbar{border-bottom-width:0;background-position:center -950px;}.yui-skin-sam .yuimenu .topscrollbar_disabled{background-position:center -975px;}.yui-skin-sam .yuimenu .bottomscrollbar{border-top-width:0;background-position:center -850px;}.yui-skin-sam .yuimenu .bottomscrollbar_disabled{background-position:center -875px;}.yui-skin-sam .yuimenuitem{_border-bottom:solid 1px #fff;}.yui-skin-sam .yuimenuitemlabel{padding:0 20px;color:#000;text-decoration:none;cursor:default;}.yui-skin-sam .yuimenuitemlabel .helptext{margin-top:-1.5em;*margin-top:-1.45em;}.yui-skin-sam .yuimenuitem-hassubmenu{background-image:url(menuitem_submenuindicator.png);background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yuimenuitem-checked{background-image:url(menuitem_checkbox.png);background-position:left center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-shadow-visible{background-color:#000;opacity:.12;*filter:alpha(opacity=12);}.yui-skin-sam .yuimenuitem-selected{background-color:#B3D4FF;}.yui-skin-sam .yuimenuitemlabel-disabled{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenuitem-hassubmenu-disabled{background-image:url(menuitem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenuitem-checked-disabled{background-image:url(menuitem_checkbox_disabled.png);}
|
||||
.yuimenu{top:-999em;left:-999em;}.yuimenubar{position:static;}.yuimenu .yuimenu,.yuimenubar .yuimenu{position:absolute;}.yuimenubar li,.yuimenu li{list-style-type:none;}.yuimenubar ul,.yuimenu ul,.yuimenubar li,.yuimenu li,.yuimenu h6,.yuimenubar h6{margin:0;padding:0;}.yuimenuitemlabel,.yuimenubaritemlabel{text-align:left;white-space:nowrap;}.yuimenubar ul{*zoom:1;}.yuimenubar .yuimenu ul{*zoom:normal;}.yuimenubar>.bd>ul:after{content:".";display:block;clear:both;visibility:hidden;height:0;line-height:0;}.yuimenubaritem{float:left;}.yuimenubaritemlabel,.yuimenuitemlabel{display:block;}.yuimenuitemlabel .helptext{font-style:normal;display:block;margin:-1em 0 0 10em;}.yui-menu-shadow{position:absolute;visibility:hidden;z-index:-1;}.yui-menu-shadow-visible{top:2px;right:-3px;left:-3px;bottom:-3px;visibility:visible;}.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.yuimenu.show-scrollbars,.yuimenubar.show-scrollbars{overflow:visible;}.yuimenu.hide-scrollbars .yui-menu-shadow,.yuimenubar.hide-scrollbars .yui-menu-shadow{overflow:hidden;}.yuimenu.show-scrollbars .yui-menu-shadow,.yuimenubar.show-scrollbars .yui-menu-shadow{overflow:auto;}.yui-overlay.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .yuimenubar{font-size:93%;line-height:2;*line-height:1.9;border:solid 1px #808080;background:url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yuimenubarnav .yuimenubaritem{border-right:solid 1px #ccc;}.yui-skin-sam .yuimenubaritemlabel{padding:0 10px;color:#000;text-decoration:none;cursor:default;border-style:solid;border-color:#808080;border-width:1px 0;*position:relative;margin:-1px 0;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel{padding-right:20px;*display:inline-block;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu{background:url(menubaritem_submenuindicator.png) right center no-repeat;}.yui-skin-sam .yuimenubaritem-selected{background:url(sprite.png) repeat-x 0 -1700px;}.yui-skin-sam .yuimenubaritemlabel-selected{border-color:#7D98B8;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected{border-left-width:1px;margin-left:-1px;*left:-1px;}.yui-skin-sam .yuimenubaritemlabel-disabled{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled{background-image:url(menubaritem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenu{font-size:93%;line-height:1.5;*line-height:1.45;}.yui-skin-sam .yuimenubar .yuimenu,.yui-skin-sam .yuimenu .yuimenu{font-size:100%;}.yui-skin-sam .yuimenu .bd{*zoom:1;_zoom:normal;border:solid 1px #808080;background-color:#fff;}.yui-skin-sam .yuimenu .yuimenu .bd{*zoom:normal;}.yui-skin-sam .yuimenu ul{padding:3px 0;border-width:1px 0 0 0;border-color:#ccc;border-style:solid;}.yui-skin-sam .yuimenu ul.first-of-type{border-width:0;}.yui-skin-sam .yuimenu h6{font-weight:bold;border-style:solid;border-color:#ccc;border-width:1px 0 0 0;color:#a4a4a4;padding:3px 10px 0 10px;}.yui-skin-sam .yuimenu ul.hastitle,.yui-skin-sam .yuimenu h6.first-of-type{border-width:0;}.yui-skin-sam .yuimenu .yui-menu-body-scrolled{border-color:#ccc #808080;overflow:hidden;}.yui-skin-sam .yuimenu .topscrollbar,.yui-skin-sam .yuimenu .bottomscrollbar{height:16px;border:solid 1px #808080;background:#fff url(sprite.png) no-repeat 0 0;}.yui-skin-sam .yuimenu .topscrollbar{border-bottom-width:0;background-position:center -950px;}.yui-skin-sam .yuimenu .topscrollbar_disabled{background-position:center -975px;}.yui-skin-sam .yuimenu .bottomscrollbar{border-top-width:0;background-position:center -850px;}.yui-skin-sam .yuimenu .bottomscrollbar_disabled{background-position:center -875px;}.yui-skin-sam .yuimenuitem{_border-bottom:solid 1px #fff;}.yui-skin-sam .yuimenuitemlabel{padding:0 20px;color:#000;text-decoration:none;cursor:default;}.yui-skin-sam .yuimenuitemlabel .helptext{margin-top:-1.5em;*margin-top:-1.45em;}.yui-skin-sam .yuimenuitem-hassubmenu{background-image:url(menuitem_submenuindicator.png);background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yuimenuitem-checked{background-image:url(menuitem_checkbox.png);background-position:left center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-shadow-visible{background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yuimenuitem-selected{background-color:#B3D4FF;}.yui-skin-sam .yuimenuitemlabel-disabled{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenuitem-hassubmenu-disabled{background-image:url(menuitem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenuitem-checked-disabled{background-image:url(menuitem_checkbox_disabled.png);}
|
||||
|
||||
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 3.5 KiB |
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-skin-sam .yui-pg-container{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous,.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last,.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-pages,.yui-skin-sam .yui-pg-page{display:inline-block;font-family:arial,helvetica,clean,sans-serif;padding:3px 6px;zoom:1;}.yui-skin-sam .yui-pg-pages{padding:0;}.yui-skin-sam .yui-pg-current{padding:3px 0;}.yui-skin-sam a.yui-pg-first:link,.yui-skin-sam a.yui-pg-first:visited,.yui-skin-sam a.yui-pg-first:active,.yui-skin-sam a.yui-pg-first:hover,.yui-skin-sam a.yui-pg-previous:link,.yui-skin-sam a.yui-pg-previous:visited,.yui-skin-sam a.yui-pg-previous:active,.yui-skin-sam a.yui-pg-previous:hover,.yui-skin-sam a.yui-pg-next:link,.yui-skin-sam a.yui-pg-next:visited,.yui-skin-sam a.yui-pg-next:active,.yui-skin-sam a.yui-pg-next:hover,.yui-skin-sam a.yui-pg-last:link,.yui-skin-sam a.yui-pg-last:visited,.yui-skin-sam a.yui-pg-last:active,.yui-skin-sam a.yui-pg-last:hover,.yui-skin-sam a.yui-pg-page:link,.yui-skin-sam a.yui-pg-page:visited,.yui-skin-sam a.yui-pg-page:active,.yui-skin-sam a.yui-pg-page:hover{color:#06c;text-decoration:underline;outline:0;}.yui-skin-sam span.yui-pg-first,.yui-skin-sam span.yui-pg-previous,.yui-skin-sam span.yui-pg-next,.yui-skin-sam span.yui-pg-last{color:#a6a6a6;}.yui-skin-sam .yui-pg-page{background-color:#fff;border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;}.yui-skin-sam .yui-pg-current-page{background-color:transparent;border:none;font-weight:bold;padding:3px 6px;}.yui-skin-sam .yui-pg-page{margin-left:1px;margin-right:1px;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous{padding-left:0;}.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last{padding-right:0;}.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-rpp-options{margin-left:1em;margin-right:1em;}
|
||||
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-skin-sam .yui-pv{background-color:#4a4a4a;font:arial;position:relative;width:99%;z-index:1000;margin-bottom:1em;overflow:hidden;}.yui-skin-sam .yui-pv .hd{background:url(header_background.png) repeat-x;min-height:30px;overflow:hidden;zoom:1;padding:2px 0;}.yui-skin-sam .yui-pv .hd h4{padding:8px 10px;margin:0;font:bold 14px arial;color:#fff;}.yui-skin-sam .yui-pv .hd a{background:#3f6bc3;font:bold 11px arial;color:#fff;padding:4px;margin:3px 10px 0 0;border:1px solid #3f567d;cursor:pointer;display:block;float:right;}.yui-skin-sam .yui-pv .hd span{display:none;}.yui-skin-sam .yui-pv .hd span.yui-pv-busy{height:18px;width:18px;background:url(wait.gif) no-repeat;overflow:hidden;display:block;float:right;margin:4px 10px 0 0;}.yui-skin-sam .yui-pv .hd:after,.yui-pv .bd:after,.yui-skin-sam .yui-pv-chartlegend dl:after{content:'.';visibility:hidden;clear:left;height:0;display:block;}.yui-skin-sam .yui-pv .bd{position:relative;zoom:1;overflow-x:auto;overflow-y:hidden;}.yui-skin-sam .yui-pv .yui-pv-table{padding:0 10px;margin:5px 0 10px 0;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-bd td{color:#eeee5c;font:12px arial;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd{background:#929292;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even{background:#58637a;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-desc{background:#384970;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-desc{background:#6F6E6E;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th{background-image:none;background:#2E2D2D;}.yui-skin-sam .yui-pv th.yui-dt-asc .yui-dt-liner{background:transparent url(asc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv th.yui-dt-desc .yui-dt-liner{background:transparent url(desc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th a{color:#fff;font:bold 12px arial;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-desc{background:#333;}.yui-skin-sam .yui-pv-chartcontainer{padding:0 10px;}.yui-skin-sam .yui-pv-chart{height:250px;clear:right;margin:5px 0 0 0;color:#fff;}.yui-skin-sam .yui-pv-chartlegend div{float:right;margin:0 0 0 10px;_width:250px;}.yui-skin-sam .yui-pv-chartlegend dl{border:1px solid #999;padding:.2em 0 .2em .5em;zoom:1;margin:5px 0;}.yui-skin-sam .yui-pv-chartlegend dt{float:left;display:block;height:.7em;width:.7em;padding:0;}.yui-skin-sam .yui-pv-chartlegend dd{float:left;display:block;color:#fff;margin:0 1em 0 .5em;padding:0;font:11px arial;}.yui-skin-sam .yui-pv-minimized{height:35px;}.yui-skin-sam .yui-pv-minimized .bd{top:-3000px;}.yui-skin-sam .yui-pv-minimized .hd a.yui-pv-refresh{display:none;}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-h-slider,.yui-v-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-slider .yui-slider-thumb{position:absolute;cursor:default;}.yui-skin-sam .yui-h-slider{background:url(../../bg-h.gif) no-repeat 5px 0;height:28px;width:228px;}.yui-skin-sam .yui-h-slider .yui-slider-thumb{top:4px;}.yui-skin-sam .yui-v-slider{background:url(../../bg-v.gif) no-repeat 12px 0;height:228px;width:48px;}
|
||||
.yui-h-slider,.yui-v-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-slider .yui-slider-thumb{position:absolute;cursor:default;}.yui-skin-sam .yui-h-slider{background:url(bg-h.gif) no-repeat 5px 0;height:28px;width:228px;}.yui-skin-sam .yui-h-slider .yui-slider-thumb{top:4px;}.yui-skin-sam .yui-v-slider{background:url(bg-v.gif) no-repeat 12px 0;height:228px;width:48px;}
|
||||
|
||||
|
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 280 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 185 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 185 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 185 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 185 B |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.7 KiB |
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.ygtvitem{}.ygtvitem table{margin-bottom:0;border:none;}.ygtvrow td{border:none;padding:0;}.ygtvrow td a{text-decoration:none;}.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh,.ygtvtmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4800px no-repeat;}.ygtvtp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -6400px no-repeat;}.ygtvtph,.ygtvtphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -7200px no-repeat;}.ygtvln{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -1600px no-repeat;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0px no-repeat;}.ygtvlmh,.ygtvlmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -800px no-repeat;}.ygtvlp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -2400px no-repeat;}.ygtvlph,.ygtvlphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;}.ygtvloading{width:18px;height:22px;background:url(treeview-loading.gif) 0 0 no-repeat;}.ygtvdepthcell{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8000px no-repeat;}.ygtvblankdepthcell{width:18px;height:22px;}.ygtvchildren{}* html .ygtvchildren{height:2%;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;cursor:pointer;}.ygtvcontent{cursor:default;}.ygtvspacer{height:22px;width:12px;}.ygtvfocus{background-color:#c0e0e0;border:none;}.ygtvfocus .ygtvlabel,.ygtvfocus .ygtvlabel:link,.ygtvfocus .ygtvlabel:visited,.ygtvfocus .ygtvlabel:hover{background-color:#c0e0e0;}.ygtvfocus a,.ygtvrow td a{outline-style:none;}.ygtvok{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8800px no-repeat;}.ygtvok:hover{background:url(treeview-sprite.gif) 0 -8844px no-repeat;}.ygtvcancel{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8822px no-repeat;}.ygtvcancel:hover{background:url(treeview-sprite.gif) 0 -8866px no-repeat;}.ygtv-label-editor{background-color:#f2f2f2;border:1px solid silver;position:absolute;display:none;overflow:hidden;margin:auto;z-index:9000;}.ygtv-edit-TextNode{width:190px;}.ygtv-edit-TextNode .ygtvcancel,.ygtv-edit-TextNode .ygtvok{border:none;}.ygtv-edit-TextNode .ygtv-button-container{float:right;}.ygtv-edit-TextNode .ygtv-input input{width:140px;}.ygtv-edit-DateNode .ygtvcancel{border:none;}.ygtv-edit-DateNode .ygtvok{display:none;}.ygtv-edit-DateNode .ygtv-button-container{text-align:right;margin:auto;}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,212 +0,0 @@
|
||||
AutoComplete Release Notes
|
||||
|
||||
*** version 2.6.0 ***
|
||||
|
||||
* AutoComplete has a new required dependency on YAHOO.util.DataSource,
|
||||
and the class YAHOO.widget.DataSource has been deprecated. As a result,
|
||||
the following YAHOO.widget.DataSource properties have been ported to YAHOO.widget.AutoComplete:
|
||||
- queryMatchCase
|
||||
- queryMatchContains
|
||||
- queryMatchSubset
|
||||
|
||||
* The following YAHOO.widget.DS_XHR properties have been deprecated in favor of
|
||||
the new customizeable YAHOO.widget.AutoComplete method generateRequest:
|
||||
- scriptQueryParam
|
||||
- scriptQueryAppend
|
||||
|
||||
* The YAHOO.widget.DS_XHR property responseStripAfter has been deprecated in favor
|
||||
of the new customizeable YAHOO.util.DataSource method doBeforeParseData.
|
||||
|
||||
* Now always fires either dataReturnEvent or dataErrorEvent upon a DataSource
|
||||
response, whether container opens or not due to instance losing focus.
|
||||
|
||||
* Added textboxChangeEvent and containerPopulateEvent Custom Events.
|
||||
|
||||
* As a convenience, the formatResult() method now receives a third parameter which
|
||||
is the query matching string for the result.
|
||||
|
||||
* In order to eliminate certain race conditions with the typeAhead feature, added
|
||||
typeAheadDelay of default 0.5.
|
||||
|
||||
* Added new method filterResults() for an easily customizeable local string-
|
||||
matching algorithm.
|
||||
|
||||
* The dataRequestEvent now passes along the request as well as the query string.
|
||||
|
||||
* The style list-style:none has been set in the default CSS.
|
||||
|
||||
|
||||
*** version 2.5.2 ***
|
||||
|
||||
* Empty responses of TYPE_FLAT no longer open empty container.
|
||||
|
||||
* Mac FF no longer submits form on enter-to-select suggestion.
|
||||
|
||||
|
||||
|
||||
*** version 2.5.1 ***
|
||||
|
||||
* No changes.
|
||||
|
||||
|
||||
|
||||
*** version 2.5.0 ***
|
||||
|
||||
* Fixed bug where Mac users were not able to input "&" or "(" characters.
|
||||
|
||||
|
||||
|
||||
*** version 2.4.0 ***
|
||||
|
||||
* Support for YUI JSON Utility.
|
||||
|
||||
* The allowBrowserAutocomplete property now supports cases when the user navigates
|
||||
away from page via mean other than a form submission.
|
||||
|
||||
* Added support for integration with the Get Utility, for proxyless data
|
||||
retrieval from dynamically loaded script nodes.
|
||||
|
||||
* Typing 'Enter' to select item no longer causes automatic form submission on
|
||||
Mac browsers.
|
||||
|
||||
|
||||
|
||||
*** version 2.3.1 ***
|
||||
|
||||
* AutoComplete no longer throw a JavaScript error due to an invalid or
|
||||
non-existent parent container. While a wrapper DIV element is still expected in
|
||||
order to enable skinning (see 2.3.0 release note), a lack of such will not
|
||||
cause an error.
|
||||
|
||||
* When suggestion container is collapsed, Mac users no longer need to type
|
||||
Enter twice to submit input.
|
||||
|
||||
|
||||
|
||||
*** version 2.3.0 ***
|
||||
|
||||
* Applied new skinning model. Please note that in order to enable skinning,
|
||||
AutoComplete now expects a wrapper DIV element around the INPUT element and the
|
||||
container DIV element, in this fashion:
|
||||
|
||||
<div id="myAutoComplete">
|
||||
<input type="text" id="myInput">
|
||||
<div id="myContainer"></div>
|
||||
</div>
|
||||
|
||||
* The default queryDelay value has been changed to 0.2. In low-latency
|
||||
implementations (e.g., when queryDelay is set to 0 against a local
|
||||
JavaScript DataSource), typeAhead functionality may experience a race condition
|
||||
when retrieving the value of the textbox. To avoid this problem, implementers
|
||||
are advised not to set the queryDelay value too low.
|
||||
|
||||
* Fixed runtime property value validation.
|
||||
|
||||
* Implemented new method doBeforeSendQuery().
|
||||
|
||||
* Implemented new method destroy().
|
||||
|
||||
* Added support for latest JSON lib http://www.json.org/json.js.
|
||||
|
||||
* Fixed forceSelection issues with matched selections and multiple selections.
|
||||
|
||||
* No longer create var oAnim in global scope.
|
||||
|
||||
* The properties alwaysShowContainer and useShadow should not be enabled together.
|
||||
|
||||
* There is a known issue in Firefox where the native browser autocomplete
|
||||
attribute cannot be disabled programmatically on input boxes that are in use.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
**** version 2.2.2 ***
|
||||
|
||||
* No changes.
|
||||
|
||||
|
||||
|
||||
*** version 2.2.1 ***
|
||||
|
||||
* Fixed form submission in Safari bug.
|
||||
* Fixed broken DS_JSArray support for minQueryLength=0.
|
||||
* Improved type checking with YAHOO.lang.
|
||||
|
||||
|
||||
|
||||
*** version 2.2.0 ***
|
||||
|
||||
* No changes.
|
||||
|
||||
|
||||
|
||||
*** version 0.12.2 ***
|
||||
|
||||
* No changes.
|
||||
|
||||
|
||||
|
||||
*** version 0.12.1 ***
|
||||
|
||||
* No longer trigger typeAhead feature when user is backspacing on input text.
|
||||
|
||||
|
||||
|
||||
*** version 0.12.0 ***
|
||||
|
||||
* The following constants must be defined as static class properties and are no longer
|
||||
available as instance properties:
|
||||
|
||||
YAHOO.widget.DataSource.ERROR_DATANULL
|
||||
YAHOO.widget.DataSource.ERROR_DATAPARSE
|
||||
YAHOO.widget.DS_XHR.TYPE_JSON
|
||||
YAHOO.widget.DS_XHR.TYPE_XML
|
||||
YAHOO.widget.DS_XHR.TYPE_FLAT
|
||||
YAHOO.widget.DS_XHR.ERROR_DATAXHR
|
||||
|
||||
* The property minQueryLength now supports zero and negative number values for
|
||||
DS_JSFunction and DS_XHR objects, to enable null or empty string queries and to disable
|
||||
AutoComplete functionality altogether, respectively.
|
||||
|
||||
* Enabling the alwaysShowContainer feature will no longer send containerExpandEvent or
|
||||
containerCollapseEvent.
|
||||
|
||||
|
||||
|
||||
**** version 0.11.3 ***
|
||||
|
||||
* The iFrameSrc property has been deprecated. Implementers no longer need to
|
||||
specify an https URL to avoid IE security warnings when working with sites over
|
||||
SSL.
|
||||
|
||||
|
||||
|
||||
*** version 0.11.0 ***
|
||||
|
||||
* The method getListIds() has been deprecated for getListItems(), which returns
|
||||
an array of DOM references.
|
||||
|
||||
* All classnames have been prefixed with "yui-ac-".
|
||||
|
||||
* Container elements should no longer have CSS property "display" set to "none".
|
||||
|
||||
* The useIFrame property can now be set after instantiation.
|
||||
|
||||
* On some browsers, the unmatchedItemSelectEvent may not be fired properly when
|
||||
delimiter characters are defined.
|
||||
|
||||
* On some browsers, defining delimiter characters while enabling forceSelection
|
||||
may result in unexpected behavior.
|
||||
|
||||
|
||||
|
||||
*** version 0.10.0 ***
|
||||
|
||||
* Initial release
|
||||
|
||||
* In order to enable the useIFrame property, it should be set in the
|
||||
constructor.
|
||||
|
||||
* On some browsers, defining delimiter characters while enabling forceSelection
|
||||
may result in unexpected behavior.
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/* This file intentionally left blank */
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/* styles for entire widget */
|
||||
.yui-skin-sam .yui-ac {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%;}.yui-skin-sam .yui-ac-input{position:absolute;width:100%;}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%;}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:0.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em;}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%;}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1;}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#B3D4FF;}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426FD9;color:#FFF;}
|
||||
.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%;}.yui-skin-sam .yui-ac-input{position:absolute;width:100%;}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%;}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em;}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%;}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1;}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#B3D4FF;}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426FD9;color:#FFF;}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -482,7 +482,7 @@ YAHOO.widget.AutoComplete.prototype.useShadow = false;
|
||||
/**
|
||||
* Whether or not the input field should be updated with selections.
|
||||
*
|
||||
* @property supressInputUpdate
|
||||
* @property suppressInputUpdate
|
||||
* @type Boolean
|
||||
* @default false
|
||||
*/
|
||||
@@ -698,6 +698,7 @@ YAHOO.widget.AutoComplete.prototype.setBody = function(sBody) {
|
||||
*
|
||||
* @method generateRequest
|
||||
* @param sQuery {String} Query string
|
||||
* @return {MIXED} Request
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype.generateRequest = function(sQuery) {
|
||||
var dataType = this.dataSource.dataType;
|
||||
@@ -732,7 +733,10 @@ YAHOO.widget.AutoComplete.prototype.generateRequest = function(sQuery) {
|
||||
* @param sQuery {String} Query string.
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype.sendQuery = function(sQuery) {
|
||||
// Adjust programatically sent queries to look like they input by user
|
||||
// Reset focus for a new interaction
|
||||
this._bFocused = null;
|
||||
|
||||
// Adjust programatically sent queries to look like they were input by user
|
||||
// when delimiters are enabled
|
||||
var newQuery = (this.delimChar) ? this._elTextbox.value + sQuery : sQuery;
|
||||
this._sendQuery(newQuery);
|
||||
@@ -803,6 +807,11 @@ YAHOO.widget.AutoComplete.prototype.preparseRawResponse = function(oRequest, oFu
|
||||
*/
|
||||
|
||||
YAHOO.widget.AutoComplete.prototype.filterResults = function(sQuery, oFullResponse, oParsedResponse, oCallback) {
|
||||
// If AC has passed a query string value back to itself, grab it
|
||||
if(oCallback && oCallback.argument && oCallback.argument.query) {
|
||||
sQuery = oCallback.argument.query;
|
||||
}
|
||||
|
||||
// Only if a query string is available to match against
|
||||
if(sQuery && sQuery !== "") {
|
||||
// First make a copy of the oParseResponse
|
||||
@@ -931,7 +940,7 @@ YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer = function(elTextbox
|
||||
* Nulls out the entire AutoComplete instance and related objects, removes attached
|
||||
* event listeners, and clears out DOM elements inside the container. After
|
||||
* calling this method, the instance reference should be expliclitly nulled by
|
||||
* implementer, as in myDataTable = null. Use with caution!
|
||||
* implementer, as in myAutoComplete = null. Use with caution!
|
||||
*
|
||||
* @method destroy
|
||||
*/
|
||||
@@ -1044,8 +1053,6 @@ YAHOO.widget.AutoComplete.prototype.containerPopulateEvent = null;
|
||||
*
|
||||
* @event containerExpandEvent
|
||||
* @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
|
||||
* @param sQuery {String} The query string.
|
||||
* @param aResults {Object[]} Results array.
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype.containerExpandEvent = null;
|
||||
|
||||
@@ -1122,6 +1129,7 @@ YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent = null;
|
||||
*
|
||||
* @event selectionEnforceEvent
|
||||
* @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
|
||||
* @param sClearedValue {String} The cleared value (including delimiters if applicable).
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent = null;
|
||||
|
||||
@@ -1576,11 +1584,28 @@ YAHOO.widget.AutoComplete.prototype._initListEl = function() {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Focuses input field.
|
||||
*
|
||||
* @method _focus
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._focus = function() {
|
||||
// http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
|
||||
var oSelf = this;
|
||||
setTimeout(function() {
|
||||
try {
|
||||
oSelf._elTextbox.focus();
|
||||
}
|
||||
catch(e) {
|
||||
}
|
||||
},0);
|
||||
};
|
||||
|
||||
/**
|
||||
* Enables interval detection for IME support.
|
||||
*
|
||||
* @method _enableIntervalDetection
|
||||
* @re
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._enableIntervalDetection = function() {
|
||||
@@ -1664,44 +1689,12 @@ YAHOO.widget.AutoComplete.prototype._sendQuery = function(sQuery) {
|
||||
return;
|
||||
}
|
||||
// Delimiter has been enabled
|
||||
var aDelimChar = (this.delimChar) ? this.delimChar : null;
|
||||
if(aDelimChar) {
|
||||
// Loop through all possible delimiters and find the rightmost one in the query
|
||||
// A " " may be a false positive if they are defined as delimiters AND
|
||||
// are used to separate delimited queries
|
||||
var nDelimIndex = -1;
|
||||
for(var i = aDelimChar.length-1; i >= 0; i--) {
|
||||
var nNewIndex = sQuery.lastIndexOf(aDelimChar[i]);
|
||||
if(nNewIndex > nDelimIndex) {
|
||||
nDelimIndex = nNewIndex;
|
||||
}
|
||||
}
|
||||
// If we think the last delimiter is a space (" "), make sure it is NOT
|
||||
// a false positive by also checking the char directly before it
|
||||
if(aDelimChar[i] == " ") {
|
||||
for (var j = aDelimChar.length-1; j >= 0; j--) {
|
||||
if(sQuery[nDelimIndex - 1] == aDelimChar[j]) {
|
||||
nDelimIndex--;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// A delimiter has been found in the query so extract the latest query from past selections
|
||||
if(nDelimIndex > -1) {
|
||||
var nQueryStart = nDelimIndex + 1;
|
||||
// Trim any white space from the beginning...
|
||||
while(sQuery.charAt(nQueryStart) == " ") {
|
||||
nQueryStart += 1;
|
||||
}
|
||||
// ...and save the rest of the string for later
|
||||
this._sPastSelections = sQuery.substring(0,nQueryStart);
|
||||
// Here is the query itself
|
||||
sQuery = sQuery.substr(nQueryStart);
|
||||
}
|
||||
// No delimiter found in the query, so there are no selections from past queries
|
||||
else {
|
||||
this._sPastSelections = "";
|
||||
}
|
||||
if(this.delimChar) {
|
||||
var extraction = this._extractQuery(sQuery);
|
||||
// Here is the query itself
|
||||
sQuery = extraction.query;
|
||||
// ...and save the rest of the string for later
|
||||
this._sPastSelections = extraction.previous;
|
||||
}
|
||||
|
||||
// Don't search queries that are too short
|
||||
@@ -1898,20 +1891,10 @@ YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, oResponse,
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._clearSelection = function() {
|
||||
var sValue = this._elTextbox.value;
|
||||
//TODO: need to check against all delimChars?
|
||||
var sChar = (this.delimChar) ? this.delimChar[0] : null;
|
||||
var nIndex = (sChar) ? sValue.lastIndexOf(sChar, sValue.length-2) : -1;
|
||||
if(nIndex > -1) {
|
||||
this._elTextbox.value = sValue.substring(0,nIndex);
|
||||
}
|
||||
else {
|
||||
this._elTextbox.value = "";
|
||||
}
|
||||
this._sPastSelections = this._elTextbox.value;
|
||||
|
||||
// Fire custom event
|
||||
this.selectionEnforceEvent.fire(this);
|
||||
var extraction = (this.delimChar) ? this._extractQuery(this._elTextbox.value) :
|
||||
{previous:"",query:this._elTextbox.value};
|
||||
this._elTextbox.value = extraction.previous;
|
||||
this.selectionEnforceEvent.fire(this, extraction.query);
|
||||
YAHOO.log("Selection enforced", "info", this.toString());
|
||||
};
|
||||
|
||||
@@ -1927,7 +1910,7 @@ YAHOO.widget.AutoComplete.prototype._clearSelection = function() {
|
||||
YAHOO.widget.AutoComplete.prototype._textMatchesOption = function() {
|
||||
var elMatch = null;
|
||||
|
||||
for(var i = this._nDisplayedItems-1; i >= 0 ; i--) {
|
||||
for(var i=0; i<this._nDisplayedItems; i++) {
|
||||
var elListItem = this._elList.childNodes[i];
|
||||
var sMatch = ("" + elListItem._sResultMatch).toLowerCase();
|
||||
if(sMatch == this._sCurQuery.toLowerCase()) {
|
||||
@@ -1996,6 +1979,63 @@ YAHOO.widget.AutoComplete.prototype._selectText = function(elTextbox, nStart, nE
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Extracts rightmost query from delimited string.
|
||||
*
|
||||
* @method _extractQuery
|
||||
* @param sQuery {String} String to parse
|
||||
* @return {Object} Object literal containing properties "query" and "previous".
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._extractQuery = function(sQuery) {
|
||||
var aDelimChar = this.delimChar,
|
||||
nDelimIndex = -1,
|
||||
nNewIndex, nQueryStart,
|
||||
i = aDelimChar.length-1,
|
||||
sPrevious;
|
||||
|
||||
// Loop through all possible delimiters and find the rightmost one in the query
|
||||
// A " " may be a false positive if they are defined as delimiters AND
|
||||
// are used to separate delimited queries
|
||||
for(; i >= 0; i--) {
|
||||
nNewIndex = sQuery.lastIndexOf(aDelimChar[i]);
|
||||
if(nNewIndex > nDelimIndex) {
|
||||
nDelimIndex = nNewIndex;
|
||||
}
|
||||
}
|
||||
// If we think the last delimiter is a space (" "), make sure it is NOT
|
||||
// a false positive by also checking the char directly before it
|
||||
if(aDelimChar[i] == " ") {
|
||||
for (var j = aDelimChar.length-1; j >= 0; j--) {
|
||||
if(sQuery[nDelimIndex - 1] == aDelimChar[j]) {
|
||||
nDelimIndex--;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// A delimiter has been found in the query so extract the latest query from past selections
|
||||
if(nDelimIndex > -1) {
|
||||
nQueryStart = nDelimIndex + 1;
|
||||
// Trim any white space from the beginning...
|
||||
while(sQuery.charAt(nQueryStart) == " ") {
|
||||
nQueryStart += 1;
|
||||
}
|
||||
// ...and save the rest of the string for later
|
||||
sPrevious = sQuery.substring(0,nQueryStart);
|
||||
// Here is the query itself
|
||||
sQuery = sQuery.substr(nQueryStart);
|
||||
}
|
||||
// No delimiter found in the query, so there are no selections from past queries
|
||||
else {
|
||||
sPrevious = "";
|
||||
}
|
||||
|
||||
return {
|
||||
previous: sPrevious,
|
||||
query: sQuery
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Syncs results container with its helpers.
|
||||
*
|
||||
@@ -2045,6 +2085,8 @@ YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers = function(bShow) {
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) {
|
||||
YAHOO.log("Toggling container " + ((bShow) ? "open" : "closed"), "info", this.toString());
|
||||
|
||||
var elContainer = this._elContainer;
|
||||
|
||||
// If implementer has container always open and it's already open, don't mess with it
|
||||
@@ -2060,8 +2102,7 @@ YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) {
|
||||
this._sCurQuery = null;
|
||||
|
||||
// Container is already closed, so don't bother with changing the UI
|
||||
if(!this._bContainerOpen) {
|
||||
this._elContent.style.display = "none";
|
||||
if(this._elContent.style.display == "none") {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -2293,8 +2334,8 @@ YAHOO.widget.AutoComplete.prototype._jumpSelection = function() {
|
||||
YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) {
|
||||
if(this._bContainerOpen) {
|
||||
// Determine current item's id number
|
||||
var elCurListItem = this._elCurListItem;
|
||||
var nCurItemIndex = -1;
|
||||
var elCurListItem = this._elCurListItem,
|
||||
nCurItemIndex = -1;
|
||||
|
||||
if(elCurListItem) {
|
||||
nCurItemIndex = elCurListItem._nItemIndex;
|
||||
@@ -2330,12 +2371,13 @@ YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) {
|
||||
return;
|
||||
}
|
||||
|
||||
var elNewListItem = this._elList.childNodes[nNewItemIndex];
|
||||
var elNewListItem = this._elList.childNodes[nNewItemIndex],
|
||||
|
||||
// Scroll the container if necessary
|
||||
var elContent = this._elContent;
|
||||
var scrollOn = ((YAHOO.util.Dom.getStyle(elContent,"overflow") == "auto") ||
|
||||
(YAHOO.util.Dom.getStyle(elContent,"overflowY") == "auto"));
|
||||
elContent = this._elContent,
|
||||
sOF = YAHOO.util.Dom.getStyle(elContent,"overflow"),
|
||||
sOFY = YAHOO.util.Dom.getStyle(elContent,"overflowY"),
|
||||
scrollOn = ((sOF == "auto") || (sOF == "scroll") || (sOFY == "auto") || (sOFY == "scroll"));
|
||||
if(scrollOn && (nNewItemIndex > -1) &&
|
||||
(nNewItemIndex < this._nDisplayedItems)) {
|
||||
// User is keying down
|
||||
@@ -2382,60 +2424,6 @@ YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) {
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Handles <li> element mouseover events in the container.
|
||||
*
|
||||
* @method _onItemMouseover
|
||||
* @param v {HTMLEvent} The mouseover event.
|
||||
* @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
|
||||
* @private
|
||||
*/
|
||||
/*YAHOO.widget.AutoComplete.prototype._onItemMouseover = function(v,oSelf) {
|
||||
if(oSelf.prehighlightClassName) {
|
||||
oSelf._togglePrehighlight(this,"mouseover");
|
||||
}
|
||||
else {
|
||||
oSelf._toggleHighlight(this,"to");
|
||||
}
|
||||
|
||||
oSelf.itemMouseOverEvent.fire(oSelf, this);
|
||||
YAHOO.log("Item moused over", "info", oSelf.toString());
|
||||
};*/
|
||||
|
||||
/**
|
||||
* Handles <li> element mouseout events in the container.
|
||||
*
|
||||
* @method _onItemMouseout
|
||||
* @param v {HTMLEvent} The mouseout event.
|
||||
* @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
|
||||
* @private
|
||||
*/
|
||||
/*YAHOO.widget.AutoComplete.prototype._onItemMouseout = function(v,oSelf) {
|
||||
if(oSelf.prehighlightClassName) {
|
||||
oSelf._togglePrehighlight(this,"mouseout");
|
||||
}
|
||||
else {
|
||||
oSelf._toggleHighlight(this,"from");
|
||||
}
|
||||
|
||||
oSelf.itemMouseOutEvent.fire(oSelf, this);
|
||||
YAHOO.log("Item moused out", "info", oSelf.toString());
|
||||
};*/
|
||||
|
||||
/**
|
||||
* Handles <li> element click events in the container.
|
||||
*
|
||||
* @method _onItemMouseclick
|
||||
* @param v {HTMLEvent} The click event.
|
||||
* @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
|
||||
* @private
|
||||
*/
|
||||
/*YAHOO.widget.AutoComplete.prototype._onItemMouseclick = function(v,oSelf) {
|
||||
// In case item has not been moused over
|
||||
oSelf._toggleHighlight(this,"to");
|
||||
oSelf._selectItem(this);
|
||||
};*/
|
||||
|
||||
/**
|
||||
* Handles container mouseover events.
|
||||
*
|
||||
@@ -2566,7 +2554,7 @@ YAHOO.widget.AutoComplete.prototype._onContainerClick = function(v,oSelf) {
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._onContainerScroll = function(v,oSelf) {
|
||||
oSelf._elTextbox.focus();
|
||||
oSelf._focus();
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -2782,7 +2770,7 @@ YAHOO.widget.AutoComplete.prototype._onTextboxFocus = function (v,oSelf) {
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) {
|
||||
// Don't treat as a blur if it was a selection via mouse click
|
||||
// Is a true blur
|
||||
if(!oSelf._bOverContainer || (oSelf._nKeyCode == 9)) {
|
||||
// Current query needs to be validated as a selection
|
||||
if(!oSelf._bItemSelected) {
|
||||
@@ -2808,9 +2796,6 @@ YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) {
|
||||
}
|
||||
}
|
||||
|
||||
if(oSelf._bContainerOpen) {
|
||||
oSelf._toggleContainer(false);
|
||||
}
|
||||
oSelf._clearInterval();
|
||||
oSelf._bFocused = false;
|
||||
if(oSelf._sInitInputValue !== oSelf._elTextbox.value) {
|
||||
@@ -2818,6 +2803,12 @@ YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) {
|
||||
}
|
||||
oSelf.textboxBlurEvent.fire(oSelf);
|
||||
YAHOO.log("Textbox blurred", "info", oSelf.toString());
|
||||
|
||||
oSelf._toggleContainer(false);
|
||||
}
|
||||
// Not a true blur if it was a selection via mouse click
|
||||
else {
|
||||
oSelf._focus();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2914,4 +2905,4 @@ YAHOO.widget.AutoComplete._cloneObject = function(o) {
|
||||
|
||||
|
||||
|
||||
YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.7.0", build: "1799"});
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -475,7 +475,7 @@ YAHOO.widget.AutoComplete.prototype.useShadow = false;
|
||||
/**
|
||||
* Whether or not the input field should be updated with selections.
|
||||
*
|
||||
* @property supressInputUpdate
|
||||
* @property suppressInputUpdate
|
||||
* @type Boolean
|
||||
* @default false
|
||||
*/
|
||||
@@ -691,6 +691,7 @@ YAHOO.widget.AutoComplete.prototype.setBody = function(sBody) {
|
||||
*
|
||||
* @method generateRequest
|
||||
* @param sQuery {String} Query string
|
||||
* @return {MIXED} Request
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype.generateRequest = function(sQuery) {
|
||||
var dataType = this.dataSource.dataType;
|
||||
@@ -725,7 +726,10 @@ YAHOO.widget.AutoComplete.prototype.generateRequest = function(sQuery) {
|
||||
* @param sQuery {String} Query string.
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype.sendQuery = function(sQuery) {
|
||||
// Adjust programatically sent queries to look like they input by user
|
||||
// Reset focus for a new interaction
|
||||
this._bFocused = null;
|
||||
|
||||
// Adjust programatically sent queries to look like they were input by user
|
||||
// when delimiters are enabled
|
||||
var newQuery = (this.delimChar) ? this._elTextbox.value + sQuery : sQuery;
|
||||
this._sendQuery(newQuery);
|
||||
@@ -793,6 +797,11 @@ YAHOO.widget.AutoComplete.prototype.preparseRawResponse = function(oRequest, oFu
|
||||
*/
|
||||
|
||||
YAHOO.widget.AutoComplete.prototype.filterResults = function(sQuery, oFullResponse, oParsedResponse, oCallback) {
|
||||
// If AC has passed a query string value back to itself, grab it
|
||||
if(oCallback && oCallback.argument && oCallback.argument.query) {
|
||||
sQuery = oCallback.argument.query;
|
||||
}
|
||||
|
||||
// Only if a query string is available to match against
|
||||
if(sQuery && sQuery !== "") {
|
||||
// First make a copy of the oParseResponse
|
||||
@@ -919,7 +928,7 @@ YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer = function(elTextbox
|
||||
* Nulls out the entire AutoComplete instance and related objects, removes attached
|
||||
* event listeners, and clears out DOM elements inside the container. After
|
||||
* calling this method, the instance reference should be expliclitly nulled by
|
||||
* implementer, as in myDataTable = null. Use with caution!
|
||||
* implementer, as in myAutoComplete = null. Use with caution!
|
||||
*
|
||||
* @method destroy
|
||||
*/
|
||||
@@ -1031,8 +1040,6 @@ YAHOO.widget.AutoComplete.prototype.containerPopulateEvent = null;
|
||||
*
|
||||
* @event containerExpandEvent
|
||||
* @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
|
||||
* @param sQuery {String} The query string.
|
||||
* @param aResults {Object[]} Results array.
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype.containerExpandEvent = null;
|
||||
|
||||
@@ -1109,6 +1116,7 @@ YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent = null;
|
||||
*
|
||||
* @event selectionEnforceEvent
|
||||
* @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
|
||||
* @param sClearedValue {String} The cleared value (including delimiters if applicable).
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent = null;
|
||||
|
||||
@@ -1561,11 +1569,28 @@ YAHOO.widget.AutoComplete.prototype._initListEl = function() {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Focuses input field.
|
||||
*
|
||||
* @method _focus
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._focus = function() {
|
||||
// http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
|
||||
var oSelf = this;
|
||||
setTimeout(function() {
|
||||
try {
|
||||
oSelf._elTextbox.focus();
|
||||
}
|
||||
catch(e) {
|
||||
}
|
||||
},0);
|
||||
};
|
||||
|
||||
/**
|
||||
* Enables interval detection for IME support.
|
||||
*
|
||||
* @method _enableIntervalDetection
|
||||
* @re
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._enableIntervalDetection = function() {
|
||||
@@ -1646,44 +1671,12 @@ YAHOO.widget.AutoComplete.prototype._sendQuery = function(sQuery) {
|
||||
return;
|
||||
}
|
||||
// Delimiter has been enabled
|
||||
var aDelimChar = (this.delimChar) ? this.delimChar : null;
|
||||
if(aDelimChar) {
|
||||
// Loop through all possible delimiters and find the rightmost one in the query
|
||||
// A " " may be a false positive if they are defined as delimiters AND
|
||||
// are used to separate delimited queries
|
||||
var nDelimIndex = -1;
|
||||
for(var i = aDelimChar.length-1; i >= 0; i--) {
|
||||
var nNewIndex = sQuery.lastIndexOf(aDelimChar[i]);
|
||||
if(nNewIndex > nDelimIndex) {
|
||||
nDelimIndex = nNewIndex;
|
||||
}
|
||||
}
|
||||
// If we think the last delimiter is a space (" "), make sure it is NOT
|
||||
// a false positive by also checking the char directly before it
|
||||
if(aDelimChar[i] == " ") {
|
||||
for (var j = aDelimChar.length-1; j >= 0; j--) {
|
||||
if(sQuery[nDelimIndex - 1] == aDelimChar[j]) {
|
||||
nDelimIndex--;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// A delimiter has been found in the query so extract the latest query from past selections
|
||||
if(nDelimIndex > -1) {
|
||||
var nQueryStart = nDelimIndex + 1;
|
||||
// Trim any white space from the beginning...
|
||||
while(sQuery.charAt(nQueryStart) == " ") {
|
||||
nQueryStart += 1;
|
||||
}
|
||||
// ...and save the rest of the string for later
|
||||
this._sPastSelections = sQuery.substring(0,nQueryStart);
|
||||
// Here is the query itself
|
||||
sQuery = sQuery.substr(nQueryStart);
|
||||
}
|
||||
// No delimiter found in the query, so there are no selections from past queries
|
||||
else {
|
||||
this._sPastSelections = "";
|
||||
}
|
||||
if(this.delimChar) {
|
||||
var extraction = this._extractQuery(sQuery);
|
||||
// Here is the query itself
|
||||
sQuery = extraction.query;
|
||||
// ...and save the rest of the string for later
|
||||
this._sPastSelections = extraction.previous;
|
||||
}
|
||||
|
||||
// Don't search queries that are too short
|
||||
@@ -1875,20 +1868,10 @@ YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, oResponse,
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._clearSelection = function() {
|
||||
var sValue = this._elTextbox.value;
|
||||
//TODO: need to check against all delimChars?
|
||||
var sChar = (this.delimChar) ? this.delimChar[0] : null;
|
||||
var nIndex = (sChar) ? sValue.lastIndexOf(sChar, sValue.length-2) : -1;
|
||||
if(nIndex > -1) {
|
||||
this._elTextbox.value = sValue.substring(0,nIndex);
|
||||
}
|
||||
else {
|
||||
this._elTextbox.value = "";
|
||||
}
|
||||
this._sPastSelections = this._elTextbox.value;
|
||||
|
||||
// Fire custom event
|
||||
this.selectionEnforceEvent.fire(this);
|
||||
var extraction = (this.delimChar) ? this._extractQuery(this._elTextbox.value) :
|
||||
{previous:"",query:this._elTextbox.value};
|
||||
this._elTextbox.value = extraction.previous;
|
||||
this.selectionEnforceEvent.fire(this, extraction.query);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1903,7 +1886,7 @@ YAHOO.widget.AutoComplete.prototype._clearSelection = function() {
|
||||
YAHOO.widget.AutoComplete.prototype._textMatchesOption = function() {
|
||||
var elMatch = null;
|
||||
|
||||
for(var i = this._nDisplayedItems-1; i >= 0 ; i--) {
|
||||
for(var i=0; i<this._nDisplayedItems; i++) {
|
||||
var elListItem = this._elList.childNodes[i];
|
||||
var sMatch = ("" + elListItem._sResultMatch).toLowerCase();
|
||||
if(sMatch == this._sCurQuery.toLowerCase()) {
|
||||
@@ -1971,6 +1954,63 @@ YAHOO.widget.AutoComplete.prototype._selectText = function(elTextbox, nStart, nE
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Extracts rightmost query from delimited string.
|
||||
*
|
||||
* @method _extractQuery
|
||||
* @param sQuery {String} String to parse
|
||||
* @return {Object} Object literal containing properties "query" and "previous".
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._extractQuery = function(sQuery) {
|
||||
var aDelimChar = this.delimChar,
|
||||
nDelimIndex = -1,
|
||||
nNewIndex, nQueryStart,
|
||||
i = aDelimChar.length-1,
|
||||
sPrevious;
|
||||
|
||||
// Loop through all possible delimiters and find the rightmost one in the query
|
||||
// A " " may be a false positive if they are defined as delimiters AND
|
||||
// are used to separate delimited queries
|
||||
for(; i >= 0; i--) {
|
||||
nNewIndex = sQuery.lastIndexOf(aDelimChar[i]);
|
||||
if(nNewIndex > nDelimIndex) {
|
||||
nDelimIndex = nNewIndex;
|
||||
}
|
||||
}
|
||||
// If we think the last delimiter is a space (" "), make sure it is NOT
|
||||
// a false positive by also checking the char directly before it
|
||||
if(aDelimChar[i] == " ") {
|
||||
for (var j = aDelimChar.length-1; j >= 0; j--) {
|
||||
if(sQuery[nDelimIndex - 1] == aDelimChar[j]) {
|
||||
nDelimIndex--;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// A delimiter has been found in the query so extract the latest query from past selections
|
||||
if(nDelimIndex > -1) {
|
||||
nQueryStart = nDelimIndex + 1;
|
||||
// Trim any white space from the beginning...
|
||||
while(sQuery.charAt(nQueryStart) == " ") {
|
||||
nQueryStart += 1;
|
||||
}
|
||||
// ...and save the rest of the string for later
|
||||
sPrevious = sQuery.substring(0,nQueryStart);
|
||||
// Here is the query itself
|
||||
sQuery = sQuery.substr(nQueryStart);
|
||||
}
|
||||
// No delimiter found in the query, so there are no selections from past queries
|
||||
else {
|
||||
sPrevious = "";
|
||||
}
|
||||
|
||||
return {
|
||||
previous: sPrevious,
|
||||
query: sQuery
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Syncs results container with its helpers.
|
||||
*
|
||||
@@ -2016,6 +2056,7 @@ YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers = function(bShow) {
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) {
|
||||
|
||||
var elContainer = this._elContainer;
|
||||
|
||||
// If implementer has container always open and it's already open, don't mess with it
|
||||
@@ -2031,8 +2072,7 @@ YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) {
|
||||
this._sCurQuery = null;
|
||||
|
||||
// Container is already closed, so don't bother with changing the UI
|
||||
if(!this._bContainerOpen) {
|
||||
this._elContent.style.display = "none";
|
||||
if(this._elContent.style.display == "none") {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -2259,8 +2299,8 @@ YAHOO.widget.AutoComplete.prototype._jumpSelection = function() {
|
||||
YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) {
|
||||
if(this._bContainerOpen) {
|
||||
// Determine current item's id number
|
||||
var elCurListItem = this._elCurListItem;
|
||||
var nCurItemIndex = -1;
|
||||
var elCurListItem = this._elCurListItem,
|
||||
nCurItemIndex = -1;
|
||||
|
||||
if(elCurListItem) {
|
||||
nCurItemIndex = elCurListItem._nItemIndex;
|
||||
@@ -2295,12 +2335,13 @@ YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) {
|
||||
return;
|
||||
}
|
||||
|
||||
var elNewListItem = this._elList.childNodes[nNewItemIndex];
|
||||
var elNewListItem = this._elList.childNodes[nNewItemIndex],
|
||||
|
||||
// Scroll the container if necessary
|
||||
var elContent = this._elContent;
|
||||
var scrollOn = ((YAHOO.util.Dom.getStyle(elContent,"overflow") == "auto") ||
|
||||
(YAHOO.util.Dom.getStyle(elContent,"overflowY") == "auto"));
|
||||
elContent = this._elContent,
|
||||
sOF = YAHOO.util.Dom.getStyle(elContent,"overflow"),
|
||||
sOFY = YAHOO.util.Dom.getStyle(elContent,"overflowY"),
|
||||
scrollOn = ((sOF == "auto") || (sOF == "scroll") || (sOFY == "auto") || (sOFY == "scroll"));
|
||||
if(scrollOn && (nNewItemIndex > -1) &&
|
||||
(nNewItemIndex < this._nDisplayedItems)) {
|
||||
// User is keying down
|
||||
@@ -2346,58 +2387,6 @@ YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) {
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Handles <li> element mouseover events in the container.
|
||||
*
|
||||
* @method _onItemMouseover
|
||||
* @param v {HTMLEvent} The mouseover event.
|
||||
* @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
|
||||
* @private
|
||||
*/
|
||||
/*YAHOO.widget.AutoComplete.prototype._onItemMouseover = function(v,oSelf) {
|
||||
if(oSelf.prehighlightClassName) {
|
||||
oSelf._togglePrehighlight(this,"mouseover");
|
||||
}
|
||||
else {
|
||||
oSelf._toggleHighlight(this,"to");
|
||||
}
|
||||
|
||||
oSelf.itemMouseOverEvent.fire(oSelf, this);
|
||||
};*/
|
||||
|
||||
/**
|
||||
* Handles <li> element mouseout events in the container.
|
||||
*
|
||||
* @method _onItemMouseout
|
||||
* @param v {HTMLEvent} The mouseout event.
|
||||
* @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
|
||||
* @private
|
||||
*/
|
||||
/*YAHOO.widget.AutoComplete.prototype._onItemMouseout = function(v,oSelf) {
|
||||
if(oSelf.prehighlightClassName) {
|
||||
oSelf._togglePrehighlight(this,"mouseout");
|
||||
}
|
||||
else {
|
||||
oSelf._toggleHighlight(this,"from");
|
||||
}
|
||||
|
||||
oSelf.itemMouseOutEvent.fire(oSelf, this);
|
||||
};*/
|
||||
|
||||
/**
|
||||
* Handles <li> element click events in the container.
|
||||
*
|
||||
* @method _onItemMouseclick
|
||||
* @param v {HTMLEvent} The click event.
|
||||
* @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
|
||||
* @private
|
||||
*/
|
||||
/*YAHOO.widget.AutoComplete.prototype._onItemMouseclick = function(v,oSelf) {
|
||||
// In case item has not been moused over
|
||||
oSelf._toggleHighlight(this,"to");
|
||||
oSelf._selectItem(this);
|
||||
};*/
|
||||
|
||||
/**
|
||||
* Handles container mouseover events.
|
||||
*
|
||||
@@ -2526,7 +2515,7 @@ YAHOO.widget.AutoComplete.prototype._onContainerClick = function(v,oSelf) {
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._onContainerScroll = function(v,oSelf) {
|
||||
oSelf._elTextbox.focus();
|
||||
oSelf._focus();
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -2740,7 +2729,7 @@ YAHOO.widget.AutoComplete.prototype._onTextboxFocus = function (v,oSelf) {
|
||||
* @private
|
||||
*/
|
||||
YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) {
|
||||
// Don't treat as a blur if it was a selection via mouse click
|
||||
// Is a true blur
|
||||
if(!oSelf._bOverContainer || (oSelf._nKeyCode == 9)) {
|
||||
// Current query needs to be validated as a selection
|
||||
if(!oSelf._bItemSelected) {
|
||||
@@ -2765,15 +2754,18 @@ YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) {
|
||||
}
|
||||
}
|
||||
|
||||
if(oSelf._bContainerOpen) {
|
||||
oSelf._toggleContainer(false);
|
||||
}
|
||||
oSelf._clearInterval();
|
||||
oSelf._bFocused = false;
|
||||
if(oSelf._sInitInputValue !== oSelf._elTextbox.value) {
|
||||
oSelf.textboxChangeEvent.fire(oSelf);
|
||||
}
|
||||
oSelf.textboxBlurEvent.fire(oSelf);
|
||||
|
||||
oSelf._toggleContainer(false);
|
||||
}
|
||||
// Not a true blur if it was a selection via mouse click
|
||||
else {
|
||||
oSelf._focus();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2870,4 +2862,4 @@ YAHOO.widget.AutoComplete._cloneObject = function(o) {
|
||||
|
||||
|
||||
|
||||
YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.7.0", build: "1799"});
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
YUI Library - Base - Release Notes
|
||||
|
||||
Version 2.6.0
|
||||
|
||||
* No changes.
|
||||
|
||||
Version 2.5.2
|
||||
|
||||
* No changes.
|
||||
|
||||
Version 2.5.1
|
||||
|
||||
* No changes.
|
||||
|
||||
Version 2.5.0
|
||||
|
||||
* No changes.
|
||||
|
||||
Version 2.4.0
|
||||
|
||||
* Fixed typo in comments.
|
||||
* Added margin-bottom:1em; for PRE element to match P
|
||||
* Added color:#000 for legend element, accomodation for IE
|
||||
* Added set width (equivilant to 160px but set in EMs) for input's
|
||||
width type = text or password, and for textareas.
|
||||
|
||||
Version 2.3.0
|
||||
|
||||
* Initial release.
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong{font-weight:bold;}abbr,acronym{border-bottom:1px dotted #000;cursor:help;} em{font-style:italic;}blockquote,ul,ol,dl{margin:1em;}ol,ul,dl{margin-left:2em;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}th,td{border:1px solid #000;padding:.5em;}th{font-weight:bold;text-align:center;}caption{margin-bottom:.5em;text-align:center;}p,fieldset,table,pre{margin-bottom:1em;}input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;}
|
||||
body{margin:10px;}h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong,dt{font-weight:bold;}optgroup{font-weight:normal;}abbr,acronym{border-bottom:1px dotted #000;cursor:help;}em{font-style:italic;}del{text-decoration:line-through;}blockquote,ul,ol,dl{margin:1em;}ol,ul,dl{margin-left:2em;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}th,td{border:1px solid #000;padding:.5em;}th{font-weight:bold;text-align:center;}caption{margin-bottom:.5em;text-align:center;}sup{vertical-align:super;}sub{vertical-align:sub;}p,fieldset,table,pre{margin-bottom:1em;}button,input[type="checkbox"],input[type="radio"],input[type="reset"],input[type="submit"]{padding:1px;}
|
||||
@@ -1,82 +1,131 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/* base.css, part of YUI's CSS Foundation */
|
||||
/**
|
||||
* YUI Base
|
||||
* @module base
|
||||
* @namespace yui-
|
||||
* @requires reset, fonts
|
||||
*/
|
||||
|
||||
body {
|
||||
/* For breathing room between content and viewport. */
|
||||
margin:10px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
/*18px via YUI Fonts CSS foundation*/
|
||||
font-size:138.5%;
|
||||
/* 18px via YUI Fonts CSS foundation. */
|
||||
font-size: 138.5%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
/*16px via YUI Fonts CSS foundation*/
|
||||
font-size:123.1%;
|
||||
/* 16px via YUI Fonts CSS foundation. */
|
||||
font-size: 123.1%;
|
||||
}
|
||||
|
||||
h3 {
|
||||
/*14px via YUI Fonts CSS foundation*/
|
||||
font-size:108%;
|
||||
/* 14px via YUI Fonts CSS foundation. */
|
||||
font-size: 108%;
|
||||
}
|
||||
|
||||
h1,h2,h3 {
|
||||
/* top & bottom margin based on font size */
|
||||
margin:1em 0;
|
||||
/* Top & bottom margin based on font size. */
|
||||
margin: 1em 0;
|
||||
}
|
||||
h1,h2,h3,h4,h5,h6,strong {
|
||||
/*bringing boldness back to headers and the strong element*/
|
||||
font-weight:bold;
|
||||
|
||||
h1,h2,h3,h4,h5,h6,strong,dt {
|
||||
/* Bringing boldness back to headers and the strong element. */
|
||||
font-weight: bold;
|
||||
}
|
||||
optgroup {
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
abbr,acronym {
|
||||
/*indicating to users that more info is available */
|
||||
border-bottom:1px dotted #000;
|
||||
cursor:help;
|
||||
}
|
||||
/* Indicating to users that more info is available. */
|
||||
border-bottom: 1px dotted #000;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
em {
|
||||
/*bringing italics back to the em element*/
|
||||
font-style:italic;
|
||||
/* Bringing italics back to the em element. */
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
del {
|
||||
text-decoration:line-through;
|
||||
/* Striking deleted phrases. */
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
blockquote,ul,ol,dl {
|
||||
/*giving blockquotes and lists room to breath*/
|
||||
margin:1em;
|
||||
/* Giving blockquotes and lists room to breath. */
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
ol,ul,dl {
|
||||
/*bringing lists on to the page with breathing room */
|
||||
margin-left:2em;
|
||||
/* Bringing lists on to the page with breathing room. */
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
ol li {
|
||||
/*giving OL's LIs generated numbers*/
|
||||
list-style: decimal outside;
|
||||
/* Giving OL's LIs generated numbers. */
|
||||
list-style: decimal outside;
|
||||
}
|
||||
|
||||
ul li {
|
||||
/*giving UL's LIs generated disc markers*/
|
||||
/* Giving UL's LIs generated disc markers. */
|
||||
list-style: disc outside;
|
||||
}
|
||||
|
||||
dl dd {
|
||||
/*giving UL's LIs generated numbers*/
|
||||
margin-left:1em;
|
||||
/* Giving UL's LIs generated numbers. */
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
th,td {
|
||||
/*borders and padding to make the table readable*/
|
||||
border:1px solid #000;
|
||||
padding:.5em;
|
||||
/* Borders and padding to make the table readable. */
|
||||
border: 1px solid #000;
|
||||
padding: .5em;
|
||||
}
|
||||
|
||||
th {
|
||||
/*distinguishing table headers from data cells*/
|
||||
font-weight:bold;
|
||||
text-align:center;
|
||||
/* Distinguishing table headers from data cells. */
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
caption {
|
||||
/*coordinated margin to match cell's padding*/
|
||||
margin-bottom:.5em;
|
||||
/*centered so it doesn't blend in to other content*/
|
||||
text-align:center;
|
||||
/* Coordinated margin to match cell's padding. */
|
||||
margin-bottom: .5em;
|
||||
/* Centered so it doesn't blend in to other content. */
|
||||
text-align: center;
|
||||
}
|
||||
p,fieldset,table,pre {
|
||||
/*so things don't run into each other*/
|
||||
margin-bottom:1em;
|
||||
|
||||
sup {
|
||||
/* to preserve line-height and selector appearance */
|
||||
vertical-align: super;
|
||||
}
|
||||
|
||||
sub {
|
||||
/* to preserve line-height and selector appearance */
|
||||
vertical-align: sub;
|
||||
}
|
||||
|
||||
p,
|
||||
fieldset,
|
||||
table,
|
||||
pre {
|
||||
/* So things don't run into each other. */
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
/* Opera requires 1px of passing to render with contemporary native chrome */
|
||||
button,
|
||||
input[type="checkbox"],
|
||||
input[type="radio"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
padding:1px;
|
||||
}
|
||||
/* setting a consistent width, 160px;
|
||||
control of type=file still not possible */
|
||||
input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;}
|
||||
|
||||
@@ -1,436 +0,0 @@
|
||||
*** version 2.6.0 ***
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
|
||||
+ Clicking on the option region of a Button of "type" split will fire the "option" event, but not
|
||||
"mousedown," "mouseup," "click," or "dblclick".
|
||||
|
||||
+ Buttons of type "radio" and "checkbox" will not override a value provided for the title attribute.
|
||||
|
||||
+ Returning false in an inline "submit" event handler for a form will now prevent the form
|
||||
from being submitted when the form contains Button instances.
|
||||
|
||||
+ Pressing the enter key to submit a form containing Button instances will no longer
|
||||
trigger a beep sound in Internet Explorer.
|
||||
|
||||
+ The Button widget no longer logs errors when strict error reporting is enabled in FireFox.
|
||||
|
||||
+ Button instances are now automatically clicked when their corresponding <label> is clicked.
|
||||
|
||||
+ The name and value of selected MenuItems in submenus of a Button's Menu are now part of their
|
||||
parent form's data when the form is submitted.
|
||||
|
||||
+ For Button's of type "menu" and "split" created using an existing <SELECT> element: The name and
|
||||
value of the pre-selected MenuItem in a Button's Menu are now part of their parent form's data
|
||||
when the form is submitted.
|
||||
|
||||
+ The "appendTo" event now correctly fires when the "container" attribute is set to a
|
||||
node reference.
|
||||
|
||||
+ Simple forms with two fields: a Button of type "submit" and a text field will no longer
|
||||
be submitted twice when the enter key is pressed.
|
||||
|
||||
+ Submitting a form by pressing the enter key will now result in a Button's "click" event
|
||||
handlers getting called.
|
||||
|
||||
+ Buttons of type "menu" and "split" now consistently display their Menus in Opera.
|
||||
|
||||
+ Button no longer logs a warning when a Button is created without an id.
|
||||
|
||||
|
||||
Added the following features:
|
||||
-----------------------------
|
||||
|
||||
+ Added a new "menumaxheight" attribute used to set the "maxheight" configuration property of a
|
||||
Button's Menu.
|
||||
|
||||
+ Added a new "menuminscrollheight" attribute used to set the "minscrollheight" configuration
|
||||
property of a Button's Menu.
|
||||
|
||||
+ Added a "menualignment" attribute attribute used to control how a Menu is aligned to its
|
||||
corresponding Button.
|
||||
|
||||
+ Added a "yui-split-button-hoveroption" CSS class that is applied when the user hovers the mouse
|
||||
over the "option" section of a split button.
|
||||
|
||||
|
||||
Changes:
|
||||
--------
|
||||
|
||||
+ Removed the rounded corners for IE 6 Quirks Mode and Strict Mode and IE 7 Quirks Mode.
|
||||
|
||||
+ Changed the keyboard shortcut used to display the Menu for Button's of type "split" to the down
|
||||
arrow key.
|
||||
|
||||
+ Passing a DOM element reference to the "container" attribute will no longer result in the Button
|
||||
being appended to the container immediately. Use the "appendTo" event to listen for when
|
||||
the Button will be appended to the element specified as its container. To append a Button to
|
||||
an element in the DOM immediately, use the "appendTo" method rather than the "container"
|
||||
attribute.
|
||||
|
||||
|
||||
*** Version 2.5.2 ***
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
|
||||
+ Button instances no longer flicker in Firefox 3 when their "label" attributed is updated.
|
||||
|
||||
+ Scrolled Menus of Buttons whose type attribute is set to "menu" or "split" no longer appear
|
||||
on top of their corresponding Button instance.
|
||||
|
||||
+ The keyboard shortcut responsible for triggering the display of the Menu for Button instances of
|
||||
type "split" will no longer trigger the display of the browser's default context menu in Opera.
|
||||
|
||||
|
||||
|
||||
*** Version 2.5.1 ***
|
||||
|
||||
+ No changes.
|
||||
|
||||
|
||||
|
||||
*** Version 2.5.0 ***
|
||||
|
||||
+ Fixed issue where returning false inside the scope of a listener for attribute "before"
|
||||
events (i.e "beforeCheckedChange") would not cancel the attribute's default setter.
|
||||
|
||||
|
||||
|
||||
*** Version 2.4.1 ***
|
||||
|
||||
+ No changes.
|
||||
|
||||
|
||||
|
||||
*** Version 2.4.0 ***
|
||||
|
||||
Added the following features:
|
||||
-----------------------------
|
||||
|
||||
+ Added a static method "YAHOO.widget.Button.getButton" that returns a Button
|
||||
instance with the specified HTML element id.
|
||||
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
|
||||
+ Removed the ".yui-skin-sam" CSS class name from style rules in the core
|
||||
stylesheet so that it is now truly skin agnostic.
|
||||
|
||||
+ Updated the default text for tooltips for Buttons of type "radio" so that
|
||||
they offer the correct instructional text.
|
||||
|
||||
+ Menus with grouped YAHOO.widget.MenuItem instances will now highlight
|
||||
correctly when used with Button.
|
||||
|
||||
+ Buttons of type "link" now have the same default height as other Button
|
||||
types in Internet Explorer.
|
||||
|
||||
+ Buttons of various types now line up correctly on the same line.
|
||||
|
||||
+ Menu is now truly an optional dependancy of Button.
|
||||
|
||||
+ Menus now render with the correct width when the "yui-skin-sam" CSS class
|
||||
name is applied to an element other than the <BODY>.
|
||||
|
||||
|
||||
|
||||
*** Version 2.3.1 ***
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
+ Purged the old 2.2.2 Button stylesheet and related image assets that was
|
||||
mistakenly included in the 2.3.0 build.
|
||||
|
||||
+ Fixed an issue in Gecko where changing a Button instance's "label" attribute
|
||||
after the Button had been created would not result in the Button redrawing at
|
||||
a width to fit its content.
|
||||
|
||||
+ Fixed an issue where the singleton keypress event handler
|
||||
(YAHOO.widget.Button.onFormKeyPress) registered for forms containing
|
||||
Button instances of type "submit" was not removed from the form once all of
|
||||
its child Button instances are destroyed.
|
||||
|
||||
+ Submitting a form by clicking on a MenuItem of a SplitButton's or MenuButton's
|
||||
Menu will no longer result in a JavaScript error.
|
||||
|
||||
+ Modified how element tag names are compared to support XHTML applications.
|
||||
|
||||
+ Added code to remove the CSS class names representing the "hover," "focus,"
|
||||
and "active" states when a Button instance is disabled.
|
||||
|
||||
|
||||
*** Version 2.3 ***
|
||||
|
||||
Added the following features:
|
||||
-----------------------------
|
||||
|
||||
+ Added a "focusmenu" configuration attribute that controls whether or not a
|
||||
Button instance's menu will automatically be focused when made visible.
|
||||
|
||||
+ Added a "lazyloadmenu" configuration attribute that controls the value of
|
||||
the "lazyload" configuration property of a Button's menu.
|
||||
|
||||
+ Added "menuclassname" configuration attribute that defines a CSS class name
|
||||
to be applied to the root HTML element of a button's menu.
|
||||
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
|
||||
+ Setting the "label" attribute of a Button of type "link" to a string with
|
||||
a "www." prefix will no longer result in the value of the "href" property
|
||||
being used for the "label" in IE.
|
||||
|
||||
+ Disabling a Button when its menu is visible will now result in the menu
|
||||
being hidden.
|
||||
|
||||
+ Hidden field(s) created by a Button instance are now removed if the
|
||||
submission of its parent form is cancelled.
|
||||
|
||||
+ If a Button instance is preceeded by another enabled HTML submit button
|
||||
(<input type="submit" ...> or <button type="submit" ...>), it will no longer
|
||||
create a hidden field representing its name and value when its parent form
|
||||
is submitted.
|
||||
|
||||
+ If an HTML form contains a mix of YUI Buttons of type "submit" and standard
|
||||
HTML submit buttons (<input type="submit" ...> or <button type="submit" ...>)
|
||||
its "submit" event will no longer fire twice when it is submitted by the user
|
||||
pressing the enter key while focus inside another HTML form control.
|
||||
|
||||
+ If all Button instances in a form are disabled, the form will no longer be
|
||||
submitted when the user presses the enter key while focused inside another
|
||||
HTML form control.
|
||||
|
||||
+ The first enabled Button instance in a form now correctly adds its name and
|
||||
value to the form's data set when the form is submitted by the user pressing
|
||||
the enter key while focused inside another form control.
|
||||
|
||||
+ Fixed typo in the source file for the ButtonGroup class that was causing the
|
||||
private variable "m_oButtons" to be declared as a global.
|
||||
|
||||
+ Switched to use of the CSS display type "-moz-inline-box" from
|
||||
"-moz-inline-stack" for Gecko-based browsers so that the entire area of a
|
||||
Button instance is clickable when it is rendered inside another inline
|
||||
element.
|
||||
|
||||
+ Added "yui-button" and "yui-[button type]-button" prefix to CSS classes to
|
||||
sandbox Button styles.
|
||||
|
||||
|
||||
Changes:
|
||||
--------
|
||||
|
||||
+ Default value of "type" configuration attribute now "push" (was "button").
|
||||
|
||||
+ Type "menubutton" now "menu."
|
||||
|
||||
+ Type "splitbuton" now "split."
|
||||
|
||||
+ Added "addStateCSSClasses" method.
|
||||
|
||||
+ Added "removeStateCSSClasses" method.
|
||||
|
||||
+ Renamed protected property "_hiddenField" to "_hiddenFields."
|
||||
|
||||
+ Removed protected "submit" event handler named "_onFormSubmit."
|
||||
|
||||
+ Renamed public method "createHiddenField" to "createHiddenFields."
|
||||
|
||||
+ Added new "removeHiddenFields" method.
|
||||
|
||||
+ Renamed static method "YAHOO.widget.Button.onFormKeyDown"
|
||||
to "YAHOO.widget.Button.onFormKeyPress."
|
||||
|
||||
+ Renamed "TAG_NAME" constant (YAHOO.widget.Button.prototype.TAG_NAME and
|
||||
YAHOO.widget.ButtonGroup.prototype.TAG_NAME) to
|
||||
"NODE_NAME" (YAHOO.widget.Button.prototype.NODE_NAME and
|
||||
YAHOO.widget.ButtonGroup.prototype.NODE_NAME).
|
||||
|
||||
+ The "selectedMenuItem" configuration attribute now correctly gets/sets the
|
||||
index of the selected MenuItem instance of the button's menu, rather than a
|
||||
MenuItem instance.
|
||||
|
||||
+ The "container" configuration attribute is now writeonce
|
||||
|
||||
+ The "menu" configuration attribute is now writeonce
|
||||
|
||||
+ The root element of each button's menu now will have two CSS classes
|
||||
appended to it:
|
||||
- The CSS class name specified by the "menuclassname" configuration
|
||||
attribute (by default is "yui-button-menu")
|
||||
- A type-specific class name (either "yui-split-button-menu"
|
||||
or "yui-menu-button-menu")
|
||||
|
||||
+ "menu" configuration attribute now supports creation or use of
|
||||
YAHOO.widget.Overlay in addition to previously supported
|
||||
YAHOO.widget.Menu:
|
||||
|
||||
- To create a menu from existing markup using YAHOO.widget.Overlay, pass the
|
||||
id or node reference of the HTML element to be used to create the Overlay
|
||||
as the value of the "menu" configuration attribute.
|
||||
|
||||
- YAHOO.widget.Overlay instances passed as a value for the "menu"
|
||||
configuration attribute need to be fully rendered.
|
||||
|
||||
- To create a menu from existing markup using YAHOO.widget.Menu, pass the
|
||||
id or node reference of the HTML element to be used to create the menu
|
||||
as the value of the "menu" configuration attribute and give the
|
||||
HTML element the same class name as specified by
|
||||
YAHOO.widget.Menu.prototype.CSS_CLASS_NAME.
|
||||
|
||||
- YAHOO.widget.Overlay instances used as a menu are by default not rendered
|
||||
until they are are made visible for the first time. This behavior
|
||||
can be changed so that they are rendered immediately by setting the value
|
||||
of the "lazyloadmenu" configuration attribute to "false."
|
||||
|
||||
+ If you pass an element id for the value of the "menu" configuration
|
||||
attribute, that node is now accessed immediately via the "get" method of the
|
||||
Dom utility (YAHOO.util.Dom) as opposed to the "onContentReady" method of the
|
||||
Event utility (YAHOO.util.Event).
|
||||
|
||||
+ Modified code to support a more generic markup format. Now any number of
|
||||
HTML elements can exist between a Button's root HTML element and its button
|
||||
node (be it an <A> or <BUTTON> element):
|
||||
|
||||
<ROOT_NODE> ... <BUTTON_NODE /> ... </ROOT_NODE>
|
||||
|
||||
+ A Button can now be initialized using any of the following six HTML patterns:
|
||||
|
||||
- <A> TEXT/HTML </A>
|
||||
- <BUTTON> TEXT/HTML </BUTTON>
|
||||
- <INPUT />
|
||||
- <ROOT_NODE> ... <A> TEXT/HTML </A> ... </ROOT_NODE>
|
||||
- <ROOT_NODE> ... <BUTTON> TEXT/HTML </BUTTON> ... </ROOT_NODE>
|
||||
- <ROOT_NODE> ... <INPUT /> ... </ROOT_NODE>
|
||||
|
||||
+ The id of a Button instance can now match that of its source element.
|
||||
|
||||
+ CSS changes:
|
||||
|
||||
1) All Buttons have a "yui-" prefix as opposed to "yui":
|
||||
|
||||
2.2.2 | 2.3
|
||||
-------------------------
|
||||
.yuibutton | .yui-button
|
||||
|
||||
|
||||
2) Each Button type has its own class name with a "yui-" prefix and
|
||||
"-button" suffix IN ADDITION TO the default "yui-button" class name:
|
||||
|
||||
2.2.2 | 2.3
|
||||
------------------------------------------
|
||||
.yuibutton.splitbutton | .yui-split-button
|
||||
.yuibutton.menubutton | .yui-menu-button
|
||||
|
||||
* Allows for the definition of generic styles that apply to all buttons,
|
||||
while providing a means for uniquely styling buttons of a specific type.
|
||||
|
||||
|
||||
3) For states that are common to all Buttons, two classes are applied: a
|
||||
generic class name (i.e. yui-button-[state]) and a type-specific state class
|
||||
name (yui-[type]-button-[state]):
|
||||
|
||||
2.2.2 | 2.3
|
||||
-------------------------------------------
|
||||
.yuibutton.focus | .yui-button-focus
|
||||
.yuibutton.radio.focus | .yui-radio-button-focus
|
||||
|
||||
* States common to all Button types are:
|
||||
+ focus
|
||||
+ hover
|
||||
+ active
|
||||
+ disabled
|
||||
|
||||
** Allows for the definition of generic styles that apply to all states of
|
||||
all buttons, while providing a means for uniquely styling states for
|
||||
buttons of a specific type.
|
||||
|
||||
|
||||
4) Buttons of type "radio" and "checkbox" have two classes applied to
|
||||
represent their "checked" state: a generic class name
|
||||
(i.e. yui-button-checked) and a type-specific class
|
||||
name (yui-[type]-button-checked):
|
||||
|
||||
2.2.2 | 2.3
|
||||
-------------------------------------------
|
||||
.yuibutton.checked | .yui-button-checked
|
||||
.yuibutton.radio.checked | .yui-radio-button-checked
|
||||
.yuibutton.checkbox.checked | .yui-checkbox-button-checked
|
||||
|
||||
** This allows for the definition of a universal style for all Buttons that
|
||||
have a "checked" state or the ability to define a type-specific style for
|
||||
the "checked" state.
|
||||
|
||||
|
||||
5) States that are specific to a particular type only get a type-specific
|
||||
state class name. Currently this only applies to the "splitbutton" type:
|
||||
|
||||
2.2.2 | 2.3
|
||||
-------------------------------------------
|
||||
.yuibutton.activeoption | .yui-split-button-activeoption
|
||||
|
||||
|
||||
6) The "ie6" class name is removed.
|
||||
|
||||
|
||||
*** Version 2.2.2 ***
|
||||
|
||||
+ No changes
|
||||
|
||||
|
||||
*** Version 2.2.1 ***
|
||||
|
||||
Added the following features:
|
||||
-----------------------------
|
||||
|
||||
+ Added "getHiddenField" method to YAHOO.widget.Button.
|
||||
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
|
||||
+ Removed built-in use of the Event utility's "onAvailable" method from the
|
||||
constructor of Button and ButtonGroup as it was preventing the addition of
|
||||
event listeners on instances created from existing markup. Going forward
|
||||
Button and ButtonGroup instances created from existing markup can only be
|
||||
instantiated once their source HTML element is available in the DOM. The
|
||||
Button examples illustrate how this can be accomplished.
|
||||
|
||||
+ Modified code so that disabled Button instances no longer fire DOM events.
|
||||
|
||||
+ Pressing the enter key while focused on a form field whose parent form
|
||||
contains a Button instance of type "submit" will now automatically submit
|
||||
the form using the first Button instance of type "submit".
|
||||
|
||||
+ Clicking a Button instance of type="submit" will now cause the Button's
|
||||
parent form's "submit" event to fire.
|
||||
|
||||
+ Modified Button CSS so that the filter used to apply alpha transparency to
|
||||
a Button's background PNG is only used by IE 6. The previous code was
|
||||
enabling IE's Alpha image loader for IE 7 in Quirks mode.
|
||||
|
||||
+ Fixed documentation error for "getForm" method.
|
||||
|
||||
|
||||
Changes:
|
||||
--------
|
||||
|
||||
+ Made the "submitForm" method of YAHOO.widget.Button public (was
|
||||
previously protected).
|
||||
|
||||
+ Removed "init" event and corresponding "oninit" configuration attribute
|
||||
from YAHOO.widget.Button and YAHOO.widget.ButtonGroup.
|
||||
|
||||
+ Added the CSS class "ie6" to button.css. This classname is append to root
|
||||
DOM element of Button instances created with IE 6. By default this class
|
||||
is used to apply a filter that gives alpha transparency to a Button's
|
||||
background PNG.
|
||||
|
||||
|
||||
|
||||
*** Version 2.2.0 ***
|
||||
|
||||
* Button Control introduced
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-button {
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-skin-sam .yui-button {
|
||||
|
||||
@@ -20,15 +20,13 @@ version: 2.6.0
|
||||
border-style: solid;
|
||||
border-color: #808080;
|
||||
margin: 0 -1px;
|
||||
*position: relative; /* Necessary to get negative margins working in IE */
|
||||
*left: -1px;
|
||||
|
||||
/*
|
||||
Don't apply rounded corners for IE 6 (Quirks and Standards Mode) and IE 7 Quirks Mode
|
||||
since it causes more problems than its worth.
|
||||
|
||||
/*
|
||||
Using negative margins for rounded corners won't work in IE 6 and IE 7
|
||||
(Quirks Mode Only), so set the "margin" property to "0" for those
|
||||
browsers.
|
||||
*/
|
||||
_margin: 0;
|
||||
_position: static;
|
||||
_margin: 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;*position:relative;*left:-1px;_margin:0;_position:static;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-focus button,.yui-skin-sam .yui-button-focus a{color:#000;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-hover button,.yui-skin-sam .yui-button-hover a{color:#000;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-active button,.yui-skin-sam .yui-button-active a{color:#000;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
|
||||
.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;_margin:0;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-focus button,.yui-skin-sam .yui-button-focus a{color:#000;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-hover button,.yui-skin-sam .yui-button-hover a{color:#000;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-active button,.yui-skin-sam .yui-button-active a{color:#000;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
|
||||
|
||||
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 173 B |
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 173 B |
|
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 280 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 185 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 185 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 185 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 185 B |
@@ -1,14 +1,14 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/**
|
||||
* @module button
|
||||
* @description <p>The Button Control enables the creation of rich, graphical
|
||||
* buttons that function like traditional HTML form buttons. <em>Unlike</em>
|
||||
* tradition HTML form buttons, buttons created with the Button Control can have
|
||||
* traditional HTML form buttons, buttons created with the Button Control can have
|
||||
* a label that is different from its value. With the inclusion of the optional
|
||||
* <a href="module_menu.html">Menu Control</a>, the Button Control can also be
|
||||
* used to create menu buttons and split buttons, controls that are not
|
||||
@@ -1060,7 +1060,7 @@ version: 2.6.0
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @method _setMenu
|
||||
@@ -1081,15 +1081,9 @@ version: 2.6.0
|
||||
*/
|
||||
|
||||
bInstance = false,
|
||||
|
||||
|
||||
oMenu,
|
||||
oMenuElement,
|
||||
oSrcElement,
|
||||
aItems,
|
||||
nItems,
|
||||
oItem,
|
||||
i;
|
||||
oSrcElement;
|
||||
|
||||
|
||||
function onAppendTo() {
|
||||
@@ -1147,12 +1141,13 @@ version: 2.6.0
|
||||
|
||||
oMenu.keyDownEvent.subscribe(this._onMenuKeyDown, this, true);
|
||||
oMenu.subscribe("click", this._onMenuClick, this, true);
|
||||
oMenu.itemAddedEvent.subscribe(this._onMenuItemAdded, this, true);
|
||||
|
||||
this.on("selectedMenuItemChange", this._onSelectedMenuItemChange);
|
||||
|
||||
oSrcElement = oMenu.srcElement;
|
||||
|
||||
if (oSrcElement && oSrcElement.nodeName.toUpperCase() == "SELECT") {
|
||||
|
||||
|
||||
oSrcElement.style.display = "none";
|
||||
oSrcElement.parentNode.removeChild(oSrcElement);
|
||||
|
||||
@@ -1206,31 +1201,8 @@ version: 2.6.0
|
||||
if (p_oMenu && Menu && (p_oMenu instanceof Menu)) {
|
||||
|
||||
oMenu = p_oMenu;
|
||||
aItems = oMenu.getItems();
|
||||
nItems = aItems.length;
|
||||
bInstance = true;
|
||||
|
||||
|
||||
if (nItems > 0) {
|
||||
|
||||
i = nItems - 1;
|
||||
|
||||
do {
|
||||
|
||||
oItem = aItems[i];
|
||||
|
||||
if (oItem) {
|
||||
|
||||
oItem.cfg.subscribeToConfigEvent("selected",
|
||||
this._onMenuItemSelected, oItem, this);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
while (i--);
|
||||
|
||||
}
|
||||
|
||||
initMenu.call(this);
|
||||
|
||||
}
|
||||
@@ -1344,36 +1316,7 @@ version: 2.6.0
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* @method _setSelectedMenuItem
|
||||
* @description Sets the value of the button's
|
||||
* "selectedMenuItem" attribute.
|
||||
* @protected
|
||||
* @param {Number} p_nIndex Number representing the index of the item
|
||||
* in the button's menu that is currently selected.
|
||||
*/
|
||||
_setSelectedMenuItem: function (p_nIndex) {
|
||||
|
||||
var oMenu = this._menu,
|
||||
oMenuItem;
|
||||
|
||||
|
||||
if (Menu && oMenu && oMenu instanceof Menu) {
|
||||
|
||||
oMenuItem = oMenu.getItem(p_nIndex);
|
||||
|
||||
|
||||
if (oMenuItem && !oMenuItem.cfg.getProperty("selected")) {
|
||||
|
||||
oMenuItem.cfg.setProperty("selected", true);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
// Protected methods
|
||||
@@ -2176,98 +2119,100 @@ version: 2.6.0
|
||||
bReturnVal;
|
||||
|
||||
|
||||
switch (sType) {
|
||||
|
||||
case "radio":
|
||||
case "checkbox":
|
||||
switch (sType) {
|
||||
|
||||
case "radio":
|
||||
case "checkbox":
|
||||
|
||||
if (!this._hasDefaultTitle) {
|
||||
|
||||
|
||||
if (this.get("checked")) {
|
||||
|
||||
|
||||
sTitle = (sType == "radio") ?
|
||||
this.RADIO_CHECKED_TITLE :
|
||||
this.CHECKBOX_CHECKED_TITLE;
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
|
||||
sTitle = (sType == "radio") ?
|
||||
this.RADIO_DEFAULT_TITLE :
|
||||
this.CHECKBOX_DEFAULT_TITLE;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
this.set("title", sTitle);
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "submit":
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "submit":
|
||||
|
||||
if (p_oEvent.returnValue !== false) {
|
||||
|
||||
this.submitForm();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "reset":
|
||||
|
||||
oForm = this.getForm();
|
||||
|
||||
if (oForm) {
|
||||
|
||||
oForm.reset();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "menu":
|
||||
|
||||
sTitle = this._menu.cfg.getProperty("visible") ?
|
||||
this.MENUBUTTON_MENU_VISIBLE_TITLE :
|
||||
this.MENUBUTTON_DEFAULT_TITLE;
|
||||
|
||||
this.set("title", sTitle);
|
||||
|
||||
break;
|
||||
|
||||
case "split":
|
||||
|
||||
if (Event.getPageX(p_oEvent) > this._nOptionRegionX) {
|
||||
|
||||
bReturnVal = false;
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
this._hideMenu();
|
||||
|
||||
oSrcElement = this.get("srcelement");
|
||||
|
||||
if (oSrcElement && oSrcElement.type == "submit") {
|
||||
|
||||
this.submitForm();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sTitle = this._menu.cfg.getProperty("visible") ?
|
||||
this.SPLITBUTTON_OPTION_VISIBLE_TITLE :
|
||||
this.SPLITBUTTON_DEFAULT_TITLE;
|
||||
|
||||
this.set("title", sTitle);
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return bReturnVal;
|
||||
|
||||
this.submitForm();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "reset":
|
||||
|
||||
oForm = this.getForm();
|
||||
|
||||
if (oForm) {
|
||||
|
||||
oForm.reset();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "menu":
|
||||
|
||||
sTitle = this._menu.cfg.getProperty("visible") ?
|
||||
this.MENUBUTTON_MENU_VISIBLE_TITLE :
|
||||
this.MENUBUTTON_DEFAULT_TITLE;
|
||||
|
||||
this.set("title", sTitle);
|
||||
|
||||
break;
|
||||
|
||||
case "split":
|
||||
|
||||
if (this._nOptionRegionX > 0 &&
|
||||
(Event.getPageX(p_oEvent) > this._nOptionRegionX)) {
|
||||
|
||||
bReturnVal = false;
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
this._hideMenu();
|
||||
|
||||
oSrcElement = this.get("srcelement");
|
||||
|
||||
if (oSrcElement && oSrcElement.type == "submit" &&
|
||||
p_oEvent.returnValue !== false) {
|
||||
|
||||
this.submitForm();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sTitle = this._menu.cfg.getProperty("visible") ?
|
||||
this.SPLITBUTTON_OPTION_VISIBLE_TITLE :
|
||||
this.SPLITBUTTON_DEFAULT_TITLE;
|
||||
|
||||
this.set("title", sTitle);
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return bReturnVal;
|
||||
|
||||
},
|
||||
|
||||
@@ -2526,7 +2471,9 @@ version: 2.6.0
|
||||
|
||||
var oButtonElement = this.get("element"),
|
||||
oButtonParent = oButtonElement.parentNode,
|
||||
oMenuElement = this._menu.element;
|
||||
oMenu = this._menu,
|
||||
oMenuElement = oMenu.element,
|
||||
oSrcElement = oMenu.srcElement;
|
||||
|
||||
|
||||
if (oButtonParent != oMenuElement.parentNode) {
|
||||
@@ -2537,55 +2484,21 @@ version: 2.6.0
|
||||
|
||||
this._renderedMenu = true;
|
||||
|
||||
this.set("selectedMenuItem", this.get("selectedMenuItem"));
|
||||
// If the user has designated an <option> of the Menu's source
|
||||
// <select> element to be selected, sync the selectedIndex with
|
||||
// the "selectedMenuItem" Attribute.
|
||||
|
||||
if (oSrcElement &&
|
||||
oSrcElement.nodeName.toLowerCase() === "select" &&
|
||||
oSrcElement.value) {
|
||||
|
||||
this.set("selectedMenuItem",
|
||||
oMenu.getItem(oSrcElement.selectedIndex));
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* @method _onMenuItemSelected
|
||||
* @description "selectedchange" event handler for each item in the
|
||||
* button's menu.
|
||||
* @private
|
||||
* @param {String} p_sType String representing the name of the event
|
||||
* that was fired.
|
||||
* @param {Array} p_aArgs Array of arguments sent when the event
|
||||
* was fired.
|
||||
* @param {MenuItem} p_oItem Object representing the menu item that
|
||||
* subscribed to the event.
|
||||
*/
|
||||
_onMenuItemSelected: function (p_sType, p_aArgs, p_oItem) {
|
||||
|
||||
var bSelected = p_aArgs[0];
|
||||
|
||||
if (bSelected) {
|
||||
|
||||
this.set("selectedMenuItem", p_oItem);
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* @method _onMenuItemAdded
|
||||
* @description "itemadded" event handler for the button's menu.
|
||||
* @private
|
||||
* @param {String} p_sType String representing the name of the event
|
||||
* that was fired.
|
||||
* @param {Array} p_aArgs Array of arguments sent when the event
|
||||
* was fired.
|
||||
* @param {<a href="YAHOO.widget.MenuItem.html">
|
||||
* YAHOO.widget.MenuItem</a>} p_oItem Object representing the menu
|
||||
* item that subscribed to the event.
|
||||
*/
|
||||
_onMenuItemAdded: function (p_sType, p_aArgs, p_oItem) {
|
||||
|
||||
var oItem = p_aArgs[0];
|
||||
|
||||
oItem.cfg.subscribeToConfigEvent("selected", this._onMenuItemSelected, oItem, this);
|
||||
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
@@ -2619,7 +2532,29 @@ version: 2.6.0
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @method _onSelectedMenuItemChange
|
||||
* @description "selectedMenuItemChange" event handler for the Button's
|
||||
* "selectedMenuItem" attribute.
|
||||
* @param {Event} event Object representing the DOM event object
|
||||
* passed back by the event utility (YAHOO.util.Event).
|
||||
*/
|
||||
_onSelectedMenuItemChange: function (event) {
|
||||
|
||||
var oSelected = event.prevValue,
|
||||
oItem = event.newValue;
|
||||
|
||||
if (oSelected) {
|
||||
Dom.removeClass(oSelected.element, "yui-button-selectedmenuitem");
|
||||
}
|
||||
|
||||
if (oItem) {
|
||||
Dom.addClass(oItem.element, "yui-button-selectedmenuitem");
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
// Public methods
|
||||
@@ -3048,6 +2983,16 @@ version: 2.6.0
|
||||
this.on("mousedown", this._onMouseDown);
|
||||
this.on("mouseup", this._onMouseUp);
|
||||
this.on("click", this._onClick);
|
||||
|
||||
// Need to reset the value of the "onclick" Attribute so that any
|
||||
// handlers registered via the "onclick" Attribute are fired after
|
||||
// Button's default "_onClick" listener.
|
||||
|
||||
var fnOnClick = this.get("onclick");
|
||||
|
||||
this.set("onclick", null);
|
||||
this.set("onclick", fnOnClick);
|
||||
|
||||
this.on("dblclick", this._onDblClick);
|
||||
|
||||
if (oLabel) {
|
||||
@@ -3157,6 +3102,7 @@ version: 2.6.0
|
||||
* "radio," "menu," and "split."
|
||||
* @default "push"
|
||||
* @type String
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("type", {
|
||||
|
||||
@@ -3164,7 +3110,7 @@ version: 2.6.0
|
||||
validator: Lang.isString,
|
||||
writeOnce: true,
|
||||
method: this._setType
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -3312,6 +3258,7 @@ version: 2.6.0
|
||||
* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
||||
* level-one-html.html#ID-58190037">HTMLElement</a>|String
|
||||
* @default null
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("container", {
|
||||
|
||||
@@ -3329,6 +3276,7 @@ version: 2.6.0
|
||||
* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
||||
* level-one-html.html#ID-58190037">HTMLElement</a>|String
|
||||
* @default null
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("srcelement", {
|
||||
|
||||
@@ -3372,6 +3320,7 @@ version: 2.6.0
|
||||
* href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
|
||||
* one-html.html#ID-58190037">HTMLElement</a>|String|Array
|
||||
* @default null
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("menu", {
|
||||
|
||||
@@ -3405,6 +3354,7 @@ version: 2.6.0
|
||||
* attribute.</em>
|
||||
* @default true
|
||||
* @type Boolean
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("lazyloadmenu", {
|
||||
|
||||
@@ -3421,6 +3371,7 @@ version: 2.6.0
|
||||
* applied to the root element of the button's menu.
|
||||
* @type String
|
||||
* @default "yui-button-menu"
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("menuclassname", {
|
||||
|
||||
@@ -3491,8 +3442,7 @@ version: 2.6.0
|
||||
*/
|
||||
this.setAttributeConfig("selectedMenuItem", {
|
||||
|
||||
value: null,
|
||||
method: this._setSelectedMenuItem
|
||||
value: null
|
||||
|
||||
});
|
||||
|
||||
@@ -4469,6 +4419,7 @@ version: 2.6.0
|
||||
* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
||||
* level-one-html.html#ID-58190037">HTMLElement</a>|String
|
||||
* @default null
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("container", {
|
||||
|
||||
@@ -4856,4 +4807,4 @@ version: 2.6.0
|
||||
});
|
||||
|
||||
})();
|
||||
YAHOO.register("button", YAHOO.widget.Button, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("button", YAHOO.widget.Button, {version: "2.7.0", build: "1799"});
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/**
|
||||
* @module button
|
||||
* @description <p>The Button Control enables the creation of rich, graphical
|
||||
* buttons that function like traditional HTML form buttons. <em>Unlike</em>
|
||||
* tradition HTML form buttons, buttons created with the Button Control can have
|
||||
* traditional HTML form buttons, buttons created with the Button Control can have
|
||||
* a label that is different from its value. With the inclusion of the optional
|
||||
* <a href="module_menu.html">Menu Control</a>, the Button Control can also be
|
||||
* used to create menu buttons and split buttons, controls that are not
|
||||
@@ -1039,7 +1039,7 @@ version: 2.6.0
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @method _setMenu
|
||||
@@ -1060,15 +1060,9 @@ version: 2.6.0
|
||||
*/
|
||||
|
||||
bInstance = false,
|
||||
|
||||
|
||||
oMenu,
|
||||
oMenuElement,
|
||||
oSrcElement,
|
||||
aItems,
|
||||
nItems,
|
||||
oItem,
|
||||
i;
|
||||
oSrcElement;
|
||||
|
||||
|
||||
function onAppendTo() {
|
||||
@@ -1126,12 +1120,13 @@ version: 2.6.0
|
||||
|
||||
oMenu.keyDownEvent.subscribe(this._onMenuKeyDown, this, true);
|
||||
oMenu.subscribe("click", this._onMenuClick, this, true);
|
||||
oMenu.itemAddedEvent.subscribe(this._onMenuItemAdded, this, true);
|
||||
|
||||
this.on("selectedMenuItemChange", this._onSelectedMenuItemChange);
|
||||
|
||||
oSrcElement = oMenu.srcElement;
|
||||
|
||||
if (oSrcElement && oSrcElement.nodeName.toUpperCase() == "SELECT") {
|
||||
|
||||
|
||||
oSrcElement.style.display = "none";
|
||||
oSrcElement.parentNode.removeChild(oSrcElement);
|
||||
|
||||
@@ -1185,31 +1180,8 @@ version: 2.6.0
|
||||
if (p_oMenu && Menu && (p_oMenu instanceof Menu)) {
|
||||
|
||||
oMenu = p_oMenu;
|
||||
aItems = oMenu.getItems();
|
||||
nItems = aItems.length;
|
||||
bInstance = true;
|
||||
|
||||
|
||||
if (nItems > 0) {
|
||||
|
||||
i = nItems - 1;
|
||||
|
||||
do {
|
||||
|
||||
oItem = aItems[i];
|
||||
|
||||
if (oItem) {
|
||||
|
||||
oItem.cfg.subscribeToConfigEvent("selected",
|
||||
this._onMenuItemSelected, oItem, this);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
while (i--);
|
||||
|
||||
}
|
||||
|
||||
initMenu.call(this);
|
||||
|
||||
}
|
||||
@@ -1323,36 +1295,7 @@ version: 2.6.0
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* @method _setSelectedMenuItem
|
||||
* @description Sets the value of the button's
|
||||
* "selectedMenuItem" attribute.
|
||||
* @protected
|
||||
* @param {Number} p_nIndex Number representing the index of the item
|
||||
* in the button's menu that is currently selected.
|
||||
*/
|
||||
_setSelectedMenuItem: function (p_nIndex) {
|
||||
|
||||
var oMenu = this._menu,
|
||||
oMenuItem;
|
||||
|
||||
|
||||
if (Menu && oMenu && oMenu instanceof Menu) {
|
||||
|
||||
oMenuItem = oMenu.getItem(p_nIndex);
|
||||
|
||||
|
||||
if (oMenuItem && !oMenuItem.cfg.getProperty("selected")) {
|
||||
|
||||
oMenuItem.cfg.setProperty("selected", true);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
// Protected methods
|
||||
@@ -2155,98 +2098,100 @@ version: 2.6.0
|
||||
bReturnVal;
|
||||
|
||||
|
||||
switch (sType) {
|
||||
|
||||
case "radio":
|
||||
case "checkbox":
|
||||
switch (sType) {
|
||||
|
||||
case "radio":
|
||||
case "checkbox":
|
||||
|
||||
if (!this._hasDefaultTitle) {
|
||||
|
||||
|
||||
if (this.get("checked")) {
|
||||
|
||||
|
||||
sTitle = (sType == "radio") ?
|
||||
this.RADIO_CHECKED_TITLE :
|
||||
this.CHECKBOX_CHECKED_TITLE;
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
|
||||
sTitle = (sType == "radio") ?
|
||||
this.RADIO_DEFAULT_TITLE :
|
||||
this.CHECKBOX_DEFAULT_TITLE;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
this.set("title", sTitle);
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "submit":
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "submit":
|
||||
|
||||
if (p_oEvent.returnValue !== false) {
|
||||
|
||||
this.submitForm();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "reset":
|
||||
|
||||
oForm = this.getForm();
|
||||
|
||||
if (oForm) {
|
||||
|
||||
oForm.reset();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "menu":
|
||||
|
||||
sTitle = this._menu.cfg.getProperty("visible") ?
|
||||
this.MENUBUTTON_MENU_VISIBLE_TITLE :
|
||||
this.MENUBUTTON_DEFAULT_TITLE;
|
||||
|
||||
this.set("title", sTitle);
|
||||
|
||||
break;
|
||||
|
||||
case "split":
|
||||
|
||||
if (Event.getPageX(p_oEvent) > this._nOptionRegionX) {
|
||||
|
||||
bReturnVal = false;
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
this._hideMenu();
|
||||
|
||||
oSrcElement = this.get("srcelement");
|
||||
|
||||
if (oSrcElement && oSrcElement.type == "submit") {
|
||||
|
||||
this.submitForm();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sTitle = this._menu.cfg.getProperty("visible") ?
|
||||
this.SPLITBUTTON_OPTION_VISIBLE_TITLE :
|
||||
this.SPLITBUTTON_DEFAULT_TITLE;
|
||||
|
||||
this.set("title", sTitle);
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return bReturnVal;
|
||||
|
||||
this.submitForm();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "reset":
|
||||
|
||||
oForm = this.getForm();
|
||||
|
||||
if (oForm) {
|
||||
|
||||
oForm.reset();
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "menu":
|
||||
|
||||
sTitle = this._menu.cfg.getProperty("visible") ?
|
||||
this.MENUBUTTON_MENU_VISIBLE_TITLE :
|
||||
this.MENUBUTTON_DEFAULT_TITLE;
|
||||
|
||||
this.set("title", sTitle);
|
||||
|
||||
break;
|
||||
|
||||
case "split":
|
||||
|
||||
if (this._nOptionRegionX > 0 &&
|
||||
(Event.getPageX(p_oEvent) > this._nOptionRegionX)) {
|
||||
|
||||
bReturnVal = false;
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
this._hideMenu();
|
||||
|
||||
oSrcElement = this.get("srcelement");
|
||||
|
||||
if (oSrcElement && oSrcElement.type == "submit" &&
|
||||
p_oEvent.returnValue !== false) {
|
||||
|
||||
this.submitForm();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sTitle = this._menu.cfg.getProperty("visible") ?
|
||||
this.SPLITBUTTON_OPTION_VISIBLE_TITLE :
|
||||
this.SPLITBUTTON_DEFAULT_TITLE;
|
||||
|
||||
this.set("title", sTitle);
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return bReturnVal;
|
||||
|
||||
},
|
||||
|
||||
@@ -2505,7 +2450,9 @@ version: 2.6.0
|
||||
|
||||
var oButtonElement = this.get("element"),
|
||||
oButtonParent = oButtonElement.parentNode,
|
||||
oMenuElement = this._menu.element;
|
||||
oMenu = this._menu,
|
||||
oMenuElement = oMenu.element,
|
||||
oSrcElement = oMenu.srcElement;
|
||||
|
||||
|
||||
if (oButtonParent != oMenuElement.parentNode) {
|
||||
@@ -2516,55 +2463,21 @@ version: 2.6.0
|
||||
|
||||
this._renderedMenu = true;
|
||||
|
||||
this.set("selectedMenuItem", this.get("selectedMenuItem"));
|
||||
// If the user has designated an <option> of the Menu's source
|
||||
// <select> element to be selected, sync the selectedIndex with
|
||||
// the "selectedMenuItem" Attribute.
|
||||
|
||||
if (oSrcElement &&
|
||||
oSrcElement.nodeName.toLowerCase() === "select" &&
|
||||
oSrcElement.value) {
|
||||
|
||||
this.set("selectedMenuItem",
|
||||
oMenu.getItem(oSrcElement.selectedIndex));
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* @method _onMenuItemSelected
|
||||
* @description "selectedchange" event handler for each item in the
|
||||
* button's menu.
|
||||
* @private
|
||||
* @param {String} p_sType String representing the name of the event
|
||||
* that was fired.
|
||||
* @param {Array} p_aArgs Array of arguments sent when the event
|
||||
* was fired.
|
||||
* @param {MenuItem} p_oItem Object representing the menu item that
|
||||
* subscribed to the event.
|
||||
*/
|
||||
_onMenuItemSelected: function (p_sType, p_aArgs, p_oItem) {
|
||||
|
||||
var bSelected = p_aArgs[0];
|
||||
|
||||
if (bSelected) {
|
||||
|
||||
this.set("selectedMenuItem", p_oItem);
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* @method _onMenuItemAdded
|
||||
* @description "itemadded" event handler for the button's menu.
|
||||
* @private
|
||||
* @param {String} p_sType String representing the name of the event
|
||||
* that was fired.
|
||||
* @param {Array} p_aArgs Array of arguments sent when the event
|
||||
* was fired.
|
||||
* @param {<a href="YAHOO.widget.MenuItem.html">
|
||||
* YAHOO.widget.MenuItem</a>} p_oItem Object representing the menu
|
||||
* item that subscribed to the event.
|
||||
*/
|
||||
_onMenuItemAdded: function (p_sType, p_aArgs, p_oItem) {
|
||||
|
||||
var oItem = p_aArgs[0];
|
||||
|
||||
oItem.cfg.subscribeToConfigEvent("selected", this._onMenuItemSelected, oItem, this);
|
||||
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
@@ -2598,7 +2511,29 @@ version: 2.6.0
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @method _onSelectedMenuItemChange
|
||||
* @description "selectedMenuItemChange" event handler for the Button's
|
||||
* "selectedMenuItem" attribute.
|
||||
* @param {Event} event Object representing the DOM event object
|
||||
* passed back by the event utility (YAHOO.util.Event).
|
||||
*/
|
||||
_onSelectedMenuItemChange: function (event) {
|
||||
|
||||
var oSelected = event.prevValue,
|
||||
oItem = event.newValue;
|
||||
|
||||
if (oSelected) {
|
||||
Dom.removeClass(oSelected.element, "yui-button-selectedmenuitem");
|
||||
}
|
||||
|
||||
if (oItem) {
|
||||
Dom.addClass(oItem.element, "yui-button-selectedmenuitem");
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
// Public methods
|
||||
@@ -3025,6 +2960,16 @@ version: 2.6.0
|
||||
this.on("mousedown", this._onMouseDown);
|
||||
this.on("mouseup", this._onMouseUp);
|
||||
this.on("click", this._onClick);
|
||||
|
||||
// Need to reset the value of the "onclick" Attribute so that any
|
||||
// handlers registered via the "onclick" Attribute are fired after
|
||||
// Button's default "_onClick" listener.
|
||||
|
||||
var fnOnClick = this.get("onclick");
|
||||
|
||||
this.set("onclick", null);
|
||||
this.set("onclick", fnOnClick);
|
||||
|
||||
this.on("dblclick", this._onDblClick);
|
||||
|
||||
if (oLabel) {
|
||||
@@ -3133,6 +3078,7 @@ version: 2.6.0
|
||||
* "radio," "menu," and "split."
|
||||
* @default "push"
|
||||
* @type String
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("type", {
|
||||
|
||||
@@ -3140,7 +3086,7 @@ version: 2.6.0
|
||||
validator: Lang.isString,
|
||||
writeOnce: true,
|
||||
method: this._setType
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -3288,6 +3234,7 @@ version: 2.6.0
|
||||
* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
||||
* level-one-html.html#ID-58190037">HTMLElement</a>|String
|
||||
* @default null
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("container", {
|
||||
|
||||
@@ -3305,6 +3252,7 @@ version: 2.6.0
|
||||
* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
||||
* level-one-html.html#ID-58190037">HTMLElement</a>|String
|
||||
* @default null
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("srcelement", {
|
||||
|
||||
@@ -3348,6 +3296,7 @@ version: 2.6.0
|
||||
* href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
|
||||
* one-html.html#ID-58190037">HTMLElement</a>|String|Array
|
||||
* @default null
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("menu", {
|
||||
|
||||
@@ -3381,6 +3330,7 @@ version: 2.6.0
|
||||
* attribute.</em>
|
||||
* @default true
|
||||
* @type Boolean
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("lazyloadmenu", {
|
||||
|
||||
@@ -3397,6 +3347,7 @@ version: 2.6.0
|
||||
* applied to the root element of the button's menu.
|
||||
* @type String
|
||||
* @default "yui-button-menu"
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("menuclassname", {
|
||||
|
||||
@@ -3467,8 +3418,7 @@ version: 2.6.0
|
||||
*/
|
||||
this.setAttributeConfig("selectedMenuItem", {
|
||||
|
||||
value: null,
|
||||
method: this._setSelectedMenuItem
|
||||
value: null
|
||||
|
||||
});
|
||||
|
||||
@@ -4414,6 +4364,7 @@ version: 2.6.0
|
||||
* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
||||
* level-one-html.html#ID-58190037">HTMLElement</a>|String
|
||||
* @default null
|
||||
* @writeonce
|
||||
*/
|
||||
this.setAttributeConfig("container", {
|
||||
|
||||
@@ -4795,4 +4746,4 @@ version: 2.6.0
|
||||
});
|
||||
|
||||
})();
|
||||
YAHOO.register("button", YAHOO.widget.Button, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("button", YAHOO.widget.Button, {version: "2.7.0", build: "1799"});
|
||||
|
||||
@@ -1,421 +0,0 @@
|
||||
Calendar Release Notes
|
||||
|
||||
*** version 2.6.0 ***
|
||||
|
||||
+ Fixed incorrect cell index parsing from cell id attribute, when
|
||||
Calendar id contained "cell".
|
||||
|
||||
+ Added text to previous month, next month and close icons, to
|
||||
enhance accessibility for screen-readers.
|
||||
|
||||
+ Fixed issue with bubbled previous month, next month click events
|
||||
missing target information in certain browsers (due to replaced HTML),
|
||||
by delaying click event handling through a setTimeout.
|
||||
|
||||
+ Added destroy method to Calendar/CalendarGroup
|
||||
|
||||
+ Fixed incorrect clear method behavior for CalendarGroup where all
|
||||
pages would be set to the same month.
|
||||
|
||||
+ Refactored code to reduce minified Kweight.
|
||||
|
||||
*** version 2.5.2 ***
|
||||
|
||||
+ CalendarGroup toDate method no longer throws javascript exception
|
||||
|
||||
*** version 2.5.1 ***
|
||||
|
||||
+ Fixed bug with mindate, maxdate being applied incorrectly if
|
||||
set to a day on which time change took place (DST, E.U Summertime)
|
||||
and the day is not the first day of the week.
|
||||
|
||||
+ Fixed DateMath.getWeekNumber implementation to return correct
|
||||
week numbers. The older implementation would return Week 0 for
|
||||
certain weeks (e.g. the week starting Sun Dec 28th 2008)
|
||||
|
||||
To suppor the fix, DateMath.getWeekNumber has a signature
|
||||
change in 2.5.1 and can now support U.S Week calculations based
|
||||
on Jan 1st identifying the first week of the year, as well as
|
||||
ISO8601 week calculations based on Jan 4th identifying the first
|
||||
week of the year
|
||||
|
||||
The arguments which the method expected prior to 2.5.1 were not
|
||||
being used in calculating the week number. The new signature is:
|
||||
|
||||
DateMath.getWeekNumber(Date dt, Number firstDayOfWeek, Number janDate)
|
||||
|
||||
Where:
|
||||
|
||||
dt is the date for which week number is required
|
||||
|
||||
firstDayOfWeek is the day index identifying the first
|
||||
day of the week. Default is 0 (Sunday).
|
||||
|
||||
janDate is the date in the first week of January, which
|
||||
identifies the first week of the year.
|
||||
Default is YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE (1)
|
||||
|
||||
NOTE: Calendar instances themselves do not currently expose a
|
||||
configuration property to change the week numbering system
|
||||
used. A "janDate" value is not passed to the getWeekNumber
|
||||
method, when used by Calendar, resulting in it using the default value.
|
||||
|
||||
Therefore, ISO8601 week numbering can be generated for Calendars
|
||||
by setting the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE
|
||||
to 4.
|
||||
|
||||
*** version 2.5.0 ***
|
||||
|
||||
+ Prevent default event handling in CalendarNavigator enter key
|
||||
listener, to prevent automatic form submission when using Calendar
|
||||
inside a form.
|
||||
|
||||
+ Added workaround to DateMath.add and subtract for Safari 2 (webkit)
|
||||
bug in Date.setDate(n) which doesn't handle value of n less than -128
|
||||
or greater than 127 correctly.
|
||||
|
||||
See: http://brianary.blogspot.com/2006/03/safari-date-bug.html
|
||||
|
||||
+ Added border, padding and margin rules to Calendar Sam Skin to
|
||||
protect Sam Skin's look and feel when Calendar is used with
|
||||
YUI base.css
|
||||
|
||||
*** version 2.4.0 ***
|
||||
|
||||
+ Added CalendarNavigator (year selector) feature to allow the user to
|
||||
jump to a year/month directly without having to scroll through months
|
||||
sequentially.
|
||||
|
||||
The feature is enabled/configured using the "navigator" configuration
|
||||
property.
|
||||
|
||||
+ Added Custom Events:
|
||||
|
||||
showNav/beforeShowNav
|
||||
hideNav/beforeHideNav,
|
||||
renderNav/beforeRenderNav
|
||||
|
||||
To Calendar/CalendarGroup, in support of the CalendarNavigator
|
||||
functionality.
|
||||
|
||||
+ Added Custom Events:
|
||||
|
||||
show/beforeShow
|
||||
hide/beforeHide
|
||||
|
||||
To Calendar and CalendarGroup. Returning false from a
|
||||
beforeShow/beforeHide listener can be used to prevent the Calendar
|
||||
from being shown/hidden respectively.
|
||||
|
||||
+ Added Public Methods:
|
||||
|
||||
getCellIndex(date) [ Calendar ]
|
||||
getCalendarPage(date) [ CalendarGroup ]
|
||||
toDate(dateArray) [ Calendar/CalendarGroup ]
|
||||
removeRenderers() [ Calendar/CalendarGroup ]
|
||||
|
||||
+ The Calendar/CalendarGroup constructor is now more flexible:
|
||||
|
||||
* It no longer requires an "id" argument.
|
||||
|
||||
In it's simplest form, a Calendar/CalendarGroup can be
|
||||
constructed by simply providing a container id or reference.
|
||||
|
||||
var cal = new YAHOO.widget.Calendar("container");
|
||||
-or-
|
||||
var containerDiv = YAHOO.util.Dom.get("container");
|
||||
var cal = new YAHOO.widget.Calendar(containerDiv);
|
||||
|
||||
An id for the Calendar does not need to be provided, and will be
|
||||
generated from the container id by appending an "_t" suffix to the
|
||||
container id if only the container is provided.
|
||||
|
||||
* The container argument can be either a string, representing the
|
||||
id of the container, or an HTMLElement referring to the container
|
||||
element itself, as suggested in the example above.
|
||||
|
||||
* If an HTMLElement is provided for the container argument and the
|
||||
element does not have an id, one will be generated for it using
|
||||
YAHOO.util.Dom.generateId().
|
||||
|
||||
* The older form of Calendar/CalendarGroup signature, expecting
|
||||
both an id and containerId is still supported and works as it did
|
||||
prior to 2.4.0.
|
||||
|
||||
+ Fixed performance issue, where the same custom renderer was being
|
||||
applied multiple times to the same cell.
|
||||
|
||||
+ Added getDate(year, month, date) factory method to the DateMath utility,
|
||||
which can be used to create JavaScript Date instances for years less
|
||||
than 100.
|
||||
|
||||
The default Date(year, month, date) constructor implementations across
|
||||
browsers, assume that if year < 100, the caller is referring to the
|
||||
nineteen hundreds, and the year is set to 19xx instead of xx (as with
|
||||
the deprecated setYear method). However Date.setFullYear(xx) can
|
||||
be used to set dates below 100. The above factory method provides a
|
||||
construction mechanism consistent with setFullYear.
|
||||
|
||||
+ Changed Calendar/CalendarGroup/DateMath code to use the DateMath.getDate
|
||||
method, so that 2 digit years are not assumed to be in the 1900's.
|
||||
|
||||
NOTE: Calendar's API already expects 4 digit date strings when referring
|
||||
to years after 999.
|
||||
|
||||
*** version 2.3.1 ***
|
||||
|
||||
+ Changed Calendar/CalendarGroup to render an empty title bar element
|
||||
when "close" is set to true, but "title" has not been set, to allow Sam
|
||||
Skin to render a title bar correctly.
|
||||
|
||||
*** version 2.3.0 ***
|
||||
|
||||
+ Added checks to select, selectCell, deselect and deselectCell methods
|
||||
to ensure the Calendar/Calendar group was not set to an invalid state
|
||||
by programmatically selecting unselectable dates or cells.
|
||||
|
||||
+ Added new locale configuration properties for the Month/Year label
|
||||
used in the Calendar header (MY_LABEL_MONTH_POSITION,
|
||||
MY_LABEL_YEAR_POSITION, MY_LABEL_YEAR_SUFFIX, MY_LABEL_MONTH_SUFFIX).
|
||||
Japan is an example locale, where customization of the Month/Year
|
||||
label is required.
|
||||
|
||||
+ Changed "first", "last" class names to "first-of-type", "last-of-type",
|
||||
to avoid collision with YUI Grids' use of the "first" class name.
|
||||
|
||||
+ Added public isDateOOB method, to check if a given date is outside of
|
||||
the minimum/maximum configuration dates of the Calendar.
|
||||
|
||||
+ Deprecated YAHOO.widget.Calendar.browser, refactored to use
|
||||
YAHOO.env.ua instead.
|
||||
|
||||
+ Removed overflow:hidden from default Calendar/CalendarGroup container
|
||||
for non-IE6 browsers to fix clipping issue with IE7 when CalendarGroup
|
||||
was inside a box with a specific width. overflow:hidden is still
|
||||
required for IE6 with an iframe shim.
|
||||
|
||||
+ Added Opera container width calculation fix to CalendarGroup.show
|
||||
method, to fix incorrect wrapping when using a CalendarGroup which is
|
||||
initially rendered hidden (display:none). Previously this fix was
|
||||
only applied on render.
|
||||
|
||||
*** version 2.2.2 ***
|
||||
|
||||
+ Fixed problem with selected dates being shared across instances, when
|
||||
more than one Calendar/CalendarGroup was on the page
|
||||
|
||||
*** version 2.2.1 ***
|
||||
|
||||
+ Fixed problem with selectCell adding duplicate selected date entries
|
||||
for dates which were already selected
|
||||
|
||||
+ Fixed problem with CalendarGroup iframe shim not covering the
|
||||
CalendarGroup title area
|
||||
|
||||
+ Removed javascript:void(null) from close button and cell links which
|
||||
was interrupting form submission and firing onbeforeunload in IE
|
||||
|
||||
+ Fixed problem with CalendarGroup getSelectedDates returning invalid
|
||||
results, when used in conjunction with the "selected" Config property
|
||||
(either passed in the constructor config argument or set seperately
|
||||
after construction)
|
||||
|
||||
+ Refactored Calendar and CalendarGroup to improve performance,
|
||||
especially when working with a large number of instances in
|
||||
IE6
|
||||
|
||||
*** version 2.2.0 ***
|
||||
|
||||
+ Image customization can now be done through CSS. Images for Close,
|
||||
Left and Right Arrows are now pulled in using CSS defined in
|
||||
calendar.css and by default use relative paths to the images in
|
||||
the same directory as calendar.css.
|
||||
|
||||
+ Deprecated Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT
|
||||
configuration properties. Customizations based on older releases
|
||||
which set these properties will still function as expected.
|
||||
|
||||
+ Deprecated CalendarGroup.CSS_2UPCLOSE. Calendar's Style.CSS_CLOSE
|
||||
property now represents the new default CSS class (calclose) for
|
||||
the close button. CSS_2UPCLOSE is still applied along with
|
||||
CSS_CLOSE to the new markup for the close button to support existing
|
||||
customizations of the CSS_2UPCLOSE CSS class (close-icon)
|
||||
|
||||
+ Fixed problem with Safari setting Calendar pages to incorrect dates
|
||||
if the pages spanned a year boundary in CalendarGroups with 3 or more
|
||||
pages, due to a bug in Safari's implementation of Date setMonth
|
||||
|
||||
+ Fixed problem with CalendarGroup setMonth rendering Calendar pages
|
||||
with incorrect dates in all browsers if current pages spanned year
|
||||
boundary
|
||||
|
||||
+ Fixed incorrect CalendarGroup logging statement in calendar-debug.js
|
||||
|
||||
+ Fixed domEventMap support for Safari versions prior to 2.0.2,
|
||||
caused by hasOwnProperty not being supported
|
||||
|
||||
+ Removed unused private property : _pageDate from Calendar class
|
||||
|
||||
*** version 0.12.2 ***
|
||||
|
||||
+ Corrected documentation for clearTime function to reflect the
|
||||
change from midnight to noon
|
||||
|
||||
*** version 0.12.1 ***
|
||||
|
||||
+ Calendar and CalendarGroup now automatically parse the argument
|
||||
passed to setMonth and setYear into an integer, eliminating
|
||||
potential concatenation bugs.
|
||||
|
||||
*** version 0.12 ***
|
||||
|
||||
+ New documentation format implemented
|
||||
|
||||
+ Calendar2up and Calendar_Core are now deprecated. Now, Calendar alone
|
||||
represents the single Calendar instance, and CalendarGroup represents
|
||||
an n-up instance, defaulting to 2up
|
||||
|
||||
+ Added semantic style classes to Calendar elements to allow for
|
||||
custom styling solely using CSS.
|
||||
|
||||
+ Remapped all configuration properties to use the Config object
|
||||
(familiar to those who use the Container collection of controls).
|
||||
Property names are the same as their previous counterparts, but
|
||||
wrapped into Calendar.cfg, allowing for runtime reconfiguration of
|
||||
most properties
|
||||
|
||||
+ Added "title" property for setting the Calendar title
|
||||
|
||||
+ Added "close" property for enabling and disabling the close icon
|
||||
|
||||
+ Added "iframe" property for enabling an iframe shim in Internet
|
||||
Explorer 6 and below to fix the select bleed-through bug
|
||||
|
||||
+ pageDate moved to property: "pagedate"
|
||||
|
||||
+ selectedDates moved to property: "selected"
|
||||
|
||||
+ minDate moved to property : "mindate", which accepts a JavaScript
|
||||
Date object like its predecessor, but also supports string dates
|
||||
|
||||
+ maxDate moved to property : "maxdate", which accepts a JavaScript
|
||||
Date object like its predecessor, but also supports string dates
|
||||
|
||||
+ Moved style declarations to initStyles function
|
||||
|
||||
+ Optimized event handling in doSelectCell/doCellMouseOver/
|
||||
doCellMouseOut by only attaching the listener to the outer
|
||||
Calendar container, and only reacting to events on cells with
|
||||
the "selectable" CSS class.
|
||||
|
||||
+ Added domEventMap field for applying DOM event listeners to cells
|
||||
containing specific class and tag combinations.
|
||||
|
||||
+ Moved all cell DOM event attachment to applyListeners function
|
||||
|
||||
+ Added getDateByCellId / getDateFieldsByCellId helper functions
|
||||
|
||||
+ Corrected DateMath.getWeekNumber to comply with ISO week number
|
||||
handling
|
||||
|
||||
+ Separated renderCellDefault style portions into styleCellDefault
|
||||
function for easy extension
|
||||
|
||||
+ Deprecated onBeforeSelect. Created beforeSelectEvent which
|
||||
automatically subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onSelect. Created selectEvent, which automatically
|
||||
subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onBeforeDeselect. Created beforeSelectEvent which
|
||||
automatically subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onDeselect. Created beforeDeselectEvent, which
|
||||
automatically subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onChangePage. Created changePageEvent, which automatically
|
||||
subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onRender. Created renderEvent, which automatically
|
||||
subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onReset. Created resetEvent, which automatically
|
||||
subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onClear. Created clearEvent, which automatically
|
||||
subscribes to its deprecated predecessor.
|
||||
|
||||
+ Corrected setMonth documentation to refer to 0-11 indexed months.
|
||||
|
||||
+ Added show and hide methods to Calendar for setting the Calendar's
|
||||
display property.
|
||||
|
||||
+ Optimized internal render classes to use innerHTML and string buffers
|
||||
|
||||
+ Removed wireCustomEvents function
|
||||
|
||||
+ Removed wireDefaultEvents function
|
||||
|
||||
+ Removed doNextMonth / doPreviousMonth
|
||||
|
||||
+ Removed all buildShell (header, body, footer) functions, since
|
||||
the Calendar shell is now built dynamically on each render
|
||||
|
||||
+ Wired all CalendarGroup events and configuration properties to
|
||||
be properly delegated to Calendar
|
||||
|
||||
+ Augmented CalendarGroup with all built-in renderers, label functions,
|
||||
hide, show, and initStyles, creating API transparency between Calendar
|
||||
and CalendarGroup.
|
||||
|
||||
+ Made all tagName, createElement, and entity references XHTML compliant
|
||||
|
||||
+ Fixed Daylight Saving Time bug for Brazilian time zone
|
||||
|
||||
*** version 0.11.3 ***
|
||||
|
||||
+ Calendar_Core: Added arguments for selected/deselected dates to
|
||||
onSelect/onDeselect
|
||||
|
||||
+ CalendarGroup: Fixed bug where selected dates passed to constructor
|
||||
were not represented in selectedDates
|
||||
|
||||
+ Calendar2up: Now displays correctly in Opera 9
|
||||
|
||||
*** version 0.11.0 ***
|
||||
|
||||
+ DateMath: DateMath.add now properly adds weeks
|
||||
|
||||
+ DateMath: between() function added
|
||||
|
||||
+ DateMath: getWeekNumber() fixed to take starting day of week into
|
||||
account
|
||||
|
||||
+ All references to Calendar's built in CSS class handlers are
|
||||
removed, replaced with calls to Dom utility (addClass, removeClass)
|
||||
|
||||
+ Several CSS class constants now have clearer names
|
||||
|
||||
+ All CSS classes are now properly namespaced to avoid CSS conflicts
|
||||
|
||||
+ Fixed table:hover bug in CSS
|
||||
|
||||
+ Calendar no longer requires the container ID and variable name to
|
||||
match in order for month navigation to function properly
|
||||
|
||||
+ Calendar month navigation arrows are now represented as
|
||||
background images
|
||||
|
||||
*** version 0.10.0 ***
|
||||
|
||||
+ Major performance improvements from attaching DOM events to
|
||||
associated table cells only once, when the Calendar shell is built
|
||||
|
||||
+ DOM events for mouseover/mouseout are now fired for all browsers
|
||||
(not just Internet Explorer)
|
||||
|
||||
+ Reset functionality bug fixed for 2-up Calendar view
|
||||
|
||||
*** version 0.9.0 ***
|
||||
|
||||
* Initial release
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/**
|
||||
* CORE
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-calcontainer {
|
||||
position:relative;
|
||||
|
||||
|
Before Width: | Height: | Size: 457 B After Width: | Height: | Size: 497 B |
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/**
|
||||
* SAM
|
||||
@@ -259,7 +259,7 @@ version: 2.6.0
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav-mask {
|
||||
background-color:#000;
|
||||
opacity:0.25;
|
||||
*filter:alpha(opacity=25); /* IE */
|
||||
filter:alpha(opacity=25); /* IE */
|
||||
}
|
||||
|
||||
/* NAVIGATOR BOUNDING BOX */
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
(function () {
|
||||
|
||||
@@ -518,9 +518,14 @@ version: 2.6.0
|
||||
key = queueItem[0];
|
||||
value = queueItem[1];
|
||||
property = this.config[key];
|
||||
|
||||
|
||||
property.value = value;
|
||||
|
||||
|
||||
// Clear out queue entry, to avoid it being
|
||||
// re-added to the queue by any queueProperty/supercedes
|
||||
// calls which are invoked during fireEvent
|
||||
this.eventQueue[i] = null;
|
||||
|
||||
this.fireEvent(key,value);
|
||||
}
|
||||
}
|
||||
@@ -690,7 +695,6 @@ version: 2.6.0
|
||||
YAHOO.lang.augmentProto(Config, YAHOO.util.EventProvider);
|
||||
|
||||
}());
|
||||
|
||||
/**
|
||||
* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
|
||||
* used for adding, subtracting, and comparing dates.
|
||||
@@ -1723,26 +1727,26 @@ Calendar.prototype = {
|
||||
cal = this; // To help with minification
|
||||
|
||||
/**
|
||||
* Fired before a selection is made
|
||||
* Fired before a date selection is made
|
||||
* @event beforeSelectEvent
|
||||
*/
|
||||
cal.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT);
|
||||
|
||||
/**
|
||||
* Fired when a selection is made
|
||||
* Fired when a date selection is made
|
||||
* @event selectEvent
|
||||
* @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
|
||||
*/
|
||||
cal.selectEvent = new CE(defEvents.SELECT);
|
||||
|
||||
|
||||
/**
|
||||
* Fired before a selection is made
|
||||
* Fired before a date or set of dates is deselected
|
||||
* @event beforeDeselectEvent
|
||||
*/
|
||||
cal.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT);
|
||||
|
||||
|
||||
/**
|
||||
* Fired when a selection is made
|
||||
* Fired when a date or set of dates is deselected
|
||||
* @event deselectEvent
|
||||
* @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
|
||||
*/
|
||||
@@ -3874,19 +3878,19 @@ Calendar.prototype = {
|
||||
}
|
||||
selected.splice(cellDateIndex, 1);
|
||||
}
|
||||
|
||||
|
||||
if (this.parent) {
|
||||
this.parent.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
|
||||
} else {
|
||||
this.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
|
||||
}
|
||||
|
||||
this.deselectEvent.fire(selectDate);
|
||||
|
||||
this.deselectEvent.fire([selectDate]);
|
||||
}
|
||||
|
||||
|
||||
return this.getSelectedDates();
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Deselects all dates on the current calendar.
|
||||
* @method deselectAll
|
||||
@@ -5059,33 +5063,33 @@ CalendarGroup.prototype = {
|
||||
cal[this.type + strEvent].unsubscribe(fn, obj);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
var defEvents = Calendar._EVENT_TYPES;
|
||||
|
||||
|
||||
/**
|
||||
* Fired before a selection is made
|
||||
* Fired before a date selection is made
|
||||
* @event beforeSelectEvent
|
||||
*/
|
||||
me.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT);
|
||||
me.beforeSelectEvent.subscribe = sub; me.beforeSelectEvent.unsubscribe = unsub;
|
||||
|
||||
|
||||
/**
|
||||
* Fired when a selection is made
|
||||
* Fired when a date selection is made
|
||||
* @event selectEvent
|
||||
* @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
|
||||
*/
|
||||
me.selectEvent = new CE(defEvents.SELECT);
|
||||
me.selectEvent.subscribe = sub; me.selectEvent.unsubscribe = unsub;
|
||||
|
||||
|
||||
/**
|
||||
* Fired before a selection is made
|
||||
* Fired before a date or set of dates is deselected
|
||||
* @event beforeDeselectEvent
|
||||
*/
|
||||
me.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT);
|
||||
me.beforeDeselectEvent.subscribe = sub; me.beforeDeselectEvent.unsubscribe = unsub;
|
||||
|
||||
|
||||
/**
|
||||
* Fired when a selection is made
|
||||
* Fired when a date or set of dates has been deselected
|
||||
* @event deselectEvent
|
||||
* @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
|
||||
*/
|
||||
@@ -5216,6 +5220,8 @@ CalendarGroup.prototype = {
|
||||
var pageCount = args[0],
|
||||
cfgPageDate = DEF_CFG.PAGEDATE.key,
|
||||
sep = "_",
|
||||
caldate,
|
||||
firstPageDate = null,
|
||||
groupCalClass = "groupcal",
|
||||
firstClass = "first-of-type",
|
||||
lastClass = "last-of-type";
|
||||
@@ -5229,15 +5235,19 @@ CalendarGroup.prototype = {
|
||||
childConfig.title = false;
|
||||
childConfig.navigator = null;
|
||||
|
||||
if (p > 0) {
|
||||
caldate = new Date(firstPageDate);
|
||||
this._setMonthOnDate(caldate, caldate.getMonth() + p);
|
||||
childConfig.pageDate = caldate;
|
||||
}
|
||||
|
||||
var cal = this.constructChild(calId, calContainerId, childConfig);
|
||||
var caldate = cal.cfg.getProperty(cfgPageDate);
|
||||
this._setMonthOnDate(caldate, caldate.getMonth() + p);
|
||||
cal.cfg.setProperty(cfgPageDate, caldate);
|
||||
|
||||
Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE);
|
||||
Dom.addClass(cal.oDomContainer, groupCalClass);
|
||||
|
||||
if (p===0) {
|
||||
firstPageDate = cal.cfg.getProperty(cfgPageDate);
|
||||
Dom.addClass(cal.oDomContainer, firstClass);
|
||||
}
|
||||
|
||||
@@ -5332,7 +5342,7 @@ CalendarGroup.prototype = {
|
||||
*/
|
||||
callChildFunction : function(fnName, args) {
|
||||
var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
|
||||
|
||||
|
||||
for (var p=0;p<pageCount;++p) {
|
||||
var page = this.pages[p];
|
||||
if (page[fnName]) {
|
||||
@@ -5493,7 +5503,7 @@ CalendarGroup.prototype = {
|
||||
}
|
||||
return this.getSelectedDates();
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Deselects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
|
||||
* deselectCell will deselect the cell at the specified index on each displayed Calendar page.
|
||||
@@ -5509,7 +5519,7 @@ CalendarGroup.prototype = {
|
||||
}
|
||||
return this.getSelectedDates();
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Resets the calendar widget to the originally selected month and year, and
|
||||
* sets the calendar to the initial selection(s).
|
||||
@@ -6305,12 +6315,12 @@ YAHOO.widget.CalendarNavigator.prototype = {
|
||||
this._doc = calBox.ownerDocument;
|
||||
|
||||
/**
|
||||
* Private flag, to identify IE6/IE7 Quirks
|
||||
* Private flag, to identify IE Quirks
|
||||
* @private
|
||||
* @property __isIEQuirks
|
||||
*/
|
||||
var ie = YAHOO.env.ua.ie;
|
||||
this.__isIEQuirks = (ie && ((ie <= 6) || (ie === 7 && this._doc.compatMode == "BackCompat")));
|
||||
this.__isIEQuirks = (ie && ((ie <= 6) || (this._doc.compatMode == "BackCompat")));
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -6508,7 +6518,7 @@ YAHOO.widget.CalendarNavigator.prototype = {
|
||||
|
||||
/**
|
||||
* Used to set the width/height of the mask in pixels to match the Calendar Container.
|
||||
* Currently only used for IE6 and IE7 quirks mode. The other A-Grade browser are handled using CSS (width/height 100%).
|
||||
* Currently only used for IE6 or IE in quirks mode. The other A-Grade browser are handled using CSS (width/height 100%).
|
||||
* <p>
|
||||
* The method is also registered as an HTMLElement resize listener on the Calendars container element.
|
||||
* </p>
|
||||
@@ -7165,4 +7175,4 @@ YAHOO.widget.CalendarNavigator.prototype = {
|
||||
|
||||
};
|
||||
|
||||
YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.7.0", build: "1799"});
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
(function () {
|
||||
|
||||
@@ -512,9 +512,14 @@ version: 2.6.0
|
||||
key = queueItem[0];
|
||||
value = queueItem[1];
|
||||
property = this.config[key];
|
||||
|
||||
|
||||
property.value = value;
|
||||
|
||||
|
||||
// Clear out queue entry, to avoid it being
|
||||
// re-added to the queue by any queueProperty/supercedes
|
||||
// calls which are invoked during fireEvent
|
||||
this.eventQueue[i] = null;
|
||||
|
||||
this.fireEvent(key,value);
|
||||
}
|
||||
}
|
||||
@@ -684,7 +689,6 @@ version: 2.6.0
|
||||
YAHOO.lang.augmentProto(Config, YAHOO.util.EventProvider);
|
||||
|
||||
}());
|
||||
|
||||
/**
|
||||
* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
|
||||
* used for adding, subtracting, and comparing dates.
|
||||
@@ -1714,26 +1718,26 @@ Calendar.prototype = {
|
||||
cal = this; // To help with minification
|
||||
|
||||
/**
|
||||
* Fired before a selection is made
|
||||
* Fired before a date selection is made
|
||||
* @event beforeSelectEvent
|
||||
*/
|
||||
cal.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT);
|
||||
|
||||
/**
|
||||
* Fired when a selection is made
|
||||
* Fired when a date selection is made
|
||||
* @event selectEvent
|
||||
* @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
|
||||
*/
|
||||
cal.selectEvent = new CE(defEvents.SELECT);
|
||||
|
||||
|
||||
/**
|
||||
* Fired before a selection is made
|
||||
* Fired before a date or set of dates is deselected
|
||||
* @event beforeDeselectEvent
|
||||
*/
|
||||
cal.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT);
|
||||
|
||||
|
||||
/**
|
||||
* Fired when a selection is made
|
||||
* Fired when a date or set of dates is deselected
|
||||
* @event deselectEvent
|
||||
* @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
|
||||
*/
|
||||
@@ -3847,19 +3851,19 @@ Calendar.prototype = {
|
||||
}
|
||||
selected.splice(cellDateIndex, 1);
|
||||
}
|
||||
|
||||
|
||||
if (this.parent) {
|
||||
this.parent.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
|
||||
} else {
|
||||
this.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
|
||||
}
|
||||
|
||||
this.deselectEvent.fire(selectDate);
|
||||
|
||||
this.deselectEvent.fire([selectDate]);
|
||||
}
|
||||
|
||||
|
||||
return this.getSelectedDates();
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Deselects all dates on the current calendar.
|
||||
* @method deselectAll
|
||||
@@ -5029,33 +5033,33 @@ CalendarGroup.prototype = {
|
||||
cal[this.type + strEvent].unsubscribe(fn, obj);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
var defEvents = Calendar._EVENT_TYPES;
|
||||
|
||||
|
||||
/**
|
||||
* Fired before a selection is made
|
||||
* Fired before a date selection is made
|
||||
* @event beforeSelectEvent
|
||||
*/
|
||||
me.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT);
|
||||
me.beforeSelectEvent.subscribe = sub; me.beforeSelectEvent.unsubscribe = unsub;
|
||||
|
||||
|
||||
/**
|
||||
* Fired when a selection is made
|
||||
* Fired when a date selection is made
|
||||
* @event selectEvent
|
||||
* @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
|
||||
*/
|
||||
me.selectEvent = new CE(defEvents.SELECT);
|
||||
me.selectEvent.subscribe = sub; me.selectEvent.unsubscribe = unsub;
|
||||
|
||||
|
||||
/**
|
||||
* Fired before a selection is made
|
||||
* Fired before a date or set of dates is deselected
|
||||
* @event beforeDeselectEvent
|
||||
*/
|
||||
me.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT);
|
||||
me.beforeDeselectEvent.subscribe = sub; me.beforeDeselectEvent.unsubscribe = unsub;
|
||||
|
||||
|
||||
/**
|
||||
* Fired when a selection is made
|
||||
* Fired when a date or set of dates has been deselected
|
||||
* @event deselectEvent
|
||||
* @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
|
||||
*/
|
||||
@@ -5186,6 +5190,8 @@ CalendarGroup.prototype = {
|
||||
var pageCount = args[0],
|
||||
cfgPageDate = DEF_CFG.PAGEDATE.key,
|
||||
sep = "_",
|
||||
caldate,
|
||||
firstPageDate = null,
|
||||
groupCalClass = "groupcal",
|
||||
firstClass = "first-of-type",
|
||||
lastClass = "last-of-type";
|
||||
@@ -5199,15 +5205,19 @@ CalendarGroup.prototype = {
|
||||
childConfig.title = false;
|
||||
childConfig.navigator = null;
|
||||
|
||||
if (p > 0) {
|
||||
caldate = new Date(firstPageDate);
|
||||
this._setMonthOnDate(caldate, caldate.getMonth() + p);
|
||||
childConfig.pageDate = caldate;
|
||||
}
|
||||
|
||||
var cal = this.constructChild(calId, calContainerId, childConfig);
|
||||
var caldate = cal.cfg.getProperty(cfgPageDate);
|
||||
this._setMonthOnDate(caldate, caldate.getMonth() + p);
|
||||
cal.cfg.setProperty(cfgPageDate, caldate);
|
||||
|
||||
Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE);
|
||||
Dom.addClass(cal.oDomContainer, groupCalClass);
|
||||
|
||||
if (p===0) {
|
||||
firstPageDate = cal.cfg.getProperty(cfgPageDate);
|
||||
Dom.addClass(cal.oDomContainer, firstClass);
|
||||
}
|
||||
|
||||
@@ -5302,7 +5312,7 @@ CalendarGroup.prototype = {
|
||||
*/
|
||||
callChildFunction : function(fnName, args) {
|
||||
var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
|
||||
|
||||
|
||||
for (var p=0;p<pageCount;++p) {
|
||||
var page = this.pages[p];
|
||||
if (page[fnName]) {
|
||||
@@ -5463,7 +5473,7 @@ CalendarGroup.prototype = {
|
||||
}
|
||||
return this.getSelectedDates();
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Deselects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
|
||||
* deselectCell will deselect the cell at the specified index on each displayed Calendar page.
|
||||
@@ -5479,7 +5489,7 @@ CalendarGroup.prototype = {
|
||||
}
|
||||
return this.getSelectedDates();
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Resets the calendar widget to the originally selected month and year, and
|
||||
* sets the calendar to the initial selection(s).
|
||||
@@ -6275,12 +6285,12 @@ YAHOO.widget.CalendarNavigator.prototype = {
|
||||
this._doc = calBox.ownerDocument;
|
||||
|
||||
/**
|
||||
* Private flag, to identify IE6/IE7 Quirks
|
||||
* Private flag, to identify IE Quirks
|
||||
* @private
|
||||
* @property __isIEQuirks
|
||||
*/
|
||||
var ie = YAHOO.env.ua.ie;
|
||||
this.__isIEQuirks = (ie && ((ie <= 6) || (ie === 7 && this._doc.compatMode == "BackCompat")));
|
||||
this.__isIEQuirks = (ie && ((ie <= 6) || (this._doc.compatMode == "BackCompat")));
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -6478,7 +6488,7 @@ YAHOO.widget.CalendarNavigator.prototype = {
|
||||
|
||||
/**
|
||||
* Used to set the width/height of the mask in pixels to match the Calendar Container.
|
||||
* Currently only used for IE6 and IE7 quirks mode. The other A-Grade browser are handled using CSS (width/height 100%).
|
||||
* Currently only used for IE6 or IE in quirks mode. The other A-Grade browser are handled using CSS (width/height 100%).
|
||||
* <p>
|
||||
* The method is also registered as an HTMLElement resize listener on the Calendars container element.
|
||||
* </p>
|
||||
@@ -7135,4 +7145,4 @@ YAHOO.widget.CalendarNavigator.prototype = {
|
||||
|
||||
};
|
||||
|
||||
YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.7.0", build: "1799"});
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
Carousel Release Notes
|
||||
|
||||
*** version 2.6.0 ***
|
||||
|
||||
* Initial release.
|
||||
@@ -1,13 +1,15 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-carousel {
|
||||
visibility: hidden;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
zoom: 1;
|
||||
}
|
||||
|
||||
.yui-carousel.yui-carousel-visible {
|
||||
@@ -80,3 +82,7 @@ version: 2.6.0
|
||||
.yui-carousel-button-focus {
|
||||
outline: 1px dotted #000;
|
||||
}
|
||||
|
||||
.yui-carousel-min-width .yui-carousel-content {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 3.1 KiB |
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-skin-sam .yui-carousel,
|
||||
.yui-skin-sam .yui-carousel-vertical {
|
||||
@@ -36,7 +36,8 @@ version: 2.6.0
|
||||
background-position: 0 -2100px;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-button input {
|
||||
.yui-skin-sam .yui-carousel-button input,
|
||||
.yui-skin-sam .yui-carousel-button button {
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
@@ -67,6 +68,7 @@ version: 2.6.0
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul {
|
||||
float: right;
|
||||
height: 19px;
|
||||
margin: 0;
|
||||
margin-left: -220px;
|
||||
margin-right: 100px;
|
||||
@@ -75,6 +77,10 @@ version: 2.6.0
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul {
|
||||
*margin-left: -170px;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav select {
|
||||
position: relative;
|
||||
*right: 50px;
|
||||
@@ -89,9 +95,15 @@ version: 2.6.0
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul li {
|
||||
background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -650px;
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
height: 19px;
|
||||
height: 9px;
|
||||
list-style: none;
|
||||
margin: 10px 0 0 5px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
width: 9px;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul:after {
|
||||
@@ -101,19 +113,20 @@ version: 2.6.0
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul li a {
|
||||
background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -650px;
|
||||
display: block;
|
||||
height: 9px;
|
||||
margin: 10px 0 0 5px;
|
||||
overflow: hidden;
|
||||
width: 9px;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul li a em {
|
||||
left: -10000px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected a {
|
||||
.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus {
|
||||
outline: 1px dotted #000;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected {
|
||||
background-position: 0 -700px;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-item-loading {
|
||||
background: url(ajax-loader.gif) no-repeat 50% 50%;
|
||||
position: relative;
|
||||
text-indent: -150px;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
.yui-carousel{visibility:hidden;overflow:hidden;position:relative;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;}.yui-carousel-element{margin:5px 0;overflow:hidden;padding:0;position:relative;width:32000px;z-index:1;}.yui-carousel-vertical .yui-carousel-element{margin:0 5px;}.yui-carousel-element li{border:1px solid #ccc;float:left;list-style:none;margin:1px;overflow:hidden;padding:0;text-align:center;*float:none;*display:inline-block;*zoom:1;*display:inline;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-carousel-vertical{height:32000px;margin:0 5px;width:auto;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{clear:both;content:"";display:block;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0px -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0px -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{float:left;height:19px;list-style:none;}.yui-skin-sam .yui-carousel-nav ul:after{clear:both;content:"";display:block;}.yui-skin-sam .yui-carousel-nav ul li a{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -650px;display:block;height:9px;margin:10px 0 0 5px;overflow:hidden;width:9px;}.yui-skin-sam .yui-carousel-nav ul li a em{left:-10000px;position:absolute;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected a{background-position:0 -700px;}
|
||||
.yui-carousel{visibility:hidden;overflow:hidden;position:relative;text-align:left;zoom:1;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;}.yui-carousel-element{margin:5px 0;overflow:hidden;padding:0;position:relative;width:32000px;z-index:1;}.yui-carousel-vertical .yui-carousel-element{margin:0 5px;}.yui-carousel-element li{border:1px solid #ccc;float:left;list-style:none;margin:1px;overflow:hidden;padding:0;text-align:center;*float:none;*display:inline-block;*zoom:1;*display:inline;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-carousel-vertical{height:32000px;margin:0 5px;width:auto;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{clear:both;content:"";display:block;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-carousel-min-width .yui-carousel-content{margin:0 auto;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input,.yui-skin-sam .yui-carousel-button button{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0 -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0 -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;height:19px;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul{*margin-left:-170px;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -650px;cursor:pointer;float:left;height:9px;list-style:none;margin:10px 0 0 5px;overflow:hidden;padding:0;width:9px;}.yui-skin-sam .yui-carousel-nav ul:after{clear:both;content:"";display:block;}.yui-skin-sam .yui-carousel-nav ul li a{left:-10000px;position:absolute;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected{background-position:0 -700px;}.yui-skin-sam .yui-carousel-item-loading{background:url(ajax-loader.gif) no-repeat 50% 50%;position:relative;text-indent:-150px;}
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
YUI Library - Charts - Release Notes
|
||||
2.6.0
|
||||
* Fixed bug in which an empty series definition caused charts to ignore styles.
|
||||
* Fixed bug in which additions to Object.prototype cause SWFObject embed to fail
|
||||
* refreshData is now a public method
|
||||
* Fixed bug in which TimeAxis bounds calculation fails when polling.
|
||||
* Added new optional altText attribute.
|
||||
* Moved _initialized flag from Charts to FlashAdapter.
|
||||
* Fixed bug in which changes in the dom (e.g. display property of chart) would cause the chart to erase. New known issue added. (see known issues section)
|
||||
* Added support for marker labels on PieSeries. Default is percentage values. May be customized with labelFunction property.
|
||||
* New Chart Types: StackedColumnChart and StackedBarChart.
|
||||
* Fixed bug in which charts delivered in an iframe from a different domain failed to render in Firefox.
|
||||
* contentReady event now fires after the dataSource is available. In some rare cases it may not be backwards compatible. If you need the event to fire earlier, you can revert back to the previous code. (see version 2.5.2)
|
||||
|
||||
2.5.2
|
||||
* Support for legends
|
||||
* New series styles connectPoints, connectDiscontinuousPoints, and discontinuousDashLength
|
||||
* dataTipFunction, xAxisLabelFunction, and yAxisLabelFunction attributes now support function references
|
||||
* Added destroy() function.
|
||||
* Changed majorTicks and minorTicks substyle "position" to "display". New option "none" will hide ticks.
|
||||
* When polling is enabled, the chart now makes an immediate request instead of waiting for the first interval.
|
||||
* Includes ActionScript source files and sample Ant build file.
|
||||
|
||||
2.5.1
|
||||
* No changes
|
||||
|
||||
2.5.0
|
||||
* Added lineSize style to series styles
|
||||
* Added showLabels substyle to xAxis and yAxis styles
|
||||
* Added more descriptive local content warning for ExternalInterface failure
|
||||
* Improved minor unit calculation
|
||||
* Fixed animation and marker positioning bugs
|
||||
* Fixed bug that caused series definition update to fail
|
||||
* Fixed bug that caused setting hex color values with # symbol to fail
|
||||
* Added initialization flag to ensure DataSource doesn't receive multiple requests during initialization.
|
||||
|
||||
2.4.0
|
||||
* Experimental release
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/*extern ActiveXObject, __flash_unloadHandler, __flash_savedUnloadHandler */
|
||||
/*!
|
||||
@@ -10,24 +10,28 @@ version: 2.6.0
|
||||
*
|
||||
* SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* @namespace YAHOO
|
||||
*/
|
||||
var deconcept = deconcept || {};
|
||||
|
||||
if(typeof deconcept.util == "undefined" || !deconcept.util)
|
||||
YAHOO.namespace("deconcept");
|
||||
|
||||
YAHOO.deconcept = YAHOO.deconcept || {};
|
||||
|
||||
if(typeof YAHOO.deconcept.util == "undefined" || !YAHOO.deconcept.util)
|
||||
{
|
||||
deconcept.util = {};
|
||||
YAHOO.deconcept.util = {};
|
||||
}
|
||||
|
||||
if(typeof deconcept.SWFObjectUtil == "undefined" || !deconcept.SWFObjectUtil)
|
||||
if(typeof YAHOO.deconcept.SWFObjectUtil == "undefined" || !YAHOO.deconcept.SWFObjectUtil)
|
||||
{
|
||||
deconcept.SWFObjectUtil = {};
|
||||
YAHOO.deconcept.SWFObjectUtil = {};
|
||||
}
|
||||
|
||||
deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey)
|
||||
YAHOO.deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey)
|
||||
{
|
||||
if(!document.getElementById) { return; }
|
||||
this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
|
||||
this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
|
||||
this.skipDetect = YAHOO.deconcept.util.getRequestParameter(this.DETECT_KEY);
|
||||
this.params = {};
|
||||
this.variables = {};
|
||||
this.attributes = [];
|
||||
@@ -35,12 +39,12 @@ deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, re
|
||||
if(id) { this.setAttribute('id', id); }
|
||||
if(w) { this.setAttribute('width', w); }
|
||||
if(h) { this.setAttribute('height', h); }
|
||||
if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); }
|
||||
this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
|
||||
if(ver) { this.setAttribute('version', new YAHOO.deconcept.PlayerVersion(ver.toString().split("."))); }
|
||||
this.installedVer = YAHOO.deconcept.SWFObjectUtil.getPlayerVersion();
|
||||
if (!window.opera && document.all && this.installedVer.major > 7)
|
||||
{
|
||||
// only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
|
||||
deconcept.SWFObject.doPrepUnload = true;
|
||||
YAHOO.deconcept.SWFObject.doPrepUnload = true;
|
||||
}
|
||||
if(c)
|
||||
{
|
||||
@@ -59,7 +63,7 @@ deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, re
|
||||
}
|
||||
};
|
||||
|
||||
deconcept.SWFObject.prototype =
|
||||
YAHOO.deconcept.SWFObject.prototype =
|
||||
{
|
||||
useExpressInstall: function(path)
|
||||
{
|
||||
@@ -148,7 +152,7 @@ deconcept.SWFObject.prototype =
|
||||
{
|
||||
if(this.getAttribute('useExpressInstall')) {
|
||||
// check to see if we need to do an express install
|
||||
var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);
|
||||
var expressInstallReqVer = new YAHOO.deconcept.PlayerVersion([6,0,65]);
|
||||
if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
|
||||
this.setAttribute('doExpressInstall', true);
|
||||
this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
|
||||
@@ -174,16 +178,16 @@ deconcept.SWFObject.prototype =
|
||||
};
|
||||
|
||||
/* ---- detection functions ---- */
|
||||
deconcept.SWFObjectUtil.getPlayerVersion = function()
|
||||
YAHOO.deconcept.SWFObjectUtil.getPlayerVersion = function()
|
||||
{
|
||||
var axo = null;
|
||||
var PlayerVersion = new deconcept.PlayerVersion([0,0,0]);
|
||||
var PlayerVersion = new YAHOO.deconcept.PlayerVersion([0,0,0]);
|
||||
if(navigator.plugins && navigator.mimeTypes.length)
|
||||
{
|
||||
var x = navigator.plugins["Shockwave Flash"];
|
||||
if(x && x.description)
|
||||
{
|
||||
PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
|
||||
PlayerVersion = new YAHOO.deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
|
||||
}
|
||||
}
|
||||
else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0)
|
||||
@@ -196,7 +200,7 @@ deconcept.SWFObjectUtil.getPlayerVersion = function()
|
||||
counter++;
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
|
||||
// document.write("player v: "+ counter);
|
||||
PlayerVersion = new deconcept.PlayerVersion([counter,0,0]);
|
||||
PlayerVersion = new YAHOO.deconcept.PlayerVersion([counter,0,0]);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
@@ -217,7 +221,7 @@ deconcept.SWFObjectUtil.getPlayerVersion = function()
|
||||
try
|
||||
{
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
|
||||
PlayerVersion = new deconcept.PlayerVersion([6,0,21]);
|
||||
PlayerVersion = new YAHOO.deconcept.PlayerVersion([6,0,21]);
|
||||
axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
|
||||
}
|
||||
catch(e)
|
||||
@@ -236,20 +240,20 @@ deconcept.SWFObjectUtil.getPlayerVersion = function()
|
||||
|
||||
if(axo !== null)
|
||||
{
|
||||
PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
|
||||
PlayerVersion = new YAHOO.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
|
||||
}
|
||||
}
|
||||
return PlayerVersion;
|
||||
};
|
||||
|
||||
deconcept.PlayerVersion = function(arrVersion)
|
||||
YAHOO.deconcept.PlayerVersion = function(arrVersion)
|
||||
{
|
||||
this.major = arrVersion[0] !== null ? parseInt(arrVersion[0], 0) : 0;
|
||||
this.minor = arrVersion[1] !== null ? parseInt(arrVersion[1], 0) : 0;
|
||||
this.rev = arrVersion[2] !== null ? parseInt(arrVersion[2], 0) : 0;
|
||||
};
|
||||
|
||||
deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
|
||||
YAHOO.deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
|
||||
{
|
||||
if(this.major < fv.major)
|
||||
{
|
||||
@@ -275,7 +279,7 @@ deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
|
||||
};
|
||||
|
||||
/* ---- get value of query string param ---- */
|
||||
deconcept.util =
|
||||
YAHOO.deconcept.util =
|
||||
{
|
||||
getRequestParameter: function(param)
|
||||
{
|
||||
@@ -297,7 +301,7 @@ deconcept.util =
|
||||
};
|
||||
|
||||
/* fix for video streaming bug */
|
||||
deconcept.SWFObjectUtil.cleanupSWFs = function()
|
||||
YAHOO.deconcept.SWFObjectUtil.cleanupSWFs = function()
|
||||
{
|
||||
var objects = document.getElementsByTagName("OBJECT");
|
||||
for(var i = objects.length - 1; i >= 0; i--)
|
||||
@@ -314,18 +318,18 @@ deconcept.SWFObjectUtil.cleanupSWFs = function()
|
||||
};
|
||||
|
||||
// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
|
||||
if(deconcept.SWFObject.doPrepUnload)
|
||||
if(YAHOO.deconcept.SWFObject.doPrepUnload)
|
||||
{
|
||||
if(!deconcept.unloadSet)
|
||||
if(!YAHOO.deconcept.unloadSet)
|
||||
{
|
||||
deconcept.SWFObjectUtil.prepUnload = function()
|
||||
YAHOO.deconcept.SWFObjectUtil.prepUnload = function()
|
||||
{
|
||||
__flash_unloadHandler = function(){};
|
||||
__flash_savedUnloadHandler = function(){};
|
||||
window.attachEvent("onunload", deconcept.SWFObjectUtil.cleanupSWFs);
|
||||
window.attachEvent("onunload", YAHOO.deconcept.SWFObjectUtil.cleanupSWFs);
|
||||
};
|
||||
window.attachEvent("onbeforeunload", deconcept.SWFObjectUtil.prepUnload);
|
||||
deconcept.unloadSet = true;
|
||||
window.attachEvent("onbeforeunload", YAHOO.deconcept.SWFObjectUtil.prepUnload);
|
||||
YAHOO.deconcept.unloadSet = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -335,10 +339,6 @@ if(!document.getElementById && document.all)
|
||||
document.getElementById = function(id) { return document.all[id]; };
|
||||
}
|
||||
|
||||
/* add some aliases for ease of use/backwards compatibility */
|
||||
var getQueryParamValue = deconcept.util.getRequestParameter;
|
||||
var FlashObject = deconcept.SWFObject; // for legacy support
|
||||
var SWFObject = deconcept.SWFObject;
|
||||
|
||||
/**
|
||||
* Wraps Flash embedding functionality and allows communication with SWF through
|
||||
@@ -486,7 +486,7 @@ YAHOO.extend(YAHOO.widget.FlashAdapter, YAHOO.util.AttributeProvider,
|
||||
_embedSWF: function(swfURL, containerID, swfID, version, backgroundColor, expressInstall, wmode)
|
||||
{
|
||||
//standard SWFObject embed
|
||||
var swfObj = new deconcept.SWFObject(swfURL, swfID, "100%", "100%", version, backgroundColor);
|
||||
var swfObj = new YAHOO.deconcept.SWFObject(swfURL, swfID, "100%", "100%", version, backgroundColor);
|
||||
|
||||
if(expressInstall)
|
||||
{
|
||||
@@ -1889,7 +1889,23 @@ YAHOO.widget.Axis.prototype =
|
||||
* @property labelFunction
|
||||
* @type String
|
||||
*/
|
||||
labelFunction: null
|
||||
labelFunction: null,
|
||||
|
||||
/**
|
||||
* The space, in pixels, between labels on an axis.
|
||||
*
|
||||
* @property labelSpacing
|
||||
* @type Number
|
||||
*/
|
||||
labelSpacing: 2,
|
||||
|
||||
/**
|
||||
* The text that will appear next to the axis to indicate information about the data that it displays.
|
||||
*
|
||||
* @property title
|
||||
* @type String
|
||||
*/
|
||||
title: null
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1897,6 +1913,7 @@ YAHOO.widget.Axis.prototype =
|
||||
*
|
||||
* @namespace YAHOO.widget
|
||||
* @class NumericAxis
|
||||
* @extends YAHOO.widget.Axis
|
||||
* @constructor
|
||||
*/
|
||||
YAHOO.widget.NumericAxis = function()
|
||||
@@ -1975,7 +1992,15 @@ YAHOO.lang.extend(YAHOO.widget.NumericAxis, YAHOO.widget.Axis,
|
||||
* @property scale
|
||||
* @type String
|
||||
*/
|
||||
scale: "linear"
|
||||
scale: "linear",
|
||||
|
||||
/**
|
||||
* Indicates whether to round the major unit.
|
||||
*
|
||||
* @property roundMajorUnit
|
||||
* @type Boolean
|
||||
*/
|
||||
roundMajorUnit: true
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -2085,7 +2110,17 @@ YAHOO.lang.extend(YAHOO.widget.CategoryAxis, YAHOO.widget.Axis,
|
||||
* @property categoryNames
|
||||
* @type Array
|
||||
*/
|
||||
categoryNames: null
|
||||
categoryNames: null,
|
||||
|
||||
/**
|
||||
* Indicates whether or not to calculate the number of categories (ticks and labels)
|
||||
* when there is not enough room to display all labels on the axis. If set to true, the axis
|
||||
* will determine the number of categories to plot. If not, all categories will be plotted.
|
||||
*
|
||||
* @property calcualateCategoryCount
|
||||
* @type Boolean
|
||||
*/
|
||||
calculateCategoryCount: false
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -2288,4 +2323,4 @@ YAHOO.lang.extend(YAHOO.widget.StackedColumnSeries, YAHOO.widget.CartesianSeries
|
||||
type: "stackcolumn"
|
||||
});
|
||||
|
||||
YAHOO.register("charts", YAHOO.widget.Chart, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("charts", YAHOO.widget.Chart, {version: "2.7.0", build: "1799"});
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/*extern ActiveXObject, __flash_unloadHandler, __flash_savedUnloadHandler */
|
||||
/*!
|
||||
@@ -10,24 +10,28 @@ version: 2.6.0
|
||||
*
|
||||
* SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* @namespace YAHOO
|
||||
*/
|
||||
var deconcept = deconcept || {};
|
||||
|
||||
if(typeof deconcept.util == "undefined" || !deconcept.util)
|
||||
YAHOO.namespace("deconcept");
|
||||
|
||||
YAHOO.deconcept = YAHOO.deconcept || {};
|
||||
|
||||
if(typeof YAHOO.deconcept.util == "undefined" || !YAHOO.deconcept.util)
|
||||
{
|
||||
deconcept.util = {};
|
||||
YAHOO.deconcept.util = {};
|
||||
}
|
||||
|
||||
if(typeof deconcept.SWFObjectUtil == "undefined" || !deconcept.SWFObjectUtil)
|
||||
if(typeof YAHOO.deconcept.SWFObjectUtil == "undefined" || !YAHOO.deconcept.SWFObjectUtil)
|
||||
{
|
||||
deconcept.SWFObjectUtil = {};
|
||||
YAHOO.deconcept.SWFObjectUtil = {};
|
||||
}
|
||||
|
||||
deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey)
|
||||
YAHOO.deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey)
|
||||
{
|
||||
if(!document.getElementById) { return; }
|
||||
this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
|
||||
this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
|
||||
this.skipDetect = YAHOO.deconcept.util.getRequestParameter(this.DETECT_KEY);
|
||||
this.params = {};
|
||||
this.variables = {};
|
||||
this.attributes = [];
|
||||
@@ -35,12 +39,12 @@ deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, re
|
||||
if(id) { this.setAttribute('id', id); }
|
||||
if(w) { this.setAttribute('width', w); }
|
||||
if(h) { this.setAttribute('height', h); }
|
||||
if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); }
|
||||
this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
|
||||
if(ver) { this.setAttribute('version', new YAHOO.deconcept.PlayerVersion(ver.toString().split("."))); }
|
||||
this.installedVer = YAHOO.deconcept.SWFObjectUtil.getPlayerVersion();
|
||||
if (!window.opera && document.all && this.installedVer.major > 7)
|
||||
{
|
||||
// only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
|
||||
deconcept.SWFObject.doPrepUnload = true;
|
||||
YAHOO.deconcept.SWFObject.doPrepUnload = true;
|
||||
}
|
||||
if(c)
|
||||
{
|
||||
@@ -59,7 +63,7 @@ deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, re
|
||||
}
|
||||
};
|
||||
|
||||
deconcept.SWFObject.prototype =
|
||||
YAHOO.deconcept.SWFObject.prototype =
|
||||
{
|
||||
useExpressInstall: function(path)
|
||||
{
|
||||
@@ -148,7 +152,7 @@ deconcept.SWFObject.prototype =
|
||||
{
|
||||
if(this.getAttribute('useExpressInstall')) {
|
||||
// check to see if we need to do an express install
|
||||
var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);
|
||||
var expressInstallReqVer = new YAHOO.deconcept.PlayerVersion([6,0,65]);
|
||||
if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
|
||||
this.setAttribute('doExpressInstall', true);
|
||||
this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
|
||||
@@ -174,16 +178,16 @@ deconcept.SWFObject.prototype =
|
||||
};
|
||||
|
||||
/* ---- detection functions ---- */
|
||||
deconcept.SWFObjectUtil.getPlayerVersion = function()
|
||||
YAHOO.deconcept.SWFObjectUtil.getPlayerVersion = function()
|
||||
{
|
||||
var axo = null;
|
||||
var PlayerVersion = new deconcept.PlayerVersion([0,0,0]);
|
||||
var PlayerVersion = new YAHOO.deconcept.PlayerVersion([0,0,0]);
|
||||
if(navigator.plugins && navigator.mimeTypes.length)
|
||||
{
|
||||
var x = navigator.plugins["Shockwave Flash"];
|
||||
if(x && x.description)
|
||||
{
|
||||
PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
|
||||
PlayerVersion = new YAHOO.deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
|
||||
}
|
||||
}
|
||||
else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0)
|
||||
@@ -196,7 +200,7 @@ deconcept.SWFObjectUtil.getPlayerVersion = function()
|
||||
counter++;
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
|
||||
// document.write("player v: "+ counter);
|
||||
PlayerVersion = new deconcept.PlayerVersion([counter,0,0]);
|
||||
PlayerVersion = new YAHOO.deconcept.PlayerVersion([counter,0,0]);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
@@ -217,7 +221,7 @@ deconcept.SWFObjectUtil.getPlayerVersion = function()
|
||||
try
|
||||
{
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
|
||||
PlayerVersion = new deconcept.PlayerVersion([6,0,21]);
|
||||
PlayerVersion = new YAHOO.deconcept.PlayerVersion([6,0,21]);
|
||||
axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
|
||||
}
|
||||
catch(e)
|
||||
@@ -236,20 +240,20 @@ deconcept.SWFObjectUtil.getPlayerVersion = function()
|
||||
|
||||
if(axo !== null)
|
||||
{
|
||||
PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
|
||||
PlayerVersion = new YAHOO.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
|
||||
}
|
||||
}
|
||||
return PlayerVersion;
|
||||
};
|
||||
|
||||
deconcept.PlayerVersion = function(arrVersion)
|
||||
YAHOO.deconcept.PlayerVersion = function(arrVersion)
|
||||
{
|
||||
this.major = arrVersion[0] !== null ? parseInt(arrVersion[0], 0) : 0;
|
||||
this.minor = arrVersion[1] !== null ? parseInt(arrVersion[1], 0) : 0;
|
||||
this.rev = arrVersion[2] !== null ? parseInt(arrVersion[2], 0) : 0;
|
||||
};
|
||||
|
||||
deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
|
||||
YAHOO.deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
|
||||
{
|
||||
if(this.major < fv.major)
|
||||
{
|
||||
@@ -275,7 +279,7 @@ deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
|
||||
};
|
||||
|
||||
/* ---- get value of query string param ---- */
|
||||
deconcept.util =
|
||||
YAHOO.deconcept.util =
|
||||
{
|
||||
getRequestParameter: function(param)
|
||||
{
|
||||
@@ -297,7 +301,7 @@ deconcept.util =
|
||||
};
|
||||
|
||||
/* fix for video streaming bug */
|
||||
deconcept.SWFObjectUtil.cleanupSWFs = function()
|
||||
YAHOO.deconcept.SWFObjectUtil.cleanupSWFs = function()
|
||||
{
|
||||
var objects = document.getElementsByTagName("OBJECT");
|
||||
for(var i = objects.length - 1; i >= 0; i--)
|
||||
@@ -314,18 +318,18 @@ deconcept.SWFObjectUtil.cleanupSWFs = function()
|
||||
};
|
||||
|
||||
// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
|
||||
if(deconcept.SWFObject.doPrepUnload)
|
||||
if(YAHOO.deconcept.SWFObject.doPrepUnload)
|
||||
{
|
||||
if(!deconcept.unloadSet)
|
||||
if(!YAHOO.deconcept.unloadSet)
|
||||
{
|
||||
deconcept.SWFObjectUtil.prepUnload = function()
|
||||
YAHOO.deconcept.SWFObjectUtil.prepUnload = function()
|
||||
{
|
||||
__flash_unloadHandler = function(){};
|
||||
__flash_savedUnloadHandler = function(){};
|
||||
window.attachEvent("onunload", deconcept.SWFObjectUtil.cleanupSWFs);
|
||||
window.attachEvent("onunload", YAHOO.deconcept.SWFObjectUtil.cleanupSWFs);
|
||||
};
|
||||
window.attachEvent("onbeforeunload", deconcept.SWFObjectUtil.prepUnload);
|
||||
deconcept.unloadSet = true;
|
||||
window.attachEvent("onbeforeunload", YAHOO.deconcept.SWFObjectUtil.prepUnload);
|
||||
YAHOO.deconcept.unloadSet = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -335,10 +339,6 @@ if(!document.getElementById && document.all)
|
||||
document.getElementById = function(id) { return document.all[id]; };
|
||||
}
|
||||
|
||||
/* add some aliases for ease of use/backwards compatibility */
|
||||
var getQueryParamValue = deconcept.util.getRequestParameter;
|
||||
var FlashObject = deconcept.SWFObject; // for legacy support
|
||||
var SWFObject = deconcept.SWFObject;
|
||||
|
||||
/**
|
||||
* Wraps Flash embedding functionality and allows communication with SWF through
|
||||
@@ -485,7 +485,7 @@ YAHOO.extend(YAHOO.widget.FlashAdapter, YAHOO.util.AttributeProvider,
|
||||
_embedSWF: function(swfURL, containerID, swfID, version, backgroundColor, expressInstall, wmode)
|
||||
{
|
||||
//standard SWFObject embed
|
||||
var swfObj = new deconcept.SWFObject(swfURL, swfID, "100%", "100%", version, backgroundColor);
|
||||
var swfObj = new YAHOO.deconcept.SWFObject(swfURL, swfID, "100%", "100%", version, backgroundColor);
|
||||
|
||||
if(expressInstall)
|
||||
{
|
||||
@@ -1885,7 +1885,23 @@ YAHOO.widget.Axis.prototype =
|
||||
* @property labelFunction
|
||||
* @type String
|
||||
*/
|
||||
labelFunction: null
|
||||
labelFunction: null,
|
||||
|
||||
/**
|
||||
* The space, in pixels, between labels on an axis.
|
||||
*
|
||||
* @property labelSpacing
|
||||
* @type Number
|
||||
*/
|
||||
labelSpacing: 2,
|
||||
|
||||
/**
|
||||
* The text that will appear next to the axis to indicate information about the data that it displays.
|
||||
*
|
||||
* @property title
|
||||
* @type String
|
||||
*/
|
||||
title: null
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1893,6 +1909,7 @@ YAHOO.widget.Axis.prototype =
|
||||
*
|
||||
* @namespace YAHOO.widget
|
||||
* @class NumericAxis
|
||||
* @extends YAHOO.widget.Axis
|
||||
* @constructor
|
||||
*/
|
||||
YAHOO.widget.NumericAxis = function()
|
||||
@@ -1971,7 +1988,15 @@ YAHOO.lang.extend(YAHOO.widget.NumericAxis, YAHOO.widget.Axis,
|
||||
* @property scale
|
||||
* @type String
|
||||
*/
|
||||
scale: "linear"
|
||||
scale: "linear",
|
||||
|
||||
/**
|
||||
* Indicates whether to round the major unit.
|
||||
*
|
||||
* @property roundMajorUnit
|
||||
* @type Boolean
|
||||
*/
|
||||
roundMajorUnit: true
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -2081,7 +2106,17 @@ YAHOO.lang.extend(YAHOO.widget.CategoryAxis, YAHOO.widget.Axis,
|
||||
* @property categoryNames
|
||||
* @type Array
|
||||
*/
|
||||
categoryNames: null
|
||||
categoryNames: null,
|
||||
|
||||
/**
|
||||
* Indicates whether or not to calculate the number of categories (ticks and labels)
|
||||
* when there is not enough room to display all labels on the axis. If set to true, the axis
|
||||
* will determine the number of categories to plot. If not, all categories will be plotted.
|
||||
*
|
||||
* @property calcualateCategoryCount
|
||||
* @type Boolean
|
||||
*/
|
||||
calculateCategoryCount: false
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -2284,4 +2319,4 @@ YAHOO.lang.extend(YAHOO.widget.StackedColumnSeries, YAHOO.widget.CartesianSeries
|
||||
type: "stackcolumn"
|
||||
});
|
||||
|
||||
YAHOO.register("charts", YAHOO.widget.Chart, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("charts", YAHOO.widget.Chart, {version: "2.7.0", build: "1799"});
|
||||
@@ -1,21 +0,0 @@
|
||||
ColorPicker - Release Notes
|
||||
|
||||
2.6.0
|
||||
* Added colorpicker-core.css (empty) for completeness
|
||||
|
||||
2.5.1
|
||||
* No change
|
||||
|
||||
2.5.0
|
||||
* No change
|
||||
|
||||
2.4.0
|
||||
* Initialization values assigned to showcontrols, showrgbcontrols,
|
||||
showwebsafe, showhexsummary, animate, red, green, and blue in the
|
||||
constructor configuration are now honored.
|
||||
|
||||
2.3.1
|
||||
* No change (bug fixes were inherited from slider)
|
||||
|
||||
2.3.0
|
||||
* Initial release
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
|
||||
|
Before Width: | Height: | Size: 140 B After Width: | Height: | Size: 195 B |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 192 B |