@veloceapps/sdk 7.0.2-33 → 7.0.2-35
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/core/types/ui-definition.types.d.ts +1 -0
- package/esm2020/core/modules/configuration/helpers.mjs +3 -6
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +2 -1
- package/esm2020/core/types/ui-definition.types.mjs +1 -1
- package/esm2020/src/components/header/header.component.mjs +17 -16
- package/fesm2015/veloceapps-sdk-core.mjs +2 -5
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +17 -15
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +3 -5
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +16 -15
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1107,6 +1107,11 @@ class FlowHeaderComponent {
|
|
|
1107
1107
|
date.setHours(0, 0, 0, 0);
|
|
1108
1108
|
const now = date.getTime();
|
|
1109
1109
|
const termParentIds = lineItems.map(li => li.rampInstanceId).filter(Boolean);
|
|
1110
|
+
const lineItemsRampInstanceIdMap = lineItems.reduce((acc, li) => {
|
|
1111
|
+
var _a;
|
|
1112
|
+
acc[(_a = li.rampInstanceId) !== null && _a !== void 0 ? _a : ''] = li;
|
|
1113
|
+
return acc;
|
|
1114
|
+
}, {});
|
|
1110
1115
|
return lineItems.reduce((result, li) => {
|
|
1111
1116
|
// find main term line item
|
|
1112
1117
|
if (li.rampInstanceId) {
|
|
@@ -1115,23 +1120,20 @@ class FlowHeaderComponent {
|
|
|
1115
1120
|
// find current term line item
|
|
1116
1121
|
let target = li;
|
|
1117
1122
|
while (target && target.endDate && new Date(target.endDate).getTime() <= now) {
|
|
1118
|
-
target =
|
|
1123
|
+
target = lineItemsRampInstanceIdMap[li.id];
|
|
1119
1124
|
}
|
|
1120
1125
|
if (target && target.productId) {
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
nrr: this.formatMetric(target.properties.VDM_Total_NRR),
|
|
1133
|
-
},
|
|
1134
|
-
];
|
|
1126
|
+
result.push({
|
|
1127
|
+
id: target.id,
|
|
1128
|
+
productId: target.productId,
|
|
1129
|
+
name: target.name,
|
|
1130
|
+
configurable: target.properties['#configurable'] === 'true',
|
|
1131
|
+
deleted: target.actionCode === 'DELETE',
|
|
1132
|
+
hasTerm: termParentIds.includes(target.id),
|
|
1133
|
+
qty: target.qty,
|
|
1134
|
+
mrr: this.formatMetric(target.properties.VDM_Total_MRR),
|
|
1135
|
+
nrr: this.formatMetric(target.properties.VDM_Total_NRR),
|
|
1136
|
+
});
|
|
1135
1137
|
}
|
|
1136
1138
|
return result;
|
|
1137
1139
|
}, []);
|