@annalib/anna-core 20.2.19 → 20.2.21

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 (160) hide show
  1. package/README.md +28 -28
  2. package/{esm2020 → esm2022}/annalib-anna-core.mjs +4 -4
  3. package/esm2022/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +14 -0
  4. package/esm2022/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.mjs +13 -0
  5. package/esm2022/lib/anna-core-shared-lib/components/anna-est-icon-template/anna-est-icon-template.component.mjs +11 -0
  6. package/esm2022/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +43 -0
  7. package/esm2022/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +14 -0
  8. package/esm2022/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +22 -0
  9. package/esm2022/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +13 -0
  10. package/esm2022/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +22 -0
  11. package/esm2022/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +14 -0
  12. package/esm2022/lib/anna-core-shared-lib/constants/shared.constant.mjs +44 -0
  13. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.mjs +273 -273
  14. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/directives/fixed-rows-popup-table/fixed-rows-popup-table.directive.mjs +46 -46
  15. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +39 -39
  16. package/esm2022/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +2 -0
  17. package/esm2022/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +2 -0
  18. package/esm2022/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +11 -0
  19. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/models/anna-sort.model.mjs +7 -7
  20. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +30 -30
  21. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/pipes/annaConvertArrayToCommaSeperatedValue.pipe.mjs +39 -39
  22. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.mjs +27 -27
  23. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/pipes/annaDateFormatter.pipe.mjs +22 -22
  24. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +55 -55
  25. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.mjs +26 -26
  26. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.mjs +17 -17
  27. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +208 -208
  28. package/esm2022/lib/anna-core-shared-lib/services/anna-filter.service.mjs +1259 -0
  29. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +151 -151
  30. package/esm2022/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +135 -0
  31. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/services/anna-number-format.service.mjs +53 -53
  32. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/services/anna-persisting-filter.service.mjs +65 -65
  33. package/{esm2020 → esm2022}/lib/anna-core-shared-lib/services/anna-sort.service.mjs +178 -178
  34. package/esm2022/lib/anna-core.module.mjs +226 -0
  35. package/esm2022/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +160 -0
  36. package/esm2022/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +371 -0
  37. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.mjs +252 -0
  38. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.mjs +185 -0
  39. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.mjs +312 -0
  40. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +298 -0
  41. package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +845 -0
  42. package/esm2022/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +64 -0
  43. package/esm2022/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +352 -0
  44. package/esm2022/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.mjs +204 -0
  45. package/{esm2020 → esm2022}/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +2 -2
  46. package/esm2022/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +180 -0
  47. package/{esm2020 → esm2022}/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +2 -2
  48. package/{esm2020 → esm2022}/public-api.mjs +58 -58
  49. package/fesm2022/annalib-anna-core.mjs +6063 -0
  50. package/fesm2022/annalib-anna-core.mjs.map +1 -0
  51. package/index.d.ts +5 -5
  52. package/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.d.ts +8 -8
  53. package/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.d.ts +8 -8
  54. package/lib/anna-core-shared-lib/components/anna-est-icon-template/anna-est-icon-template.component.d.ts +5 -5
  55. package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +17 -17
  56. package/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.d.ts +8 -8
  57. package/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.d.ts +11 -11
  58. package/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.d.ts +8 -8
  59. package/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.d.ts +12 -12
  60. package/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.d.ts +8 -8
  61. package/lib/anna-core-shared-lib/constants/shared.constant.d.ts +42 -41
  62. package/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.d.ts +34 -34
  63. package/lib/anna-core-shared-lib/directives/fixed-rows-popup-table/fixed-rows-popup-table.directive.d.ts +16 -16
  64. package/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts +10 -10
  65. package/lib/anna-core-shared-lib/models/anna-generic-data-type.model.d.ts +16 -16
  66. package/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.d.ts +97 -97
  67. package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +118 -118
  68. package/lib/anna-core-shared-lib/models/anna-sort.model.d.ts +11 -11
  69. package/lib/anna-core-shared-lib/models/anna-tooltip.model.d.ts +25 -25
  70. package/lib/anna-core-shared-lib/pipes/annaConvertArrayToCommaSeperatedValue.pipe.d.ts +9 -9
  71. package/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.d.ts +9 -9
  72. package/lib/anna-core-shared-lib/pipes/annaDateFormatter.pipe.d.ts +8 -8
  73. package/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.d.ts +9 -9
  74. package/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.d.ts +9 -9
  75. package/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.d.ts +7 -7
  76. package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +28 -28
  77. package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +154 -154
  78. package/lib/anna-core-shared-lib/services/anna-generic-table.service.d.ts +27 -27
  79. package/lib/anna-core-shared-lib/services/anna-global-config.service.d.ts +21 -21
  80. package/lib/anna-core-shared-lib/services/anna-number-format.service.d.ts +8 -8
  81. package/lib/anna-core-shared-lib/services/anna-persisting-filter.service.d.ts +9 -9
  82. package/lib/anna-core-shared-lib/services/anna-sort.service.d.ts +18 -18
  83. package/lib/anna-core.module.d.ts +45 -45
  84. package/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +45 -45
  85. package/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.d.ts +70 -70
  86. package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.d.ts +60 -60
  87. package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.d.ts +53 -53
  88. package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.d.ts +65 -65
  89. package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.d.ts +83 -83
  90. package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +174 -174
  91. package/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +17 -17
  92. package/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +141 -141
  93. package/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.d.ts +89 -89
  94. package/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.d.ts +1 -1
  95. package/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts +45 -45
  96. package/lib/anna-generic-table-lib/directives/anna-virtual-table/index.d.ts +1 -1
  97. package/package.json +5 -11
  98. package/public-api.d.ts +42 -42
  99. package/src/lib/anna-common-scss/_animate.scss +27 -27
  100. package/src/lib/anna-common-scss/_application-spacing.scss +7 -7
  101. package/src/lib/anna-common-scss/_bootstrap-tooltip.scss +27 -27
  102. package/src/lib/anna-common-scss/_button.scss +18 -18
  103. package/src/lib/anna-common-scss/_colors.scss +107 -107
  104. package/src/lib/anna-common-scss/_common-order-listing-table.scss +172 -172
  105. package/src/lib/anna-common-scss/_custom-anna-datepicker.scss +14 -14
  106. package/src/lib/anna-common-scss/_customDropdown.scss +123 -123
  107. package/src/lib/anna-common-scss/_dashboard-partials.scss +106 -106
  108. package/src/lib/anna-common-scss/_date-picker-form.scss +87 -87
  109. package/src/lib/anna-common-scss/_easy-filter.scss +138 -138
  110. package/src/lib/anna-common-scss/_edit-filter-popup.scss +70 -70
  111. package/src/lib/anna-common-scss/_filters.scss +712 -712
  112. package/src/lib/anna-common-scss/_font.scss +9 -9
  113. package/src/lib/anna-common-scss/_fonts.scss +86 -86
  114. package/src/lib/anna-common-scss/_generic-modal.scss +63 -63
  115. package/src/lib/anna-common-scss/_generic-table-common.scss +198 -198
  116. package/src/lib/anna-common-scss/_gt-table.scss +425 -425
  117. package/src/lib/anna-common-scss/_legend.scss +11 -11
  118. package/src/lib/anna-common-scss/_mat-button-toggle.scss +38 -38
  119. package/src/lib/anna-common-scss/_mat-menu.scss +17 -17
  120. package/src/lib/anna-common-scss/_mixins.scss +187 -187
  121. package/src/lib/anna-common-scss/_modal.scss +37 -37
  122. package/src/lib/anna-common-scss/_popup-filter-toggle-button.scss +36 -36
  123. package/src/lib/anna-common-scss/_scrollbar.scss +14 -14
  124. package/src/lib/anna-common-scss/_sort.scss +30 -30
  125. package/src/lib/anna-common-scss/_toggle.scss +86 -86
  126. package/src/lib/anna-common-scss/style.scss +1 -1
  127. package/src/lib/anna-common-scss/third-party-lib/_angular-material-mat-radio.scss +25 -25
  128. package/src/lib/anna-common-scss/third-party-lib/_anna-mat-button-toggle-group-size-lg.scss +34 -34
  129. package/src/lib/anna-common-scss/third-party-lib/_mat-autocomplete.scss +31 -31
  130. package/esm2020/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +0 -14
  131. package/esm2020/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.mjs +0 -13
  132. package/esm2020/lib/anna-core-shared-lib/components/anna-est-icon-template/anna-est-icon-template.component.mjs +0 -11
  133. package/esm2020/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +0 -43
  134. package/esm2020/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +0 -14
  135. package/esm2020/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +0 -22
  136. package/esm2020/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +0 -13
  137. package/esm2020/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +0 -22
  138. package/esm2020/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +0 -14
  139. package/esm2020/lib/anna-core-shared-lib/constants/shared.constant.mjs +0 -43
  140. package/esm2020/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +0 -2
  141. package/esm2020/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +0 -2
  142. package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +0 -11
  143. package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +0 -1259
  144. package/esm2020/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +0 -135
  145. package/esm2020/lib/anna-core.module.mjs +0 -237
  146. package/esm2020/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +0 -160
  147. package/esm2020/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +0 -371
  148. package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.mjs +0 -252
  149. package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.mjs +0 -185
  150. package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.mjs +0 -312
  151. package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +0 -298
  152. package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +0 -840
  153. package/esm2020/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +0 -64
  154. package/esm2020/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +0 -352
  155. package/esm2020/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.mjs +0 -204
  156. package/esm2020/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +0 -180
  157. package/fesm2015/annalib-anna-core.mjs +0 -6076
  158. package/fesm2015/annalib-anna-core.mjs.map +0 -1
  159. package/fesm2020/annalib-anna-core.mjs +0 -6068
  160. package/fesm2020/annalib-anna-core.mjs.map +0 -1
@@ -1,141 +1,141 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Directionality } from '@angular/cdk/bidi';
9
- import { ListRange } from '@angular/cdk/collections';
10
- import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
11
- import { Observable } from 'rxjs';
12
- import { CdkScrollable, CdkVirtualScrollRepeater, VirtualScrollStrategy, ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
13
- import { AnnaGtHelperService } from '../../../anna-core-shared-lib/services/anna-generic-table.service';
14
- import * as i0 from "@angular/core";
15
- /**
16
- * A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`.
17
- * Uses `top: #px` instead of `transform: translateY(#px)` like the cdk virtual scroll viewport does
18
- * which avoids flickering of elements in the transformed container with `position: sticky`.
19
- */
20
- export declare class AnnaTableVirtualScrollViewportComponent extends CdkScrollable implements OnInit, OnDestroy {
21
- elementRef: ElementRef<HTMLElement>;
22
- private _changeDetectorRef;
23
- private _scrollStrategy;
24
- private annaGtService;
25
- /** Emits when the viewport is detached from a CdkVirtualForOf. */
26
- private _detachedSubject;
27
- /** Emits when the rendered range changes. */
28
- private _renderedRangeSubject;
29
- /** The direction the viewport scrolls. */
30
- get orientation(): 'horizontal' | 'vertical';
31
- set orientation(orientation: 'horizontal' | 'vertical');
32
- private _orientation;
33
- /** Emits when the index of the first element visible in the viewport changes. */
34
- scrolledIndexChange: Observable<number>;
35
- /** The element that wraps the rendered content. */
36
- _contentWrapper: ElementRef<HTMLElement>;
37
- /** A stream that emits whenever the rendered range changes. */
38
- renderedRangeStream: Observable<ListRange>;
39
- /**
40
- * The total size of all content (in pixels), including content that is not currently rendered.
41
- */
42
- private _totalContentSize;
43
- /** A string representing the `style.width` property value to be used for the spacer element. */
44
- _totalContentWidth: string;
45
- /** A string representing the `style.height` property value to be used for the spacer element. */
46
- _totalContentHeight: string;
47
- /**
48
- * The CSS transform applied to the rendered subset of items so that they appear within the bounds
49
- * of the visible viewport.
50
- */
51
- private _renderedContentTransform;
52
- /** The currently rendered range of indices. */
53
- private _renderedRange;
54
- /** The length of the data bound to this viewport (in number of items). */
55
- private _dataLength;
56
- /** The size of the viewport (in pixels). */
57
- private _viewportSize;
58
- /** the currently attached CdkVirtualScrollRepeater. */
59
- private _forOf;
60
- /** The last rendered content offset that was set. */
61
- private _renderedContentOffset;
62
- /**
63
- * Whether the last rendered content offset was to the end of the content (and therefore needs to
64
- * be rewritten as an offset to the start of the content).
65
- */
66
- private _renderedContentOffsetNeedsRewrite;
67
- /** Whether there is a pending change detection cycle. */
68
- private _isChangeDetectionPending;
69
- /** A list of functions to run after the next change detection cycle. */
70
- private _runAfterChangeDetection;
71
- /** Subscription to changes in the viewport size. */
72
- private _viewportChanges;
73
- constructor(elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, _scrollStrategy: VirtualScrollStrategy, dir: Directionality, scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler, annaGtService: AnnaGtHelperService);
74
- ngOnInit(): void;
75
- ngOnDestroy(): void;
76
- /** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
77
- attach(forOf: CdkVirtualScrollRepeater<any>): void;
78
- /** Detaches the current `CdkVirtualForOf`. */
79
- detach(): void;
80
- /** Gets the length of the data bound to this viewport (in number of items). */
81
- getDataLength(): number;
82
- /** Gets the size of the viewport (in pixels). */
83
- getViewportSize(): number;
84
- /** Get the current rendered range of items. */
85
- getRenderedRange(): ListRange;
86
- /**
87
- * Sets the total size of all content (in pixels), including content that is not currently
88
- * rendered.
89
- */
90
- setTotalContentSize(size: number): void;
91
- /** Sets the currently rendered range of indices. */
92
- setRenderedRange(range: ListRange): void;
93
- /**
94
- * Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
95
- */
96
- getOffsetToRenderedContentStart(): number | null;
97
- /**
98
- * Sets the offset from the start of the viewport to either the start or end of the rendered data
99
- * (in pixels).
100
- */
101
- setRenderedContentOffset(offset: number): void;
102
- /**
103
- * Scrolls to the given offset from the start of the viewport. Please note that this is not always
104
- * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
105
- * direction, this would be the equivalent of setting a fictional `scrollRight` property.
106
- * @param offset The offset to scroll to.
107
- * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
108
- */
109
- scrollToOffset(offset: number, behavior?: ScrollBehavior): void;
110
- /**
111
- * Scrolls to the offset for the given index.
112
- * @param index The index of the element to scroll to.
113
- * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
114
- */
115
- scrollToIndex(index: number, behavior?: ScrollBehavior): void;
116
- /**
117
- * Gets the current scroll offset from the start of the viewport (in pixels).
118
- * @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
119
- * in horizontal mode.
120
- */
121
- measureScrollOffset(from?: 'top' | 'left' | 'right' | 'bottom' | 'start' | 'end'): number;
122
- /** Measure the combined size of all of the rendered items. */
123
- measureRenderedContentSize(): number;
124
- /**
125
- * Measure the total combined size of the given range. Throws if the range includes items that are
126
- * not rendered.
127
- */
128
- measureRangeSize(range: ListRange): number;
129
- /** Update the viewport dimensions and re-render. */
130
- checkViewportSize(): void;
131
- /** Measure the viewport size. */
132
- private _measureViewportSize;
133
- /** Queue up change detection to run. */
134
- private _markChangeDetectionNeeded;
135
- /** Run change detection. */
136
- private _doChangeDetection;
137
- /** Calculates the `style.width` and `style.height` for the spacer element. */
138
- private _calculateSpacerSize;
139
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnaTableVirtualScrollViewportComponent, [null, null, null, { optional: true; }, { optional: true; }, null, null, null]>;
140
- static ɵcmp: i0.ɵɵComponentDeclaration<AnnaTableVirtualScrollViewportComponent, "anna-table-virtual-scroll-viewport", never, { "orientation": "orientation"; }, { "scrolledIndexChange": "scrolledIndexChange"; }, never, ["*"], true, never>;
141
- }
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { Directionality } from '@angular/cdk/bidi';
9
+ import { ListRange } from '@angular/cdk/collections';
10
+ import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
11
+ import { Observable } from 'rxjs';
12
+ import { CdkScrollable, CdkVirtualScrollRepeater, VirtualScrollStrategy, ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
13
+ import { AnnaGtHelperService } from '../../../anna-core-shared-lib/services/anna-generic-table.service';
14
+ import * as i0 from "@angular/core";
15
+ /**
16
+ * A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`.
17
+ * Uses `top: #px` instead of `transform: translateY(#px)` like the cdk virtual scroll viewport does
18
+ * which avoids flickering of elements in the transformed container with `position: sticky`.
19
+ */
20
+ export declare class AnnaTableVirtualScrollViewportComponent extends CdkScrollable implements OnInit, OnDestroy {
21
+ elementRef: ElementRef<HTMLElement>;
22
+ private _changeDetectorRef;
23
+ private _scrollStrategy;
24
+ private annaGtService;
25
+ /** Emits when the viewport is detached from a CdkVirtualForOf. */
26
+ private _detachedSubject;
27
+ /** Emits when the rendered range changes. */
28
+ private _renderedRangeSubject;
29
+ /** The direction the viewport scrolls. */
30
+ get orientation(): 'horizontal' | 'vertical';
31
+ set orientation(orientation: 'horizontal' | 'vertical');
32
+ private _orientation;
33
+ /** Emits when the index of the first element visible in the viewport changes. */
34
+ scrolledIndexChange: Observable<number>;
35
+ /** The element that wraps the rendered content. */
36
+ _contentWrapper: ElementRef<HTMLElement>;
37
+ /** A stream that emits whenever the rendered range changes. */
38
+ renderedRangeStream: Observable<ListRange>;
39
+ /**
40
+ * The total size of all content (in pixels), including content that is not currently rendered.
41
+ */
42
+ private _totalContentSize;
43
+ /** A string representing the `style.width` property value to be used for the spacer element. */
44
+ _totalContentWidth: string;
45
+ /** A string representing the `style.height` property value to be used for the spacer element. */
46
+ _totalContentHeight: string;
47
+ /**
48
+ * The CSS transform applied to the rendered subset of items so that they appear within the bounds
49
+ * of the visible viewport.
50
+ */
51
+ private _renderedContentTransform;
52
+ /** The currently rendered range of indices. */
53
+ private _renderedRange;
54
+ /** The length of the data bound to this viewport (in number of items). */
55
+ private _dataLength;
56
+ /** The size of the viewport (in pixels). */
57
+ private _viewportSize;
58
+ /** the currently attached CdkVirtualScrollRepeater. */
59
+ private _forOf;
60
+ /** The last rendered content offset that was set. */
61
+ private _renderedContentOffset;
62
+ /**
63
+ * Whether the last rendered content offset was to the end of the content (and therefore needs to
64
+ * be rewritten as an offset to the start of the content).
65
+ */
66
+ private _renderedContentOffsetNeedsRewrite;
67
+ /** Whether there is a pending change detection cycle. */
68
+ private _isChangeDetectionPending;
69
+ /** A list of functions to run after the next change detection cycle. */
70
+ private _runAfterChangeDetection;
71
+ /** Subscription to changes in the viewport size. */
72
+ private _viewportChanges;
73
+ constructor(elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, _scrollStrategy: VirtualScrollStrategy, dir: Directionality, scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler, annaGtService: AnnaGtHelperService);
74
+ ngOnInit(): void;
75
+ ngOnDestroy(): void;
76
+ /** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
77
+ attach(forOf: CdkVirtualScrollRepeater<any>): void;
78
+ /** Detaches the current `CdkVirtualForOf`. */
79
+ detach(): void;
80
+ /** Gets the length of the data bound to this viewport (in number of items). */
81
+ getDataLength(): number;
82
+ /** Gets the size of the viewport (in pixels). */
83
+ getViewportSize(): number;
84
+ /** Get the current rendered range of items. */
85
+ getRenderedRange(): ListRange;
86
+ /**
87
+ * Sets the total size of all content (in pixels), including content that is not currently
88
+ * rendered.
89
+ */
90
+ setTotalContentSize(size: number): void;
91
+ /** Sets the currently rendered range of indices. */
92
+ setRenderedRange(range: ListRange): void;
93
+ /**
94
+ * Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
95
+ */
96
+ getOffsetToRenderedContentStart(): number | null;
97
+ /**
98
+ * Sets the offset from the start of the viewport to either the start or end of the rendered data
99
+ * (in pixels).
100
+ */
101
+ setRenderedContentOffset(offset: number): void;
102
+ /**
103
+ * Scrolls to the given offset from the start of the viewport. Please note that this is not always
104
+ * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
105
+ * direction, this would be the equivalent of setting a fictional `scrollRight` property.
106
+ * @param offset The offset to scroll to.
107
+ * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
108
+ */
109
+ scrollToOffset(offset: number, behavior?: ScrollBehavior): void;
110
+ /**
111
+ * Scrolls to the offset for the given index.
112
+ * @param index The index of the element to scroll to.
113
+ * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
114
+ */
115
+ scrollToIndex(index: number, behavior?: ScrollBehavior): void;
116
+ /**
117
+ * Gets the current scroll offset from the start of the viewport (in pixels).
118
+ * @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
119
+ * in horizontal mode.
120
+ */
121
+ measureScrollOffset(from?: 'top' | 'left' | 'right' | 'bottom' | 'start' | 'end'): number;
122
+ /** Measure the combined size of all of the rendered items. */
123
+ measureRenderedContentSize(): number;
124
+ /**
125
+ * Measure the total combined size of the given range. Throws if the range includes items that are
126
+ * not rendered.
127
+ */
128
+ measureRangeSize(range: ListRange): number;
129
+ /** Update the viewport dimensions and re-render. */
130
+ checkViewportSize(): void;
131
+ /** Measure the viewport size. */
132
+ private _measureViewportSize;
133
+ /** Queue up change detection to run. */
134
+ private _markChangeDetectionNeeded;
135
+ /** Run change detection. */
136
+ private _doChangeDetection;
137
+ /** Calculates the `style.width` and `style.height` for the spacer element. */
138
+ private _calculateSpacerSize;
139
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaTableVirtualScrollViewportComponent, [null, null, null, { optional: true; }, { optional: true; }, null, null, null]>;
140
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaTableVirtualScrollViewportComponent, "anna-table-virtual-scroll-viewport", never, { "orientation": { "alias": "orientation"; "required": false; }; }, { "scrolledIndexChange": "scrolledIndexChange"; }, never, ["*"], true, never>;
141
+ }
@@ -1,89 +1,89 @@
1
- import { NumberInput } from '@angular/cdk/coercion';
2
- import { CdkVirtualScrollViewport, VirtualScrollStrategy } from '@angular/cdk/scrolling';
3
- import { AfterContentInit, QueryList, SimpleChanges } from '@angular/core';
4
- import { MatHeaderRowDef } from '@angular/material/table';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * A custom scroll strategy that accepts a static row height, static header height,
8
- * and a buffer size. The strategy
9
- */
10
- export declare class AnnaFixedRowSizeTableVirtualScrollStrategy implements VirtualScrollStrategy {
11
- viewport: CdkVirtualScrollViewport | null;
12
- private buffer;
13
- private headerHeight;
14
- private rowHeight;
15
- constructor(rowHeight: number, buffer: number, headerHeight: number);
16
- private _scrolledIndexChange;
17
- scrolledIndexChange: import("rxjs").Observable<number>;
18
- /**
19
- * Attaches this scroll strategy to a viewport.
20
- * @param viewport The viewport to attach this strategy to.
21
- */
22
- attach(viewport: CdkVirtualScrollViewport): void;
23
- /**
24
- * Detaches this scroll strategy from the currently attached viewport.
25
- */
26
- detach(): void;
27
- onContentScrolled(): void;
28
- onDataLengthChanged(): void;
29
- onContentRendered(): void;
30
- onRenderedOffsetChanged(): void;
31
- scrollToIndex(index: number, behavior: ScrollBehavior): void;
32
- /**
33
- * Update the item size and buffer size.
34
- * @param rowHeight The height of a row in the virtually scrolling table.
35
- * @param buffer The number of rows to buffer outside the viewport.
36
- * @param headerHeight The total height of the table header, including all header rows.
37
- */
38
- updateRowHeightAndBuffer(rowHeight: number, buffer: number, headerHeight: number): void;
39
- protected updateRenderedRange(): void;
40
- protected updateTotalContentSize(): void;
41
- }
42
- /**
43
- * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
44
- * `FixedSizeVirtualScrollStrategy` from the given directive.
45
- * @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
46
- * `FixedSizeVirtualScrollStrategy` from.
47
- */
48
- export declare function fixedSizeVirtualScrollStrategyFactory(fixedSizeDir: AnnaFixedRowSizeTableVirtualScrollStrategyDirective): AnnaFixedRowSizeTableVirtualScrollStrategy;
49
- export declare class AnnaFixedRowSizeTableVirtualScrollStrategyDirective implements AfterContentInit {
50
- /** The height of rows in the table (in pixels). Defaults to 30. */
51
- set rowHeight(value: number);
52
- get rowHeight(): number;
53
- private _rowHeight;
54
- /**
55
- * The height of header rows in the table (in pixels). Defaults to 30.
56
- */
57
- set headerRowHeight(value: number);
58
- get headerRowHeight(): number;
59
- private _headerRowHeight;
60
- /**
61
- * The number of buffered rows rendered beyond the viewport.
62
- * If the number of buffered rows dips below this number, more rows will be rendered. Defaults to 20.
63
- */
64
- set buffer(value: number);
65
- get buffer(): number;
66
- private _buffer;
67
- set headerRows(value: number | null | undefined);
68
- get headerRows(): number | null | undefined;
69
- private _headerRows;
70
- /**
71
- * Using ContentChildren here fails to pick up row defs that are added programmatically,
72
- * but we don't really have a way of handling that without accessing private methods of
73
- * the CdkTable. Adding header row defs programmatically is uncommon, so ContentChildren
74
- * is usually sufficient. The explicit `headerRows` input above allows the number of rows
75
- * to be set by the developer to override the QueryList-driven behavior.
76
- */
77
- headerRowsQuery: QueryList<MatHeaderRowDef>;
78
- private headerRowCount;
79
- /** The scroll strategy used by this directive. */
80
- scrollStrategy: AnnaFixedRowSizeTableVirtualScrollStrategy;
81
- ngOnChanges(change: SimpleChanges): void;
82
- ngAfterContentInit(): void;
83
- private handleChange;
84
- static ngAcceptInputType_rowHeight: NumberInput;
85
- static ngAcceptInputType_buffer: NumberInput;
86
- static ngAcceptInputType_headerRowHeight: NumberInput;
87
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFixedRowSizeTableVirtualScrollStrategyDirective, never>;
88
- static ɵdir: i0.ɵɵDirectiveDeclaration<AnnaFixedRowSizeTableVirtualScrollStrategyDirective, "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]", never, { "rowHeight": "rowHeight"; "headerRowHeight": "headerRowHeight"; "buffer": "buffer"; "headerRows": "headerRows"; }, {}, ["headerRowsQuery"], never, true, never>;
89
- }
1
+ import { NumberInput } from '@angular/cdk/coercion';
2
+ import { CdkVirtualScrollViewport, VirtualScrollStrategy } from '@angular/cdk/scrolling';
3
+ import { AfterContentInit, QueryList, SimpleChanges } from '@angular/core';
4
+ import { MatHeaderRowDef } from '@angular/material/table';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * A custom scroll strategy that accepts a static row height, static header height,
8
+ * and a buffer size. The strategy
9
+ */
10
+ export declare class AnnaFixedRowSizeTableVirtualScrollStrategy implements VirtualScrollStrategy {
11
+ viewport: CdkVirtualScrollViewport | null;
12
+ private buffer;
13
+ private headerHeight;
14
+ private rowHeight;
15
+ constructor(rowHeight: number, buffer: number, headerHeight: number);
16
+ private _scrolledIndexChange;
17
+ scrolledIndexChange: import("rxjs").Observable<number>;
18
+ /**
19
+ * Attaches this scroll strategy to a viewport.
20
+ * @param viewport The viewport to attach this strategy to.
21
+ */
22
+ attach(viewport: CdkVirtualScrollViewport): void;
23
+ /**
24
+ * Detaches this scroll strategy from the currently attached viewport.
25
+ */
26
+ detach(): void;
27
+ onContentScrolled(): void;
28
+ onDataLengthChanged(): void;
29
+ onContentRendered(): void;
30
+ onRenderedOffsetChanged(): void;
31
+ scrollToIndex(index: number, behavior: ScrollBehavior): void;
32
+ /**
33
+ * Update the item size and buffer size.
34
+ * @param rowHeight The height of a row in the virtually scrolling table.
35
+ * @param buffer The number of rows to buffer outside the viewport.
36
+ * @param headerHeight The total height of the table header, including all header rows.
37
+ */
38
+ updateRowHeightAndBuffer(rowHeight: number, buffer: number, headerHeight: number): void;
39
+ protected updateRenderedRange(): void;
40
+ protected updateTotalContentSize(): void;
41
+ }
42
+ /**
43
+ * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
44
+ * `FixedSizeVirtualScrollStrategy` from the given directive.
45
+ * @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
46
+ * `FixedSizeVirtualScrollStrategy` from.
47
+ */
48
+ export declare function fixedSizeVirtualScrollStrategyFactory(fixedSizeDir: AnnaFixedRowSizeTableVirtualScrollStrategyDirective): AnnaFixedRowSizeTableVirtualScrollStrategy;
49
+ export declare class AnnaFixedRowSizeTableVirtualScrollStrategyDirective implements AfterContentInit {
50
+ /** The height of rows in the table (in pixels). Defaults to 30. */
51
+ set rowHeight(value: number);
52
+ get rowHeight(): number;
53
+ private _rowHeight;
54
+ /**
55
+ * The height of header rows in the table (in pixels). Defaults to 30.
56
+ */
57
+ set headerRowHeight(value: number);
58
+ get headerRowHeight(): number;
59
+ private _headerRowHeight;
60
+ /**
61
+ * The number of buffered rows rendered beyond the viewport.
62
+ * If the number of buffered rows dips below this number, more rows will be rendered. Defaults to 20.
63
+ */
64
+ set buffer(value: number);
65
+ get buffer(): number;
66
+ private _buffer;
67
+ set headerRows(value: number | null | undefined);
68
+ get headerRows(): number | null | undefined;
69
+ private _headerRows;
70
+ /**
71
+ * Using ContentChildren here fails to pick up row defs that are added programmatically,
72
+ * but we don't really have a way of handling that without accessing private methods of
73
+ * the CdkTable. Adding header row defs programmatically is uncommon, so ContentChildren
74
+ * is usually sufficient. The explicit `headerRows` input above allows the number of rows
75
+ * to be set by the developer to override the QueryList-driven behavior.
76
+ */
77
+ headerRowsQuery: QueryList<MatHeaderRowDef>;
78
+ private headerRowCount;
79
+ /** The scroll strategy used by this directive. */
80
+ scrollStrategy: AnnaFixedRowSizeTableVirtualScrollStrategy;
81
+ ngOnChanges(change: SimpleChanges): void;
82
+ ngAfterContentInit(): void;
83
+ private handleChange;
84
+ static ngAcceptInputType_rowHeight: NumberInput;
85
+ static ngAcceptInputType_buffer: NumberInput;
86
+ static ngAcceptInputType_headerRowHeight: NumberInput;
87
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFixedRowSizeTableVirtualScrollStrategyDirective, never>;
88
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AnnaFixedRowSizeTableVirtualScrollStrategyDirective, "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]", never, { "rowHeight": { "alias": "rowHeight"; "required": false; }; "headerRowHeight": { "alias": "headerRowHeight"; "required": false; }; "buffer": { "alias": "buffer"; "required": false; }; "headerRows": { "alias": "headerRows"; "required": false; }; }, {}, ["headerRowsQuery"], never, true, never>;
89
+ }
@@ -1 +1 @@
1
- export * from './anna-fixed-row-size-table-virtual-scroll-strategy.directive';
1
+ export * from './anna-fixed-row-size-table-virtual-scroll-strategy.directive';
@@ -1,45 +1,45 @@
1
- import { CollectionViewer, ListRange } from '@angular/cdk/collections';
2
- import { CdkVirtualScrollRepeater, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
3
- import { CdkHeaderRowDef, CdkTable, DataSource, _CoalescedStyleScheduler } from '@angular/cdk/table';
4
- import { ElementRef, NgIterable, NgZone, QueryList } from '@angular/core';
5
- import { Observable, Subject } from 'rxjs';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Directive that wraps a given data source in a "virtual" data source that emits
9
- * the slice of the original data source that matches the range that should be rendered
10
- * in the containing virtual scroll viewport.
11
- */
12
- export declare class AnnaVirtualTableDirective<T> implements CdkVirtualScrollRepeater<T>, CollectionViewer {
13
- private viewport;
14
- private table;
15
- private _coalescedStyleScheduler;
16
- set dataSource(value: DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined);
17
- get dataSource(): DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined;
18
- private _dataSource;
19
- headerRowDefs: QueryList<CdkHeaderRowDef>;
20
- private virtualizedDataStream;
21
- private dataSourceChanges;
22
- /** The raw, unvirtualized data stream. Emits whenever the data in the current DataSource changes. */
23
- dataStream: Observable<T[] | ReadonlyArray<T>>;
24
- viewChange: Subject<ListRange>;
25
- private data;
26
- private destroyed$;
27
- private renderedItems;
28
- private renderedRange;
29
- private isNativeHtmlTable;
30
- constructor(elementRef: ElementRef<HTMLElement>, viewport: CdkVirtualScrollViewport, table: CdkTable<T>, ngZone: NgZone, _coalescedStyleScheduler: _CoalescedStyleScheduler);
31
- ngOnInit(): void;
32
- ngOnDestroy(): void;
33
- /** React to scroll state changes in the viewport. */
34
- private onRenderedDataChange;
35
- /** Swap out one data source for another. */
36
- private changeDataSource;
37
- /**
38
- * This method is only used by the experimental AutoSizeVirtualScrollStrategy.
39
- * We're not using that strategy, but I've implemented it just to show how it oculd be done.
40
- * I'm not actually sure if this works.
41
- */
42
- measureRangeSize(range: ListRange, orientation: 'horizontal' | 'vertical'): number;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnaVirtualTableDirective<any>, never>;
44
- static ɵdir: i0.ɵɵDirectiveDeclaration<AnnaVirtualTableDirective<any>, "[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]", never, { "dataSource": "appVirtualDataSource"; }, {}, ["headerRowDefs"], never, true, never>;
45
- }
1
+ import { CollectionViewer, ListRange } from '@angular/cdk/collections';
2
+ import { CdkVirtualScrollRepeater, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
3
+ import { CdkHeaderRowDef, CdkTable, DataSource, _CoalescedStyleScheduler } from '@angular/cdk/table';
4
+ import { ElementRef, NgIterable, NgZone, QueryList } from '@angular/core';
5
+ import { Observable, Subject } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Directive that wraps a given data source in a "virtual" data source that emits
9
+ * the slice of the original data source that matches the range that should be rendered
10
+ * in the containing virtual scroll viewport.
11
+ */
12
+ export declare class AnnaVirtualTableDirective<T> implements CdkVirtualScrollRepeater<T>, CollectionViewer {
13
+ private viewport;
14
+ private table;
15
+ private _coalescedStyleScheduler;
16
+ set dataSource(value: DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined);
17
+ get dataSource(): DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined;
18
+ private _dataSource;
19
+ headerRowDefs: QueryList<CdkHeaderRowDef>;
20
+ private virtualizedDataStream;
21
+ private dataSourceChanges;
22
+ /** The raw, unvirtualized data stream. Emits whenever the data in the current DataSource changes. */
23
+ dataStream: Observable<T[] | ReadonlyArray<T>>;
24
+ viewChange: Subject<ListRange>;
25
+ private data;
26
+ private destroyed$;
27
+ private renderedItems;
28
+ private renderedRange;
29
+ private isNativeHtmlTable;
30
+ constructor(elementRef: ElementRef<HTMLElement>, viewport: CdkVirtualScrollViewport, table: CdkTable<T>, ngZone: NgZone, _coalescedStyleScheduler: _CoalescedStyleScheduler);
31
+ ngOnInit(): void;
32
+ ngOnDestroy(): void;
33
+ /** React to scroll state changes in the viewport. */
34
+ private onRenderedDataChange;
35
+ /** Swap out one data source for another. */
36
+ private changeDataSource;
37
+ /**
38
+ * This method is only used by the experimental AutoSizeVirtualScrollStrategy.
39
+ * We're not using that strategy, but I've implemented it just to show how it oculd be done.
40
+ * I'm not actually sure if this works.
41
+ */
42
+ measureRangeSize(range: ListRange, orientation: 'horizontal' | 'vertical'): number;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaVirtualTableDirective<any>, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AnnaVirtualTableDirective<any>, "[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]", never, { "dataSource": { "alias": "appVirtualDataSource"; "required": false; }; }, {}, ["headerRowDefs"], never, true, never>;
45
+ }
@@ -1 +1 @@
1
- export * from './anna-virtual-table.directive';
1
+ export * from './anna-virtual-table.directive';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "20.2.19",
3
+ "version": "20.2.21",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^16.0.1",
6
6
  "@angular/common": "^16.2.12",
@@ -16,11 +16,7 @@
16
16
  "dependencies": {
17
17
  "tslib": "^2.5.0"
18
18
  },
19
- "module": "fesm2015/annalib-anna-core.mjs",
20
- "es2020": "fesm2020/annalib-anna-core.mjs",
21
- "esm2020": "esm2020/annalib-anna-core.mjs",
22
- "fesm2020": "fesm2020/annalib-anna-core.mjs",
23
- "fesm2015": "fesm2015/annalib-anna-core.mjs",
19
+ "module": "fesm2022/annalib-anna-core.mjs",
24
20
  "typings": "index.d.ts",
25
21
  "exports": {
26
22
  "./package.json": {
@@ -28,11 +24,9 @@
28
24
  },
29
25
  ".": {
30
26
  "types": "./index.d.ts",
31
- "esm2020": "./esm2020/annalib-anna-core.mjs",
32
- "es2020": "./fesm2020/annalib-anna-core.mjs",
33
- "es2015": "./fesm2015/annalib-anna-core.mjs",
34
- "node": "./fesm2015/annalib-anna-core.mjs",
35
- "default": "./fesm2020/annalib-anna-core.mjs"
27
+ "esm2022": "./esm2022/annalib-anna-core.mjs",
28
+ "esm": "./esm2022/annalib-anna-core.mjs",
29
+ "default": "./fesm2022/annalib-anna-core.mjs"
36
30
  }
37
31
  },
38
32
  "sideEffects": false