text: if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
  if (!__coverage__['build/aui-datatable-highlight/aui-datatable-highlight.js']) {
     __coverage__['build/aui-datatable-highlight/aui-datatable-highlight.js'] = {"path":"build/aui-datatable-highlight/aui-datatable-highlight.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0,0],"19":[0,0],"20":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":54}}},"2":{"name":"(anonymous_2)","line":15,"loc":{"start":{"line":15,"column":27},"end":{"line":15,"column":41}}},"3":{"name":"(anonymous_3)","line":61,"loc":{"start":{"line":61,"column":21},"end":{"line":61,"column":32}}},"4":{"name":"(anonymous_4)","line":86,"loc":{"start":{"line":86,"column":15},"end":{"line":86,"column":26}}},"5":{"name":"(anonymous_5)","line":105,"loc":{"start":{"line":105,"column":25},"end":{"line":105,"column":36}}},"6":{"name":"(anonymous_6)","line":132,"loc":{"start":{"line":132,"column":28},"end":{"line":132,"column":39}}},"7":{"name":"(anonymous_7)","line":158,"loc":{"start":{"line":158,"column":33},"end":{"line":158,"column":44}}},"8":{"name":"(anonymous_8)","line":195,"loc":{"start":{"line":195,"column":20},"end":{"line":195,"column":31}}},"9":{"name":"(anonymous_9)","line":206,"loc":{"start":{"line":206,"column":26},"end":{"line":206,"column":37}}},"10":{"name":"(anonymous_10)","line":217,"loc":{"start":{"line":217,"column":31},"end":{"line":217,"column":47}}},"11":{"name":"(anonymous_11)","line":236,"loc":{"start":{"line":236,"column":36},"end":{"line":236,"column":51}}},"12":{"name":"(anonymous_12)","line":248,"loc":{"start":{"line":248,"column":28},"end":{"line":248,"column":39}}},"13":{"name":"(anonymous_13)","line":275,"loc":{"start":{"line":275,"column":22},"end":{"line":275,"column":65}}},"14":{"name":"(anonymous_14)","line":310,"loc":{"start":{"line":310,"column":23},"end":{"line":310,"column":43}}},"15":{"name":"(anonymous_15)","line":327,"loc":{"start":{"line":327,"column":23},"end":{"line":327,"column":34}}},"16":{"name":"(anonymous_16)","line":340,"loc":{"start":{"line":340,"column":26},"end":{"line":340,"column":37}}},"17":{"name":"(anonymous_17)","line":343,"loc":{"start":{"line":343,"column":42},"end":{"line":343,"column":57}}},"18":{"name":"(anonymous_18)","line":358,"loc":{"start":{"line":358,"column":23},"end":{"line":358,"column":37}}},"19":{"name":"(anonymous_19)","line":409,"loc":{"start":{"line":409,"column":24},"end":{"line":409,"column":38}}},"20":{"name":"(anonymous_20)","line":431,"loc":{"start":{"line":431,"column":24},"end":{"line":431,"column":38}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":483,"column":74}},"2":{"start":{"line":10,"column":0},"end":{"line":31,"column":6}},"3":{"start":{"line":16,"column":8},"end":{"line":17,"column":16}},"4":{"start":{"line":19,"column":8},"end":{"line":24,"column":9}},"5":{"start":{"line":20,"column":12},"end":{"line":20,"column":65}},"6":{"start":{"line":22,"column":13},"end":{"line":24,"column":9}},"7":{"start":{"line":23,"column":12},"end":{"line":23,"column":31}},"8":{"start":{"line":26,"column":8},"end":{"line":28,"column":9}},"9":{"start":{"line":27,"column":12},"end":{"line":27,"column":29}},"10":{"start":{"line":30,"column":8},"end":{"line":30,"column":44}},"11":{"start":{"line":42,"column":0},"end":{"line":478,"column":2}},"12":{"start":{"line":62,"column":12},"end":{"line":63,"column":44}},"13":{"start":{"line":65,"column":12},"end":{"line":71,"column":14}},"14":{"start":{"line":73,"column":12},"end":{"line":73,"column":91}},"15":{"start":{"line":74,"column":12},"end":{"line":74,"column":65}},"16":{"start":{"line":75,"column":12},"end":{"line":75,"column":77}},"17":{"start":{"line":76,"column":12},"end":{"line":76,"column":87}},"18":{"start":{"line":78,"column":12},"end":{"line":78,"column":80}},"19":{"start":{"line":87,"column":12},"end":{"line":89,"column":52}},"20":{"start":{"line":91,"column":12},"end":{"line":93,"column":13}},"21":{"start":{"line":92,"column":16},"end":{"line":92,"column":68}},"22":{"start":{"line":95,"column":12},"end":{"line":95,"column":37}},"23":{"start":{"line":96,"column":12},"end":{"line":96,"column":40}},"24":{"start":{"line":106,"column":12},"end":{"line":110,"column":27}},"25":{"start":{"line":112,"column":12},"end":{"line":117,"column":13}},"26":{"start":{"line":113,"column":16},"end":{"line":113,"column":51}},"27":{"start":{"line":116,"column":16},"end":{"line":116,"column":52}},"28":{"start":{"line":119,"column":12},"end":{"line":121,"column":13}},"29":{"start":{"line":120,"column":16},"end":{"line":120,"column":50}},"30":{"start":{"line":123,"column":12},"end":{"line":123,"column":26}},"31":{"start":{"line":133,"column":12},"end":{"line":136,"column":59}},"32":{"start":{"line":138,"column":12},"end":{"line":147,"column":14}},"33":{"start":{"line":159,"column":12},"end":{"line":165,"column":56}},"34":{"start":{"line":167,"column":12},"end":{"line":169,"column":13}},"35":{"start":{"line":168,"column":16},"end":{"line":168,"column":23}},"36":{"start":{"line":171,"column":12},"end":{"line":171,"column":29}},"37":{"start":{"line":173,"column":12},"end":{"line":175,"column":13}},"38":{"start":{"line":174,"column":16},"end":{"line":174,"column":61}},"39":{"start":{"line":177,"column":12},"end":{"line":183,"column":13}},"40":{"start":{"line":178,"column":16},"end":{"line":180,"column":39}},"41":{"start":{"line":182,"column":16},"end":{"line":182,"column":54}},"42":{"start":{"line":185,"column":12},"end":{"line":185,"column":48}},"43":{"start":{"line":196,"column":12},"end":{"line":196,"column":25}},"44":{"start":{"line":207,"column":12},"end":{"line":207,"column":30}},"45":{"start":{"line":218,"column":12},"end":{"line":222,"column":68}},"46":{"start":{"line":224,"column":12},"end":{"line":226,"column":13}},"47":{"start":{"line":225,"column":16},"end":{"line":225,"column":23}},"48":{"start":{"line":228,"column":12},"end":{"line":228,"column":40}},"49":{"start":{"line":230,"column":12},"end":{"line":230,"column":57}},"50":{"start":{"line":232,"column":12},"end":{"line":239,"column":13}},"51":{"start":{"line":233,"column":16},"end":{"line":234,"column":82}},"52":{"start":{"line":236,"column":16},"end":{"line":238,"column":19}},"53":{"start":{"line":237,"column":20},"end":{"line":237,"column":66}},"54":{"start":{"line":249,"column":12},"end":{"line":253,"column":68}},"55":{"start":{"line":255,"column":12},"end":{"line":258,"column":13}},"56":{"start":{"line":256,"column":16},"end":{"line":257,"column":86}},"57":{"start":{"line":260,"column":12},"end":{"line":263,"column":13}},"58":{"start":{"line":261,"column":16},"end":{"line":262,"column":82}},"59":{"start":{"line":276,"column":12},"end":{"line":277,"column":44}},"60":{"start":{"line":279,"column":12},"end":{"line":279,"column":64}},"61":{"start":{"line":281,"column":12},"end":{"line":299,"column":13}},"62":{"start":{"line":282,"column":16},"end":{"line":286,"column":40}},"63":{"start":{"line":288,"column":16},"end":{"line":288,"column":61}},"64":{"start":{"line":290,"column":16},"end":{"line":290,"column":55}},"65":{"start":{"line":291,"column":16},"end":{"line":291,"column":73}},"66":{"start":{"line":292,"column":16},"end":{"line":292,"column":55}},"67":{"start":{"line":293,"column":16},"end":{"line":293,"column":73}},"68":{"start":{"line":295,"column":16},"end":{"line":295,"column":51}},"69":{"start":{"line":296,"column":16},"end":{"line":296,"column":51}},"70":{"start":{"line":297,"column":16},"end":{"line":297,"column":71}},"71":{"start":{"line":298,"column":16},"end":{"line":298,"column":69}},"72":{"start":{"line":311,"column":12},"end":{"line":312,"column":44}},"73":{"start":{"line":314,"column":12},"end":{"line":316,"column":13}},"74":{"start":{"line":315,"column":16},"end":{"line":315,"column":28}},"75":{"start":{"line":318,"column":12},"end":{"line":318,"column":55}},"76":{"start":{"line":328,"column":12},"end":{"line":328,"column":32}},"77":{"start":{"line":330,"column":12},"end":{"line":330,"column":49}},"78":{"start":{"line":331,"column":12},"end":{"line":331,"column":55}},"79":{"start":{"line":341,"column":12},"end":{"line":341,"column":32}},"80":{"start":{"line":343,"column":12},"end":{"line":347,"column":15}},"81":{"start":{"line":344,"column":16},"end":{"line":346,"column":17}},"82":{"start":{"line":345,"column":20},"end":{"line":345,"column":69}},"83":{"start":{"line":359,"column":12},"end":{"line":359,"column":71}},"84":{"start":{"line":410,"column":20},"end":{"line":411,"column":58}},"85":{"start":{"line":413,"column":20},"end":{"line":417,"column":21}},"86":{"start":{"line":414,"column":24},"end":{"line":414,"column":86}},"87":{"start":{"line":416,"column":24},"end":{"line":416,"column":63}},"88":{"start":{"line":419,"column":20},"end":{"line":419,"column":31}},"89":{"start":{"line":432,"column":20},"end":{"line":432,"column":40}},"90":{"start":{"line":434,"column":20},"end":{"line":436,"column":21}},"91":{"start":{"line":435,"column":24},"end":{"line":435,"column":96}},"92":{"start":{"line":438,"column":20},"end":{"line":438,"column":31}},"93":{"start":{"line":480,"column":0},"end":{"line":480,"column":62}}},"branchMap":{"1":{"line":19,"type":"if","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":8}},{"start":{"line":19,"column":8},"end":{"line":19,"column":8}}]},"2":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":13},"end":{"line":22,"column":13}},{"start":{"line":22,"column":13},"end":{"line":22,"column":13}}]},"3":{"line":91,"type":"if","locations":[{"start":{"line":91,"column":12},"end":{"line":91,"column":12}},{"start":{"line":91,"column":12},"end":{"line":91,"column":12}}]},"4":{"line":112,"type":"if","locations":[{"start":{"line":112,"column":12},"end":{"line":112,"column":12}},{"start":{"line":112,"column":12},"end":{"line":112,"column":12}}]},"5":{"line":119,"type":"if","locations":[{"start":{"line":119,"column":12},"end":{"line":119,"column":12}},{"start":{"line":119,"column":12},"end":{"line":119,"column":12}}]},"6":{"line":167,"type":"if","locations":[{"start":{"line":167,"column":12},"end":{"line":167,"column":12}},{"start":{"line":167,"column":12},"end":{"line":167,"column":12}}]},"7":{"line":173,"type":"if","locations":[{"start":{"line":173,"column":12},"end":{"line":173,"column":12}},{"start":{"line":173,"column":12},"end":{"line":173,"column":12}}]},"8":{"line":177,"type":"if","locations":[{"start":{"line":177,"column":12},"end":{"line":177,"column":12}},{"start":{"line":177,"column":12},"end":{"line":177,"column":12}}]},"9":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":12},"end":{"line":224,"column":12}},{"start":{"line":224,"column":12},"end":{"line":224,"column":12}}]},"10":{"line":232,"type":"if","locations":[{"start":{"line":232,"column":12},"end":{"line":232,"column":12}},{"start":{"line":232,"column":12},"end":{"line":232,"column":12}}]},"11":{"line":232,"type":"binary-expr","locations":[{"start":{"line":232,"column":16},"end":{"line":232,"column":30}},{"start":{"line":232,"column":34},"end":{"line":232,"column":39}},{"start":{"line":232,"column":44},"end":{"line":232,"column":60}}]},"12":{"line":255,"type":"if","locations":[{"start":{"line":255,"column":12},"end":{"line":255,"column":12}},{"start":{"line":255,"column":12},"end":{"line":255,"column":12}}]},"13":{"line":260,"type":"if","locations":[{"start":{"line":260,"column":12},"end":{"line":260,"column":12}},{"start":{"line":260,"column":12},"end":{"line":260,"column":12}}]},"14":{"line":281,"type":"if","locations":[{"start":{"line":281,"column":12},"end":{"line":281,"column":12}},{"start":{"line":281,"column":12},"end":{"line":281,"column":12}}]},"15":{"line":314,"type":"if","locations":[{"start":{"line":314,"column":12},"end":{"line":314,"column":12}},{"start":{"line":314,"column":12},"end":{"line":314,"column":12}}]},"16":{"line":314,"type":"binary-expr","locations":[{"start":{"line":314,"column":16},"end":{"line":314,"column":21}},{"start":{"line":314,"column":25},"end":{"line":314,"column":35}}]},"17":{"line":344,"type":"if","locations":[{"start":{"line":344,"column":16},"end":{"line":344,"column":16}},{"start":{"line":344,"column":16},"end":{"line":344,"column":16}}]},"18":{"line":359,"type":"binary-expr","locations":[{"start":{"line":359,"column":20},"end":{"line":359,"column":35}},{"start":{"line":359,"column":39},"end":{"line":359,"column":53}},{"start":{"line":359,"column":57},"end":{"line":359,"column":69}}]},"19":{"line":413,"type":"if","locations":[{"start":{"line":413,"column":20},"end":{"line":413,"column":20}},{"start":{"line":413,"column":20},"end":{"line":413,"column":20}}]},"20":{"line":434,"type":"if","locations":[{"start":{"line":434,"column":20},"end":{"line":434,"column":20}},{"start":{"line":434,"column":20},"end":{"line":434,"column":20}}]}},"code":["(function () { YUI.add('aui-datatable-highlight', function (A, NAME) {","","/**"," * The Datatable Component"," *"," * @module aui-datatable"," * @submodule aui-datatable-highlight"," */","","var Lang = A.Lang,","    isArray = Lang.isArray,","    isString = Lang.isString,","    isBoolean = Lang.isBoolean,","","    _setCSSClockwiseRule = function(val) {","        var i = 0,","            len;","","        if (isString(val)) {","            val = Lang.trim(val).replace(/\\s+/g, ' ').split(' ');","        }","        else if (!isArray(val)) {","            val = A.Array(val);","        }","","        for (len = 4 - val.length; i < len; i++) {","            val.push(val[i]);","        }","","        return A.Array.map(val, parseFloat);","    };","","/**"," * A base class for DataTableHighlight."," *"," * @class A.DataTableHighlight"," * @extends Plugin.Base"," * @param {Object} config Object literal specifying widget configuration"," * properties."," * @constructor"," */","var DataTableHighlight = A.Base.create(","    'datatable-highlight',","    A.Plugin.Base, [], {","        CLASS_NAMES: null,","","        TPL_FRAME: '<div class=\"{overlay}\">' + '<div class=\"{border}\"></div>' +","            '<div class=\"{border}\"></div>' + '<div class=\"{border}\"></div>' +","            '<div class=\"{border}\"></div>' + '</div>',","","        _lastActiveRow: null,","        _nodes: null,","","        /**","         * Construction logic executed during DataTableHighlight instantiation.","         * Lifecycle.","         *","         * @method initializer","         * @protected","         */","        initializer: function() {","            var instance = this,","                host = instance.get('host');","","            instance.CLASS_NAMES = {","                active: host.getClassName('active'),","                border: host.getClassName('highlight', 'border'),","                highlight: host.getClassName('highlight'),","                overlay: host.getClassName('highlight', 'overlay'),","                overlayActive: host.getClassName('highlight', 'overlay', 'active')","            };","","            instance.afterHostEvent('activeCoordChange', instance._afterActiveCoordChange);","            instance.afterHostEvent('blur', instance._afterBlur);","            instance.afterHostEvent('dataChange', instance._afterDataChange);","            instance.afterHostEvent('selectionChange', instance._afterSelectionChange);","","            A.on('windowresize', A.bind(instance._afterWindowResize, instance));","        },","","        /**","         * Removes visual highlights from the active cell.","         *","         * @method clear","         */","        clear: function() {","            var instance = this,","                host = instance.get('host'),","                activeCell = host.get('activeCell');","","            if (activeCell) {","                activeCell.removeClass(instance.CLASS_NAMES.active);","            }","","            instance._clearBorders();","            instance._clearHighlights();","        },","","        /**","         * Gets the active node's region.","         *","         * @method getActiveRegion","         * @return {Object} Active node's region.","         */","        getActiveRegion: function() {","            var instance = this,","                host = instance.get('host'),","                type = instance.get('type'),","                region = null,","                activeNode;","","            if (type === 'rows') {","                activeNode = host.get('activeRow');","            }","            else {","                activeNode = host.get('activeCell');","            }","","            if (activeNode) {","                region = activeNode.get('region');","            }","","            return region;","        },","","        /**","         * Gets the selection region.","         *","         * @method getSelectionRegion","         * @return {Object} Selection region.","         */","        getSelectionRegion: function() {","            var instance = this,","                nodes = instance._nodes,","                r1 = nodes[0].get('region'),","                r2 = nodes[nodes.length - 1].get('region');","","            return {","                0: r1.top,","                1: r1.left,","                bottom: r2.bottom,","                height: r2.bottom - r1.top,","                left: r1.left,","                right: r2.right,","                top: r1.top,","                width: r2.right - r1.left","            };","        },","","        /**","         * Fires after the `activeCoordChange` event. Changes the highlight to","         * a the selected table cell.","         *","         * @method _afterActiveCoordChange","         * @param {EventFacade} event","         * @protected","         */","        _afterActiveCoordChange: function() {","            var instance = this,","                host = instance.get('host'),","                activeBorderWidth = instance.get('activeBorderWidth'),","                overlayActiveNode = instance.get('overlayActiveNode'),","                classNames = instance.CLASS_NAMES,","                activeRow = host.get('activeRow'),","                lastActiveRow = instance._lastActiveRow;","","            if (!instance.get('type')) {","                return;","            }","","            instance.clear();","","            if (lastActiveRow) {","                lastActiveRow.removeClass(classNames.active);","            }","","            if (activeRow) {","                instance._alignBorder(","                    overlayActiveNode, instance.getActiveRegion(),","                    activeBorderWidth);","","                activeRow.addClass(classNames.active);","            }","","            instance._lastActiveRow = activeRow;","        },","","        /**","         * Fires after `blur` event. Clear highlight.","         *","         * @method _afterBlur","         * @param {EventFacade} event","         * @protected","         */","        _afterBlur: function() {","            this.clear();","        },","","        /**","         * Fires after `dataChange` event.","         *","         * @method _afterDataChange","         * @param {EventFacade} event","         * @protected","         */","        _afterDataChange: function() {","            this._afterBlur();","        },","","        /**","         * Fires after `selectionChange`.","         *","         * @method _afterSelectionChange","         * @param {EventFacade} event","         * @protected","         */","        _afterSelectionChange: function(event) {","            var instance = this,","                nodes,","                highlightRange = instance.get('highlightRange'),","                overlayNode = instance.get('overlayNode'),","                rangeBorderWidth = instance.get('rangeBorderWidth');","","            if (!instance.get('type')) {","                return;","            }","","            instance._clearHighlights();","","            nodes = instance._collectNodes(event.newVal);","","            if (highlightRange && nodes && (nodes.length > 1)) {","                instance._alignBorder(","                    overlayNode, instance.getSelectionRegion(), rangeBorderWidth);","","                A.Array.each(nodes, function(node) {","                    node.addClass(instance.CLASS_NAMES.highlight);","                });","            }","        },","","        /**","         * Fires after `windowresize`.","         *","         * @method _afterWindowResize","         * @protected","         */","        _afterWindowResize: function() {","            var instance = this,","                activeBorderWidth = instance.get('activeBorderWidth'),","                overlayActiveNode = instance.get('overlayActiveNode'),","                overlayNode = instance.get('overlayNode'),","                rangeBorderWidth = instance.get('rangeBorderWidth');","","            if (overlayActiveNode.inDoc()) {","                instance._alignBorder(","                    overlayActiveNode, instance.getActiveRegion(), activeBorderWidth);","            }","","            if (overlayNode.inDoc()) {","                instance._alignBorder(","                    overlayNode, instance.getSelectionRegion(), rangeBorderWidth);","            }","        },","","        /**","         * Align border.","         *","         * @method _alignBorder","         * @param overlayNode","         * @param region","         * @param borderWidth","         * @protected","         */","        _alignBorder: function(overlayNode, region, borderWidth) {","            var instance = this,","                host = instance.get('host');","","            host._tableNode.ancestor().appendChild(overlayNode);","","            if (region) {","                var borders = overlayNode.get('children'),","                    t = borders.item(0),","                    r = borders.item(1),","                    b = borders.item(2),","                    l = borders.item(3);","","                overlayNode.setXY([region.left, region.top]);","","                t.sizeTo(region.width, borderWidth[0]);","                l.sizeTo(borderWidth[3], region.height - borderWidth[2]);","                b.sizeTo(region.width, borderWidth[2]);","                r.sizeTo(borderWidth[1], region.height - borderWidth[2]);","","                t.setXY([region.left, region.top]);","                l.setXY([region.left, region.top]);","                b.setXY([region.left, region.bottom - borderWidth[2]]);","                r.setXY([region.right - borderWidth[1], region.top]);","            }","        },","","        /**","         * Collect nodes.","         *","         * @method _collectNodes","         * @param selection","         * @protected","         * @return {null|Boolean}","         */","        _collectNodes: function(selection) {","            var instance = this,","                type = instance.get('type');","","            if (!type || !selection) {","                return null;","            }","","            return (instance._nodes = selection[type]);","        },","","        /**","         * Clear borders.","         *","         * @method _clearBorders","         * @protected","         */","        _clearBorders: function() {","            var instance = this;","","            instance.get('overlayNode').remove();","            instance.get('overlayActiveNode').remove();","        },","","        /**","         * Clear highlights.","         *","         * @method _clearHighlights","         * @protected","         */","        _clearHighlights: function() {","            var instance = this;","","            A.Array.each(instance._nodes, function(node) {","                if (node) {","                    node.removeClass(instance.CLASS_NAMES.highlight);","                }","            });","        },","","        /**","         * Type validator.","         *","         * @method _validateType","         * @param {String} val","         * @protected","         * @return {Boolean}","         */","        _validateType: function(val) {","            return (val === 'cells' || val === 'rows' || val === null);","        }","    }, {","        /**","         * Static property provides a string to identify the namespace.","         *","         * @property NS","         * @type String","         * @static","         */","        NS: 'highlight',","","        /**","         * Static property provides a string to identify the class.","         *","         * @property NAME","         * @type String","         * @static","         */","        NAME: 'datatable-highlight',","","        /**","         * Static property used to define the default attribute","         * configuration for the `A.DataTableHighlight`.","         *","         * @property ATTRS","         * @type Object","         * @static","         */","        ATTRS: {","","            /**","             * Defines the border width of the active node.","             *","             * @attribute activeBorderWidth","             * @default 2","             * @type Number","             */","            activeBorderWidth: {","                setter: _setCSSClockwiseRule,","                value: 2","            },","","            /**","             * Defines the `Node` used to overlay the active node.","             *","             * @attribute overlayActiveNode","             * @default null","             */","            overlayActiveNode: {","                setter: function(val) {","                    var instance = this,","                        classNames = instance.CLASS_NAMES;","","                    if (!val) {","                        val = A.Node.create(Lang.sub(instance.TPL_FRAME, classNames));","","                        val.addClass(classNames.overlayActive);","                    }","","                    return val;","                },","                value: null","            },","","            /**","             * Defines the `Node` used to overlay the node.","             *","             * @attribute overlayNode","             * @default null","             */","            overlayNode: {","                setter: function(val) {","                    var instance = this;","","                    if (!val) {","                        val = A.Node.create(Lang.sub(instance.TPL_FRAME, instance.CLASS_NAMES));","                    }","","                    return val;","                },","                value: null","            },","","            /**","             * Determines if a range of elements are highlighted.","             *","             * @attribute highlightRange","             * @default true","             * @type Boolean","             */","            highlightRange: {","                validator: isBoolean,","                value: true","            },","","            /**","             * Defines the border width of the range selection.","             *","             * @attribute rangeBorderWidth","             * @default 1","             * @type Number","             */","            rangeBorderWidth: {","                setter: _setCSSClockwiseRule,","                value: 1","            },","","            /**","             * Defines the type of highlight (cells or rows).","             *","             * @attribute type","             */","            type: {","                validator: '_validateType',","                value: 'cells'","            }","        }","    }",");","","A.namespace('Plugin').DataTableHighlight = DataTableHighlight;","","","}, '3.0.0', {\"requires\": [\"aui-datatable-selection\"], \"skinnable\": true});","","}());"]};
  }
  var __cov_Ox0GkSc3xkVamRUEdHnWqQ = __coverage__['build/aui-datatable-highlight/aui-datatable-highlight.js'];
  __cov_Ox0GkSc3xkVamRUEdHnWqQ.s['1']++;YUI.add('aui-datatable-highlight',function(A,NAME){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['1']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['2']++;var Lang=A.Lang,isArray=Lang.isArray,isString=Lang.isString,isBoolean=Lang.isBoolean,_setCSSClockwiseRule=function(val){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['2']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['3']++;var i=0,len;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['4']++;if(isString(val)){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['1'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['5']++;val=Lang.trim(val).replace(/\s+/g,' ').split(' ');}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['1'][1]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['6']++;if(!isArray(val)){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['2'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['7']++;val=A.Array(val);}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['2'][1]++;}}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['8']++;for(len=4-val.length;i<len;i++){__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['9']++;val.push(val[i]);}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['10']++;return A.Array.map(val,parseFloat);};__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['11']++;var DataTableHighlight=A.Base.create('datatable-highlight',A.Plugin.Base,[],{CLASS_NAMES:null,TPL_FRAME:'<div class="{overlay}">'+'<div class="{border}"></div>'+'<div class="{border}"></div>'+'<div class="{border}"></div>'+'<div class="{border}"></div>'+'</div>',_lastActiveRow:null,_nodes:null,initializer:function(){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['3']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['12']++;var instance=this,host=instance.get('host');__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['13']++;instance.CLASS_NAMES={active:host.getClassName('active'),border:host.getClassName('highlight','border'),highlight:host.getClassName('highlight'),overlay:host.getClassName('highlight','overlay'),overlayActive:host.getClassName('highlight','overlay','active')};__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['14']++;instance.afterHostEvent('activeCoordChange',instance._afterActiveCoordChange);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['15']++;instance.afterHostEvent('blur',instance._afterBlur);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['16']++;instance.afterHostEvent('dataChange',instance._afterDataChange);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['17']++;instance.afterHostEvent('selectionChange',instance._afterSelectionChange);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['18']++;A.on('windowresize',A.bind(instance._afterWindowResize,instance));},clear:function(){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['4']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['19']++;var instance=this,host=instance.get('host'),activeCell=host.get('activeCell');__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['20']++;if(activeCell){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['3'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['21']++;activeCell.removeClass(instance.CLASS_NAMES.active);}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['3'][1]++;}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['22']++;instance._clearBorders();__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['23']++;instance._clearHighlights();},getActiveRegion:function(){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['5']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['24']++;var instance=this,host=instance.get('host'),type=instance.get('type'),region=null,activeNode;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['25']++;if(type==='rows'){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['4'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['26']++;activeNode=host.get('activeRow');}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['4'][1]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['27']++;activeNode=host.get('activeCell');}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['28']++;if(activeNode){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['5'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['29']++;region=activeNode.get('region');}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['5'][1]++;}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['30']++;return region;},getSelectionRegion:function(){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['6']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['31']++;var instance=this,nodes=instance._nodes,r1=nodes[0].get('region'),r2=nodes[nodes.length-1].get('region');__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['32']++;return{0:r1.top,1:r1.left,bottom:r2.bottom,height:r2.bottom-r1.top,left:r1.left,right:r2.right,top:r1.top,width:r2.right-r1.left};},_afterActiveCoordChange:function(){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['7']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['33']++;var instance=this,host=instance.get('host'),activeBorderWidth=instance.get('activeBorderWidth'),overlayActiveNode=instance.get('overlayActiveNode'),classNames=instance.CLASS_NAMES,activeRow=host.get('activeRow'),lastActiveRow=instance._lastActiveRow;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['34']++;if(!instance.get('type')){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['6'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['35']++;return;}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['6'][1]++;}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['36']++;instance.clear();__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['37']++;if(lastActiveRow){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['7'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['38']++;lastActiveRow.removeClass(classNames.active);}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['7'][1]++;}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['39']++;if(activeRow){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['8'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['40']++;instance._alignBorder(overlayActiveNode,instance.getActiveRegion(),activeBorderWidth);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['41']++;activeRow.addClass(classNames.active);}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['8'][1]++;}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['42']++;instance._lastActiveRow=activeRow;},_afterBlur:function(){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['8']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['43']++;this.clear();},_afterDataChange:function(){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['9']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['44']++;this._afterBlur();},_afterSelectionChange:function(event){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['10']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['45']++;var instance=this,nodes,highlightRange=instance.get('highlightRange'),overlayNode=instance.get('overlayNode'),rangeBorderWidth=instance.get('rangeBorderWidth');__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['46']++;if(!instance.get('type')){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['9'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['47']++;return;}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['9'][1]++;}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['48']++;instance._clearHighlights();__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['49']++;nodes=instance._collectNodes(event.newVal);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['50']++;if((__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['11'][0]++,highlightRange)&&(__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['11'][1]++,nodes)&&(__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['11'][2]++,nodes.length>1)){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['10'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['51']++;instance._alignBorder(overlayNode,instance.getSelectionRegion(),rangeBorderWidth);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['52']++;A.Array.each(nodes,function(node){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['11']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['53']++;node.addClass(instance.CLASS_NAMES.highlight);});}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['10'][1]++;}},_afterWindowResize:function(){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['12']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['54']++;var instance=this,activeBorderWidth=instance.get('activeBorderWidth'),overlayActiveNode=instance.get('overlayActiveNode'),overlayNode=instance.get('overlayNode'),rangeBorderWidth=instance.get('rangeBorderWidth');__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['55']++;if(overlayActiveNode.inDoc()){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['12'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['56']++;instance._alignBorder(overlayActiveNode,instance.getActiveRegion(),activeBorderWidth);}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['12'][1]++;}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['57']++;if(overlayNode.inDoc()){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['13'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['58']++;instance._alignBorder(overlayNode,instance.getSelectionRegion(),rangeBorderWidth);}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['13'][1]++;}},_alignBorder:function(overlayNode,region,borderWidth){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['13']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['59']++;var instance=this,host=instance.get('host');__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['60']++;host._tableNode.ancestor().appendChild(overlayNode);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['61']++;if(region){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['14'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['62']++;var borders=overlayNode.get('children'),t=borders.item(0),r=borders.item(1),b=borders.item(2),l=borders.item(3);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['63']++;overlayNode.setXY([region.left,region.top]);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['64']++;t.sizeTo(region.width,borderWidth[0]);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['65']++;l.sizeTo(borderWidth[3],region.height-borderWidth[2]);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['66']++;b.sizeTo(region.width,borderWidth[2]);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['67']++;r.sizeTo(borderWidth[1],region.height-borderWidth[2]);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['68']++;t.setXY([region.left,region.top]);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['69']++;l.setXY([region.left,region.top]);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['70']++;b.setXY([region.left,region.bottom-borderWidth[2]]);__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['71']++;r.setXY([region.right-borderWidth[1],region.top]);}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['14'][1]++;}},_collectNodes:function(selection){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['14']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['72']++;var instance=this,type=instance.get('type');__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['73']++;if((__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['16'][0]++,!type)||(__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['16'][1]++,!selection)){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['15'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['74']++;return null;}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['15'][1]++;}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['75']++;return instance._nodes=selection[type];},_clearBorders:function(){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['15']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['76']++;var instance=this;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['77']++;instance.get('overlayNode').remove();__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['78']++;instance.get('overlayActiveNode').remove();},_clearHighlights:function(){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['16']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['79']++;var instance=this;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['80']++;A.Array.each(instance._nodes,function(node){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['17']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['81']++;if(node){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['17'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['82']++;node.removeClass(instance.CLASS_NAMES.highlight);}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['17'][1]++;}});},_validateType:function(val){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['18']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['83']++;return(__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['18'][0]++,val==='cells')||(__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['18'][1]++,val==='rows')||(__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['18'][2]++,val===null);}},{NS:'highlight',NAME:'datatable-highlight',ATTRS:{activeBorderWidth:{setter:_setCSSClockwiseRule,value:2},overlayActiveNode:{setter:function(val){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['19']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['84']++;var instance=this,classNames=instance.CLASS_NAMES;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['85']++;if(!val){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['19'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['86']++;val=A.Node.create(Lang.sub(instance.TPL_FRAME,classNames));__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['87']++;val.addClass(classNames.overlayActive);}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['19'][1]++;}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['88']++;return val;},value:null},overlayNode:{setter:function(val){__cov_Ox0GkSc3xkVamRUEdHnWqQ.f['20']++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['89']++;var instance=this;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['90']++;if(!val){__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['20'][0]++;__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['91']++;val=A.Node.create(Lang.sub(instance.TPL_FRAME,instance.CLASS_NAMES));}else{__cov_Ox0GkSc3xkVamRUEdHnWqQ.b['20'][1]++;}__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['92']++;return val;},value:null},highlightRange:{validator:isBoolean,value:true},rangeBorderWidth:{setter:_setCSSClockwiseRule,value:1},type:{validator:'_validateType',value:'cells'}}});__cov_Ox0GkSc3xkVamRUEdHnWqQ.s['93']++;A.namespace('Plugin').DataTableHighlight=DataTableHighlight;},'3.0.0',{'requires':['aui-datatable-selection'],'skinnable':true});
  