@volo/abp.ng.file-management 10.5.0 → 10.6.0-rc.2
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.
- package/fesm2022/volo-abp.ng.file-management-config.mjs +4 -4
- package/fesm2022/volo-abp.ng.file-management-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.file-management-proxy.mjs +6 -6
- package/fesm2022/volo-abp.ng.file-management-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.file-management.mjs +138 -120
- package/fesm2022/volo-abp.ng.file-management.mjs.map +1 -1
- package/package.json +5 -5
- package/types/volo-abp.ng.file-management.d.ts +8 -9
|
@@ -16,30 +16,32 @@ import { Uppy } from '@uppy/core';
|
|
|
16
16
|
import Dashboard from '@uppy/dashboard';
|
|
17
17
|
import XHRUpload from '@uppy/xhr-upload';
|
|
18
18
|
import { ExtensibleTableComponent, EXTENSIONS_IDENTIFIER, EntityAction, PROP_DATA_STREAM, EntityProp, ToolbarAction, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, ExtensibleModule } from '@abp/ng.components/extensible';
|
|
19
|
-
import {
|
|
19
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
20
20
|
import { NgbTooltipModule, NgbTooltip, NgbDropdownItem, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
|
|
21
21
|
import { ResourcePermissionManagementComponent } from '@abp/ng.permission-management';
|
|
22
|
+
import { AsyncPipe } from '@angular/common';
|
|
22
23
|
import * as i1$1 from '@swimlane/ngx-datatable';
|
|
23
24
|
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
|
|
24
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
25
25
|
import * as i1$2 from '@angular/router';
|
|
26
26
|
import { RouterModule } from '@angular/router';
|
|
27
27
|
import { PageComponent, PageModule } from '@abp/ng.components/page';
|
|
28
28
|
|
|
29
29
|
class FileManagementBreadcrumbComponent {
|
|
30
30
|
constructor() {
|
|
31
|
-
this.rootBreadcrumbName = input('FileManagement::AllFiles',
|
|
32
|
-
|
|
31
|
+
this.rootBreadcrumbName = input('FileManagement::AllFiles', /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "rootBreadcrumbName" }] : /* istanbul ignore next */ []));
|
|
33
|
+
this.navigatedFolders = input(undefined, /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "navigatedFolders" }] : /* istanbul ignore next */ []));
|
|
33
35
|
this.breadcrumbClick = output();
|
|
34
36
|
this.trackByIdAndName = (_, item) => item.id + '-' + item.name;
|
|
35
37
|
}
|
|
36
38
|
onClick(item) {
|
|
37
39
|
this.breadcrumbClick.emit(item);
|
|
38
40
|
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
40
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
41
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
42
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: FileManagementBreadcrumbComponent, isStandalone: true, selector: "abp-file-management-breadcrumb", inputs: { rootBreadcrumbName: { classPropertyName: "rootBreadcrumbName", publicName: "rootBreadcrumbName", isSignal: true, isRequired: false, transformFunction: null }, navigatedFolders: { classPropertyName: "navigatedFolders", publicName: "navigatedFolders", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { breadcrumbClick: "breadcrumbClick" }, ngImport: i0, template: "<ol class=\"breadcrumb\">\r\n @for (folder of navigatedFolders(); track folder.id; let last = $last; let first = $first) {\r\n <li\r\n (click)=\"onClick(folder)\"\r\n class=\"breadcrumb-item\"\r\n [class.root]=\"first\"\r\n [class.active]=\"last && !first\"\r\n [class.pe-none]=\"last\"\r\n aria-current=\"page\"\r\n >\r\n <span class=\"breadcrumb-item-text\">\r\n @if (first) {\r\n <i class=\"fa fa-home me-1\" aria-hidden=\"true\"></i>\r\n <span>{{ rootBreadcrumbName() | abpLocalization }}</span>\r\n }\r\n @if (!first) {\r\n <span>{{ folder.name }}</span>\r\n }\r\n </span>\r\n </li>\r\n }\r\n</ol>\r\n", styles: [".breadcrumb{padding:3px 0 0;opacity:1;font-size:1em}.breadcrumb-item{padding:0}.breadcrumb-item.active .breadcrumb-item-text{opacity:.5}.breadcrumb-item-text{padding:3px 8px;border-radius:3px}.breadcrumb-item-text:hover{cursor:pointer;background:var(--background)}.breadcrumb-item+.breadcrumb-item:before{content:\">\";opacity:.3;margin:3px 0 0 3px}\n"], dependencies: [{ kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
41
43
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementBreadcrumbComponent, decorators: [{
|
|
43
45
|
type: Component,
|
|
44
46
|
args: [{ selector: 'abp-file-management-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, imports: [LocalizationPipe], template: "<ol class=\"breadcrumb\">\r\n @for (folder of navigatedFolders(); track folder.id; let last = $last; let first = $first) {\r\n <li\r\n (click)=\"onClick(folder)\"\r\n class=\"breadcrumb-item\"\r\n [class.root]=\"first\"\r\n [class.active]=\"last && !first\"\r\n [class.pe-none]=\"last\"\r\n aria-current=\"page\"\r\n >\r\n <span class=\"breadcrumb-item-text\">\r\n @if (first) {\r\n <i class=\"fa fa-home me-1\" aria-hidden=\"true\"></i>\r\n <span>{{ rootBreadcrumbName() | abpLocalization }}</span>\r\n }\r\n @if (!first) {\r\n <span>{{ folder.name }}</span>\r\n }\r\n </span>\r\n </li>\r\n }\r\n</ol>\r\n", styles: [".breadcrumb{padding:3px 0 0;opacity:1;font-size:1em}.breadcrumb-item{padding:0}.breadcrumb-item.active .breadcrumb-item-text{opacity:.5}.breadcrumb-item-text{padding:3px 8px;border-radius:3px}.breadcrumb-item-text:hover{cursor:pointer;background:var(--background)}.breadcrumb-item+.breadcrumb-item:before{content:\">\";opacity:.3;margin:3px 0 0 3px}\n"] }]
|
|
45
47
|
}], propDecorators: { rootBreadcrumbName: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootBreadcrumbName", required: false }] }], navigatedFolders: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigatedFolders", required: false }] }], breadcrumbClick: [{ type: i0.Output, args: ["breadcrumbClick"] }] } });
|
|
@@ -72,10 +74,10 @@ class UpdateStreamService {
|
|
|
72
74
|
// skip initial empty values
|
|
73
75
|
return this.store.sliceState(fn).pipe(skip(1));
|
|
74
76
|
}
|
|
75
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
76
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
77
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UpdateStreamService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
78
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UpdateStreamService }); }
|
|
77
79
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UpdateStreamService, decorators: [{
|
|
79
81
|
type: Injectable
|
|
80
82
|
}], ctorParameters: () => [] });
|
|
81
83
|
|
|
@@ -205,10 +207,10 @@ class DirectoryTreeService {
|
|
|
205
207
|
bindInitialListToRoot(list) {
|
|
206
208
|
return list.map(l => ({ ...l, parentId: l.parentId || ROOT_ID }));
|
|
207
209
|
}
|
|
208
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
209
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
210
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DirectoryTreeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
211
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DirectoryTreeService }); }
|
|
210
212
|
}
|
|
211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DirectoryTreeService, decorators: [{
|
|
212
214
|
type: Injectable
|
|
213
215
|
}], ctorParameters: () => [] });
|
|
214
216
|
|
|
@@ -228,21 +230,27 @@ class CreateFolderModalService {
|
|
|
228
230
|
this.directoryService.refreshNode({ newParentId: parentId });
|
|
229
231
|
}));
|
|
230
232
|
}
|
|
231
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
232
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
233
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: CreateFolderModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
234
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: CreateFolderModalService }); }
|
|
233
235
|
}
|
|
234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: CreateFolderModalService, decorators: [{
|
|
235
237
|
type: Injectable
|
|
236
238
|
}] });
|
|
237
239
|
|
|
238
240
|
class BaseModalComponent {
|
|
239
241
|
constructor() {
|
|
240
|
-
this.title = input(
|
|
241
|
-
|
|
242
|
-
this.
|
|
243
|
-
|
|
244
|
-
this.
|
|
245
|
-
|
|
242
|
+
this.title = input(/* @ts-ignore */
|
|
243
|
+
...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
|
|
244
|
+
this.titleLocalizationParams = input('', /* @ts-ignore */
|
|
245
|
+
...(ngDevMode ? [{ debugName: "titleLocalizationParams" }] : /* istanbul ignore next */ []));
|
|
246
|
+
this.size = input('md', /* @ts-ignore */
|
|
247
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
248
|
+
this.formName = input(/* @ts-ignore */
|
|
249
|
+
...(ngDevMode ? [undefined, { debugName: "formName" }] : /* istanbul ignore next */ []));
|
|
250
|
+
this.visible = input(/* @ts-ignore */
|
|
251
|
+
...(ngDevMode ? [undefined, { debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
252
|
+
this.parent = input(/* @ts-ignore */
|
|
253
|
+
...(ngDevMode ? [undefined, { debugName: "parent" }] : /* istanbul ignore next */ []));
|
|
246
254
|
this.visibleChange = output();
|
|
247
255
|
this.contentSaved = output();
|
|
248
256
|
this.loading = false;
|
|
@@ -280,8 +288,8 @@ class BaseModalComponent {
|
|
|
280
288
|
saveAction() {
|
|
281
289
|
return of({});
|
|
282
290
|
}
|
|
283
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
284
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
291
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BaseModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
292
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BaseModalComponent, isStandalone: true, selector: "abp-file-management-modal", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, titleLocalizationParams: { classPropertyName: "titleLocalizationParams", publicName: "titleLocalizationParams", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, formName: { classPropertyName: "formName", publicName: "formName", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, parent: { classPropertyName: "parent", publicName: "parent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange", contentSaved: "contentSaved" }, ngImport: i0, template: `
|
|
285
293
|
@if (parent()) {
|
|
286
294
|
<abp-modal
|
|
287
295
|
[options]="{ size: parent().size() }"
|
|
@@ -324,7 +332,7 @@ class BaseModalComponent {
|
|
|
324
332
|
}
|
|
325
333
|
`, isInline: true, dependencies: [{ kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
326
334
|
}
|
|
327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BaseModalComponent, decorators: [{
|
|
328
336
|
type: Component,
|
|
329
337
|
args: [{
|
|
330
338
|
selector: 'abp-file-management-modal',
|
|
@@ -381,8 +389,10 @@ class CreateFolderModalComponent extends BaseModalComponent {
|
|
|
381
389
|
super();
|
|
382
390
|
this.fb = inject(UntypedFormBuilder);
|
|
383
391
|
this.service = inject(CreateFolderModalService);
|
|
384
|
-
this.parentId = input(
|
|
385
|
-
|
|
392
|
+
this.parentId = input(/* @ts-ignore */
|
|
393
|
+
...(ngDevMode ? [undefined, { debugName: "parentId" }] : /* istanbul ignore next */ []));
|
|
394
|
+
this.createFolderInputRef = viewChild('createFolderInput', /* @ts-ignore */
|
|
395
|
+
...(ngDevMode ? [{ debugName: "createFolderInputRef" }] : /* istanbul ignore next */ []));
|
|
386
396
|
this.form = this.fb.group({
|
|
387
397
|
name: ['', Validators.required],
|
|
388
398
|
});
|
|
@@ -406,10 +416,10 @@ class CreateFolderModalComponent extends BaseModalComponent {
|
|
|
406
416
|
clear() {
|
|
407
417
|
this.form.reset();
|
|
408
418
|
}
|
|
409
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
410
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
419
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: CreateFolderModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
420
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.7", type: CreateFolderModalComponent, isStandalone: true, selector: "abp-create-folder-modal", inputs: { parentId: { classPropertyName: "parentId", publicName: "parentId", isSignal: true, isRequired: false, transformFunction: null } }, providers: [CreateFolderModalService], viewQueries: [{ propertyName: "createFolderInputRef", first: true, predicate: ["createFolderInput"], descendants: true, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<abp-file-management-modal title=\"CreateFolder\" [parent]=\"self\" formName=\"createFolderForm\">\r\n <form id=\"createFolderForm\" [formGroup]=\"form\" [validateOnSubmit]=\"true\">\r\n <div class=\"form-group\">\r\n <label for=\"createFolderInput\">{{ 'FileManagement::Name' | abpLocalization }} *</label>\r\n <input #createFolderInput formControlName=\"name\" type=\"text\" class=\"form-control\" id=\"createFolderInput\" />\r\n </div>\r\n </form>\r\n</abp-file-management-modal>", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: BaseModalComponent, selector: "abp-file-management-modal", inputs: ["title", "titleLocalizationParams", "size", "formName", "visible", "parent"], outputs: ["visibleChange", "contentSaved"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
411
421
|
}
|
|
412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: CreateFolderModalComponent, decorators: [{
|
|
413
423
|
type: Component,
|
|
414
424
|
args: [{ selector: 'abp-create-folder-modal', changeDetection: ChangeDetectionStrategy.OnPush, providers: [CreateFolderModalService], imports: [
|
|
415
425
|
FormsModule,
|
|
@@ -417,7 +427,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
417
427
|
NgxValidateCoreModule,
|
|
418
428
|
LocalizationPipe,
|
|
419
429
|
BaseModalComponent,
|
|
420
|
-
], template: "<abp-file-management-modal title=\"CreateFolder\" [parent]=\"self\" formName=\"createFolderForm\">\r\n <form id=\"createFolderForm\" [formGroup]=\"form\" validateOnSubmit>\r\n <div class=\"form-group\">\r\n <label for=\"createFolderInput\">{{ 'FileManagement::Name' | abpLocalization }} *</label>\r\n <input #createFolderInput formControlName=\"name\" type=\"text\" class=\"form-control\" id=\"createFolderInput\" />\r\n </div>\r\n </form>\r\n</abp-file-management-modal>" }]
|
|
430
|
+
], template: "<abp-file-management-modal title=\"CreateFolder\" [parent]=\"self\" formName=\"createFolderForm\">\r\n <form id=\"createFolderForm\" [formGroup]=\"form\" [validateOnSubmit]=\"true\">\r\n <div class=\"form-group\">\r\n <label for=\"createFolderInput\">{{ 'FileManagement::Name' | abpLocalization }} *</label>\r\n <input #createFolderInput formControlName=\"name\" type=\"text\" class=\"form-control\" id=\"createFolderInput\" />\r\n </div>\r\n </form>\r\n</abp-file-management-modal>" }]
|
|
421
431
|
}], ctorParameters: () => [], propDecorators: { parentId: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentId", required: false }] }], createFolderInputRef: [{ type: i0.ViewChild, args: ['createFolderInput', { isSignal: true }] }] } });
|
|
422
432
|
|
|
423
433
|
class DeleteService {
|
|
@@ -439,10 +449,10 @@ class DeleteService {
|
|
|
439
449
|
this.toasterService.success('AbpUi::DeletedSuccessfully');
|
|
440
450
|
}));
|
|
441
451
|
}
|
|
442
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
443
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
452
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DeleteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
453
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DeleteService }); }
|
|
444
454
|
}
|
|
445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DeleteService, decorators: [{
|
|
446
456
|
type: Injectable
|
|
447
457
|
}] });
|
|
448
458
|
|
|
@@ -477,10 +487,10 @@ class CurrentDirectoryCanAddService {
|
|
|
477
487
|
}), tap(canAdd => this.cache.set(cacheKey, canAdd)));
|
|
478
488
|
}));
|
|
479
489
|
}
|
|
480
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
481
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
490
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: CurrentDirectoryCanAddService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
491
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: CurrentDirectoryCanAddService, providedIn: 'root' }); }
|
|
482
492
|
}
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: CurrentDirectoryCanAddService, decorators: [{
|
|
484
494
|
type: Injectable,
|
|
485
495
|
args: [{ providedIn: 'root' }]
|
|
486
496
|
}] });
|
|
@@ -499,10 +509,10 @@ class DownloadService {
|
|
|
499
509
|
window.open(`${this.apiUrl}/api/file-management/file-descriptor/download/${file.id}?token=${res.token}`, '_self');
|
|
500
510
|
}));
|
|
501
511
|
}
|
|
502
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
503
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
512
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
513
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DownloadService }); }
|
|
504
514
|
}
|
|
505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DownloadService, decorators: [{
|
|
506
516
|
type: Injectable
|
|
507
517
|
}] });
|
|
508
518
|
|
|
@@ -529,10 +539,10 @@ class MoveService {
|
|
|
529
539
|
this.toaster.success('FileManagement::SuccessfullyMoved');
|
|
530
540
|
}));
|
|
531
541
|
}
|
|
532
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
533
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
542
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
543
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveService }); }
|
|
534
544
|
}
|
|
535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveService, decorators: [{
|
|
536
546
|
type: Injectable
|
|
537
547
|
}] });
|
|
538
548
|
|
|
@@ -629,10 +639,10 @@ class NavigatorService {
|
|
|
629
639
|
findIndexOf(folderId) {
|
|
630
640
|
return this.navigatedFolders.findIndex(folder => folder.id === folderId);
|
|
631
641
|
}
|
|
632
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
633
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
642
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: NavigatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
643
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: NavigatorService }); }
|
|
634
644
|
}
|
|
635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: NavigatorService, decorators: [{
|
|
636
646
|
type: Injectable
|
|
637
647
|
}], ctorParameters: () => [] });
|
|
638
648
|
|
|
@@ -695,10 +705,10 @@ class MoveFileModalService {
|
|
|
695
705
|
getNavigatedFolders() {
|
|
696
706
|
return this.breadcrumbStore.state;
|
|
697
707
|
}
|
|
698
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
699
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
708
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveFileModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
709
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveFileModalService }); }
|
|
700
710
|
}
|
|
701
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveFileModalService, decorators: [{
|
|
702
712
|
type: Injectable
|
|
703
713
|
}] });
|
|
704
714
|
|
|
@@ -716,8 +726,10 @@ class MoveFileModalComponent extends BaseModalComponent {
|
|
|
716
726
|
this.currentDirectoryCanAdd = inject(CurrentDirectoryCanAddService);
|
|
717
727
|
this.cdr = inject(ChangeDetectorRef);
|
|
718
728
|
this.subscription = inject(SubscriptionService);
|
|
719
|
-
this.fileToMove = input(undefined,
|
|
720
|
-
|
|
729
|
+
this.fileToMove = input(undefined, /* @ts-ignore */
|
|
730
|
+
...(ngDevMode ? [{ debugName: "fileToMove" }] : /* istanbul ignore next */ []));
|
|
731
|
+
this.oldParentId = input(undefined, /* @ts-ignore */
|
|
732
|
+
...(ngDevMode ? [{ debugName: "oldParentId" }] : /* istanbul ignore next */ []));
|
|
721
733
|
this.hasDirectoryCreatePermission = this.permissionService.getGrantedPolicy("FileManagement.DirectoryDescriptor.Create" /* eFileManagementPolicyNames.DirectoryDescriptorCreate */);
|
|
722
734
|
this.hasFileCreatePermission = this.permissionService.getGrantedPolicy("FileManagement.FileDescriptor.Create" /* eFileManagementPolicyNames.FileDescriptorCreate */);
|
|
723
735
|
this.canAddToCurrentDirectory = false;
|
|
@@ -747,10 +759,10 @@ class MoveFileModalComponent extends BaseModalComponent {
|
|
|
747
759
|
shouldSave() {
|
|
748
760
|
return this.canMoveToCurrentDirectory;
|
|
749
761
|
}
|
|
750
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
751
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
762
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveFileModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
763
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", type: MoveFileModalComponent, isStandalone: true, selector: "abp-move-file-modal", inputs: { fileToMove: { classPropertyName: "fileToMove", publicName: "fileToMove", isSignal: true, isRequired: false, transformFunction: null }, oldParentId: { classPropertyName: "oldParentId", publicName: "oldParentId", isSignal: true, isRequired: false, transformFunction: null } }, providers: [MoveFileModalService, ListService, SubscriptionService], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<!-- htmlhint attr-lowercase:false -->\r\n<abp-file-management-modal title=\"Move\" [parent]=\"self\">\r\n <span class=\"d-block p-2\">{{ 'FileManagement::MoveToUnder' | abpLocalization }}</span>\r\n <abp-file-management-breadcrumb\r\n [navigatedFolders]=\"(service.breadcrumbs$ | async) ?? []\"\r\n rootBreadcrumbName=\"FileManagement::Root\"\r\n (breadcrumbClick)=\"onBreadcrumbClick($event)\"\r\n />\r\n\r\n <ngx-datatable\r\n [rows]=\"directoryContent$ | async\"\r\n default\r\n [messages]=\"{ emptyMessage: 'FileManagement::MoveHere' | abpLocalization }\"\r\n >\r\n <ngx-datatable-column [sortable]=\"true\" [name]=\"'FileManagement::Name' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div (click)=\"service.goTo(row)\" class=\"pointer\">\r\n <i class=\"fa fa-folder text-primary me-1\" aria-hidden=\"true\"></i> {{ row.name }}\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n</abp-file-management-modal>\r\n", dependencies: [{ kind: "ngmodule", type: NgxDatatableModule }, { kind: "component", type: i1$1.DatatableComponent, selector: "ngx-datatable", inputs: ["targetMarkerTemplate", "rows", "groupRowsBy", "groupedRows", "columns", "selected", "scrollbarV", "scrollbarVDynamic", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "limit", "count", "offset", "loadingIndicator", "ghostLoadingIndicator", "selectionType", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "rowClass", "selectCheck", "displayCheck", "groupExpansionDefault", "trackByProp", "selectAllRowsOnPage", "virtualization", "treeFromRelation", "treeToRelation", "summaryRow", "summaryHeight", "summaryPosition", "disableRowCheck", "rowDraggable", "enableClearingSortState", "rowIdentity"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction", "rowDragEvents"] }, { kind: "directive", type: i1$1.DataTableColumnDirective, selector: "ngx-datatable-column", inputs: ["name", "prop", "bindAsUnsafeHtml", "frozenLeft", "frozenRight", "flexGrow", "resizeable", "comparator", "pipe", "sortable", "draggable", "canAutoResize", "minWidth", "width", "maxWidth", "checkboxable", "headerCheckboxable", "headerClass", "cellClass", "isTreeColumn", "treeLevelIndent", "summaryFunc", "summaryTemplate", "cellTemplate", "headerTemplate", "treeToggleTemplate", "ghostCellTemplate"] }, { kind: "directive", type: i1$1.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { kind: "directive", type: NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { kind: "component", type: FileManagementBreadcrumbComponent, selector: "abp-file-management-breadcrumb", inputs: ["rootBreadcrumbName", "navigatedFolders"], outputs: ["breadcrumbClick"] }, { kind: "component", type: BaseModalComponent, selector: "abp-file-management-modal", inputs: ["title", "titleLocalizationParams", "size", "formName", "visible", "parent"], outputs: ["visibleChange", "contentSaved"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
752
764
|
}
|
|
753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveFileModalComponent, decorators: [{
|
|
754
766
|
type: Component,
|
|
755
767
|
args: [{ selector: 'abp-move-file-modal', changeDetection: ChangeDetectionStrategy.OnPush, providers: [MoveFileModalService, ListService, SubscriptionService], imports: [
|
|
756
768
|
NgxDatatableModule,
|
|
@@ -759,7 +771,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
759
771
|
AsyncPipe,
|
|
760
772
|
FileManagementBreadcrumbComponent,
|
|
761
773
|
BaseModalComponent,
|
|
762
|
-
], template: "<abp-file-management-modal title=\"Move\" [parent]=\"self\">\r\n <span class=\"d-block p-2\">{{ 'FileManagement::MoveToUnder' | abpLocalization }}</span>\r\n <abp-file-management-breadcrumb\r\n [navigatedFolders]=\"service.breadcrumbs$ | async\"\r\n rootBreadcrumbName=\"FileManagement::Root\"\r\n (breadcrumbClick)=\"onBreadcrumbClick($event)\"\r\n />\r\n\r\n <ngx-datatable\r\n [rows]=\"directoryContent$ | async\"\r\n default\r\n [messages]=\"{ emptyMessage: 'FileManagement::MoveHere' | abpLocalization }\"\r\n >\r\n <ngx-datatable-column [sortable]=\"true\" [name]=\"'FileManagement::Name' | abpLocalization\">\r\n <ng-template let-row=\"row\"
|
|
774
|
+
], template: "<!-- htmlhint attr-lowercase:false -->\r\n<abp-file-management-modal title=\"Move\" [parent]=\"self\">\r\n <span class=\"d-block p-2\">{{ 'FileManagement::MoveToUnder' | abpLocalization }}</span>\r\n <abp-file-management-breadcrumb\r\n [navigatedFolders]=\"(service.breadcrumbs$ | async) ?? []\"\r\n rootBreadcrumbName=\"FileManagement::Root\"\r\n (breadcrumbClick)=\"onBreadcrumbClick($event)\"\r\n />\r\n\r\n <ngx-datatable\r\n [rows]=\"directoryContent$ | async\"\r\n default\r\n [messages]=\"{ emptyMessage: 'FileManagement::MoveHere' | abpLocalization }\"\r\n >\r\n <ngx-datatable-column [sortable]=\"true\" [name]=\"'FileManagement::Name' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div (click)=\"service.goTo(row)\" class=\"pointer\">\r\n <i class=\"fa fa-folder text-primary me-1\" aria-hidden=\"true\"></i> {{ row.name }}\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n</abp-file-management-modal>\r\n" }]
|
|
763
775
|
}], ctorParameters: () => [], propDecorators: { fileToMove: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileToMove", required: false }] }], oldParentId: [{ type: i0.Input, args: [{ isSignal: true, alias: "oldParentId", required: false }] }] } });
|
|
764
776
|
|
|
765
777
|
class RenameModalService {
|
|
@@ -783,10 +795,10 @@ class RenameModalService {
|
|
|
783
795
|
callService(service, id, name) {
|
|
784
796
|
return service.rename(id, { name }).pipe(map(() => true));
|
|
785
797
|
}
|
|
786
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
787
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
798
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RenameModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
799
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RenameModalService }); }
|
|
788
800
|
}
|
|
789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RenameModalService, decorators: [{
|
|
790
802
|
type: Injectable
|
|
791
803
|
}] });
|
|
792
804
|
|
|
@@ -795,10 +807,11 @@ class RenameModalComponent extends BaseModalComponent {
|
|
|
795
807
|
super();
|
|
796
808
|
this.service = inject(RenameModalService);
|
|
797
809
|
this.fb = inject(UntypedFormBuilder);
|
|
798
|
-
this.contentToRename = model(null,
|
|
810
|
+
this.contentToRename = model(null, /* @ts-ignore */
|
|
811
|
+
...(ngDevMode ? [{ debugName: "contentToRename" }] : /* istanbul ignore next */ []));
|
|
799
812
|
this.contentRenamed = output();
|
|
800
|
-
this.
|
|
801
|
-
|
|
813
|
+
this.renameFileInputRef = viewChild('renameFileInput', /* @ts-ignore */
|
|
814
|
+
...(ngDevMode ? [{ debugName: "renameFileInputRef" }] : /* istanbul ignore next */ []));
|
|
802
815
|
this.form = this.fb.group({
|
|
803
816
|
name: ['', Validators.required],
|
|
804
817
|
});
|
|
@@ -831,10 +844,10 @@ class RenameModalComponent extends BaseModalComponent {
|
|
|
831
844
|
this.form.reset();
|
|
832
845
|
this.contentToRename.set(null);
|
|
833
846
|
}
|
|
834
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
835
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
847
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RenameModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
848
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.7", type: RenameModalComponent, isStandalone: true, selector: "abp-rename-modal", inputs: { contentToRename: { classPropertyName: "contentToRename", publicName: "contentToRename", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { contentToRename: "contentToRenameChange", contentRenamed: "contentRenamed" }, providers: [RenameModalService], viewQueries: [{ propertyName: "renameFileInputRef", first: true, predicate: ["renameFileInput"], descendants: true, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<abp-file-management-modal title=\"Rename\" formName=\"renameForm\" [parent]=\"self\">\r\n <form [formGroup]=\"form\" (keyup.enter)=\"save()\" [validateOnSubmit]=\"true\">\r\n <div class=\"form-group\">\r\n <label for=\"renameFileInput\">{{ 'FileManagement::Name' | abpLocalization }} *</label>\r\n <input\r\n #renameFileInput\r\n formControlName=\"name\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n id=\"renameFileInput\"\r\n />\r\n </div>\r\n </form>\r\n</abp-file-management-modal>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: BaseModalComponent, selector: "abp-file-management-modal", inputs: ["title", "titleLocalizationParams", "size", "formName", "visible", "parent"], outputs: ["visibleChange", "contentSaved"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
836
849
|
}
|
|
837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RenameModalComponent, decorators: [{
|
|
838
851
|
type: Component,
|
|
839
852
|
args: [{ selector: 'abp-rename-modal', changeDetection: ChangeDetectionStrategy.OnPush, providers: [RenameModalService], imports: [
|
|
840
853
|
FormsModule,
|
|
@@ -842,8 +855,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
842
855
|
NgxValidateCoreModule,
|
|
843
856
|
LocalizationPipe,
|
|
844
857
|
BaseModalComponent,
|
|
845
|
-
], template: "<abp-file-management-modal title=\"Rename\" formName=\"renameForm\" [parent]=\"self\">\r\n <form [formGroup]=\"form\" (keyup.enter)=\"save()\" validateOnSubmit>\r\n <div class=\"form-group\">\r\n <label for=\"renameFileInput\">{{ 'FileManagement::Name' | abpLocalization }} *</label>\r\n <input\r\n #renameFileInput\r\n formControlName=\"name\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n id=\"renameFileInput\"\r\n />\r\n </div>\r\n </form>\r\n</abp-file-management-modal>\r\n" }]
|
|
846
|
-
}], ctorParameters: () => [], propDecorators: { contentToRename: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentToRename", required: false }] }, { type: i0.Output, args: ["contentToRenameChange"] }], contentRenamed: [{ type: i0.Output, args: ["contentRenamed"] }],
|
|
858
|
+
], template: "<abp-file-management-modal title=\"Rename\" formName=\"renameForm\" [parent]=\"self\">\r\n <form [formGroup]=\"form\" (keyup.enter)=\"save()\" [validateOnSubmit]=\"true\">\r\n <div class=\"form-group\">\r\n <label for=\"renameFileInput\">{{ 'FileManagement::Name' | abpLocalization }} *</label>\r\n <input\r\n #renameFileInput\r\n formControlName=\"name\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n id=\"renameFileInput\"\r\n />\r\n </div>\r\n </form>\r\n</abp-file-management-modal>\r\n" }]
|
|
859
|
+
}], ctorParameters: () => [], propDecorators: { contentToRename: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentToRename", required: false }] }, { type: i0.Output, args: ["contentToRenameChange"] }], contentRenamed: [{ type: i0.Output, args: ["contentRenamed"] }], renameFileInputRef: [{ type: i0.ViewChild, args: ['renameFileInput', { isSignal: true }] }] } });
|
|
847
860
|
|
|
848
861
|
class ShareFileModalComponent extends BaseModalComponent {
|
|
849
862
|
constructor() {
|
|
@@ -851,7 +864,8 @@ class ShareFileModalComponent extends BaseModalComponent {
|
|
|
851
864
|
this.fb = inject(UntypedFormBuilder);
|
|
852
865
|
this.service = inject(FileDescriptorService);
|
|
853
866
|
this.updateStream = inject(UpdateStreamService);
|
|
854
|
-
this.contentToShare = input(
|
|
867
|
+
this.contentToShare = input(/* @ts-ignore */
|
|
868
|
+
...(ngDevMode ? [undefined, { debugName: "contentToShare" }] : /* istanbul ignore next */ []));
|
|
855
869
|
this.contentName = '';
|
|
856
870
|
this.form = this.fb.group({
|
|
857
871
|
enableFileShare: [false, Validators.required],
|
|
@@ -866,21 +880,23 @@ class ShareFileModalComponent extends BaseModalComponent {
|
|
|
866
880
|
}
|
|
867
881
|
saveAction() {
|
|
868
882
|
const { id } = this.contentToShare();
|
|
869
|
-
return this.service
|
|
883
|
+
return this.service
|
|
884
|
+
.shareFile(id, this.form.controls.enableFileShare.value)
|
|
885
|
+
.pipe(tap(() => this.updateStream.refreshContent()));
|
|
870
886
|
}
|
|
871
887
|
patchForm() {
|
|
872
888
|
const { shared } = this.contentToShare();
|
|
873
889
|
this.form.patchValue({ enableFileShare: shared });
|
|
874
890
|
}
|
|
875
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
876
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
891
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ShareFileModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
892
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", type: ShareFileModalComponent, isStandalone: true, selector: "abp-share-file-modal", inputs: { contentToShare: { classPropertyName: "contentToShare", publicName: "contentToShare", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
877
893
|
<abp-file-management-modal
|
|
878
894
|
title="ShareFile"
|
|
879
895
|
[parent]="self"
|
|
880
896
|
formName="shareFileForm"
|
|
881
897
|
[titleLocalizationParams]="contentName"
|
|
882
898
|
>
|
|
883
|
-
<form id="shareFileForm" [formGroup]="form" (keyup.enter)="save()" validateOnSubmit>
|
|
899
|
+
<form id="shareFileForm" [formGroup]="form" (keyup.enter)="save()" [validateOnSubmit]="true">
|
|
884
900
|
<div class="form-check">
|
|
885
901
|
<input
|
|
886
902
|
#enableFileShare
|
|
@@ -900,9 +916,9 @@ class ShareFileModalComponent extends BaseModalComponent {
|
|
|
900
916
|
</div>
|
|
901
917
|
</form>
|
|
902
918
|
</abp-file-management-modal>
|
|
903
|
-
`, isInline: true, dependencies: [{ kind: "component", type: BaseModalComponent, selector: "abp-file-management-modal", inputs: ["title", "titleLocalizationParams", "size", "formName", "visible", "parent"], outputs: ["visibleChange", "contentSaved"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
919
|
+
`, isInline: true, dependencies: [{ kind: "component", type: BaseModalComponent, selector: "abp-file-management-modal", inputs: ["title", "titleLocalizationParams", "size", "formName", "visible", "parent"], outputs: ["visibleChange", "contentSaved"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox]:not([ngNoCva])[formControlName],input[type=checkbox]:not([ngNoCva])[formControl],input[type=checkbox]:not([ngNoCva])[ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
904
920
|
}
|
|
905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ShareFileModalComponent, decorators: [{
|
|
906
922
|
type: Component,
|
|
907
923
|
args: [{
|
|
908
924
|
selector: 'abp-share-file-modal',
|
|
@@ -913,7 +929,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
913
929
|
formName="shareFileForm"
|
|
914
930
|
[titleLocalizationParams]="contentName"
|
|
915
931
|
>
|
|
916
|
-
<form id="shareFileForm" [formGroup]="form" (keyup.enter)="save()" validateOnSubmit>
|
|
932
|
+
<form id="shareFileForm" [formGroup]="form" (keyup.enter)="save()" [validateOnSubmit]="true">
|
|
917
933
|
<div class="form-check">
|
|
918
934
|
<input
|
|
919
935
|
#enableFileShare
|
|
@@ -963,12 +979,14 @@ class FileManagementFolderContentComponent {
|
|
|
963
979
|
this.currentList = data.items;
|
|
964
980
|
this.contentUpdate.emit(data.items);
|
|
965
981
|
};
|
|
966
|
-
this.
|
|
982
|
+
this.data = toSignal(this.list
|
|
967
983
|
.hookToQuery(query => this.service.getContent({
|
|
968
984
|
...query,
|
|
969
985
|
id: this.updateStream.currentDirectory,
|
|
970
986
|
}))
|
|
971
|
-
.pipe(tap(this.updateContent))
|
|
987
|
+
.pipe(tap(this.updateContent)), {
|
|
988
|
+
initialValue: { items: [], totalCount: 0 },
|
|
989
|
+
});
|
|
972
990
|
this.isDirectoryPresent = (id) => {
|
|
973
991
|
return this.currentList.some(item => item.id === id);
|
|
974
992
|
};
|
|
@@ -1034,15 +1052,15 @@ class FileManagementFolderContentComponent {
|
|
|
1034
1052
|
this.shareModalOpen = true;
|
|
1035
1053
|
this.contentToShare = withContent;
|
|
1036
1054
|
}
|
|
1037
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1038
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1055
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementFolderContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1056
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: FileManagementFolderContentComponent, isStandalone: true, selector: "abp-file-management-folder-content", outputs: { contentUpdate: "contentUpdate" }, providers: [
|
|
1039
1057
|
{
|
|
1040
1058
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1041
1059
|
useValue: "FileManagement.FolderContentComponent" /* eFileManagementComponents.FolderContent */,
|
|
1042
1060
|
},
|
|
1043
|
-
], ngImport: i0, template: "
|
|
1061
|
+
], ngImport: i0, template: "<abp-extensible-table [list]=\"list\" [data]=\"data().items\" [recordsTotal]=\"data().totalCount\" />\r\n\r\n<abp-rename-modal\r\n [(visible)]=\"renameModalOpen\"\r\n [(contentToRename)]=\"contentToRename\"\r\n (contentSaved)=\"onContentSaved()\"\r\n/>\r\n\r\n<abp-move-file-modal\r\n [(visible)]=\"moveModalOpen\"\r\n (contentSaved)=\"onContentSaved()\"\r\n [fileToMove]=\"fileToMove\"\r\n [oldParentId]=\"parentOfFileToMove\"\r\n/>\r\n\r\n@defer (when contentToShare) {\r\n <abp-share-file-modal\r\n [(visible)]=\"shareModalOpen\"\r\n (contentSaved)=\"onContentSaved()\"\r\n [contentToShare]=\"contentToShare\"\r\n />\r\n}\r\n\r\n@if (permissionsModalVisible && permissionTarget) {\r\n <abp-resource-permission-management\r\n [(visible)]=\"permissionsModalVisible\"\r\n [resourceName]=\"permissionTarget.resourceName\"\r\n [resourceKey]=\"permissionTarget.id\"\r\n [resourceDisplayName]=\"permissionTarget.name\"\r\n />\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: NgbTooltipModule }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: RenameModalComponent, selector: "abp-rename-modal", inputs: ["contentToRename"], outputs: ["contentToRenameChange", "contentRenamed"] }, { kind: "component", type: MoveFileModalComponent, selector: "abp-move-file-modal", inputs: ["fileToMove", "oldParentId"] }, { kind: "component", type: ResourcePermissionManagementComponent, selector: "abp-resource-permission-management", inputs: ["resourceName", "resourceKey", "resourceDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpResourcePermissionManagement"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [ShareFileModalComponent]] }); }
|
|
1044
1062
|
}
|
|
1045
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementFolderContentComponent, decorators: [{
|
|
1046
1064
|
type: Component,
|
|
1047
1065
|
args: [{ selector: 'abp-file-management-folder-content', providers: [
|
|
1048
1066
|
{
|
|
@@ -1056,8 +1074,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1056
1074
|
MoveFileModalComponent,
|
|
1057
1075
|
ShareFileModalComponent,
|
|
1058
1076
|
ResourcePermissionManagementComponent,
|
|
1059
|
-
|
|
1060
|
-
], template: "@if (content$ | async; as data) {\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" />\r\n\r\n <abp-rename-modal\r\n [(visible)]=\"renameModalOpen\"\r\n [(contentToRename)]=\"contentToRename\"\r\n (contentSaved)=\"onContentSaved()\"\r\n />\r\n\r\n <abp-move-file-modal\r\n [(visible)]=\"moveModalOpen\"\r\n (contentSaved)=\"onContentSaved()\"\r\n [fileToMove]=\"fileToMove\"\r\n [oldParentId]=\"parentOfFileToMove\"\r\n />\r\n\r\n @defer (when contentToShare) {\r\n <abp-share-file-modal\r\n [(visible)]=\"shareModalOpen\"\r\n (contentSaved)=\"onContentSaved()\"\r\n [contentToShare]=\"contentToShare\"\r\n />\r\n }\r\n\r\n @if (permissionsModalVisible && permissionTarget) {\r\n <abp-resource-permission-management\r\n [(visible)]=\"permissionsModalVisible\"\r\n [resourceName]=\"permissionTarget.resourceName\"\r\n [resourceKey]=\"permissionTarget.id\"\r\n [resourceDisplayName]=\"permissionTarget.name\"\r\n />\r\n }\r\n}\r\n" }]
|
|
1077
|
+
], template: "<abp-extensible-table [list]=\"list\" [data]=\"data().items\" [recordsTotal]=\"data().totalCount\" />\r\n\r\n<abp-rename-modal\r\n [(visible)]=\"renameModalOpen\"\r\n [(contentToRename)]=\"contentToRename\"\r\n (contentSaved)=\"onContentSaved()\"\r\n/>\r\n\r\n<abp-move-file-modal\r\n [(visible)]=\"moveModalOpen\"\r\n (contentSaved)=\"onContentSaved()\"\r\n [fileToMove]=\"fileToMove\"\r\n [oldParentId]=\"parentOfFileToMove\"\r\n/>\r\n\r\n@defer (when contentToShare) {\r\n <abp-share-file-modal\r\n [(visible)]=\"shareModalOpen\"\r\n (contentSaved)=\"onContentSaved()\"\r\n [contentToShare]=\"contentToShare\"\r\n />\r\n}\r\n\r\n@if (permissionsModalVisible && permissionTarget) {\r\n <abp-resource-permission-management\r\n [(visible)]=\"permissionsModalVisible\"\r\n [resourceName]=\"permissionTarget.resourceName\"\r\n [resourceKey]=\"permissionTarget.id\"\r\n [resourceDisplayName]=\"permissionTarget.name\"\r\n />\r\n}\r\n" }]
|
|
1061
1078
|
}], propDecorators: { contentUpdate: [{ type: i0.Output, args: ["contentUpdate"] }] } });
|
|
1062
1079
|
|
|
1063
1080
|
function isDirectory(data) {
|
|
@@ -1235,8 +1252,8 @@ class FileNameValueResolverComponent {
|
|
|
1235
1252
|
this.navigator = inject(NavigatorService);
|
|
1236
1253
|
this.download = inject(DownloadService);
|
|
1237
1254
|
this.permissionService = inject(PermissionService);
|
|
1238
|
-
this.isSharedLinkGranted = false;
|
|
1239
1255
|
this.hasFilePermission = false;
|
|
1256
|
+
this.isSharedLinkGranted = false;
|
|
1240
1257
|
const isGranted = this.permissionService.getGrantedPolicy("FileManagement.FileDescriptor.Share" /* eFileManagementPolicyNames.FileDescriptorShare */);
|
|
1241
1258
|
this.isSharedLinkGranted = isGranted;
|
|
1242
1259
|
this.hasFilePermission = this.permissionService.getGrantedPolicy("FileManagement.FileDescriptor" /* eFileManagementPolicyNames.FileDescriptor */);
|
|
@@ -1244,8 +1261,8 @@ class FileNameValueResolverComponent {
|
|
|
1244
1261
|
hasViewPermission(value) {
|
|
1245
1262
|
return this.hasFilePermission || Boolean(value.record.canView);
|
|
1246
1263
|
}
|
|
1247
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1248
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1264
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileNameValueResolverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1265
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: FileNameValueResolverComponent, isStandalone: true, selector: "abp-file-name-value-resolver", ngImport: i0, template: `
|
|
1249
1266
|
@if (value$ | async; as value) {
|
|
1250
1267
|
<span [class.pointer]="canInteract(value)" (click)="handleClick(value)">
|
|
1251
1268
|
<span [innerHTML]="value.iconHtml"></span>
|
|
@@ -1262,7 +1279,7 @@ class FileNameValueResolverComponent {
|
|
|
1262
1279
|
}
|
|
1263
1280
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1264
1281
|
}
|
|
1265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileNameValueResolverComponent, decorators: [{
|
|
1266
1283
|
type: Component,
|
|
1267
1284
|
args: [{
|
|
1268
1285
|
selector: 'abp-file-name-value-resolver',
|
|
@@ -1621,10 +1638,10 @@ class UploadService {
|
|
|
1621
1638
|
this.uppy?.close();
|
|
1622
1639
|
this.subscriptionService.closeAll();
|
|
1623
1640
|
}
|
|
1624
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1625
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1641
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1642
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UploadService }); }
|
|
1626
1643
|
}
|
|
1627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UploadService, decorators: [{
|
|
1628
1645
|
type: Injectable
|
|
1629
1646
|
}] });
|
|
1630
1647
|
|
|
@@ -1685,10 +1702,10 @@ class FileManagementButtonsComponent {
|
|
|
1685
1702
|
}));
|
|
1686
1703
|
this.subscriptionService.addOne(canAddToCurrentDirectory$);
|
|
1687
1704
|
}
|
|
1688
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1689
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1705
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementButtonsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1706
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: FileManagementButtonsComponent, isStandalone: true, selector: "abp-file-management-buttons", ngImport: i0, template: "<abp-button\r\n class=\"d-grid\"\r\n [class.d-none]=\"!canCreateFile\"\r\n [buttonId]=\"buttonId\"\r\n iconClass=\"fa fa-upload me-2\"\r\n buttonClass=\"btn btn-primary mb-2\"\r\n>\r\n {{ 'FileManagement::UploadFiles' | abpLocalization }}\r\n</abp-button>\r\n\r\n@if (canCreateDirectory) {\r\n <abp-button\r\n class=\"d-grid\"\r\n [class.d-none]=\"!canCreateDirectory\"\r\n iconClass=\"fa fa-folder-plus me-2\"\r\n buttonClass=\"btn btn-outline-primary mb-4\"\r\n (click)=\"folderCreateModal = true\"\r\n >\r\n {{ 'FileManagement::CreateFolder' | abpLocalization }}\r\n </abp-button>\r\n}\r\n\r\n<abp-create-folder-modal [(visible)]=\"folderCreateModal\" />\r\n", dependencies: [{ kind: "component", type: CreateFolderModalComponent, selector: "abp-create-folder-modal", inputs: ["parentId"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1690
1707
|
}
|
|
1691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementButtonsComponent, decorators: [{
|
|
1692
1709
|
type: Component,
|
|
1693
1710
|
args: [{ selector: 'abp-file-management-buttons', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [LocalizationPipe, CreateFolderModalComponent, ButtonComponent], template: "<abp-button\r\n class=\"d-grid\"\r\n [class.d-none]=\"!canCreateFile\"\r\n [buttonId]=\"buttonId\"\r\n iconClass=\"fa fa-upload me-2\"\r\n buttonClass=\"btn btn-primary mb-2\"\r\n>\r\n {{ 'FileManagement::UploadFiles' | abpLocalization }}\r\n</abp-button>\r\n\r\n@if (canCreateDirectory) {\r\n <abp-button\r\n class=\"d-grid\"\r\n [class.d-none]=\"!canCreateDirectory\"\r\n iconClass=\"fa fa-folder-plus me-2\"\r\n buttonClass=\"btn btn-outline-primary mb-4\"\r\n (click)=\"folderCreateModal = true\"\r\n >\r\n {{ 'FileManagement::CreateFolder' | abpLocalization }}\r\n </abp-button>\r\n}\r\n\r\n<abp-create-folder-modal [(visible)]=\"folderCreateModal\" />\r\n" }]
|
|
1694
1711
|
}] });
|
|
@@ -1717,7 +1734,8 @@ class FileManagementDirectoryTreeComponent {
|
|
|
1717
1734
|
this.moveModalVisible = false;
|
|
1718
1735
|
this.permissionsModalVisible = false;
|
|
1719
1736
|
this.rootId = ROOT_ID;
|
|
1720
|
-
this.tree = viewChild(TreeComponent,
|
|
1737
|
+
this.tree = viewChild(TreeComponent, /* @ts-ignore */
|
|
1738
|
+
...(ngDevMode ? [{ debugName: "tree" }] : /* istanbul ignore next */ []));
|
|
1721
1739
|
this.updateDirectories = (directories) => {
|
|
1722
1740
|
this.directories = directories.map(this.markAsParentHasChildren);
|
|
1723
1741
|
this.cdr.markForCheck();
|
|
@@ -1812,10 +1830,10 @@ class FileManagementDirectoryTreeComponent {
|
|
|
1812
1830
|
canDelete(folder) {
|
|
1813
1831
|
return this.hasDirectoryDeletePermission || Boolean(folder?.canDelete);
|
|
1814
1832
|
}
|
|
1815
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1816
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1833
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementDirectoryTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1834
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: FileManagementDirectoryTreeComponent, isStandalone: true, selector: "abp-file-management-directory-tree", providers: [SubscriptionService], viewQueries: [{ propertyName: "tree", first: true, predicate: TreeComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div>\r\n @if (directories) {\r\n <abp-tree\r\n [nodes]=\"directories\"\r\n [(expandedKeys)]=\"service.extendedKeys\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n (selectedNodeChange)=\"onNodeClick($event)\"\r\n (nzExpandChange)=\"onExpandedKeysChange($event)\"\r\n [selectedNode]=\"selectedNode\"\r\n >\r\n <ng-template abp-tree-expanded-icon-template let-node let-origin=\"origin\">\r\n <i\r\n class=\"far\"\r\n [class.fa-plus-square]=\"!node.isExpanded && origin?.entity?.hasChildren\"\r\n [class.fa-minus-square]=\"node.isExpanded && node.children.length\"\r\n ></i>\r\n </ng-template>\r\n\r\n <ng-template abp-tree-node-template let-node>\r\n <i class=\"fa fa-folder text-primary me-2\" aria-hidden=\"true\"></i>\r\n @if (node.origin.entity.isRoot) {\r\n {{ 'FileManagement::AllFiles' | abpLocalization }}\r\n } @else {\r\n {{ node.title }}\r\n }\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n @if (canCreate(node.origin.entity)) {\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"onCreate(node.origin.entity)\">\r\n {{ 'FileManagement::CreateFolder' | abpLocalization }}\r\n </li>\r\n }\r\n @if (node.origin.entity.id !== rootId && canRename(node.origin.entity)) {\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"onRename(node.origin.entity)\">\r\n {{ 'FileManagement::Rename' | abpLocalization }}\r\n </li>\r\n }\r\n @if (node.origin.entity.id !== rootId && canMove(node.origin.entity)) {\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"onMove(node)\">\r\n {{ 'FileManagement::Move' | abpLocalization }}\r\n </li>\r\n }\r\n @if (node.origin.entity.id !== rootId && canDelete(node.origin.entity)) {\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"onDelete(node.origin.entity)\">\r\n {{ 'FileManagement::Delete' | abpLocalization }}\r\n </li>\r\n }\r\n @if (node.origin.entity.id !== rootId && hasDirectoryManagePermissionsPermission) {\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"onManagePermissions(node.origin.entity)\">\r\n {{ 'FileManagement::Permissions' | abpLocalization }}\r\n </li>\r\n }\r\n </ng-template>\r\n </abp-tree>\r\n }\r\n</div>\r\n\r\n<abp-create-folder-modal [(visible)]=\"createModalVisible\" [parentId]=\"createModalParentId\" />\r\n\r\n<abp-rename-modal\r\n [(visible)]=\"renameModalVisible\"\r\n [(contentToRename)]=\"contentToRename\"\r\n (contentRenamed)=\"onContentRenamed($event)\"\r\n/>\r\n\r\n<abp-move-file-modal\r\n [(visible)]=\"moveModalVisible\"\r\n (contentSaved)=\"afterFolderMoved()\"\r\n [fileToMove]=\"folderToMove\"\r\n [oldParentId]=\"parentOfFolderToMove\"\r\n/>\r\n\r\n@if (permissionsModalVisible && permissionTarget) {\r\n <abp-resource-permission-management\r\n [(visible)]=\"permissionsModalVisible\"\r\n resourceName=\"Volo.FileManagement.DirectoryDescriptor\"\r\n [resourceKey]=\"permissionTarget.id\"\r\n [resourceDisplayName]=\"permissionTarget.name\"\r\n />\r\n}\r\n", dependencies: [{ kind: "directive", type: ExpandedIconTemplateDirective, selector: "[abpTreeExpandedIconTemplate],[abp-tree-expanded-icon-template]" }, { kind: "directive", type: TreeNodeTemplateDirective, selector: "[abpTreeNodeTemplate],[abp-tree-node-template]" }, { kind: "directive", type: NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "component", type: CreateFolderModalComponent, selector: "abp-create-folder-modal", inputs: ["parentId"] }, { kind: "component", type: RenameModalComponent, selector: "abp-rename-modal", inputs: ["contentToRename"], outputs: ["contentToRenameChange", "contentRenamed"] }, { kind: "component", type: MoveFileModalComponent, selector: "abp-move-file-modal", inputs: ["fileToMove", "oldParentId"] }, { kind: "component", type: ResourcePermissionManagementComponent, selector: "abp-resource-permission-management", inputs: ["resourceName", "resourceKey", "resourceDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpResourcePermissionManagement"] }, { kind: "component", type: TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1817
1835
|
}
|
|
1818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementDirectoryTreeComponent, decorators: [{
|
|
1819
1837
|
type: Component,
|
|
1820
1838
|
args: [{ selector: 'abp-file-management-directory-tree', changeDetection: ChangeDetectionStrategy.OnPush, providers: [SubscriptionService], imports: [
|
|
1821
1839
|
ExpandedIconTemplateDirective,
|
|
@@ -1827,7 +1845,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1827
1845
|
MoveFileModalComponent,
|
|
1828
1846
|
ResourcePermissionManagementComponent,
|
|
1829
1847
|
TreeComponent,
|
|
1830
|
-
], template: "<div>\r\n @if (directories) {\r\n <abp-tree\r\n [
|
|
1848
|
+
], template: "<div>\r\n @if (directories) {\r\n <abp-tree\r\n [nodes]=\"directories\"\r\n [(expandedKeys)]=\"service.extendedKeys\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n (selectedNodeChange)=\"onNodeClick($event)\"\r\n (nzExpandChange)=\"onExpandedKeysChange($event)\"\r\n [selectedNode]=\"selectedNode\"\r\n >\r\n <ng-template abp-tree-expanded-icon-template let-node let-origin=\"origin\">\r\n <i\r\n class=\"far\"\r\n [class.fa-plus-square]=\"!node.isExpanded && origin?.entity?.hasChildren\"\r\n [class.fa-minus-square]=\"node.isExpanded && node.children.length\"\r\n ></i>\r\n </ng-template>\r\n\r\n <ng-template abp-tree-node-template let-node>\r\n <i class=\"fa fa-folder text-primary me-2\" aria-hidden=\"true\"></i>\r\n @if (node.origin.entity.isRoot) {\r\n {{ 'FileManagement::AllFiles' | abpLocalization }}\r\n } @else {\r\n {{ node.title }}\r\n }\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n @if (canCreate(node.origin.entity)) {\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"onCreate(node.origin.entity)\">\r\n {{ 'FileManagement::CreateFolder' | abpLocalization }}\r\n </li>\r\n }\r\n @if (node.origin.entity.id !== rootId && canRename(node.origin.entity)) {\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"onRename(node.origin.entity)\">\r\n {{ 'FileManagement::Rename' | abpLocalization }}\r\n </li>\r\n }\r\n @if (node.origin.entity.id !== rootId && canMove(node.origin.entity)) {\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"onMove(node)\">\r\n {{ 'FileManagement::Move' | abpLocalization }}\r\n </li>\r\n }\r\n @if (node.origin.entity.id !== rootId && canDelete(node.origin.entity)) {\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"onDelete(node.origin.entity)\">\r\n {{ 'FileManagement::Delete' | abpLocalization }}\r\n </li>\r\n }\r\n @if (node.origin.entity.id !== rootId && hasDirectoryManagePermissionsPermission) {\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"onManagePermissions(node.origin.entity)\">\r\n {{ 'FileManagement::Permissions' | abpLocalization }}\r\n </li>\r\n }\r\n </ng-template>\r\n </abp-tree>\r\n }\r\n</div>\r\n\r\n<abp-create-folder-modal [(visible)]=\"createModalVisible\" [parentId]=\"createModalParentId\" />\r\n\r\n<abp-rename-modal\r\n [(visible)]=\"renameModalVisible\"\r\n [(contentToRename)]=\"contentToRename\"\r\n (contentRenamed)=\"onContentRenamed($event)\"\r\n/>\r\n\r\n<abp-move-file-modal\r\n [(visible)]=\"moveModalVisible\"\r\n (contentSaved)=\"afterFolderMoved()\"\r\n [fileToMove]=\"folderToMove\"\r\n [oldParentId]=\"parentOfFolderToMove\"\r\n/>\r\n\r\n@if (permissionsModalVisible && permissionTarget) {\r\n <abp-resource-permission-management\r\n [(visible)]=\"permissionsModalVisible\"\r\n resourceName=\"Volo.FileManagement.DirectoryDescriptor\"\r\n [resourceKey]=\"permissionTarget.id\"\r\n [resourceDisplayName]=\"permissionTarget.name\"\r\n />\r\n}\r\n" }]
|
|
1831
1849
|
}], propDecorators: { tree: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TreeComponent), { isSignal: true }] }] } });
|
|
1832
1850
|
|
|
1833
1851
|
class FileManagementFolderFilterComponent {
|
|
@@ -1841,10 +1859,10 @@ class FileManagementFolderFilterComponent {
|
|
|
1841
1859
|
this.navigator.goUpFolder();
|
|
1842
1860
|
}
|
|
1843
1861
|
}
|
|
1844
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1845
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1862
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementFolderFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1863
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: FileManagementFolderFilterComponent, isStandalone: true, selector: "abp-file-management-folder-filter", ngImport: i0, template: "<div class=\"row mb-3\">\r\n <div class=\"col-sm-12 col-md-auto col-lg-auto col-xl-auto\">\r\n <abp-button\r\n type=\"button\"\r\n (click)=\"goUpFolder()\"\r\n [disabled]=\"isAtRoot()\"\r\n [attr.aria-disabled]=\"isAtRoot()\"\r\n [class.disabled]=\"isAtRoot()\"\r\n [style.cursor]=\"isAtRoot() ? 'default' : 'pointer'\"\r\n iconClass=\"fa fa-level-up-alt fa-flip-horizontal me-2\"\r\n buttonClass=\"w-100 mb-2 mb-md-0 shadow-none btn-block btn btn-outline-secondary\"\r\n >{{ 'FileManagement::GoUpFolder' | abpLocalization }}</abp-button\r\n >\r\n </div>\r\n <div class=\"col\">\r\n <div class=\"input-group\">\r\n <input\r\n class=\"form-control page-search-filter-text\"\r\n [(ngModel)]=\"list.filter\"\r\n [placeholder]=\"'FileManagement::Filter' | abpLocalization\"\r\n />\r\n </div>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1846
1864
|
}
|
|
1847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1865
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementFolderFilterComponent, decorators: [{
|
|
1848
1866
|
type: Component,
|
|
1849
1867
|
args: [{ selector: 'abp-file-management-folder-filter', changeDetection: ChangeDetectionStrategy.OnPush, imports: [FormsModule, LocalizationPipe, ButtonComponent], template: "<div class=\"row mb-3\">\r\n <div class=\"col-sm-12 col-md-auto col-lg-auto col-xl-auto\">\r\n <abp-button\r\n type=\"button\"\r\n (click)=\"goUpFolder()\"\r\n [disabled]=\"isAtRoot()\"\r\n [attr.aria-disabled]=\"isAtRoot()\"\r\n [class.disabled]=\"isAtRoot()\"\r\n [style.cursor]=\"isAtRoot() ? 'default' : 'pointer'\"\r\n iconClass=\"fa fa-level-up-alt fa-flip-horizontal me-2\"\r\n buttonClass=\"w-100 mb-2 mb-md-0 shadow-none btn-block btn btn-outline-secondary\"\r\n >{{ 'FileManagement::GoUpFolder' | abpLocalization }}</abp-button\r\n >\r\n </div>\r\n <div class=\"col\">\r\n <div class=\"input-group\">\r\n <input\r\n class=\"form-control page-search-filter-text\"\r\n [(ngModel)]=\"list.filter\"\r\n [placeholder]=\"'FileManagement::Filter' | abpLocalization\"\r\n />\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1850
1868
|
}] });
|
|
@@ -1857,10 +1875,10 @@ class FileManagementFolderPanelComponent {
|
|
|
1857
1875
|
this.contentUpdate = output();
|
|
1858
1876
|
this.updateStream.requestStorageSizeRefresh();
|
|
1859
1877
|
}
|
|
1860
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1861
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1878
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementFolderPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1879
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: FileManagementFolderPanelComponent, isStandalone: true, selector: "abp-file-management-folder-panel", outputs: { contentUpdate: "contentUpdate" }, providers: [ListService], ngImport: i0, template: "<div class=\"row mb-3\">\r\n <div class=\"col\">\r\n <abp-file-management-breadcrumb\r\n [navigatedFolders]=\"navigator.navigatedFolderPath$ | async\"\r\n (breadcrumbClick)=\"navigator.goToFolder($event)\"\r\n />\r\n </div>\r\n</div>\r\n\r\n<abp-file-management-folder-filter />\r\n<abp-file-management-folder-content (contentUpdate)=\"contentUpdate.emit($event)\" />\r\n\r\n@let storageSizeInfo = updateStream.storageSizeInfo$ | async;\r\n@if (storageSizeInfo) {\r\n @let percentage = (storageSizeInfo.totalUsedSize / storageSizeInfo.maxStorageSize) * 100;\r\n @let clampedPercentage = percentage > 100 ? 100 : percentage;\r\n\r\n <div class=\"storage-info-card\">\r\n <div class=\"storage-text\">\r\n <i class=\"fas fa-hdd\"></i>\r\n <span>{{\r\n 'FileManagement::StorageSizeUsage'\r\n | abpLocalization: [storageSizeInfo.formattedUsedSize, storageSizeInfo.formattedMaxSize]\r\n }}</span>\r\n </div>\r\n <div class=\"storage-progress-bar\">\r\n <div\r\n class=\"storage-progress-fill\"\r\n [class]=\"{ 'storage-warning': percentage >= 75, 'storage-danger': percentage >= 90 }\"\r\n [style.width.%]=\"clampedPercentage\"\r\n ></div>\r\n </div>\r\n <div class=\"storage-details\">\r\n <span class=\"storage-percentage\">{{ clampedPercentage.toFixed(1) }}%</span>\r\n <span>\r\n @if (storageSizeInfo.availableSize > 0) {\r\n {{\r\n 'FileManagement::Available' | abpLocalization\r\n }}: {{ storageSizeInfo.formattedAvailableSize }}\r\n } @else {\r\n {{ 'FileManagement::Full' | abpLocalization }}\r\n }\r\n </span>\r\n </div>\r\n </div>\r\n}\r\n", styles: [".storage-info-card{background-color:rgba(var(--bs-light-rgb),.5);border-radius:8px;padding:12px 16px;border:1px solid rgba(var(--bs-border-color),.8)}.storage-info-card .storage-text{font-weight:600;font-size:.875rem;color:var(--bs-dark);margin-bottom:8px;display:flex;align-items:center;gap:8px}.storage-info-card .storage-text i{color:var(--bs-primary)}.storage-info-card .storage-text .storage-usage{font-weight:500;color:var(--bs-dark)}.storage-info-card .storage-progress-bar{height:8px;background-color:var(--bs-gray-300);border-radius:4px;overflow:hidden;position:relative}.storage-info-card .storage-progress-bar .storage-progress-fill{height:100%;background:linear-gradient(90deg,var(--bs-primary) 0%,var(--bs-info) 100%);border-radius:4px;transition:width .3s ease}.storage-info-card .storage-progress-bar .storage-progress-fill.storage-warning{background:linear-gradient(90deg,var(--bs-warning) 0%,var(--bs-orange) 100%)}.storage-info-card .storage-progress-bar .storage-progress-fill.storage-danger{background:linear-gradient(90deg,var(--bs-danger) 0%,var(--bs-danger) 100%)}.storage-info-card .storage-details{font-size:.75rem;color:var(--bs-dark);margin-top:6px;display:flex;justify-content:space-between;letter-spacing:.02em}.storage-info-card .storage-details .storage-percentage{font-weight:500}.storage-info-simple{font-size:.875rem;color:var(--bs-dark);display:flex;align-items:center;gap:8px;padding:8px 12px;background-color:var(--bs-light);border-radius:6px;border:1px solid var(--bs-border-color)}.storage-info-simple i{color:var(--bs-info)}.storage-info-simple .storage-size{font-weight:500;color:var(--bs-dark)}\n"], dependencies: [{ kind: "component", type: FileManagementBreadcrumbComponent, selector: "abp-file-management-breadcrumb", inputs: ["rootBreadcrumbName", "navigatedFolders"], outputs: ["breadcrumbClick"] }, { kind: "component", type: FileManagementFolderFilterComponent, selector: "abp-file-management-folder-filter" }, { kind: "component", type: FileManagementFolderContentComponent, selector: "abp-file-management-folder-content", outputs: ["contentUpdate"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1862
1880
|
}
|
|
1863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementFolderPanelComponent, decorators: [{
|
|
1864
1882
|
type: Component,
|
|
1865
1883
|
args: [{ selector: 'abp-file-management-folder-panel', changeDetection: ChangeDetectionStrategy.OnPush, providers: [ListService], imports: [
|
|
1866
1884
|
FileManagementBreadcrumbComponent,
|
|
@@ -1879,8 +1897,8 @@ class FileManagementComponent {
|
|
|
1879
1897
|
ngOnInit() {
|
|
1880
1898
|
this.directory.updateDirectories(null);
|
|
1881
1899
|
}
|
|
1882
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1883
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1900
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1901
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: FileManagementComponent, isStandalone: true, selector: "abp-file-management", providers: [
|
|
1884
1902
|
DeleteService,
|
|
1885
1903
|
DownloadService,
|
|
1886
1904
|
DirectoryTreeService,
|
|
@@ -1894,7 +1912,7 @@ class FileManagementComponent {
|
|
|
1894
1912
|
},
|
|
1895
1913
|
], ngImport: i0, template: "<abp-page\r\n [title]=\"'FileManagement::Menu:FileManagement' | abpLocalization\"\r\n [toolbar]=\"currentContent\"\r\n>\r\n <div class=\"card\">\r\n <div class=\"card-body z-index-0\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-4 col-lg-3 col\">\r\n <div class=\"p-lg-3 p-md-0 mb-4\">\r\n <abp-file-management-buttons></abp-file-management-buttons>\r\n <abp-file-management-directory-tree></abp-file-management-directory-tree>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-8 col-lg-9 col\">\r\n <div class=\"p-lg-3 p-md-0\">\r\n <abp-file-management-folder-panel\r\n (contentUpdate)=\"currentContent = $event\"\r\n ></abp-file-management-folder-panel>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n", dependencies: [{ kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: FileManagementButtonsComponent, selector: "abp-file-management-buttons" }, { kind: "component", type: FileManagementDirectoryTreeComponent, selector: "abp-file-management-directory-tree" }, { kind: "component", type: FileManagementFolderPanelComponent, selector: "abp-file-management-folder-panel", outputs: ["contentUpdate"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1896
1914
|
}
|
|
1897
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementComponent, decorators: [{
|
|
1898
1916
|
type: Component,
|
|
1899
1917
|
args: [{ selector: 'abp-file-management', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
1900
1918
|
DeleteService,
|
|
@@ -1927,10 +1945,10 @@ class FileManagementGuard {
|
|
|
1927
1945
|
canActivate() {
|
|
1928
1946
|
return this.fileManagementFeatures.pipe(map(features => features.enable));
|
|
1929
1947
|
}
|
|
1930
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1931
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1948
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1949
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementGuard }); }
|
|
1932
1950
|
}
|
|
1933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementGuard, decorators: [{
|
|
1934
1952
|
type: Injectable
|
|
1935
1953
|
}] });
|
|
1936
1954
|
const fileManagementGuard = () => {
|
|
@@ -1969,11 +1987,11 @@ const routes = [
|
|
|
1969
1987
|
},
|
|
1970
1988
|
];
|
|
1971
1989
|
class FileManagementRoutingModule {
|
|
1972
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1973
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1974
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1990
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1991
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: FileManagementRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] }); }
|
|
1992
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
1975
1993
|
}
|
|
1976
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1994
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementRoutingModule, decorators: [{
|
|
1977
1995
|
type: NgModule,
|
|
1978
1996
|
args: [{
|
|
1979
1997
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -2006,10 +2024,10 @@ class FileManagementInitializer {
|
|
|
2006
2024
|
mergeWithDefaultProps(extensions.entityProps, DEFAULT_FILE_MANAGEMENT_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
|
|
2007
2025
|
}), map(() => true));
|
|
2008
2026
|
}
|
|
2009
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2010
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2027
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementInitializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2028
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementInitializer }); }
|
|
2011
2029
|
}
|
|
2012
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementInitializer, decorators: [{
|
|
2013
2031
|
type: Injectable
|
|
2014
2032
|
}] });
|
|
2015
2033
|
|
|
@@ -2060,8 +2078,8 @@ class FileManagementModule {
|
|
|
2060
2078
|
static forLazy(options = {}) {
|
|
2061
2079
|
return new LazyModuleFactory(FileManagementModule.forChild(options));
|
|
2062
2080
|
}
|
|
2063
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2064
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2081
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2082
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: FileManagementModule, imports: [CoreModule,
|
|
2065
2083
|
ThemeSharedModule,
|
|
2066
2084
|
TreeModule,
|
|
2067
2085
|
FileManagementRoutingModule,
|
|
@@ -2087,7 +2105,7 @@ class FileManagementModule {
|
|
|
2087
2105
|
FileManagementFolderFilterComponent,
|
|
2088
2106
|
FileManagementFolderPanelComponent,
|
|
2089
2107
|
FileNameValueResolverComponent] }); }
|
|
2090
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2108
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementModule, imports: [CoreModule,
|
|
2091
2109
|
ThemeSharedModule,
|
|
2092
2110
|
TreeModule,
|
|
2093
2111
|
FileManagementRoutingModule,
|
|
@@ -2101,7 +2119,7 @@ class FileManagementModule {
|
|
|
2101
2119
|
FileManagementFolderFilterComponent,
|
|
2102
2120
|
FileManagementFolderPanelComponent, modals] }); }
|
|
2103
2121
|
}
|
|
2104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FileManagementModule, decorators: [{
|
|
2105
2123
|
type: NgModule,
|
|
2106
2124
|
args: [{
|
|
2107
2125
|
imports: [
|