@salesforcedevs/dw-components 1.3.213 → 1.3.214
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/dw-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.214",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/setimmediate": "^1.0.2",
|
|
25
25
|
"setimmediate": "^1.0.5"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "9e7c77ace387fd5b0aa4abd5d1ab160c6c902926"
|
|
28
28
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
force-initially-visible={forceInitiallyVisible}
|
|
6
6
|
initial-step-index={initialStepIndex}
|
|
7
7
|
lwc:ref="stepSequence"
|
|
8
|
+
onslotchange={handleStepSequenceSlotChange}
|
|
8
9
|
onstepsequencechange={handleStepSequenceChange}
|
|
9
10
|
optimize-position-after-animation="true"
|
|
10
11
|
session-storage-id={sessionStorageId}
|
|
@@ -275,6 +275,19 @@ export default class J2sCardSequence extends LightningElement {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
+
handleStepSequenceSlotChange() {
|
|
279
|
+
requestAnimationFrame(() => {
|
|
280
|
+
// After the slots have slotted and there's been time to animate, we know the browser's layout of the
|
|
281
|
+
// sequence has completed.
|
|
282
|
+
this.dispatchEvent(
|
|
283
|
+
new CustomEvent("j2ssequencelaidout", {
|
|
284
|
+
bubbles: true,
|
|
285
|
+
composed: true
|
|
286
|
+
})
|
|
287
|
+
);
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
278
291
|
handleGetStarted() {
|
|
279
292
|
// If the user is not yet logged in, we need to prevent moving immediately to the next
|
|
280
293
|
// step, but set storage up so that they are on the second step when they return to the
|