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,10 +30,11 @@ 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 * as i1$1 from '@ngrx/store';
|
|
37
|
+
import { createAction, props, createReducer, on, createFeatureSelector, createSelector, select } from '@ngrx/store';
|
|
37
38
|
import { appearOpacity } from '@shared/core/animations/appearOpacity';
|
|
38
39
|
import { untilComponentDestroyed, trackById } from '@shared/core/utils';
|
|
39
40
|
import * as i5 from '@angular/material/core';
|
|
@@ -41,9 +42,12 @@ 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 * as i1$5 from '@shared/state/form-errors';
|
|
45
|
+
import { FormErrorsFacade, formErrorsReducer } from '@shared/state/form-errors';
|
|
44
46
|
import * as i2$3 from '@shared/state/forms';
|
|
47
|
+
import { FormsFacade, formReducer } from '@shared/state/forms';
|
|
45
48
|
import { appearFromLeft } from '@shared/core/animations/appearFromLeft';
|
|
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 * as i4$3 from '@shared/state/requests';
|
|
94
|
+
import { RequestsFacade, requestsReducer } from '@shared/state/requests';
|
|
90
95
|
import { RequestStatus } from '@shared/models/models/request.model';
|
|
91
96
|
import * as i1$7 from '@shared/state/files';
|
|
97
|
+
import { FilesEffects, FilesFacade, filesReducer } from '@shared/state/files';
|
|
92
98
|
import { FileListModeSort as FileListModeSort$1, FileListModeList as FileListModeList$1 } from '@shared/components/files-upload/constants';
|
|
93
99
|
import { hideToTopOpacity } from '@shared/core/animations/hideToTopOpacity';
|
|
94
100
|
import * as i1$6 from '@shared/state/files/files.facade';
|
|
95
|
-
import * as i3$
|
|
96
|
-
import * as i2$
|
|
101
|
+
import * as i3$3 from '@shared/core/dialogs/dialog.service';
|
|
102
|
+
import * as i2$5 from '@shared/state/notifications';
|
|
103
|
+
import { NotificationsFacade, notificationsReducer } from '@shared/state/notifications';
|
|
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';
|
|
@@ -103,10 +110,52 @@ import { InputTagsComponent as InputTagsComponent$1 } from '@shared/components/i
|
|
|
103
110
|
import { ChipsInputModule as ChipsInputModule$1 } from '@shared/components/chips-input/chips-input.module';
|
|
104
111
|
import { PaginationComponent as PaginationComponent$1 } from '@shared/components/pagination/pagination.component';
|
|
105
112
|
import * as i1$8 from '@angular/cdk/platform';
|
|
106
|
-
import * as i2$
|
|
113
|
+
import * as i2$6 from '@angular/material/menu';
|
|
107
114
|
import { MatMenuModule } from '@angular/material/menu';
|
|
108
115
|
import * as i1$9 from '@angular/platform-browser';
|
|
109
116
|
import * as moment from 'moment';
|
|
117
|
+
import * as i1$a from '@ngrx/effects';
|
|
118
|
+
import { createEffect, ofType } from '@ngrx/effects';
|
|
119
|
+
import { LoginSendBehavior } from '@shared/state/users/behavios/login-send-behavior';
|
|
120
|
+
import { RefreshTokenBehavior } from '@shared/state/users/behavios/refresh-token-behavior';
|
|
121
|
+
import * as i3$5 from '@shared/core/services/users/users.service';
|
|
122
|
+
import * as i5$3 from '@shared/core/services/router/router.service';
|
|
123
|
+
import { GlobalEvent } from '@shared/state/core.actions';
|
|
124
|
+
import * as i6$5 from '@shared/core/services/actions/actions.service';
|
|
125
|
+
import { NotificationShowingType } from '@shared/state/notifications/notifications.actions';
|
|
126
|
+
import { NOTIFICATION_LONG_TIMEOUT } from '@shared/constants/constants';
|
|
127
|
+
import { EntityUpdate } from '@shared/state/update-entities/update-entities.actions';
|
|
128
|
+
import { LoadUsersSuccess as LoadUsersSuccess$1, RefreshToken as RefreshToken$1, SetLoaded as SetLoaded$1, RefreshTokenSuccess as RefreshTokenSuccess$1 } from '@shared/state/users/users.actions';
|
|
129
|
+
import { ROUTER_FEATURE_KEY as ROUTER_FEATURE_KEY$1 } from '@shared/state/router/router.reducer';
|
|
130
|
+
import { NotificationsEffects } from '@shared/state/notifications/notifications.effects';
|
|
131
|
+
import { TagsEffects } from '@shared/state/tags/tags.effects';
|
|
132
|
+
import { UiUnitsEffects } from '@shared/state/uiUnits/uiUnits.effects';
|
|
133
|
+
import { MainEffects } from '@shared/state/main/main.effects';
|
|
134
|
+
import { UiUnitsFacade, uiUnitsReducer } from '@shared/state/uiUnits';
|
|
135
|
+
import { RouterFacade } from '@shared/state/router/router.facade';
|
|
136
|
+
import { TagsFacade, tagsReducer } from '@shared/state/tags';
|
|
137
|
+
import { MainFacade, mainReducer } from '@shared/state/main';
|
|
138
|
+
import { FormValidationEffects } from '@shared/state/form-validation/form-validation.effects';
|
|
139
|
+
import { FormValidationFacade, formValidationReducer } from '@shared/state/form-validation';
|
|
140
|
+
import { FormErrorsEffects } from '@shared/state/form-errors/form-errors.effects';
|
|
141
|
+
import { FormsEffects } from '@shared/state/forms/forms.effects';
|
|
142
|
+
import { FormDeleteFileEffects } from '@shared/state/form-delete-file/form-delete-file.effects';
|
|
143
|
+
import { FormDeleteFileFacade } from '@shared/state/form-delete-file';
|
|
144
|
+
import { PublicationMessagesEffects } from '@shared/state/publication-messages/publication-messages.effects';
|
|
145
|
+
import { UpdateEntitiesEffects } from '@shared/state/update-entities/update-entities.effects';
|
|
146
|
+
import { StaticDataEffects } from '@shared/state/static-data/static-data.effects';
|
|
147
|
+
import { StaticDataFacade } from '@shared/state/static-data/static-data.facade';
|
|
148
|
+
import { staticDataReducer } from '@shared/state/static-data/static-data.reducer';
|
|
149
|
+
import { ActionsEffects } from '@shared/state/actions/actions.effects';
|
|
150
|
+
import { ActionsFacade } from '@shared/state/actions/actions.facade';
|
|
151
|
+
import { actionsReducer } from '@shared/state/actions/actions.reducer';
|
|
152
|
+
import { CoreFacade } from '@shared/state/core.facade';
|
|
153
|
+
import { CacheDataEffects } from '@shared/state/cache-data/cache-data.effects';
|
|
154
|
+
import { CacheDataFacade } from '@shared/state/cache-data/cache-data.facade';
|
|
155
|
+
import { cacheDataReducer } from '@shared/state/cache-data/cache-data.reducer';
|
|
156
|
+
import { ReportsFacade } from '@shared/state/reports/reports.facade';
|
|
157
|
+
import { reportsReducer } from '@shared/state/reports/reports.reducer';
|
|
158
|
+
import { ReportsEffects } from '@shared/state/reports/reports.effects';
|
|
110
159
|
|
|
111
160
|
class AccessDeniedComponent {
|
|
112
161
|
}
|
|
@@ -1159,7 +1208,7 @@ class BreadCrumbsComponent {
|
|
|
1159
1208
|
}
|
|
1160
1209
|
}
|
|
1161
1210
|
BreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1162
|
-
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:
|
|
1211
|
+
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 });
|
|
1163
1212
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, decorators: [{
|
|
1164
1213
|
type: Component,
|
|
1165
1214
|
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"] }]
|
|
@@ -1426,12 +1475,12 @@ class FileListCardComponent {
|
|
|
1426
1475
|
}
|
|
1427
1476
|
}
|
|
1428
1477
|
}
|
|
1429
|
-
FileListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, deps: [{ token: i1$6.FilesFacade }, { token: i2$
|
|
1478
|
+
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 });
|
|
1430
1479
|
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 });
|
|
1431
1480
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, decorators: [{
|
|
1432
1481
|
type: Component,
|
|
1433
1482
|
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"] }]
|
|
1434
|
-
}], ctorParameters: function () { return [{ type: i1$6.FilesFacade }, { type: i2$
|
|
1483
|
+
}], ctorParameters: function () { return [{ type: i1$6.FilesFacade }, { type: i2$5.NotificationsFacade }, { type: i3$3.DialogService }, { type: i0.ChangeDetectorRef }, { type: i4$3.RequestsFacade }]; }, propDecorators: { file: [{
|
|
1435
1484
|
type: Input
|
|
1436
1485
|
}], section: [{
|
|
1437
1486
|
type: Input
|
|
@@ -1509,7 +1558,7 @@ class FilesUploadListImagesComponent {
|
|
|
1509
1558
|
}
|
|
1510
1559
|
}
|
|
1511
1560
|
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 });
|
|
1512
|
-
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$
|
|
1561
|
+
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 });
|
|
1513
1562
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, decorators: [{
|
|
1514
1563
|
type: Component,
|
|
1515
1564
|
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"] }]
|
|
@@ -1606,7 +1655,7 @@ class TableFilesUploadingComponent {
|
|
|
1606
1655
|
});
|
|
1607
1656
|
}
|
|
1608
1657
|
}
|
|
1609
|
-
TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: i1$7.FilesFacade }, { token: i2$
|
|
1658
|
+
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 });
|
|
1610
1659
|
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: [
|
|
1611
1660
|
hideToTopOpacity,
|
|
1612
1661
|
appearFromLeftHideToRight
|
|
@@ -1617,7 +1666,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1617
1666
|
hideToTopOpacity,
|
|
1618
1667
|
appearFromLeftHideToRight
|
|
1619
1668
|
], 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"] }]
|
|
1620
|
-
}], ctorParameters: function () { return [{ type: i1$7.FilesFacade }, { type: i2$
|
|
1669
|
+
}], ctorParameters: function () { return [{ type: i1$7.FilesFacade }, { type: i2$5.NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: i4$2.AuthenticationService }, { type: undefined, decorators: [{
|
|
1621
1670
|
type: Inject,
|
|
1622
1671
|
args: [CORE_CONFIG]
|
|
1623
1672
|
}] }]; }, propDecorators: { section: [{
|
|
@@ -2075,7 +2124,7 @@ class PaginationComponent {
|
|
|
2075
2124
|
}
|
|
2076
2125
|
}
|
|
2077
2126
|
PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2078
|
-
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:
|
|
2127
|
+
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 });
|
|
2079
2128
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
2080
2129
|
type: Component,
|
|
2081
2130
|
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"] }]
|
|
@@ -2710,7 +2759,7 @@ class TableMenuComponent {
|
|
|
2710
2759
|
}
|
|
2711
2760
|
}
|
|
2712
2761
|
TableMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2713
|
-
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$
|
|
2762
|
+
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"] }] });
|
|
2714
2763
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, decorators: [{
|
|
2715
2764
|
type: Component,
|
|
2716
2765
|
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" }]
|
|
@@ -2769,7 +2818,7 @@ class TagCloudComponent {
|
|
|
2769
2818
|
}
|
|
2770
2819
|
}
|
|
2771
2820
|
TagCloudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2772
|
-
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:
|
|
2821
|
+
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 });
|
|
2773
2822
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, decorators: [{
|
|
2774
2823
|
type: Component,
|
|
2775
2824
|
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"] }]
|
|
@@ -2982,6 +3031,435 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2982
3031
|
}]
|
|
2983
3032
|
}] });
|
|
2984
3033
|
|
|
3034
|
+
const LoadUsers = createAction('[Users] Load Users');
|
|
3035
|
+
const LoadUsersSuccess = createAction('[Users] Load Users Success');
|
|
3036
|
+
const LoadUsersFail = createAction('[Users] Load Users Error');
|
|
3037
|
+
const LoginSend = createAction('[Users] Auth Send', props());
|
|
3038
|
+
const LoginSendSuccess = createAction('[Users] Auth Send Success', props());
|
|
3039
|
+
const LoginSendFail = createAction('[Users] Auth Send Error', props());
|
|
3040
|
+
const RefreshToken = createAction('[Users] Refresh Token', props());
|
|
3041
|
+
const RefreshTokenSuccess = createAction('[Users] Refresh Token Success', props());
|
|
3042
|
+
const RefreshTokenFail = createAction('[Users] Refresh Token Error', props());
|
|
3043
|
+
/**
|
|
3044
|
+
*
|
|
3045
|
+
*/
|
|
3046
|
+
const SetLoaded = createAction('[Users] Set Loaded');
|
|
3047
|
+
|
|
3048
|
+
class UsersEffects {
|
|
3049
|
+
constructor(actions$, store, usersService, authenticationService, routerService, actionsService, notificationsFacade) {
|
|
3050
|
+
this.actions$ = actions$;
|
|
3051
|
+
this.store = store;
|
|
3052
|
+
this.usersService = usersService;
|
|
3053
|
+
this.authenticationService = authenticationService;
|
|
3054
|
+
this.routerService = routerService;
|
|
3055
|
+
this.actionsService = actionsService;
|
|
3056
|
+
this.notificationsFacade = notificationsFacade;
|
|
3057
|
+
this.GlobalEvent$ = createEffect(() => this.actions$.pipe(ofType(GlobalEvent), filter$1(action => action.payload.action === 'generation-new-password-send-user'), switchMap((actionIn) => {
|
|
3058
|
+
const { action, formValue } = actionIn.payload;
|
|
3059
|
+
const config = {
|
|
3060
|
+
action,
|
|
3061
|
+
actionId: Math.ceil(Math.random() * 100),
|
|
3062
|
+
data: {
|
|
3063
|
+
userId: formValue['id'],
|
|
3064
|
+
salt: formValue['salt'],
|
|
3065
|
+
}
|
|
3066
|
+
};
|
|
3067
|
+
return this.actionsService.sendAction(config)
|
|
3068
|
+
.pipe(tap((r) => {
|
|
3069
|
+
const newPassword = r?.data?.body?.data?.newPassword || '';
|
|
3070
|
+
if (newPassword) {
|
|
3071
|
+
// Update form
|
|
3072
|
+
const field = actionIn.payload.fieldData?.field || '';
|
|
3073
|
+
const entity = actionIn.payload?.entity || '';
|
|
3074
|
+
const entityId = actionIn.payload?.entityId || '';
|
|
3075
|
+
if (field && entity && entityId) {
|
|
3076
|
+
this.store.dispatch(EntityUpdate({
|
|
3077
|
+
payload: {
|
|
3078
|
+
entity: `StaticData`,
|
|
3079
|
+
subeEntity: entity,
|
|
3080
|
+
entityId,
|
|
3081
|
+
updates: { [field]: newPassword }
|
|
3082
|
+
}
|
|
3083
|
+
}));
|
|
3084
|
+
}
|
|
3085
|
+
// Send a notification
|
|
3086
|
+
const payload = {
|
|
3087
|
+
id: config.actionId,
|
|
3088
|
+
type: 'success',
|
|
3089
|
+
text: 'Новый пароль успешно сохранен и выслан на почту',
|
|
3090
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3091
|
+
showingType: NotificationShowingType.TOASTER
|
|
3092
|
+
};
|
|
3093
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3094
|
+
}
|
|
3095
|
+
else {
|
|
3096
|
+
const payload = {
|
|
3097
|
+
id: config.actionId,
|
|
3098
|
+
type: 'error',
|
|
3099
|
+
text: 'Не удалось сгенерировать и отправить новый пароль, попробуйте еще раз',
|
|
3100
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3101
|
+
showingType: NotificationShowingType.TOASTER
|
|
3102
|
+
};
|
|
3103
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3104
|
+
}
|
|
3105
|
+
}));
|
|
3106
|
+
})), { dispatch: false });
|
|
3107
|
+
this.GlobalEvent2$ = createEffect(() => this.actions$.pipe(ofType(GlobalEvent), filter$1(action => action.payload.action === 'generation-new-password'), switchMap((actionIn) => {
|
|
3108
|
+
const { action, formValue } = actionIn.payload;
|
|
3109
|
+
const config = {
|
|
3110
|
+
action,
|
|
3111
|
+
actionId: Math.ceil(Math.random() * 100),
|
|
3112
|
+
data: {
|
|
3113
|
+
newPassword: formValue['password'],
|
|
3114
|
+
salt: formValue['salt'],
|
|
3115
|
+
}
|
|
3116
|
+
};
|
|
3117
|
+
return this.actionsService.sendAction(config)
|
|
3118
|
+
.pipe(tap((r) => {
|
|
3119
|
+
const newPassword = r?.data?.body?.data?.newPassword || '';
|
|
3120
|
+
if (newPassword) {
|
|
3121
|
+
// Update form
|
|
3122
|
+
const field = actionIn.payload.fieldData.field || '';
|
|
3123
|
+
const entity = actionIn.payload?.entity || '';
|
|
3124
|
+
const entityId = actionIn.payload?.entityId || '';
|
|
3125
|
+
if (field && entity && entityId) {
|
|
3126
|
+
this.store.dispatch(EntityUpdate({
|
|
3127
|
+
payload: {
|
|
3128
|
+
entity: `StaticData`,
|
|
3129
|
+
subeEntity: entity,
|
|
3130
|
+
entityId,
|
|
3131
|
+
updates: { [field]: newPassword }
|
|
3132
|
+
}
|
|
3133
|
+
}));
|
|
3134
|
+
}
|
|
3135
|
+
// Send a notification
|
|
3136
|
+
const payload = {
|
|
3137
|
+
id: config.actionId,
|
|
3138
|
+
type: 'success',
|
|
3139
|
+
text: 'Новый пароль успешно сгенерирован. Сохраните форму',
|
|
3140
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3141
|
+
showingType: NotificationShowingType.TOASTER
|
|
3142
|
+
};
|
|
3143
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3144
|
+
}
|
|
3145
|
+
else {
|
|
3146
|
+
const payload = {
|
|
3147
|
+
id: config.actionId,
|
|
3148
|
+
type: 'error',
|
|
3149
|
+
text: 'Не удалось сгенерировать новый пароль, попробуйте еще раз',
|
|
3150
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3151
|
+
showingType: NotificationShowingType.TOASTER
|
|
3152
|
+
};
|
|
3153
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3154
|
+
}
|
|
3155
|
+
}));
|
|
3156
|
+
})), { dispatch: false });
|
|
3157
|
+
this.loginSend$ = createEffect(() => this.actions$.pipe(ofType(LoginSend), switchMap((action) => {
|
|
3158
|
+
const { email, password, formId } = action.payload;
|
|
3159
|
+
const config = {
|
|
3160
|
+
email,
|
|
3161
|
+
password,
|
|
3162
|
+
formId
|
|
3163
|
+
};
|
|
3164
|
+
return this.usersService.loginSend(config)
|
|
3165
|
+
.pipe(flatMap((r) => new LoginSendBehavior(action, r).resolve()));
|
|
3166
|
+
}), catchError(error => of(LoginSendFail(error)))));
|
|
3167
|
+
this.loginSendSuccess$ = createEffect(() => this.actions$.pipe(ofType(LoginSendSuccess), tap((action) => {
|
|
3168
|
+
const { user } = action.payload;
|
|
3169
|
+
this.authenticationService.saveAuthInfo(user);
|
|
3170
|
+
const redirectUrl = this.authenticationService.getRedirectToUrl();
|
|
3171
|
+
this.routerService.goTo(redirectUrl ? [redirectUrl] : '/');
|
|
3172
|
+
})), { dispatch: false });
|
|
3173
|
+
this.refreshToken$ = createEffect(() => this.actions$.pipe(ofType(RefreshToken), switchMap((action) => {
|
|
3174
|
+
const { refreshToken } = action.payload;
|
|
3175
|
+
const config = { refreshToken };
|
|
3176
|
+
return this.usersService.refreshToken(config)
|
|
3177
|
+
.pipe(flatMap((r) => new RefreshTokenBehavior(action, r).resolve()));
|
|
3178
|
+
}), catchError(error => of(RefreshTokenFail(error)))));
|
|
3179
|
+
this.refreshTokenSuccess$ = createEffect(() => this.actions$.pipe(ofType(RefreshTokenSuccess), tap(action => {
|
|
3180
|
+
const { token, refreshToken, tokenExp } = action.payload;
|
|
3181
|
+
this.authenticationService.saveRefreshToken(token, tokenExp, refreshToken);
|
|
3182
|
+
})));
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3185
|
+
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 });
|
|
3186
|
+
UsersEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects });
|
|
3187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects, decorators: [{
|
|
3188
|
+
type: Injectable
|
|
3189
|
+
}], 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 }]; } });
|
|
3190
|
+
|
|
3191
|
+
const USERS_FEATURE_KEY = 'users';
|
|
3192
|
+
const initialState$1 = {
|
|
3193
|
+
loaded: false
|
|
3194
|
+
};
|
|
3195
|
+
const _userReducer = createReducer(initialState$1, on(LoadUsersSuccess$1, (state, action) => {
|
|
3196
|
+
return {
|
|
3197
|
+
...state,
|
|
3198
|
+
loaded: true
|
|
3199
|
+
};
|
|
3200
|
+
}), on(RefreshToken$1, SetLoaded$1, (state, action) => {
|
|
3201
|
+
return {
|
|
3202
|
+
...state,
|
|
3203
|
+
loaded: false
|
|
3204
|
+
};
|
|
3205
|
+
}), on(RefreshTokenSuccess$1, (state, action) => {
|
|
3206
|
+
console.info('[ refreshTokenSuccess ]');
|
|
3207
|
+
const { token, refreshToken, tokenExp } = action.payload;
|
|
3208
|
+
return {
|
|
3209
|
+
...state,
|
|
3210
|
+
// data: { ...state.data, token, refreshToken, tokenExp },
|
|
3211
|
+
token,
|
|
3212
|
+
refreshToken,
|
|
3213
|
+
tokenExp,
|
|
3214
|
+
loaded: true
|
|
3215
|
+
};
|
|
3216
|
+
}));
|
|
3217
|
+
function userReducer(state, action) {
|
|
3218
|
+
return _userReducer(state, action);
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3221
|
+
const getUsersState = createFeatureSelector(USERS_FEATURE_KEY);
|
|
3222
|
+
const getLoaded = createSelector(getUsersState, (state) => state.loaded);
|
|
3223
|
+
const getError = createSelector(getUsersState, (state) => {
|
|
3224
|
+
return state;
|
|
3225
|
+
});
|
|
3226
|
+
const getUser = createSelector(getUsersState, (state) => {
|
|
3227
|
+
return state.token ? state : null;
|
|
3228
|
+
});
|
|
3229
|
+
const getUserAuthData = createSelector(getUsersState, (userSate) => {
|
|
3230
|
+
return userSate && { token: userSate.token, uid: userSate.id };
|
|
3231
|
+
});
|
|
3232
|
+
const usersQuery = {
|
|
3233
|
+
getLoaded,
|
|
3234
|
+
getError,
|
|
3235
|
+
getUser,
|
|
3236
|
+
};
|
|
3237
|
+
|
|
3238
|
+
class UsersFacade {
|
|
3239
|
+
constructor(store) {
|
|
3240
|
+
this.store = store;
|
|
3241
|
+
this.loaded$ = this.store.pipe(select(usersQuery.getLoaded));
|
|
3242
|
+
this.getUser$ = this.store.pipe(select(usersQuery.getUser));
|
|
3243
|
+
}
|
|
3244
|
+
loadAll() {
|
|
3245
|
+
this.store.dispatch(LoadUsers());
|
|
3246
|
+
}
|
|
3247
|
+
sendLogin({ email, password, remember, formId }) {
|
|
3248
|
+
const params = {
|
|
3249
|
+
email, password, remember, formId
|
|
3250
|
+
};
|
|
3251
|
+
this.store.dispatch(LoginSend({ payload: params }));
|
|
3252
|
+
}
|
|
3253
|
+
logOut() {
|
|
3254
|
+
console.info('logOut');
|
|
3255
|
+
}
|
|
3256
|
+
refreshToken(refreshToken) {
|
|
3257
|
+
console.info('refreshToken');
|
|
3258
|
+
this.store.dispatch(RefreshToken({ payload: { refreshToken } }));
|
|
3259
|
+
}
|
|
3260
|
+
setLoaded() {
|
|
3261
|
+
this.store.dispatch(SetLoaded());
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
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 });
|
|
3265
|
+
UsersFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade });
|
|
3266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade, decorators: [{
|
|
3267
|
+
type: Injectable
|
|
3268
|
+
}], ctorParameters: function () { return [{ type: i1$1.Store }]; } });
|
|
3269
|
+
|
|
3270
|
+
class CustomSerializer {
|
|
3271
|
+
serialize(routerState) {
|
|
3272
|
+
let route = routerState.root;
|
|
3273
|
+
let path;
|
|
3274
|
+
while (route.firstChild) {
|
|
3275
|
+
route = route.firstChild;
|
|
3276
|
+
path = route.routeConfig.path;
|
|
3277
|
+
}
|
|
3278
|
+
const { url, root: { queryParams }, } = routerState;
|
|
3279
|
+
const { params } = route;
|
|
3280
|
+
return { url, params, queryParams, path };
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
const getRouterState = createFeatureSelector(ROUTER_FEATURE_KEY$1);
|
|
3285
|
+
const getRouterUrl = createSelector(getRouterState, (state) => {
|
|
3286
|
+
return state && state.router.url;
|
|
3287
|
+
});
|
|
3288
|
+
const getRouterRoot = createSelector(getRouterState, (state) => {
|
|
3289
|
+
return state && state.router.root;
|
|
3290
|
+
});
|
|
3291
|
+
const getRouterQueryParams = createSelector(getRouterState, (state) => {
|
|
3292
|
+
return state && state.router.root.queryParams;
|
|
3293
|
+
});
|
|
3294
|
+
const getRouterLastRoute = createSelector(getRouterState, (state) => {
|
|
3295
|
+
if (state) {
|
|
3296
|
+
let route = state.router.root;
|
|
3297
|
+
while (route.firstChild) {
|
|
3298
|
+
route = route.firstChild;
|
|
3299
|
+
}
|
|
3300
|
+
return route.url.length ? route.url[0].path : '';
|
|
3301
|
+
}
|
|
3302
|
+
return '';
|
|
3303
|
+
});
|
|
3304
|
+
const getRouterLastRouteParams = createSelector(getRouterState, (state) => {
|
|
3305
|
+
if (state) {
|
|
3306
|
+
let route = state.router.root;
|
|
3307
|
+
while (route.firstChild) {
|
|
3308
|
+
route = route.firstChild;
|
|
3309
|
+
}
|
|
3310
|
+
return route.params;
|
|
3311
|
+
}
|
|
3312
|
+
return '';
|
|
3313
|
+
});
|
|
3314
|
+
|
|
3315
|
+
const Go = createAction('[Router] Go', props());
|
|
3316
|
+
const GoFail = createAction('[Router] Go Error');
|
|
3317
|
+
const SetRouterQueryParams = createAction('[Router] Set Router Query Params', props());
|
|
3318
|
+
const Back = createAction('[Router] Back');
|
|
3319
|
+
const Forward = createAction('[Router] Forward');
|
|
3320
|
+
|
|
3321
|
+
class RouterEffects {
|
|
3322
|
+
/* @Effect({ dispatch: false })
|
|
3323
|
+
setRouterQueryParams$ = this.effect(RouterActionTypes.SetRouterQueryParams, {
|
|
3324
|
+
operatorFunctions: (action: SetRouterQueryParams) => [
|
|
3325
|
+
switchMap(() => this.applySelector(getRouterUrl)),
|
|
3326
|
+
tap((url: string) => {
|
|
3327
|
+
const payload: SetRouterQueryParamsPayload = action.payload;
|
|
3328
|
+
const extras: NavigationExtras = payload.extras;
|
|
3329
|
+
const path = [this.location.path().split('?')[0]];
|
|
3330
|
+
this.router.navigate(path, extras);
|
|
3331
|
+
})
|
|
3332
|
+
],
|
|
3333
|
+
onError: (action: Go, error) => new GoFail({}, error, action.correlationParams)
|
|
3334
|
+
});*/
|
|
3335
|
+
constructor(actions$, store, router, location) {
|
|
3336
|
+
this.actions$ = actions$;
|
|
3337
|
+
this.store = store;
|
|
3338
|
+
this.router = router;
|
|
3339
|
+
this.location = location;
|
|
3340
|
+
this.go$ = createEffect(() => this.actions$.pipe(ofType(Go), tap((action) => {
|
|
3341
|
+
const payload = action.payload;
|
|
3342
|
+
const path = this.preparePath(payload.path);
|
|
3343
|
+
let extras;
|
|
3344
|
+
if (payload.extras) {
|
|
3345
|
+
extras = payload.extras;
|
|
3346
|
+
}
|
|
3347
|
+
this.router.navigate(path, extras)
|
|
3348
|
+
.then(data => {
|
|
3349
|
+
console.info('[ router ][ navigate ]', path);
|
|
3350
|
+
})
|
|
3351
|
+
.catch(error => {
|
|
3352
|
+
console.error('[ router ][ error ]', error);
|
|
3353
|
+
});
|
|
3354
|
+
})), { dispatch: false });
|
|
3355
|
+
}
|
|
3356
|
+
preparePath(params) {
|
|
3357
|
+
const path = [];
|
|
3358
|
+
let i = 0;
|
|
3359
|
+
while (params.length > i) {
|
|
3360
|
+
const p = params[i];
|
|
3361
|
+
if (typeof p === 'object') {
|
|
3362
|
+
for (const key in p) {
|
|
3363
|
+
if (p.hasOwnProperty(key)) {
|
|
3364
|
+
path.push(p[key]);
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
else {
|
|
3369
|
+
path.push(p);
|
|
3370
|
+
}
|
|
3371
|
+
i++;
|
|
3372
|
+
}
|
|
3373
|
+
return path;
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
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 });
|
|
3377
|
+
RouterEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects });
|
|
3378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, decorators: [{
|
|
3379
|
+
type: Injectable
|
|
3380
|
+
}], ctorParameters: function () { return [{ type: i1$a.Actions }, { type: i1$1.Store }, { type: i3$2.Router }, { type: i1.Location }]; } });
|
|
3381
|
+
|
|
3382
|
+
const ROUTER_FEATURE_KEY = 'notifications';
|
|
3383
|
+
// @ts-ignore
|
|
3384
|
+
const initialState = { root: null, url: '' };
|
|
3385
|
+
/*
|
|
3386
|
+
const _outerReducer = createReducer(
|
|
3387
|
+
initialState,
|
|
3388
|
+
on(ROUTER_ERROR,
|
|
3389
|
+
ROUTER_CANCEL,
|
|
3390
|
+
ROUTER_NAVIGATION,
|
|
3391
|
+
(state, action) => {
|
|
3392
|
+
return {
|
|
3393
|
+
...state,
|
|
3394
|
+
...action.type
|
|
3395
|
+
};
|
|
3396
|
+
}
|
|
3397
|
+
)
|
|
3398
|
+
);
|
|
3399
|
+
|
|
3400
|
+
export function routerReducer(state, action) {
|
|
3401
|
+
return _outerReducer(state, action);
|
|
3402
|
+
}
|
|
3403
|
+
*/
|
|
3404
|
+
|
|
3405
|
+
const sharedEffects = [
|
|
3406
|
+
UsersEffects,
|
|
3407
|
+
RouterEffects,
|
|
3408
|
+
NotificationsEffects,
|
|
3409
|
+
FilesEffects,
|
|
3410
|
+
UiUnitsEffects,
|
|
3411
|
+
TagsEffects,
|
|
3412
|
+
MainEffects,
|
|
3413
|
+
StaticDataEffects,
|
|
3414
|
+
FormsEffects,
|
|
3415
|
+
FormValidationEffects,
|
|
3416
|
+
FormErrorsEffects,
|
|
3417
|
+
FormDeleteFileEffects,
|
|
3418
|
+
PublicationMessagesEffects,
|
|
3419
|
+
UpdateEntitiesEffects,
|
|
3420
|
+
ActionsEffects,
|
|
3421
|
+
CacheDataEffects,
|
|
3422
|
+
ReportsEffects
|
|
3423
|
+
];
|
|
3424
|
+
const sharedFacades = [
|
|
3425
|
+
CoreFacade,
|
|
3426
|
+
UsersFacade,
|
|
3427
|
+
UiUnitsFacade,
|
|
3428
|
+
NotificationsFacade,
|
|
3429
|
+
RouterFacade,
|
|
3430
|
+
FilesFacade,
|
|
3431
|
+
FormsFacade,
|
|
3432
|
+
TagsFacade,
|
|
3433
|
+
MainFacade,
|
|
3434
|
+
StaticDataFacade,
|
|
3435
|
+
FormsFacade,
|
|
3436
|
+
FormValidationFacade,
|
|
3437
|
+
FormErrorsFacade,
|
|
3438
|
+
FormDeleteFileFacade,
|
|
3439
|
+
RequestsFacade,
|
|
3440
|
+
PublicationMessagesFacade,
|
|
3441
|
+
ActionsFacade,
|
|
3442
|
+
CacheDataFacade,
|
|
3443
|
+
ReportsFacade
|
|
3444
|
+
];
|
|
3445
|
+
const SharedReducer = {
|
|
3446
|
+
requests: requestsReducer,
|
|
3447
|
+
files: filesReducer,
|
|
3448
|
+
formErrors: formErrorsReducer,
|
|
3449
|
+
formValidation: formValidationReducer,
|
|
3450
|
+
forms: formReducer,
|
|
3451
|
+
tags: tagsReducer,
|
|
3452
|
+
main: mainReducer,
|
|
3453
|
+
notifications: notificationsReducer,
|
|
3454
|
+
staticData: staticDataReducer,
|
|
3455
|
+
uiUnits: uiUnitsReducer,
|
|
3456
|
+
users: userReducer,
|
|
3457
|
+
publicationMessages: publicationMessagesReducer,
|
|
3458
|
+
actions: actionsReducer,
|
|
3459
|
+
cacheData: cacheDataReducer,
|
|
3460
|
+
reports: reportsReducer,
|
|
3461
|
+
};
|
|
3462
|
+
|
|
2985
3463
|
/*
|
|
2986
3464
|
* Public API Surface of wt-common
|
|
2987
3465
|
*/
|
|
@@ -2990,5 +3468,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2990
3468
|
* Generated bundle index. Do not edit.
|
|
2991
3469
|
*/
|
|
2992
3470
|
|
|
2993
|
-
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 };
|
|
3471
|
+
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 };
|
|
2994
3472
|
//# sourceMappingURL=wt-front-shared.mjs.map
|