@annalib/anna-core 28.6.19 → 28.6.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.
- package/esm2022/lib/anna-core-shared-lib/services/anna-filter.service.mjs +23 -4
- package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +17 -3
- package/fesm2022/annalib-anna-core.mjs +38 -5
- package/fesm2022/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/anna-common-scss/_email-button.scss +89 -0
|
@@ -2001,6 +2001,7 @@ class AnnaFilterService {
|
|
|
2001
2001
|
"ViolatingSpotDate",
|
|
2002
2002
|
"ViolatedSpotDate",
|
|
2003
2003
|
"ActualWeekStartDate",
|
|
2004
|
+
"LastFetchedDate",
|
|
2004
2005
|
];
|
|
2005
2006
|
const timeArr = [
|
|
2006
2007
|
"StartTimeForFilter",
|
|
@@ -2128,7 +2129,8 @@ class AnnaFilterService {
|
|
|
2128
2129
|
this.selectedRadio === "GeneratedOn" ||
|
|
2129
2130
|
this.selectedRadio === "Week" ||
|
|
2130
2131
|
this.selectedRadio === "ActualWeekStartDate" ||
|
|
2131
|
-
this.selectedRadio === "scheduledDate"
|
|
2132
|
+
this.selectedRadio === "scheduledDate" ||
|
|
2133
|
+
this.selectedRadio === "LastFetchedDate") {
|
|
2132
2134
|
isDataFiltered =
|
|
2133
2135
|
!isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) && !isEqual(this.tooltipSelectedMap.get(this.selectedRadio), this.flightDateRange);
|
|
2134
2136
|
if (!isDataFiltered && this.tooltipSelectedMap.has(this.selectedRadio)) {
|
|
@@ -2198,7 +2200,8 @@ class AnnaFilterService {
|
|
|
2198
2200
|
key === "ActualWeekStartDate" ||
|
|
2199
2201
|
key === "ViolatedSpotDate" ||
|
|
2200
2202
|
key === "ViolatingSpotDate" ||
|
|
2201
|
-
key === "scheduledDate"
|
|
2203
|
+
key === "scheduledDate" ||
|
|
2204
|
+
key === "LastFetchedDate") {
|
|
2202
2205
|
filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
|
|
2203
2206
|
}
|
|
2204
2207
|
else if (key === "period") {
|
|
@@ -2403,7 +2406,8 @@ class AnnaFilterService {
|
|
|
2403
2406
|
key === "ActualWeekStartDate" ||
|
|
2404
2407
|
key === "ViolatedSpotDate" ||
|
|
2405
2408
|
key === "ViolatingSpotDate" ||
|
|
2406
|
-
key === "scheduledDate"
|
|
2409
|
+
key === "scheduledDate" ||
|
|
2410
|
+
key === "LastFetchedDate") {
|
|
2407
2411
|
filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
|
|
2408
2412
|
}
|
|
2409
2413
|
else if (key === "period") {
|
|
@@ -3182,6 +3186,21 @@ class AnnaFilterService {
|
|
|
3182
3186
|
});
|
|
3183
3187
|
});
|
|
3184
3188
|
}
|
|
3189
|
+
// for date type of filters we need to update tooltip selected map start and end date values to dayjs object.
|
|
3190
|
+
updateDateFilterTooltipSelectedMap(keys) {
|
|
3191
|
+
keys.forEach((key) => {
|
|
3192
|
+
if (this.tooltipSelectedMap?.has(key)) {
|
|
3193
|
+
const dateRange = this.tooltipSelectedMap.get(key);
|
|
3194
|
+
if (dateRange?.fromDate && dateRange?.toDate) {
|
|
3195
|
+
const selectedDateObj = {
|
|
3196
|
+
fromDate: dayjs(dateRange.fromDate),
|
|
3197
|
+
toDate: dayjs(dateRange.toDate),
|
|
3198
|
+
};
|
|
3199
|
+
this.tooltipSelectedMap.set(key, selectedDateObj);
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
});
|
|
3203
|
+
}
|
|
3185
3204
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaFilterService, deps: [{ token: AnnaDateTimeFormatService }, { token: AnnaSortService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3186
3205
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaFilterService, providedIn: "root" }); }
|
|
3187
3206
|
}
|
|
@@ -4747,8 +4766,6 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4747
4766
|
// this.tooltipRadioTextMap.set("odValue", "$ OD");
|
|
4748
4767
|
this.tooltipRadioTextMap.set("udValue", "Proj. $ UD");
|
|
4749
4768
|
this.tooltipRadioTextMap.set("odValue", "Proj. $ OD");
|
|
4750
|
-
this.tooltipRadioTextMap.set("buyerNames", "Buyers");
|
|
4751
|
-
this.tooltipRadioTextMap.set("repUserNames", "Reps");
|
|
4752
4769
|
this.tooltipRadioTextMap.set("InventoryCode", "Inventory Code");
|
|
4753
4770
|
this.tooltipRadioTextMap.set("BuyerProgramName", "Buyer Program Name");
|
|
4754
4771
|
this.tooltipRadioTextMap.set("StartTime", "Start Time");
|
|
@@ -4791,6 +4808,22 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4791
4808
|
this.tooltipRadioTextMap.set("SellerProgInvCode", "Seller Pgm (Inv Code)");
|
|
4792
4809
|
this.tooltipRadioTextMap.set("SellerProgramName", "Seller Program");
|
|
4793
4810
|
this.tooltipRadioTextMap.set("buyerProgramName", "Buyer Program");
|
|
4811
|
+
this.tooltipRadioTextMap.set("LastFetchedDate", "Last Fetched");
|
|
4812
|
+
this.tooltipRadioTextMap.set("bookedDps", "Booked Dps");
|
|
4813
|
+
this.tooltipRadioTextMap.set("totalBookedGrp", "Total Booked Grp");
|
|
4814
|
+
this.tooltipRadioTextMap.set("totalBookedImps", "Total Booked Imps");
|
|
4815
|
+
this.tooltipRadioTextMap.set("bookedGrpToDate", "Booked GRP To-Date");
|
|
4816
|
+
this.tooltipRadioTextMap.set("bookedImpsToDate", "Booked IMPS To-Date");
|
|
4817
|
+
this.tooltipRadioTextMap.set("goalGrpToDate", "Goal GRP To-Date");
|
|
4818
|
+
this.tooltipRadioTextMap.set("goalImpsToDate", "Goal IMPS To-Date");
|
|
4819
|
+
this.tooltipRadioTextMap.set("postedGrpToDate", "Posted GRP To-Date");
|
|
4820
|
+
this.tooltipRadioTextMap.set("postedImpsToDate", "Posted IMPS To-Date");
|
|
4821
|
+
this.tooltipRadioTextMap.set("udGrpToDate", "UD GRP To-Date");
|
|
4822
|
+
this.tooltipRadioTextMap.set("udImpsToDate", "UD IMPS To-Date");
|
|
4823
|
+
this.tooltipRadioTextMap.set("odGrpToDate", "OD GRP To-Date");
|
|
4824
|
+
this.tooltipRadioTextMap.set("odImpsToDate", "OD IMPS To-Date");
|
|
4825
|
+
this.tooltipRadioTextMap.set("scheduledADUs", "Scheduled ADUs");
|
|
4826
|
+
this.tooltipRadioTextMap.set("postedADUs", "Posted ADUs");
|
|
4794
4827
|
}
|
|
4795
4828
|
selectOrUnselectCheckbox(rowData, columnKeys, isCheckboxSelected) {
|
|
4796
4829
|
rowData[columnKeys] = !rowData[columnKeys];
|