@annalib/anna-core 2.4.0 → 2.4.3

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 (33) hide show
  1. package/esm2020/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +4 -4
  2. package/esm2020/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +4 -4
  3. package/esm2020/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +4 -4
  4. package/esm2020/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +4 -4
  5. package/esm2020/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +4 -4
  6. package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +5 -1
  7. package/esm2020/lib/anna-generic-table-lib/anna-generic-table-lib.module.mjs +5 -1
  8. package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +79 -40
  9. package/esm2020/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +4 -4
  10. package/esm2020/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +4 -4
  11. package/esm2020/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +4 -4
  12. package/esm2020/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +4 -4
  13. package/esm2020/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +4 -4
  14. package/esm2020/src/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +5 -1
  15. package/esm2020/src/lib/anna-generic-table-lib/anna-generic-table-lib.module.mjs +5 -1
  16. package/esm2020/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +79 -40
  17. package/fesm2015/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +14 -10
  18. package/fesm2015/annalib-anna-core-src-lib-anna-core-shared-lib.mjs.map +1 -1
  19. package/fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs +84 -40
  20. package/fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map +1 -1
  21. package/fesm2015/annalib-anna-core.mjs +99 -51
  22. package/fesm2015/annalib-anna-core.mjs.map +1 -1
  23. package/fesm2020/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +14 -10
  24. package/fesm2020/annalib-anna-core-src-lib-anna-core-shared-lib.mjs.map +1 -1
  25. package/fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs +84 -40
  26. package/fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map +1 -1
  27. package/fesm2020/annalib-anna-core.mjs +99 -51
  28. package/fesm2020/annalib-anna-core.mjs.map +1 -1
  29. package/lib/anna-generic-table-lib/anna-generic-table-lib.module.d.ts +3 -2
  30. package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +11 -3
  31. package/package.json +2 -2
  32. package/src/lib/anna-generic-table-lib/anna-generic-table-lib.module.d.ts +3 -2
  33. package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +11 -3
@@ -13,9 +13,10 @@ import * as i11 from "@angular-slider/ngx-slider";
13
13
  import * as i12 from "ngx-skeleton-loader";
14
14
  import * as i13 from "@angular/material/table";
15
15
  import * as i14 from "@angular/material/radio";
16
- import * as i15 from "@annalib/anna-core/src/lib/anna-core-shared-lib";
16
+ import * as i15 from "@angular/cdk/scrolling";
17
+ import * as i16 from "@annalib/anna-core/src/lib/anna-core-shared-lib";
17
18
  export declare class AnnaGenericTableLibModule {
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaGenericTableLibModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaGenericTableLibModule, [typeof i1.AnnaNonEditableGenericTableComponent, typeof i2.AnnaSortComponent, typeof i3.AnnaTableVirtualScrollViewportComponent, typeof i4.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i5.AnnaVirtualTableDirective], [typeof i6.CommonModule, typeof i7.NgbModule, typeof i8.AnnaDropdownLibModule, typeof i9.MatButtonToggleModule, typeof i10.FormsModule, typeof i11.NgxSliderModule, typeof i12.NgxSkeletonLoaderModule, typeof i13.MatTableModule, typeof i14.MatRadioModule, typeof i15.AnnaCoreSharedLibModule], [typeof i1.AnnaNonEditableGenericTableComponent, typeof i2.AnnaSortComponent, typeof i3.AnnaTableVirtualScrollViewportComponent, typeof i4.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i5.AnnaVirtualTableDirective]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaGenericTableLibModule, [typeof i1.AnnaNonEditableGenericTableComponent, typeof i2.AnnaSortComponent, typeof i3.AnnaTableVirtualScrollViewportComponent, typeof i4.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i5.AnnaVirtualTableDirective], [typeof i6.CommonModule, typeof i7.NgbModule, typeof i8.AnnaDropdownLibModule, typeof i9.MatButtonToggleModule, typeof i10.FormsModule, typeof i11.NgxSliderModule, typeof i12.NgxSkeletonLoaderModule, typeof i13.MatTableModule, typeof i14.MatRadioModule, typeof i15.ScrollingModule, typeof i16.AnnaCoreSharedLibModule], [typeof i1.AnnaNonEditableGenericTableComponent, typeof i2.AnnaSortComponent, typeof i3.AnnaTableVirtualScrollViewportComponent, typeof i4.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i5.AnnaVirtualTableDirective]>;
20
21
  static ɵinj: i0.ɵɵInjectorDeclaration<AnnaGenericTableLibModule>;
21
22
  }
@@ -1,7 +1,6 @@
1
1
  import { OnInit, QueryList, EventEmitter, SimpleChanges, OnChanges, ChangeDetectorRef, ElementRef, AfterViewChecked } from '@angular/core';
2
2
  import moment from "moment";
3
3
  import { Options } from '@angular-slider/ngx-slider';
4
- import { AnnaSortComponent } from '../anna-sort/anna-sort.component';
5
4
  import { SellerGroupHierarchy, IWeekCalendar, TooltipModel, AnnaSortService, AnnaDateTimeFormatService, NgbDateType, AnnaFilterService, IGtGeneralConfig, IGtTableHeader, ITotalRowInfo, AnnaGenericTableService, SortType, IHeaderInfo, radioButtonModel, GtColumnIconEmittedData } from "@annalib/anna-core/src/lib/anna-core-shared-lib";
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnChanges, AfterViewChecked {
@@ -96,7 +95,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
96
95
  };
97
96
  sellerGroupHierarchy: SellerGroupHierarchy[];
98
97
  showFilterTooltipTabs: boolean;
99
- sortComponent: QueryList<AnnaSortComponent>;
100
98
  isScrolledLeft: boolean;
101
99
  rowBorderWidth: number;
102
100
  showSortComponent: boolean;
@@ -127,6 +125,11 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
127
125
  isSortChanged: boolean;
128
126
  isDifferenceLessThan25Percent: boolean;
129
127
  incorrectSliderInput: boolean;
128
+ start: number;
129
+ limit: number;
130
+ end: number;
131
+ renderedData: any[];
132
+ heightOfCheckboxTooltipFilter: number;
130
133
  constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService, annaGenericTableService: AnnaGenericTableService);
131
134
  ngAfterViewChecked(): void;
132
135
  ngOnInit(): void;
@@ -202,7 +205,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
202
205
  sortedData(event: any): void;
203
206
  checkIfSortingIsApplied(): void;
204
207
  disableEnableEachColumnTooltipIcon(): void;
205
- ngAfterViewInit(): void;
206
208
  setMarginLeftForFilterIcon(): void;
207
209
  dataRowClicked(rowData: any): void;
208
210
  radioButtonClicked(data: any, action: string, isDisabled: boolean): void;
@@ -239,6 +241,12 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
239
241
  trackByTooltipModelId(index: number, item: TooltipModel): number;
240
242
  setActiveStateObject(): void;
241
243
  setIsDifference(value: boolean): void;
244
+ resetIndex(): void;
245
+ onTableContainerScroll(e: any): void;
246
+ getTableData(start: number, end: number): any[];
247
+ updateIndex(): void;
248
+ setInitialRowsForTable(): void;
249
+ tableContainerScrolled(event: any): void;
242
250
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
243
251
  static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": "showSkeletonLoading"; "tableHeaders": "tableHeaders"; "tableData": "tableData"; "clonedTableData": "clonedTableData"; "numberOfSkeletonRows": "numberOfSkeletonRows"; "numberOfSkeletonColumns": "numberOfSkeletonColumns"; "gtGeneralConfig": "gtGeneralConfig"; "totalRowInfo": "totalRowInfo"; "gtDimension": "gtDimension"; "tableClass": "tableClass"; "maximumRowsWhichCanBeRenderedWithoutScroll": "maximumRowsWhichCanBeRenderedWithoutScroll"; "includeBorderInTableHeight": "includeBorderInTableHeight"; }, { "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"; }, never, never>;
244
252
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "2.4.0",
3
+ "version": "2.4.3",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "2.0.3",
6
6
  "@angular/common": "^13.2.0",
@@ -58,4 +58,4 @@
58
58
  }
59
59
  },
60
60
  "sideEffects": false
61
- }
61
+ }
@@ -13,9 +13,10 @@ import * as i11 from "@angular-slider/ngx-slider";
13
13
  import * as i12 from "ngx-skeleton-loader";
14
14
  import * as i13 from "@angular/material/table";
15
15
  import * as i14 from "@angular/material/radio";
16
- import * as i15 from "@annalib/anna-core/src/lib/anna-core-shared-lib";
16
+ import * as i15 from "@angular/cdk/scrolling";
17
+ import * as i16 from "@annalib/anna-core/src/lib/anna-core-shared-lib";
17
18
  export declare class AnnaGenericTableLibModule {
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaGenericTableLibModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaGenericTableLibModule, [typeof i1.AnnaNonEditableGenericTableComponent, typeof i2.AnnaSortComponent, typeof i3.AnnaTableVirtualScrollViewportComponent, typeof i4.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i5.AnnaVirtualTableDirective], [typeof i6.CommonModule, typeof i7.NgbModule, typeof i8.AnnaDropdownLibModule, typeof i9.MatButtonToggleModule, typeof i10.FormsModule, typeof i11.NgxSliderModule, typeof i12.NgxSkeletonLoaderModule, typeof i13.MatTableModule, typeof i14.MatRadioModule, typeof i15.AnnaCoreSharedLibModule], [typeof i1.AnnaNonEditableGenericTableComponent, typeof i2.AnnaSortComponent, typeof i3.AnnaTableVirtualScrollViewportComponent, typeof i4.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i5.AnnaVirtualTableDirective]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaGenericTableLibModule, [typeof i1.AnnaNonEditableGenericTableComponent, typeof i2.AnnaSortComponent, typeof i3.AnnaTableVirtualScrollViewportComponent, typeof i4.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i5.AnnaVirtualTableDirective], [typeof i6.CommonModule, typeof i7.NgbModule, typeof i8.AnnaDropdownLibModule, typeof i9.MatButtonToggleModule, typeof i10.FormsModule, typeof i11.NgxSliderModule, typeof i12.NgxSkeletonLoaderModule, typeof i13.MatTableModule, typeof i14.MatRadioModule, typeof i15.ScrollingModule, typeof i16.AnnaCoreSharedLibModule], [typeof i1.AnnaNonEditableGenericTableComponent, typeof i2.AnnaSortComponent, typeof i3.AnnaTableVirtualScrollViewportComponent, typeof i4.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i5.AnnaVirtualTableDirective]>;
20
21
  static ɵinj: i0.ɵɵInjectorDeclaration<AnnaGenericTableLibModule>;
21
22
  }
@@ -1,7 +1,6 @@
1
1
  import { OnInit, QueryList, EventEmitter, SimpleChanges, OnChanges, ChangeDetectorRef, ElementRef, AfterViewChecked } from '@angular/core';
2
2
  import moment from "moment";
3
3
  import { Options } from '@angular-slider/ngx-slider';
4
- import { AnnaSortComponent } from '../anna-sort/anna-sort.component';
5
4
  import { SellerGroupHierarchy, IWeekCalendar, TooltipModel, AnnaSortService, AnnaDateTimeFormatService, NgbDateType, AnnaFilterService, IGtGeneralConfig, IGtTableHeader, ITotalRowInfo, AnnaGenericTableService, SortType, IHeaderInfo, radioButtonModel, GtColumnIconEmittedData } from "@annalib/anna-core/src/lib/anna-core-shared-lib";
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnChanges, AfterViewChecked {
@@ -96,7 +95,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
96
95
  };
97
96
  sellerGroupHierarchy: SellerGroupHierarchy[];
98
97
  showFilterTooltipTabs: boolean;
99
- sortComponent: QueryList<AnnaSortComponent>;
100
98
  isScrolledLeft: boolean;
101
99
  rowBorderWidth: number;
102
100
  showSortComponent: boolean;
@@ -127,6 +125,11 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
127
125
  isSortChanged: boolean;
128
126
  isDifferenceLessThan25Percent: boolean;
129
127
  incorrectSliderInput: boolean;
128
+ start: number;
129
+ limit: number;
130
+ end: number;
131
+ renderedData: any[];
132
+ heightOfCheckboxTooltipFilter: number;
130
133
  constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService, annaGenericTableService: AnnaGenericTableService);
131
134
  ngAfterViewChecked(): void;
132
135
  ngOnInit(): void;
@@ -202,7 +205,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
202
205
  sortedData(event: any): void;
203
206
  checkIfSortingIsApplied(): void;
204
207
  disableEnableEachColumnTooltipIcon(): void;
205
- ngAfterViewInit(): void;
206
208
  setMarginLeftForFilterIcon(): void;
207
209
  dataRowClicked(rowData: any): void;
208
210
  radioButtonClicked(data: any, action: string, isDisabled: boolean): void;
@@ -239,6 +241,12 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
239
241
  trackByTooltipModelId(index: number, item: TooltipModel): number;
240
242
  setActiveStateObject(): void;
241
243
  setIsDifference(value: boolean): void;
244
+ resetIndex(): void;
245
+ onTableContainerScroll(e: any): void;
246
+ getTableData(start: number, end: number): any[];
247
+ updateIndex(): void;
248
+ setInitialRowsForTable(): void;
249
+ tableContainerScrolled(event: any): void;
242
250
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
243
251
  static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": "showSkeletonLoading"; "tableHeaders": "tableHeaders"; "tableData": "tableData"; "clonedTableData": "clonedTableData"; "numberOfSkeletonRows": "numberOfSkeletonRows"; "numberOfSkeletonColumns": "numberOfSkeletonColumns"; "gtGeneralConfig": "gtGeneralConfig"; "totalRowInfo": "totalRowInfo"; "gtDimension": "gtDimension"; "tableClass": "tableClass"; "maximumRowsWhichCanBeRenderedWithoutScroll": "maximumRowsWhichCanBeRenderedWithoutScroll"; "includeBorderInTableHeight": "includeBorderInTableHeight"; }, { "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"; }, never, never>;
244
252
  }