import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -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"});
|
||||
|
12
webdir/javascript/yui/animation/animation-min.js
vendored
12
webdir/javascript/yui/animation/animation-min.js
vendored
File diff suppressed because one or more lines are too long
27
webdir/javascript/yui/animation/animation.js
vendored
27
webdir/javascript/yui/animation/animation.js
vendored
@ -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"});
|
||||
|
BIN
webdir/javascript/yui/assets/skins/sam/ajax-loader.gif
Normal file
BIN
webdir/javascript/yui/assets/skins/sam/ajax-loader.gif
Normal file
Binary file not shown.
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;}
|
||||
|
BIN
webdir/javascript/yui/assets/skins/sam/bg-h.gif
Normal file
BIN
webdir/javascript/yui/assets/skins/sam/bg-h.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 212 B |
BIN
webdir/javascript/yui/assets/skins/sam/bg-v.gif
Normal file
BIN
webdir/javascript/yui/assets/skins/sam/bg-v.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 481 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
|
||||
*/
|
||||
.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);}
|
||||
|
File diff suppressed because one or more lines are too long
@ -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);}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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;}
|
||||
|
File diff suppressed because one or more lines are too long
@ -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;}
|
||||
|
@ -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);}
|
||||
|
@ -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;}
|
||||
|
@ -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;}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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;}
|
||||
|
File diff suppressed because one or more lines are too long
@ -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,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 */
|
||||
/* This file intentionally left blank */
|
||||
|
@ -1,57 +1,57 @@
|
||||
/*
|
||||
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 {
|
||||
position:relative;font-family:arial;font-size:100%;
|
||||
}
|
||||
|
||||
/* styles for input field */
|
||||
.yui-skin-sam .yui-ac-input {
|
||||
position:absolute;width:100%;
|
||||
}
|
||||
|
||||
/* styles for results container */
|
||||
.yui-skin-sam .yui-ac-container {
|
||||
position:absolute;top:1.6em;width:100%;
|
||||
}
|
||||
|
||||
/* styles for header/body/footer wrapper within container */
|
||||
.yui-skin-sam .yui-ac-content {
|
||||
position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;
|
||||
}
|
||||
|
||||
/* styles for container shadow */
|
||||
.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;
|
||||
}
|
||||
|
||||
/* styles for container iframe */
|
||||
.yui-skin-sam .yui-ac iframe {
|
||||
opacity:0;filter: alpha(opacity=0);
|
||||
padding-right:.3em; padding-bottom:.3em; /* Bug 2026798: extend iframe to shim the shadow */
|
||||
}
|
||||
|
||||
/* styles for results list */
|
||||
.yui-skin-sam .yui-ac-content ul{
|
||||
margin:0;padding:0;width:100%;
|
||||
}
|
||||
|
||||
/* styles for result item */
|
||||
.yui-skin-sam .yui-ac-content li {
|
||||
margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;
|
||||
zoom:1; /* For IE to trigger mouse events on LI */
|
||||
}
|
||||
|
||||
/* styles for prehighlighted result item */
|
||||
.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight {
|
||||
background:#B3D4FF;
|
||||
}
|
||||
|
||||
/* styles for highlighted result item */
|
||||
.yui-skin-sam .yui-ac-content li.yui-ac-highlight {
|
||||
background:#426FD9;color:#FFF;
|
||||
}
|
||||
/* styles for entire widget */
|
||||
.yui-skin-sam .yui-ac {
|
||||
position:relative;font-family:arial;font-size:100%;
|
||||
}
|
||||
|
||||
/* styles for input field */
|
||||
.yui-skin-sam .yui-ac-input {
|
||||
position:absolute;width:100%;
|
||||
}
|
||||
|
||||
/* styles for results container */
|
||||
.yui-skin-sam .yui-ac-container {
|
||||
position:absolute;top:1.6em;width:100%;
|
||||
}
|
||||
|
||||
/* styles for header/body/footer wrapper within container */
|
||||
.yui-skin-sam .yui-ac-content {
|
||||
position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;
|
||||
}
|
||||
|
||||
/* styles for container shadow */
|
||||
.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;
|
||||
}
|
||||
|
||||
/* styles for container iframe */
|
||||
.yui-skin-sam .yui-ac iframe {
|
||||
opacity:0;filter: alpha(opacity=0);
|
||||
padding-right:.3em; padding-bottom:.3em; /* Bug 2026798: extend iframe to shim the shadow */
|
||||
}
|
||||
|
||||
/* styles for results list */
|
||||
.yui-skin-sam .yui-ac-content ul{
|
||||
margin:0;padding:0;width:100%;
|
||||
}
|
||||
|
||||
/* styles for result item */
|
||||
.yui-skin-sam .yui-ac-content li {
|
||||
margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;
|
||||
zoom:1; /* For IE to trigger mouse events on LI */
|
||||
}
|
||||
|
||||
/* styles for prehighlighted result item */
|
||||
.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight {
|
||||
background:#B3D4FF;
|
||||
}
|
||||
|
||||
/* styles for highlighted result item */
|
||||
.yui-skin-sam .yui-ac-content li.yui-ac-highlight {
|
||||
background:#426FD9;color:#FFF;
|
||||
}
|
||||
|
@ -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"});
|
||||
|
File diff suppressed because one or more lines are too long
246
webdir/javascript/yui/autocomplete/autocomplete.js
vendored
246
webdir/javascript/yui/autocomplete/autocomplete.js
vendored
@ -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"});
|
||||
|
6
webdir/javascript/yui/base/base-min.css
vendored
6
webdir/javascript/yui/base/base-min.css
vendored
@ -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,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);}
|
||||
|
339
webdir/javascript/yui/button/button-debug.js
vendored
339
webdir/javascript/yui/button/button-debug.js
vendored
@ -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"});
|
||||
|
14
webdir/javascript/yui/button/button-min.js
vendored
14
webdir/javascript/yui/button/button-min.js
vendored
File diff suppressed because one or more lines are too long
339
webdir/javascript/yui/button/button.js
vendored
339
webdir/javascript/yui/button/button.js
vendored
@ -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,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;
|
||||
|
@ -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 */
|
||||
|
File diff suppressed because one or more lines are too long
80
webdir/javascript/yui/calendar/calendar-debug.js
vendored
80
webdir/javascript/yui/calendar/calendar-debug.js
vendored
@ -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"});
|
||||
|
18
webdir/javascript/yui/calendar/calendar-min.js
vendored
18
webdir/javascript/yui/calendar/calendar-min.js
vendored
File diff suppressed because one or more lines are too long
80
webdir/javascript/yui/calendar/calendar.js
vendored
80
webdir/javascript/yui/calendar/calendar.js
vendored
@ -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,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;
|
||||
}
|
||||
|
BIN
webdir/javascript/yui/carousel/assets/skins/sam/ajax-loader.gif
Normal file
BIN
webdir/javascript/yui/carousel/assets/skins/sam/ajax-loader.gif
Normal file
Binary file not shown.
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;}
|
||||
|
3658
webdir/javascript/yui/carousel/carousel-debug.js
vendored
Normal file
3658
webdir/javascript/yui/carousel/carousel-debug.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
11
webdir/javascript/yui/carousel/carousel-min.js
vendored
Normal file
11
webdir/javascript/yui/carousel/carousel-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3616
webdir/javascript/yui/carousel/carousel.js
vendored
Normal file
3616
webdir/javascript/yui/carousel/carousel.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
2326
webdir/javascript/yui/charts/charts-debug.js
vendored
Normal file
2326
webdir/javascript/yui/charts/charts-debug.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
17
webdir/javascript/yui/charts/charts-min.js
vendored
Normal file
17
webdir/javascript/yui/charts/charts-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2322
webdir/javascript/yui/charts/charts.js
vendored
Normal file
2322
webdir/javascript/yui/charts/charts.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
*/
|
||||
|
@ -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-picker-panel {
|
||||
|
@ -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;}
|
||||
|
2784
webdir/javascript/yui/colorpicker/colorpicker-debug.js
vendored
2784
webdir/javascript/yui/colorpicker/colorpicker-debug.js
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
2762
webdir/javascript/yui/colorpicker/colorpicker.js
vendored
2762
webdir/javascript/yui/colorpicker/colorpicker.js
vendored
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
*/
|
||||
/**
|
||||
* The Connection Manager provides a simplified interface to the XMLHttpRequest
|
||||
@ -234,8 +234,9 @@ YAHOO.util.Connect =
|
||||
document,
|
||||
'click',
|
||||
function(e){
|
||||
var obj = YAHOO.util.Event.getTarget(e);
|
||||
if(obj.nodeName.toLowerCase() == 'input' && (obj.type && obj.type.toLowerCase() == 'submit')){
|
||||
var obj = YAHOO.util.Event.getTarget(e),
|
||||
name = obj.nodeName.toLowerCase();
|
||||
if((name === 'input' || name === 'button') && (obj.type && obj.type.toLowerCase() == 'submit')){
|
||||
YAHOO.util.Connect._submitElementValue = encodeURIComponent(obj.name) + "=" + encodeURIComponent(obj.value);
|
||||
}
|
||||
});
|
||||
@ -1028,10 +1029,6 @@ YAHOO.util.Connect =
|
||||
if(this._hasSubmitListener && this._submitElementValue){
|
||||
data[item++] = this._submitElementValue;
|
||||
}
|
||||
else{
|
||||
data[item++] = oName + oValue;
|
||||
}
|
||||
|
||||
hasSubmit = true;
|
||||
}
|
||||
break;
|
||||
@ -1406,4 +1403,4 @@ YAHOO.util.Connect =
|
||||
}
|
||||
}
|
||||
};
|
||||
YAHOO.register("connection", YAHOO.util.Connect, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("connection", YAHOO.util.Connect, {version: "2.7.0", build: "1799"});
|
||||
|
File diff suppressed because one or more lines are too long
15
webdir/javascript/yui/connection/connection.js
vendored
15
webdir/javascript/yui/connection/connection.js
vendored
@ -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
|
||||
*/
|
||||
/**
|
||||
* The Connection Manager provides a simplified interface to the XMLHttpRequest
|
||||
@ -234,8 +234,9 @@ YAHOO.util.Connect =
|
||||
document,
|
||||
'click',
|
||||
function(e){
|
||||
var obj = YAHOO.util.Event.getTarget(e);
|
||||
if(obj.nodeName.toLowerCase() == 'input' && (obj.type && obj.type.toLowerCase() == 'submit')){
|
||||
var obj = YAHOO.util.Event.getTarget(e),
|
||||
name = obj.nodeName.toLowerCase();
|
||||
if((name === 'input' || name === 'button') && (obj.type && obj.type.toLowerCase() == 'submit')){
|
||||
YAHOO.util.Connect._submitElementValue = encodeURIComponent(obj.name) + "=" + encodeURIComponent(obj.value);
|
||||
}
|
||||
});
|
||||
@ -1007,10 +1008,6 @@ YAHOO.util.Connect =
|
||||
if(this._hasSubmitListener && this._submitElementValue){
|
||||
data[item++] = this._submitElementValue;
|
||||
}
|
||||
else{
|
||||
data[item++] = oName + oValue;
|
||||
}
|
||||
|
||||
hasSubmit = true;
|
||||
}
|
||||
break;
|
||||
@ -1376,4 +1373,4 @@ YAHOO.util.Connect =
|
||||
}
|
||||
}
|
||||
};
|
||||
YAHOO.register("connection", YAHOO.util.Connect, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("connection", YAHOO.util.Connect, {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
|
||||
*/
|
||||
.yui-overlay,
|
||||
.yui-panel-container {
|
||||
@ -11,6 +11,10 @@ version: 2.6.0
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.yui-panel {
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.yui-panel-container form {
|
||||
margin: 0;
|
||||
}
|
||||
@ -140,7 +144,7 @@ PLEASE NOTE:
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
.yui-effect-fade .underlay {
|
||||
.yui-effect-fade .underlay, .yui-effect-fade .yui-tt-shadow {
|
||||
display:none;
|
||||
}
|
||||
|
||||
@ -165,4 +169,8 @@ PLEASE NOTE:
|
||||
overflow:hidden;
|
||||
text-indent:-10000em;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
.yui-overlay.yui-force-redraw, .yui-panel-container.yui-force-redraw {
|
||||
margin-bottom:1px;
|
||||
}
|
@ -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-overlay,
|
||||
.yui-panel-container {
|
||||
|
@ -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
|
||||
*/
|
||||
/* Panel modality mask styles */
|
||||
.yui-skin-sam .mask {
|
||||
background-color: #000;
|
||||
opacity: .25;
|
||||
*filter: alpha(opacity=25); /* Set opacity in IE */
|
||||
filter: alpha(opacity=25); /* Set opacity in IE */
|
||||
}
|
||||
|
||||
/* Panel styles */
|
||||
@ -128,7 +128,7 @@ version: 2.6.0
|
||||
|
||||
background-color: #000;
|
||||
opacity: .12;
|
||||
*filter: alpha(opacity=12); /* Set opacity in IE */
|
||||
filter: alpha(opacity=12); /* Set opacity in IE */
|
||||
}
|
||||
|
||||
|
||||
@ -238,5 +238,5 @@ version: 2.6.0
|
||||
|
||||
.yui-skin-sam .yui-tt-shadow-visible {
|
||||
opacity: .12;
|
||||
*filter: alpha(opacity=12); /* For IE */
|
||||
filter: alpha(opacity=12); /* For IE */
|
||||
}
|
@ -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(../../../../assets/skins/sam/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(../../../../assets/skins/sam/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(../../../../assets/skins/sam/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(../../../../assets/skins/sam/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(../../../../assets/skins/sam/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(../../../../assets/skins/sam/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);}
|
||||
|
769
webdir/javascript/yui/container/container-debug.js
vendored
769
webdir/javascript/yui/container/container-debug.js
vendored
File diff suppressed because it is too large
Load Diff
30
webdir/javascript/yui/container/container-min.js
vendored
30
webdir/javascript/yui/container/container-min.js
vendored
File diff suppressed because one or more lines are too long
769
webdir/javascript/yui/container/container.js
vendored
769
webdir/javascript/yui/container/container.js
vendored
File diff suppressed because it is too large
Load Diff
@ -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 () {
|
||||
|
||||
@ -741,6 +741,7 @@ version: 2.6.0
|
||||
Event = YAHOO.util.Event,
|
||||
CustomEvent = YAHOO.util.CustomEvent,
|
||||
Module = YAHOO.widget.Module,
|
||||
UA = YAHOO.env.ua,
|
||||
|
||||
m_oModuleTemplate,
|
||||
m_oHeaderTemplate,
|
||||
@ -785,24 +786,24 @@ version: 2.6.0
|
||||
value: true,
|
||||
validator: YAHOO.lang.isBoolean
|
||||
},
|
||||
|
||||
"EFFECT": {
|
||||
key: "effect",
|
||||
suppressEvent: true,
|
||||
supercedes: ["visible"]
|
||||
|
||||
"EFFECT": {
|
||||
key: "effect",
|
||||
suppressEvent: true,
|
||||
supercedes: ["visible"]
|
||||
},
|
||||
|
||||
"MONITOR_RESIZE": {
|
||||
key: "monitorresize",
|
||||
value: true
|
||||
"MONITOR_RESIZE": {
|
||||
key: "monitorresize",
|
||||
value: true
|
||||
},
|
||||
|
||||
"APPEND_TO_DOCUMENT_BODY": {
|
||||
key: "appendtodocumentbody",
|
||||
"APPEND_TO_DOCUMENT_BODY": {
|
||||
key: "appendtodocumentbody",
|
||||
value: false
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Constant representing the prefix path to use for non-secure images
|
||||
* @property YAHOO.widget.Module.IMG_ROOT
|
||||
@ -866,7 +867,19 @@ version: 2.6.0
|
||||
* @type String
|
||||
*/
|
||||
Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
|
||||
|
||||
|
||||
/**
|
||||
* Constant representing the buffer amount (in pixels) to use when positioning
|
||||
* the text resize monitor offscreen. The resize monitor is positioned
|
||||
* offscreen by an amount eqaul to its offsetHeight + the buffer value.
|
||||
*
|
||||
* @property YAHOO.widget.Module.RESIZE_MONITOR_BUFFER
|
||||
* @static
|
||||
* @type Number
|
||||
*/
|
||||
// Set to 1, to work around pixel offset in IE8, which increases when zoom is used
|
||||
Module.RESIZE_MONITOR_BUFFER = 1;
|
||||
|
||||
/**
|
||||
* Singleton CustomEvent fired when the font size is changed in the browser.
|
||||
* Opera's "zoom" functionality currently does not support text
|
||||
@ -875,6 +888,22 @@ version: 2.6.0
|
||||
*/
|
||||
Module.textResizeEvent = new CustomEvent("textResize");
|
||||
|
||||
/**
|
||||
* Helper utility method, which forces a document level
|
||||
* redraw for Opera, which can help remove repaint
|
||||
* irregularities after applying DOM changes.
|
||||
*
|
||||
* @method YAHOO.widget.Module.forceDocumentRedraw
|
||||
* @static
|
||||
*/
|
||||
Module.forceDocumentRedraw = function() {
|
||||
var docEl = document.documentElement;
|
||||
if (docEl) {
|
||||
docEl.className += " ";
|
||||
docEl.className = YAHOO.lang.trim(docEl.className);
|
||||
}
|
||||
};
|
||||
|
||||
function createModuleTemplate() {
|
||||
|
||||
if (!m_oModuleTemplate) {
|
||||
@ -1223,6 +1252,10 @@ version: 2.6.0
|
||||
* called by the constructor, and sets up all DOM references for
|
||||
* pre-existing markup, and creates required markup if it is not
|
||||
* already present.
|
||||
* <p>
|
||||
* If the element passed in does not have an id, one will be generated
|
||||
* for it.
|
||||
* </p>
|
||||
* @method init
|
||||
* @param {String} el The element ID representing the Module <em>OR</em>
|
||||
* @param {HTMLElement} el The element representing the Module
|
||||
@ -1258,12 +1291,9 @@ version: 2.6.0
|
||||
}
|
||||
}
|
||||
|
||||
this.id = Dom.generateId(el);
|
||||
this.element = el;
|
||||
|
||||
if (el.id) {
|
||||
this.id = el.id;
|
||||
}
|
||||
|
||||
child = this.element.firstChild;
|
||||
|
||||
if (child) {
|
||||
@ -1313,7 +1343,7 @@ version: 2.6.0
|
||||
*/
|
||||
initResizeMonitor: function () {
|
||||
|
||||
var isGeckoWin = (YAHOO.env.ua.gecko && this.platform == "windows");
|
||||
var isGeckoWin = (UA.gecko && this.platform == "windows");
|
||||
if (isGeckoWin) {
|
||||
// Help prevent spinning loading icon which
|
||||
// started with FireFox 2.0.0.8/Win
|
||||
@ -1340,7 +1370,7 @@ version: 2.6.0
|
||||
Module.textResizeEvent.fire();
|
||||
}
|
||||
|
||||
if (!YAHOO.env.ua.opera) {
|
||||
if (!UA.opera) {
|
||||
oIFrame = Dom.get("_yuiResizeMonitor");
|
||||
|
||||
var supportsCWResize = this._supportsCWResize();
|
||||
@ -1348,7 +1378,7 @@ version: 2.6.0
|
||||
if (!oIFrame) {
|
||||
oIFrame = document.createElement("iframe");
|
||||
|
||||
if (this.isSecure && Module.RESIZE_MONITOR_SECURE_URL && YAHOO.env.ua.ie) {
|
||||
if (this.isSecure && Module.RESIZE_MONITOR_SECURE_URL && UA.ie) {
|
||||
oIFrame.src = Module.RESIZE_MONITOR_SECURE_URL;
|
||||
}
|
||||
|
||||
@ -1384,10 +1414,10 @@ version: 2.6.0
|
||||
db.appendChild(oIFrame);
|
||||
}
|
||||
|
||||
oIFrame.style.width = "10em";
|
||||
oIFrame.style.height = "10em";
|
||||
oIFrame.style.top = (-1 * oIFrame.offsetHeight) + "px";
|
||||
oIFrame.style.left = (-1 * oIFrame.offsetWidth) + "px";
|
||||
oIFrame.style.width = "2em";
|
||||
oIFrame.style.height = "2em";
|
||||
oIFrame.style.top = (-1 * (oIFrame.offsetHeight + Module.RESIZE_MONITOR_BUFFER)) + "px";
|
||||
oIFrame.style.left = "0";
|
||||
oIFrame.style.borderWidth = "0";
|
||||
oIFrame.style.visibility = "visible";
|
||||
|
||||
@ -1395,7 +1425,7 @@ version: 2.6.0
|
||||
Don't open/close the document for Gecko like we used to, since it
|
||||
leads to duplicate cookies. (See SourceForge bug #1721755)
|
||||
*/
|
||||
if (YAHOO.env.ua.webkit) {
|
||||
if (UA.webkit) {
|
||||
oDoc = oIFrame.contentWindow.document;
|
||||
oDoc.open();
|
||||
oDoc.close();
|
||||
@ -1436,22 +1466,11 @@ version: 2.6.0
|
||||
Gecko 1.8.1.6+ (FF2.0.0.6+) and all other browsers will fire resize on contentWindow.
|
||||
|
||||
We don't want to start sniffing for patch versions, so fire textResize the same
|
||||
way on all FF, until 1.9 (3.x) is out
|
||||
way on all FF2 flavors
|
||||
*/
|
||||
var bSupported = true;
|
||||
if (YAHOO.env.ua.gecko && YAHOO.env.ua.gecko <= 1.8) {
|
||||
if (UA.gecko && UA.gecko <= 1.8) {
|
||||
bSupported = false;
|
||||
/*
|
||||
var v = navigator.userAgent.match(/rv:([^\s\)]*)/); // From YAHOO.env.ua
|
||||
if (v && v[0]) {
|
||||
var sv = v[0].match(/\d\.\d\.(\d)/);
|
||||
if (sv && sv[1]) {
|
||||
if (parseInt(sv[1], 10) > 0) {
|
||||
bSupported = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
return bSupported;
|
||||
},
|
||||
@ -1464,12 +1483,10 @@ version: 2.6.0
|
||||
*/
|
||||
onDomResize: function (e, obj) {
|
||||
|
||||
var nLeft = -1 * this.resizeMonitor.offsetWidth,
|
||||
nTop = -1 * this.resizeMonitor.offsetHeight;
|
||||
|
||||
this.resizeMonitor.style.top = nTop + "px";
|
||||
this.resizeMonitor.style.left = nLeft + "px";
|
||||
var nTop = -1 * (this.resizeMonitor.offsetHeight + Module.RESIZE_MONITOR_BUFFER);
|
||||
|
||||
this.resizeMonitor.style.top = nTop + "px";
|
||||
this.resizeMonitor.style.left = "0";
|
||||
},
|
||||
|
||||
/**
|
||||
@ -1719,8 +1736,7 @@ version: 2.6.0
|
||||
*/
|
||||
destroy: function () {
|
||||
|
||||
var parent,
|
||||
e;
|
||||
var parent;
|
||||
|
||||
if (this.element) {
|
||||
Event.purgeElement(this.element, true);
|
||||
@ -1789,7 +1805,7 @@ version: 2.6.0
|
||||
this.hideEvent.fire();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Default event handler for the "monitorresize" configuration property
|
||||
* @param {String} type The CustomEvent type (usually the property name)
|
||||
@ -1882,6 +1898,7 @@ version: 2.6.0
|
||||
|
||||
_SUBSCRIBE = "subscribe",
|
||||
_UNSUBSCRIBE = "unsubscribe",
|
||||
_CONTAINED = "contained",
|
||||
|
||||
m_oIFrameTemplate,
|
||||
|
||||
@ -1935,7 +1952,6 @@ version: 2.6.0
|
||||
"FIXED_CENTER": {
|
||||
key: "fixedcenter",
|
||||
value: false,
|
||||
validator: Lang.isBoolean,
|
||||
supercedes: ["iframe", "visible"]
|
||||
},
|
||||
|
||||
@ -1953,7 +1969,6 @@ version: 2.6.0
|
||||
|
||||
"AUTO_FILL_HEIGHT" : {
|
||||
key: "autofillheight",
|
||||
supressEvent: true,
|
||||
supercedes: ["height"],
|
||||
value:"body"
|
||||
},
|
||||
@ -1976,14 +1991,14 @@ version: 2.6.0
|
||||
validator: Lang.isBoolean,
|
||||
supercedes: ["zindex"]
|
||||
},
|
||||
|
||||
|
||||
"PREVENT_CONTEXT_OVERLAP": {
|
||||
key: "preventcontextoverlap",
|
||||
value: false,
|
||||
validator: Lang.isBoolean,
|
||||
supercedes: ["constraintoviewport"]
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
@ -2395,10 +2410,47 @@ version: 2.6.0
|
||||
});
|
||||
|
||||
/**
|
||||
* True if the Overlay should be anchored to the center of
|
||||
* the viewport.
|
||||
* Determines whether or not the Overlay should be anchored
|
||||
* to the center of the viewport.
|
||||
*
|
||||
* <p>This property can be set to:</p>
|
||||
*
|
||||
* <dl>
|
||||
* <dt>true</dt>
|
||||
* <dd>
|
||||
* To enable fixed center positioning
|
||||
* <p>
|
||||
* When enabled, the overlay will
|
||||
* be positioned in the center of viewport when initially displayed, and
|
||||
* will remain in the center of the viewport whenever the window is
|
||||
* scrolled or resized.
|
||||
* </p>
|
||||
* <p>
|
||||
* If the overlay is too big for the viewport,
|
||||
* it's top left corner will be aligned with the top left corner of the viewport.
|
||||
* </p>
|
||||
* </dd>
|
||||
* <dt>false</dt>
|
||||
* <dd>
|
||||
* To disable fixed center positioning.
|
||||
* <p>In this case the overlay can still be
|
||||
* centered as a one-off operation, by invoking the <code>center()</code> method,
|
||||
* however it will not remain centered when the window is scrolled/resized.
|
||||
* </dd>
|
||||
* <dt>"contained"<dt>
|
||||
* <dd>To enable fixed center positioning, as with the <code>true</code> option.
|
||||
* <p>However, unlike setting the property to <code>true</code>,
|
||||
* when the property is set to <code>"contained"</code>, if the overlay is
|
||||
* too big for the viewport, it will not get automatically centered when the
|
||||
* user scrolls or resizes the window (until the window is large enough to contain the
|
||||
* overlay). This is useful in cases where the Overlay has both header and footer
|
||||
* UI controls which the user may need to access.
|
||||
* </p>
|
||||
* </dd>
|
||||
* </dl>
|
||||
*
|
||||
* @config fixedcenter
|
||||
* @type Boolean
|
||||
* @type Boolean | String
|
||||
* @default false
|
||||
*/
|
||||
cfg.addProperty(DEFAULT_CONFIG.FIXED_CENTER.key, {
|
||||
@ -2444,7 +2496,6 @@ version: 2.6.0
|
||||
handler: this.configAutoFillHeight,
|
||||
value : DEFAULT_CONFIG.AUTO_FILL_HEIGHT.value,
|
||||
validator : this._validateAutoFill,
|
||||
suppressEvent: DEFAULT_CONFIG.AUTO_FILL_HEIGHT.suppressEvent,
|
||||
supercedes: DEFAULT_CONFIG.AUTO_FILL_HEIGHT.supercedes
|
||||
});
|
||||
|
||||
@ -2543,6 +2594,23 @@ version: 2.6.0
|
||||
Dom.replaceClass(this.element, "hide-scrollbars", "show-scrollbars");
|
||||
},
|
||||
|
||||
/**
|
||||
* Internal implementation to set the visibility of the overlay in the DOM.
|
||||
*
|
||||
* @method _setDomVisibility
|
||||
* @param {boolean} visible Whether to show or hide the Overlay's outer element
|
||||
* @protected
|
||||
*/
|
||||
_setDomVisibility : function(show) {
|
||||
Dom.setStyle(this.element, "visibility", (show) ? "visible" : "hidden");
|
||||
|
||||
if (show) {
|
||||
Dom.removeClass(this.element, "yui-overlay-hidden");
|
||||
} else {
|
||||
Dom.addClass(this.element, "yui-overlay-hidden");
|
||||
}
|
||||
},
|
||||
|
||||
// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
|
||||
/**
|
||||
* The default event handler fired when the "visible" property is
|
||||
@ -2573,8 +2641,8 @@ version: 2.6.0
|
||||
while (e.nodeType != 9 && e.nodeType != 11) {
|
||||
currentVis = Dom.getStyle(e, "visibility");
|
||||
|
||||
if (currentVis != "inherit") {
|
||||
break;
|
||||
if (currentVis != "inherit") {
|
||||
break;
|
||||
}
|
||||
|
||||
e = e.parentNode;
|
||||
@ -2601,7 +2669,6 @@ version: 2.6.0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (visible) { // Show
|
||||
if (isMacGecko) {
|
||||
this.showMacGeckoScrollbars();
|
||||
@ -2635,10 +2702,12 @@ version: 2.6.0
|
||||
if (currentVis != "visible" || currentVis === "") {
|
||||
this.beforeShowEvent.fire();
|
||||
|
||||
Dom.setStyle(this.element, "visibility", "visible");
|
||||
this._setDomVisibility(true);
|
||||
|
||||
this.cfg.refireEvent("iframe");
|
||||
this.showEvent.fire();
|
||||
} else {
|
||||
this._setDomVisibility(true);
|
||||
}
|
||||
}
|
||||
} else { // Hide
|
||||
@ -2646,7 +2715,7 @@ version: 2.6.0
|
||||
if (isMacGecko) {
|
||||
this.hideMacGeckoScrollbars();
|
||||
}
|
||||
|
||||
|
||||
if (effect) { // Animate out if showing
|
||||
if (currentVis == "visible") {
|
||||
this.beforeHideEvent.fire();
|
||||
@ -2672,31 +2741,58 @@ version: 2.6.0
|
||||
}
|
||||
|
||||
} else if (currentVis === "") {
|
||||
Dom.setStyle(this.element, "visibility", "hidden");
|
||||
this._setDomVisibility(false);
|
||||
}
|
||||
|
||||
} else { // Simple hide
|
||||
|
||||
if (currentVis == "visible" || currentVis === "") {
|
||||
this.beforeHideEvent.fire();
|
||||
Dom.setStyle(this.element, "visibility", "hidden");
|
||||
this._setDomVisibility(false);
|
||||
this.hideEvent.fire();
|
||||
} else {
|
||||
this._setDomVisibility(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Center event handler used for centering on scroll/resize, but only if
|
||||
* the Overlay is visible
|
||||
* Fixed center event handler used for centering on scroll/resize, but only if
|
||||
* the overlay is visible and, if "fixedcenter" is set to "contained", only if
|
||||
* the overlay fits within the viewport.
|
||||
*
|
||||
* @method doCenterOnDOMEvent
|
||||
*/
|
||||
doCenterOnDOMEvent: function () {
|
||||
if (this.cfg.getProperty("visible")) {
|
||||
this.center();
|
||||
var cfg = this.cfg,
|
||||
fc = cfg.getProperty("fixedcenter");
|
||||
|
||||
if (cfg.getProperty("visible")) {
|
||||
if (fc && (fc !== _CONTAINED || this.fitsInViewport())) {
|
||||
this.center();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Determines if the Overlay (including the offset value defined by Overlay.VIEWPORT_OFFSET)
|
||||
* will fit entirely inside the viewport, in both dimensions - width and height.
|
||||
*
|
||||
* @method fitsInViewport
|
||||
* @return boolean true if the Overlay will fit, false if not
|
||||
*/
|
||||
fitsInViewport : function() {
|
||||
var nViewportOffset = Overlay.VIEWPORT_OFFSET,
|
||||
element = this.element,
|
||||
elementWidth = element.offsetWidth,
|
||||
elementHeight = element.offsetHeight,
|
||||
viewportWidth = Dom.getViewportWidth(),
|
||||
viewportHeight = Dom.getViewportHeight();
|
||||
|
||||
return ((elementWidth + nViewportOffset < viewportWidth) && (elementHeight + nViewportOffset < viewportHeight));
|
||||
},
|
||||
|
||||
/**
|
||||
* The default event handler fired when the "fixedcenter" property
|
||||
* is changed.
|
||||
@ -2717,7 +2813,7 @@ version: 2.6.0
|
||||
if (val) {
|
||||
this.center();
|
||||
|
||||
if (!alreadySubscribed(this.beforeShowEvent, this.center, this)) {
|
||||
if (!alreadySubscribed(this.beforeShowEvent, this.center)) {
|
||||
this.beforeShowEvent.subscribe(this.center);
|
||||
}
|
||||
|
||||
@ -2736,7 +2832,7 @@ version: 2.6.0
|
||||
windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* The default event handler fired when the "height" property is changed.
|
||||
* @method configHeight
|
||||
@ -2767,22 +2863,28 @@ version: 2.6.0
|
||||
*/
|
||||
configAutoFillHeight: function (type, args, obj) {
|
||||
var fillEl = args[0],
|
||||
currEl = this.cfg.getProperty("autofillheight");
|
||||
cfg = this.cfg,
|
||||
autoFillHeight = "autofillheight",
|
||||
height = "height",
|
||||
currEl = cfg.getProperty(autoFillHeight),
|
||||
autoFill = this._autoFillOnHeightChange;
|
||||
|
||||
this.cfg.unsubscribeFromConfigEvent("height", this._autoFillOnHeightChange);
|
||||
Module.textResizeEvent.unsubscribe("height", this._autoFillOnHeightChange);
|
||||
cfg.unsubscribeFromConfigEvent(height, autoFill);
|
||||
Module.textResizeEvent.unsubscribe(autoFill);
|
||||
this.changeContentEvent.unsubscribe(autoFill);
|
||||
|
||||
if (currEl && fillEl !== currEl && this[currEl]) {
|
||||
Dom.setStyle(this[currEl], "height", "");
|
||||
Dom.setStyle(this[currEl], height, "");
|
||||
}
|
||||
|
||||
if (fillEl) {
|
||||
fillEl = Lang.trim(fillEl.toLowerCase());
|
||||
|
||||
this.cfg.subscribeToConfigEvent("height", this._autoFillOnHeightChange, this[fillEl], this);
|
||||
Module.textResizeEvent.subscribe(this._autoFillOnHeightChange, this[fillEl], this);
|
||||
cfg.subscribeToConfigEvent(height, autoFill, this[fillEl], this);
|
||||
Module.textResizeEvent.subscribe(autoFill, this[fillEl], this);
|
||||
this.changeContentEvent.subscribe(autoFill, this[fillEl], this);
|
||||
|
||||
this.cfg.setProperty("autofillheight", fillEl, true);
|
||||
cfg.setProperty(autoFillHeight, fillEl, true);
|
||||
}
|
||||
},
|
||||
|
||||
@ -3059,6 +3161,7 @@ version: 2.6.0
|
||||
m_oIFrameTemplate.style.margin = "0";
|
||||
m_oIFrameTemplate.style.padding = "0";
|
||||
m_oIFrameTemplate.style.display = "none";
|
||||
m_oIFrameTemplate.tabIndex = -1;
|
||||
}
|
||||
|
||||
oIFrame = m_oIFrameTemplate.cloneNode(false);
|
||||
@ -3430,8 +3533,8 @@ version: 2.6.0
|
||||
nLeftRegionWidth,
|
||||
nRightRegionWidth,
|
||||
|
||||
leftConstraint,
|
||||
rightConstraint,
|
||||
leftConstraint = scrollX + nViewportOffset,
|
||||
rightConstraint = scrollX + viewPortWidth - nOverlayOffsetWidth - nViewportOffset,
|
||||
|
||||
xNew = x,
|
||||
|
||||
@ -3523,42 +3626,52 @@ version: 2.6.0
|
||||
|
||||
};
|
||||
|
||||
|
||||
if (this.cfg.getProperty("preventcontextoverlap") && aContext &&
|
||||
oOverlapPositions[(aContext[1] + aContext[2])]) {
|
||||
|
||||
if (bCanConstrain) {
|
||||
|
||||
oContextEl = aContext[0];
|
||||
nContextElX = Dom.getX(oContextEl) - scrollX;
|
||||
nContextElWidth = oContextEl.offsetWidth;
|
||||
nLeftRegionWidth = nContextElX;
|
||||
nRightRegionWidth = (viewPortWidth - (nContextElX + nContextElWidth));
|
||||
|
||||
setHorizontalPosition();
|
||||
|
||||
}
|
||||
|
||||
xNew = this.cfg.getProperty("x");
|
||||
// Determine if the current value for the Overlay's "x" configuration property will
|
||||
// result in the Overlay being positioned outside the boundaries of the viewport
|
||||
|
||||
}
|
||||
else {
|
||||
if (x < leftConstraint || x > rightConstraint) {
|
||||
|
||||
// The current value for the Overlay's "x" configuration property WILL
|
||||
// result in the Overlay being positioned outside the boundaries of the viewport
|
||||
|
||||
if (bCanConstrain) {
|
||||
|
||||
// If the "preventcontextoverlap" configuration property is set to "true",
|
||||
// try to flip the Overlay to both keep it inside the boundaries of the
|
||||
// viewport AND from overlaping its context element.
|
||||
|
||||
leftConstraint = scrollX + nViewportOffset;
|
||||
rightConstraint =
|
||||
scrollX + viewPortWidth - nOverlayOffsetWidth - nViewportOffset;
|
||||
|
||||
if (x < leftConstraint) {
|
||||
xNew = leftConstraint;
|
||||
} else if (x > rightConstraint) {
|
||||
xNew = rightConstraint;
|
||||
if (this.cfg.getProperty("preventcontextoverlap") && aContext &&
|
||||
oOverlapPositions[(aContext[1] + aContext[2])]) {
|
||||
|
||||
oContextEl = aContext[0];
|
||||
nContextElX = Dom.getX(oContextEl) - scrollX;
|
||||
nContextElWidth = oContextEl.offsetWidth;
|
||||
nLeftRegionWidth = nContextElX;
|
||||
nRightRegionWidth = (viewPortWidth - (nContextElX + nContextElWidth));
|
||||
|
||||
setHorizontalPosition();
|
||||
|
||||
xNew = this.cfg.getProperty("x");
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
if (x < leftConstraint) {
|
||||
xNew = leftConstraint;
|
||||
} else if (x > rightConstraint) {
|
||||
xNew = rightConstraint;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
// The "x" configuration property cannot be set to a value that will keep
|
||||
// entire Overlay inside the boundary of the viewport. Therefore, set
|
||||
// the "x" configuration property to scrollY to keep as much of the
|
||||
// Overlay inside the viewport as possible.
|
||||
xNew = nViewportOffset + scrollX;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return xNew;
|
||||
@ -3596,8 +3709,8 @@ version: 2.6.0
|
||||
nTopRegionHeight,
|
||||
nBottomRegionHeight,
|
||||
|
||||
topConstraint,
|
||||
bottomConstraint,
|
||||
topConstraint = scrollY + nViewportOffset,
|
||||
bottomConstraint = scrollY + viewPortHeight - nOverlayOffsetHeight - nViewportOffset,
|
||||
|
||||
yNew = y,
|
||||
|
||||
@ -3688,42 +3801,56 @@ version: 2.6.0
|
||||
};
|
||||
|
||||
|
||||
if (this.cfg.getProperty("preventcontextoverlap") && aContext &&
|
||||
oOverlapPositions[(aContext[1] + aContext[2])]) {
|
||||
// Determine if the current value for the Overlay's "y" configuration property will
|
||||
// result in the Overlay being positioned outside the boundaries of the viewport
|
||||
|
||||
if (bCanConstrain) {
|
||||
if (y < topConstraint || y > bottomConstraint) {
|
||||
|
||||
// The current value for the Overlay's "y" configuration property WILL
|
||||
// result in the Overlay being positioned outside the boundaries of the viewport
|
||||
|
||||
oContextEl = aContext[0];
|
||||
nContextElHeight = oContextEl.offsetHeight;
|
||||
nContextElY = (Dom.getY(oContextEl) - scrollY);
|
||||
|
||||
nTopRegionHeight = nContextElY;
|
||||
nBottomRegionHeight = (viewPortHeight - (nContextElY + nContextElHeight));
|
||||
|
||||
setVerticalPosition();
|
||||
if (bCanConstrain) {
|
||||
|
||||
// If the "preventcontextoverlap" configuration property is set to "true",
|
||||
// try to flip the Overlay to both keep it inside the boundaries of the
|
||||
// viewport AND from overlaping its context element.
|
||||
|
||||
if (this.cfg.getProperty("preventcontextoverlap") && aContext &&
|
||||
oOverlapPositions[(aContext[1] + aContext[2])]) {
|
||||
|
||||
oContextEl = aContext[0];
|
||||
nContextElHeight = oContextEl.offsetHeight;
|
||||
nContextElY = (Dom.getY(oContextEl) - scrollY);
|
||||
|
||||
nTopRegionHeight = nContextElY;
|
||||
nBottomRegionHeight = (viewPortHeight - (nContextElY + nContextElHeight));
|
||||
|
||||
setVerticalPosition();
|
||||
|
||||
yNew = oOverlay.cfg.getProperty("y");
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
if (y < topConstraint) {
|
||||
yNew = topConstraint;
|
||||
} else if (y > bottomConstraint) {
|
||||
yNew = bottomConstraint;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
yNew = oOverlay.cfg.getProperty("y");
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
if (bCanConstrain) {
|
||||
|
||||
topConstraint = scrollY + nViewportOffset;
|
||||
bottomConstraint =
|
||||
scrollY + viewPortHeight - nOverlayOffsetHeight - nViewportOffset;
|
||||
|
||||
if (y < topConstraint) {
|
||||
yNew = topConstraint;
|
||||
} else if (y > bottomConstraint) {
|
||||
yNew = bottomConstraint;
|
||||
}
|
||||
} else {
|
||||
else {
|
||||
|
||||
// The "y" configuration property cannot be set to a value that will keep
|
||||
// entire Overlay inside the boundary of the viewport. Therefore, set
|
||||
// the "y" configuration property to scrollY to keep as much of the
|
||||
// Overlay inside the viewport as possible.
|
||||
|
||||
yNew = nViewportOffset + scrollY;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return yNew;
|
||||
@ -3771,6 +3898,10 @@ version: 2.6.0
|
||||
|
||||
this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]);
|
||||
this.cfg.refireEvent("iframe");
|
||||
|
||||
if (UA.webkit) {
|
||||
this.forceContainerRedraw();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -3865,7 +3996,10 @@ version: 2.6.0
|
||||
* out the containers height
|
||||
*/
|
||||
_autoFillOnHeightChange : function(type, args, el) {
|
||||
this.fillHeight(el);
|
||||
var height = this.cfg.getProperty("height");
|
||||
if ((height && height !== "auto") || (height === 0)) {
|
||||
this.fillHeight(el);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -3941,13 +4075,13 @@ version: 2.6.0
|
||||
Dom.removeClass(container, "yui-override-padding");
|
||||
}
|
||||
|
||||
remaining = total - filled;
|
||||
remaining = Math.max(total - filled, 0);
|
||||
|
||||
Dom.setStyle(el, "height", remaining + "px");
|
||||
|
||||
// Re-adjust height if required, to account for el padding and border
|
||||
if (el.offsetHeight != remaining) {
|
||||
remaining = remaining - (el.offsetHeight - remaining);
|
||||
remaining = Math.max(remaining - (el.offsetHeight - remaining), 0);
|
||||
}
|
||||
Dom.setStyle(el, "height", remaining + "px");
|
||||
}
|
||||
@ -4048,6 +4182,26 @@ version: 2.6.0
|
||||
Overlay.superclass.destroy.call(this);
|
||||
},
|
||||
|
||||
/**
|
||||
* Can be used to force the container to repaint/redraw it's contents.
|
||||
* <p>
|
||||
* By default applies and then removes a 1px bottom margin through the
|
||||
* application/removal of a "yui-force-redraw" class.
|
||||
* </p>
|
||||
* <p>
|
||||
* It is currently used by Overlay to force a repaint for webkit
|
||||
* browsers, when centering.
|
||||
* </p>
|
||||
* @method forceContainerRedraw
|
||||
*/
|
||||
forceContainerRedraw : function() {
|
||||
var c = this;
|
||||
Dom.addClass(c.element, "yui-force-redraw");
|
||||
setTimeout(function() {
|
||||
Dom.removeClass(c.element, "yui-force-redraw");
|
||||
}, 0);
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns a String representation of the object.
|
||||
* @method toString
|
||||
@ -4495,8 +4649,7 @@ version: 2.6.0
|
||||
*/
|
||||
register: function (overlay) {
|
||||
|
||||
var zIndex,
|
||||
registered = false,
|
||||
var registered = false,
|
||||
i,
|
||||
n;
|
||||
|
||||
@ -4792,7 +4945,7 @@ version: 2.6.0
|
||||
|
||||
obj.handleUnderlayStart();
|
||||
|
||||
Dom.setStyle(obj.overlay.element, "visibility", "visible");
|
||||
obj.overlay._setDomVisibility(true);
|
||||
Dom.setStyle(obj.overlay.element, "opacity", 0);
|
||||
};
|
||||
|
||||
@ -4819,7 +4972,7 @@ version: 2.6.0
|
||||
if (obj.overlay.element.style.filter) {
|
||||
obj.overlay.element.style.filter = null;
|
||||
}
|
||||
Dom.setStyle(obj.overlay.element, "visibility", "hidden");
|
||||
obj.overlay._setDomVisibility(false);
|
||||
Dom.setStyle(obj.overlay.element, "opacity", 1);
|
||||
|
||||
obj.handleUnderlayComplete();
|
||||
@ -4878,7 +5031,7 @@ version: 2.6.0
|
||||
if (Dom.getStyle(obj.overlay.element, "visibility") ==
|
||||
"hidden" && currentX < x) {
|
||||
|
||||
Dom.setStyle(obj.overlay.element, "visibility", "visible");
|
||||
obj.overlay._setDomVisibility(true);
|
||||
|
||||
}
|
||||
|
||||
@ -4914,8 +5067,8 @@ version: 2.6.0
|
||||
};
|
||||
|
||||
slide.handleCompleteAnimateOut = function (type, args, obj) {
|
||||
Dom.setStyle(obj.overlay.element, "visibility", "hidden");
|
||||
|
||||
obj.overlay._setDomVisibility(false);
|
||||
|
||||
obj.overlay.cfg.setProperty("xy", [x, y]);
|
||||
obj.animateOutCompleteEvent.fire();
|
||||
};
|
||||
@ -5056,4 +5209,4 @@ version: 2.6.0
|
||||
|
||||
})();
|
||||
|
||||
YAHOO.register("containercore", YAHOO.widget.Module, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("containercore", YAHOO.widget.Module, {version: "2.7.0", build: "1799"});
|
||||
|
File diff suppressed because one or more lines are too long
449
webdir/javascript/yui/container/container_core.js
vendored
449
webdir/javascript/yui/container/container_core.js
vendored
@ -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 () {
|
||||
|
||||
@ -733,6 +733,7 @@ version: 2.6.0
|
||||
Event = YAHOO.util.Event,
|
||||
CustomEvent = YAHOO.util.CustomEvent,
|
||||
Module = YAHOO.widget.Module,
|
||||
UA = YAHOO.env.ua,
|
||||
|
||||
m_oModuleTemplate,
|
||||
m_oHeaderTemplate,
|
||||
@ -777,24 +778,24 @@ version: 2.6.0
|
||||
value: true,
|
||||
validator: YAHOO.lang.isBoolean
|
||||
},
|
||||
|
||||
"EFFECT": {
|
||||
key: "effect",
|
||||
suppressEvent: true,
|
||||
supercedes: ["visible"]
|
||||
|
||||
"EFFECT": {
|
||||
key: "effect",
|
||||
suppressEvent: true,
|
||||
supercedes: ["visible"]
|
||||
},
|
||||
|
||||
"MONITOR_RESIZE": {
|
||||
key: "monitorresize",
|
||||
value: true
|
||||
"MONITOR_RESIZE": {
|
||||
key: "monitorresize",
|
||||
value: true
|
||||
},
|
||||
|
||||
"APPEND_TO_DOCUMENT_BODY": {
|
||||
key: "appendtodocumentbody",
|
||||
"APPEND_TO_DOCUMENT_BODY": {
|
||||
key: "appendtodocumentbody",
|
||||
value: false
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Constant representing the prefix path to use for non-secure images
|
||||
* @property YAHOO.widget.Module.IMG_ROOT
|
||||
@ -858,7 +859,19 @@ version: 2.6.0
|
||||
* @type String
|
||||
*/
|
||||
Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
|
||||
|
||||
|
||||
/**
|
||||
* Constant representing the buffer amount (in pixels) to use when positioning
|
||||
* the text resize monitor offscreen. The resize monitor is positioned
|
||||
* offscreen by an amount eqaul to its offsetHeight + the buffer value.
|
||||
*
|
||||
* @property YAHOO.widget.Module.RESIZE_MONITOR_BUFFER
|
||||
* @static
|
||||
* @type Number
|
||||
*/
|
||||
// Set to 1, to work around pixel offset in IE8, which increases when zoom is used
|
||||
Module.RESIZE_MONITOR_BUFFER = 1;
|
||||
|
||||
/**
|
||||
* Singleton CustomEvent fired when the font size is changed in the browser.
|
||||
* Opera's "zoom" functionality currently does not support text
|
||||
@ -867,6 +880,22 @@ version: 2.6.0
|
||||
*/
|
||||
Module.textResizeEvent = new CustomEvent("textResize");
|
||||
|
||||
/**
|
||||
* Helper utility method, which forces a document level
|
||||
* redraw for Opera, which can help remove repaint
|
||||
* irregularities after applying DOM changes.
|
||||
*
|
||||
* @method YAHOO.widget.Module.forceDocumentRedraw
|
||||
* @static
|
||||
*/
|
||||
Module.forceDocumentRedraw = function() {
|
||||
var docEl = document.documentElement;
|
||||
if (docEl) {
|
||||
docEl.className += " ";
|
||||
docEl.className = YAHOO.lang.trim(docEl.className);
|
||||
}
|
||||
};
|
||||
|
||||
function createModuleTemplate() {
|
||||
|
||||
if (!m_oModuleTemplate) {
|
||||
@ -1215,6 +1244,10 @@ version: 2.6.0
|
||||
* called by the constructor, and sets up all DOM references for
|
||||
* pre-existing markup, and creates required markup if it is not
|
||||
* already present.
|
||||
* <p>
|
||||
* If the element passed in does not have an id, one will be generated
|
||||
* for it.
|
||||
* </p>
|
||||
* @method init
|
||||
* @param {String} el The element ID representing the Module <em>OR</em>
|
||||
* @param {HTMLElement} el The element representing the Module
|
||||
@ -1250,12 +1283,9 @@ version: 2.6.0
|
||||
}
|
||||
}
|
||||
|
||||
this.id = Dom.generateId(el);
|
||||
this.element = el;
|
||||
|
||||
if (el.id) {
|
||||
this.id = el.id;
|
||||
}
|
||||
|
||||
child = this.element.firstChild;
|
||||
|
||||
if (child) {
|
||||
@ -1305,7 +1335,7 @@ version: 2.6.0
|
||||
*/
|
||||
initResizeMonitor: function () {
|
||||
|
||||
var isGeckoWin = (YAHOO.env.ua.gecko && this.platform == "windows");
|
||||
var isGeckoWin = (UA.gecko && this.platform == "windows");
|
||||
if (isGeckoWin) {
|
||||
// Help prevent spinning loading icon which
|
||||
// started with FireFox 2.0.0.8/Win
|
||||
@ -1332,7 +1362,7 @@ version: 2.6.0
|
||||
Module.textResizeEvent.fire();
|
||||
}
|
||||
|
||||
if (!YAHOO.env.ua.opera) {
|
||||
if (!UA.opera) {
|
||||
oIFrame = Dom.get("_yuiResizeMonitor");
|
||||
|
||||
var supportsCWResize = this._supportsCWResize();
|
||||
@ -1340,7 +1370,7 @@ version: 2.6.0
|
||||
if (!oIFrame) {
|
||||
oIFrame = document.createElement("iframe");
|
||||
|
||||
if (this.isSecure && Module.RESIZE_MONITOR_SECURE_URL && YAHOO.env.ua.ie) {
|
||||
if (this.isSecure && Module.RESIZE_MONITOR_SECURE_URL && UA.ie) {
|
||||
oIFrame.src = Module.RESIZE_MONITOR_SECURE_URL;
|
||||
}
|
||||
|
||||
@ -1376,10 +1406,10 @@ version: 2.6.0
|
||||
db.appendChild(oIFrame);
|
||||
}
|
||||
|
||||
oIFrame.style.width = "10em";
|
||||
oIFrame.style.height = "10em";
|
||||
oIFrame.style.top = (-1 * oIFrame.offsetHeight) + "px";
|
||||
oIFrame.style.left = (-1 * oIFrame.offsetWidth) + "px";
|
||||
oIFrame.style.width = "2em";
|
||||
oIFrame.style.height = "2em";
|
||||
oIFrame.style.top = (-1 * (oIFrame.offsetHeight + Module.RESIZE_MONITOR_BUFFER)) + "px";
|
||||
oIFrame.style.left = "0";
|
||||
oIFrame.style.borderWidth = "0";
|
||||
oIFrame.style.visibility = "visible";
|
||||
|
||||
@ -1387,7 +1417,7 @@ version: 2.6.0
|
||||
Don't open/close the document for Gecko like we used to, since it
|
||||
leads to duplicate cookies. (See SourceForge bug #1721755)
|
||||
*/
|
||||
if (YAHOO.env.ua.webkit) {
|
||||
if (UA.webkit) {
|
||||
oDoc = oIFrame.contentWindow.document;
|
||||
oDoc.open();
|
||||
oDoc.close();
|
||||
@ -1428,22 +1458,11 @@ version: 2.6.0
|
||||
Gecko 1.8.1.6+ (FF2.0.0.6+) and all other browsers will fire resize on contentWindow.
|
||||
|
||||
We don't want to start sniffing for patch versions, so fire textResize the same
|
||||
way on all FF, until 1.9 (3.x) is out
|
||||
way on all FF2 flavors
|
||||
*/
|
||||
var bSupported = true;
|
||||
if (YAHOO.env.ua.gecko && YAHOO.env.ua.gecko <= 1.8) {
|
||||
if (UA.gecko && UA.gecko <= 1.8) {
|
||||
bSupported = false;
|
||||
/*
|
||||
var v = navigator.userAgent.match(/rv:([^\s\)]*)/); // From YAHOO.env.ua
|
||||
if (v && v[0]) {
|
||||
var sv = v[0].match(/\d\.\d\.(\d)/);
|
||||
if (sv && sv[1]) {
|
||||
if (parseInt(sv[1], 10) > 0) {
|
||||
bSupported = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
return bSupported;
|
||||
},
|
||||
@ -1456,12 +1475,10 @@ version: 2.6.0
|
||||
*/
|
||||
onDomResize: function (e, obj) {
|
||||
|
||||
var nLeft = -1 * this.resizeMonitor.offsetWidth,
|
||||
nTop = -1 * this.resizeMonitor.offsetHeight;
|
||||
|
||||
this.resizeMonitor.style.top = nTop + "px";
|
||||
this.resizeMonitor.style.left = nLeft + "px";
|
||||
var nTop = -1 * (this.resizeMonitor.offsetHeight + Module.RESIZE_MONITOR_BUFFER);
|
||||
|
||||
this.resizeMonitor.style.top = nTop + "px";
|
||||
this.resizeMonitor.style.left = "0";
|
||||
},
|
||||
|
||||
/**
|
||||
@ -1710,8 +1727,7 @@ version: 2.6.0
|
||||
*/
|
||||
destroy: function () {
|
||||
|
||||
var parent,
|
||||
e;
|
||||
var parent;
|
||||
|
||||
if (this.element) {
|
||||
Event.purgeElement(this.element, true);
|
||||
@ -1780,7 +1796,7 @@ version: 2.6.0
|
||||
this.hideEvent.fire();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Default event handler for the "monitorresize" configuration property
|
||||
* @param {String} type The CustomEvent type (usually the property name)
|
||||
@ -1873,6 +1889,7 @@ version: 2.6.0
|
||||
|
||||
_SUBSCRIBE = "subscribe",
|
||||
_UNSUBSCRIBE = "unsubscribe",
|
||||
_CONTAINED = "contained",
|
||||
|
||||
m_oIFrameTemplate,
|
||||
|
||||
@ -1926,7 +1943,6 @@ version: 2.6.0
|
||||
"FIXED_CENTER": {
|
||||
key: "fixedcenter",
|
||||
value: false,
|
||||
validator: Lang.isBoolean,
|
||||
supercedes: ["iframe", "visible"]
|
||||
},
|
||||
|
||||
@ -1944,7 +1960,6 @@ version: 2.6.0
|
||||
|
||||
"AUTO_FILL_HEIGHT" : {
|
||||
key: "autofillheight",
|
||||
supressEvent: true,
|
||||
supercedes: ["height"],
|
||||
value:"body"
|
||||
},
|
||||
@ -1967,14 +1982,14 @@ version: 2.6.0
|
||||
validator: Lang.isBoolean,
|
||||
supercedes: ["zindex"]
|
||||
},
|
||||
|
||||
|
||||
"PREVENT_CONTEXT_OVERLAP": {
|
||||
key: "preventcontextoverlap",
|
||||
value: false,
|
||||
validator: Lang.isBoolean,
|
||||
supercedes: ["constraintoviewport"]
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
@ -2386,10 +2401,47 @@ version: 2.6.0
|
||||
});
|
||||
|
||||
/**
|
||||
* True if the Overlay should be anchored to the center of
|
||||
* the viewport.
|
||||
* Determines whether or not the Overlay should be anchored
|
||||
* to the center of the viewport.
|
||||
*
|
||||
* <p>This property can be set to:</p>
|
||||
*
|
||||
* <dl>
|
||||
* <dt>true</dt>
|
||||
* <dd>
|
||||
* To enable fixed center positioning
|
||||
* <p>
|
||||
* When enabled, the overlay will
|
||||
* be positioned in the center of viewport when initially displayed, and
|
||||
* will remain in the center of the viewport whenever the window is
|
||||
* scrolled or resized.
|
||||
* </p>
|
||||
* <p>
|
||||
* If the overlay is too big for the viewport,
|
||||
* it's top left corner will be aligned with the top left corner of the viewport.
|
||||
* </p>
|
||||
* </dd>
|
||||
* <dt>false</dt>
|
||||
* <dd>
|
||||
* To disable fixed center positioning.
|
||||
* <p>In this case the overlay can still be
|
||||
* centered as a one-off operation, by invoking the <code>center()</code> method,
|
||||
* however it will not remain centered when the window is scrolled/resized.
|
||||
* </dd>
|
||||
* <dt>"contained"<dt>
|
||||
* <dd>To enable fixed center positioning, as with the <code>true</code> option.
|
||||
* <p>However, unlike setting the property to <code>true</code>,
|
||||
* when the property is set to <code>"contained"</code>, if the overlay is
|
||||
* too big for the viewport, it will not get automatically centered when the
|
||||
* user scrolls or resizes the window (until the window is large enough to contain the
|
||||
* overlay). This is useful in cases where the Overlay has both header and footer
|
||||
* UI controls which the user may need to access.
|
||||
* </p>
|
||||
* </dd>
|
||||
* </dl>
|
||||
*
|
||||
* @config fixedcenter
|
||||
* @type Boolean
|
||||
* @type Boolean | String
|
||||
* @default false
|
||||
*/
|
||||
cfg.addProperty(DEFAULT_CONFIG.FIXED_CENTER.key, {
|
||||
@ -2435,7 +2487,6 @@ version: 2.6.0
|
||||
handler: this.configAutoFillHeight,
|
||||
value : DEFAULT_CONFIG.AUTO_FILL_HEIGHT.value,
|
||||
validator : this._validateAutoFill,
|
||||
suppressEvent: DEFAULT_CONFIG.AUTO_FILL_HEIGHT.suppressEvent,
|
||||
supercedes: DEFAULT_CONFIG.AUTO_FILL_HEIGHT.supercedes
|
||||
});
|
||||
|
||||
@ -2534,6 +2585,23 @@ version: 2.6.0
|
||||
Dom.replaceClass(this.element, "hide-scrollbars", "show-scrollbars");
|
||||
},
|
||||
|
||||
/**
|
||||
* Internal implementation to set the visibility of the overlay in the DOM.
|
||||
*
|
||||
* @method _setDomVisibility
|
||||
* @param {boolean} visible Whether to show or hide the Overlay's outer element
|
||||
* @protected
|
||||
*/
|
||||
_setDomVisibility : function(show) {
|
||||
Dom.setStyle(this.element, "visibility", (show) ? "visible" : "hidden");
|
||||
|
||||
if (show) {
|
||||
Dom.removeClass(this.element, "yui-overlay-hidden");
|
||||
} else {
|
||||
Dom.addClass(this.element, "yui-overlay-hidden");
|
||||
}
|
||||
},
|
||||
|
||||
// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
|
||||
/**
|
||||
* The default event handler fired when the "visible" property is
|
||||
@ -2564,8 +2632,8 @@ version: 2.6.0
|
||||
while (e.nodeType != 9 && e.nodeType != 11) {
|
||||
currentVis = Dom.getStyle(e, "visibility");
|
||||
|
||||
if (currentVis != "inherit") {
|
||||
break;
|
||||
if (currentVis != "inherit") {
|
||||
break;
|
||||
}
|
||||
|
||||
e = e.parentNode;
|
||||
@ -2592,7 +2660,6 @@ version: 2.6.0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (visible) { // Show
|
||||
if (isMacGecko) {
|
||||
this.showMacGeckoScrollbars();
|
||||
@ -2626,10 +2693,12 @@ version: 2.6.0
|
||||
if (currentVis != "visible" || currentVis === "") {
|
||||
this.beforeShowEvent.fire();
|
||||
|
||||
Dom.setStyle(this.element, "visibility", "visible");
|
||||
this._setDomVisibility(true);
|
||||
|
||||
this.cfg.refireEvent("iframe");
|
||||
this.showEvent.fire();
|
||||
} else {
|
||||
this._setDomVisibility(true);
|
||||
}
|
||||
}
|
||||
} else { // Hide
|
||||
@ -2637,7 +2706,7 @@ version: 2.6.0
|
||||
if (isMacGecko) {
|
||||
this.hideMacGeckoScrollbars();
|
||||
}
|
||||
|
||||
|
||||
if (effect) { // Animate out if showing
|
||||
if (currentVis == "visible") {
|
||||
this.beforeHideEvent.fire();
|
||||
@ -2663,31 +2732,58 @@ version: 2.6.0
|
||||
}
|
||||
|
||||
} else if (currentVis === "") {
|
||||
Dom.setStyle(this.element, "visibility", "hidden");
|
||||
this._setDomVisibility(false);
|
||||
}
|
||||
|
||||
} else { // Simple hide
|
||||
|
||||
if (currentVis == "visible" || currentVis === "") {
|
||||
this.beforeHideEvent.fire();
|
||||
Dom.setStyle(this.element, "visibility", "hidden");
|
||||
this._setDomVisibility(false);
|
||||
this.hideEvent.fire();
|
||||
} else {
|
||||
this._setDomVisibility(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Center event handler used for centering on scroll/resize, but only if
|
||||
* the Overlay is visible
|
||||
* Fixed center event handler used for centering on scroll/resize, but only if
|
||||
* the overlay is visible and, if "fixedcenter" is set to "contained", only if
|
||||
* the overlay fits within the viewport.
|
||||
*
|
||||
* @method doCenterOnDOMEvent
|
||||
*/
|
||||
doCenterOnDOMEvent: function () {
|
||||
if (this.cfg.getProperty("visible")) {
|
||||
this.center();
|
||||
var cfg = this.cfg,
|
||||
fc = cfg.getProperty("fixedcenter");
|
||||
|
||||
if (cfg.getProperty("visible")) {
|
||||
if (fc && (fc !== _CONTAINED || this.fitsInViewport())) {
|
||||
this.center();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Determines if the Overlay (including the offset value defined by Overlay.VIEWPORT_OFFSET)
|
||||
* will fit entirely inside the viewport, in both dimensions - width and height.
|
||||
*
|
||||
* @method fitsInViewport
|
||||
* @return boolean true if the Overlay will fit, false if not
|
||||
*/
|
||||
fitsInViewport : function() {
|
||||
var nViewportOffset = Overlay.VIEWPORT_OFFSET,
|
||||
element = this.element,
|
||||
elementWidth = element.offsetWidth,
|
||||
elementHeight = element.offsetHeight,
|
||||
viewportWidth = Dom.getViewportWidth(),
|
||||
viewportHeight = Dom.getViewportHeight();
|
||||
|
||||
return ((elementWidth + nViewportOffset < viewportWidth) && (elementHeight + nViewportOffset < viewportHeight));
|
||||
},
|
||||
|
||||
/**
|
||||
* The default event handler fired when the "fixedcenter" property
|
||||
* is changed.
|
||||
@ -2708,7 +2804,7 @@ version: 2.6.0
|
||||
if (val) {
|
||||
this.center();
|
||||
|
||||
if (!alreadySubscribed(this.beforeShowEvent, this.center, this)) {
|
||||
if (!alreadySubscribed(this.beforeShowEvent, this.center)) {
|
||||
this.beforeShowEvent.subscribe(this.center);
|
||||
}
|
||||
|
||||
@ -2727,7 +2823,7 @@ version: 2.6.0
|
||||
windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* The default event handler fired when the "height" property is changed.
|
||||
* @method configHeight
|
||||
@ -2758,22 +2854,28 @@ version: 2.6.0
|
||||
*/
|
||||
configAutoFillHeight: function (type, args, obj) {
|
||||
var fillEl = args[0],
|
||||
currEl = this.cfg.getProperty("autofillheight");
|
||||
cfg = this.cfg,
|
||||
autoFillHeight = "autofillheight",
|
||||
height = "height",
|
||||
currEl = cfg.getProperty(autoFillHeight),
|
||||
autoFill = this._autoFillOnHeightChange;
|
||||
|
||||
this.cfg.unsubscribeFromConfigEvent("height", this._autoFillOnHeightChange);
|
||||
Module.textResizeEvent.unsubscribe("height", this._autoFillOnHeightChange);
|
||||
cfg.unsubscribeFromConfigEvent(height, autoFill);
|
||||
Module.textResizeEvent.unsubscribe(autoFill);
|
||||
this.changeContentEvent.unsubscribe(autoFill);
|
||||
|
||||
if (currEl && fillEl !== currEl && this[currEl]) {
|
||||
Dom.setStyle(this[currEl], "height", "");
|
||||
Dom.setStyle(this[currEl], height, "");
|
||||
}
|
||||
|
||||
if (fillEl) {
|
||||
fillEl = Lang.trim(fillEl.toLowerCase());
|
||||
|
||||
this.cfg.subscribeToConfigEvent("height", this._autoFillOnHeightChange, this[fillEl], this);
|
||||
Module.textResizeEvent.subscribe(this._autoFillOnHeightChange, this[fillEl], this);
|
||||
cfg.subscribeToConfigEvent(height, autoFill, this[fillEl], this);
|
||||
Module.textResizeEvent.subscribe(autoFill, this[fillEl], this);
|
||||
this.changeContentEvent.subscribe(autoFill, this[fillEl], this);
|
||||
|
||||
this.cfg.setProperty("autofillheight", fillEl, true);
|
||||
cfg.setProperty(autoFillHeight, fillEl, true);
|
||||
}
|
||||
},
|
||||
|
||||
@ -3049,6 +3151,7 @@ version: 2.6.0
|
||||
m_oIFrameTemplate.style.margin = "0";
|
||||
m_oIFrameTemplate.style.padding = "0";
|
||||
m_oIFrameTemplate.style.display = "none";
|
||||
m_oIFrameTemplate.tabIndex = -1;
|
||||
}
|
||||
|
||||
oIFrame = m_oIFrameTemplate.cloneNode(false);
|
||||
@ -3420,8 +3523,8 @@ version: 2.6.0
|
||||
nLeftRegionWidth,
|
||||
nRightRegionWidth,
|
||||
|
||||
leftConstraint,
|
||||
rightConstraint,
|
||||
leftConstraint = scrollX + nViewportOffset,
|
||||
rightConstraint = scrollX + viewPortWidth - nOverlayOffsetWidth - nViewportOffset,
|
||||
|
||||
xNew = x,
|
||||
|
||||
@ -3513,42 +3616,52 @@ version: 2.6.0
|
||||
|
||||
};
|
||||
|
||||
|
||||
if (this.cfg.getProperty("preventcontextoverlap") && aContext &&
|
||||
oOverlapPositions[(aContext[1] + aContext[2])]) {
|
||||
|
||||
if (bCanConstrain) {
|
||||
|
||||
oContextEl = aContext[0];
|
||||
nContextElX = Dom.getX(oContextEl) - scrollX;
|
||||
nContextElWidth = oContextEl.offsetWidth;
|
||||
nLeftRegionWidth = nContextElX;
|
||||
nRightRegionWidth = (viewPortWidth - (nContextElX + nContextElWidth));
|
||||
|
||||
setHorizontalPosition();
|
||||
|
||||
}
|
||||
|
||||
xNew = this.cfg.getProperty("x");
|
||||
// Determine if the current value for the Overlay's "x" configuration property will
|
||||
// result in the Overlay being positioned outside the boundaries of the viewport
|
||||
|
||||
}
|
||||
else {
|
||||
if (x < leftConstraint || x > rightConstraint) {
|
||||
|
||||
// The current value for the Overlay's "x" configuration property WILL
|
||||
// result in the Overlay being positioned outside the boundaries of the viewport
|
||||
|
||||
if (bCanConstrain) {
|
||||
|
||||
// If the "preventcontextoverlap" configuration property is set to "true",
|
||||
// try to flip the Overlay to both keep it inside the boundaries of the
|
||||
// viewport AND from overlaping its context element.
|
||||
|
||||
leftConstraint = scrollX + nViewportOffset;
|
||||
rightConstraint =
|
||||
scrollX + viewPortWidth - nOverlayOffsetWidth - nViewportOffset;
|
||||
|
||||
if (x < leftConstraint) {
|
||||
xNew = leftConstraint;
|
||||
} else if (x > rightConstraint) {
|
||||
xNew = rightConstraint;
|
||||
if (this.cfg.getProperty("preventcontextoverlap") && aContext &&
|
||||
oOverlapPositions[(aContext[1] + aContext[2])]) {
|
||||
|
||||
oContextEl = aContext[0];
|
||||
nContextElX = Dom.getX(oContextEl) - scrollX;
|
||||
nContextElWidth = oContextEl.offsetWidth;
|
||||
nLeftRegionWidth = nContextElX;
|
||||
nRightRegionWidth = (viewPortWidth - (nContextElX + nContextElWidth));
|
||||
|
||||
setHorizontalPosition();
|
||||
|
||||
xNew = this.cfg.getProperty("x");
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
if (x < leftConstraint) {
|
||||
xNew = leftConstraint;
|
||||
} else if (x > rightConstraint) {
|
||||
xNew = rightConstraint;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
// The "x" configuration property cannot be set to a value that will keep
|
||||
// entire Overlay inside the boundary of the viewport. Therefore, set
|
||||
// the "x" configuration property to scrollY to keep as much of the
|
||||
// Overlay inside the viewport as possible.
|
||||
xNew = nViewportOffset + scrollX;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return xNew;
|
||||
@ -3586,8 +3699,8 @@ version: 2.6.0
|
||||
nTopRegionHeight,
|
||||
nBottomRegionHeight,
|
||||
|
||||
topConstraint,
|
||||
bottomConstraint,
|
||||
topConstraint = scrollY + nViewportOffset,
|
||||
bottomConstraint = scrollY + viewPortHeight - nOverlayOffsetHeight - nViewportOffset,
|
||||
|
||||
yNew = y,
|
||||
|
||||
@ -3678,42 +3791,56 @@ version: 2.6.0
|
||||
};
|
||||
|
||||
|
||||
if (this.cfg.getProperty("preventcontextoverlap") && aContext &&
|
||||
oOverlapPositions[(aContext[1] + aContext[2])]) {
|
||||
// Determine if the current value for the Overlay's "y" configuration property will
|
||||
// result in the Overlay being positioned outside the boundaries of the viewport
|
||||
|
||||
if (bCanConstrain) {
|
||||
if (y < topConstraint || y > bottomConstraint) {
|
||||
|
||||
// The current value for the Overlay's "y" configuration property WILL
|
||||
// result in the Overlay being positioned outside the boundaries of the viewport
|
||||
|
||||
oContextEl = aContext[0];
|
||||
nContextElHeight = oContextEl.offsetHeight;
|
||||
nContextElY = (Dom.getY(oContextEl) - scrollY);
|
||||
|
||||
nTopRegionHeight = nContextElY;
|
||||
nBottomRegionHeight = (viewPortHeight - (nContextElY + nContextElHeight));
|
||||
|
||||
setVerticalPosition();
|
||||
if (bCanConstrain) {
|
||||
|
||||
// If the "preventcontextoverlap" configuration property is set to "true",
|
||||
// try to flip the Overlay to both keep it inside the boundaries of the
|
||||
// viewport AND from overlaping its context element.
|
||||
|
||||
if (this.cfg.getProperty("preventcontextoverlap") && aContext &&
|
||||
oOverlapPositions[(aContext[1] + aContext[2])]) {
|
||||
|
||||
oContextEl = aContext[0];
|
||||
nContextElHeight = oContextEl.offsetHeight;
|
||||
nContextElY = (Dom.getY(oContextEl) - scrollY);
|
||||
|
||||
nTopRegionHeight = nContextElY;
|
||||
nBottomRegionHeight = (viewPortHeight - (nContextElY + nContextElHeight));
|
||||
|
||||
setVerticalPosition();
|
||||
|
||||
yNew = oOverlay.cfg.getProperty("y");
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
if (y < topConstraint) {
|
||||
yNew = topConstraint;
|
||||
} else if (y > bottomConstraint) {
|
||||
yNew = bottomConstraint;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
yNew = oOverlay.cfg.getProperty("y");
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
if (bCanConstrain) {
|
||||
|
||||
topConstraint = scrollY + nViewportOffset;
|
||||
bottomConstraint =
|
||||
scrollY + viewPortHeight - nOverlayOffsetHeight - nViewportOffset;
|
||||
|
||||
if (y < topConstraint) {
|
||||
yNew = topConstraint;
|
||||
} else if (y > bottomConstraint) {
|
||||
yNew = bottomConstraint;
|
||||
}
|
||||
} else {
|
||||
else {
|
||||
|
||||
// The "y" configuration property cannot be set to a value that will keep
|
||||
// entire Overlay inside the boundary of the viewport. Therefore, set
|
||||
// the "y" configuration property to scrollY to keep as much of the
|
||||
// Overlay inside the viewport as possible.
|
||||
|
||||
yNew = nViewportOffset + scrollY;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return yNew;
|
||||
@ -3761,6 +3888,10 @@ version: 2.6.0
|
||||
|
||||
this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]);
|
||||
this.cfg.refireEvent("iframe");
|
||||
|
||||
if (UA.webkit) {
|
||||
this.forceContainerRedraw();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -3855,7 +3986,10 @@ version: 2.6.0
|
||||
* out the containers height
|
||||
*/
|
||||
_autoFillOnHeightChange : function(type, args, el) {
|
||||
this.fillHeight(el);
|
||||
var height = this.cfg.getProperty("height");
|
||||
if ((height && height !== "auto") || (height === 0)) {
|
||||
this.fillHeight(el);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -3931,13 +4065,13 @@ version: 2.6.0
|
||||
Dom.removeClass(container, "yui-override-padding");
|
||||
}
|
||||
|
||||
remaining = total - filled;
|
||||
remaining = Math.max(total - filled, 0);
|
||||
|
||||
Dom.setStyle(el, "height", remaining + "px");
|
||||
|
||||
// Re-adjust height if required, to account for el padding and border
|
||||
if (el.offsetHeight != remaining) {
|
||||
remaining = remaining - (el.offsetHeight - remaining);
|
||||
remaining = Math.max(remaining - (el.offsetHeight - remaining), 0);
|
||||
}
|
||||
Dom.setStyle(el, "height", remaining + "px");
|
||||
}
|
||||
@ -4038,6 +4172,26 @@ version: 2.6.0
|
||||
Overlay.superclass.destroy.call(this);
|
||||
},
|
||||
|
||||
/**
|
||||
* Can be used to force the container to repaint/redraw it's contents.
|
||||
* <p>
|
||||
* By default applies and then removes a 1px bottom margin through the
|
||||
* application/removal of a "yui-force-redraw" class.
|
||||
* </p>
|
||||
* <p>
|
||||
* It is currently used by Overlay to force a repaint for webkit
|
||||
* browsers, when centering.
|
||||
* </p>
|
||||
* @method forceContainerRedraw
|
||||
*/
|
||||
forceContainerRedraw : function() {
|
||||
var c = this;
|
||||
Dom.addClass(c.element, "yui-force-redraw");
|
||||
setTimeout(function() {
|
||||
Dom.removeClass(c.element, "yui-force-redraw");
|
||||
}, 0);
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns a String representation of the object.
|
||||
* @method toString
|
||||
@ -4485,8 +4639,7 @@ version: 2.6.0
|
||||
*/
|
||||
register: function (overlay) {
|
||||
|
||||
var zIndex,
|
||||
registered = false,
|
||||
var registered = false,
|
||||
i,
|
||||
n;
|
||||
|
||||
@ -4782,7 +4935,7 @@ version: 2.6.0
|
||||
|
||||
obj.handleUnderlayStart();
|
||||
|
||||
Dom.setStyle(obj.overlay.element, "visibility", "visible");
|
||||
obj.overlay._setDomVisibility(true);
|
||||
Dom.setStyle(obj.overlay.element, "opacity", 0);
|
||||
};
|
||||
|
||||
@ -4809,7 +4962,7 @@ version: 2.6.0
|
||||
if (obj.overlay.element.style.filter) {
|
||||
obj.overlay.element.style.filter = null;
|
||||
}
|
||||
Dom.setStyle(obj.overlay.element, "visibility", "hidden");
|
||||
obj.overlay._setDomVisibility(false);
|
||||
Dom.setStyle(obj.overlay.element, "opacity", 1);
|
||||
|
||||
obj.handleUnderlayComplete();
|
||||
@ -4868,7 +5021,7 @@ version: 2.6.0
|
||||
if (Dom.getStyle(obj.overlay.element, "visibility") ==
|
||||
"hidden" && currentX < x) {
|
||||
|
||||
Dom.setStyle(obj.overlay.element, "visibility", "visible");
|
||||
obj.overlay._setDomVisibility(true);
|
||||
|
||||
}
|
||||
|
||||
@ -4904,8 +5057,8 @@ version: 2.6.0
|
||||
};
|
||||
|
||||
slide.handleCompleteAnimateOut = function (type, args, obj) {
|
||||
Dom.setStyle(obj.overlay.element, "visibility", "hidden");
|
||||
|
||||
obj.overlay._setDomVisibility(false);
|
||||
|
||||
obj.overlay.cfg.setProperty("xy", [x, y]);
|
||||
obj.animateOutCompleteEvent.fire();
|
||||
};
|
||||
@ -5046,4 +5199,4 @@ version: 2.6.0
|
||||
|
||||
})();
|
||||
|
||||
YAHOO.register("containercore", YAHOO.widget.Module, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("containercore", YAHOO.widget.Module, {version: "2.7.0", build: "1799"});
|
||||
|
23
webdir/javascript/yui/cookie/cookie-debug.js
vendored
23
webdir/javascript/yui/cookie/cookie-debug.js
vendored
@ -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
|
||||
*/
|
||||
/**
|
||||
* Utilities for cookie management
|
||||
@ -136,18 +136,22 @@ YAHOO.util.Cookie = {
|
||||
var decodeValue = (decode === false ? function(s){return s;} : decodeURIComponent);
|
||||
|
||||
if (/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(text)){
|
||||
var cookieParts /*:Array*/ = text.split(/;\s/g);
|
||||
var cookieName /*:String*/ = null;
|
||||
var cookieValue /*:String*/ = null;
|
||||
var cookieNameValue /*:Array*/ = null;
|
||||
var cookieParts /*:Array*/ = text.split(/;\s/g),
|
||||
cookieName /*:String*/ = null,
|
||||
cookieValue /*:String*/ = null,
|
||||
cookieNameValue /*:Array*/ = null;
|
||||
|
||||
for (var i=0, len=cookieParts.length; i < len; i++){
|
||||
|
||||
//check for normally-formatted cookie (name-value)
|
||||
cookieNameValue = cookieParts[i].match(/([^=]+)=/i);
|
||||
if (cookieNameValue instanceof Array){
|
||||
cookieName = decodeURIComponent(cookieNameValue[1]);
|
||||
cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));
|
||||
try {
|
||||
cookieName = decodeURIComponent(cookieNameValue[1]);
|
||||
cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));
|
||||
} catch (ex){
|
||||
//ignore the entire cookie - encoding is likely invalid
|
||||
}
|
||||
} else {
|
||||
//means the cookie does not have an "=", so treat it as a boolean flag
|
||||
cookieName = decodeURIComponent(cookieParts[i]);
|
||||
@ -421,4 +425,5 @@ YAHOO.util.Cookie = {
|
||||
}
|
||||
|
||||
};
|
||||
YAHOO.register("cookie", YAHOO.util.Cookie, {version: "2.6.0", build: "1321"});
|
||||
|
||||
YAHOO.register("cookie", YAHOO.util.Cookie, {version: "2.7.0", build: "1799"});
|
||||
|
6
webdir/javascript/yui/cookie/cookie-min.js
vendored
6
webdir/javascript/yui/cookie/cookie-min.js
vendored
@ -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
|
||||
*/
|
||||
YAHOO.namespace("util");YAHOO.util.Cookie={_createCookieString:function(B,D,C,A){var F=YAHOO.lang;var E=encodeURIComponent(B)+"="+(C?encodeURIComponent(D):D);if(F.isObject(A)){if(A.expires instanceof Date){E+="; expires="+A.expires.toGMTString();}if(F.isString(A.path)&&A.path!=""){E+="; path="+A.path;}if(F.isString(A.domain)&&A.domain!=""){E+="; domain="+A.domain;}if(A.secure===true){E+="; secure";}}return E;},_createCookieHashString:function(B){var D=YAHOO.lang;if(!D.isObject(B)){throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");}var C=new Array();for(var A in B){if(D.hasOwnProperty(B,A)&&!D.isFunction(B[A])&&!D.isUndefined(B[A])){C.push(encodeURIComponent(A)+"="+encodeURIComponent(String(B[A])));}}return C.join("&");},_parseCookieHash:function(E){var D=E.split("&"),F=null,C=new Object();if(E.length>0){for(var B=0,A=D.length;B<A;B++){F=D[B].split("=");C[decodeURIComponent(F[0])]=decodeURIComponent(F[1]);}}return C;},_parseCookieString:function(I,A){var J=new Object();if(YAHOO.lang.isString(I)&&I.length>0){var B=(A===false?function(K){return K;}:decodeURIComponent);if(/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(I)){var G=I.split(/;\s/g);var H=null;var C=null;var E=null;for(var D=0,F=G.length;D<F;D++){E=G[D].match(/([^=]+)=/i);if(E instanceof Array){H=decodeURIComponent(E[1]);C=B(G[D].substring(E[1].length+1));}else{H=decodeURIComponent(G[D]);C=H;}J[H]=C;}}}return J;},get:function(A,B){var D=YAHOO.lang;var C=this._parseCookieString(document.cookie);if(!D.isString(A)||A===""){throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.");}if(D.isUndefined(C[A])){return null;}if(!D.isFunction(B)){return C[A];}else{return B(C[A]);}},getSub:function(A,C,B){var E=YAHOO.lang;var D=this.getSubs(A);if(D!==null){if(!E.isString(C)||C===""){throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.");}if(E.isUndefined(D[C])){return null;}if(!E.isFunction(B)){return D[C];}else{return B(D[C]);}}else{return null;}},getSubs:function(A){if(!YAHOO.lang.isString(A)||A===""){throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");}var B=this._parseCookieString(document.cookie,false);if(YAHOO.lang.isString(B[A])){return this._parseCookieHash(B[A]);}return null;},remove:function(B,A){if(!YAHOO.lang.isString(B)||B===""){throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");}A=A||{};A.expires=new Date(0);return this.set(B,"",A);},removeSub:function(B,D,A){if(!YAHOO.lang.isString(B)||B===""){throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.");}if(!YAHOO.lang.isString(D)||D===""){throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.");}var C=this.getSubs(B);if(YAHOO.lang.isObject(C)&&YAHOO.lang.hasOwnProperty(C,D)){delete C[D];return this.setSubs(B,C,A);}else{return"";}},set:function(B,C,A){var E=YAHOO.lang;if(!E.isString(B)){throw new TypeError("Cookie.set(): Cookie name must be a string.");}if(E.isUndefined(C)){throw new TypeError("Cookie.set(): Value cannot be undefined.");}var D=this._createCookieString(B,C,true,A);document.cookie=D;return D;},setSub:function(B,D,C,A){var F=YAHOO.lang;if(!F.isString(B)||B===""){throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");}if(!F.isString(D)||D===""){throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.");}if(F.isUndefined(C)){throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.");}var E=this.getSubs(B);if(!F.isObject(E)){E=new Object();}E[D]=C;return this.setSubs(B,E,A);},setSubs:function(B,C,A){var E=YAHOO.lang;if(!E.isString(B)){throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");}if(!E.isObject(C)){throw new TypeError("Cookie.setSubs(): Cookie value must be an object.");}var D=this._createCookieString(B,this._createCookieHashString(C),false,A);document.cookie=D;return D;}};YAHOO.register("cookie",YAHOO.util.Cookie,{version:"2.6.0",build:"1321"});
|
||||
YAHOO.namespace("util");YAHOO.util.Cookie={_createCookieString:function(B,D,C,A){var F=YAHOO.lang;var E=encodeURIComponent(B)+"="+(C?encodeURIComponent(D):D);if(F.isObject(A)){if(A.expires instanceof Date){E+="; expires="+A.expires.toGMTString();}if(F.isString(A.path)&&A.path!=""){E+="; path="+A.path;}if(F.isString(A.domain)&&A.domain!=""){E+="; domain="+A.domain;}if(A.secure===true){E+="; secure";}}return E;},_createCookieHashString:function(B){var D=YAHOO.lang;if(!D.isObject(B)){throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");}var C=new Array();for(var A in B){if(D.hasOwnProperty(B,A)&&!D.isFunction(B[A])&&!D.isUndefined(B[A])){C.push(encodeURIComponent(A)+"="+encodeURIComponent(String(B[A])));}}return C.join("&");},_parseCookieHash:function(E){var D=E.split("&"),F=null,C=new Object();if(E.length>0){for(var B=0,A=D.length;B<A;B++){F=D[B].split("=");C[decodeURIComponent(F[0])]=decodeURIComponent(F[1]);}}return C;},_parseCookieString:function(J,A){var K=new Object();if(YAHOO.lang.isString(J)&&J.length>0){var B=(A===false?function(L){return L;}:decodeURIComponent);if(/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(J)){var H=J.split(/;\s/g),I=null,C=null,E=null;for(var D=0,F=H.length;D<F;D++){E=H[D].match(/([^=]+)=/i);if(E instanceof Array){try{I=decodeURIComponent(E[1]);C=B(H[D].substring(E[1].length+1));}catch(G){}}else{I=decodeURIComponent(H[D]);C=I;}K[I]=C;}}}return K;},get:function(A,B){var D=YAHOO.lang;var C=this._parseCookieString(document.cookie);if(!D.isString(A)||A===""){throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.");}if(D.isUndefined(C[A])){return null;}if(!D.isFunction(B)){return C[A];}else{return B(C[A]);}},getSub:function(A,C,B){var E=YAHOO.lang;var D=this.getSubs(A);if(D!==null){if(!E.isString(C)||C===""){throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.");}if(E.isUndefined(D[C])){return null;}if(!E.isFunction(B)){return D[C];}else{return B(D[C]);}}else{return null;}},getSubs:function(A){if(!YAHOO.lang.isString(A)||A===""){throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");}var B=this._parseCookieString(document.cookie,false);if(YAHOO.lang.isString(B[A])){return this._parseCookieHash(B[A]);}return null;},remove:function(B,A){if(!YAHOO.lang.isString(B)||B===""){throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");}A=A||{};A.expires=new Date(0);return this.set(B,"",A);},removeSub:function(B,D,A){if(!YAHOO.lang.isString(B)||B===""){throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.");}if(!YAHOO.lang.isString(D)||D===""){throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.");}var C=this.getSubs(B);if(YAHOO.lang.isObject(C)&&YAHOO.lang.hasOwnProperty(C,D)){delete C[D];return this.setSubs(B,C,A);}else{return"";}},set:function(B,C,A){var E=YAHOO.lang;if(!E.isString(B)){throw new TypeError("Cookie.set(): Cookie name must be a string.");}if(E.isUndefined(C)){throw new TypeError("Cookie.set(): Value cannot be undefined.");}var D=this._createCookieString(B,C,true,A);document.cookie=D;return D;},setSub:function(B,D,C,A){var F=YAHOO.lang;if(!F.isString(B)||B===""){throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");}if(!F.isString(D)||D===""){throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.");}if(F.isUndefined(C)){throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.");}var E=this.getSubs(B);if(!F.isObject(E)){E=new Object();}E[D]=C;return this.setSubs(B,E,A);},setSubs:function(B,C,A){var E=YAHOO.lang;if(!E.isString(B)){throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");}if(!E.isObject(C)){throw new TypeError("Cookie.setSubs(): Cookie value must be an object.");}var D=this._createCookieString(B,this._createCookieHashString(C),false,A);document.cookie=D;return D;}};YAHOO.register("cookie",YAHOO.util.Cookie,{version:"2.7.0",build:"1799"});
|
23
webdir/javascript/yui/cookie/cookie.js
vendored
23
webdir/javascript/yui/cookie/cookie.js
vendored
@ -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
|
||||
*/
|
||||
/**
|
||||
* Utilities for cookie management
|
||||
@ -136,18 +136,22 @@ YAHOO.util.Cookie = {
|
||||
var decodeValue = (decode === false ? function(s){return s;} : decodeURIComponent);
|
||||
|
||||
if (/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(text)){
|
||||
var cookieParts /*:Array*/ = text.split(/;\s/g);
|
||||
var cookieName /*:String*/ = null;
|
||||
var cookieValue /*:String*/ = null;
|
||||
var cookieNameValue /*:Array*/ = null;
|
||||
var cookieParts /*:Array*/ = text.split(/;\s/g),
|
||||
cookieName /*:String*/ = null,
|
||||
cookieValue /*:String*/ = null,
|
||||
cookieNameValue /*:Array*/ = null;
|
||||
|
||||
for (var i=0, len=cookieParts.length; i < len; i++){
|
||||
|
||||
//check for normally-formatted cookie (name-value)
|
||||
cookieNameValue = cookieParts[i].match(/([^=]+)=/i);
|
||||
if (cookieNameValue instanceof Array){
|
||||
cookieName = decodeURIComponent(cookieNameValue[1]);
|
||||
cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));
|
||||
try {
|
||||
cookieName = decodeURIComponent(cookieNameValue[1]);
|
||||
cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));
|
||||
} catch (ex){
|
||||
//ignore the entire cookie - encoding is likely invalid
|
||||
}
|
||||
} else {
|
||||
//means the cookie does not have an "=", so treat it as a boolean flag
|
||||
cookieName = decodeURIComponent(cookieParts[i]);
|
||||
@ -421,4 +425,5 @@ YAHOO.util.Cookie = {
|
||||
}
|
||||
|
||||
};
|
||||
YAHOO.register("cookie", YAHOO.util.Cookie, {version: "2.6.0", build: "1321"});
|
||||
|
||||
YAHOO.register("cookie", YAHOO.util.Cookie, {version: "2.7.0", build: "1799"});
|
||||
|
367
webdir/javascript/yui/datasource/datasource-debug.js
vendored
367
webdir/javascript/yui/datasource/datasource-debug.js
vendored
@ -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 () {
|
||||
|
||||
@ -352,7 +352,7 @@ issueCallback : function (callback,params,error,scope) {
|
||||
* @method DataSourceBase.parseString
|
||||
* @param oData {String | Number | Boolean | Date | Array | Object} Data to parse.
|
||||
* The special values null and undefined will return null.
|
||||
* @return {Number} A string, or null.
|
||||
* @return {String} A string, or null.
|
||||
* @static
|
||||
*/
|
||||
parseString : function(oData) {
|
||||
@ -378,12 +378,16 @@ parseString : function(oData) {
|
||||
* Converts data to type Number.
|
||||
*
|
||||
* @method DataSourceBase.parseNumber
|
||||
* @param oData {String | Number | Boolean | Null} Data to convert. Beware, null
|
||||
* returns as 0.
|
||||
* @return {Number} A number, or null if NaN.
|
||||
* @param oData {String | Number | Boolean} Data to convert. Note, the following
|
||||
* values return as null: null, undefined, NaN, "".
|
||||
* @return {Number} A number, or null.
|
||||
* @static
|
||||
*/
|
||||
parseNumber : function(oData) {
|
||||
if(!lang.isValue(oData) || (oData === "")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
//Convert to number
|
||||
var number = oData * 1;
|
||||
|
||||
@ -581,6 +585,17 @@ responseType : DS.TYPE_UNKNOWN,
|
||||
*/
|
||||
responseSchema : null,
|
||||
|
||||
/**
|
||||
* Additional arguments passed to the JSON parse routine. The JSON string
|
||||
* is the assumed first argument (where applicable). This property is not
|
||||
* set by default, but the parse methods will use it if present.
|
||||
*
|
||||
* @property parseJSONArgs
|
||||
* @type {MIXED|Array} If an Array, contents are used as individual arguments.
|
||||
* Otherwise, value is used as an additional argument.
|
||||
*/
|
||||
// property intentionally undefined
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DataSourceBase public methods
|
||||
@ -773,7 +788,28 @@ clearAllIntervals : function() {
|
||||
},
|
||||
|
||||
/**
|
||||
* First looks for cached response, then sends request to live data.
|
||||
* First looks for cached response, then sends request to live data. The
|
||||
* following arguments are passed to the callback function:
|
||||
* <dl>
|
||||
* <dt><code>oRequest</code></dt>
|
||||
* <dd>The same value that was passed in as the first argument to sendRequest.</dd>
|
||||
* <dt><code>oParsedResponse</code></dt>
|
||||
* <dd>An object literal containing the following properties:
|
||||
* <dl>
|
||||
* <dt><code>tId</code></dt>
|
||||
* <dd>Unique transaction ID number.</dd>
|
||||
* <dt><code>results</code></dt>
|
||||
* <dd>Schema-parsed data results.</dd>
|
||||
* <dt><code>error</code></dt>
|
||||
* <dd>True in cases of data error.</dd>
|
||||
* <dt><code>cached</code></dt>
|
||||
* <dd>True when response is returned from DataSource cache.</dd>
|
||||
* <dt><code>meta</code></dt>
|
||||
* <dd>Schema-parsed meta data.</dd>
|
||||
* </dl>
|
||||
* <dt><code>oPayload</code></dt>
|
||||
* <dd>The same value as was passed in as <code>argument</code> in the oCallback object literal.</dd>
|
||||
* </dl>
|
||||
*
|
||||
* @method sendRequest
|
||||
* @param oRequest {Object} Request object.
|
||||
@ -905,6 +941,47 @@ handleResponse : function(oRequest, oRawResponse, oCallback, oCaller, tId) {
|
||||
if(xhr && oRawResponse && oRawResponse.responseText) {
|
||||
oFullResponse = oRawResponse.responseText;
|
||||
}
|
||||
try {
|
||||
// Convert to JS array if it's a string
|
||||
if(lang.isString(oFullResponse)) {
|
||||
var parseArgs = [oFullResponse].concat(this.parseJSONArgs);
|
||||
// Check for YUI JSON Util
|
||||
if(lang.JSON) {
|
||||
oFullResponse = lang.JSON.parse.apply(lang.JSON,parseArgs);
|
||||
}
|
||||
// Look for JSON parsers using an API similar to json2.js
|
||||
else if(window.JSON && JSON.parse) {
|
||||
oFullResponse = JSON.parse.apply(JSON,parseArgs);
|
||||
}
|
||||
// Look for JSON parsers using an API similar to json.js
|
||||
else if(oFullResponse.parseJSON) {
|
||||
oFullResponse = oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));
|
||||
}
|
||||
// No JSON lib found so parse the string
|
||||
else {
|
||||
// Trim leading spaces
|
||||
while (oFullResponse.length > 0 &&
|
||||
(oFullResponse.charAt(0) != "{") &&
|
||||
(oFullResponse.charAt(0) != "[")) {
|
||||
oFullResponse = oFullResponse.substring(1, oFullResponse.length);
|
||||
}
|
||||
|
||||
if(oFullResponse.length > 0) {
|
||||
// Strip extraneous stuff at the end
|
||||
var arrayEnd =
|
||||
Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));
|
||||
oFullResponse = oFullResponse.substring(0,arrayEnd+1);
|
||||
|
||||
// Turn the string into an object literal...
|
||||
// ...eval is necessary here
|
||||
oFullResponse = eval("(" + oFullResponse + ")");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(e1) {
|
||||
}
|
||||
oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
|
||||
oParsedResponse = this.parseArrayData(oRequest, oFullResponse);
|
||||
break;
|
||||
@ -915,17 +992,18 @@ handleResponse : function(oRequest, oRawResponse, oCallback, oCaller, tId) {
|
||||
try {
|
||||
// Convert to JSON object if it's a string
|
||||
if(lang.isString(oFullResponse)) {
|
||||
var parseArgs = [oFullResponse].concat(this.parseJSONArgs);
|
||||
// Check for YUI JSON Util
|
||||
if(lang.JSON) {
|
||||
oFullResponse = lang.JSON.parse(oFullResponse);
|
||||
oFullResponse = lang.JSON.parse.apply(lang.JSON,parseArgs);
|
||||
}
|
||||
// Look for JSON parsers using an API similar to json2.js
|
||||
else if(window.JSON && JSON.parse) {
|
||||
oFullResponse = JSON.parse(oFullResponse);
|
||||
oFullResponse = JSON.parse.apply(JSON,parseArgs);
|
||||
}
|
||||
// Look for JSON parsers using an API similar to json.js
|
||||
else if(oFullResponse.parseJSON) {
|
||||
oFullResponse = oFullResponse.parseJSON();
|
||||
oFullResponse = oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));
|
||||
}
|
||||
// No JSON lib found so parse the string
|
||||
else {
|
||||
@ -957,7 +1035,9 @@ handleResponse : function(oRequest, oRawResponse, oCallback, oCaller, tId) {
|
||||
break;
|
||||
case DS.TYPE_HTMLTABLE:
|
||||
if(xhr && oRawResponse.responseText) {
|
||||
oFullResponse = oRawResponse.responseText;
|
||||
var el = document.createElement('div');
|
||||
el.innerHTML = oRawResponse.responseText;
|
||||
oFullResponse = el.getElementsByTagName('table')[0];
|
||||
}
|
||||
oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
|
||||
oParsedResponse = this.parseHTMLTableData(oRequest, oFullResponse);
|
||||
@ -1290,11 +1370,10 @@ parseXMLResult : function(result) {
|
||||
// ...or in a node
|
||||
else {
|
||||
var xmlNode = result.getElementsByTagName(key);
|
||||
if(xmlNode && xmlNode.item(0) && xmlNode.item(0)) {
|
||||
data = xmlNode.item(0).firstChild.nodeValue;
|
||||
if(xmlNode && xmlNode.item(0)) {
|
||||
var item = xmlNode.item(0);
|
||||
// For IE, then DOM...
|
||||
data = (item.text) ? item.text : (item.textContent) ? item.textContent : null;
|
||||
data = (item) ? ((item.text) ? item.text : (item.textContent) ? item.textContent : null) : null;
|
||||
// ...then fallback, but check for multiple child nodes
|
||||
if(!data) {
|
||||
var datapieces = [];
|
||||
@ -1536,9 +1615,9 @@ parseJSONData : function(oRequest, oFullResponse) {
|
||||
}
|
||||
|
||||
// Process the results, flattening the records and/or applying parsers if needed
|
||||
//if (fieldParsers.length || fieldPaths.length) {
|
||||
for (i = resultsList.length - 1; i >= 0; --i) {
|
||||
var r = resultsList[i], rec = {};
|
||||
for (i = resultsList.length - 1; i >= 0; --i) {
|
||||
var r = resultsList[i], rec = {};
|
||||
if(r) {
|
||||
for (j = simpleFields.length - 1; j >= 0; --j) {
|
||||
// Bug 1777850: data might be held in an array
|
||||
rec[simpleFields[j].key] =
|
||||
@ -1557,9 +1636,9 @@ parseJSONData : function(oRequest, oFullResponse) {
|
||||
rec[p] = null;
|
||||
}
|
||||
}
|
||||
results[i] = rec;
|
||||
}
|
||||
//}
|
||||
results[i] = rec;
|
||||
}
|
||||
}
|
||||
else {
|
||||
results = resultsList;
|
||||
@ -1576,7 +1655,7 @@ parseJSONData : function(oRequest, oFullResponse) {
|
||||
}
|
||||
|
||||
} else {
|
||||
YAHOO.log("JSON data could not be parsed: " +
|
||||
YAHOO.log("JSON data could not be parsed due to invalid responseSchema.resultsList or invalid response: " +
|
||||
lang.dump(oFullResponse), "error", this.toString());
|
||||
|
||||
oParsedResponse.error = true;
|
||||
@ -1610,41 +1689,47 @@ parseHTMLTableData : function(oRequest, oFullResponse) {
|
||||
var fields = this.responseSchema.fields;
|
||||
var oParsedResponse = {results:[]};
|
||||
|
||||
// Iterate through each TBODY
|
||||
for(var i=0; i<elTable.tBodies.length; i++) {
|
||||
var elTbody = elTable.tBodies[i];
|
||||
|
||||
// Iterate through each TR
|
||||
for(var j=elTbody.rows.length-1; j>-1; j--) {
|
||||
var elRow = elTbody.rows[j];
|
||||
var oResult = {};
|
||||
|
||||
for(var k=fields.length-1; k>-1; k--) {
|
||||
var field = fields[k];
|
||||
var key = (lang.isValue(field.key)) ? field.key : field;
|
||||
var data = elRow.cells[k].innerHTML;
|
||||
|
||||
// Backward compatibility
|
||||
if(!field.parser && field.converter) {
|
||||
field.parser = field.converter;
|
||||
YAHOO.log("The field property converter has been deprecated" +
|
||||
" in favor of parser", "warn", this.toString());
|
||||
if(lang.isArray(fields)) {
|
||||
// Iterate through each TBODY
|
||||
for(var i=0; i<elTable.tBodies.length; i++) {
|
||||
var elTbody = elTable.tBodies[i];
|
||||
|
||||
// Iterate through each TR
|
||||
for(var j=elTbody.rows.length-1; j>-1; j--) {
|
||||
var elRow = elTbody.rows[j];
|
||||
var oResult = {};
|
||||
|
||||
for(var k=fields.length-1; k>-1; k--) {
|
||||
var field = fields[k];
|
||||
var key = (lang.isValue(field.key)) ? field.key : field;
|
||||
var data = elRow.cells[k].innerHTML;
|
||||
|
||||
// Backward compatibility
|
||||
if(!field.parser && field.converter) {
|
||||
field.parser = field.converter;
|
||||
YAHOO.log("The field property converter has been deprecated" +
|
||||
" in favor of parser", "warn", this.toString());
|
||||
}
|
||||
var parser = (typeof field.parser === 'function') ?
|
||||
field.parser :
|
||||
DS.Parser[field.parser+''];
|
||||
if(parser) {
|
||||
data = parser.call(this, data);
|
||||
}
|
||||
// Safety measure
|
||||
if(data === undefined) {
|
||||
data = null;
|
||||
}
|
||||
oResult[key] = data;
|
||||
}
|
||||
var parser = (typeof field.parser === 'function') ?
|
||||
field.parser :
|
||||
DS.Parser[field.parser+''];
|
||||
if(parser) {
|
||||
data = parser.call(this, data);
|
||||
}
|
||||
// Safety measure
|
||||
if(data === undefined) {
|
||||
data = null;
|
||||
}
|
||||
oResult[key] = data;
|
||||
oParsedResponse.results[j] = oResult;
|
||||
}
|
||||
oParsedResponse.results[j] = oResult;
|
||||
}
|
||||
}
|
||||
else {
|
||||
bError = true;
|
||||
YAHOO.log("Invalid responseSchema.fields", "error", this.toString());
|
||||
}
|
||||
|
||||
if(bError) {
|
||||
YAHOO.log("HTML TABLE data could not be parsed: " +
|
||||
@ -1707,7 +1792,7 @@ util.LocalDataSource = function(oLiveData, oConfigs) {
|
||||
this.responseType = DS.TYPE_JSARRAY;
|
||||
}
|
||||
|
||||
this.constructor.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
util.LocalDataSource.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
};
|
||||
|
||||
// LocalDataSource extends DataSourceBase
|
||||
@ -1746,12 +1831,30 @@ util.FunctionDataSource = function(oLiveData, oConfigs) {
|
||||
this.dataType = DS.TYPE_JSFUNCTION;
|
||||
oLiveData = oLiveData || function() {};
|
||||
|
||||
this.constructor.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
util.FunctionDataSource.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
};
|
||||
|
||||
// FunctionDataSource extends DataSourceBase
|
||||
lang.extend(util.FunctionDataSource, DS, {
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FunctionDataSource public properties
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Context in which to execute the function. By default, is the DataSource
|
||||
* instance itself. If set, the function will receive the DataSource instance
|
||||
* as an additional argument.
|
||||
*
|
||||
* @property scope
|
||||
* @type Object
|
||||
* @default null
|
||||
*/
|
||||
scope : null,
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FunctionDataSource public methods
|
||||
@ -1774,7 +1877,9 @@ makeConnection : function(oRequest, oCallback, oCaller) {
|
||||
|
||||
// Pass the request in as a parameter and
|
||||
// forward the return value to the handler
|
||||
var oRawResponse = this.liveData(oRequest);
|
||||
|
||||
|
||||
var oRawResponse = (this.scope) ? this.liveData.call(this.scope, oRequest, this) : this.liveData(oRequest);
|
||||
|
||||
// Try to sniff data type if it has not been defined
|
||||
if(this.responseType === DS.TYPE_UNKNOWN) {
|
||||
@ -1835,7 +1940,7 @@ util.ScriptNodeDataSource = function(oLiveData, oConfigs) {
|
||||
this.dataType = DS.TYPE_SCRIPTNODE;
|
||||
oLiveData = oLiveData || "";
|
||||
|
||||
this.constructor.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
util.ScriptNodeDataSource.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
};
|
||||
|
||||
// ScriptNodeDataSource extends DataSourceBase
|
||||
@ -1905,6 +2010,19 @@ generateRequestCallback : function(id) {
|
||||
return "&" + this.scriptCallbackParam + "=YAHOO.util.ScriptNodeDataSource.callbacks["+id+"]" ;
|
||||
},
|
||||
|
||||
/**
|
||||
* Overridable method gives implementers access to modify the URI before the dynamic
|
||||
* script node gets inserted. Implementers should take care not to return an
|
||||
* invalid URI.
|
||||
*
|
||||
* @method doBeforeGetScriptNode
|
||||
* @param {String} URI to the script
|
||||
* @return {String} URI to the script
|
||||
*/
|
||||
doBeforeGetScriptNode : function(sUri) {
|
||||
return sUri;
|
||||
},
|
||||
|
||||
/**
|
||||
* Overriding method passes query to Get Utility. The returned
|
||||
* response is then forwarded to the handleResponse function.
|
||||
@ -1967,6 +2085,7 @@ makeConnection : function(oRequest, oCallback, oCaller) {
|
||||
// We are now creating a request
|
||||
util.ScriptNodeDataSource._nPending++;
|
||||
var sUri = this.liveData + oRequest + this.generateRequestCallback(id);
|
||||
sUri = this.doBeforeGetScriptNode(sUri);
|
||||
YAHOO.log("DataSource is querying URL " + sUri, "info", this.toString());
|
||||
this.getUtility.script(sUri,
|
||||
{autopurge: true,
|
||||
@ -2055,7 +2174,7 @@ util.XHRDataSource = function(oLiveData, oConfigs) {
|
||||
this.connMgr = this.connMgr || util.Connect;
|
||||
oLiveData = oLiveData || "";
|
||||
|
||||
this.constructor.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
util.XHRDataSource.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
};
|
||||
|
||||
// XHRDataSource extends DataSourceBase
|
||||
@ -2161,7 +2280,7 @@ makeConnection : function(oRequest, oCallback, oCaller) {
|
||||
var _xhrSuccess = function(oResponse) {
|
||||
// If response ID does not match last made request ID,
|
||||
// silently fail and wait for the next response
|
||||
if(oResponse && (this.asyncMode == "ignoreStaleResponses") &&
|
||||
if(oResponse && (this.connXhrMode == "ignoreStaleResponses") &&
|
||||
(oResponse.tId != oQueue.conn.tId)) {
|
||||
YAHOO.log("Ignored stale response", "warn", this.toString());
|
||||
return null;
|
||||
@ -2434,23 +2553,29 @@ lang.augmentObject(util.DataSource, DS);
|
||||
* <dt>suffix {String}</dd>
|
||||
* <dd>String appended after each number, like " items" (note the space)</dd>
|
||||
* </dl>
|
||||
* @return {String} Formatted number for display.
|
||||
* @return {String} Formatted number for display. Note, the following values
|
||||
* return as "": null, undefined, NaN, "".
|
||||
*/
|
||||
format : function(nData, oConfig) {
|
||||
var lang = YAHOO.lang;
|
||||
if(!lang.isValue(nData) || (nData === "")) {
|
||||
return "";
|
||||
}
|
||||
|
||||
oConfig = oConfig || {};
|
||||
|
||||
if(!YAHOO.lang.isNumber(nData)) {
|
||||
if(!lang.isNumber(nData)) {
|
||||
nData *= 1;
|
||||
}
|
||||
|
||||
if(YAHOO.lang.isNumber(nData)) {
|
||||
if(lang.isNumber(nData)) {
|
||||
var bNegative = (nData < 0);
|
||||
var sOutput = nData + "";
|
||||
var sDecimalSeparator = (oConfig.decimalSeparator) ? oConfig.decimalSeparator : ".";
|
||||
var nDotIndex;
|
||||
|
||||
// Manage decimals
|
||||
if(YAHOO.lang.isNumber(oConfig.decimalPlaces)) {
|
||||
if(lang.isNumber(oConfig.decimalPlaces)) {
|
||||
// Round to the correct decimal place
|
||||
var nDecimalPlaces = oConfig.decimalPlaces;
|
||||
var nDecimal = Math.pow(10, nDecimalPlaces);
|
||||
@ -2647,63 +2772,69 @@ var xPad=function (x, pad, r)
|
||||
*
|
||||
* @method format
|
||||
* @param oDate {Date} Date.
|
||||
* @param oConfig {Object} (Optional) Optional configuration values:
|
||||
* @param oConfig {Object} (Optional) Object literal of configuration values:
|
||||
* <dl>
|
||||
* <dt>format {String}</dt>
|
||||
* <dd>Any format defined by strftime is supported</dd>
|
||||
* </dl>
|
||||
* strftime has several format specifiers defined by the Open group at
|
||||
* http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html
|
||||
*
|
||||
* PHP added a few of its own, defined at http://www.php.net/strftime
|
||||
*
|
||||
* This javascript implementation supports all the PHP specifiers and a few more.
|
||||
*
|
||||
* @arg \%a - abbreviated weekday name according to the current locale
|
||||
* @arg \%A - full weekday name according to the current locale
|
||||
* @arg \%b - abbreviated month name according to the current locale
|
||||
* @arg \%B - full month name according to the current locale
|
||||
* @arg \%c - preferred date and time representation for the current locale
|
||||
* @arg \%C - century number (the year divided by 100 and truncated to an integer, range 00 to 99)
|
||||
* @arg \%d - day of the month as a decimal number (range 01 to 31)
|
||||
* @arg \%D - same as %m/%d/%y
|
||||
* @arg \%e - day of the month as a decimal number, a single digit is preceded by a space (range ' 1' to '31')
|
||||
* @arg \%F - same as %Y-%m-%d (ISO 8601 date format)
|
||||
* @arg \%g - like %G, but without the century
|
||||
* @arg \%G - The 4-digit year corresponding to the ISO week number
|
||||
* @arg \%h - same as %b
|
||||
* @arg \%H - hour as a decimal number using a 24-hour clock (range 00 to 23)
|
||||
* @arg \%I - hour as a decimal number using a 12-hour clock (range 01 to 12)
|
||||
* @arg \%j - day of the year as a decimal number (range 001 to 366)
|
||||
* @arg \%k - hour as a decimal number using a 24-hour clock (range 0 to 23); single digits are preceded by a blank. (See also %H.)
|
||||
* @arg \%l - hour as a decimal number using a 12-hour clock (range 1 to 12); single digits are preceded by a blank. (See also %I.)
|
||||
* @arg \%m - month as a decimal number (range 01 to 12)
|
||||
* @arg \%M - minute as a decimal number
|
||||
* @arg \%n - newline character
|
||||
* @arg \%p - either `AM' or `PM' according to the given time value, or the corresponding strings for the current locale
|
||||
* @arg \%P - like %p, but lower case
|
||||
* @arg \%r - time in a.m. and p.m. notation equal to %I:%M:%S %p
|
||||
* @arg \%R - time in 24 hour notation equal to %H:%M
|
||||
* @arg \%s - number of seconds since the Epoch, ie, since 1970-01-01 00:00:00 UTC
|
||||
* @arg \%S - second as a decimal number
|
||||
* @arg \%t - tab character
|
||||
* @arg \%T - current time, equal to %H:%M:%S
|
||||
* @arg \%u - weekday as a decimal number [1,7], with 1 representing Monday
|
||||
* @arg \%U - week number of the current year as a decimal number, starting with
|
||||
* the first Sunday as the first day of the first week
|
||||
* @arg \%V - The ISO 8601:1988 week number of the current year as a decimal number,
|
||||
* range 01 to 53, where week 1 is the first week that has at least 4 days
|
||||
* in the current year, and with Monday as the first day of the week.
|
||||
* @arg \%w - day of the week as a decimal, Sunday being 0
|
||||
* @arg \%W - week number of the current year as a decimal number, starting with the
|
||||
* first Monday as the first day of the first week
|
||||
* @arg \%x - preferred date representation for the current locale without the time
|
||||
* @arg \%X - preferred time representation for the current locale without the date
|
||||
* @arg \%y - year as a decimal number without a century (range 00 to 99)
|
||||
* @arg \%Y - year as a decimal number including the century
|
||||
* @arg \%z - numerical time zone representation
|
||||
* @arg \%Z - time zone name or abbreviation
|
||||
* @arg \%% - a literal `\%' character
|
||||
* <dt>format <String></dt>
|
||||
* <dd>
|
||||
* <p>
|
||||
* Any strftime string is supported, such as "%I:%M:%S %p". strftime has several format specifiers defined by the Open group at
|
||||
* <a href="http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html">http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html</a>
|
||||
* </p>
|
||||
* <p>
|
||||
* PHP added a few of its own, defined at <a href="http://www.php.net/strftime">http://www.php.net/strftime</a>
|
||||
* </p>
|
||||
* <p>
|
||||
* This javascript implementation supports all the PHP specifiers and a few more. The full list is below:
|
||||
* </p>
|
||||
* <dl>
|
||||
* <dt>%a</dt> <dd>abbreviated weekday name according to the current locale</dd>
|
||||
* <dt>%A</dt> <dd>full weekday name according to the current locale</dd>
|
||||
* <dt>%b</dt> <dd>abbreviated month name according to the current locale</dd>
|
||||
* <dt>%B</dt> <dd>full month name according to the current locale</dd>
|
||||
* <dt>%c</dt> <dd>preferred date and time representation for the current locale</dd>
|
||||
* <dt>%C</dt> <dd>century number (the year divided by 100 and truncated to an integer, range 00 to 99)</dd>
|
||||
* <dt>%d</dt> <dd>day of the month as a decimal number (range 01 to 31)</dd>
|
||||
* <dt>%D</dt> <dd>same as %m/%d/%y</dd>
|
||||
* <dt>%e</dt> <dd>day of the month as a decimal number, a single digit is preceded by a space (range ' 1' to '31')</dd>
|
||||
* <dt>%F</dt> <dd>same as %Y-%m-%d (ISO 8601 date format)</dd>
|
||||
* <dt>%g</dt> <dd>like %G, but without the century</dd>
|
||||
* <dt>%G</dt> <dd>The 4-digit year corresponding to the ISO week number</dd>
|
||||
* <dt>%h</dt> <dd>same as %b</dd>
|
||||
* <dt>%H</dt> <dd>hour as a decimal number using a 24-hour clock (range 00 to 23)</dd>
|
||||
* <dt>%I</dt> <dd>hour as a decimal number using a 12-hour clock (range 01 to 12)</dd>
|
||||
* <dt>%j</dt> <dd>day of the year as a decimal number (range 001 to 366)</dd>
|
||||
* <dt>%k</dt> <dd>hour as a decimal number using a 24-hour clock (range 0 to 23); single digits are preceded by a blank. (See also %H.)</dd>
|
||||
* <dt>%l</dt> <dd>hour as a decimal number using a 12-hour clock (range 1 to 12); single digits are preceded by a blank. (See also %I.) </dd>
|
||||
* <dt>%m</dt> <dd>month as a decimal number (range 01 to 12)</dd>
|
||||
* <dt>%M</dt> <dd>minute as a decimal number</dd>
|
||||
* <dt>%n</dt> <dd>newline character</dd>
|
||||
* <dt>%p</dt> <dd>either `AM' or `PM' according to the given time value, or the corresponding strings for the current locale</dd>
|
||||
* <dt>%P</dt> <dd>like %p, but lower case</dd>
|
||||
* <dt>%r</dt> <dd>time in a.m. and p.m. notation equal to %I:%M:%S %p</dd>
|
||||
* <dt>%R</dt> <dd>time in 24 hour notation equal to %H:%M</dd>
|
||||
* <dt>%s</dt> <dd>number of seconds since the Epoch, ie, since 1970-01-01 00:00:00 UTC</dd>
|
||||
* <dt>%S</dt> <dd>second as a decimal number</dd>
|
||||
* <dt>%t</dt> <dd>tab character</dd>
|
||||
* <dt>%T</dt> <dd>current time, equal to %H:%M:%S</dd>
|
||||
* <dt>%u</dt> <dd>weekday as a decimal number [1,7], with 1 representing Monday</dd>
|
||||
* <dt>%U</dt> <dd>week number of the current year as a decimal number, starting with the
|
||||
* first Sunday as the first day of the first week</dd>
|
||||
* <dt>%V</dt> <dd>The ISO 8601:1988 week number of the current year as a decimal number,
|
||||
* range 01 to 53, where week 1 is the first week that has at least 4 days
|
||||
* in the current year, and with Monday as the first day of the week.</dd>
|
||||
* <dt>%w</dt> <dd>day of the week as a decimal, Sunday being 0</dd>
|
||||
* <dt>%W</dt> <dd>week number of the current year as a decimal number, starting with the
|
||||
* first Monday as the first day of the first week</dd>
|
||||
* <dt>%x</dt> <dd>preferred date representation for the current locale without the time</dd>
|
||||
* <dt>%X</dt> <dd>preferred time representation for the current locale without the date</dd>
|
||||
* <dt>%y</dt> <dd>year as a decimal number without a century (range 00 to 99)</dd>
|
||||
* <dt>%Y</dt> <dd>year as a decimal number including the century</dd>
|
||||
* <dt>%z</dt> <dd>numerical time zone representation</dd>
|
||||
* <dt>%Z</dt> <dd>time zone name or abbreviation</dd>
|
||||
* <dt>%%</dt> <dd>a literal `%' character</dd>
|
||||
* </dl>
|
||||
* </dd>
|
||||
* </dl>
|
||||
* @param sLocale {String} (Optional) The locale to use when displaying days of week,
|
||||
* months of the year, and other locale specific strings. The following locales are
|
||||
* built in:
|
||||
@ -2883,4 +3014,4 @@ var xPad=function (x, pad, r)
|
||||
|
||||
})();
|
||||
|
||||
YAHOO.register("datasource", YAHOO.util.DataSource, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("datasource", YAHOO.util.DataSource, {version: "2.7.0", build: "1799"});
|
||||
|
File diff suppressed because one or more lines are too long
360
webdir/javascript/yui/datasource/datasource.js
vendored
360
webdir/javascript/yui/datasource/datasource.js
vendored
@ -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 () {
|
||||
|
||||
@ -349,7 +349,7 @@ issueCallback : function (callback,params,error,scope) {
|
||||
* @method DataSourceBase.parseString
|
||||
* @param oData {String | Number | Boolean | Date | Array | Object} Data to parse.
|
||||
* The special values null and undefined will return null.
|
||||
* @return {Number} A string, or null.
|
||||
* @return {String} A string, or null.
|
||||
* @static
|
||||
*/
|
||||
parseString : function(oData) {
|
||||
@ -374,12 +374,16 @@ parseString : function(oData) {
|
||||
* Converts data to type Number.
|
||||
*
|
||||
* @method DataSourceBase.parseNumber
|
||||
* @param oData {String | Number | Boolean | Null} Data to convert. Beware, null
|
||||
* returns as 0.
|
||||
* @return {Number} A number, or null if NaN.
|
||||
* @param oData {String | Number | Boolean} Data to convert. Note, the following
|
||||
* values return as null: null, undefined, NaN, "".
|
||||
* @return {Number} A number, or null.
|
||||
* @static
|
||||
*/
|
||||
parseNumber : function(oData) {
|
||||
if(!lang.isValue(oData) || (oData === "")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
//Convert to number
|
||||
var number = oData * 1;
|
||||
|
||||
@ -569,6 +573,17 @@ responseType : DS.TYPE_UNKNOWN,
|
||||
*/
|
||||
responseSchema : null,
|
||||
|
||||
/**
|
||||
* Additional arguments passed to the JSON parse routine. The JSON string
|
||||
* is the assumed first argument (where applicable). This property is not
|
||||
* set by default, but the parse methods will use it if present.
|
||||
*
|
||||
* @property parseJSONArgs
|
||||
* @type {MIXED|Array} If an Array, contents are used as individual arguments.
|
||||
* Otherwise, value is used as an additional argument.
|
||||
*/
|
||||
// property intentionally undefined
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DataSourceBase public methods
|
||||
@ -752,7 +767,28 @@ clearAllIntervals : function() {
|
||||
},
|
||||
|
||||
/**
|
||||
* First looks for cached response, then sends request to live data.
|
||||
* First looks for cached response, then sends request to live data. The
|
||||
* following arguments are passed to the callback function:
|
||||
* <dl>
|
||||
* <dt><code>oRequest</code></dt>
|
||||
* <dd>The same value that was passed in as the first argument to sendRequest.</dd>
|
||||
* <dt><code>oParsedResponse</code></dt>
|
||||
* <dd>An object literal containing the following properties:
|
||||
* <dl>
|
||||
* <dt><code>tId</code></dt>
|
||||
* <dd>Unique transaction ID number.</dd>
|
||||
* <dt><code>results</code></dt>
|
||||
* <dd>Schema-parsed data results.</dd>
|
||||
* <dt><code>error</code></dt>
|
||||
* <dd>True in cases of data error.</dd>
|
||||
* <dt><code>cached</code></dt>
|
||||
* <dd>True when response is returned from DataSource cache.</dd>
|
||||
* <dt><code>meta</code></dt>
|
||||
* <dd>Schema-parsed meta data.</dd>
|
||||
* </dl>
|
||||
* <dt><code>oPayload</code></dt>
|
||||
* <dd>The same value as was passed in as <code>argument</code> in the oCallback object literal.</dd>
|
||||
* </dl>
|
||||
*
|
||||
* @method sendRequest
|
||||
* @param oRequest {Object} Request object.
|
||||
@ -882,6 +918,47 @@ handleResponse : function(oRequest, oRawResponse, oCallback, oCaller, tId) {
|
||||
if(xhr && oRawResponse && oRawResponse.responseText) {
|
||||
oFullResponse = oRawResponse.responseText;
|
||||
}
|
||||
try {
|
||||
// Convert to JS array if it's a string
|
||||
if(lang.isString(oFullResponse)) {
|
||||
var parseArgs = [oFullResponse].concat(this.parseJSONArgs);
|
||||
// Check for YUI JSON Util
|
||||
if(lang.JSON) {
|
||||
oFullResponse = lang.JSON.parse.apply(lang.JSON,parseArgs);
|
||||
}
|
||||
// Look for JSON parsers using an API similar to json2.js
|
||||
else if(window.JSON && JSON.parse) {
|
||||
oFullResponse = JSON.parse.apply(JSON,parseArgs);
|
||||
}
|
||||
// Look for JSON parsers using an API similar to json.js
|
||||
else if(oFullResponse.parseJSON) {
|
||||
oFullResponse = oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));
|
||||
}
|
||||
// No JSON lib found so parse the string
|
||||
else {
|
||||
// Trim leading spaces
|
||||
while (oFullResponse.length > 0 &&
|
||||
(oFullResponse.charAt(0) != "{") &&
|
||||
(oFullResponse.charAt(0) != "[")) {
|
||||
oFullResponse = oFullResponse.substring(1, oFullResponse.length);
|
||||
}
|
||||
|
||||
if(oFullResponse.length > 0) {
|
||||
// Strip extraneous stuff at the end
|
||||
var arrayEnd =
|
||||
Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));
|
||||
oFullResponse = oFullResponse.substring(0,arrayEnd+1);
|
||||
|
||||
// Turn the string into an object literal...
|
||||
// ...eval is necessary here
|
||||
oFullResponse = eval("(" + oFullResponse + ")");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(e1) {
|
||||
}
|
||||
oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
|
||||
oParsedResponse = this.parseArrayData(oRequest, oFullResponse);
|
||||
break;
|
||||
@ -892,17 +969,18 @@ handleResponse : function(oRequest, oRawResponse, oCallback, oCaller, tId) {
|
||||
try {
|
||||
// Convert to JSON object if it's a string
|
||||
if(lang.isString(oFullResponse)) {
|
||||
var parseArgs = [oFullResponse].concat(this.parseJSONArgs);
|
||||
// Check for YUI JSON Util
|
||||
if(lang.JSON) {
|
||||
oFullResponse = lang.JSON.parse(oFullResponse);
|
||||
oFullResponse = lang.JSON.parse.apply(lang.JSON,parseArgs);
|
||||
}
|
||||
// Look for JSON parsers using an API similar to json2.js
|
||||
else if(window.JSON && JSON.parse) {
|
||||
oFullResponse = JSON.parse(oFullResponse);
|
||||
oFullResponse = JSON.parse.apply(JSON,parseArgs);
|
||||
}
|
||||
// Look for JSON parsers using an API similar to json.js
|
||||
else if(oFullResponse.parseJSON) {
|
||||
oFullResponse = oFullResponse.parseJSON();
|
||||
oFullResponse = oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));
|
||||
}
|
||||
// No JSON lib found so parse the string
|
||||
else {
|
||||
@ -934,7 +1012,9 @@ handleResponse : function(oRequest, oRawResponse, oCallback, oCaller, tId) {
|
||||
break;
|
||||
case DS.TYPE_HTMLTABLE:
|
||||
if(xhr && oRawResponse.responseText) {
|
||||
oFullResponse = oRawResponse.responseText;
|
||||
var el = document.createElement('div');
|
||||
el.innerHTML = oRawResponse.responseText;
|
||||
oFullResponse = el.getElementsByTagName('table')[0];
|
||||
}
|
||||
oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
|
||||
oParsedResponse = this.parseHTMLTableData(oRequest, oFullResponse);
|
||||
@ -1252,11 +1332,10 @@ parseXMLResult : function(result) {
|
||||
// ...or in a node
|
||||
else {
|
||||
var xmlNode = result.getElementsByTagName(key);
|
||||
if(xmlNode && xmlNode.item(0) && xmlNode.item(0)) {
|
||||
data = xmlNode.item(0).firstChild.nodeValue;
|
||||
if(xmlNode && xmlNode.item(0)) {
|
||||
var item = xmlNode.item(0);
|
||||
// For IE, then DOM...
|
||||
data = (item.text) ? item.text : (item.textContent) ? item.textContent : null;
|
||||
data = (item) ? ((item.text) ? item.text : (item.textContent) ? item.textContent : null) : null;
|
||||
// ...then fallback, but check for multiple child nodes
|
||||
if(!data) {
|
||||
var datapieces = [];
|
||||
@ -1488,9 +1567,9 @@ parseJSONData : function(oRequest, oFullResponse) {
|
||||
}
|
||||
|
||||
// Process the results, flattening the records and/or applying parsers if needed
|
||||
//if (fieldParsers.length || fieldPaths.length) {
|
||||
for (i = resultsList.length - 1; i >= 0; --i) {
|
||||
var r = resultsList[i], rec = {};
|
||||
for (i = resultsList.length - 1; i >= 0; --i) {
|
||||
var r = resultsList[i], rec = {};
|
||||
if(r) {
|
||||
for (j = simpleFields.length - 1; j >= 0; --j) {
|
||||
// Bug 1777850: data might be held in an array
|
||||
rec[simpleFields[j].key] =
|
||||
@ -1509,9 +1588,9 @@ parseJSONData : function(oRequest, oFullResponse) {
|
||||
rec[p] = null;
|
||||
}
|
||||
}
|
||||
results[i] = rec;
|
||||
}
|
||||
//}
|
||||
results[i] = rec;
|
||||
}
|
||||
}
|
||||
else {
|
||||
results = resultsList;
|
||||
@ -1558,39 +1637,44 @@ parseHTMLTableData : function(oRequest, oFullResponse) {
|
||||
var fields = this.responseSchema.fields;
|
||||
var oParsedResponse = {results:[]};
|
||||
|
||||
// Iterate through each TBODY
|
||||
for(var i=0; i<elTable.tBodies.length; i++) {
|
||||
var elTbody = elTable.tBodies[i];
|
||||
|
||||
// Iterate through each TR
|
||||
for(var j=elTbody.rows.length-1; j>-1; j--) {
|
||||
var elRow = elTbody.rows[j];
|
||||
var oResult = {};
|
||||
|
||||
for(var k=fields.length-1; k>-1; k--) {
|
||||
var field = fields[k];
|
||||
var key = (lang.isValue(field.key)) ? field.key : field;
|
||||
var data = elRow.cells[k].innerHTML;
|
||||
|
||||
// Backward compatibility
|
||||
if(!field.parser && field.converter) {
|
||||
field.parser = field.converter;
|
||||
if(lang.isArray(fields)) {
|
||||
// Iterate through each TBODY
|
||||
for(var i=0; i<elTable.tBodies.length; i++) {
|
||||
var elTbody = elTable.tBodies[i];
|
||||
|
||||
// Iterate through each TR
|
||||
for(var j=elTbody.rows.length-1; j>-1; j--) {
|
||||
var elRow = elTbody.rows[j];
|
||||
var oResult = {};
|
||||
|
||||
for(var k=fields.length-1; k>-1; k--) {
|
||||
var field = fields[k];
|
||||
var key = (lang.isValue(field.key)) ? field.key : field;
|
||||
var data = elRow.cells[k].innerHTML;
|
||||
|
||||
// Backward compatibility
|
||||
if(!field.parser && field.converter) {
|
||||
field.parser = field.converter;
|
||||
}
|
||||
var parser = (typeof field.parser === 'function') ?
|
||||
field.parser :
|
||||
DS.Parser[field.parser+''];
|
||||
if(parser) {
|
||||
data = parser.call(this, data);
|
||||
}
|
||||
// Safety measure
|
||||
if(data === undefined) {
|
||||
data = null;
|
||||
}
|
||||
oResult[key] = data;
|
||||
}
|
||||
var parser = (typeof field.parser === 'function') ?
|
||||
field.parser :
|
||||
DS.Parser[field.parser+''];
|
||||
if(parser) {
|
||||
data = parser.call(this, data);
|
||||
}
|
||||
// Safety measure
|
||||
if(data === undefined) {
|
||||
data = null;
|
||||
}
|
||||
oResult[key] = data;
|
||||
oParsedResponse.results[j] = oResult;
|
||||
}
|
||||
oParsedResponse.results[j] = oResult;
|
||||
}
|
||||
}
|
||||
else {
|
||||
bError = true;
|
||||
}
|
||||
|
||||
if(bError) {
|
||||
oParsedResponse.error = true;
|
||||
@ -1649,7 +1733,7 @@ util.LocalDataSource = function(oLiveData, oConfigs) {
|
||||
this.responseType = DS.TYPE_JSARRAY;
|
||||
}
|
||||
|
||||
this.constructor.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
util.LocalDataSource.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
};
|
||||
|
||||
// LocalDataSource extends DataSourceBase
|
||||
@ -1688,12 +1772,30 @@ util.FunctionDataSource = function(oLiveData, oConfigs) {
|
||||
this.dataType = DS.TYPE_JSFUNCTION;
|
||||
oLiveData = oLiveData || function() {};
|
||||
|
||||
this.constructor.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
util.FunctionDataSource.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
};
|
||||
|
||||
// FunctionDataSource extends DataSourceBase
|
||||
lang.extend(util.FunctionDataSource, DS, {
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FunctionDataSource public properties
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Context in which to execute the function. By default, is the DataSource
|
||||
* instance itself. If set, the function will receive the DataSource instance
|
||||
* as an additional argument.
|
||||
*
|
||||
* @property scope
|
||||
* @type Object
|
||||
* @default null
|
||||
*/
|
||||
scope : null,
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FunctionDataSource public methods
|
||||
@ -1716,7 +1818,9 @@ makeConnection : function(oRequest, oCallback, oCaller) {
|
||||
|
||||
// Pass the request in as a parameter and
|
||||
// forward the return value to the handler
|
||||
var oRawResponse = this.liveData(oRequest);
|
||||
|
||||
|
||||
var oRawResponse = (this.scope) ? this.liveData.call(this.scope, oRequest, this) : this.liveData(oRequest);
|
||||
|
||||
// Try to sniff data type if it has not been defined
|
||||
if(this.responseType === DS.TYPE_UNKNOWN) {
|
||||
@ -1777,7 +1881,7 @@ util.ScriptNodeDataSource = function(oLiveData, oConfigs) {
|
||||
this.dataType = DS.TYPE_SCRIPTNODE;
|
||||
oLiveData = oLiveData || "";
|
||||
|
||||
this.constructor.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
util.ScriptNodeDataSource.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
};
|
||||
|
||||
// ScriptNodeDataSource extends DataSourceBase
|
||||
@ -1847,6 +1951,19 @@ generateRequestCallback : function(id) {
|
||||
return "&" + this.scriptCallbackParam + "=YAHOO.util.ScriptNodeDataSource.callbacks["+id+"]" ;
|
||||
},
|
||||
|
||||
/**
|
||||
* Overridable method gives implementers access to modify the URI before the dynamic
|
||||
* script node gets inserted. Implementers should take care not to return an
|
||||
* invalid URI.
|
||||
*
|
||||
* @method doBeforeGetScriptNode
|
||||
* @param {String} URI to the script
|
||||
* @return {String} URI to the script
|
||||
*/
|
||||
doBeforeGetScriptNode : function(sUri) {
|
||||
return sUri;
|
||||
},
|
||||
|
||||
/**
|
||||
* Overriding method passes query to Get Utility. The returned
|
||||
* response is then forwarded to the handleResponse function.
|
||||
@ -1908,6 +2025,7 @@ makeConnection : function(oRequest, oCallback, oCaller) {
|
||||
// We are now creating a request
|
||||
util.ScriptNodeDataSource._nPending++;
|
||||
var sUri = this.liveData + oRequest + this.generateRequestCallback(id);
|
||||
sUri = this.doBeforeGetScriptNode(sUri);
|
||||
this.getUtility.script(sUri,
|
||||
{autopurge: true,
|
||||
onsuccess: util.ScriptNodeDataSource._bumpPendingDown,
|
||||
@ -1995,7 +2113,7 @@ util.XHRDataSource = function(oLiveData, oConfigs) {
|
||||
this.connMgr = this.connMgr || util.Connect;
|
||||
oLiveData = oLiveData || "";
|
||||
|
||||
this.constructor.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
util.XHRDataSource.superclass.constructor.call(this, oLiveData, oConfigs);
|
||||
};
|
||||
|
||||
// XHRDataSource extends DataSourceBase
|
||||
@ -2101,7 +2219,7 @@ makeConnection : function(oRequest, oCallback, oCaller) {
|
||||
var _xhrSuccess = function(oResponse) {
|
||||
// If response ID does not match last made request ID,
|
||||
// silently fail and wait for the next response
|
||||
if(oResponse && (this.asyncMode == "ignoreStaleResponses") &&
|
||||
if(oResponse && (this.connXhrMode == "ignoreStaleResponses") &&
|
||||
(oResponse.tId != oQueue.conn.tId)) {
|
||||
return null;
|
||||
}
|
||||
@ -2364,23 +2482,29 @@ lang.augmentObject(util.DataSource, DS);
|
||||
* <dt>suffix {String}</dd>
|
||||
* <dd>String appended after each number, like " items" (note the space)</dd>
|
||||
* </dl>
|
||||
* @return {String} Formatted number for display.
|
||||
* @return {String} Formatted number for display. Note, the following values
|
||||
* return as "": null, undefined, NaN, "".
|
||||
*/
|
||||
format : function(nData, oConfig) {
|
||||
var lang = YAHOO.lang;
|
||||
if(!lang.isValue(nData) || (nData === "")) {
|
||||
return "";
|
||||
}
|
||||
|
||||
oConfig = oConfig || {};
|
||||
|
||||
if(!YAHOO.lang.isNumber(nData)) {
|
||||
if(!lang.isNumber(nData)) {
|
||||
nData *= 1;
|
||||
}
|
||||
|
||||
if(YAHOO.lang.isNumber(nData)) {
|
||||
if(lang.isNumber(nData)) {
|
||||
var bNegative = (nData < 0);
|
||||
var sOutput = nData + "";
|
||||
var sDecimalSeparator = (oConfig.decimalSeparator) ? oConfig.decimalSeparator : ".";
|
||||
var nDotIndex;
|
||||
|
||||
// Manage decimals
|
||||
if(YAHOO.lang.isNumber(oConfig.decimalPlaces)) {
|
||||
if(lang.isNumber(oConfig.decimalPlaces)) {
|
||||
// Round to the correct decimal place
|
||||
var nDecimalPlaces = oConfig.decimalPlaces;
|
||||
var nDecimal = Math.pow(10, nDecimalPlaces);
|
||||
@ -2577,63 +2701,69 @@ var xPad=function (x, pad, r)
|
||||
*
|
||||
* @method format
|
||||
* @param oDate {Date} Date.
|
||||
* @param oConfig {Object} (Optional) Optional configuration values:
|
||||
* @param oConfig {Object} (Optional) Object literal of configuration values:
|
||||
* <dl>
|
||||
* <dt>format {String}</dt>
|
||||
* <dd>Any format defined by strftime is supported</dd>
|
||||
* </dl>
|
||||
* strftime has several format specifiers defined by the Open group at
|
||||
* http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html
|
||||
*
|
||||
* PHP added a few of its own, defined at http://www.php.net/strftime
|
||||
*
|
||||
* This javascript implementation supports all the PHP specifiers and a few more.
|
||||
*
|
||||
* @arg \%a - abbreviated weekday name according to the current locale
|
||||
* @arg \%A - full weekday name according to the current locale
|
||||
* @arg \%b - abbreviated month name according to the current locale
|
||||
* @arg \%B - full month name according to the current locale
|
||||
* @arg \%c - preferred date and time representation for the current locale
|
||||
* @arg \%C - century number (the year divided by 100 and truncated to an integer, range 00 to 99)
|
||||
* @arg \%d - day of the month as a decimal number (range 01 to 31)
|
||||
* @arg \%D - same as %m/%d/%y
|
||||
* @arg \%e - day of the month as a decimal number, a single digit is preceded by a space (range ' 1' to '31')
|
||||
* @arg \%F - same as %Y-%m-%d (ISO 8601 date format)
|
||||
* @arg \%g - like %G, but without the century
|
||||
* @arg \%G - The 4-digit year corresponding to the ISO week number
|
||||
* @arg \%h - same as %b
|
||||
* @arg \%H - hour as a decimal number using a 24-hour clock (range 00 to 23)
|
||||
* @arg \%I - hour as a decimal number using a 12-hour clock (range 01 to 12)
|
||||
* @arg \%j - day of the year as a decimal number (range 001 to 366)
|
||||
* @arg \%k - hour as a decimal number using a 24-hour clock (range 0 to 23); single digits are preceded by a blank. (See also %H.)
|
||||
* @arg \%l - hour as a decimal number using a 12-hour clock (range 1 to 12); single digits are preceded by a blank. (See also %I.)
|
||||
* @arg \%m - month as a decimal number (range 01 to 12)
|
||||
* @arg \%M - minute as a decimal number
|
||||
* @arg \%n - newline character
|
||||
* @arg \%p - either `AM' or `PM' according to the given time value, or the corresponding strings for the current locale
|
||||
* @arg \%P - like %p, but lower case
|
||||
* @arg \%r - time in a.m. and p.m. notation equal to %I:%M:%S %p
|
||||
* @arg \%R - time in 24 hour notation equal to %H:%M
|
||||
* @arg \%s - number of seconds since the Epoch, ie, since 1970-01-01 00:00:00 UTC
|
||||
* @arg \%S - second as a decimal number
|
||||
* @arg \%t - tab character
|
||||
* @arg \%T - current time, equal to %H:%M:%S
|
||||
* @arg \%u - weekday as a decimal number [1,7], with 1 representing Monday
|
||||
* @arg \%U - week number of the current year as a decimal number, starting with
|
||||
* the first Sunday as the first day of the first week
|
||||
* @arg \%V - The ISO 8601:1988 week number of the current year as a decimal number,
|
||||
* range 01 to 53, where week 1 is the first week that has at least 4 days
|
||||
* in the current year, and with Monday as the first day of the week.
|
||||
* @arg \%w - day of the week as a decimal, Sunday being 0
|
||||
* @arg \%W - week number of the current year as a decimal number, starting with the
|
||||
* first Monday as the first day of the first week
|
||||
* @arg \%x - preferred date representation for the current locale without the time
|
||||
* @arg \%X - preferred time representation for the current locale without the date
|
||||
* @arg \%y - year as a decimal number without a century (range 00 to 99)
|
||||
* @arg \%Y - year as a decimal number including the century
|
||||
* @arg \%z - numerical time zone representation
|
||||
* @arg \%Z - time zone name or abbreviation
|
||||
* @arg \%% - a literal `\%' character
|
||||
* <dt>format <String></dt>
|
||||
* <dd>
|
||||
* <p>
|
||||
* Any strftime string is supported, such as "%I:%M:%S %p". strftime has several format specifiers defined by the Open group at
|
||||
* <a href="http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html">http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html</a>
|
||||
* </p>
|
||||
* <p>
|
||||
* PHP added a few of its own, defined at <a href="http://www.php.net/strftime">http://www.php.net/strftime</a>
|
||||
* </p>
|
||||
* <p>
|
||||
* This javascript implementation supports all the PHP specifiers and a few more. The full list is below:
|
||||
* </p>
|
||||
* <dl>
|
||||
* <dt>%a</dt> <dd>abbreviated weekday name according to the current locale</dd>
|
||||
* <dt>%A</dt> <dd>full weekday name according to the current locale</dd>
|
||||
* <dt>%b</dt> <dd>abbreviated month name according to the current locale</dd>
|
||||
* <dt>%B</dt> <dd>full month name according to the current locale</dd>
|
||||
* <dt>%c</dt> <dd>preferred date and time representation for the current locale</dd>
|
||||
* <dt>%C</dt> <dd>century number (the year divided by 100 and truncated to an integer, range 00 to 99)</dd>
|
||||
* <dt>%d</dt> <dd>day of the month as a decimal number (range 01 to 31)</dd>
|
||||
* <dt>%D</dt> <dd>same as %m/%d/%y</dd>
|
||||
* <dt>%e</dt> <dd>day of the month as a decimal number, a single digit is preceded by a space (range ' 1' to '31')</dd>
|
||||
* <dt>%F</dt> <dd>same as %Y-%m-%d (ISO 8601 date format)</dd>
|
||||
* <dt>%g</dt> <dd>like %G, but without the century</dd>
|
||||
* <dt>%G</dt> <dd>The 4-digit year corresponding to the ISO week number</dd>
|
||||
* <dt>%h</dt> <dd>same as %b</dd>
|
||||
* <dt>%H</dt> <dd>hour as a decimal number using a 24-hour clock (range 00 to 23)</dd>
|
||||
* <dt>%I</dt> <dd>hour as a decimal number using a 12-hour clock (range 01 to 12)</dd>
|
||||
* <dt>%j</dt> <dd>day of the year as a decimal number (range 001 to 366)</dd>
|
||||
* <dt>%k</dt> <dd>hour as a decimal number using a 24-hour clock (range 0 to 23); single digits are preceded by a blank. (See also %H.)</dd>
|
||||
* <dt>%l</dt> <dd>hour as a decimal number using a 12-hour clock (range 1 to 12); single digits are preceded by a blank. (See also %I.) </dd>
|
||||
* <dt>%m</dt> <dd>month as a decimal number (range 01 to 12)</dd>
|
||||
* <dt>%M</dt> <dd>minute as a decimal number</dd>
|
||||
* <dt>%n</dt> <dd>newline character</dd>
|
||||
* <dt>%p</dt> <dd>either `AM' or `PM' according to the given time value, or the corresponding strings for the current locale</dd>
|
||||
* <dt>%P</dt> <dd>like %p, but lower case</dd>
|
||||
* <dt>%r</dt> <dd>time in a.m. and p.m. notation equal to %I:%M:%S %p</dd>
|
||||
* <dt>%R</dt> <dd>time in 24 hour notation equal to %H:%M</dd>
|
||||
* <dt>%s</dt> <dd>number of seconds since the Epoch, ie, since 1970-01-01 00:00:00 UTC</dd>
|
||||
* <dt>%S</dt> <dd>second as a decimal number</dd>
|
||||
* <dt>%t</dt> <dd>tab character</dd>
|
||||
* <dt>%T</dt> <dd>current time, equal to %H:%M:%S</dd>
|
||||
* <dt>%u</dt> <dd>weekday as a decimal number [1,7], with 1 representing Monday</dd>
|
||||
* <dt>%U</dt> <dd>week number of the current year as a decimal number, starting with the
|
||||
* first Sunday as the first day of the first week</dd>
|
||||
* <dt>%V</dt> <dd>The ISO 8601:1988 week number of the current year as a decimal number,
|
||||
* range 01 to 53, where week 1 is the first week that has at least 4 days
|
||||
* in the current year, and with Monday as the first day of the week.</dd>
|
||||
* <dt>%w</dt> <dd>day of the week as a decimal, Sunday being 0</dd>
|
||||
* <dt>%W</dt> <dd>week number of the current year as a decimal number, starting with the
|
||||
* first Monday as the first day of the first week</dd>
|
||||
* <dt>%x</dt> <dd>preferred date representation for the current locale without the time</dd>
|
||||
* <dt>%X</dt> <dd>preferred time representation for the current locale without the date</dd>
|
||||
* <dt>%y</dt> <dd>year as a decimal number without a century (range 00 to 99)</dd>
|
||||
* <dt>%Y</dt> <dd>year as a decimal number including the century</dd>
|
||||
* <dt>%z</dt> <dd>numerical time zone representation</dd>
|
||||
* <dt>%Z</dt> <dd>time zone name or abbreviation</dd>
|
||||
* <dt>%%</dt> <dd>a literal `%' character</dd>
|
||||
* </dl>
|
||||
* </dd>
|
||||
* </dl>
|
||||
* @param sLocale {String} (Optional) The locale to use when displaying days of week,
|
||||
* months of the year, and other locale specific strings. The following locales are
|
||||
* built in:
|
||||
@ -2813,4 +2943,4 @@ var xPad=function (x, pad, r)
|
||||
|
||||
})();
|
||||
|
||||
YAHOO.register("datasource", YAHOO.util.DataSource, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("datasource", YAHOO.util.DataSource, {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
|
||||
*/
|
||||
/* foundational CSS */
|
||||
|
||||
@ -36,8 +36,14 @@ version: 2.6.0
|
||||
-moz-outline:none;
|
||||
}
|
||||
|
||||
/* sortable columns */
|
||||
|
||||
.yui-skin-sam thead .yui-dt-sortable {
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* draggable columns */
|
||||
.yui-dt-draggable {
|
||||
.yui-skin-sam thead .yui-dt-draggable {
|
||||
cursor: move;
|
||||
}
|
||||
.yui-dt-coltarget {
|
||||
@ -65,6 +71,7 @@ th.yui-dt-resizeable .yui-dt-resizerliner {
|
||||
visibility:hidden;
|
||||
position:absolute;
|
||||
z-index:9000;
|
||||
background-color:#CCC;opacity:0;filter: alpha(opacity=0); /* Bug 1952811: IE transparency z-index */
|
||||
}
|
||||
|
||||
/* hidden columns */
|
||||
|
@ -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
|
||||
*/
|
||||
/*foundational css*/
|
||||
.yui-dt-table th, .yui-dt-table td {
|
||||
|
@ -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
|
||||
*/
|
||||
/* basic skin styles */
|
||||
.yui-skin-sam .yui-dt table {
|
||||
@ -67,7 +67,7 @@ version: 2.6.0
|
||||
.yui-skin-sam .yui-dt-mask {
|
||||
background-color: #000;
|
||||
opacity: .25;
|
||||
*filter: alpha(opacity=25); /* Set opacity in IE */
|
||||
filter: alpha(opacity=25); /* Set opacity in IE */
|
||||
}
|
||||
|
||||
/* messaging */
|
||||
@ -82,9 +82,6 @@ version: 2.6.0
|
||||
.yui-skin-sam .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td {border-bottom:1px solid #7F7F7F;}
|
||||
|
||||
/* sortable columns */
|
||||
.yui-skin-sam thead .yui-dt-sortable {
|
||||
cursor:pointer;
|
||||
}
|
||||
.yui-skin-sam th.yui-dt-asc,
|
||||
.yui-skin-sam th.yui-dt-desc {
|
||||
background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -100px; /* sorted header gradient */
|
||||
|
File diff suppressed because one or more lines are too long
696
webdir/javascript/yui/datatable/datatable-debug.js
vendored
696
webdir/javascript/yui/datatable/datatable-debug.js
vendored
File diff suppressed because it is too large
Load Diff
48
webdir/javascript/yui/datatable/datatable-min.js
vendored
48
webdir/javascript/yui/datatable/datatable-min.js
vendored
File diff suppressed because one or more lines are too long
652
webdir/javascript/yui/datatable/datatable.js
vendored
652
webdir/javascript/yui/datatable/datatable.js
vendored
File diff suppressed because it is too large
Load Diff
1374
webdir/javascript/yui/dom/dom-debug.js
vendored
1374
webdir/javascript/yui/dom/dom-debug.js
vendored
File diff suppressed because it is too large
Load Diff
9
webdir/javascript/yui/dom/dom-min.js
vendored
9
webdir/javascript/yui/dom/dom-min.js
vendored
File diff suppressed because one or more lines are too long
1344
webdir/javascript/yui/dom/dom.js
vendored
1344
webdir/javascript/yui/dom/dom.js
vendored
File diff suppressed because it is too large
Load Diff
27
webdir/javascript/yui/dragdrop/dragdrop-debug.js
vendored
27
webdir/javascript/yui/dragdrop/dragdrop-debug.js
vendored
@ -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
|
||||
*/
|
||||
/**
|
||||
* The drag and drop utility provides a framework for building drag and drop
|
||||
@ -3450,27 +3450,6 @@ YAHOO.extend(YAHOO.util.DDProxy, YAHOO.util.DD, {
|
||||
Dom.setStyle(_data, 'opacity', '0');
|
||||
div.appendChild(_data);
|
||||
|
||||
/**
|
||||
* It seems that IE will fire the mouseup event if you pass a proxy element over a select box
|
||||
* Placing the IFRAME element inside seems to stop this issue
|
||||
*/
|
||||
if (YAHOO.env.ua.ie) {
|
||||
//Only needed for Internet Explorer
|
||||
var ifr = document.createElement('iframe');
|
||||
ifr.setAttribute('src', 'javascript: false;');
|
||||
ifr.setAttribute('scrolling', 'no');
|
||||
ifr.setAttribute('frameborder', '0');
|
||||
div.insertBefore(ifr, div.firstChild);
|
||||
Dom.setStyle(ifr, 'height', '100%');
|
||||
Dom.setStyle(ifr, 'width', '100%');
|
||||
Dom.setStyle(ifr, 'position', 'absolute');
|
||||
Dom.setStyle(ifr, 'top', '0');
|
||||
Dom.setStyle(ifr, 'left', '0');
|
||||
Dom.setStyle(ifr, 'opacity', '0');
|
||||
Dom.setStyle(ifr, 'zIndex', '-1');
|
||||
Dom.setStyle(ifr.nextSibling, 'zIndex', '2');
|
||||
}
|
||||
|
||||
// appendChild can blow up IE if invoked prior to the window load event
|
||||
// while rendering a table. It is possible there are other scenarios
|
||||
// that would cause this to happen as well.
|
||||
@ -3728,4 +3707,4 @@ YAHOO.extend(YAHOO.util.DDTarget, YAHOO.util.DragDrop, {
|
||||
return ("DDTarget " + this.id);
|
||||
}
|
||||
});
|
||||
YAHOO.register("dragdrop", YAHOO.util.DragDropMgr, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("dragdrop", YAHOO.util.DragDropMgr, {version: "2.7.0", build: "1799"});
|
||||
|
10
webdir/javascript/yui/dragdrop/dragdrop-min.js
vendored
10
webdir/javascript/yui/dragdrop/dragdrop-min.js
vendored
File diff suppressed because one or more lines are too long
27
webdir/javascript/yui/dragdrop/dragdrop.js
vendored
27
webdir/javascript/yui/dragdrop/dragdrop.js
vendored
@ -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
|
||||
*/
|
||||
/**
|
||||
* The drag and drop utility provides a framework for building drag and drop
|
||||
@ -3347,27 +3347,6 @@ YAHOO.extend(YAHOO.util.DDProxy, YAHOO.util.DD, {
|
||||
Dom.setStyle(_data, 'opacity', '0');
|
||||
div.appendChild(_data);
|
||||
|
||||
/**
|
||||
* It seems that IE will fire the mouseup event if you pass a proxy element over a select box
|
||||
* Placing the IFRAME element inside seems to stop this issue
|
||||
*/
|
||||
if (YAHOO.env.ua.ie) {
|
||||
//Only needed for Internet Explorer
|
||||
var ifr = document.createElement('iframe');
|
||||
ifr.setAttribute('src', 'javascript: false;');
|
||||
ifr.setAttribute('scrolling', 'no');
|
||||
ifr.setAttribute('frameborder', '0');
|
||||
div.insertBefore(ifr, div.firstChild);
|
||||
Dom.setStyle(ifr, 'height', '100%');
|
||||
Dom.setStyle(ifr, 'width', '100%');
|
||||
Dom.setStyle(ifr, 'position', 'absolute');
|
||||
Dom.setStyle(ifr, 'top', '0');
|
||||
Dom.setStyle(ifr, 'left', '0');
|
||||
Dom.setStyle(ifr, 'opacity', '0');
|
||||
Dom.setStyle(ifr, 'zIndex', '-1');
|
||||
Dom.setStyle(ifr.nextSibling, 'zIndex', '2');
|
||||
}
|
||||
|
||||
// appendChild can blow up IE if invoked prior to the window load event
|
||||
// while rendering a table. It is possible there are other scenarios
|
||||
// that would cause this to happen as well.
|
||||
@ -3619,4 +3598,4 @@ YAHOO.extend(YAHOO.util.DDTarget, YAHOO.util.DragDrop, {
|
||||
return ("DDTarget " + this.id);
|
||||
}
|
||||
});
|
||||
YAHOO.register("dragdrop", YAHOO.util.DragDropMgr, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("dragdrop", YAHOO.util.DragDropMgr, {version: "2.7.0", build: "1799"});
|
||||
|
@ -1,14 +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
|
||||
*/
|
||||
/* Set the cursor to busy when we are doing something */
|
||||
.yui-busy {
|
||||
cursor: wait !important;
|
||||
}
|
||||
.yui-toolbar-container fieldset {
|
||||
.yui-toolbar-container fieldset,
|
||||
.yui-editor-container fieldset {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
@ -215,6 +216,13 @@ version: 2.6.0
|
||||
/* The disbled state of the Editor */
|
||||
.yui-editor-container .yui-editor-masked {
|
||||
background-color: #CCC;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
opacity: .5;
|
||||
filter: alpha(opacity=50);
|
||||
}
|
||||
/* Style the editable iframe to hide it */
|
||||
.yui-editor-container iframe {
|
||||
|
@ -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
|
||||
*/
|
||||
/* Set the cursor to busy when we are doing something */
|
||||
.yui-busy {
|
||||
|
@ -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
|
||||
*/
|
||||
/* Place the border around the editor */
|
||||
.yui-skin-sam .yui-editor-container {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user