@annalib/anna-core 4.2.27 → 4.2.28

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.
@@ -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",
@@ -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