@sunbird-cb/consumption 0.0.13 → 0.0.14-ang-17-20
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/fesm2022/sunbird-cb-consumption.mjs +33425 -0
- package/fesm2022/sunbird-cb-consumption.mjs.map +1 -0
- package/index.d.ts +7547 -0
- package/index.d.ts.map +1 -0
- package/package.json +22 -20
- package/bundles/sunbird-cb-consumption.umd.js +0 -11404
- package/bundles/sunbird-cb-consumption.umd.js.map +0 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +0 -17
- package/bundles/sunbird-cb-consumption.umd.min.js.map +0 -1
- package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +0 -147
- package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +0 -29
- package/esm2015/lib/_common/calender/calender-day/calender-day.component.js +0 -90
- package/esm2015/lib/_common/calender/calender.component.js +0 -300
- package/esm2015/lib/_common/calender/calender.module.js +0 -31
- package/esm2015/lib/_common/cards/card-landscape/card-landscape.component.js +0 -209
- package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +0 -177
- package/esm2015/lib/_common/cards/card-resource/card-resource.component.js +0 -34
- package/esm2015/lib/_common/cards/card-user/card-user.component.js +0 -141
- package/esm2015/lib/_common/cards/card-wide/card-wide.component.js +0 -166
- package/esm2015/lib/_common/cards/cards.component.js +0 -107
- package/esm2015/lib/_common/cards/cards.module.js +0 -49
- package/esm2015/lib/_common/common-strip/common-strip.component.js +0 -646
- package/esm2015/lib/_common/common-strip/common-strip.model.js +0 -216
- package/esm2015/lib/_common/common-strip/common-strip.module.js +0 -62
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +0 -339
- package/esm2015/lib/_common/competency-passbook/competency-passbook.module.js +0 -27
- package/esm2015/lib/_common/competency-passbook/competency-passbook.service.js +0 -52
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +0 -1786
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +0 -212
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.js +0 -69
- package/esm2015/lib/_common/data-points/data-points.component.js +0 -110
- package/esm2015/lib/_common/data-points/data-points.module.js +0 -23
- package/esm2015/lib/_common/display-content-type-lib/display-content-type-lib.component.js +0 -56
- package/esm2015/lib/_common/display-content-type-lib/display-content-type-lib.module.js +0 -18
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +0 -318
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.js +0 -23
- package/esm2015/lib/_common/pills/pills.component.js +0 -49
- package/esm2015/lib/_common/pills/pills.module.js +0 -24
- package/esm2015/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.js +0 -40
- package/esm2015/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.js +0 -28
- package/esm2015/lib/_common/sliders/sliders.component.js +0 -184
- package/esm2015/lib/_common/sliders/sliders.model.js +0 -61
- package/esm2015/lib/_common/sliders/sliders.module.js +0 -50
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +0 -197
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.model.js +0 -61
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.module.js +0 -50
- package/esm2015/lib/_common/user-content-rating/user-content-rating.component.js +0 -710
- package/esm2015/lib/_common/user-content-rating/user-content-rating.module.js +0 -35
- package/esm2015/lib/_constants/misc.constants.js +0 -5
- package/esm2015/lib/_directives/default-thumbnail/default-thumbnail.directive.js +0 -52
- package/esm2015/lib/_directives/default-thumbnail/default-thumbnail.module.js +0 -19
- package/esm2015/lib/_directives/image-responsive/image-responsive.directive.js +0 -127
- package/esm2015/lib/_directives/image-responsive/image-responsive.module.js +0 -19
- package/esm2015/lib/_directives/navigation/navigation.directive.js +0 -54
- package/esm2015/lib/_directives/navigation/navigation.module.js +0 -19
- package/esm2015/lib/_models/card-content-v2.model.js +0 -78
- package/esm2015/lib/_models/card-content.model.js +0 -69
- package/esm2015/lib/_models/card-users.model.js +0 -103
- package/esm2015/lib/_models/content-strip-multiple.model.js +0 -195
- package/esm2015/lib/_models/event.js +0 -45
- package/esm2015/lib/_models/profile-v3.models.js +0 -196
- package/esm2015/lib/_models/rating.model.js +0 -44
- package/esm2015/lib/_models/widget-content.model.js +0 -876
- package/esm2015/lib/_models/widget-search.model.js +0 -472
- package/esm2015/lib/_models/widget-user.model.js +0 -17
- package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.js +0 -19
- package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +0 -120
- package/esm2015/lib/_pipes/pipe-public-URL/pipe-public-URL.module.js +0 -19
- package/esm2015/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.js +0 -38
- package/esm2015/lib/_services/common-methods.service.js +0 -60
- package/esm2015/lib/_services/configurations.service.js +0 -243
- package/esm2015/lib/_services/insite-data.service.js +0 -53
- package/esm2015/lib/_services/multilingual-translations.service.js +0 -228
- package/esm2015/lib/_services/rating.service.js +0 -171
- package/esm2015/lib/_services/viewer-route-util.js +0 -125
- package/esm2015/lib/_services/widget-content.service.js +0 -829
- package/esm2015/lib/_services/widget-user.service.js +0 -439
- package/esm2015/lib/consumption.component.js +0 -26
- package/esm2015/lib/consumption.config.js +0 -12
- package/esm2015/lib/consumption.module.js +0 -30
- package/esm2015/lib/consumption.service.js +0 -18
- package/esm2015/lib/registration-lib.config.js +0 -21
- package/esm2015/public-api.js +0 -22
- package/esm2015/sunbird-cb-consumption.js +0 -52
- package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +0 -164
- package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +0 -33
- package/esm5/lib/_common/calender/calender-day/calender-day.component.js +0 -101
- package/esm5/lib/_common/calender/calender.component.js +0 -335
- package/esm5/lib/_common/calender/calender.module.js +0 -35
- package/esm5/lib/_common/cards/card-landscape/card-landscape.component.js +0 -222
- package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +0 -186
- package/esm5/lib/_common/cards/card-resource/card-resource.component.js +0 -41
- package/esm5/lib/_common/cards/card-user/card-user.component.js +0 -147
- package/esm5/lib/_common/cards/card-wide/card-wide.component.js +0 -172
- package/esm5/lib/_common/cards/cards.component.js +0 -127
- package/esm5/lib/_common/cards/cards.module.js +0 -53
- package/esm5/lib/_common/common-strip/common-strip.component.js +0 -760
- package/esm5/lib/_common/common-strip/common-strip.model.js +0 -216
- package/esm5/lib/_common/common-strip/common-strip.module.js +0 -66
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +0 -409
- package/esm5/lib/_common/competency-passbook/competency-passbook.module.js +0 -31
- package/esm5/lib/_common/competency-passbook/competency-passbook.service.js +0 -59
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +0 -2098
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +0 -212
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.js +0 -73
- package/esm5/lib/_common/data-points/data-points.component.js +0 -120
- package/esm5/lib/_common/data-points/data-points.module.js +0 -27
- package/esm5/lib/_common/display-content-type-lib/display-content-type-lib.component.js +0 -63
- package/esm5/lib/_common/display-content-type-lib/display-content-type-lib.module.js +0 -22
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +0 -347
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.js +0 -27
- package/esm5/lib/_common/pills/pills.component.js +0 -58
- package/esm5/lib/_common/pills/pills.module.js +0 -28
- package/esm5/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.js +0 -45
- package/esm5/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.js +0 -32
- package/esm5/lib/_common/sliders/sliders.component.js +0 -211
- package/esm5/lib/_common/sliders/sliders.model.js +0 -61
- package/esm5/lib/_common/sliders/sliders.module.js +0 -67
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +0 -224
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.model.js +0 -61
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.module.js +0 -67
- package/esm5/lib/_common/user-content-rating/user-content-rating.component.js +0 -726
- package/esm5/lib/_common/user-content-rating/user-content-rating.module.js +0 -39
- package/esm5/lib/_constants/misc.constants.js +0 -5
- package/esm5/lib/_directives/default-thumbnail/default-thumbnail.directive.js +0 -60
- package/esm5/lib/_directives/default-thumbnail/default-thumbnail.module.js +0 -23
- package/esm5/lib/_directives/image-responsive/image-responsive.directive.js +0 -137
- package/esm5/lib/_directives/image-responsive/image-responsive.module.js +0 -23
- package/esm5/lib/_directives/navigation/navigation.directive.js +0 -63
- package/esm5/lib/_directives/navigation/navigation.module.js +0 -23
- package/esm5/lib/_models/card-content-v2.model.js +0 -78
- package/esm5/lib/_models/card-content.model.js +0 -69
- package/esm5/lib/_models/card-users.model.js +0 -103
- package/esm5/lib/_models/content-strip-multiple.model.js +0 -195
- package/esm5/lib/_models/event.js +0 -45
- package/esm5/lib/_models/profile-v3.models.js +0 -196
- package/esm5/lib/_models/rating.model.js +0 -44
- package/esm5/lib/_models/widget-content.model.js +0 -876
- package/esm5/lib/_models/widget-search.model.js +0 -472
- package/esm5/lib/_models/widget-user.model.js +0 -17
- package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.js +0 -23
- package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +0 -143
- package/esm5/lib/_pipes/pipe-public-URL/pipe-public-URL.module.js +0 -23
- package/esm5/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.js +0 -41
- package/esm5/lib/_services/common-methods.service.js +0 -73
- package/esm5/lib/_services/configurations.service.js +0 -257
- package/esm5/lib/_services/insite-data.service.js +0 -60
- package/esm5/lib/_services/multilingual-translations.service.js +0 -256
- package/esm5/lib/_services/rating.service.js +0 -214
- package/esm5/lib/_services/viewer-route-util.js +0 -127
- package/esm5/lib/_services/widget-content.service.js +0 -1078
- package/esm5/lib/_services/widget-user.service.js +0 -501
- package/esm5/lib/consumption.component.js +0 -28
- package/esm5/lib/consumption.config.js +0 -12
- package/esm5/lib/consumption.module.js +0 -34
- package/esm5/lib/consumption.service.js +0 -21
- package/esm5/lib/registration-lib.config.js +0 -21
- package/esm5/public-api.js +0 -22
- package/esm5/sunbird-cb-consumption.js +0 -52
- package/fesm2015/sunbird-cb-consumption.js +0 -9871
- package/fesm2015/sunbird-cb-consumption.js.map +0 -1
- package/fesm5/sunbird-cb-consumption.js +0 -11144
- package/fesm5/sunbird-cb-consumption.js.map +0 -1
- package/lib/_common/avatar-photo-lib/avatar-photo-lib.component.d.ts +0 -19
- package/lib/_common/avatar-photo-lib/avatar-photo-lib.module.d.ts +0 -2
- package/lib/_common/calender/calender-day/calender-day.component.d.ts +0 -18
- package/lib/_common/calender/calender.component.d.ts +0 -34
- package/lib/_common/calender/calender.module.d.ts +0 -2
- package/lib/_common/cards/card-landscape/card-landscape.component.d.ts +0 -35
- package/lib/_common/cards/card-portrait/card-portrait.component.d.ts +0 -31
- package/lib/_common/cards/card-resource/card-resource.component.d.ts +0 -8
- package/lib/_common/cards/card-user/card-user.component.d.ts +0 -24
- package/lib/_common/cards/card-wide/card-wide.component.d.ts +0 -30
- package/lib/_common/cards/cards.component.d.ts +0 -20
- package/lib/_common/cards/cards.module.d.ts +0 -2
- package/lib/_common/common-strip/common-strip.component.d.ts +0 -104
- package/lib/_common/common-strip/common-strip.model.d.ts +0 -141
- package/lib/_common/common-strip/common-strip.module.d.ts +0 -2
- package/lib/_common/competency-passbook/competency-passbook.component.d.ts +0 -36
- package/lib/_common/competency-passbook/competency-passbook.module.d.ts +0 -2
- package/lib/_common/competency-passbook/competency-passbook.service.d.ts +0 -8
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +0 -185
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +0 -142
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.d.ts +0 -5
- package/lib/_common/data-points/data-points.component.d.ts +0 -15
- package/lib/_common/data-points/data-points.module.d.ts +0 -2
- package/lib/_common/display-content-type-lib/display-content-type-lib.component.d.ts +0 -11
- package/lib/_common/display-content-type-lib/display-content-type-lib.module.d.ts +0 -2
- package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +0 -33
- package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +0 -2
- package/lib/_common/pills/pills.component.d.ts +0 -10
- package/lib/_common/pills/pills.module.d.ts +0 -2
- package/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.d.ts +0 -8
- package/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.d.ts +0 -2
- package/lib/_common/sliders/sliders.component.d.ts +0 -26
- package/lib/_common/sliders/sliders.model.d.ts +0 -34
- package/lib/_common/sliders/sliders.module.d.ts +0 -6
- package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +0 -28
- package/lib/_common/sliders-ng-content/sliders-ng-content.model.d.ts +0 -34
- package/lib/_common/sliders-ng-content/sliders-ng-content.module.d.ts +0 -6
- package/lib/_common/user-content-rating/user-content-rating.component.d.ts +0 -167
- package/lib/_common/user-content-rating/user-content-rating.module.d.ts +0 -2
- package/lib/_constants/misc.constants.d.ts +0 -2
- package/lib/_directives/default-thumbnail/default-thumbnail.directive.d.ts +0 -9
- package/lib/_directives/default-thumbnail/default-thumbnail.module.d.ts +0 -2
- package/lib/_directives/image-responsive/image-responsive.directive.d.ts +0 -17
- package/lib/_directives/image-responsive/image-responsive.module.d.ts +0 -2
- package/lib/_directives/navigation/navigation.directive.d.ts +0 -9
- package/lib/_directives/navigation/navigation.module.d.ts +0 -2
- package/lib/_models/card-content-v2.model.d.ts +0 -44
- package/lib/_models/card-content.model.d.ts +0 -41
- package/lib/_models/card-users.model.d.ts +0 -50
- package/lib/_models/content-strip-multiple.model.d.ts +0 -128
- package/lib/_models/event.d.ts +0 -18
- package/lib/_models/profile-v3.models.d.ts +0 -91
- package/lib/_models/rating.model.d.ts +0 -17
- package/lib/_models/widget-content.model.d.ts +0 -497
- package/lib/_models/widget-search.model.d.ts +0 -252
- package/lib/_models/widget-user.model.d.ts +0 -5
- package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +0 -2
- package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +0 -6
- package/lib/_pipes/pipe-public-URL/pipe-public-URL.module.d.ts +0 -2
- package/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +0 -6
- package/lib/_services/common-methods.service.d.ts +0 -38
- package/lib/_services/configurations.service.d.ts +0 -71
- package/lib/_services/insite-data.service.d.ts +0 -8
- package/lib/_services/multilingual-translations.service.d.ts +0 -20
- package/lib/_services/rating.service.d.ts +0 -15
- package/lib/_services/viewer-route-util.d.ts +0 -8
- package/lib/_services/widget-content.service.d.ts +0 -83
- package/lib/_services/widget-user.service.d.ts +0 -31
- package/lib/consumption.component.d.ts +0 -5
- package/lib/consumption.config.d.ts +0 -6
- package/lib/consumption.module.d.ts +0 -2
- package/lib/consumption.service.d.ts +0 -3
- package/lib/registration-lib.config.d.ts +0 -4
- package/public-api.d.ts +0 -14
- package/sunbird-cb-consumption.d.ts +0 -47
- package/sunbird-cb-consumption.metadata.json +0 -1
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
6
|
-
import { NsCardContent } from '../../../_models/card-content.model';
|
|
7
|
-
import { MatSnackBar } from '@angular/material';
|
|
8
|
-
import { ConfigurationsService, EventService } from '@sunbird-cb/utils-v2';
|
|
9
|
-
import * as _ from "lodash";
|
|
10
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
11
|
-
import { MultilingualTranslationsService } from '../../../_services/multilingual-translations.service';
|
|
12
|
-
var CardLandscapeComponent = /** @class */ (function () {
|
|
13
|
-
function CardLandscapeComponent(snackBar, events, translate, langtranslations, configSvc) {
|
|
14
|
-
var _this = this;
|
|
15
|
-
this.snackBar = snackBar;
|
|
16
|
-
this.events = events;
|
|
17
|
-
this.translate = translate;
|
|
18
|
-
this.langtranslations = langtranslations;
|
|
19
|
-
this.configSvc = configSvc;
|
|
20
|
-
this.isCardLoading = false;
|
|
21
|
-
this.contentData = new EventEmitter();
|
|
22
|
-
this.isCardFlipped = false;
|
|
23
|
-
this.acbpConstants = NsCardContent.ACBPConst;
|
|
24
|
-
this.showFlip = false;
|
|
25
|
-
this.widgetType = 'df';
|
|
26
|
-
this.widgetSubType = 'sdf';
|
|
27
|
-
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
28
|
-
* @return {?}
|
|
29
|
-
*/
|
|
30
|
-
function () {
|
|
31
|
-
if (localStorage.getItem('websiteLanguage')) {
|
|
32
|
-
_this.translate.setDefaultLang('en');
|
|
33
|
-
/** @type {?} */
|
|
34
|
-
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
35
|
-
_this.translate.use(lang);
|
|
36
|
-
}
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @return {?}
|
|
41
|
-
*/
|
|
42
|
-
CardLandscapeComponent.prototype.ngOnInit = /**
|
|
43
|
-
* @return {?}
|
|
44
|
-
*/
|
|
45
|
-
function () {
|
|
46
|
-
var _this = this;
|
|
47
|
-
/** @type {?} */
|
|
48
|
-
var instanceConfig = this.configSvc.instanceConfig;
|
|
49
|
-
if (instanceConfig) {
|
|
50
|
-
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
51
|
-
this.sourceLogos = instanceConfig.sources;
|
|
52
|
-
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
53
|
-
}
|
|
54
|
-
this.cbPlanInterval = setInterval((/**
|
|
55
|
-
* @return {?}
|
|
56
|
-
*/
|
|
57
|
-
function () {
|
|
58
|
-
_this.getCbPlanData();
|
|
59
|
-
}), 1000);
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* @return {?}
|
|
63
|
-
*/
|
|
64
|
-
CardLandscapeComponent.prototype.showSnackbar = /**
|
|
65
|
-
* @return {?}
|
|
66
|
-
*/
|
|
67
|
-
function () {
|
|
68
|
-
if (this.showIntranetContent) {
|
|
69
|
-
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
70
|
-
}
|
|
71
|
-
else if (!this.isLiveOrMarkForDeletion) {
|
|
72
|
-
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* @param {?} contentData
|
|
77
|
-
* @return {?}
|
|
78
|
-
*/
|
|
79
|
-
CardLandscapeComponent.prototype.getRedirectUrlData = /**
|
|
80
|
-
* @param {?} contentData
|
|
81
|
-
* @return {?}
|
|
82
|
-
*/
|
|
83
|
-
function (contentData) {
|
|
84
|
-
this.contentData.emit(contentData);
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* @return {?}
|
|
88
|
-
*/
|
|
89
|
-
CardLandscapeComponent.prototype.raiseTelemetry = /**
|
|
90
|
-
* @return {?}
|
|
91
|
-
*/
|
|
92
|
-
function () {
|
|
93
|
-
// if(this.forPreview){
|
|
94
|
-
// return
|
|
95
|
-
// }
|
|
96
|
-
this.events.raiseInteractTelemetry({
|
|
97
|
-
type: 'click',
|
|
98
|
-
subType: this.widgetType + "-" + this.widgetSubType,
|
|
99
|
-
id: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
100
|
-
}, {
|
|
101
|
-
id: this.widgetData.content.identifier,
|
|
102
|
-
type: this.widgetData.content.primaryCategory,
|
|
103
|
-
//context: this.widgetData.context,
|
|
104
|
-
rollup: {},
|
|
105
|
-
ver: "" + this.widgetData.content.version + '',
|
|
106
|
-
}, {
|
|
107
|
-
pageIdExt: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
108
|
-
module: _.camelCase(this.widgetData.content.primaryCategory),
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* @return {?}
|
|
113
|
-
*/
|
|
114
|
-
CardLandscapeComponent.prototype.getCbPlanData = /**
|
|
115
|
-
* @return {?}
|
|
116
|
-
*/
|
|
117
|
-
function () {
|
|
118
|
-
/** @type {?} */
|
|
119
|
-
var cbpList = {};
|
|
120
|
-
if (localStorage.getItem('cbpData')) {
|
|
121
|
-
/** @type {?} */
|
|
122
|
-
var cbpListArr = JSON.parse(localStorage.getItem('cbpData') || '');
|
|
123
|
-
if (cbpListArr && cbpListArr.length) {
|
|
124
|
-
cbpListArr.forEach((/**
|
|
125
|
-
* @param {?} data
|
|
126
|
-
* @return {?}
|
|
127
|
-
*/
|
|
128
|
-
function (data) {
|
|
129
|
-
cbpList[data.identifier] = data;
|
|
130
|
-
}));
|
|
131
|
-
}
|
|
132
|
-
this.cbPlanMapData = cbpList;
|
|
133
|
-
// this.karmaPointLoading = false
|
|
134
|
-
clearInterval(this.cbPlanInterval);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
CardLandscapeComponent.decorators = [
|
|
138
|
-
{ type: Component, args: [{
|
|
139
|
-
selector: 'sb-uic-card-landscape',
|
|
140
|
-
template: "<ng-container *ngIf=\"!isCardLoading\">\n <a class=\"cursor-pointer\" (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <mat-card class=\"card-portrait mr-2 card-portrait-clickable min-height-remove\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\n <div class=\"course_widget portrait_widget flex margin-bottom-xs\">\n <div class=\"flex flex-end flex-middle course_port\">\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 i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n </sb-uic-display-content-type>\n </div>\n </div>\n <div class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <div class=\" img-block-portrait position-relative\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n <div class=\"duration-box right-corner-portrait\" *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-portrait\" *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 <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n </div>\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-image 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-image ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"width-1-1\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"portrait-subheading mat-subheading-2 title-text\">\n {{ widgetData?.content?.name }}\n </div>\n <div class=\"flex w-full flex-middle\">\n <div class=\"portrait_course_logo_box margin-right-xs\">\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" loading=\"lazy\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <!-- <span class=\"portrait-org-name font-normal mat-caption\">{{'cardcontentv2.by' | translate}} {{ (widgetData.content.organisation && widgetData.content.organisation[0]) ? widgetData.content.organisation[0] : 'Karmayogi Bharat' }}</span> -->\n </div>\n\n <div class=\"flex flex-middle rating-session margin-top-xs\">\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 <!-- <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostEnrolled' | translate }}</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\">{{ 'cardcontentv2.mostTrending' | translate }}</span>\n </ng-container> -->\n </div>\n </div>\n </div>\n </mat-card>\n </a>\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>\n\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-portrait mr-2 card-portrait-clickable\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\n <div class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'147px'\" [height]=\"'100px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"width-1-1\">\n <div class=\"portrait-subheading title-text\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded width-1-1'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'24px'\" [height]=\"'24px'\" [bindingClass]=\"'flex rounded margin-right-xs'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"portrait_widget flex margin-top-xs\">\n <div class=\"flex flex-end flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </mat-card>\n</ng-container>",
|
|
141
|
-
styles: [".card-portrait{border-radius:12px;border:1px solid rgba(0,0,0,.08);opacity:1;width:350px;min-height:154px;padding:16px}.card-portrait .img-block-portrait{line-height:10px}.card-portrait .card-image{border-radius:8px;opacity:1;background-size:100%;width:147px;height:100px}.card-portrait .portrait-subheading{opacity:1;color:rgba(0,0,0,.87);font-weight:700;font-style:normal;letter-spacing:.25px;text-align:left;word-break:break-word;white-space:initial;margin:0 0 8px;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:40px}.card-portrait .portrait_course_logo_box img{padding:3px;display:inline-block;width:24px;height:24px;border:1px solid #d6d6d6;border-radius:4px;box-sizing:border-box}.card-portrait span.portrait-org-name{width:75%;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-portrait .portrait_widget{align-items:center;margin-top:0}.card-portrait .portrait_widget .course_port{border:1px solid #ef951e;padding:4px 8px;align-items:center;border-radius:16px}.card-portrait .portrait_widget .video-icon{opacity:1;color:#ef951e;width:15px;height:15px;font-size:15px}.card-portrait .portrait_widget .portrait-category{color:rgba(0,0,0,.6)!important;font-size:.75rem;opacity:1;font-family:Lato-Regular;font-weight:400;font-style:normal;letter-spacing:.25px;text-align:left;line-height:20px}.card-portrait .progress-wrapper .progress-block{width:60%}.card-portrait .progress-wrapper .progress-block .completed-time{color:#ef951e;display:flex;padding:8px 0}.card-portrait .progress-wrapper .progress-block .completed-time mat-icon{width:1rem;height:1rem;font-size:1rem}.card-portrait .progress-wrapper .progress-block .completed-time span{opacity:1;color:rgba(0,0,0,.87);font-family:Lato-Regular;font-size:.75rem;font-weight:400;font-style:normal;letter-spacing:.25px;text-align:left;line-height:16px}.card-portrait .progress-wrapper .progress-btn .resume-btn{opacity:1;color:#fff;font-family:Lato-Bold;font-size:14px;font-weight:700;font-style:normal;letter-spacing:.5px;text-align:left;line-height:20px;background:#1a4ca1;border-radius:63px;padding:6px 16px;border:none;width:100%;cursor:pointer}.card-portrait .progress-wrapper .progress-btn .resume-btn .textwrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:82px}.card-portrait .progress-wrapper .progress-btn .resume-btn:hover{background-color:#253379}.card-portrait .progress-bar-new{color:#ef951e!important;height:10px;border-radius:5px}.card-portrait .rating-session mat-icon{font-size:20px;height:20px;width:20px;color:#ef951e}.card-portrait .rating-session .rating-number{font-size:14px}.card-portrait .rating-session .most-enrolled-text{font-size:10px;font-weight:400;padding:4px;background:#ffea9e;border-radius:4px;line-height:12px}.card-portrait .right-corner-portrait{right:8px;bottom:8px}.card-portrait-clickable{min-height:146px!important}.card-portrait-clickable .right-corner-portrait{right:8px;bottom:8px}.card-portrait-clickable:hover{transform:scale(1.02)}.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}.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}@media only screen and (max-width:768px){.card-portrait{width:calc(100vw - 66px)}.card-wide-v2{min-height:356px}.card-wide-v2 .imageholder img{border-radius:12px 12px 0 0!important}.cbpwidth{width:calc(100vw - 100px)}}"]
|
|
142
|
-
}] }
|
|
143
|
-
];
|
|
144
|
-
/** @nocollapse */
|
|
145
|
-
CardLandscapeComponent.ctorParameters = function () { return [
|
|
146
|
-
{ type: MatSnackBar },
|
|
147
|
-
{ type: EventService },
|
|
148
|
-
{ type: TranslateService },
|
|
149
|
-
{ type: MultilingualTranslationsService },
|
|
150
|
-
{ type: ConfigurationsService }
|
|
151
|
-
]; };
|
|
152
|
-
CardLandscapeComponent.propDecorators = {
|
|
153
|
-
widgetData: [{ type: Input }],
|
|
154
|
-
isLiveOrMarkForDeletion: [{ type: Input }],
|
|
155
|
-
showIntranetContent: [{ type: Input }],
|
|
156
|
-
isIntranetAllowedSettings: [{ type: Input }],
|
|
157
|
-
isCardLoading: [{ type: Input }],
|
|
158
|
-
contentData: [{ type: Output }]
|
|
159
|
-
};
|
|
160
|
-
return CardLandscapeComponent;
|
|
161
|
-
}());
|
|
162
|
-
export { CardLandscapeComponent };
|
|
163
|
-
if (false) {
|
|
164
|
-
/** @type {?} */
|
|
165
|
-
CardLandscapeComponent.prototype.widgetData;
|
|
166
|
-
/** @type {?} */
|
|
167
|
-
CardLandscapeComponent.prototype.isLiveOrMarkForDeletion;
|
|
168
|
-
/** @type {?} */
|
|
169
|
-
CardLandscapeComponent.prototype.showIntranetContent;
|
|
170
|
-
/** @type {?} */
|
|
171
|
-
CardLandscapeComponent.prototype.isIntranetAllowedSettings;
|
|
172
|
-
/** @type {?} */
|
|
173
|
-
CardLandscapeComponent.prototype.isCardLoading;
|
|
174
|
-
/** @type {?} */
|
|
175
|
-
CardLandscapeComponent.prototype.contentData;
|
|
176
|
-
/** @type {?} */
|
|
177
|
-
CardLandscapeComponent.prototype.isCardFlipped;
|
|
178
|
-
/** @type {?} */
|
|
179
|
-
CardLandscapeComponent.prototype.defaultThumbnail;
|
|
180
|
-
/** @type {?} */
|
|
181
|
-
CardLandscapeComponent.prototype.acbpConstants;
|
|
182
|
-
/** @type {?} */
|
|
183
|
-
CardLandscapeComponent.prototype.sourceLogos;
|
|
184
|
-
/** @type {?} */
|
|
185
|
-
CardLandscapeComponent.prototype.defaultSLogo;
|
|
186
|
-
/** @type {?} */
|
|
187
|
-
CardLandscapeComponent.prototype.showFlip;
|
|
188
|
-
/** @type {?} */
|
|
189
|
-
CardLandscapeComponent.prototype.widgetType;
|
|
190
|
-
/** @type {?} */
|
|
191
|
-
CardLandscapeComponent.prototype.widgetSubType;
|
|
192
|
-
/** @type {?} */
|
|
193
|
-
CardLandscapeComponent.prototype.cbPlanMapData;
|
|
194
|
-
/** @type {?} */
|
|
195
|
-
CardLandscapeComponent.prototype.cbPlanInterval;
|
|
196
|
-
/**
|
|
197
|
-
* @type {?}
|
|
198
|
-
* @private
|
|
199
|
-
*/
|
|
200
|
-
CardLandscapeComponent.prototype.snackBar;
|
|
201
|
-
/**
|
|
202
|
-
* @type {?}
|
|
203
|
-
* @private
|
|
204
|
-
*/
|
|
205
|
-
CardLandscapeComponent.prototype.events;
|
|
206
|
-
/**
|
|
207
|
-
* @type {?}
|
|
208
|
-
* @private
|
|
209
|
-
*/
|
|
210
|
-
CardLandscapeComponent.prototype.translate;
|
|
211
|
-
/**
|
|
212
|
-
* @type {?}
|
|
213
|
-
* @private
|
|
214
|
-
*/
|
|
215
|
-
CardLandscapeComponent.prototype.langtranslations;
|
|
216
|
-
/**
|
|
217
|
-
* @type {?}
|
|
218
|
-
* @private
|
|
219
|
-
*/
|
|
220
|
-
CardLandscapeComponent.prototype.configSvc;
|
|
221
|
-
}
|
|
222
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC1sYW5kc2NhcGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtY2IvY29uc3VtcHRpb24vIiwic291cmNlcyI6WyJsaWIvX2NvbW1vbi9jYXJkcy9jYXJkLWxhbmRzY2FwZS9jYXJkLWxhbmRzY2FwZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDL0UsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQ3BF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
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
6
|
-
import { NsCardContent } from '../../../_models/card-content.model';
|
|
7
|
-
import { MatSnackBar } from '@angular/material';
|
|
8
|
-
import { ConfigurationsService, EventService } from '@sunbird-cb/utils-v2';
|
|
9
|
-
import * as _ from "lodash";
|
|
10
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
11
|
-
import { MultilingualTranslationsService } from '../../../_services/multilingual-translations.service';
|
|
12
|
-
var CardPortraitComponent = /** @class */ (function () {
|
|
13
|
-
function CardPortraitComponent(snackBar, events, translate, langtranslations, configSvc) {
|
|
14
|
-
var _this = this;
|
|
15
|
-
this.snackBar = snackBar;
|
|
16
|
-
this.events = events;
|
|
17
|
-
this.translate = translate;
|
|
18
|
-
this.langtranslations = langtranslations;
|
|
19
|
-
this.configSvc = configSvc;
|
|
20
|
-
this.isCardLoading = false;
|
|
21
|
-
this.contentData = new EventEmitter();
|
|
22
|
-
this.isCardFlipped = false;
|
|
23
|
-
this.showFlip = false;
|
|
24
|
-
this.widgetType = 'df';
|
|
25
|
-
this.widgetSubType = 'sdf';
|
|
26
|
-
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
27
|
-
* @return {?}
|
|
28
|
-
*/
|
|
29
|
-
function () {
|
|
30
|
-
if (localStorage.getItem('websiteLanguage')) {
|
|
31
|
-
_this.translate.setDefaultLang('en');
|
|
32
|
-
/** @type {?} */
|
|
33
|
-
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
34
|
-
_this.translate.use(lang);
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @return {?}
|
|
40
|
-
*/
|
|
41
|
-
CardPortraitComponent.prototype.ngOnInit = /**
|
|
42
|
-
* @return {?}
|
|
43
|
-
*/
|
|
44
|
-
function () {
|
|
45
|
-
/** @type {?} */
|
|
46
|
-
var instanceConfig = this.configSvc.instanceConfig;
|
|
47
|
-
if (instanceConfig) {
|
|
48
|
-
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
49
|
-
this.sourceLogos = instanceConfig.sources;
|
|
50
|
-
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
54
|
-
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* @return {?}
|
|
59
|
-
*/
|
|
60
|
-
CardPortraitComponent.prototype.showSnackbar = /**
|
|
61
|
-
* @return {?}
|
|
62
|
-
*/
|
|
63
|
-
function () {
|
|
64
|
-
if (this.showIntranetContent) {
|
|
65
|
-
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
66
|
-
}
|
|
67
|
-
else if (!this.isLiveOrMarkForDeletion) {
|
|
68
|
-
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* @param {?} contentData
|
|
73
|
-
* @return {?}
|
|
74
|
-
*/
|
|
75
|
-
CardPortraitComponent.prototype.getRedirectUrlData = /**
|
|
76
|
-
* @param {?} contentData
|
|
77
|
-
* @return {?}
|
|
78
|
-
*/
|
|
79
|
-
function (contentData) {
|
|
80
|
-
this.contentData.emit(contentData);
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* @return {?}
|
|
84
|
-
*/
|
|
85
|
-
CardPortraitComponent.prototype.raiseTelemetry = /**
|
|
86
|
-
* @return {?}
|
|
87
|
-
*/
|
|
88
|
-
function () {
|
|
89
|
-
// if(this.forPreview){
|
|
90
|
-
// return
|
|
91
|
-
// }
|
|
92
|
-
this.events.raiseInteractTelemetry({
|
|
93
|
-
type: 'click',
|
|
94
|
-
subType: this.widgetType + "-" + this.widgetSubType,
|
|
95
|
-
id: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
96
|
-
}, {
|
|
97
|
-
id: this.widgetData.content.identifier,
|
|
98
|
-
type: this.widgetData.content.primaryCategory,
|
|
99
|
-
//context: this.widgetData.context,
|
|
100
|
-
rollup: {},
|
|
101
|
-
ver: "" + this.widgetData.content.version + '',
|
|
102
|
-
}, {
|
|
103
|
-
pageIdExt: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
104
|
-
module: _.camelCase(this.widgetData.content.primaryCategory),
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
CardPortraitComponent.decorators = [
|
|
108
|
-
{ type: Component, args: [{
|
|
109
|
-
selector: 'sb-uic-card-portrait',
|
|
110
|
-
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove cursor-pointer \" [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)=\"raiseTelemetry();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 | 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 class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\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=\"widgetData?.content?.endDate\">\n <div class=\"cbp-mark\">\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">Over due</p>\n </div>\n </ng-container> -->\n <!-- <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\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 i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\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.identifier)\" />\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>",
|
|
111
|
-
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:268px;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}"]
|
|
112
|
-
}] }
|
|
113
|
-
];
|
|
114
|
-
/** @nocollapse */
|
|
115
|
-
CardPortraitComponent.ctorParameters = function () { return [
|
|
116
|
-
{ type: MatSnackBar },
|
|
117
|
-
{ type: EventService },
|
|
118
|
-
{ type: TranslateService },
|
|
119
|
-
{ type: MultilingualTranslationsService },
|
|
120
|
-
{ type: ConfigurationsService }
|
|
121
|
-
]; };
|
|
122
|
-
CardPortraitComponent.propDecorators = {
|
|
123
|
-
widgetData: [{ type: Input }],
|
|
124
|
-
isLiveOrMarkForDeletion: [{ type: Input }],
|
|
125
|
-
showIntranetContent: [{ type: Input }],
|
|
126
|
-
isIntranetAllowedSettings: [{ type: Input }],
|
|
127
|
-
isCardLoading: [{ type: Input }],
|
|
128
|
-
contentData: [{ type: Output }]
|
|
129
|
-
};
|
|
130
|
-
return CardPortraitComponent;
|
|
131
|
-
}());
|
|
132
|
-
export { CardPortraitComponent };
|
|
133
|
-
if (false) {
|
|
134
|
-
/** @type {?} */
|
|
135
|
-
CardPortraitComponent.prototype.widgetData;
|
|
136
|
-
/** @type {?} */
|
|
137
|
-
CardPortraitComponent.prototype.isLiveOrMarkForDeletion;
|
|
138
|
-
/** @type {?} */
|
|
139
|
-
CardPortraitComponent.prototype.showIntranetContent;
|
|
140
|
-
/** @type {?} */
|
|
141
|
-
CardPortraitComponent.prototype.isIntranetAllowedSettings;
|
|
142
|
-
/** @type {?} */
|
|
143
|
-
CardPortraitComponent.prototype.isCardLoading;
|
|
144
|
-
/** @type {?} */
|
|
145
|
-
CardPortraitComponent.prototype.contentData;
|
|
146
|
-
/** @type {?} */
|
|
147
|
-
CardPortraitComponent.prototype.isCardFlipped;
|
|
148
|
-
/** @type {?} */
|
|
149
|
-
CardPortraitComponent.prototype.defaultThumbnail;
|
|
150
|
-
/** @type {?} */
|
|
151
|
-
CardPortraitComponent.prototype.sourceLogos;
|
|
152
|
-
/** @type {?} */
|
|
153
|
-
CardPortraitComponent.prototype.defaultSLogo;
|
|
154
|
-
/** @type {?} */
|
|
155
|
-
CardPortraitComponent.prototype.showFlip;
|
|
156
|
-
/** @type {?} */
|
|
157
|
-
CardPortraitComponent.prototype.widgetType;
|
|
158
|
-
/** @type {?} */
|
|
159
|
-
CardPortraitComponent.prototype.widgetSubType;
|
|
160
|
-
/**
|
|
161
|
-
* @type {?}
|
|
162
|
-
* @private
|
|
163
|
-
*/
|
|
164
|
-
CardPortraitComponent.prototype.snackBar;
|
|
165
|
-
/**
|
|
166
|
-
* @type {?}
|
|
167
|
-
* @private
|
|
168
|
-
*/
|
|
169
|
-
CardPortraitComponent.prototype.events;
|
|
170
|
-
/**
|
|
171
|
-
* @type {?}
|
|
172
|
-
* @private
|
|
173
|
-
*/
|
|
174
|
-
CardPortraitComponent.prototype.translate;
|
|
175
|
-
/**
|
|
176
|
-
* @type {?}
|
|
177
|
-
* @private
|
|
178
|
-
*/
|
|
179
|
-
CardPortraitComponent.prototype.langtranslations;
|
|
180
|
-
/**
|
|
181
|
-
* @type {?}
|
|
182
|
-
* @private
|
|
183
|
-
*/
|
|
184
|
-
CardPortraitComponent.prototype.configSv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WxlOiBfLmNhbWVsQ2FzZSh0aGlzLndpZGdldERhdGEuY29udGVudC5wcmltYXJ5Q2F0ZWdvcnkpLFxuICAgICAgfSlcbiAgfVxuXG59XG4iXX0=
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
import { WidgetBaseComponent } from '@sunbird-cb/resolver-v2';
|
|
8
|
-
import { NsCardContent } from '../../../_models/card-content.model';
|
|
9
|
-
var CardResourceComponent = /** @class */ (function (_super) {
|
|
10
|
-
tslib_1.__extends(CardResourceComponent, _super);
|
|
11
|
-
function CardResourceComponent() {
|
|
12
|
-
return _super.call(this) || this;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @return {?}
|
|
16
|
-
*/
|
|
17
|
-
CardResourceComponent.prototype.ngOnInit = /**
|
|
18
|
-
* @return {?}
|
|
19
|
-
*/
|
|
20
|
-
function () {
|
|
21
|
-
};
|
|
22
|
-
CardResourceComponent.decorators = [
|
|
23
|
-
{ type: Component, args: [{
|
|
24
|
-
selector: 'ws-cb-widget-card-resource',
|
|
25
|
-
template: " <!-- <mat-card class=\"card-resource-container mr-5 padding-remove cursor-pointer \" [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)=\"raiseTelemetry();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 | 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 class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\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?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\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 <ws-widget-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </ws-widget-display-content-type>\n </div>\n <div class=\"flex ml-5 flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <ws-widget-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </ws-widget-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 description-text font-medium 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.identifier)\" />\n </div>\n <span class=\"org-text\">{{'cardcontentv2.by' | translate}} {{ (widgetData.content.organisation && widgetData.content.organisation[0]) ? widgetData.content.organisation[0] : 'Karmayogi Bharat' }}</span>\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",
|
|
26
|
-
styles: [".card-resource-container{position:relative;width:384px;min-height:346px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:450px;margin:20px 8px}.card-resource-container .icon_text{font-size:12px;line-height:16px;text-transform:uppercase}.card-resource-container .description-text{margin:12px 0;font-weight:400}.card-resource-container .course_logo_box{width:24px;height:24px;background:#fff;border-radius:4px;border:1px solid rgba(0,0,0,.1607843137);box-sizing:border-box}.card-resource-container .course_logo_box img{height:18px;width:18px;padding:2px;display:inline-block}.card-resource-container .course_logo_box p{display:inline-block;vertical-align:top}.card-resource-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-resource-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-resource-container .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-resource-container mat-card-content{background:#fff}.card-resource-container .card-img{max-height:240px;min-height:240px;width:100%;display:block;-o-object-fit:fill;object-fit:fill;border-top-left-radius:8px;border-top-right-radius:8px}.card-resource-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-resource-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-resource-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-resource-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-resource-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-resource-container .basic{margin:auto 0}.card-resource-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-resource-container .description-text{position:relative;overflow:hidden;height:42px;white-space:normal;text-overflow:ellipsis}"]
|
|
27
|
-
}] }
|
|
28
|
-
];
|
|
29
|
-
/** @nocollapse */
|
|
30
|
-
CardResourceComponent.ctorParameters = function () { return []; };
|
|
31
|
-
CardResourceComponent.propDecorators = {
|
|
32
|
-
widgetData: [{ type: Input }]
|
|
33
|
-
};
|
|
34
|
-
return CardResourceComponent;
|
|
35
|
-
}(WidgetBaseComponent));
|
|
36
|
-
export { CardResourceComponent };
|
|
37
|
-
if (false) {
|
|
38
|
-
/** @type {?} */
|
|
39
|
-
CardResourceComponent.prototype.widgetData;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC1yZXNvdXJjZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1jYi9jb25zdW1wdGlvbi8iLCJzb3VyY2VzIjpbImxpYi9fY29tbW9uL2NhcmRzL2NhcmQtcmVzb3VyY2UvY2FyZC1yZXNvdXJjZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQW9CLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDaEYsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBRXBFO0lBSzJDLGlEQUFtQjtJQUs1RDtlQUNFLGlCQUFPO0lBQ1QsQ0FBQzs7OztJQUVELHdDQUFROzs7SUFBUjtJQUNBLENBQUM7O2dCQWZGLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsNEJBQTRCO29CQUN0Qyx1aVBBQTZDOztpQkFFOUM7Ozs7OzZCQUlFLEtBQUs7O0lBU1IsNEJBQUM7Q0FBQSxBQWpCRCxDQUsyQyxtQkFBbUIsR0FZN0Q7U0FaWSxxQkFBcUI7OztJQUdoQywyQ0FBMEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIElucHV0LCBPbkluaXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IE5zV2lkZ2V0UmVzb2x2ZXIsIFdpZGdldEJhc2VDb21wb25lbnQgfSBmcm9tICd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