@sunbird-cb/utils 1.0.2 → 1.0.6
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 +5253 -4901
- package/bundles/sunbird-cb-utils.umd.js.map +1 -1
- package/bundles/sunbird-cb-utils.umd.min.js +15 -1
- package/bundles/sunbird-cb-utils.umd.min.js.map +1 -1
- package/esm2015/lib/components/image-crop/image-crop.component.js +194 -194
- package/esm2015/lib/components/image-crop/image-crop.module.js +26 -26
- package/esm2015/lib/constants/features.enum.js +554 -554
- package/esm2015/lib/constants/instances.enum.js +4 -4
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +86 -86
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +14 -14
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.directive.js +37 -37
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.module.js +14 -14
- package/esm2015/lib/directives/image-responsive/image-responsive.directive.js +91 -91
- package/esm2015/lib/directives/image-responsive/image-responsive.module.js +14 -14
- package/esm2015/lib/directives/in-view-port/in-view-port.directive.js +67 -67
- package/esm2015/lib/directives/in-view-port/in-view-port.module.js +14 -14
- package/esm2015/lib/directives/navigation/navigation.directive.js +38 -38
- package/esm2015/lib/directives/navigation/navigation.module.js +14 -14
- package/esm2015/lib/directives/permission/permission.directive.js +10 -10
- package/esm2015/lib/directives/permission/permission.module.js +14 -14
- package/esm2015/lib/helpers/functions/getStringifiedQueryParams.js +8 -8
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +98 -98
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +18 -18
- package/esm2015/lib/helpers/logout/logout.component.js +55 -55
- package/esm2015/lib/helpers/logout/logout.module.js +17 -17
- package/esm2015/lib/models/contentRating.model.js +12 -12
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +12 -12
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +58 -58
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +14 -14
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +32 -32
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +14 -14
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +42 -42
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +14 -14
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +59 -59
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.module.js +14 -14
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.pipe.js +15 -15
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +14 -14
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +29 -29
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +14 -14
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +11 -11
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +14 -14
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +24 -24
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +14 -14
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +16 -16
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +14 -14
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +30 -30
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.module.js +14 -14
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +15 -15
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +14 -14
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +17 -17
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +14 -14
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +15 -15
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +14 -14
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +34 -34
- package/esm2015/lib/resolvers/explore-detail.resolver.js +88 -88
- package/esm2015/lib/resolvers/marketing-offering.resolve.js +39 -39
- package/esm2015/lib/resolvers/page.constant.js +3 -3
- package/esm2015/lib/resolvers/page.model.js +46 -46
- package/esm2015/lib/resolvers/page.resolver.js +89 -89
- package/esm2015/lib/resolvers/resolver.model.js +5 -5
- package/esm2015/lib/services/auth-keycloak.service.js +225 -225
- package/esm2015/lib/services/auth-microsoft.service.js +195 -195
- package/esm2015/lib/services/card-content.model.js +30 -30
- package/esm2015/lib/services/configurations.model.js +508 -490
- package/esm2015/lib/services/configurations.service.js +103 -101
- package/esm2015/lib/services/content-strip-multiple.model.js +74 -74
- package/esm2015/lib/services/event.model.js +223 -154
- package/esm2015/lib/services/event.service.js +106 -39
- package/esm2015/lib/services/logger.service.js +54 -54
- package/esm2015/lib/services/ms-office.model.js +7 -7
- package/esm2015/lib/services/subapplication-respond.service.js +224 -224
- package/esm2015/lib/services/telemetry.service.js +414 -278
- package/esm2015/lib/services/user-preference.model.js +28 -28
- package/esm2015/lib/services/user-preference.service.js +89 -89
- package/esm2015/lib/services/utility.service.js +145 -100
- package/esm2015/lib/services/value.service.js +30 -30
- package/esm2015/lib/services/widget-content.model.js +341 -341
- package/esm2015/lib/services/widget-content.service.js +191 -191
- package/esm2015/lib/services/widget-resolver.model.js +56 -56
- package/esm2015/lib/services/widget-search.model.js +125 -125
- package/esm2015/public-api.js +66 -66
- package/esm2015/sunbird-cb-utils.js +8 -8
- package/esm5/lib/components/image-crop/image-crop.component.js +199 -199
- package/esm5/lib/components/image-crop/image-crop.module.js +30 -30
- package/esm5/lib/constants/features.enum.js +554 -554
- package/esm5/lib/constants/instances.enum.js +4 -4
- package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +104 -104
- package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +18 -18
- package/esm5/lib/directives/default-thumbnail/default-thumbnail.directive.js +39 -39
- package/esm5/lib/directives/default-thumbnail/default-thumbnail.module.js +18 -18
- package/esm5/lib/directives/image-responsive/image-responsive.directive.js +94 -94
- package/esm5/lib/directives/image-responsive/image-responsive.module.js +18 -18
- package/esm5/lib/directives/in-view-port/in-view-port.directive.js +72 -72
- package/esm5/lib/directives/in-view-port/in-view-port.module.js +18 -18
- package/esm5/lib/directives/navigation/navigation.directive.js +40 -40
- package/esm5/lib/directives/navigation/navigation.module.js +18 -18
- package/esm5/lib/directives/permission/permission.directive.js +13 -13
- package/esm5/lib/directives/permission/permission.module.js +18 -18
- package/esm5/lib/helpers/functions/getStringifiedQueryParams.js +8 -8
- package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +102 -102
- package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +22 -22
- package/esm5/lib/helpers/logout/logout.component.js +61 -61
- package/esm5/lib/helpers/logout/logout.module.js +21 -21
- package/esm5/lib/models/contentRating.model.js +12 -12
- package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +16 -16
- package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +62 -62
- package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +18 -18
- package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +36 -36
- package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +18 -18
- package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +44 -44
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +18 -18
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +63 -63
- package/esm5/lib/pipes/pipe-filter/pipe-filter.module.js +18 -18
- package/esm5/lib/pipes/pipe-filter/pipe-filter.pipe.js +19 -19
- package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +18 -18
- package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +37 -37
- package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +18 -18
- package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +15 -15
- package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +18 -18
- package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +29 -29
- package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +18 -18
- package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +20 -20
- package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +18 -18
- package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +34 -34
- package/esm5/lib/pipes/pipe-order-by/pipe-order-by.module.js +18 -18
- package/esm5/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +17 -17
- package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +18 -18
- package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +33 -33
- package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +18 -18
- package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +19 -19
- package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +18 -18
- package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +37 -37
- package/esm5/lib/resolvers/explore-detail.resolver.js +92 -92
- package/esm5/lib/resolvers/marketing-offering.resolve.js +42 -42
- package/esm5/lib/resolvers/page.constant.js +3 -3
- package/esm5/lib/resolvers/page.model.js +46 -46
- package/esm5/lib/resolvers/page.resolver.js +97 -97
- package/esm5/lib/resolvers/resolver.model.js +5 -5
- package/esm5/lib/services/auth-keycloak.service.js +293 -293
- package/esm5/lib/services/auth-microsoft.service.js +250 -250
- package/esm5/lib/services/card-content.model.js +30 -30
- package/esm5/lib/services/configurations.model.js +508 -490
- package/esm5/lib/services/configurations.service.js +105 -103
- package/esm5/lib/services/content-strip-multiple.model.js +74 -74
- package/esm5/lib/services/event.model.js +223 -154
- package/esm5/lib/services/event.service.js +108 -41
- package/esm5/lib/services/logger.service.js +72 -72
- package/esm5/lib/services/ms-office.model.js +7 -7
- package/esm5/lib/services/subapplication-respond.service.js +229 -229
- package/esm5/lib/services/telemetry.service.js +446 -296
- package/esm5/lib/services/user-preference.model.js +28 -28
- package/esm5/lib/services/user-preference.service.js +108 -108
- package/esm5/lib/services/utility.service.js +178 -128
- package/esm5/lib/services/value.service.js +32 -32
- package/esm5/lib/services/widget-content.model.js +341 -341
- package/esm5/lib/services/widget-content.service.js +213 -213
- package/esm5/lib/services/widget-resolver.model.js +56 -56
- package/esm5/lib/services/widget-search.model.js +125 -125
- package/esm5/public-api.js +66 -66
- package/esm5/sunbird-cb-utils.js +8 -8
- package/fesm2015/sunbird-cb-utils.js +4834 -4502
- package/fesm2015/sunbird-cb-utils.js.map +1 -1
- package/fesm5/sunbird-cb-utils.js +5250 -4899
- package/fesm5/sunbird-cb-utils.js.map +1 -1
- package/lib/components/image-crop/image-crop.component.d.ts +56 -56
- package/lib/components/image-crop/image-crop.module.d.ts +2 -2
- package/lib/constants/features.enum.d.ts +553 -553
- package/lib/constants/instances.enum.d.ts +3 -3
- package/lib/constants/misc.constants.d.ts +2 -2
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +18 -18
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +2 -2
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +9 -9
- package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +2 -2
- package/lib/directives/image-responsive/image-responsive.directive.d.ts +17 -17
- package/lib/directives/image-responsive/image-responsive.module.d.ts +2 -2
- package/lib/directives/in-view-port/in-view-port.directive.d.ts +11 -11
- package/lib/directives/in-view-port/in-view-port.module.d.ts +2 -2
- package/lib/directives/navigation/navigation.directive.d.ts +9 -9
- package/lib/directives/navigation/navigation.module.d.ts +2 -2
- package/lib/directives/permission/permission.directive.d.ts +3 -3
- package/lib/directives/permission/permission.module.d.ts +2 -2
- package/lib/helpers/functions/getStringifiedQueryParams.d.ts +3 -3
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +18 -18
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +2 -2
- package/lib/helpers/logout/logout.component.d.ts +18 -18
- package/lib/helpers/logout/logout.module.d.ts +2 -2
- package/lib/models/contentRating.model.d.ts +9 -9
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +2 -2
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +10 -10
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +2 -2
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +4 -4
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +2 -2
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +13 -13
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +2 -2
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +5 -5
- package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +2 -2
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +4 -4
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +2 -2
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +4 -4
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +2 -2
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +4 -4
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +2 -2
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +4 -4
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +2 -2
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +4 -4
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +2 -2
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +10 -10
- package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +2 -2
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +9 -9
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +2 -2
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +4 -4
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +2 -2
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +4 -4
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +2 -2
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +7 -7
- package/lib/resolvers/explore-detail.resolver.d.ts +16 -16
- package/lib/resolvers/marketing-offering.resolve.d.ts +10 -10
- package/lib/resolvers/page.constant.d.ts +1 -1
- package/lib/resolvers/page.model.d.ts +40 -40
- package/lib/resolvers/page.resolver.d.ts +17 -17
- package/lib/resolvers/resolver.model.d.ts +4 -4
- package/lib/services/auth-keycloak.service.d.ts +27 -27
- package/lib/services/auth-microsoft.service.d.ts +30 -30
- package/lib/services/card-content.model.d.ts +29 -29
- package/lib/services/configurations.model.d.ts +487 -473
- package/lib/services/configurations.service.d.ts +49 -48
- package/lib/services/content-strip-multiple.model.d.ts +79 -79
- package/lib/services/event.model.d.ts +187 -129
- package/lib/services/event.service.d.ts +14 -8
- package/lib/services/logger.service.d.ts +15 -15
- package/lib/services/ms-office.model.d.ts +6 -6
- package/lib/services/subapplication-respond.service.d.ts +25 -25
- package/lib/services/telemetry.service.d.ts +40 -33
- package/lib/services/user-preference.model.d.ts +26 -26
- package/lib/services/user-preference.service.d.ts +11 -11
- package/lib/services/utility.service.d.ts +31 -23
- package/lib/services/value.service.d.ts +8 -8
- package/lib/services/widget-content.model.d.ts +314 -314
- package/lib/services/widget-content.service.d.ts +49 -49
- package/lib/services/widget-resolver.model.d.ts +48 -48
- package/lib/services/widget-search.model.d.ts +114 -114
- package/package.json +1 -1
- package/public-api.d.ts +66 -66
- package/sunbird-cb-utils.d.ts +8 -8
- package/sunbird-cb-utils.metadata.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { UtilityService } from '../services/utility.service';
|
|
5
|
-
import { ConfigurationsService } from '../services/configurations.service';
|
|
6
|
-
import { IResolveResponse } from './resolver.model';
|
|
7
|
-
export declare class ExploreDetailResolve implements Resolve<Observable<IResolveResponse<any>> | IResolveResponse<any>> {
|
|
8
|
-
private http;
|
|
9
|
-
private configSvc;
|
|
10
|
-
private utilitySvc;
|
|
11
|
-
private baseUrl;
|
|
12
|
-
isIntranetAllowedSettings: boolean;
|
|
13
|
-
constructor(http: HttpClient, configSvc: ConfigurationsService, utilitySvc: UtilityService);
|
|
14
|
-
resolve(route: ActivatedRouteSnapshot, _state: RouterStateSnapshot): Observable<IResolveResponse<any>>;
|
|
15
|
-
private transformPageData;
|
|
16
|
-
}
|
|
1
|
+
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { UtilityService } from '../services/utility.service';
|
|
5
|
+
import { ConfigurationsService } from '../services/configurations.service';
|
|
6
|
+
import { IResolveResponse } from './resolver.model';
|
|
7
|
+
export declare class ExploreDetailResolve implements Resolve<Observable<IResolveResponse<any>> | IResolveResponse<any>> {
|
|
8
|
+
private http;
|
|
9
|
+
private configSvc;
|
|
10
|
+
private utilitySvc;
|
|
11
|
+
private baseUrl;
|
|
12
|
+
isIntranetAllowedSettings: boolean;
|
|
13
|
+
constructor(http: HttpClient, configSvc: ConfigurationsService, utilitySvc: UtilityService);
|
|
14
|
+
resolve(route: ActivatedRouteSnapshot, _state: RouterStateSnapshot): Observable<IResolveResponse<any>>;
|
|
15
|
+
private transformPageData;
|
|
16
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { IResolveResponse } from './resolver.model';
|
|
5
|
-
export declare class MarketingOfferingResolve implements Resolve<Observable<IResolveResponse<any>> | IResolveResponse<any>> {
|
|
6
|
-
private http;
|
|
7
|
-
constructor(http: HttpClient);
|
|
8
|
-
resolve(route: ActivatedRouteSnapshot, _state: RouterStateSnapshot): Observable<IResolveResponse<any>>;
|
|
9
|
-
private transformPageData;
|
|
10
|
-
}
|
|
1
|
+
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { IResolveResponse } from './resolver.model';
|
|
5
|
+
export declare class MarketingOfferingResolve implements Resolve<Observable<IResolveResponse<any>> | IResolveResponse<any>> {
|
|
6
|
+
private http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
resolve(route: ActivatedRouteSnapshot, _state: RouterStateSnapshot): Observable<IResolveResponse<any>>;
|
|
9
|
+
private transformPageData;
|
|
10
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const JSON_MAP: any;
|
|
1
|
+
export declare const JSON_MAP: any;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { ThemePalette } from '@angular/material';
|
|
2
|
-
import { NsAppsConfig } from '../services/configurations.model';
|
|
3
|
-
import { NsWidgetResolver } from '../services/widget-resolver.model';
|
|
4
|
-
export declare namespace NsPage {
|
|
5
|
-
interface IPage {
|
|
6
|
-
contentType: string;
|
|
7
|
-
navigationBar: INavBar;
|
|
8
|
-
pageLayout: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
9
|
-
tourGuide?: string[][];
|
|
10
|
-
}
|
|
11
|
-
interface INavBar {
|
|
12
|
-
links: NsWidgetResolver.IRenderConfigWithTypedData<INavLink>[];
|
|
13
|
-
xsmallNonMenuLinks: NsWidgetResolver.IRenderConfigWithTypedData<INavLink>[];
|
|
14
|
-
pageBackLink: string;
|
|
15
|
-
pageTitle: string;
|
|
16
|
-
background: INavBackground;
|
|
17
|
-
}
|
|
18
|
-
interface INavBackground {
|
|
19
|
-
color: 'primary' | 'accent' | 'warn' | 'default';
|
|
20
|
-
styles: {
|
|
21
|
-
[id: string]: string;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
interface INavLink {
|
|
25
|
-
config: Pick<INavLinkConfig<'card-full' | 'card-small'>, 'type' | 'hideStatus'> | Pick<INavLinkConfig<'mat-icon-button' | 'mat-fab' | 'mat-mini-fab' | 'card-mini'>, 'type'> | Pick<INavLinkConfig<'mat-button' | 'mat-raised-button' | 'mat-flat-button' | 'mat-stroked-button'>, 'type' | 'hideIcon' | 'hideTitle'> | Pick<INavLinkConfig<'mat-menu-item'>, 'type'> | Pick<INavLinkConfig<'feature-item'>, 'type' | 'useShortName' | 'iconColor' | 'treatAsCard' | 'hidePin'>;
|
|
26
|
-
actionBtnId?: string;
|
|
27
|
-
actionBtn?: NsAppsConfig.IFeature;
|
|
28
|
-
actionBtnName?: string;
|
|
29
|
-
}
|
|
30
|
-
interface INavLinkConfig<T> {
|
|
31
|
-
type: T;
|
|
32
|
-
hideIcon?: boolean;
|
|
33
|
-
hideTitle?: boolean;
|
|
34
|
-
hideStatus?: boolean;
|
|
35
|
-
hidePin?: boolean;
|
|
36
|
-
iconColor?: ThemePalette;
|
|
37
|
-
treatAsCard?: boolean;
|
|
38
|
-
useShortName?: boolean;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
import { ThemePalette } from '@angular/material';
|
|
2
|
+
import { NsAppsConfig } from '../services/configurations.model';
|
|
3
|
+
import { NsWidgetResolver } from '../services/widget-resolver.model';
|
|
4
|
+
export declare namespace NsPage {
|
|
5
|
+
interface IPage {
|
|
6
|
+
contentType: string;
|
|
7
|
+
navigationBar: INavBar;
|
|
8
|
+
pageLayout: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
9
|
+
tourGuide?: string[][];
|
|
10
|
+
}
|
|
11
|
+
interface INavBar {
|
|
12
|
+
links: NsWidgetResolver.IRenderConfigWithTypedData<INavLink>[];
|
|
13
|
+
xsmallNonMenuLinks: NsWidgetResolver.IRenderConfigWithTypedData<INavLink>[];
|
|
14
|
+
pageBackLink: string;
|
|
15
|
+
pageTitle: string;
|
|
16
|
+
background: INavBackground;
|
|
17
|
+
}
|
|
18
|
+
interface INavBackground {
|
|
19
|
+
color: 'primary' | 'accent' | 'warn' | 'default';
|
|
20
|
+
styles: {
|
|
21
|
+
[id: string]: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
interface INavLink {
|
|
25
|
+
config: Pick<INavLinkConfig<'card-full' | 'card-small'>, 'type' | 'hideStatus'> | Pick<INavLinkConfig<'mat-icon-button' | 'mat-fab' | 'mat-mini-fab' | 'card-mini'>, 'type'> | Pick<INavLinkConfig<'mat-button' | 'mat-raised-button' | 'mat-flat-button' | 'mat-stroked-button'>, 'type' | 'hideIcon' | 'hideTitle'> | Pick<INavLinkConfig<'mat-menu-item'>, 'type'> | Pick<INavLinkConfig<'feature-item'>, 'type' | 'useShortName' | 'iconColor' | 'treatAsCard' | 'hidePin'>;
|
|
26
|
+
actionBtnId?: string;
|
|
27
|
+
actionBtn?: NsAppsConfig.IFeature;
|
|
28
|
+
actionBtnName?: string;
|
|
29
|
+
}
|
|
30
|
+
interface INavLinkConfig<T> {
|
|
31
|
+
type: T;
|
|
32
|
+
hideIcon?: boolean;
|
|
33
|
+
hideTitle?: boolean;
|
|
34
|
+
hideStatus?: boolean;
|
|
35
|
+
hidePin?: boolean;
|
|
36
|
+
iconColor?: ThemePalette;
|
|
37
|
+
treatAsCard?: boolean;
|
|
38
|
+
useShortName?: boolean;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { ConfigurationsService } from '../services/configurations.service';
|
|
5
|
-
import { NsPage } from './page.model';
|
|
6
|
-
import { IResolveResponse } from './resolver.model';
|
|
7
|
-
export declare class PageResolve implements Resolve<IResolveResponse<NsPage.IPage>> {
|
|
8
|
-
private configSvc;
|
|
9
|
-
private http;
|
|
10
|
-
private locale;
|
|
11
|
-
private baseUrl;
|
|
12
|
-
constructor(configSvc: ConfigurationsService, http: HttpClient, locale: string);
|
|
13
|
-
resolve(route: ActivatedRouteSnapshot): Observable<IResolveResponse<NsPage.IPage>> | IResolveResponse<NsPage.IPage>;
|
|
14
|
-
private setS3Cookie;
|
|
15
|
-
private getContent;
|
|
16
|
-
private getData;
|
|
17
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ConfigurationsService } from '../services/configurations.service';
|
|
5
|
+
import { NsPage } from './page.model';
|
|
6
|
+
import { IResolveResponse } from './resolver.model';
|
|
7
|
+
export declare class PageResolve implements Resolve<IResolveResponse<NsPage.IPage>> {
|
|
8
|
+
private configSvc;
|
|
9
|
+
private http;
|
|
10
|
+
private locale;
|
|
11
|
+
private baseUrl;
|
|
12
|
+
constructor(configSvc: ConfigurationsService, http: HttpClient, locale: string);
|
|
13
|
+
resolve(route: ActivatedRouteSnapshot): Observable<IResolveResponse<NsPage.IPage>> | IResolveResponse<NsPage.IPage>;
|
|
14
|
+
private setS3Cookie;
|
|
15
|
+
private getContent;
|
|
16
|
+
private getData;
|
|
17
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface IResolveResponse<T> {
|
|
2
|
-
data: T | null;
|
|
3
|
-
error: any | null;
|
|
4
|
-
}
|
|
1
|
+
export interface IResolveResponse<T> {
|
|
2
|
+
data: T | null;
|
|
3
|
+
error: any | null;
|
|
4
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { KeycloakService } from 'keycloak-angular';
|
|
2
|
-
import { AuthMicrosoftService } from './auth-microsoft.service';
|
|
3
|
-
import { ConfigurationsService } from './configurations.service';
|
|
4
|
-
export declare class AuthKeycloakService {
|
|
5
|
-
private configSvc;
|
|
6
|
-
private keycloakSvc;
|
|
7
|
-
private msAuthSvc;
|
|
8
|
-
private loginChangeSubject;
|
|
9
|
-
constructor(configSvc: ConfigurationsService, keycloakSvc: KeycloakService, msAuthSvc: AuthMicrosoftService);
|
|
10
|
-
readonly isLoggedIn$: import("rxjs").Observable<boolean>;
|
|
11
|
-
readonly isLoggedIn: Promise<boolean>;
|
|
12
|
-
readonly isAuthenticated: boolean | undefined;
|
|
13
|
-
readonly token: string | undefined;
|
|
14
|
-
readonly sessionId: string | undefined;
|
|
15
|
-
readonly userId: string | undefined;
|
|
16
|
-
readonly userEmail: string | undefined;
|
|
17
|
-
readonly userName: string | undefined;
|
|
18
|
-
initAuth(): Promise<boolean>;
|
|
19
|
-
login(idpHint?: 'E' | 'N' | 'S', redirectUrl?: string): Promise<void>;
|
|
20
|
-
register(redirectUrl?: string): Promise<void>;
|
|
21
|
-
logout(_redirectUrl?: string): Promise<void>;
|
|
22
|
-
private addKeycloakEventListener;
|
|
23
|
-
private setupGlobalAuthResponder;
|
|
24
|
-
private saveKeycloakConfig;
|
|
25
|
-
private getSavedKcConfig;
|
|
26
|
-
private readonly defaultRedirectUrl;
|
|
27
|
-
}
|
|
1
|
+
import { KeycloakService } from 'keycloak-angular';
|
|
2
|
+
import { AuthMicrosoftService } from './auth-microsoft.service';
|
|
3
|
+
import { ConfigurationsService } from './configurations.service';
|
|
4
|
+
export declare class AuthKeycloakService {
|
|
5
|
+
private configSvc;
|
|
6
|
+
private keycloakSvc;
|
|
7
|
+
private msAuthSvc;
|
|
8
|
+
private loginChangeSubject;
|
|
9
|
+
constructor(configSvc: ConfigurationsService, keycloakSvc: KeycloakService, msAuthSvc: AuthMicrosoftService);
|
|
10
|
+
readonly isLoggedIn$: import("rxjs").Observable<boolean>;
|
|
11
|
+
readonly isLoggedIn: Promise<boolean>;
|
|
12
|
+
readonly isAuthenticated: boolean | undefined;
|
|
13
|
+
readonly token: string | undefined;
|
|
14
|
+
readonly sessionId: string | undefined;
|
|
15
|
+
readonly userId: string | undefined;
|
|
16
|
+
readonly userEmail: string | undefined;
|
|
17
|
+
readonly userName: string | undefined;
|
|
18
|
+
initAuth(): Promise<boolean>;
|
|
19
|
+
login(idpHint?: 'E' | 'N' | 'S', redirectUrl?: string): Promise<void>;
|
|
20
|
+
register(redirectUrl?: string): Promise<void>;
|
|
21
|
+
logout(_redirectUrl?: string): Promise<void>;
|
|
22
|
+
private addKeycloakEventListener;
|
|
23
|
+
private setupGlobalAuthResponder;
|
|
24
|
+
private saveKeycloakConfig;
|
|
25
|
+
private getSavedKcConfig;
|
|
26
|
+
private readonly defaultRedirectUrl;
|
|
27
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { LoggerService } from './logger.service';
|
|
2
|
-
import { NsInstanceConfig } from './configurations.model';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { IWsMsTokenModelResponse } from './ms-office.model';
|
|
5
|
-
export declare class AuthMicrosoftService {
|
|
6
|
-
private loggerSvc;
|
|
7
|
-
private http;
|
|
8
|
-
private msConfig;
|
|
9
|
-
private emailUsed;
|
|
10
|
-
private code;
|
|
11
|
-
private msToken;
|
|
12
|
-
constructor(loggerSvc: LoggerService, http: HttpClient);
|
|
13
|
-
readonly isLogoutRequired: boolean;
|
|
14
|
-
readonly loginUrl: string | null;
|
|
15
|
-
logoutUrl(redirectUrl: string): string;
|
|
16
|
-
init(config: Pick<NsInstanceConfig.IConfig, 'microsoft'>): Promise<void>;
|
|
17
|
-
login(email: string): Promise<void>;
|
|
18
|
-
getToken(email: string): Promise<string>;
|
|
19
|
-
loginForSSOEnabledEmbed(email: string): void;
|
|
20
|
-
isValidEmail(email: string): boolean;
|
|
21
|
-
isValid(accessToken: string | undefined, expiresOn: string | undefined): boolean;
|
|
22
|
-
exchangeTokenForCode(code: string, redirectUrl: string): Promise<any>;
|
|
23
|
-
getTokenForEmail(email: string): Promise<any>;
|
|
24
|
-
getInstanceFromResponse(token: IWsMsTokenModelResponse): {
|
|
25
|
-
accessToken: string | undefined;
|
|
26
|
-
expiresOn: string | undefined;
|
|
27
|
-
resource: string | undefined;
|
|
28
|
-
tokenType: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
1
|
+
import { LoggerService } from './logger.service';
|
|
2
|
+
import { NsInstanceConfig } from './configurations.model';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { IWsMsTokenModelResponse } from './ms-office.model';
|
|
5
|
+
export declare class AuthMicrosoftService {
|
|
6
|
+
private loggerSvc;
|
|
7
|
+
private http;
|
|
8
|
+
private msConfig;
|
|
9
|
+
private emailUsed;
|
|
10
|
+
private code;
|
|
11
|
+
private msToken;
|
|
12
|
+
constructor(loggerSvc: LoggerService, http: HttpClient);
|
|
13
|
+
readonly isLogoutRequired: boolean;
|
|
14
|
+
readonly loginUrl: string | null;
|
|
15
|
+
logoutUrl(redirectUrl: string): string;
|
|
16
|
+
init(config: Pick<NsInstanceConfig.IConfig, 'microsoft'>): Promise<void>;
|
|
17
|
+
login(email: string): Promise<void>;
|
|
18
|
+
getToken(email: string): Promise<string>;
|
|
19
|
+
loginForSSOEnabledEmbed(email: string): void;
|
|
20
|
+
isValidEmail(email: string): boolean;
|
|
21
|
+
isValid(accessToken: string | undefined, expiresOn: string | undefined): boolean;
|
|
22
|
+
exchangeTokenForCode(code: string, redirectUrl: string): Promise<any>;
|
|
23
|
+
getTokenForEmail(email: string): Promise<any>;
|
|
24
|
+
getInstanceFromResponse(token: IWsMsTokenModelResponse): {
|
|
25
|
+
accessToken: string | undefined;
|
|
26
|
+
expiresOn: string | undefined;
|
|
27
|
+
resource: string | undefined;
|
|
28
|
+
tokenType: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { NsContent } from '../services/widget-content.model';
|
|
2
|
-
export declare namespace NsCardContent {
|
|
3
|
-
interface ICard {
|
|
4
|
-
content: NsContent.IContent;
|
|
5
|
-
cardSubType: TCardSubType;
|
|
6
|
-
context: {
|
|
7
|
-
pageSection: string;
|
|
8
|
-
position?: number;
|
|
9
|
-
};
|
|
10
|
-
intranetMode?: 'greyOut' | 'hide';
|
|
11
|
-
deletedMode?: 'greyOut' | 'hide';
|
|
12
|
-
likes?: number;
|
|
13
|
-
contentTags?: IContentTags;
|
|
14
|
-
}
|
|
15
|
-
interface IContentTags {
|
|
16
|
-
daysSpan?: number;
|
|
17
|
-
excludeContentType?: NsContent.EContentTypes[];
|
|
18
|
-
excludeMimeType?: string[];
|
|
19
|
-
tag: string;
|
|
20
|
-
criteriaField?: string;
|
|
21
|
-
}
|
|
22
|
-
type TCardSubType = 'standard' | 'minimal' | 'space-saving' | 'card-user-details' | 'basic-info' | 'basic-details' | 'card-description-back' | 'network-card';
|
|
23
|
-
enum EContentStatus {
|
|
24
|
-
LIVE = "Live",
|
|
25
|
-
EXPIRED = "Expired",
|
|
26
|
-
DELETED = "Deleted",
|
|
27
|
-
MARK_FOR_DELETION = "MarkedForDeletion"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
import { NsContent } from '../services/widget-content.model';
|
|
2
|
+
export declare namespace NsCardContent {
|
|
3
|
+
interface ICard {
|
|
4
|
+
content: NsContent.IContent;
|
|
5
|
+
cardSubType: TCardSubType;
|
|
6
|
+
context: {
|
|
7
|
+
pageSection: string;
|
|
8
|
+
position?: number;
|
|
9
|
+
};
|
|
10
|
+
intranetMode?: 'greyOut' | 'hide';
|
|
11
|
+
deletedMode?: 'greyOut' | 'hide';
|
|
12
|
+
likes?: number;
|
|
13
|
+
contentTags?: IContentTags;
|
|
14
|
+
}
|
|
15
|
+
interface IContentTags {
|
|
16
|
+
daysSpan?: number;
|
|
17
|
+
excludeContentType?: NsContent.EContentTypes[];
|
|
18
|
+
excludeMimeType?: string[];
|
|
19
|
+
tag: string;
|
|
20
|
+
criteriaField?: string;
|
|
21
|
+
}
|
|
22
|
+
type TCardSubType = 'standard' | 'minimal' | 'space-saving' | 'card-user-details' | 'basic-info' | 'basic-details' | 'card-description-back' | 'network-card';
|
|
23
|
+
enum EContentStatus {
|
|
24
|
+
LIVE = "Live",
|
|
25
|
+
EXPIRED = "Expired",
|
|
26
|
+
DELETED = "Deleted",
|
|
27
|
+
MARK_FOR_DELETION = "MarkedForDeletion"
|
|
28
|
+
}
|
|
29
|
+
}
|