@rs-pk/asset-management 1.0.28 → 1.0.30
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/bundles/rs-pk-asset-management.umd.js +286 -133
- 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 +2 -1
- package/esm2015/lib/asset-management.module.js +2 -12
- package/esm2015/lib/asset-management.service.js +3 -2
- package/esm2015/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +2 -1
- package/esm2015/lib/components/partial/asset-dialog/asset-dialog.component.js +2 -1
- package/esm2015/lib/components/partial/asset-item/asset-item.component.js +7 -3
- package/esm2015/lib/components/partial/asset-list/asset-list.component.js +15 -7
- package/esm2015/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +4 -3
- package/esm2015/lib/components/partial/asset-wrapper/asset-wrapper.component.js +7 -3
- package/esm2015/lib/components/partial/breadcrumb/breadcrumb.component.js +5 -5
- package/esm2015/lib/components/partial/delete-dialog/delete-dialog.component.js +2 -1
- package/esm2015/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +2 -1
- package/esm2015/lib/components/partial/file-item/file-item.component.js +2 -1
- package/esm2015/lib/components/partial/file-list/file-list.component.js +3 -2
- package/esm2015/lib/components/partial/folder-item/folder-item.component.js +2 -1
- package/esm2015/lib/components/partial/folder-list/folder-list.component.js +4 -3
- package/esm2015/lib/components/partial/node-details/node-details.component.js +15 -8
- package/esm2015/lib/components/partial/node-tree/node-tree.component.js +44 -41
- package/esm2015/lib/components/partial/search-box/search-box.component.js +12 -8
- package/esm2015/lib/components/partial/sort-items/sort-items.component.js +2 -1
- package/esm2015/lib/components/partial/upload-dialog/upload-dialog.component.js +3 -2
- package/esm2015/lib/components/partial/upload-file/upload-file.component.js +2 -1
- package/esm2015/lib/components/ui/drag-to-resize/drag-to-resize.component.js +2 -1
- package/esm2015/lib/components/ui/input-file/input-file.component.js +2 -1
- package/esm2015/lib/components/ui/modal/modal.component.js +3 -2
- package/esm2015/lib/components/ui/search-not-found/search-not-found.component.js +2 -1
- package/esm2015/lib/configs/admin.config.js +72 -13
- package/esm2015/lib/contanst/data-image.js +2 -1
- package/esm2015/lib/contanst/index.js +2 -1
- package/esm2015/lib/datasources/index.js +2 -1
- package/esm2015/lib/datasources/node-tree.datasource.js +10 -8
- package/esm2015/lib/directives/dialogTrigger.directive.js +2 -1
- package/esm2015/lib/directives/directives.module.js +2 -1
- package/esm2015/lib/directives/dnd.directive.js +2 -1
- package/esm2015/lib/models/asset-file.model.js +2 -1
- package/esm2015/lib/models/asset.model.js +2 -1
- package/esm2015/lib/models/file-type.enum.js +4 -3
- package/esm2015/lib/models/file.model.js +2 -1
- package/esm2015/lib/models/index.js +2 -1
- package/esm2015/lib/models/node-tree.model.js +2 -1
- package/esm2015/lib/models/sort.enum.js +2 -1
- package/esm2015/lib/pipes/datetime.pipe.js +2 -1
- package/esm2015/lib/pipes/file-size.pipe.js +2 -1
- package/esm2015/lib/services/asset.service.js +8 -5
- package/esm2015/lib/services/base.service.js +2 -1
- package/esm2015/lib/services/env-config.service.js +2 -1
- package/esm2015/lib/services/file.service.js +2 -1
- package/esm2015/lib/services/index.js +2 -1
- package/esm2015/lib/services/node-tree.service.js +23 -18
- package/esm2015/lib/services/upload-assets.service.js +2 -1
- package/esm2015/lib/store/actions.action.js +11 -10
- package/esm2015/lib/store/index.js +2 -1
- package/esm2015/lib/store/reducer.js +11 -10
- package/esm2015/public-api.js +8 -1
- package/esm2015/rs-pk-asset-management.js +5 -10
- package/esm5/lib/asset-management.component.js +2 -1
- package/esm5/lib/asset-management.module.js +6 -16
- package/esm5/lib/asset-management.service.js +3 -2
- package/esm5/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +2 -1
- package/esm5/lib/components/partial/asset-dialog/asset-dialog.component.js +2 -1
- package/esm5/lib/components/partial/asset-item/asset-item.component.js +7 -3
- package/esm5/lib/components/partial/asset-list/asset-list.component.js +17 -9
- package/esm5/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +4 -3
- package/esm5/lib/components/partial/asset-wrapper/asset-wrapper.component.js +7 -3
- package/esm5/lib/components/partial/breadcrumb/breadcrumb.component.js +6 -6
- package/esm5/lib/components/partial/delete-dialog/delete-dialog.component.js +2 -1
- package/esm5/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +2 -1
- package/esm5/lib/components/partial/file-item/file-item.component.js +2 -1
- package/esm5/lib/components/partial/file-list/file-list.component.js +5 -4
- package/esm5/lib/components/partial/folder-item/folder-item.component.js +2 -1
- package/esm5/lib/components/partial/folder-list/folder-list.component.js +4 -3
- package/esm5/lib/components/partial/node-details/node-details.component.js +17 -10
- package/esm5/lib/components/partial/node-tree/node-tree.component.js +64 -52
- package/esm5/lib/components/partial/search-box/search-box.component.js +13 -9
- package/esm5/lib/components/partial/sort-items/sort-items.component.js +2 -1
- package/esm5/lib/components/partial/upload-dialog/upload-dialog.component.js +5 -4
- package/esm5/lib/components/partial/upload-file/upload-file.component.js +4 -3
- package/esm5/lib/components/ui/drag-to-resize/drag-to-resize.component.js +2 -1
- package/esm5/lib/components/ui/input-file/input-file.component.js +2 -1
- package/esm5/lib/components/ui/modal/modal.component.js +3 -2
- package/esm5/lib/components/ui/search-not-found/search-not-found.component.js +2 -1
- package/esm5/lib/configs/admin.config.js +72 -13
- package/esm5/lib/contanst/data-image.js +2 -1
- package/esm5/lib/contanst/index.js +2 -1
- package/esm5/lib/datasources/index.js +2 -1
- package/esm5/lib/datasources/node-tree.datasource.js +19 -14
- package/esm5/lib/directives/dialogTrigger.directive.js +2 -1
- package/esm5/lib/directives/directives.module.js +5 -4
- package/esm5/lib/directives/dnd.directive.js +2 -1
- package/esm5/lib/models/asset-file.model.js +2 -1
- package/esm5/lib/models/asset.model.js +4 -3
- package/esm5/lib/models/file-type.enum.js +4 -3
- package/esm5/lib/models/file.model.js +2 -1
- package/esm5/lib/models/index.js +2 -1
- package/esm5/lib/models/node-tree.model.js +2 -1
- package/esm5/lib/models/sort.enum.js +2 -1
- package/esm5/lib/pipes/datetime.pipe.js +2 -1
- package/esm5/lib/pipes/file-size.pipe.js +2 -1
- package/esm5/lib/services/asset.service.js +10 -5
- package/esm5/lib/services/base.service.js +4 -3
- package/esm5/lib/services/env-config.service.js +2 -1
- package/esm5/lib/services/file.service.js +2 -1
- package/esm5/lib/services/index.js +2 -1
- package/esm5/lib/services/node-tree.service.js +31 -24
- package/esm5/lib/services/upload-assets.service.js +4 -3
- package/esm5/lib/store/actions.action.js +11 -10
- package/esm5/lib/store/index.js +2 -1
- package/esm5/lib/store/reducer.js +12 -11
- package/esm5/public-api.js +8 -1
- package/esm5/rs-pk-asset-management.js +5 -10
- package/fesm2015/rs-pk-asset-management.js +257 -123
- package/fesm2015/rs-pk-asset-management.js.map +1 -1
- package/fesm5/rs-pk-asset-management.js +277 -127
- package/fesm5/rs-pk-asset-management.js.map +1 -1
- package/lib/asset-management.module.d.ts +1 -1
- package/lib/components/partial/add-folder-dialog/add-folder-dialog.component.d.ts +1 -1
- package/lib/components/partial/asset-dialog/asset-dialog.component.d.ts +1 -1
- package/lib/components/partial/asset-item/asset-item.component.d.ts +2 -1
- package/lib/components/partial/asset-list/asset-list.component.d.ts +1 -0
- package/lib/components/partial/asset-management-dialog/asset-management-dialog.component.d.ts +1 -1
- package/lib/components/partial/asset-wrapper/asset-wrapper.component.d.ts +2 -1
- package/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.d.ts +1 -1
- package/lib/components/partial/file-item/file-item.component.d.ts +3 -3
- package/lib/components/partial/file-list/file-list.component.d.ts +1 -1
- package/lib/components/partial/folder-list/folder-list.component.d.ts +1 -1
- package/lib/components/partial/node-details/node-details.component.d.ts +4 -3
- package/lib/components/partial/node-tree/node-tree.component.d.ts +8 -8
- package/lib/components/partial/upload-dialog/upload-dialog.component.d.ts +1 -1
- package/lib/components/partial/upload-file/upload-file.component.d.ts +1 -1
- package/lib/components/ui/drag-to-resize/drag-to-resize.component.d.ts +1 -1
- package/lib/datasources/node-tree.datasource.d.ts +3 -2
- package/lib/services/asset.service.d.ts +2 -2
- package/lib/services/node-tree.service.d.ts +8 -7
- package/lib/services/upload-assets.service.d.ts +4 -4
- package/package.json +10 -11
- package/public-api.d.ts +6 -0
- package/rs-pk-asset-management.d.ts +2 -8
- package/rs-pk-asset-management.metadata.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AMConfig } from './services/env-config.service';
|
|
2
|
-
export declare function AMFactory(config: AMConfig): () => Promise<
|
|
2
|
+
export declare function AMFactory(config: AMConfig): () => Promise<unknown>;
|
|
3
3
|
export declare class AssetManagementModule {
|
|
4
4
|
constructor();
|
|
5
5
|
}
|
|
@@ -18,7 +18,7 @@ export declare class AddFolderDialogComponent implements OnInit, OnDestroy {
|
|
|
18
18
|
form: FormControl;
|
|
19
19
|
constructor(fb: FormBuilder, data: IData, dialogRef: MatDialogRef<AddFolderDialogComponent>, fileService: FileService);
|
|
20
20
|
ngOnInit(): void;
|
|
21
|
-
|
|
21
|
+
get disabled(): boolean;
|
|
22
22
|
onChange(_event: Event): void;
|
|
23
23
|
addFolder(): void;
|
|
24
24
|
closeDialog(res?: boolean): void;
|
|
@@ -49,7 +49,7 @@ export declare class AssetDialogComponent implements OnInit, OnDestroy {
|
|
|
49
49
|
fileType: typeof FileTypeEnum;
|
|
50
50
|
constructor(_env: any, dialog: MatDialog, data: IData, dialogRef: MatDialogRef<AssetDialogComponent>, fileSize: FileSizePipe, uploadAssetsService: UploadAssetsService, assetsService: AssetService, fileService: FileService, domSanitizer: DomSanitizer, svc: AssetManagementService);
|
|
51
51
|
ngOnInit(): void;
|
|
52
|
-
|
|
52
|
+
get disabled(): boolean;
|
|
53
53
|
closeDialog(res?: boolean): void;
|
|
54
54
|
getAssetDetail(): void;
|
|
55
55
|
updateAsset(): void;
|
|
@@ -10,6 +10,7 @@ export declare class AssetItemComponent implements OnInit, OnDestroy {
|
|
|
10
10
|
assetService: AssetService;
|
|
11
11
|
private svc;
|
|
12
12
|
private changeDetectorRef;
|
|
13
|
+
isDialog?: boolean;
|
|
13
14
|
hasModifyPermission?: boolean;
|
|
14
15
|
hasAccessPermission?: boolean;
|
|
15
16
|
hasArchivePermission?: boolean;
|
|
@@ -29,7 +30,7 @@ export declare class AssetItemComponent implements OnInit, OnDestroy {
|
|
|
29
30
|
backgroundProcessingNum: typeof BackgroudProcessingStatus;
|
|
30
31
|
private destroy$;
|
|
31
32
|
ngOnInit(): void;
|
|
32
|
-
|
|
33
|
+
get checkSelectedAsset(): boolean;
|
|
33
34
|
onChange(): void;
|
|
34
35
|
editAsset(): void;
|
|
35
36
|
onUploadAgain(asset: AssetModel): void;
|
|
@@ -6,6 +6,7 @@ import { AssetService } from '../../../services/asset.service';
|
|
|
6
6
|
export declare class AssetListComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
7
|
private assetService;
|
|
8
8
|
private svc;
|
|
9
|
+
isDialog?: boolean;
|
|
9
10
|
hasModifyPermission?: boolean;
|
|
10
11
|
hasAccessPermission?: boolean;
|
|
11
12
|
hasArchivePermission?: boolean;
|
package/lib/components/partial/asset-management-dialog/asset-management-dialog.component.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class AssetManagementDialogComponent implements OnInit, OnDestroy
|
|
|
10
10
|
private destroy$;
|
|
11
11
|
selectedAssets: Array<AssetModel>;
|
|
12
12
|
ngOnInit(): void;
|
|
13
|
-
|
|
13
|
+
get disabled(): boolean;
|
|
14
14
|
selectAssets(): void;
|
|
15
15
|
initDialogConfig(data: DialogConfig): void;
|
|
16
16
|
ngOnDestroy(): void;
|
|
@@ -4,6 +4,7 @@ import { AssetService } from '../../../services/asset.service';
|
|
|
4
4
|
export declare class AssetWrapperComponent implements OnInit, OnDestroy {
|
|
5
5
|
private assetService;
|
|
6
6
|
header: boolean;
|
|
7
|
+
isDialog?: boolean;
|
|
7
8
|
hasModifyPermission?: boolean;
|
|
8
9
|
hasAccessPermission?: boolean;
|
|
9
10
|
hasArchivePermission?: boolean;
|
|
@@ -17,6 +18,6 @@ export declare class AssetWrapperComponent implements OnInit, OnDestroy {
|
|
|
17
18
|
onResize({ width }: {
|
|
18
19
|
width: any;
|
|
19
20
|
}): void;
|
|
20
|
-
|
|
21
|
+
get nodeDetailsWidth(): string;
|
|
21
22
|
ngOnDestroy(): void;
|
|
22
23
|
}
|
|
@@ -19,7 +19,7 @@ export declare class EditFolderDialogComponent implements OnInit, OnDestroy {
|
|
|
19
19
|
form: FormControl;
|
|
20
20
|
constructor(fb: FormBuilder, data: IData, dialogRef: MatDialogRef<EditFolderDialogComponent>, fileService: FileService);
|
|
21
21
|
ngOnInit(): void;
|
|
22
|
-
|
|
22
|
+
get disabled(): boolean;
|
|
23
23
|
onChange(_event: Event): void;
|
|
24
24
|
editFolder(): void;
|
|
25
25
|
closeDialog(res?: boolean): void;
|
|
@@ -11,9 +11,9 @@ export declare class FileItemComponent implements OnInit {
|
|
|
11
11
|
csv: import("@angular/platform-browser").SafeUrl;
|
|
12
12
|
};
|
|
13
13
|
file: File;
|
|
14
|
-
checkError: EventEmitter<
|
|
15
|
-
fileChange: EventEmitter<
|
|
16
|
-
fileRemove: EventEmitter<
|
|
14
|
+
checkError: EventEmitter<any>;
|
|
15
|
+
fileChange: EventEmitter<any>;
|
|
16
|
+
fileRemove: EventEmitter<any>;
|
|
17
17
|
dataFile: {
|
|
18
18
|
name: string;
|
|
19
19
|
size: number;
|
|
@@ -2,7 +2,7 @@ import { OnInit, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { UploadAssetsService } from '../../../services/upload-assets.service';
|
|
3
3
|
export declare class FileListComponent implements OnInit {
|
|
4
4
|
uploadAssetsService: UploadAssetsService;
|
|
5
|
-
revalidate: EventEmitter<
|
|
5
|
+
revalidate: EventEmitter<any>;
|
|
6
6
|
constructor(uploadAssetsService: UploadAssetsService);
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
onFileChange(newFiles: File[]): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { AssetModel } from '../../../models';
|
|
3
|
-
import { MatPaginator, PageEvent } from '@angular/material';
|
|
3
|
+
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
4
4
|
export declare class FolderListComponent implements OnInit, OnDestroy, OnChanges {
|
|
5
5
|
hasModifyPermission?: boolean;
|
|
6
6
|
hasAccessPermission?: boolean;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
4
|
import { AssetManagementService } from '../../../asset-management.service';
|
|
5
5
|
import { AssetModel, FolderTreeModel } from '../../../models';
|
|
6
6
|
import { AssetService } from '../../../services/asset.service';
|
|
7
7
|
import { NodeTreeService } from '../../../services/node-tree.service';
|
|
8
|
-
import { PageEvent } from '@angular/material';
|
|
8
|
+
import { PageEvent } from '@angular/material/paginator';
|
|
9
9
|
export declare class NodeDetailsComponent implements OnInit, OnDestroy {
|
|
10
10
|
dialog: MatDialog;
|
|
11
11
|
assetService: AssetService;
|
|
12
12
|
private nodeTreeService;
|
|
13
13
|
private svc;
|
|
14
14
|
private changeDetectorRef;
|
|
15
|
+
isDialog?: boolean;
|
|
15
16
|
hasModifyPermission?: boolean;
|
|
16
17
|
hasAccessPermission?: boolean;
|
|
17
18
|
hasArchivePermission?: boolean;
|
|
@@ -37,6 +38,6 @@ export declare class NodeDetailsComponent implements OnInit, OnDestroy {
|
|
|
37
38
|
};
|
|
38
39
|
onFolderPageChange(event: PageEvent): void;
|
|
39
40
|
private setFolderPagination;
|
|
40
|
-
|
|
41
|
+
get noResults(): boolean;
|
|
41
42
|
ngOnDestroy(): void;
|
|
42
43
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FlatTreeControl } from
|
|
2
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from
|
|
3
|
-
import { AssetManagementService } from
|
|
4
|
-
import { NodeTreeDataSource } from
|
|
5
|
-
import { DynamicFlatNode } from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { FlatTreeControl } from "@angular/cdk/tree";
|
|
2
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from "@angular/core";
|
|
3
|
+
import { AssetManagementService } from "../../../asset-management.service";
|
|
4
|
+
import { NodeTreeDataSource } from "../../../datasources";
|
|
5
|
+
import { DynamicFlatNode } from "../../../models";
|
|
6
|
+
import { AssetService } from "../../../services/asset.service";
|
|
7
|
+
import { NodeTreeService } from "../../../services/node-tree.service";
|
|
8
8
|
export declare class NodeTreeComponent implements OnInit, OnDestroy {
|
|
9
9
|
assetService: AssetService;
|
|
10
10
|
private nodeTreeService;
|
|
@@ -22,7 +22,7 @@ export declare class NodeTreeComponent implements OnInit, OnDestroy {
|
|
|
22
22
|
dataSource: NodeTreeDataSource;
|
|
23
23
|
folderChildrenMap: Map<string, Map<string, DynamicFlatNode>>;
|
|
24
24
|
private unsubscribe$;
|
|
25
|
-
|
|
25
|
+
get folderTreeMeta(): {
|
|
26
26
|
length: number;
|
|
27
27
|
total: string | number;
|
|
28
28
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { ChangeDetectorRef } from '@angular/core';
|
|
4
4
|
import { UploadAssetsService } from '../../../services/upload-assets.service';
|
|
5
5
|
interface IData {
|
|
@@ -5,7 +5,7 @@ export declare class UploadFileComponent implements OnInit {
|
|
|
5
5
|
private domSanitizer;
|
|
6
6
|
uploadAssetsService: UploadAssetsService;
|
|
7
7
|
base64Image: import("@angular/platform-browser").SafeUrl;
|
|
8
|
-
revalidate: EventEmitter<
|
|
8
|
+
revalidate: EventEmitter<any>;
|
|
9
9
|
isDragging: boolean;
|
|
10
10
|
constructor(domSanitizer: DomSanitizer, uploadAssetsService: UploadAssetsService);
|
|
11
11
|
ngOnInit(): void;
|
|
@@ -2,7 +2,7 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
export declare class DragToResizeComponent implements OnInit {
|
|
3
3
|
minWidth: number;
|
|
4
4
|
maxWidth: number;
|
|
5
|
-
resizeCompleted: EventEmitter<
|
|
5
|
+
resizeCompleted: EventEmitter<any>;
|
|
6
6
|
width: number;
|
|
7
7
|
grabber: boolean;
|
|
8
8
|
private oldX;
|
|
@@ -7,7 +7,8 @@ export declare class NodeTreeDataSource implements DataSource<DynamicFlatNode> {
|
|
|
7
7
|
private _treeControl;
|
|
8
8
|
private _database;
|
|
9
9
|
dataChange: BehaviorSubject<DynamicFlatNode[]>;
|
|
10
|
-
data: DynamicFlatNode[];
|
|
10
|
+
get data(): DynamicFlatNode[];
|
|
11
|
+
set data(value: DynamicFlatNode[]);
|
|
11
12
|
constructor(_treeControl: FlatTreeControl<DynamicFlatNode>, _database: NodeTreeService);
|
|
12
13
|
connect(collectionViewer: CollectionViewer): Observable<DynamicFlatNode[]>;
|
|
13
14
|
disconnect(collectionViewer: CollectionViewer): void;
|
|
@@ -20,5 +21,5 @@ export declare class NodeTreeDataSource implements DataSource<DynamicFlatNode> {
|
|
|
20
21
|
/**
|
|
21
22
|
* Reload the node, remove from display list
|
|
22
23
|
*/
|
|
23
|
-
reloadNode(node: DynamicFlatNode): Promise<void>;
|
|
24
|
+
reloadNode(node: DynamicFlatNode, pageSize?: number): Promise<void>;
|
|
24
25
|
}
|
|
@@ -22,7 +22,7 @@ export declare class AssetService {
|
|
|
22
22
|
maxSize?: number;
|
|
23
23
|
private baseUrl;
|
|
24
24
|
constructor(_env: any, dialog: MatDialog, _api: BaseHttpClient);
|
|
25
|
-
|
|
25
|
+
get AMConfig(): {
|
|
26
26
|
pageFolderSize: any;
|
|
27
27
|
};
|
|
28
28
|
private initOptionFiles;
|
|
@@ -31,7 +31,7 @@ export declare class AssetService {
|
|
|
31
31
|
getFolderList(): Observable<FolderTreeModel>;
|
|
32
32
|
setFolderList(folders: FolderTreeModel, pagination?: any): void;
|
|
33
33
|
getAssetList(): Observable<AssetModel[]>;
|
|
34
|
-
setAssetList(assets: AssetModel[], pagination?: any): void;
|
|
34
|
+
setAssetList(assets: AssetModel[], pagination?: any, totalFile?: number): void;
|
|
35
35
|
setDialogOpenStatus(status: boolean): void;
|
|
36
36
|
getDialogOpenStatus(): Observable<boolean>;
|
|
37
37
|
private setPagination;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BehaviorSubject } from
|
|
2
|
-
import { AssetManagementService } from
|
|
3
|
-
import { AssetModel, DynamicFlatNode, FolderTreeModel, IInitialFolderTreeOptions } from
|
|
4
|
-
import { AssetService } from
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
2
|
+
import { AssetManagementService } from "../asset-management.service";
|
|
3
|
+
import { AssetModel, DynamicFlatNode, FolderTreeModel, IInitialFolderTreeOptions } from "../models";
|
|
4
|
+
import { AssetService } from "./asset.service";
|
|
5
5
|
export declare class NodeTreeService {
|
|
6
6
|
private assetService;
|
|
7
7
|
private svc;
|
|
@@ -10,12 +10,13 @@ export declare class NodeTreeService {
|
|
|
10
10
|
loading$: BehaviorSubject<boolean>;
|
|
11
11
|
initialData$: BehaviorSubject<DynamicFlatNode[]>;
|
|
12
12
|
rootFolder: AssetModel;
|
|
13
|
-
data: AssetModel[];
|
|
13
|
+
get data(): AssetModel[];
|
|
14
|
+
set data(values: AssetModel[]);
|
|
14
15
|
private fetchChildrenFolder;
|
|
15
16
|
/** Initial data from database */
|
|
16
|
-
initialData({ dispatchRootId, pageSize }: IInitialFolderTreeOptions): Promise<DynamicFlatNode[]>;
|
|
17
|
+
initialData({ dispatchRootId, pageSize, }: IInitialFolderTreeOptions): Promise<DynamicFlatNode[]>;
|
|
17
18
|
getDynamicFlatNode(node: FolderTreeModel, level?: number): DynamicFlatNode;
|
|
18
|
-
getChildren(node: FolderTreeModel): Promise<FolderTreeModel>;
|
|
19
|
+
getChildren(node: FolderTreeModel, pageSize?: number): Promise<FolderTreeModel>;
|
|
19
20
|
isExpandable(node: FolderTreeModel): boolean;
|
|
20
21
|
/** Add asset to stored data */
|
|
21
22
|
addNode(asset: AssetModel, parentId?: string): void;
|
|
@@ -25,10 +25,10 @@ export declare class UploadAssetsService {
|
|
|
25
25
|
constructor(_env: any, dialog: MatDialog, _api: BaseHttpClient);
|
|
26
26
|
getErrorObs(): Observable<any>;
|
|
27
27
|
setErrorObs(error: boolean): void;
|
|
28
|
-
|
|
29
|
-
setFiles: File[];
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
get getFiles(): File[];
|
|
29
|
+
set setFiles(files: File[]);
|
|
30
|
+
get errorFiles(): boolean;
|
|
31
|
+
get errorLength(): number;
|
|
32
32
|
deleteFile(index: number): void;
|
|
33
33
|
uploadMultipleAssets(parentAssetId: string): Observable<any>;
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rs-pk/asset-management",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/platform-browser": "
|
|
6
|
-
"@angular/common": "
|
|
7
|
-
"@angular/core": "
|
|
8
|
-
"@angular/forms": "
|
|
9
|
-
"@angular/material": "
|
|
10
|
-
"@angular/animations": "
|
|
11
|
-
"@angular/cdk": "
|
|
12
|
-
"rxjs": "^6.4.0"
|
|
13
|
-
"tslib": "1.11.0"
|
|
5
|
+
"@angular/platform-browser": "^9.1.0",
|
|
6
|
+
"@angular/common": "^9.1.0",
|
|
7
|
+
"@angular/core": "^9.1.0",
|
|
8
|
+
"@angular/forms": "^9.1.0",
|
|
9
|
+
"@angular/material": "^9.2.0",
|
|
10
|
+
"@angular/animations": "^9.1.0",
|
|
11
|
+
"@angular/cdk": "^9.2.0",
|
|
12
|
+
"rxjs": "^6.4.0"
|
|
14
13
|
},
|
|
15
14
|
"main": "bundles/rs-pk-asset-management.umd.js",
|
|
16
15
|
"module": "fesm5/rs-pk-asset-management.js",
|
|
@@ -23,6 +22,6 @@
|
|
|
23
22
|
"metadata": "rs-pk-asset-management.metadata.json",
|
|
24
23
|
"sideEffects": false,
|
|
25
24
|
"dependencies": {
|
|
26
|
-
"tslib": "^1.
|
|
25
|
+
"tslib": "^1.11.1"
|
|
27
26
|
}
|
|
28
27
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -23,4 +23,10 @@ export * from './lib/components/partial/node-details/node-details.component';
|
|
|
23
23
|
export * from './lib/components/ui/input-file/input-file.component';
|
|
24
24
|
export * from './lib/components/ui/modal/modal.component';
|
|
25
25
|
export * from './lib/components/ui/search-not-found/search-not-found.component';
|
|
26
|
+
export * from './lib/components/partial/sort-items/sort-items.component';
|
|
27
|
+
export * from './lib/components/ui/drag-to-resize/drag-to-resize.component';
|
|
28
|
+
export * from './lib/pipes/file-size.pipe';
|
|
29
|
+
export * from './lib/pipes/datetime.pipe';
|
|
30
|
+
export * from './lib/directives/directives.module';
|
|
26
31
|
export * from './lib/directives/dialogTrigger.directive';
|
|
32
|
+
export * from './lib/directives/dnd.directive';
|
|
@@ -2,11 +2,5 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
-
export { AssetManagementService as
|
|
6
|
-
export {
|
|
7
|
-
export { DragToResizeComponent as ɵa } from './lib/components/ui/drag-to-resize/drag-to-resize.component';
|
|
8
|
-
export { DIRECTIVES as ɵh, DirectivesModule as ɵi } from './lib/directives/directives.module';
|
|
9
|
-
export { DndDirective as ɵj } from './lib/directives/dnd.directive';
|
|
10
|
-
export { DialogConfig as ɵe } from './lib/models';
|
|
11
|
-
export { LocalDatePipe as ɵg, LocalDateTimePipe as ɵf } from './lib/pipes/datetime.pipe';
|
|
12
|
-
export { FileSizePipe as ɵb } from './lib/pipes/file-size.pipe';
|
|
5
|
+
export { AssetManagementService as ɵa } from './lib/asset-management.service';
|
|
6
|
+
export { DialogConfig as ɵb } from './lib/models';
|