',this.controller=o,this.require="uifBreadcrumb"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,i,r){r(function(e){var n=angular.element("
");n.addClass("ms-Breadcrumb-list");for(var i=1,r=e,o=0;o");a.addClass("ms-Breadcrumb-listItem");var c=angular.element("");c.addClass("ms-Breadcrumb-itemLink"),c.attr("tabindex",++i),c.attr("href",s.attr("ng-href")),c.append(s[0].innerHTML),a.append(c);var l=angular.element("");l.addClass("ms-Breadcrumb-chevron ms-Icon ms-Icon--chevronRight"),a.append(l),n.append(a)}}var u=angular.element("");u.addClass("ms-Breadcrumb-overflow");var d=angular.element("");d.addClass("ms-Breadcrumb-overflowButton ms-Icon ms-Icon--ellipsis"),d.attr("tabindex","1"),u.append(d);var f=angular.element("");f.addClass("ms-Breadcrumb-chevron ms-Icon ms-Icon--chevronRight"),u.append(f),t.append(u),t.append(n)})},e}();t.BreadcrumbDirective=s,t.module=i.module("officeuifabric.components.breadcrumb",["officeuifabric.components"]).directive("uifBreadcrumb",s.factory()).directive("uifBreadcrumbLink",r.factory())},function(e,t,n){"use strict";var i=n(2),r=n(6),o=n(7),s=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}(),a=function(){function e(e){var t=this;this.$log=e,this.restrict="E",this.transclude=!0,this.replace=!0,this.scope={},this.controller=s,this.controllerAs="button",this.templateOptions={},this.template=function(e,n){switch(!i.isUndefined(n.uifType)&&i.isUndefined(r.ButtonTypeEnum[n.uifType])&&t.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.button - Unsupported button: The button ('"+n.uifType+"') is not supported by the Office UI Fabric. Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/button/buttonTypeEnum.ts"),n.uifType){case r.ButtonTypeEnum[r.ButtonTypeEnum.primary]:return i.isUndefined(n.ngHref)?t.templateOptions[o.ButtonTemplateType.primaryButton]:t.templateOptions[o.ButtonTemplateType.primaryLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.command]:return i.isUndefined(n.ngHref)?t.templateOptions[o.ButtonTemplateType.commandButton]:t.templateOptions[o.ButtonTemplateType.commandLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.compound]:return i.isUndefined(n.ngHref)?t.templateOptions[o.ButtonTemplateType.compoundButton]:t.templateOptions[o.ButtonTemplateType.compoundLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.hero]:return i.isUndefined(n.ngHref)?t.templateOptions[o.ButtonTemplateType.heroButton]:t.templateOptions[o.ButtonTemplateType.heroLink];default:return i.isUndefined(n.ngHref)?t.templateOptions[o.ButtonTemplateType.actionButton]:t.templateOptions[o.ButtonTemplateType.actionLink]}},this._populateHtmlTemplates()}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.compile=function(e,t,n){return{post:this.postLink,pre:this.preLink}},e.prototype.preLink=function(e,t,n,i,r){var o="disabled"in n;e.disabled=o},e.prototype.postLink=function(e,t,n,o,s){if(i.isUndefined(n.uifType)||n.uifType===r.ButtonTypeEnum[r.ButtonTypeEnum.primary]||n.uifType===r.ButtonTypeEnum[r.ButtonTypeEnum.compound]){var a=t.find("uif-icon");0!==a.length&&(a.remove(),o.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.button - Icon not allowed in primary or compound buttons: The primary & compound button does not support including icons in the body. The icon has been removed but may cause rendering errors. Consider buttons that support icons such as command or hero."))}s(function(e){var o;switch(n.uifType){case r.ButtonTypeEnum[r.ButtonTypeEnum.command]:for(var s=0;s"),o.addClass("ms-Button-label").append(e[s]),t.append(o)),"UIF-ICON"===e[s].tagName&&(o=i.element(""),o.addClass("ms-Button-icon").append(e[s]),t.append(o));break;case r.ButtonTypeEnum[r.ButtonTypeEnum.compound]:for(var s=0;s"),o.addClass("ms-Button-label").append(e[s]),t.append(o)):t.append(e[s]));break;case r.ButtonTypeEnum[r.ButtonTypeEnum.hero]:for(var s=0;s"),o.addClass("ms-Button-label").append(e[s]),t.append(o)),"UIF-ICON"===e[s].tagName&&(o=i.element(""),o.addClass("ms-Button-icon").append(e[s]),t.append(o))}})},e.prototype._populateHtmlTemplates=function(){this.templateOptions[o.ButtonTemplateType.actionButton]='',this.templateOptions[o.ButtonTemplateType.actionLink]='\n \n ',this.templateOptions[o.ButtonTemplateType.primaryButton]='',this.templateOptions[o.ButtonTemplateType.primaryLink]='\n \n ',this.templateOptions[o.ButtonTemplateType.commandButton]='',this.templateOptions[o.ButtonTemplateType.commandLink]='',this.templateOptions[o.ButtonTemplateType.compoundButton]='',this.templateOptions[o.ButtonTemplateType.compoundLink]='',this.templateOptions[o.ButtonTemplateType.heroButton]='',this.templateOptions[o.ButtonTemplateType.heroLink]=''},e}();t.ButtonDirective=a;var c=function(){function e(){this.restrict="E",this.require="^uifButton",this.transclude=!0,this.replace=!0,this.scope=!1,this.template=''}return e.factory=function(){var t=function(){return new e};return t},e}();t.ButtonDescriptionDirective=c,t.module=i.module("officeuifabric.components.button",["officeuifabric.components"]).directive("uifButton",a.factory()).directive("uifButtonDescription",c.factory())},function(e,t){"use strict";!function(e){e[e.primary=0]="primary",e[e.command=1]="command",e[e.compound=2]="compound",e[e.hero=3]="hero"}(t.ButtonTypeEnum||(t.ButtonTypeEnum={}));t.ButtonTypeEnum},function(e,t){"use strict";!function(e){e[e.actionButton=0]="actionButton",e[e.actionLink=1]="actionLink",e[e.primaryButton=2]="primaryButton",e[e.primaryLink=3]="primaryLink",e[e.commandButton=4]="commandButton",e[e.commandLink=5]="commandLink",e[e.compoundButton=6]="compoundButton",e[e.compoundLink=7]="compoundLink",e[e.heroButton=8]="heroButton",e[e.heroLink=9]="heroLink"}(t.ButtonTemplateType||(t.ButtonTemplateType={}));t.ButtonTemplateType},function(e,t,n){"use strict";var i=n(2),r=n(9),o=n(10),s=function(){function e(e,t){this.$scope=e,this.$log=t}return e.$inject=["$scope","$log"],e}();t.CalloutController=s;var a=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.template='
'}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,r){var o=t.parent().parent();if(!i.isUndefined(o)&&o.hasClass("ms-Callout-main")){var s=t.detach();o.prepend(s)}},e}();t.CalloutHeaderDirective=a;var c=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.template='
'}return e.factory=function(){var t=function(){return new e};return t},e}();t.CalloutContentDirective=c;var l=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.template='',this.require="^?uifCallout"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,r){i.isObject(r)&&r.$scope.$watch("hasSeparator",function(e){if(e)for(var n=t.children().eq(0).children(),i=0;i"+'
',this.require=["uifCallout"],this.scope={ngShow:"=?",uifType:"@"},this.controller=s}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,s){var a=s[0];if(n.$observe("uifType",function(e){i.isUndefined(r.CalloutType[e])&&a.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.callout - "'+e+'" is not a valid value for uifType. It should be oobe or peek')}),n.uifArrow||(e.arrowDirection="Left"),n.$observe("uifArrow",function(t){if(i.isUndefined(o.CalloutArrow[t]))return void a.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.callout - "'+t+'" is not a valid value for uifArrow. It should be left, right, top, bottom.');var n=t.charAt(0).toUpperCase();n+=t.slice(1).toLowerCase(),e.arrowDirection=n}),e.hasSeparator=!i.isUndefined(n.uifActionText)||!i.isUndefined(n.uifSeparator),!i.isUndefined(n.uifClose)){e.closeButton=!0;var c=i.element(''),l=t.find("div").eq(0);l.append(c),c.bind("click",function(t){e.ngShow=!1,e.closeButtonClicked=!0,e.$apply()})}t.bind("mouseenter",function(t){e.isMouseOver=!0,e.$apply()}),t.bind("mouseleave",function(t){e.isMouseOver=!1,e.$apply()}),e.$watch("ngShow",function(t,n){var i=!t&&e.closeButtonClicked;return i?void(e.ngShow=e.closeButtonClicked=!1):void(t||(e.ngShow=e.isMouseOver))}),e.$watch("isMouseOver",function(t,n){!t&&n&&(e.closeButton||(e.ngShow=!1))})},e}();t.CalloutDirective=u,t.module=i.module("officeuifabric.components.callout",["officeuifabric.components"]).directive("uifCallout",u.factory()).directive("uifCalloutHeader",a.factory()).directive("uifCalloutContent",c.factory()).directive("uifCalloutActions",l.factory())},function(e,t){"use strict";!function(e){e[e.oobe=0]="oobe",e[e.peek=1]="peek"}(t.CalloutType||(t.CalloutType={}));t.CalloutType},function(e,t){"use strict";!function(e){e[e.left=0]="left",e[e.right=1]="right",e[e.top=2]="top",e[e.bottom=3]="bottom"}(t.CalloutArrow||(t.CalloutArrow={}));t.CalloutArrow},function(e,t,n){"use strict";var i=n(2),r=n(12),o=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}();t.ChoicefieldOptionController=o;var s=function(){function e(){this.template='',this.restrict="E",this.require=["uifChoicefieldOption","^?uifChoicefieldGroup"],this.replace=!0,this.transclude=!0,this.scope={ngFalseValue:"@",ngModel:"=",ngTrueValue:"@",uifType:"@",value:"@"},this.controller=o}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,n){var i=e.find("input");return"ngModel"in t||i.removeAttr("ng-model"),{pre:this.preLink}},e.prototype.preLink=function(e,t,n,i,o){var s=i[0],a=i[1];if(e.$watch("uifType",function(e,t){void 0===r.ChoicefieldType[e]&&s.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.choicefield - "'+e+'" is not a valid value for uifType. Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/choicefield/choicefieldTypeEnum.ts')}),null!=a){var c=function(){var e=a.getViewValue()===n.value;t.find("input").prop("checked",e)};a.addRender(c),n.$observe("value",c),t.on("$destroy",function(){a.removeRender(c)})}var l="disabled"in n,u=e.$parent.$parent;l=l||null!=u&&u.disabled,l&&t.find("input").attr("disabled","disabled"),t.on("click",function(t){l||e.$apply(function(){null!=a&&a.setViewValue(n.value,t)})})},e}();t.ChoicefieldOptionDirective=s;var a=function(){function e(){this.template='
',this.transclude=!0,this.replace=!0,this.controller=c,this.require="^?uifCommandBarMain"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,n){return{post:this.postLink}},e.prototype.postLink=function(e,t,n,i,r){r(function(e){var n;n={};for(var r=0;r uif-icon")).length&&angular.element(t[0].querySelector(".ms-CommandBarItem")).addClass("ms-CommandBarItem-hasTextOnly")},e}();t.CommandBarItemDirective=l,t.module=i.module("officeuifabric.components.commandbar",["officeuifabric.components"]).directive("uifCommandBar",r.factory()).directive("uifCommandBarSearch",o.factory()).directive("uifCommandBarItem",l.factory()).directive("uifCommandBarMain",a.factory()).directive("uifCommandBarSide",s.factory())},function(e,t,n){"use strict";var i=n(2),r=function(){function e(){this.replace=!0,this.restrict="E",this.transclude=!0,this.scope=!0,this.template=''}return e.factory=function(){var t=function(){return new e};return t},e.directiveName="uifContent",e}();t.ContentDirective=r,t.module=i.module("officeuifabric.components.content",["officeuifabric.components"]).directive(r.directiveName,r.factory())},function(e,t,n){"use strict";var i,r=n(2);!function(e){e[e.link=0]="link",e[e.divider=1]="divider",e[e.header=2]="header",e[e.subMenu=3]="subMenu"}(i||(i={}));var o=function(){function e(e){var t=this;this.$log=e,this.restrict="E",this.require="^uifContextualMenu",this.transclude=!0,this.controller=s,this.replace=!0,this.scope={isDisabled:"=?disabled",isSelected:"=?uifIsSelected",onClick:"&ngClick",text:"=?uifText",type:"@uifType"},this.templateTypes={},this.template=function(e,n){var o=n.uifType;return r.isUndefined(o)?t.templateTypes[i.link]:(void 0===i[o]&&t.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.contextualmenu - unsupported menu type:\nthe type '"+o+"' is not supported by ng-Office UI Fabric as valid type for context menu.Supported types can be found under MenuItemTypes enum here:\nhttps://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/contextualmenu/contextualMenu.ts"),t.templateTypes[i[o]])},this.link=function(e,n,i,o,s){"boolean"!=typeof e.isDisabled&&void 0!==e.isDisabled&&o.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.contextualmenu - invalid attribute type: 'uif-is-disabled'.\nThe type '"+typeof e.isDisabled+"' is not supported as valid type for 'uif-is-disabled' attribute for . The valid type is boolean."),"boolean"!=typeof e.isSelected&&void 0!==e.isSelected&&o.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.contextualmenu - invalid attribute type: 'uif-is-selected'.\nThe type '"+typeof e.isSelected+"' is not supported as valid type for 'uif-is-selected' attribute for . The valid type is boolean."),t.transcludeChilds(e,n,s),e.selectItem=function(t){o.isMultiSelectionMenu()||o.deselectItems(),r.isUndefined(e.isSelected)&&!e.isDisabled?e.isSelected=!0:e.isSelected=!e.isSelected,e.hasChildMenu?o.closeSubMenus(e.$id):(o.closeSubMenus(null,!0),o.isRootMenu()||o.deselectItems(!0)),e.hasChildMenu&&e.childMenuCtrl.openMenu(),r.isUndefined(e.onClick)||e.onClick(),t.stopPropagation()},e.$on("uif-menu-deselect",function(){e.isSelected=!1}),e.$on("uif-menu-close",function(t,n){e.hasChildMenu&&e.$id!==n&&e.childMenuCtrl.closeMenu()})},this.templateTypes[i.subMenu]='
",this.templateTypes[i.divider]=''}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.transcludeChilds=function(e,t,n){var i=this;n(function(n){var r=i.hasItemContent(n);r||e.text||e.hasChildMenu||"divider"===e.type||i.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.contextualmenu - you need to provide a text for a contextual menu item.\nFor you need to specify either 'uif-text' as attribute or as a child directive"),i.insertItemContent(n,e,t),i.insertSubMenu(n,e,t)})},e.prototype.insertItemContent=function(e,t,n){var i=angular.element(n[0].querySelector(".uif-item-content"));if(this.hasItemContent(e))for(var r=0;r"+t.text+""))},e.prototype.insertSubMenu=function(e,t,n){for(var i=0;i',this.replace=!0,this.controller=c,this.scope={closeOnClick:"@uifCloseOnClick",isOpen:"=?uifIsOpen",multiselect:"@uifMultiselect"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,i){var s=function(t){r.isUndefined(t)?e.closeOnClick=!0:e.closeOnClick="true"===t.toString().toLowerCase()};s(e.closeOnClick),n.$observe("uifCloseOnClick",s);var a=t.controller(o.directiveName);r.isUndefined(a)||a.setChildMenu(i),r.isUndefined(e.multiselect)||"true"!==e.multiselect.toLowerCase()||t.addClass("ms-ContextualMenu--multiselect");
},e.directiveName="uifContextualMenu",e}();t.ContextualMenuDirective=a;var c=function(){function e(e,t,n,i){var s=this;this.$scope=e,this.$animate=t,this.$element=n,this.$log=i,this.onRootMenuClosed=[],this.isOpenClassName="is-open",r.isUndefined(n.controller(o.directiveName))&&(e.isRootMenu=!0),e.$watch("isOpen",function(e){"boolean"!=typeof e&&void 0!==e&&s.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.contextualmenu - invalid attribute type: 'uif-is-open'.\nThe type '"+typeof e+"' is not supported as valid type for 'uif-is-open' attribute for . The valid type is boolean."),t[e?"addClass":"removeClass"](n,s.isOpenClassName)}),this.onRootMenuClosed.push(function(){s.closeMenu(),s.deselectItems(!0)}),e.$on("uif-menu-close",function(){e.isRootMenu&&e.closeOnClick&&s.onRootMenuClosed.forEach(function(e){e()})})}return e.prototype.deselectItems=function(e){this.$scope.$broadcast("uif-menu-deselect"),e&&this.$scope.$emit("uif-menu-deselect")},e.prototype.closeSubMenus=function(e,t){this.$scope.$broadcast("uif-menu-close",e),t&&this.$scope.$emit("uif-menu-close")},e.prototype.openMenu=function(){this.$scope.isOpen=!0},e.prototype.closeMenu=function(){this.$scope.isOpen=!1},e.prototype.isRootMenu=function(){return this.$scope.isRootMenu},e.prototype.isMultiSelectionMenu=function(){return r.isUndefined(this.$scope.multiselect)?!1:"true"===this.$scope.multiselect.toLowerCase()},e.prototype.isMenuOpened=function(){return this.$element.hasClass("is-open")},e.$inject=["$scope","$animate","$element","$log"],e}();t.ContextualMenuController=c,t.module=r.module("officeuifabric.components.contextualmenu",["officeuifabric.components"]).directive(a.directiveName,a.factory()).directive(o.directiveName,o.factory())},function(e,t,n){"use strict";var i=n(2),r=function(){function e(e,t){this.$scope=t,this.isPickingYears=!1,this.isPickingMonths=!1,this.jElement=$(e[0]),t.ctrl=this}return e.prototype.range=function(e,t,n){n=n||1;for(var i=[],r=e;t>=r;r+=n)i.push(r);return i},e.prototype.getPicker=function(){return this.jElement.find(".ms-TextField-field").pickadate("picker")},e.prototype.setValue=function(e){this.getPicker().set("select",e),this.changeHighlightedDate(e.getFullYear(),e.getMonth(),e.getDate())},e.prototype.initDatepicker=function(e){var t=this;this.jElement.find(".ms-TextField-field").pickadate({clear:"",close:"",klass:{active:"ms-DatePicker-input--active",box:"ms-DatePicker-dayPicker",day:"ms-DatePicker-day",disabled:"ms-DatePicker-day--disabled",focused:"ms-DatePicker-picker--focused",frame:"ms-DatePicker-frame",header:"ms-DatePicker-header",holder:"ms-DatePicker-holder",infocus:"ms-DatePicker-day--infocus",input:"ms-DatePicker-input",month:"ms-DatePicker-month",now:"ms-DatePicker-day--today",opened:"ms-DatePicker-picker--opened",outfocus:"ms-DatePicker-day--outfocus",picker:"ms-DatePicker-picker",selected:"ms-DatePicker-day--selected",table:"ms-DatePicker-table",weekdays:"ms-DatePicker-weekday",wrap:"ms-DatePicker-wrap",year:"ms-DatePicker-year"},onStart:function(){t.initCustomView()},today:"",weekdaysShort:["S","M","T","W","T","F","S"]});var n=this.getPicker();n.on({open:function(){t.scrollUp()},set:function(t){var i=n.get("select","yyyy-mm-dd");e.$setViewValue(i)}})},e.prototype.initCustomView=function(){var e=this.jElement.find(".ms-DatePicker-monthComponents"),t=this.jElement.find(".ms-DatePicker-goToday"),n=this.jElement.find(".ms-DatePicker-monthPicker"),i=this.jElement.find(".ms-DatePicker-yearPicker"),r=this.jElement.find(".ms-DatePicker-wrap"),o=this.getPicker(),s=this;e.appendTo(r),t.appendTo(r),n.appendTo(r),i.appendTo(r),e.on("click",".js-prevMonth",function(e){e.preventDefault();var t=o.get("highlight").month-1;s.changeHighlightedDate(null,t,null),s.$scope.$apply()}),e.on("click",".js-nextMonth",function(e){e.preventDefault();var t=o.get("highlight").month+1;s.changeHighlightedDate(null,t,null),s.$scope.$apply()}),n.on("click",".js-prevYear",function(e){e.preventDefault();var t=o.get("highlight").year-1;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),n.on("click",".js-nextYear",function(e){e.preventDefault();var t=o.get("highlight").year+1;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),i.on("click",".js-prevDecade",function(e){e.preventDefault();var t=o.get("highlight").year-10;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),i.on("click",".js-nextDecade",function(e){e.preventDefault();var t=o.get("highlight").year+10;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),t.on("click",function(e){e.preventDefault();var t=new Date;o.set("select",t),s.jElement.removeClass("is-pickingMonths").removeClass("is-pickingYears"),s.$scope.$apply()}),n.on("click",".js-changeDate",function(e){e.preventDefault();var t=o.get("highlight"),n=t.year,i=+$(this).attr("data-month"),r=t.day;s.changeHighlightedDate(n,i,r),s.jElement.hasClass("is-pickingMonths")&&s.jElement.removeClass("is-pickingMonths"),s.$scope.$apply()}),i.on("click",".js-changeDate",function(e){e.preventDefault();var t=o.get("highlight"),n=+$(this).attr("data-year"),i=t.month,r=t.day;s.changeHighlightedDate(n,i,r),s.jElement.hasClass("is-pickingYears")&&s.jElement.removeClass("is-pickingYears"),s.$scope.$apply()}),e.on("click",".js-showMonthPicker",function(e){s.isPickingMonths=!s.isPickingMonths,s.$scope.$apply()}),n.on("click",".js-showYearPicker",function(e){s.isPickingYears=!s.isPickingYears,s.$scope.$apply()}),s.$scope.highlightedValue=o.get("highlight")},e.prototype.scrollUp=function(){$("html, body").animate({scrollTop:this.jElement.offset().top},367)},e.prototype.changeHighlightedDate=function(e,t,n){var i=this.getPicker();null==e&&(e=i.get("highlight").year),null==t&&(t=i.get("highlight").month),null==n&&(n=i.get("highlight").date),i.set("highlight",[e,t,n]),this.$scope.highlightedValue=i.get("highlight")},e.$inject=["$element","$scope"],e}();t.DatepickerController=r;var o=function(){function e(){this.template='
',this.controller=r,this.restrict="E",this.replace=!0,this.scope={placeholder:"@",uifLabel:"@",uifMonths:"@"},this.require=["uifDatepicker","?ngModel"]}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,n){return{post:this.postLink,pre:this.preLink}},e.prototype.preLink=function(e,t,n,i){if(e.uifMonths||(e.uifMonths="Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"),e.uifLabel||(e.uifLabel="Start Date"),e.placeholder||(e.placeholder="Select a date"),e.monthsArray=e.uifMonths.split(","),12!==e.monthsArray.length)throw"Months setting should have 12 months, separated by a comma"},e.prototype.postLink=function(e,t,n,i){var r=i[0],o=i[1];r.initDatepicker(o),o.$render=function(){if(""!==o.$modelValue&&"undefined"!=typeof o.$modelValue)if("string"==typeof o.$modelValue){var e=new Date(o.$modelValue);r.setValue(e)}else r.setValue(o.$modelValue)}},e}();t.DatepickerDirective=o,t.module=i.module("officeuifabric.components.datepicker",["officeuifabric.components"]).directive("uifDatepicker",o.factory())},function(e,t,n){"use strict";var i=n(2),r=n(18),o=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}();t.DialogController=o;var s=function(){function e(){this.restrict="E",this.controller=o,this.replace=!0,this.transclude=!0,this.template="
",this.scope={uifClose:"@",uifOverlay:"@",uifType:"@"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,i){e.$watch("uifType",function(t,n){"undefined"!=typeof t&&void 0===r.DialogTypeEnum[t]&&i.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.dialog - Unsupported type:The type ('"+e.uifType+"') is not supported by the Office UI Fabric.Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/dialog/dialogEnums.ts")})},e}();t.DialogDirective=s;var a=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.require="^^uifDialog",this.template='
'}return e.factory=function(){var t=function(){return new e};return t},e}();t.DialogHeaderDirective=a;var c=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.template=''}return e.factory=function(){var t=function(){return new e};return t},e}();t.DialogContentDirective=c;var l=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.template=''}return e.factory=function(){var t=function(){return new e};return t},e}();t.DialogInnerDirective=l;var u=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.template=''}return e.factory=function(){var t=function(){return new e};return t},e}();t.DialogSubtextDirective=u;var d=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}();t.DialogActionsController=d;var f=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.controller=d,this.template="
",this.scope={uifPosition:"@"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,i){e.$watch("uifPosition",function(t,n){"undefined"!=typeof t&&void 0===r.DialogActionsPositionEnum[t]&&i.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.dialog - Unsupported type:The type ('"+e.uifPosition+"') is not supported by the Office UI Fabric.Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/dialog/dialogEnums.ts")})},e}();t.DialogActionsDirective=f,t.module=i.module("officeuifabric.components.dialog",["officeuifabric.components"]).directive("uifDialog",s.factory()).directive("uifDialogHeader",a.factory()).directive("uifDialogContent",c.factory()).directive("uifDialogInner",l.factory()).directive("uifDialogSubtext",u.factory()).directive("uifDialogActions",f.factory())},function(e,t){"use strict";!function(e){e[e.none=0]="none",e[e.header=1]="header",e[e.multiline=2]="multiline"}(t.DialogTypeEnum||(t.DialogTypeEnum={}));t.DialogTypeEnum;!function(e){e[e.none=0]="none",e[e.left=1]="left",e[e.right=2]="right"}(t.DialogActionsPositionEnum||(t.DialogActionsPositionEnum={}));t.DialogActionsPositionEnum},function(e,t,n){"use strict";var i=n(2),r=function(){function e(){this.template='',this.restrict="E",this.require="^uifDropdown",this.replace=!0,this.transclude=!0}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,n){return{post:this.postLink}},e.prototype.postLink=function(e,t,n,i,r){if(!i)throw"Dropdown controller not found!";t.on("click",function(r){e.$apply(function(){i.setViewValue(t.find("span").html(),n.value,r)})})},e}();t.DropdownOptionDirective=r;var o=function(){function e(e,t,n){this.$element=e,this.$scope=t,this.$document=n}return e.prototype.init=function(){var e=this;this.$element.on("click",function(t){if(!e.$scope.disabled){e.$scope.isOpen=!e.$scope.isOpen,e.$scope.$apply();var n=angular.element(this.querySelector(".ms-Dropdown"))[0].clientWidth;if(angular.element(this.querySelector(".ms-Dropdown-items"))[0].style.width=n+"px",t.stopPropagation(),e.$scope.isOpen){var i=function(){e.$scope.isOpen=!1,e.$scope.$apply(),e.$document.off("click",i)};e.$document.on("click",i),e.$scope.$on("$destroy",function(){e.$document.off("click",i)})}}}),"undefined"!=typeof this.$scope.ngModel&&null!=this.$scope.ngModel&&(this.$scope.ngModel.$render=function(){for(var t=!1,n=e.$element.find("li"),i=0;i{{selectedTitle}}
',this.restrict="E",this.transclude=!0,this.require=["uifDropdown","?ngModel"],this.scope={},this.controller=o}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,n){return{pre:this.preLink}},e.prototype.preLink=function(e,t,n,i){var r=i[0],o=i[1];e.ngModel=o,r.init(),e.disabled="disabled"in n},e}();t.DropdownDirective=s,t.module=i.module("officeuifabric.components.dropdown",["officeuifabric.components"]).directive("uifDropdownOption",r.factory()).directive("uifDropdown",s.factory())},function(e,t,n){"use strict";var i=n(2),r=n(21),o=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}(),s=function(){function e(){this.restrict="E",this.template='',this.scope={uifType:"@"},this.transclude=!0,this.controller=o,this.controllerAs="icon"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,i){e.$watch("uifType",function(t,n){void 0===r.IconEnum[t]&&i.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.icon - Unsupported icon: The icon ('"+e.uifType+"') is not supported by the Office UI Fabric. Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/icon/iconEnum.ts")})},e}();t.IconDirective=s,t.module=i.module("officeuifabric.components.icon",["officeuifabric.components"]).directive("uifIcon",s.factory())},function(e,t){"use strict";!function(e){e[e.alert=0]="alert",e[e.alert2=1]="alert2",e[e.alertOutline=2]="alertOutline",e[e.arrowDown=3]="arrowDown",e[e.arrowDown2=4]="arrowDown2",e[e.arrowDownLeft=5]="arrowDownLeft",e[e.arrowDownRight=6]="arrowDownRight",e[e.arrowLeft=7]="arrowLeft",e[e.arrowRight=8]="arrowRight",e[e.arrowUp=9]="arrowUp",e[e.arrowUp2=10]="arrowUp2",e[e.arrowUpLeft=11]="arrowUpLeft",e[e.arrowUpRight=12]="arrowUpRight",e[e.ascending=13]="ascending",e[e.at=14]="at",e[e.attachment=15]="attachment",e[e.bag=16]="bag",e[e.balloon=17]="balloon",e[e.bell=18]="bell",e[e.boards=19]="boards",e[e.bold=20]="bold",e[e.bookmark=21]="bookmark",e[e.books=22]="books",e[e.briefcase=23]="briefcase",e[e.bundle=24]="bundle",e[e.cake=25]="cake",e[e.calendar=26]="calendar",e[e.calendarDay=27]="calendarDay",e[e.calendarPublic=28]="calendarPublic",e[e.calendarWeek=29]="calendarWeek",e[e.calendarWorkWeek=30]="calendarWorkWeek",e[e.camera=31]="camera",e[e.car=32]="car",e[e.caretDown=33]="caretDown",e[e.caretDownLeft=34]="caretDownLeft",e[e.caretDownOutline=35]="caretDownOutline",e[e.caretDownRight=36]="caretDownRight",e[e.caretLeft=37]="caretLeft",e[e.caretLeftOutline=38]="caretLeftOutline",e[e.caretRight=39]="caretRight",e[e.caretRightOutline=40]="caretRightOutline",e[e.caretUp=41]="caretUp",e[e.caretUpLeft=42]="caretUpLeft",e[e.caretUpOutline=43]="caretUpOutline",e[e.caretUpRight=44]="caretUpRight",e[e.cart=45]="cart",e[e.cat=46]="cat",e[e.chart=47]="chart",e[e.chat=48]="chat",e[e.chatAdd=49]="chatAdd",e[e.check=50]="check",e[e.checkbox=51]="checkbox",e[e.checkboxCheck=52]="checkboxCheck",e[e.checkboxEmpty=53]="checkboxEmpty",e[e.checkboxMixed=54]="checkboxMixed",e[e.checkPeople=55]="checkPeople",e[e.chevronDown=56]="chevronDown",e[e.chevronLeft=57]="chevronLeft",e[e.chevronRight=58]="chevronRight",e[e.chevronsDown=59]="chevronsDown",e[e.chevronsLeft=60]="chevronsLeft",e[e.chevronsRight=61]="chevronsRight",e[e.chevronsUp=62]="chevronsUp",e[e.chevronThickDown=63]="chevronThickDown",e[e.chevronThickLeft=64]="chevronThickLeft",e[e.chevronThickRight=65]="chevronThickRight",e[e.chevronThickUp=66]="chevronThickUp",e[e.chevronThinDown=67]="chevronThinDown",e[e.chevronThinLeft=68]="chevronThinLeft",e[e.chevronThinRight=69]="chevronThinRight",e[e.chevronThinUp=70]="chevronThinUp",e[e.chevronUp=71]="chevronUp",e[e.circle=72]="circle",e[e.circleBall=73]="circleBall",e[e.circleBalloons=74]="circleBalloons",e[e.circleCar=75]="circleCar",e[e.circleCat=76]="circleCat",e[e.circleCoffee=77]="circleCoffee",e[e.circleDog=78]="circleDog",e[e.circleEmpty=79]="circleEmpty",e[e.circleFill=80]="circleFill",e[e.circleFilled=81]="circleFilled",e[e.circleHalfFilled=82]="circleHalfFilled",e[e.circleInfo=83]="circleInfo",e[e.circleLightning=84]="circleLightning",e[e.circlePill=85]="circlePill",e[e.circlePlane=86]="circlePlane",e[e.circlePlus=87]="circlePlus",e[e.circlePoodle=88]="circlePoodle",e[e.circleUnfilled=89]="circleUnfilled",e[e.classNotebook=90]="classNotebook",e[e.classroom=91]="classroom",e[e.clock=92]="clock",e[e.clutter=93]="clutter",e[e.coffee=94]="coffee",e[e.collapse=95]="collapse",e[e.conflict=96]="conflict",e[e.contact=97]="contact",e[e.contactForm=98]="contactForm",e[e.contactPublic=99]="contactPublic",e[e.copy=100]="copy",e[e.creditCard=101]="creditCard",e[e.creditCardOutline=102]="creditCardOutline",e[e.dashboard=103]="dashboard",e[e.descending=104]="descending",e[e.desktop=105]="desktop",e[e.deviceWipe=106]="deviceWipe",e[e.dialpad=107]="dialpad",e[e.directions=108]="directions",e[e.document=109]="document",e[e.documentAdd=110]="documentAdd",e[e.documentForward=111]="documentForward",e[e.documentLandscape=112]="documentLandscape",e[e.documentPDF=113]="documentPDF",e[e.documentReply=114]="documentReply",e[e.documents=115]="documents",e[e.documentSearch=116]="documentSearch",e[e.dog=117]="dog",e[e.dogAlt=118]="dogAlt",e[e.dot=119]="dot",e[e.download=120]="download",e[e.drm=121]="drm",e[e.drop=122]="drop",e[e.dropdown=123]="dropdown",e[e.editBox=124]="editBox",e[e.ellipsis=125]="ellipsis",e[e.embed=126]="embed",e[e.event=127]="event",e[e.eventCancel=128]="eventCancel",e[e.eventInfo=129]="eventInfo",e[e.eventRecurring=130]="eventRecurring",e[e.eventShare=131]="eventShare",e[e.exclamation=132]="exclamation",e[e.expand=133]="expand",e[e.eye=134]="eye",e[e.favorites=135]="favorites",e[e.fax=136]="fax",e[e.fieldMail=137]="fieldMail",e[e.fieldNumber=138]="fieldNumber",e[e.fieldText=139]="fieldText",e[e.fieldTextBox=140]="fieldTextBox",e[e.fileDocument=141]="fileDocument",e[e.fileImage=142]="fileImage",e[e.filePDF=143]="filePDF",e[e.filter=144]="filter",e[e.filterClear=145]="filterClear",e[e.firstAid=146]="firstAid",e[e.flag=147]="flag",e[e.folder=148]="folder",e[e.folderMove=149]="folderMove",e[e.folderPublic=150]="folderPublic",e[e.folderSearch=151]="folderSearch",e[e.fontColor=152]="fontColor",e[e.fontDecrease=153]="fontDecrease",e[e.fontIncrease=154]="fontIncrease",e[e.frowny=155]="frowny",e[e.fullscreen=156]="fullscreen",e[e.gear=157]="gear",e[e.glasses=158]="glasses",e[e.globe=159]="globe",e[e.graph=160]="graph",e[e.group=161]="group",e[e.header=162]="header",e[e.heart=163]="heart",e[e.heartEmpty=164]="heartEmpty",e[e.hide=165]="hide",e[e.home=166]="home",e[e.inboxCheck=167]="inboxCheck",e[e.info=168]="info",e[e.infoCircle=169]="infoCircle",e[e.italic=170]="italic",e[e.key=171]="key",e[e.late=172]="late",e[e.lifesaver=173]="lifesaver",e[e.lifesaverLock=174]="lifesaverLock",e[e.lightBulb=175]="lightBulb",e[e.lightning=176]="lightning",e[e.link=177]="link",e[e.linkRemove=178]="linkRemove",e[e.listBullets=179]="listBullets",e[e.listCheck=180]="listCheck",e[e.listCheckbox=181]="listCheckbox",e[e.listGroup=182]="listGroup",e[e.listGroup2=183]="listGroup2",e[e.listNumbered=184]="listNumbered",e[e.lock=185]="lock",e[e.mail=186]="mail",e[e.mailCheck=187]="mailCheck",e[e.mailDown=188]="mailDown",e[e.mailEdit=189]="mailEdit",e[e.mailEmpty=190]="mailEmpty",e[e.mailError=191]="mailError",e[e.mailOpen=192]="mailOpen",e[e.mailPause=193]="mailPause",e[e.mailPublic=194]="mailPublic",e[e.mailRead=195]="mailRead",e[e.mailSend=196]="mailSend",e[e.mailSync=197]="mailSync",e[e.mailUnread=198]="mailUnread",e[e.mapMarker=199]="mapMarker",e[e.meal=200]="meal",e[e.menu=201]="menu",e[e.menu2=202]="menu2",e[e.merge=203]="merge",e[e.metadata=204]="metadata",e[e.microphone=205]="microphone",e[e.miniatures=206]="miniatures",e[e.minus=207]="minus",e[e.mobile=208]="mobile",e[e.money=209]="money",e[e.move=210]="move",e[e.multiChoice=211]="multiChoice",e[e.music=212]="music",e[e.navigate=213]="navigate",e[e["new"]=214]="new",e[e.newsfeed=215]="newsfeed",e[e.note=216]="note",e[e.notebook=217]="notebook",e[e.noteEdit=218]="noteEdit",e[e.noteForward=219]="noteForward",e[e.noteReply=220]="noteReply",e[e.notRecurring=221]="notRecurring",e[e.onlineAdd=222]="onlineAdd",e[e.onlineJoin=223]="onlineJoin",e[e.oofReply=224]="oofReply",e[e.org=225]="org",e[e.page=226]="page",e[e.paint=227]="paint",e[e.panel=228]="panel",e[e.partner=229]="partner",e[e.pause=230]="pause",e[e.pencil=231]="pencil",e[e.people=232]="people",e[e.peopleAdd=233]="peopleAdd",e[e.peopleCheck=234]="peopleCheck",e[e.peopleError=235]="peopleError",e[e.peoplePause=236]="peoplePause",e[e.peopleRemove=237]="peopleRemove",e[e.peopleSecurity=238]="peopleSecurity",e[e.peopleSync=239]="peopleSync",e[e.person=240]="person",e[e.personAdd=241]="personAdd",e[e.personRemove=242]="personRemove",e[e.phone=243]="phone",e[e.phoneAdd=244]="phoneAdd",e[e.phoneTransfer=245]="phoneTransfer",e[e.picture=246]="picture",e[e.pictureAdd=247]="pictureAdd",e[e.pictureEdit=248]="pictureEdit",e[e.pictureRemove=249]="pictureRemove",e[e.pill=250]="pill",e[e.pinDown=251]="pinDown",e[e.pinLeft=252]="pinLeft",e[e.placeholder=253]="placeholder",e[e.plane=254]="plane",e[e.play=255]="play",e[e.plus=256]="plus",e[e.plus2=257]="plus2",e[e.pointItem=258]="pointItem",e[e.popout=259]="popout",e[e.post=260]="post",e[e.print=261]="print",e[e.protectionCenter=262]="protectionCenter",e[e.question=263]="question",e[e.questionReverse=264]="questionReverse",e[e.quote=265]="quote",e[e.radioButton=266]="radioButton",e[e.reactivate=267]="reactivate",e[e.receiptCheck=268]="receiptCheck",e[e.receiptForward=269]="receiptForward",e[e.receiptReply=270]="receiptReply",e[e.refresh=271]="refresh",e[e.reload=272]="reload",e[e.reply=273]="reply",e[e.replyAll=274]="replyAll",e[e.replyAllAlt=275]="replyAllAlt",e[e.replyAlt=276]="replyAlt",e[e.ribbon=277]="ribbon",e[e.room=278]="room",e[e.save=279]="save",e[e.scheduling=280]="scheduling",e[e.search=281]="search",e[e.section=282]="section",e[e.sections=283]="sections",e[e.settings=284]="settings",e[e.share=285]="share",e[e.shield=286]="shield",e[e.sites=287]="sites",e[e.smiley=288]="smiley",e[e.soccer=289]="soccer",e[e.socialListening=290]="socialListening",e[e.sort=291]="sort",e[e.sortLines=292]="sortLines",e[e.split=293]="split",e[e.star=294]="star",e[e.starEmpty=295]="starEmpty",e[e.stopwatch=296]="stopwatch",e[e.story=297]="story",e[e.styleRemove=298]="styleRemove",e[e.subscribe=299]="subscribe",e[e.sun=300]="sun",e[e.sunAdd=301]="sunAdd",e[e.sunQuestion=302]="sunQuestion",e[e.support=303]="support",e[e.table=304]="table",e[e.tablet=305]="tablet",e[e.tag=306]="tag",e[e.taskRecurring=307]="taskRecurring",e[e.tasks=308]="tasks",e[e.teamwork=309]="teamwork",e[e.text=310]="text",e[e.textBox=311]="textBox",e[e.tile=312]="tile",e[e.timeline=313]="timeline",e[e.today=314]="today",e[e.toggle=315]="toggle",e[e.toggleMiddle=316]="toggleMiddle",e[e.touch=317]="touch",e[e.trash=318]="trash",e[e.triangleDown=319]="triangleDown",e[e.triangleEmptyDown=320]="triangleEmptyDown",e[e.triangleEmptyLeft=321]="triangleEmptyLeft",e[e.triangleEmptyRight=322]="triangleEmptyRight",e[e.triangleEmptyUp=323]="triangleEmptyUp",e[e.triangleLeft=324]="triangleLeft",e[e.triangleRight=325]="triangleRight",e[e.triangleUp=326]="triangleUp",e[e.trophy=327]="trophy",e[e.underline=328]="underline",e[e.unsubscribe=329]="unsubscribe",e[e.upload=330]="upload",e[e.video=331]="video",e[e.voicemail=332]="voicemail",e[e.voicemailForward=333]="voicemailForward",e[e.voicemailReply=334]="voicemailReply",e[e.waffle=335]="waffle",e[e.work=336]="work",e[e.wrench=337]="wrench",e[e.x=338]="x",e[e.xCircle=339]="xCircle"}(t.IconEnum||(t.IconEnum={}));t.IconEnum},function(e,t,n){"use strict";var i=n(2),r=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.template=''}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n){i.isDefined(n.disabled)&&t.find("label").eq(0).addClass("is-disabled"),i.isDefined(n.required)&&t.find("label").eq(0).addClass("is-required")},e}();t.LabelDirective=r,t.module=i.module("officeuifabric.components.label",["officeuifabric.components"]).directive("uifLabel",r.factory())},function(e,t,n){"use strict";var i=n(2),r=function(){function e(){this.restrict="E",this.template='',this.scope={ngHref:"@"},this.transclude=!0,this.replace=!0}return e.factory=function(){var t=function(){return new e};return t},e}();t.LinkDirective=r,t.module=i.module("officeuifabric.components.link",["officeuifabric.components"]).directive("uifLink",r.factory())},function(e,t,n){"use strict";var i=n(2),r=n(15),o=function(){function e(e,t,n,i){this.$scope=e,this.$animate=t,this.$element=n,this.$log=i}return e.prototype.openMobileMenu=function(){var e=this.$element.hasClass("is-open");this.$animate[e?"removeClass":"addClass"](this.$element,"is-open")},e.prototype.closeMobileMenu=function(){this.$element.hasClass("is-open")&&this.$animate.removeClass(this.$element,"is-open")},e.prototype.closeAllContextMenus=function(){for(var e=this.$element[0].querySelectorAll(".ms-NavBar-item"),t=0;t\n
\n \n
\n \n
\n \n
\n ',this.scope={overlay:"@?uifOverlay"},this.link=function(e,t,n,r,o){i.$document.on("click",function(){r.closeAllContextMenus(),r.hideSearchTextBox()}),o(function(e){var n=angular.element(t[0].querySelector(".uif-nav-items"));n.replaceWith(e)})}}return e.factory=function(){var t=function(t,n,i){return new e(t,n,i)};return t.$inject=["$log","$animate","$document"],t},e.directiveName="uifNavBar",e.overlayValues=["light","dark"],e}();t.NavBarDirective=s;var a;!function(e){e[e.link=0]="link",e[e.menu=1]="menu"}(a||(a={}));var c=function(){function e(e,t){this.$scope=e,this.$element=t}return e.prototype.closeContextualMenu=function(){this.$scope.hasChildMenu&&this.$scope.contextMenuCtrl.closeMenu()},e.prototype.deselectItem=function(){this.$element.removeClass("is-selected")},e.$inject=["$scope","$element"],e}();t.NavBarItemController=c;var l=function(){function e(e){var t=this;this.$log=e,this.replace=!0,this.restrict="E",this.transclude=!0,this.controller=c,this.require="^"+s.directiveName,this.scope={isDisabled:"@?disabled",position:"@?uifPosition",text:"=?uifText",type:"@?uifType"},this.templateTypes={},this.template=function(e,n){var r=n.uifType;return i.isUndefined(r)?t.templateTypes[a.link]:void 0===a[r]?(t.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.navbar - unsupported nav bar item type:\nthe type '"+r+"' is not supported by ng-Office UI Fabric as valid type for nav bar item.Supported types can be found under NavBarItemTypes enum here:\nhttps://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/navbar/navbarDirective.ts"),""):t.templateTypes[a[r]]},this.link=function(e,n,o,s,c){i.isUndefined(e.type)&&(e.type=a[a.link]),e.selectItem=function(t){t.stopPropagation(),n.hasClass("is-disabled")||(n.parent().find("li").removeClass("is-selected"),s.closeAllContextMenus(),s.hideSearchTextBox(),n.toggleClass("is-selected"),e.hasChildMenu&&e.contextMenuCtrl.isMenuOpened()?(e.contextMenuCtrl.closeMenu(),n.removeClass("is-selected")):e.hasChildMenu&&!e.contextMenuCtrl.isMenuOpened()?(e.contextMenuCtrl.openMenu(),n.addClass("is-selected")):e.hasChildMenu||s.closeMobileMenu(),e.$apply())},n.on("click",e.selectItem),t.transcludeChilds(e,n,c);var l=angular.element(n[0].querySelector(".ms-ContextualMenu")).controller(r.ContextualMenuDirective.directiveName);l&&(e.hasChildMenu=!0,e.contextMenuCtrl=l,e.contextMenuCtrl.onRootMenuClosed.push(function(){s.closeMobileMenu(),n.removeClass("is-selected")}))},this.templateTypes[a.link]="\n
\n \n
",
this.templateTypes[a.menu]='\n
\n \n \n \n
'}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.transcludeChilds=function(e,t,n){var i=this;n(function(n){var r=i.hasItemContent(n);r||e.text||i.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.navbar - you need to provide a text for a nav bar menu item.\nFor you need to specify either 'uif-text' as attribute or as a child directive"),i.insertLink(n,e,t),i.insertMenu(n,e,t)})},e.prototype.insertLink=function(e,t,n){var i=angular.element(n[0].querySelector(".uif-nav-item-content"));if(this.hasItemContent(e))for(var r=0;r"+t.text+""))},e.prototype.insertMenu=function(e,t,n){for(var i=0;i\n
\n \n
\n ',this.link=function(e,t,n,i,o){r.$document.on("click",function(){i[1].closeSearch()}),e.skipOnClick=function(e){r.applyCssClasses(t),e.stopPropagation()},e.onSearch=function(n){i[0].closeAllContextMenus(),n instanceof KeyboardEvent&&13===n.which&&e.onSearchCallback?e.onSearchCallback({search:e.searchText}):n instanceof MouseEvent&&t.hasClass("is-open")&&e.onSearchCallback&&e.onSearchCallback({search:e.searchText}),r.applyCssClasses(t),n.stopPropagation()}}}return e.factory=function(){var t=function(t,n,i){return new e(t,n,i)};return t.$inject=["$document","$animate","$timeout"],t},e.prototype.applyCssClasses=function(e){e.hasClass("is-open")||(this.$animate.addClass(e,"is-open"),this.$timeout(function(){angular.element(e[0].querySelector(".ms-TextField-field"))[0].focus()},1)),e.parent().find("li").removeClass("is-selected"),this.$animate.addClass(e,"is-selected")},e.directiveName="uifNavBarSearch",e}();t.NavBarSearch=d,t.module=i.module("officeuifabric.components.navbar",["officeuifabric.components"]).directive(s.directiveName,s.factory()).directive(l.directiveName,l.factory()).directive(d.directiveName,d.factory())},function(e,t,n){"use strict";var i=n(2),r=n(26),o=(function(){function e(e){this.log=e}return e.$inject=["$log"],e}(),function(){function e(t){this.log=t,this.restrict="E",this.template="",this.scope={uifMode:"@"},this.transclude=!0,e.log=t}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.link=function(t){t.$watch("uifMode",function(n,i){void 0===r.OverlayMode[n]&&e.log.error("Error [ngOfficeUiFabric] officeuifabric.components.overlay - Unsupported overlay mode: The overlay mode ('"+t.uifMode+"') is not supported by the Office UI Fabric. Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/overlay/overlayModeEnum.ts")})},e}());t.OverlayDirective=o,t.module=i.module("officeuifabric.components.overlay",["officeuifabric.components"]).directive("uifOverlay",o.factory())},function(e,t){"use strict";!function(e){e[e.light=0]="light",e[e.dark=1]="dark"}(t.OverlayMode||(t.OverlayMode={}));t.OverlayMode},function(e,t,n){"use strict";var i=n(2),r=n(28),o=n(29),s=n(30),a=n(31),c=function(){function e(){var e=this;this.restrict="E",this.transclude=!0,this.replace=!0,this.require=["uifPersonaCard"],this.controller=l,this.scope={uifPresence:"@",uifSize:"@",uifImageUrl:"@"},this.template='
',this.link=function(t,n,c,l,u){var d=l[0],f=n.find("uif-icon");return f.addClass("ms-Persona-placeholder"),i.isDefined(c.uifSize)&&i.isUndefined(r.PersonaSize[c.uifSize])?void d.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.personacard - "'+c.uifSize+'" is not a valid value for uifSize. It should be xsmall, small, medium, large, xlarge.'):i.isDefined(c.uifStyle)&&i.isUndefined(s.PersonaStyleEnum[c.uifStyle])?void d.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.personacard - "'+c.uifStyle+'" is not a valid value for uifStyle. It should be round or square.'):i.isDefined(c.uifPresence)&&i.isUndefined(a.PresenceEnum[c.uifPresence])?void d.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.personacard - "'+c.uifPresence+'" is not a valid value for uifPresence. It should be available, away, blocked, busy, dnd or offline.'):(t.getActionClasses=function(e){var t=[],n=o.PlaceholderEnum[e.placeholder];switch(n){case o.PlaceholderEnum.topright:t.push("ms-PersonaCard-action"),t.push("ms-PersonaCard-orgChart");break;case o.PlaceholderEnum.regular:t.push("ms-PersonaCard-action")}return e.isActive&&t.push("is-active"),t.join(" ")},t.getPersonaClasses=function(){var e=[];switch(s.PersonaStyleEnum[c.uifStyle]===s.PersonaStyleEnum.square&&e.push("ms-Persona--square"),r.PersonaSize[c.uifSize]){case r.PersonaSize.xsmall:e.push("ms-Persona--xs");break;case r.PersonaSize.small:e.push("ms-Persona--sm");break;case r.PersonaSize.large:e.push("ms-Persona--lg");break;case r.PersonaSize.xlarge:e.push("ms-Persona--xl")}switch(a.PresenceEnum[c.uifPresence]){case a.PresenceEnum.available:e.push("ms-Persona--available");break;case a.PresenceEnum.away:e.push("ms-Persona--away");break;case a.PresenceEnum.blocked:e.push("ms-Persona--blocked");break;case a.PresenceEnum.busy:e.push("ms-Persona--busy");break;case a.PresenceEnum.dnd:e.push("ms-Persona--dnd");break;default:e.push("ms-Persona--offline")}return e.join(" ")},t.getPersonaCardClasses=function(){return s.PersonaStyleEnum[c.uifStyle]===s.PersonaStyleEnum.square?"ms-PersonaCard--square":""},void u(function(r){for(var s=i.element(n[0].getElementsByClassName("ms-Persona-details")),a=i.element(n[0].getElementsByClassName("ms-PersonaCard-actionDetailBox")).find("ul").eq(0),c=i.element(n[0].getElementsByClassName("ms-PersonaCard-actions")),l=0;l';return i},i.isUndefined(this.availableClasses[this.directiveType])&&(this.directiveType="optional")}return e.factory=function(t){var n=function(){return new e(t)};return n},e}();t.PersonaCardTextDirective=d;var f=function(){function e(e){var t=this;this.$log=e,this.restrict="E",this.transclude=!0,this.replace=!1,this.require="^?uifPersonaCard",this.scope=!1,this.template=function(e,n){return i.isDefined(n.uifPlaceholder)&&i.isUndefined(o.PlaceholderEnum[n.uifPlaceholder])?(t.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.personacard - "'+n.uifPlaceholder+'" is not a valid value for uifPlaceholder. It should be regular, topright or overflow.'),""):o.PlaceholderEnum[n.uifPlaceholder]===o.PlaceholderEnum.overflow?'':''}}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e}();t.PersonaCardActionDirective=f;var p=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.scope=!1,this.template=''}return e.factory=function(){var t=function(){return new e};return t},e}();t.PersonaCardDetailLabelDirective=p;var m=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.scope=!1,this.template=''}return e.factory=function(){var t=function(){return new e};return t},e}();t.PersonaCardDetailLineDirective=m,t.module=i.module("officeuifabric.components.personacard",["officeuifabric.components"]).directive("uifPersonaCard",c.factory()).directive("uifPersonaCardAction",f.factory()).directive("uifPersonaCardDetailLabel",p.factory()).directive("uifPersonaCardDetailLine",m.factory()).directive("uifPersonaCardPrimaryText",d.factory("primary")).directive("uifPersonaCardSecondaryText",d.factory("secondary")).directive("uifPersonaCardTertiaryText",d.factory("tertiary")).directive("uifPersonaCardOptionalText",d.factory(""))},function(e,t){"use strict";!function(e){e[e.xsmall=0]="xsmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large",e[e.xlarge=4]="xlarge"}(t.PersonaSize||(t.PersonaSize={}));t.PersonaSize},function(e,t){"use strict";!function(e){e[e.regular=0]="regular",e[e.topright=1]="topright",e[e.overflow=2]="overflow"}(t.PlaceholderEnum||(t.PlaceholderEnum={}));t.PlaceholderEnum},function(e,t){"use strict";!function(e){e[e.round=0]="round",e[e.square=1]="square"}(t.PersonaStyleEnum||(t.PersonaStyleEnum={}));t.PersonaStyleEnum},function(e,t){"use strict";!function(e){e[e.available=0]="available",e[e.away=1]="away",e[e.blocked=2]="blocked",e[e.busy=3]="busy",e[e.dnd=4]="dnd",e[e.offline=5]="offline"}(t.PresenceEnum||(t.PresenceEnum={}));t.PresenceEnum},function(e,t,n){"use strict";var i=n(2),r=n(30),o=n(31),s=n(33),a=n(34),c=function(){function e(e){var t=this;this.directiveType=e,this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.availableClasses={primary:"ms-Persona-primaryText",secondary:"ms-Persona-secondaryText",tertiary:"ms-Persona-tertiaryText",optional:"ms-Persona-optionalText"},this.template=function(e,n){var i='';return i},i.isUndefined(this.availableClasses[this.directiveType])&&(this.directiveType="optional")}return e.factory=function(t){var n=function(){return new e(t)};return n},e}();t.PersonaTextDirective=c;var l=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.require=["^uifPersona"],this.scope={uifColor:"@"},this.template=' ',this.link=function(e,t,n,r){var o=r[0];i.isUndefined(n.uifColor)&&(e.uifColor=s.PersonaInitialsColor[s.PersonaInitialsColor.blue]),e.$watch("uifColor",function(e){i.isUndefined(s.PersonaInitialsColor[e])&&o.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.persona - "'+e+'" is not a valid value for uifColor. It should be lightBlue, blue, darkBlue, teal, lightGreen, green, darkGreen, lightPink, pink, magenta, purple, black, orange, red or darkRed.')})}}return e.factory=function(){var t=function(){return new e};return t},e}();t.PersonaInitialsDirective=l;var u=function(){function e(){var e=this;this.restrict="E",this.transclude=!0,this.replace=!0,this.require=["uifPersona"],this.controller=d,this.scope={uifPresence:"@",uifSize:"@",uifImageUrl:"@"},this.template='
',this.uifSizeClasses=(t={},t[a.PersonaSize.tiny]="ms-Persona--tiny",t[a.PersonaSize.xsmall]="ms-Persona--xs",t[a.PersonaSize.small]="ms-Persona--sm",t[a.PersonaSize.large]="ms-Persona--lg",t[a.PersonaSize.xlarge]="ms-Persona--xl",t),this.uifPresenceClasses=(n={},n[o.PresenceEnum.available]="ms-Persona--available",n[o.PresenceEnum.away]="ms-Persona--away",n[o.PresenceEnum.blocked]="ms-Persona--blocked",n[o.PresenceEnum.busy]="ms-Persona--busy",n[o.PresenceEnum.dnd]="ms-Persona--dnd",n[o.PresenceEnum.offline]="ms-Persona--offline",n),this.link=function(t,n,s,c,l){var u=c[0];return i.isDefined(s.uifSize)&&i.isUndefined(a.PersonaSize[s.uifSize])?void u.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.persona - "'+s.uifSize+'" is not a valid value for uifSize. It should be tiny, xsmall, small, medium, large, xlarge.'):i.isDefined(s.uifStyle)&&i.isUndefined(r.PersonaStyleEnum[s.uifStyle])?void u.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.persona - "'+s.uifStyle+'" is not a valid value for uifStyle. It should be round or square.'):i.isDefined(s.uifPresence)&&i.isUndefined(o.PresenceEnum[s.uifPresence])?void u.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.persona - "'+s.uifPresence+'" is not a valid value for uifPresence. It should be available, away, blocked, busy, dnd or offline.'):(t.getImageAreaVisibility=function(){return a.PersonaSize[s.uifSize]!==a.PersonaSize.tiny},t.getPersonaClasses=function(){var t=[],n=a.PersonaSize[s.uifSize],c=i.isDefined(s.uifPresence)?o.PresenceEnum[s.uifPresence]:o.PresenceEnum.offline;r.PersonaStyleEnum[s.uifStyle]===r.PersonaStyleEnum.square&&t.push("ms-Persona--square");var l=e.uifSizeClasses[n];return i.isDefined(l)&&t.push(l),t.push(e.uifPresenceClasses[c]),t.join(" ")},void l(function(e){for(var t=i.element(n[0].getElementsByClassName("ms-Persona-details")),r=i.element(n[0].getElementsByClassName("ms-Persona-imageArea")),o=0;o
{{uifName}}
{{uifDescription}}
',this.scope={uifDescription:"@",uifName:"@",uifPercentComplete:"@"},e.log=t}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.link=function(t){t.$watch("uifPercentComplete",function(n,i){if(null==n||""===n)return void(t.uifPercentComplete=0);var r=parseFloat(n);(isNaN(r)||0>r||r>100)&&(e.log.error("Error [ngOfficeUiFabric] officeuifabric.components.progressindicator - Percent complete must be a valid number between 0 and 100."),t.uifPercentComplete=Math.max(Math.min(r,100),0))})},e}();t.ProgressIndicatorDirective=r,t.module=i.module("officeuifabric.components.progressindicator",["officeuifabric.components"]).directive("uifProgressIndicator",r.factory())},function(e,t,n){"use strict";var i=n(2),r=function(){function e(){this.template='',this.scope={placeholder:"=?",value:"=?"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n){e.isFocus=!1,e.isCancel=!1,e.isLabelHidden=!1,e.isActive=!1,e.inputFocus=function(){e.isFocus=!0,e.isLabelHidden=!0,e.isActive=!0},e.inputBlur=function(){e.isCancel&&(e.value="",e.isLabelHidden=!1),e.isActive=!1,"undefined"!=typeof e.value&&""!==e.value||(e.isLabelHidden=!1),e.isFocus=e.isCancel=!1},e.btnMousedown=function(){e.isCancel=!0},e.$watch("value",function(t){e.isFocus||(t&&""!==t?e.isLabelHidden=!0:e.isLabelHidden=!1,e.value=t)}),e.$watch("placeholder",function(t){e.placeholder=t})},e}();t.SearchBoxDirective=r,t.module=i.module("officeuifabric.components.searchbox",["officeuifabric.components"]).directive("uifSearchbox",r.factory())},function(e,t,n){"use strict";var i=n(2),r=n(38),o=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='',this.controller=s,this.scope={ngShow:"=",uifSize:"@"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,o,s){i.isDefined(n.uifSize)&&(i.isUndefined(r.SpinnerSize[n.uifSize])&&o.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.spinner - Unsupported size: Spinner size ('"+n.uifSize+"') is not supported by the Office UI Fabric."),r.SpinnerSize[n.uifSize]===r.SpinnerSize.large&&t.addClass("ms-Spinner--large")),null!=n.ngShow?e.$watch("ngShow",function(e,t,n){e?n.start():n.stop()}):e.start(),s(function(e){if(e.length>0){var n=i.element("");n.addClass("ms-Spinner-label").append(e),t.append(n)}}),e.init()},e}();t.SpinnerDirective=o;var s=function(){function e(e,t,n,i){var o=this;this.$scope=e,this.$element=t,this.$interval=n,this.$log=i,this._offsetSize=.179,this._numCircles=8,this._animationSpeed=90,this._circles=[],e.init=function(){o._parentSize=r.SpinnerSize[o.$scope.uifSize]===r.SpinnerSize.large?28:20,o.createCirclesAndArrange(),o.setInitialOpacity()},e.start=function(){o._animationInterval=n(function(){for(var e=o._circles.length;e--;)o.fadeCircle(o._circles[e])},o._animationSpeed)},e.stop=function(){n.cancel(o._animationInterval)}}return e.prototype.createCirclesAndArrange=function(){for(var e=0,t=this._parentSize*this._offsetSize,n=2*Math.PI/this._numCircles,i=this._numCircles,r=.5*(this._parentSize-t);i--;){var o=this.createCircle(),s=Math.round(.5*this._parentSize+r*Math.cos(e)-.5*o[0].clientWidth)-.5*t,c=Math.round(.5*this._parentSize+r*Math.sin(e)-.5*o[0].clientHeight)-.5*t;this.$element.append(o),o.css("left",s+"px"),o.css("top",c+"px"),e+=n;var l=new a(o,i);this._circles.push(l)}},e.prototype.createCircle=function(){var e=i.element(""),t=this._parentSize*this._offsetSize+"px";return e.addClass("ms-Spinner-circle").css("width",t).css("height",t),e},e.prototype.setInitialOpacity=function(){var e,t=this;this._fadeIncrement=1/this._numCircles,this._circles.forEach(function(n,i){e=t._fadeIncrement*(i+1),n.opacity=e})},e.prototype.fadeCircle=function(e){var t=e.opacity-this._fadeIncrement;0>=t&&(t=1),e.opacity=t},e.$inject=["$scope","$element","$interval","$log"],e}(),a=function(){function e(e,t){this.circleElement=e,this.circleIndex=t}return Object.defineProperty(e.prototype,"opacity",{get:function(){return+this.circleElement.css("opacity")},set:function(e){this.circleElement.css("opacity",e)},enumerable:!0,configurable:!0}),e}();t.module=i.module("officeuifabric.components.spinner",["officeuifabric.components"]).directive("uifSpinner",o.factory())},function(e,t){"use strict";!function(e){e[e.small=0]="small",e[e.large=1]="large"}(t.SpinnerSize||(t.SpinnerSize={}));t.SpinnerSize},function(e,t,n){"use strict";var i=n(2),r=n(40),o=function(){function e(e,t){this.$scope=e,this.$log=t,this.$scope.orderBy=null,this.$scope.orderAsc=!0,this.$scope.rows=[]}return Object.defineProperty(e.prototype,"orderBy",{get:function(){return this.$scope.orderBy},set:function(e){this.$scope.orderBy=e,this.$scope.$digest()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderAsc",{get:function(){return this.$scope.orderAsc},set:function(e){this.$scope.orderAsc=e,this.$scope.$digest()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowSelectMode",{get:function(){return this.$scope.rowSelectMode},set:function(e){void 0===r.TableRowSelectModeEnum[e]&&this.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.table. '"+e+"' is not a valid option for 'uif-row-select-mode'. Valid options are none|single|multiple."),this.$scope.rowSelectMode=e,this.$scope.$digest()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this.$scope.rows},set:function(e){this.$scope.rows=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){for(var e=[],t=0;t',this.controller=o,this.controllerAs="table"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,i){void 0!==n.uifRowSelectMode&&null!==n.uifRowSelectMode&&(void 0===r.TableRowSelectModeEnum[n.uifRowSelectMode]?i.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.table. '"+n.uifRowSelectMode+"' is not a valid option for 'uif-row-select-mode'. Valid options are none|single|multiple."):e.rowSelectMode=n.uifRowSelectMode),void 0===e.rowSelectMode&&(e.rowSelectMode=r.TableRowSelectModeEnum[r.TableRowSelectModeEnum.none])},e}();t.TableDirective=s;var a=function(){function e(e,t){this.$scope=e,this.$log=t}return Object.defineProperty(e.prototype,"item",{get:function(){return this.$scope.item},set:function(e){this.$scope.item=e,this.$scope.$digest()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.$scope.selected},set:function(e){this.$scope.selected=e,this.$scope.$digest()},enumerable:!0,configurable:!0}),e.$inject=["$scope","$log"],e}(),c=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='',this.require="^uifTable",this.scope={item:"=uifItem"},this.controller=a}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,i){if(void 0!==n.uifSelected&&null!==n.uifSelected){var o=n.uifSelected.toLowerCase();"true"!==o&&"false"!==o?i.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.table. '"+n.uifSelected+"' is not a valid boolean value. Valid options are true|false."):"true"===o&&(e.selected=!0)}void 0!==e.item&&i.rows.push(e),e.rowClick=function(t){e.selected=!e.selected,e.$apply()},e.$watch("selected",function(e,n,o){if(e===!0){if(i.rowSelectMode===r.TableRowSelectModeEnum[r.TableRowSelectModeEnum.single]&&i.rows)for(var s=0;s',this.replace=!0,this.require=["^uifTable","^uifTableRow"]}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,i){e.rowSelectClick=function(t){var n=i[0],o=i[1];if(n.rowSelectMode===r.TableRowSelectModeEnum[r.TableRowSelectModeEnum.multiple]&&(void 0===o.item||null===o.item)){for(var s=!1,a=0;a',this.replace=!0}return e.factory=function(){var t=function(){return new e};return t},e}();t.TableCellDirective=u;var d=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='',this.require="^uifTable"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,n,i){e.headerClick=function(e){i.orderBy===n.uifOrderBy?i.orderAsc=!i.orderAsc:(i.orderBy=n.uifOrderBy,i.orderAsc=!0)},e.$watch("table.orderBy",function(e,i,r){if(i!==e&&e===n.uifOrderBy){for(var o=t.parent().children(),s=0;s ')}}),e.$watch("table.orderAsc",function(e,n,i){if(2===t.children().length){var r=n?"ms-Icon--caretDown":"ms-Icon--caretUp",o=e?"ms-Icon--caretDown":"ms-Icon--caretUp";t.children().eq(1).children().eq(0).removeClass(r).addClass(o)}}),"uifOrderBy"in n&&t.on("click",e.headerClick)},e}();t.TableHeaderDirective=d,t.module=i.module("officeuifabric.components.table",["officeuifabric.components"]).directive("uifTable",s.factory()).directive("uifTableRow",c.factory()).directive("uifTableRowSelect",l.factory()).directive("uifTableCell",u.factory()).directive("uifTableHeader",d.factory())},function(e,t){"use strict";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(t.TableRowSelectModeEnum||(t.TableRowSelectModeEnum={}));t.TableRowSelectModeEnum},function(e,t,n){"use strict";var i=n(2),r=function(){function e(){this.template="