@sunbird-cb/consumption 0.0.10 → 0.0.12
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-consumption.umd.js +1180 -272
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +2 -2
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/calender/calender.component.js +34 -0
- package/esm2015/lib/_common/calender/calender.module.js +21 -0
- package/esm2015/lib/_common/cards/card-user/card-user.component.js +5 -5
- package/esm2015/lib/_common/common-strip/common-strip.component.js +643 -0
- package/esm2015/lib/_common/common-strip/common-strip.model.js +216 -0
- package/esm2015/lib/_common/common-strip/common-strip.module.js +62 -0
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +3 -3
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +7 -5
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm2015/lib/_common/data-points/data-points.component.js +2 -2
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +63 -12
- package/esm2015/lib/_common/pills/pills.component.js +2 -2
- package/esm2015/lib/_common/sliders/sliders.component.js +3 -3
- package/esm2015/lib/_models/card-users.model.js +7 -5
- package/esm2015/lib/_services/common-methods.service.js +1 -1
- package/esm2015/lib/consumption.module.js +6 -2
- package/esm2015/public-api.js +3 -1
- package/esm2015/sunbird-cb-consumption.js +21 -19
- package/esm5/lib/_common/calender/calender.component.js +39 -0
- package/esm5/lib/_common/calender/calender.module.js +25 -0
- package/esm5/lib/_common/cards/card-user/card-user.component.js +5 -5
- package/esm5/lib/_common/common-strip/common-strip.component.js +757 -0
- package/esm5/lib/_common/common-strip/common-strip.model.js +216 -0
- package/esm5/lib/_common/common-strip/common-strip.module.js +66 -0
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +3 -3
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +7 -5
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm5/lib/_common/data-points/data-points.component.js +2 -2
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +60 -12
- package/esm5/lib/_common/pills/pills.component.js +2 -2
- package/esm5/lib/_common/sliders/sliders.component.js +3 -3
- package/esm5/lib/_models/card-users.model.js +7 -5
- package/esm5/lib/_services/common-methods.service.js +1 -1
- package/esm5/lib/consumption.module.js +6 -2
- package/esm5/public-api.js +3 -1
- package/esm5/sunbird-cb-consumption.js +21 -19
- package/fesm2015/sunbird-cb-consumption.js +974 -190
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +1157 -253
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/calender/calender.component.d.ts +6 -0
- package/lib/_common/calender/calender.module.d.ts +2 -0
- package/lib/_common/common-strip/common-strip.component.d.ts +104 -0
- package/lib/_common/common-strip/common-strip.model.d.ts +141 -0
- package/lib/_common/common-strip/common-strip.module.d.ts +2 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +8 -0
- package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +8 -6
- package/lib/_models/card-users.model.d.ts +5 -4
- package/lib/_services/common-methods.service.d.ts +3 -2
- package/package.json +2 -2
- package/public-api.d.ts +2 -0
- package/sunbird-cb-consumption.d.ts +19 -17
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@angular/material'), require('@sunbird-cb/resolver-v2'), require('@angular/common/http'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@sunbird-cb/consumption', ['exports', '@angular/core', '@angular/common', '@angular/router', 'rxjs', 'rxjs/operators', '@angular/material', '@sunbird-cb/resolver-v2', '@angular/common/http', '
|
|
4
|
-
(global = global || self, factory((global['sunbird-cb'] = global['sunbird-cb'] || {}, global['sunbird-cb'].consumption = {}), global.ng.core, global.ng.common, global.ng.router, global.rxjs, global.rxjs.operators, global
|
|
5
|
-
}(this, (function (exports, core, common, router, rxjs, operators, material, resolverV2, http,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@sunbird-cb/utils-v2'), require('@angular/material'), require('@sunbird-cb/resolver-v2'), require('@angular/common/http'), require('lodash'), require('moment'), require('@ngx-translate/core'), require('dayjs'), require('@ngx-translate/http-loader'), require('@angular/cdk/layout'), require('@angular/platform-browser'), require('hammerjs'), require('@angular/forms')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@sunbird-cb/consumption', ['exports', '@angular/core', '@angular/common', '@angular/router', 'rxjs', 'rxjs/operators', '@sunbird-cb/utils-v2', '@angular/material', '@sunbird-cb/resolver-v2', '@angular/common/http', 'lodash', 'moment', '@ngx-translate/core', 'dayjs', '@ngx-translate/http-loader', '@angular/cdk/layout', '@angular/platform-browser', 'hammerjs', '@angular/forms'], factory) :
|
|
4
|
+
(global = global || self, factory((global['sunbird-cb'] = global['sunbird-cb'] || {}, global['sunbird-cb'].consumption = {}), global.ng.core, global.ng.common, global.ng.router, global.rxjs, global.rxjs.operators, global['@sunbird-cb/utils-v2'], global.ng.material, global['@sunbird-cb/resolver-v2'], global.ng.common.http, global.lodash, global.moment, global.core$1, global.dayjs_, global.httpLoader, global.ng.cdk.layout, global.ng.platformBrowser, global.hammerjs, global.ng.forms));
|
|
5
|
+
}(this, (function (exports, core, common, router, rxjs, operators, utilsV2, material, resolverV2, http, lodash, moment$1, core$1, dayjs_, httpLoader, layout, platformBrowser, Hammer, forms) { 'use strict';
|
|
6
6
|
|
|
7
7
|
Hammer = Hammer && Hammer.hasOwnProperty('default') ? Hammer['default'] : Hammer;
|
|
8
8
|
|
|
@@ -274,8 +274,10 @@
|
|
|
274
274
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
275
275
|
*/
|
|
276
276
|
var HorizontalScrollerV2Component = /** @class */ (function () {
|
|
277
|
-
function HorizontalScrollerV2Component() {
|
|
277
|
+
function HorizontalScrollerV2Component(valueSvc) {
|
|
278
|
+
this.valueSvc = valueSvc;
|
|
278
279
|
this.loadStatus = 'fetching';
|
|
280
|
+
this.id = '';
|
|
279
281
|
this.onHover = false;
|
|
280
282
|
this.sliderConfig = {
|
|
281
283
|
showNavs: true,
|
|
@@ -290,6 +292,9 @@
|
|
|
290
292
|
this.cardSubType = 'standard';
|
|
291
293
|
this.bottomDotsArray = [];
|
|
292
294
|
this.scrollObserver = null;
|
|
295
|
+
this.isMobile = false;
|
|
296
|
+
this.defaultMenuSubscribe = null;
|
|
297
|
+
this.isLtMedium$ = this.valueSvc.isLtMedium$;
|
|
293
298
|
}
|
|
294
299
|
/**
|
|
295
300
|
* @return {?}
|
|
@@ -313,8 +318,20 @@
|
|
|
313
318
|
_this.updateNavigationBtnStatus((/** @type {?} */ (horizontalScrollElem_1
|
|
314
319
|
.nativeElement)));
|
|
315
320
|
}));
|
|
316
|
-
|
|
321
|
+
setTimeout((/**
|
|
322
|
+
* @return {?}
|
|
323
|
+
*/
|
|
324
|
+
function () {
|
|
325
|
+
_this.getBottomDotsArray();
|
|
326
|
+
}), 700);
|
|
317
327
|
}
|
|
328
|
+
this.defaultMenuSubscribe = this.isLtMedium$.subscribe((/**
|
|
329
|
+
* @param {?} isLtMedium
|
|
330
|
+
* @return {?}
|
|
331
|
+
*/
|
|
332
|
+
function (isLtMedium) {
|
|
333
|
+
_this.isMobile = isLtMedium;
|
|
334
|
+
}));
|
|
318
335
|
};
|
|
319
336
|
/**
|
|
320
337
|
* @return {?}
|
|
@@ -333,7 +350,12 @@
|
|
|
333
350
|
.nativeElement)));
|
|
334
351
|
}
|
|
335
352
|
}));
|
|
336
|
-
|
|
353
|
+
setTimeout((/**
|
|
354
|
+
* @return {?}
|
|
355
|
+
*/
|
|
356
|
+
function () {
|
|
357
|
+
_this.getBottomDotsArray();
|
|
358
|
+
}), 700);
|
|
337
359
|
};
|
|
338
360
|
/**
|
|
339
361
|
* @return {?}
|
|
@@ -345,6 +367,9 @@
|
|
|
345
367
|
if (this.scrollObserver) {
|
|
346
368
|
this.scrollObserver.unsubscribe();
|
|
347
369
|
}
|
|
370
|
+
if (this.defaultMenuSubscribe) {
|
|
371
|
+
this.defaultMenuSubscribe.unsubscribe();
|
|
372
|
+
}
|
|
348
373
|
};
|
|
349
374
|
/**
|
|
350
375
|
* @return {?}
|
|
@@ -400,7 +425,9 @@
|
|
|
400
425
|
this.enablePrev = true;
|
|
401
426
|
this.enableNext = true;
|
|
402
427
|
if (elem.scrollLeft === 0) {
|
|
403
|
-
this.
|
|
428
|
+
if (!this.sliderConfig.arrowsAlwaysOn) {
|
|
429
|
+
this.enablePrev = false;
|
|
430
|
+
}
|
|
404
431
|
this.activeNav = 0;
|
|
405
432
|
}
|
|
406
433
|
if (elem.scrollWidth === Math.round(elem.clientWidth + elem.scrollLeft)) {
|
|
@@ -408,7 +435,9 @@
|
|
|
408
435
|
this.loadNext.emit();
|
|
409
436
|
}
|
|
410
437
|
else {
|
|
411
|
-
this.
|
|
438
|
+
if (!this.sliderConfig.arrowsAlwaysOn) {
|
|
439
|
+
this.enableNext = false;
|
|
440
|
+
}
|
|
412
441
|
if (this.bottomDotsArray.length) {
|
|
413
442
|
this.activeNav = this.bottomDotsArray.length - 1;
|
|
414
443
|
}
|
|
@@ -477,10 +506,9 @@
|
|
|
477
506
|
((document.getElementsByClassName(this.cardSubType) &&
|
|
478
507
|
document.getElementsByClassName(this.cardSubType)[0] !== undefined)
|
|
479
508
|
? document.getElementsByClassName(this.cardSubType)[0].clientWidth : 245);
|
|
480
|
-
if (document.
|
|
481
|
-
document.getElementsByClassName('horizontal-scroll-container')[0]) {
|
|
509
|
+
if (document.getElementById("" + this.id)) {
|
|
482
510
|
/** @type {?} */
|
|
483
|
-
var scrollerWidth = document.
|
|
511
|
+
var scrollerWidth = document.getElementById("" + this.id).clientWidth;
|
|
484
512
|
/** @type {?} */
|
|
485
513
|
var totalCardsLength = cardWidth * this.widgetsLength;
|
|
486
514
|
if (totalCardsLength > scrollerWidth) {
|
|
@@ -512,14 +540,17 @@
|
|
|
512
540
|
HorizontalScrollerV2Component.decorators = [
|
|
513
541
|
{ type: core.Component, args: [{
|
|
514
542
|
selector: 'sb-uic-horizontal-scroller-v2',
|
|
515
|
-
template: "\n<section class=\"horizontal-scroll-container h-full\" [ngClass]=\"{'px-4': sliderConfig.showNavs, 'mt-5':sliderConfig.cerificateCardMargin}\">\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n
|
|
516
|
-
styles: [".horizontal-scroll-container{position:relative;width:100%;width:inherit}.nextBtn,.nextLoading,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;justify-content:center}.nextBtn,.prevBtn{border-radius:50%;background-color:#1b2133!important;color:#fff!important}.border-radius-xs{border-radius:8px!important}.prevBtn{left:0}.nextBtn{right:0}.nextLoading{padding:0;right:0}.horizontal-scroll-content{overflow-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0;height:0}.dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}.dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}"]
|
|
543
|
+
template: "\n<section class=\"horizontal-scroll-container h-full\" [id]=\"id\"\n[ngClass]=\"{'px-4': sliderConfig.showNavs && sliderConfig.showNavsSpacing, 'mt-5':sliderConfig.cerificateCardMargin}\">\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\n <ng-content></ng-content>\n </div>\n <div class=\"navigation {{isMobile? sliderConfig?.responsive?.arrowsPlacement : sliderConfig?.arrowsPlacement}}\">\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"back\" name=\"content-backward-button\" mat-mini-fab color=\"\" \n (click)=\"showPrev()\" class=\"prevBtn mat-elevation-z\" [hidden]=\"!enablePrev\"\n [ngClass]=\"{'prevBtnHover': onHover}\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"next\" name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\"\n color=\"\" class=\"nextBtn mat-elevation-z\" [ngClass]=\"{'nextBtnHover': onHover}\"\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </ng-container>\n </div>\n <!-- <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\n <mat-spinner></mat-spinner>\n </div> --> \n</section>\n\n<div class=\"dots-container {{isMobile? sliderConfig?.responsive?.dotsAlign : sliderConfig?.dotsAlign}}\" \n*ngIf=\"(isMobile && sliderConfig?.responsive?.showDots) || (!isMobile && sliderConfig?.showDots)\">\n <!-- <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" -->\n <span class=\"dot\" [ngClass]=\"{ active: j === activeNav }\" *ngFor=\"let slide of bottomDotsArray; let j = index\" (click)=\"slideTo(j)\"></span>\n</div>",
|
|
544
|
+
styles: [".horizontal-scroll-container{position:relative;width:100%;width:inherit}.nextBtn,.nextLoading,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;justify-content:center}.nextBtn,.prevBtn{border-radius:50%;background-color:#1b2133!important;color:#fff!important}.border-radius-xs{border-radius:8px!important}.prevBtn{left:0}.nextBtn{right:0}.nextLoading{padding:0;right:0}.navigation.bottom-right .prevBtn{left:unset;right:56px;bottom:-44px;top:unset}.navigation.bottom-right .nextBtn{left:unset;right:8px;bottom:-44px;top:unset}.navigation.bottom-center .prevBtn{left:calc(50% - 24px);right:unset;bottom:-44px;top:unset}.navigation.bottom-center .nextBtn{left:calc(50% + 24px);right:unset;bottom:-44px;top:unset}.navigation.bottom-left .prevBtn{left:8px;right:unset;bottom:-44px;top:unset}.navigation.bottom-left .nextBtn{left:62px;right:unset;bottom:-44px;top:unset}.navigation.middle-inline .prevBtn{left:30px}.navigation.middle-inline .nextBtn{right:30px}.horizontal-scroll-content{overflow-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0;height:0}.dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.dots-container.left{align-items:start;justify-content:start}.dots-container.right{align-items:end;justify-content:end}.dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}.dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}"]
|
|
517
545
|
}] }
|
|
518
546
|
];
|
|
519
547
|
/** @nocollapse */
|
|
520
|
-
HorizontalScrollerV2Component.ctorParameters = function () { return [
|
|
548
|
+
HorizontalScrollerV2Component.ctorParameters = function () { return [
|
|
549
|
+
{ type: utilsV2.ValueService }
|
|
550
|
+
]; };
|
|
521
551
|
HorizontalScrollerV2Component.propDecorators = {
|
|
522
552
|
loadStatus: [{ type: core.Input }],
|
|
553
|
+
id: [{ type: core.Input }],
|
|
523
554
|
onHover: [{ type: core.Input }],
|
|
524
555
|
sliderConfig: [{ type: core.Input }],
|
|
525
556
|
loadNext: [{ type: core.Output }],
|
|
@@ -534,6 +565,8 @@
|
|
|
534
565
|
/** @type {?} */
|
|
535
566
|
HorizontalScrollerV2Component.prototype.loadStatus;
|
|
536
567
|
/** @type {?} */
|
|
568
|
+
HorizontalScrollerV2Component.prototype.id;
|
|
569
|
+
/** @type {?} */
|
|
537
570
|
HorizontalScrollerV2Component.prototype.onHover;
|
|
538
571
|
/** @type {?} */
|
|
539
572
|
HorizontalScrollerV2Component.prototype.sliderConfig;
|
|
@@ -562,6 +595,20 @@
|
|
|
562
595
|
* @private
|
|
563
596
|
*/
|
|
564
597
|
HorizontalScrollerV2Component.prototype.scrollObserver;
|
|
598
|
+
/** @type {?} */
|
|
599
|
+
HorizontalScrollerV2Component.prototype.isMobile;
|
|
600
|
+
/**
|
|
601
|
+
* @type {?}
|
|
602
|
+
* @private
|
|
603
|
+
*/
|
|
604
|
+
HorizontalScrollerV2Component.prototype.defaultMenuSubscribe;
|
|
605
|
+
/** @type {?} */
|
|
606
|
+
HorizontalScrollerV2Component.prototype.isLtMedium$;
|
|
607
|
+
/**
|
|
608
|
+
* @type {?}
|
|
609
|
+
* @private
|
|
610
|
+
*/
|
|
611
|
+
HorizontalScrollerV2Component.prototype.valueSvc;
|
|
565
612
|
}
|
|
566
613
|
|
|
567
614
|
/**
|
|
@@ -5542,13 +5589,12 @@
|
|
|
5542
5589
|
strip.request.featureContent.request &&
|
|
5543
5590
|
strip.request.featureContent.request.filters) {
|
|
5544
5591
|
originalFilters = strip.request.featureContent.request.filters;
|
|
5545
|
-
strip.request.featureContent.request.filters = this.
|
|
5546
|
-
strip.request.featureContent.request.filters = this.getFiltersFromArray(strip.request.featureContent.request.filters);
|
|
5592
|
+
strip.request.featureContent.request.filters = this.postMethodFilters(strip.request.featureContent.request.filters);
|
|
5547
5593
|
}
|
|
5548
5594
|
_a.label = 1;
|
|
5549
5595
|
case 1:
|
|
5550
5596
|
_a.trys.push([1, 3, , 4]);
|
|
5551
|
-
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.featureContent
|
|
5597
|
+
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.featureContent, strip.request.apiUrl, calculateParentStatus)];
|
|
5552
5598
|
case 2:
|
|
5553
5599
|
response = _a.sent();
|
|
5554
5600
|
// console.log('calling after - response, ', response)
|
|
@@ -5559,14 +5605,17 @@
|
|
|
5559
5605
|
}
|
|
5560
5606
|
else {
|
|
5561
5607
|
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5608
|
+
this.emptyResponse.emit(true);
|
|
5562
5609
|
}
|
|
5563
5610
|
}
|
|
5564
5611
|
else {
|
|
5565
5612
|
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5613
|
+
this.emptyResponse.emit(true);
|
|
5566
5614
|
}
|
|
5567
5615
|
return [3 /*break*/, 4];
|
|
5568
5616
|
case 3:
|
|
5569
5617
|
error_6 = _a.sent();
|
|
5618
|
+
this.emptyResponse.emit(true);
|
|
5570
5619
|
return [3 /*break*/, 4];
|
|
5571
5620
|
case 4: return [2 /*return*/];
|
|
5572
5621
|
}
|
|
@@ -5655,7 +5704,7 @@
|
|
|
5655
5704
|
ContentStripWithTabsLibComponent.decorators = [
|
|
5656
5705
|
{ type: core.Component, args: [{
|
|
5657
5706
|
selector: 'sb-uic-content-strip-with-tabs',
|
|
5658
|
-
template: "<ng-container *ngIf=\"!contentAvailable; else otherTemplate\"></ng-container>\n<ng-template #otherTemplate>\n <!-- <div *ngIf=\"showParentLoader\" class=\"text-center my-2\">\n <mat-spinner class=\"inline-block\"></mat-spinner>\n </div> -->\n <ng-container *ngIf=\"showParentError\" [sbUiResolverWidget]=\"widgetData.errorWidget\"></ng-container>\n <ng-container *ngIf=\"showParentNoData\" [sbUiResolverWidget]=\"widgetData.noDataWidget\"></ng-container>\n <ng-container *ngFor=\"let key of stripsKeyOrder; let i = index; trackBy: identify\">\n <ng-container *ngIf=\"isStripShowing(stripsResultDataMap[key])\">\n <a name=\"{{stripsResultDataMap[key]?.stripTitle}}\" [class]=\"key\">\n <div *ngIf=\"stripsResultDataMap && (getLength(stripsResultDataMap[key]) ||\n stripsResultDataMap[key]?.showOnNoData ||\n stripsResultDataMap[key]?.showOnLoader ||\n stripsResultDataMap[key]?.showOnError)\n \" [ngClass]=\"\n !widgetData?.isChannelStrip ? 'xs:px-8 sx:px-10ss' : i > 0 ? 'mt-12' : ''\n \" [id]=\"key\" [ngClass]=\"!widgetData?.isChannelStrip ? margin-bottom-custom : margin-bottom-xs\">\n <div [ngClass]=\"{ pad: stripsResultDataMap[key]?.stripBackground }\"\n [ngStyle]=\"{ 'background-color': stripsResultDataMap[key]?.stripBackground }\">\n <div class=\"flex flex-col pl-4 pr-4 md:pr-0 md:pl-0 \" [ngClass]=\"\n !widgetData?.isChannelStrip\n ? ''\n : stripsResultDataMap[key]?.stripTitle\n ? 'mb-8'\n : ''\n \">\n <div class=\"flex flex-1 items-center\">\n <p class=\"mat-subheading-1 margin-remove inline-block \" *ngIf=\"stripsResultDataMap[key]?.stripTitle\">\n <span class=\"capitalize\" *ngIf=\"stripsResultDataMap[key]?.disableTranslate\">\n {{stripsResultDataMap[key]?.stripTitle}}\n </span>\n <span *ngIf=\"!stripsResultDataMap[key]?.disableTranslate\">\n {{ translateLabels(stripsResultDataMap[key]?.stripTitle, 'home') }}\n </span>\n </p>\n\n <button *ngIf=\"stripsResultDataMap[key]?.stripInfo?.icon\" type=\"button\" mat-icon-button\n (click)=\"toggleInfo(stripsResultDataMap[key])\" i18n-matTooltip matTooltip=\"info\"\n class=\"margin-left-xs\">\n <mat-icon>{{ stripsResultDataMap[key]?.stripInfo?.icon.icon }}</mat-icon>\n </button>\n <a *ngIf=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [routerLink]=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [queryParams]=\"stripsResultDataMap[key]?.stripTitleLink?.link?.queryParams\">\n <mat-icon class=\"ws-mat-primary-primary-text ws-mat-default-text\" [color]=\"'accent'\">{{\n stripsResultDataMap[key]?.stripTitleLink?.icon }}</mat-icon>\n </a>\n <span class=\"spacer\"></span>\n <!-- viewAll start-->\n <div *ngIf=\"checkCondition(widgetData , stripsResultDataMap[key])\"\n class=\"ml-4 view-more ws-mat-default-text\">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1\" [routerLink]=\"stripsResultDataMap[key]?.viewMoreUrl?.path\"\n [queryParams]=\"stripsResultDataMap[key]?.viewMoreUrl?.queryParams\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n <!-- viewAll end-->\n </div>\n <button mat-icon-button (click)=\"setHiddenForStrip(key)\" *ngIf=\"stripsResultDataMap[key]?.canHideStrip\">\n <mat-icon>close</mat-icon>\n </button>\n <mat-icon class=\"cursor-pointer\" *ngIf=\"stripsResultDataMap[key]?.mode === 'accordion' && isMobile\"\n (click)=\"showAccordionData = !showAccordionData\">{{ showAccordionData ? 'expand_less' : 'expand_more' }}\n </mat-icon>\n </div>\n\n <div class=\"mb-4\" *ngIf=\"checkVisible(stripsResultDataMap[key])\">\n <ng-container [sbUiResolverWidget]=\"getdata(stripsResultDataMap[key])\">\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnNoData\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.noDataWidget\"></ng-container>\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnError\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.errorWidget\"></ng-container>\n <!-- IF no errors then proceed to show tabs or non tabs strip -->\n <ng-container *ngIf=\"!stripsResultDataMap[key]?.showOnNoData && !stripsResultDataMap[key]?.showOnError\">\n <ng-container *ngIf=\"stripsResultDataMap[key].tabs && stripsResultDataMap[key].tabs.length\">\n <mat-tab-group animationDuration=\"0ms\" [selectedIndex]=\"getSelectedIndex(stripsResultDataMap[key], key)\"\n class=\"mat-tab-labels w-full strips-tabgroup\" dynamicHeight\n (selectedTabChange)=\"tabClicked($event, stripsResultDataMap[key], key)\">\n <mat-tab label=\"{{tab?.label}}\" *ngFor=\"let tab of stripsResultDataMap[key].tabs; let last = last;\">\n <ng-template mat-tab-label>\n <span>{{ translateLabels(tab?.label, 'home') }} </span>\n <span *ngIf=\"tab?.showTabDataCount && tab?.widgets?.length\">({{tab?.widgets?.length}})</span>\n </ng-template>\n <div>\n <!-- <ng-container [ngTemplateOutlet]=\"loader\" *ngIf=\"stripsResultDataMap[key]?.showOnLoader\">\n </ng-container> -->\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab.fetchTabStatus\"\n class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div *ngIf=\"((tab?.fetchTabStatus && tab?.fetchTabStatus === 'done') &&\n (!tab?.widgets || !tab?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.value === 'inprogress'; else msgTemp\">\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.svg\">\n <div class=\"mat-subheading-1 text-center info-content\">{{ 'contentstripmultiple.getReadyForLearningAdventure' | translate }} -\n <a class=\"click-here\" [routerLink]=\"'/page/learn'\">{{ 'contentstripmultiple.clickHere' | translate }}</a> {{ 'contentstripmultiple.toEnrollNextCourse' | translate }}</div>\n </div>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.png\">\n <div class=\"mat-subheading-1 text-center\">{{ translateLabels(tab.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n <ng-container *ngIf=\"(tab?.fetchTabStatus === 'done' || tab?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.tabLoading\">\n\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.widgets?.length\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.widgets| slice:0:(tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </ng-container>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n <ng-container *ngIf=\"!stripsResultDataMap[key].tabs || !stripsResultDataMap[key].tabs.length\">\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader\" class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div class=\"\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\" [widgetsLength]=\"stripsResultDataMap[key]?.widgets?.length\" [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.widgets| slice:0:(stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <!-- <ng-container *ngIf=\"widget.widgetData.context.pageSection === 'continueLearning' \"> -->\n <!-- <ng-container *ngIf=\"widget.widgetData.content.completionPercentage !== 100\"\n [sbUiResolverWidget]=\"widget\"></ng-container> -->\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n <!-- </ng-container> -->\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
|
|
5707
|
+
template: "<ng-container *ngIf=\"!contentAvailable; else otherTemplate\"></ng-container>\n<ng-template #otherTemplate>\n <!-- <div *ngIf=\"showParentLoader\" class=\"text-center my-2\">\n <mat-spinner class=\"inline-block\"></mat-spinner>\n </div> -->\n <ng-container *ngIf=\"showParentError\" [sbUiResolverWidget]=\"widgetData.errorWidget\"></ng-container>\n <ng-container *ngIf=\"showParentNoData\" [sbUiResolverWidget]=\"widgetData.noDataWidget\"></ng-container>\n <ng-container *ngFor=\"let key of stripsKeyOrder; let i = index; trackBy: identify\">\n <ng-container *ngIf=\"isStripShowing(stripsResultDataMap[key])\">\n <a name=\"{{stripsResultDataMap[key]?.stripTitle}}\" [class]=\"key\">\n <div *ngIf=\"stripsResultDataMap && (getLength(stripsResultDataMap[key]) ||\n stripsResultDataMap[key]?.showOnNoData ||\n stripsResultDataMap[key]?.showOnLoader ||\n stripsResultDataMap[key]?.showOnError)\n \" [ngClass]=\"\n !widgetData?.isChannelStrip ? 'xs:px-8 sx:px-10ss' : i > 0 ? 'mt-12' : ''\n \" [id]=\"key\" [ngClass]=\"!widgetData?.isChannelStrip ? margin-bottom-custom : margin-bottom-xs\">\n <div [ngClass]=\"{ pad: stripsResultDataMap[key]?.stripBackground }\"\n [ngStyle]=\"{ 'background-color': stripsResultDataMap[key]?.stripBackground }\">\n <div class=\"flex flex-col pl-4 pr-4 md:pr-0 md:pl-0 \" [ngClass]=\"\n !widgetData?.isChannelStrip\n ? ''\n : stripsResultDataMap[key]?.stripTitle\n ? 'mb-8'\n : ''\n \">\n <div class=\"flex flex-1 items-center\">\n <p class=\"mat-subheading-1 margin-remove inline-block \" *ngIf=\"stripsResultDataMap[key]?.stripTitle\">\n <span class=\"capitalize\" *ngIf=\"stripsResultDataMap[key]?.disableTranslate\">\n {{stripsResultDataMap[key]?.stripTitle}}\n </span>\n <span *ngIf=\"!stripsResultDataMap[key]?.disableTranslate\">\n {{ translateLabels(stripsResultDataMap[key]?.stripTitle, 'home') }}\n </span>\n </p>\n\n <button *ngIf=\"stripsResultDataMap[key]?.stripInfo?.icon\" type=\"button\" mat-icon-button\n (click)=\"toggleInfo(stripsResultDataMap[key])\" i18n-matTooltip matTooltip=\"info\"\n class=\"margin-left-xs\">\n <mat-icon>{{ stripsResultDataMap[key]?.stripInfo?.icon.icon }}</mat-icon>\n </button>\n <a *ngIf=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [routerLink]=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [queryParams]=\"stripsResultDataMap[key]?.stripTitleLink?.link?.queryParams\">\n <mat-icon class=\"ws-mat-primary-primary-text ws-mat-default-text\" [color]=\"'accent'\">{{\n stripsResultDataMap[key]?.stripTitleLink?.icon }}</mat-icon>\n </a>\n <span class=\"spacer\"></span>\n <!-- viewAll start-->\n <div *ngIf=\"checkCondition(widgetData , stripsResultDataMap[key])\"\n class=\"ml-4 view-more ws-mat-default-text\">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1\" [routerLink]=\"stripsResultDataMap[key]?.viewMoreUrl?.path\"\n [queryParams]=\"stripsResultDataMap[key]?.viewMoreUrl?.queryParams\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n <!-- viewAll end-->\n </div>\n <button mat-icon-button (click)=\"setHiddenForStrip(key)\" *ngIf=\"stripsResultDataMap[key]?.canHideStrip\">\n <mat-icon>close</mat-icon>\n </button>\n <mat-icon class=\"cursor-pointer\" *ngIf=\"stripsResultDataMap[key]?.mode === 'accordion' && isMobile\"\n (click)=\"showAccordionData = !showAccordionData\">{{ showAccordionData ? 'expand_less' : 'expand_more' }}\n </mat-icon>\n </div>\n\n <div class=\"mb-4\" *ngIf=\"checkVisible(stripsResultDataMap[key])\">\n <ng-container [sbUiResolverWidget]=\"getdata(stripsResultDataMap[key])\">\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnNoData\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.noDataWidget\"></ng-container>\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnError\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.errorWidget\"></ng-container>\n <!-- IF no errors then proceed to show tabs or non tabs strip -->\n <ng-container *ngIf=\"!stripsResultDataMap[key]?.showOnNoData && !stripsResultDataMap[key]?.showOnError\">\n <ng-container *ngIf=\"stripsResultDataMap[key].tabs && stripsResultDataMap[key].tabs.length\">\n <mat-tab-group animationDuration=\"0ms\" [selectedIndex]=\"getSelectedIndex(stripsResultDataMap[key], key)\"\n class=\"mat-tab-labels w-full strips-tabgroup\" dynamicHeight\n (selectedTabChange)=\"tabClicked($event, stripsResultDataMap[key], key)\">\n <mat-tab label=\"{{tab?.label}}\" *ngFor=\"let tab of stripsResultDataMap[key].tabs; let last = last;\">\n <ng-template mat-tab-label>\n <span>{{ translateLabels(tab?.label, 'home') }} </span>\n <span *ngIf=\"tab?.showTabDataCount && tab?.widgets?.length\">({{tab?.widgets?.length}})</span>\n </ng-template>\n <div>\n <!-- <ng-container [ngTemplateOutlet]=\"loader\" *ngIf=\"stripsResultDataMap[key]?.showOnLoader\">\n </ng-container> -->\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab.fetchTabStatus\"\n class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [id]=\"key+'-scroller'\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div *ngIf=\"((tab?.fetchTabStatus && tab?.fetchTabStatus === 'done') &&\n (!tab?.widgets || !tab?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.value === 'inprogress'; else msgTemp\">\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.svg\">\n <div class=\"mat-subheading-1 text-center info-content\">{{ 'contentstripmultiple.getReadyForLearningAdventure' | translate }} -\n <a class=\"click-here\" [routerLink]=\"'/page/learn'\">{{ 'contentstripmultiple.clickHere' | translate }}</a> {{ 'contentstripmultiple.toEnrollNextCourse' | translate }}</div>\n </div>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.png\">\n <div class=\"mat-subheading-1 text-center\">{{ translateLabels(tab.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n <ng-container *ngIf=\"(tab?.fetchTabStatus === 'done' || tab?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.tabLoading\">\n\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.widgets?.length\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.widgets| slice:0:(tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </ng-container>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n <ng-container *ngIf=\"!stripsResultDataMap[key].tabs || !stripsResultDataMap[key].tabs.length\">\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader\" class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div class=\"\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\" [widgetsLength]=\"stripsResultDataMap[key]?.widgets?.length\" [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.widgets| slice:0:(stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <!-- <ng-container *ngIf=\"widget.widgetData.context.pageSection === 'continueLearning' \"> -->\n <!-- <ng-container *ngIf=\"widget.widgetData.content.completionPercentage !== 100\"\n [sbUiResolverWidget]=\"widget\"></ng-container> -->\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n <!-- </ng-container> -->\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
|
|
5659
5708
|
styles: [".view-more{display:flex;align-items:center;text-align:center;height:40px;justify-content:center}.view-more .icon{font-size:24px;width:24px;height:24px;border:1px solid;border-radius:50%;padding:8px;margin-bottom:8px}.margin-bottom-custom{margin-bottom:60px}.view-more:hover{background-color:#dcdfe5}::ng-deep.strips-tabgroup .mat-tab-header{border-bottom:2px solid rgba(0,0,0,.12)}::ng-deep.strips-tabgroup .mat-tab-body{padding:20px 0!important;box-sizing:border-box;overflow-y:initial!important}::ng-deep.strips-tabgroup .mat-tab-body-wrapper{overflow:inherit!important}::ng-deep.strips-tabgroup .mat-tab-label{border-bottom:0 solid rgba(0,0,0,.1);margin-right:0;opacity:1}::ng-deep.strips-tabgroup .mat-tab-label .mat-tab-label-content{text-transform:inherit;font:400 14px/20px Lato}::ng-deep.strips-tabgroup .mat-tab-label-active .mat-tab-label-content{font-weight:700!important}.click-here{color:#1b4ca1}.info-content{opacity:1;color:rgba(0,0,0,.87);font:700 14px/20px Lato-Bold;text-align:center}"]
|
|
5660
5709
|
}] }
|
|
5661
5710
|
];
|
|
@@ -5977,8 +6026,8 @@
|
|
|
5977
6026
|
SlidersLibComponent.decorators = [
|
|
5978
6027
|
{ type: core.Component, args: [{
|
|
5979
6028
|
selector: 'sb-uic-sliders',
|
|
5980
|
-
template: "<div class=\"banner-container {{isMobile? styleData?.responsive?.bannerMetaClass : styleData?.bannerMetaClass}}\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length > 1\" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\"\n [ngStyle]=\"{'border-radius': styleData?.borderRadius || '12px'}\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [routerLink]=\" !isOpenInNewTab ? widgetData[currentIndex].redirectUrl :
|
|
5981
|
-
styles: [".banner-container{min-height:243px;position:relative;margin:auto;padding-bottom:40px}.banner-container.inline-meta{padding-bottom:0!important}.banner-container.flat .banner .banner-image{border-radius:0!important}.banner-overlay{z-index:1;top:0;left:0;width:100%;height:100%;background:linear-gradient(to left,rgba(0,0,0,.25) 0,rgba(0,0,0,0) 15%,rgba(0,0,0,0) 85%,rgba(0,0,0,.25) 100%);border-radius:inherit}.banner{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s;border-radius:inherit;height:inherit}.banner .banner-image{width:100%;min-height:243px;display:block;border-radius:inherit;height:inherit}.banner-meta{text-align:center;z-index:2;padding:8px 12px;position:absolute;bottom:0;left:50%;border-radius:12px;transform:translateX(-50%);box-sizing:border-box}.banner-meta.left{left:0;transform:translateX(0)}.banner-meta.right{left:100%;transform:translateX(-100%)}.banner-meta .banner-title{color:#f2f2f2;margin-bottom:8px;font-size:1.1rem}@media only screen and (max-width:599px){.banner-meta .banner-title{display:none}}.banner-meta .dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.banner-meta .dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}@media only screen and (max-width:599px){.banner-meta .dots-container .dot{height:8px;width:8px;margin:0 4px}}.banner-meta .dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@keyframes fade{from{opacity:.25}to{opacity:1}}.next,.prev{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-weight:700;background-color:#1b2133!important;border-radius:50%;z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;margin-top:-16px;justify-content:center}.prev{left:0;margin-left:-16px}.next{right:0;margin-right:-16px}.navigation.bottom-right .prev{left:unset;right:45px;bottom:-15px;top:unset}.navigation.bottom-right .next{left:unset;right:15px;bottom:-15px;top:unset}.navigation.bottom-center .prev{left:calc(50% - 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-center .next{left:calc(50% + 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-left .prev{left:15px;right:unset;bottom:-15px;top:unset}.navigation.bottom-left .next{left:60px;right:unset;bottom:-15px;top:unset}.navigation.middle-inline .prev{left:30px}.navigation.middle-inline .next{right:30px}.banner-container-solo{overflow:hidden;margin:auto;border-radius:12px}.banner-image-solo{width:100%;display:block;border-radius:12px}.default-slider{height:100%;background:#d4e2fb}.default-slider .default-title{text-align:center;position:absolute;top:50%;left:0;right:0;margin:auto;transform:translateY(-50%);z-index:999;background:#e6efff;width
|
|
6029
|
+
template: "<div class=\"banner-container {{isMobile? styleData?.responsive?.bannerMetaClass : styleData?.bannerMetaClass}}\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length > 1\" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\"\n [ngStyle]=\"{'border-radius': styleData?.borderRadius || '12px'}\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-overlay\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\n <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n </a>\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n </ng-container>\n <div class=\"navigation {{isMobile? styleData?.responsive?.arrowsPlacement : styleData?.arrowsPlacement}}\" \n *ngIf=\"isMobile && styleData?.responsive?.navigationArrows !== 'hidden' || !isMobile && styleData?.navigationArrows !== 'hidden'\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"prev\" (click)=\"slideTo(currentIndex - 1)\">❮</a>\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\">❯</a>\n </div>\n</div>\n<div class=\"banner-container-solo margin-top-s\" *ngIf=\"widgetData?.length == 1\">\n <img i18n-alt alt=\"Page Banner\" width=\"100%\" height=\"100%\" [src]=\"widgetData[0].banners\" wsUtilsImageResponsive class=\"banner-image-solo\" />\n</div>\n<!-- <div class=\"banner-container\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [queryParams]=\"widgetData[currentIndex].queryParams || {}\"\n [routerLink]=\"!isOpenInNewTab ? widgetData[currentIndex].redirectUrl : './'\" class=\"banner-overlay\"\n [ngClass]=\"{ 'cursor-auto': !widgetData[currentIndex].redirectUrl }\"></a>\n <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n <div class=\"banner-meta\">\n <a [routerLink]=\"!isOpenInNewTab ? widgetData[currentIndex].redirectUrl : './'\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n <button *ngIf=\"widgetData?.length > 1\" class=\"prev\" aria-label=\"Previous slide\" (click)=\"slideTo(currentIndex - 1)\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\">❮</a>\n </button>\n <button *ngIf=\"widgetData?.length > 1\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\" aria-label=\"Next slide\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\">❯</a>\n </button>\n\n</div> -->\n<ng-container *ngIf=\"!widgetData?.length\">\n <div class=\"slider default-slider h-full\">\n <div class=\"relative h-full\">\n <img class=\"h-full\" src=\"assets/icons/home/default-slider-image.svg\" alt=\"\">\n <div class=\"default-title rounded-full\">\n <p class=\"mat-h1\">{{title}}</p>\n </div>\n </div>\n </div>\n</ng-container>\n",
|
|
6030
|
+
styles: [".banner-container{min-height:243px;position:relative;margin:auto;padding-bottom:40px}.banner-container.inline-meta{padding-bottom:0!important}.banner-container.flat .banner .banner-image{border-radius:0!important}.banner-overlay{z-index:1;top:0;left:0;width:100%;height:100%;background:linear-gradient(to left,rgba(0,0,0,.25) 0,rgba(0,0,0,0) 15%,rgba(0,0,0,0) 85%,rgba(0,0,0,.25) 100%);border-radius:inherit}.banner{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s;border-radius:inherit;height:inherit}.banner .banner-image{width:100%;min-height:243px;display:block;border-radius:inherit;height:inherit}.banner-meta{text-align:center;z-index:2;padding:8px 12px;position:absolute;bottom:0;left:50%;border-radius:12px;transform:translateX(-50%);box-sizing:border-box}.banner-meta.left{left:0;transform:translateX(0)}.banner-meta.right{left:100%;transform:translateX(-100%)}.banner-meta .banner-title{color:#f2f2f2;margin-bottom:8px;font-size:1.1rem}@media only screen and (max-width:599px){.banner-meta .banner-title{display:none}}.banner-meta .dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.banner-meta .dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}@media only screen and (max-width:599px){.banner-meta .dots-container .dot{height:8px;width:8px;margin:0 4px}}.banner-meta .dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@keyframes fade{from{opacity:.25}to{opacity:1}}.next,.prev{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-weight:700;background-color:#1b2133!important;border-radius:50%;z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;margin-top:-16px;justify-content:center}.prev{left:0;margin-left:-16px}.next{right:0;margin-right:-16px}.navigation.bottom-right .prev{left:unset;right:45px;bottom:-15px;top:unset}.navigation.bottom-right .next{left:unset;right:15px;bottom:-15px;top:unset}.navigation.bottom-center .prev{left:calc(50% - 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-center .next{left:calc(50% + 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-left .prev{left:15px;right:unset;bottom:-15px;top:unset}.navigation.bottom-left .next{left:60px;right:unset;bottom:-15px;top:unset}.navigation.middle-inline .prev{left:30px}.navigation.middle-inline .next{right:30px}.banner-container-solo{overflow:hidden;margin:auto;border-radius:12px}.banner-image-solo{width:100%;display:block;border-radius:12px}.default-slider{height:100%;background:#d4e2fb}.default-slider .default-title{text-align:center;position:absolute;top:50%;left:0;right:0;margin:auto;transform:translateY(-50%);z-index:999;background:#e6efff;padding:32px;width:500px}.default-slider .default-title p{word-break:break-word;margin:0!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-transform:uppercase}@media screen and (max-width:768px){.default-slider{height:384px;width:100%}.default-slider .default-title{width:unset!important}}"]
|
|
5982
6031
|
}] }
|
|
5983
6032
|
];
|
|
5984
6033
|
/** @nocollapse */
|
|
@@ -6441,7 +6490,7 @@
|
|
|
6441
6490
|
DataPointsComponent.decorators = [
|
|
6442
6491
|
{ type: core.Component, args: [{
|
|
6443
6492
|
selector: 'sb-uic-data-points',
|
|
6444
|
-
template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" >{{obj?.value | number: '1.1-2'}}</div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow'\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\">{{obj?.value | number: '1.1-2'}}</div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\">{{item?.value}}</div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>",
|
|
6493
|
+
template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" >{{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow'\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\">{{obj?.value | number: '1.1-2'}}</div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\">{{item?.value}}</div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>",
|
|
6445
6494
|
styles: [".white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}"]
|
|
6446
6495
|
}] }
|
|
6447
6496
|
];
|
|
@@ -6568,193 +6617,1117 @@
|
|
|
6568
6617
|
* @fileoverview added by tsickle
|
|
6569
6618
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6570
6619
|
*/
|
|
6571
|
-
var
|
|
6572
|
-
function
|
|
6620
|
+
var CalenderComponent = /** @class */ (function () {
|
|
6621
|
+
function CalenderComponent() {
|
|
6622
|
+
this.toDay = new Date();
|
|
6573
6623
|
}
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6624
|
+
/**
|
|
6625
|
+
* @return {?}
|
|
6626
|
+
*/
|
|
6627
|
+
CalenderComponent.prototype.ngOnInit = /**
|
|
6628
|
+
* @return {?}
|
|
6629
|
+
*/
|
|
6630
|
+
function () {
|
|
6631
|
+
console.log("data ===== ", this.objectData);
|
|
6632
|
+
console.log("toDay ", this.toDay);
|
|
6633
|
+
};
|
|
6634
|
+
CalenderComponent.decorators = [
|
|
6635
|
+
{ type: core.Component, args: [{
|
|
6636
|
+
selector: 'sb-uic-calender',
|
|
6637
|
+
template: "<div class=\"w-full p-3 event-day my-3\" \n *ngFor=\"let obj of objectData?.training\"\n [style.backgroundColor]=\"obj?.backgroundColor\" \n [style.borderColor]=\"objectData?.activeColor\">\n <div class=\"flex item-top gap-8 {{ obj.events.length ? '' : 'aliginCenter'}}\">\n <div class=\"event-date\">\n <div class=\"currentDay\">{{obj.eventDate}}</div>\n </div>\n <div class=\"details w-full\" *ngIf=\"obj.events.length\">\n <div class=\"flex p-4 item-center events-list mb-{{obj.events.length === (i+1) ? '0' : '2'}} gap-20\" [style.backgroundColor]=\"event?.backgroundColor\"\n *ngFor=\"let event of obj.events; let i = index\" >\n <div>\n <div class=\"flex flex-row item-center gap-10 pb-2\">\n <div class=\"flex item-center gap-2 row1 col1\">\n <div><mat-icon class=\"icon-tour\">schedule</mat-icon> </div>\n <div>{{event.startTime}} to {{event.endTime}}</div>\n </div>\n <div class=\"flex item-center col1\">{{event.title}}</div>\n </div>\n <div class=\"flex flex-row item-center gap-10\">\n <div class=\"flex item-center gap-2 row1 col1\" *ngIf=\"event.startDate && event.endDate\">\n <div><mat-icon class=\"icon-tour\">date_range</mat-icon> </div>\n <div>{{event.startDate}} - {{event.endDate}}</div>\n </div>\n <div class=\"flex item-center gap-2 col1\">\n <div><mat-icon class=\"icon-tour\">location_on</mat-icon> </div>\n <div class=\"flex item-center\">{{event.location}}</div>\n </div>\n </div>\n </div>\n <div class=\"visit-link\">\n Visit\n </div>\n </div>\n </div>\n <div class=\"details w-full\" *ngIf=\"!obj.events.length\">\n No trainings.\n </div>\n </div>\n</div>",
|
|
6638
|
+
styles: [".event-day{border:1px solid #c3c3c3;border-radius:15px}.event-date{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;width:10%}.events-list{border:1px solid #c3c3c3;border-radius:15px;justify-content:space-between;align-items:center;font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px}.row1{width:235px}.aliginCenter,.col1{align-items:center}.visit-link{opacity:.7;cursor:pointer}.currentDay{padding:5px;background:#1d8923;border-radius:20px;color:#fff}"]
|
|
6639
|
+
}] }
|
|
6587
6640
|
];
|
|
6588
|
-
|
|
6641
|
+
CalenderComponent.propDecorators = {
|
|
6642
|
+
objectData: [{ type: core.Input }]
|
|
6643
|
+
};
|
|
6644
|
+
return CalenderComponent;
|
|
6589
6645
|
}());
|
|
6646
|
+
if (false) {
|
|
6647
|
+
/** @type {?} */
|
|
6648
|
+
CalenderComponent.prototype.objectData;
|
|
6649
|
+
/** @type {?} */
|
|
6650
|
+
CalenderComponent.prototype.toDay;
|
|
6651
|
+
}
|
|
6590
6652
|
|
|
6591
6653
|
/**
|
|
6592
6654
|
* @fileoverview added by tsickle
|
|
6593
6655
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6594
6656
|
*/
|
|
6595
|
-
/** @
|
|
6596
|
-
|
|
6597
|
-
card: {
|
|
6598
|
-
_type: 'cardLib',
|
|
6599
|
-
cardResource: 'cardContentLib'
|
|
6600
|
-
},
|
|
6601
|
-
};
|
|
6602
|
-
|
|
6603
|
-
/**
|
|
6604
|
-
* @fileoverview added by tsickle
|
|
6605
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6606
|
-
*/
|
|
6607
|
-
var NsCardContent$1;
|
|
6608
|
-
(function (NsCardContent) {
|
|
6609
|
-
/**
|
|
6610
|
-
* @record
|
|
6611
|
-
*/
|
|
6612
|
-
function ICard() { }
|
|
6613
|
-
NsCardContent.ICard = ICard;
|
|
6614
|
-
if (false) {
|
|
6615
|
-
/** @type {?} */
|
|
6616
|
-
ICard.prototype.content;
|
|
6617
|
-
/** @type {?} */
|
|
6618
|
-
ICard.prototype.cardSubType;
|
|
6619
|
-
/** @type {?} */
|
|
6620
|
-
ICard.prototype.context;
|
|
6621
|
-
/** @type {?|undefined} */
|
|
6622
|
-
ICard.prototype.intranetMode;
|
|
6623
|
-
/** @type {?|undefined} */
|
|
6624
|
-
ICard.prototype.deletedMode;
|
|
6625
|
-
/** @type {?|undefined} */
|
|
6626
|
-
ICard.prototype.likes;
|
|
6627
|
-
/** @type {?|undefined} */
|
|
6628
|
-
ICard.prototype.contentTags;
|
|
6629
|
-
/** @type {?} */
|
|
6630
|
-
ICard.prototype.stateData;
|
|
6631
|
-
/** @type {?|undefined} */
|
|
6632
|
-
ICard.prototype.cardCustomeClass;
|
|
6633
|
-
}
|
|
6634
|
-
/**
|
|
6635
|
-
* @record
|
|
6636
|
-
*/
|
|
6637
|
-
function IContentTags() { }
|
|
6638
|
-
NsCardContent.IContentTags = IContentTags;
|
|
6639
|
-
if (false) {
|
|
6640
|
-
/** @type {?|undefined} */
|
|
6641
|
-
IContentTags.prototype.daysSpan;
|
|
6642
|
-
/** @type {?|undefined} */
|
|
6643
|
-
IContentTags.prototype.excludeContentType;
|
|
6644
|
-
/** @type {?|undefined} */
|
|
6645
|
-
IContentTags.prototype.excludeMimeType;
|
|
6646
|
-
/** @type {?} */
|
|
6647
|
-
IContentTags.prototype.tag;
|
|
6648
|
-
/** @type {?|undefined} */
|
|
6649
|
-
IContentTags.prototype.criteriaField;
|
|
6657
|
+
var CalenderModule = /** @class */ (function () {
|
|
6658
|
+
function CalenderModule() {
|
|
6650
6659
|
}
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
ACBPConst["SUCCESS"] = "success";
|
|
6664
|
-
})(ACBPConst = NsCardContent.ACBPConst || (NsCardContent.ACBPConst = {}));
|
|
6665
|
-
var IGOTConst;
|
|
6666
|
-
(function (IGOTConst) {
|
|
6667
|
-
IGOTConst["COMPETENCIES"] = "competencies_v5";
|
|
6668
|
-
IGOTConst["RETIRED"] = "Retired";
|
|
6669
|
-
})(IGOTConst = NsCardContent.IGOTConst || (NsCardContent.IGOTConst = {}));
|
|
6670
|
-
})(NsCardContent$1 || (NsCardContent$1 = {}));
|
|
6660
|
+
CalenderModule.decorators = [
|
|
6661
|
+
{ type: core.NgModule, args: [{
|
|
6662
|
+
imports: [
|
|
6663
|
+
common.CommonModule,
|
|
6664
|
+
material.MatIconModule,
|
|
6665
|
+
],
|
|
6666
|
+
declarations: [CalenderComponent],
|
|
6667
|
+
exports: [CalenderComponent],
|
|
6668
|
+
},] }
|
|
6669
|
+
];
|
|
6670
|
+
return CalenderModule;
|
|
6671
|
+
}());
|
|
6671
6672
|
|
|
6672
6673
|
/**
|
|
6673
6674
|
* @fileoverview added by tsickle
|
|
6674
6675
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6675
6676
|
*/
|
|
6676
|
-
var
|
|
6677
|
-
|
|
6678
|
-
function CardsComponent(utilitySvc, configSvc, contSvc, router) {
|
|
6679
|
-
var _this = _super.call(this) || this;
|
|
6680
|
-
_this.utilitySvc = utilitySvc;
|
|
6681
|
-
_this.configSvc = configSvc;
|
|
6682
|
-
_this.contSvc = contSvc;
|
|
6683
|
-
_this.router = router;
|
|
6684
|
-
_this.isIntranetAllowedSettings = false;
|
|
6685
|
-
return _this;
|
|
6677
|
+
var CommonMethodsService = /** @class */ (function () {
|
|
6678
|
+
function CommonMethodsService() {
|
|
6686
6679
|
}
|
|
6687
6680
|
/**
|
|
6681
|
+
* @param {?} contents
|
|
6682
|
+
* @param {?} strip
|
|
6688
6683
|
* @return {?}
|
|
6689
6684
|
*/
|
|
6690
|
-
|
|
6685
|
+
CommonMethodsService.prototype.transformContentsToWidgets = /**
|
|
6686
|
+
* @param {?} contents
|
|
6687
|
+
* @param {?} strip
|
|
6691
6688
|
* @return {?}
|
|
6692
6689
|
*/
|
|
6693
|
-
function () {
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
* @return {?}
|
|
6698
|
-
*/
|
|
6699
|
-
function () {
|
|
6700
|
-
if (!this.widgetData.content.status ||
|
|
6701
|
-
this.widgetData.content.status === 'Live' ||
|
|
6702
|
-
this.widgetData.content.status === 'MarkedForDeletion') {
|
|
6703
|
-
return true;
|
|
6704
|
-
}
|
|
6705
|
-
return false;
|
|
6706
|
-
},
|
|
6707
|
-
enumerable: true,
|
|
6708
|
-
configurable: true
|
|
6709
|
-
});
|
|
6710
|
-
Object.defineProperty(CardsComponent.prototype, "showIntranetContent", {
|
|
6711
|
-
get: /**
|
|
6690
|
+
function (contents, strip) {
|
|
6691
|
+
return (contents || []).map((/**
|
|
6692
|
+
* @param {?} content
|
|
6693
|
+
* @param {?} idx
|
|
6712
6694
|
* @return {?}
|
|
6713
6695
|
*/
|
|
6714
|
-
function () {
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
}
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6696
|
+
function (content, idx) { return (content ? {
|
|
6697
|
+
widgetType: 'cardLib',
|
|
6698
|
+
widgetSubType: 'cardContentLib',
|
|
6699
|
+
widgetHostClass: 'mb-2',
|
|
6700
|
+
widgetData: __assign({ content: content }, (content.batch && { batch: content.batch }), { cardSubType: strip.stripConfig && strip.stripConfig.cardSubType, cardCustomeClass: strip.customeClass ? strip.customeClass : '', context: { pageSection: strip.key, position: idx }, intranetMode: strip.stripConfig && strip.stripConfig.intranetMode, deletedMode: strip.stripConfig && strip.stripConfig.deletedMode, contentTags: strip.stripConfig && strip.stripConfig.contentTags }),
|
|
6701
|
+
} : {
|
|
6702
|
+
widgetType: 'card',
|
|
6703
|
+
widgetSubType: 'cardContent',
|
|
6704
|
+
widgetHostClass: 'mb-2',
|
|
6705
|
+
widgetData: {},
|
|
6706
|
+
}); }));
|
|
6707
|
+
};
|
|
6723
6708
|
/**
|
|
6724
|
-
* @param {?}
|
|
6709
|
+
* @param {?} strip
|
|
6725
6710
|
* @return {?}
|
|
6726
6711
|
*/
|
|
6727
|
-
|
|
6728
|
-
* @param {?}
|
|
6712
|
+
CommonMethodsService.prototype.transformSkeletonToWidgets = /**
|
|
6713
|
+
* @param {?} strip
|
|
6729
6714
|
* @return {?}
|
|
6730
6715
|
*/
|
|
6731
|
-
function (
|
|
6732
|
-
return
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
});
|
|
6716
|
+
function (strip) {
|
|
6717
|
+
return [1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10].map((/**
|
|
6718
|
+
* @param {?} _content
|
|
6719
|
+
* @return {?}
|
|
6720
|
+
*/
|
|
6721
|
+
function (_content) { return ({
|
|
6722
|
+
widgetType: 'cardLib',
|
|
6723
|
+
widgetSubType: 'cardContentLib',
|
|
6724
|
+
widgetHostClass: 'mb-2',
|
|
6725
|
+
widgetData: {
|
|
6726
|
+
cardSubType: strip.loaderConfig && strip.loaderConfig.cardSubType || 'card-standard-skeleton',
|
|
6727
|
+
cardCustomeClass: strip.customeClass ? strip.customeClass : '',
|
|
6728
|
+
},
|
|
6729
|
+
}); }));
|
|
6746
6730
|
};
|
|
6747
|
-
|
|
6748
|
-
{ type: core.
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
styles: [""]
|
|
6752
|
-
}] }
|
|
6731
|
+
CommonMethodsService.decorators = [
|
|
6732
|
+
{ type: core.Injectable, args: [{
|
|
6733
|
+
providedIn: 'root'
|
|
6734
|
+
},] }
|
|
6753
6735
|
];
|
|
6754
6736
|
/** @nocollapse */
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6737
|
+
CommonMethodsService.ctorParameters = function () { return []; };
|
|
6738
|
+
/** @nocollapse */ CommonMethodsService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function CommonMethodsService_Factory() { return new CommonMethodsService(); }, token: CommonMethodsService, providedIn: "root" });
|
|
6739
|
+
return CommonMethodsService;
|
|
6740
|
+
}());
|
|
6741
|
+
|
|
6742
|
+
/**
|
|
6743
|
+
* @fileoverview added by tsickle
|
|
6744
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6745
|
+
*/
|
|
6746
|
+
/**
|
|
6747
|
+
* @record
|
|
6748
|
+
*/
|
|
6749
|
+
function IStripUnitCommonData() { }
|
|
6750
|
+
if (false) {
|
|
6751
|
+
/** @type {?} */
|
|
6752
|
+
IStripUnitCommonData.prototype.key;
|
|
6753
|
+
/** @type {?} */
|
|
6754
|
+
IStripUnitCommonData.prototype.canHideStrip;
|
|
6755
|
+
/** @type {?|undefined} */
|
|
6756
|
+
IStripUnitCommonData.prototype.mode;
|
|
6757
|
+
/** @type {?} */
|
|
6758
|
+
IStripUnitCommonData.prototype.showStrip;
|
|
6759
|
+
/** @type {?} */
|
|
6760
|
+
IStripUnitCommonData.prototype.disableTranslate;
|
|
6761
|
+
/** @type {?|undefined} */
|
|
6762
|
+
IStripUnitCommonData.prototype.widgets;
|
|
6763
|
+
/** @type {?} */
|
|
6764
|
+
IStripUnitCommonData.prototype.stripTitle;
|
|
6765
|
+
/** @type {?|undefined} */
|
|
6766
|
+
IStripUnitCommonData.prototype.stripTitleLink;
|
|
6767
|
+
/** @type {?|undefined} */
|
|
6768
|
+
IStripUnitCommonData.prototype.sliderConfig;
|
|
6769
|
+
/** @type {?} */
|
|
6770
|
+
IStripUnitCommonData.prototype.stripConfig;
|
|
6771
|
+
/** @type {?|undefined} */
|
|
6772
|
+
IStripUnitCommonData.prototype.tabs;
|
|
6773
|
+
/** @type {?|undefined} */
|
|
6774
|
+
IStripUnitCommonData.prototype.stripName;
|
|
6775
|
+
/** @type {?|undefined} */
|
|
6776
|
+
IStripUnitCommonData.prototype.stripLogo;
|
|
6777
|
+
/** @type {?|undefined} */
|
|
6778
|
+
IStripUnitCommonData.prototype.description;
|
|
6779
|
+
/** @type {?|undefined} */
|
|
6780
|
+
IStripUnitCommonData.prototype.stripInfo;
|
|
6781
|
+
/** @type {?|undefined} */
|
|
6782
|
+
IStripUnitCommonData.prototype.noDataWidget;
|
|
6783
|
+
/** @type {?|undefined} */
|
|
6784
|
+
IStripUnitCommonData.prototype.errorWidget;
|
|
6785
|
+
/** @type {?} */
|
|
6786
|
+
IStripUnitCommonData.prototype.showOnNoData;
|
|
6787
|
+
/** @type {?} */
|
|
6788
|
+
IStripUnitCommonData.prototype.showOnLoader;
|
|
6789
|
+
/** @type {?} */
|
|
6790
|
+
IStripUnitCommonData.prototype.showOnError;
|
|
6791
|
+
/** @type {?|undefined} */
|
|
6792
|
+
IStripUnitCommonData.prototype.loaderWidgets;
|
|
6793
|
+
/** @type {?|undefined} */
|
|
6794
|
+
IStripUnitCommonData.prototype.stripBackground;
|
|
6795
|
+
/** @type {?|undefined} */
|
|
6796
|
+
IStripUnitCommonData.prototype.secondaryHeading;
|
|
6797
|
+
/** @type {?} */
|
|
6798
|
+
IStripUnitCommonData.prototype.viewMoreUrl;
|
|
6799
|
+
}
|
|
6800
|
+
var CommonStripComponent = /** @class */ (function (_super) {
|
|
6801
|
+
__extends(CommonStripComponent, _super);
|
|
6802
|
+
function CommonStripComponent(environment, contentSvc, loggerSvc, eventSvc, configSvc, utilitySvc, userSvc, translate, langtranslations, commonMethodsSvc) {
|
|
6803
|
+
var _this = _super.call(this) || this;
|
|
6804
|
+
_this.contentSvc = contentSvc;
|
|
6805
|
+
_this.loggerSvc = loggerSvc;
|
|
6806
|
+
_this.eventSvc = eventSvc;
|
|
6807
|
+
_this.configSvc = configSvc;
|
|
6808
|
+
_this.utilitySvc = utilitySvc;
|
|
6809
|
+
_this.userSvc = userSvc;
|
|
6810
|
+
_this.translate = translate;
|
|
6811
|
+
_this.langtranslations = langtranslations;
|
|
6812
|
+
_this.commonMethodsSvc = commonMethodsSvc;
|
|
6813
|
+
_this.id = "ws-strip-miltiple_" + Math.random();
|
|
6814
|
+
_this.stripsResultDataMap = {};
|
|
6815
|
+
_this.stripsKeyOrder = [];
|
|
6816
|
+
_this.showAccordionData = true;
|
|
6817
|
+
_this.showParentLoader = false;
|
|
6818
|
+
_this.showParentError = false;
|
|
6819
|
+
_this.showParentNoData = false;
|
|
6820
|
+
_this.errorDataCount = 0;
|
|
6821
|
+
_this.noDataCount = 0;
|
|
6822
|
+
_this.successDataCount = 0;
|
|
6823
|
+
_this.contentAvailable = true;
|
|
6824
|
+
_this.baseUrl = _this.configSvc.sitePath || '';
|
|
6825
|
+
_this.veifiedKarmayogi = false;
|
|
6826
|
+
_this.changeEventSubscription = null;
|
|
6827
|
+
_this.defaultMaxWidgets = 12;
|
|
6828
|
+
_this.todaysEvents = [];
|
|
6829
|
+
_this.environment = environment;
|
|
6830
|
+
return _this;
|
|
6831
|
+
}
|
|
6832
|
+
/**
|
|
6833
|
+
* @return {?}
|
|
6834
|
+
*/
|
|
6835
|
+
CommonStripComponent.prototype.ngOnInit = /**
|
|
6836
|
+
* @return {?}
|
|
6837
|
+
*/
|
|
6838
|
+
function () {
|
|
6839
|
+
// const url = window.location.href
|
|
6840
|
+
this.initData();
|
|
6841
|
+
};
|
|
6842
|
+
/**
|
|
6843
|
+
* @return {?}
|
|
6844
|
+
*/
|
|
6845
|
+
CommonStripComponent.prototype.ngOnDestroy = /**
|
|
6846
|
+
* @return {?}
|
|
6847
|
+
*/
|
|
6848
|
+
function () {
|
|
6849
|
+
if (this.changeEventSubscription) {
|
|
6850
|
+
this.changeEventSubscription.unsubscribe();
|
|
6851
|
+
}
|
|
6852
|
+
};
|
|
6853
|
+
/**
|
|
6854
|
+
* @param {?} key
|
|
6855
|
+
* @return {?}
|
|
6856
|
+
*/
|
|
6857
|
+
CommonStripComponent.prototype.showAccordion = /**
|
|
6858
|
+
* @param {?} key
|
|
6859
|
+
* @return {?}
|
|
6860
|
+
*/
|
|
6861
|
+
function (key) {
|
|
6862
|
+
if (this.utilitySvc.isMobile && this.stripsResultDataMap[key].mode === 'accordion') {
|
|
6863
|
+
return this.showAccordionData;
|
|
6864
|
+
}
|
|
6865
|
+
return true;
|
|
6866
|
+
};
|
|
6867
|
+
/**
|
|
6868
|
+
* @param {?} key
|
|
6869
|
+
* @return {?}
|
|
6870
|
+
*/
|
|
6871
|
+
CommonStripComponent.prototype.setHiddenForStrip = /**
|
|
6872
|
+
* @param {?} key
|
|
6873
|
+
* @return {?}
|
|
6874
|
+
*/
|
|
6875
|
+
function (key) {
|
|
6876
|
+
this.stripsResultDataMap[key].showStrip = false;
|
|
6877
|
+
sessionStorage.setItem("cstrip_" + key, '1');
|
|
6878
|
+
};
|
|
6879
|
+
/**
|
|
6880
|
+
* @private
|
|
6881
|
+
* @param {?} key
|
|
6882
|
+
* @return {?}
|
|
6883
|
+
*/
|
|
6884
|
+
CommonStripComponent.prototype.getIfStripHidden = /**
|
|
6885
|
+
* @private
|
|
6886
|
+
* @param {?} key
|
|
6887
|
+
* @return {?}
|
|
6888
|
+
*/
|
|
6889
|
+
function (key) {
|
|
6890
|
+
/** @type {?} */
|
|
6891
|
+
var storageItem = sessionStorage.getItem("cstrip_" + key);
|
|
6892
|
+
return Boolean(storageItem !== '1');
|
|
6893
|
+
};
|
|
6894
|
+
/**
|
|
6895
|
+
* @private
|
|
6896
|
+
* @return {?}
|
|
6897
|
+
*/
|
|
6898
|
+
CommonStripComponent.prototype.initData = /**
|
|
6899
|
+
* @private
|
|
6900
|
+
* @return {?}
|
|
6901
|
+
*/
|
|
6902
|
+
function () {
|
|
6903
|
+
var e_1, _a;
|
|
6904
|
+
var _this = this;
|
|
6905
|
+
this.stripsKeyOrder = this.widgetData && this.widgetData.strips && this.widgetData.strips.map((/**
|
|
6906
|
+
* @param {?} strip
|
|
6907
|
+
* @return {?}
|
|
6908
|
+
*/
|
|
6909
|
+
function (strip) { return strip.key; })) || [];
|
|
6910
|
+
if (this.widgetData.loader && this.widgetData.strips.length) {
|
|
6911
|
+
this.showParentLoader = true;
|
|
6912
|
+
}
|
|
6913
|
+
try {
|
|
6914
|
+
// Fetch the data
|
|
6915
|
+
for (var _b = __values(this.widgetData.strips), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
6916
|
+
var strip = _c.value;
|
|
6917
|
+
this.processStrip(strip, [], 'fetching', false, null);
|
|
6918
|
+
if (strip.dataType === 'in-hand' && this.widgetData[strip.dataKey]) {
|
|
6919
|
+
this.processStrip(strip, this.commonMethodsSvc.transformContentsToWidgets(this.widgetData[strip.dataKey], strip), 'done', true, strip.viewMoreUrl || '');
|
|
6920
|
+
}
|
|
6921
|
+
else {
|
|
6922
|
+
if (this.checkForEmptyWidget(strip)) {
|
|
6923
|
+
// this.fetchStripFromRequestData(strip, false);
|
|
6924
|
+
}
|
|
6925
|
+
else {
|
|
6926
|
+
this.processStrip(strip, [], 'done', true, null);
|
|
6927
|
+
}
|
|
6928
|
+
}
|
|
6929
|
+
}
|
|
6930
|
+
}
|
|
6931
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
6932
|
+
finally {
|
|
6933
|
+
try {
|
|
6934
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6935
|
+
}
|
|
6936
|
+
finally { if (e_1) throw e_1.error; }
|
|
6937
|
+
}
|
|
6938
|
+
// Subscription for changes
|
|
6939
|
+
/** @type {?} */
|
|
6940
|
+
var keyAndEvent = this.widgetData.strips
|
|
6941
|
+
.map((/**
|
|
6942
|
+
* @param {?} strip
|
|
6943
|
+
* @return {?}
|
|
6944
|
+
*/
|
|
6945
|
+
function (strip) { return ({
|
|
6946
|
+
key: strip.key,
|
|
6947
|
+
type: (strip.refreshEvent && strip.refreshEvent.eventType) || '',
|
|
6948
|
+
from: (strip.refreshEvent && strip.refreshEvent.from.toString()) || '',
|
|
6949
|
+
}); }))
|
|
6950
|
+
.filter((/**
|
|
6951
|
+
* @param {?} __0
|
|
6952
|
+
* @return {?}
|
|
6953
|
+
*/
|
|
6954
|
+
function (_a) {
|
|
6955
|
+
var key = _a.key, type = _a.type, from = _a.from;
|
|
6956
|
+
return key && type && from;
|
|
6957
|
+
}));
|
|
6958
|
+
/** @type {?} */
|
|
6959
|
+
var eventTypeSet = new Set(keyAndEvent.map((/**
|
|
6960
|
+
* @param {?} e
|
|
6961
|
+
* @return {?}
|
|
6962
|
+
*/
|
|
6963
|
+
function (e) { return e.type; })));
|
|
6964
|
+
this.changeEventSubscription = this.eventSvc.events$
|
|
6965
|
+
.pipe(operators.filter((/**
|
|
6966
|
+
* @param {?} event
|
|
6967
|
+
* @return {?}
|
|
6968
|
+
*/
|
|
6969
|
+
function (event) { return eventTypeSet.has(event.eventType); })))
|
|
6970
|
+
.subscribe((/**
|
|
6971
|
+
* @param {?} event
|
|
6972
|
+
* @return {?}
|
|
6973
|
+
*/
|
|
6974
|
+
function (event) {
|
|
6975
|
+
keyAndEvent
|
|
6976
|
+
.filter((/**
|
|
6977
|
+
* @param {?} e
|
|
6978
|
+
* @return {?}
|
|
6979
|
+
*/
|
|
6980
|
+
function (e) { return e.type === event.eventType && e.from === event.from; }))
|
|
6981
|
+
.map((/**
|
|
6982
|
+
* @param {?} e
|
|
6983
|
+
* @return {?}
|
|
6984
|
+
*/
|
|
6985
|
+
function (e) { return e.key; }))
|
|
6986
|
+
.forEach((/**
|
|
6987
|
+
* @param {?} k
|
|
6988
|
+
* @return {?}
|
|
6989
|
+
*/
|
|
6990
|
+
function (k) { return _this.fetchStripFromKey(k, false); }));
|
|
6991
|
+
}));
|
|
6992
|
+
};
|
|
6993
|
+
/**
|
|
6994
|
+
* @private
|
|
6995
|
+
* @param {?} key
|
|
6996
|
+
* @param {?=} calculateParentStatus
|
|
6997
|
+
* @return {?}
|
|
6998
|
+
*/
|
|
6999
|
+
CommonStripComponent.prototype.fetchStripFromKey = /**
|
|
7000
|
+
* @private
|
|
7001
|
+
* @param {?} key
|
|
7002
|
+
* @param {?=} calculateParentStatus
|
|
7003
|
+
* @return {?}
|
|
7004
|
+
*/
|
|
7005
|
+
function (key, calculateParentStatus) {
|
|
7006
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
7007
|
+
/** @type {?} */
|
|
7008
|
+
var stripData = this.widgetData.strips.find((/**
|
|
7009
|
+
* @param {?} strip
|
|
7010
|
+
* @return {?}
|
|
7011
|
+
*/
|
|
7012
|
+
function (strip) { return strip.key === key; }));
|
|
7013
|
+
if (stripData) {
|
|
7014
|
+
// this.fetchStripFromRequestData(stripData, calculateParentStatus);
|
|
7015
|
+
}
|
|
7016
|
+
};
|
|
7017
|
+
/**
|
|
7018
|
+
* @param {?} data
|
|
7019
|
+
* @return {?}
|
|
7020
|
+
*/
|
|
7021
|
+
CommonStripComponent.prototype.isStripShowing = /**
|
|
7022
|
+
* @param {?} data
|
|
7023
|
+
* @return {?}
|
|
7024
|
+
*/
|
|
7025
|
+
function (data) {
|
|
7026
|
+
var _this = this;
|
|
7027
|
+
/** @type {?} */
|
|
7028
|
+
var count = 0;
|
|
7029
|
+
if (data && data.key === this.environment.programStripKey && (!data.tabs || !data.tabs.length) &&
|
|
7030
|
+
data.stripTitle === this.environment.programStripName && data.widgets.length > 0) {
|
|
7031
|
+
data.widgets.forEach((/**
|
|
7032
|
+
* @param {?} key
|
|
7033
|
+
* @return {?}
|
|
7034
|
+
*/
|
|
7035
|
+
function (key) {
|
|
7036
|
+
if (key && key.widgetData.content.primaryCategory === _this.environment.programStripPrimaryCategory) {
|
|
7037
|
+
count = count + 1;
|
|
7038
|
+
}
|
|
7039
|
+
}));
|
|
7040
|
+
if (count > 0) {
|
|
7041
|
+
data.showStrip = true;
|
|
7042
|
+
}
|
|
7043
|
+
else {
|
|
7044
|
+
data.showStrip = false;
|
|
7045
|
+
}
|
|
7046
|
+
}
|
|
7047
|
+
return data.showStrip;
|
|
7048
|
+
};
|
|
7049
|
+
Object.defineProperty(CommonStripComponent.prototype, "isMobile", {
|
|
7050
|
+
get: /**
|
|
7051
|
+
* @return {?}
|
|
7052
|
+
*/
|
|
7053
|
+
function () {
|
|
7054
|
+
return this.utilitySvc.isMobile || false;
|
|
7055
|
+
},
|
|
7056
|
+
enumerable: true,
|
|
7057
|
+
configurable: true
|
|
7058
|
+
});
|
|
7059
|
+
/**
|
|
7060
|
+
* @param {?} data
|
|
7061
|
+
* @return {?}
|
|
7062
|
+
*/
|
|
7063
|
+
CommonStripComponent.prototype.getdata = /**
|
|
7064
|
+
* @param {?} data
|
|
7065
|
+
* @return {?}
|
|
7066
|
+
*/
|
|
7067
|
+
function (data) {
|
|
7068
|
+
if (data.stripInfo) {
|
|
7069
|
+
return data.stripInfo.widget;
|
|
7070
|
+
}
|
|
7071
|
+
return {};
|
|
7072
|
+
};
|
|
7073
|
+
/**
|
|
7074
|
+
* @param {?} wData
|
|
7075
|
+
* @param {?} data
|
|
7076
|
+
* @return {?}
|
|
7077
|
+
*/
|
|
7078
|
+
CommonStripComponent.prototype.checkCondition = /**
|
|
7079
|
+
* @param {?} wData
|
|
7080
|
+
* @param {?} data
|
|
7081
|
+
* @return {?}
|
|
7082
|
+
*/
|
|
7083
|
+
function (wData, data) {
|
|
7084
|
+
if (wData.strips[0].stripConfig && wData.strips[0].stripConfig.hideShowAll) {
|
|
7085
|
+
return !wData.strips[0].stripConfig.hideShowAll;
|
|
7086
|
+
}
|
|
7087
|
+
return wData.strips[0].viewMoreUrl && data.widgets && data.widgets.length >= 4;
|
|
7088
|
+
};
|
|
7089
|
+
/**
|
|
7090
|
+
* @param {?} data
|
|
7091
|
+
* @return {?}
|
|
7092
|
+
*/
|
|
7093
|
+
CommonStripComponent.prototype.checkVisible = /**
|
|
7094
|
+
* @param {?} data
|
|
7095
|
+
* @return {?}
|
|
7096
|
+
*/
|
|
7097
|
+
function (data) {
|
|
7098
|
+
return data.stripInfo && data.stripInfo.visibilityMode === 'visible';
|
|
7099
|
+
};
|
|
7100
|
+
/**
|
|
7101
|
+
* @param {?} data
|
|
7102
|
+
* @return {?}
|
|
7103
|
+
*/
|
|
7104
|
+
CommonStripComponent.prototype.getContineuLearningLenth = /**
|
|
7105
|
+
* @param {?} data
|
|
7106
|
+
* @return {?}
|
|
7107
|
+
*/
|
|
7108
|
+
function (data) {
|
|
7109
|
+
return data.widgets ? data.widgets.length : 0;
|
|
7110
|
+
};
|
|
7111
|
+
/**
|
|
7112
|
+
* @param {?} data
|
|
7113
|
+
* @return {?}
|
|
7114
|
+
*/
|
|
7115
|
+
CommonStripComponent.prototype.getLength = /**
|
|
7116
|
+
* @param {?} data
|
|
7117
|
+
* @return {?}
|
|
7118
|
+
*/
|
|
7119
|
+
function (data) {
|
|
7120
|
+
if (!data.tabs || !data.tabs.length) {
|
|
7121
|
+
return data.widgets ? data.widgets.length : 0;
|
|
7122
|
+
}
|
|
7123
|
+
{
|
|
7124
|
+
// if tabs are there check if each tab has widgets and get the tab with max widgets
|
|
7125
|
+
/** @type {?} */
|
|
7126
|
+
var tabWithMaxWidgets = data.tabs.reduce((/**
|
|
7127
|
+
* @param {?} prev
|
|
7128
|
+
* @param {?} current
|
|
7129
|
+
* @return {?}
|
|
7130
|
+
*/
|
|
7131
|
+
function (prev, current) {
|
|
7132
|
+
if (!prev.widgets && !current.widgets) {
|
|
7133
|
+
return current;
|
|
7134
|
+
}
|
|
7135
|
+
if (prev.widgets && current.widgets) {
|
|
7136
|
+
return (prev.widgets.length > current.widgets.length) ? prev : current;
|
|
7137
|
+
}
|
|
7138
|
+
if (current.widgets && !prev.widgets) {
|
|
7139
|
+
return current;
|
|
7140
|
+
}
|
|
7141
|
+
if (!current.widgets && prev.widgets) {
|
|
7142
|
+
return prev;
|
|
7143
|
+
}
|
|
7144
|
+
return current;
|
|
7145
|
+
// return (prev.widgets && current.widgets && (prev.widgets.length > current.widgets.length) ) ? prev : current
|
|
7146
|
+
// tslint:disable-next-line: align
|
|
7147
|
+
}), data.tabs[0]);
|
|
7148
|
+
// if tabs has atleast 1 widgets then strip will show or else not
|
|
7149
|
+
return tabWithMaxWidgets.widgets ? tabWithMaxWidgets.widgets.length : 0;
|
|
7150
|
+
}
|
|
7151
|
+
};
|
|
7152
|
+
/**
|
|
7153
|
+
* @private
|
|
7154
|
+
* @param {?} strip
|
|
7155
|
+
* @param {?=} results
|
|
7156
|
+
* @param {?=} fetchStatus
|
|
7157
|
+
* @param {?=} calculateParentStatus
|
|
7158
|
+
* @param {?=} _viewMoreUrl
|
|
7159
|
+
* @param {?=} tabsResults
|
|
7160
|
+
* @return {?}
|
|
7161
|
+
*/
|
|
7162
|
+
CommonStripComponent.prototype.processStrip = /**
|
|
7163
|
+
* @private
|
|
7164
|
+
* @param {?} strip
|
|
7165
|
+
* @param {?=} results
|
|
7166
|
+
* @param {?=} fetchStatus
|
|
7167
|
+
* @param {?=} calculateParentStatus
|
|
7168
|
+
* @param {?=} _viewMoreUrl
|
|
7169
|
+
* @param {?=} tabsResults
|
|
7170
|
+
* @return {?}
|
|
7171
|
+
*/
|
|
7172
|
+
function (strip, results, fetchStatus, calculateParentStatus, _viewMoreUrl, tabsResults) {
|
|
7173
|
+
if (results === void 0) { results = []; }
|
|
7174
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
7175
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7176
|
+
var stripData;
|
|
7177
|
+
var _a;
|
|
7178
|
+
return __generator(this, function (_b) {
|
|
7179
|
+
stripData = {
|
|
7180
|
+
viewMoreUrl: strip.viewMoreUrl,
|
|
7181
|
+
key: strip.key,
|
|
7182
|
+
canHideStrip: Boolean(strip.canHideStrip),
|
|
7183
|
+
showStrip: this.getIfStripHidden(strip.key),
|
|
7184
|
+
noDataWidget: strip.noDataWidget,
|
|
7185
|
+
errorWidget: strip.errorWidget,
|
|
7186
|
+
stripInfo: strip.info,
|
|
7187
|
+
stripTitle: strip.title,
|
|
7188
|
+
stripTitleLink: strip.stripTitleLink,
|
|
7189
|
+
dataType: strip.dataType,
|
|
7190
|
+
dataKey: strip.dataKey,
|
|
7191
|
+
disableTranslate: strip.disableTranslate,
|
|
7192
|
+
sliderConfig: strip.sliderConfig,
|
|
7193
|
+
tabs: tabsResults ? tabsResults : strip.tabs,
|
|
7194
|
+
stripName: strip.name,
|
|
7195
|
+
mode: strip.mode,
|
|
7196
|
+
stripConfig: strip.stripConfig,
|
|
7197
|
+
stripBackground: strip.stripBackground,
|
|
7198
|
+
secondaryHeading: strip.secondaryHeading,
|
|
7199
|
+
loaderWidgets: strip.loaderWidgets || [],
|
|
7200
|
+
widgets: fetchStatus === 'done'
|
|
7201
|
+
? __spread((strip.preWidgets || []).map((/**
|
|
7202
|
+
* @param {?} w
|
|
7203
|
+
* @return {?}
|
|
7204
|
+
*/
|
|
7205
|
+
function (w) { return (__assign({}, w, { widgetHostClass: "mb-2 " + w.widgetHostClass })); })), results, (strip.postWidgets || []).map((/**
|
|
7206
|
+
* @param {?} w
|
|
7207
|
+
* @return {?}
|
|
7208
|
+
*/
|
|
7209
|
+
function (w) { return (__assign({}, w, { widgetHostClass: "mb-2 " + w.widgetHostClass })); }))) : [],
|
|
7210
|
+
showOnNoData: Boolean(strip.noDataWidget &&
|
|
7211
|
+
!((strip.preWidgets || []).length + results.length + (strip.postWidgets || []).length) &&
|
|
7212
|
+
fetchStatus === 'done'),
|
|
7213
|
+
showOnLoader: Boolean(strip.loader && fetchStatus === 'fetching'),
|
|
7214
|
+
showOnError: Boolean(strip.errorWidget && fetchStatus === 'error'),
|
|
7215
|
+
};
|
|
7216
|
+
// const stripData = this.stripsResultDataMap[strip.key]
|
|
7217
|
+
this.stripsResultDataMap = __assign({}, this.stripsResultDataMap, (_a = {}, _a[strip.key] = stripData, _a));
|
|
7218
|
+
if (!tabsResults) {
|
|
7219
|
+
if (calculateParentStatus &&
|
|
7220
|
+
(fetchStatus === 'done' || fetchStatus === 'error') &&
|
|
7221
|
+
stripData.widgets) {
|
|
7222
|
+
this.checkParentStatus(fetchStatus, stripData.widgets.length);
|
|
7223
|
+
}
|
|
7224
|
+
if (calculateParentStatus && !(results && results.length > 0)) {
|
|
7225
|
+
this.contentAvailable = false;
|
|
7226
|
+
}
|
|
7227
|
+
else if (results && results.length > 0) {
|
|
7228
|
+
this.contentAvailable = true;
|
|
7229
|
+
}
|
|
7230
|
+
}
|
|
7231
|
+
else {
|
|
7232
|
+
this.contentAvailable = true;
|
|
7233
|
+
}
|
|
7234
|
+
return [2 /*return*/];
|
|
7235
|
+
});
|
|
7236
|
+
});
|
|
7237
|
+
};
|
|
7238
|
+
/**
|
|
7239
|
+
* @param {?} stripsResultDataMap
|
|
7240
|
+
* @param {?} key
|
|
7241
|
+
* @return {?}
|
|
7242
|
+
*/
|
|
7243
|
+
CommonStripComponent.prototype.getSelectedIndex = /**
|
|
7244
|
+
* @param {?} stripsResultDataMap
|
|
7245
|
+
* @param {?} key
|
|
7246
|
+
* @return {?}
|
|
7247
|
+
*/
|
|
7248
|
+
function (stripsResultDataMap, key) {
|
|
7249
|
+
/** @type {?} */
|
|
7250
|
+
var returnValue = 0;
|
|
7251
|
+
if (key === 'cbpPlan') {
|
|
7252
|
+
if (stripsResultDataMap.tabs.length) {
|
|
7253
|
+
/** @type {?} */
|
|
7254
|
+
var data = stripsResultDataMap.tabs.filter((/**
|
|
7255
|
+
* @param {?} ele
|
|
7256
|
+
* @return {?}
|
|
7257
|
+
*/
|
|
7258
|
+
function (ele) { return ele.value === 'upcoming'; }));
|
|
7259
|
+
returnValue = data[0].widgets && data[0].widgets.length > 0 ? 1 : 0;
|
|
7260
|
+
}
|
|
7261
|
+
}
|
|
7262
|
+
return returnValue;
|
|
7263
|
+
};
|
|
7264
|
+
/**
|
|
7265
|
+
* @private
|
|
7266
|
+
* @param {?} fetchStatus
|
|
7267
|
+
* @param {?} stripWidgetsCount
|
|
7268
|
+
* @return {?}
|
|
7269
|
+
*/
|
|
7270
|
+
CommonStripComponent.prototype.checkParentStatus = /**
|
|
7271
|
+
* @private
|
|
7272
|
+
* @param {?} fetchStatus
|
|
7273
|
+
* @param {?} stripWidgetsCount
|
|
7274
|
+
* @return {?}
|
|
7275
|
+
*/
|
|
7276
|
+
function (fetchStatus, stripWidgetsCount) {
|
|
7277
|
+
if (fetchStatus === 'done' && !stripWidgetsCount) {
|
|
7278
|
+
this.noDataCount += 1;
|
|
7279
|
+
}
|
|
7280
|
+
else if (fetchStatus === 'done' && stripWidgetsCount) {
|
|
7281
|
+
this.successDataCount += 1;
|
|
7282
|
+
}
|
|
7283
|
+
else if (fetchStatus === 'error') {
|
|
7284
|
+
this.errorDataCount += 1;
|
|
7285
|
+
}
|
|
7286
|
+
/** @type {?} */
|
|
7287
|
+
var settledCount = this.noDataCount + this.successDataCount + this.errorDataCount;
|
|
7288
|
+
/** @type {?} */
|
|
7289
|
+
var totalCount = this.widgetData.strips.length;
|
|
7290
|
+
if (this.successDataCount > 0 && settledCount < totalCount) {
|
|
7291
|
+
return;
|
|
7292
|
+
}
|
|
7293
|
+
this.showParentLoader = settledCount !== totalCount;
|
|
7294
|
+
this.showParentNoData =
|
|
7295
|
+
this.noDataCount > 0 && this.noDataCount + this.errorDataCount === totalCount;
|
|
7296
|
+
this.showParentError = this.errorDataCount === totalCount;
|
|
7297
|
+
};
|
|
7298
|
+
/**
|
|
7299
|
+
* @param {?} strip
|
|
7300
|
+
* @return {?}
|
|
7301
|
+
*/
|
|
7302
|
+
CommonStripComponent.prototype.checkForEmptyWidget = /**
|
|
7303
|
+
* @param {?} strip
|
|
7304
|
+
* @return {?}
|
|
7305
|
+
*/
|
|
7306
|
+
function (strip) {
|
|
7307
|
+
if (strip.request &&
|
|
7308
|
+
((strip.request.api && Object.keys(strip.request.api).length) ||
|
|
7309
|
+
(strip.request.search && Object.keys(strip.request.search).length) ||
|
|
7310
|
+
(strip.request.searchRegionRecommendation &&
|
|
7311
|
+
Object.keys(strip.request.searchRegionRecommendation).length) ||
|
|
7312
|
+
(strip.request.searchV6 && Object.keys(strip.request.searchV6).length) ||
|
|
7313
|
+
(strip.request.enrollmentList && Object.keys(strip.request.enrollmentList).length) ||
|
|
7314
|
+
(strip.request.cbpList && Object.keys(strip.request.cbpList).length) ||
|
|
7315
|
+
(strip.request.trendingSearch && Object.keys(strip.request.trendingSearch).length))) {
|
|
7316
|
+
return true;
|
|
7317
|
+
}
|
|
7318
|
+
return false;
|
|
7319
|
+
};
|
|
7320
|
+
/**
|
|
7321
|
+
* @param {?} tabEvent
|
|
7322
|
+
* @param {?} stripMap
|
|
7323
|
+
* @param {?} stripKey
|
|
7324
|
+
* @return {?}
|
|
7325
|
+
*/
|
|
7326
|
+
CommonStripComponent.prototype.tabClicked = /**
|
|
7327
|
+
* @param {?} tabEvent
|
|
7328
|
+
* @param {?} stripMap
|
|
7329
|
+
* @param {?} stripKey
|
|
7330
|
+
* @return {?}
|
|
7331
|
+
*/
|
|
7332
|
+
function (tabEvent, stripMap, stripKey) {
|
|
7333
|
+
};
|
|
7334
|
+
/**
|
|
7335
|
+
* @param {?} label
|
|
7336
|
+
* @param {?} type
|
|
7337
|
+
* @return {?}
|
|
7338
|
+
*/
|
|
7339
|
+
CommonStripComponent.prototype.translateLabels = /**
|
|
7340
|
+
* @param {?} label
|
|
7341
|
+
* @param {?} type
|
|
7342
|
+
* @return {?}
|
|
7343
|
+
*/
|
|
7344
|
+
function (label, type) {
|
|
7345
|
+
return this.langtranslations.translateLabel(label, type, '');
|
|
7346
|
+
};
|
|
7347
|
+
/**
|
|
7348
|
+
* @param {?} index
|
|
7349
|
+
* @param {?} item
|
|
7350
|
+
* @return {?}
|
|
7351
|
+
*/
|
|
7352
|
+
CommonStripComponent.prototype.identify = /**
|
|
7353
|
+
* @param {?} index
|
|
7354
|
+
* @param {?} item
|
|
7355
|
+
* @return {?}
|
|
7356
|
+
*/
|
|
7357
|
+
function (index, item) {
|
|
7358
|
+
if (index >= 0) { }
|
|
7359
|
+
return item;
|
|
7360
|
+
};
|
|
7361
|
+
/**
|
|
7362
|
+
* @param {?} index
|
|
7363
|
+
* @param {?} item
|
|
7364
|
+
* @return {?}
|
|
7365
|
+
*/
|
|
7366
|
+
CommonStripComponent.prototype.tracker = /**
|
|
7367
|
+
* @param {?} index
|
|
7368
|
+
* @param {?} item
|
|
7369
|
+
* @return {?}
|
|
7370
|
+
*/
|
|
7371
|
+
function (index, item) {
|
|
7372
|
+
if (index >= 0) { }
|
|
7373
|
+
return lodash.get(item, 'widgetData.content.identifier');
|
|
7374
|
+
};
|
|
7375
|
+
CommonStripComponent.decorators = [
|
|
7376
|
+
{ type: core.Component, args: [{
|
|
7377
|
+
selector: 'sb-uic-common-strip',
|
|
7378
|
+
template: "<ng-container *ngIf=\"!contentAvailable; else otherTemplate\"></ng-container>\n<ng-template #otherTemplate>\n <!-- <div *ngIf=\"showParentLoader\" class=\"text-center my-2\">\n <mat-spinner class=\"inline-block\"></mat-spinner>\n </div> -->\n <ng-container *ngIf=\"showParentError\" [sbUiResolverWidget]=\"widgetData.errorWidget\"></ng-container>\n <ng-container *ngIf=\"showParentNoData\" [sbUiResolverWidget]=\"widgetData.noDataWidget\"></ng-container>\n <ng-container *ngFor=\"let key of stripsKeyOrder; let i = index; trackBy: identify\">\n <ng-container *ngIf=\"isStripShowing(stripsResultDataMap[key])\">\n <a name=\"{{stripsResultDataMap[key]?.stripTitle}}\" [class]=\"key\">\n <div *ngIf=\"stripsResultDataMap && (getLength(stripsResultDataMap[key]) ||\n stripsResultDataMap[key]?.showOnNoData ||\n stripsResultDataMap[key]?.showOnLoader ||\n stripsResultDataMap[key]?.showOnError)\n \" [ngClass]=\"\n !widgetData?.isChannelStrip ? 'xs:px-8 sx:px-10ss' : i > 0 ? 'mt-12' : ''\n \" [id]=\"key\" [ngClass]=\"!widgetData?.isChannelStrip ? margin-bottom-custom : margin-bottom-xs\">\n <div [ngClass]=\"{ pad: stripsResultDataMap[key]?.stripBackground }\"\n [ngStyle]=\"{ 'background-color': stripsResultDataMap[key]?.stripBackground }\">\n <div class=\"flex flex-col pl-4 pr-4 md:pr-0 md:pl-0 \" [ngClass]=\"\n !widgetData?.isChannelStrip\n ? ''\n : stripsResultDataMap[key]?.stripTitle\n ? 'mb-8'\n : ''\n \">\n <div class=\"flex flex-1 items-center\">\n <p class=\"mat-subheading-1 margin-remove inline-block \" *ngIf=\"stripsResultDataMap[key]?.stripTitle\">\n <span class=\"capitalize\" *ngIf=\"stripsResultDataMap[key]?.disableTranslate\">\n {{stripsResultDataMap[key]?.stripTitle}}\n </span>\n <span *ngIf=\"!stripsResultDataMap[key]?.disableTranslate\">\n {{ translateLabels(stripsResultDataMap[key]?.stripTitle, 'home') }}\n </span>\n </p>\n\n <a *ngIf=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [routerLink]=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [queryParams]=\"stripsResultDataMap[key]?.stripTitleLink?.link?.queryParams\">\n <mat-icon class=\"ws-mat-primary-primary-text ws-mat-default-text\" [color]=\"'accent'\">{{\n stripsResultDataMap[key]?.stripTitleLink?.icon }}</mat-icon>\n </a>\n <span class=\"spacer\"></span>\n <!-- viewAll start-->\n <div *ngIf=\"checkCondition(widgetData , stripsResultDataMap[key])\"\n class=\"ml-4 view-more ws-mat-default-text\">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1\" [routerLink]=\"stripsResultDataMap[key]?.viewMoreUrl?.path\"\n [queryParams]=\"stripsResultDataMap[key]?.viewMoreUrl?.queryParams\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n <!-- viewAll end-->\n </div>\n <button mat-icon-button (click)=\"setHiddenForStrip(key)\" *ngIf=\"stripsResultDataMap[key]?.canHideStrip\">\n <mat-icon>close</mat-icon>\n </button>\n <mat-icon class=\"cursor-pointer\" *ngIf=\"stripsResultDataMap[key]?.mode === 'accordion' && isMobile\"\n (click)=\"showAccordionData = !showAccordionData\">{{ showAccordionData ? 'expand_less' : 'expand_more' }}\n </mat-icon>\n </div>\n\n <div class=\"mb-4\" *ngIf=\"checkVisible(stripsResultDataMap[key])\">\n <ng-container [sbUiResolverWidget]=\"getdata(stripsResultDataMap[key])\">\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnNoData\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.noDataWidget\"></ng-container>\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnError\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.errorWidget\"></ng-container>\n <!-- IF no errors then proceed to show tabs or non tabs strip -->\n <ng-container *ngIf=\"!stripsResultDataMap[key]?.showOnNoData && !stripsResultDataMap[key]?.showOnError\">\n <ng-container *ngIf=\"stripsResultDataMap[key].tabs && stripsResultDataMap[key].tabs.length\">\n <mat-tab-group animationDuration=\"0ms\" [selectedIndex]=\"getSelectedIndex(stripsResultDataMap[key], key)\"\n class=\"mat-tab-labels w-full strips-tabgroup\" dynamicHeight\n (selectedTabChange)=\"tabClicked($event, stripsResultDataMap[key], key)\">\n <mat-tab label=\"{{tab?.label}}\" *ngFor=\"let tab of stripsResultDataMap[key].tabs; let last = last;\">\n <ng-template mat-tab-label>\n <span>{{ translateLabels(tab?.label, 'home') }} </span>\n <span *ngIf=\"tab?.showTabDataCount && tab?.widgets?.length\">({{tab?.widgets?.length}})</span>\n </ng-template>\n <div>\n <!-- <ng-container [ngTemplateOutlet]=\"loader\" *ngIf=\"stripsResultDataMap[key]?.showOnLoader\">\n </ng-container> -->\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab.fetchTabStatus\"\n class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div *ngIf=\"((tab?.fetchTabStatus && tab?.fetchTabStatus === 'done') &&\n (!tab?.widgets || !tab?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.value === 'inprogress'; else msgTemp\">\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.svg\">\n <div class=\"mat-subheading-1 text-center info-content\">{{ 'contentstripmultiple.getReadyForLearningAdventure' | translate }} -\n <a class=\"click-here\" [routerLink]=\"'/page/learn'\">{{ 'contentstripmultiple.clickHere' | translate }}</a> {{ 'contentstripmultiple.toEnrollNextCourse' | translate }}</div>\n </div>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.png\">\n <div class=\"mat-subheading-1 text-center\">{{ translateLabels(tab.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n <ng-container *ngIf=\"(tab?.fetchTabStatus === 'done' || tab?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.tabLoading\">\n\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.widgets?.length\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.widgets| slice:0:(tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </ng-container>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n <ng-container *ngIf=\"!stripsResultDataMap[key].tabs || !stripsResultDataMap[key].tabs.length\">\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader\" class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [id]=\"key+'-scroller'\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div class=\"\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [id]=\"key+'-scroller'\"\n [widgetsLength]=\"stripsResultDataMap[key]?.widgets?.length\" [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.widgets| slice:0:(stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <!-- <ng-container *ngIf=\"widget.widgetData.context.pageSection === 'continueLearning' \"> -->\n <!-- <ng-container *ngIf=\"widget.widgetData.content.completionPercentage !== 100\"\n [sbUiResolverWidget]=\"widget\"></ng-container> -->\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n <!-- </ng-container> -->\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
|
|
7379
|
+
styles: [".view-more{display:flex;align-items:center;text-align:center;height:40px;justify-content:center}.view-more .icon{font-size:24px;width:24px;height:24px;border:1px solid;border-radius:50%;padding:8px;margin-bottom:8px}.margin-bottom-custom{margin-bottom:60px}.view-more:hover{background-color:#dcdfe5}::ng-deep.strips-tabgroup .mat-tab-header{border-bottom:2px solid rgba(0,0,0,.12)}::ng-deep.strips-tabgroup .mat-tab-body{padding:20px 0!important;box-sizing:border-box;overflow-y:initial!important}::ng-deep.strips-tabgroup .mat-tab-body-wrapper{overflow:inherit!important}::ng-deep.strips-tabgroup .mat-tab-label{border-bottom:0 solid rgba(0,0,0,.1);margin-right:0;opacity:1}::ng-deep.strips-tabgroup .mat-tab-label .mat-tab-label-content{text-transform:inherit;font:400 14px/20px Lato}::ng-deep.strips-tabgroup .mat-tab-label-active .mat-tab-label-content{font-weight:700!important}.click-here{color:#1b4ca1}.info-content{opacity:1;color:rgba(0,0,0,.87);font:700 14px/20px Lato-Bold;text-align:center}"]
|
|
7380
|
+
}] }
|
|
7381
|
+
];
|
|
7382
|
+
/** @nocollapse */
|
|
7383
|
+
CommonStripComponent.ctorParameters = function () { return [
|
|
7384
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
|
|
7385
|
+
{ type: WidgetContentService },
|
|
7386
|
+
{ type: utilsV2.LoggerService },
|
|
7387
|
+
{ type: utilsV2.EventService },
|
|
7388
|
+
{ type: utilsV2.ConfigurationsService },
|
|
7389
|
+
{ type: utilsV2.UtilityService },
|
|
7390
|
+
{ type: WidgetUserService },
|
|
7391
|
+
{ type: core$1.TranslateService },
|
|
7392
|
+
{ type: MultilingualTranslationsService },
|
|
7393
|
+
{ type: CommonMethodsService }
|
|
7394
|
+
]; };
|
|
7395
|
+
CommonStripComponent.propDecorators = {
|
|
7396
|
+
widgetData: [{ type: core.Input }],
|
|
7397
|
+
id: [{ type: core.HostBinding, args: ['id',] }]
|
|
7398
|
+
};
|
|
7399
|
+
return CommonStripComponent;
|
|
7400
|
+
}(resolverV2.WidgetBaseComponent));
|
|
7401
|
+
if (false) {
|
|
7402
|
+
/** @type {?} */
|
|
7403
|
+
CommonStripComponent.prototype.widgetData;
|
|
7404
|
+
/** @type {?} */
|
|
7405
|
+
CommonStripComponent.prototype.id;
|
|
7406
|
+
/** @type {?} */
|
|
7407
|
+
CommonStripComponent.prototype.stripsResultDataMap;
|
|
7408
|
+
/** @type {?} */
|
|
7409
|
+
CommonStripComponent.prototype.stripsKeyOrder;
|
|
7410
|
+
/** @type {?} */
|
|
7411
|
+
CommonStripComponent.prototype.showAccordionData;
|
|
7412
|
+
/** @type {?} */
|
|
7413
|
+
CommonStripComponent.prototype.showParentLoader;
|
|
7414
|
+
/** @type {?} */
|
|
7415
|
+
CommonStripComponent.prototype.showParentError;
|
|
7416
|
+
/** @type {?} */
|
|
7417
|
+
CommonStripComponent.prototype.showParentNoData;
|
|
7418
|
+
/** @type {?} */
|
|
7419
|
+
CommonStripComponent.prototype.errorDataCount;
|
|
7420
|
+
/** @type {?} */
|
|
7421
|
+
CommonStripComponent.prototype.noDataCount;
|
|
7422
|
+
/** @type {?} */
|
|
7423
|
+
CommonStripComponent.prototype.successDataCount;
|
|
7424
|
+
/** @type {?} */
|
|
7425
|
+
CommonStripComponent.prototype.contentAvailable;
|
|
7426
|
+
/** @type {?} */
|
|
7427
|
+
CommonStripComponent.prototype.baseUrl;
|
|
7428
|
+
/** @type {?} */
|
|
7429
|
+
CommonStripComponent.prototype.veifiedKarmayogi;
|
|
7430
|
+
/** @type {?} */
|
|
7431
|
+
CommonStripComponent.prototype.environment;
|
|
7432
|
+
/** @type {?} */
|
|
7433
|
+
CommonStripComponent.prototype.changeEventSubscription;
|
|
7434
|
+
/** @type {?} */
|
|
7435
|
+
CommonStripComponent.prototype.defaultMaxWidgets;
|
|
7436
|
+
/** @type {?} */
|
|
7437
|
+
CommonStripComponent.prototype.enrollInterval;
|
|
7438
|
+
/** @type {?} */
|
|
7439
|
+
CommonStripComponent.prototype.todaysEvents;
|
|
7440
|
+
/**
|
|
7441
|
+
* @type {?}
|
|
7442
|
+
* @private
|
|
7443
|
+
*/
|
|
7444
|
+
CommonStripComponent.prototype.contentSvc;
|
|
7445
|
+
/**
|
|
7446
|
+
* @type {?}
|
|
7447
|
+
* @private
|
|
7448
|
+
*/
|
|
7449
|
+
CommonStripComponent.prototype.loggerSvc;
|
|
7450
|
+
/**
|
|
7451
|
+
* @type {?}
|
|
7452
|
+
* @private
|
|
7453
|
+
*/
|
|
7454
|
+
CommonStripComponent.prototype.eventSvc;
|
|
7455
|
+
/**
|
|
7456
|
+
* @type {?}
|
|
7457
|
+
* @private
|
|
7458
|
+
*/
|
|
7459
|
+
CommonStripComponent.prototype.configSvc;
|
|
7460
|
+
/** @type {?} */
|
|
7461
|
+
CommonStripComponent.prototype.utilitySvc;
|
|
7462
|
+
/**
|
|
7463
|
+
* @type {?}
|
|
7464
|
+
* @private
|
|
7465
|
+
*/
|
|
7466
|
+
CommonStripComponent.prototype.userSvc;
|
|
7467
|
+
/**
|
|
7468
|
+
* @type {?}
|
|
7469
|
+
* @private
|
|
7470
|
+
*/
|
|
7471
|
+
CommonStripComponent.prototype.translate;
|
|
7472
|
+
/**
|
|
7473
|
+
* @type {?}
|
|
7474
|
+
* @private
|
|
7475
|
+
*/
|
|
7476
|
+
CommonStripComponent.prototype.langtranslations;
|
|
7477
|
+
/**
|
|
7478
|
+
* @type {?}
|
|
7479
|
+
* @private
|
|
7480
|
+
*/
|
|
7481
|
+
CommonStripComponent.prototype.commonMethodsSvc;
|
|
7482
|
+
}
|
|
7483
|
+
|
|
7484
|
+
/**
|
|
7485
|
+
* @fileoverview added by tsickle
|
|
7486
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7487
|
+
*/
|
|
7488
|
+
var ɵ0$2 = HttpLoaderFactory;
|
|
7489
|
+
var CommonStripModule = /** @class */ (function () {
|
|
7490
|
+
function CommonStripModule() {
|
|
7491
|
+
}
|
|
7492
|
+
CommonStripModule.decorators = [
|
|
7493
|
+
{ type: core.NgModule, args: [{
|
|
7494
|
+
declarations: [CommonStripComponent],
|
|
7495
|
+
imports: [
|
|
7496
|
+
resolverV2.SbUiResolverModule,
|
|
7497
|
+
common.CommonModule,
|
|
7498
|
+
router.RouterModule,
|
|
7499
|
+
HorizontalScrollerV2Module,
|
|
7500
|
+
material.MatProgressSpinnerModule,
|
|
7501
|
+
material.MatToolbarModule,
|
|
7502
|
+
material.MatIconModule,
|
|
7503
|
+
material.MatButtonModule,
|
|
7504
|
+
material.MatTooltipModule,
|
|
7505
|
+
material.MatListModule,
|
|
7506
|
+
material.MatSidenavModule,
|
|
7507
|
+
material.MatCardModule,
|
|
7508
|
+
material.MatExpansionModule,
|
|
7509
|
+
material.MatRadioModule,
|
|
7510
|
+
material.MatChipsModule,
|
|
7511
|
+
material.MatInputModule,
|
|
7512
|
+
material.MatFormFieldModule,
|
|
7513
|
+
material.MatDialogModule,
|
|
7514
|
+
material.MatSnackBarModule,
|
|
7515
|
+
material.MatSelectModule,
|
|
7516
|
+
material.MatDatepickerModule,
|
|
7517
|
+
material.MatNativeDateModule,
|
|
7518
|
+
material.MatTableModule,
|
|
7519
|
+
material.MatCheckboxModule,
|
|
7520
|
+
material.MatProgressSpinnerModule,
|
|
7521
|
+
material.MatButtonToggleModule,
|
|
7522
|
+
material.MatTabsModule,
|
|
7523
|
+
material.MatAutocompleteModule,
|
|
7524
|
+
core$1.TranslateModule.forRoot({
|
|
7525
|
+
loader: {
|
|
7526
|
+
provide: core$1.TranslateLoader,
|
|
7527
|
+
useFactory: ɵ0$2,
|
|
7528
|
+
deps: [http.HttpClient],
|
|
7529
|
+
},
|
|
7530
|
+
}),
|
|
7531
|
+
],
|
|
7532
|
+
exports: [CommonStripComponent]
|
|
7533
|
+
},] }
|
|
7534
|
+
];
|
|
7535
|
+
return CommonStripModule;
|
|
7536
|
+
}());
|
|
7537
|
+
|
|
7538
|
+
/**
|
|
7539
|
+
* @fileoverview added by tsickle
|
|
7540
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7541
|
+
*/
|
|
7542
|
+
var ConsumptionModule = /** @class */ (function () {
|
|
7543
|
+
function ConsumptionModule() {
|
|
7544
|
+
}
|
|
7545
|
+
ConsumptionModule.decorators = [
|
|
7546
|
+
{ type: core.NgModule, args: [{
|
|
7547
|
+
declarations: [ConsumptionComponent],
|
|
7548
|
+
imports: [
|
|
7549
|
+
ContentStripWithTabsLibModule,
|
|
7550
|
+
SlidersLibModule
|
|
7551
|
+
],
|
|
7552
|
+
exports: [ConsumptionComponent,
|
|
7553
|
+
ContentStripWithTabsLibModule,
|
|
7554
|
+
SlidersLibModule,
|
|
7555
|
+
DataPointsModule,
|
|
7556
|
+
CalenderModule,
|
|
7557
|
+
CommonStripModule
|
|
7558
|
+
],
|
|
7559
|
+
},] }
|
|
7560
|
+
];
|
|
7561
|
+
return ConsumptionModule;
|
|
7562
|
+
}());
|
|
7563
|
+
|
|
7564
|
+
/**
|
|
7565
|
+
* @fileoverview added by tsickle
|
|
7566
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7567
|
+
*/
|
|
7568
|
+
/** @type {?} */
|
|
7569
|
+
var ROOT_WIDGET_CONFIG = {
|
|
7570
|
+
card: {
|
|
7571
|
+
_type: 'cardLib',
|
|
7572
|
+
cardResource: 'cardContentLib'
|
|
7573
|
+
},
|
|
7574
|
+
};
|
|
7575
|
+
|
|
7576
|
+
/**
|
|
7577
|
+
* @fileoverview added by tsickle
|
|
7578
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7579
|
+
*/
|
|
7580
|
+
var NsCardContent$1;
|
|
7581
|
+
(function (NsCardContent) {
|
|
7582
|
+
/**
|
|
7583
|
+
* @record
|
|
7584
|
+
*/
|
|
7585
|
+
function ICard() { }
|
|
7586
|
+
NsCardContent.ICard = ICard;
|
|
7587
|
+
if (false) {
|
|
7588
|
+
/** @type {?} */
|
|
7589
|
+
ICard.prototype.content;
|
|
7590
|
+
/** @type {?} */
|
|
7591
|
+
ICard.prototype.cardSubType;
|
|
7592
|
+
/** @type {?} */
|
|
7593
|
+
ICard.prototype.context;
|
|
7594
|
+
/** @type {?|undefined} */
|
|
7595
|
+
ICard.prototype.intranetMode;
|
|
7596
|
+
/** @type {?|undefined} */
|
|
7597
|
+
ICard.prototype.deletedMode;
|
|
7598
|
+
/** @type {?|undefined} */
|
|
7599
|
+
ICard.prototype.likes;
|
|
7600
|
+
/** @type {?|undefined} */
|
|
7601
|
+
ICard.prototype.contentTags;
|
|
7602
|
+
/** @type {?} */
|
|
7603
|
+
ICard.prototype.stateData;
|
|
7604
|
+
/** @type {?|undefined} */
|
|
7605
|
+
ICard.prototype.cardCustomeClass;
|
|
7606
|
+
}
|
|
7607
|
+
/**
|
|
7608
|
+
* @record
|
|
7609
|
+
*/
|
|
7610
|
+
function IContentTags() { }
|
|
7611
|
+
NsCardContent.IContentTags = IContentTags;
|
|
7612
|
+
if (false) {
|
|
7613
|
+
/** @type {?|undefined} */
|
|
7614
|
+
IContentTags.prototype.daysSpan;
|
|
7615
|
+
/** @type {?|undefined} */
|
|
7616
|
+
IContentTags.prototype.excludeContentType;
|
|
7617
|
+
/** @type {?|undefined} */
|
|
7618
|
+
IContentTags.prototype.excludeMimeType;
|
|
7619
|
+
/** @type {?} */
|
|
7620
|
+
IContentTags.prototype.tag;
|
|
7621
|
+
/** @type {?|undefined} */
|
|
7622
|
+
IContentTags.prototype.criteriaField;
|
|
7623
|
+
}
|
|
7624
|
+
var EContentStatus;
|
|
7625
|
+
(function (EContentStatus) {
|
|
7626
|
+
EContentStatus["LIVE"] = "Live";
|
|
7627
|
+
EContentStatus["EXPIRED"] = "Expired";
|
|
7628
|
+
EContentStatus["DELETED"] = "Deleted";
|
|
7629
|
+
EContentStatus["MARK_FOR_DELETION"] = "MarkedForDeletion";
|
|
7630
|
+
})(EContentStatus = NsCardContent.EContentStatus || (NsCardContent.EContentStatus = {}));
|
|
7631
|
+
var ACBPConst;
|
|
7632
|
+
(function (ACBPConst) {
|
|
7633
|
+
ACBPConst["UPCOMING"] = "upcoming";
|
|
7634
|
+
ACBPConst["ALL"] = "All";
|
|
7635
|
+
ACBPConst["OVERDUE"] = "overdue";
|
|
7636
|
+
ACBPConst["SUCCESS"] = "success";
|
|
7637
|
+
})(ACBPConst = NsCardContent.ACBPConst || (NsCardContent.ACBPConst = {}));
|
|
7638
|
+
var IGOTConst;
|
|
7639
|
+
(function (IGOTConst) {
|
|
7640
|
+
IGOTConst["COMPETENCIES"] = "competencies_v5";
|
|
7641
|
+
IGOTConst["RETIRED"] = "Retired";
|
|
7642
|
+
})(IGOTConst = NsCardContent.IGOTConst || (NsCardContent.IGOTConst = {}));
|
|
7643
|
+
})(NsCardContent$1 || (NsCardContent$1 = {}));
|
|
7644
|
+
|
|
7645
|
+
/**
|
|
7646
|
+
* @fileoverview added by tsickle
|
|
7647
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7648
|
+
*/
|
|
7649
|
+
var CardsComponent = /** @class */ (function (_super) {
|
|
7650
|
+
__extends(CardsComponent, _super);
|
|
7651
|
+
function CardsComponent(utilitySvc, configSvc, contSvc, router) {
|
|
7652
|
+
var _this = _super.call(this) || this;
|
|
7653
|
+
_this.utilitySvc = utilitySvc;
|
|
7654
|
+
_this.configSvc = configSvc;
|
|
7655
|
+
_this.contSvc = contSvc;
|
|
7656
|
+
_this.router = router;
|
|
7657
|
+
_this.isIntranetAllowedSettings = false;
|
|
7658
|
+
return _this;
|
|
7659
|
+
}
|
|
7660
|
+
/**
|
|
7661
|
+
* @return {?}
|
|
7662
|
+
*/
|
|
7663
|
+
CardsComponent.prototype.ngOnInit = /**
|
|
7664
|
+
* @return {?}
|
|
7665
|
+
*/
|
|
7666
|
+
function () {
|
|
7667
|
+
};
|
|
7668
|
+
Object.defineProperty(CardsComponent.prototype, "isLiveOrMarkForDeletion", {
|
|
7669
|
+
get: /**
|
|
7670
|
+
* @return {?}
|
|
7671
|
+
*/
|
|
7672
|
+
function () {
|
|
7673
|
+
if (!this.widgetData.content.status ||
|
|
7674
|
+
this.widgetData.content.status === 'Live' ||
|
|
7675
|
+
this.widgetData.content.status === 'MarkedForDeletion') {
|
|
7676
|
+
return true;
|
|
7677
|
+
}
|
|
7678
|
+
return false;
|
|
7679
|
+
},
|
|
7680
|
+
enumerable: true,
|
|
7681
|
+
configurable: true
|
|
7682
|
+
});
|
|
7683
|
+
Object.defineProperty(CardsComponent.prototype, "showIntranetContent", {
|
|
7684
|
+
get: /**
|
|
7685
|
+
* @return {?}
|
|
7686
|
+
*/
|
|
7687
|
+
function () {
|
|
7688
|
+
if (this.widgetData.content.isInIntranet && this.utilitySvc.isMobile) {
|
|
7689
|
+
return !this.isIntranetAllowedSettings;
|
|
7690
|
+
}
|
|
7691
|
+
return false;
|
|
7692
|
+
},
|
|
7693
|
+
enumerable: true,
|
|
7694
|
+
configurable: true
|
|
7695
|
+
});
|
|
7696
|
+
/**
|
|
7697
|
+
* @param {?} content
|
|
7698
|
+
* @return {?}
|
|
7699
|
+
*/
|
|
7700
|
+
CardsComponent.prototype.getRedirectUrlData = /**
|
|
7701
|
+
* @param {?} content
|
|
7702
|
+
* @return {?}
|
|
7703
|
+
*/
|
|
7704
|
+
function (content) {
|
|
7705
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7706
|
+
var urlData;
|
|
7707
|
+
return __generator(this, function (_a) {
|
|
7708
|
+
switch (_a.label) {
|
|
7709
|
+
case 0: return [4 /*yield*/, this.contSvc.getResourseLink(content)];
|
|
7710
|
+
case 1:
|
|
7711
|
+
urlData = _a.sent();
|
|
7712
|
+
this.router.navigate([urlData.url], {
|
|
7713
|
+
queryParams: urlData.queryParams
|
|
7714
|
+
});
|
|
7715
|
+
return [2 /*return*/];
|
|
7716
|
+
}
|
|
7717
|
+
});
|
|
7718
|
+
});
|
|
7719
|
+
};
|
|
7720
|
+
CardsComponent.decorators = [
|
|
7721
|
+
{ type: core.Component, args: [{
|
|
7722
|
+
selector: 'sb-uic-cards',
|
|
7723
|
+
template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-landscape>\n</ng-template>\n\n\n <ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n </ng-template>\n",
|
|
7724
|
+
styles: [""]
|
|
7725
|
+
}] }
|
|
7726
|
+
];
|
|
7727
|
+
/** @nocollapse */
|
|
7728
|
+
CardsComponent.ctorParameters = function () { return [
|
|
7729
|
+
{ type: utilsV2.UtilityService },
|
|
7730
|
+
{ type: ConfigurationsService },
|
|
6758
7731
|
{ type: WidgetContentService },
|
|
6759
7732
|
{ type: router.Router }
|
|
6760
7733
|
]; };
|
|
@@ -7433,9 +8406,9 @@
|
|
|
7433
8406
|
this.events.raiseInteractTelemetry({
|
|
7434
8407
|
type: 'click',
|
|
7435
8408
|
subType: this.widgetType + "-" + this.widgetSubType,
|
|
7436
|
-
id: lodash.camelCase(this.widgetData.
|
|
8409
|
+
id: lodash.camelCase(this.widgetData.content.userId) + "-card",
|
|
7437
8410
|
}, {
|
|
7438
|
-
id: this.widgetData.
|
|
8411
|
+
id: this.widgetData.content.userId,
|
|
7439
8412
|
// type: this.widgetData.user.primaryCategory,
|
|
7440
8413
|
//context: this.widgetData.context,
|
|
7441
8414
|
rollup: {},
|
|
@@ -7447,8 +8420,8 @@
|
|
|
7447
8420
|
CardUserComponent.decorators = [
|
|
7448
8421
|
{ type: core.Component, args: [{
|
|
7449
8422
|
selector: 'sb-uic-card-user',
|
|
7450
|
-
template: "<mat-card class=\"card-users-container mr-5 padding-remove cursor-pointer\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData.
|
|
7451
|
-
styles: [".card-users-container{position:relative;width:
|
|
8423
|
+
template: "<mat-card class=\"user-card card-users-container mr-5 padding-remove cursor-pointer\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"raiseTelemetry();$event.stopPropagation()\" role=\"link\"\n i18n-aria-label>\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData.content.image\">\n <img mat-card-image [src]=\"widgetData.content.image\"\n loading=\"lazy\" class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [wsUtilsDefaultThumbnail]=\"defaultThumbnail\" [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.image\">\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"padding-m\">\n <div class=\"user_widget flex margin-remove\">\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.userId\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData?.content?.name }}\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <p class=\"whitespace-normal description-text\">\n {{ widgetData?.content?.description }}\n </p>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>",
|
|
8424
|
+
styles: [".card-users-container{position:relative;width:282px;min-height:281px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:281px;margin:16px 8px}.card-users-container .course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.card-users-container .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-users-container .course_logo_box p{display:inline-block;vertical-align:top}.card-users-container .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-users-container mat-card-content{background:#fff}.card-users-container .card-img{min-width:245px;max-height:140px;min-height:140px;display:block;-o-object-fit:fill;object-fit:fill;border-top-left-radius:8px;border-top-right-radius:8px;width:100%}.card-users-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-users-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-users-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-users-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-users-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-users-container .basic{margin:auto 0}.card-users-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;min-height:24px}.card-users-container .description-text{position:relative;overflow:hidden;height:63px;white-space:normal;text-overflow:ellipsis}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}"]
|
|
7452
8425
|
}] }
|
|
7453
8426
|
];
|
|
7454
8427
|
/** @nocollapse */
|
|
@@ -8152,8 +9125,8 @@
|
|
|
8152
9125
|
CompetencyPassbookComponent.decorators = [
|
|
8153
9126
|
{ type: core.Component, args: [{
|
|
8154
9127
|
selector: 'sb-uic-competency-passbook',
|
|
8155
|
-
template: " <div class=\"competency-title\">{{objectData?.title}} \n <span class=\"competency-count\">\n ({{competencyStrength}})\n </span>\n</div>\n<div class=\"flex items-center justify-center gap-8 mt-5 mb-5 competency-filters\">\n <sb-uic-pills [pillsData]=\"competencyArea\" \n [isLoading]=\"loadCompetencyArea\" (pillClick)=\"competencyChange($event)\" [selectedValue]=\"selectedValue\"></sb-uic-pills>\n</div>\n<div class=\"grid grid-cols-1 md:grid-cols-3 w-full grid-flow-row gap-5\" *ngIf=\"!loadCometency\">\n <div *ngFor=\"let obj of competencyTheme| slice:0:competencyThemeLength\">\n <div class=\"flex-1 flex-col\">\n <div class=\"competency-theme\"></div>\n <div class=\"details flex flex-col\">\n <div class=\"flex flex-col p-4\">\n <div class=\"flex flex-row cursor-pointer\">\n <div class=\"flex flex-row gap-2 items-center\">\n <div class=\"name\">{{allcompetencyTheme[obj?.name]?.name}}</div>\n <!-- <div class=\"flex items-baseline\">\n <img src=\"assets/icons/competency/cp-arrow.svg\" class=\"arrow-img cursor-pointer\" alt=\"cp arrow img\" (click)=\"navigateToCompetency(obj)\" />\n </div> -->\n </div>\n </div>\n <div class=\"flex flex-row pt-3 pb-3 description\">\n {{ allcompetencyTheme[obj.name]?.description }} \n </div>\n <div class=\"flex flex-row gap-3 items-center\">\n <mat-icon class=\"content-icon\">school</mat-icon>\n <div class=\"no-of-contents\">{{obj.count}} Contents</div>\n </div>\n <div class=\"line mt-3 mt-2\"></div>\n <div class=\"flex flex-wrap gap-3 pt-4 chip-container\">\n <ng-container *ngFor=\"let child of allcompetencyTheme[obj.name]?.children| slice:0: allcompetencyTheme[obj.name]?.viewMore ? allcompetencyTheme[obj.name]?.children?.length : 3; let i = index\">\n <div class=\"chip rounded-full p-2 text-xs chip-ellipsis\" [title]=\"child?.name\" >\n {{ child.name }}\n </div>\n </ng-container>\n <div class=\"p-2 info-btn cursor-pointer\"\n *ngIf=\"allcompetencyTheme[obj.name]?.children.length > 3 && !allcompetencyTheme[obj.name]?.viewMore\" (click)=\"viewMoreChildren(allcompetencyTheme[obj.name])\">\n View more\n </div>\n <div class=\"p-2 info-btn cursor-pointer\"\n *ngIf=\"allcompetencyTheme[obj.name]?.children.length > 3 && allcompetencyTheme[obj.name]?.viewMore\" (click)=\"viewMoreChildren(allcompetencyTheme[obj.name])\">\n View less\n </div>\n </div>\n </div> \n </div>\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"competencyTheme.length > 6 && !loadCometency\">\n <div class=\"flex items-center justify-center gap-8 mt-5 mb-5 competency-filters\">\n <sb-uic-pills [pillsData]=\"showAllTheme\" (pillClick)=\"displayAllTheme($event)\"></sb-uic-pills>\n </div>\n</ng-container> \n\n<ng-container *ngIf=\"loadCometency\">\n\n<div class=\"grid grid-cols-1 md:grid-cols-3 w-full grid-flow-row gap-5\">\n <div *ngFor=\"let obj of [0,1,2,3,4,5]\">\n <div class=\"flex-1 flex-col\">\n <div class=\"competency-theme\"></div>\n <div class=\"details flex flex-col\">\n <div class=\"flex flex-col p-4\">\n <div class=\"flex flex-row cursor-pointer\">\n <div class=\"flex flex-row gap-2 items-center w-full\">\n <div class=\"name w-full\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-2'\" [width]=\"'100%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded'\" [width]=\"'80%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n <div class=\"pt-3 pb-3 description\">\n <sb-uic-skeleton-loader class=\"w-full\" [bindingClass]=\"'flex rounded mb-2'\" [width]=\"'100%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader class=\"w-full\" [bindingClass]=\"'flex rounded'\" [width]=\"'80%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-row gap-3 items-center\">\n <mat-icon class=\"content-icon\"><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-2'\" [width]=\"'24px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader></mat-icon>\n <div class=\"no-of-contents\"><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader></div>\n </div>\n <div class=\"line mt-3 mt-2\"></div>\n <div class=\"flex flex-wrap gap-3 pt-4 chip-container\">\n <sb-uic-skeleton-loader class=\"w-2/5\" [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader class=\"w-2/5\" [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader class=\"w-2/5\" [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div> \n </div>\n </div>\n </div>\n</div>\n</ng-container>",
|
|
8156
|
-
styles: [".competencies-backgroud{background-color:#1b2133}.competency-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left;color:#fff}.competency-count{color:#f3962f}.filter-button{padding:12px 16px;border-radius:50px;border:1px solid #fff;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;background-color:transparent;color:#fff;cursor:pointer}.filter-button.active{background:#1b4ca1}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-background{background:#1b4ca1}.competency-theme{height:16px;border-top-left-radius:12px;border-top-right-radius:12px;background-color:#f8b861}.details{background-color:#fff;border-radius:12px;position:relative;top:-8px;min-height:278px}.name{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.description{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left;height:42px;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.no-of-contents{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;color:#1b4ca1}.content-icon{color:#1b4ca1}.line{border-top:1px solid #e2dddd}.chip{padding:8px 16px;gap:8px;border-radius:50px;border:1px solid #1b4ca1;color:#1b4ca1;font-family:Lato;font-size:14px;font-weight:700;text-align:center}.chip-ellipsis{white-space:nowrap;max-width:110px;overflow:hidden;text-overflow:ellipsis}.info-btn{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;opacity:.7;padding:12px 5px}.hide{display:none}.behavioral{background-color:#f8b861}.functional{background-color:#e24577}.domain{background-color:#7b47a4}"]
|
|
9128
|
+
template: " <div class=\"competency-title\">{{objectData?.title}} \n <span class=\"competency-count\">\n ({{competencyStrength}})\n </span>\n</div>\n<div class=\"flex items-center justify-center gap-8 mt-5 mb-5 competency-filters\">\n <sb-uic-pills [pillsData]=\"competencyArea\" \n [isLoading]=\"loadCompetencyArea\" (pillClick)=\"competencyChange($event)\" [selectedValue]=\"selectedValue\"></sb-uic-pills>\n</div>\n<div class=\"grid grid-cols-1 md:grid-cols-3 w-full grid-flow-row gap-5\" *ngIf=\"!loadCometency\">\n <div class=\"competency-card\" *ngFor=\"let obj of competencyTheme| slice:0:competencyThemeLength\">\n <div class=\"flex-1 flex-col\">\n <div class=\"competency-theme\"></div>\n <div class=\"details flex flex-col\">\n <div class=\"flex flex-col p-4\">\n <div class=\"flex flex-row cursor-pointer\">\n <div class=\"flex flex-row gap-2 items-center\">\n <div class=\"name\">{{allcompetencyTheme[obj?.name]?.name}}</div>\n <!-- <div class=\"flex items-baseline\">\n <img src=\"assets/icons/competency/cp-arrow.svg\" class=\"arrow-img cursor-pointer\" alt=\"cp arrow img\" (click)=\"navigateToCompetency(obj)\" />\n </div> -->\n </div>\n </div>\n <div class=\"flex flex-row pt-3 pb-3 description\">\n {{ allcompetencyTheme[obj.name]?.description }} \n </div>\n <div class=\"flex flex-row gap-3 items-center\">\n <mat-icon class=\"content-icon\">school</mat-icon>\n <div class=\"no-of-contents\">{{obj.count}} Contents</div>\n </div>\n <div class=\"line mt-3 mt-2\"></div>\n <div class=\"flex flex-wrap gap-3 pt-4 chip-container\">\n <ng-container *ngFor=\"let child of allcompetencyTheme[obj.name]?.children| slice:0: allcompetencyTheme[obj.name]?.viewMore ? allcompetencyTheme[obj.name]?.children?.length : 3; let i = index\">\n <div class=\"chip rounded-full p-2 text-xs chip-ellipsis\" [title]=\"child?.name\" >\n {{ child.name }}\n </div>\n </ng-container>\n <div class=\"p-2 info-btn cursor-pointer\"\n *ngIf=\"allcompetencyTheme[obj.name]?.children.length > 3 && !allcompetencyTheme[obj.name]?.viewMore\" (click)=\"viewMoreChildren(allcompetencyTheme[obj.name])\">\n View more\n </div>\n <div class=\"p-2 info-btn cursor-pointer\"\n *ngIf=\"allcompetencyTheme[obj.name]?.children.length > 3 && allcompetencyTheme[obj.name]?.viewMore\" (click)=\"viewMoreChildren(allcompetencyTheme[obj.name])\">\n View less\n </div>\n </div>\n </div> \n </div>\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"competencyTheme.length > 6 && !loadCometency\">\n <div class=\"flex items-center justify-center gap-8 mt-5 mb-5 competency-filters\">\n <sb-uic-pills [pillsData]=\"showAllTheme\" (pillClick)=\"displayAllTheme($event)\"></sb-uic-pills>\n </div>\n</ng-container> \n\n<ng-container *ngIf=\"loadCometency\">\n\n<div class=\"grid grid-cols-1 md:grid-cols-3 w-full grid-flow-row gap-5\">\n <div *ngFor=\"let obj of [0,1,2,3,4,5]\">\n <div class=\"flex-1 flex-col\">\n <div class=\"competency-theme\"></div>\n <div class=\"details flex flex-col\">\n <div class=\"flex flex-col p-4\">\n <div class=\"flex flex-row cursor-pointer\">\n <div class=\"flex flex-row gap-2 items-center w-full\">\n <div class=\"name w-full\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-2'\" [width]=\"'100%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded'\" [width]=\"'80%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n <div class=\"pt-3 pb-3 description\">\n <sb-uic-skeleton-loader class=\"w-full\" [bindingClass]=\"'flex rounded mb-2'\" [width]=\"'100%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader class=\"w-full\" [bindingClass]=\"'flex rounded'\" [width]=\"'80%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-row gap-3 items-center\">\n <mat-icon class=\"content-icon\"><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-2'\" [width]=\"'24px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader></mat-icon>\n <div class=\"no-of-contents\"><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader></div>\n </div>\n <div class=\"line mt-3 mt-2\"></div>\n <div class=\"flex flex-wrap gap-3 pt-4 chip-container\">\n <sb-uic-skeleton-loader class=\"w-2/5\" [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader class=\"w-2/5\" [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader class=\"w-2/5\" [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div> \n </div>\n </div>\n </div>\n</div>\n</ng-container>",
|
|
9129
|
+
styles: [".competencies-backgroud{background-color:#1b2133}.competency-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left;color:#fff}.competency-count{color:#f3962f}.filter-button{padding:12px 16px;border-radius:50px;border:1px solid #fff;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;background-color:transparent;color:#fff;cursor:pointer}.filter-button.active{background:#1b4ca1}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-background{background:#1b4ca1}.competency-theme{height:16px;border-top-left-radius:12px;border-top-right-radius:12px;background-color:#f8b861}.details{background-color:#fff;border-radius:12px;position:relative;top:-8px;min-height:278px}.name{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.description{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left;height:42px;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.no-of-contents{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;color:#1b4ca1}.content-icon{color:#1b4ca1}.line{border-top:1px solid #e2dddd}.chip{padding:8px 16px;gap:8px;border-radius:50px;border:1px solid #1b4ca1;color:#1b4ca1;font-family:Lato;font-size:14px;font-weight:700;text-align:center}.chip-ellipsis{white-space:nowrap;max-width:110px;overflow:hidden;text-overflow:ellipsis}.info-btn{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;opacity:.7;padding:12px 5px}.hide{display:none}.behavioral{background-color:#f8b861}.functional{background-color:#e24577}.domain{background-color:#7b47a4}.competency-card{z-index:999}"]
|
|
8157
9130
|
}] }
|
|
8158
9131
|
];
|
|
8159
9132
|
/** @nocollapse */
|
|
@@ -8238,7 +9211,7 @@
|
|
|
8238
9211
|
PillsComponent.decorators = [
|
|
8239
9212
|
{ type: core.Component, args: [{
|
|
8240
9213
|
selector: 'sb-uic-pills',
|
|
8241
|
-
template: "<ng-container *ngIf=\"!isLoading\">\n <mat-chip-list >\n <ng-container *ngFor=\"let pill of pillsData\">\n <mat-chip class=\"competency-chip\" (click)=\"selectedPill(pill)\" \n [ngClass]=\"{'active': selectedValue === pill?.name}\">\n <span class=\"pill-name\">{{pill?.name | titlecase}} <span>{{pill?.count}}</span></span>\n </mat-chip>\n </ng-container>\n </mat-chip-list>\n</ng-container>\n<ng-container *ngIf=\"isLoading\">\n <div class=\"flex gap-4\">\n <ng-container *ngFor=\"let pill of [0,1,2]\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n</ng-container>\n",
|
|
9214
|
+
template: "<ng-container *ngIf=\"!isLoading\">\n <mat-chip-list >\n <ng-container *ngFor=\"let pill of pillsData\">\n <mat-chip class=\"competency-chip\" (click)=\"selectedPill(pill)\" \n [ngClass]=\"{'active': selectedValue === pill?.name}\">\n <span class=\"pill-name\">{{pill?.name | titlecase}} <span *ngIf=\"pill?.count\">({{pill?.count}})</span></span>\n </mat-chip>\n </ng-container>\n </mat-chip-list>\n</ng-container>\n<ng-container *ngIf=\"isLoading\">\n <div class=\"flex gap-4\">\n <ng-container *ngFor=\"let pill of [0,1,2]\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n</ng-container>\n",
|
|
8242
9215
|
styles: [".competency-chip{padding:12px 16px;border-radius:50px;border:1px solid #fff;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;background-color:transparent!important;cursor:pointer}.competency-chip .pill-name{color:#fff!important}.active{background-color:#1b4ca1!important}"]
|
|
8243
9216
|
}] }
|
|
8244
9217
|
];
|
|
@@ -8308,77 +9281,10 @@
|
|
|
8308
9281
|
return CompetencyPassbookModule;
|
|
8309
9282
|
}());
|
|
8310
9283
|
|
|
8311
|
-
|
|
8312
|
-
* @fileoverview added by tsickle
|
|
8313
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8314
|
-
*/
|
|
8315
|
-
var CommonMethodsService = /** @class */ (function () {
|
|
8316
|
-
function CommonMethodsService() {
|
|
8317
|
-
}
|
|
8318
|
-
/**
|
|
8319
|
-
* @param {?} contents
|
|
8320
|
-
* @param {?} strip
|
|
8321
|
-
* @return {?}
|
|
8322
|
-
*/
|
|
8323
|
-
CommonMethodsService.prototype.transformContentsToWidgets = /**
|
|
8324
|
-
* @param {?} contents
|
|
8325
|
-
* @param {?} strip
|
|
8326
|
-
* @return {?}
|
|
8327
|
-
*/
|
|
8328
|
-
function (contents, strip) {
|
|
8329
|
-
return (contents || []).map((/**
|
|
8330
|
-
* @param {?} content
|
|
8331
|
-
* @param {?} idx
|
|
8332
|
-
* @return {?}
|
|
8333
|
-
*/
|
|
8334
|
-
function (content, idx) { return (content ? {
|
|
8335
|
-
widgetType: 'cardLib',
|
|
8336
|
-
widgetSubType: 'cardContentLib',
|
|
8337
|
-
widgetHostClass: 'mb-2',
|
|
8338
|
-
widgetData: __assign({ content: content }, (content.batch && { batch: content.batch }), { cardSubType: strip.stripConfig && strip.stripConfig.cardSubType, cardCustomeClass: strip.customeClass ? strip.customeClass : '', context: { pageSection: strip.key, position: idx }, intranetMode: strip.stripConfig && strip.stripConfig.intranetMode, deletedMode: strip.stripConfig && strip.stripConfig.deletedMode, contentTags: strip.stripConfig && strip.stripConfig.contentTags }),
|
|
8339
|
-
} : {
|
|
8340
|
-
widgetType: 'card',
|
|
8341
|
-
widgetSubType: 'cardContent',
|
|
8342
|
-
widgetHostClass: 'mb-2',
|
|
8343
|
-
widgetData: {},
|
|
8344
|
-
}); }));
|
|
8345
|
-
};
|
|
8346
|
-
/**
|
|
8347
|
-
* @param {?} strip
|
|
8348
|
-
* @return {?}
|
|
8349
|
-
*/
|
|
8350
|
-
CommonMethodsService.prototype.transformSkeletonToWidgets = /**
|
|
8351
|
-
* @param {?} strip
|
|
8352
|
-
* @return {?}
|
|
8353
|
-
*/
|
|
8354
|
-
function (strip) {
|
|
8355
|
-
return [1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10].map((/**
|
|
8356
|
-
* @param {?} _content
|
|
8357
|
-
* @return {?}
|
|
8358
|
-
*/
|
|
8359
|
-
function (_content) { return ({
|
|
8360
|
-
widgetType: 'cardLib',
|
|
8361
|
-
widgetSubType: 'cardContentLib',
|
|
8362
|
-
widgetHostClass: 'mb-2',
|
|
8363
|
-
widgetData: {
|
|
8364
|
-
cardSubType: strip.loaderConfig && strip.loaderConfig.cardSubType || 'card-standard-skeleton',
|
|
8365
|
-
cardCustomeClass: strip.customeClass ? strip.customeClass : '',
|
|
8366
|
-
},
|
|
8367
|
-
}); }));
|
|
8368
|
-
};
|
|
8369
|
-
CommonMethodsService.decorators = [
|
|
8370
|
-
{ type: core.Injectable, args: [{
|
|
8371
|
-
providedIn: 'root'
|
|
8372
|
-
},] }
|
|
8373
|
-
];
|
|
8374
|
-
/** @nocollapse */
|
|
8375
|
-
CommonMethodsService.ctorParameters = function () { return []; };
|
|
8376
|
-
/** @nocollapse */ CommonMethodsService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function CommonMethodsService_Factory() { return new CommonMethodsService(); }, token: CommonMethodsService, providedIn: "root" });
|
|
8377
|
-
return CommonMethodsService;
|
|
8378
|
-
}());
|
|
8379
|
-
|
|
9284
|
+
exports.CalenderModule = CalenderModule;
|
|
8380
9285
|
exports.CardsModule = CardsModule;
|
|
8381
9286
|
exports.CommonMethodsService = CommonMethodsService;
|
|
9287
|
+
exports.CommonStripModule = CommonStripModule;
|
|
8382
9288
|
exports.CompetencyPassbookModule = CompetencyPassbookModule;
|
|
8383
9289
|
exports.ConsumptionComponent = ConsumptionComponent;
|
|
8384
9290
|
exports.ConsumptionModule = ConsumptionModule;
|
|
@@ -8393,13 +9299,15 @@
|
|
|
8393
9299
|
exports.WIDGET_REGISTRATION_LIB_CONFIG = WIDGET_REGISTRATION_LIB_CONFIG;
|
|
8394
9300
|
exports.ɵa = ContentStripWithTabsLibComponent;
|
|
8395
9301
|
exports.ɵb = WidgetContentService;
|
|
8396
|
-
exports.ɵba =
|
|
8397
|
-
exports.ɵbb =
|
|
8398
|
-
exports.ɵbc =
|
|
8399
|
-
exports.ɵbd =
|
|
8400
|
-
exports.ɵbe =
|
|
8401
|
-
exports.ɵbf =
|
|
8402
|
-
exports.ɵbg =
|
|
9302
|
+
exports.ɵba = DisplayContentTypeLibComponent;
|
|
9303
|
+
exports.ɵbb = DefaultThumbnailModule;
|
|
9304
|
+
exports.ɵbc = DefaultThumbnailDirective;
|
|
9305
|
+
exports.ɵbd = PipeDurationTransformModule;
|
|
9306
|
+
exports.ɵbe = PipeDurationTransformPipe;
|
|
9307
|
+
exports.ɵbf = CompetencyPassbookComponent;
|
|
9308
|
+
exports.ɵbg = CompetencyPassbookService;
|
|
9309
|
+
exports.ɵbh = PillsModule;
|
|
9310
|
+
exports.ɵbi = PillsComponent;
|
|
8403
9311
|
exports.ɵc = WidgetUserService;
|
|
8404
9312
|
exports.ɵd = MultilingualTranslationsService;
|
|
8405
9313
|
exports.ɵe = ConfigurationsService;
|
|
@@ -8414,16 +9322,16 @@
|
|
|
8414
9322
|
exports.ɵn = InsiteDataService;
|
|
8415
9323
|
exports.ɵo = SkeletonLoaderLibModule;
|
|
8416
9324
|
exports.ɵp = SkeletonLoaderLibComponent;
|
|
8417
|
-
exports.ɵq =
|
|
8418
|
-
exports.ɵr =
|
|
8419
|
-
exports.ɵs =
|
|
8420
|
-
exports.ɵt =
|
|
8421
|
-
exports.ɵu =
|
|
8422
|
-
exports.ɵv =
|
|
8423
|
-
exports.ɵw =
|
|
8424
|
-
exports.ɵx =
|
|
8425
|
-
exports.ɵy =
|
|
8426
|
-
exports.ɵz =
|
|
9325
|
+
exports.ɵq = CalenderComponent;
|
|
9326
|
+
exports.ɵr = CommonStripComponent;
|
|
9327
|
+
exports.ɵs = CardResourceComponent;
|
|
9328
|
+
exports.ɵt = CardsComponent;
|
|
9329
|
+
exports.ɵu = CardPortraitComponent;
|
|
9330
|
+
exports.ɵv = CardUserComponent;
|
|
9331
|
+
exports.ɵw = CardLandscapeComponent;
|
|
9332
|
+
exports.ɵx = PipePublicURLModule;
|
|
9333
|
+
exports.ɵy = PipePublicURL;
|
|
9334
|
+
exports.ɵz = DisplayContentTypeLibModule;
|
|
8427
9335
|
|
|
8428
9336
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8429
9337
|
|