@annalib/anna-core 50.0.0 → 51.0.0-final-ng-19

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 (58) hide show
  1. package/README.md +28 -28
  2. package/fesm2022/annalib-anna-core.mjs +1473 -219
  3. package/fesm2022/annalib-anna-core.mjs.map +1 -1
  4. package/lib/anna-core-shared-lib/components/anna-custom-scrollbars/anna-custom-scrollbars.component.d.ts +66 -0
  5. package/lib/anna-core-shared-lib/components/anna-input-column/anna-input-column.component.d.ts +17 -0
  6. package/lib/anna-core-shared-lib/components/anna-input-column/models/anna-input-column.model.d.ts +40 -0
  7. package/lib/anna-core-shared-lib/components/anna-tabs/anna-tabs.component.d.ts +17 -0
  8. package/lib/anna-core-shared-lib/components/button-toggle/models/button-toggle.model.d.ts +1 -0
  9. package/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.d.ts +5 -0
  10. package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +53 -2
  11. package/lib/anna-core-shared-lib/models/anna-tab.model.d.ts +14 -0
  12. package/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.d.ts +1 -0
  13. package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +1 -0
  14. package/lib/anna-core-shared-lib/services/anna-tab.service.d.ts +14 -0
  15. package/lib/anna-core-shared-lib/services/customizable-columns.service.d.ts +95 -0
  16. package/lib/anna-core-shared-lib/services/download-service.d.ts +32 -0
  17. package/lib/anna-core.module.d.ts +3 -1
  18. package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +68 -7
  19. package/package.json +1 -1
  20. package/public-api.d.ts +8 -0
  21. package/src/lib/anna-common-scss/_animate.scss +27 -27
  22. package/src/lib/anna-common-scss/_application-spacing.scss +8 -8
  23. package/src/lib/anna-common-scss/_bootstrap-tooltip.scss +29 -29
  24. package/src/lib/anna-common-scss/_button.scss +18 -18
  25. package/src/lib/anna-common-scss/_colors.scss +110 -107
  26. package/src/lib/anna-common-scss/_common-order-listing-table.scss +190 -190
  27. package/src/lib/anna-common-scss/_custom-anna-datepicker.scss +14 -14
  28. package/src/lib/anna-common-scss/_customDropdown.scss +126 -126
  29. package/src/lib/anna-common-scss/_dashboard-partials.scss +107 -107
  30. package/src/lib/anna-common-scss/_date-picker-form.scss +87 -87
  31. package/src/lib/anna-common-scss/_drag-and-drop.scss +22 -22
  32. package/src/lib/anna-common-scss/_easy-filter.scss +139 -139
  33. package/src/lib/anna-common-scss/_edit-filter-popup.scss +80 -80
  34. package/src/lib/anna-common-scss/_email-button.scss +89 -89
  35. package/src/lib/anna-common-scss/_filters.scss +728 -728
  36. package/src/lib/anna-common-scss/_font.scss +9 -9
  37. package/src/lib/anna-common-scss/_fonts.scss +86 -86
  38. package/src/lib/anna-common-scss/_generic-modal.scss +102 -63
  39. package/src/lib/anna-common-scss/_generic-table-common.scss +220 -220
  40. package/src/lib/anna-common-scss/_generic-tooltip-html.scss +69 -69
  41. package/src/lib/anna-common-scss/_gt-table.scss +594 -586
  42. package/src/lib/anna-common-scss/_icons.scss +3 -3
  43. package/src/lib/anna-common-scss/_legend.scss +11 -11
  44. package/src/lib/anna-common-scss/_mat-button-toggle.scss +68 -68
  45. package/src/lib/anna-common-scss/_mat-menu.scss +17 -17
  46. package/src/lib/anna-common-scss/_mixins.scss +187 -187
  47. package/src/lib/anna-common-scss/_modal.scss +38 -37
  48. package/src/lib/anna-common-scss/_popup-filter-toggle-button.scss +37 -37
  49. package/src/lib/anna-common-scss/_scrollbar.scss +14 -14
  50. package/src/lib/anna-common-scss/_show-hide-total-row.scss +40 -27
  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 +7 -7
  54. package/src/lib/anna-common-scss/third-party-lib/_angular-material-mat-radio.scss +26 -26
  55. package/src/lib/anna-common-scss/third-party-lib/_anna-mat-button-toggle-group-size-lg.scss +39 -39
  56. package/src/lib/anna-common-scss/third-party-lib/_mat-autocomplete.scss +31 -31
  57. package/src/lib/anna-common-scss/user-module-common-scss/_user-module.scss +65 -65
  58. package/src/lib/anna-common-scss/user-module-common-scss/_user-tag-status.scss +111 -111
@@ -0,0 +1,66 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ type ScrollAxis = 'H' | 'V';
4
+ export declare class AnnaCustomScrollbarsComponent implements AfterViewInit, OnChanges, OnDestroy {
5
+ private cdRef;
6
+ private static readonly HORIZONTAL_ARROW_STEP_PX;
7
+ private static readonly VERTICAL_ARROW_STEP_PX;
8
+ private static readonly MIN_THUMB_SIZE_PX;
9
+ /** Overflow at or below this (px) is treated as none — avoids spurious bars from sub-pixel / border rounding. */
10
+ private static readonly SCROLL_OVERFLOW_TOLERANCE_PX;
11
+ scrollElement?: HTMLElement;
12
+ scrollElementRef?: ElementRef<HTMLElement> | HTMLElement;
13
+ hideVerticalScrollbar: boolean;
14
+ hScrollbarTrack?: ElementRef<HTMLElement>;
15
+ vScrollbarTrack?: ElementRef<HTMLElement>;
16
+ readonly isHorizontalScrollbarVisible: import("@angular/core").WritableSignal<boolean>;
17
+ readonly isVerticalScrollbarVisible: import("@angular/core").WritableSignal<boolean>;
18
+ readonly isHorizontalScrollAtStart: import("@angular/core").WritableSignal<boolean>;
19
+ readonly isHorizontalScrollAtEnd: import("@angular/core").WritableSignal<boolean>;
20
+ readonly isVerticalScrollAtStart: import("@angular/core").WritableSignal<boolean>;
21
+ readonly isVerticalScrollAtEnd: import("@angular/core").WritableSignal<boolean>;
22
+ readonly horizontalThumbSizePx: import("@angular/core").WritableSignal<number>;
23
+ readonly horizontalThumbOffsetPx: import("@angular/core").WritableSignal<number>;
24
+ readonly verticalThumbSizePx: import("@angular/core").WritableSignal<number>;
25
+ readonly verticalThumbOffsetPx: import("@angular/core").WritableSignal<number>;
26
+ private isDraggingScrollbarThumb;
27
+ private draggingAxis;
28
+ private dragStartClient;
29
+ private dragStartScroll;
30
+ private onWindowPointerMove?;
31
+ private onWindowPointerUp?;
32
+ private removeScrollListener?;
33
+ constructor(cdRef: ChangeDetectorRef);
34
+ ngAfterViewInit(): void;
35
+ ngOnChanges(changes: SimpleChanges): void;
36
+ ngOnDestroy(): void;
37
+ sync(): void;
38
+ scrollByArrow(axis: ScrollAxis, direction: 1 | -1): void;
39
+ onScrollbarThumbPointerDown(event: PointerEvent, axis: ScrollAxis): void;
40
+ onScrollbarTrackPointerDown(event: PointerEvent, axis: ScrollAxis): void;
41
+ private bindScrollListener;
42
+ private updateCustomScrollbars;
43
+ private updateScrollbarVisibilityAndArrowState;
44
+ private calculateThumbSizes;
45
+ private syncThumbOffsets;
46
+ private onScrollbarThumbPointerMove;
47
+ private endScrollbarThumbDrag;
48
+ private removeScrollBinding;
49
+ private removeWindowDragListeners;
50
+ private getAxisMetrics;
51
+ private getArrowStep;
52
+ private getClientCoordinate;
53
+ private getElementScroll;
54
+ private setElementScroll;
55
+ private getViewportSize;
56
+ private getTrackClickOffset;
57
+ private getThumbOffset;
58
+ private getThumbOffsetFromMetrics;
59
+ private getTrackUsable;
60
+ private getThumbRawSize;
61
+ private getThumbSize;
62
+ private get resolvedScrollElement();
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCustomScrollbarsComponent, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaCustomScrollbarsComponent, "anna-core-custom-scrollbars-lib", never, { "scrollElement": { "alias": "scrollElement"; "required": false; }; "scrollElementRef": { "alias": "scrollElementRef"; "required": false; }; "hideVerticalScrollbar": { "alias": "hideVerticalScrollbar"; "required": false; }; }, {}, never, never, true, never>;
65
+ }
66
+ export {};
@@ -0,0 +1,17 @@
1
+ import { StringOrInputColumnData } from './models/anna-input-column.model';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AnnaInputColumnComponent {
4
+ readonly data: import("@angular/core").InputSignal<StringOrInputColumnData>;
5
+ readonly valueChanged: import("@angular/core").OutputEmitterRef<string>;
6
+ readonly actionLinkClicked: import("@angular/core").OutputEmitterRef<string>;
7
+ changesMadeInEditableInputBox(event: KeyboardEvent | ClipboardEvent, isPaste: boolean): void;
8
+ private isControlKey;
9
+ private getEnteredValue;
10
+ private isInvalidCharacter;
11
+ private isRestrictedCharacter;
12
+ private exceedsDecimalLimit;
13
+ editableInputValueChanged(value: string): void;
14
+ linkClicked(event: string): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaInputColumnComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaInputColumnComponent, "anna-core-anna-input-column", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, { "valueChanged": "valueChanged"; "actionLinkClicked": "actionLinkClicked"; }, never, never, true, never>;
17
+ }
@@ -0,0 +1,40 @@
1
+ import { SvgOrIconNames } from "../../../models/anna-non-editable-gt-models";
2
+ export declare class StringOrInputColumnData {
3
+ displayType: 'STRING' | 'INPUT';
4
+ value: string;
5
+ disabled?: boolean;
6
+ icons: {
7
+ id?: string;
8
+ iconClass: string;
9
+ tooltip?: string;
10
+ tooltipClass?: string;
11
+ }[];
12
+ svgIcons: {
13
+ iconName: SvgOrIconNames;
14
+ tooltip?: string;
15
+ tooltipClass?: string;
16
+ }[];
17
+ tags: {
18
+ label: string;
19
+ tooltip?: string;
20
+ tagClass: string;
21
+ tooltipClass?: string;
22
+ }[];
23
+ links: {
24
+ id: string;
25
+ linkClass: string;
26
+ linkName: string;
27
+ tooltip?: string;
28
+ tooltipClass?: string;
29
+ }[];
30
+ allowSpecialCharacters?: boolean;
31
+ hasError?: boolean;
32
+ className?: string;
33
+ placeholder?: string;
34
+ characterRestrictions?: {
35
+ charactersToRestrict: string[];
36
+ isDecimalPointCheckRequired: boolean;
37
+ maxDecimalPointsAllowed: number;
38
+ };
39
+ constructor(data: Partial<StringOrInputColumnData>);
40
+ }
@@ -0,0 +1,17 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnInit } from "@angular/core";
2
+ import { ListingTab } from "../../models/anna-tab.model";
3
+ import { AnnaTabService } from "../../services/anna-tab.service";
4
+ import * as i0 from "@angular/core";
5
+ export declare class AnnaTabComponent implements OnInit {
6
+ tabSelected: EventEmitter<ListingTab>;
7
+ tabs: ListingTab[];
8
+ selectedTabURL: string;
9
+ tabClass: string;
10
+ listTabClass: string;
11
+ tabService: AnnaTabService;
12
+ cdr: ChangeDetectorRef;
13
+ ngOnInit(): void;
14
+ tabChanged(tab: ListingTab): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaTabComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaTabComponent, "anna-core-tabs", never, { "tabs": { "alias": "tabs"; "required": true; }; "selectedTabURL": { "alias": "selectedTabURL"; "required": false; }; "tabClass": { "alias": "tabClass"; "required": false; }; "listTabClass": { "alias": "listTabClass"; "required": false; }; }, { "tabSelected": "tabSelected"; }, never, never, true, never>;
17
+ }
@@ -2,5 +2,6 @@ export declare class ButtonToggleOptions {
2
2
  label: string;
3
3
  value: string | number;
4
4
  disabled?: boolean;
5
+ tooltip?: string;
5
6
  constructor(data: any);
6
7
  }
@@ -74,6 +74,7 @@ export interface IConfirmationPopupConfig {
74
74
  }
75
75
  export interface IWeekCalendar {
76
76
  firstDayOfWeek?: number;
77
+ placement?: string;
77
78
  numberOfMonthsToEnableInPast: number;
78
79
  selectMultipleWeeks: boolean;
79
80
  showWeekNumbers?: boolean;
@@ -87,6 +88,8 @@ export interface IWeekCalendar {
87
88
  showAsDropdown: boolean;
88
89
  selectCurrentWeek: boolean;
89
90
  isContainerBody?: boolean;
91
+ /** When true with selectMultipleWeeks, renders arrows, week label, and start–end date range like single-week mode. */
92
+ showSingleWeekDisplay?: boolean;
90
93
  }
91
94
  export interface ICustomSingleSelect {
92
95
  showSearchBar: boolean;
@@ -94,12 +97,14 @@ export interface ICustomSingleSelect {
94
97
  classes: string;
95
98
  position: Position;
96
99
  showBlueBorderOnEdit?: boolean;
100
+ showRedBorderWhenNoOptionSelected?: boolean;
97
101
  initialSelectedItem?: SingleSelectIdText;
98
102
  maxHeightOfList: number;
99
103
  minHeightOfList?: number;
100
104
  }
101
105
  export interface ICustomMultiSelect extends ICustomSingleSelect {
102
106
  showErrorWhenNoOptionSelected: boolean;
107
+ showCancelAndApplyButtons: boolean;
103
108
  }
104
109
  type Position = "TOP" | "BOTTOM";
105
110
  export {};
@@ -4,6 +4,7 @@ export interface IGtTableHeader {
4
4
  headerInfo: IHeaderInfo[];
5
5
  visible: boolean;
6
6
  width: string;
7
+ isFixedGroup?: boolean;
7
8
  rowspan?: number;
8
9
  colspan?: number;
9
10
  rowNumber?: number;
@@ -14,6 +15,20 @@ export type TDCellClass = "CENTRE";
14
15
  export interface IHeaderInfo {
15
16
  name: string;
16
17
  objectKey: string;
18
+ isVisible?: boolean;
19
+ visibleOrder?: number;
20
+ defaultShowTooltipIcon?: boolean;
21
+ defaultFilterConfig?: {
22
+ filter?: FILTERTYPE;
23
+ filterSortObjectKeys?: string[];
24
+ isSortRequired?: boolean[];
25
+ isFilterRequired?: boolean[];
26
+ };
27
+ activeFilterSortObjectKeys?: string[];
28
+ activeIsSortRequired?: boolean[];
29
+ activeIsFilterRequired?: boolean[];
30
+ customizeLabel?: string;
31
+ isChecked?: boolean;
17
32
  actionKey?: string;
18
33
  tooltipKey?: string;
19
34
  isDisabledKey?: string;
@@ -41,6 +56,7 @@ export interface ISvgOrIconTypeInGTTable {
41
56
  svgOrIconTooltipMsg?: string;
42
57
  additionalText?: string;
43
58
  additionalTextClass?: string;
59
+ svgOrIconAdditionalTextTooltipMsg?: string;
44
60
  }
45
61
  export interface ITimeInputData {
46
62
  selectedTimeAsAString: string;
@@ -76,7 +92,10 @@ export declare enum SvgOrIconNames {
76
92
  ALPHA_R_CIRCLE = "ALPHA_R_CIRCLE",
77
93
  ALPHA_E_CIRCLE = "ALPHA_E_CIRCLE",
78
94
  ALPHA_A_CIRCLE = "ALPHA_A_CIRCLE",
79
- CALENDAR = "CALENDAR"
95
+ COM_SCORE_PULSE = "COM_SCORE_PULSE",
96
+ NIELSEN_OVERNIGHTS = "NIELSEN_OVERNIGHTS",
97
+ CALENDAR = "CALENDAR",
98
+ TRENDING_UP = "TRENDING_UP"
80
99
  }
81
100
  export interface ITotalRowInfo {
82
101
  colspan: number;
@@ -182,6 +201,31 @@ export declare class IconCellActionKey {
182
201
  tooltipData?: string;
183
202
  constructor(id: any, showIcon: boolean, iconClass: string, showObjectKey: boolean, showTooltip: boolean, tooltipData?: string);
184
203
  }
204
+ export interface IEditableInput {
205
+ type: "INPUT" | "STRING";
206
+ value: string;
207
+ disabled?: boolean;
208
+ className?: string;
209
+ hasError?: boolean;
210
+ placeholder?: string;
211
+ showIcon?: boolean;
212
+ iconClass?: string;
213
+ iconTooltip?: string;
214
+ charactersToRestrict: any[];
215
+ }
216
+ export declare class EditableInput {
217
+ type: "INPUT" | "STRING";
218
+ value: string;
219
+ disabled?: boolean;
220
+ className?: string;
221
+ hasError?: boolean;
222
+ placeholder?: string;
223
+ allowSpecialCharacters: boolean;
224
+ maxDecimalPointsAllowed: number;
225
+ isDecimalPointCheckRequired: boolean;
226
+ charactersToRestrict: any[];
227
+ constructor(value: string, type: "INPUT" | "STRING", placeholder: string, disabled?: boolean, className?: string, allowSpecialCharacters?: boolean, maxDecimalPointsAllowed?: number, isDecimalPointCheckRequired?: boolean, charactersToRestrict?: string[]);
228
+ }
185
229
  export interface IActionItemTypeWithStringIconOrTextAction {
186
230
  id: any;
187
231
  data: string;
@@ -193,6 +237,7 @@ export interface IActionItemTypeWithStringIconOrTextAction {
193
237
  linkClass?: string;
194
238
  showLink?: boolean;
195
239
  disabledLink?: boolean;
240
+ linkTooltip?: string;
196
241
  showTooltip: boolean;
197
242
  tooltipData?: {
198
243
  key: string;
@@ -205,7 +250,7 @@ export interface IActionItemTypeWithStringIconOrTextAction {
205
250
  showSimpleIcon?: boolean;
206
251
  tooltipDataForSimpleIcon?: string;
207
252
  }
208
- export type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER" | "NEED_SELLER_CONFIRMATION" | "NEED_BUYER_CONFIRMATION" | "AUTOMATED" | "WARNING_ICON" | "INFORMATION_OUTLINE_ICON" | "ALERT_OCTAGON_ICON" | "CANCEL_ICON" | "ALPHA_B_CIRCLE" | "ALPHA_R_CIRCLE" | "ALPHA_E_CIRCLE" | "ALPHA_A_CIRCLE" | "MESSAGE" | "CALENDAR" | "EMAIL_ICON";
253
+ export type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER" | "NEED_SELLER_CONFIRMATION" | "NEED_BUYER_CONFIRMATION" | "AUTOMATED" | "WARNING_ICON" | "INFORMATION_OUTLINE_ICON" | "ALERT_OCTAGON_ICON" | "CANCEL_ICON" | "ALPHA_B_CIRCLE" | "ALPHA_R_CIRCLE" | "ALPHA_E_CIRCLE" | "ALPHA_A_CIRCLE" | "MESSAGE" | "CALENDAR" | "EMAIL_ICON" | "TRENDING_UP" | "COM_SCORE_PULSE" | "NIELSEN_OVERNIGHTS" | "CALENDAR_QUESTION" | "CALL_SPLIT";
209
254
  export declare class TableClassNameConstant {
210
255
  static readonly defaultClass = "table-body-row ";
211
256
  static readonly selectedRow = "selected-row ";
@@ -271,4 +316,10 @@ export interface IDropdownConfigWithIconForGT {
271
316
  showTooltip: boolean;
272
317
  tooltipData?: string;
273
318
  }
319
+ export interface ICustomizableColumn {
320
+ name: string;
321
+ objectKey: string;
322
+ isFixed: boolean;
323
+ isChecked: boolean;
324
+ }
274
325
  export {};
@@ -0,0 +1,14 @@
1
+ export interface ListingTab {
2
+ id: any;
3
+ url: string;
4
+ name: string;
5
+ element?: string;
6
+ componentName: string;
7
+ showDivider?: boolean;
8
+ tooltip?: TabTooltip;
9
+ }
10
+ export interface TabTooltip {
11
+ text: string;
12
+ position: string;
13
+ class: string;
14
+ }
@@ -6,4 +6,5 @@ export declare class AnnaFilterSearchedTextPipe implements PipeTransform {
6
6
  filter(items: any[], searchText: string, keyName?: any): any[];
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFilterSearchedTextPipe, never>;
8
8
  static ɵpipe: i0.ɵɵPipeDeclaration<AnnaFilterSearchedTextPipe, "AnnafilterSearchedText", true>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<AnnaFilterSearchedTextPipe>;
9
10
  }
@@ -34,6 +34,7 @@ export declare class AnnaFilterService {
34
34
  ngxSliderObj: Options;
35
35
  SPLITED_CHECKBOX_FILTER_KEY: string;
36
36
  DEFAULT_SPLIT_SEPARATOR: string;
37
+ /** Slider columns that use currency formatting. Date columns use calendarSet and require updateDateFilterTooltipSelectedMap when restoring tooltipSelectedMap from JSON. */
37
38
  sliderCurrencySet: Set<string>;
38
39
  static bufferSize: number;
39
40
  isFilterSortActive: any;
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AnnaTabService {
3
+ private subject;
4
+ changedTab: {
5
+ id?: number;
6
+ name: string;
7
+ url: string;
8
+ componentName: any;
9
+ };
10
+ publishEvent(event: string): void;
11
+ get events$(): import("rxjs").Observable<any>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaTabService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<AnnaTabService>;
14
+ }
@@ -0,0 +1,95 @@
1
+ import { IGtTableHeader } from "../models/anna-non-editable-gt-models";
2
+ import * as i0 from "@angular/core";
3
+ export declare class CustomizableColumnsService {
4
+ /**
5
+ * Applies table preferences by updating table headers visibility and checked state.
6
+ * Each group is treated independently so we can keep filter metadata aligned with the rendered columns.
7
+ *
8
+ * @param tableHeaders List of header groups whose visibility state should be updated.
9
+ * @param selectedColumnNames Column keys coming from stored preferences.
10
+ */
11
+ applyColumnPreferences(tableHeaders: IGtTableHeader[], selectedColumnNames: string[]): void;
12
+ /**
13
+ * Ensures a header carries immutable copies of its default filter/tooltip configuration.
14
+ *
15
+ * @param header Header definition that needs default metadata cached once.
16
+ */
17
+ private preserveHeaderDefaults;
18
+ /**
19
+ * Determines whether a filter configuration contains actionable data.
20
+ *
21
+ * @param config Immutable default filter configuration to inspect.
22
+ * @returns True when filter-related arrays or filter definitions are present.
23
+ */
24
+ private hasFilterSettings;
25
+ /**
26
+ * Applies filter state for a header group based on visible headers and the selected filter header.
27
+ * The first visible column becomes the single filter owner to avoid duplicate filter icons.
28
+ *
29
+ * @param headerGroup Target header group whose aggregate visibility state changes.
30
+ * @param visibleHeaders Headers currently rendered in the UI for this group.
31
+ * @param firstHeaderWithFilter First visible header that carries filter metadata, if any.
32
+ * @param groupHasFilters Indicates whether any header in the group exposes filtering.
33
+ * @param headersWithFilters List of all headers that contain filter metadata (visible or hidden).
34
+ */
35
+ private alignGroupFilterState;
36
+ /**
37
+ * Applies filter configuration to header info and updates active filter states.
38
+ *
39
+ * @param header Target header whose mutable properties must stay in sync with defaults.
40
+ * @param config Filter configuration to apply (undefined clears filter data and icons).
41
+ */
42
+ private setHeaderFilterConfig;
43
+ /**
44
+ * Picks a header that owns the filter metadata to project on the visible columns.
45
+ * Since we use positional mapping (header position → filterSortObjectKeys index),
46
+ * we need a header that has filterSortObjectKeys to map from. We prefer the first visible
47
+ * header that has filterSortObjectKeys, otherwise fall back to any header with filterSortObjectKeys.
48
+ *
49
+ * @param preferredHeader First visible header that carries filter metadata, if available.
50
+ * @param headersWithFilters All headers that contain filter metadata (visible or hidden).
51
+ * @returns Header whose defaults should drive the filter UI (preferably one with filterSortObjectKeys).
52
+ */
53
+ private pickFilterSourceHeader;
54
+ /**
55
+ * Keeps filter metadata in sync with the columns that remain visible.
56
+ * Maps visible headers to their corresponding filter keys by position in the header group.
57
+ *
58
+ * @param defaultConfig Original filter configuration attached to the header.
59
+ * @param visibleHeaders Headers currently rendered in the UI for this group.
60
+ * @param headerGroup Header group containing all headers (used to determine header positions).
61
+ * @returns Filter configuration aligned with the current visibility state.
62
+ */
63
+ private buildVisibleFilterConfig;
64
+ /**
65
+ * Extracts selected (checked) column object keys from table headers.
66
+ *
67
+ * @param tableHeaders Table headers to evaluate.
68
+ * @returns Array of selected column object keys (only non-fixed columns).
69
+ */
70
+ collectSelectedColumnKeys(tableHeaders: IGtTableHeader[]): string[];
71
+ /**
72
+ * Gets the count of fixed header groups in the customizable columns list.
73
+ *
74
+ * @param tableHeaders Table headers to count fixed groups from.
75
+ * @returns Number of fixed header groups that should always remain visible.
76
+ */
77
+ countFixedHeaderGroups(tableHeaders: IGtTableHeader[]): number;
78
+ /**
79
+ * Checks if visible columns have changed between previous and new headers.
80
+ *
81
+ * @param previousHeaders Previous snapshot of header groups.
82
+ * @param newHeaders Updated header groups to compare against.
83
+ * @returns True if visible column keys differ, false otherwise.
84
+ */
85
+ haveVisibleColumnKeysChanged(previousHeaders: IGtTableHeader[], newHeaders: IGtTableHeader[]): boolean;
86
+ /**
87
+ * Extracts all visible column keys from table headers so diffs are quick and reliable.
88
+ *
89
+ * @param headers Complete set of header groups to inspect.
90
+ * @returns Set of object keys representing currently visible columns.
91
+ */
92
+ collectVisibleColumnKeys(headers: IGtTableHeader[]): Set<string>;
93
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomizableColumnsService, never>;
94
+ static ɵprov: i0.ɵɵInjectableDeclaration<CustomizableColumnsService>;
95
+ }
@@ -0,0 +1,32 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { ToastrService } from "ngx-toastr";
3
+ import { BehaviorSubject } from "rxjs";
4
+ import * as i0 from "@angular/core";
5
+ export declare class AnnaCoreDownloadService {
6
+ private toastr;
7
+ private http;
8
+ /**
9
+ * This Subject can be used to track the download progress
10
+ * percentDone is percent the download is done
11
+ * downloadInProgress is true if download is in progress
12
+ */
13
+ downloadData$: BehaviorSubject<{
14
+ percentDone: number;
15
+ downloadInProgress: boolean;
16
+ }>;
17
+ downloadToastId: any;
18
+ constructor(toastr: ToastrService, http: HttpClient);
19
+ /**
20
+ * Generic method to handle file download
21
+ * @param APIurl is url of download api example: "/api/downloadRatesSpotsData"
22
+ * @param payload The payload for the API request
23
+ * @param onSuccess a callback fn to execute when file downloaded successfully
24
+ * @param OnError a callback fn to execute on error in download
25
+ * @returns void
26
+ */
27
+ downloadFileFromBackendServer(apiUrl: string, payload: any, onSuccess?: (response: any) => void, onError?: (error: any) => void): void;
28
+ private downloadFileByLink;
29
+ private getHttpOptions;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreDownloadService, never>;
31
+ static ɵprov: i0.ɵɵInjectableDeclaration<AnnaCoreDownloadService>;
32
+ }
@@ -34,8 +34,10 @@ import * as i32 from "./anna-core-shared-lib/directives/fixed-rows-popup-table/f
34
34
  import * as i33 from "./anna-core-shared-lib/components/anna-est-icon-template/anna-est-icon-template.component";
35
35
  import * as i34 from "./anna-core-shared-lib/components/anna-spinner-loader/anna-spinner-loader.component";
36
36
  import * as i35 from "./anna-core-shared-lib/components/anna-licensing-table/anna-licensing-table.component";
37
+ import * as i36 from "./anna-core-shared-lib/components/anna-custom-scrollbars/anna-custom-scrollbars.component";
38
+ import * as i37 from "./anna-core-shared-lib/components/anna-tabs/anna-tabs.component";
37
39
  export declare class AnnaCoreModule {
38
40
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreModule, never>;
39
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, never, [typeof i1.CommonModule, typeof i2.NgbModule, typeof i3.FormsModule, typeof i4.MatTableModule, typeof i5.NgxSliderModule, typeof i6.NgxSkeletonLoaderModule, typeof i7.ScrollingModule, typeof i8.AnnaNoDataComponent, typeof i9.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i10.AnnaTypeofDataPipe, typeof i11.AnnaFilterSearchedTextPipe, typeof i12.AnnaReplaceCharPipe, typeof i13.AnnaBuyerApprovalIconTemplateComponent, typeof i14.AnnaLiveIconTemplateComponent, typeof i15.AnnaNotifyIconTemplateComponent, typeof i16.AnnaPayForPerformanceIconTemplateComponent, typeof i17.AnnaRejectedIconTemplateComponent, typeof i18.ShowEllipsisTextOnHoverDirective, typeof i19.AnnaIconColumnComponent, typeof i20.AnnaWeekCalendarComponent, typeof i21.AnnaCalendarFilterComponent, typeof i22.AnnaSortComponent, typeof i23.AnnaNonEditableGenericTableComponent, typeof i24.DigitOnlyDirective, typeof i25.AnnaColumnDateRangeFilterComponent, typeof i26.AnnaColumnTimeFilterComponent, typeof i27.AnnaColumnCheckboxFilterComponent, typeof i28.AnnaDeletedOrderIconTemplateComponent, typeof i29.AnnaColumnSliderFilterComponent, typeof i30.AnnaDateFormatterPipe, typeof i31.AnnaConvertArrayToCommaSeperatedValue, typeof i32.FixedRowsPopupTableDirective, typeof i33.AnnaEstIconTemplateComponent, typeof i34.AnnaSpinnerLoaderComponent, typeof i35.AnnaLicensingTableComponent], [typeof i8.AnnaNoDataComponent, typeof i11.AnnaFilterSearchedTextPipe, typeof i9.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i10.AnnaTypeofDataPipe, typeof i12.AnnaReplaceCharPipe, typeof i11.AnnaFilterSearchedTextPipe, typeof i13.AnnaBuyerApprovalIconTemplateComponent, typeof i14.AnnaLiveIconTemplateComponent, typeof i15.AnnaNotifyIconTemplateComponent, typeof i16.AnnaPayForPerformanceIconTemplateComponent, typeof i16.AnnaPayForPerformanceIconTemplateComponent, typeof i17.AnnaRejectedIconTemplateComponent, typeof i18.ShowEllipsisTextOnHoverDirective, typeof i19.AnnaIconColumnComponent, typeof i20.AnnaWeekCalendarComponent, typeof i21.AnnaCalendarFilterComponent, typeof i22.AnnaSortComponent, typeof i23.AnnaNonEditableGenericTableComponent, typeof i25.AnnaColumnDateRangeFilterComponent, typeof i26.AnnaColumnTimeFilterComponent, typeof i27.AnnaColumnCheckboxFilterComponent, typeof i24.DigitOnlyDirective, typeof i28.AnnaDeletedOrderIconTemplateComponent, typeof i29.AnnaColumnSliderFilterComponent, typeof i30.AnnaDateFormatterPipe, typeof i31.AnnaConvertArrayToCommaSeperatedValue, typeof i32.FixedRowsPopupTableDirective, typeof i34.AnnaSpinnerLoaderComponent, typeof i35.AnnaLicensingTableComponent]>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, never, [typeof i1.CommonModule, typeof i2.NgbModule, typeof i3.FormsModule, typeof i4.MatTableModule, typeof i5.NgxSliderModule, typeof i6.NgxSkeletonLoaderModule, typeof i7.ScrollingModule, typeof i8.AnnaNoDataComponent, typeof i9.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i10.AnnaTypeofDataPipe, typeof i11.AnnaFilterSearchedTextPipe, typeof i12.AnnaReplaceCharPipe, typeof i13.AnnaBuyerApprovalIconTemplateComponent, typeof i14.AnnaLiveIconTemplateComponent, typeof i15.AnnaNotifyIconTemplateComponent, typeof i16.AnnaPayForPerformanceIconTemplateComponent, typeof i17.AnnaRejectedIconTemplateComponent, typeof i18.ShowEllipsisTextOnHoverDirective, typeof i19.AnnaIconColumnComponent, typeof i20.AnnaWeekCalendarComponent, typeof i21.AnnaCalendarFilterComponent, typeof i22.AnnaSortComponent, typeof i23.AnnaNonEditableGenericTableComponent, typeof i24.DigitOnlyDirective, typeof i25.AnnaColumnDateRangeFilterComponent, typeof i26.AnnaColumnTimeFilterComponent, typeof i27.AnnaColumnCheckboxFilterComponent, typeof i28.AnnaDeletedOrderIconTemplateComponent, typeof i29.AnnaColumnSliderFilterComponent, typeof i30.AnnaDateFormatterPipe, typeof i31.AnnaConvertArrayToCommaSeperatedValue, typeof i32.FixedRowsPopupTableDirective, typeof i33.AnnaEstIconTemplateComponent, typeof i34.AnnaSpinnerLoaderComponent, typeof i35.AnnaLicensingTableComponent, typeof i36.AnnaCustomScrollbarsComponent, typeof i37.AnnaTabComponent], [typeof i8.AnnaNoDataComponent, typeof i11.AnnaFilterSearchedTextPipe, typeof i9.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i10.AnnaTypeofDataPipe, typeof i12.AnnaReplaceCharPipe, typeof i11.AnnaFilterSearchedTextPipe, typeof i13.AnnaBuyerApprovalIconTemplateComponent, typeof i14.AnnaLiveIconTemplateComponent, typeof i15.AnnaNotifyIconTemplateComponent, typeof i16.AnnaPayForPerformanceIconTemplateComponent, typeof i16.AnnaPayForPerformanceIconTemplateComponent, typeof i17.AnnaRejectedIconTemplateComponent, typeof i18.ShowEllipsisTextOnHoverDirective, typeof i19.AnnaIconColumnComponent, typeof i20.AnnaWeekCalendarComponent, typeof i21.AnnaCalendarFilterComponent, typeof i22.AnnaSortComponent, typeof i23.AnnaNonEditableGenericTableComponent, typeof i25.AnnaColumnDateRangeFilterComponent, typeof i26.AnnaColumnTimeFilterComponent, typeof i27.AnnaColumnCheckboxFilterComponent, typeof i24.DigitOnlyDirective, typeof i28.AnnaDeletedOrderIconTemplateComponent, typeof i29.AnnaColumnSliderFilterComponent, typeof i30.AnnaDateFormatterPipe, typeof i31.AnnaConvertArrayToCommaSeperatedValue, typeof i32.FixedRowsPopupTableDirective, typeof i34.AnnaSpinnerLoaderComponent, typeof i35.AnnaLicensingTableComponent, typeof i36.AnnaCustomScrollbarsComponent, typeof i37.AnnaTabComponent]>;
40
42
  static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCoreModule>;
41
43
  }