@memberjunction/ng-file-storage 1.5.1 → 1.5.3
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.
|
@@ -20,39 +20,39 @@ import * as i7 from "@progress/kendo-angular-label";
|
|
|
20
20
|
import * as i8 from "@progress/kendo-angular-inputs";
|
|
21
21
|
import * as i9 from "@progress/kendo-angular-menu";
|
|
22
22
|
function CategoryTreeComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
-
const
|
|
24
|
-
i0.ɵɵelementStart(0, "span", null,
|
|
23
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
24
|
+
i0.ɵɵelementStart(0, "span", null, 0);
|
|
25
25
|
i0.ɵɵtext(2);
|
|
26
26
|
i0.ɵɵelementEnd();
|
|
27
|
-
i0.ɵɵelementStart(3, "kendo-contextmenu",
|
|
28
|
-
i0.ɵɵlistener("select", function CategoryTreeComponent_ng_template_7_Template_kendo_contextmenu_select_3_listener($event) { i0.ɵɵrestoreView(
|
|
29
|
-
i0.ɵɵelement(4, "kendo-menu-item",
|
|
27
|
+
i0.ɵɵelementStart(3, "kendo-contextmenu", 10);
|
|
28
|
+
i0.ɵɵlistener("select", function CategoryTreeComponent_ng_template_7_Template_kendo_contextmenu_select_3_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.handleMenuSelect($event)); });
|
|
29
|
+
i0.ɵɵelement(4, "kendo-menu-item", 11)(5, "kendo-menu-item", 12);
|
|
30
30
|
i0.ɵɵelementEnd();
|
|
31
31
|
} if (rf & 2) {
|
|
32
32
|
const dataItem_r3 = ctx.$implicit;
|
|
33
|
-
const
|
|
33
|
+
const target_r4 = i0.ɵɵreference(1);
|
|
34
34
|
i0.ɵɵadvance(2);
|
|
35
35
|
i0.ɵɵtextInterpolate1("", dataItem_r3.Name, " ");
|
|
36
36
|
i0.ɵɵadvance();
|
|
37
|
-
i0.ɵɵproperty("target",
|
|
37
|
+
i0.ɵɵproperty("target", target_r4);
|
|
38
38
|
i0.ɵɵadvance();
|
|
39
39
|
i0.ɵɵproperty("data", dataItem_r3);
|
|
40
40
|
i0.ɵɵadvance();
|
|
41
41
|
i0.ɵɵproperty("data", dataItem_r3)("disabled", true);
|
|
42
42
|
} }
|
|
43
43
|
function CategoryTreeComponent_kendo_dialog_8_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
-
const
|
|
45
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
46
|
-
i0.ɵɵlistener("close", function CategoryTreeComponent_kendo_dialog_8_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(
|
|
47
|
-
i0.ɵɵelementStart(1, "div",
|
|
48
|
-
i0.ɵɵtwoWayListener("ngModelChange", function CategoryTreeComponent_kendo_dialog_8_Template_kendo_textbox_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(
|
|
44
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
45
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 13);
|
|
46
|
+
i0.ɵɵlistener("close", function CategoryTreeComponent_kendo_dialog_8_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancelNewCategory()); });
|
|
47
|
+
i0.ɵɵelementStart(1, "div", 2)(2, "form", null, 1)(4, "kendo-label", 14)(5, "kendo-textbox", 15);
|
|
48
|
+
i0.ɵɵtwoWayListener("ngModelChange", function CategoryTreeComponent_kendo_dialog_8_Template_kendo_textbox_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.newCategoryName, $event) || (ctx_r1.newCategoryName = $event); return i0.ɵɵresetView($event); });
|
|
49
49
|
i0.ɵɵelementEnd()()()();
|
|
50
50
|
i0.ɵɵelementStart(6, "kendo-dialog-actions")(7, "button", 16);
|
|
51
|
-
i0.ɵɵlistener("click", function CategoryTreeComponent_kendo_dialog_8_Template_button_click_7_listener() { i0.ɵɵrestoreView(
|
|
51
|
+
i0.ɵɵlistener("click", function CategoryTreeComponent_kendo_dialog_8_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancelNewCategory()); });
|
|
52
52
|
i0.ɵɵtext(8, "Cancel");
|
|
53
53
|
i0.ɵɵelementEnd();
|
|
54
54
|
i0.ɵɵelementStart(9, "button", 17);
|
|
55
|
-
i0.ɵɵlistener("click", function CategoryTreeComponent_kendo_dialog_8_Template_button_click_9_listener() { i0.ɵɵrestoreView(
|
|
55
|
+
i0.ɵɵlistener("click", function CategoryTreeComponent_kendo_dialog_8_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.saveNewCategory()); });
|
|
56
56
|
i0.ɵɵtext(10, "Save");
|
|
57
57
|
i0.ɵɵelementEnd()()();
|
|
58
58
|
} if (rf & 2) {
|
|
@@ -67,30 +67,30 @@ function CategoryTreeComponent_kendo_dialog_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
67
67
|
i0.ɵɵproperty("disabled", ctx_r1.isLoading);
|
|
68
68
|
} }
|
|
69
69
|
function CategoryTreeComponent_kendo_dialog_9_Template(rf, ctx) { if (rf & 1) {
|
|
70
|
-
const
|
|
70
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
71
71
|
i0.ɵɵelementStart(0, "kendo-dialog", 18);
|
|
72
|
-
i0.ɵɵlistener("close", function CategoryTreeComponent_kendo_dialog_9_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(
|
|
73
|
-
i0.ɵɵelementStart(1, "div",
|
|
74
|
-
i0.ɵɵtwoWayListener("ngModelChange", function CategoryTreeComponent_kendo_dialog_9_Template_kendo_textbox_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(
|
|
72
|
+
i0.ɵɵlistener("close", function CategoryTreeComponent_kendo_dialog_9_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancelRename()); });
|
|
73
|
+
i0.ɵɵelementStart(1, "div", 2)(2, "form", null, 1)(4, "kendo-label", 14)(5, "kendo-textbox", 19);
|
|
74
|
+
i0.ɵɵtwoWayListener("ngModelChange", function CategoryTreeComponent_kendo_dialog_9_Template_kendo_textbox_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.renameFileCategory.Name, $event) || (ctx_r1.renameFileCategory.Name = $event); return i0.ɵɵresetView($event); });
|
|
75
75
|
i0.ɵɵelementEnd()()()();
|
|
76
76
|
i0.ɵɵelementStart(6, "kendo-dialog-actions")(7, "button", 16);
|
|
77
|
-
i0.ɵɵlistener("click", function CategoryTreeComponent_kendo_dialog_9_Template_button_click_7_listener() { i0.ɵɵrestoreView(
|
|
77
|
+
i0.ɵɵlistener("click", function CategoryTreeComponent_kendo_dialog_9_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancelRename()); });
|
|
78
78
|
i0.ɵɵtext(8, "Cancel");
|
|
79
79
|
i0.ɵɵelementEnd();
|
|
80
80
|
i0.ɵɵelementStart(9, "button", 17);
|
|
81
|
-
i0.ɵɵlistener("click", function CategoryTreeComponent_kendo_dialog_9_Template_button_click_9_listener() { i0.ɵɵrestoreView(
|
|
81
|
+
i0.ɵɵlistener("click", function CategoryTreeComponent_kendo_dialog_9_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.saveRename()); });
|
|
82
82
|
i0.ɵɵtext(10, "Save");
|
|
83
83
|
i0.ɵɵelementEnd()()();
|
|
84
84
|
} if (rf & 2) {
|
|
85
|
-
const
|
|
85
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
86
86
|
i0.ɵɵproperty("minWidth", 250)("width", 450);
|
|
87
87
|
i0.ɵɵadvance(5);
|
|
88
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
89
|
-
i0.ɵɵproperty("showSuccessIcon",
|
|
88
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.renameFileCategory.Name);
|
|
89
|
+
i0.ɵɵproperty("showSuccessIcon", ctx_r1.renameFileCategory.Name.length > 0)("disabled", ctx_r1.isLoading);
|
|
90
90
|
i0.ɵɵadvance(2);
|
|
91
|
-
i0.ɵɵproperty("disabled",
|
|
91
|
+
i0.ɵɵproperty("disabled", ctx_r1.isLoading);
|
|
92
92
|
i0.ɵɵadvance(2);
|
|
93
|
-
i0.ɵɵproperty("disabled",
|
|
93
|
+
i0.ɵɵproperty("disabled", ctx_r1.isLoading || !ctx_r1.renameFileCategory.Dirty);
|
|
94
94
|
} }
|
|
95
95
|
export class CategoryTreeComponent {
|
|
96
96
|
constructor(sharedService) {
|
|
@@ -176,8 +176,8 @@ export class CategoryTreeComponent {
|
|
|
176
176
|
this.renameFileCategory = undefined;
|
|
177
177
|
}
|
|
178
178
|
saveRename() {
|
|
179
|
-
var _a;
|
|
180
179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
var _a;
|
|
181
181
|
this.isLoading = true;
|
|
182
182
|
yield ((_a = this.renameFileCategory) === null || _a === void 0 ? void 0 : _a.Save());
|
|
183
183
|
this.renameFileCategory = undefined;
|
|
@@ -203,20 +203,20 @@ export class CategoryTreeComponent {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
CategoryTreeComponent.ɵfac = function CategoryTreeComponent_Factory(t) { return new (t || CategoryTreeComponent)(i0.ɵɵdirectiveInject(i1.SharedService)); };
|
|
206
|
-
CategoryTreeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CategoryTreeComponent, selectors: [["mj-files-category-tree"]], outputs: { categorySelected: "categorySelected" }, decls: 10, vars: 4, consts: [[1, "container"], [1, "tree-header"], [3, "click"], ["size", "small", 3, "click"], ["textField", "Name", "kendoTreeViewExpandable", "", "kendoTreeViewFlatDataBinding", "", "idField", "ID", "parentIdField", "ParentID", "kendoTreeViewDragAndDrop", "", "kendoTreeViewSelectable", "", 3, "
|
|
207
|
-
i0.ɵɵelementStart(0, "div",
|
|
206
|
+
CategoryTreeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CategoryTreeComponent, selectors: [["mj-files-category-tree"]], outputs: { categorySelected: "categorySelected" }, decls: 10, vars: 4, consts: [["target", ""], ["templateForm", "ngForm"], [1, "container"], [1, "tree-header"], [3, "click"], ["size", "small", 3, "click"], ["textField", "Name", "kendoTreeViewExpandable", "", "kendoTreeViewFlatDataBinding", "", "idField", "ID", "parentIdField", "ParentID", "kendoTreeViewDragAndDrop", "", "kendoTreeViewSelectable", "", 3, "selectionChange", "addItem", "nodes", "selectedKeys"], ["kendoTreeViewNodeTemplate", ""], ["title", "New file category", 3, "minWidth", "width", "close", 4, "ngIf"], ["title", "Rename file category", 3, "minWidth", "width", "close", 4, "ngIf"], [3, "select", "target"], ["text", "Rename", 3, "data"], ["text", "Delete", 3, "data", "disabled"], ["title", "New file category", 3, "close", "minWidth", "width"], ["text", "Name", 1, "k-form"], ["name", "name", "showErrorIcon", "initial", "required", "", 3, "ngModelChange", "ngModel", "showSuccessIcon", "disabled"], ["kendoButton", "", 3, "click", "disabled"], ["kendoButton", "", "themeColor", "primary", 3, "click", "disabled"], ["title", "Rename file category", 3, "close", "minWidth", "width"], ["name", "Name", "showErrorIcon", "initial", "required", "", 3, "ngModelChange", "ngModel", "showSuccessIcon", "disabled"]], template: function CategoryTreeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
207
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3)(2, "kendo-button", 4);
|
|
208
208
|
i0.ɵɵlistener("click", function CategoryTreeComponent_Template_kendo_button_click_2_listener() { return ctx.clearSelection(); });
|
|
209
209
|
i0.ɵɵtext(3, "All Files");
|
|
210
210
|
i0.ɵɵelementEnd();
|
|
211
|
-
i0.ɵɵelementStart(4, "kendo-button",
|
|
211
|
+
i0.ɵɵelementStart(4, "kendo-button", 5);
|
|
212
212
|
i0.ɵɵlistener("click", function CategoryTreeComponent_Template_kendo_button_click_4_listener() { return ctx.createNewCategory(); });
|
|
213
213
|
i0.ɵɵtext(5, "Add category");
|
|
214
214
|
i0.ɵɵelementEnd()();
|
|
215
|
-
i0.ɵɵelementStart(6, "kendo-treeview",
|
|
215
|
+
i0.ɵɵelementStart(6, "kendo-treeview", 6);
|
|
216
216
|
i0.ɵɵlistener("selectionChange", function CategoryTreeComponent_Template_kendo_treeview_selectionChange_6_listener($event) { return ctx.categorySelected.emit($event.dataItem.ID); })("addItem", function CategoryTreeComponent_Template_kendo_treeview_addItem_6_listener($event) { return ctx.handleDrop($event); });
|
|
217
|
-
i0.ɵɵtemplate(7, CategoryTreeComponent_ng_template_7_Template, 6, 5, "ng-template",
|
|
217
|
+
i0.ɵɵtemplate(7, CategoryTreeComponent_ng_template_7_Template, 6, 5, "ng-template", 7);
|
|
218
218
|
i0.ɵɵelementEnd();
|
|
219
|
-
i0.ɵɵtemplate(8, CategoryTreeComponent_kendo_dialog_8_Template, 11, 7, "kendo-dialog",
|
|
219
|
+
i0.ɵɵtemplate(8, CategoryTreeComponent_kendo_dialog_8_Template, 11, 7, "kendo-dialog", 8)(9, CategoryTreeComponent_kendo_dialog_9_Template, 11, 7, "kendo-dialog", 9);
|
|
220
220
|
i0.ɵɵelementEnd();
|
|
221
221
|
} if (rf & 2) {
|
|
222
222
|
i0.ɵɵadvance(6);
|
|
@@ -17,25 +17,25 @@ import * as i2 from "@progress/kendo-angular-dialog";
|
|
|
17
17
|
import * as i3 from "@progress/kendo-angular-buttons";
|
|
18
18
|
import * as i4 from "@progress/kendo-angular-upload";
|
|
19
19
|
function FileUploadComponent_kendo_dialog_2_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
-
const
|
|
20
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
21
21
|
i0.ɵɵelementStart(0, "kendo-dialog", 2);
|
|
22
|
-
i0.ɵɵlistener("close", function FileUploadComponent_kendo_dialog_2_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(
|
|
22
|
+
i0.ɵɵlistener("close", function FileUploadComponent_kendo_dialog_2_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CancelConfirm()); });
|
|
23
23
|
i0.ɵɵelementStart(1, "p", 3);
|
|
24
24
|
i0.ɵɵtext(2);
|
|
25
25
|
i0.ɵɵelementEnd();
|
|
26
26
|
i0.ɵɵelementStart(3, "kendo-dialog-actions")(4, "button", 4);
|
|
27
|
-
i0.ɵɵlistener("click", function FileUploadComponent_kendo_dialog_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(
|
|
27
|
+
i0.ɵɵlistener("click", function FileUploadComponent_kendo_dialog_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CancelConfirm()); });
|
|
28
28
|
i0.ɵɵtext(5, "Cancel");
|
|
29
29
|
i0.ɵɵelementEnd();
|
|
30
30
|
i0.ɵɵelementStart(6, "button", 5);
|
|
31
|
-
i0.ɵɵlistener("click", function FileUploadComponent_kendo_dialog_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(
|
|
31
|
+
i0.ɵɵlistener("click", function FileUploadComponent_kendo_dialog_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.Confirm()); });
|
|
32
32
|
i0.ɵɵtext(7, "Overwrite");
|
|
33
33
|
i0.ɵɵelementEnd()()();
|
|
34
34
|
} if (rf & 2) {
|
|
35
|
-
const
|
|
35
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
36
36
|
i0.ɵɵproperty("minWidth", 250)("width", 450);
|
|
37
37
|
i0.ɵɵadvance(2);
|
|
38
|
-
i0.ɵɵtextInterpolate1(" This will overwrite an existing file named '",
|
|
38
|
+
i0.ɵɵtextInterpolate1(" This will overwrite an existing file named '", ctx_r1.ConfirmQueue[0][0].name, "'. Are you sure you want to continue? ");
|
|
39
39
|
} }
|
|
40
40
|
const FileFieldsFragment = gql `
|
|
41
41
|
fragment FileFields on File_ {
|
|
@@ -199,7 +199,7 @@ export class FileUploadComponent {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
FileUploadComponent.ɵfac = function FileUploadComponent_Factory(t) { return new (t || FileUploadComponent)(); };
|
|
202
|
-
FileUploadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileUploadComponent, selectors: [["mj-files-file-upload"]], inputs: { disabled: "disabled", CategoryID: "CategoryID" }, outputs: { uploadStarted: "uploadStarted", fileUpload: "fileUpload" }, decls: 3, vars: 3, consts: [[3, "
|
|
202
|
+
FileUploadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileUploadComponent, selectors: [["mj-files-file-upload"]], inputs: { disabled: "disabled", CategoryID: "CategoryID" }, outputs: { uploadStarted: "uploadStarted", fileUpload: "fileUpload" }, decls: 3, vars: 3, consts: [[3, "select", "disabled", "multiple"], ["title", "Please confirm", 3, "minWidth", "width", "close", 4, "ngIf"], ["title", "Please confirm", 3, "close", "minWidth", "width"], [2, "margin", "30px", "text-align", "center"], ["kendoButton", "", 3, "click"], ["kendoButton", "", "themeColor", "primary", 3, "click"]], template: function FileUploadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
203
203
|
i0.ɵɵelementStart(0, "div")(1, "kendo-fileselect", 0);
|
|
204
204
|
i0.ɵɵlistener("select", function FileUploadComponent_Template_kendo_fileselect_select_1_listener($event) { return ctx.SelectEventHandler($event); });
|
|
205
205
|
i0.ɵɵelementEnd();
|
|
@@ -22,59 +22,59 @@ import * as i7 from "@progress/kendo-angular-grid";
|
|
|
22
22
|
import * as i8 from "@progress/kendo-angular-inputs";
|
|
23
23
|
import * as i9 from "../file-upload/file-upload";
|
|
24
24
|
function FilesGridComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
-
const
|
|
26
|
-
i0.ɵɵelementStart(0, "kendo-button",
|
|
27
|
-
i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_0_listener() { const
|
|
28
|
-
i0.ɵɵelement(1, "span",
|
|
25
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
26
|
+
i0.ɵɵelementStart(0, "kendo-button", 12);
|
|
27
|
+
i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_0_listener() { const dataItem_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.downloadFile(dataItem_r2)); });
|
|
28
|
+
i0.ɵɵelement(1, "span", 13);
|
|
29
29
|
i0.ɵɵelementEnd();
|
|
30
|
-
i0.ɵɵelementStart(2, "kendo-button",
|
|
31
|
-
i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_2_listener() { const
|
|
32
|
-
i0.ɵɵelement(3, "span",
|
|
30
|
+
i0.ɵɵelementStart(2, "kendo-button", 12);
|
|
31
|
+
i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_2_listener() { const dataItem_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.deleteFile(dataItem_r2)); });
|
|
32
|
+
i0.ɵɵelement(3, "span", 14);
|
|
33
33
|
i0.ɵɵelementEnd();
|
|
34
|
-
i0.ɵɵelementStart(4, "kendo-button",
|
|
35
|
-
i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_4_listener() { const
|
|
36
|
-
i0.ɵɵelement(5, "span",
|
|
34
|
+
i0.ɵɵelementStart(4, "kendo-button", 12);
|
|
35
|
+
i0.ɵɵlistener("click", function FilesGridComponent_ng_template_8_Template_kendo_button_click_4_listener() { const dataItem_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.editFile = dataItem_r2); });
|
|
36
|
+
i0.ɵɵelement(5, "span", 15);
|
|
37
37
|
i0.ɵɵelementEnd();
|
|
38
38
|
} if (rf & 2) {
|
|
39
39
|
const dataItem_r2 = ctx.$implicit;
|
|
40
|
-
const
|
|
40
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
41
41
|
i0.ɵɵproperty("disabled", dataItem_r2.Status !== "Uploaded");
|
|
42
42
|
i0.ɵɵadvance(2);
|
|
43
|
-
i0.ɵɵproperty("disabled", !
|
|
43
|
+
i0.ɵɵproperty("disabled", !ctx_r2.canBeDeleted(dataItem_r2));
|
|
44
44
|
i0.ɵɵadvance(2);
|
|
45
45
|
i0.ɵɵproperty("disabled", dataItem_r2.Status !== "Uploaded");
|
|
46
46
|
} }
|
|
47
47
|
function FilesGridComponent_kendo_dialog_10_Template(rf, ctx) { if (rf & 1) {
|
|
48
|
-
const
|
|
49
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
50
|
-
i0.ɵɵlistener("close", function FilesGridComponent_kendo_dialog_10_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(
|
|
51
|
-
i0.ɵɵelementStart(1, "div",
|
|
52
|
-
i0.ɵɵtwoWayListener("ngModelChange", function FilesGridComponent_kendo_dialog_10_Template_kendo_textbox_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(
|
|
48
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
49
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 16);
|
|
50
|
+
i0.ɵɵlistener("close", function FilesGridComponent_kendo_dialog_10_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.resetEditFile()); });
|
|
51
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "form", null, 0)(4, "kendo-label", 17)(5, "kendo-textbox", 18);
|
|
52
|
+
i0.ɵɵtwoWayListener("ngModelChange", function FilesGridComponent_kendo_dialog_10_Template_kendo_textbox_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.editFile.Name, $event) || (ctx_r2.editFile.Name = $event); return i0.ɵɵresetView($event); });
|
|
53
53
|
i0.ɵɵelementEnd()();
|
|
54
54
|
i0.ɵɵelementStart(6, "kendo-label", 19)(7, "kendo-textbox", 20);
|
|
55
|
-
i0.ɵɵtwoWayListener("ngModelChange", function FilesGridComponent_kendo_dialog_10_Template_kendo_textbox_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(
|
|
55
|
+
i0.ɵɵtwoWayListener("ngModelChange", function FilesGridComponent_kendo_dialog_10_Template_kendo_textbox_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.editFile.Description, $event) || (ctx_r2.editFile.Description = $event); return i0.ɵɵresetView($event); });
|
|
56
56
|
i0.ɵɵelementEnd()()()();
|
|
57
57
|
i0.ɵɵelementStart(8, "kendo-dialog-actions")(9, "button", 21);
|
|
58
|
-
i0.ɵɵlistener("click", function FilesGridComponent_kendo_dialog_10_Template_button_click_9_listener() { i0.ɵɵrestoreView(
|
|
58
|
+
i0.ɵɵlistener("click", function FilesGridComponent_kendo_dialog_10_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.resetEditFile()); });
|
|
59
59
|
i0.ɵɵtext(10, "Cancel");
|
|
60
60
|
i0.ɵɵelementEnd();
|
|
61
61
|
i0.ɵɵelementStart(11, "button", 22);
|
|
62
|
-
i0.ɵɵlistener("click", function FilesGridComponent_kendo_dialog_10_Template_button_click_11_listener() { i0.ɵɵrestoreView(
|
|
62
|
+
i0.ɵɵlistener("click", function FilesGridComponent_kendo_dialog_10_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.saveEditFile()); });
|
|
63
63
|
i0.ɵɵtext(12, "Save");
|
|
64
64
|
i0.ɵɵelementEnd()()();
|
|
65
65
|
} if (rf & 2) {
|
|
66
|
-
const
|
|
66
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
67
67
|
i0.ɵɵproperty("minWidth", 250)("width", 450);
|
|
68
68
|
i0.ɵɵadvance(5);
|
|
69
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
70
|
-
i0.ɵɵproperty("showSuccessIcon",
|
|
69
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.editFile.Name);
|
|
70
|
+
i0.ɵɵproperty("showSuccessIcon", ctx_r2.editFile.Name.length > 0)("disabled", ctx_r2.isLoading);
|
|
71
71
|
i0.ɵɵadvance(2);
|
|
72
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
73
|
-
i0.ɵɵproperty("disabled",
|
|
72
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.editFile.Description);
|
|
73
|
+
i0.ɵɵproperty("disabled", ctx_r2.isLoading);
|
|
74
74
|
i0.ɵɵadvance(2);
|
|
75
|
-
i0.ɵɵproperty("disabled",
|
|
75
|
+
i0.ɵɵproperty("disabled", ctx_r2.isLoading);
|
|
76
76
|
i0.ɵɵadvance(2);
|
|
77
|
-
i0.ɵɵproperty("disabled",
|
|
77
|
+
i0.ɵɵproperty("disabled", ctx_r2.isLoading || !ctx_r2.editFile.Dirty);
|
|
78
78
|
} }
|
|
79
79
|
/**
|
|
80
80
|
* Downloads a file from the provided URL.
|
|
@@ -248,8 +248,8 @@ export class FilesGridComponent {
|
|
|
248
248
|
* @returns {Promise<void>} - A promise that resolves when the data is refreshed.
|
|
249
249
|
*/
|
|
250
250
|
Refresh() {
|
|
251
|
-
var _a;
|
|
252
251
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
|
+
var _a;
|
|
253
253
|
this.isLoading = true;
|
|
254
254
|
const rv = new RunView();
|
|
255
255
|
const result = yield rv.RunView(Object.assign({ EntityName: 'Files', ResultType: 'entity_object' }, (this.CategoryID !== undefined && { ExtraFilter: `CategoryID=${this.CategoryID}` })));
|
|
@@ -264,16 +264,16 @@ export class FilesGridComponent {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
FilesGridComponent.ɵfac = function FilesGridComponent_Factory(t) { return new (t || FilesGridComponent)(i0.ɵɵdirectiveInject(i1.SharedService)); };
|
|
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, "
|
|
268
|
-
i0.ɵɵelementStart(0, "div",
|
|
269
|
-
i0.ɵɵelement(2, "kendo-grid-column",
|
|
270
|
-
i0.ɵɵelementStart(7, "kendo-grid-column",
|
|
271
|
-
i0.ɵɵtemplate(8, FilesGridComponent_ng_template_8_Template, 6, 3, "ng-template",
|
|
267
|
+
FilesGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilesGridComponent, selectors: [["mj-files-grid"]], inputs: { CategoryID: "CategoryID" }, features: [i0.ɵɵNgOnChangesFeature], decls: 11, vars: 5, consts: [["templateForm", "ngForm"], [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, "uploadStarted", "fileUpload", "CategoryID", "disabled"], ["title", "Edit file", 3, "minWidth", "width", "close", 4, "ngIf"], [3, "click", "disabled"], [1, "fa-solid", "fa-download"], [1, "fa-solid", "fa-trash-can"], [1, "fa-solid", "fa-pen-to-square"], ["title", "Edit file", 3, "close", "minWidth", "width"], ["text", "Name", 1, "k-form"], ["name", "name", "showErrorIcon", "initial", "required", "", 3, "ngModelChange", "ngModel", "showSuccessIcon", "disabled"], ["text", "Description", 1, "k-form"], ["name", "description", 3, "ngModelChange", "ngModel", "disabled"], ["kendoButton", "", 3, "click", "disabled"], ["kendoButton", "", "themeColor", "primary", 3, "click", "disabled"]], template: function FilesGridComponent_Template(rf, ctx) { if (rf & 1) {
|
|
268
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "kendo-grid", 2);
|
|
269
|
+
i0.ɵɵelement(2, "kendo-grid-column", 3)(3, "kendo-grid-column", 4)(4, "kendo-grid-column", 5)(5, "kendo-grid-column", 6)(6, "kendo-grid-column", 7);
|
|
270
|
+
i0.ɵɵelementStart(7, "kendo-grid-column", 8);
|
|
271
|
+
i0.ɵɵtemplate(8, FilesGridComponent_ng_template_8_Template, 6, 3, "ng-template", 9);
|
|
272
272
|
i0.ɵɵelementEnd()();
|
|
273
|
-
i0.ɵɵelementStart(9, "mj-files-file-upload",
|
|
273
|
+
i0.ɵɵelementStart(9, "mj-files-file-upload", 10);
|
|
274
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); });
|
|
275
275
|
i0.ɵɵelementEnd();
|
|
276
|
-
i0.ɵɵtemplate(10, FilesGridComponent_kendo_dialog_10_Template, 13, 9, "kendo-dialog",
|
|
276
|
+
i0.ɵɵtemplate(10, FilesGridComponent_kendo_dialog_10_Template, 13, 9, "kendo-dialog", 11);
|
|
277
277
|
i0.ɵɵelementEnd();
|
|
278
278
|
} if (rf & 2) {
|
|
279
279
|
i0.ɵɵadvance();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-file-storage",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
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",
|
|
@@ -16,31 +16,32 @@
|
|
|
16
16
|
"author": "",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@angular/compiler": "
|
|
20
|
-
"@angular/compiler-cli": "
|
|
19
|
+
"@angular/compiler": "18.0.2",
|
|
20
|
+
"@angular/compiler-cli": "18.0.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@angular/common": "
|
|
24
|
-
"@angular/core": "
|
|
25
|
-
"@angular/forms": "
|
|
26
|
-
"@angular/router": "
|
|
23
|
+
"@angular/common": "18.0.2",
|
|
24
|
+
"@angular/core": "18.0.2",
|
|
25
|
+
"@angular/forms": "18.0.2",
|
|
26
|
+
"@angular/router": "18.0.2"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@memberjunction/core": "
|
|
30
|
-
"@memberjunction/core-entities": "
|
|
31
|
-
"@memberjunction/global": "
|
|
32
|
-
"@memberjunction/
|
|
33
|
-
"@memberjunction/ng-
|
|
34
|
-
"@
|
|
35
|
-
"@progress/kendo-angular-
|
|
36
|
-
"@progress/kendo-angular-
|
|
37
|
-
"@progress/kendo-angular-
|
|
38
|
-
"@progress/kendo-angular-
|
|
39
|
-
"@progress/kendo-angular-
|
|
40
|
-
"@progress/kendo-angular-
|
|
41
|
-
"@progress/kendo-angular-
|
|
29
|
+
"@memberjunction/core": "1.5.3",
|
|
30
|
+
"@memberjunction/core-entities": "1.5.3",
|
|
31
|
+
"@memberjunction/global": "1.5.3",
|
|
32
|
+
"@memberjunction/graphql-dataprovider": "1.5.3",
|
|
33
|
+
"@memberjunction/ng-container-directives": "1.5.3",
|
|
34
|
+
"@memberjunction/ng-shared": "1.5.3",
|
|
35
|
+
"@progress/kendo-angular-buttons": "16.2.0",
|
|
36
|
+
"@progress/kendo-angular-dialog": "16.2.0",
|
|
37
|
+
"@progress/kendo-angular-dropdowns": "16.2.0",
|
|
38
|
+
"@progress/kendo-angular-indicators": "16.2.0",
|
|
39
|
+
"@progress/kendo-angular-grid": "16.2.0",
|
|
40
|
+
"@progress/kendo-angular-menu": "16.2.0",
|
|
41
|
+
"@progress/kendo-angular-treeview": "16.2.0",
|
|
42
|
+
"@progress/kendo-angular-upload": "16.2.0",
|
|
42
43
|
"tslib": "^2.3.0",
|
|
43
|
-
"zod": "^3.
|
|
44
|
+
"zod": "^3.23.4"
|
|
44
45
|
},
|
|
45
46
|
"sideEffects": false
|
|
46
47
|
}
|