@annalib/anna-core 24.1.1 → 24.1.2
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/esm2022/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +15 -1
- package/esm2022/lib/anna-core-shared-lib/services/anna-filter.service.mjs +34 -1
- package/esm2022/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +3 -3
- package/esm2022/lib/anna-feature-shared-lib/biz-rules/constants/generic-business-rule-page.constants.mjs +10 -0
- package/esm2022/lib/anna-feature-shared-lib/biz-rules/models/generic-business-rule-history-popup.model.mjs +7 -0
- package/esm2022/lib/anna-feature-shared-lib/daily-revision-listing/models/generic-daily-revision-listing.model.mjs +134 -0
- package/esm2022/lib/anna-feature-shared-lib/daily-revision-listing/services/generic-daily-revision-listing.service.mjs +17 -0
- package/esm2022/lib/anna-feature-shared-lib/generic-primary-order-panel/models/generic-primary-order-panel.model.mjs +7 -0
- package/esm2022/lib/anna-feature-shared-lib/generic-primary-order-panel/services/generic-primary-order-panel.service.mjs +24 -0
- package/esm2022/lib/anna-feature-shared-lib/order-listing/constants/generic-order-listing.constant.mjs +18 -0
- package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +10 -37
- package/esm2022/public-api.mjs +12 -1
- package/fesm2022/annalib-anna-core.mjs +268 -39
- package/fesm2022/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +14 -0
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +2 -0
- package/lib/anna-feature-shared-lib/biz-rules/constants/generic-business-rule-page.constants.d.ts +8 -0
- package/lib/anna-feature-shared-lib/biz-rules/models/generic-business-rule-history-popup.model.d.ts +5 -0
- package/lib/anna-feature-shared-lib/daily-revision-listing/models/generic-daily-revision-listing.model.d.ts +104 -0
- package/lib/anna-feature-shared-lib/daily-revision-listing/services/generic-daily-revision-listing.service.d.ts +12 -0
- package/lib/anna-feature-shared-lib/generic-primary-order-panel/models/generic-primary-order-panel.model.d.ts +5 -0
- package/lib/anna-feature-shared-lib/generic-primary-order-panel/services/generic-primary-order-panel.service.d.ts +12 -0
- package/lib/anna-feature-shared-lib/order-listing/constants/generic-order-listing.constant.d.ts +17 -0
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
|
@@ -126,4 +126,18 @@ export interface IActionItemTypeWithStringIconOrTextAction {
|
|
|
126
126
|
enableTooltipForAdditionalText?: boolean;
|
|
127
127
|
}
|
|
128
128
|
export type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER" | "NEED_SELLER_CONFIRMATION" | "NEED_BUYER_CONFIRMATION";
|
|
129
|
+
export declare class TableClassNameConstant {
|
|
130
|
+
static readonly defaultClass = "table-body-row ";
|
|
131
|
+
static readonly selectedRow = "selected-row ";
|
|
132
|
+
static readonly selectableRow = "selectable-row ";
|
|
133
|
+
static readonly lastRowOfGroup = "last-row-of-group ";
|
|
134
|
+
static readonly mgRow = "mg-row ";
|
|
135
|
+
static readonly redColorCellBorder = "redcolor-cell-border ";
|
|
136
|
+
static readonly redColorCellBorderForBookedRtgImpsCol = " redcolor-cell-border-rtg-imps-col";
|
|
137
|
+
static readonly greenColorCellBorder = "greencolor-cell-border ";
|
|
138
|
+
static readonly yellowColorCellBorder = "yellowcolor-cell-border";
|
|
139
|
+
static readonly orangeColorCellBorder = "orangecolor-cell-border ";
|
|
140
|
+
static readonly redColorStatus = "redcolor-status ";
|
|
141
|
+
static readonly groupedTableClass = "grouped-table-container ";
|
|
142
|
+
}
|
|
129
143
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementRef, QueryList } from "@angular/core";
|
|
1
2
|
import { Options } from "@angular-slider/ngx-slider";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
import { SortType } from "../models/anna-sort.model";
|
|
@@ -149,6 +150,7 @@ export declare class AnnaFilterService {
|
|
|
149
150
|
isHourValueInvalid(hr: string): boolean;
|
|
150
151
|
isMinuteValueInvalid(minute: string): boolean;
|
|
151
152
|
updateSortMap(tempSortOrder: SortType, tableData: any[], isLurAndCsrComponent: boolean): any[];
|
|
153
|
+
setMarginLeftForFilterIcon(thElements: QueryList<ElementRef>): void;
|
|
152
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFilterService, never>;
|
|
153
155
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnnaFilterService>;
|
|
154
156
|
}
|
package/lib/anna-feature-shared-lib/biz-rules/constants/generic-business-rule-page.constants.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum BizRuleStatus {
|
|
2
|
+
NOTIFY_BUYER = "NOTIFY_BUYER",
|
|
3
|
+
APPROVED = "APPROVED",
|
|
4
|
+
SELLER_SAVED = "SELLER_SAVED",
|
|
5
|
+
MODIFICATION_REQUESTED = "MODIFICATION_REQUESTED",
|
|
6
|
+
BUYER_APPROVAL_REQUESTED = "BUYER_APPROVAL_REQUESTED",
|
|
7
|
+
SELLER_APPROVAL_REQUESTED = "SELLER_APPROVAL_REQUESTED"
|
|
8
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { CurrencyPipe } from "@angular/common";
|
|
2
|
+
import { IconCellActionKey, IconToShow } from "../../../anna-core-shared-lib/models/anna-non-editable-gt-models";
|
|
3
|
+
export type REVISIONSTATUSES = "AWAITING SELLER APPROVAL" | "AWAITING SELLER RECONFIRMATION" | "AWAITING BUYER APPROVAL" | "REVISION GENERATED" | "REVISION DISCARDED" | "NO REVISION FOUND" | "AWAITING SALES MGR APPROVAL";
|
|
4
|
+
type REVISIONTYPES = "ANNA" | "USER" | "BUYER" | "SELLER USER";
|
|
5
|
+
type REVISIONTYPESFORFILTERS = "ANNA REVISION" | "SELLER USER REVISION" | "BUYER REVISION";
|
|
6
|
+
export declare class Order {
|
|
7
|
+
orderRevisionStatus: REVISIONSTATUSES;
|
|
8
|
+
campaignId: number;
|
|
9
|
+
orderId: string;
|
|
10
|
+
primaryAEName: string;
|
|
11
|
+
region: string;
|
|
12
|
+
agencyName: string;
|
|
13
|
+
location: string;
|
|
14
|
+
advertiserName: string;
|
|
15
|
+
productCode: string;
|
|
16
|
+
flightStartDate: string;
|
|
17
|
+
flightEndDate: string;
|
|
18
|
+
revisionNo: number;
|
|
19
|
+
alternateOrderId: string;
|
|
20
|
+
grp: number;
|
|
21
|
+
imps: number;
|
|
22
|
+
cpp: number;
|
|
23
|
+
cpm: number;
|
|
24
|
+
offeredMGs: number | string;
|
|
25
|
+
outstandingPE: number | string;
|
|
26
|
+
offeredADUs: number | string;
|
|
27
|
+
udDeficitValue: number | string;
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
orderIdAndRevNumber: string;
|
|
30
|
+
revisionNumberText: string;
|
|
31
|
+
displaycpp: string;
|
|
32
|
+
displaycpm: string;
|
|
33
|
+
displayOfferedMGs: string;
|
|
34
|
+
displayOutstandingPE: string;
|
|
35
|
+
displayOfferedADUs: string;
|
|
36
|
+
displayUdDeficitValue: string;
|
|
37
|
+
proxyDetails: any;
|
|
38
|
+
bookedValue: number;
|
|
39
|
+
bookedSpots: number;
|
|
40
|
+
bookedSpotsForDisplay: number;
|
|
41
|
+
userChanges: number | string;
|
|
42
|
+
displayBookedValue: string;
|
|
43
|
+
displayUserChanges: string;
|
|
44
|
+
writeEnabledOrder: boolean;
|
|
45
|
+
isPayForPerformanceOrder: boolean;
|
|
46
|
+
revisionType: REVISIONTYPES;
|
|
47
|
+
displayRevisionType: string;
|
|
48
|
+
revisionTypeForEasyFilters: REVISIONTYPESFORFILTERS;
|
|
49
|
+
starredOrder: boolean;
|
|
50
|
+
iconClass: string;
|
|
51
|
+
userMG: number | string;
|
|
52
|
+
displayUserMG: string;
|
|
53
|
+
userADUs: number | string;
|
|
54
|
+
buyerChanges: number | string;
|
|
55
|
+
displayBuyerChanges: string;
|
|
56
|
+
displayUserADUs: string;
|
|
57
|
+
rowClass: any;
|
|
58
|
+
revisionStartDate: string;
|
|
59
|
+
demo: string;
|
|
60
|
+
isDeletedOrder: boolean;
|
|
61
|
+
deletedOrderColumnIcon: IconToShow;
|
|
62
|
+
displayGrp: string;
|
|
63
|
+
displayimps: string;
|
|
64
|
+
stationName: string;
|
|
65
|
+
primaryBuyerName: string;
|
|
66
|
+
secondaryBuyerName: string;
|
|
67
|
+
timeoutDate: string;
|
|
68
|
+
timeoutTime: string;
|
|
69
|
+
timeoutTimeForDisaply: string;
|
|
70
|
+
revisionGeneratedDate: string;
|
|
71
|
+
isStationInSandboxMode: boolean;
|
|
72
|
+
timeoutDateTimeWithTimezone: string;
|
|
73
|
+
orderSource: any;
|
|
74
|
+
stationId: number;
|
|
75
|
+
tooltipData: {
|
|
76
|
+
key: string;
|
|
77
|
+
value: string;
|
|
78
|
+
}[];
|
|
79
|
+
orderIdAndRevNumberAndAutomationActivatedIndicationWithNRMessageActionKey: any[];
|
|
80
|
+
gtClass: string;
|
|
81
|
+
payForPerformanceColumnIcon: "" | "PAY_FOR_PERFORMANCE_ACTIVE";
|
|
82
|
+
orderIdAndRevNumberAndAutomationActivatedIndicationActionKey: IconCellActionKey;
|
|
83
|
+
orderIdAndRevNumberAndAutomationActivatedIndicationTooltipKey: string;
|
|
84
|
+
constructor(data: any, currencyPipe: CurrencyPipe);
|
|
85
|
+
}
|
|
86
|
+
export declare enum StatusCodeAndBackgroundColors {
|
|
87
|
+
"AWAITING SELLER APPROVAL" = "#F7F2D1",
|
|
88
|
+
"AWAITING SELLER RECONFIRMATION" = "#F7F2D1",
|
|
89
|
+
"AWAITING BUYER APPROVAL" = "#D5E3F4",
|
|
90
|
+
"REVISION DISCARDED" = "#FDD8D5",
|
|
91
|
+
"REVISION GENERATED" = "#E8E1FA",
|
|
92
|
+
"NO REVISION FOUND" = "#EFEFEF",
|
|
93
|
+
"AWAITING SALES MGR APPROVAL" = "#E3F3EA"
|
|
94
|
+
}
|
|
95
|
+
export declare enum StatusCodeAndClass {
|
|
96
|
+
"AWAITING SELLER APPROVAL" = "awaiting-seller-approval",
|
|
97
|
+
"AWAITING SELLER RECONFIRMATION" = "awaiting-seller-reconfirmation",
|
|
98
|
+
"AWAITING BUYER APPROVAL" = "awaiting-buyer-approval",
|
|
99
|
+
"REVISION GENERATED" = "revision-generated",
|
|
100
|
+
"REVISION DISCARDED" = "revision-discarded",
|
|
101
|
+
"NO REVISION FOUND" = "no-revision-found",
|
|
102
|
+
"AWAITING SALES MGR APPROVAL" = "awaiting-sales-mgr-approval"
|
|
103
|
+
}
|
|
104
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Order } from "../models/generic-daily-revision-listing.model";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GenericDailyRevisionService {
|
|
4
|
+
orderInfo: Order;
|
|
5
|
+
selectedStationId: any;
|
|
6
|
+
selectedOgId: number;
|
|
7
|
+
fromOrderRevisionsPage: boolean;
|
|
8
|
+
fromOrderHistoryPage: boolean;
|
|
9
|
+
spotsApprovalFiltersAppliedRouteChange: boolean;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericDailyRevisionService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GenericDailyRevisionService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import { OrderMetrics } from "../models/generic-primary-order-panel.model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PrimaryOrderPanelService {
|
|
5
|
+
parentContainerScrolled: Subject<boolean>;
|
|
6
|
+
getOrderMetricsDropdownValues(): {
|
|
7
|
+
id: number;
|
|
8
|
+
text: OrderMetrics;
|
|
9
|
+
}[];
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrimaryOrderPanelService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PrimaryOrderPanelService>;
|
|
12
|
+
}
|
package/lib/anna-feature-shared-lib/order-listing/constants/generic-order-listing.constant.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class OrderListingConstants {
|
|
2
|
+
static readonly InFlightAndUpcoming = "In-flight & Upcoming";
|
|
3
|
+
static readonly Completed = "Completed";
|
|
4
|
+
static readonly BlankAndDeleted = "Blank & Deleted";
|
|
5
|
+
static readonly Deleted = "Deleted";
|
|
6
|
+
static readonly OngoingRevisions = "Today\u2019s ANNA Revisions";
|
|
7
|
+
static readonly CompletedRevisions = "Today\u2019s User Revisions";
|
|
8
|
+
static readonly RevisionsAwaitingApproval = "Revisions Awaiting Approval";
|
|
9
|
+
static readonly RATING = "RATING";
|
|
10
|
+
static readonly IMPRESSIONS = "IMPRESSIONS";
|
|
11
|
+
static readonly GRP = "GRP";
|
|
12
|
+
static readonly TvRevenueAndDigital = "TV & Digital";
|
|
13
|
+
static readonly DRR = "Daily Revisions";
|
|
14
|
+
static readonly TvRevenue = "TV Revenue";
|
|
15
|
+
static readonly TV = "TV";
|
|
16
|
+
static readonly OtherRevenue = "Other Revenue";
|
|
17
|
+
}
|
|
@@ -102,6 +102,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
102
102
|
isScrollEnded: boolean;
|
|
103
103
|
marginTop: string;
|
|
104
104
|
viewChildTableHeaders: QueryList<ElementRef>;
|
|
105
|
+
tableElementRef: ElementRef;
|
|
105
106
|
isDifferenceLessThan25Percent: boolean;
|
|
106
107
|
start: number;
|
|
107
108
|
end: number;
|
|
@@ -140,7 +141,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
140
141
|
checkIfUniqueValuePresentForTheHeader(header: IHeaderInfo, enabledHeaders: any[]): void;
|
|
141
142
|
openTooltip(tooltip: any, header: any, columnHeader: IHeaderInfo): void;
|
|
142
143
|
disableEnableEachColumnTooltipIcon(): void;
|
|
143
|
-
setMarginLeftForFilterIcon(): void;
|
|
144
144
|
dataRowClicked(rowData: any): void;
|
|
145
145
|
radioButtonClicked(data: any, action: string, isDisabled: boolean): void;
|
|
146
146
|
bindTheValueToSellerGroupTooltip(sellerGroupHierarchy: RatingSellerGroupHierarchy[], tooltip: any): void;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -37,3 +37,10 @@ export * from "./lib/anna-generic-table-lib/components/anna-column-filters/anna-
|
|
|
37
37
|
export * from "./lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component";
|
|
38
38
|
export * from "./lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component";
|
|
39
39
|
export * from "./lib/anna-generic-table-lib/components/anna-sort/anna-sort.component";
|
|
40
|
+
export * from "./lib/anna-feature-shared-lib/biz-rules/constants/generic-business-rule-page.constants";
|
|
41
|
+
export * from "./lib/anna-feature-shared-lib/biz-rules/models/generic-business-rule-history-popup.model";
|
|
42
|
+
export * from "./lib/anna-feature-shared-lib/generic-primary-order-panel/models/generic-primary-order-panel.model";
|
|
43
|
+
export * from "./lib/anna-feature-shared-lib/generic-primary-order-panel/services/generic-primary-order-panel.service";
|
|
44
|
+
export * from "./lib/anna-feature-shared-lib/order-listing/constants/generic-order-listing.constant";
|
|
45
|
+
export * from "./lib/anna-feature-shared-lib/daily-revision-listing/models/generic-daily-revision-listing.model";
|
|
46
|
+
export * from "./lib/anna-feature-shared-lib/daily-revision-listing/services/generic-daily-revision-listing.service";
|