diff --git a/samples/angular-ngofficeuifabric-file-upload/README.md b/samples/angular-ngofficeuifabric-file-upload/README.md
index e1b6e6b51..36c70cafb 100644
--- a/samples/angular-ngofficeuifabric-file-upload/README.md
+++ b/samples/angular-ngofficeuifabric-file-upload/README.md
@@ -3,11 +3,11 @@
## Summary
File Update/Delete webpart using AngularJs and ngOfficeUIFabric with the SharePoint Framework.
-![File Upload using Angular](./assets/NG File Upload.png)
+![File Upload using Angular](http://i.imgur.com/U5qg4II.png)
Edit webpart properties to set Document library Name. Initially, It has been set to `Documents`.
-## Used SharePoint Framework Version
+## Used SharePoint Framework Version
![drop](https://img.shields.io/badge/version-GA-green.svg)
## Applies to
@@ -27,6 +27,7 @@ Version|Date|Comments
-------|----|--------
1.0|November 24, 2016|Initial release
2.0|May 26, 2017|GA release
+2.1|July 19, 2017|Bug fix
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
@@ -48,4 +49,4 @@ This Web Part illustrates the following concepts on top of the SharePoint Framew
- `CustomFileChange`: It's a custom Angular directive. It binds the file with model on file change event.
- `IsoToDateString`: It's a custom Angular filter. It formats ISO date string to `{0:yyyy}-{0:MM}-{0:dd}` format.
-
\ No newline at end of file
+
diff --git a/samples/angular-ngofficeuifabric-file-upload/dist/angular-file-upload.bundle.js b/samples/angular-ngofficeuifabric-file-upload/dist/angular-file-upload.bundle.js
index eb99f302a..049f200ad 100644
--- a/samples/angular-ngofficeuifabric-file-upload/dist/angular-file-upload.bundle.js
+++ b/samples/angular-ngofficeuifabric-file-upload/dist/angular-file-upload.bundle.js
@@ -1,4 +1,4 @@
-define("e949042a-35e8-4e87-bc5a-0842f95f1e5f_0.0.1", ["@microsoft/sp-core-library","@microsoft/sp-webpart-base","@microsoft/sp-loader","angularFileUploadStrings"], function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_18__) { return /******/ (function(modules) { // webpackBootstrap
+define("e949042a-35e8-4e87-bc5a-0842f95f1e5f_0.0.1", ["@microsoft/sp-core-library","@microsoft/sp-webpart-base","@microsoft/sp-loader","angularFileUploadStrings"], function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_9__) { return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
@@ -53,10 +53,15 @@ define("e949042a-35e8-4e87-bc5a-0842f95f1e5f_0.0.1", ["@microsoft/sp-core-librar
var sp_core_library_1 = __webpack_require__(1);
var sp_webpart_base_1 = __webpack_require__(2);
var sp_loader_1 = __webpack_require__(3);
- var angular = __webpack_require__(4);
- __webpack_require__(6);
- var AngularFileUpload_module_scss_1 = __webpack_require__(13);
- var strings = __webpack_require__(18);
+ var AngularFileUpload_module_scss_1 = __webpack_require__(4);
+ var strings = __webpack_require__(9);
+ var angular = __webpack_require__(10);
+ __webpack_require__(12);
+ var baseSvc_1 = __webpack_require__(13);
+ var fileUploadSvc_1 = __webpack_require__(14);
+ var fileUploadCtrl_1 = __webpack_require__(15);
+ var customFileChange_1 = __webpack_require__(16);
+ var isoToDateString_1 = __webpack_require__(17);
var AngularFileUploadWebPart = (function (_super) {
__extends(AngularFileUploadWebPart, _super);
function AngularFileUploadWebPart(context) {
@@ -68,13 +73,28 @@ define("e949042a-35e8-4e87-bc5a-0842f95f1e5f_0.0.1", ["@microsoft/sp-core-librar
AngularFileUploadWebPart.prototype.render = function () {
if (this.renderedOnce === false) {
this.domElement.innerHTML = "\n
',this.controller=s,this.require="uifBreadcrumb",this.scope={uifBreadcrumbLinks:"="},this.SMALL_BREAK_POINT=639,this.link=function(t,i,r,o){t.visibleElements=4,t.overflowMenuOpen=!1,t.isOverflow=function(){var e=!1;return e=n.isDefined(t.uifBreadcrumbLinks)&&t.uifBreadcrumbLinks.length>t.visibleElements},t.overflowElements=function(){return t.isOverflow()?t.uifBreadcrumbLinks.length-t.visibleElements:0},t.openOverflow=function(e){e.stopPropagation(),t.overflowMenuOpen=!0},n.element(o.$window).bind("resize",function(){t.onResize(),t.$digest()}),o.$document.find("html").on("click",function(e){t.overflowMenuOpen=!1,t.$apply()}),t.onResize=function(i){void 0===i&&(i=window.innerWidth);var n=i>e.SMALL_BREAK_POINT?4:2;n!==t.visibleElements&&(t.visibleElements=n,t.$apply())},t.onResize()}}return e.factory=function(){var t=function(){return new e};return t},e}();t.BreadcrumbDirective=c,t.module=n.module("officeuifabric.components.breadcrumb",["officeuifabric.components"]).directive("uifBreadcrumb",c.factory()).directive("uifBreadcrumbLink",r.factory())},function(e,t,i){"use strict";var n=i(2),r=i(6),o=i(7),s=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}(),c=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,i){switch(!n.isUndefined(i.uifType)&&n.isUndefined(r.ButtonTypeEnum[i.uifType])&&t.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.button - Unsupported button: The button ('"+i.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"),i.uifType){case r.ButtonTypeEnum[r.ButtonTypeEnum.primary]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.primaryButton]:t.templateOptions[o.ButtonTemplateType.primaryLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.command]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.commandButton]:t.templateOptions[o.ButtonTemplateType.commandLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.compound]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.compoundButton]:t.templateOptions[o.ButtonTemplateType.compoundLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.hero]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.heroButton]:t.templateOptions[o.ButtonTemplateType.heroLink];default:return n.isUndefined(i.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,i){return{post:this.postLink,pre:this.preLink}},e.prototype.preLink=function(e,t,i,n,r){i.$observe("disabled",function(t){e.disabled=!!t}),t.on("click",function(t){e.disabled&&t.preventDefault()})},e.prototype.postLink=function(e,t,i,o,s){if(n.isUndefined(i.uifType)||i.uifType===r.ButtonTypeEnum[r.ButtonTypeEnum.primary]||i.uifType===r.ButtonTypeEnum[r.ButtonTypeEnum.compound]){var c=t.find("uif-icon");0!==c.length&&(c.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(i.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=n.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=n.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=c;var a=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=a,t.module=n.module("officeuifabric.components.button",["officeuifabric.components"]).directive("uifButton",c.factory()).directive("uifButtonDescription",a.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,i){"use strict";var n=i(2),r=i(9),o=i(10),s=function(){function e(e,t){this.$scope=e,this.$log=t}return e.$inject=["$scope","$log"],e}();t.CalloutController=s;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.prototype.link=function(e,t,i,r){var o=t.parent().parent();if(!n.isUndefined(o)&&o.hasClass("ms-Callout-main")){var s=t.detach();o.prepend(s)}},e}();t.CalloutHeaderDirective=c;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}();t.CalloutContentDirective=a;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,i,r){n.isObject(r)&&r.$scope.$watch("hasSeparator",function(e){if(e)for(var i=t.children().eq(0).children(),n=0;n"+'
',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,i,s){var c=s[0];if(i.$observe("uifType",function(e){n.isUndefined(r.CalloutType[e])&&c.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.callout - "'+e+'" is not a valid value for uifType. It should be oobe or peek')}),i.uifArrow||(e.arrowDirection="Left"),i.$observe("uifArrow",function(t){if(n.isUndefined(o.CalloutArrow[t]))return void c.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.callout - "'+t+'" is not a valid value for uifArrow. It should be left, right, top, bottom.');var i=t.charAt(0).toUpperCase();i+=t.slice(1).toLowerCase(),e.arrowDirection=i}),e.hasSeparator=!n.isUndefined(i.uifActionText)||!n.isUndefined(i.uifSeparator),!n.isUndefined(i.uifClose)){e.closeButton=!0;var a=n.element(''),l=t.find("div").eq(0);l.append(a),a.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,i){var n=!t&&e.closeButtonClicked;return n?void(e.ngShow=e.closeButtonClicked=!1):void(t||(e.ngShow=e.isMouseOver))}),e.$watch("isMouseOver",function(t,i){!t&&i&&(e.closeButton||(e.ngShow=!1))})},e}();t.CalloutDirective=u,t.module=n.module("officeuifabric.components.callout",["officeuifabric.components"]).directive("uifCallout",u.factory()).directive("uifCalloutHeader",c.factory()).directive("uifCalloutContent",a.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,i){"use strict";var n=i(2),r=i(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,i){var n=e.find("input");return"ngModel"in t||n.removeAttr("ng-model"),{pre:this.preLink}},e.prototype.preLink=function(e,t,i,n,o){var s=n[0],c=n[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!=c){var a=function(){var e=c.getViewValue()===i.value;t.find("input").prop("checked",e)};c.addRender(a),i.$observe("value",a),t.on("$destroy",function(){c.removeRender(a)})}var l=e.$parent.$parent,u=function(){e.disabled="disabled"in i&&i.disabled,e.disabled=e.disabled||null!=l&&l.disabled};e.$watch(function(){return t.attr("disabled")},function(e){u()}),e.$watch(function(){return null==l?"":l.disabled},function(e){u()}),u(),t.on("click",function(t){e.disabled||(null!=c&&c.setTouched(),e.$apply(function(){null!=c&&c.setViewValue(i.value,t)}))})},e}();t.ChoicefieldOptionDirective=s;var c=function(){function e(){this.template='
',this.transclude=!0,this.replace=!0,this.controller=a,this.require="^?uifCommandBarMain"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,i){return{post:this.postLink}},e.prototype.postLink=function(e,t,i,r,o){o(function(e){var i;i={};for(var o=0;o uif-icon")).length&&n.element(t[0].querySelector(".ms-CommandBarItem")).addClass("ms-CommandBarItem-hasTextOnly")},e}();t.CommandBarItemDirective=l,t.module=n.module("officeuifabric.components.commandbar",["officeuifabric.components"]).directive("uifCommandBar",r.factory()).directive("uifCommandBarSearch",o.factory()).directive("uifCommandBarItem",l.factory()).directive("uifCommandBarMain",c.factory()).directive("uifCommandBarSide",s.factory())},function(e,t,i){"use strict";var n=i(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=n.module("officeuifabric.components.content",["officeuifabric.components"]).directive(r.directiveName,r.factory())},function(e,t,i){"use strict";var n,r=i(2);!function(e){e[e.link=0]="link",e[e.divider=1]="divider",e[e.header=2]="header",e[e.subMenu=3]="subMenu"}(n||(n={}));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={isSelected:"=?uifIsSelected",onClick:"&ngClick",text:"=?uifText",type:"@uifType"},this.templateTypes={},this.template=function(e,i){var o=i.uifType;return r.isUndefined(o)?t.templateTypes[n.link]:(void 0===n[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[n[o]])},this.link=function(e,i,n,o,s){"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."),n.$observe("disabled",function(t){e.isDisabled=!!t}),t.transcludeChilds(e,i,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,i){e.hasChildMenu&&e.$id!==i&&e.childMenuCtrl.closeMenu()})},this.templateTypes[n.subMenu]='
",this.templateTypes[n.divider]=''}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.transcludeChilds=function(e,t,i){var n=this;i(function(i){var r=n.hasItemContent(i);r||e.text||e.hasChildMenu||"divider"===e.type||n.$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"),n.insertItemContent(i,e,t),n.insertSubMenu(i,e,t);
+ !function(e,t){if(true)module.exports=t(__webpack_require__(10));else if("function"==typeof define&&define.amd)define(["angular"],t);else{var i=t("object"==typeof exports?require("angular"):e.angular);for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(this,function(e){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){i(1),e.exports=i(3)},function(e,t,i){"use strict";var n=i(2);t.module=n.module("officeuifabric.core",[])},function(t,i){t.exports=e},function(e,t,i){"use strict";var n=i(2),r=i(4),o=i(5),s=i(8),c=i(11),a=i(13),l=i(14),u=i(15),d=i(16),f=i(17),p=i(19),m=i(20),h=i(21),v=i(23),g=i(24),y=i(25),b=i(29),P=i(30),k=i(32),C=i(33),$=i(35),T=i(37),w=i(42),S=i(45),E=i(48),x=i(49),I=i(50),M=i(52),D=i(55),B=i(57),O=i(58),L=i(62);t.module=n.module("officeuifabric.components",[r.module.name,o.module.name,s.module.name,c.module.name,a.module.name,l.module.name,u.module.name,d.module.name,f.module.name,p.module.name,m.module.name,h.module.name,v.module.name,g.module.name,y.module.name,b.module.name,P.module.name,k.module.name,C.module.name,$.module.name,L.module.name,T.module.name,w.module.name,S.module.name,E.module.name,x.module.name,I.module.name,M.module.name,D.module.name,B.module.name,O.module.name])},function(e,t,i){"use strict";var n=i(2),r=function(){function e(){this.restrict="E",this.require="^uifBreadcrumb",this.transclude=!0,this.replace=!0,this.template='\n
',this.controller=s,this.require="uifBreadcrumb",this.scope={uifBreadcrumbLinks:"="},this.SMALL_BREAK_POINT=639,this.link=function(t,i,r,o){t.visibleElements=4,t.overflowMenuOpen=!1,t.isOverflow=function(){var e=!1;return e=n.isDefined(t.uifBreadcrumbLinks)&&t.uifBreadcrumbLinks.length>t.visibleElements},t.overflowElements=function(){return t.isOverflow()?t.uifBreadcrumbLinks.length-t.visibleElements:0},t.openOverflow=function(e){e.stopPropagation(),t.overflowMenuOpen=!0},n.element(o.$window).bind("resize",function(){t.onResize(),t.$digest()}),o.$document.find("html").on("click",function(e){t.overflowMenuOpen=!1,t.$apply()}),t.onResize=function(i){void 0===i&&(i=window.innerWidth);var n=i>e.SMALL_BREAK_POINT?4:2;n!==t.visibleElements&&(t.visibleElements=n,t.$apply())},t.onResize()}}return e.factory=function(){var t=function(){return new e};return t},e}();t.BreadcrumbDirective=c,t.module=n.module("officeuifabric.components.breadcrumb",["officeuifabric.components"]).directive("uifBreadcrumb",c.factory()).directive("uifBreadcrumbLink",r.factory())},function(e,t,i){"use strict";var n=i(2),r=i(6),o=i(7),s=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}(),c=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,i){switch(!n.isUndefined(i.uifType)&&n.isUndefined(r.ButtonTypeEnum[i.uifType])&&t.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.button - Unsupported button: The button ('"+i.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"),i.uifType){case r.ButtonTypeEnum[r.ButtonTypeEnum.primary]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.primaryButton]:t.templateOptions[o.ButtonTemplateType.primaryLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.command]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.commandButton]:t.templateOptions[o.ButtonTemplateType.commandLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.compound]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.compoundButton]:t.templateOptions[o.ButtonTemplateType.compoundLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.hero]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.heroButton]:t.templateOptions[o.ButtonTemplateType.heroLink];default:return n.isUndefined(i.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,i){return{post:this.postLink,pre:this.preLink}},e.prototype.preLink=function(e,t,i,n,r){i.$observe("disabled",function(t){e.disabled=!!t}),t.on("click",function(t){e.disabled&&t.preventDefault()})},e.prototype.postLink=function(e,t,i,o,s){if(n.isUndefined(i.uifType)||i.uifType===r.ButtonTypeEnum[r.ButtonTypeEnum.primary]||i.uifType===r.ButtonTypeEnum[r.ButtonTypeEnum.compound]){var c=t.find("uif-icon");0!==c.length&&(c.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(i.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=n.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=n.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=c;var a=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=a,t.module=n.module("officeuifabric.components.button",["officeuifabric.components"]).directive("uifButton",c.factory()).directive("uifButtonDescription",a.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,i){"use strict";var n=i(2),r=i(9),o=i(10),s=function(){function e(e,t){this.$scope=e,this.$log=t}return e.$inject=["$scope","$log"],e}();t.CalloutController=s;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.prototype.link=function(e,t,i,r){var o=t.parent().parent();if(!n.isUndefined(o)&&o.hasClass("ms-Callout-main")){var s=t.detach();o.prepend(s)}},e}();t.CalloutHeaderDirective=c;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}();t.CalloutContentDirective=a;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,i,r){n.isObject(r)&&r.$scope.$watch("hasSeparator",function(e){if(e)for(var i=t.children().eq(0).children(),n=0;n"+'
',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,i,s){var c=s[0];if(i.$observe("uifType",function(e){n.isUndefined(r.CalloutType[e])&&c.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.callout - "'+e+'" is not a valid value for uifType. It should be oobe or peek')}),i.uifArrow||(e.arrowDirection="Left"),i.$observe("uifArrow",function(t){if(n.isUndefined(o.CalloutArrow[t]))return void c.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.callout - "'+t+'" is not a valid value for uifArrow. It should be left, right, top, bottom.');var i=t.charAt(0).toUpperCase();i+=t.slice(1).toLowerCase(),e.arrowDirection=i}),e.hasSeparator=!n.isUndefined(i.uifActionText)||!n.isUndefined(i.uifSeparator),!n.isUndefined(i.uifClose)){e.closeButton=!0;var a=n.element(''),l=t.find("div").eq(0);l.append(a),a.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,i){var n=!t&&e.closeButtonClicked;return n?void(e.ngShow=e.closeButtonClicked=!1):void(t||(e.ngShow=e.isMouseOver))}),e.$watch("isMouseOver",function(t,i){!t&&i&&(e.closeButton||(e.ngShow=!1))})},e}();t.CalloutDirective=u,t.module=n.module("officeuifabric.components.callout",["officeuifabric.components"]).directive("uifCallout",u.factory()).directive("uifCalloutHeader",c.factory()).directive("uifCalloutContent",a.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,i){"use strict";var n=i(2),r=i(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,i){var n=e.find("input");return"ngModel"in t||n.removeAttr("ng-model"),{pre:this.preLink}},e.prototype.preLink=function(e,t,i,n,o){var s=n[0],c=n[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!=c){var a=function(){var e=c.getViewValue()===i.value;t.find("input").prop("checked",e)};c.addRender(a),i.$observe("value",a),t.on("$destroy",function(){c.removeRender(a)})}var l=e.$parent.$parent,u=function(){e.disabled="disabled"in i&&i.disabled,e.disabled=e.disabled||null!=l&&l.disabled};e.$watch(function(){return t.attr("disabled")},function(e){u()}),e.$watch(function(){return null==l?"":l.disabled},function(e){u()}),u(),t.on("click",function(t){e.disabled||(null!=c&&c.setTouched(),e.$apply(function(){null!=c&&c.setViewValue(i.value,t)}))})},e}();t.ChoicefieldOptionDirective=s;var c=function(){function e(){this.template='
',this.transclude=!0,this.replace=!0,this.controller=a,this.require="^?uifCommandBarMain"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,i){return{post:this.postLink}},e.prototype.postLink=function(e,t,i,r,o){o(function(e){var i;i={};for(var o=0;o uif-icon")).length&&n.element(t[0].querySelector(".ms-CommandBarItem")).addClass("ms-CommandBarItem-hasTextOnly")},e}();t.CommandBarItemDirective=l,t.module=n.module("officeuifabric.components.commandbar",["officeuifabric.components"]).directive("uifCommandBar",r.factory()).directive("uifCommandBarSearch",o.factory()).directive("uifCommandBarItem",l.factory()).directive("uifCommandBarMain",c.factory()).directive("uifCommandBarSide",s.factory())},function(e,t,i){"use strict";var n=i(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=n.module("officeuifabric.components.content",["officeuifabric.components"]).directive(r.directiveName,r.factory())},function(e,t,i){"use strict";var n,r=i(2);!function(e){e[e.link=0]="link",e[e.divider=1]="divider",e[e.header=2]="header",e[e.subMenu=3]="subMenu"}(n||(n={}));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={isSelected:"=?uifIsSelected",onClick:"&ngClick",text:"=?uifText",type:"@uifType"},this.templateTypes={},this.template=function(e,i){var o=i.uifType;return r.isUndefined(o)?t.templateTypes[n.link]:(void 0===n[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[n[o]])},this.link=function(e,i,n,o,s){"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."),n.$observe("disabled",function(t){e.isDisabled=!!t}),t.transcludeChilds(e,i,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,i){e.hasChildMenu&&e.$id!==i&&e.childMenuCtrl.closeMenu()})},this.templateTypes[n.subMenu]='
",this.templateTypes[n.divider]=''}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.transcludeChilds=function(e,t,i){var n=this;i(function(i){var r=n.hasItemContent(i);r||e.text||e.hasChildMenu||"divider"===e.type||n.$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"),n.insertItemContent(i,e,t),n.insertSubMenu(i,e,t);
})},e.prototype.insertItemContent=function(e,t,i){var n=r.element(i[0].querySelector(".uif-item-content"));if(this.hasItemContent(e))for(var o=0;o"+t.text+""))},e.prototype.insertSubMenu=function(e,t,i){for(var n=0;n',this.replace=!0,this.controller=a,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,i,n){var s=function(t){r.isUndefined(t)?e.closeOnClick=!0:e.closeOnClick="true"===t.toString().toLowerCase()};s(e.closeOnClick),i.$observe("uifCloseOnClick",s);var c=t.controller(o.directiveName);r.isUndefined(c)||c.setChildMenu(n),r.isUndefined(e.multiselect)||"true"!==e.multiselect.toLowerCase()||t.addClass("ms-ContextualMenu--multiselect")},e.directiveName="uifContextualMenu",e}();t.ContextualMenuDirective=c;var a=function(){function e(e,t,i,n){var s=this;this.$scope=e,this.$animate=t,this.$element=i,this.$log=n,this.onRootMenuClosed=[],this.isOpenClassName="is-open",r.isUndefined(i.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"](i,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)&&"true"===this.$scope.multiselect.toLowerCase()},e.prototype.isMenuOpened=function(){return this.$element.hasClass("is-open")},e.$inject=["$scope","$animate","$element","$log"],e}();t.ContextualMenuController=a,t.module=r.module("officeuifabric.components.contextualmenu",["officeuifabric.components"]).directive(c.directiveName,c.factory()).directive(o.directiveName,o.factory())},function(e,t,i){"use strict";var n=i(2),r=function(){function e(e,t){this.$scope=t,this.isPickingYears=!1,this.isPickingMonths=!1,this.displayDateFormat="d mmmm, yyyy",this.jElement=$(e[0]),this.displayDateFormat=t.uifDateFormat,t.ctrl=this}return e.prototype.range=function(e,t,i){i=i||1;for(var n=[],r=e;r<=t;r+=i)n.push(r);return n},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:"",format:t.displayDateFormat,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 i=this.getPicker();i.on({open:function(){t.scrollUp(),n.isDefined(e)&&null!==e&&e.$setTouched(),t.$scope.$apply()},set:function(t){var r=i.get("select","yyyy-mm-dd");n.isDefined(e)&&null!==e&&e.$setViewValue(r)}})},e.prototype.initCustomView=function(){var e=this.jElement.find(".ms-DatePicker-monthComponents"),t=this.jElement.find(".ms-DatePicker-goToday"),i=this.jElement.find(".ms-DatePicker-monthPicker"),n=this.jElement.find(".ms-DatePicker-yearPicker"),r=this.jElement.find(".ms-DatePicker-wrap"),o=this.getPicker(),s=this;e.appendTo(r),t.appendTo(r),i.appendTo(r),n.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()}),i.on("click",".js-prevYear",function(e){e.preventDefault();var t=o.get("highlight").year-1;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),i.on("click",".js-nextYear",function(e){e.preventDefault();var t=o.get("highlight").year+1;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),n.on("click",".js-prevDecade",function(e){e.preventDefault();var t=o.get("highlight").year-10;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),n.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()}),i.on("click",".js-changeDate",function(e){e.preventDefault();var t=o.get("highlight"),i=t.year,n=+$(this).attr("data-month"),r=t.day;s.changeHighlightedDate(i,n,r),s.jElement.hasClass("is-pickingMonths")&&s.jElement.removeClass("is-pickingMonths"),s.$scope.$apply()}),n.on("click",".js-changeDate",function(e){e.preventDefault();var t=o.get("highlight"),i=+$(this).attr("data-year"),n=t.month,r=t.day;s.changeHighlightedDate(i,n,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()}),i.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,i){var n=this.getPicker();null==e&&(e=n.get("highlight").year),null==t&&(t=n.get("highlight").month),null==i&&(i=n.get("highlight").date),n.set("highlight",[e,t,i]),this.$scope.highlightedValue=n.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:"@",uifDateFormat:"@",uifMonths:"@"},this.require=["uifDatepicker","?ngModel"]}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,i){return{post:this.postLink,pre:this.preLink}},e.prototype.preLink=function(e,t,i,n){if(e.uifMonths||(e.uifMonths="Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"),e.placeholder||(e.placeholder="Select a date"),e.uifDateFormat||(e.uifDateFormat="d mmmm, yyyy"),e.monthsArray=e.uifMonths.split(","),12!==e.monthsArray.length)throw"Months setting should have 12 months, separated by a comma";i.$observe("disabled",function(t){e.isDisabled=!!t})},e.prototype.postLink=function(e,t,i,r){var o=r[0],s=r[1];o.initDatepicker(s),n.isDefined(s)&&null!==s&&(s.$render=function(){if(null!==s.$modelValue&&""!==s.$modelValue&&"undefined"!=typeof s.$modelValue){if("string"==typeof s.$modelValue){var e=new Date(s.$modelValue);o.setValue(e)}else o.setValue(s.$modelValue);s.$setPristine()}})},e}();t.DatepickerDirective=o,t.module=n.module("officeuifabric.components.datepicker",["officeuifabric.components"]).directive("uifDatepicker",o.factory())},function(e,t,i){"use strict";var n=i(2),r=i(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,i,n){e.$watch("uifType",function(t,i){"undefined"!=typeof t&&void 0===r.DialogTypeEnum[t]&&n.$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 c=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=c;var a=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=a;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,i,n){e.$watch("uifPosition",function(t,i){"undefined"!=typeof t&&void 0===r.DialogActionsPositionEnum[t]&&n.$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=n.module("officeuifabric.components.dialog",["officeuifabric.components"]).directive("uifDialog",s.factory()).directive("uifDialogHeader",c.factory()).directive("uifDialogContent",a.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,i){"use strict";var n=i(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,i){return{post:this.postLink}},e.prototype.postLink=function(e,t,i,n,r){if(!n)throw"Dropdown controller not found!";t.on("click",function(r){e.$apply(function(){n.setViewValue(t.find("span").html(),i.value,r)})});var o=""+n.getViewValue();o&&o===i.value&&n.setViewValue(i.title,i.value,null)},e}();t.DropdownOptionDirective=r;var o=function(){function e(e,t,i){this.$element=e,this.$scope=t,this.$document=i}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 i=n.element(this.querySelector(".ms-Dropdown"))[0].clientWidth;if(n.element(this.querySelector(".ms-Dropdown-items"))[0].style.width=i+"px",t.stopPropagation(),e.$scope.isOpen){var r=function(){e.$scope.isOpen=!1,e.$scope.$apply(),e.$document.off("click",r)};e.$document.on("click",r),e.$scope.$on("$destroy",function(){e.$document.off("click",r)})}void 0!==e.$scope.ngModel&&null!=e.$scope.ngModel&&e.$scope.ngModel.$setTouched()}}),"undefined"!=typeof this.$scope.ngModel&&null!=this.$scope.ngModel&&(this.$scope.ngModel.$render=function(){for(var t=!1,i=e.$element.find("li"),r=0;r{{selectedTitle}}