@rangertechnologies/ngnxt 2.1.298 → 2.1.299
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.
|
@@ -932,7 +932,7 @@ class AmountInWordsPipe {
|
|
|
932
932
|
a = ['', 'One ', 'Two ', 'Three ', 'Four ', 'Five ', 'Six ', 'Seven ', 'Eight ', 'Nine ', 'Ten ', 'Eleven ', 'Twelve ', 'Thirteen ', 'Fourteen ', 'Fifteen ', 'Sixteen ', 'Seventeen ', 'Eighteen ', 'Nineteen '];
|
|
933
933
|
b = ['', '', 'Twenty', 'Thirty', 'Fourty', 'Fifty', 'Sixty', 'Seventy', 'Eighty', 'Ninty'];
|
|
934
934
|
transform(value) {
|
|
935
|
-
if ((value = value
|
|
935
|
+
if ((value = value?.toString())?.length > 9)
|
|
936
936
|
return 'overflow';
|
|
937
937
|
let n = ('000000000' + value).substr(-9).match(/^(\d{2})(\d{2})(\d{2})(\d{1})(\d{2})$/);
|
|
938
938
|
if (!n)
|
|
@@ -48039,12 +48039,12 @@ class nxtDropdown {
|
|
|
48039
48039
|
showOptions = false;
|
|
48040
48040
|
selectedOption = {};
|
|
48041
48041
|
ngOnInit() {
|
|
48042
|
-
let sourceId = this.apiMeta
|
|
48042
|
+
let sourceId = this.apiMeta?.sourceQuestionId;
|
|
48043
48043
|
if (sourceId && this.apiMeta.variable || this.apiMeta.valueField) {
|
|
48044
48044
|
// Subscribe for the changes
|
|
48045
48045
|
this.subscription = this.changeService.changeAnnounced$.subscribe((changeValue) => {
|
|
48046
48046
|
if (changeValue != undefined) {
|
|
48047
|
-
if (changeValue.fromQuestionId && changeValue.valueObj !== undefined && (Array.isArray(this.apiMeta
|
|
48047
|
+
if (changeValue.fromQuestionId && changeValue.valueObj !== undefined && (Array.isArray(this.apiMeta?.sourceQuestionId) ? this.apiMeta?.sourceQuestionId.includes(changeValue.fromQuestionId) : changeValue.fromQuestionId === this.apiMeta?.sourceQuestionId)) {
|
|
48048
48048
|
// this.selectedValue = changeValue.valueObj[this.apiMeta.valueField];
|
|
48049
48049
|
// let value ={};
|
|
48050
48050
|
// value['name'] = this.selectedValue;
|
|
@@ -48060,7 +48060,6 @@ class nxtDropdown {
|
|
|
48060
48060
|
this.options = results;
|
|
48061
48061
|
}
|
|
48062
48062
|
else {
|
|
48063
|
-
console.log(changeValue.valueObj);
|
|
48064
48063
|
responses = changeValue.valueObj;
|
|
48065
48064
|
this.options = responses;
|
|
48066
48065
|
}
|
|
@@ -50817,7 +50816,7 @@ class NxtDatatable {
|
|
|
50817
50816
|
}
|
|
50818
50817
|
// SKS16OCT25 for SummaryColumns value calculation
|
|
50819
50818
|
this.computeSummaryColumns();
|
|
50820
|
-
this.computeSummaryValues();
|
|
50819
|
+
this.computeSummaryValues('onChange');
|
|
50821
50820
|
this.cdRef.markForCheck();
|
|
50822
50821
|
}
|
|
50823
50822
|
ngOnInit() {
|
|
@@ -51032,7 +51031,7 @@ class NxtDatatable {
|
|
|
51032
51031
|
}
|
|
51033
51032
|
}
|
|
51034
51033
|
this.computeSummaryColumns();
|
|
51035
|
-
this.computeSummaryValues();
|
|
51034
|
+
this.computeSummaryValues('onInit');
|
|
51036
51035
|
this.cdRef.markForCheck();
|
|
51037
51036
|
}
|
|
51038
51037
|
}
|
|
@@ -51564,8 +51563,7 @@ class NxtDatatable {
|
|
|
51564
51563
|
}
|
|
51565
51564
|
//SKS29OCT25 Emit values only when needed
|
|
51566
51565
|
if (!['onChange', 'onInit'].includes(from) && ['formBuilder', 'questionBook'].includes(this.from)) {
|
|
51567
|
-
const isEqual = this.data.length === this.originalData.length &&
|
|
51568
|
-
JSON.stringify(this.data) === JSON.stringify(this.originalData);
|
|
51566
|
+
const isEqual = this.data.length === this.originalData.length && JSON.stringify(this.data) === JSON.stringify(this.originalData);
|
|
51569
51567
|
if (this.data.length > this.originalData.length || !isEqual) {
|
|
51570
51568
|
this.originalData = this.data;
|
|
51571
51569
|
}
|
|
@@ -51603,7 +51601,7 @@ class NxtDatatable {
|
|
|
51603
51601
|
if (valueB == null)
|
|
51604
51602
|
return this.currentSortDirection === 'asc' ? -1 : 1; // valueB is null
|
|
51605
51603
|
// Handle date sorting
|
|
51606
|
-
if (this.columns?.some(col => col.fieldName === column && col
|
|
51604
|
+
if (this.columns?.some(col => col.fieldName === column && col?.type === 'date')) {
|
|
51607
51605
|
const dateA = new Date(valueA);
|
|
51608
51606
|
const dateB = new Date(valueB);
|
|
51609
51607
|
valueA = dateA.getTime();
|
|
@@ -51665,7 +51663,7 @@ class NxtDatatable {
|
|
|
51665
51663
|
this.NxtTableParamsEmit.emit({ pagination: { pageSize: this.pageSize, pageIndex: this.pageIndex }, tableSearch: { fields: this.currentColumns.map(f => f.fieldName), value: this.searchBoxValue }, searchFilterData: this.filterDataArray, sort: { column: this.currentSortColumn, direction: this.currentSortDirection, listView: this.selectedView } });
|
|
51666
51664
|
if (from === 'onChange')
|
|
51667
51665
|
this.pageParams(this.tableParams?.pagination, 'onChange');
|
|
51668
|
-
this.computeSummaryValues();
|
|
51666
|
+
this.computeSummaryValues(from);
|
|
51669
51667
|
}
|
|
51670
51668
|
onScroll(tableContainer) {
|
|
51671
51669
|
this.isScrolled = tableContainer.scrollTop > 0;
|
|
@@ -51702,7 +51700,7 @@ class NxtDatatable {
|
|
|
51702
51700
|
const start = (Number(this.pageIndex) - 1) * Number(this.pageSize);
|
|
51703
51701
|
const end = start + Number(this.pageSize);
|
|
51704
51702
|
this.dataSource.data = this.filterBoxData?.slice(start, end);
|
|
51705
|
-
this.computeSummaryValues();
|
|
51703
|
+
this.computeSummaryValues(from);
|
|
51706
51704
|
}
|
|
51707
51705
|
if (from !== 'onChange')
|
|
51708
51706
|
this.NxtTableParamsEmit.emit({ pagination: { pageSize: this.pageSize, pageIndex: this.pageIndex }, tableSearch: { fields: this.currentColumns.map(f => f.fieldName), value: this.searchBoxValue }, searchFilterData: this.filterDataArray, sort: { column: this.currentSortColumn, direction: this.currentSortDirection, listView: this.selectedView } });
|
|
@@ -51711,7 +51709,7 @@ class NxtDatatable {
|
|
|
51711
51709
|
formatDateForSearch(value, col) {
|
|
51712
51710
|
if (!value)
|
|
51713
51711
|
return '';
|
|
51714
|
-
if (col
|
|
51712
|
+
if (col?.type === 'date') {
|
|
51715
51713
|
const pipe = new NxtDatePipe();
|
|
51716
51714
|
return pipe.transform(value, 'mediumDate', this.languageCode, col.calendarType || 'gregorian')?.toLowerCase() ?? '';
|
|
51717
51715
|
}
|
|
@@ -51727,8 +51725,8 @@ class NxtDatatable {
|
|
|
51727
51725
|
else if (!this.pagination) {
|
|
51728
51726
|
this.dataSource.data = this.originalData.filter(item => this.currentColumns.some(column => {
|
|
51729
51727
|
const cellValue = this.getObjValue(item, column.fieldName);
|
|
51730
|
-
const searchable = column?.type === 'date' ? this.formatDateForSearch(cellValue, column) : cellValue;
|
|
51731
|
-
return searchable
|
|
51728
|
+
const searchable = column?.type === 'date' ? this.formatDateForSearch(cellValue, column) : cellValue.toLowerCase();
|
|
51729
|
+
return typeof searchable === 'string' && searchable?.includes(filterValue);
|
|
51732
51730
|
}));
|
|
51733
51731
|
}
|
|
51734
51732
|
if (!this.pagination) {
|
|
@@ -51822,7 +51820,7 @@ class NxtDatatable {
|
|
|
51822
51820
|
const column = this.currentColumns.find(c => c.fieldName === key);
|
|
51823
51821
|
const data = this.sFilterData.filter((item) => {
|
|
51824
51822
|
const value = this.getNestedValue(item, key);
|
|
51825
|
-
const comparable = column
|
|
51823
|
+
const comparable = column?.type === 'date' ? this.formatDateForSearch(value, column) : value;
|
|
51826
51824
|
return filterkey[key].includes(comparable);
|
|
51827
51825
|
});
|
|
51828
51826
|
const data1 = [...this.data, ...data];
|
|
@@ -58049,7 +58047,7 @@ const VERSION = {
|
|
|
58049
58047
|
"semver": null,
|
|
58050
58048
|
"suffix": "68a4eb8b-dirty",
|
|
58051
58049
|
"semverString": null,
|
|
58052
|
-
"version": "2.1.
|
|
58050
|
+
"version": "2.1.299"
|
|
58053
58051
|
};
|
|
58054
58052
|
/* tslint:enable */
|
|
58055
58053
|
|