@rangertechnologies/ngnxt 2.1.349 → 2.1.351
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 +2422 -156
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/file-upload/file-upload.component.d.ts +1 -1
- package/lib/components/image-cropper/component/image-cropper.component.d.ts +1 -1
- package/lib/pages/pdfDesigner/pdf-designer/booklet.component.d.ts +49 -0
- package/lib/pages/pdfDesigner/pdf-designer/pdf-designer.component.d.ts +68 -4
- package/lib/pages/pdfDesigner/pdf-properties/pdf-properties.component.d.ts +280 -0
- package/lib/services/pdf-designer/pdf-designer.service.d.ts +130 -0
- package/lib/services/shared/shared.service.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/rangertechnologies-ngnxt-2.1.351.tgz +0 -0
- package/src/lib/style.css +2 -2
- package/rangertechnologies-ngnxt-2.1.349.tgz +0 -0
|
@@ -53,7 +53,7 @@ export declare class NxtFileUpload implements OnInit, OnChanges {
|
|
|
53
53
|
viewLocalFile(): void;
|
|
54
54
|
handleFileContent(fileResponse: any): void;
|
|
55
55
|
setFileUrl(url: any): void;
|
|
56
|
-
getDocIcon(docName: any): "https://
|
|
56
|
+
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";
|
|
57
57
|
close(): void;
|
|
58
58
|
viewEditClick(ques: any): void;
|
|
59
59
|
saveChanges(): void;
|
|
@@ -67,7 +67,7 @@ export declare class ImageCropperComponent implements OnChanges, OnInit, OnDestr
|
|
|
67
67
|
loadImageFailed: EventEmitter<void>;
|
|
68
68
|
transformChange: EventEmitter<ImageTransform>;
|
|
69
69
|
cropperChange: EventEmitter<CropperPosition>;
|
|
70
|
-
get alignImageStyle(): "
|
|
70
|
+
get alignImageStyle(): "left" | "center";
|
|
71
71
|
constructor(sanitizer: DomSanitizer, cd: ChangeDetectorRef, zone: NgZone);
|
|
72
72
|
ngOnInit(): void;
|
|
73
73
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BookletComponent {
|
|
5
|
+
private sanitizer;
|
|
6
|
+
referenceKey: string;
|
|
7
|
+
questions: any[];
|
|
8
|
+
isPreview: boolean;
|
|
9
|
+
currencySymbol: string;
|
|
10
|
+
questionChange: EventEmitter<{
|
|
11
|
+
value: any;
|
|
12
|
+
field: any;
|
|
13
|
+
}>;
|
|
14
|
+
constructor(sanitizer: DomSanitizer);
|
|
15
|
+
onQuestionChange(value: any, field: any): void;
|
|
16
|
+
isVisible(field: any): boolean;
|
|
17
|
+
getElementStyle(field: any): any;
|
|
18
|
+
getLabelStyle(field: any): any;
|
|
19
|
+
getValue(field: any): string;
|
|
20
|
+
getMainColumns(field: any): any[];
|
|
21
|
+
getSummaryColumns(field: any): any[];
|
|
22
|
+
getRows(field: any): any[];
|
|
23
|
+
getHeaderStyle(column: any): any;
|
|
24
|
+
getCellStyle(column: any, rowIndex: number): any;
|
|
25
|
+
getSummaryColspan(field: any): number;
|
|
26
|
+
getCellValue(row: any, column: any): string;
|
|
27
|
+
getSummaryValue(field: any, column: any): string;
|
|
28
|
+
getRichTextLines(field: any): string[];
|
|
29
|
+
isRichTextHtml(field: any): boolean;
|
|
30
|
+
getRichTextHtml(field: any): SafeHtml;
|
|
31
|
+
shouldRenderStyledTextLines(field: any): boolean;
|
|
32
|
+
getStyledTextLines(field: any): string[];
|
|
33
|
+
isTextHeadingLine(field: any, index: number, line: string): boolean;
|
|
34
|
+
getStyledTextLineStyle(field: any, index: number, line: string): any;
|
|
35
|
+
private isQuotationHeadingText;
|
|
36
|
+
private getDefaultTextHeadingColor;
|
|
37
|
+
private getDefaultTextHeadingSize;
|
|
38
|
+
isRichTextBullet(line: string): boolean;
|
|
39
|
+
getRichTextLineText(line: string): string;
|
|
40
|
+
isRichTextHeading(field: any, index: number, line: string): boolean;
|
|
41
|
+
getPdfMakePreview(field: any): string;
|
|
42
|
+
private getColumnWidth;
|
|
43
|
+
private formatCurrency;
|
|
44
|
+
private getPathValue;
|
|
45
|
+
private normalizeMargin;
|
|
46
|
+
private marginToCss;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BookletComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "app-booklet", never, { "referenceKey": { "alias": "referenceKey"; "required": false; }; "questions": { "alias": "questions"; "required": false; }; "isPreview": { "alias": "isPreview"; "required": false; }; "currencySymbol": { "alias": "currencySymbol"; "required": false; }; }, { "questionChange": "questionChange"; }, never, never, true, never>;
|
|
49
|
+
}
|
|
@@ -6,12 +6,14 @@ import { PdfDesignerService } from '../../../services/pdf-designer/pdf-designer.
|
|
|
6
6
|
import { CountryService } from '../../../services/country/country.service';
|
|
7
7
|
import { ChangeService } from '../../../services/change/change.service';
|
|
8
8
|
import { DataService } from '../../../services/data/data.service';
|
|
9
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class PdfDesignerComponent {
|
|
11
12
|
private dataService;
|
|
12
13
|
private changeService;
|
|
13
14
|
private countryService;
|
|
14
15
|
private pdfDesignerService;
|
|
16
|
+
private sanitizer;
|
|
15
17
|
textareas: QueryList<ElementRef>;
|
|
16
18
|
pdfJSON: any;
|
|
17
19
|
bookletId: any;
|
|
@@ -19,9 +21,11 @@ export declare class PdfDesignerComponent {
|
|
|
19
21
|
from: any;
|
|
20
22
|
dataBind: any;
|
|
21
23
|
isPropertyHide: boolean;
|
|
24
|
+
pdfDefinitionOptions: any;
|
|
22
25
|
pdfSaveHandlerEmit: EventEmitter<any>;
|
|
23
26
|
templateMode: EventEmitter<boolean>;
|
|
24
27
|
pdfPreviewEmit: EventEmitter<any>;
|
|
28
|
+
pdfOutputEmit: EventEmitter<any>;
|
|
25
29
|
field: any;
|
|
26
30
|
pdfElements: any[];
|
|
27
31
|
elements: any[];
|
|
@@ -66,9 +70,22 @@ export declare class PdfDesignerComponent {
|
|
|
66
70
|
private drawing;
|
|
67
71
|
private ctxMap;
|
|
68
72
|
private ratioMap;
|
|
69
|
-
constructor(dataService: DataService, changeService: ChangeService, countryService: CountryService, pdfDesignerService: PdfDesignerService);
|
|
73
|
+
constructor(dataService: DataService, changeService: ChangeService, countryService: CountryService, pdfDesignerService: PdfDesignerService, sanitizer: DomSanitizer);
|
|
70
74
|
ngAfterViewInit(): void;
|
|
71
|
-
handleQues(ques: any):
|
|
75
|
+
handleQues(ques: any, dataBind?: any): void;
|
|
76
|
+
private getBoundReferenceValue;
|
|
77
|
+
private getBoundReferencePartsValue;
|
|
78
|
+
private getBoundTemplateValue;
|
|
79
|
+
private formatBoundDateValue;
|
|
80
|
+
private hasBindableValue;
|
|
81
|
+
private getBoundTableRows;
|
|
82
|
+
private applyTableDataFilter;
|
|
83
|
+
private matchesTableDataFilter;
|
|
84
|
+
private normalizeFilterValue;
|
|
85
|
+
private buildTableSummaryValues;
|
|
86
|
+
private computeTableSummaryValue;
|
|
87
|
+
private resolveSummaryOperand;
|
|
88
|
+
private toNumericValue;
|
|
72
89
|
getContrastColor(bgColor?: string): string;
|
|
73
90
|
resizeAllTextareas(): void;
|
|
74
91
|
ngOnInit(): void;
|
|
@@ -84,6 +101,7 @@ export declare class PdfDesignerComponent {
|
|
|
84
101
|
selectHeading(event: any): void;
|
|
85
102
|
generateUiId(): string;
|
|
86
103
|
addElement(type: string): void;
|
|
104
|
+
private applyAdvancedElementDefaults;
|
|
87
105
|
onTextAreaInput(event: Event, field: any): void;
|
|
88
106
|
onQuestionChange(value: any, field: any): void;
|
|
89
107
|
pdfPreview(pdf: any): void;
|
|
@@ -96,7 +114,7 @@ export declare class PdfDesignerComponent {
|
|
|
96
114
|
onClose(): void;
|
|
97
115
|
addOnTable(): void;
|
|
98
116
|
addTableData(fieldId: any, fieldName: any): void;
|
|
99
|
-
columnSelected(
|
|
117
|
+
columnSelected(tableIndexOrEvent: number | any, event?: any, mouseEvent?: MouseEvent): void;
|
|
100
118
|
removeColumn(event: any): void;
|
|
101
119
|
fileChangeEvent(field: any, event: any): Promise<void>;
|
|
102
120
|
private readFileAsDataURL;
|
|
@@ -125,6 +143,7 @@ export declare class PdfDesignerComponent {
|
|
|
125
143
|
setAlignment(alignment: 'left' | 'center' | 'right'): void;
|
|
126
144
|
updateContent(tempElement?: any): void;
|
|
127
145
|
pdfSaveHandler(event: any): void;
|
|
146
|
+
exportPdf(action?: 'preview' | 'download' | 'definition' | string, dataBind?: any): any;
|
|
128
147
|
selectColor(color: string): void;
|
|
129
148
|
currencyChange(event: any): void;
|
|
130
149
|
setupCanvas(element: HTMLCanvasElement): void;
|
|
@@ -136,6 +155,51 @@ export declare class PdfDesignerComponent {
|
|
|
136
155
|
saveCanvasToField(canvas: HTMLCanvasElement, field: any): void;
|
|
137
156
|
clearCanvas(element: HTMLCanvasElement, field: any): void;
|
|
138
157
|
clearSignature(field: any): void;
|
|
158
|
+
getPdfSettings(): any;
|
|
159
|
+
getPageBackgroundColor(): string;
|
|
160
|
+
getPageContentStyle(): any;
|
|
161
|
+
getWatermarkText(): string;
|
|
162
|
+
getWatermarkStyle(): any;
|
|
163
|
+
shouldShowFooterOnCanvas(): boolean;
|
|
164
|
+
shouldShowHeaderOnCanvas(): boolean;
|
|
165
|
+
getHeaderStyle(): any;
|
|
166
|
+
getFooterStyle(): any;
|
|
167
|
+
getRunningBandColumns(type: 'header' | 'footer'): string[];
|
|
168
|
+
hasRunningBandBorder(type: 'header' | 'footer'): boolean;
|
|
169
|
+
getRunningBandBorderStyle(type: 'header' | 'footer'): any;
|
|
170
|
+
getElementTextStyle(field: any): any;
|
|
171
|
+
getElementLabelStyle(field: any): any;
|
|
172
|
+
displayFieldValue(field: any): string;
|
|
173
|
+
shouldRenderStyledTextLines(field: any): boolean;
|
|
174
|
+
getStyledTextLines(field: any): string[];
|
|
175
|
+
isTextHeadingLine(field: any, index: number, line: string): boolean;
|
|
176
|
+
getStyledTextLineStyle(field: any, index: number, line: string): any;
|
|
177
|
+
private isQuotationHeadingText;
|
|
178
|
+
private getDefaultTextHeadingColor;
|
|
179
|
+
private getDefaultTextHeadingSize;
|
|
180
|
+
getRichTextLines(field: any): string[];
|
|
181
|
+
isRichTextHtml(field: any): boolean;
|
|
182
|
+
getRichTextHtml(field: any): SafeHtml;
|
|
183
|
+
isRichTextBullet(line: string): boolean;
|
|
184
|
+
getRichTextLineText(line: string): string;
|
|
185
|
+
isRichTextHeading(field: any, index: number, line: string): boolean;
|
|
186
|
+
getPdfMakePreview(field: any): string;
|
|
187
|
+
getMainTableColumns(field: any): any[];
|
|
188
|
+
getSummaryTableColumns(field: any): any[];
|
|
189
|
+
getTableRows(field: any): any[];
|
|
190
|
+
getTableHeaderStyle(column: any): any;
|
|
191
|
+
getTableCellStyle(column: any, rowIndex: number): any;
|
|
192
|
+
getTableSummaryLabelColspan(field: any): number;
|
|
193
|
+
getColumnCssWidth(column: any): string;
|
|
194
|
+
getTableCellValue(row: any, column: any): string;
|
|
195
|
+
getTableSummaryValue(field: any, column: any): string;
|
|
196
|
+
isSelectedTableColumn(column: any): boolean;
|
|
197
|
+
formatCurrencyValue(value: any, field?: any): string;
|
|
198
|
+
getCurrencySymbol(): string;
|
|
199
|
+
private normalizeCurrencyValue;
|
|
200
|
+
private resolveCurrencyOption;
|
|
201
|
+
private normalizeMargin;
|
|
202
|
+
private marginToCss;
|
|
139
203
|
static ɵfac: i0.ɵɵFactoryDeclaration<PdfDesignerComponent, never>;
|
|
140
|
-
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; }; }, { "pdfSaveHandlerEmit": "pdfSaveHandlerEmit"; "templateMode": "templateMode"; "pdfPreviewEmit": "pdfPreviewEmit"; }, never, never, true, never>;
|
|
204
|
+
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>;
|
|
141
205
|
}
|
|
@@ -4,6 +4,7 @@ import { CropperPosition, Dimensions, ImageTransform } from '../../../components
|
|
|
4
4
|
import { PdfDesignerService } from '../../../services/pdf-designer/pdf-designer.service';
|
|
5
5
|
import { TemplateService } from '../../../services/template/template.service';
|
|
6
6
|
import { DataService } from '../../../services/data/data.service';
|
|
7
|
+
import { QuillModules } from 'ngx-quill';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class PdfPropertiesComponent {
|
|
9
10
|
private dataService;
|
|
@@ -47,6 +48,7 @@ export declare class PdfPropertiesComponent {
|
|
|
47
48
|
isLinkDropdownOpen: boolean;
|
|
48
49
|
fieldAsString: string;
|
|
49
50
|
filteredColumns: any[];
|
|
51
|
+
richTextModules: QuillModules;
|
|
50
52
|
templateSelected: boolean;
|
|
51
53
|
dropdown: ElementRef;
|
|
52
54
|
draggedId: string | null;
|
|
@@ -369,6 +371,265 @@ export declare class PdfPropertiesComponent {
|
|
|
369
371
|
options?: undefined;
|
|
370
372
|
})[];
|
|
371
373
|
};
|
|
374
|
+
Section: {
|
|
375
|
+
elementProps: ({
|
|
376
|
+
label: string;
|
|
377
|
+
labelPath: string;
|
|
378
|
+
type: string;
|
|
379
|
+
key: string;
|
|
380
|
+
placeholder?: undefined;
|
|
381
|
+
} | {
|
|
382
|
+
label: string;
|
|
383
|
+
placeholder: string;
|
|
384
|
+
type: string;
|
|
385
|
+
key: string;
|
|
386
|
+
labelPath?: undefined;
|
|
387
|
+
})[];
|
|
388
|
+
fieldProps: ({
|
|
389
|
+
label: string;
|
|
390
|
+
type: string;
|
|
391
|
+
key: string;
|
|
392
|
+
labelPath: string;
|
|
393
|
+
subQuestion: {
|
|
394
|
+
label: string;
|
|
395
|
+
placeholder: string;
|
|
396
|
+
type: string;
|
|
397
|
+
key: string;
|
|
398
|
+
labelPath: string;
|
|
399
|
+
}[];
|
|
400
|
+
} | {
|
|
401
|
+
label: string;
|
|
402
|
+
labelPath: string;
|
|
403
|
+
placeholder: string;
|
|
404
|
+
type: string;
|
|
405
|
+
key: string;
|
|
406
|
+
})[];
|
|
407
|
+
appearance: ({
|
|
408
|
+
label: string;
|
|
409
|
+
labelPath: string;
|
|
410
|
+
type: string;
|
|
411
|
+
key: string;
|
|
412
|
+
value: string;
|
|
413
|
+
options?: undefined;
|
|
414
|
+
placeholder?: undefined;
|
|
415
|
+
} | {
|
|
416
|
+
label: string;
|
|
417
|
+
type: string;
|
|
418
|
+
key: string;
|
|
419
|
+
value: string;
|
|
420
|
+
labelPath?: undefined;
|
|
421
|
+
options?: undefined;
|
|
422
|
+
placeholder?: undefined;
|
|
423
|
+
} | {
|
|
424
|
+
label: string;
|
|
425
|
+
labelPath: string;
|
|
426
|
+
type: string;
|
|
427
|
+
key: string;
|
|
428
|
+
value: number;
|
|
429
|
+
options?: undefined;
|
|
430
|
+
placeholder?: undefined;
|
|
431
|
+
} | {
|
|
432
|
+
label: string;
|
|
433
|
+
labelPath: string;
|
|
434
|
+
type: string;
|
|
435
|
+
key: string;
|
|
436
|
+
value: string;
|
|
437
|
+
options: {
|
|
438
|
+
value: string;
|
|
439
|
+
label: string;
|
|
440
|
+
labelPath: string;
|
|
441
|
+
}[];
|
|
442
|
+
placeholder?: undefined;
|
|
443
|
+
} | {
|
|
444
|
+
label: string;
|
|
445
|
+
labelPath: string;
|
|
446
|
+
type: string;
|
|
447
|
+
key: string;
|
|
448
|
+
placeholder: string;
|
|
449
|
+
value: number[];
|
|
450
|
+
options?: undefined;
|
|
451
|
+
})[];
|
|
452
|
+
};
|
|
453
|
+
RichText: {
|
|
454
|
+
elementProps: {
|
|
455
|
+
label: string;
|
|
456
|
+
labelPath: string;
|
|
457
|
+
type: string;
|
|
458
|
+
key: string;
|
|
459
|
+
}[];
|
|
460
|
+
fieldProps: ({
|
|
461
|
+
label: string;
|
|
462
|
+
type: string;
|
|
463
|
+
key: string;
|
|
464
|
+
labelPath: string;
|
|
465
|
+
subQuestion: {
|
|
466
|
+
label: string;
|
|
467
|
+
placeholder: string;
|
|
468
|
+
type: string;
|
|
469
|
+
key: string;
|
|
470
|
+
labelPath: string;
|
|
471
|
+
}[];
|
|
472
|
+
} | {
|
|
473
|
+
label: string;
|
|
474
|
+
labelPath: string;
|
|
475
|
+
placeholder: string;
|
|
476
|
+
type: string;
|
|
477
|
+
key: string;
|
|
478
|
+
})[];
|
|
479
|
+
appearance: ({
|
|
480
|
+
label: string;
|
|
481
|
+
labelPath: string;
|
|
482
|
+
type: string;
|
|
483
|
+
key: string;
|
|
484
|
+
value: string;
|
|
485
|
+
placeholder?: undefined;
|
|
486
|
+
options?: undefined;
|
|
487
|
+
} | {
|
|
488
|
+
label: string;
|
|
489
|
+
type: string;
|
|
490
|
+
key: string;
|
|
491
|
+
value: string;
|
|
492
|
+
labelPath?: undefined;
|
|
493
|
+
placeholder?: undefined;
|
|
494
|
+
options?: undefined;
|
|
495
|
+
} | {
|
|
496
|
+
label: string;
|
|
497
|
+
labelPath: string;
|
|
498
|
+
type: string;
|
|
499
|
+
key: string;
|
|
500
|
+
value: number;
|
|
501
|
+
placeholder?: undefined;
|
|
502
|
+
options?: undefined;
|
|
503
|
+
} | {
|
|
504
|
+
label: string;
|
|
505
|
+
type: string;
|
|
506
|
+
key: string;
|
|
507
|
+
value: number;
|
|
508
|
+
labelPath?: undefined;
|
|
509
|
+
placeholder?: undefined;
|
|
510
|
+
options?: undefined;
|
|
511
|
+
} | {
|
|
512
|
+
label: string;
|
|
513
|
+
labelPath: string;
|
|
514
|
+
type: string;
|
|
515
|
+
key: string;
|
|
516
|
+
placeholder: string;
|
|
517
|
+
value: number[];
|
|
518
|
+
options?: undefined;
|
|
519
|
+
} | {
|
|
520
|
+
label: string;
|
|
521
|
+
labelPath: string;
|
|
522
|
+
type: string;
|
|
523
|
+
key: string;
|
|
524
|
+
value: string;
|
|
525
|
+
options: {
|
|
526
|
+
label: string;
|
|
527
|
+
labelPath: string;
|
|
528
|
+
value: string;
|
|
529
|
+
}[];
|
|
530
|
+
placeholder?: undefined;
|
|
531
|
+
})[];
|
|
532
|
+
};
|
|
533
|
+
Note: {
|
|
534
|
+
elementProps: ({
|
|
535
|
+
label: string;
|
|
536
|
+
labelPath: string;
|
|
537
|
+
type: string;
|
|
538
|
+
key: string;
|
|
539
|
+
placeholder?: undefined;
|
|
540
|
+
} | {
|
|
541
|
+
label: string;
|
|
542
|
+
placeholder: string;
|
|
543
|
+
type: string;
|
|
544
|
+
key: string;
|
|
545
|
+
labelPath?: undefined;
|
|
546
|
+
})[];
|
|
547
|
+
fieldProps: ({
|
|
548
|
+
label: string;
|
|
549
|
+
type: string;
|
|
550
|
+
key: string;
|
|
551
|
+
labelPath: string;
|
|
552
|
+
subQuestion: {
|
|
553
|
+
label: string;
|
|
554
|
+
placeholder: string;
|
|
555
|
+
type: string;
|
|
556
|
+
key: string;
|
|
557
|
+
labelPath: string;
|
|
558
|
+
}[];
|
|
559
|
+
} | {
|
|
560
|
+
label: string;
|
|
561
|
+
labelPath: string;
|
|
562
|
+
placeholder: string;
|
|
563
|
+
type: string;
|
|
564
|
+
key: string;
|
|
565
|
+
})[];
|
|
566
|
+
appearance: ({
|
|
567
|
+
label: string;
|
|
568
|
+
labelPath: string;
|
|
569
|
+
type: string;
|
|
570
|
+
key: string;
|
|
571
|
+
value: string;
|
|
572
|
+
placeholder?: undefined;
|
|
573
|
+
} | {
|
|
574
|
+
label: string;
|
|
575
|
+
type: string;
|
|
576
|
+
key: string;
|
|
577
|
+
value: string;
|
|
578
|
+
labelPath?: undefined;
|
|
579
|
+
placeholder?: undefined;
|
|
580
|
+
} | {
|
|
581
|
+
label: string;
|
|
582
|
+
labelPath: string;
|
|
583
|
+
type: string;
|
|
584
|
+
key: string;
|
|
585
|
+
value: number;
|
|
586
|
+
placeholder?: undefined;
|
|
587
|
+
} | {
|
|
588
|
+
label: string;
|
|
589
|
+
labelPath: string;
|
|
590
|
+
type: string;
|
|
591
|
+
key: string;
|
|
592
|
+
placeholder: string;
|
|
593
|
+
value: number[];
|
|
594
|
+
})[];
|
|
595
|
+
};
|
|
596
|
+
PageBreak: {
|
|
597
|
+
elementProps: ({
|
|
598
|
+
label: string;
|
|
599
|
+
labelPath: string;
|
|
600
|
+
type: string;
|
|
601
|
+
key: string;
|
|
602
|
+
value?: undefined;
|
|
603
|
+
options?: undefined;
|
|
604
|
+
} | {
|
|
605
|
+
label: string;
|
|
606
|
+
type: string;
|
|
607
|
+
key: string;
|
|
608
|
+
value: string;
|
|
609
|
+
options: {
|
|
610
|
+
label: string;
|
|
611
|
+
value: string;
|
|
612
|
+
}[];
|
|
613
|
+
labelPath?: undefined;
|
|
614
|
+
})[];
|
|
615
|
+
fieldProps: any[];
|
|
616
|
+
appearance: any[];
|
|
617
|
+
};
|
|
618
|
+
PdfMake: {
|
|
619
|
+
elementProps: {
|
|
620
|
+
label: string;
|
|
621
|
+
labelPath: string;
|
|
622
|
+
type: string;
|
|
623
|
+
key: string;
|
|
624
|
+
}[];
|
|
625
|
+
fieldProps: {
|
|
626
|
+
label: string;
|
|
627
|
+
placeholder: string;
|
|
628
|
+
type: string;
|
|
629
|
+
key: string;
|
|
630
|
+
}[];
|
|
631
|
+
appearance: any[];
|
|
632
|
+
};
|
|
372
633
|
Pdf: {
|
|
373
634
|
elementProps: ({
|
|
374
635
|
label: string;
|
|
@@ -1114,6 +1375,25 @@ export declare class PdfPropertiesComponent {
|
|
|
1114
1375
|
handleTemplateSelection(event: any): void;
|
|
1115
1376
|
ngOnInit(): void;
|
|
1116
1377
|
updateTitle(event: any): void;
|
|
1378
|
+
getPdfSettings(): any;
|
|
1379
|
+
getPdfSetting(path: string, fallback?: any): any;
|
|
1380
|
+
setPdfSetting(path: string, value: any): void;
|
|
1381
|
+
onPdfSettingInput(path: string, event: Event): void;
|
|
1382
|
+
getStyleBuilderTitle(): string;
|
|
1383
|
+
getActiveStyleValue(path: string, fallback?: any): any;
|
|
1384
|
+
onActiveStyleInput(path: string, event: Event): void;
|
|
1385
|
+
setActiveStyleValue(path: string, value: any): void;
|
|
1386
|
+
getActiveMargin(index: number): number;
|
|
1387
|
+
onActiveMarginInput(index: number, event: Event): void;
|
|
1388
|
+
getElementArrayValue(path: string, index: number, fallback?: number): number;
|
|
1389
|
+
onElementArrayInput(path: string, index: number, event: Event): void;
|
|
1390
|
+
getActiveColumnWidthMode(): string;
|
|
1391
|
+
onActiveColumnWidthModeChange(event: Event): void;
|
|
1392
|
+
private getActiveStyleTarget;
|
|
1393
|
+
private getSelectedTableColumn;
|
|
1394
|
+
private normalizeStyleInputValue;
|
|
1395
|
+
private normalizeStyleMargin;
|
|
1396
|
+
private normalizePdfSettingValue;
|
|
1117
1397
|
updatePdfpData(): void;
|
|
1118
1398
|
updateField(value: string): void;
|
|
1119
1399
|
onCheckboxChange(targetArrayPath: any, targetArrayKey: any, key: any, apiName: string, isChecked: boolean): void;
|
|
@@ -28,6 +28,51 @@ export declare class PdfDesignerService {
|
|
|
28
28
|
selectTableColumn: any;
|
|
29
29
|
currencyOption: any;
|
|
30
30
|
constructor(countryService: CountryService, http: HttpClient, dataService: DataService);
|
|
31
|
+
getDefaultPdfSettings(): {
|
|
32
|
+
pageSize: string;
|
|
33
|
+
pageOrientation: string;
|
|
34
|
+
pageMargins: number[];
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
header: {
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
showOn: string;
|
|
39
|
+
text: string;
|
|
40
|
+
leftText: string;
|
|
41
|
+
centerText: string;
|
|
42
|
+
rightText: string;
|
|
43
|
+
alignment: string;
|
|
44
|
+
fontSize: number;
|
|
45
|
+
color: string;
|
|
46
|
+
margin: number[];
|
|
47
|
+
bottomBorder: boolean;
|
|
48
|
+
borderColor: string;
|
|
49
|
+
borderWidth: number;
|
|
50
|
+
};
|
|
51
|
+
watermark: {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
text: string;
|
|
54
|
+
color: string;
|
|
55
|
+
opacity: number;
|
|
56
|
+
angle: number;
|
|
57
|
+
fontSize: number;
|
|
58
|
+
};
|
|
59
|
+
footer: {
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
showOn: string;
|
|
62
|
+
text: string;
|
|
63
|
+
leftText: string;
|
|
64
|
+
centerText: string;
|
|
65
|
+
rightText: string;
|
|
66
|
+
alignment: string;
|
|
67
|
+
fontSize: number;
|
|
68
|
+
color: string;
|
|
69
|
+
margin: number[];
|
|
70
|
+
topBorder: boolean;
|
|
71
|
+
borderColor: string;
|
|
72
|
+
borderWidth: number;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
private ensurePdfSettings;
|
|
31
76
|
intializeBook(pdf: any): void;
|
|
32
77
|
getRefQbData(refqbid: string): Observable<any>;
|
|
33
78
|
addElementWithId(): string;
|
|
@@ -48,12 +93,97 @@ export declare class PdfDesignerService {
|
|
|
48
93
|
sortElementsByOrder(): void;
|
|
49
94
|
getBook(): any;
|
|
50
95
|
downloadElement(): any;
|
|
96
|
+
buildPdfOutput(pdfJSON: any, dataBind?: any, pdfDefinitionOptions?: any, action?: 'preview' | 'download' | 'definition' | string, elements?: any[]): {
|
|
97
|
+
action: string;
|
|
98
|
+
title: any;
|
|
99
|
+
pdf: any;
|
|
100
|
+
book: any;
|
|
101
|
+
boundBook: any;
|
|
102
|
+
pdfJson: any;
|
|
103
|
+
pdfDefinition: any;
|
|
104
|
+
dataBind: any;
|
|
105
|
+
};
|
|
106
|
+
buildPdfOutputFromConfig(config: {
|
|
107
|
+
pdfJSON: any;
|
|
108
|
+
dataBind?: any;
|
|
109
|
+
pdfDefinitionOptions?: any;
|
|
110
|
+
action?: 'preview' | 'download' | 'definition' | string;
|
|
111
|
+
elements?: any[];
|
|
112
|
+
}): {
|
|
113
|
+
action: string;
|
|
114
|
+
title: any;
|
|
115
|
+
pdf: any;
|
|
116
|
+
book: any;
|
|
117
|
+
boundBook: any;
|
|
118
|
+
pdfJson: any;
|
|
119
|
+
pdfDefinition: any;
|
|
120
|
+
dataBind: any;
|
|
121
|
+
};
|
|
122
|
+
buildBoundPdfBook(pdfJSON?: any, dataBind?: any, elements?: any[]): any;
|
|
123
|
+
bindPdfElements(elements?: any[], dataBind?: any): any[];
|
|
124
|
+
createPdfDefinition(boundBook: any, pdfDefinitionOptions?: any): any;
|
|
125
|
+
private bindPdfQuestion;
|
|
126
|
+
private normalizeBindableMetadata;
|
|
127
|
+
private getBoundReferenceValue;
|
|
128
|
+
private getBoundReferencePartsValue;
|
|
129
|
+
private getBoundTemplateValue;
|
|
130
|
+
private formatBoundDateValue;
|
|
131
|
+
private hasBindableValue;
|
|
132
|
+
private getBoundTableRows;
|
|
133
|
+
private applyTableDataFilter;
|
|
134
|
+
private matchesTableDataFilter;
|
|
135
|
+
private normalizeFilterValue;
|
|
136
|
+
private buildTableSummaryValues;
|
|
137
|
+
private computeTableSummaryValue;
|
|
138
|
+
private resolveSummaryOperand;
|
|
139
|
+
private toNumericValue;
|
|
140
|
+
private getPdfUniqueId;
|
|
141
|
+
private clonePlain;
|
|
142
|
+
buildPdfBook(pdf?: any, elements?: any[]): any;
|
|
143
|
+
private applyPdfPageSettings;
|
|
144
|
+
private hasRunningBandContent;
|
|
145
|
+
private buildRunningBand;
|
|
146
|
+
private replacePageTokens;
|
|
51
147
|
convertToPdfLayout(input: any): any;
|
|
148
|
+
private buildTableLayout;
|
|
149
|
+
private isEmptyTableDataRow;
|
|
150
|
+
private buildRichTextStack;
|
|
151
|
+
private buildPlainRichTextStack;
|
|
152
|
+
private buildRichTextHtmlStack;
|
|
153
|
+
private appendRichHtmlBlock;
|
|
154
|
+
private appendRichHtmlList;
|
|
155
|
+
private collectRichInlineRuns;
|
|
156
|
+
private getRichHtmlInlineStyle;
|
|
157
|
+
private getRichHtmlBlockStyle;
|
|
158
|
+
private getRichHtmlBlockMargin;
|
|
159
|
+
private isRichHtml;
|
|
160
|
+
private isRichHtmlContainer;
|
|
161
|
+
private isRichHtmlBlockTag;
|
|
162
|
+
private shouldKeepEmptyRichBlock;
|
|
163
|
+
private hasRichInlineText;
|
|
164
|
+
private htmlToPlainText;
|
|
165
|
+
private parseCssDeclarations;
|
|
166
|
+
private normalizeCssColor;
|
|
167
|
+
private parseCssSize;
|
|
168
|
+
private buildTextValueNode;
|
|
169
|
+
private buildStyledTextStack;
|
|
170
|
+
private isQuotationHeadingText;
|
|
171
|
+
private getDefaultTextHeadingColor;
|
|
172
|
+
private getDefaultTextHeadingSize;
|
|
173
|
+
private parsePdfMakeJson;
|
|
174
|
+
private formatCurrencyText;
|
|
175
|
+
private normalizeCurrencyValue;
|
|
176
|
+
private resolveCurrencySymbol;
|
|
177
|
+
private resolveCurrencyOption;
|
|
178
|
+
private removeUnavailableFonts;
|
|
179
|
+
private replaceUnsupportedCurrencySymbols;
|
|
52
180
|
updateElementsOrder(updatedElements: any[]): void;
|
|
53
181
|
removeElementComponent(id: any): void;
|
|
54
182
|
elementUpdate(element: any, from?: any): void;
|
|
55
183
|
dateTransform(value: any, type: 'date' | 'datetime' | 'month' | 'time', languageCode: string, dateFormatType: 'hijri' | 'gregorianAr' | 'gregorian'): string;
|
|
56
184
|
private toArabicNumbers;
|
|
185
|
+
private normalizeMargin;
|
|
186
|
+
private normalizePdfStyle;
|
|
57
187
|
static ɵfac: i0.ɵɵFactoryDeclaration<PdfDesignerService, never>;
|
|
58
188
|
static ɵprov: i0.ɵɵInjectableDeclaration<PdfDesignerService>;
|
|
59
189
|
}
|
|
@@ -7,7 +7,7 @@ export declare class SharedService {
|
|
|
7
7
|
isLoading$: import("rxjs").Observable<boolean>;
|
|
8
8
|
processViewFile(fileName: string, api: string): void;
|
|
9
9
|
viewFile(fileName: string, api: string): import("rxjs").Observable<Object>;
|
|
10
|
-
docIcon(ext: any): "https://
|
|
10
|
+
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";
|
|
11
11
|
showLoader(): void;
|
|
12
12
|
hideLoader(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedService, [{ optional: true; }]>;
|