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,26 @@
.yui3-datatable tr td {
-webkit-transition: background-color 0.05s ease-in;
-moz-transition: background-color 0.05s ease-in;
-o-transition: background-color 0.05s ease-in;
transition: background-color 0.05s ease-in;
}
.yui3-datatable .yui3-datatable-highlight-row td {
-webkit-transition: background-color 0.1s ease-out;
-moz-transition: background-color 0.1s ease-out;
-o-transition: background-color 0.1s ease-out;
transition: background-color 0.1s ease-out;
}
.yui3-datatable tr .yui3-datatable-highlight-col {
-webkit-transition: background-color 0.1s ease-out;
-moz-transition: background-color 0.1s ease-out;
-o-transition: background-color 0.1s ease-out;
transition: background-color 0.1s ease-out;
}
.yui3-datatable tr .yui3-datatable-highlight-cell {
-webkit-transition: background-color 0.1s ease-out;
-moz-transition: background-color 0.1s ease-out;
-o-transition: background-color 0.1s ease-out;
transition: background-color 0.1s ease-out;
}
@@ -0,0 +1,11 @@
.yui3-skin-night .yui3-datatable .yui3-datatable-highlight-row td {
background-color: #38383f;
}
.yui3-skin-night .yui3-datatable tr .yui3-datatable-highlight-col {
background-color: #38383f;
}
.yui3-skin-night .yui3-datatable tr .yui3-datatable-highlight-cell {
background-color: #38383f;
}
@@ -0,0 +1 @@
.yui3-datatable tr td{-webkit-transition:background-color .05s ease-in;-moz-transition:background-color .05s ease-in;-o-transition:background-color .05s ease-in;transition:background-color .05s ease-in}.yui3-datatable .yui3-datatable-highlight-row td{-webkit-transition:background-color .1s ease-out;-moz-transition:background-color .1s ease-out;-o-transition:background-color .1s ease-out;transition:background-color .1s ease-out}.yui3-datatable tr .yui3-datatable-highlight-col{-webkit-transition:background-color .1s ease-out;-moz-transition:background-color .1s ease-out;-o-transition:background-color .1s ease-out;transition:background-color .1s ease-out}.yui3-datatable tr .yui3-datatable-highlight-cell{-webkit-transition:background-color .1s ease-out;-moz-transition:background-color .1s ease-out;-o-transition:background-color .1s ease-out;transition:background-color .1s ease-out}.yui3-skin-night .yui3-datatable .yui3-datatable-highlight-row td{background-color:#38383f}.yui3-skin-night .yui3-datatable tr .yui3-datatable-highlight-col{background-color:#38383f}.yui3-skin-night .yui3-datatable tr .yui3-datatable-highlight-cell{background-color:#38383f}#yui3-css-stamp.skin-night-datatable-highlight{display:none}
@@ -0,0 +1,11 @@
.yui3-skin-sam .yui3-datatable .yui3-datatable-highlight-row td {
background-color: #fef2cd;
}
.yui3-skin-sam .yui3-datatable tr .yui3-datatable-highlight-col {
background-color: #fef2cd;
}
.yui3-skin-sam .yui3-datatable tr .yui3-datatable-highlight-cell {
background-color: #fef2cd;
}
@@ -0,0 +1 @@
.yui3-datatable tr td{-webkit-transition:background-color .05s ease-in;-moz-transition:background-color .05s ease-in;-o-transition:background-color .05s ease-in;transition:background-color .05s ease-in}.yui3-datatable .yui3-datatable-highlight-row td{-webkit-transition:background-color .1s ease-out;-moz-transition:background-color .1s ease-out;-o-transition:background-color .1s ease-out;transition:background-color .1s ease-out}.yui3-datatable tr .yui3-datatable-highlight-col{-webkit-transition:background-color .1s ease-out;-moz-transition:background-color .1s ease-out;-o-transition:background-color .1s ease-out;transition:background-color .1s ease-out}.yui3-datatable tr .yui3-datatable-highlight-cell{-webkit-transition:background-color .1s ease-out;-moz-transition:background-color .1s ease-out;-o-transition:background-color .1s ease-out;transition:background-color .1s ease-out}.yui3-skin-sam .yui3-datatable .yui3-datatable-highlight-row td{background-color:#fef2cd}.yui3-skin-sam .yui3-datatable tr .yui3-datatable-highlight-col{background-color:#fef2cd}.yui3-skin-sam .yui3-datatable tr .yui3-datatable-highlight-cell{background-color:#fef2cd}#yui3-css-stamp.skin-sam-datatable-highlight{display:none}
@@ -0,0 +1,282 @@
YUI.add('datatable-highlight', function (Y, NAME) {
/**
Adds support for highlighting columns with the mouse in a DataTable
@module datatable
@submodule datatable-highlight
@since 3.13.0
*/
var getClassName = Y.ClassNameManager.getClassName;
/**
@class DataTable.Highlight
@since 3.13.0
*/
function Highlight() {}
Highlight.ATTRS = {
/**
Setting this to true will create a delegate on the DataTable adding the
default classname to the row when the mouse is over the row.
@attribute highlightRows
@default false
@since 3.13.0
*/
highlightRows: {
value: false,
setter: '_setHighlightRows',
validator: Y.Lang.isBoolean
},
/**
Setting this to true will create a delegate on the DataTable adding the
default classname to the column when the mouse is over the column.
@attribute highlightCols
@default false
@since 3.13.0
*/
highlightCols: {
value: false,
setter: '_setHighlightCols',
validator: Y.Lang.isBoolean
},
/**
Setting this to true will create a delegate on the DataTable adding the
default classname to the cell when the mouse is over it.
@attribute highlightCells
@default false
@since 3.13.0
*/
highlightCells: {
value: false,
setter: '_setHighlightCells',
validator: Y.Lang.isBoolean
}
};
Highlight.prototype = {
/**
An object consisting of classnames for a `row`, a `col` and a `cell` to
be applied to their respective objects when the user moves the mouse over
the item and the attribute is set to true.
@public
@property highlightClassNames
@type Object
@since 3.13.0
*/
highlightClassNames: {
row: getClassName(NAME, 'row'),
col: getClassName(NAME, 'col'),
cell: getClassName(NAME, 'cell')
},
/**
A string that is used to create a column selector when the column is has
the mouse over it. Can contain the css prefix (`{prefix}`) and the column
name (`{col}`). Further substitution will require `_highlightCol` to be
overwritten.
@protected
@property _colSelector
@type String
@since 3.13.0
*/
_colSelector: '.{prefix}-data .{prefix}-col-{col}',
/**
A string that will be used to create Regular Expression when column
highlighting is set to true. Uses the css prefix (`{prefix}`) from the
DataTable object to populate.
@protected
@property _colNameRegex
@type String
@since 3.13.0
*/
_colNameRegex: '{prefix}-col-(\\S*)',
/**
This object will contain any delegates created when their feature is
turned on.
@protected
@property _highlightDelegates
@type Object
@since 3.13.0
*/
_highlightDelegates: {},
/**
Default setter method for row highlighting. If the value is true, a
delegate is created and stored in `this._highlightDelegates.row`. This
delegate will add/remove the row highlight classname to/from the row when
the mouse enters/leaves a row on the `tbody`
@protected
@method _setHighlightRows
@param {Boolean} val
@return val
@since 3.13.0
*/
_setHighlightRows: function (val) {
var del = this._highlightDelegates;
if (del.row) {
del.row.detach();
}
if (val === true) {
del.row = this.delegate('hover',
Y.bind(this._highlightRow, this),
Y.bind(this._highlightRow, this),
"tbody tr");
}
return val;
},
/**
Default setter method for column highlighting. If the value is true, a
delegate is created and stored in `this._highlightDelegates.col`. This
delegate will add/remove the column highlight classname to/from the
column when the mouse enters/leaves a column on the `tbody`
@protected
@method _setHighlightCols
@param {Boolean} val
@return val
@since 3.13.0
*/
_setHighlightCols: function (val) {
var del = this._highlightDelegates;
if (del.col) {
del.col.detach();
}
if (val === true) {
this._buildColSelRegex();
del.col = this.delegate('hover',
Y.bind(this._highlightCol, this),
Y.bind(this._highlightCol, this),
"tr td");
}
},
/**
Default setter method for cell highlighting. If the value is true, a
delegate is created and stored in `this._highlightDelegates.cell`. This
delegate will add/remove the cell highlight classname to/from the cell
when the mouse enters/leaves a cell on the `tbody`
@protected
@method _setHighlightCells
@param {Boolean} val
@return val
@since 3.13.0
*/
_setHighlightCells: function (val) {
var del = this._highlightDelegates;
if (del.cell) {
del.cell.detach();
}
if (val === true) {
del.cell = this.delegate('hover',
Y.bind(this._highlightCell, this),
Y.bind(this._highlightCell, this),
"tbody td");
}
return val;
},
/**
Method called to turn on or off the row highlighting when the mouse
enters or leaves the row. This is determined by the event phase of the
hover event. Where `over` will turn on the highlighting and anything else
will turn it off.
@protected
@method _highlightRow
@param {EventFacade} e Event from the hover event
@since 3.13.0
*/
_highlightRow: function (e) {
e.currentTarget.toggleClass(this.highlightClassNames.row, (e.phase === 'over'));
},
/**
Method called to turn on or off the column highlighting when the mouse
enters or leaves the column. This is determined by the event phase of the
hover event. Where `over` will turn on the highlighting and anything else
will turn it off.
@protected
@method _highlightCol
@param {EventFacade} e Event from the hover event
@since 3.13.0
*/
_highlightCol: function(e) {
var colName = this._colNameRegex.exec(e.currentTarget.getAttribute('class')),
selector = Y.Lang.sub(this._colSelector, {
prefix: this._cssPrefix,
col: colName[1]
});
this.view.tableNode.all(selector).toggleClass(this.highlightClassNames.col, (e.phase === 'over'));
},
/**
Method called to turn on or off the cell highlighting when the mouse
enters or leaves the cell. This is determined by the event phase of the
hover event. Where `over` will turn on the highlighting and anything else
will turn it off.
@protected
@method _highlightCell
@param {EventFacade} e Event from the hover event
@since 3.13.0
*/
_highlightCell: function(e) {
e.currentTarget.toggleClass(this.highlightClassNames.cell, (e.phase === 'over'));
},
/**
Used to transform the `_colNameRegex` to a Regular Expression when the
column highlighting is initially turned on. If `_colNameRegex` is not a
string when this method is called, no action is taken.
@protected
@method _buildColSelRegex
@since 3.13.0
*/
_buildColSelRegex: function () {
var str = this._colNameRegex,
regex;
if (typeof str === 'string') {
this._colNameRegex = new RegExp(Y.Lang.sub(str, { prefix: this._cssPrefix }));
}
}
};
Y.DataTable.Highlight = Highlight;
Y.Base.mix(Y.DataTable, [Y.DataTable.Highlight]);
}, '3.18.1', {"requires": ["datatable-base", "event-hover"], "skinnable": true});
@@ -0,0 +1 @@
YUI.add("datatable-highlight",function(e,t){function r(){}var n=e.ClassNameManager.getClassName;r.ATTRS={highlightRows:{value:!1,setter:"_setHighlightRows",validator:e.Lang.isBoolean},highlightCols:{value:!1,setter:"_setHighlightCols",validator:e.Lang.isBoolean},highlightCells:{value:!1,setter:"_setHighlightCells",validator:e.Lang.isBoolean}},r.prototype={highlightClassNames:{row:n(t,"row"),col:n(t,"col"),cell:n(t,"cell")},_colSelector:".{prefix}-data .{prefix}-col-{col}",_colNameRegex:"{prefix}-col-(\\S*)",_highlightDelegates:{},_setHighlightRows:function(t){var n=this._highlightDelegates;return n.row&&n.row.detach(),t===!0&&(n.row=this.delegate("hover",e.bind(this._highlightRow,this),e.bind(this._highlightRow,this),"tbody tr")),t},_setHighlightCols:function(t){var n=this._highlightDelegates;n.col&&n.col.detach(),t===!0&&(this._buildColSelRegex(),n.col=this.delegate("hover",e.bind(this._highlightCol,this),e.bind(this._highlightCol,this),"tr td"))},_setHighlightCells:function(t){var n=this._highlightDelegates;return n.cell&&n.cell.detach(),t===!0&&(n.cell=this.delegate("hover",e.bind(this._highlightCell,this),e.bind(this._highlightCell,this),"tbody td")),t},_highlightRow:function(e){e.currentTarget.toggleClass(this.highlightClassNames.row,e.phase==="over")},_highlightCol:function(t){var n=this._colNameRegex.exec(t.currentTarget.getAttribute("class")),r=e.Lang.sub(this._colSelector,{prefix:this._cssPrefix,col:n[1]});this.view.tableNode.all(r).toggleClass(this.highlightClassNames.col,t.phase==="over")},_highlightCell:function(e){e.currentTarget.toggleClass(this.highlightClassNames.cell,e.phase==="over")},_buildColSelRegex:function(){var t=this._colNameRegex,n;typeof t=="string"&&(this._colNameRegex=new RegExp(e.Lang.sub(t,{prefix:this._cssPrefix})))}},e.DataTable.Highlight=r,e.Base.mix(e.DataTable,[e.DataTable.Highlight])},"3.18.1",{requires:["datatable-base","event-hover"],skinnable:!0});
@@ -0,0 +1,282 @@
YUI.add('datatable-highlight', function (Y, NAME) {
/**
Adds support for highlighting columns with the mouse in a DataTable
@module datatable
@submodule datatable-highlight
@since 3.13.0
*/
var getClassName = Y.ClassNameManager.getClassName;
/**
@class DataTable.Highlight
@since 3.13.0
*/
function Highlight() {}
Highlight.ATTRS = {
/**
Setting this to true will create a delegate on the DataTable adding the
default classname to the row when the mouse is over the row.
@attribute highlightRows
@default false
@since 3.13.0
*/
highlightRows: {
value: false,
setter: '_setHighlightRows',
validator: Y.Lang.isBoolean
},
/**
Setting this to true will create a delegate on the DataTable adding the
default classname to the column when the mouse is over the column.
@attribute highlightCols
@default false
@since 3.13.0
*/
highlightCols: {
value: false,
setter: '_setHighlightCols',
validator: Y.Lang.isBoolean
},
/**
Setting this to true will create a delegate on the DataTable adding the
default classname to the cell when the mouse is over it.
@attribute highlightCells
@default false
@since 3.13.0
*/
highlightCells: {
value: false,
setter: '_setHighlightCells',
validator: Y.Lang.isBoolean
}
};
Highlight.prototype = {
/**
An object consisting of classnames for a `row`, a `col` and a `cell` to
be applied to their respective objects when the user moves the mouse over
the item and the attribute is set to true.
@public
@property highlightClassNames
@type Object
@since 3.13.0
*/
highlightClassNames: {
row: getClassName(NAME, 'row'),
col: getClassName(NAME, 'col'),
cell: getClassName(NAME, 'cell')
},
/**
A string that is used to create a column selector when the column is has
the mouse over it. Can contain the css prefix (`{prefix}`) and the column
name (`{col}`). Further substitution will require `_highlightCol` to be
overwritten.
@protected
@property _colSelector
@type String
@since 3.13.0
*/
_colSelector: '.{prefix}-data .{prefix}-col-{col}',
/**
A string that will be used to create Regular Expression when column
highlighting is set to true. Uses the css prefix (`{prefix}`) from the
DataTable object to populate.
@protected
@property _colNameRegex
@type String
@since 3.13.0
*/
_colNameRegex: '{prefix}-col-(\\S*)',
/**
This object will contain any delegates created when their feature is
turned on.
@protected
@property _highlightDelegates
@type Object
@since 3.13.0
*/
_highlightDelegates: {},
/**
Default setter method for row highlighting. If the value is true, a
delegate is created and stored in `this._highlightDelegates.row`. This
delegate will add/remove the row highlight classname to/from the row when
the mouse enters/leaves a row on the `tbody`
@protected
@method _setHighlightRows
@param {Boolean} val
@return val
@since 3.13.0
*/
_setHighlightRows: function (val) {
var del = this._highlightDelegates;
if (del.row) {
del.row.detach();
}
if (val === true) {
del.row = this.delegate('hover',
Y.bind(this._highlightRow, this),
Y.bind(this._highlightRow, this),
"tbody tr");
}
return val;
},
/**
Default setter method for column highlighting. If the value is true, a
delegate is created and stored in `this._highlightDelegates.col`. This
delegate will add/remove the column highlight classname to/from the
column when the mouse enters/leaves a column on the `tbody`
@protected
@method _setHighlightCols
@param {Boolean} val
@return val
@since 3.13.0
*/
_setHighlightCols: function (val) {
var del = this._highlightDelegates;
if (del.col) {
del.col.detach();
}
if (val === true) {
this._buildColSelRegex();
del.col = this.delegate('hover',
Y.bind(this._highlightCol, this),
Y.bind(this._highlightCol, this),
"tr td");
}
},
/**
Default setter method for cell highlighting. If the value is true, a
delegate is created and stored in `this._highlightDelegates.cell`. This
delegate will add/remove the cell highlight classname to/from the cell
when the mouse enters/leaves a cell on the `tbody`
@protected
@method _setHighlightCells
@param {Boolean} val
@return val
@since 3.13.0
*/
_setHighlightCells: function (val) {
var del = this._highlightDelegates;
if (del.cell) {
del.cell.detach();
}
if (val === true) {
del.cell = this.delegate('hover',
Y.bind(this._highlightCell, this),
Y.bind(this._highlightCell, this),
"tbody td");
}
return val;
},
/**
Method called to turn on or off the row highlighting when the mouse
enters or leaves the row. This is determined by the event phase of the
hover event. Where `over` will turn on the highlighting and anything else
will turn it off.
@protected
@method _highlightRow
@param {EventFacade} e Event from the hover event
@since 3.13.0
*/
_highlightRow: function (e) {
e.currentTarget.toggleClass(this.highlightClassNames.row, (e.phase === 'over'));
},
/**
Method called to turn on or off the column highlighting when the mouse
enters or leaves the column. This is determined by the event phase of the
hover event. Where `over` will turn on the highlighting and anything else
will turn it off.
@protected
@method _highlightCol
@param {EventFacade} e Event from the hover event
@since 3.13.0
*/
_highlightCol: function(e) {
var colName = this._colNameRegex.exec(e.currentTarget.getAttribute('class')),
selector = Y.Lang.sub(this._colSelector, {
prefix: this._cssPrefix,
col: colName[1]
});
this.view.tableNode.all(selector).toggleClass(this.highlightClassNames.col, (e.phase === 'over'));
},
/**
Method called to turn on or off the cell highlighting when the mouse
enters or leaves the cell. This is determined by the event phase of the
hover event. Where `over` will turn on the highlighting and anything else
will turn it off.
@protected
@method _highlightCell
@param {EventFacade} e Event from the hover event
@since 3.13.0
*/
_highlightCell: function(e) {
e.currentTarget.toggleClass(this.highlightClassNames.cell, (e.phase === 'over'));
},
/**
Used to transform the `_colNameRegex` to a Regular Expression when the
column highlighting is initially turned on. If `_colNameRegex` is not a
string when this method is called, no action is taken.
@protected
@method _buildColSelRegex
@since 3.13.0
*/
_buildColSelRegex: function () {
var str = this._colNameRegex,
regex;
if (typeof str === 'string') {
this._colNameRegex = new RegExp(Y.Lang.sub(str, { prefix: this._cssPrefix }));
}
}
};
Y.DataTable.Highlight = Highlight;
Y.Base.mix(Y.DataTable, [Y.DataTable.Highlight]);
}, '3.18.1', {"requires": ["datatable-base", "event-hover"], "skinnable": true});