@annalib/anna-core 4.2.22 → 4.2.23

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,13 @@ class AnnaFilterService {
1257
1257
  "udDeficitValue",
1258
1258
  "bookedValue",
1259
1259
  "bookedSpots",
1260
+ "userChanges",
1261
+ "UDGrp",
1262
+ "UDImps",
1263
+ "underDeliveryPercent",
1264
+ "ODGrp",
1265
+ "ODImps",
1266
+ "overDeliveryPercent",
1260
1267
  "userADUs",
1261
1268
  "buyerChanges",
1262
1269
  "userChanges",
@@ -1896,6 +1903,12 @@ class AnnaNonEditableGenericTableComponent {
1896
1903
  this.tooltipRadioTextMap.set("orderCategory", "Category");
1897
1904
  this.tooltipRadioTextMap.set("cashOrTrade", "C/T");
1898
1905
  this.tooltipRadioTextMap.set("revisionStartDate", "Revision Start Date");
1906
+ this.tooltipRadioTextMap.set("ODImps", "OD Imps");
1907
+ this.tooltipRadioTextMap.set("UDImps", "UD Imps");
1908
+ this.tooltipRadioTextMap.set("ODGrp", "OD Grp");
1909
+ this.tooltipRadioTextMap.set("UdGrp", "UD Grp");
1910
+ this.tooltipRadioTextMap.set("overDeliveryPercent", "OD Percent");
1911
+ this.tooltipRadioTextMap.set("underDeliveryPercent", "OD Percent");
1899
1912
  }
1900
1913
  generateTableDataWrapper() {
1901
1914
  this.showSkeletonLoading = true;
@@ -4293,6 +4306,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
4293
4306
  }]
4294
4307
  }] });
4295
4308
 
4309
+ class AnnaNumberFormatService {
4310
+ static GetRoundedValueWithUnits(inputValue, digitsToRoundDecimalPoint = 2) {
4311
+ let [value, unit] = AnnaNumberFormatService.GetValueInUnits(Math.abs(inputValue));
4312
+ value = +((+value).toFixed(digitsToRoundDecimalPoint));
4313
+ if (inputValue < 0) {
4314
+ value = value * -1;
4315
+ }
4316
+ return value.toString() + unit;
4317
+ // return (Math.Round(value, digitsToRoundDecimalPoint, MidpointRounding.AwayFromZero) + unit);
4318
+ }
4319
+ static GetValueInUnits(inputValue) {
4320
+ let unit = "";
4321
+ let thousand = 1000;
4322
+ let million = 1000000;
4323
+ let billion = 1000000000;
4324
+ if (inputValue >= thousand && inputValue < million) {
4325
+ inputValue = inputValue / thousand;
4326
+ unit = "K";
4327
+ }
4328
+ else if (inputValue >= million && inputValue < billion) {
4329
+ inputValue = inputValue / million;
4330
+ unit = "M";
4331
+ }
4332
+ else if (inputValue >= billion) {
4333
+ inputValue = inputValue / billion;
4334
+ unit = "B";
4335
+ }
4336
+ return [inputValue, unit];
4337
+ }
4338
+ }
4339
+ AnnaNumberFormatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4340
+ AnnaNumberFormatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, providedIn: "root" });
4341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, decorators: [{
4342
+ type: Injectable,
4343
+ args: [{
4344
+ providedIn: "root",
4345
+ }]
4346
+ }] });
4347
+
4296
4348
  ;
4297
4349
 
4298
4350
  class Constants {
@@ -4337,5 +4389,5 @@ var Days;
4337
4389
  * Generated bundle index. Do not edit.
4338
4390
  */
4339
4391
 
4340
- 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 };
4392
+ 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 };
4341
4393
  //# sourceMappingURL=annalib-anna-core.mjs.map