@annalib/anna-core 24.0.54 → 24.0.57

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.
@@ -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" | 'STRING_WITH_ELLIPSIS_AND_READ_MORE_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 ITotalRowInfo {
27
27
  colspan: number;
@@ -126,4 +126,18 @@ 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 EllipsisWithTableTooltip {
130
+ tooltipHeader: string;
131
+ tableHeaders: HeaderWithObjectKey[];
132
+ tableData: any[];
133
+ cellValue: string;
134
+ tooltipHoverText: string;
135
+ showTooltip: boolean;
136
+ constructor(heading: string, tableHeaders: HeaderWithObjectKey[], tableData: any[], cellValue: string, tooltipText: string, showTooltip: boolean);
137
+ }
138
+ export interface HeaderWithObjectKey {
139
+ headerName: string;
140
+ objectKey: string;
141
+ width: string;
142
+ }
129
143
  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): 1 | -1 | 0;
19
+ compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 0 | 1 | -1;
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): 1 | -1 | 0;
26
+ sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 0 | 1 | -1;
27
27
  convertNgbDateToMomentInSpecificFormat(ngbDate: NgbDateType, format: string): string;
28
28
  getBroadcastWeek(startDate: any, format?: string): {
29
29
  start: 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: KeyValueTooltipType[];
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;
@@ -173,8 +184,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
173
184
  changesMadeInEditableInputBox(event: any, editedObject: any, pasteEvent: boolean): void;
174
185
  editableInputValueChanged(value: any, row: any, keyEdited: string): void;
175
186
  radioButtonIconClicked(data: any): void;
187
+ setScrollToInitialPosition(): void;
176
188
  filterApplied(tableData: any[]): void;
177
189
  sortingApplied(tableData: any[]): void;
190
+ bindTheValueToTableTooltip(obj: EllipsisWithTableTooltip, tooltip: any): void;
178
191
  bindTheValueToStatusNote(note: string, tooltip: any): void;
179
192
  showEntireStatusNote(): void;
180
193
  closeStatusNoteTooltip(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "24.0.54",
3
+ "version": "24.0.57",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^16.0.1",
6
6
  "@angular/common": "^16.2.12",