@memberjunction/ng-file-storage 1.0.9 → 1.1.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.
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FileCategoryEntity } from '@memberjunction/core-entities';
3
- import { SharedService, kendoSVGIcon } from '@memberjunction/ng-shared';
3
+ import { SharedService } from '@memberjunction/ng-shared';
4
4
  import { ContextMenuSelectEvent } from '@progress/kendo-angular-menu';
5
5
  import { TreeItemAddRemoveArgs } from '@progress/kendo-angular-treeview';
6
6
  import * as i0 from "@angular/core";
@@ -12,7 +12,6 @@ export declare class CategoryTreeComponent implements OnInit {
12
12
  newCategoryName: string;
13
13
  selectedKeys: never[];
14
14
  renameFileCategory: FileCategoryEntity | undefined;
15
- kendoSVGIcon: typeof kendoSVGIcon;
16
15
  categoriesData: FileCategoryEntity[];
17
16
  private md;
18
17
  constructor(sharedService: SharedService);
@@ -1 +1 @@
1
- {"version":3,"file":"category-tree.d.ts","sourceRoot":"","sources":["../../../src/lib/category-tree/category-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAExE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;AAEzE,qBAKa,qBAAsB,YAAW,MAAM;IAetC,OAAO,CAAC,aAAa;IAdvB,gBAAgB,uBAA8B;IAEjD,SAAS,EAAE,OAAO,CAAS;IAC3B,OAAO,EAAE,OAAO,CAAS;IACzB,eAAe,SAAM;IACrB,YAAY,UAAM;IAClB,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAEnD,YA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Kd,gBAAgB,CAAC,CAAC,EAAE,sBAAsB;IAgB1C,YAAY;IAKN,UAAU;IAOV,OAAO;yCAjGF,qBAAqB;2CAArB,qBAAqB;CAiHjC"}
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { Component, EventEmitter, Output } from '@angular/core';
11
11
  import { Metadata, RunView } from '@memberjunction/core';
12
- import { kendoSVGIcon } from '@memberjunction/ng-shared';
13
12
  import * as i0 from "@angular/core";
14
13
  import * as i1 from "@memberjunction/ng-shared";
15
14
  import * as i2 from "@angular/common";
@@ -101,7 +100,6 @@ export class CategoryTreeComponent {
101
100
  this.showNew = false;
102
101
  this.newCategoryName = '';
103
102
  this.selectedKeys = [];
104
- this.kendoSVGIcon = kendoSVGIcon;
105
103
  this.categoriesData = [];
106
104
  this.md = new Metadata();
107
105
  }
@@ -1,6 +1,5 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FileEntity } from '@memberjunction/core-entities';
3
- import { kendoSVGIcon } from '@memberjunction/ng-shared';
4
3
  import { FileInfo, SelectEvent } from '@progress/kendo-angular-upload';
5
4
  import * as i0 from "@angular/core";
6
5
  export type FileUploadEvent = {
@@ -11,7 +10,6 @@ export type FileUploadEvent = {
11
10
  file: FileInfo;
12
11
  };
13
12
  export declare class FileUploadComponent implements OnInit {
14
- kendoSVGIcon: typeof kendoSVGIcon;
15
13
  isUploading: boolean;
16
14
  private defaultProviderID;
17
15
  private md;
@@ -1 +1 @@
1
- {"version":3,"file":"file-upload.d.ts","sourceRoot":"","sources":["../../../src/lib/file-upload/file-upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAU,MAAM,eAAe,CAAC;AAE/E,OAAO,EAAE,UAAU,EAA6B,MAAM,+BAA+B,CAAC;AAGtF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,WAAW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CAAuC;IAE3D,QAAQ,IAAI,IAAI;IAIV,OAAO;IASP,kBAAkB,CAAC,CAAC,EAAE,WAAW;yCAzB5B,mBAAmB;2CAAnB,mBAAmB;CA2E/B"}
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { Component, EventEmitter, Input, Output } from '@angular/core';
11
11
  import { Metadata, RunView } from '@memberjunction/core';
12
12
  import { GraphQLDataProvider, gql } from '@memberjunction/graphql-dataprovider';
13
- import { kendoSVGIcon } from '@memberjunction/ng-shared';
14
13
  import { z } from 'zod';
15
14
  import * as i0 from "@angular/core";
16
15
  import * as i1 from "@progress/kendo-angular-upload";
@@ -62,7 +61,6 @@ const FileUploadMutationSchema = z.object({
62
61
  });
63
62
  export class FileUploadComponent {
64
63
  constructor() {
65
- this.kendoSVGIcon = kendoSVGIcon;
66
64
  this.isUploading = false;
67
65
  this.defaultProviderID = -1;
68
66
  this.md = new Metadata();
@@ -154,4 +152,4 @@ FileUploadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileUpl
154
152
  }], fileUpload: [{
155
153
  type: Output
156
154
  }] }); })();
157
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileUploadComponent, { className: "FileUploadComponent", filePath: "src/lib/file-upload/file-upload.ts", lineNumber: 66 }); })();
155
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileUploadComponent, { className: "FileUploadComponent", filePath: "src/lib/file-upload/file-upload.ts", lineNumber: 65 }); })();
@@ -1,6 +1,6 @@
1
1
  import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { FileEntity } from '@memberjunction/core-entities';
3
- import { SharedService, kendoSVGIcon } from '@memberjunction/ng-shared';
3
+ import { SharedService } from '@memberjunction/ng-shared';
4
4
  import { FileUploadEvent } from '../file-upload/file-upload';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class FilesGridComponent implements OnInit, OnChanges {
@@ -8,7 +8,6 @@ export declare class FilesGridComponent implements OnInit, OnChanges {
8
8
  files: FileEntity[];
9
9
  isLoading: boolean;
10
10
  editFile: FileEntity | undefined;
11
- kendoSVGIcon: typeof kendoSVGIcon;
12
11
  constructor(sharedService: SharedService);
13
12
  CategoryID: number | undefined;
14
13
  ngOnInit(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"files-grid.d.ts","sourceRoot":"","sources":["../../../src/lib/files-grid/files-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;;AAgD7D,qBAKa,kBAAmB,YAAW,MAAM,EAAE,SAAS;IAM9C,OAAO,CAAC,aAAa;IAL1B,KAAK,EAAE,UAAU,EAAE,CAAM;IACzB,SAAS,EAAE,OAAO,CAAS;IAC3B,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC;IACjC,YAAY,sBAAgB;gBAEf,aAAa,EAAE,aAAa;IAEvC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAa;IAEpD,QAAQ,IAAI,IAAI;IAIhB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAMzC;;;;;;OAMG;IACI,aAAa;IAKpB;;;;;;;OAOG;IACU,YAAY;IAezB;;;;;;OAMG;IACI,YAAY,SAAgB,UAAU,mBAkB3C;IAEF;;;;;OAKG;IACI,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO;IAO9C;;;;;;OAMG;IACI,UAAU,SAAgB,UAAU,mBAYzC;IAEF;;;;;OAKG;IACI,gBAAgB,CAAC,CAAC,EAAE,eAAe;IAU1C;;;OAGG;IACG,OAAO;yCAxIF,kBAAkB;2CAAlB,kBAAkB;CAwJ9B"}
1
+ {"version":3,"file":"files-grid.d.ts","sourceRoot":"","sources":["../../../src/lib/files-grid/files-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;;AAgD7D,qBAKa,kBAAmB,YAAW,MAAM,EAAE,SAAS;IAK9C,OAAO,CAAC,aAAa;IAJ1B,KAAK,EAAE,UAAU,EAAE,CAAM;IACzB,SAAS,EAAE,OAAO,CAAS;IAC3B,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC;gBAEpB,aAAa,EAAE,aAAa;IAEvC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAa;IAEpD,QAAQ,IAAI,IAAI;IAIhB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAMzC;;;;;;OAMG;IACI,aAAa;IAKpB;;;;;;;OAOG;IACU,YAAY;IAezB;;;;;;OAMG;IACI,YAAY,SAAgB,UAAU,mBAkB3C;IAEF;;;;;OAKG;IACI,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO;IAO9C;;;;;;OAMG;IACI,UAAU,SAAgB,UAAU,mBAYzC;IAEF;;;;;OAKG;IACI,gBAAgB,CAAC,CAAC,EAAE,eAAe;IAU1C;;;OAGG;IACG,OAAO;yCAvIF,kBAAkB;2CAAlB,kBAAkB;CAuJ9B"}
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { Component, Input } from '@angular/core';
11
11
  import { RunView } from '@memberjunction/core';
12
12
  import { GraphQLDataProvider, gql } from '@memberjunction/graphql-dataprovider';
13
- import { kendoSVGIcon } from '@memberjunction/ng-shared';
14
13
  import { z } from 'zod';
15
14
  import * as i0 from "@angular/core";
16
15
  import * as i1 from "@memberjunction/ng-shared";
@@ -26,37 +25,40 @@ function FilesGridComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
26
25
  const _r4 = i0.ɵɵgetCurrentView();
27
26
  i0.ɵɵelementStart(0, "kendo-button", 11);
28
27
  i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const dataItem_r2 = restoredCtx.$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.downloadFile(dataItem_r2)); });
29
- i0.ɵɵelementEnd();
30
- i0.ɵɵelementStart(1, "kendo-button", 11);
31
- i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const dataItem_r2 = restoredCtx.$implicit; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.deleteFile(dataItem_r2)); });
28
+ i0.ɵɵelement(1, "span", 12);
32
29
  i0.ɵɵelementEnd();
33
30
  i0.ɵɵelementStart(2, "kendo-button", 11);
34
- i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_2_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const dataItem_r2 = restoredCtx.$implicit; const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.editFile = dataItem_r2); });
31
+ i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_2_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const dataItem_r2 = restoredCtx.$implicit; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.deleteFile(dataItem_r2)); });
32
+ i0.ɵɵelement(3, "span", 13);
33
+ i0.ɵɵelementEnd();
34
+ i0.ɵɵelementStart(4, "kendo-button", 11);
35
+ i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_4_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const dataItem_r2 = restoredCtx.$implicit; const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.editFile = dataItem_r2); });
36
+ i0.ɵɵelement(5, "span", 14);
35
37
  i0.ɵɵelementEnd();
36
38
  } if (rf & 2) {
37
39
  const dataItem_r2 = ctx.$implicit;
38
40
  const ctx_r0 = i0.ɵɵnextContext();
39
- i0.ɵɵproperty("disabled", dataItem_r2.Status !== "Uploaded")("svgIcon", ctx_r0.kendoSVGIcon("download"));
40
- i0.ɵɵadvance();
41
- i0.ɵɵproperty("disabled", !ctx_r0.canBeDeleted(dataItem_r2))("svgIcon", ctx_r0.kendoSVGIcon("trash"));
42
- i0.ɵɵadvance();
43
- i0.ɵɵproperty("disabled", dataItem_r2.Status !== "Uploaded")("svgIcon", ctx_r0.kendoSVGIcon("pencil"));
41
+ i0.ɵɵproperty("disabled", dataItem_r2.Status !== "Uploaded");
42
+ i0.ɵɵadvance(2);
43
+ i0.ɵɵproperty("disabled", !ctx_r0.canBeDeleted(dataItem_r2));
44
+ i0.ɵɵadvance(2);
45
+ i0.ɵɵproperty("disabled", dataItem_r2.Status !== "Uploaded");
44
46
  } }
45
47
  function FilesGridComponent_kendo_dialog_10_Template(rf, ctx) { if (rf & 1) {
46
48
  const _r9 = i0.ɵɵgetCurrentView();
47
- i0.ɵɵelementStart(0, "kendo-dialog", 12);
49
+ i0.ɵɵelementStart(0, "kendo-dialog", 15);
48
50
  i0.ɵɵlistener("close", function FilesGridComponent_kendo_dialog_10_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.resetEditFile()); });
49
- i0.ɵɵelementStart(1, "div", 0)(2, "form", null, 13)(4, "kendo-label", 14)(5, "kendo-textbox", 15);
51
+ i0.ɵɵelementStart(1, "div", 0)(2, "form", null, 16)(4, "kendo-label", 17)(5, "kendo-textbox", 18);
50
52
  i0.ɵɵtwoWayListener("ngModelChange", function FilesGridComponent_kendo_dialog_10_Template_kendo_textbox_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r10 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r10.editFile.Name, $event) || (ctx_r10.editFile.Name = $event); return i0.ɵɵresetView($event); });
51
53
  i0.ɵɵelementEnd()();
52
- i0.ɵɵelementStart(6, "kendo-label", 16)(7, "kendo-textbox", 17);
54
+ i0.ɵɵelementStart(6, "kendo-label", 19)(7, "kendo-textbox", 20);
53
55
  i0.ɵɵtwoWayListener("ngModelChange", function FilesGridComponent_kendo_dialog_10_Template_kendo_textbox_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r11 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r11.editFile.Description, $event) || (ctx_r11.editFile.Description = $event); return i0.ɵɵresetView($event); });
54
56
  i0.ɵɵelementEnd()()()();
55
- i0.ɵɵelementStart(8, "kendo-dialog-actions")(9, "button", 18);
57
+ i0.ɵɵelementStart(8, "kendo-dialog-actions")(9, "button", 21);
56
58
  i0.ɵɵlistener("click", function FilesGridComponent_kendo_dialog_10_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r9); const ctx_r12 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r12.resetEditFile()); });
57
59
  i0.ɵɵtext(10, "Cancel");
58
60
  i0.ɵɵelementEnd();
59
- i0.ɵɵelementStart(11, "button", 19);
61
+ i0.ɵɵelementStart(11, "button", 22);
60
62
  i0.ɵɵlistener("click", function FilesGridComponent_kendo_dialog_10_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r9); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.saveEditFile()); });
61
63
  i0.ɵɵtext(12, "Save");
62
64
  i0.ɵɵelementEnd()()();
@@ -121,7 +123,6 @@ export class FilesGridComponent {
121
123
  this.sharedService = sharedService;
122
124
  this.files = [];
123
125
  this.isLoading = false;
124
- this.kendoSVGIcon = kendoSVGIcon;
125
126
  this.CategoryID = undefined;
126
127
  /**
127
128
  * Downloads a file using the provided FileEntity.
@@ -263,11 +264,11 @@ export class FilesGridComponent {
263
264
  }
264
265
  }
265
266
  FilesGridComponent.ɵfac = function FilesGridComponent_Factory(t) { return new (t || FilesGridComponent)(i0.ɵɵdirectiveInject(i1.SharedService)); };
266
- FilesGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilesGridComponent, selectors: [["mj-files-grid"]], inputs: { CategoryID: "CategoryID" }, features: [i0.ɵɵNgOnChangesFeature], decls: 11, vars: 5, consts: [[1, "container"], [3, "data", "loading"], ["field", "ID", "title", "ID"], ["field", "Category", "title", "Category"], ["field", "Name", "title", "Name"], ["field", "Description", "title", "Description"], ["field", "Status", "title", "Status"], ["field", "Actions"], ["kendoGridCellTemplate", ""], [3, "CategoryID", "disabled", "uploadStarted", "fileUpload"], ["title", "Edit file", 3, "minWidth", "width", "close", 4, "ngIf"], [3, "disabled", "svgIcon", "click"], ["title", "Edit file", 3, "minWidth", "width", "close"], ["templateForm", "ngForm"], ["text", "Name", 1, "k-form"], ["name", "name", "showErrorIcon", "initial", "required", "", 3, "ngModel", "showSuccessIcon", "disabled", "ngModelChange"], ["text", "Description", 1, "k-form"], ["name", "description", 3, "ngModel", "disabled", "ngModelChange"], ["kendoButton", "", 3, "disabled", "click"], ["kendoButton", "", "themeColor", "primary", 3, "disabled", "click"]], template: function FilesGridComponent_Template(rf, ctx) { if (rf & 1) {
267
+ FilesGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilesGridComponent, selectors: [["mj-files-grid"]], inputs: { CategoryID: "CategoryID" }, features: [i0.ɵɵNgOnChangesFeature], decls: 11, vars: 5, consts: [[1, "container"], [3, "data", "loading"], ["field", "ID", "title", "ID"], ["field", "Category", "title", "Category"], ["field", "Name", "title", "Name"], ["field", "Description", "title", "Description"], ["field", "Status", "title", "Status"], ["field", "Actions"], ["kendoGridCellTemplate", ""], [3, "CategoryID", "disabled", "uploadStarted", "fileUpload"], ["title", "Edit file", 3, "minWidth", "width", "close", 4, "ngIf"], [3, "disabled", "click"], [1, "fa-solid", "fa-download"], [1, "fa-solid", "fa-trash-can"], [1, "fa-solid", "fa-pen-to-square"], ["title", "Edit file", 3, "minWidth", "width", "close"], ["templateForm", "ngForm"], ["text", "Name", 1, "k-form"], ["name", "name", "showErrorIcon", "initial", "required", "", 3, "ngModel", "showSuccessIcon", "disabled", "ngModelChange"], ["text", "Description", 1, "k-form"], ["name", "description", 3, "ngModel", "disabled", "ngModelChange"], ["kendoButton", "", 3, "disabled", "click"], ["kendoButton", "", "themeColor", "primary", 3, "disabled", "click"]], template: function FilesGridComponent_Template(rf, ctx) { if (rf & 1) {
267
268
  i0.ɵɵelementStart(0, "div", 0)(1, "kendo-grid", 1);
268
269
  i0.ɵɵelement(2, "kendo-grid-column", 2)(3, "kendo-grid-column", 3)(4, "kendo-grid-column", 4)(5, "kendo-grid-column", 5)(6, "kendo-grid-column", 6);
269
270
  i0.ɵɵelementStart(7, "kendo-grid-column", 7);
270
- i0.ɵɵtemplate(8, FilesGridComponent_ng_template_8_Template, 3, 6, "ng-template", 8);
271
+ i0.ɵɵtemplate(8, FilesGridComponent_ng_template_8_Template, 6, 3, "ng-template", 8);
271
272
  i0.ɵɵelementEnd()();
272
273
  i0.ɵɵelementStart(9, "mj-files-file-upload", 9);
273
274
  i0.ɵɵlistener("uploadStarted", function FilesGridComponent_Template_mj_files_file_upload_uploadStarted_9_listener() { return ctx.isLoading = true; })("fileUpload", function FilesGridComponent_Template_mj_files_file_upload_fileUpload_9_listener($event) { return ctx.handleFileUpload($event); });
@@ -284,7 +285,7 @@ FilesGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilesGri
284
285
  } }, dependencies: [i2.NgIf, i3.ɵNgNoValidate, i3.NgControlStatus, i3.NgControlStatusGroup, i3.RequiredValidator, i3.NgModel, i3.NgForm, i4.DialogComponent, i4.DialogActionsComponent, i5.ButtonComponent, i6.LabelComponent, i7.GridComponent, i7.ColumnComponent, i7.CellTemplateDirective, i8.TextBoxComponent, i9.FileUploadComponent], styles: [".container[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n\nkendo-label[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 12px;\n margin-bottom: 4px;\n}\n\nkendo-label[_ngcontent-%COMP%] kendo-textbox[_ngcontent-%COMP%] {\n width: 100%;\n}"] });
285
286
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilesGridComponent, [{
286
287
  type: Component,
287
- args: [{ selector: 'mj-files-grid', template: "<div class=\"container\">\n <kendo-grid [data]=\"files\" [loading]=\"isLoading\">\n <kendo-grid-column field=\"ID\" title=\"ID\"> </kendo-grid-column>\n <kendo-grid-column field=\"Category\" title=\"Category\"> </kendo-grid-column>\n <kendo-grid-column field=\"Name\" title=\"Name\"> </kendo-grid-column>\n <kendo-grid-column field=\"Description\" title=\"Description\"> </kendo-grid-column>\n <kendo-grid-column field=\"Status\" title=\"Status\"> </kendo-grid-column>\n <kendo-grid-column field=\"Actions\">\n <ng-template kendoGridCellTemplate let-dataItem>\n <kendo-button\n [disabled]=\"dataItem.Status!=='Uploaded'\"\n [svgIcon]=\"kendoSVGIcon('download')\"\n (click)=\"downloadFile(dataItem)\"\n ></kendo-button>\n <kendo-button [disabled]=\"!canBeDeleted(dataItem)\" [svgIcon]=\"kendoSVGIcon('trash')\" (click)=\"deleteFile(dataItem)\"></kendo-button>\n <kendo-button\n [disabled]=\"dataItem.Status!=='Uploaded'\"\n [svgIcon]=\"kendoSVGIcon('pencil')\"\n (click)=\"editFile = dataItem\"\n ></kendo-button>\n </ng-template>\n </kendo-grid-column>\n </kendo-grid>\n\n <mj-files-file-upload\n [CategoryID]=\"CategoryID\"\n [disabled]=\"isLoading\"\n (uploadStarted)=\"isLoading = true\"\n (fileUpload)=\"handleFileUpload($event)\"\n ></mj-files-file-upload>\n\n <kendo-dialog title=\"Edit file\" *ngIf=\"editFile\" (close)=\"resetEditFile()\" [minWidth]=\"250\" [width]=\"450\">\n <div class=\"container\">\n <form #templateForm=\"ngForm\">\n <kendo-label class=\"k-form\" text=\"Name\">\n <kendo-textbox\n name=\"name\"\n [(ngModel)]=\"editFile.Name\"\n [showSuccessIcon]=\"editFile.Name.length > 0\"\n showErrorIcon=\"initial\"\n required\n [disabled]=\"isLoading\"\n ></kendo-textbox>\n </kendo-label>\n <kendo-label class=\"k-form\" text=\"Description\">\n <kendo-textbox name=\"description\" [(ngModel)]=\"editFile.Description\" [disabled]=\"isLoading\"></kendo-textbox>\n </kendo-label>\n </form>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"resetEditFile()\" [disabled]=\"isLoading\">Cancel</button>\n <button kendoButton (click)=\"saveEditFile()\" [disabled]=\"isLoading || !editFile.Dirty\" themeColor=\"primary\">Save</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n</div>\n", styles: [".container {\n display: flex;\n flex-direction: column;\n}\n\nkendo-label {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 12px;\n margin-bottom: 4px;\n}\n\nkendo-label kendo-textbox {\n width: 100%;\n}"] }]
288
+ args: [{ selector: 'mj-files-grid', template: "<div class=\"container\">\n <kendo-grid [data]=\"files\" [loading]=\"isLoading\">\n <kendo-grid-column field=\"ID\" title=\"ID\"> </kendo-grid-column>\n <kendo-grid-column field=\"Category\" title=\"Category\"> </kendo-grid-column>\n <kendo-grid-column field=\"Name\" title=\"Name\"> </kendo-grid-column>\n <kendo-grid-column field=\"Description\" title=\"Description\"> </kendo-grid-column>\n <kendo-grid-column field=\"Status\" title=\"Status\"> </kendo-grid-column>\n <kendo-grid-column field=\"Actions\">\n <ng-template kendoGridCellTemplate let-dataItem>\n <kendo-button\n [disabled]=\"dataItem.Status!=='Uploaded'\"\n (click)=\"downloadFile(dataItem)\"\n >\n <span class=\"fa-solid fa-download\"></span>\n </kendo-button>\n <kendo-button [disabled]=\"!canBeDeleted(dataItem)\" (click)=\"deleteFile(dataItem)\">\n <span class=\"fa-solid fa-trash-can\"></span>\n </kendo-button>\n <kendo-button\n [disabled]=\"dataItem.Status!=='Uploaded'\"\n (click)=\"editFile = dataItem\"\n >\n <span class=\"fa-solid fa-pen-to-square\"></span>\n </kendo-button>\n </ng-template>\n </kendo-grid-column>\n </kendo-grid>\n\n <mj-files-file-upload\n [CategoryID]=\"CategoryID\"\n [disabled]=\"isLoading\"\n (uploadStarted)=\"isLoading = true\"\n (fileUpload)=\"handleFileUpload($event)\"\n ></mj-files-file-upload>\n\n <kendo-dialog title=\"Edit file\" *ngIf=\"editFile\" (close)=\"resetEditFile()\" [minWidth]=\"250\" [width]=\"450\">\n <div class=\"container\">\n <form #templateForm=\"ngForm\">\n <kendo-label class=\"k-form\" text=\"Name\">\n <kendo-textbox\n name=\"name\"\n [(ngModel)]=\"editFile.Name\"\n [showSuccessIcon]=\"editFile.Name.length > 0\"\n showErrorIcon=\"initial\"\n required\n [disabled]=\"isLoading\"\n ></kendo-textbox>\n </kendo-label>\n <kendo-label class=\"k-form\" text=\"Description\">\n <kendo-textbox name=\"description\" [(ngModel)]=\"editFile.Description\" [disabled]=\"isLoading\"></kendo-textbox>\n </kendo-label>\n </form>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"resetEditFile()\" [disabled]=\"isLoading\">Cancel</button>\n <button kendoButton (click)=\"saveEditFile()\" [disabled]=\"isLoading || !editFile.Dirty\" themeColor=\"primary\">Save</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n</div>\n", styles: [".container {\n display: flex;\n flex-direction: column;\n}\n\nkendo-label {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 12px;\n margin-bottom: 4px;\n}\n\nkendo-label kendo-textbox {\n width: 100%;\n}"] }]
288
289
  }], () => [{ type: i1.SharedService }], { CategoryID: [{
289
290
  type: Input
290
291
  }] }); })();
@@ -10,19 +10,18 @@ import * as i8 from "@progress/kendo-angular-excel-export";
10
10
  import * as i9 from "@memberjunction/ng-compare-records";
11
11
  import * as i10 from "@memberjunction/ng-container-directives";
12
12
  import * as i11 from "@progress/kendo-angular-buttons";
13
- import * as i12 from "@progress/kendo-angular-icons";
14
- import * as i13 from "@progress/kendo-angular-label";
15
- import * as i14 from "@progress/kendo-angular-grid";
16
- import * as i15 from "@progress/kendo-angular-dropdowns";
17
- import * as i16 from "@angular/platform-browser";
18
- import * as i17 from "@angular/platform-browser/animations";
19
- import * as i18 from "@progress/kendo-angular-inputs";
20
- import * as i19 from "@progress/kendo-angular-upload";
21
- import * as i20 from "@progress/kendo-angular-menu";
22
- import * as i21 from "@progress/kendo-angular-indicators";
13
+ import * as i12 from "@progress/kendo-angular-label";
14
+ import * as i13 from "@progress/kendo-angular-grid";
15
+ import * as i14 from "@progress/kendo-angular-dropdowns";
16
+ import * as i15 from "@angular/platform-browser";
17
+ import * as i16 from "@angular/platform-browser/animations";
18
+ import * as i17 from "@progress/kendo-angular-inputs";
19
+ import * as i18 from "@progress/kendo-angular-upload";
20
+ import * as i19 from "@progress/kendo-angular-menu";
21
+ import * as i20 from "@progress/kendo-angular-indicators";
23
22
  export declare class FileStorageModule {
24
23
  static ɵfac: i0.ɵɵFactoryDeclaration<FileStorageModule, never>;
25
- 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.IconsModule, typeof i13.LabelModule, typeof i14.GridModule, typeof i15.DropDownsModule, typeof i16.BrowserModule, typeof i17.BrowserAnimationsModule, typeof i18.InputsModule, typeof i19.UploadsModule, typeof i20.MenusModule, typeof i21.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]>;
26
25
  static ɵinj: i0.ɵɵInjectorDeclaration<FileStorageModule>;
27
26
  }
28
27
  //# sourceMappingURL=module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/lib/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA0BA,qBAwBa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAAG"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/lib/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAyBA,qBAuBa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAAG"}
@@ -7,7 +7,6 @@ import { ButtonsModule } from '@progress/kendo-angular-buttons';
7
7
  import { DialogsModule } from '@progress/kendo-angular-dialog';
8
8
  import { ExcelExportModule } from '@progress/kendo-angular-excel-export';
9
9
  import { GridModule } from '@progress/kendo-angular-grid';
10
- import { IconsModule } from '@progress/kendo-angular-icons';
11
10
  import { IndicatorsModule } from '@progress/kendo-angular-indicators';
12
11
  import { InputsModule } from '@progress/kendo-angular-inputs';
13
12
  import { LabelModule } from '@progress/kendo-angular-label';
@@ -34,7 +33,6 @@ FileStorageModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Common
34
33
  CompareRecordsModule,
35
34
  ContainerDirectivesModule,
36
35
  ButtonsModule,
37
- IconsModule,
38
36
  LabelModule,
39
37
  GridModule,
40
38
  DropDownsModule,
@@ -57,7 +55,6 @@ FileStorageModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Common
57
55
  CompareRecordsModule,
58
56
  ContainerDirectivesModule,
59
57
  ButtonsModule,
60
- IconsModule,
61
58
  LabelModule,
62
59
  GridModule,
63
60
  DropDownsModule,
@@ -79,7 +76,6 @@ FileStorageModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Common
79
76
  CompareRecordsModule,
80
77
  ContainerDirectivesModule,
81
78
  ButtonsModule,
82
- IconsModule,
83
79
  LabelModule,
84
80
  GridModule,
85
81
  DropDownsModule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-file-storage",
3
- "version": "1.0.9",
3
+ "version": "1.1.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,11 +26,11 @@
26
26
  "@angular/router": "~17.2.2"
27
27
  },
28
28
  "dependencies": {
29
- "@memberjunction/core": "^1.0.9",
30
- "@memberjunction/core-entities": "^1.0.9",
31
- "@memberjunction/global": "^1.0.9",
32
- "@memberjunction/ng-container-directives": "^1.0.9",
33
- "@memberjunction/ng-shared": "^1.0.9",
29
+ "@memberjunction/core": "~1.1.0",
30
+ "@memberjunction/core-entities": "~1.1.0",
31
+ "@memberjunction/global": "~1.1.0",
32
+ "@memberjunction/ng-container-directives": "~1.1.0",
33
+ "@memberjunction/ng-shared": "~1.1.0",
34
34
  "@progress/kendo-angular-buttons": "~15.1.0",
35
35
  "@progress/kendo-angular-dialog": "~15.1.0",
36
36
  "@progress/kendo-angular-dropdowns": "~15.1.0",