Permalink
Browse files

gallery-2014.03.06-14-38 jafl gallery-datatable-row-expansion

  • Loading branch information...
1 parent 56f678d commit 9469dbffc4747e80b5dbbf29b2ec3276c8445ea3 Eugene Kashida committed Mar 6, 2014
@@ -12,9 +12,9 @@
}
.yui3-skin-sam .yui3-datatable .row-closed a.row-expand-nub
{
- background:url(http://yui.yahooapis.com/gallery-2012.12.19-21-23/gallery-datatable-row-expansion/assets/skins/sam/closed.png) no-repeat;
+ background:url(http://yui.yahooapis.com/gallery-2014.03.06-14-38/gallery-datatable-row-expansion/assets/skins/sam/closed.png) no-repeat;
}
.yui3-skin-sam .yui3-datatable .row-open a.row-expand-nub
{
- background:url(http://yui.yahooapis.com/gallery-2012.12.19-21-23/gallery-datatable-row-expansion/assets/skins/sam/open.png) no-repeat;
+ background:url(http://yui.yahooapis.com/gallery-2014.03.06-14-38/gallery-datatable-row-expansion/assets/skins/sam/open.png) no-repeat;
}
@@ -1 +1 @@
-.yui3-skin-sam .yui3-datatable tr.row-expansion td.post-row-expansion{border-top:1px solid #cbcbcb}.yui3-skin-sam .yui3-datatable .row-toggle a.row-expand-nub{padding:0 8px;height:14px;margin-left:2px;*display:inline-block}.yui3-skin-sam .yui3-datatable .row-closed a.row-expand-nub{background:url(http://yui.yahooapis.com/gallery-2012.12.19-21-23/gallery-datatable-row-expansion/assets/skins/sam/closed.png) no-repeat}.yui3-skin-sam .yui3-datatable .row-open a.row-expand-nub{background:url(http://yui.yahooapis.com/gallery-2012.12.19-21-23/gallery-datatable-row-expansion/assets/skins/sam/open.png) no-repeat}#yui3-css-stamp.skin-sam-gallery-datatable-row-expansion{display:none}
+.yui3-skin-sam .yui3-datatable tr.row-expansion td.post-row-expansion{border-top:1px solid #cbcbcb}.yui3-skin-sam .yui3-datatable .row-toggle a.row-expand-nub{padding:0 8px;height:14px;margin-left:2px;*display:inline-block}.yui3-skin-sam .yui3-datatable .row-closed a.row-expand-nub{background:url(http://yui.yahooapis.com/gallery-2014.03.06-14-38/gallery-datatable-row-expansion/assets/skins/sam/closed.png) no-repeat}.yui3-skin-sam .yui3-datatable .row-open a.row-expand-nub{background:url(http://yui.yahooapis.com/gallery-2014.03.06-14-38/gallery-datatable-row-expansion/assets/skins/sam/open.png) no-repeat}#yui3-css-stamp.skin-sam-gallery-datatable-row-expansion{display:none}
Oops, something went wrong.
@@ -130,6 +130,7 @@ function formatTwistdown(o)
o.td.on('click', function()
{
var open = plugin.open_rows[ row_id ] = ! plugin.open_rows[ row_id ];
+ o.td.replaceClass('row-(open|closed)', open ? 'row-open' : 'row-closed');
if (open)
{
@@ -369,7 +370,7 @@ Y.namespace("Plugin");
Y.Plugin.DataTableRowExpansion = RowExpansion;
-}, 'gallery-2012.12.19-21-23', {
+}, 'gallery-2014.03.06-14-38', {
"skinnable": "true",
"requires": [
"datatable",
@@ -1 +1 @@
-YUI.add("gallery-datatable-row-expansion",function(e,t){"use strict";function n(e){n.superclass.constructor.call(this,e)}function r(t){var r=this.rowexpander,i="";for(var s=0;s<=r.col_count.pre;s++)i+='<td class="yui3-datatable-cell pre-row-expansion">&nbsp;</td>';var o=r.get("template");if(e.Lang.isFunction(o))var u=o.call(this,t.data);else var u=e.Lang.sub(o,t.data);var a=t.cell.ancestor(),f=e.Lang.sub('<tr class="{c}">{pre}<td colspan="{post}" class="yui3-datatable-cell post-row-expansion">{tmpl}</td></tr>',{c:a.get("className")+" "+n.row_class,pre:i,post:r.col_count.post,tmpl:u});a.insert(f,"after")}function i(e){var t=this.rowexpander,n=e.data[t.get("uniqueIdKey")],i=t.open_rows[n];e.td.addClass("row-toggle"),e.td.replaceClass("row-(open|closed)",i?"row-open":"row-closed"),e.td.on("click",function(){var i=t.open_rows[n]=!t.open_rows[n];i?r.call(this,e):e.cell.ancestor().next().remove()},this),e.cell.set("innerHTML",'<a class="row-expand-nub" href="javascript:void(0);"></a>'),i&&r.call(this,e)}function s(){function t(r,s){return s.key==n.column_key?(s.nodeFormatter=i,r.found=!0):s.children?r=e.reduce(s.children,r,t):r[r.found?"post":"pre"]++,r}this.col_count=e.reduce(this.get("host").get("columns"),{pre:0,post:0,found:!1},t)}function u(t,r){var i=this.tbodyNode,s,u;if(t&&i){if(e.Lang.isString(r)){if(!o[r])throw Error("unknown shift in getCell: "+r);r=o[r]}if(e.Lang.isArray(t))s=i.get("children").item(0),u=s&&s.get("children").item(t[1]),r?r[0]+=t[0]:r=[t[0],0];else if(t._node){u=t.ancestor("."+this.getClassName("cell"),!0);if(u.ancestor("tr."+n.row_class))throw Error("getCell cannot be called with an element from an expansion row")}if(u&&r){var a=i.get("firstChild.rowIndex");if(e.Lang.isArray(r)){s=u.ancestor();var f=Math.sign(r[0]);if(f!==0){var l=i.get("children"),c=s.get("rowIndex")-a,h=Math.abs(r[0]);for(var p=0;p<h&&s;p++)c+=f,s=l.item(c),s&&s.hasClass(n.row_class)&&(c+=f,s=l.item(c))}c=u.get("cellIndex")+r[1],u=s&&s.get("children").item(c)}}}return u||null}function a(t){var n=this.tbodyNode,r=null;return n&&(t&&(t=this._idMap[t.get?t.get("clientId"):t]||t),r=e.one(e.Lang.isNumber(t)?this.getCell([t,0]).ancestor():"#"+t)),r}function f(){var t=this.get("host").view;if(t instanceof e.DataTable.TableView&&t.body instanceof e.DataTable.BodyView){var n=t.body;this.orig_getCell=n.getCell,this.orig_getRow=n.getRow,n.getCell=u,n.getRow=a}}function l(){var e=this.get("host").view;e.body&&this.orig_getCell&&(e.body.getCell=this.orig_getCell),e.body&&this.orig_getRow&&(e.body.getRow=this.orig_getRow)}n.NAME="DataTableRowExpansionPlugin",n.NS="rowexpander",n.ATTRS={template:{value:"",validator:function(t){return e.Lang.isString(t)||e.Lang.isFunction(t)}},uniqueIdKey:{value:"",validator:e.Lang.isString}},n.column_key="row-expander",n.row_class="row-expansion";var o={above:[-1,0],below:[1,0],next:[0,1],prev:[0,-1],previous:[0,-1]};e.extend(n,e.Plugin.Base,{initializer:function(e){this.open_rows={},this.on("uniqueIdKeyChange",function(){this.open_rows={}}),s.call(this),this.afterHostEvent("columnsChange",s),this.afterHostEvent("table:renderTable",f)},destructor:function(){l.call(this)}}),e.namespace("Plugin"),e.Plugin.DataTableRowExpansion=n},"gallery-2012.12.19-21-23",{skinnable:"true",requires:["datatable","plugin","gallery-funcprog","gallery-node-optimizations","gallery-math"]});
+YUI.add("gallery-datatable-row-expansion",function(e,t){"use strict";function n(e){n.superclass.constructor.call(this,e)}function r(t){var r=this.rowexpander,i="";for(var s=0;s<=r.col_count.pre;s++)i+='<td class="yui3-datatable-cell pre-row-expansion">&nbsp;</td>';var o=r.get("template");if(e.Lang.isFunction(o))var u=o.call(this,t.data);else var u=e.Lang.sub(o,t.data);var a=t.cell.ancestor(),f=e.Lang.sub('<tr class="{c}">{pre}<td colspan="{post}" class="yui3-datatable-cell post-row-expansion">{tmpl}</td></tr>',{c:a.get("className")+" "+n.row_class,pre:i,post:r.col_count.post,tmpl:u});a.insert(f,"after")}function i(e){var t=this.rowexpander,n=e.data[t.get("uniqueIdKey")],i=t.open_rows[n];e.td.addClass("row-toggle"),e.td.replaceClass("row-(open|closed)",i?"row-open":"row-closed"),e.td.on("click",function(){var i=t.open_rows[n]=!t.open_rows[n];e.td.replaceClass("row-(open|closed)",i?"row-open":"row-closed"),i?r.call(this,e):e.cell.ancestor().next().remove()},this),e.cell.set("innerHTML",'<a class="row-expand-nub" href="javascript:void(0);"></a>'),i&&r.call(this,e)}function s(){function t(r,s){return s.key==n.column_key?(s.nodeFormatter=i,r.found=!0):s.children?r=e.reduce(s.children,r,t):r[r.found?"post":"pre"]++,r}this.col_count=e.reduce(this.get("host").get("columns"),{pre:0,post:0,found:!1},t)}function u(t,r){var i=this.tbodyNode,s,u;if(t&&i){if(e.Lang.isString(r)){if(!o[r])throw Error("unknown shift in getCell: "+r);r=o[r]}if(e.Lang.isArray(t))s=i.get("children").item(0),u=s&&s.get("children").item(t[1]),r?r[0]+=t[0]:r=[t[0],0];else if(t._node){u=t.ancestor("."+this.getClassName("cell"),!0);if(u.ancestor("tr."+n.row_class))throw Error("getCell cannot be called with an element from an expansion row")}if(u&&r){var a=i.get("firstChild.rowIndex");if(e.Lang.isArray(r)){s=u.ancestor();var f=Math.sign(r[0]);if(f!==0){var l=i.get("children"),c=s.get("rowIndex")-a,h=Math.abs(r[0]);for(var p=0;p<h&&s;p++)c+=f,s=l.item(c),s&&s.hasClass(n.row_class)&&(c+=f,s=l.item(c))}c=u.get("cellIndex")+r[1],u=s&&s.get("children").item(c)}}}return u||null}function a(t){var n=this.tbodyNode,r=null;return n&&(t&&(t=this._idMap[t.get?t.get("clientId"):t]||t),r=e.one(e.Lang.isNumber(t)?this.getCell([t,0]).ancestor():"#"+t)),r}function f(){var t=this.get("host").view;if(t instanceof e.DataTable.TableView&&t.body instanceof e.DataTable.BodyView){var n=t.body;this.orig_getCell=n.getCell,this.orig_getRow=n.getRow,n.getCell=u,n.getRow=a}}function l(){var e=this.get("host").view;e.body&&this.orig_getCell&&(e.body.getCell=this.orig_getCell),e.body&&this.orig_getRow&&(e.body.getRow=this.orig_getRow)}n.NAME="DataTableRowExpansionPlugin",n.NS="rowexpander",n.ATTRS={template:{value:"",validator:function(t){return e.Lang.isString(t)||e.Lang.isFunction(t)}},uniqueIdKey:{value:"",validator:e.Lang.isString}},n.column_key="row-expander",n.row_class="row-expansion";var o={above:[-1,0],below:[1,0],next:[0,1],prev:[0,-1],previous:[0,-1]};e.extend(n,e.Plugin.Base,{initializer:function(e){this.open_rows={},this.on("uniqueIdKeyChange",function(){this.open_rows={}}),s.call(this),this.afterHostEvent("columnsChange",s),this.afterHostEvent("table:renderTable",f)},destructor:function(){l.call(this)}}),e.namespace("Plugin"),e.Plugin.DataTableRowExpansion=n},"gallery-2014.03.06-14-38",{skinnable:"true",requires:["datatable","plugin","gallery-funcprog","gallery-node-optimizations","gallery-math"]});
@@ -130,6 +130,7 @@ function formatTwistdown(o)
o.td.on('click', function()
{
var open = plugin.open_rows[ row_id ] = ! plugin.open_rows[ row_id ];
+ o.td.replaceClass('row-(open|closed)', open ? 'row-open' : 'row-closed');
if (open)
{
@@ -369,7 +370,7 @@ Y.namespace("Plugin");
Y.Plugin.DataTableRowExpansion = RowExpansion;
-}, 'gallery-2012.12.19-21-23', {
+}, 'gallery-2014.03.06-14-38', {
"skinnable": "true",
"requires": [
"datatable",
@@ -128,6 +128,7 @@ function formatTwistdown(o)
o.td.on('click', function()
{
var open = plugin.open_rows[ row_id ] = ! plugin.open_rows[ row_id ];
+ o.td.replaceClass('row-(open|closed)', open ? 'row-open' : 'row-closed');
if (open)
{
@@ -0,0 +1,3 @@
+shifter [err] /src/gallery-datatable-row-expansion/js/row-expansion.js contains 44 lint errors
+shifter [err] /assets/skins/sam/gallery-datatable-row-expansion-skin.css contains 3 lint errors
+Please install the phantomjs binary in your path!
@@ -1,20 +1,128 @@
-yogi [info] using yogi@0.0.55 on node@0.8.15
+yogi [info] using yogi@0.1.11 on node@0.10.26
yogi [info] using module: gallery-datatable-row-expansion
+yogi [info] running with shifter
+shifter [info] racing to find the closest .shifter.json file
+shifter [info] revving up
+shifter [info] looking for build.json file
+shifter [info] found build.json file, shifting
+shifter [info] putting the hammer down, let's build this thing!
+shifter [warn] down shifting, can't find a meta directory
+shifter [info] putting the hammer down
+shifter [info] shifting into gear for gallery-datatable-row-expansion
+ #1: Trailing whitespace.
+ * // line 13, pos 3
+ #2: Possible strict violation.
+ var plugin = this.rowexpander; // line 87, pos 18
+ #3: Too many var statements.
+ var pre_cells = ''; // line 89, pos 9
+ #4: Too many var statements.
+ for (var i=0; i<=plugin.col_count.pre; i++) // line 90, pos 14
+ #5: Too many var statements.
+ var tmpl = plugin.get('template'); // line 95, pos 9
+ #6: Too many var statements.
+ var s = tmpl.call(this, o.data); // line 98, pos 13
+ #7: Possible strict violation.
+ var s = tmpl.call(this, o.data); // line 98, pos 27
+ #8: Too many var statements.
+ var s = Y.Lang.sub(tmpl, o.data); // line 102, pos 13
+ #9: 's' is already defined.
+ var s = Y.Lang.sub(tmpl, o.data); // line 102, pos 15
+ #10: Too many var statements.
+ var row = o.cell.ancestor(); // line 105, pos 9
+ #11: Too many var statements.
+ var extra_row = Y.Lang.sub( // line 106, pos 9
+ #12: 's' used out of scope.
+ tmpl: s // line 115, pos 19
+ #13: Possible strict violation.
+ var plugin = this.rowexpander, // line 123, pos 18
+ #14: Possible strict violation.
+ this); // line 144, pos 5
+ #15: Possible strict violation.
+ insertRow.call(this, o); // line 150, pos 24
+ #16: Expected '===' and instead saw '=='.
+ if (col.key == RowExpansion.column_key) // line 158, pos 21
+ #17: Possible strict violation.
+ this.col_count = Y.reduce( // line 174, pos 5
+ #18: Possible strict violation.
+ this.get('host').get('columns'), // line 175, pos 9
+ #19: Possible strict violation.
+ var tbody = this.tbodyNode, // line 217, pos 17
+ #20: Missing 'new' prefix when invoking a constructor.
+ throw Error('unknown shift in getCell: ' + shift); // line 230, pos 23
+ #21: Possible strict violation.
+ cell = seed.ancestor('.' + this.getClassName('cell'), true); // line 249, pos 40
+ #22: Missing 'new' prefix when invoking a constructor.
+ throw Error('getCell cannot be called with an element from an expansion row'); // line 252, pos 23
+ #23: Too many var statements.
+ var firstRowIndex = tbody.get('firstChild.rowIndex'); // line 258, pos 17
+ #24: Too many var statements.
+ var delta = Math.sign(shift[0]); // line 262, pos 21
+ #25: Too many var statements.
+ var rows = tbody.get('children'); // line 265, pos 25
+ #26: Too many var statements.
+ var index = row.get('rowIndex') - firstRowIndex; // line 266, pos 25
+ #27: Too many var statements.
+ var count = Math.abs(shift[0]); // line 267, pos 25
+ #28: Too many var statements.
+ for (var i=0; i<count && row; i++) // line 268, pos 30
+ #29: 'index' used out of scope.
+ index = cell.get('cellIndex') + shift[1]; // line 280, pos 17
+ #30: 'index' used out of scope.
+ cell = row && row.get('children').item(index); // line 281, pos 57
+ #31: Possible strict violation.
+ var tbody = this.tbodyNode, // line 301, pos 17
+ #32: Possible strict violation.
+ id = this._idMap[id.get ? id.get('clientId') : id] || id; // line 308, pos 18
+ #33: Possible strict violation.
+ row = Y.one(Y.Lang.isNumber(id) ? this.getCell([id,0]).ancestor() : '#' + id); // line 311, pos 43
+ #34: Possible strict violation.
+ var view = this.get('host').view; // line 319, pos 16
+ #35: Too many var statements.
+ var body = view.body; // line 323, pos 13
+ #36: Possible strict violation.
+ this.orig_getCell = body.getCell; // line 325, pos 9
+ #37: Possible strict violation.
+ this.orig_getRow = body.getRow; // line 326, pos 9
+ #38: Possible strict violation.
+ var view = this.get('host').view; // line 335, pos 16
+ #39: Possible strict violation.
+ if (view.body && this.orig_getCell) // line 336, pos 22
+ #40: Possible strict violation.
+ view.body.getCell = this.orig_getCell; // line 338, pos 29
+ #41: Possible strict violation.
+ if (view.body && this.orig_getRow) // line 341, pos 22
+ #42: Possible strict violation.
+ view.body.getRow = this.orig_getRow; // line 343, pos 28
+ #43: 's' is defined but never used.
+ var s = Y.Lang.sub(tmpl, o.data); // line 102, pos 14
+ #44: 'config' is defined but never used.
+ initializer: function(config) // line 349, pos 33
+shifter [queu] file has changed, continuing build
+shifter [queu] writing RAW file
+shifter [queu] compressing gallery-datatable-row-expansion/gallery-datatable-row-expansion.js with UglifyJS
+shifter [queu] writing -min file
+shifter [info] shifting for coverage
+shifter [info] shifting skin for gallery-datatable-row-expansion
+shifter [queu] coverage file read, starting coverage for: gallery-datatable-row-expansion/gallery-datatable-row-expansion.js
+shifter [info] istanbul providing coverage
+shifter [queu] instrumenting with istanbul
+shifter [queu] writing coverage file to gallery-datatable-row-expansion/gallery-datatable-row-expansion-coverage.js
+shifter [queu] copying assets to skin for sam
+ #1: [warning] Element (tr.row-expansion) is overqualified, just use .row-expansion without element name.
+ /* nothing to see here */.yui3-skin-sam .yui3-datatable tr.row-expansion td.post-row-expansion // line 1, pos 57
+ #2: [warning] Element (td.post-row-expansion) is overqualified, just use .post-row-expansion without element name.
+ /* nothing to see here */.yui3-skin-sam .yui3-datatable tr.row-expansion td.post-row-expansion // line 1, pos 74
+ #3: [warning] Property with star prefix found.
+ *display:inline-block; // line 11, pos 2
+shifter [queu] writing skin file with core wrapper
+shifter [queu] writing skin file without core wrapper
+shifter [info] done racing, the gears are toast
+shifter [info] finished in 0.367 seconds, pretty fast huh?
+yogi [info] build complete
+yogi [info] testing module now
yogi [info] prepping grover tests
yogi [info] adding tests route
-yogi [info] listening on: http://127.0.0.1:5000
+yogi [info] launching xdr server on port 5003
+yogi [info] listening on: http://127.0.0.1:5002
yogi [info] turning on coverage support in grover
-Starting Grover on 1 files with PhantomJS@1.7.0
- Running 15 concurrent tests at a time.
- Using a 120 second timeout per test.
-✔ [gallery-datatable-row-expansion]: Passed: 0 Failed: 0 Total: 0 (ignored 0) (0.001 seconds)
-Writing files in JSON format to: /src/gallery-datatable-row-expansion/logs/tests.json
-┏━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━┓
-┃ path ┃ lines ┃ % ┃ functions ┃ % ┃
-┣━━━━━━━━━╋━━━━━━━━━╋━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━┫
-┃ total ┃ 0/0 ┃ NaN% ┃ 0/0 ┃ NaN% ┃
-┗━━━━━━━━━┻━━━━━━━━━┻━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━┛
-----------------------------------------------------------------
-✔ [Total]: Passed: 0 Failed: 0 Total: 0 (ignored 0) (0.001 seconds)
- [Grover Execution Timer] 1.275 seconds
-yogi [info] grover tests complete
+yogi [bail] grover returned a failure
@@ -0,0 +1,4 @@
+YUI.add('gallery-datatable-row-expansion-tests', function(Y) {
+"use strict";
+
+}, '@VERSION@', {requires:['gallery-datatable-row-expansion','test']});
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html>
<head>
-<script src="http://yui.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
-<script type="text/javascript" src="assets/gallery-datatable-row-expansion-tests.js"></script>
+<script src="/build/yui/yui-min.js"></script>
+<script type="text/javascript" src="assets/tests.js"></script>
<script type="text/javascript" src="../../../../build/gallery-datatable-row-expansion/gallery-datatable-row-expansion.js"></script>
</head>
@@ -11,6 +11,7 @@
<script type="text/javascript">
YUI({
+ coverage:["gallery-datatable-row-expansion"],
filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw'
}).use("test-console", "gallery-datatable-row-expansion-tests", function(Y) {

0 comments on commit 9469dbf

Please sign in to comment.