@salesforcedevs/dx-components 0.43.0-alpha.1 → 0.43.2-alpha1
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
|
@@ -27,13 +27,19 @@ export default class DropdownOption extends LightningElement {
|
|
|
27
27
|
new CustomEvent("select", { detail: this.keyValue })
|
|
28
28
|
);
|
|
29
29
|
|
|
30
|
+
const navHeading = this.navItemLabel || this.option.label || undefined;
|
|
31
|
+
const navSubHeading =
|
|
32
|
+
(this.navItemLabel ? this.option.label : undefined) || undefined;
|
|
33
|
+
|
|
34
|
+
const payload = {
|
|
35
|
+
navHeading,
|
|
36
|
+
navSubHeading,
|
|
37
|
+
clickText: this.keyValue || undefined,
|
|
38
|
+
pageLocation: window.location.pathname || undefined
|
|
39
|
+
};
|
|
40
|
+
|
|
30
41
|
if (this.analyticsEvent && e.currentTarget) {
|
|
31
|
-
track(e.currentTarget, this.analyticsEvent,
|
|
32
|
-
navHeading: this.navItemLabel || undefined,
|
|
33
|
-
navSubHeading: this.option.label || undefined,
|
|
34
|
-
clickText: this.keyValue || undefined,
|
|
35
|
-
pageLocation: window.location.pathname || undefined
|
|
36
|
-
});
|
|
42
|
+
track(e.currentTarget, this.analyticsEvent, payload);
|
|
37
43
|
}
|
|
38
44
|
}
|
|
39
45
|
}
|
|
@@ -94,8 +94,8 @@ export default class Footer extends LightningElement {
|
|
|
94
94
|
|
|
95
95
|
track(e.currentTarget, "custEv_ctaButtonClick", {
|
|
96
96
|
...ANALYTICS_INFO,
|
|
97
|
-
clickText:
|
|
98
|
-
clickUrl: href
|
|
97
|
+
clickText: this.inputSubmitLabel,
|
|
98
|
+
clickUrl: href
|
|
99
99
|
});
|
|
100
100
|
|
|
101
101
|
window.location.assign(href);
|