@sunbird-cb/consumption 0.0.23 → 0.0.25
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 +231 -27
- 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-program-v2/card-karma-program-v2.component.js +23 -0
- package/esm2015/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +43 -3
- package/esm2015/lib/_common/cards/cards.component.js +2 -2
- package/esm2015/lib/_common/cards/cards.module.js +4 -2
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +112 -2
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm2015/sunbird-cb-consumption.js +23 -22
- package/esm5/lib/_common/cards/card-karma-program-v2/card-karma-program-v2.component.js +29 -0
- package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +50 -3
- package/esm5/lib/_common/cards/cards.component.js +2 -2
- package/esm5/lib/_common/cards/cards.module.js +4 -2
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +130 -2
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm5/sunbird-cb-consumption.js +23 -22
- package/fesm2015/sunbird-cb-consumption.js +179 -6
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +209 -6
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/cards/card-karma-program-v2/card-karma-program-v2.component.d.ts +5 -0
- package/lib/_common/cards/card-karma-programs/card-karma-programs.component.d.ts +4 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +2 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.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
|
@@ -4358,6 +4358,7 @@
|
|
|
4358
4358
|
this.fetchAllCbpPlans(strip, calculateParentStatus);
|
|
4359
4359
|
this.fetchAllTopContent(strip, calculateParentStatus);
|
|
4360
4360
|
this.fetchAllFeaturedContent(strip, calculateParentStatus);
|
|
4361
|
+
this.fetchAllChannela(strip, calculateParentStatus);
|
|
4361
4362
|
// this.enrollInterval = setInterval(() => {
|
|
4362
4363
|
// this.fetchAllCbpPlans(strip, calculateParentStatus)
|
|
4363
4364
|
// }, 1000)
|
|
@@ -5086,7 +5087,8 @@
|
|
|
5086
5087
|
(strip.request.cbpList && Object.keys(strip.request.cbpList).length) ||
|
|
5087
5088
|
(strip.request.trendingSearch && Object.keys(strip.request.trendingSearch).length) ||
|
|
5088
5089
|
(strip.request.topContent && Object.keys(strip.request.topContent).length) ||
|
|
5089
|
-
(strip.request.featureContent && Object.keys(strip.request.featureContent).length)
|
|
5090
|
+
(strip.request.featureContent && Object.keys(strip.request.featureContent).length) ||
|
|
5091
|
+
(strip.request.channels && Object.keys(strip.request.channels).length))) {
|
|
5090
5092
|
return true;
|
|
5091
5093
|
}
|
|
5092
5094
|
return false;
|
|
@@ -5786,6 +5788,132 @@
|
|
|
5786
5788
|
this.router.navigate([path], { queryParams: queryParamsData });
|
|
5787
5789
|
}
|
|
5788
5790
|
};
|
|
5791
|
+
/**
|
|
5792
|
+
* @param {?} strip
|
|
5793
|
+
* @param {?=} calculateParentStatus
|
|
5794
|
+
* @return {?}
|
|
5795
|
+
*/
|
|
5796
|
+
ContentStripWithTabsLibComponent.prototype.fetchAllChannela = /**
|
|
5797
|
+
* @param {?} strip
|
|
5798
|
+
* @param {?=} calculateParentStatus
|
|
5799
|
+
* @return {?}
|
|
5800
|
+
*/
|
|
5801
|
+
function (strip, calculateParentStatus) {
|
|
5802
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
5803
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5804
|
+
var originalFilters, data, response, error_7;
|
|
5805
|
+
return __generator(this, function (_a) {
|
|
5806
|
+
switch (_a.label) {
|
|
5807
|
+
case 0:
|
|
5808
|
+
if (!(strip.request && strip.request.channels && Object.keys(strip.request.channels).length)) return [3 /*break*/, 4];
|
|
5809
|
+
originalFilters = [];
|
|
5810
|
+
if (strip.request &&
|
|
5811
|
+
strip.request.channels &&
|
|
5812
|
+
strip.request.channels.request &&
|
|
5813
|
+
strip.request.channels.request.filters) {
|
|
5814
|
+
originalFilters = strip.request.channels.request.filters;
|
|
5815
|
+
strip.request.channels.request.filters = this.postMethodFilters(strip.request.channels.request.filters);
|
|
5816
|
+
}
|
|
5817
|
+
_a.label = 1;
|
|
5818
|
+
case 1:
|
|
5819
|
+
_a.trys.push([1, 3, , 4]);
|
|
5820
|
+
data = [
|
|
5821
|
+
{
|
|
5822
|
+
// tslint:disable-next-line: max-line-length
|
|
5823
|
+
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5824
|
+
appIcon: '',
|
|
5825
|
+
name: 'Ministry of Consumer Affairs, Food and Public Distribution',
|
|
5826
|
+
programCount: '10',
|
|
5827
|
+
},
|
|
5828
|
+
{
|
|
5829
|
+
// tslint:disable-next-line: max-line-length
|
|
5830
|
+
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5831
|
+
appIcon: '',
|
|
5832
|
+
name: 'Ministry of Railways',
|
|
5833
|
+
programCount: '10',
|
|
5834
|
+
},
|
|
5835
|
+
{
|
|
5836
|
+
// tslint:disable-next-line: max-line-length
|
|
5837
|
+
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5838
|
+
appIcon: '',
|
|
5839
|
+
name: 'Department of Post',
|
|
5840
|
+
programCount: '10',
|
|
5841
|
+
},
|
|
5842
|
+
{
|
|
5843
|
+
// tslint:disable-next-line: max-line-length
|
|
5844
|
+
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5845
|
+
appIcon: '',
|
|
5846
|
+
name: 'NLC India Limited',
|
|
5847
|
+
programCount: '30',
|
|
5848
|
+
},
|
|
5849
|
+
{
|
|
5850
|
+
// tslint:disable-next-line: max-line-length
|
|
5851
|
+
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5852
|
+
appIcon: '',
|
|
5853
|
+
name: 'Mission Karmayogi',
|
|
5854
|
+
programCount: '24',
|
|
5855
|
+
},
|
|
5856
|
+
{
|
|
5857
|
+
// tslint:disable-next-line: max-line-length
|
|
5858
|
+
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5859
|
+
appIcon: '',
|
|
5860
|
+
name: 'Mission Karmayogi',
|
|
5861
|
+
programCount: '50',
|
|
5862
|
+
},
|
|
5863
|
+
];
|
|
5864
|
+
return [4 /*yield*/, data
|
|
5865
|
+
// console.log('calling after - response, ', response)
|
|
5866
|
+
];
|
|
5867
|
+
case 2:
|
|
5868
|
+
response = _a.sent();
|
|
5869
|
+
// console.log('calling after - response, ', response)
|
|
5870
|
+
if (response) {
|
|
5871
|
+
this.processStrip(strip, this.transformAllContentsToWidgets(response, strip), 'done', calculateParentStatus, response);
|
|
5872
|
+
}
|
|
5873
|
+
else {
|
|
5874
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5875
|
+
this.emptyResponse.emit(true);
|
|
5876
|
+
}
|
|
5877
|
+
return [3 /*break*/, 4];
|
|
5878
|
+
case 3:
|
|
5879
|
+
error_7 = _a.sent();
|
|
5880
|
+
this.emptyResponse.emit(true);
|
|
5881
|
+
return [3 /*break*/, 4];
|
|
5882
|
+
case 4: return [2 /*return*/];
|
|
5883
|
+
}
|
|
5884
|
+
});
|
|
5885
|
+
});
|
|
5886
|
+
};
|
|
5887
|
+
/**
|
|
5888
|
+
* @private
|
|
5889
|
+
* @param {?} contents
|
|
5890
|
+
* @param {?} strip
|
|
5891
|
+
* @return {?}
|
|
5892
|
+
*/
|
|
5893
|
+
ContentStripWithTabsLibComponent.prototype.transformAllContentsToWidgets = /**
|
|
5894
|
+
* @private
|
|
5895
|
+
* @param {?} contents
|
|
5896
|
+
* @param {?} strip
|
|
5897
|
+
* @return {?}
|
|
5898
|
+
*/
|
|
5899
|
+
function (contents, strip) {
|
|
5900
|
+
return (contents || []).map((/**
|
|
5901
|
+
* @param {?} content
|
|
5902
|
+
* @param {?} idx
|
|
5903
|
+
* @return {?}
|
|
5904
|
+
*/
|
|
5905
|
+
function (content, idx) { return (content ? {
|
|
5906
|
+
widgetType: 'cardLib',
|
|
5907
|
+
widgetSubType: 'cardContentLib',
|
|
5908
|
+
widgetHostClass: 'mb-2',
|
|
5909
|
+
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 }),
|
|
5910
|
+
} : {
|
|
5911
|
+
widgetType: 'card',
|
|
5912
|
+
widgetSubType: 'cardContent',
|
|
5913
|
+
widgetHostClass: 'mb-2',
|
|
5914
|
+
widgetData: {},
|
|
5915
|
+
}); }));
|
|
5916
|
+
};
|
|
5789
5917
|
/**
|
|
5790
5918
|
* @param {?} event
|
|
5791
5919
|
* @return {?}
|
|
@@ -8391,7 +8519,7 @@
|
|
|
8391
8519
|
CardsComponent.decorators = [
|
|
8392
8520
|
{ type: core.Component, args: [{
|
|
8393
8521
|
selector: 'sb-uic-cards',
|
|
8394
|
-
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>\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 (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\" [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<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 [cbPlanMapData]=\"cbPlanMapData\" [isCardLoading]=\"false\" [widgetData]=\"widgetData\" ></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>",
|
|
8522
|
+
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]=\"cardKarmaProgram\"></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 (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\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></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 (contentData)=\"getRedirectUrlData($event)\" [cbPlanMapData]=\"cbPlanMapData\" [isCardLoading]=\"false\" [widgetData]=\"widgetData\" ></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 #cardKarmaProgram>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>",
|
|
8395
8523
|
styles: [""]
|
|
8396
8524
|
}] }
|
|
8397
8525
|
];
|
|
@@ -9838,9 +9966,19 @@
|
|
|
9838
9966
|
this.translate = translate;
|
|
9839
9967
|
this.langtranslations = langtranslations;
|
|
9840
9968
|
this.configSvc = configSvc;
|
|
9969
|
+
this.randomColorApply = false;
|
|
9841
9970
|
this.userData = new core.EventEmitter();
|
|
9842
9971
|
this.widgetType = '';
|
|
9843
9972
|
this.widgetSubType = '';
|
|
9973
|
+
this.randomColors = [
|
|
9974
|
+
'#EF941D',
|
|
9975
|
+
'#F97440',
|
|
9976
|
+
'#35B5B0',
|
|
9977
|
+
'#9988FF',
|
|
9978
|
+
'#254092',
|
|
9979
|
+
'#926525',
|
|
9980
|
+
'#4F72DF'
|
|
9981
|
+
];
|
|
9844
9982
|
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
9845
9983
|
* @return {?}
|
|
9846
9984
|
*/
|
|
@@ -9871,6 +10009,26 @@
|
|
|
9871
10009
|
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
9872
10010
|
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
9873
10011
|
}
|
|
10012
|
+
this.setRandomColor();
|
|
10013
|
+
};
|
|
10014
|
+
/**
|
|
10015
|
+
* @return {?}
|
|
10016
|
+
*/
|
|
10017
|
+
CardKarmaProgramsComponent.prototype.setRandomColor = /**
|
|
10018
|
+
* @return {?}
|
|
10019
|
+
*/
|
|
10020
|
+
function () {
|
|
10021
|
+
if (this.widgetData && this.widgetData.content) {
|
|
10022
|
+
if (this.randomColorApply) {
|
|
10023
|
+
/** @type {?} */
|
|
10024
|
+
var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomColors.length));
|
|
10025
|
+
this.widgetData.content['bgColor'] = this.randomColors[randomIndex1];
|
|
10026
|
+
}
|
|
10027
|
+
else {
|
|
10028
|
+
this.widgetData.content['bgColor'] = '#1a4ca1';
|
|
10029
|
+
}
|
|
10030
|
+
}
|
|
10031
|
+
console.log(this.widgetData.content, this.randomColorApply);
|
|
9874
10032
|
};
|
|
9875
10033
|
/**
|
|
9876
10034
|
* @return {?}
|
|
@@ -9896,11 +10054,23 @@
|
|
|
9896
10054
|
module: lodash.camelCase('user'),
|
|
9897
10055
|
});
|
|
9898
10056
|
};
|
|
10057
|
+
Object.defineProperty(CardKarmaProgramsComponent.prototype, "getRandomColors", {
|
|
10058
|
+
get: /**
|
|
10059
|
+
* @return {?}
|
|
10060
|
+
*/
|
|
10061
|
+
function () {
|
|
10062
|
+
/** @type {?} */
|
|
10063
|
+
var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomColors.length));
|
|
10064
|
+
return this.randomColors[randomIndex1];
|
|
10065
|
+
},
|
|
10066
|
+
enumerable: true,
|
|
10067
|
+
configurable: true
|
|
10068
|
+
});
|
|
9899
10069
|
CardKarmaProgramsComponent.decorators = [
|
|
9900
10070
|
{ type: core.Component, args: [{
|
|
9901
10071
|
selector: 'sb-uic-card-karma-programs',
|
|
9902
|
-
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"raiseTelemetry();$event.stopPropagation()\" \n [routerLink]=\"['/app/learn/karma-programs/asdfghj/123456/micro-sites']\" role=\"link\"\n i18n-aria-label>\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.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 | 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-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=\"
|
|
9903
|
-
styles: [".card-channels-container{position:relative;width:
|
|
10072
|
+
template: "<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)=\"raiseTelemetry();$event.stopPropagation()\" \n [routerLink]=\"['/app/learn/karma-programs/asdfghj/123456/micro-sites']\" role=\"link\"\n i18n-aria-label>\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.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 | 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-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=\"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?.name }}\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?.programCount}} 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>",
|
|
10073
|
+
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:0 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}"]
|
|
9904
10074
|
}] }
|
|
9905
10075
|
];
|
|
9906
10076
|
/** @nocollapse */
|
|
@@ -9912,6 +10082,7 @@
|
|
|
9912
10082
|
]; };
|
|
9913
10083
|
CardKarmaProgramsComponent.propDecorators = {
|
|
9914
10084
|
widgetData: [{ type: core.Input }],
|
|
10085
|
+
randomColorApply: [{ type: core.Input }],
|
|
9915
10086
|
userData: [{ type: core.Output }]
|
|
9916
10087
|
};
|
|
9917
10088
|
return CardKarmaProgramsComponent;
|
|
@@ -9920,6 +10091,8 @@
|
|
|
9920
10091
|
/** @type {?} */
|
|
9921
10092
|
CardKarmaProgramsComponent.prototype.widgetData;
|
|
9922
10093
|
/** @type {?} */
|
|
10094
|
+
CardKarmaProgramsComponent.prototype.randomColorApply;
|
|
10095
|
+
/** @type {?} */
|
|
9923
10096
|
CardKarmaProgramsComponent.prototype.userData;
|
|
9924
10097
|
/** @type {?} */
|
|
9925
10098
|
CardKarmaProgramsComponent.prototype.defaultThumbnail;
|
|
@@ -9931,6 +10104,8 @@
|
|
|
9931
10104
|
CardKarmaProgramsComponent.prototype.widgetType;
|
|
9932
10105
|
/** @type {?} */
|
|
9933
10106
|
CardKarmaProgramsComponent.prototype.widgetSubType;
|
|
10107
|
+
/** @type {?} */
|
|
10108
|
+
CardKarmaProgramsComponent.prototype.randomColors;
|
|
9934
10109
|
/**
|
|
9935
10110
|
* @type {?}
|
|
9936
10111
|
* @private
|
|
@@ -9953,6 +10128,33 @@
|
|
|
9953
10128
|
CardKarmaProgramsComponent.prototype.configSvc;
|
|
9954
10129
|
}
|
|
9955
10130
|
|
|
10131
|
+
/**
|
|
10132
|
+
* @fileoverview added by tsickle
|
|
10133
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10134
|
+
*/
|
|
10135
|
+
var CardKarmaProgramV2Component = /** @class */ (function () {
|
|
10136
|
+
function CardKarmaProgramV2Component() {
|
|
10137
|
+
}
|
|
10138
|
+
/**
|
|
10139
|
+
* @return {?}
|
|
10140
|
+
*/
|
|
10141
|
+
CardKarmaProgramV2Component.prototype.ngOnInit = /**
|
|
10142
|
+
* @return {?}
|
|
10143
|
+
*/
|
|
10144
|
+
function () {
|
|
10145
|
+
};
|
|
10146
|
+
CardKarmaProgramV2Component.decorators = [
|
|
10147
|
+
{ type: core.Component, args: [{
|
|
10148
|
+
selector: 'sb-uic-card-karma-program-v2',
|
|
10149
|
+
template: "<p>card-karma-program-v2 works!</p>\n",
|
|
10150
|
+
styles: [""]
|
|
10151
|
+
}] }
|
|
10152
|
+
];
|
|
10153
|
+
/** @nocollapse */
|
|
10154
|
+
CardKarmaProgramV2Component.ctorParameters = function () { return []; };
|
|
10155
|
+
return CardKarmaProgramV2Component;
|
|
10156
|
+
}());
|
|
10157
|
+
|
|
9956
10158
|
/**
|
|
9957
10159
|
* @fileoverview added by tsickle
|
|
9958
10160
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -9970,7 +10172,8 @@
|
|
|
9970
10172
|
CardWideComponent,
|
|
9971
10173
|
CardMDOChannelComponent,
|
|
9972
10174
|
CardWideV2Component,
|
|
9973
|
-
CardKarmaProgramsComponent
|
|
10175
|
+
CardKarmaProgramsComponent,
|
|
10176
|
+
CardKarmaProgramV2Component
|
|
9974
10177
|
],
|
|
9975
10178
|
imports: [
|
|
9976
10179
|
common.CommonModule,
|
|
@@ -11634,28 +11837,29 @@
|
|
|
11634
11837
|
exports.ɵb = WidgetUserService;
|
|
11635
11838
|
exports.ɵba = CardWideV2Component;
|
|
11636
11839
|
exports.ɵbb = CardKarmaProgramsComponent;
|
|
11637
|
-
exports.ɵbc =
|
|
11638
|
-
exports.ɵbd =
|
|
11639
|
-
exports.ɵbe =
|
|
11640
|
-
exports.ɵbf =
|
|
11641
|
-
exports.ɵbg =
|
|
11642
|
-
exports.ɵbh =
|
|
11643
|
-
exports.ɵbi =
|
|
11644
|
-
exports.ɵbj =
|
|
11645
|
-
exports.ɵbk =
|
|
11646
|
-
exports.ɵbl =
|
|
11647
|
-
exports.ɵbm =
|
|
11648
|
-
exports.ɵbn =
|
|
11649
|
-
exports.ɵbo =
|
|
11650
|
-
exports.ɵbp =
|
|
11651
|
-
exports.ɵbq =
|
|
11652
|
-
exports.ɵbr =
|
|
11653
|
-
exports.ɵbs =
|
|
11654
|
-
exports.ɵbt =
|
|
11655
|
-
exports.ɵbu =
|
|
11656
|
-
exports.ɵbv =
|
|
11657
|
-
exports.ɵbw =
|
|
11658
|
-
exports.ɵbx =
|
|
11840
|
+
exports.ɵbc = CardKarmaProgramV2Component;
|
|
11841
|
+
exports.ɵbd = PipePublicURLModule;
|
|
11842
|
+
exports.ɵbe = PipePublicURL;
|
|
11843
|
+
exports.ɵbf = DisplayContentTypeLibModule;
|
|
11844
|
+
exports.ɵbg = DisplayContentTypeLibComponent;
|
|
11845
|
+
exports.ɵbh = DefaultThumbnailModule;
|
|
11846
|
+
exports.ɵbi = DefaultThumbnailDirective;
|
|
11847
|
+
exports.ɵbj = PipeDurationTransformModule;
|
|
11848
|
+
exports.ɵbk = PipeDurationTransformPipe;
|
|
11849
|
+
exports.ɵbl = CompetencyPassbookComponent;
|
|
11850
|
+
exports.ɵbm = CompetencyPassbookService;
|
|
11851
|
+
exports.ɵbn = PillsModule;
|
|
11852
|
+
exports.ɵbo = PillsComponent;
|
|
11853
|
+
exports.ɵbp = UserContentRatingLibComponent;
|
|
11854
|
+
exports.ɵbq = ScrollableItemDirective;
|
|
11855
|
+
exports.ɵbr = RatingService;
|
|
11856
|
+
exports.ɵbs = UserContentRatingLibService;
|
|
11857
|
+
exports.ɵbt = AvatarPhotoLibModule;
|
|
11858
|
+
exports.ɵbu = AvatarPhotoLibComponent;
|
|
11859
|
+
exports.ɵbv = MyHammerConfig$1;
|
|
11860
|
+
exports.ɵbw = SlidersNgContentLibModule;
|
|
11861
|
+
exports.ɵbx = SlidersNgContentLibComponent;
|
|
11862
|
+
exports.ɵby = ScrollableItemModule;
|
|
11659
11863
|
exports.ɵc = MultilingualTranslationsService;
|
|
11660
11864
|
exports.ɵd = ConfigurationsService;
|
|
11661
11865
|
exports.ɵe = HorizontalScrollerV2Module;
|