@sunbird-cb/consumption 0.0.59 → 0.0.60
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/README.md +24 -24
- package/bundles/sunbird-cb-consumption.umd.js +17319 -17319
- 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/announcements/announcements.component.js +150 -150
- package/esm2015/lib/_common/announcements/announcements.module.js +23 -23
- package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +158 -158
- package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +29 -29
- package/esm2015/lib/_common/calender/calender-day/calender-day.component.js +90 -90
- package/esm2015/lib/_common/calender/calender.component.js +299 -299
- package/esm2015/lib/_common/calender/calender.module.js +31 -31
- package/esm2015/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.js +170 -170
- package/esm2015/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +178 -178
- package/esm2015/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.js +166 -166
- package/esm2015/lib/_common/cards/card-landscape/card-landscape.component.js +202 -202
- package/esm2015/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +154 -154
- package/esm2015/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.js +154 -154
- package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +167 -167
- package/esm2015/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +170 -170
- package/esm2015/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js +261 -261
- package/esm2015/lib/_common/cards/card-resource/card-resource.component.js +34 -34
- package/esm2015/lib/_common/cards/card-user/card-user.component.js +141 -141
- package/esm2015/lib/_common/cards/card-wide/card-wide.component.js +166 -166
- package/esm2015/lib/_common/cards/card-wide-v2/card-wide-v2.component.js +171 -171
- package/esm2015/lib/_common/cards/cards.component.js +167 -167
- package/esm2015/lib/_common/cards/cards.module.js +100 -100
- package/esm2015/lib/_common/cards/provider-card/provider-card.component.js +81 -81
- package/esm2015/lib/_common/cbp-plan/cbp-plan.component.js +166 -166
- package/esm2015/lib/_common/cbp-plan/cbp-plan.module.js +27 -27
- package/esm2015/lib/_common/common-strip/common-strip.component.js +646 -646
- package/esm2015/lib/_common/common-strip/common-strip.model.js +216 -216
- package/esm2015/lib/_common/common-strip/common-strip.module.js +62 -62
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +384 -384
- package/esm2015/lib/_common/competency-passbook/competency-passbook.module.js +27 -27
- package/esm2015/lib/_common/competency-passbook/competency-passbook.service.js +52 -52
- package/esm2015/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.js +332 -332
- package/esm2015/lib/_common/competency-passbook-mdo/competency-passbook-mdo.module.js +27 -27
- package/esm2015/lib/_common/competency-passbook-mdo/competency-passbook-mdo.service.js +52 -52
- package/esm2015/lib/_common/content-progress/content-progress.component.js +89 -89
- package/esm2015/lib/_common/content-progress/content-progress.module.js +22 -22
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +2443 -2443
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +214 -214
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.js +69 -69
- package/esm2015/lib/_common/data-points/data-points.component.js +148 -148
- package/esm2015/lib/_common/data-points/data-points.module.js +23 -23
- package/esm2015/lib/_common/dialog-components/certificate-dialog/certificate-dialog.component.js +225 -225
- package/esm2015/lib/_common/dialog-components/dialog-components.module.js +43 -43
- package/esm2015/lib/_common/display-content-type-lib/display-content-type-lib.component.js +60 -60
- package/esm2015/lib/_common/display-content-type-lib/display-content-type-lib.module.js +18 -18
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +362 -362
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.js +23 -23
- package/esm2015/lib/_common/microsites/mdo-channels/mdo-channel-v1/mdo-channel-v1.component.js +23 -23
- package/esm2015/lib/_common/microsites/mdo-channels/mdo-channel-v2/mdo-channel-v2.component.js +255 -255
- package/esm2015/lib/_common/microsites/mdo-channels/mdo-channel.module.js +52 -52
- package/esm2015/lib/_common/microsites/providers/providers-v2/providers-v2.component.js +269 -269
- package/esm2015/lib/_common/microsites/providers/providers.module.js +51 -51
- package/esm2015/lib/_common/pills/pills.component.js +61 -61
- package/esm2015/lib/_common/pills/pills.module.js +24 -24
- package/esm2015/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.js +40 -40
- package/esm2015/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.js +28 -28
- package/esm2015/lib/_common/sliders/sliders.component.js +184 -184
- package/esm2015/lib/_common/sliders/sliders.model.js +67 -67
- package/esm2015/lib/_common/sliders/sliders.module.js +50 -50
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +206 -206
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -61
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.module.js +50 -50
- package/esm2015/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +1613 -1613
- package/esm2015/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.model.js +218 -218
- package/esm2015/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.module.js +69 -69
- package/esm2015/lib/_common/top-learners/top-learners.component.js +155 -155
- package/esm2015/lib/_common/top-learners/top-learners.module.js +23 -23
- package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.component.js +145 -145
- package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.module.js +38 -38
- package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.service.js +45 -45
- package/esm2015/lib/_constants/misc.constants.js +4 -4
- package/esm2015/lib/_directives/default-thumbnail/default-thumbnail.directive.js +51 -51
- package/esm2015/lib/_directives/default-thumbnail/default-thumbnail.module.js +18 -18
- package/esm2015/lib/_directives/image-responsive/image-responsive.directive.js +126 -126
- package/esm2015/lib/_directives/image-responsive/image-responsive.module.js +18 -18
- package/esm2015/lib/_directives/navigation/navigation.directive.js +53 -53
- package/esm2015/lib/_directives/navigation/navigation.module.js +18 -18
- package/esm2015/lib/_directives/scrollable-item/scrollable-item.directive.js +42 -42
- package/esm2015/lib/_directives/scrollable-item/scrollable-item.module.js +19 -19
- package/esm2015/lib/_models/card-content-v2.model.js +78 -78
- package/esm2015/lib/_models/card-content.model.js +69 -69
- package/esm2015/lib/_models/card-users.model.js +103 -103
- package/esm2015/lib/_models/content-strip-multiple.model.js +195 -195
- package/esm2015/lib/_models/event.js +45 -45
- package/esm2015/lib/_models/profile-v3.models.js +196 -196
- package/esm2015/lib/_models/rating.model.js +44 -44
- package/esm2015/lib/_models/widget-content.model.js +876 -876
- package/esm2015/lib/_models/widget-search.model.js +471 -471
- package/esm2015/lib/_models/widget-user.model.js +17 -17
- package/esm2015/lib/_pipes/object-to-array/object-to-array.pipe.js +28 -28
- package/esm2015/lib/_pipes/object-to-array/object-to-array.pipe.module.js +19 -19
- package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.js +18 -18
- package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +119 -119
- package/esm2015/lib/_pipes/pipe-public-URL/pipe-public-URL.module.js +19 -19
- package/esm2015/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.js +38 -38
- package/esm2015/lib/_services/certificate.service.js +63 -63
- package/esm2015/lib/_services/common-methods.service.js +84 -84
- package/esm2015/lib/_services/configurations.service.js +243 -243
- package/esm2015/lib/_services/insite-data.service.js +68 -68
- package/esm2015/lib/_services/multilingual-translations.service.js +231 -231
- package/esm2015/lib/_services/rating.service.js +171 -171
- package/esm2015/lib/_services/viewer-route-util.js +125 -125
- package/esm2015/lib/_services/widget-content.service.js +852 -852
- package/esm2015/lib/_services/widget-user.service.js +439 -439
- package/esm2015/lib/consumption.component.js +26 -26
- package/esm2015/lib/consumption.config.js +12 -12
- package/esm2015/lib/consumption.module.js +36 -36
- package/esm2015/lib/consumption.service.js +18 -18
- package/esm2015/lib/registration-lib.config.js +21 -21
- package/esm2015/public-api.js +31 -31
- package/esm2015/sunbird-cb-consumption.js +77 -77
- package/esm5/lib/_common/announcements/announcements.component.js +166 -166
- package/esm5/lib/_common/announcements/announcements.module.js +27 -27
- package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +175 -175
- package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +33 -33
- package/esm5/lib/_common/calender/calender-day/calender-day.component.js +101 -101
- package/esm5/lib/_common/calender/calender.component.js +334 -334
- package/esm5/lib/_common/calender/calender.module.js +35 -35
- package/esm5/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.js +186 -186
- package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +187 -187
- package/esm5/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.js +176 -176
- package/esm5/lib/_common/cards/card-landscape/card-landscape.component.js +216 -216
- package/esm5/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +164 -164
- package/esm5/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.js +164 -164
- package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +173 -173
- package/esm5/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +176 -176
- package/esm5/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js +278 -278
- package/esm5/lib/_common/cards/card-resource/card-resource.component.js +41 -41
- package/esm5/lib/_common/cards/card-user/card-user.component.js +147 -147
- package/esm5/lib/_common/cards/card-wide/card-wide.component.js +172 -172
- package/esm5/lib/_common/cards/card-wide-v2/card-wide-v2.component.js +181 -181
- package/esm5/lib/_common/cards/cards.component.js +199 -199
- package/esm5/lib/_common/cards/cards.module.js +104 -104
- package/esm5/lib/_common/cards/provider-card/provider-card.component.js +90 -90
- package/esm5/lib/_common/cbp-plan/cbp-plan.component.js +185 -185
- package/esm5/lib/_common/cbp-plan/cbp-plan.module.js +31 -31
- package/esm5/lib/_common/common-strip/common-strip.component.js +760 -760
- package/esm5/lib/_common/common-strip/common-strip.model.js +216 -216
- package/esm5/lib/_common/common-strip/common-strip.module.js +66 -66
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +454 -454
- package/esm5/lib/_common/competency-passbook/competency-passbook.module.js +31 -31
- package/esm5/lib/_common/competency-passbook/competency-passbook.service.js +59 -59
- package/esm5/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.js +383 -383
- package/esm5/lib/_common/competency-passbook-mdo/competency-passbook-mdo.module.js +31 -31
- package/esm5/lib/_common/competency-passbook-mdo/competency-passbook-mdo.service.js +59 -59
- package/esm5/lib/_common/content-progress/content-progress.component.js +94 -94
- package/esm5/lib/_common/content-progress/content-progress.module.js +26 -26
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +2848 -2848
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +214 -214
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.js +73 -73
- package/esm5/lib/_common/data-points/data-points.component.js +163 -163
- package/esm5/lib/_common/data-points/data-points.module.js +27 -27
- package/esm5/lib/_common/dialog-components/certificate-dialog/certificate-dialog.component.js +248 -248
- package/esm5/lib/_common/dialog-components/dialog-components.module.js +47 -47
- package/esm5/lib/_common/display-content-type-lib/display-content-type-lib.component.js +67 -67
- package/esm5/lib/_common/display-content-type-lib/display-content-type-lib.module.js +22 -22
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +391 -391
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.js +27 -27
- package/esm5/lib/_common/microsites/mdo-channels/mdo-channel-v1/mdo-channel-v1.component.js +29 -29
- package/esm5/lib/_common/microsites/mdo-channels/mdo-channel-v2/mdo-channel-v2.component.js +292 -292
- package/esm5/lib/_common/microsites/mdo-channels/mdo-channel.module.js +56 -56
- package/esm5/lib/_common/microsites/providers/providers-v2/providers-v2.component.js +312 -312
- package/esm5/lib/_common/microsites/providers/providers.module.js +55 -55
- package/esm5/lib/_common/pills/pills.component.js +70 -70
- package/esm5/lib/_common/pills/pills.module.js +28 -28
- package/esm5/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.js +45 -45
- package/esm5/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.js +32 -32
- package/esm5/lib/_common/sliders/sliders.component.js +211 -211
- package/esm5/lib/_common/sliders/sliders.model.js +67 -67
- package/esm5/lib/_common/sliders/sliders.module.js +67 -67
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +233 -233
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -61
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.module.js +67 -67
- package/esm5/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +1892 -1892
- package/esm5/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.model.js +218 -218
- package/esm5/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.module.js +73 -73
- package/esm5/lib/_common/top-learners/top-learners.component.js +172 -172
- package/esm5/lib/_common/top-learners/top-learners.module.js +27 -27
- package/esm5/lib/_common/user-content-rating/user-content-rating-lib.component.js +168 -168
- package/esm5/lib/_common/user-content-rating/user-content-rating-lib.module.js +42 -42
- package/esm5/lib/_common/user-content-rating/user-content-rating-lib.service.js +48 -48
- package/esm5/lib/_constants/misc.constants.js +4 -4
- package/esm5/lib/_directives/default-thumbnail/default-thumbnail.directive.js +59 -59
- package/esm5/lib/_directives/default-thumbnail/default-thumbnail.module.js +22 -22
- package/esm5/lib/_directives/image-responsive/image-responsive.directive.js +136 -136
- package/esm5/lib/_directives/image-responsive/image-responsive.module.js +22 -22
- package/esm5/lib/_directives/navigation/navigation.directive.js +62 -62
- package/esm5/lib/_directives/navigation/navigation.module.js +22 -22
- package/esm5/lib/_directives/scrollable-item/scrollable-item.directive.js +45 -45
- package/esm5/lib/_directives/scrollable-item/scrollable-item.module.js +23 -23
- package/esm5/lib/_models/card-content-v2.model.js +78 -78
- package/esm5/lib/_models/card-content.model.js +69 -69
- package/esm5/lib/_models/card-users.model.js +103 -103
- package/esm5/lib/_models/content-strip-multiple.model.js +195 -195
- package/esm5/lib/_models/event.js +45 -45
- package/esm5/lib/_models/profile-v3.models.js +196 -196
- package/esm5/lib/_models/rating.model.js +44 -44
- package/esm5/lib/_models/widget-content.model.js +876 -876
- package/esm5/lib/_models/widget-search.model.js +471 -471
- package/esm5/lib/_models/widget-user.model.js +17 -17
- package/esm5/lib/_pipes/object-to-array/object-to-array.pipe.js +57 -57
- package/esm5/lib/_pipes/object-to-array/object-to-array.pipe.module.js +23 -23
- package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.js +22 -22
- package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +142 -142
- package/esm5/lib/_pipes/pipe-public-URL/pipe-public-URL.module.js +23 -23
- package/esm5/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.js +41 -41
- package/esm5/lib/_services/certificate.service.js +70 -70
- package/esm5/lib/_services/common-methods.service.js +102 -102
- package/esm5/lib/_services/configurations.service.js +257 -257
- package/esm5/lib/_services/insite-data.service.js +82 -82
- package/esm5/lib/_services/multilingual-translations.service.js +259 -259
- package/esm5/lib/_services/rating.service.js +214 -214
- package/esm5/lib/_services/viewer-route-util.js +127 -127
- package/esm5/lib/_services/widget-content.service.js +1109 -1109
- package/esm5/lib/_services/widget-user.service.js +501 -501
- package/esm5/lib/consumption.component.js +28 -28
- package/esm5/lib/consumption.config.js +12 -12
- package/esm5/lib/consumption.module.js +40 -40
- package/esm5/lib/consumption.service.js +21 -21
- package/esm5/lib/registration-lib.config.js +21 -21
- package/esm5/public-api.js +31 -31
- package/esm5/sunbird-cb-consumption.js +77 -77
- package/fesm2015/sunbird-cb-consumption.js +15252 -15252
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +17310 -17310
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/announcements/announcements.component.d.ts +21 -21
- package/lib/_common/announcements/announcements.module.d.ts +2 -2
- package/lib/_common/avatar-photo-lib/avatar-photo-lib.component.d.ts +20 -20
- package/lib/_common/avatar-photo-lib/avatar-photo-lib.module.d.ts +2 -2
- package/lib/_common/calender/calender-day/calender-day.component.d.ts +18 -18
- package/lib/_common/calender/calender.component.d.ts +34 -34
- package/lib/_common/calender/calender.module.d.ts +2 -2
- package/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.d.ts +31 -31
- package/lib/_common/cards/card-karma-programs/card-karma-programs.component.d.ts +28 -28
- package/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.d.ts +26 -26
- package/lib/_common/cards/card-landscape/card-landscape.component.d.ts +36 -36
- package/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.d.ts +27 -27
- package/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.d.ts +27 -27
- package/lib/_common/cards/card-portrait/card-portrait.component.d.ts +33 -33
- package/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.d.ts +33 -33
- package/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.d.ts +41 -41
- package/lib/_common/cards/card-resource/card-resource.component.d.ts +8 -8
- package/lib/_common/cards/card-user/card-user.component.d.ts +24 -24
- package/lib/_common/cards/card-wide/card-wide.component.d.ts +30 -30
- package/lib/_common/cards/card-wide-v2/card-wide-v2.component.d.ts +34 -34
- package/lib/_common/cards/cards.component.d.ts +26 -26
- package/lib/_common/cards/cards.module.d.ts +2 -2
- package/lib/_common/cards/provider-card/provider-card.component.d.ts +14 -14
- package/lib/_common/cbp-plan/cbp-plan.component.d.ts +25 -25
- package/lib/_common/cbp-plan/cbp-plan.module.d.ts +2 -2
- package/lib/_common/common-strip/common-strip.component.d.ts +104 -104
- package/lib/_common/common-strip/common-strip.model.d.ts +141 -141
- package/lib/_common/common-strip/common-strip.module.d.ts +2 -2
- package/lib/_common/competency-passbook/competency-passbook.component.d.ts +42 -42
- package/lib/_common/competency-passbook/competency-passbook.module.d.ts +2 -2
- package/lib/_common/competency-passbook/competency-passbook.service.d.ts +8 -8
- package/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.d.ts +43 -43
- package/lib/_common/competency-passbook-mdo/competency-passbook-mdo.module.d.ts +2 -2
- package/lib/_common/competency-passbook-mdo/competency-passbook-mdo.service.d.ts +8 -8
- package/lib/_common/content-progress/content-progress.component.d.ts +13 -13
- package/lib/_common/content-progress/content-progress.module.d.ts +2 -2
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +201 -201
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +147 -147
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.d.ts +5 -5
- package/lib/_common/data-points/data-points.component.d.ts +17 -17
- package/lib/_common/data-points/data-points.module.d.ts +2 -2
- package/lib/_common/dialog-components/certificate-dialog/certificate-dialog.component.d.ts +22 -22
- package/lib/_common/dialog-components/dialog-components.module.d.ts +2 -2
- package/lib/_common/display-content-type-lib/display-content-type-lib.component.d.ts +12 -12
- package/lib/_common/display-content-type-lib/display-content-type-lib.module.d.ts +2 -2
- package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +33 -33
- package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +2 -2
- package/lib/_common/microsites/mdo-channels/mdo-channel-v1/mdo-channel-v1.component.d.ts +5 -5
- package/lib/_common/microsites/mdo-channels/mdo-channel-v2/mdo-channel-v2.component.d.ts +39 -39
- package/lib/_common/microsites/mdo-channels/mdo-channel.module.d.ts +2 -2
- package/lib/_common/microsites/providers/providers-v2/providers-v2.component.d.ts +36 -36
- package/lib/_common/microsites/providers/providers.module.d.ts +2 -2
- package/lib/_common/pills/pills.component.d.ts +13 -13
- package/lib/_common/pills/pills.module.d.ts +2 -2
- package/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.d.ts +8 -8
- package/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.d.ts +2 -2
- package/lib/_common/sliders/sliders.component.d.ts +26 -26
- package/lib/_common/sliders/sliders.model.d.ts +40 -40
- package/lib/_common/sliders/sliders.module.d.ts +6 -6
- package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +29 -29
- package/lib/_common/sliders-ng-content/sliders-ng-content.model.d.ts +34 -34
- package/lib/_common/sliders-ng-content/sliders-ng-content.module.d.ts +6 -6
- package/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.d.ts +161 -161
- package/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.model.d.ts +149 -149
- package/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.module.d.ts +5 -5
- package/lib/_common/top-learners/top-learners.component.d.ts +18 -18
- package/lib/_common/top-learners/top-learners.module.d.ts +2 -2
- package/lib/_common/user-content-rating/user-content-rating-lib.component.d.ts +22 -22
- package/lib/_common/user-content-rating/user-content-rating-lib.module.d.ts +2 -2
- package/lib/_common/user-content-rating/user-content-rating-lib.service.d.ts +7 -7
- package/lib/_constants/misc.constants.d.ts +2 -2
- package/lib/_directives/default-thumbnail/default-thumbnail.directive.d.ts +9 -9
- package/lib/_directives/default-thumbnail/default-thumbnail.module.d.ts +2 -2
- package/lib/_directives/image-responsive/image-responsive.directive.d.ts +17 -17
- package/lib/_directives/image-responsive/image-responsive.module.d.ts +2 -2
- package/lib/_directives/navigation/navigation.directive.d.ts +9 -9
- package/lib/_directives/navigation/navigation.module.d.ts +2 -2
- package/lib/_directives/scrollable-item/scrollable-item.directive.d.ts +7 -7
- package/lib/_directives/scrollable-item/scrollable-item.module.d.ts +2 -2
- package/lib/_models/card-content-v2.model.d.ts +44 -44
- package/lib/_models/card-content.model.d.ts +41 -41
- package/lib/_models/card-users.model.d.ts +50 -50
- package/lib/_models/content-strip-multiple.model.d.ts +128 -128
- package/lib/_models/event.d.ts +18 -18
- package/lib/_models/profile-v3.models.d.ts +91 -91
- package/lib/_models/rating.model.d.ts +17 -17
- package/lib/_models/widget-content.model.d.ts +497 -497
- package/lib/_models/widget-search.model.d.ts +252 -252
- package/lib/_models/widget-user.model.d.ts +5 -5
- package/lib/_pipes/object-to-array/object-to-array.pipe.d.ts +4 -4
- package/lib/_pipes/object-to-array/object-to-array.pipe.module.d.ts +2 -2
- package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +2 -2
- package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +6 -6
- package/lib/_pipes/pipe-public-URL/pipe-public-URL.module.d.ts +2 -2
- package/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +6 -6
- package/lib/_services/certificate.service.d.ts +8 -8
- package/lib/_services/common-methods.service.d.ts +39 -39
- package/lib/_services/configurations.service.d.ts +71 -71
- package/lib/_services/insite-data.service.d.ts +10 -10
- package/lib/_services/multilingual-translations.service.d.ts +20 -20
- package/lib/_services/rating.service.d.ts +15 -15
- package/lib/_services/viewer-route-util.d.ts +8 -8
- package/lib/_services/widget-content.service.d.ts +87 -87
- package/lib/_services/widget-user.service.d.ts +31 -31
- package/lib/consumption.component.d.ts +5 -5
- package/lib/consumption.config.d.ts +6 -6
- package/lib/consumption.module.d.ts +2 -2
- package/lib/consumption.service.d.ts +3 -3
- package/lib/registration-lib.config.d.ts +4 -4
- package/package.json +1 -1
- package/public-api.d.ts +23 -23
- package/sunbird-cb-consumption.d.ts +73 -73
- package/sunbird-cb-consumption.metadata.json +1 -1
package/esm5/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js
CHANGED
|
@@ -1,278 +1,278 @@
|
|
|
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 { MatDialog, MatSnackBar } from '@angular/material';
|
|
8
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
9
|
-
import { MultilingualTranslationsService } from '../../../_services/multilingual-translations.service';
|
|
10
|
-
import { WidgetContentService } from '../../../_services/widget-content.service';
|
|
11
|
-
import { ConfigurationsService, EventService, WsEvents } from '@sunbird-cb/utils-v2';
|
|
12
|
-
import * as _ from "lodash";
|
|
13
|
-
import { CertificateService } from '../../../_services/certificate.service';
|
|
14
|
-
import { CertificateDialogComponent } from '../../dialog-components/certificate-dialog/certificate-dialog.component';
|
|
15
|
-
var CardProgressPortraitLibComponent = /** @class */ (function () {
|
|
16
|
-
function CardProgressPortraitLibComponent(snackBar, translate, events, langtranslations, configSvc, contSvc, certificateService, dialog) {
|
|
17
|
-
var _this = this;
|
|
18
|
-
this.snackBar = snackBar;
|
|
19
|
-
this.translate = translate;
|
|
20
|
-
this.events = events;
|
|
21
|
-
this.langtranslations = langtranslations;
|
|
22
|
-
this.configSvc = configSvc;
|
|
23
|
-
this.contSvc = contSvc;
|
|
24
|
-
this.certificateService = certificateService;
|
|
25
|
-
this.dialog = dialog;
|
|
26
|
-
this.isCardLoading = false;
|
|
27
|
-
this.contentData = new EventEmitter();
|
|
28
|
-
this.isCardFlipped = false;
|
|
29
|
-
this.acbpConstants = NsCardContent.ACBPConst;
|
|
30
|
-
this.showFlip = false;
|
|
31
|
-
this.widgetType = 'df';
|
|
32
|
-
this.widgetSubType = 'sdf';
|
|
33
|
-
this.downloadCertificateLoading = false;
|
|
34
|
-
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
35
|
-
* @return {?}
|
|
36
|
-
*/
|
|
37
|
-
function () {
|
|
38
|
-
if (localStorage.getItem('websiteLanguage')) {
|
|
39
|
-
_this.translate.setDefaultLang('en');
|
|
40
|
-
/** @type {?} */
|
|
41
|
-
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
42
|
-
_this.translate.use(lang);
|
|
43
|
-
}
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @return {?}
|
|
48
|
-
*/
|
|
49
|
-
CardProgressPortraitLibComponent.prototype.ngOnInit = /**
|
|
50
|
-
* @return {?}
|
|
51
|
-
*/
|
|
52
|
-
function () {
|
|
53
|
-
/** @type {?} */
|
|
54
|
-
var instanceConfig = this.configSvc.instanceConfig;
|
|
55
|
-
if (instanceConfig) {
|
|
56
|
-
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
57
|
-
this.sourceLogos = instanceConfig.sources;
|
|
58
|
-
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
62
|
-
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* @return {?}
|
|
67
|
-
*/
|
|
68
|
-
CardProgressPortraitLibComponent.prototype.showSnackbar = /**
|
|
69
|
-
* @return {?}
|
|
70
|
-
*/
|
|
71
|
-
function () {
|
|
72
|
-
if (this.showIntranetContent) {
|
|
73
|
-
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
74
|
-
}
|
|
75
|
-
else if (!this.isLiveOrMarkForDeletion) {
|
|
76
|
-
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* @param {?} contentData
|
|
81
|
-
* @return {?}
|
|
82
|
-
*/
|
|
83
|
-
CardProgressPortraitLibComponent.prototype.getRedirectUrlData = /**
|
|
84
|
-
* @param {?} contentData
|
|
85
|
-
* @return {?}
|
|
86
|
-
*/
|
|
87
|
-
function (contentData) {
|
|
88
|
-
// for telemetry
|
|
89
|
-
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
90
|
-
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
91
|
-
}
|
|
92
|
-
this.contSvc.changeTelemetryData(contentData);
|
|
93
|
-
// for redirection
|
|
94
|
-
this.contentData.emit(contentData);
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* @param {?} label
|
|
98
|
-
* @param {?} type
|
|
99
|
-
* @param {?=} subtype
|
|
100
|
-
* @return {?}
|
|
101
|
-
*/
|
|
102
|
-
CardProgressPortraitLibComponent.prototype.translateLabels = /**
|
|
103
|
-
* @param {?} label
|
|
104
|
-
* @param {?} type
|
|
105
|
-
* @param {?=} subtype
|
|
106
|
-
* @return {?}
|
|
107
|
-
*/
|
|
108
|
-
function (label, type, subtype) {
|
|
109
|
-
return this.langtranslations.translateLabelWithoutspace(label, type, subtype);
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* @return {?}
|
|
113
|
-
*/
|
|
114
|
-
CardProgressPortraitLibComponent.prototype.raiseTelemetry = /**
|
|
115
|
-
* @return {?}
|
|
116
|
-
*/
|
|
117
|
-
function () {
|
|
118
|
-
this.events.raiseInteractTelemetry({
|
|
119
|
-
type: 'click',
|
|
120
|
-
subType: this.widgetType + "-" + this.widgetSubType,
|
|
121
|
-
id: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
122
|
-
}, {
|
|
123
|
-
id: this.widgetData.content.identifier,
|
|
124
|
-
type: this.widgetData.content.primaryCategory,
|
|
125
|
-
//context: this.widgetData.context,
|
|
126
|
-
rollup: {},
|
|
127
|
-
ver: "" + this.widgetData.content.version + '',
|
|
128
|
-
}, {
|
|
129
|
-
pageIdExt: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
130
|
-
module: _.camelCase(this.widgetData.content.primaryCategory),
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* @param {?} certificateData
|
|
135
|
-
* @return {?}
|
|
136
|
-
*/
|
|
137
|
-
CardProgressPortraitLibComponent.prototype.downloadCertificate = /**
|
|
138
|
-
* @param {?} certificateData
|
|
139
|
-
* @return {?}
|
|
140
|
-
*/
|
|
141
|
-
function (certificateData) {
|
|
142
|
-
var _this = this;
|
|
143
|
-
this.events.raiseInteractTelemetry({
|
|
144
|
-
type: WsEvents.EnumInteractTypes.CLICK,
|
|
145
|
-
id: 'view-certificate',
|
|
146
|
-
subType: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
147
|
-
}, {
|
|
148
|
-
id: certificateData.issuedCertificates[0].identifier,
|
|
149
|
-
// id of the certificate
|
|
150
|
-
type: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
151
|
-
});
|
|
152
|
-
if (certificateData.issuedCertificates.length > 0) {
|
|
153
|
-
this.downloadCertificateLoading = true;
|
|
154
|
-
/** @type {?} */
|
|
155
|
-
var certData_1 = certificateData.issuedCertificates[0];
|
|
156
|
-
this.certificateService.downloadCertificate_v2(certData_1.identifier).subscribe((/**
|
|
157
|
-
* @param {?} res
|
|
158
|
-
* @return {?}
|
|
159
|
-
*/
|
|
160
|
-
function (res) {
|
|
161
|
-
_this.downloadCertificateLoading = false;
|
|
162
|
-
/** @type {?} */
|
|
163
|
-
var cet = res.result.printUri;
|
|
164
|
-
_this.dialog.open(CertificateDialogComponent, {
|
|
165
|
-
width: '1300px',
|
|
166
|
-
data: { cet: cet, certId: certData_1.identifier },
|
|
167
|
-
});
|
|
168
|
-
}));
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
this.downloadCertificateLoading = false;
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
CardProgressPortraitLibComponent.decorators = [
|
|
175
|
-
{ type: Component, args: [{
|
|
176
|
-
selector: 'sb-uic-card-progress-portrait-lib',
|
|
177
|
-
template: "<ng-container *ngIf=\"!isCardLoading\">\r\n <mat-card class=\"card-portrait card-progress-portrait-lib cursor-pointer\" [ngClass]=\"widgetData?.cardCustomeClass ? widgetData?.cardCustomeClass : ''\" (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" >\r\n <div class=\"course_widget portrait_widget flex margin-bottom-xs\" [ngClass]=\"{'retiredCards': widgetData?.content?.status === 'Retired' && widgetData?.content?.completionPercentage === 100}\">\r\n <div class=\"flex flex-end flex-middle course_port\">\r\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\r\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData?.content?.primaryCategory\"\r\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData?.content?.primaryCategory==='Course Unit'\r\n ?'Module'\r\n :widgetData?.content?.primaryCategory\">\r\n </sb-uic-display-content-type>\r\n </div>\r\n </div>\r\n <div class=\"flex\" [ngClass]=\"{'retiredCards': widgetData?.content?.status === 'Retired' && widgetData?.content?.completionPercentage === 100}\">\r\n <div class=\"margin-right-s\">\r\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\r\n <div class=\" img-block-portrait position-relative\">\r\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\r\n class=\"card-image ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\r\n [alt]=\"widgetData?.content?.name\" />\r\n <div class=\"duration-box right-corner-portrait\" *ngIf=\"widgetData?.content?.duration > 0\">\r\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\r\n <span class=\" ws-mat-white-text duration\">\r\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\r\n </span>\r\n </div>\r\n <div class=\"duration-box right-corner-portrait\" *ngIf=\"widgetData?.content?.programDuration > 0\">\r\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\r\n <span class=\" ws-mat-white-text duration\">\r\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\r\n </span>\r\n </div>\r\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier] && cbPlanMapData[widgetData?.content?.identifier]?.contentStatus < 2\">\r\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\r\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\r\n }}\"></ng-container>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"!widgetData?.content?.posterImage\">\r\n <ng-container *ngIf=\"widgetData?.content?.appIcon; else defaultImg\">\r\n <img mat-card-image [src]=\"widgetData?.content?.appIcon | pipePublicURL\" loading=\"lazy\"\r\n class=\"card-image ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\r\n [alt]=\"widgetData?.content?.name\" />\r\n </ng-container>\r\n <ng-template #defaultImg>\r\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\r\n class=\"card-image ws-mat-primary-lite-background margin-remove\"\r\n [alt]=\"widgetData?.content?.name\" />\r\n </ng-template>\r\n </ng-container>\r\n </div>\r\n <div class=\"width-1-1\">\r\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\r\n class=\"portrait-subheading mat-subheading-2 title-text\">\r\n {{ widgetData?.content?.name }}\r\n </div>\r\n <div class=\"flex w-full flex-middle\">\r\n <div class=\"portrait_course_logo_box margin-right-xs\">\r\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" loading=\"lazy\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\r\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\r\n </div>\r\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>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"widgetData?.content?.completionPercentage < 100\">\r\n <div class=\"flex flex-align-end progress-wrapper flex-between\" >\r\n <div class=\"progress-block\" >\r\n <div class=\"completed-time\">\r\n <mat-icon class=\"mat-icon schedule margin-right-xs\">schedule</mat-icon>\r\n <span>{{widgetData?.content?.completionPercentage}}%</span>\r\n </div>\r\n <div>\r\n <ng-container *ngIf=\"widgetData?.content?.completionStatus < 2\">\r\n <sb-uic-content-progress class=\"progress-bar-new\" [customClassName]=\"'course-progress-bar'\" *ngIf=\"widgetData?.content?.identifier\"\r\n [contentId]=\"widgetData?.content?.identifier\" [progress]=\"widgetData?.content?.completionPercentage\"\r\n [progressType]=\"'percentage'\">\r\n </sb-uic-content-progress>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"progress-btn\">\r\n <button class=\"resume-btn flex flex-middle flex-between\" [routerLink]=\"['/app/toc/',widgetData?.content?.identifier,'overview']\"\r\n [queryParams]=\"{primaryCategory: widgetData?.content?.primaryCategory}\" [state]=\"widgetData?.stateData\" \r\n [matTooltipPosition]=\"'below'\"\r\n [matTooltipDisabled]=\"(!widgetData?.content?.completionPercentage ? translateLabels('start', 'cardcontentv2') : translateLabels('resume', 'cardcontentv2')).length < 11\"\r\n matTooltip=\"{{!widgetData?.content?.completionPercentage ? translateLabels('start', 'cardcontentv2') : translateLabels('resume', 'cardcontentv2')}}\">\r\n <span class=\"textwrap margin-right-xs\">\r\n {{!widgetData?.content?.completionPercentage ? translateLabels('start', 'cardcontentv2') : translateLabels('resume', 'cardcontentv2')}}</span>\r\n <img class=\"stats-icon\" height=\"20\" width=\"20\" src=\"/assets/icons/home/play.svg\">\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"widgetData?.content?.completionPercentage === 100\">\r\n <div class=\"flex flex-align-end progress-wrapper flex-end mt-1\">\r\n <div class=\"progress-btn\">\r\n <button class=\"resume-btn flex flex-middle flex-between view-btn\" [ngClass]=\"{'disable-btn': downloadCertificateLoading || widgetData?.content?.issuedCertificates?.length === 0}\" (click)=\"!downloadCertificateLoading && downloadCertificate(widgetData?.content);$event.stopPropagation()\" \r\n [matTooltipPosition]=\"'below'\"\r\n [matTooltipDisabled]=\"(translateLabels('viewCertificate', 'cardcontentv2')).length < 11\"\r\n matTooltip=\"{{'cardcontentv2.viewCertificate' | translate }}\">\r\n <span class=\"margin-right-xs textwrap\">{{'cardcontentv2.viewCertificate' | translate }}</span>\r\n <img class=\"stats-icon\" *ngIf=\"!downloadCertificateLoading\" height=\"20\" width=\"20\" src=\"/assets/icons/home/eye-white.svg\">\r\n <div class=\"center flex flex-middle\" *ngIf=\"downloadCertificateLoading\">\r\n <mat-spinner strokeWidth=\"2\" stroke=\"'red'\" class=\"white-spinner\" [diameter]=\"16\"></mat-spinner>\r\n </div>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </mat-card>\r\n</ng-container>\r\n\r\n\r\n<ng-template #cbpPlan let-data=\"data\">\r\n <div class=\"cbp-mark left-0 border-top-radius\">\r\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\r\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\r\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-container *ngIf=\"isCardLoading\">\r\n <mat-card class=\"card-portrait\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\r\n <div class=\"margin-bottom-xs\">\r\n <ng-container>\r\n <sb-uic-skeleton-loader [width]=\"'147px'\" [height]=\"'26px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\r\n </ng-container>\r\n </div>\r\n <div class=\"flex\">\r\n <div class=\"margin-right-s\">\r\n <ng-container>\r\n <sb-uic-skeleton-loader [width]=\"'147px'\" [height]=\"'98px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\r\n </ng-container>\r\n </div>\r\n <div class=\"width-1-1\">\r\n <div class=\"portrait-subheading title-text\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded width-1-1'\"></sb-uic-skeleton-loader>\r\n </div>\r\n <div class=\"flex w-full flex-wrap flex-middle\">\r\n <div class=\" margin-right-xs\">\r\n <sb-uic-skeleton-loader [width]=\"'24px'\" [height]=\"'24px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\r\n </div>\r\n <span class=\"\"><sb-uic-skeleton-loader [width]=\"'133px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader></span>\r\n </div>\r\n <div class=\"portrait_widget flex margin-top-xs\">\r\n <div class=\"flex flex-end flex-middle\">\r\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"flex flex-align-end progress-wrapper flex-between\">\r\n <div class=\"progress-block\">\r\n <div class=\"completed-time\">\r\n <sb-uic-skeleton-loader [width]=\"'211px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded margin-top-xs md:w-211'\"></sb-uic-skeleton-loader>\r\n </div>\r\n </div>\r\n <div class=\"progress-btn\">\r\n <sb-uic-skeleton-loader [width]=\"'117px'\" [height]=\"'32px'\" [bindingClass]=\"'flex rounded margin-top-xs'\"></sb-uic-skeleton-loader>\r\n </div>\r\n </div>\r\n </mat-card>\r\n</ng-container>",
|
|
178
|
-
styles: [".card-portrait{border-radius:12px;border:1px solid rgba(0,0,0,.08);opacity:1;width:318px;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}.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}"]
|
|
179
|
-
}] }
|
|
180
|
-
];
|
|
181
|
-
/** @nocollapse */
|
|
182
|
-
CardProgressPortraitLibComponent.ctorParameters = function () { return [
|
|
183
|
-
{ type: MatSnackBar },
|
|
184
|
-
{ type: TranslateService },
|
|
185
|
-
{ type: EventService },
|
|
186
|
-
{ type: MultilingualTranslationsService },
|
|
187
|
-
{ type: ConfigurationsService },
|
|
188
|
-
{ type: WidgetContentService },
|
|
189
|
-
{ type: CertificateService },
|
|
190
|
-
{ type: MatDialog }
|
|
191
|
-
]; };
|
|
192
|
-
CardProgressPortraitLibComponent.propDecorators = {
|
|
193
|
-
widgetData: [{ type: Input }],
|
|
194
|
-
isLiveOrMarkForDeletion: [{ type: Input }],
|
|
195
|
-
showIntranetContent: [{ type: Input }],
|
|
196
|
-
isIntranetAllowedSettings: [{ type: Input }],
|
|
197
|
-
isCardLoading: [{ type: Input }],
|
|
198
|
-
contentData: [{ type: Output }],
|
|
199
|
-
cbPlanMapData: [{ type: Input }]
|
|
200
|
-
};
|
|
201
|
-
return CardProgressPortraitLibComponent;
|
|
202
|
-
}());
|
|
203
|
-
export { CardProgressPortraitLibComponent };
|
|
204
|
-
if (false) {
|
|
205
|
-
/** @type {?} */
|
|
206
|
-
CardProgressPortraitLibComponent.prototype.widgetData;
|
|
207
|
-
/** @type {?} */
|
|
208
|
-
CardProgressPortraitLibComponent.prototype.isLiveOrMarkForDeletion;
|
|
209
|
-
/** @type {?} */
|
|
210
|
-
CardProgressPortraitLibComponent.prototype.showIntranetContent;
|
|
211
|
-
/** @type {?} */
|
|
212
|
-
CardProgressPortraitLibComponent.prototype.isIntranetAllowedSettings;
|
|
213
|
-
/** @type {?} */
|
|
214
|
-
CardProgressPortraitLibComponent.prototype.isCardLoading;
|
|
215
|
-
/** @type {?} */
|
|
216
|
-
CardProgressPortraitLibComponent.prototype.contentData;
|
|
217
|
-
/** @type {?} */
|
|
218
|
-
CardProgressPortraitLibComponent.prototype.cbPlanMapData;
|
|
219
|
-
/** @type {?} */
|
|
220
|
-
CardProgressPortraitLibComponent.prototype.isCardFlipped;
|
|
221
|
-
/** @type {?} */
|
|
222
|
-
CardProgressPortraitLibComponent.prototype.acbpConstants;
|
|
223
|
-
/** @type {?} */
|
|
224
|
-
CardProgressPortraitLibComponent.prototype.defaultThumbnail;
|
|
225
|
-
/** @type {?} */
|
|
226
|
-
CardProgressPortraitLibComponent.prototype.sourceLogos;
|
|
227
|
-
/** @type {?} */
|
|
228
|
-
CardProgressPortraitLibComponent.prototype.defaultSLogo;
|
|
229
|
-
/** @type {?} */
|
|
230
|
-
CardProgressPortraitLibComponent.prototype.showFlip;
|
|
231
|
-
/** @type {?} */
|
|
232
|
-
CardProgressPortraitLibComponent.prototype.widgetType;
|
|
233
|
-
/** @type {?} */
|
|
234
|
-
CardProgressPortraitLibComponent.prototype.widgetSubType;
|
|
235
|
-
/** @type {?} */
|
|
236
|
-
CardProgressPortraitLibComponent.prototype.downloadCertificateLoading;
|
|
237
|
-
/**
|
|
238
|
-
* @type {?}
|
|
239
|
-
* @private
|
|
240
|
-
*/
|
|
241
|
-
CardProgressPortraitLibComponent.prototype.snackBar;
|
|
242
|
-
/**
|
|
243
|
-
* @type {?}
|
|
244
|
-
* @private
|
|
245
|
-
*/
|
|
246
|
-
CardProgressPortraitLibComponent.prototype.translate;
|
|
247
|
-
/**
|
|
248
|
-
* @type {?}
|
|
249
|
-
* @private
|
|
250
|
-
*/
|
|
251
|
-
CardProgressPortraitLibComponent.prototype.events;
|
|
252
|
-
/**
|
|
253
|
-
* @type {?}
|
|
254
|
-
* @private
|
|
255
|
-
*/
|
|
256
|
-
CardProgressPortraitLibComponent.prototype.langtranslations;
|
|
257
|
-
/**
|
|
258
|
-
* @type {?}
|
|
259
|
-
* @private
|
|
260
|
-
*/
|
|
261
|
-
CardProgressPortraitLibComponent.prototype.configSvc;
|
|
262
|
-
/**
|
|
263
|
-
* @type {?}
|
|
264
|
-
* @private
|
|
265
|
-
*/
|
|
266
|
-
CardProgressPortraitLibComponent.prototype.contSvc;
|
|
267
|
-
/**
|
|
268
|
-
* @type {?}
|
|
269
|
-
* @private
|
|
270
|
-
*/
|
|
271
|
-
CardProgressPortraitLibComponent.prototype.certificateService;
|
|
272
|
-
/**
|
|
273
|
-
* @type {?}
|
|
274
|
-
* @private
|
|
275
|
-
*/
|
|
276
|
-
CardProgressPortraitLibComponent.prototype.dialog;
|
|
277
|
-
}
|
|
278
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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yXG59XHJcbiJdfQ==
|
|
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 { MatDialog, MatSnackBar } from '@angular/material';
|
|
8
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
9
|
+
import { MultilingualTranslationsService } from '../../../_services/multilingual-translations.service';
|
|
10
|
+
import { WidgetContentService } from '../../../_services/widget-content.service';
|
|
11
|
+
import { ConfigurationsService, EventService, WsEvents } from '@sunbird-cb/utils-v2';
|
|
12
|
+
import * as _ from "lodash";
|
|
13
|
+
import { CertificateService } from '../../../_services/certificate.service';
|
|
14
|
+
import { CertificateDialogComponent } from '../../dialog-components/certificate-dialog/certificate-dialog.component';
|
|
15
|
+
var CardProgressPortraitLibComponent = /** @class */ (function () {
|
|
16
|
+
function CardProgressPortraitLibComponent(snackBar, translate, events, langtranslations, configSvc, contSvc, certificateService, dialog) {
|
|
17
|
+
var _this = this;
|
|
18
|
+
this.snackBar = snackBar;
|
|
19
|
+
this.translate = translate;
|
|
20
|
+
this.events = events;
|
|
21
|
+
this.langtranslations = langtranslations;
|
|
22
|
+
this.configSvc = configSvc;
|
|
23
|
+
this.contSvc = contSvc;
|
|
24
|
+
this.certificateService = certificateService;
|
|
25
|
+
this.dialog = dialog;
|
|
26
|
+
this.isCardLoading = false;
|
|
27
|
+
this.contentData = new EventEmitter();
|
|
28
|
+
this.isCardFlipped = false;
|
|
29
|
+
this.acbpConstants = NsCardContent.ACBPConst;
|
|
30
|
+
this.showFlip = false;
|
|
31
|
+
this.widgetType = 'df';
|
|
32
|
+
this.widgetSubType = 'sdf';
|
|
33
|
+
this.downloadCertificateLoading = false;
|
|
34
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
35
|
+
* @return {?}
|
|
36
|
+
*/
|
|
37
|
+
function () {
|
|
38
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
39
|
+
_this.translate.setDefaultLang('en');
|
|
40
|
+
/** @type {?} */
|
|
41
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
42
|
+
_this.translate.use(lang);
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @return {?}
|
|
48
|
+
*/
|
|
49
|
+
CardProgressPortraitLibComponent.prototype.ngOnInit = /**
|
|
50
|
+
* @return {?}
|
|
51
|
+
*/
|
|
52
|
+
function () {
|
|
53
|
+
/** @type {?} */
|
|
54
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
55
|
+
if (instanceConfig) {
|
|
56
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
57
|
+
this.sourceLogos = instanceConfig.sources;
|
|
58
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
62
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @return {?}
|
|
67
|
+
*/
|
|
68
|
+
CardProgressPortraitLibComponent.prototype.showSnackbar = /**
|
|
69
|
+
* @return {?}
|
|
70
|
+
*/
|
|
71
|
+
function () {
|
|
72
|
+
if (this.showIntranetContent) {
|
|
73
|
+
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
74
|
+
}
|
|
75
|
+
else if (!this.isLiveOrMarkForDeletion) {
|
|
76
|
+
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* @param {?} contentData
|
|
81
|
+
* @return {?}
|
|
82
|
+
*/
|
|
83
|
+
CardProgressPortraitLibComponent.prototype.getRedirectUrlData = /**
|
|
84
|
+
* @param {?} contentData
|
|
85
|
+
* @return {?}
|
|
86
|
+
*/
|
|
87
|
+
function (contentData) {
|
|
88
|
+
// for telemetry
|
|
89
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
90
|
+
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
91
|
+
}
|
|
92
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
93
|
+
// for redirection
|
|
94
|
+
this.contentData.emit(contentData);
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* @param {?} label
|
|
98
|
+
* @param {?} type
|
|
99
|
+
* @param {?=} subtype
|
|
100
|
+
* @return {?}
|
|
101
|
+
*/
|
|
102
|
+
CardProgressPortraitLibComponent.prototype.translateLabels = /**
|
|
103
|
+
* @param {?} label
|
|
104
|
+
* @param {?} type
|
|
105
|
+
* @param {?=} subtype
|
|
106
|
+
* @return {?}
|
|
107
|
+
*/
|
|
108
|
+
function (label, type, subtype) {
|
|
109
|
+
return this.langtranslations.translateLabelWithoutspace(label, type, subtype);
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* @return {?}
|
|
113
|
+
*/
|
|
114
|
+
CardProgressPortraitLibComponent.prototype.raiseTelemetry = /**
|
|
115
|
+
* @return {?}
|
|
116
|
+
*/
|
|
117
|
+
function () {
|
|
118
|
+
this.events.raiseInteractTelemetry({
|
|
119
|
+
type: 'click',
|
|
120
|
+
subType: this.widgetType + "-" + this.widgetSubType,
|
|
121
|
+
id: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
122
|
+
}, {
|
|
123
|
+
id: this.widgetData.content.identifier,
|
|
124
|
+
type: this.widgetData.content.primaryCategory,
|
|
125
|
+
//context: this.widgetData.context,
|
|
126
|
+
rollup: {},
|
|
127
|
+
ver: "" + this.widgetData.content.version + '',
|
|
128
|
+
}, {
|
|
129
|
+
pageIdExt: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
130
|
+
module: _.camelCase(this.widgetData.content.primaryCategory),
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* @param {?} certificateData
|
|
135
|
+
* @return {?}
|
|
136
|
+
*/
|
|
137
|
+
CardProgressPortraitLibComponent.prototype.downloadCertificate = /**
|
|
138
|
+
* @param {?} certificateData
|
|
139
|
+
* @return {?}
|
|
140
|
+
*/
|
|
141
|
+
function (certificateData) {
|
|
142
|
+
var _this = this;
|
|
143
|
+
this.events.raiseInteractTelemetry({
|
|
144
|
+
type: WsEvents.EnumInteractTypes.CLICK,
|
|
145
|
+
id: 'view-certificate',
|
|
146
|
+
subType: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
147
|
+
}, {
|
|
148
|
+
id: certificateData.issuedCertificates[0].identifier,
|
|
149
|
+
// id of the certificate
|
|
150
|
+
type: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
151
|
+
});
|
|
152
|
+
if (certificateData.issuedCertificates.length > 0) {
|
|
153
|
+
this.downloadCertificateLoading = true;
|
|
154
|
+
/** @type {?} */
|
|
155
|
+
var certData_1 = certificateData.issuedCertificates[0];
|
|
156
|
+
this.certificateService.downloadCertificate_v2(certData_1.identifier).subscribe((/**
|
|
157
|
+
* @param {?} res
|
|
158
|
+
* @return {?}
|
|
159
|
+
*/
|
|
160
|
+
function (res) {
|
|
161
|
+
_this.downloadCertificateLoading = false;
|
|
162
|
+
/** @type {?} */
|
|
163
|
+
var cet = res.result.printUri;
|
|
164
|
+
_this.dialog.open(CertificateDialogComponent, {
|
|
165
|
+
width: '1300px',
|
|
166
|
+
data: { cet: cet, certId: certData_1.identifier },
|
|
167
|
+
});
|
|
168
|
+
}));
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
this.downloadCertificateLoading = false;
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
CardProgressPortraitLibComponent.decorators = [
|
|
175
|
+
{ type: Component, args: [{
|
|
176
|
+
selector: 'sb-uic-card-progress-portrait-lib',
|
|
177
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-portrait card-progress-portrait-lib cursor-pointer\" [ngClass]=\"widgetData?.cardCustomeClass ? widgetData?.cardCustomeClass : ''\" (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" >\n <div class=\"course_widget portrait_widget flex margin-bottom-xs\" [ngClass]=\"{'retiredCards': widgetData?.content?.status === 'Retired' && widgetData?.content?.completionPercentage === 100}\">\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\" [ngClass]=\"{'retiredCards': widgetData?.content?.status === 'Retired' && widgetData?.content?.completionPercentage === 100}\">\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] && cbPlanMapData[widgetData?.content?.identifier]?.contentStatus < 2\">\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>\n </div>\n <ng-container *ngIf=\"widgetData?.content?.completionPercentage < 100\">\n <div class=\"flex flex-align-end progress-wrapper flex-between\" >\n <div class=\"progress-block\" >\n <div class=\"completed-time\">\n <mat-icon class=\"mat-icon schedule margin-right-xs\">schedule</mat-icon>\n <span>{{widgetData?.content?.completionPercentage}}%</span>\n </div>\n <div>\n <ng-container *ngIf=\"widgetData?.content?.completionStatus < 2\">\n <sb-uic-content-progress class=\"progress-bar-new\" [customClassName]=\"'course-progress-bar'\" *ngIf=\"widgetData?.content?.identifier\"\n [contentId]=\"widgetData?.content?.identifier\" [progress]=\"widgetData?.content?.completionPercentage\"\n [progressType]=\"'percentage'\">\n </sb-uic-content-progress>\n </ng-container>\n </div>\n </div>\n <div class=\"progress-btn\">\n <button class=\"resume-btn flex flex-middle flex-between\" [routerLink]=\"['/app/toc/',widgetData?.content?.identifier,'overview']\"\n [queryParams]=\"{primaryCategory: widgetData?.content?.primaryCategory}\" [state]=\"widgetData?.stateData\" \n [matTooltipPosition]=\"'below'\"\n [matTooltipDisabled]=\"(!widgetData?.content?.completionPercentage ? translateLabels('start', 'cardcontentv2') : translateLabels('resume', 'cardcontentv2')).length < 11\"\n matTooltip=\"{{!widgetData?.content?.completionPercentage ? translateLabels('start', 'cardcontentv2') : translateLabels('resume', 'cardcontentv2')}}\">\n <span class=\"textwrap margin-right-xs\">\n {{!widgetData?.content?.completionPercentage ? translateLabels('start', 'cardcontentv2') : translateLabels('resume', 'cardcontentv2')}}</span>\n <img class=\"stats-icon\" height=\"20\" width=\"20\" src=\"/assets/icons/home/play.svg\">\n </button>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.completionPercentage === 100\">\n <div class=\"flex flex-align-end progress-wrapper flex-end mt-1\">\n <div class=\"progress-btn\">\n <button class=\"resume-btn flex flex-middle flex-between view-btn\" [ngClass]=\"{'disable-btn': downloadCertificateLoading || widgetData?.content?.issuedCertificates?.length === 0}\" (click)=\"!downloadCertificateLoading && downloadCertificate(widgetData?.content);$event.stopPropagation()\" \n [matTooltipPosition]=\"'below'\"\n [matTooltipDisabled]=\"(translateLabels('viewCertificate', 'cardcontentv2')).length < 11\"\n matTooltip=\"{{'cardcontentv2.viewCertificate' | translate }}\">\n <span class=\"margin-right-xs textwrap\">{{'cardcontentv2.viewCertificate' | translate }}</span>\n <img class=\"stats-icon\" *ngIf=\"!downloadCertificateLoading\" height=\"20\" width=\"20\" src=\"/assets/icons/home/eye-white.svg\">\n <div class=\"center flex flex-middle\" *ngIf=\"downloadCertificateLoading\">\n <mat-spinner strokeWidth=\"2\" stroke=\"'red'\" class=\"white-spinner\" [diameter]=\"16\"></mat-spinner>\n </div>\n </button>\n </div>\n </div>\n </ng-container>\n </mat-card>\n</ng-container>\n\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\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\n <div class=\"margin-bottom-xs\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'147px'\" [height]=\"'26px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'147px'\" [height]=\"'98px'\" [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 <div class=\" margin-right-xs\">\n <sb-uic-skeleton-loader [width]=\"'24px'\" [height]=\"'24px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <span class=\"\"><sb-uic-skeleton-loader [width]=\"'133px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader></span>\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 <div class=\"flex flex-align-end progress-wrapper flex-between\">\n <div class=\"progress-block\">\n <div class=\"completed-time\">\n <sb-uic-skeleton-loader [width]=\"'211px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded margin-top-xs md:w-211'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"progress-btn\">\n <sb-uic-skeleton-loader [width]=\"'117px'\" [height]=\"'32px'\" [bindingClass]=\"'flex rounded margin-top-xs'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </mat-card>\n</ng-container>",
|
|
178
|
+
styles: [".card-portrait{border-radius:12px;border:1px solid rgba(0,0,0,.08);opacity:1;width:318px;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}.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}"]
|
|
179
|
+
}] }
|
|
180
|
+
];
|
|
181
|
+
/** @nocollapse */
|
|
182
|
+
CardProgressPortraitLibComponent.ctorParameters = function () { return [
|
|
183
|
+
{ type: MatSnackBar },
|
|
184
|
+
{ type: TranslateService },
|
|
185
|
+
{ type: EventService },
|
|
186
|
+
{ type: MultilingualTranslationsService },
|
|
187
|
+
{ type: ConfigurationsService },
|
|
188
|
+
{ type: WidgetContentService },
|
|
189
|
+
{ type: CertificateService },
|
|
190
|
+
{ type: MatDialog }
|
|
191
|
+
]; };
|
|
192
|
+
CardProgressPortraitLibComponent.propDecorators = {
|
|
193
|
+
widgetData: [{ type: Input }],
|
|
194
|
+
isLiveOrMarkForDeletion: [{ type: Input }],
|
|
195
|
+
showIntranetContent: [{ type: Input }],
|
|
196
|
+
isIntranetAllowedSettings: [{ type: Input }],
|
|
197
|
+
isCardLoading: [{ type: Input }],
|
|
198
|
+
contentData: [{ type: Output }],
|
|
199
|
+
cbPlanMapData: [{ type: Input }]
|
|
200
|
+
};
|
|
201
|
+
return CardProgressPortraitLibComponent;
|
|
202
|
+
}());
|
|
203
|
+
export { CardProgressPortraitLibComponent };
|
|
204
|
+
if (false) {
|
|
205
|
+
/** @type {?} */
|
|
206
|
+
CardProgressPortraitLibComponent.prototype.widgetData;
|
|
207
|
+
/** @type {?} */
|
|
208
|
+
CardProgressPortraitLibComponent.prototype.isLiveOrMarkForDeletion;
|
|
209
|
+
/** @type {?} */
|
|
210
|
+
CardProgressPortraitLibComponent.prototype.showIntranetContent;
|
|
211
|
+
/** @type {?} */
|
|
212
|
+
CardProgressPortraitLibComponent.prototype.isIntranetAllowedSettings;
|
|
213
|
+
/** @type {?} */
|
|
214
|
+
CardProgressPortraitLibComponent.prototype.isCardLoading;
|
|
215
|
+
/** @type {?} */
|
|
216
|
+
CardProgressPortraitLibComponent.prototype.contentData;
|
|
217
|
+
/** @type {?} */
|
|
218
|
+
CardProgressPortraitLibComponent.prototype.cbPlanMapData;
|
|
219
|
+
/** @type {?} */
|
|
220
|
+
CardProgressPortraitLibComponent.prototype.isCardFlipped;
|
|
221
|
+
/** @type {?} */
|
|
222
|
+
CardProgressPortraitLibComponent.prototype.acbpConstants;
|
|
223
|
+
/** @type {?} */
|
|
224
|
+
CardProgressPortraitLibComponent.prototype.defaultThumbnail;
|
|
225
|
+
/** @type {?} */
|
|
226
|
+
CardProgressPortraitLibComponent.prototype.sourceLogos;
|
|
227
|
+
/** @type {?} */
|
|
228
|
+
CardProgressPortraitLibComponent.prototype.defaultSLogo;
|
|
229
|
+
/** @type {?} */
|
|
230
|
+
CardProgressPortraitLibComponent.prototype.showFlip;
|
|
231
|
+
/** @type {?} */
|
|
232
|
+
CardProgressPortraitLibComponent.prototype.widgetType;
|
|
233
|
+
/** @type {?} */
|
|
234
|
+
CardProgressPortraitLibComponent.prototype.widgetSubType;
|
|
235
|
+
/** @type {?} */
|
|
236
|
+
CardProgressPortraitLibComponent.prototype.downloadCertificateLoading;
|
|
237
|
+
/**
|
|
238
|
+
* @type {?}
|
|
239
|
+
* @private
|
|
240
|
+
*/
|
|
241
|
+
CardProgressPortraitLibComponent.prototype.snackBar;
|
|
242
|
+
/**
|
|
243
|
+
* @type {?}
|
|
244
|
+
* @private
|
|
245
|
+
*/
|
|
246
|
+
CardProgressPortraitLibComponent.prototype.translate;
|
|
247
|
+
/**
|
|
248
|
+
* @type {?}
|
|
249
|
+
* @private
|
|
250
|
+
*/
|
|
251
|
+
CardProgressPortraitLibComponent.prototype.events;
|
|
252
|
+
/**
|
|
253
|
+
* @type {?}
|
|
254
|
+
* @private
|
|
255
|
+
*/
|
|
256
|
+
CardProgressPortraitLibComponent.prototype.langtranslations;
|
|
257
|
+
/**
|
|
258
|
+
* @type {?}
|
|
259
|
+
* @private
|
|
260
|
+
*/
|
|
261
|
+
CardProgressPortraitLibComponent.prototype.configSvc;
|
|
262
|
+
/**
|
|
263
|
+
* @type {?}
|
|
264
|
+
* @private
|
|
265
|
+
*/
|
|
266
|
+
CardProgressPortraitLibComponent.prototype.contSvc;
|
|
267
|
+
/**
|
|
268
|
+
* @type {?}
|
|
269
|
+
* @private
|
|
270
|
+
*/
|
|
271
|
+
CardProgressPortraitLibComponent.prototype.certificateService;
|
|
272
|
+
/**
|
|
273
|
+
* @type {?}
|
|
274
|
+
* @private
|
|
275
|
+
*/
|
|
276
|
+
CardProgressPortraitLibComponent.prototype.dialog;
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC1wcm9ncmVzcy1wb3J0cmFpdC1saWIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtY2IvY29uc3VtcHRpb24vIiwic291cmNlcyI6WyJsaWIvX2NvbW1vbi9jYXJkcy9jYXJkLXByb2dyZXNzLXBvcnRyYWl0LWxpYi9jYXJkLXByb2dyZXNzLXBvcnRyYWl0LWxpYi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssR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