view release on metacpan or search on metacpan
javascript/yui/build/assets/skins/sam/container.css view on Meta::CPAN
1234567/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
version: 2.3.0
*/
.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-
index
:1;}yui-panel-container form{margin:0;}.masked .yui-panel-container{z-
index
:2;}.mask{z-
index
:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto;}.m...
javascript/yui/build/assets/skins/sam/editor.css view on Meta::CPAN
1234567/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
version: 2.3.0
*/
.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container .yui-toolbar-subcont:
after
{display:block;clear:both;visibility:hidden;content:
'.'
;height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;bord...
javascript/yui/build/assets/skins/sam/skin.css view on Meta::CPAN
1234567891011121314151617/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
version: 2.3.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:absolut...
.yui-skin-sam .yui-button{display:-moz-inline-box;display:inline-block;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{display:block;*display...
.yui-calcontainer{position:relative;float:left;_overflow:hidden;}.yui-calcontainer iframe{position:absolute;border:none;margin:0;padding:0;z-
index
:0;width:100%;height:100%;left:0px;top:0px;}.yui-calcontainer iframe.fixedsize{width:50em;height:50em;to...
.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:#e8...
.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-
index
:1;}yui-panel-container form{margin:0;}.masked .yui-panel-container{z-
index
:2;}.mask{z-
index
:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto;}.m...
.yui-dt-table th,.yui-dt-table td{overflow:hidden;}th .yui-dt-header{position:relative;}th .yui-dt-label{position:relative;}th .yui-dt-resizer{position:absolute;margin-right:-6px;right:0;bottom:0;width:6px;height:100%;cursor:w-resize;cursor:col-resiz...
.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container .yui-toolbar-subcont:
after
{display:block;clear:both;visibility:hidden;content:
'.'
;height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;bord...
.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-sa...
.yuimenu .yuimenu,.yuimenubar .yuimenu{position:absolute;visibility:hidden;}.yuimenubar ul,.yuimenu ul{list-style-type:none;}.yuimenubar ul,.yuimenu ul,.yuimenubar li,.yuimenu li,.yuimenu h6,.yuimenubar h6{margin:0;padding:0;}.yuimenuitemlabel,.yuime...
.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 0.5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 0.5em;}.yui-navset .yui-navset-left .yui-nav,.yui-nav...
.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{width:18px;height:22px;cursor:pointer;background:u...
javascript/yui/build/container/README view on Meta::CPAN
161162163164165166167168169170171172173174175176177178179180181
- The shadow element is only styled
when
using the new
"Sam"
skin,
for
the previous
default
skin its
"display"
property is set to
"none."
+ Prototype of all classes (Module, Overlay, Panel, Dialog, SimpleDialog,
Tooltip, Config, and ContainerEffect) are augmented
with
YAHOO.util.EventProvider, facilitating subscribing to an instance's
Custom Events by name via a
"subscribe"
method that is a direct member of
the class. For example:
var oOverlay = new YAHOO.widget.Overlay(
"myoverlay"
);
oOverlay.subscribe(
"show"
, onShow);
+ Added a new
"bringToTop"
method to YAHOO.widget.Overlay that places the
Overlay on top of all other Overlay instances.
+ Added a new
"bringToTop"
method to YAHOO.widget.OverlayManager that places
the specified Overlay instance on top of all other Overlay instances. This
method is called on
each
Overlay instance that is registered
with
an
OverlayManager instance.
javascript/yui/build/container/README view on Meta::CPAN
290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
Overlay's root HTML element (DIV) via the
"hideMacGeckoScrollbars"
and
"showMacGeckoScrollbars"
methods of YAHOO.widget.Overlay.
2) There may be instances where the CSS
for
a web page or application
contains style rules whose specificity
override
the rules implemented by
the Container CSS files to fix this bug. In such cases, is necessary to
leverage the provided
"hide-scrollbars"
and
"show-scrollbars"
classes to
write
custom style rules to guard against this bug. For example:
To fix the scrollbars issue
for
an Overlay instance
with
an id of
"myoverlay"
whose body element
has
scrollbars applied by
default
:
#myoverlay .bd {
height: 100px;
/* Apply scrollbars
for
all browsers. */
overflow: auto;
}
#myoverlay.hide-scrollbars .bd {
/* Hide scrollbars by
default
for
Gecko on OS X */
overflow: hidden;
}
#myoverlay.show-scrollbars .bd {
/* Show scrollbars
for
Gecko on OS X
when
the Overlay is visible */
overflow: auto;
}
To fix the scrollbars issue
for
a Panel instance
with
an id of
"mypanel"
whose body element
has
scrollbars applied by
default
:
#mypanel .bd {
javascript/yui/build/container/assets/container-core.css view on Meta::CPAN
12345678910111213141516/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
version: 2.3.0
*/
.yui-overlay,
.yui-panel-container {
visibility: hidden;
position: absolute;
z-
index
: 1;
}
yui-panel-container form {
javascript/yui/build/container/assets/container.css view on Meta::CPAN
1234567891011121314151617/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
version: 2.3.0
*/
.yui-overlay,
.yui-panel-container {
visibility:hidden;
position:absolute;
z-
index
: 1;
}
.masked .yui-panel-container {
/*
Default to a z-
index
1 higher than
default
if
the Panel is modal
javascript/yui/build/container/assets/skins/sam/container.css view on Meta::CPAN
1234567/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
version: 2.3.0
*/
.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-
index
:1;}yui-panel-container form{margin:0;}.masked .yui-panel-container{z-
index
:2;}.mask{z-
index
:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto;}.m...
javascript/yui/build/container/container-debug.js view on Meta::CPAN
209921002101210221032104210521062107210821092110211121122113211421152116211721182119*/
Overlay.BOTTOM_RIGHT =
"br"
;
/**
* Constant representing the
default
CSS class used
for
an Overlay
*
@property
YAHOO.widget.Overlay.CSS_OVERLAY
*
@static
*
@final
*
@type
String
*/
Overlay.CSS_OVERLAY =
"yui-overlay"
;
/**
* A singleton CustomEvent used
for
reacting to the DOM event
for
* window scroll
*
@event
YAHOO.widget.Overlay.windowScrollEvent
*/
Overlay.windowScrollEvent = new CustomEvent(
"windowScroll"
);
/**
javascript/yui/build/container/container-debug.js view on Meta::CPAN
229422952296229722982299230023012302230323042305230623072308230923102311231223132314/**
* Initializes the class's configurable properties which can be changed
* using the Overlay's Config object (cfg).
*
@method
initDefaultConfig
*/
initDefaultConfig: function () {
Overlay.superclass.initDefaultConfig.call(this);
// Add overlay config properties //
/**
* The absolute x-coordinate position of the Overlay
*
@config
x
*
@type
Number
*
@default
null
*/
this.cfg.addProperty(DEFAULT_CONFIG.X.key, {
handler: this.configX,
javascript/yui/build/container/container-debug.js view on Meta::CPAN
36213622362336243625362636273628362936303631363236333634363536363637363836393640}());
(function () {
/**
* OverlayManager is used
for
maintaining the focus status of
* multiple Overlays.
*
@namespace
YAHOO.widget
*
@namespace
YAHOO.widget
*
@class
OverlayManager
*
@constructor
*
@param
{Array} overlays Optional. A collection of Overlays to register
*
with
the manager.
*
@param
{Object} userConfig The object literal representing the user
* configuration of the OverlayManager
*/
YAHOO.widget.OverlayManager = function (userConfig) {
this.init(userConfig);
};
javascript/yui/build/container/container-debug.js view on Meta::CPAN
366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714/**
* The class's constructor function
*
@property
contructor
*
@type
Function
*/
constructor: OverlayManager,
/**
* The array of Overlays that are currently registered
*
@property
overlays
*
@type
YAHOO.widget.Overlay[]
*/
overlays: null,
/**
* Initializes the
default
configuration of the OverlayManager
*
@method
initDefaultConfig
*/
initDefaultConfig: function () {
/**
* the OverlayManager
*
@config
overlays
*
@type
YAHOO.widget.Overlay[]
*
@default
null
*/
this.cfg.addProperty(
"overlays"
, { suppressEvent: true } );
/**
* The
default
DOM event that should be used to focus an Overlay
*
@config
focusevent
*
@type
String
*
@default
"mousedown"
*/
this.cfg.addProperty(
"focusevent"
, { value:
"mousedown"
} );
},
/**
* Initializes the OverlayManager
*
@method
init
*
@param
{Overlay[]} overlays Optional. A collection of Overlays to
* register
with
the manager.
*
@param
{Object} userConfig The object literal representing the user
* configuration of the OverlayManager
*/
init: function (userConfig) {
/**
* The OverlayManager's Config object used
for
monitoring
* configuration properties.
*
@property
cfg
javascript/yui/build/container/container-debug.js view on Meta::CPAN
37363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761*
@method
getActive
*
@return
{Overlay} The currently focused Overlay
*/
this.getActive = function () {
return
activeOverlay;
};
/**
* Focuses the specified Overlay
*
@method
focus
*
@param
{Overlay} overlay The Overlay to focus
*
@param
{String} overlay The id of the Overlay to focus
*/
this.focus = function (overlay) {
var o = this.find(overlay);
if
(o) {
if
(activeOverlay != o) {
if
(activeOverlay) {
activeOverlay.blur();
}
javascript/yui/build/container/container-debug.js view on Meta::CPAN
37713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814
}
}
};
/**
* Removes the specified Overlay from the manager
*
@method
remove
*
@param
{Overlay} overlay The Overlay to remove
*
@param
{String} overlay The id of the Overlay to remove
*/
this.remove = function (overlay) {
var o = this.find(overlay),
originalZ;
if
(o) {
if
(activeOverlay == o) {
activeOverlay = null;
}
originalZ = Dom.getStyle(o.element,
"zIndex"
);
o.cfg.setProperty(
"zIndex"
, -1000, true);
this.overlays.
sort
(this.compareZIndexDesc);
this.overlays =
this.overlays.slice(0, (this.overlays.
length
- 1));
o.hideEvent.unsubscribe(o.blur);
o.destroyEvent.unsubscribe(this._onOverlayDestroy, o);
if
(o.element) {
Event.removeListener(o.element,
this.cfg.getProperty(
"focusevent"
),
this._onOverlayElementFocus);
javascript/yui/build/container/container-debug.js view on Meta::CPAN
3828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882
}
};
/**
* Removes focus from all registered Overlays in the manager
*
@method
blurAll
*/
this.blurAll = function () {
var nOverlays = this.overlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
this.overlays[i].blur();
}
while
(i--);
}
};
this._onOverlayBlur = function (p_sType, p_aArgs) {
activeOverlay = null;
};
var overlays = this.cfg.getProperty(
"overlays"
);
if
(! this.overlays) {
this.overlays = [];
}
if
(overlays) {
this.register(overlays);
this.overlays.
sort
(this.compareZIndexDesc);
}
},
/**
*
@method
_onOverlayElementFocus
*
@description
Event handler
for
the DOM event that is used to focus
* the Overlay instance as specified by the
"focusevent"
* configuration property.
*
@private
javascript/yui/build/container/container-debug.js view on Meta::CPAN
391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014
this.remove(p_oOverlay);
},
/**
* Registers an Overlay or an array of Overlays
with
the manager. Upon
* registration, the Overlay receives functions
for
focus and blur,
* along
with
CustomEvents
for
each
.
*
@method
register
*
@param
{Overlay} overlay An Overlay to register
with
the manager.
*
@param
{Overlay[]} overlay An array of Overlays to register
with
* the manager.
*
@return
{Boolean} True
if
any Overlays are registered.
*/
register: function (overlay) {
var mgr = this,
zIndex,
regcount,
i,
nOverlays;
if
(overlay instanceof Overlay) {
overlay.cfg.addProperty(
"manager"
, { value: this } );
overlay.focusEvent = overlay.createEvent(
"focus"
);
overlay.focusEvent.signature = CustomEvent.LIST;
overlay.blurEvent = overlay.createEvent(
"blur"
);
overlay.blurEvent.signature = CustomEvent.LIST;
overlay.focus = function () {
mgr.focus(this);
};
overlay.blur = function () {
if
(mgr.getActive() == this) {
Dom.removeClass(this.element,
OverlayManager.CSS_FOCUSED);
this.blurEvent.fire();
}
};
overlay.blurEvent.subscribe(mgr._onOverlayBlur);
overlay.hideEvent.subscribe(overlay.blur);
overlay.destroyEvent.subscribe(this._onOverlayDestroy,
overlay, this);
Event.on(overlay.element, this.cfg.getProperty(
"focusevent"
),
this._onOverlayElementFocus, null, overlay);
zIndex = Dom.getStyle(overlay.element,
"zIndex"
);
if
(!isNaN(zIndex)) {
overlay.cfg.setProperty(
"zIndex"
, parseInt(zIndex, 10));
}
else
{
overlay.cfg.setProperty(
"zIndex"
, 0);
}
this.overlays.
push
(overlay);
this.bringToTop(overlay);
return
true;
}
else
if
(overlay instanceof Array) {
regcount = 0;
nOverlays = overlay.
length
;
for
(i = 0; i < nOverlays; i++) {
if
(this.register(overlay[i])) {
regcount++;
}
}
if
(regcount > 0) {
return
true;
javascript/yui/build/container/container-debug.js view on Meta::CPAN
403440354036403740384039404040414042404340444045404640474048404940504051405240534054*/
bringToTop: function (p_oOverlay) {
var oOverlay = this.find(p_oOverlay),
nTopZIndex,
oTopOverlay,
aOverlays;
if
(oOverlay) {
aOverlays = this.overlays;
aOverlays.
sort
(this.compareZIndexDesc);
oTopOverlay = aOverlays[0];
if
(oTopOverlay) {
nTopZIndex = Dom.getStyle(oTopOverlay.element,
"zIndex"
);
if
(!isNaN(nTopZIndex) && oTopOverlay != oOverlay) {
javascript/yui/build/container/container-debug.js view on Meta::CPAN
4062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113
}
}
},
/**
* Attempts to locate an Overlay by instance or ID.
*
@method
find
*
@param
{Overlay} overlay An Overlay to locate within the manager
*
@param
{String} overlay An Overlay id to locate within the manager
*
@return
{Overlay} The requested Overlay,
if
found, or null
if
it
* cannot be located.
*/
find: function (overlay) {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
if
(overlay instanceof Overlay) {
do
{
if
(aOverlays[i] == overlay) {
return
aOverlays[i];
}
}
while
(i--);
}
else
if
(typeof overlay ==
"string"
) {
do
{
if
(aOverlays[i].id == overlay) {
return
aOverlays[i];
}
}
while
(i--);
}
javascript/yui/build/container/container-debug.js view on Meta::CPAN
413841394140414141424143414441454146414741484149415041514152415341544155415641574158
return
0;
}
},
/**
* Shows all Overlays in the manager.
*
@method
showAll
*/
showAll: function () {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
aOverlays[i].show();
javascript/yui/build/container/container-debug.js view on Meta::CPAN
416341644165416641674168416941704171417241734174417541764177417841794180418141824183
}
},
/**
* Hides all Overlays in the manager.
*
@method
hideAll
*/
hideAll: function () {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
aOverlays[i].hide();
javascript/yui/build/container/container-debug.js view on Meta::CPAN
79747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236}());
(function () {
/**
* ContainerEffect encapsulates animation transitions that are executed
when
* an Overlay is shown or hidden.
*
@namespace
YAHOO.widget
*
@class
ContainerEffect
*
@constructor
*
@param
{YAHOO.widget.Overlay} overlay The Overlay that the animation
* should be associated
with
*
@param
{Object} attrIn The object literal representing the animation
* arguments to be used
for
the animate-in transition. The arguments
for
* this literal are: attributes(object, see YAHOO.util.Anim
for
description),
* duration(Number), and method(i.e. Easing.easeIn).
*
@param
{Object} attrOut The object literal representing the animation
* arguments to be used
for
the animate-out transition. The arguments
for
* this literal are: attributes(object, see YAHOO.util.Anim
for
description),
* duration(Number), and method(i.e. Easing.easeIn).
*
@param
{HTMLElement} targetElement Optional. The target element that
* should be animated during the transition. Defaults to overlay.element.
*
@param
{class} Optional. The animation class to instantiate. Defaults to
* YAHOO.util.Anim. Other options include YAHOO.util.Motion.
*/
YAHOO.widget.ContainerEffect =
function (overlay, attrIn, attrOut, targetElement, animClass) {
if
(!animClass) {
animClass = YAHOO.util.Anim;
}
/**
* The overlay to animate
*
@property
overlay
*
@type
YAHOO.widget.Overlay
*/
this.overlay = overlay;
/**
* The animation attributes to
use
when
transitioning into view
*
@property
attrIn
*
@type
Object
*/
this.attrIn = attrIn;
/**
* The animation attributes to
use
when
transitioning out of view
*
@property
attrOut
*
@type
Object
*/
this.attrOut = attrOut;
/**
* The target element to be animated
*
@property
targetElement
*
@type
HTMLElement
*/
this.targetElement = targetElement || overlay.element;
/**
* The animation class to
use
for
animating the overlay
*
@property
animClass
*
@type
class
*/
this.animClass = animClass;
};
var Dom = YAHOO.util.Dom,
CustomEvent = YAHOO.util.CustomEvent,
Easing = YAHOO.util.Easing,
ContainerEffect = YAHOO.widget.ContainerEffect;
/**
* A pre-configured ContainerEffect instance that can be used
for
fading
* an overlay in and out.
*
@method
FADE
*
@static
*
@param
{YAHOO.widget.Overlay} overlay The Overlay object to animate
*
@param
{Number} dur The duration of the animation
*
@return
{YAHOO.widget.ContainerEffect} The configured ContainerEffect object
*/
ContainerEffect.FADE = function (overlay, dur) {
var fade = new ContainerEffect(overlay,
{ attributes: { opacity: { from: 0, to: 1 } },
duration: dur,
method: Easing.easeIn },
{ attributes: { opacity: { to: 0 } },
duration: dur,
method: Easing.easeOut },
overlay.element);
fade.handleStartAnimateIn = function (type,args,obj) {
Dom.addClass(obj.overlay.element,
"hide-select"
);
if
(! obj.overlay.underlay) {
obj.overlay.cfg.refireEvent(
"underlay"
);
}
if
(obj.overlay.underlay) {
obj.initialUnderlayOpacity =
Dom.getStyle(obj.overlay.underlay,
"opacity"
);
obj.overlay.underlay.style.filter = null;
}
Dom.setStyle(obj.overlay.element,
"visibility"
,
"visible"
);
Dom.setStyle(obj.overlay.element,
"opacity"
, 0);
};
fade.handleCompleteAnimateIn = function (type,args,obj) {
Dom.removeClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.element.style.filter) {
obj.overlay.element.style.filter = null;
}
if
(obj.overlay.underlay) {
Dom.setStyle(obj.overlay.underlay,
"opacity"
,
obj.initialUnderlayOpacity);
}
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateInCompleteEvent.fire();
};
fade.handleStartAnimateOut = function (type, args, obj) {
Dom.addClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.underlay) {
obj.overlay.underlay.style.filter = null;
}
};
fade.handleCompleteAnimateOut = function (type, args, obj) {
Dom.removeClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.element.style.filter) {
obj.overlay.element.style.filter = null;
}
Dom.setStyle(obj.overlay.element,
"visibility"
,
"hidden"
);
Dom.setStyle(obj.overlay.element,
"opacity"
, 1);
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateOutCompleteEvent.fire();
};
fade.init();
return
fade;
};
/**
* A pre-configured ContainerEffect instance that can be used
for
sliding an
* overlay in and out.
*
@method
SLIDE
*
@static
*
@param
{YAHOO.widget.Overlay} overlay The Overlay object to animate
*
@param
{Number} dur The duration of the animation
*
@return
{YAHOO.widget.ContainerEffect} The configured ContainerEffect object
*/
ContainerEffect.SLIDE = function (overlay, dur) {
var x = overlay.cfg.getProperty(
"x"
) || Dom.getX(overlay.element),
y = overlay.cfg.getProperty(
"y"
) || Dom.getY(overlay.element),
clientWidth = Dom.getClientWidth(),
offsetWidth = overlay.element.offsetWidth,
slide = new ContainerEffect(overlay,
{ attributes: { points: { to: [x, y] } },
duration: dur,
method: Easing.easeIn },
{ attributes: { points: { to: [(clientWidth + 25), y] } },
duration: dur,
method: Easing.easeOut },
overlay.element, YAHOO.util.Motion);
slide.handleStartAnimateIn = function (type,args,obj) {
obj.overlay.element.style.left = ((-25) - offsetWidth) +
"px"
;
obj.overlay.element.style.top = y +
"px"
;
};
slide.handleTweenAnimateIn = function (type, args, obj) {
var
pos
= Dom.getXY(obj.overlay.element),
currentX =
pos
[0],
currentY =
pos
[1];
if
(Dom.getStyle(obj.overlay.element,
"visibility"
) ==
"hidden"
&& currentX < x) {
Dom.setStyle(obj.overlay.element,
"visibility"
,
"visible"
);
}
obj.overlay.cfg.setProperty(
"xy"
, [currentX, currentY], true);
obj.overlay.cfg.refireEvent(
"iframe"
);
};
slide.handleCompleteAnimateIn = function (type, args, obj) {
obj.overlay.cfg.setProperty(
"xy"
, [x, y], true);
obj.startX = x;
obj.startY = y;
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateInCompleteEvent.fire();
};
slide.handleStartAnimateOut = function (type, args, obj) {
var vw = Dom.getViewportWidth(),
pos
= Dom.getXY(obj.overlay.element),
yso =
pos
[1],
currentTo = obj.animOut.attributes.points.to;
obj.animOut.attributes.points.to = [(vw + 25), yso];
};
slide.handleTweenAnimateOut = function (type, args, obj) {
var
pos
= Dom.getXY(obj.overlay.element),
xto =
pos
[0],
yto =
pos
[1];
obj.overlay.cfg.setProperty(
"xy"
, [xto, yto], true);
obj.overlay.cfg.refireEvent(
"iframe"
);
};
slide.handleCompleteAnimateOut = function (type, args, obj) {
Dom.setStyle(obj.overlay.element,
"visibility"
,
"hidden"
);
obj.overlay.cfg.setProperty(
"xy"
, [x, y]);
obj.animateOutCompleteEvent.fire();
};
slide.init();
return
slide;
};
ContainerEffect.
prototype
= {
/**
javascript/yui/build/container/container-debug.js view on Meta::CPAN
8345834683478348834983508351835283538354835583568357835883598360836183628363836483658366
*/
handleCompleteAnimateOut: function (type, args, obj) { },
/**
* Returns a string representation of the object.
*
@method
toString
*
@return
{String} The string representation of the ContainerEffect
*/
toString: function () {
var output =
"ContainerEffect"
;
if
(this.overlay) {
output +=
" ["
+ this.overlay.toString() +
"]"
;
}
return
output;
}
};
YAHOO.lang.augmentProto(ContainerEffect, YAHOO.util.EventProvider);
})();
YAHOO.register(
"container"
, YAHOO.widget.Module, {version:
"2.3.0"
, build:
"442"
});
javascript/yui/build/container/container-min.js view on Meta::CPAN
515253545556575859606162636465666768697071this.changeBodyEvent.fire(bodyContent);this.changeContentEvent.fire();},appendToBody:function(element){var oBody=this.body||(this.body=createBody());oBody.appendChild(element);this.changeBodyEvent.fire(element);this.changeContentEvent.fire();},setFoo...
this.changeFooterEvent.fire(footerContent);this.changeContentEvent.fire();},appendToFooter:function(element){var oFooter=this.footer||(this.footer=createFooter());oFooter.appendChild(element);this.changeFooterEvent.fire(element);this.changeContentEve...
if
(element){element.appendChild(me.element);me.appendEvent.fire();}}
this.beforeRenderEvent.fire();
if
(!moduleElement){moduleElement=this.element;}
if
(appendToNode){appendTo(appendToNode);}
else
{
if
(!Dom.inDocument(this.element)){
return
false;}}
if
(this.header&&!Dom.inDocument(this.header)){firstChild=moduleElement.firstChild;
if
(firstChild){moduleElement.insertBefore(this.header,firstChild);}
else
{moduleElement.appendChild(this.header);}}
if
(this.body&&!Dom.inDocument(this.body)){
if
(this.footer&
&Dom
.isAncestor(this.moduleElement,this.footer)){moduleElement.insertBefore(this.body,this.footer);}
else
{moduleElement.appendChild(this.body);}}
if
(this.footer&&!Dom.inDocument(this.footer)){moduleElement.appendChild(this.footer);}
this.renderEvent.fire();
return
true;},destroy:function(){var parent,e;
if
(this.element){Event.purgeElement(this.element,true);parent=this.element.parentNode;}
if
(parent){parent.removeChild(this.element);}
this.element=null;this.header=null;this.body=null;this.footer=null;Module.textResizeEvent.unsubscribe(this.onDomResize,this);this.cfg.destroy();this.cfg=null;this.destroyEvent.fire();
for
(e in this){
if
(e instanceof CustomEvent){e.unsubscribeAll();}}},...
clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){Overlay.windowScrollEvent.fire();},1);}
else
{Overlay.windowScrollEvent.fire();}};Overlay.windowResizeHandler=function(e){
if
(YAHOO.env.ua.ie){
if
(!window.resizeEnd){window.resizeEnd=-...
clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){Overlay.windowResizeEvent.fire();},100);}
else
{Overlay.windowResizeEvent.fire();}};Overlay._initialized=null;
if
(Overlay._initialized===null){Event.on(window,
"scroll"
,Overlay.windowS...
YAHOO.extend(Overlay,Module,{init:function(el,userConfig){Overlay.superclass.init.call(this,el);this.beforeInitEvent.fire(Overlay);Dom.addClass(this.element,Overlay.CSS_OVERLAY);
if
(userConfig){this.cfg.applyConfig(userConfig,true);}
if
(this.platform==
"mac"
&
&YAHOO
.env.ua.gecko){
if
(!Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);}
if
(!Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);}}
this.initEvent.fire(Overlay);},initEvents:function(){Overlay.superclass.initEvents.call(this);var SIGNATURE=CustomEvent.LIST;this.beforeMoveEvent=this.createEvent(EVENT_TYPES.BEFORE_MOVE);this.beforeMoveEvent.signature=SIGNATURE;this.moveEvent=this.c...
e=e.parentNode;}
if
(currentVis==
"inherit"
){currentVis=
"visible"
;}}
if
(effect){
if
(effect instanceof Array){nEffects=effect.
length
;
for
(i=0;i<nEffects;i++){eff=effect[i];effectInstances[effectInstances.
length
]=eff.effect(this,eff.duration);}}
else
{effectInstances[effectInstances.
length
]=effect.effect(this,effect.duratio...
if
(visible){
if
(isMacGecko){this.showMacGeckoScrollbars();}
javascript/yui/build/container/container-min.js view on Meta::CPAN
919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125else
{
if
(!this._iframeDeferred){this.beforeShowEvent.subscribe(onBeforeShow);this._iframeDeferred=true;}}}
else
{this.hideIframe();
if
(this._hasIframeEventListeners){this.showEvent.unsubscribe(this.showIframe);this.hideEvent.unsubscribe(this.hideIframe);...
if
(elementMagnetCorner&
&contextMagnetCorner
){this.align(elementMagnetCorner,contextMagnetCorner);}}}},align:function(elementAlign,contextAlign){var contextArgs=this.cfg.getProperty(
"context"
),me=this,context,element,contextRegion;function doAlign(v,h...
if
(contextArgs){context=contextArgs[0];element=this.element;me=this;
if
(!elementAlign){elementAlign=contextArgs[1];}
if
(!contextAlign){contextAlign=contextArgs[2];}
if
(element&
&context
){contextRegion=Dom.getRegion(context);switch(contextAlign){case Overlay.TOP_LEFT:doAlign(contextRegion.top,contextRegion.left);break;case Overlay.TOP_RIGHT:doAlign(contextRegion.top,contextRegion.right);break;case Overlay.BOTTOM_L...
if
(y<topConstraint){y=topConstraint;}
else
if
(y>bottomConstraint){y=bottomConstraint;}
this.cfg.setProperty(
"x"
,x,true);this.cfg.setProperty(
"y"
,y,true);this.cfg.setProperty(
"xy"
,[x,y],true);},center:function(){var scrollX=Dom.getDocumentScrollLeft(),scrollY=Dom.getDocumentScrollTop(),viewPortWidth=Dom.getClientWidth(),viewPortHeight=D...
function isOverlayElement(p_oElement){var oOverlay=Dom.hasClass(p_oElement,Overlay.CSS_OVERLAY),Panel=YAHOO.widget.Panel;
if
(oOverlay&&!Dom.isAncestor(oElement,oOverlay)){
if
(Panel&
&Dom
.hasClass(p_oElement,Panel.CSS_PANEL)){aOverlays[aOverlays.
length
]=...
else
{aOverlays[aOverlays.
length
]=p_oElement;}}}
Dom.getElementsBy(isOverlayElement,
"DIV"
,document.body);aOverlays.
sort
(compareZIndexDesc);var oTopOverlay=aOverlays[0],nTopZIndex;
if
(oTopOverlay){nTopZIndex=Dom.getStyle(oTopOverlay,
"zIndex"
);
if
(!isNaN(nTopZIndex)&
&oTopOverlay
!=oElement){this.cfg.set...
this.iframe=null;Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);Overlay.superclass.destroy.call(this);},toString:function(){
return
"Overlay "
+this.id;}});}());(fu...
this.cfg.fireQueue();var activeOverlay=null;this.getActive=function(){
return
activeOverlay;};this.focus=function(overlay){var o=this.find(overlay);
if
(o){
if
(activeOverlay!=o){
if
(activeOverlay){activeOverlay.blur();}
this.bringToTop(o);activeOverlay=o;Dom.addClass(activeOverlay.element,OverlayManager.CSS_FOCUSED);o.focusEvent.fire();}}};this.remove=function(overlay){var o=this.find(overlay),originalZ;
if
(o){
if
(activeOverlay==o){activeOverlay=null;}
originalZ=Dom.getStyle(o.element,
"zIndex"
);o.cfg.setProperty(
"zIndex"
,-1000,true);this.overlays.
sort
(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,(this.overlays.
length
-1));o.hideEvent.unsubscribe(o.blur);o.destroyEvent.unsubscribe(this...
o.cfg.setProperty(
"zIndex"
,originalZ,true);o.cfg.setProperty(
"manager"
,null);o.focusEvent.unsubscribeAll();o.blurEvent.unsubscribeAll();o.focusEvent=null;o.blurEvent=null;o.focus=null;o.blur=null;}};this.blurAll=function(){var nOverlays=this.overlays...
while
(i--);}};this._onOverlayBlur=function(p_sType,p_aArgs){activeOverlay=null;};var overlays=this.cfg.getProperty(
"overlays"
);
if
(!this.overlays){this.overlays=[];}
if
(overlays){this.register(overlays);this.overlays.
sort
(this.compareZIndexDesc);}},_onOverlayElementFocus:function(p_oEvent){var oTarget=Event.getTarget(p_oEvent),oClose=this.
close
;
if
(oClose&&(oTarget==oClose||Dom.isAncestor(oClose,oTarget))){this.bl...
else
{this.focus();}},_onOverlayDestroy:function(p_sType,p_aArgs,p_oOverlay){this.remove(p_oOverlay);},register:function(overlay){var mgr=this,zIndex,regcount,i,nOverlays;
if
(overlay instanceof Overlay){overlay.cfg.addProperty(
"manager"
,{value:this});o...
this.overlays.
push
(overlay);this.bringToTop(overlay);
return
true;}
else
if
(overlay instanceof Array){regcount=0;nOverlays=overlay.
length
;
for
(i=0;i<nOverlays;i++){
if
(this.register(overlay[i])){regcount++;}}
if
(regcount>0){
return
true;}}
else
{
return
false;}},bringToTop:function(p_oOverlay){var oOverlay=this.find(p_oOverlay),nTopZIndex,oTopOverlay,aOverlays;
if
(oOverlay){aOverlays=this.overlays;aOverlays.
sort
(this.compareZIndexDesc);oTopOverlay=aOverlays[0]...
aOverlays.
sort
(this.compareZIndexDesc);}}},find:function(overlay){var aOverlays=this.overlays,nOverlays=aOverlays.
length
,i;
if
(nOverlays>0){i=nOverlays-1;
if
(overlay instanceof Overlay){
do
{
if
(aOverlays[i]==overlay){
return
aOverlays[i];}}
while
(i--);}
else
if
(typeof overlay==
"string"
){
do
{
if
(aOverlays[i].id==overlay){
return
aOverlays[i];}}
while
(i--);}
return
null;}},compareZIndexDesc:function(o1,o2){var zIndex1=o1.cfg.getProperty(
"zIndex"
),zIndex2=o2.cfg.getProperty(
"zIndex"
);
if
(zIndex1>zIndex2){
return
-1;}
else
if
(zIndex1<zIndex2){
return
1;}
else
{
return
0;}},showAll:function(){var aOverlays=this.ove...
while
(i--);}},hideAll:function(){var aOverlays=this.overlays,nOverlays=aOverlays.
length
,i;
if
(nOverlays>0){i=nOverlays-1;
do
{aOverlays[i].hide();}
while
(i--);}},toString:function(){
return
"OverlayManager"
;}};}());(function(){YAHOO.widget.Tooltip=function(el,userConfig){YAHOO.widget.Tooltip.superclass.constructor.call(this,el,userConfig);};var Lang=YAHOO.lang,Event=YAHOO.util.Event,Dom=YAHOO.util...
this.unsubscribe(
"hide"
,this._onHide,p_oObject);}
function setWidthToOffsetWidth(p_sType,p_aArgs){var oBody=document.body,oConfig=this.cfg,sOriginalWidth=oConfig.getProperty(
"width"
),sNewWidth,oClone;
if
((!sOriginalWidth||sOriginalWidth==
"auto"
)&&(oConfig.getProperty(
"container"
)!=oBody||oConfig.getP...
function onDOMReady(p_sType,p_aArgs,p_oObject){this.render(p_oObject);}
function onInit(){Event.onDOMReady(onDOMReady,this.cfg.getProperty(
"container"
),this);}
YAHOO.extend(Tooltip,YAHOO.widget.Overlay,{init:function(el,userConfig){Tooltip.superclass.init.call(this,el);this.beforeInitEvent.fire(Tooltip);Dom.addClass(this.element,Tooltip.CSS_TOOLTIP);
if
(userConfig){this.cfg.applyConfig(userConfig,true);}
this.cfg.queueProperty(
"visible"
,false);this.cfg.queueProperty(
"constraintoviewport"
,true);this.setBody(
""
);this.subscribe(
"beforeShow"
,setWidthToOffsetWidth);this.subscribe(
"init"
,onInit);this.subscribe(
"render"
,this.onRender);this.initEvent.fire(To...
while
(i--);}}},configContext:function(type,args,obj){var context=args[0],aElements,nElements,oElement,i;
if
(context){
if
(!(context instanceof Array)){
if
(typeof context==
"string"
){this.cfg.setProperty(
"context"
,[document.getElementById(context)],true);}...
context=this.cfg.getProperty(
"context"
);}
this._removeEventListeners();this._context=context;aElements=this._context;
if
(aElements){nElements=aElements.
length
;
if
(nElements>0){i=nElements-1;
do
{oElement=aElements[i];Event.on(oElement,
"mouseover"
,this.onContextMouseOver,this);Event.on(oElement,"...
javascript/yui/build/container/container-min.js view on Meta::CPAN
221222223224225226227228229230231232233234235236237238239aValues[aValues.
length
]=sValue;}}
oData[sName]=aValues;break;}}
else
{sType=oElement[0].type;switch(sType){case
"radio"
:
for
(n=0;n<nElements;n++){oRadio=oElement[n];
if
(oRadio.checked){oData[sName]=oRadio.value;break;}}
break;case
"checkbox"
:aValues=[];
for
(n=0;n<nElements;n++){oCheckbox=oElement[n];
if
(oCheckbox.checked){aValues[aValues.
length
]=oCheckbox.value;}}
oData[sName]=aValues;break;}}}}}
return
oData;},destroy:function(){removeButtonEventHandlers.call(this);this._aButtons=null;var aForms=this.element.getElementsByTagName(
"form"
),oForm;
if
(aForms.
length
>0){oForm=aForms[0];
if
(oForm){Event.purgeElement(oForm);this.body.removeChild(oForm)...
Dialog.superclass.destroy.call(this);},toString:function(){
return
"Dialog "
+this.id;}});}());(function(){YAHOO.widget.SimpleDialog=function(el,userConfig){YAHOO.widget.SimpleDialog.superclass.constructor.call(this,el,userConfig);};var Dom=YAHOO.util.D...
this.beforeRenderEvent.subscribe(function(){
if
(!this.body){this.setBody(
""
);}},this,true);this.initEvent.fire(SimpleDialog);},registerForm:function(){SimpleDialog.superclass.registerForm.call(this);this.form.innerHTML+="<input type=\"hidden\" name=\"...
this.id+
"\" value=\"\"/>"
;},configIcon:function(type,args,obj){var sIcon=args[0],oBody=this.body,sCSSClass=SimpleDialog.ICON_CSS_CLASSNAME,oIcon,oIconParent;
if
(sIcon&
&sIcon
!=
"none"
){oIcon=Dom.getElementsByClassName(sCSSClass,
"*"
,oBody);
if
(oIcon){oIco...
if
(sIcon.indexOf(
"."
)==-1){oIcon=document.createElement(
"span"
);oIcon.className=(sCSSClass+
" "
+sIcon);oIcon.innerHTML=
" "
;}
else
{oIcon=document.createElement(
"img"
);oIcon.src=(this.imageRoot+sIcon);oIcon.className=sCSSClass;}
if
(oIcon){oBody.insertBefore(oIcon,oBody.firstChild);}}},configText:function(type,args,obj){var text=args[0];
if
(text){this.setBody(text);this.cfg.refireEvent(
"icon"
);}},toString:function(){
return
"SimpleDialog "
+this.id;}});}());(function(){YAHOO.widg...
this.overlay=overlay;this.attrIn=attrIn;this.attrOut=attrOut;this.targetElement=targetElement||overlay.element;this.animClass=animClass;};var Dom=YAHOO.util.Dom,CustomEvent=YAHOO.util.CustomEvent,Easing=YAHOO.util.Easing,ContainerEffect=YAHOO.widget....
if
(obj.overlay.underlay){obj.initialUnderlayOpacity=Dom.getStyle(obj.overlay.underlay,
"opacity"
);obj.overlay.underlay.style.filter=null;}
Dom.setStyle(obj.overlay.element,
"visibility"
,
"visible"
);Dom.setStyle(obj.overlay.element,
"opacity"
,0);};fade.handleCompleteAnimateIn=function(type,args,obj){Dom.removeClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.element.style.filter){obj....
if
(obj.overlay.underlay){Dom.setStyle(obj.overlay.underlay,
"opacity"
,obj.initialUnderlayOpacity);}
obj.overlay.cfg.refireEvent(
"iframe"
);obj.animateInCompleteEvent.fire();};fade.handleStartAnimateOut=function(type,args,obj){Dom.addClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.underlay){obj.overlay.underlay.style.filter=null;}};fade.handl...
Dom.setStyle(obj.overlay.element,
"visibility"
,
"hidden"
);Dom.setStyle(obj.overlay.element,
"opacity"
,1);obj.overlay.cfg.refireEvent(
"iframe"
);obj.animateOutCompleteEvent.fire();};fade.init();
return
fade;};ContainerEffect.SLIDE=function(overlay,dur){var...
obj.overlay.cfg.setProperty(
"xy"
,[currentX,currentY],true);obj.overlay.cfg.refireEvent(
"iframe"
);};slide.handleCompleteAnimateIn=function(type,args,obj){obj.overlay.cfg.setProperty(
"xy"
,[x,y],true);obj.startX=x;obj.startY=y;obj.overlay.cfg.refireEven...
return
output;}};YAHOO.lang.augmentProto(ContainerEffect,YAHOO.util.EventProvider);})();YAHOO.register(
"container"
,YAHOO.widget.Module,{version:
"2.3.0"
,build:
"442"
});
javascript/yui/build/container/container.js view on Meta::CPAN
208920902091209220932094209520962097209820992100210121022103210421052106210721082109*/
Overlay.BOTTOM_RIGHT =
"br"
;
/**
* Constant representing the
default
CSS class used
for
an Overlay
*
@property
YAHOO.widget.Overlay.CSS_OVERLAY
*
@static
*
@final
*
@type
String
*/
Overlay.CSS_OVERLAY =
"yui-overlay"
;
/**
* A singleton CustomEvent used
for
reacting to the DOM event
for
* window scroll
*
@event
YAHOO.widget.Overlay.windowScrollEvent
*/
Overlay.windowScrollEvent = new CustomEvent(
"windowScroll"
);
/**
javascript/yui/build/container/container.js view on Meta::CPAN
228422852286228722882289229022912292229322942295229622972298229923002301230223032304/**
* Initializes the class's configurable properties which can be changed
* using the Overlay's Config object (cfg).
*
@method
initDefaultConfig
*/
initDefaultConfig: function () {
Overlay.superclass.initDefaultConfig.call(this);
// Add overlay config properties //
/**
* The absolute x-coordinate position of the Overlay
*
@config
x
*
@type
Number
*
@default
null
*/
this.cfg.addProperty(DEFAULT_CONFIG.X.key, {
handler: this.configX,
javascript/yui/build/container/container.js view on Meta::CPAN
36103611361236133614361536163617361836193620362136223623362436253626362736283629}());
(function () {
/**
* OverlayManager is used
for
maintaining the focus status of
* multiple Overlays.
*
@namespace
YAHOO.widget
*
@namespace
YAHOO.widget
*
@class
OverlayManager
*
@constructor
*
@param
{Array} overlays Optional. A collection of Overlays to register
*
with
the manager.
*
@param
{Object} userConfig The object literal representing the user
* configuration of the OverlayManager
*/
YAHOO.widget.OverlayManager = function (userConfig) {
this.init(userConfig);
};
javascript/yui/build/container/container.js view on Meta::CPAN
365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703/**
* The class's constructor function
*
@property
contructor
*
@type
Function
*/
constructor: OverlayManager,
/**
* The array of Overlays that are currently registered
*
@property
overlays
*
@type
YAHOO.widget.Overlay[]
*/
overlays: null,
/**
* Initializes the
default
configuration of the OverlayManager
*
@method
initDefaultConfig
*/
initDefaultConfig: function () {
/**
* the OverlayManager
*
@config
overlays
*
@type
YAHOO.widget.Overlay[]
*
@default
null
*/
this.cfg.addProperty(
"overlays"
, { suppressEvent: true } );
/**
* The
default
DOM event that should be used to focus an Overlay
*
@config
focusevent
*
@type
String
*
@default
"mousedown"
*/
this.cfg.addProperty(
"focusevent"
, { value:
"mousedown"
} );
},
/**
* Initializes the OverlayManager
*
@method
init
*
@param
{Overlay[]} overlays Optional. A collection of Overlays to
* register
with
the manager.
*
@param
{Object} userConfig The object literal representing the user
* configuration of the OverlayManager
*/
init: function (userConfig) {
/**
* The OverlayManager's Config object used
for
monitoring
* configuration properties.
*
@property
cfg
javascript/yui/build/container/container.js view on Meta::CPAN
37253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750*
@method
getActive
*
@return
{Overlay} The currently focused Overlay
*/
this.getActive = function () {
return
activeOverlay;
};
/**
* Focuses the specified Overlay
*
@method
focus
*
@param
{Overlay} overlay The Overlay to focus
*
@param
{String} overlay The id of the Overlay to focus
*/
this.focus = function (overlay) {
var o = this.find(overlay);
if
(o) {
if
(activeOverlay != o) {
if
(activeOverlay) {
activeOverlay.blur();
}
javascript/yui/build/container/container.js view on Meta::CPAN
37603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803
}
}
};
/**
* Removes the specified Overlay from the manager
*
@method
remove
*
@param
{Overlay} overlay The Overlay to remove
*
@param
{String} overlay The id of the Overlay to remove
*/
this.remove = function (overlay) {
var o = this.find(overlay),
originalZ;
if
(o) {
if
(activeOverlay == o) {
activeOverlay = null;
}
originalZ = Dom.getStyle(o.element,
"zIndex"
);
o.cfg.setProperty(
"zIndex"
, -1000, true);
this.overlays.
sort
(this.compareZIndexDesc);
this.overlays =
this.overlays.slice(0, (this.overlays.
length
- 1));
o.hideEvent.unsubscribe(o.blur);
o.destroyEvent.unsubscribe(this._onOverlayDestroy, o);
if
(o.element) {
Event.removeListener(o.element,
this.cfg.getProperty(
"focusevent"
),
this._onOverlayElementFocus);
javascript/yui/build/container/container.js view on Meta::CPAN
3817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871
}
};
/**
* Removes focus from all registered Overlays in the manager
*
@method
blurAll
*/
this.blurAll = function () {
var nOverlays = this.overlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
this.overlays[i].blur();
}
while
(i--);
}
};
this._onOverlayBlur = function (p_sType, p_aArgs) {
activeOverlay = null;
};
var overlays = this.cfg.getProperty(
"overlays"
);
if
(! this.overlays) {
this.overlays = [];
}
if
(overlays) {
this.register(overlays);
this.overlays.
sort
(this.compareZIndexDesc);
}
},
/**
*
@method
_onOverlayElementFocus
*
@description
Event handler
for
the DOM event that is used to focus
* the Overlay instance as specified by the
"focusevent"
* configuration property.
*
@private
javascript/yui/build/container/container.js view on Meta::CPAN
390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003
this.remove(p_oOverlay);
},
/**
* Registers an Overlay or an array of Overlays
with
the manager. Upon
* registration, the Overlay receives functions
for
focus and blur,
* along
with
CustomEvents
for
each
.
*
@method
register
*
@param
{Overlay} overlay An Overlay to register
with
the manager.
*
@param
{Overlay[]} overlay An array of Overlays to register
with
* the manager.
*
@return
{Boolean} True
if
any Overlays are registered.
*/
register: function (overlay) {
var mgr = this,
zIndex,
regcount,
i,
nOverlays;
if
(overlay instanceof Overlay) {
overlay.cfg.addProperty(
"manager"
, { value: this } );
overlay.focusEvent = overlay.createEvent(
"focus"
);
overlay.focusEvent.signature = CustomEvent.LIST;
overlay.blurEvent = overlay.createEvent(
"blur"
);
overlay.blurEvent.signature = CustomEvent.LIST;
overlay.focus = function () {
mgr.focus(this);
};
overlay.blur = function () {
if
(mgr.getActive() == this) {
Dom.removeClass(this.element,
OverlayManager.CSS_FOCUSED);
this.blurEvent.fire();
}
};
overlay.blurEvent.subscribe(mgr._onOverlayBlur);
overlay.hideEvent.subscribe(overlay.blur);
overlay.destroyEvent.subscribe(this._onOverlayDestroy,
overlay, this);
Event.on(overlay.element, this.cfg.getProperty(
"focusevent"
),
this._onOverlayElementFocus, null, overlay);
zIndex = Dom.getStyle(overlay.element,
"zIndex"
);
if
(!isNaN(zIndex)) {
overlay.cfg.setProperty(
"zIndex"
, parseInt(zIndex, 10));
}
else
{
overlay.cfg.setProperty(
"zIndex"
, 0);
}
this.overlays.
push
(overlay);
this.bringToTop(overlay);
return
true;
}
else
if
(overlay instanceof Array) {
regcount = 0;
nOverlays = overlay.
length
;
for
(i = 0; i < nOverlays; i++) {
if
(this.register(overlay[i])) {
regcount++;
}
}
if
(regcount > 0) {
return
true;
javascript/yui/build/container/container.js view on Meta::CPAN
402340244025402640274028402940304031403240334034403540364037403840394040404140424043*/
bringToTop: function (p_oOverlay) {
var oOverlay = this.find(p_oOverlay),
nTopZIndex,
oTopOverlay,
aOverlays;
if
(oOverlay) {
aOverlays = this.overlays;
aOverlays.
sort
(this.compareZIndexDesc);
oTopOverlay = aOverlays[0];
if
(oTopOverlay) {
nTopZIndex = Dom.getStyle(oTopOverlay.element,
"zIndex"
);
if
(!isNaN(nTopZIndex) && oTopOverlay != oOverlay) {
javascript/yui/build/container/container.js view on Meta::CPAN
4051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102
}
}
},
/**
* Attempts to locate an Overlay by instance or ID.
*
@method
find
*
@param
{Overlay} overlay An Overlay to locate within the manager
*
@param
{String} overlay An Overlay id to locate within the manager
*
@return
{Overlay} The requested Overlay,
if
found, or null
if
it
* cannot be located.
*/
find: function (overlay) {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
if
(overlay instanceof Overlay) {
do
{
if
(aOverlays[i] == overlay) {
return
aOverlays[i];
}
}
while
(i--);
}
else
if
(typeof overlay ==
"string"
) {
do
{
if
(aOverlays[i].id == overlay) {
return
aOverlays[i];
}
}
while
(i--);
}
javascript/yui/build/container/container.js view on Meta::CPAN
412741284129413041314132413341344135413641374138413941404141414241434144414541464147
return
0;
}
},
/**
* Shows all Overlays in the manager.
*
@method
showAll
*/
showAll: function () {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
aOverlays[i].show();
javascript/yui/build/container/container.js view on Meta::CPAN
415241534154415541564157415841594160416141624163416441654166416741684169417041714172
}
},
/**
* Hides all Overlays in the manager.
*
@method
hideAll
*/
hideAll: function () {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
aOverlays[i].hide();
javascript/yui/build/container/container.js view on Meta::CPAN
79447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206}());
(function () {
/**
* ContainerEffect encapsulates animation transitions that are executed
when
* an Overlay is shown or hidden.
*
@namespace
YAHOO.widget
*
@class
ContainerEffect
*
@constructor
*
@param
{YAHOO.widget.Overlay} overlay The Overlay that the animation
* should be associated
with
*
@param
{Object} attrIn The object literal representing the animation
* arguments to be used
for
the animate-in transition. The arguments
for
* this literal are: attributes(object, see YAHOO.util.Anim
for
description),
* duration(Number), and method(i.e. Easing.easeIn).
*
@param
{Object} attrOut The object literal representing the animation
* arguments to be used
for
the animate-out transition. The arguments
for
* this literal are: attributes(object, see YAHOO.util.Anim
for
description),
* duration(Number), and method(i.e. Easing.easeIn).
*
@param
{HTMLElement} targetElement Optional. The target element that
* should be animated during the transition. Defaults to overlay.element.
*
@param
{class} Optional. The animation class to instantiate. Defaults to
* YAHOO.util.Anim. Other options include YAHOO.util.Motion.
*/
YAHOO.widget.ContainerEffect =
function (overlay, attrIn, attrOut, targetElement, animClass) {
if
(!animClass) {
animClass = YAHOO.util.Anim;
}
/**
* The overlay to animate
*
@property
overlay
*
@type
YAHOO.widget.Overlay
*/
this.overlay = overlay;
/**
* The animation attributes to
use
when
transitioning into view
*
@property
attrIn
*
@type
Object
*/
this.attrIn = attrIn;
/**
* The animation attributes to
use
when
transitioning out of view
*
@property
attrOut
*
@type
Object
*/
this.attrOut = attrOut;
/**
* The target element to be animated
*
@property
targetElement
*
@type
HTMLElement
*/
this.targetElement = targetElement || overlay.element;
/**
* The animation class to
use
for
animating the overlay
*
@property
animClass
*
@type
class
*/
this.animClass = animClass;
};
var Dom = YAHOO.util.Dom,
CustomEvent = YAHOO.util.CustomEvent,
Easing = YAHOO.util.Easing,
ContainerEffect = YAHOO.widget.ContainerEffect;
/**
* A pre-configured ContainerEffect instance that can be used
for
fading
* an overlay in and out.
*
@method
FADE
*
@static
*
@param
{YAHOO.widget.Overlay} overlay The Overlay object to animate
*
@param
{Number} dur The duration of the animation
*
@return
{YAHOO.widget.ContainerEffect} The configured ContainerEffect object
*/
ContainerEffect.FADE = function (overlay, dur) {
var fade = new ContainerEffect(overlay,
{ attributes: { opacity: { from: 0, to: 1 } },
duration: dur,
method: Easing.easeIn },
{ attributes: { opacity: { to: 0 } },
duration: dur,
method: Easing.easeOut },
overlay.element);
fade.handleStartAnimateIn = function (type,args,obj) {
Dom.addClass(obj.overlay.element,
"hide-select"
);
if
(! obj.overlay.underlay) {
obj.overlay.cfg.refireEvent(
"underlay"
);
}
if
(obj.overlay.underlay) {
obj.initialUnderlayOpacity =
Dom.getStyle(obj.overlay.underlay,
"opacity"
);
obj.overlay.underlay.style.filter = null;
}
Dom.setStyle(obj.overlay.element,
"visibility"
,
"visible"
);
Dom.setStyle(obj.overlay.element,
"opacity"
, 0);
};
fade.handleCompleteAnimateIn = function (type,args,obj) {
Dom.removeClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.element.style.filter) {
obj.overlay.element.style.filter = null;
}
if
(obj.overlay.underlay) {
Dom.setStyle(obj.overlay.underlay,
"opacity"
,
obj.initialUnderlayOpacity);
}
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateInCompleteEvent.fire();
};
fade.handleStartAnimateOut = function (type, args, obj) {
Dom.addClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.underlay) {
obj.overlay.underlay.style.filter = null;
}
};
fade.handleCompleteAnimateOut = function (type, args, obj) {
Dom.removeClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.element.style.filter) {
obj.overlay.element.style.filter = null;
}
Dom.setStyle(obj.overlay.element,
"visibility"
,
"hidden"
);
Dom.setStyle(obj.overlay.element,
"opacity"
, 1);
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateOutCompleteEvent.fire();
};
fade.init();
return
fade;
};
/**
* A pre-configured ContainerEffect instance that can be used
for
sliding an
* overlay in and out.
*
@method
SLIDE
*
@static
*
@param
{YAHOO.widget.Overlay} overlay The Overlay object to animate
*
@param
{Number} dur The duration of the animation
*
@return
{YAHOO.widget.ContainerEffect} The configured ContainerEffect object
*/
ContainerEffect.SLIDE = function (overlay, dur) {
var x = overlay.cfg.getProperty(
"x"
) || Dom.getX(overlay.element),
y = overlay.cfg.getProperty(
"y"
) || Dom.getY(overlay.element),
clientWidth = Dom.getClientWidth(),
offsetWidth = overlay.element.offsetWidth,
slide = new ContainerEffect(overlay,
{ attributes: { points: { to: [x, y] } },
duration: dur,
method: Easing.easeIn },
{ attributes: { points: { to: [(clientWidth + 25), y] } },
duration: dur,
method: Easing.easeOut },
overlay.element, YAHOO.util.Motion);
slide.handleStartAnimateIn = function (type,args,obj) {
obj.overlay.element.style.left = ((-25) - offsetWidth) +
"px"
;
obj.overlay.element.style.top = y +
"px"
;
};
slide.handleTweenAnimateIn = function (type, args, obj) {
var
pos
= Dom.getXY(obj.overlay.element),
currentX =
pos
[0],
currentY =
pos
[1];
if
(Dom.getStyle(obj.overlay.element,
"visibility"
) ==
"hidden"
&& currentX < x) {
Dom.setStyle(obj.overlay.element,
"visibility"
,
"visible"
);
}
obj.overlay.cfg.setProperty(
"xy"
, [currentX, currentY], true);
obj.overlay.cfg.refireEvent(
"iframe"
);
};
slide.handleCompleteAnimateIn = function (type, args, obj) {
obj.overlay.cfg.setProperty(
"xy"
, [x, y], true);
obj.startX = x;
obj.startY = y;
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateInCompleteEvent.fire();
};
slide.handleStartAnimateOut = function (type, args, obj) {
var vw = Dom.getViewportWidth(),
pos
= Dom.getXY(obj.overlay.element),
yso =
pos
[1],
currentTo = obj.animOut.attributes.points.to;
obj.animOut.attributes.points.to = [(vw + 25), yso];
};
slide.handleTweenAnimateOut = function (type, args, obj) {
var
pos
= Dom.getXY(obj.overlay.element),
xto =
pos
[0],
yto =
pos
[1];
obj.overlay.cfg.setProperty(
"xy"
, [xto, yto], true);
obj.overlay.cfg.refireEvent(
"iframe"
);
};
slide.handleCompleteAnimateOut = function (type, args, obj) {
Dom.setStyle(obj.overlay.element,
"visibility"
,
"hidden"
);
obj.overlay.cfg.setProperty(
"xy"
, [x, y]);
obj.animateOutCompleteEvent.fire();
};
slide.init();
return
slide;
};
ContainerEffect.
prototype
= {
/**
javascript/yui/build/container/container.js view on Meta::CPAN
8315831683178318831983208321832283238324832583268327832883298330833183328333833483358336
*/
handleCompleteAnimateOut: function (type, args, obj) { },
/**
* Returns a string representation of the object.
*
@method
toString
*
@return
{String} The string representation of the ContainerEffect
*/
toString: function () {
var output =
"ContainerEffect"
;
if
(this.overlay) {
output +=
" ["
+ this.overlay.toString() +
"]"
;
}
return
output;
}
};
YAHOO.lang.augmentProto(ContainerEffect, YAHOO.util.EventProvider);
})();
YAHOO.register(
"container"
, YAHOO.widget.Module, {version:
"2.3.0"
, build:
"442"
});
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
209921002101210221032104210521062107210821092110211121122113211421152116211721182119*/
Overlay.BOTTOM_RIGHT =
"br"
;
/**
* Constant representing the
default
CSS class used
for
an Overlay
*
@property
YAHOO.widget.Overlay.CSS_OVERLAY
*
@static
*
@final
*
@type
String
*/
Overlay.CSS_OVERLAY =
"yui-overlay"
;
/**
* A singleton CustomEvent used
for
reacting to the DOM event
for
* window scroll
*
@event
YAHOO.widget.Overlay.windowScrollEvent
*/
Overlay.windowScrollEvent = new CustomEvent(
"windowScroll"
);
/**
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
229422952296229722982299230023012302230323042305230623072308230923102311231223132314/**
* Initializes the class's configurable properties which can be changed
* using the Overlay's Config object (cfg).
*
@method
initDefaultConfig
*/
initDefaultConfig: function () {
Overlay.superclass.initDefaultConfig.call(this);
// Add overlay config properties //
/**
* The absolute x-coordinate position of the Overlay
*
@config
x
*
@type
Number
*
@default
null
*/
this.cfg.addProperty(DEFAULT_CONFIG.X.key, {
handler: this.configX,
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
36213622362336243625362636273628362936303631363236333634363536363637363836393640}());
(function () {
/**
* OverlayManager is used
for
maintaining the focus status of
* multiple Overlays.
*
@namespace
YAHOO.widget
*
@namespace
YAHOO.widget
*
@class
OverlayManager
*
@constructor
*
@param
{Array} overlays Optional. A collection of Overlays to register
*
with
the manager.
*
@param
{Object} userConfig The object literal representing the user
* configuration of the OverlayManager
*/
YAHOO.widget.OverlayManager = function (userConfig) {
this.init(userConfig);
};
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714/**
* The class's constructor function
*
@property
contructor
*
@type
Function
*/
constructor: OverlayManager,
/**
* The array of Overlays that are currently registered
*
@property
overlays
*
@type
YAHOO.widget.Overlay[]
*/
overlays: null,
/**
* Initializes the
default
configuration of the OverlayManager
*
@method
initDefaultConfig
*/
initDefaultConfig: function () {
/**
* the OverlayManager
*
@config
overlays
*
@type
YAHOO.widget.Overlay[]
*
@default
null
*/
this.cfg.addProperty(
"overlays"
, { suppressEvent: true } );
/**
* The
default
DOM event that should be used to focus an Overlay
*
@config
focusevent
*
@type
String
*
@default
"mousedown"
*/
this.cfg.addProperty(
"focusevent"
, { value:
"mousedown"
} );
},
/**
* Initializes the OverlayManager
*
@method
init
*
@param
{Overlay[]} overlays Optional. A collection of Overlays to
* register
with
the manager.
*
@param
{Object} userConfig The object literal representing the user
* configuration of the OverlayManager
*/
init: function (userConfig) {
/**
* The OverlayManager's Config object used
for
monitoring
* configuration properties.
*
@property
cfg
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
37363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761*
@method
getActive
*
@return
{Overlay} The currently focused Overlay
*/
this.getActive = function () {
return
activeOverlay;
};
/**
* Focuses the specified Overlay
*
@method
focus
*
@param
{Overlay} overlay The Overlay to focus
*
@param
{String} overlay The id of the Overlay to focus
*/
this.focus = function (overlay) {
var o = this.find(overlay);
if
(o) {
if
(activeOverlay != o) {
if
(activeOverlay) {
activeOverlay.blur();
}
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
37713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814
}
}
};
/**
* Removes the specified Overlay from the manager
*
@method
remove
*
@param
{Overlay} overlay The Overlay to remove
*
@param
{String} overlay The id of the Overlay to remove
*/
this.remove = function (overlay) {
var o = this.find(overlay),
originalZ;
if
(o) {
if
(activeOverlay == o) {
activeOverlay = null;
}
originalZ = Dom.getStyle(o.element,
"zIndex"
);
o.cfg.setProperty(
"zIndex"
, -1000, true);
this.overlays.
sort
(this.compareZIndexDesc);
this.overlays =
this.overlays.slice(0, (this.overlays.
length
- 1));
o.hideEvent.unsubscribe(o.blur);
o.destroyEvent.unsubscribe(this._onOverlayDestroy, o);
if
(o.element) {
Event.removeListener(o.element,
this.cfg.getProperty(
"focusevent"
),
this._onOverlayElementFocus);
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
3828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882
}
};
/**
* Removes focus from all registered Overlays in the manager
*
@method
blurAll
*/
this.blurAll = function () {
var nOverlays = this.overlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
this.overlays[i].blur();
}
while
(i--);
}
};
this._onOverlayBlur = function (p_sType, p_aArgs) {
activeOverlay = null;
};
var overlays = this.cfg.getProperty(
"overlays"
);
if
(! this.overlays) {
this.overlays = [];
}
if
(overlays) {
this.register(overlays);
this.overlays.
sort
(this.compareZIndexDesc);
}
},
/**
*
@method
_onOverlayElementFocus
*
@description
Event handler
for
the DOM event that is used to focus
* the Overlay instance as specified by the
"focusevent"
* configuration property.
*
@private
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014
this.remove(p_oOverlay);
},
/**
* Registers an Overlay or an array of Overlays
with
the manager. Upon
* registration, the Overlay receives functions
for
focus and blur,
* along
with
CustomEvents
for
each
.
*
@method
register
*
@param
{Overlay} overlay An Overlay to register
with
the manager.
*
@param
{Overlay[]} overlay An array of Overlays to register
with
* the manager.
*
@return
{Boolean} True
if
any Overlays are registered.
*/
register: function (overlay) {
var mgr = this,
zIndex,
regcount,
i,
nOverlays;
if
(overlay instanceof Overlay) {
overlay.cfg.addProperty(
"manager"
, { value: this } );
overlay.focusEvent = overlay.createEvent(
"focus"
);
overlay.focusEvent.signature = CustomEvent.LIST;
overlay.blurEvent = overlay.createEvent(
"blur"
);
overlay.blurEvent.signature = CustomEvent.LIST;
overlay.focus = function () {
mgr.focus(this);
};
overlay.blur = function () {
if
(mgr.getActive() == this) {
Dom.removeClass(this.element,
OverlayManager.CSS_FOCUSED);
this.blurEvent.fire();
}
};
overlay.blurEvent.subscribe(mgr._onOverlayBlur);
overlay.hideEvent.subscribe(overlay.blur);
overlay.destroyEvent.subscribe(this._onOverlayDestroy,
overlay, this);
Event.on(overlay.element, this.cfg.getProperty(
"focusevent"
),
this._onOverlayElementFocus, null, overlay);
zIndex = Dom.getStyle(overlay.element,
"zIndex"
);
if
(!isNaN(zIndex)) {
overlay.cfg.setProperty(
"zIndex"
, parseInt(zIndex, 10));
}
else
{
overlay.cfg.setProperty(
"zIndex"
, 0);
}
this.overlays.
push
(overlay);
this.bringToTop(overlay);
return
true;
}
else
if
(overlay instanceof Array) {
regcount = 0;
nOverlays = overlay.
length
;
for
(i = 0; i < nOverlays; i++) {
if
(this.register(overlay[i])) {
regcount++;
}
}
if
(regcount > 0) {
return
true;
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
403440354036403740384039404040414042404340444045404640474048404940504051405240534054*/
bringToTop: function (p_oOverlay) {
var oOverlay = this.find(p_oOverlay),
nTopZIndex,
oTopOverlay,
aOverlays;
if
(oOverlay) {
aOverlays = this.overlays;
aOverlays.
sort
(this.compareZIndexDesc);
oTopOverlay = aOverlays[0];
if
(oTopOverlay) {
nTopZIndex = Dom.getStyle(oTopOverlay.element,
"zIndex"
);
if
(!isNaN(nTopZIndex) && oTopOverlay != oOverlay) {
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
4062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113
}
}
},
/**
* Attempts to locate an Overlay by instance or ID.
*
@method
find
*
@param
{Overlay} overlay An Overlay to locate within the manager
*
@param
{String} overlay An Overlay id to locate within the manager
*
@return
{Overlay} The requested Overlay,
if
found, or null
if
it
* cannot be located.
*/
find: function (overlay) {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
if
(overlay instanceof Overlay) {
do
{
if
(aOverlays[i] == overlay) {
return
aOverlays[i];
}
}
while
(i--);
}
else
if
(typeof overlay ==
"string"
) {
do
{
if
(aOverlays[i].id == overlay) {
return
aOverlays[i];
}
}
while
(i--);
}
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
413841394140414141424143414441454146414741484149415041514152415341544155415641574158
return
0;
}
},
/**
* Shows all Overlays in the manager.
*
@method
showAll
*/
showAll: function () {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
aOverlays[i].show();
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
416341644165416641674168416941704171417241734174417541764177417841794180418141824183
}
},
/**
* Hides all Overlays in the manager.
*
@method
hideAll
*/
hideAll: function () {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
aOverlays[i].hide();
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
42024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464}());
(function () {
/**
* ContainerEffect encapsulates animation transitions that are executed
when
* an Overlay is shown or hidden.
*
@namespace
YAHOO.widget
*
@class
ContainerEffect
*
@constructor
*
@param
{YAHOO.widget.Overlay} overlay The Overlay that the animation
* should be associated
with
*
@param
{Object} attrIn The object literal representing the animation
* arguments to be used
for
the animate-in transition. The arguments
for
* this literal are: attributes(object, see YAHOO.util.Anim
for
description),
* duration(Number), and method(i.e. Easing.easeIn).
*
@param
{Object} attrOut The object literal representing the animation
* arguments to be used
for
the animate-out transition. The arguments
for
* this literal are: attributes(object, see YAHOO.util.Anim
for
description),
* duration(Number), and method(i.e. Easing.easeIn).
*
@param
{HTMLElement} targetElement Optional. The target element that
* should be animated during the transition. Defaults to overlay.element.
*
@param
{class} Optional. The animation class to instantiate. Defaults to
* YAHOO.util.Anim. Other options include YAHOO.util.Motion.
*/
YAHOO.widget.ContainerEffect =
function (overlay, attrIn, attrOut, targetElement, animClass) {
if
(!animClass) {
animClass = YAHOO.util.Anim;
}
/**
* The overlay to animate
*
@property
overlay
*
@type
YAHOO.widget.Overlay
*/
this.overlay = overlay;
/**
* The animation attributes to
use
when
transitioning into view
*
@property
attrIn
*
@type
Object
*/
this.attrIn = attrIn;
/**
* The animation attributes to
use
when
transitioning out of view
*
@property
attrOut
*
@type
Object
*/
this.attrOut = attrOut;
/**
* The target element to be animated
*
@property
targetElement
*
@type
HTMLElement
*/
this.targetElement = targetElement || overlay.element;
/**
* The animation class to
use
for
animating the overlay
*
@property
animClass
*
@type
class
*/
this.animClass = animClass;
};
var Dom = YAHOO.util.Dom,
CustomEvent = YAHOO.util.CustomEvent,
Easing = YAHOO.util.Easing,
ContainerEffect = YAHOO.widget.ContainerEffect;
/**
* A pre-configured ContainerEffect instance that can be used
for
fading
* an overlay in and out.
*
@method
FADE
*
@static
*
@param
{YAHOO.widget.Overlay} overlay The Overlay object to animate
*
@param
{Number} dur The duration of the animation
*
@return
{YAHOO.widget.ContainerEffect} The configured ContainerEffect object
*/
ContainerEffect.FADE = function (overlay, dur) {
var fade = new ContainerEffect(overlay,
{ attributes: { opacity: { from: 0, to: 1 } },
duration: dur,
method: Easing.easeIn },
{ attributes: { opacity: { to: 0 } },
duration: dur,
method: Easing.easeOut },
overlay.element);
fade.handleStartAnimateIn = function (type,args,obj) {
Dom.addClass(obj.overlay.element,
"hide-select"
);
if
(! obj.overlay.underlay) {
obj.overlay.cfg.refireEvent(
"underlay"
);
}
if
(obj.overlay.underlay) {
obj.initialUnderlayOpacity =
Dom.getStyle(obj.overlay.underlay,
"opacity"
);
obj.overlay.underlay.style.filter = null;
}
Dom.setStyle(obj.overlay.element,
"visibility"
,
"visible"
);
Dom.setStyle(obj.overlay.element,
"opacity"
, 0);
};
fade.handleCompleteAnimateIn = function (type,args,obj) {
Dom.removeClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.element.style.filter) {
obj.overlay.element.style.filter = null;
}
if
(obj.overlay.underlay) {
Dom.setStyle(obj.overlay.underlay,
"opacity"
,
obj.initialUnderlayOpacity);
}
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateInCompleteEvent.fire();
};
fade.handleStartAnimateOut = function (type, args, obj) {
Dom.addClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.underlay) {
obj.overlay.underlay.style.filter = null;
}
};
fade.handleCompleteAnimateOut = function (type, args, obj) {
Dom.removeClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.element.style.filter) {
obj.overlay.element.style.filter = null;
}
Dom.setStyle(obj.overlay.element,
"visibility"
,
"hidden"
);
Dom.setStyle(obj.overlay.element,
"opacity"
, 1);
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateOutCompleteEvent.fire();
};
fade.init();
return
fade;
};
/**
* A pre-configured ContainerEffect instance that can be used
for
sliding an
* overlay in and out.
*
@method
SLIDE
*
@static
*
@param
{YAHOO.widget.Overlay} overlay The Overlay object to animate
*
@param
{Number} dur The duration of the animation
*
@return
{YAHOO.widget.ContainerEffect} The configured ContainerEffect object
*/
ContainerEffect.SLIDE = function (overlay, dur) {
var x = overlay.cfg.getProperty(
"x"
) || Dom.getX(overlay.element),
y = overlay.cfg.getProperty(
"y"
) || Dom.getY(overlay.element),
clientWidth = Dom.getClientWidth(),
offsetWidth = overlay.element.offsetWidth,
slide = new ContainerEffect(overlay,
{ attributes: { points: { to: [x, y] } },
duration: dur,
method: Easing.easeIn },
{ attributes: { points: { to: [(clientWidth + 25), y] } },
duration: dur,
method: Easing.easeOut },
overlay.element, YAHOO.util.Motion);
slide.handleStartAnimateIn = function (type,args,obj) {
obj.overlay.element.style.left = ((-25) - offsetWidth) +
"px"
;
obj.overlay.element.style.top = y +
"px"
;
};
slide.handleTweenAnimateIn = function (type, args, obj) {
var
pos
= Dom.getXY(obj.overlay.element),
currentX =
pos
[0],
currentY =
pos
[1];
if
(Dom.getStyle(obj.overlay.element,
"visibility"
) ==
"hidden"
&& currentX < x) {
Dom.setStyle(obj.overlay.element,
"visibility"
,
"visible"
);
}
obj.overlay.cfg.setProperty(
"xy"
, [currentX, currentY], true);
obj.overlay.cfg.refireEvent(
"iframe"
);
};
slide.handleCompleteAnimateIn = function (type, args, obj) {
obj.overlay.cfg.setProperty(
"xy"
, [x, y], true);
obj.startX = x;
obj.startY = y;
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateInCompleteEvent.fire();
};
slide.handleStartAnimateOut = function (type, args, obj) {
var vw = Dom.getViewportWidth(),
pos
= Dom.getXY(obj.overlay.element),
yso =
pos
[1],
currentTo = obj.animOut.attributes.points.to;
obj.animOut.attributes.points.to = [(vw + 25), yso];
};
slide.handleTweenAnimateOut = function (type, args, obj) {
var
pos
= Dom.getXY(obj.overlay.element),
xto =
pos
[0],
yto =
pos
[1];
obj.overlay.cfg.setProperty(
"xy"
, [xto, yto], true);
obj.overlay.cfg.refireEvent(
"iframe"
);
};
slide.handleCompleteAnimateOut = function (type, args, obj) {
Dom.setStyle(obj.overlay.element,
"visibility"
,
"hidden"
);
obj.overlay.cfg.setProperty(
"xy"
, [x, y]);
obj.animateOutCompleteEvent.fire();
};
slide.init();
return
slide;
};
ContainerEffect.
prototype
= {
/**
javascript/yui/build/container/container_core-debug.js view on Meta::CPAN
4573457445754576457745784579458045814582458345844585458645874588458945904591459245934594
*/
handleCompleteAnimateOut: function (type, args, obj) { },
/**
* Returns a string representation of the object.
*
@method
toString
*
@return
{String} The string representation of the ContainerEffect
*/
toString: function () {
var output =
"ContainerEffect"
;
if
(this.overlay) {
output +=
" ["
+ this.overlay.toString() +
"]"
;
}
return
output;
}
};
YAHOO.lang.augmentProto(ContainerEffect, YAHOO.util.EventProvider);
})();
YAHOO.register(
"container_core"
, YAHOO.widget.Module, {version:
"2.3.0"
, build:
"442"
});
javascript/yui/build/container/container_core-min.js view on Meta::CPAN
515253545556575859606162636465666768697071this.changeBodyEvent.fire(bodyContent);this.changeContentEvent.fire();},appendToBody:function(element){var oBody=this.body||(this.body=createBody());oBody.appendChild(element);this.changeBodyEvent.fire(element);this.changeContentEvent.fire();},setFoo...
this.changeFooterEvent.fire(footerContent);this.changeContentEvent.fire();},appendToFooter:function(element){var oFooter=this.footer||(this.footer=createFooter());oFooter.appendChild(element);this.changeFooterEvent.fire(element);this.changeContentEve...
if
(element){element.appendChild(me.element);me.appendEvent.fire();}}
this.beforeRenderEvent.fire();
if
(!moduleElement){moduleElement=this.element;}
if
(appendToNode){appendTo(appendToNode);}
else
{
if
(!Dom.inDocument(this.element)){
return
false;}}
if
(this.header&&!Dom.inDocument(this.header)){firstChild=moduleElement.firstChild;
if
(firstChild){moduleElement.insertBefore(this.header,firstChild);}
else
{moduleElement.appendChild(this.header);}}
if
(this.body&&!Dom.inDocument(this.body)){
if
(this.footer&
&Dom
.isAncestor(this.moduleElement,this.footer)){moduleElement.insertBefore(this.body,this.footer);}
else
{moduleElement.appendChild(this.body);}}
if
(this.footer&&!Dom.inDocument(this.footer)){moduleElement.appendChild(this.footer);}
this.renderEvent.fire();
return
true;},destroy:function(){var parent,e;
if
(this.element){Event.purgeElement(this.element,true);parent=this.element.parentNode;}
if
(parent){parent.removeChild(this.element);}
this.element=null;this.header=null;this.body=null;this.footer=null;Module.textResizeEvent.unsubscribe(this.onDomResize,this);this.cfg.destroy();this.cfg=null;this.destroyEvent.fire();
for
(e in this){
if
(e instanceof CustomEvent){e.unsubscribeAll();}}},...
clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){Overlay.windowScrollEvent.fire();},1);}
else
{Overlay.windowScrollEvent.fire();}};Overlay.windowResizeHandler=function(e){
if
(YAHOO.env.ua.ie){
if
(!window.resizeEnd){window.resizeEnd=-...
clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){Overlay.windowResizeEvent.fire();},100);}
else
{Overlay.windowResizeEvent.fire();}};Overlay._initialized=null;
if
(Overlay._initialized===null){Event.on(window,
"scroll"
,Overlay.windowS...
YAHOO.extend(Overlay,Module,{init:function(el,userConfig){Overlay.superclass.init.call(this,el);this.beforeInitEvent.fire(Overlay);Dom.addClass(this.element,Overlay.CSS_OVERLAY);
if
(userConfig){this.cfg.applyConfig(userConfig,true);}
if
(this.platform==
"mac"
&
&YAHOO
.env.ua.gecko){
if
(!Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);}
if
(!Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);}}
this.initEvent.fire(Overlay);},initEvents:function(){Overlay.superclass.initEvents.call(this);var SIGNATURE=CustomEvent.LIST;this.beforeMoveEvent=this.createEvent(EVENT_TYPES.BEFORE_MOVE);this.beforeMoveEvent.signature=SIGNATURE;this.moveEvent=this.c...
e=e.parentNode;}
if
(currentVis==
"inherit"
){currentVis=
"visible"
;}}
if
(effect){
if
(effect instanceof Array){nEffects=effect.
length
;
for
(i=0;i<nEffects;i++){eff=effect[i];effectInstances[effectInstances.
length
]=eff.effect(this,eff.duration);}}
else
{effectInstances[effectInstances.
length
]=effect.effect(this,effect.duratio...
if
(visible){
if
(isMacGecko){this.showMacGeckoScrollbars();}
javascript/yui/build/container/container_core-min.js view on Meta::CPAN
919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124else
{
if
(!this._iframeDeferred){this.beforeShowEvent.subscribe(onBeforeShow);this._iframeDeferred=true;}}}
else
{this.hideIframe();
if
(this._hasIframeEventListeners){this.showEvent.unsubscribe(this.showIframe);this.hideEvent.unsubscribe(this.hideIframe);...
if
(elementMagnetCorner&
&contextMagnetCorner
){this.align(elementMagnetCorner,contextMagnetCorner);}}}},align:function(elementAlign,contextAlign){var contextArgs=this.cfg.getProperty(
"context"
),me=this,context,element,contextRegion;function doAlign(v,h...
if
(contextArgs){context=contextArgs[0];element=this.element;me=this;
if
(!elementAlign){elementAlign=contextArgs[1];}
if
(!contextAlign){contextAlign=contextArgs[2];}
if
(element&
&context
){contextRegion=Dom.getRegion(context);switch(contextAlign){case Overlay.TOP_LEFT:doAlign(contextRegion.top,contextRegion.left);break;case Overlay.TOP_RIGHT:doAlign(contextRegion.top,contextRegion.right);break;case Overlay.BOTTOM_L...
if
(y<topConstraint){y=topConstraint;}
else
if
(y>bottomConstraint){y=bottomConstraint;}
this.cfg.setProperty(
"x"
,x,true);this.cfg.setProperty(
"y"
,y,true);this.cfg.setProperty(
"xy"
,[x,y],true);},center:function(){var scrollX=Dom.getDocumentScrollLeft(),scrollY=Dom.getDocumentScrollTop(),viewPortWidth=Dom.getClientWidth(),viewPortHeight=D...
function isOverlayElement(p_oElement){var oOverlay=Dom.hasClass(p_oElement,Overlay.CSS_OVERLAY),Panel=YAHOO.widget.Panel;
if
(oOverlay&&!Dom.isAncestor(oElement,oOverlay)){
if
(Panel&
&Dom
.hasClass(p_oElement,Panel.CSS_PANEL)){aOverlays[aOverlays.
length
]=...
else
{aOverlays[aOverlays.
length
]=p_oElement;}}}
Dom.getElementsBy(isOverlayElement,
"DIV"
,document.body);aOverlays.
sort
(compareZIndexDesc);var oTopOverlay=aOverlays[0],nTopZIndex;
if
(oTopOverlay){nTopZIndex=Dom.getStyle(oTopOverlay,
"zIndex"
);
if
(!isNaN(nTopZIndex)&
&oTopOverlay
!=oElement){this.cfg.set...
this.iframe=null;Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);Overlay.superclass.destroy.call(this);},toString:function(){
return
"Overlay "
+this.id;}});}());(fu...
this.cfg.fireQueue();var activeOverlay=null;this.getActive=function(){
return
activeOverlay;};this.focus=function(overlay){var o=this.find(overlay);
if
(o){
if
(activeOverlay!=o){
if
(activeOverlay){activeOverlay.blur();}
this.bringToTop(o);activeOverlay=o;Dom.addClass(activeOverlay.element,OverlayManager.CSS_FOCUSED);o.focusEvent.fire();}}};this.remove=function(overlay){var o=this.find(overlay),originalZ;
if
(o){
if
(activeOverlay==o){activeOverlay=null;}
originalZ=Dom.getStyle(o.element,
"zIndex"
);o.cfg.setProperty(
"zIndex"
,-1000,true);this.overlays.
sort
(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,(this.overlays.
length
-1));o.hideEvent.unsubscribe(o.blur);o.destroyEvent.unsubscribe(this...
o.cfg.setProperty(
"zIndex"
,originalZ,true);o.cfg.setProperty(
"manager"
,null);o.focusEvent.unsubscribeAll();o.blurEvent.unsubscribeAll();o.focusEvent=null;o.blurEvent=null;o.focus=null;o.blur=null;}};this.blurAll=function(){var nOverlays=this.overlays...
while
(i--);}};this._onOverlayBlur=function(p_sType,p_aArgs){activeOverlay=null;};var overlays=this.cfg.getProperty(
"overlays"
);
if
(!this.overlays){this.overlays=[];}
if
(overlays){this.register(overlays);this.overlays.
sort
(this.compareZIndexDesc);}},_onOverlayElementFocus:function(p_oEvent){var oTarget=Event.getTarget(p_oEvent),oClose=this.
close
;
if
(oClose&&(oTarget==oClose||Dom.isAncestor(oClose,oTarget))){this.bl...
else
{this.focus();}},_onOverlayDestroy:function(p_sType,p_aArgs,p_oOverlay){this.remove(p_oOverlay);},register:function(overlay){var mgr=this,zIndex,regcount,i,nOverlays;
if
(overlay instanceof Overlay){overlay.cfg.addProperty(
"manager"
,{value:this});o...
this.overlays.
push
(overlay);this.bringToTop(overlay);
return
true;}
else
if
(overlay instanceof Array){regcount=0;nOverlays=overlay.
length
;
for
(i=0;i<nOverlays;i++){
if
(this.register(overlay[i])){regcount++;}}
if
(regcount>0){
return
true;}}
else
{
return
false;}},bringToTop:function(p_oOverlay){var oOverlay=this.find(p_oOverlay),nTopZIndex,oTopOverlay,aOverlays;
if
(oOverlay){aOverlays=this.overlays;aOverlays.
sort
(this.compareZIndexDesc);oTopOverlay=aOverlays[0]...
aOverlays.
sort
(this.compareZIndexDesc);}}},find:function(overlay){var aOverlays=this.overlays,nOverlays=aOverlays.
length
,i;
if
(nOverlays>0){i=nOverlays-1;
if
(overlay instanceof Overlay){
do
{
if
(aOverlays[i]==overlay){
return
aOverlays[i];}}
while
(i--);}
else
if
(typeof overlay==
"string"
){
do
{
if
(aOverlays[i].id==overlay){
return
aOverlays[i];}}
while
(i--);}
return
null;}},compareZIndexDesc:function(o1,o2){var zIndex1=o1.cfg.getProperty(
"zIndex"
),zIndex2=o2.cfg.getProperty(
"zIndex"
);
if
(zIndex1>zIndex2){
return
-1;}
else
if
(zIndex1<zIndex2){
return
1;}
else
{
return
0;}},showAll:function(){var aOverlays=this.ove...
while
(i--);}},hideAll:function(){var aOverlays=this.overlays,nOverlays=aOverlays.
length
,i;
if
(nOverlays>0){i=nOverlays-1;
do
{aOverlays[i].hide();}
while
(i--);}},toString:function(){
return
"OverlayManager"
;}};}());(function(){YAHOO.widget.ContainerEffect=function(overlay,attrIn,attrOut,targetElement,animClass){
if
(!animClass){animClass=YAHOO.util.Anim;}
this.overlay=overlay;this.attrIn=attrIn;this.attrOut=attrOut;this.targetElement=targetElement||overlay.element;this.animClass=animClass;};var Dom=YAHOO.util.Dom,CustomEvent=YAHOO.util.CustomEvent,Easing=YAHOO.util.Easing,ContainerEffect=YAHOO.widget....
if
(obj.overlay.underlay){obj.initialUnderlayOpacity=Dom.getStyle(obj.overlay.underlay,
"opacity"
);obj.overlay.underlay.style.filter=null;}
Dom.setStyle(obj.overlay.element,
"visibility"
,
"visible"
);Dom.setStyle(obj.overlay.element,
"opacity"
,0);};fade.handleCompleteAnimateIn=function(type,args,obj){Dom.removeClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.element.style.filter){obj....
if
(obj.overlay.underlay){Dom.setStyle(obj.overlay.underlay,
"opacity"
,obj.initialUnderlayOpacity);}
obj.overlay.cfg.refireEvent(
"iframe"
);obj.animateInCompleteEvent.fire();};fade.handleStartAnimateOut=function(type,args,obj){Dom.addClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.underlay){obj.overlay.underlay.style.filter=null;}};fade.handl...
Dom.setStyle(obj.overlay.element,
"visibility"
,
"hidden"
);Dom.setStyle(obj.overlay.element,
"opacity"
,1);obj.overlay.cfg.refireEvent(
"iframe"
);obj.animateOutCompleteEvent.fire();};fade.init();
return
fade;};ContainerEffect.SLIDE=function(overlay,dur){var...
obj.overlay.cfg.setProperty(
"xy"
,[currentX,currentY],true);obj.overlay.cfg.refireEvent(
"iframe"
);};slide.handleCompleteAnimateIn=function(type,args,obj){obj.overlay.cfg.setProperty(
"xy"
,[x,y],true);obj.startX=x;obj.startY=y;obj.overlay.cfg.refireEven...
return
output;}};YAHOO.lang.augmentProto(ContainerEffect,YAHOO.util.EventProvider);})();YAHOO.register(
"container_core"
,YAHOO.widget.Module,{version:
"2.3.0"
,build:
"442"
});
javascript/yui/build/container/container_core.js view on Meta::CPAN
208920902091209220932094209520962097209820992100210121022103210421052106210721082109*/
Overlay.BOTTOM_RIGHT =
"br"
;
/**
* Constant representing the
default
CSS class used
for
an Overlay
*
@property
YAHOO.widget.Overlay.CSS_OVERLAY
*
@static
*
@final
*
@type
String
*/
Overlay.CSS_OVERLAY =
"yui-overlay"
;
/**
* A singleton CustomEvent used
for
reacting to the DOM event
for
* window scroll
*
@event
YAHOO.widget.Overlay.windowScrollEvent
*/
Overlay.windowScrollEvent = new CustomEvent(
"windowScroll"
);
/**
javascript/yui/build/container/container_core.js view on Meta::CPAN
228422852286228722882289229022912292229322942295229622972298229923002301230223032304/**
* Initializes the class's configurable properties which can be changed
* using the Overlay's Config object (cfg).
*
@method
initDefaultConfig
*/
initDefaultConfig: function () {
Overlay.superclass.initDefaultConfig.call(this);
// Add overlay config properties //
/**
* The absolute x-coordinate position of the Overlay
*
@config
x
*
@type
Number
*
@default
null
*/
this.cfg.addProperty(DEFAULT_CONFIG.X.key, {
handler: this.configX,
javascript/yui/build/container/container_core.js view on Meta::CPAN
36103611361236133614361536163617361836193620362136223623362436253626362736283629}());
(function () {
/**
* OverlayManager is used
for
maintaining the focus status of
* multiple Overlays.
*
@namespace
YAHOO.widget
*
@namespace
YAHOO.widget
*
@class
OverlayManager
*
@constructor
*
@param
{Array} overlays Optional. A collection of Overlays to register
*
with
the manager.
*
@param
{Object} userConfig The object literal representing the user
* configuration of the OverlayManager
*/
YAHOO.widget.OverlayManager = function (userConfig) {
this.init(userConfig);
};
javascript/yui/build/container/container_core.js view on Meta::CPAN
365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703/**
* The class's constructor function
*
@property
contructor
*
@type
Function
*/
constructor: OverlayManager,
/**
* The array of Overlays that are currently registered
*
@property
overlays
*
@type
YAHOO.widget.Overlay[]
*/
overlays: null,
/**
* Initializes the
default
configuration of the OverlayManager
*
@method
initDefaultConfig
*/
initDefaultConfig: function () {
/**
* the OverlayManager
*
@config
overlays
*
@type
YAHOO.widget.Overlay[]
*
@default
null
*/
this.cfg.addProperty(
"overlays"
, { suppressEvent: true } );
/**
* The
default
DOM event that should be used to focus an Overlay
*
@config
focusevent
*
@type
String
*
@default
"mousedown"
*/
this.cfg.addProperty(
"focusevent"
, { value:
"mousedown"
} );
},
/**
* Initializes the OverlayManager
*
@method
init
*
@param
{Overlay[]} overlays Optional. A collection of Overlays to
* register
with
the manager.
*
@param
{Object} userConfig The object literal representing the user
* configuration of the OverlayManager
*/
init: function (userConfig) {
/**
* The OverlayManager's Config object used
for
monitoring
* configuration properties.
*
@property
cfg
javascript/yui/build/container/container_core.js view on Meta::CPAN
37253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750*
@method
getActive
*
@return
{Overlay} The currently focused Overlay
*/
this.getActive = function () {
return
activeOverlay;
};
/**
* Focuses the specified Overlay
*
@method
focus
*
@param
{Overlay} overlay The Overlay to focus
*
@param
{String} overlay The id of the Overlay to focus
*/
this.focus = function (overlay) {
var o = this.find(overlay);
if
(o) {
if
(activeOverlay != o) {
if
(activeOverlay) {
activeOverlay.blur();
}
javascript/yui/build/container/container_core.js view on Meta::CPAN
37603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803
}
}
};
/**
* Removes the specified Overlay from the manager
*
@method
remove
*
@param
{Overlay} overlay The Overlay to remove
*
@param
{String} overlay The id of the Overlay to remove
*/
this.remove = function (overlay) {
var o = this.find(overlay),
originalZ;
if
(o) {
if
(activeOverlay == o) {
activeOverlay = null;
}
originalZ = Dom.getStyle(o.element,
"zIndex"
);
o.cfg.setProperty(
"zIndex"
, -1000, true);
this.overlays.
sort
(this.compareZIndexDesc);
this.overlays =
this.overlays.slice(0, (this.overlays.
length
- 1));
o.hideEvent.unsubscribe(o.blur);
o.destroyEvent.unsubscribe(this._onOverlayDestroy, o);
if
(o.element) {
Event.removeListener(o.element,
this.cfg.getProperty(
"focusevent"
),
this._onOverlayElementFocus);
javascript/yui/build/container/container_core.js view on Meta::CPAN
3817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871
}
};
/**
* Removes focus from all registered Overlays in the manager
*
@method
blurAll
*/
this.blurAll = function () {
var nOverlays = this.overlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
this.overlays[i].blur();
}
while
(i--);
}
};
this._onOverlayBlur = function (p_sType, p_aArgs) {
activeOverlay = null;
};
var overlays = this.cfg.getProperty(
"overlays"
);
if
(! this.overlays) {
this.overlays = [];
}
if
(overlays) {
this.register(overlays);
this.overlays.
sort
(this.compareZIndexDesc);
}
},
/**
*
@method
_onOverlayElementFocus
*
@description
Event handler
for
the DOM event that is used to focus
* the Overlay instance as specified by the
"focusevent"
* configuration property.
*
@private
javascript/yui/build/container/container_core.js view on Meta::CPAN
390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003
this.remove(p_oOverlay);
},
/**
* Registers an Overlay or an array of Overlays
with
the manager. Upon
* registration, the Overlay receives functions
for
focus and blur,
* along
with
CustomEvents
for
each
.
*
@method
register
*
@param
{Overlay} overlay An Overlay to register
with
the manager.
*
@param
{Overlay[]} overlay An array of Overlays to register
with
* the manager.
*
@return
{Boolean} True
if
any Overlays are registered.
*/
register: function (overlay) {
var mgr = this,
zIndex,
regcount,
i,
nOverlays;
if
(overlay instanceof Overlay) {
overlay.cfg.addProperty(
"manager"
, { value: this } );
overlay.focusEvent = overlay.createEvent(
"focus"
);
overlay.focusEvent.signature = CustomEvent.LIST;
overlay.blurEvent = overlay.createEvent(
"blur"
);
overlay.blurEvent.signature = CustomEvent.LIST;
overlay.focus = function () {
mgr.focus(this);
};
overlay.blur = function () {
if
(mgr.getActive() == this) {
Dom.removeClass(this.element,
OverlayManager.CSS_FOCUSED);
this.blurEvent.fire();
}
};
overlay.blurEvent.subscribe(mgr._onOverlayBlur);
overlay.hideEvent.subscribe(overlay.blur);
overlay.destroyEvent.subscribe(this._onOverlayDestroy,
overlay, this);
Event.on(overlay.element, this.cfg.getProperty(
"focusevent"
),
this._onOverlayElementFocus, null, overlay);
zIndex = Dom.getStyle(overlay.element,
"zIndex"
);
if
(!isNaN(zIndex)) {
overlay.cfg.setProperty(
"zIndex"
, parseInt(zIndex, 10));
}
else
{
overlay.cfg.setProperty(
"zIndex"
, 0);
}
this.overlays.
push
(overlay);
this.bringToTop(overlay);
return
true;
}
else
if
(overlay instanceof Array) {
regcount = 0;
nOverlays = overlay.
length
;
for
(i = 0; i < nOverlays; i++) {
if
(this.register(overlay[i])) {
regcount++;
}
}
if
(regcount > 0) {
return
true;
javascript/yui/build/container/container_core.js view on Meta::CPAN
402340244025402640274028402940304031403240334034403540364037403840394040404140424043*/
bringToTop: function (p_oOverlay) {
var oOverlay = this.find(p_oOverlay),
nTopZIndex,
oTopOverlay,
aOverlays;
if
(oOverlay) {
aOverlays = this.overlays;
aOverlays.
sort
(this.compareZIndexDesc);
oTopOverlay = aOverlays[0];
if
(oTopOverlay) {
nTopZIndex = Dom.getStyle(oTopOverlay.element,
"zIndex"
);
if
(!isNaN(nTopZIndex) && oTopOverlay != oOverlay) {
javascript/yui/build/container/container_core.js view on Meta::CPAN
4051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102
}
}
},
/**
* Attempts to locate an Overlay by instance or ID.
*
@method
find
*
@param
{Overlay} overlay An Overlay to locate within the manager
*
@param
{String} overlay An Overlay id to locate within the manager
*
@return
{Overlay} The requested Overlay,
if
found, or null
if
it
* cannot be located.
*/
find: function (overlay) {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
if
(overlay instanceof Overlay) {
do
{
if
(aOverlays[i] == overlay) {
return
aOverlays[i];
}
}
while
(i--);
}
else
if
(typeof overlay ==
"string"
) {
do
{
if
(aOverlays[i].id == overlay) {
return
aOverlays[i];
}
}
while
(i--);
}
javascript/yui/build/container/container_core.js view on Meta::CPAN
412741284129413041314132413341344135413641374138413941404141414241434144414541464147
return
0;
}
},
/**
* Shows all Overlays in the manager.
*
@method
showAll
*/
showAll: function () {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
aOverlays[i].show();
javascript/yui/build/container/container_core.js view on Meta::CPAN
415241534154415541564157415841594160416141624163416441654166416741684169417041714172
}
},
/**
* Hides all Overlays in the manager.
*
@method
hideAll
*/
hideAll: function () {
var aOverlays = this.overlays,
nOverlays = aOverlays.
length
,
i;
if
(nOverlays > 0) {
i = nOverlays - 1;
do
{
aOverlays[i].hide();
javascript/yui/build/container/container_core.js view on Meta::CPAN
41914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453}());
(function () {
/**
* ContainerEffect encapsulates animation transitions that are executed
when
* an Overlay is shown or hidden.
*
@namespace
YAHOO.widget
*
@class
ContainerEffect
*
@constructor
*
@param
{YAHOO.widget.Overlay} overlay The Overlay that the animation
* should be associated
with
*
@param
{Object} attrIn The object literal representing the animation
* arguments to be used
for
the animate-in transition. The arguments
for
* this literal are: attributes(object, see YAHOO.util.Anim
for
description),
* duration(Number), and method(i.e. Easing.easeIn).
*
@param
{Object} attrOut The object literal representing the animation
* arguments to be used
for
the animate-out transition. The arguments
for
* this literal are: attributes(object, see YAHOO.util.Anim
for
description),
* duration(Number), and method(i.e. Easing.easeIn).
*
@param
{HTMLElement} targetElement Optional. The target element that
* should be animated during the transition. Defaults to overlay.element.
*
@param
{class} Optional. The animation class to instantiate. Defaults to
* YAHOO.util.Anim. Other options include YAHOO.util.Motion.
*/
YAHOO.widget.ContainerEffect =
function (overlay, attrIn, attrOut, targetElement, animClass) {
if
(!animClass) {
animClass = YAHOO.util.Anim;
}
/**
* The overlay to animate
*
@property
overlay
*
@type
YAHOO.widget.Overlay
*/
this.overlay = overlay;
/**
* The animation attributes to
use
when
transitioning into view
*
@property
attrIn
*
@type
Object
*/
this.attrIn = attrIn;
/**
* The animation attributes to
use
when
transitioning out of view
*
@property
attrOut
*
@type
Object
*/
this.attrOut = attrOut;
/**
* The target element to be animated
*
@property
targetElement
*
@type
HTMLElement
*/
this.targetElement = targetElement || overlay.element;
/**
* The animation class to
use
for
animating the overlay
*
@property
animClass
*
@type
class
*/
this.animClass = animClass;
};
var Dom = YAHOO.util.Dom,
CustomEvent = YAHOO.util.CustomEvent,
Easing = YAHOO.util.Easing,
ContainerEffect = YAHOO.widget.ContainerEffect;
/**
* A pre-configured ContainerEffect instance that can be used
for
fading
* an overlay in and out.
*
@method
FADE
*
@static
*
@param
{YAHOO.widget.Overlay} overlay The Overlay object to animate
*
@param
{Number} dur The duration of the animation
*
@return
{YAHOO.widget.ContainerEffect} The configured ContainerEffect object
*/
ContainerEffect.FADE = function (overlay, dur) {
var fade = new ContainerEffect(overlay,
{ attributes: { opacity: { from: 0, to: 1 } },
duration: dur,
method: Easing.easeIn },
{ attributes: { opacity: { to: 0 } },
duration: dur,
method: Easing.easeOut },
overlay.element);
fade.handleStartAnimateIn = function (type,args,obj) {
Dom.addClass(obj.overlay.element,
"hide-select"
);
if
(! obj.overlay.underlay) {
obj.overlay.cfg.refireEvent(
"underlay"
);
}
if
(obj.overlay.underlay) {
obj.initialUnderlayOpacity =
Dom.getStyle(obj.overlay.underlay,
"opacity"
);
obj.overlay.underlay.style.filter = null;
}
Dom.setStyle(obj.overlay.element,
"visibility"
,
"visible"
);
Dom.setStyle(obj.overlay.element,
"opacity"
, 0);
};
fade.handleCompleteAnimateIn = function (type,args,obj) {
Dom.removeClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.element.style.filter) {
obj.overlay.element.style.filter = null;
}
if
(obj.overlay.underlay) {
Dom.setStyle(obj.overlay.underlay,
"opacity"
,
obj.initialUnderlayOpacity);
}
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateInCompleteEvent.fire();
};
fade.handleStartAnimateOut = function (type, args, obj) {
Dom.addClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.underlay) {
obj.overlay.underlay.style.filter = null;
}
};
fade.handleCompleteAnimateOut = function (type, args, obj) {
Dom.removeClass(obj.overlay.element,
"hide-select"
);
if
(obj.overlay.element.style.filter) {
obj.overlay.element.style.filter = null;
}
Dom.setStyle(obj.overlay.element,
"visibility"
,
"hidden"
);
Dom.setStyle(obj.overlay.element,
"opacity"
, 1);
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateOutCompleteEvent.fire();
};
fade.init();
return
fade;
};
/**
* A pre-configured ContainerEffect instance that can be used
for
sliding an
* overlay in and out.
*
@method
SLIDE
*
@static
*
@param
{YAHOO.widget.Overlay} overlay The Overlay object to animate
*
@param
{Number} dur The duration of the animation
*
@return
{YAHOO.widget.ContainerEffect} The configured ContainerEffect object
*/
ContainerEffect.SLIDE = function (overlay, dur) {
var x = overlay.cfg.getProperty(
"x"
) || Dom.getX(overlay.element),
y = overlay.cfg.getProperty(
"y"
) || Dom.getY(overlay.element),
clientWidth = Dom.getClientWidth(),
offsetWidth = overlay.element.offsetWidth,
slide = new ContainerEffect(overlay,
{ attributes: { points: { to: [x, y] } },
duration: dur,
method: Easing.easeIn },
{ attributes: { points: { to: [(clientWidth + 25), y] } },
duration: dur,
method: Easing.easeOut },
overlay.element, YAHOO.util.Motion);
slide.handleStartAnimateIn = function (type,args,obj) {
obj.overlay.element.style.left = ((-25) - offsetWidth) +
"px"
;
obj.overlay.element.style.top = y +
"px"
;
};
slide.handleTweenAnimateIn = function (type, args, obj) {
var
pos
= Dom.getXY(obj.overlay.element),
currentX =
pos
[0],
currentY =
pos
[1];
if
(Dom.getStyle(obj.overlay.element,
"visibility"
) ==
"hidden"
&& currentX < x) {
Dom.setStyle(obj.overlay.element,
"visibility"
,
"visible"
);
}
obj.overlay.cfg.setProperty(
"xy"
, [currentX, currentY], true);
obj.overlay.cfg.refireEvent(
"iframe"
);
};
slide.handleCompleteAnimateIn = function (type, args, obj) {
obj.overlay.cfg.setProperty(
"xy"
, [x, y], true);
obj.startX = x;
obj.startY = y;
obj.overlay.cfg.refireEvent(
"iframe"
);
obj.animateInCompleteEvent.fire();
};
slide.handleStartAnimateOut = function (type, args, obj) {
var vw = Dom.getViewportWidth(),
pos
= Dom.getXY(obj.overlay.element),
yso =
pos
[1],
currentTo = obj.animOut.attributes.points.to;
obj.animOut.attributes.points.to = [(vw + 25), yso];
};
slide.handleTweenAnimateOut = function (type, args, obj) {
var
pos
= Dom.getXY(obj.overlay.element),
xto =
pos
[0],
yto =
pos
[1];
obj.overlay.cfg.setProperty(
"xy"
, [xto, yto], true);
obj.overlay.cfg.refireEvent(
"iframe"
);
};
slide.handleCompleteAnimateOut = function (type, args, obj) {
Dom.setStyle(obj.overlay.element,
"visibility"
,
"hidden"
);
obj.overlay.cfg.setProperty(
"xy"
, [x, y]);
obj.animateOutCompleteEvent.fire();
};
slide.init();
return
slide;
};
ContainerEffect.
prototype
= {
/**
javascript/yui/build/container/container_core.js view on Meta::CPAN
4562456345644565456645674568456945704571457245734574457545764577457845794580458145824583
*/
handleCompleteAnimateOut: function (type, args, obj) { },
/**
* Returns a string representation of the object.
*
@method
toString
*
@return
{String} The string representation of the ContainerEffect
*/
toString: function () {
var output =
"ContainerEffect"
;
if
(this.overlay) {
output +=
" ["
+ this.overlay.toString() +
"]"
;
}
return
output;
}
};
YAHOO.lang.augmentProto(ContainerEffect, YAHOO.util.EventProvider);
})();
YAHOO.register(
"container_core"
, YAHOO.widget.Module, {version:
"2.3.0"
, build:
"442"
});
javascript/yui/build/editor/assets/editor-core.css view on Meta::CPAN
221222223224225226227228229230231232233234235236237238239240241242243244245246.yui-toolbar-container .yui-toolbar-spinbutton.yui-button a.up, .yui-toolbar-container .yui-toolbar-spinbutton.yui-button a.down {
position: absolute;
display: block
right: 0;
cursor: pointer;
text-indent: 999px;
overflow: hidden;
z-
index
: 1;
border: none;
}
/* Position all panels/overlays as absolute by
default
*/
.yui-toolbar-container .yui-overlay {
position: absolute;
}
/* Smash the
default
style
for
lists */
.yui-toolbar-container .yui-overlay ul li {
float: none;
}
/* Setup the
default
look of a color menu and Zoom it
for
IE */
.yui-toolbar-colors {
width: 133px;
zoom: 1;
display: none;
z-
index
: 100;
overflow: hidden;
javascript/yui/build/editor/assets/skins/sam/editor.css view on Meta::CPAN
1234567/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
version: 2.3.0
*/
.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container .yui-toolbar-subcont:
after
{display:block;clear:both;visibility:hidden;content:
'.'
;height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;bord...
javascript/yui/build/editor/editor-beta-debug.js view on Meta::CPAN
1062106310641065106610671068106910701071107210731074107510761077107810791080108110821083*/
_makeColorButton: function(_oButton) {
if
(!this._colorPicker) {
this._createColorPicker(this.get(
'id'
));
}
_oButton.type =
'color'
;
_oButton.menu = new YAHOO.widget.Overlay(this.get(
'id'
) +
'_'
+ _oButton.value +
'_menu'
, { visbile: false, position:
'absolute'
});
_oButton.menu.setBody(
''
);
_oButton.menu.render(this.get(
'cont'
));
_oButton.menu.beforeShowEvent.subscribe(function() {
_oButton.menu.cfg.setProperty(
'zindex'
, 5); //Re Adjust the overlays zIndex.. not sure why.
_oButton.menu.cfg.setProperty(
'context'
, [this.getButtonById(_oButton.id).get(
'element'
),
'tl'
,
'bl'
]); //Re Adjust the overlay.. not sure why.
//Move the DOM reference of the color picker to the Overlay that we are about to show.
this._resetColorPicker();
var _p = this._colorPicker;
if
(_p.parentNode) {
//
if
(_p.parentNode != _oButton.menu.body) {
_p.parentNode.removeChild(_p);
//}
}
_oButton.menu.setBody(
''
);
_oButton.menu.appendToBody(_p);
javascript/yui/build/editor/editor-beta.js view on Meta::CPAN
1047104810491050105110521053105410551056105710581059106010611062106310641065106610671068*/
_makeColorButton: function(_oButton) {
if
(!this._colorPicker) {
this._createColorPicker(this.get(
'id'
));
}
_oButton.type =
'color'
;
_oButton.menu = new YAHOO.widget.Overlay(this.get(
'id'
) +
'_'
+ _oButton.value +
'_menu'
, { visbile: false, position:
'absolute'
});
_oButton.menu.setBody(
''
);
_oButton.menu.render(this.get(
'cont'
));
_oButton.menu.beforeShowEvent.subscribe(function() {
_oButton.menu.cfg.setProperty(
'zindex'
, 5); //Re Adjust the overlays zIndex.. not sure why.
_oButton.menu.cfg.setProperty(
'context'
, [this.getButtonById(_oButton.id).get(
'element'
),
'tl'
,
'bl'
]); //Re Adjust the overlay.. not sure why.
//Move the DOM reference of the color picker to the Overlay that we are about to show.
this._resetColorPicker();
var _p = this._colorPicker;
if
(_p.parentNode) {
//
if
(_p.parentNode != _oButton.menu.body) {
_p.parentNode.removeChild(_p);
//}
}
_oButton.menu.setBody(
''
);
_oButton.menu.appendToBody(_p);
javascript/yui/build/menu/README view on Meta::CPAN
684685686687688689690691692693694695696697698699700701702703704* Items without a
"url"
property set will automatically hide their parent
menu instance(s)
when
clicked.
Fixed the following bugs:
-------------------------
* Items in a submenu should now navigate to their specified URL
when
clicked.
1.5 in which submenus of a Menubar instance cannot overlay other absolutely
positioned elements on the page.
* Submenus of a Menubar instance will now automatically have their iframe shim
enabled in IE<7.
* Statically positioned Menubar and Menu instances will now render
with
the
correct position and dimensions in Safari.
* MenuModuleItem
's "focus" method now checks to make sure that an item'
s
"display"
style property is not
"none"
before
trying to set focus to its
javascript/yui/build/menu/menu-debug.js view on Meta::CPAN
554355445545554655475548554955505551555255535554555555565557555855595560556155625563);
/**
*
@config
position
*
@description
String indicating how a menu should be positioned on the
* screen. Possible
values
are
"static"
and
"dynamic."
Static menus are
* visible by
default
and reside in the normal flow of the document
* (CSS position: static). Dynamic menus are hidden by
default
, reside
* out of the normal flow of the document (CSS position: absolute), and
* can overlay other elements on the screen.
*
@default
dynamic
*
@type
String
*/
oConfig.addProperty(
DEFAULT_CONFIG.POSITION.key,
{
handler: this.configPosition,
value: DEFAULT_CONFIG.POSITION.value,
validator: DEFAULT_CONFIG.POSITION.validator,
supercedes: DEFAULT_CONFIG.POSITION.supercedes
javascript/yui/build/menu/menu-debug.js view on Meta::CPAN
861986208621862286238624862586268627862886298630863186328633863486358636863786388639*/
/**
*
@config
position
*
@description
String indicating how a menu bar should be positioned on the
* screen. Possible
values
are
"static"
and
"dynamic."
Static menu bars
* are visible by
default
and reside in the normal flow of the document
* (CSS position: static). Dynamic menu bars are hidden by
default
, reside
* out of the normal flow of the document (CSS position: absolute), and can
* overlay other elements on the screen.
*
@default
static
*
@type
String
*/
oConfig.addProperty(
DEFAULT_CONFIG.POSITION.key,
{
handler: this.configPosition,
value: DEFAULT_CONFIG.POSITION.value,
validator: DEFAULT_CONFIG.POSITION.validator,
supercedes: DEFAULT_CONFIG.POSITION.supercedes
javascript/yui/build/menu/menu.js view on Meta::CPAN
549454955496549754985499550055015502550355045505550655075508550955105511551255135514);
/**
*
@config
position
*
@description
String indicating how a menu should be positioned on the
* screen. Possible
values
are
"static"
and
"dynamic."
Static menus are
* visible by
default
and reside in the normal flow of the document
* (CSS position: static). Dynamic menus are hidden by
default
, reside
* out of the normal flow of the document (CSS position: absolute), and
* can overlay other elements on the screen.
*
@default
dynamic
*
@type
String
*/
oConfig.addProperty(
DEFAULT_CONFIG.POSITION.key,
{
handler: this.configPosition,
value: DEFAULT_CONFIG.POSITION.value,
validator: DEFAULT_CONFIG.POSITION.validator,
supercedes: DEFAULT_CONFIG.POSITION.supercedes
javascript/yui/build/menu/menu.js view on Meta::CPAN
857085718572857385748575857685778578857985808581858285838584858585868587858885898590*/
/**
*
@config
position
*
@description
String indicating how a menu bar should be positioned on the
* screen. Possible
values
are
"static"
and
"dynamic."
Static menu bars
* are visible by
default
and reside in the normal flow of the document
* (CSS position: static). Dynamic menu bars are hidden by
default
, reside
* out of the normal flow of the document (CSS position: absolute), and can
* overlay other elements on the screen.
*
@default
static
*
@type
String
*/
oConfig.addProperty(
DEFAULT_CONFIG.POSITION.key,
{
handler: this.configPosition,
value: DEFAULT_CONFIG.POSITION.value,
validator: DEFAULT_CONFIG.POSITION.validator,
supercedes: DEFAULT_CONFIG.POSITION.supercedes
styles/solstice.css view on Meta::CPAN
464748495051525354555657585960616263646566/* tooltips */
.yui-tt { visibility: hidden; position: absolute; background: transparent url(../images/yui_menu_ds.png)
no
-repeat bottom right; padding: 0 3px 3px 0; }
.yui-tt .bd { font-size: 11px; line-height: 1.4; border: 1px solid
#333; padding: 2px 4px; color: #666; background-color: #FFFFCC; width: auto; }
* html .yui-tt { background: none; }
/* processing mask & message box */
.yui-overlay { position:absolute; display:block; }
.mask { z-
index
:0; display:none; position:absolute; top:0; left:0; -moz-opacity: 0.5; opacity:.50; filter: alpha(opacity=50); background-color:
#CCC; }
.yui-panel-container { position:absolute; top: -100px; background-color:transparent; z-
index
:6; visibility:hidden; overflow:visible; width:auto; }
.yui-panel { visibility:hidden; border-collapse:separate; position:relative; left:0px;top:0px; font-size:1em; background-color:
#FFF; border: 10px solid #7F9DB9; z-index:1; padding: 10px; overflow:hidden; }
.yui-panel .hd { font-size:100%; line-height:100%; font-weight:bold; padding:5px 10px 0 10px; }
.yui-panel .hd h2 { margin: 5px 0 0 0; color:
#555; }
.yui-panel .bd { overflow:hidden; padding:10px; }
.yui-panel .bd p { margin:0 0 1em 0; }
.yui-panel .bd .sol_panel_height_limit { max-height: 450px; overflow-y: auto; } /* won't work in ie6 */