@rangertechnologies/ngnxt 2.1.74 → 2.1.76
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/esm2022/lib/components/custom-calendar/custom-calendar.component.mjs +18 -16
- package/esm2022/lib/components/custom-dropdown/custom-dropdown.component.mjs +103 -95
- package/esm2022/lib/components/custom-image/custom-image.component.mjs +5 -4
- package/esm2022/lib/components/custom-input/custom-input.component.mjs +6 -5
- package/esm2022/lib/components/custom-label/custom-label.component.mjs +3 -11
- package/esm2022/lib/components/custom-radio/custom-radio.component.mjs +5 -4
- package/esm2022/lib/components/custom-table/custom-table.component.mjs +3 -2
- package/esm2022/lib/components/custom-text-area/custom-text-area.component.mjs +6 -5
- package/esm2022/lib/components/file-upload/file-upload.component.mjs +6 -5
- package/esm2022/lib/components/pick-location/pick-location.component.mjs +5 -3
- package/esm2022/lib/components/search-box/search-box.component.mjs +3 -2
- package/esm2022/lib/components/table-appendix/table-appendix.component.mjs +5 -4
- package/esm2022/lib/pages/booklet/booklet.component.mjs +80 -127
- package/esm2022/lib/pages/questionbook/questionbook.component.mjs +83 -96
- package/esm2022/lib/pages/questionnaire/questionnaire.component.mjs +321 -257
- package/esm2022/lib/pages/summary-page/summary-page.component.mjs +11 -10
- package/esm2022/lib/sample.mjs +3157 -328
- package/esm2022/lib/services/storage.service.mjs +7 -5
- package/esm2022/lib/wrapper.mjs +96 -93
- package/fesm2022/rangertechnologies-ngnxt.mjs +3900 -1075
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/custom-label/custom-label.component.d.ts +1 -3
- package/lib/pages/booklet/booklet.component.d.ts +2 -8
- package/lib/pages/questionbook/questionbook.component.d.ts +1 -2
- package/lib/wrapper.d.ts +93 -91
- package/package.json +1 -1
- package/rangertechnologies-ngnxt-2.1.76.tgz +0 -0
- package/esm2022/lib/services/code-execution.service.mjs +0 -30
- package/lib/services/code-execution.service.d.ts +0 -9
- package/rangertechnologies-ngnxt-2.1.74.tgz +0 -0
|
@@ -3,10 +3,8 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class CustomLabelComponent implements OnInit {
|
|
4
4
|
labelValue: string;
|
|
5
5
|
labelStyle: string;
|
|
6
|
-
error: any;
|
|
7
|
-
errorMessage: string;
|
|
8
6
|
constructor();
|
|
9
7
|
ngOnInit(): void;
|
|
10
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomLabelComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomLabelComponent, "app-custom-label", never, { "labelValue": "labelValue"; "labelStyle": "labelStyle";
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomLabelComponent, "app-custom-label", never, { "labelValue": "labelValue"; "labelStyle": "labelStyle"; }, {}, never, never, false>;
|
|
12
10
|
}
|
|
@@ -7,7 +7,6 @@ import { ActionMeta } from '../../interfaces/actionMeta';
|
|
|
7
7
|
import { BookletWrapper } from "../../model/bookletWrapper";
|
|
8
8
|
import { StorageService } from '../../services/storage.service';
|
|
9
9
|
import { ChangeService } from "../../services/change.service";
|
|
10
|
-
import { CodeExecutionService } from "../../services/code-execution.service";
|
|
11
10
|
import { I18nService } from "../../i18n.service";
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
12
|
export declare class BookletComponent implements OnInit {
|
|
@@ -17,7 +16,6 @@ export declare class BookletComponent implements OnInit {
|
|
|
17
16
|
private route;
|
|
18
17
|
private sanitizer;
|
|
19
18
|
private changeService;
|
|
20
|
-
private codeExecutionService;
|
|
21
19
|
i18nService: I18nService;
|
|
22
20
|
bookletId: string;
|
|
23
21
|
serv: string;
|
|
@@ -43,13 +41,11 @@ export declare class BookletComponent implements OnInit {
|
|
|
43
41
|
isAnswerFlag: boolean;
|
|
44
42
|
spinnerName: string;
|
|
45
43
|
spinnerType: string;
|
|
46
|
-
validationMap: any;
|
|
47
44
|
langDirection: string;
|
|
48
45
|
answerList: any[];
|
|
49
46
|
dataBind: any;
|
|
50
|
-
errorBind: any;
|
|
51
47
|
allEvents: any[];
|
|
52
|
-
constructor(sfService: SalesforceService, dataService: DataService, storageService: StorageService, route: ActivatedRoute, sanitizer: DomSanitizer, changeService: ChangeService,
|
|
48
|
+
constructor(sfService: SalesforceService, dataService: DataService, storageService: StorageService, route: ActivatedRoute, sanitizer: DomSanitizer, changeService: ChangeService, el: ElementRef, i18nService: I18nService);
|
|
53
49
|
ngOnInit(): void;
|
|
54
50
|
ngOnChanges(simplechanges: SimpleChanges): void;
|
|
55
51
|
processBooklet(): void;
|
|
@@ -60,15 +56,13 @@ export declare class BookletComponent implements OnInit {
|
|
|
60
56
|
handleCompleteBooklet(completeBooklet: any): void;
|
|
61
57
|
handleBook(quesList: any): void;
|
|
62
58
|
handleQues(ques: any): void;
|
|
63
|
-
handleQuesValidation(ques: any): void;
|
|
64
59
|
addEvent(day: any, entryQues: any): void;
|
|
65
60
|
readQuestions(qbId: string): any[];
|
|
66
61
|
readTransQuestions(qbId: string): any[];
|
|
67
62
|
getText(value: any): SafeHtml;
|
|
68
|
-
handleQuestionsVal(questions: any): void;
|
|
69
63
|
getDropDown(event: any): void;
|
|
70
64
|
getCalendarDate(event: any): void;
|
|
71
65
|
getCalendarEvent(event: any): void;
|
|
72
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<BookletComponent, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": "bookletId"; "serv": "serv"; "tkn": "tkn"; "bookletJSON": "bookletJSON"; "dropdownDependentData": "dropdownDependentData"; "labelValue": "labelValue"; "token": "token"; "languageCode": "languageCode"; "fieldRestrictions": "fieldRestrictions"; "dataBind": "dataBind";
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": "bookletId"; "serv": "serv"; "tkn": "tkn"; "bookletJSON": "bookletJSON"; "dropdownDependentData": "dropdownDependentData"; "labelValue": "labelValue"; "token": "token"; "languageCode": "languageCode"; "fieldRestrictions": "fieldRestrictions"; "dataBind": "dataBind"; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleCalendarDate": "handleCalendarDate"; "handleCalendarEvent": "handleCalendarEvent"; }, never, never, false>;
|
|
74
68
|
}
|
|
@@ -24,7 +24,6 @@ export declare class QuestionbookComponent implements OnInit {
|
|
|
24
24
|
token: string;
|
|
25
25
|
handleDropDown: EventEmitter<any>;
|
|
26
26
|
handleQuestion: EventEmitter<any>;
|
|
27
|
-
handleValidation: EventEmitter<any>;
|
|
28
27
|
dropDownData: any;
|
|
29
28
|
subQuestions: Question[];
|
|
30
29
|
selectedFileData: any[];
|
|
@@ -63,5 +62,5 @@ export declare class QuestionbookComponent implements OnInit {
|
|
|
63
62
|
handleQuestionEvent(event: any): void;
|
|
64
63
|
closeCalendarModal(event: any): void;
|
|
65
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionbookComponent, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionbookComponent, "lib-questionbook", never, { "qbItem": "qbItem"; "questionItem": "questionItem"; "translatedQuestions": "translatedQuestions"; "questions": "questions"; "errorFieldId": "errorFieldId"; "labelValue": "labelValue"; "token": "token"; "dropDownData": "dropDownData"; }, { "handleDropDown": "handleDropDown"; "handleQuestion": "handleQuestion"; "
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionbookComponent, "lib-questionbook", never, { "qbItem": "qbItem"; "questionItem": "questionItem"; "translatedQuestions": "translatedQuestions"; "questions": "questions"; "errorFieldId": "errorFieldId"; "labelValue": "labelValue"; "token": "token"; "dropDownData": "dropDownData"; }, { "handleDropDown": "handleDropDown"; "handleQuestion": "handleQuestion"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleCalendarDate": "handleCalendarDate"; "handleCalendarEvent": "handleCalendarEvent"; }, never, never, false>;
|
|
67
66
|
}
|
package/lib/wrapper.d.ts
CHANGED
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { ErrorWrapper } from "./model/errorWrapper";
|
|
2
2
|
export declare class QuestionBook {
|
|
3
|
-
|
|
3
|
+
id: number;
|
|
4
4
|
Name: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
category: string;
|
|
6
|
+
next: string;
|
|
7
|
+
cancel: string;
|
|
8
|
+
back: string;
|
|
9
|
+
submit: string;
|
|
10
|
+
edit: string;
|
|
11
|
+
firstQuestion: string;
|
|
12
|
+
title: string;
|
|
13
|
+
nextTrackingId: string;
|
|
14
|
+
backTrackingId: string;
|
|
15
|
+
cancelTrackingId: string;
|
|
16
|
+
submitTrackingId: string;
|
|
17
|
+
totalQuestions: number;
|
|
18
|
+
summaryText?: string;
|
|
19
19
|
Questions__r?: QuestionR;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Style__c: {
|
|
20
|
+
progressBar: boolean;
|
|
21
|
+
subTitle: string;
|
|
22
|
+
qTyp: string;
|
|
23
|
+
possibilities: string;
|
|
24
|
+
summarySubText: string;
|
|
25
|
+
isShengel?: boolean;
|
|
26
|
+
style: {
|
|
28
27
|
labelClass: any;
|
|
29
28
|
labelStyle: any;
|
|
30
29
|
labelValueStyle: any;
|
|
@@ -37,38 +36,40 @@ export declare class QuestionBook {
|
|
|
37
36
|
};
|
|
38
37
|
}
|
|
39
38
|
export declare class Question {
|
|
40
|
-
|
|
39
|
+
id: string;
|
|
41
40
|
Name: string;
|
|
42
|
-
|
|
41
|
+
referenceField?: string;
|
|
43
42
|
dependentRef?: string;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
43
|
+
allowedFileExtensions: string;
|
|
44
|
+
question: string;
|
|
45
|
+
questionText: any;
|
|
46
|
+
type: string;
|
|
47
|
+
nextQuestion?: string;
|
|
48
|
+
isOptional: boolean;
|
|
49
|
+
title: string;
|
|
50
|
+
subTitle: string;
|
|
51
|
+
isTitle: boolean;
|
|
52
|
+
x24Hours: boolean;
|
|
53
|
+
errorMessage: string;
|
|
54
|
+
isDateBackward: boolean;
|
|
55
|
+
isDateForward: boolean;
|
|
56
|
+
isHidden: boolean;
|
|
57
|
+
groupName: string;
|
|
58
|
+
questionNumber?: string;
|
|
60
59
|
Question_Options__r?: OptionR;
|
|
61
|
-
static
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
static x24Hours: boolean;
|
|
61
|
+
options: any;
|
|
62
|
+
size: number;
|
|
63
|
+
subText: string;
|
|
64
|
+
trackingId: string;
|
|
65
|
+
timeText: string;
|
|
66
|
+
dateText: string;
|
|
67
|
+
additionalRichContent?: string;
|
|
68
68
|
Questions__r?: QuestionR;
|
|
69
69
|
RecordType: {
|
|
70
70
|
Name: string;
|
|
71
71
|
};
|
|
72
|
+
subQuestions: any;
|
|
72
73
|
input?: any;
|
|
73
74
|
error?: ErrorWrapper;
|
|
74
75
|
valueName?: string;
|
|
@@ -79,8 +80,8 @@ export declare class Question {
|
|
|
79
80
|
startDate?: any;
|
|
80
81
|
selectedValue?: string;
|
|
81
82
|
minDate?: any;
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
isShengel?: boolean;
|
|
84
|
+
style: {
|
|
84
85
|
labelClass: any;
|
|
85
86
|
labelStyle: any;
|
|
86
87
|
labelValueStyle: any;
|
|
@@ -93,31 +94,31 @@ export declare class Question {
|
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
96
|
export declare class LocalQuestion {
|
|
96
|
-
|
|
97
|
+
id: string;
|
|
97
98
|
Name: string;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
99
|
+
allowedFileExtensions: string;
|
|
100
|
+
question: string;
|
|
101
|
+
questionText: string;
|
|
102
|
+
type: string;
|
|
103
|
+
title: string;
|
|
104
|
+
subTitle: string;
|
|
105
|
+
nextQuestion?: string;
|
|
106
|
+
isOptional: boolean;
|
|
107
|
+
isTitle: boolean;
|
|
108
|
+
isHidden: boolean;
|
|
109
|
+
x24Hours: boolean;
|
|
110
|
+
errorMessage: string;
|
|
111
|
+
isDateBackward: boolean;
|
|
112
|
+
isDateForward: boolean;
|
|
113
|
+
timeText: string;
|
|
114
|
+
dateText: string;
|
|
115
|
+
groupName: string;
|
|
116
|
+
questionNumber?: string;
|
|
116
117
|
Question_Options__r?: OptionR;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
subText: string;
|
|
119
|
+
size: number;
|
|
120
|
+
trackingId: string;
|
|
121
|
+
additionalRichContent?: string;
|
|
121
122
|
selectedValue: string;
|
|
122
123
|
Questions__r?: QuestionR;
|
|
123
124
|
RecordType: {
|
|
@@ -125,9 +126,9 @@ export declare class LocalQuestion {
|
|
|
125
126
|
};
|
|
126
127
|
input?: string;
|
|
127
128
|
error?: ErrorWrapper;
|
|
128
|
-
static
|
|
129
|
+
static x24Hours: boolean;
|
|
129
130
|
uniqueSubQId: string;
|
|
130
|
-
|
|
131
|
+
style: {
|
|
131
132
|
labelClass: any;
|
|
132
133
|
labelStyle: any;
|
|
133
134
|
labelValueStyle: any;
|
|
@@ -146,32 +147,33 @@ export declare class OptionR {
|
|
|
146
147
|
records?: Option[];
|
|
147
148
|
}
|
|
148
149
|
export declare class Option {
|
|
149
|
-
|
|
150
|
+
id: string;
|
|
150
151
|
Name: string;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
value: string;
|
|
153
|
+
trackingId: string;
|
|
154
|
+
nextQuestion?: string;
|
|
154
155
|
}
|
|
155
156
|
export declare class OptionValue {
|
|
156
|
-
|
|
157
|
+
id: string;
|
|
157
158
|
Name: string;
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
value: string;
|
|
160
|
+
nextQuestion?: string;
|
|
160
161
|
checked: boolean;
|
|
161
162
|
}
|
|
162
163
|
export declare class AnswerBook {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
id: string;
|
|
165
|
+
questionBookId: string;
|
|
166
|
+
status: string;
|
|
166
167
|
Answers__r?: AnswerR;
|
|
168
|
+
answers: any;
|
|
167
169
|
}
|
|
168
170
|
export declare class Answer {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
id: string;
|
|
172
|
+
quesValue: string;
|
|
173
|
+
ansValue: string;
|
|
174
|
+
qTyp: string;
|
|
175
|
+
quesId: string;
|
|
176
|
+
groupText: string;
|
|
175
177
|
}
|
|
176
178
|
export declare class AnswerR {
|
|
177
179
|
records?: Answer[];
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// VD 17-DEC-2024 - service to handle the custom validation code
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class CodeExecutionService {
|
|
5
|
-
constructor() { }
|
|
6
|
-
executeCode(codeString, context = {}) {
|
|
7
|
-
try {
|
|
8
|
-
// Extract context keys and values
|
|
9
|
-
const contextKeys = Object.keys(context).join(', ');
|
|
10
|
-
const contextValues = Object.values(context);
|
|
11
|
-
// Create a dynamic function
|
|
12
|
-
const fn = new Function(contextKeys, `"use strict"; return (function() { ${codeString} })();`);
|
|
13
|
-
// Execute the function with the provided context
|
|
14
|
-
return fn(...contextValues);
|
|
15
|
-
}
|
|
16
|
-
catch (error) {
|
|
17
|
-
console.error('Error executing code:', error);
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeExecutionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
22
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeExecutionService, providedIn: 'root' });
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeExecutionService, decorators: [{
|
|
25
|
-
type: Injectable,
|
|
26
|
-
args: [{
|
|
27
|
-
providedIn: 'root'
|
|
28
|
-
}]
|
|
29
|
-
}], ctorParameters: function () { return []; } });
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS1leGVjdXRpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL254dC1hcHAvc3JjL2xpYi9zZXJ2aWNlcy9jb2RlLWV4ZWN1dGlvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGdFQUFnRTtBQUNoRSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sb0JBQW9CO0lBRS9CLGdCQUFnQixDQUFDO0lBRWpCLFdBQVcsQ0FBQyxVQUFrQixFQUFFLFVBQWtDLEVBQUU7UUFDbEUsSUFBSTtZQUNGLGtDQUFrQztZQUNsQyxNQUFNLFdBQVcsR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztZQUNwRCxNQUFNLGFBQWEsR0FBRyxNQUFNLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBRTdDLDRCQUE0QjtZQUM1QixNQUFNLEVBQUUsR0FBRyxJQUFJLFFBQVEsQ0FBQyxXQUFXLEVBQUUsc0NBQXNDLFVBQVUsUUFBUSxDQUFDLENBQUM7WUFFL0YsaURBQWlEO1lBQ2pELE9BQU8sRUFBRSxDQUFDLEdBQUcsYUFBYSxDQUFDLENBQUM7U0FDN0I7UUFBQyxPQUFPLEtBQUssRUFBRTtZQUNkLE9BQU8sQ0FBQyxLQUFLLENBQUMsdUJBQXVCLEVBQUUsS0FBSyxDQUFDLENBQUM7WUFDOUMsT0FBTyxJQUFJLENBQUM7U0FDYjtJQUNILENBQUM7dUdBbkJVLG9CQUFvQjsyR0FBcEIsb0JBQW9CLGNBRm5CLE1BQU07OzJGQUVQLG9CQUFvQjtrQkFIaEMsVUFBVTttQkFBQztvQkFDVixVQUFVLEVBQUUsTUFBTTtpQkFDbkIiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBWRCAxNy1ERUMtMjAyNCAtIHNlcnZpY2UgdG8gaGFuZGxlIHRoZSBjdXN0b20gdmFsaWRhdGlvbiBjb2RlXG5pbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXG59KVxuZXhwb3J0IGNsYXNzIENvZGVFeGVjdXRpb25TZXJ2aWNlIHtcblxuICBjb25zdHJ1Y3RvcigpIHsgfVxuXG4gIGV4ZWN1dGVDb2RlKGNvZGVTdHJpbmc6IHN0cmluZywgY29udGV4dDogeyBba2V5OiBzdHJpbmddOiBhbnkgfSA9IHt9KTogYW55IHtcbiAgICB0cnkge1xuICAgICAgLy8gRXh0cmFjdCBjb250ZXh0IGtleXMgYW5kIHZhbHVlc1xuICAgICAgY29uc3QgY29udGV4dEtleXMgPSBPYmplY3Qua2V5cyhjb250ZXh0KS5qb2luKCcsICcpO1xuICAgICAgY29uc3QgY29udGV4dFZhbHVlcyA9IE9iamVjdC52YWx1ZXMoY29udGV4dCk7XG5cbiAgICAgIC8vIENyZWF0ZSBhIGR5bmFtaWMgZnVuY3Rpb25cbiAgICAgIGNvbnN0IGZuID0gbmV3IEZ1bmN0aW9uKGNvbnRleHRLZXlzLCBgXCJ1c2Ugc3RyaWN0XCI7IHJldHVybiAoZnVuY3Rpb24oKSB7ICR7Y29kZVN0cmluZ30gfSkoKTtgKTtcblxuICAgICAgLy8gRXhlY3V0ZSB0aGUgZnVuY3Rpb24gd2l0aCB0aGUgcHJvdmlkZWQgY29udGV4dFxuICAgICAgcmV0dXJuIGZuKC4uLmNvbnRleHRWYWx1ZXMpO1xuICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICBjb25zb2xlLmVycm9yKCdFcnJvciBleGVjdXRpbmcgY29kZTonLCBlcnJvcik7XG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CodeExecutionService {
|
|
3
|
-
constructor();
|
|
4
|
-
executeCode(codeString: string, context?: {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}): any;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CodeExecutionService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CodeExecutionService>;
|
|
9
|
-
}
|
|
Binary file
|