@rangertechnologies/ngnxt 2.1.274 → 2.1.276

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.
@@ -1,5 +1,4 @@
1
1
  import { OnInit, EventEmitter, ChangeDetectorRef, AfterViewInit } from '@angular/core';
2
- import { Question, QuestionBook } from '../../wrapper';
3
2
  import { BehaviorSubject, Subscription } from 'rxjs';
4
3
  import { CropperPosition, Dimensions, ImageTransform } from '../../components/image-cropper/interfaces';
5
4
  import { SalesforceService } from '../../services/salesforce/salesforce.service';
@@ -14,8 +13,8 @@ export declare class QuestionbookComponent implements OnInit, AfterViewInit {
14
13
  private storageService;
15
14
  private cdr;
16
15
  private document;
17
- qbItem: QuestionBook;
18
- questionItem: Question;
16
+ qbItem: any;
17
+ questionItem: any;
19
18
  questions: any[];
20
19
  errorFieldId: any;
21
20
  labelValue: string;
@@ -31,10 +30,10 @@ export declare class QuestionbookComponent implements OnInit, AfterViewInit {
31
30
  cdnIconURL: string;
32
31
  direction: any;
33
32
  languageCode: any;
34
- subQuestions: Question[];
33
+ subQuestions: any[];
35
34
  selectedFileData: any[];
36
35
  loadComponent$: BehaviorSubject<boolean>;
37
- qbRef: QuestionBook;
36
+ qbRef: any;
38
37
  style: any;
39
38
  bookStyle: any;
40
39
  subscription: Subscription;
@@ -3,7 +3,6 @@ import { ActivatedRoute, Params } from "@angular/router";
3
3
  import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
4
4
  import { UntypedFormBuilder } from "@angular/forms";
5
5
  import { DeviceDetectorService } from 'ngx-device-detector';
6
- import { Question, QuestionBook, AnswerBook, AnswerWrapper, OptionValue, LocalQuestion } from "../../wrapper";
7
6
  import { SalesforceService } from "../../services/salesforce/salesforce.service";
8
7
  import { DataService } from "../../services/data/data.service";
9
8
  import { ChangeService } from "../../services/change/change.service";
@@ -32,10 +31,10 @@ export declare class QuestionnaireComponent implements OnInit {
32
31
  handleSubmit: EventEmitter<any>;
33
32
  params: Params;
34
33
  deviceInfo: any;
35
- abItem: AnswerBook;
36
- qbItem: QuestionBook;
37
- questionItem: Question;
38
- answerWrap: AnswerWrapper;
34
+ abItem: any;
35
+ qbItem: any;
36
+ questionItem: any;
37
+ answerWrap: any;
39
38
  radioFlag: boolean;
40
39
  dataFlag: boolean;
41
40
  dropdownFlag: boolean;
@@ -54,8 +53,8 @@ export declare class QuestionnaireComponent implements OnInit {
54
53
  listFlag: boolean;
55
54
  backButtonFlag: boolean;
56
55
  isButtonDisabled: boolean;
57
- optionValues: OptionValue[];
58
- subQuestions: Question[];
56
+ optionValues: any[];
57
+ subQuestions: any[];
59
58
  inpValue: string;
60
59
  answerMap: Map<any, any>;
61
60
  dateMap: Map<any, any>;
@@ -63,7 +62,7 @@ export declare class QuestionnaireComponent implements OnInit {
63
62
  selectedminuteMap: Map<any, any>;
64
63
  attachmentsMap: Map<any, any>;
65
64
  subAnsMap: Map<any, any>;
66
- localSubQuestions: LocalQuestion[];
65
+ localSubQuestions: any[];
67
66
  questionStack: any[];
68
67
  questionName: any[];
69
68
  attachments: any[];
@@ -197,11 +196,11 @@ export declare class QuestionnaireComponent implements OnInit {
197
196
  getCode(): void;
198
197
  getPostalcode(value: any): void;
199
198
  closeDropdown(): void;
200
- structLocalSubQuestion(ques: LocalQuestion): void;
201
- addInputBox(question: LocalQuestion, index: number): void;
199
+ structLocalSubQuestion(ques: any): void;
200
+ addInputBox(question: any, index: number): void;
202
201
  removeAddress(quesUniqueId: string, qName: string): void;
203
202
  getLocalSubQuestions(id: String): any;
204
- Add(question: LocalQuestion): void;
203
+ Add(question: any): void;
205
204
  handleLocationSelected(location: any, ques: any): void;
206
205
  selectedInput(input: any, ques: any): void;
207
206
  handleTextareaValueChange(value: string): void;
@@ -40,8 +40,13 @@ export interface CountryData {
40
40
  }
41
41
  export declare class CountryService {
42
42
  private countriesData;
43
+ currentCurrencyOption: any;
44
+ private currentCurrencyOptionSubject;
45
+ currentCurrencyOption$: import("rxjs").Observable<any[]>;
43
46
  constructor();
44
47
  private transformData;
48
+ currentCurrency(option: any): void;
49
+ getCurrentCurrency(): any;
45
50
  getCountryData(fields: (keyof CountryData)[]): any[];
46
51
  static ɵfac: i0.ɵɵFactoryDeclaration<CountryService, never>;
47
52
  static ɵprov: i0.ɵɵInjectableDeclaration<CountryService>;
@@ -1,8 +1,12 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { ElementComponent } from '../../pages/builder/element/element.component';
3
3
  import { HttpClient } from '@angular/common/http';
4
+ import { CountryService } from '../country/country.service';
5
+ import 'moment/locale/ar-sa';
6
+ import 'moment/locale/en-gb';
4
7
  import * as i0 from "@angular/core";
5
8
  export declare class PdfDesignerService {
9
+ private countryService;
6
10
  private http;
7
11
  private pdfElements;
8
12
  private pdfElementsSubject;
@@ -13,11 +17,15 @@ export declare class PdfDesignerService {
13
17
  unique_id: any;
14
18
  tempElem: any[];
15
19
  pdfElements$: Observable<any[]>;
16
- selectedElement$: Observable<number>;
20
+ selectedElement$: Observable<{
21
+ index: number;
22
+ pdfIndex?: number;
23
+ }>;
17
24
  selectHeaderSubject$: Observable<any>;
18
25
  currentElement: any;
19
26
  selectTableColumn: any;
20
- constructor(http: HttpClient);
27
+ currencyOption: any;
28
+ constructor(countryService: CountryService, http: HttpClient);
21
29
  intializeBook(pdf: any): void;
22
30
  getRefQbData(refqbid: string): Observable<any>;
23
31
  addElementWithId(): string;
@@ -26,10 +34,10 @@ export declare class PdfDesignerService {
26
34
  getElementComponent(): ElementComponent | null;
27
35
  setElementComponent(component: ElementComponent): void;
28
36
  addElement(element: any): void;
29
- addTableElement(element: any, ind: any): void;
37
+ addTableElement(element: any, index: number): void;
30
38
  updateElement(index: number, updates: Partial<any>): void;
31
39
  updateTitle(event: any): void;
32
- setSelectedElement(index: number): void;
40
+ setSelectedElement(index: number, pdfIndex?: number): void;
33
41
  setSelectedTableElement(index: any, event: any): void;
34
42
  removeSelectedTableElement(index: number, event: any): void;
35
43
  getSelectTableColumn(): any;
@@ -42,6 +50,8 @@ export declare class PdfDesignerService {
42
50
  updateElementsOrder(updatedElements: any[]): void;
43
51
  removeElementComponent(id: any): void;
44
52
  elementUpdate(element: any, from?: any): void;
53
+ dateTransform(value: any, type: 'date' | 'datetime' | 'month' | 'time', languageCode: string, dateFormatType: 'hijri' | 'gregorianAr' | 'gregorian'): string;
54
+ private toArabicNumbers;
45
55
  static ɵfac: i0.ɵɵFactoryDeclaration<PdfDesignerService, never>;
46
56
  static ɵprov: i0.ɵɵInjectableDeclaration<PdfDesignerService>;
47
57
  }
@@ -1,4 +1,3 @@
1
- import { Question } from '../../wrapper';
2
1
  import { BookletWrapper } from '../../model/bookletWrapper';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class StorageService {
@@ -6,9 +5,10 @@ export declare class StorageService {
6
5
  selectedData: any;
7
6
  private queryValueMap;
8
7
  private apiResponseData;
8
+ private conditionQuestionValue;
9
9
  constructor();
10
10
  save(qbJson: BookletWrapper): void;
11
- update(questionWithInput: Question): void;
11
+ update(questionWithInput: any): void;
12
12
  get(): BookletWrapper;
13
13
  queryValueStore(questionId: string, key: string, value: any): void;
14
14
  getQueryValue(questionId: string): any;
@@ -18,6 +18,9 @@ export declare class StorageService {
18
18
  getApiResponseValue(questionId: string): any;
19
19
  clearApiResponseValue(questionId: string): void;
20
20
  clearAllApiResponseValues(): void;
21
+ setConditionQuestionValue(quesId: any, condQId: any, status: boolean): void;
22
+ getConditionQuestionValue(quesId: any, condQId: any): any;
23
+ setConditionQuestionData(quesId: any, condQId: any, data: any): void;
21
24
  static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
22
25
  static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
23
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangertechnologies/ngnxt",
3
- "version": "2.1.274",
3
+ "version": "2.1.276",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14"
@@ -1,16 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { TemplateService } from '../../../services/template/template.service';
3
- import * as i0 from "@angular/core";
4
- export declare class AppTemplatesComponent {
5
- private templateService;
6
- templateSelected: EventEmitter<any>;
7
- templates: any[];
8
- sections: {
9
- templates: boolean;
10
- };
11
- constructor(templateService: TemplateService);
12
- toggleSection(section: 'templates'): void;
13
- selectTemplate(templateId: number): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<AppTemplatesComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<AppTemplatesComponent, "app-templates", never, {}, { "templateSelected": "templateSelected"; }, never, never, true, never>;
16
- }
package/lib/sample.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { Question, QuestionBook } from "./wrapper";
2
- export declare const TESTQB: QuestionBook;
3
- export declare const TESTQUESTION: Question;
4
- export declare const DTQUESTION: Question;
5
- export declare const FILEQUESTION: Question;
6
- export declare const RTAQUESTION: Question;
7
- export declare const TAQUESTION: Question;
8
- export declare const RADIOQUESTION: Question;
9
- export declare const CHECKQUESTION: Question;
10
- export declare const GOOGLE_MAP_API_KEY = "AIzaSyA18odJnD-pDsu7EVJ7WiXVM5sVvpjAQxw";
11
- export declare const BOOKQUESTION: Question;
package/lib/wrapper.d.ts DELETED
@@ -1,203 +0,0 @@
1
- import { ErrorWrapper } from "./model/errorWrapper";
2
- export declare class QuestionBook {
3
- id: number;
4
- Name: string;
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
- Questions__r?: QuestionR;
20
- progressBar: boolean;
21
- subTitle: string;
22
- qTyp: string;
23
- possibilities: string;
24
- summarySubText: string;
25
- isShengel?: boolean;
26
- style: {
27
- labelClass: any;
28
- labelStyle: any;
29
- labelValueStyle: any;
30
- inputClass: any;
31
- inputStyle: any;
32
- showLabel: boolean;
33
- bookStyle: any;
34
- direction: any;
35
- questionStyle: any;
36
- };
37
- }
38
- export declare class Question {
39
- id: string;
40
- Name: string;
41
- referenceField?: string;
42
- dependentRef?: string;
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;
59
- Question_Options__r?: OptionR;
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
- Questions__r?: QuestionR;
69
- RecordType: {
70
- Name: string;
71
- };
72
- subQuestions: any;
73
- input?: any;
74
- error?: ErrorWrapper;
75
- valueName?: string;
76
- dropDownOnly?: boolean;
77
- isDependentPicklist?: boolean;
78
- tableDataValue?: any[];
79
- tableHeader?: string;
80
- startDate?: any;
81
- selectedValue?: string;
82
- minDate?: any;
83
- isShengel?: boolean;
84
- style: {
85
- labelClass: any;
86
- labelStyle: any;
87
- labelValueStyle: any;
88
- inputClass: any;
89
- inputStyle: any;
90
- showLabel: boolean;
91
- bookStyle: any;
92
- direction: any;
93
- questionStyle: any;
94
- };
95
- }
96
- export declare class LocalQuestion {
97
- id: string;
98
- Name: string;
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;
117
- Question_Options__r?: OptionR;
118
- subText: string;
119
- size: number;
120
- trackingId: string;
121
- additionalRichContent?: string;
122
- selectedValue: string;
123
- Questions__r?: QuestionR;
124
- RecordType: {
125
- Name: string;
126
- };
127
- input?: string;
128
- error?: ErrorWrapper;
129
- static x24Hours: boolean;
130
- uniqueSubQId: string;
131
- style: {
132
- labelClass: any;
133
- labelStyle: any;
134
- labelValueStyle: any;
135
- inputClass: any;
136
- inputStyle: any;
137
- showLabel: boolean;
138
- bookStyle: any;
139
- direction: any;
140
- questionStyle: any;
141
- };
142
- }
143
- export declare class QuestionR {
144
- records?: Question[];
145
- }
146
- export declare class OptionR {
147
- records?: Option[];
148
- }
149
- export declare class Option {
150
- id: string;
151
- Name: string;
152
- value: string;
153
- trackingId: string;
154
- nextQuestion?: string;
155
- }
156
- export declare class OptionValue {
157
- id: string;
158
- Name: string;
159
- value: string;
160
- nextQuestion?: string;
161
- checked: boolean;
162
- }
163
- export declare class AnswerBook {
164
- id: string;
165
- questionBookId: string;
166
- status: string;
167
- Answers__r?: AnswerR;
168
- answers: any;
169
- }
170
- export declare class Answer {
171
- id: string;
172
- quesValue: string;
173
- ansValue: string;
174
- qTyp: string;
175
- quesId: string;
176
- groupText: string;
177
- }
178
- export declare class AnswerR {
179
- records?: Answer[];
180
- }
181
- export declare class AnswerWrapper {
182
- ansId?: string;
183
- ansNumber?: number;
184
- abId: string;
185
- quesId: string;
186
- quesValue: string;
187
- qTyp: string;
188
- ansValue: string;
189
- groupText: string;
190
- squesValue: string;
191
- myVal: any;
192
- }
193
- export declare class AttachmentWrapper {
194
- parentId: string;
195
- fileName: string;
196
- fileContent: string;
197
- }
198
- export declare class Attachment {
199
- attachmentId: string;
200
- attachmentName: string;
201
- attachmentMetaData: any;
202
- constructor(id: string, name: string, metaData: any);
203
- }