@rangertechnologies/ngnxt 2.1.34014 → 2.2.1
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/fesm2022/rangertechnologies-ngnxt.mjs +4717 -783
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/package.json +7 -6
- package/rangertechnologies-ngnxt-2.2.1.tgz +0 -0
- package/src/lib/style.css +3 -7
- package/types/rangertechnologies-ngnxt.d.ts +2310 -0
- package/environments/version.d.ts +0 -11
- package/index.d.ts +0 -5
- package/lib/components/button/nxt-button.component.d.ts +0 -49
- package/lib/components/custom-calendar/custom-calendar.component.d.ts +0 -63
- package/lib/components/custom-model/custom-model.component.d.ts +0 -19
- package/lib/components/custom-radio/custom-radio.component.d.ts +0 -44
- package/lib/components/datatable/datatable.component.d.ts +0 -244
- package/lib/components/file-upload/file-upload.component.d.ts +0 -74
- package/lib/components/formula-input/formula-input.component.d.ts +0 -39
- package/lib/components/icon-selector/icon-selector.component.d.ts +0 -34
- package/lib/components/image-cropper/component/cropper.state.d.ts +0 -29
- package/lib/components/image-cropper/component/image-cropper.component.d.ts +0 -109
- package/lib/components/image-cropper/interfaces/basic-event.interface.d.ts +0 -4
- package/lib/components/image-cropper/interfaces/cropper-options.interface.d.ts +0 -28
- package/lib/components/image-cropper/interfaces/cropper-position.interface.d.ts +0 -6
- package/lib/components/image-cropper/interfaces/dimensions.interface.d.ts +0 -4
- package/lib/components/image-cropper/interfaces/exif-transform.interface.d.ts +0 -4
- package/lib/components/image-cropper/interfaces/image-cropped-event.interface.d.ts +0 -11
- package/lib/components/image-cropper/interfaces/image-transform.interface.d.ts +0 -9
- package/lib/components/image-cropper/interfaces/index.d.ts +0 -7
- package/lib/components/image-cropper/interfaces/loaded-image.interface.d.ts +0 -15
- package/lib/components/image-cropper/interfaces/move-start.interface.d.ts +0 -17
- package/lib/components/image-cropper/services/crop.service.d.ts +0 -13
- package/lib/components/image-cropper/services/load-image.service.d.ts +0 -17
- package/lib/components/image-cropper/utils/cropper-position.utils.d.ts +0 -11
- package/lib/components/image-cropper/utils/exif.utils.d.ts +0 -3
- package/lib/components/image-cropper/utils/keyboard.utils.d.ts +0 -5
- package/lib/components/image-cropper/utils/percentage.utils.d.ts +0 -1
- package/lib/components/image-cropper/utils/resize.utils.d.ts +0 -1
- package/lib/components/list-view-filter/list-view-filter.component.d.ts +0 -109
- package/lib/components/nxt-datepicker/custom-datepicker/custom-datepicker.component.d.ts +0 -68
- package/lib/components/nxt-datepicker/hijri-datepicker/hijri-datepicker.component.d.ts +0 -50
- package/lib/components/nxt-datepicker/nxt-datepicker.component.d.ts +0 -20
- package/lib/components/nxt-dropdown/nxt-dropdown.component.d.ts +0 -62
- package/lib/components/nxt-input/nxt-input.component.d.ts +0 -207
- package/lib/components/pagination/pagination.component.d.ts +0 -37
- package/lib/components/search-box/search-box.component.d.ts +0 -72
- package/lib/interfaces/actionMeta.d.ts +0 -6
- package/lib/interfaces/dependencyMeta.d.ts +0 -8
- package/lib/model/bookletWrapper.d.ts +0 -4
- package/lib/model/changeWrapper.d.ts +0 -9
- package/lib/model/errorWrapper.d.ts +0 -5
- package/lib/nxt-app.component.d.ts +0 -8
- package/lib/nxt-app.module.d.ts +0 -22
- package/lib/nxt-app.service.d.ts +0 -6
- package/lib/pages/booklet/booklet.component.d.ts +0 -96
- package/lib/pages/builder/element/element.component.d.ts +0 -64
- package/lib/pages/builder/form/form.component.d.ts +0 -15
- package/lib/pages/builder/properties/common-fields.constants.d.ts +0 -173
- package/lib/pages/builder/properties/properties.component.d.ts +0 -480
- package/lib/pages/pdfDesigner/pdf-designer/pdf-designer.component.d.ts +0 -141
- package/lib/pages/pdfDesigner/pdf-properties/pdf-properties.component.d.ts +0 -1169
- package/lib/pages/questionbook/questionbook.component.d.ts +0 -108
- package/lib/pages/questionnaire/questionnaire.component.d.ts +0 -213
- package/lib/pipe/NxtDate.pipe.d.ts +0 -14
- package/lib/pipe/amount-in-words/amount-in-words.pipe.d.ts +0 -9
- package/lib/pipe/button-styles.pipe.d.ts +0 -9
- package/lib/pipe/custom-translate.pipe.d.ts +0 -10
- package/lib/pipe/get-value.pipe.d.ts +0 -12
- package/lib/pipe/question-by-row.pipe.d.ts +0 -9
- package/lib/pipe/search-filter/search-filter.pipe.d.ts +0 -8
- package/lib/services/GoogleMapsLoaderService/google-maps-loader-service.service.d.ts +0 -7
- package/lib/services/change/change.service.d.ts +0 -21
- package/lib/services/country/country.service.d.ts +0 -54
- package/lib/services/data/data.service.d.ts +0 -18
- package/lib/services/form-builder/form-builder.service.d.ts +0 -103
- package/lib/services/pdf-designer/pdf-designer.service.d.ts +0 -59
- package/lib/services/salesforce/salesforce.service.d.ts +0 -11
- package/lib/services/shared/shared.service.d.ts +0 -15
- package/lib/services/storage/storage.service.d.ts +0 -20
- package/lib/services/template/template.service.d.ts +0 -18
- package/lib/services/translation/indexeddb-reader.service.d.ts +0 -13
- package/lib/services/translation/translation.service.d.ts +0 -32
- package/public-api.d.ts +0 -17
- package/rangertechnologies-ngnxt-2.1.34014.tgz +0 -0
|
@@ -0,0 +1,2310 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter, ElementRef, ChangeDetectorRef, Renderer2, SimpleChanges, OnChanges, OnDestroy, WritableSignal, TrackByFunction, PipeTransform, AfterViewInit, QueryList, NgZone, ApplicationRef, Injector } from '@angular/core';
|
|
3
|
+
import * as rxjs from 'rxjs';
|
|
4
|
+
import { Observable, Subscription, BehaviorSubject } from 'rxjs';
|
|
5
|
+
import { HttpClient } from '@angular/common/http';
|
|
6
|
+
import * as i2 from '@angular/common';
|
|
7
|
+
import * as i3 from '@angular/forms';
|
|
8
|
+
import { FormGroup, FormArray, FormBuilder, FormControl, ValidatorFn, AbstractControl, ValidationErrors, UntypedFormBuilder } from '@angular/forms';
|
|
9
|
+
import { MatSort } from '@angular/material/sort';
|
|
10
|
+
import { QuillModules } from 'ngx-quill';
|
|
11
|
+
import { Router, Params, ActivatedRoute } from '@angular/router';
|
|
12
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
13
|
+
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
14
|
+
|
|
15
|
+
declare class NxtAppService {
|
|
16
|
+
constructor();
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtAppService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class NxtAppComponent implements OnInit {
|
|
22
|
+
constructor();
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtAppComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxtAppComponent, "lib-nxt-app", never, {}, {}, never, never, false, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class DataService {
|
|
29
|
+
private http;
|
|
30
|
+
apiUrl: any;
|
|
31
|
+
constructor(http: HttpClient);
|
|
32
|
+
getAPIData(tkn: string, params: string[], resolve: any, reject: any, config?: any): void;
|
|
33
|
+
getAPIFromNode(dataType: string, operation: string, param1: string, param2: string, api: string): Observable<any>;
|
|
34
|
+
getValue(element: any, columns: any): any;
|
|
35
|
+
apikey(apidata: any): void;
|
|
36
|
+
apiResponse(endpoint: string): Observable<any>;
|
|
37
|
+
formatToHijriString(date: any, type?: 'year' | 'month' | 'date' | 'time' | any): any;
|
|
38
|
+
formatToGregorianString(date: any, type?: any): string;
|
|
39
|
+
nxtId(): string;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataService, [{ optional: true; }]>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class IndexedDbReaderService {
|
|
45
|
+
private dbName;
|
|
46
|
+
private storeName;
|
|
47
|
+
private path;
|
|
48
|
+
private dbPromise;
|
|
49
|
+
constructor();
|
|
50
|
+
private initDB;
|
|
51
|
+
getTranslation(lang: string): Promise<any>;
|
|
52
|
+
private readTranslation;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IndexedDbReaderService, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare class TranslationService {
|
|
58
|
+
private dataService;
|
|
59
|
+
private indexedDbReader;
|
|
60
|
+
private translations;
|
|
61
|
+
private currentLang;
|
|
62
|
+
private translationsLoaded;
|
|
63
|
+
translationsLoaded$: rxjs.Observable<void>;
|
|
64
|
+
private languageChange;
|
|
65
|
+
languageChange$: rxjs.Observable<any>;
|
|
66
|
+
private formBuilderTranslations;
|
|
67
|
+
private formBuilderCurrentLang;
|
|
68
|
+
private formBuilderTranslationsLoaded;
|
|
69
|
+
formBuilderTranslationsLoaded$: rxjs.Observable<string>;
|
|
70
|
+
constructor(dataService: DataService, indexedDbReader: IndexedDbReaderService);
|
|
71
|
+
load(): Promise<void>;
|
|
72
|
+
private safeParse;
|
|
73
|
+
flattenAppTranslations(translations: any): any;
|
|
74
|
+
updateTranslations(newTranslations: any): void;
|
|
75
|
+
private deepMerge;
|
|
76
|
+
getLanguage(): string;
|
|
77
|
+
setLanguage(lang: string): void;
|
|
78
|
+
translate(key: string): string | null;
|
|
79
|
+
setFormBuilderTranslations(formBuilderTrans: any): void;
|
|
80
|
+
getFormBuilderLanguage(): string;
|
|
81
|
+
setFormBuilderLanguage(lang: string): void;
|
|
82
|
+
formBuilderTranslate(key: string, lang: any): string | null;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, never>;
|
|
84
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare class ChangeService {
|
|
88
|
+
constructor();
|
|
89
|
+
private changeAnnouncedSource;
|
|
90
|
+
private changeConfirmedSource;
|
|
91
|
+
private validationSource;
|
|
92
|
+
private fieldSource;
|
|
93
|
+
private customChanges;
|
|
94
|
+
changeAnnounced$: rxjs.Observable<any>;
|
|
95
|
+
changeConfirmed$: rxjs.Observable<any>;
|
|
96
|
+
submitValidate$: rxjs.Observable<any>;
|
|
97
|
+
changeField$: rxjs.Observable<any>;
|
|
98
|
+
customChange$: rxjs.Observable<any>;
|
|
99
|
+
announceChange(changeValue: any): void;
|
|
100
|
+
confirmChange(childQuestion: string): void;
|
|
101
|
+
dataChanges(data: string): void;
|
|
102
|
+
submitChange(value: string): void;
|
|
103
|
+
fieldChange(value: any): void;
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChangeService, never>;
|
|
105
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare class StorageService {
|
|
109
|
+
private queryValueMap;
|
|
110
|
+
private apiResponseData;
|
|
111
|
+
private conditionQuestionValue;
|
|
112
|
+
constructor();
|
|
113
|
+
queryValueStore(questionId: string, key: string, value: any): void;
|
|
114
|
+
getQueryValue(questionId: string): any;
|
|
115
|
+
clearQueryValue(questionId: string): void;
|
|
116
|
+
clearAllQueryValues(): void;
|
|
117
|
+
apiResponseStore(questionId: string, value: any): void;
|
|
118
|
+
getApiResponseValue(questionId: string): any;
|
|
119
|
+
clearApiResponseValue(questionId: string): void;
|
|
120
|
+
clearAllApiResponseValues(): void;
|
|
121
|
+
setConditionQuestionValue(quesId: any, condQId: any, status: boolean): void;
|
|
122
|
+
getConditionQuestionValue(quesId: any, condQId: any): any;
|
|
123
|
+
setConditionQuestionData(quesId: any, condQId: any, data: any): void;
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
125
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
interface CountryData {
|
|
129
|
+
countryName: string;
|
|
130
|
+
officialName: string;
|
|
131
|
+
isoAlpha2: string;
|
|
132
|
+
isoAlpha3: string;
|
|
133
|
+
isoNumeric: string;
|
|
134
|
+
capital: string[];
|
|
135
|
+
capitalPrimary: string;
|
|
136
|
+
coordinates: {
|
|
137
|
+
latitude: number;
|
|
138
|
+
longitude: number;
|
|
139
|
+
latLng: number[];
|
|
140
|
+
};
|
|
141
|
+
areaSqKm: number;
|
|
142
|
+
continent: string;
|
|
143
|
+
region: string;
|
|
144
|
+
subregion: string;
|
|
145
|
+
population: number;
|
|
146
|
+
languages: {
|
|
147
|
+
[key: string]: string;
|
|
148
|
+
};
|
|
149
|
+
languagesName: string[];
|
|
150
|
+
languageCode: string[];
|
|
151
|
+
primaryLanguage: string;
|
|
152
|
+
primaryLanguageCode: string;
|
|
153
|
+
currencies: {
|
|
154
|
+
[key: string]: any;
|
|
155
|
+
};
|
|
156
|
+
currencyCode: string;
|
|
157
|
+
currencyName: string;
|
|
158
|
+
currencySymbol: string;
|
|
159
|
+
phoneCodeFull: string;
|
|
160
|
+
flag: string;
|
|
161
|
+
flagPng: string;
|
|
162
|
+
flagSvg: string;
|
|
163
|
+
timezones: string[];
|
|
164
|
+
borders: string[];
|
|
165
|
+
[key: string]: any;
|
|
166
|
+
}
|
|
167
|
+
declare class CountryService {
|
|
168
|
+
private countriesData;
|
|
169
|
+
currentCurrencyOption: any;
|
|
170
|
+
private currentCurrencyOptionSubject;
|
|
171
|
+
currentCurrencyOption$: rxjs.Observable<any[]>;
|
|
172
|
+
constructor();
|
|
173
|
+
private transformData;
|
|
174
|
+
currentCurrency(option: any): void;
|
|
175
|
+
currencyCodeSet(code: any): void;
|
|
176
|
+
getCurrentCurrency(): any;
|
|
177
|
+
getCountryData(fields: (keyof CountryData)[]): any[];
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CountryService, never>;
|
|
179
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** Configuration for a single advanced-filter control. */
|
|
183
|
+
interface AdvancedFilterConfig {
|
|
184
|
+
/** Data field path (supports dot-notation, e.g. 'employee.name'). */
|
|
185
|
+
field: string;
|
|
186
|
+
/** Human-readable label shown above the control. */
|
|
187
|
+
label: string;
|
|
188
|
+
/** Control type determines which reusable control is rendered. */
|
|
189
|
+
type: 'text' | 'date' | 'dropdown' | 'list';
|
|
190
|
+
/** Options list for 'dropdown' and 'searchDropdown' types.
|
|
191
|
+
* Each option should have the shape: { id, name, value, label, ... }
|
|
192
|
+
* Use `labelField` to pick the display property and `valueField` for the match value. */
|
|
193
|
+
options?: any[];
|
|
194
|
+
/** Placeholder text shown inside the control. */
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
/** Property on an option object used as display label (default: 'label'). */
|
|
197
|
+
labelField?: string;
|
|
198
|
+
/** Property on an option object used as the filter/match value (default: 'value').
|
|
199
|
+
* For searchDropdown, the emitted object `{ id, name, value }` is read with this key. */
|
|
200
|
+
valueField?: string;
|
|
201
|
+
/** CSS width for the control, e.g. '180px'. Defaults to 160px for text, 190px for dropdowns. */
|
|
202
|
+
width?: string;
|
|
203
|
+
/** Evaluation priority. Lower number runs first. Default: index order. */
|
|
204
|
+
priority?: number;
|
|
205
|
+
/** Pre-populate this filter with a default value on init. */
|
|
206
|
+
defaultValue?: any;
|
|
207
|
+
/** If true, the control is rendered in read-only/disabled state. */
|
|
208
|
+
disabled?: boolean;
|
|
209
|
+
/** If true, the filter item is not rendered in the bar. */
|
|
210
|
+
hidden?: boolean;
|
|
211
|
+
id?: string;
|
|
212
|
+
subText?: any;
|
|
213
|
+
[key: string]: any;
|
|
214
|
+
}
|
|
215
|
+
/** SKS1JUL26 Represents a date-range filter value for type:'date' fields. */
|
|
216
|
+
interface AdvancedDateRange {
|
|
217
|
+
startDate: string;
|
|
218
|
+
endDate: string;
|
|
219
|
+
}
|
|
220
|
+
/** SKS1JUL26 Map of field -> current filter value (scalar or date-range). */
|
|
221
|
+
type AdvancedFilterValues = Record<string, string | AdvancedDateRange | null>;
|
|
222
|
+
declare class NxtDatatable {
|
|
223
|
+
private countryService;
|
|
224
|
+
private storageService;
|
|
225
|
+
private cdRef;
|
|
226
|
+
private translationService;
|
|
227
|
+
private renderer;
|
|
228
|
+
private dataService;
|
|
229
|
+
private changeService;
|
|
230
|
+
data: any[];
|
|
231
|
+
summaryValues: {
|
|
232
|
+
[label: string]: any;
|
|
233
|
+
};
|
|
234
|
+
tableFilterData: any[];
|
|
235
|
+
columns: Array<any>;
|
|
236
|
+
withCheckBox: boolean;
|
|
237
|
+
searchBar: boolean;
|
|
238
|
+
tableSaveButton: boolean;
|
|
239
|
+
hideSaveButton: boolean;
|
|
240
|
+
stickyColumn: boolean;
|
|
241
|
+
tableWidth: string;
|
|
242
|
+
actionColumHeader: string;
|
|
243
|
+
actionButton: boolean;
|
|
244
|
+
title: any;
|
|
245
|
+
isButtons: boolean;
|
|
246
|
+
buttonArray: any;
|
|
247
|
+
tableId: any;
|
|
248
|
+
isEditRow: boolean;
|
|
249
|
+
isDeleteRow: boolean;
|
|
250
|
+
addInlineRecord: boolean;
|
|
251
|
+
searchConfigs: any;
|
|
252
|
+
direction: 'rtl' | 'ltr';
|
|
253
|
+
pagination: boolean;
|
|
254
|
+
actionButtonArray: any;
|
|
255
|
+
multipleFilter: any;
|
|
256
|
+
isPagination: any;
|
|
257
|
+
isListViews: any;
|
|
258
|
+
id: any;
|
|
259
|
+
isNosIndicator: any;
|
|
260
|
+
isEditable: any;
|
|
261
|
+
from: any;
|
|
262
|
+
question: any;
|
|
263
|
+
rowTextSize: any;
|
|
264
|
+
rowTextColor: any;
|
|
265
|
+
apiMeta: any;
|
|
266
|
+
summaryRows: any;
|
|
267
|
+
summaryColumns: any;
|
|
268
|
+
isLoading: any;
|
|
269
|
+
tableConfig: any;
|
|
270
|
+
tableParams: any;
|
|
271
|
+
listViews: any[];
|
|
272
|
+
mode: 'view' | 'edit' | 'print';
|
|
273
|
+
languageCode: string;
|
|
274
|
+
selectedColumn: string | null;
|
|
275
|
+
allIcons: any[];
|
|
276
|
+
isButtonLoading: boolean;
|
|
277
|
+
isPreview: boolean;
|
|
278
|
+
groupFilter: boolean;
|
|
279
|
+
groupFilterConfig: any;
|
|
280
|
+
groupFilterColumn: any;
|
|
281
|
+
onlyView: boolean;
|
|
282
|
+
tableHeight: any;
|
|
283
|
+
serialNumberColumn: boolean;
|
|
284
|
+
/** SKS1JUL26 SKS1JUL26: Configuration array for the advanced filter bar. Each entry produces one filter control. */
|
|
285
|
+
advancedFilters: AdvancedFilterConfig[];
|
|
286
|
+
tableRowClick: EventEmitter<any>;
|
|
287
|
+
onEditData: EventEmitter<any>;
|
|
288
|
+
onSaveData: EventEmitter<any>;
|
|
289
|
+
saveButtonData: EventEmitter<any>;
|
|
290
|
+
onDeleteData: EventEmitter<any>;
|
|
291
|
+
buttonEmit: EventEmitter<any>;
|
|
292
|
+
hyperLinkEmit: EventEmitter<any>;
|
|
293
|
+
sideNavEmit: EventEmitter<{
|
|
294
|
+
data: any;
|
|
295
|
+
col: any;
|
|
296
|
+
config: any;
|
|
297
|
+
}>;
|
|
298
|
+
actionButtonEmit: EventEmitter<any>;
|
|
299
|
+
columnSelected: EventEmitter<{
|
|
300
|
+
uniqueIdentifier: string;
|
|
301
|
+
data: any[];
|
|
302
|
+
}>;
|
|
303
|
+
removeColumn: EventEmitter<{
|
|
304
|
+
uniqueIdentifier: string;
|
|
305
|
+
data: any[];
|
|
306
|
+
}>;
|
|
307
|
+
valueChange: EventEmitter<any>;
|
|
308
|
+
selectedValues: EventEmitter<any[]>;
|
|
309
|
+
fileEmit: EventEmitter<any>;
|
|
310
|
+
NxtTableFilterEmit: EventEmitter<any>;
|
|
311
|
+
hadleDropDownDependent: EventEmitter<any>;
|
|
312
|
+
NxtTableParamsEmit: EventEmitter<any>;
|
|
313
|
+
sort: MatSort;
|
|
314
|
+
tableContainer: ElementRef<HTMLElement>;
|
|
315
|
+
selection: any;
|
|
316
|
+
stickyCondition: number;
|
|
317
|
+
searchFilter: boolean;
|
|
318
|
+
filterArray: Array<any>;
|
|
319
|
+
selectedFilter: any;
|
|
320
|
+
pageSizeOptions: Array<any>;
|
|
321
|
+
dataSource: any;
|
|
322
|
+
totalCount: number;
|
|
323
|
+
searchBoxValue: any;
|
|
324
|
+
prevSearch: any;
|
|
325
|
+
activeColumn: string | null;
|
|
326
|
+
isScrolled: boolean;
|
|
327
|
+
isShadowHidden: boolean;
|
|
328
|
+
currentSortColumn: string;
|
|
329
|
+
currentSortDirection: 'asc' | 'desc' | 'none';
|
|
330
|
+
originalData: any;
|
|
331
|
+
hoveredColumn: string | null;
|
|
332
|
+
searchText: any;
|
|
333
|
+
multipleFilterArray: any;
|
|
334
|
+
tableFilterArray: any;
|
|
335
|
+
filterDataArray: any;
|
|
336
|
+
isResized: boolean;
|
|
337
|
+
sFilterData: any;
|
|
338
|
+
currentColumns: Array<any>;
|
|
339
|
+
inlineElement: any;
|
|
340
|
+
pageSize: any;
|
|
341
|
+
pageIndex: any;
|
|
342
|
+
totalRecords: number;
|
|
343
|
+
deleteData: any;
|
|
344
|
+
deleteModal: boolean;
|
|
345
|
+
dropdownActionButton: any;
|
|
346
|
+
currentOpenIndex: number | null;
|
|
347
|
+
clickListener: any;
|
|
348
|
+
deleteIndex: number;
|
|
349
|
+
showPopover: boolean;
|
|
350
|
+
isSummaryColumn: boolean;
|
|
351
|
+
isSummaryStartColumn: any[];
|
|
352
|
+
isSummaryEndColumn: any[];
|
|
353
|
+
filterBoxData: any;
|
|
354
|
+
filterTableNos: any;
|
|
355
|
+
selectedView: any;
|
|
356
|
+
isDropdownOpen: boolean;
|
|
357
|
+
currentViewFilter: any;
|
|
358
|
+
isFullTableSummaryRow: boolean;
|
|
359
|
+
isImageHover: boolean;
|
|
360
|
+
isImageEdit: boolean;
|
|
361
|
+
selectedImageElement: any;
|
|
362
|
+
private questionsCache;
|
|
363
|
+
isResizing: boolean;
|
|
364
|
+
private currentColumn;
|
|
365
|
+
private startX;
|
|
366
|
+
private startWidth;
|
|
367
|
+
private resizeFrameId;
|
|
368
|
+
columnWidthTrack: any;
|
|
369
|
+
resizedColumns: {
|
|
370
|
+
[id: string]: boolean;
|
|
371
|
+
};
|
|
372
|
+
currentTableData: any;
|
|
373
|
+
oldTableData: any;
|
|
374
|
+
viewEdit: boolean;
|
|
375
|
+
currencyOption: any;
|
|
376
|
+
columnSourceId: any;
|
|
377
|
+
summaryRowsOrginal: any;
|
|
378
|
+
displaySummaryRows: any;
|
|
379
|
+
Array: ArrayConstructor;
|
|
380
|
+
tableEditTrack: boolean;
|
|
381
|
+
alignRight: boolean;
|
|
382
|
+
selectedIsEmpty: boolean;
|
|
383
|
+
private destroy$;
|
|
384
|
+
private timers;
|
|
385
|
+
/** Current values for every advanced filter control. */
|
|
386
|
+
advancedFilterValues: AdvancedFilterValues;
|
|
387
|
+
/**
|
|
388
|
+
* SKS1JUL26: Emits a JSON-serialised snapshot of advancedFilterValues
|
|
389
|
+
* so that debounceTime(300) + distinctUntilChanged() both work correctly.
|
|
390
|
+
* Subject<void> makes distinctUntilChanged useless because every emission
|
|
391
|
+
* looks the same. Subject<string> compares serialised state.
|
|
392
|
+
*/
|
|
393
|
+
private advancedFilter$;
|
|
394
|
+
constructor(countryService: CountryService, storageService: StorageService, cdRef: ChangeDetectorRef, translationService: TranslationService, renderer: Renderer2, dataService: DataService, changeService: ChangeService);
|
|
395
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
396
|
+
ngOnInit(): void;
|
|
397
|
+
ngAfterViewInit(): void;
|
|
398
|
+
/** SKS14JUL26 True when at least one visible column has an explicit config or user-resized width. */
|
|
399
|
+
get hasAnyFixedWidthColumn(): boolean;
|
|
400
|
+
autoDistributeExtraTableWidth(from?: any): void;
|
|
401
|
+
onResizeStart(event: MouseEvent): void;
|
|
402
|
+
private onResizeMove;
|
|
403
|
+
private applyWidthToColumn;
|
|
404
|
+
private onResizeEnd;
|
|
405
|
+
ngOnDestroy(): void;
|
|
406
|
+
computeSummaryColumns(): void;
|
|
407
|
+
computeSummaryValues(from?: any): void;
|
|
408
|
+
sortData(column: string, sortingState?: any | undefined, currentState?: any | undefined, from?: any): void;
|
|
409
|
+
onScroll(tableContainer: HTMLElement): void;
|
|
410
|
+
onDocumentClick(event: any): void;
|
|
411
|
+
filter(datas: any, event: MouseEvent): void;
|
|
412
|
+
pageParams(event: any, from?: any): void;
|
|
413
|
+
/** SKS29OCT25 Formats a cell value exactly the way it appears in the UI */
|
|
414
|
+
private formatDateForSearch;
|
|
415
|
+
applyFilter(event: any, from?: any): void;
|
|
416
|
+
/** SKS15FEB25 Whether the number of selected elements matches the total number of rows. */
|
|
417
|
+
isAllSelected(): boolean;
|
|
418
|
+
/** SKS15FEB25 Selects all rows if they are not all selected; otherwise clear selection. */
|
|
419
|
+
masterToggle(): void;
|
|
420
|
+
isSomeSelected(): boolean;
|
|
421
|
+
separateRowSelect(data: any, element: any): void;
|
|
422
|
+
tableClick(data: any): void;
|
|
423
|
+
getNestedValue(obj: any, path: string): any;
|
|
424
|
+
filterRetain(filterkeyMap: any, from?: any): void;
|
|
425
|
+
removeDuplicates(objects: any): any[];
|
|
426
|
+
deleteRecord(data: any, index: number): void;
|
|
427
|
+
deleteRecordData(): void;
|
|
428
|
+
saveButton(element: any): void;
|
|
429
|
+
private isSameRow;
|
|
430
|
+
private normalizeRow;
|
|
431
|
+
onEdit(data: any): void;
|
|
432
|
+
onSave(data: any): void;
|
|
433
|
+
commonButtonClick(button: any): void;
|
|
434
|
+
getObjValue(element: any, column: string): any;
|
|
435
|
+
onClickHyperlink(column: any, element: any, isHyperLink: any): void;
|
|
436
|
+
addTableRecord(element: any, from?: any): void;
|
|
437
|
+
prepareActionVisibility(rows: any[]): any[];
|
|
438
|
+
evaluateConditionString(row: any, condition: string): boolean;
|
|
439
|
+
onSearch(event: any, from?: any): void;
|
|
440
|
+
emptySearch(event: any): void;
|
|
441
|
+
onSideNavInfoClick(data: any, col: any): void;
|
|
442
|
+
onColumnClick(uniqueIdentifier: string): void;
|
|
443
|
+
closefilter(from?: any): void;
|
|
444
|
+
isSelected(event: any): boolean;
|
|
445
|
+
checkedData(event: any, from?: any): void;
|
|
446
|
+
private addClickOutsideListener;
|
|
447
|
+
private removeClickListener;
|
|
448
|
+
toggleDropdown(index: number): void;
|
|
449
|
+
actionButtonClicked(event: any, data: any): void;
|
|
450
|
+
removeCol(uniqueIdentifier: string): void;
|
|
451
|
+
emitTableDataValue(updatedTableData: any): void;
|
|
452
|
+
updateEdit(index: number, value: any, element: any, column: any, type?: any): void;
|
|
453
|
+
updateValue(element: any, column: string, value: any): any;
|
|
454
|
+
expenseAttachment(event: any): void;
|
|
455
|
+
listViewEmit(event: any): void;
|
|
456
|
+
onImageEdit(ques: any): Promise<void>;
|
|
457
|
+
onImageDelete(ques: any): Promise<void>;
|
|
458
|
+
fileChangeEvent(ques: any, event: any): Promise<void>;
|
|
459
|
+
private readFileAsDataURL;
|
|
460
|
+
getDropDown(event: any): void;
|
|
461
|
+
trackByRow(index: number, row: any): any;
|
|
462
|
+
trackByColumn(index: number, column: any): any;
|
|
463
|
+
trackBySummary(index: number, summary: any): any;
|
|
464
|
+
trackByIndex(index: number, item?: any): number;
|
|
465
|
+
editModeChange(): void;
|
|
466
|
+
saveTable(): void;
|
|
467
|
+
discardChanges(): void;
|
|
468
|
+
groupFilterEmit(event: any, from?: any): void;
|
|
469
|
+
groupFilterRetain(filterkey: any, from?: any): void;
|
|
470
|
+
changeAnnounce(event: any): void;
|
|
471
|
+
/**
|
|
472
|
+
* THE SINGLE UNIFIED FILTER PIPELINE (client-side mode).
|
|
473
|
+
*
|
|
474
|
+
* Pipeline order matches the documented priority:
|
|
475
|
+
* originalData
|
|
476
|
+
* 1. List View → sFilterData (managed by listViewEmit / ngOnChanges)
|
|
477
|
+
* 2. Advanced Filter → applyAdvancedFilters(sFilterData)
|
|
478
|
+
* 3. Global Search → searchBoxValue contains match
|
|
479
|
+
* 4. Column Filter → filterDataArray exact match
|
|
480
|
+
* 5. Sort → currentSortColumn / currentSortDirection
|
|
481
|
+
* 6. Pagination → pageIndex / pageSize → dataSource.data
|
|
482
|
+
*
|
|
483
|
+
* For server-side (pagination=true), we skip client filtering and just emit
|
|
484
|
+
* the full params object (including advancedFilterData) to the parent.
|
|
485
|
+
*
|
|
486
|
+
* All event handlers (onAdvancedFilterChange, applyFilter, filterRetain,
|
|
487
|
+
* checkedData, closefilter, pageParams) ultimately call this method so
|
|
488
|
+
* there is exactly ONE place where filtering logic lives.
|
|
489
|
+
*/
|
|
490
|
+
refreshTableData(from?: string): void;
|
|
491
|
+
/**
|
|
492
|
+
* Builds the `advancedFilterValues` map from the current `advancedFilters` config.
|
|
493
|
+
* Existing values are preserved if their field still exists in the new config.
|
|
494
|
+
* Respects `defaultValue` from the config for initial population.
|
|
495
|
+
*/
|
|
496
|
+
initializeAdvancedFilters(): void;
|
|
497
|
+
/**
|
|
498
|
+
* Called from the template whenever any advanced filter control changes.
|
|
499
|
+
*
|
|
500
|
+
* @param field - The data field this filter maps to
|
|
501
|
+
* @param value - New value:
|
|
502
|
+
* - text/dropdown: plain string
|
|
503
|
+
* - searchDropdown: scalar extracted via config.valueField from
|
|
504
|
+
* the emitted object shape `{ id, name, value, label, ... }`
|
|
505
|
+
* - date: ISO 8601 string from app-nxt-datepicker
|
|
506
|
+
* @param subKey - For date filters only: 'startDate' | 'endDate'
|
|
507
|
+
*/
|
|
508
|
+
onAdvancedFilterChange(field: string, value: any, subKey?: 'startDate' | 'endDate'): void;
|
|
509
|
+
/**
|
|
510
|
+
* Applies current advancedFilterValues against a data array.
|
|
511
|
+
* Returns a new filtered array — never mutates the input.
|
|
512
|
+
*
|
|
513
|
+
* Reuses existing helpers:
|
|
514
|
+
* - getObjValue() for field access
|
|
515
|
+
* - formatDateForSearch() for display-safe date formatting (NxtDatePipe)
|
|
516
|
+
*
|
|
517
|
+
* Date comparison uses formatDateForSearch() on both cell and filter values
|
|
518
|
+
* so timezone handling is consistent with the rest of the table.
|
|
519
|
+
*
|
|
520
|
+
* Filter logic per type:
|
|
521
|
+
* text → case-insensitive contains
|
|
522
|
+
* dropdown → strict string equality
|
|
523
|
+
* searchDropdown → strict string equality on extracted valueField
|
|
524
|
+
* date → >= startDate and/or <= endDate (normalised via NxtDatePipe)
|
|
525
|
+
*/
|
|
526
|
+
applyAdvancedFilters(baseData: any[]): any[];
|
|
527
|
+
/**
|
|
528
|
+
* Resets all advanced filter values and re-runs the unified pipeline.
|
|
529
|
+
* pageIndex is reset to 1 so users don't get confused on high page numbers.
|
|
530
|
+
*/
|
|
531
|
+
clearAdvancedFilters(): void;
|
|
532
|
+
/**
|
|
533
|
+
* Returns true if at least one visible advanced filter field has a non-empty value.
|
|
534
|
+
* Used in the template to decide whether to show the clear-all button.
|
|
535
|
+
*/
|
|
536
|
+
hasAdvancedFilter(): boolean;
|
|
537
|
+
/**
|
|
538
|
+
* Returns a clean snapshot of the ACTIVE advanced filter values.
|
|
539
|
+
* Included in NxtTableParamsEmit so server-side implementations receive
|
|
540
|
+
* the filter state under the `advancedFilterData` key:
|
|
541
|
+
*
|
|
542
|
+
* tableParams = {
|
|
543
|
+
* pagination: { pageSize, pageIndex },
|
|
544
|
+
* tableSearch: { fields, value },
|
|
545
|
+
* searchFilterData: { [column]: [values] },
|
|
546
|
+
* advancedFilterData: { [field]: string | AdvancedDateRange }, ← NEW
|
|
547
|
+
* sort: { column, direction, listView },
|
|
548
|
+
* }
|
|
549
|
+
*/
|
|
550
|
+
buildAdvancedFilterObject(): AdvancedFilterValues;
|
|
551
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtDatatable, never>;
|
|
552
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxtDatatable, "nxt-datatable", never, { "data": { "alias": "data"; "required": false; }; "summaryValues": { "alias": "summaryValues"; "required": false; }; "tableFilterData": { "alias": "tableFilterData"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "withCheckBox": { "alias": "withCheckBox"; "required": false; }; "searchBar": { "alias": "searchBar"; "required": false; }; "tableSaveButton": { "alias": "tableSaveButton"; "required": false; }; "hideSaveButton": { "alias": "hideSaveButton"; "required": false; }; "stickyColumn": { "alias": "stickyColumn"; "required": false; }; "tableWidth": { "alias": "tableWidth"; "required": false; }; "actionColumHeader": { "alias": "actionColumHeader"; "required": false; }; "actionButton": { "alias": "actionButton"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isButtons": { "alias": "isButtons"; "required": false; }; "buttonArray": { "alias": "buttonArray"; "required": false; }; "tableId": { "alias": "tableId"; "required": false; }; "isEditRow": { "alias": "isEditRow"; "required": false; }; "isDeleteRow": { "alias": "isDeleteRow"; "required": false; }; "addInlineRecord": { "alias": "addInlineRecord"; "required": false; }; "searchConfigs": { "alias": "searchConfigs"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "actionButtonArray": { "alias": "actionButtonArray"; "required": false; }; "multipleFilter": { "alias": "multipleFilter"; "required": false; }; "isPagination": { "alias": "isPagination"; "required": false; }; "isListViews": { "alias": "isListViews"; "required": false; }; "id": { "alias": "id"; "required": false; }; "isNosIndicator": { "alias": "isNosIndicator"; "required": false; }; "isEditable": { "alias": "isEditable"; "required": false; }; "from": { "alias": "from"; "required": false; }; "question": { "alias": "question"; "required": false; }; "rowTextSize": { "alias": "rowTextSize"; "required": false; }; "rowTextColor": { "alias": "rowTextColor"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "summaryRows": { "alias": "summaryRows"; "required": false; }; "summaryColumns": { "alias": "summaryColumns"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "tableConfig": { "alias": "tableConfig"; "required": false; }; "tableParams": { "alias": "tableParams"; "required": false; }; "listViews": { "alias": "listViews"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; "selectedColumn": { "alias": "selectedColumn"; "required": false; }; "allIcons": { "alias": "allIcons"; "required": false; }; "isButtonLoading": { "alias": "isButtonLoading"; "required": false; }; "isPreview": { "alias": "isPreview"; "required": false; }; "groupFilter": { "alias": "groupFilter"; "required": false; }; "groupFilterConfig": { "alias": "groupFilterConfig"; "required": false; }; "groupFilterColumn": { "alias": "groupFilterColumn"; "required": false; }; "onlyView": { "alias": "onlyView"; "required": false; }; "tableHeight": { "alias": "tableHeight"; "required": false; }; "serialNumberColumn": { "alias": "serialNumberColumn"; "required": false; }; "advancedFilters": { "alias": "advancedFilters"; "required": false; }; }, { "tableRowClick": "tableRowClick"; "onEditData": "onEditData"; "onSaveData": "onSaveData"; "saveButtonData": "saveButtonData"; "onDeleteData": "onDeleteData"; "buttonEmit": "buttonEmit"; "hyperLinkEmit": "hyperLinkEmit"; "sideNavEmit": "sideNavEmit"; "actionButtonEmit": "actionButtonEmit"; "columnSelected": "columnSelected"; "removeColumn": "removeColumn"; "valueChange": "valueChange"; "selectedValues": "selectedValues"; "fileEmit": "fileEmit"; "NxtTableFilterEmit": "NxtTableFilterEmit"; "hadleDropDownDependent": "hadleDropDownDependent"; "NxtTableParamsEmit": "NxtTableParamsEmit"; }, never, never, true, never>;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare class NxtSearchBox implements OnInit, OnChanges, OnDestroy {
|
|
556
|
+
private storageService;
|
|
557
|
+
private changeService;
|
|
558
|
+
private dataService;
|
|
559
|
+
private countryService;
|
|
560
|
+
private elementRef;
|
|
561
|
+
placeHolderText: string;
|
|
562
|
+
question: any;
|
|
563
|
+
apiMeta: any;
|
|
564
|
+
id: string;
|
|
565
|
+
readOnly: boolean;
|
|
566
|
+
mode: 'view' | 'edit' | 'print';
|
|
567
|
+
from: any;
|
|
568
|
+
value: any;
|
|
569
|
+
onlyView: boolean;
|
|
570
|
+
rowData: any;
|
|
571
|
+
searchValueChange: EventEmitter<any>;
|
|
572
|
+
searchWrapper: ElementRef;
|
|
573
|
+
SearchItem: any;
|
|
574
|
+
finalResults: WritableSignal<any[]>;
|
|
575
|
+
searchKeyWord: string;
|
|
576
|
+
newResult: any;
|
|
577
|
+
showResult: boolean;
|
|
578
|
+
noResult: boolean;
|
|
579
|
+
showSuggestion: boolean;
|
|
580
|
+
isLoading: boolean;
|
|
581
|
+
viewFilterName: string;
|
|
582
|
+
isSingleFieldChange: boolean;
|
|
583
|
+
valueObj: any;
|
|
584
|
+
inputFocused: boolean;
|
|
585
|
+
lastSearchLength: number;
|
|
586
|
+
filterName: string;
|
|
587
|
+
private destroy$;
|
|
588
|
+
private searchSubject;
|
|
589
|
+
subscription: Subscription;
|
|
590
|
+
trackByFn: TrackByFunction<any>;
|
|
591
|
+
constructor(storageService: StorageService, changeService: ChangeService, dataService: DataService, countryService: CountryService, elementRef: ElementRef);
|
|
592
|
+
ngOnInit(): void;
|
|
593
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
594
|
+
ngOnDestroy(): void;
|
|
595
|
+
onDocumentClick(event: Event): void;
|
|
596
|
+
onEscapeKey(event: KeyboardEvent): void;
|
|
597
|
+
private parseApiMeta;
|
|
598
|
+
private resetComponentState;
|
|
599
|
+
private hideSuggestions;
|
|
600
|
+
onInputFocus(): void;
|
|
601
|
+
onInputBlur(): void;
|
|
602
|
+
clearList(): void;
|
|
603
|
+
getSourceDataLocal(event: any): void;
|
|
604
|
+
private performSearch;
|
|
605
|
+
private searchFromApi;
|
|
606
|
+
private searchFromStaticData;
|
|
607
|
+
private processSearchResults;
|
|
608
|
+
private getNestedValue;
|
|
609
|
+
private getCombinedValuesFromColumns;
|
|
610
|
+
getValues(element: any, columns: any): any;
|
|
611
|
+
getKeys(obj: any): string[];
|
|
612
|
+
clickItem(event: any, from?: any): void;
|
|
613
|
+
inputValue(event: any, ques: any): void;
|
|
614
|
+
highlightText(text: string, searchTerm: string): string;
|
|
615
|
+
private sanitizeHtml;
|
|
616
|
+
removeValueEmit(): void;
|
|
617
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtSearchBox, never>;
|
|
618
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxtSearchBox, "nxt-search-box", never, { "placeHolderText": { "alias": "placeHolderText"; "required": false; }; "question": { "alias": "question"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "id": { "alias": "id"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "from": { "alias": "from"; "required": false; }; "value": { "alias": "value"; "required": false; }; "onlyView": { "alias": "onlyView"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; }, { "searchValueChange": "searchValueChange"; }, never, never, true, never>;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
declare class NxtCustomTranslatePipe implements PipeTransform {
|
|
622
|
+
private cache;
|
|
623
|
+
private translationService;
|
|
624
|
+
constructor();
|
|
625
|
+
transform(key: string, fallback: string, from?: string): string;
|
|
626
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtCustomTranslatePipe, never>;
|
|
627
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NxtCustomTranslatePipe, "nxtCustomTranslate", true>;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
interface ListView {
|
|
631
|
+
filterName: string;
|
|
632
|
+
labelPath: any;
|
|
633
|
+
order: number;
|
|
634
|
+
isDefault: boolean;
|
|
635
|
+
isSelected: boolean;
|
|
636
|
+
system: boolean;
|
|
637
|
+
conditions: ListViewFilter[];
|
|
638
|
+
columns: ListViewColumn[];
|
|
639
|
+
}
|
|
640
|
+
interface ListViewFilter {
|
|
641
|
+
field: string;
|
|
642
|
+
operator: string;
|
|
643
|
+
value: string;
|
|
644
|
+
}
|
|
645
|
+
interface ListViewColumn {
|
|
646
|
+
name: string;
|
|
647
|
+
sortable: boolean;
|
|
648
|
+
filterable: boolean;
|
|
649
|
+
}
|
|
650
|
+
declare class ListViewFilterComponent implements OnInit {
|
|
651
|
+
private fb;
|
|
652
|
+
private nxtCustomTranslate;
|
|
653
|
+
private dataService;
|
|
654
|
+
listViews: ListView[];
|
|
655
|
+
tableData: any;
|
|
656
|
+
tableFilterArray: any;
|
|
657
|
+
selectedView: string;
|
|
658
|
+
displayedColumns: any;
|
|
659
|
+
title: any;
|
|
660
|
+
availableOperators: {
|
|
661
|
+
label: string;
|
|
662
|
+
labelPath: string;
|
|
663
|
+
value: string;
|
|
664
|
+
}[];
|
|
665
|
+
listViewEmit: EventEmitter<any>;
|
|
666
|
+
isDropdownOpen: boolean;
|
|
667
|
+
isModalOpen: boolean;
|
|
668
|
+
isDeleteModalOpen: boolean;
|
|
669
|
+
isAdding: boolean;
|
|
670
|
+
viewToDelete: ListView | null;
|
|
671
|
+
editingView: FormGroup;
|
|
672
|
+
isColumnDropdownOpen: boolean[];
|
|
673
|
+
isOperatorDropdownOpen: boolean[];
|
|
674
|
+
isValueDropdownOpen: boolean[];
|
|
675
|
+
isColumnNameDropdownOpen: boolean[];
|
|
676
|
+
selectedViewPath: string;
|
|
677
|
+
tableFilterArrayTrans: any;
|
|
678
|
+
displayedColumnsTrans: any;
|
|
679
|
+
availableOperatorsTrans: {
|
|
680
|
+
label: string;
|
|
681
|
+
value: string;
|
|
682
|
+
}[];
|
|
683
|
+
conditions: FormArray;
|
|
684
|
+
columns: FormArray;
|
|
685
|
+
staticFilterData: {
|
|
686
|
+
filterName: string;
|
|
687
|
+
label: string;
|
|
688
|
+
labelPath: string;
|
|
689
|
+
isDefault: boolean;
|
|
690
|
+
isSelected: boolean;
|
|
691
|
+
system: boolean;
|
|
692
|
+
order: number;
|
|
693
|
+
conditions: any[];
|
|
694
|
+
columns: any[];
|
|
695
|
+
_id: string;
|
|
696
|
+
id: string;
|
|
697
|
+
}[];
|
|
698
|
+
constructor(fb: FormBuilder, nxtCustomTranslate: NxtCustomTranslatePipe, dataService: DataService);
|
|
699
|
+
ngOnInit(): void;
|
|
700
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
701
|
+
addFilter(): void;
|
|
702
|
+
removeFilter(index: number): void;
|
|
703
|
+
addColumn(): void;
|
|
704
|
+
removeColumn(index: number): void;
|
|
705
|
+
toggleDropdown(): void;
|
|
706
|
+
selectListView(view: any): void;
|
|
707
|
+
startEdit(view: ListView, event?: Event): void;
|
|
708
|
+
startAdd(): void;
|
|
709
|
+
save(): void;
|
|
710
|
+
closeModal(): void;
|
|
711
|
+
confirmDelete(view: ListView, event?: Event): void;
|
|
712
|
+
closeDeleteModal(): void;
|
|
713
|
+
deleteConfirmed(): void;
|
|
714
|
+
getFilteredColumns(term: string): any[];
|
|
715
|
+
getColumnColumns(term: string): any[];
|
|
716
|
+
getPossibleValues(field: string, term: string): string[];
|
|
717
|
+
getFilteredOperators(term: string): {
|
|
718
|
+
label: string;
|
|
719
|
+
value: string;
|
|
720
|
+
}[];
|
|
721
|
+
operatorInput: string[];
|
|
722
|
+
onOperatorInput(value: string, index: number): void;
|
|
723
|
+
getOperatorLabel(value: string): string;
|
|
724
|
+
onFocus(type: string, index: number): void;
|
|
725
|
+
onBlur(type: string, index: number): void;
|
|
726
|
+
selectOption(type: string, index: number, value: string): void;
|
|
727
|
+
getLabelByFieldName(fieldName: string): string;
|
|
728
|
+
onManualInput(inputValue: string, index: number): void;
|
|
729
|
+
onDocumentClick(event: any): void;
|
|
730
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListViewFilterComponent, never>;
|
|
731
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListViewFilterComponent, "app-list-view-filter", never, { "listViews": { "alias": "listViews"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "tableFilterArray": { "alias": "tableFilterArray"; "required": false; }; "selectedView": { "alias": "selectedView"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "title": { "alias": "title"; "required": false; }; "availableOperators": { "alias": "availableOperators"; "required": false; }; }, { "listViewEmit": "listViewEmit"; }, never, never, true, never>;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
declare class NxtDatePipe implements PipeTransform {
|
|
735
|
+
transform(value: any, typeOrFormat?: 'date' | 'datetime' | 'month' | 'time' | string, languageCode?: string, dateFormatType?: 'hijri' | 'gregorian'): string;
|
|
736
|
+
/** SKS29OCT25 Map Angular-style date aliases to Moment formats */
|
|
737
|
+
private mapAngularFormat;
|
|
738
|
+
/** SKS29OCT25 Convert digits to Arabic numerals */
|
|
739
|
+
private toArabicNumbers;
|
|
740
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtDatePipe, never>;
|
|
741
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NxtDatePipe, "NxtDate", true>;
|
|
742
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
declare class GoogleMapsLoaderService {
|
|
746
|
+
private loadPromise;
|
|
747
|
+
load(apiKey: string): Promise<void>;
|
|
748
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleMapsLoaderService, never>;
|
|
749
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
declare class NxtInput implements AfterViewInit {
|
|
753
|
+
#private;
|
|
754
|
+
private nxtDatePipe;
|
|
755
|
+
private mapsLoader;
|
|
756
|
+
private cdr;
|
|
757
|
+
private ngZone;
|
|
758
|
+
private countryService;
|
|
759
|
+
private storageService;
|
|
760
|
+
private translationService;
|
|
761
|
+
private renderer;
|
|
762
|
+
private elRef;
|
|
763
|
+
private elementRef;
|
|
764
|
+
private changeService;
|
|
765
|
+
private dataService;
|
|
766
|
+
label: string;
|
|
767
|
+
labelFont: string;
|
|
768
|
+
labelWeight: string;
|
|
769
|
+
inputWeight: string;
|
|
770
|
+
labelSize: string;
|
|
771
|
+
inputValueSize: string;
|
|
772
|
+
textAlign: string;
|
|
773
|
+
labelColor: string;
|
|
774
|
+
showLabel: boolean;
|
|
775
|
+
svgHeight: string;
|
|
776
|
+
svgWidth: string;
|
|
777
|
+
type: string;
|
|
778
|
+
inputIconRightSrc: string;
|
|
779
|
+
inputIconLeftSrc: string;
|
|
780
|
+
required: boolean;
|
|
781
|
+
minLength?: number;
|
|
782
|
+
pattern?: any;
|
|
783
|
+
errorMessages: {
|
|
784
|
+
[key: string]: string;
|
|
785
|
+
};
|
|
786
|
+
maxLength: number;
|
|
787
|
+
placeholder: string;
|
|
788
|
+
inputBgColor: string;
|
|
789
|
+
inputBorder: string;
|
|
790
|
+
placeholderColor: string;
|
|
791
|
+
placeholderFont: string;
|
|
792
|
+
placeholderWeight: string;
|
|
793
|
+
placeholderSize: string;
|
|
794
|
+
inputTextColor: string;
|
|
795
|
+
inputHeight: string;
|
|
796
|
+
inputWidth: string;
|
|
797
|
+
inputId: string;
|
|
798
|
+
inputBorderSize: string;
|
|
799
|
+
inputConfig: any;
|
|
800
|
+
confPassVal: any;
|
|
801
|
+
confPass: boolean;
|
|
802
|
+
mode: 'view' | 'edit' | 'print';
|
|
803
|
+
value: any;
|
|
804
|
+
question: any;
|
|
805
|
+
showSuggestion: boolean;
|
|
806
|
+
ariaOwns?: string;
|
|
807
|
+
ariaHasPopup?: string;
|
|
808
|
+
isLoading: boolean;
|
|
809
|
+
options: any[];
|
|
810
|
+
minDate: any;
|
|
811
|
+
maxDate: any;
|
|
812
|
+
rows: number;
|
|
813
|
+
from: any;
|
|
814
|
+
selectedOption: any;
|
|
815
|
+
apiMeta: any;
|
|
816
|
+
direction: any;
|
|
817
|
+
currency: any;
|
|
818
|
+
helpText: any;
|
|
819
|
+
apiKey: any;
|
|
820
|
+
readOnly: boolean;
|
|
821
|
+
padding: any;
|
|
822
|
+
margin: any;
|
|
823
|
+
onlyView: boolean;
|
|
824
|
+
mentionUsers: any[];
|
|
825
|
+
set size(size: number);
|
|
826
|
+
valueChange: EventEmitter<string>;
|
|
827
|
+
inputValue: EventEmitter<any>;
|
|
828
|
+
selectEmit: EventEmitter<any>;
|
|
829
|
+
onBlur: EventEmitter<any>;
|
|
830
|
+
onFocus: EventEmitter<any>;
|
|
831
|
+
toggleEmit: EventEmitter<any>;
|
|
832
|
+
removeValueEmit: EventEmitter<any>;
|
|
833
|
+
inputEls: QueryList<ElementRef<HTMLInputElement>>;
|
|
834
|
+
inputRef: ElementRef;
|
|
835
|
+
inputs: FormArray<any>;
|
|
836
|
+
control: FormControl;
|
|
837
|
+
isPasswordVisible: boolean;
|
|
838
|
+
countryCode: string;
|
|
839
|
+
countries: ({
|
|
840
|
+
name: string;
|
|
841
|
+
flag: string;
|
|
842
|
+
code: string;
|
|
843
|
+
dial_code: string;
|
|
844
|
+
regex: string;
|
|
845
|
+
placeholder: string;
|
|
846
|
+
example?: undefined;
|
|
847
|
+
format?: undefined;
|
|
848
|
+
} | {
|
|
849
|
+
name: string;
|
|
850
|
+
flag: string;
|
|
851
|
+
code: string;
|
|
852
|
+
dial_code: string;
|
|
853
|
+
regex: string;
|
|
854
|
+
placeholder: string;
|
|
855
|
+
example: string;
|
|
856
|
+
format?: undefined;
|
|
857
|
+
} | {
|
|
858
|
+
name: string;
|
|
859
|
+
code: string;
|
|
860
|
+
dial_code: string;
|
|
861
|
+
regex: string;
|
|
862
|
+
placeholder: string;
|
|
863
|
+
format: string;
|
|
864
|
+
flag: string;
|
|
865
|
+
example?: undefined;
|
|
866
|
+
})[];
|
|
867
|
+
filteredCountries: any;
|
|
868
|
+
selectedCountry: any;
|
|
869
|
+
showCountryDropdown: boolean;
|
|
870
|
+
countrySearch: string;
|
|
871
|
+
subscription: Subscription;
|
|
872
|
+
viewEdit: boolean;
|
|
873
|
+
originalValue: any;
|
|
874
|
+
private lastClickTime;
|
|
875
|
+
cachedInputList: any[];
|
|
876
|
+
showHijriPicker: boolean;
|
|
877
|
+
dateFormatName: any;
|
|
878
|
+
rawInputVal: any;
|
|
879
|
+
languageCode: any;
|
|
880
|
+
currencyOptions: any;
|
|
881
|
+
currentCurrency: any;
|
|
882
|
+
showModal: boolean;
|
|
883
|
+
private geoCoder;
|
|
884
|
+
markerOptions: any;
|
|
885
|
+
markerPosition: {
|
|
886
|
+
lat: number;
|
|
887
|
+
lng: number;
|
|
888
|
+
};
|
|
889
|
+
private googleMapsPromise;
|
|
890
|
+
private destroy$;
|
|
891
|
+
private removeDocClick?;
|
|
892
|
+
private timers;
|
|
893
|
+
constructor(nxtDatePipe: NxtDatePipe, mapsLoader: GoogleMapsLoaderService, cdr: ChangeDetectorRef, ngZone: NgZone, countryService: CountryService, storageService: StorageService, translationService: TranslationService, renderer: Renderer2, elRef: ElementRef, elementRef: ElementRef, changeService: ChangeService, dataService: DataService);
|
|
894
|
+
ngAfterViewInit(): void;
|
|
895
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
896
|
+
ngOnInit(): void;
|
|
897
|
+
ngOnDestroy(): void;
|
|
898
|
+
private updateInputList;
|
|
899
|
+
getQuillModules(questionId: string): QuillModules;
|
|
900
|
+
private setupValidators;
|
|
901
|
+
closeDropdown(event: Event): void;
|
|
902
|
+
onClickOutside(event: Event): void;
|
|
903
|
+
onChange: (value: string) => void;
|
|
904
|
+
onTouched: () => void;
|
|
905
|
+
registerOnTouched(fn: any): void;
|
|
906
|
+
onInputChange(event: any): void;
|
|
907
|
+
togglePasswordVisibility(): void;
|
|
908
|
+
passwordMatchValidator(): ValidatorFn;
|
|
909
|
+
getErrorMessage(): string;
|
|
910
|
+
writeValue(value: any, from?: any): void;
|
|
911
|
+
registerOnChange(fn: any): void;
|
|
912
|
+
setDisabledState(isDisabled: boolean): void;
|
|
913
|
+
private updateControlState;
|
|
914
|
+
validate(control: AbstractControl<string, string>): ValidationErrors | null;
|
|
915
|
+
handleKeyDown(e: KeyboardEvent, idx: number): void;
|
|
916
|
+
handleInput(): void;
|
|
917
|
+
handleKeyPress(e: KeyboardEvent, idx: number): boolean;
|
|
918
|
+
handlePaste(e: ClipboardEvent, idx: number): void;
|
|
919
|
+
handleFocus(e: FocusEvent): void;
|
|
920
|
+
toggleCountryDropdown(): void;
|
|
921
|
+
filterCountries(event: any): void;
|
|
922
|
+
selectCountry(country: any): void;
|
|
923
|
+
removeDialCodeFromRegex(originalRegex: string, dialCode: string): string;
|
|
924
|
+
removeDialCode(placeholder: string): string;
|
|
925
|
+
blurEmit(): void;
|
|
926
|
+
focusinEmit(event: any): void;
|
|
927
|
+
toggle(event: any): void;
|
|
928
|
+
onEditorFocusOut(): void;
|
|
929
|
+
viewEditClick(ques: any): void;
|
|
930
|
+
saveChanges: (event?: CustomEvent) => void;
|
|
931
|
+
discardChanges: (event?: CustomEvent) => void;
|
|
932
|
+
openDatePicker(type: string): void;
|
|
933
|
+
removeValue(): void;
|
|
934
|
+
onHijriInputClick(): void;
|
|
935
|
+
private searchFromApi;
|
|
936
|
+
initAutocomplete(): void;
|
|
937
|
+
openMap(): void;
|
|
938
|
+
closeModal(): void;
|
|
939
|
+
private setCurrentLocation;
|
|
940
|
+
getAddress(latitude: number, longitude: number): void;
|
|
941
|
+
onMapClick(event: google.maps.MapMouseEvent): void;
|
|
942
|
+
onMarkerDragEnd(event: google.maps.MapMouseEvent): void;
|
|
943
|
+
loadGoogleMaps(): Promise<void>;
|
|
944
|
+
allowNumberDecimal(event: KeyboardEvent): void;
|
|
945
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtInput, never>;
|
|
946
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxtInput, "nxt-input", never, { "label": { "alias": "label"; "required": false; }; "labelFont": { "alias": "labelFont"; "required": false; }; "labelWeight": { "alias": "labelWeight"; "required": false; }; "inputWeight": { "alias": "inputWeight"; "required": false; }; "labelSize": { "alias": "labelSize"; "required": false; }; "inputValueSize": { "alias": "inputValueSize"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "svgHeight": { "alias": "svgHeight"; "required": false; }; "svgWidth": { "alias": "svgWidth"; "required": false; }; "type": { "alias": "type"; "required": false; }; "inputIconRightSrc": { "alias": "inputIconRightSrc"; "required": false; }; "inputIconLeftSrc": { "alias": "inputIconLeftSrc"; "required": false; }; "required": { "alias": "required"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputBgColor": { "alias": "inputBgColor"; "required": false; }; "inputBorder": { "alias": "inputBorder"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "placeholderFont": { "alias": "placeholderFont"; "required": false; }; "placeholderWeight": { "alias": "placeholderWeight"; "required": false; }; "placeholderSize": { "alias": "placeholderSize"; "required": false; }; "inputTextColor": { "alias": "inputTextColor"; "required": false; }; "inputHeight": { "alias": "inputHeight"; "required": false; }; "inputWidth": { "alias": "inputWidth"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "inputBorderSize": { "alias": "inputBorderSize"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "confPassVal": { "alias": "confPassVal"; "required": false; }; "confPass": { "alias": "confPass"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "question": { "alias": "question"; "required": false; }; "showSuggestion": { "alias": "showSuggestion"; "required": false; }; "ariaOwns": { "alias": "ariaOwns"; "required": false; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "options": { "alias": "options"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "from": { "alias": "from"; "required": false; }; "selectedOption": { "alias": "selectedOption"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "apiKey": { "alias": "apiKey"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "onlyView": { "alias": "onlyView"; "required": false; }; "mentionUsers": { "alias": "mentionUsers"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "valueChange": "valueChange"; "inputValue": "inputValue"; "selectEmit": "selectEmit"; "onBlur": "onBlur"; "onFocus": "onFocus"; "toggleEmit": "toggleEmit"; "removeValueEmit": "removeValueEmit"; }, never, never, true, never>;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
declare class NxtMultiSelect implements OnInit, OnDestroy {
|
|
950
|
+
private countryService;
|
|
951
|
+
private translationService;
|
|
952
|
+
private changeService;
|
|
953
|
+
private dataService;
|
|
954
|
+
private storageService;
|
|
955
|
+
private cdr;
|
|
956
|
+
options: any[];
|
|
957
|
+
placeholder: string;
|
|
958
|
+
apiMeta: any;
|
|
959
|
+
selectedValue: any;
|
|
960
|
+
progressBar: boolean;
|
|
961
|
+
readOnly: boolean;
|
|
962
|
+
error: any;
|
|
963
|
+
fromShengel: boolean;
|
|
964
|
+
question: any;
|
|
965
|
+
mode: 'view' | 'edit' | 'print';
|
|
966
|
+
from: any;
|
|
967
|
+
padding: any;
|
|
968
|
+
onlyView: boolean;
|
|
969
|
+
labelFont: any;
|
|
970
|
+
label: any;
|
|
971
|
+
labelColor: any;
|
|
972
|
+
inputTextColor: any;
|
|
973
|
+
labelSize: any;
|
|
974
|
+
inputValueSize: any;
|
|
975
|
+
labelWeight: any;
|
|
976
|
+
inputWeight: any;
|
|
977
|
+
showLabel: boolean;
|
|
978
|
+
inputBorder: any;
|
|
979
|
+
inputBgColor: any;
|
|
980
|
+
inputIconLeftSrc: any;
|
|
981
|
+
inputId: string;
|
|
982
|
+
allowCustomOptions: boolean;
|
|
983
|
+
valueChange: EventEmitter<any>;
|
|
984
|
+
multiSelectWrapper: ElementRef;
|
|
985
|
+
searchInput: ElementRef<HTMLInputElement>;
|
|
986
|
+
subscription: Subscription;
|
|
987
|
+
showOptions: boolean;
|
|
988
|
+
isLoading: boolean;
|
|
989
|
+
noDataFound: boolean;
|
|
990
|
+
searchText: string;
|
|
991
|
+
filteredOptions: any[];
|
|
992
|
+
selectedValues: any[];
|
|
993
|
+
private searchSubject;
|
|
994
|
+
private destroy$;
|
|
995
|
+
private selectedOptionsPool;
|
|
996
|
+
constructor(countryService: CountryService, translationService: TranslationService, changeService: ChangeService, dataService: DataService, storageService: StorageService, cdr: ChangeDetectorRef);
|
|
997
|
+
ngOnInit(): void;
|
|
998
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
999
|
+
ngOnDestroy(): void;
|
|
1000
|
+
getOptions(searchKeyword?: string): void;
|
|
1001
|
+
private fetchOptionsFromApi;
|
|
1002
|
+
toggle(event?: Event): void;
|
|
1003
|
+
openOptions(): void;
|
|
1004
|
+
toggleOption(option: any, event?: Event): void;
|
|
1005
|
+
addSearchTextAsOption(event?: Event): void;
|
|
1006
|
+
removeSelected(selected: any, event?: Event): void;
|
|
1007
|
+
clearSelection(event?: Event): void;
|
|
1008
|
+
toggleSelectAll(event?: Event): void;
|
|
1009
|
+
inputValue(value: string): void;
|
|
1010
|
+
filterOptions(searchValue: any): void;
|
|
1011
|
+
emitSelection(): void;
|
|
1012
|
+
get selectedItems(): any[];
|
|
1013
|
+
get selectedLabels(): string;
|
|
1014
|
+
get customOptionText(): string;
|
|
1015
|
+
get canCreateCustomOption(): boolean;
|
|
1016
|
+
get orderedOptions(): any[];
|
|
1017
|
+
get hasPartialVisibleSelection(): boolean;
|
|
1018
|
+
get showSelectedDivider(): boolean;
|
|
1019
|
+
areAllVisibleSelected(): boolean;
|
|
1020
|
+
isLastSelectedOption(index: number): boolean;
|
|
1021
|
+
isSelected(option: any): boolean;
|
|
1022
|
+
getOptionLabel(option: any): string;
|
|
1023
|
+
getSelectionDisplay(selected: any): string;
|
|
1024
|
+
getOptionPrimaryText(option: any): string;
|
|
1025
|
+
getOptionSecondaryValues(option: any): string[];
|
|
1026
|
+
highlightOptionText(text: string): string;
|
|
1027
|
+
getOptionValue(option: any): any;
|
|
1028
|
+
onDocumentClick(event: MouseEvent): void;
|
|
1029
|
+
private toArray;
|
|
1030
|
+
private parseApiMeta;
|
|
1031
|
+
private recordSelectedOption;
|
|
1032
|
+
private normalizeSelectedValues;
|
|
1033
|
+
private getChangeField;
|
|
1034
|
+
private getComparableValue;
|
|
1035
|
+
private findOptionByValue;
|
|
1036
|
+
private findExactOptionByText;
|
|
1037
|
+
private isTextSelected;
|
|
1038
|
+
private createCustomOption;
|
|
1039
|
+
private usesObjectOptions;
|
|
1040
|
+
private getOptionDisplayValues;
|
|
1041
|
+
private getOptionSearchText;
|
|
1042
|
+
private getDisplayFields;
|
|
1043
|
+
private getNestedDisplayValue;
|
|
1044
|
+
private sanitizeHtml;
|
|
1045
|
+
private normalizeText;
|
|
1046
|
+
private focusSearchInput;
|
|
1047
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtMultiSelect, never>;
|
|
1048
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxtMultiSelect, "nxt-multi-select", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "progressBar": { "alias": "progressBar"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "error": { "alias": "error"; "required": false; }; "fromShengel": { "alias": "fromShengel"; "required": false; }; "question": { "alias": "question"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "from": { "alias": "from"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "onlyView": { "alias": "onlyView"; "required": false; }; "labelFont": { "alias": "labelFont"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "inputTextColor": { "alias": "inputTextColor"; "required": false; }; "labelSize": { "alias": "labelSize"; "required": false; }; "inputValueSize": { "alias": "inputValueSize"; "required": false; }; "labelWeight": { "alias": "labelWeight"; "required": false; }; "inputWeight": { "alias": "inputWeight"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "inputBorder": { "alias": "inputBorder"; "required": false; }; "inputBgColor": { "alias": "inputBgColor"; "required": false; }; "inputIconLeftSrc": { "alias": "inputIconLeftSrc"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "allowCustomOptions": { "alias": "allowCustomOptions"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
declare class SalesforceService {
|
|
1052
|
+
private _router;
|
|
1053
|
+
getSFResource: (path: string) => string;
|
|
1054
|
+
getRNXTMethodName: () => string;
|
|
1055
|
+
remoteAction(methodName: string, params: string[], resolve: any, reject: any, config?: any): void;
|
|
1056
|
+
constructor(_router: Router);
|
|
1057
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SalesforceService, never>;
|
|
1058
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
declare class SharedService {
|
|
1062
|
+
private __http;
|
|
1063
|
+
constructor(__http: HttpClient);
|
|
1064
|
+
private loadingSubject;
|
|
1065
|
+
isLoading$: rxjs.Observable<boolean>;
|
|
1066
|
+
processViewFile(fileName: string, api: string): void;
|
|
1067
|
+
viewFile(fileName: string, api: string): rxjs.Observable<Object>;
|
|
1068
|
+
docIcon(ext: any): "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-PDF.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-XLSX.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-DOCX.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-AVI.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-DOC.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-GIF.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-JPG.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-MOV.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-MP3.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-MP4.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-MPEG.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-MPG.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-PNG.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-PPT.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-TXT.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-XLS.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/ic_document.svg";
|
|
1069
|
+
showLoader(): void;
|
|
1070
|
+
hideLoader(): void;
|
|
1071
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedService, [{ optional: true; }]>;
|
|
1072
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
declare class QuestionnaireComponent implements OnInit {
|
|
1076
|
+
private sfService;
|
|
1077
|
+
private dataService;
|
|
1078
|
+
private changeService;
|
|
1079
|
+
private sharedService;
|
|
1080
|
+
private route;
|
|
1081
|
+
private sanitizer;
|
|
1082
|
+
private _formBuilder;
|
|
1083
|
+
private deviceService;
|
|
1084
|
+
qbId: string;
|
|
1085
|
+
insuranceStartDate: string;
|
|
1086
|
+
serv: string;
|
|
1087
|
+
tkn: string;
|
|
1088
|
+
api: string;
|
|
1089
|
+
isEdit: boolean;
|
|
1090
|
+
direction: string;
|
|
1091
|
+
handleEvent: EventEmitter<any>;
|
|
1092
|
+
handlePage: EventEmitter<any>;
|
|
1093
|
+
handleQuestion: EventEmitter<any>;
|
|
1094
|
+
handleBook: EventEmitter<any>;
|
|
1095
|
+
handleSubmit: EventEmitter<any>;
|
|
1096
|
+
params: Params;
|
|
1097
|
+
deviceInfo: any;
|
|
1098
|
+
abItem: any;
|
|
1099
|
+
qbItem: any;
|
|
1100
|
+
questionItem: any;
|
|
1101
|
+
answerWrap: any;
|
|
1102
|
+
radioFlag: boolean;
|
|
1103
|
+
dataFlag: boolean;
|
|
1104
|
+
dropdownFlag: boolean;
|
|
1105
|
+
multiSelectFlag: boolean;
|
|
1106
|
+
checkboxFlag: boolean;
|
|
1107
|
+
textFlag: boolean;
|
|
1108
|
+
taFlag: boolean;
|
|
1109
|
+
rtaFlag: boolean;
|
|
1110
|
+
dtFlag: boolean;
|
|
1111
|
+
timeFlag: boolean;
|
|
1112
|
+
dateFlag: boolean;
|
|
1113
|
+
fileFlag: boolean;
|
|
1114
|
+
emailFlag: boolean;
|
|
1115
|
+
numberFlag: boolean;
|
|
1116
|
+
alphanumericFlag: boolean;
|
|
1117
|
+
bookFlag: boolean;
|
|
1118
|
+
listFlag: boolean;
|
|
1119
|
+
backButtonFlag: boolean;
|
|
1120
|
+
isButtonDisabled: boolean;
|
|
1121
|
+
optionValues: any[];
|
|
1122
|
+
subQuestions: any[];
|
|
1123
|
+
inpValue: any;
|
|
1124
|
+
answerMap: Map<any, any>;
|
|
1125
|
+
dateMap: Map<any, any>;
|
|
1126
|
+
selectedhourMap: Map<any, any>;
|
|
1127
|
+
selectedminuteMap: Map<any, any>;
|
|
1128
|
+
attachmentsMap: Map<any, any>;
|
|
1129
|
+
subAnsMap: Map<any, any>;
|
|
1130
|
+
localSubQuestions: any[];
|
|
1131
|
+
questionStack: any[];
|
|
1132
|
+
questionName: any[];
|
|
1133
|
+
attachments: any[];
|
|
1134
|
+
attachmentIdList: any[];
|
|
1135
|
+
attachmentId: string;
|
|
1136
|
+
attachment: any;
|
|
1137
|
+
allowedFileExtension: string[];
|
|
1138
|
+
fileExceededLimit: boolean;
|
|
1139
|
+
fileTypeIncorrect: boolean;
|
|
1140
|
+
back: boolean;
|
|
1141
|
+
backicon: boolean;
|
|
1142
|
+
check: boolean;
|
|
1143
|
+
pop: boolean;
|
|
1144
|
+
localDate: string;
|
|
1145
|
+
currentName: string;
|
|
1146
|
+
pathquestion: number;
|
|
1147
|
+
percent: number;
|
|
1148
|
+
count: number;
|
|
1149
|
+
taFocusOut: boolean;
|
|
1150
|
+
notValidAccNum: boolean;
|
|
1151
|
+
splCCBackClick: boolean;
|
|
1152
|
+
summary: any[];
|
|
1153
|
+
localSubQMap: Map<any, any>;
|
|
1154
|
+
keyIndex: number;
|
|
1155
|
+
selDate: any;
|
|
1156
|
+
selectDate: string;
|
|
1157
|
+
private today;
|
|
1158
|
+
private el;
|
|
1159
|
+
innerhtml: any;
|
|
1160
|
+
possibilities: any;
|
|
1161
|
+
innerhtml1: any;
|
|
1162
|
+
summaryData: any[];
|
|
1163
|
+
hours: any[];
|
|
1164
|
+
minutes: string[];
|
|
1165
|
+
selectedHour: string;
|
|
1166
|
+
selectedMinute: string;
|
|
1167
|
+
selectedMeridiem: string;
|
|
1168
|
+
valueName: string;
|
|
1169
|
+
valueName1: string;
|
|
1170
|
+
bookFlagAccept: string[];
|
|
1171
|
+
recordId: string;
|
|
1172
|
+
currentQuestionId: string;
|
|
1173
|
+
spinnerType: string;
|
|
1174
|
+
start_date?: any;
|
|
1175
|
+
tempoAddress: any[];
|
|
1176
|
+
selectedValue: string;
|
|
1177
|
+
selectedPostalcode: string;
|
|
1178
|
+
selectedProvince: string;
|
|
1179
|
+
selectedCity: string;
|
|
1180
|
+
selectedArea: string;
|
|
1181
|
+
localaddress: any[];
|
|
1182
|
+
allAddress: any[];
|
|
1183
|
+
PostalCode: string;
|
|
1184
|
+
places: any[];
|
|
1185
|
+
province: any[];
|
|
1186
|
+
progressStyle: string;
|
|
1187
|
+
answerCount: number;
|
|
1188
|
+
indexCount: number;
|
|
1189
|
+
addFlag: boolean;
|
|
1190
|
+
myDatePickerOptions: any;
|
|
1191
|
+
individualBookButton: boolean;
|
|
1192
|
+
allInputValues: any[];
|
|
1193
|
+
constructor(sfService: SalesforceService, dataService: DataService, changeService: ChangeService, sharedService: SharedService, route: ActivatedRoute, sanitizer: DomSanitizer, _formBuilder: UntypedFormBuilder, deviceService: DeviceDetectorService, el: ElementRef);
|
|
1194
|
+
onDateChanged(event: any, ques: any): void;
|
|
1195
|
+
ngOnInit(): void;
|
|
1196
|
+
ngAfterViewInit(): void;
|
|
1197
|
+
ngOnChanges(simplechanges: SimpleChanges): void;
|
|
1198
|
+
date_TimeMap(): void;
|
|
1199
|
+
day(): void;
|
|
1200
|
+
change(): void;
|
|
1201
|
+
processQB(): void;
|
|
1202
|
+
trimLastDummy(input: string): string;
|
|
1203
|
+
getProperTime(def: string, input: string): string;
|
|
1204
|
+
handleEditClick(value: string): void;
|
|
1205
|
+
handleNextClick(): void;
|
|
1206
|
+
AnswerSave(): void;
|
|
1207
|
+
next(): void;
|
|
1208
|
+
getText(value: any): SafeHtml;
|
|
1209
|
+
handleBackClick(): void;
|
|
1210
|
+
handleBackClickNew(): void;
|
|
1211
|
+
private updateAnswerBook;
|
|
1212
|
+
private successupdateAB;
|
|
1213
|
+
deleteAnswers(answerbook: any): void;
|
|
1214
|
+
private successDeleteAB;
|
|
1215
|
+
private failureupdateAB;
|
|
1216
|
+
private readQuestionBook;
|
|
1217
|
+
private successReadBook;
|
|
1218
|
+
private failureReadBook;
|
|
1219
|
+
private readAnswerbook;
|
|
1220
|
+
private successAnswerBookRead;
|
|
1221
|
+
private failureAnswerBookRead;
|
|
1222
|
+
private readQuestion;
|
|
1223
|
+
private successRead;
|
|
1224
|
+
trackId(): void;
|
|
1225
|
+
private failureRead;
|
|
1226
|
+
private saveAnswer;
|
|
1227
|
+
htmlDecode(input: any): string;
|
|
1228
|
+
private successSave;
|
|
1229
|
+
private failureSave;
|
|
1230
|
+
private processQuestion;
|
|
1231
|
+
setFlag(typ: any): void;
|
|
1232
|
+
resetFlag(typ: any): void;
|
|
1233
|
+
setOptions(records: any): void;
|
|
1234
|
+
childEventCapture(event: any, ques?: any): void;
|
|
1235
|
+
handleRichTextChange(value: string): void;
|
|
1236
|
+
setSubQuestions(records: any): void;
|
|
1237
|
+
optionChange(selValue: any): void;
|
|
1238
|
+
clearError(): void;
|
|
1239
|
+
clearLocalSubQuesError(quesId: any): void;
|
|
1240
|
+
inputValidate(e: any): boolean;
|
|
1241
|
+
CCOnChange(inpValue: string): void;
|
|
1242
|
+
isNotValidAccNumber(s: string): boolean;
|
|
1243
|
+
clearSQError(quesId: any): void;
|
|
1244
|
+
uploadFile(event: any, ques?: any): void;
|
|
1245
|
+
private successAttachmentCreate;
|
|
1246
|
+
private successAttachmentDelete;
|
|
1247
|
+
private failureAttachmentCreate;
|
|
1248
|
+
private failureAttachmentDelete;
|
|
1249
|
+
handleSubmitClick(): void;
|
|
1250
|
+
handleCancelClick(): void;
|
|
1251
|
+
private createAttachment;
|
|
1252
|
+
deleteAttachment(attachmentId: string): void;
|
|
1253
|
+
private deleteSFAttachment;
|
|
1254
|
+
getFileName(fileNamewithIdandType: any): any;
|
|
1255
|
+
fileUI(): void;
|
|
1256
|
+
updateProgress(): void;
|
|
1257
|
+
townName(area: any): void;
|
|
1258
|
+
getTownLocal(): void;
|
|
1259
|
+
clearList(): void;
|
|
1260
|
+
setSearchListWidth(): void;
|
|
1261
|
+
getCode(): void;
|
|
1262
|
+
getPostalcode(value: any): void;
|
|
1263
|
+
closeDropdown(): void;
|
|
1264
|
+
structLocalSubQuestion(ques: any): void;
|
|
1265
|
+
addInputBox(question: any, index: number): void;
|
|
1266
|
+
removeAddress(quesUniqueId: string, qName: string): void;
|
|
1267
|
+
getLocalSubQuestions(id: String): any;
|
|
1268
|
+
Add(question: any): void;
|
|
1269
|
+
handleLocationSelected(location: any, ques: any): void;
|
|
1270
|
+
selectedInput(input: any, ques: any): void;
|
|
1271
|
+
handleTextareaValueChange(value: string): void;
|
|
1272
|
+
getData(data: any): void;
|
|
1273
|
+
displayDate(dateSelected: any, ques: any): void;
|
|
1274
|
+
getKey(item: any): any;
|
|
1275
|
+
getValue(item: any): any;
|
|
1276
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionnaireComponent, never>;
|
|
1277
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionnaireComponent, "lib-questionnaire", never, { "qbId": { "alias": "qbId"; "required": false; }; "insuranceStartDate": { "alias": "insuranceStartDate"; "required": false; }; "serv": { "alias": "serv"; "required": false; }; "tkn": { "alias": "tkn"; "required": false; }; "api": { "alias": "api"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, { "handleEvent": "handleEvent"; "handlePage": "handlePage"; "handleQuestion": "handleQuestion"; "handleBook": "handleBook"; "handleSubmit": "handleSubmit"; }, never, never, true, never>;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
interface ActionMeta {
|
|
1281
|
+
alignment?: string;
|
|
1282
|
+
name?: string;
|
|
1283
|
+
eventtoemit?: string;
|
|
1284
|
+
alt?: string;
|
|
1285
|
+
id?: any;
|
|
1286
|
+
borderSize?: any;
|
|
1287
|
+
borderRadius?: any;
|
|
1288
|
+
width?: any;
|
|
1289
|
+
buttonConfig?: any;
|
|
1290
|
+
type?: any;
|
|
1291
|
+
btnIconLeftSrc?: any;
|
|
1292
|
+
isImageSvg?: any;
|
|
1293
|
+
[key: string]: any;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
declare class BookletWrapper {
|
|
1297
|
+
booklet: any[];
|
|
1298
|
+
bookQuestionsMap: any;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
interface CropperPosition {
|
|
1302
|
+
x1: number;
|
|
1303
|
+
y1: number;
|
|
1304
|
+
x2: number;
|
|
1305
|
+
y2: number;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
interface Dimensions {
|
|
1309
|
+
width: number;
|
|
1310
|
+
height: number;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
interface ImageTransform {
|
|
1314
|
+
scale?: number;
|
|
1315
|
+
rotate?: number;
|
|
1316
|
+
flipH?: boolean;
|
|
1317
|
+
flipV?: boolean;
|
|
1318
|
+
translateH?: number;
|
|
1319
|
+
translateV?: number;
|
|
1320
|
+
translateUnit?: '%' | 'px';
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
declare class QuestionbookComponent implements OnInit, AfterViewInit {
|
|
1324
|
+
private dataService;
|
|
1325
|
+
private changeService;
|
|
1326
|
+
private cdr;
|
|
1327
|
+
qbItem: any;
|
|
1328
|
+
questionItem: any;
|
|
1329
|
+
questions: any[];
|
|
1330
|
+
errorFieldId: any;
|
|
1331
|
+
labelValue: string;
|
|
1332
|
+
token: string;
|
|
1333
|
+
isEdit: boolean;
|
|
1334
|
+
dropDownData: any;
|
|
1335
|
+
dataBind: any;
|
|
1336
|
+
allIcons: any[];
|
|
1337
|
+
themeColor: string;
|
|
1338
|
+
cdnIconURL: string;
|
|
1339
|
+
direction: any;
|
|
1340
|
+
languageCode: any;
|
|
1341
|
+
from: any;
|
|
1342
|
+
bgColor: any;
|
|
1343
|
+
margin: any;
|
|
1344
|
+
onlyView: boolean;
|
|
1345
|
+
bookStyle: any;
|
|
1346
|
+
handleDropDown: EventEmitter<any>;
|
|
1347
|
+
handleQuestion: EventEmitter<any>;
|
|
1348
|
+
singleFieldChangeEmit: EventEmitter<any>;
|
|
1349
|
+
subQuestions: any[];
|
|
1350
|
+
selectedFileData: any[];
|
|
1351
|
+
loadComponent$: BehaviorSubject<boolean>;
|
|
1352
|
+
private destroy$;
|
|
1353
|
+
qbRef: any;
|
|
1354
|
+
style: any;
|
|
1355
|
+
subscription: Subscription;
|
|
1356
|
+
isImageEdit: boolean;
|
|
1357
|
+
selectedImageElement: any;
|
|
1358
|
+
transform: ImageTransform;
|
|
1359
|
+
canvasRotation: number;
|
|
1360
|
+
cropper?: CropperPosition;
|
|
1361
|
+
loading: boolean;
|
|
1362
|
+
cropperMaxHeight: number;
|
|
1363
|
+
cropperMaxWidth: number;
|
|
1364
|
+
cropperMinHeight: number;
|
|
1365
|
+
cropperMinWidth: number;
|
|
1366
|
+
cropperStaticWidth: number;
|
|
1367
|
+
cropperStaticHeight: number;
|
|
1368
|
+
aspectRatio: number;
|
|
1369
|
+
roundCropper: boolean;
|
|
1370
|
+
imageChangedEvent: Event | null;
|
|
1371
|
+
alignImage: "center";
|
|
1372
|
+
isImageHover: boolean;
|
|
1373
|
+
imageCache: {
|
|
1374
|
+
[key: string]: string;
|
|
1375
|
+
};
|
|
1376
|
+
inFlightImageRequests: {
|
|
1377
|
+
[key: string]: Promise<string>;
|
|
1378
|
+
};
|
|
1379
|
+
currencyOption: any;
|
|
1380
|
+
private processed;
|
|
1381
|
+
hadleDropDownDependent: EventEmitter<any>;
|
|
1382
|
+
handleCalendarDate: EventEmitter<any>;
|
|
1383
|
+
handleCalendarEvent: EventEmitter<any>;
|
|
1384
|
+
bookQuestionsMap: any;
|
|
1385
|
+
constructor(dataService: DataService, changeService: ChangeService, cdr: ChangeDetectorRef);
|
|
1386
|
+
ngOnInit(): void;
|
|
1387
|
+
ngAfterViewInit(): void;
|
|
1388
|
+
private syncQuestions;
|
|
1389
|
+
handleQues(ques: any): Promise<void>;
|
|
1390
|
+
processData(): void;
|
|
1391
|
+
hideDependentElements(elementId: any): void;
|
|
1392
|
+
setSubQuestions(records: any): void;
|
|
1393
|
+
childEventCapture(event: any, ques: any, input?: any): void;
|
|
1394
|
+
deleteFile(fileData: any): void;
|
|
1395
|
+
getDropDown(event: any): void;
|
|
1396
|
+
getCurrentCalendar(event: any): void;
|
|
1397
|
+
getCalendarEvent(event: any): void;
|
|
1398
|
+
isCalendarModalOpen: boolean;
|
|
1399
|
+
calendarModalTitle: any;
|
|
1400
|
+
calendarModalSize: any;
|
|
1401
|
+
calendarSaveButtonValue: any;
|
|
1402
|
+
referenceQuestions: any[];
|
|
1403
|
+
qbRefrenceBook: any;
|
|
1404
|
+
modalCalendarModalFooter: any;
|
|
1405
|
+
openCalendarModal(event: any): void;
|
|
1406
|
+
onCalendarModalSave(): void;
|
|
1407
|
+
handleQuestionEvent(event: any): void;
|
|
1408
|
+
closeCalendarModal(event: any): void;
|
|
1409
|
+
fileChangeEvent(ques: any, event: any): Promise<void>;
|
|
1410
|
+
private readFileAsDataURL;
|
|
1411
|
+
loadOrFetchImage(ques: any): Promise<void>;
|
|
1412
|
+
private processImageApiResponse;
|
|
1413
|
+
private isRawBase64;
|
|
1414
|
+
onImageEdit(ques: any): Promise<void>;
|
|
1415
|
+
onImageDelete(ques: any): Promise<void>;
|
|
1416
|
+
flipHorizontal(): void;
|
|
1417
|
+
flipVertical(): void;
|
|
1418
|
+
resetImage(): void;
|
|
1419
|
+
zoomOut(): void;
|
|
1420
|
+
zoomIn(): void;
|
|
1421
|
+
rotateLeft(): void;
|
|
1422
|
+
rotateRight(): void;
|
|
1423
|
+
moveLeft(): void;
|
|
1424
|
+
moveRight(): void;
|
|
1425
|
+
moveDown(): void;
|
|
1426
|
+
moveUp(): void;
|
|
1427
|
+
private flipAfterRotate;
|
|
1428
|
+
imageCropped(event: any): Promise<void>;
|
|
1429
|
+
cropperReady(sourceImageDimensions: Dimensions): void;
|
|
1430
|
+
convertBlobToBase64(objectUrl: string): Promise<string>;
|
|
1431
|
+
closeModal(): void;
|
|
1432
|
+
ngOnDestroy(): void;
|
|
1433
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionbookComponent, never>;
|
|
1434
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionbookComponent, "lib-questionbook", never, { "qbItem": { "alias": "qbItem"; "required": false; }; "questionItem": { "alias": "questionItem"; "required": false; }; "questions": { "alias": "questions"; "required": false; }; "errorFieldId": { "alias": "errorFieldId"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "token": { "alias": "token"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; "dropDownData": { "alias": "dropDownData"; "required": false; }; "dataBind": { "alias": "dataBind"; "required": false; }; "allIcons": { "alias": "allIcons"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "cdnIconURL": { "alias": "cdnIconURL"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; "from": { "alias": "from"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "onlyView": { "alias": "onlyView"; "required": false; }; "bookStyle": { "alias": "bookStyle"; "required": false; }; }, { "handleDropDown": "handleDropDown"; "handleQuestion": "handleQuestion"; "singleFieldChangeEmit": "singleFieldChangeEmit"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleCalendarDate": "handleCalendarDate"; "handleCalendarEvent": "handleCalendarEvent"; }, never, never, true, never>;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
declare class BookletComponent implements OnInit, AfterViewInit {
|
|
1438
|
+
private dataService;
|
|
1439
|
+
private changeService;
|
|
1440
|
+
private http;
|
|
1441
|
+
private translationService;
|
|
1442
|
+
private ngZone;
|
|
1443
|
+
private cdr;
|
|
1444
|
+
bookletId: string;
|
|
1445
|
+
serv: string;
|
|
1446
|
+
tkn: string;
|
|
1447
|
+
bookletJSON: any;
|
|
1448
|
+
allIcons: any;
|
|
1449
|
+
themeColor: string;
|
|
1450
|
+
cdnIconURL: string;
|
|
1451
|
+
dropdownDependentData: any;
|
|
1452
|
+
labelValue: string;
|
|
1453
|
+
token: string;
|
|
1454
|
+
languageCode: string;
|
|
1455
|
+
fieldRestrictions: any;
|
|
1456
|
+
from: any;
|
|
1457
|
+
apiUrl: any;
|
|
1458
|
+
isEdit: boolean;
|
|
1459
|
+
direction: string;
|
|
1460
|
+
isLoading: any;
|
|
1461
|
+
onlyView: boolean;
|
|
1462
|
+
dataBind: any;
|
|
1463
|
+
handleBookletActionEvent: EventEmitter<any>;
|
|
1464
|
+
handlePage: EventEmitter<any>;
|
|
1465
|
+
hadleDropDownDependent: EventEmitter<any>;
|
|
1466
|
+
handleCalendarDate: EventEmitter<any>;
|
|
1467
|
+
handleCalendarEvent: EventEmitter<any>;
|
|
1468
|
+
formEditEvent: EventEmitter<any>;
|
|
1469
|
+
subscription: Subscription;
|
|
1470
|
+
nxtBooklet: BookletWrapper;
|
|
1471
|
+
booklet: any[];
|
|
1472
|
+
abItem: any;
|
|
1473
|
+
actions: ActionMeta[];
|
|
1474
|
+
bookQuestionsMap: any;
|
|
1475
|
+
isAnswerFlag: boolean;
|
|
1476
|
+
spinnerName: string;
|
|
1477
|
+
spinnerType: string;
|
|
1478
|
+
answerList: any[];
|
|
1479
|
+
allEvents: any[];
|
|
1480
|
+
isEditVal: boolean;
|
|
1481
|
+
safeValue: any;
|
|
1482
|
+
showStickyShadow: boolean;
|
|
1483
|
+
isSaveDisabled: boolean;
|
|
1484
|
+
orginalDataBind: any;
|
|
1485
|
+
questionbookComponent: QuestionbookComponent;
|
|
1486
|
+
stickyBar?: ElementRef<HTMLElement>;
|
|
1487
|
+
private destroy$;
|
|
1488
|
+
private processBookletRunId;
|
|
1489
|
+
private scrollHandler;
|
|
1490
|
+
constructor(dataService: DataService, changeService: ChangeService, http: HttpClient, translationService: TranslationService, ngZone: NgZone, cdr: ChangeDetectorRef);
|
|
1491
|
+
ngOnInit(): void;
|
|
1492
|
+
ngOnChanges(simplechanges: SimpleChanges): void;
|
|
1493
|
+
upgradeActions(actionString: string): any[];
|
|
1494
|
+
private triggerProcessBooklet;
|
|
1495
|
+
processBooklet(from?: any): Promise<void>;
|
|
1496
|
+
getRefQbData(refqbid: string): Observable<any>;
|
|
1497
|
+
singleFieldChange(event: any): void;
|
|
1498
|
+
handleBookletActionClick(action: ActionMeta, ques?: any): Promise<void>;
|
|
1499
|
+
handleCompleteBooklet(completeBooklet: any, from?: any): Promise<void>;
|
|
1500
|
+
handleBook(quesList: any, from?: any): Promise<void>;
|
|
1501
|
+
handleQues(ques: any): Promise<void>;
|
|
1502
|
+
processRichTextArea(html: string): Promise<any>;
|
|
1503
|
+
addEvent(day: any, entryQues: any): void;
|
|
1504
|
+
getDropDown(event: any): void;
|
|
1505
|
+
getCalendarDate(event: any): void;
|
|
1506
|
+
getCalendarEvent(event: any): void;
|
|
1507
|
+
editChangeClick(action: any): void;
|
|
1508
|
+
ngAfterViewInit(): void;
|
|
1509
|
+
updateShadow(): void;
|
|
1510
|
+
private hasValue;
|
|
1511
|
+
private updateSaveButtonState;
|
|
1512
|
+
ngOnDestroy(): void;
|
|
1513
|
+
private applyTranslations;
|
|
1514
|
+
private loadReferenceBooks;
|
|
1515
|
+
private loadActions;
|
|
1516
|
+
private prepareBooklet;
|
|
1517
|
+
private assignBookletData;
|
|
1518
|
+
private buildQuestionMap;
|
|
1519
|
+
private handleDataBind;
|
|
1520
|
+
trackBooklet(index: number, item: any): any;
|
|
1521
|
+
trackQuestion(index: number, item: any): any;
|
|
1522
|
+
trackAction(index: number, item: any): any;
|
|
1523
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BookletComponent, never>;
|
|
1524
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": { "alias": "bookletId"; "required": false; }; "serv": { "alias": "serv"; "required": false; }; "tkn": { "alias": "tkn"; "required": false; }; "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "allIcons": { "alias": "allIcons"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "cdnIconURL": { "alias": "cdnIconURL"; "required": false; }; "dropdownDependentData": { "alias": "dropdownDependentData"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "token": { "alias": "token"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; "fieldRestrictions": { "alias": "fieldRestrictions"; "required": false; }; "from": { "alias": "from"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "onlyView": { "alias": "onlyView"; "required": false; }; "dataBind": { "alias": "dataBind"; "required": false; }; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleCalendarDate": "handleCalendarDate"; "handleCalendarEvent": "handleCalendarEvent"; "formEditEvent": "formEditEvent"; }, never, never, true, never>;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
declare class NxtButtonComponent implements OnInit {
|
|
1528
|
+
private cdRef;
|
|
1529
|
+
private translationService;
|
|
1530
|
+
private elementRef;
|
|
1531
|
+
buttonValue: string;
|
|
1532
|
+
buttonType: string;
|
|
1533
|
+
type: string;
|
|
1534
|
+
buttonDisable: boolean;
|
|
1535
|
+
btnBgColor: string;
|
|
1536
|
+
btnBorder: string;
|
|
1537
|
+
btnBorderRadius: string;
|
|
1538
|
+
btnBorderColor: string;
|
|
1539
|
+
btnTextColor: string;
|
|
1540
|
+
btnHeight: string;
|
|
1541
|
+
btnWidth: string;
|
|
1542
|
+
btnIconLeftSrc: string;
|
|
1543
|
+
btnIconRightSrc: string;
|
|
1544
|
+
btnHoverBgColor: string;
|
|
1545
|
+
btnHoverTextColor: string;
|
|
1546
|
+
btnId: string;
|
|
1547
|
+
dataDismiss: string;
|
|
1548
|
+
modalToTrigger: string;
|
|
1549
|
+
isImageSvg: boolean;
|
|
1550
|
+
tabIndex: any;
|
|
1551
|
+
buttonConfig: any;
|
|
1552
|
+
mode: 'view' | 'edit' | 'print';
|
|
1553
|
+
languageCode: any;
|
|
1554
|
+
padding: any;
|
|
1555
|
+
isLoading: boolean;
|
|
1556
|
+
selector: boolean;
|
|
1557
|
+
dropdownLoadingButton: any;
|
|
1558
|
+
buttonClickEmit: EventEmitter<any>;
|
|
1559
|
+
iconSrc: any;
|
|
1560
|
+
isDropdownOpen: boolean;
|
|
1561
|
+
constructor(cdRef: ChangeDetectorRef, translationService: TranslationService, elementRef: ElementRef);
|
|
1562
|
+
ngOnInit(): void;
|
|
1563
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1564
|
+
setActive(selectedBtn: any): void;
|
|
1565
|
+
onMainButtonClick(btn: any): void;
|
|
1566
|
+
onOptionSelect(btn: any, fld: any): void;
|
|
1567
|
+
buttonClicked(btn: any): void;
|
|
1568
|
+
toggleDropdown(): void;
|
|
1569
|
+
onClickOutside(event: MouseEvent): void;
|
|
1570
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtButtonComponent, never>;
|
|
1571
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxtButtonComponent, "nxt-button", never, { "buttonValue": { "alias": "buttonValue"; "required": false; }; "buttonType": { "alias": "buttonType"; "required": false; }; "type": { "alias": "type"; "required": false; }; "buttonDisable": { "alias": "buttonDisable"; "required": false; }; "btnBgColor": { "alias": "btnBgColor"; "required": false; }; "btnBorder": { "alias": "btnBorder"; "required": false; }; "btnBorderRadius": { "alias": "btnBorderRadius"; "required": false; }; "btnBorderColor": { "alias": "btnBorderColor"; "required": false; }; "btnTextColor": { "alias": "btnTextColor"; "required": false; }; "btnHeight": { "alias": "btnHeight"; "required": false; }; "btnWidth": { "alias": "btnWidth"; "required": false; }; "btnIconLeftSrc": { "alias": "btnIconLeftSrc"; "required": false; }; "btnIconRightSrc": { "alias": "btnIconRightSrc"; "required": false; }; "btnHoverBgColor": { "alias": "btnHoverBgColor"; "required": false; }; "btnHoverTextColor": { "alias": "btnHoverTextColor"; "required": false; }; "btnId": { "alias": "btnId"; "required": false; }; "dataDismiss": { "alias": "dataDismiss"; "required": false; }; "modalToTrigger": { "alias": "modalToTrigger"; "required": false; }; "isImageSvg": { "alias": "isImageSvg"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "buttonConfig": { "alias": "buttonConfig"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "selector": { "alias": "selector"; "required": false; }; "dropdownLoadingButton": { "alias": "dropdownLoadingButton"; "required": false; }; }, { "buttonClickEmit": "buttonClickEmit"; }, never, never, true, never>;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
declare class IconSelectorComponent {
|
|
1575
|
+
allIcons: [];
|
|
1576
|
+
themeColor: string;
|
|
1577
|
+
height: string;
|
|
1578
|
+
tooltipPosition: string;
|
|
1579
|
+
selectedIcon: any;
|
|
1580
|
+
cdnIconURL: string;
|
|
1581
|
+
label: string;
|
|
1582
|
+
labelFont: string;
|
|
1583
|
+
labelWeight: string;
|
|
1584
|
+
inputWeight: string;
|
|
1585
|
+
labelSize: string;
|
|
1586
|
+
labelColor: string;
|
|
1587
|
+
showLabel: string;
|
|
1588
|
+
required: boolean;
|
|
1589
|
+
mode: 'view' | 'edit' | 'print';
|
|
1590
|
+
question: any;
|
|
1591
|
+
options: any[];
|
|
1592
|
+
iconSelected: EventEmitter<string>;
|
|
1593
|
+
filteredIcons: any[];
|
|
1594
|
+
searchQuery: string;
|
|
1595
|
+
showDropdown: boolean;
|
|
1596
|
+
dropdownWrapper: ElementRef;
|
|
1597
|
+
ngOnInit(): void;
|
|
1598
|
+
ngOnChanges(simpleChanges: SimpleChanges): void;
|
|
1599
|
+
filterIcons(): void;
|
|
1600
|
+
selectIcon(icon: any): void;
|
|
1601
|
+
toggleDropdown(): void;
|
|
1602
|
+
onDocumentClick(event: MouseEvent): void;
|
|
1603
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconSelectorComponent, never>;
|
|
1604
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconSelectorComponent, "nxt-icon-selector", never, { "allIcons": { "alias": "allIcons"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "selectedIcon": { "alias": "selectedIcon"; "required": false; }; "cdnIconURL": { "alias": "cdnIconURL"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelFont": { "alias": "labelFont"; "required": false; }; "labelWeight": { "alias": "labelWeight"; "required": false; }; "inputWeight": { "alias": "inputWeight"; "required": false; }; "labelSize": { "alias": "labelSize"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "question": { "alias": "question"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "iconSelected": "iconSelected"; }, never, never, true, never>;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
interface FormElement {
|
|
1608
|
+
action: any;
|
|
1609
|
+
id: any;
|
|
1610
|
+
type: string;
|
|
1611
|
+
name: any;
|
|
1612
|
+
questionText?: string;
|
|
1613
|
+
question?: string;
|
|
1614
|
+
helpText?: string;
|
|
1615
|
+
errorMessage?: string;
|
|
1616
|
+
isReadOnly?: boolean;
|
|
1617
|
+
isHidden?: boolean;
|
|
1618
|
+
required?: boolean;
|
|
1619
|
+
referenceField?: any;
|
|
1620
|
+
additionalRichContent?: any;
|
|
1621
|
+
groupName?: any;
|
|
1622
|
+
isDateBackward?: boolean;
|
|
1623
|
+
title?: any;
|
|
1624
|
+
subTitle?: any;
|
|
1625
|
+
size?: number;
|
|
1626
|
+
isDateForward?: boolean;
|
|
1627
|
+
isOptional?: boolean;
|
|
1628
|
+
isTitle?: boolean;
|
|
1629
|
+
nextQuestion?: any;
|
|
1630
|
+
allowedFileExtensions?: any;
|
|
1631
|
+
questionNumber?: number;
|
|
1632
|
+
order: number;
|
|
1633
|
+
questionBookId?: any;
|
|
1634
|
+
fieldsMeta?: any;
|
|
1635
|
+
trackingId?: any;
|
|
1636
|
+
recordId?: any;
|
|
1637
|
+
qbReference?: any;
|
|
1638
|
+
qbReferenceQuestions?: any;
|
|
1639
|
+
primaryKey: boolean;
|
|
1640
|
+
style: {
|
|
1641
|
+
labelClass: any;
|
|
1642
|
+
labelStyle: any;
|
|
1643
|
+
labelValueStyle: any;
|
|
1644
|
+
inputClass: any;
|
|
1645
|
+
inputStyle: any;
|
|
1646
|
+
showLabel: boolean;
|
|
1647
|
+
bookStyle: any;
|
|
1648
|
+
direction: any;
|
|
1649
|
+
questionStyle: any;
|
|
1650
|
+
};
|
|
1651
|
+
options?: Array<{
|
|
1652
|
+
value: string;
|
|
1653
|
+
label: string;
|
|
1654
|
+
uniqueIdentifier: any;
|
|
1655
|
+
id: any;
|
|
1656
|
+
}>;
|
|
1657
|
+
subText: any;
|
|
1658
|
+
}
|
|
1659
|
+
declare class FormBuilderService {
|
|
1660
|
+
private http;
|
|
1661
|
+
private formElements;
|
|
1662
|
+
private formElementsSubject;
|
|
1663
|
+
private selectedElementSubject;
|
|
1664
|
+
private selectHeaderSubject;
|
|
1665
|
+
private actionSubject;
|
|
1666
|
+
private elementComponent;
|
|
1667
|
+
book: any;
|
|
1668
|
+
unique_id: any;
|
|
1669
|
+
formElements$: Observable<FormElement[]>;
|
|
1670
|
+
selectedElement$: Observable<number>;
|
|
1671
|
+
selectHeaderSubject$: Observable<any>;
|
|
1672
|
+
actionSubject$: Observable<any>;
|
|
1673
|
+
currentElement: any;
|
|
1674
|
+
selectTableColumn: any;
|
|
1675
|
+
constructor(http: HttpClient);
|
|
1676
|
+
intializeBook(book: any): void;
|
|
1677
|
+
getRefQbData(refqbid: string): Observable<any>;
|
|
1678
|
+
addElementWithId(): string;
|
|
1679
|
+
updateQuestionBookActionButtons(button: any, action: string): void;
|
|
1680
|
+
newBook(): void;
|
|
1681
|
+
clearElements(): void;
|
|
1682
|
+
getElementComponent(): ElementComponent | null;
|
|
1683
|
+
setElementComponent(component: ElementComponent): void;
|
|
1684
|
+
addElement(element: FormElement): void;
|
|
1685
|
+
addTableElement(element: any, ind: any): void;
|
|
1686
|
+
updateElement(index: number, updates: Partial<FormElement>): void;
|
|
1687
|
+
updateTitle(event: any): void;
|
|
1688
|
+
setSelectedElement(index: number): void;
|
|
1689
|
+
setSelectedTableElement(index: any, event: any): void;
|
|
1690
|
+
removeSelectedTableElement(index: number, event: any): void;
|
|
1691
|
+
getSelectTableColumn(): any;
|
|
1692
|
+
selectHeading(event: any): void;
|
|
1693
|
+
getElements(): FormElement[];
|
|
1694
|
+
sortElementsByOrder(): void;
|
|
1695
|
+
getBook(): any;
|
|
1696
|
+
getBookId(): any;
|
|
1697
|
+
updateBook(book: any): void;
|
|
1698
|
+
downloadElement(): any;
|
|
1699
|
+
updateElementsOrder(updatedElements: FormElement[]): void;
|
|
1700
|
+
removeElementComponent(id: any): void;
|
|
1701
|
+
elementUpdate(index: any, element: any): void;
|
|
1702
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBuilderService, never>;
|
|
1703
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
declare class ElementComponent {
|
|
1707
|
+
private cdRef;
|
|
1708
|
+
private formBuilderService;
|
|
1709
|
+
private translationService;
|
|
1710
|
+
bookletJSON: any;
|
|
1711
|
+
langOption: any;
|
|
1712
|
+
languageCode: any;
|
|
1713
|
+
templateMode: EventEmitter<boolean>;
|
|
1714
|
+
field: any;
|
|
1715
|
+
formElements: any[];
|
|
1716
|
+
elements: any[];
|
|
1717
|
+
bookId: string;
|
|
1718
|
+
sections: {
|
|
1719
|
+
basic: boolean;
|
|
1720
|
+
advanced: boolean;
|
|
1721
|
+
};
|
|
1722
|
+
basicElements: any[];
|
|
1723
|
+
advancedElements: any[];
|
|
1724
|
+
version: string;
|
|
1725
|
+
book: any;
|
|
1726
|
+
selectedElement: any;
|
|
1727
|
+
isSelectTablePopup: boolean;
|
|
1728
|
+
currentType: string;
|
|
1729
|
+
addTable: boolean;
|
|
1730
|
+
dots: any[];
|
|
1731
|
+
draggedIndex: number | null;
|
|
1732
|
+
templateSelected: boolean;
|
|
1733
|
+
isHeaderSelect: boolean;
|
|
1734
|
+
selectedColumn: any;
|
|
1735
|
+
statictype: string[];
|
|
1736
|
+
constructor(cdRef: ChangeDetectorRef, formBuilderService: FormBuilderService, translationService: TranslationService);
|
|
1737
|
+
ngOnInit(): void;
|
|
1738
|
+
toggleSection(section: "basic" | "advanced"): void;
|
|
1739
|
+
isSectionOpen(section: string): boolean;
|
|
1740
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1741
|
+
onTemplateSelected(event: {
|
|
1742
|
+
selectedTemplate: any;
|
|
1743
|
+
elements: any[];
|
|
1744
|
+
}): void;
|
|
1745
|
+
private initializeForm;
|
|
1746
|
+
selectElement(index: number): void;
|
|
1747
|
+
selectedFieldIndex: number | null;
|
|
1748
|
+
selectHeading(event: any): void;
|
|
1749
|
+
generateUiId(): string;
|
|
1750
|
+
addElement(type: string): void;
|
|
1751
|
+
removeElement(field: any, index: number): void;
|
|
1752
|
+
onDragStart(event: DragEvent, index: number): void;
|
|
1753
|
+
onDragOver(event: DragEvent, index: number): void;
|
|
1754
|
+
onDrop(event: DragEvent, dropIndex: number): void;
|
|
1755
|
+
toggleBoolean(field: any): void;
|
|
1756
|
+
onClose(): void;
|
|
1757
|
+
addOnTable(): void;
|
|
1758
|
+
columnSelected(event: any): void;
|
|
1759
|
+
removeColumn(event: any): void;
|
|
1760
|
+
fileChangeEvent(index: any, event: any): Promise<void>;
|
|
1761
|
+
private readFileAsDataURL;
|
|
1762
|
+
langChangeEmit(event: any): void;
|
|
1763
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
|
|
1764
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "app-element", never, { "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "langOption": { "alias": "langOption"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; }, { "templateMode": "templateMode"; }, never, never, true, never>;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
declare class PdfDesignerService {
|
|
1768
|
+
private countryService;
|
|
1769
|
+
private http;
|
|
1770
|
+
private dataService;
|
|
1771
|
+
private pdfElements;
|
|
1772
|
+
private pdfElementsSubject;
|
|
1773
|
+
private selectedElementSubject;
|
|
1774
|
+
private selectHeaderSubject;
|
|
1775
|
+
private elementComponent;
|
|
1776
|
+
pdf: any;
|
|
1777
|
+
unique_id: any;
|
|
1778
|
+
tempElem: any[];
|
|
1779
|
+
pdfElements$: Observable<any[]>;
|
|
1780
|
+
selectedElement$: Observable<{
|
|
1781
|
+
index: number;
|
|
1782
|
+
pdfIndex?: number;
|
|
1783
|
+
}>;
|
|
1784
|
+
selectHeaderSubject$: Observable<any>;
|
|
1785
|
+
currentElement: any;
|
|
1786
|
+
selectTableColumn: any;
|
|
1787
|
+
currencyOption: any;
|
|
1788
|
+
constructor(countryService: CountryService, http: HttpClient, dataService: DataService);
|
|
1789
|
+
getDefaultPdfSettings(): {
|
|
1790
|
+
pageSize: string;
|
|
1791
|
+
pageOrientation: string;
|
|
1792
|
+
pageMargins: number[];
|
|
1793
|
+
backgroundColor: string;
|
|
1794
|
+
header: {
|
|
1795
|
+
enabled: boolean;
|
|
1796
|
+
showOn: string;
|
|
1797
|
+
text: string;
|
|
1798
|
+
leftText: string;
|
|
1799
|
+
centerText: string;
|
|
1800
|
+
rightText: string;
|
|
1801
|
+
alignment: string;
|
|
1802
|
+
fontSize: number;
|
|
1803
|
+
color: string;
|
|
1804
|
+
margin: number[];
|
|
1805
|
+
bottomBorder: boolean;
|
|
1806
|
+
borderColor: string;
|
|
1807
|
+
borderWidth: number;
|
|
1808
|
+
};
|
|
1809
|
+
watermark: {
|
|
1810
|
+
enabled: boolean;
|
|
1811
|
+
text: string;
|
|
1812
|
+
color: string;
|
|
1813
|
+
opacity: number;
|
|
1814
|
+
angle: number;
|
|
1815
|
+
fontSize: number;
|
|
1816
|
+
};
|
|
1817
|
+
footer: {
|
|
1818
|
+
enabled: boolean;
|
|
1819
|
+
showOn: string;
|
|
1820
|
+
text: string;
|
|
1821
|
+
leftText: string;
|
|
1822
|
+
centerText: string;
|
|
1823
|
+
rightText: string;
|
|
1824
|
+
alignment: string;
|
|
1825
|
+
fontSize: number;
|
|
1826
|
+
color: string;
|
|
1827
|
+
margin: number[];
|
|
1828
|
+
topBorder: boolean;
|
|
1829
|
+
borderColor: string;
|
|
1830
|
+
borderWidth: number;
|
|
1831
|
+
};
|
|
1832
|
+
};
|
|
1833
|
+
private ensurePdfSettings;
|
|
1834
|
+
intializeBook(pdf: any): void;
|
|
1835
|
+
getRefQbData(refqbid: string): Observable<any>;
|
|
1836
|
+
addElementWithId(): string;
|
|
1837
|
+
newBook(): void;
|
|
1838
|
+
clearElements(): void;
|
|
1839
|
+
getElementComponent(): ElementComponent | null;
|
|
1840
|
+
setElementComponent(component: ElementComponent): void;
|
|
1841
|
+
addElement(element: any): void;
|
|
1842
|
+
addTableElement(element: any, index: number): void;
|
|
1843
|
+
updateElement(index: number, updates: Partial<any>): void;
|
|
1844
|
+
updateTitle(event: any): void;
|
|
1845
|
+
setSelectedElement(index: number, pdfIndex?: number): void;
|
|
1846
|
+
setSelectedTableElement(index: any, event: any): void;
|
|
1847
|
+
removeSelectedTableElement(index: number, event: any): void;
|
|
1848
|
+
getSelectTableColumn(): any;
|
|
1849
|
+
selectHeading(event: any): void;
|
|
1850
|
+
getElements(): any[];
|
|
1851
|
+
sortElementsByOrder(): void;
|
|
1852
|
+
getBook(): any;
|
|
1853
|
+
downloadElement(): any;
|
|
1854
|
+
buildPdfOutput(pdfJSON: any, dataBind?: any, pdfDefinitionOptions?: any, action?: 'preview' | 'download' | 'definition' | string, elements?: any[]): {
|
|
1855
|
+
action: string;
|
|
1856
|
+
title: any;
|
|
1857
|
+
pdf: any;
|
|
1858
|
+
book: any;
|
|
1859
|
+
boundBook: any;
|
|
1860
|
+
pdfJson: any;
|
|
1861
|
+
pdfDefinition: any;
|
|
1862
|
+
dataBind: any;
|
|
1863
|
+
};
|
|
1864
|
+
buildPdfOutputFromConfig(config: {
|
|
1865
|
+
pdfJSON: any;
|
|
1866
|
+
dataBind?: any;
|
|
1867
|
+
pdfDefinitionOptions?: any;
|
|
1868
|
+
action?: 'preview' | 'download' | 'definition' | string;
|
|
1869
|
+
elements?: any[];
|
|
1870
|
+
}): {
|
|
1871
|
+
action: string;
|
|
1872
|
+
title: any;
|
|
1873
|
+
pdf: any;
|
|
1874
|
+
book: any;
|
|
1875
|
+
boundBook: any;
|
|
1876
|
+
pdfJson: any;
|
|
1877
|
+
pdfDefinition: any;
|
|
1878
|
+
dataBind: any;
|
|
1879
|
+
};
|
|
1880
|
+
buildBoundPdfBook(pdfJSON?: any, dataBind?: any, elements?: any[]): any;
|
|
1881
|
+
bindPdfElements(elements?: any[], dataBind?: any): any[];
|
|
1882
|
+
createPdfDefinition(boundBook: any, pdfDefinitionOptions?: any): any;
|
|
1883
|
+
private bindPdfQuestion;
|
|
1884
|
+
private normalizeBindableMetadata;
|
|
1885
|
+
private getBoundReferenceValue;
|
|
1886
|
+
private getBoundReferencePartsValue;
|
|
1887
|
+
private getBoundTemplateValue;
|
|
1888
|
+
private formatBoundDateValue;
|
|
1889
|
+
private hasBindableValue;
|
|
1890
|
+
private getBoundTableRows;
|
|
1891
|
+
private applyTableDataFilter;
|
|
1892
|
+
private matchesTableDataFilter;
|
|
1893
|
+
private normalizeFilterValue;
|
|
1894
|
+
private buildTableSummaryValues;
|
|
1895
|
+
private computeTableSummaryValue;
|
|
1896
|
+
private resolveSummaryOperand;
|
|
1897
|
+
private toNumericValue;
|
|
1898
|
+
private getPdfUniqueId;
|
|
1899
|
+
private clonePlain;
|
|
1900
|
+
buildPdfBook(pdf?: any, elements?: any[]): any;
|
|
1901
|
+
private applyPdfPageSettings;
|
|
1902
|
+
private hasRunningBandContent;
|
|
1903
|
+
private buildRunningBand;
|
|
1904
|
+
private replacePageTokens;
|
|
1905
|
+
convertToPdfLayout(input: any): any;
|
|
1906
|
+
private buildTableLayout;
|
|
1907
|
+
private isEmptyTableDataRow;
|
|
1908
|
+
private buildRichTextStack;
|
|
1909
|
+
private buildPlainRichTextStack;
|
|
1910
|
+
private buildRichTextHtmlStack;
|
|
1911
|
+
private appendRichHtmlBlock;
|
|
1912
|
+
private appendRichHtmlList;
|
|
1913
|
+
private collectRichInlineRuns;
|
|
1914
|
+
private getRichHtmlInlineStyle;
|
|
1915
|
+
private getRichHtmlBlockStyle;
|
|
1916
|
+
private getRichHtmlBlockMargin;
|
|
1917
|
+
private isRichHtml;
|
|
1918
|
+
private isRichHtmlContainer;
|
|
1919
|
+
private isRichHtmlBlockTag;
|
|
1920
|
+
private shouldKeepEmptyRichBlock;
|
|
1921
|
+
private hasRichInlineText;
|
|
1922
|
+
private htmlToPlainText;
|
|
1923
|
+
private parseCssDeclarations;
|
|
1924
|
+
private normalizeCssColor;
|
|
1925
|
+
private parseCssSize;
|
|
1926
|
+
private buildTextValueNode;
|
|
1927
|
+
private buildStyledTextStack;
|
|
1928
|
+
private isQuotationHeadingText;
|
|
1929
|
+
private getDefaultTextHeadingColor;
|
|
1930
|
+
private getDefaultTextHeadingSize;
|
|
1931
|
+
private parsePdfMakeJson;
|
|
1932
|
+
private formatCurrencyText;
|
|
1933
|
+
private normalizeCurrencyValue;
|
|
1934
|
+
private resolveCurrencySymbol;
|
|
1935
|
+
private resolveCurrencyOption;
|
|
1936
|
+
private removeUnavailableFonts;
|
|
1937
|
+
private replaceUnsupportedCurrencySymbols;
|
|
1938
|
+
updateElementsOrder(updatedElements: any[]): void;
|
|
1939
|
+
removeElementComponent(id: any): void;
|
|
1940
|
+
elementUpdate(element: any, from?: any): void;
|
|
1941
|
+
dateTransform(value: any, type: 'date' | 'datetime' | 'month' | 'time', languageCode: string, dateFormatType: 'hijri' | 'gregorianAr' | 'gregorian'): string;
|
|
1942
|
+
private toArabicNumbers;
|
|
1943
|
+
private normalizeMargin;
|
|
1944
|
+
private normalizePdfStyle;
|
|
1945
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PdfDesignerService, never>;
|
|
1946
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
declare class PdfDesignerComponent {
|
|
1950
|
+
private dataService;
|
|
1951
|
+
private changeService;
|
|
1952
|
+
private countryService;
|
|
1953
|
+
private pdfDesignerService;
|
|
1954
|
+
private sanitizer;
|
|
1955
|
+
textareas: QueryList<ElementRef>;
|
|
1956
|
+
pdfJSON: any;
|
|
1957
|
+
bookletId: any;
|
|
1958
|
+
isPreview: boolean;
|
|
1959
|
+
from: any;
|
|
1960
|
+
dataBind: any;
|
|
1961
|
+
isPropertyHide: boolean;
|
|
1962
|
+
pdfDefinitionOptions: any;
|
|
1963
|
+
pdfSaveHandlerEmit: EventEmitter<any>;
|
|
1964
|
+
templateMode: EventEmitter<boolean>;
|
|
1965
|
+
pdfPreviewEmit: EventEmitter<any>;
|
|
1966
|
+
pdfOutputEmit: EventEmitter<any>;
|
|
1967
|
+
field: any;
|
|
1968
|
+
pdfElements: any[];
|
|
1969
|
+
elements: any[];
|
|
1970
|
+
bookId: string;
|
|
1971
|
+
sections: {
|
|
1972
|
+
basic: boolean;
|
|
1973
|
+
advanced: boolean;
|
|
1974
|
+
};
|
|
1975
|
+
elementsList: any[];
|
|
1976
|
+
elementDisabledArray: any;
|
|
1977
|
+
version: string;
|
|
1978
|
+
pdf: any;
|
|
1979
|
+
selectedElement: any;
|
|
1980
|
+
isSelectTablePopup: boolean;
|
|
1981
|
+
currentType: string;
|
|
1982
|
+
addTable: boolean;
|
|
1983
|
+
dots: any[];
|
|
1984
|
+
draggedIndex: number | null;
|
|
1985
|
+
templateSelected: boolean;
|
|
1986
|
+
isImageEdit: boolean;
|
|
1987
|
+
selectedImageElement: any;
|
|
1988
|
+
transform: ImageTransform;
|
|
1989
|
+
loading: boolean;
|
|
1990
|
+
canvasRotation: number;
|
|
1991
|
+
cropper?: CropperPosition;
|
|
1992
|
+
cropperMaxHeight: number;
|
|
1993
|
+
cropperMaxWidth: number;
|
|
1994
|
+
cropperMinHeight: number;
|
|
1995
|
+
cropperMinWidth: number;
|
|
1996
|
+
cropperStaticWidth: number;
|
|
1997
|
+
cropperStaticHeight: number;
|
|
1998
|
+
aspectRatio: number;
|
|
1999
|
+
roundCropper: boolean;
|
|
2000
|
+
isImageHover: boolean;
|
|
2001
|
+
alignImage: "center";
|
|
2002
|
+
showTextSettings: boolean;
|
|
2003
|
+
selectedColumn: any;
|
|
2004
|
+
defaultColors: string[];
|
|
2005
|
+
selectedColor: string;
|
|
2006
|
+
currencyOptions: any;
|
|
2007
|
+
selectedCurrency: any;
|
|
2008
|
+
private drawing;
|
|
2009
|
+
private ctxMap;
|
|
2010
|
+
private ratioMap;
|
|
2011
|
+
constructor(dataService: DataService, changeService: ChangeService, countryService: CountryService, pdfDesignerService: PdfDesignerService, sanitizer: DomSanitizer);
|
|
2012
|
+
ngAfterViewInit(): void;
|
|
2013
|
+
handleQues(ques: any, dataBind?: any): void;
|
|
2014
|
+
private getBoundReferenceValue;
|
|
2015
|
+
private getBoundReferencePartsValue;
|
|
2016
|
+
private getBoundTemplateValue;
|
|
2017
|
+
private formatBoundDateValue;
|
|
2018
|
+
private hasBindableValue;
|
|
2019
|
+
private getBoundTableRows;
|
|
2020
|
+
private applyTableDataFilter;
|
|
2021
|
+
private matchesTableDataFilter;
|
|
2022
|
+
private normalizeFilterValue;
|
|
2023
|
+
private buildTableSummaryValues;
|
|
2024
|
+
private computeTableSummaryValue;
|
|
2025
|
+
private resolveSummaryOperand;
|
|
2026
|
+
private toNumericValue;
|
|
2027
|
+
getContrastColor(bgColor?: string): string;
|
|
2028
|
+
resizeAllTextareas(): void;
|
|
2029
|
+
ngOnInit(): void;
|
|
2030
|
+
isSectionOpen(section: string): boolean;
|
|
2031
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2032
|
+
onTemplateSelected(event: {
|
|
2033
|
+
selectedTemplate: any;
|
|
2034
|
+
elements: any[];
|
|
2035
|
+
}): void;
|
|
2036
|
+
private initializeForm;
|
|
2037
|
+
selectElement(index: number, pdfIndex?: number): void;
|
|
2038
|
+
selectedFieldIndex: number | null;
|
|
2039
|
+
selectHeading(event: any): void;
|
|
2040
|
+
generateUiId(): string;
|
|
2041
|
+
addElement(type: string): void;
|
|
2042
|
+
private applyAdvancedElementDefaults;
|
|
2043
|
+
onTextAreaInput(event: Event, field: any): void;
|
|
2044
|
+
onQuestionChange(value: any, field: any): void;
|
|
2045
|
+
pdfPreview(pdf: any): void;
|
|
2046
|
+
onFieldDateChange(event: any): void;
|
|
2047
|
+
removeElement(field: any, index: number): void;
|
|
2048
|
+
onDragStart(event: DragEvent, index: number): void;
|
|
2049
|
+
onDragOver(event: DragEvent, index: number): void;
|
|
2050
|
+
onDrop(event: DragEvent, dropIndex: number): void;
|
|
2051
|
+
toggleBoolean(field: any): void;
|
|
2052
|
+
onClose(): void;
|
|
2053
|
+
addOnTable(): void;
|
|
2054
|
+
addTableData(fieldId: any, fieldName: any): void;
|
|
2055
|
+
columnSelected(tableIndexOrEvent: number | any, event?: any, mouseEvent?: MouseEvent): void;
|
|
2056
|
+
removeColumn(event: any): void;
|
|
2057
|
+
fileChangeEvent(field: any, event: any): Promise<void>;
|
|
2058
|
+
private readFileAsDataURL;
|
|
2059
|
+
isElementDisabled(elementType: string): boolean;
|
|
2060
|
+
onImageEdit(ques: any): Promise<void>;
|
|
2061
|
+
onImageDelete(ques: any): Promise<void>;
|
|
2062
|
+
flipHorizontal(): void;
|
|
2063
|
+
flipVertical(): void;
|
|
2064
|
+
resetImage(): void;
|
|
2065
|
+
zoomOut(): void;
|
|
2066
|
+
zoomIn(): void;
|
|
2067
|
+
rotateLeft(): void;
|
|
2068
|
+
rotateRight(): void;
|
|
2069
|
+
moveLeft(): void;
|
|
2070
|
+
moveRight(): void;
|
|
2071
|
+
moveDown(): void;
|
|
2072
|
+
moveUp(): void;
|
|
2073
|
+
private flipAfterRotate;
|
|
2074
|
+
imageCropped(event: any): Promise<void>;
|
|
2075
|
+
cropperReady(sourceImageDimensions: Dimensions): void;
|
|
2076
|
+
convertBlobToBase64(objectUrl: string): Promise<string>;
|
|
2077
|
+
closeModal(): void;
|
|
2078
|
+
openTextSettings(field: any, event: MouseEvent): void;
|
|
2079
|
+
closeTextSettings(): void;
|
|
2080
|
+
toggleStyle(style: 'bold' | 'italic'): void;
|
|
2081
|
+
setAlignment(alignment: 'left' | 'center' | 'right'): void;
|
|
2082
|
+
updateContent(tempElement?: any): void;
|
|
2083
|
+
pdfSaveHandler(event: any): void;
|
|
2084
|
+
exportPdf(action?: 'preview' | 'download' | 'definition' | string, dataBind?: any): any;
|
|
2085
|
+
selectColor(color: string): void;
|
|
2086
|
+
currencyChange(event: any): void;
|
|
2087
|
+
setupCanvas(element: HTMLCanvasElement): void;
|
|
2088
|
+
loadSignatureToCanvas(element: HTMLCanvasElement, base64: string): void;
|
|
2089
|
+
private getCanvasPos;
|
|
2090
|
+
pointerDown(event: PointerEvent, field: any): void;
|
|
2091
|
+
pointerMove(event: PointerEvent, field: any): void;
|
|
2092
|
+
pointerUp(event: PointerEvent, field: any): void;
|
|
2093
|
+
saveCanvasToField(canvas: HTMLCanvasElement, field: any): void;
|
|
2094
|
+
clearCanvas(element: HTMLCanvasElement, field: any): void;
|
|
2095
|
+
clearSignature(field: any): void;
|
|
2096
|
+
getPdfSettings(): any;
|
|
2097
|
+
getPageBackgroundColor(): string;
|
|
2098
|
+
getPageContentStyle(): any;
|
|
2099
|
+
getWatermarkText(): string;
|
|
2100
|
+
getWatermarkStyle(): any;
|
|
2101
|
+
shouldShowFooterOnCanvas(): boolean;
|
|
2102
|
+
shouldShowHeaderOnCanvas(): boolean;
|
|
2103
|
+
getHeaderStyle(): any;
|
|
2104
|
+
getFooterStyle(): any;
|
|
2105
|
+
getRunningBandColumns(type: 'header' | 'footer'): string[];
|
|
2106
|
+
hasRunningBandBorder(type: 'header' | 'footer'): boolean;
|
|
2107
|
+
getRunningBandBorderStyle(type: 'header' | 'footer'): any;
|
|
2108
|
+
getElementTextStyle(field: any): any;
|
|
2109
|
+
getElementLabelStyle(field: any): any;
|
|
2110
|
+
displayFieldValue(field: any): string;
|
|
2111
|
+
shouldRenderStyledTextLines(field: any): boolean;
|
|
2112
|
+
getStyledTextLines(field: any): string[];
|
|
2113
|
+
isTextHeadingLine(field: any, index: number, line: string): boolean;
|
|
2114
|
+
getStyledTextLineStyle(field: any, index: number, line: string): any;
|
|
2115
|
+
private isQuotationHeadingText;
|
|
2116
|
+
private getDefaultTextHeadingColor;
|
|
2117
|
+
private getDefaultTextHeadingSize;
|
|
2118
|
+
getRichTextLines(field: any): string[];
|
|
2119
|
+
isRichTextHtml(field: any): boolean;
|
|
2120
|
+
getRichTextHtml(field: any): SafeHtml;
|
|
2121
|
+
isRichTextBullet(line: string): boolean;
|
|
2122
|
+
getRichTextLineText(line: string): string;
|
|
2123
|
+
isRichTextHeading(field: any, index: number, line: string): boolean;
|
|
2124
|
+
getPdfMakePreview(field: any): string;
|
|
2125
|
+
getMainTableColumns(field: any): any[];
|
|
2126
|
+
getSummaryTableColumns(field: any): any[];
|
|
2127
|
+
getTableRows(field: any): any[];
|
|
2128
|
+
getTableHeaderStyle(column: any): any;
|
|
2129
|
+
getTableCellStyle(column: any, rowIndex: number): any;
|
|
2130
|
+
getTableSummaryLabelColspan(field: any): number;
|
|
2131
|
+
getColumnCssWidth(column: any): string;
|
|
2132
|
+
getTableCellValue(row: any, column: any): string;
|
|
2133
|
+
getTableSummaryValue(field: any, column: any): string;
|
|
2134
|
+
isSelectedTableColumn(column: any): boolean;
|
|
2135
|
+
formatCurrencyValue(value: any, field?: any): string;
|
|
2136
|
+
getCurrencySymbol(): string;
|
|
2137
|
+
private normalizeCurrencyValue;
|
|
2138
|
+
private resolveCurrencyOption;
|
|
2139
|
+
private normalizeMargin;
|
|
2140
|
+
private marginToCss;
|
|
2141
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PdfDesignerComponent, never>;
|
|
2142
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PdfDesignerComponent, "app-pdf-designer", never, { "pdfJSON": { "alias": "pdfJSON"; "required": false; }; "bookletId": { "alias": "bookletId"; "required": false; }; "isPreview": { "alias": "isPreview"; "required": false; }; "from": { "alias": "from"; "required": false; }; "dataBind": { "alias": "dataBind"; "required": false; }; "isPropertyHide": { "alias": "isPropertyHide"; "required": false; }; "pdfDefinitionOptions": { "alias": "pdfDefinitionOptions"; "required": false; }; }, { "pdfSaveHandlerEmit": "pdfSaveHandlerEmit"; "templateMode": "templateMode"; "pdfPreviewEmit": "pdfPreviewEmit"; "pdfOutputEmit": "pdfOutputEmit"; }, never, never, true, never>;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
declare class FormComponent {
|
|
2146
|
+
bookletJSON: any;
|
|
2147
|
+
langOption: any;
|
|
2148
|
+
formButtonHandler: EventEmitter<string>;
|
|
2149
|
+
templateSaveHandler: EventEmitter<string>;
|
|
2150
|
+
selectedElementType: string;
|
|
2151
|
+
isTemplateSelected: boolean;
|
|
2152
|
+
onTemplateModeChange(status: boolean): void;
|
|
2153
|
+
formButtonHandlerClick(event: any): void;
|
|
2154
|
+
saveTemplate(event: any): void;
|
|
2155
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
2156
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "app-form-builder", never, { "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "langOption": { "alias": "langOption"; "required": false; }; }, { "formButtonHandler": "formButtonHandler"; "templateSaveHandler": "templateSaveHandler"; }, never, never, true, never>;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
declare function initializeApp(translationService: TranslationService): () => Promise<void>;
|
|
2160
|
+
declare class NxtAppModule {
|
|
2161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtAppModule, never>;
|
|
2162
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NxtAppModule, [typeof NxtAppComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof NxtDatatable, typeof NxtSearchBox, typeof ListViewFilterComponent, typeof NxtInput, typeof NxtMultiSelect, typeof QuestionnaireComponent, typeof BookletComponent, typeof QuestionbookComponent, typeof NxtButtonComponent, typeof IconSelectorComponent, typeof PdfDesignerComponent, typeof FormComponent], [typeof NxtAppComponent, typeof QuestionnaireComponent, typeof BookletComponent, typeof NxtDatatable, typeof NxtSearchBox, typeof ListViewFilterComponent, typeof NxtInput, typeof NxtMultiSelect, typeof NxtButtonComponent, typeof IconSelectorComponent, typeof PdfDesignerComponent]>;
|
|
2163
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NxtAppModule>;
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2166
|
+
declare class nxtDropdown implements OnInit {
|
|
2167
|
+
private countryService;
|
|
2168
|
+
private translationService;
|
|
2169
|
+
private changeService;
|
|
2170
|
+
private dataService;
|
|
2171
|
+
private storageService;
|
|
2172
|
+
private cdr;
|
|
2173
|
+
options: any[];
|
|
2174
|
+
placeholder: string;
|
|
2175
|
+
apiMeta: any;
|
|
2176
|
+
selectedValue: string;
|
|
2177
|
+
progressBar: boolean;
|
|
2178
|
+
readOnly: boolean;
|
|
2179
|
+
error: any;
|
|
2180
|
+
fromShengel: boolean;
|
|
2181
|
+
question: any;
|
|
2182
|
+
mode: 'view' | 'edit' | 'print';
|
|
2183
|
+
from: any;
|
|
2184
|
+
padding: any;
|
|
2185
|
+
onlyView: boolean;
|
|
2186
|
+
labelFont: any;
|
|
2187
|
+
label: any;
|
|
2188
|
+
labelColor: any;
|
|
2189
|
+
inputTextColor: any;
|
|
2190
|
+
labelSize: any;
|
|
2191
|
+
inputValueSize: any;
|
|
2192
|
+
labelWeight: any;
|
|
2193
|
+
inputWeight: any;
|
|
2194
|
+
showLabel: boolean;
|
|
2195
|
+
inputBorder: any;
|
|
2196
|
+
inputBgColor: any;
|
|
2197
|
+
inputIconLeftSrc: any;
|
|
2198
|
+
valueChange: EventEmitter<any>;
|
|
2199
|
+
dropdownWrapper: ElementRef;
|
|
2200
|
+
constructor(countryService: CountryService, translationService: TranslationService, changeService: ChangeService, dataService: DataService, storageService: StorageService, cdr: ChangeDetectorRef);
|
|
2201
|
+
subscription: Subscription;
|
|
2202
|
+
showOptions: boolean;
|
|
2203
|
+
selectedOption: any;
|
|
2204
|
+
isLoading: boolean;
|
|
2205
|
+
noDataFound: boolean;
|
|
2206
|
+
searchText: string;
|
|
2207
|
+
filteredOptions: any[];
|
|
2208
|
+
ngOnInit(): void;
|
|
2209
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2210
|
+
getOptions(): void;
|
|
2211
|
+
selectChange(event: any): void;
|
|
2212
|
+
toggle(): void;
|
|
2213
|
+
onDocumentClick(event: MouseEvent): void;
|
|
2214
|
+
clearSelection(): void;
|
|
2215
|
+
inputValue(event: any, ques: any): void;
|
|
2216
|
+
filterOptions(searchValue: any): void;
|
|
2217
|
+
arrayFilter(array?: any[]): any[];
|
|
2218
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<nxtDropdown, never>;
|
|
2219
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<nxtDropdown, "nxt-dropdown", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "progressBar": { "alias": "progressBar"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "error": { "alias": "error"; "required": false; }; "fromShengel": { "alias": "fromShengel"; "required": false; }; "question": { "alias": "question"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "from": { "alias": "from"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "onlyView": { "alias": "onlyView"; "required": false; }; "labelFont": { "alias": "labelFont"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "inputTextColor": { "alias": "inputTextColor"; "required": false; }; "labelSize": { "alias": "labelSize"; "required": false; }; "inputValueSize": { "alias": "inputValueSize"; "required": false; }; "labelWeight": { "alias": "labelWeight"; "required": false; }; "inputWeight": { "alias": "inputWeight"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "inputBorder": { "alias": "inputBorder"; "required": false; }; "inputBgColor": { "alias": "inputBgColor"; "required": false; }; "inputIconLeftSrc": { "alias": "inputIconLeftSrc"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
declare class NxtFileUpload implements OnInit, OnChanges, OnDestroy {
|
|
2223
|
+
private cdRef;
|
|
2224
|
+
private SharedService;
|
|
2225
|
+
private dataService;
|
|
2226
|
+
private sanitizer;
|
|
2227
|
+
private appRef;
|
|
2228
|
+
private injector;
|
|
2229
|
+
private document;
|
|
2230
|
+
private filePopupPortal;
|
|
2231
|
+
selectedFileData: EventEmitter<any>;
|
|
2232
|
+
deletedFileData: EventEmitter<any>;
|
|
2233
|
+
allFiles: any;
|
|
2234
|
+
mode: 'view' | 'edit' | 'print';
|
|
2235
|
+
config: any;
|
|
2236
|
+
from: any;
|
|
2237
|
+
dragAndDrop: boolean;
|
|
2238
|
+
readOnly: boolean;
|
|
2239
|
+
onlyView: boolean;
|
|
2240
|
+
required: boolean;
|
|
2241
|
+
hideSubtext: boolean;
|
|
2242
|
+
label: any;
|
|
2243
|
+
fileConfig: any;
|
|
2244
|
+
allowedFileTypes: string[];
|
|
2245
|
+
maxFileSize: number;
|
|
2246
|
+
maxFiles: number;
|
|
2247
|
+
validationErrors: string[];
|
|
2248
|
+
isDragging: boolean;
|
|
2249
|
+
dragCounter: number;
|
|
2250
|
+
isPopupDragging: boolean;
|
|
2251
|
+
popupDragCounter: number;
|
|
2252
|
+
selectedFileNameArray: string[];
|
|
2253
|
+
copyOfInputAllFiles: any;
|
|
2254
|
+
fileUrl: any;
|
|
2255
|
+
isImage: boolean;
|
|
2256
|
+
fileName: string;
|
|
2257
|
+
currentFile: any;
|
|
2258
|
+
showPopup: boolean;
|
|
2259
|
+
viewEdit: boolean;
|
|
2260
|
+
originalValue: any;
|
|
2261
|
+
isLoading: boolean;
|
|
2262
|
+
fileCache: {};
|
|
2263
|
+
private filePopupOutlet?;
|
|
2264
|
+
private filePopupOutletElement?;
|
|
2265
|
+
private previousBodyOverflow;
|
|
2266
|
+
private previousDocumentOverflow;
|
|
2267
|
+
private previewScrollLocked;
|
|
2268
|
+
private objectUrl;
|
|
2269
|
+
constructor(cdRef: ChangeDetectorRef, SharedService: SharedService, dataService: DataService, sanitizer: DomSanitizer, appRef: ApplicationRef, injector: Injector, document: Document);
|
|
2270
|
+
ngOnInit(): void;
|
|
2271
|
+
ngOnChanges(simpleChanges: SimpleChanges): void;
|
|
2272
|
+
ngOnDestroy(): void;
|
|
2273
|
+
initializeFileConfigs(): void;
|
|
2274
|
+
openPopup(file?: any): void;
|
|
2275
|
+
closePopup(): void;
|
|
2276
|
+
private attachFilePopupPortal;
|
|
2277
|
+
private detachFilePopupPortal;
|
|
2278
|
+
private lockPreviewScroll;
|
|
2279
|
+
private unlockPreviewScroll;
|
|
2280
|
+
uploadMultipleFiles(event: any): void;
|
|
2281
|
+
deleteFile(currentFileIndex: any): void;
|
|
2282
|
+
viewableTypes: string[];
|
|
2283
|
+
viewFile(currentFile: any): void;
|
|
2284
|
+
viewLocalFile(): void;
|
|
2285
|
+
handleFileContent(fileResponse: any): void;
|
|
2286
|
+
setFileUrl(url: any, isObjectUrl?: boolean): void;
|
|
2287
|
+
getDocIcon(docName: any): "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-PDF.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-XLSX.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-DOCX.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-AVI.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-DOC.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-GIF.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-JPG.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-MOV.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-MP3.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-MP4.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-MPEG.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-MPG.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-PNG.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-PPT.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-TXT.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/img-file-XLS.png" | "https://images.rangerfusion.com/uploads/rnxt/Icons/fileTypeIcons/ic_document.svg";
|
|
2288
|
+
close(): void;
|
|
2289
|
+
private revokeObjectUrl;
|
|
2290
|
+
viewEditClick(ques: any): void;
|
|
2291
|
+
saveChanges(): void;
|
|
2292
|
+
discardChanges(): void;
|
|
2293
|
+
downloadFile(file: any): void;
|
|
2294
|
+
isPreviewable(type: string, name: string): boolean;
|
|
2295
|
+
get fileConfigTooltip(): string;
|
|
2296
|
+
onDragEnter(event: DragEvent): void;
|
|
2297
|
+
onDragOver(event: DragEvent): void;
|
|
2298
|
+
onDragLeave(event: DragEvent): void;
|
|
2299
|
+
onDrop(event: DragEvent): void;
|
|
2300
|
+
onPopupDragEnter(event: DragEvent): void;
|
|
2301
|
+
onPopupDragOver(event: DragEvent): void;
|
|
2302
|
+
onPopupDragLeave(event: DragEvent): void;
|
|
2303
|
+
onPopupDrop(event: DragEvent): void;
|
|
2304
|
+
processFiles(fileList: FileList): void;
|
|
2305
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtFileUpload, never>;
|
|
2306
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxtFileUpload, "nxt-file-upload", never, { "allFiles": { "alias": "allFiles"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "from": { "alias": "from"; "required": false; }; "dragAndDrop": { "alias": "dragAndDrop"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "onlyView": { "alias": "onlyView"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideSubtext": { "alias": "hideSubtext"; "required": false; }; "label": { "alias": "label"; "required": false; }; "fileConfig": { "alias": "fileConfig"; "required": false; }; }, { "selectedFileData": "selectedFileData"; "deletedFileData": "deletedFileData"; }, never, never, true, never>;
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
export { BookletComponent, FormComponent, IconSelectorComponent, ListViewFilterComponent, NxtAppComponent, NxtAppModule, NxtAppService, NxtButtonComponent, NxtDatatable, NxtDatePipe, NxtFileUpload, NxtInput, NxtMultiSelect, NxtSearchBox, PdfDesignerComponent, PdfDesignerService, QuestionnaireComponent, SalesforceService, initializeApp, nxtDropdown };
|
|
2310
|
+
export type { AdvancedDateRange, AdvancedFilterConfig, AdvancedFilterValues };
|