@rs-pk/asset-management 1.0.23 → 1.0.25
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/README.md +24 -24
- package/bundles/rs-pk-asset-management.umd.js +6438 -6326
- package/bundles/rs-pk-asset-management.umd.js.map +1 -1
- package/bundles/rs-pk-asset-management.umd.min.js +2 -2
- package/bundles/rs-pk-asset-management.umd.min.js.map +1 -1
- package/esm2015/lib/asset-management.component.js +169 -152
- package/esm2015/lib/asset-management.module.js +178 -178
- package/esm2015/lib/asset-management.service.js +45 -45
- package/esm2015/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +146 -146
- package/esm2015/lib/components/partial/asset-dialog/asset-dialog.component.js +398 -395
- package/esm2015/lib/components/partial/asset-item/asset-item.component.js +316 -299
- package/esm2015/lib/components/partial/asset-list/asset-list.component.js +285 -273
- package/esm2015/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +110 -109
- package/esm2015/lib/components/partial/asset-wrapper/asset-wrapper.component.js +119 -100
- package/esm2015/lib/components/partial/breadcrumb/breadcrumb.component.js +121 -121
- package/esm2015/lib/components/partial/delete-dialog/delete-dialog.component.js +139 -139
- package/esm2015/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +151 -151
- package/esm2015/lib/components/partial/file-item/file-item.component.js +181 -181
- package/esm2015/lib/components/partial/file-list/file-list.component.js +73 -73
- package/esm2015/lib/components/partial/folder-item/folder-item.component.js +126 -114
- package/esm2015/lib/components/partial/folder-list/folder-list.component.js +81 -69
- package/esm2015/lib/components/partial/node-details/node-details.component.js +417 -403
- package/esm2015/lib/components/partial/node-tree/node-tree.component.js +330 -330
- package/esm2015/lib/components/partial/search-box/search-box.component.js +158 -158
- package/esm2015/lib/components/partial/sort-items/sort-items.component.js +99 -99
- package/esm2015/lib/components/partial/upload-dialog/upload-dialog.component.js +141 -141
- package/esm2015/lib/components/partial/upload-file/upload-file.component.js +85 -85
- package/esm2015/lib/components/ui/drag-to-resize/drag-to-resize.component.js +96 -96
- package/esm2015/lib/components/ui/input-file/input-file.component.js +49 -49
- package/esm2015/lib/components/ui/modal/modal.component.js +34 -34
- package/esm2015/lib/components/ui/search-not-found/search-not-found.component.js +41 -41
- package/esm2015/lib/configs/admin.config.js +22 -22
- package/esm2015/lib/contanst/data-image.js +20 -20
- package/esm2015/lib/contanst/index.js +6 -6
- package/esm2015/lib/datasources/index.js +6 -6
- package/esm2015/lib/datasources/node-tree.datasource.js +179 -179
- package/esm2015/lib/directives/dialogTrigger.directive.js +47 -47
- package/esm2015/lib/directives/directives.module.js +20 -20
- package/esm2015/lib/directives/dnd.directive.js +57 -57
- package/esm2015/lib/models/asset-file.model.js +57 -57
- package/esm2015/lib/models/asset.model.js +151 -149
- package/esm2015/lib/models/file-type.enum.js +11 -11
- package/esm2015/lib/models/file.model.js +91 -91
- package/esm2015/lib/models/index.js +12 -12
- package/esm2015/lib/models/node-tree.model.js +32 -32
- package/esm2015/lib/models/sort.enum.js +23 -23
- package/esm2015/lib/pipes/datetime.pipe.js +79 -79
- package/esm2015/lib/pipes/file-size.pipe.js +54 -54
- package/esm2015/lib/services/asset.service.js +229 -229
- package/esm2015/lib/services/base.service.js +49 -49
- package/esm2015/lib/services/env-config.service.js +18 -18
- package/esm2015/lib/services/file.service.js +106 -106
- package/esm2015/lib/services/index.js +11 -11
- package/esm2015/lib/services/node-tree.service.js +212 -212
- package/esm2015/lib/services/upload-assets.service.js +178 -178
- package/esm2015/lib/store/actions.action.js +125 -125
- package/esm2015/lib/store/index.js +7 -7
- package/esm2015/lib/store/reducer.js +115 -115
- package/esm2015/public-api.js +34 -34
- package/esm2015/rs-pk-asset-management.js +16 -16
- package/esm5/lib/asset-management.component.js +184 -167
- package/esm5/lib/asset-management.module.js +179 -179
- package/esm5/lib/asset-management.service.js +54 -54
- package/esm5/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +164 -164
- package/esm5/lib/components/partial/asset-dialog/asset-dialog.component.js +440 -437
- package/esm5/lib/components/partial/asset-item/asset-item.component.js +350 -333
- package/esm5/lib/components/partial/asset-list/asset-list.component.js +318 -306
- package/esm5/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +125 -124
- package/esm5/lib/components/partial/asset-wrapper/asset-wrapper.component.js +137 -115
- package/esm5/lib/components/partial/breadcrumb/breadcrumb.component.js +143 -143
- package/esm5/lib/components/partial/delete-dialog/delete-dialog.component.js +154 -154
- package/esm5/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +169 -169
- package/esm5/lib/components/partial/file-item/file-item.component.js +206 -206
- package/esm5/lib/components/partial/file-list/file-list.component.js +93 -93
- package/esm5/lib/components/partial/folder-item/folder-item.component.js +138 -126
- package/esm5/lib/components/partial/folder-list/folder-list.component.js +94 -82
- package/esm5/lib/components/partial/node-details/node-details.component.js +458 -444
- package/esm5/lib/components/partial/node-tree/node-tree.component.js +413 -413
- package/esm5/lib/components/partial/search-box/search-box.component.js +184 -184
- package/esm5/lib/components/partial/sort-items/sort-items.component.js +107 -107
- package/esm5/lib/components/partial/upload-dialog/upload-dialog.component.js +156 -156
- package/esm5/lib/components/partial/upload-file/upload-file.component.js +102 -102
- package/esm5/lib/components/ui/drag-to-resize/drag-to-resize.component.js +117 -117
- package/esm5/lib/components/ui/input-file/input-file.component.js +55 -55
- package/esm5/lib/components/ui/modal/modal.component.js +39 -39
- package/esm5/lib/components/ui/search-not-found/search-not-found.component.js +43 -43
- package/esm5/lib/configs/admin.config.js +22 -22
- package/esm5/lib/contanst/data-image.js +20 -20
- package/esm5/lib/contanst/index.js +6 -6
- package/esm5/lib/datasources/index.js +6 -6
- package/esm5/lib/datasources/node-tree.datasource.js +239 -239
- package/esm5/lib/directives/dialogTrigger.directive.js +53 -53
- package/esm5/lib/directives/directives.module.js +25 -25
- package/esm5/lib/directives/dnd.directive.js +80 -80
- package/esm5/lib/models/asset-file.model.js +69 -69
- package/esm5/lib/models/asset.model.js +170 -168
- package/esm5/lib/models/file-type.enum.js +11 -11
- package/esm5/lib/models/file.model.js +99 -99
- package/esm5/lib/models/index.js +12 -12
- package/esm5/lib/models/node-tree.model.js +37 -37
- package/esm5/lib/models/sort.enum.js +23 -23
- package/esm5/lib/pipes/datetime.pipe.js +83 -83
- package/esm5/lib/pipes/file-size.pipe.js +63 -63
- package/esm5/lib/services/asset.service.js +279 -279
- package/esm5/lib/services/base.service.js +57 -57
- package/esm5/lib/services/env-config.service.js +18 -18
- package/esm5/lib/services/file.service.js +127 -127
- package/esm5/lib/services/index.js +11 -11
- package/esm5/lib/services/node-tree.service.js +278 -278
- package/esm5/lib/services/upload-assets.service.js +207 -207
- package/esm5/lib/store/actions.action.js +143 -143
- package/esm5/lib/store/index.js +7 -7
- package/esm5/lib/store/reducer.js +116 -116
- package/esm5/public-api.js +34 -34
- package/esm5/rs-pk-asset-management.js +16 -16
- package/fesm2015/rs-pk-asset-management.js +5635 -5526
- package/fesm2015/rs-pk-asset-management.js.map +1 -1
- package/fesm5/rs-pk-asset-management.js +6441 -6329
- package/fesm5/rs-pk-asset-management.js.map +1 -1
- package/lib/asset-management.component.d.ts +25 -22
- package/lib/asset-management.module.d.ts +5 -5
- package/lib/asset-management.service.d.ts +7 -7
- package/lib/components/partial/add-folder-dialog/add-folder-dialog.component.d.ts +27 -27
- package/lib/components/partial/asset-dialog/asset-dialog.component.d.ts +65 -60
- package/lib/components/partial/asset-item/asset-item.component.d.ts +40 -37
- package/lib/components/partial/asset-list/asset-list.component.d.ts +27 -24
- package/lib/components/partial/asset-management-dialog/asset-management-dialog.component.d.ts +17 -17
- package/lib/components/partial/asset-wrapper/asset-wrapper.component.d.ts +23 -19
- package/lib/components/partial/breadcrumb/breadcrumb.component.d.ts +18 -18
- package/lib/components/partial/delete-dialog/delete-dialog.component.d.ts +24 -24
- package/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.d.ts +28 -28
- package/lib/components/partial/file-item/file-item.component.d.ts +36 -36
- package/lib/components/partial/file-list/file-list.component.d.ts +15 -15
- package/lib/components/partial/folder-item/folder-item.component.d.ts +17 -14
- package/lib/components/partial/folder-list/folder-list.component.d.ts +14 -11
- package/lib/components/partial/node-details/node-details.component.d.ts +32 -29
- package/lib/components/partial/node-tree/node-tree.component.d.ts +34 -34
- package/lib/components/partial/search-box/search-box.component.d.ts +18 -18
- package/lib/components/partial/sort-items/sort-items.component.d.ts +21 -21
- package/lib/components/partial/upload-dialog/upload-dialog.component.d.ts +25 -25
- package/lib/components/partial/upload-file/upload-file.component.d.ts +16 -16
- package/lib/components/ui/drag-to-resize/drag-to-resize.component.d.ts +15 -15
- package/lib/components/ui/input-file/input-file.component.d.ts +9 -9
- package/lib/components/ui/modal/modal.component.d.ts +7 -7
- package/lib/components/ui/search-not-found/search-not-found.component.d.ts +8 -8
- package/lib/configs/admin.config.d.ts +3 -3
- package/lib/contanst/data-image.d.ts +6 -6
- package/lib/contanst/index.d.ts +1 -1
- package/lib/datasources/index.d.ts +1 -1
- package/lib/datasources/node-tree.datasource.d.ts +24 -24
- package/lib/directives/dialogTrigger.directive.d.ts +7 -7
- package/lib/directives/directives.module.d.ts +5 -5
- package/lib/directives/dnd.directive.d.ts +7 -7
- package/lib/models/asset-file.model.d.ts +26 -26
- package/lib/models/asset.model.d.ts +73 -68
- package/lib/models/file-type.enum.d.ts +4 -4
- package/lib/models/file.model.d.ts +41 -41
- package/lib/models/index.d.ts +7 -7
- package/lib/models/node-tree.model.d.ts +9 -9
- package/lib/models/sort.enum.d.ts +9 -9
- package/lib/pipes/datetime.pipe.d.ts +13 -13
- package/lib/pipes/file-size.pipe.d.ts +5 -5
- package/lib/services/asset.service.d.ts +36 -36
- package/lib/services/base.service.d.ts +20 -20
- package/lib/services/env-config.service.d.ts +7 -7
- package/lib/services/file.service.d.ts +13 -13
- package/lib/services/index.d.ts +6 -6
- package/lib/services/node-tree.service.d.ts +24 -24
- package/lib/services/upload-assets.service.d.ts +34 -34
- package/lib/store/actions.action.d.ts +51 -51
- package/lib/store/index.d.ts +2 -2
- package/lib/store/reducer.d.ts +18 -18
- package/package.json +2 -1
- package/public-api.d.ts +26 -26
- package/rs-pk-asset-management.d.ts +12 -12
- package/rs-pk-asset-management.metadata.json +1 -1
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { AssetManagementService } from './asset-management.service';
|
|
4
|
-
import { AssetModel } from './models';
|
|
5
|
-
import { AssetService } from './services/asset.service';
|
|
6
|
-
export declare class AssetManagementComponent implements OnInit, OnDestroy {
|
|
7
|
-
private dialog;
|
|
8
|
-
private svc;
|
|
9
|
-
private assetService;
|
|
10
|
-
isDialog?: boolean;
|
|
11
|
-
limit?: number;
|
|
12
|
-
allowedType?: string;
|
|
13
|
-
maxSize?: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { AssetManagementService } from './asset-management.service';
|
|
4
|
+
import { AssetModel } from './models';
|
|
5
|
+
import { AssetService } from './services/asset.service';
|
|
6
|
+
export declare class AssetManagementComponent implements OnInit, OnDestroy {
|
|
7
|
+
private dialog;
|
|
8
|
+
private svc;
|
|
9
|
+
private assetService;
|
|
10
|
+
isDialog?: boolean;
|
|
11
|
+
limit?: number;
|
|
12
|
+
allowedType?: string;
|
|
13
|
+
maxSize?: number;
|
|
14
|
+
hasModifyPermission?: boolean;
|
|
15
|
+
hasAccessPermission?: boolean;
|
|
16
|
+
hasArchivePermission?: boolean;
|
|
17
|
+
assetChange: EventEmitter<AssetModel[]>;
|
|
18
|
+
private destroy$;
|
|
19
|
+
constructor(dialog: MatDialog, svc: AssetManagementService, assetService: AssetService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
bindSubscriber(): void;
|
|
22
|
+
onAssetsChange(assets: any): void;
|
|
23
|
+
openAssetsDialog(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AMConfig } from './services/env-config.service';
|
|
2
|
-
export declare function AMFactory(config: AMConfig): () => Promise<{}>;
|
|
3
|
-
export declare class AssetManagementModule {
|
|
4
|
-
constructor();
|
|
5
|
-
}
|
|
1
|
+
import { AMConfig } from './services/env-config.service';
|
|
2
|
+
export declare function AMFactory(config: AMConfig): () => Promise<{}>;
|
|
3
|
+
export declare class AssetManagementModule {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as ACTIONS from './store/actions.action';
|
|
2
|
-
export declare class AssetManagementService {
|
|
3
|
-
private _dispatcher;
|
|
4
|
-
constructor();
|
|
5
|
-
getDispatcher(): any;
|
|
6
|
-
dispatch(action: ACTIONS.Actions): void;
|
|
7
|
-
}
|
|
1
|
+
import * as ACTIONS from './store/actions.action';
|
|
2
|
+
export declare class AssetManagementService {
|
|
3
|
+
private _dispatcher;
|
|
4
|
+
constructor();
|
|
5
|
+
getDispatcher(): any;
|
|
6
|
+
dispatch(action: ACTIONS.Actions): void;
|
|
7
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
-
import { FileService } from '../../../services/file.service';
|
|
5
|
-
interface IData {
|
|
6
|
-
currentAssetId: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class AddFolderDialogComponent implements OnInit, OnDestroy {
|
|
9
|
-
private fb;
|
|
10
|
-
data: IData;
|
|
11
|
-
dialogRef: MatDialogRef<AddFolderDialogComponent>;
|
|
12
|
-
private fileService;
|
|
13
|
-
isLoading: boolean;
|
|
14
|
-
errorMessage: string;
|
|
15
|
-
value: string;
|
|
16
|
-
private destroy$;
|
|
17
|
-
formGroup: FormGroup;
|
|
18
|
-
form: FormControl;
|
|
19
|
-
constructor(fb: FormBuilder, data: IData, dialogRef: MatDialogRef<AddFolderDialogComponent>, fileService: FileService);
|
|
20
|
-
ngOnInit(): void;
|
|
21
|
-
readonly disabled: boolean;
|
|
22
|
-
onChange(_event: Event): void;
|
|
23
|
-
addFolder(): void;
|
|
24
|
-
closeDialog(res?: boolean): void;
|
|
25
|
-
ngOnDestroy(): void;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
+
import { FileService } from '../../../services/file.service';
|
|
5
|
+
interface IData {
|
|
6
|
+
currentAssetId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class AddFolderDialogComponent implements OnInit, OnDestroy {
|
|
9
|
+
private fb;
|
|
10
|
+
data: IData;
|
|
11
|
+
dialogRef: MatDialogRef<AddFolderDialogComponent>;
|
|
12
|
+
private fileService;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
errorMessage: string;
|
|
15
|
+
value: string;
|
|
16
|
+
private destroy$;
|
|
17
|
+
formGroup: FormGroup;
|
|
18
|
+
form: FormControl;
|
|
19
|
+
constructor(fb: FormBuilder, data: IData, dialogRef: MatDialogRef<AddFolderDialogComponent>, fileService: FileService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
readonly disabled: boolean;
|
|
22
|
+
onChange(_event: Event): void;
|
|
23
|
+
addFolder(): void;
|
|
24
|
+
closeDialog(res?: boolean): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -1,60 +1,65 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
-
import { AssetManagementService } from '../../../asset-management.service';
|
|
5
|
-
import { AssetModel, FileTypeEnum } from '../../../models';
|
|
6
|
-
import { FileSizePipe } from '../../../pipes/file-size.pipe';
|
|
7
|
-
import { AssetService } from '../../../services/asset.service';
|
|
8
|
-
import { FileService } from '../../../services/file.service';
|
|
9
|
-
import { UploadAssetsService } from '../../../services/upload-assets.service';
|
|
10
|
-
interface IData {
|
|
11
|
-
assetId: string;
|
|
12
|
-
name: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
private
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import { AssetManagementService } from '../../../asset-management.service';
|
|
5
|
+
import { AssetModel, FileTypeEnum } from '../../../models';
|
|
6
|
+
import { FileSizePipe } from '../../../pipes/file-size.pipe';
|
|
7
|
+
import { AssetService } from '../../../services/asset.service';
|
|
8
|
+
import { FileService } from '../../../services/file.service';
|
|
9
|
+
import { UploadAssetsService } from '../../../services/upload-assets.service';
|
|
10
|
+
interface IData {
|
|
11
|
+
assetId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
permission: {
|
|
14
|
+
modify: boolean;
|
|
15
|
+
access: boolean;
|
|
16
|
+
archive: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare class AssetDialogComponent implements OnInit, OnDestroy {
|
|
20
|
+
private _env;
|
|
21
|
+
private dialog;
|
|
22
|
+
data: IData;
|
|
23
|
+
dialogRef: MatDialogRef<AssetDialogComponent>;
|
|
24
|
+
private fileSize;
|
|
25
|
+
uploadAssetsService: UploadAssetsService;
|
|
26
|
+
assetsService: AssetService;
|
|
27
|
+
private fileService;
|
|
28
|
+
private domSanitizer;
|
|
29
|
+
private svc;
|
|
30
|
+
fileName: string;
|
|
31
|
+
description: string;
|
|
32
|
+
linkDownload: string;
|
|
33
|
+
isCopied: boolean;
|
|
34
|
+
errorMessage: string;
|
|
35
|
+
patternError: boolean;
|
|
36
|
+
replaceMessage: string;
|
|
37
|
+
acceptTypes: string[];
|
|
38
|
+
assetDetails: AssetModel;
|
|
39
|
+
private destroy$;
|
|
40
|
+
base64PNG: {
|
|
41
|
+
pdf: import("@angular/platform-browser").SafeUrl;
|
|
42
|
+
zip: import("@angular/platform-browser").SafeUrl;
|
|
43
|
+
csv: import("@angular/platform-browser").SafeUrl;
|
|
44
|
+
default: import("@angular/platform-browser").SafeUrl;
|
|
45
|
+
};
|
|
46
|
+
private timer;
|
|
47
|
+
isLoading: boolean;
|
|
48
|
+
isUpdating: boolean;
|
|
49
|
+
fileType: typeof FileTypeEnum;
|
|
50
|
+
constructor(_env: any, dialog: MatDialog, data: IData, dialogRef: MatDialogRef<AssetDialogComponent>, fileSize: FileSizePipe, uploadAssetsService: UploadAssetsService, assetsService: AssetService, fileService: FileService, domSanitizer: DomSanitizer, svc: AssetManagementService);
|
|
51
|
+
ngOnInit(): void;
|
|
52
|
+
readonly disabled: boolean;
|
|
53
|
+
closeDialog(res?: boolean): void;
|
|
54
|
+
getAssetDetail(): void;
|
|
55
|
+
updateAsset(): void;
|
|
56
|
+
deleteAsset(): void;
|
|
57
|
+
replaceAsset(files: File[]): void;
|
|
58
|
+
validateFile(file: File): boolean;
|
|
59
|
+
matchExt(fileType: string): string;
|
|
60
|
+
onChangeName(event: Event): void;
|
|
61
|
+
onChangeDescription(event: Event): void;
|
|
62
|
+
copyText(content: string): void;
|
|
63
|
+
ngOnDestroy(): void;
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
-
import { AssetManagementService } from '../../../asset-management.service';
|
|
5
|
-
import { AssetModel, BackgroudProcessingStatus, FileTypeEnum, FolderTreeModel } from '../../../models';
|
|
6
|
-
import { AssetService } from '../../../services/asset.service';
|
|
7
|
-
export declare class AssetItemComponent implements OnInit, OnDestroy {
|
|
8
|
-
private dialog;
|
|
9
|
-
private domSanitizer;
|
|
10
|
-
assetService: AssetService;
|
|
11
|
-
private svc;
|
|
12
|
-
private changeDetectorRef;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import { AssetManagementService } from '../../../asset-management.service';
|
|
5
|
+
import { AssetModel, BackgroudProcessingStatus, FileTypeEnum, FolderTreeModel } from '../../../models';
|
|
6
|
+
import { AssetService } from '../../../services/asset.service';
|
|
7
|
+
export declare class AssetItemComponent implements OnInit, OnDestroy {
|
|
8
|
+
private dialog;
|
|
9
|
+
private domSanitizer;
|
|
10
|
+
assetService: AssetService;
|
|
11
|
+
private svc;
|
|
12
|
+
private changeDetectorRef;
|
|
13
|
+
hasModifyPermission?: boolean;
|
|
14
|
+
hasAccessPermission?: boolean;
|
|
15
|
+
hasArchivePermission?: boolean;
|
|
16
|
+
constructor(dialog: MatDialog, domSanitizer: DomSanitizer, assetService: AssetService, svc: AssetManagementService, changeDetectorRef: ChangeDetectorRef);
|
|
17
|
+
asset: AssetModel;
|
|
18
|
+
selectAsset: EventEmitter<AssetModel>;
|
|
19
|
+
base64PNG: {
|
|
20
|
+
pdf: import("@angular/platform-browser").SafeUrl;
|
|
21
|
+
zip: import("@angular/platform-browser").SafeUrl;
|
|
22
|
+
csv: import("@angular/platform-browser").SafeUrl;
|
|
23
|
+
default: import("@angular/platform-browser").SafeUrl;
|
|
24
|
+
};
|
|
25
|
+
errorMessage: string;
|
|
26
|
+
selectedAssets: Array<AssetModel>;
|
|
27
|
+
currentFolder: FolderTreeModel;
|
|
28
|
+
fileType: typeof FileTypeEnum;
|
|
29
|
+
backgroundProcessingNum: typeof BackgroudProcessingStatus;
|
|
30
|
+
private destroy$;
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
readonly checkSelectedAsset: boolean;
|
|
33
|
+
onChange(): void;
|
|
34
|
+
editAsset(): void;
|
|
35
|
+
onUploadAgain(asset: AssetModel): void;
|
|
36
|
+
onDelete(asset: AssetModel): void;
|
|
37
|
+
private _bindSubscriber;
|
|
38
|
+
private _openUploadDialog;
|
|
39
|
+
ngOnDestroy(): void;
|
|
40
|
+
}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
3
|
-
import { AssetManagementService } from '../../../asset-management.service';
|
|
4
|
-
import { AssetModel, BackgroudProcessingStatus } from '../../../models';
|
|
5
|
-
import { AssetService } from '../../../services/asset.service';
|
|
6
|
-
export declare class AssetListComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
|
-
private assetService;
|
|
8
|
-
private svc;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
private
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
3
|
+
import { AssetManagementService } from '../../../asset-management.service';
|
|
4
|
+
import { AssetModel, BackgroudProcessingStatus } from '../../../models';
|
|
5
|
+
import { AssetService } from '../../../services/asset.service';
|
|
6
|
+
export declare class AssetListComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
|
+
private assetService;
|
|
8
|
+
private svc;
|
|
9
|
+
hasModifyPermission?: boolean;
|
|
10
|
+
hasAccessPermission?: boolean;
|
|
11
|
+
hasArchivePermission?: boolean;
|
|
12
|
+
constructor(assetService: AssetService, svc: AssetManagementService);
|
|
13
|
+
paginator: MatPaginator;
|
|
14
|
+
assets: AssetModel[];
|
|
15
|
+
backgroundProcessingNum: typeof BackgroudProcessingStatus;
|
|
16
|
+
private unsubscribe$;
|
|
17
|
+
private currentFolderId;
|
|
18
|
+
private selectedAssets;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
onSelectAsset(event: AssetModel): void;
|
|
22
|
+
private bindSubscriber;
|
|
23
|
+
pageChange(event?: PageEvent): void;
|
|
24
|
+
private fetchChildrenAssets;
|
|
25
|
+
private _resetUploadingAssets;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
}
|
package/lib/components/partial/asset-management-dialog/asset-management-dialog.component.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { AssetModel, DialogConfig } from '../../../models';
|
|
4
|
-
import { AssetService } from '../../../services/asset.service';
|
|
5
|
-
export declare class AssetManagementDialogComponent implements OnInit, OnDestroy {
|
|
6
|
-
data: DialogConfig;
|
|
7
|
-
dialogRef: MatDialogRef<AssetManagementDialogComponent>;
|
|
8
|
-
private assetService;
|
|
9
|
-
constructor(data: DialogConfig, dialogRef: MatDialogRef<AssetManagementDialogComponent>, assetService: AssetService);
|
|
10
|
-
private destroy$;
|
|
11
|
-
selectedAssets: Array<AssetModel>;
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
readonly disabled: boolean;
|
|
14
|
-
selectAssets(): void;
|
|
15
|
-
initDialogConfig(data: DialogConfig): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
}
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { AssetModel, DialogConfig } from '../../../models';
|
|
4
|
+
import { AssetService } from '../../../services/asset.service';
|
|
5
|
+
export declare class AssetManagementDialogComponent implements OnInit, OnDestroy {
|
|
6
|
+
data: DialogConfig;
|
|
7
|
+
dialogRef: MatDialogRef<AssetManagementDialogComponent>;
|
|
8
|
+
private assetService;
|
|
9
|
+
constructor(data: DialogConfig, dialogRef: MatDialogRef<AssetManagementDialogComponent>, assetService: AssetService);
|
|
10
|
+
private destroy$;
|
|
11
|
+
selectedAssets: Array<AssetModel>;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
readonly disabled: boolean;
|
|
14
|
+
selectAssets(): void;
|
|
15
|
+
initDialogConfig(data: DialogConfig): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { AssetModel } from '../../../models';
|
|
3
|
-
import { AssetService } from '../../../services/asset.service';
|
|
4
|
-
export declare class AssetWrapperComponent implements OnInit, OnDestroy {
|
|
5
|
-
private assetService;
|
|
6
|
-
header: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AssetModel } from '../../../models';
|
|
3
|
+
import { AssetService } from '../../../services/asset.service';
|
|
4
|
+
export declare class AssetWrapperComponent implements OnInit, OnDestroy {
|
|
5
|
+
private assetService;
|
|
6
|
+
header: boolean;
|
|
7
|
+
hasModifyPermission?: boolean;
|
|
8
|
+
hasAccessPermission?: boolean;
|
|
9
|
+
hasArchivePermission?: boolean;
|
|
10
|
+
assets: EventEmitter<AssetModel[]>;
|
|
11
|
+
private unsubscribe$;
|
|
12
|
+
nodeTreeMinWidth: number;
|
|
13
|
+
nodeTreeMaxWidth: number;
|
|
14
|
+
nodeTreeWidth: any;
|
|
15
|
+
constructor(assetService: AssetService);
|
|
16
|
+
ngOnChanges(): void;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
onResize({ width }: {
|
|
19
|
+
width: any;
|
|
20
|
+
}): void;
|
|
21
|
+
readonly nodeDetailsWidth: string;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { AssetManagementService } from '../../../asset-management.service';
|
|
3
|
-
import { FolderTreeModel } from '../../../models';
|
|
4
|
-
import { NodeTreeService } from '../../../services/node-tree.service';
|
|
5
|
-
export declare class BreadcrumbComponent implements OnInit, OnDestroy {
|
|
6
|
-
private nodeTreeService;
|
|
7
|
-
private svc;
|
|
8
|
-
private changeDetectorRef;
|
|
9
|
-
constructor(nodeTreeService: NodeTreeService, svc: AssetManagementService, changeDetectorRef: ChangeDetectorRef);
|
|
10
|
-
private unsubscribe$;
|
|
11
|
-
currentFolderHierarchy: Array<FolderTreeModel>;
|
|
12
|
-
maximumShownLevel: number;
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
ngOnDestroy(): void;
|
|
15
|
-
private bindSubscriber;
|
|
16
|
-
navigateToFolder(folder: FolderTreeModel): void;
|
|
17
|
-
backToHome(): Promise<void>;
|
|
18
|
-
}
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AssetManagementService } from '../../../asset-management.service';
|
|
3
|
+
import { FolderTreeModel } from '../../../models';
|
|
4
|
+
import { NodeTreeService } from '../../../services/node-tree.service';
|
|
5
|
+
export declare class BreadcrumbComponent implements OnInit, OnDestroy {
|
|
6
|
+
private nodeTreeService;
|
|
7
|
+
private svc;
|
|
8
|
+
private changeDetectorRef;
|
|
9
|
+
constructor(nodeTreeService: NodeTreeService, svc: AssetManagementService, changeDetectorRef: ChangeDetectorRef);
|
|
10
|
+
private unsubscribe$;
|
|
11
|
+
currentFolderHierarchy: Array<FolderTreeModel>;
|
|
12
|
+
maximumShownLevel: number;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
private bindSubscriber;
|
|
16
|
+
navigateToFolder(folder: FolderTreeModel): void;
|
|
17
|
+
backToHome(): Promise<void>;
|
|
18
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { FileService } from '../../../services/file.service';
|
|
4
|
-
import { AssetService } from '../../../services/asset.service';
|
|
5
|
-
interface IData {
|
|
6
|
-
type: 'file' | 'folder' | 'files';
|
|
7
|
-
ids: string[];
|
|
8
|
-
name?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class DeleteDialogComponent implements OnInit, OnDestroy {
|
|
11
|
-
data: IData;
|
|
12
|
-
dialogRef: MatDialogRef<DeleteDialogComponent>;
|
|
13
|
-
private fileService;
|
|
14
|
-
private assetService;
|
|
15
|
-
isLoading: boolean;
|
|
16
|
-
private destroy$;
|
|
17
|
-
constructor(data: IData, dialogRef: MatDialogRef<DeleteDialogComponent>, fileService: FileService, assetService: AssetService);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
delete(): void;
|
|
20
|
-
private handleAssetPaging;
|
|
21
|
-
closeDialog(res?: boolean): void;
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { FileService } from '../../../services/file.service';
|
|
4
|
+
import { AssetService } from '../../../services/asset.service';
|
|
5
|
+
interface IData {
|
|
6
|
+
type: 'file' | 'folder' | 'files';
|
|
7
|
+
ids: string[];
|
|
8
|
+
name?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class DeleteDialogComponent implements OnInit, OnDestroy {
|
|
11
|
+
data: IData;
|
|
12
|
+
dialogRef: MatDialogRef<DeleteDialogComponent>;
|
|
13
|
+
private fileService;
|
|
14
|
+
private assetService;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
private destroy$;
|
|
17
|
+
constructor(data: IData, dialogRef: MatDialogRef<DeleteDialogComponent>, fileService: FileService, assetService: AssetService);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
delete(): void;
|
|
20
|
+
private handleAssetPaging;
|
|
21
|
+
closeDialog(res?: boolean): void;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { FileService } from '../../../services/file.service';
|
|
4
|
-
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
5
|
-
interface IData {
|
|
6
|
-
assetId: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class EditFolderDialogComponent implements OnInit, OnDestroy {
|
|
10
|
-
private fb;
|
|
11
|
-
data: IData;
|
|
12
|
-
dialogRef: MatDialogRef<EditFolderDialogComponent>;
|
|
13
|
-
private fileService;
|
|
14
|
-
isLoading: boolean;
|
|
15
|
-
errorMessage: string;
|
|
16
|
-
value: string;
|
|
17
|
-
private destroy$;
|
|
18
|
-
formGroup: FormGroup;
|
|
19
|
-
form: FormControl;
|
|
20
|
-
constructor(fb: FormBuilder, data: IData, dialogRef: MatDialogRef<EditFolderDialogComponent>, fileService: FileService);
|
|
21
|
-
ngOnInit(): void;
|
|
22
|
-
readonly disabled: boolean;
|
|
23
|
-
onChange(_event: Event): void;
|
|
24
|
-
editFolder(): void;
|
|
25
|
-
closeDialog(res?: boolean): void;
|
|
26
|
-
ngOnDestroy(): void;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { FileService } from '../../../services/file.service';
|
|
4
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
5
|
+
interface IData {
|
|
6
|
+
assetId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class EditFolderDialogComponent implements OnInit, OnDestroy {
|
|
10
|
+
private fb;
|
|
11
|
+
data: IData;
|
|
12
|
+
dialogRef: MatDialogRef<EditFolderDialogComponent>;
|
|
13
|
+
private fileService;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
errorMessage: string;
|
|
16
|
+
value: string;
|
|
17
|
+
private destroy$;
|
|
18
|
+
formGroup: FormGroup;
|
|
19
|
+
form: FormControl;
|
|
20
|
+
constructor(fb: FormBuilder, data: IData, dialogRef: MatDialogRef<EditFolderDialogComponent>, fileService: FileService);
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
readonly disabled: boolean;
|
|
23
|
+
onChange(_event: Event): void;
|
|
24
|
+
editFolder(): void;
|
|
25
|
+
closeDialog(res?: boolean): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
}
|
|
28
|
+
export {};
|