@annalib/anna-core 4.2.19 → 4.2.21

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.
Files changed (21) hide show
  1. package/esm2020/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.mjs +282 -0
  2. package/esm2020/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +1 -1
  3. package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +7 -1
  4. package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +46 -21
  5. package/esm2020/lib/anna-core.module.mjs +9 -4
  6. package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +39 -15
  7. package/esm2020/public-api.mjs +2 -2
  8. package/fesm2015/annalib-anna-core.mjs +381 -77
  9. package/fesm2015/annalib-anna-core.mjs.map +1 -1
  10. package/fesm2020/annalib-anna-core.mjs +377 -77
  11. package/fesm2020/annalib-anna-core.mjs.map +1 -1
  12. package/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.d.ts +34 -0
  13. package/lib/anna-core-shared-lib/models/anna-generic-data-type.model.d.ts +4 -0
  14. package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +1 -0
  15. package/lib/anna-core.module.d.ts +12 -11
  16. package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +6 -4
  17. package/package.json +1 -1
  18. package/public-api.d.ts +1 -1
  19. package/src/lib/anna-common-scss/_filters.scss +1 -1
  20. package/esm2020/lib/anna-core-shared-lib/services/anna-number-format.service.mjs +0 -41
  21. package/lib/anna-core-shared-lib/services/anna-number-format.service.d.ts +0 -7
@@ -0,0 +1,34 @@
1
+ import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DigitOnlyDirective implements OnChanges {
4
+ el: ElementRef;
5
+ private hasDecimalPoint;
6
+ private hasNegativeSign;
7
+ private navigationKeys;
8
+ decimal: boolean;
9
+ decimalSeparator: string;
10
+ allowNegatives: boolean;
11
+ allowPaste: boolean;
12
+ negativeSign: string;
13
+ min: number;
14
+ max: number;
15
+ pattern?: string | RegExp;
16
+ private regex;
17
+ inputElement: HTMLInputElement;
18
+ constructor(el: ElementRef);
19
+ ngOnChanges(changes: SimpleChanges): void;
20
+ onBeforeInput(e: InputEvent): any;
21
+ onKeyDown(e: KeyboardEvent): any;
22
+ onPaste(event: any): void;
23
+ onDrop(event: DragEvent): void;
24
+ private pasteData;
25
+ private insertAtCursor;
26
+ private triggerEvent;
27
+ private sanitizeInput;
28
+ private getNegativeSignRegExp;
29
+ private isValidDecimal;
30
+ private getSelection;
31
+ private forecastValue;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<DigitOnlyDirective, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DigitOnlyDirective, "[digitOnly]", never, { "decimal": "decimal"; "decimalSeparator": "decimalSeparator"; "allowNegatives": "allowNegatives"; "allowPaste": "allowPaste"; "negativeSign": "negativeSign"; "min": "min"; "max": "max"; "pattern": "pattern"; }, {}, never>;
34
+ }
@@ -6,6 +6,10 @@ export interface SellerGroupHierarchy {
6
6
  inventoryCode: string;
7
7
  program: string;
8
8
  }
9
+ export interface RatingSellerGroupHierarchy {
10
+ InventoryCode: string;
11
+ Program: string;
12
+ }
9
13
  export interface GtColumnIconEmittedData {
10
14
  data: any;
11
15
  key: string;
@@ -18,6 +18,7 @@ export declare class AnnaDateTimeFormatService {
18
18
  convertNgbDateToMoment(ngbDate: NgbDate | NgbDateType): string;
19
19
  compareDate(a: string, b: string, isAsc: boolean): number;
20
20
  static formatTwentyFourHourTimeToHHMMAFormat(value: any): string;
21
+ static formatTwelveHourTimeToHHMMAFormat(value: any): string;
21
22
  formatDateAndHHMMATimeToStandardFormat(dateAndTime: any): string;
22
23
  compare(a: number | string, b: number | string, isAsc: boolean): number;
23
24
  sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): number;
@@ -18,18 +18,19 @@ import * as i16 from "./anna-generic-table-lib/directives/anna-virtual-table/ann
18
18
  import * as i17 from "./anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component";
19
19
  import * as i18 from "./anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component";
20
20
  import * as i19 from "./anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive";
21
- import * as i20 from "@angular/common";
22
- import * as i21 from "@ng-bootstrap/ng-bootstrap";
23
- import * as i22 from "@angular/forms";
24
- import * as i23 from "@angular/material/radio";
25
- import * as i24 from "@angular/material/button-toggle";
26
- import * as i25 from "@angular/material/table";
27
- import * as i26 from "@angular-slider/ngx-slider";
28
- import * as i27 from "ngx-skeleton-loader";
29
- import * as i28 from "@angular/cdk/scrolling";
30
- import * as i29 from "ng-circle-progress";
21
+ import * as i20 from "./anna-core-shared-lib/directives/digits-only/digits-only.directive";
22
+ import * as i21 from "@angular/common";
23
+ import * as i22 from "@ng-bootstrap/ng-bootstrap";
24
+ import * as i23 from "@angular/forms";
25
+ import * as i24 from "@angular/material/radio";
26
+ import * as i25 from "@angular/material/button-toggle";
27
+ import * as i26 from "@angular/material/table";
28
+ import * as i27 from "@angular-slider/ngx-slider";
29
+ import * as i28 from "ngx-skeleton-loader";
30
+ import * as i29 from "@angular/cdk/scrolling";
31
+ import * as i30 from "ng-circle-progress";
31
32
  export declare class AnnaCoreModule {
32
33
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreModule, never>;
33
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i5.AnnaReplaceCharPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective], [typeof i20.CommonModule, typeof i21.NgbModule, typeof i22.FormsModule, typeof i23.MatRadioModule, typeof i24.MatButtonToggleModule, typeof i25.MatTableModule, typeof i26.NgxSliderModule, typeof i27.NgxSkeletonLoaderModule, typeof i28.ScrollingModule, typeof i29.NgCircleProgressModule], [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i5.AnnaReplaceCharPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective]>;
34
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i5.AnnaReplaceCharPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i20.DigitOnlyDirective], [typeof i21.CommonModule, typeof i22.NgbModule, typeof i23.FormsModule, typeof i24.MatRadioModule, typeof i25.MatButtonToggleModule, typeof i26.MatTableModule, typeof i27.NgxSliderModule, typeof i28.NgxSkeletonLoaderModule, typeof i29.ScrollingModule, typeof i30.NgCircleProgressModule], [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i5.AnnaReplaceCharPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i20.DigitOnlyDirective]>;
34
35
  static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCoreModule>;
35
36
  }
@@ -4,7 +4,7 @@ import { Options } from '@angular-slider/ngx-slider';
4
4
  import { IGtGeneralConfig, IGtTableHeader, IHeaderInfo, ITotalRowInfo } from '../../../anna-core-shared-lib/models/anna-non-editable-gt-models';
5
5
  import { AnnaDateTimeFormatService, NgbDateType } from '../../../anna-core-shared-lib/services/anna-date-time-format.service';
6
6
  import { IWeekCalendar } from '../../../anna-core-shared-lib/models/anna-global-dropdown-config.model';
7
- import { GtColumnIconEmittedData, SellerGroupHierarchy } from '../../../anna-core-shared-lib/models/anna-generic-data-type.model';
7
+ import { GtColumnIconEmittedData, RatingSellerGroupHierarchy } from '../../../anna-core-shared-lib/models/anna-generic-data-type.model';
8
8
  import { SortType } from '../../../anna-core-shared-lib/models/anna-sort.model';
9
9
  import { radioButtonModel, TooltipModel } from '../../../anna-core-shared-lib/models/anna-tooltip.model';
10
10
  import { AnnaSortService } from '../../../anna-core-shared-lib/services/anna-sort.service';
@@ -37,6 +37,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
37
37
  includeBorderInTableHeight: boolean;
38
38
  downloadInProgress: boolean;
39
39
  percentDone: number;
40
+ starredInProgress: boolean;
40
41
  toggleCheckbox: EventEmitter<any>;
41
42
  toggleRowCheckbox: EventEmitter<any>;
42
43
  toggleHeaderCheckbox: EventEmitter<any>;
@@ -106,7 +107,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
106
107
  open: () => void;
107
108
  close: () => void;
108
109
  };
109
- sellerGroupHierarchy: SellerGroupHierarchy[];
110
+ sellerGroupHierarchy: RatingSellerGroupHierarchy[];
110
111
  showFilterTooltipTabs: boolean;
111
112
  isScrolledLeft: boolean;
112
113
  rowBorderWidth: number;
@@ -145,6 +146,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
145
146
  selectedRowTypeForDownload: string;
146
147
  heightOfCheckboxTooltipFilter: number;
147
148
  isNoDataToDisplaySubject$: BehaviorSubject<boolean>;
149
+ selectedStarredOrderId: string;
148
150
  constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService, annaGenericTableService: AnnaGenericTableService);
149
151
  ngAfterViewChecked(): void;
150
152
  ngOnInit(): void;
@@ -223,7 +225,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
223
225
  setMarginLeftForFilterIcon(): void;
224
226
  dataRowClicked(rowData: any): void;
225
227
  radioButtonClicked(data: any, action: string, isDisabled: boolean): void;
226
- bindTheValueToSellerGroupTooltip(sellerGroupHierarchy: SellerGroupHierarchy[], tooltip: any): void;
228
+ bindTheValueToSellerGroupTooltip(sellerGroupHierarchy: RatingSellerGroupHierarchy[], tooltip: any): void;
227
229
  iconClicked(rowData: any, iconClass: string): void;
228
230
  svgIconClicked(data: GtColumnIconEmittedData): void;
229
231
  textActionClicked(rowData: any, id: number): void;
@@ -265,5 +267,5 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
265
267
  spotDetailsDownloadClicked(parentChildOrTotalRow: "DATAROW" | "TOTALROW", rowdata?: any): void;
266
268
  tableContainerScrolled(event: any): void;
267
269
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
268
- static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": "showSkeletonLoading"; "tableHeaders": "tableHeaders"; "tableData": "tableData"; "clonedTableData": "clonedTableData"; "numberOfSkeletonRows": "numberOfSkeletonRows"; "numberOfSkeletonColumns": "numberOfSkeletonColumns"; "gtGeneralConfig": "gtGeneralConfig"; "totalRowInfo": "totalRowInfo"; "gtDimension": "gtDimension"; "tableClass": "tableClass"; "maximumRowsWhichCanBeRenderedWithoutScroll": "maximumRowsWhichCanBeRenderedWithoutScroll"; "limit": "limit"; "includeBorderInTableHeight": "includeBorderInTableHeight"; "downloadInProgress": "downloadInProgress"; "percentDone": "percentDone"; }, { "toggleCheckbox": "toggleCheckbox"; "toggleRowCheckbox": "toggleRowCheckbox"; "toggleHeaderCheckbox": "toggleHeaderCheckbox"; "undoIconClicked": "undoIconClicked"; "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "rowClicked": "rowClicked"; "radioButtonSelected": "radioButtonSelected"; "columnFilterOpened": "columnFilterOpened"; "columnFilterClosed": "columnFilterClosed"; "gtIconClicked": "gtIconClicked"; "gtSVGIconClicked": "gtSVGIconClicked"; "gtTextActionClicked": "gtTextActionClicked"; "gtViewDetailClicked": "gtViewDetailClicked"; "downloadSpotDetails": "downloadSpotDetails"; }, never, never>;
270
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": "showSkeletonLoading"; "tableHeaders": "tableHeaders"; "tableData": "tableData"; "clonedTableData": "clonedTableData"; "numberOfSkeletonRows": "numberOfSkeletonRows"; "numberOfSkeletonColumns": "numberOfSkeletonColumns"; "gtGeneralConfig": "gtGeneralConfig"; "totalRowInfo": "totalRowInfo"; "gtDimension": "gtDimension"; "tableClass": "tableClass"; "maximumRowsWhichCanBeRenderedWithoutScroll": "maximumRowsWhichCanBeRenderedWithoutScroll"; "limit": "limit"; "includeBorderInTableHeight": "includeBorderInTableHeight"; "downloadInProgress": "downloadInProgress"; "percentDone": "percentDone"; "starredInProgress": "starredInProgress"; }, { "toggleCheckbox": "toggleCheckbox"; "toggleRowCheckbox": "toggleRowCheckbox"; "toggleHeaderCheckbox": "toggleHeaderCheckbox"; "undoIconClicked": "undoIconClicked"; "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "rowClicked": "rowClicked"; "radioButtonSelected": "radioButtonSelected"; "columnFilterOpened": "columnFilterOpened"; "columnFilterClosed": "columnFilterClosed"; "gtIconClicked": "gtIconClicked"; "gtSVGIconClicked": "gtSVGIconClicked"; "gtTextActionClicked": "gtTextActionClicked"; "gtViewDetailClicked": "gtViewDetailClicked"; "downloadSpotDetails": "downloadSpotDetails"; }, never, never>;
269
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "4.2.19",
3
+ "version": "4.2.21",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "2.0.3",
6
6
  "@angular/common": "^13.2.0",
package/public-api.d.ts CHANGED
@@ -11,7 +11,6 @@ export * from "./lib/anna-core-shared-lib/services/anna-global-config.service";
11
11
  export * from "./lib/anna-core-shared-lib/services/anna-filter.service";
12
12
  export * from "./lib/anna-core-shared-lib/services/anna-sort.service";
13
13
  export * from "./lib/anna-core-shared-lib/services/anna-generic-table.service";
14
- export * from "./lib/anna-core-shared-lib/services/anna-number-format.service";
15
14
  export * from "./lib/anna-core-shared-lib/models/anna-generic-data-type.model";
16
15
  export * from "./lib/anna-core-shared-lib/models/anna-global-dropdown-config.model";
17
16
  export * from "./lib/anna-core-shared-lib/models/anna-non-editable-gt-models";
@@ -23,6 +22,7 @@ export * from "./lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined
23
22
  export * from "./lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe";
24
23
  export * from "./lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe";
25
24
  export * from "./lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive";
25
+ export * from './lib/anna-core-shared-lib/directives/digits-only/digits-only.directive';
26
26
  export * from "./lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component";
27
27
  export * from "./lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component";
28
28
  export * from "./lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component";
@@ -413,7 +413,7 @@ section.min-maxContainer {
413
413
  padding-left: 1px;
414
414
  margin-right: $fs-19;
415
415
  i {
416
- color: #cbcbcb;
416
+ color: black;
417
417
  cursor: pointer;
418
418
  font-size: $fs-9;
419
419
  }
@@ -1,41 +0,0 @@
1
- import { Injectable } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export class AnnaNumberFormatService {
4
- static GetRoundedValueWithUnits(inputValue, digitsToRoundDecimalPoint = 2) {
5
- let [value, unit] = AnnaNumberFormatService.GetValueInUnits(Math.abs(inputValue));
6
- value = +((+value).toFixed(digitsToRoundDecimalPoint));
7
- if (inputValue < 0) {
8
- value = value * -1;
9
- }
10
- return value.toString() + unit;
11
- // return (Math.Round(value, digitsToRoundDecimalPoint, MidpointRounding.AwayFromZero) + unit);
12
- }
13
- static GetValueInUnits(inputValue) {
14
- let unit = "";
15
- let thousand = 1000;
16
- let million = 1000000;
17
- let billion = 1000000000;
18
- if (inputValue >= thousand && inputValue < million) {
19
- inputValue = inputValue / thousand;
20
- unit = "K";
21
- }
22
- else if (inputValue >= million && inputValue < billion) {
23
- inputValue = inputValue / million;
24
- unit = "M";
25
- }
26
- else if (inputValue >= billion) {
27
- inputValue = inputValue / billion;
28
- unit = "B";
29
- }
30
- return [inputValue, unit];
31
- }
32
- }
33
- AnnaNumberFormatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
34
- AnnaNumberFormatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, providedIn: "root" });
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNumberFormatService, decorators: [{
36
- type: Injectable,
37
- args: [{
38
- providedIn: "root",
39
- }]
40
- }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HV0VmFsdWUgPSBpbnB1dFZhbHVlIC8gbWlsbGlvbjtcclxuICAgICAgICAgIHVuaXQgPSBcIk1cIjtcclxuICAgICAgfVxyXG4gICAgICBlbHNlIGlmIChpbnB1dFZhbHVlID49IGJpbGxpb24pXHJcbiAgICAgIHtcclxuICAgICAgICAgIGlucHV0VmFsdWUgPSBpbnB1dFZhbHVlIC8gYmlsbGlvbjtcclxuICAgICAgICAgIHVuaXQgPSBcIkJcIjtcclxuICAgICAgfVxyXG5cclxuICAgICAgcmV0dXJuIFtpbnB1dFZhbHVlLHVuaXRdO1xyXG4gIH1cclxufSJdfQ==
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AnnaNumberFormatService {
3
- static GetRoundedValueWithUnits(inputValue: number, digitsToRoundDecimalPoint?: number): string;
4
- static GetValueInUnits(inputValue: number): (string | number)[];
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNumberFormatService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<AnnaNumberFormatService>;
7
- }