@annalib/anna-core 31.10.2 → 31.10.4
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/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +8 -8
- package/fesm2022/annalib-anna-core.mjs +7 -7
- package/fesm2022/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4616,7 +4616,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4616
4616
|
else {
|
|
4617
4617
|
this.setInitialRowsForTable();
|
|
4618
4618
|
this.annaFilterService.disableEnableEachColumnTooltipIcon(this.tableHeaders, this.tableData, this.clonedTableData);
|
|
4619
|
-
this.
|
|
4619
|
+
this.initTableColumns();
|
|
4620
4620
|
if ((this.tableData && this.tableData.length === 0) ||
|
|
4621
4621
|
(this.tableData.length === 2 && this.checkIfAllTheElementsAreZero())) {
|
|
4622
4622
|
this.tableData = Array(2).fill(0);
|
|
@@ -4632,7 +4632,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4632
4632
|
}
|
|
4633
4633
|
// setting table column here as well because while showing skeleton loader, we should show table headers.
|
|
4634
4634
|
if (changes.tableHeaders && !isEqual(changes.tableHeaders.currentValue, changes.tableHeaders.previousValue)) {
|
|
4635
|
-
this.
|
|
4635
|
+
this.initTableColumns();
|
|
4636
4636
|
this.annaSortService.columnSortState = new Map();
|
|
4637
4637
|
this.annaFilterService.initialValueMap = new Map();
|
|
4638
4638
|
// this.setColumnSortStateMap();
|
|
@@ -4643,13 +4643,13 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4643
4643
|
}
|
|
4644
4644
|
this.cdRef.detectChanges();
|
|
4645
4645
|
}
|
|
4646
|
-
|
|
4646
|
+
initTableColumns() {
|
|
4647
4647
|
this.tableColumns = sortBy(this.tableHeaders.filter((x) => x.visible && !x.dummyHeader), "columnNumber").map((x) => x.headerInfo[0].objectKey);
|
|
4648
|
-
this.modifiedExtraHeaderRowForAdjustingColumnWidths = {
|
|
4649
|
-
widths: this.extraHeaderRowForAdjustingColumnWidths.map((n) => n.width),
|
|
4650
|
-
objectKeys: this.extraHeaderRowForAdjustingColumnWidths.map((n) => n.objectKey),
|
|
4651
|
-
};
|
|
4652
4648
|
if (this.gtGeneralConfig.hasMultipleTableHeaderRows) {
|
|
4649
|
+
this.modifiedExtraHeaderRowForAdjustingColumnWidths = {
|
|
4650
|
+
widths: this.extraHeaderRowForAdjustingColumnWidths.map((n) => n.width),
|
|
4651
|
+
objectKeys: this.extraHeaderRowForAdjustingColumnWidths.map((n) => n.objectKey),
|
|
4652
|
+
};
|
|
4653
4653
|
this.tableColumnsOfEachRow = [];
|
|
4654
4654
|
let visibleTableHeaders = [];
|
|
4655
4655
|
visibleTableHeaders = this.tableHeaders
|