@annalib/anna-core 24.1.14 → 24.1.15

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.
Files changed (56) hide show
  1. package/README.md +28 -28
  2. package/esm2022/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +3 -3
  3. package/esm2022/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.mjs +3 -3
  4. package/esm2022/lib/anna-core-shared-lib/components/anna-est-icon-template/anna-est-icon-template.component.mjs +3 -3
  5. package/esm2022/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +6 -4
  6. package/esm2022/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +3 -3
  7. package/esm2022/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +3 -3
  8. package/esm2022/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +3 -3
  9. package/esm2022/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +3 -3
  10. package/esm2022/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +3 -3
  11. package/esm2022/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +1 -1
  12. package/esm2022/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -15
  13. package/esm2022/lib/anna-core-shared-lib/services/anna-filter.service.mjs +4 -5
  14. package/esm2022/lib/anna-core.module.mjs +10 -4
  15. package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-normal-table/anna-non-editable-generic-normal-table.component.mjs +982 -0
  16. package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +10 -7
  17. package/esm2022/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +3 -3
  18. package/esm2022/public-api.mjs +2 -1
  19. package/fesm2022/annalib-anna-core.mjs +1187 -245
  20. package/fesm2022/annalib-anna-core.mjs.map +1 -1
  21. package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +7 -14
  22. package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +2 -2
  23. package/lib/anna-core.module.d.ts +2 -1
  24. package/lib/anna-generic-table-lib/components/anna-non-editable-generic-normal-table/anna-non-editable-generic-normal-table.component.d.ts +179 -0
  25. package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +3 -1
  26. package/package.json +1 -1
  27. package/public-api.d.ts +1 -0
  28. package/src/lib/anna-common-scss/_animate.scss +27 -27
  29. package/src/lib/anna-common-scss/_application-spacing.scss +7 -7
  30. package/src/lib/anna-common-scss/_bootstrap-tooltip.scss +27 -27
  31. package/src/lib/anna-common-scss/_button.scss +18 -18
  32. package/src/lib/anna-common-scss/_colors.scss +107 -107
  33. package/src/lib/anna-common-scss/_common-order-listing-table.scss +176 -176
  34. package/src/lib/anna-common-scss/_custom-anna-datepicker.scss +14 -14
  35. package/src/lib/anna-common-scss/_customDropdown.scss +123 -123
  36. package/src/lib/anna-common-scss/_dashboard-partials.scss +106 -106
  37. package/src/lib/anna-common-scss/_date-picker-form.scss +87 -87
  38. package/src/lib/anna-common-scss/_edit-filter-popup.scss +70 -70
  39. package/src/lib/anna-common-scss/_font.scss +9 -9
  40. package/src/lib/anna-common-scss/_fonts.scss +86 -86
  41. package/src/lib/anna-common-scss/_generic-modal.scss +63 -63
  42. package/src/lib/anna-common-scss/_generic-table-common.scss +198 -198
  43. package/src/lib/anna-common-scss/_gt-table.scss +425 -425
  44. package/src/lib/anna-common-scss/_icons.scss +3 -3
  45. package/src/lib/anna-common-scss/_legend.scss +11 -11
  46. package/src/lib/anna-common-scss/_mat-menu.scss +17 -17
  47. package/src/lib/anna-common-scss/_mixins.scss +187 -187
  48. package/src/lib/anna-common-scss/_modal.scss +37 -37
  49. package/src/lib/anna-common-scss/_popup-filter-toggle-button.scss +36 -36
  50. package/src/lib/anna-common-scss/_scrollbar.scss +14 -14
  51. package/src/lib/anna-common-scss/_sort.scss +30 -30
  52. package/src/lib/anna-common-scss/_toggle.scss +86 -86
  53. package/src/lib/anna-common-scss/style.scss +1 -1
  54. package/src/lib/anna-common-scss/third-party-lib/_angular-material-mat-radio.scss +25 -25
  55. package/src/lib/anna-common-scss/third-party-lib/_anna-mat-button-toggle-group-size-lg.scss +34 -34
  56. package/src/lib/anna-common-scss/third-party-lib/_mat-autocomplete.scss +31 -31
@@ -21,7 +21,7 @@ export interface IHeaderInfo {
21
21
  tooltip?: ITooltip;
22
22
  joinedFilterSortObjectKeys?: string;
23
23
  }
24
- type DATATYPE = "CHECKBOX" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS" | "CLICKABLE_DATA" | "STRING__TEXT_ACTION" | "STRING__ICON_ACTION" | "STRING___ICON_OR_TEXT_ACTION" | "HTML" | "HTML_STRING" | "ICON_CELL" | "STRING_OR_INPUT" | "SINGLE_RADIO" | "STRING_WITH_TOOLTIP";
24
+ type DATATYPE = "CHECKBOX" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS" | "CLICKABLE_DATA" | "STRING__TEXT_ACTION" | "STRING__ICON_ACTION" | "STRING___ICON_OR_TEXT_ACTION" | "HTML" | "HTML_STRING" | "ICON_CELL" | "STRING_OR_INPUT" | "SINGLE_RADIO" | "STRING_WITH_TOOLTIP" | "HISTORY_DESCRIPTION";
25
25
  type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
26
26
  export interface ITotalRowInfo {
27
27
  colspan: number;
@@ -126,18 +126,11 @@ export interface IActionItemTypeWithStringIconOrTextAction {
126
126
  enableTooltipForAdditionalText?: boolean;
127
127
  }
128
128
  export type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER" | "NEED_SELLER_CONFIRMATION" | "NEED_BUYER_CONFIRMATION";
129
- export declare class TableClassNameConstant {
130
- static readonly defaultClass = "table-body-row ";
131
- static readonly selectedRow = "selected-row ";
132
- static readonly selectableRow = "selectable-row ";
133
- static readonly lastRowOfGroup = "last-row-of-group ";
134
- static readonly mgRow = "mg-row ";
135
- static readonly redColorCellBorder = "redcolor-cell-border ";
136
- static readonly redColorCellBorderForBookedRtgImpsCol = " redcolor-cell-border-rtg-imps-col";
137
- static readonly greenColorCellBorder = "greencolor-cell-border ";
138
- static readonly yellowColorCellBorder = "yellowcolor-cell-border";
139
- static readonly orangeColorCellBorder = "orangecolor-cell-border ";
140
- static readonly redColorStatus = "redcolor-status ";
141
- static readonly groupedTableClass = "grouped-table-container ";
129
+ export interface IGtDimension {
130
+ rowHeight: number;
131
+ headerHeight: number;
132
+ dataOnTopHeight: number;
133
+ marginFromBottom: number;
134
+ tableHeight?: string;
142
135
  }
143
136
  export {};
@@ -16,14 +16,14 @@ export declare class AnnaDateTimeFormatService {
16
16
  addZero(time: any): any;
17
17
  sortByTimeAscending(a: any, b: any): number;
18
18
  sortByTimeDescending(a: any, b: any): number;
19
- compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 0 | 1 | -1;
19
+ compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 1 | -1 | 0;
20
20
  convertNgbDateToMoment(ngbDate: NgbDate | NgbDateType): string;
21
21
  compareDate(a: string, b: string, isAsc: boolean): number;
22
22
  static formatTwentyFourHourTimeToHHMMAFormat(value: any, date?: string): string;
23
23
  static formatTwelveHourTimeToHHMMAFormat(timeValue: any, date?: string): string;
24
24
  formatDateAndHHMMATimeToStandardFormat(dateAndTime: any): string;
25
25
  compare(a: number | string, b: number | string, isAsc: boolean): number;
26
- sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 0 | 1 | -1;
26
+ sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 1 | -1 | 0;
27
27
  convertNgbDateToMomentInSpecificFormat(ngbDate: NgbDateType, format: string): string;
28
28
  getBroadcastWeek(startDate: any, format?: string): {
29
29
  start: dayjs.Dayjs;
@@ -35,8 +35,9 @@ import * as i33 from "./anna-core-shared-lib/pipes/annaDateFormatter.pipe";
35
35
  import * as i34 from "./anna-core-shared-lib/pipes/annaConvertArrayToCommaSeperatedValue.pipe";
36
36
  import * as i35 from "./anna-core-shared-lib/directives/fixed-rows-popup-table/fixed-rows-popup-table.directive";
37
37
  import * as i36 from "./anna-core-shared-lib/components/anna-est-icon-template/anna-est-icon-template.component";
38
+ import * as i37 from "./anna-generic-table-lib/components/anna-non-editable-generic-normal-table/anna-non-editable-generic-normal-table.component";
38
39
  export declare class AnnaCoreModule {
39
40
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreModule, never>;
40
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, never, [typeof i1.CommonModule, typeof i2.NgbModule, typeof i3.FormsModule, typeof i4.MatRadioModule, typeof i5.MatButtonToggleModule, typeof i6.MatTableModule, typeof i7.NgxSliderModule, typeof i8.NgxSkeletonLoaderModule, typeof i9.ScrollingModule, typeof i10.NgCircleProgressModule, typeof i11.AnnaNoDataComponent, typeof i12.AnnaFilterSearchedTextPipe, typeof i13.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i14.AnnaTypeofDataPipe, typeof i12.AnnaFilterSearchedTextPipe, typeof i15.AnnaReplaceCharPipe, typeof i16.AnnaBuyerApprovalIconTemplateComponent, typeof i17.AnnaLiveIconTemplateComponent, typeof i18.AnnaNotifyIconTemplateComponent, typeof i19.AnnaPayForPerformanceIconTemplateComponent, typeof i20.AnnaRejectedIconTemplateComponent, typeof i21.ShowEllipsisTextOnHoverDirective, typeof i22.AnnaIconColumnComponent, typeof i23.AnnaWeekCalendarComponent, typeof i24.AnnaCalendarFilterComponent, typeof i25.AnnaSortComponent, typeof i26.AnnaNonEditableGenericTableComponent, typeof i27.DigitOnlyDirective, typeof i28.AnnaColumnDateRangeFilterComponent, typeof i29.AnnaColumnTimeFilterComponent, typeof i30.AnnaColumnCheckboxFilterComponent, typeof i31.AnnaDeletedOrderIconTemplateComponent, typeof i32.AnnaColumnSliderFilterComponent, typeof i33.AnnaDateFormatterPipe, typeof i34.AnnaConvertArrayToCommaSeperatedValue, typeof i35.FixedRowsPopupTableDirective, typeof i36.AnnaEstIconTemplateComponent], [typeof i11.AnnaNoDataComponent, typeof i12.AnnaFilterSearchedTextPipe, typeof i13.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i14.AnnaTypeofDataPipe, typeof i15.AnnaReplaceCharPipe, typeof i12.AnnaFilterSearchedTextPipe, typeof i16.AnnaBuyerApprovalIconTemplateComponent, typeof i17.AnnaLiveIconTemplateComponent, typeof i18.AnnaNotifyIconTemplateComponent, typeof i19.AnnaPayForPerformanceIconTemplateComponent, typeof i19.AnnaPayForPerformanceIconTemplateComponent, typeof i20.AnnaRejectedIconTemplateComponent, typeof i21.ShowEllipsisTextOnHoverDirective, typeof i22.AnnaIconColumnComponent, typeof i23.AnnaWeekCalendarComponent, typeof i24.AnnaCalendarFilterComponent, typeof i25.AnnaSortComponent, typeof i26.AnnaNonEditableGenericTableComponent, typeof i28.AnnaColumnDateRangeFilterComponent, typeof i29.AnnaColumnTimeFilterComponent, typeof i30.AnnaColumnCheckboxFilterComponent, typeof i27.DigitOnlyDirective, typeof i31.AnnaDeletedOrderIconTemplateComponent, typeof i32.AnnaColumnSliderFilterComponent, typeof i33.AnnaDateFormatterPipe, typeof i34.AnnaConvertArrayToCommaSeperatedValue, typeof i35.FixedRowsPopupTableDirective]>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, never, [typeof i1.CommonModule, typeof i2.NgbModule, typeof i3.FormsModule, typeof i4.MatRadioModule, typeof i5.MatButtonToggleModule, typeof i6.MatTableModule, typeof i7.NgxSliderModule, typeof i8.NgxSkeletonLoaderModule, typeof i9.ScrollingModule, typeof i10.NgCircleProgressModule, typeof i11.AnnaNoDataComponent, typeof i12.AnnaFilterSearchedTextPipe, typeof i13.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i14.AnnaTypeofDataPipe, typeof i12.AnnaFilterSearchedTextPipe, typeof i15.AnnaReplaceCharPipe, typeof i16.AnnaBuyerApprovalIconTemplateComponent, typeof i17.AnnaLiveIconTemplateComponent, typeof i18.AnnaNotifyIconTemplateComponent, typeof i19.AnnaPayForPerformanceIconTemplateComponent, typeof i20.AnnaRejectedIconTemplateComponent, typeof i21.ShowEllipsisTextOnHoverDirective, typeof i22.AnnaIconColumnComponent, typeof i23.AnnaWeekCalendarComponent, typeof i24.AnnaCalendarFilterComponent, typeof i25.AnnaSortComponent, typeof i26.AnnaNonEditableGenericTableComponent, typeof i27.DigitOnlyDirective, typeof i28.AnnaColumnDateRangeFilterComponent, typeof i29.AnnaColumnTimeFilterComponent, typeof i30.AnnaColumnCheckboxFilterComponent, typeof i31.AnnaDeletedOrderIconTemplateComponent, typeof i32.AnnaColumnSliderFilterComponent, typeof i33.AnnaDateFormatterPipe, typeof i34.AnnaConvertArrayToCommaSeperatedValue, typeof i35.FixedRowsPopupTableDirective, typeof i36.AnnaEstIconTemplateComponent, typeof i37.AnnaNonEditableGenericNormalTableComponent], [typeof i11.AnnaNoDataComponent, typeof i12.AnnaFilterSearchedTextPipe, typeof i13.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i14.AnnaTypeofDataPipe, typeof i15.AnnaReplaceCharPipe, typeof i12.AnnaFilterSearchedTextPipe, typeof i16.AnnaBuyerApprovalIconTemplateComponent, typeof i17.AnnaLiveIconTemplateComponent, typeof i18.AnnaNotifyIconTemplateComponent, typeof i19.AnnaPayForPerformanceIconTemplateComponent, typeof i19.AnnaPayForPerformanceIconTemplateComponent, typeof i20.AnnaRejectedIconTemplateComponent, typeof i21.ShowEllipsisTextOnHoverDirective, typeof i22.AnnaIconColumnComponent, typeof i23.AnnaWeekCalendarComponent, typeof i24.AnnaCalendarFilterComponent, typeof i25.AnnaSortComponent, typeof i26.AnnaNonEditableGenericTableComponent, typeof i28.AnnaColumnDateRangeFilterComponent, typeof i29.AnnaColumnTimeFilterComponent, typeof i30.AnnaColumnCheckboxFilterComponent, typeof i27.DigitOnlyDirective, typeof i31.AnnaDeletedOrderIconTemplateComponent, typeof i32.AnnaColumnSliderFilterComponent, typeof i33.AnnaDateFormatterPipe, typeof i34.AnnaConvertArrayToCommaSeperatedValue, typeof i35.FixedRowsPopupTableDirective, typeof i37.AnnaNonEditableGenericNormalTableComponent]>;
41
42
  static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCoreModule>;
42
43
  }
@@ -0,0 +1,179 @@
1
+ import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges } from "@angular/core";
2
+ import { BehaviorSubject } from "rxjs";
3
+ import { GtColumnIconEmittedData, RatingSellerGroupHierarchy } from "../../../anna-core-shared-lib/models/anna-generic-data-type.model";
4
+ import { IWeekCalendar } from "../../../anna-core-shared-lib/models/anna-global-dropdown-config.model";
5
+ import { IGtGeneralConfig, IGtTableHeader, IHeaderInfo, ITotalRowInfo } from "../../../anna-core-shared-lib/models/anna-non-editable-gt-models";
6
+ import { AnnaDateTimeFormatService } from "../../../anna-core-shared-lib/services/anna-date-time-format.service";
7
+ import { AnnaFilterService } from "../../../anna-core-shared-lib/services/anna-filter.service";
8
+ import { AnnaSortService } from "../../../anna-core-shared-lib/services/anna-sort.service";
9
+ import * as i0 from "@angular/core";
10
+ interface KeyValueTooltipType {
11
+ key: string;
12
+ value: string;
13
+ }
14
+ interface TableTooltipType {
15
+ tooltipTableHeader: string[];
16
+ tooltipTableBody: string[][];
17
+ tableHeaderMsg: string[];
18
+ tableFooterMsg: string[];
19
+ innerHtml: string;
20
+ }
21
+ export declare class AnnaNonEditableGenericNormalTableComponent implements OnInit, OnChanges, AfterViewChecked {
22
+ private cdRef;
23
+ private annaSortService;
24
+ annaDateTimeFormatService: AnnaDateTimeFormatService;
25
+ annaFilterService: AnnaFilterService;
26
+ showSkeletonLoading: boolean;
27
+ tableHeaders: IGtTableHeader[];
28
+ tableData: any[];
29
+ clonedTableData: any[];
30
+ gtGeneralConfig: IGtGeneralConfig;
31
+ totalRowInfo?: ITotalRowInfo[];
32
+ gtDimension: {
33
+ rowHeight: number;
34
+ headerHeight: number;
35
+ dataOnTopHeight: number;
36
+ marginFromBottom: number;
37
+ tableHeight?: string;
38
+ };
39
+ tableClass: string;
40
+ maximumRowsWhichCanBeRenderedWithoutScroll: number;
41
+ fixNumberOfRowsForPopup: boolean;
42
+ limit: number;
43
+ includeBorderInTableHeight: boolean;
44
+ downloadInProgress: boolean;
45
+ percentDone: number;
46
+ starredInProgress: boolean;
47
+ clickableRow: boolean;
48
+ setTableHeightWhenRowSizeIsFixed: boolean;
49
+ tableBorderBottomClassRequired: boolean;
50
+ hideSomeTds: boolean;
51
+ tdsHaveRowSpan: boolean;
52
+ multipleTablesPresent: boolean;
53
+ showOrHideToggleForTotalRow: boolean;
54
+ toggleCheckbox: EventEmitter<any>;
55
+ toggleRowCheckbox: EventEmitter<any>;
56
+ toggleHeaderCheckbox: EventEmitter<any>;
57
+ undoIconClicked: EventEmitter<any>;
58
+ filterAppliedToTable: EventEmitter<any>;
59
+ sortingAppliedToTable: EventEmitter<any>;
60
+ rowClicked: EventEmitter<any>;
61
+ radioButtonSelected: EventEmitter<any>;
62
+ columnFilterOpened: EventEmitter<any>;
63
+ columnFilterClosed: EventEmitter<any>;
64
+ gtIconClicked: EventEmitter<any>;
65
+ gtSVGIconClicked: EventEmitter<any>;
66
+ gtTextActionClicked: EventEmitter<any>;
67
+ gtViewDetailClicked: EventEmitter<any>;
68
+ gtInnerHTMLClicked: EventEmitter<any>;
69
+ downloadSpotDetails: EventEmitter<any>;
70
+ clickableDataClicked: EventEmitter<any>;
71
+ totalRowIconClicked: EventEmitter<any>;
72
+ notificationIconHover: EventEmitter<any>;
73
+ notificationIconHoverLeave: EventEmitter<any>;
74
+ editableInputEdited: EventEmitter<any>;
75
+ radioButtonMessageIconClicked: EventEmitter<any>;
76
+ numberOfSkeletonRows: number[][];
77
+ tableDataWrapper: any[];
78
+ rowChecked: boolean;
79
+ isAllRowsChecked: boolean;
80
+ noDataWidth: string;
81
+ markedForCreditStatus: string;
82
+ markedForMGStatus: string;
83
+ filterAlignment: string;
84
+ tooltipRadioTextMap: Map<any, any>;
85
+ filterTabObjects: any[];
86
+ tooltip: any;
87
+ disableColumnClearAllBtn: boolean;
88
+ margin: number;
89
+ multiWeekPickerConfig: IWeekCalendar;
90
+ tableColumns: string[];
91
+ totalRowColumns: string[];
92
+ bindValueFuncCalled: boolean;
93
+ hierarchyTooltip: {
94
+ open: () => void;
95
+ close: () => void;
96
+ };
97
+ sellerGroupHierarchy: RatingSellerGroupHierarchy[];
98
+ showFilterTooltipTabs: boolean;
99
+ isScrolledLeft: boolean;
100
+ rowBorderWidth: number;
101
+ sameTooltipClicked: boolean;
102
+ isScrollEnded: boolean;
103
+ marginTop: string;
104
+ viewChildTableHeaders: QueryList<ElementRef>;
105
+ tableElementRef: ElementRef;
106
+ isDifferenceLessThan25Percent: boolean;
107
+ start: number;
108
+ end: number;
109
+ renderedData: any[];
110
+ selectedInventoryIdForDownload: number;
111
+ selectedDemographicForDownload: any;
112
+ selectedRowTypeForDownload: string;
113
+ heightOfCheckboxTooltipFilter: number;
114
+ isNoDataToDisplaySubject$: BehaviorSubject<boolean>;
115
+ selectedStarredOrderId: string;
116
+ textActionTooltip: KeyValueTooltipType[];
117
+ tooltipContainingTable: TableTooltipType;
118
+ tableBottomBorderClass: string;
119
+ showCheckboxesForTimeFilter: boolean;
120
+ constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService);
121
+ ngAfterViewChecked(): void;
122
+ ngOnInit(): void;
123
+ detectChanges(): void;
124
+ ngOnChanges(changes: SimpleChanges): void;
125
+ setFilterAlignmentBasedOnScreenResolution(): void;
126
+ setTableBottomBorder(): void;
127
+ checkIfAllTheElementsAreZero(): boolean;
128
+ showHideTotalRow(): void;
129
+ setTableHeight(): void;
130
+ trackByHeaderFn(index: number, item: IGtTableHeader): string;
131
+ trackByTotalRowFn(index: number, item: ITotalRowInfo): string;
132
+ trackByFn(index: number): number;
133
+ setTooltipRadioNames(): void;
134
+ selectOrUnselectCheckbox(rowData: any, columnKeys: any, isCheckboxSelected: any): void;
135
+ selectOrUnselectRadiobox(rowData: any, columnKeys: any, isCheckboxSelected: boolean): void;
136
+ selectUnselectAllRows(): void;
137
+ selectUnselectRow(rowData: any): void;
138
+ undoCreditedSpot(data: any): void;
139
+ undoMgSpot(data: any): void;
140
+ closeTooltip(): void;
141
+ isTooltipActive(header: any[]): boolean;
142
+ bindTheValueToToolTip(tooltip: any, header: IHeaderInfo): void;
143
+ checkIfUniqueValuePresentForTheHeader(header: IHeaderInfo, enabledHeaders: any[]): void;
144
+ openTooltip(tooltip: any, header: any, columnHeader: IHeaderInfo): void;
145
+ disableEnableEachColumnTooltipIcon(): void;
146
+ dataRowClicked(rowData: any): void;
147
+ radioButtonClicked(data: any, action: string, isDisabled: boolean): void;
148
+ bindTheValueToSellerGroupTooltip(sellerGroupHierarchy: RatingSellerGroupHierarchy[], tooltip: any): void;
149
+ iconClicked(rowData: any, iconClass: string): void;
150
+ svgIconClicked(data: GtColumnIconEmittedData): void;
151
+ textActionClicked(rowData: any, id: any, columnHeader: IHeaderInfo): void;
152
+ iconClickedOnStringIconActionType(rowData: any, id: any, columnHeader: IHeaderInfo): void;
153
+ innerHTMLCellClicked(event: any, rowData: any): void;
154
+ viewDetailsClicked(rowData: any): void;
155
+ setActiveStateObject(): void;
156
+ setIsDifference(value: boolean): void;
157
+ resetIndex(): void;
158
+ onTableContainerScroll(e: any): void;
159
+ getTableData(start: number, end: number): any[];
160
+ updateIndex(): void;
161
+ setInitialRowsForTable(): void;
162
+ spotDetailsDownloadClicked(parentChildOrTotalRow: "DATAROW" | "TOTALROW", rowdata?: any): void;
163
+ tableContainerScrolled(event: any): void;
164
+ mouseEnterOnStringTextActionType(rowData: any, tooltipKey: string): void;
165
+ mouseEnterOnStringTextActionTypeContainingTable(rowData: any, tooltipKey: string): void;
166
+ mouseLeaveTextActionType(rowData: any): void;
167
+ mouseEnterOnTextActionType(rowData: any, tooltipKey: string): void;
168
+ onClickableDataClicked(Rowdata: any, id: number): void;
169
+ removeTooltipOnScroll(): void;
170
+ iconClickedInTotalRow(colName: string): void;
171
+ changesMadeInEditableInputBox(event: any, editedObject: any, pasteEvent: boolean): void;
172
+ editableInputValueChanged(value: any, row: any, keyEdited: string): void;
173
+ radioButtonIconClicked(data: any): void;
174
+ filterApplied(tableData: any[]): void;
175
+ sortingApplied(tableData: any[]): void;
176
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericNormalTableComponent, never>;
177
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericNormalTableComponent, "anna-core-anna-non-editable-generic-normal-table", never, { "showSkeletonLoading": { "alias": "showSkeletonLoading"; "required": false; }; "tableHeaders": { "alias": "tableHeaders"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "clonedTableData": { "alias": "clonedTableData"; "required": false; }; "gtGeneralConfig": { "alias": "gtGeneralConfig"; "required": false; }; "totalRowInfo": { "alias": "totalRowInfo"; "required": false; }; "gtDimension": { "alias": "gtDimension"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "maximumRowsWhichCanBeRenderedWithoutScroll": { "alias": "maximumRowsWhichCanBeRenderedWithoutScroll"; "required": false; }; "fixNumberOfRowsForPopup": { "alias": "fixNumberOfRowsForPopup"; "required": false; }; "limit": { "alias": "limit"; "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"; }, never, never, true, never>;
178
+ }
179
+ export {};
@@ -2,7 +2,7 @@ import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnChange
2
2
  import { BehaviorSubject } from "rxjs";
3
3
  import { GtColumnIconEmittedData, RatingSellerGroupHierarchy } from "../../../anna-core-shared-lib/models/anna-generic-data-type.model";
4
4
  import { IWeekCalendar } from "../../../anna-core-shared-lib/models/anna-global-dropdown-config.model";
5
- import { IGtGeneralConfig, IGtTableHeader, IHeaderInfo, ITotalRowInfo } from "../../../anna-core-shared-lib/models/anna-non-editable-gt-models";
5
+ import { ClickableItem, IconCellActionKey, IGtGeneralConfig, IGtTableHeader, IHeaderInfo, ITotalRowInfo } from "../../../anna-core-shared-lib/models/anna-non-editable-gt-models";
6
6
  import { AnnaDateTimeFormatService } from "../../../anna-core-shared-lib/services/anna-date-time-format.service";
7
7
  import { AnnaFilterService } from "../../../anna-core-shared-lib/services/anna-filter.service";
8
8
  import { AnnaSortService } from "../../../anna-core-shared-lib/services/anna-sort.service";
@@ -128,6 +128,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
128
128
  showHideTotalRow(): void;
129
129
  setTableHeight(): void;
130
130
  trackByFn(index: number): number;
131
+ trackByHeaderActionCol(index: number, item: ClickableItem): any;
132
+ trackByIconCellAction(index: number, item: IconCellActionKey): string | number;
131
133
  setTooltipRadioNames(): void;
132
134
  selectOrUnselectCheckbox(rowData: any, columnKeys: any, isCheckboxSelected: any): void;
133
135
  selectOrUnselectRadiobox(rowData: any, columnKeys: any, isCheckboxSelected: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "24.1.14",
3
+ "version": "24.1.15",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^16.0.1",
6
6
  "@angular/common": "^16.2.12",
package/public-api.d.ts CHANGED
@@ -35,5 +35,6 @@ export * from "./lib/anna-generic-table-lib/components/anna-column-filters/anna-
35
35
  export * from "./lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component";
36
36
  export * from "./lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component";
37
37
  export * from "./lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component";
38
+ export * from "./lib/anna-generic-table-lib/components/anna-non-editable-generic-normal-table/anna-non-editable-generic-normal-table.component";
38
39
  export * from "./lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component";
39
40
  export * from "./lib/anna-generic-table-lib/components/anna-sort/anna-sort.component";
@@ -1,27 +1,27 @@
1
- // scss-lint:disable all
2
- .animated {
3
- animation-duration: 1s;
4
- // animation-fill-mode: both;
5
- }
6
-
7
- .animated.infinite {
8
- animation-iteration-count: infinite;
9
- }
10
-
11
- .animated.hinge {
12
- animation-duration: 2s;
13
- }
14
-
15
- @keyframes fadeIn {
16
- from {
17
- opacity: 0;
18
- }
19
-
20
- to {
21
- opacity: 1;
22
- }
23
- }
24
-
25
- .fadeIn {
26
- animation-name: fadeIn;
27
- }
1
+ // scss-lint:disable all
2
+ .animated {
3
+ animation-duration: 1s;
4
+ // animation-fill-mode: both;
5
+ }
6
+
7
+ .animated.infinite {
8
+ animation-iteration-count: infinite;
9
+ }
10
+
11
+ .animated.hinge {
12
+ animation-duration: 2s;
13
+ }
14
+
15
+ @keyframes fadeIn {
16
+ from {
17
+ opacity: 0;
18
+ }
19
+
20
+ to {
21
+ opacity: 1;
22
+ }
23
+ }
24
+
25
+ .fadeIn {
26
+ animation-name: fadeIn;
27
+ }
@@ -1,7 +1,7 @@
1
- //GLOBAL LAYOUT VARIABLE
2
- $app-screen-max-width: 1920px;
3
- $app-left-space: 40px;
4
- $app-right-space: 40px;
5
- $sidebar-minimized-width: 64px;
6
- $navbar-height: 50px;
7
- $app-max-width: calc($app-screen-max-width - $app-left-space);
1
+ //GLOBAL LAYOUT VARIABLE
2
+ $app-screen-max-width: 1920px;
3
+ $app-left-space: 40px;
4
+ $app-right-space: 40px;
5
+ $sidebar-minimized-width: 64px;
6
+ $navbar-height: 50px;
7
+ $app-max-width: calc($app-screen-max-width - $app-left-space);
@@ -1,27 +1,27 @@
1
- @mixin common-bootstrap-tooltip() {
2
- opacity: 1 !important;
3
- .tooltip-inner {
4
- color: #4a4a4a;
5
- text-align: left;
6
- padding: 8px !important;
7
- border-radius: 2px;
8
- background: white !important;
9
- box-shadow:
10
- 0 6px 10px 0 rgba(0, 0, 0, 0.3),
11
- 0 2px 2px 0 rgba(0, 0, 0, 0.2);
12
- @include fonts(Roboto, 12px, normal, normal, normal, normal, normal);
13
- }
14
-
15
- &.bs-tooltip-top .arrow::before {
16
- border-top: 6px solid white;
17
- }
18
- &.bs-tooltip-left .arrow::before {
19
- border-left: 6px solid white;
20
- }
21
- &.bs-tooltip-bottom .arrow::before {
22
- border-bottom: 6px solid white;
23
- }
24
- &.bs-tooltip-right .arrow::before {
25
- border-right: 5px solid white;
26
- }
27
- }
1
+ @mixin common-bootstrap-tooltip() {
2
+ opacity: 1 !important;
3
+ .tooltip-inner {
4
+ color: #4a4a4a;
5
+ text-align: left;
6
+ padding: 8px !important;
7
+ border-radius: 2px;
8
+ background: white !important;
9
+ box-shadow:
10
+ 0 6px 10px 0 rgba(0, 0, 0, 0.3),
11
+ 0 2px 2px 0 rgba(0, 0, 0, 0.2);
12
+ @include fonts(Roboto, 12px, normal, normal, normal, normal, normal);
13
+ }
14
+
15
+ &.bs-tooltip-top .arrow::before {
16
+ border-top: 6px solid white;
17
+ }
18
+ &.bs-tooltip-left .arrow::before {
19
+ border-left: 6px solid white;
20
+ }
21
+ &.bs-tooltip-bottom .arrow::before {
22
+ border-bottom: 6px solid white;
23
+ }
24
+ &.bs-tooltip-right .arrow::before {
25
+ border-right: 5px solid white;
26
+ }
27
+ }
@@ -1,18 +1,18 @@
1
- @import "./colors";
2
-
3
- @mixin enableDisableBtnStyle() {
4
- background-color: white;
5
- text-decoration: underline;
6
- color: $primary-color;
7
- border: none;
8
-
9
- &:hover:enabled {
10
- color: $charcoal;
11
- }
12
-
13
- &:disabled {
14
- color: $charcoal;
15
- opacity: 0.5;
16
- cursor: not-allowed;
17
- }
18
- }
1
+ @import "./colors";
2
+
3
+ @mixin enableDisableBtnStyle() {
4
+ background-color: white;
5
+ text-decoration: underline;
6
+ color: $primary-color;
7
+ border: none;
8
+
9
+ &:hover:enabled {
10
+ color: $charcoal;
11
+ }
12
+
13
+ &:disabled {
14
+ color: $charcoal;
15
+ opacity: 0.5;
16
+ cursor: not-allowed;
17
+ }
18
+ }