@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,83 @@
|
|
|
1
|
+
export interface Context {
|
|
2
|
+
programId?: string;
|
|
3
|
+
contributionOrgId?: string;
|
|
4
|
+
user: User;
|
|
5
|
+
identifier?: string;
|
|
6
|
+
mode?: string;
|
|
7
|
+
authToken?: string;
|
|
8
|
+
sid: string;
|
|
9
|
+
did: string;
|
|
10
|
+
uid: string;
|
|
11
|
+
channel: string;
|
|
12
|
+
pdata: Pdata;
|
|
13
|
+
contextRollup: ContextRollup;
|
|
14
|
+
tags: string[];
|
|
15
|
+
cdata?: Cdata[];
|
|
16
|
+
timeDiff?: number;
|
|
17
|
+
objectRollup?: ObjectRollup;
|
|
18
|
+
host?: string;
|
|
19
|
+
endpoint?: string;
|
|
20
|
+
userData?: {
|
|
21
|
+
firstName: string;
|
|
22
|
+
lastName: string;
|
|
23
|
+
};
|
|
24
|
+
env: string;
|
|
25
|
+
defaultLicense?: any;
|
|
26
|
+
board?: any;
|
|
27
|
+
medium?: any;
|
|
28
|
+
gradeLevel?: any;
|
|
29
|
+
subject?: any;
|
|
30
|
+
topic?: any;
|
|
31
|
+
framework: string;
|
|
32
|
+
cloudStorageUrls?: string[];
|
|
33
|
+
additionalCategories?: any[];
|
|
34
|
+
labels?: any;
|
|
35
|
+
actor?: any;
|
|
36
|
+
channelData?: any;
|
|
37
|
+
correctionComments?: any;
|
|
38
|
+
sourcingResourceStatus?: string;
|
|
39
|
+
sourcingResourceStatusClass?: string;
|
|
40
|
+
collectionIdentifier?: string;
|
|
41
|
+
unitIdentifier?: string;
|
|
42
|
+
collectionObjectType?: string;
|
|
43
|
+
collectionPrimaryCategory?: string;
|
|
44
|
+
targetFWIds?: string[];
|
|
45
|
+
cloudStorage?: any;
|
|
46
|
+
}
|
|
47
|
+
export interface User {
|
|
48
|
+
id: string;
|
|
49
|
+
name?: string;
|
|
50
|
+
orgIds: string[];
|
|
51
|
+
organisations?: any;
|
|
52
|
+
fullName?: string;
|
|
53
|
+
firstName?: string;
|
|
54
|
+
lastName?: string;
|
|
55
|
+
isRootOrgAdmin?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface Pdata {
|
|
58
|
+
id: string;
|
|
59
|
+
pid: string;
|
|
60
|
+
ver: string;
|
|
61
|
+
}
|
|
62
|
+
export interface ContextRollup {
|
|
63
|
+
l1?: string;
|
|
64
|
+
l2?: string;
|
|
65
|
+
l3?: string;
|
|
66
|
+
l4?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface Cdata {
|
|
69
|
+
type: string;
|
|
70
|
+
id: string;
|
|
71
|
+
}
|
|
72
|
+
export interface ObjectRollup {
|
|
73
|
+
l1?: string;
|
|
74
|
+
l2?: string;
|
|
75
|
+
l3?: string;
|
|
76
|
+
l4?: string;
|
|
77
|
+
}
|
|
78
|
+
export interface IEditorConfig {
|
|
79
|
+
context: Context;
|
|
80
|
+
config: any;
|
|
81
|
+
metadata?: any;
|
|
82
|
+
data?: any;
|
|
83
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ServerResponse } from './serverResponse';
|
|
2
|
+
export interface Framework {
|
|
3
|
+
err: ServerResponse;
|
|
4
|
+
frameworkdata: FrameworkData;
|
|
5
|
+
}
|
|
6
|
+
export interface FrameworkData {
|
|
7
|
+
[keys: string]: FrameworkCategories | any;
|
|
8
|
+
}
|
|
9
|
+
export interface FrameworkCategories {
|
|
10
|
+
code: string;
|
|
11
|
+
description: string;
|
|
12
|
+
identifier: string;
|
|
13
|
+
name: string;
|
|
14
|
+
objectType: string;
|
|
15
|
+
type: string;
|
|
16
|
+
Categories: Array<CategoriesData>;
|
|
17
|
+
}
|
|
18
|
+
export interface CategoriesData {
|
|
19
|
+
code: string;
|
|
20
|
+
description: string;
|
|
21
|
+
identifier: string;
|
|
22
|
+
index: number;
|
|
23
|
+
name: string;
|
|
24
|
+
status: string;
|
|
25
|
+
terms: Array<TermsData>;
|
|
26
|
+
}
|
|
27
|
+
export interface TermsData {
|
|
28
|
+
associations: Array<AssociationsData>;
|
|
29
|
+
category: string;
|
|
30
|
+
code: string;
|
|
31
|
+
description: string;
|
|
32
|
+
identifier: string;
|
|
33
|
+
index: string;
|
|
34
|
+
name: string;
|
|
35
|
+
status: string;
|
|
36
|
+
}
|
|
37
|
+
export interface AssociationsData {
|
|
38
|
+
category: string;
|
|
39
|
+
code: string;
|
|
40
|
+
description: string;
|
|
41
|
+
identifier: string;
|
|
42
|
+
index: string;
|
|
43
|
+
name: string;
|
|
44
|
+
status: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HttpParams, HttpHeaders } from '@angular/common/http';
|
|
2
|
+
/**
|
|
3
|
+
* http method options
|
|
4
|
+
*/
|
|
5
|
+
export interface HttpOptions {
|
|
6
|
+
/**
|
|
7
|
+
* http header
|
|
8
|
+
*/
|
|
9
|
+
headers?: HttpHeaders | {
|
|
10
|
+
[header: string]: string | any;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* http params
|
|
14
|
+
*/
|
|
15
|
+
params?: HttpParams | {
|
|
16
|
+
[param: string]: string | string[];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* report Progress
|
|
20
|
+
*/
|
|
21
|
+
reportProgress?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* response Type
|
|
24
|
+
*/
|
|
25
|
+
responseType?: 'json';
|
|
26
|
+
/**
|
|
27
|
+
* body for delete
|
|
28
|
+
*/
|
|
29
|
+
body?: any;
|
|
30
|
+
/**
|
|
31
|
+
* if value is response , headers will be returned in api response
|
|
32
|
+
*/
|
|
33
|
+
observe?: any;
|
|
34
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parameters for api calls
|
|
3
|
+
*/
|
|
4
|
+
export interface RequestParam {
|
|
5
|
+
/**
|
|
6
|
+
* http data
|
|
7
|
+
*/
|
|
8
|
+
url: string;
|
|
9
|
+
/**
|
|
10
|
+
* http params
|
|
11
|
+
*/
|
|
12
|
+
param?: any;
|
|
13
|
+
/**
|
|
14
|
+
* http header
|
|
15
|
+
*/
|
|
16
|
+
header?: {
|
|
17
|
+
[key: string]: string | string[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* http data
|
|
21
|
+
*/
|
|
22
|
+
data?: any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* server response
|
|
3
|
+
*/
|
|
4
|
+
export interface ServerResponse {
|
|
5
|
+
/**
|
|
6
|
+
* api data
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* response param
|
|
11
|
+
*/
|
|
12
|
+
params: Params;
|
|
13
|
+
/**
|
|
14
|
+
* response code
|
|
15
|
+
*/
|
|
16
|
+
responseCode: string;
|
|
17
|
+
/**
|
|
18
|
+
* server result
|
|
19
|
+
*/
|
|
20
|
+
result: any;
|
|
21
|
+
/**
|
|
22
|
+
* time stamp
|
|
23
|
+
*/
|
|
24
|
+
ts: string;
|
|
25
|
+
/**
|
|
26
|
+
* api version
|
|
27
|
+
*/
|
|
28
|
+
ver: string;
|
|
29
|
+
headers?: any;
|
|
30
|
+
}
|
|
31
|
+
export interface Params {
|
|
32
|
+
resmsgid: string;
|
|
33
|
+
msgid?: any;
|
|
34
|
+
err?: any;
|
|
35
|
+
status: string;
|
|
36
|
+
errmsg?: any;
|
|
37
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InterpolatePipe implements PipeTransform {
|
|
4
|
+
transform(text: string, replaceText: string, replacedWith: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InterpolatePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InterpolatePipe, "interpolate", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SanitizeHtmlPipe implements PipeTransform {
|
|
5
|
+
private _sanitizer;
|
|
6
|
+
constructor(_sanitizer: DomSanitizer);
|
|
7
|
+
transform(value: string): SafeHtml;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SanitizeHtmlPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SanitizeHtmlPipe, "sanitizeHtml", false>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { PublicDataService } from '../public-data/public-data.service';
|
|
3
|
+
import { ConfigService } from '../config/config.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BulkJobService {
|
|
6
|
+
private publicDataService;
|
|
7
|
+
configService: ConfigService;
|
|
8
|
+
constructor(publicDataService: PublicDataService, configService: ConfigService);
|
|
9
|
+
getBulkOperationStatus(reqData: any): Observable<any>;
|
|
10
|
+
searchContentWithProcessId(processId: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
11
|
+
createBulkJob(reqData: any): Observable<any>;
|
|
12
|
+
updateBulkJob(reqData: any): Observable<any>;
|
|
13
|
+
createBulkImport(reqData: any, headers: any): Observable<any>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BulkJobService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BulkJobService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ConfigService {
|
|
3
|
+
urlConFig: any;
|
|
4
|
+
categoryConfig: any;
|
|
5
|
+
labelConfig: any;
|
|
6
|
+
playerConfig: any;
|
|
7
|
+
editorConfig: any;
|
|
8
|
+
sessionContext: Array<string>;
|
|
9
|
+
constructor();
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { ServerResponse } from '../../interfaces/serverResponse';
|
|
4
|
+
import { RequestParam } from '../../interfaces/requestParam';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Service to provide base CRUD methods to make api request.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare class DataService {
|
|
11
|
+
/**
|
|
12
|
+
* Contains rootOrg Id
|
|
13
|
+
*/
|
|
14
|
+
rootOrgId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Contains channel Id
|
|
17
|
+
*/
|
|
18
|
+
channelId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Contains appId
|
|
21
|
+
*/
|
|
22
|
+
appId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Contains devoce Id
|
|
25
|
+
*/
|
|
26
|
+
deviceId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Contains base Url for api end points
|
|
29
|
+
*/
|
|
30
|
+
baseUrl: string;
|
|
31
|
+
/**
|
|
32
|
+
* angular HttpClient
|
|
33
|
+
*/
|
|
34
|
+
http: HttpClient;
|
|
35
|
+
_document: Document;
|
|
36
|
+
/**
|
|
37
|
+
* Constructor
|
|
38
|
+
* @param HttpClient http HttpClient reference
|
|
39
|
+
*/
|
|
40
|
+
constructor(http: HttpClient);
|
|
41
|
+
/**
|
|
42
|
+
* for making get api calls which needs headers in response
|
|
43
|
+
* headers are fetched to get server time using Date attribute in header
|
|
44
|
+
* @param requestParam interface
|
|
45
|
+
*/
|
|
46
|
+
getWithHeaders(requestParam: RequestParam): Observable<ServerResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* for making get api calls
|
|
49
|
+
*
|
|
50
|
+
* @param requestParam interface
|
|
51
|
+
*/
|
|
52
|
+
get(requestParam: RequestParam): Observable<ServerResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* for making post api calls with headers in response object
|
|
55
|
+
*
|
|
56
|
+
* @param RequestParam requestParam interface
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
postWithHeaders(requestParam: RequestParam): Observable<any>;
|
|
60
|
+
/**
|
|
61
|
+
* for making post api calls
|
|
62
|
+
* @param RequestParam requestParam interface
|
|
63
|
+
*/
|
|
64
|
+
post(requestParam: RequestParam): Observable<ServerResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* for making patch api calls
|
|
67
|
+
*
|
|
68
|
+
* @param RequestParam requestParam interface
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
patch(requestParam: RequestParam): Observable<ServerResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* for making delete api calls
|
|
74
|
+
* @param RequestParam requestParam interface
|
|
75
|
+
*/
|
|
76
|
+
delete(requestParam: RequestParam): Observable<ServerResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* for preparing headers
|
|
79
|
+
*/
|
|
80
|
+
private getHeader;
|
|
81
|
+
private getDateDiff;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
|
|
83
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
|
|
84
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { DialcodeCursor } from '@project-sunbird/common-form-elements-full';
|
|
3
|
+
import { ConfigService } from '../config/config.service';
|
|
4
|
+
import { PublicDataService } from '../public-data/public-data.service';
|
|
5
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
6
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DialcodeService implements DialcodeCursor {
|
|
9
|
+
configService: ConfigService;
|
|
10
|
+
private publicDataService;
|
|
11
|
+
private treeService;
|
|
12
|
+
private toasterService;
|
|
13
|
+
invaliddialCodeMap: {};
|
|
14
|
+
dialCodeMap: {};
|
|
15
|
+
dialcodeList: any[];
|
|
16
|
+
private maxChar;
|
|
17
|
+
constructor(configService: ConfigService, publicDataService: PublicDataService, treeService: TreeService, toasterService: ToasterService);
|
|
18
|
+
reserveDialCode(indetifier: any, requestCount: any): Observable<any>;
|
|
19
|
+
linkDialcode(indetifier: any, dialcodes: any): Observable<any>;
|
|
20
|
+
downloadQRCode(processId: any): Observable<any>;
|
|
21
|
+
searchDialCode(dialcode: any): Observable<any>;
|
|
22
|
+
updateDialCode(dialcode: any): Observable<any>;
|
|
23
|
+
clearDialCode(): void;
|
|
24
|
+
changeDialCode(dialcode: any): void;
|
|
25
|
+
validateDialCode(dialcode: any): Observable<any>;
|
|
26
|
+
checkDuplicateDialCode(activeQRCode: any): boolean;
|
|
27
|
+
validateUnitsDialcodes(): boolean;
|
|
28
|
+
highlightNodeForInvalidDialCode(res: any, nodesModified: any, indetifier: any): void;
|
|
29
|
+
storeDialCodes(nodeId: any, dialCode: any): void;
|
|
30
|
+
dialcodeLink(dialcodeMap: any, indetifier: any): void;
|
|
31
|
+
readExistingQrCode(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialcodeService, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialcodeService>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { TreeService } from '../tree/tree.service';
|
|
4
|
+
import { PublicDataService } from '../public-data/public-data.service';
|
|
5
|
+
import { IEditorConfig } from '../../interfaces/editor';
|
|
6
|
+
import { ConfigService } from '../config/config.service';
|
|
7
|
+
import { ToasterService } from '../../services/toaster/toaster.service';
|
|
8
|
+
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
9
|
+
import { DataService } from '../data/data.service';
|
|
10
|
+
import { HttpClient } from '@angular/common/http';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
interface SelectedChildren {
|
|
13
|
+
label?: string;
|
|
14
|
+
primaryCategory?: string;
|
|
15
|
+
mimeType?: string;
|
|
16
|
+
interactionType?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class EditorService {
|
|
19
|
+
treeService: TreeService;
|
|
20
|
+
private toasterService;
|
|
21
|
+
configService: ConfigService;
|
|
22
|
+
private telemetryService;
|
|
23
|
+
private publicDataService;
|
|
24
|
+
private dataService;
|
|
25
|
+
httpClient: HttpClient;
|
|
26
|
+
data: any;
|
|
27
|
+
private _selectedChildren;
|
|
28
|
+
questionStream$: Subject<any>;
|
|
29
|
+
private _editorConfig;
|
|
30
|
+
private _editorMode;
|
|
31
|
+
private _isReviewerEditEnable;
|
|
32
|
+
private _isReviewModificationAllowed;
|
|
33
|
+
showLibraryPage: EventEmitter<any>;
|
|
34
|
+
showQuestionLibraryPage: EventEmitter<any>;
|
|
35
|
+
private _bulkUploadStatus$;
|
|
36
|
+
readonly bulkUploadStatus$: Observable<any>;
|
|
37
|
+
contentsCount: number;
|
|
38
|
+
templateList: any[];
|
|
39
|
+
parentIdentifier: any;
|
|
40
|
+
branchingLogic: {};
|
|
41
|
+
selectedSection: any;
|
|
42
|
+
optionsLength: any;
|
|
43
|
+
selectedPrimaryCategory: any;
|
|
44
|
+
leafParentIdentifier: any;
|
|
45
|
+
questionIds: any[];
|
|
46
|
+
outcomeDeclaration: any;
|
|
47
|
+
treeData: any;
|
|
48
|
+
private _qualityFormConfig;
|
|
49
|
+
private _isReviewerQualityCheckEnabled;
|
|
50
|
+
constructor(treeService: TreeService, toasterService: ToasterService, configService: ConfigService, telemetryService: EditorTelemetryService, publicDataService: PublicDataService, dataService: DataService, httpClient: HttpClient);
|
|
51
|
+
initialize(config: IEditorConfig): void;
|
|
52
|
+
set selectedChildren(value: SelectedChildren);
|
|
53
|
+
get selectedChildren(): SelectedChildren;
|
|
54
|
+
get editorConfig(): IEditorConfig;
|
|
55
|
+
get editorMode(): string;
|
|
56
|
+
get isReviewerEditEnable(): boolean;
|
|
57
|
+
private setIsReviewerEditEnable;
|
|
58
|
+
get isReviewModificationAllowed(): boolean;
|
|
59
|
+
setIsReviewModificationAllowed(value: boolean): boolean;
|
|
60
|
+
get contentPolicyUrl(): any;
|
|
61
|
+
getToolbarConfig(): any;
|
|
62
|
+
nextBulkUploadStatus(status: any): void;
|
|
63
|
+
emitshowLibraryPageEvent(page: any): void;
|
|
64
|
+
getshowLibraryPageEmitter(): EventEmitter<any>;
|
|
65
|
+
emitshowQuestionLibraryPageEvent(page: any): void;
|
|
66
|
+
getshowQuestionLibraryPageEmitter(): EventEmitter<any>;
|
|
67
|
+
getQuestionList(questionIds: string[]): Observable<any>;
|
|
68
|
+
fetchCollectionHierarchy(collectionId: any): Observable<any>;
|
|
69
|
+
readQuestionSet(questionSetId: any, option?: any): Observable<any>;
|
|
70
|
+
fetchContentDetails(contentId: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
71
|
+
updateHierarchy(): Observable<any>;
|
|
72
|
+
getFieldsToUpdate(collectionId: any): {};
|
|
73
|
+
updateCollection(collectionId: any, event?: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
74
|
+
reviewContent(contentId: any): Observable<any>;
|
|
75
|
+
submitRequestChanges(contentId: any, comment: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
76
|
+
publishContent(contentId: any, event: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
77
|
+
addResourceToHierarchy(collection: any, unitIdentifier: any, contentId: any): Observable<any>;
|
|
78
|
+
addResourceToQuestionset(collection: any, unitIdentifier: any, contentId: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
79
|
+
getQuestionStream$(): Subject<any>;
|
|
80
|
+
publish(value: any): void;
|
|
81
|
+
setQuestionIds(childrens: any): void;
|
|
82
|
+
getMaxScore(): Promise<number>;
|
|
83
|
+
calculateMaxScore(questions: Array<any>): any;
|
|
84
|
+
getCollectionHierarchy(): {
|
|
85
|
+
nodesModified: {};
|
|
86
|
+
hierarchy: any;
|
|
87
|
+
};
|
|
88
|
+
getHierarchyObj(data: any, questionId?: any, selectUnitId?: any, parentId?: any): any;
|
|
89
|
+
_toFlatObjFromHierarchy(data: any): any;
|
|
90
|
+
getRelationalMetadataObj(data: any): {};
|
|
91
|
+
getCategoryDefinition(categoryName: any, channel: any, objectType?: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
92
|
+
fetchContentListDetails(req: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
93
|
+
sort(a: any, b: any, column: any): any;
|
|
94
|
+
isNotEmpty(obj: any, key: any): boolean;
|
|
95
|
+
apiErrorHandling(err: any, errorInfo: any): void;
|
|
96
|
+
getContentChildrens(activeNode?: any): any[];
|
|
97
|
+
contentsCountAddedInLibraryPage(setToZero?: any): void;
|
|
98
|
+
checkIfContentsCanbeAdded(buttonAction: any): boolean;
|
|
99
|
+
getHierarchyFolder(): any[];
|
|
100
|
+
validateCSVFile(formData: any, collectionnId: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
101
|
+
downloadHierarchyCsv(collectionId: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
102
|
+
generatePreSignedUrl(req: any, contentId: any, type: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
103
|
+
downloadBlobUrlFile(config: any): void;
|
|
104
|
+
generateCSV(config: any): void;
|
|
105
|
+
getBranchingLogicByFolder(identifier: any): any;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @public
|
|
109
|
+
* @param identifier identifier of the node
|
|
110
|
+
* @returns { source: [], target: [], sourceTarget?: [] }
|
|
111
|
+
* @memberof EditorService
|
|
112
|
+
*/
|
|
113
|
+
getDependentNodes(identifier: any): {
|
|
114
|
+
source: any;
|
|
115
|
+
target: any;
|
|
116
|
+
sourceTarget: any;
|
|
117
|
+
} | {
|
|
118
|
+
source?: undefined;
|
|
119
|
+
target?: undefined;
|
|
120
|
+
sourceTarget?: undefined;
|
|
121
|
+
} | {
|
|
122
|
+
source: any;
|
|
123
|
+
target: any;
|
|
124
|
+
sourceTarget?: undefined;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @public
|
|
129
|
+
* @param identifier identifier of the node
|
|
130
|
+
* @returns {"do_id": { "target": [ "do_id123", "do_id456" ], "preCondition": {}, "source": [] }}
|
|
131
|
+
* @memberof EditorService
|
|
132
|
+
*/
|
|
133
|
+
getBranchingLogicByNodeId(identifier: any): any;
|
|
134
|
+
getBranchingLogicEntry(parentBranchingLogic: any, identifier: any): any;
|
|
135
|
+
getFlattenedBranchingLogic(data: any): any;
|
|
136
|
+
getParentDependentMap(data: any): {};
|
|
137
|
+
getPrimaryCategoryName(sectionId: any): any;
|
|
138
|
+
/**
|
|
139
|
+
* fetch Outcome Declaration levels using the questionsetId
|
|
140
|
+
* only for Observation with Rubrics
|
|
141
|
+
* @param identifier questionset identifier
|
|
142
|
+
*/
|
|
143
|
+
fetchOutComeDeclaration(questionSetId: any, option?: any): Observable<any>;
|
|
144
|
+
get qualityFormConfig(): any;
|
|
145
|
+
private setQualityFormConfig;
|
|
146
|
+
get isReviewerQualityCheckEnabled(): boolean;
|
|
147
|
+
private setIsReviewerQualityCheckEnabled;
|
|
148
|
+
appendCloudStorageHeaders(config: any): any;
|
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditorService, never>;
|
|
150
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EditorService>;
|
|
151
|
+
}
|
|
152
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ServerResponse } from '../../interfaces/serverResponse';
|
|
3
|
+
import { Framework } from '../../interfaces/framework';
|
|
4
|
+
import { DataService } from '../data/data.service';
|
|
5
|
+
import { ConfigService } from '../config/config.service';
|
|
6
|
+
import { PublicDataService } from '../public-data/public-data.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class FrameworkService {
|
|
9
|
+
private dataService;
|
|
10
|
+
private configService;
|
|
11
|
+
private publicDataService;
|
|
12
|
+
private _organisationFramework;
|
|
13
|
+
private _selectedOrganisationFramework;
|
|
14
|
+
private _targetFrameworkIds;
|
|
15
|
+
private _frameworkData;
|
|
16
|
+
private _frameworkData$;
|
|
17
|
+
frameworkValues: any;
|
|
18
|
+
readonly frameworkData$: Observable<Framework>;
|
|
19
|
+
constructor(dataService: DataService, configService: ConfigService, publicDataService: PublicDataService);
|
|
20
|
+
initialize(framework: string): void;
|
|
21
|
+
getFrameworkCategories(framework: string): Observable<ServerResponse>;
|
|
22
|
+
getTargetFrameworkCategories(frameworkIds: Array<string>): void;
|
|
23
|
+
get targetFrameworkIds(): any;
|
|
24
|
+
set targetFrameworkIds(id: any);
|
|
25
|
+
get organisationFramework(): string;
|
|
26
|
+
set organisationFramework(framework: string);
|
|
27
|
+
get selectedOrganisationFramework(): string;
|
|
28
|
+
set selectedOrganisationFramework(framework: string);
|
|
29
|
+
getFrameworkData(channel?: any, type?: any, identifier?: any, systemDefault?: any): Observable<ServerResponse>;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrameworkService, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FrameworkService>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { PublicDataService } from '../public-data/public-data.service';
|
|
3
|
+
import { DataService } from '../data/data.service';
|
|
4
|
+
import { ConfigService } from '../config/config.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class HelperService {
|
|
7
|
+
private publicDataService;
|
|
8
|
+
private configService;
|
|
9
|
+
private dataService;
|
|
10
|
+
private _availableLicenses;
|
|
11
|
+
private _channelData;
|
|
12
|
+
private _channelPrimaryCategories;
|
|
13
|
+
private _channelData$;
|
|
14
|
+
treeDepth: number;
|
|
15
|
+
readonly channelData$: Observable<any>;
|
|
16
|
+
private shuffle;
|
|
17
|
+
shuffleValue: Observable<any>;
|
|
18
|
+
constructor(publicDataService: PublicDataService, configService: ConfigService, dataService: DataService);
|
|
19
|
+
initialize(channelId: any): void;
|
|
20
|
+
setShuffleValue(value: any): void;
|
|
21
|
+
get channelInfo(): any;
|
|
22
|
+
get channelPrimaryCategories(): any;
|
|
23
|
+
get contentPrimaryCategories(): any;
|
|
24
|
+
get questionPrimaryCategories(): any;
|
|
25
|
+
get collectionPrimaryCategories(): any;
|
|
26
|
+
get questionsetPrimaryCategories(): any;
|
|
27
|
+
getLicenses(): Observable<any>;
|
|
28
|
+
getAvailableLicenses(): any[];
|
|
29
|
+
getChannelData(channelId: any): Observable<any>;
|
|
30
|
+
get channelData(): {
|
|
31
|
+
contentPrimaryCategories: any;
|
|
32
|
+
};
|
|
33
|
+
hmsToSeconds(str: any): any;
|
|
34
|
+
getTimerFormat(field: any): any;
|
|
35
|
+
getAllUser(userSearchBody: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
36
|
+
updateCollaborator(contentId: any, collaboratorList: any): Observable<import("../../interfaces/serverResponse").ServerResponse>;
|
|
37
|
+
addDepthToHierarchy(arr: any, depth?: number, index?: number): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelperService, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HelperService>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
2
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface PlayerConfig {
|
|
5
|
+
config: any;
|
|
6
|
+
context: any;
|
|
7
|
+
data: any;
|
|
8
|
+
metadata: any;
|
|
9
|
+
}
|
|
10
|
+
export declare class PlayerService {
|
|
11
|
+
private editorService;
|
|
12
|
+
private configService;
|
|
13
|
+
qumlPlayerSideMenuConfig: {
|
|
14
|
+
enable: boolean;
|
|
15
|
+
showShare: boolean;
|
|
16
|
+
showDownload: boolean;
|
|
17
|
+
showReplay: boolean;
|
|
18
|
+
showExit: boolean;
|
|
19
|
+
};
|
|
20
|
+
constructor(editorService: EditorService, configService: ConfigService);
|
|
21
|
+
/**
|
|
22
|
+
* returns QUML player config details.
|
|
23
|
+
*/
|
|
24
|
+
getQumlPlayerConfig(): any;
|
|
25
|
+
/**
|
|
26
|
+
* returns player config details.
|
|
27
|
+
*/
|
|
28
|
+
getPlayerConfig(contentDetails: any): PlayerConfig;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlayerService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PlayerService>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DataService } from './../data/data.service';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PublicDataService extends DataService {
|
|
5
|
+
/**
|
|
6
|
+
* base Url for public api
|
|
7
|
+
*/
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
_document: Document;
|
|
10
|
+
http: HttpClient;
|
|
11
|
+
constructor(http: HttpClient);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PublicDataService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PublicDataService>;
|
|
14
|
+
}
|