@rangertechnologies/ngnxt 2.1.351 → 2.1.352
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 +261 -175
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/file-upload/file-upload.component.d.ts +20 -4
- package/lib/components/search-box/search-box.component.d.ts +1 -1
- package/package.json +1 -1
- package/rangertechnologies-ngnxt-2.1.352.tgz +0 -0
- package/rangertechnologies-ngnxt-2.1.351.tgz +0 -0
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApplicationRef, ChangeDetectorRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { SharedService } from '../../services/shared/shared.service';
|
|
3
3
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
4
|
import { DataService } from '../../services/data/data.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NxtFileUpload implements OnInit, OnChanges {
|
|
6
|
+
export declare class NxtFileUpload implements OnInit, OnChanges, OnDestroy {
|
|
7
7
|
private cdRef;
|
|
8
8
|
private SharedService;
|
|
9
9
|
private dataService;
|
|
10
10
|
private sanitizer;
|
|
11
|
+
private appRef;
|
|
12
|
+
private injector;
|
|
13
|
+
private document;
|
|
14
|
+
private filePopupPortal;
|
|
11
15
|
selectedFileData: EventEmitter<any>;
|
|
12
16
|
deletedFileData: EventEmitter<any>;
|
|
13
17
|
allFiles: any;
|
|
@@ -40,21 +44,33 @@ export declare class NxtFileUpload implements OnInit, OnChanges {
|
|
|
40
44
|
originalValue: any;
|
|
41
45
|
isLoading: boolean;
|
|
42
46
|
fileCache: {};
|
|
43
|
-
|
|
47
|
+
private filePopupOutlet?;
|
|
48
|
+
private filePopupOutletElement?;
|
|
49
|
+
private previousBodyOverflow;
|
|
50
|
+
private previousDocumentOverflow;
|
|
51
|
+
private previewScrollLocked;
|
|
52
|
+
private objectUrl;
|
|
53
|
+
constructor(cdRef: ChangeDetectorRef, SharedService: SharedService, dataService: DataService, sanitizer: DomSanitizer, appRef: ApplicationRef, injector: Injector, document: Document);
|
|
44
54
|
ngOnInit(): void;
|
|
45
55
|
ngOnChanges(simpleChanges: SimpleChanges): void;
|
|
56
|
+
ngOnDestroy(): void;
|
|
46
57
|
initializeFileConfigs(): void;
|
|
47
58
|
openPopup(file?: any): void;
|
|
48
59
|
closePopup(): void;
|
|
60
|
+
private attachFilePopupPortal;
|
|
61
|
+
private detachFilePopupPortal;
|
|
62
|
+
private lockPreviewScroll;
|
|
63
|
+
private unlockPreviewScroll;
|
|
49
64
|
uploadMultipleFiles(event: any): void;
|
|
50
65
|
deleteFile(currentFileIndex: any): void;
|
|
51
66
|
viewableTypes: string[];
|
|
52
67
|
viewFile(currentFile: any): void;
|
|
53
68
|
viewLocalFile(): void;
|
|
54
69
|
handleFileContent(fileResponse: any): void;
|
|
55
|
-
setFileUrl(url: any): void;
|
|
70
|
+
setFileUrl(url: any, isObjectUrl?: boolean): void;
|
|
56
71
|
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
72
|
close(): void;
|
|
73
|
+
private revokeObjectUrl;
|
|
58
74
|
viewEditClick(ques: any): void;
|
|
59
75
|
saveChanges(): void;
|
|
60
76
|
discardChanges(): void;
|
|
@@ -62,7 +62,7 @@ export declare class NxtSearchBox implements OnInit, OnChanges, OnDestroy {
|
|
|
62
62
|
private getCombinedValuesFromColumns;
|
|
63
63
|
getValues(element: any, columns: any): any;
|
|
64
64
|
getKeys(obj: any): string[];
|
|
65
|
-
clickItem(event: any): void;
|
|
65
|
+
clickItem(event: any, from?: any): void;
|
|
66
66
|
inputValue(event: any, ques: any): void;
|
|
67
67
|
highlightText(text: string, searchTerm: string): string;
|
|
68
68
|
private sanitizeHtml;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|