@sunbird-cb/utils-v2 0.0.0-watch → 0.0.1-ang-17-20
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/fesm2022/sunbird-cb-utils-v2.mjs +1049 -404
- package/fesm2022/sunbird-cb-utils-v2.mjs.map +1 -1
- package/index.d.ts +3244 -2
- package/package.json +11 -13
- package/sunbird-cb-utils-v2-0.0.1-ang-17-20.tgz +0 -0
- package/esm2022/lib/components/image-crop/image-crop.component.mjs +0 -172
- package/esm2022/lib/components/image-crop/image-crop.module.mjs +0 -55
- package/esm2022/lib/constants/features.enum.mjs +0 -555
- package/esm2022/lib/constants/instances.enum.mjs +0 -5
- package/esm2022/lib/constants/misc.constants.mjs +0 -2
- package/esm2022/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.mjs +0 -87
- package/esm2022/lib/directives/class-change-on-scroll/class-change-on-scroll.module.mjs +0 -20
- package/esm2022/lib/directives/default-thumbnail/default-thumbnail.directive.mjs +0 -40
- package/esm2022/lib/directives/default-thumbnail/default-thumbnail.module.mjs +0 -20
- package/esm2022/lib/directives/image-responsive/image-responsive.directive.mjs +0 -86
- package/esm2022/lib/directives/image-responsive/image-responsive.module.mjs +0 -20
- package/esm2022/lib/directives/in-view-port/in-view-port.directive.mjs +0 -62
- package/esm2022/lib/directives/in-view-port/in-view-port.module.mjs +0 -20
- package/esm2022/lib/directives/navigation/navigation.directive.mjs +0 -43
- package/esm2022/lib/directives/navigation/navigation.module.mjs +0 -20
- package/esm2022/lib/directives/permission/permission.directive.mjs +0 -14
- package/esm2022/lib/directives/permission/permission.module.mjs +0 -20
- package/esm2022/lib/helpers/functions/getStringifiedQueryParams.mjs +0 -9
- package/esm2022/lib/helpers/horizontal-scroller/horizontal-scroller.component.mjs +0 -96
- package/esm2022/lib/helpers/horizontal-scroller/horizontal-scroller.module.mjs +0 -32
- package/esm2022/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.mjs +0 -186
- package/esm2022/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.mjs +0 -32
- package/esm2022/lib/helpers/logout/logout.component.mjs +0 -78
- package/esm2022/lib/helpers/logout/logout.module.mjs +0 -31
- package/esm2022/lib/models/profile-v3.models.mjs +0 -2
- package/esm2022/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.mjs +0 -117
- package/esm2022/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.mjs +0 -18
- package/esm2022/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.mjs +0 -57
- package/esm2022/lib/pipes/pipe-count-transform/pipe-count-transform.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.mjs +0 -37
- package/esm2022/lib/pipes/pipe-coursename/PipeCourseNameModule.mjs +0 -20
- package/esm2022/lib/pipes/pipe-coursename/pipe-coursename.pipe.mjs +0 -17
- package/esm2022/lib/pipes/pipe-date-concat/pipe-date-concat.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.mjs +0 -36
- package/esm2022/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.mjs +0 -86
- package/esm2022/lib/pipes/pipe-email/pipe-email.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-email/pipe-email.pipe.mjs +0 -16
- package/esm2022/lib/pipes/pipe-filter/pipe-filter.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-filter/pipe-filter.pipe.mjs +0 -20
- package/esm2022/lib/pipes/pipe-filter-search/pipe-filter-search.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.mjs +0 -42
- package/esm2022/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.mjs +0 -25
- package/esm2022/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.mjs +0 -27
- package/esm2022/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.mjs +0 -16
- package/esm2022/lib/pipes/pipe-limit-to/pipe-limit-to.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.mjs +0 -29
- package/esm2022/lib/pipes/pipe-list-filter/pipe-list-filter.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.mjs +0 -21
- package/esm2022/lib/pipes/pipe-name-transform/pipe-name-transform.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.mjs +0 -26
- package/esm2022/lib/pipes/pipe-nic-relative/pipe-nic-relative.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-nic-relative/pipe-nic-relative.pipe.mjs +0 -40
- package/esm2022/lib/pipes/pipe-order-by/pipe-order-by.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-order-by/pipe-order-by.pipe.mjs +0 -17
- package/esm2022/lib/pipes/pipe-ordinal/pipe-ordinal.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.mjs +0 -21
- package/esm2022/lib/pipes/pipe-partial-content/pipe-partial-content.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.mjs +0 -22
- package/esm2022/lib/pipes/pipe-public-URL/pipe-public-URL.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.mjs +0 -27
- package/esm2022/lib/pipes/pipe-relative-time/pipe-relative-time.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.mjs +0 -20
- package/esm2022/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.mjs +0 -20
- package/esm2022/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.mjs +0 -33
- package/esm2022/lib/resolvers/explore-detail.resolver.mjs +0 -76
- package/esm2022/lib/resolvers/marketing-offering.resolve.mjs +0 -35
- package/esm2022/lib/resolvers/module-name.resolver.mjs +0 -36
- package/esm2022/lib/resolvers/page-name.resolver.mjs +0 -33
- package/esm2022/lib/resolvers/page.constant.mjs +0 -4
- package/esm2022/lib/resolvers/page.model.mjs +0 -2
- package/esm2022/lib/resolvers/page.resolver.mjs +0 -82
- package/esm2022/lib/resolvers/resolver.model.mjs +0 -2
- package/esm2022/lib/services/auth-keycloak.service.mjs +0 -124
- package/esm2022/lib/services/auth-microsoft.service.mjs +0 -173
- package/esm2022/lib/services/card-content.model.mjs +0 -11
- package/esm2022/lib/services/configurations.model.mjs +0 -2
- package/esm2022/lib/services/configurations.service.mjs +0 -83
- package/esm2022/lib/services/content-strip-multiple.model.mjs +0 -2
- package/esm2022/lib/services/event.model.mjs +0 -145
- package/esm2022/lib/services/event.service.mjs +0 -294
- package/esm2022/lib/services/logger.service.mjs +0 -45
- package/esm2022/lib/services/ms-office.model.mjs +0 -2
- package/esm2022/lib/services/multilingual-translations.service.mjs +0 -121
- package/esm2022/lib/services/nps-grid.service.mjs +0 -38
- package/esm2022/lib/services/subapplication-respond.service.mjs +0 -206
- package/esm2022/lib/services/telemetry.service.mjs +0 -695
- package/esm2022/lib/services/user-preference.model.mjs +0 -2
- package/esm2022/lib/services/user-preference.service.mjs +0 -92
- package/esm2022/lib/services/utility.service.mjs +0 -122
- package/esm2022/lib/services/value.service.mjs +0 -25
- package/esm2022/lib/services/widget-content.model.mjs +0 -144
- package/esm2022/lib/services/widget-content.service.mjs +0 -198
- package/esm2022/lib/services/widget-resolver.model.mjs +0 -2
- package/esm2022/lib/services/widget-search.model.mjs +0 -2
- package/esm2022/lib/services-new/data-transfer.service.mjs +0 -23
- package/esm2022/lib/services-new/widget-enroll.service.mjs +0 -55
- package/esm2022/public-api.mjs +0 -98
- package/esm2022/sunbird-cb-utils-v2.mjs +0 -2
- package/lib/components/image-crop/image-crop.component.d.ts +0 -59
- package/lib/components/image-crop/image-crop.module.d.ts +0 -16
- package/lib/constants/features.enum.d.ts +0 -553
- package/lib/constants/instances.enum.d.ts +0 -3
- package/lib/constants/misc.constants.d.ts +0 -2
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +0 -21
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +0 -8
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +0 -12
- package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +0 -8
- package/lib/directives/image-responsive/image-responsive.directive.d.ts +0 -20
- package/lib/directives/image-responsive/image-responsive.module.d.ts +0 -8
- package/lib/directives/in-view-port/in-view-port.directive.d.ts +0 -14
- package/lib/directives/in-view-port/in-view-port.module.d.ts +0 -8
- package/lib/directives/navigation/navigation.directive.d.ts +0 -12
- package/lib/directives/navigation/navigation.module.d.ts +0 -8
- package/lib/directives/permission/permission.directive.d.ts +0 -6
- package/lib/directives/permission/permission.module.d.ts +0 -8
- package/lib/helpers/functions/getStringifiedQueryParams.d.ts +0 -3
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +0 -21
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +0 -11
- package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +0 -39
- package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +0 -11
- package/lib/helpers/logout/logout.component.d.ts +0 -23
- package/lib/helpers/logout/logout.module.d.ts +0 -11
- package/lib/models/profile-v3.models.d.ts +0 -91
- package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.d.ts +0 -8
- package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.d.ts +0 -9
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +0 -8
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +0 -13
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +0 -8
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +0 -7
- package/lib/pipes/pipe-coursename/PipeCourseNameModule.d.ts +0 -8
- package/lib/pipes/pipe-coursename/pipe-coursename.pipe.d.ts +0 -7
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +0 -8
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +0 -16
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +0 -8
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +0 -9
- package/lib/pipes/pipe-email/pipe-email.module.d.ts +0 -8
- package/lib/pipes/pipe-email/pipe-email.pipe.d.ts +0 -7
- package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +0 -8
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +0 -7
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +0 -8
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +0 -7
- package/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.d.ts +0 -8
- package/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.d.ts +0 -7
- package/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.d.ts +0 -8
- package/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.d.ts +0 -7
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +0 -8
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +0 -7
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +0 -8
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +0 -7
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +0 -8
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +0 -7
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +0 -8
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +0 -12
- package/lib/pipes/pipe-nic-relative/pipe-nic-relative.module.d.ts +0 -8
- package/lib/pipes/pipe-nic-relative/pipe-nic-relative.pipe.d.ts +0 -10
- package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +0 -8
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +0 -12
- package/lib/pipes/pipe-ordinal/pipe-ordinal.module.d.ts +0 -8
- package/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.d.ts +0 -7
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +0 -8
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +0 -7
- package/lib/pipes/pipe-public-URL/pipe-public-URL.module.d.ts +0 -8
- package/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +0 -9
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +0 -8
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +0 -7
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +0 -8
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +0 -10
- package/lib/resolvers/explore-detail.resolver.d.ts +0 -19
- package/lib/resolvers/marketing-offering.resolve.d.ts +0 -13
- package/lib/resolvers/module-name.resolver.d.ts +0 -9
- package/lib/resolvers/page-name.resolver.d.ts +0 -8
- package/lib/resolvers/page.constant.d.ts +0 -1
- package/lib/resolvers/page.model.d.ts +0 -41
- package/lib/resolvers/page.resolver.d.ts +0 -20
- package/lib/resolvers/resolver.model.d.ts +0 -4
- package/lib/services/auth-keycloak.service.d.ts +0 -23
- package/lib/services/auth-microsoft.service.d.ts +0 -33
- package/lib/services/card-content.model.d.ts +0 -29
- package/lib/services/configurations.model.d.ts +0 -526
- package/lib/services/configurations.service.d.ts +0 -79
- package/lib/services/content-strip-multiple.model.d.ts +0 -80
- package/lib/services/event.model.d.ts +0 -222
- package/lib/services/event.service.d.ts +0 -39
- package/lib/services/logger.service.d.ts +0 -18
- package/lib/services/ms-office.model.d.ts +0 -6
- package/lib/services/multilingual-translations.service.d.ts +0 -23
- package/lib/services/nps-grid.service.d.ts +0 -15
- package/lib/services/subapplication-respond.service.d.ts +0 -26
- package/lib/services/telemetry.service.d.ts +0 -59
- package/lib/services/user-preference.model.d.ts +0 -34
- package/lib/services/user-preference.service.d.ts +0 -14
- package/lib/services/utility.service.d.ts +0 -34
- package/lib/services/value.service.d.ts +0 -11
- package/lib/services/widget-content.model.d.ts +0 -356
- package/lib/services/widget-content.service.d.ts +0 -54
- package/lib/services/widget-resolver.model.d.ts +0 -48
- package/lib/services/widget-search.model.d.ts +0 -114
- package/lib/services-new/data-transfer.service.d.ts +0 -10
- package/lib/services-new/widget-enroll.service.d.ts +0 -17
- package/public-api.d.ts +0 -97
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter,
|
|
3
|
-
import * as i1$1 from '@angular/material/
|
|
4
|
-
import {
|
|
2
|
+
import { Injectable, EventEmitter, Output, Inject, Component, NgModule, HostBinding, Input, Directive, HostListener, ViewChild, Pipe, LOCALE_ID } from '@angular/core';
|
|
3
|
+
import * as i1$1 from '@angular/material/dialog';
|
|
4
|
+
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
5
5
|
import { BehaviorSubject, ReplaySubject, Subject, fromEvent, timer, of, EMPTY, forkJoin } from 'rxjs';
|
|
6
|
-
import * as i3 from '@angular/material/
|
|
6
|
+
import * as i3 from '@angular/material/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';
|
|
@@ -13,16 +13,16 @@ import * as i6 from 'ngx-image-cropper';
|
|
|
13
13
|
import { ImageCropperModule } from 'ngx-image-cropper';
|
|
14
14
|
import * as i7 from '@angular/material/icon';
|
|
15
15
|
import { MatIconModule } from '@angular/material/icon';
|
|
16
|
-
import * as i8 from '@angular/material/
|
|
17
|
-
import {
|
|
18
|
-
import * as i9 from '@angular/material/
|
|
19
|
-
import {
|
|
20
|
-
import * as i10 from '@angular/material/
|
|
21
|
-
import {
|
|
16
|
+
import * as i8 from '@angular/material/button';
|
|
17
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
18
|
+
import * as i9 from '@angular/material/card';
|
|
19
|
+
import { MatCardModule } from '@angular/material/card';
|
|
20
|
+
import * as i10 from '@angular/material/slider';
|
|
21
|
+
import { MatSliderModule } from '@angular/material/slider';
|
|
22
22
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
23
|
-
import {
|
|
24
|
-
import * as i4 from '@angular/material/
|
|
25
|
-
import {
|
|
23
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
24
|
+
import * as i4 from '@angular/material/progress-spinner';
|
|
25
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
26
26
|
import _, { orderBy } from 'lodash';
|
|
27
27
|
import moment from 'moment';
|
|
28
28
|
import * as i3$1 from '@angular/router';
|
|
@@ -33,14 +33,23 @@ import * as i5 from '@ngx-translate/core';
|
|
|
33
33
|
import { TranslateModule } from '@ngx-translate/core';
|
|
34
34
|
import * as i1$3 from '@angular/platform-browser';
|
|
35
35
|
|
|
36
|
+
// const instanceConfigPath: string | null = window.location.host
|
|
37
|
+
// const locationHost: string | null = window.location.host
|
|
38
|
+
// if (!environment.production && Boolean(environment.sitePath)) {
|
|
39
|
+
// locationHost = environment.sitePath
|
|
40
|
+
// instanceConfigPath = environment.sitePath
|
|
41
|
+
// }
|
|
36
42
|
class ConfigurationsService {
|
|
43
|
+
// update as the single source of truth
|
|
37
44
|
constructor() {
|
|
38
45
|
this.appSetup = true;
|
|
46
|
+
// The url the user tried to access while landing in the app before accepting tnc
|
|
39
47
|
this.userUrl = '';
|
|
40
48
|
this.baseUrl = `assets/configurations`;
|
|
41
49
|
this.sitePath = `assets/configurations`;
|
|
42
50
|
this.hostPath = (window.location.host).replace(':', '_');
|
|
43
51
|
this.userRoles = null;
|
|
52
|
+
this.userAllRoles = null;
|
|
44
53
|
this.userGroups = null;
|
|
45
54
|
this.restrictedFeatures = null;
|
|
46
55
|
this.restrictedWidgets = null;
|
|
@@ -59,7 +68,9 @@ class ConfigurationsService {
|
|
|
59
68
|
this.nodebbUserProfile = null;
|
|
60
69
|
this.isAuthenticated = false;
|
|
61
70
|
this.isNewUser = false;
|
|
71
|
+
// pinnedApps
|
|
62
72
|
this.pinnedApps = new BehaviorSubject(new Set());
|
|
73
|
+
// Notifier
|
|
63
74
|
this.prefChangeNotifier = new ReplaySubject(1);
|
|
64
75
|
this.tourGuideNotifier = new ReplaySubject();
|
|
65
76
|
this.authChangeNotifier = new ReplaySubject(1);
|
|
@@ -67,9 +78,11 @@ class ConfigurationsService {
|
|
|
67
78
|
this.updateProfileObservable = this.updateProfile.asObservable();
|
|
68
79
|
this.updateTourGuide = new BehaviorSubject(true);
|
|
69
80
|
this.updateTourGuideObservable = this.updateTourGuide.asObservable();
|
|
81
|
+
// platform rating
|
|
70
82
|
this.updatePlatformRating = new BehaviorSubject({ bottom: '120px' });
|
|
71
83
|
this.updatePlatformRatingObservable$ = this.updatePlatformRating.asObservable();
|
|
72
84
|
this.languageTranslationFlag = new Subject();
|
|
85
|
+
// Preference Related Values
|
|
73
86
|
this.activeThemeObject = null;
|
|
74
87
|
this.activeFontObject = null;
|
|
75
88
|
this.isDarkMode = false;
|
|
@@ -87,12 +100,28 @@ class ConfigurationsService {
|
|
|
87
100
|
color: 'primary',
|
|
88
101
|
};
|
|
89
102
|
this.primaryNavBarConfig = null;
|
|
103
|
+
/* for temp Fix */
|
|
104
|
+
// setBaseUrl = (sitePath: string) => `assets/configurations/${(sitePath).replace(':', '_')}`
|
|
105
|
+
// setSitePath = (sitePath: string) => `assets/configurations/${(sitePath).replace(
|
|
106
|
+
// ':',
|
|
107
|
+
// '_',
|
|
108
|
+
// )}`
|
|
109
|
+
// setHostPath = (sitePath: string) => (sitePath).replace(':', '_')
|
|
90
110
|
this.welcomeTabs = null;
|
|
91
111
|
this.compentency = null;
|
|
112
|
+
// variable setting for csJwtToken
|
|
92
113
|
this.cstoken = '';
|
|
93
114
|
this.netcoreConfig = {};
|
|
115
|
+
this.completionSurvey = {};
|
|
94
116
|
this.changeNavBarFullView = new Subject();
|
|
95
117
|
this.openExploreMenuForMWeb = new Subject();
|
|
118
|
+
this.updateOrgReadData = new BehaviorSubject('');
|
|
119
|
+
this.updateOrgReadDataObservable = this.updateOrgReadData.asObservable();
|
|
120
|
+
// @Inject('env') env: any
|
|
121
|
+
// if (!env.production && Boolean(env.sitePath)) {
|
|
122
|
+
// locationHost = env.sitePath
|
|
123
|
+
// instanceConfigPath = env.sitePath
|
|
124
|
+
// }
|
|
96
125
|
}
|
|
97
126
|
updateGlobalProfile(state) {
|
|
98
127
|
this.updateProfile.next(state);
|
|
@@ -103,15 +132,18 @@ class ConfigurationsService {
|
|
|
103
132
|
updatePlatformRatingMethod(state) {
|
|
104
133
|
this.updatePlatformRating.next(state);
|
|
105
134
|
}
|
|
106
|
-
|
|
107
|
-
|
|
135
|
+
updateOrgData(id) {
|
|
136
|
+
this.updateOrgReadData.next(id);
|
|
137
|
+
}
|
|
138
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfigurationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
139
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfigurationsService, providedIn: 'root' }); }
|
|
108
140
|
}
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfigurationsService, decorators: [{
|
|
110
142
|
type: Injectable,
|
|
111
143
|
args: [{
|
|
112
144
|
providedIn: 'root',
|
|
113
145
|
}]
|
|
114
|
-
}], ctorParameters:
|
|
146
|
+
}], ctorParameters: () => [] });
|
|
115
147
|
|
|
116
148
|
class ValueService {
|
|
117
149
|
constructor(breakpointObserver) {
|
|
@@ -123,15 +155,15 @@ class ValueService {
|
|
|
123
155
|
.observe([Breakpoints.XSmall, Breakpoints.Small])
|
|
124
156
|
.pipe(map((res) => res.matches));
|
|
125
157
|
}
|
|
126
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
127
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
158
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ValueService, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
159
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ValueService, providedIn: 'root' }); }
|
|
128
160
|
}
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ValueService, decorators: [{
|
|
130
162
|
type: Injectable,
|
|
131
163
|
args: [{
|
|
132
164
|
providedIn: 'root',
|
|
133
165
|
}]
|
|
134
|
-
}], ctorParameters:
|
|
166
|
+
}], ctorParameters: () => [{ type: i1.BreakpointObserver }] });
|
|
135
167
|
|
|
136
168
|
class ImageCropComponent {
|
|
137
169
|
constructor(dialogRef, configSvc, snackBar, valueSvc, data) {
|
|
@@ -139,6 +171,7 @@ class ImageCropComponent {
|
|
|
139
171
|
this.configSvc = configSvc;
|
|
140
172
|
this.snackBar = snackBar;
|
|
141
173
|
this.valueSvc = valueSvc;
|
|
174
|
+
// need to set for creator Logo
|
|
142
175
|
this.data = new EventEmitter();
|
|
143
176
|
this.isRoundCrop = false;
|
|
144
177
|
this.isNotOfRequiredSize = false;
|
|
@@ -183,13 +216,15 @@ class ImageCropComponent {
|
|
|
183
216
|
}
|
|
184
217
|
});
|
|
185
218
|
}
|
|
219
|
+
// displays the default image
|
|
186
220
|
changeToDefaultImg($event) {
|
|
187
221
|
$event.target.src = this.configSvc.instanceConfig ?
|
|
188
222
|
this.configSvc.instanceConfig.logos.defaultContent : '';
|
|
189
223
|
}
|
|
224
|
+
// image cropping event
|
|
190
225
|
imageCropped(event) {
|
|
191
|
-
this.imageFileBase64 = event.base64;
|
|
192
|
-
this.cropimageFile = this.base64ImageToBlob(this.imageFileBase64);
|
|
226
|
+
this.imageFileBase64 = event.base64; // store the cropped image as a base64 value
|
|
227
|
+
this.cropimageFile = this.base64ImageToBlob(this.imageFileBase64); // convert the cropped image as a file
|
|
193
228
|
this.croppedHeight = event.height;
|
|
194
229
|
this.croppedWidth = event.width;
|
|
195
230
|
}
|
|
@@ -201,6 +236,7 @@ class ImageCropComponent {
|
|
|
201
236
|
continueToImageCrop() {
|
|
202
237
|
this.isNotOfRequiredSize = false;
|
|
203
238
|
}
|
|
239
|
+
// checks if the image is of the correct dimensions
|
|
204
240
|
thumbnailSizeDetection() {
|
|
205
241
|
const fr = new FileReader();
|
|
206
242
|
fr.readAsDataURL(this.imageFile);
|
|
@@ -223,16 +259,23 @@ class ImageCropComponent {
|
|
|
223
259
|
};
|
|
224
260
|
}
|
|
225
261
|
base64ImageToBlob(str) {
|
|
262
|
+
// extract content type and base64 payload from original string
|
|
226
263
|
const pos = str.indexOf(';base64,');
|
|
264
|
+
// var type = str.substring(5, pos);
|
|
227
265
|
const b64 = str.substr(pos + 8);
|
|
266
|
+
// decode base64
|
|
228
267
|
const imageContent = atob(b64);
|
|
268
|
+
// create an ArrayBuffer and a view (as unsigned 8-bit)
|
|
229
269
|
const buffer = new ArrayBuffer(imageContent.length);
|
|
230
270
|
const view = new Uint8Array(buffer);
|
|
271
|
+
// fill the view, using the decoded base64
|
|
231
272
|
for (let n = 0; n < imageContent.length; n = n + 1) {
|
|
232
273
|
view[n] = imageContent.charCodeAt(n);
|
|
233
274
|
}
|
|
275
|
+
// convert ArrayBuffer to Blob
|
|
234
276
|
const blob = new Blob([view], { type: 'image/png' });
|
|
235
277
|
const b = blob;
|
|
278
|
+
// Cast to a File() type
|
|
236
279
|
b.lastModifiedDate = new Date();
|
|
237
280
|
b.name = this.fileName;
|
|
238
281
|
const file = new File([blob], this.fileName, { type: 'image/jpeg' });
|
|
@@ -268,6 +311,7 @@ class ImageCropComponent {
|
|
|
268
311
|
scale: event.value,
|
|
269
312
|
};
|
|
270
313
|
}
|
|
314
|
+
// calls when apply button is clicked,and returns the cropped image
|
|
271
315
|
croppingImage() {
|
|
272
316
|
this.dialogRef.close(this.cropimageFile);
|
|
273
317
|
}
|
|
@@ -276,46 +320,48 @@ class ImageCropComponent {
|
|
|
276
320
|
this.canvasRotation = 0;
|
|
277
321
|
this.transform = {};
|
|
278
322
|
}
|
|
323
|
+
// closes the dialog box
|
|
279
324
|
close() {
|
|
280
325
|
this.dialogRef.close();
|
|
281
326
|
}
|
|
282
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
283
|
-
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: i2.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"] }] }); }
|
|
327
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageCropComponent, deps: [{ token: i1$1.MatDialogRef }, { token: ConfigurationsService }, { token: i3.MatSnackBar }, { token: ValueService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
328
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ImageCropComponent, isStandalone: false, 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: i2.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.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i10.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }] }); }
|
|
284
329
|
}
|
|
285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageCropComponent, decorators: [{
|
|
286
331
|
type: Component,
|
|
287
|
-
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:
|
|
288
|
-
}], ctorParameters:
|
|
332
|
+
args: [{ selector: 'ws-utils-image-crop', standalone: false, 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"] }]
|
|
333
|
+
}], ctorParameters: () => [{ type: i1$1.MatDialogRef }, { type: ConfigurationsService }, { type: i3.MatSnackBar }, { type: ValueService }, { type: undefined, decorators: [{
|
|
289
334
|
type: Inject,
|
|
290
|
-
args: [
|
|
291
|
-
}] }]
|
|
335
|
+
args: [MAT_DIALOG_DATA]
|
|
336
|
+
}] }], propDecorators: { data: [{
|
|
292
337
|
type: Output
|
|
293
338
|
}] } });
|
|
294
339
|
|
|
340
|
+
// @dynamic
|
|
295
341
|
class ImageCropModule {
|
|
296
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
297
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
342
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageCropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
343
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: ImageCropModule, declarations: [ImageCropComponent], imports: [CommonModule,
|
|
298
344
|
ImageCropperModule,
|
|
299
345
|
MatIconModule,
|
|
300
|
-
|
|
301
|
-
|
|
346
|
+
MatButtonModule,
|
|
347
|
+
MatDialogModule,
|
|
302
348
|
MatToolbarModule,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
349
|
+
MatDialogModule,
|
|
350
|
+
MatCardModule,
|
|
351
|
+
MatTooltipModule,
|
|
352
|
+
MatSliderModule], exports: [ImageCropComponent] }); }
|
|
353
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageCropModule, imports: [CommonModule,
|
|
308
354
|
ImageCropperModule,
|
|
309
355
|
MatIconModule,
|
|
310
|
-
|
|
311
|
-
|
|
356
|
+
MatButtonModule,
|
|
357
|
+
MatDialogModule,
|
|
312
358
|
MatToolbarModule,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
359
|
+
MatDialogModule,
|
|
360
|
+
MatCardModule,
|
|
361
|
+
MatTooltipModule,
|
|
362
|
+
MatSliderModule] }); }
|
|
317
363
|
}
|
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageCropModule, decorators: [{
|
|
319
365
|
type: NgModule,
|
|
320
366
|
args: [{
|
|
321
367
|
declarations: [ImageCropComponent],
|
|
@@ -323,13 +369,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
323
369
|
CommonModule,
|
|
324
370
|
ImageCropperModule,
|
|
325
371
|
MatIconModule,
|
|
326
|
-
|
|
327
|
-
|
|
372
|
+
MatButtonModule,
|
|
373
|
+
MatDialogModule,
|
|
328
374
|
MatToolbarModule,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
375
|
+
MatDialogModule,
|
|
376
|
+
MatCardModule,
|
|
377
|
+
MatTooltipModule,
|
|
378
|
+
MatSliderModule,
|
|
333
379
|
],
|
|
334
380
|
exports: [ImageCropComponent]
|
|
335
381
|
}]
|
|
@@ -337,12 +383,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
337
383
|
|
|
338
384
|
var EFeatures;
|
|
339
385
|
(function (EFeatures) {
|
|
386
|
+
// Playlists
|
|
340
387
|
EFeatures["PLAYLIST"] = "playlist";
|
|
341
388
|
EFeatures["PLAYLIST_CREATE"] = "playlistCreate";
|
|
342
389
|
EFeatures["PLAYLIST_ADD_NEW_CONTENT"] = "playlistAddNewContent";
|
|
343
390
|
EFeatures["PLAYLIST_REMOVE_EXISTING_CONTENT"] = "playlistRemoveExistingContent";
|
|
344
391
|
EFeatures["PLAYLIST_DELETE"] = "playlistDelete";
|
|
345
392
|
EFeatures["PLAYLIST_SHARE"] = "playlistShare";
|
|
393
|
+
// Goals
|
|
346
394
|
EFeatures["GOAL"] = "goal";
|
|
347
395
|
EFeatures["GOAL_CREATE_OWN"] = "goalCreateOwn";
|
|
348
396
|
EFeatures["GOAL_CREATE_SUGGESTED"] = "goalCreateSuggested";
|
|
@@ -352,6 +400,7 @@ var EFeatures;
|
|
|
352
400
|
EFeatures["GOAL_VIEW_ALL_GOALS_SECTION"] = "goalViewAllGoalsSection";
|
|
353
401
|
EFeatures["GOAL_VIEW_IN_PROGRESS_GOALS_SECTION"] = "goalViewInProgressGoalsSection";
|
|
354
402
|
EFeatures["GOAL_VIEW_COMPLETED_GOALS_SECTION"] = "goalViewCompletedGoalsSection";
|
|
403
|
+
// Navigator
|
|
355
404
|
EFeatures["NAVIGATOR"] = "navigator";
|
|
356
405
|
EFeatures["NAVIGATOR_VIEW_NAVIGATOR_CAROUSEL"] = "navigatorViewNavigatorCarousel";
|
|
357
406
|
EFeatures["NAVIGATOR_VIEW_ROLES_PAGE"] = "navigatorViewRolesPage";
|
|
@@ -395,6 +444,7 @@ var EFeatures;
|
|
|
395
444
|
EFeatures["NAVIGATOR_VIEW_DIFFERENT_COURSES_IN_PILLAR"] = "navigatorViewDifferentCoursesInPillar";
|
|
396
445
|
EFeatures["NAVIGATOR_VIEW_FULL_STACK_PAGE"] = "navigatorViewFullStackPage";
|
|
397
446
|
EFeatures["NAVIGATOR_VIEW_DIFFERENT_FULL_STACK_PROGRAMS"] = "navigatorViewDifferentFullStackPrograms";
|
|
447
|
+
// Catalog
|
|
398
448
|
EFeatures["CATALOG"] = "catalog";
|
|
399
449
|
EFeatures["CATALOG_VIEW_CATALOG_LIST"] = "catalogViewCatalogList";
|
|
400
450
|
EFeatures["CATALOG_SELECT_ITEM_FROM_CATALOG_LIST"] = "catalogSelectItemFromCatalogList";
|
|
@@ -402,6 +452,7 @@ var EFeatures;
|
|
|
402
452
|
EFeatures["CATALOG_VIEW_COURSES_STRIP"] = "catalogViewCoursesStrip";
|
|
403
453
|
EFeatures["CATALOG_VIEW_LEARNING_MODULES_STRIP"] = "catalogViewLearningModulesStrip";
|
|
404
454
|
EFeatures["CATALOG_VIEW_RESOURCES_STRIP"] = "catalogViewResourcesStrip";
|
|
455
|
+
// Marketing Page
|
|
405
456
|
EFeatures["MARKETING_PAGE"] = "marketingPage";
|
|
406
457
|
EFeatures["MARKETING_PAGE_VIEW_BRAND_ASSETS_PAGE"] = "marketingPageViewBrandAssetsPage";
|
|
407
458
|
EFeatures["MARKETING_PAGE_VIEW_CORPORATE_STRIP"] = "marketingPageViewCorporateStrip";
|
|
@@ -426,6 +477,7 @@ var EFeatures;
|
|
|
426
477
|
EFeatures["MARKETING_PAGE_VIEW_PRODUCT_AND_SUBSIDIARIES_PAGE"] = "marketingPageViewProductAndSubsidiariesPage";
|
|
427
478
|
EFeatures["MARKETING_PAGE_VIEW_PRODUCT_AND_SUBSIDIARIES_LIST"] = "marketingPageViewProductAndSubsidiariesList";
|
|
428
479
|
EFeatures["MARKETING_PAGE_SELECT_ANY_PRODUCT_AND_SUBSIDIARY"] = "marketingPageSelectAnyProductAndSubsidiary";
|
|
480
|
+
// Interests
|
|
429
481
|
EFeatures["INTERESTS"] = "interests";
|
|
430
482
|
EFeatures["INTERESTS_ADD_INTERESTS_FROM_SEARCH"] = "interestsAddInterestsFromSearch";
|
|
431
483
|
EFeatures["INTERESTS_ADD_INTERESTS_FROM_OUR_SUGGESTIONS_SECTION"] = "interestsAddInterestsFromOurSuggestionsSection";
|
|
@@ -434,6 +486,7 @@ var EFeatures;
|
|
|
434
486
|
EFeatures["INTERESTS_VIEW_MY_INTERESTS_SECTION"] = "interestsViewMyInterestsSection";
|
|
435
487
|
EFeatures["INTERESTS_VIEW_OWN_SUGGESTIONS_SECTION"] = "interestsViewOwnSuggestionsSection";
|
|
436
488
|
EFeatures["INTERESTS_VIEW_MORE_SUGGESTIONS_BUTTON"] = "interestsViewMoreSuggestionsButton";
|
|
489
|
+
// Feedback
|
|
437
490
|
EFeatures["FEEDBACK"] = "feedback";
|
|
438
491
|
EFeatures["FEEDBACK_VIEW_PLATFORM_FEEDBACK_SECTION"] = "feedbackViewPlatformFeedbackSection";
|
|
439
492
|
EFeatures["FEEDBACK_STAR_RATING_FOR_PLATFORM"] = "feedbackStarRatingForPlatform";
|
|
@@ -449,6 +502,7 @@ var EFeatures;
|
|
|
449
502
|
EFeatures["FEEDBACK_WRITING_ISSUE"] = "feedbackWritingIssue";
|
|
450
503
|
EFeatures["FEEDBACK_RESET_ISSUE"] = "feedbackResetIssue";
|
|
451
504
|
EFeatures["FEEDBACK_SUBMIT_ISSUE"] = "feedbackSubmitIssue";
|
|
505
|
+
// Contact Us
|
|
452
506
|
EFeatures["CONTACT_US"] = "contactUs";
|
|
453
507
|
EFeatures["CONTACT_US_VIEW_RAISE_AHD_SECTION"] = "contactUsViewRaiseAhdSection";
|
|
454
508
|
EFeatures["CONTACT_US_VIEW_MAIL_US_SECTION"] = "contactUsViewMailUsSection";
|
|
@@ -456,6 +510,7 @@ var EFeatures;
|
|
|
456
510
|
EFeatures["CONTACT_US_RAISE_AHD"] = "contactUsRaiseAhd";
|
|
457
511
|
EFeatures["CONTACT_US_WRITE_EMAIL"] = "contactUsWriteEmail";
|
|
458
512
|
EFeatures["CONTACT_US_DIAL_FROM_PHONE"] = "contactUsDialFromPhone";
|
|
513
|
+
// FAQs
|
|
459
514
|
EFeatures["FAQ"] = "faq";
|
|
460
515
|
EFeatures["FAQ_VIEW_LOGIN_FAQS"] = "faqViewLoginFaqs";
|
|
461
516
|
EFeatures["FAQ_VIEW_ODC_ACCESS_FAQS"] = "faqViewOdcAccessFaqs";
|
|
@@ -464,6 +519,7 @@ var EFeatures;
|
|
|
464
519
|
EFeatures["FAQ_VIEW_PROGRESS_COMPLETION_FAQS"] = "faqViewProgressCompletionFaqs";
|
|
465
520
|
EFeatures["FAQ_VIEW_VIDEO_FAQS"] = "faqViewVideoFaqs";
|
|
466
521
|
EFeatures["FAQ_VIEW_AUTHORING_FAQS"] = "faqViewAuthoringFaqs";
|
|
522
|
+
// Mobile Apps
|
|
467
523
|
EFeatures["MOBILE_APPS"] = "mobileApps";
|
|
468
524
|
EFeatures["MOBILE_APPS_VIEW_ANDROID_APP_SECTION"] = "mobileAppsViewAndroidAppSection";
|
|
469
525
|
EFeatures["MOBILE_APPS_DOWNLOAD_APP_FROM_PLAY_STORE"] = "mobileAppsDownloadAppFromPlayStore";
|
|
@@ -472,8 +528,10 @@ var EFeatures;
|
|
|
472
528
|
EFeatures["MOBILE_APPS_VIEW_IOS_APP_SECTION"] = "mobileAppsViewIosAppSection";
|
|
473
529
|
EFeatures["MOBILE_APPS_DOWNLOAD_IOS_APP"] = "mobileAppsDownloadIosApp";
|
|
474
530
|
EFeatures["MOBILE_APPS_VIEW_QR_CODE_FOR_IOS_APP"] = "mobileAppsViewQrCodeForIosApp";
|
|
531
|
+
// About Us
|
|
475
532
|
EFeatures["ABOUT_US"] = "aboutUs";
|
|
476
533
|
EFeatures["ABOUT_US_VIEW_ABOUT_US_PAGE_SECTIONS"] = "aboutUsViewAboutUsPageSections";
|
|
534
|
+
// Settings
|
|
477
535
|
EFeatures["SETTINGS"] = "settings";
|
|
478
536
|
EFeatures["SETTINGS_VIEW_LANGUAGE_SECTION"] = "settingsViewLanguageSection";
|
|
479
537
|
EFeatures["SETTINGS_VIEW_FONT_SIZE_SECTION"] = "settingsViewFontSizeSection";
|
|
@@ -481,6 +539,7 @@ var EFeatures;
|
|
|
481
539
|
EFeatures["SETTINGS_CHANGE_LANGUAGE"] = "settingsChangeLanguage";
|
|
482
540
|
EFeatures["SETTINGS_CHANGE_FONT_SIZE"] = "settingsChangeFontSize";
|
|
483
541
|
EFeatures["SETTINGS_CHANGE_THEME"] = "settingsChangeTheme";
|
|
542
|
+
// Login Page
|
|
484
543
|
EFeatures["LOGIN_PAGE"] = "loginPage";
|
|
485
544
|
EFeatures["LOGIN_PAGE_LOGIN_FOR_INFOSCIONS"] = "loginPageLoginForInfoscions";
|
|
486
545
|
EFeatures["LOGIN_PAGE_LOGIN_FOR_SUBSIDIARIES"] = "loginPageLoginForSubsidiaries";
|
|
@@ -489,6 +548,7 @@ var EFeatures;
|
|
|
489
548
|
EFeatures["LOGIN_PAGE_TERMS_OF_USE"] = "loginPageTermsOfUse";
|
|
490
549
|
EFeatures["LOGIN_PAGE_FAQS"] = "loginPageFaqs";
|
|
491
550
|
EFeatures["LOGIN_PAGE_CONTACT_US"] = "loginPageContactUs";
|
|
551
|
+
// TOC Page
|
|
492
552
|
EFeatures["TOC_PAGE"] = "tocPage";
|
|
493
553
|
EFeatures["TOC_PAGE_VIEW_OVERVIEW_SECTION"] = "tocPageViewOverviewSection";
|
|
494
554
|
EFeatures["TOC_PAGE_VIEW_INSTRUCTOR_LED_SECTION"] = "tocPageViewInstructorLedSection";
|
|
@@ -526,6 +586,7 @@ var EFeatures;
|
|
|
526
586
|
EFeatures["TOC_PAGE_START_OVER_THE_COURSE"] = "tocPageStartOverTheCourse";
|
|
527
587
|
EFeatures["TOC_PAGE_GO_TO_COURSE_QUIZ"] = "tocPageGoToCourseQuiz";
|
|
528
588
|
EFeatures["TOC_PAGE_GO_TO_COURSE_HANDS_ON"] = "tocPageGoToCourseHandsOn";
|
|
589
|
+
// Navbar
|
|
529
590
|
EFeatures["NAVBAR"] = "navbar";
|
|
530
591
|
EFeatures["NAVBAR_VIEW_LOGO"] = "navbarViewLogo";
|
|
531
592
|
EFeatures["NAVBAR_CATALOG_ICON"] = "navbarCatalogIcon";
|
|
@@ -534,6 +595,7 @@ var EFeatures;
|
|
|
534
595
|
EFeatures["NAVBAR_SETTINGS_ICON"] = "navbarSettingsIcon";
|
|
535
596
|
EFeatures["NAVBAR_SEARCH_ICON"] = "navbarSearchIcon";
|
|
536
597
|
EFeatures["NAVBAR_APPS_ICON"] = "navbarAppsIcon";
|
|
598
|
+
// Home Page
|
|
537
599
|
EFeatures["HOME_PAGE"] = "homePage";
|
|
538
600
|
EFeatures["HOME_PAGE_VIEW_CAROUSEL"] = "homePageViewCarousel";
|
|
539
601
|
EFeatures["HOME_PAGE_VIEW_CONTINUE_LEARNING_STRIP"] = "homePageViewContinueLearningStrip";
|
|
@@ -545,10 +607,12 @@ var EFeatures;
|
|
|
545
607
|
EFeatures["HOME_PAGE_VIEW_TRENDING_STRIP"] = "homePageViewTrendingStrip";
|
|
546
608
|
EFeatures["HOME_PAGE_SHOW_COMPLETED_FILTER"] = "homePageShowCompletedFilter";
|
|
547
609
|
EFeatures["HOME_PAGE_SHOW_RESOURCES_FILTER"] = "homePageShowResourcesFilter";
|
|
610
|
+
// TNC Page
|
|
548
611
|
EFeatures["TNC_PAGE"] = "tncPage";
|
|
549
612
|
EFeatures["TNC_PAGE_VIEW_CONTEST_RULES_SECTION"] = "tncPageViewContestRulesSection";
|
|
550
613
|
EFeatures["TNC_PAGE_VIEW_DATA_PRIVACY_SECTION"] = "tncPageViewDataPrivacySection";
|
|
551
614
|
EFeatures["TNC_PAGE_ACCEPT_TERMS_AND_CONDITIONS"] = "tncPageAcceptTermsAndConditions";
|
|
615
|
+
// Blogs
|
|
552
616
|
EFeatures["BLOGS"] = "blogs";
|
|
553
617
|
EFeatures["BLOG_VIEW_OTHERS_BLOGS"] = "blogViewOthersBlogs";
|
|
554
618
|
EFeatures["BLOGS_LIKE_OTHER_BLOGS"] = "blogsLikeOtherBlogs";
|
|
@@ -565,6 +629,7 @@ var EFeatures;
|
|
|
565
629
|
EFeatures["BLOGS_DELETE_MY_RESPONSE"] = "blogsDeleteMyResponse";
|
|
566
630
|
EFeatures["BLOGS_VIEW_DRAFTS_SECTION"] = "blogsViewDraftsSection";
|
|
567
631
|
EFeatures["BLOGS_VIEW_PUBLISHED_SECTION"] = "blogsViewPublishedSection";
|
|
632
|
+
// Question and Answer
|
|
568
633
|
EFeatures["QUESTION_AND_ANSWER"] = "questionAndAnswer";
|
|
569
634
|
EFeatures["QUESTION_AND_ANSWER_VIEW_ALL_QUESTIONS_AND_ANSWERS"] = "questionAndAnswerViewAllQuestionsAndAnswers";
|
|
570
635
|
EFeatures["QUESTION_AND_ANSWER_VIEW_ONLY_UNANSWERED_QUESTIONS"] = "questionAndAnswerViewOnlyUnansweredQuestions";
|
|
@@ -580,13 +645,16 @@ var EFeatures;
|
|
|
580
645
|
EFeatures["QUESTION_AND_ANSWER_PUBLISH_SAVED_QUESTION"] = "questionAndAnswerPublishedSavedQuestion";
|
|
581
646
|
EFeatures["QUESTION_AND_ANSWER_VIEW_DRAFTS_SECTION"] = "questionAndAnswerViewDraftsSection";
|
|
582
647
|
EFeatures["QUESTION_AND_ANSWER_VIEW_PUBLISHED_SECTION"] = "questionAndAnswerViewPublishedSection";
|
|
648
|
+
// Badges
|
|
583
649
|
EFeatures["BADGES"] = "badges";
|
|
584
650
|
EFeatures["BADGES_VIEW_RECENTLY_EARNED_BADGE"] = "badgesViewRecentlyEarnedBadge";
|
|
585
651
|
EFeatures["BADGES_VIEW_ALL_EARNED_BADGES"] = "badgesViewAllEarnedBadges";
|
|
586
652
|
EFeatures["BADGES_VIEW_NEXT_TARGETTED_BADGES"] = "badgesViewNextTargettedBadges";
|
|
653
|
+
// Hands on Dashboard
|
|
587
654
|
EFeatures["HANDS_ON_DASHBOARD"] = "handsOnDashboard";
|
|
588
655
|
EFeatures["HANDS_ON_DASHBOARD_VIEW_MY_DASHBOARD"] = "handsOnDashboardViewMyDashboard";
|
|
589
656
|
EFeatures["HANDS_ON_DASHBOARD_VIEW_SHARED_PROFILE_SECTION"] = "handsOnDashboardViewSharedProfileSection";
|
|
657
|
+
// Learning History
|
|
590
658
|
EFeatures["LEARNING_HISTORY"] = "learningHistory";
|
|
591
659
|
EFeatures["LEARNING_HISTORY_VIEW_PROGRAMS_SECTION"] = "learningHistoryViewProgramsSection";
|
|
592
660
|
EFeatures["LEARNING_HISTORY_VIEW_COURSES_SECTION"] = "learningHistoryViewCoursesSection";
|
|
@@ -595,6 +663,7 @@ var EFeatures;
|
|
|
595
663
|
EFeatures["LEARNING_HISTORY_VIEW_CERTIFICATIONS_SECTION"] = "learningHistoryViewCertificationsSection";
|
|
596
664
|
EFeatures["LEARNING_HISTORY_APPLY_COMPLETED_FILTER"] = "learningHistoryApplyCompletedFilter";
|
|
597
665
|
EFeatures["LEARNING_HISTORY_VIEW_MORE_BUTTON"] = "learningHistoryViewMoreButton";
|
|
666
|
+
// Learning Time
|
|
598
667
|
EFeatures["LEARNING_TIME"] = "learningTime";
|
|
599
668
|
EFeatures["LEARNING_TIME_VIEW_LEARNING_TIME_GRAPH"] = "learningTimeViewLearningTimeGraph";
|
|
600
669
|
EFeatures["LEARNING_TIME_APPLY_BAR_GRAPH_FILTER"] = "learningTimeApplyBarGraphFilter";
|
|
@@ -602,23 +671,28 @@ var EFeatures;
|
|
|
602
671
|
EFeatures["LEARNING_TIME_APPLY_TIME_SPENT_FILTER"] = "learningTimeApplyTimeSpentFilter";
|
|
603
672
|
EFeatures["LEARNING_TIME_APPLY_APP_AVERAGE_FILTER"] = "learningTimeApplyAppAverageFilter";
|
|
604
673
|
EFeatures["LEARNING_TIME_APPLY_USER_AVERAGE_OVER_PERIOD_FILTER"] = "learningTimeApplyUserAverageOverPeriodFilter";
|
|
674
|
+
// Notification
|
|
605
675
|
EFeatures["NOTIFICATION"] = "notification";
|
|
606
676
|
EFeatures["NOTIFICATION_VIEW_RECENT_BADGE_EARNED"] = "notificationViewRecentBadgeEarned";
|
|
607
677
|
EFeatures["NOTIFICATION_VIEW_SHARED_PLAYLIST"] = "notificationViewSharedPlaylist";
|
|
608
678
|
EFeatures["NOTIFICATION_VIEW_SHARED_GOALS"] = "notificationViewSharedGoals";
|
|
679
|
+
// Profile
|
|
609
680
|
EFeatures["PROFILE"] = "profile";
|
|
610
681
|
EFeatures["PROFILE_VIEW_BASIC_INFORMATION"] = "profileViewBasicInformation";
|
|
611
682
|
EFeatures["PROFILE_VIEW_RECENTLY_LEARNED_COURSES"] = "profileViewRecentlyLearnedCourses";
|
|
612
683
|
EFeatures["PROFILE_VIEW_LIKED_ITEMS"] = "profileViewLikedItems";
|
|
613
684
|
EFeatures["PROFILE_VIEW_BADGES_EARNED"] = "profileViewBadgesEarned";
|
|
685
|
+
// Behavioural Skills
|
|
614
686
|
EFeatures["BEHAVIORAL_SKILLS"] = "behavioralSkills";
|
|
615
687
|
EFeatures["BEHAVIORAL_SKILLS_VIEW_MODEL_CLIENT_INTERACTIONS"] = "behavioralSkillsViewModalClientInteractions";
|
|
616
688
|
EFeatures["BEHAVIORAL_SKILLS_VIEW_CLIENT_INTERACTION_TESTS"] = "behavioralSkillsViewClientInteractionTests";
|
|
689
|
+
// Certifications
|
|
617
690
|
EFeatures["CERTIFICATIONS"] = "certifications";
|
|
618
691
|
EFeatures["CERTIFICATIONS_VIEW_MY_APPROVALS_SECTION"] = "certificationsViewMyApprovalsSection";
|
|
619
692
|
EFeatures["CERTIFICATIONS_VIEW_MY_REQUESTS_SECTION"] = "certificationsViewMyRequestsSection";
|
|
620
693
|
EFeatures["CERTIFICATIONS_VIEW_MY_CERTIFICATIONS_SECTION"] = "certificationsViewMyCertificationsSection";
|
|
621
694
|
EFeatures["CERTIFICATIONS_APPLY_COMPLETION_STATUS_FILTER"] = "certificationsApplyCompletionStatusFilter";
|
|
695
|
+
// Code Crack
|
|
622
696
|
EFeatures["CODE_CRACK"] = "codeCrack";
|
|
623
697
|
EFeatures["CODE_CRACK_VIEW_PUZZLE_MANIA"] = "codeCrackViewPuzzleMania";
|
|
624
698
|
EFeatures["CODE_CRACK_VIEW_CODE_CRACK"] = "codeCrackViewCodeCrack";
|
|
@@ -628,6 +702,7 @@ var EFeatures;
|
|
|
628
702
|
EFeatures["CODE_CRACK_START_CODE_CRACK_TEST"] = "codeCrackStartCodeCrackTest";
|
|
629
703
|
EFeatures["CODE_CRACK_START_PUZZLE_MANIA"] = "codeCrackStartPuzzleMania";
|
|
630
704
|
EFeatures["CODE_CRACK_START_TECHNOLOGY_PLAYGROUND"] = "codeCrackStartTechnologyPlayground";
|
|
705
|
+
// Instructor Led Training
|
|
631
706
|
EFeatures["INSTRUCTOR_LED_TRAINING"] = "instructorLedTraining";
|
|
632
707
|
EFeatures["INSTRUCTOR_LED_TRAINING_VIEW_TRAINING_SCHEDULE_SECTION"] = "instructorLedTrainingViewTrainingScheduleSection";
|
|
633
708
|
EFeatures["INSTRUCTOR_LED_TRAINING_VIEW_FEEDBACK_SECTION"] = "instructorLedTrainingViewFeedbackSection";
|
|
@@ -635,6 +710,7 @@ var EFeatures;
|
|
|
635
710
|
EFeatures["INSTRUCTOR_LED_TRAINING_SEARCH_TRAINING"] = "instructorLedTrainingSearchTraining";
|
|
636
711
|
EFeatures["INSTRUCTOR_LED_TRAINING_REGISTER_FOR_TRAINING"] = "instructorLedTrainingRegisterForTraining";
|
|
637
712
|
EFeatures["INSTRUCTOR_LED_TRAINING_GIVE_TRAINING_FEEDBACK"] = "instructorLedTrainingGiveTrainingFeedback";
|
|
713
|
+
// LeaderBoard
|
|
638
714
|
EFeatures["LEADERBOARD"] = "leaderboard";
|
|
639
715
|
EFeatures["LEADERBOARD_VIEW_WEEKLY_SECTION"] = "leaderboardViewWeeklySection";
|
|
640
716
|
EFeatures["LEADERBOARD_VIEW_MONTHLY_SECTION"] = "leaderboardViewMonthlySection";
|
|
@@ -642,9 +718,11 @@ var EFeatures;
|
|
|
642
718
|
EFeatures["LEADERBOARD_APPLY_LEARNER_COLLABORATOR_FILTER"] = "leaderboardApplyLearnerCollaboratorFilter";
|
|
643
719
|
EFeatures["LEADERBOARD_BACK_DATE_BUTTON"] = "leaderboardBackDatebutton";
|
|
644
720
|
EFeatures["LEADERBOARD_FORWARD_DATE_BUTTON"] = "leaderboardForwardDateButton";
|
|
721
|
+
// Playground
|
|
645
722
|
EFeatures["PLAYGROUND"] = "playground";
|
|
646
723
|
EFeatures["PLAYGROUND_VIEW_TECHNOLOGY_PLAYGROUNDS_STRIP"] = "playgroundViewTechnologyPlaygorundsStrip";
|
|
647
724
|
EFeatures["PLAYGROUND_VIEW_ASSESSMENTS_PLAYGROUNDS_STRIP"] = "playgroundViewAssessmentsPlaygroundsStrip";
|
|
725
|
+
// Puzzle Mania
|
|
648
726
|
EFeatures["PUZZLE_MANIA"] = "puzzleMania";
|
|
649
727
|
EFeatures["PUZZLE_MANIA_VIEW_PUZZLE_MANIA"] = "puzzleManiaViewPuzzleMania";
|
|
650
728
|
EFeatures["PUZZLE_MANIA_VIEW_CODE_CRACK"] = "puzzleManiaViewCodeCrack";
|
|
@@ -654,19 +732,23 @@ var EFeatures;
|
|
|
654
732
|
EFeatures["PUZZLE_MANIA_START_CODE_CRACK_TEST"] = "puzzleManiaStartCodeCrackTest";
|
|
655
733
|
EFeatures["PUZZLE_MANIA_START_PUZZLE_MANIA"] = "puzzleManiaStartPuzzleMania";
|
|
656
734
|
EFeatures["PUZZLE_MANIA_START_TECHNOLOGY_PLAYGROUND"] = "puzzleManiaStartTechnologyPlayground";
|
|
735
|
+
// Full Stack Sales Leader
|
|
657
736
|
EFeatures["FULL_STACK_SALES_LEADER"] = "fullStackSalesLeader";
|
|
658
737
|
EFeatures["FULL_STACK_SALES_LEADER_WATCH_LEADER_VIDEO"] = "fullStackSalesLeaderWatchLeaderVideo";
|
|
659
738
|
EFeatures["FULL_STACK_SALES_LEADER_EMBARK_ON_THIS_LEARNING_JOURNEY_BUTTON"] = "fullStackSalesLeaderEmbarkOnThisLearningJourneyButton";
|
|
660
739
|
EFeatures["FULL_STACK_SALES_LEADER_QUICK_TOUR_VIDEO_LINK"] = "fullStackSalesLeaderQuickTourVideoLink";
|
|
661
740
|
EFeatures["FULL_STACK_SALES_LEADER_FEEDBACK_LINK"] = "fullStackSalesLeaderFeedbackLink";
|
|
662
741
|
EFeatures["FULL_STACK_SALES_LEADER_DROP_NOTE_LINK"] = "fullStackSalesLeaderDropNoteLink";
|
|
742
|
+
// Onboarding
|
|
663
743
|
EFeatures["ONBOARDING"] = "onboarding";
|
|
664
744
|
EFeatures["ONBOARDING_VIEW_DC_ONBOARDING_PROGRAMS_STRIP"] = "onboardingViewDcOnboardingProgramsStrip";
|
|
665
745
|
EFeatures["ONBOARDING_VIEW_ORGANISATIONAL_ONBOARDING_PROGRAMS_STRIP"] = "onboardingViewOrganisationalOnboardingProgramsStrip";
|
|
666
746
|
EFeatures["ONBOARDING_VIEW_ROLE_BASED_ONBOARDING_PROGRAMS_STRIP"] = "onboardingViewRoleBasedOnboardingProgramsStrip";
|
|
667
747
|
EFeatures["ONBOARDING_VIEW_UNIT_AND_PROJECT_ONBOARDING_PROGRAMS_STRIP"] = "onboardingViewUnitAndProjectOnboardingProgramsStrip";
|
|
748
|
+
// Search
|
|
668
749
|
EFeatures["SEARCH"] = "search";
|
|
669
750
|
EFeatures["SEARCH_SEARCHING_CONTENT"] = "searchSearchingContent";
|
|
751
|
+
// Knowledge Hub
|
|
670
752
|
EFeatures["KNOWLEDGE_HUB"] = "knowledgeHub";
|
|
671
753
|
EFeatures["KNOWLEDGE_HUB_SUBMIT_KNOWLEDGE_ARTIFACTS"] = "knowledgeHubSubmitKnowledgeArtifacts";
|
|
672
754
|
EFeatures["KNOWLEDGE_HUB_VIEW_TOP_PROJECTS_SECTION"] = "knowledgeHubViewTopProjectsSection";
|
|
@@ -677,6 +759,7 @@ var EFeatures;
|
|
|
677
759
|
EFeatures["KNOWLEDGE_HUB_VIEW_DOCUMENTS_STRIP"] = "knowledgeHubViewDocumentsStrip";
|
|
678
760
|
EFeatures["KNOWLEDGE_HUB_VIEW_TOOLS_STRIP"] = "knowledgeHubViewProjectReferencesStrip";
|
|
679
761
|
EFeatures["KNOWLEDGE_HUB_VIEW_MARKETING_STRIP"] = "knowledgeHubViewMarketingStrip";
|
|
762
|
+
// Channels
|
|
680
763
|
EFeatures["CHANNELS"] = "channels";
|
|
681
764
|
EFeatures["CHANNELS_VIEW_LEADERSHIP_SECTION"] = "channelsViewLeadershipSection";
|
|
682
765
|
EFeatures["CHANNELS_VIEW_RAVI_KUMAR_PAGE"] = "channelsViewRaviKumarPage";
|
|
@@ -708,14 +791,17 @@ var EFeatures;
|
|
|
708
791
|
EFeatures["CHANNELS_VIEW_iGOT_KNOWLEDGE_INSTITUTE_PAGE"] = "channelsViewiGOTKnowledgeInstitutePage";
|
|
709
792
|
EFeatures["CHANNELS_VIEW_CMT_LEARNING_HUB_PAGE"] = "channelsViewCmtLearningHubPage";
|
|
710
793
|
EFeatures["CHANNELS_VIEW_FULL_STACK_SALES_LEADERS_PAGE"] = "channelsViewFullStackSalesLeaderPage";
|
|
794
|
+
// Experience Wow Page
|
|
711
795
|
EFeatures["EXPERIENCE_WOW_PAGE"] = "experienceWowPage";
|
|
712
796
|
EFeatures["EXPERIENCE_WOW_PAGE_VIEW_PAGE_SECTIONS"] = "experienceWowPageViewPageSections";
|
|
713
797
|
EFeatures["EXPERIENCE_WOW_PAGE_CHECK_iGOT_STATISTICS"] = "experienceWowPageCheckiGOTStatistics";
|
|
714
798
|
EFeatures["EXPERIENCE_WOW_PAGE_CHECK_iGOT_ME_STATISTICS"] = "experienceWowPageCheckiGOTMeStatistics";
|
|
715
799
|
EFeatures["EXPERIENCE_WOW_PAGE_PROVIDE_SUGGESTIONS"] = "experienceWowPageProvideSuggestions";
|
|
716
800
|
EFeatures["EXPERIENCE_WOW_PAGE_SEND_MAIL_FOR_BECOMING_COCREATOR"] = "experienceWowPageSendMailForBecomingCocreator";
|
|
801
|
+
// iGOT Radio
|
|
717
802
|
EFeatures["iGOT_RADIO"] = "iGOTRadio";
|
|
718
803
|
EFeatures["iGOT_RADIO_VIEW_PODCASTS_STRIP"] = "iGOTRadioViewPodcastsStrip";
|
|
804
|
+
// iGOT TV
|
|
719
805
|
EFeatures["iGOT_TV"] = "iGOTTv";
|
|
720
806
|
EFeatures["iGOT_TV_VIEW_JUST_FOR_YOU_SECTION"] = "iGOTTvViewJustForYouSection";
|
|
721
807
|
EFeatures["iGOT_TV_VIEW_MUST_VIEW_STRIP"] = "iGOTTvViewMustViewStrip";
|
|
@@ -726,30 +812,41 @@ var EFeatures;
|
|
|
726
812
|
EFeatures["iGOT_TV_VIEW_PREVIOUS_EVENTS_LIST"] = "iGOTTvViewPreviousEventsList";
|
|
727
813
|
EFeatures["iGOT_TV_VIEW_LIVE_EVENTS_LIST"] = "iGOTTvViewLiveEventsList";
|
|
728
814
|
EFeatures["iGOT_TV_VIEW_UPCOMING_EVENTS_LIST"] = "iGOTTvViewUpcomingEventsList";
|
|
815
|
+
// Leadership Messages
|
|
729
816
|
EFeatures["LEADERSHIP_MESSAGES"] = "leadershipMessages";
|
|
730
817
|
EFeatures["LEADERSHIP_MESSAGES_VIEW_LEADERSHIP_VIDEO"] = "leadershipMessagesViewLeadershipVideo";
|
|
818
|
+
// Living Labs
|
|
731
819
|
EFeatures["LIVING_LABS"] = "livingLabs";
|
|
732
820
|
EFeatures["LIVING_LABS_VIEW_LIVING_LABS_STRIP"] = "livingLabsViewLivingLabsStrip";
|
|
821
|
+
// Americas Confluence 2018
|
|
733
822
|
EFeatures["AMERICAS_CONFLUENECE"] = "americasConfluence";
|
|
734
823
|
EFeatures["AMERICAS_CONFLUENECE_VIEW_CONFLUENCE_VIDEOS_STRIPS"] = "americasConfluenceViewConfluenceVideosStrips";
|
|
824
|
+
// APAC Confluence 2019
|
|
735
825
|
EFeatures["APAC_CONFLUENECE"] = "apacConfluence";
|
|
736
826
|
EFeatures["APAC_CONFLUENECE_VIEW_CONFLUENCE_VIDEOS_STRIPS"] = "apacConfluenceViewConfluenceVideosStrips";
|
|
827
|
+
// EMEA Confluence 2018
|
|
737
828
|
EFeatures["EMEA_CONFLUENECE"] = "emeaConfluence";
|
|
738
829
|
EFeatures["EMEA_CONFLUENECE_VIEW_CONFLUENCE_VIDEOS_STRIPS"] = "emeaConfluenceViewConfluenceVideosStrips";
|
|
830
|
+
// Connect 2019
|
|
739
831
|
EFeatures["CONNECT"] = "connect";
|
|
740
832
|
EFeatures["CONNECT_VIEW_CONTENT_STRIP"] = "connectViewContentStrip";
|
|
833
|
+
// Live Events
|
|
741
834
|
EFeatures["LIVE_EVENTS"] = "liveEvents";
|
|
742
835
|
EFeatures["LIVE_EVENTS_WATCH_LIVE"] = "liveEventsWatchLive";
|
|
743
836
|
EFeatures["LIVE_EVENTS_WATCH_CLASSROOM_BROADCAST"] = "liveEventsWatchClassroomBroadcast";
|
|
744
837
|
EFeatures["LIVE_EVENTS_WATCH_THREE_SIXTY_VIDEO"] = "liveEventsWatchThreeSixtyVideo";
|
|
745
838
|
EFeatures["LIVE_EVENTS_WATCH_FAMILY_MATTERS_VIDEO"] = "liveEventsWatchFamilyMattersVideo";
|
|
746
839
|
EFeatures["LIVE_EVENTS_WATCH_CONFLUENCE_EVENTS"] = "liveEventsWatchConfluenceEvents";
|
|
840
|
+
// Digital Assistant Tour
|
|
747
841
|
EFeatures["DIGITAL_ASSISTANT_TOUR"] = "digitalAssistantTour";
|
|
748
842
|
EFeatures["DIGITAL_ASSISTANT_TOUR_WATCH_TOUR_VIDEO"] = "digitalAssistantTourWatchTourVideo";
|
|
843
|
+
// Quick Tour
|
|
749
844
|
EFeatures["QUICK_TOUR"] = "quickTour";
|
|
750
845
|
EFeatures["QUICK_TOUR_WATCH_TOUR_VIDEO"] = "quickTourWatchTourVideo";
|
|
846
|
+
// Logout
|
|
751
847
|
EFeatures["LOGOUT"] = "logout";
|
|
752
848
|
EFeatures["LOGOUT_LOGS_OUT_FROM_APPLICATION"] = "logoutLogsOutFromApplication";
|
|
849
|
+
// My Analytics
|
|
753
850
|
EFeatures["MY_ANALYTICS"] = "myAnalytics";
|
|
754
851
|
EFeatures["MY_ANALYTICS_APPLY_QUARTER_FILTERS"] = "myAnalyticsApplyQuarterFilters";
|
|
755
852
|
EFeatures["MY_ANALYTICS_VIEW_MY_LEARNING_SECTION"] = "myAnalyticsViewMyLearningSection";
|
|
@@ -793,6 +890,7 @@ var EFeatures;
|
|
|
793
890
|
EFeatures["MY_ANALYTICS_VIEW_iGOT_LIVE"] = "myAnalyticsViewiGOTLive";
|
|
794
891
|
EFeatures["MY_ANALYTICS_VIEW_TOP_COURSES_BY_USER_UNIT"] = "myAnalyticsViewTopCoursesByUserUnit";
|
|
795
892
|
EFeatures["MY_ANALYTICS_VIEW_TOP_COURSES_BY_USER_PEERS"] = "myAnalyticsViewTopCoursesbyUserPeers";
|
|
893
|
+
// Learning Analytics
|
|
796
894
|
EFeatures["LEARNING_ANALYTICS"] = "learningAnalytics";
|
|
797
895
|
EFeatures["LEARNING_ANALYTICS_SEARCH_FOR_PARTICIPANTS_AND_EDUCATORS"] = "learningAnalyticsSearchForParticipantsAndEducators";
|
|
798
896
|
EFeatures["LEARNING_ANALYTICS_UNIT_FILTER"] = "learningAnalyticsUnitFilter";
|
|
@@ -845,8 +943,10 @@ var EFeatures;
|
|
|
845
943
|
EFeatures["LEARNING_ANALYTICS_COURSES_BY_TOPIC"] = "learningAnalyticsCoursesByTopic";
|
|
846
944
|
EFeatures["LEARNING_ANALYTICS_COURSES_BY_ABCD"] = "learningAnalyticsCoursesByAbcd";
|
|
847
945
|
EFeatures["LEARNING_ANALYTICS_COURSES_BY_SKILL"] = "learningAnalyticsCoursesBySkill";
|
|
946
|
+
// Apps Page
|
|
848
947
|
EFeatures["APPS_PAGE"] = "appsPage";
|
|
849
948
|
EFeatures["APPS_PAGE_VIEW_DIFFERENT_APPS_ICONS"] = "appsPageViewDifferentAppsIcons";
|
|
949
|
+
// Course Card
|
|
850
950
|
EFeatures["COURSE_CARD"] = "courseCard";
|
|
851
951
|
EFeatures["COURSE_CARD_LIKE_THE_COURSE_BUTTON"] = "courseCardLikeTheCourseButton";
|
|
852
952
|
EFeatures["COURSE_CARD_SHARE_THE_COURSE_BUTTON"] = "courseCardShareTheCourseButton";
|
|
@@ -857,6 +957,7 @@ var EFeatures;
|
|
|
857
957
|
EFeatures["COURSE_CARD_VIEW_TOC_OPTION"] = "courseCardViewTocOption";
|
|
858
958
|
EFeatures["COURSE_CARD_COHORTS_OPTION"] = "courseCardCohortsOption";
|
|
859
959
|
EFeatures["COURSE_CARD_ANALYTICS_OPTION"] = "courseCardAnalyticsOption";
|
|
960
|
+
// Search Results Page
|
|
860
961
|
EFeatures["SEARCH_RESULTS_PAGE"] = "searchResultsPage";
|
|
861
962
|
EFeatures["SEARCH_RESULTS_PAGE_VIEW_LEARNING_SECTION"] = "searchResultsPageViewLearningSection";
|
|
862
963
|
EFeatures["SEARCH_RESULTS_PAGE_VIEW_CERTIFICATIONS_SECTION"] = "searchResultsPageViewCertificationsSection";
|
|
@@ -879,6 +980,7 @@ var EFeatures;
|
|
|
879
980
|
EFeatures["SEARCH_RESULTS_PAGE_GROUPS_FILTER"] = "searchResultsPageGroupsFilter";
|
|
880
981
|
EFeatures["SEARCH_RESULTS_PAGE_VIEW_RESULT_CARDS"] = "searchResultsPageViewResultCards";
|
|
881
982
|
EFeatures["SEARCH_RESULTS_PAGE_VIEW_RELATED_CONCEPTS"] = "searchResultsPageViewRelatedConcepts";
|
|
983
|
+
// Lab42 Pages
|
|
882
984
|
EFeatures["LAB_42_INTERVIEW"] = "interview";
|
|
883
985
|
EFeatures["LAB_42_DIALOGUE"] = "dialogue";
|
|
884
986
|
EFeatures["LAB_42_STRATEGY_MAP"] = "strategyMap";
|
|
@@ -886,6 +988,7 @@ var EFeatures;
|
|
|
886
988
|
EFeatures["LAB_42_PROJECT_STACK"] = "projectStack";
|
|
887
989
|
EFeatures["LAB_42_LIVE_TRANSCRIBE"] = "liveTranscribe";
|
|
888
990
|
EFeatures["LAB_42_EPOCH"] = "epoch";
|
|
991
|
+
// Learning Assistant Pages
|
|
889
992
|
EFeatures["LEARNING_ASSISTANT_MAQ"] = "learning-assistant-maq";
|
|
890
993
|
EFeatures["LEARNING_ASSISTANT_ILIPDP"] = "learning-assistant-ilipdp";
|
|
891
994
|
})(EFeatures || (EFeatures = {}));
|
|
@@ -954,15 +1057,16 @@ class ClassChangeOnScrollDirective {
|
|
|
954
1057
|
this.setScrollState();
|
|
955
1058
|
}, this.wsClassOnScrollDirChange || 5000);
|
|
956
1059
|
}
|
|
957
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
958
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1060
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ClassChangeOnScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1061
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: ClassChangeOnScrollDirective, isStandalone: false, 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 }); }
|
|
959
1062
|
}
|
|
960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ClassChangeOnScrollDirective, decorators: [{
|
|
961
1064
|
type: Directive,
|
|
962
1065
|
args: [{
|
|
963
1066
|
selector: '[wsUtilsClassChangeOnScroll]',
|
|
1067
|
+
standalone: false
|
|
964
1068
|
}]
|
|
965
|
-
}], ctorParameters:
|
|
1069
|
+
}], ctorParameters: () => [], propDecorators: { wsClassOnScrollDirChange: [{
|
|
966
1070
|
type: Input
|
|
967
1071
|
}], isScrollingDown: [{
|
|
968
1072
|
type: HostBinding,
|
|
@@ -979,11 +1083,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
979
1083
|
}] } });
|
|
980
1084
|
|
|
981
1085
|
class ClassChangeOnScrollModule {
|
|
982
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
983
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
984
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1086
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ClassChangeOnScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1087
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: ClassChangeOnScrollModule, declarations: [ClassChangeOnScrollDirective], imports: [CommonModule], exports: [ClassChangeOnScrollDirective] }); }
|
|
1088
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ClassChangeOnScrollModule, imports: [CommonModule] }); }
|
|
985
1089
|
}
|
|
986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ClassChangeOnScrollModule, decorators: [{
|
|
987
1091
|
type: NgModule,
|
|
988
1092
|
args: [{
|
|
989
1093
|
declarations: [ClassChangeOnScrollDirective],
|
|
@@ -1012,13 +1116,14 @@ class DefaultThumbnailDirective {
|
|
|
1012
1116
|
this.srcUrl = this.src;
|
|
1013
1117
|
}
|
|
1014
1118
|
}
|
|
1015
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1016
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1119
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DefaultThumbnailDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1120
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: DefaultThumbnailDirective, isStandalone: false, selector: "[wsUtilsDefaultThumbnail]", inputs: { wsUtilsDefaultThumbnail: "wsUtilsDefaultThumbnail", src: "src" }, host: { listeners: { "error": "updateSrc()" }, properties: { "src": "this.srcUrl" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
1017
1121
|
}
|
|
1018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DefaultThumbnailDirective, decorators: [{
|
|
1019
1123
|
type: Directive,
|
|
1020
1124
|
args: [{
|
|
1021
1125
|
selector: '[wsUtilsDefaultThumbnail]',
|
|
1126
|
+
standalone: false
|
|
1022
1127
|
}]
|
|
1023
1128
|
}], propDecorators: { wsUtilsDefaultThumbnail: [{
|
|
1024
1129
|
type: Input
|
|
@@ -1033,11 +1138,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1033
1138
|
}] } });
|
|
1034
1139
|
|
|
1035
1140
|
class DefaultThumbnailModule {
|
|
1036
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1037
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1038
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1141
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DefaultThumbnailModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1142
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: DefaultThumbnailModule, declarations: [DefaultThumbnailDirective], imports: [CommonModule], exports: [DefaultThumbnailDirective] }); }
|
|
1143
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DefaultThumbnailModule, imports: [CommonModule] }); }
|
|
1039
1144
|
}
|
|
1040
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DefaultThumbnailModule, decorators: [{
|
|
1041
1146
|
type: NgModule,
|
|
1042
1147
|
args: [{
|
|
1043
1148
|
declarations: [DefaultThumbnailDirective],
|
|
@@ -1074,6 +1179,7 @@ class ImageResponsiveDirective {
|
|
|
1074
1179
|
])
|
|
1075
1180
|
.pipe(distinctUntilChanged())
|
|
1076
1181
|
.subscribe(data => {
|
|
1182
|
+
// //console.log('data >', data)
|
|
1077
1183
|
if (data.breakpoints[customBreakPoints.xxl]) {
|
|
1078
1184
|
this.currentSize = 'xxl';
|
|
1079
1185
|
}
|
|
@@ -1115,15 +1221,16 @@ class ImageResponsiveDirective {
|
|
|
1115
1221
|
this.srcBindUrl = this.src[this.currentSize];
|
|
1116
1222
|
}
|
|
1117
1223
|
}
|
|
1118
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1119
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageResponsiveDirective, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1225
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: ImageResponsiveDirective, isStandalone: false, selector: "[wsUtilsImageResponsive]", inputs: { src: "src" }, host: { properties: { "src": "this.srcBindUrl" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
1120
1226
|
}
|
|
1121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageResponsiveDirective, decorators: [{
|
|
1122
1228
|
type: Directive,
|
|
1123
1229
|
args: [{
|
|
1124
1230
|
selector: '[wsUtilsImageResponsive]',
|
|
1231
|
+
standalone: false
|
|
1125
1232
|
}]
|
|
1126
|
-
}], ctorParameters:
|
|
1233
|
+
}], ctorParameters: () => [{ type: i1.BreakpointObserver }], propDecorators: { src: [{
|
|
1127
1234
|
type: Input
|
|
1128
1235
|
}], srcBindUrl: [{
|
|
1129
1236
|
type: HostBinding,
|
|
@@ -1131,11 +1238,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1131
1238
|
}] } });
|
|
1132
1239
|
|
|
1133
1240
|
class ImageResponsiveModule {
|
|
1134
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1135
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1136
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1241
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageResponsiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1242
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: ImageResponsiveModule, declarations: [ImageResponsiveDirective], imports: [CommonModule], exports: [ImageResponsiveDirective] }); }
|
|
1243
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageResponsiveModule, imports: [CommonModule] }); }
|
|
1137
1244
|
}
|
|
1138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageResponsiveModule, decorators: [{
|
|
1139
1246
|
type: NgModule,
|
|
1140
1247
|
args: [{
|
|
1141
1248
|
declarations: [ImageResponsiveDirective],
|
|
@@ -1161,6 +1268,18 @@ class InViewPortDirective {
|
|
|
1161
1268
|
fromEvent(window, 'resize').pipe(debounceTime(100)).subscribe(() => {
|
|
1162
1269
|
this.check();
|
|
1163
1270
|
});
|
|
1271
|
+
// let limit = 1
|
|
1272
|
+
// this.scroll =
|
|
1273
|
+
// fromEvent(window, 'scroll').pipe(debounceTime(100)).subscribe(() => {
|
|
1274
|
+
// if (limit) {
|
|
1275
|
+
// this.check()
|
|
1276
|
+
// limit -= 1
|
|
1277
|
+
// }
|
|
1278
|
+
// })
|
|
1279
|
+
// this.resize =
|
|
1280
|
+
// fromEvent(window, 'resize').toPromise().then(() => {
|
|
1281
|
+
// this.check()
|
|
1282
|
+
// })
|
|
1164
1283
|
}
|
|
1165
1284
|
ngOnDestroy() {
|
|
1166
1285
|
this.scroll.unsubscribe();
|
|
@@ -1192,24 +1311,25 @@ class InViewPortDirective {
|
|
|
1192
1311
|
}
|
|
1193
1312
|
this.inViewport.emit(event);
|
|
1194
1313
|
}
|
|
1195
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1196
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1314
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InViewPortDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1315
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: InViewPortDirective, isStandalone: false, selector: "[wsUtilsInViewPort]", outputs: { inViewport: "inViewport" }, ngImport: i0 }); }
|
|
1197
1316
|
}
|
|
1198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InViewPortDirective, decorators: [{
|
|
1199
1318
|
type: Directive,
|
|
1200
1319
|
args: [{
|
|
1201
1320
|
selector: '[wsUtilsInViewPort]',
|
|
1321
|
+
standalone: false
|
|
1202
1322
|
}]
|
|
1203
|
-
}], ctorParameters:
|
|
1323
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { inViewport: [{
|
|
1204
1324
|
type: Output
|
|
1205
1325
|
}] } });
|
|
1206
1326
|
|
|
1207
1327
|
class InViewPortModule {
|
|
1208
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1209
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1210
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1328
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InViewPortModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1329
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: InViewPortModule, declarations: [InViewPortDirective], imports: [CommonModule], exports: [InViewPortDirective] }); }
|
|
1330
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InViewPortModule, imports: [CommonModule] }); }
|
|
1211
1331
|
}
|
|
1212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InViewPortModule, decorators: [{
|
|
1213
1333
|
type: NgModule,
|
|
1214
1334
|
args: [{
|
|
1215
1335
|
declarations: [InViewPortDirective],
|
|
@@ -1239,15 +1359,16 @@ class NavigationDirective {
|
|
|
1239
1359
|
this.routeUrl = './';
|
|
1240
1360
|
}
|
|
1241
1361
|
}
|
|
1242
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1243
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1362
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavigationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1363
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: NavigationDirective, isStandalone: false, selector: "[wsUtilsNavigation]", inputs: { wsUtilsNavigation: "wsUtilsNavigation", openInNewTab: "openInNewTab", routeUrl: "routeUrl" }, host: { listeners: { "mousedown": "onMouseEnter($event)" }, properties: { "attr.routerLink": "this.routeUrl" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
1244
1364
|
}
|
|
1245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavigationDirective, decorators: [{
|
|
1246
1366
|
type: Directive,
|
|
1247
1367
|
args: [{
|
|
1248
1368
|
selector: '[wsUtilsNavigation]',
|
|
1369
|
+
standalone: false
|
|
1249
1370
|
}]
|
|
1250
|
-
}], ctorParameters:
|
|
1371
|
+
}], ctorParameters: () => [], propDecorators: { wsUtilsNavigation: [{
|
|
1251
1372
|
type: Input
|
|
1252
1373
|
}], openInNewTab: [{
|
|
1253
1374
|
type: Input
|
|
@@ -1262,11 +1383,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1262
1383
|
}] } });
|
|
1263
1384
|
|
|
1264
1385
|
class NavigationModule {
|
|
1265
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1266
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1267
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1386
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1387
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: NavigationModule, declarations: [NavigationDirective], imports: [CommonModule], exports: [NavigationDirective] }); }
|
|
1388
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavigationModule, imports: [CommonModule] }); }
|
|
1268
1389
|
}
|
|
1269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavigationModule, decorators: [{
|
|
1270
1391
|
type: NgModule,
|
|
1271
1392
|
args: [{
|
|
1272
1393
|
declarations: [NavigationDirective],
|
|
@@ -1279,22 +1400,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1279
1400
|
|
|
1280
1401
|
class PermissionDirective {
|
|
1281
1402
|
constructor() { }
|
|
1282
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1283
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1403
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PermissionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1404
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: PermissionDirective, isStandalone: false, selector: "[wsUtilsPermission]", ngImport: i0 }); }
|
|
1284
1405
|
}
|
|
1285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
1286
1407
|
type: Directive,
|
|
1287
1408
|
args: [{
|
|
1288
1409
|
selector: '[wsUtilsPermission]',
|
|
1410
|
+
standalone: false
|
|
1289
1411
|
}]
|
|
1290
|
-
}], ctorParameters:
|
|
1412
|
+
}], ctorParameters: () => [] });
|
|
1291
1413
|
|
|
1292
1414
|
class PermissionModule {
|
|
1293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1294
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1295
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PermissionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1416
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PermissionModule, declarations: [PermissionDirective], imports: [CommonModule], exports: [PermissionDirective] }); }
|
|
1417
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PermissionModule, imports: [CommonModule] }); }
|
|
1296
1418
|
}
|
|
1297
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PermissionModule, decorators: [{
|
|
1298
1420
|
type: NgModule,
|
|
1299
1421
|
args: [{
|
|
1300
1422
|
declarations: [PermissionDirective],
|
|
@@ -1350,7 +1472,10 @@ class HorizontalScrollerComponent {
|
|
|
1350
1472
|
}
|
|
1351
1473
|
showPrev() {
|
|
1352
1474
|
if (this.horizontalScrollElem) {
|
|
1475
|
+
// const elem = this.horizontalScrollElem.nativeElement
|
|
1476
|
+
// elem.scrollLeft -= 0.20 * elem.clientWidth
|
|
1353
1477
|
if (this.horizontalScrollElem) {
|
|
1478
|
+
// const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth * 0.24)
|
|
1354
1479
|
const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth);
|
|
1355
1480
|
this.horizontalScrollElem.nativeElement.scrollTo({
|
|
1356
1481
|
left: this.horizontalScrollElem.nativeElement.scrollLeft - clientWidth,
|
|
@@ -1361,7 +1486,10 @@ class HorizontalScrollerComponent {
|
|
|
1361
1486
|
}
|
|
1362
1487
|
showNext() {
|
|
1363
1488
|
if (this.horizontalScrollElem) {
|
|
1489
|
+
// const elem = this.horizontalScrollElem.nativeElement
|
|
1490
|
+
// elem.scrollLeft += 0.20 * elem.clientWidth
|
|
1364
1491
|
if (this.horizontalScrollElem) {
|
|
1492
|
+
// const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth * 0.24)
|
|
1365
1493
|
const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth);
|
|
1366
1494
|
this.horizontalScrollElem.nativeElement.scrollTo({
|
|
1367
1495
|
left: this.horizontalScrollElem.nativeElement.scrollLeft + clientWidth,
|
|
@@ -1385,13 +1513,13 @@ class HorizontalScrollerComponent {
|
|
|
1385
1513
|
}
|
|
1386
1514
|
}
|
|
1387
1515
|
}
|
|
1388
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1389
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1516
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1517
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: HorizontalScrollerComponent, isStandalone: false, 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 aria-label=\"back\" 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 aria-label=\"next\" 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-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] }); }
|
|
1390
1518
|
}
|
|
1391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerComponent, decorators: [{
|
|
1392
1520
|
type: Component,
|
|
1393
|
-
args: [{ selector: 'ws-utils-horizontal-scroller', template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label aria-label=\"back\" 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 aria-label=\"next\" 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-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"] }]
|
|
1394
|
-
}], ctorParameters:
|
|
1521
|
+
args: [{ selector: 'ws-utils-horizontal-scroller', standalone: false, template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label aria-label=\"back\" 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 aria-label=\"next\" 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-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"] }]
|
|
1522
|
+
}], ctorParameters: () => [], propDecorators: { loadStatus: [{
|
|
1395
1523
|
type: Input
|
|
1396
1524
|
}], onHover: [{
|
|
1397
1525
|
type: Input
|
|
@@ -1403,25 +1531,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1403
1531
|
}] } });
|
|
1404
1532
|
|
|
1405
1533
|
class HorizontalScrollerModule {
|
|
1406
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1407
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1408
|
-
|
|
1534
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1535
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerModule, declarations: [HorizontalScrollerComponent], imports: [CommonModule,
|
|
1536
|
+
MatButtonModule,
|
|
1409
1537
|
MatIconModule,
|
|
1410
|
-
|
|
1411
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1412
|
-
|
|
1538
|
+
MatProgressSpinnerModule], exports: [HorizontalScrollerComponent] }); }
|
|
1539
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerModule, imports: [CommonModule,
|
|
1540
|
+
MatButtonModule,
|
|
1413
1541
|
MatIconModule,
|
|
1414
|
-
|
|
1542
|
+
MatProgressSpinnerModule] }); }
|
|
1415
1543
|
}
|
|
1416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerModule, decorators: [{
|
|
1417
1545
|
type: NgModule,
|
|
1418
1546
|
args: [{
|
|
1419
1547
|
declarations: [HorizontalScrollerComponent],
|
|
1420
1548
|
imports: [
|
|
1421
1549
|
CommonModule,
|
|
1422
|
-
|
|
1550
|
+
MatButtonModule,
|
|
1423
1551
|
MatIconModule,
|
|
1424
|
-
|
|
1552
|
+
MatProgressSpinnerModule,
|
|
1425
1553
|
],
|
|
1426
1554
|
exports: [HorizontalScrollerComponent],
|
|
1427
1555
|
}]
|
|
@@ -1482,6 +1610,7 @@ var WsEvents;
|
|
|
1482
1610
|
EnumTelemetrySubType["GetStarted"] = "Get Started";
|
|
1483
1611
|
EnumTelemetrySubType["PlatformRating"] = "PlatformRating";
|
|
1484
1612
|
})(EnumTelemetrySubType = WsEvents.EnumTelemetrySubType || (WsEvents.EnumTelemetrySubType = {}));
|
|
1613
|
+
// PDF Telemetry Event
|
|
1485
1614
|
let EnumTelemetryPdfActivity;
|
|
1486
1615
|
(function (EnumTelemetryPdfActivity) {
|
|
1487
1616
|
EnumTelemetryPdfActivity["PAGE_CHANGED"] = "PAGE_CHANGED";
|
|
@@ -1490,6 +1619,7 @@ var WsEvents;
|
|
|
1490
1619
|
EnumTelemetryPdfActivity["ZOOM_CHANGE"] = "ZOOM_CHANGE";
|
|
1491
1620
|
EnumTelemetryPdfActivity["NONE"] = "NONE";
|
|
1492
1621
|
})(EnumTelemetryPdfActivity = WsEvents.EnumTelemetryPdfActivity || (WsEvents.EnumTelemetryPdfActivity = {}));
|
|
1622
|
+
// Multimedia Telemetry Data
|
|
1493
1623
|
let EnumTelemetryMediaActivity;
|
|
1494
1624
|
(function (EnumTelemetryMediaActivity) {
|
|
1495
1625
|
EnumTelemetryMediaActivity["PLAYED"] = "PLAYED";
|
|
@@ -1582,7 +1712,11 @@ class UtilityService {
|
|
|
1582
1712
|
this.currentRouteData = [];
|
|
1583
1713
|
this.router.events.subscribe((event) => {
|
|
1584
1714
|
if (event instanceof NavigationEnd) {
|
|
1715
|
+
// let snapshot = this.router.routerState.firstChild(this.activatedRoute).snapshot
|
|
1716
|
+
// console.log('this.route.snapshot :: ', this.route.snapshot)
|
|
1585
1717
|
const snapshot = this.route.snapshot;
|
|
1718
|
+
// console.log('root.snapshot.root.firstChild ', snapshot.root.firstChild)
|
|
1719
|
+
// console.log('firstChild ', snapshot.firstChild)
|
|
1586
1720
|
const firstChild = snapshot.root.firstChild;
|
|
1587
1721
|
this.getChildRouteData(snapshot, firstChild);
|
|
1588
1722
|
}
|
|
@@ -1591,6 +1725,7 @@ class UtilityService {
|
|
|
1591
1725
|
getChildRouteData(snapshot, firstChild) {
|
|
1592
1726
|
if (firstChild) {
|
|
1593
1727
|
if (firstChild.data) {
|
|
1728
|
+
// console.log('firstChild.data', firstChild.data)
|
|
1594
1729
|
this.currentRouteData.push(firstChild.data);
|
|
1595
1730
|
}
|
|
1596
1731
|
if (firstChild.firstChild) {
|
|
@@ -1668,6 +1803,8 @@ class UtilityService {
|
|
|
1668
1803
|
module: '',
|
|
1669
1804
|
pageId: '',
|
|
1670
1805
|
};
|
|
1806
|
+
// tslint:disable-next-line: no-console
|
|
1807
|
+
// console.log('Final currentDataRoute get routeData()', this.currentRouteData)
|
|
1671
1808
|
this.currentRouteData.map((rd) => {
|
|
1672
1809
|
if (rd.pageId) {
|
|
1673
1810
|
data.pageId = `${data.pageId}/${rd.pageId}`;
|
|
@@ -1678,15 +1815,15 @@ class UtilityService {
|
|
|
1678
1815
|
});
|
|
1679
1816
|
return data;
|
|
1680
1817
|
}
|
|
1681
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1682
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1818
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UtilityService, deps: [{ token: i1$2.HttpClient }, { token: i2$1.Platform }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1819
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UtilityService, providedIn: 'root' }); }
|
|
1683
1820
|
}
|
|
1684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UtilityService, decorators: [{
|
|
1685
1822
|
type: Injectable,
|
|
1686
1823
|
args: [{
|
|
1687
1824
|
providedIn: 'root',
|
|
1688
1825
|
}]
|
|
1689
|
-
}], ctorParameters:
|
|
1826
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: i2$1.Platform }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }] });
|
|
1690
1827
|
|
|
1691
1828
|
class EventService {
|
|
1692
1829
|
constructor(environment, utilitySvc) {
|
|
@@ -1703,6 +1840,7 @@ class EventService {
|
|
|
1703
1840
|
this.eventsPRSubject = new Subject();
|
|
1704
1841
|
this.getPREvents$ = this.eventsPRSubject.asObservable();
|
|
1705
1842
|
this.environment = environment;
|
|
1843
|
+
// this.focusChangeEventListener()
|
|
1706
1844
|
}
|
|
1707
1845
|
dispatchEvent(event) {
|
|
1708
1846
|
event.pageContext = this.getContext(event.pageContext);
|
|
@@ -1717,6 +1855,7 @@ class EventService {
|
|
|
1717
1855
|
dispatchPlatformRatingEvent(event) {
|
|
1718
1856
|
this.eventsPRSubject.next(event);
|
|
1719
1857
|
}
|
|
1858
|
+
// helper functions
|
|
1720
1859
|
raiseInteractTelemetry(edata, object, pageContext) {
|
|
1721
1860
|
this.dispatchEvent({
|
|
1722
1861
|
eventType: WsEvents.WsEventType.Telemetry,
|
|
@@ -1744,6 +1883,7 @@ class EventService {
|
|
|
1744
1883
|
to: 'Telemetry',
|
|
1745
1884
|
});
|
|
1746
1885
|
}
|
|
1886
|
+
// Raise custom impression events eg:on tab change
|
|
1747
1887
|
raiseCustomImpression(object, pageContext) {
|
|
1748
1888
|
this.dispatchEvent({
|
|
1749
1889
|
eventType: WsEvents.WsEventType.Telemetry,
|
|
@@ -1757,19 +1897,32 @@ class EventService {
|
|
|
1757
1897
|
to: 'Telemetry',
|
|
1758
1898
|
});
|
|
1759
1899
|
}
|
|
1900
|
+
// private focusChangeEventListener() {
|
|
1901
|
+
// fromEvent(window, 'focus').subscribe(() => {
|
|
1902
|
+
// this.raiseInteractTelemetry('focus', 'gained', {})
|
|
1903
|
+
// })
|
|
1904
|
+
// fromEvent(window, 'blur').subscribe(() => {
|
|
1905
|
+
// this.raiseInteractTelemetry('focus', 'lost', {})
|
|
1906
|
+
// })
|
|
1907
|
+
// }
|
|
1908
|
+
// Method to get the context information about the telemetry interact event
|
|
1760
1909
|
getContext(pageContext) {
|
|
1761
1910
|
const routeDataContext = this.utilitySvc.routeData;
|
|
1911
|
+
// initialize with the route data configuration - current route's pageID & module
|
|
1762
1912
|
const finalContext = {
|
|
1763
1913
|
pageId: routeDataContext.pageId,
|
|
1764
1914
|
module: routeDataContext.module,
|
|
1765
1915
|
};
|
|
1766
1916
|
if (pageContext) {
|
|
1917
|
+
// if context has pageIdExt, append it to the route's pageId
|
|
1767
1918
|
if (pageContext.pageIdExt) {
|
|
1768
1919
|
finalContext.pageId = `${routeDataContext.pageId}_${pageContext.pageIdExt}`;
|
|
1769
1920
|
}
|
|
1770
1921
|
else if (pageContext.pageId) {
|
|
1922
|
+
// else context has pageId, override it to the final pageID
|
|
1771
1923
|
finalContext.pageId = pageContext.pageId;
|
|
1772
1924
|
}
|
|
1925
|
+
// if context has module, override it to the final module
|
|
1773
1926
|
if (pageContext.module) {
|
|
1774
1927
|
finalContext.module = pageContext.module;
|
|
1775
1928
|
}
|
|
@@ -1777,15 +1930,20 @@ class EventService {
|
|
|
1777
1930
|
return finalContext;
|
|
1778
1931
|
}
|
|
1779
1932
|
handleTabTelemetry(subType, data, object) {
|
|
1933
|
+
// raise a tab click interact event
|
|
1780
1934
|
this.raiseInteractTelemetry({
|
|
1781
1935
|
subType,
|
|
1782
1936
|
type: WsEvents.EnumInteractTypes.CLICK,
|
|
1783
1937
|
id: `${_.camelCase(data.label)}-tab`,
|
|
1784
1938
|
}, {
|
|
1939
|
+
// context: {
|
|
1940
|
+
// position: data.index,
|
|
1941
|
+
// },
|
|
1785
1942
|
...object
|
|
1786
1943
|
}, {
|
|
1787
1944
|
pageIdExt: `${_.camelCase(data.label)}-tab`,
|
|
1788
1945
|
});
|
|
1946
|
+
// raise a tab click impression event
|
|
1789
1947
|
this.raiseCustomImpression({
|
|
1790
1948
|
context: {
|
|
1791
1949
|
position: data.index,
|
|
@@ -1807,15 +1965,20 @@ class EventService {
|
|
|
1807
1965
|
const minutes = new Date(datetime).getMinutes();
|
|
1808
1966
|
const seconds = new Date(datetime).getSeconds();
|
|
1809
1967
|
const formatedDate = new Date(year, month, date, hours, minutes, seconds, 0);
|
|
1968
|
+
// let format = 'YYYY-MM-DD hh:mm a'
|
|
1969
|
+
// if (!timeAllow) {
|
|
1810
1970
|
const format = 'YYYY-MM-DD';
|
|
1971
|
+
// }
|
|
1811
1972
|
const readableDateMonth = moment(formatedDate).format(format);
|
|
1812
1973
|
const finalDateTimeValue = `${readableDateMonth}`;
|
|
1813
1974
|
return finalDateTimeValue;
|
|
1814
1975
|
}
|
|
1815
1976
|
compareDate(startDate) {
|
|
1816
1977
|
const now = new Date();
|
|
1978
|
+
// tslint:disable-next-line:prefer-template
|
|
1817
1979
|
const day = ('0' + (new Date().getDate())).slice(-2);
|
|
1818
1980
|
const year = new Date().getFullYear();
|
|
1981
|
+
// tslint:disable-next-line:prefer-template
|
|
1819
1982
|
const month = ('0' + (now.getMonth() + 1)).slice(-2);
|
|
1820
1983
|
const todaysdate = `${year}-${month}-${day}`;
|
|
1821
1984
|
if (startDate === todaysdate) {
|
|
@@ -1853,6 +2016,7 @@ class EventService {
|
|
|
1853
2016
|
let isEventRecording = false;
|
|
1854
2017
|
let isEventPast = false;
|
|
1855
2018
|
let isEventFuture = false;
|
|
2019
|
+
// console.log('strip comp', data)
|
|
1856
2020
|
Object.keys(data).forEach((index) => {
|
|
1857
2021
|
isEventRecording = false;
|
|
1858
2022
|
isEventLive = false;
|
|
@@ -1962,18 +2126,18 @@ class EventService {
|
|
|
1962
2126
|
this.keySpeakerEvents = [...liveEvents, ...futureEvents, ...pastEvents];
|
|
1963
2127
|
return this.keySpeakerEvents;
|
|
1964
2128
|
}
|
|
1965
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1966
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2129
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EventService, deps: [{ token: 'environment' }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2130
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EventService, providedIn: 'root' }); }
|
|
1967
2131
|
}
|
|
1968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EventService, decorators: [{
|
|
1969
2133
|
type: Injectable,
|
|
1970
2134
|
args: [{
|
|
1971
2135
|
providedIn: 'root',
|
|
1972
2136
|
}]
|
|
1973
|
-
}], ctorParameters:
|
|
2137
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1974
2138
|
type: Inject,
|
|
1975
2139
|
args: ['environment']
|
|
1976
|
-
}] }, { type: UtilityService }]
|
|
2140
|
+
}] }, { type: UtilityService }] });
|
|
1977
2141
|
|
|
1978
2142
|
class HorizontalScrollerV2Component {
|
|
1979
2143
|
constructor(eventService) {
|
|
@@ -2022,7 +2186,10 @@ class HorizontalScrollerV2Component {
|
|
|
2022
2186
|
}
|
|
2023
2187
|
}
|
|
2024
2188
|
showPrev() {
|
|
2189
|
+
// const elem = this.horizontalScrollElem.nativeElement
|
|
2190
|
+
// elem.scrollLeft -= 0.20 * elem.clientWidth
|
|
2025
2191
|
if (this.horizontalScrollElem) {
|
|
2192
|
+
// const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth * 0.24)
|
|
2026
2193
|
const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth);
|
|
2027
2194
|
this.horizontalScrollElem.nativeElement.scrollTo({
|
|
2028
2195
|
left: this.horizontalScrollElem.nativeElement.scrollLeft - clientWidth,
|
|
@@ -2033,7 +2200,10 @@ class HorizontalScrollerV2Component {
|
|
|
2033
2200
|
}
|
|
2034
2201
|
}
|
|
2035
2202
|
showNext() {
|
|
2203
|
+
// const elem = this.horizontalScrollElem.nativeElement
|
|
2204
|
+
// elem.scrollLeft += 0.20 * elem.clientWidth
|
|
2036
2205
|
if (this.horizontalScrollElem) {
|
|
2206
|
+
// const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth * 0.24)
|
|
2037
2207
|
const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth);
|
|
2038
2208
|
this.horizontalScrollElem.nativeElement.scrollTo({
|
|
2039
2209
|
left: this.horizontalScrollElem.nativeElement.scrollLeft + clientWidth,
|
|
@@ -2077,6 +2247,25 @@ class HorizontalScrollerV2Component {
|
|
|
2077
2247
|
}
|
|
2078
2248
|
slideTo(ele) {
|
|
2079
2249
|
const diff = ele - this.activeNav;
|
|
2250
|
+
// if (ele > this.activeNav && ele !== this.activeNav) {
|
|
2251
|
+
// if (this.horizontalScrollElem) {
|
|
2252
|
+
// const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth)
|
|
2253
|
+
// this.horizontalScrollElem.nativeElement.scrollTo({
|
|
2254
|
+
// left: this.horizontalScrollElem.nativeElement.scrollLeft + (clientWidth*diff),
|
|
2255
|
+
// behavior: 'smooth',
|
|
2256
|
+
// })
|
|
2257
|
+
// }
|
|
2258
|
+
// this.activeNav = ele
|
|
2259
|
+
// } else {
|
|
2260
|
+
// if (this.horizontalScrollElem && ele >= 0 && ele !== this.activeNav) {
|
|
2261
|
+
// const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth)
|
|
2262
|
+
// this.horizontalScrollElem.nativeElement.scrollTo({
|
|
2263
|
+
// left: this.horizontalScrollElem.nativeElement.scrollLeft - (clientWidth*diff),
|
|
2264
|
+
// behavior: 'smooth',
|
|
2265
|
+
// })
|
|
2266
|
+
// }
|
|
2267
|
+
// this.activeNav = ele
|
|
2268
|
+
// }
|
|
2080
2269
|
if (this.horizontalScrollElem) {
|
|
2081
2270
|
const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth);
|
|
2082
2271
|
this.horizontalScrollElem.nativeElement.scrollTo({
|
|
@@ -2091,6 +2280,7 @@ class HorizontalScrollerV2Component {
|
|
|
2091
2280
|
this.bottomDotsArray = [];
|
|
2092
2281
|
let cardWidth;
|
|
2093
2282
|
let arrLength;
|
|
2283
|
+
// console.log('this.cardSubType-->',this.cardSubType)
|
|
2094
2284
|
if (this.cardSubType !== 'card-wide-v2') {
|
|
2095
2285
|
cardWidth = this.cardSubType === 'standard' ? 245 :
|
|
2096
2286
|
((document.getElementsByClassName(this.cardSubType) &&
|
|
@@ -2110,6 +2300,8 @@ class HorizontalScrollerV2Component {
|
|
|
2110
2300
|
this.bottomDotsArray.push(i);
|
|
2111
2301
|
}
|
|
2112
2302
|
}
|
|
2303
|
+
// console.log('this.cardSubType', this.cardSubType, arrLength, this.widgetsLength ,
|
|
2304
|
+
// this.defaultMaxWidgets, scrollerWidth, this.bottomDotsArray)
|
|
2113
2305
|
}
|
|
2114
2306
|
}
|
|
2115
2307
|
}
|
|
@@ -2123,13 +2315,13 @@ class HorizontalScrollerV2Component {
|
|
|
2123
2315
|
}
|
|
2124
2316
|
}
|
|
2125
2317
|
}
|
|
2126
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2127
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2318
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerV2Component, deps: [{ token: EventService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2319
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: HorizontalScrollerV2Component, isStandalone: false, selector: "ws-utils-horizontal-scroller-v2", inputs: { loadStatus: "loadStatus", onHover: "onHover", sliderConfig: "sliderConfig", widgetsLength: "widgetsLength", defaultMaxWidgets: "defaultMaxWidgets", stripConfig: "stripConfig", stripsResultDataMap: "stripsResultDataMap", subtype: "subtype" }, 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\" [ngClass]=\"{'px-4': sliderConfig.showNavs, 'mt-5':sliderConfig.cerificateCardMargin}\">\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"back\" name=\"content-backward-button\" mat-mini-fab color=\"\" \n (click)=\"showPrev()\" class=\"prevBtn mat-elevation-z\" [hidden]=\"!enablePrev\"\n [ngClass]=\"{'prevBtnHover': onHover}\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\n <ng-content></ng-content>\n </div>\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"next\" name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\"\n color=\"\" class=\"nextBtn mat-elevation-z\" [ngClass]=\"{'nextBtnHover': onHover}\"\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </ng-container>\n <!-- <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\n <mat-spinner></mat-spinner>\n </div> --> \n</section>\n\n<div class=\"dots-container\" *ngIf=\"sliderConfig?.showDots\">\n <!-- <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" -->\n <span class=\"dot\" [ngClass]=\"{ active: j === activeNav }\" *ngFor=\"let slide of bottomDotsArray; let j = index\" (click)=\"slideTo(j)\"></span>\n</div>", styles: [".horizontal-scroll-container{position:relative;width:100%;width:inherit}@media only screen and (max-width:599px){.horizontal-scroll-container{padding:0}}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;justify-content:center}.nextBtn,.prevBtn{border-radius:50%;background-color:#1b2133!important;color:#fff!important}.border-radius-xs{border-radius:8px!important}.prevBtn{left:0}.nextBtn{right:0}.nextLoading{padding:0;right:0}.horizontal-scroll-content{overflow-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}.dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:#0006;border-radius:50%;display:inline-block;transition:background-color .5s ease!important}.dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@media screen and (max-width:768px){.nextBtn{right:-16px}.prevBtn{left:-16px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
2128
2320
|
}
|
|
2129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerV2Component, decorators: [{
|
|
2130
2322
|
type: Component,
|
|
2131
|
-
args: [{ selector: 'ws-utils-horizontal-scroller-v2', template: "<section class=\"horizontal-scroll-container h-full\" [ngClass]=\"{'px-4': sliderConfig.showNavs, 'mt-5':sliderConfig.cerificateCardMargin}\">\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"back\" name=\"content-backward-button\" mat-mini-fab color=\"\" \n (click)=\"showPrev()\" class=\"prevBtn mat-elevation-z\" [hidden]=\"!enablePrev\"\n [ngClass]=\"{'prevBtnHover': onHover}\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\n <ng-content></ng-content>\n </div>\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"next\" name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\"\n color=\"\" class=\"nextBtn mat-elevation-z\" [ngClass]=\"{'nextBtnHover': onHover}\"\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </ng-container>\n <!-- <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\n <mat-spinner></mat-spinner>\n </div> --> \n</section>\n\n<div class=\"dots-container\" *ngIf=\"sliderConfig?.showDots\">\n <!-- <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" -->\n <span class=\"dot\" [ngClass]=\"{ active: j === activeNav }\" *ngFor=\"let slide of bottomDotsArray; let j = index\" (click)=\"slideTo(j)\"></span>\n</div>", styles: [".horizontal-scroll-container{position:relative;width:100%;width:inherit}@media only screen and (max-width:
|
|
2132
|
-
}], ctorParameters:
|
|
2323
|
+
args: [{ selector: 'ws-utils-horizontal-scroller-v2', standalone: false, template: "<section class=\"horizontal-scroll-container h-full\" [ngClass]=\"{'px-4': sliderConfig.showNavs, 'mt-5':sliderConfig.cerificateCardMargin}\">\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"back\" name=\"content-backward-button\" mat-mini-fab color=\"\" \n (click)=\"showPrev()\" class=\"prevBtn mat-elevation-z\" [hidden]=\"!enablePrev\"\n [ngClass]=\"{'prevBtnHover': onHover}\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\n <ng-content></ng-content>\n </div>\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"next\" name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\"\n color=\"\" class=\"nextBtn mat-elevation-z\" [ngClass]=\"{'nextBtnHover': onHover}\"\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </ng-container>\n <!-- <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\n <mat-spinner></mat-spinner>\n </div> --> \n</section>\n\n<div class=\"dots-container\" *ngIf=\"sliderConfig?.showDots\">\n <!-- <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" -->\n <span class=\"dot\" [ngClass]=\"{ active: j === activeNav }\" *ngFor=\"let slide of bottomDotsArray; let j = index\" (click)=\"slideTo(j)\"></span>\n</div>", styles: [".horizontal-scroll-container{position:relative;width:100%;width:inherit}@media only screen and (max-width:599px){.horizontal-scroll-container{padding:0}}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;justify-content:center}.nextBtn,.prevBtn{border-radius:50%;background-color:#1b2133!important;color:#fff!important}.border-radius-xs{border-radius:8px!important}.prevBtn{left:0}.nextBtn{right:0}.nextLoading{padding:0;right:0}.horizontal-scroll-content{overflow-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}.dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:#0006;border-radius:50%;display:inline-block;transition:background-color .5s ease!important}.dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@media screen and (max-width:768px){.nextBtn{right:-16px}.prevBtn{left:-16px}}\n"] }]
|
|
2324
|
+
}], ctorParameters: () => [{ type: EventService }], propDecorators: { loadStatus: [{
|
|
2133
2325
|
type: Input
|
|
2134
2326
|
}], onHover: [{
|
|
2135
2327
|
type: Input
|
|
@@ -2153,30 +2345,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2153
2345
|
}] } });
|
|
2154
2346
|
|
|
2155
2347
|
class HorizontalScrollerV2Module {
|
|
2156
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2157
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2158
|
-
|
|
2348
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerV2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2349
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerV2Module, declarations: [HorizontalScrollerV2Component], imports: [CommonModule,
|
|
2350
|
+
MatButtonModule,
|
|
2159
2351
|
MatIconModule,
|
|
2160
|
-
|
|
2161
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2162
|
-
|
|
2352
|
+
MatProgressSpinnerModule], exports: [HorizontalScrollerV2Component] }); }
|
|
2353
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerV2Module, imports: [CommonModule,
|
|
2354
|
+
MatButtonModule,
|
|
2163
2355
|
MatIconModule,
|
|
2164
|
-
|
|
2356
|
+
MatProgressSpinnerModule] }); }
|
|
2165
2357
|
}
|
|
2166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HorizontalScrollerV2Module, decorators: [{
|
|
2167
2359
|
type: NgModule,
|
|
2168
2360
|
args: [{
|
|
2169
2361
|
declarations: [HorizontalScrollerV2Component],
|
|
2170
2362
|
imports: [
|
|
2171
2363
|
CommonModule,
|
|
2172
|
-
|
|
2364
|
+
MatButtonModule,
|
|
2173
2365
|
MatIconModule,
|
|
2174
|
-
|
|
2366
|
+
MatProgressSpinnerModule,
|
|
2175
2367
|
],
|
|
2176
2368
|
exports: [HorizontalScrollerV2Component],
|
|
2177
2369
|
}]
|
|
2178
2370
|
}] });
|
|
2179
2371
|
|
|
2372
|
+
// tslint:disable:no-console
|
|
2180
2373
|
class LoggerService {
|
|
2181
2374
|
constructor(configSvc) {
|
|
2182
2375
|
this.configSvc = configSvc;
|
|
@@ -2205,20 +2398,22 @@ class LoggerService {
|
|
|
2205
2398
|
const noConsoleWithError = () => {
|
|
2206
2399
|
throw new Error('Console Functions Usage Are Not Allowed.');
|
|
2207
2400
|
};
|
|
2401
|
+
// console.log = noConsoleWithError
|
|
2208
2402
|
console.warn = noConsoleWithError;
|
|
2209
2403
|
console.info = noConsoleWithError;
|
|
2210
2404
|
console.error = noConsoleWithError;
|
|
2211
2405
|
}
|
|
2212
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2213
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2406
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LoggerService, deps: [{ token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2407
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LoggerService, providedIn: 'root' }); }
|
|
2214
2408
|
}
|
|
2215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LoggerService, decorators: [{
|
|
2216
2410
|
type: Injectable,
|
|
2217
2411
|
args: [{
|
|
2218
2412
|
providedIn: 'root',
|
|
2219
2413
|
}]
|
|
2220
|
-
}], ctorParameters:
|
|
2414
|
+
}], ctorParameters: () => [{ type: ConfigurationsService }] });
|
|
2221
2415
|
|
|
2416
|
+
// TODO: Use a url-search-polyfill if the site didnot work in IE 11
|
|
2222
2417
|
const msTokenExpiryDuration = 600;
|
|
2223
2418
|
const storageKey$1 = 'msLoginRequested';
|
|
2224
2419
|
const storage$1 = localStorage;
|
|
@@ -2270,6 +2465,7 @@ class AuthMicrosoftService {
|
|
|
2270
2465
|
}
|
|
2271
2466
|
return redirectUrl;
|
|
2272
2467
|
}
|
|
2468
|
+
// Behavior Methods
|
|
2273
2469
|
async init(config) {
|
|
2274
2470
|
if (!config || !config.microsoft || !config.microsoft.isConfigured) {
|
|
2275
2471
|
this.loggerSvc.warn('Empty/No Configuration passed, ignoring Microsoft Authentication');
|
|
@@ -2354,6 +2550,7 @@ class AuthMicrosoftService {
|
|
|
2354
2550
|
}
|
|
2355
2551
|
isValid(accessToken, expiresOn) {
|
|
2356
2552
|
if (accessToken && expiresOn) {
|
|
2553
|
+
// TODO: Implement expiredOn and Date comparison based validity
|
|
2357
2554
|
return true;
|
|
2358
2555
|
}
|
|
2359
2556
|
return false;
|
|
@@ -2378,23 +2575,155 @@ class AuthMicrosoftService {
|
|
|
2378
2575
|
tokenType: token.tokenType,
|
|
2379
2576
|
};
|
|
2380
2577
|
}
|
|
2381
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2382
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2578
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AuthMicrosoftService, deps: [{ token: LoggerService }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2579
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AuthMicrosoftService, providedIn: 'root' }); }
|
|
2383
2580
|
}
|
|
2384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AuthMicrosoftService, decorators: [{
|
|
2385
2582
|
type: Injectable,
|
|
2386
2583
|
args: [{
|
|
2387
2584
|
providedIn: 'root',
|
|
2388
2585
|
}]
|
|
2389
|
-
}], ctorParameters:
|
|
2586
|
+
}], ctorParameters: () => [{ type: LoggerService }, { type: i1$2.HttpClient }] });
|
|
2390
2587
|
|
|
2588
|
+
class DomainConfService {
|
|
2589
|
+
constructor(configSvc, environment) {
|
|
2590
|
+
this.configSvc = configSvc;
|
|
2591
|
+
this.currentHostname = window.location.hostname;
|
|
2592
|
+
this.subdomain = this.currentHostname.split('.')[0];
|
|
2593
|
+
this.environment = environment;
|
|
2594
|
+
}
|
|
2595
|
+
/**
|
|
2596
|
+
* Gets the appropriate CDN host based on domain configuration
|
|
2597
|
+
|
|
2598
|
+
* @returns The CDN host URL for the current domain
|
|
2599
|
+
*/
|
|
2600
|
+
getDomainCDNHost() {
|
|
2601
|
+
// Early return for direct hostname match
|
|
2602
|
+
if (this.environment?.sitePath === this.currentHostname) {
|
|
2603
|
+
return this.environment?.cdnContentHost;
|
|
2604
|
+
}
|
|
2605
|
+
// Handle missing configuration
|
|
2606
|
+
if (!this.configSvc.instanceConfig?.domainList) {
|
|
2607
|
+
return this.environment?.cdnContentHost;
|
|
2608
|
+
}
|
|
2609
|
+
// Get domain-specific CDN host
|
|
2610
|
+
const domainData = this.configSvc.instanceConfig.domainList[this.subdomain];
|
|
2611
|
+
return domainData?.cdnContentHost || this.environment?.cdnContentHost;
|
|
2612
|
+
}
|
|
2613
|
+
/**
|
|
2614
|
+
* Gets the appropriate app logo based on domain configuration
|
|
2615
|
+
* @returns The app logo URL for the current domain
|
|
2616
|
+
*/
|
|
2617
|
+
getDomainAppLogo() {
|
|
2618
|
+
// Handle missing configuration
|
|
2619
|
+
if (!this.configSvc?.instanceConfig) {
|
|
2620
|
+
return '';
|
|
2621
|
+
}
|
|
2622
|
+
// Early return for direct hostname match
|
|
2623
|
+
if (this.environment?.sitePath === this.currentHostname) {
|
|
2624
|
+
return this.configSvc.instanceConfig.logos.app;
|
|
2625
|
+
}
|
|
2626
|
+
// Handle missing domain list
|
|
2627
|
+
if (!this.configSvc.instanceConfig.domainList) {
|
|
2628
|
+
return this.configSvc.instanceConfig.logos.app;
|
|
2629
|
+
}
|
|
2630
|
+
// Get domain-specific logo
|
|
2631
|
+
const domainData = this.configSvc.instanceConfig.domainList[this.subdomain];
|
|
2632
|
+
return domainData?.logo || this.configSvc.instanceConfig.logos.app;
|
|
2633
|
+
}
|
|
2634
|
+
/**
|
|
2635
|
+
* Gets the appropriate redirect path based on domain configuration
|
|
2636
|
+
* @returns The redirect path for the current domain
|
|
2637
|
+
*/
|
|
2638
|
+
getDomainRedirectPath() {
|
|
2639
|
+
// Handle missing configuration
|
|
2640
|
+
if (!this.configSvc?.instanceConfig) {
|
|
2641
|
+
return '/page/home';
|
|
2642
|
+
}
|
|
2643
|
+
// Early return for direct hostname match
|
|
2644
|
+
if (this.environment?.sitePath === this.currentHostname) {
|
|
2645
|
+
return '/page/home';
|
|
2646
|
+
}
|
|
2647
|
+
// Handle missing domain list
|
|
2648
|
+
if (!this.configSvc.instanceConfig.domainList) {
|
|
2649
|
+
return '/page/home';
|
|
2650
|
+
}
|
|
2651
|
+
// Get domain-specific redirect path
|
|
2652
|
+
const domainData = this.configSvc.instanceConfig.domainList[this.subdomain];
|
|
2653
|
+
return domainData?.redirectPath || '/page/home';
|
|
2654
|
+
}
|
|
2655
|
+
getDomainSitePath() {
|
|
2656
|
+
debugger;
|
|
2657
|
+
// Handle missing configuration
|
|
2658
|
+
if (!this.configSvc?.instanceConfig) {
|
|
2659
|
+
return this.environment?.sitePath;
|
|
2660
|
+
}
|
|
2661
|
+
// Early return for direct hostname match
|
|
2662
|
+
if (this.environment?.sitePath === this.currentHostname) {
|
|
2663
|
+
return this.environment?.sitePath;
|
|
2664
|
+
}
|
|
2665
|
+
// Handle missing domain list
|
|
2666
|
+
if (!this.configSvc.instanceConfig.domainList) {
|
|
2667
|
+
return this.environment?.sitePath;
|
|
2668
|
+
}
|
|
2669
|
+
// Get domain-specific redirect path
|
|
2670
|
+
const domainData = this.configSvc.instanceConfig.domainList[this.subdomain];
|
|
2671
|
+
return domainData?.sitePath || this.environment?.sitePath;
|
|
2672
|
+
}
|
|
2673
|
+
/**
|
|
2674
|
+
* Determines if the current domain is a same portal or client portal
|
|
2675
|
+
* @returns Boolean indicating if it's a same portal (true) or client portal (false)
|
|
2676
|
+
*/
|
|
2677
|
+
isKbPortal() {
|
|
2678
|
+
// Check if environment sitePath matches current hostname
|
|
2679
|
+
const domainData = this.getDomainData();
|
|
2680
|
+
return this.environment.sitePath === domainData.sitePath;
|
|
2681
|
+
}
|
|
2682
|
+
getNonLoggedInPageUrl() {
|
|
2683
|
+
// Check if environment sitePath matches current hostname
|
|
2684
|
+
const domainData = this.getDomainData();
|
|
2685
|
+
return domainData?.karmayogiBharatLink || 'https://igotkarmayogi.gov.in/';
|
|
2686
|
+
}
|
|
2687
|
+
getDomainData() {
|
|
2688
|
+
const defaultDomainData = {
|
|
2689
|
+
"logo": "/assets/instances/eagle/app_logos/KarmayogiBharat_Logo_Horizontal.svg",
|
|
2690
|
+
"redirectPath": "/page/home",
|
|
2691
|
+
"cdnContentHost": this.environment?.cdnContentHost || "https://portal.igotkarmayogi.gov.in/",
|
|
2692
|
+
"sitePath": this.environment?.sitePath || "portal.igotkarmayogi.gov.in",
|
|
2693
|
+
"karmayogiBharatLink": this.environment?.karmayogiBharatLink || "https://igotkarmayogi.gov.in/"
|
|
2694
|
+
};
|
|
2695
|
+
return this.configSvc.instanceConfig?.domainList?.[this.subdomain] || defaultDomainData;
|
|
2696
|
+
}
|
|
2697
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DomainConfService, deps: [{ token: ConfigurationsService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2698
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DomainConfService, providedIn: 'root' }); }
|
|
2699
|
+
}
|
|
2700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DomainConfService, decorators: [{
|
|
2701
|
+
type: Injectable,
|
|
2702
|
+
args: [{
|
|
2703
|
+
providedIn: 'root'
|
|
2704
|
+
}]
|
|
2705
|
+
}], ctorParameters: () => [{ type: ConfigurationsService }, { type: undefined, decorators: [{
|
|
2706
|
+
type: Inject,
|
|
2707
|
+
args: ['environment']
|
|
2708
|
+
}] }] });
|
|
2709
|
+
|
|
2710
|
+
// interface IParsedToken {
|
|
2711
|
+
// email?: string
|
|
2712
|
+
// encEmail?: string
|
|
2713
|
+
// name?: string
|
|
2714
|
+
// preferred_username?: string
|
|
2715
|
+
// }
|
|
2391
2716
|
const storage = localStorage;
|
|
2392
2717
|
const storageKey = 'kc';
|
|
2718
|
+
// const logoutRedirectUrl = ''
|
|
2393
2719
|
class AuthKeycloakService {
|
|
2394
|
-
constructor(http, configSvc,
|
|
2720
|
+
constructor(http, configSvc,
|
|
2721
|
+
// private keycloakSvc: KeycloakService,
|
|
2722
|
+
msAuthSvc, domainConf, environment) {
|
|
2395
2723
|
this.http = http;
|
|
2396
2724
|
this.configSvc = configSvc;
|
|
2397
2725
|
this.msAuthSvc = msAuthSvc;
|
|
2726
|
+
this.domainConf = domainConf;
|
|
2398
2727
|
this.loginChangeSubject = new ReplaySubject(1);
|
|
2399
2728
|
this.loginChangeSubject.subscribe((isLoggedIn) => {
|
|
2400
2729
|
this.configSvc.isAuthenticated = isLoggedIn;
|
|
@@ -2410,9 +2739,48 @@ class AuthKeycloakService {
|
|
|
2410
2739
|
});
|
|
2411
2740
|
this.environment = environment;
|
|
2412
2741
|
}
|
|
2742
|
+
// Getters
|
|
2413
2743
|
get isLoggedIn$() {
|
|
2414
2744
|
return this.loginChangeSubject.asObservable();
|
|
2415
2745
|
}
|
|
2746
|
+
// get isLoggedIn(): Promise<boolean> {
|
|
2747
|
+
// return this.keycloakSvc.isLoggedIn()
|
|
2748
|
+
// }
|
|
2749
|
+
// get isAuthenticated(): boolean | undefined {
|
|
2750
|
+
// return this.keycloakSvc.getKeycloakInstance().authenticated
|
|
2751
|
+
// }
|
|
2752
|
+
// get token(): string | undefined {
|
|
2753
|
+
// return this.keycloakSvc.getKeycloakInstance().token
|
|
2754
|
+
// }
|
|
2755
|
+
// get sessionId(): string | undefined {
|
|
2756
|
+
// return this.keycloakSvc.getKeycloakInstance().sessionId
|
|
2757
|
+
// }
|
|
2758
|
+
// get userId(): string | undefined {
|
|
2759
|
+
// const kc = this.keycloakSvc.getKeycloakInstance()
|
|
2760
|
+
// if (!kc) {
|
|
2761
|
+
// return
|
|
2762
|
+
// }
|
|
2763
|
+
// return (kc.tokenParsed && kc.tokenParsed.sub) || (kc.idTokenParsed && kc.idTokenParsed.sub)
|
|
2764
|
+
// }
|
|
2765
|
+
// get userEmail(): string | undefined {
|
|
2766
|
+
// const kc = this.keycloakSvc.getKeycloakInstance()
|
|
2767
|
+
// const tokenParsed = kc.tokenParsed as IParsedToken
|
|
2768
|
+
// const idTokenParsed = kc.idTokenParsed as IParsedToken
|
|
2769
|
+
// return (
|
|
2770
|
+
// (tokenParsed && tokenParsed.email) ||
|
|
2771
|
+
// (idTokenParsed && idTokenParsed.email) ||
|
|
2772
|
+
// (idTokenParsed && idTokenParsed.encEmail) ||
|
|
2773
|
+
// (tokenParsed && tokenParsed.preferred_username) ||
|
|
2774
|
+
// (idTokenParsed && idTokenParsed.preferred_username)
|
|
2775
|
+
// )
|
|
2776
|
+
// }
|
|
2777
|
+
// get userName(): string | undefined {
|
|
2778
|
+
// const kc = this.keycloakSvc.getKeycloakInstance()
|
|
2779
|
+
// return (
|
|
2780
|
+
// (kc.tokenParsed && (kc.tokenParsed as IParsedToken).name) ||
|
|
2781
|
+
// (kc.idTokenParsed && (kc.idTokenParsed as IParsedToken).name)
|
|
2782
|
+
// )
|
|
2783
|
+
// }
|
|
2416
2784
|
async initAuth() {
|
|
2417
2785
|
if (!this.configSvc.instanceConfig) {
|
|
2418
2786
|
return false;
|
|
@@ -2424,12 +2792,36 @@ class AuthKeycloakService {
|
|
|
2424
2792
|
try {
|
|
2425
2793
|
this.setupGlobalAuthResponder();
|
|
2426
2794
|
this.addKeycloakEventListener();
|
|
2795
|
+
// return await this.keycloakSvc.init({
|
|
2796
|
+
// config: {
|
|
2797
|
+
// url: instanceConfig.keycloak.url,
|
|
2798
|
+
// realm: instanceConfig.keycloak.realm,
|
|
2799
|
+
// clientId: instanceConfig.keycloak.clientId,
|
|
2800
|
+
// },
|
|
2801
|
+
// initOptions: {
|
|
2802
|
+
// ...this.getSavedKcConfig(),
|
|
2803
|
+
// onLoad: instanceConfig.keycloak.onLoad || 'check-sso',
|
|
2804
|
+
// checkLoginIframe: false,
|
|
2805
|
+
// },
|
|
2806
|
+
// enableBearerInterceptor: true,
|
|
2807
|
+
// loadUserProfileAtStartUp: false,
|
|
2808
|
+
// bearerExcludedUrls: instanceConfig.keycloak.bearerExcludedUrls,
|
|
2809
|
+
// })
|
|
2427
2810
|
return true;
|
|
2428
2811
|
}
|
|
2429
2812
|
catch (err) {
|
|
2430
2813
|
return false;
|
|
2431
2814
|
}
|
|
2432
2815
|
}
|
|
2816
|
+
// login(
|
|
2817
|
+
// idpHint: 'E' | 'N' | 'S' = 'E',
|
|
2818
|
+
// redirectUrl: string = this.defaultRedirectUrl,
|
|
2819
|
+
// ): Promise<void> {
|
|
2820
|
+
// return this.keycloakSvc.login({
|
|
2821
|
+
// idpHint,
|
|
2822
|
+
// redirectUri: redirectUrl,
|
|
2823
|
+
// })
|
|
2824
|
+
// }
|
|
2433
2825
|
loginV2(_idpHint = 'E', redirectUrl = this.defaultRedirectUrl) {
|
|
2434
2826
|
if (this.configSvc.instanceConfig) {
|
|
2435
2827
|
window.location.href = this.configSvc.instanceConfig.keycloak.url + redirectUrl;
|
|
@@ -2437,6 +2829,16 @@ class AuthKeycloakService {
|
|
|
2437
2829
|
}
|
|
2438
2830
|
return Promise.reject();
|
|
2439
2831
|
}
|
|
2832
|
+
// register(
|
|
2833
|
+
// redirectUrl: string = this.defaultRedirectUrl,
|
|
2834
|
+
// ): Promise<void> {
|
|
2835
|
+
// return this.keycloakSvc.register({
|
|
2836
|
+
// redirectUri: redirectUrl,
|
|
2837
|
+
// })
|
|
2838
|
+
// }
|
|
2839
|
+
/**
|
|
2840
|
+
* @deprecated this will be depricated
|
|
2841
|
+
*/
|
|
2440
2842
|
async logout(redirectUrl = this.defaultRedirectUrl) {
|
|
2441
2843
|
if (storage.getItem('telemetrySessionId')) {
|
|
2442
2844
|
storage.removeItem('telemetrySessionId');
|
|
@@ -2448,15 +2850,29 @@ class AuthKeycloakService {
|
|
|
2448
2850
|
catch {
|
|
2449
2851
|
}
|
|
2450
2852
|
storage.removeItem(storageKey);
|
|
2853
|
+
// alert(`${redirectUrl}apis/reset`)
|
|
2451
2854
|
window.location.href = `${redirectUrl}apis/reset`;
|
|
2855
|
+
// window.location.href = 'http://localhost:3003/reset'
|
|
2856
|
+
// await this.http.get('/apis/reset').toPromise()
|
|
2857
|
+
// setTimeout(window.location.href = `${redirectUrl}apis/reset`, 13000)
|
|
2858
|
+
// logoutRedirectUrl = redirectUrl
|
|
2859
|
+
// if (this.msAuthSvc.isLogoutRequired) {
|
|
2860
|
+
// this.keycloakSvc.logout(this.msAuthSvc.logoutUrl(redirectUrl))
|
|
2861
|
+
// } else {
|
|
2862
|
+
// this.keycloakSvc.logout(redirectUrl)
|
|
2863
|
+
// }
|
|
2452
2864
|
}
|
|
2453
2865
|
async force_logout() {
|
|
2454
2866
|
if (storage.getItem('telemetrySessionId')) {
|
|
2455
2867
|
storage.removeItem('telemetrySessionId');
|
|
2456
2868
|
}
|
|
2457
2869
|
else {
|
|
2870
|
+
// window.location.href = '/public/home'
|
|
2458
2871
|
storage.removeItem(storageKey);
|
|
2459
|
-
window.location.href =
|
|
2872
|
+
// window.location.href = `${this.environment.staticHomePageUrl}`
|
|
2873
|
+
// await this.http.get(`https://${this.environment.sitePath}/apis/reset`).toPromise()
|
|
2874
|
+
// this.openInvisibleIframe(`https://${this.environment.sitePath}/apis/reset`)
|
|
2875
|
+
window.location.href = `https://${this.domainConf.getDomainSitePath()}/apis/reset`;
|
|
2460
2876
|
await this.http.get('https://admin-test.ecornell.com/saml/logout.do').toPromise();
|
|
2461
2877
|
}
|
|
2462
2878
|
try {
|
|
@@ -2466,24 +2882,111 @@ class AuthKeycloakService {
|
|
|
2466
2882
|
catch {
|
|
2467
2883
|
}
|
|
2468
2884
|
storage.removeItem(storageKey);
|
|
2469
|
-
window.location.href =
|
|
2885
|
+
// window.location.href = `${this.environment.staticHomePageUrl}`
|
|
2886
|
+
//await this.http.get(`https://${this.environment.sitePath}/apis/reset`).toPromise()
|
|
2887
|
+
window.location.href = `https://${this.domainConf.getDomainSitePath()}/apis/reset`;
|
|
2888
|
+
// this.openInvisibleIframe(`https://${this.environment.sitePath}/apis/reset`)
|
|
2889
|
+
// window.location.href = `${this.environment.staticHomePageUrl}`
|
|
2470
2890
|
await this.http.get('https://admin-test.ecornell.com/saml/logout.do').toPromise();
|
|
2471
2891
|
}
|
|
2472
2892
|
openInvisibleIframe(url) {
|
|
2893
|
+
// Create an iframe element
|
|
2473
2894
|
const iframe = document.createElement('iframe');
|
|
2474
|
-
iframe
|
|
2895
|
+
// Set iframe attributes and make it invisible
|
|
2896
|
+
iframe.src = url; // The URL you want to load
|
|
2475
2897
|
iframe.style.position = 'absolute';
|
|
2476
2898
|
iframe.style.width = '0';
|
|
2477
2899
|
iframe.style.height = '0';
|
|
2478
2900
|
iframe.style.border = 'none';
|
|
2479
|
-
iframe.style.visibility = 'hidden';
|
|
2480
|
-
iframe.style.opacity = '0';
|
|
2901
|
+
iframe.style.visibility = 'hidden'; // Alternatively, use display: none
|
|
2902
|
+
iframe.style.opacity = '0'; // Make it invisible, while still loading content
|
|
2903
|
+
// Append the iframe to the body or any specific container element
|
|
2481
2904
|
document.body.appendChild(iframe);
|
|
2482
2905
|
}
|
|
2483
2906
|
addKeycloakEventListener() {
|
|
2907
|
+
// this.keycloakSvc.keycloakEvents$.subscribe((event: KeycloakEvent) => {
|
|
2908
|
+
// switch (event.type) {
|
|
2909
|
+
// case KeycloakEventType.OnAuthError:
|
|
2910
|
+
// this.loginChangeSubject.next(false)
|
|
2911
|
+
// break
|
|
2912
|
+
// case KeycloakEventType.OnAuthLogout:
|
|
2913
|
+
// this.loginChangeSubject.next(false)
|
|
2914
|
+
// storage.removeItem(storageKey)
|
|
2915
|
+
// break
|
|
2916
|
+
// case KeycloakEventType.OnAuthRefreshError:
|
|
2917
|
+
// break
|
|
2918
|
+
// case KeycloakEventType.OnAuthRefreshSuccess:
|
|
2919
|
+
// break
|
|
2920
|
+
// case KeycloakEventType.OnAuthSuccess:
|
|
2921
|
+
// break
|
|
2922
|
+
// case KeycloakEventType.OnReady:
|
|
2923
|
+
// this.loginChangeSubject.next(event.args)
|
|
2924
|
+
// if (event.args) {
|
|
2925
|
+
// this.saveKeycloakConfig()
|
|
2926
|
+
// }
|
|
2927
|
+
// break
|
|
2928
|
+
// case KeycloakEventType.OnTokenExpired:
|
|
2929
|
+
// this.keycloakSvc.updateToken(60)
|
|
2930
|
+
// break
|
|
2931
|
+
// }
|
|
2932
|
+
// })
|
|
2484
2933
|
}
|
|
2485
2934
|
setupGlobalAuthResponder() {
|
|
2486
|
-
|
|
2935
|
+
// fromEvent<MessageEvent>(window, 'message')
|
|
2936
|
+
// .pipe(
|
|
2937
|
+
// filter(
|
|
2938
|
+
// (event: MessageEvent) =>
|
|
2939
|
+
// Boolean(event) &&
|
|
2940
|
+
// Boolean(event.data) &&
|
|
2941
|
+
// event.data.type === 'AUTH_REQUEST' &&
|
|
2942
|
+
// Boolean(event.source && typeof event.source.postMessage === 'function'),
|
|
2943
|
+
// ),
|
|
2944
|
+
// )
|
|
2945
|
+
// .subscribe(async (event: MessageEvent) => {
|
|
2946
|
+
// const contentWindow = event.source as Window
|
|
2947
|
+
// const token = await this.keycloakSvc.getToken()
|
|
2948
|
+
// const response = {
|
|
2949
|
+
// app: 'WEB_PORTAL',
|
|
2950
|
+
// type: 'AUTH_RESPONSE',
|
|
2951
|
+
// state: 'NONE',
|
|
2952
|
+
// plugin: 'NONE',
|
|
2953
|
+
// data: {
|
|
2954
|
+
// token,
|
|
2955
|
+
// id: event.data && event.data.data && event.data.data.id,
|
|
2956
|
+
// },
|
|
2957
|
+
// }
|
|
2958
|
+
// contentWindow.postMessage(response, '*')
|
|
2959
|
+
// })
|
|
2960
|
+
}
|
|
2961
|
+
// Utility Methods
|
|
2962
|
+
// private saveKeycloakConfig() {
|
|
2963
|
+
// // const kc = this.keycloakSvc.getKeycloakInstance()
|
|
2964
|
+
// // const kcInitOptions: KeycloakInitOptions = {
|
|
2965
|
+
// // idToken: kc.idToken,
|
|
2966
|
+
// // refreshToken: kc.refreshToken,
|
|
2967
|
+
// // timeSkew: kc.timeSkew,
|
|
2968
|
+
// // token: kc.token,
|
|
2969
|
+
// // }
|
|
2970
|
+
// // storage.setItem(storageKey, JSON.stringify(kcInitOptions))
|
|
2971
|
+
// }
|
|
2972
|
+
// private getSavedKcConfig(): KeycloakInitOptions {
|
|
2973
|
+
// try {
|
|
2974
|
+
// // const lastSaved = KEYCLOAK_STORAGE.getItem(key);
|
|
2975
|
+
// const lastSaved = storage.getItem(storageKey)
|
|
2976
|
+
// if (lastSaved) {
|
|
2977
|
+
// const processed = JSON.parse(lastSaved)
|
|
2978
|
+
// if (
|
|
2979
|
+
// 'idToken' in processed &&
|
|
2980
|
+
// 'refreshToken' in processed &&
|
|
2981
|
+
// 'timeSkew' in processed &&
|
|
2982
|
+
// 'token' in processed
|
|
2983
|
+
// ) {
|
|
2984
|
+
// return processed
|
|
2985
|
+
// }
|
|
2986
|
+
// }
|
|
2987
|
+
// } catch (e) { }
|
|
2988
|
+
// return {}
|
|
2989
|
+
// }
|
|
2487
2990
|
get defaultRedirectUrl() {
|
|
2488
2991
|
try {
|
|
2489
2992
|
const baseUrl = document.baseURI;
|
|
@@ -2493,18 +2996,18 @@ class AuthKeycloakService {
|
|
|
2493
2996
|
return location.origin;
|
|
2494
2997
|
}
|
|
2495
2998
|
}
|
|
2496
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2497
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2999
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AuthKeycloakService, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }, { token: AuthMicrosoftService }, { token: DomainConfService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3000
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AuthKeycloakService, providedIn: 'root' }); }
|
|
2498
3001
|
}
|
|
2499
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AuthKeycloakService, decorators: [{
|
|
2500
3003
|
type: Injectable,
|
|
2501
3004
|
args: [{
|
|
2502
3005
|
providedIn: 'root',
|
|
2503
3006
|
}]
|
|
2504
|
-
}], ctorParameters:
|
|
3007
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: ConfigurationsService }, { type: AuthMicrosoftService }, { type: DomainConfService }, { type: undefined, decorators: [{
|
|
2505
3008
|
type: Inject,
|
|
2506
3009
|
args: ['environment']
|
|
2507
|
-
}] }]
|
|
3010
|
+
}] }] });
|
|
2508
3011
|
|
|
2509
3012
|
class LogoutComponent {
|
|
2510
3013
|
constructor(dialogRef, authSvc, configSvc, utilitySvc, translate) {
|
|
@@ -2518,6 +3021,8 @@ class LogoutComponent {
|
|
|
2518
3021
|
this.isDownloadableAndroid = false;
|
|
2519
3022
|
if (localStorage.getItem('websiteLanguage')) {
|
|
2520
3023
|
this.translate.setDefaultLang('en');
|
|
3024
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3025
|
+
// tslint:disable-next-line: no-non-null-assertion
|
|
2521
3026
|
const lang = localStorage.getItem('websiteLanguage') || null;
|
|
2522
3027
|
this.translate.use(lang);
|
|
2523
3028
|
}
|
|
@@ -2543,6 +3048,7 @@ class LogoutComponent {
|
|
|
2543
3048
|
if (localStorage.getItem('websiteLanguage')) {
|
|
2544
3049
|
localStorage.removeItem('websiteLanguage');
|
|
2545
3050
|
}
|
|
3051
|
+
// this.authSvc.logout()
|
|
2546
3052
|
this.authSvc.force_logout();
|
|
2547
3053
|
if (localStorage.getItem('faq')) {
|
|
2548
3054
|
localStorage.removeItem('faq');
|
|
@@ -2556,8 +3062,8 @@ class LogoutComponent {
|
|
|
2556
3062
|
if (localStorage.getItem('motivationalMessage')) {
|
|
2557
3063
|
localStorage.removeItem('motivationalMessage');
|
|
2558
3064
|
}
|
|
2559
|
-
if (localStorage.getItem('
|
|
2560
|
-
localStorage.removeItem('
|
|
3065
|
+
if (localStorage.getItem('microSiteRedirectionData')) {
|
|
3066
|
+
localStorage.removeItem('microSiteRedirectionData');
|
|
2561
3067
|
}
|
|
2562
3068
|
}
|
|
2563
3069
|
get isDownloadable() {
|
|
@@ -2567,33 +3073,33 @@ class LogoutComponent {
|
|
|
2567
3073
|
}
|
|
2568
3074
|
return false;
|
|
2569
3075
|
}
|
|
2570
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2571
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3076
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LogoutComponent, deps: [{ token: i1$1.MatDialogRef }, { token: AuthKeycloakService }, { token: ConfigurationsService }, { token: UtilityService }, { token: i5.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3077
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: LogoutComponent, isStandalone: false, selector: "ws-utils-logout", ngImport: i0, template: "<h1 mat-dialog-title i18n>{{'utilslogout.logoutNow' | translate}}</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n {{'utilslogout.logoutNote' | translate}}\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n {{'utilslogout.logoutConfirm' | translate}}\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 {{'utilslogout.logoutYes' | translate}}\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" mat-dialog-close cdkFocusInitial i18n>\r\n {{'utilslogout.logoutNo' | translate}}\r\n </button>\r\n</div>\r\n", styles: [".hide-overflow{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i1$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
|
|
2572
3078
|
}
|
|
2573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LogoutComponent, decorators: [{
|
|
2574
3080
|
type: Component,
|
|
2575
|
-
args: [{ selector: 'ws-utils-logout', template: "<h1 mat-dialog-title i18n>{{'utilslogout.logoutNow' | translate}}</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n {{'utilslogout.logoutNote' | translate}}\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n {{'utilslogout.logoutConfirm' | translate}}\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 {{'utilslogout.logoutYes' | translate}}\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" mat-dialog-close cdkFocusInitial i18n>\r\n {{'utilslogout.logoutNo' | translate}}\r\n </button>\r\n</div>\r\n", styles: [".hide-overflow{overflow:hidden}\n"] }]
|
|
2576
|
-
}], ctorParameters:
|
|
3081
|
+
args: [{ selector: 'ws-utils-logout', standalone: false, template: "<h1 mat-dialog-title i18n>{{'utilslogout.logoutNow' | translate}}</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n {{'utilslogout.logoutNote' | translate}}\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n {{'utilslogout.logoutConfirm' | translate}}\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 {{'utilslogout.logoutYes' | translate}}\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" mat-dialog-close cdkFocusInitial i18n>\r\n {{'utilslogout.logoutNo' | translate}}\r\n </button>\r\n</div>\r\n", styles: [".hide-overflow{overflow:hidden}\n"] }]
|
|
3082
|
+
}], ctorParameters: () => [{ type: i1$1.MatDialogRef }, { type: AuthKeycloakService }, { type: ConfigurationsService }, { type: UtilityService }, { type: i5.TranslateService }] });
|
|
2577
3083
|
|
|
2578
3084
|
class LogoutModule {
|
|
2579
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2580
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2581
|
-
|
|
2582
|
-
|
|
3085
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LogoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3086
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: LogoutModule, declarations: [LogoutComponent], imports: [CommonModule,
|
|
3087
|
+
MatButtonModule,
|
|
3088
|
+
MatDialogModule,
|
|
2583
3089
|
TranslateModule] }); }
|
|
2584
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2585
|
-
|
|
2586
|
-
|
|
3090
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LogoutModule, imports: [CommonModule,
|
|
3091
|
+
MatButtonModule,
|
|
3092
|
+
MatDialogModule,
|
|
2587
3093
|
TranslateModule] }); }
|
|
2588
3094
|
}
|
|
2589
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3095
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LogoutModule, decorators: [{
|
|
2590
3096
|
type: NgModule,
|
|
2591
3097
|
args: [{
|
|
2592
3098
|
declarations: [LogoutComponent],
|
|
2593
3099
|
imports: [
|
|
2594
3100
|
CommonModule,
|
|
2595
|
-
|
|
2596
|
-
|
|
3101
|
+
MatButtonModule,
|
|
3102
|
+
MatDialogModule,
|
|
2597
3103
|
TranslateModule,
|
|
2598
3104
|
]
|
|
2599
3105
|
}]
|
|
@@ -2644,22 +3150,23 @@ class PipeConciseDateRangePipe {
|
|
|
2644
3150
|
return `${dateRange.fromDate} - ${dateRange.toDate}`;
|
|
2645
3151
|
}
|
|
2646
3152
|
}
|
|
2647
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2648
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeConciseDateRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3154
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeConciseDateRangePipe, isStandalone: false, name: "pipeConciseDateRange" }); }
|
|
2649
3155
|
}
|
|
2650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeConciseDateRangePipe, decorators: [{
|
|
2651
3157
|
type: Pipe,
|
|
2652
3158
|
args: [{
|
|
2653
3159
|
name: 'pipeConciseDateRange',
|
|
3160
|
+
standalone: false
|
|
2654
3161
|
}]
|
|
2655
3162
|
}] });
|
|
2656
3163
|
|
|
2657
3164
|
class PipeConciseDateRangeModule {
|
|
2658
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2659
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2660
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeConciseDateRangeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3166
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeConciseDateRangeModule, declarations: [PipeConciseDateRangePipe], imports: [CommonModule], exports: [PipeConciseDateRangePipe] }); }
|
|
3167
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeConciseDateRangeModule, imports: [CommonModule] }); }
|
|
2661
3168
|
}
|
|
2662
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeConciseDateRangeModule, decorators: [{
|
|
2663
3170
|
type: NgModule,
|
|
2664
3171
|
args: [{
|
|
2665
3172
|
declarations: [PipeConciseDateRangePipe],
|
|
@@ -2693,22 +3200,23 @@ class PipeCountTransformPipe {
|
|
|
2693
3200
|
}
|
|
2694
3201
|
return '0';
|
|
2695
3202
|
}
|
|
2696
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2697
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCountTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3204
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeCountTransformPipe, isStandalone: false, name: "pipeCountTransform" }); }
|
|
2698
3205
|
}
|
|
2699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCountTransformPipe, decorators: [{
|
|
2700
3207
|
type: Pipe,
|
|
2701
3208
|
args: [{
|
|
2702
3209
|
name: 'pipeCountTransform',
|
|
3210
|
+
standalone: false
|
|
2703
3211
|
}]
|
|
2704
3212
|
}] });
|
|
2705
3213
|
|
|
2706
3214
|
class PipeCountTransformModule {
|
|
2707
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2708
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2709
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCountTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3216
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeCountTransformModule, declarations: [PipeCountTransformPipe], imports: [CommonModule], exports: [PipeCountTransformPipe] }); }
|
|
3217
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCountTransformModule, imports: [CommonModule] }); }
|
|
2710
3218
|
}
|
|
2711
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCountTransformModule, decorators: [{
|
|
2712
3220
|
type: NgModule,
|
|
2713
3221
|
args: [{
|
|
2714
3222
|
declarations: [PipeCountTransformPipe],
|
|
@@ -2743,22 +3251,23 @@ class PipeDateConcatPipe {
|
|
|
2743
3251
|
}
|
|
2744
3252
|
return dateStr;
|
|
2745
3253
|
}
|
|
2746
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2747
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3254
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeDateConcatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3255
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeDateConcatPipe, isStandalone: false, name: "pipeDateConcat" }); }
|
|
2748
3256
|
}
|
|
2749
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeDateConcatPipe, decorators: [{
|
|
2750
3258
|
type: Pipe,
|
|
2751
3259
|
args: [{
|
|
2752
3260
|
name: 'pipeDateConcat',
|
|
3261
|
+
standalone: false
|
|
2753
3262
|
}]
|
|
2754
|
-
}], ctorParameters:
|
|
3263
|
+
}], ctorParameters: () => [] });
|
|
2755
3264
|
|
|
2756
3265
|
class PipeDateConcatModule {
|
|
2757
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2758
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2759
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3266
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeDateConcatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3267
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeDateConcatModule, declarations: [PipeDateConcatPipe], imports: [CommonModule], exports: [PipeDateConcatPipe] }); }
|
|
3268
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeDateConcatModule, imports: [CommonModule] }); }
|
|
2760
3269
|
}
|
|
2761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeDateConcatModule, decorators: [{
|
|
2762
3271
|
type: NgModule,
|
|
2763
3272
|
args: [{
|
|
2764
3273
|
declarations: [PipeDateConcatPipe],
|
|
@@ -2784,10 +3293,11 @@ class PipeDurationTransformPipe {
|
|
|
2784
3293
|
case 'hms':
|
|
2785
3294
|
return this.hmsCalculation(h, m, s, duration, type);
|
|
2786
3295
|
case 'hms2H':
|
|
3296
|
+
/**to Print HH:mm:ss */
|
|
2787
3297
|
const duration2 = moment.duration(data, 'seconds');
|
|
2788
3298
|
const resultstring = moment.utc(duration2.asMilliseconds()).format('HH:mm:ss');
|
|
2789
3299
|
return resultstring;
|
|
2790
|
-
case 'hms2M':
|
|
3300
|
+
case 'hms2M': /**to Print mm:ss */
|
|
2791
3301
|
const duration2H = moment.duration(data, 'seconds');
|
|
2792
3302
|
const resultstring2H = moment.utc(duration2H.asMilliseconds()).format('mm:ss');
|
|
2793
3303
|
return resultstring2H;
|
|
@@ -2842,22 +3352,23 @@ class PipeDurationTransformPipe {
|
|
|
2842
3352
|
}
|
|
2843
3353
|
return duration;
|
|
2844
3354
|
}
|
|
2845
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2846
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3355
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeDurationTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3356
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeDurationTransformPipe, isStandalone: false, name: "pipeDurationTransform" }); }
|
|
2847
3357
|
}
|
|
2848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeDurationTransformPipe, decorators: [{
|
|
2849
3359
|
type: Pipe,
|
|
2850
3360
|
args: [{
|
|
2851
3361
|
name: 'pipeDurationTransform',
|
|
3362
|
+
standalone: false
|
|
2852
3363
|
}]
|
|
2853
3364
|
}] });
|
|
2854
3365
|
|
|
2855
3366
|
class PipeDurationTransformModule {
|
|
2856
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2857
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2858
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3367
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeDurationTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3368
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeDurationTransformModule, declarations: [PipeDurationTransformPipe], imports: [CommonModule], exports: [PipeDurationTransformPipe] }); }
|
|
3369
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeDurationTransformModule, imports: [CommonModule] }); }
|
|
2859
3370
|
}
|
|
2860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3371
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeDurationTransformModule, decorators: [{
|
|
2861
3372
|
type: NgModule,
|
|
2862
3373
|
args: [{
|
|
2863
3374
|
declarations: [PipeDurationTransformPipe],
|
|
@@ -2872,22 +3383,23 @@ class PipeHtmlTagRemovalPipe {
|
|
|
2872
3383
|
transform(htmlString) {
|
|
2873
3384
|
return htmlString ? String(htmlString).replace(/<[^>]+>/gm, '') : '';
|
|
2874
3385
|
}
|
|
2875
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2876
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3386
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeHtmlTagRemovalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3387
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeHtmlTagRemovalPipe, isStandalone: false, name: "pipeHtmlTagRemoval" }); }
|
|
2877
3388
|
}
|
|
2878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeHtmlTagRemovalPipe, decorators: [{
|
|
2879
3390
|
type: Pipe,
|
|
2880
3391
|
args: [{
|
|
2881
3392
|
name: 'pipeHtmlTagRemoval',
|
|
3393
|
+
standalone: false
|
|
2882
3394
|
}]
|
|
2883
3395
|
}] });
|
|
2884
3396
|
|
|
2885
3397
|
class PipeHtmlTagRemovalModule {
|
|
2886
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2887
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2888
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3398
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeHtmlTagRemovalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3399
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeHtmlTagRemovalModule, declarations: [PipeHtmlTagRemovalPipe], imports: [CommonModule], exports: [PipeHtmlTagRemovalPipe] }); }
|
|
3400
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeHtmlTagRemovalModule, imports: [CommonModule] }); }
|
|
2889
3401
|
}
|
|
2890
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeHtmlTagRemovalModule, decorators: [{
|
|
2891
3403
|
type: NgModule,
|
|
2892
3404
|
args: [{
|
|
2893
3405
|
declarations: [PipeHtmlTagRemovalPipe],
|
|
@@ -2906,22 +3418,23 @@ class PipeFilterPipe {
|
|
|
2906
3418
|
return (value || []).filter((item) => keys.split(',')
|
|
2907
3419
|
.some(key => item.hasOwnProperty(key) && new RegExp(`^${term}$`, 'gi').test(item[key])));
|
|
2908
3420
|
}
|
|
2909
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2910
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3421
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3422
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterPipe, isStandalone: false, name: "pipeFilter" }); }
|
|
2911
3423
|
}
|
|
2912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterPipe, decorators: [{
|
|
2913
3425
|
type: Pipe,
|
|
2914
3426
|
args: [{
|
|
2915
3427
|
name: 'pipeFilter',
|
|
3428
|
+
standalone: false
|
|
2916
3429
|
}]
|
|
2917
3430
|
}] });
|
|
2918
3431
|
|
|
2919
3432
|
class PipeFilterModule {
|
|
2920
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2921
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2922
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3433
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3434
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterModule, declarations: [PipeFilterPipe], imports: [CommonModule], exports: [PipeFilterPipe] }); }
|
|
3435
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterModule, imports: [CommonModule] }); }
|
|
2923
3436
|
}
|
|
2924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterModule, decorators: [{
|
|
2925
3438
|
type: NgModule,
|
|
2926
3439
|
args: [{
|
|
2927
3440
|
declarations: [PipeFilterPipe],
|
|
@@ -2941,22 +3454,23 @@ class PipeOrdinalPipe {
|
|
|
2941
3454
|
const v = value % 100;
|
|
2942
3455
|
return value + (suffixes[(v - 20) % 10] || suffixes[v] || suffixes[0]);
|
|
2943
3456
|
}
|
|
2944
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2945
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3457
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeOrdinalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3458
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeOrdinalPipe, isStandalone: false, name: "pipeOrdinal" }); }
|
|
2946
3459
|
}
|
|
2947
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeOrdinalPipe, decorators: [{
|
|
2948
3461
|
type: Pipe,
|
|
2949
3462
|
args: [{
|
|
2950
3463
|
name: 'pipeOrdinal',
|
|
3464
|
+
standalone: false
|
|
2951
3465
|
}]
|
|
2952
3466
|
}] });
|
|
2953
3467
|
|
|
2954
3468
|
class PipeOrdinalModule {
|
|
2955
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2956
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2957
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3469
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeOrdinalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3470
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeOrdinalModule, declarations: [PipeOrdinalPipe], imports: [CommonModule], exports: [PipeOrdinalPipe] }); }
|
|
3471
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeOrdinalModule, imports: [CommonModule] }); }
|
|
2958
3472
|
}
|
|
2959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeOrdinalModule, decorators: [{
|
|
2960
3474
|
type: NgModule,
|
|
2961
3475
|
args: [{
|
|
2962
3476
|
declarations: [PipeOrdinalPipe],
|
|
@@ -2971,22 +3485,23 @@ class PipeEmailPipe {
|
|
|
2971
3485
|
transform(value) {
|
|
2972
3486
|
return value.split('.').join('[dot]').replace('@', '[at]');
|
|
2973
3487
|
}
|
|
2974
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2975
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3488
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeEmailPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3489
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeEmailPipe, isStandalone: false, name: "pipeEmail" }); }
|
|
2976
3490
|
}
|
|
2977
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeEmailPipe, decorators: [{
|
|
2978
3492
|
type: Pipe,
|
|
2979
3493
|
args: [{
|
|
2980
3494
|
name: 'pipeEmail',
|
|
3495
|
+
standalone: false
|
|
2981
3496
|
}]
|
|
2982
3497
|
}] });
|
|
2983
3498
|
|
|
2984
3499
|
class PipeEmailModule {
|
|
2985
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2986
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2987
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeEmailModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3501
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeEmailModule, declarations: [PipeEmailPipe], imports: [CommonModule], exports: [PipeEmailPipe] }); }
|
|
3502
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeEmailModule, imports: [CommonModule] }); }
|
|
2988
3503
|
}
|
|
2989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeEmailModule, decorators: [{
|
|
2990
3505
|
type: NgModule,
|
|
2991
3506
|
args: [{
|
|
2992
3507
|
declarations: [PipeEmailPipe],
|
|
@@ -3010,22 +3525,23 @@ class PipeFilterV2Pipe {
|
|
|
3010
3525
|
return `${it[key]} `.toLowerCase().includes(searchTextLowerCase);
|
|
3011
3526
|
});
|
|
3012
3527
|
}
|
|
3013
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3014
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3528
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV2Pipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3529
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV2Pipe, isStandalone: false, name: "pipeFilterV2" }); }
|
|
3015
3530
|
}
|
|
3016
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV2Pipe, decorators: [{
|
|
3017
3532
|
type: Pipe,
|
|
3018
3533
|
args: [{
|
|
3019
3534
|
name: 'pipeFilterV2',
|
|
3535
|
+
standalone: false
|
|
3020
3536
|
}]
|
|
3021
3537
|
}] });
|
|
3022
3538
|
|
|
3023
3539
|
class PipeFilterV2Module {
|
|
3024
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3025
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3026
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3540
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3541
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV2Module, declarations: [PipeFilterV2Pipe], imports: [CommonModule], exports: [PipeFilterV2Pipe] }); }
|
|
3542
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV2Module, imports: [CommonModule] }); }
|
|
3027
3543
|
}
|
|
3028
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV2Module, decorators: [{
|
|
3029
3545
|
type: NgModule,
|
|
3030
3546
|
args: [{
|
|
3031
3547
|
declarations: [PipeFilterV2Pipe],
|
|
@@ -3041,7 +3557,9 @@ class PipeFilterV3Pipe {
|
|
|
3041
3557
|
if (filter && Array.isArray(items)) {
|
|
3042
3558
|
const filterKeys = Object.keys(filter);
|
|
3043
3559
|
if (isAnd) {
|
|
3044
|
-
return items.filter(item => filterKeys.reduce((memo, keyName) =>
|
|
3560
|
+
return items.filter(item => filterKeys.reduce((memo, keyName) =>
|
|
3561
|
+
// tslint:disable-next-line: align
|
|
3562
|
+
(memo && new RegExp(filter[keyName], 'gi').test(item[keyName])) || filter[keyName] === '', true));
|
|
3045
3563
|
}
|
|
3046
3564
|
return items.filter(item => {
|
|
3047
3565
|
return filterKeys.some(keyName => {
|
|
@@ -3051,22 +3569,23 @@ class PipeFilterV3Pipe {
|
|
|
3051
3569
|
}
|
|
3052
3570
|
return items;
|
|
3053
3571
|
}
|
|
3054
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3055
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV3Pipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3573
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV3Pipe, isStandalone: false, name: "pipeFilterV3" }); }
|
|
3056
3574
|
}
|
|
3057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV3Pipe, decorators: [{
|
|
3058
3576
|
type: Pipe,
|
|
3059
3577
|
args: [{
|
|
3060
3578
|
name: 'pipeFilterV3',
|
|
3579
|
+
standalone: false
|
|
3061
3580
|
}]
|
|
3062
3581
|
}] });
|
|
3063
3582
|
|
|
3064
3583
|
class PipeFilterV3Module {
|
|
3065
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3066
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3067
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3584
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV3Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3585
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV3Module, declarations: [PipeFilterV3Pipe], imports: [CommonModule], exports: [PipeFilterV3Pipe] }); }
|
|
3586
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV3Module, imports: [CommonModule] }); }
|
|
3068
3587
|
}
|
|
3069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterV3Module, decorators: [{
|
|
3070
3589
|
type: NgModule,
|
|
3071
3590
|
args: [{
|
|
3072
3591
|
declarations: [PipeFilterV3Pipe],
|
|
@@ -3097,6 +3616,11 @@ class PipeFilterSearchPipe {
|
|
|
3097
3616
|
if (it.fullName) {
|
|
3098
3617
|
return it.fullName.toLowerCase().includes(searchTextLowerCase);
|
|
3099
3618
|
}
|
|
3619
|
+
// keys.map((key: any) => {
|
|
3620
|
+
// console.log('key:', key)
|
|
3621
|
+
// console.log(`it['personalDetails'][key]`, it['personalDetails'][key])
|
|
3622
|
+
// return it['personalDetails'][key].toLowerCase().includes(searchTextLowerCase)
|
|
3623
|
+
// })
|
|
3100
3624
|
});
|
|
3101
3625
|
if (result && result.length <= 0) {
|
|
3102
3626
|
return [-1];
|
|
@@ -3107,22 +3631,23 @@ class PipeFilterSearchPipe {
|
|
|
3107
3631
|
return it.title.toLowerCase().includes(searchTextLowerCase);
|
|
3108
3632
|
});
|
|
3109
3633
|
}
|
|
3110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3111
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3634
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterSearchPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3635
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterSearchPipe, isStandalone: false, name: "pipeFilterSearch" }); }
|
|
3112
3636
|
}
|
|
3113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterSearchPipe, decorators: [{
|
|
3114
3638
|
type: Pipe,
|
|
3115
3639
|
args: [{
|
|
3116
3640
|
name: 'pipeFilterSearch',
|
|
3641
|
+
standalone: false
|
|
3117
3642
|
}]
|
|
3118
3643
|
}] });
|
|
3119
3644
|
|
|
3120
3645
|
class PipeFilterSearchModule {
|
|
3121
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3122
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3123
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3646
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3647
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterSearchModule, declarations: [PipeFilterSearchPipe], imports: [CommonModule], exports: [PipeFilterSearchPipe] }); }
|
|
3648
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterSearchModule, imports: [CommonModule] }); }
|
|
3124
3649
|
}
|
|
3125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeFilterSearchModule, decorators: [{
|
|
3126
3651
|
type: NgModule,
|
|
3127
3652
|
args: [{
|
|
3128
3653
|
declarations: [PipeFilterSearchPipe],
|
|
@@ -3141,23 +3666,25 @@ class PipeListFilterPipe {
|
|
|
3141
3666
|
return (value || []).filter((item) => keys.split(',')
|
|
3142
3667
|
.some(key => item.hasOwnProperty(key)
|
|
3143
3668
|
&& item[key] && (`${item[key]} `).toLocaleLowerCase().includes(term.toLocaleLowerCase())));
|
|
3669
|
+
// new RegExp(`^${term}$`, 'gi').test(item[key])
|
|
3144
3670
|
}
|
|
3145
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3146
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3671
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeListFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3672
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeListFilterPipe, isStandalone: false, name: "pipeListFilter" }); }
|
|
3147
3673
|
}
|
|
3148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeListFilterPipe, decorators: [{
|
|
3149
3675
|
type: Pipe,
|
|
3150
3676
|
args: [{
|
|
3151
3677
|
name: 'pipeListFilter',
|
|
3678
|
+
standalone: false
|
|
3152
3679
|
}]
|
|
3153
3680
|
}] });
|
|
3154
3681
|
|
|
3155
3682
|
class PipeListFilterModule {
|
|
3156
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3157
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3158
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3683
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeListFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3684
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeListFilterModule, declarations: [PipeListFilterPipe], imports: [CommonModule], exports: [PipeListFilterPipe] }); }
|
|
3685
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeListFilterModule, imports: [CommonModule] }); }
|
|
3159
3686
|
}
|
|
3160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeListFilterModule, decorators: [{
|
|
3161
3688
|
type: NgModule,
|
|
3162
3689
|
args: [{
|
|
3163
3690
|
declarations: [PipeListFilterPipe],
|
|
@@ -3175,22 +3702,23 @@ class PipeRelativeTimePipe {
|
|
|
3175
3702
|
}
|
|
3176
3703
|
return moment().startOf('hour').fromNow();
|
|
3177
3704
|
}
|
|
3178
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3179
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3705
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeRelativeTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3706
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeRelativeTimePipe, isStandalone: false, name: "pipeRelativeTime" }); }
|
|
3180
3707
|
}
|
|
3181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeRelativeTimePipe, decorators: [{
|
|
3182
3709
|
type: Pipe,
|
|
3183
3710
|
args: [{
|
|
3184
3711
|
name: 'pipeRelativeTime',
|
|
3712
|
+
standalone: false
|
|
3185
3713
|
}]
|
|
3186
3714
|
}] });
|
|
3187
3715
|
|
|
3188
3716
|
class PipeRelativeTimeModule {
|
|
3189
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3190
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3191
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3717
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeRelativeTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3718
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeRelativeTimeModule, declarations: [PipeRelativeTimePipe], imports: [CommonModule], exports: [PipeRelativeTimePipe] }); }
|
|
3719
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeRelativeTimeModule, imports: [CommonModule] }); }
|
|
3192
3720
|
}
|
|
3193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeRelativeTimeModule, decorators: [{
|
|
3194
3722
|
type: NgModule,
|
|
3195
3723
|
args: [{
|
|
3196
3724
|
declarations: [PipeRelativeTimePipe],
|
|
@@ -3205,22 +3733,23 @@ class OrderByPipe {
|
|
|
3205
3733
|
constructor() {
|
|
3206
3734
|
this.transform = orderBy;
|
|
3207
3735
|
}
|
|
3208
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3209
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3736
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: OrderByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3737
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: OrderByPipe, isStandalone: false, name: "orderBy" }); }
|
|
3210
3738
|
}
|
|
3211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: OrderByPipe, decorators: [{
|
|
3212
3740
|
type: Pipe,
|
|
3213
3741
|
args: [{
|
|
3214
3742
|
name: 'orderBy',
|
|
3743
|
+
standalone: false
|
|
3215
3744
|
}]
|
|
3216
3745
|
}] });
|
|
3217
3746
|
|
|
3218
3747
|
class PipeOrderByModule {
|
|
3219
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3220
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3221
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3748
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeOrderByModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3749
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeOrderByModule, declarations: [OrderByPipe], imports: [CommonModule], exports: [OrderByPipe] }); }
|
|
3750
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeOrderByModule, imports: [CommonModule] }); }
|
|
3222
3751
|
}
|
|
3223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeOrderByModule, decorators: [{
|
|
3224
3753
|
type: NgModule,
|
|
3225
3754
|
args: [{
|
|
3226
3755
|
declarations: [OrderByPipe],
|
|
@@ -3248,22 +3777,23 @@ class PipeLimitToPipe {
|
|
|
3248
3777
|
}
|
|
3249
3778
|
return null;
|
|
3250
3779
|
}
|
|
3251
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3252
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3780
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeLimitToPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3781
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeLimitToPipe, isStandalone: false, name: "pipeLimitTo" }); }
|
|
3253
3782
|
}
|
|
3254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3783
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeLimitToPipe, decorators: [{
|
|
3255
3784
|
type: Pipe,
|
|
3256
3785
|
args: [{
|
|
3257
3786
|
name: 'pipeLimitTo',
|
|
3787
|
+
standalone: false
|
|
3258
3788
|
}]
|
|
3259
3789
|
}] });
|
|
3260
3790
|
|
|
3261
3791
|
class PipeLimitToModule {
|
|
3262
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3263
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3264
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3792
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeLimitToModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3793
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeLimitToModule, declarations: [PipeLimitToPipe], imports: [CommonModule], exports: [PipeLimitToPipe] }); }
|
|
3794
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeLimitToModule, imports: [CommonModule] }); }
|
|
3265
3795
|
}
|
|
3266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeLimitToModule, decorators: [{
|
|
3267
3797
|
type: NgModule,
|
|
3268
3798
|
args: [{
|
|
3269
3799
|
declarations: [PipeLimitToPipe],
|
|
@@ -3280,6 +3810,9 @@ class PipeNameTransformPipe {
|
|
|
3280
3810
|
if (value.firstName) {
|
|
3281
3811
|
result += value.firstName;
|
|
3282
3812
|
}
|
|
3813
|
+
// if (value.lastName && value.lastName !== value.firstName) {
|
|
3814
|
+
// result += ` ${value.lastName}`
|
|
3815
|
+
// }
|
|
3283
3816
|
if (result.trim() !== '') {
|
|
3284
3817
|
return result;
|
|
3285
3818
|
}
|
|
@@ -3288,22 +3821,23 @@ class PipeNameTransformPipe {
|
|
|
3288
3821
|
}
|
|
3289
3822
|
return 'Anonymous User';
|
|
3290
3823
|
}
|
|
3291
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3292
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3824
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeNameTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3825
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeNameTransformPipe, isStandalone: false, name: "pipeNameTransform" }); }
|
|
3293
3826
|
}
|
|
3294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeNameTransformPipe, decorators: [{
|
|
3295
3828
|
type: Pipe,
|
|
3296
3829
|
args: [{
|
|
3297
3830
|
name: 'pipeNameTransform',
|
|
3831
|
+
standalone: false
|
|
3298
3832
|
}]
|
|
3299
3833
|
}] });
|
|
3300
3834
|
|
|
3301
3835
|
class PipeNameTransformModule {
|
|
3302
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3303
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3304
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3836
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeNameTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3837
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeNameTransformModule, declarations: [PipeNameTransformPipe], imports: [CommonModule], exports: [PipeNameTransformPipe] }); }
|
|
3838
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeNameTransformModule, imports: [CommonModule] }); }
|
|
3305
3839
|
}
|
|
3306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeNameTransformModule, decorators: [{
|
|
3307
3841
|
type: NgModule,
|
|
3308
3842
|
args: [{
|
|
3309
3843
|
declarations: [PipeNameTransformPipe],
|
|
@@ -3324,22 +3858,23 @@ class PipePartialContentPipe {
|
|
|
3324
3858
|
}
|
|
3325
3859
|
return result;
|
|
3326
3860
|
}
|
|
3327
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3328
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3861
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipePartialContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3862
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipePartialContentPipe, isStandalone: false, name: "pipePartialContent" }); }
|
|
3329
3863
|
}
|
|
3330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3864
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipePartialContentPipe, decorators: [{
|
|
3331
3865
|
type: Pipe,
|
|
3332
3866
|
args: [{
|
|
3333
3867
|
name: 'pipePartialContent',
|
|
3868
|
+
standalone: false
|
|
3334
3869
|
}]
|
|
3335
3870
|
}] });
|
|
3336
3871
|
|
|
3337
3872
|
class PipePartialContentModule {
|
|
3338
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3339
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3340
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3873
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipePartialContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3874
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipePartialContentModule, declarations: [PipePartialContentPipe], imports: [CommonModule], exports: [PipePartialContentPipe] }); }
|
|
3875
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipePartialContentModule, imports: [CommonModule] }); }
|
|
3341
3876
|
}
|
|
3342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipePartialContentModule, decorators: [{
|
|
3343
3878
|
type: NgModule,
|
|
3344
3879
|
args: [{
|
|
3345
3880
|
declarations: [PipePartialContentPipe],
|
|
@@ -3370,22 +3905,23 @@ class PipeSafeSanitizerPipe {
|
|
|
3370
3905
|
throw new Error(`Invalid safe type specified: ${type}`);
|
|
3371
3906
|
}
|
|
3372
3907
|
}
|
|
3373
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3374
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3908
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeSafeSanitizerPipe, deps: [{ token: i1$3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3909
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeSafeSanitizerPipe, isStandalone: false, name: "pipeSafeSanitizer" }); }
|
|
3375
3910
|
}
|
|
3376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeSafeSanitizerPipe, decorators: [{
|
|
3377
3912
|
type: Pipe,
|
|
3378
3913
|
args: [{
|
|
3379
3914
|
name: 'pipeSafeSanitizer',
|
|
3915
|
+
standalone: false
|
|
3380
3916
|
}]
|
|
3381
|
-
}], ctorParameters:
|
|
3917
|
+
}], ctorParameters: () => [{ type: i1$3.DomSanitizer }] });
|
|
3382
3918
|
|
|
3383
3919
|
class PipeSafeSanitizerModule {
|
|
3384
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3385
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3386
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3920
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeSafeSanitizerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3921
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeSafeSanitizerModule, declarations: [PipeSafeSanitizerPipe], imports: [CommonModule], exports: [PipeSafeSanitizerPipe] }); }
|
|
3922
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeSafeSanitizerModule, imports: [CommonModule] }); }
|
|
3387
3923
|
}
|
|
3388
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeSafeSanitizerModule, decorators: [{
|
|
3389
3925
|
type: NgModule,
|
|
3390
3926
|
args: [{
|
|
3391
3927
|
declarations: [PipeSafeSanitizerPipe],
|
|
@@ -3401,32 +3937,38 @@ class PipePublicURL {
|
|
|
3401
3937
|
this.environment = environment;
|
|
3402
3938
|
}
|
|
3403
3939
|
transform(value) {
|
|
3940
|
+
// Karmayogi content to be modified with the domain specific url
|
|
3941
|
+
// https://portal.karmayogi.nic.in/content-store/content/do_113918818243969024137/artifact/
|
|
3942
|
+
// do_113918818243969024137_1699074493067_effectivecommunication1699074492860.jpg
|
|
3404
3943
|
if (value && value.includes('/content') && value.includes('do_')) {
|
|
3405
3944
|
const mainUrl = value && value.split('/content').pop() || '';
|
|
3406
3945
|
const finalURL = `${this.environment.contentHost}/${this.environment.contentBucket}/content${mainUrl}`;
|
|
3407
3946
|
return value ? finalURL : '';
|
|
3408
3947
|
}
|
|
3948
|
+
// CIOS content has direct S3 url like blow, so return same url
|
|
3949
|
+
// https://s3.amazonaws.com/ecornell/content/On-Demand/Homepages/Banners/CEPL503-OD3_homepage-banner_v1.jpg
|
|
3409
3950
|
return value;
|
|
3410
3951
|
}
|
|
3411
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3412
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3952
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipePublicURL, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3953
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipePublicURL, isStandalone: false, name: "pipePublicURL" }); }
|
|
3413
3954
|
}
|
|
3414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipePublicURL, decorators: [{
|
|
3415
3956
|
type: Pipe,
|
|
3416
3957
|
args: [{
|
|
3417
3958
|
name: 'pipePublicURL',
|
|
3959
|
+
standalone: false
|
|
3418
3960
|
}]
|
|
3419
|
-
}], ctorParameters:
|
|
3961
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
3420
3962
|
type: Inject,
|
|
3421
3963
|
args: ['environment']
|
|
3422
|
-
}] }]
|
|
3964
|
+
}] }] });
|
|
3423
3965
|
|
|
3424
3966
|
class PipePublicURLModule {
|
|
3425
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3426
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3427
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3967
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipePublicURLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3968
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipePublicURLModule, declarations: [PipePublicURL], imports: [CommonModule], exports: [PipePublicURL] }); }
|
|
3969
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipePublicURLModule, imports: [CommonModule] }); }
|
|
3428
3970
|
}
|
|
3429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipePublicURLModule, decorators: [{
|
|
3430
3972
|
type: NgModule,
|
|
3431
3973
|
args: [{
|
|
3432
3974
|
declarations: [PipePublicURL],
|
|
@@ -3539,25 +4081,26 @@ class PipeCertificateImageURL {
|
|
|
3539
4081
|
return value;
|
|
3540
4082
|
}
|
|
3541
4083
|
}
|
|
3542
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3543
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4084
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCertificateImageURL, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4085
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeCertificateImageURL, isStandalone: false, name: "pipeCertImageURL" }); }
|
|
3544
4086
|
}
|
|
3545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCertificateImageURL, decorators: [{
|
|
3546
4088
|
type: Pipe,
|
|
3547
4089
|
args: [{
|
|
3548
4090
|
name: 'pipeCertImageURL',
|
|
4091
|
+
standalone: false
|
|
3549
4092
|
}]
|
|
3550
|
-
}], ctorParameters:
|
|
4093
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
3551
4094
|
type: Inject,
|
|
3552
4095
|
args: ['environment']
|
|
3553
|
-
}] }]
|
|
4096
|
+
}] }] });
|
|
3554
4097
|
|
|
3555
4098
|
class PipeCertificateImageURLModule {
|
|
3556
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3557
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3558
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4099
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCertificateImageURLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4100
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeCertificateImageURLModule, declarations: [PipeCertificateImageURL], imports: [CommonModule], exports: [PipeCertificateImageURL] }); }
|
|
4101
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCertificateImageURLModule, imports: [CommonModule] }); }
|
|
3559
4102
|
}
|
|
3560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCertificateImageURLModule, decorators: [{
|
|
3561
4104
|
type: NgModule,
|
|
3562
4105
|
args: [{
|
|
3563
4106
|
declarations: [PipeCertificateImageURL],
|
|
@@ -3593,25 +4136,26 @@ class PipeNicRelativePipe {
|
|
|
3593
4136
|
const newUrl = newLink.join('/');
|
|
3594
4137
|
return newUrl;
|
|
3595
4138
|
}
|
|
3596
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3597
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4139
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeNicRelativePipe, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4140
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeNicRelativePipe, isStandalone: false, name: "PipeNicRelative" }); }
|
|
3598
4141
|
}
|
|
3599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeNicRelativePipe, decorators: [{
|
|
3600
4143
|
type: Pipe,
|
|
3601
4144
|
args: [{
|
|
3602
4145
|
name: 'PipeNicRelative',
|
|
4146
|
+
standalone: false
|
|
3603
4147
|
}]
|
|
3604
|
-
}], ctorParameters:
|
|
4148
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
3605
4149
|
type: Inject,
|
|
3606
4150
|
args: ['environment']
|
|
3607
|
-
}] }]
|
|
4151
|
+
}] }] });
|
|
3608
4152
|
|
|
3609
4153
|
class PipeNicRelativeModule {
|
|
3610
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3611
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3612
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4154
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeNicRelativeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4155
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeNicRelativeModule, declarations: [PipeNicRelativePipe], imports: [CommonModule], exports: [PipeNicRelativePipe] }); }
|
|
4156
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeNicRelativeModule, imports: [CommonModule] }); }
|
|
3613
4157
|
}
|
|
3614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeNicRelativeModule, decorators: [{
|
|
3615
4159
|
type: NgModule,
|
|
3616
4160
|
args: [{
|
|
3617
4161
|
declarations: [PipeNicRelativePipe],
|
|
@@ -3627,22 +4171,23 @@ class PipeCourseNamePipe {
|
|
|
3627
4171
|
const fullname = value.split(',');
|
|
3628
4172
|
return fullname[1];
|
|
3629
4173
|
}
|
|
3630
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3631
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4174
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCourseNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4175
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeCourseNamePipe, isStandalone: false, name: "pipeCourseName" }); }
|
|
3632
4176
|
}
|
|
3633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCourseNamePipe, decorators: [{
|
|
3634
4178
|
type: Pipe,
|
|
3635
4179
|
args: [{
|
|
3636
4180
|
name: 'pipeCourseName',
|
|
4181
|
+
standalone: false
|
|
3637
4182
|
}]
|
|
3638
4183
|
}] });
|
|
3639
4184
|
|
|
3640
4185
|
class PipeCourseNameModule {
|
|
3641
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3642
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3643
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4186
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCourseNameModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4187
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeCourseNameModule, declarations: [PipeCourseNamePipe], imports: [CommonModule], exports: [PipeCourseNamePipe] }); }
|
|
4188
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCourseNameModule, imports: [CommonModule] }); }
|
|
3644
4189
|
}
|
|
3645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeCourseNameModule, decorators: [{
|
|
3646
4191
|
type: NgModule,
|
|
3647
4192
|
args: [{
|
|
3648
4193
|
declarations: [PipeCourseNamePipe],
|
|
@@ -3712,15 +4257,15 @@ class ExploreDetailResolve {
|
|
|
3712
4257
|
});
|
|
3713
4258
|
return pageData;
|
|
3714
4259
|
}
|
|
3715
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3716
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4260
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ExploreDetailResolve, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4261
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ExploreDetailResolve, providedIn: 'root' }); }
|
|
3717
4262
|
}
|
|
3718
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ExploreDetailResolve, decorators: [{
|
|
3719
4264
|
type: Injectable,
|
|
3720
4265
|
args: [{
|
|
3721
4266
|
providedIn: 'root',
|
|
3722
4267
|
}]
|
|
3723
|
-
}], ctorParameters:
|
|
4268
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: ConfigurationsService }, { type: UtilityService }] });
|
|
3724
4269
|
|
|
3725
4270
|
class MarketingOfferingResolve {
|
|
3726
4271
|
constructor(http) {
|
|
@@ -3742,15 +4287,15 @@ class MarketingOfferingResolve {
|
|
|
3742
4287
|
});
|
|
3743
4288
|
return pageData;
|
|
3744
4289
|
}
|
|
3745
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3746
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MarketingOfferingResolve, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4291
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MarketingOfferingResolve, providedIn: 'root' }); }
|
|
3747
4292
|
}
|
|
3748
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MarketingOfferingResolve, decorators: [{
|
|
3749
4294
|
type: Injectable,
|
|
3750
4295
|
args: [{
|
|
3751
4296
|
providedIn: 'root',
|
|
3752
4297
|
}]
|
|
3753
|
-
}], ctorParameters:
|
|
4298
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }] });
|
|
3754
4299
|
|
|
3755
4300
|
const JSON_MAP = {
|
|
3756
4301
|
pagename: 'lexid',
|
|
@@ -3786,6 +4331,9 @@ class PageResolve {
|
|
|
3786
4331
|
};
|
|
3787
4332
|
}
|
|
3788
4333
|
setS3Cookie(_contentId) {
|
|
4334
|
+
// return this.http.post(`/apis/protected/v8/content/setCookie`, { contentId }).pipe(
|
|
4335
|
+
// catchError(_err => of(true)),
|
|
4336
|
+
// )
|
|
3789
4337
|
return EMPTY;
|
|
3790
4338
|
}
|
|
3791
4339
|
getContent(id) {
|
|
@@ -3818,18 +4366,18 @@ class PageResolve {
|
|
|
3818
4366
|
return general;
|
|
3819
4367
|
}));
|
|
3820
4368
|
}
|
|
3821
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3822
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4369
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PageResolve, deps: [{ token: ConfigurationsService }, { token: i1$2.HttpClient }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4370
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PageResolve, providedIn: 'root' }); }
|
|
3823
4371
|
}
|
|
3824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PageResolve, decorators: [{
|
|
3825
4373
|
type: Injectable,
|
|
3826
4374
|
args: [{
|
|
3827
4375
|
providedIn: 'root',
|
|
3828
4376
|
}]
|
|
3829
|
-
}], ctorParameters:
|
|
4377
|
+
}], ctorParameters: () => [{ type: ConfigurationsService }, { type: i1$2.HttpClient }, { type: undefined, decorators: [{
|
|
3830
4378
|
type: Inject,
|
|
3831
4379
|
args: [LOCALE_ID]
|
|
3832
|
-
}] }]
|
|
4380
|
+
}] }] });
|
|
3833
4381
|
|
|
3834
4382
|
class PageNameResolve {
|
|
3835
4383
|
constructor() { }
|
|
@@ -3852,15 +4400,15 @@ class PageNameResolve {
|
|
|
3852
4400
|
}
|
|
3853
4401
|
return 'common module';
|
|
3854
4402
|
}
|
|
3855
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3856
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4403
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PageNameResolve, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4404
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PageNameResolve, providedIn: 'root' }); }
|
|
3857
4405
|
}
|
|
3858
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PageNameResolve, decorators: [{
|
|
3859
4407
|
type: Injectable,
|
|
3860
4408
|
args: [{
|
|
3861
4409
|
providedIn: 'root',
|
|
3862
4410
|
}]
|
|
3863
|
-
}], ctorParameters:
|
|
4411
|
+
}], ctorParameters: () => [] });
|
|
3864
4412
|
|
|
3865
4413
|
class ModuleNameResolve {
|
|
3866
4414
|
constructor() {
|
|
@@ -3886,15 +4434,15 @@ class ModuleNameResolve {
|
|
|
3886
4434
|
}
|
|
3887
4435
|
return 'common module';
|
|
3888
4436
|
}
|
|
3889
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3890
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4437
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ModuleNameResolve, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4438
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ModuleNameResolve, providedIn: 'root' }); }
|
|
3891
4439
|
}
|
|
3892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ModuleNameResolve, decorators: [{
|
|
3893
4441
|
type: Injectable,
|
|
3894
4442
|
args: [{
|
|
3895
4443
|
providedIn: 'root',
|
|
3896
4444
|
}]
|
|
3897
|
-
}], ctorParameters:
|
|
4445
|
+
}], ctorParameters: () => [] });
|
|
3898
4446
|
|
|
3899
4447
|
var NsContent;
|
|
3900
4448
|
(function (NsContent) {
|
|
@@ -3915,11 +4463,27 @@ var NsContent;
|
|
|
3915
4463
|
EPrimaryCategory["MANDATORY_COURSE_GOAL"] = "Mandatory Course Goal";
|
|
3916
4464
|
EPrimaryCategory["BLENDED_PROGRAM"] = "Blended Program";
|
|
3917
4465
|
EPrimaryCategory["OFFLINE_SESSION"] = "Offline Session";
|
|
4466
|
+
// following will not be available soon
|
|
4467
|
+
/**
|
|
4468
|
+
* @deprecated The type should not be used
|
|
4469
|
+
*/
|
|
3918
4470
|
EPrimaryCategory["KNOWLEDGE_ARTIFACT"] = "Knowledge Artifact";
|
|
4471
|
+
/**
|
|
4472
|
+
* @deprecated The type should not be used
|
|
4473
|
+
*/
|
|
3919
4474
|
EPrimaryCategory["KNOWLEDGE_BOARD"] = "Knowledge Board";
|
|
4475
|
+
/**
|
|
4476
|
+
* @deprecated The type should not be used
|
|
4477
|
+
*/
|
|
3920
4478
|
EPrimaryCategory["LEARNING_JOURNEY"] = "Learning Journeys";
|
|
4479
|
+
/**
|
|
4480
|
+
* @deprecated The type should not be used
|
|
4481
|
+
*/
|
|
3921
4482
|
EPrimaryCategory["CHANNEL"] = "Channel";
|
|
3922
4483
|
})(EPrimaryCategory = NsContent.EPrimaryCategory || (NsContent.EPrimaryCategory = {}));
|
|
4484
|
+
/**
|
|
4485
|
+
* @deprecated Enum EContentTypes should not be used in future
|
|
4486
|
+
*/
|
|
3923
4487
|
let EContentTypes;
|
|
3924
4488
|
(function (EContentTypes) {
|
|
3925
4489
|
EContentTypes["PROGRAM"] = "Learning Path";
|
|
@@ -3976,6 +4540,7 @@ var NsContent;
|
|
|
3976
4540
|
EMimeTypes["CLASS_DIAGRAM"] = "application/class-diagram";
|
|
3977
4541
|
EMimeTypes["CHANNEL"] = "application/channel";
|
|
3978
4542
|
EMimeTypes["COLLECTION_RESOURCE"] = "resource/collection";
|
|
4543
|
+
// Added on UI Only
|
|
3979
4544
|
EMimeTypes["CERTIFICATION"] = "application/certification";
|
|
3980
4545
|
EMimeTypes["PLAYLIST"] = "application/playlist";
|
|
3981
4546
|
EMimeTypes["QUESTION_SET"] = "application/vnd.sunbird.questionset";
|
|
@@ -4015,6 +4580,7 @@ var NsContent;
|
|
|
4015
4580
|
EDisplayContentTypes["KNOWLEDGE_BOARD"] = "Knowledge Board";
|
|
4016
4581
|
EDisplayContentTypes["LEARNING_JOURNEY"] = "Learning Journeys";
|
|
4017
4582
|
})(EDisplayContentTypes = NsContent.EDisplayContentTypes || (NsContent.EDisplayContentTypes = {}));
|
|
4583
|
+
// for UI
|
|
4018
4584
|
let EFilterCategory;
|
|
4019
4585
|
(function (EFilterCategory) {
|
|
4020
4586
|
EFilterCategory["ALL"] = "ALL";
|
|
@@ -4022,6 +4588,7 @@ var NsContent;
|
|
|
4022
4588
|
EFilterCategory["PRACTICE"] = "PRACTICE";
|
|
4023
4589
|
EFilterCategory["ASSESS"] = "ASSESS";
|
|
4024
4590
|
})(EFilterCategory = NsContent.EFilterCategory || (NsContent.EFilterCategory = {}));
|
|
4591
|
+
// for UI
|
|
4025
4592
|
let ETagType;
|
|
4026
4593
|
(function (ETagType) {
|
|
4027
4594
|
ETagType["NEWLY_ADDED"] = "NEWLY ADDED";
|
|
@@ -4037,9 +4604,11 @@ var NsContent;
|
|
|
4037
4604
|
ECourseCategory["STANDALONE_ASSESSMENT"] = "Standalone Assessment";
|
|
4038
4605
|
ECourseCategory["MODERATED_ASSESSEMENT"] = "Moderated Assessment";
|
|
4039
4606
|
ECourseCategory["CASE_STUDY"] = "Case Study";
|
|
4607
|
+
ECourseCategory["COMPREHENSIVE_ASSESSMENT_PROGRAM"] = "Comprehensive Assessment Program";
|
|
4040
4608
|
})(ECourseCategory = NsContent.ECourseCategory || (NsContent.ECourseCategory = {}));
|
|
4041
4609
|
})(NsContent || (NsContent = {}));
|
|
4042
4610
|
|
|
4611
|
+
// TODO: move this in some common place
|
|
4043
4612
|
const PROTECTED_SLAG_V8 = '/apis/protected/v8';
|
|
4044
4613
|
const API_END_POINTS$2 = {
|
|
4045
4614
|
CONTENT: `${PROTECTED_SLAG_V8}/content`,
|
|
@@ -4064,13 +4633,18 @@ const API_END_POINTS$2 = {
|
|
|
4064
4633
|
CERT_DOWNLOAD: (certId) => `${PROTECTED_SLAG_V8}/cohorts/course/batch/cert/download/${certId}`,
|
|
4065
4634
|
CERT_DOWNLOADV2: `/apis/proxies/v8/certificate/dynamic/v1/generate`,
|
|
4066
4635
|
};
|
|
4636
|
+
/**
|
|
4637
|
+
* @deprecated this will be depricated
|
|
4638
|
+
*/
|
|
4067
4639
|
class WidgetContentService {
|
|
4068
4640
|
constructor(http, configSvc) {
|
|
4069
4641
|
this.http = http;
|
|
4070
4642
|
this.configSvc = configSvc;
|
|
4071
4643
|
}
|
|
4072
4644
|
fetchMarkAsCompleteMeta(identifier) {
|
|
4645
|
+
// tslint:disable-next-line
|
|
4073
4646
|
const url = API_END_POINTS$2.MARK_AS_COMPLETE_META(identifier);
|
|
4647
|
+
// return this.http.get(url).toPromise()
|
|
4074
4648
|
if (url) { }
|
|
4075
4649
|
return of().toPromise();
|
|
4076
4650
|
}
|
|
@@ -4097,6 +4671,9 @@ class WidgetContentService {
|
|
|
4097
4671
|
}
|
|
4098
4672
|
fetchContentRatings(contentIds) {
|
|
4099
4673
|
if (contentIds) { }
|
|
4674
|
+
// return this.http
|
|
4675
|
+
// .post(`${API_END_POINTS.CONTENT_RATING}/rating`, contentIds)
|
|
4676
|
+
// .toPromise()
|
|
4100
4677
|
return of().toPromise();
|
|
4101
4678
|
}
|
|
4102
4679
|
fetchContentHistory(contentId) {
|
|
@@ -4134,11 +4711,16 @@ class WidgetContentService {
|
|
|
4134
4711
|
});
|
|
4135
4712
|
}
|
|
4136
4713
|
saveContinueLearning(content) {
|
|
4714
|
+
// const url = API_END_POINTS.USER_CONTINUE_LEARNING
|
|
4715
|
+
// return this.http.post<any>(url, content)
|
|
4137
4716
|
if (content) {
|
|
4138
4717
|
}
|
|
4139
4718
|
return of();
|
|
4140
4719
|
}
|
|
4141
4720
|
setS3Cookie(_contentId) {
|
|
4721
|
+
// return this.http
|
|
4722
|
+
// .post(API_END_POINTS.SET_S3_COOKIE, { contentId })
|
|
4723
|
+
// .pipe(catchError(_err => of(true)))
|
|
4142
4724
|
return EMPTY;
|
|
4143
4725
|
}
|
|
4144
4726
|
setS3ImageCookie() {
|
|
@@ -4180,6 +4762,10 @@ class WidgetContentService {
|
|
|
4180
4762
|
addContentRating(contentId, data) {
|
|
4181
4763
|
return this.http.post(`${API_END_POINTS$2.CONTENT_RATING}/${contentId}`, data);
|
|
4182
4764
|
}
|
|
4765
|
+
/**
|
|
4766
|
+
*
|
|
4767
|
+
* @deprecated this will be depricated.
|
|
4768
|
+
*/
|
|
4183
4769
|
getFirstChildInHierarchy(content) {
|
|
4184
4770
|
if (!(content.children || []).length) {
|
|
4185
4771
|
return content;
|
|
@@ -4221,16 +4807,17 @@ class WidgetContentService {
|
|
|
4221
4807
|
downloadCertV2(payload) {
|
|
4222
4808
|
return this.http.post(`${API_END_POINTS$2.CERT_DOWNLOADV2}`, payload);
|
|
4223
4809
|
}
|
|
4224
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4225
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4810
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetContentService, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4811
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetContentService, providedIn: 'root' }); }
|
|
4226
4812
|
}
|
|
4227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetContentService, decorators: [{
|
|
4228
4814
|
type: Injectable,
|
|
4229
4815
|
args: [{
|
|
4230
4816
|
providedIn: 'root',
|
|
4231
4817
|
}]
|
|
4232
|
-
}], ctorParameters:
|
|
4818
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: ConfigurationsService }] });
|
|
4233
4819
|
|
|
4820
|
+
// tslint:enable
|
|
4234
4821
|
const API_END_POINTS$1 = {
|
|
4235
4822
|
readFeed: (id) => `/apis/proxies/v8/user/v1/feed/${id}`,
|
|
4236
4823
|
getFormID: (id) => `/apis/proxies/v8/forms/getFormById?id=${id}`,
|
|
@@ -4258,15 +4845,17 @@ class NPSGridService {
|
|
|
4258
4845
|
deleteFeed(req) {
|
|
4259
4846
|
return this.http.post(API_END_POINTS$1.deleteFeed, req);
|
|
4260
4847
|
}
|
|
4261
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4262
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4848
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NPSGridService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4849
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NPSGridService }); }
|
|
4263
4850
|
}
|
|
4264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NPSGridService, decorators: [{
|
|
4265
4852
|
type: Injectable
|
|
4266
|
-
}], ctorParameters:
|
|
4853
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }] });
|
|
4267
4854
|
|
|
4268
4855
|
class TelemetryService {
|
|
4269
|
-
constructor(configSvc, eventsSvc, environment,
|
|
4856
|
+
constructor(configSvc, eventsSvc, environment,
|
|
4857
|
+
// private authSvc: AuthKeycloakService,
|
|
4858
|
+
logger, router, npsSvc) {
|
|
4270
4859
|
this.configSvc = configSvc;
|
|
4271
4860
|
this.eventsSvc = eventsSvc;
|
|
4272
4861
|
this.logger = logger;
|
|
@@ -4329,10 +4918,13 @@ class TelemetryService {
|
|
|
4329
4918
|
...this.telemetryConfig,
|
|
4330
4919
|
pdata: {
|
|
4331
4920
|
...this.telemetryConfig.pdata,
|
|
4921
|
+
// pid: navigator.userAgent,
|
|
4332
4922
|
id: `${this.environment.name}.${this.telemetryConfig.pdata.id}`,
|
|
4333
4923
|
},
|
|
4334
4924
|
uid: (this.configSvc.userProfile && this.configSvc.userProfile.userId) ?
|
|
4335
4925
|
this.configSvc.userProfile.userId : '',
|
|
4926
|
+
// authtoken: this.authSvc.token,
|
|
4927
|
+
// tslint:disable-next-line: no-non-null-assertion
|
|
4336
4928
|
channel: this.rootOrgId || this.telemetryConfig.channel,
|
|
4337
4929
|
sid: this.getTelemetrySessionId,
|
|
4338
4930
|
};
|
|
@@ -4363,6 +4955,7 @@ class TelemetryService {
|
|
|
4363
4955
|
$t.start(this.telemetryConfig, (pageContext && pageContext.pageId) ?
|
|
4364
4956
|
pageContext.pageId
|
|
4365
4957
|
: '', '1.0', {
|
|
4958
|
+
// id,
|
|
4366
4959
|
type: edata.type,
|
|
4367
4960
|
mode: edata.mode,
|
|
4368
4961
|
pageid: (pageContext && pageContext.pageId) ?
|
|
@@ -4389,6 +4982,7 @@ class TelemetryService {
|
|
|
4389
4982
|
}
|
|
4390
4983
|
}
|
|
4391
4984
|
catch (e) {
|
|
4985
|
+
// tslint:disable-next-line: no-console
|
|
4392
4986
|
console.log('Error in telemetry start', e);
|
|
4393
4987
|
}
|
|
4394
4988
|
}
|
|
@@ -4414,6 +5008,7 @@ class TelemetryService {
|
|
|
4414
5008
|
});
|
|
4415
5009
|
}
|
|
4416
5010
|
catch (e) {
|
|
5011
|
+
// tslint:disable-next-line: no-console
|
|
4417
5012
|
console.log('Error in telemetry end', e);
|
|
4418
5013
|
}
|
|
4419
5014
|
}
|
|
@@ -4422,9 +5017,10 @@ class TelemetryService {
|
|
|
4422
5017
|
$t.audit({
|
|
4423
5018
|
type,
|
|
4424
5019
|
props,
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
5020
|
+
// data,
|
|
5021
|
+
state: data, // Optional. Current State
|
|
5022
|
+
prevstate: '', // Optional. Previous State
|
|
5023
|
+
duration: '', // Optional.
|
|
4428
5024
|
}, {
|
|
4429
5025
|
context: {
|
|
4430
5026
|
pdata: {
|
|
@@ -4435,6 +5031,7 @@ class TelemetryService {
|
|
|
4435
5031
|
});
|
|
4436
5032
|
}
|
|
4437
5033
|
catch (e) {
|
|
5034
|
+
// tslint:disable-next-line: no-console
|
|
4438
5035
|
console.log('Error in telemetry audit', e);
|
|
4439
5036
|
}
|
|
4440
5037
|
}
|
|
@@ -4442,10 +5039,12 @@ class TelemetryService {
|
|
|
4442
5039
|
try {
|
|
4443
5040
|
$t.heartbeat({
|
|
4444
5041
|
id,
|
|
5042
|
+
// mode,
|
|
4445
5043
|
type,
|
|
4446
5044
|
});
|
|
4447
5045
|
}
|
|
4448
5046
|
catch (e) {
|
|
5047
|
+
// tslint:disable-next-line: no-console
|
|
4449
5048
|
console.log('Error in telemetry heartbeat', e);
|
|
4450
5049
|
}
|
|
4451
5050
|
}
|
|
@@ -4458,8 +5057,8 @@ class TelemetryService {
|
|
|
4458
5057
|
page.module = data.pageContext.module;
|
|
4459
5058
|
}
|
|
4460
5059
|
const edata = {
|
|
4461
|
-
pageid: page.pageid,
|
|
4462
|
-
type: page.pageUrlParts[0],
|
|
5060
|
+
pageid: page.pageid, // Required. Unique page id
|
|
5061
|
+
type: page.pageUrlParts[0], // Required. Impression type (list, detail, view, edit, workflow, search)
|
|
4463
5062
|
uri: page.pageUrl,
|
|
4464
5063
|
};
|
|
4465
5064
|
if (page.objectId) {
|
|
@@ -4474,6 +5073,7 @@ class TelemetryService {
|
|
|
4474
5073
|
object: {
|
|
4475
5074
|
id: page.objectId,
|
|
4476
5075
|
type: objectType,
|
|
5076
|
+
// This will override above id if the data has object in it.
|
|
4477
5077
|
...(data && data.object),
|
|
4478
5078
|
},
|
|
4479
5079
|
};
|
|
@@ -4499,10 +5099,12 @@ class TelemetryService {
|
|
|
4499
5099
|
this.previousUrl = page.pageUrl;
|
|
4500
5100
|
}
|
|
4501
5101
|
catch (e) {
|
|
5102
|
+
// tslint:disable-next-line: no-console
|
|
4502
5103
|
console.log('Error in telemetry impression', e);
|
|
4503
5104
|
}
|
|
4504
5105
|
}
|
|
4505
5106
|
externalImpression(impressionData) {
|
|
5107
|
+
// this.triggerNPSUpdate(impressionData)
|
|
4506
5108
|
try {
|
|
4507
5109
|
const page = this.getPageDetails();
|
|
4508
5110
|
if (this.externalApps[impressionData.subApplicationName]) {
|
|
@@ -4528,9 +5130,11 @@ class TelemetryService {
|
|
|
4528
5130
|
}
|
|
4529
5131
|
}
|
|
4530
5132
|
catch (e) {
|
|
5133
|
+
// tslint:disable-next-line: no-console
|
|
4531
5134
|
console.log('Error in telemetry externalImpression', e);
|
|
4532
5135
|
}
|
|
4533
5136
|
}
|
|
5137
|
+
// for Plartform rating
|
|
4534
5138
|
addCustomListenerForPlatformRating() {
|
|
4535
5139
|
this.eventsSvc.getPREvents$
|
|
4536
5140
|
.pipe(filter(event => event &&
|
|
@@ -4668,9 +5272,11 @@ class TelemetryService {
|
|
|
4668
5272
|
event.data.eventSubType === WsEvents.EnumTelemetrySubType.Impression))
|
|
4669
5273
|
.subscribe(event => {
|
|
4670
5274
|
try {
|
|
5275
|
+
// console.log('event.data::', event.data)
|
|
4671
5276
|
this.impression(event.data);
|
|
4672
5277
|
}
|
|
4673
5278
|
catch (e) {
|
|
5279
|
+
// tslint:disable-next-line: no-console
|
|
4674
5280
|
console.log('Error in telemetry impression', e);
|
|
4675
5281
|
}
|
|
4676
5282
|
});
|
|
@@ -4772,14 +5378,20 @@ class TelemetryService {
|
|
|
4772
5378
|
$t.interact(event.data, externalConfig);
|
|
4773
5379
|
}
|
|
4774
5380
|
catch (e) {
|
|
5381
|
+
// tslint:disable-next-line: no-console
|
|
4775
5382
|
console.log('Error in telemetry interact', e);
|
|
4776
5383
|
}
|
|
4777
5384
|
}
|
|
4778
5385
|
else {
|
|
5386
|
+
// let interactid
|
|
5387
|
+
// if (event.data.edata.type === 'goal') {
|
|
5388
|
+
// interactid = page.pageUrlParts[4]
|
|
5389
|
+
// }
|
|
4779
5390
|
try {
|
|
4780
5391
|
$t.interact({
|
|
4781
5392
|
type: event.data.edata.type,
|
|
4782
5393
|
subtype: event.data.edata.subType,
|
|
5394
|
+
// object: event.data.object,
|
|
4783
5395
|
id: (event.data.edata && event.data.edata.id) ?
|
|
4784
5396
|
event.data.edata.id
|
|
4785
5397
|
: '',
|
|
@@ -4799,6 +5411,7 @@ class TelemetryService {
|
|
|
4799
5411
|
});
|
|
4800
5412
|
}
|
|
4801
5413
|
catch (e) {
|
|
5414
|
+
// tslint:disable-next-line: no-console
|
|
4802
5415
|
console.log('Error in telemetry interact', e);
|
|
4803
5416
|
}
|
|
4804
5417
|
}
|
|
@@ -4834,6 +5447,7 @@ class TelemetryService {
|
|
|
4834
5447
|
});
|
|
4835
5448
|
}
|
|
4836
5449
|
catch (e) {
|
|
5450
|
+
// tslint:disable-next-line: no-console
|
|
4837
5451
|
console.log('Error in telemetry interact', e);
|
|
4838
5452
|
}
|
|
4839
5453
|
});
|
|
@@ -4858,6 +5472,7 @@ class TelemetryService {
|
|
|
4858
5472
|
$t.heartbeat(event.data, externalConfig);
|
|
4859
5473
|
}
|
|
4860
5474
|
catch (e) {
|
|
5475
|
+
// tslint:disable-next-line: no-console
|
|
4861
5476
|
console.log('Error in telemetry heartbeat', e);
|
|
4862
5477
|
}
|
|
4863
5478
|
}
|
|
@@ -4865,7 +5480,10 @@ class TelemetryService {
|
|
|
4865
5480
|
try {
|
|
4866
5481
|
$t.heartbeat({
|
|
4867
5482
|
type: event.data.type,
|
|
5483
|
+
// subtype: event.data.eventSubType,
|
|
4868
5484
|
id: event.data.id,
|
|
5485
|
+
// mimeType: event.data.mimeType,
|
|
5486
|
+
// mode: event.data.mode,
|
|
4869
5487
|
}, {
|
|
4870
5488
|
context: {
|
|
4871
5489
|
pdata: {
|
|
@@ -4876,6 +5494,7 @@ class TelemetryService {
|
|
|
4876
5494
|
});
|
|
4877
5495
|
}
|
|
4878
5496
|
catch (e) {
|
|
5497
|
+
// tslint:disable-next-line: no-console
|
|
4879
5498
|
console.log('Error in telemetry heartbeat', e);
|
|
4880
5499
|
}
|
|
4881
5500
|
}
|
|
@@ -4903,6 +5522,7 @@ class TelemetryService {
|
|
|
4903
5522
|
});
|
|
4904
5523
|
}
|
|
4905
5524
|
catch (e) {
|
|
5525
|
+
// tslint:disable-next-line: no-console
|
|
4906
5526
|
console.log('Error in telemetry search', e);
|
|
4907
5527
|
}
|
|
4908
5528
|
});
|
|
@@ -4924,34 +5544,37 @@ class TelemetryService {
|
|
|
4924
5544
|
};
|
|
4925
5545
|
}
|
|
4926
5546
|
extractContentIdFromUrlParts(urlParts) {
|
|
5547
|
+
// TODO: pick toc and viewer url from some configuration
|
|
4927
5548
|
const tocIdx = urlParts.indexOf('toc');
|
|
4928
5549
|
const viewerIdx = urlParts.indexOf('viewer');
|
|
4929
5550
|
if (tocIdx === -1 && viewerIdx === -1) {
|
|
4930
5551
|
return null;
|
|
4931
5552
|
}
|
|
4932
5553
|
if (tocIdx !== -1 && tocIdx < urlParts.length - 1) {
|
|
4933
|
-
return urlParts[tocIdx + 1];
|
|
5554
|
+
return urlParts[tocIdx + 1]; // e.g. url /app/toc/<content_id>
|
|
4934
5555
|
}
|
|
4935
5556
|
if (viewerIdx !== -1 && viewerIdx < urlParts.length - 2) {
|
|
4936
|
-
return urlParts[viewerIdx + 2];
|
|
5557
|
+
return urlParts[viewerIdx + 2]; // e.g. url /app/viewer/<content_type>/<content_id>
|
|
4937
5558
|
}
|
|
4938
5559
|
return null;
|
|
4939
5560
|
}
|
|
4940
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4941
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5561
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TelemetryService, deps: [{ token: ConfigurationsService }, { token: EventService }, { token: 'environment' }, { token: LoggerService }, { token: i3$1.Router }, { token: NPSGridService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5562
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TelemetryService, providedIn: 'root' }); }
|
|
4942
5563
|
}
|
|
4943
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TelemetryService, decorators: [{
|
|
4944
5565
|
type: Injectable,
|
|
4945
5566
|
args: [{
|
|
4946
5567
|
providedIn: 'root',
|
|
4947
5568
|
}]
|
|
4948
|
-
}], ctorParameters:
|
|
5569
|
+
}], ctorParameters: () => [{ type: ConfigurationsService }, { type: EventService }, { type: undefined, decorators: [{
|
|
4949
5570
|
type: Inject,
|
|
4950
5571
|
args: ['environment']
|
|
4951
|
-
}] }, { type: LoggerService }, { type: i3$1.Router }, { type: NPSGridService }]
|
|
5572
|
+
}] }, { type: LoggerService }, { type: i3$1.Router }, { type: NPSGridService }] });
|
|
4952
5573
|
|
|
4953
5574
|
class SubapplicationRespondService {
|
|
4954
|
-
constructor(configSvc, contentSvc,
|
|
5575
|
+
constructor(configSvc, contentSvc,
|
|
5576
|
+
// private keyCloakSvc: AuthKeycloakService,
|
|
5577
|
+
activatedRoute, router, eventSvc, teleSvc) {
|
|
4955
5578
|
this.configSvc = configSvc;
|
|
4956
5579
|
this.contentSvc = contentSvc;
|
|
4957
5580
|
this.activatedRoute = activatedRoute;
|
|
@@ -4978,6 +5601,7 @@ class SubapplicationRespondService {
|
|
|
4978
5601
|
this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
|
|
4979
5602
|
const viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
|
|
4980
5603
|
this.activatedRoute.snapshot.queryParams.viewMode : '';
|
|
5604
|
+
// const token = this.keyCloakSvc.token
|
|
4981
5605
|
const response = {
|
|
4982
5606
|
subApplicationName: applicationName,
|
|
4983
5607
|
requestId: 'LOADED',
|
|
@@ -4996,6 +5620,7 @@ class SubapplicationRespondService {
|
|
|
4996
5620
|
user: {
|
|
4997
5621
|
firstName,
|
|
4998
5622
|
lastName,
|
|
5623
|
+
// token,
|
|
4999
5624
|
userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
|
|
5000
5625
|
roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
|
|
5001
5626
|
},
|
|
@@ -5020,6 +5645,7 @@ class SubapplicationRespondService {
|
|
|
5020
5645
|
this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
|
|
5021
5646
|
const viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
|
|
5022
5647
|
this.activatedRoute.snapshot.queryParams.viewMode : '';
|
|
5648
|
+
// const token = this.keyCloakSvc.token
|
|
5023
5649
|
const response = {
|
|
5024
5650
|
subApplicationName: applicationName,
|
|
5025
5651
|
requestId: 'LOADED',
|
|
@@ -5038,6 +5664,7 @@ class SubapplicationRespondService {
|
|
|
5038
5664
|
user: {
|
|
5039
5665
|
firstName,
|
|
5040
5666
|
lastName,
|
|
5667
|
+
// token,
|
|
5041
5668
|
userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
|
|
5042
5669
|
roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
|
|
5043
5670
|
},
|
|
@@ -5111,6 +5738,7 @@ class SubapplicationRespondService {
|
|
|
5111
5738
|
this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
|
|
5112
5739
|
const viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
|
|
5113
5740
|
this.activatedRoute.snapshot.queryParams.viewMode : '';
|
|
5741
|
+
// const token = this.keyCloakSvc.token
|
|
5114
5742
|
const response = {
|
|
5115
5743
|
subApplicationName: this.subAppname,
|
|
5116
5744
|
requestId: 'CONTEXT_CHANGE',
|
|
@@ -5129,6 +5757,7 @@ class SubapplicationRespondService {
|
|
|
5129
5757
|
user: {
|
|
5130
5758
|
firstName,
|
|
5131
5759
|
lastName,
|
|
5760
|
+
// token,
|
|
5132
5761
|
userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
|
|
5133
5762
|
roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
|
|
5134
5763
|
},
|
|
@@ -5138,20 +5767,21 @@ class SubapplicationRespondService {
|
|
|
5138
5767
|
this.contentWindowinfo.postMessage(response, '*');
|
|
5139
5768
|
}
|
|
5140
5769
|
}
|
|
5141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5142
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5770
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SubapplicationRespondService, deps: [{ token: ConfigurationsService }, { token: WidgetContentService }, { token: i3$1.ActivatedRoute }, { token: i3$1.Router }, { token: EventService }, { token: TelemetryService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5771
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SubapplicationRespondService, providedIn: 'root' }); }
|
|
5143
5772
|
}
|
|
5144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SubapplicationRespondService, decorators: [{
|
|
5145
5774
|
type: Injectable,
|
|
5146
5775
|
args: [{
|
|
5147
5776
|
providedIn: 'root',
|
|
5148
5777
|
}]
|
|
5149
|
-
}], ctorParameters:
|
|
5778
|
+
}], ctorParameters: () => [{ type: ConfigurationsService }, { type: WidgetContentService }, { type: i3$1.ActivatedRoute }, { type: i3$1.Router }, { type: EventService }, { type: TelemetryService }] });
|
|
5150
5779
|
|
|
5151
5780
|
const endpoints = {
|
|
5152
5781
|
userPref: '/apis/protected/v8/user/preference',
|
|
5153
5782
|
};
|
|
5154
5783
|
class UserPreferenceService {
|
|
5784
|
+
// do changes in the backend and update the store
|
|
5155
5785
|
constructor(http, configurationSvc) {
|
|
5156
5786
|
this.http = http;
|
|
5157
5787
|
this.configurationSvc = configurationSvc;
|
|
@@ -5224,15 +5854,15 @@ class UserPreferenceService {
|
|
|
5224
5854
|
return false;
|
|
5225
5855
|
}
|
|
5226
5856
|
}
|
|
5227
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5228
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5857
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UserPreferenceService, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5858
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UserPreferenceService, providedIn: 'root' }); }
|
|
5229
5859
|
}
|
|
5230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UserPreferenceService, decorators: [{
|
|
5231
5861
|
type: Injectable,
|
|
5232
5862
|
args: [{
|
|
5233
5863
|
providedIn: 'root',
|
|
5234
5864
|
}]
|
|
5235
|
-
}], ctorParameters:
|
|
5865
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: ConfigurationsService }] });
|
|
5236
5866
|
|
|
5237
5867
|
class MultilingualTranslationsService {
|
|
5238
5868
|
constructor(translate, http, configSvc) {
|
|
@@ -5240,9 +5870,11 @@ class MultilingualTranslationsService {
|
|
|
5240
5870
|
this.http = http;
|
|
5241
5871
|
this.configSvc = configSvc;
|
|
5242
5872
|
this.selectedLang = '';
|
|
5873
|
+
// website lang change
|
|
5243
5874
|
this.languageSelected = new BehaviorSubject(true);
|
|
5244
5875
|
this.languageSelectedObservable = this.languageSelected.asObservable();
|
|
5245
5876
|
this.editProfileDetails = '/apis/proxies/v8/user/v1/extPatch';
|
|
5877
|
+
// this.getLanguage()
|
|
5246
5878
|
}
|
|
5247
5879
|
getLanguage() {
|
|
5248
5880
|
if (this.configSvc.unMappedUser) {
|
|
@@ -5255,6 +5887,7 @@ class MultilingualTranslationsService {
|
|
|
5255
5887
|
}
|
|
5256
5888
|
else {
|
|
5257
5889
|
if (localStorage.getItem('websiteLanguage')) {
|
|
5890
|
+
// this.translate.setDefaultLang('en')
|
|
5258
5891
|
let lang = JSON.stringify(localStorage.getItem('websiteLanguage'));
|
|
5259
5892
|
lang = lang.replace(/\"/g, '');
|
|
5260
5893
|
this.translate.use(lang);
|
|
@@ -5267,6 +5900,7 @@ class MultilingualTranslationsService {
|
|
|
5267
5900
|
}
|
|
5268
5901
|
else {
|
|
5269
5902
|
if (localStorage.getItem('websiteLanguage')) {
|
|
5903
|
+
// this.translate.setDefaultLang('en')
|
|
5270
5904
|
let lang = JSON.stringify(localStorage.getItem('websiteLanguage'));
|
|
5271
5905
|
lang = lang.replace(/\"/g, '');
|
|
5272
5906
|
this.translate.use(lang);
|
|
@@ -5277,9 +5911,11 @@ class MultilingualTranslationsService {
|
|
|
5277
5911
|
let nlabel = label;
|
|
5278
5912
|
nlabel = nlabel && nlabel.replace(/\s/g, '');
|
|
5279
5913
|
if (subtype) {
|
|
5914
|
+
// tslint:disable-next-line: prefer-template
|
|
5280
5915
|
const translationKey = type + '.' + nlabel + subtype;
|
|
5281
5916
|
return this.translate.instant(translationKey);
|
|
5282
5917
|
}
|
|
5918
|
+
// tslint:disable-next-line: prefer-template
|
|
5283
5919
|
const translationKeyn = type + '.' + nlabel;
|
|
5284
5920
|
return this.translate.instant(translationKeyn);
|
|
5285
5921
|
}
|
|
@@ -5295,9 +5931,11 @@ class MultilingualTranslationsService {
|
|
|
5295
5931
|
nlabel = sl.join('');
|
|
5296
5932
|
nlabel = nlabel.replace(/\s/g, '');
|
|
5297
5933
|
if (subtype) {
|
|
5934
|
+
// tslint:disable-next-line: prefer-template
|
|
5298
5935
|
const translationKey = type + '.' + nlabel + subtype;
|
|
5299
5936
|
return this.translate.instant(translationKey);
|
|
5300
5937
|
}
|
|
5938
|
+
// tslint:disable-next-line: prefer-template
|
|
5301
5939
|
const translationKeyn = type + '.' + nlabel;
|
|
5302
5940
|
return this.translate.instant(translationKeyn);
|
|
5303
5941
|
}
|
|
@@ -5312,9 +5950,11 @@ class MultilingualTranslationsService {
|
|
|
5312
5950
|
nlabel = sl.join('');
|
|
5313
5951
|
nlabel = nlabel.replace(/\s/g, '');
|
|
5314
5952
|
if (subtype) {
|
|
5953
|
+
// tslint:disable-next-line: prefer-template
|
|
5315
5954
|
const translationKey = type + '.' + nlabel + subtype;
|
|
5316
5955
|
return this.translate.instant(translationKey);
|
|
5317
5956
|
}
|
|
5957
|
+
// tslint:disable-next-line: prefer-template
|
|
5318
5958
|
const translationKeyn = type + '.' + nlabel;
|
|
5319
5959
|
return this.translate.instant(translationKeyn);
|
|
5320
5960
|
}
|
|
@@ -5339,21 +5979,20 @@ class MultilingualTranslationsService {
|
|
|
5339
5979
|
this.editProfileDetailsAPI(reqUpdates).subscribe();
|
|
5340
5980
|
}
|
|
5341
5981
|
}
|
|
5342
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5343
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5982
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MultilingualTranslationsService, deps: [{ token: i5.TranslateService }, { token: i1$2.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5983
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MultilingualTranslationsService, providedIn: 'root' }); }
|
|
5344
5984
|
}
|
|
5345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MultilingualTranslationsService, decorators: [{
|
|
5346
5986
|
type: Injectable,
|
|
5347
5987
|
args: [{
|
|
5348
5988
|
providedIn: 'root',
|
|
5349
5989
|
}]
|
|
5350
|
-
}], ctorParameters:
|
|
5990
|
+
}], ctorParameters: () => [{ type: i5.TranslateService }, { type: i1$2.HttpClient }, { type: ConfigurationsService }] });
|
|
5351
5991
|
|
|
5352
5992
|
const PROXIES_V8 = '/apis/proxies/v8';
|
|
5353
5993
|
const API_END_POINTS = {
|
|
5354
5994
|
ENROLL_CONTENT_DATA: `${PROXIES_V8}/learner/course/v4/user/enrollment/details`
|
|
5355
5995
|
};
|
|
5356
|
-
console.log('fghjk');
|
|
5357
5996
|
class WidgetEnrollService {
|
|
5358
5997
|
constructor(http, configSvc) {
|
|
5359
5998
|
this.http = http;
|
|
@@ -5389,15 +6028,15 @@ class WidgetEnrollService {
|
|
|
5389
6028
|
fetchEnrollStats(userId) {
|
|
5390
6029
|
return this.http.get(`apis/proxies/v8/learner/course/v4/user/enrollment/summary/${userId}`);
|
|
5391
6030
|
}
|
|
5392
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5393
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6031
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetEnrollService, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6032
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetEnrollService, providedIn: 'root' }); }
|
|
5394
6033
|
}
|
|
5395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6034
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetEnrollService, decorators: [{
|
|
5396
6035
|
type: Injectable,
|
|
5397
6036
|
args: [{
|
|
5398
6037
|
providedIn: 'root'
|
|
5399
6038
|
}]
|
|
5400
|
-
}], ctorParameters:
|
|
6039
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: ConfigurationsService }] });
|
|
5401
6040
|
|
|
5402
6041
|
class DataTransferService {
|
|
5403
6042
|
setEnrollData(data) {
|
|
@@ -5410,15 +6049,21 @@ class DataTransferService {
|
|
|
5410
6049
|
this.enrollData = null;
|
|
5411
6050
|
}
|
|
5412
6051
|
constructor() { }
|
|
5413
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5414
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6052
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DataTransferService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6053
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DataTransferService, providedIn: 'root' }); }
|
|
5415
6054
|
}
|
|
5416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6055
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DataTransferService, decorators: [{
|
|
5417
6056
|
type: Injectable,
|
|
5418
6057
|
args: [{
|
|
5419
6058
|
providedIn: 'root'
|
|
5420
6059
|
}]
|
|
5421
|
-
}], ctorParameters:
|
|
6060
|
+
}], ctorParameters: () => [] });
|
|
6061
|
+
|
|
6062
|
+
// constants
|
|
6063
|
+
|
|
6064
|
+
/**
|
|
6065
|
+
* Generated bundle index. Do not edit.
|
|
6066
|
+
*/
|
|
5422
6067
|
|
|
5423
|
-
export { AuthKeycloakService, AuthMicrosoftService, ClassChangeOnScrollDirective, ClassChangeOnScrollModule, ConfigurationsService, DataTransferService, DefaultThumbnailDirective, DefaultThumbnailModule, EFeatures, EInstance, EventService, ExploreDetailResolve, HorizontalScrollerComponent, HorizontalScrollerModule, HorizontalScrollerV2Component, HorizontalScrollerV2Module, ImageCropComponent, ImageCropModule, ImageResponsiveDirective, ImageResponsiveModule, InViewPortDirective, InViewPortModule, LoggerService, LogoutComponent, LogoutModule, MarketingOfferingResolve, ModuleNameResolve, MultilingualTranslationsService, NPSGridService, NavigationDirective, NavigationModule, NsContent, OrderByPipe, PageNameResolve, PageResolve, PermissionDirective, PermissionModule, PipeCertificateImageURL, PipeCertificateImageURLModule, PipeConciseDateRangeModule, PipeConciseDateRangePipe, PipeCountTransformModule, PipeCountTransformPipe, PipeCourseNameModule, PipeCourseNamePipe, PipeDateConcatModule, PipeDateConcatPipe, PipeDurationTransformModule, PipeDurationTransformPipe, PipeEmailModule, PipeEmailPipe, PipeFilterModule, PipeFilterPipe, PipeFilterSearchModule, PipeFilterSearchPipe, PipeFilterV2Module, PipeFilterV2Pipe, PipeFilterV3Module, PipeFilterV3Pipe, PipeHtmlTagRemovalModule, PipeHtmlTagRemovalPipe, PipeLimitToModule, PipeLimitToPipe, PipeListFilterModule, PipeListFilterPipe, PipeNameTransformModule, PipeNameTransformPipe, PipeNicRelativeModule, PipeNicRelativePipe, PipeOrderByModule, PipeOrdinalModule, PipeOrdinalPipe, PipePartialContentModule, PipePartialContentPipe, PipePublicURL, PipePublicURLModule, PipeRelativeTimeModule, PipeRelativeTimePipe, PipeSafeSanitizerModule, PipeSafeSanitizerPipe, SubapplicationRespondService, TelemetryService, UserPreferenceService, UtilityService, ValueService, WidgetContentService, WidgetEnrollService, WsEvents, getStringifiedQueryParams };
|
|
6068
|
+
export { AuthKeycloakService, AuthMicrosoftService, ClassChangeOnScrollDirective, ClassChangeOnScrollModule, ConfigurationsService, DataTransferService, DefaultThumbnailDirective, DefaultThumbnailModule, DomainConfService, EFeatures, EInstance, EventService, ExploreDetailResolve, HorizontalScrollerComponent, HorizontalScrollerModule, HorizontalScrollerV2Component, HorizontalScrollerV2Module, ImageCropComponent, ImageCropModule, ImageResponsiveDirective, ImageResponsiveModule, InViewPortDirective, InViewPortModule, LoggerService, LogoutComponent, LogoutModule, MarketingOfferingResolve, ModuleNameResolve, MultilingualTranslationsService, NPSGridService, NavigationDirective, NavigationModule, NsContent, OrderByPipe, PageNameResolve, PageResolve, PermissionDirective, PermissionModule, PipeCertificateImageURL, PipeCertificateImageURLModule, PipeConciseDateRangeModule, PipeConciseDateRangePipe, PipeCountTransformModule, PipeCountTransformPipe, PipeCourseNameModule, PipeCourseNamePipe, PipeDateConcatModule, PipeDateConcatPipe, PipeDurationTransformModule, PipeDurationTransformPipe, PipeEmailModule, PipeEmailPipe, PipeFilterModule, PipeFilterPipe, PipeFilterSearchModule, PipeFilterSearchPipe, PipeFilterV2Module, PipeFilterV2Pipe, PipeFilterV3Module, PipeFilterV3Pipe, PipeHtmlTagRemovalModule, PipeHtmlTagRemovalPipe, PipeLimitToModule, PipeLimitToPipe, PipeListFilterModule, PipeListFilterPipe, PipeNameTransformModule, PipeNameTransformPipe, PipeNicRelativeModule, PipeNicRelativePipe, PipeOrderByModule, PipeOrdinalModule, PipeOrdinalPipe, PipePartialContentModule, PipePartialContentPipe, PipePublicURL, PipePublicURLModule, PipeRelativeTimeModule, PipeRelativeTimePipe, PipeSafeSanitizerModule, PipeSafeSanitizerPipe, SubapplicationRespondService, TelemetryService, UserPreferenceService, UtilityService, ValueService, WidgetContentService, WidgetEnrollService, WsEvents, getStringifiedQueryParams };
|
|
5424
6069
|
//# sourceMappingURL=sunbird-cb-utils-v2.mjs.map
|