@deeksha2309/sunbird-collection-editor 8.0.7
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 +137 -0
- package/esm2022/lib/components/answer/answer.component.mjs +43 -0
- package/esm2022/lib/components/asset-browser/asset-browser.component.mjs +325 -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/ckeditor-tool/ckeditor-tool.component.mjs +895 -0
- package/esm2022/lib/components/collection-icon/collection-icon.component.mjs +43 -0
- package/esm2022/lib/components/contentplayer-page/contentplayer-page.component.mjs +351 -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 +1125 -0
- package/esm2022/lib/components/fancy-tree/fancy-tree.component.mjs +529 -0
- package/esm2022/lib/components/header/header.component.mjs +123 -0
- package/esm2022/lib/components/library/library.component.mjs +242 -0
- package/esm2022/lib/components/library-filter/library-filter.component.mjs +149 -0
- package/esm2022/lib/components/library-list/library-list.component.mjs +92 -0
- package/esm2022/lib/components/library-player/library-player.component.mjs +62 -0
- package/esm2022/lib/components/manage-collaborator/manage-collaborator.component.mjs +256 -0
- package/esm2022/lib/components/meta-form/meta-form.component.mjs +377 -0
- package/esm2022/lib/components/options/options.component.mjs +144 -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 +67 -0
- package/esm2022/lib/components/quality-params-modal/quality-params-modal.component.mjs +52 -0
- package/esm2022/lib/components/question/question.component.mjs +1360 -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/resource-reorder/resource-reorder.component.mjs +143 -0
- package/esm2022/lib/components/skeleton-loader/skeleton-loader.component.mjs +26 -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/directives/telemetry-interact/telemetry-interact.directive.mjs +33 -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/requestParam.mjs +2 -0
- package/esm2022/lib/interfaces/serverResponse.mjs +2 -0
- package/esm2022/lib/pipes/sanitize-html.pipe.mjs +20 -0
- package/esm2022/lib/services/config/category.config.json +8 -0
- package/esm2022/lib/services/config/config.service.mjs +27 -0
- package/esm2022/lib/services/config/editor.config.json +31 -0
- package/esm2022/lib/services/config/label.config.json +314 -0
- package/esm2022/lib/services/config/player.config.json +96 -0
- package/esm2022/lib/services/config/url.config.json +69 -0
- package/esm2022/lib/services/data/data.service.mjs +192 -0
- package/esm2022/lib/services/dialcode/dialcode.service.mjs +309 -0
- package/esm2022/lib/services/editor/editor.service.mjs +682 -0
- package/esm2022/lib/services/framework/framework.service.mjs +106 -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 +167 -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 +284 -0
- package/esm2022/project-sunbird-sunbird-collection-editor.mjs +5 -0
- package/esm2022/public-api.mjs +4 -0
- package/fesm2022/project-sunbird-sunbird-collection-editor.mjs +10138 -0
- package/fesm2022/project-sunbird-sunbird-collection-editor.mjs.map +1 -0
- package/index.d.ts +6 -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 +5 -0
- package/lib/collection-editor-cursor.service.d.ts.map +1 -0
- package/lib/collection-editor-library.component.d.ts +9 -0
- package/lib/collection-editor-library.component.d.ts.map +1 -0
- package/lib/collection-editor-library.module.d.ts +50 -0
- package/lib/collection-editor-library.module.d.ts.map +1 -0
- package/lib/components/answer/answer.component.d.ts +24 -0
- package/lib/components/answer/answer.component.d.ts.map +1 -0
- package/lib/components/asset-browser/asset-browser.component.d.ts +81 -0
- package/lib/components/asset-browser/asset-browser.component.d.ts.map +1 -0
- package/lib/components/asset-browser/asset-browser.data.d.ts +52 -0
- package/lib/components/asset-browser/asset-browser.data.d.ts.map +1 -0
- package/lib/components/assign-page-number/assign-page-number.component.d.ts +38 -0
- package/lib/components/assign-page-number/assign-page-number.component.d.ts.map +1 -0
- package/lib/components/ckeditor-tool/ckeditor-tool.component.d.ts +161 -0
- package/lib/components/ckeditor-tool/ckeditor-tool.component.d.ts.map +1 -0
- package/lib/components/collection-icon/collection-icon.component.d.ts +18 -0
- package/lib/components/collection-icon/collection-icon.component.d.ts.map +1 -0
- package/lib/components/contentplayer-page/contentplayer-page.component.d.ts +54 -0
- package/lib/components/contentplayer-page/contentplayer-page.component.d.ts.map +1 -0
- package/lib/components/csv-upload/csv-upload.component.d.ts +42 -0
- package/lib/components/csv-upload/csv-upload.component.d.ts.map +1 -0
- package/lib/components/dialcode/dialcode.component.d.ts +48 -0
- package/lib/components/dialcode/dialcode.component.d.ts.map +1 -0
- package/lib/components/editor/editor.component.d.ts +146 -0
- package/lib/components/editor/editor.component.d.ts.map +1 -0
- package/lib/components/fancy-tree/fancy-tree.component.d.ts +77 -0
- package/lib/components/fancy-tree/fancy-tree.component.d.ts.map +1 -0
- package/lib/components/header/header.component.d.ts +46 -0
- package/lib/components/header/header.component.d.ts.map +1 -0
- package/lib/components/library/library.component.d.ts +69 -0
- package/lib/components/library/library.component.d.ts.map +1 -0
- package/lib/components/library-filter/library-filter.component.d.ts +47 -0
- package/lib/components/library-filter/library-filter.component.d.ts.map +1 -0
- package/lib/components/library-list/library-list.component.d.ts +32 -0
- package/lib/components/library-list/library-list.component.d.ts.map +1 -0
- package/lib/components/library-player/library-player.component.d.ts +24 -0
- package/lib/components/library-player/library-player.component.d.ts.map +1 -0
- package/lib/components/manage-collaborator/manage-collaborator.component.d.ts +75 -0
- package/lib/components/manage-collaborator/manage-collaborator.component.d.ts.map +1 -0
- package/lib/components/meta-form/meta-form.component.d.ts +51 -0
- package/lib/components/meta-form/meta-form.component.d.ts.map +1 -0
- package/lib/components/options/options.component.d.ts +53 -0
- package/lib/components/options/options.component.d.ts.map +1 -0
- package/lib/components/plain-tree/plain-tree.component.d.ts +20 -0
- package/lib/components/plain-tree/plain-tree.component.d.ts.map +1 -0
- package/lib/components/progress-status/progress-status.component.d.ts +25 -0
- package/lib/components/progress-status/progress-status.component.d.ts.map +1 -0
- package/lib/components/publish-checklist/publish-checklist.component.d.ts +23 -0
- package/lib/components/publish-checklist/publish-checklist.component.d.ts.map +1 -0
- package/lib/components/quality-params-modal/quality-params-modal.component.d.ts +24 -0
- package/lib/components/quality-params-modal/quality-params-modal.component.d.ts.map +1 -0
- package/lib/components/question/question.component.d.ts +215 -0
- package/lib/components/question/question.component.d.ts.map +1 -0
- package/lib/components/quml-player/quml-player.component.d.ts +26 -0
- package/lib/components/quml-player/quml-player.component.d.ts.map +1 -0
- package/lib/components/qumlplayer-page/qumlplayer-page.component.d.ts +31 -0
- package/lib/components/qumlplayer-page/qumlplayer-page.component.d.ts.map +1 -0
- package/lib/components/resource-reorder/resource-reorder.component.d.ts +45 -0
- package/lib/components/resource-reorder/resource-reorder.component.d.ts.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.component.d.ts +13 -0
- package/lib/components/skeleton-loader/skeleton-loader.component.d.ts.map +1 -0
- package/lib/components/template/template.component.d.ts +21 -0
- package/lib/components/template/template.component.d.ts.map +1 -0
- package/lib/components/term-and-condition/term-and-condition.component.d.ts +26 -0
- package/lib/components/term-and-condition/term-and-condition.component.d.ts.map +1 -0
- package/lib/directives/telemetry-interact/telemetry-interact.directive.d.ts +27 -0
- package/lib/directives/telemetry-interact/telemetry-interact.directive.d.ts.map +1 -0
- package/lib/interfaces/McqForm.d.ts +32 -0
- package/lib/interfaces/McqForm.d.ts.map +1 -0
- package/lib/interfaces/editor.d.ts +78 -0
- package/lib/interfaces/editor.d.ts.map +1 -0
- package/lib/interfaces/framework.d.ts +46 -0
- package/lib/interfaces/framework.d.ts.map +1 -0
- package/lib/interfaces/httpOptions.d.ts +35 -0
- package/lib/interfaces/httpOptions.d.ts.map +1 -0
- package/lib/interfaces/requestParam.d.ts +24 -0
- package/lib/interfaces/requestParam.d.ts.map +1 -0
- package/lib/interfaces/serverResponse.d.ts +38 -0
- package/lib/interfaces/serverResponse.d.ts.map +1 -0
- package/lib/pipes/sanitize-html.pipe.d.ts +11 -0
- package/lib/pipes/sanitize-html.pipe.d.ts.map +1 -0
- package/lib/services/config/config.service.d.ts +13 -0
- package/lib/services/config/config.service.d.ts.map +1 -0
- package/lib/services/data/data.service.d.ts +85 -0
- package/lib/services/data/data.service.d.ts.map +1 -0
- package/lib/services/dialcode/dialcode.service.d.ts +36 -0
- package/lib/services/dialcode/dialcode.service.d.ts.map +1 -0
- package/lib/services/editor/editor.service.d.ts +150 -0
- package/lib/services/editor/editor.service.d.ts.map +1 -0
- package/lib/services/framework/framework.service.d.ts +35 -0
- package/lib/services/framework/framework.service.d.ts.map +1 -0
- package/lib/services/helper/helper.service.d.ts +41 -0
- package/lib/services/helper/helper.service.d.ts.map +1 -0
- package/lib/services/player/player.service.d.ts +33 -0
- package/lib/services/player/player.service.d.ts.map +1 -0
- package/lib/services/public-data/public-data.service.d.ts +15 -0
- package/lib/services/public-data/public-data.service.d.ts.map +1 -0
- package/lib/services/question/question.service.d.ts +30 -0
- package/lib/services/question/question.service.d.ts.map +1 -0
- package/lib/services/telemetry/telemetry.service.d.ts +45 -0
- package/lib/services/telemetry/telemetry.service.d.ts.map +1 -0
- package/lib/services/toaster/toaster.service.d.ts +50 -0
- package/lib/services/toaster/toaster.service.d.ts.map +1 -0
- package/lib/services/tree/tree.service.d.ts +51 -0
- package/lib/services/tree/tree.service.d.ts.map +1 -0
- package/package.json +32 -0
- package/project-sunbird-sunbird-collection-editor.d.ts.map +1 -0
- package/public-api.d.ts +4 -0
- package/public-api.d.ts.map +1 -0
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
}
|
|
38
|
+
//# sourceMappingURL=assign-page-number.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assign-page-number.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/assign-page-number/assign-page-number.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;;AAG/D,qBAKa,yBAA0B,YAAW,MAAM;IAe1C,OAAO,CAAC,aAAa;IAAiB,OAAO,CAAC,WAAW;IACzD,OAAO,CAAC,eAAe;IAdnC,aAAa,EAAE,GAAG,CAAM;IACxB,MAAM,SAAgB;IACtB,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,QAAM;IAEf,kBAAkB,EAAE,GAAG,CAAC;IACd,iBAAiB,oBAA2B;IACtD,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,EAAE,GAAG,CAAC;IAChB,WAAW,QAAM;IACjB,YAAY,QAAM;IAClB,QAAQ,QAAM;gBAEM,aAAa,EAAE,aAAa,EAAU,WAAW,EAAE,WAAW,EAC9D,eAAe,EAAE,eAAe;IAEpD,QAAQ;IAWR,oBAAoB,CAAC,KAAK,KAAA;IAQ1B,qBAAqB;IAIrB,iBAAiB,CAAC,KAAK,KAAA;IAsBvB,aAAa,CAAC,KAAK,KAAA;IAYrB,uBAAuB;IAarB,aAAa,CAAC,KAAK,KAAA,EAAE,QAAQ,KAAA,EAAE,KAAK,KAAA;IAkCpC,wBAAwB;IAQxB,qBAAqB,CAAC,KAAK,KAAA,EAAE,QAAQ,KAAA;IAcrC,cAAc;IAUd,UAAU,CAAC,KAAK,KAAA,EAAE,QAAQ,KAAA,EAAE,KAAK,KAAA;IAOjC,oBAAoB;IAMpB,cAAc,CAAC,IAAI,KAAA;yCAvKR,yBAAyB;2CAAzB,yBAAyB;CAgMrC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
}
|
|
161
|
+
//# sourceMappingURL=ckeditor-tool.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ckeditor-tool.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection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,KAAA,EAAE,SAAS,KAAA,EAAE,UAAU,CAAC,KAAA;IA0B9D,cAAc,CAAC,OAAO,KAAA,EAAE,UAAU,CAAC,KAAA;IAkBnC,aAAa,CAAC,KAAK,KAAA;IAInB,cAAc,CAAC,KAAK,KAAA;IAKpB,WAAW,CAAC,KAAK,KAAA,EAAE,IAAI,KAAA;IAgBvB,WAAW,CAAC,IAAI,KAAA;IAahB,eAAe,CAAC,QAAQ,KAAA;IAIxB,wBAAwB,CAAC,IAAI,KAAA;IAgB7B,iBAAiB,CAAC,GAAG,KAAA;IAWrB,WAAW,CAAC,MAAM,KAAA;IAWlB,iBAAiB;yCAp4BN,qBAAqB;2CAArB,qBAAqB;CA24BjC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
18
|
+
//# sourceMappingURL=collection-icon.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-icon.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/collection-icon/collection-icon.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAU,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;;AAErE,qBAKa,uBAAwB,YAAW,MAAM;IAMjC,aAAa,EAAE,aAAa;IALtC,OAAO,MAAC;IACR,aAAa,MAAC;IACb,WAAW,oBAA2B;IACzC,eAAe,UAAS;gBAEZ,aAAa,EAAE,aAAa;IAE/C,QAAQ;IAGR,qBAAqB;IAQrB,qBAAqB,CAAC,KAAK,KAAA;IAM3B,kBAAkB,CAAC,KAAK,KAAA;yCAzBb,uBAAuB;2CAAvB,uBAAuB;CA6BnC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ElementRef, OnInit, OnChanges, AfterViewInit, AfterViewChecked } 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 { FrameworkService } from '../../services/framework/framework.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ContentplayerPageComponent implements OnInit, OnChanges, AfterViewInit, AfterViewChecked {
|
|
8
|
+
private editorService;
|
|
9
|
+
private playerService;
|
|
10
|
+
configService: ConfigService;
|
|
11
|
+
private frameworkService;
|
|
12
|
+
private static readonly PLAYER_INITIALIZATION_TIMEOUT;
|
|
13
|
+
private static readonly CUSTOM_ELEMENT_CHECK_INTERVAL;
|
|
14
|
+
private static readonly CUSTOM_ELEMENT_MAX_ATTEMPTS;
|
|
15
|
+
contentIframe: ElementRef;
|
|
16
|
+
pdfPlayer: ElementRef;
|
|
17
|
+
epubPlayer: ElementRef;
|
|
18
|
+
videoPlayer: ElementRef;
|
|
19
|
+
contentMetadata: any;
|
|
20
|
+
contentDetails: any;
|
|
21
|
+
playerConfig: any;
|
|
22
|
+
content: any;
|
|
23
|
+
contentInfo: any;
|
|
24
|
+
contentInfoArray: any[];
|
|
25
|
+
playerType: string;
|
|
26
|
+
contentId: string;
|
|
27
|
+
private playerNeedsInitialization;
|
|
28
|
+
private viewInitialized;
|
|
29
|
+
constructor(editorService: EditorService, playerService: PlayerService, configService: ConfigService, frameworkService: FrameworkService);
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
ngAfterViewInit(): void;
|
|
32
|
+
ngAfterViewChecked(): void;
|
|
33
|
+
ngOnChanges(): void;
|
|
34
|
+
getContentDetails(): void;
|
|
35
|
+
initializeAndLoadPlayer(): void;
|
|
36
|
+
checkAndInitializePlayer(): void;
|
|
37
|
+
getPlayerElement(): ElementRef | null;
|
|
38
|
+
prepareContentInfoArray(): void;
|
|
39
|
+
capitalizeFirstLetter(str: string): string;
|
|
40
|
+
getColumnClass(index: number): string;
|
|
41
|
+
setPlayerType(): void;
|
|
42
|
+
loadDefaultPlayer(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Adjust player height after load
|
|
45
|
+
*/
|
|
46
|
+
adjustPlayerHeight(): void;
|
|
47
|
+
eventHandler(e: any): void;
|
|
48
|
+
generateContentReadEvent(e: any, state?: any): void;
|
|
49
|
+
setPlayerProperties(playerElement: any): void;
|
|
50
|
+
loadPlayer(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentplayerPageComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentplayerPageComponent, "lib-contentplayer-page", never, { "contentMetadata": { "alias": "contentMetadata"; "required": false; }; }, {}, never, never, false, never>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=contentplayer-page.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentplayer-page.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/contentplayer-page/contentplayer-page.component.ts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ER,eAAe;IAQf,kBAAkB;IAOlB,WAAW;IAQX,iBAAiB;IA0CjB,uBAAuB;IAoBvB,wBAAwB;IAQxB,gBAAgB,IAAI,UAAU,GAAG,IAAI;IAarC,uBAAuB;IAsBvB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAK1C,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAKrC,aAAa;IAWb,iBAAiB;IAwBjB;;OAEG;IACH,kBAAkB;IAQlB,YAAY,CAAC,CAAC,KAAA;IAEd,wBAAwB,CAAC,CAAC,KAAA,EAAE,KAAK,CAAC,KAAA;IAElC,mBAAmB,CAAC,aAAa,EAAE,GAAG;IAMtC,UAAU;yCAzNC,0BAA0B;2CAA1B,0BAA0B;CA+VtC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
42
|
+
//# sourceMappingURL=csv-upload.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csv-upload.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/csv-upload/csv-upload.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAiB,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,OAAO,EAAE,UAAU,EAAc,MAAM,MAAM,CAAC;;AAI9C,qBAKa,kBAAmB,YAAW,MAAM;IAe5B,gBAAgB,EAAE,sBAAsB;IAAS,aAAa,EAAE,aAAa;IACpF,OAAO,CAAC,cAAc;IAAkB,OAAO,CAAC,aAAa;IAAiB,OAAO,CAAC,MAAM;IAf/F,YAAY,MAAC;IACb,WAAW,MAAC;IACX,gBAAgB,oBAA2B;IAC9C,cAAc,UAAS;IACvB,uBAAuB,UAAS;IAChC,iBAAiB,UAAS;IAC1B,cAAc,UAAS;IACvB,eAAe,EAAE,GAAG,CAAC;IACrB,UAAU,UAAQ;IAClB,YAAY,EAAE,GAAG,CAAC;IAClB,aAAa,UAAS;IACtB,aAAa,UAAS;IACtB,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;gBACE,gBAAgB,EAAE,sBAAsB,EAAS,aAAa,EAAE,aAAa,EAC5E,cAAc,EAAE,cAAc,EAAU,aAAa,EAAE,aAAa,EAAU,MAAM,EAAE,MAAM;IAEhH,QAAQ,IAAI,IAAI;IAGhB,oBAAoB;IASpB,SAAS,CAAC,KAAK,KAAA;IAUf,oBAAoB,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,SAAS,KAAA;IA8BjD,mBAAmB,CAAC,KAAK,KAAA;IAOzB,eAAe;IASf,eAAe;IAOf,qBAAqB;IAUrB,YAAY,CAAC,SAAS,KAAA,EAAE,IAAI,KAAA,EAAE,MAAM,KAAA,GAAG,UAAU,CAAC,GAAG,CAAC;IAkBtD,eAAe;yCAzHJ,kBAAkB;2CAAlB,kBAAkB;CAwJ9B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
}
|
|
48
|
+
//# sourceMappingURL=dialcode.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialcode.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/dialcode/dialcode.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAmB,WAAW,EAAoB,WAAW,EAAc,MAAM,gBAAgB,CAAC;AAEzG,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;;AAErE,qBAKa,iBAAkB,YAAW,MAAM;IAc3B,gBAAgB,EAAE,sBAAsB;IAAE,OAAO,CAAC,WAAW;IACpE,OAAO,CAAC,eAAe;IAAmB,OAAO,CAAC,cAAc;IAChE,OAAO,CAAC,UAAU;IAAqB,aAAa,EAAE,aAAa;IACnE,OAAO,CAAC,aAAa;IAhB1B,SAAS,SAAK;IACd,SAAS,SAAO;IAChB,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAG5C;IACK,oBAAoB,UAAS;IAC7B,oBAAoB,UAAQ;IAC5B,mBAAmB,UAAS;IAC5B,eAAe,UAAS;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,WAAW,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;gBACN,gBAAgB,EAAE,sBAAsB,EAAU,WAAW,EAAE,WAAW,EACzE,eAAe,EAAE,eAAe,EAAU,cAAc,EAAE,cAAc,EACxE,UAAU,EAAE,UAAU,EAAS,aAAa,EAAE,aAAa,EAC3D,aAAa,EAAE,aAAa;IAEhD,QAAQ;IAKR,iBAAiB;IAUjB,kBAAkB;IAelB,oBAAoB;IAIpB,aAAa;IAWb,gBAAgB,IAAI,IAAI;IAUxB,kBAAkB,IAAI,IAAI;IAK1B,eAAe,CAAC,YAAY,EAAE,MAAM;IA0BpC,eAAe,IAAI,IAAI;IAsBvB,IAAI,eAAe,QAGlB;IAED,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAU1C,eAAe,CAAC,KAAK,EAAE,aAAa;IASpC,uBAAuB,IAAI,WAAW;yCAvJ3B,iBAAiB;2CAAjB,iBAAiB;CAoK7B"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { OnDestroy, OnInit, ChangeDetectorRef, EventEmitter, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
4
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
5
|
+
import { FrameworkService } from '../../services/framework/framework.service';
|
|
6
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
7
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
8
|
+
import { HelperService } from '../../services/helper/helper.service';
|
|
9
|
+
import { IEditorConfig } from '../../interfaces/editor';
|
|
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 * as i0 from "@angular/core";
|
|
15
|
+
export declare class EditorComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
16
|
+
private editorService;
|
|
17
|
+
treeService: TreeService;
|
|
18
|
+
private frameworkService;
|
|
19
|
+
private helperService;
|
|
20
|
+
telemetryService: EditorTelemetryService;
|
|
21
|
+
private router;
|
|
22
|
+
private toasterService;
|
|
23
|
+
private dialcodeService;
|
|
24
|
+
configService: ConfigService;
|
|
25
|
+
private changeDetectionRef;
|
|
26
|
+
editorConfig: IEditorConfig | undefined;
|
|
27
|
+
editorEmitter: EventEmitter<any>;
|
|
28
|
+
private modal;
|
|
29
|
+
questionComponentInput: any;
|
|
30
|
+
collectionTreeNodes: any;
|
|
31
|
+
selectedNodeData: any;
|
|
32
|
+
templateList: any;
|
|
33
|
+
showConfirmPopup: boolean;
|
|
34
|
+
terms: boolean;
|
|
35
|
+
pageId: string;
|
|
36
|
+
pageStartTime: any;
|
|
37
|
+
rootFormConfig: any;
|
|
38
|
+
unitFormConfig: any;
|
|
39
|
+
leafFormConfig: any;
|
|
40
|
+
showLibraryPage: boolean;
|
|
41
|
+
libraryComponentInput: any;
|
|
42
|
+
editorMode: any;
|
|
43
|
+
collectionId: any;
|
|
44
|
+
isCurrentNodeFolder: boolean;
|
|
45
|
+
isCurrentNodeRoot: boolean;
|
|
46
|
+
isQumlPlayer: boolean;
|
|
47
|
+
showQuestionTemplatePopup: boolean;
|
|
48
|
+
deleteConfirmMessage: any;
|
|
49
|
+
showDeleteConfirmationPopUp: boolean;
|
|
50
|
+
showPreview: boolean;
|
|
51
|
+
actionType: string;
|
|
52
|
+
private formStatusMapper;
|
|
53
|
+
targetFramework: any;
|
|
54
|
+
organisationFramework: any;
|
|
55
|
+
primaryCategoryDef: any;
|
|
56
|
+
toolbarConfig: any;
|
|
57
|
+
buttonLoaders: {
|
|
58
|
+
saveAsDraftButtonLoader: boolean;
|
|
59
|
+
addFromLibraryButtonLoader: boolean;
|
|
60
|
+
addQuestionFromLibraryButtonLoader: boolean;
|
|
61
|
+
previewButtonLoader: boolean;
|
|
62
|
+
showReviewComment: boolean;
|
|
63
|
+
};
|
|
64
|
+
contentComment: string;
|
|
65
|
+
showComment: boolean;
|
|
66
|
+
showReviewModal: boolean;
|
|
67
|
+
csvDropDownOptions: any;
|
|
68
|
+
showCsvUploadPopup: boolean;
|
|
69
|
+
isObjectTypeCollection: any;
|
|
70
|
+
isCreateCsv: boolean;
|
|
71
|
+
isStatusReviewMode: boolean;
|
|
72
|
+
isEnableCsvAction: any;
|
|
73
|
+
isTreeInitialized: any;
|
|
74
|
+
ishierarchyConfigSet: boolean;
|
|
75
|
+
addCollaborator: boolean;
|
|
76
|
+
publishchecklist: any;
|
|
77
|
+
isComponenetInitialized: boolean;
|
|
78
|
+
unSubscribeShowLibraryPageEmitter: Subscription;
|
|
79
|
+
unSubscribeshowQuestionLibraryPageEmitter: Subscription;
|
|
80
|
+
sourcingSettings: any;
|
|
81
|
+
setChildQuestion: any;
|
|
82
|
+
unsubscribe$: Subject<void>;
|
|
83
|
+
onComponentDestroy$: Subject<any>;
|
|
84
|
+
outcomeDeclaration: any;
|
|
85
|
+
levelsArray: any;
|
|
86
|
+
objectType: any;
|
|
87
|
+
relationFormConfig: any;
|
|
88
|
+
questionlibraryInput: any;
|
|
89
|
+
creationContext: any;
|
|
90
|
+
private evidenceMimeType;
|
|
91
|
+
private ecm;
|
|
92
|
+
constructor(editorService: EditorService, treeService: TreeService, frameworkService: FrameworkService, helperService: HelperService, telemetryService: EditorTelemetryService, router: Router, toasterService: ToasterService, dialcodeService: DialcodeService, configService: ConfigService, changeDetectionRef: ChangeDetectorRef);
|
|
93
|
+
unloadHandler(event: any): void;
|
|
94
|
+
ngOnInit(): void;
|
|
95
|
+
getFrameworkDetails(categoryDefinitionData: any): void;
|
|
96
|
+
setEditorForms(categoryDefinitionData: any): void;
|
|
97
|
+
ngAfterViewInit(): void;
|
|
98
|
+
mergeCollectionExternalProperties(): Observable<any>;
|
|
99
|
+
sethierarchyConfig(primaryCatConfig: any): void;
|
|
100
|
+
fetchFrameWorkDetails(): void;
|
|
101
|
+
getHierarchyChildrenConfig(childrenData: any): any;
|
|
102
|
+
toggleCollaboratorModalPoup(): void;
|
|
103
|
+
toolbarEventListener(event: any): void;
|
|
104
|
+
redirectToChapterListTab(data?: any): void;
|
|
105
|
+
updateToolbarTitle(data: any): void;
|
|
106
|
+
showLibraryComponentPage(): void;
|
|
107
|
+
showQuestionLibraryComponentPage(): void;
|
|
108
|
+
libraryEventListener(event: any): void;
|
|
109
|
+
saveContent(): Promise<unknown>;
|
|
110
|
+
submitHandler(): void;
|
|
111
|
+
validateFormStatus(): boolean;
|
|
112
|
+
previewContent(): void;
|
|
113
|
+
sendForReview(): void;
|
|
114
|
+
rejectContent(comment: any): boolean;
|
|
115
|
+
publishContent(event: any): boolean;
|
|
116
|
+
sourcingApproveContent(event: any): boolean;
|
|
117
|
+
sourcingRejectContent(obj: any): boolean;
|
|
118
|
+
setUpdatedTreeNodeData(): void;
|
|
119
|
+
updateTreeNodeData(): void;
|
|
120
|
+
treeEventListener(event: any): void;
|
|
121
|
+
setTemplateList(): void;
|
|
122
|
+
deleteNode(): void;
|
|
123
|
+
updateSubmitBtnVisibility(): void;
|
|
124
|
+
generateTelemetryEndEvent(): void;
|
|
125
|
+
handleTemplateSelection($event: any): boolean;
|
|
126
|
+
redirectToQuestionTab(mode: any, interactionType?: any): void;
|
|
127
|
+
questionEventListener(event: any): void;
|
|
128
|
+
get contentPolicyUrl(): any;
|
|
129
|
+
showCommentAddedAgainstContent(): boolean;
|
|
130
|
+
handleCsvDropdownOptionsOnCollection(): void;
|
|
131
|
+
onClickFolder(): void;
|
|
132
|
+
setCsvDropDownOptionsDisable(disable?: any): void;
|
|
133
|
+
downloadHierarchyCsv(): void;
|
|
134
|
+
isReviewMode(): any;
|
|
135
|
+
downloadCSVFile(tocUrl: any): void;
|
|
136
|
+
hanndleCsvEmitter(event: any): void;
|
|
137
|
+
onFormStatusChange(form: any): void;
|
|
138
|
+
assignPageEmitterListener(event: any): void;
|
|
139
|
+
ngOnDestroy(): void;
|
|
140
|
+
setEvidence(control: any, depends: FormControl[], formGroup: FormGroup, loading: any, loaded: any): Observable<any>;
|
|
141
|
+
setEcm(control: any, depends: FormControl[], formGroup: FormGroup, loading: any, loaded: any): Observable<any>;
|
|
142
|
+
setAllowEcm(control: any, depends: FormControl[]): Observable<any>;
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditorComponent, never>;
|
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "lib-editor", never, { "editorConfig": { "alias": "editorConfig"; "required": false; }; }, { "editorEmitter": "editorEmitter"; }, never, never, false, never>;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=editor.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/editor/editor.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAC2B,SAAS,EAAE,MAAM,EAAE,iBAAiB,EACpE,YAAY,EAA6B,aAAa,EACvD,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAwB,YAAY,EAAE,OAAO,EAA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MAAM,CAAC,OAAO,KAAA,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,KAAA,EAAE,MAAM,KAAA;IAgB7E,WAAW,CAAC,OAAO,KAAA,EAAE,OAAO,EAAE,WAAW,EAAE;yCA1mChC,eAAe;2CAAf,eAAe;CA0nC3B"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 * as i0 from "@angular/core";
|
|
11
|
+
export declare class FancyTreeComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
12
|
+
treeService: TreeService;
|
|
13
|
+
private editorService;
|
|
14
|
+
telemetryService: EditorTelemetryService;
|
|
15
|
+
private helperService;
|
|
16
|
+
private toasterService;
|
|
17
|
+
private cdr;
|
|
18
|
+
configService: ConfigService;
|
|
19
|
+
private dialcodeService;
|
|
20
|
+
tree: ElementRef;
|
|
21
|
+
nodes: any;
|
|
22
|
+
options: any;
|
|
23
|
+
buttonLoaders: any;
|
|
24
|
+
treeEventEmitter: EventEmitter<any>;
|
|
25
|
+
config: any;
|
|
26
|
+
showTree: boolean;
|
|
27
|
+
visibility: any;
|
|
28
|
+
showAddChildButton: boolean;
|
|
29
|
+
showAddSiblingButton: boolean;
|
|
30
|
+
rootNode: any;
|
|
31
|
+
showLibraryButton: boolean;
|
|
32
|
+
rootMenuTemplate: string;
|
|
33
|
+
folderMenuTemplate: string;
|
|
34
|
+
contentMenuTemplate: string;
|
|
35
|
+
nodeParentDependentMap: any;
|
|
36
|
+
bulkUploadProcessingStatus: any;
|
|
37
|
+
constructor(treeService: TreeService, editorService: EditorService, telemetryService: EditorTelemetryService, helperService: HelperService, toasterService: ToasterService, cdr: ChangeDetectorRef, configService: ConfigService, dialcodeService: DialcodeService);
|
|
38
|
+
private onComponentDestroy$;
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
ngAfterViewInit(): void;
|
|
41
|
+
private initialize;
|
|
42
|
+
buildTreeFromFramework(data: any, tree?: any, level?: any): any;
|
|
43
|
+
removeIntermediateLevelsFromFramework(data: any, parentData?: any): any;
|
|
44
|
+
buildTree(data: any, tree?: any, level?: any): any;
|
|
45
|
+
isFolder(child: any): boolean;
|
|
46
|
+
getIconClass(child: any, level: number): any;
|
|
47
|
+
isContent(child: any): boolean;
|
|
48
|
+
renderTree(options: any): void;
|
|
49
|
+
getTreeConfig(): any;
|
|
50
|
+
eachNodeActionButton(node: any): void;
|
|
51
|
+
addChild(): void;
|
|
52
|
+
addSibling(): void;
|
|
53
|
+
getActiveNode(): any;
|
|
54
|
+
attachContextMenu(node: any, activeNode?: any): void;
|
|
55
|
+
dropNode(targetNode: any, currentNode: any): boolean;
|
|
56
|
+
dragDrop(node: any, data: any): boolean;
|
|
57
|
+
dropNotAllowed(): boolean;
|
|
58
|
+
maxTreeDepth(root: any): number;
|
|
59
|
+
checkContentAddition(targetNode: any, contentNode: any): boolean;
|
|
60
|
+
removeNode(isContent?: boolean): void;
|
|
61
|
+
handleActionButtons(el: any): void;
|
|
62
|
+
addFromLibrary(): void;
|
|
63
|
+
getTelemetryInteractEdata(id?: any): {
|
|
64
|
+
id: any;
|
|
65
|
+
type: string;
|
|
66
|
+
subtype: string;
|
|
67
|
+
pageid: any;
|
|
68
|
+
extra: {
|
|
69
|
+
values: any[];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
createNewContent(): void;
|
|
73
|
+
ngOnDestroy(): void;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FancyTreeComponent, never>;
|
|
75
|
+
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>;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=fancy-tree.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fancy-tree.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/fancy-tree/fancy-tree.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACM,aAAa,EAAoB,UAAU,EAAU,YAAY,EAC5E,SAAS,EAAE,MAAM,EAAqB,iBAAiB,EACxD,MAAM,eAAe,CAAC;AACvB,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAG,eAAe,EAAE,MAAM,0CAA0C,CAAC;;AAQ5E,qBAMa,kBAAmB,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS;IA+BtD,WAAW,EAAE,WAAW;IAAE,OAAO,CAAC,aAAa;IAC/C,gBAAgB,EAAE,sBAAsB;IAAE,OAAO,CAAC,aAAa;IACtE,OAAO,CAAC,cAAc;IAAkB,OAAO,CAAC,GAAG;IAC5C,aAAa,EAAE,aAA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