@annalib/anna-core 4.2.24 → 4.2.25

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,15 +1257,6 @@ 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",
1269
1260
  "userADUs",
1270
1261
  "buyerChanges",
1271
1262
  "userChanges",
@@ -1905,14 +1896,6 @@ class AnnaNonEditableGenericTableComponent {
1905
1896
  this.tooltipRadioTextMap.set("orderCategory", "Category");
1906
1897
  this.tooltipRadioTextMap.set("cashOrTrade", "C/T");
1907
1898
  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 Percent");
1913
- this.tooltipRadioTextMap.set("udGrpPercent", "UD GRP Percent");
1914
- this.tooltipRadioTextMap.set("odImpsPercent", "OD IMPS Percent");
1915
- this.tooltipRadioTextMap.set("odGrpPercent", "OD GRP Percent");
1916
1899
  }
1917
1900
  generateTableDataWrapper() {
1918
1901
  this.showSkeletonLoading = true;
@@ -2041,10 +2024,17 @@ class AnnaNonEditableGenericTableComponent {
2041
2024
  }
2042
2025
  else {
2043
2026
  let values = this.tableData.map((u) => u[item]);
2044
- if (header.filter == "CHECKBOX" && uniq(values).filter(n => n != null).length > 1) {
2027
+ // if last applied filter is this header, push it alos as enabledHeader
2028
+ let activeAndLastlyAppliedHeader = false;
2029
+ if (this.annaFilterService.appliedFiltersArray.length > 0 &&
2030
+ this.annaFilterService.appliedFiltersArray[this.annaFilterService.appliedFiltersArray.length - 1] == item) {
2031
+ activeAndLastlyAppliedHeader = true;
2032
+ }
2033
+ if (header.filter == "CHECKBOX" && (uniq(values).filter(n => n != null).length > 1 || activeAndLastlyAppliedHeader)) {
2045
2034
  enabledHeaders.push(item);
2046
2035
  }
2047
- else if (header.filter != "CHECKBOX" && uniq(values).filter(n => n != null && n != "-").length > 1) {
2036
+ else if (header.filter != "CHECKBOX" &&
2037
+ (uniq(values).filter(n => n != null && n != "-").length > 1 || activeAndLastlyAppliedHeader)) {
2048
2038
  enabledHeaders.push(item);
2049
2039
  }
2050
2040
  }
@@ -4310,45 +4300,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
4310
4300
  }]
4311
4301
  }] });
4312
4302
 
4313
- class AnnaNumberFormatService {
4314
- static GetRoundedValueWithUnits(inputValue, digitsToRoundDecimalPoint = 2) {
4315
- let [value, unit] = AnnaNumberFormatService.GetValueInUnits(Math.abs(inputValue));
4316
- value = +((+value).toFixed(digitsToRoundDecimalPoint));
4317
- if (inputValue < 0) {
4318
- value = value * -1;
4319
- }
4320
- return value.toString() + unit;
4321
- // return (Math.Round(value, digitsToRoundDecimalPoint, MidpointRounding.AwayFromZero) + unit);
4322
- }
4323
- static GetValueInUnits(inputValue) {
4324
- let unit = "";
4325
- let thousand = 1000;
4326
- let million = 1000000;
4327
- let billion = 1000000000;
4328
- if (inputValue >= thousand && inputValue < million) {
4329
- inputValue = inputValue / thousand;
4330
- unit = "K";
4331
- }
4332
- else if (inputValue >= million && inputValue < billion) {
4333
- inputValue = inputValue / million;
4334
- unit = "M";
4335
- }
4336
- else if (inputValue >= billion) {
4337
- inputValue = inputValue / billion;
4338
- unit = "B";
4339
- }
4340
- return [inputValue, unit];
4341
- }
4342
- }
4343
- AnnaNumberFormatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4344
- AnnaNumberFormatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, providedIn: "root" });
4345
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, decorators: [{
4346
- type: Injectable,
4347
- args: [{
4348
- providedIn: "root",
4349
- }]
4350
- }] });
4351
-
4352
4303
  ;
4353
4304
 
4354
4305
  class Constants {
@@ -4393,5 +4344,5 @@ var Days;
4393
4344
  * Generated bundle index. Do not edit.
4394
4345
  */
4395
4346
 
4396
- 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
+ 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 };
4397
4348
  //# sourceMappingURL=annalib-anna-core.mjs.map