@annalib/anna-core 4.2.19 → 4.3.0
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.
- package/esm2020/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +1 -1
- package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +30 -24
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +83 -54
- package/esm2020/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +3 -3
- package/esm2020/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +11 -11
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +44 -20
- package/esm2020/public-api.mjs +1 -2
- package/fesm2015/annalib-anna-core.mjs +164 -144
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +164 -144
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-generic-data-type.model.d.ts +4 -0
- package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +2 -1
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +4 -4
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +9 -7
- package/package.json +2 -2
- package/public-api.d.ts +0 -1
- package/src/lib/anna-common-scss/_filters.scss +1 -1
- package/esm2020/lib/anna-core-shared-lib/services/anna-number-format.service.mjs +0 -41
- package/lib/anna-core-shared-lib/services/anna-number-format.service.d.ts +0 -7
|
@@ -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;
|
|
@@ -15,9 +15,10 @@ export declare class AnnaDateTimeFormatService {
|
|
|
15
15
|
addZero(time: any): any;
|
|
16
16
|
sortByTimeAscending(a: any, b: any): number;
|
|
17
17
|
sortByTimeDescending(a: any, b: any): number;
|
|
18
|
-
|
|
18
|
+
convertNgbDateToDayjs(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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options } from '@angular-slider/ngx-slider';
|
|
2
|
-
import
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
3
|
import { SortType } from '../models/anna-sort.model';
|
|
4
4
|
import { AnnaDateTimeFormatService, NgbDateType } from './anna-date-time-format.service';
|
|
5
5
|
import { AnnaSortService } from './anna-sort.service';
|
|
@@ -34,7 +34,7 @@ export declare class AnnaFilterService {
|
|
|
34
34
|
isFilterSortActive: any;
|
|
35
35
|
constructor(dateTimeFormatService: AnnaDateTimeFormatService, annaSortService: AnnaSortService);
|
|
36
36
|
returnMaxAndMinValue(data: any[], key: string, isMin: boolean): any;
|
|
37
|
-
returnMinAndMaxDate(data: any[], key: string):
|
|
37
|
+
returnMinAndMaxDate(data: any[], key: string): dayjs.Dayjs[];
|
|
38
38
|
isTooltipActive(header: string[], sortMap: Map<string, SortType>): boolean;
|
|
39
39
|
clearColumnFilter(): void;
|
|
40
40
|
setOptionValues(minValue: number, maxValue: number): {
|
|
@@ -63,8 +63,8 @@ export declare class AnnaFilterService {
|
|
|
63
63
|
checkIfFilterIsApplied(clonedData: any[], value: any): boolean;
|
|
64
64
|
applyFilter(data: any[], value: any): any[];
|
|
65
65
|
isObjectInTheRange(obj: any, value: {
|
|
66
|
-
fromDate:
|
|
67
|
-
toDate:
|
|
66
|
+
fromDate: dayjs.Dayjs;
|
|
67
|
+
toDate: dayjs.Dayjs;
|
|
68
68
|
}, key: string): boolean;
|
|
69
69
|
updateStateOfTheCurrentFilterTab(sortMap: Map<string, SortType>): void;
|
|
70
70
|
updateStateOfAllTheKeys(sortMap: Map<string, SortType>): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnInit, QueryList, EventEmitter, SimpleChanges, OnChanges, ChangeDetectorRef, ElementRef, AfterViewChecked } from '@angular/core';
|
|
2
|
-
import
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
3
|
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,
|
|
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:
|
|
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;
|
|
@@ -173,8 +175,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
173
175
|
createListForCheckboxFilter(header: string): TooltipModel[];
|
|
174
176
|
selectUnselectListCheckbox(tooltipOptions: TooltipModel[], header: string): void;
|
|
175
177
|
getCalendarData(): void;
|
|
176
|
-
createRangeForTheDateFilter():
|
|
177
|
-
createStartEndDateRange(optionData: any[]):
|
|
178
|
+
createRangeForTheDateFilter(): dayjs.Dayjs[];
|
|
179
|
+
createStartEndDateRange(optionData: any[]): dayjs.Dayjs[];
|
|
178
180
|
selectRangeForTheDateFilter(minMaxDate: any[], parsingFormat: string): void;
|
|
179
181
|
getTimeFilterData(header: string): void;
|
|
180
182
|
setTimeFilterDataForComponentsOtherThanRatingsPage(header: string): 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:
|
|
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.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular-slider/ngx-slider": "2.0.3",
|
|
6
6
|
"@angular/common": "^13.2.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@angular/material": "^13.2.6",
|
|
9
9
|
"@ng-bootstrap/ng-bootstrap": "^9.0.1",
|
|
10
10
|
"lodash-es": "^4.17.21",
|
|
11
|
-
"
|
|
11
|
+
"dayjs": "^1.11.6",
|
|
12
12
|
"ngx-skeleton-loader": "^2.10.1",
|
|
13
13
|
"ng-circle-progress": "^1.6.0"
|
|
14
14
|
},
|
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";
|
|
@@ -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
|
-
}] });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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uICAgICAgICAgIHVuaXQgPSBcIk1cIjtcclxuICAgICAgfVxyXG4gICAgICBlbHNlIGlmIChpbnB1dFZhbHVlID49IGJpbGxpb24pXHJcbiAgICAgIHtcclxuICAgICAgICAgIGlucHV0VmFsdWUgPSBpbnB1dFZhbHVlIC8gYmlsbGlvbjtcclxuICAgICAgICAgIHVuaXQgPSBcIkJcIjtcclxuICAgICAgfVxyXG5cclxuICAgICAgcmV0dXJuIFtpbnB1dFZhbHVlLHVuaXRdO1xyXG4gIH1cclxufSJdfQ==
|
|
@@ -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
|
-
}
|