edvoyui-component-library-test-flight 0.0.149 → 0.0.150
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/package.json
CHANGED
|
@@ -1614,8 +1614,8 @@ const handleActiveItem = (activeItems: number) => {
|
|
|
1614
1614
|
};
|
|
1615
1615
|
|
|
1616
1616
|
// Stepper dynamic Data
|
|
1617
|
-
const allSteps = ['MQL','SAL','
|
|
1618
|
-
const currentStage = '
|
|
1617
|
+
const allSteps = ['MQL','SAL','PROSPECT','CUSTOMER']
|
|
1618
|
+
const currentStage = 'PROSPECT'
|
|
1619
1619
|
const lifeCycleHistory = [
|
|
1620
1620
|
{
|
|
1621
1621
|
"lifecycleStage": "MQL",
|
|
@@ -140,17 +140,7 @@ import { computed, PropType } from "vue";
|
|
|
140
140
|
|
|
141
141
|
const props = defineProps({
|
|
142
142
|
stepStatus: {
|
|
143
|
-
type: String
|
|
144
|
-
| "contact"
|
|
145
|
-
| "MQL"
|
|
146
|
-
| "SAL"
|
|
147
|
-
| "SQL"
|
|
148
|
-
| "opportunity"
|
|
149
|
-
| "Prospect"
|
|
150
|
-
| "Prospect Paid"
|
|
151
|
-
| "Prospect Enrolled"
|
|
152
|
-
| "Customer"
|
|
153
|
-
>,
|
|
143
|
+
type: String,
|
|
154
144
|
default: "contact",
|
|
155
145
|
},
|
|
156
146
|
steps: {
|
|
@@ -169,7 +159,7 @@ const props = defineProps({
|
|
|
169
159
|
},
|
|
170
160
|
history: {
|
|
171
161
|
type: Array as PropType<
|
|
172
|
-
Array<{ lifecycleStage?: string; updatedAt?: string }>
|
|
162
|
+
Array<{ lifecycleStage?: string; updatedAt?: string; updatedBy?: { email?: string } }>
|
|
173
163
|
>,
|
|
174
164
|
default: () => [],
|
|
175
165
|
},
|
|
@@ -215,36 +205,10 @@ const getStatus = computed(() => {
|
|
|
215
205
|
};
|
|
216
206
|
});
|
|
217
207
|
|
|
218
|
-
function normalizeStage(value?: string) {
|
|
219
|
-
if (!value) return undefined;
|
|
220
|
-
const v = value.toUpperCase();
|
|
221
|
-
switch (v) {
|
|
222
|
-
case "CONTACT":
|
|
223
|
-
return "contact";
|
|
224
|
-
case "MQL":
|
|
225
|
-
return "MQL";
|
|
226
|
-
case "SAL":
|
|
227
|
-
return "SAL";
|
|
228
|
-
case "SQL":
|
|
229
|
-
return "SQL";
|
|
230
|
-
case "OPPORTUNITY":
|
|
231
|
-
return "opportunity";
|
|
232
|
-
case "PROSPECT":
|
|
233
|
-
return "Prospect";
|
|
234
|
-
case "PROSPECT PAID":
|
|
235
|
-
return "Prospect Paid";
|
|
236
|
-
case "PROSPECT ENROLLED":
|
|
237
|
-
return "Prospect Enrolled";
|
|
238
|
-
case "CUSTOMER":
|
|
239
|
-
return "Customer";
|
|
240
|
-
default:
|
|
241
|
-
return undefined;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
208
|
|
|
245
209
|
function getFormattedDate(stepValue: string) {
|
|
246
210
|
const match = props.history.find(
|
|
247
|
-
(h) =>
|
|
211
|
+
(h) => h.lifecycleStage === stepValue
|
|
248
212
|
);
|
|
249
213
|
if (!match?.updatedAt) return "";
|
|
250
214
|
try {
|
|
@@ -269,10 +233,10 @@ function getFormattedDate(stepValue: string) {
|
|
|
269
233
|
|
|
270
234
|
function getUpdatedByEmail(stepValue: string) {
|
|
271
235
|
const match = props.history.find(
|
|
272
|
-
(h) =>
|
|
236
|
+
(h) => h.lifecycleStage === stepValue
|
|
273
237
|
);
|
|
274
|
-
const email =
|
|
275
|
-
return email ? `
|
|
238
|
+
const email = match?.updatedBy?.email as string | undefined;
|
|
239
|
+
return email ? `Updated by ${email}` : "";
|
|
276
240
|
}
|
|
277
241
|
</script>
|
|
278
242
|
<style lang="scss"></style>
|