@annalib/anna-core 20.0.28 → 20.0.30

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.
@@ -3691,8 +3691,8 @@ class AnnaNonEditableGenericTableComponent {
3691
3691
  this.tooltipRadioTextMap.set("postedUnitsWithRatingValue", "Posted Units With Rating");
3692
3692
  this.tooltipRadioTextMap.set("bookedUnitsWithImpressionValue", "Booked Units With IMPS");
3693
3693
  this.tooltipRadioTextMap.set("postedUnitsWithImpressionValue", "Posted Units With IMPS");
3694
- this.tooltipRadioTextMap.set("bookedRatings", "Booked Ratings");
3695
- this.tooltipRadioTextMap.set("postedRatings", "POSTED Ratings");
3694
+ this.tooltipRadioTextMap.set("bookedRatings", "Booked Rating");
3695
+ this.tooltipRadioTextMap.set("postedRatings", "POSTED Rating");
3696
3696
  this.tooltipRadioTextMap.set("PostedRating", "Posted RTG");
3697
3697
  this.tooltipRadioTextMap.set("bookedImpressions", "Booked IMPS");
3698
3698
  this.tooltipRadioTextMap.set("postedImpressions", "Posted IMPS");
@@ -5381,6 +5381,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
5381
5381
  }]
5382
5382
  }], ctorParameters: function () { return []; } });
5383
5383
 
5384
+ class AnnaConvertArrayToCommaSeperatedValue {
5385
+ constructor() {
5386
+ this.converter = memoize(this.replace, (...args) => this.replace(args[0], args[1], args[2]));
5387
+ }
5388
+ transform(value, textKeyName, selectedKeyName) {
5389
+ if (value == undefined || value == null) {
5390
+ return '-';
5391
+ }
5392
+ return this.converter(value, textKeyName, selectedKeyName);
5393
+ }
5394
+ replace(value, textKeyName, selectedKeyName) {
5395
+ let stringToDisplay = '';
5396
+ let anyValueSelected = false;
5397
+ value.forEach((val) => {
5398
+ if (selectedKeyName && val[selectedKeyName]) {
5399
+ stringToDisplay = stringToDisplay + val[textKeyName] + ', ';
5400
+ anyValueSelected = true;
5401
+ }
5402
+ });
5403
+ if (!anyValueSelected)
5404
+ return '-';
5405
+ // remove last 2 characters i.e. comma
5406
+ stringToDisplay = stringToDisplay.slice(0, -2);
5407
+ return stringToDisplay;
5408
+ }
5409
+ }
5410
+ AnnaConvertArrayToCommaSeperatedValue.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnaConvertArrayToCommaSeperatedValue, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
5411
+ AnnaConvertArrayToCommaSeperatedValue.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AnnaConvertArrayToCommaSeperatedValue, name: "annaConvertArrayToCSV" });
5412
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnaConvertArrayToCommaSeperatedValue, decorators: [{
5413
+ type: Pipe,
5414
+ args: [{
5415
+ name: "annaConvertArrayToCSV",
5416
+ }]
5417
+ }] });
5418
+
5384
5419
  class FixedRowsPopupTableDirective {
5385
5420
  constructor(el, renderer) {
5386
5421
  this.el = el;
@@ -5453,6 +5488,7 @@ AnnaCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
5453
5488
  AnnaDeletedOrderIconTemplateComponent,
5454
5489
  AnnaColumnSliderFilterComponent,
5455
5490
  AnnaDateFormatterPipe,
5491
+ AnnaConvertArrayToCommaSeperatedValue,
5456
5492
  FixedRowsPopupTableDirective], imports: [CommonModule,
5457
5493
  NgbModule,
5458
5494
  FormsModule,
@@ -5488,6 +5524,7 @@ AnnaCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
5488
5524
  AnnaDeletedOrderIconTemplateComponent,
5489
5525
  AnnaColumnSliderFilterComponent,
5490
5526
  AnnaDateFormatterPipe,
5527
+ AnnaConvertArrayToCommaSeperatedValue,
5491
5528
  FixedRowsPopupTableDirective] });
5492
5529
  AnnaCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnaCoreModule, imports: [CommonModule,
5493
5530
  NgbModule,
@@ -5537,6 +5574,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
5537
5574
  AnnaDeletedOrderIconTemplateComponent,
5538
5575
  AnnaColumnSliderFilterComponent,
5539
5576
  AnnaDateFormatterPipe,
5577
+ AnnaConvertArrayToCommaSeperatedValue,
5540
5578
  FixedRowsPopupTableDirective
5541
5579
  ],
5542
5580
  imports: [
@@ -5586,6 +5624,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
5586
5624
  AnnaDeletedOrderIconTemplateComponent,
5587
5625
  AnnaColumnSliderFilterComponent,
5588
5626
  AnnaDateFormatterPipe,
5627
+ AnnaConvertArrayToCommaSeperatedValue,
5589
5628
  FixedRowsPopupTableDirective
5590
5629
  ]
5591
5630
  }]
@@ -5767,5 +5806,5 @@ OrderSources.WOZ = "WOZ";
5767
5806
  * Generated bundle index. Do not edit.
5768
5807
  */
5769
5808
 
5770
- export { AllSelectedStatus, AnnaBuyerApprovalIconTemplateComponent, AnnaCalendarFilterComponent, AnnaColumnCheckboxFilterComponent, AnnaColumnDateRangeFilterComponent, AnnaColumnSliderFilterComponent, AnnaColumnTimeFilterComponent, AnnaConvertZeroOrNullOrUndefinedPipe, AnnaCoreModule, AnnaDateFormatterPipe, AnnaDateTimeFormatService, AnnaDeletedOrderIconTemplateComponent, AnnaFilterSearchedTextPipe, AnnaFilterService, AnnaFixedRowSizeTableVirtualScrollStrategy, AnnaFixedRowSizeTableVirtualScrollStrategyDirective, AnnaGlobalConfigService, AnnaGtHelperService, AnnaIconColumnComponent, AnnaLiveIconTemplateComponent, AnnaNoDataComponent, AnnaNonEditableGenericTableComponent, AnnaNotifyIconTemplateComponent, AnnaNumberFormatService, AnnaPayForPerformanceIconTemplateComponent, AnnaPersistingFilterService, AnnaRejectedIconTemplateComponent, AnnaReplaceCharPipe, AnnaSortComponent, AnnaSortService, AnnaTableVirtualScrollViewportComponent, AnnaTypeofDataPipe, AnnaVirtualTableDirective, AnnaWeekCalendarComponent, ClickableItem, Constants, Days, DigitOnlyDirective, ErrorCodes, FixedRowsPopupTableDirective, OrderSources, SortTypeEnum, TooltipModel, fixedSizeVirtualScrollStrategyFactory, radioButtonModel, showEllipsisTextOnHoverDirective, tooltipModelForColumnLevelFiltering };
5809
+ export { AllSelectedStatus, AnnaBuyerApprovalIconTemplateComponent, AnnaCalendarFilterComponent, AnnaColumnCheckboxFilterComponent, AnnaColumnDateRangeFilterComponent, AnnaColumnSliderFilterComponent, AnnaColumnTimeFilterComponent, AnnaConvertArrayToCommaSeperatedValue, AnnaConvertZeroOrNullOrUndefinedPipe, AnnaCoreModule, AnnaDateFormatterPipe, AnnaDateTimeFormatService, AnnaDeletedOrderIconTemplateComponent, AnnaFilterSearchedTextPipe, AnnaFilterService, AnnaFixedRowSizeTableVirtualScrollStrategy, AnnaFixedRowSizeTableVirtualScrollStrategyDirective, AnnaGlobalConfigService, AnnaGtHelperService, AnnaIconColumnComponent, AnnaLiveIconTemplateComponent, AnnaNoDataComponent, AnnaNonEditableGenericTableComponent, AnnaNotifyIconTemplateComponent, AnnaNumberFormatService, AnnaPayForPerformanceIconTemplateComponent, AnnaPersistingFilterService, AnnaRejectedIconTemplateComponent, AnnaReplaceCharPipe, AnnaSortComponent, AnnaSortService, AnnaTableVirtualScrollViewportComponent, AnnaTypeofDataPipe, AnnaVirtualTableDirective, AnnaWeekCalendarComponent, ClickableItem, Constants, Days, DigitOnlyDirective, ErrorCodes, FixedRowsPopupTableDirective, OrderSources, SortTypeEnum, TooltipModel, fixedSizeVirtualScrollStrategyFactory, radioButtonModel, showEllipsisTextOnHoverDirective, tooltipModelForColumnLevelFiltering };
5771
5810
  //# sourceMappingURL=annalib-anna-core.mjs.map