@sunbird-cb/toc 0.0.7 → 0.0.8-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.
- package/esm2022/lib/_collection/_common/ai-tutor/ai-tutor.component.mjs +1169 -0
- package/esm2022/lib/_collection/_common/ai-tutor/socket.service.mjs +121 -0
- package/esm2022/lib/_collection/_common/card-competency/card-competency.component.mjs +58 -0
- package/esm2022/lib/_collection/_common/card-competency/card-competency.module.mjs +22 -0
- package/esm2022/lib/_collection/_common/card-content-v2/card-content-v2.model.mjs +23 -0
- package/esm2022/lib/_collection/_common/certificate-dialog/certificate-dialog.component.mjs +115 -12
- package/esm2022/lib/_collection/_common/certificate-dialog/certificate-dialog.module.mjs +5 -1
- package/esm2022/lib/_collection/_common/content-toc/ai-tutor-confirm-popup/ai-tutor-confirm-popup.component.mjs +3 -3
- package/esm2022/lib/_collection/_common/content-toc/app-toc-about/app-toc-about.component.mjs +32 -12
- package/esm2022/lib/_collection/_common/content-toc/app-toc-content/app-toc-content.component.mjs +86 -7
- package/esm2022/lib/_collection/_common/content-toc/app-toc-content-card-v2/app-toc-content-card-v2.component.mjs +294 -97
- package/esm2022/lib/_collection/_common/content-toc/content-toc.component.mjs +25 -37
- package/esm2022/lib/_collection/_common/content-toc/content-toc.module.mjs +7 -2
- package/esm2022/lib/_collection/_common/content-toc/karma-points/karma-points.component.mjs +70 -3
- package/esm2022/lib/_collection/_common/toc-kpi-values/toc-kpi-values.component.mjs +3 -3
- package/esm2022/lib/_collection/sliders-dynamic/sliders-dynamic.component.mjs +6 -3
- package/esm2022/lib/_services/viewer-route-util.mjs +2 -2
- package/esm2022/lib/_services/widget-content.model.mjs +8 -1
- package/esm2022/lib/_services/widget-content.service.mjs +8 -8
- package/esm2022/lib/app-toc-lib.module.mjs +16 -7
- package/esm2022/lib/components/app-toc-cios-home/app-toc-cios-home.component.mjs +55 -8
- package/esm2022/lib/components/app-toc-dialog-intro-video/app-toc-dialog-intro-video.component.mjs +3 -3
- package/esm2022/lib/components/app-toc-discussion/app-toc-discussion.component.mjs +3 -3
- package/esm2022/lib/components/app-toc-home/app-toc-home.component.mjs +7 -6
- package/esm2022/lib/components/app-toc-home-v2/app-toc-home-v2.component.mjs +187 -75
- package/esm2022/lib/components/enroll-profile-form/enroll-profile-form.component.mjs +22 -6
- package/esm2022/lib/components/public-survey-form/public-survey-form.component.mjs +5 -3
- package/esm2022/lib/models/user-profile.model.mjs +1 -1
- package/esm2022/lib/registration-toc-lib.config.mjs +14 -0
- package/esm2022/lib/routes/app-toc-home/app-toc-home.component.mjs +1 -1
- package/esm2022/lib/services/app-toc-v2.service.mjs +183 -58
- package/esm2022/lib/services/app-toc.service.mjs +328 -138
- package/esm2022/lib/services/certificate.service.mjs +54 -9
- package/esm2022/lib/services/discuss-utils.service.mjs +30 -43
- package/esm2022/lib/services/netcore.service.mjs +116 -46
- package/esm2022/lib/services/nps-grid.service.mjs +34 -22
- package/esm2022/lib/services/otp.service.mjs +63 -25
- package/esm2022/lib/services/profile-v2.service.mjs +47 -19
- package/esm2022/lib/services/root.service.mjs +106 -0
- package/esm2022/lib/services/user-profile.service.mjs +160 -35
- package/esm2022/lib/services/viewer-data.service.mjs +1 -1
- package/esm2022/lib/services/viewer-util.service.mjs +159 -32
- package/esm2022/public-api.mjs +12 -1
- package/fesm2022/sunbird-cb-toc.mjs +9619 -6783
- package/fesm2022/sunbird-cb-toc.mjs.map +1 -1
- package/lib/_collection/_common/ai-tutor/ai-tutor.component.d.ts +139 -0
- package/lib/_collection/_common/ai-tutor/socket.service.d.ts +19 -0
- package/lib/_collection/_common/card-competency/card-competency.component.d.ts +14 -0
- package/lib/_collection/_common/card-competency/card-competency.module.d.ts +8 -0
- package/lib/_collection/_common/card-content-v2/card-content-v2.model.d.ts +44 -0
- package/lib/_collection/_common/certificate-dialog/certificate-dialog.component.d.ts +11 -2
- package/lib/_collection/_common/certificate-dialog/certificate-dialog.module.d.ts +12 -11
- package/lib/_collection/_common/content-toc/ai-tutor-confirm-popup/ai-tutor-confirm-popup.component.d.ts +1 -1
- package/lib/_collection/_common/content-toc/app-toc-about/app-toc-about.component.d.ts +7 -3
- package/lib/_collection/_common/content-toc/app-toc-content/app-toc-content.component.d.ts +8 -0
- package/lib/_collection/_common/content-toc/app-toc-content-card-v2/app-toc-content-card-v2.component.d.ts +48 -7
- package/lib/_collection/_common/content-toc/content-toc.component.d.ts +6 -3
- package/lib/_collection/_common/content-toc/content-toc.module.d.ts +29 -28
- package/lib/_collection/_common/content-toc/karma-points/karma-points.component.d.ts +4 -1
- package/lib/_collection/sliders-dynamic/sliders-dynamic.component.d.ts +2 -1
- package/lib/_services/widget-content.model.d.ts +6 -0
- package/lib/app-toc-lib.module.d.ts +2 -1
- package/lib/components/app-toc-cios-home/app-toc-cios-home.component.d.ts +5 -0
- package/lib/components/app-toc-home/app-toc-home.component.d.ts +3 -2
- package/lib/components/app-toc-home-v2/app-toc-home-v2.component.d.ts +13 -3
- package/lib/components/enroll-profile-form/enroll-profile-form.component.d.ts +2 -0
- package/lib/components/public-survey-form/public-survey-form.component.d.ts +1 -0
- package/lib/models/user-profile.model.d.ts +87 -0
- package/lib/registration-toc-lib.config.d.ts +4 -0
- package/lib/services/app-toc-v2.service.d.ts +3 -0
- package/lib/services/app-toc.service.d.ts +30 -17
- package/lib/services/certificate.service.d.ts +5 -6
- package/lib/services/discuss-utils.service.d.ts +5 -27
- package/lib/services/netcore.service.d.ts +16 -28
- package/lib/services/nps-grid.service.d.ts +11 -10
- package/lib/services/otp.service.d.ts +5 -10
- package/lib/services/profile-v2.service.d.ts +7 -10
- package/lib/services/root.service.d.ts +26 -0
- package/lib/services/user-profile.service.d.ts +35 -15
- package/lib/services/viewer-data.service.d.ts +9 -5
- package/lib/services/viewer-util.service.d.ts +14 -0
- package/package.json +3 -3
- package/public-api.d.ts +10 -0
- package/sunbird-cb-toc-0.0.8-mauritius.tgz +0 -0
|
@@ -17,35 +17,36 @@ import * as i15 from "./app-toc-batch-assignments/app-toc-batch-assignments.comp
|
|
|
17
17
|
import * as i16 from "./app-toc-assignment-viewer/app-toc-assignment-viewer.component";
|
|
18
18
|
import * as i17 from "./app-toc-assignment-viewerV2/app-toc-assignment-viewerV2.component";
|
|
19
19
|
import * as i18 from "./samuhik-charcha-content/samuhik-charcha-content/samuhik-charcha-content.component";
|
|
20
|
-
import * as i19 from "
|
|
21
|
-
import * as i20 from "@angular/
|
|
22
|
-
import * as i21 from "@angular/
|
|
23
|
-
import * as i22 from "@angular/
|
|
24
|
-
import * as i23 from "@angular/material/
|
|
25
|
-
import * as i24 from "@angular/material/
|
|
26
|
-
import * as i25 from "@angular/material/
|
|
27
|
-
import * as i26 from "@angular/material/
|
|
28
|
-
import * as i27 from "@angular/material/
|
|
29
|
-
import * as i28 from "@angular/material/
|
|
30
|
-
import * as i29 from "@angular/material/
|
|
31
|
-
import * as i30 from "
|
|
32
|
-
import * as i31 from "../
|
|
33
|
-
import * as i32 from "../
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "
|
|
36
|
-
import * as i35 from "
|
|
37
|
-
import * as i36 from "
|
|
38
|
-
import * as i37 from "
|
|
39
|
-
import * as i38 from "
|
|
40
|
-
import * as i39 from "
|
|
41
|
-
import * as i40 from "
|
|
42
|
-
import * as i41 from "
|
|
43
|
-
import * as i42 from "
|
|
44
|
-
import * as i43 from "@
|
|
45
|
-
import * as i44 from "@sunbird-cb/
|
|
46
|
-
import * as i45 from "@
|
|
20
|
+
import * as i19 from "../ai-tutor/ai-tutor.component";
|
|
21
|
+
import * as i20 from "@angular/common";
|
|
22
|
+
import * as i21 from "@angular/router";
|
|
23
|
+
import * as i22 from "@angular/forms";
|
|
24
|
+
import * as i23 from "@angular/material/icon";
|
|
25
|
+
import * as i24 from "@angular/material/tabs";
|
|
26
|
+
import * as i25 from "@angular/material/radio";
|
|
27
|
+
import * as i26 from "@angular/material/progress-bar";
|
|
28
|
+
import * as i27 from "@angular/material/expansion";
|
|
29
|
+
import * as i28 from "@angular/material/menu";
|
|
30
|
+
import * as i29 from "@angular/material/progress-spinner";
|
|
31
|
+
import * as i30 from "@angular/material/snack-bar";
|
|
32
|
+
import * as i31 from "../skeleton-loader/skeleton-loader.module";
|
|
33
|
+
import * as i32 from "../avatar-photo/avatar-photo.module";
|
|
34
|
+
import * as i33 from "../rating-summary/rating-summary.module";
|
|
35
|
+
import * as i34 from "@sunbird-cb/utils-v2";
|
|
36
|
+
import * as i35 from "../content-progress/content-progress.module";
|
|
37
|
+
import * as i36 from "ng-circle-progress";
|
|
38
|
+
import * as i37 from "ngx-infinite-scroll";
|
|
39
|
+
import * as i38 from "@sunbird-cb/resolver-v2";
|
|
40
|
+
import * as i39 from "../attendance-card/attendance-card.module";
|
|
41
|
+
import * as i40 from "@angular/material/legacy-tooltip";
|
|
42
|
+
import * as i41 from "../toc-kpi-values/toc-kpi-values.module";
|
|
43
|
+
import * as i42 from "./karma-points/karma-points.module";
|
|
44
|
+
import * as i43 from "@ngx-translate/core";
|
|
45
|
+
import * as i44 from "@sunbird-cb/consumption";
|
|
46
|
+
import * as i45 from "@sunbird-cb/discussion-v2";
|
|
47
|
+
import * as i46 from "@angular/material/select";
|
|
47
48
|
export declare class ContentTocModule {
|
|
48
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContentTocModule, never>;
|
|
49
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ContentTocModule, [typeof i1.ContentTocComponent, typeof i2.AppTocAboutComponent, typeof i3.AppTocContentComponent, typeof i4.AppTocTeachersNotesComponent, typeof i5.AppTocReferenceNotesComponent, typeof i6.AppTocContentCardV2Component, typeof i7.ReviewsContentComponent, typeof i8.AppTocSessionCardNewComponent, typeof i9.AppTocSessionsNewComponent, typeof i10.AppTocContentCardV2SkeletonComponent, typeof i11.TruncatePipe, typeof i12.ReplaceNbspPipe, typeof i13.AiTutorConfirmPopupComponent, typeof i14.HighlightPipe, typeof i15.AppTocBatchAssignmentsComponent, typeof i16.AssignmentViewerComponent, typeof i17.AssignmentViewerV2Component, typeof i18.SamuhikCharchaContentComponent], [typeof
|
|
50
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ContentTocModule, [typeof i1.ContentTocComponent, typeof i2.AppTocAboutComponent, typeof i3.AppTocContentComponent, typeof i4.AppTocTeachersNotesComponent, typeof i5.AppTocReferenceNotesComponent, typeof i6.AppTocContentCardV2Component, typeof i7.ReviewsContentComponent, typeof i8.AppTocSessionCardNewComponent, typeof i9.AppTocSessionsNewComponent, typeof i10.AppTocContentCardV2SkeletonComponent, typeof i11.TruncatePipe, typeof i12.ReplaceNbspPipe, typeof i13.AiTutorConfirmPopupComponent, typeof i14.HighlightPipe, typeof i15.AppTocBatchAssignmentsComponent, typeof i16.AssignmentViewerComponent, typeof i17.AssignmentViewerV2Component, typeof i18.SamuhikCharchaContentComponent, typeof i19.AiTutorComponent, typeof i13.AiTutorConfirmPopupComponent], [typeof i20.CommonModule, typeof i21.RouterModule, typeof i22.FormsModule, typeof i23.MatIconModule, typeof i24.MatTabsModule, typeof i25.MatRadioModule, typeof i26.MatProgressBarModule, typeof i27.MatExpansionModule, typeof i28.MatMenuModule, typeof i29.MatProgressSpinnerModule, typeof i30.MatSnackBarModule, typeof i31.SkeletonLoaderModule, typeof i32.AvatarPhotoModule, typeof i33.RatingSummaryModule, typeof i34.PipeDurationTransformModule, typeof i35.ContentProgressModule, typeof i36.NgCircleProgressModule, typeof i34.PipeRelativeTimeModule, typeof i37.InfiniteScrollModule, typeof i34.HorizontalScrollerV2Module, typeof i38.SbUiResolverModule, typeof i39.AttendanceCardModule, typeof i40.MatLegacyTooltipModule, typeof i41.TocKpiValuesModule, typeof i42.KarmaPointsModule, typeof i43.TranslateModule, typeof i44.DialogComponentsModule, typeof i43.TranslateModule, typeof i34.PipeSafeSanitizerModule, typeof i45.WidgetCommentModule, typeof i46.MatSelectModule, typeof i44.ContentStripWithTabsPillsModule, typeof i44.ContentStripWithTabsLibModule], [typeof i1.ContentTocComponent, typeof i2.AppTocAboutComponent, typeof i3.AppTocContentComponent, typeof i4.AppTocTeachersNotesComponent, typeof i7.ReviewsContentComponent, typeof i15.AppTocBatchAssignmentsComponent]>;
|
|
50
51
|
static ɵinj: i0.ɵɵInjectorDeclaration<ContentTocModule>;
|
|
51
52
|
}
|
|
@@ -11,6 +11,7 @@ export declare class KarmaPointsComponent implements OnInit, OnChanges {
|
|
|
11
11
|
data: any;
|
|
12
12
|
pCategory: string;
|
|
13
13
|
condition: any;
|
|
14
|
+
baseContentReadData: any;
|
|
14
15
|
clickClaimKarmaPoints: EventEmitter<string>;
|
|
15
16
|
kpData: any;
|
|
16
17
|
btnCategory: string;
|
|
@@ -20,10 +21,12 @@ export declare class KarmaPointsComponent implements OnInit, OnChanges {
|
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
ngOnChanges(changes: SimpleChanges): void;
|
|
22
23
|
getKPData(btnType: string): void;
|
|
24
|
+
addBadgeSlide(): void;
|
|
23
25
|
onClickOfClaim(): void;
|
|
24
26
|
constructNudgeData(): void;
|
|
25
27
|
getDynamicText(helText: string): string;
|
|
26
28
|
translateLabels(label: string, type: any): any;
|
|
29
|
+
private getQuickLearnerBadgeText;
|
|
27
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<KarmaPointsComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KarmaPointsComponent, "ws-widget-karma-points", never, { "content": { "alias": "content"; "required": false; }; "data": { "alias": "data"; "required": false; }; "pCategory": { "alias": "pCategory"; "required": false; }; "condition": { "alias": "condition"; "required": false; }; "btnCategory": { "alias": "btnCategory"; "required": false; }; }, { "clickClaimKarmaPoints": "clickClaimKarmaPoints"; }, never, never, false, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KarmaPointsComponent, "ws-widget-karma-points", never, { "content": { "alias": "content"; "required": false; }; "data": { "alias": "data"; "required": false; }; "pCategory": { "alias": "pCategory"; "required": false; }; "condition": { "alias": "condition"; "required": false; }; "baseContentReadData": { "alias": "baseContentReadData"; "required": false; }; "btnCategory": { "alias": "btnCategory"; "required": false; }; }, { "clickClaimKarmaPoints": "clickClaimKarmaPoints"; }, never, never, false, never>;
|
|
29
32
|
}
|
|
@@ -9,6 +9,7 @@ export declare class SlidersDynamicComponent implements OnInit {
|
|
|
9
9
|
private translate;
|
|
10
10
|
private langTranslations;
|
|
11
11
|
widgetData: ICarousel;
|
|
12
|
+
baseContentReadData: any;
|
|
12
13
|
id: string;
|
|
13
14
|
currentIndex: number;
|
|
14
15
|
slideInterval: Subscription | null;
|
|
@@ -21,5 +22,5 @@ export declare class SlidersDynamicComponent implements OnInit {
|
|
|
21
22
|
raiseTelemetry(bannerUrl: string | undefined): void;
|
|
22
23
|
translateLabels(label: string, type: any): any;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlidersDynamicComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlidersDynamicComponent, "ws-widget-sliders-dynamic", never, { "widgetData": { "alias": "widgetData"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlidersDynamicComponent, "ws-widget-sliders-dynamic", never, { "widgetData": { "alias": "widgetData"; "required": false; }; "baseContentReadData": { "alias": "baseContentReadData"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
26
|
}
|
|
@@ -511,5 +511,11 @@ export declare namespace NsContent {
|
|
|
511
511
|
export enum EContextLockingType {
|
|
512
512
|
COURSE_ASSESSMENT_ONLY = "Course Assessment Only"
|
|
513
513
|
}
|
|
514
|
+
export enum EAssessmentContextCategory {
|
|
515
|
+
PRELIMINARY_ASSESSMENT = "Preliminary Assessment",
|
|
516
|
+
FINAL_MILESTONE_ASSESSMENT = "Final Milestone Assessment",
|
|
517
|
+
FINAL_PROGRAM_ASSESSMENT = "Final Program Assessment",
|
|
518
|
+
PRE_ENROLMENT_ASSESSMENT = "Pre Enrolment Assessment"
|
|
519
|
+
}
|
|
514
520
|
export {};
|
|
515
521
|
}
|
|
@@ -81,8 +81,9 @@ import * as i79 from "./_collection/_common/tips-for-learner/tips-for-learner.mo
|
|
|
81
81
|
import * as i80 from "@sunbird-cb/discussion-v2";
|
|
82
82
|
import * as i81 from "./components/survey-form-question/survey-form-question.component";
|
|
83
83
|
import * as i82 from "./components/survey-form-section/survey-form-section.component";
|
|
84
|
+
import * as i83 from "./_collection/sliders-dynamic/sliders-dynamic.module";
|
|
84
85
|
export declare class AppTocLibModule {
|
|
85
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppTocLibModule, never>;
|
|
86
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AppTocLibModule, [typeof i1.AppTocHomeV2Component, typeof i2.AppTocOverviewComponent, typeof i3.AppTocBannerComponent, typeof i4.AppTocCohortsComponent, typeof i5.AppTocContentCardComponent, typeof i6.AppTocDiscussionComponent, typeof i7.AppTocDialogIntroVideoComponent, typeof i8.AppTocHomeDirective, typeof i9.AppTocHomeComponent, typeof i10.KnowledgeArtifactDetailsComponent, typeof i11.AppTocAnalyticsTilesComponent, typeof i12.AppTocSinglePageComponent, typeof i13.CreateBatchDialogComponent, typeof i14.AppTocSessionsComponent, typeof i15.AppTocSessionCardComponent, typeof i16.EnrollQuestionnaireComponent, typeof i17.EnrollProfileFormComponent, typeof i18.AppTocCiosHomeComponent, typeof i19.ConsentDialogComponent, typeof i20.EnrollLanguageDialogueComponent, typeof i21.CompletionSurveyFormComponent, typeof i22.PublicSurveyFormComponent, typeof i23.NonReleventFeedbackDialogComponent], [typeof i24.CommonModule, typeof i25.RouterModule, typeof i26.ReactiveFormsModule, typeof i26.FormsModule, typeof i27.MatToolbarModule, typeof i28.MatLegacyCheckboxModule, typeof i29.MatIconModule, typeof i30.MatLegacyButtonModule, typeof i31.MatLegacyFormFieldModule, typeof i32.MatLegacyInputModule, typeof i33.MatLegacyMenuModule, typeof i34.MatLegacyCardModule, typeof i35.MatLegacyChipsModule, typeof i36.MatLegacyTooltipModule, typeof i37.MatLegacyRadioModule, typeof i38.MatLegacyTabsModule, typeof i26.FormsModule, typeof i34.MatLegacyCardModule, typeof i39.MatLegacyListModule, typeof i40.MatDividerModule, typeof i41.MatLegacyProgressBarModule, typeof i42.MatLegacyProgressSpinnerModule, typeof i43.MatLegacyDialogModule, typeof i44.MatLegacySelectModule, typeof i45.MatLegacySnackBarModule, typeof i46.MatExpansionModule, typeof i47.MatDatepickerModule, typeof i35.MatLegacyChipsModule, typeof i48.MatNativeDateModule, typeof i49.DisplayContentTypeModule, typeof i50.DisplayContentTypeIconModule, typeof i51.PipeDurationTransformModule, typeof i51.PipeSafeSanitizerModule, typeof i51.PipeLimitToModule, typeof i51.PipeNameTransformModule, typeof i51.PipeCountTransformModule, typeof i51.PipePartialContentModule, typeof i51.PipeFilterV3Module, typeof i51.PipeRelativeTimeModule, typeof i52.PipeContentRouteModule, typeof i51.PipePublicURLModule, typeof i53.ContentRatingV2DialogModule, typeof i54.RatingSummaryModule, typeof i55.CertificateDialogModule, typeof i56.ConfirmDialogModule, typeof i57.SkeletonLoaderModule, typeof i58.BtnPageBackModule, typeof i51.HorizontalScrollerModule, typeof i59.UserImageModule, typeof i51.DefaultThumbnailModule, typeof i60.ContentProgressModule, typeof i61.UserContentRatingModule, typeof i62.MarkAsCompleteModule, typeof i63.PlayerBriefModule, typeof i42.MatLegacyProgressSpinnerModule, typeof i64.UserAutocompleteModule, typeof i65.AvatarPhotoModule, typeof i66.ConnectionNameModule, typeof i67.CardRatingCommentModule, typeof i68.InfiniteScrollModule, typeof i69.AttendanceHelperModule, typeof i70.AttendanceCardModule, typeof i71.MicroSurveyModule, typeof i35.MatLegacyChipsModule, typeof i72.MatLegacyAutocompleteModule, typeof i73.ContentTocModule, typeof i74.NgCircleProgressModule, typeof i75.TranslateModule, typeof i76.ShareTocModule, typeof i77.TocKpiValuesModule, typeof i78.KarmaPointsModule, typeof i79.TipsForLearnerModule, typeof i26.ReactiveFormsModule, typeof i80.WidgetCommentModule, typeof i81.SurveyFormQuestionComponent, typeof i82.SurveyFormSectionComponent], [typeof i6.AppTocDiscussionComponent, typeof i12.AppTocSinglePageComponent, typeof i3.AppTocBannerComponent, typeof i9.AppTocHomeComponent, typeof i1.AppTocHomeV2Component, typeof i76.ShareTocModule, typeof i18.AppTocCiosHomeComponent]>;
|
|
87
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppTocLibModule, [typeof i1.AppTocHomeV2Component, typeof i2.AppTocOverviewComponent, typeof i3.AppTocBannerComponent, typeof i4.AppTocCohortsComponent, typeof i5.AppTocContentCardComponent, typeof i6.AppTocDiscussionComponent, typeof i7.AppTocDialogIntroVideoComponent, typeof i8.AppTocHomeDirective, typeof i9.AppTocHomeComponent, typeof i10.KnowledgeArtifactDetailsComponent, typeof i11.AppTocAnalyticsTilesComponent, typeof i12.AppTocSinglePageComponent, typeof i13.CreateBatchDialogComponent, typeof i14.AppTocSessionsComponent, typeof i15.AppTocSessionCardComponent, typeof i16.EnrollQuestionnaireComponent, typeof i17.EnrollProfileFormComponent, typeof i18.AppTocCiosHomeComponent, typeof i19.ConsentDialogComponent, typeof i20.EnrollLanguageDialogueComponent, typeof i21.CompletionSurveyFormComponent, typeof i22.PublicSurveyFormComponent, typeof i23.NonReleventFeedbackDialogComponent], [typeof i24.CommonModule, typeof i25.RouterModule, typeof i26.ReactiveFormsModule, typeof i26.FormsModule, typeof i27.MatToolbarModule, typeof i28.MatLegacyCheckboxModule, typeof i29.MatIconModule, typeof i30.MatLegacyButtonModule, typeof i31.MatLegacyFormFieldModule, typeof i32.MatLegacyInputModule, typeof i33.MatLegacyMenuModule, typeof i34.MatLegacyCardModule, typeof i35.MatLegacyChipsModule, typeof i36.MatLegacyTooltipModule, typeof i37.MatLegacyRadioModule, typeof i38.MatLegacyTabsModule, typeof i26.FormsModule, typeof i34.MatLegacyCardModule, typeof i39.MatLegacyListModule, typeof i40.MatDividerModule, typeof i41.MatLegacyProgressBarModule, typeof i42.MatLegacyProgressSpinnerModule, typeof i43.MatLegacyDialogModule, typeof i44.MatLegacySelectModule, typeof i45.MatLegacySnackBarModule, typeof i46.MatExpansionModule, typeof i47.MatDatepickerModule, typeof i35.MatLegacyChipsModule, typeof i48.MatNativeDateModule, typeof i49.DisplayContentTypeModule, typeof i50.DisplayContentTypeIconModule, typeof i51.PipeDurationTransformModule, typeof i51.PipeSafeSanitizerModule, typeof i51.PipeLimitToModule, typeof i51.PipeNameTransformModule, typeof i51.PipeCountTransformModule, typeof i51.PipePartialContentModule, typeof i51.PipeFilterV3Module, typeof i51.PipeRelativeTimeModule, typeof i52.PipeContentRouteModule, typeof i51.PipePublicURLModule, typeof i53.ContentRatingV2DialogModule, typeof i54.RatingSummaryModule, typeof i55.CertificateDialogModule, typeof i56.ConfirmDialogModule, typeof i57.SkeletonLoaderModule, typeof i58.BtnPageBackModule, typeof i51.HorizontalScrollerModule, typeof i59.UserImageModule, typeof i51.DefaultThumbnailModule, typeof i60.ContentProgressModule, typeof i61.UserContentRatingModule, typeof i62.MarkAsCompleteModule, typeof i63.PlayerBriefModule, typeof i42.MatLegacyProgressSpinnerModule, typeof i64.UserAutocompleteModule, typeof i65.AvatarPhotoModule, typeof i66.ConnectionNameModule, typeof i67.CardRatingCommentModule, typeof i68.InfiniteScrollModule, typeof i69.AttendanceHelperModule, typeof i70.AttendanceCardModule, typeof i71.MicroSurveyModule, typeof i35.MatLegacyChipsModule, typeof i72.MatLegacyAutocompleteModule, typeof i73.ContentTocModule, typeof i74.NgCircleProgressModule, typeof i75.TranslateModule, typeof i76.ShareTocModule, typeof i77.TocKpiValuesModule, typeof i78.KarmaPointsModule, typeof i79.TipsForLearnerModule, typeof i26.ReactiveFormsModule, typeof i80.WidgetCommentModule, typeof i81.SurveyFormQuestionComponent, typeof i82.SurveyFormSectionComponent, typeof i83.SlidersDynamicModule], [typeof i6.AppTocDiscussionComponent, typeof i12.AppTocSinglePageComponent, typeof i3.AppTocBannerComponent, typeof i9.AppTocHomeComponent, typeof i1.AppTocHomeV2Component, typeof i76.ShareTocModule, typeof i18.AppTocCiosHomeComponent]>;
|
|
87
88
|
static ɵinj: i0.ɵɵInjectorDeclaration<AppTocLibModule>;
|
|
88
89
|
}
|
|
@@ -48,6 +48,8 @@ export declare class AppTocCiosHomeComponent implements OnInit, AfterViewInit {
|
|
|
48
48
|
rootOrgId: any;
|
|
49
49
|
currentLang: any;
|
|
50
50
|
discussWidgetData: NsDiscussionV2.ICommentWidgetData;
|
|
51
|
+
showProviderTips: boolean;
|
|
52
|
+
fromMDO: boolean;
|
|
51
53
|
handleScroll(): void;
|
|
52
54
|
constructor(route: ActivatedRoute, commonSvc: CommonMethodsService, translate: TranslateService, configSvc: ConfigurationsService, events: EventService, langtranslations: MultilingualTranslationsService, contentSvc: WidgetContentService, certSvc: CertificateService, loader: LoaderService, matDialog: MatDialog, snackBar: MatSnackBar, netCoreService: NetCoreService, environment: any);
|
|
53
55
|
ngOnInit(): void;
|
|
@@ -73,6 +75,9 @@ export declare class AppTocCiosHomeComponent implements OnInit, AfterViewInit {
|
|
|
73
75
|
secondsToTime(d: any): string;
|
|
74
76
|
clearCommentIdFromUrl(): void;
|
|
75
77
|
private validateEnrollmentEligibility;
|
|
78
|
+
showBadgeIcon(): boolean;
|
|
79
|
+
get showEnroll(): boolean;
|
|
80
|
+
get showRedirect(): boolean;
|
|
76
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppTocCiosHomeComponent, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
77
82
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppTocCiosHomeComponent, "ws-app-app-toc-cios-home", never, {}, {}, never, never, false, never>;
|
|
78
83
|
}
|
|
@@ -7,7 +7,7 @@ import { Subscription, Observable } from 'rxjs';
|
|
|
7
7
|
import { NsContent } from '../../_services/widget-content.model';
|
|
8
8
|
import { WidgetContentService } from '../../_services/widget-content.service';
|
|
9
9
|
import { NsWidgetResolver } from '@sunbird-cb/resolver-v2';
|
|
10
|
-
import { ConfigurationsService, DataTransferService, EventService, LoggerService, MultilingualTranslationsService, NsPage, TFetchStatus, TelemetryService, UtilityService, WidgetEnrollService } from '@sunbird-cb/utils-v2';
|
|
10
|
+
import { ConfigurationsService, DataTransferService, DomainConfService, EventService, LoggerService, MultilingualTranslationsService, NsPage, TFetchStatus, TelemetryService, UtilityService, WidgetEnrollService } from '@sunbird-cb/utils-v2';
|
|
11
11
|
import { WidgetContentLibService, WidgetUserServiceLib } from '@sunbird-cb/consumption';
|
|
12
12
|
import { NsAppToc } from '../../models/app-toc.model';
|
|
13
13
|
import { AppTocService } from '../../services/app-toc.service';
|
|
@@ -63,6 +63,7 @@ export declare class AppTocHomeComponent implements OnInit, OnDestroy, AfterView
|
|
|
63
63
|
private matSnackbarNew;
|
|
64
64
|
private userServiceLib;
|
|
65
65
|
netCoreService: NetCoreService;
|
|
66
|
+
domainConfService: DomainConfService;
|
|
66
67
|
show: boolean;
|
|
67
68
|
changeTab: boolean;
|
|
68
69
|
skeletonLoader: boolean;
|
|
@@ -215,7 +216,7 @@ export declare class AppTocHomeComponent implements OnInit, OnDestroy, AfterView
|
|
|
215
216
|
value: string;
|
|
216
217
|
}[];
|
|
217
218
|
handleScroll(): void;
|
|
218
|
-
constructor(route: ActivatedRoute, router: Router, contentSvc: WidgetContentService, tocSvc: AppTocService, loggerSvc: LoggerService, configSvc: ConfigurationsService, domSanitizer: DomSanitizer, authAccessControlSvc: AccessControlService, snackBar: MatSnackBar, dialog: MatDialog, mobileAppsSvc: MobileAppsService, utilitySvc: UtilityService, actionSVC: ActionService, viewerSvc: ViewerUtilService, ratingSvc: RatingService, telemetryService: TelemetryService, translate: TranslateService, langtranslations: MultilingualTranslationsService, events: EventService, matSnackBar: MatSnackBar, loadCheckService: LoadCheckService, handleClaimService: HandleClaimService, resetRatingsService: ResetRatingsService, timerService: TimerService, enrollSvc: WidgetEnrollService, contentLibSvc: WidgetContentLibService, dataTransferSvc: DataTransferService, matSnackbarNew: MatSnackbarNew, userServiceLib: WidgetUserServiceLib, netCoreService: NetCoreService, environment: any);
|
|
219
|
+
constructor(route: ActivatedRoute, router: Router, contentSvc: WidgetContentService, tocSvc: AppTocService, loggerSvc: LoggerService, configSvc: ConfigurationsService, domSanitizer: DomSanitizer, authAccessControlSvc: AccessControlService, snackBar: MatSnackBar, dialog: MatDialog, mobileAppsSvc: MobileAppsService, utilitySvc: UtilityService, actionSVC: ActionService, viewerSvc: ViewerUtilService, ratingSvc: RatingService, telemetryService: TelemetryService, translate: TranslateService, langtranslations: MultilingualTranslationsService, events: EventService, matSnackBar: MatSnackBar, loadCheckService: LoadCheckService, handleClaimService: HandleClaimService, resetRatingsService: ResetRatingsService, timerService: TimerService, enrollSvc: WidgetEnrollService, contentLibSvc: WidgetContentLibService, dataTransferSvc: DataTransferService, matSnackbarNew: MatSnackbarNew, userServiceLib: WidgetUserServiceLib, netCoreService: NetCoreService, domainConfService: DomainConfService, environment: any);
|
|
219
220
|
ngOnInit(): void;
|
|
220
221
|
getKarmapointsLimit(): void;
|
|
221
222
|
isCourseCompletedOnThisMonth(): void;
|
|
@@ -8,7 +8,7 @@ import { Subscription, Observable } from 'rxjs';
|
|
|
8
8
|
import { NsContent } from '../../_services/widget-content.model';
|
|
9
9
|
import { WidgetContentService } from '../../_services/widget-content.service';
|
|
10
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';
|
|
11
|
+
import { ConfigurationsService, DataTransferService, DomainConfService, EventService, LoggerService, MultilingualTranslationsService, NsPage, TFetchStatus, TelemetryService, UtilityService, WidgetEnrollService } from '@sunbird-cb/utils-v2';
|
|
12
12
|
import { ContentLanguageService, WidgetContentLibService, WidgetUserServiceLib } from '@sunbird-cb/consumption';
|
|
13
13
|
import { NsAppToc } from '../../models/app-toc.model';
|
|
14
14
|
import { AppTocService } from '../../services/app-toc.service';
|
|
@@ -63,6 +63,7 @@ export declare class AppTocHomeV2Component implements OnInit, OnDestroy, AfterVi
|
|
|
63
63
|
netCoreService: NetCoreService;
|
|
64
64
|
appTocV2Svc: AppTocV2Service;
|
|
65
65
|
private location;
|
|
66
|
+
domainConfSvc: DomainConfService;
|
|
66
67
|
environment: any;
|
|
67
68
|
queryParamsData: {
|
|
68
69
|
[key: string]: string;
|
|
@@ -91,6 +92,7 @@ export declare class AppTocHomeV2Component implements OnInit, OnDestroy, AfterVi
|
|
|
91
92
|
enrolledCourseData: any;
|
|
92
93
|
forPreview: any;
|
|
93
94
|
inputContent: any;
|
|
95
|
+
displayViewBtn: any;
|
|
94
96
|
analytics: any;
|
|
95
97
|
errorWidgetData: NsWidgetResolver.IRenderConfigWithTypedData<any>;
|
|
96
98
|
isAuthor: boolean;
|
|
@@ -223,7 +225,7 @@ export declare class AppTocHomeV2Component implements OnInit, OnDestroy, AfterVi
|
|
|
223
225
|
private lastProgressRefreshTime;
|
|
224
226
|
private isRefreshingProgress;
|
|
225
227
|
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);
|
|
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);
|
|
227
229
|
getKarmapointsLimit(): void;
|
|
228
230
|
isCourseCompletedOnThisMonth(): void;
|
|
229
231
|
filteredAcbpList(res: any): any;
|
|
@@ -357,6 +359,12 @@ export declare class AppTocHomeV2Component implements OnInit, OnDestroy, AfterVi
|
|
|
357
359
|
* This ensures the content tree reflects the actual lock status
|
|
358
360
|
*/
|
|
359
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;
|
|
360
368
|
onLanguageSelect(lang: any): void;
|
|
361
369
|
showLangSwitchPopup(lang: any, data?: any): void;
|
|
362
370
|
showOneStepResumeConfirm(urlData: any): void;
|
|
@@ -401,8 +409,10 @@ export declare class AppTocHomeV2Component implements OnInit, OnDestroy, AfterVi
|
|
|
401
409
|
* Check if user can enroll in the course
|
|
402
410
|
* Returns true when enrollment is allowed
|
|
403
411
|
*/
|
|
412
|
+
navigateToNewVersion(): void;
|
|
404
413
|
canEnroll(): boolean;
|
|
405
414
|
goBack(): void;
|
|
415
|
+
showBadgeIcon(): boolean;
|
|
406
416
|
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>;
|
|
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>;
|
|
408
418
|
}
|
|
@@ -113,6 +113,8 @@ export declare class EnrollProfileFormComponent implements OnInit {
|
|
|
113
113
|
verifyEmail: boolean;
|
|
114
114
|
approvedDomainList: any;
|
|
115
115
|
contextToken: any;
|
|
116
|
+
verifiedEmailOtp: string;
|
|
117
|
+
verifiedPhoneOtp: string;
|
|
116
118
|
currentDate: Date;
|
|
117
119
|
openDesignationDropdown: boolean;
|
|
118
120
|
openLanguageDropdown: boolean;
|
|
@@ -23,6 +23,7 @@ export declare class PublicSurveyFormComponent implements OnInit {
|
|
|
23
23
|
childFields: any[];
|
|
24
24
|
surveyFormIsValid: boolean;
|
|
25
25
|
addLoader: number;
|
|
26
|
+
forPreview: boolean;
|
|
26
27
|
constructor(snackBar: MatLegacySnackBar, dialogRef: MatLegacyDialogRef<PublicSurveyFormComponent>, data: any, fb: FormBuilder, appTocSvc: AppTocService, translate: TranslateService);
|
|
27
28
|
ngOnInit(): void;
|
|
28
29
|
getSurveyFormData(): void;
|
|
@@ -35,3 +35,90 @@ export declare namespace NsUserProfileDetails {
|
|
|
35
35
|
OTHER = "Other"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
export interface IUserProfileDetails {
|
|
39
|
+
first_name: string;
|
|
40
|
+
last_name: string;
|
|
41
|
+
email: string;
|
|
42
|
+
wid: string;
|
|
43
|
+
department_name: string;
|
|
44
|
+
}
|
|
45
|
+
export interface IUserProfileDetailsFromRegistry {
|
|
46
|
+
'firstname': string;
|
|
47
|
+
'motherTongue': string;
|
|
48
|
+
'secondaryEmail': string;
|
|
49
|
+
'gender': string;
|
|
50
|
+
'@type': string;
|
|
51
|
+
'mobile': number;
|
|
52
|
+
'middlename': string;
|
|
53
|
+
'telephone': number;
|
|
54
|
+
'osid': string;
|
|
55
|
+
'primaryEmailType': string;
|
|
56
|
+
'knownLanguages': ILanguages[];
|
|
57
|
+
'wid': string;
|
|
58
|
+
'nationality': string;
|
|
59
|
+
'surname': string;
|
|
60
|
+
'dob': string;
|
|
61
|
+
'category': string;
|
|
62
|
+
'primaryEmail': string;
|
|
63
|
+
'maritalStatus': string;
|
|
64
|
+
'residenceAddress': string;
|
|
65
|
+
'result': any;
|
|
66
|
+
}
|
|
67
|
+
export interface ILanguages {
|
|
68
|
+
name: string;
|
|
69
|
+
}
|
|
70
|
+
export interface IChipItems {
|
|
71
|
+
name: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ILanguagesApiData {
|
|
74
|
+
languages: ILanguages[];
|
|
75
|
+
}
|
|
76
|
+
export interface INation {
|
|
77
|
+
name: string;
|
|
78
|
+
}
|
|
79
|
+
export interface INationality {
|
|
80
|
+
name: string;
|
|
81
|
+
countryCode: string;
|
|
82
|
+
}
|
|
83
|
+
export interface ICountry {
|
|
84
|
+
name: string;
|
|
85
|
+
countryCode: string;
|
|
86
|
+
}
|
|
87
|
+
export interface INationalityApiData {
|
|
88
|
+
nationality: INationality[];
|
|
89
|
+
}
|
|
90
|
+
export interface ICountryApiData {
|
|
91
|
+
countries: ICountry[];
|
|
92
|
+
}
|
|
93
|
+
export interface INameField {
|
|
94
|
+
name: string;
|
|
95
|
+
}
|
|
96
|
+
export interface IGovtOrgMeta {
|
|
97
|
+
ministries: INameField[];
|
|
98
|
+
service: INameField[];
|
|
99
|
+
cadre: INameField[];
|
|
100
|
+
}
|
|
101
|
+
export interface IIndustriesMeta {
|
|
102
|
+
industries: INameField[];
|
|
103
|
+
}
|
|
104
|
+
export interface IdegreesMeta {
|
|
105
|
+
graduations: INameField[];
|
|
106
|
+
postGraduations: INameField[];
|
|
107
|
+
}
|
|
108
|
+
export interface IdesignationsMeta {
|
|
109
|
+
designations: INameField[];
|
|
110
|
+
gradePay: INameField[];
|
|
111
|
+
}
|
|
112
|
+
export interface IProfileMetaApiData {
|
|
113
|
+
govtOrg: IGovtOrgMeta;
|
|
114
|
+
industries: IIndustriesMeta;
|
|
115
|
+
degrees: IdegreesMeta;
|
|
116
|
+
designations: IdesignationsMeta;
|
|
117
|
+
}
|
|
118
|
+
export interface IProfileAcademics {
|
|
119
|
+
nameOfQualification: string;
|
|
120
|
+
type: string;
|
|
121
|
+
nameOfInstitute: string;
|
|
122
|
+
yearOfPassing: string;
|
|
123
|
+
nameOfOtherQualification?: string;
|
|
124
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NsWidgetResolver } from '@sunbird-cb/resolver-v2';
|
|
2
|
+
import { CardCompetencyModule } from './_collection/_common/card-competency/card-competency.module';
|
|
3
|
+
export declare const WIDGET_REGISTERED_LIB_MODULES: (typeof CardCompetencyModule)[];
|
|
4
|
+
export declare const WIDGET_REGISTRATION_TOC_LIB_CONFIG: NsWidgetResolver.IRegistrationConfig[];
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { AppTocService } from './app-toc.service';
|
|
2
|
+
import { NsContent } from '@sunbird-cb/utils-v2';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AppTocV2Service {
|
|
4
5
|
private tocSvc;
|
|
5
6
|
constructor(tocSvc: AppTocService);
|
|
6
7
|
constructHeirarchyData(contentReadData: any): any;
|
|
8
|
+
mapModuleCount(content: NsContent.IContent): void;
|
|
7
9
|
mapContentHierarchyProgressUpdate(contentHeirarchyData: any, enrollmentListData: any): any;
|
|
8
10
|
private updateMilestoneProgress;
|
|
9
11
|
private updateNodeProgress;
|
|
10
12
|
private updateCourseProgress;
|
|
13
|
+
private getCompletedLeafNodesCount;
|
|
11
14
|
private findEnrollment;
|
|
12
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppTocV2Service, never>;
|
|
13
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppTocV2Service>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Data } from '@angular/router';
|
|
2
|
-
import { Subject, Observable, Subscription, BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { Subject, Observable, Subscription, BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
3
3
|
import { HttpClient } from '@angular/common/http';
|
|
4
4
|
import { NsContent } from '../_services/widget-content.model';
|
|
5
5
|
import { WidgetContentService } from '../_services/widget-content.service';
|
|
@@ -17,6 +17,11 @@ export declare class AppTocService {
|
|
|
17
17
|
batchReplaySubject: Subject<any>;
|
|
18
18
|
setBatchDataSubject: Subject<any>;
|
|
19
19
|
getSelectedBatch: Subject<any>;
|
|
20
|
+
/**
|
|
21
|
+
* Helper function to ensure completionStatus is always a number
|
|
22
|
+
* Converts string values to 0 and ensures valid number range (0, 1, 2)
|
|
23
|
+
*/
|
|
24
|
+
private safeCompletionStatus;
|
|
20
25
|
setWFDataSubject: Subject<any>;
|
|
21
26
|
resumeData: Subject<NsContent.IContinueLearningData | null>;
|
|
22
27
|
private showSubtitleOnBanners;
|
|
@@ -32,14 +37,15 @@ export declare class AppTocService {
|
|
|
32
37
|
getPageScroll: BehaviorSubject<boolean>;
|
|
33
38
|
updatePageScroll: Observable<boolean>;
|
|
34
39
|
hashmap: any;
|
|
35
|
-
private
|
|
40
|
+
private currentRootContentId;
|
|
41
|
+
hashmapUpdated: BehaviorSubject<any>;
|
|
36
42
|
hashmapUpdated$: Observable<any>;
|
|
37
43
|
private transriptionDataSubject;
|
|
38
44
|
transcriptionData$: Observable<any>;
|
|
39
45
|
transriptionActiveLanguageDataObject: BehaviorSubject<any>;
|
|
40
46
|
transriptionActiveLanguageDataObject$: Observable<any>;
|
|
41
47
|
transriptionIdentifier: Subject<unknown>;
|
|
42
|
-
changeTranscriptionLanguageEvent:
|
|
48
|
+
changeTranscriptionLanguageEvent: ReplaySubject<unknown>;
|
|
43
49
|
playTranscriptionVideo: Subject<unknown>;
|
|
44
50
|
constructor(http: HttpClient, contentLangSvc: ContentLanguageService, configSvc: ConfigurationsService, widgetSvc: WidgetContentService);
|
|
45
51
|
get subtitleOnBanners(): boolean;
|
|
@@ -71,6 +77,11 @@ export declare class AppTocService {
|
|
|
71
77
|
fetchContentAnalyticsData(contentId: string): void;
|
|
72
78
|
private getContentAnalytics;
|
|
73
79
|
clearAnalyticsData(): void;
|
|
80
|
+
/**
|
|
81
|
+
* Reset hashmap and related content data
|
|
82
|
+
* Call this when navigating away from content to prevent stale data
|
|
83
|
+
*/
|
|
84
|
+
resetContentData(): void;
|
|
74
85
|
fetchContentParents(contentId: string): Observable<NsContent.IContentMinimal[]>;
|
|
75
86
|
fetchContentWhatsNext(contentId: string, contentType?: string): Observable<NsContent.IContentMinimal[]>;
|
|
76
87
|
fetchMoreLikeThisPaid(contentId: string): Observable<NsContent.IContentMinimal[]>;
|
|
@@ -94,21 +105,9 @@ export declare class AppTocService {
|
|
|
94
105
|
findEnrolmentByCollectionId(enrolmentList: any, identifier: string): any;
|
|
95
106
|
mapCompletionChildPercentageProgram(course: any): Promise<void>;
|
|
96
107
|
mapModuleDurationAndProgress(content: NsContent.IContent | null, parent: NsContent.IContent | null): void;
|
|
97
|
-
createHirarchyProgressHashmap(hierarchyData: NsContent.IContent, rootCourseCategory?: string): void;
|
|
108
|
+
createHirarchyProgressHashmap(hierarchyData: NsContent.IContent, rootCourseCategory?: string, parentId?: string): void;
|
|
98
109
|
createPreAssessmentHirarchyProgressHashmap(hierarchyData: NsContent.IContent): void;
|
|
99
110
|
callHirarchyProgressHashmap(hierarchyData: NsContent.IContent | null): void;
|
|
100
|
-
/**
|
|
101
|
-
* Pre-compute milestone locking status for all milestones in Learning Pathway
|
|
102
|
-
* This avoids expensive calculations in component getters
|
|
103
|
-
*
|
|
104
|
-
* Locking Rules:
|
|
105
|
-
* 0. If user is not enrolled, ALL milestones are locked
|
|
106
|
-
* 1. All milestones are locked by default
|
|
107
|
-
* 2. Milestone 1 (M1) unlocks when pre-assessment is completed
|
|
108
|
-
* 3. Milestone N (N > 1) unlocks when:
|
|
109
|
-
* - All mandatory learning items in Milestone N-1 are completed
|
|
110
|
-
* - The assessment of Milestone N-1 is completed
|
|
111
|
-
*/
|
|
112
111
|
computeMilestoneLockingStatus(isEnrolled?: boolean): void;
|
|
113
112
|
/**
|
|
114
113
|
* Trigger milestone lock update when hashmap progress is updated externally
|
|
@@ -122,7 +121,8 @@ export declare class AppTocService {
|
|
|
122
121
|
private checkPreAssessmentCompletion;
|
|
123
122
|
/**
|
|
124
123
|
* Check if a milestone's assessment is completed
|
|
125
|
-
*
|
|
124
|
+
* ONLY checks the milestone assessment (Course Assessment that is a direct child of the milestone)
|
|
125
|
+
* Does NOT check assessments nested inside courses within the milestone
|
|
126
126
|
*/
|
|
127
127
|
private checkMilestoneAssessmentComplete;
|
|
128
128
|
/**
|
|
@@ -134,6 +134,19 @@ export declare class AppTocService {
|
|
|
134
134
|
* Check if a content item is a child (direct or nested) of a milestone
|
|
135
135
|
*/
|
|
136
136
|
private isChildOfMilestone;
|
|
137
|
+
/**
|
|
138
|
+
* Compute assessment locking within an unlocked milestone
|
|
139
|
+
* Assessment locks until all mandatory courses in the milestone are completed
|
|
140
|
+
*/
|
|
141
|
+
private computeAssessmentLockingInMilestone;
|
|
142
|
+
/**
|
|
143
|
+
* Mark all children of a milestone as parent-locked or unlocked
|
|
144
|
+
*/
|
|
145
|
+
private markMilestoneChildrenAsParentLocked;
|
|
146
|
+
/**
|
|
147
|
+
* Recursively mark nested children as parent-locked
|
|
148
|
+
*/
|
|
149
|
+
private markNestedChildrenAsParentLocked;
|
|
137
150
|
getCalculationsFromChildren(item: NsContent.IContent): NsContent.IContent;
|
|
138
151
|
fetchContentHistoryV2(req: NsContent.IContinueLearningDataReq): Observable<NsContent.IContinueLearningData>;
|
|
139
152
|
dowonloadCertificate(certId: any): Observable<any>;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Certificate Service
|
|
6
|
-
* Handles certificate-related operations
|
|
7
|
-
*/
|
|
8
4
|
export declare class CertificateService {
|
|
9
5
|
private http;
|
|
10
6
|
private readonly PROXY_SLAG_V8;
|
|
@@ -28,15 +24,18 @@ export declare class CertificateService {
|
|
|
28
24
|
/**
|
|
29
25
|
* Download certificate v2
|
|
30
26
|
*/
|
|
31
|
-
downloadCertificate_v2(certId: string): Observable<
|
|
27
|
+
downloadCertificate_v2(certId: string): Observable<any>;
|
|
32
28
|
/**
|
|
33
29
|
* Validate enrollment eligibility
|
|
34
30
|
*/
|
|
35
|
-
validateEnrollmentEligibility(
|
|
31
|
+
validateEnrollmentEligibility(courseId: string, partnerId: string): Observable<any>;
|
|
36
32
|
/**
|
|
37
33
|
* Submit consent for content
|
|
38
34
|
*/
|
|
39
35
|
consentSubmit(request: any): Observable<any>;
|
|
36
|
+
downloadCertificate_v3(certId: string): Observable<any>;
|
|
37
|
+
validateCertificate(data: any): Observable<any>;
|
|
38
|
+
searchCertificate(recipientId: string): Observable<any>;
|
|
40
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<CertificateService, never>;
|
|
41
40
|
static ɵprov: i0.ɵɵInjectableDeclaration<CertificateService>;
|
|
42
41
|
}
|
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
3
1
|
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Discuss Utils Service
|
|
6
|
-
* Handles discussion forum related utilities
|
|
7
|
-
*/
|
|
8
2
|
export declare class DiscussUtilsService {
|
|
9
|
-
|
|
10
|
-
constructor(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
getDiscussionConfig(): any;
|
|
15
|
-
/**
|
|
16
|
-
* Set discussion forum configuration
|
|
17
|
-
*/
|
|
3
|
+
discussionCnfig: any;
|
|
4
|
+
constructor();
|
|
5
|
+
stringToColor(str: string): string;
|
|
6
|
+
getContrast(_hexcolor: any): string;
|
|
18
7
|
setDiscussionConfig(config: any): void;
|
|
19
|
-
|
|
20
|
-
* Navigate to discussion forum
|
|
21
|
-
*/
|
|
22
|
-
navigateToDiscussion(contentId: string): void;
|
|
23
|
-
/**
|
|
24
|
-
* Get discussion count for content
|
|
25
|
-
*/
|
|
26
|
-
getDiscussionCount(contentId: string): Observable<number>;
|
|
27
|
-
/**
|
|
28
|
-
* Set discussion configuration (alias)
|
|
29
|
-
*/
|
|
30
|
-
setDiscussConfig(config: any): void;
|
|
8
|
+
getDiscussionConfig(): any;
|
|
31
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DiscussUtilsService, never>;
|
|
32
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<DiscussUtilsService>;
|
|
33
11
|
}
|
|
@@ -1,33 +1,21 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ConfigurationsService } from '@sunbird-cb/utils-v2';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* NetCore Service stub
|
|
4
|
-
* Handles NetCore integration for analytics
|
|
5
|
-
*
|
|
6
|
-
* Note: This is a minimal stub. The consuming application should provide
|
|
7
|
-
* a proper implementation if full functionality is needed.
|
|
8
|
-
*/
|
|
9
5
|
export declare class NetCoreService {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Log out user
|
|
25
|
-
*/
|
|
26
|
-
logout(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Track event for content and event
|
|
29
|
-
*/
|
|
30
|
-
trackEventForContentAndEvent(eventType: string, userId: string, payload: any): void;
|
|
6
|
+
private http;
|
|
7
|
+
configSvc: ConfigurationsService;
|
|
8
|
+
constructor(http: HttpClient, configSvc: ConfigurationsService);
|
|
9
|
+
getOrgReadData(organisationId: string): Observable<any>;
|
|
10
|
+
netCoreConfigReadData(payload: any): Observable<any>;
|
|
11
|
+
formReadData(request: any): Observable<any>;
|
|
12
|
+
netCoreUserLoginSetup(payload: any): void;
|
|
13
|
+
netCoreUserNameUpdate(payload: any): void;
|
|
14
|
+
netCoreUserProfilePhotoUpdate(payload: any): void;
|
|
15
|
+
netCoreUserProfilepdate(payload: any): void;
|
|
16
|
+
netCoreUserProfileUpdateEvent(payload: any, eventName: any, userIdentifier: any): void;
|
|
17
|
+
trackEvent(eventName: any, userIdentifier: any, userpayload?: any): void;
|
|
18
|
+
trackEventForContentAndEvent(eventName: any, userIdentifier: any, contentpayload?: any): void;
|
|
31
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NetCoreService, never>;
|
|
32
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<NetCoreService>;
|
|
33
21
|
}
|