@base-framework/base 3.7.38 → 3.7.39
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.
|
@@ -61,13 +61,16 @@ export class Component extends Unit {
|
|
|
61
61
|
}): void;
|
|
62
62
|
stateHelper: any;
|
|
63
63
|
/**
|
|
64
|
-
* This will resume the data
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
64
|
+
* This will resume the data during persistence. If setData()
|
|
65
|
+
* returns the same object reference as the persisted data,
|
|
66
|
+
* or returns nothing, we keep the persisted data as-is
|
|
67
|
+
* (preserving accumulated state like list items).
|
|
68
|
+
*
|
|
69
|
+
* If setData() returns a different object (e.g. an atom's
|
|
70
|
+
* closure created a new Data instance), we use that fresh
|
|
71
|
+
* instance so closure references stay valid, and merge
|
|
72
|
+
* any persisted properties that the fresh data does not
|
|
73
|
+
* already define.
|
|
71
74
|
*
|
|
72
75
|
* @protected
|
|
73
76
|
* @param {object|null} persistedData
|
|
@@ -285,8 +285,9 @@ export class Router {
|
|
|
285
285
|
applyScrollIntent(): void;
|
|
286
286
|
/**
|
|
287
287
|
* This will scroll to a target element by CSS selector.
|
|
288
|
-
*
|
|
289
|
-
*
|
|
288
|
+
* For sticky elements, it scrolls to the position where the
|
|
289
|
+
* element reaches its stuck point (natural position minus CSS top).
|
|
290
|
+
* If the user is above the target, no scrolling occurs.
|
|
290
291
|
*
|
|
291
292
|
* @param {string} selector
|
|
292
293
|
* @returns {void}
|