wt-front-shared 1.0.4 → 1.0.5
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, NgModule, Input, EventEmitter, Output, ViewChild, Inject, InjectionToken, PLATFORM_ID, ElementRef, Directive, Optional, ContentChild, forwardRef, Pipe } from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule, Input, EventEmitter, Output, ViewChild, Inject, InjectionToken, PLATFORM_ID, ElementRef, Directive, Optional, ContentChild, forwardRef, Pipe, Injectable } from '@angular/core';
|
|
3
3
|
import { AccessDeniedComponent as AccessDeniedComponent$1 } from '@shared/components/access-denied/access-denied.component';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
@@ -30,20 +30,24 @@ import { FormFieldErrorModule } from '@shared/components/form-field-error/form-f
|
|
|
30
30
|
import { SharedSpinnerModule as SharedSpinnerModule$1 } from '@shared/components/spinner/spinner.module';
|
|
31
31
|
import * as i2 from '@angular/material/progress-spinner';
|
|
32
32
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
33
|
-
import { Subject, merge, fromEvent } from 'rxjs';
|
|
34
|
-
import { takeUntil, startWith, map } from 'rxjs/operators';
|
|
33
|
+
import { Subject, merge, fromEvent, of } from 'rxjs';
|
|
34
|
+
import { takeUntil, startWith, map, filter as filter$1, switchMap, tap, flatMap, catchError } from 'rxjs/operators';
|
|
35
35
|
import { filter } from 'rxjs/internal/operators/filter';
|
|
36
36
|
import { appearOpacity } from '@shared/core/animations/appearOpacity';
|
|
37
37
|
import { untilComponentDestroyed, trackById } from '@shared/core/utils';
|
|
38
38
|
import * as i1$1 from '@ngrx/store';
|
|
39
|
+
import { createAction, props, createReducer, on, createFeatureSelector, createSelector, select } from '@ngrx/store';
|
|
39
40
|
import * as i5 from '@angular/material/core';
|
|
40
41
|
import * as i7 from 'ngx-mat-select-search';
|
|
41
42
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
42
43
|
import { isObject } from 'rxjs/internal-compatibility';
|
|
43
44
|
import { appearFromLeft } from '@shared/core/animations/appearFromLeft';
|
|
44
45
|
import * as i1$5 from '@shared/state/form-errors';
|
|
46
|
+
import { FormErrorsFacade, formErrorsReducer } from '@shared/state/form-errors';
|
|
45
47
|
import * as i2$3 from '@shared/state/forms';
|
|
48
|
+
import { FormsFacade, formReducer } from '@shared/state/forms';
|
|
46
49
|
import * as i1$4 from '@shared/state/publication-messages';
|
|
50
|
+
import { PublicationMessagesFacade, publicationMessagesReducer } from '@shared/state/publication-messages';
|
|
47
51
|
import * as i4$2 from '@shared/core/services/auth/authentication.service';
|
|
48
52
|
import { ERRORS } from '@shared/components/auto-form/constants/errors';
|
|
49
53
|
import * as i1$3 from '@shared/core/services';
|
|
@@ -76,24 +80,27 @@ import { SmartProgressBarModule as SmartProgressBarModule$1 } from '@shared/comp
|
|
|
76
80
|
import { StarRatingModule as StarRatingModule$1 } from '@shared/components/star-rating/star-rating.module';
|
|
77
81
|
import { FormFieldPublishErrorModule as FormFieldPublishErrorModule$1 } from '@shared/components/form-field-publish-error/form-field-publish-error.module';
|
|
78
82
|
import { FormFieldTagsComponent } from '@shared/components/auto-form/components/form-field-tags/form-field-tags.component';
|
|
79
|
-
import * as
|
|
83
|
+
import * as i3$2 from '@angular/router';
|
|
80
84
|
import { RouterModule } from '@angular/router';
|
|
81
85
|
import { SharedIconModule as SharedIconModule$1 } from '@shared/components/icon/icon.module';
|
|
82
86
|
import { ENTER, COMMA } from '@angular/cdk/keycodes';
|
|
83
87
|
import { MatLegacyChipsModule } from '@angular/material/legacy-chips';
|
|
84
88
|
import * as i6$4 from 'ng2-file-upload';
|
|
85
89
|
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
86
|
-
import * as i3$
|
|
90
|
+
import * as i3$4 from '@angular/cdk/drag-drop';
|
|
87
91
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
88
92
|
import { appearFromLeftHideToRight } from '@shared/core/animations/appearFromLeftHideToRight';
|
|
89
93
|
import { RequestStatus } from '@shared/models/models/request.model';
|
|
90
94
|
import { FileListModeSort as FileListModeSort$1, FileListModeList as FileListModeList$1 } from '@shared/components/files-upload/constants';
|
|
91
95
|
import * as i1$7 from '@shared/state/files';
|
|
96
|
+
import { FilesEffects, FilesFacade, filesReducer } from '@shared/state/files';
|
|
92
97
|
import * as i4$3 from '@shared/state/requests';
|
|
98
|
+
import { RequestsFacade, requestsReducer } from '@shared/state/requests';
|
|
93
99
|
import { hideToTopOpacity } from '@shared/core/animations/hideToTopOpacity';
|
|
94
100
|
import * as i1$6 from '@shared/state/files/files.facade';
|
|
95
|
-
import * as i2$
|
|
96
|
-
import
|
|
101
|
+
import * as i2$5 from '@shared/state/notifications';
|
|
102
|
+
import { NotificationsFacade, notificationsReducer } from '@shared/state/notifications';
|
|
103
|
+
import * as i3$3 from '@shared/core/dialogs/dialog.service';
|
|
97
104
|
import { CORE_CONFIG } from '@shared/core/tokens';
|
|
98
105
|
import * as i5$2 from '@angular/material/progress-bar';
|
|
99
106
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
@@ -102,10 +109,52 @@ import { InputTagsComponent as InputTagsComponent$1 } from '@shared/components/i
|
|
|
102
109
|
import { ChipsInputModule as ChipsInputModule$1 } from '@shared/components/chips-input/chips-input.module';
|
|
103
110
|
import { PaginationComponent as PaginationComponent$1 } from '@shared/components/pagination/pagination.component';
|
|
104
111
|
import * as i1$8 from '@angular/cdk/platform';
|
|
105
|
-
import * as i2$
|
|
112
|
+
import * as i2$6 from '@angular/material/menu';
|
|
106
113
|
import { MatMenuModule } from '@angular/material/menu';
|
|
107
114
|
import * as i1$9 from '@angular/platform-browser';
|
|
108
115
|
import * as moment from 'moment';
|
|
116
|
+
import * as i1$a from '@ngrx/effects';
|
|
117
|
+
import { createEffect, ofType } from '@ngrx/effects';
|
|
118
|
+
import { LoginSendBehavior } from '@shared/state/users/behavios/login-send-behavior';
|
|
119
|
+
import { RefreshTokenBehavior } from '@shared/state/users/behavios/refresh-token-behavior';
|
|
120
|
+
import { GlobalEvent } from '@shared/state/core.actions';
|
|
121
|
+
import { NotificationShowingType } from '@shared/state/notifications/notifications.actions';
|
|
122
|
+
import { NOTIFICATION_LONG_TIMEOUT } from '@shared/constants/constants';
|
|
123
|
+
import { EntityUpdate } from '@shared/state/update-entities/update-entities.actions';
|
|
124
|
+
import * as i3$5 from '@shared/core/services/users/users.service';
|
|
125
|
+
import * as i5$3 from '@shared/core/services/router/router.service';
|
|
126
|
+
import * as i6$5 from '@shared/core/services/actions/actions.service';
|
|
127
|
+
import { LoadUsersSuccess as LoadUsersSuccess$1, RefreshToken as RefreshToken$1, SetLoaded as SetLoaded$1, RefreshTokenSuccess as RefreshTokenSuccess$1 } from '@shared/state/users/users.actions';
|
|
128
|
+
import { ROUTER_FEATURE_KEY as ROUTER_FEATURE_KEY$1 } from '@shared/state/router/router.reducer';
|
|
129
|
+
import { NotificationsEffects } from '@shared/state/notifications/notifications.effects';
|
|
130
|
+
import { TagsEffects } from '@shared/state/tags/tags.effects';
|
|
131
|
+
import { UiUnitsEffects } from '@shared/state/uiUnits/uiUnits.effects';
|
|
132
|
+
import { MainEffects } from '@shared/state/main/main.effects';
|
|
133
|
+
import { UiUnitsFacade, uiUnitsReducer } from '@shared/state/uiUnits';
|
|
134
|
+
import { RouterFacade } from '@shared/state/router/router.facade';
|
|
135
|
+
import { TagsFacade, tagsReducer } from '@shared/state/tags';
|
|
136
|
+
import { MainFacade, mainReducer } from '@shared/state/main';
|
|
137
|
+
import { FormValidationEffects } from '@shared/state/form-validation/form-validation.effects';
|
|
138
|
+
import { FormValidationFacade, formValidationReducer } from '@shared/state/form-validation';
|
|
139
|
+
import { FormErrorsEffects } from '@shared/state/form-errors/form-errors.effects';
|
|
140
|
+
import { FormsEffects } from '@shared/state/forms/forms.effects';
|
|
141
|
+
import { FormDeleteFileEffects } from '@shared/state/form-delete-file/form-delete-file.effects';
|
|
142
|
+
import { FormDeleteFileFacade } from '@shared/state/form-delete-file';
|
|
143
|
+
import { PublicationMessagesEffects } from '@shared/state/publication-messages/publication-messages.effects';
|
|
144
|
+
import { UpdateEntitiesEffects } from '@shared/state/update-entities/update-entities.effects';
|
|
145
|
+
import { StaticDataEffects } from '@shared/state/static-data/static-data.effects';
|
|
146
|
+
import { StaticDataFacade } from '@shared/state/static-data/static-data.facade';
|
|
147
|
+
import { staticDataReducer } from '@shared/state/static-data/static-data.reducer';
|
|
148
|
+
import { ActionsEffects } from '@shared/state/actions/actions.effects';
|
|
149
|
+
import { ActionsFacade } from '@shared/state/actions/actions.facade';
|
|
150
|
+
import { actionsReducer } from '@shared/state/actions/actions.reducer';
|
|
151
|
+
import { CoreFacade } from '@shared/state/core.facade';
|
|
152
|
+
import { CacheDataEffects } from '@shared/state/cache-data/cache-data.effects';
|
|
153
|
+
import { CacheDataFacade } from '@shared/state/cache-data/cache-data.facade';
|
|
154
|
+
import { cacheDataReducer } from '@shared/state/cache-data/cache-data.reducer';
|
|
155
|
+
import { ReportsFacade } from '@shared/state/reports/reports.facade';
|
|
156
|
+
import { reportsReducer } from '@shared/state/reports/reports.reducer';
|
|
157
|
+
import { ReportsEffects } from '@shared/state/reports/reports.effects';
|
|
109
158
|
|
|
110
159
|
class AccessDeniedComponent {
|
|
111
160
|
}
|
|
@@ -1164,7 +1213,7 @@ class BreadCrumbsComponent {
|
|
|
1164
1213
|
}
|
|
1165
1214
|
}
|
|
1166
1215
|
BreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1167
|
-
BreadCrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BreadCrumbsComponent, selector: "shared-bread-crumbs", inputs: { list: "list" }, ngImport: i0, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type:
|
|
1216
|
+
BreadCrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BreadCrumbsComponent, selector: "shared-bread-crumbs", inputs: { list: "list" }, ngImport: i0, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1168
1217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, decorators: [{
|
|
1169
1218
|
type: Component,
|
|
1170
1219
|
args: [{ selector: 'shared-bread-crumbs', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"] }]
|
|
@@ -1432,12 +1481,12 @@ class FileListCardComponent {
|
|
|
1432
1481
|
}
|
|
1433
1482
|
}
|
|
1434
1483
|
}
|
|
1435
|
-
FileListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, deps: [{ token: i1$6.FilesFacade }, { token: i2$
|
|
1484
|
+
FileListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, deps: [{ token: i1$6.FilesFacade }, { token: i2$5.NotificationsFacade }, { token: i3$3.DialogService }, { token: i0.ChangeDetectorRef }, { token: i4$3.RequestsFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
1436
1485
|
FileListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FileListCardComponent, selector: "shared-file-list-card", inputs: { file: "file", section: "section", itemId: "itemId", mode: "mode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1437
1486
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, decorators: [{
|
|
1438
1487
|
type: Component,
|
|
1439
1488
|
args: [{ selector: 'shared-file-list-card', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
1440
|
-
}], ctorParameters: function () { return [{ type: i1$6.FilesFacade }, { type: i2$
|
|
1489
|
+
}], ctorParameters: function () { return [{ type: i1$6.FilesFacade }, { type: i2$5.NotificationsFacade }, { type: i3$3.DialogService }, { type: i0.ChangeDetectorRef }, { type: i4$3.RequestsFacade }]; }, propDecorators: { file: [{
|
|
1441
1490
|
type: Input
|
|
1442
1491
|
}], section: [{
|
|
1443
1492
|
type: Input
|
|
@@ -1515,7 +1564,7 @@ class FilesUploadListImagesComponent {
|
|
|
1515
1564
|
}
|
|
1516
1565
|
}
|
|
1517
1566
|
FilesUploadListImagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, deps: [{ token: i1$7.FilesFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
1518
|
-
FilesUploadListImagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: { section: "section", filesType: "filesType", itemId: "itemId", mode: "mode" }, outputs: { changeSort: "changeSort" }, ngImport: i0, template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$
|
|
1567
|
+
FilesUploadListImagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: { section: "section", filesType: "filesType", itemId: "itemId", mode: "mode" }, outputs: { changeSort: "changeSort" }, ngImport: i0, template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i3$4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: FileListCardComponent, selector: "shared-file-list-card", inputs: ["file", "section", "itemId", "mode"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [hideToTopOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1519
1568
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, decorators: [{
|
|
1520
1569
|
type: Component,
|
|
1521
1570
|
args: [{ selector: 'shared-files-upload-list-images', changeDetection: ChangeDetectionStrategy.OnPush, animations: [hideToTopOpacity], template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
@@ -1612,7 +1661,7 @@ class TableFilesUploadingComponent {
|
|
|
1612
1661
|
});
|
|
1613
1662
|
}
|
|
1614
1663
|
}
|
|
1615
|
-
TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: i1$7.FilesFacade }, { token: i2$
|
|
1664
|
+
TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: i1$7.FilesFacade }, { token: i2$5.NotificationsFacade }, { token: i0.ChangeDetectorRef }, { token: i4$2.AuthenticationService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
1616
1665
|
TableFilesUploadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: { section: "section", itemId: "itemId", haveElevation: "haveElevation" }, outputs: { loadingCompleted: "loadingCompleted" }, ngImport: i0, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i6$4.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i6$4.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }], animations: [
|
|
1617
1666
|
hideToTopOpacity,
|
|
1618
1667
|
appearFromLeftHideToRight
|
|
@@ -1624,7 +1673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1624
1673
|
appearFromLeftHideToRight
|
|
1625
1674
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"] }]
|
|
1626
1675
|
}], ctorParameters: function () {
|
|
1627
|
-
return [{ type: i1$7.FilesFacade }, { type: i2$
|
|
1676
|
+
return [{ type: i1$7.FilesFacade }, { type: i2$5.NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: i4$2.AuthenticationService }, { type: undefined, decorators: [{
|
|
1628
1677
|
type: Inject,
|
|
1629
1678
|
args: [CORE_CONFIG]
|
|
1630
1679
|
}] }];
|
|
@@ -2085,7 +2134,7 @@ class PaginationComponent {
|
|
|
2085
2134
|
}
|
|
2086
2135
|
}
|
|
2087
2136
|
PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2088
|
-
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginationComponent, selector: "shared-pagination", inputs: { count: "count", perPage: "perPage", page: "page", url: "url" }, usesOnChanges: true, ngImport: i0, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type:
|
|
2137
|
+
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginationComponent, selector: "shared-pagination", inputs: { count: "count", perPage: "perPage", page: "page", url: "url" }, usesOnChanges: true, ngImport: i0, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2089
2138
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
2090
2139
|
type: Component,
|
|
2091
2140
|
args: [{ selector: 'shared-pagination', changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"] }]
|
|
@@ -2714,7 +2763,7 @@ class TableMenuComponent {
|
|
|
2714
2763
|
}
|
|
2715
2764
|
}
|
|
2716
2765
|
TableMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2717
|
-
TableMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableMenuComponent, selector: "shared-table-menu", outputs: { edit: "edit", delete: "delete" }, ngImport: i0, template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2$
|
|
2766
|
+
TableMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableMenuComponent, selector: "shared-table-menu", outputs: { edit: "edit", delete: "delete" }, ngImport: i0, template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2$6.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$6.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$6.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
|
|
2718
2767
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, decorators: [{
|
|
2719
2768
|
type: Component,
|
|
2720
2769
|
args: [{ selector: 'shared-table-menu', template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n" }]
|
|
@@ -2773,7 +2822,7 @@ class TagCloudComponent {
|
|
|
2773
2822
|
}
|
|
2774
2823
|
}
|
|
2775
2824
|
TagCloudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2776
|
-
TagCloudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TagCloudComponent, selector: "shared-tag-cloud", ngImport: i0, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type:
|
|
2825
|
+
TagCloudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TagCloudComponent, selector: "shared-tag-cloud", ngImport: i0, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2777
2826
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, decorators: [{
|
|
2778
2827
|
type: Component,
|
|
2779
2828
|
args: [{ selector: 'shared-tag-cloud', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"] }]
|
|
@@ -2986,6 +3035,428 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2986
3035
|
}]
|
|
2987
3036
|
}] });
|
|
2988
3037
|
|
|
3038
|
+
const LoadUsers = createAction('[Users] Load Users');
|
|
3039
|
+
const LoadUsersSuccess = createAction('[Users] Load Users Success');
|
|
3040
|
+
const LoadUsersFail = createAction('[Users] Load Users Error');
|
|
3041
|
+
const LoginSend = createAction('[Users] Auth Send', props());
|
|
3042
|
+
const LoginSendSuccess = createAction('[Users] Auth Send Success', props());
|
|
3043
|
+
const LoginSendFail = createAction('[Users] Auth Send Error', props());
|
|
3044
|
+
const RefreshToken = createAction('[Users] Refresh Token', props());
|
|
3045
|
+
const RefreshTokenSuccess = createAction('[Users] Refresh Token Success', props());
|
|
3046
|
+
const RefreshTokenFail = createAction('[Users] Refresh Token Error', props());
|
|
3047
|
+
/**
|
|
3048
|
+
*
|
|
3049
|
+
*/
|
|
3050
|
+
const SetLoaded = createAction('[Users] Set Loaded');
|
|
3051
|
+
|
|
3052
|
+
class UsersEffects {
|
|
3053
|
+
constructor(actions$, store, usersService, authenticationService, routerService, actionsService, notificationsFacade) {
|
|
3054
|
+
this.actions$ = actions$;
|
|
3055
|
+
this.store = store;
|
|
3056
|
+
this.usersService = usersService;
|
|
3057
|
+
this.authenticationService = authenticationService;
|
|
3058
|
+
this.routerService = routerService;
|
|
3059
|
+
this.actionsService = actionsService;
|
|
3060
|
+
this.notificationsFacade = notificationsFacade;
|
|
3061
|
+
this.GlobalEvent$ = createEffect(() => this.actions$.pipe(ofType(GlobalEvent), filter$1(action => action.payload.action === 'generation-new-password-send-user'), switchMap((actionIn) => {
|
|
3062
|
+
const { action, formValue } = actionIn.payload;
|
|
3063
|
+
const config = {
|
|
3064
|
+
action,
|
|
3065
|
+
actionId: Math.ceil(Math.random() * 100),
|
|
3066
|
+
data: {
|
|
3067
|
+
userId: formValue['id'],
|
|
3068
|
+
salt: formValue['salt'],
|
|
3069
|
+
}
|
|
3070
|
+
};
|
|
3071
|
+
return this.actionsService.sendAction(config)
|
|
3072
|
+
.pipe(tap((r) => {
|
|
3073
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3074
|
+
const newPassword = ((_c = (_b = (_a = r === null || r === void 0 ? void 0 : r.data) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.newPassword) || '';
|
|
3075
|
+
if (newPassword) {
|
|
3076
|
+
// Update form
|
|
3077
|
+
const field = ((_d = actionIn.payload.fieldData) === null || _d === void 0 ? void 0 : _d.field) || '';
|
|
3078
|
+
const entity = ((_e = actionIn.payload) === null || _e === void 0 ? void 0 : _e.entity) || '';
|
|
3079
|
+
const entityId = ((_f = actionIn.payload) === null || _f === void 0 ? void 0 : _f.entityId) || '';
|
|
3080
|
+
if (field && entity && entityId) {
|
|
3081
|
+
this.store.dispatch(EntityUpdate({
|
|
3082
|
+
payload: {
|
|
3083
|
+
entity: `StaticData`,
|
|
3084
|
+
subeEntity: entity,
|
|
3085
|
+
entityId,
|
|
3086
|
+
updates: { [field]: newPassword }
|
|
3087
|
+
}
|
|
3088
|
+
}));
|
|
3089
|
+
}
|
|
3090
|
+
// Send a notification
|
|
3091
|
+
const payload = {
|
|
3092
|
+
id: config.actionId,
|
|
3093
|
+
type: 'success',
|
|
3094
|
+
text: 'Новый пароль успешно сохранен и выслан на почту',
|
|
3095
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3096
|
+
showingType: NotificationShowingType.TOASTER
|
|
3097
|
+
};
|
|
3098
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3099
|
+
}
|
|
3100
|
+
else {
|
|
3101
|
+
const payload = {
|
|
3102
|
+
id: config.actionId,
|
|
3103
|
+
type: 'error',
|
|
3104
|
+
text: 'Не удалось сгенерировать и отправить новый пароль, попробуйте еще раз',
|
|
3105
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3106
|
+
showingType: NotificationShowingType.TOASTER
|
|
3107
|
+
};
|
|
3108
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3109
|
+
}
|
|
3110
|
+
}));
|
|
3111
|
+
})), { dispatch: false });
|
|
3112
|
+
this.GlobalEvent2$ = createEffect(() => this.actions$.pipe(ofType(GlobalEvent), filter$1(action => action.payload.action === 'generation-new-password'), switchMap((actionIn) => {
|
|
3113
|
+
const { action, formValue } = actionIn.payload;
|
|
3114
|
+
const config = {
|
|
3115
|
+
action,
|
|
3116
|
+
actionId: Math.ceil(Math.random() * 100),
|
|
3117
|
+
data: {
|
|
3118
|
+
newPassword: formValue['password'],
|
|
3119
|
+
salt: formValue['salt'],
|
|
3120
|
+
}
|
|
3121
|
+
};
|
|
3122
|
+
return this.actionsService.sendAction(config)
|
|
3123
|
+
.pipe(tap((r) => {
|
|
3124
|
+
var _a, _b, _c, _d, _e;
|
|
3125
|
+
const newPassword = ((_c = (_b = (_a = r === null || r === void 0 ? void 0 : r.data) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.newPassword) || '';
|
|
3126
|
+
if (newPassword) {
|
|
3127
|
+
// Update form
|
|
3128
|
+
const field = actionIn.payload.fieldData.field || '';
|
|
3129
|
+
const entity = ((_d = actionIn.payload) === null || _d === void 0 ? void 0 : _d.entity) || '';
|
|
3130
|
+
const entityId = ((_e = actionIn.payload) === null || _e === void 0 ? void 0 : _e.entityId) || '';
|
|
3131
|
+
if (field && entity && entityId) {
|
|
3132
|
+
this.store.dispatch(EntityUpdate({
|
|
3133
|
+
payload: {
|
|
3134
|
+
entity: `StaticData`,
|
|
3135
|
+
subeEntity: entity,
|
|
3136
|
+
entityId,
|
|
3137
|
+
updates: { [field]: newPassword }
|
|
3138
|
+
}
|
|
3139
|
+
}));
|
|
3140
|
+
}
|
|
3141
|
+
// Send a notification
|
|
3142
|
+
const payload = {
|
|
3143
|
+
id: config.actionId,
|
|
3144
|
+
type: 'success',
|
|
3145
|
+
text: 'Новый пароль успешно сгенерирован. Сохраните форму',
|
|
3146
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3147
|
+
showingType: NotificationShowingType.TOASTER
|
|
3148
|
+
};
|
|
3149
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3150
|
+
}
|
|
3151
|
+
else {
|
|
3152
|
+
const payload = {
|
|
3153
|
+
id: config.actionId,
|
|
3154
|
+
type: 'error',
|
|
3155
|
+
text: 'Не удалось сгенерировать новый пароль, попробуйте еще раз',
|
|
3156
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3157
|
+
showingType: NotificationShowingType.TOASTER
|
|
3158
|
+
};
|
|
3159
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3160
|
+
}
|
|
3161
|
+
}));
|
|
3162
|
+
})), { dispatch: false });
|
|
3163
|
+
this.loginSend$ = createEffect(() => this.actions$.pipe(ofType(LoginSend), switchMap((action) => {
|
|
3164
|
+
const { email, password, formId } = action.payload;
|
|
3165
|
+
const config = {
|
|
3166
|
+
email,
|
|
3167
|
+
password,
|
|
3168
|
+
formId
|
|
3169
|
+
};
|
|
3170
|
+
return this.usersService.loginSend(config)
|
|
3171
|
+
.pipe(flatMap((r) => new LoginSendBehavior(action, r).resolve()));
|
|
3172
|
+
}), catchError(error => of(LoginSendFail(error)))));
|
|
3173
|
+
this.loginSendSuccess$ = createEffect(() => this.actions$.pipe(ofType(LoginSendSuccess), tap((action) => {
|
|
3174
|
+
const { user } = action.payload;
|
|
3175
|
+
this.authenticationService.saveAuthInfo(user);
|
|
3176
|
+
const redirectUrl = this.authenticationService.getRedirectToUrl();
|
|
3177
|
+
this.routerService.goTo(redirectUrl ? [redirectUrl] : '/');
|
|
3178
|
+
})), { dispatch: false });
|
|
3179
|
+
this.refreshToken$ = createEffect(() => this.actions$.pipe(ofType(RefreshToken), switchMap((action) => {
|
|
3180
|
+
const { refreshToken } = action.payload;
|
|
3181
|
+
const config = { refreshToken };
|
|
3182
|
+
return this.usersService.refreshToken(config)
|
|
3183
|
+
.pipe(flatMap((r) => new RefreshTokenBehavior(action, r).resolve()));
|
|
3184
|
+
}), catchError(error => of(RefreshTokenFail(error)))));
|
|
3185
|
+
this.refreshTokenSuccess$ = createEffect(() => this.actions$.pipe(ofType(RefreshTokenSuccess), tap(action => {
|
|
3186
|
+
const { token, refreshToken, tokenExp } = action.payload;
|
|
3187
|
+
this.authenticationService.saveRefreshToken(token, tokenExp, refreshToken);
|
|
3188
|
+
})));
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
UsersEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects, deps: [{ token: i1$a.Actions }, { token: i1$1.Store }, { token: i3$5.UsersService }, { token: i4$2.AuthenticationService }, { token: i5$3.RouterService }, { token: i6$5.ActionsService }, { token: i2$5.NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3192
|
+
UsersEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects });
|
|
3193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects, decorators: [{
|
|
3194
|
+
type: Injectable
|
|
3195
|
+
}], ctorParameters: function () { return [{ type: i1$a.Actions }, { type: i1$1.Store }, { type: i3$5.UsersService }, { type: i4$2.AuthenticationService }, { type: i5$3.RouterService }, { type: i6$5.ActionsService }, { type: i2$5.NotificationsFacade }]; } });
|
|
3196
|
+
|
|
3197
|
+
const USERS_FEATURE_KEY = 'users';
|
|
3198
|
+
const initialState$1 = {
|
|
3199
|
+
loaded: false
|
|
3200
|
+
};
|
|
3201
|
+
const _userReducer = createReducer(initialState$1, on(LoadUsersSuccess$1, (state, action) => {
|
|
3202
|
+
return Object.assign(Object.assign({}, state), { loaded: true });
|
|
3203
|
+
}), on(RefreshToken$1, SetLoaded$1, (state, action) => {
|
|
3204
|
+
return Object.assign(Object.assign({}, state), { loaded: false });
|
|
3205
|
+
}), on(RefreshTokenSuccess$1, (state, action) => {
|
|
3206
|
+
console.info('[ refreshTokenSuccess ]');
|
|
3207
|
+
const { token, refreshToken, tokenExp } = action.payload;
|
|
3208
|
+
return Object.assign(Object.assign({}, state), {
|
|
3209
|
+
// data: { ...state.data, token, refreshToken, tokenExp },
|
|
3210
|
+
token,
|
|
3211
|
+
refreshToken,
|
|
3212
|
+
tokenExp, loaded: true });
|
|
3213
|
+
}));
|
|
3214
|
+
function userReducer(state, action) {
|
|
3215
|
+
return _userReducer(state, action);
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
const getUsersState = createFeatureSelector(USERS_FEATURE_KEY);
|
|
3219
|
+
const getLoaded = createSelector(getUsersState, (state) => state.loaded);
|
|
3220
|
+
const getError = createSelector(getUsersState, (state) => {
|
|
3221
|
+
return state;
|
|
3222
|
+
});
|
|
3223
|
+
const getUser = createSelector(getUsersState, (state) => {
|
|
3224
|
+
return state.token ? state : null;
|
|
3225
|
+
});
|
|
3226
|
+
const getUserAuthData = createSelector(getUsersState, (userSate) => {
|
|
3227
|
+
return userSate && { token: userSate.token, uid: userSate.id };
|
|
3228
|
+
});
|
|
3229
|
+
const usersQuery = {
|
|
3230
|
+
getLoaded,
|
|
3231
|
+
getError,
|
|
3232
|
+
getUser,
|
|
3233
|
+
};
|
|
3234
|
+
|
|
3235
|
+
class UsersFacade {
|
|
3236
|
+
constructor(store) {
|
|
3237
|
+
this.store = store;
|
|
3238
|
+
this.loaded$ = this.store.pipe(select(usersQuery.getLoaded));
|
|
3239
|
+
this.getUser$ = this.store.pipe(select(usersQuery.getUser));
|
|
3240
|
+
}
|
|
3241
|
+
loadAll() {
|
|
3242
|
+
this.store.dispatch(LoadUsers());
|
|
3243
|
+
}
|
|
3244
|
+
sendLogin({ email, password, remember, formId }) {
|
|
3245
|
+
const params = {
|
|
3246
|
+
email, password, remember, formId
|
|
3247
|
+
};
|
|
3248
|
+
this.store.dispatch(LoginSend({ payload: params }));
|
|
3249
|
+
}
|
|
3250
|
+
logOut() {
|
|
3251
|
+
console.info('logOut');
|
|
3252
|
+
}
|
|
3253
|
+
refreshToken(refreshToken) {
|
|
3254
|
+
console.info('refreshToken');
|
|
3255
|
+
this.store.dispatch(RefreshToken({ payload: { refreshToken } }));
|
|
3256
|
+
}
|
|
3257
|
+
setLoaded() {
|
|
3258
|
+
this.store.dispatch(SetLoaded());
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
UsersFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade, deps: [{ token: i1$1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3262
|
+
UsersFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade });
|
|
3263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade, decorators: [{
|
|
3264
|
+
type: Injectable
|
|
3265
|
+
}], ctorParameters: function () { return [{ type: i1$1.Store }]; } });
|
|
3266
|
+
|
|
3267
|
+
class CustomSerializer {
|
|
3268
|
+
serialize(routerState) {
|
|
3269
|
+
let route = routerState.root;
|
|
3270
|
+
let path;
|
|
3271
|
+
while (route.firstChild) {
|
|
3272
|
+
route = route.firstChild;
|
|
3273
|
+
path = route.routeConfig.path;
|
|
3274
|
+
}
|
|
3275
|
+
const { url, root: { queryParams }, } = routerState;
|
|
3276
|
+
const { params } = route;
|
|
3277
|
+
return { url, params, queryParams, path };
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
const getRouterState = createFeatureSelector(ROUTER_FEATURE_KEY$1);
|
|
3282
|
+
const getRouterUrl = createSelector(getRouterState, (state) => {
|
|
3283
|
+
return state && state.router.url;
|
|
3284
|
+
});
|
|
3285
|
+
const getRouterRoot = createSelector(getRouterState, (state) => {
|
|
3286
|
+
return state && state.router.root;
|
|
3287
|
+
});
|
|
3288
|
+
const getRouterQueryParams = createSelector(getRouterState, (state) => {
|
|
3289
|
+
return state && state.router.root.queryParams;
|
|
3290
|
+
});
|
|
3291
|
+
const getRouterLastRoute = createSelector(getRouterState, (state) => {
|
|
3292
|
+
if (state) {
|
|
3293
|
+
let route = state.router.root;
|
|
3294
|
+
while (route.firstChild) {
|
|
3295
|
+
route = route.firstChild;
|
|
3296
|
+
}
|
|
3297
|
+
return route.url.length ? route.url[0].path : '';
|
|
3298
|
+
}
|
|
3299
|
+
return '';
|
|
3300
|
+
});
|
|
3301
|
+
const getRouterLastRouteParams = createSelector(getRouterState, (state) => {
|
|
3302
|
+
if (state) {
|
|
3303
|
+
let route = state.router.root;
|
|
3304
|
+
while (route.firstChild) {
|
|
3305
|
+
route = route.firstChild;
|
|
3306
|
+
}
|
|
3307
|
+
return route.params;
|
|
3308
|
+
}
|
|
3309
|
+
return '';
|
|
3310
|
+
});
|
|
3311
|
+
|
|
3312
|
+
const Go = createAction('[Router] Go', props());
|
|
3313
|
+
const GoFail = createAction('[Router] Go Error');
|
|
3314
|
+
const SetRouterQueryParams = createAction('[Router] Set Router Query Params', props());
|
|
3315
|
+
const Back = createAction('[Router] Back');
|
|
3316
|
+
const Forward = createAction('[Router] Forward');
|
|
3317
|
+
|
|
3318
|
+
class RouterEffects {
|
|
3319
|
+
/* @Effect({ dispatch: false })
|
|
3320
|
+
setRouterQueryParams$ = this.effect(RouterActionTypes.SetRouterQueryParams, {
|
|
3321
|
+
operatorFunctions: (action: SetRouterQueryParams) => [
|
|
3322
|
+
switchMap(() => this.applySelector(getRouterUrl)),
|
|
3323
|
+
tap((url: string) => {
|
|
3324
|
+
const payload: SetRouterQueryParamsPayload = action.payload;
|
|
3325
|
+
const extras: NavigationExtras = payload.extras;
|
|
3326
|
+
const path = [this.location.path().split('?')[0]];
|
|
3327
|
+
this.router.navigate(path, extras);
|
|
3328
|
+
})
|
|
3329
|
+
],
|
|
3330
|
+
onError: (action: Go, error) => new GoFail({}, error, action.correlationParams)
|
|
3331
|
+
});*/
|
|
3332
|
+
constructor(actions$, store, router, location) {
|
|
3333
|
+
this.actions$ = actions$;
|
|
3334
|
+
this.store = store;
|
|
3335
|
+
this.router = router;
|
|
3336
|
+
this.location = location;
|
|
3337
|
+
this.go$ = createEffect(() => this.actions$.pipe(ofType(Go), tap((action) => {
|
|
3338
|
+
const payload = action.payload;
|
|
3339
|
+
const path = this.preparePath(payload.path);
|
|
3340
|
+
let extras;
|
|
3341
|
+
if (payload.extras) {
|
|
3342
|
+
extras = payload.extras;
|
|
3343
|
+
}
|
|
3344
|
+
this.router.navigate(path, extras)
|
|
3345
|
+
.then(data => {
|
|
3346
|
+
console.info('[ router ][ navigate ]', path);
|
|
3347
|
+
})
|
|
3348
|
+
.catch(error => {
|
|
3349
|
+
console.error('[ router ][ error ]', error);
|
|
3350
|
+
});
|
|
3351
|
+
})), { dispatch: false });
|
|
3352
|
+
}
|
|
3353
|
+
preparePath(params) {
|
|
3354
|
+
const path = [];
|
|
3355
|
+
let i = 0;
|
|
3356
|
+
while (params.length > i) {
|
|
3357
|
+
const p = params[i];
|
|
3358
|
+
if (typeof p === 'object') {
|
|
3359
|
+
for (const key in p) {
|
|
3360
|
+
if (p.hasOwnProperty(key)) {
|
|
3361
|
+
path.push(p[key]);
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
else {
|
|
3366
|
+
path.push(p);
|
|
3367
|
+
}
|
|
3368
|
+
i++;
|
|
3369
|
+
}
|
|
3370
|
+
return path;
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
RouterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, deps: [{ token: i1$a.Actions }, { token: i1$1.Store }, { token: i3$2.Router }, { token: i1.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3374
|
+
RouterEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects });
|
|
3375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, decorators: [{
|
|
3376
|
+
type: Injectable
|
|
3377
|
+
}], ctorParameters: function () { return [{ type: i1$a.Actions }, { type: i1$1.Store }, { type: i3$2.Router }, { type: i1.Location }]; } });
|
|
3378
|
+
|
|
3379
|
+
const ROUTER_FEATURE_KEY = 'notifications';
|
|
3380
|
+
// @ts-ignore
|
|
3381
|
+
const initialState = { root: null, url: '' };
|
|
3382
|
+
/*
|
|
3383
|
+
const _outerReducer = createReducer(
|
|
3384
|
+
initialState,
|
|
3385
|
+
on(ROUTER_ERROR,
|
|
3386
|
+
ROUTER_CANCEL,
|
|
3387
|
+
ROUTER_NAVIGATION,
|
|
3388
|
+
(state, action) => {
|
|
3389
|
+
return {
|
|
3390
|
+
...state,
|
|
3391
|
+
...action.type
|
|
3392
|
+
};
|
|
3393
|
+
}
|
|
3394
|
+
)
|
|
3395
|
+
);
|
|
3396
|
+
|
|
3397
|
+
export function routerReducer(state, action) {
|
|
3398
|
+
return _outerReducer(state, action);
|
|
3399
|
+
}
|
|
3400
|
+
*/
|
|
3401
|
+
|
|
3402
|
+
const sharedEffects = [
|
|
3403
|
+
UsersEffects,
|
|
3404
|
+
RouterEffects,
|
|
3405
|
+
NotificationsEffects,
|
|
3406
|
+
FilesEffects,
|
|
3407
|
+
UiUnitsEffects,
|
|
3408
|
+
TagsEffects,
|
|
3409
|
+
MainEffects,
|
|
3410
|
+
StaticDataEffects,
|
|
3411
|
+
FormsEffects,
|
|
3412
|
+
FormValidationEffects,
|
|
3413
|
+
FormErrorsEffects,
|
|
3414
|
+
FormDeleteFileEffects,
|
|
3415
|
+
PublicationMessagesEffects,
|
|
3416
|
+
UpdateEntitiesEffects,
|
|
3417
|
+
ActionsEffects,
|
|
3418
|
+
CacheDataEffects,
|
|
3419
|
+
ReportsEffects
|
|
3420
|
+
];
|
|
3421
|
+
const sharedFacades = [
|
|
3422
|
+
CoreFacade,
|
|
3423
|
+
UsersFacade,
|
|
3424
|
+
UiUnitsFacade,
|
|
3425
|
+
NotificationsFacade,
|
|
3426
|
+
RouterFacade,
|
|
3427
|
+
FilesFacade,
|
|
3428
|
+
FormsFacade,
|
|
3429
|
+
TagsFacade,
|
|
3430
|
+
MainFacade,
|
|
3431
|
+
StaticDataFacade,
|
|
3432
|
+
FormsFacade,
|
|
3433
|
+
FormValidationFacade,
|
|
3434
|
+
FormErrorsFacade,
|
|
3435
|
+
FormDeleteFileFacade,
|
|
3436
|
+
RequestsFacade,
|
|
3437
|
+
PublicationMessagesFacade,
|
|
3438
|
+
ActionsFacade,
|
|
3439
|
+
CacheDataFacade,
|
|
3440
|
+
ReportsFacade
|
|
3441
|
+
];
|
|
3442
|
+
const SharedReducer = {
|
|
3443
|
+
requests: requestsReducer,
|
|
3444
|
+
files: filesReducer,
|
|
3445
|
+
formErrors: formErrorsReducer,
|
|
3446
|
+
formValidation: formValidationReducer,
|
|
3447
|
+
forms: formReducer,
|
|
3448
|
+
tags: tagsReducer,
|
|
3449
|
+
main: mainReducer,
|
|
3450
|
+
notifications: notificationsReducer,
|
|
3451
|
+
staticData: staticDataReducer,
|
|
3452
|
+
uiUnits: uiUnitsReducer,
|
|
3453
|
+
users: userReducer,
|
|
3454
|
+
publicationMessages: publicationMessagesReducer,
|
|
3455
|
+
actions: actionsReducer,
|
|
3456
|
+
cacheData: cacheDataReducer,
|
|
3457
|
+
reports: reportsReducer,
|
|
3458
|
+
};
|
|
3459
|
+
|
|
2989
3460
|
/*
|
|
2990
3461
|
* Public API Surface of wt-common
|
|
2991
3462
|
*/
|
|
@@ -2994,5 +3465,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2994
3465
|
* Generated bundle index. Do not edit.
|
|
2995
3466
|
*/
|
|
2996
3467
|
|
|
2997
|
-
export { AccessDeniedComponent, AccessDeniedModule, AutoFormMainComponent, AutoFormModule, AutoFormShowComponent, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, ChipsInputComponent, ChipsInputModule, CountFormatPipe, DateFormatPipe, FileListModeList, FileListModeSort, FilesUploadComponent, FilesUploadModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, HeaderComponent, HeaderModule, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, PaginationComponent, PaginationModule, PanelComponent, PanelModule, PhonePipe, PipesModule, STICKY_SIDEBAR_OPTIONS, SafePipe, SharedIconModule, SharedSpinnerModule, SmartProgressBarComponent, SmartProgressBarModule, SpinnerComponent, StarRatingComponent, StarRatingModule, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TextWithLinkMoreComponent, TextWithLinkMoreModule, defaultStickySidebarOptions };
|
|
3468
|
+
export { AccessDeniedComponent, AccessDeniedModule, AutoFormMainComponent, AutoFormModule, AutoFormShowComponent, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, ChipsInputComponent, ChipsInputModule, CountFormatPipe, DateFormatPipe, FileListModeList, FileListModeSort, FilesUploadComponent, FilesUploadModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, HeaderComponent, HeaderModule, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, PaginationComponent, PaginationModule, PanelComponent, PanelModule, PhonePipe, PipesModule, STICKY_SIDEBAR_OPTIONS, SafePipe, SharedIconModule, SharedReducer, SharedSpinnerModule, SmartProgressBarComponent, SmartProgressBarModule, SpinnerComponent, StarRatingComponent, StarRatingModule, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TextWithLinkMoreComponent, TextWithLinkMoreModule, defaultStickySidebarOptions, sharedEffects, sharedFacades };
|
|
2998
3469
|
//# sourceMappingURL=wt-front-shared.mjs.map
|