@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,37 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
3
|
+
import { QuestionService } from '../../services/question/question.service';
|
|
4
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AssignPageNumberComponent implements OnInit {
|
|
7
|
+
private editorService;
|
|
8
|
+
private treeService;
|
|
9
|
+
private questionService;
|
|
10
|
+
toolbarConfig: any;
|
|
11
|
+
pageId: string;
|
|
12
|
+
treeData: any;
|
|
13
|
+
questions: any[];
|
|
14
|
+
rendering_sequence: any;
|
|
15
|
+
assignPageEmitter: EventEmitter<any>;
|
|
16
|
+
recordedBy: any;
|
|
17
|
+
criteriaId: any;
|
|
18
|
+
createArray: any[];
|
|
19
|
+
pageNumArray: any[];
|
|
20
|
+
numArray: any[];
|
|
21
|
+
constructor(editorService: EditorService, treeService: TreeService, questionService: QuestionService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
toolbarEventListener(event: any): void;
|
|
24
|
+
redirectToQuestionSet(): void;
|
|
25
|
+
treeEventListener(event: any): void;
|
|
26
|
+
setPageNumber(event: any): void;
|
|
27
|
+
updateRenderingSequence(): void;
|
|
28
|
+
onValueChange(event: any, question: any, index: any): boolean;
|
|
29
|
+
setNewArrayToCreateArray(): void;
|
|
30
|
+
createArrayBySubjects(index: any, question: any): void;
|
|
31
|
+
addArrayToPage(): void;
|
|
32
|
+
clearInput(event: any, question: any, index: any): void;
|
|
33
|
+
findSequenceCriteria(): any;
|
|
34
|
+
createSequence(data: any): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssignPageNumberComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AssignPageNumberComponent, "lib-assign-page-number", never, {}, { "assignPageEmitter": "assignPageEmitter"; }, never, never, false, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { OnInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
3
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
4
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
5
|
+
import { BulkJobService } from '../../services/bulk-job/bulk-job.service';
|
|
6
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
7
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class BulkUploadComponent implements OnInit {
|
|
10
|
+
private toasterService;
|
|
11
|
+
private editorService;
|
|
12
|
+
configService: ConfigService;
|
|
13
|
+
private bulkJobService;
|
|
14
|
+
private treeService;
|
|
15
|
+
telemetryService: EditorTelemetryService;
|
|
16
|
+
collectionId: string;
|
|
17
|
+
fineUploaderUI: ElementRef;
|
|
18
|
+
bulkUploadEmitter: EventEmitter<any>;
|
|
19
|
+
storedCollectionData: any;
|
|
20
|
+
process: any;
|
|
21
|
+
oldProcessStatus: string;
|
|
22
|
+
stageStatus: string;
|
|
23
|
+
contents: Array<any>;
|
|
24
|
+
completionPercentage: number;
|
|
25
|
+
showBulkUploadModal: boolean;
|
|
26
|
+
bulkUploadState: number;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
telemetryPageId: string;
|
|
29
|
+
assetConfig: any;
|
|
30
|
+
uploader: any;
|
|
31
|
+
bulkUploadErrorMsgs: any[];
|
|
32
|
+
bulkUploadValidationError: string;
|
|
33
|
+
sampleMetadataCsvUrl: string;
|
|
34
|
+
constructor(toasterService: ToasterService, editorService: EditorService, configService: ConfigService, bulkJobService: BulkJobService, treeService: TreeService, telemetryService: EditorTelemetryService);
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
calculateCompletionPercentage(): void;
|
|
37
|
+
checkBulkUploadStatus(): void;
|
|
38
|
+
searchContentWithProcessId(): void;
|
|
39
|
+
downloadReport(): void;
|
|
40
|
+
updateJob(): void;
|
|
41
|
+
initiateDocumentUploadModal(): number;
|
|
42
|
+
initiateUploadModal(): void;
|
|
43
|
+
uploadContent(): void;
|
|
44
|
+
startBulkUpload(file: any, filename: any): void;
|
|
45
|
+
generatePreSignedUrl(filename: any): import("rxjs").Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
46
|
+
uploadToBlob(signedURL: any, file: any): any;
|
|
47
|
+
createImportRequest(fileUrl: any): import("rxjs").Observable<any>;
|
|
48
|
+
get questionSetMetadata(): any;
|
|
49
|
+
viewDetails($event: any): void;
|
|
50
|
+
getContentStatus(): string;
|
|
51
|
+
createJobRequest(rowsCount: any): import("rxjs").Observable<any>;
|
|
52
|
+
openBulkUploadModal(): Promise<void>;
|
|
53
|
+
closeBulkUploadModal(): void;
|
|
54
|
+
updateBulkUploadState(action: any): void;
|
|
55
|
+
getParentsHelper(tree: any, id: string, parents?: string): {
|
|
56
|
+
found: boolean;
|
|
57
|
+
} | {
|
|
58
|
+
found: boolean;
|
|
59
|
+
parents: string;
|
|
60
|
+
};
|
|
61
|
+
getParents(data: Array<any>, id: string): {
|
|
62
|
+
found: boolean;
|
|
63
|
+
} | {
|
|
64
|
+
found: boolean;
|
|
65
|
+
parents: string;
|
|
66
|
+
};
|
|
67
|
+
downloadSampleCSVFile(): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BulkUploadComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BulkUploadComponent, "lib-bulk-upload", never, {}, { "bulkUploadEmitter": "bulkUploadEmitter"; }, never, never, false, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { OnInit, AfterViewInit, EventEmitter, OnChanges, ElementRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { QuestionService } from '../../services/question/question.service';
|
|
4
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
5
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
6
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CkeditorToolComponent implements OnInit, AfterViewInit, OnChanges {
|
|
9
|
+
private questionService;
|
|
10
|
+
private editorService;
|
|
11
|
+
private toasterService;
|
|
12
|
+
configService: ConfigService;
|
|
13
|
+
editorRef: ElementRef;
|
|
14
|
+
editorDataInput: any;
|
|
15
|
+
editorDataOutput: EventEmitter<any>;
|
|
16
|
+
hasError: EventEmitter<any>;
|
|
17
|
+
videoDataOutput: EventEmitter<any>;
|
|
18
|
+
videoShow: any;
|
|
19
|
+
setCharacterLimit: number;
|
|
20
|
+
setImageLimit: any;
|
|
21
|
+
editorConfig: any;
|
|
22
|
+
imageUploadLoader: boolean;
|
|
23
|
+
editorInstance: any;
|
|
24
|
+
isEditorFocused: boolean;
|
|
25
|
+
limitExceeded: boolean;
|
|
26
|
+
charactersLeft: number;
|
|
27
|
+
isAssetBrowserReadOnly: boolean;
|
|
28
|
+
characterCount: any;
|
|
29
|
+
mediaobj: any;
|
|
30
|
+
initialized: boolean;
|
|
31
|
+
assetProxyUrl: any;
|
|
32
|
+
lastImgResizeWidth: any;
|
|
33
|
+
constructor(questionService: QuestionService, editorService: EditorService, toasterService: ToasterService, configService: ConfigService);
|
|
34
|
+
assetConfig: any;
|
|
35
|
+
myAssets: any[];
|
|
36
|
+
allImages: any[];
|
|
37
|
+
allVideos: any[];
|
|
38
|
+
selectedVideo: {};
|
|
39
|
+
loading: boolean;
|
|
40
|
+
isClosable: boolean;
|
|
41
|
+
selectedVideoId: string;
|
|
42
|
+
showAddButton: boolean;
|
|
43
|
+
showImagePicker: boolean;
|
|
44
|
+
showVideoPicker: boolean;
|
|
45
|
+
showImageUploadModal: boolean;
|
|
46
|
+
showVideoUploadModal: boolean;
|
|
47
|
+
acceptVideoType: any;
|
|
48
|
+
acceptImageType: any;
|
|
49
|
+
showErrorMsg: boolean;
|
|
50
|
+
errorMsg: string;
|
|
51
|
+
query: string;
|
|
52
|
+
assetsCount: any;
|
|
53
|
+
searchMyInput: string;
|
|
54
|
+
searchAllInput: any;
|
|
55
|
+
formData: any;
|
|
56
|
+
assestData: {};
|
|
57
|
+
formConfig: any;
|
|
58
|
+
initialFormConfig: any;
|
|
59
|
+
imageFormValid: boolean;
|
|
60
|
+
videoFile: any;
|
|
61
|
+
imageFile: any;
|
|
62
|
+
termsAndCondition: any;
|
|
63
|
+
assetName: any;
|
|
64
|
+
emptyImageSearchMessage: any;
|
|
65
|
+
emptyVideoSearchMessage: any;
|
|
66
|
+
ngOnInit(): void;
|
|
67
|
+
ngOnChanges(): void;
|
|
68
|
+
ngAfterViewInit(): void;
|
|
69
|
+
initializeImagePicker(editorType: any): void;
|
|
70
|
+
initializeVideoPicker(editorType: any): void;
|
|
71
|
+
/**
|
|
72
|
+
* function to hide image picker
|
|
73
|
+
*/
|
|
74
|
+
dismissImagePicker(): void;
|
|
75
|
+
/**
|
|
76
|
+
* function to hide video picker
|
|
77
|
+
*/
|
|
78
|
+
dismissVideoPicker(): void;
|
|
79
|
+
dismissImageUploadModal(): void;
|
|
80
|
+
initiateImageUploadModal(): void;
|
|
81
|
+
dismissVideoUploadModal(): void;
|
|
82
|
+
initiateVideoUploadModal(): void;
|
|
83
|
+
isEditorReadOnly(state: any): void;
|
|
84
|
+
getAcceptType(typeList: any, type: any): string;
|
|
85
|
+
customImageResizer(editor: any): void;
|
|
86
|
+
initializeEditors(): void;
|
|
87
|
+
changeTracker(editor: any): void;
|
|
88
|
+
pasteTracker(editor: any): void;
|
|
89
|
+
checkImageLimit(): void;
|
|
90
|
+
checkCharacterLimit(): void;
|
|
91
|
+
/**
|
|
92
|
+
* function to get images
|
|
93
|
+
* @param offset page no
|
|
94
|
+
*/
|
|
95
|
+
getMyImages(offset: any, query?: any, search?: any): void;
|
|
96
|
+
addImageInEditor(imageUrl: any, imageId: any, imageName: any): void;
|
|
97
|
+
addVideoInEditor(videoModal?: any): void;
|
|
98
|
+
getAllImages(offset: any, query?: any, search?: any): void;
|
|
99
|
+
/**
|
|
100
|
+
* function to get videos
|
|
101
|
+
* @param offset page no
|
|
102
|
+
*/
|
|
103
|
+
getMyVideos(offset: any, query?: any, search?: any): void;
|
|
104
|
+
getAllVideos(offset: any, query?: any, search?: any): void;
|
|
105
|
+
/**
|
|
106
|
+
* function to lazy load my images
|
|
107
|
+
*/
|
|
108
|
+
lazyloadMyImages(): void;
|
|
109
|
+
/**
|
|
110
|
+
* function to lazy load all images
|
|
111
|
+
*/
|
|
112
|
+
lazyloadAllImages(): void;
|
|
113
|
+
lazyloadMyVideos(): void;
|
|
114
|
+
/**
|
|
115
|
+
* function to lazy load all videos
|
|
116
|
+
*/
|
|
117
|
+
lazyloadAllVideos(): void;
|
|
118
|
+
/**
|
|
119
|
+
* function to upload image
|
|
120
|
+
*/
|
|
121
|
+
uploadImage(event: any): void;
|
|
122
|
+
resetFormConfig(): void;
|
|
123
|
+
populateFormData(formData: any): void;
|
|
124
|
+
uploadAndUseImage(modal: any): void;
|
|
125
|
+
openImageUploadModal(): void;
|
|
126
|
+
dismissPops(modal: any): void;
|
|
127
|
+
onStatusChanges(event: any): void;
|
|
128
|
+
valueChanges(event: any): void;
|
|
129
|
+
searchImages(event: any, type: any): void;
|
|
130
|
+
resetFormData(): void;
|
|
131
|
+
/**
|
|
132
|
+
* function to upload video
|
|
133
|
+
*/
|
|
134
|
+
openVideoUploadModal(): void;
|
|
135
|
+
dismissVideoPops(modal: any): void;
|
|
136
|
+
uploadVideoFromLocal(event: any): void;
|
|
137
|
+
uploadVideo(videoModal: any): void;
|
|
138
|
+
generateAssetCreateRequest(fileName: any, fileType: any, mediaType: any): {
|
|
139
|
+
name: any;
|
|
140
|
+
mediaType: any;
|
|
141
|
+
mimeType: any;
|
|
142
|
+
createdBy: any;
|
|
143
|
+
creator: any;
|
|
144
|
+
channel: any;
|
|
145
|
+
};
|
|
146
|
+
uploadToBlob(signedURL: any, file: any, config: any): Observable<any>;
|
|
147
|
+
updateContentWithURL(fileURL: any, mimeType: any, contentId: any, videoModal?: any): void;
|
|
148
|
+
getUploadVideo(videoId: any, videoModal?: any): void;
|
|
149
|
+
searchMyVideo(event: any): void;
|
|
150
|
+
searchAllVideo(event: any): void;
|
|
151
|
+
searchVideo(event: any, type: any): void;
|
|
152
|
+
selectVideo(data: any): void;
|
|
153
|
+
countCharacters(document: any): number;
|
|
154
|
+
countCharactersInElement(node: any): number;
|
|
155
|
+
getMediaOriginURL(src: any): any;
|
|
156
|
+
attachEvent(editor: any): void;
|
|
157
|
+
getCharactersLeft(): number;
|
|
158
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CkeditorToolComponent, never>;
|
|
159
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CkeditorToolComponent, "lib-ckeditor-tool", never, { "editorDataInput": { "alias": "editorDataInput"; "required": false; }; "videoShow": { "alias": "videoShow"; "required": false; }; "setCharacterLimit": { "alias": "setCharacterLimit"; "required": false; }; "setImageLimit": { "alias": "setImageLimit"; "required": false; }; }, { "editorDataOutput": "editorDataOutput"; "hasError": "hasError"; "videoDataOutput": "videoDataOutput"; }, never, never, false, never>;
|
|
160
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CollectionIconComponent implements OnInit {
|
|
5
|
+
configService: ConfigService;
|
|
6
|
+
appIcon: any;
|
|
7
|
+
appIconConfig: any;
|
|
8
|
+
iconEmitter: EventEmitter<any>;
|
|
9
|
+
showImagePicker: boolean;
|
|
10
|
+
constructor(configService: ConfigService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
initializeImagePicker(): void;
|
|
13
|
+
collectionIconHandler(event: any): void;
|
|
14
|
+
handleModalDismiss(event: any): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollectionIconComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollectionIconComponent, "lib-collection-icon", never, { "appIcon": { "alias": "appIcon"; "required": false; }; "appIconConfig": { "alias": "appIconConfig"; "required": false; }; }, { "iconEmitter": "iconEmitter"; }, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ElementRef, OnInit, OnChanges } from '@angular/core';
|
|
2
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
3
|
+
import { PlayerService } from '../../services/player/player.service';
|
|
4
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ContentplayerPageComponent implements OnInit, OnChanges {
|
|
7
|
+
private editorService;
|
|
8
|
+
private playerService;
|
|
9
|
+
configService: ConfigService;
|
|
10
|
+
contentIframe: ElementRef;
|
|
11
|
+
pdfPlayer: ElementRef;
|
|
12
|
+
epubPlayer: ElementRef;
|
|
13
|
+
videoPlayer: ElementRef;
|
|
14
|
+
contentMetadata: any;
|
|
15
|
+
contentDetails: any;
|
|
16
|
+
playerConfig: any;
|
|
17
|
+
content: any;
|
|
18
|
+
playerType: string;
|
|
19
|
+
contentId: string;
|
|
20
|
+
constructor(editorService: EditorService, playerService: PlayerService, configService: ConfigService);
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
ngOnChanges(): void;
|
|
23
|
+
getContentDetails(): void;
|
|
24
|
+
setPlayerType(): void;
|
|
25
|
+
loadDefaultPlayer(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Adjust player height after load
|
|
28
|
+
*/
|
|
29
|
+
adjustPlayerHeight(): void;
|
|
30
|
+
eventHandler(e: any): void;
|
|
31
|
+
generateContentReadEvent(e: any, state?: any): void;
|
|
32
|
+
setPlayerProperties(playerElement: any): void;
|
|
33
|
+
loadPlayer(): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentplayerPageComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentplayerPageComponent, "lib-contentplayer-page", never, { "contentMetadata": { "alias": "contentMetadata"; "required": false; }; }, {}, never, never, false, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OnInit, EventEmitter, NgZone } from '@angular/core';
|
|
2
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
3
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
4
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
5
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CsvUploadComponent implements OnInit {
|
|
9
|
+
telemetryService: EditorTelemetryService;
|
|
10
|
+
configService: ConfigService;
|
|
11
|
+
private toasterService;
|
|
12
|
+
private editorService;
|
|
13
|
+
private ngZone;
|
|
14
|
+
collectionId: any;
|
|
15
|
+
isCreateCsv: any;
|
|
16
|
+
csvUploadEmitter: EventEmitter<any>;
|
|
17
|
+
showSuccessCsv: boolean;
|
|
18
|
+
showCsvValidationStatus: boolean;
|
|
19
|
+
isUploadCsvEnable: boolean;
|
|
20
|
+
errorCsvStatus: boolean;
|
|
21
|
+
errorCsvMessage: any;
|
|
22
|
+
isClosable: boolean;
|
|
23
|
+
sampleCsvUrl: any;
|
|
24
|
+
updateCSVFile: boolean;
|
|
25
|
+
uploadCSVFile: boolean;
|
|
26
|
+
fileName: any;
|
|
27
|
+
file: any;
|
|
28
|
+
constructor(telemetryService: EditorTelemetryService, configService: ConfigService, toasterService: ToasterService, editorService: EditorService, ngZone: NgZone);
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
handleInputCondition(): void;
|
|
31
|
+
uploadCSV(event: any): void;
|
|
32
|
+
updateContentWithURL(fileURL: any, mimeType: any, contentId: any): void;
|
|
33
|
+
closeHierarchyModal(modal: any): void;
|
|
34
|
+
onClickReupload(): void;
|
|
35
|
+
resetConditions(): void;
|
|
36
|
+
downloadSampleCSVFile(): void;
|
|
37
|
+
uploadToBlob(signedURL: any, file: any, config: any): Observable<any>;
|
|
38
|
+
validateCSVFile(): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CsvUploadComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CsvUploadComponent, "lib-csv-upload", never, { "collectionId": { "alias": "collectionId"; "required": false; }; "isCreateCsv": { "alias": "isCreateCsv"; "required": false; }; }, { "csvUploadEmitter": "csvUploadEmitter"; }, never, never, false, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl, ValidatorFn } from '@angular/forms';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
5
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
6
|
+
import { DialcodeService } from '../../services/dialcode/dialcode.service';
|
|
7
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
8
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
9
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class DialcodeComponent implements OnInit {
|
|
12
|
+
telemetryService: EditorTelemetryService;
|
|
13
|
+
private treeService;
|
|
14
|
+
private dialcodeService;
|
|
15
|
+
private toasterService;
|
|
16
|
+
private httpClient;
|
|
17
|
+
configService: ConfigService;
|
|
18
|
+
private editorService;
|
|
19
|
+
minQRCode: number;
|
|
20
|
+
maxQRCode: number;
|
|
21
|
+
qrCodeCount: {
|
|
22
|
+
[key: string]: number;
|
|
23
|
+
};
|
|
24
|
+
disableQRDownloadBtn: boolean;
|
|
25
|
+
disableQRGenerateBtn: boolean;
|
|
26
|
+
isGeneratingQRCodes: boolean;
|
|
27
|
+
showQRCodePopup: boolean;
|
|
28
|
+
qrCodeProcessId: string;
|
|
29
|
+
dialcodeControl: FormControl;
|
|
30
|
+
contentId: string;
|
|
31
|
+
constructor(telemetryService: EditorTelemetryService, treeService: TreeService, dialcodeService: DialcodeService, toasterService: ToasterService, httpClient: HttpClient, configService: ConfigService, editorService: EditorService);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
setQRCodeCriteria(): void;
|
|
34
|
+
treeStatusListener(): void;
|
|
35
|
+
resolveQRDownloadBtn(): void;
|
|
36
|
+
doQRCodeCount(): void;
|
|
37
|
+
openRequestPopup(): void;
|
|
38
|
+
submitDialcodeForm(): void;
|
|
39
|
+
reserveDialCode(requestCount: number): void;
|
|
40
|
+
downloadQRCodes(): void;
|
|
41
|
+
get contentMetadata(): any;
|
|
42
|
+
downloadFile(url: string, filename: string): void;
|
|
43
|
+
keyPressNumbers(event: KeyboardEvent): boolean;
|
|
44
|
+
customDialcodeValidator(): ValidatorFn;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialcodeComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialcodeComponent, "lib-dialcode", never, {}, {}, never, never, false, never>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { OnDestroy, OnInit, ChangeDetectorRef, EventEmitter, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
3
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
4
|
+
import { FrameworkService } from '../../services/framework/framework.service';
|
|
5
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
6
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
7
|
+
import { HelperService } from '../../services/helper/helper.service';
|
|
8
|
+
import { IEditorConfig } from '../../interfaces/editor';
|
|
9
|
+
import { ICreationContext } from '../../interfaces/CreationContext';
|
|
10
|
+
import { Router } from '@angular/router';
|
|
11
|
+
import { Observable, Subscription, Subject } from 'rxjs';
|
|
12
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
13
|
+
import { DialcodeService } from '../../services/dialcode/dialcode.service';
|
|
14
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export declare class EditorComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
17
|
+
private editorService;
|
|
18
|
+
treeService: TreeService;
|
|
19
|
+
private frameworkService;
|
|
20
|
+
private helperService;
|
|
21
|
+
telemetryService: EditorTelemetryService;
|
|
22
|
+
private router;
|
|
23
|
+
private toasterService;
|
|
24
|
+
private dialcodeService;
|
|
25
|
+
configService: ConfigService;
|
|
26
|
+
private changeDetectionRef;
|
|
27
|
+
editorConfig: IEditorConfig | undefined;
|
|
28
|
+
editorEmitter: EventEmitter<any>;
|
|
29
|
+
private modal;
|
|
30
|
+
questionComponentInput: any;
|
|
31
|
+
creationContext: ICreationContext;
|
|
32
|
+
collectionTreeNodes: any;
|
|
33
|
+
selectedNodeData: any;
|
|
34
|
+
templateList: any;
|
|
35
|
+
showConfirmPopup: boolean;
|
|
36
|
+
terms: boolean;
|
|
37
|
+
pageId: string;
|
|
38
|
+
pageStartTime: any;
|
|
39
|
+
rootFormConfig: any;
|
|
40
|
+
unitFormConfig: any;
|
|
41
|
+
searchFormConfig: any;
|
|
42
|
+
leafFormConfig: any;
|
|
43
|
+
relationFormConfig: any;
|
|
44
|
+
showLibraryPage: boolean;
|
|
45
|
+
libraryComponentInput: any;
|
|
46
|
+
questionlibraryInput: any;
|
|
47
|
+
editorMode: any;
|
|
48
|
+
collectionId: any;
|
|
49
|
+
isCurrentNodeFolder: boolean;
|
|
50
|
+
isCurrentNodeRoot: boolean;
|
|
51
|
+
isQumlPlayer: boolean;
|
|
52
|
+
showQuestionTemplatePopup: boolean;
|
|
53
|
+
deleteConfirmMessage: any;
|
|
54
|
+
showDeleteConfirmationPopUp: boolean;
|
|
55
|
+
showPreview: boolean;
|
|
56
|
+
actionType: string;
|
|
57
|
+
private formStatusMapper;
|
|
58
|
+
targetFramework: any;
|
|
59
|
+
organisationFramework: any;
|
|
60
|
+
primaryCategoryDef: any;
|
|
61
|
+
collectionPrimaryCategoryDef: any;
|
|
62
|
+
toolbarConfig: any;
|
|
63
|
+
buttonLoaders: {
|
|
64
|
+
saveAsDraftButtonLoader: boolean;
|
|
65
|
+
addFromLibraryButtonLoader: boolean;
|
|
66
|
+
addQuestionFromLibraryButtonLoader: boolean;
|
|
67
|
+
previewButtonLoader: boolean;
|
|
68
|
+
showReviewComment: boolean;
|
|
69
|
+
};
|
|
70
|
+
contentComment: string;
|
|
71
|
+
showComment: boolean;
|
|
72
|
+
showReviewModal: boolean;
|
|
73
|
+
csvDropDownOptions: any;
|
|
74
|
+
showCsvUploadPopup: boolean;
|
|
75
|
+
objectType: string;
|
|
76
|
+
isObjectTypeCollection: any;
|
|
77
|
+
isCreateCsv: boolean;
|
|
78
|
+
isStatusReviewMode: boolean;
|
|
79
|
+
isEnableCsvAction: any;
|
|
80
|
+
isTreeInitialized: any;
|
|
81
|
+
ishierarchyConfigSet: boolean;
|
|
82
|
+
addCollaborator: boolean;
|
|
83
|
+
publishchecklist: any;
|
|
84
|
+
isComponenetInitialized: boolean;
|
|
85
|
+
unSubscribeShowLibraryPageEmitter: Subscription;
|
|
86
|
+
unSubscribeshowQuestionLibraryPageEmitter: Subscription;
|
|
87
|
+
sourcingSettings: any;
|
|
88
|
+
setChildQuestion: any;
|
|
89
|
+
unsubscribe$: Subject<void>;
|
|
90
|
+
onComponentDestroy$: Subject<any>;
|
|
91
|
+
outcomeDeclaration: any;
|
|
92
|
+
levelsArray: any;
|
|
93
|
+
constructor(editorService: EditorService, treeService: TreeService, frameworkService: FrameworkService, helperService: HelperService, telemetryService: EditorTelemetryService, router: Router, toasterService: ToasterService, dialcodeService: DialcodeService, configService: ConfigService, changeDetectionRef: ChangeDetectorRef);
|
|
94
|
+
unloadHandler(event: any): void;
|
|
95
|
+
ngOnInit(): void;
|
|
96
|
+
initializeFrameworkAndChannel(collection?: any): void;
|
|
97
|
+
getFrameworkDetails(categoryDefinitionData: any): void;
|
|
98
|
+
setEditorForms(categoryDefinitionData: any): void;
|
|
99
|
+
ngAfterViewInit(): void;
|
|
100
|
+
mergeCollectionExternalProperties(): Observable<any>;
|
|
101
|
+
sethierarchyConfig(primaryCatConfig: any): void;
|
|
102
|
+
fetchFrameWorkDetails(): void;
|
|
103
|
+
getHierarchyChildrenConfig(childrenData: any): any;
|
|
104
|
+
toggleCollaboratorModalPoup(): void;
|
|
105
|
+
toolbarEventListener(event: any): void;
|
|
106
|
+
redirectToChapterListTab(data?: any): void;
|
|
107
|
+
updateToolbarTitle(data: any): void;
|
|
108
|
+
showLibraryComponentPage(): void;
|
|
109
|
+
showQuestionLibraryComponentPage(): void;
|
|
110
|
+
libraryEventListener(event: any): void;
|
|
111
|
+
onQuestionLibraryChange(event: any): void;
|
|
112
|
+
addResourceToQuestionset(contentId: any, resourceType: any): void;
|
|
113
|
+
saveContent(): Promise<unknown>;
|
|
114
|
+
submitHandler(): void;
|
|
115
|
+
validateFormStatus(): boolean;
|
|
116
|
+
previewContent(): void;
|
|
117
|
+
sendForReview(): void;
|
|
118
|
+
rejectContent(comment: any): boolean;
|
|
119
|
+
publishContent(event: any): boolean;
|
|
120
|
+
sourcingApproveContent(event: any): boolean;
|
|
121
|
+
sourcingRejectContent(obj: any): boolean;
|
|
122
|
+
setUpdatedTreeNodeData(): void;
|
|
123
|
+
updateTreeNodeData(): void;
|
|
124
|
+
treeEventListener(event: any): void;
|
|
125
|
+
setTemplateList(): void;
|
|
126
|
+
deleteNode(): void;
|
|
127
|
+
updateSubmitBtnVisibility(): void;
|
|
128
|
+
generateTelemetryEndEvent(): void;
|
|
129
|
+
handleTemplateSelection($event: any): boolean;
|
|
130
|
+
redirectToQuestionTab(mode: any, interactionType?: any): void;
|
|
131
|
+
questionEventListener(event: any): void;
|
|
132
|
+
get contentPolicyUrl(): any;
|
|
133
|
+
showCommentAddedAgainstContent(): boolean;
|
|
134
|
+
handleCsvDropdownOptionsOnCollection(): void;
|
|
135
|
+
onClickFolder(): void;
|
|
136
|
+
setCsvDropDownOptionsDisable(disable?: any): void;
|
|
137
|
+
downloadHierarchyCsv(): void;
|
|
138
|
+
isReviewMode(): any;
|
|
139
|
+
downloadCSVFile(tocUrl: any): void;
|
|
140
|
+
hanndleCsvEmitter(event: any): void;
|
|
141
|
+
onFormStatusChange(form: any): void;
|
|
142
|
+
assignPageEmitterListener(event: any): void;
|
|
143
|
+
ngOnDestroy(): void;
|
|
144
|
+
setEvidence(control: any, depends: FormControl[], formGroup: FormGroup, loading: any, loaded: any): Observable<any>;
|
|
145
|
+
setEcm(control: any, depends: FormControl[], formGroup: FormGroup, loading: any, loaded: any): Observable<any>;
|
|
146
|
+
setAllowEcm(control: any, depends: FormControl[]): Observable<any>;
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditorComponent, never>;
|
|
148
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "lib-editor", never, { "editorConfig": { "alias": "editorConfig"; "required": false; }; }, { "editorEmitter": "editorEmitter"; }, never, never, false, never>;
|
|
149
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import 'jquery.fancytree';
|
|
3
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
4
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
5
|
+
import { HelperService } from '../../services/helper/helper.service';
|
|
6
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
7
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
8
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
9
|
+
import { DialcodeService } from '../../services/dialcode/dialcode.service';
|
|
10
|
+
import { Subject } from 'rxjs';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class FancyTreeComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
13
|
+
treeService: TreeService;
|
|
14
|
+
private editorService;
|
|
15
|
+
telemetryService: EditorTelemetryService;
|
|
16
|
+
private helperService;
|
|
17
|
+
private toasterService;
|
|
18
|
+
private cdr;
|
|
19
|
+
configService: ConfigService;
|
|
20
|
+
private dialcodeService;
|
|
21
|
+
tree: ElementRef;
|
|
22
|
+
nodes: any;
|
|
23
|
+
options: any;
|
|
24
|
+
buttonLoaders: any;
|
|
25
|
+
treeEventEmitter: EventEmitter<any>;
|
|
26
|
+
config: any;
|
|
27
|
+
showTree: boolean;
|
|
28
|
+
visibility: any;
|
|
29
|
+
showAddChildButton: boolean;
|
|
30
|
+
showAddSiblingButton: boolean;
|
|
31
|
+
rootNode: any;
|
|
32
|
+
showLibraryButton: boolean;
|
|
33
|
+
unsubscribe$: Subject<void>;
|
|
34
|
+
bulkUploadProcessingStatus: boolean;
|
|
35
|
+
nodeParentDependentMap: {};
|
|
36
|
+
treeData: any;
|
|
37
|
+
branchingObject: {};
|
|
38
|
+
rootMenuTemplate: string;
|
|
39
|
+
folderMenuTemplate: string;
|
|
40
|
+
contentMenuTemplate: string;
|
|
41
|
+
constructor(treeService: TreeService, editorService: EditorService, telemetryService: EditorTelemetryService, helperService: HelperService, toasterService: ToasterService, cdr: ChangeDetectorRef, configService: ConfigService, dialcodeService: DialcodeService);
|
|
42
|
+
private onComponentDestroy$;
|
|
43
|
+
ngOnInit(): void;
|
|
44
|
+
ngAfterViewInit(): void;
|
|
45
|
+
initialize(): void;
|
|
46
|
+
buildTreeFromFramework(data: any, tree?: any, level?: any): any;
|
|
47
|
+
removeIntermediateLevelsFromFramework(data: any, parentData?: any): any;
|
|
48
|
+
buildTree(data: any, tree?: any, level?: any): any;
|
|
49
|
+
isFolder(child: any): boolean;
|
|
50
|
+
getIconClass(child: any, level: number): any;
|
|
51
|
+
isContent(child: any): boolean;
|
|
52
|
+
renderTree(options: any): void;
|
|
53
|
+
getTreeConfig(): any;
|
|
54
|
+
eachNodeActionButton(node: any): void;
|
|
55
|
+
addChild(): void;
|
|
56
|
+
addSibling(): void;
|
|
57
|
+
getActiveNode(): any;
|
|
58
|
+
attachContextMenu(node: any, activeNode?: any): void;
|
|
59
|
+
dropNode(targetNode: any, currentNode: any): boolean;
|
|
60
|
+
dragDrop(node: any, data: any): boolean;
|
|
61
|
+
dropNotAllowed(): boolean;
|
|
62
|
+
maxTreeDepth(root: any): number;
|
|
63
|
+
checkContentAddition(targetNode: any, contentNode: any): boolean;
|
|
64
|
+
removeNode(isContent?: boolean): void;
|
|
65
|
+
handleActionButtons(el: any): void;
|
|
66
|
+
addFromLibrary(): void;
|
|
67
|
+
addQuestionFromLibrary(): void;
|
|
68
|
+
getTelemetryInteractEdata(id?: any): {
|
|
69
|
+
id: any;
|
|
70
|
+
type: string;
|
|
71
|
+
subtype: string;
|
|
72
|
+
pageid: any;
|
|
73
|
+
extra: {
|
|
74
|
+
values: any[];
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
createNewContent(): void;
|
|
78
|
+
moveDependentNodes(targetNode: any, currentNode: any): void;
|
|
79
|
+
rearrangeBranchingLogic(nodeId: any, currentSectionId: any, targetSectionId: any, dependentNodeIDs: any, movingNodeIds: any): void;
|
|
80
|
+
updateTreeCache(name: any, branchingLogic: any, id: any, additionalMetadata?: any): void;
|
|
81
|
+
ngOnDestroy(): void;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FancyTreeComponent, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FancyTreeComponent, "lib-fancy-tree", never, { "nodes": { "alias": "nodes"; "required": false; }; "options": { "alias": "options"; "required": false; }; "buttonLoaders": { "alias": "buttonLoaders"; "required": false; }; }, { "treeEventEmitter": "treeEventEmitter"; }, never, never, false, never>;
|
|
84
|
+
}
|