@annalib/anna-core 24.2.10 → 25.0.0
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-core-shared-lib/models/anna-non-editable-gt-models.mjs +25 -1
- package/esm2022/lib/anna-core-shared-lib/services/anna-filter.service.mjs +7 -2
- package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +39 -7
- package/fesm2022/annalib-anna-core.mjs +68 -7
- package/fesm2022/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +29 -1
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +1 -0
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +19 -7
- package/package.json +1 -1
|
@@ -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" | "STRING_WITH_ELLIPSIS_AND_READ_MORE_TOOLTIP" | "STRING_ELLIPSIS_WITH_TABLE_TOOLTIP";
|
|
25
25
|
type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
|
|
26
26
|
export interface ISvgOrIconTypeInGTTable {
|
|
27
27
|
showObjectKey: boolean;
|
|
@@ -145,4 +145,32 @@ export interface IActionItemTypeWithStringIconOrTextAction {
|
|
|
145
145
|
enableTooltipForAdditionalText?: boolean;
|
|
146
146
|
}
|
|
147
147
|
export type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER" | "NEED_SELLER_CONFIRMATION" | "NEED_BUYER_CONFIRMATION" | "AUTOMATION_ACTIVATED" | "WARNING_ICON";
|
|
148
|
+
export declare class TableClassNameConstant {
|
|
149
|
+
static readonly defaultClass = "table-body-row ";
|
|
150
|
+
static readonly selectedRow = "selected-row ";
|
|
151
|
+
static readonly selectableRow = "selectable-row ";
|
|
152
|
+
static readonly lastRowOfGroup = "last-row-of-group ";
|
|
153
|
+
static readonly mgRow = "mg-row ";
|
|
154
|
+
static readonly redColorCellBorder = "redcolor-cell-border ";
|
|
155
|
+
static readonly redColorCellBorderForBookedRtgImpsCol = " redcolor-cell-border-rtg-imps-col";
|
|
156
|
+
static readonly greenColorCellBorder = "greencolor-cell-border ";
|
|
157
|
+
static readonly yellowColorCellBorder = "yellowcolor-cell-border";
|
|
158
|
+
static readonly orangeColorCellBorder = "orangecolor-cell-border ";
|
|
159
|
+
static readonly redColorStatus = "redcolor-status ";
|
|
160
|
+
static readonly groupedTableClass = "grouped-table-container ";
|
|
161
|
+
}
|
|
162
|
+
export declare class EllipsisWithTableTooltip {
|
|
163
|
+
tooltipHeader: string;
|
|
164
|
+
tableHeaders: HeaderWithObjectKey[];
|
|
165
|
+
tableData: any[];
|
|
166
|
+
cellValue: string;
|
|
167
|
+
tooltipHoverText: string;
|
|
168
|
+
showTooltip: boolean;
|
|
169
|
+
constructor(heading: string, tableHeaders: HeaderWithObjectKey[], tableData: any[], cellValue: string, tooltipText: string, showTooltip: boolean);
|
|
170
|
+
}
|
|
171
|
+
export interface HeaderWithObjectKey {
|
|
172
|
+
headerName: string;
|
|
173
|
+
objectKey: string;
|
|
174
|
+
width: string;
|
|
175
|
+
}
|
|
148
176
|
export {};
|
|
@@ -35,6 +35,7 @@ export declare class AnnaFilterService {
|
|
|
35
35
|
static bufferSize: number;
|
|
36
36
|
isFilterSortActive: any;
|
|
37
37
|
resetFilterSortActiveStatus: boolean;
|
|
38
|
+
nullToBeFormatedIntoString: string;
|
|
38
39
|
constructor(dateTimeFormatService: AnnaDateTimeFormatService, annaSortService: AnnaSortService);
|
|
39
40
|
returnMaxAndMinValue(data: any[], key: string, isMin: boolean): any;
|
|
40
41
|
returnMinAndMaxDate(data: any[], key: string): dayjs.Dayjs[];
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges } from "@angular/core";
|
|
1
|
+
import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from "@angular/core";
|
|
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 { EllipsisWithTableTooltip, 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";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
interface KeyValueTooltipType {
|
|
11
|
-
key: string;
|
|
12
|
-
value: string;
|
|
13
|
-
}
|
|
14
10
|
interface TableTooltipType {
|
|
15
11
|
tooltipTableHeader: string[];
|
|
16
12
|
tooltipTableBody: string[][];
|
|
@@ -97,6 +93,13 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
97
93
|
};
|
|
98
94
|
sellerGroupHierarchy: RatingSellerGroupHierarchy[];
|
|
99
95
|
showFilterTooltipTabs: boolean;
|
|
96
|
+
ellispsisWithTableTooltip: {
|
|
97
|
+
open: () => void;
|
|
98
|
+
close: () => void;
|
|
99
|
+
};
|
|
100
|
+
ellipsisWithTooltipHeading: string;
|
|
101
|
+
ellipsisWithTooltipTableHeaders: any[];
|
|
102
|
+
ellipsisWithTooltipTableData: any[];
|
|
100
103
|
isScrolledLeft: boolean;
|
|
101
104
|
rowBorderWidth: number;
|
|
102
105
|
sameTooltipClicked: boolean;
|
|
@@ -114,10 +117,17 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
114
117
|
heightOfCheckboxTooltipFilter: number;
|
|
115
118
|
isNoDataToDisplaySubject$: BehaviorSubject<boolean>;
|
|
116
119
|
selectedStarredOrderId: string;
|
|
117
|
-
textActionTooltip:
|
|
120
|
+
textActionTooltip: any;
|
|
118
121
|
tooltipContainingTable: TableTooltipType;
|
|
119
122
|
tableBottomBorderClass: string;
|
|
120
123
|
showCheckboxesForTimeFilter: boolean;
|
|
124
|
+
stringWithTooltipTemplate: TemplateRef<any>;
|
|
125
|
+
textActionTooltipTemplateRef: TemplateRef<any>;
|
|
126
|
+
programChangeTooltipTemplateRef: TemplateRef<any>;
|
|
127
|
+
stringWithTooltipNgbTooltipRef: {
|
|
128
|
+
open: () => void;
|
|
129
|
+
close: () => void;
|
|
130
|
+
};
|
|
121
131
|
statusNoteTooltip: any;
|
|
122
132
|
statusNoteForTooltip: string;
|
|
123
133
|
statusNoteForPopup: string;
|
|
@@ -164,6 +174,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
164
174
|
spotDetailsDownloadClicked(parentChildOrTotalRow: "DATAROW" | "TOTALROW", rowdata?: any): void;
|
|
165
175
|
tableContainerScrolled(event: any): void;
|
|
166
176
|
mouseEnterOnStringTextActionType(rowData: any, tooltipKey: string): void;
|
|
177
|
+
mouseEnterOnStringWithTooltipTextActionType(rowData: any, tooltipKey: string, tooltip: any): void;
|
|
167
178
|
mouseEnterOnStringTextActionTypeContainingTable(rowData: any, tooltipKey: string): void;
|
|
168
179
|
mouseLeaveTextActionType(rowData: any): void;
|
|
169
180
|
mouseEnterOnTextActionType(rowData: any, tooltipKey: string): void;
|
|
@@ -176,6 +187,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
176
187
|
setScrollToInitialPosition(): void;
|
|
177
188
|
filterApplied(tableData: any[]): void;
|
|
178
189
|
sortingApplied(tableData: any[]): void;
|
|
190
|
+
bindTheValueToTableTooltip(obj: EllipsisWithTableTooltip, tooltip: any): void;
|
|
179
191
|
bindTheValueToStatusNote(note: string, tooltip: any): void;
|
|
180
192
|
showEntireStatusNote(): void;
|
|
181
193
|
closeStatusNoteTooltip(): void;
|