@sunbird-cb/utils 1.0.19-ang-9-12 → 1.0.19-ang-13-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sunbird-cb-utils.umd.js +1291 -1419
- package/bundles/sunbird-cb-utils.umd.js.map +1 -1
- package/esm2015/lib/components/image-crop/image-crop.component.js +28 -22
- package/esm2015/lib/components/image-crop/image-crop.module.js +45 -20
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +24 -14
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +17 -10
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.directive.js +20 -12
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.module.js +17 -10
- package/esm2015/lib/directives/image-responsive/image-responsive.directive.js +16 -14
- package/esm2015/lib/directives/image-responsive/image-responsive.module.js +17 -10
- package/esm2015/lib/directives/in-view-port/in-view-port.directive.js +13 -13
- package/esm2015/lib/directives/in-view-port/in-view-port.module.js +17 -10
- package/esm2015/lib/directives/navigation/navigation.directive.js +22 -13
- package/esm2015/lib/directives/navigation/navigation.module.js +17 -10
- package/esm2015/lib/directives/permission/permission.directive.js +10 -7
- package/esm2015/lib/directives/permission/permission.module.js +17 -10
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +25 -15
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +26 -13
- package/esm2015/lib/helpers/logout/logout.component.js +18 -18
- package/esm2015/lib/helpers/logout/logout.module.js +23 -12
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +13 -8
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +17 -10
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +17 -10
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +10 -7
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +17 -10
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.module.js +17 -10
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +17 -10
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +17 -10
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +17 -10
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +17 -10
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +17 -10
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.module.js +17 -10
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +17 -10
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +17 -10
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +17 -10
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +11 -10
- package/esm2015/lib/resolvers/explore-detail.resolver.js +9 -15
- package/esm2015/lib/resolvers/marketing-offering.resolve.js +9 -11
- package/esm2015/lib/resolvers/page.resolver.js +12 -14
- package/esm2015/lib/services/auth-keycloak.service.js +11 -186
- package/esm2015/lib/services/auth-microsoft.service.js +9 -13
- package/esm2015/lib/services/configurations.service.js +9 -8
- package/esm2015/lib/services/event.service.js +12 -12
- package/esm2015/lib/services/logger.service.js +9 -11
- package/esm2015/lib/services/subapplication-respond.service.js +13 -155
- package/esm2015/lib/services/telemetry.service.js +12 -16
- package/esm2015/lib/services/user-preference.service.js +9 -13
- package/esm2015/lib/services/utility.service.js +10 -16
- package/esm2015/lib/services/value.service.js +10 -11
- package/esm2015/lib/services/widget-content.service.js +11 -17
- package/fesm2015/sunbird-cb-utils.js +988 -1073
- package/fesm2015/sunbird-cb-utils.js.map +1 -1
- package/lib/components/image-crop/image-crop.component.d.ts +3 -0
- package/lib/components/image-crop/image-crop.component.d.ts.map +1 -1
- package/lib/components/image-crop/image-crop.module.d.ts +14 -0
- package/lib/components/image-crop/image-crop.module.d.ts.map +1 -1
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +3 -0
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts.map +1 -1
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +6 -0
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts.map +1 -1
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +3 -0
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts.map +1 -1
- package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +6 -0
- package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts.map +1 -1
- package/lib/directives/image-responsive/image-responsive.directive.d.ts +3 -0
- package/lib/directives/image-responsive/image-responsive.directive.d.ts.map +1 -1
- package/lib/directives/image-responsive/image-responsive.module.d.ts +6 -0
- package/lib/directives/image-responsive/image-responsive.module.d.ts.map +1 -1
- package/lib/directives/in-view-port/in-view-port.directive.d.ts +3 -0
- package/lib/directives/in-view-port/in-view-port.directive.d.ts.map +1 -1
- package/lib/directives/in-view-port/in-view-port.module.d.ts +6 -0
- package/lib/directives/in-view-port/in-view-port.module.d.ts.map +1 -1
- package/lib/directives/navigation/navigation.directive.d.ts +3 -0
- package/lib/directives/navigation/navigation.directive.d.ts.map +1 -1
- package/lib/directives/navigation/navigation.module.d.ts +6 -0
- package/lib/directives/navigation/navigation.module.d.ts.map +1 -1
- package/lib/directives/permission/permission.directive.d.ts +3 -0
- package/lib/directives/permission/permission.directive.d.ts.map +1 -1
- package/lib/directives/permission/permission.module.d.ts +6 -0
- package/lib/directives/permission/permission.module.d.ts.map +1 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +3 -0
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts.map +1 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +9 -0
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts.map +1 -1
- package/lib/helpers/logout/logout.component.d.ts +3 -0
- package/lib/helpers/logout/logout.component.d.ts.map +1 -1
- package/lib/helpers/logout/logout.module.d.ts +8 -0
- package/lib/helpers/logout/logout.module.d.ts.map +1 -1
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +6 -0
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts.map +1 -1
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +3 -0
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +6 -0
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts.map +1 -1
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +3 -0
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +6 -0
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts.map +1 -1
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +3 -0
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +6 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts.map +1 -1
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +3 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +6 -0
- package/lib/pipes/pipe-filter/pipe-filter.module.d.ts.map +1 -1
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +3 -0
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +6 -0
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts.map +1 -1
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +3 -0
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +6 -0
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts.map +1 -1
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +3 -0
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +6 -0
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts.map +1 -1
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +3 -0
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +6 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts.map +1 -1
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +3 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +6 -0
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts.map +1 -1
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +3 -0
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +6 -0
- package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts.map +1 -1
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +3 -0
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +6 -0
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts.map +1 -1
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +3 -0
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +6 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts.map +1 -1
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +3 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +6 -0
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts.map +1 -1
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +3 -0
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts.map +1 -1
- package/lib/resolvers/explore-detail.resolver.d.ts +3 -0
- package/lib/resolvers/explore-detail.resolver.d.ts.map +1 -1
- package/lib/resolvers/marketing-offering.resolve.d.ts +3 -0
- package/lib/resolvers/marketing-offering.resolve.d.ts.map +1 -1
- package/lib/resolvers/page.resolver.d.ts +3 -0
- package/lib/resolvers/page.resolver.d.ts.map +1 -1
- package/lib/services/auth-keycloak.service.d.ts +4 -21
- package/lib/services/auth-keycloak.service.d.ts.map +1 -1
- package/lib/services/auth-microsoft.service.d.ts +3 -0
- package/lib/services/auth-microsoft.service.d.ts.map +1 -1
- package/lib/services/configurations.service.d.ts +3 -0
- package/lib/services/configurations.service.d.ts.map +1 -1
- package/lib/services/event.service.d.ts +3 -0
- package/lib/services/event.service.d.ts.map +1 -1
- package/lib/services/logger.service.d.ts +3 -0
- package/lib/services/logger.service.d.ts.map +1 -1
- package/lib/services/subapplication-respond.service.d.ts +4 -10
- package/lib/services/subapplication-respond.service.d.ts.map +1 -1
- package/lib/services/telemetry.service.d.ts +3 -0
- package/lib/services/telemetry.service.d.ts.map +1 -1
- package/lib/services/user-preference.service.d.ts +3 -0
- package/lib/services/user-preference.service.d.ts.map +1 -1
- package/lib/services/utility.service.d.ts +3 -0
- package/lib/services/utility.service.d.ts.map +1 -1
- package/lib/services/value.service.d.ts +3 -0
- package/lib/services/value.service.d.ts.map +1 -1
- package/lib/services/widget-content.service.d.ts +3 -0
- package/lib/services/widget-content.service.d.ts.map +1 -1
- package/package.json +1 -3
- package/sunbird-cb-utils-1.0.19-ang-13-16.tgz +0 -0
- package/sunbird-cb-utils.d.ts +1 -0
- package/sunbird-cb-utils.d.ts.map +1 -1
- package/lib/components/image-crop/image-crop.component.ngfactory.d.ts.map +0 -1
- package/lib/components/image-crop/image-crop.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/image-crop/image-crop.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/default-thumbnail/default-thumbnail.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/default-thumbnail/default-thumbnail.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/image-responsive/image-responsive.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/image-responsive/image-responsive.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/in-view-port/in-view-port.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/in-view-port/in-view-port.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/navigation/navigation.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/navigation/navigation.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/permission/permission.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/permission/permission.module.ngfactory.d.ts.map +0 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.ngfactory.d.ts.map +0 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.ngfactory.d.ts.map +0 -1
- package/lib/helpers/logout/logout.component.ngfactory.d.ts.map +0 -1
- package/lib/helpers/logout/logout.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/helpers/logout/logout.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-filter/pipe-filter.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-filter/pipe-filter.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-order-by/pipe-order-by.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.ngfactory.d.ts.map +0 -1
- package/lib/resolvers/explore-detail.resolver.ngfactory.d.ts.map +0 -1
- package/lib/resolvers/marketing-offering.resolve.ngfactory.d.ts.map +0 -1
- package/lib/resolvers/page.resolver.ngfactory.d.ts.map +0 -1
- package/lib/services/auth-keycloak.service.ngfactory.d.ts.map +0 -1
- package/lib/services/auth-microsoft.service.ngfactory.d.ts.map +0 -1
- package/lib/services/configurations.service.ngfactory.d.ts.map +0 -1
- package/lib/services/event.service.ngfactory.d.ts.map +0 -1
- package/lib/services/logger.service.ngfactory.d.ts.map +0 -1
- package/lib/services/subapplication-respond.service.ngfactory.d.ts.map +0 -1
- package/lib/services/telemetry.service.ngfactory.d.ts.map +0 -1
- package/lib/services/user-preference.service.ngfactory.d.ts.map +0 -1
- package/lib/services/utility.service.ngfactory.d.ts.map +0 -1
- package/lib/services/value.service.ngfactory.d.ts.map +0 -1
- package/lib/services/widget-content.service.ngfactory.d.ts.map +0 -1
- package/sunbird-cb-utils.metadata.json +0 -1
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Component, Inject, Output, NgModule, Directive, Input, HostBinding, HostListener,
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { Injectable, EventEmitter, Component, Inject, Output, NgModule, Directive, Input, HostBinding, HostListener, ViewChild, Pipe, LOCALE_ID } from '@angular/core';
|
|
3
|
+
import * as i1$1 from '@angular/material/dialog';
|
|
4
|
+
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
5
5
|
import { BehaviorSubject, ReplaySubject, fromEvent, timer, of, forkJoin, Subject } from 'rxjs';
|
|
6
|
+
import * as i3 from '@angular/material/snack-bar';
|
|
6
7
|
import * as i1 from '@angular/cdk/layout';
|
|
7
|
-
import { Breakpoints
|
|
8
|
-
import { map, debounceTime, distinctUntilChanged, throttleTime,
|
|
9
|
-
import
|
|
10
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
-
import { MatCardModule } from '@angular/material/card';
|
|
8
|
+
import { Breakpoints } from '@angular/cdk/layout';
|
|
9
|
+
import { map, debounceTime, distinctUntilChanged, throttleTime, catchError, mergeMap, retry, filter } from 'rxjs/operators';
|
|
10
|
+
import * as i5 from '@angular/material/icon';
|
|
12
11
|
import { MatIconModule } from '@angular/material/icon';
|
|
12
|
+
import * as i6 from '@angular/material/button';
|
|
13
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
+
import * as i7 from 'ngx-image-cropper';
|
|
15
|
+
import { ImageCropperModule } from 'ngx-image-cropper';
|
|
16
|
+
import * as i8 from '@angular/material/slider';
|
|
13
17
|
import { MatSliderModule } from '@angular/material/slider';
|
|
18
|
+
import * as i9 from '@angular/material/card';
|
|
19
|
+
import { MatCardModule } from '@angular/material/card';
|
|
20
|
+
import * as i4 from '@angular/common';
|
|
21
|
+
import { CommonModule } from '@angular/common';
|
|
14
22
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
15
23
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
16
|
-
import
|
|
24
|
+
import * as i3$1 from '@angular/material/progress-spinner';
|
|
17
25
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
18
26
|
import { __awaiter } from 'tslib';
|
|
19
|
-
import * as
|
|
20
|
-
import {
|
|
21
|
-
import * as i1$
|
|
22
|
-
import
|
|
23
|
-
import * as i2$1 from '@angular/cdk/platform';
|
|
24
|
-
import { Platform } from '@angular/cdk/platform';
|
|
25
|
-
import * as i3 from '@angular/router';
|
|
26
|
-
import { NavigationEnd, Router, ActivatedRoute } from '@angular/router';
|
|
27
|
+
import * as i3$2 from '@angular/router';
|
|
28
|
+
import { NavigationEnd } from '@angular/router';
|
|
29
|
+
import * as i1$2 from '@angular/common/http';
|
|
30
|
+
import * as i2 from '@angular/cdk/platform';
|
|
27
31
|
import * as _moment from 'moment';
|
|
28
32
|
import * as _ from 'lodash';
|
|
29
33
|
import { orderBy } from 'lodash';
|
|
30
|
-
import
|
|
34
|
+
import * as i1$3 from '@angular/platform-browser';
|
|
31
35
|
|
|
32
36
|
class ConfigurationsService {
|
|
33
37
|
constructor() {
|
|
@@ -82,13 +86,14 @@ class ConfigurationsService {
|
|
|
82
86
|
this.updateOrgReadData.next(id);
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
|
-
ConfigurationsService.ɵ
|
|
86
|
-
ConfigurationsService
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
ConfigurationsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
90
|
+
ConfigurationsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationsService, providedIn: 'root' });
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationsService, decorators: [{
|
|
92
|
+
type: Injectable,
|
|
93
|
+
args: [{
|
|
94
|
+
providedIn: 'root',
|
|
95
|
+
}]
|
|
96
|
+
}], ctorParameters: function () { return []; } });
|
|
92
97
|
|
|
93
98
|
class ValueService {
|
|
94
99
|
constructor(breakpointObserver) {
|
|
@@ -101,15 +106,14 @@ class ValueService {
|
|
|
101
106
|
.pipe(map((res) => res.matches));
|
|
102
107
|
}
|
|
103
108
|
}
|
|
104
|
-
ValueService.ɵ
|
|
105
|
-
ValueService
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
];
|
|
109
|
+
ValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ValueService, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
110
|
+
ValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ValueService, providedIn: 'root' });
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ValueService, decorators: [{
|
|
112
|
+
type: Injectable,
|
|
113
|
+
args: [{
|
|
114
|
+
providedIn: 'root',
|
|
115
|
+
}]
|
|
116
|
+
}], ctorParameters: function () { return [{ type: i1.BreakpointObserver }]; } });
|
|
113
117
|
|
|
114
118
|
class ImageCropComponent {
|
|
115
119
|
constructor(dialogRef, configSvc, snackBar, valueSvc, data) {
|
|
@@ -248,45 +252,67 @@ class ImageCropComponent {
|
|
|
248
252
|
this.dialogRef.close();
|
|
249
253
|
}
|
|
250
254
|
}
|
|
251
|
-
ImageCropComponent
|
|
252
|
-
{ type: Component, args: [{
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
data: [{ type: Output }]
|
|
267
|
-
};
|
|
255
|
+
ImageCropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageCropComponent, deps: [{ token: i1$1.MatDialogRef }, { token: ConfigurationsService }, { token: i3.MatSnackBar }, { token: ValueService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
256
|
+
ImageCropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ImageCropComponent, selector: "ws-utils-image-crop", outputs: { data: "data" }, ngImport: i0, template: "<ng-container *ngIf=\"isNotOfRequiredSize\">\r\n <mat-dialog-content>\r\n <div class=\"flex pl-4\">\r\n <mat-icon class=\"ws-mat-warn-text largeicon padding-remove-left\">warning</mat-icon>\r\n <h2 class=\"text-xl\" i18n>This image will appear stretched as it is not in proper dimension. Do you want to\r\n continue?</h2>\r\n </div>\r\n <div class=\"text-sm pl-4\">\r\n <div i18n class=\"pb-2\">Note:</div>\r\n <div i18n class=\"pb-2\">Required dimensions : 265 * 150</div>\r\n <div class=\"flex flex-wrap items-baseline\">\r\n <div>Current dimensions:</div>\r\n <div class=\"pl-1\">{{ width }} * {{ height }} px</div>\r\n </div>\r\n </div>\r\n </mat-dialog-content>\r\n <mat-dialog-actions class=\"flex flex-end\">\r\n <div class=\"flex flex-end\">\r\n <button mat-raised-button autofocus type=\"button\" (click)=\" close()\">\r\n <span i18n>No</span>\r\n </button>\r\n <button mat-raised-button type=\"button\" class=\"text-white ws-mat-primary-background text-white\"\r\n (click)=\" continueToImageCrop()\">\r\n <span class=\"text-white\" i18n>Yes</span>\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n<ng-container *ngIf=\"isRoundCrop\">\r\n <!-- For Profile image - start -->\r\n <div class=\"flex flex-between\">\r\n <mat-icon class=\" ws-mat-primary-text margin-bottom-xxs\">crop</mat-icon>\r\n <p mat-dialog-title class=\"text-3xl font-weight-bold ws-mat-primary-text\" i18n>Profile Photo</p>\r\n <mat-icon class=\"float-right flex-end cursor-pointer\" (click)=\"close()\" i18n>close</mat-icon>\r\n\r\n </div>\r\n <mat-dialog-content class=\"p-0 overflow-hidden \" *ngIf=\"isRoundCrop\">\r\n <div class=\"flex flex-between\">\r\n <div class=\"profile-slides\">\r\n <image-cropper #imageCropper class=\"image-cropper-profile\" [imageFile]=\"imageFile\" [maintainAspectRatio]=\"true\"\r\n [aspectRatio]=\"250 / 250\" [resizeToWidth]=\"100\" [roundCropper]=\"isRoundCrop\" [resizeToHeight]=\"120\"\r\n [cropperMinWidth]=\"500\" [format]=\"'jpeg'\" [transform]=\"transform\" [canvasRotation]=\"canvasRotation\"\r\n (imageCropped)=\"imageCropped($event)\">\r\n </image-cropper>\r\n </div>\r\n </div>\r\n <ul class=\"toolbar cf\">\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"rotateLeft()\">\r\n <mat-icon class=\"text-white large-icon ws-mat-primary-text\">rotate_left</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Left</span>\r\n </button>\r\n </li>\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"rotateRight()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">rotate_right</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Right</span>\r\n </button></li>\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"flipHorizontal()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">flip</mat-icon>\r\n <span class=\"button-text\" i18n>Flip Horizontal</span>\r\n </button></li>\r\n <li><a href=\"#\"><i class=\"icon-cloud\"></i></a></li>\r\n </ul>\r\n </mat-dialog-content>\r\n</ng-container> <!-- For Profile image - end -->\r\n<ng-container>\r\n <ng-container *ngIf=\"!isNotOfRequiredSize && !isRoundCrop \">\r\n <div class=\"flex flex-between\">\r\n <mat-icon class=\" ws-mat-primary-text margin-bottom-xxs\">crop</mat-icon>\r\n <p mat-dialog-title class=\"text-3xl title-margin font-weight-bold ws-mat-primary-text\" i18n>Edit Image</p>\r\n <mat-icon class=\"float-right flex-end cursor-pointer\" (click)=\"close()\" i18n>\r\n close</mat-icon>\r\n </div>\r\n <mat-dialog-content *ngIf=\"!isRoundCrop\">\r\n <div class=\"flex flex-between\">\r\n <div class=\"Slides\">\r\n <image-cropper #imageCropper class=\"image-cropper padding-remove\" [imageFile]=\"imageFile\"\r\n [maintainAspectRatio]=\"true\" [aspectRatio]=\"opWidth / opHeight\" [resizeToWidth]=\"opWidth\"\r\n [roundCropper]=\"isRoundCrop\" [resizeToHeight]=\"opHeight\" [cropperMinWidth]=\"opWidth\" [format]=\"'jpeg'\"\r\n [transform]=\"transform\" [canvasRotation]=\"canvasRotation\" (imageCropped)=\"imageCropped($event)\">\r\n </image-cropper>\r\n <div class=\"flex flex-between\">\r\n <span class=\"my-3\" i18n>Zoom</span>\r\n <mat-slider class=\"w-full mx-3\" color=\"primary\" (input)=\"zoom($event)\" min=\"1\" max=\"2.5\" step=\"0.1\">\r\n </mat-slider>\r\n </div>\r\n <div class=\"edit-feature-window \" *ngIf=\"!isXSmall\">\r\n <div class=\"flex flex-between\">\r\n <button mat-raised-button class=\"mat-button\" (click)=\"rotateLeft()\">\r\n <mat-icon class=\"text-white large-icon ws-mat-primary-text\">rotate_left</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Left</span>\r\n </button>\r\n <button mat-raised-button class=\"mat-button\" (click)=\"rotateRight()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">rotate_right</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Right</span>\r\n </button>\r\n <button mat-raised-button class=\"mat-button\" (click)=\"flipHorizontal()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">flip</mat-icon>\r\n <span class=\"button-text\" i18n>Flip Horizontal</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <mat-card class=\"ws-mat-primary-border-top-bolder mat-elevation-z6 margin-bottom-l button-text\"\r\n *ngIf=\"isThumbnail\">\r\n <img [src]=\"imageFileBase64\" height=\"auto\" width=\"100%\" (error)=\"changeToDefaultImg($event)\" />\r\n <div class=\"flex flex-middle justify-center margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">image</mat-icon>\r\n <b class=\"mat-title margin-remove ws-mat-primary-text\" i18n>Preview</b>\r\n </div>\r\n </mat-card>\r\n </div>\r\n <div class=\"edit-feature-window heightwidth\">\r\n <!-- <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_horiz</mat-icon>\r\n <b class=\"mat-body margin-remove \" i18n>Cropped dimensions: {{ opWidth }} * {{ opHeight }} px</b>\r\n </div> -->\r\n <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_horiz</mat-icon>\r\n <b class=\"mat-body margin-remove \">\r\n <span i18n>Cropped Width: </span>\r\n <span>{{ croppedWidth }}</span>\r\n <span i18n>px</span>\r\n </b>\r\n </div>\r\n <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_vert</mat-icon>\r\n <b class=\"mat-body margin-remove \">\r\n <span i18n>Cropped Height: </span>\r\n <span>{{ croppedHeight }}</span>\r\n <span i18n>px</span>\r\n </b>\r\n </div>\r\n </div>\r\n </mat-dialog-content>\r\n </ng-container>\r\n <mat-dialog-actions align=\"end\" *ngIf=\"!isNotOfRequiredSize \">\r\n <div class=\"flex flex-end margin-bottom-s\">\r\n <!-- <button mat-raised-button type=\"button\" (click)=\" reset()\">\r\n <span i18n>Reset</span>\r\n </button> -->\r\n <button mat-raised-button type=\"button\" class=\"text-white ws-mat-primary-background text-white\"\r\n (click)=\" croppingImage()\">\r\n <span class=\"text-white\" i18n>Apply</span>\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n", styles: [".image-cropper{max-height:55vh}::ng-deep image-cropper .overlay{background-color:transparent!important}.Slides{display:block;height:auto;width:50%;position:relative;margin-left:auto;margin-right:auto;padding:0 1.25em}@media only screen and (max-width: 1030px){.Slides{padding:0;width:100%}}.cursor{cursor:pointer}.edit-feature-window{background:transparent;justify-content:center}mat-toolbar{background-color:#fff!important;z-index:1!important}mat-dialog-content{padding:1.25em!important}@media only screen and (max-width: 1030px){mat-dialog-content{padding:.25em .5em!important}}.heightwidth{display:flex}@media only screen and (max-width: 1030px){.heightwidth{display:block}}@media only screen and (max-width: 1030px){.mat-button{min-width:auto;padding:0 14px}}.largeicon{font-size:2em;padding:.13em .5em}.tooltip{background:#b71c1c}.dimension-icon{position:relative;top:.35em;padding:0 0 0 .3em}@media only screen and (max-width: 1030px){.button-text{display:none}}.image-cropper-profile{max-height:55vh}.profile-slides{box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;display:block;height:auto;width:50%;position:relative;margin-left:auto;margin-right:auto}@media only screen and (max-width: 1030px){.profile-slides{padding:0;width:100%}}.toolbar{left:50%;margin:1em 0 0 -10em;position:absolute;width:auto;border-radius:4px}.cf:before,.cf:after{content:\"\";display:table}.cf:after{clear:both}.toolbar li{float:left;list-style:none}.toolbar a{border-left:0px solid rgba(79,123,170,.4);border-right:1px solid rgba(255,255,255,.3)}.toolbar li:first-child a{border-left:none;border-radius:4px 0 0 4px}.toolbar li:last-child a{border-right:none;border-radius:0 4px 4px 0}\n"], components: [{ type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i7.ImageCropperComponent, selector: "image-cropper", inputs: ["format", "transform", "maintainAspectRatio", "aspectRatio", "resizeToWidth", "resizeToHeight", "cropperMinWidth", "cropperMinHeight", "cropperMaxHeight", "cropperMaxWidth", "cropperStaticWidth", "cropperStaticHeight", "canvasRotation", "initialStepSize", "roundCropper", "onlyScaleDown", "imageQuality", "autoCrop", "backgroundColor", "containWithinAspectRatio", "hideResizeSquares", "cropper", "alignImage", "disabled", "imageChangedEvent", "imageURL", "imageBase64", "imageFile"], outputs: ["imageCropped", "startCropImage", "imageLoaded", "cropperReady", "loadImageFailed"] }, { type: i8.MatSlider, selector: "mat-slider", inputs: ["disabled", "color", "tabIndex", "invert", "max", "min", "step", "thumbLabel", "tickInterval", "value", "vertical", "displayWith", "valueText"], outputs: ["change", "input", "valueChange"], exportAs: ["matSlider"] }, { type: i9.MatCard, selector: "mat-card", exportAs: ["matCard"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }] });
|
|
257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageCropComponent, decorators: [{
|
|
258
|
+
type: Component,
|
|
259
|
+
args: [{
|
|
260
|
+
selector: 'ws-utils-image-crop',
|
|
261
|
+
templateUrl: './image-crop.component.html',
|
|
262
|
+
styleUrls: ['./image-crop.component.scss'],
|
|
263
|
+
}]
|
|
264
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatDialogRef }, { type: ConfigurationsService }, { type: i3.MatSnackBar }, { type: ValueService }, { type: undefined, decorators: [{
|
|
265
|
+
type: Inject,
|
|
266
|
+
args: [MAT_DIALOG_DATA]
|
|
267
|
+
}] }]; }, propDecorators: { data: [{
|
|
268
|
+
type: Output
|
|
269
|
+
}] } });
|
|
268
270
|
|
|
269
271
|
class ImageCropModule {
|
|
270
272
|
}
|
|
271
|
-
ImageCropModule
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
273
|
+
ImageCropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageCropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
274
|
+
ImageCropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageCropModule, declarations: [ImageCropComponent], imports: [CommonModule,
|
|
275
|
+
ImageCropperModule,
|
|
276
|
+
MatIconModule,
|
|
277
|
+
MatButtonModule,
|
|
278
|
+
MatDialogModule,
|
|
279
|
+
MatToolbarModule,
|
|
280
|
+
MatDialogModule,
|
|
281
|
+
MatCardModule,
|
|
282
|
+
MatTooltipModule,
|
|
283
|
+
MatSliderModule], exports: [ImageCropComponent] });
|
|
284
|
+
ImageCropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageCropModule, imports: [[
|
|
285
|
+
CommonModule,
|
|
286
|
+
ImageCropperModule,
|
|
287
|
+
MatIconModule,
|
|
288
|
+
MatButtonModule,
|
|
289
|
+
MatDialogModule,
|
|
290
|
+
MatToolbarModule,
|
|
291
|
+
MatDialogModule,
|
|
292
|
+
MatCardModule,
|
|
293
|
+
MatTooltipModule,
|
|
294
|
+
MatSliderModule,
|
|
295
|
+
]] });
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageCropModule, decorators: [{
|
|
297
|
+
type: NgModule,
|
|
298
|
+
args: [{
|
|
299
|
+
declarations: [ImageCropComponent],
|
|
300
|
+
imports: [
|
|
301
|
+
CommonModule,
|
|
302
|
+
ImageCropperModule,
|
|
303
|
+
MatIconModule,
|
|
304
|
+
MatButtonModule,
|
|
305
|
+
MatDialogModule,
|
|
306
|
+
MatToolbarModule,
|
|
307
|
+
MatDialogModule,
|
|
308
|
+
MatCardModule,
|
|
309
|
+
MatTooltipModule,
|
|
310
|
+
MatSliderModule,
|
|
311
|
+
],
|
|
312
|
+
exports: [ImageCropComponent],
|
|
313
|
+
entryComponents: [ImageCropComponent],
|
|
314
|
+
}]
|
|
315
|
+
}] });
|
|
290
316
|
|
|
291
317
|
var EFeatures;
|
|
292
318
|
(function (EFeatures) {
|
|
@@ -908,31 +934,46 @@ class ClassChangeOnScrollDirective {
|
|
|
908
934
|
}, this.wsClassOnScrollDirChange || 5000);
|
|
909
935
|
}
|
|
910
936
|
}
|
|
911
|
-
ClassChangeOnScrollDirective
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
}
|
|
937
|
+
ClassChangeOnScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClassChangeOnScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
938
|
+
ClassChangeOnScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: ClassChangeOnScrollDirective, selector: "[wsUtilsClassChangeOnScroll]", inputs: { wsClassOnScrollDirChange: "wsClassOnScrollDirChange" }, host: { properties: { "class.scrolling-down": "this.isScrollingDown", "class.scrolling-up": "this.isScrollingUp", "class.scrolling-no": "this.isNotScrolling", "class.scrolled-down": "this.hasScrolledDown" } }, ngImport: i0 });
|
|
939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClassChangeOnScrollDirective, decorators: [{
|
|
940
|
+
type: Directive,
|
|
941
|
+
args: [{
|
|
942
|
+
selector: '[wsUtilsClassChangeOnScroll]',
|
|
943
|
+
}]
|
|
944
|
+
}], ctorParameters: function () { return []; }, propDecorators: { wsClassOnScrollDirChange: [{
|
|
945
|
+
type: Input
|
|
946
|
+
}], isScrollingDown: [{
|
|
947
|
+
type: HostBinding,
|
|
948
|
+
args: ['class.scrolling-down']
|
|
949
|
+
}], isScrollingUp: [{
|
|
950
|
+
type: HostBinding,
|
|
951
|
+
args: ['class.scrolling-up']
|
|
952
|
+
}], isNotScrolling: [{
|
|
953
|
+
type: HostBinding,
|
|
954
|
+
args: ['class.scrolling-no']
|
|
955
|
+
}], hasScrolledDown: [{
|
|
956
|
+
type: HostBinding,
|
|
957
|
+
args: ['class.scrolled-down']
|
|
958
|
+
}] } });
|
|
924
959
|
|
|
925
960
|
class ClassChangeOnScrollModule {
|
|
926
961
|
}
|
|
927
|
-
ClassChangeOnScrollModule
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
]
|
|
962
|
+
ClassChangeOnScrollModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClassChangeOnScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
963
|
+
ClassChangeOnScrollModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClassChangeOnScrollModule, declarations: [ClassChangeOnScrollDirective], imports: [CommonModule], exports: [ClassChangeOnScrollDirective] });
|
|
964
|
+
ClassChangeOnScrollModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClassChangeOnScrollModule, imports: [[
|
|
965
|
+
CommonModule,
|
|
966
|
+
]] });
|
|
967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClassChangeOnScrollModule, decorators: [{
|
|
968
|
+
type: NgModule,
|
|
969
|
+
args: [{
|
|
970
|
+
declarations: [ClassChangeOnScrollDirective],
|
|
971
|
+
imports: [
|
|
972
|
+
CommonModule,
|
|
973
|
+
],
|
|
974
|
+
exports: [ClassChangeOnScrollDirective],
|
|
975
|
+
}]
|
|
976
|
+
}] });
|
|
936
977
|
|
|
937
978
|
class DefaultThumbnailDirective {
|
|
938
979
|
constructor() {
|
|
@@ -953,29 +994,42 @@ class DefaultThumbnailDirective {
|
|
|
953
994
|
}
|
|
954
995
|
}
|
|
955
996
|
}
|
|
956
|
-
DefaultThumbnailDirective
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
997
|
+
DefaultThumbnailDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DefaultThumbnailDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
998
|
+
DefaultThumbnailDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: DefaultThumbnailDirective, selector: "[wsUtilsDefaultThumbnail]", inputs: { wsUtilsDefaultThumbnail: "wsUtilsDefaultThumbnail", src: "src" }, host: { listeners: { "error": "updateSrc()" }, properties: { "src": "this.srcUrl" } }, usesOnChanges: true, ngImport: i0 });
|
|
999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DefaultThumbnailDirective, decorators: [{
|
|
1000
|
+
type: Directive,
|
|
1001
|
+
args: [{
|
|
1002
|
+
selector: '[wsUtilsDefaultThumbnail]',
|
|
1003
|
+
}]
|
|
1004
|
+
}], propDecorators: { wsUtilsDefaultThumbnail: [{
|
|
1005
|
+
type: Input
|
|
1006
|
+
}], src: [{
|
|
1007
|
+
type: Input
|
|
1008
|
+
}], srcUrl: [{
|
|
1009
|
+
type: HostBinding,
|
|
1010
|
+
args: ['src']
|
|
1011
|
+
}], updateSrc: [{
|
|
1012
|
+
type: HostListener,
|
|
1013
|
+
args: ['error']
|
|
1014
|
+
}] } });
|
|
967
1015
|
|
|
968
1016
|
class DefaultThumbnailModule {
|
|
969
1017
|
}
|
|
970
|
-
DefaultThumbnailModule
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
]
|
|
1018
|
+
DefaultThumbnailModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DefaultThumbnailModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1019
|
+
DefaultThumbnailModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DefaultThumbnailModule, declarations: [DefaultThumbnailDirective], imports: [CommonModule], exports: [DefaultThumbnailDirective] });
|
|
1020
|
+
DefaultThumbnailModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DefaultThumbnailModule, imports: [[
|
|
1021
|
+
CommonModule,
|
|
1022
|
+
]] });
|
|
1023
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DefaultThumbnailModule, decorators: [{
|
|
1024
|
+
type: NgModule,
|
|
1025
|
+
args: [{
|
|
1026
|
+
declarations: [DefaultThumbnailDirective],
|
|
1027
|
+
imports: [
|
|
1028
|
+
CommonModule,
|
|
1029
|
+
],
|
|
1030
|
+
exports: [DefaultThumbnailDirective],
|
|
1031
|
+
}]
|
|
1032
|
+
}] });
|
|
979
1033
|
|
|
980
1034
|
const customBreakPoints = {
|
|
981
1035
|
xs: '(max-width: 450px)',
|
|
@@ -1045,30 +1099,37 @@ class ImageResponsiveDirective {
|
|
|
1045
1099
|
}
|
|
1046
1100
|
}
|
|
1047
1101
|
}
|
|
1048
|
-
ImageResponsiveDirective
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
];
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1102
|
+
ImageResponsiveDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageResponsiveDirective, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1103
|
+
ImageResponsiveDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: ImageResponsiveDirective, selector: "[wsUtilsImageResponsive]", inputs: { src: "src" }, host: { properties: { "src": "this.srcBindUrl" } }, usesOnChanges: true, ngImport: i0 });
|
|
1104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageResponsiveDirective, decorators: [{
|
|
1105
|
+
type: Directive,
|
|
1106
|
+
args: [{
|
|
1107
|
+
selector: '[wsUtilsImageResponsive]',
|
|
1108
|
+
}]
|
|
1109
|
+
}], ctorParameters: function () { return [{ type: i1.BreakpointObserver }]; }, propDecorators: { src: [{
|
|
1110
|
+
type: Input
|
|
1111
|
+
}], srcBindUrl: [{
|
|
1112
|
+
type: HostBinding,
|
|
1113
|
+
args: ['src']
|
|
1114
|
+
}] } });
|
|
1060
1115
|
|
|
1061
1116
|
class ImageResponsiveModule {
|
|
1062
1117
|
}
|
|
1063
|
-
ImageResponsiveModule
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
]
|
|
1118
|
+
ImageResponsiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageResponsiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1119
|
+
ImageResponsiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageResponsiveModule, declarations: [ImageResponsiveDirective], imports: [CommonModule], exports: [ImageResponsiveDirective] });
|
|
1120
|
+
ImageResponsiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageResponsiveModule, imports: [[
|
|
1121
|
+
CommonModule,
|
|
1122
|
+
]] });
|
|
1123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageResponsiveModule, decorators: [{
|
|
1124
|
+
type: NgModule,
|
|
1125
|
+
args: [{
|
|
1126
|
+
declarations: [ImageResponsiveDirective],
|
|
1127
|
+
imports: [
|
|
1128
|
+
CommonModule,
|
|
1129
|
+
],
|
|
1130
|
+
exports: [ImageResponsiveDirective],
|
|
1131
|
+
}]
|
|
1132
|
+
}] });
|
|
1072
1133
|
|
|
1073
1134
|
class InViewPortDirective {
|
|
1074
1135
|
constructor(_el) {
|
|
@@ -1117,29 +1178,34 @@ class InViewPortDirective {
|
|
|
1117
1178
|
this.inViewport.emit(event);
|
|
1118
1179
|
}
|
|
1119
1180
|
}
|
|
1120
|
-
InViewPortDirective
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
];
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
};
|
|
1181
|
+
InViewPortDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InViewPortDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1182
|
+
InViewPortDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: InViewPortDirective, selector: "[wsUtilsInViewPort]", outputs: { inViewport: "inViewport" }, ngImport: i0 });
|
|
1183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InViewPortDirective, decorators: [{
|
|
1184
|
+
type: Directive,
|
|
1185
|
+
args: [{
|
|
1186
|
+
selector: '[wsUtilsInViewPort]',
|
|
1187
|
+
}]
|
|
1188
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { inViewport: [{
|
|
1189
|
+
type: Output
|
|
1190
|
+
}] } });
|
|
1131
1191
|
|
|
1132
1192
|
class InViewPortModule {
|
|
1133
1193
|
}
|
|
1134
|
-
InViewPortModule
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
]
|
|
1194
|
+
InViewPortModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InViewPortModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1195
|
+
InViewPortModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InViewPortModule, declarations: [InViewPortDirective], imports: [CommonModule], exports: [InViewPortDirective] });
|
|
1196
|
+
InViewPortModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InViewPortModule, imports: [[
|
|
1197
|
+
CommonModule,
|
|
1198
|
+
]] });
|
|
1199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InViewPortModule, decorators: [{
|
|
1200
|
+
type: NgModule,
|
|
1201
|
+
args: [{
|
|
1202
|
+
declarations: [InViewPortDirective],
|
|
1203
|
+
exports: [InViewPortDirective],
|
|
1204
|
+
imports: [
|
|
1205
|
+
CommonModule,
|
|
1206
|
+
],
|
|
1207
|
+
}]
|
|
1208
|
+
}] });
|
|
1143
1209
|
|
|
1144
1210
|
class NavigationDirective {
|
|
1145
1211
|
constructor() {
|
|
@@ -1161,52 +1227,74 @@ class NavigationDirective {
|
|
|
1161
1227
|
}
|
|
1162
1228
|
}
|
|
1163
1229
|
}
|
|
1164
|
-
NavigationDirective
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
}
|
|
1230
|
+
NavigationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NavigationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1231
|
+
NavigationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: NavigationDirective, selector: "[wsUtilsNavigation]", inputs: { wsUtilsNavigation: "wsUtilsNavigation", openInNewTab: "openInNewTab", routeUrl: "routeUrl" }, host: { listeners: { "mousedown": "onMouseEnter($event)" }, properties: { "attr.routerLink": "this.routeUrl" } }, usesOnChanges: true, ngImport: i0 });
|
|
1232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NavigationDirective, decorators: [{
|
|
1233
|
+
type: Directive,
|
|
1234
|
+
args: [{
|
|
1235
|
+
selector: '[wsUtilsNavigation]',
|
|
1236
|
+
}]
|
|
1237
|
+
}], ctorParameters: function () { return []; }, propDecorators: { wsUtilsNavigation: [{
|
|
1238
|
+
type: Input
|
|
1239
|
+
}], openInNewTab: [{
|
|
1240
|
+
type: Input
|
|
1241
|
+
}], routeUrl: [{
|
|
1242
|
+
type: Input
|
|
1243
|
+
}, {
|
|
1244
|
+
type: HostBinding,
|
|
1245
|
+
args: ['attr.routerLink']
|
|
1246
|
+
}], onMouseEnter: [{
|
|
1247
|
+
type: HostListener,
|
|
1248
|
+
args: ['mousedown', ['$event']]
|
|
1249
|
+
}] } });
|
|
1176
1250
|
|
|
1177
1251
|
class NavigationModule {
|
|
1178
1252
|
}
|
|
1179
|
-
NavigationModule
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
]
|
|
1253
|
+
NavigationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1254
|
+
NavigationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NavigationModule, declarations: [NavigationDirective], imports: [CommonModule], exports: [NavigationDirective] });
|
|
1255
|
+
NavigationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NavigationModule, imports: [[
|
|
1256
|
+
CommonModule,
|
|
1257
|
+
]] });
|
|
1258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NavigationModule, decorators: [{
|
|
1259
|
+
type: NgModule,
|
|
1260
|
+
args: [{
|
|
1261
|
+
declarations: [NavigationDirective],
|
|
1262
|
+
imports: [
|
|
1263
|
+
CommonModule,
|
|
1264
|
+
],
|
|
1265
|
+
exports: [NavigationDirective],
|
|
1266
|
+
}]
|
|
1267
|
+
}] });
|
|
1188
1268
|
|
|
1189
1269
|
class PermissionDirective {
|
|
1190
1270
|
constructor() { }
|
|
1191
1271
|
}
|
|
1192
|
-
PermissionDirective
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1272
|
+
PermissionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PermissionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1273
|
+
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: PermissionDirective, selector: "[wsUtilsPermission]", ngImport: i0 });
|
|
1274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
1275
|
+
type: Directive,
|
|
1276
|
+
args: [{
|
|
1277
|
+
selector: '[wsUtilsPermission]',
|
|
1278
|
+
}]
|
|
1279
|
+
}], ctorParameters: function () { return []; } });
|
|
1198
1280
|
|
|
1199
1281
|
class PermissionModule {
|
|
1200
1282
|
}
|
|
1201
|
-
PermissionModule
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
]
|
|
1283
|
+
PermissionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PermissionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1284
|
+
PermissionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PermissionModule, declarations: [PermissionDirective], imports: [CommonModule], exports: [PermissionDirective] });
|
|
1285
|
+
PermissionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PermissionModule, imports: [[
|
|
1286
|
+
CommonModule,
|
|
1287
|
+
]] });
|
|
1288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PermissionModule, decorators: [{
|
|
1289
|
+
type: NgModule,
|
|
1290
|
+
args: [{
|
|
1291
|
+
declarations: [PermissionDirective],
|
|
1292
|
+
imports: [
|
|
1293
|
+
CommonModule,
|
|
1294
|
+
],
|
|
1295
|
+
exports: [PermissionDirective],
|
|
1296
|
+
}]
|
|
1297
|
+
}] });
|
|
1210
1298
|
|
|
1211
1299
|
function getStringifiedQueryParams(obj) {
|
|
1212
1300
|
return Object.entries(obj)
|
|
@@ -1289,358 +1377,62 @@ class HorizontalScrollerComponent {
|
|
|
1289
1377
|
}
|
|
1290
1378
|
}
|
|
1291
1379
|
}
|
|
1292
|
-
HorizontalScrollerComponent
|
|
1293
|
-
{ type:
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
}
|
|
1380
|
+
HorizontalScrollerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: HorizontalScrollerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1381
|
+
HorizontalScrollerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: HorizontalScrollerComponent, selector: "ws-utils-horizontal-scroller", inputs: { loadStatus: "loadStatus", onHover: "onHover" }, outputs: { loadNext: "loadNext" }, viewQueries: [{ propertyName: "horizontalScrollElem", first: true, predicate: ["horizontalScrollElem"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label name=\"content-backward-button\" mat-mini-fab color=\"primary\" (click)=\"showPrev()\"\r\n class=\"prevBtn hidden-touch border-radius-xs\" [hidden]=\"!enablePrev\" [ngClass]=\"{'prevBtnHover': onHover}\">\r\n <mat-icon>navigate_before</mat-icon>\r\n </button>\r\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\r\n <ng-content></ng-content>\r\n </div>\r\n <button i18n-aria-label name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\" color=\"primary\"\r\n class=\"nextBtn hidden-touch border-radius-xs\" [ngClass]=\"{'nextBtnHover': onHover}\"\r\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\r\n <mat-icon>navigate_next</mat-icon>\r\n </button>\r\n <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\r\n <mat-spinner></mat-spinner>\r\n </div>\r\n</section>", styles: [".horizontal-scroll-container{position:relative;width:100%;min-height:100px}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999}.border-radius-xs{border-radius:8px!important}.prevBtn{left:-16px}.nextBtn{right:-16px}.nextLoading{padding:0;right:-16px}.horizontal-scroll-content{overflow-x:auto;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"], components: [{ type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3$1.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: HorizontalScrollerComponent, decorators: [{
|
|
1383
|
+
type: Component,
|
|
1384
|
+
args: [{
|
|
1385
|
+
selector: 'ws-utils-horizontal-scroller',
|
|
1386
|
+
templateUrl: './horizontal-scroller.component.html',
|
|
1387
|
+
styleUrls: ['./horizontal-scroller.component.scss'],
|
|
1388
|
+
}]
|
|
1389
|
+
}], ctorParameters: function () { return []; }, propDecorators: { loadStatus: [{
|
|
1390
|
+
type: Input
|
|
1391
|
+
}], onHover: [{
|
|
1392
|
+
type: Input
|
|
1393
|
+
}], loadNext: [{
|
|
1394
|
+
type: Output
|
|
1395
|
+
}], horizontalScrollElem: [{
|
|
1396
|
+
type: ViewChild,
|
|
1397
|
+
args: ['horizontalScrollElem', { static: true }]
|
|
1398
|
+
}] } });
|
|
1306
1399
|
|
|
1307
1400
|
class HorizontalScrollerModule {
|
|
1308
1401
|
}
|
|
1309
|
-
HorizontalScrollerModule
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
}
|
|
1334
|
-
get info() {
|
|
1335
|
-
return this.configSvc.isProduction ? this.noConsole : this.consoleInfo;
|
|
1336
|
-
}
|
|
1337
|
-
get log() {
|
|
1338
|
-
return this.configSvc.isProduction ? this.noConsole : this.consoleLog;
|
|
1339
|
-
}
|
|
1340
|
-
get warn() {
|
|
1341
|
-
return this.configSvc.isProduction ? this.noConsole : this.consoleWarn;
|
|
1342
|
-
}
|
|
1343
|
-
removeConsoleAccess() {
|
|
1344
|
-
if (this.configSvc.isProduction) {
|
|
1345
|
-
return;
|
|
1346
|
-
}
|
|
1347
|
-
const noConsoleWithError = () => {
|
|
1348
|
-
throw new Error('Console Functions Usage Are Not Allowed.');
|
|
1349
|
-
};
|
|
1350
|
-
console.warn = noConsoleWithError;
|
|
1351
|
-
console.info = noConsoleWithError;
|
|
1352
|
-
console.error = noConsoleWithError;
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
LoggerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoggerService_Factory() { return new LoggerService(i0.ɵɵinject(ConfigurationsService)); }, token: LoggerService, providedIn: "root" });
|
|
1356
|
-
LoggerService.decorators = [
|
|
1357
|
-
{ type: Injectable, args: [{
|
|
1358
|
-
providedIn: 'root',
|
|
1359
|
-
},] }
|
|
1360
|
-
];
|
|
1361
|
-
LoggerService.ctorParameters = () => [
|
|
1362
|
-
{ type: ConfigurationsService }
|
|
1363
|
-
];
|
|
1402
|
+
HorizontalScrollerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: HorizontalScrollerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1403
|
+
HorizontalScrollerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: HorizontalScrollerModule, declarations: [HorizontalScrollerComponent], imports: [CommonModule,
|
|
1404
|
+
MatButtonModule,
|
|
1405
|
+
MatIconModule,
|
|
1406
|
+
MatProgressSpinnerModule], exports: [HorizontalScrollerComponent] });
|
|
1407
|
+
HorizontalScrollerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: HorizontalScrollerModule, imports: [[
|
|
1408
|
+
CommonModule,
|
|
1409
|
+
MatButtonModule,
|
|
1410
|
+
MatIconModule,
|
|
1411
|
+
MatProgressSpinnerModule,
|
|
1412
|
+
]] });
|
|
1413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: HorizontalScrollerModule, decorators: [{
|
|
1414
|
+
type: NgModule,
|
|
1415
|
+
args: [{
|
|
1416
|
+
declarations: [HorizontalScrollerComponent],
|
|
1417
|
+
imports: [
|
|
1418
|
+
CommonModule,
|
|
1419
|
+
MatButtonModule,
|
|
1420
|
+
MatIconModule,
|
|
1421
|
+
MatProgressSpinnerModule,
|
|
1422
|
+
],
|
|
1423
|
+
exports: [HorizontalScrollerComponent],
|
|
1424
|
+
}]
|
|
1425
|
+
}] });
|
|
1364
1426
|
|
|
1365
|
-
const msTokenExpiryDuration = 600;
|
|
1366
|
-
const storageKey$1 = 'msLoginRequested';
|
|
1367
1427
|
const storage$1 = localStorage;
|
|
1368
|
-
const
|
|
1369
|
-
sharePointToken: '/apis/protected/v8/user/token',
|
|
1370
|
-
};
|
|
1371
|
-
class AuthMicrosoftService {
|
|
1372
|
-
constructor(loggerSvc, http) {
|
|
1373
|
-
this.loggerSvc = loggerSvc;
|
|
1374
|
-
this.http = http;
|
|
1375
|
-
this.msConfig = {
|
|
1376
|
-
clientId: '',
|
|
1377
|
-
tenant: '',
|
|
1378
|
-
defaultEmailId: '',
|
|
1379
|
-
validEmailExtensions: [],
|
|
1380
|
-
isConfigured: false,
|
|
1381
|
-
};
|
|
1382
|
-
this.emailUsed = null;
|
|
1383
|
-
this.code = null;
|
|
1384
|
-
this.msToken = {
|
|
1385
|
-
accessToken: '',
|
|
1386
|
-
expiresOn: '',
|
|
1387
|
-
resource: '',
|
|
1388
|
-
tokenType: '',
|
|
1389
|
-
};
|
|
1390
|
-
}
|
|
1391
|
-
get isLogoutRequired() {
|
|
1392
|
-
return Boolean(this.msConfig.isConfigured && this.msConfig.clientId && this.emailUsed);
|
|
1393
|
-
}
|
|
1394
|
-
get loginUrl() {
|
|
1395
|
-
if (this.msConfig.isConfigured && this.msConfig.clientId) {
|
|
1396
|
-
const base = 'https://login.windows.net/common/oauth2/authorize';
|
|
1397
|
-
const searchParam = new URLSearchParams({
|
|
1398
|
-
response_type: 'code',
|
|
1399
|
-
client_id: this.msConfig.clientId,
|
|
1400
|
-
redirect_uri: window.location.href,
|
|
1401
|
-
});
|
|
1402
|
-
const fragment = location.search.substring(1);
|
|
1403
|
-
if (fragment) {
|
|
1404
|
-
return `${base}?${searchParam.toString()}#${fragment}`;
|
|
1405
|
-
}
|
|
1406
|
-
return `${base}?${searchParam.toString()}`;
|
|
1407
|
-
}
|
|
1408
|
-
return null;
|
|
1409
|
-
}
|
|
1410
|
-
logoutUrl(redirectUrl) {
|
|
1411
|
-
if (this.isValidEmail(this.emailUsed || '')) {
|
|
1412
|
-
return `https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=${redirectUrl}`;
|
|
1413
|
-
}
|
|
1414
|
-
return redirectUrl;
|
|
1415
|
-
}
|
|
1416
|
-
init(config) {
|
|
1417
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1418
|
-
if (!config || !config.microsoft || !config.microsoft.isConfigured) {
|
|
1419
|
-
this.loggerSvc.warn('Empty/No Configuration passed, ignoring Microsoft Authentication');
|
|
1420
|
-
}
|
|
1421
|
-
this.msConfig = config.microsoft;
|
|
1422
|
-
const queryParams = new URLSearchParams(location.search);
|
|
1423
|
-
if (queryParams.has('code') && queryParams.has('session_state')) {
|
|
1424
|
-
this.code = queryParams.get('code');
|
|
1425
|
-
if (!this.code) {
|
|
1426
|
-
return;
|
|
1427
|
-
}
|
|
1428
|
-
let url = location.origin + location.pathname;
|
|
1429
|
-
yield this.exchangeTokenForCode(this.code, url);
|
|
1430
|
-
if (location.hash) {
|
|
1431
|
-
url += location.hash.substring(1);
|
|
1432
|
-
}
|
|
1433
|
-
history.replaceState(null, '', url);
|
|
1434
|
-
}
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
login(email) {
|
|
1438
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1439
|
-
if (!this.isValidEmail(email)) {
|
|
1440
|
-
this.loggerSvc.warn(`Microsoft Login is not allowed for your emailId (${email})`);
|
|
1441
|
-
return;
|
|
1442
|
-
}
|
|
1443
|
-
const loginUrl = this.loginUrl;
|
|
1444
|
-
if (loginUrl) {
|
|
1445
|
-
location.assign(loginUrl);
|
|
1446
|
-
}
|
|
1447
|
-
else {
|
|
1448
|
-
this.loggerSvc.warn('Unable to identify Office Login URL, Ignoring login request');
|
|
1449
|
-
}
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
getToken(email) {
|
|
1453
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1454
|
-
if (this.msToken &&
|
|
1455
|
-
this.isValid(this.msToken.accessToken, this.msToken.expiresOn) &&
|
|
1456
|
-
this.msToken.accessToken) {
|
|
1457
|
-
return this.msToken.accessToken;
|
|
1458
|
-
}
|
|
1459
|
-
if (this.isValidEmail(email)) {
|
|
1460
|
-
try {
|
|
1461
|
-
this.msToken = yield this.getTokenForEmail(email);
|
|
1462
|
-
if (this.msToken.accessToken) {
|
|
1463
|
-
this.emailUsed = email;
|
|
1464
|
-
return this.msToken.accessToken;
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
catch (error) {
|
|
1468
|
-
if (!this.code) {
|
|
1469
|
-
this.login(email);
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
if (this.msConfig.defaultEmailId && this.isValidEmail(this.msConfig.defaultEmailId)) {
|
|
1474
|
-
try {
|
|
1475
|
-
this.msToken = yield this.getTokenForEmail(this.msConfig.defaultEmailId);
|
|
1476
|
-
if (this.msToken.accessToken) {
|
|
1477
|
-
this.emailUsed = this.msConfig.defaultEmailId;
|
|
1478
|
-
return this.msToken.accessToken;
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
catch (error) { }
|
|
1482
|
-
}
|
|
1483
|
-
throw new Error('UNABLE TO FETCH MS AUTH TOKEN');
|
|
1484
|
-
});
|
|
1485
|
-
}
|
|
1486
|
-
loginForSSOEnabledEmbed(email) {
|
|
1487
|
-
if (!this.isValidEmail(email)) {
|
|
1488
|
-
this.loggerSvc.warn('SSO Login request Ignored. Invalid Email Id for SSO Enabled Content');
|
|
1489
|
-
}
|
|
1490
|
-
let msPrevTS = 0;
|
|
1491
|
-
try {
|
|
1492
|
-
msPrevTS = parseInt(storage$1.getItem(storageKey$1) || '0', 10);
|
|
1493
|
-
}
|
|
1494
|
-
catch (error) { }
|
|
1495
|
-
if (!msPrevTS || (msPrevTS && (Date.now() - msPrevTS) / 1000 > msTokenExpiryDuration)) {
|
|
1496
|
-
this.loggerSvc.info(`last login exceeded ${msTokenExpiryDuration} duration. Redirecting to O365 login`);
|
|
1497
|
-
storage$1.setItem(storageKey$1, Date.now().toString());
|
|
1498
|
-
this.login(email);
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
isValidEmail(email) {
|
|
1502
|
-
return this.msConfig.validEmailExtensions.some(ext => email.endsWith(ext));
|
|
1503
|
-
}
|
|
1504
|
-
isValid(accessToken, expiresOn) {
|
|
1505
|
-
if (accessToken && expiresOn) {
|
|
1506
|
-
return true;
|
|
1507
|
-
}
|
|
1508
|
-
return false;
|
|
1509
|
-
}
|
|
1510
|
-
exchangeTokenForCode(code, redirectUrl) {
|
|
1511
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1512
|
-
const response = yield this.http
|
|
1513
|
-
.get(`${API_ENDPOINTS}?code=${code}&redirectUrl=${redirectUrl}`)
|
|
1514
|
-
.toPromise();
|
|
1515
|
-
return this.getInstanceFromResponse(response);
|
|
1516
|
-
});
|
|
1517
|
-
}
|
|
1518
|
-
getTokenForEmail(email) {
|
|
1519
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1520
|
-
const response = yield this.http
|
|
1521
|
-
.get(`${API_ENDPOINTS.sharePointToken}?email=${email}`)
|
|
1522
|
-
.toPromise();
|
|
1523
|
-
return this.getInstanceFromResponse(response);
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
getInstanceFromResponse(token) {
|
|
1527
|
-
return {
|
|
1528
|
-
accessToken: token.accessToken,
|
|
1529
|
-
expiresOn: token.expiresOn,
|
|
1530
|
-
resource: token.resource,
|
|
1531
|
-
tokenType: token.tokenType,
|
|
1532
|
-
};
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
AuthMicrosoftService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthMicrosoftService_Factory() { return new AuthMicrosoftService(i0.ɵɵinject(LoggerService), i0.ɵɵinject(i1$1.HttpClient)); }, token: AuthMicrosoftService, providedIn: "root" });
|
|
1536
|
-
AuthMicrosoftService.decorators = [
|
|
1537
|
-
{ type: Injectable, args: [{
|
|
1538
|
-
providedIn: 'root',
|
|
1539
|
-
},] }
|
|
1540
|
-
];
|
|
1541
|
-
AuthMicrosoftService.ctorParameters = () => [
|
|
1542
|
-
{ type: LoggerService },
|
|
1543
|
-
{ type: HttpClient }
|
|
1544
|
-
];
|
|
1545
|
-
|
|
1546
|
-
const storage = localStorage;
|
|
1547
|
-
const storageKey = 'kc';
|
|
1428
|
+
const storageKey$1 = 'kc';
|
|
1548
1429
|
class AuthKeycloakService {
|
|
1549
|
-
constructor(
|
|
1550
|
-
this.configSvc = configSvc;
|
|
1551
|
-
this.keycloakSvc = keycloakSvc;
|
|
1552
|
-
this.msAuthSvc = msAuthSvc;
|
|
1430
|
+
constructor() {
|
|
1553
1431
|
this.loginChangeSubject = new ReplaySubject(1);
|
|
1554
|
-
this.loginChangeSubject.subscribe((isLoggedIn) => {
|
|
1555
|
-
this.configSvc.isAuthenticated = isLoggedIn;
|
|
1556
|
-
if (isLoggedIn &&
|
|
1557
|
-
this.configSvc.instanceConfig &&
|
|
1558
|
-
Boolean(this.configSvc.instanceConfig.disablePidCheck)) {
|
|
1559
|
-
this.configSvc.userProfile = {
|
|
1560
|
-
email: this.userEmail,
|
|
1561
|
-
userName: this.userName,
|
|
1562
|
-
userId: this.userId || '',
|
|
1563
|
-
};
|
|
1564
|
-
}
|
|
1565
|
-
});
|
|
1566
1432
|
}
|
|
1567
1433
|
get isLoggedIn$() {
|
|
1568
1434
|
return this.loginChangeSubject.asObservable();
|
|
1569
1435
|
}
|
|
1570
|
-
get isLoggedIn() {
|
|
1571
|
-
return this.keycloakSvc.isLoggedIn();
|
|
1572
|
-
}
|
|
1573
|
-
get isAuthenticated() {
|
|
1574
|
-
return this.keycloakSvc.getKeycloakInstance().authenticated;
|
|
1575
|
-
}
|
|
1576
|
-
get token() {
|
|
1577
|
-
return this.keycloakSvc.getKeycloakInstance().token;
|
|
1578
|
-
}
|
|
1579
|
-
get sessionId() {
|
|
1580
|
-
return this.keycloakSvc.getKeycloakInstance().sessionId;
|
|
1581
|
-
}
|
|
1582
|
-
get userId() {
|
|
1583
|
-
const kc = this.keycloakSvc.getKeycloakInstance();
|
|
1584
|
-
if (!kc) {
|
|
1585
|
-
return;
|
|
1586
|
-
}
|
|
1587
|
-
return (kc.tokenParsed && kc.tokenParsed.sub) || (kc.idTokenParsed && kc.idTokenParsed.sub);
|
|
1588
|
-
}
|
|
1589
|
-
get userEmail() {
|
|
1590
|
-
const kc = this.keycloakSvc.getKeycloakInstance();
|
|
1591
|
-
const tokenParsed = kc.tokenParsed;
|
|
1592
|
-
const idTokenParsed = kc.idTokenParsed;
|
|
1593
|
-
return ((tokenParsed && tokenParsed.email) ||
|
|
1594
|
-
(idTokenParsed && idTokenParsed.email) ||
|
|
1595
|
-
(idTokenParsed && idTokenParsed.encEmail) ||
|
|
1596
|
-
(tokenParsed && tokenParsed.preferred_username) ||
|
|
1597
|
-
(idTokenParsed && idTokenParsed.preferred_username));
|
|
1598
|
-
}
|
|
1599
|
-
get userName() {
|
|
1600
|
-
const kc = this.keycloakSvc.getKeycloakInstance();
|
|
1601
|
-
return ((kc.tokenParsed && kc.tokenParsed.name) ||
|
|
1602
|
-
(kc.idTokenParsed && kc.idTokenParsed.name));
|
|
1603
|
-
}
|
|
1604
|
-
initAuth() {
|
|
1605
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1606
|
-
if (!this.configSvc.instanceConfig) {
|
|
1607
|
-
return false;
|
|
1608
|
-
}
|
|
1609
|
-
const instanceConfig = this.configSvc.instanceConfig;
|
|
1610
|
-
if (instanceConfig.microsoft.isConfigured) {
|
|
1611
|
-
this.msAuthSvc.init({ microsoft: instanceConfig.microsoft });
|
|
1612
|
-
}
|
|
1613
|
-
try {
|
|
1614
|
-
this.setupGlobalAuthResponder();
|
|
1615
|
-
this.addKeycloakEventListener();
|
|
1616
|
-
return yield this.keycloakSvc.init({
|
|
1617
|
-
config: {
|
|
1618
|
-
url: instanceConfig.keycloak.url,
|
|
1619
|
-
realm: instanceConfig.keycloak.realm,
|
|
1620
|
-
clientId: instanceConfig.keycloak.clientId,
|
|
1621
|
-
},
|
|
1622
|
-
initOptions: Object.assign(Object.assign({}, this.getSavedKcConfig()), { onLoad: instanceConfig.keycloak.onLoad || 'check-sso', checkLoginIframe: false }),
|
|
1623
|
-
enableBearerInterceptor: true,
|
|
1624
|
-
loadUserProfileAtStartUp: false,
|
|
1625
|
-
bearerExcludedUrls: instanceConfig.keycloak.bearerExcludedUrls,
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
catch (err) {
|
|
1629
|
-
return false;
|
|
1630
|
-
}
|
|
1631
|
-
});
|
|
1632
|
-
}
|
|
1633
|
-
login(idpHint = 'E', redirectUrl = this.defaultRedirectUrl) {
|
|
1634
|
-
return this.keycloakSvc.login({
|
|
1635
|
-
idpHint,
|
|
1636
|
-
redirectUri: redirectUrl,
|
|
1637
|
-
});
|
|
1638
|
-
}
|
|
1639
|
-
register(redirectUrl = this.defaultRedirectUrl) {
|
|
1640
|
-
return this.keycloakSvc.register({
|
|
1641
|
-
redirectUri: redirectUrl,
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
1436
|
logout(_redirectUrl = this.defaultRedirectUrl) {
|
|
1645
1437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1646
1438
|
window.location.href = `${_redirectUrl}public/logout`;
|
|
@@ -1648,10 +1440,10 @@ class AuthKeycloakService {
|
|
|
1648
1440
|
}
|
|
1649
1441
|
force_logout() {
|
|
1650
1442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1651
|
-
if (storage.getItem('telemetrySessionId')) {
|
|
1652
|
-
storage.removeItem('telemetrySessionId');
|
|
1443
|
+
if (storage$1.getItem('telemetrySessionId')) {
|
|
1444
|
+
storage$1.removeItem('telemetrySessionId');
|
|
1653
1445
|
}
|
|
1654
|
-
storage.removeItem(storageKey);
|
|
1446
|
+
storage$1.removeItem(storageKey$1);
|
|
1655
1447
|
if (localStorage.getItem('login') === 'true') {
|
|
1656
1448
|
try {
|
|
1657
1449
|
sessionStorage.clear();
|
|
@@ -1666,82 +1458,6 @@ class AuthKeycloakService {
|
|
|
1666
1458
|
}
|
|
1667
1459
|
});
|
|
1668
1460
|
}
|
|
1669
|
-
addKeycloakEventListener() {
|
|
1670
|
-
this.keycloakSvc.keycloakEvents$.subscribe((event) => {
|
|
1671
|
-
switch (event.type) {
|
|
1672
|
-
case KeycloakEventType.OnAuthError:
|
|
1673
|
-
this.loginChangeSubject.next(false);
|
|
1674
|
-
break;
|
|
1675
|
-
case KeycloakEventType.OnAuthLogout:
|
|
1676
|
-
this.loginChangeSubject.next(false);
|
|
1677
|
-
storage.removeItem(storageKey);
|
|
1678
|
-
break;
|
|
1679
|
-
case KeycloakEventType.OnAuthRefreshError:
|
|
1680
|
-
break;
|
|
1681
|
-
case KeycloakEventType.OnAuthRefreshSuccess:
|
|
1682
|
-
break;
|
|
1683
|
-
case KeycloakEventType.OnAuthSuccess:
|
|
1684
|
-
break;
|
|
1685
|
-
case KeycloakEventType.OnReady:
|
|
1686
|
-
this.loginChangeSubject.next(event.args);
|
|
1687
|
-
if (event.args) {
|
|
1688
|
-
this.saveKeycloakConfig();
|
|
1689
|
-
}
|
|
1690
|
-
break;
|
|
1691
|
-
case KeycloakEventType.OnTokenExpired:
|
|
1692
|
-
this.keycloakSvc.updateToken(60);
|
|
1693
|
-
break;
|
|
1694
|
-
}
|
|
1695
|
-
});
|
|
1696
|
-
}
|
|
1697
|
-
setupGlobalAuthResponder() {
|
|
1698
|
-
fromEvent(window, 'message')
|
|
1699
|
-
.pipe(filter((event) => Boolean(event) &&
|
|
1700
|
-
Boolean(event.data) &&
|
|
1701
|
-
event.data.type === 'AUTH_REQUEST' &&
|
|
1702
|
-
Boolean(event.source && typeof event.source.postMessage === 'function')))
|
|
1703
|
-
.subscribe((event) => __awaiter(this, void 0, void 0, function* () {
|
|
1704
|
-
const contentWindow = event.source;
|
|
1705
|
-
const token = yield this.keycloakSvc.getToken();
|
|
1706
|
-
const response = {
|
|
1707
|
-
app: 'WEB_PORTAL',
|
|
1708
|
-
type: 'AUTH_RESPONSE',
|
|
1709
|
-
state: 'NONE',
|
|
1710
|
-
plugin: 'NONE',
|
|
1711
|
-
data: {
|
|
1712
|
-
token,
|
|
1713
|
-
id: event.data && event.data.data && event.data.data.id,
|
|
1714
|
-
},
|
|
1715
|
-
};
|
|
1716
|
-
contentWindow.postMessage(response, '*');
|
|
1717
|
-
}));
|
|
1718
|
-
}
|
|
1719
|
-
saveKeycloakConfig() {
|
|
1720
|
-
const kc = this.keycloakSvc.getKeycloakInstance();
|
|
1721
|
-
const kcInitOptions = {
|
|
1722
|
-
idToken: kc.idToken,
|
|
1723
|
-
refreshToken: kc.refreshToken,
|
|
1724
|
-
timeSkew: kc.timeSkew,
|
|
1725
|
-
token: kc.token,
|
|
1726
|
-
};
|
|
1727
|
-
storage.setItem(storageKey, JSON.stringify(kcInitOptions));
|
|
1728
|
-
}
|
|
1729
|
-
getSavedKcConfig() {
|
|
1730
|
-
try {
|
|
1731
|
-
const lastSaved = storage.getItem(storageKey);
|
|
1732
|
-
if (lastSaved) {
|
|
1733
|
-
const processed = JSON.parse(lastSaved);
|
|
1734
|
-
if ('idToken' in processed &&
|
|
1735
|
-
'refreshToken' in processed &&
|
|
1736
|
-
'timeSkew' in processed &&
|
|
1737
|
-
'token' in processed) {
|
|
1738
|
-
return processed;
|
|
1739
|
-
}
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
catch (e) { }
|
|
1743
|
-
return {};
|
|
1744
|
-
}
|
|
1745
1461
|
get defaultRedirectUrl() {
|
|
1746
1462
|
try {
|
|
1747
1463
|
const baseUrl = document.baseURI;
|
|
@@ -1752,17 +1468,14 @@ class AuthKeycloakService {
|
|
|
1752
1468
|
}
|
|
1753
1469
|
}
|
|
1754
1470
|
}
|
|
1755
|
-
AuthKeycloakService.ɵ
|
|
1756
|
-
AuthKeycloakService
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
{ type: KeycloakService },
|
|
1764
|
-
{ type: AuthMicrosoftService }
|
|
1765
|
-
];
|
|
1471
|
+
AuthKeycloakService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AuthKeycloakService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1472
|
+
AuthKeycloakService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AuthKeycloakService, providedIn: 'root' });
|
|
1473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AuthKeycloakService, decorators: [{
|
|
1474
|
+
type: Injectable,
|
|
1475
|
+
args: [{
|
|
1476
|
+
providedIn: 'root',
|
|
1477
|
+
}]
|
|
1478
|
+
}], ctorParameters: function () { return []; } });
|
|
1766
1479
|
|
|
1767
1480
|
const RANDOM_ID_PER_USER = 0;
|
|
1768
1481
|
class UtilityService {
|
|
@@ -1871,18 +1584,14 @@ class UtilityService {
|
|
|
1871
1584
|
return data;
|
|
1872
1585
|
}
|
|
1873
1586
|
}
|
|
1874
|
-
UtilityService.ɵ
|
|
1875
|
-
UtilityService
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
{ type: Platform },
|
|
1883
|
-
{ type: Router },
|
|
1884
|
-
{ type: ActivatedRoute }
|
|
1885
|
-
];
|
|
1587
|
+
UtilityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UtilityService, deps: [{ token: i1$2.HttpClient }, { token: i2.Platform }, { token: i3$2.Router }, { token: i3$2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1588
|
+
UtilityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UtilityService, providedIn: 'root' });
|
|
1589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UtilityService, decorators: [{
|
|
1590
|
+
type: Injectable,
|
|
1591
|
+
args: [{
|
|
1592
|
+
providedIn: 'root',
|
|
1593
|
+
}]
|
|
1594
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: i2.Platform }, { type: i3$2.Router }, { type: i3$2.ActivatedRoute }]; } });
|
|
1886
1595
|
|
|
1887
1596
|
class LogoutComponent {
|
|
1888
1597
|
constructor(dialogRef, authSvc, configSvc, utilitySvc) {
|
|
@@ -1913,33 +1622,40 @@ class LogoutComponent {
|
|
|
1913
1622
|
return false;
|
|
1914
1623
|
}
|
|
1915
1624
|
}
|
|
1916
|
-
LogoutComponent
|
|
1917
|
-
{ type:
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
{ type: ConfigurationsService },
|
|
1927
|
-
{ type: UtilityService }
|
|
1928
|
-
];
|
|
1625
|
+
LogoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LogoutComponent, deps: [{ token: i1$1.MatDialogRef }, { token: AuthKeycloakService }, { token: ConfigurationsService }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1626
|
+
LogoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LogoutComponent, selector: "ws-utils-logout", ngImport: i0, template: "<h1 mat-dialog-title i18n>Logout Now</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n Note: On logging out all the downloaded content will be deleted.\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n Are you sure?\r\n</div>\r\n<div mat-dialog-actions class=\"flex-row-reverse\">\r\n <button mat-flat-button color=\"warn\" [disabled]=\"disabled\" (click)=\"confirmed()\" i18n>\r\n Yes\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" [mat-dialog-close] cdkFocusInitial i18n>No</button>\r\n</div>", styles: [".hide-overflow{overflow:hidden}\n"], components: [{ type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
1627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LogoutComponent, decorators: [{
|
|
1628
|
+
type: Component,
|
|
1629
|
+
args: [{
|
|
1630
|
+
selector: 'ws-utils-logout',
|
|
1631
|
+
templateUrl: './logout.component.html',
|
|
1632
|
+
styleUrls: ['./logout.component.scss'],
|
|
1633
|
+
}]
|
|
1634
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatDialogRef }, { type: AuthKeycloakService }, { type: ConfigurationsService }, { type: UtilityService }]; } });
|
|
1929
1635
|
|
|
1930
1636
|
class LogoutModule {
|
|
1931
1637
|
}
|
|
1932
|
-
LogoutModule
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1638
|
+
LogoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LogoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1639
|
+
LogoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LogoutModule, declarations: [LogoutComponent], imports: [CommonModule,
|
|
1640
|
+
MatButtonModule,
|
|
1641
|
+
MatDialogModule] });
|
|
1642
|
+
LogoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LogoutModule, imports: [[
|
|
1643
|
+
CommonModule,
|
|
1644
|
+
MatButtonModule,
|
|
1645
|
+
MatDialogModule,
|
|
1646
|
+
]] });
|
|
1647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LogoutModule, decorators: [{
|
|
1648
|
+
type: NgModule,
|
|
1649
|
+
args: [{
|
|
1650
|
+
declarations: [LogoutComponent],
|
|
1651
|
+
imports: [
|
|
1652
|
+
CommonModule,
|
|
1653
|
+
MatButtonModule,
|
|
1654
|
+
MatDialogModule,
|
|
1655
|
+
],
|
|
1656
|
+
entryComponents: [LogoutComponent],
|
|
1657
|
+
}]
|
|
1658
|
+
}] });
|
|
1943
1659
|
|
|
1944
1660
|
class PipeConciseDateRangePipe {
|
|
1945
1661
|
transform(dateRange) {
|
|
@@ -1987,21 +1703,28 @@ class PipeConciseDateRangePipe {
|
|
|
1987
1703
|
}
|
|
1988
1704
|
}
|
|
1989
1705
|
}
|
|
1990
|
-
PipeConciseDateRangePipe
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1706
|
+
PipeConciseDateRangePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1707
|
+
PipeConciseDateRangePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangePipe, name: "pipeConciseDateRange" });
|
|
1708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangePipe, decorators: [{
|
|
1709
|
+
type: Pipe,
|
|
1710
|
+
args: [{
|
|
1711
|
+
name: 'pipeConciseDateRange',
|
|
1712
|
+
}]
|
|
1713
|
+
}] });
|
|
1995
1714
|
|
|
1996
1715
|
class PipeConciseDateRangeModule {
|
|
1997
1716
|
}
|
|
1998
|
-
PipeConciseDateRangeModule
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
]
|
|
1717
|
+
PipeConciseDateRangeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1718
|
+
PipeConciseDateRangeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangeModule, declarations: [PipeConciseDateRangePipe], imports: [CommonModule], exports: [PipeConciseDateRangePipe] });
|
|
1719
|
+
PipeConciseDateRangeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangeModule, imports: [[CommonModule]] });
|
|
1720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeConciseDateRangeModule, decorators: [{
|
|
1721
|
+
type: NgModule,
|
|
1722
|
+
args: [{
|
|
1723
|
+
declarations: [PipeConciseDateRangePipe],
|
|
1724
|
+
imports: [CommonModule],
|
|
1725
|
+
exports: [PipeConciseDateRangePipe],
|
|
1726
|
+
}]
|
|
1727
|
+
}] });
|
|
2005
1728
|
|
|
2006
1729
|
class PipeCountTransformPipe {
|
|
2007
1730
|
transform(value) {
|
|
@@ -2029,23 +1752,32 @@ class PipeCountTransformPipe {
|
|
|
2029
1752
|
return '0';
|
|
2030
1753
|
}
|
|
2031
1754
|
}
|
|
2032
|
-
PipeCountTransformPipe
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
1755
|
+
PipeCountTransformPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1756
|
+
PipeCountTransformPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformPipe, name: "pipeCountTransform" });
|
|
1757
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformPipe, decorators: [{
|
|
1758
|
+
type: Pipe,
|
|
1759
|
+
args: [{
|
|
1760
|
+
name: 'pipeCountTransform',
|
|
1761
|
+
}]
|
|
1762
|
+
}] });
|
|
2037
1763
|
|
|
2038
1764
|
class PipeCountTransformModule {
|
|
2039
1765
|
}
|
|
2040
|
-
PipeCountTransformModule
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
]
|
|
1766
|
+
PipeCountTransformModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1767
|
+
PipeCountTransformModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformModule, declarations: [PipeCountTransformPipe], imports: [CommonModule], exports: [PipeCountTransformPipe] });
|
|
1768
|
+
PipeCountTransformModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformModule, imports: [[
|
|
1769
|
+
CommonModule,
|
|
1770
|
+
]] });
|
|
1771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeCountTransformModule, decorators: [{
|
|
1772
|
+
type: NgModule,
|
|
1773
|
+
args: [{
|
|
1774
|
+
declarations: [PipeCountTransformPipe],
|
|
1775
|
+
imports: [
|
|
1776
|
+
CommonModule,
|
|
1777
|
+
],
|
|
1778
|
+
exports: [PipeCountTransformPipe],
|
|
1779
|
+
}]
|
|
1780
|
+
}] });
|
|
2049
1781
|
|
|
2050
1782
|
class PipeDateConcatPipe {
|
|
2051
1783
|
constructor() {
|
|
@@ -2072,24 +1804,32 @@ class PipeDateConcatPipe {
|
|
|
2072
1804
|
return dateStr;
|
|
2073
1805
|
}
|
|
2074
1806
|
}
|
|
2075
|
-
PipeDateConcatPipe
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
1807
|
+
PipeDateConcatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1808
|
+
PipeDateConcatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatPipe, name: "pipeDateConcat" });
|
|
1809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatPipe, decorators: [{
|
|
1810
|
+
type: Pipe,
|
|
1811
|
+
args: [{
|
|
1812
|
+
name: 'pipeDateConcat',
|
|
1813
|
+
}]
|
|
1814
|
+
}], ctorParameters: function () { return []; } });
|
|
2081
1815
|
|
|
2082
1816
|
class PipeDateConcatModule {
|
|
2083
1817
|
}
|
|
2084
|
-
PipeDateConcatModule
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
]
|
|
1818
|
+
PipeDateConcatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1819
|
+
PipeDateConcatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatModule, declarations: [PipeDateConcatPipe], imports: [CommonModule], exports: [PipeDateConcatPipe] });
|
|
1820
|
+
PipeDateConcatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatModule, imports: [[
|
|
1821
|
+
CommonModule,
|
|
1822
|
+
]] });
|
|
1823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDateConcatModule, decorators: [{
|
|
1824
|
+
type: NgModule,
|
|
1825
|
+
args: [{
|
|
1826
|
+
declarations: [PipeDateConcatPipe],
|
|
1827
|
+
imports: [
|
|
1828
|
+
CommonModule,
|
|
1829
|
+
],
|
|
1830
|
+
exports: [PipeDateConcatPipe],
|
|
1831
|
+
}]
|
|
1832
|
+
}] });
|
|
2093
1833
|
|
|
2094
1834
|
class PipeDurationTransformPipe {
|
|
2095
1835
|
transform(data, type) {
|
|
@@ -2144,46 +1884,64 @@ class PipeDurationTransformPipe {
|
|
|
2144
1884
|
return duration;
|
|
2145
1885
|
}
|
|
2146
1886
|
}
|
|
2147
|
-
PipeDurationTransformPipe
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
1887
|
+
PipeDurationTransformPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1888
|
+
PipeDurationTransformPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformPipe, name: "pipeDurationTransform" });
|
|
1889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformPipe, decorators: [{
|
|
1890
|
+
type: Pipe,
|
|
1891
|
+
args: [{
|
|
1892
|
+
name: 'pipeDurationTransform',
|
|
1893
|
+
}]
|
|
1894
|
+
}] });
|
|
2152
1895
|
|
|
2153
1896
|
class PipeDurationTransformModule {
|
|
2154
1897
|
}
|
|
2155
|
-
PipeDurationTransformModule
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
]
|
|
1898
|
+
PipeDurationTransformModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1899
|
+
PipeDurationTransformModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformModule, declarations: [PipeDurationTransformPipe], imports: [CommonModule], exports: [PipeDurationTransformPipe] });
|
|
1900
|
+
PipeDurationTransformModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformModule, imports: [[
|
|
1901
|
+
CommonModule,
|
|
1902
|
+
]] });
|
|
1903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeDurationTransformModule, decorators: [{
|
|
1904
|
+
type: NgModule,
|
|
1905
|
+
args: [{
|
|
1906
|
+
declarations: [PipeDurationTransformPipe],
|
|
1907
|
+
imports: [
|
|
1908
|
+
CommonModule,
|
|
1909
|
+
],
|
|
1910
|
+
exports: [PipeDurationTransformPipe],
|
|
1911
|
+
}]
|
|
1912
|
+
}] });
|
|
2164
1913
|
|
|
2165
1914
|
class PipeHtmlTagRemovalPipe {
|
|
2166
1915
|
transform(htmlString) {
|
|
2167
1916
|
return htmlString ? String(htmlString).replace(/<[^>]+>/gm, '') : '';
|
|
2168
1917
|
}
|
|
2169
1918
|
}
|
|
2170
|
-
PipeHtmlTagRemovalPipe
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
1919
|
+
PipeHtmlTagRemovalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1920
|
+
PipeHtmlTagRemovalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalPipe, name: "pipeHtmlTagRemoval" });
|
|
1921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalPipe, decorators: [{
|
|
1922
|
+
type: Pipe,
|
|
1923
|
+
args: [{
|
|
1924
|
+
name: 'pipeHtmlTagRemoval',
|
|
1925
|
+
}]
|
|
1926
|
+
}] });
|
|
2175
1927
|
|
|
2176
1928
|
class PipeHtmlTagRemovalModule {
|
|
2177
1929
|
}
|
|
2178
|
-
PipeHtmlTagRemovalModule
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
]
|
|
1930
|
+
PipeHtmlTagRemovalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1931
|
+
PipeHtmlTagRemovalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalModule, declarations: [PipeHtmlTagRemovalPipe], imports: [CommonModule], exports: [PipeHtmlTagRemovalPipe] });
|
|
1932
|
+
PipeHtmlTagRemovalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalModule, imports: [[
|
|
1933
|
+
CommonModule,
|
|
1934
|
+
]] });
|
|
1935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeHtmlTagRemovalModule, decorators: [{
|
|
1936
|
+
type: NgModule,
|
|
1937
|
+
args: [{
|
|
1938
|
+
declarations: [PipeHtmlTagRemovalPipe],
|
|
1939
|
+
imports: [
|
|
1940
|
+
CommonModule,
|
|
1941
|
+
],
|
|
1942
|
+
exports: [PipeHtmlTagRemovalPipe],
|
|
1943
|
+
}]
|
|
1944
|
+
}] });
|
|
2187
1945
|
|
|
2188
1946
|
class PipeFilterPipe {
|
|
2189
1947
|
transform(value, keys, term) {
|
|
@@ -2194,23 +1952,32 @@ class PipeFilterPipe {
|
|
|
2194
1952
|
.some(key => item.hasOwnProperty(key) && new RegExp(`^${term}$`, 'gi').test(item[key])));
|
|
2195
1953
|
}
|
|
2196
1954
|
}
|
|
2197
|
-
PipeFilterPipe
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
1955
|
+
PipeFilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1956
|
+
PipeFilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterPipe, name: "pipeFilter" });
|
|
1957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterPipe, decorators: [{
|
|
1958
|
+
type: Pipe,
|
|
1959
|
+
args: [{
|
|
1960
|
+
name: 'pipeFilter',
|
|
1961
|
+
}]
|
|
1962
|
+
}] });
|
|
2202
1963
|
|
|
2203
1964
|
class PipeFilterModule {
|
|
2204
1965
|
}
|
|
2205
|
-
PipeFilterModule
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
]
|
|
1966
|
+
PipeFilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1967
|
+
PipeFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterModule, declarations: [PipeFilterPipe], imports: [CommonModule], exports: [PipeFilterPipe] });
|
|
1968
|
+
PipeFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterModule, imports: [[
|
|
1969
|
+
CommonModule,
|
|
1970
|
+
]] });
|
|
1971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterModule, decorators: [{
|
|
1972
|
+
type: NgModule,
|
|
1973
|
+
args: [{
|
|
1974
|
+
declarations: [PipeFilterPipe],
|
|
1975
|
+
imports: [
|
|
1976
|
+
CommonModule,
|
|
1977
|
+
],
|
|
1978
|
+
exports: [PipeFilterPipe],
|
|
1979
|
+
}]
|
|
1980
|
+
}] });
|
|
2214
1981
|
|
|
2215
1982
|
class PipeFilterSearchPipe {
|
|
2216
1983
|
transform(items, searchText, ...keys) {
|
|
@@ -2235,23 +2002,32 @@ class PipeFilterSearchPipe {
|
|
|
2235
2002
|
});
|
|
2236
2003
|
}
|
|
2237
2004
|
}
|
|
2238
|
-
PipeFilterSearchPipe
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2005
|
+
PipeFilterSearchPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2006
|
+
PipeFilterSearchPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchPipe, name: "pipeFilterSearch" });
|
|
2007
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchPipe, decorators: [{
|
|
2008
|
+
type: Pipe,
|
|
2009
|
+
args: [{
|
|
2010
|
+
name: 'pipeFilterSearch',
|
|
2011
|
+
}]
|
|
2012
|
+
}] });
|
|
2243
2013
|
|
|
2244
2014
|
class PipeFilterSearchModule {
|
|
2245
2015
|
}
|
|
2246
|
-
PipeFilterSearchModule
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
]
|
|
2016
|
+
PipeFilterSearchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2017
|
+
PipeFilterSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchModule, declarations: [PipeFilterSearchPipe], imports: [CommonModule], exports: [PipeFilterSearchPipe] });
|
|
2018
|
+
PipeFilterSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchModule, imports: [[
|
|
2019
|
+
CommonModule,
|
|
2020
|
+
]] });
|
|
2021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeFilterSearchModule, decorators: [{
|
|
2022
|
+
type: NgModule,
|
|
2023
|
+
args: [{
|
|
2024
|
+
declarations: [PipeFilterSearchPipe],
|
|
2025
|
+
imports: [
|
|
2026
|
+
CommonModule,
|
|
2027
|
+
],
|
|
2028
|
+
exports: [PipeFilterSearchPipe],
|
|
2029
|
+
}]
|
|
2030
|
+
}] });
|
|
2255
2031
|
|
|
2256
2032
|
class PipeListFilterPipe {
|
|
2257
2033
|
transform(value, keys, term) {
|
|
@@ -2263,23 +2039,32 @@ class PipeListFilterPipe {
|
|
|
2263
2039
|
&& item[key] && (`${item[key]} `).toLocaleLowerCase().includes(term.toLocaleLowerCase())));
|
|
2264
2040
|
}
|
|
2265
2041
|
}
|
|
2266
|
-
PipeListFilterPipe
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2042
|
+
PipeListFilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2043
|
+
PipeListFilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterPipe, name: "pipeListFilter" });
|
|
2044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterPipe, decorators: [{
|
|
2045
|
+
type: Pipe,
|
|
2046
|
+
args: [{
|
|
2047
|
+
name: 'pipeListFilter',
|
|
2048
|
+
}]
|
|
2049
|
+
}] });
|
|
2271
2050
|
|
|
2272
2051
|
class PipeListFilterModule {
|
|
2273
2052
|
}
|
|
2274
|
-
PipeListFilterModule
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
]
|
|
2053
|
+
PipeListFilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2054
|
+
PipeListFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterModule, declarations: [PipeListFilterPipe], imports: [CommonModule], exports: [PipeListFilterPipe] });
|
|
2055
|
+
PipeListFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterModule, imports: [[
|
|
2056
|
+
CommonModule,
|
|
2057
|
+
]] });
|
|
2058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeListFilterModule, decorators: [{
|
|
2059
|
+
type: NgModule,
|
|
2060
|
+
args: [{
|
|
2061
|
+
declarations: [PipeListFilterPipe],
|
|
2062
|
+
imports: [
|
|
2063
|
+
CommonModule,
|
|
2064
|
+
],
|
|
2065
|
+
exports: [PipeListFilterPipe],
|
|
2066
|
+
}]
|
|
2067
|
+
}] });
|
|
2283
2068
|
|
|
2284
2069
|
const moment$1 = _moment;
|
|
2285
2070
|
class PipeRelativeTimePipe {
|
|
@@ -2290,46 +2075,64 @@ class PipeRelativeTimePipe {
|
|
|
2290
2075
|
return moment$1().startOf('hour').fromNow();
|
|
2291
2076
|
}
|
|
2292
2077
|
}
|
|
2293
|
-
PipeRelativeTimePipe
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2078
|
+
PipeRelativeTimePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2079
|
+
PipeRelativeTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimePipe, name: "pipeRelativeTime" });
|
|
2080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimePipe, decorators: [{
|
|
2081
|
+
type: Pipe,
|
|
2082
|
+
args: [{
|
|
2083
|
+
name: 'pipeRelativeTime',
|
|
2084
|
+
}]
|
|
2085
|
+
}] });
|
|
2298
2086
|
|
|
2299
2087
|
class PipeRelativeTimeModule {
|
|
2300
2088
|
}
|
|
2301
|
-
PipeRelativeTimeModule
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
]
|
|
2089
|
+
PipeRelativeTimeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2090
|
+
PipeRelativeTimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimeModule, declarations: [PipeRelativeTimePipe], imports: [CommonModule], exports: [PipeRelativeTimePipe] });
|
|
2091
|
+
PipeRelativeTimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimeModule, imports: [[
|
|
2092
|
+
CommonModule,
|
|
2093
|
+
]] });
|
|
2094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeRelativeTimeModule, decorators: [{
|
|
2095
|
+
type: NgModule,
|
|
2096
|
+
args: [{
|
|
2097
|
+
declarations: [PipeRelativeTimePipe],
|
|
2098
|
+
imports: [
|
|
2099
|
+
CommonModule,
|
|
2100
|
+
],
|
|
2101
|
+
exports: [PipeRelativeTimePipe],
|
|
2102
|
+
}]
|
|
2103
|
+
}] });
|
|
2310
2104
|
|
|
2311
2105
|
class OrderByPipe {
|
|
2312
2106
|
constructor() {
|
|
2313
2107
|
this.transform = orderBy;
|
|
2314
2108
|
}
|
|
2315
2109
|
}
|
|
2316
|
-
OrderByPipe
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2110
|
+
OrderByPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OrderByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2111
|
+
OrderByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OrderByPipe, name: "orderBy" });
|
|
2112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OrderByPipe, decorators: [{
|
|
2113
|
+
type: Pipe,
|
|
2114
|
+
args: [{
|
|
2115
|
+
name: 'orderBy',
|
|
2116
|
+
}]
|
|
2117
|
+
}] });
|
|
2321
2118
|
|
|
2322
2119
|
class PipeOrderByModule {
|
|
2323
2120
|
}
|
|
2324
|
-
PipeOrderByModule
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
]
|
|
2121
|
+
PipeOrderByModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeOrderByModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2122
|
+
PipeOrderByModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeOrderByModule, declarations: [OrderByPipe], imports: [CommonModule], exports: [OrderByPipe] });
|
|
2123
|
+
PipeOrderByModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeOrderByModule, imports: [[
|
|
2124
|
+
CommonModule,
|
|
2125
|
+
]] });
|
|
2126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeOrderByModule, decorators: [{
|
|
2127
|
+
type: NgModule,
|
|
2128
|
+
args: [{
|
|
2129
|
+
declarations: [OrderByPipe],
|
|
2130
|
+
imports: [
|
|
2131
|
+
CommonModule,
|
|
2132
|
+
],
|
|
2133
|
+
exports: [OrderByPipe],
|
|
2134
|
+
}]
|
|
2135
|
+
}] });
|
|
2333
2136
|
|
|
2334
2137
|
class PipeLimitToPipe {
|
|
2335
2138
|
transform(data, limit = 5) {
|
|
@@ -2349,23 +2152,32 @@ class PipeLimitToPipe {
|
|
|
2349
2152
|
return null;
|
|
2350
2153
|
}
|
|
2351
2154
|
}
|
|
2352
|
-
PipeLimitToPipe
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2155
|
+
PipeLimitToPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2156
|
+
PipeLimitToPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToPipe, name: "pipeLimitTo" });
|
|
2157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToPipe, decorators: [{
|
|
2158
|
+
type: Pipe,
|
|
2159
|
+
args: [{
|
|
2160
|
+
name: 'pipeLimitTo',
|
|
2161
|
+
}]
|
|
2162
|
+
}] });
|
|
2357
2163
|
|
|
2358
2164
|
class PipeLimitToModule {
|
|
2359
2165
|
}
|
|
2360
|
-
PipeLimitToModule
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
]
|
|
2166
|
+
PipeLimitToModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2167
|
+
PipeLimitToModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToModule, declarations: [PipeLimitToPipe], imports: [CommonModule], exports: [PipeLimitToPipe] });
|
|
2168
|
+
PipeLimitToModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToModule, imports: [[
|
|
2169
|
+
CommonModule,
|
|
2170
|
+
]] });
|
|
2171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeLimitToModule, decorators: [{
|
|
2172
|
+
type: NgModule,
|
|
2173
|
+
args: [{
|
|
2174
|
+
declarations: [PipeLimitToPipe],
|
|
2175
|
+
imports: [
|
|
2176
|
+
CommonModule,
|
|
2177
|
+
],
|
|
2178
|
+
exports: [PipeLimitToPipe],
|
|
2179
|
+
}]
|
|
2180
|
+
}] });
|
|
2369
2181
|
|
|
2370
2182
|
class PipeNameTransformPipe {
|
|
2371
2183
|
transform(value) {
|
|
@@ -2385,23 +2197,32 @@ class PipeNameTransformPipe {
|
|
|
2385
2197
|
return 'Anonymous User';
|
|
2386
2198
|
}
|
|
2387
2199
|
}
|
|
2388
|
-
PipeNameTransformPipe
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2200
|
+
PipeNameTransformPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2201
|
+
PipeNameTransformPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformPipe, name: "pipeNameTransform" });
|
|
2202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformPipe, decorators: [{
|
|
2203
|
+
type: Pipe,
|
|
2204
|
+
args: [{
|
|
2205
|
+
name: 'pipeNameTransform',
|
|
2206
|
+
}]
|
|
2207
|
+
}] });
|
|
2393
2208
|
|
|
2394
2209
|
class PipeNameTransformModule {
|
|
2395
2210
|
}
|
|
2396
|
-
PipeNameTransformModule
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
]
|
|
2211
|
+
PipeNameTransformModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2212
|
+
PipeNameTransformModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformModule, declarations: [PipeNameTransformPipe], imports: [CommonModule], exports: [PipeNameTransformPipe] });
|
|
2213
|
+
PipeNameTransformModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformModule, imports: [[
|
|
2214
|
+
CommonModule,
|
|
2215
|
+
]] });
|
|
2216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeNameTransformModule, decorators: [{
|
|
2217
|
+
type: NgModule,
|
|
2218
|
+
args: [{
|
|
2219
|
+
declarations: [PipeNameTransformPipe],
|
|
2220
|
+
imports: [
|
|
2221
|
+
CommonModule,
|
|
2222
|
+
],
|
|
2223
|
+
exports: [PipeNameTransformPipe],
|
|
2224
|
+
}]
|
|
2225
|
+
}] });
|
|
2405
2226
|
|
|
2406
2227
|
class PipePartialContentPipe {
|
|
2407
2228
|
transform(value, keys) {
|
|
@@ -2414,23 +2235,32 @@ class PipePartialContentPipe {
|
|
|
2414
2235
|
return result;
|
|
2415
2236
|
}
|
|
2416
2237
|
}
|
|
2417
|
-
PipePartialContentPipe
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2238
|
+
PipePartialContentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2239
|
+
PipePartialContentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentPipe, name: "pipePartialContent" });
|
|
2240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentPipe, decorators: [{
|
|
2241
|
+
type: Pipe,
|
|
2242
|
+
args: [{
|
|
2243
|
+
name: 'pipePartialContent',
|
|
2244
|
+
}]
|
|
2245
|
+
}] });
|
|
2422
2246
|
|
|
2423
2247
|
class PipePartialContentModule {
|
|
2424
2248
|
}
|
|
2425
|
-
PipePartialContentModule
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
]
|
|
2249
|
+
PipePartialContentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2250
|
+
PipePartialContentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentModule, declarations: [PipePartialContentPipe], imports: [CommonModule], exports: [PipePartialContentPipe] });
|
|
2251
|
+
PipePartialContentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentModule, imports: [[
|
|
2252
|
+
CommonModule,
|
|
2253
|
+
]] });
|
|
2254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipePartialContentModule, decorators: [{
|
|
2255
|
+
type: NgModule,
|
|
2256
|
+
args: [{
|
|
2257
|
+
declarations: [PipePartialContentPipe],
|
|
2258
|
+
imports: [
|
|
2259
|
+
CommonModule,
|
|
2260
|
+
],
|
|
2261
|
+
exports: [PipePartialContentPipe],
|
|
2262
|
+
}]
|
|
2263
|
+
}] });
|
|
2434
2264
|
|
|
2435
2265
|
class PipeSafeSanitizerPipe {
|
|
2436
2266
|
constructor(sanitizer) {
|
|
@@ -2453,26 +2283,32 @@ class PipeSafeSanitizerPipe {
|
|
|
2453
2283
|
}
|
|
2454
2284
|
}
|
|
2455
2285
|
}
|
|
2456
|
-
PipeSafeSanitizerPipe
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
];
|
|
2286
|
+
PipeSafeSanitizerPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerPipe, deps: [{ token: i1$3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2287
|
+
PipeSafeSanitizerPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerPipe, name: "pipeSafeSanitizer" });
|
|
2288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerPipe, decorators: [{
|
|
2289
|
+
type: Pipe,
|
|
2290
|
+
args: [{
|
|
2291
|
+
name: 'pipeSafeSanitizer',
|
|
2292
|
+
}]
|
|
2293
|
+
}], ctorParameters: function () { return [{ type: i1$3.DomSanitizer }]; } });
|
|
2464
2294
|
|
|
2465
2295
|
class PipeSafeSanitizerModule {
|
|
2466
2296
|
}
|
|
2467
|
-
PipeSafeSanitizerModule
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
]
|
|
2297
|
+
PipeSafeSanitizerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2298
|
+
PipeSafeSanitizerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerModule, declarations: [PipeSafeSanitizerPipe], imports: [CommonModule], exports: [PipeSafeSanitizerPipe] });
|
|
2299
|
+
PipeSafeSanitizerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerModule, imports: [[
|
|
2300
|
+
CommonModule,
|
|
2301
|
+
]] });
|
|
2302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PipeSafeSanitizerModule, decorators: [{
|
|
2303
|
+
type: NgModule,
|
|
2304
|
+
args: [{
|
|
2305
|
+
declarations: [PipeSafeSanitizerPipe],
|
|
2306
|
+
imports: [
|
|
2307
|
+
CommonModule,
|
|
2308
|
+
],
|
|
2309
|
+
exports: [PipeSafeSanitizerPipe],
|
|
2310
|
+
}]
|
|
2311
|
+
}] });
|
|
2476
2312
|
|
|
2477
2313
|
class ExploreDetailResolve {
|
|
2478
2314
|
constructor(http, configSvc, utilitySvc) {
|
|
@@ -2534,17 +2370,14 @@ class ExploreDetailResolve {
|
|
|
2534
2370
|
return pageData;
|
|
2535
2371
|
}
|
|
2536
2372
|
}
|
|
2537
|
-
ExploreDetailResolve.ɵ
|
|
2538
|
-
ExploreDetailResolve
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
{ type: ConfigurationsService },
|
|
2546
|
-
{ type: UtilityService }
|
|
2547
|
-
];
|
|
2373
|
+
ExploreDetailResolve.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExploreDetailResolve, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2374
|
+
ExploreDetailResolve.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExploreDetailResolve, providedIn: 'root' });
|
|
2375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExploreDetailResolve, decorators: [{
|
|
2376
|
+
type: Injectable,
|
|
2377
|
+
args: [{
|
|
2378
|
+
providedIn: 'root',
|
|
2379
|
+
}]
|
|
2380
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: ConfigurationsService }, { type: UtilityService }]; } });
|
|
2548
2381
|
|
|
2549
2382
|
class MarketingOfferingResolve {
|
|
2550
2383
|
constructor(http) {
|
|
@@ -2567,15 +2400,14 @@ class MarketingOfferingResolve {
|
|
|
2567
2400
|
return pageData;
|
|
2568
2401
|
}
|
|
2569
2402
|
}
|
|
2570
|
-
MarketingOfferingResolve.ɵ
|
|
2571
|
-
MarketingOfferingResolve
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
];
|
|
2403
|
+
MarketingOfferingResolve.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MarketingOfferingResolve, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2404
|
+
MarketingOfferingResolve.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MarketingOfferingResolve, providedIn: 'root' });
|
|
2405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MarketingOfferingResolve, decorators: [{
|
|
2406
|
+
type: Injectable,
|
|
2407
|
+
args: [{
|
|
2408
|
+
providedIn: 'root',
|
|
2409
|
+
}]
|
|
2410
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
2579
2411
|
|
|
2580
2412
|
const JSON_MAP = {
|
|
2581
2413
|
pagename: 'lexid',
|
|
@@ -2644,17 +2476,238 @@ class PageResolve {
|
|
|
2644
2476
|
}));
|
|
2645
2477
|
}
|
|
2646
2478
|
}
|
|
2647
|
-
PageResolve.ɵ
|
|
2648
|
-
PageResolve
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
];
|
|
2479
|
+
PageResolve.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PageResolve, deps: [{ token: ConfigurationsService }, { token: i1$2.HttpClient }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2480
|
+
PageResolve.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PageResolve, providedIn: 'root' });
|
|
2481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PageResolve, decorators: [{
|
|
2482
|
+
type: Injectable,
|
|
2483
|
+
args: [{
|
|
2484
|
+
providedIn: 'root',
|
|
2485
|
+
}]
|
|
2486
|
+
}], ctorParameters: function () { return [{ type: ConfigurationsService }, { type: i1$2.HttpClient }, { type: undefined, decorators: [{
|
|
2487
|
+
type: Inject,
|
|
2488
|
+
args: [LOCALE_ID]
|
|
2489
|
+
}] }]; } });
|
|
2490
|
+
|
|
2491
|
+
class LoggerService {
|
|
2492
|
+
constructor(configSvc) {
|
|
2493
|
+
this.configSvc = configSvc;
|
|
2494
|
+
this.consoleError = console.error;
|
|
2495
|
+
this.consoleInfo = console.info;
|
|
2496
|
+
this.consoleLog = console.log;
|
|
2497
|
+
this.consoleWarn = console.warn;
|
|
2498
|
+
this.noConsole = () => { };
|
|
2499
|
+
}
|
|
2500
|
+
get error() {
|
|
2501
|
+
return this.consoleError;
|
|
2502
|
+
}
|
|
2503
|
+
get info() {
|
|
2504
|
+
return this.configSvc.isProduction ? this.noConsole : this.consoleInfo;
|
|
2505
|
+
}
|
|
2506
|
+
get log() {
|
|
2507
|
+
return this.configSvc.isProduction ? this.noConsole : this.consoleLog;
|
|
2508
|
+
}
|
|
2509
|
+
get warn() {
|
|
2510
|
+
return this.configSvc.isProduction ? this.noConsole : this.consoleWarn;
|
|
2511
|
+
}
|
|
2512
|
+
removeConsoleAccess() {
|
|
2513
|
+
if (this.configSvc.isProduction) {
|
|
2514
|
+
return;
|
|
2515
|
+
}
|
|
2516
|
+
const noConsoleWithError = () => {
|
|
2517
|
+
throw new Error('Console Functions Usage Are Not Allowed.');
|
|
2518
|
+
};
|
|
2519
|
+
console.warn = noConsoleWithError;
|
|
2520
|
+
console.info = noConsoleWithError;
|
|
2521
|
+
console.error = noConsoleWithError;
|
|
2522
|
+
}
|
|
2523
|
+
}
|
|
2524
|
+
LoggerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LoggerService, deps: [{ token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2525
|
+
LoggerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LoggerService, providedIn: 'root' });
|
|
2526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LoggerService, decorators: [{
|
|
2527
|
+
type: Injectable,
|
|
2528
|
+
args: [{
|
|
2529
|
+
providedIn: 'root',
|
|
2530
|
+
}]
|
|
2531
|
+
}], ctorParameters: function () { return [{ type: ConfigurationsService }]; } });
|
|
2532
|
+
|
|
2533
|
+
const msTokenExpiryDuration = 600;
|
|
2534
|
+
const storageKey = 'msLoginRequested';
|
|
2535
|
+
const storage = localStorage;
|
|
2536
|
+
const API_ENDPOINTS = {
|
|
2537
|
+
sharePointToken: '/apis/protected/v8/user/token',
|
|
2538
|
+
};
|
|
2539
|
+
class AuthMicrosoftService {
|
|
2540
|
+
constructor(loggerSvc, http) {
|
|
2541
|
+
this.loggerSvc = loggerSvc;
|
|
2542
|
+
this.http = http;
|
|
2543
|
+
this.msConfig = {
|
|
2544
|
+
clientId: '',
|
|
2545
|
+
tenant: '',
|
|
2546
|
+
defaultEmailId: '',
|
|
2547
|
+
validEmailExtensions: [],
|
|
2548
|
+
isConfigured: false,
|
|
2549
|
+
};
|
|
2550
|
+
this.emailUsed = null;
|
|
2551
|
+
this.code = null;
|
|
2552
|
+
this.msToken = {
|
|
2553
|
+
accessToken: '',
|
|
2554
|
+
expiresOn: '',
|
|
2555
|
+
resource: '',
|
|
2556
|
+
tokenType: '',
|
|
2557
|
+
};
|
|
2558
|
+
}
|
|
2559
|
+
get isLogoutRequired() {
|
|
2560
|
+
return Boolean(this.msConfig.isConfigured && this.msConfig.clientId && this.emailUsed);
|
|
2561
|
+
}
|
|
2562
|
+
get loginUrl() {
|
|
2563
|
+
if (this.msConfig.isConfigured && this.msConfig.clientId) {
|
|
2564
|
+
const base = 'https://login.windows.net/common/oauth2/authorize';
|
|
2565
|
+
const searchParam = new URLSearchParams({
|
|
2566
|
+
response_type: 'code',
|
|
2567
|
+
client_id: this.msConfig.clientId,
|
|
2568
|
+
redirect_uri: window.location.href,
|
|
2569
|
+
});
|
|
2570
|
+
const fragment = location.search.substring(1);
|
|
2571
|
+
if (fragment) {
|
|
2572
|
+
return `${base}?${searchParam.toString()}#${fragment}`;
|
|
2573
|
+
}
|
|
2574
|
+
return `${base}?${searchParam.toString()}`;
|
|
2575
|
+
}
|
|
2576
|
+
return null;
|
|
2577
|
+
}
|
|
2578
|
+
logoutUrl(redirectUrl) {
|
|
2579
|
+
if (this.isValidEmail(this.emailUsed || '')) {
|
|
2580
|
+
return `https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=${redirectUrl}`;
|
|
2581
|
+
}
|
|
2582
|
+
return redirectUrl;
|
|
2583
|
+
}
|
|
2584
|
+
init(config) {
|
|
2585
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2586
|
+
if (!config || !config.microsoft || !config.microsoft.isConfigured) {
|
|
2587
|
+
this.loggerSvc.warn('Empty/No Configuration passed, ignoring Microsoft Authentication');
|
|
2588
|
+
}
|
|
2589
|
+
this.msConfig = config.microsoft;
|
|
2590
|
+
const queryParams = new URLSearchParams(location.search);
|
|
2591
|
+
if (queryParams.has('code') && queryParams.has('session_state')) {
|
|
2592
|
+
this.code = queryParams.get('code');
|
|
2593
|
+
if (!this.code) {
|
|
2594
|
+
return;
|
|
2595
|
+
}
|
|
2596
|
+
let url = location.origin + location.pathname;
|
|
2597
|
+
yield this.exchangeTokenForCode(this.code, url);
|
|
2598
|
+
if (location.hash) {
|
|
2599
|
+
url += location.hash.substring(1);
|
|
2600
|
+
}
|
|
2601
|
+
history.replaceState(null, '', url);
|
|
2602
|
+
}
|
|
2603
|
+
});
|
|
2604
|
+
}
|
|
2605
|
+
login(email) {
|
|
2606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2607
|
+
if (!this.isValidEmail(email)) {
|
|
2608
|
+
this.loggerSvc.warn(`Microsoft Login is not allowed for your emailId (${email})`);
|
|
2609
|
+
return;
|
|
2610
|
+
}
|
|
2611
|
+
const loginUrl = this.loginUrl;
|
|
2612
|
+
if (loginUrl) {
|
|
2613
|
+
location.assign(loginUrl);
|
|
2614
|
+
}
|
|
2615
|
+
else {
|
|
2616
|
+
this.loggerSvc.warn('Unable to identify Office Login URL, Ignoring login request');
|
|
2617
|
+
}
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
getToken(email) {
|
|
2621
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2622
|
+
if (this.msToken &&
|
|
2623
|
+
this.isValid(this.msToken.accessToken, this.msToken.expiresOn) &&
|
|
2624
|
+
this.msToken.accessToken) {
|
|
2625
|
+
return this.msToken.accessToken;
|
|
2626
|
+
}
|
|
2627
|
+
if (this.isValidEmail(email)) {
|
|
2628
|
+
try {
|
|
2629
|
+
this.msToken = yield this.getTokenForEmail(email);
|
|
2630
|
+
if (this.msToken.accessToken) {
|
|
2631
|
+
this.emailUsed = email;
|
|
2632
|
+
return this.msToken.accessToken;
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
catch (error) {
|
|
2636
|
+
if (!this.code) {
|
|
2637
|
+
this.login(email);
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
if (this.msConfig.defaultEmailId && this.isValidEmail(this.msConfig.defaultEmailId)) {
|
|
2642
|
+
try {
|
|
2643
|
+
this.msToken = yield this.getTokenForEmail(this.msConfig.defaultEmailId);
|
|
2644
|
+
if (this.msToken.accessToken) {
|
|
2645
|
+
this.emailUsed = this.msConfig.defaultEmailId;
|
|
2646
|
+
return this.msToken.accessToken;
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
catch (error) { }
|
|
2650
|
+
}
|
|
2651
|
+
throw new Error('UNABLE TO FETCH MS AUTH TOKEN');
|
|
2652
|
+
});
|
|
2653
|
+
}
|
|
2654
|
+
loginForSSOEnabledEmbed(email) {
|
|
2655
|
+
if (!this.isValidEmail(email)) {
|
|
2656
|
+
this.loggerSvc.warn('SSO Login request Ignored. Invalid Email Id for SSO Enabled Content');
|
|
2657
|
+
}
|
|
2658
|
+
let msPrevTS = 0;
|
|
2659
|
+
try {
|
|
2660
|
+
msPrevTS = parseInt(storage.getItem(storageKey) || '0', 10);
|
|
2661
|
+
}
|
|
2662
|
+
catch (error) { }
|
|
2663
|
+
if (!msPrevTS || (msPrevTS && (Date.now() - msPrevTS) / 1000 > msTokenExpiryDuration)) {
|
|
2664
|
+
this.loggerSvc.info(`last login exceeded ${msTokenExpiryDuration} duration. Redirecting to O365 login`);
|
|
2665
|
+
storage.setItem(storageKey, Date.now().toString());
|
|
2666
|
+
this.login(email);
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
isValidEmail(email) {
|
|
2670
|
+
return this.msConfig.validEmailExtensions.some(ext => email.endsWith(ext));
|
|
2671
|
+
}
|
|
2672
|
+
isValid(accessToken, expiresOn) {
|
|
2673
|
+
if (accessToken && expiresOn) {
|
|
2674
|
+
return true;
|
|
2675
|
+
}
|
|
2676
|
+
return false;
|
|
2677
|
+
}
|
|
2678
|
+
exchangeTokenForCode(code, redirectUrl) {
|
|
2679
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2680
|
+
const response = yield this.http
|
|
2681
|
+
.get(`${API_ENDPOINTS}?code=${code}&redirectUrl=${redirectUrl}`)
|
|
2682
|
+
.toPromise();
|
|
2683
|
+
return this.getInstanceFromResponse(response);
|
|
2684
|
+
});
|
|
2685
|
+
}
|
|
2686
|
+
getTokenForEmail(email) {
|
|
2687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2688
|
+
const response = yield this.http
|
|
2689
|
+
.get(`${API_ENDPOINTS.sharePointToken}?email=${email}`)
|
|
2690
|
+
.toPromise();
|
|
2691
|
+
return this.getInstanceFromResponse(response);
|
|
2692
|
+
});
|
|
2693
|
+
}
|
|
2694
|
+
getInstanceFromResponse(token) {
|
|
2695
|
+
return {
|
|
2696
|
+
accessToken: token.accessToken,
|
|
2697
|
+
expiresOn: token.expiresOn,
|
|
2698
|
+
resource: token.resource,
|
|
2699
|
+
tokenType: token.tokenType,
|
|
2700
|
+
};
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
AuthMicrosoftService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AuthMicrosoftService, deps: [{ token: LoggerService }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2704
|
+
AuthMicrosoftService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AuthMicrosoftService, providedIn: 'root' });
|
|
2705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AuthMicrosoftService, decorators: [{
|
|
2706
|
+
type: Injectable,
|
|
2707
|
+
args: [{
|
|
2708
|
+
providedIn: 'root',
|
|
2709
|
+
}]
|
|
2710
|
+
}], ctorParameters: function () { return [{ type: LoggerService }, { type: i1$2.HttpClient }]; } });
|
|
2658
2711
|
|
|
2659
2712
|
var WsEvents;
|
|
2660
2713
|
(function (WsEvents) {
|
|
@@ -2957,19 +3010,19 @@ class EventService {
|
|
|
2957
3010
|
}
|
|
2958
3011
|
}
|
|
2959
3012
|
}
|
|
2960
|
-
EventService.ɵ
|
|
2961
|
-
EventService
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
]
|
|
3013
|
+
EventService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: EventService, deps: [{ token: UtilityService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3014
|
+
EventService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: EventService, providedIn: 'root' });
|
|
3015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: EventService, decorators: [{
|
|
3016
|
+
type: Injectable,
|
|
3017
|
+
args: [{
|
|
3018
|
+
providedIn: 'root',
|
|
3019
|
+
}]
|
|
3020
|
+
}], ctorParameters: function () { return [{ type: UtilityService }, { type: undefined, decorators: [{
|
|
3021
|
+
type: Inject,
|
|
3022
|
+
args: ['environment']
|
|
3023
|
+
}] }]; } });
|
|
2970
3024
|
|
|
2971
3025
|
const PROTECTED_SLAG_V8 = '/apis/protected/v8';
|
|
2972
|
-
const ɵ0 = (type, id) => `${PROTECTED_SLAG_V8}/content/collection/${type}/${id}`, ɵ1 = (contentId) => `${PROTECTED_SLAG_V8}/user/progress/${contentId}`;
|
|
2973
3026
|
const API_END_POINTS = {
|
|
2974
3027
|
CONTENT: `${PROTECTED_SLAG_V8}/content`,
|
|
2975
3028
|
AUTHORING_CONTENT: `/apis/authApi/hierarchy`,
|
|
@@ -2986,9 +3039,9 @@ const API_END_POINTS = {
|
|
|
2986
3039
|
USER_CONTINUE_LEARNING: `${PROTECTED_SLAG_V8}/user/history/continue`,
|
|
2987
3040
|
CONTENT_RATING: `${PROTECTED_SLAG_V8}/user/rating`,
|
|
2988
3041
|
CONTENT_RATING_V2: `${PROTECTED_SLAG_V8}/user/rating/content/average-ratingInfo`,
|
|
2989
|
-
COLLECTION_HIERARCHY:
|
|
3042
|
+
COLLECTION_HIERARCHY: (type, id) => `${PROTECTED_SLAG_V8}/content/collection/${type}/${id}`,
|
|
2990
3043
|
REGISTRATION_STATUS: `${PROTECTED_SLAG_V8}/admin/userRegistration/checkUserRegistrationContent`,
|
|
2991
|
-
MARK_AS_COMPLETE_META:
|
|
3044
|
+
MARK_AS_COMPLETE_META: (contentId) => `${PROTECTED_SLAG_V8}/user/progress/${contentId}`,
|
|
2992
3045
|
};
|
|
2993
3046
|
class WidgetContentService {
|
|
2994
3047
|
constructor(http, configSvc) {
|
|
@@ -3135,16 +3188,14 @@ class WidgetContentService {
|
|
|
3135
3188
|
return this.http.get(url);
|
|
3136
3189
|
}
|
|
3137
3190
|
}
|
|
3138
|
-
WidgetContentService.ɵ
|
|
3139
|
-
WidgetContentService
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
{ type: ConfigurationsService }
|
|
3147
|
-
];
|
|
3191
|
+
WidgetContentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: WidgetContentService, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3192
|
+
WidgetContentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: WidgetContentService, providedIn: 'root' });
|
|
3193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: WidgetContentService, decorators: [{
|
|
3194
|
+
type: Injectable,
|
|
3195
|
+
args: [{
|
|
3196
|
+
providedIn: 'root',
|
|
3197
|
+
}]
|
|
3198
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: ConfigurationsService }]; } });
|
|
3148
3199
|
|
|
3149
3200
|
class TelemetryService {
|
|
3150
3201
|
constructor(environment, configSvc, eventsSvc, logger) {
|
|
@@ -3561,119 +3612,26 @@ class TelemetryService {
|
|
|
3561
3612
|
return null;
|
|
3562
3613
|
}
|
|
3563
3614
|
}
|
|
3564
|
-
TelemetryService.ɵ
|
|
3565
|
-
TelemetryService
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
];
|
|
3615
|
+
TelemetryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TelemetryService, deps: [{ token: 'environment' }, { token: ConfigurationsService }, { token: EventService }, { token: LoggerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3616
|
+
TelemetryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TelemetryService, providedIn: 'root' });
|
|
3617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TelemetryService, decorators: [{
|
|
3618
|
+
type: Injectable,
|
|
3619
|
+
args: [{
|
|
3620
|
+
providedIn: 'root',
|
|
3621
|
+
}]
|
|
3622
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
3623
|
+
type: Inject,
|
|
3624
|
+
args: ['environment']
|
|
3625
|
+
}] }, { type: ConfigurationsService }, { type: EventService }, { type: LoggerService }]; } });
|
|
3576
3626
|
|
|
3577
3627
|
class SubapplicationRespondService {
|
|
3578
|
-
constructor(
|
|
3579
|
-
this.configSvc = configSvc;
|
|
3628
|
+
constructor(contentSvc, eventSvc, teleSvc) {
|
|
3580
3629
|
this.contentSvc = contentSvc;
|
|
3581
|
-
this.keyCloakSvc = keyCloakSvc;
|
|
3582
|
-
this.activatedRoute = activatedRoute;
|
|
3583
|
-
this.router = router;
|
|
3584
3630
|
this.eventSvc = eventSvc;
|
|
3585
3631
|
this.teleSvc = teleSvc;
|
|
3586
3632
|
this.subAppname = '';
|
|
3587
3633
|
this.continueLearningData = null;
|
|
3588
3634
|
this.loaded = false;
|
|
3589
|
-
this.changeContextrespond();
|
|
3590
|
-
this.configSvc.prefChangeNotifier.subscribe(() => {
|
|
3591
|
-
this.changeContextrespond();
|
|
3592
|
-
});
|
|
3593
|
-
}
|
|
3594
|
-
loadedRespond(contentWindow, applicationName, id) {
|
|
3595
|
-
if (id && this.activatedRoute.snapshot.queryParams.viewMode && this.activatedRoute.snapshot.queryParams.viewMode === 'RESUME') {
|
|
3596
|
-
this.continueLearningData = null;
|
|
3597
|
-
this.contentSvc.fetchContentHistory(id).subscribe(data => {
|
|
3598
|
-
this.continueLearningData = data.continueData;
|
|
3599
|
-
if (this.configSvc && this.configSvc.userProfile) {
|
|
3600
|
-
const firstName = this.configSvc.userProfile.userName ?
|
|
3601
|
-
this.configSvc.userProfile.userName.split(' ', 2)[0] : '';
|
|
3602
|
-
const lastName = this.configSvc.userProfile.userName ?
|
|
3603
|
-
this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
|
|
3604
|
-
const viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
|
|
3605
|
-
this.activatedRoute.snapshot.queryParams.viewMode : '';
|
|
3606
|
-
const token = this.keyCloakSvc.token;
|
|
3607
|
-
const response = {
|
|
3608
|
-
subApplicationName: applicationName,
|
|
3609
|
-
requestId: 'LOADED',
|
|
3610
|
-
parentContext: {
|
|
3611
|
-
domainName: window.location.host,
|
|
3612
|
-
url: this.router.url,
|
|
3613
|
-
rootOrg: this.configSvc.rootOrg,
|
|
3614
|
-
theme: this.configSvc.activeThemeObject ? Object.assign({ name: this.configSvc.activeThemeObject.themeName }, this.configSvc.activeThemeObject.color) : '',
|
|
3615
|
-
fontSize: this.configSvc.activeFontObject ? this.configSvc.activeFontObject.baseFontSize : '14px',
|
|
3616
|
-
locale: (this.configSvc.userPreference && this.configSvc.userPreference.selectedLocale) || 'en',
|
|
3617
|
-
darkMode: this.configSvc.isDarkMode,
|
|
3618
|
-
subApplicationStartMode: viewMode.toUpperCase(),
|
|
3619
|
-
user: {
|
|
3620
|
-
firstName,
|
|
3621
|
-
lastName,
|
|
3622
|
-
token,
|
|
3623
|
-
userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
|
|
3624
|
-
roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
|
|
3625
|
-
},
|
|
3626
|
-
heartbeatFrequency: '200',
|
|
3627
|
-
},
|
|
3628
|
-
data: this.continueLearningData.data ? {
|
|
3629
|
-
continueLearning: this.continueLearningData.data,
|
|
3630
|
-
} : null,
|
|
3631
|
-
};
|
|
3632
|
-
contentWindow.postMessage(response, '*');
|
|
3633
|
-
this.contentWindowinfo = contentWindow;
|
|
3634
|
-
this.loaded = true;
|
|
3635
|
-
this.subAppname = applicationName;
|
|
3636
|
-
}
|
|
3637
|
-
});
|
|
3638
|
-
}
|
|
3639
|
-
else {
|
|
3640
|
-
if (this.configSvc && this.configSvc.userProfile) {
|
|
3641
|
-
const firstName = this.configSvc.userProfile.userName ?
|
|
3642
|
-
this.configSvc.userProfile.userName.split(' ', 2)[0] : '';
|
|
3643
|
-
const lastName = this.configSvc.userProfile.userName ?
|
|
3644
|
-
this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
|
|
3645
|
-
const viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
|
|
3646
|
-
this.activatedRoute.snapshot.queryParams.viewMode : '';
|
|
3647
|
-
const token = this.keyCloakSvc.token;
|
|
3648
|
-
const response = {
|
|
3649
|
-
subApplicationName: applicationName,
|
|
3650
|
-
requestId: 'LOADED',
|
|
3651
|
-
parentContext: {
|
|
3652
|
-
domainName: window.location.host,
|
|
3653
|
-
url: this.router.url,
|
|
3654
|
-
rootOrg: this.configSvc.rootOrg,
|
|
3655
|
-
theme: this.configSvc.activeThemeObject ? Object.assign({ name: this.configSvc.activeThemeObject.themeName }, this.configSvc.activeThemeObject.color) : '',
|
|
3656
|
-
fontSize: this.configSvc.activeFontObject ? this.configSvc.activeFontObject.baseFontSize : '14px',
|
|
3657
|
-
locale: (this.configSvc.userPreference && this.configSvc.userPreference.selectedLocale) || 'en',
|
|
3658
|
-
darkMode: this.configSvc.isDarkMode,
|
|
3659
|
-
subApplicationStartMode: viewMode.toUpperCase(),
|
|
3660
|
-
user: {
|
|
3661
|
-
firstName,
|
|
3662
|
-
lastName,
|
|
3663
|
-
token,
|
|
3664
|
-
userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
|
|
3665
|
-
roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
|
|
3666
|
-
},
|
|
3667
|
-
heartbeatFrequency: '200',
|
|
3668
|
-
},
|
|
3669
|
-
data: null,
|
|
3670
|
-
};
|
|
3671
|
-
contentWindow.postMessage(response, '*');
|
|
3672
|
-
this.contentWindowinfo = contentWindow;
|
|
3673
|
-
this.loaded = true;
|
|
3674
|
-
this.subAppname = applicationName;
|
|
3675
|
-
}
|
|
3676
|
-
}
|
|
3677
3635
|
}
|
|
3678
3636
|
continueLearningRespond(id, continueLearning) {
|
|
3679
3637
|
this.contentSvc.saveContinueLearning({
|
|
@@ -3720,56 +3678,15 @@ class SubapplicationRespondService {
|
|
|
3720
3678
|
this.contentWindowinfo = null;
|
|
3721
3679
|
this.loaded = false;
|
|
3722
3680
|
}
|
|
3723
|
-
changeContextrespond() {
|
|
3724
|
-
if (this.loaded && this.contentWindowinfo && this.configSvc && this.configSvc.userProfile && this.subAppname) {
|
|
3725
|
-
const firstName = this.configSvc.userProfile.userName ?
|
|
3726
|
-
this.configSvc.userProfile.userName.split(' ', 2)[0] : '';
|
|
3727
|
-
const lastName = this.configSvc.userProfile.userName ?
|
|
3728
|
-
this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
|
|
3729
|
-
const viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
|
|
3730
|
-
this.activatedRoute.snapshot.queryParams.viewMode : '';
|
|
3731
|
-
const token = this.keyCloakSvc.token;
|
|
3732
|
-
const response = {
|
|
3733
|
-
subApplicationName: this.subAppname,
|
|
3734
|
-
requestId: 'CONTEXT_CHANGE',
|
|
3735
|
-
parentContext: {
|
|
3736
|
-
domainName: window.location.host,
|
|
3737
|
-
url: this.router.url,
|
|
3738
|
-
rootOrg: this.configSvc.rootOrg,
|
|
3739
|
-
theme: this.configSvc.activeThemeObject ? Object.assign({ name: this.configSvc.activeThemeObject.themeName }, this.configSvc.activeThemeObject.color) : '',
|
|
3740
|
-
fontSize: this.configSvc.activeFontObject ? this.configSvc.activeFontObject.baseFontSize : '14px',
|
|
3741
|
-
locale: (this.configSvc.userPreference && this.configSvc.userPreference.selectedLocale) || 'en',
|
|
3742
|
-
darkMode: this.configSvc.isDarkMode,
|
|
3743
|
-
subApplicationStartMode: viewMode.toUpperCase(),
|
|
3744
|
-
user: {
|
|
3745
|
-
firstName,
|
|
3746
|
-
lastName,
|
|
3747
|
-
token,
|
|
3748
|
-
userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
|
|
3749
|
-
roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
|
|
3750
|
-
},
|
|
3751
|
-
heartbeatFrequency: '200',
|
|
3752
|
-
},
|
|
3753
|
-
};
|
|
3754
|
-
this.contentWindowinfo.postMessage(response, '*');
|
|
3755
|
-
}
|
|
3756
|
-
}
|
|
3757
3681
|
}
|
|
3758
|
-
SubapplicationRespondService.ɵ
|
|
3759
|
-
SubapplicationRespondService
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
{ type: WidgetContentService },
|
|
3767
|
-
{ type: AuthKeycloakService },
|
|
3768
|
-
{ type: ActivatedRoute },
|
|
3769
|
-
{ type: Router },
|
|
3770
|
-
{ type: EventService },
|
|
3771
|
-
{ type: TelemetryService }
|
|
3772
|
-
];
|
|
3682
|
+
SubapplicationRespondService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SubapplicationRespondService, deps: [{ token: WidgetContentService }, { token: EventService }, { token: TelemetryService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3683
|
+
SubapplicationRespondService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SubapplicationRespondService, providedIn: 'root' });
|
|
3684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SubapplicationRespondService, decorators: [{
|
|
3685
|
+
type: Injectable,
|
|
3686
|
+
args: [{
|
|
3687
|
+
providedIn: 'root',
|
|
3688
|
+
}]
|
|
3689
|
+
}], ctorParameters: function () { return [{ type: WidgetContentService }, { type: EventService }, { type: TelemetryService }]; } });
|
|
3773
3690
|
|
|
3774
3691
|
const endpoints = {
|
|
3775
3692
|
userPref: '/apis/protected/v8/user/preference',
|
|
@@ -3837,16 +3754,14 @@ class UserPreferenceService {
|
|
|
3837
3754
|
});
|
|
3838
3755
|
}
|
|
3839
3756
|
}
|
|
3840
|
-
UserPreferenceService.ɵ
|
|
3841
|
-
UserPreferenceService
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
{ type: ConfigurationsService }
|
|
3849
|
-
];
|
|
3757
|
+
UserPreferenceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UserPreferenceService, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3758
|
+
UserPreferenceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UserPreferenceService, providedIn: 'root' });
|
|
3759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UserPreferenceService, decorators: [{
|
|
3760
|
+
type: Injectable,
|
|
3761
|
+
args: [{
|
|
3762
|
+
providedIn: 'root',
|
|
3763
|
+
}]
|
|
3764
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: ConfigurationsService }]; } });
|
|
3850
3765
|
|
|
3851
3766
|
var NsContent;
|
|
3852
3767
|
(function (NsContent) {
|
|
@@ -3955,5 +3870,5 @@ var NsContent;
|
|
|
3955
3870
|
})(ETagType = NsContent.ETagType || (NsContent.ETagType = {}));
|
|
3956
3871
|
})(NsContent || (NsContent = {}));
|
|
3957
3872
|
|
|
3958
|
-
export { AuthKeycloakService, AuthMicrosoftService, ClassChangeOnScrollDirective, ClassChangeOnScrollModule, ConfigurationsService, DefaultThumbnailDirective, DefaultThumbnailModule, EFeatures, EInstance, EventService, ExploreDetailResolve, HorizontalScrollerComponent, HorizontalScrollerModule, ImageCropComponent, ImageCropModule, ImageResponsiveDirective, ImageResponsiveModule, InViewPortDirective, InViewPortModule, LoggerService, LogoutComponent, LogoutModule, MarketingOfferingResolve, NavigationDirective, NavigationModule, NsContent, OrderByPipe, PageResolve, PermissionDirective, PermissionModule, PipeConciseDateRangeModule, PipeConciseDateRangePipe, PipeCountTransformModule, PipeCountTransformPipe, PipeDateConcatModule, PipeDateConcatPipe, PipeDurationTransformModule, PipeDurationTransformPipe, PipeFilterModule, PipeFilterPipe, PipeFilterSearchModule, PipeFilterSearchPipe, PipeHtmlTagRemovalModule, PipeHtmlTagRemovalPipe, PipeLimitToModule, PipeLimitToPipe, PipeListFilterModule, PipeListFilterPipe, PipeNameTransformModule, PipeNameTransformPipe, PipeOrderByModule, PipePartialContentModule, PipePartialContentPipe, PipeRelativeTimeModule, PipeRelativeTimePipe, PipeSafeSanitizerModule, PipeSafeSanitizerPipe, SubapplicationRespondService, TelemetryService, UserPreferenceService, UtilityService, ValueService, WidgetContentService, WsEvents, getStringifiedQueryParams
|
|
3873
|
+
export { AuthKeycloakService, AuthMicrosoftService, ClassChangeOnScrollDirective, ClassChangeOnScrollModule, ConfigurationsService, DefaultThumbnailDirective, DefaultThumbnailModule, EFeatures, EInstance, EventService, ExploreDetailResolve, HorizontalScrollerComponent, HorizontalScrollerModule, ImageCropComponent, ImageCropModule, ImageResponsiveDirective, ImageResponsiveModule, InViewPortDirective, InViewPortModule, LoggerService, LogoutComponent, LogoutModule, MarketingOfferingResolve, NavigationDirective, NavigationModule, NsContent, OrderByPipe, PageResolve, PermissionDirective, PermissionModule, PipeConciseDateRangeModule, PipeConciseDateRangePipe, PipeCountTransformModule, PipeCountTransformPipe, PipeDateConcatModule, PipeDateConcatPipe, PipeDurationTransformModule, PipeDurationTransformPipe, PipeFilterModule, PipeFilterPipe, PipeFilterSearchModule, PipeFilterSearchPipe, PipeHtmlTagRemovalModule, PipeHtmlTagRemovalPipe, PipeLimitToModule, PipeLimitToPipe, PipeListFilterModule, PipeListFilterPipe, PipeNameTransformModule, PipeNameTransformPipe, PipeOrderByModule, PipePartialContentModule, PipePartialContentPipe, PipeRelativeTimeModule, PipeRelativeTimePipe, PipeSafeSanitizerModule, PipeSafeSanitizerPipe, SubapplicationRespondService, TelemetryService, UserPreferenceService, UtilityService, ValueService, WidgetContentService, WsEvents, getStringifiedQueryParams };
|
|
3959
3874
|
//# sourceMappingURL=sunbird-cb-utils.js.map
|