@sunbird-cb/toc 0.0.9 → 0.0.10-mauritius

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.
Files changed (346) hide show
  1. package/esm2022/lib/_collection/_common/ai-tutor/ai-tutor.component.mjs +1169 -0
  2. package/esm2022/lib/_collection/_common/ai-tutor/socket.service.mjs +121 -0
  3. package/esm2022/lib/_collection/_common/attendance-card/attendance-card.component.mjs +55 -55
  4. package/esm2022/lib/_collection/_common/attendance-card/attendance-card.module.mjs +126 -126
  5. package/esm2022/lib/_collection/_common/attendance-helper/attendance-helper.component.mjs +32 -32
  6. package/esm2022/lib/_collection/_common/attendance-helper/attendance-helper.module.mjs +85 -85
  7. package/esm2022/lib/_collection/_common/avatar-photo/avatar-photo.component.mjs +100 -100
  8. package/esm2022/lib/_collection/_common/avatar-photo/avatar-photo.module.mjs +48 -48
  9. package/esm2022/lib/_collection/_common/card-competency/card-competency.component.mjs +58 -0
  10. package/esm2022/lib/_collection/_common/card-competency/card-competency.module.mjs +22 -0
  11. package/esm2022/lib/_collection/_common/card-content-v2/card-content-v2.model.mjs +23 -0
  12. package/esm2022/lib/_collection/_common/certificate-dialog/certificate-dialog.component.mjs +223 -120
  13. package/esm2022/lib/_collection/_common/certificate-dialog/certificate-dialog.module.mjs +96 -92
  14. package/esm2022/lib/_collection/_common/certificate-dialog/svg-to-pdf.component.mjs +48 -48
  15. package/esm2022/lib/_collection/_common/confirm-dialog/confirm-dialog.component.mjs +25 -25
  16. package/esm2022/lib/_collection/_common/confirm-dialog/confirm-dialog.module.mjs +41 -41
  17. package/esm2022/lib/_collection/_common/connection-hover-card/connection-hover-card.component.mjs +89 -89
  18. package/esm2022/lib/_collection/_common/connection-hover-card/connection-hover.module.mjs +42 -42
  19. package/esm2022/lib/_collection/_common/connection-hover-card/connection-hover.servive.mjs +41 -41
  20. package/esm2022/lib/_collection/_common/connection-name/connection-name.component.mjs +78 -78
  21. package/esm2022/lib/_collection/_common/connection-name/connection-name.module.mjs +45 -45
  22. package/esm2022/lib/_collection/_common/connection-name/profile-v2.model.mjs +2 -2
  23. package/esm2022/lib/_collection/_common/content-progress/content-progress.component.mjs +70 -70
  24. package/esm2022/lib/_collection/_common/content-progress/content-progress.module.mjs +28 -28
  25. package/esm2022/lib/_collection/_common/content-rating-v2-dialog/content-rating-v2-dialog.component.mjs +187 -187
  26. package/esm2022/lib/_collection/_common/content-rating-v2-dialog/content-rating-v2-dialog.module.mjs +86 -86
  27. package/esm2022/lib/_collection/_common/content-toc/ai-tutor-confirm-popup/ai-tutor-confirm-popup.component.mjs +31 -31
  28. package/esm2022/lib/_collection/_common/content-toc/app-toc-about/app-toc-about.component.mjs +961 -941
  29. package/esm2022/lib/_collection/_common/content-toc/app-toc-assignment-viewer/app-toc-assignment-viewer.component.mjs +183 -183
  30. package/esm2022/lib/_collection/_common/content-toc/app-toc-assignment-viewerV2/app-toc-assignment-viewerV2.component.mjs +327 -327
  31. package/esm2022/lib/_collection/_common/content-toc/app-toc-batch-assignments/app-toc-batch-assignments.component.mjs +297 -297
  32. package/esm2022/lib/_collection/_common/content-toc/app-toc-content/app-toc-content.component.mjs +304 -248
  33. package/esm2022/lib/_collection/_common/content-toc/app-toc-content-card-v2/app-toc-content-card-v2.component.mjs +1227 -1148
  34. package/esm2022/lib/_collection/_common/content-toc/app-toc-content-card-v2-skeleton/app-toc-content-card-v2-skeleton.component.mjs +16 -16
  35. package/esm2022/lib/_collection/_common/content-toc/app-toc-reference-notes/app-toc-reference-notes.component.mjs +43 -43
  36. package/esm2022/lib/_collection/_common/content-toc/app-toc-session-card-new/app-toc-session-card-new.component.mjs +133 -133
  37. package/esm2022/lib/_collection/_common/content-toc/app-toc-sessions-new/app-toc-sessions-new.component.mjs +66 -66
  38. package/esm2022/lib/_collection/_common/content-toc/app-toc-teachers-notes/app-toc-teachers-notes.component.mjs +278 -278
  39. package/esm2022/lib/_collection/_common/content-toc/content-services/handle-claim.service.mjs +21 -21
  40. package/esm2022/lib/_collection/_common/content-toc/content-services/review-component-data.service.mjs +21 -21
  41. package/esm2022/lib/_collection/_common/content-toc/content-toc.component.mjs +835 -847
  42. package/esm2022/lib/_collection/_common/content-toc/content-toc.module.mjs +224 -219
  43. package/esm2022/lib/_collection/_common/content-toc/karma-points/karma-points.component.mjs +276 -209
  44. package/esm2022/lib/_collection/_common/content-toc/karma-points/karma-points.module.mjs +26 -26
  45. package/esm2022/lib/_collection/_common/content-toc/pipes/replace-nbsp.pipe.mjs +19 -19
  46. package/esm2022/lib/_collection/_common/content-toc/pipes/truncate.pipe.mjs +23 -23
  47. package/esm2022/lib/_collection/_common/content-toc/reviews-content/reviews-content.component.mjs +113 -113
  48. package/esm2022/lib/_collection/_common/content-toc/samuhik-charcha-content/samuhik-charcha-content/samuhik-charcha-content.component.mjs +110 -110
  49. package/esm2022/lib/_collection/_common/display-content-type/display-content-type.component.mjs +26 -26
  50. package/esm2022/lib/_collection/_common/display-content-type/display-content-type.module.mjs +19 -19
  51. package/esm2022/lib/_collection/_common/display-content-type-icon/display-content-type-icon.component.mjs +67 -67
  52. package/esm2022/lib/_collection/_common/display-content-type-icon/display-content-type-icon.module.mjs +28 -28
  53. package/esm2022/lib/_collection/_common/mark-as-complete/mark-as-complete.component.mjs +77 -77
  54. package/esm2022/lib/_collection/_common/mark-as-complete/mark-as-complete.model.mjs +2 -2
  55. package/esm2022/lib/_collection/_common/mark-as-complete/mark-as-complete.module.mjs +61 -61
  56. package/esm2022/lib/_collection/_common/pipe-content-route/pipe-content-route.module.mjs +20 -20
  57. package/esm2022/lib/_collection/_common/pipe-content-route/pipe-content-route.pipe.mjs +67 -67
  58. package/esm2022/lib/_collection/_common/player-brief/player-brief.component.mjs +139 -139
  59. package/esm2022/lib/_collection/_common/player-brief/player-brief.module.mjs +71 -71
  60. package/esm2022/lib/_collection/_common/rating-summary/rating-summary.component.mjs +34 -34
  61. package/esm2022/lib/_collection/_common/rating-summary/rating-summary.module.mjs +56 -56
  62. package/esm2022/lib/_collection/_common/skeleton-loader/skeleton-loader.component.mjs +25 -25
  63. package/esm2022/lib/_collection/_common/skeleton-loader/skeleton-loader.module.mjs +37 -37
  64. package/esm2022/lib/_collection/_common/tips-for-learner/tips-for-learner-card/tips-for-learner-card.component.mjs +32 -32
  65. package/esm2022/lib/_collection/_common/tips-for-learner/tips-for-learner.module.mjs +30 -30
  66. package/esm2022/lib/_collection/_common/toc-kpi-values/toc-kpi-values.component.mjs +38 -38
  67. package/esm2022/lib/_collection/_common/toc-kpi-values/toc-kpi-values.module.mjs +51 -51
  68. package/esm2022/lib/_collection/_common/user-autocomplete/user-autocomplete.component.mjs +115 -115
  69. package/esm2022/lib/_collection/_common/user-autocomplete/user-autocomplete.model.mjs +12 -12
  70. package/esm2022/lib/_collection/_common/user-autocomplete/user-autocomplete.module.mjs +51 -51
  71. package/esm2022/lib/_collection/_common/user-autocomplete/user-autocomplete.service.mjs +61 -61
  72. package/esm2022/lib/_collection/_common/user-content-rating/user-content-rating.component.mjs +87 -87
  73. package/esm2022/lib/_collection/_common/user-content-rating/user-content-rating.module.mjs +36 -36
  74. package/esm2022/lib/_collection/_common/user-image/user-image.component.mjs +62 -62
  75. package/esm2022/lib/_collection/_common/user-image/user-image.module.mjs +24 -24
  76. package/esm2022/lib/_collection/btn-page-back/btn-page-back.component.mjs +192 -192
  77. package/esm2022/lib/_collection/btn-page-back/btn-page-back.module.mjs +44 -44
  78. package/esm2022/lib/_collection/btn-page-back/btn-page-back.service.mjs +99 -99
  79. package/esm2022/lib/_collection/card-rating-comment/card-rating-comment.component.mjs +58 -58
  80. package/esm2022/lib/_collection/card-rating-comment/card-rating-comment.module.mjs +67 -67
  81. package/esm2022/lib/_collection/sliders-dynamic/sliders-dynamic.component.mjs +115 -112
  82. package/esm2022/lib/_collection/sliders-dynamic/sliders-dynamic.model.mjs +2 -2
  83. package/esm2022/lib/_collection/sliders-dynamic/sliders-dynamic.module.mjs +69 -69
  84. package/esm2022/lib/_collection-api.mjs +57 -57
  85. package/esm2022/lib/_constants/widget-content.constants.mjs +19 -19
  86. package/esm2022/lib/_directives/tooltip.directive.mjs +68 -68
  87. package/esm2022/lib/_models/common.model.mjs +2 -2
  88. package/esm2022/lib/_models/error.model.mjs +2 -2
  89. package/esm2022/lib/_pipes/highlight.pipe.mjs +24 -24
  90. package/esm2022/lib/_services/rating.service.mjs +89 -89
  91. package/esm2022/lib/_services/samuhik-charcha.service.mjs +29 -29
  92. package/esm2022/lib/_services/viewer-route-util.mjs +103 -103
  93. package/esm2022/lib/_services/widget-content.model.mjs +254 -247
  94. package/esm2022/lib/_services/widget-content.service.mjs +594 -594
  95. package/esm2022/lib/_shared/translate-loader.factory.mjs +9 -9
  96. package/esm2022/lib/app-toc-lib.module.mjs +508 -499
  97. package/esm2022/lib/collection.config.mjs +161 -161
  98. package/esm2022/lib/components/app-toc-analytics-tiles/app-toc-analytics-tiles.component.mjs +37 -37
  99. package/esm2022/lib/components/app-toc-banner/app-toc-banner.component.mjs +1436 -1436
  100. package/esm2022/lib/components/app-toc-cios-home/app-toc-cios-home.component.mjs +522 -475
  101. package/esm2022/lib/components/app-toc-cios-home/consent-dialog.component.mjs +119 -119
  102. package/esm2022/lib/components/app-toc-cohorts/app-toc-cohorts.component.mjs +80 -80
  103. package/esm2022/lib/components/app-toc-content-card/app-toc-content-card.component.mjs +249 -249
  104. package/esm2022/lib/components/app-toc-dialog-intro-video/app-toc-dialog-intro-video.component.mjs +39 -39
  105. package/esm2022/lib/components/app-toc-discussion/app-toc-discussion.component.mjs +58 -58
  106. package/esm2022/lib/components/app-toc-home/app-toc-home.component.mjs +2230 -2229
  107. package/esm2022/lib/components/app-toc-home-v2/app-toc-home-v2.component.mjs +3017 -2907
  108. package/esm2022/lib/components/app-toc-overview/app-toc-overview.component.mjs +157 -157
  109. package/esm2022/lib/components/app-toc-session-card/app-toc-session-card.component.mjs +48 -48
  110. package/esm2022/lib/components/app-toc-sessions/app-toc-sessions.component.mjs +47 -47
  111. package/esm2022/lib/components/app-toc-single-page/app-toc-single-page.component.mjs +766 -766
  112. package/esm2022/lib/components/completion-survey-form/completion-survey-form.component.mjs +243 -243
  113. package/esm2022/lib/components/create-batch-dialog/create-batch-dialog.component.mjs +116 -116
  114. package/esm2022/lib/components/enroll-language-dialogue/enroll-language-dialogue.component.mjs +44 -44
  115. package/esm2022/lib/components/enroll-profile-form/enroll-profile-form.component.mjs +1854 -1838
  116. package/esm2022/lib/components/enroll-questionnaire/enroll-questionnaire.component.mjs +236 -236
  117. package/esm2022/lib/components/knowledge-artifact-details/knowledge-artifact-details.component.mjs +213 -213
  118. package/esm2022/lib/components/non-relevent-feedback-dialog/non-relevent-feedback-dialog.component.mjs +36 -36
  119. package/esm2022/lib/components/public-survey-form/public-survey-form.component.mjs +258 -256
  120. package/esm2022/lib/components/survey-form-question/survey-form-question.component.mjs +133 -133
  121. package/esm2022/lib/components/survey-form-section/survey-form-section.component.mjs +36 -36
  122. package/esm2022/lib/models/app-toc-analytics.model.mjs +2 -2
  123. package/esm2022/lib/models/app-toc.model.mjs +38 -38
  124. package/esm2022/lib/models/auto-complete.model.mjs +2 -2
  125. package/esm2022/lib/models/card-content.model.mjs +13 -13
  126. package/esm2022/lib/models/content-strip-with-tabs.model.mjs +2 -2
  127. package/esm2022/lib/models/discussion-forum.model.mjs +14 -14
  128. package/esm2022/lib/models/goal.model.mjs +2 -2
  129. package/esm2022/lib/models/meta-tag.model.mjs +8 -8
  130. package/esm2022/lib/models/playlist.model.mjs +2 -2
  131. package/esm2022/lib/models/profile-revamp.model.mjs +2 -2
  132. package/esm2022/lib/models/rating.model.mjs +2 -2
  133. package/esm2022/lib/models/user-profile.model.mjs +21 -21
  134. package/esm2022/lib/registration-toc-lib.config.mjs +14 -0
  135. package/esm2022/lib/resolvers/app-toc-cios-resolver.service.mjs +24 -24
  136. package/esm2022/lib/resolvers/app-toc-cios-user-enroll-resolver.service.mjs +24 -24
  137. package/esm2022/lib/resolvers/app-toc-content-read-resolver.service.mjs +60 -60
  138. package/esm2022/lib/resolvers/app-toc-ext-public-resolver.service.mjs +25 -25
  139. package/esm2022/lib/resolvers/app-toc-resolver.service.mjs +106 -106
  140. package/esm2022/lib/resolvers/config-resolver.service.mjs +25 -25
  141. package/esm2022/lib/resolvers/profile-resolver.service.mjs +25 -25
  142. package/esm2022/lib/resolvers/restricted-features-resolver.service.mjs +25 -25
  143. package/esm2022/lib/routes/app-toc-home/app-toc-home.component.mjs +51 -51
  144. package/esm2022/lib/routes/app-toc-home/app-toc-home.directive.mjs +16 -16
  145. package/esm2022/lib/routes/app-toc-home/app-toc-home.service.mjs +18 -18
  146. package/esm2022/lib/services/access-control.service.mjs +56 -56
  147. package/esm2022/lib/services/action.service.mjs +23 -23
  148. package/esm2022/lib/services/app-toc-v2.service.mjs +368 -313
  149. package/esm2022/lib/services/app-toc.service.mjs +1577 -1613
  150. package/esm2022/lib/services/certificate.service.mjs +114 -69
  151. package/esm2022/lib/services/discuss-utils.service.mjs +45 -58
  152. package/esm2022/lib/services/editor.service.mjs +34 -34
  153. package/esm2022/lib/services/load-check.service.mjs +21 -21
  154. package/esm2022/lib/services/loader.service.mjs +33 -33
  155. package/esm2022/lib/services/mobile-apps.service.mjs +67 -67
  156. package/esm2022/lib/services/netcore.service.mjs +126 -56
  157. package/esm2022/lib/services/nps-grid.service.mjs +43 -31
  158. package/esm2022/lib/services/otp.service.mjs +81 -43
  159. package/esm2022/lib/services/profile-v2.service.mjs +71 -43
  160. package/esm2022/lib/services/reset-ratings.service.mjs +19 -19
  161. package/esm2022/lib/services/resource-download-helper.service.mjs +64 -64
  162. package/esm2022/lib/services/root.service.mjs +106 -0
  163. package/esm2022/lib/services/timer.service.mjs +23 -23
  164. package/esm2022/lib/services/title-tag.service.mjs +71 -71
  165. package/esm2022/lib/services/user-profile.service.mjs +180 -55
  166. package/esm2022/lib/services/viewer-data.service.mjs +64 -64
  167. package/esm2022/lib/services/viewer-util.service.mjs +627 -590
  168. package/esm2022/lib/share-toc/share-toc/share-toc.component.mjs +291 -291
  169. package/esm2022/lib/share-toc/share-toc.module.mjs +119 -119
  170. package/esm2022/public-api.mjs +81 -71
  171. package/esm2022/sunbird-cb-toc.mjs +4 -4
  172. package/fesm2022/sunbird-cb-toc.mjs +27145 -24836
  173. package/fesm2022/sunbird-cb-toc.mjs.map +1 -1
  174. package/index.d.ts +5 -5
  175. package/lib/_collection/_common/ai-tutor/ai-tutor.component.d.ts +139 -0
  176. package/lib/_collection/_common/ai-tutor/socket.service.d.ts +19 -0
  177. package/lib/_collection/_common/attendance-card/attendance-card.component.d.ts +16 -16
  178. package/lib/_collection/_common/attendance-card/attendance-card.module.d.ts +31 -31
  179. package/lib/_collection/_common/attendance-helper/attendance-helper.component.d.ts +15 -15
  180. package/lib/_collection/_common/attendance-helper/attendance-helper.module.d.ts +20 -20
  181. package/lib/_collection/_common/avatar-photo/avatar-photo.component.d.ts +22 -22
  182. package/lib/_collection/_common/avatar-photo/avatar-photo.module.d.ts +15 -15
  183. package/lib/_collection/_common/card-competency/card-competency.component.d.ts +14 -0
  184. package/lib/_collection/_common/card-competency/card-competency.module.d.ts +8 -0
  185. package/lib/_collection/_common/card-content-v2/card-content-v2.model.d.ts +44 -0
  186. package/lib/_collection/_common/certificate-dialog/certificate-dialog.component.d.ts +31 -22
  187. package/lib/_collection/_common/certificate-dialog/certificate-dialog.module.d.ts +23 -22
  188. package/lib/_collection/_common/certificate-dialog/svg-to-pdf.component.d.ts +9 -9
  189. package/lib/_collection/_common/confirm-dialog/confirm-dialog.component.d.ts +11 -11
  190. package/lib/_collection/_common/confirm-dialog/confirm-dialog.module.d.ts +12 -12
  191. package/lib/_collection/_common/connection-hover-card/connection-hover-card.component.d.ts +18 -18
  192. package/lib/_collection/_common/connection-hover-card/connection-hover.module.d.ts +14 -14
  193. package/lib/_collection/_common/connection-hover-card/connection-hover.servive.d.ts +11 -11
  194. package/lib/_collection/_common/connection-name/connection-name.component.d.ts +17 -17
  195. package/lib/_collection/_common/connection-name/connection-name.module.d.ts +14 -14
  196. package/lib/_collection/_common/connection-name/profile-v2.model.d.ts +199 -199
  197. package/lib/_collection/_common/content-progress/content-progress.component.d.ts +16 -16
  198. package/lib/_collection/_common/content-progress/content-progress.module.d.ts +10 -10
  199. package/lib/_collection/_common/content-rating-v2-dialog/content-rating-v2-dialog.component.d.ts +38 -38
  200. package/lib/_collection/_common/content-rating-v2-dialog/content-rating-v2-dialog.module.d.ts +19 -19
  201. package/lib/_collection/_common/content-toc/ai-tutor-confirm-popup/ai-tutor-confirm-popup.component.d.ts +11 -11
  202. package/lib/_collection/_common/content-toc/app-toc-about/app-toc-about.component.d.ts +187 -183
  203. package/lib/_collection/_common/content-toc/app-toc-assignment-viewer/app-toc-assignment-viewer.component.d.ts +41 -41
  204. package/lib/_collection/_common/content-toc/app-toc-assignment-viewerV2/app-toc-assignment-viewerV2.component.d.ts +54 -54
  205. package/lib/_collection/_common/content-toc/app-toc-batch-assignments/app-toc-batch-assignments.component.d.ts +47 -47
  206. package/lib/_collection/_common/content-toc/app-toc-content/app-toc-content.component.d.ts +56 -49
  207. package/lib/_collection/_common/content-toc/app-toc-content-card-v2/app-toc-content-card-v2.component.d.ts +195 -171
  208. package/lib/_collection/_common/content-toc/app-toc-content-card-v2-skeleton/app-toc-content-card-v2-skeleton.component.d.ts +8 -8
  209. package/lib/_collection/_common/content-toc/app-toc-reference-notes/app-toc-reference-notes.component.d.ts +16 -16
  210. package/lib/_collection/_common/content-toc/app-toc-session-card-new/app-toc-session-card-new.component.d.ts +40 -40
  211. package/lib/_collection/_common/content-toc/app-toc-sessions-new/app-toc-sessions-new.component.d.ts +21 -21
  212. package/lib/_collection/_common/content-toc/app-toc-teachers-notes/app-toc-teachers-notes.component.d.ts +45 -45
  213. package/lib/_collection/_common/content-toc/content-services/handle-claim.service.d.ts +10 -10
  214. package/lib/_collection/_common/content-toc/content-services/review-component-data.service.d.ts +10 -10
  215. package/lib/_collection/_common/content-toc/content-toc.component.d.ts +131 -128
  216. package/lib/_collection/_common/content-toc/content-toc.module.d.ts +52 -51
  217. package/lib/_collection/_common/content-toc/karma-points/karma-points.component.d.ts +32 -29
  218. package/lib/_collection/_common/content-toc/karma-points/karma-points.module.d.ts +9 -9
  219. package/lib/_collection/_common/content-toc/pipes/replace-nbsp.pipe.d.ts +7 -7
  220. package/lib/_collection/_common/content-toc/pipes/truncate.pipe.d.ts +7 -7
  221. package/lib/_collection/_common/content-toc/reviews-content/reviews-content.component.d.ts +28 -28
  222. package/lib/_collection/_common/content-toc/samuhik-charcha-content/samuhik-charcha-content/samuhik-charcha-content.component.d.ts +24 -24
  223. package/lib/_collection/_common/display-content-type/display-content-type.component.d.ts +14 -14
  224. package/lib/_collection/_common/display-content-type/display-content-type.module.d.ts +9 -9
  225. package/lib/_collection/_common/display-content-type-icon/display-content-type-icon.component.d.ts +12 -12
  226. package/lib/_collection/_common/display-content-type-icon/display-content-type-icon.module.d.ts +10 -10
  227. package/lib/_collection/_common/mark-as-complete/mark-as-complete.component.d.ts +22 -22
  228. package/lib/_collection/_common/mark-as-complete/mark-as-complete.model.d.ts +8 -8
  229. package/lib/_collection/_common/mark-as-complete/mark-as-complete.module.d.ts +18 -18
  230. package/lib/_collection/_common/pipe-content-route/pipe-content-route.module.d.ts +8 -8
  231. package/lib/_collection/_common/pipe-content-route/pipe-content-route.pipe.d.ts +15 -15
  232. package/lib/_collection/_common/player-brief/player-brief.component.d.ts +35 -35
  233. package/lib/_collection/_common/player-brief/player-brief.module.d.ts +19 -19
  234. package/lib/_collection/_common/rating-summary/rating-summary.component.d.ts +14 -14
  235. package/lib/_collection/_common/rating-summary/rating-summary.module.d.ts +13 -13
  236. package/lib/_collection/_common/skeleton-loader/skeleton-loader.component.d.ts +11 -11
  237. package/lib/_collection/_common/skeleton-loader/skeleton-loader.module.d.ts +11 -11
  238. package/lib/_collection/_common/tips-for-learner/tips-for-learner-card/tips-for-learner-card.component.d.ts +15 -15
  239. package/lib/_collection/_common/tips-for-learner/tips-for-learner.module.d.ts +10 -10
  240. package/lib/_collection/_common/toc-kpi-values/toc-kpi-values.component.d.ts +16 -16
  241. package/lib/_collection/_common/toc-kpi-values/toc-kpi-values.module.d.ts +11 -11
  242. package/lib/_collection/_common/user-autocomplete/user-autocomplete.component.d.ts +34 -34
  243. package/lib/_collection/_common/user-autocomplete/user-autocomplete.model.d.ts +17 -17
  244. package/lib/_collection/_common/user-autocomplete/user-autocomplete.module.d.ts +15 -15
  245. package/lib/_collection/_common/user-autocomplete/user-autocomplete.service.d.ts +15 -15
  246. package/lib/_collection/_common/user-content-rating/user-content-rating.component.d.ts +21 -21
  247. package/lib/_collection/_common/user-content-rating/user-content-rating.module.d.ts +12 -12
  248. package/lib/_collection/_common/user-image/user-image.component.d.ts +21 -21
  249. package/lib/_collection/_common/user-image/user-image.module.d.ts +9 -9
  250. package/lib/_collection/btn-page-back/btn-page-back.component.d.ts +47 -47
  251. package/lib/_collection/btn-page-back/btn-page-back.module.d.ts +14 -14
  252. package/lib/_collection/btn-page-back/btn-page-back.service.d.ts +22 -22
  253. package/lib/_collection/card-rating-comment/card-rating-comment.component.d.ts +19 -19
  254. package/lib/_collection/card-rating-comment/card-rating-comment.module.d.ts +15 -15
  255. package/lib/_collection/sliders-dynamic/sliders-dynamic.component.d.ts +26 -25
  256. package/lib/_collection/sliders-dynamic/sliders-dynamic.model.d.ts +21 -21
  257. package/lib/_collection/sliders-dynamic/sliders-dynamic.module.d.ts +18 -18
  258. package/lib/_collection-api.d.ts +34 -34
  259. package/lib/_constants/widget-content.constants.d.ts +7 -7
  260. package/lib/_directives/tooltip.directive.d.ts +17 -17
  261. package/lib/_models/common.model.d.ts +3 -3
  262. package/lib/_models/error.model.d.ts +5 -5
  263. package/lib/_pipes/highlight.pipe.d.ts +10 -10
  264. package/lib/_services/rating.service.d.ts +18 -18
  265. package/lib/_services/samuhik-charcha.service.d.ts +13 -13
  266. package/lib/_services/viewer-route-util.d.ts +8 -8
  267. package/lib/_services/widget-content.model.d.ts +521 -515
  268. package/lib/_services/widget-content.service.d.ts +101 -101
  269. package/lib/_shared/translate-loader.factory.d.ts +7 -7
  270. package/lib/app-toc-lib.module.d.ts +89 -88
  271. package/lib/collection.config.d.ts +159 -159
  272. package/lib/components/app-toc-analytics-tiles/app-toc-analytics-tiles.component.d.ts +17 -17
  273. package/lib/components/app-toc-banner/app-toc-banner.component.d.ts +225 -225
  274. package/lib/components/app-toc-cios-home/app-toc-cios-home.component.d.ts +83 -78
  275. package/lib/components/app-toc-cios-home/consent-dialog.component.d.ts +22 -22
  276. package/lib/components/app-toc-cohorts/app-toc-cohorts.component.d.ts +31 -31
  277. package/lib/components/app-toc-content-card/app-toc-content-card.component.d.ts +47 -47
  278. package/lib/components/app-toc-dialog-intro-video/app-toc-dialog-intro-video.component.d.ts +14 -14
  279. package/lib/components/app-toc-discussion/app-toc-discussion.component.d.ts +21 -21
  280. package/lib/components/app-toc-home/app-toc-home.component.d.ts +315 -314
  281. package/lib/components/app-toc-home-v2/app-toc-home-v2.component.d.ts +418 -408
  282. package/lib/components/app-toc-overview/app-toc-overview.component.d.ts +47 -47
  283. package/lib/components/app-toc-session-card/app-toc-session-card.component.d.ts +22 -22
  284. package/lib/components/app-toc-sessions/app-toc-sessions.component.d.ts +14 -14
  285. package/lib/components/app-toc-single-page/app-toc-single-page.component.d.ts +149 -149
  286. package/lib/components/completion-survey-form/completion-survey-form.component.d.ts +42 -42
  287. package/lib/components/create-batch-dialog/create-batch-dialog.component.d.ts +27 -27
  288. package/lib/components/enroll-language-dialogue/enroll-language-dialogue.component.d.ts +15 -15
  289. package/lib/components/enroll-profile-form/enroll-profile-form.component.d.ts +197 -195
  290. package/lib/components/enroll-questionnaire/enroll-questionnaire.component.d.ts +44 -44
  291. package/lib/components/knowledge-artifact-details/knowledge-artifact-details.component.d.ts +54 -54
  292. package/lib/components/non-relevent-feedback-dialog/non-relevent-feedback-dialog.component.d.ts +18 -18
  293. package/lib/components/public-survey-form/public-survey-form.component.d.ts +44 -43
  294. package/lib/components/survey-form-question/survey-form-question.component.d.ts +20 -20
  295. package/lib/components/survey-form-section/survey-form-section.component.d.ts +13 -13
  296. package/lib/models/app-toc-analytics.model.d.ts +152 -152
  297. package/lib/models/app-toc.model.d.ts +84 -84
  298. package/lib/models/auto-complete.model.d.ts +27 -27
  299. package/lib/models/card-content.model.d.ts +19 -19
  300. package/lib/models/content-strip-with-tabs.model.d.ts +44 -44
  301. package/lib/models/discussion-forum.model.d.ts +40 -40
  302. package/lib/models/goal.model.d.ts +22 -22
  303. package/lib/models/meta-tag.model.d.ts +6 -6
  304. package/lib/models/playlist.model.d.ts +23 -23
  305. package/lib/models/profile-revamp.model.d.ts +14 -14
  306. package/lib/models/rating.model.d.ts +17 -17
  307. package/lib/models/user-profile.model.d.ts +124 -37
  308. package/lib/registration-toc-lib.config.d.ts +4 -0
  309. package/lib/resolvers/app-toc-cios-resolver.service.d.ts +12 -12
  310. package/lib/resolvers/app-toc-cios-user-enroll-resolver.service.d.ts +12 -12
  311. package/lib/resolvers/app-toc-content-read-resolver.service.d.ts +16 -16
  312. package/lib/resolvers/app-toc-ext-public-resolver.service.d.ts +12 -12
  313. package/lib/resolvers/app-toc-resolver.service.d.ts +16 -16
  314. package/lib/resolvers/config-resolver.service.d.ts +11 -11
  315. package/lib/resolvers/profile-resolver.service.d.ts +11 -11
  316. package/lib/resolvers/restricted-features-resolver.service.d.ts +11 -11
  317. package/lib/routes/app-toc-home/app-toc-home.component.d.ts +19 -19
  318. package/lib/routes/app-toc-home/app-toc-home.directive.d.ts +8 -8
  319. package/lib/routes/app-toc-home/app-toc-home.service.d.ts +8 -8
  320. package/lib/services/access-control.service.d.ts +29 -29
  321. package/lib/services/action.service.d.ts +9 -9
  322. package/lib/services/app-toc-v2.service.d.ts +17 -16
  323. package/lib/services/app-toc.service.d.ts +190 -235
  324. package/lib/services/certificate.service.d.ts +41 -42
  325. package/lib/services/discuss-utils.service.d.ts +11 -33
  326. package/lib/services/editor.service.d.ts +17 -17
  327. package/lib/services/load-check.service.d.ts +8 -8
  328. package/lib/services/loader.service.d.ts +16 -16
  329. package/lib/services/mobile-apps.service.d.ts +38 -38
  330. package/lib/services/netcore.service.d.ts +21 -33
  331. package/lib/services/nps-grid.service.d.ts +16 -15
  332. package/lib/services/otp.service.d.ts +15 -20
  333. package/lib/services/profile-v2.service.d.ts +17 -20
  334. package/lib/services/reset-ratings.service.d.ts +8 -8
  335. package/lib/services/resource-download-helper.service.d.ts +29 -29
  336. package/lib/services/root.service.d.ts +26 -0
  337. package/lib/services/timer.service.d.ts +9 -9
  338. package/lib/services/title-tag.service.d.ts +21 -21
  339. package/lib/services/user-profile.service.d.ts +44 -24
  340. package/lib/services/viewer-data.service.d.ts +62 -58
  341. package/lib/services/viewer-util.service.d.ts +76 -76
  342. package/lib/share-toc/share-toc/share-toc.component.d.ts +56 -56
  343. package/lib/share-toc/share-toc.module.d.ts +32 -32
  344. package/package.json +3 -3
  345. package/public-api.d.ts +65 -56
  346. package/sunbird-cb-toc-0.0.10-mauritius.tgz +0 -0
@@ -1,408 +1,418 @@
1
- import { OnDestroy, OnInit, AfterViewInit, AfterViewChecked, ElementRef } from '@angular/core';
2
- import { Location } from '@angular/common';
3
- import { SafeHtml, DomSanitizer, SafeStyle } from '@angular/platform-browser';
4
- import { ActivatedRoute, Router } from '@angular/router';
5
- import { UntypedFormControl } from '@angular/forms';
6
- import { TranslateService } from '@ngx-translate/core';
7
- import { Subscription, Observable } from 'rxjs';
8
- import { NsContent } from '../../_services/widget-content.model';
9
- import { WidgetContentService } from '../../_services/widget-content.service';
10
- import { NsWidgetResolver } from '@sunbird-cb/resolver-v2';
11
- import { ConfigurationsService, DataTransferService, EventService, LoggerService, MultilingualTranslationsService, NsPage, TFetchStatus, TelemetryService, UtilityService, WidgetEnrollService } from '@sunbird-cb/utils-v2';
12
- import { ContentLanguageService, WidgetContentLibService, WidgetUserServiceLib } from '@sunbird-cb/consumption';
13
- import { NsAppToc } from '../../models/app-toc.model';
14
- import { AppTocService } from '../../services/app-toc.service';
15
- import { MobileAppsService } from '../../services/mobile-apps.service';
16
- import { HandleClaimService } from '../../_collection/_common/content-toc/content-services/handle-claim.service';
17
- import { ActionService } from '../../services/action.service';
18
- import { RatingService } from '../../_services/rating.service';
19
- import { ViewerUtilService } from '../../services/viewer-util.service';
20
- import { LoadCheckService } from '../../services/load-check.service';
21
- import { ResetRatingsService } from '../../services/reset-ratings.service';
22
- import { TimerService } from '../../services/timer.service';
23
- import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
24
- import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
25
- import { MatSnackBar as MatSnackbarNew } from '@angular/material/snack-bar';
26
- import { NetCoreService } from '../../services/netcore.service';
27
- import { AppTocV2Service } from '../../services/app-toc-v2.service';
28
- import * as i0 from "@angular/core";
29
- export declare enum ErrorType {
30
- internalServer = "internalServer",
31
- serviceUnavailable = "serviceUnavailable",
32
- somethingWrong = "somethingWrong"
33
- }
34
- export declare class AppTocHomeV2Component implements OnInit, OnDestroy, AfterViewChecked, AfterViewInit {
35
- private route;
36
- private router;
37
- private contentSvc;
38
- tocSvc: AppTocService;
39
- private loggerSvc;
40
- private configSvc;
41
- private domSanitizer;
42
- private snackBar;
43
- private dialog;
44
- private mobileAppsSvc;
45
- private utilitySvc;
46
- private contentLangSvc;
47
- private actionSVC;
48
- private viewerSvc;
49
- private ratingSvc;
50
- private telemetryService;
51
- private translate;
52
- private langtranslations;
53
- private events;
54
- private loadCheckService;
55
- private handleClaimService;
56
- private resetRatingsService;
57
- private timerService;
58
- enrollSvc: WidgetEnrollService;
59
- contentLibSvc: WidgetContentLibService;
60
- dataTransferSvc: DataTransferService;
61
- private matSnackbarNew;
62
- private userServiceLib;
63
- netCoreService: NetCoreService;
64
- appTocV2Svc: AppTocV2Service;
65
- private location;
66
- environment: any;
67
- queryParamsData: {
68
- [key: string]: string;
69
- };
70
- show: boolean;
71
- changeTab: boolean;
72
- skeletonLoader: boolean;
73
- banners: NsAppToc.ITocBanner | null;
74
- showMoreGlance: boolean;
75
- content: NsContent.IContent | null;
76
- contentReadData: NsContent.IContent | null;
77
- baseContentReadData: NsContent.IContent | null;
78
- errorCode: NsAppToc.EWsTocErrorCode | null;
79
- resumeData: any;
80
- nsCardContentData: any;
81
- batchData: NsContent.IBatchListResponse | null;
82
- currentCourseBatchId: string | null;
83
- userEnrollmentList: NsContent.ICourse[];
84
- routeSubscription: Subscription | null;
85
- pageNavbar: Partial<NsPage.INavBackground>;
86
- isCohortsRestricted: boolean;
87
- sticky: boolean;
88
- isInIframe: boolean;
89
- cbPlanEndDate: any;
90
- cbPlanDuration: any;
91
- enrolledCourseData: any;
92
- forPreview: any;
93
- inputContent: any;
94
- analytics: any;
95
- errorWidgetData: NsWidgetResolver.IRenderConfigWithTypedData<any>;
96
- isAuthor: boolean;
97
- authorBtnWidget: NsPage.INavLink;
98
- tocConfig: any;
99
- primaryCategory: typeof NsContent.EPrimaryCategory;
100
- courseCategory: typeof NsContent.ECourseCategory;
101
- WFBlendedProgramStatus: typeof NsContent.WFBlendedProgramStatus;
102
- askAuthorEnabled: boolean;
103
- trainingLHubEnabled: boolean;
104
- trainingLHubCount$?: Observable<number>;
105
- body: SafeHtml | null;
106
- viewMoreRelatedTopics: boolean;
107
- hasTocStructure: boolean;
108
- tocStructure: NsAppToc.ITocStructure | null;
109
- contentParents: {
110
- [key: string]: NsAppToc.IContentParentResponse[];
111
- };
112
- objKeys: {
113
- (o: object): string[];
114
- (o: {}): string[];
115
- };
116
- fragment: string;
117
- activeFragment: Observable<string>;
118
- currentFragment: string;
119
- showScroll: boolean;
120
- showScrollHeight: number;
121
- hideScrollHeight: number;
122
- elementPosition: any;
123
- batchSubscription: Subscription | null;
124
- batchDataSubscription: Subscription | null;
125
- resumeDataSubscription: Subscription | null;
126
- translationSubscription: Subscription | null;
127
- hashmapUpdatedSubscription: Subscription | null;
128
- menuElement: ElementRef;
129
- batchControl: UntypedFormControl;
130
- contentProgress: number;
131
- bannerUrl: SafeStyle | null;
132
- routePath: string;
133
- validPaths: Set<string>;
134
- routerParamSubscription: Subscription | null;
135
- initialrouteData: any;
136
- actionBtnStatus: string;
137
- isRegistrationSupported: boolean;
138
- showIntranetMessage: boolean;
139
- firstResourceLink: {
140
- url: string;
141
- queryParams: {
142
- [key: string]: any;
143
- };
144
- } | null;
145
- resumeDataLink: {
146
- url: string;
147
- queryParams: {
148
- [key: string]: any;
149
- };
150
- } | null;
151
- certData: any;
152
- showTakeAssessment: NsAppToc.IPostAssessment | null;
153
- checkRegistrationSources: Set<string>;
154
- externalContentFetchStatus: TFetchStatus;
155
- registerForExternal: boolean;
156
- isGoalsEnabled: boolean;
157
- contextId?: string;
158
- contextPath?: string;
159
- defaultSLogo: string;
160
- disableEnrollBtn: boolean;
161
- isAssessVisible: boolean;
162
- isPracticeVisible: boolean;
163
- certificateOpen: boolean;
164
- breadcrumbs: any;
165
- historyData: any;
166
- courseCompleteState: number;
167
- userId: any;
168
- userRating: any;
169
- dakshtaName: any;
170
- cscmsUrl: any;
171
- showBtn: boolean;
172
- channelId: any;
173
- selectedBatchData: any;
174
- selectedBatchSubscription: any;
175
- serverDateSubscription: any;
176
- serverDate: any;
177
- kparray: any;
178
- enrollBtnLoading: boolean;
179
- isAcbpCourse: boolean;
180
- isAcbpClaim: boolean;
181
- courseID: any;
182
- isClaimed: boolean;
183
- monthlyCapExceed: boolean;
184
- isCompletedThisMonth: boolean;
185
- startDate: any;
186
- endDate: any;
187
- startDateDifference: any;
188
- endDateDifference: any;
189
- rcElement: ElementRef;
190
- bannerElem: ElementRef;
191
- contentSource: ElementRef;
192
- sourceEllipsis: boolean;
193
- scrollLimit: number;
194
- rcElem: {
195
- offSetTop: number;
196
- BottomPos: number;
197
- };
198
- scrolled: boolean;
199
- pathSet: Set<unknown>;
200
- canShare: boolean;
201
- enableShare: boolean;
202
- rootOrgId: any;
203
- certId: any;
204
- mobile1200: any;
205
- assessmentStrip: any;
206
- learnAdvisoryData: any;
207
- contentCreatorData: any;
208
- private destroySubject$;
209
- timerUnsubscribe: any;
210
- timer: any;
211
- isReleventBtnHovered: boolean;
212
- SAKSHAMAI_ICON_NORMAL: string;
213
- SAKSHAMAI_ICON_LOADER: string;
214
- recommendedCoursesId: string;
215
- feedbackGiven: any;
216
- preAssessmentCompletionStatus: boolean;
217
- fromAITutor: boolean;
218
- languageList: any;
219
- selectedLanguage: any;
220
- languageMapProgress: any;
221
- preAssessmentRequiredFlag: any;
222
- lockCertificate: boolean;
223
- private lastProgressRefreshTime;
224
- private isRefreshingProgress;
225
- handleScroll(): void;
226
- constructor(route: ActivatedRoute, router: Router, contentSvc: WidgetContentService, tocSvc: AppTocService, loggerSvc: LoggerService, configSvc: ConfigurationsService, domSanitizer: DomSanitizer, snackBar: MatSnackBar, dialog: MatDialog, mobileAppsSvc: MobileAppsService, utilitySvc: UtilityService, contentLangSvc: ContentLanguageService, actionSVC: ActionService, viewerSvc: ViewerUtilService, ratingSvc: RatingService, telemetryService: TelemetryService, translate: TranslateService, langtranslations: MultilingualTranslationsService, events: EventService, loadCheckService: LoadCheckService, handleClaimService: HandleClaimService, resetRatingsService: ResetRatingsService, timerService: TimerService, enrollSvc: WidgetEnrollService, contentLibSvc: WidgetContentLibService, dataTransferSvc: DataTransferService, matSnackbarNew: MatSnackbarNew, userServiceLib: WidgetUserServiceLib, netCoreService: NetCoreService, appTocV2Svc: AppTocV2Service, location: Location, environment: any);
227
- getKarmapointsLimit(): void;
228
- isCourseCompletedOnThisMonth(): void;
229
- filteredAcbpList(res: any): any;
230
- findACPB(): void;
231
- raiseTelemeteryForProvider(providerName: string, prividerId: string): void;
232
- raiseTelemetry(): void;
233
- onClickOfClaim(event: any): void;
234
- ngAfterViewInit(): void;
235
- handleBreadcrumbs(): void;
236
- ngAfterViewChecked(): void;
237
- get enableAnalytics(): boolean;
238
- get isResource(): boolean;
239
- get getStartDate(): string;
240
- get isBatchInProgress(): boolean;
241
- getUserRating(fireUpdate: boolean): void;
242
- fetchUserWFForBlended(): void;
243
- checkIfBatchExists(latest: any): false | NsContent.IBatch;
244
- getBatchId(): string;
245
- handleAutoBatchAssign(): void;
246
- autoEnrollLearningPathway(batchData: any): void;
247
- autoEnrollCuratedProgram(programType: any, batchData: any): void;
248
- autoAssignEnroll(): void;
249
- navigateToPlayerPage(batchId: string): Promise<void>;
250
- fetchBatchDetails(): void;
251
- scrollToTop(): void;
252
- getCompetencies(competencies: any): any[];
253
- get showIntranetMsg(): boolean;
254
- get showStart(): {
255
- show: boolean;
256
- msg: string;
257
- };
258
- get isPostAssessment(): boolean;
259
- get isMobile(): boolean;
260
- get showSubtitleOnBanner(): boolean;
261
- handleEnrollmentEndDate(batch: any): boolean;
262
- private openSnackbar;
263
- get showInstructorLedMsg(): boolean;
264
- get isHeaderHidden(): boolean;
265
- get showActionButtons(): boolean;
266
- get showButtonContainer(): boolean;
267
- private getResumeDataFromList;
268
- private modifySensibleContentRating;
269
- private getLearningUrls;
270
- private assignPathAndUpdateBanner;
271
- private updateBannerUrl;
272
- playIntroVideo(): void;
273
- get sanitizedIntroductoryVideoIcon(): SafeStyle;
274
- private fetchExternalContentAccess;
275
- getRatingIcon(ratingIndex: number): 'star' | 'star_border' | 'star_half';
276
- private checkRegistrationStatus;
277
- generateQuery(type: 'RESUME' | 'START_OVER' | 'START'): {
278
- [key: string]: string;
279
- };
280
- get isInIFrame(): boolean;
281
- openFeedbackDialog(content: any): void;
282
- updateProgress(status: number, resourceId: any): void;
283
- getProgramDuration(batchData: any): number | "";
284
- withdrawOrEnroll(data: string): void;
285
- handleCapitalize(str: string, type?: string): string;
286
- handleParseJsonData(s: any): any;
287
- handleNavigateToReviews(): void;
288
- raiseCertIntreactTelemetry(): void;
289
- translateLabels(label: string, type: any): any;
290
- getLastPlayedResource(): void;
291
- expandThePath(resourceId: string): void;
292
- raiseEnrollTelemetry(): void;
293
- raiseEnrollTelementryForSakshamAIGenerated(): void;
294
- onClickOfShare(): void;
295
- raiseTelemetryForShare(subType: any): void;
296
- resetEnableShare(): void;
297
- translateLabel(label: string, type: any): any;
298
- ngOnDestroy(): void;
299
- programEnrollCall(batchData: any): void;
300
- raiseTelemetryForPublic($event: any): boolean;
301
- shouldShowSurveyPopup(): boolean;
302
- checkIfUserEnrolled(): Promise<void>;
303
- bindCompletionPercentage(): void;
304
- handleAcceptRelevent(): void;
305
- handleDeclineRelevent(): void;
306
- contentViewEventForNetCore(eventType: any): void;
307
- secondsToTime(d: any): string;
308
- saveFeedback(comment: string, rating?: number): Promise<void>;
309
- playResumeForAI(): void;
310
- enrollUserToAI(): void;
311
- openSurveyFormPopup(event: boolean): void;
312
- generatePreAssessmentQuery(type: 'RESUME' | 'START_OVER' | 'START'): {
313
- [key: string]: string;
314
- };
315
- routeToPreAssessent(): void;
316
- getPreAssessmentRequired(): void;
317
- getPreAssessmentCompletionStatus(): void;
318
- ngOnInit(): void;
319
- private initData;
320
- private setErrorCode;
321
- private initializeTocStructure;
322
- private setupBatchControlSubscription;
323
- private handleBatchEnrollment;
324
- private handleSuccessfulEnrollment;
325
- private handleEnrollmentFailure;
326
- private loadLearnerAdvisoryData;
327
- private setupSelectedBatchSubscription;
328
- private setChannelId;
329
- private checkIframeContext;
330
- private setupRouteSubscriptions;
331
- private processRouteData;
332
- openCompletionSurveyFormPopup(): void;
333
- openConfirmationDialog(): void;
334
- private loadLanguageData;
335
- private handleContentPreviewOrEnrollment;
336
- private loadContentForPreview;
337
- private loadBannerAndTocConfig;
338
- private fetchPostAssessmentStatusIfNeeded;
339
- private setupFragmentSubscription;
340
- private setupBatchSubscriptions;
341
- private handleBatchUpdate;
342
- private handleBlendedProgramUpdate;
343
- private configureDefaultLogo;
344
- private configureFeatureFlags;
345
- private setupRouterEventSubscription;
346
- /**
347
- * Subscribe to hashmap updates to recompute milestone lock status in real-time
348
- * This ensures that when progress changes, milestone locks update immediately without page refresh
349
- */
350
- private setupHashmapUpdateSubscription;
351
- fetchUserEnrollmentDataV2(): void;
352
- private handleOneStepResume;
353
- private fetchContentHierarchy;
354
- getTocStructure(): void;
355
- /**
356
- * Sync milestone isLocked property with computed locking status from hashmap
357
- * This ensures the content tree reflects the actual lock status
358
- */
359
- syncMilestoneLockStatus(): void;
360
- onLanguageSelect(lang: any): void;
361
- showLangSwitchPopup(lang: any, data?: any): void;
362
- showOneStepResumeConfirm(urlData: any): void;
363
- processLanguageSelection(lang: any): void;
364
- /**
365
- * Fetches content data for a given identifier and updates the contentReadData property
366
- * @param identifier The content identifier to fetch
367
- * @returns Promise that resolves to true if content was fetched successfully, false otherwise
368
- */
369
- private fetchContentRead;
370
- routerChangeHandler(appendBatchId: boolean): void;
371
- private getContinueLearningData;
372
- generateResumeDataLinkNew(): void;
373
- isSelectedInMoreDropdown(): boolean;
374
- getQueryParams(): Promise<any>;
375
- getOrgIdForShare(): void;
376
- /**
377
- * Fetches and processes content creator data from the current content
378
- * - Sets contentCreatorData from parsed creator contacts
379
- * - Determines if "show button" flag should be enabled based on content name
380
- * - Includes proper error handling for null values and parsing
381
- */
382
- getContentCreatorData(): void;
383
- getI18NTranslations(): void;
384
- getServerDateTime(): void;
385
- get getBaseContentIdentifier(): string;
386
- get isMultilingual(): boolean;
387
- handleEnrollment(event: any): void;
388
- openLangDialog(_event: any): void;
389
- getResumeUrl(resourceData: any, batchId?: any, primaryCategory?: any): {
390
- url: string;
391
- queryParams: {
392
- [key: string]: any;
393
- };
394
- };
395
- get contentCompletionPercent(): any;
396
- checkForCompletionSurveyTrigger(): void;
397
- clearExistingPublicSurveyData(surveyId: string, courseId: string): void;
398
- openPublicSurveyPopup(navigationUrl?: string, queryParams?: any): void;
399
- resumeContentData(): void;
400
- /**
401
- * Check if user can enroll in the course
402
- * Returns true when enrollment is allowed
403
- */
404
- canEnroll(): boolean;
405
- goBack(): void;
406
- static ɵfac: i0.ɵɵFactoryDeclaration<AppTocHomeV2Component, never>;
407
- static ɵcmp: i0.ɵɵComponentDeclaration<AppTocHomeV2Component, "ws-app-app-toc-home-v2", never, { "forPreview": { "alias": "forPreview"; "required": false; }; "inputContent": { "alias": "inputContent"; "required": false; }; }, {}, never, never, false, never>;
408
- }
1
+ import { OnDestroy, OnInit, AfterViewInit, AfterViewChecked, ElementRef } from '@angular/core';
2
+ import { Location } from '@angular/common';
3
+ import { SafeHtml, DomSanitizer, SafeStyle } from '@angular/platform-browser';
4
+ import { ActivatedRoute, Router } from '@angular/router';
5
+ import { UntypedFormControl } from '@angular/forms';
6
+ import { TranslateService } from '@ngx-translate/core';
7
+ import { Subscription, Observable } from 'rxjs';
8
+ import { NsContent } from '../../_services/widget-content.model';
9
+ import { WidgetContentService } from '../../_services/widget-content.service';
10
+ import { NsWidgetResolver } from '@sunbird-cb/resolver-v2';
11
+ import { ConfigurationsService, DataTransferService, DomainConfService, EventService, LoggerService, MultilingualTranslationsService, NsPage, TFetchStatus, TelemetryService, UtilityService, WidgetEnrollService } from '@sunbird-cb/utils-v2';
12
+ import { ContentLanguageService, WidgetContentLibService, WidgetUserServiceLib } from '@sunbird-cb/consumption';
13
+ import { NsAppToc } from '../../models/app-toc.model';
14
+ import { AppTocService } from '../../services/app-toc.service';
15
+ import { MobileAppsService } from '../../services/mobile-apps.service';
16
+ import { HandleClaimService } from '../../_collection/_common/content-toc/content-services/handle-claim.service';
17
+ import { ActionService } from '../../services/action.service';
18
+ import { RatingService } from '../../_services/rating.service';
19
+ import { ViewerUtilService } from '../../services/viewer-util.service';
20
+ import { LoadCheckService } from '../../services/load-check.service';
21
+ import { ResetRatingsService } from '../../services/reset-ratings.service';
22
+ import { TimerService } from '../../services/timer.service';
23
+ import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
24
+ import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
25
+ import { MatSnackBar as MatSnackbarNew } from '@angular/material/snack-bar';
26
+ import { NetCoreService } from '../../services/netcore.service';
27
+ import { AppTocV2Service } from '../../services/app-toc-v2.service';
28
+ import * as i0 from "@angular/core";
29
+ export declare enum ErrorType {
30
+ internalServer = "internalServer",
31
+ serviceUnavailable = "serviceUnavailable",
32
+ somethingWrong = "somethingWrong"
33
+ }
34
+ export declare class AppTocHomeV2Component implements OnInit, OnDestroy, AfterViewChecked, AfterViewInit {
35
+ private route;
36
+ private router;
37
+ private contentSvc;
38
+ tocSvc: AppTocService;
39
+ private loggerSvc;
40
+ private configSvc;
41
+ private domSanitizer;
42
+ private snackBar;
43
+ private dialog;
44
+ private mobileAppsSvc;
45
+ private utilitySvc;
46
+ private contentLangSvc;
47
+ private actionSVC;
48
+ private viewerSvc;
49
+ private ratingSvc;
50
+ private telemetryService;
51
+ private translate;
52
+ private langtranslations;
53
+ private events;
54
+ private loadCheckService;
55
+ private handleClaimService;
56
+ private resetRatingsService;
57
+ private timerService;
58
+ enrollSvc: WidgetEnrollService;
59
+ contentLibSvc: WidgetContentLibService;
60
+ dataTransferSvc: DataTransferService;
61
+ private matSnackbarNew;
62
+ private userServiceLib;
63
+ netCoreService: NetCoreService;
64
+ appTocV2Svc: AppTocV2Service;
65
+ private location;
66
+ domainConfSvc: DomainConfService;
67
+ environment: any;
68
+ queryParamsData: {
69
+ [key: string]: string;
70
+ };
71
+ show: boolean;
72
+ changeTab: boolean;
73
+ skeletonLoader: boolean;
74
+ banners: NsAppToc.ITocBanner | null;
75
+ showMoreGlance: boolean;
76
+ content: NsContent.IContent | null;
77
+ contentReadData: NsContent.IContent | null;
78
+ baseContentReadData: NsContent.IContent | null;
79
+ errorCode: NsAppToc.EWsTocErrorCode | null;
80
+ resumeData: any;
81
+ nsCardContentData: any;
82
+ batchData: NsContent.IBatchListResponse | null;
83
+ currentCourseBatchId: string | null;
84
+ userEnrollmentList: NsContent.ICourse[];
85
+ routeSubscription: Subscription | null;
86
+ pageNavbar: Partial<NsPage.INavBackground>;
87
+ isCohortsRestricted: boolean;
88
+ sticky: boolean;
89
+ isInIframe: boolean;
90
+ cbPlanEndDate: any;
91
+ cbPlanDuration: any;
92
+ enrolledCourseData: any;
93
+ forPreview: any;
94
+ inputContent: any;
95
+ displayViewBtn: any;
96
+ analytics: any;
97
+ errorWidgetData: NsWidgetResolver.IRenderConfigWithTypedData<any>;
98
+ isAuthor: boolean;
99
+ authorBtnWidget: NsPage.INavLink;
100
+ tocConfig: any;
101
+ primaryCategory: typeof NsContent.EPrimaryCategory;
102
+ courseCategory: typeof NsContent.ECourseCategory;
103
+ WFBlendedProgramStatus: typeof NsContent.WFBlendedProgramStatus;
104
+ askAuthorEnabled: boolean;
105
+ trainingLHubEnabled: boolean;
106
+ trainingLHubCount$?: Observable<number>;
107
+ body: SafeHtml | null;
108
+ viewMoreRelatedTopics: boolean;
109
+ hasTocStructure: boolean;
110
+ tocStructure: NsAppToc.ITocStructure | null;
111
+ contentParents: {
112
+ [key: string]: NsAppToc.IContentParentResponse[];
113
+ };
114
+ objKeys: {
115
+ (o: object): string[];
116
+ (o: {}): string[];
117
+ };
118
+ fragment: string;
119
+ activeFragment: Observable<string>;
120
+ currentFragment: string;
121
+ showScroll: boolean;
122
+ showScrollHeight: number;
123
+ hideScrollHeight: number;
124
+ elementPosition: any;
125
+ batchSubscription: Subscription | null;
126
+ batchDataSubscription: Subscription | null;
127
+ resumeDataSubscription: Subscription | null;
128
+ translationSubscription: Subscription | null;
129
+ hashmapUpdatedSubscription: Subscription | null;
130
+ menuElement: ElementRef;
131
+ batchControl: UntypedFormControl;
132
+ contentProgress: number;
133
+ bannerUrl: SafeStyle | null;
134
+ routePath: string;
135
+ validPaths: Set<string>;
136
+ routerParamSubscription: Subscription | null;
137
+ initialrouteData: any;
138
+ actionBtnStatus: string;
139
+ isRegistrationSupported: boolean;
140
+ showIntranetMessage: boolean;
141
+ firstResourceLink: {
142
+ url: string;
143
+ queryParams: {
144
+ [key: string]: any;
145
+ };
146
+ } | null;
147
+ resumeDataLink: {
148
+ url: string;
149
+ queryParams: {
150
+ [key: string]: any;
151
+ };
152
+ } | null;
153
+ certData: any;
154
+ showTakeAssessment: NsAppToc.IPostAssessment | null;
155
+ checkRegistrationSources: Set<string>;
156
+ externalContentFetchStatus: TFetchStatus;
157
+ registerForExternal: boolean;
158
+ isGoalsEnabled: boolean;
159
+ contextId?: string;
160
+ contextPath?: string;
161
+ defaultSLogo: string;
162
+ disableEnrollBtn: boolean;
163
+ isAssessVisible: boolean;
164
+ isPracticeVisible: boolean;
165
+ certificateOpen: boolean;
166
+ breadcrumbs: any;
167
+ historyData: any;
168
+ courseCompleteState: number;
169
+ userId: any;
170
+ userRating: any;
171
+ dakshtaName: any;
172
+ cscmsUrl: any;
173
+ showBtn: boolean;
174
+ channelId: any;
175
+ selectedBatchData: any;
176
+ selectedBatchSubscription: any;
177
+ serverDateSubscription: any;
178
+ serverDate: any;
179
+ kparray: any;
180
+ enrollBtnLoading: boolean;
181
+ isAcbpCourse: boolean;
182
+ isAcbpClaim: boolean;
183
+ courseID: any;
184
+ isClaimed: boolean;
185
+ monthlyCapExceed: boolean;
186
+ isCompletedThisMonth: boolean;
187
+ startDate: any;
188
+ endDate: any;
189
+ startDateDifference: any;
190
+ endDateDifference: any;
191
+ rcElement: ElementRef;
192
+ bannerElem: ElementRef;
193
+ contentSource: ElementRef;
194
+ sourceEllipsis: boolean;
195
+ scrollLimit: number;
196
+ rcElem: {
197
+ offSetTop: number;
198
+ BottomPos: number;
199
+ };
200
+ scrolled: boolean;
201
+ pathSet: Set<unknown>;
202
+ canShare: boolean;
203
+ enableShare: boolean;
204
+ rootOrgId: any;
205
+ certId: any;
206
+ mobile1200: any;
207
+ assessmentStrip: any;
208
+ learnAdvisoryData: any;
209
+ contentCreatorData: any;
210
+ private destroySubject$;
211
+ timerUnsubscribe: any;
212
+ timer: any;
213
+ isReleventBtnHovered: boolean;
214
+ SAKSHAMAI_ICON_NORMAL: string;
215
+ SAKSHAMAI_ICON_LOADER: string;
216
+ recommendedCoursesId: string;
217
+ feedbackGiven: any;
218
+ preAssessmentCompletionStatus: boolean;
219
+ fromAITutor: boolean;
220
+ languageList: any;
221
+ selectedLanguage: any;
222
+ languageMapProgress: any;
223
+ preAssessmentRequiredFlag: any;
224
+ lockCertificate: boolean;
225
+ private lastProgressRefreshTime;
226
+ private isRefreshingProgress;
227
+ handleScroll(): void;
228
+ constructor(route: ActivatedRoute, router: Router, contentSvc: WidgetContentService, tocSvc: AppTocService, loggerSvc: LoggerService, configSvc: ConfigurationsService, domSanitizer: DomSanitizer, snackBar: MatSnackBar, dialog: MatDialog, mobileAppsSvc: MobileAppsService, utilitySvc: UtilityService, contentLangSvc: ContentLanguageService, actionSVC: ActionService, viewerSvc: ViewerUtilService, ratingSvc: RatingService, telemetryService: TelemetryService, translate: TranslateService, langtranslations: MultilingualTranslationsService, events: EventService, loadCheckService: LoadCheckService, handleClaimService: HandleClaimService, resetRatingsService: ResetRatingsService, timerService: TimerService, enrollSvc: WidgetEnrollService, contentLibSvc: WidgetContentLibService, dataTransferSvc: DataTransferService, matSnackbarNew: MatSnackbarNew, userServiceLib: WidgetUserServiceLib, netCoreService: NetCoreService, appTocV2Svc: AppTocV2Service, location: Location, domainConfSvc: DomainConfService, environment: any);
229
+ getKarmapointsLimit(): void;
230
+ isCourseCompletedOnThisMonth(): void;
231
+ filteredAcbpList(res: any): any;
232
+ findACPB(): void;
233
+ raiseTelemeteryForProvider(providerName: string, prividerId: string): void;
234
+ raiseTelemetry(): void;
235
+ onClickOfClaim(event: any): void;
236
+ ngAfterViewInit(): void;
237
+ handleBreadcrumbs(): void;
238
+ ngAfterViewChecked(): void;
239
+ get enableAnalytics(): boolean;
240
+ get isResource(): boolean;
241
+ get getStartDate(): string;
242
+ get isBatchInProgress(): boolean;
243
+ getUserRating(fireUpdate: boolean): void;
244
+ fetchUserWFForBlended(): void;
245
+ checkIfBatchExists(latest: any): false | NsContent.IBatch;
246
+ getBatchId(): string;
247
+ handleAutoBatchAssign(): void;
248
+ autoEnrollLearningPathway(batchData: any): void;
249
+ autoEnrollCuratedProgram(programType: any, batchData: any): void;
250
+ autoAssignEnroll(): void;
251
+ navigateToPlayerPage(batchId: string): Promise<void>;
252
+ fetchBatchDetails(): void;
253
+ scrollToTop(): void;
254
+ getCompetencies(competencies: any): any[];
255
+ get showIntranetMsg(): boolean;
256
+ get showStart(): {
257
+ show: boolean;
258
+ msg: string;
259
+ };
260
+ get isPostAssessment(): boolean;
261
+ get isMobile(): boolean;
262
+ get showSubtitleOnBanner(): boolean;
263
+ handleEnrollmentEndDate(batch: any): boolean;
264
+ private openSnackbar;
265
+ get showInstructorLedMsg(): boolean;
266
+ get isHeaderHidden(): boolean;
267
+ get showActionButtons(): boolean;
268
+ get showButtonContainer(): boolean;
269
+ private getResumeDataFromList;
270
+ private modifySensibleContentRating;
271
+ private getLearningUrls;
272
+ private assignPathAndUpdateBanner;
273
+ private updateBannerUrl;
274
+ playIntroVideo(): void;
275
+ get sanitizedIntroductoryVideoIcon(): SafeStyle;
276
+ private fetchExternalContentAccess;
277
+ getRatingIcon(ratingIndex: number): 'star' | 'star_border' | 'star_half';
278
+ private checkRegistrationStatus;
279
+ generateQuery(type: 'RESUME' | 'START_OVER' | 'START'): {
280
+ [key: string]: string;
281
+ };
282
+ get isInIFrame(): boolean;
283
+ openFeedbackDialog(content: any): void;
284
+ updateProgress(status: number, resourceId: any): void;
285
+ getProgramDuration(batchData: any): number | "";
286
+ withdrawOrEnroll(data: string): void;
287
+ handleCapitalize(str: string, type?: string): string;
288
+ handleParseJsonData(s: any): any;
289
+ handleNavigateToReviews(): void;
290
+ raiseCertIntreactTelemetry(): void;
291
+ translateLabels(label: string, type: any): any;
292
+ getLastPlayedResource(): void;
293
+ expandThePath(resourceId: string): void;
294
+ raiseEnrollTelemetry(): void;
295
+ raiseEnrollTelementryForSakshamAIGenerated(): void;
296
+ onClickOfShare(): void;
297
+ raiseTelemetryForShare(subType: any): void;
298
+ resetEnableShare(): void;
299
+ translateLabel(label: string, type: any): any;
300
+ ngOnDestroy(): void;
301
+ programEnrollCall(batchData: any): void;
302
+ raiseTelemetryForPublic($event: any): boolean;
303
+ shouldShowSurveyPopup(): boolean;
304
+ checkIfUserEnrolled(): Promise<void>;
305
+ bindCompletionPercentage(): void;
306
+ handleAcceptRelevent(): void;
307
+ handleDeclineRelevent(): void;
308
+ contentViewEventForNetCore(eventType: any): void;
309
+ secondsToTime(d: any): string;
310
+ saveFeedback(comment: string, rating?: number): Promise<void>;
311
+ playResumeForAI(): void;
312
+ enrollUserToAI(): void;
313
+ openSurveyFormPopup(event: boolean): void;
314
+ generatePreAssessmentQuery(type: 'RESUME' | 'START_OVER' | 'START'): {
315
+ [key: string]: string;
316
+ };
317
+ routeToPreAssessent(): void;
318
+ getPreAssessmentRequired(): void;
319
+ getPreAssessmentCompletionStatus(): void;
320
+ ngOnInit(): void;
321
+ private initData;
322
+ private setErrorCode;
323
+ private initializeTocStructure;
324
+ private setupBatchControlSubscription;
325
+ private handleBatchEnrollment;
326
+ private handleSuccessfulEnrollment;
327
+ private handleEnrollmentFailure;
328
+ private loadLearnerAdvisoryData;
329
+ private setupSelectedBatchSubscription;
330
+ private setChannelId;
331
+ private checkIframeContext;
332
+ private setupRouteSubscriptions;
333
+ private processRouteData;
334
+ openCompletionSurveyFormPopup(): void;
335
+ openConfirmationDialog(): void;
336
+ private loadLanguageData;
337
+ private handleContentPreviewOrEnrollment;
338
+ private loadContentForPreview;
339
+ private loadBannerAndTocConfig;
340
+ private fetchPostAssessmentStatusIfNeeded;
341
+ private setupFragmentSubscription;
342
+ private setupBatchSubscriptions;
343
+ private handleBatchUpdate;
344
+ private handleBlendedProgramUpdate;
345
+ private configureDefaultLogo;
346
+ private configureFeatureFlags;
347
+ private setupRouterEventSubscription;
348
+ /**
349
+ * Subscribe to hashmap updates to recompute milestone lock status in real-time
350
+ * This ensures that when progress changes, milestone locks update immediately without page refresh
351
+ */
352
+ private setupHashmapUpdateSubscription;
353
+ fetchUserEnrollmentDataV2(): void;
354
+ private handleOneStepResume;
355
+ private fetchContentHierarchy;
356
+ getTocStructure(): void;
357
+ /**
358
+ * Sync milestone isLocked property with computed locking status from hashmap
359
+ * This ensures the content tree reflects the actual lock status
360
+ */
361
+ syncMilestoneLockStatus(): void;
362
+ /**
363
+ * Refresh milestone locking status from the already-updated hashmap
364
+ * This method should be called after progress updates to sync UI with computed lock status
365
+ * Note: Does NOT fetch enrollment data - uses existing hashmap which is already updated
366
+ */
367
+ private refreshEnrollmentAndProgress;
368
+ onLanguageSelect(lang: any): void;
369
+ showLangSwitchPopup(lang: any, data?: any): void;
370
+ showOneStepResumeConfirm(urlData: any): void;
371
+ processLanguageSelection(lang: any): void;
372
+ /**
373
+ * Fetches content data for a given identifier and updates the contentReadData property
374
+ * @param identifier The content identifier to fetch
375
+ * @returns Promise that resolves to true if content was fetched successfully, false otherwise
376
+ */
377
+ private fetchContentRead;
378
+ routerChangeHandler(appendBatchId: boolean): void;
379
+ private getContinueLearningData;
380
+ generateResumeDataLinkNew(): void;
381
+ isSelectedInMoreDropdown(): boolean;
382
+ getQueryParams(): Promise<any>;
383
+ getOrgIdForShare(): void;
384
+ /**
385
+ * Fetches and processes content creator data from the current content
386
+ * - Sets contentCreatorData from parsed creator contacts
387
+ * - Determines if "show button" flag should be enabled based on content name
388
+ * - Includes proper error handling for null values and parsing
389
+ */
390
+ getContentCreatorData(): void;
391
+ getI18NTranslations(): void;
392
+ getServerDateTime(): void;
393
+ get getBaseContentIdentifier(): string;
394
+ get isMultilingual(): boolean;
395
+ handleEnrollment(event: any): void;
396
+ openLangDialog(_event: any): void;
397
+ getResumeUrl(resourceData: any, batchId?: any, primaryCategory?: any): {
398
+ url: string;
399
+ queryParams: {
400
+ [key: string]: any;
401
+ };
402
+ };
403
+ get contentCompletionPercent(): any;
404
+ checkForCompletionSurveyTrigger(): void;
405
+ clearExistingPublicSurveyData(surveyId: string, courseId: string): void;
406
+ openPublicSurveyPopup(navigationUrl?: string, queryParams?: any): void;
407
+ resumeContentData(): void;
408
+ /**
409
+ * Check if user can enroll in the course
410
+ * Returns true when enrollment is allowed
411
+ */
412
+ navigateToNewVersion(): void;
413
+ canEnroll(): boolean;
414
+ goBack(): void;
415
+ showBadgeIcon(): boolean;
416
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppTocHomeV2Component, never>;
417
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppTocHomeV2Component, "ws-app-app-toc-home-v2", never, { "forPreview": { "alias": "forPreview"; "required": false; }; "inputContent": { "alias": "inputContent"; "required": false; }; "displayViewBtn": { "alias": "displayViewBtn"; "required": false; }; }, {}, never, never, false, never>;
418
+ }