@sunbird-cb/utils 1.0.19-ang-13-16 → 1.0.20-ang-13-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/image-crop/image-crop.component.mjs +172 -0
- package/esm2022/lib/components/image-crop/image-crop.module.mjs +55 -0
- package/esm2022/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.mjs +87 -0
- package/esm2022/lib/directives/class-change-on-scroll/class-change-on-scroll.module.mjs +20 -0
- package/{esm2015/lib/directives/default-thumbnail/default-thumbnail.directive.js → esm2022/lib/directives/default-thumbnail/default-thumbnail.directive.mjs} +4 -4
- package/esm2022/lib/directives/default-thumbnail/default-thumbnail.module.mjs +20 -0
- package/{esm2015/lib/directives/image-responsive/image-responsive.directive.js → esm2022/lib/directives/image-responsive/image-responsive.directive.mjs} +4 -4
- package/esm2022/lib/directives/image-responsive/image-responsive.module.mjs +20 -0
- package/{esm2015/lib/directives/in-view-port/in-view-port.directive.js → esm2022/lib/directives/in-view-port/in-view-port.directive.mjs} +4 -4
- package/esm2022/lib/directives/in-view-port/in-view-port.module.mjs +20 -0
- package/esm2022/lib/directives/navigation/navigation.directive.mjs +43 -0
- package/esm2022/lib/directives/navigation/navigation.module.mjs +20 -0
- package/{esm2015/lib/directives/permission/permission.directive.js → esm2022/lib/directives/permission/permission.directive.mjs} +4 -4
- package/esm2022/lib/directives/permission/permission.module.mjs +20 -0
- package/esm2022/lib/helpers/horizontal-scroller/horizontal-scroller.component.mjs +96 -0
- package/esm2022/lib/helpers/horizontal-scroller/horizontal-scroller.module.mjs +32 -0
- package/esm2022/lib/helpers/logout/logout.component.mjs +44 -0
- package/esm2022/lib/helpers/logout/logout.module.mjs +27 -0
- package/esm2022/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.mjs +18 -0
- package/{esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js → esm2022/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-count-transform/pipe-count-transform.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js → esm2022/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-date-concat/pipe-date-concat.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js → esm2022/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js → esm2022/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-filter/pipe-filter.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-filter/pipe-filter.pipe.js → esm2022/lib/pipes/pipe-filter/pipe-filter.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-filter-search/pipe-filter-search.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js → esm2022/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js → esm2022/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-limit-to/pipe-limit-to.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js → esm2022/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-list-filter/pipe-list-filter.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js → esm2022/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-name-transform/pipe-name-transform.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js → esm2022/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-order-by/pipe-order-by.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-order-by/pipe-order-by.pipe.js → esm2022/lib/pipes/pipe-order-by/pipe-order-by.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-partial-content/pipe-partial-content.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js → esm2022/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-relative-time/pipe-relative-time.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js → esm2022/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.mjs} +4 -4
- package/esm2022/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.mjs +20 -0
- package/{esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js → esm2022/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.mjs} +4 -4
- package/{esm2015/lib/resolvers/explore-detail.resolver.js → esm2022/lib/resolvers/explore-detail.resolver.mjs} +4 -4
- package/{esm2015/lib/resolvers/marketing-offering.resolve.js → esm2022/lib/resolvers/marketing-offering.resolve.mjs} +4 -4
- package/{esm2015/lib/resolvers/page.resolver.js → esm2022/lib/resolvers/page.resolver.mjs} +4 -4
- package/esm2022/lib/services/auth-keycloak.service.mjs +52 -0
- package/esm2022/lib/services/auth-microsoft.service.mjs +173 -0
- package/{esm2015/lib/services/configurations.service.js → esm2022/lib/services/configurations.service.mjs} +4 -4
- package/esm2022/lib/services/event.service.mjs +204 -0
- package/{esm2015/lib/services/logger.service.js → esm2022/lib/services/logger.service.mjs} +4 -4
- package/esm2022/lib/services/subapplication-respond.service.mjs +76 -0
- package/esm2022/lib/services/telemetry.service.mjs +502 -0
- package/esm2022/lib/services/user-preference.service.mjs +92 -0
- package/{esm2015/lib/services/utility.service.js → esm2022/lib/services/utility.service.mjs} +4 -4
- package/{esm2015/lib/services/value.service.js → esm2022/lib/services/value.service.mjs} +4 -4
- package/esm2022/lib/services/widget-content.service.mjs +182 -0
- package/{fesm2015/sunbird-cb-utils.js → fesm2022/sunbird-cb-utils.mjs} +573 -545
- package/fesm2022/sunbird-cb-utils.mjs.map +1 -0
- package/lib/components/image-crop/image-crop.component.d.ts +3 -3
- package/lib/components/image-crop/image-crop.component.d.ts.map +1 -1
- package/lib/components/image-crop/image-crop.module.d.ts +6 -6
- package/lib/components/image-crop/image-crop.module.d.ts.map +1 -1
- package/lib/constants/misc.constants.d.ts +2 -2
- package/lib/constants/misc.constants.d.ts.map +1 -1
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +1 -1
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +1 -1
- package/lib/directives/image-responsive/image-responsive.directive.d.ts +1 -1
- package/lib/directives/in-view-port/in-view-port.directive.d.ts +1 -1
- package/lib/directives/navigation/navigation.directive.d.ts +1 -1
- package/lib/directives/permission/permission.directive.d.ts +1 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +1 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +3 -3
- package/lib/helpers/logout/logout.component.d.ts +2 -2
- package/lib/helpers/logout/logout.component.d.ts.map +1 -1
- package/lib/helpers/logout/logout.module.d.ts +3 -3
- package/lib/helpers/logout/logout.module.d.ts.map +1 -1
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +1 -1
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +1 -1
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +1 -1
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +1 -1
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +1 -1
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +1 -1
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +1 -1
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +1 -1
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +1 -1
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +1 -1
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +5 -5
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +1 -1
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +1 -1
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +1 -1
- package/lib/resolvers/explore-detail.resolver.d.ts +2 -2
- package/lib/resolvers/explore-detail.resolver.d.ts.map +1 -1
- package/lib/resolvers/marketing-offering.resolve.d.ts +2 -2
- package/lib/resolvers/marketing-offering.resolve.d.ts.map +1 -1
- package/lib/resolvers/page.resolver.d.ts +2 -2
- package/lib/resolvers/page.resolver.d.ts.map +1 -1
- package/lib/services/widget-resolver.model.d.ts +1 -1
- package/lib/services/widget-resolver.model.d.ts.map +1 -1
- package/package.json +26 -18
- package/sunbird-cb-utils-1.0.20-ang-13-16.tgz +0 -0
- package/bundles/sunbird-cb-utils.umd.js +0 -4785
- package/bundles/sunbird-cb-utils.umd.js.map +0 -1
- package/esm2015/lib/components/image-crop/image-crop.component.js +0 -166
- package/esm2015/lib/components/image-crop/image-crop.module.js +0 -58
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +0 -87
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +0 -22
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.module.js +0 -22
- package/esm2015/lib/directives/image-responsive/image-responsive.module.js +0 -22
- package/esm2015/lib/directives/in-view-port/in-view-port.module.js +0 -22
- package/esm2015/lib/directives/navigation/navigation.directive.js +0 -43
- package/esm2015/lib/directives/navigation/navigation.module.js +0 -22
- package/esm2015/lib/directives/permission/permission.module.js +0 -22
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +0 -100
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +0 -34
- package/esm2015/lib/helpers/logout/logout.component.js +0 -48
- package/esm2015/lib/helpers/logout/logout.module.js +0 -30
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +0 -18
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +0 -22
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +0 -22
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +0 -22
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.module.js +0 -22
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +0 -22
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +0 -22
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +0 -22
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +0 -22
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +0 -22
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.module.js +0 -22
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +0 -22
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +0 -22
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +0 -22
- package/esm2015/lib/services/auth-keycloak.service.js +0 -57
- package/esm2015/lib/services/auth-microsoft.service.js +0 -184
- package/esm2015/lib/services/event.service.js +0 -199
- package/esm2015/lib/services/subapplication-respond.service.js +0 -70
- package/esm2015/lib/services/telemetry.service.js +0 -434
- package/esm2015/lib/services/user-preference.service.js +0 -82
- package/esm2015/lib/services/widget-content.service.js +0 -182
- package/fesm2015/sunbird-cb-utils.js.map +0 -1
- package/sunbird-cb-utils-1.0.19-ang-13-16.tgz +0 -0
- /package/{esm2015/lib/constants/features.enum.js → esm2022/lib/constants/features.enum.mjs} +0 -0
- /package/{esm2015/lib/constants/instances.enum.js → esm2022/lib/constants/instances.enum.mjs} +0 -0
- /package/{esm2015/lib/constants/misc.constants.js → esm2022/lib/constants/misc.constants.mjs} +0 -0
- /package/{esm2015/lib/helpers/functions/getStringifiedQueryParams.js → esm2022/lib/helpers/functions/getStringifiedQueryParams.mjs} +0 -0
- /package/{esm2015/lib/models/contentRating.model.js → esm2022/lib/models/contentRating.model.mjs} +0 -0
- /package/{esm2015/lib/resolvers/page.constant.js → esm2022/lib/resolvers/page.constant.mjs} +0 -0
- /package/{esm2015/lib/resolvers/page.model.js → esm2022/lib/resolvers/page.model.mjs} +0 -0
- /package/{esm2015/lib/resolvers/resolver.model.js → esm2022/lib/resolvers/resolver.model.mjs} +0 -0
- /package/{esm2015/lib/services/card-content.model.js → esm2022/lib/services/card-content.model.mjs} +0 -0
- /package/{esm2015/lib/services/configurations.model.js → esm2022/lib/services/configurations.model.mjs} +0 -0
- /package/{esm2015/lib/services/content-strip-multiple.model.js → esm2022/lib/services/content-strip-multiple.model.mjs} +0 -0
- /package/{esm2015/lib/services/event.model.js → esm2022/lib/services/event.model.mjs} +0 -0
- /package/{esm2015/lib/services/ms-office.model.js → esm2022/lib/services/ms-office.model.mjs} +0 -0
- /package/{esm2015/lib/services/user-preference.model.js → esm2022/lib/services/user-preference.model.mjs} +0 -0
- /package/{esm2015/lib/services/widget-content.model.js → esm2022/lib/services/widget-content.model.mjs} +0 -0
- /package/{esm2015/lib/services/widget-resolver.model.js → esm2022/lib/services/widget-resolver.model.mjs} +0 -0
- /package/{esm2015/lib/services/widget-search.model.js → esm2022/lib/services/widget-search.model.mjs} +0 -0
- /package/{esm2015/public-api.js → esm2022/public-api.mjs} +0 -0
- /package/{esm2015/sunbird-cb-utils.js → esm2022/sunbird-cb-utils.mjs} +0 -0
- /package/{sunbird-cb-utils.d.ts → index.d.ts} +0 -0
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, EventEmitter, Component, Inject, Output, NgModule, Directive, Input, HostBinding, HostListener, ViewChild, Pipe, LOCALE_ID } from '@angular/core';
|
|
3
|
-
import * as i1$1 from '@angular/material/dialog';
|
|
4
|
-
import {
|
|
3
|
+
import * as i1$1 from '@angular/material/legacy-dialog';
|
|
4
|
+
import { MAT_LEGACY_DIALOG_DATA, MatLegacyDialogModule } from '@angular/material/legacy-dialog';
|
|
5
5
|
import { BehaviorSubject, ReplaySubject, fromEvent, timer, of, forkJoin, Subject } from 'rxjs';
|
|
6
|
-
import * as i3 from '@angular/material/snack-bar';
|
|
6
|
+
import * as i3 from '@angular/material/legacy-snack-bar';
|
|
7
7
|
import * as i1 from '@angular/cdk/layout';
|
|
8
8
|
import { Breakpoints } from '@angular/cdk/layout';
|
|
9
9
|
import { map, debounceTime, distinctUntilChanged, throttleTime, catchError, mergeMap, retry, filter } from 'rxjs/operators';
|
|
10
|
-
import * as
|
|
11
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
12
|
-
import * as i6 from '@angular/material/button';
|
|
13
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
-
import * as i7 from 'ngx-image-cropper';
|
|
15
|
-
import { ImageCropperModule } from 'ngx-image-cropper';
|
|
16
|
-
import * as i8 from '@angular/material/slider';
|
|
17
|
-
import { MatSliderModule } from '@angular/material/slider';
|
|
18
|
-
import * as i9 from '@angular/material/card';
|
|
19
|
-
import { MatCardModule } from '@angular/material/card';
|
|
20
|
-
import * as i4 from '@angular/common';
|
|
10
|
+
import * as i1$2 from '@angular/common';
|
|
21
11
|
import { CommonModule } from '@angular/common';
|
|
12
|
+
import * as i6 from 'ngx-image-cropper';
|
|
13
|
+
import { ImageCropperModule } from 'ngx-image-cropper';
|
|
14
|
+
import * as i7 from '@angular/material/icon';
|
|
15
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
16
|
+
import * as i8 from '@angular/material/legacy-button';
|
|
17
|
+
import { MatLegacyButtonModule } from '@angular/material/legacy-button';
|
|
18
|
+
import * as i9 from '@angular/material/legacy-card';
|
|
19
|
+
import { MatLegacyCardModule } from '@angular/material/legacy-card';
|
|
20
|
+
import * as i10 from '@angular/material/legacy-slider';
|
|
21
|
+
import { MatLegacySliderModule } from '@angular/material/legacy-slider';
|
|
22
22
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
23
|
-
import {
|
|
24
|
-
import * as
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import * as i3$2 from '@angular/router';
|
|
23
|
+
import { MatLegacyTooltipModule } from '@angular/material/legacy-tooltip';
|
|
24
|
+
import * as i4 from '@angular/material/legacy-progress-spinner';
|
|
25
|
+
import { MatLegacyProgressSpinnerModule } from '@angular/material/legacy-progress-spinner';
|
|
26
|
+
import * as i3$1 from '@angular/router';
|
|
28
27
|
import { NavigationEnd } from '@angular/router';
|
|
29
|
-
import * as i1$
|
|
28
|
+
import * as i1$3 from '@angular/common/http';
|
|
30
29
|
import * as i2 from '@angular/cdk/platform';
|
|
31
30
|
import * as _moment from 'moment';
|
|
32
31
|
import * as _ from 'lodash';
|
|
33
32
|
import { orderBy } from 'lodash';
|
|
34
|
-
import * as i1$
|
|
33
|
+
import * as i1$4 from '@angular/platform-browser';
|
|
35
34
|
|
|
36
35
|
class ConfigurationsService {
|
|
37
36
|
constructor() {
|
|
@@ -85,10 +84,10 @@ class ConfigurationsService {
|
|
|
85
84
|
updateOrgData(id) {
|
|
86
85
|
this.updateOrgReadData.next(id);
|
|
87
86
|
}
|
|
87
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
88
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationsService, providedIn: 'root' }); }
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
-
ConfigurationsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationsService, providedIn: 'root' });
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationsService, decorators: [{
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationsService, decorators: [{
|
|
92
91
|
type: Injectable,
|
|
93
92
|
args: [{
|
|
94
93
|
providedIn: 'root',
|
|
@@ -105,10 +104,10 @@ class ValueService {
|
|
|
105
104
|
.observe([Breakpoints.XSmall, Breakpoints.Small])
|
|
106
105
|
.pipe(map((res) => res.matches));
|
|
107
106
|
}
|
|
107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueService, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
108
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueService, providedIn: 'root' }); }
|
|
108
109
|
}
|
|
109
|
-
|
|
110
|
-
ValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ValueService, providedIn: 'root' });
|
|
111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ValueService, decorators: [{
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueService, decorators: [{
|
|
112
111
|
type: Injectable,
|
|
113
112
|
args: [{
|
|
114
113
|
providedIn: 'root',
|
|
@@ -223,7 +222,11 @@ class ImageCropComponent {
|
|
|
223
222
|
flipAfterRotate() {
|
|
224
223
|
const flippedH = this.transform.flipH;
|
|
225
224
|
const flippedV = this.transform.flipV;
|
|
226
|
-
this.transform =
|
|
225
|
+
this.transform = {
|
|
226
|
+
...this.transform,
|
|
227
|
+
flipH: flippedV,
|
|
228
|
+
flipV: flippedH,
|
|
229
|
+
};
|
|
227
230
|
}
|
|
228
231
|
rotateLeft() {
|
|
229
232
|
this.canvasRotation = this.canvasRotation - 1;
|
|
@@ -234,11 +237,17 @@ class ImageCropComponent {
|
|
|
234
237
|
this.flipAfterRotate();
|
|
235
238
|
}
|
|
236
239
|
flipHorizontal() {
|
|
237
|
-
this.transform =
|
|
240
|
+
this.transform = {
|
|
241
|
+
...this.transform,
|
|
242
|
+
flipH: !this.transform.flipH,
|
|
243
|
+
};
|
|
238
244
|
}
|
|
239
245
|
zoom(event) {
|
|
240
246
|
this.resetValue = false;
|
|
241
|
-
this.transform =
|
|
247
|
+
this.transform = {
|
|
248
|
+
...this.transform,
|
|
249
|
+
scale: event.value,
|
|
250
|
+
};
|
|
242
251
|
}
|
|
243
252
|
croppingImage() {
|
|
244
253
|
this.dialogRef.close(this.cropimageFile);
|
|
@@ -251,49 +260,43 @@ class ImageCropComponent {
|
|
|
251
260
|
close() {
|
|
252
261
|
this.dialogRef.close();
|
|
253
262
|
}
|
|
263
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageCropComponent, deps: [{ token: i1$1.MatLegacyDialogRef }, { token: ConfigurationsService }, { token: i3.MatLegacySnackBar }, { token: ValueService }, { token: MAT_LEGACY_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
264
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ImageCropComponent, selector: "ws-utils-image-crop", outputs: { data: "data" }, ngImport: i0, template: "<ng-container *ngIf=\"isNotOfRequiredSize\">\r\n <mat-dialog-content>\r\n <div class=\"flex pl-4\">\r\n <mat-icon class=\"ws-mat-warn-text largeicon padding-remove-left\">warning</mat-icon>\r\n <h2 class=\"text-xl\" i18n>This image will appear stretched as it is not in proper dimension. Do you want to\r\n continue?</h2>\r\n </div>\r\n <div class=\"text-sm pl-4\">\r\n <div i18n class=\"pb-2\">Note:</div>\r\n <div i18n class=\"pb-2\">Required dimensions : 265 * 150</div>\r\n <div class=\"flex flex-wrap items-baseline\">\r\n <div>Current dimensions:</div>\r\n <div class=\"pl-1\">{{ width }} * {{ height }} px</div>\r\n </div>\r\n </div>\r\n </mat-dialog-content>\r\n <mat-dialog-actions class=\"flex flex-end\">\r\n <div class=\"flex flex-end\">\r\n <button mat-raised-button autofocus type=\"button\" (click)=\" close()\">\r\n <span i18n>No</span>\r\n </button>\r\n <button mat-raised-button type=\"button\" class=\"text-white ws-mat-primary-background text-white\"\r\n (click)=\" continueToImageCrop()\">\r\n <span class=\"text-white\" i18n>Yes</span>\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n<ng-container *ngIf=\"isRoundCrop\">\r\n <!-- For Profile image - start -->\r\n <div class=\"flex flex-between\">\r\n <mat-icon class=\" ws-mat-primary-text margin-bottom-xxs\">crop</mat-icon>\r\n <p mat-dialog-title class=\"text-3xl font-weight-bold ws-mat-primary-text\" i18n>Profile Photo</p>\r\n <mat-icon class=\"float-right flex-end cursor-pointer\" (click)=\"close()\" i18n>close</mat-icon>\r\n\r\n </div>\r\n <mat-dialog-content class=\"p-0 overflow-hidden \" *ngIf=\"isRoundCrop\">\r\n <div class=\"flex flex-between\">\r\n <div class=\"profile-slides\">\r\n <image-cropper #imageCropper class=\"image-cropper-profile\" [imageFile]=\"imageFile\" [maintainAspectRatio]=\"true\"\r\n [aspectRatio]=\"250 / 250\" [resizeToWidth]=\"100\" [roundCropper]=\"isRoundCrop\" [resizeToHeight]=\"120\"\r\n [cropperMinWidth]=\"500\" [format]=\"'jpeg'\" [transform]=\"transform\" [canvasRotation]=\"canvasRotation\"\r\n (imageCropped)=\"imageCropped($event)\">\r\n </image-cropper>\r\n </div>\r\n </div>\r\n <ul class=\"toolbar cf\">\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"rotateLeft()\">\r\n <mat-icon class=\"text-white large-icon ws-mat-primary-text\">rotate_left</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Left</span>\r\n </button>\r\n </li>\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"rotateRight()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">rotate_right</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Right</span>\r\n </button></li>\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"flipHorizontal()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">flip</mat-icon>\r\n <span class=\"button-text\" i18n>Flip Horizontal</span>\r\n </button></li>\r\n <li><a href=\"#\"><i class=\"icon-cloud\"></i></a></li>\r\n </ul>\r\n </mat-dialog-content>\r\n</ng-container> <!-- For Profile image - end -->\r\n<ng-container>\r\n <ng-container *ngIf=\"!isNotOfRequiredSize && !isRoundCrop \">\r\n <div class=\"flex flex-between\">\r\n <mat-icon class=\" ws-mat-primary-text margin-bottom-xxs\">crop</mat-icon>\r\n <p mat-dialog-title class=\"text-3xl title-margin font-weight-bold ws-mat-primary-text\" i18n>Edit Image</p>\r\n <mat-icon class=\"float-right flex-end cursor-pointer\" (click)=\"close()\" i18n>\r\n close</mat-icon>\r\n </div>\r\n <mat-dialog-content *ngIf=\"!isRoundCrop\">\r\n <div class=\"flex flex-between\">\r\n <div class=\"Slides\">\r\n <image-cropper #imageCropper class=\"image-cropper padding-remove\" [imageFile]=\"imageFile\"\r\n [maintainAspectRatio]=\"true\" [aspectRatio]=\"opWidth / opHeight\" [resizeToWidth]=\"opWidth\"\r\n [roundCropper]=\"isRoundCrop\" [resizeToHeight]=\"opHeight\" [cropperMinWidth]=\"opWidth\" [format]=\"'jpeg'\"\r\n [transform]=\"transform\" [canvasRotation]=\"canvasRotation\" (imageCropped)=\"imageCropped($event)\">\r\n </image-cropper>\r\n <div class=\"flex flex-between\">\r\n <span class=\"my-3\" i18n>Zoom</span>\r\n <mat-slider class=\"w-full mx-3\" color=\"primary\" (input)=\"zoom($event)\" min=\"1\" max=\"2.5\" step=\"0.1\">\r\n </mat-slider>\r\n </div>\r\n <div class=\"edit-feature-window \" *ngIf=\"!isXSmall\">\r\n <div class=\"flex flex-between\">\r\n <button mat-raised-button class=\"mat-button\" (click)=\"rotateLeft()\">\r\n <mat-icon class=\"text-white large-icon ws-mat-primary-text\">rotate_left</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Left</span>\r\n </button>\r\n <button mat-raised-button class=\"mat-button\" (click)=\"rotateRight()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">rotate_right</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Right</span>\r\n </button>\r\n <button mat-raised-button class=\"mat-button\" (click)=\"flipHorizontal()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">flip</mat-icon>\r\n <span class=\"button-text\" i18n>Flip Horizontal</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <mat-card class=\"ws-mat-primary-border-top-bolder mat-elevation-z6 margin-bottom-l button-text\"\r\n *ngIf=\"isThumbnail\">\r\n <img [src]=\"imageFileBase64\" height=\"auto\" width=\"100%\" (error)=\"changeToDefaultImg($event)\" />\r\n <div class=\"flex flex-middle justify-center margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">image</mat-icon>\r\n <b class=\"mat-title margin-remove ws-mat-primary-text\" i18n>Preview</b>\r\n </div>\r\n </mat-card>\r\n </div>\r\n <div class=\"edit-feature-window heightwidth\">\r\n <!-- <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_horiz</mat-icon>\r\n <b class=\"mat-body margin-remove \" i18n>Cropped dimensions: {{ opWidth }} * {{ opHeight }} px</b>\r\n </div> -->\r\n <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_horiz</mat-icon>\r\n <b class=\"mat-body margin-remove \">\r\n <span i18n>Cropped Width: </span>\r\n <span>{{ croppedWidth }}</span>\r\n <span i18n>px</span>\r\n </b>\r\n </div>\r\n <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_vert</mat-icon>\r\n <b class=\"mat-body margin-remove \">\r\n <span i18n>Cropped Height: </span>\r\n <span>{{ croppedHeight }}</span>\r\n <span i18n>px</span>\r\n </b>\r\n </div>\r\n </div>\r\n </mat-dialog-content>\r\n </ng-container>\r\n <mat-dialog-actions align=\"end\" *ngIf=\"!isNotOfRequiredSize \">\r\n <div class=\"flex flex-end margin-bottom-s\">\r\n <!-- <button mat-raised-button type=\"button\" (click)=\" reset()\">\r\n <span i18n>Reset</span>\r\n </button> -->\r\n <button mat-raised-button type=\"button\" class=\"text-white ws-mat-primary-background text-white\"\r\n (click)=\" croppingImage()\">\r\n <span class=\"text-white\" i18n>Apply</span>\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n", styles: [".image-cropper{max-height:55vh}::ng-deep image-cropper .overlay{background-color:transparent!important}.Slides{display:block;height:auto;width:50%;position:relative;margin-left:auto;margin-right:auto;padding:0 1.25em}@media only screen and (max-width: 1030px){.Slides{padding:0;width:100%}}.cursor{cursor:pointer}.edit-feature-window{background:transparent;justify-content:center}mat-toolbar{background-color:#fff!important;z-index:1!important}mat-dialog-content{padding:1.25em!important}@media only screen and (max-width: 1030px){mat-dialog-content{padding:.25em .5em!important}}.heightwidth{display:flex}@media only screen and (max-width: 1030px){.heightwidth{display:block}}@media only screen and (max-width: 1030px){.mat-button{min-width:auto;padding:0 14px}}.largeicon{font-size:2em;padding:.13em .5em}.tooltip{background:#b71c1c}.dimension-icon{position:relative;top:.35em;padding:0 0 0 .3em}@media only screen and (max-width: 1030px){.button-text{display:none}}.image-cropper-profile{max-height:55vh}.profile-slides{box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;display:block;height:auto;width:50%;position:relative;margin-left:auto;margin-right:auto}@media only screen and (max-width: 1030px){.profile-slides{padding:0;width:100%}}.toolbar{left:50%;margin:1em 0 0 -10em;position:absolute;width:auto;border-radius:4px}.cf:before,.cf:after{content:\"\";display:table}.cf:after{clear:both}.toolbar li{float:left;list-style:none}.toolbar a{border-left:0px solid rgba(79,123,170,.4);border-right:1px solid rgba(255,255,255,.3)}.toolbar li:first-child a{border-left:none;border-radius:4px 0 0 4px}.toolbar li:last-child a{border-right:none;border-radius:0 4px 4px 0}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.ImageCropperComponent, selector: "image-cropper", inputs: ["imageChangedEvent", "imageURL", "imageBase64", "imageFile", "imageAltText", "format", "transform", "maintainAspectRatio", "aspectRatio", "resetCropOnAspectRatioChange", "resizeToWidth", "resizeToHeight", "cropperMinWidth", "cropperMinHeight", "cropperMaxHeight", "cropperMaxWidth", "cropperStaticWidth", "cropperStaticHeight", "canvasRotation", "initialStepSize", "roundCropper", "onlyScaleDown", "imageQuality", "autoCrop", "backgroundColor", "containWithinAspectRatio", "hideResizeSquares", "allowMoveImage", "cropper", "alignImage", "disabled", "hidden"], outputs: ["imageCropped", "startCropImage", "imageLoaded", "cropperReady", "loadImageFailed", "transformChange"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8.MatLegacyButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i1$1.MatLegacyDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$1.MatLegacyDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$1.MatLegacyDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i9.MatLegacyCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "component", type: i10.MatLegacySlider, selector: "mat-slider", inputs: ["disabled", "color", "tabIndex", "invert", "max", "min", "step", "thumbLabel", "tickInterval", "value", "displayWith", "valueText", "vertical"], outputs: ["change", "input", "valueChange"], exportAs: ["matSlider"] }] }); }
|
|
254
265
|
}
|
|
255
|
-
|
|
256
|
-
ImageCropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ImageCropComponent, selector: "ws-utils-image-crop", outputs: { data: "data" }, ngImport: i0, template: "<ng-container *ngIf=\"isNotOfRequiredSize\">\r\n <mat-dialog-content>\r\n <div class=\"flex pl-4\">\r\n <mat-icon class=\"ws-mat-warn-text largeicon padding-remove-left\">warning</mat-icon>\r\n <h2 class=\"text-xl\" i18n>This image will appear stretched as it is not in proper dimension. Do you want to\r\n continue?</h2>\r\n </div>\r\n <div class=\"text-sm pl-4\">\r\n <div i18n class=\"pb-2\">Note:</div>\r\n <div i18n class=\"pb-2\">Required dimensions : 265 * 150</div>\r\n <div class=\"flex flex-wrap items-baseline\">\r\n <div>Current dimensions:</div>\r\n <div class=\"pl-1\">{{ width }} * {{ height }} px</div>\r\n </div>\r\n </div>\r\n </mat-dialog-content>\r\n <mat-dialog-actions class=\"flex flex-end\">\r\n <div class=\"flex flex-end\">\r\n <button mat-raised-button autofocus type=\"button\" (click)=\" close()\">\r\n <span i18n>No</span>\r\n </button>\r\n <button mat-raised-button type=\"button\" class=\"text-white ws-mat-primary-background text-white\"\r\n (click)=\" continueToImageCrop()\">\r\n <span class=\"text-white\" i18n>Yes</span>\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n<ng-container *ngIf=\"isRoundCrop\">\r\n <!-- For Profile image - start -->\r\n <div class=\"flex flex-between\">\r\n <mat-icon class=\" ws-mat-primary-text margin-bottom-xxs\">crop</mat-icon>\r\n <p mat-dialog-title class=\"text-3xl font-weight-bold ws-mat-primary-text\" i18n>Profile Photo</p>\r\n <mat-icon class=\"float-right flex-end cursor-pointer\" (click)=\"close()\" i18n>close</mat-icon>\r\n\r\n </div>\r\n <mat-dialog-content class=\"p-0 overflow-hidden \" *ngIf=\"isRoundCrop\">\r\n <div class=\"flex flex-between\">\r\n <div class=\"profile-slides\">\r\n <image-cropper #imageCropper class=\"image-cropper-profile\" [imageFile]=\"imageFile\" [maintainAspectRatio]=\"true\"\r\n [aspectRatio]=\"250 / 250\" [resizeToWidth]=\"100\" [roundCropper]=\"isRoundCrop\" [resizeToHeight]=\"120\"\r\n [cropperMinWidth]=\"500\" [format]=\"'jpeg'\" [transform]=\"transform\" [canvasRotation]=\"canvasRotation\"\r\n (imageCropped)=\"imageCropped($event)\">\r\n </image-cropper>\r\n </div>\r\n </div>\r\n <ul class=\"toolbar cf\">\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"rotateLeft()\">\r\n <mat-icon class=\"text-white large-icon ws-mat-primary-text\">rotate_left</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Left</span>\r\n </button>\r\n </li>\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"rotateRight()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">rotate_right</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Right</span>\r\n </button></li>\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"flipHorizontal()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">flip</mat-icon>\r\n <span class=\"button-text\" i18n>Flip Horizontal</span>\r\n </button></li>\r\n <li><a href=\"#\"><i class=\"icon-cloud\"></i></a></li>\r\n </ul>\r\n </mat-dialog-content>\r\n</ng-container> <!-- For Profile image - end -->\r\n<ng-container>\r\n <ng-container *ngIf=\"!isNotOfRequiredSize && !isRoundCrop \">\r\n <div class=\"flex flex-between\">\r\n <mat-icon class=\" ws-mat-primary-text margin-bottom-xxs\">crop</mat-icon>\r\n <p mat-dialog-title class=\"text-3xl title-margin font-weight-bold ws-mat-primary-text\" i18n>Edit Image</p>\r\n <mat-icon class=\"float-right flex-end cursor-pointer\" (click)=\"close()\" i18n>\r\n close</mat-icon>\r\n </div>\r\n <mat-dialog-content *ngIf=\"!isRoundCrop\">\r\n <div class=\"flex flex-between\">\r\n <div class=\"Slides\">\r\n <image-cropper #imageCropper class=\"image-cropper padding-remove\" [imageFile]=\"imageFile\"\r\n [maintainAspectRatio]=\"true\" [aspectRatio]=\"opWidth / opHeight\" [resizeToWidth]=\"opWidth\"\r\n [roundCropper]=\"isRoundCrop\" [resizeToHeight]=\"opHeight\" [cropperMinWidth]=\"opWidth\" [format]=\"'jpeg'\"\r\n [transform]=\"transform\" [canvasRotation]=\"canvasRotation\" (imageCropped)=\"imageCropped($event)\">\r\n </image-cropper>\r\n <div class=\"flex flex-between\">\r\n <span class=\"my-3\" i18n>Zoom</span>\r\n <mat-slider class=\"w-full mx-3\" color=\"primary\" (input)=\"zoom($event)\" min=\"1\" max=\"2.5\" step=\"0.1\">\r\n </mat-slider>\r\n </div>\r\n <div class=\"edit-feature-window \" *ngIf=\"!isXSmall\">\r\n <div class=\"flex flex-between\">\r\n <button mat-raised-button class=\"mat-button\" (click)=\"rotateLeft()\">\r\n <mat-icon class=\"text-white large-icon ws-mat-primary-text\">rotate_left</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Left</span>\r\n </button>\r\n <button mat-raised-button class=\"mat-button\" (click)=\"rotateRight()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">rotate_right</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Right</span>\r\n </button>\r\n <button mat-raised-button class=\"mat-button\" (click)=\"flipHorizontal()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">flip</mat-icon>\r\n <span class=\"button-text\" i18n>Flip Horizontal</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <mat-card class=\"ws-mat-primary-border-top-bolder mat-elevation-z6 margin-bottom-l button-text\"\r\n *ngIf=\"isThumbnail\">\r\n <img [src]=\"imageFileBase64\" height=\"auto\" width=\"100%\" (error)=\"changeToDefaultImg($event)\" />\r\n <div class=\"flex flex-middle justify-center margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">image</mat-icon>\r\n <b class=\"mat-title margin-remove ws-mat-primary-text\" i18n>Preview</b>\r\n </div>\r\n </mat-card>\r\n </div>\r\n <div class=\"edit-feature-window heightwidth\">\r\n <!-- <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_horiz</mat-icon>\r\n <b class=\"mat-body margin-remove \" i18n>Cropped dimensions: {{ opWidth }} * {{ opHeight }} px</b>\r\n </div> -->\r\n <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_horiz</mat-icon>\r\n <b class=\"mat-body margin-remove \">\r\n <span i18n>Cropped Width: </span>\r\n <span>{{ croppedWidth }}</span>\r\n <span i18n>px</span>\r\n </b>\r\n </div>\r\n <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_vert</mat-icon>\r\n <b class=\"mat-body margin-remove \">\r\n <span i18n>Cropped Height: </span>\r\n <span>{{ croppedHeight }}</span>\r\n <span i18n>px</span>\r\n </b>\r\n </div>\r\n </div>\r\n </mat-dialog-content>\r\n </ng-container>\r\n <mat-dialog-actions align=\"end\" *ngIf=\"!isNotOfRequiredSize \">\r\n <div class=\"flex flex-end margin-bottom-s\">\r\n <!-- <button mat-raised-button type=\"button\" (click)=\" reset()\">\r\n <span i18n>Reset</span>\r\n </button> -->\r\n <button mat-raised-button type=\"button\" class=\"text-white ws-mat-primary-background text-white\"\r\n (click)=\" croppingImage()\">\r\n <span class=\"text-white\" i18n>Apply</span>\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n", styles: [".image-cropper{max-height:55vh}::ng-deep image-cropper .overlay{background-color:transparent!important}.Slides{display:block;height:auto;width:50%;position:relative;margin-left:auto;margin-right:auto;padding:0 1.25em}@media only screen and (max-width: 1030px){.Slides{padding:0;width:100%}}.cursor{cursor:pointer}.edit-feature-window{background:transparent;justify-content:center}mat-toolbar{background-color:#fff!important;z-index:1!important}mat-dialog-content{padding:1.25em!important}@media only screen and (max-width: 1030px){mat-dialog-content{padding:.25em .5em!important}}.heightwidth{display:flex}@media only screen and (max-width: 1030px){.heightwidth{display:block}}@media only screen and (max-width: 1030px){.mat-button{min-width:auto;padding:0 14px}}.largeicon{font-size:2em;padding:.13em .5em}.tooltip{background:#b71c1c}.dimension-icon{position:relative;top:.35em;padding:0 0 0 .3em}@media only screen and (max-width: 1030px){.button-text{display:none}}.image-cropper-profile{max-height:55vh}.profile-slides{box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;display:block;height:auto;width:50%;position:relative;margin-left:auto;margin-right:auto}@media only screen and (max-width: 1030px){.profile-slides{padding:0;width:100%}}.toolbar{left:50%;margin:1em 0 0 -10em;position:absolute;width:auto;border-radius:4px}.cf:before,.cf:after{content:\"\";display:table}.cf:after{clear:both}.toolbar li{float:left;list-style:none}.toolbar a{border-left:0px solid rgba(79,123,170,.4);border-right:1px solid rgba(255,255,255,.3)}.toolbar li:first-child a{border-left:none;border-radius:4px 0 0 4px}.toolbar li:last-child a{border-right:none;border-radius:0 4px 4px 0}\n"], components: [{ type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i7.ImageCropperComponent, selector: "image-cropper", inputs: ["format", "transform", "maintainAspectRatio", "aspectRatio", "resizeToWidth", "resizeToHeight", "cropperMinWidth", "cropperMinHeight", "cropperMaxHeight", "cropperMaxWidth", "cropperStaticWidth", "cropperStaticHeight", "canvasRotation", "initialStepSize", "roundCropper", "onlyScaleDown", "imageQuality", "autoCrop", "backgroundColor", "containWithinAspectRatio", "hideResizeSquares", "cropper", "alignImage", "disabled", "imageChangedEvent", "imageURL", "imageBase64", "imageFile"], outputs: ["imageCropped", "startCropImage", "imageLoaded", "cropperReady", "loadImageFailed"] }, { type: i8.MatSlider, selector: "mat-slider", inputs: ["disabled", "color", "tabIndex", "invert", "max", "min", "step", "thumbLabel", "tickInterval", "value", "vertical", "displayWith", "valueText"], outputs: ["change", "input", "valueChange"], exportAs: ["matSlider"] }, { type: i9.MatCard, selector: "mat-card", exportAs: ["matCard"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }] });
|
|
257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageCropComponent, decorators: [{
|
|
266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageCropComponent, decorators: [{
|
|
258
267
|
type: Component,
|
|
259
|
-
args: [{
|
|
260
|
-
|
|
261
|
-
templateUrl: './image-crop.component.html',
|
|
262
|
-
styleUrls: ['./image-crop.component.scss'],
|
|
263
|
-
}]
|
|
264
|
-
}], ctorParameters: function () { return [{ type: i1$1.MatDialogRef }, { type: ConfigurationsService }, { type: i3.MatSnackBar }, { type: ValueService }, { type: undefined, decorators: [{
|
|
268
|
+
args: [{ selector: 'ws-utils-image-crop', template: "<ng-container *ngIf=\"isNotOfRequiredSize\">\r\n <mat-dialog-content>\r\n <div class=\"flex pl-4\">\r\n <mat-icon class=\"ws-mat-warn-text largeicon padding-remove-left\">warning</mat-icon>\r\n <h2 class=\"text-xl\" i18n>This image will appear stretched as it is not in proper dimension. Do you want to\r\n continue?</h2>\r\n </div>\r\n <div class=\"text-sm pl-4\">\r\n <div i18n class=\"pb-2\">Note:</div>\r\n <div i18n class=\"pb-2\">Required dimensions : 265 * 150</div>\r\n <div class=\"flex flex-wrap items-baseline\">\r\n <div>Current dimensions:</div>\r\n <div class=\"pl-1\">{{ width }} * {{ height }} px</div>\r\n </div>\r\n </div>\r\n </mat-dialog-content>\r\n <mat-dialog-actions class=\"flex flex-end\">\r\n <div class=\"flex flex-end\">\r\n <button mat-raised-button autofocus type=\"button\" (click)=\" close()\">\r\n <span i18n>No</span>\r\n </button>\r\n <button mat-raised-button type=\"button\" class=\"text-white ws-mat-primary-background text-white\"\r\n (click)=\" continueToImageCrop()\">\r\n <span class=\"text-white\" i18n>Yes</span>\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n<ng-container *ngIf=\"isRoundCrop\">\r\n <!-- For Profile image - start -->\r\n <div class=\"flex flex-between\">\r\n <mat-icon class=\" ws-mat-primary-text margin-bottom-xxs\">crop</mat-icon>\r\n <p mat-dialog-title class=\"text-3xl font-weight-bold ws-mat-primary-text\" i18n>Profile Photo</p>\r\n <mat-icon class=\"float-right flex-end cursor-pointer\" (click)=\"close()\" i18n>close</mat-icon>\r\n\r\n </div>\r\n <mat-dialog-content class=\"p-0 overflow-hidden \" *ngIf=\"isRoundCrop\">\r\n <div class=\"flex flex-between\">\r\n <div class=\"profile-slides\">\r\n <image-cropper #imageCropper class=\"image-cropper-profile\" [imageFile]=\"imageFile\" [maintainAspectRatio]=\"true\"\r\n [aspectRatio]=\"250 / 250\" [resizeToWidth]=\"100\" [roundCropper]=\"isRoundCrop\" [resizeToHeight]=\"120\"\r\n [cropperMinWidth]=\"500\" [format]=\"'jpeg'\" [transform]=\"transform\" [canvasRotation]=\"canvasRotation\"\r\n (imageCropped)=\"imageCropped($event)\">\r\n </image-cropper>\r\n </div>\r\n </div>\r\n <ul class=\"toolbar cf\">\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"rotateLeft()\">\r\n <mat-icon class=\"text-white large-icon ws-mat-primary-text\">rotate_left</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Left</span>\r\n </button>\r\n </li>\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"rotateRight()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">rotate_right</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Right</span>\r\n </button></li>\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"flipHorizontal()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">flip</mat-icon>\r\n <span class=\"button-text\" i18n>Flip Horizontal</span>\r\n </button></li>\r\n <li><a href=\"#\"><i class=\"icon-cloud\"></i></a></li>\r\n </ul>\r\n </mat-dialog-content>\r\n</ng-container> <!-- For Profile image - end -->\r\n<ng-container>\r\n <ng-container *ngIf=\"!isNotOfRequiredSize && !isRoundCrop \">\r\n <div class=\"flex flex-between\">\r\n <mat-icon class=\" ws-mat-primary-text margin-bottom-xxs\">crop</mat-icon>\r\n <p mat-dialog-title class=\"text-3xl title-margin font-weight-bold ws-mat-primary-text\" i18n>Edit Image</p>\r\n <mat-icon class=\"float-right flex-end cursor-pointer\" (click)=\"close()\" i18n>\r\n close</mat-icon>\r\n </div>\r\n <mat-dialog-content *ngIf=\"!isRoundCrop\">\r\n <div class=\"flex flex-between\">\r\n <div class=\"Slides\">\r\n <image-cropper #imageCropper class=\"image-cropper padding-remove\" [imageFile]=\"imageFile\"\r\n [maintainAspectRatio]=\"true\" [aspectRatio]=\"opWidth / opHeight\" [resizeToWidth]=\"opWidth\"\r\n [roundCropper]=\"isRoundCrop\" [resizeToHeight]=\"opHeight\" [cropperMinWidth]=\"opWidth\" [format]=\"'jpeg'\"\r\n [transform]=\"transform\" [canvasRotation]=\"canvasRotation\" (imageCropped)=\"imageCropped($event)\">\r\n </image-cropper>\r\n <div class=\"flex flex-between\">\r\n <span class=\"my-3\" i18n>Zoom</span>\r\n <mat-slider class=\"w-full mx-3\" color=\"primary\" (input)=\"zoom($event)\" min=\"1\" max=\"2.5\" step=\"0.1\">\r\n </mat-slider>\r\n </div>\r\n <div class=\"edit-feature-window \" *ngIf=\"!isXSmall\">\r\n <div class=\"flex flex-between\">\r\n <button mat-raised-button class=\"mat-button\" (click)=\"rotateLeft()\">\r\n <mat-icon class=\"text-white large-icon ws-mat-primary-text\">rotate_left</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Left</span>\r\n </button>\r\n <button mat-raised-button class=\"mat-button\" (click)=\"rotateRight()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">rotate_right</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Right</span>\r\n </button>\r\n <button mat-raised-button class=\"mat-button\" (click)=\"flipHorizontal()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">flip</mat-icon>\r\n <span class=\"button-text\" i18n>Flip Horizontal</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <mat-card class=\"ws-mat-primary-border-top-bolder mat-elevation-z6 margin-bottom-l button-text\"\r\n *ngIf=\"isThumbnail\">\r\n <img [src]=\"imageFileBase64\" height=\"auto\" width=\"100%\" (error)=\"changeToDefaultImg($event)\" />\r\n <div class=\"flex flex-middle justify-center margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">image</mat-icon>\r\n <b class=\"mat-title margin-remove ws-mat-primary-text\" i18n>Preview</b>\r\n </div>\r\n </mat-card>\r\n </div>\r\n <div class=\"edit-feature-window heightwidth\">\r\n <!-- <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_horiz</mat-icon>\r\n <b class=\"mat-body margin-remove \" i18n>Cropped dimensions: {{ opWidth }} * {{ opHeight }} px</b>\r\n </div> -->\r\n <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_horiz</mat-icon>\r\n <b class=\"mat-body margin-remove \">\r\n <span i18n>Cropped Width: </span>\r\n <span>{{ croppedWidth }}</span>\r\n <span i18n>px</span>\r\n </b>\r\n </div>\r\n <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_vert</mat-icon>\r\n <b class=\"mat-body margin-remove \">\r\n <span i18n>Cropped Height: </span>\r\n <span>{{ croppedHeight }}</span>\r\n <span i18n>px</span>\r\n </b>\r\n </div>\r\n </div>\r\n </mat-dialog-content>\r\n </ng-container>\r\n <mat-dialog-actions align=\"end\" *ngIf=\"!isNotOfRequiredSize \">\r\n <div class=\"flex flex-end margin-bottom-s\">\r\n <!-- <button mat-raised-button type=\"button\" (click)=\" reset()\">\r\n <span i18n>Reset</span>\r\n </button> -->\r\n <button mat-raised-button type=\"button\" class=\"text-white ws-mat-primary-background text-white\"\r\n (click)=\" croppingImage()\">\r\n <span class=\"text-white\" i18n>Apply</span>\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n", styles: [".image-cropper{max-height:55vh}::ng-deep image-cropper .overlay{background-color:transparent!important}.Slides{display:block;height:auto;width:50%;position:relative;margin-left:auto;margin-right:auto;padding:0 1.25em}@media only screen and (max-width: 1030px){.Slides{padding:0;width:100%}}.cursor{cursor:pointer}.edit-feature-window{background:transparent;justify-content:center}mat-toolbar{background-color:#fff!important;z-index:1!important}mat-dialog-content{padding:1.25em!important}@media only screen and (max-width: 1030px){mat-dialog-content{padding:.25em .5em!important}}.heightwidth{display:flex}@media only screen and (max-width: 1030px){.heightwidth{display:block}}@media only screen and (max-width: 1030px){.mat-button{min-width:auto;padding:0 14px}}.largeicon{font-size:2em;padding:.13em .5em}.tooltip{background:#b71c1c}.dimension-icon{position:relative;top:.35em;padding:0 0 0 .3em}@media only screen and (max-width: 1030px){.button-text{display:none}}.image-cropper-profile{max-height:55vh}.profile-slides{box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;display:block;height:auto;width:50%;position:relative;margin-left:auto;margin-right:auto}@media only screen and (max-width: 1030px){.profile-slides{padding:0;width:100%}}.toolbar{left:50%;margin:1em 0 0 -10em;position:absolute;width:auto;border-radius:4px}.cf:before,.cf:after{content:\"\";display:table}.cf:after{clear:both}.toolbar li{float:left;list-style:none}.toolbar a{border-left:0px solid rgba(79,123,170,.4);border-right:1px solid rgba(255,255,255,.3)}.toolbar li:first-child a{border-left:none;border-radius:4px 0 0 4px}.toolbar li:last-child a{border-right:none;border-radius:0 4px 4px 0}\n"] }]
|
|
269
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatLegacyDialogRef }, { type: ConfigurationsService }, { type: i3.MatLegacySnackBar }, { type: ValueService }, { type: undefined, decorators: [{
|
|
265
270
|
type: Inject,
|
|
266
|
-
args: [
|
|
271
|
+
args: [MAT_LEGACY_DIALOG_DATA]
|
|
267
272
|
}] }]; }, propDecorators: { data: [{
|
|
268
273
|
type: Output
|
|
269
274
|
}] } });
|
|
270
275
|
|
|
271
276
|
class ImageCropModule {
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
ImageCropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageCropModule, declarations: [ImageCropComponent], imports: [CommonModule,
|
|
275
|
-
ImageCropperModule,
|
|
276
|
-
MatIconModule,
|
|
277
|
-
MatButtonModule,
|
|
278
|
-
MatDialogModule,
|
|
279
|
-
MatToolbarModule,
|
|
280
|
-
MatDialogModule,
|
|
281
|
-
MatCardModule,
|
|
282
|
-
MatTooltipModule,
|
|
283
|
-
MatSliderModule], exports: [ImageCropComponent] });
|
|
284
|
-
ImageCropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageCropModule, imports: [[
|
|
285
|
-
CommonModule,
|
|
277
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageCropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
278
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ImageCropModule, declarations: [ImageCropComponent], imports: [CommonModule,
|
|
286
279
|
ImageCropperModule,
|
|
287
280
|
MatIconModule,
|
|
288
|
-
|
|
289
|
-
|
|
281
|
+
MatLegacyButtonModule,
|
|
282
|
+
MatLegacyDialogModule,
|
|
290
283
|
MatToolbarModule,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
284
|
+
MatLegacyDialogModule,
|
|
285
|
+
MatLegacyCardModule,
|
|
286
|
+
MatLegacyTooltipModule,
|
|
287
|
+
MatLegacySliderModule], exports: [ImageCropComponent] }); }
|
|
288
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageCropModule, imports: [CommonModule,
|
|
289
|
+
ImageCropperModule,
|
|
290
|
+
MatIconModule,
|
|
291
|
+
MatLegacyButtonModule,
|
|
292
|
+
MatLegacyDialogModule,
|
|
293
|
+
MatToolbarModule,
|
|
294
|
+
MatLegacyDialogModule,
|
|
295
|
+
MatLegacyCardModule,
|
|
296
|
+
MatLegacyTooltipModule,
|
|
297
|
+
MatLegacySliderModule] }); }
|
|
298
|
+
}
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageCropModule, decorators: [{
|
|
297
300
|
type: NgModule,
|
|
298
301
|
args: [{
|
|
299
302
|
declarations: [ImageCropComponent],
|
|
@@ -301,16 +304,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
301
304
|
CommonModule,
|
|
302
305
|
ImageCropperModule,
|
|
303
306
|
MatIconModule,
|
|
304
|
-
|
|
305
|
-
|
|
307
|
+
MatLegacyButtonModule,
|
|
308
|
+
MatLegacyDialogModule,
|
|
306
309
|
MatToolbarModule,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
310
|
+
MatLegacyDialogModule,
|
|
311
|
+
MatLegacyCardModule,
|
|
312
|
+
MatLegacyTooltipModule,
|
|
313
|
+
MatLegacySliderModule,
|
|
311
314
|
],
|
|
312
|
-
exports: [ImageCropComponent]
|
|
313
|
-
entryComponents: [ImageCropComponent],
|
|
315
|
+
exports: [ImageCropComponent]
|
|
314
316
|
}]
|
|
315
317
|
}] });
|
|
316
318
|
|
|
@@ -881,13 +883,6 @@ var ScrollingStateEnum;
|
|
|
881
883
|
ScrollingStateEnum[ScrollingStateEnum["NoScrolling"] = 2] = "NoScrolling";
|
|
882
884
|
})(ScrollingStateEnum || (ScrollingStateEnum = {}));
|
|
883
885
|
class ClassChangeOnScrollDirective {
|
|
884
|
-
constructor() {
|
|
885
|
-
this.wsClassOnScrollDirChange = 5000;
|
|
886
|
-
this.hasScrolledDown = false;
|
|
887
|
-
this.windowScrollSubscription = null;
|
|
888
|
-
this.lastScreenTop = 0;
|
|
889
|
-
this.currState = ScrollingStateEnum.NoScrolling;
|
|
890
|
-
}
|
|
891
886
|
get isScrollingDown() {
|
|
892
887
|
return this.currState === ScrollingStateEnum.ScrollingDown;
|
|
893
888
|
}
|
|
@@ -897,6 +892,13 @@ class ClassChangeOnScrollDirective {
|
|
|
897
892
|
get isNotScrolling() {
|
|
898
893
|
return this.currState === ScrollingStateEnum.NoScrolling;
|
|
899
894
|
}
|
|
895
|
+
constructor() {
|
|
896
|
+
this.wsClassOnScrollDirChange = 5000;
|
|
897
|
+
this.hasScrolledDown = false;
|
|
898
|
+
this.windowScrollSubscription = null;
|
|
899
|
+
this.lastScreenTop = 0;
|
|
900
|
+
this.currState = ScrollingStateEnum.NoScrolling;
|
|
901
|
+
}
|
|
900
902
|
ngOnInit() {
|
|
901
903
|
this.windowScrollSubscription = fromEvent(window, 'scroll')
|
|
902
904
|
.pipe(debounceTime(50))
|
|
@@ -933,10 +935,10 @@ class ClassChangeOnScrollDirective {
|
|
|
933
935
|
this.setScrollState();
|
|
934
936
|
}, this.wsClassOnScrollDirChange || 5000);
|
|
935
937
|
}
|
|
938
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
939
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ClassChangeOnScrollDirective, selector: "[wsUtilsClassChangeOnScroll]", inputs: { wsClassOnScrollDirChange: "wsClassOnScrollDirChange" }, host: { properties: { "class.scrolling-down": "this.isScrollingDown", "class.scrolling-up": "this.isScrollingUp", "class.scrolling-no": "this.isNotScrolling", "class.scrolled-down": "this.hasScrolledDown" } }, ngImport: i0 }); }
|
|
936
940
|
}
|
|
937
|
-
|
|
938
|
-
ClassChangeOnScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: ClassChangeOnScrollDirective, selector: "[wsUtilsClassChangeOnScroll]", inputs: { wsClassOnScrollDirChange: "wsClassOnScrollDirChange" }, host: { properties: { "class.scrolling-down": "this.isScrollingDown", "class.scrolling-up": "this.isScrollingUp", "class.scrolling-no": "this.isNotScrolling", "class.scrolled-down": "this.hasScrolledDown" } }, ngImport: i0 });
|
|
939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClassChangeOnScrollDirective, decorators: [{
|
|
941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollDirective, decorators: [{
|
|
940
942
|
type: Directive,
|
|
941
943
|
args: [{
|
|
942
944
|
selector: '[wsUtilsClassChangeOnScroll]',
|
|
@@ -958,13 +960,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
958
960
|
}] } });
|
|
959
961
|
|
|
960
962
|
class ClassChangeOnScrollModule {
|
|
963
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
964
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollModule, declarations: [ClassChangeOnScrollDirective], imports: [CommonModule], exports: [ClassChangeOnScrollDirective] }); }
|
|
965
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollModule, imports: [CommonModule] }); }
|
|
961
966
|
}
|
|
962
|
-
|
|
963
|
-
ClassChangeOnScrollModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClassChangeOnScrollModule, declarations: [ClassChangeOnScrollDirective], imports: [CommonModule], exports: [ClassChangeOnScrollDirective] });
|
|
964
|
-
ClassChangeOnScrollModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClassChangeOnScrollModule, imports: [[
|
|
965
|
-
CommonModule,
|
|
966
|
-
]] });
|
|
967
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClassChangeOnScrollModule, decorators: [{
|
|
967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollModule, decorators: [{
|
|
968
968
|
type: NgModule,
|
|
969
969
|
args: [{
|
|
970
970
|
declarations: [ClassChangeOnScrollDirective],
|
|
@@ -993,10 +993,10 @@ class DefaultThumbnailDirective {
|
|
|
993
993
|
this.srcUrl = this.src;
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
997
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DefaultThumbnailDirective, selector: "[wsUtilsDefaultThumbnail]", inputs: { wsUtilsDefaultThumbnail: "wsUtilsDefaultThumbnail", src: "src" }, host: { listeners: { "error": "updateSrc()" }, properties: { "src": "this.srcUrl" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
996
998
|
}
|
|
997
|
-
|
|
998
|
-
DefaultThumbnailDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: DefaultThumbnailDirective, selector: "[wsUtilsDefaultThumbnail]", inputs: { wsUtilsDefaultThumbnail: "wsUtilsDefaultThumbnail", src: "src" }, host: { listeners: { "error": "updateSrc()" }, properties: { "src": "this.srcUrl" } }, usesOnChanges: true, ngImport: i0 });
|
|
999
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DefaultThumbnailDirective, decorators: [{
|
|
999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailDirective, decorators: [{
|
|
1000
1000
|
type: Directive,
|
|
1001
1001
|
args: [{
|
|
1002
1002
|
selector: '[wsUtilsDefaultThumbnail]',
|
|
@@ -1014,13 +1014,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1014
1014
|
}] } });
|
|
1015
1015
|
|
|
1016
1016
|
class DefaultThumbnailModule {
|
|
1017
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1018
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailModule, declarations: [DefaultThumbnailDirective], imports: [CommonModule], exports: [DefaultThumbnailDirective] }); }
|
|
1019
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailModule, imports: [CommonModule] }); }
|
|
1017
1020
|
}
|
|
1018
|
-
|
|
1019
|
-
DefaultThumbnailModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DefaultThumbnailModule, declarations: [DefaultThumbnailDirective], imports: [CommonModule], exports: [DefaultThumbnailDirective] });
|
|
1020
|
-
DefaultThumbnailModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DefaultThumbnailModule, imports: [[
|
|
1021
|
-
CommonModule,
|
|
1022
|
-
]] });
|
|
1023
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DefaultThumbnailModule, decorators: [{
|
|
1021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailModule, decorators: [{
|
|
1024
1022
|
type: NgModule,
|
|
1025
1023
|
args: [{
|
|
1026
1024
|
declarations: [DefaultThumbnailDirective],
|
|
@@ -1098,10 +1096,10 @@ class ImageResponsiveDirective {
|
|
|
1098
1096
|
this.srcBindUrl = this.src[this.currentSize];
|
|
1099
1097
|
}
|
|
1100
1098
|
}
|
|
1099
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveDirective, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1100
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ImageResponsiveDirective, selector: "[wsUtilsImageResponsive]", inputs: { src: "src" }, host: { properties: { "src": "this.srcBindUrl" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
1101
1101
|
}
|
|
1102
|
-
|
|
1103
|
-
ImageResponsiveDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: ImageResponsiveDirective, selector: "[wsUtilsImageResponsive]", inputs: { src: "src" }, host: { properties: { "src": "this.srcBindUrl" } }, usesOnChanges: true, ngImport: i0 });
|
|
1104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageResponsiveDirective, decorators: [{
|
|
1102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveDirective, decorators: [{
|
|
1105
1103
|
type: Directive,
|
|
1106
1104
|
args: [{
|
|
1107
1105
|
selector: '[wsUtilsImageResponsive]',
|
|
@@ -1114,13 +1112,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1114
1112
|
}] } });
|
|
1115
1113
|
|
|
1116
1114
|
class ImageResponsiveModule {
|
|
1115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1116
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveModule, declarations: [ImageResponsiveDirective], imports: [CommonModule], exports: [ImageResponsiveDirective] }); }
|
|
1117
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveModule, imports: [CommonModule] }); }
|
|
1117
1118
|
}
|
|
1118
|
-
|
|
1119
|
-
ImageResponsiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageResponsiveModule, declarations: [ImageResponsiveDirective], imports: [CommonModule], exports: [ImageResponsiveDirective] });
|
|
1120
|
-
ImageResponsiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageResponsiveModule, imports: [[
|
|
1121
|
-
CommonModule,
|
|
1122
|
-
]] });
|
|
1123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageResponsiveModule, decorators: [{
|
|
1119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveModule, decorators: [{
|
|
1124
1120
|
type: NgModule,
|
|
1125
1121
|
args: [{
|
|
1126
1122
|
declarations: [ImageResponsiveDirective],
|
|
@@ -1177,10 +1173,10 @@ class InViewPortDirective {
|
|
|
1177
1173
|
}
|
|
1178
1174
|
this.inViewport.emit(event);
|
|
1179
1175
|
}
|
|
1176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InViewPortDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1177
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: InViewPortDirective, selector: "[wsUtilsInViewPort]", outputs: { inViewport: "inViewport" }, ngImport: i0 }); }
|
|
1180
1178
|
}
|
|
1181
|
-
|
|
1182
|
-
InViewPortDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: InViewPortDirective, selector: "[wsUtilsInViewPort]", outputs: { inViewport: "inViewport" }, ngImport: i0 });
|
|
1183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InViewPortDirective, decorators: [{
|
|
1179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InViewPortDirective, decorators: [{
|
|
1184
1180
|
type: Directive,
|
|
1185
1181
|
args: [{
|
|
1186
1182
|
selector: '[wsUtilsInViewPort]',
|
|
@@ -1190,13 +1186,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1190
1186
|
}] } });
|
|
1191
1187
|
|
|
1192
1188
|
class InViewPortModule {
|
|
1189
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InViewPortModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1190
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: InViewPortModule, declarations: [InViewPortDirective], imports: [CommonModule], exports: [InViewPortDirective] }); }
|
|
1191
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InViewPortModule, imports: [CommonModule] }); }
|
|
1193
1192
|
}
|
|
1194
|
-
|
|
1195
|
-
InViewPortModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InViewPortModule, declarations: [InViewPortDirective], imports: [CommonModule], exports: [InViewPortDirective] });
|
|
1196
|
-
InViewPortModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InViewPortModule, imports: [[
|
|
1197
|
-
CommonModule,
|
|
1198
|
-
]] });
|
|
1199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InViewPortModule, decorators: [{
|
|
1193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InViewPortModule, decorators: [{
|
|
1200
1194
|
type: NgModule,
|
|
1201
1195
|
args: [{
|
|
1202
1196
|
declarations: [InViewPortDirective],
|
|
@@ -1208,11 +1202,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1208
1202
|
}] });
|
|
1209
1203
|
|
|
1210
1204
|
class NavigationDirective {
|
|
1211
|
-
constructor() {
|
|
1212
|
-
this.wsUtilsNavigation = '';
|
|
1213
|
-
this.openInNewTab = false;
|
|
1214
|
-
this.routeUrl = '';
|
|
1215
|
-
}
|
|
1216
1205
|
onMouseEnter($event) {
|
|
1217
1206
|
if (this.openInNewTab || this.wsUtilsNavigation.includes('mailto')) {
|
|
1218
1207
|
$event.preventDefault();
|
|
@@ -1221,15 +1210,20 @@ class NavigationDirective {
|
|
|
1221
1210
|
window.open(this.wsUtilsNavigation);
|
|
1222
1211
|
}
|
|
1223
1212
|
}
|
|
1213
|
+
constructor() {
|
|
1214
|
+
this.wsUtilsNavigation = '';
|
|
1215
|
+
this.openInNewTab = false;
|
|
1216
|
+
this.routeUrl = '';
|
|
1217
|
+
}
|
|
1224
1218
|
ngOnChanges() {
|
|
1225
1219
|
if (this.openInNewTab || this.wsUtilsNavigation.includes('mailto')) {
|
|
1226
1220
|
this.routeUrl = './';
|
|
1227
1221
|
}
|
|
1228
1222
|
}
|
|
1223
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1224
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: NavigationDirective, selector: "[wsUtilsNavigation]", inputs: { wsUtilsNavigation: "wsUtilsNavigation", openInNewTab: "openInNewTab", routeUrl: "routeUrl" }, host: { listeners: { "mousedown": "onMouseEnter($event)" }, properties: { "attr.routerLink": "this.routeUrl" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
1229
1225
|
}
|
|
1230
|
-
|
|
1231
|
-
NavigationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: NavigationDirective, selector: "[wsUtilsNavigation]", inputs: { wsUtilsNavigation: "wsUtilsNavigation", openInNewTab: "openInNewTab", routeUrl: "routeUrl" }, host: { listeners: { "mousedown": "onMouseEnter($event)" }, properties: { "attr.routerLink": "this.routeUrl" } }, usesOnChanges: true, ngImport: i0 });
|
|
1232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NavigationDirective, decorators: [{
|
|
1226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationDirective, decorators: [{
|
|
1233
1227
|
type: Directive,
|
|
1234
1228
|
args: [{
|
|
1235
1229
|
selector: '[wsUtilsNavigation]',
|
|
@@ -1249,13 +1243,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1249
1243
|
}] } });
|
|
1250
1244
|
|
|
1251
1245
|
class NavigationModule {
|
|
1246
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1247
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, declarations: [NavigationDirective], imports: [CommonModule], exports: [NavigationDirective] }); }
|
|
1248
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, imports: [CommonModule] }); }
|
|
1252
1249
|
}
|
|
1253
|
-
|
|
1254
|
-
NavigationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NavigationModule, declarations: [NavigationDirective], imports: [CommonModule], exports: [NavigationDirective] });
|
|
1255
|
-
NavigationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NavigationModule, imports: [[
|
|
1256
|
-
CommonModule,
|
|
1257
|
-
]] });
|
|
1258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NavigationModule, decorators: [{
|
|
1250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, decorators: [{
|
|
1259
1251
|
type: NgModule,
|
|
1260
1252
|
args: [{
|
|
1261
1253
|
declarations: [NavigationDirective],
|
|
@@ -1268,10 +1260,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1268
1260
|
|
|
1269
1261
|
class PermissionDirective {
|
|
1270
1262
|
constructor() { }
|
|
1263
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PermissionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1264
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PermissionDirective, selector: "[wsUtilsPermission]", ngImport: i0 }); }
|
|
1271
1265
|
}
|
|
1272
|
-
|
|
1273
|
-
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: PermissionDirective, selector: "[wsUtilsPermission]", ngImport: i0 });
|
|
1274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
1266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
1275
1267
|
type: Directive,
|
|
1276
1268
|
args: [{
|
|
1277
1269
|
selector: '[wsUtilsPermission]',
|
|
@@ -1279,13 +1271,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1279
1271
|
}], ctorParameters: function () { return []; } });
|
|
1280
1272
|
|
|
1281
1273
|
class PermissionModule {
|
|
1274
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PermissionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1275
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PermissionModule, declarations: [PermissionDirective], imports: [CommonModule], exports: [PermissionDirective] }); }
|
|
1276
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PermissionModule, imports: [CommonModule] }); }
|
|
1282
1277
|
}
|
|
1283
|
-
|
|
1284
|
-
PermissionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PermissionModule, declarations: [PermissionDirective], imports: [CommonModule], exports: [PermissionDirective] });
|
|
1285
|
-
PermissionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PermissionModule, imports: [[
|
|
1286
|
-
CommonModule,
|
|
1287
|
-
]] });
|
|
1288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PermissionModule, decorators: [{
|
|
1278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PermissionModule, decorators: [{
|
|
1289
1279
|
type: NgModule,
|
|
1290
1280
|
args: [{
|
|
1291
1281
|
declarations: [PermissionDirective],
|
|
@@ -1376,16 +1366,12 @@ class HorizontalScrollerComponent {
|
|
|
1376
1366
|
}
|
|
1377
1367
|
}
|
|
1378
1368
|
}
|
|
1369
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1370
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HorizontalScrollerComponent, selector: "ws-utils-horizontal-scroller", inputs: { loadStatus: "loadStatus", onHover: "onHover" }, outputs: { loadNext: "loadNext" }, viewQueries: [{ propertyName: "horizontalScrollElem", first: true, predicate: ["horizontalScrollElem"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label name=\"content-backward-button\" mat-mini-fab color=\"primary\" (click)=\"showPrev()\"\r\n class=\"prevBtn hidden-touch border-radius-xs\" [hidden]=\"!enablePrev\" [ngClass]=\"{'prevBtnHover': onHover}\">\r\n <mat-icon>navigate_before</mat-icon>\r\n </button>\r\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\r\n <ng-content></ng-content>\r\n </div>\r\n <button i18n-aria-label name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\" color=\"primary\"\r\n class=\"nextBtn hidden-touch border-radius-xs\" [ngClass]=\"{'nextBtnHover': onHover}\"\r\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\r\n <mat-icon>navigate_next</mat-icon>\r\n </button>\r\n <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\r\n <mat-spinner></mat-spinner>\r\n </div>\r\n</section>", styles: [".horizontal-scroll-container{position:relative;width:100%;min-height:100px}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999}.border-radius-xs{border-radius:8px!important}.prevBtn{left:-16px}.nextBtn{right:-16px}.nextLoading{padding:0;right:-16px}.horizontal-scroll-content{overflow-x:auto;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatLegacyButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatLegacyProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }] }); }
|
|
1379
1371
|
}
|
|
1380
|
-
|
|
1381
|
-
HorizontalScrollerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: HorizontalScrollerComponent, selector: "ws-utils-horizontal-scroller", inputs: { loadStatus: "loadStatus", onHover: "onHover" }, outputs: { loadNext: "loadNext" }, viewQueries: [{ propertyName: "horizontalScrollElem", first: true, predicate: ["horizontalScrollElem"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label name=\"content-backward-button\" mat-mini-fab color=\"primary\" (click)=\"showPrev()\"\r\n class=\"prevBtn hidden-touch border-radius-xs\" [hidden]=\"!enablePrev\" [ngClass]=\"{'prevBtnHover': onHover}\">\r\n <mat-icon>navigate_before</mat-icon>\r\n </button>\r\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\r\n <ng-content></ng-content>\r\n </div>\r\n <button i18n-aria-label name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\" color=\"primary\"\r\n class=\"nextBtn hidden-touch border-radius-xs\" [ngClass]=\"{'nextBtnHover': onHover}\"\r\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\r\n <mat-icon>navigate_next</mat-icon>\r\n </button>\r\n <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\r\n <mat-spinner></mat-spinner>\r\n </div>\r\n</section>", styles: [".horizontal-scroll-container{position:relative;width:100%;min-height:100px}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999}.border-radius-xs{border-radius:8px!important}.prevBtn{left:-16px}.nextBtn{right:-16px}.nextLoading{padding:0;right:-16px}.horizontal-scroll-content{overflow-x:auto;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"], components: [{ type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3$1.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: HorizontalScrollerComponent, decorators: [{
|
|
1372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerComponent, decorators: [{
|
|
1383
1373
|
type: Component,
|
|
1384
|
-
args: [{
|
|
1385
|
-
selector: 'ws-utils-horizontal-scroller',
|
|
1386
|
-
templateUrl: './horizontal-scroller.component.html',
|
|
1387
|
-
styleUrls: ['./horizontal-scroller.component.scss'],
|
|
1388
|
-
}]
|
|
1374
|
+
args: [{ selector: 'ws-utils-horizontal-scroller', template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label name=\"content-backward-button\" mat-mini-fab color=\"primary\" (click)=\"showPrev()\"\r\n class=\"prevBtn hidden-touch border-radius-xs\" [hidden]=\"!enablePrev\" [ngClass]=\"{'prevBtnHover': onHover}\">\r\n <mat-icon>navigate_before</mat-icon>\r\n </button>\r\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\r\n <ng-content></ng-content>\r\n </div>\r\n <button i18n-aria-label name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\" color=\"primary\"\r\n class=\"nextBtn hidden-touch border-radius-xs\" [ngClass]=\"{'nextBtnHover': onHover}\"\r\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\r\n <mat-icon>navigate_next</mat-icon>\r\n </button>\r\n <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\r\n <mat-spinner></mat-spinner>\r\n </div>\r\n</section>", styles: [".horizontal-scroll-container{position:relative;width:100%;min-height:100px}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999}.border-radius-xs{border-radius:8px!important}.prevBtn{left:-16px}.nextBtn{right:-16px}.nextLoading{padding:0;right:-16px}.horizontal-scroll-content{overflow-x:auto;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"] }]
|
|
1389
1375
|
}], ctorParameters: function () { return []; }, propDecorators: { loadStatus: [{
|
|
1390
1376
|
type: Input
|
|
1391
1377
|
}], onHover: [{
|
|
@@ -1398,27 +1384,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1398
1384
|
}] } });
|
|
1399
1385
|
|
|
1400
1386
|
class HorizontalScrollerModule {
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
MatButtonModule,
|
|
1405
|
-
MatIconModule,
|
|
1406
|
-
MatProgressSpinnerModule], exports: [HorizontalScrollerComponent] });
|
|
1407
|
-
HorizontalScrollerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: HorizontalScrollerModule, imports: [[
|
|
1408
|
-
CommonModule,
|
|
1409
|
-
MatButtonModule,
|
|
1387
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1388
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerModule, declarations: [HorizontalScrollerComponent], imports: [CommonModule,
|
|
1389
|
+
MatLegacyButtonModule,
|
|
1410
1390
|
MatIconModule,
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1391
|
+
MatLegacyProgressSpinnerModule], exports: [HorizontalScrollerComponent] }); }
|
|
1392
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerModule, imports: [CommonModule,
|
|
1393
|
+
MatLegacyButtonModule,
|
|
1394
|
+
MatIconModule,
|
|
1395
|
+
MatLegacyProgressSpinnerModule] }); }
|
|
1396
|
+
}
|
|
1397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerModule, decorators: [{
|
|
1414
1398
|
type: NgModule,
|
|
1415
1399
|
args: [{
|
|
1416
1400
|
declarations: [HorizontalScrollerComponent],
|
|
1417
1401
|
imports: [
|
|
1418
1402
|
CommonModule,
|
|
1419
|
-
|
|
1403
|
+
MatLegacyButtonModule,
|
|
1420
1404
|
MatIconModule,
|
|
1421
|
-
|
|
1405
|
+
MatLegacyProgressSpinnerModule,
|
|
1422
1406
|
],
|
|
1423
1407
|
exports: [HorizontalScrollerComponent],
|
|
1424
1408
|
}]
|
|
@@ -1433,30 +1417,26 @@ class AuthKeycloakService {
|
|
|
1433
1417
|
get isLoggedIn$() {
|
|
1434
1418
|
return this.loginChangeSubject.asObservable();
|
|
1435
1419
|
}
|
|
1436
|
-
logout(_redirectUrl = this.defaultRedirectUrl) {
|
|
1437
|
-
|
|
1438
|
-
window.location.href = `${_redirectUrl}public/logout`;
|
|
1439
|
-
});
|
|
1420
|
+
async logout(_redirectUrl = this.defaultRedirectUrl) {
|
|
1421
|
+
window.location.href = `${_redirectUrl}public/logout`;
|
|
1440
1422
|
}
|
|
1441
|
-
force_logout() {
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
localStorage.clear();
|
|
1451
|
-
}
|
|
1452
|
-
catch (_a) {
|
|
1453
|
-
}
|
|
1454
|
-
window.location.href = `${this.defaultRedirectUrl}apis/reset`;
|
|
1423
|
+
async force_logout() {
|
|
1424
|
+
if (storage$1.getItem('telemetrySessionId')) {
|
|
1425
|
+
storage$1.removeItem('telemetrySessionId');
|
|
1426
|
+
}
|
|
1427
|
+
storage$1.removeItem(storageKey$1);
|
|
1428
|
+
if (localStorage.getItem('login') === 'true') {
|
|
1429
|
+
try {
|
|
1430
|
+
sessionStorage.clear();
|
|
1431
|
+
localStorage.clear();
|
|
1455
1432
|
}
|
|
1456
|
-
|
|
1457
|
-
window.location.href = `${this.defaultRedirectUrl}public/logout`;
|
|
1433
|
+
catch {
|
|
1458
1434
|
}
|
|
1459
|
-
|
|
1435
|
+
window.location.href = `${this.defaultRedirectUrl}apis/reset`;
|
|
1436
|
+
}
|
|
1437
|
+
else {
|
|
1438
|
+
window.location.href = `${this.defaultRedirectUrl}public/logout`;
|
|
1439
|
+
}
|
|
1460
1440
|
}
|
|
1461
1441
|
get defaultRedirectUrl() {
|
|
1462
1442
|
try {
|
|
@@ -1467,10 +1447,10 @@ class AuthKeycloakService {
|
|
|
1467
1447
|
return location.origin;
|
|
1468
1448
|
}
|
|
1469
1449
|
}
|
|
1450
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthKeycloakService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1451
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthKeycloakService, providedIn: 'root' }); }
|
|
1470
1452
|
}
|
|
1471
|
-
|
|
1472
|
-
AuthKeycloakService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AuthKeycloakService, providedIn: 'root' });
|
|
1473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AuthKeycloakService, decorators: [{
|
|
1453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthKeycloakService, decorators: [{
|
|
1474
1454
|
type: Injectable,
|
|
1475
1455
|
args: [{
|
|
1476
1456
|
providedIn: 'root',
|
|
@@ -1583,15 +1563,15 @@ class UtilityService {
|
|
|
1583
1563
|
});
|
|
1584
1564
|
return data;
|
|
1585
1565
|
}
|
|
1566
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UtilityService, deps: [{ token: i1$3.HttpClient }, { token: i2.Platform }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1567
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UtilityService, providedIn: 'root' }); }
|
|
1586
1568
|
}
|
|
1587
|
-
|
|
1588
|
-
UtilityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UtilityService, providedIn: 'root' });
|
|
1589
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UtilityService, decorators: [{
|
|
1569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UtilityService, decorators: [{
|
|
1590
1570
|
type: Injectable,
|
|
1591
1571
|
args: [{
|
|
1592
1572
|
providedIn: 'root',
|
|
1593
1573
|
}]
|
|
1594
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1574
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: i2.Platform }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
|
|
1595
1575
|
|
|
1596
1576
|
class LogoutComponent {
|
|
1597
1577
|
constructor(dialogRef, authSvc, configSvc, utilitySvc) {
|
|
@@ -1621,39 +1601,32 @@ class LogoutComponent {
|
|
|
1621
1601
|
}
|
|
1622
1602
|
return false;
|
|
1623
1603
|
}
|
|
1604
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogoutComponent, deps: [{ token: i1$1.MatLegacyDialogRef }, { token: AuthKeycloakService }, { token: ConfigurationsService }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1605
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LogoutComponent, selector: "ws-utils-logout", ngImport: i0, template: "<h1 mat-dialog-title i18n>Logout Now</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n Note: On logging out all the downloaded content will be deleted.\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n Are you sure?\r\n</div>\r\n<div mat-dialog-actions class=\"flex-row-reverse\">\r\n <button mat-flat-button color=\"warn\" [disabled]=\"disabled\" (click)=\"confirmed()\" i18n>\r\n Yes\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" [mat-dialog-close] cdkFocusInitial i18n>No</button>\r\n</div>", styles: [".hide-overflow{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatLegacyButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i1$1.MatLegacyDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$1.MatLegacyDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$1.MatLegacyDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$1.MatLegacyDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }] }); }
|
|
1624
1606
|
}
|
|
1625
|
-
|
|
1626
|
-
LogoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LogoutComponent, selector: "ws-utils-logout", ngImport: i0, template: "<h1 mat-dialog-title i18n>Logout Now</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n Note: On logging out all the downloaded content will be deleted.\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n Are you sure?\r\n</div>\r\n<div mat-dialog-actions class=\"flex-row-reverse\">\r\n <button mat-flat-button color=\"warn\" [disabled]=\"disabled\" (click)=\"confirmed()\" i18n>\r\n Yes\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" [mat-dialog-close] cdkFocusInitial i18n>No</button>\r\n</div>", styles: [".hide-overflow{overflow:hidden}\n"], components: [{ type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
1627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LogoutComponent, decorators: [{
|
|
1607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogoutComponent, decorators: [{
|
|
1628
1608
|
type: Component,
|
|
1629
|
-
args: [{
|
|
1630
|
-
|
|
1631
|
-
templateUrl: './logout.component.html',
|
|
1632
|
-
styleUrls: ['./logout.component.scss'],
|
|
1633
|
-
}]
|
|
1634
|
-
}], ctorParameters: function () { return [{ type: i1$1.MatDialogRef }, { type: AuthKeycloakService }, { type: ConfigurationsService }, { type: UtilityService }]; } });
|
|
1609
|
+
args: [{ selector: 'ws-utils-logout', template: "<h1 mat-dialog-title i18n>Logout Now</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n Note: On logging out all the downloaded content will be deleted.\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n Are you sure?\r\n</div>\r\n<div mat-dialog-actions class=\"flex-row-reverse\">\r\n <button mat-flat-button color=\"warn\" [disabled]=\"disabled\" (click)=\"confirmed()\" i18n>\r\n Yes\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" [mat-dialog-close] cdkFocusInitial i18n>No</button>\r\n</div>", styles: [".hide-overflow{overflow:hidden}\n"] }]
|
|
1610
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatLegacyDialogRef }, { type: AuthKeycloakService }, { type: ConfigurationsService }, { type: UtilityService }]; } });
|
|
1635
1611
|
|
|
1636
1612
|
class LogoutModule {
|
|
1613
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1614
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: LogoutModule, declarations: [LogoutComponent], imports: [CommonModule,
|
|
1615
|
+
MatLegacyButtonModule,
|
|
1616
|
+
MatLegacyDialogModule] }); }
|
|
1617
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogoutModule, imports: [CommonModule,
|
|
1618
|
+
MatLegacyButtonModule,
|
|
1619
|
+
MatLegacyDialogModule] }); }
|
|
1637
1620
|
}
|
|
1638
|
-
|
|
1639
|
-
LogoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LogoutModule, declarations: [LogoutComponent], imports: [CommonModule,
|
|
1640
|
-
MatButtonModule,
|
|
1641
|
-
MatDialogModule] });
|
|
1642
|
-
LogoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LogoutModule, imports: [[
|
|
1643
|
-
CommonModule,
|
|
1644
|
-
MatButtonModule,
|
|
1645
|
-
MatDialogModule,
|
|
1646
|
-
]] });
|
|
1647
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LogoutModule, decorators: [{
|
|
1621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogoutModule, decorators: [{
|
|
1648
1622
|
type: NgModule,
|
|
1649
1623
|
args: [{
|
|
1650
1624
|
declarations: [LogoutComponent],
|
|
1651
1625
|
imports: [
|
|
1652
1626
|
CommonModule,
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
]
|
|
1656
|
-
entryComponents: [LogoutComponent],
|
|
1627
|
+
MatLegacyButtonModule,
|
|
1628
|
+
MatLegacyDialogModule,
|
|
1629
|
+
]
|
|
1657
1630
|
}]
|
|
1658
1631
|
}] });
|
|
1659
1632
|
|
|
@@ -1702,10 +1675,10 @@ class PipeConciseDateRangePipe {
|
|
|
1702
1675
|
return `${dateRange.fromDate} - ${dateRange.toDate}`;
|
|
1703
1676
|
}
|
|
1704
1677
|
}
|
|
1678
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1679
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangePipe, name: "pipeConciseDateRange" }); }
|
|
1705
1680
|
}
|
|
1706
|
-
|
|
1707
|
-
PipeConciseDateRangePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangePipe, name: "pipeConciseDateRange" });
|
|
1708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangePipe, decorators: [{
|
|
1681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangePipe, decorators: [{
|
|
1709
1682
|
type: Pipe,
|
|
1710
1683
|
args: [{
|
|
1711
1684
|
name: 'pipeConciseDateRange',
|
|
@@ -1713,11 +1686,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1713
1686
|
}] });
|
|
1714
1687
|
|
|
1715
1688
|
class PipeConciseDateRangeModule {
|
|
1689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1690
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangeModule, declarations: [PipeConciseDateRangePipe], imports: [CommonModule], exports: [PipeConciseDateRangePipe] }); }
|
|
1691
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangeModule, imports: [CommonModule] }); }
|
|
1716
1692
|
}
|
|
1717
|
-
|
|
1718
|
-
PipeConciseDateRangeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangeModule, declarations: [PipeConciseDateRangePipe], imports: [CommonModule], exports: [PipeConciseDateRangePipe] });
|
|
1719
|
-
PipeConciseDateRangeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangeModule, imports: [[CommonModule]] });
|
|
1720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangeModule, decorators: [{
|
|
1693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangeModule, decorators: [{
|
|
1721
1694
|
type: NgModule,
|
|
1722
1695
|
args: [{
|
|
1723
1696
|
declarations: [PipeConciseDateRangePipe],
|
|
@@ -1751,10 +1724,10 @@ class PipeCountTransformPipe {
|
|
|
1751
1724
|
}
|
|
1752
1725
|
return '0';
|
|
1753
1726
|
}
|
|
1727
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1728
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformPipe, name: "pipeCountTransform" }); }
|
|
1754
1729
|
}
|
|
1755
|
-
|
|
1756
|
-
PipeCountTransformPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformPipe, name: "pipeCountTransform" });
|
|
1757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformPipe, decorators: [{
|
|
1730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformPipe, decorators: [{
|
|
1758
1731
|
type: Pipe,
|
|
1759
1732
|
args: [{
|
|
1760
1733
|
name: 'pipeCountTransform',
|
|
@@ -1762,13 +1735,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1762
1735
|
}] });
|
|
1763
1736
|
|
|
1764
1737
|
class PipeCountTransformModule {
|
|
1738
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1739
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformModule, declarations: [PipeCountTransformPipe], imports: [CommonModule], exports: [PipeCountTransformPipe] }); }
|
|
1740
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformModule, imports: [CommonModule] }); }
|
|
1765
1741
|
}
|
|
1766
|
-
|
|
1767
|
-
PipeCountTransformModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformModule, declarations: [PipeCountTransformPipe], imports: [CommonModule], exports: [PipeCountTransformPipe] });
|
|
1768
|
-
PipeCountTransformModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformModule, imports: [[
|
|
1769
|
-
CommonModule,
|
|
1770
|
-
]] });
|
|
1771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformModule, decorators: [{
|
|
1742
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformModule, decorators: [{
|
|
1772
1743
|
type: NgModule,
|
|
1773
1744
|
args: [{
|
|
1774
1745
|
declarations: [PipeCountTransformPipe],
|
|
@@ -1803,10 +1774,10 @@ class PipeDateConcatPipe {
|
|
|
1803
1774
|
}
|
|
1804
1775
|
return dateStr;
|
|
1805
1776
|
}
|
|
1777
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1778
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatPipe, name: "pipeDateConcat" }); }
|
|
1806
1779
|
}
|
|
1807
|
-
|
|
1808
|
-
PipeDateConcatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatPipe, name: "pipeDateConcat" });
|
|
1809
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatPipe, decorators: [{
|
|
1780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatPipe, decorators: [{
|
|
1810
1781
|
type: Pipe,
|
|
1811
1782
|
args: [{
|
|
1812
1783
|
name: 'pipeDateConcat',
|
|
@@ -1814,13 +1785,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1814
1785
|
}], ctorParameters: function () { return []; } });
|
|
1815
1786
|
|
|
1816
1787
|
class PipeDateConcatModule {
|
|
1788
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1789
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatModule, declarations: [PipeDateConcatPipe], imports: [CommonModule], exports: [PipeDateConcatPipe] }); }
|
|
1790
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatModule, imports: [CommonModule] }); }
|
|
1817
1791
|
}
|
|
1818
|
-
|
|
1819
|
-
PipeDateConcatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatModule, declarations: [PipeDateConcatPipe], imports: [CommonModule], exports: [PipeDateConcatPipe] });
|
|
1820
|
-
PipeDateConcatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatModule, imports: [[
|
|
1821
|
-
CommonModule,
|
|
1822
|
-
]] });
|
|
1823
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatModule, decorators: [{
|
|
1792
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatModule, decorators: [{
|
|
1824
1793
|
type: NgModule,
|
|
1825
1794
|
args: [{
|
|
1826
1795
|
declarations: [PipeDateConcatPipe],
|
|
@@ -1883,10 +1852,10 @@ class PipeDurationTransformPipe {
|
|
|
1883
1852
|
duration += s > 0 ? s.toString().padStart(2) : '00';
|
|
1884
1853
|
return duration;
|
|
1885
1854
|
}
|
|
1855
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1856
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformPipe, name: "pipeDurationTransform" }); }
|
|
1886
1857
|
}
|
|
1887
|
-
|
|
1888
|
-
PipeDurationTransformPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformPipe, name: "pipeDurationTransform" });
|
|
1889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformPipe, decorators: [{
|
|
1858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformPipe, decorators: [{
|
|
1890
1859
|
type: Pipe,
|
|
1891
1860
|
args: [{
|
|
1892
1861
|
name: 'pipeDurationTransform',
|
|
@@ -1894,13 +1863,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1894
1863
|
}] });
|
|
1895
1864
|
|
|
1896
1865
|
class PipeDurationTransformModule {
|
|
1866
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1867
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformModule, declarations: [PipeDurationTransformPipe], imports: [CommonModule], exports: [PipeDurationTransformPipe] }); }
|
|
1868
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformModule, imports: [CommonModule] }); }
|
|
1897
1869
|
}
|
|
1898
|
-
|
|
1899
|
-
PipeDurationTransformModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformModule, declarations: [PipeDurationTransformPipe], imports: [CommonModule], exports: [PipeDurationTransformPipe] });
|
|
1900
|
-
PipeDurationTransformModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformModule, imports: [[
|
|
1901
|
-
CommonModule,
|
|
1902
|
-
]] });
|
|
1903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformModule, decorators: [{
|
|
1870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformModule, decorators: [{
|
|
1904
1871
|
type: NgModule,
|
|
1905
1872
|
args: [{
|
|
1906
1873
|
declarations: [PipeDurationTransformPipe],
|
|
@@ -1915,10 +1882,10 @@ class PipeHtmlTagRemovalPipe {
|
|
|
1915
1882
|
transform(htmlString) {
|
|
1916
1883
|
return htmlString ? String(htmlString).replace(/<[^>]+>/gm, '') : '';
|
|
1917
1884
|
}
|
|
1885
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1886
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalPipe, name: "pipeHtmlTagRemoval" }); }
|
|
1918
1887
|
}
|
|
1919
|
-
|
|
1920
|
-
PipeHtmlTagRemovalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalPipe, name: "pipeHtmlTagRemoval" });
|
|
1921
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalPipe, decorators: [{
|
|
1888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalPipe, decorators: [{
|
|
1922
1889
|
type: Pipe,
|
|
1923
1890
|
args: [{
|
|
1924
1891
|
name: 'pipeHtmlTagRemoval',
|
|
@@ -1926,13 +1893,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1926
1893
|
}] });
|
|
1927
1894
|
|
|
1928
1895
|
class PipeHtmlTagRemovalModule {
|
|
1896
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1897
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalModule, declarations: [PipeHtmlTagRemovalPipe], imports: [CommonModule], exports: [PipeHtmlTagRemovalPipe] }); }
|
|
1898
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalModule, imports: [CommonModule] }); }
|
|
1929
1899
|
}
|
|
1930
|
-
|
|
1931
|
-
PipeHtmlTagRemovalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalModule, declarations: [PipeHtmlTagRemovalPipe], imports: [CommonModule], exports: [PipeHtmlTagRemovalPipe] });
|
|
1932
|
-
PipeHtmlTagRemovalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalModule, imports: [[
|
|
1933
|
-
CommonModule,
|
|
1934
|
-
]] });
|
|
1935
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalModule, decorators: [{
|
|
1900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalModule, decorators: [{
|
|
1936
1901
|
type: NgModule,
|
|
1937
1902
|
args: [{
|
|
1938
1903
|
declarations: [PipeHtmlTagRemovalPipe],
|
|
@@ -1951,10 +1916,10 @@ class PipeFilterPipe {
|
|
|
1951
1916
|
return (value || []).filter((item) => keys.split(',')
|
|
1952
1917
|
.some(key => item.hasOwnProperty(key) && new RegExp(`^${term}$`, 'gi').test(item[key])));
|
|
1953
1918
|
}
|
|
1919
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1920
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterPipe, name: "pipeFilter" }); }
|
|
1954
1921
|
}
|
|
1955
|
-
|
|
1956
|
-
PipeFilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterPipe, name: "pipeFilter" });
|
|
1957
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterPipe, decorators: [{
|
|
1922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterPipe, decorators: [{
|
|
1958
1923
|
type: Pipe,
|
|
1959
1924
|
args: [{
|
|
1960
1925
|
name: 'pipeFilter',
|
|
@@ -1962,13 +1927,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1962
1927
|
}] });
|
|
1963
1928
|
|
|
1964
1929
|
class PipeFilterModule {
|
|
1930
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1931
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterModule, declarations: [PipeFilterPipe], imports: [CommonModule], exports: [PipeFilterPipe] }); }
|
|
1932
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterModule, imports: [CommonModule] }); }
|
|
1965
1933
|
}
|
|
1966
|
-
|
|
1967
|
-
PipeFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterModule, declarations: [PipeFilterPipe], imports: [CommonModule], exports: [PipeFilterPipe] });
|
|
1968
|
-
PipeFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterModule, imports: [[
|
|
1969
|
-
CommonModule,
|
|
1970
|
-
]] });
|
|
1971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterModule, decorators: [{
|
|
1934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterModule, decorators: [{
|
|
1972
1935
|
type: NgModule,
|
|
1973
1936
|
args: [{
|
|
1974
1937
|
declarations: [PipeFilterPipe],
|
|
@@ -2001,10 +1964,10 @@ class PipeFilterSearchPipe {
|
|
|
2001
1964
|
return it.title.toLowerCase().includes(searchTextLowerCase);
|
|
2002
1965
|
});
|
|
2003
1966
|
}
|
|
1967
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1968
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchPipe, name: "pipeFilterSearch" }); }
|
|
2004
1969
|
}
|
|
2005
|
-
|
|
2006
|
-
PipeFilterSearchPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchPipe, name: "pipeFilterSearch" });
|
|
2007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchPipe, decorators: [{
|
|
1970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchPipe, decorators: [{
|
|
2008
1971
|
type: Pipe,
|
|
2009
1972
|
args: [{
|
|
2010
1973
|
name: 'pipeFilterSearch',
|
|
@@ -2012,13 +1975,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2012
1975
|
}] });
|
|
2013
1976
|
|
|
2014
1977
|
class PipeFilterSearchModule {
|
|
1978
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1979
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchModule, declarations: [PipeFilterSearchPipe], imports: [CommonModule], exports: [PipeFilterSearchPipe] }); }
|
|
1980
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchModule, imports: [CommonModule] }); }
|
|
2015
1981
|
}
|
|
2016
|
-
|
|
2017
|
-
PipeFilterSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchModule, declarations: [PipeFilterSearchPipe], imports: [CommonModule], exports: [PipeFilterSearchPipe] });
|
|
2018
|
-
PipeFilterSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchModule, imports: [[
|
|
2019
|
-
CommonModule,
|
|
2020
|
-
]] });
|
|
2021
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchModule, decorators: [{
|
|
1982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchModule, decorators: [{
|
|
2022
1983
|
type: NgModule,
|
|
2023
1984
|
args: [{
|
|
2024
1985
|
declarations: [PipeFilterSearchPipe],
|
|
@@ -2038,10 +1999,10 @@ class PipeListFilterPipe {
|
|
|
2038
1999
|
.some(key => item.hasOwnProperty(key)
|
|
2039
2000
|
&& item[key] && (`${item[key]} `).toLocaleLowerCase().includes(term.toLocaleLowerCase())));
|
|
2040
2001
|
}
|
|
2002
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2003
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterPipe, name: "pipeListFilter" }); }
|
|
2041
2004
|
}
|
|
2042
|
-
|
|
2043
|
-
PipeListFilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterPipe, name: "pipeListFilter" });
|
|
2044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterPipe, decorators: [{
|
|
2005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterPipe, decorators: [{
|
|
2045
2006
|
type: Pipe,
|
|
2046
2007
|
args: [{
|
|
2047
2008
|
name: 'pipeListFilter',
|
|
@@ -2049,13 +2010,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2049
2010
|
}] });
|
|
2050
2011
|
|
|
2051
2012
|
class PipeListFilterModule {
|
|
2013
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2014
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterModule, declarations: [PipeListFilterPipe], imports: [CommonModule], exports: [PipeListFilterPipe] }); }
|
|
2015
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterModule, imports: [CommonModule] }); }
|
|
2052
2016
|
}
|
|
2053
|
-
|
|
2054
|
-
PipeListFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterModule, declarations: [PipeListFilterPipe], imports: [CommonModule], exports: [PipeListFilterPipe] });
|
|
2055
|
-
PipeListFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterModule, imports: [[
|
|
2056
|
-
CommonModule,
|
|
2057
|
-
]] });
|
|
2058
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterModule, decorators: [{
|
|
2017
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterModule, decorators: [{
|
|
2059
2018
|
type: NgModule,
|
|
2060
2019
|
args: [{
|
|
2061
2020
|
declarations: [PipeListFilterPipe],
|
|
@@ -2074,10 +2033,10 @@ class PipeRelativeTimePipe {
|
|
|
2074
2033
|
}
|
|
2075
2034
|
return moment$1().startOf('hour').fromNow();
|
|
2076
2035
|
}
|
|
2036
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2037
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimePipe, name: "pipeRelativeTime" }); }
|
|
2077
2038
|
}
|
|
2078
|
-
|
|
2079
|
-
PipeRelativeTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimePipe, name: "pipeRelativeTime" });
|
|
2080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimePipe, decorators: [{
|
|
2039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimePipe, decorators: [{
|
|
2081
2040
|
type: Pipe,
|
|
2082
2041
|
args: [{
|
|
2083
2042
|
name: 'pipeRelativeTime',
|
|
@@ -2085,13 +2044,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2085
2044
|
}] });
|
|
2086
2045
|
|
|
2087
2046
|
class PipeRelativeTimeModule {
|
|
2047
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2048
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimeModule, declarations: [PipeRelativeTimePipe], imports: [CommonModule], exports: [PipeRelativeTimePipe] }); }
|
|
2049
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimeModule, imports: [CommonModule] }); }
|
|
2088
2050
|
}
|
|
2089
|
-
|
|
2090
|
-
PipeRelativeTimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimeModule, declarations: [PipeRelativeTimePipe], imports: [CommonModule], exports: [PipeRelativeTimePipe] });
|
|
2091
|
-
PipeRelativeTimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimeModule, imports: [[
|
|
2092
|
-
CommonModule,
|
|
2093
|
-
]] });
|
|
2094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimeModule, decorators: [{
|
|
2051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimeModule, decorators: [{
|
|
2095
2052
|
type: NgModule,
|
|
2096
2053
|
args: [{
|
|
2097
2054
|
declarations: [PipeRelativeTimePipe],
|
|
@@ -2106,10 +2063,10 @@ class OrderByPipe {
|
|
|
2106
2063
|
constructor() {
|
|
2107
2064
|
this.transform = orderBy;
|
|
2108
2065
|
}
|
|
2066
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OrderByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2067
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: OrderByPipe, name: "orderBy" }); }
|
|
2109
2068
|
}
|
|
2110
|
-
|
|
2111
|
-
OrderByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OrderByPipe, name: "orderBy" });
|
|
2112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OrderByPipe, decorators: [{
|
|
2069
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OrderByPipe, decorators: [{
|
|
2113
2070
|
type: Pipe,
|
|
2114
2071
|
args: [{
|
|
2115
2072
|
name: 'orderBy',
|
|
@@ -2117,13 +2074,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2117
2074
|
}] });
|
|
2118
2075
|
|
|
2119
2076
|
class PipeOrderByModule {
|
|
2077
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrderByModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2078
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeOrderByModule, declarations: [OrderByPipe], imports: [CommonModule], exports: [OrderByPipe] }); }
|
|
2079
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrderByModule, imports: [CommonModule] }); }
|
|
2120
2080
|
}
|
|
2121
|
-
|
|
2122
|
-
PipeOrderByModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeOrderByModule, declarations: [OrderByPipe], imports: [CommonModule], exports: [OrderByPipe] });
|
|
2123
|
-
PipeOrderByModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeOrderByModule, imports: [[
|
|
2124
|
-
CommonModule,
|
|
2125
|
-
]] });
|
|
2126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeOrderByModule, decorators: [{
|
|
2081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrderByModule, decorators: [{
|
|
2127
2082
|
type: NgModule,
|
|
2128
2083
|
args: [{
|
|
2129
2084
|
declarations: [OrderByPipe],
|
|
@@ -2151,10 +2106,10 @@ class PipeLimitToPipe {
|
|
|
2151
2106
|
}
|
|
2152
2107
|
return null;
|
|
2153
2108
|
}
|
|
2109
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2110
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToPipe, name: "pipeLimitTo" }); }
|
|
2154
2111
|
}
|
|
2155
|
-
|
|
2156
|
-
PipeLimitToPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToPipe, name: "pipeLimitTo" });
|
|
2157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToPipe, decorators: [{
|
|
2112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToPipe, decorators: [{
|
|
2158
2113
|
type: Pipe,
|
|
2159
2114
|
args: [{
|
|
2160
2115
|
name: 'pipeLimitTo',
|
|
@@ -2162,13 +2117,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2162
2117
|
}] });
|
|
2163
2118
|
|
|
2164
2119
|
class PipeLimitToModule {
|
|
2120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2121
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToModule, declarations: [PipeLimitToPipe], imports: [CommonModule], exports: [PipeLimitToPipe] }); }
|
|
2122
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToModule, imports: [CommonModule] }); }
|
|
2165
2123
|
}
|
|
2166
|
-
|
|
2167
|
-
PipeLimitToModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToModule, declarations: [PipeLimitToPipe], imports: [CommonModule], exports: [PipeLimitToPipe] });
|
|
2168
|
-
PipeLimitToModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToModule, imports: [[
|
|
2169
|
-
CommonModule,
|
|
2170
|
-
]] });
|
|
2171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToModule, decorators: [{
|
|
2124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToModule, decorators: [{
|
|
2172
2125
|
type: NgModule,
|
|
2173
2126
|
args: [{
|
|
2174
2127
|
declarations: [PipeLimitToPipe],
|
|
@@ -2196,10 +2149,10 @@ class PipeNameTransformPipe {
|
|
|
2196
2149
|
}
|
|
2197
2150
|
return 'Anonymous User';
|
|
2198
2151
|
}
|
|
2152
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2153
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformPipe, name: "pipeNameTransform" }); }
|
|
2199
2154
|
}
|
|
2200
|
-
|
|
2201
|
-
PipeNameTransformPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformPipe, name: "pipeNameTransform" });
|
|
2202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformPipe, decorators: [{
|
|
2155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformPipe, decorators: [{
|
|
2203
2156
|
type: Pipe,
|
|
2204
2157
|
args: [{
|
|
2205
2158
|
name: 'pipeNameTransform',
|
|
@@ -2207,13 +2160,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2207
2160
|
}] });
|
|
2208
2161
|
|
|
2209
2162
|
class PipeNameTransformModule {
|
|
2163
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2164
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformModule, declarations: [PipeNameTransformPipe], imports: [CommonModule], exports: [PipeNameTransformPipe] }); }
|
|
2165
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformModule, imports: [CommonModule] }); }
|
|
2210
2166
|
}
|
|
2211
|
-
|
|
2212
|
-
PipeNameTransformModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformModule, declarations: [PipeNameTransformPipe], imports: [CommonModule], exports: [PipeNameTransformPipe] });
|
|
2213
|
-
PipeNameTransformModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformModule, imports: [[
|
|
2214
|
-
CommonModule,
|
|
2215
|
-
]] });
|
|
2216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformModule, decorators: [{
|
|
2167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformModule, decorators: [{
|
|
2217
2168
|
type: NgModule,
|
|
2218
2169
|
args: [{
|
|
2219
2170
|
declarations: [PipeNameTransformPipe],
|
|
@@ -2234,10 +2185,10 @@ class PipePartialContentPipe {
|
|
|
2234
2185
|
}
|
|
2235
2186
|
return result;
|
|
2236
2187
|
}
|
|
2188
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2189
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentPipe, name: "pipePartialContent" }); }
|
|
2237
2190
|
}
|
|
2238
|
-
|
|
2239
|
-
PipePartialContentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentPipe, name: "pipePartialContent" });
|
|
2240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentPipe, decorators: [{
|
|
2191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentPipe, decorators: [{
|
|
2241
2192
|
type: Pipe,
|
|
2242
2193
|
args: [{
|
|
2243
2194
|
name: 'pipePartialContent',
|
|
@@ -2245,13 +2196,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2245
2196
|
}] });
|
|
2246
2197
|
|
|
2247
2198
|
class PipePartialContentModule {
|
|
2199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2200
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentModule, declarations: [PipePartialContentPipe], imports: [CommonModule], exports: [PipePartialContentPipe] }); }
|
|
2201
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentModule, imports: [CommonModule] }); }
|
|
2248
2202
|
}
|
|
2249
|
-
|
|
2250
|
-
PipePartialContentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentModule, declarations: [PipePartialContentPipe], imports: [CommonModule], exports: [PipePartialContentPipe] });
|
|
2251
|
-
PipePartialContentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentModule, imports: [[
|
|
2252
|
-
CommonModule,
|
|
2253
|
-
]] });
|
|
2254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentModule, decorators: [{
|
|
2203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentModule, decorators: [{
|
|
2255
2204
|
type: NgModule,
|
|
2256
2205
|
args: [{
|
|
2257
2206
|
declarations: [PipePartialContentPipe],
|
|
@@ -2282,24 +2231,22 @@ class PipeSafeSanitizerPipe {
|
|
|
2282
2231
|
throw new Error(`Invalid safe type specified: ${type}`);
|
|
2283
2232
|
}
|
|
2284
2233
|
}
|
|
2234
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2235
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerPipe, name: "pipeSafeSanitizer" }); }
|
|
2285
2236
|
}
|
|
2286
|
-
|
|
2287
|
-
PipeSafeSanitizerPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerPipe, name: "pipeSafeSanitizer" });
|
|
2288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerPipe, decorators: [{
|
|
2237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerPipe, decorators: [{
|
|
2289
2238
|
type: Pipe,
|
|
2290
2239
|
args: [{
|
|
2291
2240
|
name: 'pipeSafeSanitizer',
|
|
2292
2241
|
}]
|
|
2293
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
2242
|
+
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
2294
2243
|
|
|
2295
2244
|
class PipeSafeSanitizerModule {
|
|
2245
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2246
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerModule, declarations: [PipeSafeSanitizerPipe], imports: [CommonModule], exports: [PipeSafeSanitizerPipe] }); }
|
|
2247
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerModule, imports: [CommonModule] }); }
|
|
2296
2248
|
}
|
|
2297
|
-
|
|
2298
|
-
PipeSafeSanitizerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerModule, declarations: [PipeSafeSanitizerPipe], imports: [CommonModule], exports: [PipeSafeSanitizerPipe] });
|
|
2299
|
-
PipeSafeSanitizerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerModule, imports: [[
|
|
2300
|
-
CommonModule,
|
|
2301
|
-
]] });
|
|
2302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerModule, decorators: [{
|
|
2249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerModule, decorators: [{
|
|
2303
2250
|
type: NgModule,
|
|
2304
2251
|
args: [{
|
|
2305
2252
|
declarations: [PipeSafeSanitizerPipe],
|
|
@@ -2369,15 +2316,15 @@ class ExploreDetailResolve {
|
|
|
2369
2316
|
});
|
|
2370
2317
|
return pageData;
|
|
2371
2318
|
}
|
|
2319
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExploreDetailResolve, deps: [{ token: i1$3.HttpClient }, { token: ConfigurationsService }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2320
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExploreDetailResolve, providedIn: 'root' }); }
|
|
2372
2321
|
}
|
|
2373
|
-
|
|
2374
|
-
ExploreDetailResolve.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExploreDetailResolve, providedIn: 'root' });
|
|
2375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExploreDetailResolve, decorators: [{
|
|
2322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExploreDetailResolve, decorators: [{
|
|
2376
2323
|
type: Injectable,
|
|
2377
2324
|
args: [{
|
|
2378
2325
|
providedIn: 'root',
|
|
2379
2326
|
}]
|
|
2380
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
2327
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: ConfigurationsService }, { type: UtilityService }]; } });
|
|
2381
2328
|
|
|
2382
2329
|
class MarketingOfferingResolve {
|
|
2383
2330
|
constructor(http) {
|
|
@@ -2399,15 +2346,15 @@ class MarketingOfferingResolve {
|
|
|
2399
2346
|
});
|
|
2400
2347
|
return pageData;
|
|
2401
2348
|
}
|
|
2349
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MarketingOfferingResolve, deps: [{ token: i1$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2350
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MarketingOfferingResolve, providedIn: 'root' }); }
|
|
2402
2351
|
}
|
|
2403
|
-
|
|
2404
|
-
MarketingOfferingResolve.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MarketingOfferingResolve, providedIn: 'root' });
|
|
2405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MarketingOfferingResolve, decorators: [{
|
|
2352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MarketingOfferingResolve, decorators: [{
|
|
2406
2353
|
type: Injectable,
|
|
2407
2354
|
args: [{
|
|
2408
2355
|
providedIn: 'root',
|
|
2409
2356
|
}]
|
|
2410
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
2357
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }]; } });
|
|
2411
2358
|
|
|
2412
2359
|
const JSON_MAP = {
|
|
2413
2360
|
pagename: 'lexid',
|
|
@@ -2475,15 +2422,15 @@ class PageResolve {
|
|
|
2475
2422
|
return general;
|
|
2476
2423
|
}));
|
|
2477
2424
|
}
|
|
2425
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageResolve, deps: [{ token: ConfigurationsService }, { token: i1$3.HttpClient }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2426
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageResolve, providedIn: 'root' }); }
|
|
2478
2427
|
}
|
|
2479
|
-
|
|
2480
|
-
PageResolve.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PageResolve, providedIn: 'root' });
|
|
2481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PageResolve, decorators: [{
|
|
2428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageResolve, decorators: [{
|
|
2482
2429
|
type: Injectable,
|
|
2483
2430
|
args: [{
|
|
2484
2431
|
providedIn: 'root',
|
|
2485
2432
|
}]
|
|
2486
|
-
}], ctorParameters: function () { return [{ type: ConfigurationsService }, { type: i1$
|
|
2433
|
+
}], ctorParameters: function () { return [{ type: ConfigurationsService }, { type: i1$3.HttpClient }, { type: undefined, decorators: [{
|
|
2487
2434
|
type: Inject,
|
|
2488
2435
|
args: [LOCALE_ID]
|
|
2489
2436
|
}] }]; } });
|
|
@@ -2520,10 +2467,10 @@ class LoggerService {
|
|
|
2520
2467
|
console.info = noConsoleWithError;
|
|
2521
2468
|
console.error = noConsoleWithError;
|
|
2522
2469
|
}
|
|
2470
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggerService, deps: [{ token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2471
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggerService, providedIn: 'root' }); }
|
|
2523
2472
|
}
|
|
2524
|
-
|
|
2525
|
-
LoggerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LoggerService, providedIn: 'root' });
|
|
2526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LoggerService, decorators: [{
|
|
2473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggerService, decorators: [{
|
|
2527
2474
|
type: Injectable,
|
|
2528
2475
|
args: [{
|
|
2529
2476
|
providedIn: 'root',
|
|
@@ -2581,75 +2528,69 @@ class AuthMicrosoftService {
|
|
|
2581
2528
|
}
|
|
2582
2529
|
return redirectUrl;
|
|
2583
2530
|
}
|
|
2584
|
-
init(config) {
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
if (!this.code) {
|
|
2594
|
-
return;
|
|
2595
|
-
}
|
|
2596
|
-
let url = location.origin + location.pathname;
|
|
2597
|
-
yield this.exchangeTokenForCode(this.code, url);
|
|
2598
|
-
if (location.hash) {
|
|
2599
|
-
url += location.hash.substring(1);
|
|
2600
|
-
}
|
|
2601
|
-
history.replaceState(null, '', url);
|
|
2602
|
-
}
|
|
2603
|
-
});
|
|
2604
|
-
}
|
|
2605
|
-
login(email) {
|
|
2606
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2607
|
-
if (!this.isValidEmail(email)) {
|
|
2608
|
-
this.loggerSvc.warn(`Microsoft Login is not allowed for your emailId (${email})`);
|
|
2531
|
+
async init(config) {
|
|
2532
|
+
if (!config || !config.microsoft || !config.microsoft.isConfigured) {
|
|
2533
|
+
this.loggerSvc.warn('Empty/No Configuration passed, ignoring Microsoft Authentication');
|
|
2534
|
+
}
|
|
2535
|
+
this.msConfig = config.microsoft;
|
|
2536
|
+
const queryParams = new URLSearchParams(location.search);
|
|
2537
|
+
if (queryParams.has('code') && queryParams.has('session_state')) {
|
|
2538
|
+
this.code = queryParams.get('code');
|
|
2539
|
+
if (!this.code) {
|
|
2609
2540
|
return;
|
|
2610
2541
|
}
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2542
|
+
let url = location.origin + location.pathname;
|
|
2543
|
+
await this.exchangeTokenForCode(this.code, url);
|
|
2544
|
+
if (location.hash) {
|
|
2545
|
+
url += location.hash.substring(1);
|
|
2614
2546
|
}
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
}
|
|
2618
|
-
});
|
|
2547
|
+
history.replaceState(null, '', url);
|
|
2548
|
+
}
|
|
2619
2549
|
}
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2550
|
+
async login(email) {
|
|
2551
|
+
if (!this.isValidEmail(email)) {
|
|
2552
|
+
this.loggerSvc.warn(`Microsoft Login is not allowed for your emailId (${email})`);
|
|
2553
|
+
return;
|
|
2554
|
+
}
|
|
2555
|
+
const loginUrl = this.loginUrl;
|
|
2556
|
+
if (loginUrl) {
|
|
2557
|
+
location.assign(loginUrl);
|
|
2558
|
+
}
|
|
2559
|
+
else {
|
|
2560
|
+
this.loggerSvc.warn('Unable to identify Office Login URL, Ignoring login request');
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
async getToken(email) {
|
|
2564
|
+
if (this.msToken &&
|
|
2565
|
+
this.isValid(this.msToken.accessToken, this.msToken.expiresOn) &&
|
|
2566
|
+
this.msToken.accessToken) {
|
|
2567
|
+
return this.msToken.accessToken;
|
|
2568
|
+
}
|
|
2569
|
+
if (this.isValidEmail(email)) {
|
|
2570
|
+
try {
|
|
2571
|
+
this.msToken = await this.getTokenForEmail(email);
|
|
2572
|
+
if (this.msToken.accessToken) {
|
|
2573
|
+
this.emailUsed = email;
|
|
2574
|
+
return this.msToken.accessToken;
|
|
2634
2575
|
}
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2576
|
+
}
|
|
2577
|
+
catch (error) {
|
|
2578
|
+
if (!this.code) {
|
|
2579
|
+
this.login(email);
|
|
2639
2580
|
}
|
|
2640
2581
|
}
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2582
|
+
}
|
|
2583
|
+
if (this.msConfig.defaultEmailId && this.isValidEmail(this.msConfig.defaultEmailId)) {
|
|
2584
|
+
try {
|
|
2585
|
+
this.msToken = await this.getTokenForEmail(this.msConfig.defaultEmailId);
|
|
2586
|
+
if (this.msToken.accessToken) {
|
|
2587
|
+
this.emailUsed = this.msConfig.defaultEmailId;
|
|
2588
|
+
return this.msToken.accessToken;
|
|
2648
2589
|
}
|
|
2649
|
-
catch (error) { }
|
|
2650
2590
|
}
|
|
2651
|
-
|
|
2652
|
-
}
|
|
2591
|
+
catch (error) { }
|
|
2592
|
+
}
|
|
2593
|
+
throw new Error('UNABLE TO FETCH MS AUTH TOKEN');
|
|
2653
2594
|
}
|
|
2654
2595
|
loginForSSOEnabledEmbed(email) {
|
|
2655
2596
|
if (!this.isValidEmail(email)) {
|
|
@@ -2675,21 +2616,17 @@ class AuthMicrosoftService {
|
|
|
2675
2616
|
}
|
|
2676
2617
|
return false;
|
|
2677
2618
|
}
|
|
2678
|
-
exchangeTokenForCode(code, redirectUrl) {
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
return this.getInstanceFromResponse(response);
|
|
2684
|
-
});
|
|
2619
|
+
async exchangeTokenForCode(code, redirectUrl) {
|
|
2620
|
+
const response = await this.http
|
|
2621
|
+
.get(`${API_ENDPOINTS}?code=${code}&redirectUrl=${redirectUrl}`)
|
|
2622
|
+
.toPromise();
|
|
2623
|
+
return this.getInstanceFromResponse(response);
|
|
2685
2624
|
}
|
|
2686
|
-
getTokenForEmail(email) {
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
return this.getInstanceFromResponse(response);
|
|
2692
|
-
});
|
|
2625
|
+
async getTokenForEmail(email) {
|
|
2626
|
+
const response = await this.http
|
|
2627
|
+
.get(`${API_ENDPOINTS.sharePointToken}?email=${email}`)
|
|
2628
|
+
.toPromise();
|
|
2629
|
+
return this.getInstanceFromResponse(response);
|
|
2693
2630
|
}
|
|
2694
2631
|
getInstanceFromResponse(token) {
|
|
2695
2632
|
return {
|
|
@@ -2699,15 +2636,15 @@ class AuthMicrosoftService {
|
|
|
2699
2636
|
tokenType: token.tokenType,
|
|
2700
2637
|
};
|
|
2701
2638
|
}
|
|
2639
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthMicrosoftService, deps: [{ token: LoggerService }, { token: i1$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2640
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthMicrosoftService, providedIn: 'root' }); }
|
|
2702
2641
|
}
|
|
2703
|
-
|
|
2704
|
-
AuthMicrosoftService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AuthMicrosoftService, providedIn: 'root' });
|
|
2705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AuthMicrosoftService, decorators: [{
|
|
2642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthMicrosoftService, decorators: [{
|
|
2706
2643
|
type: Injectable,
|
|
2707
2644
|
args: [{
|
|
2708
2645
|
providedIn: 'root',
|
|
2709
2646
|
}]
|
|
2710
|
-
}], ctorParameters: function () { return [{ type: LoggerService }, { type: i1$
|
|
2647
|
+
}], ctorParameters: function () { return [{ type: LoggerService }, { type: i1$3.HttpClient }]; } });
|
|
2711
2648
|
|
|
2712
2649
|
var WsEvents;
|
|
2713
2650
|
(function (WsEvents) {
|
|
@@ -2922,12 +2859,17 @@ class EventService {
|
|
|
2922
2859
|
subType,
|
|
2923
2860
|
type: WsEvents.EnumInteractTypes.CLICK,
|
|
2924
2861
|
id: `${_.camelCase(data.label)}-tab`,
|
|
2925
|
-
},
|
|
2862
|
+
}, {
|
|
2863
|
+
...object
|
|
2864
|
+
}, {
|
|
2926
2865
|
pageIdExt: `${_.camelCase(data.label)}-tab`,
|
|
2927
2866
|
});
|
|
2928
|
-
this.raiseCustomImpression(
|
|
2867
|
+
this.raiseCustomImpression({
|
|
2868
|
+
context: {
|
|
2929
2869
|
position: data.index,
|
|
2930
|
-
}
|
|
2870
|
+
},
|
|
2871
|
+
...object
|
|
2872
|
+
}, {
|
|
2931
2873
|
pageIdExt: `${_.camelCase(data.label)}-tab`,
|
|
2932
2874
|
});
|
|
2933
2875
|
}
|
|
@@ -3009,10 +2951,10 @@ class EventService {
|
|
|
3009
2951
|
});
|
|
3010
2952
|
}
|
|
3011
2953
|
}
|
|
2954
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventService, deps: [{ token: UtilityService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2955
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventService, providedIn: 'root' }); }
|
|
3012
2956
|
}
|
|
3013
|
-
|
|
3014
|
-
EventService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: EventService, providedIn: 'root' });
|
|
3015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: EventService, decorators: [{
|
|
2957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventService, decorators: [{
|
|
3016
2958
|
type: Injectable,
|
|
3017
2959
|
args: [{
|
|
3018
2960
|
providedIn: 'root',
|
|
@@ -3085,37 +3027,35 @@ class WidgetContentService {
|
|
|
3085
3027
|
fetchContentHistory(contentId) {
|
|
3086
3028
|
return this.http.get(`${API_END_POINTS.CONTENT_HISTORY}/${contentId}`);
|
|
3087
3029
|
}
|
|
3088
|
-
continueLearning(id, collectionId, collectionType) {
|
|
3089
|
-
return
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
}
|
|
3118
|
-
}));
|
|
3030
|
+
async continueLearning(id, collectionId, collectionType) {
|
|
3031
|
+
return new Promise(async (resolve) => {
|
|
3032
|
+
if (collectionType &&
|
|
3033
|
+
collectionType.toLowerCase() === 'playlist') {
|
|
3034
|
+
const reqBody = {
|
|
3035
|
+
contextPathId: collectionId ? collectionId : id,
|
|
3036
|
+
resourceId: id,
|
|
3037
|
+
data: JSON.stringify({
|
|
3038
|
+
timestamp: Date.now(),
|
|
3039
|
+
contextFullPath: [collectionId, id],
|
|
3040
|
+
}),
|
|
3041
|
+
dateAccessed: Date.now(),
|
|
3042
|
+
contextType: 'playlist',
|
|
3043
|
+
};
|
|
3044
|
+
await this.saveContinueLearning(reqBody).toPromise().catch().finally(() => {
|
|
3045
|
+
resolve(true);
|
|
3046
|
+
});
|
|
3047
|
+
}
|
|
3048
|
+
else {
|
|
3049
|
+
const reqBody = {
|
|
3050
|
+
contextPathId: collectionId ? collectionId : id,
|
|
3051
|
+
resourceId: id,
|
|
3052
|
+
data: JSON.stringify({ timestamp: Date.now() }),
|
|
3053
|
+
dateAccessed: Date.now(),
|
|
3054
|
+
};
|
|
3055
|
+
await this.saveContinueLearning(reqBody).toPromise().catch().finally(() => {
|
|
3056
|
+
resolve(true);
|
|
3057
|
+
});
|
|
3058
|
+
}
|
|
3119
3059
|
});
|
|
3120
3060
|
}
|
|
3121
3061
|
saveContinueLearning(content) {
|
|
@@ -3147,7 +3087,10 @@ class WidgetContentService {
|
|
|
3147
3087
|
req.preLabelValue =
|
|
3148
3088
|
(req.preLabelValue || '') +
|
|
3149
3089
|
((this.configSvc.userProfile && this.configSvc.userProfile.country) || '');
|
|
3150
|
-
req.filters =
|
|
3090
|
+
req.filters = {
|
|
3091
|
+
...req.filters,
|
|
3092
|
+
labels: [req.preLabelValue || ''],
|
|
3093
|
+
};
|
|
3151
3094
|
return this.http.post(API_END_POINTS.CONTENT_SEARCH_REGION_RECOMMENDATION, { request: req });
|
|
3152
3095
|
}
|
|
3153
3096
|
searchV6(req) {
|
|
@@ -3187,15 +3130,15 @@ class WidgetContentService {
|
|
|
3187
3130
|
fetchConfig(url) {
|
|
3188
3131
|
return this.http.get(url);
|
|
3189
3132
|
}
|
|
3133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WidgetContentService, deps: [{ token: i1$3.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3134
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WidgetContentService, providedIn: 'root' }); }
|
|
3190
3135
|
}
|
|
3191
|
-
|
|
3192
|
-
WidgetContentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: WidgetContentService, providedIn: 'root' });
|
|
3193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: WidgetContentService, decorators: [{
|
|
3136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WidgetContentService, decorators: [{
|
|
3194
3137
|
type: Injectable,
|
|
3195
3138
|
args: [{
|
|
3196
3139
|
providedIn: 'root',
|
|
3197
3140
|
}]
|
|
3198
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
3141
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: ConfigurationsService }]; } });
|
|
3199
3142
|
|
|
3200
3143
|
class TelemetryService {
|
|
3201
3144
|
constructor(environment, configSvc, eventsSvc, logger) {
|
|
@@ -3213,7 +3156,16 @@ class TelemetryService {
|
|
|
3213
3156
|
const instanceConfig = this.configSvc.instanceConfig;
|
|
3214
3157
|
if (instanceConfig) {
|
|
3215
3158
|
this.telemetryConfig = instanceConfig.telemetryConfig;
|
|
3216
|
-
this.telemetryConfig =
|
|
3159
|
+
this.telemetryConfig = {
|
|
3160
|
+
...this.telemetryConfig,
|
|
3161
|
+
pdata: {
|
|
3162
|
+
...this.telemetryConfig.pdata,
|
|
3163
|
+
id: `${environment.name}.${this.telemetryConfig.pdata.id}`,
|
|
3164
|
+
},
|
|
3165
|
+
uid: this.configSvc.userProfile && this.configSvc.userProfile.userId,
|
|
3166
|
+
channel: this.rootOrgId || this.telemetryConfig.channel,
|
|
3167
|
+
sid: this.getTelemetrySessionId,
|
|
3168
|
+
};
|
|
3217
3169
|
this.pData = this.telemetryConfig.pdata;
|
|
3218
3170
|
this.addPlayerListener();
|
|
3219
3171
|
this.addCustomEventListener();
|
|
@@ -3247,8 +3199,16 @@ class TelemetryService {
|
|
|
3247
3199
|
: '',
|
|
3248
3200
|
duration: 1,
|
|
3249
3201
|
}, {
|
|
3250
|
-
context:
|
|
3251
|
-
|
|
3202
|
+
context: {
|
|
3203
|
+
pdata: {
|
|
3204
|
+
...this.pData,
|
|
3205
|
+
id: this.pData.id,
|
|
3206
|
+
},
|
|
3207
|
+
...(pageContext && pageContext.module ? { env: pageContext.module } : null),
|
|
3208
|
+
},
|
|
3209
|
+
object: {
|
|
3210
|
+
...(data) && data,
|
|
3211
|
+
},
|
|
3252
3212
|
});
|
|
3253
3213
|
}
|
|
3254
3214
|
else {
|
|
@@ -3268,8 +3228,16 @@ class TelemetryService {
|
|
|
3268
3228
|
pageContext.pageId
|
|
3269
3229
|
: '',
|
|
3270
3230
|
}, {
|
|
3271
|
-
context:
|
|
3272
|
-
|
|
3231
|
+
context: {
|
|
3232
|
+
pdata: {
|
|
3233
|
+
...this.pData,
|
|
3234
|
+
id: this.pData.id,
|
|
3235
|
+
},
|
|
3236
|
+
...(pageContext && pageContext.module ? { env: pageContext.module } : null),
|
|
3237
|
+
},
|
|
3238
|
+
object: {
|
|
3239
|
+
...(data) && data,
|
|
3240
|
+
},
|
|
3273
3241
|
});
|
|
3274
3242
|
}
|
|
3275
3243
|
catch (e) {
|
|
@@ -3286,7 +3254,10 @@ class TelemetryService {
|
|
|
3286
3254
|
duration: '',
|
|
3287
3255
|
}, {
|
|
3288
3256
|
context: {
|
|
3289
|
-
pdata:
|
|
3257
|
+
pdata: {
|
|
3258
|
+
...this.pData,
|
|
3259
|
+
id: this.pData.id,
|
|
3260
|
+
},
|
|
3290
3261
|
},
|
|
3291
3262
|
});
|
|
3292
3263
|
}
|
|
@@ -3319,20 +3290,31 @@ class TelemetryService {
|
|
|
3319
3290
|
if (page.objectId) {
|
|
3320
3291
|
const config = {
|
|
3321
3292
|
context: {
|
|
3322
|
-
pdata:
|
|
3293
|
+
pdata: {
|
|
3294
|
+
...this.pData,
|
|
3295
|
+
id: this.pData.id,
|
|
3296
|
+
},
|
|
3323
3297
|
env: page.module || (this.telemetryConfig && this.telemetryConfig.env),
|
|
3324
3298
|
},
|
|
3325
|
-
object:
|
|
3299
|
+
object: {
|
|
3300
|
+
id: page.objectId,
|
|
3301
|
+
...((data) ? data.object : {}),
|
|
3302
|
+
},
|
|
3326
3303
|
};
|
|
3327
3304
|
$t.impression(edata, config);
|
|
3328
3305
|
}
|
|
3329
3306
|
else {
|
|
3330
3307
|
$t.impression(edata, {
|
|
3331
3308
|
context: {
|
|
3332
|
-
pdata:
|
|
3309
|
+
pdata: {
|
|
3310
|
+
...this.pData,
|
|
3311
|
+
id: this.pData.id,
|
|
3312
|
+
},
|
|
3333
3313
|
env: page.module || '',
|
|
3334
3314
|
},
|
|
3335
|
-
object:
|
|
3315
|
+
object: {
|
|
3316
|
+
...((data) ? data.object : {}),
|
|
3317
|
+
},
|
|
3336
3318
|
});
|
|
3337
3319
|
}
|
|
3338
3320
|
this.previousUrl = page.pageUrl;
|
|
@@ -3347,14 +3329,20 @@ class TelemetryService {
|
|
|
3347
3329
|
if (this.externalApps[impressionData.subApplicationName]) {
|
|
3348
3330
|
const externalConfig = page.objectId ? {
|
|
3349
3331
|
context: {
|
|
3350
|
-
pdata:
|
|
3332
|
+
pdata: {
|
|
3333
|
+
...this.pData,
|
|
3334
|
+
id: this.externalApps[impressionData.subApplicationName],
|
|
3335
|
+
},
|
|
3351
3336
|
},
|
|
3352
3337
|
object: {
|
|
3353
3338
|
id: page.objectId,
|
|
3354
3339
|
},
|
|
3355
3340
|
} : {
|
|
3356
3341
|
context: {
|
|
3357
|
-
pdata:
|
|
3342
|
+
pdata: {
|
|
3343
|
+
...this.pData,
|
|
3344
|
+
id: this.externalApps[impressionData.subApplicationName],
|
|
3345
|
+
},
|
|
3358
3346
|
},
|
|
3359
3347
|
};
|
|
3360
3348
|
$t.impression(impressionData.data, externalConfig);
|
|
@@ -3464,7 +3452,10 @@ class TelemetryService {
|
|
|
3464
3452
|
if (typeof event.from === 'string' && this.externalApps[event.from]) {
|
|
3465
3453
|
const externalConfig = {
|
|
3466
3454
|
context: {
|
|
3467
|
-
pdata:
|
|
3455
|
+
pdata: {
|
|
3456
|
+
...this.pData,
|
|
3457
|
+
id: this.externalApps[event.from],
|
|
3458
|
+
},
|
|
3468
3459
|
},
|
|
3469
3460
|
};
|
|
3470
3461
|
try {
|
|
@@ -3484,8 +3475,16 @@ class TelemetryService {
|
|
|
3484
3475
|
: '',
|
|
3485
3476
|
pageid: event.data.pageContext && event.data.pageContext.pageId || page.pageid,
|
|
3486
3477
|
}, {
|
|
3487
|
-
context:
|
|
3488
|
-
|
|
3478
|
+
context: {
|
|
3479
|
+
pdata: {
|
|
3480
|
+
...this.pData,
|
|
3481
|
+
id: this.pData.id,
|
|
3482
|
+
},
|
|
3483
|
+
...(event.data.pageContext && event.data.pageContext.module ? { env: event.data.pageContext.module } : null),
|
|
3484
|
+
},
|
|
3485
|
+
object: {
|
|
3486
|
+
...event.data.object,
|
|
3487
|
+
},
|
|
3489
3488
|
});
|
|
3490
3489
|
}
|
|
3491
3490
|
catch (e) {
|
|
@@ -3510,7 +3509,10 @@ class TelemetryService {
|
|
|
3510
3509
|
pageid: page.pageid,
|
|
3511
3510
|
}, {
|
|
3512
3511
|
context: {
|
|
3513
|
-
pdata:
|
|
3512
|
+
pdata: {
|
|
3513
|
+
...this.pData,
|
|
3514
|
+
id: this.pData.id,
|
|
3515
|
+
},
|
|
3514
3516
|
},
|
|
3515
3517
|
object: {
|
|
3516
3518
|
id: event.data.object.contentId || event.data.object.id || '',
|
|
@@ -3535,7 +3537,10 @@ class TelemetryService {
|
|
|
3535
3537
|
if (typeof event.from === 'string' && this.externalApps[event.from]) {
|
|
3536
3538
|
const externalConfig = {
|
|
3537
3539
|
context: {
|
|
3538
|
-
pdata:
|
|
3540
|
+
pdata: {
|
|
3541
|
+
...this.pData,
|
|
3542
|
+
id: this.externalApps[event.from],
|
|
3543
|
+
},
|
|
3539
3544
|
},
|
|
3540
3545
|
};
|
|
3541
3546
|
try {
|
|
@@ -3552,7 +3557,10 @@ class TelemetryService {
|
|
|
3552
3557
|
id: event.data.id,
|
|
3553
3558
|
}, {
|
|
3554
3559
|
context: {
|
|
3555
|
-
pdata:
|
|
3560
|
+
pdata: {
|
|
3561
|
+
...this.pData,
|
|
3562
|
+
id: this.pData.id,
|
|
3563
|
+
},
|
|
3556
3564
|
},
|
|
3557
3565
|
});
|
|
3558
3566
|
}
|
|
@@ -3576,7 +3584,10 @@ class TelemetryService {
|
|
|
3576
3584
|
size: event.data.size,
|
|
3577
3585
|
}, {
|
|
3578
3586
|
context: {
|
|
3579
|
-
pdata:
|
|
3587
|
+
pdata: {
|
|
3588
|
+
...this.pData,
|
|
3589
|
+
id: this.pData.id,
|
|
3590
|
+
},
|
|
3580
3591
|
},
|
|
3581
3592
|
});
|
|
3582
3593
|
}
|
|
@@ -3611,10 +3622,10 @@ class TelemetryService {
|
|
|
3611
3622
|
}
|
|
3612
3623
|
return null;
|
|
3613
3624
|
}
|
|
3625
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TelemetryService, deps: [{ token: 'environment' }, { token: ConfigurationsService }, { token: EventService }, { token: LoggerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3626
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TelemetryService, providedIn: 'root' }); }
|
|
3614
3627
|
}
|
|
3615
|
-
|
|
3616
|
-
TelemetryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TelemetryService, providedIn: 'root' });
|
|
3617
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TelemetryService, decorators: [{
|
|
3628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TelemetryService, decorators: [{
|
|
3618
3629
|
type: Injectable,
|
|
3619
3630
|
args: [{
|
|
3620
3631
|
providedIn: 'root',
|
|
@@ -3650,7 +3661,10 @@ class SubapplicationRespondService {
|
|
|
3650
3661
|
this.eventSvc.dispatchEvent({
|
|
3651
3662
|
eventType: WsEvents.WsEventType.Telemetry,
|
|
3652
3663
|
eventLogLevel: WsEvents.WsEventLogLevel.Warn,
|
|
3653
|
-
data:
|
|
3664
|
+
data: {
|
|
3665
|
+
...tData.data,
|
|
3666
|
+
eventSubType: WsEvents.EnumTelemetrySubType.Interact,
|
|
3667
|
+
},
|
|
3654
3668
|
from: tData.subApplicationName,
|
|
3655
3669
|
to: 'Telemetry',
|
|
3656
3670
|
});
|
|
@@ -3659,7 +3673,10 @@ class SubapplicationRespondService {
|
|
|
3659
3673
|
this.eventSvc.dispatchEvent({
|
|
3660
3674
|
eventType: WsEvents.WsEventType.Telemetry,
|
|
3661
3675
|
eventLogLevel: WsEvents.WsEventLogLevel.Trace,
|
|
3662
|
-
data:
|
|
3676
|
+
data: {
|
|
3677
|
+
...tData.data,
|
|
3678
|
+
eventSubType: WsEvents.EnumTelemetrySubType.HeartBeat,
|
|
3679
|
+
},
|
|
3663
3680
|
from: tData.subApplicationName,
|
|
3664
3681
|
to: 'Telemetry',
|
|
3665
3682
|
});
|
|
@@ -3678,10 +3695,10 @@ class SubapplicationRespondService {
|
|
|
3678
3695
|
this.contentWindowinfo = null;
|
|
3679
3696
|
this.loaded = false;
|
|
3680
3697
|
}
|
|
3698
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubapplicationRespondService, deps: [{ token: WidgetContentService }, { token: EventService }, { token: TelemetryService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3699
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubapplicationRespondService, providedIn: 'root' }); }
|
|
3681
3700
|
}
|
|
3682
|
-
|
|
3683
|
-
SubapplicationRespondService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SubapplicationRespondService, providedIn: 'root' });
|
|
3684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SubapplicationRespondService, decorators: [{
|
|
3701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubapplicationRespondService, decorators: [{
|
|
3685
3702
|
type: Injectable,
|
|
3686
3703
|
args: [{
|
|
3687
3704
|
providedIn: 'root',
|
|
@@ -3705,63 +3722,74 @@ class UserPreferenceService {
|
|
|
3705
3722
|
}
|
|
3706
3723
|
});
|
|
3707
3724
|
}
|
|
3708
|
-
fetchUserPreference() {
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
return pref;
|
|
3712
|
-
});
|
|
3725
|
+
async fetchUserPreference() {
|
|
3726
|
+
const pref = await this.http.get(endpoints.userPref).toPromise();
|
|
3727
|
+
return pref;
|
|
3713
3728
|
}
|
|
3714
|
-
saveUserPreference(changedUserPref) {
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
if (!changedUserPref) {
|
|
3718
|
-
return false;
|
|
3719
|
-
}
|
|
3720
|
-
const newUserPref = Object.assign(Object.assign(Object.assign(Object.assign({}, this.configurationSvc.userPreference), { pinnedApps: (changedUserPref && changedUserPref.pinnedApps) ||
|
|
3721
|
-
(this.configurationSvc.userPreference &&
|
|
3722
|
-
this.configurationSvc.userPreference.pinnedApps) ||
|
|
3723
|
-
'', isDarkMode: this.configurationSvc.isDarkMode, isRTL: this.configurationSvc.isRTL, selectedTheme: (this.configurationSvc.activeThemeObject &&
|
|
3724
|
-
this.configurationSvc.activeThemeObject.themeClass) ||
|
|
3725
|
-
'', selectedFont: (this.configurationSvc.activeFontObject &&
|
|
3726
|
-
this.configurationSvc.activeFontObject.fontClass) ||
|
|
3727
|
-
'', selectedLangGroup: (this.configurationSvc.userPreference &&
|
|
3728
|
-
this.configurationSvc.userPreference.selectedLangGroup) ||
|
|
3729
|
-
'', selectedLocale: (this.configurationSvc.userPreference &&
|
|
3730
|
-
this.configurationSvc.userPreference.selectedLocale) ||
|
|
3731
|
-
'', colorPallet: (this.configurationSvc.userPreference &&
|
|
3732
|
-
this.configurationSvc.userPreference.colorPallet) ||
|
|
3733
|
-
[], defaultCardType: (this.configurationSvc.userPreference &&
|
|
3734
|
-
this.configurationSvc.userPreference.defaultCardType) ||
|
|
3735
|
-
'', completedActivity: (this.configurationSvc.userPreference &&
|
|
3736
|
-
this.configurationSvc.userPreference.completedActivity) ||
|
|
3737
|
-
[] }), (changedUserPref || {})), { completedTour: this.configurationSvc.completedTour, profileSettings: (this.configurationSvc.userPreference &&
|
|
3738
|
-
this.configurationSvc.userPreference.profileSettings) ||
|
|
3739
|
-
this.configurationSvc.profileSettings });
|
|
3740
|
-
const oldUserPref = this.configurationSvc.userPreference;
|
|
3741
|
-
this.configurationSvc.userPreference = newUserPref;
|
|
3742
|
-
yield this.http
|
|
3743
|
-
.put(endpoints.userPref, newUserPref)
|
|
3744
|
-
.pipe(retry(3), catchError(err => {
|
|
3745
|
-
this.configurationSvc.userPreference = oldUserPref;
|
|
3746
|
-
return of(err);
|
|
3747
|
-
}))
|
|
3748
|
-
.toPromise();
|
|
3749
|
-
return true;
|
|
3750
|
-
}
|
|
3751
|
-
catch (err) {
|
|
3729
|
+
async saveUserPreference(changedUserPref) {
|
|
3730
|
+
try {
|
|
3731
|
+
if (!changedUserPref) {
|
|
3752
3732
|
return false;
|
|
3753
3733
|
}
|
|
3754
|
-
|
|
3734
|
+
const newUserPref = {
|
|
3735
|
+
...this.configurationSvc.userPreference,
|
|
3736
|
+
pinnedApps: (changedUserPref && changedUserPref.pinnedApps) ||
|
|
3737
|
+
(this.configurationSvc.userPreference &&
|
|
3738
|
+
this.configurationSvc.userPreference.pinnedApps) ||
|
|
3739
|
+
'',
|
|
3740
|
+
isDarkMode: this.configurationSvc.isDarkMode,
|
|
3741
|
+
isRTL: this.configurationSvc.isRTL,
|
|
3742
|
+
selectedTheme: (this.configurationSvc.activeThemeObject &&
|
|
3743
|
+
this.configurationSvc.activeThemeObject.themeClass) ||
|
|
3744
|
+
'',
|
|
3745
|
+
selectedFont: (this.configurationSvc.activeFontObject &&
|
|
3746
|
+
this.configurationSvc.activeFontObject.fontClass) ||
|
|
3747
|
+
'',
|
|
3748
|
+
selectedLangGroup: (this.configurationSvc.userPreference &&
|
|
3749
|
+
this.configurationSvc.userPreference.selectedLangGroup) ||
|
|
3750
|
+
'',
|
|
3751
|
+
selectedLocale: (this.configurationSvc.userPreference &&
|
|
3752
|
+
this.configurationSvc.userPreference.selectedLocale) ||
|
|
3753
|
+
'',
|
|
3754
|
+
colorPallet: (this.configurationSvc.userPreference &&
|
|
3755
|
+
this.configurationSvc.userPreference.colorPallet) ||
|
|
3756
|
+
[],
|
|
3757
|
+
defaultCardType: (this.configurationSvc.userPreference &&
|
|
3758
|
+
this.configurationSvc.userPreference.defaultCardType) ||
|
|
3759
|
+
'',
|
|
3760
|
+
completedActivity: (this.configurationSvc.userPreference &&
|
|
3761
|
+
this.configurationSvc.userPreference.completedActivity) ||
|
|
3762
|
+
[],
|
|
3763
|
+
...(changedUserPref || {}),
|
|
3764
|
+
completedTour: this.configurationSvc.completedTour,
|
|
3765
|
+
profileSettings: (this.configurationSvc.userPreference &&
|
|
3766
|
+
this.configurationSvc.userPreference.profileSettings) ||
|
|
3767
|
+
this.configurationSvc.profileSettings,
|
|
3768
|
+
};
|
|
3769
|
+
const oldUserPref = this.configurationSvc.userPreference;
|
|
3770
|
+
this.configurationSvc.userPreference = newUserPref;
|
|
3771
|
+
await this.http
|
|
3772
|
+
.put(endpoints.userPref, newUserPref)
|
|
3773
|
+
.pipe(retry(3), catchError(err => {
|
|
3774
|
+
this.configurationSvc.userPreference = oldUserPref;
|
|
3775
|
+
return of(err);
|
|
3776
|
+
}))
|
|
3777
|
+
.toPromise();
|
|
3778
|
+
return true;
|
|
3779
|
+
}
|
|
3780
|
+
catch (err) {
|
|
3781
|
+
return false;
|
|
3782
|
+
}
|
|
3755
3783
|
}
|
|
3784
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserPreferenceService, deps: [{ token: i1$3.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3785
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserPreferenceService, providedIn: 'root' }); }
|
|
3756
3786
|
}
|
|
3757
|
-
|
|
3758
|
-
UserPreferenceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UserPreferenceService, providedIn: 'root' });
|
|
3759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UserPreferenceService, decorators: [{
|
|
3787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserPreferenceService, decorators: [{
|
|
3760
3788
|
type: Injectable,
|
|
3761
3789
|
args: [{
|
|
3762
3790
|
providedIn: 'root',
|
|
3763
3791
|
}]
|
|
3764
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
3792
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: ConfigurationsService }]; } });
|
|
3765
3793
|
|
|
3766
3794
|
var NsContent;
|
|
3767
3795
|
(function (NsContent) {
|
|
@@ -3871,4 +3899,4 @@ var NsContent;
|
|
|
3871
3899
|
})(NsContent || (NsContent = {}));
|
|
3872
3900
|
|
|
3873
3901
|
export { AuthKeycloakService, AuthMicrosoftService, ClassChangeOnScrollDirective, ClassChangeOnScrollModule, ConfigurationsService, DefaultThumbnailDirective, DefaultThumbnailModule, EFeatures, EInstance, EventService, ExploreDetailResolve, HorizontalScrollerComponent, HorizontalScrollerModule, ImageCropComponent, ImageCropModule, ImageResponsiveDirective, ImageResponsiveModule, InViewPortDirective, InViewPortModule, LoggerService, LogoutComponent, LogoutModule, MarketingOfferingResolve, NavigationDirective, NavigationModule, NsContent, OrderByPipe, PageResolve, PermissionDirective, PermissionModule, PipeConciseDateRangeModule, PipeConciseDateRangePipe, PipeCountTransformModule, PipeCountTransformPipe, PipeDateConcatModule, PipeDateConcatPipe, PipeDurationTransformModule, PipeDurationTransformPipe, PipeFilterModule, PipeFilterPipe, PipeFilterSearchModule, PipeFilterSearchPipe, PipeHtmlTagRemovalModule, PipeHtmlTagRemovalPipe, PipeLimitToModule, PipeLimitToPipe, PipeListFilterModule, PipeListFilterPipe, PipeNameTransformModule, PipeNameTransformPipe, PipeOrderByModule, PipePartialContentModule, PipePartialContentPipe, PipeRelativeTimeModule, PipeRelativeTimePipe, PipeSafeSanitizerModule, PipeSafeSanitizerPipe, SubapplicationRespondService, TelemetryService, UserPreferenceService, UtilityService, ValueService, WidgetContentService, WsEvents, getStringifiedQueryParams };
|
|
3874
|
-
//# sourceMappingURL=sunbird-cb-utils.
|
|
3902
|
+
//# sourceMappingURL=sunbird-cb-utils.mjs.map
|