@annalib/anna-core 37.0.20 → 37.0.22
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/annalib-anna-core.mjs +107 -7
- package/fesm2022/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +6 -0
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +19 -3
- package/package.json +1 -1
|
@@ -271,4 +271,10 @@ export interface IDropdownConfigWithIconForGT {
|
|
|
271
271
|
showTooltip: boolean;
|
|
272
272
|
tooltipData?: string;
|
|
273
273
|
}
|
|
274
|
+
export interface ICustomizableColumn {
|
|
275
|
+
name: string;
|
|
276
|
+
objectKey: string;
|
|
277
|
+
isFixed: boolean;
|
|
278
|
+
isChecked: boolean;
|
|
279
|
+
}
|
|
274
280
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
+
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
2
3
|
import { BehaviorSubject } from "rxjs";
|
|
3
4
|
import { GtColumnIconEmittedData, RatingSellerGroupHierarchy } from "../../../anna-core-shared-lib/models/anna-generic-data-type.model";
|
|
4
5
|
import { IWeekCalendar } from "../../../anna-core-shared-lib/models/anna-global-dropdown-config.model";
|
|
5
|
-
import { EllipsisWithTableTooltip, IGtGeneralConfig, IGtTableHeader, IHeaderInfo, InnerHTMLTooltipAction, ITimeInputData, ITotalRowInfo } from "../../../anna-core-shared-lib/models/anna-non-editable-gt-models";
|
|
6
|
+
import { EllipsisWithTableTooltip, ICustomizableColumn, IGtGeneralConfig, IGtTableHeader, IHeaderInfo, InnerHTMLTooltipAction, ITimeInputData, ITotalRowInfo } from "../../../anna-core-shared-lib/models/anna-non-editable-gt-models";
|
|
6
7
|
import { AnnaDateTimeFormatService } from "../../../anna-core-shared-lib/services/anna-date-time-format.service";
|
|
7
8
|
import { AnnaFilterService } from "../../../anna-core-shared-lib/services/anna-filter.service";
|
|
8
9
|
import { AnnaSortService } from "../../../anna-core-shared-lib/services/anna-sort.service";
|
|
@@ -19,6 +20,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
19
20
|
private annaSortService;
|
|
20
21
|
annaDateTimeFormatService: AnnaDateTimeFormatService;
|
|
21
22
|
annaFilterService: AnnaFilterService;
|
|
23
|
+
modalService: NgbModal;
|
|
22
24
|
showSkeletonLoading: boolean;
|
|
23
25
|
tableHeaders: IGtTableHeader[];
|
|
24
26
|
tableData: any[];
|
|
@@ -51,6 +53,9 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
51
53
|
tdsHaveRowSpan: boolean;
|
|
52
54
|
multipleTablesPresent: boolean;
|
|
53
55
|
showOrHideToggleForTotalRow: boolean;
|
|
56
|
+
enableCustomizableColumns: boolean;
|
|
57
|
+
customizableColumnsList: ICustomizableColumn[];
|
|
58
|
+
customizeColumnsButtonText: string;
|
|
54
59
|
toggleCheckbox: EventEmitter<any>;
|
|
55
60
|
toggleRowCheckbox: EventEmitter<any>;
|
|
56
61
|
toggleHeaderCheckbox: EventEmitter<any>;
|
|
@@ -98,6 +103,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
98
103
|
}>;
|
|
99
104
|
totalRowRadioButtonClicked: EventEmitter<string>;
|
|
100
105
|
totalRowRadioButtonIconClicked: EventEmitter<string>;
|
|
106
|
+
columnsCustomized: EventEmitter<{
|
|
107
|
+
selectedColumns: string[];
|
|
108
|
+
tableHeaders: IGtTableHeader[];
|
|
109
|
+
}>;
|
|
101
110
|
acfiRateInputChanged: EventEmitter<{
|
|
102
111
|
data: any;
|
|
103
112
|
key: string;
|
|
@@ -172,6 +181,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
172
181
|
open: () => void;
|
|
173
182
|
close: () => void;
|
|
174
183
|
};
|
|
184
|
+
customizableColumnsListClone: ICustomizableColumn[];
|
|
185
|
+
customizeColumnsModalReference: any;
|
|
186
|
+
customizeColumnsModal: TemplateRef<any>;
|
|
187
|
+
tableHeadersCloned: IGtTableHeader[];
|
|
175
188
|
statusNoteTooltip: any;
|
|
176
189
|
statusNoteForTooltip: string;
|
|
177
190
|
statusNoteForPopup: string;
|
|
@@ -190,7 +203,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
190
203
|
time: string;
|
|
191
204
|
}[];
|
|
192
205
|
selectedRowForTimeEdit: any;
|
|
193
|
-
constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService);
|
|
206
|
+
constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService, modalService: NgbModal);
|
|
194
207
|
ngAfterViewChecked(): void;
|
|
195
208
|
ngOnInit(): void;
|
|
196
209
|
detectChanges(): void;
|
|
@@ -265,7 +278,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
265
278
|
closeTimeInputTooltip(): void;
|
|
266
279
|
timeInputTooltipClickedInTableBody(event: ITimeInputData, rowData: any): void;
|
|
267
280
|
timeSelectedInTableRow(event: string[][]): void;
|
|
281
|
+
openCustomizeColumnsModal(): void;
|
|
282
|
+
selectUnselectCustomizeColumns(column: ICustomizableColumn): void;
|
|
283
|
+
customizeColumns(customize: boolean): void;
|
|
268
284
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
|
|
269
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": { "alias": "showSkeletonLoading"; "required": false; }; "tableHeaders": { "alias": "tableHeaders"; "required": true; }; "tableData": { "alias": "tableData"; "required": true; }; "clonedTableData": { "alias": "clonedTableData"; "required": true; }; "gtGeneralConfig": { "alias": "gtGeneralConfig"; "required": true; }; "totalRowInfo": { "alias": "totalRowInfo"; "required": false; }; "gtDimension": { "alias": "gtDimension"; "required": true; }; "extraHeaderRowForAdjustingColumnWidths": { "alias": "extraHeaderRowForAdjustingColumnWidths"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "maximumRowsWhichCanBeRenderedWithoutScroll": { "alias": "maximumRowsWhichCanBeRenderedWithoutScroll"; "required": false; }; "fixNumberOfRowsForPopup": { "alias": "fixNumberOfRowsForPopup"; "required": false; }; "fixRowsToRender": { "alias": "fixRowsToRender"; "required": false; }; "includeBorderInTableHeight": { "alias": "includeBorderInTableHeight"; "required": false; }; "downloadInProgress": { "alias": "downloadInProgress"; "required": false; }; "percentDone": { "alias": "percentDone"; "required": false; }; "starredInProgress": { "alias": "starredInProgress"; "required": false; }; "clickableRow": { "alias": "clickableRow"; "required": false; }; "setTableHeightWhenRowSizeIsFixed": { "alias": "setTableHeightWhenRowSizeIsFixed"; "required": false; }; "tableBorderBottomClassRequired": { "alias": "tableBorderBottomClassRequired"; "required": false; }; "hideSomeTds": { "alias": "hideSomeTds"; "required": false; }; "tdsHaveRowSpan": { "alias": "tdsHaveRowSpan"; "required": false; }; "multipleTablesPresent": { "alias": "multipleTablesPresent"; "required": false; }; "showOrHideToggleForTotalRow": { "alias": "showOrHideToggleForTotalRow"; "required": false; }; }, { "toggleCheckbox": "toggleCheckbox"; "toggleRowCheckbox": "toggleRowCheckbox"; "toggleHeaderCheckbox": "toggleHeaderCheckbox"; "undoIconClicked": "undoIconClicked"; "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "rowClicked": "rowClicked"; "radioButtonSelected": "radioButtonSelected"; "columnFilterOpened": "columnFilterOpened"; "columnFilterClosed": "columnFilterClosed"; "gtIconClicked": "gtIconClicked"; "gtSVGIconClicked": "gtSVGIconClicked"; "gtTextActionClicked": "gtTextActionClicked"; "gtViewDetailClicked": "gtViewDetailClicked"; "gtInnerHTMLClicked": "gtInnerHTMLClicked"; "downloadSpotDetails": "downloadSpotDetails"; "clickableDataClicked": "clickableDataClicked"; "totalRowIconClicked": "totalRowIconClicked"; "notificationIconHover": "notificationIconHover"; "notificationIconHoverLeave": "notificationIconHoverLeave"; "editableInputEdited": "editableInputEdited"; "radioButtonMessageIconClicked": "radioButtonMessageIconClicked"; "statusNotePopupOpened": "statusNotePopupOpened"; "textPopupOpened": "textPopupOpened"; "digitOnlyInputChanged": "digitOnlyInputChanged"; "singleSelectDropdownValueEmit": "singleSelectDropdownValueEmit"; "timeSelected": "timeSelected"; "totalRowRadioButtonClicked": "totalRowRadioButtonClicked"; "totalRowRadioButtonIconClicked": "totalRowRadioButtonIconClicked"; "acfiRateInputChanged": "acfiRateInputChanged"; "acfiRateCopyRequested": "acfiRateCopyRequested"; }, never, never, true, never>;
|
|
285
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": { "alias": "showSkeletonLoading"; "required": false; }; "tableHeaders": { "alias": "tableHeaders"; "required": true; }; "tableData": { "alias": "tableData"; "required": true; }; "clonedTableData": { "alias": "clonedTableData"; "required": true; }; "gtGeneralConfig": { "alias": "gtGeneralConfig"; "required": true; }; "totalRowInfo": { "alias": "totalRowInfo"; "required": false; }; "gtDimension": { "alias": "gtDimension"; "required": true; }; "extraHeaderRowForAdjustingColumnWidths": { "alias": "extraHeaderRowForAdjustingColumnWidths"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "maximumRowsWhichCanBeRenderedWithoutScroll": { "alias": "maximumRowsWhichCanBeRenderedWithoutScroll"; "required": false; }; "fixNumberOfRowsForPopup": { "alias": "fixNumberOfRowsForPopup"; "required": false; }; "fixRowsToRender": { "alias": "fixRowsToRender"; "required": false; }; "includeBorderInTableHeight": { "alias": "includeBorderInTableHeight"; "required": false; }; "downloadInProgress": { "alias": "downloadInProgress"; "required": false; }; "percentDone": { "alias": "percentDone"; "required": false; }; "starredInProgress": { "alias": "starredInProgress"; "required": false; }; "clickableRow": { "alias": "clickableRow"; "required": false; }; "setTableHeightWhenRowSizeIsFixed": { "alias": "setTableHeightWhenRowSizeIsFixed"; "required": false; }; "tableBorderBottomClassRequired": { "alias": "tableBorderBottomClassRequired"; "required": false; }; "hideSomeTds": { "alias": "hideSomeTds"; "required": false; }; "tdsHaveRowSpan": { "alias": "tdsHaveRowSpan"; "required": false; }; "multipleTablesPresent": { "alias": "multipleTablesPresent"; "required": false; }; "showOrHideToggleForTotalRow": { "alias": "showOrHideToggleForTotalRow"; "required": false; }; "enableCustomizableColumns": { "alias": "enableCustomizableColumns"; "required": false; }; "customizableColumnsList": { "alias": "customizableColumnsList"; "required": false; }; "customizeColumnsButtonText": { "alias": "customizeColumnsButtonText"; "required": false; }; }, { "toggleCheckbox": "toggleCheckbox"; "toggleRowCheckbox": "toggleRowCheckbox"; "toggleHeaderCheckbox": "toggleHeaderCheckbox"; "undoIconClicked": "undoIconClicked"; "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "rowClicked": "rowClicked"; "radioButtonSelected": "radioButtonSelected"; "columnFilterOpened": "columnFilterOpened"; "columnFilterClosed": "columnFilterClosed"; "gtIconClicked": "gtIconClicked"; "gtSVGIconClicked": "gtSVGIconClicked"; "gtTextActionClicked": "gtTextActionClicked"; "gtViewDetailClicked": "gtViewDetailClicked"; "gtInnerHTMLClicked": "gtInnerHTMLClicked"; "downloadSpotDetails": "downloadSpotDetails"; "clickableDataClicked": "clickableDataClicked"; "totalRowIconClicked": "totalRowIconClicked"; "notificationIconHover": "notificationIconHover"; "notificationIconHoverLeave": "notificationIconHoverLeave"; "editableInputEdited": "editableInputEdited"; "radioButtonMessageIconClicked": "radioButtonMessageIconClicked"; "statusNotePopupOpened": "statusNotePopupOpened"; "textPopupOpened": "textPopupOpened"; "digitOnlyInputChanged": "digitOnlyInputChanged"; "singleSelectDropdownValueEmit": "singleSelectDropdownValueEmit"; "timeSelected": "timeSelected"; "totalRowRadioButtonClicked": "totalRowRadioButtonClicked"; "totalRowRadioButtonIconClicked": "totalRowRadioButtonIconClicked"; "columnsCustomized": "columnsCustomized"; "acfiRateInputChanged": "acfiRateInputChanged"; "acfiRateCopyRequested": "acfiRateCopyRequested"; }, never, never, true, never>;
|
|
270
286
|
}
|
|
271
287
|
export {};
|