@memberjunction/ng-file-storage 1.8.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -232,4 +232,4 @@ CategoryTreeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Categ
232
232
  }], () => [{ type: i1.SharedService }], { categorySelected: [{
233
233
  type: Output
234
234
  }] }); })();
235
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CategoryTreeComponent, { className: "CategoryTreeComponent", filePath: "src/lib/category-tree/category-tree.ts", lineNumber: 14 }); })();
235
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CategoryTreeComponent, { className: "CategoryTreeComponent" }); })();
@@ -42,7 +42,7 @@ const FileFieldsFragment = gql `
42
42
  Category
43
43
  CategoryID
44
44
  ContentType
45
- CreatedAt
45
+ __mj_CreatedAt
46
46
  Description
47
47
  ID
48
48
  Name
@@ -50,7 +50,7 @@ const FileFieldsFragment = gql `
50
50
  ProviderID
51
51
  ProviderKey
52
52
  Status
53
- UpdatedAt
53
+ __mj_UpdatedAt
54
54
  }
55
55
  `;
56
56
  const FileUploadMutation = gql `
@@ -223,4 +223,4 @@ FileUploadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileUpl
223
223
  }], fileUpload: [{
224
224
  type: Output
225
225
  }] }); })();
226
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileUploadComponent, { className: "FileUploadComponent", filePath: "src/lib/file-upload/file-upload.ts", lineNumber: 70 }); })();
226
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileUploadComponent, { className: "FileUploadComponent" }); })();
@@ -105,7 +105,7 @@ const downloadFromUrl = (url, fileName, contentType) => __awaiter(void 0, void 0
105
105
  return true;
106
106
  });
107
107
  const FileDownloadQuery = gql `
108
- query FileDownloadUrl($FileID: Int!) {
108
+ query FileDownloadUrl($FileID: String!) {
109
109
  File(ID: $FileID) {
110
110
  ContentType
111
111
  DownloadUrl
@@ -225,7 +225,7 @@ export class FilesGridComponent {
225
225
  */
226
226
  canBeDeleted(file) {
227
227
  const status = file.Status;
228
- const deletable = status === 'Uploaded' || Date.now() - +file.CreatedAt > 10 * 60 * 60;
228
+ const deletable = status === 'Uploaded' || Date.now() - +file.__mj_CreatedAt > 10 * 60 * 60;
229
229
  // console.log({ status, deletable, ID: file.ID, CreatedAt: file.CreatedAt });
230
230
  return deletable;
231
231
  }
@@ -252,7 +252,7 @@ export class FilesGridComponent {
252
252
  var _a;
253
253
  this.isLoading = true;
254
254
  const rv = new RunView();
255
- const result = yield rv.RunView(Object.assign({ EntityName: 'Files', ResultType: 'entity_object' }, (this.CategoryID !== undefined && { ExtraFilter: `CategoryID=${this.CategoryID}` })));
255
+ const result = yield rv.RunView(Object.assign({ EntityName: 'Files', ResultType: 'entity_object' }, (this.CategoryID !== undefined && { ExtraFilter: `CategoryID='${this.CategoryID}'` })));
256
256
  if (result.Success) {
257
257
  this.files = (_a = result.Results) !== null && _a !== void 0 ? _a : [];
258
258
  }
@@ -289,4 +289,4 @@ FilesGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilesGri
289
289
  }], () => [{ type: i1.SharedService }], { CategoryID: [{
290
290
  type: Input
291
291
  }] }); })();
292
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FilesGridComponent, { className: "FilesGridComponent", filePath: "src/lib/files-grid/files-grid.ts", lineNumber: 61 }); })();
292
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FilesGridComponent, { className: "FilesGridComponent" }); })();
@@ -21,7 +21,7 @@ import * as i19 from "@progress/kendo-angular-menu";
21
21
  import * as i20 from "@progress/kendo-angular-indicators";
22
22
  export declare class FileStorageModule {
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<FileStorageModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<FileStorageModule, [typeof i1.CategoryTreeComponent, typeof i2.FilesGridComponent, typeof i3.FileUploadComponent], [typeof i4.CommonModule, typeof i5.TreeViewModule, typeof i6.FormsModule, typeof i7.DialogsModule, typeof i8.ExcelExportModule, typeof i9.CompareRecordsModule, typeof i10.ContainerDirectivesModule, typeof i11.ButtonsModule, typeof i12.LabelModule, typeof i13.GridModule, typeof i14.DropDownsModule, typeof i15.BrowserModule, typeof i16.BrowserAnimationsModule, typeof i17.InputsModule, typeof i18.UploadsModule, typeof i19.MenusModule, typeof i20.IndicatorsModule], [typeof i1.CategoryTreeComponent, typeof i2.FilesGridComponent]>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FileStorageModule, [typeof i1.CategoryTreeComponent, typeof i2.FilesGridComponent, typeof i3.FileUploadComponent], [typeof i4.CommonModule, typeof i5.TreeViewModule, typeof i6.FormsModule, typeof i7.DialogsModule, typeof i8.ExcelExportModule, typeof i9.CompareRecordsModule, typeof i10.ContainerDirectivesModule, typeof i11.ButtonsModule, typeof i12.LabelModule, typeof i13.GridModule, typeof i14.DropDownsModule, typeof i15.BrowserModule, typeof i16.BrowserAnimationsModule, typeof i17.InputsModule, typeof i18.UploadsModule, typeof i19.MenusModule, typeof i20.IndicatorsModule], [typeof i1.CategoryTreeComponent, typeof i2.FilesGridComponent, typeof i3.FileUploadComponent]>;
25
25
  static ɵinj: i0.ɵɵInjectorDeclaration<FileStorageModule>;
26
26
  }
27
27
  //# sourceMappingURL=module.d.ts.map
@@ -65,7 +65,7 @@ FileStorageModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Common
65
65
  MenusModule,
66
66
  IndicatorsModule,
67
67
  ],
68
- exports: [CategoryTreeComponent, FilesGridComponent],
68
+ exports: [CategoryTreeComponent, FilesGridComponent, FileUploadComponent],
69
69
  }]
70
70
  }], null, null); })();
71
71
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FileStorageModule, { declarations: [CategoryTreeComponent, FilesGridComponent, FileUploadComponent], imports: [CommonModule,
@@ -84,4 +84,4 @@ FileStorageModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Common
84
84
  InputsModule,
85
85
  UploadsModule,
86
86
  MenusModule,
87
- IndicatorsModule], exports: [CategoryTreeComponent, FilesGridComponent] }); })();
87
+ IndicatorsModule], exports: [CategoryTreeComponent, FilesGridComponent, FileUploadComponent] }); })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-file-storage",
3
- "version": "1.8.0",
3
+ "version": "2.0.0",
4
4
  "description": "MemberJunction: Angular components for managing files, and related components.",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -26,12 +26,12 @@
26
26
  "@angular/router": "18.0.2"
27
27
  },
28
28
  "dependencies": {
29
- "@memberjunction/core": "1.8.0",
30
- "@memberjunction/core-entities": "1.8.0",
31
- "@memberjunction/global": "1.8.0",
32
- "@memberjunction/graphql-dataprovider": "1.8.0",
33
- "@memberjunction/ng-container-directives": "1.8.0",
34
- "@memberjunction/ng-shared": "1.8.0",
29
+ "@memberjunction/core": "2.0.0",
30
+ "@memberjunction/core-entities": "2.0.0",
31
+ "@memberjunction/global": "2.0.0",
32
+ "@memberjunction/graphql-dataprovider": "2.0.0",
33
+ "@memberjunction/ng-container-directives": "2.0.0",
34
+ "@memberjunction/ng-shared": "2.0.0",
35
35
  "@progress/kendo-angular-buttons": "16.2.0",
36
36
  "@progress/kendo-angular-dialog": "16.2.0",
37
37
  "@progress/kendo-angular-dropdowns": "16.2.0",