@sunbird-cb/consumption 0.0.35 → 0.0.37
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 +350 -53
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +7 -3
- package/esm2015/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +167 -0
- package/esm2015/lib/_common/cards/cards.component.js +25 -8
- package/esm2015/lib/_common/cards/cards.module.js +4 -2
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +4 -4
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +95 -20
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm2015/lib/_services/common-methods.service.js +25 -1
- package/esm2015/sunbird-cb-consumption.js +23 -22
- package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +7 -3
- package/esm5/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +173 -0
- package/esm5/lib/_common/cards/cards.component.js +17 -8
- package/esm5/lib/_common/cards/cards.module.js +4 -2
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +4 -4
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +107 -20
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm5/lib/_services/common-methods.service.js +30 -1
- package/esm5/sunbird-cb-consumption.js +23 -22
- package/fesm2015/sunbird-cb-consumption.js +314 -32
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +328 -32
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/cards/card-karma-programs/card-karma-programs.component.d.ts +1 -0
- package/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.d.ts +33 -0
- package/lib/_common/cards/cards.component.d.ts +1 -2
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +1 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +1 -0
- package/lib/_services/common-methods.service.d.ts +1 -0
- package/package.json +1 -1
- package/sunbird-cb-consumption.d.ts +22 -21
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -4391,6 +4391,7 @@
|
|
|
4391
4391
|
this.fetchAllBookMarkData(strip, calculateParentStatus);
|
|
4392
4392
|
this.fetchAllPlaylistSearch(strip, calculateParentStatus);
|
|
4393
4393
|
this.fetchPlaylistReadData(strip, calculateParentStatus);
|
|
4394
|
+
this.fetchCiosContentData(strip, calculateParentStatus);
|
|
4394
4395
|
// this.enrollInterval = setInterval(() => {
|
|
4395
4396
|
// this.fetchAllCbpPlans(strip, calculateParentStatus)
|
|
4396
4397
|
// }, 1000)
|
|
@@ -5127,7 +5128,8 @@
|
|
|
5127
5128
|
(strip.request.featureContent && Object.keys(strip.request.featureContent).length) ||
|
|
5128
5129
|
(strip.request.bookmarkRead && Object.keys(strip.request.bookmarkRead).length) ||
|
|
5129
5130
|
(strip.request.playlistSearch && Object.keys(strip.request.playlistSearch).length) ||
|
|
5130
|
-
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length)
|
|
5131
|
+
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length) ||
|
|
5132
|
+
(strip.request.ciosContent && Object.keys(strip.request.ciosContent).length))) {
|
|
5131
5133
|
return true;
|
|
5132
5134
|
}
|
|
5133
5135
|
return false;
|
|
@@ -5755,10 +5757,8 @@
|
|
|
5755
5757
|
*/
|
|
5756
5758
|
function (strip, request, apiUrl, calculateParentStatus) {
|
|
5757
5759
|
return __awaiter(this, void 0, void 0, function () {
|
|
5758
|
-
var originalFilters;
|
|
5759
5760
|
var _this = this;
|
|
5760
5761
|
return __generator(this, function (_a) {
|
|
5761
|
-
originalFilters = [];
|
|
5762
5762
|
return [2 /*return*/, new Promise((/**
|
|
5763
5763
|
* @param {?} resolve
|
|
5764
5764
|
* @param {?} reject
|
|
@@ -5771,25 +5771,53 @@
|
|
|
5771
5771
|
* @return {?}
|
|
5772
5772
|
*/
|
|
5773
5773
|
function (results) {
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
?
|
|
5774
|
+
debugger;
|
|
5775
|
+
if (results.result && results.result.content) {
|
|
5776
|
+
/** @type {?} */
|
|
5777
|
+
var showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5778
|
+
/** @type {?} */
|
|
5779
|
+
var viewMoreUrl = showViewMore
|
|
5780
|
+
? {
|
|
5781
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5782
|
+
queryParams: {
|
|
5783
|
+
tab: 'Learn',
|
|
5784
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
5785
|
+
f: {},
|
|
5786
|
+
},
|
|
5787
|
+
}
|
|
5788
|
+
: null;
|
|
5789
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5790
|
+
}
|
|
5791
|
+
else if (results && results.data) {
|
|
5792
|
+
/** @type {?} */
|
|
5793
|
+
var showViewMore = Boolean(results.data && results.data.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5794
|
+
/** @type {?} */
|
|
5795
|
+
var viewMoreUrl = showViewMore ? {
|
|
5779
5796
|
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5780
5797
|
queryParams: {
|
|
5781
5798
|
tab: 'Learn',
|
|
5782
5799
|
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
5783
|
-
f:
|
|
5784
|
-
request.searchV6 &&
|
|
5785
|
-
request.searchV6.request &&
|
|
5786
|
-
request.searchV6.request.filters
|
|
5787
|
-
? JSON.stringify(_this.transformSearchV6FiltersV2(originalFilters))
|
|
5788
|
-
: {},
|
|
5800
|
+
f: {},
|
|
5789
5801
|
},
|
|
5790
5802
|
}
|
|
5791
|
-
|
|
5792
|
-
|
|
5803
|
+
: null;
|
|
5804
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5805
|
+
}
|
|
5806
|
+
else if (results.result && results.result.data) {
|
|
5807
|
+
/** @type {?} */
|
|
5808
|
+
var showViewMore = Boolean(results.data && results.result.data && results.result.data.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5809
|
+
/** @type {?} */
|
|
5810
|
+
var viewMoreUrl = showViewMore ? {
|
|
5811
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5812
|
+
queryParams: {
|
|
5813
|
+
tab: 'Learn',
|
|
5814
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
5815
|
+
f: {},
|
|
5816
|
+
},
|
|
5817
|
+
}
|
|
5818
|
+
: null;
|
|
5819
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5820
|
+
}
|
|
5793
5821
|
}), (/**
|
|
5794
5822
|
* @param {?} error
|
|
5795
5823
|
* @return {?}
|
|
@@ -5835,7 +5863,6 @@
|
|
|
5835
5863
|
* @return {?}
|
|
5836
5864
|
*/
|
|
5837
5865
|
function (results) {
|
|
5838
|
-
console.log(results, 'results=========');
|
|
5839
5866
|
/** @type {?} */
|
|
5840
5867
|
var showViewMore = Boolean(results.result.data && results.result.data.orgList.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5841
5868
|
/** @type {?} */
|
|
@@ -5945,7 +5972,6 @@
|
|
|
5945
5972
|
return [4 /*yield*/, this.getRequestMethod(strip, strip.request.bookmarkRead, strip.request.apiUrl, calculateParentStatus)];
|
|
5946
5973
|
case 2:
|
|
5947
5974
|
response = _a.sent();
|
|
5948
|
-
console.log('calling after - response, ', response);
|
|
5949
5975
|
content = response.results.result.data.orgList;
|
|
5950
5976
|
if (response) {
|
|
5951
5977
|
this.processStrip(strip, this.transformAllContentsToWidgets(content, strip), 'done', calculateParentStatus, response);
|
|
@@ -6097,7 +6123,6 @@
|
|
|
6097
6123
|
return [4 /*yield*/, this.getRequestMethod(strip, strip.request.playlistRead, strip.request.apiUrl, calculateParentStatus)];
|
|
6098
6124
|
case 2:
|
|
6099
6125
|
response = _a.sent();
|
|
6100
|
-
console.log('calling after - response, ', response);
|
|
6101
6126
|
if (response && response.results.result.content) {
|
|
6102
6127
|
content = response.results.result.content;
|
|
6103
6128
|
this.processStrip(strip, this.transformAllContentsToWidgets(content, strip), 'done', calculateParentStatus, response);
|
|
@@ -6116,6 +6141,68 @@
|
|
|
6116
6141
|
});
|
|
6117
6142
|
});
|
|
6118
6143
|
};
|
|
6144
|
+
/**
|
|
6145
|
+
* @param {?} strip
|
|
6146
|
+
* @param {?=} calculateParentStatus
|
|
6147
|
+
* @return {?}
|
|
6148
|
+
*/
|
|
6149
|
+
ContentStripWithTabsLibComponent.prototype.fetchCiosContentData = /**
|
|
6150
|
+
* @param {?} strip
|
|
6151
|
+
* @param {?=} calculateParentStatus
|
|
6152
|
+
* @return {?}
|
|
6153
|
+
*/
|
|
6154
|
+
function (strip, calculateParentStatus) {
|
|
6155
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
6156
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6157
|
+
var originalFilters, response, extContentData, error_10;
|
|
6158
|
+
return __generator(this, function (_a) {
|
|
6159
|
+
switch (_a.label) {
|
|
6160
|
+
case 0:
|
|
6161
|
+
if (!(strip.request && strip.request.ciosContent && Object.keys(strip.request.ciosContent).length)) return [3 /*break*/, 4];
|
|
6162
|
+
originalFilters = [];
|
|
6163
|
+
if (strip.request &&
|
|
6164
|
+
strip.request.ciosContent &&
|
|
6165
|
+
strip.request.ciosContent.filterCriteriaMap) {
|
|
6166
|
+
originalFilters = strip.request.ciosContent.filterCriteriaMap;
|
|
6167
|
+
strip.request.ciosContent.filterCriteriaMap = this.postMethodFilters(strip.request.ciosContent.filterCriteriaMap);
|
|
6168
|
+
}
|
|
6169
|
+
_a.label = 1;
|
|
6170
|
+
case 1:
|
|
6171
|
+
_a.trys.push([1, 3, , 4]);
|
|
6172
|
+
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.ciosContent, strip.request.apiUrl, calculateParentStatus)];
|
|
6173
|
+
case 2:
|
|
6174
|
+
response = _a.sent();
|
|
6175
|
+
// console.log('calling after - response, ', response)
|
|
6176
|
+
if (response && response.results) {
|
|
6177
|
+
// console.log('calling after-- ')
|
|
6178
|
+
if (response.results.data && response.results.data.length) {
|
|
6179
|
+
extContentData = response.results.data;
|
|
6180
|
+
if (extContentData.length) {
|
|
6181
|
+
this.processStrip(strip, this.transformContentsToWidgets(extContentData, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
6182
|
+
}
|
|
6183
|
+
else {
|
|
6184
|
+
this.emptyResponse.emit(true);
|
|
6185
|
+
}
|
|
6186
|
+
}
|
|
6187
|
+
else {
|
|
6188
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
6189
|
+
this.emptyResponse.emit(true);
|
|
6190
|
+
}
|
|
6191
|
+
}
|
|
6192
|
+
else {
|
|
6193
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
6194
|
+
this.emptyResponse.emit(true);
|
|
6195
|
+
}
|
|
6196
|
+
return [3 /*break*/, 4];
|
|
6197
|
+
case 3:
|
|
6198
|
+
error_10 = _a.sent();
|
|
6199
|
+
this.emptyResponse.emit(true);
|
|
6200
|
+
return [3 /*break*/, 4];
|
|
6201
|
+
case 4: return [2 /*return*/];
|
|
6202
|
+
}
|
|
6203
|
+
});
|
|
6204
|
+
});
|
|
6205
|
+
};
|
|
6119
6206
|
ContentStripWithTabsLibComponent.decorators = [
|
|
6120
6207
|
{ type: core.Component, args: [{
|
|
6121
6208
|
selector: 'sb-uic-content-strip-with-tabs',
|
|
@@ -7593,6 +7680,35 @@
|
|
|
7593
7680
|
},
|
|
7594
7681
|
}); }));
|
|
7595
7682
|
};
|
|
7683
|
+
/**
|
|
7684
|
+
* @param {?} str
|
|
7685
|
+
* @param {?=} type
|
|
7686
|
+
* @return {?}
|
|
7687
|
+
*/
|
|
7688
|
+
CommonMethodsService.prototype.handleCapitalize = /**
|
|
7689
|
+
* @param {?} str
|
|
7690
|
+
* @param {?=} type
|
|
7691
|
+
* @return {?}
|
|
7692
|
+
*/
|
|
7693
|
+
function (str, type) {
|
|
7694
|
+
/** @type {?} */
|
|
7695
|
+
var returnValue = '';
|
|
7696
|
+
if (str) {
|
|
7697
|
+
if (type === 'name') {
|
|
7698
|
+
returnValue = str.split(' ').map((/**
|
|
7699
|
+
* @param {?} _str
|
|
7700
|
+
* @return {?}
|
|
7701
|
+
*/
|
|
7702
|
+
function (_str) {
|
|
7703
|
+
return _str.charAt(0).toUpperCase() + _str.slice(1);
|
|
7704
|
+
})).join(' ');
|
|
7705
|
+
}
|
|
7706
|
+
else {
|
|
7707
|
+
returnValue = str && (str.charAt(0).toUpperCase() + str.slice(1));
|
|
7708
|
+
}
|
|
7709
|
+
}
|
|
7710
|
+
return returnValue;
|
|
7711
|
+
};
|
|
7596
7712
|
CommonMethodsService.decorators = [
|
|
7597
7713
|
{ type: core.Injectable, args: [{
|
|
7598
7714
|
providedIn: 'root'
|
|
@@ -8746,16 +8862,26 @@
|
|
|
8746
8862
|
*/
|
|
8747
8863
|
function (content) {
|
|
8748
8864
|
return __awaiter(this, void 0, void 0, function () {
|
|
8749
|
-
var urlData;
|
|
8865
|
+
var userProfile, extUrl, urlData;
|
|
8750
8866
|
return __generator(this, function (_a) {
|
|
8751
8867
|
switch (_a.label) {
|
|
8752
|
-
case 0:
|
|
8753
|
-
|
|
8868
|
+
case 0:
|
|
8869
|
+
userProfile = this.configSvc.userProfile;
|
|
8870
|
+
if (!content.externalId) return [3 /*break*/, 1];
|
|
8871
|
+
extUrl = content.redirectUrl.replace('<username>', userProfile.userId);
|
|
8872
|
+
// const url = this.router.serializeUrl(
|
|
8873
|
+
// this.router.createUrlTree([extUrl])
|
|
8874
|
+
// );
|
|
8875
|
+
this.router.navigate(["app/toc/ext/" + content.contentId]);
|
|
8876
|
+
return [3 /*break*/, 3];
|
|
8877
|
+
case 1: return [4 /*yield*/, this.contSvc.getResourseLink(content)];
|
|
8878
|
+
case 2:
|
|
8754
8879
|
urlData = _a.sent();
|
|
8755
8880
|
this.router.navigate([urlData.url], {
|
|
8756
8881
|
queryParams: urlData.queryParams
|
|
8757
8882
|
});
|
|
8758
|
-
|
|
8883
|
+
_a.label = 3;
|
|
8884
|
+
case 3: return [2 /*return*/];
|
|
8759
8885
|
}
|
|
8760
8886
|
});
|
|
8761
8887
|
});
|
|
@@ -8800,14 +8926,14 @@
|
|
|
8800
8926
|
CardsComponent.decorators = [
|
|
8801
8927
|
{ type: core.Component, args: [{
|
|
8802
8928
|
selector: 'sb-uic-cards',
|
|
8803
|
-
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 *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib'\" [ngTemplateOutlet]=\"cardMdo\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"
|
|
8929
|
+
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 *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib'\" [ngTemplateOutlet]=\"cardMdo\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitExtLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib'\" [ngTemplateOutlet]=\"cardPortraitExtLib\"></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 \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" \n [cbPlanMapData]=\"cbPlanMapData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [widgetData]=\"widgetData\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\">\n </sb-uic-card-landscape>\n</ng-template>\n\n<ng-template #cardWideLib>\n <sb-uic-card-wide (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n<ng-template #cardWideV2Skeleton>\n <sb-uic-card-wide-v2 [widgetData]=\"widgetData\" [isCardLoading]=\"true\" ></sb-uic-card-wide-v2>\n</ng-template>\n<ng-template #cardWideV2>\n <sb-uic-card-wide-v2\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\"\n [widgetData]=\"widgetData\">\n </sb-uic-card-wide-v2>\n</ng-template>\n\n<ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n</ng-template>\n<ng-template #cardMdo>\n <sb-uic-card-mdo-channel [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardMdoSkeleton>\n <sb-uic-card-mdo-channel [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardKarmaProgramSkeleton>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgram>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgramV2>\n <!-- <sb-uic-card-karma-programs-v2 [widgetData]=\"widgetData\"><sb-uic-card-karma-programs-v2> -->\n</ng-template>\n\n<!-- cios card -->\n<ng-template #cardPortraitExtLibSkeleton>\n <sb-uic-card-portrait-ext [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait-ext>\n</ng-template>\n<ng-template #cardPortraitExtLib>\n <sb-uic-card-portrait-ext \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait-ext>\n</ng-template>",
|
|
8804
8930
|
styles: [""]
|
|
8805
8931
|
}] }
|
|
8806
8932
|
];
|
|
8807
8933
|
/** @nocollapse */
|
|
8808
8934
|
CardsComponent.ctorParameters = function () { return [
|
|
8809
8935
|
{ type: utilsV2.UtilityService },
|
|
8810
|
-
{ type: ConfigurationsService },
|
|
8936
|
+
{ type: utilsV2.ConfigurationsService },
|
|
8811
8937
|
{ type: WidgetContentService },
|
|
8812
8938
|
{ type: router.Router }
|
|
8813
8939
|
]; };
|
|
@@ -10278,6 +10404,7 @@
|
|
|
10278
10404
|
this.router = router;
|
|
10279
10405
|
this.randomColorApply = false;
|
|
10280
10406
|
this.userData = new core.EventEmitter();
|
|
10407
|
+
this.isCardLoading = false;
|
|
10281
10408
|
this.widgetType = '';
|
|
10282
10409
|
this.widgetSubType = '';
|
|
10283
10410
|
this.randomColors = [
|
|
@@ -10369,7 +10496,7 @@
|
|
|
10369
10496
|
CardKarmaProgramsComponent.decorators = [
|
|
10370
10497
|
{ type: core.Component, args: [{
|
|
10371
10498
|
selector: 'sb-uic-card-karma-programs',
|
|
10372
|
-
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" [ngStyle]=\"{'background': widgetData?.content?.bgColor}\">\n
|
|
10499
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" [ngStyle]=\"{'background': widgetData?.content?.bgColor}\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData?.content\">\n <a (click)=\"redirectTo(widgetData?.content);$event.stopPropagation();\">\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div class=\"flex flex-col h-full\">\n <div class=\"image-container\">\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.title\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData?.content?.posterImage\">\n <ng-container *ngIf=\"widgetData?.content?.imgSource && widgetData?.content?.imgSource?.length; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.imgSource[0] | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.title\" />\n </ng-container>\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?.title\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"title-container\">\n <div class=\"flex px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-start mat-subheading-2 title-text ws-mat-white-text\">\n {{ widgetData?.content?.title }}\n </div>\n </div>\n <div class=\"flex px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-start margin-remove margin-top-xxs mat-subheading-2 title-text ws-mat-white-text\">\n {{ widgetData?.content?.children?.length}} Programs\n </div>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" >\n <div class=\"display-contents\">\n <ng-container >\n <a >\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div class=\"flex flex-col h-full\">\n <div class=\"image-container\">\n <ng-container >\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'100%'\" class=\"w-full h-full\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"title-container\">\n <div class=\"flex px-2\">\n <div class=\"flex-1 text-start mat-subheading-2 title-text ws-mat-white-text\">\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'100%'\" class=\"w-full h-full\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex px-2\">\n <div class=\"flex-1 text-start margin-remove margin-top-xxs mat-subheading-2 title-text ws-mat-white-text\">\n <sb-uic-skeleton-loader [width]=\"'120px'\" [height]=\"'100%'\" class=\"w-full h-full\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>",
|
|
10373
10500
|
styles: [".card-channels-container{position:relative;width:245px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:217px;height:217px;max-height:217px;margin:20px 8px;background:#1a4ca1;border-radius:12px}.card-channels-container .min-top{background:inherit;margin-bottom:0;height:inherit}.card-channels-container .image-container{background-color:#fff;width:inherit;height:139px;max-height:139px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-top-left-radius:12px;border-top-right-radius:12px}.card-channels-container .card-img{max-height:100%;min-height:100%;display:block;-o-object-fit:fill;object-fit:fill}.card-channels-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-channels-container .title-container{background:inherit}.card-channels-container .description-text{position:relative;overflow:hidden;height:51px}.card-channels-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}"]
|
|
10374
10501
|
}] }
|
|
10375
10502
|
];
|
|
@@ -10385,7 +10512,8 @@
|
|
|
10385
10512
|
CardKarmaProgramsComponent.propDecorators = {
|
|
10386
10513
|
widgetData: [{ type: core.Input }],
|
|
10387
10514
|
randomColorApply: [{ type: core.Input }],
|
|
10388
|
-
userData: [{ type: core.Output }]
|
|
10515
|
+
userData: [{ type: core.Output }],
|
|
10516
|
+
isCardLoading: [{ type: core.Input }]
|
|
10389
10517
|
};
|
|
10390
10518
|
return CardKarmaProgramsComponent;
|
|
10391
10519
|
}());
|
|
@@ -10397,6 +10525,8 @@
|
|
|
10397
10525
|
/** @type {?} */
|
|
10398
10526
|
CardKarmaProgramsComponent.prototype.userData;
|
|
10399
10527
|
/** @type {?} */
|
|
10528
|
+
CardKarmaProgramsComponent.prototype.isCardLoading;
|
|
10529
|
+
/** @type {?} */
|
|
10400
10530
|
CardKarmaProgramsComponent.prototype.defaultThumbnail;
|
|
10401
10531
|
/** @type {?} */
|
|
10402
10532
|
CardKarmaProgramsComponent.prototype.sourceLogos;
|
|
@@ -10611,6 +10741,171 @@
|
|
|
10611
10741
|
CardKarmaProgramsV2Component.prototype.router;
|
|
10612
10742
|
}
|
|
10613
10743
|
|
|
10744
|
+
/**
|
|
10745
|
+
* @fileoverview added by tsickle
|
|
10746
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10747
|
+
*/
|
|
10748
|
+
var CardPortraitExtComponent = /** @class */ (function () {
|
|
10749
|
+
function CardPortraitExtComponent(snackBar, translate, langtranslations, configSvc, contSvc) {
|
|
10750
|
+
var _this = this;
|
|
10751
|
+
this.snackBar = snackBar;
|
|
10752
|
+
this.translate = translate;
|
|
10753
|
+
this.langtranslations = langtranslations;
|
|
10754
|
+
this.configSvc = configSvc;
|
|
10755
|
+
this.contSvc = contSvc;
|
|
10756
|
+
this.isCardLoading = false;
|
|
10757
|
+
this.contentData = new core.EventEmitter();
|
|
10758
|
+
this.isCardFlipped = false;
|
|
10759
|
+
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
10760
|
+
this.showFlip = false;
|
|
10761
|
+
this.widgetType = 'df';
|
|
10762
|
+
this.widgetSubType = 'sdf';
|
|
10763
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
10764
|
+
* @return {?}
|
|
10765
|
+
*/
|
|
10766
|
+
function () {
|
|
10767
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
10768
|
+
_this.translate.setDefaultLang('en');
|
|
10769
|
+
/** @type {?} */
|
|
10770
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
10771
|
+
_this.translate.use(lang);
|
|
10772
|
+
}
|
|
10773
|
+
}));
|
|
10774
|
+
}
|
|
10775
|
+
/**
|
|
10776
|
+
* @return {?}
|
|
10777
|
+
*/
|
|
10778
|
+
CardPortraitExtComponent.prototype.ngOnInit = /**
|
|
10779
|
+
* @return {?}
|
|
10780
|
+
*/
|
|
10781
|
+
function () {
|
|
10782
|
+
/** @type {?} */
|
|
10783
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
10784
|
+
if (instanceConfig) {
|
|
10785
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
10786
|
+
this.sourceLogos = instanceConfig.sources;
|
|
10787
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
10788
|
+
}
|
|
10789
|
+
else {
|
|
10790
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
10791
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
10792
|
+
}
|
|
10793
|
+
};
|
|
10794
|
+
/**
|
|
10795
|
+
* @return {?}
|
|
10796
|
+
*/
|
|
10797
|
+
CardPortraitExtComponent.prototype.showSnackbar = /**
|
|
10798
|
+
* @return {?}
|
|
10799
|
+
*/
|
|
10800
|
+
function () {
|
|
10801
|
+
if (this.showIntranetContent) {
|
|
10802
|
+
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
10803
|
+
}
|
|
10804
|
+
else if (!this.isLiveOrMarkForDeletion) {
|
|
10805
|
+
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
10806
|
+
}
|
|
10807
|
+
};
|
|
10808
|
+
/**
|
|
10809
|
+
* @param {?} contentData
|
|
10810
|
+
* @return {?}
|
|
10811
|
+
*/
|
|
10812
|
+
CardPortraitExtComponent.prototype.getRedirectUrlData = /**
|
|
10813
|
+
* @param {?} contentData
|
|
10814
|
+
* @return {?}
|
|
10815
|
+
*/
|
|
10816
|
+
function (contentData) {
|
|
10817
|
+
// for telemetry
|
|
10818
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
10819
|
+
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
10820
|
+
}
|
|
10821
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
10822
|
+
// for redirection
|
|
10823
|
+
this.contentData.emit(contentData);
|
|
10824
|
+
};
|
|
10825
|
+
CardPortraitExtComponent.decorators = [
|
|
10826
|
+
{ type: core.Component, args: [{
|
|
10827
|
+
selector: 'sb-uic-card-portrait-ext',
|
|
10828
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove cursor-pointer {{widgetData?.cardCustomeClass}}\" [ngClass]=\"{\n greyOut:\n widgetData?.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\" (click)=\"(showIntranetContent || !isLiveOrMarkForDeletion) && showSnackbar()\">\n <div class=\"display-contents\" [ngClass]=\"{\n disableClick:\n widgetData?.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\">\n <ng-container *ngIf=\"widgetData?.content\">\n <a (click)=\"getRedirectUrlData(widgetData?.content); $event.stopPropagation()\"\n role=\"link\" i18n-aria-label>\n <ng-container *ngIf=\"!isCardFlipped\">\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Content expired or deleted\" i18n-matTooltip\n matTooltip=\"Content may be expired or deleted\" *ngIf=\"!isLiveOrMarkForDeletion\"></div>\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Intranet content\" i18n-matTooltip\n matTooltip=\"Available only in Company's network\"\n *ngIf=\"widgetData?.intranetMode === 'greyOut' && showIntranetContent\"></div>\n <button *ngIf=\"showFlip\" class=\"detail-button ws-mat-primary-lite-background-op30\" mat-icon-button\n (click)=\"isCardFlipped = true\" aria-label=\"Details\" i18n-aria-label=\"Details | Click to see details\">\n <mat-icon>flip_to_back</mat-icon>\n </button>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon \" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-container>\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 class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData?.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData.content?.contentId)\" />\n </div>\n <ng-container *ngIf=\"widgetData?.content?.cbPlanEndDate\">\n <div class=\"cbp-mark\">\n <span>{{widgetData?.content?.cbPlanEndDate | date: 'd MMM, y'}}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.contentId]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.contentId]\n }}\"></ng-container>\n </ng-container>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type [useTranslation]=\"false\" i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.topic\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData?.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData?.content?.primaryCategory? widgetData?.content?.primaryCategory : 'Course'\">\n \n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.contentId\"\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 <div class=\"course_logo_box\">\n <img [src]=\"widgetData.content.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.contentId)\" />\n </div>\n <!-- <span class=\"org-text\">{{'cardcontentv2.by' | translate}} -->\n <span class=\"org-text\">By {{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ? widgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon class=\"mr-1\">star</mat-icon>\n <span>{{widgetData.content.avgRating}}</span>\n </div>\n <!-- <span class=\"most-enrolled-text margin-left-m\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostEnrolled' | translate }} -->\n </span>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostTrending' | translate }} -->\n </span>\n </ng-container>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n <ng-container *ngIf=\"isCardFlipped\">\n <div class=\"flex items-center\">\n <!-- <h2 class=\"mat-subheading-2 flex-1 min-w-0 margin-remove-bottom\" i18n>{{'cardcontentv2.reason' | translate}}</h2> -->\n <button mat-icon-button (click)=\"isCardFlipped = false\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <p class=\"text-justify mat-body-1\">\n {{ widgetData.content.reason }}\n </p>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card>\n </ng-container>\n \n <ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove\" >\n <div class=\"display-contents\" >\n <ng-container *ngIf=\"!isCardFlipped\">\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'140px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded margin-top-s'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle margin-top-m\">\n <div class=\"\">\n <sb-uic-skeleton-loader [width]=\"'28px'\" [height]=\"'28px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <span class=\"org-text\"> <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader></span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'45px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded margin-top-m'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </div>\n </mat-card>\n </ng-container>\n \n <ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n </ng-template>",
|
|
10829
|
+
styles: [".course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.card-standard-container{position:relative;width:245px;min-height:346px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:346px;margin:20px 8px}.card-standard-container .progress-bar{width:101%;margin-left:-15px;display:flex;margin-top:0;background:bisque;position:absolute;bottom:0}.card-standard-container ::ng-deep .mat-progress-bar{height:8px!important}.card-standard-container .icon_text{font-size:12px;line-height:16px;text-transform:uppercase}.card-standard-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-standard-container .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-standard-container .course_logo_box p{display:inline-block;vertical-align:top}.card-standard-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-standard-container .source-div{position:relative;top:100px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:72px;min-height:72px;max-width:72px;max-height:72px;display:flex;border-radius:8px}.card-standard-container .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-standard-container mat-card-content{background:#fff}.card-standard-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-standard-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-standard-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-standard-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-standard-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-standard-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-standard-container .basic{margin:auto 0}.card-standard-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:2;-webkit-box-orient:vertical;min-height:48px}.card-standard-container .description-text{position:relative;overflow:hidden;height:42px;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}.width-238{width:238px!important}.cbp-mark{border-radius:12px 0;opacity:1;background-image:linear-gradient(90deg,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 100%);position:absolute;top:0;padding:8px}.cbp-mark p{opacity:1;background-color:#fff;padding:4px;opacity:1;color:#1b2133;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:Regular;letter-spacing:.5px;text-align:left;line-height:12px;margin-bottom:0}.cbpwidth{width:340px}.cbp-plan{border-radius:4px;opacity:1;background-color:#1b4ca1;top:4px;left:4px;opacity:1;color:rgba(255,255,255,.95);font-family:Lato-Bold;font-size:12px;font-weight:700;font-style:normal;letter-spacing:.25px;text-align:center;line-height:16px;padding:4px}.cbp-info{opacity:1;color:#fff;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:normal;letter-spacing:.5px;text-align:left;line-height:12px;padding:2px}.cbp-danger{border-radius:2px;border:1px solid rgba(0,0,0,.08);background-color:#d13924!important;color:#fff!important;opacity:1}.cbp-success{border-radius:2px;border:1px solid #1d8922;background-color:#1d8922!important;color:#fff!important;opacity:1}.cbp-warning{border-radius:2px;border:1px solid #ef951e;background-color:#ef951e!important;color:#fff!important;opacity:1}"]
|
|
10830
|
+
}] }
|
|
10831
|
+
];
|
|
10832
|
+
/** @nocollapse */
|
|
10833
|
+
CardPortraitExtComponent.ctorParameters = function () { return [
|
|
10834
|
+
{ type: material.MatSnackBar },
|
|
10835
|
+
{ type: core$1.TranslateService },
|
|
10836
|
+
{ type: MultilingualTranslationsService },
|
|
10837
|
+
{ type: utilsV2.ConfigurationsService },
|
|
10838
|
+
{ type: WidgetContentService }
|
|
10839
|
+
]; };
|
|
10840
|
+
CardPortraitExtComponent.propDecorators = {
|
|
10841
|
+
widgetData: [{ type: core.Input }],
|
|
10842
|
+
isLiveOrMarkForDeletion: [{ type: core.Input }],
|
|
10843
|
+
showIntranetContent: [{ type: core.Input }],
|
|
10844
|
+
isIntranetAllowedSettings: [{ type: core.Input }],
|
|
10845
|
+
isCardLoading: [{ type: core.Input }],
|
|
10846
|
+
contentData: [{ type: core.Output }],
|
|
10847
|
+
cbPlanMapData: [{ type: core.Input }]
|
|
10848
|
+
};
|
|
10849
|
+
return CardPortraitExtComponent;
|
|
10850
|
+
}());
|
|
10851
|
+
if (false) {
|
|
10852
|
+
/** @type {?} */
|
|
10853
|
+
CardPortraitExtComponent.prototype.widgetData;
|
|
10854
|
+
/** @type {?} */
|
|
10855
|
+
CardPortraitExtComponent.prototype.isLiveOrMarkForDeletion;
|
|
10856
|
+
/** @type {?} */
|
|
10857
|
+
CardPortraitExtComponent.prototype.showIntranetContent;
|
|
10858
|
+
/** @type {?} */
|
|
10859
|
+
CardPortraitExtComponent.prototype.isIntranetAllowedSettings;
|
|
10860
|
+
/** @type {?} */
|
|
10861
|
+
CardPortraitExtComponent.prototype.isCardLoading;
|
|
10862
|
+
/** @type {?} */
|
|
10863
|
+
CardPortraitExtComponent.prototype.contentData;
|
|
10864
|
+
/** @type {?} */
|
|
10865
|
+
CardPortraitExtComponent.prototype.cbPlanMapData;
|
|
10866
|
+
/** @type {?} */
|
|
10867
|
+
CardPortraitExtComponent.prototype.isCardFlipped;
|
|
10868
|
+
/** @type {?} */
|
|
10869
|
+
CardPortraitExtComponent.prototype.acbpConstants;
|
|
10870
|
+
/** @type {?} */
|
|
10871
|
+
CardPortraitExtComponent.prototype.defaultThumbnail;
|
|
10872
|
+
/** @type {?} */
|
|
10873
|
+
CardPortraitExtComponent.prototype.sourceLogos;
|
|
10874
|
+
/** @type {?} */
|
|
10875
|
+
CardPortraitExtComponent.prototype.defaultSLogo;
|
|
10876
|
+
/** @type {?} */
|
|
10877
|
+
CardPortraitExtComponent.prototype.showFlip;
|
|
10878
|
+
/** @type {?} */
|
|
10879
|
+
CardPortraitExtComponent.prototype.widgetType;
|
|
10880
|
+
/** @type {?} */
|
|
10881
|
+
CardPortraitExtComponent.prototype.widgetSubType;
|
|
10882
|
+
/**
|
|
10883
|
+
* @type {?}
|
|
10884
|
+
* @private
|
|
10885
|
+
*/
|
|
10886
|
+
CardPortraitExtComponent.prototype.snackBar;
|
|
10887
|
+
/**
|
|
10888
|
+
* @type {?}
|
|
10889
|
+
* @private
|
|
10890
|
+
*/
|
|
10891
|
+
CardPortraitExtComponent.prototype.translate;
|
|
10892
|
+
/**
|
|
10893
|
+
* @type {?}
|
|
10894
|
+
* @private
|
|
10895
|
+
*/
|
|
10896
|
+
CardPortraitExtComponent.prototype.langtranslations;
|
|
10897
|
+
/**
|
|
10898
|
+
* @type {?}
|
|
10899
|
+
* @private
|
|
10900
|
+
*/
|
|
10901
|
+
CardPortraitExtComponent.prototype.configSvc;
|
|
10902
|
+
/**
|
|
10903
|
+
* @type {?}
|
|
10904
|
+
* @private
|
|
10905
|
+
*/
|
|
10906
|
+
CardPortraitExtComponent.prototype.contSvc;
|
|
10907
|
+
}
|
|
10908
|
+
|
|
10614
10909
|
/**
|
|
10615
10910
|
* @fileoverview added by tsickle
|
|
10616
10911
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -10629,7 +10924,8 @@
|
|
|
10629
10924
|
CardMDOChannelComponent,
|
|
10630
10925
|
CardWideV2Component,
|
|
10631
10926
|
CardKarmaProgramsComponent,
|
|
10632
|
-
CardKarmaProgramsV2Component
|
|
10927
|
+
CardKarmaProgramsV2Component,
|
|
10928
|
+
CardPortraitExtComponent
|
|
10633
10929
|
],
|
|
10634
10930
|
imports: [
|
|
10635
10931
|
common.CommonModule,
|
|
@@ -10812,7 +11108,7 @@
|
|
|
10812
11108
|
addfilter = {};
|
|
10813
11109
|
if (this.providerId) {
|
|
10814
11110
|
addfilter = {
|
|
10815
|
-
"
|
|
11111
|
+
"createdFor": [
|
|
10816
11112
|
this.providerId
|
|
10817
11113
|
],
|
|
10818
11114
|
};
|
|
@@ -10852,7 +11148,7 @@
|
|
|
10852
11148
|
function (partialSum, data) { return partialSum + data.count; }), 0);
|
|
10853
11149
|
this.selectedValue = this.competencyArea[0].name.toLowerCase();
|
|
10854
11150
|
addFilter = {
|
|
10855
|
-
"
|
|
11151
|
+
"createdFor": [
|
|
10856
11152
|
this.providerId
|
|
10857
11153
|
]
|
|
10858
11154
|
};
|
|
@@ -10925,7 +11221,7 @@
|
|
|
10925
11221
|
var addfilter = {};
|
|
10926
11222
|
if (this.providerId) {
|
|
10927
11223
|
addfilter = {
|
|
10928
|
-
"
|
|
11224
|
+
"createdFor": [
|
|
10929
11225
|
this.providerId
|
|
10930
11226
|
],
|
|
10931
11227
|
};
|
|
@@ -12301,28 +12597,29 @@
|
|
|
12301
12597
|
exports.ɵba = CardWideV2Component;
|
|
12302
12598
|
exports.ɵbb = CardKarmaProgramsComponent;
|
|
12303
12599
|
exports.ɵbc = CardKarmaProgramsV2Component;
|
|
12304
|
-
exports.ɵbd =
|
|
12305
|
-
exports.ɵbe =
|
|
12306
|
-
exports.ɵbf =
|
|
12307
|
-
exports.ɵbg =
|
|
12308
|
-
exports.ɵbh =
|
|
12309
|
-
exports.ɵbi =
|
|
12310
|
-
exports.ɵbj =
|
|
12311
|
-
exports.ɵbk =
|
|
12312
|
-
exports.ɵbl =
|
|
12313
|
-
exports.ɵbm =
|
|
12314
|
-
exports.ɵbn =
|
|
12315
|
-
exports.ɵbo =
|
|
12316
|
-
exports.ɵbp =
|
|
12317
|
-
exports.ɵbq =
|
|
12318
|
-
exports.ɵbr =
|
|
12319
|
-
exports.ɵbs =
|
|
12320
|
-
exports.ɵbt =
|
|
12321
|
-
exports.ɵbu =
|
|
12322
|
-
exports.ɵbv =
|
|
12323
|
-
exports.ɵbw =
|
|
12324
|
-
exports.ɵbx =
|
|
12325
|
-
exports.ɵby =
|
|
12600
|
+
exports.ɵbd = CardPortraitExtComponent;
|
|
12601
|
+
exports.ɵbe = PipePublicURLModule;
|
|
12602
|
+
exports.ɵbf = PipePublicURL;
|
|
12603
|
+
exports.ɵbg = DisplayContentTypeLibModule;
|
|
12604
|
+
exports.ɵbh = DisplayContentTypeLibComponent;
|
|
12605
|
+
exports.ɵbi = DefaultThumbnailModule;
|
|
12606
|
+
exports.ɵbj = DefaultThumbnailDirective;
|
|
12607
|
+
exports.ɵbk = PipeDurationTransformModule;
|
|
12608
|
+
exports.ɵbl = PipeDurationTransformPipe;
|
|
12609
|
+
exports.ɵbm = CompetencyPassbookComponent;
|
|
12610
|
+
exports.ɵbn = CompetencyPassbookService;
|
|
12611
|
+
exports.ɵbo = PillsModule;
|
|
12612
|
+
exports.ɵbp = PillsComponent;
|
|
12613
|
+
exports.ɵbq = UserContentRatingLibComponent;
|
|
12614
|
+
exports.ɵbr = ScrollableItemDirective;
|
|
12615
|
+
exports.ɵbs = RatingService;
|
|
12616
|
+
exports.ɵbt = UserContentRatingLibService;
|
|
12617
|
+
exports.ɵbu = AvatarPhotoLibModule;
|
|
12618
|
+
exports.ɵbv = AvatarPhotoLibComponent;
|
|
12619
|
+
exports.ɵbw = MyHammerConfig$1;
|
|
12620
|
+
exports.ɵbx = SlidersNgContentLibModule;
|
|
12621
|
+
exports.ɵby = SlidersNgContentLibComponent;
|
|
12622
|
+
exports.ɵbz = ScrollableItemModule;
|
|
12326
12623
|
exports.ɵc = MultilingualTranslationsService;
|
|
12327
12624
|
exports.ɵd = ConfigurationsService;
|
|
12328
12625
|
exports.ɵe = HorizontalScrollerV2Module;
|