@annalib/anna-core 4.2.27 → 4.2.29

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.
@@ -75,7 +75,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
75
75
 
76
76
  class AnnaNoDataComponent {
77
77
  constructor() {
78
- this.width = "46%";
78
+ this.width = "48%";
79
79
  this.marginTop = "1.25rem";
80
80
  }
81
81
  ngOnInit() {
@@ -83,10 +83,10 @@ class AnnaNoDataComponent {
83
83
  }
84
84
  }
85
85
  AnnaNoDataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNoDataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
86
- AnnaNoDataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaNoDataComponent, selector: "anna-core-no-data-lib", inputs: { width: "width", marginTop: "marginTop" }, ngImport: i0, template: "<div [style.width]=\"width\" [style.marginTop]=\"marginTop\" class=\"no-data\">\r\n <label>{{ message }}</label>\r\n</div>\r\n", styles: ["div{right:0;position:absolute;width:46%;margin:20px;z-index:400}div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:5px 18px;border-radius:4px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
86
+ AnnaNoDataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaNoDataComponent, selector: "anna-core-no-data-lib", inputs: { width: "width", marginTop: "marginTop" }, ngImport: i0, template: "<div [style.marginRight]=\"width\" [style.marginTop]=\"marginTop\" class=\"no-data\">\r\n <label>{{ message }}</label>\r\n</div>\r\n", styles: ["div{right:0;position:absolute;margin:20px;z-index:400;transform:translate(50%)}div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:5px 18px;border-radius:4px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
87
87
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNoDataComponent, decorators: [{
88
88
  type: Component,
89
- args: [{ selector: "anna-core-no-data-lib", changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [style.width]=\"width\" [style.marginTop]=\"marginTop\" class=\"no-data\">\r\n <label>{{ message }}</label>\r\n</div>\r\n", styles: ["div{right:0;position:absolute;width:46%;margin:20px;z-index:400}div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:5px 18px;border-radius:4px}\n"] }]
89
+ args: [{ selector: "anna-core-no-data-lib", changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [style.marginRight]=\"width\" [style.marginTop]=\"marginTop\" class=\"no-data\">\r\n <label>{{ message }}</label>\r\n</div>\r\n", styles: ["div{right:0;position:absolute;margin:20px;z-index:400;transform:translate(50%)}div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:5px 18px;border-radius:4px}\n"] }]
90
90
  }], ctorParameters: function () { return []; }, propDecorators: { width: [{
91
91
  type: Input
92
92
  }], marginTop: [{
@@ -1257,6 +1257,15 @@ class AnnaFilterService {
1257
1257
  "udDeficitValue",
1258
1258
  "bookedValue",
1259
1259
  "bookedSpots",
1260
+ "userChanges",
1261
+ "UDGrp",
1262
+ "UDImps",
1263
+ "ODGrp",
1264
+ "ODImps",
1265
+ "udImpsPercent",
1266
+ "udGrpPercent",
1267
+ "odImpsPercent",
1268
+ "odGrpPercent",
1260
1269
  "userADUs",
1261
1270
  "buyerChanges",
1262
1271
  "userChanges",
@@ -1737,7 +1746,7 @@ class AnnaNonEditableGenericTableComponent {
1737
1746
  this.gtTextActionClicked = new EventEmitter();
1738
1747
  this.gtViewDetailClicked = new EventEmitter();
1739
1748
  this.downloadSpotDetails = new EventEmitter();
1740
- this.noDataWidth = "55%";
1749
+ this.noDataWidth = "50%";
1741
1750
  this.disableClearAllBtn = true;
1742
1751
  this.disableColumnClearAllBtn = true;
1743
1752
  this.allSelected = 0;
@@ -1896,6 +1905,14 @@ class AnnaNonEditableGenericTableComponent {
1896
1905
  this.tooltipRadioTextMap.set("orderCategory", "Category");
1897
1906
  this.tooltipRadioTextMap.set("cashOrTrade", "C/T");
1898
1907
  this.tooltipRadioTextMap.set("revisionStartDate", "Revision Start Date");
1908
+ this.tooltipRadioTextMap.set("ODImps", "OD IMPS");
1909
+ this.tooltipRadioTextMap.set("UDImps", "UD IMPS");
1910
+ this.tooltipRadioTextMap.set("ODGrp", "OD GRP");
1911
+ this.tooltipRadioTextMap.set("UDGrp", "UD GRP");
1912
+ this.tooltipRadioTextMap.set("udImpsPercent", "UD IMPS %");
1913
+ this.tooltipRadioTextMap.set("udGrpPercent", "UD GRP %");
1914
+ this.tooltipRadioTextMap.set("odImpsPercent", "OD IMPS %");
1915
+ this.tooltipRadioTextMap.set("odGrpPercent", "OD GRP %");
1899
1916
  }
1900
1917
  generateTableDataWrapper() {
1901
1918
  this.showSkeletonLoading = true;
@@ -4299,6 +4316,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
4299
4316
  }]
4300
4317
  }] });
4301
4318
 
4319
+ class AnnaNumberFormatService {
4320
+ static GetRoundedValueWithUnits(inputValue, digitsToRoundDecimalPoint = 2) {
4321
+ let [value, unit] = AnnaNumberFormatService.GetValueInUnits(Math.abs(inputValue));
4322
+ value = +((+value).toFixed(digitsToRoundDecimalPoint));
4323
+ if (inputValue < 0) {
4324
+ value = value * -1;
4325
+ }
4326
+ return value.toString() + unit;
4327
+ // return (Math.Round(value, digitsToRoundDecimalPoint, MidpointRounding.AwayFromZero) + unit);
4328
+ }
4329
+ static GetValueInUnits(inputValue) {
4330
+ let unit = "";
4331
+ let thousand = 1000;
4332
+ let million = 1000000;
4333
+ let billion = 1000000000;
4334
+ if (inputValue >= thousand && inputValue < million) {
4335
+ inputValue = inputValue / thousand;
4336
+ unit = "K";
4337
+ }
4338
+ else if (inputValue >= million && inputValue < billion) {
4339
+ inputValue = inputValue / million;
4340
+ unit = "M";
4341
+ }
4342
+ else if (inputValue >= billion) {
4343
+ inputValue = inputValue / billion;
4344
+ unit = "B";
4345
+ }
4346
+ return [inputValue, unit];
4347
+ }
4348
+ }
4349
+ AnnaNumberFormatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4350
+ AnnaNumberFormatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, providedIn: "root" });
4351
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, decorators: [{
4352
+ type: Injectable,
4353
+ args: [{
4354
+ providedIn: "root",
4355
+ }]
4356
+ }] });
4357
+
4302
4358
  ;
4303
4359
 
4304
4360
  class Constants {
@@ -4343,5 +4399,5 @@ var Days;
4343
4399
  * Generated bundle index. Do not edit.
4344
4400
  */
4345
4401
 
4346
- export { AllSelectedStatus, AnnaBuyerApprovalIconTemplateComponent, AnnaCalendarFilterComponent, AnnaConvertZeroOrNullOrUndefinedPipe, AnnaCoreModule, AnnaDateTimeFormatService, AnnaFilterSearchedTextPipe, AnnaFilterService, AnnaFixedRowSizeTableVirtualScrollStrategy, AnnaFixedRowSizeTableVirtualScrollStrategyDirective, AnnaGenericTableService, AnnaGlobalConfigService, AnnaIconColumnComponent, AnnaLiveIconTemplateComponent, AnnaNoDataComponent, AnnaNonEditableGenericTableComponent, AnnaNotifyIconTemplateComponent, AnnaPayForPerformanceIconTemplateComponent, AnnaRejectedIconTemplateComponent, AnnaReplaceCharPipe, AnnaSortComponent, AnnaSortService, AnnaTableVirtualScrollViewportComponent, AnnaTypeofDataPipe, AnnaVirtualTableDirective, AnnaWeekCalendarComponent, Constants, Days, ErrorCodes, TooltipModel, fixedSizeVirtualScrollStrategyFactory, radioButtonModel, showEllipsisTextOnHoverDirective, tooltipModelForColumnLevelFiltering };
4402
+ export { AllSelectedStatus, AnnaBuyerApprovalIconTemplateComponent, AnnaCalendarFilterComponent, AnnaConvertZeroOrNullOrUndefinedPipe, AnnaCoreModule, AnnaDateTimeFormatService, AnnaFilterSearchedTextPipe, AnnaFilterService, AnnaFixedRowSizeTableVirtualScrollStrategy, AnnaFixedRowSizeTableVirtualScrollStrategyDirective, AnnaGenericTableService, AnnaGlobalConfigService, AnnaIconColumnComponent, AnnaLiveIconTemplateComponent, AnnaNoDataComponent, AnnaNonEditableGenericTableComponent, AnnaNotifyIconTemplateComponent, AnnaNumberFormatService, AnnaPayForPerformanceIconTemplateComponent, AnnaRejectedIconTemplateComponent, AnnaReplaceCharPipe, AnnaSortComponent, AnnaSortService, AnnaTableVirtualScrollViewportComponent, AnnaTypeofDataPipe, AnnaVirtualTableDirective, AnnaWeekCalendarComponent, Constants, Days, ErrorCodes, TooltipModel, fixedSizeVirtualScrollStrategyFactory, radioButtonModel, showEllipsisTextOnHoverDirective, tooltipModelForColumnLevelFiltering };
4347
4403
  //# sourceMappingURL=annalib-anna-core.mjs.map