@annalib/anna-feature-spots-approval 0.0.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/README.md +63 -0
- package/anna-feature-shared-lib/index.d.ts +5 -0
- package/anna-feature-shared-lib/public-api.d.ts +16 -0
- package/anna-feature-shared-lib/src/biz-rules/constants/generic-business-rule-page.constants.d.ts +5 -0
- package/anna-feature-shared-lib/src/biz-rules/models/generic-business-rule-history-popup.model.d.ts +10 -0
- package/anna-feature-shared-lib/src/biz-rules/services/generic-business-rule-common-SI-BI-logic.service.d.ts +20 -0
- package/anna-feature-shared-lib/src/constants/generic-feature-related-constants.d.ts +3 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/components/action-comments-popup/action-comments-popup.component.d.ts +35 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/components/offer-rejection-popup/offer-rejection-popup.component.d.ts +44 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/models/generic-daily-revision-listing.model.d.ts +64 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/models/generic-offers-awaiting-approval.model.d.ts +36 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/models/generic-todays-anna-offers-listing.model.d.ts +34 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/models/generic-todays-user-offers-listing.model.d.ts +39 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/models/spot-approval-generic.model.d.ts +12 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/services/generic-daily-revision-listing.service.d.ts +12 -0
- package/anna-feature-shared-lib/src/generic-primary-order-panel/models/generic-primary-order-panel.model.d.ts +5 -0
- package/anna-feature-shared-lib/src/generic-primary-order-panel/services/generic-primary-order-panel.service.d.ts +13 -0
- package/anna-feature-shared-lib/src/order-listing/constants/generic-order-listing.constant.d.ts +18 -0
- package/anna-feature-shared-lib/src/spot-approval/models/spot-approval-generic-in-feature-shared-lib.model.d.ts +7 -0
- package/anna-feature-shared-lib/src/spot-approval/services/spot-approval-generic-in-feature-shared-lib.service.d.ts +14 -0
- package/drr-listing/index.d.ts +5 -0
- package/drr-listing/public-api.d.ts +8 -0
- package/drr-listing/src/daily-revision-filter-modal/config/daily-revision-listing-backend-service.token.d.ts +10 -0
- package/drr-listing/src/daily-revision-filter-modal/daily-revision-filter-modal.component.d.ts +89 -0
- package/drr-listing/src/daily-revision-filter-modal/models/daily-revision-filter-modal.model.d.ts +41 -0
- package/drr-listing/src/daily-revision-listing/config/daily-revision-listing-backend-service.token.d.ts +18 -0
- package/drr-listing/src/daily-revision-listing/constants/daily-revision-listing.constant.d.ts +80 -0
- package/drr-listing/src/daily-revision-listing/constants/orders.constant.d.ts +69 -0
- package/drr-listing/src/daily-revision-listing/daily-revision-listing.component.d.ts +154 -0
- package/drr-listing/src/daily-revision-listing/models/daily-revision-listing.model.d.ts +33 -0
- package/drr-listing/src/daily-revision-listing/services/daily-revision-listing.service.d.ts +25 -0
- package/fesm2022/annalib-anna-feature-spots-approval-anna-feature-shared-lib.mjs +670 -0
- package/fesm2022/annalib-anna-feature-spots-approval-anna-feature-shared-lib.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval-drr-listing.mjs +2844 -0
- package/fesm2022/annalib-anna-feature-spots-approval-drr-listing.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval-spot-approval-shared-lib.mjs +112 -0
- package/fesm2022/annalib-anna-feature-spots-approval-spot-approval-shared-lib.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval-spots-approval.mjs +12115 -0
- package/fesm2022/annalib-anna-feature-spots-approval-spots-approval.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval-src-lib-all-offers-listing.mjs +1369 -0
- package/fesm2022/annalib-anna-feature-spots-approval-src-lib-all-offers-listing.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval-src-lib-spot-approval-seller-or-buyer-revision.mjs +1223 -0
- package/fesm2022/annalib-anna-feature-spots-approval-src-lib-spot-approval-seller-or-buyer-revision.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval.mjs +88 -0
- package/fesm2022/annalib-anna-feature-spots-approval.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/anna-feature-spots-approval.module.d.ts +20 -0
- package/package.json +57 -0
- package/public-api.d.ts +1 -0
- package/spot-approval-shared-lib/index.d.ts +5 -0
- package/spot-approval-shared-lib/public-api.d.ts +2 -0
- package/spot-approval-shared-lib/src/revision-offer-status-progress-view/revision-offer-status-progress-view.component.d.ts +19 -0
- package/spot-approval-shared-lib/src/revision-summary-panel/revision-summary-panel.component.d.ts +21 -0
- package/spots-approval/index.d.ts +5 -0
- package/spots-approval/public-api.d.ts +21 -0
- package/spots-approval/src/add-os-spots-popup/add-os-spots-popup.component.d.ts +59 -0
- package/spots-approval/src/anna-revision/anna-revision.component.d.ts +551 -0
- package/spots-approval/src/badly-behaved-spot-details-popup/badly-behaved-spot-details-popup.component.d.ts +38 -0
- package/spots-approval/src/badly-behaved-spot-details-popup/models/badly-behaved-spot-details-popup.model.d.ts +15 -0
- package/spots-approval/src/badly-behaved-spot-details-popup/services/badly-behaved-spot-details-popup.service.d.ts +7 -0
- package/spots-approval/src/cancel-offers-popup/cancel-offers-popup.component.d.ts +36 -0
- package/spots-approval/src/config/spots-approval-backend-service.token.d.ts +30 -0
- package/spots-approval/src/constants/create-or-edit-offers.constant.d.ts +44 -0
- package/spots-approval/src/constants/spots-approval.constant.d.ts +129 -0
- package/spots-approval/src/create-or-edit-adu-or-bonus/create-or-edit-adu-or-bonus.component.d.ts +214 -0
- package/spots-approval/src/create-or-edit-offers-popup/create-or-edit-offers-popup.component.d.ts +333 -0
- package/spots-approval/src/credit-confirmation-table-popup/credit-confirmation-table-popup.component.d.ts +72 -0
- package/spots-approval/src/models/anna-revisions-backend.model.d.ts +325 -0
- package/spots-approval/src/models/anna-revisions-enums.model.d.ts +53 -0
- package/spots-approval/src/models/anna-revisions-response.model.d.ts +355 -0
- package/spots-approval/src/models/anna-revisions-total-rows.model.d.ts +124 -0
- package/spots-approval/src/models/create-or-edit-offer-total-rows.model.d.ts +73 -0
- package/spots-approval/src/models/create-or-edit-offers-popup.model.d.ts +384 -0
- package/spots-approval/src/models/order-revision-detail.model.d.ts +156 -0
- package/spots-approval/src/offered-mg-edit-table/offered-mg-edit-table.component.d.ts +74 -0
- package/spots-approval/src/other-spots-edit-table/other-spots-edit-table.component.d.ts +44 -0
- package/spots-approval/src/political-rate-warning-popup/political-rate-warning-popup.component.d.ts +26 -0
- package/spots-approval/src/revision-header/revision-header.component.d.ts +21 -0
- package/spots-approval/src/revision-summary/revision-summary.component.d.ts +22 -0
- package/spots-approval/src/select-spot-length-popup/select-spot-length-popup.component.d.ts +37 -0
- package/spots-approval/src/services/create-or-edit-offers-popup.service.d.ts +25 -0
- package/spots-approval/src/services/generic-spots-approval.service.d.ts +99 -0
- package/spots-approval/src/services/spots-approval.service.d.ts +81 -0
- package/spots-approval/src/spot-details-popup/spot-details-popup.component.d.ts +57 -0
- package/src/lib/all-offers-listing/index.d.ts +5 -0
- package/src/lib/all-offers-listing/public-api.d.ts +6 -0
- package/src/lib/all-offers-listing/src/all-offers-listing.component.d.ts +162 -0
- package/src/lib/all-offers-listing/src/configs/all-offers-listing-backend.token.d.ts +11 -0
- package/src/lib/all-offers-listing/src/models/all-offers-filter.model.d.ts +12 -0
- package/src/lib/all-offers-listing/src/models/all-offers-listing-backend.model.d.ts +88 -0
- package/src/lib/all-offers-listing/src/models/all-offers-listing.constant.d.ts +84 -0
- package/src/lib/all-offers-listing/src/models/all-offers-listing.model.d.ts +95 -0
- package/src/lib/all-offers-listing/src/services/all-offers-listing.service.d.ts +25 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/index.d.ts +5 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/public-api.d.ts +6 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision-additional-data.model.d.ts +73 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision-backend.model.d.ts +57 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision-response.model.d.ts +117 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision-total-row.model.d.ts +29 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision.constant.d.ts +13 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision.token.d.ts +14 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/seller-or-buyer-revision.component.d.ts +128 -0
package/spots-approval/src/create-or-edit-offers-popup/create-or-edit-offers-popup.component.d.ts
ADDED
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { CurrencyPipe } from "@angular/common";
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from "@angular/core";
|
|
3
|
+
import { AnnaDateTimeFormatService, AnnaGlobalConfigService, IGtGeneralConfig, IGtTableHeader, ITotalRowInfo, IWeekCalendar } from "@annalib/anna-core";
|
|
4
|
+
import { MessageBoxData, WeekCalendarService } from "@annalib/anna-design-components-lib";
|
|
5
|
+
import { NgbDate, NgbDateStruct, NgbModal, NgbModalRef } from "@ng-bootstrap/ng-bootstrap";
|
|
6
|
+
import { ToastrService } from "ngx-toastr";
|
|
7
|
+
import { NgxUiLoaderService } from "ngx-ui-loader";
|
|
8
|
+
import { ISpotsApprovalBackendService } from "../config/spots-approval-backend-service.token";
|
|
9
|
+
import { IBizRulesForSpotsApproval, ISpotInformationResponse } from "../models/anna-revisions-backend.model";
|
|
10
|
+
import { OrderInfoForANNARevision } from "../models/anna-revisions-response.model";
|
|
11
|
+
import { EditGroupPayload, EditMakeGoodGroupNewPayload, FreeFlowSpotsPayload, IAdditionInformationForFreeFlowSpot, IAdditionInformationForRotators, IAvailableSpotInformationForEdit, IMakeGoodSpotInformationForEdit, IOSPESpotsData, IPreemptionSpotInformationForEdit, IRevenueClassList, ISaveEditedOffersPayload, IValidateEditedOffersPayload, IValidateEditedOffersResponse, MakeGoodSpotInformationForEdit } from "../models/create-or-edit-offers-popup.model";
|
|
12
|
+
import { CreateOrEditOffersService } from "../services/create-or-edit-offers-popup.service";
|
|
13
|
+
import { SpotDetailsPopupComponent } from "../spot-details-popup/spot-details-popup.component";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class CreateOrEditOffersPopupComponent implements OnInit {
|
|
16
|
+
private cdr;
|
|
17
|
+
private modalService;
|
|
18
|
+
private currencyPipe;
|
|
19
|
+
private toastr;
|
|
20
|
+
private ngxService;
|
|
21
|
+
private annaGlobalConfig;
|
|
22
|
+
private dateTimeFormatService;
|
|
23
|
+
private weekCalendarService;
|
|
24
|
+
private createOrEditOffersService;
|
|
25
|
+
consumingProjectSpotsApprovalBackendService: ISpotsApprovalBackendService;
|
|
26
|
+
enableRevenueClassEdit: boolean;
|
|
27
|
+
reofferComment: string;
|
|
28
|
+
showImpressions: boolean;
|
|
29
|
+
originalPreemptedSpots: ISpotInformationResponse[];
|
|
30
|
+
originalOfferedMakegoods: ISpotInformationResponse[];
|
|
31
|
+
originalGroupableOutstandingSpots: ISpotInformationResponse[];
|
|
32
|
+
stationId: number;
|
|
33
|
+
bizRulesFromDb: any;
|
|
34
|
+
buyerOrderId: string;
|
|
35
|
+
spDayparts: string[];
|
|
36
|
+
broadcastTime: string;
|
|
37
|
+
loggedInUser: any;
|
|
38
|
+
isCreateOffer: boolean;
|
|
39
|
+
isNoRevision: boolean;
|
|
40
|
+
timezone: string;
|
|
41
|
+
tgId: number;
|
|
42
|
+
isReofferFlow: boolean;
|
|
43
|
+
IsBadlyBehavedGroup: boolean;
|
|
44
|
+
orderData: OrderInfoForANNARevision;
|
|
45
|
+
editSaved: EventEmitter<{
|
|
46
|
+
spots: {
|
|
47
|
+
spotId: string;
|
|
48
|
+
groupId: string;
|
|
49
|
+
}[];
|
|
50
|
+
closePopup: boolean;
|
|
51
|
+
}>;
|
|
52
|
+
cancelButtonClicked: EventEmitter<any>;
|
|
53
|
+
resetTimerAfterUserAction: EventEmitter<any>;
|
|
54
|
+
lockTimedOutEmit: EventEmitter<any>;
|
|
55
|
+
ogLogoUrl: string;
|
|
56
|
+
preemptedSpots: IPreemptionSpotInformationForEdit[];
|
|
57
|
+
offeredMakegoods: IMakeGoodSpotInformationForEdit[];
|
|
58
|
+
groupableOutstandingSpots: IPreemptionSpotInformationForEdit[];
|
|
59
|
+
estimatePrioritiesForGuidelines: string[];
|
|
60
|
+
bizRules: IBizRulesForSpotsApproval;
|
|
61
|
+
disableValidate: boolean;
|
|
62
|
+
disableSave: boolean;
|
|
63
|
+
showValidate: boolean;
|
|
64
|
+
showMakegoodTableSkeletonLoader: boolean;
|
|
65
|
+
showTableSkeletonLoader: boolean;
|
|
66
|
+
showSkeletonLoaderInSpotsMeetingBizRulesTable: boolean;
|
|
67
|
+
showSkeletonLoaderInOtherSpotsTable: boolean;
|
|
68
|
+
showSkeletonLoaderInRotatorsTable: boolean;
|
|
69
|
+
preemptionTableHeaders: IGtTableHeader[];
|
|
70
|
+
offeredMGsTableHeaders: IGtTableHeader[];
|
|
71
|
+
offeredMakeGoodsForDisplay: IMakeGoodSpotInformationForEdit[];
|
|
72
|
+
offeredMakeGoodsOriginalData: IMakeGoodSpotInformationForEdit[];
|
|
73
|
+
totalRowInfoForOfferedMakeGoods: ITotalRowInfo[];
|
|
74
|
+
savedOfferedMakeGoods: IMakeGoodSpotInformationForEdit[];
|
|
75
|
+
allSpotsMeetingBizRules: IAvailableSpotInformationForEdit[];
|
|
76
|
+
allOtherAvailableSpots: IAdditionInformationForFreeFlowSpot[];
|
|
77
|
+
allRotators: IAdditionInformationForRotators[];
|
|
78
|
+
spotsMeetingBizRulesTableHeaders: IGtTableHeader[];
|
|
79
|
+
spotsMeetingBizRules: IAvailableSpotInformationForEdit[];
|
|
80
|
+
spotsMeetingBizRulesForDisplay: IAvailableSpotInformationForEdit[];
|
|
81
|
+
otherSpotsTableHeaders: IGtTableHeader[];
|
|
82
|
+
otherSpots: IAdditionInformationForFreeFlowSpot[];
|
|
83
|
+
otherSpotsForDisplay: IAdditionInformationForFreeFlowSpot[];
|
|
84
|
+
rotatorsTableHeaders: IGtTableHeader[];
|
|
85
|
+
rotators: IAdditionInformationForRotators[];
|
|
86
|
+
rotatorsForDisplay: IAdditionInformationForRotators[];
|
|
87
|
+
gtDimension: {
|
|
88
|
+
rowHeight: number;
|
|
89
|
+
headerHeight: number;
|
|
90
|
+
dataOnTopHeight: number;
|
|
91
|
+
marginFromBottom: number;
|
|
92
|
+
};
|
|
93
|
+
gtDimensionForViewSpotsPopup: {
|
|
94
|
+
rowHeight: number;
|
|
95
|
+
headerHeight: number;
|
|
96
|
+
dataOnTopHeight: number;
|
|
97
|
+
marginFromBottom: number;
|
|
98
|
+
};
|
|
99
|
+
gtDimensionForMGTable: {
|
|
100
|
+
rowHeight: number;
|
|
101
|
+
headerHeight: number;
|
|
102
|
+
dataOnTopHeight: number;
|
|
103
|
+
marginFromBottom: number;
|
|
104
|
+
};
|
|
105
|
+
gtGeneralConfig: IGtGeneralConfig;
|
|
106
|
+
gtGeneralConfigForOfferedMG: IGtGeneralConfig;
|
|
107
|
+
gtGeneralConfigForPreemptions: IGtGeneralConfig;
|
|
108
|
+
private spotsApprovalEditModal;
|
|
109
|
+
private spotsApprovalEditModalRef;
|
|
110
|
+
title: string;
|
|
111
|
+
MGTableTitle: string;
|
|
112
|
+
validationResponse: IValidateEditedOffersResponse;
|
|
113
|
+
totalBookedRatingOfPE: number;
|
|
114
|
+
totalBookedRateOfPE: number;
|
|
115
|
+
messageBoxData: MessageBoxData;
|
|
116
|
+
validatedNotSavedYetData: IMakeGoodSpotInformationForEdit[];
|
|
117
|
+
validatedNotSavedYetPreemptionTableData: IPreemptionSpotInformationForEdit[];
|
|
118
|
+
numberOftimesValidationFailed: number;
|
|
119
|
+
disableResetAllAvailableSpotsFilters: boolean;
|
|
120
|
+
applyFilteringAndSortingForSpotsMeetingBizRulesTable: boolean;
|
|
121
|
+
applyFilteringAndSortingForOtherSpotsTable: boolean;
|
|
122
|
+
applyFilteringAndSortingForOfferedSpotsTable: boolean;
|
|
123
|
+
applyFilteringAndSortingForRotatorsTable: boolean;
|
|
124
|
+
resetFiltersForOfferedTable: boolean;
|
|
125
|
+
resetFiltersForOtherSpotsTable: boolean;
|
|
126
|
+
resetFiltersForRotatorsTable: boolean;
|
|
127
|
+
weekcalendarConfig: IWeekCalendar;
|
|
128
|
+
weekcalendarConfigForRotatorsTable: IWeekCalendar;
|
|
129
|
+
fromDate: NgbDateStruct;
|
|
130
|
+
toDate: NgbDateStruct;
|
|
131
|
+
selectWeekForDate: NgbDate;
|
|
132
|
+
noOfMonthsQuarterYearToEnableInPast: number;
|
|
133
|
+
noOfMonthsQuarterYearToEnableInFuture: number;
|
|
134
|
+
fromDateForFetchingRotators: NgbDateStruct;
|
|
135
|
+
toDateForFetchingRotators: NgbDateStruct;
|
|
136
|
+
selectedDateForFetchingRotators: NgbDate;
|
|
137
|
+
private confirmPoliticalRateviolationsAndSaveModal;
|
|
138
|
+
confirmPoliticalRateviolationsAndSaveModalReference: NgbModalRef;
|
|
139
|
+
openPoliticalRateViolationViewPopup: boolean;
|
|
140
|
+
politicalViolationData: {
|
|
141
|
+
key: string;
|
|
142
|
+
value: string;
|
|
143
|
+
}[];
|
|
144
|
+
minDate: NgbDate;
|
|
145
|
+
maxDate: NgbDate;
|
|
146
|
+
inventoryCodeSelectedForViewingSpots: string;
|
|
147
|
+
spotDetailsPopup: SpotDetailsPopupComponent;
|
|
148
|
+
openSpotDetailsPopup: boolean;
|
|
149
|
+
revenueClassList: IRevenueClassList[];
|
|
150
|
+
rowClickedForPoliticalRateViolation: IMakeGoodSpotInformationForEdit;
|
|
151
|
+
newlyAddedSpotsIdForPersistingActionInUI: {
|
|
152
|
+
spotId: string;
|
|
153
|
+
groupId: string;
|
|
154
|
+
}[];
|
|
155
|
+
showSkeletonLoaderInPreemptionTable: boolean;
|
|
156
|
+
openAddOtherOSSpotsPopup: boolean;
|
|
157
|
+
unselectedGroupableOutstandingSpots: IPreemptionSpotInformationForEdit[];
|
|
158
|
+
totalRowInfoForPreemptionTable: ITotalRowInfo[];
|
|
159
|
+
decimalPlacesCountAllowedInRatesMgTable: number;
|
|
160
|
+
private timerComponent;
|
|
161
|
+
constructor(cdr: ChangeDetectorRef, modalService: NgbModal, currencyPipe: CurrencyPipe, toastr: ToastrService, ngxService: NgxUiLoaderService, annaGlobalConfig: AnnaGlobalConfigService, dateTimeFormatService: AnnaDateTimeFormatService, weekCalendarService: WeekCalendarService, createOrEditOffersService: CreateOrEditOffersService, consumingProjectSpotsApprovalBackendService: ISpotsApprovalBackendService);
|
|
162
|
+
setWeekcalendarConfig(selectCurrentWeek: boolean): void;
|
|
163
|
+
detectChanges(): void;
|
|
164
|
+
ngOnInit(): void;
|
|
165
|
+
createEstimatePriorityListForGuidelines(): void;
|
|
166
|
+
openModal(): void;
|
|
167
|
+
closeModal(): void;
|
|
168
|
+
formatDataForOSPE(): void;
|
|
169
|
+
setMinMaxDates(): void;
|
|
170
|
+
setSelectedWeekForOSPE(): void;
|
|
171
|
+
setTableHeaders(): void;
|
|
172
|
+
formatDataForTable(): void;
|
|
173
|
+
prepareDataForPreemptionTable(): void;
|
|
174
|
+
prepareDataForMGTable(): void;
|
|
175
|
+
createTotalRowForPreemptionTable(): void;
|
|
176
|
+
createTotalRowForOfferedMGTable(): void;
|
|
177
|
+
getEditGroupPayload(): EditMakeGoodGroupNewPayload | EditGroupPayload;
|
|
178
|
+
getFreeFlowSpotsPayload(): FreeFlowSpotsPayload;
|
|
179
|
+
getRotatorsPayload(): FreeFlowSpotsPayload;
|
|
180
|
+
fetchAllSpotsMeetingBizRulesAndRevClassData(): void;
|
|
181
|
+
fetchOtherFreeFlowSpots(): void;
|
|
182
|
+
fetchRotators(): void;
|
|
183
|
+
createEditGroupPayload(): EditGroupPayload;
|
|
184
|
+
createEditGroupNewPayload(): EditMakeGoodGroupNewPayload;
|
|
185
|
+
cancelClicked(): void;
|
|
186
|
+
editableInputEdited(event: {
|
|
187
|
+
row: any;
|
|
188
|
+
value: string;
|
|
189
|
+
keyEdited: string;
|
|
190
|
+
}): void;
|
|
191
|
+
buyerProgramNameEdited(event: {
|
|
192
|
+
row: any;
|
|
193
|
+
value: string;
|
|
194
|
+
keyEdited: string;
|
|
195
|
+
}): void;
|
|
196
|
+
ratingOrIMPSEdited(event: {
|
|
197
|
+
row: any;
|
|
198
|
+
value: string;
|
|
199
|
+
keyEdited: string;
|
|
200
|
+
}): void;
|
|
201
|
+
rateEditedFromGTTable(event: {
|
|
202
|
+
row: any;
|
|
203
|
+
value: string;
|
|
204
|
+
keyEdited: string;
|
|
205
|
+
}): void;
|
|
206
|
+
rateEdited(event: {
|
|
207
|
+
row: any;
|
|
208
|
+
value: string;
|
|
209
|
+
keyEdited: string;
|
|
210
|
+
}): void;
|
|
211
|
+
offeredMGTableActionClicked(event: {
|
|
212
|
+
data: IMakeGoodSpotInformationForEdit;
|
|
213
|
+
id: any;
|
|
214
|
+
isIconClicked: boolean;
|
|
215
|
+
}): void;
|
|
216
|
+
checkIfSingleOfferPresent(): void;
|
|
217
|
+
spotsMeetingBizRulesActionClicked(event: {
|
|
218
|
+
data: IAvailableSpotInformationForEdit;
|
|
219
|
+
id: any;
|
|
220
|
+
}): void;
|
|
221
|
+
freeFlowSpotsActionClicked(event: {
|
|
222
|
+
data: IAvailableSpotInformationForEdit;
|
|
223
|
+
id: any;
|
|
224
|
+
}): void;
|
|
225
|
+
rotatorsActionClicked(event: {
|
|
226
|
+
data: IAvailableSpotInformationForEdit;
|
|
227
|
+
id: any;
|
|
228
|
+
}): void;
|
|
229
|
+
addRowToMakeGoodTable(data: IAvailableSpotInformationForEdit): void;
|
|
230
|
+
showBookedImpsOrRatingTableCellError(obj: IMakeGoodSpotInformationForEdit | MakeGoodSpotInformationForEdit): void;
|
|
231
|
+
showBookedRateTableCellError(obj: IMakeGoodSpotInformationForEdit | MakeGoodSpotInformationForEdit): void;
|
|
232
|
+
reArrangeRemovedSpotsAndCalculateTotalRow(event: IMakeGoodSpotInformationForEdit[]): void;
|
|
233
|
+
createPayloadForValidation(): IValidateEditedOffersPayload;
|
|
234
|
+
replaceActualValuesWithEditValuesForValidateOrSave(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
235
|
+
returnModifiedSpots(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
236
|
+
returnOnlyBuyerprogramnameModifiedSpots(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
237
|
+
returnMakeGoodSpots(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
238
|
+
returnNewlyAddedMeetingBizRulesSpots(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
239
|
+
returnNewlyAddedSpots(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
240
|
+
returnRemovedSpots(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
241
|
+
returnUndoSpots(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
242
|
+
returnFreeFlowSpots(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
243
|
+
returnFreeFlowSpotsAddedInCurrentEditSession(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
244
|
+
returnUnmodifiedMakegoodSpots(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
245
|
+
returnNewlyAddedSpotsForPersistingActionInUI(data: IMakeGoodSpotInformationForEdit[]): {
|
|
246
|
+
spotId: string;
|
|
247
|
+
groupId: string;
|
|
248
|
+
}[];
|
|
249
|
+
createPayloadSave(): ISaveEditedOffersPayload;
|
|
250
|
+
validate(): void;
|
|
251
|
+
setValidationErrors(): void;
|
|
252
|
+
setValidationErrorForRow(item: IMakeGoodSpotInformationForEdit): void;
|
|
253
|
+
setValidationMessage(hasError: boolean): void;
|
|
254
|
+
save(): void;
|
|
255
|
+
saveOfferedOrEditedMakegoods(): void;
|
|
256
|
+
saveEditedOfferesForPreemption(): void;
|
|
257
|
+
checkIfValidationSuccessful(): boolean;
|
|
258
|
+
enableDisableButtons(): void;
|
|
259
|
+
checkIfChangesPendingForSave(): void;
|
|
260
|
+
checkIfChangesPendingForValidate(): void;
|
|
261
|
+
revenueClassEditedFromGTTable(event: {
|
|
262
|
+
selectedItem: {
|
|
263
|
+
id: number;
|
|
264
|
+
text: string;
|
|
265
|
+
};
|
|
266
|
+
row: IMakeGoodSpotInformationForEdit;
|
|
267
|
+
dropdownIndex: number;
|
|
268
|
+
}): void;
|
|
269
|
+
revenueClassEdited(event: {
|
|
270
|
+
selectedItem: {
|
|
271
|
+
id: number;
|
|
272
|
+
text: string;
|
|
273
|
+
};
|
|
274
|
+
row: IMakeGoodSpotInformationForEdit;
|
|
275
|
+
dropdownIndex: number;
|
|
276
|
+
}): void;
|
|
277
|
+
sortingAppliedToOfferedMGTable(event: IMakeGoodSpotInformationForEdit[]): void;
|
|
278
|
+
filterAppliedToOfferedMGTable(event: IMakeGoodSpotInformationForEdit[]): void;
|
|
279
|
+
resetFiltersForMGTable(): void;
|
|
280
|
+
resetFiltersInOtherSpotsTable(): void;
|
|
281
|
+
resetFiltersInRotatorsTable(): void;
|
|
282
|
+
rearrangeRemovedSpotsToBottom(data: IMakeGoodSpotInformationForEdit[]): IMakeGoodSpotInformationForEdit[];
|
|
283
|
+
removeTooltipOnScroll(e: any): void;
|
|
284
|
+
filterSortingAppliedToSpotsMeetingBizRulesTable(tableData: IAvailableSpotInformationForEdit[]): void;
|
|
285
|
+
filterSortingAppliedToOtherSpotsTable(tableData: IAdditionInformationForFreeFlowSpot[]): void;
|
|
286
|
+
filterSortingAppliedToRotatorsTable(tableData: IAdditionInformationForFreeFlowSpot[]): void;
|
|
287
|
+
applyWeekSelection(event: {
|
|
288
|
+
startDate: string;
|
|
289
|
+
endDate: string;
|
|
290
|
+
}[]): void;
|
|
291
|
+
getStartAndEndDates(startDateInNgbDateFormat: NgbDateStruct, endDateInNgbDateFormat: NgbDateStruct): {
|
|
292
|
+
selectedWeekStartDate: string;
|
|
293
|
+
selectedWeekEndDate: string;
|
|
294
|
+
};
|
|
295
|
+
applyWeekSelectionForRotators(event: {
|
|
296
|
+
startDate: string;
|
|
297
|
+
endDate: string;
|
|
298
|
+
}[]): void;
|
|
299
|
+
closeConfirmPoliticalRateviolationsAndSaveModal(): void;
|
|
300
|
+
openConfirmPoliticalRateviolationsAndSaveModal(): void;
|
|
301
|
+
saveOffers(): void;
|
|
302
|
+
openPoliticalRateViolationViewModal(rowData: IMakeGoodSpotInformationForEdit): void;
|
|
303
|
+
closePoliticalRateViolationViewModal(): void;
|
|
304
|
+
autoAssignPriorityCodeForGivenLURViolation(): void;
|
|
305
|
+
openSpotDetailsModal(object: {
|
|
306
|
+
inventoryCodeId: number;
|
|
307
|
+
inventoryCode: string;
|
|
308
|
+
weekStartDate: string;
|
|
309
|
+
date: string;
|
|
310
|
+
}): void;
|
|
311
|
+
addOtherOSSpots(): void;
|
|
312
|
+
closeAddOtherOSSpotsPopup(): void;
|
|
313
|
+
disableEnableActionInSpotsMeetingBizRulesTable(): void;
|
|
314
|
+
checkIfSingleOSPEPresent(): void;
|
|
315
|
+
createOffersPreemptionTableRemoveActionClicked(event: {
|
|
316
|
+
data: IPreemptionSpotInformationForEdit;
|
|
317
|
+
id: any;
|
|
318
|
+
isIconClicked: boolean;
|
|
319
|
+
}): void;
|
|
320
|
+
applyClickedAddOtherOSSpotsPopup(event: IOSPESpotsData[]): void;
|
|
321
|
+
timeInputsValuesChangedInMGTable(obj: {
|
|
322
|
+
selectedTime: string[][];
|
|
323
|
+
selectedTimeConverted: {
|
|
324
|
+
startTime: string;
|
|
325
|
+
endTime: string;
|
|
326
|
+
};
|
|
327
|
+
rowData: IMakeGoodSpotInformationForEdit;
|
|
328
|
+
}): void;
|
|
329
|
+
lockTimedOut(): void;
|
|
330
|
+
resetTimer(): void;
|
|
331
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreateOrEditOffersPopupComponent, never>;
|
|
332
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CreateOrEditOffersPopupComponent, "anna-feature-create-or-edit-offers-popup", never, { "enableRevenueClassEdit": { "alias": "enableRevenueClassEdit"; "required": false; }; "reofferComment": { "alias": "reofferComment"; "required": false; }; "showImpressions": { "alias": "showImpressions"; "required": false; }; "originalPreemptedSpots": { "alias": "originalPreemptedSpots"; "required": false; }; "originalOfferedMakegoods": { "alias": "originalOfferedMakegoods"; "required": false; }; "originalGroupableOutstandingSpots": { "alias": "originalGroupableOutstandingSpots"; "required": false; }; "stationId": { "alias": "stationId"; "required": false; }; "bizRulesFromDb": { "alias": "bizRulesFromDb"; "required": false; }; "buyerOrderId": { "alias": "buyerOrderId"; "required": false; }; "spDayparts": { "alias": "spDayparts"; "required": false; }; "broadcastTime": { "alias": "broadcastTime"; "required": false; }; "loggedInUser": { "alias": "loggedInUser"; "required": false; }; "isCreateOffer": { "alias": "isCreateOffer"; "required": false; }; "isNoRevision": { "alias": "isNoRevision"; "required": false; }; "timezone": { "alias": "timezone"; "required": false; }; "tgId": { "alias": "tgId"; "required": false; }; "isReofferFlow": { "alias": "isReofferFlow"; "required": false; }; "IsBadlyBehavedGroup": { "alias": "IsBadlyBehavedGroup"; "required": false; }; "orderData": { "alias": "orderData"; "required": false; }; }, { "editSaved": "editSaved"; "cancelButtonClicked": "cancelButtonClicked"; "resetTimerAfterUserAction": "resetTimerAfterUserAction"; "lockTimedOutEmit": "lockTimedOutEmit"; }, never, never, true, never>;
|
|
333
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { AnnaGlobalConfigService, IGtGeneralConfig, IGtTableHeader } from "@annalib/anna-core";
|
|
3
|
+
import { MessageBoxData } from "@annalib/anna-design-components-lib";
|
|
4
|
+
import { NgbModal, NgbModalRef } from "@ng-bootstrap/ng-bootstrap";
|
|
5
|
+
import { AdditionalSpotInformation } from "../models/anna-revisions-response.model";
|
|
6
|
+
import { SpotsApprovalService } from "../services/spots-approval.service";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CreditConfirmationTablePopupComponent implements OnInit, OnChanges {
|
|
9
|
+
private modalService;
|
|
10
|
+
private annaGlobalConfig;
|
|
11
|
+
private cdRef;
|
|
12
|
+
private spotsApprovalService;
|
|
13
|
+
creditedSpots: AdditionalSpotInformation[];
|
|
14
|
+
orderMetric: "CPM" | "CPP";
|
|
15
|
+
tableHeaders: IGtTableHeader[];
|
|
16
|
+
submitClicked: EventEmitter<{
|
|
17
|
+
mfcRejectComments: string[];
|
|
18
|
+
excludeFutureOffers: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
cancel: EventEmitter<any>;
|
|
21
|
+
userActed: EventEmitter<any>;
|
|
22
|
+
showRejectionCommentSection: boolean;
|
|
23
|
+
modalTitle: string;
|
|
24
|
+
showSkeletonLoading: boolean;
|
|
25
|
+
clonedCreditedSpots: AdditionalSpotInformation[];
|
|
26
|
+
gtDimension: {
|
|
27
|
+
rowHeight: number;
|
|
28
|
+
headerHeight: number;
|
|
29
|
+
dataOnTopHeight: number;
|
|
30
|
+
marginFromBottom: number;
|
|
31
|
+
};
|
|
32
|
+
gtGeneralConfig: IGtGeneralConfig;
|
|
33
|
+
showExludePreemptionsFromFutureOffers: boolean;
|
|
34
|
+
private creditModal;
|
|
35
|
+
creditModalReference: NgbModalRef;
|
|
36
|
+
offerRejectedReasonAndCommentPopupData: {
|
|
37
|
+
reasons: {
|
|
38
|
+
title: string;
|
|
39
|
+
isSelected: boolean;
|
|
40
|
+
}[];
|
|
41
|
+
comment: any;
|
|
42
|
+
isDisabled: boolean;
|
|
43
|
+
disableApply: boolean;
|
|
44
|
+
excludeFutureOffers: boolean;
|
|
45
|
+
disableCommentBox: boolean;
|
|
46
|
+
commentBoxPlaceholder: string;
|
|
47
|
+
};
|
|
48
|
+
rejectionReasonHasSpecialCharacter: boolean;
|
|
49
|
+
markForCreditMsgBox: MessageBoxData;
|
|
50
|
+
constructor(modalService: NgbModal, annaGlobalConfig: AnnaGlobalConfigService, cdRef: ChangeDetectorRef, spotsApprovalService: SpotsApprovalService);
|
|
51
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
52
|
+
ngOnInit(): void;
|
|
53
|
+
setMessageData(): void;
|
|
54
|
+
intialiseOfferRejectionReasonAndCommentModal(): void;
|
|
55
|
+
disableEnableOfferRejectedReasonAndCommentPopupApplyButton(): void;
|
|
56
|
+
isCommentEmpty(): boolean;
|
|
57
|
+
isOfferRejectionReasonsChanged(): boolean;
|
|
58
|
+
reasonTextChanged(event: any): void;
|
|
59
|
+
changesMadeInCommentBox(e: any): void;
|
|
60
|
+
offerRejectionReasonCheckedOrUnchecked(index: number): void;
|
|
61
|
+
applyOfferRejectionReasonSelectedAndComment(): void;
|
|
62
|
+
prepareCommentsArray(): string[];
|
|
63
|
+
excludeFutureOffers(): void;
|
|
64
|
+
updateTableColumnWidth(): void;
|
|
65
|
+
genericCreditTableRadioButtonSelected(event: any): void;
|
|
66
|
+
goToNextSectionAddingRejectionComment(): void;
|
|
67
|
+
backButtonClicked(): void;
|
|
68
|
+
closeModal(): void;
|
|
69
|
+
openModal(): void;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreditConfirmationTablePopupComponent, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CreditConfirmationTablePopupComponent, "anna-feature-credit-confirmation-table-popup", never, { "creditedSpots": { "alias": "creditedSpots"; "required": false; }; "orderMetric": { "alias": "orderMetric"; "required": false; }; "tableHeaders": { "alias": "tableHeaders"; "required": false; }; }, { "submitClicked": "submitClicked"; "cancel": "cancel"; "userActed": "userActed"; }, never, never, true, never>;
|
|
72
|
+
}
|