@annalib/anna-core 0.0.4 → 0.0.5

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.
@@ -1,35 +1,35 @@
1
- import * as i10 from '@angular/common';
1
+ import * as i9 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { EventEmitter, Component, Input, Output, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, ViewChild, forwardRef, Directive, ContentChildren, ViewChildren, NgModule } from '@angular/core';
5
- import * as i14 from '@angular/forms';
4
+ import { EventEmitter, Component, Input, Output, ViewChildren, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, ViewChild, forwardRef, Directive, ContentChildren, NgModule } from '@angular/core';
5
+ import * as i11 from '@angular/forms';
6
6
  import { FormsModule } from '@angular/forms';
7
- import * as i6 from '@angular/material/radio';
7
+ import * as i5 from '@angular/material/radio';
8
8
  import { MatRadioModule } from '@angular/material/radio';
9
- import * as i9 from '@angular/material/button-toggle';
9
+ import * as i8 from '@angular/material/button-toggle';
10
10
  import { MatButtonToggleModule } from '@angular/material/button-toggle';
11
- import * as i3$1 from '@angular/material/table';
11
+ import * as i2 from '@angular/material/table';
12
12
  import { MatHeaderRowDef, MatTableModule } from '@angular/material/table';
13
13
  import * as i3 from '@ng-bootstrap/ng-bootstrap';
14
14
  import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
15
- import * as i7 from '@angular-slider/ngx-slider';
15
+ import * as i6 from '@angular-slider/ngx-slider';
16
16
  import { NgxSliderModule } from '@angular-slider/ngx-slider';
17
- import * as i5 from 'ngx-skeleton-loader';
17
+ import * as i4 from 'ngx-skeleton-loader';
18
18
  import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
19
19
  import moment from 'moment';
20
- import { cloneDeep, map as map$1, uniq, isEqual } from 'lodash-es';
20
+ import { cloneDeep, map, uniq, isEqual } from 'lodash-es';
21
21
  import * as i1 from '@annalib/anna-core/src/lib/anna-core-shared-lib';
22
- import { AnnaFilterService, radioButtonModel, AnnaCoreSharedLibModule } from '@annalib/anna-core/src/lib/anna-core-shared-lib';
22
+ import { radioButtonModel, AnnaFilterService, AnnaCoreSharedLibModule } from '@annalib/anna-core/src/lib/anna-core-shared-lib';
23
+ import * as i7 from '@annalib/anna-core/src/lib/anna-dropdown-lib';
24
+ import { AnnaDropdownLibModule } from '@annalib/anna-core/src/lib/anna-dropdown-lib';
23
25
  import * as i1$1 from '@angular/cdk/bidi';
24
26
  import { animationFrameScheduler, asapScheduler, Subject, Observable, Subscription, isObservable, of } from 'rxjs';
25
- import { startWith, auditTime, takeUntil, distinctUntilChanged, pairwise, switchMap, shareReplay, map } from 'rxjs/operators';
26
- import * as i2 from '@angular/cdk/scrolling';
27
+ import { startWith, auditTime, takeUntil, distinctUntilChanged, pairwise, switchMap, shareReplay, map as map$1 } from 'rxjs/operators';
28
+ import * as i2$1 from '@angular/cdk/scrolling';
27
29
  import { CdkScrollable, VIRTUAL_SCROLL_STRATEGY, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
28
- import * as i8 from '@annalib/anna-core/src/lib/anna-dropdown-lib';
29
- import { AnnaDropdownLibModule } from '@annalib/anna-core/src/lib/anna-dropdown-lib';
30
30
  import { coerceNumberProperty } from '@angular/cdk/coercion';
31
31
  import { isDataSource, ArrayDataSource } from '@angular/cdk/collections';
32
- import * as i2$1 from '@angular/cdk/table';
32
+ import * as i2$2 from '@angular/cdk/table';
33
33
  import { _COALESCED_STYLE_SCHEDULER, STICKY_POSITIONING_LISTENER, CdkHeaderRowDef } from '@angular/cdk/table';
34
34
 
35
35
  // Angular import statements
@@ -128,7 +128,7 @@ class AnnaSortComponent {
128
128
  }
129
129
  }
130
130
  AnnaSortComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaSortComponent, deps: [{ token: i1.AnnaSortService }], target: i0.ɵɵFactoryTarget.Component });
131
- AnnaSortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaSortComponent, selector: "anna-core-sort-lib", inputs: { data: "data", sortBy: "sortBy", disableSort: "disableSort", placement: "placement" }, outputs: { sortedData: "sort" }, usesOnChanges: true, ngImport: i0, template: "<p class=\"sort\">\r\n <i\r\n class=\"mdi mdi-sort\"\r\n [ngClass]=\"{\r\n active: this.annaSortService.sortByDesc.get(this.sortBy) || this.annaSortService.sortByAsc.get(this.sortBy),\r\n disable: disableSort\r\n }\"\r\n [ngbTooltip]=\"sortTooltip\"\r\n placement=\"{{ placement != undefined ? 'auto' : 'bottom' }}\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n triggers=\"manual\"\r\n #sort=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(sort)\"\r\n ></i>\r\n</p>\r\n\r\n<ng-template #sortTooltip>\r\n <section class=\"sort-container\">\r\n <div>\r\n <input\r\n type=\"radio\"\r\n id=\"ascending\"\r\n [ngModel]=\"selectedRadio\"\r\n name=\"sortToolTip\"\r\n value=\"ascending\"\r\n (click)=\"sortByAscending()\"\r\n />\r\n <label for=\"ascending\">Ascending</label>\r\n </div>\r\n <div>\r\n <input\r\n type=\"radio\"\r\n id=\"descending\"\r\n [ngModel]=\"selectedRadio\"\r\n name=\"sortToolTip\"\r\n value=\"descending\"\r\n (click)=\"sortByDescending()\"\r\n />\r\n <label for=\"descending\">Descending</label>\r\n </div>\r\n <div>\r\n <input type=\"radio\" id=\"none\" [ngModel]=\"selectedRadio\" name=\"sortToolTip\" value=\"none\" (click)=\"removeSorting()\" />\r\n <label for=\"none\">None</label>\r\n </div>\r\n </section>\r\n</ng-template>\r\n", styles: [".sort{display:inline-block;margin:0!important;position:relative;top:1px}.mdi-sort{padding-top:5px;padding-bottom:2.5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort.active{opacity:1}.mdi-sort-descending{padding-top:2.5px;padding-bottom:5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort-descending.active{opacity:1}.disable{cursor:not-allowed;pointer-events:none;opacity:.17}.sort-container{color:#000;padding:.25rem;text-align:left}.sort-container input{position:relative;top:.125rem;margin-right:.188rem}.sort-container input:hover,.sort-container label:hover{cursor:pointer}.sort-container div:last-of-type{line-height:.2}input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}input[type=radio]:checked{background-color:#268bff}input[type=radio]:focus{outline-offset:-10px}\n"], directives: [{ type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { type: i14.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i14.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i14.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i14.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
131
+ AnnaSortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaSortComponent, selector: "anna-core-sort-lib", inputs: { data: "data", sortBy: "sortBy", disableSort: "disableSort", placement: "placement" }, outputs: { sortedData: "sort" }, usesOnChanges: true, ngImport: i0, template: "<p class=\"sort\">\r\n <i\r\n class=\"mdi mdi-sort\"\r\n [ngClass]=\"{\r\n active: this.annaSortService.sortByDesc.get(this.sortBy) || this.annaSortService.sortByAsc.get(this.sortBy),\r\n disable: disableSort\r\n }\"\r\n [ngbTooltip]=\"sortTooltip\"\r\n placement=\"{{ placement != undefined ? 'auto' : 'bottom' }}\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n triggers=\"manual\"\r\n #sort=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(sort)\"\r\n ></i>\r\n</p>\r\n\r\n<ng-template #sortTooltip>\r\n <section class=\"sort-container\">\r\n <div>\r\n <input\r\n type=\"radio\"\r\n id=\"ascending\"\r\n [ngModel]=\"selectedRadio\"\r\n name=\"sortToolTip\"\r\n value=\"ascending\"\r\n (click)=\"sortByAscending()\"\r\n />\r\n <label for=\"ascending\">Ascending</label>\r\n </div>\r\n <div>\r\n <input\r\n type=\"radio\"\r\n id=\"descending\"\r\n [ngModel]=\"selectedRadio\"\r\n name=\"sortToolTip\"\r\n value=\"descending\"\r\n (click)=\"sortByDescending()\"\r\n />\r\n <label for=\"descending\">Descending</label>\r\n </div>\r\n <div>\r\n <input type=\"radio\" id=\"none\" [ngModel]=\"selectedRadio\" name=\"sortToolTip\" value=\"none\" (click)=\"removeSorting()\" />\r\n <label for=\"none\">None</label>\r\n </div>\r\n </section>\r\n</ng-template>\r\n", styles: [".sort{display:inline-block;margin:0!important;position:relative;top:1px}.mdi-sort{padding-top:5px;padding-bottom:2.5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort.active{opacity:1}.mdi-sort-descending{padding-top:2.5px;padding-bottom:5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort-descending.active{opacity:1}.disable{cursor:not-allowed;pointer-events:none;opacity:.17}.sort-container{color:#000;padding:.25rem;text-align:left}.sort-container input{position:relative;top:.125rem;margin-right:.188rem}.sort-container input:hover,.sort-container label:hover{cursor:pointer}.sort-container div:last-of-type{line-height:.2}input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}input[type=radio]:checked{background-color:#268bff}input[type=radio]:focus{outline-offset:-10px}\n"], directives: [{ type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { type: i11.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i11.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i11.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i11.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
132
132
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaSortComponent, decorators: [{
133
133
  type: Component,
134
134
  args: [{ selector: "anna-core-sort-lib", template: "<p class=\"sort\">\r\n <i\r\n class=\"mdi mdi-sort\"\r\n [ngClass]=\"{\r\n active: this.annaSortService.sortByDesc.get(this.sortBy) || this.annaSortService.sortByAsc.get(this.sortBy),\r\n disable: disableSort\r\n }\"\r\n [ngbTooltip]=\"sortTooltip\"\r\n placement=\"{{ placement != undefined ? 'auto' : 'bottom' }}\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n triggers=\"manual\"\r\n #sort=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(sort)\"\r\n ></i>\r\n</p>\r\n\r\n<ng-template #sortTooltip>\r\n <section class=\"sort-container\">\r\n <div>\r\n <input\r\n type=\"radio\"\r\n id=\"ascending\"\r\n [ngModel]=\"selectedRadio\"\r\n name=\"sortToolTip\"\r\n value=\"ascending\"\r\n (click)=\"sortByAscending()\"\r\n />\r\n <label for=\"ascending\">Ascending</label>\r\n </div>\r\n <div>\r\n <input\r\n type=\"radio\"\r\n id=\"descending\"\r\n [ngModel]=\"selectedRadio\"\r\n name=\"sortToolTip\"\r\n value=\"descending\"\r\n (click)=\"sortByDescending()\"\r\n />\r\n <label for=\"descending\">Descending</label>\r\n </div>\r\n <div>\r\n <input type=\"radio\" id=\"none\" [ngModel]=\"selectedRadio\" name=\"sortToolTip\" value=\"none\" (click)=\"removeSorting()\" />\r\n <label for=\"none\">None</label>\r\n </div>\r\n </section>\r\n</ng-template>\r\n", styles: [".sort{display:inline-block;margin:0!important;position:relative;top:1px}.mdi-sort{padding-top:5px;padding-bottom:2.5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort.active{opacity:1}.mdi-sort-descending{padding-top:2.5px;padding-bottom:5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort-descending.active{opacity:1}.disable{cursor:not-allowed;pointer-events:none;opacity:.17}.sort-container{color:#000;padding:.25rem;text-align:left}.sort-container input{position:relative;top:.125rem;margin-right:.188rem}.sort-container input:hover,.sort-container label:hover{cursor:pointer}.sort-container div:last-of-type{line-height:.2}input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}input[type=radio]:checked{background-color:#268bff}input[type=radio]:focus{outline-offset:-10px}\n"] }]
@@ -146,1668 +146,1671 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
146
146
  args: ["sort"]
147
147
  }] } });
148
148
 
149
- /**
150
- * @license
151
- * Copyright Google LLC All Rights Reserved.
152
- *
153
- * Use of this source code is governed by an MIT-style license that can be
154
- * found in the LICENSE file at https://angular.io/license
155
- */
156
- /** Checks if the given ranges are equal. */
157
- function rangesEqual(r1, r2) {
158
- return r1.start == r2.start && r1.end == r2.end;
159
- }
160
- /**
161
- * Scheduler to be used for scroll events. Needs to fall back to
162
- * something that doesn't rely on requestAnimationFrame on environments
163
- * that don't support it (e.g. server-side rendering).
164
- */
165
- const SCROLL_SCHEDULER = typeof requestAnimationFrame !== "undefined"
166
- ? animationFrameScheduler
167
- : asapScheduler;
168
- /**
169
- * A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`.
170
- * Uses `top: #px` instead of `transform: translateY(#px)` like the cdk virtual scroll viewport does
171
- * which avoids flickering of elements in the transformed container with `position: sticky`.
172
- */
173
- class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
174
- constructor(elementRef, _changeDetectorRef, ngZone, _scrollStrategy, dir, scrollDispatcher, viewportRuler, annaGtService) {
175
- super(elementRef, scrollDispatcher, ngZone, dir);
176
- this.elementRef = elementRef;
177
- this._changeDetectorRef = _changeDetectorRef;
178
- this._scrollStrategy = _scrollStrategy;
179
- this.annaGtService = annaGtService;
180
- /** Emits when the viewport is detached from a CdkVirtualForOf. */
181
- this._detachedSubject = new Subject();
182
- /** Emits when the rendered range changes. */
183
- this._renderedRangeSubject = new Subject();
184
- this._orientation = "vertical";
185
- // Note: we don't use the typical EventEmitter here because we need to subscribe to the scroll
186
- // strategy lazily (i.e. only if the user is actually listening to the events). We do this because
187
- // depending on how the strategy calculates the scrolled index, it may come at a cost to
188
- // performance.
189
- /** Emits when the index of the first element visible in the viewport changes. */
190
- this.scrolledIndexChange = new Observable((observer) => this._scrollStrategy.scrolledIndexChange.subscribe(index => Promise.resolve().then(() => this.ngZone.run(() => observer.next(index)))));
191
- /** A stream that emits whenever the rendered range changes. */
192
- this.renderedRangeStream = this._renderedRangeSubject;
193
- /**
194
- * The total size of all content (in pixels), including content that is not currently rendered.
195
- */
196
- this._totalContentSize = 0;
197
- /** A string representing the `style.width` property value to be used for the spacer element. */
198
- this._totalContentWidth = "";
199
- /** A string representing the `style.height` property value to be used for the spacer element. */
200
- this._totalContentHeight = "";
201
- /** The currently rendered range of indices. */
202
- this._renderedRange = { start: 0, end: 0 };
203
- /** The length of the data bound to this viewport (in number of items). */
204
- this._dataLength = 0;
205
- /** The size of the viewport (in pixels). */
206
- this._viewportSize = 0;
207
- /** The last rendered content offset that was set. */
208
- this._renderedContentOffset = 0;
209
- /**
210
- * Whether the last rendered content offset was to the end of the content (and therefore needs to
211
- * be rewritten as an offset to the start of the content).
212
- */
213
- this._renderedContentOffsetNeedsRewrite = false;
214
- /** Whether there is a pending change detection cycle. */
215
- this._isChangeDetectionPending = false;
216
- /** A list of functions to run after the next change detection cycle. */
217
- this._runAfterChangeDetection = [];
218
- /** Subscription to changes in the viewport size. */
219
- this._viewportChanges = Subscription.EMPTY;
220
- if (!_scrollStrategy) {
221
- throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');
222
- }
223
- this._viewportChanges = viewportRuler.change().subscribe(() => {
224
- this.checkViewportSize();
225
- });
226
- }
227
- /** The direction the viewport scrolls. */
228
- get orientation() {
229
- return this._orientation;
230
- }
231
- set orientation(orientation) {
232
- if (this._orientation !== orientation) {
233
- this._orientation = orientation;
234
- this._calculateSpacerSize();
235
- }
149
+ // Angular import statements
150
+ class AnnaNonEditableGenericTableComponent {
151
+ constructor(cdRef, annaSortService, annaDateTimeFormatService, annaFilterService, annaGenericTableService) {
152
+ this.cdRef = cdRef;
153
+ this.annaSortService = annaSortService;
154
+ this.annaDateTimeFormatService = annaDateTimeFormatService;
155
+ this.annaFilterService = annaFilterService;
156
+ this.annaGenericTableService = annaGenericTableService;
157
+ this.maximumRowsWhichCanBeRenderedWithoutScroll = 5;
158
+ this.toggleCheckbox = new EventEmitter();
159
+ this.toggleRowCheckbox = new EventEmitter();
160
+ this.toggleHeaderCheckbox = new EventEmitter();
161
+ this.undoIconClicked = new EventEmitter();
162
+ this.filterAppliedToTable = new EventEmitter();
163
+ this.sortingAppliedToTable = new EventEmitter();
164
+ this.rowClicked = new EventEmitter();
165
+ this.radioButtonSelected = new EventEmitter();
166
+ this.columnFilterOpened = new EventEmitter();
167
+ this.columnFilterClosed = new EventEmitter();
168
+ this.gtIconClicked = new EventEmitter();
169
+ this.gtSVGIconClicked = new EventEmitter();
170
+ this.gtTextActionClicked = new EventEmitter();
171
+ this.gtViewDetailClicked = new EventEmitter();
172
+ this.noDataWidth = "55%";
173
+ this.disableClearAllBtn = true;
174
+ this.disableColumnClearAllBtn = true;
175
+ this.allSelected = 0;
176
+ this.options = {
177
+ floor: 0,
178
+ ceil: 0,
179
+ step: 0.1
180
+ };
181
+ this.tableColumns = [];
182
+ this.totalRowColumns = null;
183
+ this.isScrolledLeft = false;
184
+ this.rowBorderWidth = 2;
185
+ this.PfpIconActiveColor = "#9B1B93";
186
+ this.PfpIconDisableColor = "rgba(189,189,189,0.5)";
187
+ this.setTooltipRadioNames();
236
188
  }
237
189
  ngOnInit() {
238
- super.ngOnInit();
239
- // It's still too early to measure the viewport at this point. Deferring with a promise allows
240
- // the Viewport to be rendered with the correct size before we measure. We run this outside the
241
- // zone to avoid causing more change detection cycles. We handle the change detection loop
242
- // ourselves instead.
243
- this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {
244
- this._measureViewportSize();
245
- this._scrollStrategy.attach(this);
246
- this.elementScrolled()
247
- .pipe(
248
- // Start off with a fake scroll event so we properly detect our initial position.
249
- startWith(null),
250
- // Collect multiple events into one until the next animation frame. This way if
251
- // there are multiple scroll events in the same frame we only need to recheck
252
- // our layout once.
253
- auditTime(0, SCROLL_SCHEDULER))
254
- .subscribe(() => { this._scrollStrategy.onContentScrolled(); this.annaGtService.virtualScrollSubject.next(true); });
255
- this._markChangeDetectionNeeded();
256
- }));
257
- }
258
- ngOnDestroy() {
259
- this.detach();
260
- this._scrollStrategy.detach();
261
- // Complete all subjects
262
- this._renderedRangeSubject.complete();
263
- this._detachedSubject.complete();
264
- this._viewportChanges.unsubscribe();
265
- super.ngOnDestroy();
190
+ // this.tableData = this.numberOfSkeletonColumns;
266
191
  }
267
- /** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
268
- attach(forOf) {
269
- if (this._forOf) {
270
- throw Error("CdkVirtualScrollViewport is already attached.");
192
+ ngOnChanges(changes) {
193
+ // console.log("generic");
194
+ // console.log(this.tableHeaders);
195
+ // console.log(JSON.stringify(this.tableData));
196
+ if (this.showSkeletonLoading) {
197
+ this.tableData = this.numberOfSkeletonColumns;
271
198
  }
272
- // Subscribe to the data stream of the CdkVirtualForOf to keep track of when the data length
273
- // changes. Run outside the zone to avoid triggering change detection, since we're managing the
274
- // change detection loop ourselves.
275
- this.ngZone.runOutsideAngular(() => {
276
- this._forOf = forOf;
277
- this._forOf.dataStream
278
- .pipe(takeUntil(this._detachedSubject))
279
- .subscribe(data => {
280
- const newLength = data.length;
281
- if (newLength !== this._dataLength) {
282
- this._dataLength = newLength;
283
- this._scrollStrategy.onDataLengthChanged();
284
- }
285
- this._doChangeDetection();
286
- });
287
- });
288
- }
289
- /** Detaches the current `CdkVirtualForOf`. */
290
- detach() {
291
- this._forOf = null;
292
- this._detachedSubject.next();
293
- }
294
- /** Gets the length of the data bound to this viewport (in number of items). */
295
- getDataLength() {
296
- return this._dataLength;
297
- }
298
- /** Gets the size of the viewport (in pixels). */
299
- getViewportSize() {
300
- return this._viewportSize;
301
- }
302
- // TODO(mmalerba): This is technically out of sync with what's really rendered until a render
303
- // cycle happens. I'm being careful to only call it after the render cycle is complete and before
304
- // setting it to something else, but its error prone and should probably be split into
305
- // `pendingRange` and `renderedRange`, the latter reflecting whats actually in the DOM.
306
- /** Get the current rendered range of items. */
307
- getRenderedRange() {
308
- return this._renderedRange;
309
- }
310
- /**
311
- * Sets the total size of all content (in pixels), including content that is not currently
312
- * rendered.
313
- */
314
- setTotalContentSize(size) {
315
- if (this._totalContentSize !== size) {
316
- this._totalContentSize = size;
317
- this._calculateSpacerSize();
318
- this._markChangeDetectionNeeded();
199
+ else {
200
+ this.setInitialValueMapData();
201
+ this.disableEnableEachColumnFilters();
202
+ this.tableColumns = this.tableHeaders.filter(x => x.visible).map(x => x.headerInfo[0].objectKey);
203
+ this.showSkeletonLoading = false;
319
204
  }
320
- }
321
- /** Sets the currently rendered range of indices. */
322
- setRenderedRange(range) {
323
- if (!rangesEqual(this._renderedRange, range)) {
324
- this._renderedRangeSubject.next((this._renderedRange = range));
325
- this._markChangeDetectionNeeded(() => this._scrollStrategy.onContentRendered());
205
+ //setting table column here as well because while showing skeleton loader, we should show table headers.
206
+ if (changes['tableHeaders'] && changes['tableHeaders'].currentValue) {
207
+ this.tableColumns = this.tableHeaders.filter(x => x.visible).map(x => x.headerInfo[0].objectKey);
326
208
  }
209
+ if (changes['totalRowInfo'] && changes['totalRowInfo'].currentValue) {
210
+ this.totalRowColumns = this.totalRowInfo.map(x => x.colName);
211
+ }
212
+ this.cdRef.detectChanges();
327
213
  }
328
- /**
329
- * Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
330
- */
331
- getOffsetToRenderedContentStart() {
332
- return this._renderedContentOffsetNeedsRewrite
333
- ? null
334
- : this._renderedContentOffset;
214
+ trackByFn(index) {
215
+ return index;
335
216
  }
336
- /**
337
- * Sets the offset from the start of the viewport to either the start or end of the rendered data
338
- * (in pixels).
339
- */
340
- setRenderedContentOffset(offset) {
341
- let top = `${Number(offset)}px`;
342
- this._renderedContentOffset = offset;
343
- if (this._renderedContentTransform != top) {
344
- // We know this value is safe because we parse `offset` with `Number()` before passing it
345
- // into the string.
346
- this._renderedContentTransform = top;
347
- this._markChangeDetectionNeeded(() => {
348
- if (this._renderedContentOffsetNeedsRewrite) {
349
- this._renderedContentOffset -= this.measureRenderedContentSize();
350
- this._renderedContentOffsetNeedsRewrite = false;
351
- this.setRenderedContentOffset(this._renderedContentOffset);
217
+ setTooltipRadioNames() {
218
+ this.tooltipRadioTextMap = new Map();
219
+ this.tooltipRadioTextMap.set("StartTimeForFilter", "Start Time");
220
+ this.tooltipRadioTextMap.set("EndTimeForFilter", "End Time");
221
+ this.tooltipRadioTextMap.set("start_time_for_filter", "Start Time");
222
+ this.tooltipRadioTextMap.set("end_time_for_filter", "End Time");
223
+ this.tooltipRadioTextMap.set("primaryAEName", "Primary AE");
224
+ this.tooltipRadioTextMap.set("region", "Region");
225
+ this.tooltipRadioTextMap.set("agencyName", "Agency");
226
+ this.tooltipRadioTextMap.set("location", "Location");
227
+ this.tooltipRadioTextMap.set("advertiserName", "Advertiser");
228
+ this.tooltipRadioTextMap.set("productCode", "Product Code");
229
+ this.tooltipRadioTextMap.set("flightStartDate", "Start Date");
230
+ this.tooltipRadioTextMap.set("flightEndDate", "End Date");
231
+ this.tooltipRadioTextMap.set("orderIdAndRevNumber", "STN Order#-Rev#");
232
+ this.tooltipRadioTextMap.set("alternateOrderId", "Buyer Order#");
233
+ this.tooltipRadioTextMap.set("grp", "GRP");
234
+ this.tooltipRadioTextMap.set("cpp", "CPP");
235
+ this.tooltipRadioTextMap.set("imps", "IMPS");
236
+ this.tooltipRadioTextMap.set("cpm", "CPM");
237
+ this.tooltipRadioTextMap.set("offeredMGs", "Offered MG");
238
+ this.tooltipRadioTextMap.set("outstandingPE", "O/S PE");
239
+ this.tooltipRadioTextMap.set("offeredADUs", "Offered ADUs");
240
+ this.tooltipRadioTextMap.set("udDeficitValue", "Pending Audience Delta");
241
+ this.tooltipRadioTextMap.set("startEndTimeMulti", "Time");
242
+ this.tooltipRadioTextMap.set("bookedValue", "Booked");
243
+ this.tooltipRadioTextMap.set("bookedSpots", "Spots");
244
+ this.tooltipRadioTextMap.set("userChanges", "Other changes");
245
+ this.tooltipRadioTextMap.set("inventoryCode", "Inventory Code");
246
+ this.tooltipRadioTextMap.set("program", "Program");
247
+ this.tooltipRadioTextMap.set("agency", "Agency");
248
+ this.tooltipRadioTextMap.set("advertiser", "Advertiser");
249
+ this.tooltipRadioTextMap.set("startDate", "Start Date");
250
+ this.tooltipRadioTextMap.set("endDate", "End Date");
251
+ this.tooltipRadioTextMap.set("rcvPreempt", "Madegood PE");
252
+ this.tooltipRadioTextMap.set("osPreempt", "O/S PE");
253
+ this.tooltipRadioTextMap.set("rcvUnderDly", "Recovered UD");
254
+ this.tooltipRadioTextMap.set("osUnderDly", "O/s Under Dly");
255
+ this.tooltipRadioTextMap.set("primaryAe", "Primary AE");
256
+ this.tooltipRadioTextMap.set("region", "Region");
257
+ this.tooltipRadioTextMap.set("revCode1", "Rev code 1");
258
+ this.tooltipRadioTextMap.set("orderNoRevNo", "STN Order#-Rev#");
259
+ this.tooltipRadioTextMap.set("revCode2", "Rev code 2");
260
+ this.tooltipRadioTextMap.set("revCode3", "Rev code 3");
261
+ this.tooltipRadioTextMap.set("booked", "Booked");
262
+ this.tooltipRadioTextMap.set("spots", "Spots");
263
+ this.tooltipRadioTextMap.set("postedAudPercent", "Posted %");
264
+ this.tooltipRadioTextMap.set("revision", "Revision");
265
+ this.tooltipRadioTextMap.set("productCode", "Product Code");
266
+ this.tooltipRadioTextMap.set("buyerOrderId", "ALT Order#");
267
+ this.tooltipRadioTextMap.set("demo", "Demo");
268
+ this.tooltipRadioTextMap.set("postedAdu", "Posted ADUs");
269
+ this.tooltipRadioTextMap.set("scheduledAdu", "Scheduled ADUs");
270
+ this.tooltipRadioTextMap.set("audienceDeficit", "Audience Deficit");
271
+ this.tooltipRadioTextMap.set("postedAudPercent", "Posted Audience %");
272
+ }
273
+ generateTableDataWrapper() {
274
+ this.showSkeletonLoading = true;
275
+ this.tableDataWrapper = [];
276
+ let rowObject;
277
+ let columnName;
278
+ let columnObject;
279
+ let columnObjectKey;
280
+ let keysUsedForTableDisplay;
281
+ let keysUsedForColumn;
282
+ let additionalInfoObject;
283
+ let additionalKeys;
284
+ this.tableData.forEach((obj) => {
285
+ rowObject = {};
286
+ keysUsedForTableDisplay = [];
287
+ for (var colNum in this.tableHeaders) {
288
+ columnObject = {};
289
+ if (!this.tableHeaders[colNum].visible) {
290
+ continue;
352
291
  }
353
- else {
354
- this._scrollStrategy.onRenderedOffsetChanged();
292
+ columnName = "";
293
+ keysUsedForColumn = [];
294
+ this.tableHeaders[colNum].headerInfo.forEach((header) => {
295
+ if (header.typeOfBodyData === "STRING") {
296
+ columnObjectKey = header.objectKey;
297
+ columnObject[columnObjectKey] = obj[columnObjectKey];
298
+ keysUsedForTableDisplay.push(columnObjectKey);
299
+ keysUsedForColumn.push(columnObjectKey);
300
+ }
301
+ else if (header.typeOfBodyData === "ICON") {
302
+ columnObjectKey = header.typeOfBodyData;
303
+ columnObject[columnObjectKey] = obj[header.objectKey];
304
+ keysUsedForColumn.push(header.objectKey);
305
+ }
306
+ else if (header.typeOfBodyData === "CHECKBOX") {
307
+ columnObjectKey = header.typeOfBodyData;
308
+ columnObject[columnObjectKey] = obj[header.objectKey];
309
+ keysUsedForColumn.push(header.objectKey);
310
+ }
311
+ });
312
+ for (var i = 0; i < keysUsedForColumn.length; i++) {
313
+ columnName += keysUsedForColumn[i];
314
+ if (i !== keysUsedForColumn.length - 1) {
315
+ columnName += ',';
316
+ }
355
317
  }
318
+ rowObject[columnName] = columnObject;
319
+ }
320
+ additionalInfoObject = {};
321
+ additionalKeys = Object.keys(obj).filter(key => !keysUsedForTableDisplay.includes(key));
322
+ additionalKeys.forEach(key => {
323
+ additionalInfoObject[key] = obj[key];
356
324
  });
357
- }
358
- }
359
- /**
360
- * Scrolls to the given offset from the start of the viewport. Please note that this is not always
361
- * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
362
- * direction, this would be the equivalent of setting a fictional `scrollRight` property.
363
- * @param offset The offset to scroll to.
364
- * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
365
- */
366
- scrollToOffset(offset, behavior = "auto") {
367
- const options = { behavior, top: offset };
368
- this.scrollTo(options);
369
- }
370
- /**
371
- * Scrolls to the offset for the given index.
372
- * @param index The index of the element to scroll to.
373
- * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
374
- */
375
- scrollToIndex(index, behavior = "auto") {
376
- this._scrollStrategy.scrollToIndex(index, behavior);
325
+ rowObject.AdditionalInfo = additionalInfoObject;
326
+ this.tableDataWrapper.push(rowObject);
327
+ });
328
+ this.tableData = this.tableDataWrapper;
329
+ this.showSkeletonLoading = false;
330
+ // console.log(JSON.stringify(this.tableDataWrapper));
377
331
  }
378
- /**
379
- * Gets the current scroll offset from the start of the viewport (in pixels).
380
- * @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
381
- * in horizontal mode.
382
- */
383
- // CHANGES@ANNALIB added override to functions
384
- measureScrollOffset(from) {
385
- return from
386
- ? super.measureScrollOffset(from)
387
- : super.measureScrollOffset("top");
332
+ selectOrUnselectCheckbox(rowData, columnKeys, isCheckboxSelected) {
333
+ this.toggleCheckbox.emit({ rowData, columnKeys, isCheckboxSelected });
388
334
  }
389
- /** Measure the combined size of all of the rendered items. */
390
- measureRenderedContentSize() {
391
- const contentEl = this._contentWrapper.nativeElement;
392
- return contentEl.offsetHeight;
335
+ selectUnselectAllRows() {
336
+ this.toggleHeaderCheckbox.emit();
393
337
  }
394
- /**
395
- * Measure the total combined size of the given range. Throws if the range includes items that are
396
- * not rendered.
397
- */
398
- measureRangeSize(range) {
399
- if (!this._forOf) {
400
- return 0;
401
- }
402
- return this._forOf.measureRangeSize(range, this.orientation);
338
+ selectUnselectRow(rowData) {
339
+ this.toggleRowCheckbox.emit(rowData);
403
340
  }
404
- /** Update the viewport dimensions and re-render. */
405
- checkViewportSize() {
406
- // TODO: Cleanup later when add logic for handling content resize
407
- this._measureViewportSize();
408
- this._scrollStrategy.onDataLengthChanged();
341
+ undoCreditedSpot(data) {
342
+ this.undoIconClicked.emit({ data, mgOrCredit: "Credit" });
409
343
  }
410
- /** Measure the viewport size. */
411
- _measureViewportSize() {
412
- const viewportEl = this.elementRef.nativeElement;
413
- this._viewportSize = viewportEl.clientHeight;
344
+ undoMgSpot(data) {
345
+ this.undoIconClicked.emit({ data, mgOrCredit: "MakeGood" });
414
346
  }
415
- /** Queue up change detection to run. */
416
- _markChangeDetectionNeeded(runAfter) {
417
- if (runAfter) {
418
- this._runAfterChangeDetection.push(runAfter);
347
+ //Sort and Filter Logic begins!
348
+ closeTooltip() {
349
+ if (this.tooltip && this.tooltip.isOpen()) {
350
+ this.tooltip.close();
419
351
  }
420
- // Use a Promise to batch together calls to `_doChangeDetection`. This way if we set a bunch of
421
- // properties sequentially we only have to run `_doChangeDetection` once at the end.
422
- if (!this._isChangeDetectionPending) {
423
- this._isChangeDetectionPending = true;
424
- this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {
425
- this._doChangeDetection();
426
- }));
352
+ this.tooltip = null;
353
+ this.disableCheckboxApply = false;
354
+ if (!this.bindValueFuncCalled) {
355
+ this.columnFilterClosed.emit();
427
356
  }
428
357
  }
429
- /** Run change detection. */
430
- _doChangeDetection() {
431
- this._isChangeDetectionPending = false;
432
- // Apply the content transform. The transform can't be set via an Angular binding because
433
- // bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of
434
- // string literals, a variable that can only be 'X' or 'Y', and user input that is run through
435
- // the `Number` function first to coerce it to a numeric value.
436
- this._contentWrapper.nativeElement.style.top = this._renderedContentTransform;
437
- // Apply changes to Angular bindings. Note: We must call `markForCheck` to run change detection
438
- // from the root, since the repeated items are content projected in. Calling `detectChanges`
439
- // instead does not properly check the projected content.
440
- this.ngZone.run(() => this._changeDetectorRef.markForCheck());
441
- const runAfterChangeDetection = this._runAfterChangeDetection;
442
- this._runAfterChangeDetection = [];
443
- for (const fn of runAfterChangeDetection) {
444
- fn();
358
+ closeSortTooltip() {
359
+ if (this.annaSortService.tooltip && this.annaSortService.tooltip.isOpen()) {
360
+ this.annaSortService.tooltip.close();
445
361
  }
446
362
  }
447
- /** Calculates the `style.width` and `style.height` for the spacer element. */
448
- _calculateSpacerSize() {
449
- this._totalContentHeight = `${this._totalContentSize}px`;
450
- this._totalContentWidth = "";
363
+ initFilters() {
364
+ this.annaFilterService.tooltipMap = new Map();
365
+ this.annaFilterService.tooltipSelectedMap = new Map();
366
+ this.annaSortService.sortByAsc = new Map();
367
+ this.annaSortService.sortByDesc = new Map();
368
+ this.annaFilterService.selectedRadio = null;
369
+ this.annaFilterService.appliedFiltersArray = [];
370
+ //closing the sort tooltip if we route on the same route or if we click dropdown filters
371
+ this.closeSortTooltip();
372
+ this.annaSortService.tooltip = null;
373
+ this.disableClearAllBtn = true;
374
+ this.disableTimeFilterApplyBtn = false;
451
375
  }
452
- }
453
- AnnaTableVirtualScrollViewportComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaTableVirtualScrollViewportComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: VIRTUAL_SCROLL_STRATEGY, optional: true }, { token: i1$1.Directionality, optional: true }, { token: i2.ScrollDispatcher }, { token: i2.ViewportRuler }, { token: i1.AnnaGenericTableService }], target: i0.ɵɵFactoryTarget.Component });
454
- AnnaTableVirtualScrollViewportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaTableVirtualScrollViewportComponent, selector: "anna-table-virtual-scroll-viewport", inputs: { orientation: "orientation" }, outputs: { scrolledIndexChange: "scrolledIndexChange" }, host: { properties: { "class.anna-table-virtual-scroll-orientation-horizontal": "orientation === \"horizontal\"", "class.anna-table-virtual-scroll-orientation-vertical": "orientation !== \"horizontal\"" }, classAttribute: "anna-table-virtual-scroll-viewport" }, providers: [
455
- {
456
- provide: CdkScrollable,
457
- useExisting: AnnaTableVirtualScrollViewportComponent
458
- },
459
- {
460
- provide: CdkVirtualScrollViewport,
461
- useExisting: AnnaTableVirtualScrollViewportComponent
462
- }
463
- ], viewQueries: [{ propertyName: "_contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!--\r\n Wrap the rendered content in an element that will be used to offset it based on the scroll\r\n position.\r\n-->\r\n<div #contentWrapper class=\"anna-table-virtual-scroll-content-wrapper\">\r\n\t<ng-content></ng-content>\r\n</div>\r\n<!--\r\n Spacer used to force the scrolling container to the correct size for the *total* number of items\r\n so that the scrollbar captures the size of the entire data set.\r\n-->\r\n<div class=\"app-table-virtual-scroll-spacer\" [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\">\r\n</div>", styles: ["anna-table-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;will-change:scroll-position;-webkit-overflow-scrolling:touch}.anna-table-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .anna-table-virtual-scroll-content-wrapper{right:0;left:auto}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper{min-height:100%}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper{min-width:100%}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.app-table-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .app-table-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
464
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaTableVirtualScrollViewportComponent, decorators: [{
465
- type: Component,
466
- args: [{ selector: "anna-table-virtual-scroll-viewport", host: {
467
- class: "anna-table-virtual-scroll-viewport",
468
- "[class.anna-table-virtual-scroll-orientation-horizontal]": 'orientation === "horizontal"',
469
- "[class.anna-table-virtual-scroll-orientation-vertical]": 'orientation !== "horizontal"'
470
- }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
471
- {
472
- provide: CdkScrollable,
473
- useExisting: AnnaTableVirtualScrollViewportComponent
474
- },
475
- {
476
- provide: CdkVirtualScrollViewport,
477
- useExisting: AnnaTableVirtualScrollViewportComponent
478
- }
479
- ], template: "<!--\r\n Wrap the rendered content in an element that will be used to offset it based on the scroll\r\n position.\r\n-->\r\n<div #contentWrapper class=\"anna-table-virtual-scroll-content-wrapper\">\r\n\t<ng-content></ng-content>\r\n</div>\r\n<!--\r\n Spacer used to force the scrolling container to the correct size for the *total* number of items\r\n so that the scrollbar captures the size of the entire data set.\r\n-->\r\n<div class=\"app-table-virtual-scroll-spacer\" [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\">\r\n</div>", styles: ["anna-table-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;will-change:scroll-position;-webkit-overflow-scrolling:touch}.anna-table-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .anna-table-virtual-scroll-content-wrapper{right:0;left:auto}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper{min-height:100%}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper{min-width:100%}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.app-table-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .app-table-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"] }]
480
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
481
- type: Optional
482
- }, {
483
- type: Inject,
484
- args: [VIRTUAL_SCROLL_STRATEGY]
485
- }] }, { type: i1$1.Directionality, decorators: [{
486
- type: Optional
487
- }] }, { type: i2.ScrollDispatcher }, { type: i2.ViewportRuler }, { type: i1.AnnaGenericTableService }]; }, propDecorators: { orientation: [{
488
- type: Input
489
- }], scrolledIndexChange: [{
490
- type: Output
491
- }], _contentWrapper: [{
492
- type: ViewChild,
493
- args: ["contentWrapper", { static: true }]
494
- }] } });
495
-
496
- /**
497
- * A custom scroll strategy that accepts a static row height, static header height,
498
- * and a buffer size. The strategy
499
- */
500
- class AnnaFixedRowSizeTableVirtualScrollStrategy {
501
- constructor(rowHeight, buffer, headerHeight) {
502
- this._scrolledIndexChange = new Subject();
503
- this.scrolledIndexChange = this._scrolledIndexChange.pipe(distinctUntilChanged());
504
- this.updateRowHeightAndBuffer(rowHeight, buffer, headerHeight);
376
+ setInitialValueMapData() {
377
+ this.annaFilterService.initialValueMap = new Map();
378
+ this.tableHeaders.forEach((column) => {
379
+ column.headerInfo.forEach((header) => {
380
+ if (header.filter === "SLIDER") {
381
+ header.filterObjectKeys.forEach((key) => {
382
+ let min = this.annaFilterService.returnMaxAndMinValue(this.clonedTableData, key, true);
383
+ let max = this.annaFilterService.returnMaxAndMinValue(this.clonedTableData, key, false);
384
+ let obj = { min, max };
385
+ this.annaFilterService.initialValueMap.set(key, obj);
386
+ });
387
+ }
388
+ else if (header.filter === "DATE") {
389
+ header.filterObjectKeys.forEach((key) => {
390
+ if (key == "period") {
391
+ const minMaxStartDate = this.annaFilterService.returnMinAndMaxDate(this.clonedTableData, "startDate");
392
+ const minMaxEndDate = this.annaFilterService.returnMinAndMaxDate(this.clonedTableData, "endDate");
393
+ let dateObj = { minSelectedDate: minMaxStartDate[0], maxSelectedDate: minMaxEndDate[1] };
394
+ this.annaFilterService.initialValueMap.set(key, dateObj);
395
+ }
396
+ else {
397
+ const minMaxDate = this.annaFilterService.returnMinAndMaxDate(this.clonedTableData, key);
398
+ let obj = { minSelectedDate: minMaxDate[0], maxSelectedDate: minMaxDate[1] };
399
+ this.annaFilterService.initialValueMap.set(key, obj);
400
+ }
401
+ });
402
+ }
403
+ else if (header.filter === "TIME") {
404
+ header.filterObjectKeys.forEach((key) => {
405
+ let data = this.clonedTableData.filter((obj) => !["", "-", null, "0", "<multi>"].includes(obj[key]));
406
+ let timeArr = map(data, key);
407
+ timeArr.sort((a, b) => {
408
+ return this.annaDateTimeFormatService.sortByTimeAscending(a, b);
409
+ });
410
+ let obj = {
411
+ fromTime: timeArr[0],
412
+ toTime: timeArr[timeArr.length - 1],
413
+ };
414
+ if (this.gtGeneralConfig.component === "SPOTDETAILS" || this.gtGeneralConfig.component === "EXCLUDEINVENTORYPOPUP") {
415
+ let includeMulti = this.clonedTableData.findIndex((obj) => obj[key] == "<multi>") != -1;
416
+ let includeZero = this.clonedTableData.findIndex((obj) => obj[key] == "0") != -1;
417
+ let includeTimeRange = this.clonedTableData.findIndex((obj) => obj[key] != "0" && obj[key] != "<multi>") != -1;
418
+ let obj = {
419
+ fromTime: timeArr[0],
420
+ toTime: timeArr[timeArr.length - 1],
421
+ includeMulti: includeMulti,
422
+ includeZero: includeZero,
423
+ includeTimeRange: includeTimeRange
424
+ };
425
+ this.annaFilterService.initialValueMap.set(key, obj);
426
+ }
427
+ else if (this.gtGeneralConfig.component === "RATING") {
428
+ let includeMulti = this.clonedTableData.findIndex((obj) => obj[key][0] == "<multi>") != -1;
429
+ let includeZero = this.clonedTableData.findIndex((obj) => obj[key][0] == "0") != -1;
430
+ let includeTimeRange = this.clonedTableData.findIndex((obj) => obj[key][0] != "0" && obj[key][0] != "<multi>") != -1;
431
+ let startTimeArr = map(this.clonedTableData, "startTime");
432
+ let endTimeArr = map(this.clonedTableData, "endTime");
433
+ startTimeArr.sort((a, b) => {
434
+ return this.annaDateTimeFormatService.sortByTimeAscending(a, b);
435
+ });
436
+ endTimeArr.sort((a, b) => {
437
+ return this.annaDateTimeFormatService.sortByTimeDescending(a, b);
438
+ });
439
+ let obj = {
440
+ fromTime: startTimeArr[0],
441
+ toTime: endTimeArr[0],
442
+ includeMulti: includeMulti,
443
+ includeZero: includeZero,
444
+ includeTimeRange: includeTimeRange
445
+ };
446
+ this.annaFilterService.initialValueMap.set(key, obj);
447
+ }
448
+ else {
449
+ this.annaFilterService.initialValueMap.set(key, obj);
450
+ }
451
+ });
452
+ }
453
+ });
454
+ });
505
455
  }
506
- /**
507
- * Attaches this scroll strategy to a viewport.
508
- * @param viewport The viewport to attach this strategy to.
509
- */
510
- attach(viewport) {
511
- this.viewport = viewport;
512
- this.updateTotalContentSize();
513
- this.updateRenderedRange();
456
+ isTooltipActive(header) {
457
+ return this.annaFilterService.isTooltipActive(header);
514
458
  }
515
- /**
516
- * Detaches this scroll strategy from the currently attached viewport.
517
- */
518
- detach() {
519
- this._scrolledIndexChange.complete();
520
- this.viewport = null;
459
+ bindTheValueToToolTip(tooltip, header) {
460
+ this.bindValueFuncCalled = true;
461
+ let containerToScroll;
462
+ if (this.gtGeneralConfig.component === "SPOTDETAILS" || this.gtGeneralConfig.component === "DRRLISTING") {
463
+ containerToScroll = document.getElementsByClassName("scrollable-container")[0];
464
+ var mediaQuery = window.matchMedia("(max-width: 1366px)");
465
+ if (mediaQuery.matches) {
466
+ containerToScroll.scroll(0, this.gtGeneralConfig.verticalScrollOffsetForFilterTooltip);
467
+ }
468
+ }
469
+ // if same tooltip opened close it
470
+ if (tooltip == this.tooltip) {
471
+ this.bindValueFuncCalled = false;
472
+ this.closeTooltip();
473
+ }
474
+ else {
475
+ this.searchBar = '';
476
+ let enabledHeaders = [];
477
+ header.forEach((item) => {
478
+ if (item == "period") {
479
+ let uniqStartDate = uniq(this.tableData.map((u) => u["startDate"]));
480
+ let uniqEndDate = uniq(this.tableData.map((u) => u["endDate"]));
481
+ if (uniqStartDate.length > 1 || uniqEndDate.length > 1 || this.isTooltipActive([item])) {
482
+ enabledHeaders.push(item);
483
+ }
484
+ }
485
+ else if (uniq(this.tableData.map((u) => u[item])).length > 1 || this.isTooltipActive([item])) {
486
+ enabledHeaders.push(item);
487
+ }
488
+ });
489
+ this.openTooltip(tooltip, enabledHeaders);
490
+ if (window.innerWidth < 1500 && window.innerHeight < 768 && !this.annaFilterService.sliderSet.has(header[0])) {
491
+ this.columnFilterOpened.emit();
492
+ }
493
+ this.showCheckboxFilterRadioButtons = enabledHeaders.length > 1;
494
+ this.populateTooltipDataBasedOnSelectedRadio(enabledHeaders[0]);
495
+ this.bindValueFuncCalled = false;
496
+ }
521
497
  }
522
- onContentScrolled() {
523
- this.updateRenderedRange();
498
+ openTooltip(tooltip, header) {
499
+ this.closeTooltip();
500
+ this.tooltip = tooltip;
501
+ this.tooltip.open();
502
+ //convert key into the header
503
+ this.radioButtons = header.map((key) => {
504
+ let value = this.tooltipRadioTextMap.has(key)
505
+ ? this.tooltipRadioTextMap.get(key)
506
+ : key; //change to display name
507
+ return new radioButtonModel(key, value);
508
+ });
524
509
  }
525
- onDataLengthChanged() {
526
- this.updateTotalContentSize();
527
- this.updateRenderedRange();
510
+ clearColumnFilter() {
511
+ this.annaFilterService.clearColumnFilter();
512
+ this.toolTipdata = null;
513
+ this.tempTooltipData = null;
514
+ this.closeTooltip();
515
+ this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
516
+ this.checkIfSortingIsApplied();
517
+ this.filterAppliedToTable.emit(this.tableData);
518
+ this.disableEnableEachColumnFilters();
528
519
  }
529
- onContentRendered() {
530
- // This method is useful for virtual scroll strategies that measure the rendered
531
- // content to determine its height. This scroll strategy assumes that rows have
532
- // a static height, so there's no need to implement this method.
520
+ populateTooltipDataBasedOnSelectedRadio(header) {
521
+ this.disableSliderApplyButton = false;
522
+ this.disableCheckboxApply = false;
523
+ if (this.toolTipdata) {
524
+ this.revert();
525
+ }
526
+ this.annaFilterService.selectedRadio = header;
527
+ let selectedFilterSet = new Set(this.annaFilterService.appliedFiltersArray);
528
+ this.disableColumnClearAllBtn = selectedFilterSet.has(this.annaFilterService.selectedRadio) ? false : true;
529
+ if (this.annaFilterService.calendarSet.has(header)) {
530
+ this.getCalendarData();
531
+ }
532
+ else if (this.annaFilterService.sliderSet.has(header)) {
533
+ this.getSliderData(header);
534
+ }
535
+ else if (this.annaFilterService.timeSet.has(header)) {
536
+ this.getTimeFilterData(header);
537
+ }
538
+ else {
539
+ this.getCheckboxData(header);
540
+ }
533
541
  }
534
- onRenderedOffsetChanged() {
535
- // Similar to onContentRendered, this method is useful for virtual scroll strategies
536
- // that need to track the offset as it changes. This scroll strategy is always able
537
- // to calculate the correct offset from other values, so there's no need to implement
538
- // this method.
542
+ getSliderData(header) {
543
+ if (header === "Rate") {
544
+ this.annaFilterService.translateFunc = "currency";
545
+ }
546
+ else {
547
+ this.annaFilterService.translateFunc = "normal";
548
+ }
549
+ this.options = this.annaFilterService.populateSliderTooltip(this.clonedTableData, this.tableData);
550
+ this.disableSliderApplyButton = this.disableSliderApplyBtn();
551
+ let selectedTooltipObj;
552
+ if (this.annaFilterService.tooltipSelectedMap.has(header)) {
553
+ selectedTooltipObj = this.annaFilterService.tooltipSelectedMap.get(header);
554
+ }
555
+ else {
556
+ selectedTooltipObj = this.annaFilterService.initialValueMap.get(header);
557
+ }
558
+ this.sliderMinValue = selectedTooltipObj.min < this.options.floor ? this.options.floor : selectedTooltipObj.min;
559
+ this.sliderMaxValue = selectedTooltipObj.max < this.options.ceil ? selectedTooltipObj.max : this.options.ceil;
560
+ //default step values
561
+ this.options.step = 1;
562
+ this.sliderFilterTextBoxStep = "1";
563
+ if (header !== "WeekNumber") {
564
+ this.options.step = 0.1;
565
+ this.sliderFilterTextBoxStep = "0.1";
566
+ }
539
567
  }
540
- scrollToIndex(index, behavior) {
541
- this.viewport?.scrollToOffset(index * this.rowHeight, behavior);
568
+ getCheckboxData(header) {
569
+ this.tempTooltipData = this.annaFilterService.populateTooltip(header, this.clonedTableData, this.tableData);
570
+ this.allSelected = this.annaFilterService.isAllOptionsSelected();
571
+ this.showAll = this.tempTooltipData.filter((x) => !x.isHidden).length > 1 ? true : false;
572
+ this.toolTipdata = cloneDeep(this.tempTooltipData);
542
573
  }
543
- /**
544
- * Update the item size and buffer size.
545
- * @param rowHeight The height of a row in the virtually scrolling table.
546
- * @param buffer The number of rows to buffer outside the viewport.
547
- * @param headerHeight The total height of the table header, including all header rows.
548
- */
549
- updateRowHeightAndBuffer(rowHeight, buffer, headerHeight) {
550
- this.rowHeight = rowHeight;
551
- this.buffer = buffer;
552
- this.headerHeight = headerHeight;
553
- this.updateTotalContentSize();
554
- this.updateRenderedRange();
574
+ getCalendarData() {
575
+ const parsingFormat = "MM/DD/YYYY";
576
+ let minMaxdate = this.annaFilterService.populateDatePickerTooltipWithData(this.clonedTableData, this.tableData);
577
+ let selectedDateObj;
578
+ if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
579
+ selectedDateObj = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
580
+ }
581
+ else {
582
+ selectedDateObj = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
583
+ }
584
+ // For startDate
585
+ // selected date is less than date which we get
586
+ if ((selectedDateObj.minSelectedDate).isAfter(minMaxdate.minStartDate)) {
587
+ this.selectedMinDate = this.annaDateTimeFormatService.convertToNgbDate(selectedDateObj.minSelectedDate, parsingFormat);
588
+ }
589
+ else {
590
+ this.selectedMinDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxdate.minStartDate, parsingFormat);
591
+ }
592
+ // For endData
593
+ // selectedDate is less than date which we get
594
+ if ((selectedDateObj.maxSelectedDate).isAfter(minMaxdate.maxEndDate)) {
595
+ this.selectedMaxDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxdate.maxEndDate, parsingFormat);
596
+ }
597
+ else {
598
+ this.selectedMaxDate = this.annaDateTimeFormatService.convertToNgbDate(selectedDateObj.maxSelectedDate, parsingFormat);
599
+ }
600
+ this.calendarMinEnabledDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxdate.minStartDate, parsingFormat);
601
+ this.calendarMaxEnabledDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxdate.maxEndDate, parsingFormat);
555
602
  }
556
- updateRenderedRange() {
557
- if (!this.viewport) {
558
- return;
603
+ getTimeFilterData(header) {
604
+ if (this.annaFilterService.tooltipSelectedMap.has(header)) {
605
+ this.selectedFromTime = this.annaFilterService.tooltipSelectedMap.get(header).fromTime;
606
+ this.selectedToTime = this.annaFilterService.tooltipSelectedMap.get(header).toTime;
607
+ }
608
+ else {
609
+ this.selectedFromTime = this.annaFilterService.initialValueMap.get(header).fromTime;
610
+ this.selectedToTime = this.annaFilterService.initialValueMap.get(header).toTime;
611
+ }
612
+ if (this.selectedFromTime != undefined || this.selectedToTime != undefined) {
613
+ this.selectedFromTime = this.annaDateTimeFormatService.formatToTwelveHrs(this.selectedFromTime, true);
614
+ this.selectedToTime = this.annaDateTimeFormatService.formatToTwelveHrs(this.selectedToTime, true);
615
+ this.clonedSelectedFromTime = cloneDeep(this.selectedFromTime);
616
+ this.clonedSelectedToTime = cloneDeep(this.selectedToTime);
617
+ }
618
+ else {
619
+ this.selectedFromTime = ["-", "-", "-"];
620
+ this.selectedToTime = ["-", "-", "-"];
621
+ this.disableTimeFilterApplyBtn = true;
622
+ }
623
+ if (this.gtGeneralConfig.component === "SPOTDETAILS" || this.gtGeneralConfig.component === "EXCLUDEINVENTORYPOPUP") {
624
+ this.showMultiTimeCheckbox = false;
625
+ this.showZeroTimeCheckbox = false;
626
+ this.showEnterTimeCheckbox = false;
627
+ if (this.clonedTableData.findIndex((obj) => obj[header] == "0") != -1) {
628
+ this.showZeroTimeCheckbox = true;
629
+ this.annaFilterService.includeZeroTime = this.tableData.findIndex((obj) => obj[header] == "0") != -1;
630
+ this.zeroTimeCheckboxChecked = this.annaFilterService.includeZeroTime;
631
+ }
632
+ if (this.clonedTableData.findIndex((obj) => obj[header] == "<multi>") != -1) {
633
+ this.showMultiTimeCheckbox = true;
634
+ this.annaFilterService.includeMultiTime = this.tableData.findIndex((obj) => obj[header] == "<multi>") != -1;
635
+ this.multiTimeCheckboxChecked = this.annaFilterService.includeMultiTime;
636
+ }
637
+ if (this.showZeroTimeCheckbox || this.showMultiTimeCheckbox) {
638
+ this.showEnterTimeCheckbox = true;
639
+ }
640
+ if (this.clonedTableData.findIndex((obj) => obj[header] != "<multi>" && obj[header] != "0") != -1) {
641
+ this.annaFilterService.includeTimeRange = this.tableData.findIndex((obj) => obj[header] != "<multi>" && obj[header] != "0") != -1;
642
+ this.enterTimeCheckboxChecked = this.annaFilterService.includeTimeRange;
643
+ }
644
+ }
645
+ else if (this.gtGeneralConfig.component === "RATING") {
646
+ this.showMultiTimeCheckbox = false;
647
+ this.showZeroTimeCheckbox = false;
648
+ this.showEnterTimeCheckbox = false;
649
+ if (this.clonedTableData.findIndex((obj) => obj[header][0] == "0") != -1) {
650
+ this.showZeroTimeCheckbox = true;
651
+ this.annaFilterService.includeZeroTime = this.tableData.findIndex((obj) => obj[header][0] == "0") != -1;
652
+ this.zeroTimeCheckboxChecked = this.annaFilterService.includeZeroTime;
653
+ }
654
+ if (this.clonedTableData.findIndex((obj) => obj[header][0] == "<multi>") != -1) {
655
+ this.showMultiTimeCheckbox = true;
656
+ this.annaFilterService.includeMultiTime = this.tableData.findIndex((obj) => obj[header][0] == "<multi>") != -1;
657
+ this.multiTimeCheckboxChecked = this.annaFilterService.includeMultiTime;
658
+ }
659
+ if (this.showZeroTimeCheckbox || this.showMultiTimeCheckbox) {
660
+ this.showEnterTimeCheckbox = true;
661
+ }
662
+ if (this.clonedTableData.findIndex((obj) => obj[header][0] != "<multi>" && obj[header][0] != "0") != -1) {
663
+ this.annaFilterService.includeTimeRange = this.tableData.findIndex((obj) => obj[header][0] != "<multi>" && obj[header][0] != "0") != -1;
664
+ this.enterTimeCheckboxChecked = this.annaFilterService.includeTimeRange;
665
+ }
559
666
  }
560
- const viewportSize = this.viewport.getViewportSize();
561
- const dataLength = this.viewport.getDataLength();
562
- const scrollOffset = this.viewport.measureScrollOffset();
563
- // the index of the first item that would be at least partially visible in the viewport
564
- let firstVisibleIndex = Math.floor((scrollOffset + this.headerHeight) / this.rowHeight);
565
- // if the buffer size is 10 but the first visible item is at, say, index 7
566
- // then the buffered items must be 7, because we don't have 10 items available to buffer.
567
- const bufferedItems = Math.min(AnnaFilterService.bufferSize, firstVisibleIndex);
568
- const itemsInViewport = Math.ceil(viewportSize / this.rowHeight);
569
- const itemsToRender = itemsInViewport + this.buffer;
570
- // Clamp the new range between 0 and dataLength
571
- const newStart = Math.max(0, firstVisibleIndex - bufferedItems);
572
- const newEnd = Math.min(dataLength, firstVisibleIndex + itemsToRender);
573
- const newRange = {
574
- start: newStart,
575
- end: newEnd
576
- };
577
- const newOffset = this.rowHeight * (firstVisibleIndex - bufferedItems);
578
- this.viewport.setRenderedContentOffset(newOffset);
579
- this.viewport.setRenderedRange(newRange);
580
- this._scrolledIndexChange.next(Math.floor(firstVisibleIndex));
581
667
  }
582
- updateTotalContentSize() {
583
- this.viewport?.setTotalContentSize(this.viewport.getDataLength() * this.rowHeight);
668
+ selectOrUnselectMultiTimeCheckbox() {
669
+ this.multiTimeCheckboxChecked = !this.multiTimeCheckboxChecked;
670
+ this.annaFilterService.includeMultiTime = !this.annaFilterService.includeMultiTime;
671
+ this.disableTimeFilterApplyButton();
584
672
  }
585
- }
586
- /**
587
- * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
588
- * `FixedSizeVirtualScrollStrategy` from the given directive.
589
- * @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
590
- * `FixedSizeVirtualScrollStrategy` from.
591
- */
592
- function fixedSizeVirtualScrollStrategyFactory(fixedSizeDir) {
593
- return fixedSizeDir.scrollStrategy;
594
- }
595
- class AnnaFixedRowSizeTableVirtualScrollStrategyDirective {
596
- constructor() {
597
- this._rowHeight = 30;
598
- this._headerRowHeight = 30;
599
- this._buffer = 20;
600
- this._headerRows = null;
601
- this.headerRowCount = 1;
602
- /** The scroll strategy used by this directive. */
603
- this.scrollStrategy = new AnnaFixedRowSizeTableVirtualScrollStrategy(this.rowHeight, this.buffer, this.headerRowHeight * this.headerRowCount);
673
+ selectOrUnselectZeroTimeCheckbox() {
674
+ this.zeroTimeCheckboxChecked = !this.zeroTimeCheckboxChecked;
675
+ this.annaFilterService.includeZeroTime = !this.annaFilterService.includeZeroTime;
676
+ this.disableTimeFilterApplyButton();
604
677
  }
605
- /** The height of rows in the table (in pixels). Defaults to 30. */
606
- set rowHeight(value) { this._rowHeight = coerceNumberProperty(value); }
607
- get rowHeight() { return this._rowHeight; }
608
- /**
609
- * The height of header rows in the table (in pixels). Defaults to 30.
610
- */
611
- set headerRowHeight(value) { this._headerRowHeight = coerceNumberProperty(value); }
612
- get headerRowHeight() { return this._headerRowHeight; }
613
- /**
614
- * The number of buffered rows rendered beyond the viewport.
615
- * If the number of buffered rows dips below this number, more rows will be rendered. Defaults to 20.
616
- */
617
- set buffer(value) {
618
- this._buffer = coerceNumberProperty(value);
678
+ selectOrUnselectEnterTimeCheckbox() {
679
+ this.enterTimeCheckboxChecked = !this.enterTimeCheckboxChecked;
680
+ this.annaFilterService.includeTimeRange = !this.annaFilterService.includeTimeRange;
681
+ this.disableTimeFilterApplyButton();
682
+ }
683
+ disableSliderApplyBtn() {
684
+ return this.options.floor === this.options.ceil;
685
+ }
686
+ isCheckboxSelected(data) {
687
+ this.allSelected = this.annaFilterService.isCheckboxSelected(data);
688
+ if (this.annaFilterService.tooltipMap.get(this.annaFilterService.selectedRadio).filter((x) => x.isSelected && !x.isHidden).length == 0) {
689
+ this.disableCheckboxApply = true;
690
+ }
691
+ else {
692
+ this.disableCheckboxApply = false;
693
+ }
694
+ }
695
+ minValueChanged(value) {
696
+ if (isNaN(+value)) {
697
+ this.sliderMinValue = +this.options.floor;
698
+ }
699
+ else {
700
+ if (+value > this.sliderMaxValue) {
701
+ this.sliderMinValue = this.sliderMaxValue;
702
+ }
703
+ else if (+value < this.options.floor) {
704
+ this.sliderMinValue = this.options.floor;
705
+ }
706
+ else {
707
+ this.sliderMinValue = +value;
708
+ }
709
+ }
619
710
  }
620
- get buffer() { return this._buffer; }
621
- set headerRows(value) { this._headerRows = coerceNumberProperty(value, undefined); }
622
- get headerRows() { return this._headerRows; }
623
- ngOnChanges(change) {
624
- if (this.headerRows != undefined || this.headerRowsQuery) {
625
- this.handleChange();
711
+ maxValueChanged(value) {
712
+ if (isNaN(+value)) {
713
+ this.sliderMaxValue = +this.options.ceil;
626
714
  }
627
- if (change['buffer']?.previousValue != change['buffer']?.currentValue) {
628
- AnnaFilterService.bufferSize = this.buffer;
629
- this.scrollStrategy = new AnnaFixedRowSizeTableVirtualScrollStrategy(this.rowHeight, this.buffer, this.headerRowHeight * this.headerRowCount);
715
+ else {
716
+ if (+value < this.sliderMinValue) {
717
+ this.sliderMaxValue = this.sliderMinValue;
718
+ }
719
+ else if (+value > this.options.ceil) {
720
+ this.sliderMinValue = this.options.ceil;
721
+ }
722
+ else {
723
+ this.sliderMaxValue = +value;
724
+ }
630
725
  }
631
726
  }
632
- ngAfterContentInit() {
633
- this.headerRowsQuery.changes.subscribe(() => {
634
- this.handleChange();
635
- });
727
+ sliderValueChange() {
728
+ this.sliderValue = { min: this.sliderMinValue, max: this.sliderMaxValue };
636
729
  }
637
- handleChange() {
638
- this.scrollStrategy.updateRowHeightAndBuffer(this.rowHeight, this.buffer,
639
- // Use the explicit headerRows input value if set.
640
- // Otherwise, fall back to the QueryList length.
641
- this.headerRowHeight * (this._headerRows ?? this.headerRowsQuery.length));
730
+ cancelSliderFilter() {
731
+ this.sliderValue = null;
732
+ this.closeTooltip();
642
733
  }
643
- }
644
- AnnaFixedRowSizeTableVirtualScrollStrategyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
645
- AnnaFixedRowSizeTableVirtualScrollStrategyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, selector: "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]", inputs: { rowHeight: "rowHeight", headerRowHeight: "headerRowHeight", buffer: "buffer", headerRows: "headerRows" }, providers: [
646
- {
647
- provide: VIRTUAL_SCROLL_STRATEGY,
648
- useFactory: fixedSizeVirtualScrollStrategyFactory,
649
- deps: [forwardRef(() => AnnaFixedRowSizeTableVirtualScrollStrategyDirective)]
734
+ allOptionClicked() {
735
+ if (this.allSelected == 0 || this.allSelected == 2) {
736
+ this.allSelected = 1;
737
+ this.disableCheckboxApply = false;
650
738
  }
651
- ], queries: [{ propertyName: "headerRowsQuery", predicate: MatHeaderRowDef }], usesOnChanges: true, ngImport: i0 });
652
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, decorators: [{
653
- type: Directive,
654
- args: [{
655
- selector: "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]",
656
- providers: [
657
- {
658
- provide: VIRTUAL_SCROLL_STRATEGY,
659
- useFactory: fixedSizeVirtualScrollStrategyFactory,
660
- deps: [forwardRef(() => AnnaFixedRowSizeTableVirtualScrollStrategyDirective)]
661
- }
662
- ]
663
- }]
664
- }], propDecorators: { rowHeight: [{
665
- type: Input
666
- }], headerRowHeight: [{
667
- type: Input
668
- }], buffer: [{
669
- type: Input
670
- }], headerRows: [{
671
- type: Input
672
- }], headerRowsQuery: [{
673
- type: ContentChildren,
674
- args: [MatHeaderRowDef]
675
- }] } });
676
-
677
- /**
678
- * Directive that wraps a given data source in a "virtual" data source that emits
679
- * the slice of the original data source that matches the range that should be rendered
680
- * in the containing virtual scroll viewport.
681
- */
682
- class AnnaVirtualTableDirective {
683
- constructor(elementRef, viewport, table, ngZone, _coalescedStyleScheduler) {
684
- this.viewport = viewport;
685
- this.table = table;
686
- this._coalescedStyleScheduler = _coalescedStyleScheduler;
687
- this.virtualizedDataStream = new Subject();
688
- this.dataSourceChanges = new Subject();
689
- /** The raw, unvirtualized data stream. Emits whenever the data in the current DataSource changes. */
690
- this.dataStream = this.dataSourceChanges
691
- .pipe(
692
- // Start off with null data source.
693
- startWith(null),
694
- // Bundle up the previous and current data sources so we can work with both.
695
- pairwise(),
696
- // Use `changeDataSource` to disconnect from the previous data source and connect to the
697
- // new one, passing back a stream of data changes which we run through `switchMap` to give
698
- // us a data stream that emits the latest data from whatever the current data source is.
699
- switchMap(([prev, cur]) => this.changeDataSource(prev, cur)),
700
- // Replay the last emitted data when someone subscribes.
701
- shareReplay(1));
702
- this.viewChange = new Subject();
703
- this.destroyed$ = new Subject();
704
- this.renderedRange = { start: 0, end: 0 };
705
- this.isNativeHtmlTable = false;
706
- table.dataSource = this.virtualizedDataStream;
707
- this.isNativeHtmlTable = elementRef.nativeElement.tagName === 'TABLE';
708
- this.dataStream.subscribe(data => {
709
- this.data = data;
710
- this.onRenderedDataChange();
711
- });
712
- viewport.renderedRangeStream.pipe(takeUntil(this.destroyed$)).subscribe((range) => {
713
- this.renderedRange = range;
714
- ngZone.run(() => this.viewChange.next(range));
715
- this.onRenderedDataChange();
716
- });
717
- viewport.attach(this);
739
+ else {
740
+ this.allSelected = 0;
741
+ this.disableCheckboxApply = true;
742
+ }
743
+ this.annaFilterService.allOptionsClicked(this.allSelected);
718
744
  }
719
- set dataSource(value) {
720
- this._dataSource = value;
721
- if (isDataSource(value)) {
722
- this.dataSourceChanges.next(value);
745
+ applyFilters() {
746
+ let isSame = isEqual(this.toolTipdata, this.tempTooltipData);
747
+ this.toolTipdata = cloneDeep(this.tempTooltipData);
748
+ this.annaFilterService.tooltipMap.set(this.annaFilterService.selectedRadio, this.tempTooltipData);
749
+ if (!isSame) {
750
+ this.annaFilterService.reOrderAppliedFiltersArray(false);
723
751
  }
724
- else {
725
- this.dataSourceChanges.next(new ArrayDataSource(isObservable(value) ? value : Array.from(value || [])));
752
+ let tooltipSelectedDataArray = this.annaFilterService.tooltipMap.get(this.annaFilterService.selectedRadio).filter((x) => x.isSelected).map((x) => x.data);
753
+ if (tooltipSelectedDataArray.length == 0) {
754
+ tooltipSelectedDataArray = this.annaFilterService.tooltipMap.get(this.annaFilterService.selectedRadio).map((x) => x.data);
726
755
  }
756
+ this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, tooltipSelectedDataArray);
757
+ this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
758
+ this.checkIfSortingIsApplied();
759
+ this.filterAppliedToTable.emit(this.tableData);
760
+ // this.generateTableDataWrapper();
761
+ this.disableEnableEachColumnFilters();
762
+ this.closeTooltip();
727
763
  }
728
- get dataSource() {
729
- return this._dataSource;
764
+ revert() {
765
+ this.tempTooltipData = cloneDeep(this.toolTipdata);
766
+ this.annaFilterService.tooltipMap.set(this.annaFilterService.selectedRadio, this.tempTooltipData);
767
+ this.toolTipdata = null;
730
768
  }
731
- ngOnInit() {
732
- // This is just a proof of concept, but the AnnaTableVirtualScrollViewportComponent uses `position: absolute` and `top: #px` instead of `transform: translateY(#px)` to position the viewport.
733
- // This removes the need to account for the translation in the `top` of the sticky header rows.
734
- if (this.viewport instanceof AnnaTableVirtualScrollViewportComponent) {
735
- return;
769
+ closeCheckboxFilter() {
770
+ if (this.toolTipdata) {
771
+ this.revert();
736
772
  }
737
- this.viewport.scrolledIndexChange
738
- .pipe(map(() => this.viewport.getOffsetToRenderedContentStart()), takeUntil(this.destroyed$))
739
- .subscribe((offset) => {
740
- // We need to set the `style.top` property of the sticky header rows
741
- // to the negative value of the virtual scroll viewport's offset, so
742
- // make the offset negative.
743
- offset = -offset;
744
- const stickyStates = this.headerRowDefs.map(rowDef => rowDef.sticky);
745
- // This logic is exactly the same as what's in the StickyStyler (literally copy + paste).
746
- // The only difference is that the `stickyOffset` variable starts at the virtual scroll
747
- // viewport container's offset instead of starting at zero.
748
- const rows = this.table._getRenderedRows(this.table._headerRowOutlet);
749
- const stickyOffsets = [];
750
- const stickyCellHeights = [];
751
- const elementsToStick = [];
752
- for (let rowIndex = 0, stickyOffset = offset; rowIndex < rows.length; rowIndex++) {
753
- stickyOffsets[rowIndex] = stickyOffset;
754
- if (!stickyStates[rowIndex]) {
755
- continue;
756
- }
757
- const row = rows[rowIndex];
758
- elementsToStick[rowIndex] = this.isNativeHtmlTable ? Array.from(row.children) : [row];
759
- const height = row.getBoundingClientRect().height;
760
- stickyOffset += height;
761
- stickyCellHeights[rowIndex] = height;
773
+ this.closeTooltip();
774
+ }
775
+ applySliderFilter() {
776
+ if (this.sliderValue) {
777
+ let selectedDataObj;
778
+ if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
779
+ selectedDataObj = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
762
780
  }
763
- // Using the CoalescedStyleScheduler here is optional. It'll work without it,
764
- // and CoalescedStyleScheduler is not public (yet?), so feel free to remove it.
765
- this._coalescedStyleScheduler.schedule(() => {
766
- for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
767
- if (!stickyStates[rowIndex]) {
768
- continue;
769
- }
770
- for (const element of elementsToStick[rowIndex]) {
771
- element.style.top = `${stickyOffsets[rowIndex]}px`;
772
- }
773
- }
774
- });
775
- });
781
+ else {
782
+ selectedDataObj = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
783
+ }
784
+ let isSame = isEqual(selectedDataObj, this.sliderValue);
785
+ if (!isSame) {
786
+ this.annaFilterService.sliderData = { min: this.options.floor, max: this.options.ceil };
787
+ this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, this.sliderValue);
788
+ this.annaFilterService.reOrderAppliedFiltersArray(false);
789
+ this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
790
+ this.checkIfSortingIsApplied();
791
+ this.filterAppliedToTable.emit(this.tableData);
792
+ // this.generateTableDataWrapper();
793
+ this.disableEnableEachColumnFilters();
794
+ }
795
+ }
796
+ this.sliderValue = null;
797
+ this.closeTooltip();
776
798
  }
777
- ngOnDestroy() {
778
- this.destroyed$.next();
779
- this.dataSourceChanges.complete();
780
- this.virtualizedDataStream.complete();
799
+ cancelInDateFilter() {
800
+ this.closeTooltip();
781
801
  }
782
- /** React to scroll state changes in the viewport. */
783
- onRenderedDataChange() {
784
- if (!this.renderedRange) {
785
- return;
802
+ applyDateFilter(selectedDate) {
803
+ let selectedDateObj;
804
+ if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
805
+ selectedDateObj = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
806
+ }
807
+ else {
808
+ selectedDateObj = cloneDeep(this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio));
809
+ }
810
+ let isStartDateSame = isEqual(this.annaDateTimeFormatService.convertNgbDateToMoment(selectedDate.fromDate), selectedDateObj.minSelectedDate);
811
+ let isEndDateSame = isEqual(this.annaDateTimeFormatService.convertNgbDateToMoment(selectedDate.toDate), selectedDateObj.maxSelectedDate);
812
+ if (!isStartDateSame || !isEndDateSame) {
813
+ selectedDateObj.minSelectedDate = moment(this.annaDateTimeFormatService.convertNgbDateToMoment(selectedDate.fromDate));
814
+ selectedDateObj.maxSelectedDate = moment(this.annaDateTimeFormatService.convertNgbDateToMoment(selectedDate.toDate));
815
+ this.annaFilterService.flightDateRange = {
816
+ minSelectedDate: moment(this.annaDateTimeFormatService.convertNgbDateToMoment(this.calendarMinEnabledDate)),
817
+ maxSelectedDate: moment(this.annaDateTimeFormatService.convertNgbDateToMoment(this.calendarMaxEnabledDate))
818
+ };
819
+ this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, selectedDateObj);
820
+ this.annaFilterService.reOrderAppliedFiltersArray(false);
821
+ this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
822
+ this.checkIfSortingIsApplied();
823
+ this.filterAppliedToTable.emit(this.tableData);
824
+ // this.generateTableDataWrapper();
825
+ this.disableEnableEachColumnFilters();
786
826
  }
787
- this.renderedItems = this.data.slice(this.renderedRange.start, this.renderedRange.end + 1);
788
- // delegate rendering to the table by emitting from the virtualizedDataStream
789
- this.virtualizedDataStream.next(this.renderedItems);
827
+ this.closeTooltip();
790
828
  }
791
- /** Swap out one data source for another. */
792
- changeDataSource(oldDataSource, newDs) {
793
- oldDataSource?.disconnect(this);
794
- return newDs ? newDs.connect(this) : of();
829
+ applyWeekFilter(event) {
795
830
  }
796
- /**
797
- * This method is only used by the experimental AutoSizeVirtualScrollStrategy.
798
- * We're not using that strategy, but I've implemented it just to show how it oculd be done.
799
- * I'm not actually sure if this works.
800
- */
801
- measureRangeSize(range, orientation) {
802
- if (orientation === 'horizontal' || range.end < range.start) {
803
- // virtual scrolling columns are not supported by this directive
804
- return 0;
831
+ incrementHour(arr) {
832
+ if (arr[0] == "") {
833
+ arr[0] = 1;
805
834
  }
806
- const renderedBodyRows = this.table._getRenderedRows(this.table._rowOutlet);
807
- const firstRow = renderedBodyRows[range.start];
808
- const lastRow = renderedBodyRows[range.end];
809
- if (!firstRow || !lastRow) {
810
- return 0;
835
+ else if (parseInt(arr[0]) < 12) {
836
+ arr[0] = parseInt(arr[0]) + 1;
837
+ }
838
+ else {
839
+ arr[0] = 1;
811
840
  }
812
- // We need to include all header and footer rows in the sum, since they're always rendered
813
- const renderedHeaderRows = this.table._getRenderedRows(this.table._headerRowOutlet);
814
- const renderedFooterRows = this.table._getRenderedRows(this.table._footerRowOutlet);
815
- // TODO (performance): Can we just measure the offset of the first and last items and do some math to avoid having to measure each row individually?
816
- const headerHeight = renderedHeaderRows.reduce((sum, row) => {
817
- return sum += row.getBoundingClientRect().height;
818
- }, 0);
819
- const footerHeight = renderedFooterRows.reduce((sum, row) => {
820
- return sum += row.getBoundingClientRect().height;
821
- }, 0);
822
- const bodyHeight = lastRow.getBoundingClientRect().bottom - firstRow.getBoundingClientRect().top;
823
- return headerHeight + footerHeight + bodyHeight;
824
- }
825
- }
826
- AnnaVirtualTableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaVirtualTableDirective, deps: [{ token: i0.ElementRef }, { token: i2.CdkVirtualScrollViewport }, { token: i2$1.CdkTable }, { token: i0.NgZone }, { token: _COALESCED_STYLE_SCHEDULER }], target: i0.ɵɵFactoryTarget.Directive });
827
- AnnaVirtualTableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: AnnaVirtualTableDirective, selector: "[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]", inputs: { dataSource: ["appVirtualDataSource", "dataSource"] }, providers: [{ provide: STICKY_POSITIONING_LISTENER, useExisting: AnnaVirtualTableDirective }], queries: [{ propertyName: "headerRowDefs", predicate: CdkHeaderRowDef }], ngImport: i0 });
828
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaVirtualTableDirective, decorators: [{
829
- type: Directive,
830
- args: [{
831
- selector: '[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]',
832
- providers: [{ provide: STICKY_POSITIONING_LISTENER, useExisting: AnnaVirtualTableDirective }]
833
- }]
834
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.CdkVirtualScrollViewport }, { type: i2$1.CdkTable }, { type: i0.NgZone }, { type: i2$1._CoalescedStyleScheduler, decorators: [{
835
- type: Inject,
836
- args: [_COALESCED_STYLE_SCHEDULER]
837
- }] }]; }, propDecorators: { dataSource: [{
838
- type: Input,
839
- args: ['appVirtualDataSource']
840
- }], headerRowDefs: [{
841
- type: ContentChildren,
842
- args: [CdkHeaderRowDef]
843
- }] } });
844
-
845
- // Angular import statements
846
- class AnnaNonEditableGenericTableComponent {
847
- constructor(cdRef, annaSortService, annaDateTimeFormatService, annaFilterService, annaGenericTableService) {
848
- this.cdRef = cdRef;
849
- this.annaSortService = annaSortService;
850
- this.annaDateTimeFormatService = annaDateTimeFormatService;
851
- this.annaFilterService = annaFilterService;
852
- this.annaGenericTableService = annaGenericTableService;
853
- this.maximumRowsWhichCanBeRenderedWithoutScroll = 5;
854
- this.toggleCheckbox = new EventEmitter();
855
- this.toggleRowCheckbox = new EventEmitter();
856
- this.toggleHeaderCheckbox = new EventEmitter();
857
- this.undoIconClicked = new EventEmitter();
858
- this.filterAppliedToTable = new EventEmitter();
859
- this.sortingAppliedToTable = new EventEmitter();
860
- this.rowClicked = new EventEmitter();
861
- this.radioButtonSelected = new EventEmitter();
862
- this.columnFilterOpened = new EventEmitter();
863
- this.columnFilterClosed = new EventEmitter();
864
- this.gtIconClicked = new EventEmitter();
865
- this.gtSVGIconClicked = new EventEmitter();
866
- this.gtTextActionClicked = new EventEmitter();
867
- this.gtViewDetailClicked = new EventEmitter();
868
- this.noDataWidth = "55%";
869
- this.disableClearAllBtn = true;
870
- this.disableColumnClearAllBtn = true;
871
- this.allSelected = 0;
872
- this.options = {
873
- floor: 0,
874
- ceil: 0,
875
- step: 0.1
876
- };
877
- this.tableColumns = [];
878
- this.totalRowColumns = null;
879
- this.isScrolledLeft = false;
880
- this.rowBorderWidth = 2;
881
- this.PfpIconActiveColor = "#9B1B93";
882
- this.PfpIconDisableColor = "rgba(189,189,189,0.5)";
883
- this.setTooltipRadioNames();
884
- }
885
- ngOnInit() {
886
- // this.tableData = this.numberOfSkeletonColumns;
887
841
  }
888
- ngOnChanges(changes) {
889
- // console.log("generic");
890
- // console.log(this.tableHeaders);
891
- // console.log(JSON.stringify(this.tableData));
892
- if (this.showSkeletonLoading) {
893
- this.tableData = this.numberOfSkeletonColumns;
842
+ decrementHour(arr) {
843
+ if (arr[0] == "") {
844
+ arr[0] = 12;
845
+ }
846
+ else if (parseInt(arr[0]) > 1) {
847
+ arr[0] = parseInt(arr[0]) - 1;
894
848
  }
895
849
  else {
896
- this.setInitialValueMapData();
897
- this.disableEnableEachColumnFilters();
898
- this.tableColumns = this.tableHeaders.filter(x => x.visible).map(x => x.headerInfo[0].objectKey);
899
- this.showSkeletonLoading = false;
850
+ arr[0] = 12;
900
851
  }
901
- //setting table column here as well because while showing skeleton loader, we should show table headers.
902
- if (changes['tableHeaders'] && changes['tableHeaders'].currentValue) {
903
- this.tableColumns = this.tableHeaders.filter(x => x.visible).map(x => x.headerInfo[0].objectKey);
852
+ }
853
+ incrementMinute(arr) {
854
+ if (arr[1] == "" || parseInt(arr[1]) == 0) {
855
+ arr[1] = 30;
904
856
  }
905
- if (changes['totalRowInfo'] && changes['totalRowInfo'].currentValue) {
906
- this.totalRowColumns = this.totalRowInfo.map(x => x.colName);
857
+ else {
858
+ arr[1] = "00";
907
859
  }
908
- this.cdRef.detectChanges();
909
- }
910
- trackByFn(index) {
911
- return index;
912
- }
913
- setTooltipRadioNames() {
914
- this.tooltipRadioTextMap = new Map();
915
- this.tooltipRadioTextMap.set("StartTimeForFilter", "Start Time");
916
- this.tooltipRadioTextMap.set("EndTimeForFilter", "End Time");
917
- this.tooltipRadioTextMap.set("start_time_for_filter", "Start Time");
918
- this.tooltipRadioTextMap.set("end_time_for_filter", "End Time");
919
- this.tooltipRadioTextMap.set("primaryAEName", "Primary AE");
920
- this.tooltipRadioTextMap.set("region", "Region");
921
- this.tooltipRadioTextMap.set("agencyName", "Agency");
922
- this.tooltipRadioTextMap.set("location", "Location");
923
- this.tooltipRadioTextMap.set("advertiserName", "Advertiser");
924
- this.tooltipRadioTextMap.set("productCode", "Product Code");
925
- this.tooltipRadioTextMap.set("flightStartDate", "Start Date");
926
- this.tooltipRadioTextMap.set("flightEndDate", "End Date");
927
- this.tooltipRadioTextMap.set("orderIdAndRevNumber", "STN Order#-Rev#");
928
- this.tooltipRadioTextMap.set("alternateOrderId", "Buyer Order#");
929
- this.tooltipRadioTextMap.set("grp", "GRP");
930
- this.tooltipRadioTextMap.set("cpp", "CPP");
931
- this.tooltipRadioTextMap.set("imps", "IMPS");
932
- this.tooltipRadioTextMap.set("cpm", "CPM");
933
- this.tooltipRadioTextMap.set("offeredMGs", "Offered MG");
934
- this.tooltipRadioTextMap.set("outstandingPE", "O/S PE");
935
- this.tooltipRadioTextMap.set("offeredADUs", "Offered ADUs");
936
- this.tooltipRadioTextMap.set("udDeficitValue", "Pending Audience Delta");
937
- this.tooltipRadioTextMap.set("startEndTimeMulti", "Time");
938
- this.tooltipRadioTextMap.set("bookedValue", "Booked");
939
- this.tooltipRadioTextMap.set("bookedSpots", "Spots");
940
- this.tooltipRadioTextMap.set("userChanges", "Other changes");
941
- this.tooltipRadioTextMap.set("inventoryCode", "Inventory Code");
942
- this.tooltipRadioTextMap.set("program", "Program");
943
- this.tooltipRadioTextMap.set("agency", "Agency");
944
- this.tooltipRadioTextMap.set("advertiser", "Advertiser");
945
- this.tooltipRadioTextMap.set("startDate", "Start Date");
946
- this.tooltipRadioTextMap.set("endDate", "End Date");
947
- this.tooltipRadioTextMap.set("rcvPreempt", "Madegood PE");
948
- this.tooltipRadioTextMap.set("osPreempt", "O/S PE");
949
- this.tooltipRadioTextMap.set("rcvUnderDly", "Recovered UD");
950
- this.tooltipRadioTextMap.set("osUnderDly", "O/s Under Dly");
951
- this.tooltipRadioTextMap.set("primaryAe", "Primary AE");
952
- this.tooltipRadioTextMap.set("region", "Region");
953
- this.tooltipRadioTextMap.set("revCode1", "Rev code 1");
954
- this.tooltipRadioTextMap.set("orderNoRevNo", "STN Order#-Rev#");
955
- this.tooltipRadioTextMap.set("revCode2", "Rev code 2");
956
- this.tooltipRadioTextMap.set("revCode3", "Rev code 3");
957
- this.tooltipRadioTextMap.set("booked", "Booked");
958
- this.tooltipRadioTextMap.set("spots", "Spots");
959
- this.tooltipRadioTextMap.set("postedAudPercent", "Posted %");
960
- this.tooltipRadioTextMap.set("revision", "Revision");
961
- this.tooltipRadioTextMap.set("productCode", "Product Code");
962
- this.tooltipRadioTextMap.set("buyerOrderId", "ALT Order#");
963
- this.tooltipRadioTextMap.set("demo", "Demo");
964
- this.tooltipRadioTextMap.set("postedAdu", "Posted ADUs");
965
- this.tooltipRadioTextMap.set("scheduledAdu", "Scheduled ADUs");
966
- this.tooltipRadioTextMap.set("audienceDeficit", "Audience Deficit");
967
- this.tooltipRadioTextMap.set("postedAudPercent", "Posted Audience %");
968
860
  }
969
- generateTableDataWrapper() {
970
- this.showSkeletonLoading = true;
971
- this.tableDataWrapper = [];
972
- let rowObject;
973
- let columnName;
974
- let columnObject;
975
- let columnObjectKey;
976
- let keysUsedForTableDisplay;
977
- let keysUsedForColumn;
978
- let additionalInfoObject;
979
- let additionalKeys;
980
- this.tableData.forEach((obj) => {
981
- rowObject = {};
982
- keysUsedForTableDisplay = [];
983
- for (var colNum in this.tableHeaders) {
984
- columnObject = {};
985
- if (!this.tableHeaders[colNum].visible) {
986
- continue;
987
- }
988
- columnName = "";
989
- keysUsedForColumn = [];
990
- this.tableHeaders[colNum].headerInfo.forEach((header) => {
991
- if (header.typeOfBodyData === "STRING") {
992
- columnObjectKey = header.objectKey;
993
- columnObject[columnObjectKey] = obj[columnObjectKey];
994
- keysUsedForTableDisplay.push(columnObjectKey);
995
- keysUsedForColumn.push(columnObjectKey);
996
- }
997
- else if (header.typeOfBodyData === "ICON") {
998
- columnObjectKey = header.typeOfBodyData;
999
- columnObject[columnObjectKey] = obj[header.objectKey];
1000
- keysUsedForColumn.push(header.objectKey);
1001
- }
1002
- else if (header.typeOfBodyData === "CHECKBOX") {
1003
- columnObjectKey = header.typeOfBodyData;
1004
- columnObject[columnObjectKey] = obj[header.objectKey];
1005
- keysUsedForColumn.push(header.objectKey);
1006
- }
1007
- });
1008
- for (var i = 0; i < keysUsedForColumn.length; i++) {
1009
- columnName += keysUsedForColumn[i];
1010
- if (i !== keysUsedForColumn.length - 1) {
1011
- columnName += ',';
1012
- }
1013
- }
1014
- rowObject[columnName] = columnObject;
1015
- }
1016
- additionalInfoObject = {};
1017
- additionalKeys = Object.keys(obj).filter(key => !keysUsedForTableDisplay.includes(key));
1018
- additionalKeys.forEach(key => {
1019
- additionalInfoObject[key] = obj[key];
1020
- });
1021
- rowObject.AdditionalInfo = additionalInfoObject;
1022
- this.tableDataWrapper.push(rowObject);
1023
- });
1024
- this.tableData = this.tableDataWrapper;
1025
- this.showSkeletonLoading = false;
1026
- // console.log(JSON.stringify(this.tableDataWrapper));
861
+ decrementMinute(arr) {
862
+ if (arr[1] == "" || parseInt(arr[1]) == 30) {
863
+ arr[1] = "00";
864
+ }
865
+ else {
866
+ arr[1] = 30;
867
+ }
1027
868
  }
1028
- selectOrUnselectCheckbox(rowData, columnKeys, isCheckboxSelected) {
1029
- this.toggleCheckbox.emit({ rowData, columnKeys, isCheckboxSelected });
869
+ changeStartTimeHour(increment) {
870
+ if (increment) {
871
+ this.incrementHour(this.selectedFromTime);
872
+ }
873
+ else {
874
+ this.decrementHour(this.selectedFromTime);
875
+ }
876
+ this.disableTimeFilterApplyButton();
1030
877
  }
1031
- selectUnselectAllRows() {
1032
- this.toggleHeaderCheckbox.emit();
878
+ changeEndTimeHour(increment) {
879
+ if (increment) {
880
+ this.incrementHour(this.selectedToTime);
881
+ }
882
+ else {
883
+ this.decrementHour(this.selectedToTime);
884
+ }
885
+ this.disableTimeFilterApplyButton();
1033
886
  }
1034
- selectUnselectRow(rowData) {
1035
- this.toggleRowCheckbox.emit(rowData);
887
+ changeEndTimeMinute(increment) {
888
+ if (increment) {
889
+ this.incrementMinute(this.selectedToTime);
890
+ }
891
+ else {
892
+ this.decrementMinute(this.selectedToTime);
893
+ }
894
+ this.disableTimeFilterApplyButton();
1036
895
  }
1037
- undoCreditedSpot(data) {
1038
- this.undoIconClicked.emit({ data, mgOrCredit: "Credit" });
896
+ changeStartTimeMinute(increment) {
897
+ if (increment) {
898
+ this.incrementMinute(this.selectedFromTime);
899
+ }
900
+ else {
901
+ this.decrementMinute(this.selectedFromTime);
902
+ }
903
+ this.disableTimeFilterApplyButton();
1039
904
  }
1040
- undoMgSpot(data) {
1041
- this.undoIconClicked.emit({ data, mgOrCredit: "MakeGood" });
905
+ applyTimeFilters() {
906
+ let fromTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedFromTime[0] + ":" + this.selectedFromTime[1] + " " + this.selectedFromTime[2], true);
907
+ let fromTime24HrFormat = fromTime24HrFormatArr[0] + ":" + fromTime24HrFormatArr[1] + ":00";
908
+ let toTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedToTime[0] + ":" + this.selectedToTime[1] + " " + this.selectedToTime[2], true);
909
+ let toTime24HrFormat = toTime24HrFormatArr[0] + ":" + toTime24HrFormatArr[1] + ":00";
910
+ let previousSelectedData;
911
+ if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
912
+ previousSelectedData = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
913
+ }
914
+ else {
915
+ previousSelectedData = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
916
+ }
917
+ let selectedData = {
918
+ fromTime: fromTime24HrFormat, toTime: toTime24HrFormat, includeMulti: this.annaFilterService.includeMultiTime,
919
+ includeZero: this.annaFilterService.includeZeroTime, includeTimeRange: this.annaFilterService.includeTimeRange
920
+ };
921
+ if (!isEqual(previousSelectedData, selectedData)) {
922
+ this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, selectedData);
923
+ this.annaFilterService.reOrderAppliedFiltersArray(false);
924
+ this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
925
+ this.checkIfSortingIsApplied();
926
+ this.filterAppliedToTable.emit(this.tableData);
927
+ // this.generateTableDataWrapper();
928
+ this.disableEnableEachColumnFilters();
929
+ }
930
+ this.closeTooltip();
1042
931
  }
1043
- //Sort and Filter Logic begins!
1044
- closeTooltip() {
1045
- if (this.tooltip && this.tooltip.isOpen()) {
1046
- this.tooltip.close();
932
+ closeTimeFilter() {
933
+ this.selectedFromTime = cloneDeep(this.clonedSelectedFromTime);
934
+ this.selectedToTime = cloneDeep(this.clonedSelectedToTime);
935
+ this.closeTooltip();
936
+ }
937
+ disableTimeFilterApplyButton() {
938
+ let timeFormat = "HH:mm:ss";
939
+ let startTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedFromTime[0] + ":" + this.selectedFromTime[1] + " " + this.selectedFromTime[2], true);
940
+ let startTime24HrFormat = startTime24HrFormatArr[0] + ":" + startTime24HrFormatArr[1] + ":00";
941
+ let endTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedToTime[0] + ":" + this.selectedToTime[1] + " " + this.selectedToTime[2], true);
942
+ let endTime24HrFormat = endTime24HrFormatArr[0] + ":" + endTime24HrFormatArr[1] + ":00";
943
+ this.disableTimeFilterApplyBtn = moment(startTime24HrFormat, timeFormat).isAfter(moment(endTime24HrFormat, timeFormat));
944
+ if (!this.multiTimeCheckboxChecked && !this.zeroTimeCheckboxChecked && !this.enterTimeCheckboxChecked) {
945
+ this.disableTimeFilterApplyBtn = true;
1047
946
  }
1048
- this.tooltip = null;
1049
- this.disableCheckboxApply = false;
1050
- if (!this.bindValueFuncCalled) {
1051
- this.columnFilterClosed.emit();
947
+ }
948
+ sortedData(event) {
949
+ if (event.type == "none") {
950
+ this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
1052
951
  }
952
+ else {
953
+ this.tableData = event.data;
954
+ }
955
+ this.sortingAppliedToTable.emit(this.tableData);
956
+ // this.generateTableDataWrapper();
1053
957
  }
1054
- closeSortTooltip() {
1055
- if (this.annaSortService.tooltip && this.annaSortService.tooltip.isOpen()) {
1056
- this.annaSortService.tooltip.close();
958
+ checkIfSortingIsApplied() {
959
+ let appliedkey;
960
+ let isAsc;
961
+ const arr = this.sortComponent.toArray();
962
+ let obj = this.annaSortService.checkIfSortingIsApplied(this.annaSortService.sortByAsc, true);
963
+ appliedkey = obj.key;
964
+ isAsc = obj.setValueTo;
965
+ if (!appliedkey) {
966
+ let obj = this.annaSortService.checkIfSortingIsApplied(this.annaSortService.sortByDesc, false);
967
+ appliedkey = obj.key;
968
+ isAsc = obj.setValueTo;
969
+ }
970
+ if (appliedkey) {
971
+ this.applySorting(arr, appliedkey, isAsc);
1057
972
  }
1058
973
  }
1059
- initFilters() {
1060
- this.annaFilterService.tooltipMap = new Map();
1061
- this.annaFilterService.tooltipSelectedMap = new Map();
1062
- this.annaSortService.sortByAsc = new Map();
1063
- this.annaSortService.sortByDesc = new Map();
1064
- this.annaFilterService.selectedRadio = null;
1065
- this.annaFilterService.appliedFiltersArray = [];
1066
- //closing the sort tooltip if we route on the same route or if we click dropdown filters
1067
- this.closeSortTooltip();
1068
- this.annaSortService.tooltip = null;
1069
- this.disableClearAllBtn = true;
1070
- this.disableTimeFilterApplyBtn = false;
974
+ applySorting(sortComponentArr, appliedKey, isAsc) {
975
+ sortComponentArr.forEach((component) => {
976
+ if (component.sortBy === appliedKey) {
977
+ this.setSortComponentDataProperty(component);
978
+ isAsc ? component.sortByAscending() : component.sortByDescending();
979
+ }
980
+ });
1071
981
  }
1072
- setInitialValueMapData() {
1073
- this.annaFilterService.initialValueMap = new Map();
1074
- this.tableHeaders.forEach((column) => {
1075
- column.headerInfo.forEach((header) => {
1076
- if (header.filter === "SLIDER") {
1077
- header.filterObjectKeys.forEach((key) => {
1078
- let min = this.annaFilterService.returnMaxAndMinValue(this.clonedTableData, key, true);
1079
- let max = this.annaFilterService.returnMaxAndMinValue(this.clonedTableData, key, false);
1080
- let obj = { min, max };
1081
- this.annaFilterService.initialValueMap.set(key, obj);
1082
- });
1083
- }
1084
- else if (header.filter === "DATE") {
1085
- header.filterObjectKeys.forEach((key) => {
982
+ setSortComponentDataProperty(sortComponent) {
983
+ sortComponent.data = this.tableData;
984
+ sortComponent.clonedData = cloneDeep(this.tableData);
985
+ }
986
+ disableEnableEachColumnFilters() {
987
+ this.tableHeaders.forEach(header => {
988
+ header.headerInfo.forEach(item => {
989
+ if (item.filter != "") {
990
+ let values = [];
991
+ item.disableFilter = true;
992
+ item.filterObjectKeys.forEach(key => {
1086
993
  if (key == "period") {
1087
- const minMaxStartDate = this.annaFilterService.returnMinAndMaxDate(this.clonedTableData, "startDate");
1088
- const minMaxEndDate = this.annaFilterService.returnMinAndMaxDate(this.clonedTableData, "endDate");
1089
- let dateObj = { minSelectedDate: minMaxStartDate[0], maxSelectedDate: minMaxEndDate[1] };
1090
- this.annaFilterService.initialValueMap.set(key, dateObj);
1091
- }
1092
- else {
1093
- const minMaxDate = this.annaFilterService.returnMinAndMaxDate(this.clonedTableData, key);
1094
- let obj = { minSelectedDate: minMaxDate[0], maxSelectedDate: minMaxDate[1] };
1095
- this.annaFilterService.initialValueMap.set(key, obj);
1096
- }
1097
- });
1098
- }
1099
- else if (header.filter === "TIME") {
1100
- header.filterObjectKeys.forEach((key) => {
1101
- let data = this.clonedTableData.filter((obj) => !["", "-", null, "0", "<multi>"].includes(obj[key]));
1102
- let timeArr = map$1(data, key);
1103
- timeArr.sort((a, b) => {
1104
- return this.annaDateTimeFormatService.sortByTimeAscending(a, b);
1105
- });
1106
- let obj = {
1107
- fromTime: timeArr[0],
1108
- toTime: timeArr[timeArr.length - 1],
1109
- };
1110
- if (this.gtGeneralConfig.component === "SPOTDETAILS" || this.gtGeneralConfig.component === "EXCLUDEINVENTORYPOPUP") {
1111
- let includeMulti = this.clonedTableData.findIndex((obj) => obj[key] == "<multi>") != -1;
1112
- let includeZero = this.clonedTableData.findIndex((obj) => obj[key] == "0") != -1;
1113
- let includeTimeRange = this.clonedTableData.findIndex((obj) => obj[key] != "0" && obj[key] != "<multi>") != -1;
1114
- let obj = {
1115
- fromTime: timeArr[0],
1116
- toTime: timeArr[timeArr.length - 1],
1117
- includeMulti: includeMulti,
1118
- includeZero: includeZero,
1119
- includeTimeRange: includeTimeRange
1120
- };
1121
- this.annaFilterService.initialValueMap.set(key, obj);
1122
- }
1123
- else if (this.gtGeneralConfig.component === "RATING") {
1124
- let includeMulti = this.clonedTableData.findIndex((obj) => obj[key][0] == "<multi>") != -1;
1125
- let includeZero = this.clonedTableData.findIndex((obj) => obj[key][0] == "0") != -1;
1126
- let includeTimeRange = this.clonedTableData.findIndex((obj) => obj[key][0] != "0" && obj[key][0] != "<multi>") != -1;
1127
- let startTimeArr = map$1(this.clonedTableData, "startTime");
1128
- let endTimeArr = map$1(this.clonedTableData, "endTime");
1129
- startTimeArr.sort((a, b) => {
1130
- return this.annaDateTimeFormatService.sortByTimeAscending(a, b);
1131
- });
1132
- endTimeArr.sort((a, b) => {
1133
- return this.annaDateTimeFormatService.sortByTimeDescending(a, b);
1134
- });
1135
- let obj = {
1136
- fromTime: startTimeArr[0],
1137
- toTime: endTimeArr[0],
1138
- includeMulti: includeMulti,
1139
- includeZero: includeZero,
1140
- includeTimeRange: includeTimeRange
1141
- };
1142
- this.annaFilterService.initialValueMap.set(key, obj);
994
+ let uniqStartDate = uniq(this.tableData.map((u) => u["startDate"]));
995
+ let uniqEndDate = uniq(this.tableData.map((u) => u["endDate"]));
996
+ item.disableFilter = (uniqStartDate.length > 1 || uniqEndDate.length > 1) ? false : true;
1143
997
  }
1144
998
  else {
1145
- this.annaFilterService.initialValueMap.set(key, obj);
999
+ values = this.tableData.map((u) => u[key]);
1000
+ if (uniq(values).filter(n => n != null).length > 1) {
1001
+ item.disableFilter = false;
1002
+ }
1146
1003
  }
1147
- });
1148
- }
1149
- });
1150
- });
1151
- }
1152
- isTooltipActive(header) {
1153
- return this.annaFilterService.isTooltipActive(header);
1154
- }
1155
- bindTheValueToToolTip(tooltip, header) {
1156
- this.bindValueFuncCalled = true;
1157
- let containerToScroll;
1158
- if (this.gtGeneralConfig.component === "SPOTDETAILS" || this.gtGeneralConfig.component === "DRRLISTING") {
1159
- containerToScroll = document.getElementsByClassName("scrollable-container")[0];
1160
- var mediaQuery = window.matchMedia("(max-width: 1366px)");
1161
- if (mediaQuery.matches) {
1162
- containerToScroll.scroll(0, this.gtGeneralConfig.verticalScrollOffsetForFilterTooltip);
1163
- }
1164
- }
1165
- // if same tooltip opened close it
1166
- if (tooltip == this.tooltip) {
1167
- this.bindValueFuncCalled = false;
1168
- this.closeTooltip();
1169
- }
1170
- else {
1171
- this.searchBar = '';
1172
- let enabledHeaders = [];
1173
- header.forEach((item) => {
1174
- if (item == "period") {
1175
- let uniqStartDate = uniq(this.tableData.map((u) => u["startDate"]));
1176
- let uniqEndDate = uniq(this.tableData.map((u) => u["endDate"]));
1177
- if (uniqStartDate.length > 1 || uniqEndDate.length > 1 || this.isTooltipActive([item])) {
1178
- enabledHeaders.push(item);
1179
- }
1004
+ });
1005
+ // if(uniq(values).length > 1){
1006
+ // item.disableFilter = false;
1007
+ // }else{
1008
+ // item.disableFilter = true;
1009
+ // }
1180
1010
  }
1181
- else if (uniq(this.tableData.map((u) => u[item])).length > 1 || this.isTooltipActive([item])) {
1182
- enabledHeaders.push(item);
1011
+ if (item.sort) {
1012
+ if (uniq(this.tableData.map((u) => u[item.objectKey])).length > 1) {
1013
+ item.disableSort = false;
1014
+ }
1015
+ else {
1016
+ item.disableSort = true;
1017
+ }
1183
1018
  }
1184
1019
  });
1185
- this.openTooltip(tooltip, enabledHeaders);
1186
- if (window.innerWidth < 1500 && window.innerHeight < 768 && !this.annaFilterService.sliderSet.has(header[0])) {
1187
- this.columnFilterOpened.emit();
1188
- }
1189
- this.showCheckboxFilterRadioButtons = enabledHeaders.length > 1;
1190
- this.populateTooltipDataBasedOnSelectedRadio(enabledHeaders[0]);
1191
- this.bindValueFuncCalled = false;
1192
- }
1020
+ });
1193
1021
  }
1194
- openTooltip(tooltip, header) {
1195
- this.closeTooltip();
1196
- this.tooltip = tooltip;
1197
- this.tooltip.open();
1198
- //convert key into the header
1199
- this.radioButtons = header.map((key) => {
1200
- let value = this.tooltipRadioTextMap.has(key)
1201
- ? this.tooltipRadioTextMap.get(key)
1202
- : key; //change to display name
1203
- return new radioButtonModel(key, value);
1022
+ ngAfterViewInit() {
1023
+ this.annaGenericTableService.virtualScrollSubject.subscribe((val) => {
1024
+ this.isScrolledLeft = document.getElementsByClassName("table-container")[0].scrollLeft > 0;
1025
+ this.cdRef.detectChanges();
1204
1026
  });
1205
1027
  }
1206
- clearColumnFilter() {
1207
- this.annaFilterService.clearColumnFilter();
1208
- this.toolTipdata = null;
1209
- this.tempTooltipData = null;
1210
- this.closeTooltip();
1211
- this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
1212
- this.checkIfSortingIsApplied();
1213
- this.filterAppliedToTable.emit(this.tableData);
1214
- this.disableEnableEachColumnFilters();
1028
+ dataRowClicked(rowData) {
1029
+ this.rowClicked.emit(rowData);
1215
1030
  }
1216
- populateTooltipDataBasedOnSelectedRadio(header) {
1217
- this.disableSliderApplyButton = false;
1218
- this.disableCheckboxApply = false;
1219
- if (this.toolTipdata) {
1220
- this.revert();
1221
- }
1222
- this.annaFilterService.selectedRadio = header;
1223
- let selectedFilterSet = new Set(this.annaFilterService.appliedFiltersArray);
1224
- this.disableColumnClearAllBtn = selectedFilterSet.has(this.annaFilterService.selectedRadio) ? false : true;
1225
- if (this.annaFilterService.calendarSet.has(header)) {
1226
- this.getCalendarData();
1227
- }
1228
- else if (this.annaFilterService.sliderSet.has(header)) {
1229
- this.getSliderData(header);
1230
- }
1231
- else if (this.annaFilterService.timeSet.has(header)) {
1232
- this.getTimeFilterData(header);
1233
- }
1234
- else {
1235
- this.getCheckboxData(header);
1031
+ radioButtonClicked(data, action, isDisabled) {
1032
+ if (!isDisabled) {
1033
+ this.radioButtonSelected.emit({ data, action });
1236
1034
  }
1237
1035
  }
1238
- getSliderData(header) {
1239
- if (header === "Rate") {
1240
- this.annaFilterService.translateFunc = "currency";
1241
- }
1242
- else {
1243
- this.annaFilterService.translateFunc = "normal";
1244
- }
1245
- this.options = this.annaFilterService.populateSliderTooltip(this.clonedTableData, this.tableData);
1246
- this.disableSliderApplyButton = this.disableSliderApplyBtn();
1247
- let selectedTooltipObj;
1248
- if (this.annaFilterService.tooltipSelectedMap.has(header)) {
1249
- selectedTooltipObj = this.annaFilterService.tooltipSelectedMap.get(header);
1036
+ bindTheValueToSellerGroupTooltip(sellerGroupHierarchy, tooltip) {
1037
+ if (this.hierarchyTooltip && this.hierarchyTooltip.open) {
1038
+ this.hierarchyTooltip.close();
1250
1039
  }
1251
- else {
1252
- selectedTooltipObj = this.annaFilterService.initialValueMap.get(header);
1040
+ this.sellerGroupHierarchy = sellerGroupHierarchy;
1041
+ this.hierarchyTooltip = tooltip;
1042
+ this.hierarchyTooltip.open();
1043
+ }
1044
+ iconClicked(rowData, iconClass) {
1045
+ this.gtIconClicked.emit({ data: rowData, iconClass: iconClass });
1046
+ }
1047
+ svgIconClicked(rowData, key) {
1048
+ this.gtSVGIconClicked.emit({ data: rowData, key: key });
1049
+ }
1050
+ textActionClicked(rowData, id) {
1051
+ this.gtTextActionClicked.emit({ data: rowData, id });
1052
+ }
1053
+ viewDetailsClicked(rowData) {
1054
+ this.gtViewDetailClicked.emit({ data: rowData });
1055
+ }
1056
+ setIsDifference(value) {
1057
+ this.isDifferenceLessThan25Percent = value;
1058
+ }
1059
+ }
1060
+ AnnaNonEditableGenericTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNonEditableGenericTableComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.AnnaSortService }, { token: i1.AnnaDateTimeFormatService }, { token: i1.AnnaFilterService }, { token: i1.AnnaGenericTableService }], target: i0.ɵɵFactoryTarget.Component });
1061
+ AnnaNonEditableGenericTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaNonEditableGenericTableComponent, selector: "anna-core-non-editable-generic-table-lib", inputs: { showSkeletonLoading: "showSkeletonLoading", tableHeaders: "tableHeaders", tableData: "tableData", clonedTableData: "clonedTableData", numberOfSkeletonRows: "numberOfSkeletonRows", numberOfSkeletonColumns: "numberOfSkeletonColumns", gtGeneralConfig: "gtGeneralConfig", totalRowInfo: "totalRowInfo", gtDimension: "gtDimension", tableClass: "tableClass", maximumRowsWhichCanBeRenderedWithoutScroll: "maximumRowsWhichCanBeRenderedWithoutScroll" }, outputs: { 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" }, viewQueries: [{ propertyName: "sortComponent", predicate: AnnaSortComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"table-container\" [ngClass]=\"{ 'scroll-left-shadow-effect': isScrolledLeft }\">\r\n <div\r\n [class]=\"gtGeneralConfig.tableContainerName\"\r\n class=\"horizontal-scroll-for-table-container\"\r\n [ngStyle]=\"{\r\n height:\r\n tableData.length < maximumRowsWhichCanBeRenderedWithoutScroll\r\n ? 'calc(' +\r\n ((gtDimension.rowHeight + rowBorderWidth) * tableData.length +\r\n (!tableData.length || !gtGeneralConfig.totalRow\r\n ? gtDimension.headerHeight\r\n : gtDimension.headerHeight + gtDimension.rowHeight + (2 * rowBorderWidth))) +\r\n 'px)'\r\n : gtDimension.tableHeight\r\n }\"\r\n >\r\n <table class=\"gt\" [ngClass]=\"tableClass\" mat-table [dataSource]=\"tableData\">\r\n <tr\r\n class=\"header-row\"\r\n mat-header-row\r\n *matHeaderRowDef=\"tableColumns; sticky: true\"\r\n [style.height.px]=\"gtDimension.headerHeight\"\r\n ></tr>\r\n <tr\r\n class=\"total-row\"\r\n mat-header-row\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n *matHeaderRowDef=\"totalRowColumns; sticky: true\"\r\n [class.hidden]=\"\r\n showSkeletonLoading ||\r\n (!showSkeletonLoading && !tableData.length) ||\r\n (!showSkeletonLoading && !gtGeneralConfig.totalRow)\r\n \"\r\n ></tr>\r\n <tr\r\n [class]=\"rowData.gtClass\"\r\n mat-row\r\n *matRowDef=\"let rowData; columns: tableColumns\"\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n [style.background-color]=\"rowData.backgroundColor\"\r\n [style.border]=\"rowData.border\" (click)=\"dataRowClicked(rowData)\"\r\n ></tr>\r\n\r\n <!-- TOTAL ROW -->\r\n <ng-container [matColumnDef]=\"column.colName\" *ngFor=\"let column of totalRowInfo; trackBy: trackByFn\">\r\n <td mat-header-cell *matHeaderCellDef [attr.colspan]=\"column.colspan\" class=\"{{column.class}}\">\r\n <strong>{{ column.data }}</strong>\r\n <ng-container *ngIf=\"column.lowerData\">\r\n <br>\r\n <span>{{column.lowerData}}</span>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.tooltipMessage\">\r\n <i class=\"mi mdi-info-outline info-label\" container=\"body\"\r\n [ngbTooltip]=\"column.tooltipMessage\"\r\n tooltipClass=\"gt-total-row-tooltip\" placement=\"bottom\"></i>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- MAIN ROW -->\r\n <ng-container [matColumnDef]=\"columnDef.headerInfo[0].objectKey\" *ngFor=\"let columnDef of tableHeaders; trackBy: trackByFn\">\r\n <th nowrap mat-header-cell *matHeaderCellDef [style.width]=\"columnDef.width\">\r\n <div class=\"row mx-0\" *ngFor=\"let header of columnDef.headerInfo; let j = index;\"> \r\n <p\r\n *ngIf=\"header.typeOfHeaderData === 'STRING'\"\r\n [ngClass]=\"{ 'upper-label': j === 0, 'lower-label': j === 1 }\"\r\n >\r\n {{ header.name }}\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'impsInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"impsInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'ratingInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"ratingInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'rateInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"rateInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n </p>\r\n\r\n <ng-container *ngIf=\"header.typeOfHeaderData === 'CHECKBOX'\">\r\n <span\r\n *ngIf=\"gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': gtGeneralConfig.disableHeaderCheckbox }\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <div *ngIf=\"gtGeneralConfig.showAllColumnFilter\" class=\"sort-filter-container\">\r\n <ng-container *ngIf=\"header.sort\">\r\n <anna-core-sort-lib\r\n [sortBy]=\"header.sortObjectKey ? header.sortObjectKey : header.objectKey\"\r\n [data]=\"tableData\"\r\n [disableSort]=\"header.disableSort\"\r\n (sort)=\"sortedData($event)\"\r\n >\r\n </anna-core-sort-lib>\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'CHECKBOX'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n annaFilterService.appliedFiltersArray.length && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"filterTooltip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'SLIDER'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n annaFilterService.appliedFiltersArray.length && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"sliderToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t1=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t1, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'DATE'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"datePickerTooltip\"\r\n placement=\"left-top auto\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t2=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t2, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'WEEK'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"weekPickerToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t3=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t3, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'TIME'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"timeFilterToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t4=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t4, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === ''\"> <span id=\"no-filter-space\"></span><br /> </ng-container>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'lurViolationInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"lurViolationInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n\r\n </div>\r\n </div>\r\n </th>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'DRR'\">\r\n <ng-container *matCellDef=\"let ROW_DATA\">\r\n <ng-container *ngIf=\"showSkeletonLoading\">\r\n <td mat-cell>\r\n <ngx-skeleton-loader count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <ng-container\r\n *ngFor=\"let subline of columnDef.headerInfo; let sublineIndex = index; trackBy: trackByFn\"\r\n >\r\n <td\r\n mat-cell\r\n *ngIf=\"!ROW_DATA['hide' + subline.objectKey + 'Td']\"\r\n [attr.rowspan]=\"ROW_DATA[subline.objectKey + 'Rowspan']\"\r\n >\r\n <ng-container [ngSwitch]=\"subline.typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\"></i>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[subline.objectKey]\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[subline.objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'RADIO'\">\r\n <mat-radio-group\r\n *ngIf=\"ROW_DATA['RadioButtonConfig']\"\r\n [ngModel]=\"ROW_DATA[subline.objectKey]\"\r\n [disabled]=\"ROW_DATA['RadioButtonConfig'][0].isDisabled\"\r\n >\r\n <ng-container\r\n *ngFor=\"let radioButton of ROW_DATA['RadioButtonConfig']; let last = last\"\r\n >\r\n <mat-radio-button\r\n value=\"{{ radioButton.value }}\"\r\n class=\"{{ radioButton.class }}\"\r\n (click)=\"\r\n radioButtonClicked(\r\n ROW_DATA,\r\n radioButton.value,\r\n ROW_DATA['RadioButtonConfig'][0].isDisabled\r\n )\r\n \"\r\n >{{ radioButton.label }}</mat-radio-button\r\n ><br *ngIf=\"!last\" />\r\n </ng-container>\r\n </mat-radio-group>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n {{ ROW_DATA[subline.objectKey] }}\r\n\r\n <ng-container\r\n *ngIf=\"\r\n subline.objectKey == 'Status' && (ROW_DATA['Remarks'] !== null)\r\n \"\r\n >\r\n <i\r\n class=\"mi mdi-info-outline remarks-tooltip\"\r\n [ngbTooltip]=\"columnInfoTooltip\"\r\n placement=\"bottom\"\r\n container=\"body\"\r\n tooltipClass=\"remarks-info-tooltip\"\r\n #t=\"ngbTooltip\"\r\n ></i>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component != 'DRR'\">\r\n <td mat-cell *matCellDef=\"let ROW_DATA\" [style.background]=\"ROW_DATA.backgroundColor\">\r\n <ngx-skeleton-loader *ngIf=\"showSkeletonLoading\" count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <div *ngFor=\"let subline of columnDef.headerInfo; let subLineIndex = index; trackBy: trackByFn\">\r\n <ng-container [ngSwitch]=\"columnDef.headerInfo[subLineIndex].typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\" (click)=\"iconClicked(ROW_DATA,ROW_DATA.iconClass)\"></i>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'SVG_ICON'\">\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'ORDER_LISTING_INFLIGHT'\">\r\n <span\r\n *ngIf=\"ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\"\r\n class=\"cursor-not-allowed\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconActiveColor\"\r\n [width]=\"'15px'\"\r\n [height]=\"'15px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n <span\r\n *ngIf=\"ROW_DATA.orderStatus != 'LIVE' && !ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\"\r\n (click)=\"svgIconClicked(ROW_DATA,'payForPerformance')\"\r\n >\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconDisableColor\"\r\n [width]=\"'15px'\"\r\n [height]=\"'15px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n\r\n <anna-live-icon-template *ngIf=\"ROW_DATA.orderStatus == 'LIVE' && subline.objectKey == 'orderStatus' \"></anna-live-icon-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'ORDER_LISTING_COMPLETED'\">\r\n <span *ngIf=\"ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\" (click)=\"$event.stopPropagation()\">\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconActiveColor\"\r\n [width]=\"'20px'\"\r\n [height]=\"'20px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n </ng-container>\r\n <ng-container *ngIf=\"subline.objectKey == 'bizRuleStatus'\">\r\n <anna-rejected-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'REJECTED'\"></anna-rejected-icon-template>\r\n <anna-notify-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'NOTIFY'\"></anna-notify-icon-template>\r\n <anna-buyer-approval-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'AWAITING_APPROVAL'\"></anna-buyer-approval-icon-template>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'TEXT_ACTIONS'\">\r\n <button *ngFor=\"let text of ROW_DATA.textActions\" (click)=\"textActionClicked(ROW_DATA,text.id)\" [disabled]=\"text.isDisabled\" class=\"{{text.class}}\">{{text.name}}</button>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n false\r\n )\r\n \"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n true\r\n )\r\n \"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n <ng-container *ngIf=\"subline.objectKey != 'description'\">\r\n <span>{{ ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey] }}</span>\r\n <i\r\n *ngIf=\"subline.objectKey == 'inventoryCode' && ROW_DATA['isSellerGroup'] && gtGeneralConfig.component == 'RATING' \"\r\n class=\"mdi mdi-alert-circle-outline seller-tooltip\"\r\n [ngbTooltip]=\"sellerHierarchyTooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n triggers=\"manual\"\r\n (hidden)=\"closeTooltip()\"\r\n #info=\"ngbTooltip\"\r\n tooltipClass=\"hierarchy-tooltip\"\r\n (mouseenter)=\"bindTheValueToSellerGroupTooltip(ROW_DATA.sellerGroupHierarchy, info)\">\r\n </i>\r\n\r\n <i *ngIf=\"subline.objectKey == 'displayBookedAverageRating' && gtGeneralConfig.component == 'RATING' && ROW_DATA['showRatingAverageIcon'] \"\r\n class=\"mdi mdi-alert-circle-outline seller-tooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n (mouseenter)=\"isDifferenceLessThan25Percent = ROW_DATA.isDifferenceLessThan25Percent\"\r\n tooltipClass=\"posted-avg-tooltip\"\r\n [ngbTooltip]=\"postedRatingDifference\"\r\n >\r\n </i>\r\n \r\n <i *ngIf=\"subline.objectKey == 'displayBookedAverageImpression' && gtGeneralConfig.component == 'RATING' && ROW_DATA['showImpressionAverageIcon'] \"\r\n class=\"mdi mdi-alert-circle-outline seller-tooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n (mouseenter)=\"setIsDifference(ROW_DATA.isDifferenceLessThan25Percent)\"\r\n tooltipClass=\"posted-avg-tooltip\"\r\n [ngbTooltip]=\"postedImpDifference\"\r\n >\r\n </i>\r\n </ng-container>\r\n <ng-container *ngIf=\"subline.objectKey == 'description'\">\r\n <p *ngIf=\"ROW_DATA.descriptionMessage || ROW_DATA.descriptionEmailReferenceNum\">\r\n <ng-container *ngIf=\"ROW_DATA.descriptionMessage\">\r\n {{ ROW_DATA.descriptionMessage }}\r\n <br />\r\n </ng-container>\r\n <ng-container *ngIf=\"ROW_DATA.descriptionEmailReferenceNum\">\r\n Email Ref: {{ ROW_DATA.descriptionEmailReferenceNum }}\r\n <br />\r\n </ng-container>\r\n </p>\r\n <a\r\n href=\"{{ ROW_DATA.descriptionDetailsUrl }}\"\r\n target=\"_blank\"\r\n *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'PDF' || ROW_DATA.descriptionDetailsUrlType === 'EXCEL'\"\r\n >\r\n <button class=\"btn viewDetailsAndEmailBtn\">Download</button>\r\n </a>\r\n <ng-container *ngIf=\"ROW_DATA.activityname.toLowerCase() == 'order onboarded'\">\r\n <a *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'LINK'\" (click)=\"viewDetailsClicked(ROW_DATA)\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View details</button>\r\n </a>\r\n </ng-container>\r\n \r\n <a href=\"{{ ROW_DATA.descriptionEmailUrl }}\" target=\"_blank\" *ngIf=\"ROW_DATA.descriptionEmailUrl\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View email</button>\r\n </a>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container\r\n *ngIf=\"\r\n gtGeneralConfig.page === 'SpotDetails' &&\r\n columnDef.headerInfo[subLineIndex].objectKey === 'Status'\r\n \"\r\n >\r\n <img\r\n src=\"assets/images/Undo-Credit-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForCredit\"\r\n (click)=\"undoCreditedSpot(ROW_DATA)\"\r\n />\r\n <img\r\n src=\"assets/images/Undo-MG-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForMakeGood\"\r\n (click)=\"undoMgSpot(ROW_DATA)\"\r\n />\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </table>\r\n </div>\r\n\r\n <anna-core-no-data-lib [width]=\"noDataWidth\" *ngIf=\"!showSkeletonLoading && tableData.length == 0\"> </anna-core-no-data-lib>\r\n</div>\r\n\r\n<!-- Checkbox template -->\r\n<ng-template #filterTooltip>\r\n <div class=\"radio-container\" *ngIf=\"showCheckboxFilterRadioButtons\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input\r\n type=\"radio\"\r\n id=\"{{ data.key }}\"\r\n [ngModel]=\"annaFilterService.selectedRadio\"\r\n name=\"toolTip\"\r\n value=\"{{ data.key }}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\"\r\n />\r\n <label for=\"{{ data.key }}\">{{ data.label }}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <p class=\"search-box\">\r\n <i class=\"mi mdi-search search-icon search-icon-position\"></i>\r\n <input\r\n type=\"text\"\r\n placeholder=\"Search\"\r\n class=\"search-input\"\r\n style=\"margin-left: 2px; border: none; padding: 0px\"\r\n [(ngModel)]=\"searchBar\"\r\n />\r\n </p>\r\n <div class=\"dropdown-data-container\">\r\n <ng-container *ngIf=\"showAll\">\r\n <p class=\"input\" (click)=\"allOptionClicked()\">\r\n <span *ngIf=\"allSelected == 1\" role=\"button\" class=\"mi mdi-check-box check-box\"></span>\r\n <span *ngIf=\"allSelected == 0\" role=\"button\" class=\"mi mdi-check-box-outline-blank check-box unchecked\"></span>\r\n <span *ngIf=\"allSelected == 2\" role=\"button\" class=\"mi mdi-indeterminate-check-box check-box\"></span>\r\n <span class=\"data\">All</span>\r\n </p>\r\n </ng-container>\r\n <ng-container *ngFor=\"let data of tempTooltipData | AnnafilterSearchedText: searchBar\">\r\n <p *ngIf=\"!data.isHidden\" class=\"input\" (click)=\"isCheckboxSelected(data)\">\r\n <span *ngIf=\"data.isSelected\" role=\"button\" class=\"mi mdi-check-box check-box\"></span>\r\n <span *ngIf=\"!data.isSelected\" role=\"button\" class=\"mi mdi-check-box-outline-blank check-box unchecked\"></span>\r\n <span class=\"data\" title=\"{{ data.data }}\">{{ data.data }}</span>\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeCheckboxFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableCheckboxApply }\"\r\n (click)=\"applyFilters()\"\r\n [disabled]=\"disableCheckboxApply\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Slider template -->\r\n<ng-template #sliderToolTip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component == 'DRRLISTING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input type=\"radio\" id=\"{{data.key}}\" [ngModel]=\"annaFilterService.selectedRadio\" name=\"toolTip\" value=\"{{data.key}}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\">\r\n <label for=\"{{data.key}}\">{{data.label}}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all align-center\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button>\r\n <section class=\"min-maxContainer\">\r\n <input\r\n type=\"number\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [ngModel]=\"sliderMinValue\"\r\n (ngModelChange)=\"minValueChanged($event)\"\r\n placeholder=\"Min\"\r\n />\r\n <span>To</span>\r\n <input\r\n type=\"number\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [ngModel]=\"sliderMaxValue\"\r\n (ngModelChange)=\"maxValueChanged($event)\"\r\n placeholder=\"Max\"\r\n />\r\n </section>\r\n <div class=\"sidebar-slider\">\r\n <ngx-slider\r\n [(value)]=\"sliderMinValue\"\r\n [(highValue)]=\"sliderMaxValue\"\r\n [options]=\"options\"\r\n (valueChange)=\"sliderValueChange()\"\r\n (highValueChange)=\"sliderValueChange()\"\r\n ></ngx-slider>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"cancelSliderFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableSliderApplyButton }\"\r\n (click)=\"applySliderFilter()\"\r\n [disabled]=\"disableSliderApplyButton\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Date Picker Template -->\r\n<ng-template #datePickerTooltip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component == 'DRRLISTING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input type=\"radio\" id=\"{{data.key}}\" [ngModel]=\"annaFilterService.selectedRadio\" name=\"toolTip\" value=\"{{data.key}}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\">\r\n <label for=\"{{data.key}}\">{{data.label}}</label>\r\n </div>\r\n </div>\r\n <div class=\"datepicker-container\">\r\n <button class=\"column-clear-all align-center\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button>\r\n <anna-core-calendar-filter-lib\r\n [minDate]=\"calendarMinEnabledDate\"\r\n [maxDate]=\"calendarMaxEnabledDate\"\r\n [selectedFromDate]=\"selectedMinDate\"\r\n [selectedToDate]=\"selectedMaxDate\"\r\n (apply)=\"applyDateFilter($event)\"\r\n (cancel)=\"cancelInDateFilter()\"\r\n >\r\n </anna-core-calendar-filter-lib>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Week Picker Template -->\r\n<ng-template #weekPickerToolTip>\r\n <div class=\"weekpicker-container\">\r\n <anna-core-week-calendar-filter-lib\r\n [week-calendar-config]=\"gtGeneralConfig.multiWeekPickerConfig\"\r\n (apply)=\"applyWeekFilter($event)\"\r\n [from-date]=\"calendarMinEnabledDate\"\r\n [to-date]=\"calendarMaxEnabledDate\"\r\n >\r\n </anna-core-week-calendar-filter-lib>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Time Filter Template -->\r\n<ng-template #timeFilterToolTip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component != 'RATING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input\r\n type=\"radio\"\r\n id=\"{{ data.key }}\"\r\n [ngModel]=\"annaFilterService.selectedRadio\"\r\n name=\"toolTip\"\r\n value=\"{{ data.key }}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\"\r\n *ngIf=\"radioButtons.length > 1\"\r\n />\r\n <label for=\"{{ data.key }}\">{{ data.label }}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <div\r\n class=\"time-filter-checkboxes\"\r\n *ngIf=\"gtGeneralConfig.component == 'SPOTDETAILS' || gtGeneralConfig.component == 'EXCLUDEINVENTORYPOPUP' || gtGeneralConfig.component == 'RATING'\"\r\n >\r\n <!-- Multi time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showMultiTimeCheckbox\">\r\n <span\r\n *ngIf=\"multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Multi</p>\r\n </div>\r\n <!-- Zero time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showZeroTimeCheckbox\">\r\n <span\r\n *ngIf=\"zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Zero</p>\r\n </div>\r\n <!-- Enter time range option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showEnterTimeCheckbox\">\r\n <span\r\n *ngIf=\"enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Enter time range</p>\r\n </div>\r\n </div>\r\n <div class=\"time-label-container\">\r\n <label>From</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedFromTime[0]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedFromTime[1]\" type=\"text\" disabled />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedFromTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n\r\n <div class=\"time-label-container\">\r\n <label>To</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedToTime[0]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedToTime[1]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedToTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeTimeFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableTimeFilterApplyBtn }\"\r\n (click)=\"applyTimeFilters()\"\r\n [disabled]=\"disableTimeFilterApplyBtn\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #columnInfoTooltip>\r\n <p style=\"padding: 0.5rem; color: black;white-space: nowrap;\">This preemption is rejected and not marked for credit.</p>\r\n</ng-template>\r\n\r\n<ng-template #ratingInfoTooltip>\r\n <p class=\"first-row\">Shows 'Booked Rating' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\">Shows 'Projected Rating' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #impsInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked IMPS' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected IMPS' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #rateInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked Rate' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected $ Value' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #sellerHierarchyTooltip>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length > 0\">\r\n <table class=\"seller-hierarchy-table\">\r\n <thead>\r\n <tr>\r\n <th>#</th>\r\n <th>Inventory Codes</th>\r\n <th>Program/Description</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let data of sellerGroupHierarchy; let tooltipIndex = index\">\r\n <td>{{ tooltipIndex + 1 }}</td>\r\n <td>\r\n <span>{{ data.inventoryCode }}</span>\r\n </td>\r\n <td>\r\n <span>{{ data.program }}</span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length == 0\">\r\n <span style=\"color: #000\">Seller group not available for this inventory code</span>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-template #lurViolationInfoTooltip>\r\n <p class =\"first-row\" >The values are for the entire week.</p>\r\n</ng-template>\r\n\r\n<ng-template #postedRatingDifference>\r\n <p class=\"difference-text\">The difference between posted and booked average rating is {{isDifferenceLessThan25Percent ? 'less' : 'more'}} than 25%.</p>\r\n</ng-template>\r\n\r\n<ng-template #postedImpDifference>\r\n <p class=\"difference-text\">The difference between posted and booked average impression is {{isDifferenceLessThan25Percent ? 'less' : 'more'}} than 25%.</p>\r\n</ng-template>\r\n", styles: [".sort{display:inline-block;margin:0!important;position:relative;top:1px}.mdi-sort{padding-top:5px;padding-bottom:2.5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort.active{opacity:1}.mdi-sort-descending{padding-top:2.5px;padding-bottom:5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort-descending.active{opacity:1}.disable{cursor:not-allowed;pointer-events:none;opacity:.17}.sort-container{color:#000;padding:.25rem;text-align:left}.sort-container input{position:relative;top:.125rem;margin-right:.188rem}.sort-container input:hover,.sort-container label:hover{cursor:pointer}.sort-container div:last-of-type{line-height:.2}input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}input[type=radio]:checked{background-color:#268bff}input[type=radio]:focus{outline-offset:-10px}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:98%;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:85%;overflow:hidden}.check-box{font-size:22px;cursor:pointer}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider{margin:5px 0 2px!important;width:100%!important}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#268bff!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}::ng-deep .ngx-slider-pointer:after{display:none!important}::ng-deep .ngx-slider-pointer:focus{outline:none!important}::ng-deep .ngx-slider-bar{background:rgba(0,0,0,.26)!important;height:3px!important}::ng-deep .ngx-slider-bar.ngx-slider-selection{background:#42a5f5!important;height:3px!important}::ng-deep .sidebar-slider{margin-bottom:35px!important;margin-left:.3125rem;margin-right:.3125rem}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-high{right:0!important}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-ceil{right:0!important}::ng-deep .ngx-slider.animate{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bubble{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bar{background:rgba(0,0,0,.26)!important;height:3px!important}::ng-deep .ngx-slider-bar.ngx-slider-selection{background:#42a5f5!important;height:3px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;padding:.125rem .125rem .125rem .25rem;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center}.buttons-container button:last-of-type{background-color:#268bff;color:#fff}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:5px 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.14;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 0 .188rem .5rem}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}div.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}div.dropdown-data-container p.input{margin-left:0}div.dropdown-data-container p.input span.mi{padding-left:.4375rem}div.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}div.dropdown-data-container::-webkit-scrollbar{width:.188rem}div.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:.125rem .625rem 0}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;padding-top:.375rem;padding-left:1px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#cbcbcb;cursor:pointer;font-size:.5625rem}.time-container div.arrow-container i.downward{transform:rotate(180deg)}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.625rem;margin-left:.625rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:left;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a}.column-clear-all.align-center{text-align:center}span.mdi-filter.disabled,span.mdi-calendar-range.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}.upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a!important;margin-bottom:0!important}:host ::ng-deep .gt{table-layout:fixed;margin-bottom:0;width:100%}:host ::ng-deep .gt th,:host ::ng-deep .gt td{padding:2px 8px;line-height:normal}:host ::ng-deep .gt thead tr th .upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a;margin-bottom:0}:host ::ng-deep .gt thead tr th .lower-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-bottom:0}:host ::ng-deep .gt thead tr th{background-color:#ededed;position:sticky;position:-webkit-sticky;top:0;border-top:none!important;border-bottom:none!important;outline:none!important;box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4}:host ::ng-deep .gt thead tr th br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt thead tr th div.row{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}:host ::ng-deep .gt thead tr th div.sort-filter-container{display:flex;flex-wrap:nowrap;align-items:center}:host ::ng-deep .gt thead tr th:first-of-type{box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4,inset 1px 0 #d4d4d4}:host ::ng-deep .gt tbody tr td:first-of-type{box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td:nth-of-type(n + 2){box-shadow:inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td .upper-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#000;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr td .lower-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#a7a7a7;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt tbody tr:nth-of-type(1) td{border-top:none!important}:host ::ng-deep .gt .custom-column-checkbox-checked,:host ::ng-deep .gt .custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}:host ::ng-deep .gt .custom-column-checkbox-checked{color:#268bff}:host ::ng-deep .gt .custom-column-checkbox-unchecked{color:#4a4a4a}.table-container::-webkit-scrollbar-track{border:1px solid rgba(0,0,0,.1)!important}.table-container::-webkit-scrollbar{width:5px;height:5px}.table-container::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0006!important;border:1px solid rgba(0,0,0,.2)}.table-container{overflow-x:auto;overflow-y:auto}.rowSelectCheckbox,#selectAllRowsCheckbox{cursor:pointer}.disable-checkbox{color:#dedede!important;pointer-events:none!important}.mdi-warning{color:#f3c639;font-size:16px;line-height:28px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{opacity:1}.redcolor-status{color:#c62a2a}.redcolor-cell-border{outline:1px solid #ff5353!important;outline-offset:-1px!important}#no-filter-space{width:.875rem}::ng-deep .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:1.875rem!important;width:2.625rem;padding:0 .625rem}input.numberInput{margin-right:-.8125rem;padding:0 0 0 .625rem;height:1.875rem}::ng-deep .mat-button-toggle-checked{background-color:#268bff!important;color:#fff!important}::ng-deep .mat-button-toggle-group-appearance-standard{border-radius:0}.hidden{display:none}.no-data-div{margin-top:2.5px}.no-data-div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:.3125rem 1.125rem;border-radius:.25rem}.column-values:nth-of-type(2){color:#a7a7a7!important}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}.time-filter-checkboxes>div>p{color:#151b1e}.radio-button-dimension,::ng-deep .markForCredit .mat-radio-inner-circle,::ng-deep .markForCredit .mat-radio-outer-circle,::ng-deep .mark-for-credit .mat-radio-inner-circle,::ng-deep .mark-for-credit .mat-radio-outer-circle,::ng-deep .markForMakeGood .mat-radio-inner-circle,::ng-deep .markForMakeGood .mat-radio-outer-circle,::ng-deep .noAction .mat-radio-inner-circle,::ng-deep .noAction .mat-radio-outer-circle,::ng-deep .credit .mat-radio-inner-circle,::ng-deep .credit .mat-radio-outer-circle,::ng-deep .approve .mat-radio-inner-circle,::ng-deep .approve .mat-radio-outer-circle,::ng-deep .reject .mat-radio-inner-circle,::ng-deep .reject .mat-radio-outer-circle,::ng-deep .resubmit .mat-radio-inner-circle,::ng-deep .resubmit .mat-radio-outer-circle,::ng-deep .rejectCreditRequest .mat-radio-inner-circle,::ng-deep .rejectCreditRequest .mat-radio-outer-circle{height:18px!important;width:18px!important}::ng-deep .margin-bottom-zero .mat-radio-label{margin-bottom:0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:red}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:red}::ng-deep .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:#00000061!important}::ng-deep .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-inner-circle{background-color:#00000061!important}::ng-deep tr.white-background-row{background:white}::ng-deep tr.gray-background-row{background:rgba(233,233,233,.5)}.remarks-tooltip,.seller-tooltip{font-size:.875rem;color:#268bff;position:relative;top:.1875rem;cursor:pointer}.seller-tooltip{float:right}::ng-deep .remarks-info-tooltip .tooltip-inner{max-width:19.25rem!important}.rating-icon,.lur-violation-icon{color:#268bff;cursor:pointer;margin-left:2px;position:relative;left:-2px}::ng-deep .rating-info-tooltip .tooltip-inner{max-width:800px!important}p.first-row{padding:.5rem .5rem 0;color:#000;white-space:nowrap;text-align:left}p.second-row{padding:2px .5rem .5rem;color:#000;white-space:nowrap;text-align:left}::ng-deep .gt-total-row-tooltip{opacity:1!important}::ng-deep .gt-total-row-tooltip .tooltip-inner{color:#000;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003;background-color:#fff;padding:4px!important;width:100%;border-radius:2px!important}::ng-deep .gt-total-row-tooltip .arrow:before{border-top-color:#fff!important}.info-label{margin-left:4px;color:#268bff;vertical-align:text-top}::ng-deep .hierarchy-tooltip .tooltip-inner{padding:4px!important}table.seller-hierarchy-table{table-layout:fixed;margin:.625rem .625rem .625rem .8125rem}table.seller-hierarchy-table tr th{font-family:Roboto;font-size:.75rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:#5e5e5e;white-space:nowrap;background:#ededed;box-shadow:none!important;border-top:1px solid #d4d4d4}table.seller-hierarchy-table tr th:first-of-type,table.seller-hierarchy-table tr td:first-of-type{border-left:1px solid #d4d4d4}table.seller-hierarchy-table tr th:last-of-type,table.seller-hierarchy-table tr td:last-of-type{border-right:1px solid #d4d4d4;width:7.875rem!important}table.seller-hierarchy-table tr th:nth-of-type(2){width:7.75rem!important}table.seller-hierarchy-table tr td{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#4a4a4a;box-shadow:none!important;border-top:1px solid #d4d4d4;border-bottom:1px solid #d4d4d4}table.seller-hierarchy-table tr td:nth-of-type(2),table.seller-hierarchy-table tr td:nth-of-type(3){padding-top:.25rem}table.seller-hierarchy-table tr td span{display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}.difference-text{padding:.5rem;color:#000;text-align:left}::ng-deep .posted-avg-tooltip .tooltip-inner{width:13.8125rem!important}\n"], components: [{ type: i2.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { type: i2.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { type: i2.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { type: AnnaSortComponent, selector: "anna-core-sort-lib", inputs: ["data", "sortBy", "disableSort", "placement"], outputs: ["sort"] }, { type: i4.NgxSkeletonLoaderComponent, selector: "ngx-skeleton-loader", inputs: ["appearance", "animation", "theme", "loadingText", "count", "ariaLabel"] }, { type: i5.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { type: i1.AnnaPayForPerformanceIconTemplateComponent, selector: "anna-pay-for-performance-icon-template", inputs: ["color", "width", "height"] }, { type: i1.AnnaLiveIconTemplateComponent, selector: "anna-live-icon-template" }, { type: i1.AnnaRejectedIconTemplateComponent, selector: "anna-rejected-icon-template" }, { type: i1.AnnaNotifyIconTemplateComponent, selector: "anna-notify-icon-template" }, { type: i1.AnnaBuyerApprovalIconTemplateComponent, selector: "anna-buyer-approval-icon-template" }, { type: i1.AnnaNoDataComponent, selector: "anna-core-no-data-lib", inputs: ["width", "marginTop"] }, { type: i6.ɵa, selector: "ngx-slider", inputs: ["value", "highValue", "options", "manualRefresh", "triggerFocus"], outputs: ["valueChange", "highValueChange", "userChangeStart", "userChange", "userChangeEnd"] }, { type: i7.AnnaCalendarFilterComponent, selector: "anna-core-calendar-filter-lib", inputs: ["maxDate", "minDate", "showDate", "selectedFromDate", "selectedToDate"], outputs: ["selectedDate", "apply", "cancel"] }, { type: i7.AnnaWeekCalendarComponent, selector: "anna-core-week-calendar-filter-lib", inputs: ["from-date", "to-date", "disabled-dates", "maxDate", "minDate", "week-calendar-config"], outputs: ["apply", "toggle-calendar"] }, { type: i8.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }], directives: [{ type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { type: i2.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i2.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { type: i2.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i2.MatCellDef, selector: "[matCellDef]" }, { type: i2.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: i9.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i9.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i5.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i11.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i11.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i11.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i11.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i11.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i8.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }], pipes: { "AnnafilterSearchedText": i1.AnnaFilterSearchedTextPipe } });
1062
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNonEditableGenericTableComponent, decorators: [{
1063
+ type: Component,
1064
+ args: [{ selector: 'anna-core-non-editable-generic-table-lib', template: "<div class=\"table-container\" [ngClass]=\"{ 'scroll-left-shadow-effect': isScrolledLeft }\">\r\n <div\r\n [class]=\"gtGeneralConfig.tableContainerName\"\r\n class=\"horizontal-scroll-for-table-container\"\r\n [ngStyle]=\"{\r\n height:\r\n tableData.length < maximumRowsWhichCanBeRenderedWithoutScroll\r\n ? 'calc(' +\r\n ((gtDimension.rowHeight + rowBorderWidth) * tableData.length +\r\n (!tableData.length || !gtGeneralConfig.totalRow\r\n ? gtDimension.headerHeight\r\n : gtDimension.headerHeight + gtDimension.rowHeight + (2 * rowBorderWidth))) +\r\n 'px)'\r\n : gtDimension.tableHeight\r\n }\"\r\n >\r\n <table class=\"gt\" [ngClass]=\"tableClass\" mat-table [dataSource]=\"tableData\">\r\n <tr\r\n class=\"header-row\"\r\n mat-header-row\r\n *matHeaderRowDef=\"tableColumns; sticky: true\"\r\n [style.height.px]=\"gtDimension.headerHeight\"\r\n ></tr>\r\n <tr\r\n class=\"total-row\"\r\n mat-header-row\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n *matHeaderRowDef=\"totalRowColumns; sticky: true\"\r\n [class.hidden]=\"\r\n showSkeletonLoading ||\r\n (!showSkeletonLoading && !tableData.length) ||\r\n (!showSkeletonLoading && !gtGeneralConfig.totalRow)\r\n \"\r\n ></tr>\r\n <tr\r\n [class]=\"rowData.gtClass\"\r\n mat-row\r\n *matRowDef=\"let rowData; columns: tableColumns\"\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n [style.background-color]=\"rowData.backgroundColor\"\r\n [style.border]=\"rowData.border\" (click)=\"dataRowClicked(rowData)\"\r\n ></tr>\r\n\r\n <!-- TOTAL ROW -->\r\n <ng-container [matColumnDef]=\"column.colName\" *ngFor=\"let column of totalRowInfo; trackBy: trackByFn\">\r\n <td mat-header-cell *matHeaderCellDef [attr.colspan]=\"column.colspan\" class=\"{{column.class}}\">\r\n <strong>{{ column.data }}</strong>\r\n <ng-container *ngIf=\"column.lowerData\">\r\n <br>\r\n <span>{{column.lowerData}}</span>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.tooltipMessage\">\r\n <i class=\"mi mdi-info-outline info-label\" container=\"body\"\r\n [ngbTooltip]=\"column.tooltipMessage\"\r\n tooltipClass=\"gt-total-row-tooltip\" placement=\"bottom\"></i>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- MAIN ROW -->\r\n <ng-container [matColumnDef]=\"columnDef.headerInfo[0].objectKey\" *ngFor=\"let columnDef of tableHeaders; trackBy: trackByFn\">\r\n <th nowrap mat-header-cell *matHeaderCellDef [style.width]=\"columnDef.width\">\r\n <div class=\"row mx-0\" *ngFor=\"let header of columnDef.headerInfo; let j = index;\"> \r\n <p\r\n *ngIf=\"header.typeOfHeaderData === 'STRING'\"\r\n [ngClass]=\"{ 'upper-label': j === 0, 'lower-label': j === 1 }\"\r\n >\r\n {{ header.name }}\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'impsInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"impsInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'ratingInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"ratingInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'rateInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"rateInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n </p>\r\n\r\n <ng-container *ngIf=\"header.typeOfHeaderData === 'CHECKBOX'\">\r\n <span\r\n *ngIf=\"gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': gtGeneralConfig.disableHeaderCheckbox }\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <div *ngIf=\"gtGeneralConfig.showAllColumnFilter\" class=\"sort-filter-container\">\r\n <ng-container *ngIf=\"header.sort\">\r\n <anna-core-sort-lib\r\n [sortBy]=\"header.sortObjectKey ? header.sortObjectKey : header.objectKey\"\r\n [data]=\"tableData\"\r\n [disableSort]=\"header.disableSort\"\r\n (sort)=\"sortedData($event)\"\r\n >\r\n </anna-core-sort-lib>\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'CHECKBOX'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n annaFilterService.appliedFiltersArray.length && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"filterTooltip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'SLIDER'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n annaFilterService.appliedFiltersArray.length && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"sliderToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t1=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t1, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'DATE'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"datePickerTooltip\"\r\n placement=\"left-top auto\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t2=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t2, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'WEEK'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"weekPickerToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t3=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t3, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'TIME'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"timeFilterToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t4=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t4, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === ''\"> <span id=\"no-filter-space\"></span><br /> </ng-container>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'lurViolationInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"lurViolationInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n\r\n </div>\r\n </div>\r\n </th>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'DRR'\">\r\n <ng-container *matCellDef=\"let ROW_DATA\">\r\n <ng-container *ngIf=\"showSkeletonLoading\">\r\n <td mat-cell>\r\n <ngx-skeleton-loader count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <ng-container\r\n *ngFor=\"let subline of columnDef.headerInfo; let sublineIndex = index; trackBy: trackByFn\"\r\n >\r\n <td\r\n mat-cell\r\n *ngIf=\"!ROW_DATA['hide' + subline.objectKey + 'Td']\"\r\n [attr.rowspan]=\"ROW_DATA[subline.objectKey + 'Rowspan']\"\r\n >\r\n <ng-container [ngSwitch]=\"subline.typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\"></i>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[subline.objectKey]\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[subline.objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'RADIO'\">\r\n <mat-radio-group\r\n *ngIf=\"ROW_DATA['RadioButtonConfig']\"\r\n [ngModel]=\"ROW_DATA[subline.objectKey]\"\r\n [disabled]=\"ROW_DATA['RadioButtonConfig'][0].isDisabled\"\r\n >\r\n <ng-container\r\n *ngFor=\"let radioButton of ROW_DATA['RadioButtonConfig']; let last = last\"\r\n >\r\n <mat-radio-button\r\n value=\"{{ radioButton.value }}\"\r\n class=\"{{ radioButton.class }}\"\r\n (click)=\"\r\n radioButtonClicked(\r\n ROW_DATA,\r\n radioButton.value,\r\n ROW_DATA['RadioButtonConfig'][0].isDisabled\r\n )\r\n \"\r\n >{{ radioButton.label }}</mat-radio-button\r\n ><br *ngIf=\"!last\" />\r\n </ng-container>\r\n </mat-radio-group>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n {{ ROW_DATA[subline.objectKey] }}\r\n\r\n <ng-container\r\n *ngIf=\"\r\n subline.objectKey == 'Status' && (ROW_DATA['Remarks'] !== null)\r\n \"\r\n >\r\n <i\r\n class=\"mi mdi-info-outline remarks-tooltip\"\r\n [ngbTooltip]=\"columnInfoTooltip\"\r\n placement=\"bottom\"\r\n container=\"body\"\r\n tooltipClass=\"remarks-info-tooltip\"\r\n #t=\"ngbTooltip\"\r\n ></i>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component != 'DRR'\">\r\n <td mat-cell *matCellDef=\"let ROW_DATA\" [style.background]=\"ROW_DATA.backgroundColor\">\r\n <ngx-skeleton-loader *ngIf=\"showSkeletonLoading\" count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <div *ngFor=\"let subline of columnDef.headerInfo; let subLineIndex = index; trackBy: trackByFn\">\r\n <ng-container [ngSwitch]=\"columnDef.headerInfo[subLineIndex].typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\" (click)=\"iconClicked(ROW_DATA,ROW_DATA.iconClass)\"></i>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'SVG_ICON'\">\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'ORDER_LISTING_INFLIGHT'\">\r\n <span\r\n *ngIf=\"ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\"\r\n class=\"cursor-not-allowed\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconActiveColor\"\r\n [width]=\"'15px'\"\r\n [height]=\"'15px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n <span\r\n *ngIf=\"ROW_DATA.orderStatus != 'LIVE' && !ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\"\r\n (click)=\"svgIconClicked(ROW_DATA,'payForPerformance')\"\r\n >\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconDisableColor\"\r\n [width]=\"'15px'\"\r\n [height]=\"'15px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n\r\n <anna-live-icon-template *ngIf=\"ROW_DATA.orderStatus == 'LIVE' && subline.objectKey == 'orderStatus' \"></anna-live-icon-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'ORDER_LISTING_COMPLETED'\">\r\n <span *ngIf=\"ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\" (click)=\"$event.stopPropagation()\">\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconActiveColor\"\r\n [width]=\"'20px'\"\r\n [height]=\"'20px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n </ng-container>\r\n <ng-container *ngIf=\"subline.objectKey == 'bizRuleStatus'\">\r\n <anna-rejected-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'REJECTED'\"></anna-rejected-icon-template>\r\n <anna-notify-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'NOTIFY'\"></anna-notify-icon-template>\r\n <anna-buyer-approval-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'AWAITING_APPROVAL'\"></anna-buyer-approval-icon-template>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'TEXT_ACTIONS'\">\r\n <button *ngFor=\"let text of ROW_DATA.textActions\" (click)=\"textActionClicked(ROW_DATA,text.id)\" [disabled]=\"text.isDisabled\" class=\"{{text.class}}\">{{text.name}}</button>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n false\r\n )\r\n \"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n true\r\n )\r\n \"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n <ng-container *ngIf=\"subline.objectKey != 'description'\">\r\n <span>{{ ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey] }}</span>\r\n <i\r\n *ngIf=\"subline.objectKey == 'inventoryCode' && ROW_DATA['isSellerGroup'] && gtGeneralConfig.component == 'RATING' \"\r\n class=\"mdi mdi-alert-circle-outline seller-tooltip\"\r\n [ngbTooltip]=\"sellerHierarchyTooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n triggers=\"manual\"\r\n (hidden)=\"closeTooltip()\"\r\n #info=\"ngbTooltip\"\r\n tooltipClass=\"hierarchy-tooltip\"\r\n (mouseenter)=\"bindTheValueToSellerGroupTooltip(ROW_DATA.sellerGroupHierarchy, info)\">\r\n </i>\r\n\r\n <i *ngIf=\"subline.objectKey == 'displayBookedAverageRating' && gtGeneralConfig.component == 'RATING' && ROW_DATA['showRatingAverageIcon'] \"\r\n class=\"mdi mdi-alert-circle-outline seller-tooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n (mouseenter)=\"isDifferenceLessThan25Percent = ROW_DATA.isDifferenceLessThan25Percent\"\r\n tooltipClass=\"posted-avg-tooltip\"\r\n [ngbTooltip]=\"postedRatingDifference\"\r\n >\r\n </i>\r\n \r\n <i *ngIf=\"subline.objectKey == 'displayBookedAverageImpression' && gtGeneralConfig.component == 'RATING' && ROW_DATA['showImpressionAverageIcon'] \"\r\n class=\"mdi mdi-alert-circle-outline seller-tooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n (mouseenter)=\"setIsDifference(ROW_DATA.isDifferenceLessThan25Percent)\"\r\n tooltipClass=\"posted-avg-tooltip\"\r\n [ngbTooltip]=\"postedImpDifference\"\r\n >\r\n </i>\r\n </ng-container>\r\n <ng-container *ngIf=\"subline.objectKey == 'description'\">\r\n <p *ngIf=\"ROW_DATA.descriptionMessage || ROW_DATA.descriptionEmailReferenceNum\">\r\n <ng-container *ngIf=\"ROW_DATA.descriptionMessage\">\r\n {{ ROW_DATA.descriptionMessage }}\r\n <br />\r\n </ng-container>\r\n <ng-container *ngIf=\"ROW_DATA.descriptionEmailReferenceNum\">\r\n Email Ref: {{ ROW_DATA.descriptionEmailReferenceNum }}\r\n <br />\r\n </ng-container>\r\n </p>\r\n <a\r\n href=\"{{ ROW_DATA.descriptionDetailsUrl }}\"\r\n target=\"_blank\"\r\n *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'PDF' || ROW_DATA.descriptionDetailsUrlType === 'EXCEL'\"\r\n >\r\n <button class=\"btn viewDetailsAndEmailBtn\">Download</button>\r\n </a>\r\n <ng-container *ngIf=\"ROW_DATA.activityname.toLowerCase() == 'order onboarded'\">\r\n <a *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'LINK'\" (click)=\"viewDetailsClicked(ROW_DATA)\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View details</button>\r\n </a>\r\n </ng-container>\r\n \r\n <a href=\"{{ ROW_DATA.descriptionEmailUrl }}\" target=\"_blank\" *ngIf=\"ROW_DATA.descriptionEmailUrl\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View email</button>\r\n </a>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container\r\n *ngIf=\"\r\n gtGeneralConfig.page === 'SpotDetails' &&\r\n columnDef.headerInfo[subLineIndex].objectKey === 'Status'\r\n \"\r\n >\r\n <img\r\n src=\"assets/images/Undo-Credit-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForCredit\"\r\n (click)=\"undoCreditedSpot(ROW_DATA)\"\r\n />\r\n <img\r\n src=\"assets/images/Undo-MG-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForMakeGood\"\r\n (click)=\"undoMgSpot(ROW_DATA)\"\r\n />\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </table>\r\n </div>\r\n\r\n <anna-core-no-data-lib [width]=\"noDataWidth\" *ngIf=\"!showSkeletonLoading && tableData.length == 0\"> </anna-core-no-data-lib>\r\n</div>\r\n\r\n<!-- Checkbox template -->\r\n<ng-template #filterTooltip>\r\n <div class=\"radio-container\" *ngIf=\"showCheckboxFilterRadioButtons\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input\r\n type=\"radio\"\r\n id=\"{{ data.key }}\"\r\n [ngModel]=\"annaFilterService.selectedRadio\"\r\n name=\"toolTip\"\r\n value=\"{{ data.key }}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\"\r\n />\r\n <label for=\"{{ data.key }}\">{{ data.label }}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <p class=\"search-box\">\r\n <i class=\"mi mdi-search search-icon search-icon-position\"></i>\r\n <input\r\n type=\"text\"\r\n placeholder=\"Search\"\r\n class=\"search-input\"\r\n style=\"margin-left: 2px; border: none; padding: 0px\"\r\n [(ngModel)]=\"searchBar\"\r\n />\r\n </p>\r\n <div class=\"dropdown-data-container\">\r\n <ng-container *ngIf=\"showAll\">\r\n <p class=\"input\" (click)=\"allOptionClicked()\">\r\n <span *ngIf=\"allSelected == 1\" role=\"button\" class=\"mi mdi-check-box check-box\"></span>\r\n <span *ngIf=\"allSelected == 0\" role=\"button\" class=\"mi mdi-check-box-outline-blank check-box unchecked\"></span>\r\n <span *ngIf=\"allSelected == 2\" role=\"button\" class=\"mi mdi-indeterminate-check-box check-box\"></span>\r\n <span class=\"data\">All</span>\r\n </p>\r\n </ng-container>\r\n <ng-container *ngFor=\"let data of tempTooltipData | AnnafilterSearchedText: searchBar\">\r\n <p *ngIf=\"!data.isHidden\" class=\"input\" (click)=\"isCheckboxSelected(data)\">\r\n <span *ngIf=\"data.isSelected\" role=\"button\" class=\"mi mdi-check-box check-box\"></span>\r\n <span *ngIf=\"!data.isSelected\" role=\"button\" class=\"mi mdi-check-box-outline-blank check-box unchecked\"></span>\r\n <span class=\"data\" title=\"{{ data.data }}\">{{ data.data }}</span>\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeCheckboxFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableCheckboxApply }\"\r\n (click)=\"applyFilters()\"\r\n [disabled]=\"disableCheckboxApply\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Slider template -->\r\n<ng-template #sliderToolTip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component == 'DRRLISTING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input type=\"radio\" id=\"{{data.key}}\" [ngModel]=\"annaFilterService.selectedRadio\" name=\"toolTip\" value=\"{{data.key}}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\">\r\n <label for=\"{{data.key}}\">{{data.label}}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all align-center\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button>\r\n <section class=\"min-maxContainer\">\r\n <input\r\n type=\"number\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [ngModel]=\"sliderMinValue\"\r\n (ngModelChange)=\"minValueChanged($event)\"\r\n placeholder=\"Min\"\r\n />\r\n <span>To</span>\r\n <input\r\n type=\"number\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [ngModel]=\"sliderMaxValue\"\r\n (ngModelChange)=\"maxValueChanged($event)\"\r\n placeholder=\"Max\"\r\n />\r\n </section>\r\n <div class=\"sidebar-slider\">\r\n <ngx-slider\r\n [(value)]=\"sliderMinValue\"\r\n [(highValue)]=\"sliderMaxValue\"\r\n [options]=\"options\"\r\n (valueChange)=\"sliderValueChange()\"\r\n (highValueChange)=\"sliderValueChange()\"\r\n ></ngx-slider>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"cancelSliderFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableSliderApplyButton }\"\r\n (click)=\"applySliderFilter()\"\r\n [disabled]=\"disableSliderApplyButton\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Date Picker Template -->\r\n<ng-template #datePickerTooltip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component == 'DRRLISTING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input type=\"radio\" id=\"{{data.key}}\" [ngModel]=\"annaFilterService.selectedRadio\" name=\"toolTip\" value=\"{{data.key}}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\">\r\n <label for=\"{{data.key}}\">{{data.label}}</label>\r\n </div>\r\n </div>\r\n <div class=\"datepicker-container\">\r\n <button class=\"column-clear-all align-center\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button>\r\n <anna-core-calendar-filter-lib\r\n [minDate]=\"calendarMinEnabledDate\"\r\n [maxDate]=\"calendarMaxEnabledDate\"\r\n [selectedFromDate]=\"selectedMinDate\"\r\n [selectedToDate]=\"selectedMaxDate\"\r\n (apply)=\"applyDateFilter($event)\"\r\n (cancel)=\"cancelInDateFilter()\"\r\n >\r\n </anna-core-calendar-filter-lib>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Week Picker Template -->\r\n<ng-template #weekPickerToolTip>\r\n <div class=\"weekpicker-container\">\r\n <anna-core-week-calendar-filter-lib\r\n [week-calendar-config]=\"gtGeneralConfig.multiWeekPickerConfig\"\r\n (apply)=\"applyWeekFilter($event)\"\r\n [from-date]=\"calendarMinEnabledDate\"\r\n [to-date]=\"calendarMaxEnabledDate\"\r\n >\r\n </anna-core-week-calendar-filter-lib>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Time Filter Template -->\r\n<ng-template #timeFilterToolTip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component != 'RATING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input\r\n type=\"radio\"\r\n id=\"{{ data.key }}\"\r\n [ngModel]=\"annaFilterService.selectedRadio\"\r\n name=\"toolTip\"\r\n value=\"{{ data.key }}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\"\r\n *ngIf=\"radioButtons.length > 1\"\r\n />\r\n <label for=\"{{ data.key }}\">{{ data.label }}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <div\r\n class=\"time-filter-checkboxes\"\r\n *ngIf=\"gtGeneralConfig.component == 'SPOTDETAILS' || gtGeneralConfig.component == 'EXCLUDEINVENTORYPOPUP' || gtGeneralConfig.component == 'RATING'\"\r\n >\r\n <!-- Multi time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showMultiTimeCheckbox\">\r\n <span\r\n *ngIf=\"multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Multi</p>\r\n </div>\r\n <!-- Zero time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showZeroTimeCheckbox\">\r\n <span\r\n *ngIf=\"zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Zero</p>\r\n </div>\r\n <!-- Enter time range option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showEnterTimeCheckbox\">\r\n <span\r\n *ngIf=\"enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Enter time range</p>\r\n </div>\r\n </div>\r\n <div class=\"time-label-container\">\r\n <label>From</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedFromTime[0]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedFromTime[1]\" type=\"text\" disabled />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedFromTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n\r\n <div class=\"time-label-container\">\r\n <label>To</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedToTime[0]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedToTime[1]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedToTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeTimeFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableTimeFilterApplyBtn }\"\r\n (click)=\"applyTimeFilters()\"\r\n [disabled]=\"disableTimeFilterApplyBtn\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #columnInfoTooltip>\r\n <p style=\"padding: 0.5rem; color: black;white-space: nowrap;\">This preemption is rejected and not marked for credit.</p>\r\n</ng-template>\r\n\r\n<ng-template #ratingInfoTooltip>\r\n <p class=\"first-row\">Shows 'Booked Rating' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\">Shows 'Projected Rating' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #impsInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked IMPS' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected IMPS' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #rateInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked Rate' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected $ Value' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #sellerHierarchyTooltip>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length > 0\">\r\n <table class=\"seller-hierarchy-table\">\r\n <thead>\r\n <tr>\r\n <th>#</th>\r\n <th>Inventory Codes</th>\r\n <th>Program/Description</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let data of sellerGroupHierarchy; let tooltipIndex = index\">\r\n <td>{{ tooltipIndex + 1 }}</td>\r\n <td>\r\n <span>{{ data.inventoryCode }}</span>\r\n </td>\r\n <td>\r\n <span>{{ data.program }}</span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length == 0\">\r\n <span style=\"color: #000\">Seller group not available for this inventory code</span>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-template #lurViolationInfoTooltip>\r\n <p class =\"first-row\" >The values are for the entire week.</p>\r\n</ng-template>\r\n\r\n<ng-template #postedRatingDifference>\r\n <p class=\"difference-text\">The difference between posted and booked average rating is {{isDifferenceLessThan25Percent ? 'less' : 'more'}} than 25%.</p>\r\n</ng-template>\r\n\r\n<ng-template #postedImpDifference>\r\n <p class=\"difference-text\">The difference between posted and booked average impression is {{isDifferenceLessThan25Percent ? 'less' : 'more'}} than 25%.</p>\r\n</ng-template>\r\n", styles: [".sort{display:inline-block;margin:0!important;position:relative;top:1px}.mdi-sort{padding-top:5px;padding-bottom:2.5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort.active{opacity:1}.mdi-sort-descending{padding-top:2.5px;padding-bottom:5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort-descending.active{opacity:1}.disable{cursor:not-allowed;pointer-events:none;opacity:.17}.sort-container{color:#000;padding:.25rem;text-align:left}.sort-container input{position:relative;top:.125rem;margin-right:.188rem}.sort-container input:hover,.sort-container label:hover{cursor:pointer}.sort-container div:last-of-type{line-height:.2}input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}input[type=radio]:checked{background-color:#268bff}input[type=radio]:focus{outline-offset:-10px}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:98%;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:85%;overflow:hidden}.check-box{font-size:22px;cursor:pointer}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider{margin:5px 0 2px!important;width:100%!important}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#268bff!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}::ng-deep .ngx-slider-pointer:after{display:none!important}::ng-deep .ngx-slider-pointer:focus{outline:none!important}::ng-deep .ngx-slider-bar{background:rgba(0,0,0,.26)!important;height:3px!important}::ng-deep .ngx-slider-bar.ngx-slider-selection{background:#42a5f5!important;height:3px!important}::ng-deep .sidebar-slider{margin-bottom:35px!important;margin-left:.3125rem;margin-right:.3125rem}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-high{right:0!important}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-ceil{right:0!important}::ng-deep .ngx-slider.animate{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bubble{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bar{background:rgba(0,0,0,.26)!important;height:3px!important}::ng-deep .ngx-slider-bar.ngx-slider-selection{background:#42a5f5!important;height:3px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;padding:.125rem .125rem .125rem .25rem;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center}.buttons-container button:last-of-type{background-color:#268bff;color:#fff}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:5px 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.14;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 0 .188rem .5rem}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}div.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}div.dropdown-data-container p.input{margin-left:0}div.dropdown-data-container p.input span.mi{padding-left:.4375rem}div.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}div.dropdown-data-container::-webkit-scrollbar{width:.188rem}div.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:.125rem .625rem 0}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;padding-top:.375rem;padding-left:1px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#cbcbcb;cursor:pointer;font-size:.5625rem}.time-container div.arrow-container i.downward{transform:rotate(180deg)}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.625rem;margin-left:.625rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:left;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a}.column-clear-all.align-center{text-align:center}span.mdi-filter.disabled,span.mdi-calendar-range.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}.upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a!important;margin-bottom:0!important}:host ::ng-deep .gt{table-layout:fixed;margin-bottom:0;width:100%}:host ::ng-deep .gt th,:host ::ng-deep .gt td{padding:2px 8px;line-height:normal}:host ::ng-deep .gt thead tr th .upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a;margin-bottom:0}:host ::ng-deep .gt thead tr th .lower-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-bottom:0}:host ::ng-deep .gt thead tr th{background-color:#ededed;position:sticky;position:-webkit-sticky;top:0;border-top:none!important;border-bottom:none!important;outline:none!important;box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4}:host ::ng-deep .gt thead tr th br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt thead tr th div.row{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}:host ::ng-deep .gt thead tr th div.sort-filter-container{display:flex;flex-wrap:nowrap;align-items:center}:host ::ng-deep .gt thead tr th:first-of-type{box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4,inset 1px 0 #d4d4d4}:host ::ng-deep .gt tbody tr td:first-of-type{box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td:nth-of-type(n + 2){box-shadow:inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td .upper-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#000;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr td .lower-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#a7a7a7;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt tbody tr:nth-of-type(1) td{border-top:none!important}:host ::ng-deep .gt .custom-column-checkbox-checked,:host ::ng-deep .gt .custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}:host ::ng-deep .gt .custom-column-checkbox-checked{color:#268bff}:host ::ng-deep .gt .custom-column-checkbox-unchecked{color:#4a4a4a}.table-container::-webkit-scrollbar-track{border:1px solid rgba(0,0,0,.1)!important}.table-container::-webkit-scrollbar{width:5px;height:5px}.table-container::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0006!important;border:1px solid rgba(0,0,0,.2)}.table-container{overflow-x:auto;overflow-y:auto}.rowSelectCheckbox,#selectAllRowsCheckbox{cursor:pointer}.disable-checkbox{color:#dedede!important;pointer-events:none!important}.mdi-warning{color:#f3c639;font-size:16px;line-height:28px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{opacity:1}.redcolor-status{color:#c62a2a}.redcolor-cell-border{outline:1px solid #ff5353!important;outline-offset:-1px!important}#no-filter-space{width:.875rem}::ng-deep .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:1.875rem!important;width:2.625rem;padding:0 .625rem}input.numberInput{margin-right:-.8125rem;padding:0 0 0 .625rem;height:1.875rem}::ng-deep .mat-button-toggle-checked{background-color:#268bff!important;color:#fff!important}::ng-deep .mat-button-toggle-group-appearance-standard{border-radius:0}.hidden{display:none}.no-data-div{margin-top:2.5px}.no-data-div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:.3125rem 1.125rem;border-radius:.25rem}.column-values:nth-of-type(2){color:#a7a7a7!important}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}.time-filter-checkboxes>div>p{color:#151b1e}.radio-button-dimension,::ng-deep .markForCredit .mat-radio-inner-circle,::ng-deep .markForCredit .mat-radio-outer-circle,::ng-deep .mark-for-credit .mat-radio-inner-circle,::ng-deep .mark-for-credit .mat-radio-outer-circle,::ng-deep .markForMakeGood .mat-radio-inner-circle,::ng-deep .markForMakeGood .mat-radio-outer-circle,::ng-deep .noAction .mat-radio-inner-circle,::ng-deep .noAction .mat-radio-outer-circle,::ng-deep .credit .mat-radio-inner-circle,::ng-deep .credit .mat-radio-outer-circle,::ng-deep .approve .mat-radio-inner-circle,::ng-deep .approve .mat-radio-outer-circle,::ng-deep .reject .mat-radio-inner-circle,::ng-deep .reject .mat-radio-outer-circle,::ng-deep .resubmit .mat-radio-inner-circle,::ng-deep .resubmit .mat-radio-outer-circle,::ng-deep .rejectCreditRequest .mat-radio-inner-circle,::ng-deep .rejectCreditRequest .mat-radio-outer-circle{height:18px!important;width:18px!important}::ng-deep .margin-bottom-zero .mat-radio-label{margin-bottom:0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:red}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:red}::ng-deep .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:#00000061!important}::ng-deep .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-inner-circle{background-color:#00000061!important}::ng-deep tr.white-background-row{background:white}::ng-deep tr.gray-background-row{background:rgba(233,233,233,.5)}.remarks-tooltip,.seller-tooltip{font-size:.875rem;color:#268bff;position:relative;top:.1875rem;cursor:pointer}.seller-tooltip{float:right}::ng-deep .remarks-info-tooltip .tooltip-inner{max-width:19.25rem!important}.rating-icon,.lur-violation-icon{color:#268bff;cursor:pointer;margin-left:2px;position:relative;left:-2px}::ng-deep .rating-info-tooltip .tooltip-inner{max-width:800px!important}p.first-row{padding:.5rem .5rem 0;color:#000;white-space:nowrap;text-align:left}p.second-row{padding:2px .5rem .5rem;color:#000;white-space:nowrap;text-align:left}::ng-deep .gt-total-row-tooltip{opacity:1!important}::ng-deep .gt-total-row-tooltip .tooltip-inner{color:#000;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003;background-color:#fff;padding:4px!important;width:100%;border-radius:2px!important}::ng-deep .gt-total-row-tooltip .arrow:before{border-top-color:#fff!important}.info-label{margin-left:4px;color:#268bff;vertical-align:text-top}::ng-deep .hierarchy-tooltip .tooltip-inner{padding:4px!important}table.seller-hierarchy-table{table-layout:fixed;margin:.625rem .625rem .625rem .8125rem}table.seller-hierarchy-table tr th{font-family:Roboto;font-size:.75rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:#5e5e5e;white-space:nowrap;background:#ededed;box-shadow:none!important;border-top:1px solid #d4d4d4}table.seller-hierarchy-table tr th:first-of-type,table.seller-hierarchy-table tr td:first-of-type{border-left:1px solid #d4d4d4}table.seller-hierarchy-table tr th:last-of-type,table.seller-hierarchy-table tr td:last-of-type{border-right:1px solid #d4d4d4;width:7.875rem!important}table.seller-hierarchy-table tr th:nth-of-type(2){width:7.75rem!important}table.seller-hierarchy-table tr td{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#4a4a4a;box-shadow:none!important;border-top:1px solid #d4d4d4;border-bottom:1px solid #d4d4d4}table.seller-hierarchy-table tr td:nth-of-type(2),table.seller-hierarchy-table tr td:nth-of-type(3){padding-top:.25rem}table.seller-hierarchy-table tr td span{display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}.difference-text{padding:.5rem;color:#000;text-align:left}::ng-deep .posted-avg-tooltip .tooltip-inner{width:13.8125rem!important}\n"] }]
1065
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.AnnaSortService }, { type: i1.AnnaDateTimeFormatService }, { type: i1.AnnaFilterService }, { type: i1.AnnaGenericTableService }]; }, propDecorators: { showSkeletonLoading: [{
1066
+ type: Input
1067
+ }], tableHeaders: [{
1068
+ type: Input
1069
+ }], tableData: [{
1070
+ type: Input
1071
+ }], clonedTableData: [{
1072
+ type: Input
1073
+ }], numberOfSkeletonRows: [{
1074
+ type: Input
1075
+ }], numberOfSkeletonColumns: [{
1076
+ type: Input
1077
+ }], gtGeneralConfig: [{
1078
+ type: Input
1079
+ }], totalRowInfo: [{
1080
+ type: Input
1081
+ }], gtDimension: [{
1082
+ type: Input
1083
+ }], tableClass: [{
1084
+ type: Input
1085
+ }], maximumRowsWhichCanBeRenderedWithoutScroll: [{
1086
+ type: Input
1087
+ }], toggleCheckbox: [{
1088
+ type: Output
1089
+ }], toggleRowCheckbox: [{
1090
+ type: Output
1091
+ }], toggleHeaderCheckbox: [{
1092
+ type: Output
1093
+ }], undoIconClicked: [{
1094
+ type: Output
1095
+ }], filterAppliedToTable: [{
1096
+ type: Output
1097
+ }], sortingAppliedToTable: [{
1098
+ type: Output
1099
+ }], rowClicked: [{
1100
+ type: Output
1101
+ }], radioButtonSelected: [{
1102
+ type: Output
1103
+ }], columnFilterOpened: [{
1104
+ type: Output
1105
+ }], columnFilterClosed: [{
1106
+ type: Output
1107
+ }], gtIconClicked: [{
1108
+ type: Output
1109
+ }], gtSVGIconClicked: [{
1110
+ type: Output
1111
+ }], gtTextActionClicked: [{
1112
+ type: Output
1113
+ }], gtViewDetailClicked: [{
1114
+ type: Output
1115
+ }], sortComponent: [{
1116
+ type: ViewChildren,
1117
+ args: [AnnaSortComponent]
1118
+ }] } });
1119
+
1120
+ /**
1121
+ * @license
1122
+ * Copyright Google LLC All Rights Reserved.
1123
+ *
1124
+ * Use of this source code is governed by an MIT-style license that can be
1125
+ * found in the LICENSE file at https://angular.io/license
1126
+ */
1127
+ /** Checks if the given ranges are equal. */
1128
+ function rangesEqual(r1, r2) {
1129
+ return r1.start == r2.start && r1.end == r2.end;
1130
+ }
1131
+ /**
1132
+ * Scheduler to be used for scroll events. Needs to fall back to
1133
+ * something that doesn't rely on requestAnimationFrame on environments
1134
+ * that don't support it (e.g. server-side rendering).
1135
+ */
1136
+ const SCROLL_SCHEDULER = typeof requestAnimationFrame !== "undefined"
1137
+ ? animationFrameScheduler
1138
+ : asapScheduler;
1139
+ /**
1140
+ * A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`.
1141
+ * Uses `top: #px` instead of `transform: translateY(#px)` like the cdk virtual scroll viewport does
1142
+ * which avoids flickering of elements in the transformed container with `position: sticky`.
1143
+ */
1144
+ class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
1145
+ constructor(elementRef, _changeDetectorRef, ngZone, _scrollStrategy, dir, scrollDispatcher, viewportRuler, annaGtService) {
1146
+ super(elementRef, scrollDispatcher, ngZone, dir);
1147
+ this.elementRef = elementRef;
1148
+ this._changeDetectorRef = _changeDetectorRef;
1149
+ this._scrollStrategy = _scrollStrategy;
1150
+ this.annaGtService = annaGtService;
1151
+ /** Emits when the viewport is detached from a CdkVirtualForOf. */
1152
+ this._detachedSubject = new Subject();
1153
+ /** Emits when the rendered range changes. */
1154
+ this._renderedRangeSubject = new Subject();
1155
+ this._orientation = "vertical";
1156
+ // Note: we don't use the typical EventEmitter here because we need to subscribe to the scroll
1157
+ // strategy lazily (i.e. only if the user is actually listening to the events). We do this because
1158
+ // depending on how the strategy calculates the scrolled index, it may come at a cost to
1159
+ // performance.
1160
+ /** Emits when the index of the first element visible in the viewport changes. */
1161
+ this.scrolledIndexChange = new Observable((observer) => this._scrollStrategy.scrolledIndexChange.subscribe(index => Promise.resolve().then(() => this.ngZone.run(() => observer.next(index)))));
1162
+ /** A stream that emits whenever the rendered range changes. */
1163
+ this.renderedRangeStream = this._renderedRangeSubject;
1164
+ /**
1165
+ * The total size of all content (in pixels), including content that is not currently rendered.
1166
+ */
1167
+ this._totalContentSize = 0;
1168
+ /** A string representing the `style.width` property value to be used for the spacer element. */
1169
+ this._totalContentWidth = "";
1170
+ /** A string representing the `style.height` property value to be used for the spacer element. */
1171
+ this._totalContentHeight = "";
1172
+ /** The currently rendered range of indices. */
1173
+ this._renderedRange = { start: 0, end: 0 };
1174
+ /** The length of the data bound to this viewport (in number of items). */
1175
+ this._dataLength = 0;
1176
+ /** The size of the viewport (in pixels). */
1177
+ this._viewportSize = 0;
1178
+ /** The last rendered content offset that was set. */
1179
+ this._renderedContentOffset = 0;
1180
+ /**
1181
+ * Whether the last rendered content offset was to the end of the content (and therefore needs to
1182
+ * be rewritten as an offset to the start of the content).
1183
+ */
1184
+ this._renderedContentOffsetNeedsRewrite = false;
1185
+ /** Whether there is a pending change detection cycle. */
1186
+ this._isChangeDetectionPending = false;
1187
+ /** A list of functions to run after the next change detection cycle. */
1188
+ this._runAfterChangeDetection = [];
1189
+ /** Subscription to changes in the viewport size. */
1190
+ this._viewportChanges = Subscription.EMPTY;
1191
+ if (!_scrollStrategy) {
1192
+ throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');
1253
1193
  }
1254
- this.sliderMinValue = selectedTooltipObj.min < this.options.floor ? this.options.floor : selectedTooltipObj.min;
1255
- this.sliderMaxValue = selectedTooltipObj.max < this.options.ceil ? selectedTooltipObj.max : this.options.ceil;
1256
- //default step values
1257
- this.options.step = 1;
1258
- this.sliderFilterTextBoxStep = "1";
1259
- if (header !== "WeekNumber") {
1260
- this.options.step = 0.1;
1261
- this.sliderFilterTextBoxStep = "0.1";
1194
+ this._viewportChanges = viewportRuler.change().subscribe(() => {
1195
+ this.checkViewportSize();
1196
+ });
1197
+ }
1198
+ /** The direction the viewport scrolls. */
1199
+ get orientation() {
1200
+ return this._orientation;
1201
+ }
1202
+ set orientation(orientation) {
1203
+ if (this._orientation !== orientation) {
1204
+ this._orientation = orientation;
1205
+ this._calculateSpacerSize();
1262
1206
  }
1263
1207
  }
1264
- getCheckboxData(header) {
1265
- this.tempTooltipData = this.annaFilterService.populateTooltip(header, this.clonedTableData, this.tableData);
1266
- this.allSelected = this.annaFilterService.isAllOptionsSelected();
1267
- this.showAll = this.tempTooltipData.filter((x) => !x.isHidden).length > 1 ? true : false;
1268
- this.toolTipdata = cloneDeep(this.tempTooltipData);
1208
+ ngOnInit() {
1209
+ super.ngOnInit();
1210
+ // It's still too early to measure the viewport at this point. Deferring with a promise allows
1211
+ // the Viewport to be rendered with the correct size before we measure. We run this outside the
1212
+ // zone to avoid causing more change detection cycles. We handle the change detection loop
1213
+ // ourselves instead.
1214
+ this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {
1215
+ this._measureViewportSize();
1216
+ this._scrollStrategy.attach(this);
1217
+ this.elementScrolled()
1218
+ .pipe(
1219
+ // Start off with a fake scroll event so we properly detect our initial position.
1220
+ startWith(null),
1221
+ // Collect multiple events into one until the next animation frame. This way if
1222
+ // there are multiple scroll events in the same frame we only need to recheck
1223
+ // our layout once.
1224
+ auditTime(0, SCROLL_SCHEDULER))
1225
+ .subscribe(() => { this._scrollStrategy.onContentScrolled(); this.annaGtService.virtualScrollSubject.next(true); });
1226
+ this._markChangeDetectionNeeded();
1227
+ }));
1269
1228
  }
1270
- getCalendarData() {
1271
- const parsingFormat = "MM/DD/YYYY";
1272
- let minMaxdate = this.annaFilterService.populateDatePickerTooltipWithData(this.clonedTableData, this.tableData);
1273
- let selectedDateObj;
1274
- if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
1275
- selectedDateObj = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
1276
- }
1277
- else {
1278
- selectedDateObj = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
1279
- }
1280
- // For startDate
1281
- // selected date is less than date which we get
1282
- if ((selectedDateObj.minSelectedDate).isAfter(minMaxdate.minStartDate)) {
1283
- this.selectedMinDate = this.annaDateTimeFormatService.convertToNgbDate(selectedDateObj.minSelectedDate, parsingFormat);
1284
- }
1285
- else {
1286
- this.selectedMinDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxdate.minStartDate, parsingFormat);
1287
- }
1288
- // For endData
1289
- // selectedDate is less than date which we get
1290
- if ((selectedDateObj.maxSelectedDate).isAfter(minMaxdate.maxEndDate)) {
1291
- this.selectedMaxDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxdate.maxEndDate, parsingFormat);
1292
- }
1293
- else {
1294
- this.selectedMaxDate = this.annaDateTimeFormatService.convertToNgbDate(selectedDateObj.maxSelectedDate, parsingFormat);
1295
- }
1296
- this.calendarMinEnabledDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxdate.minStartDate, parsingFormat);
1297
- this.calendarMaxEnabledDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxdate.maxEndDate, parsingFormat);
1229
+ ngOnDestroy() {
1230
+ this.detach();
1231
+ this._scrollStrategy.detach();
1232
+ // Complete all subjects
1233
+ this._renderedRangeSubject.complete();
1234
+ this._detachedSubject.complete();
1235
+ this._viewportChanges.unsubscribe();
1236
+ super.ngOnDestroy();
1298
1237
  }
1299
- getTimeFilterData(header) {
1300
- if (this.annaFilterService.tooltipSelectedMap.has(header)) {
1301
- this.selectedFromTime = this.annaFilterService.tooltipSelectedMap.get(header).fromTime;
1302
- this.selectedToTime = this.annaFilterService.tooltipSelectedMap.get(header).toTime;
1303
- }
1304
- else {
1305
- this.selectedFromTime = this.annaFilterService.initialValueMap.get(header).fromTime;
1306
- this.selectedToTime = this.annaFilterService.initialValueMap.get(header).toTime;
1307
- }
1308
- if (this.selectedFromTime != undefined || this.selectedToTime != undefined) {
1309
- this.selectedFromTime = this.annaDateTimeFormatService.formatToTwelveHrs(this.selectedFromTime, true);
1310
- this.selectedToTime = this.annaDateTimeFormatService.formatToTwelveHrs(this.selectedToTime, true);
1311
- this.clonedSelectedFromTime = cloneDeep(this.selectedFromTime);
1312
- this.clonedSelectedToTime = cloneDeep(this.selectedToTime);
1313
- }
1314
- else {
1315
- this.selectedFromTime = ["-", "-", "-"];
1316
- this.selectedToTime = ["-", "-", "-"];
1317
- this.disableTimeFilterApplyBtn = true;
1318
- }
1319
- if (this.gtGeneralConfig.component === "SPOTDETAILS" || this.gtGeneralConfig.component === "EXCLUDEINVENTORYPOPUP") {
1320
- this.showMultiTimeCheckbox = false;
1321
- this.showZeroTimeCheckbox = false;
1322
- this.showEnterTimeCheckbox = false;
1323
- if (this.clonedTableData.findIndex((obj) => obj[header] == "0") != -1) {
1324
- this.showZeroTimeCheckbox = true;
1325
- this.annaFilterService.includeZeroTime = this.tableData.findIndex((obj) => obj[header] == "0") != -1;
1326
- this.zeroTimeCheckboxChecked = this.annaFilterService.includeZeroTime;
1327
- }
1328
- if (this.clonedTableData.findIndex((obj) => obj[header] == "<multi>") != -1) {
1329
- this.showMultiTimeCheckbox = true;
1330
- this.annaFilterService.includeMultiTime = this.tableData.findIndex((obj) => obj[header] == "<multi>") != -1;
1331
- this.multiTimeCheckboxChecked = this.annaFilterService.includeMultiTime;
1332
- }
1333
- if (this.showZeroTimeCheckbox || this.showMultiTimeCheckbox) {
1334
- this.showEnterTimeCheckbox = true;
1335
- }
1336
- if (this.clonedTableData.findIndex((obj) => obj[header] != "<multi>" && obj[header] != "0") != -1) {
1337
- this.annaFilterService.includeTimeRange = this.tableData.findIndex((obj) => obj[header] != "<multi>" && obj[header] != "0") != -1;
1338
- this.enterTimeCheckboxChecked = this.annaFilterService.includeTimeRange;
1339
- }
1340
- }
1341
- else if (this.gtGeneralConfig.component === "RATING") {
1342
- this.showMultiTimeCheckbox = false;
1343
- this.showZeroTimeCheckbox = false;
1344
- this.showEnterTimeCheckbox = false;
1345
- if (this.clonedTableData.findIndex((obj) => obj[header][0] == "0") != -1) {
1346
- this.showZeroTimeCheckbox = true;
1347
- this.annaFilterService.includeZeroTime = this.tableData.findIndex((obj) => obj[header][0] == "0") != -1;
1348
- this.zeroTimeCheckboxChecked = this.annaFilterService.includeZeroTime;
1349
- }
1350
- if (this.clonedTableData.findIndex((obj) => obj[header][0] == "<multi>") != -1) {
1351
- this.showMultiTimeCheckbox = true;
1352
- this.annaFilterService.includeMultiTime = this.tableData.findIndex((obj) => obj[header][0] == "<multi>") != -1;
1353
- this.multiTimeCheckboxChecked = this.annaFilterService.includeMultiTime;
1354
- }
1355
- if (this.showZeroTimeCheckbox || this.showMultiTimeCheckbox) {
1356
- this.showEnterTimeCheckbox = true;
1357
- }
1358
- if (this.clonedTableData.findIndex((obj) => obj[header][0] != "<multi>" && obj[header][0] != "0") != -1) {
1359
- this.annaFilterService.includeTimeRange = this.tableData.findIndex((obj) => obj[header][0] != "<multi>" && obj[header][0] != "0") != -1;
1360
- this.enterTimeCheckboxChecked = this.annaFilterService.includeTimeRange;
1361
- }
1238
+ /** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
1239
+ attach(forOf) {
1240
+ if (this._forOf) {
1241
+ throw Error("CdkVirtualScrollViewport is already attached.");
1362
1242
  }
1243
+ // Subscribe to the data stream of the CdkVirtualForOf to keep track of when the data length
1244
+ // changes. Run outside the zone to avoid triggering change detection, since we're managing the
1245
+ // change detection loop ourselves.
1246
+ this.ngZone.runOutsideAngular(() => {
1247
+ this._forOf = forOf;
1248
+ this._forOf.dataStream
1249
+ .pipe(takeUntil(this._detachedSubject))
1250
+ .subscribe(data => {
1251
+ const newLength = data.length;
1252
+ if (newLength !== this._dataLength) {
1253
+ this._dataLength = newLength;
1254
+ this._scrollStrategy.onDataLengthChanged();
1255
+ }
1256
+ this._doChangeDetection();
1257
+ });
1258
+ });
1363
1259
  }
1364
- selectOrUnselectMultiTimeCheckbox() {
1365
- this.multiTimeCheckboxChecked = !this.multiTimeCheckboxChecked;
1366
- this.annaFilterService.includeMultiTime = !this.annaFilterService.includeMultiTime;
1367
- this.disableTimeFilterApplyButton();
1260
+ /** Detaches the current `CdkVirtualForOf`. */
1261
+ detach() {
1262
+ this._forOf = null;
1263
+ this._detachedSubject.next();
1368
1264
  }
1369
- selectOrUnselectZeroTimeCheckbox() {
1370
- this.zeroTimeCheckboxChecked = !this.zeroTimeCheckboxChecked;
1371
- this.annaFilterService.includeZeroTime = !this.annaFilterService.includeZeroTime;
1372
- this.disableTimeFilterApplyButton();
1265
+ /** Gets the length of the data bound to this viewport (in number of items). */
1266
+ getDataLength() {
1267
+ return this._dataLength;
1373
1268
  }
1374
- selectOrUnselectEnterTimeCheckbox() {
1375
- this.enterTimeCheckboxChecked = !this.enterTimeCheckboxChecked;
1376
- this.annaFilterService.includeTimeRange = !this.annaFilterService.includeTimeRange;
1377
- this.disableTimeFilterApplyButton();
1269
+ /** Gets the size of the viewport (in pixels). */
1270
+ getViewportSize() {
1271
+ return this._viewportSize;
1378
1272
  }
1379
- disableSliderApplyBtn() {
1380
- return this.options.floor === this.options.ceil;
1273
+ // TODO(mmalerba): This is technically out of sync with what's really rendered until a render
1274
+ // cycle happens. I'm being careful to only call it after the render cycle is complete and before
1275
+ // setting it to something else, but its error prone and should probably be split into
1276
+ // `pendingRange` and `renderedRange`, the latter reflecting whats actually in the DOM.
1277
+ /** Get the current rendered range of items. */
1278
+ getRenderedRange() {
1279
+ return this._renderedRange;
1381
1280
  }
1382
- isCheckboxSelected(data) {
1383
- this.allSelected = this.annaFilterService.isCheckboxSelected(data);
1384
- if (this.annaFilterService.tooltipMap.get(this.annaFilterService.selectedRadio).filter((x) => x.isSelected && !x.isHidden).length == 0) {
1385
- this.disableCheckboxApply = true;
1281
+ /**
1282
+ * Sets the total size of all content (in pixels), including content that is not currently
1283
+ * rendered.
1284
+ */
1285
+ setTotalContentSize(size) {
1286
+ if (this._totalContentSize !== size) {
1287
+ this._totalContentSize = size;
1288
+ this._calculateSpacerSize();
1289
+ this._markChangeDetectionNeeded();
1386
1290
  }
1387
- else {
1388
- this.disableCheckboxApply = false;
1291
+ }
1292
+ /** Sets the currently rendered range of indices. */
1293
+ setRenderedRange(range) {
1294
+ if (!rangesEqual(this._renderedRange, range)) {
1295
+ this._renderedRangeSubject.next((this._renderedRange = range));
1296
+ this._markChangeDetectionNeeded(() => this._scrollStrategy.onContentRendered());
1297
+ }
1298
+ }
1299
+ /**
1300
+ * Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
1301
+ */
1302
+ getOffsetToRenderedContentStart() {
1303
+ return this._renderedContentOffsetNeedsRewrite
1304
+ ? null
1305
+ : this._renderedContentOffset;
1306
+ }
1307
+ /**
1308
+ * Sets the offset from the start of the viewport to either the start or end of the rendered data
1309
+ * (in pixels).
1310
+ */
1311
+ setRenderedContentOffset(offset) {
1312
+ let top = `${Number(offset)}px`;
1313
+ this._renderedContentOffset = offset;
1314
+ if (this._renderedContentTransform != top) {
1315
+ // We know this value is safe because we parse `offset` with `Number()` before passing it
1316
+ // into the string.
1317
+ this._renderedContentTransform = top;
1318
+ this._markChangeDetectionNeeded(() => {
1319
+ if (this._renderedContentOffsetNeedsRewrite) {
1320
+ this._renderedContentOffset -= this.measureRenderedContentSize();
1321
+ this._renderedContentOffsetNeedsRewrite = false;
1322
+ this.setRenderedContentOffset(this._renderedContentOffset);
1323
+ }
1324
+ else {
1325
+ this._scrollStrategy.onRenderedOffsetChanged();
1326
+ }
1327
+ });
1389
1328
  }
1390
1329
  }
1391
- minValueChanged(value) {
1392
- if (isNaN(+value)) {
1393
- this.sliderMinValue = +this.options.floor;
1394
- }
1395
- else {
1396
- if (+value > this.sliderMaxValue) {
1397
- this.sliderMinValue = this.sliderMaxValue;
1398
- }
1399
- else if (+value < this.options.floor) {
1400
- this.sliderMinValue = this.options.floor;
1401
- }
1402
- else {
1403
- this.sliderMinValue = +value;
1404
- }
1405
- }
1330
+ /**
1331
+ * Scrolls to the given offset from the start of the viewport. Please note that this is not always
1332
+ * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
1333
+ * direction, this would be the equivalent of setting a fictional `scrollRight` property.
1334
+ * @param offset The offset to scroll to.
1335
+ * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
1336
+ */
1337
+ scrollToOffset(offset, behavior = "auto") {
1338
+ const options = { behavior, top: offset };
1339
+ this.scrollTo(options);
1340
+ }
1341
+ /**
1342
+ * Scrolls to the offset for the given index.
1343
+ * @param index The index of the element to scroll to.
1344
+ * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
1345
+ */
1346
+ scrollToIndex(index, behavior = "auto") {
1347
+ this._scrollStrategy.scrollToIndex(index, behavior);
1348
+ }
1349
+ /**
1350
+ * Gets the current scroll offset from the start of the viewport (in pixels).
1351
+ * @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
1352
+ * in horizontal mode.
1353
+ */
1354
+ // CHANGES@ANNALIB added override to functions
1355
+ measureScrollOffset(from) {
1356
+ return from
1357
+ ? super.measureScrollOffset(from)
1358
+ : super.measureScrollOffset("top");
1359
+ }
1360
+ /** Measure the combined size of all of the rendered items. */
1361
+ measureRenderedContentSize() {
1362
+ const contentEl = this._contentWrapper.nativeElement;
1363
+ return contentEl.offsetHeight;
1406
1364
  }
1407
- maxValueChanged(value) {
1408
- if (isNaN(+value)) {
1409
- this.sliderMaxValue = +this.options.ceil;
1410
- }
1411
- else {
1412
- if (+value < this.sliderMinValue) {
1413
- this.sliderMaxValue = this.sliderMinValue;
1414
- }
1415
- else if (+value > this.options.ceil) {
1416
- this.sliderMinValue = this.options.ceil;
1417
- }
1418
- else {
1419
- this.sliderMaxValue = +value;
1420
- }
1365
+ /**
1366
+ * Measure the total combined size of the given range. Throws if the range includes items that are
1367
+ * not rendered.
1368
+ */
1369
+ measureRangeSize(range) {
1370
+ if (!this._forOf) {
1371
+ return 0;
1421
1372
  }
1373
+ return this._forOf.measureRangeSize(range, this.orientation);
1422
1374
  }
1423
- sliderValueChange() {
1424
- this.sliderValue = { min: this.sliderMinValue, max: this.sliderMaxValue };
1375
+ /** Update the viewport dimensions and re-render. */
1376
+ checkViewportSize() {
1377
+ // TODO: Cleanup later when add logic for handling content resize
1378
+ this._measureViewportSize();
1379
+ this._scrollStrategy.onDataLengthChanged();
1425
1380
  }
1426
- cancelSliderFilter() {
1427
- this.sliderValue = null;
1428
- this.closeTooltip();
1381
+ /** Measure the viewport size. */
1382
+ _measureViewportSize() {
1383
+ const viewportEl = this.elementRef.nativeElement;
1384
+ this._viewportSize = viewportEl.clientHeight;
1429
1385
  }
1430
- allOptionClicked() {
1431
- if (this.allSelected == 0 || this.allSelected == 2) {
1432
- this.allSelected = 1;
1433
- this.disableCheckboxApply = false;
1386
+ /** Queue up change detection to run. */
1387
+ _markChangeDetectionNeeded(runAfter) {
1388
+ if (runAfter) {
1389
+ this._runAfterChangeDetection.push(runAfter);
1434
1390
  }
1435
- else {
1436
- this.allSelected = 0;
1437
- this.disableCheckboxApply = true;
1391
+ // Use a Promise to batch together calls to `_doChangeDetection`. This way if we set a bunch of
1392
+ // properties sequentially we only have to run `_doChangeDetection` once at the end.
1393
+ if (!this._isChangeDetectionPending) {
1394
+ this._isChangeDetectionPending = true;
1395
+ this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {
1396
+ this._doChangeDetection();
1397
+ }));
1438
1398
  }
1439
- this.annaFilterService.allOptionsClicked(this.allSelected);
1440
1399
  }
1441
- applyFilters() {
1442
- let isSame = isEqual(this.toolTipdata, this.tempTooltipData);
1443
- this.toolTipdata = cloneDeep(this.tempTooltipData);
1444
- this.annaFilterService.tooltipMap.set(this.annaFilterService.selectedRadio, this.tempTooltipData);
1445
- if (!isSame) {
1446
- this.annaFilterService.reOrderAppliedFiltersArray(false);
1447
- }
1448
- let tooltipSelectedDataArray = this.annaFilterService.tooltipMap.get(this.annaFilterService.selectedRadio).filter((x) => x.isSelected).map((x) => x.data);
1449
- if (tooltipSelectedDataArray.length == 0) {
1450
- tooltipSelectedDataArray = this.annaFilterService.tooltipMap.get(this.annaFilterService.selectedRadio).map((x) => x.data);
1400
+ /** Run change detection. */
1401
+ _doChangeDetection() {
1402
+ this._isChangeDetectionPending = false;
1403
+ // Apply the content transform. The transform can't be set via an Angular binding because
1404
+ // bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of
1405
+ // string literals, a variable that can only be 'X' or 'Y', and user input that is run through
1406
+ // the `Number` function first to coerce it to a numeric value.
1407
+ this._contentWrapper.nativeElement.style.top = this._renderedContentTransform;
1408
+ // Apply changes to Angular bindings. Note: We must call `markForCheck` to run change detection
1409
+ // from the root, since the repeated items are content projected in. Calling `detectChanges`
1410
+ // instead does not properly check the projected content.
1411
+ this.ngZone.run(() => this._changeDetectorRef.markForCheck());
1412
+ const runAfterChangeDetection = this._runAfterChangeDetection;
1413
+ this._runAfterChangeDetection = [];
1414
+ for (const fn of runAfterChangeDetection) {
1415
+ fn();
1451
1416
  }
1452
- this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, tooltipSelectedDataArray);
1453
- this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
1454
- this.checkIfSortingIsApplied();
1455
- this.filterAppliedToTable.emit(this.tableData);
1456
- // this.generateTableDataWrapper();
1457
- this.disableEnableEachColumnFilters();
1458
- this.closeTooltip();
1459
1417
  }
1460
- revert() {
1461
- this.tempTooltipData = cloneDeep(this.toolTipdata);
1462
- this.annaFilterService.tooltipMap.set(this.annaFilterService.selectedRadio, this.tempTooltipData);
1463
- this.toolTipdata = null;
1418
+ /** Calculates the `style.width` and `style.height` for the spacer element. */
1419
+ _calculateSpacerSize() {
1420
+ this._totalContentHeight = `${this._totalContentSize}px`;
1421
+ this._totalContentWidth = "";
1464
1422
  }
1465
- closeCheckboxFilter() {
1466
- if (this.toolTipdata) {
1467
- this.revert();
1423
+ }
1424
+ AnnaTableVirtualScrollViewportComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaTableVirtualScrollViewportComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: VIRTUAL_SCROLL_STRATEGY, optional: true }, { token: i1$1.Directionality, optional: true }, { token: i2$1.ScrollDispatcher }, { token: i2$1.ViewportRuler }, { token: i1.AnnaGenericTableService }], target: i0.ɵɵFactoryTarget.Component });
1425
+ AnnaTableVirtualScrollViewportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaTableVirtualScrollViewportComponent, selector: "anna-table-virtual-scroll-viewport", inputs: { orientation: "orientation" }, outputs: { scrolledIndexChange: "scrolledIndexChange" }, host: { properties: { "class.anna-table-virtual-scroll-orientation-horizontal": "orientation === \"horizontal\"", "class.anna-table-virtual-scroll-orientation-vertical": "orientation !== \"horizontal\"" }, classAttribute: "anna-table-virtual-scroll-viewport" }, providers: [
1426
+ {
1427
+ provide: CdkScrollable,
1428
+ useExisting: AnnaTableVirtualScrollViewportComponent
1429
+ },
1430
+ {
1431
+ provide: CdkVirtualScrollViewport,
1432
+ useExisting: AnnaTableVirtualScrollViewportComponent
1468
1433
  }
1469
- this.closeTooltip();
1434
+ ], viewQueries: [{ propertyName: "_contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!--\r\n Wrap the rendered content in an element that will be used to offset it based on the scroll\r\n position.\r\n-->\r\n<div #contentWrapper class=\"anna-table-virtual-scroll-content-wrapper\">\r\n\t<ng-content></ng-content>\r\n</div>\r\n<!--\r\n Spacer used to force the scrolling container to the correct size for the *total* number of items\r\n so that the scrollbar captures the size of the entire data set.\r\n-->\r\n<div class=\"app-table-virtual-scroll-spacer\" [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\">\r\n</div>", styles: ["anna-table-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;will-change:scroll-position;-webkit-overflow-scrolling:touch}.anna-table-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .anna-table-virtual-scroll-content-wrapper{right:0;left:auto}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper{min-height:100%}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper{min-width:100%}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.app-table-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .app-table-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaTableVirtualScrollViewportComponent, decorators: [{
1436
+ type: Component,
1437
+ args: [{ selector: "anna-table-virtual-scroll-viewport", host: {
1438
+ class: "anna-table-virtual-scroll-viewport",
1439
+ "[class.anna-table-virtual-scroll-orientation-horizontal]": 'orientation === "horizontal"',
1440
+ "[class.anna-table-virtual-scroll-orientation-vertical]": 'orientation !== "horizontal"'
1441
+ }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
1442
+ {
1443
+ provide: CdkScrollable,
1444
+ useExisting: AnnaTableVirtualScrollViewportComponent
1445
+ },
1446
+ {
1447
+ provide: CdkVirtualScrollViewport,
1448
+ useExisting: AnnaTableVirtualScrollViewportComponent
1449
+ }
1450
+ ], template: "<!--\r\n Wrap the rendered content in an element that will be used to offset it based on the scroll\r\n position.\r\n-->\r\n<div #contentWrapper class=\"anna-table-virtual-scroll-content-wrapper\">\r\n\t<ng-content></ng-content>\r\n</div>\r\n<!--\r\n Spacer used to force the scrolling container to the correct size for the *total* number of items\r\n so that the scrollbar captures the size of the entire data set.\r\n-->\r\n<div class=\"app-table-virtual-scroll-spacer\" [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\">\r\n</div>", styles: ["anna-table-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;will-change:scroll-position;-webkit-overflow-scrolling:touch}.anna-table-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .anna-table-virtual-scroll-content-wrapper{right:0;left:auto}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper{min-height:100%}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper{min-width:100%}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.app-table-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .app-table-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"] }]
1451
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
1452
+ type: Optional
1453
+ }, {
1454
+ type: Inject,
1455
+ args: [VIRTUAL_SCROLL_STRATEGY]
1456
+ }] }, { type: i1$1.Directionality, decorators: [{
1457
+ type: Optional
1458
+ }] }, { type: i2$1.ScrollDispatcher }, { type: i2$1.ViewportRuler }, { type: i1.AnnaGenericTableService }]; }, propDecorators: { orientation: [{
1459
+ type: Input
1460
+ }], scrolledIndexChange: [{
1461
+ type: Output
1462
+ }], _contentWrapper: [{
1463
+ type: ViewChild,
1464
+ args: ["contentWrapper", { static: true }]
1465
+ }] } });
1466
+
1467
+ /**
1468
+ * A custom scroll strategy that accepts a static row height, static header height,
1469
+ * and a buffer size. The strategy
1470
+ */
1471
+ class AnnaFixedRowSizeTableVirtualScrollStrategy {
1472
+ constructor(rowHeight, buffer, headerHeight) {
1473
+ this._scrolledIndexChange = new Subject();
1474
+ this.scrolledIndexChange = this._scrolledIndexChange.pipe(distinctUntilChanged());
1475
+ this.updateRowHeightAndBuffer(rowHeight, buffer, headerHeight);
1470
1476
  }
1471
- applySliderFilter() {
1472
- if (this.sliderValue) {
1473
- let selectedDataObj;
1474
- if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
1475
- selectedDataObj = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
1476
- }
1477
- else {
1478
- selectedDataObj = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
1479
- }
1480
- let isSame = isEqual(selectedDataObj, this.sliderValue);
1481
- if (!isSame) {
1482
- this.annaFilterService.sliderData = { min: this.options.floor, max: this.options.ceil };
1483
- this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, this.sliderValue);
1484
- this.annaFilterService.reOrderAppliedFiltersArray(false);
1485
- this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
1486
- this.checkIfSortingIsApplied();
1487
- this.filterAppliedToTable.emit(this.tableData);
1488
- // this.generateTableDataWrapper();
1489
- this.disableEnableEachColumnFilters();
1490
- }
1491
- }
1492
- this.sliderValue = null;
1493
- this.closeTooltip();
1477
+ /**
1478
+ * Attaches this scroll strategy to a viewport.
1479
+ * @param viewport The viewport to attach this strategy to.
1480
+ */
1481
+ attach(viewport) {
1482
+ this.viewport = viewport;
1483
+ this.updateTotalContentSize();
1484
+ this.updateRenderedRange();
1494
1485
  }
1495
- cancelInDateFilter() {
1496
- this.closeTooltip();
1486
+ /**
1487
+ * Detaches this scroll strategy from the currently attached viewport.
1488
+ */
1489
+ detach() {
1490
+ this._scrolledIndexChange.complete();
1491
+ this.viewport = null;
1497
1492
  }
1498
- applyDateFilter(selectedDate) {
1499
- let selectedDateObj;
1500
- if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
1501
- selectedDateObj = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
1502
- }
1503
- else {
1504
- selectedDateObj = cloneDeep(this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio));
1505
- }
1506
- let isStartDateSame = isEqual(this.annaDateTimeFormatService.convertNgbDateToMoment(selectedDate.fromDate), selectedDateObj.minSelectedDate);
1507
- let isEndDateSame = isEqual(this.annaDateTimeFormatService.convertNgbDateToMoment(selectedDate.toDate), selectedDateObj.maxSelectedDate);
1508
- if (!isStartDateSame || !isEndDateSame) {
1509
- selectedDateObj.minSelectedDate = moment(this.annaDateTimeFormatService.convertNgbDateToMoment(selectedDate.fromDate));
1510
- selectedDateObj.maxSelectedDate = moment(this.annaDateTimeFormatService.convertNgbDateToMoment(selectedDate.toDate));
1511
- this.annaFilterService.flightDateRange = {
1512
- minSelectedDate: moment(this.annaDateTimeFormatService.convertNgbDateToMoment(this.calendarMinEnabledDate)),
1513
- maxSelectedDate: moment(this.annaDateTimeFormatService.convertNgbDateToMoment(this.calendarMaxEnabledDate))
1514
- };
1515
- this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, selectedDateObj);
1516
- this.annaFilterService.reOrderAppliedFiltersArray(false);
1517
- this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
1518
- this.checkIfSortingIsApplied();
1519
- this.filterAppliedToTable.emit(this.tableData);
1520
- // this.generateTableDataWrapper();
1521
- this.disableEnableEachColumnFilters();
1522
- }
1523
- this.closeTooltip();
1493
+ onContentScrolled() {
1494
+ this.updateRenderedRange();
1524
1495
  }
1525
- applyWeekFilter(event) {
1496
+ onDataLengthChanged() {
1497
+ this.updateTotalContentSize();
1498
+ this.updateRenderedRange();
1526
1499
  }
1527
- incrementHour(arr) {
1528
- if (arr[0] == "") {
1529
- arr[0] = 1;
1530
- }
1531
- else if (parseInt(arr[0]) < 12) {
1532
- arr[0] = parseInt(arr[0]) + 1;
1533
- }
1534
- else {
1535
- arr[0] = 1;
1536
- }
1500
+ onContentRendered() {
1501
+ // This method is useful for virtual scroll strategies that measure the rendered
1502
+ // content to determine its height. This scroll strategy assumes that rows have
1503
+ // a static height, so there's no need to implement this method.
1537
1504
  }
1538
- decrementHour(arr) {
1539
- if (arr[0] == "") {
1540
- arr[0] = 12;
1541
- }
1542
- else if (parseInt(arr[0]) > 1) {
1543
- arr[0] = parseInt(arr[0]) - 1;
1544
- }
1545
- else {
1546
- arr[0] = 12;
1547
- }
1505
+ onRenderedOffsetChanged() {
1506
+ // Similar to onContentRendered, this method is useful for virtual scroll strategies
1507
+ // that need to track the offset as it changes. This scroll strategy is always able
1508
+ // to calculate the correct offset from other values, so there's no need to implement
1509
+ // this method.
1548
1510
  }
1549
- incrementMinute(arr) {
1550
- if (arr[1] == "" || parseInt(arr[1]) == 0) {
1551
- arr[1] = 30;
1552
- }
1553
- else {
1554
- arr[1] = "00";
1555
- }
1511
+ scrollToIndex(index, behavior) {
1512
+ this.viewport?.scrollToOffset(index * this.rowHeight, behavior);
1556
1513
  }
1557
- decrementMinute(arr) {
1558
- if (arr[1] == "" || parseInt(arr[1]) == 30) {
1559
- arr[1] = "00";
1560
- }
1561
- else {
1562
- arr[1] = 30;
1563
- }
1514
+ /**
1515
+ * Update the item size and buffer size.
1516
+ * @param rowHeight The height of a row in the virtually scrolling table.
1517
+ * @param buffer The number of rows to buffer outside the viewport.
1518
+ * @param headerHeight The total height of the table header, including all header rows.
1519
+ */
1520
+ updateRowHeightAndBuffer(rowHeight, buffer, headerHeight) {
1521
+ this.rowHeight = rowHeight;
1522
+ this.buffer = buffer;
1523
+ this.headerHeight = headerHeight;
1524
+ this.updateTotalContentSize();
1525
+ this.updateRenderedRange();
1564
1526
  }
1565
- changeStartTimeHour(increment) {
1566
- if (increment) {
1567
- this.incrementHour(this.selectedFromTime);
1568
- }
1569
- else {
1570
- this.decrementHour(this.selectedFromTime);
1527
+ updateRenderedRange() {
1528
+ if (!this.viewport) {
1529
+ return;
1571
1530
  }
1572
- this.disableTimeFilterApplyButton();
1531
+ const viewportSize = this.viewport.getViewportSize();
1532
+ const dataLength = this.viewport.getDataLength();
1533
+ const scrollOffset = this.viewport.measureScrollOffset();
1534
+ // the index of the first item that would be at least partially visible in the viewport
1535
+ let firstVisibleIndex = Math.floor((scrollOffset + this.headerHeight) / this.rowHeight);
1536
+ // if the buffer size is 10 but the first visible item is at, say, index 7
1537
+ // then the buffered items must be 7, because we don't have 10 items available to buffer.
1538
+ const bufferedItems = Math.min(AnnaFilterService.bufferSize, firstVisibleIndex);
1539
+ const itemsInViewport = Math.ceil(viewportSize / this.rowHeight);
1540
+ const itemsToRender = itemsInViewport + this.buffer;
1541
+ // Clamp the new range between 0 and dataLength
1542
+ const newStart = Math.max(0, firstVisibleIndex - bufferedItems);
1543
+ const newEnd = Math.min(dataLength, firstVisibleIndex + itemsToRender);
1544
+ const newRange = {
1545
+ start: newStart,
1546
+ end: newEnd
1547
+ };
1548
+ const newOffset = this.rowHeight * (firstVisibleIndex - bufferedItems);
1549
+ this.viewport.setRenderedContentOffset(newOffset);
1550
+ this.viewport.setRenderedRange(newRange);
1551
+ this._scrolledIndexChange.next(Math.floor(firstVisibleIndex));
1573
1552
  }
1574
- changeEndTimeHour(increment) {
1575
- if (increment) {
1576
- this.incrementHour(this.selectedToTime);
1577
- }
1578
- else {
1579
- this.decrementHour(this.selectedToTime);
1580
- }
1581
- this.disableTimeFilterApplyButton();
1553
+ updateTotalContentSize() {
1554
+ this.viewport?.setTotalContentSize(this.viewport.getDataLength() * this.rowHeight);
1582
1555
  }
1583
- changeEndTimeMinute(increment) {
1584
- if (increment) {
1585
- this.incrementMinute(this.selectedToTime);
1586
- }
1587
- else {
1588
- this.decrementMinute(this.selectedToTime);
1589
- }
1590
- this.disableTimeFilterApplyButton();
1556
+ }
1557
+ /**
1558
+ * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
1559
+ * `FixedSizeVirtualScrollStrategy` from the given directive.
1560
+ * @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
1561
+ * `FixedSizeVirtualScrollStrategy` from.
1562
+ */
1563
+ function fixedSizeVirtualScrollStrategyFactory(fixedSizeDir) {
1564
+ return fixedSizeDir.scrollStrategy;
1565
+ }
1566
+ class AnnaFixedRowSizeTableVirtualScrollStrategyDirective {
1567
+ constructor() {
1568
+ this._rowHeight = 30;
1569
+ this._headerRowHeight = 30;
1570
+ this._buffer = 20;
1571
+ this._headerRows = null;
1572
+ this.headerRowCount = 1;
1573
+ /** The scroll strategy used by this directive. */
1574
+ this.scrollStrategy = new AnnaFixedRowSizeTableVirtualScrollStrategy(this.rowHeight, this.buffer, this.headerRowHeight * this.headerRowCount);
1591
1575
  }
1592
- changeStartTimeMinute(increment) {
1593
- if (increment) {
1594
- this.incrementMinute(this.selectedFromTime);
1595
- }
1596
- else {
1597
- this.decrementMinute(this.selectedFromTime);
1598
- }
1599
- this.disableTimeFilterApplyButton();
1576
+ /** The height of rows in the table (in pixels). Defaults to 30. */
1577
+ set rowHeight(value) { this._rowHeight = coerceNumberProperty(value); }
1578
+ get rowHeight() { return this._rowHeight; }
1579
+ /**
1580
+ * The height of header rows in the table (in pixels). Defaults to 30.
1581
+ */
1582
+ set headerRowHeight(value) { this._headerRowHeight = coerceNumberProperty(value); }
1583
+ get headerRowHeight() { return this._headerRowHeight; }
1584
+ /**
1585
+ * The number of buffered rows rendered beyond the viewport.
1586
+ * If the number of buffered rows dips below this number, more rows will be rendered. Defaults to 20.
1587
+ */
1588
+ set buffer(value) {
1589
+ this._buffer = coerceNumberProperty(value);
1600
1590
  }
1601
- applyTimeFilters() {
1602
- let fromTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedFromTime[0] + ":" + this.selectedFromTime[1] + " " + this.selectedFromTime[2], true);
1603
- let fromTime24HrFormat = fromTime24HrFormatArr[0] + ":" + fromTime24HrFormatArr[1] + ":00";
1604
- let toTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedToTime[0] + ":" + this.selectedToTime[1] + " " + this.selectedToTime[2], true);
1605
- let toTime24HrFormat = toTime24HrFormatArr[0] + ":" + toTime24HrFormatArr[1] + ":00";
1606
- let previousSelectedData;
1607
- if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
1608
- previousSelectedData = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
1609
- }
1610
- else {
1611
- previousSelectedData = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
1591
+ get buffer() { return this._buffer; }
1592
+ set headerRows(value) { this._headerRows = coerceNumberProperty(value, undefined); }
1593
+ get headerRows() { return this._headerRows; }
1594
+ ngOnChanges(change) {
1595
+ if (this.headerRows != undefined || this.headerRowsQuery) {
1596
+ this.handleChange();
1612
1597
  }
1613
- let selectedData = {
1614
- fromTime: fromTime24HrFormat, toTime: toTime24HrFormat, includeMulti: this.annaFilterService.includeMultiTime,
1615
- includeZero: this.annaFilterService.includeZeroTime, includeTimeRange: this.annaFilterService.includeTimeRange
1616
- };
1617
- if (!isEqual(previousSelectedData, selectedData)) {
1618
- this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, selectedData);
1619
- this.annaFilterService.reOrderAppliedFiltersArray(false);
1620
- this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
1621
- this.checkIfSortingIsApplied();
1622
- this.filterAppliedToTable.emit(this.tableData);
1623
- // this.generateTableDataWrapper();
1624
- this.disableEnableEachColumnFilters();
1598
+ if (change['buffer']?.previousValue != change['buffer']?.currentValue) {
1599
+ AnnaFilterService.bufferSize = this.buffer;
1600
+ this.scrollStrategy = new AnnaFixedRowSizeTableVirtualScrollStrategy(this.rowHeight, this.buffer, this.headerRowHeight * this.headerRowCount);
1625
1601
  }
1626
- this.closeTooltip();
1627
1602
  }
1628
- closeTimeFilter() {
1629
- this.selectedFromTime = cloneDeep(this.clonedSelectedFromTime);
1630
- this.selectedToTime = cloneDeep(this.clonedSelectedToTime);
1631
- this.closeTooltip();
1603
+ ngAfterContentInit() {
1604
+ this.headerRowsQuery.changes.subscribe(() => {
1605
+ this.handleChange();
1606
+ });
1632
1607
  }
1633
- disableTimeFilterApplyButton() {
1634
- let timeFormat = "HH:mm:ss";
1635
- let startTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedFromTime[0] + ":" + this.selectedFromTime[1] + " " + this.selectedFromTime[2], true);
1636
- let startTime24HrFormat = startTime24HrFormatArr[0] + ":" + startTime24HrFormatArr[1] + ":00";
1637
- let endTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedToTime[0] + ":" + this.selectedToTime[1] + " " + this.selectedToTime[2], true);
1638
- let endTime24HrFormat = endTime24HrFormatArr[0] + ":" + endTime24HrFormatArr[1] + ":00";
1639
- this.disableTimeFilterApplyBtn = moment(startTime24HrFormat, timeFormat).isAfter(moment(endTime24HrFormat, timeFormat));
1640
- if (!this.multiTimeCheckboxChecked && !this.zeroTimeCheckboxChecked && !this.enterTimeCheckboxChecked) {
1641
- this.disableTimeFilterApplyBtn = true;
1608
+ handleChange() {
1609
+ this.scrollStrategy.updateRowHeightAndBuffer(this.rowHeight, this.buffer,
1610
+ // Use the explicit headerRows input value if set.
1611
+ // Otherwise, fall back to the QueryList length.
1612
+ this.headerRowHeight * (this._headerRows ?? this.headerRowsQuery.length));
1613
+ }
1614
+ }
1615
+ AnnaFixedRowSizeTableVirtualScrollStrategyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1616
+ AnnaFixedRowSizeTableVirtualScrollStrategyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, selector: "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]", inputs: { rowHeight: "rowHeight", headerRowHeight: "headerRowHeight", buffer: "buffer", headerRows: "headerRows" }, providers: [
1617
+ {
1618
+ provide: VIRTUAL_SCROLL_STRATEGY,
1619
+ useFactory: fixedSizeVirtualScrollStrategyFactory,
1620
+ deps: [forwardRef(() => AnnaFixedRowSizeTableVirtualScrollStrategyDirective)]
1642
1621
  }
1622
+ ], queries: [{ propertyName: "headerRowsQuery", predicate: MatHeaderRowDef }], usesOnChanges: true, ngImport: i0 });
1623
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, decorators: [{
1624
+ type: Directive,
1625
+ args: [{
1626
+ selector: "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]",
1627
+ providers: [
1628
+ {
1629
+ provide: VIRTUAL_SCROLL_STRATEGY,
1630
+ useFactory: fixedSizeVirtualScrollStrategyFactory,
1631
+ deps: [forwardRef(() => AnnaFixedRowSizeTableVirtualScrollStrategyDirective)]
1632
+ }
1633
+ ]
1634
+ }]
1635
+ }], propDecorators: { rowHeight: [{
1636
+ type: Input
1637
+ }], headerRowHeight: [{
1638
+ type: Input
1639
+ }], buffer: [{
1640
+ type: Input
1641
+ }], headerRows: [{
1642
+ type: Input
1643
+ }], headerRowsQuery: [{
1644
+ type: ContentChildren,
1645
+ args: [MatHeaderRowDef]
1646
+ }] } });
1647
+
1648
+ /**
1649
+ * Directive that wraps a given data source in a "virtual" data source that emits
1650
+ * the slice of the original data source that matches the range that should be rendered
1651
+ * in the containing virtual scroll viewport.
1652
+ */
1653
+ class AnnaVirtualTableDirective {
1654
+ constructor(elementRef, viewport, table, ngZone, _coalescedStyleScheduler) {
1655
+ this.viewport = viewport;
1656
+ this.table = table;
1657
+ this._coalescedStyleScheduler = _coalescedStyleScheduler;
1658
+ this.virtualizedDataStream = new Subject();
1659
+ this.dataSourceChanges = new Subject();
1660
+ /** The raw, unvirtualized data stream. Emits whenever the data in the current DataSource changes. */
1661
+ this.dataStream = this.dataSourceChanges
1662
+ .pipe(
1663
+ // Start off with null data source.
1664
+ startWith(null),
1665
+ // Bundle up the previous and current data sources so we can work with both.
1666
+ pairwise(),
1667
+ // Use `changeDataSource` to disconnect from the previous data source and connect to the
1668
+ // new one, passing back a stream of data changes which we run through `switchMap` to give
1669
+ // us a data stream that emits the latest data from whatever the current data source is.
1670
+ switchMap(([prev, cur]) => this.changeDataSource(prev, cur)),
1671
+ // Replay the last emitted data when someone subscribes.
1672
+ shareReplay(1));
1673
+ this.viewChange = new Subject();
1674
+ this.destroyed$ = new Subject();
1675
+ this.renderedRange = { start: 0, end: 0 };
1676
+ this.isNativeHtmlTable = false;
1677
+ table.dataSource = this.virtualizedDataStream;
1678
+ this.isNativeHtmlTable = elementRef.nativeElement.tagName === 'TABLE';
1679
+ this.dataStream.subscribe(data => {
1680
+ this.data = data;
1681
+ this.onRenderedDataChange();
1682
+ });
1683
+ viewport.renderedRangeStream.pipe(takeUntil(this.destroyed$)).subscribe((range) => {
1684
+ this.renderedRange = range;
1685
+ ngZone.run(() => this.viewChange.next(range));
1686
+ this.onRenderedDataChange();
1687
+ });
1688
+ viewport.attach(this);
1643
1689
  }
1644
- sortedData(event) {
1645
- if (event.type == "none") {
1646
- this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
1690
+ set dataSource(value) {
1691
+ this._dataSource = value;
1692
+ if (isDataSource(value)) {
1693
+ this.dataSourceChanges.next(value);
1647
1694
  }
1648
1695
  else {
1649
- this.tableData = event.data;
1650
- }
1651
- this.sortingAppliedToTable.emit(this.tableData);
1652
- // this.generateTableDataWrapper();
1653
- }
1654
- checkIfSortingIsApplied() {
1655
- let appliedkey;
1656
- let isAsc;
1657
- const arr = this.sortComponent.toArray();
1658
- let obj = this.annaSortService.checkIfSortingIsApplied(this.annaSortService.sortByAsc, true);
1659
- appliedkey = obj.key;
1660
- isAsc = obj.setValueTo;
1661
- if (!appliedkey) {
1662
- let obj = this.annaSortService.checkIfSortingIsApplied(this.annaSortService.sortByDesc, false);
1663
- appliedkey = obj.key;
1664
- isAsc = obj.setValueTo;
1665
- }
1666
- if (appliedkey) {
1667
- this.applySorting(arr, appliedkey, isAsc);
1696
+ this.dataSourceChanges.next(new ArrayDataSource(isObservable(value) ? value : Array.from(value || [])));
1668
1697
  }
1669
1698
  }
1670
- applySorting(sortComponentArr, appliedKey, isAsc) {
1671
- sortComponentArr.forEach((component) => {
1672
- if (component.sortBy === appliedKey) {
1673
- this.setSortComponentDataProperty(component);
1674
- isAsc ? component.sortByAscending() : component.sortByDescending();
1675
- }
1676
- });
1677
- }
1678
- setSortComponentDataProperty(sortComponent) {
1679
- sortComponent.data = this.tableData;
1680
- sortComponent.clonedData = cloneDeep(this.tableData);
1699
+ get dataSource() {
1700
+ return this._dataSource;
1681
1701
  }
1682
- disableEnableEachColumnFilters() {
1683
- this.tableHeaders.forEach(header => {
1684
- header.headerInfo.forEach(item => {
1685
- if (item.filter != "") {
1686
- let values = [];
1687
- item.disableFilter = true;
1688
- item.filterObjectKeys.forEach(key => {
1689
- if (key == "period") {
1690
- let uniqStartDate = uniq(this.tableData.map((u) => u["startDate"]));
1691
- let uniqEndDate = uniq(this.tableData.map((u) => u["endDate"]));
1692
- item.disableFilter = (uniqStartDate.length > 1 || uniqEndDate.length > 1) ? false : true;
1693
- }
1694
- else {
1695
- values = this.tableData.map((u) => u[key]);
1696
- if (uniq(values).filter(n => n != null).length > 1) {
1697
- item.disableFilter = false;
1698
- }
1699
- }
1700
- });
1701
- // if(uniq(values).length > 1){
1702
- // item.disableFilter = false;
1703
- // }else{
1704
- // item.disableFilter = true;
1705
- // }
1702
+ ngOnInit() {
1703
+ // This is just a proof of concept, but the AnnaTableVirtualScrollViewportComponent uses `position: absolute` and `top: #px` instead of `transform: translateY(#px)` to position the viewport.
1704
+ // This removes the need to account for the translation in the `top` of the sticky header rows.
1705
+ if (this.viewport instanceof AnnaTableVirtualScrollViewportComponent) {
1706
+ return;
1707
+ }
1708
+ this.viewport.scrolledIndexChange
1709
+ .pipe(map$1(() => this.viewport.getOffsetToRenderedContentStart()), takeUntil(this.destroyed$))
1710
+ .subscribe((offset) => {
1711
+ // We need to set the `style.top` property of the sticky header rows
1712
+ // to the negative value of the virtual scroll viewport's offset, so
1713
+ // make the offset negative.
1714
+ offset = -offset;
1715
+ const stickyStates = this.headerRowDefs.map(rowDef => rowDef.sticky);
1716
+ // This logic is exactly the same as what's in the StickyStyler (literally copy + paste).
1717
+ // The only difference is that the `stickyOffset` variable starts at the virtual scroll
1718
+ // viewport container's offset instead of starting at zero.
1719
+ const rows = this.table._getRenderedRows(this.table._headerRowOutlet);
1720
+ const stickyOffsets = [];
1721
+ const stickyCellHeights = [];
1722
+ const elementsToStick = [];
1723
+ for (let rowIndex = 0, stickyOffset = offset; rowIndex < rows.length; rowIndex++) {
1724
+ stickyOffsets[rowIndex] = stickyOffset;
1725
+ if (!stickyStates[rowIndex]) {
1726
+ continue;
1706
1727
  }
1707
- if (item.sort) {
1708
- if (uniq(this.tableData.map((u) => u[item.objectKey])).length > 1) {
1709
- item.disableSort = false;
1728
+ const row = rows[rowIndex];
1729
+ elementsToStick[rowIndex] = this.isNativeHtmlTable ? Array.from(row.children) : [row];
1730
+ const height = row.getBoundingClientRect().height;
1731
+ stickyOffset += height;
1732
+ stickyCellHeights[rowIndex] = height;
1733
+ }
1734
+ // Using the CoalescedStyleScheduler here is optional. It'll work without it,
1735
+ // and CoalescedStyleScheduler is not public (yet?), so feel free to remove it.
1736
+ this._coalescedStyleScheduler.schedule(() => {
1737
+ for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
1738
+ if (!stickyStates[rowIndex]) {
1739
+ continue;
1710
1740
  }
1711
- else {
1712
- item.disableSort = true;
1741
+ for (const element of elementsToStick[rowIndex]) {
1742
+ element.style.top = `${stickyOffsets[rowIndex]}px`;
1713
1743
  }
1714
1744
  }
1715
1745
  });
1716
1746
  });
1717
1747
  }
1718
- ngAfterViewInit() {
1719
- this.annaGenericTableService.virtualScrollSubject.subscribe((val) => {
1720
- this.isScrolledLeft = document.getElementsByClassName("anna-table-virtual-scroll-viewport")[0].scrollLeft > 0;
1721
- this.cdRef.detectChanges();
1722
- });
1723
- }
1724
- dataRowClicked(rowData) {
1725
- this.rowClicked.emit(rowData);
1726
- }
1727
- radioButtonClicked(data, action, isDisabled) {
1728
- if (!isDisabled) {
1729
- this.radioButtonSelected.emit({ data, action });
1730
- }
1748
+ ngOnDestroy() {
1749
+ this.destroyed$.next();
1750
+ this.dataSourceChanges.complete();
1751
+ this.virtualizedDataStream.complete();
1731
1752
  }
1732
- bindTheValueToSellerGroupTooltip(sellerGroupHierarchy, tooltip) {
1733
- if (this.hierarchyTooltip && this.hierarchyTooltip.open) {
1734
- this.hierarchyTooltip.close();
1753
+ /** React to scroll state changes in the viewport. */
1754
+ onRenderedDataChange() {
1755
+ if (!this.renderedRange) {
1756
+ return;
1735
1757
  }
1736
- this.sellerGroupHierarchy = sellerGroupHierarchy;
1737
- this.hierarchyTooltip = tooltip;
1738
- this.hierarchyTooltip.open();
1739
- }
1740
- iconClicked(rowData, iconClass) {
1741
- this.gtIconClicked.emit({ data: rowData, iconClass: iconClass });
1742
- }
1743
- svgIconClicked(rowData, key) {
1744
- this.gtSVGIconClicked.emit({ data: rowData, key: key });
1758
+ this.renderedItems = this.data.slice(this.renderedRange.start, this.renderedRange.end + 1);
1759
+ // delegate rendering to the table by emitting from the virtualizedDataStream
1760
+ this.virtualizedDataStream.next(this.renderedItems);
1745
1761
  }
1746
- textActionClicked(rowData, id) {
1747
- this.gtTextActionClicked.emit({ data: rowData, id });
1762
+ /** Swap out one data source for another. */
1763
+ changeDataSource(oldDataSource, newDs) {
1764
+ oldDataSource?.disconnect(this);
1765
+ return newDs ? newDs.connect(this) : of();
1748
1766
  }
1749
- viewDetailsClicked(rowData) {
1750
- this.gtViewDetailClicked.emit({ data: rowData });
1767
+ /**
1768
+ * This method is only used by the experimental AutoSizeVirtualScrollStrategy.
1769
+ * We're not using that strategy, but I've implemented it just to show how it oculd be done.
1770
+ * I'm not actually sure if this works.
1771
+ */
1772
+ measureRangeSize(range, orientation) {
1773
+ if (orientation === 'horizontal' || range.end < range.start) {
1774
+ // virtual scrolling columns are not supported by this directive
1775
+ return 0;
1776
+ }
1777
+ const renderedBodyRows = this.table._getRenderedRows(this.table._rowOutlet);
1778
+ const firstRow = renderedBodyRows[range.start];
1779
+ const lastRow = renderedBodyRows[range.end];
1780
+ if (!firstRow || !lastRow) {
1781
+ return 0;
1782
+ }
1783
+ // We need to include all header and footer rows in the sum, since they're always rendered
1784
+ const renderedHeaderRows = this.table._getRenderedRows(this.table._headerRowOutlet);
1785
+ const renderedFooterRows = this.table._getRenderedRows(this.table._footerRowOutlet);
1786
+ // TODO (performance): Can we just measure the offset of the first and last items and do some math to avoid having to measure each row individually?
1787
+ const headerHeight = renderedHeaderRows.reduce((sum, row) => {
1788
+ return sum += row.getBoundingClientRect().height;
1789
+ }, 0);
1790
+ const footerHeight = renderedFooterRows.reduce((sum, row) => {
1791
+ return sum += row.getBoundingClientRect().height;
1792
+ }, 0);
1793
+ const bodyHeight = lastRow.getBoundingClientRect().bottom - firstRow.getBoundingClientRect().top;
1794
+ return headerHeight + footerHeight + bodyHeight;
1751
1795
  }
1752
1796
  }
1753
- AnnaNonEditableGenericTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNonEditableGenericTableComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.AnnaSortService }, { token: i1.AnnaDateTimeFormatService }, { token: i1.AnnaFilterService }, { token: i1.AnnaGenericTableService }], target: i0.ɵɵFactoryTarget.Component });
1754
- AnnaNonEditableGenericTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaNonEditableGenericTableComponent, selector: "anna-core-non-editable-generic-table-lib", inputs: { showSkeletonLoading: "showSkeletonLoading", tableHeaders: "tableHeaders", tableData: "tableData", clonedTableData: "clonedTableData", numberOfSkeletonRows: "numberOfSkeletonRows", numberOfSkeletonColumns: "numberOfSkeletonColumns", gtGeneralConfig: "gtGeneralConfig", totalRowInfo: "totalRowInfo", gtDimension: "gtDimension", tableClass: "tableClass", maximumRowsWhichCanBeRenderedWithoutScroll: "maximumRowsWhichCanBeRenderedWithoutScroll" }, outputs: { 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" }, viewQueries: [{ propertyName: "sortComponent", predicate: AnnaSortComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"table-container\" [ngClass]=\"{ 'scroll-left-shadow-effect': isScrolledLeft }\">\r\n <anna-table-virtual-scroll-viewport\r\n [buffer]=\"gtGeneralConfig.bufferSize\"\r\n [rowHeight]=\"gtDimension.rowHeight\"\r\n [class]=\"gtGeneralConfig.tableContainerName\"\r\n [ngStyle]=\"{\r\n height:\r\n tableData.length < maximumRowsWhichCanBeRenderedWithoutScroll\r\n ? 'calc(' +\r\n ((gtDimension.rowHeight + rowBorderWidth) * tableData.length +\r\n (!tableData.length || !gtGeneralConfig.totalRow\r\n ? gtDimension.headerHeight\r\n : gtDimension.headerHeight + gtDimension.rowHeight + (2 * rowBorderWidth))) +\r\n 'px)'\r\n : gtDimension.tableHeight\r\n }\"\r\n >\r\n <table class=\"gt\" [ngClass]=\"tableClass\" mat-table [appVirtualDataSource]=\"tableData\">\r\n <tr\r\n class=\"header-row\"\r\n mat-header-row\r\n *matHeaderRowDef=\"tableColumns; sticky: true\"\r\n [style.height.px]=\"gtDimension.headerHeight\"\r\n ></tr>\r\n <tr\r\n class=\"total-row\"\r\n mat-header-row\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n *matHeaderRowDef=\"totalRowColumns; sticky: true\"\r\n [class.hidden]=\"\r\n showSkeletonLoading ||\r\n (!showSkeletonLoading && !tableData.length) ||\r\n (!showSkeletonLoading && !gtGeneralConfig.totalRow)\r\n \"\r\n ></tr>\r\n <tr\r\n [class]=\"rowData.gtClass\"\r\n mat-row\r\n *matRowDef=\"let rowData; columns: tableColumns\"\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n [style.background-color]=\"rowData.backgroundColor\"\r\n [style.border]=\"rowData.border\" (click)=\"dataRowClicked(rowData)\"\r\n ></tr>\r\n\r\n <!-- TOTAL ROW -->\r\n <ng-container [matColumnDef]=\"column.colName\" *ngFor=\"let column of totalRowInfo; trackBy: trackByFn\">\r\n <td mat-header-cell *matHeaderCellDef [attr.colspan]=\"column.colspan\" class=\"{{column.class}}\">\r\n <strong>{{ column.data }}</strong>\r\n <ng-container *ngIf=\"column.lowerData\">\r\n <br>\r\n <span>{{column.lowerData}}</span>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.tooltipMessage\">\r\n <i class=\"mi mdi-info-outline info-label\" container=\"body\"\r\n [ngbTooltip]=\"column.tooltipMessage\"\r\n tooltipClass=\"gt-total-row-tooltip\" placement=\"bottom\"></i>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- MAIN ROW -->\r\n <ng-container [matColumnDef]=\"columnDef.headerInfo[0].objectKey\" *ngFor=\"let columnDef of tableHeaders; trackBy: trackByFn\">\r\n <th nowrap mat-header-cell *matHeaderCellDef [style.width]=\"columnDef.width\">\r\n <div class=\"row mx-0\" *ngFor=\"let header of columnDef.headerInfo; let j = index;\"> \r\n <p\r\n *ngIf=\"header.typeOfHeaderData === 'STRING'\"\r\n [ngClass]=\"{ 'upper-label': j === 0, 'lower-label': j === 1 }\"\r\n >\r\n {{ header.name }}\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'impsInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"impsInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'ratingInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"ratingInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'rateInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"rateInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n </p>\r\n\r\n <ng-container *ngIf=\"header.typeOfHeaderData === 'CHECKBOX'\">\r\n <span\r\n *ngIf=\"gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': gtGeneralConfig.disableHeaderCheckbox }\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <div *ngIf=\"gtGeneralConfig.showAllColumnFilter\" class=\"sort-filter-container\">\r\n <ng-container *ngIf=\"header.sort\">\r\n <anna-core-sort-lib\r\n [sortBy]=\"header.sortObjectKey ? header.sortObjectKey : header.objectKey\"\r\n [data]=\"tableData\"\r\n [disableSort]=\"header.disableSort\"\r\n (sort)=\"sortedData($event)\"\r\n >\r\n </anna-core-sort-lib>\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'CHECKBOX'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n annaFilterService.appliedFiltersArray.length && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"filterTooltip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'SLIDER'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n annaFilterService.appliedFiltersArray.length && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"sliderToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t1=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t1, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'DATE'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"datePickerTooltip\"\r\n placement=\"left-top auto\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t2=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t2, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'WEEK'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"weekPickerToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t3=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t3, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'TIME'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"timeFilterToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t4=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t4, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === ''\"> <span id=\"no-filter-space\"></span><br /> </ng-container>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'lurViolationInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"lurViolationInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n\r\n </div>\r\n </div>\r\n </th>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'DRR'\">\r\n <ng-container *matCellDef=\"let ROW_DATA\">\r\n <ng-container *ngIf=\"showSkeletonLoading\">\r\n <td mat-cell>\r\n <ngx-skeleton-loader count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <ng-container\r\n *ngFor=\"let subline of columnDef.headerInfo; let sublineIndex = index; trackBy: trackByFn\"\r\n >\r\n <td\r\n mat-cell\r\n *ngIf=\"!ROW_DATA['hide' + subline.objectKey + 'Td']\"\r\n [attr.rowspan]=\"ROW_DATA[subline.objectKey + 'Rowspan']\"\r\n >\r\n <ng-container [ngSwitch]=\"subline.typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\"></i>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[subline.objectKey]\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[subline.objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'RADIO'\">\r\n <mat-radio-group\r\n *ngIf=\"ROW_DATA['RadioButtonConfig']\"\r\n [ngModel]=\"ROW_DATA[subline.objectKey]\"\r\n [disabled]=\"ROW_DATA['RadioButtonConfig'][0].isDisabled\"\r\n >\r\n <ng-container\r\n *ngFor=\"let radioButton of ROW_DATA['RadioButtonConfig']; let last = last\"\r\n >\r\n <mat-radio-button\r\n value=\"{{ radioButton.value }}\"\r\n class=\"{{ radioButton.class }}\"\r\n (click)=\"\r\n radioButtonClicked(\r\n ROW_DATA,\r\n radioButton.value,\r\n ROW_DATA['RadioButtonConfig'][0].isDisabled\r\n )\r\n \"\r\n >{{ radioButton.label }}</mat-radio-button\r\n ><br *ngIf=\"!last\" />\r\n </ng-container>\r\n </mat-radio-group>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n {{ ROW_DATA[subline.objectKey] }}\r\n\r\n <ng-container\r\n *ngIf=\"\r\n subline.objectKey == 'Status' && (ROW_DATA['Remarks'] !== null)\r\n \"\r\n >\r\n <i\r\n class=\"mi mdi-info-outline remarks-tooltip\"\r\n [ngbTooltip]=\"columnInfoTooltip\"\r\n placement=\"bottom\"\r\n container=\"body\"\r\n tooltipClass=\"remarks-info-tooltip\"\r\n #t=\"ngbTooltip\"\r\n ></i>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component != 'DRR'\">\r\n <td mat-cell *matCellDef=\"let ROW_DATA\" [style.background]=\"ROW_DATA.backgroundColor\">\r\n <ngx-skeleton-loader *ngIf=\"showSkeletonLoading\" count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <div *ngFor=\"let subline of columnDef.headerInfo; let subLineIndex = index; trackBy: trackByFn\">\r\n <ng-container [ngSwitch]=\"columnDef.headerInfo[subLineIndex].typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\" (click)=\"iconClicked(ROW_DATA,ROW_DATA.iconClass)\"></i>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'SVG_ICON'\">\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'ORDER_LISTING_INFLIGHT'\">\r\n <span\r\n *ngIf=\"ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\"\r\n class=\"cursor-not-allowed\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconActiveColor\"\r\n [width]=\"'15px'\"\r\n [height]=\"'15px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n <span\r\n *ngIf=\"ROW_DATA.orderStatus != 'LIVE' && !ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\"\r\n (click)=\"svgIconClicked(ROW_DATA,'payForPerformance')\"\r\n >\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconDisableColor\"\r\n [width]=\"'15px'\"\r\n [height]=\"'15px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n\r\n <anna-live-icon-template *ngIf=\"ROW_DATA.orderStatus == 'LIVE' && subline.objectKey == 'orderStatus' \"></anna-live-icon-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'ORDER_LISTING_COMPLETED'\">\r\n <span *ngIf=\"ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\" (click)=\"$event.stopPropagation()\">\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconActiveColor\"\r\n [width]=\"'20px'\"\r\n [height]=\"'20px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n </ng-container>\r\n <ng-container *ngIf=\"subline.objectKey == 'bizRuleStatus'\">\r\n <anna-rejected-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'REJECTED'\"></anna-rejected-icon-template>\r\n <anna-notify-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'NOTIFY'\"></anna-notify-icon-template>\r\n <anna-buyer-approval-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'AWAITING_APPROVAL'\"></anna-buyer-approval-icon-template>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'TEXT_ACTIONS'\">\r\n <button *ngFor=\"let text of ROW_DATA.textActions\" (click)=\"textActionClicked(ROW_DATA,text.id)\" [disabled]=\"text.isDisabled\" class=\"{{text.class}}\">{{text.name}}</button>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n false\r\n )\r\n \"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n true\r\n )\r\n \"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n <ng-container *ngIf=\"subline.objectKey != 'description'\">\r\n {{ ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey] }}\r\n <i\r\n *ngIf=\"subline.objectKey == 'inventoryCode' && ROW_DATA['isSellerGroup'] && gtGeneralConfig.component == 'RATING' \"\r\n class=\"mdi mdi-alert-circle-outline seller-tooltip\"\r\n [ngbTooltip]=\"sellerHierarchyTooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n triggers=\"manual\"\r\n (hidden)=\"closeTooltip()\"\r\n #info=\"ngbTooltip\"\r\n tooltipClass=\"hierarchy-tooltip\"\r\n (mouseenter)=\"bindTheValueToSellerGroupTooltip(ROW_DATA.sellerGroupHierarchy, info)\">\r\n </i>\r\n </ng-container>\r\n <ng-container *ngIf=\"subline.objectKey == 'description'\">\r\n <p *ngIf=\"ROW_DATA.descriptionMessage || ROW_DATA.descriptionEmailReferenceNum\">\r\n <ng-container *ngIf=\"ROW_DATA.descriptionMessage\">\r\n {{ ROW_DATA.descriptionMessage }}\r\n <br />\r\n </ng-container>\r\n <ng-container *ngIf=\"ROW_DATA.descriptionEmailReferenceNum\">\r\n Email Ref: {{ ROW_DATA.descriptionEmailReferenceNum }}\r\n <br />\r\n </ng-container>\r\n </p>\r\n <a\r\n href=\"{{ ROW_DATA.descriptionDetailsUrl }}\"\r\n target=\"_blank\"\r\n *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'PDF' || ROW_DATA.descriptionDetailsUrlType === 'EXCEL'\"\r\n >\r\n <button class=\"btn viewDetailsAndEmailBtn\">Download</button>\r\n </a>\r\n <ng-container *ngIf=\"ROW_DATA.activityname.toLowerCase() == 'order onboarded'\">\r\n <a *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'LINK'\" (click)=\"viewDetailsClicked(ROW_DATA)\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View details</button>\r\n </a>\r\n </ng-container>\r\n \r\n <a href=\"{{ ROW_DATA.descriptionEmailUrl }}\" target=\"_blank\" *ngIf=\"ROW_DATA.descriptionEmailUrl\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View email</button>\r\n </a>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container\r\n *ngIf=\"\r\n gtGeneralConfig.page === 'SpotDetails' &&\r\n columnDef.headerInfo[subLineIndex].objectKey === 'Status'\r\n \"\r\n >\r\n <img\r\n src=\"assets/images/Undo-Credit-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForCredit\"\r\n (click)=\"undoCreditedSpot(ROW_DATA)\"\r\n />\r\n <img\r\n src=\"assets/images/Undo-MG-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForMakeGood\"\r\n (click)=\"undoMgSpot(ROW_DATA)\"\r\n />\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </table>\r\n </anna-table-virtual-scroll-viewport>\r\n\r\n <anna-core-no-data-lib [width]=\"noDataWidth\" *ngIf=\"!showSkeletonLoading && tableData.length == 0\"> </anna-core-no-data-lib>\r\n</div>\r\n\r\n<!-- Checkbox template -->\r\n<ng-template #filterTooltip>\r\n <div class=\"radio-container\" *ngIf=\"showCheckboxFilterRadioButtons\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input\r\n type=\"radio\"\r\n id=\"{{ data.key }}\"\r\n [ngModel]=\"annaFilterService.selectedRadio\"\r\n name=\"toolTip\"\r\n value=\"{{ data.key }}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\"\r\n />\r\n <label for=\"{{ data.key }}\">{{ data.label }}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <p class=\"search-box\">\r\n <i class=\"mi mdi-search search-icon search-icon-position\"></i>\r\n <input\r\n type=\"text\"\r\n placeholder=\"Search\"\r\n class=\"search-input\"\r\n style=\"margin-left: 2px; border: none; padding: 0px\"\r\n [(ngModel)]=\"searchBar\"\r\n />\r\n </p>\r\n <div class=\"dropdown-data-container\">\r\n <ng-container *ngIf=\"showAll\">\r\n <p class=\"input\" (click)=\"allOptionClicked()\">\r\n <span *ngIf=\"allSelected == 1\" role=\"button\" class=\"mi mdi-check-box check-box\"></span>\r\n <span *ngIf=\"allSelected == 0\" role=\"button\" class=\"mi mdi-check-box-outline-blank check-box unchecked\"></span>\r\n <span *ngIf=\"allSelected == 2\" role=\"button\" class=\"mi mdi-indeterminate-check-box check-box\"></span>\r\n <span class=\"data\">All</span>\r\n </p>\r\n </ng-container>\r\n <ng-container *ngFor=\"let data of tempTooltipData | AnnafilterSearchedText: searchBar\">\r\n <p *ngIf=\"!data.isHidden\" class=\"input\" (click)=\"isCheckboxSelected(data)\">\r\n <span *ngIf=\"data.isSelected\" role=\"button\" class=\"mi mdi-check-box check-box\"></span>\r\n <span *ngIf=\"!data.isSelected\" role=\"button\" class=\"mi mdi-check-box-outline-blank check-box unchecked\"></span>\r\n <span class=\"data\" title=\"{{ data.data }}\">{{ data.data }}</span>\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeCheckboxFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableCheckboxApply }\"\r\n (click)=\"applyFilters()\"\r\n [disabled]=\"disableCheckboxApply\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Slider template -->\r\n<ng-template #sliderToolTip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component == 'DRRLISTING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input type=\"radio\" id=\"{{data.key}}\" [ngModel]=\"annaFilterService.selectedRadio\" name=\"toolTip\" value=\"{{data.key}}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\">\r\n <label for=\"{{data.key}}\">{{data.label}}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all align-center\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button>\r\n <section class=\"min-maxContainer\">\r\n <input\r\n type=\"number\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [ngModel]=\"sliderMinValue\"\r\n (ngModelChange)=\"minValueChanged($event)\"\r\n placeholder=\"Min\"\r\n />\r\n <span>To</span>\r\n <input\r\n type=\"number\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [ngModel]=\"sliderMaxValue\"\r\n (ngModelChange)=\"maxValueChanged($event)\"\r\n placeholder=\"Max\"\r\n />\r\n </section>\r\n <div class=\"sidebar-slider\">\r\n <ngx-slider\r\n [(value)]=\"sliderMinValue\"\r\n [(highValue)]=\"sliderMaxValue\"\r\n [options]=\"options\"\r\n (valueChange)=\"sliderValueChange()\"\r\n (highValueChange)=\"sliderValueChange()\"\r\n ></ngx-slider>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"cancelSliderFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableSliderApplyButton }\"\r\n (click)=\"applySliderFilter()\"\r\n [disabled]=\"disableSliderApplyButton\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Date Picker Template -->\r\n<ng-template #datePickerTooltip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component == 'DRRLISTING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input type=\"radio\" id=\"{{data.key}}\" [ngModel]=\"annaFilterService.selectedRadio\" name=\"toolTip\" value=\"{{data.key}}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\">\r\n <label for=\"{{data.key}}\">{{data.label}}</label>\r\n </div>\r\n </div>\r\n <div class=\"datepicker-container\">\r\n <button class=\"column-clear-all align-center\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button>\r\n <anna-core-calendar-filter-lib\r\n [minDate]=\"calendarMinEnabledDate\"\r\n [maxDate]=\"calendarMaxEnabledDate\"\r\n [selectedFromDate]=\"selectedMinDate\"\r\n [selectedToDate]=\"selectedMaxDate\"\r\n (apply)=\"applyDateFilter($event)\"\r\n (cancel)=\"cancelInDateFilter()\"\r\n >\r\n </anna-core-calendar-filter-lib>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Week Picker Template -->\r\n<ng-template #weekPickerToolTip>\r\n <div class=\"weekpicker-container\">\r\n <anna-core-week-calendar-filter-lib\r\n [week-calendar-config]=\"gtGeneralConfig.multiWeekPickerConfig\"\r\n (apply)=\"applyWeekFilter($event)\"\r\n [from-date]=\"calendarMinEnabledDate\"\r\n [to-date]=\"calendarMaxEnabledDate\"\r\n >\r\n </anna-core-week-calendar-filter-lib>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Time Filter Template -->\r\n<ng-template #timeFilterToolTip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component != 'RATING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input\r\n type=\"radio\"\r\n id=\"{{ data.key }}\"\r\n [ngModel]=\"annaFilterService.selectedRadio\"\r\n name=\"toolTip\"\r\n value=\"{{ data.key }}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\"\r\n *ngIf=\"radioButtons.length > 1\"\r\n />\r\n <label for=\"{{ data.key }}\">{{ data.label }}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <div\r\n class=\"time-filter-checkboxes\"\r\n *ngIf=\"gtGeneralConfig.component == 'SPOTDETAILS' || gtGeneralConfig.component == 'EXCLUDEINVENTORYPOPUP' || gtGeneralConfig.component == 'RATING'\"\r\n >\r\n <!-- Multi time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showMultiTimeCheckbox\">\r\n <span\r\n *ngIf=\"multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Multi</p>\r\n </div>\r\n <!-- Zero time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showZeroTimeCheckbox\">\r\n <span\r\n *ngIf=\"zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Zero</p>\r\n </div>\r\n <!-- Enter time range option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showEnterTimeCheckbox\">\r\n <span\r\n *ngIf=\"enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Enter time range</p>\r\n </div>\r\n </div>\r\n <div class=\"time-label-container\">\r\n <label>From</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedFromTime[0]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedFromTime[1]\" type=\"text\" disabled />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedFromTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n\r\n <div class=\"time-label-container\">\r\n <label>To</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedToTime[0]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedToTime[1]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedToTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeTimeFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableTimeFilterApplyBtn }\"\r\n (click)=\"applyTimeFilters()\"\r\n [disabled]=\"disableTimeFilterApplyBtn\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #columnInfoTooltip>\r\n <p style=\"padding: 0.5rem; color: black;white-space: nowrap;\">This preemption is rejected and not marked for credit.</p>\r\n</ng-template>\r\n\r\n<ng-template #ratingInfoTooltip>\r\n <p class=\"first-row\">Shows 'Booked Rating' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\">Shows 'Projected Rating' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #impsInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked IMPS' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected IMPS' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #rateInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked Rate' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected $ Value' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #sellerHierarchyTooltip>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length > 0\">\r\n <table class=\"seller-hierarchy-table\">\r\n <thead>\r\n <tr>\r\n <th>#</th>\r\n <th>Inventory Codes</th>\r\n <th>Program/Description</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let data of sellerGroupHierarchy; let tooltipIndex = index\">\r\n <td>{{ tooltipIndex + 1 }}</td>\r\n <td>\r\n <span>{{ data.inventoryCode }}</span>\r\n </td>\r\n <td>\r\n <span>{{ data.program }}</span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length == 0\">\r\n <span style=\"color: #000\">Seller group not available for this inventory code</span>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-template #lurViolationInfoTooltip>\r\n <p class =\"first-row\" >The values are for the entire week.</p>\r\n</ng-template>", styles: [".sort{display:inline-block;margin:0!important;position:relative;top:1px}.mdi-sort{padding-top:5px;padding-bottom:2.5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort.active{opacity:1}.mdi-sort-descending{padding-top:2.5px;padding-bottom:5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort-descending.active{opacity:1}.disable{cursor:not-allowed;pointer-events:none;opacity:.17}.sort-container{color:#000;padding:.25rem;text-align:left}.sort-container input{position:relative;top:.125rem;margin-right:.188rem}.sort-container input:hover,.sort-container label:hover{cursor:pointer}.sort-container div:last-of-type{line-height:.2}input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}input[type=radio]:checked{background-color:#268bff}input[type=radio]:focus{outline-offset:-10px}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:98%;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:85%;overflow:hidden}.check-box{font-size:22px;cursor:pointer}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider{margin:5px 0 2px!important;width:100%!important}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#268bff!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}::ng-deep .ngx-slider-pointer:after{display:none!important}::ng-deep .ngx-slider-pointer:focus{outline:none!important}::ng-deep .ngx-slider-bar{background:rgba(0,0,0,.26)!important;height:3px!important}::ng-deep .ngx-slider-bar.ngx-slider-selection{background:#42a5f5!important;height:3px!important}::ng-deep .sidebar-slider{margin-bottom:35px!important;margin-left:.3125rem;margin-right:.3125rem}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-high{right:0!important}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-ceil{right:0!important}::ng-deep .ngx-slider.animate{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bubble{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bar{background:rgba(0,0,0,.26)!important;height:3px!important}::ng-deep .ngx-slider-bar.ngx-slider-selection{background:#42a5f5!important;height:3px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;padding:.125rem .125rem .125rem .25rem;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center}.buttons-container button:last-of-type{background-color:#268bff;color:#fff}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:5px 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.14;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 0 .188rem .5rem}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}div.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}div.dropdown-data-container p.input{margin-left:0}div.dropdown-data-container p.input span.mi{padding-left:.4375rem}div.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}div.dropdown-data-container::-webkit-scrollbar{width:.188rem}div.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:.125rem .625rem 0}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;padding-top:.375rem;padding-left:1px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#cbcbcb;cursor:pointer;font-size:.5625rem}.time-container div.arrow-container i.downward{transform:rotate(180deg)}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.625rem;margin-left:.625rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:left;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a}.column-clear-all.align-center{text-align:center}span.mdi-filter.disabled,span.mdi-calendar-range.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}.upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a!important;margin-bottom:0!important}:host ::ng-deep .gt{table-layout:fixed;margin-bottom:0;width:100%}:host ::ng-deep .gt th,:host ::ng-deep .gt td{padding:2px 8px;line-height:normal}:host ::ng-deep .gt thead tr th .upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a;margin-bottom:0}:host ::ng-deep .gt thead tr th .lower-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-bottom:0}:host ::ng-deep .gt thead tr th{background-color:#ededed;position:sticky;top:0;border-top:none!important;border-bottom:none!important;outline:none!important;box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4}:host ::ng-deep .gt thead tr th br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt thead tr th div.row{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}:host ::ng-deep .gt thead tr th div.sort-filter-container{display:flex;flex-wrap:nowrap;align-items:center}:host ::ng-deep .gt thead tr th:first-of-type{box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4,inset 1px 0 #d4d4d4}:host ::ng-deep .gt tbody tr td:first-of-type{box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td:nth-of-type(n + 2){box-shadow:inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td .upper-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#000;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr td .lower-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#a7a7a7;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt tbody tr:nth-of-type(1) td{border-top:none!important}:host ::ng-deep .gt .custom-column-checkbox-checked,:host ::ng-deep .gt .custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}:host ::ng-deep .gt .custom-column-checkbox-checked{color:#268bff}:host ::ng-deep .gt .custom-column-checkbox-unchecked{color:#4a4a4a}anna-table-virtual-scroll-viewport::-webkit-scrollbar-track{border:1px solid rgba(0,0,0,.1)!important}anna-table-virtual-scroll-viewport::-webkit-scrollbar{width:5px;height:5px}anna-table-virtual-scroll-viewport::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0006!important;border:1px solid rgba(0,0,0,.2)}.table-container{overflow-x:auto;overflow-y:auto}.rowSelectCheckbox,#selectAllRowsCheckbox{cursor:pointer}.disable-checkbox{color:#dedede!important;pointer-events:none!important}.mdi-warning{color:#f3c639;font-size:16px;line-height:28px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{opacity:1}.redcolor-status{color:#c62a2a}.redcolor-cell-border{outline:1px solid #ff5353!important;outline-offset:-1px!important}#no-filter-space{width:.875rem}::ng-deep .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:1.875rem!important;width:2.625rem;padding:0 .625rem}input.numberInput{margin-right:-.8125rem;padding:0 0 0 .625rem;height:1.875rem}::ng-deep .mat-button-toggle-checked{background-color:#268bff!important;color:#fff!important}::ng-deep .mat-button-toggle-group-appearance-standard{border-radius:0}.hidden{display:none}.no-data-div{margin-top:2.5px}.no-data-div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:.3125rem 1.125rem;border-radius:.25rem}.column-values:nth-of-type(2){color:#a7a7a7!important}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}.time-filter-checkboxes>div>p{color:#151b1e}.radio-button-dimension,::ng-deep .markForCredit .mat-radio-inner-circle,::ng-deep .markForCredit .mat-radio-outer-circle,::ng-deep .mark-for-credit .mat-radio-inner-circle,::ng-deep .mark-for-credit .mat-radio-outer-circle,::ng-deep .markForMakeGood .mat-radio-inner-circle,::ng-deep .markForMakeGood .mat-radio-outer-circle,::ng-deep .noAction .mat-radio-inner-circle,::ng-deep .noAction .mat-radio-outer-circle,::ng-deep .credit .mat-radio-inner-circle,::ng-deep .credit .mat-radio-outer-circle,::ng-deep .approve .mat-radio-inner-circle,::ng-deep .approve .mat-radio-outer-circle,::ng-deep .reject .mat-radio-inner-circle,::ng-deep .reject .mat-radio-outer-circle,::ng-deep .resubmit .mat-radio-inner-circle,::ng-deep .resubmit .mat-radio-outer-circle,::ng-deep .rejectCreditRequest .mat-radio-inner-circle,::ng-deep .rejectCreditRequest .mat-radio-outer-circle{height:18px!important;width:18px!important}::ng-deep .margin-bottom-zero .mat-radio-label{margin-bottom:0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:red}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:red}::ng-deep .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:#00000061!important}::ng-deep .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-inner-circle{background-color:#00000061!important}::ng-deep tr.white-background-row{background:white}::ng-deep tr.gray-background-row{background:rgba(233,233,233,.5)}.remarks-tooltip,.seller-tooltip{font-size:.875rem;color:#268bff;position:relative;top:.1875rem;cursor:pointer}.seller-tooltip{float:right}::ng-deep .remarks-info-tooltip .tooltip-inner{max-width:19.25rem!important}.rating-icon,.lur-violation-icon{color:#268bff;cursor:pointer;margin-left:2px;position:relative;left:-2px}::ng-deep .rating-info-tooltip .tooltip-inner{max-width:800px!important}p.first-row{padding:.5rem .5rem 0;color:#000;white-space:nowrap;text-align:left}p.second-row{padding:2px .5rem .5rem;color:#000;white-space:nowrap;text-align:left}::ng-deep .gt-total-row-tooltip{opacity:1!important}::ng-deep .gt-total-row-tooltip .tooltip-inner{color:#000;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003;background-color:#fff;padding:4px!important;width:100%;border-radius:2px!important}::ng-deep .gt-total-row-tooltip .arrow:before{border-top-color:#fff!important}.info-label{margin-left:4px;color:#268bff;vertical-align:text-top}::ng-deep .hierarchy-tooltip .tooltip-inner{padding:4px!important}table.seller-hierarchy-table{table-layout:fixed;margin:.625rem .625rem .625rem .8125rem}table.seller-hierarchy-table tr th{font-family:Roboto;font-size:.75rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:#5e5e5e;white-space:nowrap;background:#ededed;box-shadow:none!important;border-top:1px solid #d4d4d4}table.seller-hierarchy-table tr th:first-of-type,table.seller-hierarchy-table tr td:first-of-type{border-left:1px solid #d4d4d4}table.seller-hierarchy-table tr th:last-of-type,table.seller-hierarchy-table tr td:last-of-type{border-right:1px solid #d4d4d4;width:7.875rem!important}table.seller-hierarchy-table tr th:nth-of-type(2){width:7.75rem!important}table.seller-hierarchy-table tr td{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#4a4a4a;box-shadow:none!important;border-top:1px solid #d4d4d4;border-bottom:1px solid #d4d4d4}table.seller-hierarchy-table tr td:nth-of-type(2),table.seller-hierarchy-table tr td:nth-of-type(3){padding-top:.25rem}table.seller-hierarchy-table tr td span{display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}\n"], components: [{ type: AnnaTableVirtualScrollViewportComponent, selector: "anna-table-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i3$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { type: i3$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { type: i3$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { type: AnnaSortComponent, selector: "anna-core-sort-lib", inputs: ["data", "sortBy", "disableSort", "placement"], outputs: ["sort"] }, { type: i5.NgxSkeletonLoaderComponent, selector: "ngx-skeleton-loader", inputs: ["appearance", "animation", "theme", "loadingText", "count", "ariaLabel"] }, { type: i6.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { type: i1.AnnaPayForPerformanceIconTemplateComponent, selector: "anna-pay-for-performance-icon-template", inputs: ["color", "width", "height"] }, { type: i1.AnnaLiveIconTemplateComponent, selector: "anna-live-icon-template" }, { type: i1.AnnaRejectedIconTemplateComponent, selector: "anna-rejected-icon-template" }, { type: i1.AnnaNotifyIconTemplateComponent, selector: "anna-notify-icon-template" }, { type: i1.AnnaBuyerApprovalIconTemplateComponent, selector: "anna-buyer-approval-icon-template" }, { type: i1.AnnaNoDataComponent, selector: "anna-core-no-data-lib", inputs: ["width", "marginTop"] }, { type: i7.ɵa, selector: "ngx-slider", inputs: ["value", "highValue", "options", "manualRefresh", "triggerFocus"], outputs: ["valueChange", "highValueChange", "userChangeStart", "userChange", "userChangeEnd"] }, { type: i8.AnnaCalendarFilterComponent, selector: "anna-core-calendar-filter-lib", inputs: ["maxDate", "minDate", "showDate", "selectedFromDate", "selectedToDate"], outputs: ["selectedDate", "apply", "cancel"] }, { type: i8.AnnaWeekCalendarComponent, selector: "anna-core-week-calendar-filter-lib", inputs: ["from-date", "to-date", "disabled-dates", "maxDate", "minDate", "week-calendar-config"], outputs: ["apply", "toggle-calendar"] }, { type: i9.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }], directives: [{ type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, selector: "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]", inputs: ["rowHeight", "headerRowHeight", "buffer", "headerRows"] }, { type: i10.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: AnnaVirtualTableDirective, selector: "[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]", inputs: ["appVirtualDataSource"] }, { type: i3$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { type: i3$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i3$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { type: i3$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i3$1.MatCellDef, selector: "[matCellDef]" }, { type: i3$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: i10.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i6.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i14.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i14.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i10.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i14.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i14.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i14.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i9.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }], pipes: { "AnnafilterSearchedText": i1.AnnaFilterSearchedTextPipe } });
1755
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNonEditableGenericTableComponent, decorators: [{
1756
- type: Component,
1757
- args: [{ selector: 'anna-core-non-editable-generic-table-lib', template: "<div class=\"table-container\" [ngClass]=\"{ 'scroll-left-shadow-effect': isScrolledLeft }\">\r\n <anna-table-virtual-scroll-viewport\r\n [buffer]=\"gtGeneralConfig.bufferSize\"\r\n [rowHeight]=\"gtDimension.rowHeight\"\r\n [class]=\"gtGeneralConfig.tableContainerName\"\r\n [ngStyle]=\"{\r\n height:\r\n tableData.length < maximumRowsWhichCanBeRenderedWithoutScroll\r\n ? 'calc(' +\r\n ((gtDimension.rowHeight + rowBorderWidth) * tableData.length +\r\n (!tableData.length || !gtGeneralConfig.totalRow\r\n ? gtDimension.headerHeight\r\n : gtDimension.headerHeight + gtDimension.rowHeight + (2 * rowBorderWidth))) +\r\n 'px)'\r\n : gtDimension.tableHeight\r\n }\"\r\n >\r\n <table class=\"gt\" [ngClass]=\"tableClass\" mat-table [appVirtualDataSource]=\"tableData\">\r\n <tr\r\n class=\"header-row\"\r\n mat-header-row\r\n *matHeaderRowDef=\"tableColumns; sticky: true\"\r\n [style.height.px]=\"gtDimension.headerHeight\"\r\n ></tr>\r\n <tr\r\n class=\"total-row\"\r\n mat-header-row\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n *matHeaderRowDef=\"totalRowColumns; sticky: true\"\r\n [class.hidden]=\"\r\n showSkeletonLoading ||\r\n (!showSkeletonLoading && !tableData.length) ||\r\n (!showSkeletonLoading && !gtGeneralConfig.totalRow)\r\n \"\r\n ></tr>\r\n <tr\r\n [class]=\"rowData.gtClass\"\r\n mat-row\r\n *matRowDef=\"let rowData; columns: tableColumns\"\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n [style.background-color]=\"rowData.backgroundColor\"\r\n [style.border]=\"rowData.border\" (click)=\"dataRowClicked(rowData)\"\r\n ></tr>\r\n\r\n <!-- TOTAL ROW -->\r\n <ng-container [matColumnDef]=\"column.colName\" *ngFor=\"let column of totalRowInfo; trackBy: trackByFn\">\r\n <td mat-header-cell *matHeaderCellDef [attr.colspan]=\"column.colspan\" class=\"{{column.class}}\">\r\n <strong>{{ column.data }}</strong>\r\n <ng-container *ngIf=\"column.lowerData\">\r\n <br>\r\n <span>{{column.lowerData}}</span>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.tooltipMessage\">\r\n <i class=\"mi mdi-info-outline info-label\" container=\"body\"\r\n [ngbTooltip]=\"column.tooltipMessage\"\r\n tooltipClass=\"gt-total-row-tooltip\" placement=\"bottom\"></i>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- MAIN ROW -->\r\n <ng-container [matColumnDef]=\"columnDef.headerInfo[0].objectKey\" *ngFor=\"let columnDef of tableHeaders; trackBy: trackByFn\">\r\n <th nowrap mat-header-cell *matHeaderCellDef [style.width]=\"columnDef.width\">\r\n <div class=\"row mx-0\" *ngFor=\"let header of columnDef.headerInfo; let j = index;\"> \r\n <p\r\n *ngIf=\"header.typeOfHeaderData === 'STRING'\"\r\n [ngClass]=\"{ 'upper-label': j === 0, 'lower-label': j === 1 }\"\r\n >\r\n {{ header.name }}\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'impsInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"impsInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'ratingInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"ratingInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'rateInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"rateInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n </p>\r\n\r\n <ng-container *ngIf=\"header.typeOfHeaderData === 'CHECKBOX'\">\r\n <span\r\n *ngIf=\"gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': gtGeneralConfig.disableHeaderCheckbox }\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <div *ngIf=\"gtGeneralConfig.showAllColumnFilter\" class=\"sort-filter-container\">\r\n <ng-container *ngIf=\"header.sort\">\r\n <anna-core-sort-lib\r\n [sortBy]=\"header.sortObjectKey ? header.sortObjectKey : header.objectKey\"\r\n [data]=\"tableData\"\r\n [disableSort]=\"header.disableSort\"\r\n (sort)=\"sortedData($event)\"\r\n >\r\n </anna-core-sort-lib>\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'CHECKBOX'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n annaFilterService.appliedFiltersArray.length && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"filterTooltip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'SLIDER'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n annaFilterService.appliedFiltersArray.length && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"sliderToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t1=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t1, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'DATE'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"datePickerTooltip\"\r\n placement=\"left-top auto\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t2=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t2, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'WEEK'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"weekPickerToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t3=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t3, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'TIME'\">\r\n <span\r\n class=\"mdi mdi-filter\"\r\n [ngClass]=\"{\r\n active:\r\n isTooltipActive(header.filterObjectKeys) && isTooltipActive(header.filterObjectKeys),\r\n disabled: header.disableFilter\r\n }\"\r\n [ngbTooltip]=\"timeFilterToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t4=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t4, header.filterObjectKeys)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === ''\"> <span id=\"no-filter-space\"></span><br /> </ng-container>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'lurViolationInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"lurViolationInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n\r\n </div>\r\n </div>\r\n </th>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'DRR'\">\r\n <ng-container *matCellDef=\"let ROW_DATA\">\r\n <ng-container *ngIf=\"showSkeletonLoading\">\r\n <td mat-cell>\r\n <ngx-skeleton-loader count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <ng-container\r\n *ngFor=\"let subline of columnDef.headerInfo; let sublineIndex = index; trackBy: trackByFn\"\r\n >\r\n <td\r\n mat-cell\r\n *ngIf=\"!ROW_DATA['hide' + subline.objectKey + 'Td']\"\r\n [attr.rowspan]=\"ROW_DATA[subline.objectKey + 'Rowspan']\"\r\n >\r\n <ng-container [ngSwitch]=\"subline.typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\"></i>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[subline.objectKey]\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[subline.objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'RADIO'\">\r\n <mat-radio-group\r\n *ngIf=\"ROW_DATA['RadioButtonConfig']\"\r\n [ngModel]=\"ROW_DATA[subline.objectKey]\"\r\n [disabled]=\"ROW_DATA['RadioButtonConfig'][0].isDisabled\"\r\n >\r\n <ng-container\r\n *ngFor=\"let radioButton of ROW_DATA['RadioButtonConfig']; let last = last\"\r\n >\r\n <mat-radio-button\r\n value=\"{{ radioButton.value }}\"\r\n class=\"{{ radioButton.class }}\"\r\n (click)=\"\r\n radioButtonClicked(\r\n ROW_DATA,\r\n radioButton.value,\r\n ROW_DATA['RadioButtonConfig'][0].isDisabled\r\n )\r\n \"\r\n >{{ radioButton.label }}</mat-radio-button\r\n ><br *ngIf=\"!last\" />\r\n </ng-container>\r\n </mat-radio-group>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n {{ ROW_DATA[subline.objectKey] }}\r\n\r\n <ng-container\r\n *ngIf=\"\r\n subline.objectKey == 'Status' && (ROW_DATA['Remarks'] !== null)\r\n \"\r\n >\r\n <i\r\n class=\"mi mdi-info-outline remarks-tooltip\"\r\n [ngbTooltip]=\"columnInfoTooltip\"\r\n placement=\"bottom\"\r\n container=\"body\"\r\n tooltipClass=\"remarks-info-tooltip\"\r\n #t=\"ngbTooltip\"\r\n ></i>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component != 'DRR'\">\r\n <td mat-cell *matCellDef=\"let ROW_DATA\" [style.background]=\"ROW_DATA.backgroundColor\">\r\n <ngx-skeleton-loader *ngIf=\"showSkeletonLoading\" count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <div *ngFor=\"let subline of columnDef.headerInfo; let subLineIndex = index; trackBy: trackByFn\">\r\n <ng-container [ngSwitch]=\"columnDef.headerInfo[subLineIndex].typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\" (click)=\"iconClicked(ROW_DATA,ROW_DATA.iconClass)\"></i>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'SVG_ICON'\">\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'ORDER_LISTING_INFLIGHT'\">\r\n <span\r\n *ngIf=\"ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\"\r\n class=\"cursor-not-allowed\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconActiveColor\"\r\n [width]=\"'15px'\"\r\n [height]=\"'15px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n <span\r\n *ngIf=\"ROW_DATA.orderStatus != 'LIVE' && !ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\"\r\n (click)=\"svgIconClicked(ROW_DATA,'payForPerformance')\"\r\n >\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconDisableColor\"\r\n [width]=\"'15px'\"\r\n [height]=\"'15px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n\r\n <anna-live-icon-template *ngIf=\"ROW_DATA.orderStatus == 'LIVE' && subline.objectKey == 'orderStatus' \"></anna-live-icon-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'ORDER_LISTING_COMPLETED'\">\r\n <span *ngIf=\"ROW_DATA.payForPerformance && subline.objectKey == 'payForPerformance'\" (click)=\"$event.stopPropagation()\">\r\n <anna-pay-for-performance-icon-template\r\n [color]=\"PfpIconActiveColor\"\r\n [width]=\"'20px'\"\r\n [height]=\"'20px'\"\r\n >\r\n </anna-pay-for-performance-icon-template>\r\n </span>\r\n </ng-container>\r\n <ng-container *ngIf=\"subline.objectKey == 'bizRuleStatus'\">\r\n <anna-rejected-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'REJECTED'\"></anna-rejected-icon-template>\r\n <anna-notify-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'NOTIFY'\"></anna-notify-icon-template>\r\n <anna-buyer-approval-icon-template *ngIf=\"ROW_DATA.bizRuleStatus == 'AWAITING_APPROVAL'\"></anna-buyer-approval-icon-template>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'TEXT_ACTIONS'\">\r\n <button *ngFor=\"let text of ROW_DATA.textActions\" (click)=\"textActionClicked(ROW_DATA,text.id)\" [disabled]=\"text.isDisabled\" class=\"{{text.class}}\">{{text.name}}</button>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n false\r\n )\r\n \"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n true\r\n )\r\n \"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n <ng-container *ngIf=\"subline.objectKey != 'description'\">\r\n {{ ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey] }}\r\n <i\r\n *ngIf=\"subline.objectKey == 'inventoryCode' && ROW_DATA['isSellerGroup'] && gtGeneralConfig.component == 'RATING' \"\r\n class=\"mdi mdi-alert-circle-outline seller-tooltip\"\r\n [ngbTooltip]=\"sellerHierarchyTooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n triggers=\"manual\"\r\n (hidden)=\"closeTooltip()\"\r\n #info=\"ngbTooltip\"\r\n tooltipClass=\"hierarchy-tooltip\"\r\n (mouseenter)=\"bindTheValueToSellerGroupTooltip(ROW_DATA.sellerGroupHierarchy, info)\">\r\n </i>\r\n </ng-container>\r\n <ng-container *ngIf=\"subline.objectKey == 'description'\">\r\n <p *ngIf=\"ROW_DATA.descriptionMessage || ROW_DATA.descriptionEmailReferenceNum\">\r\n <ng-container *ngIf=\"ROW_DATA.descriptionMessage\">\r\n {{ ROW_DATA.descriptionMessage }}\r\n <br />\r\n </ng-container>\r\n <ng-container *ngIf=\"ROW_DATA.descriptionEmailReferenceNum\">\r\n Email Ref: {{ ROW_DATA.descriptionEmailReferenceNum }}\r\n <br />\r\n </ng-container>\r\n </p>\r\n <a\r\n href=\"{{ ROW_DATA.descriptionDetailsUrl }}\"\r\n target=\"_blank\"\r\n *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'PDF' || ROW_DATA.descriptionDetailsUrlType === 'EXCEL'\"\r\n >\r\n <button class=\"btn viewDetailsAndEmailBtn\">Download</button>\r\n </a>\r\n <ng-container *ngIf=\"ROW_DATA.activityname.toLowerCase() == 'order onboarded'\">\r\n <a *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'LINK'\" (click)=\"viewDetailsClicked(ROW_DATA)\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View details</button>\r\n </a>\r\n </ng-container>\r\n \r\n <a href=\"{{ ROW_DATA.descriptionEmailUrl }}\" target=\"_blank\" *ngIf=\"ROW_DATA.descriptionEmailUrl\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View email</button>\r\n </a>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container\r\n *ngIf=\"\r\n gtGeneralConfig.page === 'SpotDetails' &&\r\n columnDef.headerInfo[subLineIndex].objectKey === 'Status'\r\n \"\r\n >\r\n <img\r\n src=\"assets/images/Undo-Credit-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForCredit\"\r\n (click)=\"undoCreditedSpot(ROW_DATA)\"\r\n />\r\n <img\r\n src=\"assets/images/Undo-MG-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForMakeGood\"\r\n (click)=\"undoMgSpot(ROW_DATA)\"\r\n />\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </table>\r\n </anna-table-virtual-scroll-viewport>\r\n\r\n <anna-core-no-data-lib [width]=\"noDataWidth\" *ngIf=\"!showSkeletonLoading && tableData.length == 0\"> </anna-core-no-data-lib>\r\n</div>\r\n\r\n<!-- Checkbox template -->\r\n<ng-template #filterTooltip>\r\n <div class=\"radio-container\" *ngIf=\"showCheckboxFilterRadioButtons\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input\r\n type=\"radio\"\r\n id=\"{{ data.key }}\"\r\n [ngModel]=\"annaFilterService.selectedRadio\"\r\n name=\"toolTip\"\r\n value=\"{{ data.key }}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\"\r\n />\r\n <label for=\"{{ data.key }}\">{{ data.label }}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <p class=\"search-box\">\r\n <i class=\"mi mdi-search search-icon search-icon-position\"></i>\r\n <input\r\n type=\"text\"\r\n placeholder=\"Search\"\r\n class=\"search-input\"\r\n style=\"margin-left: 2px; border: none; padding: 0px\"\r\n [(ngModel)]=\"searchBar\"\r\n />\r\n </p>\r\n <div class=\"dropdown-data-container\">\r\n <ng-container *ngIf=\"showAll\">\r\n <p class=\"input\" (click)=\"allOptionClicked()\">\r\n <span *ngIf=\"allSelected == 1\" role=\"button\" class=\"mi mdi-check-box check-box\"></span>\r\n <span *ngIf=\"allSelected == 0\" role=\"button\" class=\"mi mdi-check-box-outline-blank check-box unchecked\"></span>\r\n <span *ngIf=\"allSelected == 2\" role=\"button\" class=\"mi mdi-indeterminate-check-box check-box\"></span>\r\n <span class=\"data\">All</span>\r\n </p>\r\n </ng-container>\r\n <ng-container *ngFor=\"let data of tempTooltipData | AnnafilterSearchedText: searchBar\">\r\n <p *ngIf=\"!data.isHidden\" class=\"input\" (click)=\"isCheckboxSelected(data)\">\r\n <span *ngIf=\"data.isSelected\" role=\"button\" class=\"mi mdi-check-box check-box\"></span>\r\n <span *ngIf=\"!data.isSelected\" role=\"button\" class=\"mi mdi-check-box-outline-blank check-box unchecked\"></span>\r\n <span class=\"data\" title=\"{{ data.data }}\">{{ data.data }}</span>\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeCheckboxFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableCheckboxApply }\"\r\n (click)=\"applyFilters()\"\r\n [disabled]=\"disableCheckboxApply\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Slider template -->\r\n<ng-template #sliderToolTip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component == 'DRRLISTING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input type=\"radio\" id=\"{{data.key}}\" [ngModel]=\"annaFilterService.selectedRadio\" name=\"toolTip\" value=\"{{data.key}}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\">\r\n <label for=\"{{data.key}}\">{{data.label}}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all align-center\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button>\r\n <section class=\"min-maxContainer\">\r\n <input\r\n type=\"number\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [ngModel]=\"sliderMinValue\"\r\n (ngModelChange)=\"minValueChanged($event)\"\r\n placeholder=\"Min\"\r\n />\r\n <span>To</span>\r\n <input\r\n type=\"number\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [ngModel]=\"sliderMaxValue\"\r\n (ngModelChange)=\"maxValueChanged($event)\"\r\n placeholder=\"Max\"\r\n />\r\n </section>\r\n <div class=\"sidebar-slider\">\r\n <ngx-slider\r\n [(value)]=\"sliderMinValue\"\r\n [(highValue)]=\"sliderMaxValue\"\r\n [options]=\"options\"\r\n (valueChange)=\"sliderValueChange()\"\r\n (highValueChange)=\"sliderValueChange()\"\r\n ></ngx-slider>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"cancelSliderFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableSliderApplyButton }\"\r\n (click)=\"applySliderFilter()\"\r\n [disabled]=\"disableSliderApplyButton\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Date Picker Template -->\r\n<ng-template #datePickerTooltip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component == 'DRRLISTING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input type=\"radio\" id=\"{{data.key}}\" [ngModel]=\"annaFilterService.selectedRadio\" name=\"toolTip\" value=\"{{data.key}}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\" *ngIf=\"radioButtons.length > 1\">\r\n <label for=\"{{data.key}}\">{{data.label}}</label>\r\n </div>\r\n </div>\r\n <div class=\"datepicker-container\">\r\n <button class=\"column-clear-all align-center\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button>\r\n <anna-core-calendar-filter-lib\r\n [minDate]=\"calendarMinEnabledDate\"\r\n [maxDate]=\"calendarMaxEnabledDate\"\r\n [selectedFromDate]=\"selectedMinDate\"\r\n [selectedToDate]=\"selectedMaxDate\"\r\n (apply)=\"applyDateFilter($event)\"\r\n (cancel)=\"cancelInDateFilter()\"\r\n >\r\n </anna-core-calendar-filter-lib>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Week Picker Template -->\r\n<ng-template #weekPickerToolTip>\r\n <div class=\"weekpicker-container\">\r\n <anna-core-week-calendar-filter-lib\r\n [week-calendar-config]=\"gtGeneralConfig.multiWeekPickerConfig\"\r\n (apply)=\"applyWeekFilter($event)\"\r\n [from-date]=\"calendarMinEnabledDate\"\r\n [to-date]=\"calendarMaxEnabledDate\"\r\n >\r\n </anna-core-week-calendar-filter-lib>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Time Filter Template -->\r\n<ng-template #timeFilterToolTip>\r\n <div class=\"radio-container\" *ngIf=\"gtGeneralConfig.component != 'RATING'\">\r\n <div *ngFor=\"let data of radioButtons\">\r\n <input\r\n type=\"radio\"\r\n id=\"{{ data.key }}\"\r\n [ngModel]=\"annaFilterService.selectedRadio\"\r\n name=\"toolTip\"\r\n value=\"{{ data.key }}\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data.key)\"\r\n *ngIf=\"radioButtons.length > 1\"\r\n />\r\n <label for=\"{{ data.key }}\">{{ data.label }}</label>\r\n </div>\r\n </div>\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <div\r\n class=\"time-filter-checkboxes\"\r\n *ngIf=\"gtGeneralConfig.component == 'SPOTDETAILS' || gtGeneralConfig.component == 'EXCLUDEINVENTORYPOPUP' || gtGeneralConfig.component == 'RATING'\"\r\n >\r\n <!-- Multi time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showMultiTimeCheckbox\">\r\n <span\r\n *ngIf=\"multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Multi</p>\r\n </div>\r\n <!-- Zero time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showZeroTimeCheckbox\">\r\n <span\r\n *ngIf=\"zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Zero</p>\r\n </div>\r\n <!-- Enter time range option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showEnterTimeCheckbox\">\r\n <span\r\n *ngIf=\"enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Enter time range</p>\r\n </div>\r\n </div>\r\n <div class=\"time-label-container\">\r\n <label>From</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedFromTime[0]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedFromTime[1]\" type=\"text\" disabled />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedFromTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n\r\n <div class=\"time-label-container\">\r\n <label>To</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedToTime[0]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedToTime[1]\" disabled type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedToTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeTimeFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableTimeFilterApplyBtn }\"\r\n (click)=\"applyTimeFilters()\"\r\n [disabled]=\"disableTimeFilterApplyBtn\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #columnInfoTooltip>\r\n <p style=\"padding: 0.5rem; color: black;white-space: nowrap;\">This preemption is rejected and not marked for credit.</p>\r\n</ng-template>\r\n\r\n<ng-template #ratingInfoTooltip>\r\n <p class=\"first-row\">Shows 'Booked Rating' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\">Shows 'Projected Rating' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #impsInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked IMPS' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected IMPS' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #rateInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked Rate' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected $ Value' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #sellerHierarchyTooltip>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length > 0\">\r\n <table class=\"seller-hierarchy-table\">\r\n <thead>\r\n <tr>\r\n <th>#</th>\r\n <th>Inventory Codes</th>\r\n <th>Program/Description</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let data of sellerGroupHierarchy; let tooltipIndex = index\">\r\n <td>{{ tooltipIndex + 1 }}</td>\r\n <td>\r\n <span>{{ data.inventoryCode }}</span>\r\n </td>\r\n <td>\r\n <span>{{ data.program }}</span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length == 0\">\r\n <span style=\"color: #000\">Seller group not available for this inventory code</span>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-template #lurViolationInfoTooltip>\r\n <p class =\"first-row\" >The values are for the entire week.</p>\r\n</ng-template>", styles: [".sort{display:inline-block;margin:0!important;position:relative;top:1px}.mdi-sort{padding-top:5px;padding-bottom:2.5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort.active{opacity:1}.mdi-sort-descending{padding-top:2.5px;padding-bottom:5px;line-height:0;font-size:1rem;cursor:pointer;color:#000;opacity:.24}.mdi-sort-descending.active{opacity:1}.disable{cursor:not-allowed;pointer-events:none;opacity:.17}.sort-container{color:#000;padding:.25rem;text-align:left}.sort-container input{position:relative;top:.125rem;margin-right:.188rem}.sort-container input:hover,.sort-container label:hover{cursor:pointer}.sort-container div:last-of-type{line-height:.2}input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}input[type=radio]:checked{background-color:#268bff}input[type=radio]:focus{outline-offset:-10px}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:98%;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:85%;overflow:hidden}.check-box{font-size:22px;cursor:pointer}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider{margin:5px 0 2px!important;width:100%!important}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#268bff!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}::ng-deep .ngx-slider-pointer:after{display:none!important}::ng-deep .ngx-slider-pointer:focus{outline:none!important}::ng-deep .ngx-slider-bar{background:rgba(0,0,0,.26)!important;height:3px!important}::ng-deep .ngx-slider-bar.ngx-slider-selection{background:#42a5f5!important;height:3px!important}::ng-deep .sidebar-slider{margin-bottom:35px!important;margin-left:.3125rem;margin-right:.3125rem}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-high{right:0!important}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-ceil{right:0!important}::ng-deep .ngx-slider.animate{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bubble{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bar{background:rgba(0,0,0,.26)!important;height:3px!important}::ng-deep .ngx-slider-bar.ngx-slider-selection{background:#42a5f5!important;height:3px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;padding:.125rem .125rem .125rem .25rem;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center}.buttons-container button:last-of-type{background-color:#268bff;color:#fff}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:5px 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.14;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 0 .188rem .5rem}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}div.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}div.dropdown-data-container p.input{margin-left:0}div.dropdown-data-container p.input span.mi{padding-left:.4375rem}div.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}div.dropdown-data-container::-webkit-scrollbar{width:.188rem}div.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:.125rem .625rem 0}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;padding-top:.375rem;padding-left:1px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#cbcbcb;cursor:pointer;font-size:.5625rem}.time-container div.arrow-container i.downward{transform:rotate(180deg)}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.625rem;margin-left:.625rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:left;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a}.column-clear-all.align-center{text-align:center}span.mdi-filter.disabled,span.mdi-calendar-range.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}.upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a!important;margin-bottom:0!important}:host ::ng-deep .gt{table-layout:fixed;margin-bottom:0;width:100%}:host ::ng-deep .gt th,:host ::ng-deep .gt td{padding:2px 8px;line-height:normal}:host ::ng-deep .gt thead tr th .upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a;margin-bottom:0}:host ::ng-deep .gt thead tr th .lower-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-bottom:0}:host ::ng-deep .gt thead tr th{background-color:#ededed;position:sticky;top:0;border-top:none!important;border-bottom:none!important;outline:none!important;box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4}:host ::ng-deep .gt thead tr th br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt thead tr th div.row{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}:host ::ng-deep .gt thead tr th div.sort-filter-container{display:flex;flex-wrap:nowrap;align-items:center}:host ::ng-deep .gt thead tr th:first-of-type{box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4,inset 1px 0 #d4d4d4}:host ::ng-deep .gt tbody tr td:first-of-type{box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td:nth-of-type(n + 2){box-shadow:inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td .upper-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#000;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr td .lower-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#a7a7a7;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt tbody tr:nth-of-type(1) td{border-top:none!important}:host ::ng-deep .gt .custom-column-checkbox-checked,:host ::ng-deep .gt .custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}:host ::ng-deep .gt .custom-column-checkbox-checked{color:#268bff}:host ::ng-deep .gt .custom-column-checkbox-unchecked{color:#4a4a4a}anna-table-virtual-scroll-viewport::-webkit-scrollbar-track{border:1px solid rgba(0,0,0,.1)!important}anna-table-virtual-scroll-viewport::-webkit-scrollbar{width:5px;height:5px}anna-table-virtual-scroll-viewport::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0006!important;border:1px solid rgba(0,0,0,.2)}.table-container{overflow-x:auto;overflow-y:auto}.rowSelectCheckbox,#selectAllRowsCheckbox{cursor:pointer}.disable-checkbox{color:#dedede!important;pointer-events:none!important}.mdi-warning{color:#f3c639;font-size:16px;line-height:28px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{opacity:1}.redcolor-status{color:#c62a2a}.redcolor-cell-border{outline:1px solid #ff5353!important;outline-offset:-1px!important}#no-filter-space{width:.875rem}::ng-deep .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:1.875rem!important;width:2.625rem;padding:0 .625rem}input.numberInput{margin-right:-.8125rem;padding:0 0 0 .625rem;height:1.875rem}::ng-deep .mat-button-toggle-checked{background-color:#268bff!important;color:#fff!important}::ng-deep .mat-button-toggle-group-appearance-standard{border-radius:0}.hidden{display:none}.no-data-div{margin-top:2.5px}.no-data-div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:.3125rem 1.125rem;border-radius:.25rem}.column-values:nth-of-type(2){color:#a7a7a7!important}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}.time-filter-checkboxes>div>p{color:#151b1e}.radio-button-dimension,::ng-deep .markForCredit .mat-radio-inner-circle,::ng-deep .markForCredit .mat-radio-outer-circle,::ng-deep .mark-for-credit .mat-radio-inner-circle,::ng-deep .mark-for-credit .mat-radio-outer-circle,::ng-deep .markForMakeGood .mat-radio-inner-circle,::ng-deep .markForMakeGood .mat-radio-outer-circle,::ng-deep .noAction .mat-radio-inner-circle,::ng-deep .noAction .mat-radio-outer-circle,::ng-deep .credit .mat-radio-inner-circle,::ng-deep .credit .mat-radio-outer-circle,::ng-deep .approve .mat-radio-inner-circle,::ng-deep .approve .mat-radio-outer-circle,::ng-deep .reject .mat-radio-inner-circle,::ng-deep .reject .mat-radio-outer-circle,::ng-deep .resubmit .mat-radio-inner-circle,::ng-deep .resubmit .mat-radio-outer-circle,::ng-deep .rejectCreditRequest .mat-radio-inner-circle,::ng-deep .rejectCreditRequest .mat-radio-outer-circle{height:18px!important;width:18px!important}::ng-deep .margin-bottom-zero .mat-radio-label{margin-bottom:0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:red}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:red}::ng-deep .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:#00000061!important}::ng-deep .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-inner-circle{background-color:#00000061!important}::ng-deep tr.white-background-row{background:white}::ng-deep tr.gray-background-row{background:rgba(233,233,233,.5)}.remarks-tooltip,.seller-tooltip{font-size:.875rem;color:#268bff;position:relative;top:.1875rem;cursor:pointer}.seller-tooltip{float:right}::ng-deep .remarks-info-tooltip .tooltip-inner{max-width:19.25rem!important}.rating-icon,.lur-violation-icon{color:#268bff;cursor:pointer;margin-left:2px;position:relative;left:-2px}::ng-deep .rating-info-tooltip .tooltip-inner{max-width:800px!important}p.first-row{padding:.5rem .5rem 0;color:#000;white-space:nowrap;text-align:left}p.second-row{padding:2px .5rem .5rem;color:#000;white-space:nowrap;text-align:left}::ng-deep .gt-total-row-tooltip{opacity:1!important}::ng-deep .gt-total-row-tooltip .tooltip-inner{color:#000;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003;background-color:#fff;padding:4px!important;width:100%;border-radius:2px!important}::ng-deep .gt-total-row-tooltip .arrow:before{border-top-color:#fff!important}.info-label{margin-left:4px;color:#268bff;vertical-align:text-top}::ng-deep .hierarchy-tooltip .tooltip-inner{padding:4px!important}table.seller-hierarchy-table{table-layout:fixed;margin:.625rem .625rem .625rem .8125rem}table.seller-hierarchy-table tr th{font-family:Roboto;font-size:.75rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:#5e5e5e;white-space:nowrap;background:#ededed;box-shadow:none!important;border-top:1px solid #d4d4d4}table.seller-hierarchy-table tr th:first-of-type,table.seller-hierarchy-table tr td:first-of-type{border-left:1px solid #d4d4d4}table.seller-hierarchy-table tr th:last-of-type,table.seller-hierarchy-table tr td:last-of-type{border-right:1px solid #d4d4d4;width:7.875rem!important}table.seller-hierarchy-table tr th:nth-of-type(2){width:7.75rem!important}table.seller-hierarchy-table tr td{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#4a4a4a;box-shadow:none!important;border-top:1px solid #d4d4d4;border-bottom:1px solid #d4d4d4}table.seller-hierarchy-table tr td:nth-of-type(2),table.seller-hierarchy-table tr td:nth-of-type(3){padding-top:.25rem}table.seller-hierarchy-table tr td span{display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}\n"] }]
1758
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.AnnaSortService }, { type: i1.AnnaDateTimeFormatService }, { type: i1.AnnaFilterService }, { type: i1.AnnaGenericTableService }]; }, propDecorators: { showSkeletonLoading: [{
1759
- type: Input
1760
- }], tableHeaders: [{
1761
- type: Input
1762
- }], tableData: [{
1763
- type: Input
1764
- }], clonedTableData: [{
1765
- type: Input
1766
- }], numberOfSkeletonRows: [{
1767
- type: Input
1768
- }], numberOfSkeletonColumns: [{
1769
- type: Input
1770
- }], gtGeneralConfig: [{
1771
- type: Input
1772
- }], totalRowInfo: [{
1773
- type: Input
1774
- }], gtDimension: [{
1775
- type: Input
1776
- }], tableClass: [{
1777
- type: Input
1778
- }], maximumRowsWhichCanBeRenderedWithoutScroll: [{
1779
- type: Input
1780
- }], toggleCheckbox: [{
1781
- type: Output
1782
- }], toggleRowCheckbox: [{
1783
- type: Output
1784
- }], toggleHeaderCheckbox: [{
1785
- type: Output
1786
- }], undoIconClicked: [{
1787
- type: Output
1788
- }], filterAppliedToTable: [{
1789
- type: Output
1790
- }], sortingAppliedToTable: [{
1791
- type: Output
1792
- }], rowClicked: [{
1793
- type: Output
1794
- }], radioButtonSelected: [{
1795
- type: Output
1796
- }], columnFilterOpened: [{
1797
- type: Output
1798
- }], columnFilterClosed: [{
1799
- type: Output
1800
- }], gtIconClicked: [{
1801
- type: Output
1802
- }], gtSVGIconClicked: [{
1803
- type: Output
1804
- }], gtTextActionClicked: [{
1805
- type: Output
1806
- }], gtViewDetailClicked: [{
1807
- type: Output
1808
- }], sortComponent: [{
1809
- type: ViewChildren,
1810
- args: [AnnaSortComponent]
1797
+ AnnaVirtualTableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaVirtualTableDirective, deps: [{ token: i0.ElementRef }, { token: i2$1.CdkVirtualScrollViewport }, { token: i2$2.CdkTable }, { token: i0.NgZone }, { token: _COALESCED_STYLE_SCHEDULER }], target: i0.ɵɵFactoryTarget.Directive });
1798
+ AnnaVirtualTableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: AnnaVirtualTableDirective, selector: "[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]", inputs: { dataSource: ["appVirtualDataSource", "dataSource"] }, providers: [{ provide: STICKY_POSITIONING_LISTENER, useExisting: AnnaVirtualTableDirective }], queries: [{ propertyName: "headerRowDefs", predicate: CdkHeaderRowDef }], ngImport: i0 });
1799
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaVirtualTableDirective, decorators: [{
1800
+ type: Directive,
1801
+ args: [{
1802
+ selector: '[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]',
1803
+ providers: [{ provide: STICKY_POSITIONING_LISTENER, useExisting: AnnaVirtualTableDirective }]
1804
+ }]
1805
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2$1.CdkVirtualScrollViewport }, { type: i2$2.CdkTable }, { type: i0.NgZone }, { type: i2$2._CoalescedStyleScheduler, decorators: [{
1806
+ type: Inject,
1807
+ args: [_COALESCED_STYLE_SCHEDULER]
1808
+ }] }]; }, propDecorators: { dataSource: [{
1809
+ type: Input,
1810
+ args: ['appVirtualDataSource']
1811
+ }], headerRowDefs: [{
1812
+ type: ContentChildren,
1813
+ args: [CdkHeaderRowDef]
1811
1814
  }] } });
1812
1815
 
1813
1816
  // Angular import statements