@rs-pk/asset-management 1.0.25 → 1.0.26
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 +6436 -6436
- 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 -169
- 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 -398
- package/esm2015/lib/components/partial/asset-item/asset-item.component.js +316 -316
- package/esm2015/lib/components/partial/asset-list/asset-list.component.js +285 -285
- package/esm2015/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +110 -110
- package/esm2015/lib/components/partial/asset-wrapper/asset-wrapper.component.js +119 -119
- 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 -126
- package/esm2015/lib/components/partial/folder-list/folder-list.component.js +81 -81
- package/esm2015/lib/components/partial/node-details/node-details.component.js +417 -417
- 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 -151
- 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 -184
- 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 -440
- package/esm5/lib/components/partial/asset-item/asset-item.component.js +350 -350
- package/esm5/lib/components/partial/asset-list/asset-list.component.js +318 -318
- package/esm5/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +125 -125
- package/esm5/lib/components/partial/asset-wrapper/asset-wrapper.component.js +137 -137
- 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 -138
- package/esm5/lib/components/partial/folder-list/folder-list.component.js +94 -94
- package/esm5/lib/components/partial/node-details/node-details.component.js +458 -458
- 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 -170
- 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 -5635
- package/fesm2015/rs-pk-asset-management.js.map +1 -1
- package/fesm5/rs-pk-asset-management.js +6441 -6441
- package/fesm5/rs-pk-asset-management.js.map +1 -1
- package/lib/asset-management.component.d.ts +25 -25
- 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 -65
- package/lib/components/partial/asset-item/asset-item.component.d.ts +40 -40
- package/lib/components/partial/asset-list/asset-list.component.d.ts +27 -27
- 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 -23
- 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 -17
- package/lib/components/partial/folder-list/folder-list.component.d.ts +14 -14
- package/lib/components/partial/node-details/node-details.component.d.ts +32 -32
- 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 -73
- 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 +1 -2
- 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,143 +1,143 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { ChangeDetectorRef, Component } from '@angular/core';
|
|
7
|
-
import { of } from 'rxjs/internal/observable/of';
|
|
8
|
-
import { Subject } from 'rxjs/internal/Subject';
|
|
9
|
-
import { switchMap, takeUntil } from 'rxjs/operators';
|
|
10
|
-
import { AssetManagementService } from '../../../asset-management.service';
|
|
11
|
-
import { NodeTreeService } from '../../../services/node-tree.service';
|
|
12
|
-
import { ActionTypes, select } from '../../../store';
|
|
13
|
-
var BreadcrumbComponent = /** @class */ (function () {
|
|
14
|
-
function BreadcrumbComponent(nodeTreeService, svc, changeDetectorRef) {
|
|
15
|
-
this.nodeTreeService = nodeTreeService;
|
|
16
|
-
this.svc = svc;
|
|
17
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
18
|
-
this.unsubscribe$ = new Subject();
|
|
19
|
-
this.currentFolderHierarchy = [];
|
|
20
|
-
this.maximumShownLevel = 3;
|
|
21
|
-
this.bindSubscriber();
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @return {?}
|
|
25
|
-
*/
|
|
26
|
-
BreadcrumbComponent.prototype.ngOnInit = /**
|
|
27
|
-
* @return {?}
|
|
28
|
-
*/
|
|
29
|
-
function () { };
|
|
30
|
-
/**
|
|
31
|
-
* @return {?}
|
|
32
|
-
*/
|
|
33
|
-
BreadcrumbComponent.prototype.ngOnDestroy = /**
|
|
34
|
-
* @return {?}
|
|
35
|
-
*/
|
|
36
|
-
function () {
|
|
37
|
-
this.unsubscribe$.next();
|
|
38
|
-
this.unsubscribe$.complete();
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* @private
|
|
42
|
-
* @return {?}
|
|
43
|
-
*/
|
|
44
|
-
BreadcrumbComponent.prototype.bindSubscriber = /**
|
|
45
|
-
* @private
|
|
46
|
-
* @return {?}
|
|
47
|
-
*/
|
|
48
|
-
function () {
|
|
49
|
-
var _this = this;
|
|
50
|
-
select((/**
|
|
51
|
-
* @param {?} state
|
|
52
|
-
* @return {?}
|
|
53
|
-
*/
|
|
54
|
-
function (state) { return state.currentFolderHierarchy; }))
|
|
55
|
-
.pipe(takeUntil(this.unsubscribe$), switchMap((/**
|
|
56
|
-
* @param {?} res
|
|
57
|
-
* @return {?}
|
|
58
|
-
*/
|
|
59
|
-
function (res) { return of(res); })))
|
|
60
|
-
.subscribe((/**
|
|
61
|
-
* @param {?} currentFolderHierarchy
|
|
62
|
-
* @return {?}
|
|
63
|
-
*/
|
|
64
|
-
function (currentFolderHierarchy) {
|
|
65
|
-
_this.currentFolderHierarchy = currentFolderHierarchy;
|
|
66
|
-
}));
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* @param {?} folder
|
|
70
|
-
* @return {?}
|
|
71
|
-
*/
|
|
72
|
-
BreadcrumbComponent.prototype.navigateToFolder = /**
|
|
73
|
-
* @param {?} folder
|
|
74
|
-
* @return {?}
|
|
75
|
-
*/
|
|
76
|
-
function (folder) {
|
|
77
|
-
this.svc.dispatch({
|
|
78
|
-
type: ActionTypes.SET_CURRENT_FOLDER_ID,
|
|
79
|
-
payload: folder.AssetId,
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* @return {?}
|
|
84
|
-
*/
|
|
85
|
-
BreadcrumbComponent.prototype.backToHome = /**
|
|
86
|
-
* @return {?}
|
|
87
|
-
*/
|
|
88
|
-
function () {
|
|
89
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
90
|
-
return tslib_1.__generator(this, function (_a) {
|
|
91
|
-
switch (_a.label) {
|
|
92
|
-
case 0: return [4 /*yield*/, this.nodeTreeService.initialData({ dispatchRootId: true })];
|
|
93
|
-
case 1:
|
|
94
|
-
_a.sent();
|
|
95
|
-
this.changeDetectorRef.detectChanges();
|
|
96
|
-
return [2 /*return*/];
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
BreadcrumbComponent.decorators = [
|
|
102
|
-
{ type: Component, args: [{
|
|
103
|
-
selector: 'lib-breadcrumb',
|
|
104
|
-
template: "<nav class=\"breadcrumb-wrapper\">\
|
|
105
|
-
styles: [":host::ng-deep .breadcrumb-wrapper{color:#979797;background-color:#fff}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb{display:flex;align-items:center;margin:0;padding:0}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item{height:20px;display:flex;align-items:center;list-style:none}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--icon{color:#c8c8c8;cursor:default}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;font-size:14px;padding:0;font-weight:400;cursor:pointer;transition:.3s;height:20px;line-height:20px}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name:hover{color:#000}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name .mat-icon{color:#979797;height:16px}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name .mat-icon:hover{color:#000}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name.current-item{cursor:default}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name.current-item:hover{color:#979797}"]
|
|
106
|
-
}] }
|
|
107
|
-
];
|
|
108
|
-
/** @nocollapse */
|
|
109
|
-
BreadcrumbComponent.ctorParameters = function () { return [
|
|
110
|
-
{ type: NodeTreeService },
|
|
111
|
-
{ type: AssetManagementService },
|
|
112
|
-
{ type: ChangeDetectorRef }
|
|
113
|
-
]; };
|
|
114
|
-
return BreadcrumbComponent;
|
|
115
|
-
}());
|
|
116
|
-
export { BreadcrumbComponent };
|
|
117
|
-
if (false) {
|
|
118
|
-
/**
|
|
119
|
-
* @type {?}
|
|
120
|
-
* @private
|
|
121
|
-
*/
|
|
122
|
-
BreadcrumbComponent.prototype.unsubscribe$;
|
|
123
|
-
/** @type {?} */
|
|
124
|
-
BreadcrumbComponent.prototype.currentFolderHierarchy;
|
|
125
|
-
/** @type {?} */
|
|
126
|
-
BreadcrumbComponent.prototype.maximumShownLevel;
|
|
127
|
-
/**
|
|
128
|
-
* @type {?}
|
|
129
|
-
* @private
|
|
130
|
-
*/
|
|
131
|
-
BreadcrumbComponent.prototype.nodeTreeService;
|
|
132
|
-
/**
|
|
133
|
-
* @type {?}
|
|
134
|
-
* @private
|
|
135
|
-
*/
|
|
136
|
-
BreadcrumbComponent.prototype.svc;
|
|
137
|
-
/**
|
|
138
|
-
* @type {?}
|
|
139
|
-
* @private
|
|
140
|
-
*/
|
|
141
|
-
BreadcrumbComponent.prototype.changeDetectorRef;
|
|
142
|
-
}
|
|
143
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import * as tslib_1 from "tslib";
|
|
6
|
+
import { ChangeDetectorRef, Component } from '@angular/core';
|
|
7
|
+
import { of } from 'rxjs/internal/observable/of';
|
|
8
|
+
import { Subject } from 'rxjs/internal/Subject';
|
|
9
|
+
import { switchMap, takeUntil } from 'rxjs/operators';
|
|
10
|
+
import { AssetManagementService } from '../../../asset-management.service';
|
|
11
|
+
import { NodeTreeService } from '../../../services/node-tree.service';
|
|
12
|
+
import { ActionTypes, select } from '../../../store';
|
|
13
|
+
var BreadcrumbComponent = /** @class */ (function () {
|
|
14
|
+
function BreadcrumbComponent(nodeTreeService, svc, changeDetectorRef) {
|
|
15
|
+
this.nodeTreeService = nodeTreeService;
|
|
16
|
+
this.svc = svc;
|
|
17
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
18
|
+
this.unsubscribe$ = new Subject();
|
|
19
|
+
this.currentFolderHierarchy = [];
|
|
20
|
+
this.maximumShownLevel = 3;
|
|
21
|
+
this.bindSubscriber();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @return {?}
|
|
25
|
+
*/
|
|
26
|
+
BreadcrumbComponent.prototype.ngOnInit = /**
|
|
27
|
+
* @return {?}
|
|
28
|
+
*/
|
|
29
|
+
function () { };
|
|
30
|
+
/**
|
|
31
|
+
* @return {?}
|
|
32
|
+
*/
|
|
33
|
+
BreadcrumbComponent.prototype.ngOnDestroy = /**
|
|
34
|
+
* @return {?}
|
|
35
|
+
*/
|
|
36
|
+
function () {
|
|
37
|
+
this.unsubscribe$.next();
|
|
38
|
+
this.unsubscribe$.complete();
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @private
|
|
42
|
+
* @return {?}
|
|
43
|
+
*/
|
|
44
|
+
BreadcrumbComponent.prototype.bindSubscriber = /**
|
|
45
|
+
* @private
|
|
46
|
+
* @return {?}
|
|
47
|
+
*/
|
|
48
|
+
function () {
|
|
49
|
+
var _this = this;
|
|
50
|
+
select((/**
|
|
51
|
+
* @param {?} state
|
|
52
|
+
* @return {?}
|
|
53
|
+
*/
|
|
54
|
+
function (state) { return state.currentFolderHierarchy; }))
|
|
55
|
+
.pipe(takeUntil(this.unsubscribe$), switchMap((/**
|
|
56
|
+
* @param {?} res
|
|
57
|
+
* @return {?}
|
|
58
|
+
*/
|
|
59
|
+
function (res) { return of(res); })))
|
|
60
|
+
.subscribe((/**
|
|
61
|
+
* @param {?} currentFolderHierarchy
|
|
62
|
+
* @return {?}
|
|
63
|
+
*/
|
|
64
|
+
function (currentFolderHierarchy) {
|
|
65
|
+
_this.currentFolderHierarchy = currentFolderHierarchy;
|
|
66
|
+
}));
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @param {?} folder
|
|
70
|
+
* @return {?}
|
|
71
|
+
*/
|
|
72
|
+
BreadcrumbComponent.prototype.navigateToFolder = /**
|
|
73
|
+
* @param {?} folder
|
|
74
|
+
* @return {?}
|
|
75
|
+
*/
|
|
76
|
+
function (folder) {
|
|
77
|
+
this.svc.dispatch({
|
|
78
|
+
type: ActionTypes.SET_CURRENT_FOLDER_ID,
|
|
79
|
+
payload: folder.AssetId,
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* @return {?}
|
|
84
|
+
*/
|
|
85
|
+
BreadcrumbComponent.prototype.backToHome = /**
|
|
86
|
+
* @return {?}
|
|
87
|
+
*/
|
|
88
|
+
function () {
|
|
89
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
90
|
+
return tslib_1.__generator(this, function (_a) {
|
|
91
|
+
switch (_a.label) {
|
|
92
|
+
case 0: return [4 /*yield*/, this.nodeTreeService.initialData({ dispatchRootId: true })];
|
|
93
|
+
case 1:
|
|
94
|
+
_a.sent();
|
|
95
|
+
this.changeDetectorRef.detectChanges();
|
|
96
|
+
return [2 /*return*/];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
BreadcrumbComponent.decorators = [
|
|
102
|
+
{ type: Component, args: [{
|
|
103
|
+
selector: 'lib-breadcrumb',
|
|
104
|
+
template: "<nav class=\"breadcrumb-wrapper\">\n <ul class=\"lib-breadcrumb\">\n <li class=\"lib-breadcrumb__item\">\n <span class=\"lib-breadcrumb__item--name\" (click)=\"backToHome()\">Home</span>\n </li>\n <ng-container *ngIf=\"currentFolderHierarchy.length <= maximumShownLevel\">\n <li *ngFor=\"let folder of currentFolderHierarchy; let last = last\" class=\"lib-breadcrumb__item\">\n <mat-icon class=\"lib-breadcrumb__item--icon\">navigate_next</mat-icon>\n <span class=\"lib-breadcrumb__item--name\" (click)=\"navigateToFolder(folder)\" [ngClass]=\"{ 'current-item' : last }\">\n {{folder.OriginalFileName}}\n </span>\n </li>\n </ng-container>\n <ng-container *ngIf=\"currentFolderHierarchy.length> maximumShownLevel\">\n <div class=\"lib-breadcrumb__item\">\n <mat-icon class=\"lib-breadcrumb__item--icon\">navigate_next</mat-icon>\n <span class=\"lib-breadcrumb__item--name\" [matMenuTriggerFor]=\"menu\">\n <mat-icon>more_horiz</mat-icon>\n </span>\n </div>\n\n <li *ngFor=\"let folder of currentFolderHierarchy; let index= index; let last = last\" class=\"lib-breadcrumb__item\">\n <ng-container *ngIf=\"index> currentFolderHierarchy.length -\n maximumShownLevel\">\n <mat-icon class=\"lib-breadcrumb__item--icon\">navigate_next</mat-icon>\n <span class=\"lib-breadcrumb__item--name\" (click)=\"navigateToFolder(folder)\" [ngClass]=\"{ 'current-item' : last }\">\n {{folder.OriginalFileName}}\n </span>\n </ng-container>\n </li>\n </ng-container>\n\n </ul>\n</nav>\n\n<mat-menu #menu=\"matMenu\">\n <ng-container *ngFor=\"let folder of currentFolderHierarchy; let index=\n index;\">\n <button mat-menu-item *ngIf=\"index<= currentFolderHierarchy.length -\n maximumShownLevel\" (click)=\"navigateToFolder(folder)\">\n <mat-icon>navigate_next</mat-icon>\n <span>{{folder.OriginalFileName}}</span>\n </button>\n </ng-container>\n</mat-menu>",
|
|
105
|
+
styles: [":host::ng-deep .breadcrumb-wrapper{color:#979797;background-color:#fff}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb{display:flex;align-items:center;margin:0;padding:0}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item{height:20px;display:flex;align-items:center;list-style:none}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--icon{color:#c8c8c8;cursor:default}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;font-size:14px;padding:0;font-weight:400;cursor:pointer;transition:.3s;height:20px;line-height:20px}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name:hover{color:#000}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name .mat-icon{color:#979797;height:16px}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name .mat-icon:hover{color:#000}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name.current-item{cursor:default}:host::ng-deep .breadcrumb-wrapper .lib-breadcrumb__item--name.current-item:hover{color:#979797}"]
|
|
106
|
+
}] }
|
|
107
|
+
];
|
|
108
|
+
/** @nocollapse */
|
|
109
|
+
BreadcrumbComponent.ctorParameters = function () { return [
|
|
110
|
+
{ type: NodeTreeService },
|
|
111
|
+
{ type: AssetManagementService },
|
|
112
|
+
{ type: ChangeDetectorRef }
|
|
113
|
+
]; };
|
|
114
|
+
return BreadcrumbComponent;
|
|
115
|
+
}());
|
|
116
|
+
export { BreadcrumbComponent };
|
|
117
|
+
if (false) {
|
|
118
|
+
/**
|
|
119
|
+
* @type {?}
|
|
120
|
+
* @private
|
|
121
|
+
*/
|
|
122
|
+
BreadcrumbComponent.prototype.unsubscribe$;
|
|
123
|
+
/** @type {?} */
|
|
124
|
+
BreadcrumbComponent.prototype.currentFolderHierarchy;
|
|
125
|
+
/** @type {?} */
|
|
126
|
+
BreadcrumbComponent.prototype.maximumShownLevel;
|
|
127
|
+
/**
|
|
128
|
+
* @type {?}
|
|
129
|
+
* @private
|
|
130
|
+
*/
|
|
131
|
+
BreadcrumbComponent.prototype.nodeTreeService;
|
|
132
|
+
/**
|
|
133
|
+
* @type {?}
|
|
134
|
+
* @private
|
|
135
|
+
*/
|
|
136
|
+
BreadcrumbComponent.prototype.svc;
|
|
137
|
+
/**
|
|
138
|
+
* @type {?}
|
|
139
|
+
* @private
|
|
140
|
+
*/
|
|
141
|
+
BreadcrumbComponent.prototype.changeDetectorRef;
|
|
142
|
+
}
|
|
143
|
+
//# sour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