first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 18:11:26 -04:00
commit e592ca6823
27270 changed files with 5002257 additions and 0 deletions
@@ -0,0 +1,106 @@
YUI.add('shim-plugin', function (Y, NAME) {
/**
* Provides shimming support for Node via a Plugin.
* This fixes SELECT bleedthrough for IE6 & Mac scrollbars
* @module shim-plugin
*/
/**
* Node plugin which can be used to add shim support.
*
* @class Plugin.Shim
* @param {Object} User configuration object
*/
function Shim(config) {
this.init(config);
}
/**
* Default class used to mark the shim element
*
* @property CLASS_NAME
* @type String
* @static
* @default "yui-node-shim"
*/
// TODO: use ClassNameManager
Shim.CLASS_NAME = 'yui-node-shim';
/**
* Default markup template used to generate the shim element.
*
* @property TEMPLATE
* @type String
* @static
*/
Shim.TEMPLATE = '<iframe class="' + Shim.CLASS_NAME +
'" frameborder="0" title="Node Stacking Shim"' +
'src="javascript:false" tabindex="-1" role="presentation"' +
'style="position:absolute; z-index:-1;"></iframe>';
Shim.prototype = {
init: function(config) {
this._host = config.host;
this.initEvents();
this.insert();
this.sync();
},
initEvents: function() {
this._resizeHandle = this._host.on('resize', this.sync, this);
},
getShim: function() {
return this._shim || (
this._shim = Y.Node.create(
Shim.TEMPLATE,
this._host.get('ownerDocument')
)
);
},
insert: function() {
var node = this._host;
this._shim = node.insertBefore( this.getShim(),
node.get('firstChild'));
},
/**
* Updates the size of the shim to fill its container
* @method sync
*/
sync: function() {
var shim = this._shim,
node = this._host;
if (shim) {
shim.setAttrs({
width: node.getStyle('width'),
height: node.getStyle('height')
});
}
},
/**
* Removes the shim and destroys the plugin
* @method destroy
*/
destroy: function() {
var shim = this._shim;
if (shim) {
shim.remove(true);
}
this._resizeHandle.detach();
}
};
Shim.NAME = 'Shim';
Shim.NS = 'shim';
Y.namespace('Plugin');
Y.Plugin.Shim = Shim;
}, '3.18.1', {"requires": ["node-style", "node-pluginhost"]});
+1
View File
@@ -0,0 +1 @@
YUI.add("shim-plugin",function(e,t){function n(e){this.init(e)}n.CLASS_NAME="yui-node-shim",n.TEMPLATE='<iframe class="'+n.CLASS_NAME+'" frameborder="0" title="Node Stacking Shim"'+'src="javascript:false" tabindex="-1" role="presentation"'+'style="position:absolute; z-index:-1;"></iframe>',n.prototype={init:function(e){this._host=e.host,this.initEvents(),this.insert(),this.sync()},initEvents:function(){this._resizeHandle=this._host.on("resize",this.sync,this)},getShim:function(){return this._shim||(this._shim=e.Node.create(n.TEMPLATE,this._host.get("ownerDocument")))},insert:function(){var e=this._host;this._shim=e.insertBefore(this.getShim(),e.get("firstChild"))},sync:function(){var e=this._shim,t=this._host;e&&e.setAttrs({width:t.getStyle("width"),height:t.getStyle("height")})},destroy:function(){var e=this._shim;e&&e.remove(!0),this._resizeHandle.detach()}},n.NAME="Shim",n.NS="shim",e.namespace("Plugin"),e.Plugin.Shim=n},"3.18.1",{requires:["node-style","node-pluginhost"]});
@@ -0,0 +1,106 @@
YUI.add('shim-plugin', function (Y, NAME) {
/**
* Provides shimming support for Node via a Plugin.
* This fixes SELECT bleedthrough for IE6 & Mac scrollbars
* @module shim-plugin
*/
/**
* Node plugin which can be used to add shim support.
*
* @class Plugin.Shim
* @param {Object} User configuration object
*/
function Shim(config) {
this.init(config);
}
/**
* Default class used to mark the shim element
*
* @property CLASS_NAME
* @type String
* @static
* @default "yui-node-shim"
*/
// TODO: use ClassNameManager
Shim.CLASS_NAME = 'yui-node-shim';
/**
* Default markup template used to generate the shim element.
*
* @property TEMPLATE
* @type String
* @static
*/
Shim.TEMPLATE = '<iframe class="' + Shim.CLASS_NAME +
'" frameborder="0" title="Node Stacking Shim"' +
'src="javascript:false" tabindex="-1" role="presentation"' +
'style="position:absolute; z-index:-1;"></iframe>';
Shim.prototype = {
init: function(config) {
this._host = config.host;
this.initEvents();
this.insert();
this.sync();
},
initEvents: function() {
this._resizeHandle = this._host.on('resize', this.sync, this);
},
getShim: function() {
return this._shim || (
this._shim = Y.Node.create(
Shim.TEMPLATE,
this._host.get('ownerDocument')
)
);
},
insert: function() {
var node = this._host;
this._shim = node.insertBefore( this.getShim(),
node.get('firstChild'));
},
/**
* Updates the size of the shim to fill its container
* @method sync
*/
sync: function() {
var shim = this._shim,
node = this._host;
if (shim) {
shim.setAttrs({
width: node.getStyle('width'),
height: node.getStyle('height')
});
}
},
/**
* Removes the shim and destroys the plugin
* @method destroy
*/
destroy: function() {
var shim = this._shim;
if (shim) {
shim.remove(true);
}
this._resizeHandle.detach();
}
};
Shim.NAME = 'Shim';
Shim.NS = 'shim';
Y.namespace('Plugin');
Y.Plugin.Shim = Shim;
}, '3.18.1', {"requires": ["node-style", "node-pluginhost"]});