@deeksha2309/sunbird-collection-editor 8.0.7 → 8.0.8
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/deeksha2309-sunbird-collection-editor.d.ts.map +1 -0
- package/esm2022/deeksha2309-sunbird-collection-editor.mjs +5 -0
- package/esm2022/lib/collection-editor-library.module.mjs +30 -6
- package/esm2022/lib/components/answer/answer.component.mjs +6 -3
- package/esm2022/lib/components/app-loader/app-loader.component.mjs +30 -0
- package/esm2022/lib/components/asset-browser/asset-browser.component.mjs +30 -12
- package/esm2022/lib/components/assign-page-number/assign-page-number.component.mjs +1 -1
- package/esm2022/lib/components/bulk-upload/bulk-upload.component.mjs +447 -0
- package/esm2022/lib/components/ckeditor-tool/ckeditor-tool.component.mjs +30 -12
- package/esm2022/lib/components/collection-icon/collection-icon.component.mjs +3 -3
- package/esm2022/lib/components/csv-upload/csv-upload.component.mjs +2 -2
- package/esm2022/lib/components/editor/editor.component.mjs +143 -64
- package/esm2022/lib/components/fancy-tree/fancy-tree.component.mjs +91 -9
- package/esm2022/lib/components/header/header.component.mjs +27 -9
- package/esm2022/lib/components/library/library.component.mjs +4 -4
- package/esm2022/lib/components/library-list/library-list.component.mjs +4 -4
- package/esm2022/lib/components/library-player/library-player.component.mjs +4 -4
- package/esm2022/lib/components/meta-form/meta-form.component.mjs +10 -18
- package/esm2022/lib/components/options/options.component.mjs +40 -27
- package/esm2022/lib/components/progress-status/progress-status.component.mjs +1 -1
- package/esm2022/lib/components/publish-checklist/publish-checklist.component.mjs +6 -3
- package/esm2022/lib/components/question/question.component.mjs +185 -77
- 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 +2 -2
- package/esm2022/lib/components/qumlplayer-page/qumlplayer-page.component.mjs +3 -3
- package/esm2022/lib/components/relational-metadata/relational-metadata.component.mjs +80 -0
- package/esm2022/lib/components/resource-reorder/resource-reorder.component.mjs +3 -3
- package/esm2022/lib/components/slider/slider.component.mjs +46 -0
- package/esm2022/lib/components/template/template.component.mjs +3 -3
- 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/interfaces/CreationContext.mjs +2 -0
- package/esm2022/lib/interfaces/editor.mjs +1 -1
- package/esm2022/lib/interfaces/loader.mjs +2 -0
- package/esm2022/lib/pipes/interpolate.pipe.mjs +17 -0
- package/esm2022/lib/pipes/sanitize-html.pipe.mjs +6 -8
- package/esm2022/lib/services/bulk-job/bulk-job.service.mjs +67 -0
- package/esm2022/lib/services/config/category.config.json +1 -0
- package/esm2022/lib/services/config/editor.config.json +29 -2
- package/esm2022/lib/services/config/label.config.json +16 -3
- package/esm2022/lib/services/config/player.config.json +3 -0
- package/esm2022/lib/services/config/url.config.json +17 -1
- package/esm2022/lib/services/editor/editor.service.mjs +64 -26
- package/esm2022/lib/services/question/question.service.mjs +27 -35
- package/esm2022/lib/services/tree/tree.service.mjs +20 -5
- package/fesm2022/{project-sunbird-sunbird-collection-editor.mjs → deeksha2309-sunbird-collection-editor.mjs} +1779 -483
- package/fesm2022/deeksha2309-sunbird-collection-editor.mjs.map +1 -0
- package/index.d.ts +2 -2
- package/lib/collection-editor-library.module.d.ts +51 -43
- package/lib/collection-editor-library.module.d.ts.map +1 -1
- package/lib/components/answer/answer.component.d.ts +2 -1
- package/lib/components/answer/answer.component.d.ts.map +1 -1
- package/lib/components/app-loader/app-loader.component.d.ts +18 -0
- package/lib/components/app-loader/app-loader.component.d.ts.map +1 -0
- package/lib/components/asset-browser/asset-browser.component.d.ts.map +1 -1
- package/lib/components/bulk-upload/bulk-upload.component.d.ts +71 -0
- package/lib/components/bulk-upload/bulk-upload.component.d.ts.map +1 -0
- package/lib/components/ckeditor-tool/ckeditor-tool.component.d.ts +1 -1
- package/lib/components/ckeditor-tool/ckeditor-tool.component.d.ts.map +1 -1
- package/lib/components/editor/editor.component.d.ts +11 -7
- package/lib/components/editor/editor.component.d.ts.map +1 -1
- package/lib/components/fancy-tree/fancy-tree.component.d.ts +11 -3
- package/lib/components/fancy-tree/fancy-tree.component.d.ts.map +1 -1
- package/lib/components/header/header.component.d.ts +6 -2
- package/lib/components/header/header.component.d.ts.map +1 -1
- package/lib/components/library/library.component.d.ts +1 -1
- package/lib/components/library/library.component.d.ts.map +1 -1
- package/lib/components/meta-form/meta-form.component.d.ts +3 -4
- package/lib/components/meta-form/meta-form.component.d.ts.map +1 -1
- package/lib/components/options/options.component.d.ts +15 -7
- package/lib/components/options/options.component.d.ts.map +1 -1
- package/lib/components/publish-checklist/publish-checklist.component.d.ts +2 -1
- package/lib/components/publish-checklist/publish-checklist.component.d.ts.map +1 -1
- package/lib/components/question/question.component.d.ts +21 -28
- package/lib/components/question/question.component.d.ts.map +1 -1
- package/lib/components/question-option-sub-menu/question-option-sub-menu.component.d.ts +27 -0
- package/lib/components/question-option-sub-menu/question-option-sub-menu.component.d.ts.map +1 -0
- package/lib/components/relational-metadata/relational-metadata.component.d.ts +25 -0
- package/lib/components/relational-metadata/relational-metadata.component.d.ts.map +1 -0
- package/lib/components/slider/slider.component.d.ts +25 -0
- package/lib/components/slider/slider.component.d.ts.map +1 -0
- package/lib/components/translations/translations.component.d.ts +70 -0
- package/lib/components/translations/translations.component.d.ts.map +1 -0
- package/lib/directives/date-format/date-format.pipe.d.ts +20 -0
- package/lib/directives/date-format/date-format.pipe.d.ts.map +1 -0
- package/lib/interfaces/CreationContext.d.ts +11 -0
- package/lib/interfaces/CreationContext.d.ts.map +1 -0
- package/lib/interfaces/editor.d.ts +10 -5
- package/lib/interfaces/editor.d.ts.map +1 -1
- package/lib/interfaces/loader.d.ts +11 -0
- package/lib/interfaces/loader.d.ts.map +1 -0
- package/lib/pipes/interpolate.pipe.d.ts +8 -0
- package/lib/pipes/interpolate.pipe.d.ts.map +1 -0
- package/lib/pipes/sanitize-html.pipe.d.ts +4 -4
- package/lib/pipes/sanitize-html.pipe.d.ts.map +1 -1
- package/lib/services/bulk-job/bulk-job.service.d.ts +17 -0
- package/lib/services/bulk-job/bulk-job.service.d.ts.map +1 -0
- package/lib/services/editor/editor.service.d.ts +7 -4
- package/lib/services/editor/editor.service.d.ts.map +1 -1
- package/lib/services/question/question.service.d.ts +2 -2
- package/lib/services/question/question.service.d.ts.map +1 -1
- package/lib/services/tree/tree.service.d.ts +3 -1
- package/lib/services/tree/tree.service.d.ts.map +1 -1
- package/package.json +5 -5
- package/esm2022/project-sunbird-sunbird-collection-editor.mjs +0 -5
- package/fesm2022/project-sunbird-sunbird-collection-editor.mjs.map +0 -1
- package/project-sunbird-sunbird-collection-editor.d.ts.map +0 -1
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { EditorTelemetryService } from '../../services/telemetry/telemetry.service';
|
|
3
3
|
import { ConfigService } from '../../services/config/config.service';
|
|
4
|
+
import { SubMenu } from '../question-option-sub-menu/question-option-sub-menu.component';
|
|
5
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
6
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
4
7
|
import * as i0 from "@angular/core";
|
|
5
8
|
export declare class OptionsComponent implements OnInit {
|
|
6
9
|
telemetryService: EditorTelemetryService;
|
|
7
10
|
configService: ConfigService;
|
|
11
|
+
treeService: TreeService;
|
|
12
|
+
private editorService;
|
|
8
13
|
editorState: any;
|
|
9
14
|
showFormError: any;
|
|
10
15
|
sourcingSettings: any;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
questionPrimaryCategory: any;
|
|
17
|
+
mapping: any[];
|
|
18
|
+
isReadOnlyMode: any;
|
|
14
19
|
editorDataOutput: EventEmitter<any>;
|
|
15
20
|
setCharacterLimit: number;
|
|
16
21
|
setImageLimit: number;
|
|
17
22
|
templateType: string;
|
|
18
|
-
subMenus:
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
subMenus: SubMenu[][];
|
|
24
|
+
hints: any[];
|
|
25
|
+
showSubMenu: boolean;
|
|
26
|
+
parentMeta: any;
|
|
27
|
+
constructor(telemetryService: EditorTelemetryService, configService: ConfigService, treeService: TreeService, editorService: EditorService);
|
|
21
28
|
ngOnInit(): void;
|
|
22
29
|
editorDataHandler(event?: any): void;
|
|
23
30
|
prepareMcqBody(editorState: any): any;
|
|
@@ -32,6 +39,7 @@ export declare class OptionsComponent implements OnInit {
|
|
|
32
39
|
SCORE: number;
|
|
33
40
|
};
|
|
34
41
|
};
|
|
42
|
+
mapping: any[];
|
|
35
43
|
};
|
|
36
44
|
};
|
|
37
45
|
getInteractions(options: any): {
|
|
@@ -48,6 +56,6 @@ export declare class OptionsComponent implements OnInit {
|
|
|
48
56
|
subMenuConfig(options: any): void;
|
|
49
57
|
setScore(value: any, scoreIndex: any): void;
|
|
50
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<OptionsComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionsComponent, "lib-options", never, { "editorState": { "alias": "editorState"; "required": false; }; "showFormError": { "alias": "showFormError"; "required": false; }; "sourcingSettings": { "alias": "sourcingSettings"; "required": false; }; "
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionsComponent, "lib-options", never, { "editorState": { "alias": "editorState"; "required": false; }; "showFormError": { "alias": "showFormError"; "required": false; }; "sourcingSettings": { "alias": "sourcingSettings"; "required": false; }; "questionPrimaryCategory": { "alias": "questionPrimaryCategory"; "required": false; }; "mapping": { "alias": "mapping"; "required": false; }; "isReadOnlyMode": { "alias": "isReadOnlyMode"; "required": false; }; }, { "editorDataOutput": "editorDataOutput"; }, never, never, false, never>;
|
|
52
60
|
}
|
|
53
61
|
//# sourceMappingURL=options.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/options/options.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAS,YAAY,EAA6B,MAAM,eAAe,CAAC;AAElG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;;AACrE,qBAKa,gBAAiB,YAAW,MAAM;
|
|
1
|
+
{"version":3,"file":"options.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/options/options.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAS,YAAY,EAA6B,MAAM,eAAe,CAAC;AAElG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,gEAAgE,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;;AACrE,qBAKa,gBAAiB,YAAW,MAAM;IAgBpC,gBAAgB,EAAE,sBAAsB;IACxC,aAAa,EAAE,aAAa;IAC5B,WAAW,EAAE,WAAW;IAC/B,OAAO,CAAC,aAAa;IAlBd,WAAW,EAAE,GAAG,CAAC;IACjB,aAAa,MAAC;IACd,gBAAgB,MAAC;IACjB,uBAAuB,MAAC;IACxB,OAAO,QAAM;IACb,cAAc,MAAC;IACd,gBAAgB,EAAE,YAAY,CAAC,GAAG,CAAC,CAA2B;IACjE,iBAAiB,SAAO;IACxB,aAAa,SAAK;IAClB,YAAY,SAAkB;IACrC,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC;IACtB,KAAK,QAAM;IACX,WAAW,EAAC,OAAO,CAAO;IAC1B,UAAU,EAAE,GAAG,CAAC;gBAEP,gBAAgB,EAAE,sBAAsB,EACxC,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACvB,aAAa,EAAE,aAAa;IAGtC,QAAQ;IAYR,iBAAiB,CAAC,KAAK,CAAC,KAAA;IAKxB,cAAc,CAAC,WAAW,KAAA;IA2B1B,sBAAsB,CAAC,WAAW,KAAA;;;;;;;;;;;;;;IAgBlC,eAAe,CAAC,OAAO,KAAA;;;;;;IAiBvB,WAAW,CAAC,QAAQ,KAAA;IAKpB,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE;;;KAAA,EAAE,WAAW,KAAA;IAI3C,aAAa,CAAC,OAAO,KAAA;IAkBrB,QAAQ,CAAC,KAAK,KAAA,EAAE,UAAU,KAAA;yCA9Hf,gBAAgB;2CAAhB,gBAAgB;CAwI5B"}
|
|
@@ -7,6 +7,7 @@ export declare class PublishChecklistComponent implements OnInit {
|
|
|
7
7
|
configService: ConfigService;
|
|
8
8
|
publishchecklist: any;
|
|
9
9
|
actionType: any;
|
|
10
|
+
objectType: string;
|
|
10
11
|
publishEmitter: EventEmitter<any>;
|
|
11
12
|
isButtonEnable: boolean;
|
|
12
13
|
fieldsAvailable: any;
|
|
@@ -18,6 +19,6 @@ export declare class PublishChecklistComponent implements OnInit {
|
|
|
18
19
|
onStatusChanges(event: any): void;
|
|
19
20
|
valueChanges(event: any): void;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PublishChecklistComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PublishChecklistComponent, "lib-publish-checklist", never, { "publishchecklist": { "alias": "publishchecklist"; "required": false; }; "actionType": { "alias": "actionType"; "required": false; }; }, { "publishEmitter": "publishEmitter"; }, never, never, false, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PublishChecklistComponent, "lib-publish-checklist", never, { "publishchecklist": { "alias": "publishchecklist"; "required": false; }; "actionType": { "alias": "actionType"; "required": false; }; "objectType": { "alias": "objectType"; "required": false; }; }, { "publishEmitter": "publishEmitter"; }, never, never, false, never>;
|
|
22
23
|
}
|
|
23
24
|
//# sourceMappingURL=publish-checklist.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-checklist.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/publish-checklist/publish-checklist.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAiB,YAAY,EAAqB,MAAM,eAAe,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;;AAErE,qBAMa,yBAA0B,YAAW,MAAM;
|
|
1
|
+
{"version":3,"file":"publish-checklist.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/publish-checklist/publish-checklist.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAiB,YAAY,EAAqB,MAAM,eAAe,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;;AAErE,qBAMa,yBAA0B,YAAW,MAAM;IAS7C,gBAAgB,EAAE,sBAAsB;IACxC,aAAa,EAAE,aAAa;IAT5B,gBAAgB,EAAE,GAAG,CAAC;IACtB,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IAClB,cAAc,oBAA2B;IAC5C,cAAc,UAAS;IACvB,eAAe,EAAE,GAAG,CAAC;IACrB,UAAU,UAAS;gBAEjB,gBAAgB,EAAE,sBAAsB,EACxC,aAAa,EAAE,aAAa;IAErC,QAAQ,IAAI,IAAI;IAIhB,iBAAiB,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA;IAuB7B,UAAU,CAAC,SAAS,EAAE,GAAG;IAEzB,eAAe,CAAC,KAAK,KAAA;IAIrB,YAAY,CAAC,KAAK,EAAE,GAAG;yCA7CZ,yBAAyB;2CAAzB,yBAAyB;CAgDrC"}
|
|
@@ -9,20 +9,9 @@ import { ConfigService } from '../../services/config/config.service';
|
|
|
9
9
|
import { FrameworkService } from '../../services/framework/framework.service';
|
|
10
10
|
import { TreeService } from '../../services/tree/tree.service';
|
|
11
11
|
import { EditorCursor } from '../../collection-editor-cursor.service';
|
|
12
|
+
import { SubMenu } from '../question-option-sub-menu/question-option-sub-menu.component';
|
|
13
|
+
import { ICreationContext } from '../../interfaces/CreationContext';
|
|
12
14
|
import * as i0 from "@angular/core";
|
|
13
|
-
export interface SubMenu {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
value: any;
|
|
17
|
-
label: string;
|
|
18
|
-
enabled: boolean;
|
|
19
|
-
type: string;
|
|
20
|
-
show: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface ICreationContext {
|
|
23
|
-
objectType?: string;
|
|
24
|
-
collectionObjectType?: string;
|
|
25
|
-
}
|
|
26
15
|
export declare class QuestionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
27
16
|
private questionService;
|
|
28
17
|
editorService: EditorService;
|
|
@@ -37,16 +26,19 @@ export declare class QuestionComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
37
26
|
QumlPlayerConfig: any;
|
|
38
27
|
questionInput: any;
|
|
39
28
|
leafFormConfig: any;
|
|
29
|
+
sourcingSettings: any;
|
|
40
30
|
initialLeafFormConfig: any;
|
|
41
31
|
childFormData: any;
|
|
42
32
|
questionEmitter: EventEmitter<any>;
|
|
43
33
|
private onComponentDestroy$;
|
|
44
34
|
toolbarConfig: any;
|
|
35
|
+
terms: boolean;
|
|
45
36
|
editorState: any;
|
|
46
37
|
showPreview: boolean;
|
|
47
38
|
mediaArr: any;
|
|
48
39
|
videoShow: boolean;
|
|
49
40
|
showFormError: boolean;
|
|
41
|
+
actionType: string;
|
|
50
42
|
selectedSolutionType: string;
|
|
51
43
|
selectedSolutionTypeIndex: string;
|
|
52
44
|
showSolutionDropDown: boolean;
|
|
@@ -59,13 +51,21 @@ export declare class QuestionComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
59
51
|
solutionTypes: any;
|
|
60
52
|
questionMetaData: any;
|
|
61
53
|
questionInteractionType: any;
|
|
54
|
+
questionCategory: any;
|
|
62
55
|
questionId: any;
|
|
56
|
+
creationContext: ICreationContext;
|
|
57
|
+
creationMode: any;
|
|
63
58
|
tempQuestionId: any;
|
|
64
59
|
questionSetId: any;
|
|
60
|
+
unitId: any;
|
|
65
61
|
setCharacterLimit: number;
|
|
66
62
|
showLoader: boolean;
|
|
63
|
+
isReadOnlyMode: boolean;
|
|
64
|
+
contentComment: string;
|
|
65
|
+
showReviewModal: boolean;
|
|
67
66
|
questionSetHierarchy: any;
|
|
68
67
|
showConfirmPopup: boolean;
|
|
68
|
+
showSubmitConfirmPopup: boolean;
|
|
69
69
|
validQuestionData: boolean;
|
|
70
70
|
questionPrimaryCategory: string;
|
|
71
71
|
pageId: string;
|
|
@@ -102,15 +102,6 @@ export declare class QuestionComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
102
102
|
showQualityParameterPopup: boolean;
|
|
103
103
|
qualityFormConfig: any;
|
|
104
104
|
requestChangesPopupAction: string;
|
|
105
|
-
isReadOnlyMode: boolean;
|
|
106
|
-
showSubmitConfirmPopup: boolean;
|
|
107
|
-
showReviewModal: boolean;
|
|
108
|
-
contentComment: string;
|
|
109
|
-
creationMode: string;
|
|
110
|
-
actionType: string;
|
|
111
|
-
creationContext: ICreationContext;
|
|
112
|
-
sourcingSettings: any;
|
|
113
|
-
questionCategory: string;
|
|
114
105
|
constructor(questionService: QuestionService, editorService: EditorService, telemetryService: EditorTelemetryService, playerService: PlayerService, toasterService: ToasterService, treeService: TreeService, frameworkService: FrameworkService, router: Router, configService: ConfigService, editorCursor: EditorCursor);
|
|
115
106
|
ngOnInit(): void;
|
|
116
107
|
fetchFrameWorkDetails(): void;
|
|
@@ -132,11 +123,10 @@ export declare class QuestionComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
132
123
|
sendBackQuestion(event: any): void;
|
|
133
124
|
validateQuestionData(): void;
|
|
134
125
|
redirectToQuestionset(): void;
|
|
135
|
-
addResourceToQuestionset(publishCallback?: any): void;
|
|
136
126
|
redirectToChapterList(): void;
|
|
137
|
-
setQuestionId(questionId: string): void;
|
|
138
127
|
editorDataHandler(event: any, type?: any): void;
|
|
139
128
|
setMedia(media: any): void;
|
|
129
|
+
addResourceToQuestionset(callback?: any): void;
|
|
140
130
|
saveQuestion(): void;
|
|
141
131
|
videoDataOutput(event: any): void;
|
|
142
132
|
selectSolutionType(data: any): void;
|
|
@@ -174,26 +164,29 @@ export declare class QuestionComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
174
164
|
};
|
|
175
165
|
upsertQuestion(callback: any): void;
|
|
176
166
|
createQuestion(): void;
|
|
177
|
-
updateQuestion(): void;
|
|
178
167
|
saveQuestions(requestBody: any, type: any): void;
|
|
179
|
-
|
|
168
|
+
updateQuestion(): void;
|
|
169
|
+
saveUpdateQuestions(): void;
|
|
170
|
+
showHideSpinnerLoader(status: boolean, type?: any): void;
|
|
180
171
|
previewContent(): void;
|
|
181
172
|
setParentConfig(parentConfig: any): void;
|
|
182
173
|
setQumlPlayerData(questionId: string): void;
|
|
183
174
|
getPlayerEvents(event: any): void;
|
|
184
175
|
getTelemetryEvents(event: any): void;
|
|
176
|
+
setQuestionId(questionId: any): void;
|
|
185
177
|
setQuestionTitle(questionId?: any): void;
|
|
186
178
|
output(event: any): void;
|
|
187
179
|
onStatusChanges(event: any): void;
|
|
188
180
|
valueChanges(event: any): void;
|
|
189
181
|
validateFormFields(): boolean;
|
|
190
182
|
previewFormData(status: any): void;
|
|
183
|
+
isEditable(fieldCode: any): boolean;
|
|
191
184
|
populateFormData(): void;
|
|
192
185
|
subMenuChange({ index, value }: {
|
|
193
186
|
index: any;
|
|
194
187
|
value: any;
|
|
195
188
|
}): void;
|
|
196
|
-
get dependentQuestions(): any;
|
|
189
|
+
get dependentQuestions(): string | any[];
|
|
197
190
|
subMenuConfig(): void;
|
|
198
191
|
ngOnDestroy(): void;
|
|
199
192
|
sliderData($event: any): void;
|
|
@@ -210,6 +203,6 @@ export declare class QuestionComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
210
203
|
openRequestChangesPopup(): void;
|
|
211
204
|
calculateMinMaxScore(metaData: any): void;
|
|
212
205
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionComponent, never>;
|
|
213
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionComponent, "lib-question", never, { "questionInput": { "alias": "questionInput"; "required": false; }; "leafFormConfig": { "alias": "leafFormConfig"; "required": false; }; }, { "questionEmitter": "questionEmitter"; }, never, never, false, never>;
|
|
206
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionComponent, "lib-question", never, { "questionInput": { "alias": "questionInput"; "required": false; }; "leafFormConfig": { "alias": "leafFormConfig"; "required": false; }; "sourcingSettings": { "alias": "sourcingSettings"; "required": false; }; }, { "questionEmitter": "questionEmitter"; }, never, never, false, never>;
|
|
214
207
|
}
|
|
215
208
|
//# sourceMappingURL=question.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/question/question.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAU,aAAa,EAAqB,SAAS,EAAE,MAAM,eAAe,CAAC;AAK5H,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC
|
|
1
|
+
{"version":3,"file":"question.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/question/question.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAU,aAAa,EAAqB,SAAS,EAAE,MAAM,eAAe,CAAC;AAK5H,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,MAAM,gEAAgE,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;;AAKpE,qBAMa,iBAAkB,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS;IAwFtE,OAAO,CAAC,eAAe;IAA0B,aAAa,EAAE,aAAa;IAAS,gBAAgB,EAAE,sBAAsB;IACvH,aAAa,EAAE,aAAa;IAAE,OAAO,CAAC,cAAc;IAAkB,OAAO,CAAC,WAAW;IAChG,OAAO,CAAC,gBAAgB;IAAoB,OAAO,CAAC,MAAM;IAAiB,aAAa,E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AAC,UAAU,KAAA;IAIxB,gBAAgB,CAAC,UAAU,CAAC,KAAA;IAqC5B,MAAM,CAAC,KAAK,KAAA;IAEZ,eAAe,CAAC,KAAK,KAAA;IAOrB,YAAY,CAAC,KAAK,KAAA;IASlB,kBAAkB;IAWlB,eAAe,CAAC,MAAM,KAAA;IAYtB,UAAU,CAAC,SAAS,KAAA;IAUpB,gBAAgB;IAkDhB,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE;;;KAAA;IAY9B,IAAI,kBAAkB,mBAMrB;IACD,aAAa;IAoCb,WAAW;IAMX,UAAU,CAAC,MAAM,KAAA;IAuBjB,aAAa,CAAC,CAAC,KAAA;IAKf,cAAc,CAAC,IAAI,KAAA;IAuDnB,YAAY,CAAC,UAAU,KAAA;IAUvB,UAAU;IASV,wBAAwB,CAAC,UAAU,KAAA;IAenC,eAAe,CAAC,WAAW,KAAA,EAAE,cAAc,KAAA,EAAE,eAAe,KAAA;IAU5D,YAAY,CAAC,IAAI,KAAA;IAOjB,iBAAiB,CAAC,QAAQ,KAAA;IAgB1B,mBAAmB,CAAC,KAAK,KAAA;IAczB,qBAAqB,CAAC,iBAAiB,KAAA,EAAE,QAAQ,KAAA;IAcjD,uBAAuB;IAIvB,oBAAoB,CAAC,QAAQ,KAAA;yCAr+ClB,iBAAiB;2CAAjB,iBAAiB;CAm/C7B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SubMenuEvent {
|
|
5
|
+
index: number;
|
|
6
|
+
value: any;
|
|
7
|
+
}
|
|
8
|
+
export interface SubMenu {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
label: string;
|
|
12
|
+
value: string | any[];
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
type: string;
|
|
15
|
+
show: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class QuestionOptionSubMenuComponent {
|
|
18
|
+
editorService: EditorService;
|
|
19
|
+
subMenus: SubMenu[];
|
|
20
|
+
onChange: EventEmitter<SubMenuEvent>;
|
|
21
|
+
constructor(editorService: EditorService);
|
|
22
|
+
onMenuClick(index: any): void;
|
|
23
|
+
onValueChange(event: any, index: any): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionOptionSubMenuComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionOptionSubMenuComponent, "lib-question-option-sub-menu", never, { "subMenus": { "alias": "subMenus"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=question-option-sub-menu.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question-option-sub-menu.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/question-option-sub-menu/question-option-sub-menu.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;;AAErE,qBAAa,YAAY;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;CACZ;AACD,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAC,GAAG,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;CACf;AACD,qBAKa,8BAA8B;IAItB,aAAa,EAAE,aAAa;IAHtC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACZ,QAAQ,EAAE,YAAY,CAAC,YAAY,CAAC,CAAoC;gBAEtE,aAAa,EAAE,aAAa;IAI/C,WAAW,CAAC,KAAK,KAAA;IAQjB,aAAa,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA;yCAhBf,8BAA8B;2CAA9B,8BAA8B;CAoB1C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
3
|
+
import { TreeService } from '../../services/tree/tree.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RelationalMetadataComponent implements OnInit, OnChanges {
|
|
6
|
+
private editorService;
|
|
7
|
+
private treeService;
|
|
8
|
+
contentMetadata: any;
|
|
9
|
+
formConfig: any;
|
|
10
|
+
contentId: any;
|
|
11
|
+
statusChanges: EventEmitter<any>;
|
|
12
|
+
valueChanges: EventEmitter<any>;
|
|
13
|
+
formFieldProperties: any;
|
|
14
|
+
constructor(editorService: EditorService, treeService: TreeService);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
ngOnChanges(): void;
|
|
17
|
+
attachDefaultValues(): void;
|
|
18
|
+
isReviewMode(): any;
|
|
19
|
+
ifFieldIsEditable(fieldCode: any): boolean;
|
|
20
|
+
onFormStatusChange(event: any): void;
|
|
21
|
+
onFormValueChange(event: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RelationalMetadataComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RelationalMetadataComponent, "lib-relational-metadata", never, { "contentMetadata": { "alias": "contentMetadata"; "required": false; }; "formConfig": { "alias": "formConfig"; "required": false; }; }, { "statusChanges": "statusChanges"; "valueChanges": "valueChanges"; }, never, never, false, never>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=relational-metadata.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relational-metadata.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/relational-metadata/relational-metadata.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;;AAE/D,qBAKa,2BAA4B,YAAW,MAAM,EAAE,SAAS;IAQvD,OAAO,CAAC,aAAa;IAAiB,OAAO,CAAC,WAAW;IAN5D,eAAe,EAAE,GAAG,CAAC;IACrB,UAAU,EAAE,GAAG,CAAC;IAClB,SAAS,MAAC;IACP,aAAa,oBAA2B;IACxC,YAAY,oBAA2B;IAC1C,mBAAmB,EAAE,GAAG,CAAC;gBACZ,aAAa,EAAE,aAAa,EAAU,WAAW,EAAE,WAAW;IAElF,QAAQ,IAAI,IAAI;IAGhB,WAAW;IAQX,mBAAmB;IAmBnB,YAAY;IAIZ,iBAAiB,CAAC,SAAS,KAAA;IAY3B,kBAAkB,CAAC,KAAK,KAAA;IAIxB,iBAAiB,CAAC,KAAK,KAAA;yCA5DZ,2BAA2B;2CAA3B,2BAA2B;CAoEvC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ConfigService } from '../../services/config/config.service';
|
|
3
|
+
import { EditorService } from '../../services/editor/editor.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SilderEvent {
|
|
6
|
+
leftAnchor: number;
|
|
7
|
+
step: number;
|
|
8
|
+
rightAnchor: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class SliderComponent implements OnInit {
|
|
11
|
+
configService: ConfigService;
|
|
12
|
+
editorService: EditorService;
|
|
13
|
+
sliderValue: any;
|
|
14
|
+
editorDataInput: any;
|
|
15
|
+
leftAnchor: any;
|
|
16
|
+
rightAnchor: any;
|
|
17
|
+
step: any;
|
|
18
|
+
onChange: EventEmitter<SilderEvent>;
|
|
19
|
+
constructor(configService: ConfigService, editorService: EditorService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
onValueChange(event: any, key: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "lib-slider", never, { "editorDataInput": { "alias": "editorDataInput"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=slider.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/slider/slider.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAU,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;;AAGrE,qBAAa,WAAW;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAKa,eAAgB,YAAW,MAAM;IAOzB,aAAa,EAAE,aAAa;IAAQ,aAAa,EAAE,aAAa;IANnF,WAAW,EAAC,GAAG,CAAM;IACZ,eAAe,MAAC;IACzB,UAAU,EAAE,GAAG,CAAC;IAChB,WAAW,EAAE,GAAG,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC;IACA,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,CAAmC;gBAC7D,aAAa,EAAE,aAAa,EAAQ,aAAa,EAAE,aAAa;IAEnF,QAAQ;IAeR,aAAa,CAAC,KAAK,KAAA,EAAC,GAAG,KAAA;yCAxBZ,eAAe;2CAAf,eAAe;CA6B3B"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ConfigService } from "../../services/config/config.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TranslationsComponent {
|
|
4
|
+
configService: ConfigService;
|
|
5
|
+
editorState: any;
|
|
6
|
+
sampleJson: {
|
|
7
|
+
body: {
|
|
8
|
+
en: string;
|
|
9
|
+
};
|
|
10
|
+
responseDeclaration: {
|
|
11
|
+
response1: {
|
|
12
|
+
maxScore: number;
|
|
13
|
+
cardinality: string;
|
|
14
|
+
type: string;
|
|
15
|
+
mapping: {
|
|
16
|
+
response: number;
|
|
17
|
+
outcomes: {
|
|
18
|
+
FEEDBACK: string;
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
interactionTypes: string[];
|
|
24
|
+
hints: {
|
|
25
|
+
en: string[];
|
|
26
|
+
};
|
|
27
|
+
instructions: {
|
|
28
|
+
en: string;
|
|
29
|
+
};
|
|
30
|
+
interactions: {
|
|
31
|
+
response1: {
|
|
32
|
+
type: string;
|
|
33
|
+
validation: {
|
|
34
|
+
required: string;
|
|
35
|
+
};
|
|
36
|
+
options: {
|
|
37
|
+
label: {
|
|
38
|
+
en: string[];
|
|
39
|
+
};
|
|
40
|
+
hints: {
|
|
41
|
+
en: string[];
|
|
42
|
+
};
|
|
43
|
+
value: number;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
solution: any[];
|
|
48
|
+
media: any[];
|
|
49
|
+
showEvidence: string;
|
|
50
|
+
evidence: {
|
|
51
|
+
required: string;
|
|
52
|
+
mimeType: string[];
|
|
53
|
+
minCount: number;
|
|
54
|
+
maxCount: number;
|
|
55
|
+
sizeLimit: string;
|
|
56
|
+
caption: string;
|
|
57
|
+
};
|
|
58
|
+
showRemarks: string;
|
|
59
|
+
remarks: {
|
|
60
|
+
maxLength: string;
|
|
61
|
+
required: string;
|
|
62
|
+
};
|
|
63
|
+
canBeNotApplicable: string;
|
|
64
|
+
};
|
|
65
|
+
constructor(configService: ConfigService);
|
|
66
|
+
editorDataHandler(event: any, type?: any): void;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationsComponent, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TranslationsComponent, "lib-translations", never, {}, {}, never, never, false, never>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=translations.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/translations/translations.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;;AAGrE,qBAKa,qBAAqB;IAwGb,aAAa,EAAE,aAAa;IAvGxC,WAAW,EAAE,GAAG,CAAM;IAC7B,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqGR;gBACiB,aAAa,EAAE,aAAa;IAG/C,iBAAiB,CAAC,KAAK,KAAA,EAAE,IAAI,CAAC,KAAA;yCA3GnB,qBAAqB;2CAArB,qBAAqB;CAuHjC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as moment from 'moment';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Pipe for date format
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare class DateFormatPipe implements PipeTransform {
|
|
9
|
+
/**
|
|
10
|
+
* To create date format pipe
|
|
11
|
+
*
|
|
12
|
+
* @param {Date} value current Date, string or number
|
|
13
|
+
* @param {string} format format of Date
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
transform(value: Date | moment.Moment | string | number, format: string): string;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatPipe, never>;
|
|
18
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatPipe, "dateFormat", false>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=date-format.pipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-format.pipe.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/directives/date-format/date-format.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;;AAGjC;;;GAGG;AACH,qBAGa,cAAe,YAAW,aAAa;IAClD;;;;;;OAMG;IACH,SAAS,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;yCARrE,cAAc;uCAAd,cAAc;CAgB1B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ICreationContext {
|
|
2
|
+
objectType?: string;
|
|
3
|
+
collectionObjectType?: string;
|
|
4
|
+
unitIdentifier?: string;
|
|
5
|
+
isReadOnlyMode?: boolean | undefined;
|
|
6
|
+
mode?: string;
|
|
7
|
+
correctionComments?: string;
|
|
8
|
+
editableFields?: any;
|
|
9
|
+
index?: number;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=CreationContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreationContext.d.ts","sourceRoot":"","sources":["../../../../projects/collection-editor-library/src/lib/interfaces/CreationContext.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -2,8 +2,8 @@ export interface ContextBase {
|
|
|
2
2
|
programId?: string;
|
|
3
3
|
contributionOrgId?: string;
|
|
4
4
|
user: User;
|
|
5
|
-
identifier
|
|
6
|
-
mode
|
|
5
|
+
identifier?: string;
|
|
6
|
+
mode?: string;
|
|
7
7
|
authToken?: string;
|
|
8
8
|
sid: string;
|
|
9
9
|
did: string;
|
|
@@ -25,8 +25,8 @@ export interface ContextBase {
|
|
|
25
25
|
defaultLicense?: any;
|
|
26
26
|
topic?: any;
|
|
27
27
|
framework: string;
|
|
28
|
-
cloudStorageUrls
|
|
29
|
-
additionalCategories
|
|
28
|
+
cloudStorageUrls?: string[];
|
|
29
|
+
additionalCategories?: any[];
|
|
30
30
|
labels?: any;
|
|
31
31
|
actor?: any;
|
|
32
32
|
channelData?: any;
|
|
@@ -45,8 +45,13 @@ export interface Context extends ContextBase {
|
|
|
45
45
|
}
|
|
46
46
|
export interface User {
|
|
47
47
|
id: string;
|
|
48
|
-
name
|
|
48
|
+
name?: string;
|
|
49
49
|
orgIds: string[];
|
|
50
|
+
organisations?: any;
|
|
51
|
+
fullName?: string;
|
|
52
|
+
firstName?: string;
|
|
53
|
+
lastName?: string;
|
|
54
|
+
isRootOrgAdmin?: boolean;
|
|
50
55
|
}
|
|
51
56
|
export interface Pdata {
|
|
52
57
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../projects/collection-editor-library/src/lib/interfaces/editor.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../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AAO,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,GAAG,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../projects/collection-editor-library/src/lib/interfaces/loader.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,cAAc;IAC7B;;MAEE;IACF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;MAEE;IACF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
8
|
+
//# sourceMappingURL=interpolate.pipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interpolate.pipe.d.ts","sourceRoot":"","sources":["../../../../projects/collection-editor-library/src/lib/pipes/interpolate.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;;AAGpD,qBAGa,eAAgB,YAAW,aAAa;IACnD,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM;yCAD/D,eAAe;uCAAf,eAAe;CAI3B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PipeTransform } from
|
|
2
|
-
import { DomSanitizer, SafeHtml } from
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SanitizeHtmlPipe implements PipeTransform {
|
|
5
|
-
private
|
|
6
|
-
constructor(
|
|
5
|
+
private _sanitizer;
|
|
6
|
+
constructor(_sanitizer: DomSanitizer);
|
|
7
7
|
transform(value: string): SafeHtml;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SanitizeHtmlPipe, never>;
|
|
9
9
|
static ɵpipe: i0.ɵɵPipeDeclaration<SanitizeHtmlPipe, "sanitizeHtml", false>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitize-html.pipe.d.ts","sourceRoot":"","sources":["../../../../projects/collection-editor-library/src/lib/pipes/sanitize-html.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;;AAEnE,
|
|
1
|
+
{"version":3,"file":"sanitize-html.pipe.d.ts","sourceRoot":"","sources":["../../../../projects/collection-editor-library/src/lib/pipes/sanitize-html.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;;AAEnE,qBACa,gBAAiB,YAAW,aAAa;IACxC,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,YAAY;IAE5C,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ;yCAHvB,gBAAgB;uCAAhB,gBAAgB;CAM5B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
17
|
+
//# sourceMappingURL=bulk-job.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-job.service.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/services/bulk-job/bulk-job.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;;AAEzD,qBAGa,cAAc;IAEb,OAAO,CAAC,iBAAiB;IAA4B,aAAa,EAAE,aAAa;gBAAzE,iBAAiB,EAAE,iBAAiB,EAAS,aAAa,EAAE,aAAa;IAE7F,sBAAsB,CAAC,OAAO,KAAA,GAAG,UAAU,CAAC,GAAG,CAAC;IAUhD,0BAA0B,CAAC,SAAS,KAAA;IAYpC,aAAa,CAAC,OAAO,KAAA,GAAG,UAAU,CAAC,GAAG,CAAC;IAUvC,aAAa,CAAC,OAAO,KAAA,GAAG,UAAU,CAAC,GAAG,CAAC;IAUvC,gBAAgB,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA,GAAG,UAAU,CAAC,GAAG,CAAC;yCA9CxC,cAAc;6CAAd,cAAc;CAwD1B"}
|