@rangertechnologies/ngnxt 2.1.95 → 2.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/button/nxt-button.component.mjs +130 -0
- package/esm2022/lib/components/custom-table/custom-table.component.mjs +2 -2
- package/esm2022/lib/components/datatable/datatable.component.mjs +805 -0
- package/esm2022/lib/components/pagination/pagination.component.mjs +100 -0
- package/esm2022/lib/components/search-box/search-box.component.mjs +3 -3
- package/esm2022/lib/pages/questionbook/questionbook.component.mjs +3 -3
- package/esm2022/lib/pipe/date/date.pipe.mjs +28 -0
- package/esm2022/lib/pipe/editColumnCheck/edit-column-check.pipe.mjs +28 -0
- package/esm2022/lib/pipe/editColumnDropdown/edit-column-dropdown.pipe.mjs +20 -0
- package/esm2022/lib/pipe/editColumnType/edit-column-type.pipe.mjs +20 -0
- package/esm2022/lib/pipe/search-filter/search-filter.pipe.mjs +39 -0
- package/esm2022/lib/pipe/time/time.pipe.mjs +26 -0
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/rangertechnologies-ngnxt.mjs +1165 -9
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/button/nxt-button.component.d.ts +38 -0
- package/lib/components/datatable/datatable.component.d.ts +130 -0
- package/lib/components/pagination/pagination.component.d.ts +36 -0
- package/lib/pipe/date/date.pipe.d.ts +7 -0
- package/lib/pipe/editColumnCheck/edit-column-check.pipe.d.ts +7 -0
- package/lib/pipe/editColumnDropdown/edit-column-dropdown.pipe.d.ts +7 -0
- package/lib/pipe/editColumnType/edit-column-type.pipe.d.ts +7 -0
- package/lib/pipe/search-filter/search-filter.pipe.d.ts +8 -0
- package/lib/pipe/time/time.pipe.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/rangertechnologies-ngnxt-2.1.97.tgz +0 -0
- package/rangertechnologies-ngnxt-2.1.95.tgz +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NxtButtonComponent implements OnInit {
|
|
4
|
+
private elementRef;
|
|
5
|
+
buttonValue: string;
|
|
6
|
+
buttonType: string;
|
|
7
|
+
type: string;
|
|
8
|
+
buttonDisable: boolean;
|
|
9
|
+
fcBtnBgColor: string;
|
|
10
|
+
fcBtnBorder: string;
|
|
11
|
+
fcBtnTextColor: string;
|
|
12
|
+
fcBtnHeight: string;
|
|
13
|
+
fcBtnWidth: string;
|
|
14
|
+
fcBtnIconLeftSrc: string;
|
|
15
|
+
fcBtnIconRightSrc: string;
|
|
16
|
+
fcBtnHoverBgColor: string;
|
|
17
|
+
fcBtnHoverTextColor: string;
|
|
18
|
+
fcBtnId: string;
|
|
19
|
+
dataDismiss: string;
|
|
20
|
+
fcButtonBorder: string;
|
|
21
|
+
modalToTrigger: string;
|
|
22
|
+
isImageSvg: boolean;
|
|
23
|
+
tabIndex: any;
|
|
24
|
+
buttonConfig: any;
|
|
25
|
+
buttonClickEmit: EventEmitter<any>;
|
|
26
|
+
iconSrc: any;
|
|
27
|
+
isDropdownOpen: boolean;
|
|
28
|
+
constructor(elementRef: ElementRef);
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
getButtonStyles(config: any): {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
buttonClicked($event: any): void;
|
|
34
|
+
toggleDropdown(): void;
|
|
35
|
+
onClickOutside(event: MouseEvent): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtButtonComponent, never>;
|
|
37
|
+
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; }; "fcBtnBgColor": { "alias": "fcBtnBgColor"; "required": false; }; "fcBtnBorder": { "alias": "fcBtnBorder"; "required": false; }; "fcBtnTextColor": { "alias": "fcBtnTextColor"; "required": false; }; "fcBtnHeight": { "alias": "fcBtnHeight"; "required": false; }; "fcBtnWidth": { "alias": "fcBtnWidth"; "required": false; }; "fcBtnIconLeftSrc": { "alias": "fcBtnIconLeftSrc"; "required": false; }; "fcBtnIconRightSrc": { "alias": "fcBtnIconRightSrc"; "required": false; }; "fcBtnHoverBgColor": { "alias": "fcBtnHoverBgColor"; "required": false; }; "fcBtnHoverTextColor": { "alias": "fcBtnHoverTextColor"; "required": false; }; "fcBtnId": { "alias": "fcBtnId"; "required": false; }; "dataDismiss": { "alias": "dataDismiss"; "required": false; }; "fcButtonBorder": { "alias": "fcButtonBorder"; "required": false; }; "modalToTrigger": { "alias": "modalToTrigger"; "required": false; }; "isImageSvg": { "alias": "isImageSvg"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "buttonConfig": { "alias": "buttonConfig"; "required": false; }; }, { "buttonClickEmit": "buttonClickEmit"; }, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { MatSort } from '@angular/material/sort';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NxtDatatable {
|
|
5
|
+
private renderer;
|
|
6
|
+
data: any[];
|
|
7
|
+
columns: Array<any>;
|
|
8
|
+
withCheckBox: boolean;
|
|
9
|
+
searchBar: boolean;
|
|
10
|
+
tableSaveButton: boolean;
|
|
11
|
+
stickyColumn: boolean;
|
|
12
|
+
tableWidth: string;
|
|
13
|
+
actionColumHeader: string;
|
|
14
|
+
actionButton: boolean;
|
|
15
|
+
title: any;
|
|
16
|
+
isButtons: boolean;
|
|
17
|
+
buttonArray: any;
|
|
18
|
+
tableId: any;
|
|
19
|
+
isEditRow: boolean;
|
|
20
|
+
isDeleteRow: boolean;
|
|
21
|
+
addInlineRecord: boolean;
|
|
22
|
+
searchConfigs: any;
|
|
23
|
+
direction: 'rtl' | 'ltr';
|
|
24
|
+
pagination: any;
|
|
25
|
+
actionButtonArray: any;
|
|
26
|
+
multipleFilter: any;
|
|
27
|
+
tableRowClick: EventEmitter<any>;
|
|
28
|
+
onEditData: EventEmitter<any>;
|
|
29
|
+
saveButtonData: EventEmitter<any>;
|
|
30
|
+
onDeleteData: EventEmitter<any>;
|
|
31
|
+
buttonEmit: EventEmitter<any>;
|
|
32
|
+
hyperLinkEmit: EventEmitter<any>;
|
|
33
|
+
sideNavEmit: EventEmitter<{
|
|
34
|
+
data: any;
|
|
35
|
+
col: any;
|
|
36
|
+
config: any;
|
|
37
|
+
}>;
|
|
38
|
+
actionButtonEmit: EventEmitter<any>;
|
|
39
|
+
NxtTableEmit: EventEmitter<any>;
|
|
40
|
+
sort: MatSort;
|
|
41
|
+
tableContainer: ElementRef<HTMLElement>;
|
|
42
|
+
selection: any;
|
|
43
|
+
stickyCondition: number;
|
|
44
|
+
searchFilter: boolean;
|
|
45
|
+
filterArray: Array<any>;
|
|
46
|
+
selectedFilter: any;
|
|
47
|
+
renderColumns: string;
|
|
48
|
+
pageSizeOptions: Array<any>;
|
|
49
|
+
dataSource: any;
|
|
50
|
+
totalCount: number;
|
|
51
|
+
searchBoxValue: any;
|
|
52
|
+
prevSearch: any;
|
|
53
|
+
activeColumn: string | null;
|
|
54
|
+
isScrolled: boolean;
|
|
55
|
+
isShadowHidden: boolean;
|
|
56
|
+
currentSortColumn: string;
|
|
57
|
+
currentSortDirection: 'asc' | 'desc' | 'none';
|
|
58
|
+
originalData: any;
|
|
59
|
+
hoveredColumn: string | null;
|
|
60
|
+
searchText: any;
|
|
61
|
+
multipleFilterArray: any;
|
|
62
|
+
filterDataArray: any;
|
|
63
|
+
isResized: boolean;
|
|
64
|
+
sFilterData: any;
|
|
65
|
+
headerLabels: Array<any>;
|
|
66
|
+
displayedColumns: Array<any>;
|
|
67
|
+
filterColumns: Array<any>;
|
|
68
|
+
hyperLinkColumns: Array<string>;
|
|
69
|
+
editColumn: Array<any>;
|
|
70
|
+
dateColumns: Array<any>;
|
|
71
|
+
timeColumns: Array<any>;
|
|
72
|
+
objectColumns: Array<any>;
|
|
73
|
+
inlineElement: any;
|
|
74
|
+
pageSize: any;
|
|
75
|
+
pageIndex: any;
|
|
76
|
+
totalRecords: number;
|
|
77
|
+
configPagination: boolean;
|
|
78
|
+
deleteData: any;
|
|
79
|
+
deleteModal: boolean;
|
|
80
|
+
actionColumnSize: number;
|
|
81
|
+
dropdownButtonSize: number;
|
|
82
|
+
dropdownActionButton: any;
|
|
83
|
+
currentOpenIndex: number | null;
|
|
84
|
+
clickListener: any;
|
|
85
|
+
constructor(renderer: Renderer2);
|
|
86
|
+
ngOnChanges(): void;
|
|
87
|
+
ngOnInit(): void;
|
|
88
|
+
sortData(column: string): void;
|
|
89
|
+
onScroll(tableContainer: HTMLElement): void;
|
|
90
|
+
onDocumentClick(event: any): void;
|
|
91
|
+
filter(datas: any): void;
|
|
92
|
+
pageParams(event: any): void;
|
|
93
|
+
applyFilter(event: Event): void;
|
|
94
|
+
/** SKS15FEB25 Whether the number of selected elements matches the total number of rows. */
|
|
95
|
+
isAllSelected(): boolean;
|
|
96
|
+
/** SKS15FEB25 Selects all rows if they are not all selected; otherwise clear selection. */
|
|
97
|
+
masterToggle(): void;
|
|
98
|
+
isSomeSelected(): boolean;
|
|
99
|
+
separateRowSelect(data: any, element: any): void;
|
|
100
|
+
tableClick(data: any): void;
|
|
101
|
+
filterRetain(filterkey: any): void;
|
|
102
|
+
removeDuplicates(objects: any): any;
|
|
103
|
+
deleteRecord(data: any): void;
|
|
104
|
+
deleteRecordData(): void;
|
|
105
|
+
saveButton(): void;
|
|
106
|
+
onEdit(data: any): void;
|
|
107
|
+
commonButtonClick(button: any): void;
|
|
108
|
+
getValue(element: any, column: string): any;
|
|
109
|
+
onClickHyperlink(column: any, element: any, isHyperLink: any): void;
|
|
110
|
+
checkHyperlinkCheck(col: any): boolean;
|
|
111
|
+
addTableRecord(element: any): void;
|
|
112
|
+
isConditionMet(element: any, conditions: any): boolean;
|
|
113
|
+
isDateColumn(column: string): boolean;
|
|
114
|
+
isTimeColumn(column: string): boolean;
|
|
115
|
+
onSearch(event: any): void;
|
|
116
|
+
emptySearch(event: any): void;
|
|
117
|
+
onSideNavInfoClick(data: any, col: any): void;
|
|
118
|
+
onColumnClick(column: string): void;
|
|
119
|
+
closefilter(): void;
|
|
120
|
+
isSelected(event: any): boolean;
|
|
121
|
+
checkedData(event: any): void;
|
|
122
|
+
incrementActionColumnSize(): string;
|
|
123
|
+
updatedDropdownArraySize(): string;
|
|
124
|
+
private addClickOutsideListener;
|
|
125
|
+
private removeClickListener;
|
|
126
|
+
toggleDropdown(index: number): void;
|
|
127
|
+
actionButtonClicked(event: any): void;
|
|
128
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtDatatable, never>;
|
|
129
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxtDatatable, "nxt-datatable", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "withCheckBox": { "alias": "withCheckBox"; "required": false; }; "searchBar": { "alias": "searchBar"; "required": false; }; "tableSaveButton": { "alias": "tableSaveButton"; "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; }; }, { "tableRowClick": "tableRowClick"; "onEditData": "onEditData"; "saveButtonData": "saveButtonData"; "onDeleteData": "onDeleteData"; "buttonEmit": "buttonEmit"; "hyperLinkEmit": "hyperLinkEmit"; "sideNavEmit": "sideNavEmit"; "actionButtonEmit": "actionButtonEmit"; "NxtTableEmit": "NxtTableEmit"; }, never, never, true, never>;
|
|
130
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NxtPagination implements OnInit {
|
|
4
|
+
event: EventEmitter<any>;
|
|
5
|
+
pageSizeOptions: number[];
|
|
6
|
+
/** The total number of records */
|
|
7
|
+
collectionSize: number;
|
|
8
|
+
/** The number of records to display */
|
|
9
|
+
pageSize: number;
|
|
10
|
+
/** Current page */
|
|
11
|
+
currentPage: number;
|
|
12
|
+
/** The number of buttons to show either side of the current page */
|
|
13
|
+
maxSize: number;
|
|
14
|
+
/** Display the First/Last buttons */
|
|
15
|
+
firstLastButtons: boolean;
|
|
16
|
+
/** Display the Next/Previous buttons */
|
|
17
|
+
nextPreviousButtons: boolean;
|
|
18
|
+
/** Display small pagination buttons */
|
|
19
|
+
small: boolean;
|
|
20
|
+
totalPages: any[];
|
|
21
|
+
constructor();
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
get startIndex(): number;
|
|
25
|
+
get endIndex(): number;
|
|
26
|
+
/** Set page number */
|
|
27
|
+
selectPageNumber(pageNumber: number): void;
|
|
28
|
+
/** Set next page number */
|
|
29
|
+
next(): void;
|
|
30
|
+
/** Set previous page number */
|
|
31
|
+
previous(): void;
|
|
32
|
+
onPageSizeChange(newSize: any): void;
|
|
33
|
+
emit(): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxtPagination, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxtPagination, "nxt-pagination", never, { "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "collectionSize": { "alias": "collectionSize"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "firstLastButtons": { "alias": "firstLastButtons"; "required": false; }; "nextPreviousButtons": { "alias": "nextPreviousButtons"; "required": false; }; "small": { "alias": "small"; "required": false; }; }, { "event": "event"; }, never, never, true, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DatePipe implements PipeTransform {
|
|
4
|
+
transform(value: any, format?: string): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "date", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class EditColumnCheckPipe implements PipeTransform {
|
|
4
|
+
transform(arg: any, element: any, editCol: any): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditColumnCheckPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<EditColumnCheckPipe, "editColumnCheck", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class EditColumnDropdownPipe implements PipeTransform {
|
|
4
|
+
transform(arg: any, element: any, editCol: any): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditColumnDropdownPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<EditColumnDropdownPipe, "editColumnDropdown", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class EditColumnTypePipe implements PipeTransform {
|
|
4
|
+
transform(arg: any, element: any, editCol: any): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditColumnTypePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<EditColumnTypePipe, "editColumnType", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SearchFilterPipe implements PipeTransform {
|
|
4
|
+
transform(items: any[], searchText: string, ele?: any): any[];
|
|
5
|
+
private searchItems;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchFilterPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SearchFilterPipe, "searchFilter", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TimePipe implements PipeTransform {
|
|
4
|
+
transform(value: any, timeFormat?: string): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TimePipe, "time", true>;
|
|
7
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -12,3 +12,4 @@ export * from './lib/pages/builder/element/element.component';
|
|
|
12
12
|
export * from './lib/pages/builder/menu/menu.component';
|
|
13
13
|
export * from './lib/pages/builder/properties/properties.component';
|
|
14
14
|
export * from './lib/pages/builder/form/form.component';
|
|
15
|
+
export * from './lib/components/datatable/datatable.component';
|
|
Binary file
|
|
Binary file
|