@salesforcedevs/dx-components 0.64.1 → 0.64.3
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.3",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"@types/lodash.get": "^4.4.6",
|
|
26
26
|
"@types/vimeo__player": "^2.16.2"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "dd1cfed5c20c6d555f40b8f3d6d07b5670b25967"
|
|
29
29
|
}
|
|
@@ -3,6 +3,8 @@ import cx from "classnames";
|
|
|
3
3
|
import { toDxColor } from "dxUtils/css";
|
|
4
4
|
import { track } from "dxUtils/analytics";
|
|
5
5
|
|
|
6
|
+
export const ANALYTICS_EVENT_NAME = "custEv_ctaLinkClick";
|
|
7
|
+
|
|
6
8
|
export default class CardCallout extends LightningElement {
|
|
7
9
|
@api backgroundColor: string = "indigo-vibrant-40";
|
|
8
10
|
@api color: string = "white";
|
|
@@ -28,10 +30,12 @@ export default class CardCallout extends LightningElement {
|
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
private sendGtm(e: PointerEvent) {
|
|
31
|
-
track(e.currentTarget,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
track(e.currentTarget, ANALYTICS_EVENT_NAME, {
|
|
34
|
+
clickURL: this.href,
|
|
35
|
+
itemTitle: this.title,
|
|
36
|
+
clickText: this.label,
|
|
37
|
+
elementType: "card callout",
|
|
38
|
+
destinationType: "internal"
|
|
35
39
|
});
|
|
36
40
|
}
|
|
37
41
|
}
|
|
@@ -69,8 +69,11 @@ export default class Popover extends LightningElement {
|
|
|
69
69
|
this.control.setAttribute("aria-expanded", "true");
|
|
70
70
|
|
|
71
71
|
this.dispatchEvent(new CustomEvent("open"));
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
|
|
73
|
+
setTimeout(() => {
|
|
74
|
+
this.setPosition();
|
|
75
|
+
this.attachListenersTopopover();
|
|
76
|
+
});
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
79
|
|
|
@@ -272,6 +275,7 @@ export default class Popover extends LightningElement {
|
|
|
272
275
|
|
|
273
276
|
private setPosition = async () => {
|
|
274
277
|
if (this.popover && this.control) {
|
|
278
|
+
await Promise.resolve();
|
|
275
279
|
const popoverEl = this.popover;
|
|
276
280
|
|
|
277
281
|
computePosition(this.control, popoverEl, {
|