@@ -4,7 +4,7 @@ import { SPHttpClient } from "@microsoft/sp-http";
4
4
import { GeneralHelper } from ".." ;
5
5
6
6
export class FileBrowserService {
7
- private context : WebPartContext ;
7
+ protected context : WebPartContext ;
8
8
9
9
constructor ( context : WebPartContext ) {
10
10
this . context = context ;
@@ -52,7 +52,7 @@ export class FileBrowserService {
52
52
return fileItems ;
53
53
}
54
54
55
- private getFileTypeFilter ( accepts : string ) {
55
+ protected getFileTypeFilter ( accepts : string ) {
56
56
let fileFilter : string = "" ;
57
57
58
58
if ( accepts && accepts != "" ) {
@@ -69,7 +69,7 @@ export class FileBrowserService {
69
69
return fileFilter ;
70
70
}
71
71
72
- private getFilesCamlQueryViewXml = ( accepts : string ) => {
72
+ protected getFilesCamlQueryViewXml = ( accepts : string ) => {
73
73
const fileFilter : string = this . getFileTypeFilter ( accepts ) ;
74
74
let queryCondition = fileFilter && fileFilter != "" ?
75
75
`<Query>
@@ -118,7 +118,7 @@ export class FileBrowserService {
118
118
return viewXml ;
119
119
}
120
120
121
- private _parseFileItem = ( fileItem : any ) : IFile => {
121
+ protected _parseFileItem = ( fileItem : any ) : IFile => {
122
122
const modifiedFriendly : string = fileItem [ "Modified.FriendlyDisplay" ] ;
123
123
124
124
// Get the modified date
@@ -147,7 +147,7 @@ export class FileBrowserService {
147
147
/**
148
148
* Creates an absolute URL
149
149
*/
150
- private _buildAbsoluteUrl = ( relativeUrl : string ) => {
150
+ protected _buildAbsoluteUrl = ( relativeUrl : string ) => {
151
151
const siteUrl : string = GeneralHelper . getAbsoluteDomainUrl ( this . context . pageContext . web . absoluteUrl ) ;
152
152
return siteUrl + relativeUrl ;
153
153
}
0 commit comments