Solstice

 view release on metacpan or  search on metacpan

javascript/yui/build/assets/skins/sam/container.css  view on Meta::CPAN

1
2
3
4
5
6
7
/*
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

1
2
3
4
5
6
7
/*
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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
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

161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
    - 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

290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
   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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
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

1
2
3
4
5
6
7
/*
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

2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
*/
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

2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
/**
* 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

3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
}());
(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

3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
/**
* 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 collection of registered Overlays in use by
    * 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

3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
* @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

3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
              
        }
 
    }
 
};
 
/**
* 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

3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
        }
 
    };
 
    /**
    * 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

3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
    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

4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
*/       
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

4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
          
        }
 
    }
 
},
 
/**
* 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

4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
        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

4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
    }
 
},
 
/**
* 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

7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
}());
(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

8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
        */
        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

51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
this.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

91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
else{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

221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
aValues[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="&#160;";}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

2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
*/
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

2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
/**
* 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

3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
}());
(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

3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
/**
* 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 collection of registered Overlays in use by
    * 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

3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
* @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

3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
              
        }
 
    }
 
};
 
/**
* 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

3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
        }
 
    };
 
    /**
    * 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

3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
    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

4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
*/       
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

4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
          
        }
 
    }
 
},
 
/**
* 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

4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
        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

4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
    }
 
},
 
/**
* 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

7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
}());
(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

8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
        */
        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

2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
*/
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

2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
/**
* 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

3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
}());
(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

3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
/**
* 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 collection of registered Overlays in use by
    * 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

3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
* @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

3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
              
        }
 
    }
 
};
 
/**
* 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

3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
        }
 
    };
 
    /**
    * 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

3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
    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

4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
*/       
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

4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
          
        }
 
    }
 
},
 
/**
* 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

4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
        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

4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
    }
 
},
 
/**
* 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

4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
}());
(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

4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
        */
        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

51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
this.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

91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
else{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

2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
*/
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

2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
/**
* 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

3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
}());
(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

3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
/**
* 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 collection of registered Overlays in use by
    * 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

3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
* @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

3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
              
        }
 
    }
 
};
 
/**
* 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

3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
        }
 
    };
 
    /**
    * 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

3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
    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

4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
*/       
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

4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
          
        }
 
    }
 
},
 
/**
* 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

4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
        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

4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
    }
 
},
 
/**
* 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

4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
}());
(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

4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
        */
        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

221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
.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

1
2
3
4
5
6
7
/*
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

1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
*/
_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

1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
*/
_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

684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
* 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.
 
* Removed MenuBar's use of "overflow:hidden."  This fixes an issue in Firefox
  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

5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
);
 
 
/**
* @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

8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
*/
 
 
/**
* @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

5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
);
 
 
/**
* @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

8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
*/
 
 
/**
* @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

46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
 
/* 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 */



( run in 0.340 second using v1.01-cache-2.11-cpan-94b05bcf43c )