@tekdi/sunbird-collection-editor 6.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/esm2022/lib/collection-editor-cursor.service.mjs +3 -0
- package/esm2022/lib/collection-editor-library.component.mjs +16 -0
- package/esm2022/lib/collection-editor-library.module.mjs +161 -0
- package/esm2022/lib/components/answer/answer.component.mjs +46 -0
- package/esm2022/lib/components/app-loader/app-loader.component.mjs +30 -0
- package/esm2022/lib/components/asset-browser/asset-browser.component.mjs +343 -0
- package/esm2022/lib/components/asset-browser/asset-browser.data.mjs +53 -0
- package/esm2022/lib/components/assign-page-number/assign-page-number.component.mjs +191 -0
- package/esm2022/lib/components/bulk-upload/bulk-upload.component.mjs +447 -0
- package/esm2022/lib/components/ckeditor-tool/ckeditor-tool.component.mjs +913 -0
- package/esm2022/lib/components/collection-icon/collection-icon.component.mjs +43 -0
- package/esm2022/lib/components/contentplayer-page/contentplayer-page.component.mjs +140 -0
- package/esm2022/lib/components/csv-upload/csv-upload.component.mjs +178 -0
- package/esm2022/lib/components/dialcode/dialcode.component.mjs +182 -0
- package/esm2022/lib/components/editor/editor.component.mjs +1201 -0
- package/esm2022/lib/components/fancy-tree/fancy-tree.component.mjs +611 -0
- package/esm2022/lib/components/header/header.component.mjs +141 -0
- package/esm2022/lib/components/library/library.component.mjs +241 -0
- package/esm2022/lib/components/library-filter/library-filter.component.mjs +153 -0
- package/esm2022/lib/components/library-list/library-list.component.mjs +66 -0
- package/esm2022/lib/components/library-player/library-player.component.mjs +36 -0
- package/esm2022/lib/components/manage-collaborator/manage-collaborator.component.mjs +256 -0
- package/esm2022/lib/components/meta-form/meta-form.component.mjs +338 -0
- package/esm2022/lib/components/options/options.component.mjs +157 -0
- package/esm2022/lib/components/plain-tree/plain-tree.component.mjs +125 -0
- package/esm2022/lib/components/progress-status/progress-status.component.mjs +46 -0
- package/esm2022/lib/components/publish-checklist/publish-checklist.component.mjs +70 -0
- package/esm2022/lib/components/quality-params-modal/quality-params-modal.component.mjs +52 -0
- package/esm2022/lib/components/question/question.component.mjs +1468 -0
- package/esm2022/lib/components/question-option-sub-menu/question-option-sub-menu.component.mjs +36 -0
- package/esm2022/lib/components/quml-player/quml-player.component.mjs +73 -0
- package/esm2022/lib/components/qumlplayer-page/qumlplayer-page.component.mjs +84 -0
- package/esm2022/lib/components/relational-metadata/relational-metadata.component.mjs +80 -0
- package/esm2022/lib/components/resource-reorder/resource-reorder.component.mjs +143 -0
- package/esm2022/lib/components/skeleton-loader/skeleton-loader.component.mjs +26 -0
- package/esm2022/lib/components/slider/slider.component.mjs +46 -0
- package/esm2022/lib/components/template/template.component.mjs +42 -0
- package/esm2022/lib/components/term-and-condition/term-and-condition.component.mjs +68 -0
- package/esm2022/lib/components/translations/translations.component.mjs +132 -0
- package/esm2022/lib/directives/date-format/date-format.pipe.mjs +34 -0
- package/esm2022/lib/directives/telemetry-interact/telemetry-interact.directive.mjs +33 -0
- package/esm2022/lib/interfaces/CreationContext.mjs +2 -0
- package/esm2022/lib/interfaces/McqForm.mjs +29 -0
- package/esm2022/lib/interfaces/editor.mjs +2 -0
- package/esm2022/lib/interfaces/framework.mjs +2 -0
- package/esm2022/lib/interfaces/httpOptions.mjs +2 -0
- package/esm2022/lib/interfaces/loader.mjs +2 -0
- package/esm2022/lib/interfaces/requestParam.mjs +2 -0
- package/esm2022/lib/interfaces/serverResponse.mjs +2 -0
- package/esm2022/lib/pipes/interpolate.pipe.mjs +17 -0
- package/esm2022/lib/pipes/sanitize-html.pipe.mjs +18 -0
- package/esm2022/lib/services/bulk-job/bulk-job.service.mjs +67 -0
- package/esm2022/lib/services/config/category.config.json +9 -0
- package/esm2022/lib/services/config/config.service.mjs +27 -0
- package/esm2022/lib/services/config/editor.config.json +58 -0
- package/esm2022/lib/services/config/label.config.json +327 -0
- package/esm2022/lib/services/config/player.config.json +99 -0
- package/esm2022/lib/services/config/url.config.json +85 -0
- package/esm2022/lib/services/data/data.service.mjs +192 -0
- package/esm2022/lib/services/dialcode/dialcode.service.mjs +304 -0
- package/esm2022/lib/services/editor/editor.service.mjs +720 -0
- package/esm2022/lib/services/framework/framework.service.mjs +103 -0
- package/esm2022/lib/services/helper/helper.service.mjs +160 -0
- package/esm2022/lib/services/player/player.service.mjs +99 -0
- package/esm2022/lib/services/public-data/public-data.service.mjs +21 -0
- package/esm2022/lib/services/question/question.service.mjs +159 -0
- package/esm2022/lib/services/telemetry/telemetry.service.mjs +120 -0
- package/esm2022/lib/services/toaster/toaster.service.mjs +105 -0
- package/esm2022/lib/services/tree/tree.service.mjs +299 -0
- package/esm2022/public-api.mjs +4 -0
- package/esm2022/tekdi-sunbird-collection-editor.mjs +5 -0
- package/fesm2022/tekdi-sunbird-collection-editor.mjs +11139 -0
- package/fesm2022/tekdi-sunbird-collection-editor.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/assets/.gitkeep +0 -0
- package/lib/assets/images/MCQ.png +0 -0
- package/lib/assets/images/Spin.gif +0 -0
- package/lib/assets/images/bulkuploadfile.png +0 -0
- package/lib/assets/images/cancel-sign copy.png +0 -0
- package/lib/assets/images/cancel-sign.png +0 -0
- package/lib/assets/images/emptyResult.svg +1 -0
- package/lib/assets/images/icons-rtl.gif +0 -0
- package/lib/assets/images/icons.gif +0 -0
- package/lib/assets/images/imageicon.svg +16 -0
- package/lib/assets/images/imageicon_blue.svg +16 -0
- package/lib/assets/images/layoutoneicon.svg +16 -0
- package/lib/assets/images/layoutoneicon_blue.svg +16 -0
- package/lib/assets/images/layoutthreeicon.svg +18 -0
- package/lib/assets/images/layoutthreeicon_blue.svg +18 -0
- package/lib/assets/images/layouttwoicon.svg +18 -0
- package/lib/assets/images/layouttwoicon_blue.svg +18 -0
- package/lib/assets/images/leftalignicon.svg +17 -0
- package/lib/assets/images/leftalignicon_blue.svg +17 -0
- package/lib/assets/images/loader.gif +0 -0
- package/lib/assets/images/loader.svg +1 -0
- package/lib/assets/images/loading.gif +0 -0
- package/lib/assets/images/middlealignicon.svg +17 -0
- package/lib/assets/images/middlealignicon_blue.svg +17 -0
- package/lib/assets/images/question_collection.svg +18 -0
- package/lib/assets/images/rightalignicon.svg +17 -0
- package/lib/assets/images/rightalignicon_blue.svg +17 -0
- package/lib/assets/images/vline-rtl.gif +0 -0
- package/lib/assets/images/vline.gif +0 -0
- package/lib/assets/images/writing.png +0 -0
- package/lib/collection-editor-cursor.service.d.ts +4 -0
- package/lib/collection-editor-library.component.d.ts +8 -0
- package/lib/collection-editor-library.module.d.ts +57 -0
- package/lib/components/answer/answer.component.d.ts +24 -0
- package/lib/components/app-loader/app-loader.component.d.ts +17 -0
- package/lib/components/asset-browser/asset-browser.component.d.ts +80 -0
- package/lib/components/asset-browser/asset-browser.data.d.ts +51 -0
- package/lib/components/assign-page-number/assign-page-number.component.d.ts +37 -0
- package/lib/components/bulk-upload/bulk-upload.component.d.ts +70 -0
- package/lib/components/ckeditor-tool/ckeditor-tool.component.d.ts +160 -0
- package/lib/components/collection-icon/collection-icon.component.d.ts +17 -0
- package/lib/components/contentplayer-page/contentplayer-page.component.d.ts +36 -0
- package/lib/components/csv-upload/csv-upload.component.d.ts +41 -0
- package/lib/components/dialcode/dialcode.component.d.ts +47 -0
- package/lib/components/editor/editor.component.d.ts +149 -0
- package/lib/components/fancy-tree/fancy-tree.component.d.ts +84 -0
- package/lib/components/header/header.component.d.ts +49 -0
- package/lib/components/library/library.component.d.ts +68 -0
- package/lib/components/library-filter/library-filter.component.d.ts +46 -0
- package/lib/components/library-list/library-list.component.d.ts +25 -0
- package/lib/components/library-player/library-player.component.d.ts +17 -0
- package/lib/components/manage-collaborator/manage-collaborator.component.d.ts +74 -0
- package/lib/components/meta-form/meta-form.component.d.ts +49 -0
- package/lib/components/options/options.component.d.ts +60 -0
- package/lib/components/plain-tree/plain-tree.component.d.ts +19 -0
- package/lib/components/progress-status/progress-status.component.d.ts +24 -0
- package/lib/components/publish-checklist/publish-checklist.component.d.ts +23 -0
- package/lib/components/quality-params-modal/quality-params-modal.component.d.ts +23 -0
- package/lib/components/question/question.component.d.ts +207 -0
- package/lib/components/question-option-sub-menu/question-option-sub-menu.component.d.ts +26 -0
- package/lib/components/quml-player/quml-player.component.d.ts +25 -0
- package/lib/components/qumlplayer-page/qumlplayer-page.component.d.ts +30 -0
- package/lib/components/relational-metadata/relational-metadata.component.d.ts +24 -0
- package/lib/components/resource-reorder/resource-reorder.component.d.ts +44 -0
- package/lib/components/skeleton-loader/skeleton-loader.component.d.ts +12 -0
- package/lib/components/slider/slider.component.d.ts +24 -0
- package/lib/components/template/template.component.d.ts +20 -0
- package/lib/components/term-and-condition/term-and-condition.component.d.ts +25 -0
- package/lib/components/translations/translations.component.d.ts +69 -0
- package/lib/directives/date-format/date-format.pipe.d.ts +19 -0
- package/lib/directives/telemetry-interact/telemetry-interact.directive.d.ts +26 -0
- package/lib/interfaces/CreationContext.d.ts +10 -0
- package/lib/interfaces/McqForm.d.ts +31 -0
- package/lib/interfaces/editor.d.ts +83 -0
- package/lib/interfaces/framework.d.ts +45 -0
- package/lib/interfaces/httpOptions.d.ts +34 -0
- package/lib/interfaces/loader.d.ts +10 -0
- package/lib/interfaces/requestParam.d.ts +23 -0
- package/lib/interfaces/serverResponse.d.ts +37 -0
- package/lib/pipes/interpolate.pipe.d.ts +7 -0
- package/lib/pipes/sanitize-html.pipe.d.ts +10 -0
- package/lib/services/bulk-job/bulk-job.service.d.ts +16 -0
- package/lib/services/config/config.service.d.ts +12 -0
- package/lib/services/data/data.service.d.ts +84 -0
- package/lib/services/dialcode/dialcode.service.d.ts +34 -0
- package/lib/services/editor/editor.service.d.ts +152 -0
- package/lib/services/framework/framework.service.d.ts +32 -0
- package/lib/services/helper/helper.service.d.ts +40 -0
- package/lib/services/player/player.service.d.ts +32 -0
- package/lib/services/public-data/public-data.service.d.ts +14 -0
- package/lib/services/question/question.service.d.ts +29 -0
- package/lib/services/telemetry/telemetry.service.d.ts +44 -0
- package/lib/services/toaster/toaster.service.d.ts +49 -0
- package/lib/services/tree/tree.service.d.ts +52 -0
- package/package.json +29 -0
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { QuestionService } from '../../services/question/question.service';
|
|
3
|
+
import { PlayerService } from '../../services/player/player.service';
|
|
4
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
5
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
6
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
7
|
+
import { Router } from '@angular/router';
|
|
8
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
9
|
+
import { FrameworkService } from '../../services/framework/framework.service';
|
|
10
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
11
|
+
import { EditorCursor } from '../../collection-editor-cursor.service';
|
|
12
|
+
import { SubMenu } from '../question-option-sub-menu/question-option-sub-menu.component';
|
|
13
|
+
import { ICreationContext } from '../../interfaces/CreationContext';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class QuestionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
16
|
+
private questionService;
|
|
17
|
+
editorService: EditorService;
|
|
18
|
+
telemetryService: EditorTelemetryService;
|
|
19
|
+
playerService: PlayerService;
|
|
20
|
+
private toasterService;
|
|
21
|
+
private treeService;
|
|
22
|
+
private frameworkService;
|
|
23
|
+
private router;
|
|
24
|
+
configService: ConfigService;
|
|
25
|
+
private editorCursor;
|
|
26
|
+
QumlPlayerConfig: any;
|
|
27
|
+
questionInput: any;
|
|
28
|
+
leafFormConfig: any;
|
|
29
|
+
sourcingSettings: any;
|
|
30
|
+
initialLeafFormConfig: any;
|
|
31
|
+
childFormData: any;
|
|
32
|
+
questionEmitter: EventEmitter<any>;
|
|
33
|
+
private onComponentDestroy$;
|
|
34
|
+
toolbarConfig: any;
|
|
35
|
+
terms: boolean;
|
|
36
|
+
editorState: any;
|
|
37
|
+
showPreview: boolean;
|
|
38
|
+
mediaArr: any;
|
|
39
|
+
videoShow: boolean;
|
|
40
|
+
showFormError: boolean;
|
|
41
|
+
actionType: string;
|
|
42
|
+
selectedSolutionType: string;
|
|
43
|
+
selectedSolutionTypeIndex: string;
|
|
44
|
+
showSolutionDropDown: boolean;
|
|
45
|
+
showSolution: boolean;
|
|
46
|
+
videoSolutionName: string;
|
|
47
|
+
videoSolutionData: any;
|
|
48
|
+
videoThumbnail: string;
|
|
49
|
+
solutionUUID: string;
|
|
50
|
+
solutionValue: string;
|
|
51
|
+
solutionTypes: any;
|
|
52
|
+
questionMetaData: any;
|
|
53
|
+
questionInteractionType: any;
|
|
54
|
+
questionCategory: any;
|
|
55
|
+
questionId: any;
|
|
56
|
+
creationContext: ICreationContext;
|
|
57
|
+
creationMode: any;
|
|
58
|
+
tempQuestionId: any;
|
|
59
|
+
questionSetId: any;
|
|
60
|
+
unitId: any;
|
|
61
|
+
setCharacterLimit: number;
|
|
62
|
+
showLoader: boolean;
|
|
63
|
+
isReadOnlyMode: boolean;
|
|
64
|
+
contentComment: string;
|
|
65
|
+
showReviewModal: boolean;
|
|
66
|
+
questionSetHierarchy: any;
|
|
67
|
+
showConfirmPopup: boolean;
|
|
68
|
+
showSubmitConfirmPopup: boolean;
|
|
69
|
+
validQuestionData: boolean;
|
|
70
|
+
questionPrimaryCategory: string;
|
|
71
|
+
pageId: string;
|
|
72
|
+
pageStartTime: any;
|
|
73
|
+
framework: any;
|
|
74
|
+
frameworkDetails: any;
|
|
75
|
+
questionMetadataFormStatus: boolean;
|
|
76
|
+
buttonLoaders: {
|
|
77
|
+
saveButtonLoader: boolean;
|
|
78
|
+
review: boolean;
|
|
79
|
+
};
|
|
80
|
+
showTranslation: boolean;
|
|
81
|
+
subMenus: SubMenu[];
|
|
82
|
+
showAddSecondaryQuestionCat: boolean;
|
|
83
|
+
sliderDatas: any;
|
|
84
|
+
sliderOptions: any;
|
|
85
|
+
hints: any;
|
|
86
|
+
categoryLabel: any;
|
|
87
|
+
scoreMapping: any;
|
|
88
|
+
condition: string;
|
|
89
|
+
targetOption: any;
|
|
90
|
+
responseVariable: string;
|
|
91
|
+
newQuestionID: any;
|
|
92
|
+
showOptions: boolean;
|
|
93
|
+
selectedOptions: any;
|
|
94
|
+
options: any[];
|
|
95
|
+
isChildQuestion: boolean;
|
|
96
|
+
branchingLogic: any;
|
|
97
|
+
selectedSectionId: any;
|
|
98
|
+
sectionPrimaryCategory: any;
|
|
99
|
+
maxScore: number;
|
|
100
|
+
questionFormConfig: any;
|
|
101
|
+
treeNodeData: any;
|
|
102
|
+
showQualityParameterPopup: boolean;
|
|
103
|
+
qualityFormConfig: any;
|
|
104
|
+
requestChangesPopupAction: string;
|
|
105
|
+
constructor(questionService: QuestionService, editorService: EditorService, telemetryService: EditorTelemetryService, playerService: PlayerService, toasterService: ToasterService, treeService: TreeService, frameworkService: FrameworkService, router: Router, configService: ConfigService, editorCursor: EditorCursor);
|
|
106
|
+
ngOnInit(): void;
|
|
107
|
+
fetchFrameWorkDetails(): void;
|
|
108
|
+
populateFrameworkData(): void;
|
|
109
|
+
ngAfterViewInit(): void;
|
|
110
|
+
initialize(): void;
|
|
111
|
+
get contentPolicyUrl(): any;
|
|
112
|
+
toolbarEventListener(event: any): void;
|
|
113
|
+
handleRedirectToQuestionset(): void;
|
|
114
|
+
submitHandler(): void;
|
|
115
|
+
saveContent(): void;
|
|
116
|
+
onConsentSubmit(event: any): void;
|
|
117
|
+
sendForReview(): void;
|
|
118
|
+
requestForChanges(comment: any): void;
|
|
119
|
+
sendQuestionForPublish(event: any): void;
|
|
120
|
+
rejectQuestion(comment: any): boolean;
|
|
121
|
+
publishQuestion(event: any): boolean;
|
|
122
|
+
sourcingUpdate(event: any): boolean;
|
|
123
|
+
sendBackQuestion(event: any): void;
|
|
124
|
+
validateQuestionData(): void;
|
|
125
|
+
redirectToQuestionset(): void;
|
|
126
|
+
redirectToChapterList(): void;
|
|
127
|
+
editorDataHandler(event: any, type?: any): void;
|
|
128
|
+
setMedia(media: any): void;
|
|
129
|
+
addResourceToQuestionset(callback?: any): void;
|
|
130
|
+
saveQuestion(): void;
|
|
131
|
+
videoDataOutput(event: any): void;
|
|
132
|
+
selectSolutionType(data: any): void;
|
|
133
|
+
deleteSolution(): void;
|
|
134
|
+
getSolutionObj(solutionUUID: any, selectedSolutionType: any, editorStateSolutions: any): any;
|
|
135
|
+
getQuestionMetadata(): any;
|
|
136
|
+
getResponseDeclaration(type: any): {
|
|
137
|
+
response1: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
getMcqQuestionHtmlBody(question: any, templateId: any): string;
|
|
142
|
+
getDefaultSessionContext(): any;
|
|
143
|
+
setQuestionTypeValues(metaData: any): void;
|
|
144
|
+
prepareRequestBody(): {
|
|
145
|
+
nodesModified: {
|
|
146
|
+
[x: number]: {
|
|
147
|
+
metadata: any;
|
|
148
|
+
objectType: string;
|
|
149
|
+
root: boolean;
|
|
150
|
+
isNew: boolean;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
hierarchy: any;
|
|
154
|
+
};
|
|
155
|
+
prepareQuestionBody(): {
|
|
156
|
+
question: any;
|
|
157
|
+
};
|
|
158
|
+
prepareSourcingUpdateBody(questionIds: any, comments?: any): {
|
|
159
|
+
request: {
|
|
160
|
+
[x: number]: {
|
|
161
|
+
[x: string]: any;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
upsertQuestion(callback: any): void;
|
|
166
|
+
createQuestion(): void;
|
|
167
|
+
saveQuestions(requestBody: any, type: any): void;
|
|
168
|
+
updateQuestion(): void;
|
|
169
|
+
saveUpdateQuestions(): void;
|
|
170
|
+
showHideSpinnerLoader(status: boolean, type?: any): void;
|
|
171
|
+
previewContent(): void;
|
|
172
|
+
setParentConfig(parentConfig: any): void;
|
|
173
|
+
setQumlPlayerData(questionId: string): void;
|
|
174
|
+
getPlayerEvents(event: any): void;
|
|
175
|
+
getTelemetryEvents(event: any): void;
|
|
176
|
+
setQuestionId(questionId: any): void;
|
|
177
|
+
setQuestionTitle(questionId?: any): void;
|
|
178
|
+
output(event: any): void;
|
|
179
|
+
onStatusChanges(event: any): void;
|
|
180
|
+
valueChanges(event: any): void;
|
|
181
|
+
validateFormFields(): boolean;
|
|
182
|
+
previewFormData(status: any): void;
|
|
183
|
+
isEditable(fieldCode: any): boolean;
|
|
184
|
+
populateFormData(): void;
|
|
185
|
+
subMenuChange({ index, value }: {
|
|
186
|
+
index: any;
|
|
187
|
+
value: any;
|
|
188
|
+
}): void;
|
|
189
|
+
get dependentQuestions(): string | any[];
|
|
190
|
+
subMenuConfig(): void;
|
|
191
|
+
ngOnDestroy(): void;
|
|
192
|
+
sliderData($event: any): void;
|
|
193
|
+
optionHandler(e: any): void;
|
|
194
|
+
buildCondition(type: any): void;
|
|
195
|
+
updateTarget(questionId: any): any[];
|
|
196
|
+
getOptions(): void;
|
|
197
|
+
getParentQuestionOptions(questionId: any): void;
|
|
198
|
+
updateTreeCache(sectionName: any, branchingLogic: any, selectedSection: any): void;
|
|
199
|
+
setCondition(data: any): void;
|
|
200
|
+
getBranchingLogic(children: any): void;
|
|
201
|
+
onQualityFormSubmit(event: any): void;
|
|
202
|
+
saveQualityParameters(qualityParameters: any, callback: any): void;
|
|
203
|
+
openRequestChangesPopup(): void;
|
|
204
|
+
calculateMinMaxScore(metaData: any): void;
|
|
205
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionComponent, never>;
|
|
206
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionComponent, "lib-question", never, { "questionInput": { "alias": "questionInput"; "required": false; }; "leafFormConfig": { "alias": "leafFormConfig"; "required": false; }; "sourcingSettings": { "alias": "sourcingSettings"; "required": false; }; }, { "questionEmitter": "questionEmitter"; }, never, never, false, never>;
|
|
207
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SubMenuEvent {
|
|
5
|
+
index: number;
|
|
6
|
+
value: any;
|
|
7
|
+
}
|
|
8
|
+
export interface SubMenu {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
label: string;
|
|
12
|
+
value: string | any[];
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
type: string;
|
|
15
|
+
show: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class QuestionOptionSubMenuComponent {
|
|
18
|
+
editorService: EditorService;
|
|
19
|
+
subMenus: SubMenu[];
|
|
20
|
+
onChange: EventEmitter<SubMenuEvent>;
|
|
21
|
+
constructor(editorService: EditorService);
|
|
22
|
+
onMenuClick(index: any): void;
|
|
23
|
+
onValueChange(event: any, index: any): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionOptionSubMenuComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionOptionSubMenuComponent, "lib-question-option-sub-menu", never, { "subMenus": { "alias": "subMenus"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
3
|
+
import { PlayerService } from '../../services/player/player.service';
|
|
4
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class QumlPlayerComponent implements OnInit {
|
|
7
|
+
private configService;
|
|
8
|
+
private playerService;
|
|
9
|
+
editorService: EditorService;
|
|
10
|
+
qumlPlayerConfig: any;
|
|
11
|
+
questionSetHierarchy: any;
|
|
12
|
+
isSingleQuestionPreview: boolean;
|
|
13
|
+
showPreview: boolean;
|
|
14
|
+
showViewButton: boolean;
|
|
15
|
+
toolbarEmitter: EventEmitter<any>;
|
|
16
|
+
constructor(configService: ConfigService, playerService: PlayerService, editorService: EditorService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
initialize(): void;
|
|
19
|
+
setQumlPlayerData(): void;
|
|
20
|
+
getPlayerEvents(event: any): void;
|
|
21
|
+
getTelemetryEvents(event: any): void;
|
|
22
|
+
reviewQuestion(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QumlPlayerComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QumlPlayerComponent, "lib-quml-player", never, { "questionSetHierarchy": { "alias": "questionSetHierarchy"; "required": false; }; "isSingleQuestionPreview": { "alias": "isSingleQuestionPreview"; "required": false; }; }, { "toolbarEmitter": "toolbarEmitter"; }, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
3
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
4
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
5
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class QumlplayerPageComponent implements OnChanges {
|
|
8
|
+
telemetryService: EditorTelemetryService;
|
|
9
|
+
configService: ConfigService;
|
|
10
|
+
editorService: EditorService;
|
|
11
|
+
private treeService;
|
|
12
|
+
qumlPlayerConfig: any;
|
|
13
|
+
questionMetaData: any;
|
|
14
|
+
questionSetHierarchy: any;
|
|
15
|
+
toolbarEmitter: EventEmitter<any>;
|
|
16
|
+
prevQuestionId: string;
|
|
17
|
+
showPlayerPreview: boolean;
|
|
18
|
+
showPotrait: boolean;
|
|
19
|
+
hierarchy: any;
|
|
20
|
+
constructor(telemetryService: EditorTelemetryService, configService: ConfigService, editorService: EditorService, treeService: TreeService);
|
|
21
|
+
ngOnChanges(): void;
|
|
22
|
+
initQumlPlayer(): void;
|
|
23
|
+
switchToPotraitMode(): void;
|
|
24
|
+
switchToLandscapeMode(): void;
|
|
25
|
+
removeQuestion(): void;
|
|
26
|
+
editQuestion(): void;
|
|
27
|
+
reviewQuestion(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QumlplayerPageComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QumlplayerPageComponent, "lib-qumlplayer-page", never, { "questionMetaData": { "alias": "questionMetaData"; "required": false; }; "questionSetHierarchy": { "alias": "questionSetHierarchy"; "required": false; }; }, { "toolbarEmitter": "toolbarEmitter"; }, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
3
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RelationalMetadataComponent implements OnInit, OnChanges {
|
|
6
|
+
private editorService;
|
|
7
|
+
private treeService;
|
|
8
|
+
contentMetadata: any;
|
|
9
|
+
formConfig: any;
|
|
10
|
+
contentId: any;
|
|
11
|
+
statusChanges: EventEmitter<any>;
|
|
12
|
+
valueChanges: EventEmitter<any>;
|
|
13
|
+
formFieldProperties: any;
|
|
14
|
+
constructor(editorService: EditorService, treeService: TreeService);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
ngOnChanges(): void;
|
|
17
|
+
attachDefaultValues(): void;
|
|
18
|
+
isReviewMode(): any;
|
|
19
|
+
ifFieldIsEditable(fieldCode: any): boolean;
|
|
20
|
+
onFormStatusChange(event: any): void;
|
|
21
|
+
onFormValueChange(event: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RelationalMetadataComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RelationalMetadataComponent, "lib-relational-metadata", never, { "contentMetadata": { "alias": "contentMetadata"; "required": false; }; "formConfig": { "alias": "formConfig"; "required": false; }; }, { "statusChanges": "statusChanges"; "valueChanges": "valueChanges"; }, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
3
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
4
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
5
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ResourceReorderComponent implements OnInit {
|
|
8
|
+
private editorService;
|
|
9
|
+
configService: ConfigService;
|
|
10
|
+
telemetryService: EditorTelemetryService;
|
|
11
|
+
private toasterService;
|
|
12
|
+
unitSelected: string;
|
|
13
|
+
selectedContentDetails: any;
|
|
14
|
+
collectionId: any;
|
|
15
|
+
collectionUnits: any;
|
|
16
|
+
programContext: any;
|
|
17
|
+
prevUnitSelect: any;
|
|
18
|
+
collectionhierarcyData: any;
|
|
19
|
+
showMoveButton: boolean;
|
|
20
|
+
isContentAdded: boolean;
|
|
21
|
+
modal: any;
|
|
22
|
+
moveEvent: EventEmitter<any>;
|
|
23
|
+
collectionUnitsBreadcrumb: any;
|
|
24
|
+
constructor(editorService: EditorService, configService: ConfigService, telemetryService: EditorTelemetryService, toasterService: ToasterService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
addResource(): void;
|
|
27
|
+
closePopup(): void;
|
|
28
|
+
getParentsHelper(tree: any, id: string, parents: Array<any>): {
|
|
29
|
+
found: boolean;
|
|
30
|
+
} | {
|
|
31
|
+
found: boolean;
|
|
32
|
+
parents: any[];
|
|
33
|
+
};
|
|
34
|
+
getParents(data: Array<any>, id: string): {
|
|
35
|
+
found: boolean;
|
|
36
|
+
} | {
|
|
37
|
+
found: boolean;
|
|
38
|
+
parents: any[];
|
|
39
|
+
};
|
|
40
|
+
setCollectionUnitBreadcrumb(): void;
|
|
41
|
+
isContentAlreadyPresentInSelectedScetionLevel(children: any): boolean;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceReorderComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceReorderComponent, "lib-resource-reorder", never, { "selectedContentDetails": { "alias": "selectedContentDetails"; "required": false; }; "collectionId": { "alias": "collectionId"; "required": false; }; "collectionUnits": { "alias": "collectionUnits"; "required": false; }; "programContext": { "alias": "programContext"; "required": false; }; "prevUnitSelect": { "alias": "prevUnitSelect"; "required": false; }; "collectionhierarcyData": { "alias": "collectionhierarcyData"; "required": false; }; }, { "moveEvent": "moveEvent"; }, never, never, false, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SkeletonLoaderComponent implements OnInit {
|
|
4
|
+
height: string;
|
|
5
|
+
width: string;
|
|
6
|
+
mTop: string;
|
|
7
|
+
skeletonStyles: object;
|
|
8
|
+
constructor();
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonLoaderComponent, "lib-skeleton-loader", never, { "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "mTop": { "alias": "mTop"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
3
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SilderEvent {
|
|
6
|
+
leftAnchor: number;
|
|
7
|
+
step: number;
|
|
8
|
+
rightAnchor: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class SliderComponent implements OnInit {
|
|
11
|
+
configService: ConfigService;
|
|
12
|
+
editorService: EditorService;
|
|
13
|
+
sliderValue: any;
|
|
14
|
+
editorDataInput: any;
|
|
15
|
+
leftAnchor: any;
|
|
16
|
+
rightAnchor: any;
|
|
17
|
+
step: any;
|
|
18
|
+
onChange: EventEmitter<SilderEvent>;
|
|
19
|
+
constructor(configService: ConfigService, editorService: EditorService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
onValueChange(event: any, key: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "lib-slider", never, { "editorDataInput": { "alias": "editorDataInput"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
2
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
3
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TemplateComponent implements OnInit, OnDestroy {
|
|
6
|
+
telemetryService: EditorTelemetryService;
|
|
7
|
+
configService: ConfigService;
|
|
8
|
+
templateList: any;
|
|
9
|
+
private modal;
|
|
10
|
+
templateSelection: EventEmitter<any>;
|
|
11
|
+
showButton: boolean;
|
|
12
|
+
templateSelected: any;
|
|
13
|
+
constructor(telemetryService: EditorTelemetryService, configService: ConfigService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
next(): void;
|
|
16
|
+
onClosePopup(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateComponent, "lib-template", never, { "templateList": { "alias": "templateList"; "required": false; }; }, { "templateSelection": "templateSelection"; }, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
3
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
4
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class TermAndConditionComponent implements OnInit {
|
|
7
|
+
editorService: EditorService;
|
|
8
|
+
configService: ConfigService;
|
|
9
|
+
telemetryService: EditorTelemetryService;
|
|
10
|
+
showEditingConsent: boolean;
|
|
11
|
+
showSubmitConfirmPopup: any;
|
|
12
|
+
sendForReviewOutput: EventEmitter<any>;
|
|
13
|
+
allConsent: boolean;
|
|
14
|
+
termsConsent: boolean;
|
|
15
|
+
editingConsent: boolean;
|
|
16
|
+
constructor(editorService: EditorService, configService: ConfigService, telemetryService: EditorTelemetryService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
get contentPolicyUrl(): any;
|
|
19
|
+
onConsentChange(event: any, consentType: any): void;
|
|
20
|
+
sendForReview(): void;
|
|
21
|
+
onModalClose(): void;
|
|
22
|
+
resetAll(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TermAndConditionComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TermAndConditionComponent, "lib-term-and-condition", never, { "showEditingConsent": { "alias": "showEditingConsent"; "required": false; }; "showSubmitConfirmPopup": { "alias": "showSubmitConfirmPopup"; "required": false; }; }, { "sendForReviewOutput": "sendForReviewOutput"; }, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ConfigService } from "../../services/config/config.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TranslationsComponent {
|
|
4
|
+
configService: ConfigService;
|
|
5
|
+
editorState: any;
|
|
6
|
+
sampleJson: {
|
|
7
|
+
body: {
|
|
8
|
+
en: string;
|
|
9
|
+
};
|
|
10
|
+
responseDeclaration: {
|
|
11
|
+
response1: {
|
|
12
|
+
maxScore: number;
|
|
13
|
+
cardinality: string;
|
|
14
|
+
type: string;
|
|
15
|
+
mapping: {
|
|
16
|
+
response: number;
|
|
17
|
+
outcomes: {
|
|
18
|
+
FEEDBACK: string;
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
interactionTypes: string[];
|
|
24
|
+
hints: {
|
|
25
|
+
en: string[];
|
|
26
|
+
};
|
|
27
|
+
instructions: {
|
|
28
|
+
en: string;
|
|
29
|
+
};
|
|
30
|
+
interactions: {
|
|
31
|
+
response1: {
|
|
32
|
+
type: string;
|
|
33
|
+
validation: {
|
|
34
|
+
required: string;
|
|
35
|
+
};
|
|
36
|
+
options: {
|
|
37
|
+
label: {
|
|
38
|
+
en: string[];
|
|
39
|
+
};
|
|
40
|
+
hints: {
|
|
41
|
+
en: string[];
|
|
42
|
+
};
|
|
43
|
+
value: number;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
solution: any[];
|
|
48
|
+
media: any[];
|
|
49
|
+
showEvidence: string;
|
|
50
|
+
evidence: {
|
|
51
|
+
required: string;
|
|
52
|
+
mimeType: string[];
|
|
53
|
+
minCount: number;
|
|
54
|
+
maxCount: number;
|
|
55
|
+
sizeLimit: string;
|
|
56
|
+
caption: string;
|
|
57
|
+
};
|
|
58
|
+
showRemarks: string;
|
|
59
|
+
remarks: {
|
|
60
|
+
maxLength: string;
|
|
61
|
+
required: string;
|
|
62
|
+
};
|
|
63
|
+
canBeNotApplicable: string;
|
|
64
|
+
};
|
|
65
|
+
constructor(configService: ConfigService);
|
|
66
|
+
editorDataHandler(event: any, type?: any): void;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationsComponent, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TranslationsComponent, "lib-translations", never, {}, {}, never, never, false, never>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as moment from 'moment';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Pipe for date format
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare class DateFormatPipe implements PipeTransform {
|
|
9
|
+
/**
|
|
10
|
+
* To create date format pipe
|
|
11
|
+
*
|
|
12
|
+
* @param {Date} value current Date, string or number
|
|
13
|
+
* @param {string} format format of Date
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
transform(value: Date | moment.Moment | string | number, format: string): string;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatPipe, never>;
|
|
18
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatPipe, "dateFormat", false>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface IInteractEventInput {
|
|
4
|
+
'edata': IInteractEventEdata;
|
|
5
|
+
}
|
|
6
|
+
export interface IInteractEventEdata {
|
|
7
|
+
'id': string;
|
|
8
|
+
'type': string;
|
|
9
|
+
'subtype'?: string;
|
|
10
|
+
'pageid'?: string;
|
|
11
|
+
'extra'?: {};
|
|
12
|
+
'target'?: string;
|
|
13
|
+
'plugin'?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* TelemetryInteract Directive
|
|
17
|
+
*/
|
|
18
|
+
export declare class TelemetryInteractDirective {
|
|
19
|
+
appTelemetryInteractData: IInteractEventInput;
|
|
20
|
+
telemetryService: EditorTelemetryService;
|
|
21
|
+
telemetryInteractEdata: any;
|
|
22
|
+
onClick(e: any): void;
|
|
23
|
+
constructor(telemetryService: EditorTelemetryService);
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TelemetryInteractDirective, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TelemetryInteractDirective, "[libTelemetryInteract]", never, { "telemetryInteractEdata": { "alias": "telemetryInteractEdata"; "required": false; }; }, {}, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare class McqOptions {
|
|
2
|
+
body: string;
|
|
3
|
+
constructor(body: string);
|
|
4
|
+
}
|
|
5
|
+
export interface McqData {
|
|
6
|
+
question: string;
|
|
7
|
+
options: Array<McqOptions>;
|
|
8
|
+
answer?: string;
|
|
9
|
+
learningOutcome?: string;
|
|
10
|
+
bloomsLevel?: string;
|
|
11
|
+
maxScore?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface McqConfig {
|
|
14
|
+
templateId?: string;
|
|
15
|
+
numberOfOptions?: number;
|
|
16
|
+
maximumOptions?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare class McqForm {
|
|
19
|
+
question: string;
|
|
20
|
+
options: Array<McqOptions>;
|
|
21
|
+
templateId: string;
|
|
22
|
+
answer: string;
|
|
23
|
+
learningOutcome: any;
|
|
24
|
+
bloomsLevel: any;
|
|
25
|
+
maxScore: any;
|
|
26
|
+
numberOfOptions: any;
|
|
27
|
+
maximumOptions: any;
|
|
28
|
+
constructor({ question, options, answer, learningOutcome, bloomsLevel, maxScore }: McqData, { templateId, numberOfOptions, maximumOptions }: McqConfig);
|
|
29
|
+
addOptions(): void;
|
|
30
|
+
deleteOption(position: any): void;
|
|
31
|
+
}
|