~ubuntu-branches/ubuntu/utopic/moodle/utopic

« back to all changes in this revision

Viewing changes to lib/yuilib/3.13.0/calendarnavigator/calendarnavigator-coverage.js

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-05-12 16:10:38 UTC
  • mfrom: (36.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140512161038-puyqf65k4e0s8ytz
Tags: 2.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
YUI 3.13.0 (build 508226d)
 
3
Copyright 2013 Yahoo! Inc. All rights reserved.
 
4
Licensed under the BSD License.
 
5
http://yuilibrary.com/license/
 
6
*/
 
7
 
 
8
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
 
9
if (!__coverage__['build/calendarnavigator/calendarnavigator.js']) {
 
10
   __coverage__['build/calendarnavigator/calendarnavigator.js'] = {"path":"build/calendarnavigator/calendarnavigator.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},"b":{"1":[0,0],"2":[0,0,0,0],"3":[0,0],"4":[0,0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":48}}},"2":{"name":"CalendarNavigator","line":28,"loc":{"start":{"line":28,"column":0},"end":{"line":28,"column":29}}},"3":{"name":"(anonymous_3)","line":126,"loc":{"start":{"line":126,"column":18},"end":{"line":126,"column":29}}},"4":{"name":"(anonymous_4)","line":141,"loc":{"start":{"line":141,"column":17},"end":{"line":141,"column":28}}},"5":{"name":"(anonymous_5)","line":153,"loc":{"start":{"line":153,"column":23},"end":{"line":153,"column":37}}},"6":{"name":"(anonymous_6)","line":165,"loc":{"start":{"line":165,"column":22},"end":{"line":165,"column":36}}},"7":{"name":"(anonymous_7)","line":182,"loc":{"start":{"line":182,"column":17},"end":{"line":182,"column":31}}},"8":{"name":"(anonymous_8)","line":192,"loc":{"start":{"line":192,"column":26},"end":{"line":192,"column":38}}},"9":{"name":"(anonymous_9)","line":251,"loc":{"start":{"line":251,"column":26},"end":{"line":251,"column":38}}},"10":{"name":"(anonymous_10)","line":265,"loc":{"start":{"line":265,"column":26},"end":{"line":265,"column":38}}},"11":{"name":"(anonymous_11)","line":278,"loc":{"start":{"line":278,"column":30},"end":{"line":278,"column":41}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":301,"column":103}},"2":{"start":{"line":8,"column":0},"end":{"line":20,"column":34}},"3":{"start":{"line":28,"column":0},"end":{"line":30,"column":1}},"4":{"start":{"line":29,"column":4},"end":{"line":29,"column":68}},"5":{"start":{"line":41,"column":0},"end":{"line":41,"column":35}},"6":{"start":{"line":52,"column":0},"end":{"line":52,"column":51}},"7":{"start":{"line":63,"column":0},"end":{"line":75,"column":2}},"8":{"start":{"line":85,"column":0},"end":{"line":88,"column":2}},"9":{"start":{"line":97,"column":0},"end":{"line":100,"column":55}},"10":{"start":{"line":109,"column":0},"end":{"line":112,"column":55}},"11":{"start":{"line":115,"column":0},"end":{"line":296,"column":3}},"12":{"start":{"line":129,"column":8},"end":{"line":129,"column":28}},"13":{"start":{"line":130,"column":8},"end":{"line":130,"column":36}},"14":{"start":{"line":132,"column":8},"end":{"line":132,"column":71}},"15":{"start":{"line":154,"column":8},"end":{"line":154,"column":33}},"16":{"start":{"line":166,"column":8},"end":{"line":171,"column":9}},"17":{"start":{"line":167,"column":12},"end":{"line":168,"column":43}},"18":{"start":{"line":169,"column":12},"end":{"line":169,"column":85}},"19":{"start":{"line":170,"column":12},"end":{"line":170,"column":32}},"20":{"start":{"line":183,"column":8},"end":{"line":188,"column":9}},"21":{"start":{"line":184,"column":12},"end":{"line":185,"column":43}},"22":{"start":{"line":186,"column":12},"end":{"line":186,"column":82}},"23":{"start":{"line":187,"column":12},"end":{"line":187,"column":32}},"24":{"start":{"line":194,"column":8},"end":{"line":198,"column":69}},"25":{"start":{"line":200,"column":8},"end":{"line":217,"column":9}},"26":{"start":{"line":201,"column":12},"end":{"line":204,"column":13}},"27":{"start":{"line":202,"column":16},"end":{"line":202,"column":58}},"28":{"start":{"line":203,"column":16},"end":{"line":203,"column":57}},"29":{"start":{"line":206,"column":12},"end":{"line":208,"column":13}},"30":{"start":{"line":207,"column":16},"end":{"line":207,"column":99}},"31":{"start":{"line":211,"column":12},"end":{"line":213,"column":13}},"32":{"start":{"line":212,"column":12},"end":{"line":212,"column":125}},"33":{"start":{"line":214,"column":12},"end":{"line":216,"column":13}},"34":{"start":{"line":215,"column":14},"end":{"line":215,"column":101}},"35":{"start":{"line":219,"column":8},"end":{"line":236,"column":9}},"36":{"start":{"line":220,"column":12},"end":{"line":223,"column":13}},"37":{"start":{"line":221,"column":16},"end":{"line":221,"column":58}},"38":{"start":{"line":222,"column":16},"end":{"line":222,"column":57}},"39":{"start":{"line":225,"column":12},"end":{"line":227,"column":13}},"40":{"start":{"line":226,"column":16},"end":{"line":226,"column":99}},"41":{"start":{"line":230,"column":12},"end":{"line":232,"column":13}},"42":{"start":{"line":231,"column":12},"end":{"line":231,"column":120}},"43":{"start":{"line":233,"column":12},"end":{"line":235,"column":13}},"44":{"start":{"line":234,"column":14},"end":{"line":234,"column":101}},"45":{"start":{"line":238,"column":8},"end":{"line":238,"column":87}},"46":{"start":{"line":239,"column":8},"end":{"line":239,"column":87}},"47":{"start":{"line":252,"column":6},"end":{"line":253,"column":71}},"48":{"start":{"line":254,"column":6},"end":{"line":254,"column":79}},"49":{"start":{"line":256,"column":6},"end":{"line":256,"column":29}},"50":{"start":{"line":266,"column":6},"end":{"line":267,"column":71}},"51":{"start":{"line":268,"column":6},"end":{"line":268,"column":79}},"52":{"start":{"line":270,"column":6},"end":{"line":270,"column":29}},"53":{"start":{"line":279,"column":8},"end":{"line":280,"column":65}},"54":{"start":{"line":282,"column":8},"end":{"line":282,"column":86}},"55":{"start":{"line":283,"column":8},"end":{"line":283,"column":92}},"56":{"start":{"line":284,"column":8},"end":{"line":284,"column":88}},"57":{"start":{"line":286,"column":8},"end":{"line":286,"column":62}},"58":{"start":{"line":287,"column":8},"end":{"line":287,"column":62}},"59":{"start":{"line":289,"column":8},"end":{"line":289,"column":35}},"60":{"start":{"line":291,"column":8},"end":{"line":291,"column":109}},"61":{"start":{"line":293,"column":8},"end":{"line":293,"column":53}},"62":{"start":{"line":294,"column":8},"end":{"line":294,"column":52}},"63":{"start":{"line":298,"column":0},"end":{"line":298,"column":60}}},"branchMap":{"1":{"line":166,"type":"if","locations":[{"start":{"line":166,"column":8},"end":{"line":166,"column":8}},{"start":{"line":166,"column":8},"end":{"line":166,"column":8}}]},"2":{"line":166,"type":"binary-expr","locations":[{"start":{"line":166,"column":14},"end":{"line":166,"column":33}},{"start":{"line":166,"column":39},"end":{"line":166,"column":60}},{"start":{"line":166,"column":65},"end":{"line":166,"column":82}},{"start":{"line":166,"column":86},"end":{"line":166,"column":103}}]},"3":{"line":183,"type":"if","locations":[{"start":{"line":183,"column":8},"end":{"line":183,"column":8}},{"start":{"line":183,"column":8},"end":{"line":183,"column":8}}]},"4":{"line":183,"type":"binary-expr","locations":[{"start":{"line":183,"column":14},"end":{"line":183,"column":33}},{"start":{"line":183,"column":39},"end":{"line":183,"column":60}},{"start":{"line":183,"column":65},"end":{"line":183,"column":82}},{"start":{"line":183,"column":86},"end":{"line":183,"column":103}}]},"5":{"line":200,"type":"if","locations":[{"start":{"line":200,"column":8},"end":{"line":200,"column":8}},{"start":{"line":200,"column":8},"end":{"line":200,"column":8}}]},"6":{"line":201,"type":"if","locations":[{"start":{"line":201,"column":12},"end":{"line":201,"column":12}},{"start":{"line":201,"column":12},"end":{"line":201,"column":12}}]},"7":{"line":206,"type":"if","locations":[{"start":{"line":206,"column":12},"end":{"line":206,"column":12}},{"start":{"line":206,"column":12},"end":{"line":206,"column":12}}]},"8":{"line":211,"type":"if","locations":[{"start":{"line":211,"column":12},"end":{"line":211,"column":12}},{"start":{"line":211,"column":12},"end":{"line":211,"column":12}}]},"9":{"line":214,"type":"if","locations":[{"start":{"line":214,"column":12},"end":{"line":214,"column":12}},{"start":{"line":214,"column":12},"end":{"line":214,"column":12}}]},"10":{"line":219,"type":"if","locations":[{"start":{"line":219,"column":8},"end":{"line":219,"column":8}},{"start":{"line":219,"column":8},"end":{"line":219,"column":8}}]},"11":{"line":220,"type":"if","locations":[{"start":{"line":220,"column":12},"end":{"line":220,"column":12}},{"start":{"line":220,"column":12},"end":{"line":220,"column":12}}]},"12":{"line":225,"type":"if","locations":[{"start":{"line":225,"column":12},"end":{"line":225,"column":12}},{"start":{"line":225,"column":12},"end":{"line":225,"column":12}}]},"13":{"line":230,"type":"if","locations":[{"start":{"line":230,"column":12},"end":{"line":230,"column":12}},{"start":{"line":230,"column":12},"end":{"line":230,"column":12}}]},"14":{"line":233,"type":"if","locations":[{"start":{"line":233,"column":12},"end":{"line":233,"column":12}},{"start":{"line":233,"column":12},"end":{"line":233,"column":12}}]}},"code":["(function () { YUI.add('calendarnavigator', function (Y, NAME) {","","/**"," * Provides a plugin which adds navigation controls to Calendar."," *"," * @module calendarnavigator"," */","var CONTENT_BOX = \"contentBox\",","    HOST        = \"host\",","    getCN       = Y.ClassNameManager.getClassName,","    substitute  = Y.Lang.sub,","    node        = Y.Node,","    create      = node.create,","    CALENDAR    = 'calendar',","    CALENDARNAV = 'calendarnav',","    CAL_HD      = getCN(CALENDAR, 'header'),","    CAL_PREV_M  = getCN(CALENDARNAV, 'prevmonth'),","    CAL_NEXT_M  = getCN(CALENDARNAV, 'nextmonth'),","    CAL_DIS_M   = getCN(CALENDARNAV, 'month-disabled'),","    ydate       = Y.DataType.Date;","/**"," * A plugin class which adds navigation controls to Calendar."," *"," * @class CalendarNavigator"," * @extends Plugin.Base"," * @namespace Plugin"," */","function CalendarNavigator() {","    CalendarNavigator.superclass.constructor.apply(this, arguments);","}","","/**"," * The namespace for the plugin. This will be the property on the widget, which will"," * reference the plugin instance, when it's plugged in."," *"," * @property NS"," * @static"," * @type String"," * @default \"navigator\""," */","CalendarNavigator.NS = \"navigator\";","","/**"," * The NAME of the CalendarNavigator class. Used to prefix events generated"," * by the plugin class."," *"," * @property NAME"," * @static"," * @type String"," * @default \"pluginCalendarNavigator\""," */","CalendarNavigator.NAME = \"pluginCalendarNavigator\";","","","/**"," * Static property used to define the default attribute"," * configuration for the plugin."," *"," * @property ATTRS"," * @type Object"," * @static"," */","CalendarNavigator.ATTRS = {","","    /**","     * The number of months to shift by when the control arrows are clicked.","     *","     * @attribute shiftByMonths","     * @type Number","     * @default 1 (months)","     */","    shiftByMonths : {","        value: 1","    }","};","","   /**","    * The CSS classnames for the calendar navigator controls.","    * @property CALENDARNAV_STRINGS","    * @type Object","    * @readOnly","    * @protected","    * @static","    */","CalendarNavigator.CALENDARNAV_STRINGS = {","   prev_month_class: CAL_PREV_M,","   next_month_class: CAL_NEXT_M","};","","   /**","    * The template for the calendar navigator previous month control.","    * @property PREV_MONTH_CONTROL_TEMPLATE","    * @type String","    * @protected","    * @static","    */","CalendarNavigator.PREV_MONTH_CONTROL_TEMPLATE = '<a class=\"yui3-u {prev_month_class}\" role=\"button\" aria-label=\"{prev_month_arialabel}\" ' +","                                                    'tabindex=\"{control_tabindex}\">' +","                                                    \"<span>&lt;</span>\" +","                                                '</a>';","   /**","    * The template for the calendar navigator next month control.","    * @property NEXT_MONTH_CONTROL_TEMPLATE","    * @type String","    * @readOnly","    * @protected","    * @static","    */","CalendarNavigator.NEXT_MONTH_CONTROL_TEMPLATE = '<a class=\"yui3-u {next_month_class}\" role=\"button\" aria-label=\"{next_month_arialabel}\" ' +","                                                    'tabindex=\"{control_tabindex}\">' +","                                                    \"<span>&gt;</span>\" +","                                                '</a>';","","","Y.extend(CalendarNavigator, Y.Plugin.Base, {","","    _eventAttachments : {},","    _controls: {},","","    /**","     * The initializer lifecycle implementation. Modifies the host widget's","     * render to add navigation controls.","     *","     * @method initializer","     */","    initializer : function() {","","        // After the host has rendered its UI, place the navigation cotnrols","        this._controls = {};","        this._eventAttachments = {};","","        this.afterHostMethod(\"renderUI\", this._initNavigationControls);","    },","","    /**","     * The initializer destructor implementation. Responsible for destroying the initialized","     * control mechanisms.","     *","     * @method destructor","     */","    destructor : function() {","","    },","","    /**","     * Private utility method that focuses on a navigation button when it is clicked","     * or pressed with a keyboard.","     *","     * @method _focusNavigation","     * @param {Event} ev Click or keydown event from the controls","     * @protected","     */","    _focusNavigation : function (ev) {","        ev.currentTarget.focus();","    },","","    /**","     * Private utility method that subtracts months from the host calendar date","     * based on the control click and the shiftByMonths property.","     *","     * @method _subtractMonths","     * @param {Event} ev Click event from the controls","     * @protected","     */","    _subtractMonths : function (ev) {","        if ( (ev.type === \"click\") || (ev.type === \"keydown\" && (ev.keyCode === 13 || ev.keyCode === 32)) ) {","            var host = this.get(HOST),","                oldDate = host.get(\"date\");","            host.set(\"date\", ydate.addMonths(oldDate, -1*this.get(\"shiftByMonths\")));","            ev.preventDefault();","        }","    },","","    /**","     * Private utility method that adds months to the host calendar date","     * based on the control click and the shiftByMonths property.","     *","     * @method _addMonths","     * @param {Event} ev Click event from the controls","     * @protected","     */","    _addMonths : function (ev) {","        if ( (ev.type === \"click\") || (ev.type === \"keydown\" && (ev.keyCode === 13 || ev.keyCode === 32)) ) {","            var host = this.get(HOST),","                oldDate = host.get(\"date\");","            host.set(\"date\", ydate.addMonths(oldDate, this.get(\"shiftByMonths\")));","            ev.preventDefault();","        }","    },","","","    _updateControlState : function () {","","        var host      = this.get(HOST),","            startDate = host.get('date'),","            endDate   = ydate.addMonths(startDate, host._paneNumber - 1),","            minDate   = host._normalizeDate(host.get(\"minimumDate\")),","            maxDate   = host._normalizeDate(host.get(\"maximumDate\"));","","        if (ydate.areEqual(minDate, startDate)) {","            if (this._eventAttachments.prevMonth) {","                this._eventAttachments.prevMonth.detach();","                this._eventAttachments.prevMonth = false;","            }","","            if (!this._controls.prevMonth.hasClass(CAL_DIS_M)) {","                this._controls.prevMonth.addClass(CAL_DIS_M).setAttribute(\"aria-disabled\", \"true\");","            }","        }","        else {","            if (!this._eventAttachments.prevMonth) {","            this._eventAttachments.prevMonth = this._controls.prevMonth.on([\"click\", \"keydown\"], this._subtractMonths, this);","            }","            if (this._controls.prevMonth.hasClass(CAL_DIS_M)) {","              this._controls.prevMonth.removeClass(CAL_DIS_M).setAttribute(\"aria-disabled\", \"false\");","            }","        }","","        if (ydate.areEqual(maxDate, endDate)) {","            if (this._eventAttachments.nextMonth) {","                this._eventAttachments.nextMonth.detach();","                this._eventAttachments.nextMonth = false;","            }","","            if (!this._controls.nextMonth.hasClass(CAL_DIS_M)) {","                this._controls.nextMonth.addClass(CAL_DIS_M).setAttribute(\"aria-disabled\", \"true\");","            }","        }","        else {","            if (!this._eventAttachments.nextMonth) {","            this._eventAttachments.nextMonth = this._controls.nextMonth.on([\"click\", \"keydown\"], this._addMonths, this);","            }","            if (this._controls.nextMonth.hasClass(CAL_DIS_M)) {","              this._controls.nextMonth.removeClass(CAL_DIS_M).setAttribute(\"aria-disabled\", \"false\");","            }","        }","","        this._controls.prevMonth.on([\"click\", \"keydown\"], this._focusNavigation, this);","        this._controls.nextMonth.on([\"click\", \"keydown\"], this._focusNavigation, this);","    },","","","","","    /**","     * Private render assist method that renders the previous month control","     *","     * @method _renderPrevControls","     * @private","     */","    _renderPrevControls : function () {","      var prevControlNode = create(substitute (CalendarNavigator.PREV_MONTH_CONTROL_TEMPLATE,","                               CalendarNavigator.CALENDARNAV_STRINGS));","      prevControlNode.on(\"selectstart\", this.get(HOST)._preventSelectionStart);","","      return prevControlNode;","    },","","    /**","     * Private render assist method that renders the next month control","     *","     * @method _renderNextControls","     * @private","     */","    _renderNextControls : function () {","      var nextControlNode = create(substitute (CalendarNavigator.NEXT_MONTH_CONTROL_TEMPLATE,","                               CalendarNavigator.CALENDARNAV_STRINGS));","      nextControlNode.on(\"selectstart\", this.get(HOST)._preventSelectionStart);","","      return nextControlNode;","    },","","    /**","     * Protected render assist method that initialized and renders the navigation controls.","     * @method _initNavigationControls","     * @protected","     */","    _initNavigationControls : function() {","        var host = this.get(HOST),","            headerCell = host.get(CONTENT_BOX).one(\".\" + CAL_HD);","","        CalendarNavigator.CALENDARNAV_STRINGS.control_tabindex = host.get(\"tabIndex\");","        CalendarNavigator.CALENDARNAV_STRINGS.prev_month_arialabel = \"Go to previous month\";","        CalendarNavigator.CALENDARNAV_STRINGS.next_month_arialabel = \"Go to next month\";","","        this._controls.prevMonth = this._renderPrevControls();","        this._controls.nextMonth = this._renderNextControls();","","        this._updateControlState();","","        host.after([\"dateChange\", \"minimumDateChange\", \"maximumDateChange\"], this._updateControlState, this);","","        headerCell.prepend(this._controls.prevMonth);","        headerCell.append(this._controls.nextMonth);","    }","});","","Y.namespace(\"Plugin\").CalendarNavigator = CalendarNavigator;","","","}, '3.13.0', {\"requires\": [\"plugin\", \"classnamemanager\", \"datatype-date\", \"node\"], \"skinnable\": true});","","}());"]};
 
11
}
 
12
var __cov_iFlUFoON8vnVWN4OWN67oA = __coverage__['build/calendarnavigator/calendarnavigator.js'];
 
13
__cov_iFlUFoON8vnVWN4OWN67oA.s['1']++;YUI.add('calendarnavigator',function(Y,NAME){__cov_iFlUFoON8vnVWN4OWN67oA.f['1']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['2']++;var CONTENT_BOX='contentBox',HOST='host',getCN=Y.ClassNameManager.getClassName,substitute=Y.Lang.sub,node=Y.Node,create=node.create,CALENDAR='calendar',CALENDARNAV='calendarnav',CAL_HD=getCN(CALENDAR,'header'),CAL_PREV_M=getCN(CALENDARNAV,'prevmonth'),CAL_NEXT_M=getCN(CALENDARNAV,'nextmonth'),CAL_DIS_M=getCN(CALENDARNAV,'month-disabled'),ydate=Y.DataType.Date;__cov_iFlUFoON8vnVWN4OWN67oA.s['3']++;function CalendarNavigator(){__cov_iFlUFoON8vnVWN4OWN67oA.f['2']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['4']++;CalendarNavigator.superclass.constructor.apply(this,arguments);}__cov_iFlUFoON8vnVWN4OWN67oA.s['5']++;CalendarNavigator.NS='navigator';__cov_iFlUFoON8vnVWN4OWN67oA.s['6']++;CalendarNavigator.NAME='pluginCalendarNavigator';__cov_iFlUFoON8vnVWN4OWN67oA.s['7']++;CalendarNavigator.ATTRS={shiftByMonths:{value:1}};__cov_iFlUFoON8vnVWN4OWN67oA.s['8']++;CalendarNavigator.CALENDARNAV_STRINGS={prev_month_class:CAL_PREV_M,next_month_class:CAL_NEXT_M};__cov_iFlUFoON8vnVWN4OWN67oA.s['9']++;CalendarNavigator.PREV_MONTH_CONTROL_TEMPLATE='<a class="yui3-u {prev_month_class}" role="button" aria-label="{prev_month_arialabel}" '+'tabindex="{control_tabindex}">'+'<span>&lt;</span>'+'</a>';__cov_iFlUFoON8vnVWN4OWN67oA.s['10']++;CalendarNavigator.NEXT_MONTH_CONTROL_TEMPLATE='<a class="yui3-u {next_month_class}" role="button" aria-label="{next_month_arialabel}" '+'tabindex="{control_tabindex}">'+'<span>&gt;</span>'+'</a>';__cov_iFlUFoON8vnVWN4OWN67oA.s['11']++;Y.extend(CalendarNavigator,Y.Plugin.Base,{_eventAttachments:{},_controls:{},initializer:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['3']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['12']++;this._controls={};__cov_iFlUFoON8vnVWN4OWN67oA.s['13']++;this._eventAttachments={};__cov_iFlUFoON8vnVWN4OWN67oA.s['14']++;this.afterHostMethod('renderUI',this._initNavigationControls);},destructor:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['4']++;},_focusNavigation:function(ev){__cov_iFlUFoON8vnVWN4OWN67oA.f['5']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['15']++;ev.currentTarget.focus();},_subtractMonths:function(ev){__cov_iFlUFoON8vnVWN4OWN67oA.f['6']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['16']++;if((__cov_iFlUFoON8vnVWN4OWN67oA.b['2'][0]++,ev.type==='click')||(__cov_iFlUFoON8vnVWN4OWN67oA.b['2'][1]++,ev.type==='keydown')&&((__cov_iFlUFoON8vnVWN4OWN67oA.b['2'][2]++,ev.keyCode===13)||(__cov_iFlUFoON8vnVWN4OWN67oA.b['2'][3]++,ev.keyCode===32))){__cov_iFlUFoON8vnVWN4OWN67oA.b['1'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['17']++;var host=this.get(HOST),oldDate=host.get('date');__cov_iFlUFoON8vnVWN4OWN67oA.s['18']++;host.set('date',ydate.addMonths(oldDate,-1*this.get('shiftByMonths')));__cov_iFlUFoON8vnVWN4OWN67oA.s['19']++;ev.preventDefault();}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['1'][1]++;}},_addMonths:function(ev){__cov_iFlUFoON8vnVWN4OWN67oA.f['7']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['20']++;if((__cov_iFlUFoON8vnVWN4OWN67oA.b['4'][0]++,ev.type==='click')||(__cov_iFlUFoON8vnVWN4OWN67oA.b['4'][1]++,ev.type==='keydown')&&((__cov_iFlUFoON8vnVWN4OWN67oA.b['4'][2]++,ev.keyCode===13)||(__cov_iFlUFoON8vnVWN4OWN67oA.b['4'][3]++,ev.keyCode===32))){__cov_iFlUFoON8vnVWN4OWN67oA.b['3'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['21']++;var host=this.get(HOST),oldDate=host.get('date');__cov_iFlUFoON8vnVWN4OWN67oA.s['22']++;host.set('date',ydate.addMonths(oldDate,this.get('shiftByMonths')));__cov_iFlUFoON8vnVWN4OWN67oA.s['23']++;ev.preventDefault();}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['3'][1]++;}},_updateControlState:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['8']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['24']++;var host=this.get(HOST),startDate=host.get('date'),endDate=ydate.addMonths(startDate,host._paneNumber-1),minDate=host._normalizeDate(host.get('minimumDate')),maxDate=host._normalizeDate(host.get('maximumDate'));__cov_iFlUFoON8vnVWN4OWN67oA.s['25']++;if(ydate.areEqual(minDate,startDate)){__cov_iFlUFoON8vnVWN4OWN67oA.b['5'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['26']++;if(this._eventAttachments.prevMonth){__cov_iFlUFoON8vnVWN4OWN67oA.b['6'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['27']++;this._eventAttachments.prevMonth.detach();__cov_iFlUFoON8vnVWN4OWN67oA.s['28']++;this._eventAttachments.prevMonth=false;}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['6'][1]++;}__cov_iFlUFoON8vnVWN4OWN67oA.s['29']++;if(!this._controls.prevMonth.hasClass(CAL_DIS_M)){__cov_iFlUFoON8vnVWN4OWN67oA.b['7'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['30']++;this._controls.prevMonth.addClass(CAL_DIS_M).setAttribute('aria-disabled','true');}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['7'][1]++;}}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['5'][1]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['31']++;if(!this._eventAttachments.prevMonth){__cov_iFlUFoON8vnVWN4OWN67oA.b['8'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['32']++;this._eventAttachments.prevMonth=this._controls.prevMonth.on(['click','keydown'],this._subtractMonths,this);}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['8'][1]++;}__cov_iFlUFoON8vnVWN4OWN67oA.s['33']++;if(this._controls.prevMonth.hasClass(CAL_DIS_M)){__cov_iFlUFoON8vnVWN4OWN67oA.b['9'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['34']++;this._controls.prevMonth.removeClass(CAL_DIS_M).setAttribute('aria-disabled','false');}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['9'][1]++;}}__cov_iFlUFoON8vnVWN4OWN67oA.s['35']++;if(ydate.areEqual(maxDate,endDate)){__cov_iFlUFoON8vnVWN4OWN67oA.b['10'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['36']++;if(this._eventAttachments.nextMonth){__cov_iFlUFoON8vnVWN4OWN67oA.b['11'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['37']++;this._eventAttachments.nextMonth.detach();__cov_iFlUFoON8vnVWN4OWN67oA.s['38']++;this._eventAttachments.nextMonth=false;}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['11'][1]++;}__cov_iFlUFoON8vnVWN4OWN67oA.s['39']++;if(!this._controls.nextMonth.hasClass(CAL_DIS_M)){__cov_iFlUFoON8vnVWN4OWN67oA.b['12'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['40']++;this._controls.nextMonth.addClass(CAL_DIS_M).setAttribute('aria-disabled','true');}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['12'][1]++;}}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['10'][1]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['41']++;if(!this._eventAttachments.nextMonth){__cov_iFlUFoON8vnVWN4OWN67oA.b['13'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['42']++;this._eventAttachments.nextMonth=this._controls.nextMonth.on(['click','keydown'],this._addMonths,this);}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['13'][1]++;}__cov_iFlUFoON8vnVWN4OWN67oA.s['43']++;if(this._controls.nextMonth.hasClass(CAL_DIS_M)){__cov_iFlUFoON8vnVWN4OWN67oA.b['14'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['44']++;this._controls.nextMonth.removeClass(CAL_DIS_M).setAttribute('aria-disabled','false');}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['14'][1]++;}}__cov_iFlUFoON8vnVWN4OWN67oA.s['45']++;this._controls.prevMonth.on(['click','keydown'],this._focusNavigation,this);__cov_iFlUFoON8vnVWN4OWN67oA.s['46']++;this._controls.nextMonth.on(['click','keydown'],this._focusNavigation,this);},_renderPrevControls:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['9']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['47']++;var prevControlNode=create(substitute(CalendarNavigator.PREV_MONTH_CONTROL_TEMPLATE,CalendarNavigator.CALENDARNAV_STRINGS));__cov_iFlUFoON8vnVWN4OWN67oA.s['48']++;prevControlNode.on('selectstart',this.get(HOST)._preventSelectionStart);__cov_iFlUFoON8vnVWN4OWN67oA.s['49']++;return prevControlNode;},_renderNextControls:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['10']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['50']++;var nextControlNode=create(substitute(CalendarNavigator.NEXT_MONTH_CONTROL_TEMPLATE,CalendarNavigator.CALENDARNAV_STRINGS));__cov_iFlUFoON8vnVWN4OWN67oA.s['51']++;nextControlNode.on('selectstart',this.get(HOST)._preventSelectionStart);__cov_iFlUFoON8vnVWN4OWN67oA.s['52']++;return nextControlNode;},_initNavigationControls:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['11']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['53']++;var host=this.get(HOST),headerCell=host.get(CONTENT_BOX).one('.'+CAL_HD);__cov_iFlUFoON8vnVWN4OWN67oA.s['54']++;CalendarNavigator.CALENDARNAV_STRINGS.control_tabindex=host.get('tabIndex');__cov_iFlUFoON8vnVWN4OWN67oA.s['55']++;CalendarNavigator.CALENDARNAV_STRINGS.prev_month_arialabel='Go to previous month';__cov_iFlUFoON8vnVWN4OWN67oA.s['56']++;CalendarNavigator.CALENDARNAV_STRINGS.next_month_arialabel='Go to next month';__cov_iFlUFoON8vnVWN4OWN67oA.s['57']++;this._controls.prevMonth=this._renderPrevControls();__cov_iFlUFoON8vnVWN4OWN67oA.s['58']++;this._controls.nextMonth=this._renderNextControls();__cov_iFlUFoON8vnVWN4OWN67oA.s['59']++;this._updateControlState();__cov_iFlUFoON8vnVWN4OWN67oA.s['60']++;host.after(['dateChange','minimumDateChange','maximumDateChange'],this._updateControlState,this);__cov_iFlUFoON8vnVWN4OWN67oA.s['61']++;headerCell.prepend(this._controls.prevMonth);__cov_iFlUFoON8vnVWN4OWN67oA.s['62']++;headerCell.append(this._controls.nextMonth);}});__cov_iFlUFoON8vnVWN4OWN67oA.s['63']++;Y.namespace('Plugin').CalendarNavigator=CalendarNavigator;},'3.13.0',{'requires':['plugin','classnamemanager','datatype-date','node'],'skinnable':true});