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AAC,yBAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;;;OAAA;IAES,+DAA4B,GAAtC;QACE,MAAM,CAAC;YACL,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE;wBACN,WAAW,EAAE,OAAO,CAAC,uBAAuB;qBAC7C;oBACD,MAAM,EAAE;wBACN;4BACE,SAAS,EAAE,OAAO,CAAC,cAAc;4BACjC,WAAW,EAAE;gCACX,uCAAqB,CAAC,cAAc,EAAE;oCACpC,KAAK,EAAE,OAAO,CAAC,iBAAiB;iCACjC,CAAC;gCACF,uCAAqB,CAAC,UAAU,EAAE;oCAChC,KAAK,EAAE,OAAO,CAAC,aAAa;iCAC7B,CAAC;6BACH;yBACF;qBACF;iBACF;aACF;SACF,CAAC;IACJ,CAAC;IAED,sBAAc,oEAA8B;aAA5C;YACE,MAAM,CAAC,IAAI,CAAC;QACd,CAAC;;;OAAA;IACH,+BAAC;AAAD,CAtGA,AAsGC,CAtGqD,uCAAqB,GAsG1E","file":"webparts/angularFileUpload/AngularFileUploadWebPart.js","sourcesContent":["import { Version } from '@microsoft/sp-core-library';\r\nimport {\r\n BaseClientSideWebPart,\r\n IPropertyPaneConfiguration,\r\n PropertyPaneTextField,\r\n IWebPartContext\r\n} from '@microsoft/sp-webpart-base';\r\n\r\nimport { escape } from '@microsoft/sp-lodash-subset';\r\n\r\nimport { SPComponentLoader } from '@microsoft/sp-loader';\r\nimport * as angular from 'angular';\r\nimport './app/FileUploadModule';\r\nimport styles from './AngularFileUpload.module.scss';\r\nimport * as strings from 'angularFileUploadStrings';\r\nimport { IAngularFileUploadWebPartProps } from './IAngularFileUploadWebPartProps';\r\n\r\nexport default class AngularFileUploadWebPart extends BaseClientSideWebPart {\r\n\r\n private $injector: ng.auto.IInjectorService;\r\n public constructor(context: IWebPartContext) {\r\n super();\r\n SPComponentLoader.loadCss('https://appsforoffice.microsoft.com/fabric/2.6.1/fabric.min.css');\r\n SPComponentLoader.loadCss('https://appsforoffice.microsoft.com/fabric/2.6.1/fabric.components.min.css');\r\n }\r\n\r\n public render(): void {\r\n if (this.renderedOnce === false) {\r\n this.domElement.innerHTML = `\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Welcome to Angular File Upload!

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Upload
\r\n
\r\n\r\n
\r\n
\r\n

{{vm.libraryTitle}}: Files uploaded by You

\r\n
\r\n
\r\n\r\n
\r\n
\r\n Removing .....\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n \r\n File Name\r\n Modified\r\n Action\r\n \r\n \r\n \r\n \r\n {{fileItem.FileLeafRef}}\r\n {{fileItem.Modified | isoToDateString}}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
`;\r\n\r\n this.$injector = angular.bootstrap(this.domElement, ['fileUploadApp']);\r\n }\r\n this.$injector.get('$rootScope').$broadcast('configurationChanged', {\r\n libraryTitle: this.properties.libraryTitle,\r\n rowLimit: this.properties.rowLimit\r\n });\r\n }\r\n\r\n protected get dataVersion(): Version {\r\n return Version.parse('1.0');\r\n }\r\n\r\n protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {\r\n return {\r\n pages: [\r\n {\r\n header: {\r\n description: strings.PropertyPaneDescription\r\n },\r\n groups: [\r\n {\r\n groupName: strings.BasicGroupName,\r\n groupFields: [\r\n PropertyPaneTextField('libraryTitle', {\r\n label: strings.LibraryTitleLabel\r\n }),\r\n PropertyPaneTextField('rowLimit', {\r\n label: strings.RowLimitLabel\r\n })\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n };\r\n }\r\n\r\n protected get disableReactivePropertyChanges(): boolean {\r\n return true;\r\n }\r\n}\r\n"],"sourceRoot":"..\\..\\..\\src"}