@sunbird-cb/consumption 0.0.57 → 0.0.59
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 +17304 -17299
- 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 -167
- 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 +101 -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 -21
- 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 -173
- 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 +105 -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 -25
- 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 -15247
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +17310 -17305
- 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
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { Component, Input } from '@angular/core';
|
|
6
|
-
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
7
|
-
export class DataPointsComponent {
|
|
8
|
-
/**
|
|
9
|
-
* @param {?} insightSvc
|
|
10
|
-
*/
|
|
11
|
-
constructor(insightSvc) {
|
|
12
|
-
this.insightSvc = insightSvc;
|
|
13
|
-
this.layoutType = '';
|
|
14
|
-
this.fetchDataFromApi = false;
|
|
15
|
-
this.providerId = '';
|
|
16
|
-
this.pageLayout = '';
|
|
17
|
-
this.customArray = [];
|
|
18
|
-
this.isDataLoading = false;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @return {?}
|
|
22
|
-
*/
|
|
23
|
-
ngOnInit() {
|
|
24
|
-
if (this.objectData && this.layoutType === 'gridLayout') {
|
|
25
|
-
this.customArray = this.createCustomArray(this.objectData.metrics);
|
|
26
|
-
}
|
|
27
|
-
if (this.fetchDataFromApi) {
|
|
28
|
-
this.isDataLoading = true;
|
|
29
|
-
this.getInsiteData();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @param {?} arr
|
|
34
|
-
* @return {?}
|
|
35
|
-
*/
|
|
36
|
-
createCustomArray(arr) {
|
|
37
|
-
/** @type {?} */
|
|
38
|
-
const nByn = [];
|
|
39
|
-
for (let i = 0; i < arr.length; i += this.objectData.dataColSpan) {
|
|
40
|
-
nByn.push(arr.slice(i, i + this.objectData.dataColSpan));
|
|
41
|
-
}
|
|
42
|
-
return nByn;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @return {?}
|
|
46
|
-
*/
|
|
47
|
-
getInsiteData() {
|
|
48
|
-
/** @type {?} */
|
|
49
|
-
let request = {};
|
|
50
|
-
request = {
|
|
51
|
-
"request": {
|
|
52
|
-
"filters": {
|
|
53
|
-
"organisations": [
|
|
54
|
-
this.providerId
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
if (this.pageLayout && this.pageLayout === 'mdo') {
|
|
60
|
-
request = {
|
|
61
|
-
"request": {
|
|
62
|
-
"filters": {
|
|
63
|
-
"requestType": "MDO_INSIGHT",
|
|
64
|
-
"organisations": [
|
|
65
|
-
this.providerId
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
this.insightSvc.fetchSearchData(request).subscribe((/**
|
|
72
|
-
* @param {?} res
|
|
73
|
-
* @return {?}
|
|
74
|
-
*/
|
|
75
|
-
(res) => {
|
|
76
|
-
if (res && res.result && res.result.response && res.result.response.nudges && res.result.response.nudges.length) {
|
|
77
|
-
res.result.response.nudges.forEach((/**
|
|
78
|
-
* @param {?} nudgeData
|
|
79
|
-
* @return {?}
|
|
80
|
-
*/
|
|
81
|
-
(nudgeData) => {
|
|
82
|
-
if (this.providerId && this.providerId === nudgeData.orgId) {
|
|
83
|
-
this.objectData = nudgeData.data;
|
|
84
|
-
}
|
|
85
|
-
}));
|
|
86
|
-
}
|
|
87
|
-
this.isDataLoading = false;
|
|
88
|
-
}));
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @param {?} value
|
|
92
|
-
* @return {?}
|
|
93
|
-
*/
|
|
94
|
-
converToIndianSystem(value) {
|
|
95
|
-
/** @type {?} */
|
|
96
|
-
let numStr = value.toString();
|
|
97
|
-
let [integerPart, decimalPart] = numStr.split('.');
|
|
98
|
-
/** @type {?} */
|
|
99
|
-
let lastThree = integerPart.slice(-3);
|
|
100
|
-
/** @type {?} */
|
|
101
|
-
let otherNumbers = integerPart.slice(0, -3);
|
|
102
|
-
if (otherNumbers !== '') {
|
|
103
|
-
lastThree = ',' + lastThree;
|
|
104
|
-
}
|
|
105
|
-
/** @type {?} */
|
|
106
|
-
let formattedIntegerPart = otherNumbers.replace(/\B(?=(\d{2})+(?!\d))/g, ',') + lastThree;
|
|
107
|
-
/** @type {?} */
|
|
108
|
-
const result = decimalPart ? `${formattedIntegerPart}.${decimalPart.substr(0, 2)}` : formattedIntegerPart;
|
|
109
|
-
return result;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
DataPointsComponent.decorators = [
|
|
113
|
-
{ type: Component, args: [{
|
|
114
|
-
selector: 'sb-uic-data-points',
|
|
115
|
-
template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData; let last = last\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak && !last}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full customdiv\" *ngIf=\"layoutType === 'multipleRows-V2' && !isDataLoading\">\n <div class=\"logodiv margin-bottom-s\">\n <img alt=\"Application Logo\" class=\"logoimg\" src=\"/assets/instances/eagle/app_logos/KarmayogiBharat_Logo_Horizontal.svg\">\n </div>\n <div *ngFor=\"let obj of objectData; let i = index\">\n <div class=\"flex flex-row gap-3 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\"\n [style.background]=\"obj?.iconBackgroupColorV2\"\n [style.borderColor]=\"obj?.valueColor\">\n <img class=\"v2-objIcon\" [src]=\"obj.icon\" />\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColorV2\">\n {{obj?.label}}\n </div>\n <div class=\"flex flex-row dot-container\" *ngIf=\"i+1 !== objectData.length\">\n <div class=\"v2-dot\"\n [style.background]=\"obj?.valueColorV2\"\n [style.borderColor]=\"obj?.labelColorV2\"></div>\n <div class=\"v2-border\" [style.background]=\"obj?.labelColorV2\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div class=\"mob-image-container-v2\">\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon-v2\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColorV2\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"!(item && item.value)\">0</div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"(item && item.value)\">\n {{item?.value | number: item.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleFlexeRow' && !isDataLoading\">\n <div class=\"flex space-around\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div singleFlexeRow flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows-V2' && isDataLoading\">\n <div *ngFor=\"let obj of [1,2,3,4]l let i = index\">\n <div class=\"flex flex-row gap-4 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'55px'\"\n [height]=\"'55px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'16px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div> \n </div>\n </div>\n</ng-container>\n\n<ng-container>\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'singleFlexeRow' && isDataLoading\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n",
|
|
116
|
-
styles: ["@font-face{font-family:Poppins;src:url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff2) format('woff2'),url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff) format('woff')}.mob-image-container-v2{height:28px;width:28px;background:#fff;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #fff}.mobjIcon-v2{width:18px;height:18px}.v2-icon-contaier{height:45px;width:45px;border:1px solid #fff;border-radius:50%;align-items:center;display:flex;justify-content:center}.v2-value{font-family:Poppins;font-size:20px;font-weight:600;line-height:20px;text-align:left;padding-bottom:5px;padding-left:10px}.v2-label{font-family:Poppins;font-size:12px;font-weight:400;line-height:18px;text-align:left;padding-bottom:5px;padding-left:10px}.dot-container{align-items:center}.v2-dot{width:9px;height:9px;border:2px solid #fff;border-radius:50%}.v2-border{height:1px;width:182px}.white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.singleFlexeRow-flex-item{flex:0 0 auto;white-space:nowrap}.singleFlexeRow-div{padding:16px;border-radius:15px}.singleFlexeRowHeader{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.singleFlexeRowDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.singleFlexeRowIcon{width:24px;height:24px}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left;width:230px;text-overflow:ellipsis;overflow:hidden}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}::-webkit-scrollbar{height:4px}::-webkit-scrollbar-track{border-radius:10px;background:#000}::-webkit-scrollbar-thumb{background:#cccc;border-radius:10px}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}.space-around{justify-content:space-evenly}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}@media screen and (min-width:1280px){.customdiv{margin-left:24%}}@media screen and (min-width:1690px){.customdiv{margin-left:34%}}@media screen and (min-width:1904px){.customdiv{margin-left:44%}}.logodiv{background:#fff;width:150px;border-radius:45px;text-align:center;padding:8px 0 2px}.logoimg{width:114px}"]
|
|
117
|
-
}] }
|
|
118
|
-
];
|
|
119
|
-
/** @nocollapse */
|
|
120
|
-
DataPointsComponent.ctorParameters = () => [
|
|
121
|
-
{ type: InsiteDataService }
|
|
122
|
-
];
|
|
123
|
-
DataPointsComponent.propDecorators = {
|
|
124
|
-
objectData: [{ type: Input }],
|
|
125
|
-
layoutType: [{ type: Input }],
|
|
126
|
-
fetchDataFromApi: [{ type: Input }],
|
|
127
|
-
providerId: [{ type: Input }],
|
|
128
|
-
pageLayout: [{ type: Input }]
|
|
129
|
-
};
|
|
130
|
-
if (false) {
|
|
131
|
-
/** @type {?} */
|
|
132
|
-
DataPointsComponent.prototype.objectData;
|
|
133
|
-
/** @type {?} */
|
|
134
|
-
DataPointsComponent.prototype.layoutType;
|
|
135
|
-
/** @type {?} */
|
|
136
|
-
DataPointsComponent.prototype.fetchDataFromApi;
|
|
137
|
-
/** @type {?} */
|
|
138
|
-
DataPointsComponent.prototype.providerId;
|
|
139
|
-
/** @type {?} */
|
|
140
|
-
DataPointsComponent.prototype.pageLayout;
|
|
141
|
-
/** @type {?} */
|
|
142
|
-
DataPointsComponent.prototype.customArray;
|
|
143
|
-
/** @type {?} */
|
|
144
|
-
DataPointsComponent.prototype.isDataLoading;
|
|
145
|
-
/** @type {?} */
|
|
146
|
-
DataPointsComponent.prototype.insightSvc;
|
|
147
|
-
}
|
|
148
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { Component, Input } from '@angular/core';
|
|
6
|
+
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
7
|
+
export class DataPointsComponent {
|
|
8
|
+
/**
|
|
9
|
+
* @param {?} insightSvc
|
|
10
|
+
*/
|
|
11
|
+
constructor(insightSvc) {
|
|
12
|
+
this.insightSvc = insightSvc;
|
|
13
|
+
this.layoutType = '';
|
|
14
|
+
this.fetchDataFromApi = false;
|
|
15
|
+
this.providerId = '';
|
|
16
|
+
this.pageLayout = '';
|
|
17
|
+
this.customArray = [];
|
|
18
|
+
this.isDataLoading = false;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @return {?}
|
|
22
|
+
*/
|
|
23
|
+
ngOnInit() {
|
|
24
|
+
if (this.objectData && this.layoutType === 'gridLayout') {
|
|
25
|
+
this.customArray = this.createCustomArray(this.objectData.metrics);
|
|
26
|
+
}
|
|
27
|
+
if (this.fetchDataFromApi) {
|
|
28
|
+
this.isDataLoading = true;
|
|
29
|
+
this.getInsiteData();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @param {?} arr
|
|
34
|
+
* @return {?}
|
|
35
|
+
*/
|
|
36
|
+
createCustomArray(arr) {
|
|
37
|
+
/** @type {?} */
|
|
38
|
+
const nByn = [];
|
|
39
|
+
for (let i = 0; i < arr.length; i += this.objectData.dataColSpan) {
|
|
40
|
+
nByn.push(arr.slice(i, i + this.objectData.dataColSpan));
|
|
41
|
+
}
|
|
42
|
+
return nByn;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @return {?}
|
|
46
|
+
*/
|
|
47
|
+
getInsiteData() {
|
|
48
|
+
/** @type {?} */
|
|
49
|
+
let request = {};
|
|
50
|
+
request = {
|
|
51
|
+
"request": {
|
|
52
|
+
"filters": {
|
|
53
|
+
"organisations": [
|
|
54
|
+
this.providerId
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
if (this.pageLayout && this.pageLayout === 'mdo') {
|
|
60
|
+
request = {
|
|
61
|
+
"request": {
|
|
62
|
+
"filters": {
|
|
63
|
+
"requestType": "MDO_INSIGHT",
|
|
64
|
+
"organisations": [
|
|
65
|
+
this.providerId
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
this.insightSvc.fetchSearchData(request).subscribe((/**
|
|
72
|
+
* @param {?} res
|
|
73
|
+
* @return {?}
|
|
74
|
+
*/
|
|
75
|
+
(res) => {
|
|
76
|
+
if (res && res.result && res.result.response && res.result.response.nudges && res.result.response.nudges.length) {
|
|
77
|
+
res.result.response.nudges.forEach((/**
|
|
78
|
+
* @param {?} nudgeData
|
|
79
|
+
* @return {?}
|
|
80
|
+
*/
|
|
81
|
+
(nudgeData) => {
|
|
82
|
+
if (this.providerId && this.providerId === nudgeData.orgId) {
|
|
83
|
+
this.objectData = nudgeData.data;
|
|
84
|
+
}
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
this.isDataLoading = false;
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @param {?} value
|
|
92
|
+
* @return {?}
|
|
93
|
+
*/
|
|
94
|
+
converToIndianSystem(value) {
|
|
95
|
+
/** @type {?} */
|
|
96
|
+
let numStr = value.toString();
|
|
97
|
+
let [integerPart, decimalPart] = numStr.split('.');
|
|
98
|
+
/** @type {?} */
|
|
99
|
+
let lastThree = integerPart.slice(-3);
|
|
100
|
+
/** @type {?} */
|
|
101
|
+
let otherNumbers = integerPart.slice(0, -3);
|
|
102
|
+
if (otherNumbers !== '') {
|
|
103
|
+
lastThree = ',' + lastThree;
|
|
104
|
+
}
|
|
105
|
+
/** @type {?} */
|
|
106
|
+
let formattedIntegerPart = otherNumbers.replace(/\B(?=(\d{2})+(?!\d))/g, ',') + lastThree;
|
|
107
|
+
/** @type {?} */
|
|
108
|
+
const result = decimalPart ? `${formattedIntegerPart}.${decimalPart.substr(0, 2)}` : formattedIntegerPart;
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
DataPointsComponent.decorators = [
|
|
113
|
+
{ type: Component, args: [{
|
|
114
|
+
selector: 'sb-uic-data-points',
|
|
115
|
+
template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\r\n <div *ngFor=\"let obj of objectData; let last = last\" class=\"\">\r\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak && !last}\">\r\n <div class=\"flex flex-row gap-3 items-top\">\r\n <div>\r\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\r\n </div>\r\n <div>\r\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\r\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"(obj && obj.value)\">\r\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\r\n </div>\r\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"w-full customdiv\" *ngIf=\"layoutType === 'multipleRows-V2' && !isDataLoading\">\r\n <div class=\"logodiv margin-bottom-s\">\r\n <img alt=\"Application Logo\" class=\"logoimg\" src=\"/assets/instances/eagle/app_logos/KarmayogiBharat_Logo_Horizontal.svg\">\r\n </div>\r\n <div *ngFor=\"let obj of objectData; let i = index\">\r\n <div class=\"flex flex-row gap-3 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\r\n <div class=\"v2-icons-div\">\r\n <div class=\"v2-icon-contaier\"\r\n [style.background]=\"obj?.iconBackgroupColorV2\"\r\n [style.borderColor]=\"obj?.valueColor\">\r\n <img class=\"v2-objIcon\" [src]=\"obj.icon\" />\r\n </div>\r\n </div>\r\n <div class=\"v2-content-div\">\r\n <div class=\"flex flex-col\">\r\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\" *ngIf=\"!(obj && obj.value)\">0</div>\r\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\">\r\n {{converToIndianSystem(obj?.value)}}\r\n </div>\r\n <div class=\"v2-label\" [style.color]=\"obj?.labelColorV2\">\r\n {{obj?.label}}\r\n </div>\r\n <div class=\"flex flex-row dot-container\" *ngIf=\"i+1 !== objectData.length\">\r\n <div class=\"v2-dot\"\r\n [style.background]=\"obj?.valueColorV2\"\r\n [style.borderColor]=\"obj?.labelColorV2\"></div>\r\n <div class=\"v2-border\" [style.background]=\"obj?.labelColorV2\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && !isDataLoading\">\r\n <div class=\"flex gap-4\">\r\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\r\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\r\n <div class=\"flex flex-row gap-3\">\r\n <div class=\"mob-image-container-v2\" [style.borderColor]=\"obj?.valueColorV2\">\r\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon-v2\" [src]=\"obj.icon\">\r\n </div>\r\n <div>\r\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\r\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\r\n {{converToIndianSystem(obj?.value)}}\r\n </div>\r\n <div [style.color]=\"obj?.labelColorV2\" class=\"mobjDescription\">{{obj?.label}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && !isDataLoading\">\r\n <div class=\"flex gap-4\">\r\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\r\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\r\n <div class=\"flex flex-row gap-3\">\r\n <div>\r\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\r\n </div>\r\n <div>\r\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\r\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\r\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\r\n </div>\r\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div> \r\n</div>\r\n\r\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\r\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\r\n <div class=\"top-container\">\r\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\r\n <div *ngFor=\"let item of chunk\">\r\n <div class=\"flex-item\">\r\n <div class=\"flex flex-row gap-5 infra-element-div\">\r\n <div>\r\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"!(item && item.value)\">0</div>\r\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"(item && item.value)\">\r\n {{item?.value | number: item.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\r\n </div>\r\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div> \r\n</div>\r\n\r\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleFlexeRow' && !isDataLoading\">\r\n <div class=\"flex space-around\">\r\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\r\n <div class=\"singleFlexeRow-div singleFlexeRow flex-item\">\r\n <div class=\"flex flex-row gap-3\">\r\n <div>\r\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\r\n </div>\r\n <div class=\"flex flex-col\">\r\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\r\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\r\n {{converToIndianSystem(obj?.value)}}\r\n </div>\r\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<!-- skeleton loaders -->\r\n\r\n<ng-container>\r\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows-V2' && isDataLoading\">\r\n <div *ngFor=\"let obj of [1,2,3,4]l let i = index\">\r\n <div class=\"flex flex-row gap-4 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\r\n <div class=\"v2-icons-div\">\r\n <div class=\"v2-icon-contaier\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'55px'\"\r\n [height]=\"'55px'\"></sb-uic-skeleton-loader>\r\n </div>\r\n </div>\r\n <div class=\"v2-content-div\">\r\n <div class=\"flex flex-col\">\r\n <div class=\"v2-value\" [style.color]=\"obj?.valueColor\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\r\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\r\n </div>\r\n <div class=\"v2-label\" [style.color]=\"obj?.labelColor\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\r\n [height]=\"'16px'\"></sb-uic-skeleton-loader>\r\n </div>\r\n </div>\r\n </div>\r\n </div> \r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container>\r\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\r\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\r\n <div class=\"element-div linebreak\" >\r\n <div class=\"flex flex-row gap-3 items-top\">\r\n <div>\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\r\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\r\n </div>\r\n <div>\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\r\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\r\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'singleFlexeRow' && isDataLoading\">\r\n <div class=\"flex\">\r\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\r\n <div class=\"singleFlexeRow-div flex-item\">\r\n <div class=\"flex flex-row gap-3\">\r\n <div>\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n <div class=\"flex flex-col\">\r\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'20px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && isDataLoading\">\r\n <div class=\"flex gap-4\">\r\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\r\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\r\n <div class=\"flex flex-row gap-3\">\r\n <div>\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'20px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n <div>\r\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && isDataLoading\">\r\n <div class=\"flex gap-4\">\r\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\r\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\r\n <div class=\"flex flex-row gap-3\">\r\n <div>\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n <div>\r\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\r\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\r\n </sb-uic-skeleton-loader>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-container>\r\n",
|
|
116
|
+
styles: ["@font-face{font-family:Poppins;src:url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff2) format('woff2'),url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff) format('woff')}.mob-image-container-v2{height:28px;width:28px;background:#fff;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #fff}.mobjIcon-v2{width:18px;height:18px}.v2-icon-contaier{height:45px;width:45px;border:1px solid #fff;border-radius:50%;align-items:center;display:flex;justify-content:center}.v2-value{font-family:Poppins;font-size:20px;font-weight:600;line-height:20px;text-align:left;padding-bottom:5px;padding-left:10px}.v2-label{font-family:Poppins;font-size:12px;font-weight:400;line-height:18px;text-align:left;padding-bottom:5px;padding-left:10px}.dot-container{align-items:center}.v2-dot{width:9px;height:9px;border:2px solid #fff;border-radius:50%}.v2-border{height:1px;width:182px}.white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.singleFlexeRow-flex-item{flex:0 0 auto;white-space:nowrap}.singleFlexeRow-div{padding:16px;border-radius:15px}.singleFlexeRowHeader{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.singleFlexeRowDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.singleFlexeRowIcon{width:24px;height:24px}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left;width:230px;text-overflow:ellipsis;overflow:hidden}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}::-webkit-scrollbar{height:4px}::-webkit-scrollbar-track{border-radius:10px;background:#000}::-webkit-scrollbar-thumb{background:#cccc;border-radius:10px}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}.space-around{justify-content:space-evenly}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}@media screen and (min-width:1280px){.customdiv{margin-left:24%}}@media screen and (min-width:1690px){.customdiv{margin-left:34%}}@media screen and (min-width:1904px){.customdiv{margin-left:44%}}.logodiv{background:#fff;width:150px;border-radius:45px;text-align:center;padding:8px 0 2px}.logoimg{width:114px}"]
|
|
117
|
+
}] }
|
|
118
|
+
];
|
|
119
|
+
/** @nocollapse */
|
|
120
|
+
DataPointsComponent.ctorParameters = () => [
|
|
121
|
+
{ type: InsiteDataService }
|
|
122
|
+
];
|
|
123
|
+
DataPointsComponent.propDecorators = {
|
|
124
|
+
objectData: [{ type: Input }],
|
|
125
|
+
layoutType: [{ type: Input }],
|
|
126
|
+
fetchDataFromApi: [{ type: Input }],
|
|
127
|
+
providerId: [{ type: Input }],
|
|
128
|
+
pageLayout: [{ type: Input }]
|
|
129
|
+
};
|
|
130
|
+
if (false) {
|
|
131
|
+
/** @type {?} */
|
|
132
|
+
DataPointsComponent.prototype.objectData;
|
|
133
|
+
/** @type {?} */
|
|
134
|
+
DataPointsComponent.prototype.layoutType;
|
|
135
|
+
/** @type {?} */
|
|
136
|
+
DataPointsComponent.prototype.fetchDataFromApi;
|
|
137
|
+
/** @type {?} */
|
|
138
|
+
DataPointsComponent.prototype.providerId;
|
|
139
|
+
/** @type {?} */
|
|
140
|
+
DataPointsComponent.prototype.pageLayout;
|
|
141
|
+
/** @type {?} */
|
|
142
|
+
DataPointsComponent.prototype.customArray;
|
|
143
|
+
/** @type {?} */
|
|
144
|
+
DataPointsComponent.prototype.isDataLoading;
|
|
145
|
+
/** @type {?} */
|
|
146
|
+
DataPointsComponent.prototype.insightSvc;
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wb2ludHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtY2IvY29uc3VtcHRpb24vIiwic291cmNlcyI6WyJsaWIvX2NvbW1vbi9kYXRhLXBvaW50cy9kYXRhLXBvaW50cy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBT3hFLE1BQU0sT0FBTyxtQkFBbUI7Ozs7SUFTOUIsWUFBbUIsVUFBNkI7UUFBN0IsZUFBVSxHQUFWLFVBQVUsQ0FBbUI7UUFQdkMsZUFBVSxHQUFXLEVBQUUsQ0FBQTtRQUN2QixxQkFBZ0IsR0FBWSxLQUFLLENBQUE7UUFDakMsZUFBVSxHQUFTLEVBQUUsQ0FBQTtRQUNyQixlQUFVLEdBQVEsRUFBRSxDQUFB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LnNsaWNlKC0zKTtcclxuICAgIGxldCBvdGhlck51bWJlcnMgPSBpbnRlZ2VyUGFydC5zbGljZSgwLCAtMyk7XHJcbiAgICBpZiAob3RoZXJOdW1iZXJzICE9PSAnJykge1xyXG4gICAgICBsYXN0VGhyZWUgPSAnLCcgKyBsYXN0VGhyZWU7XHJcbiAgICB9XHJcbiAgICBsZXQgZm9ybWF0dGVkSW50ZWdlclBhcnQgPSBvdGhlck51bWJlcnMucmVwbGFjZSgvXFxCKD89KFxcZHsyfSkrKD8hXFxkKSkvZywgJywnKSArIGxhc3RUaHJlZTtcclxuICAgIGNvbnN0IHJlc3VsdCA9IGRlY2ltYWxQYXJ0ID8gYCR7Zm9ybWF0dGVkSW50ZWdlclBhcnR9LiR7ZGVjaW1hbFBhcnQuc3Vic3RyKDAsMil9YCA6IGZvcm1hdHRlZEludGVnZXJQYXJ0O1xyXG4gICAgcmV0dXJuIHJlc3VsdFxyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
import { DataPointsComponent } from './data-points.component';
|
|
8
|
-
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
9
|
-
import { SkeletonLoaderLibModule } from '../skeleton-loader-lib/skeleton-loader-lib.module';
|
|
10
|
-
export class DataPointsModule {
|
|
11
|
-
}
|
|
12
|
-
DataPointsModule.decorators = [
|
|
13
|
-
{ type: NgModule, args: [{
|
|
14
|
-
declarations: [DataPointsComponent],
|
|
15
|
-
imports: [
|
|
16
|
-
CommonModule,
|
|
17
|
-
SkeletonLoaderLibModule
|
|
18
|
-
],
|
|
19
|
-
exports: [DataPointsComponent],
|
|
20
|
-
providers: [InsiteDataService]
|
|
21
|
-
},] }
|
|
22
|
-
];
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { NgModule } from '@angular/core';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { DataPointsComponent } from './data-points.component';
|
|
8
|
+
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
9
|
+
import { SkeletonLoaderLibModule } from '../skeleton-loader-lib/skeleton-loader-lib.module';
|
|
10
|
+
export class DataPointsModule {
|
|
11
|
+
}
|
|
12
|
+
DataPointsModule.decorators = [
|
|
13
|
+
{ type: NgModule, args: [{
|
|
14
|
+
declarations: [DataPointsComponent],
|
|
15
|
+
imports: [
|
|
16
|
+
CommonModule,
|
|
17
|
+
SkeletonLoaderLibModule
|
|
18
|
+
],
|
|
19
|
+
exports: [DataPointsComponent],
|
|
20
|
+
providers: [InsiteDataService]
|
|
21
|
+
},] }
|
|
22
|
+
];
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wb2ludHMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtY2IvY29uc3VtcHRpb24vIiwic291cmNlcyI6WyJsaWIvX2NvbW1vbi9kYXRhLXBvaW50cy9kYXRhLXBvaW50cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQ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