@base-framework/base 3.7.67 → 3.7.70
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.
|
@@ -60,6 +60,16 @@ export class Component extends Unit {
|
|
|
60
60
|
id: string;
|
|
61
61
|
}): void;
|
|
62
62
|
stateHelper: any;
|
|
63
|
+
/**
|
|
64
|
+
* Mark context as restored from persistence so the
|
|
65
|
+
* subsequent setupContext() call doesn't invoke the
|
|
66
|
+
* user's setContext() hook again — doing so would
|
|
67
|
+
* create a new context.data instance, leaving every
|
|
68
|
+
* still-attached watcher subscribed to the now-orphan
|
|
69
|
+
* persisted Data while writes (e.g. xhr callbacks
|
|
70
|
+
* using parent.context.data) target the new instance.
|
|
71
|
+
*/
|
|
72
|
+
_contextResumed: boolean;
|
|
63
73
|
/**
|
|
64
74
|
* This will resume the data during persistence.
|
|
65
75
|
*
|
|
@@ -25,13 +25,22 @@ export class Router {
|
|
|
25
25
|
*/
|
|
26
26
|
lastMatchedRoute: object | null;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* (
|
|
32
|
-
*
|
|
28
|
+
* Identifier of the switch group that owned the most recently
|
|
29
|
+
* applied scroll-target intent. When the next target intent
|
|
30
|
+
* comes from the same group it is treated as a sibling-tab
|
|
31
|
+
* switch (snap-to-sticky); when it comes from a different group
|
|
32
|
+
* (or no group) it is treated as a fresh page navigation and
|
|
33
|
+
* the page is reset to the top first.
|
|
34
|
+
* @type {*}
|
|
33
35
|
*/
|
|
34
|
-
|
|
36
|
+
lastScrollGroup: any;
|
|
37
|
+
/**
|
|
38
|
+
* Transient field set by `checkGroup` so `select` knows which
|
|
39
|
+
* switch group is currently asking for selection. Cleared after
|
|
40
|
+
* each group's iteration.
|
|
41
|
+
* @type {*}
|
|
42
|
+
*/
|
|
43
|
+
currentGroupId: any;
|
|
35
44
|
/**
|
|
36
45
|
* Monotonic token used to cancel pending scroll-target waits
|
|
37
46
|
* when a newer navigation begins.
|
|
@@ -244,9 +253,11 @@ export class Router {
|
|
|
244
253
|
scrollIntent: {
|
|
245
254
|
type: string;
|
|
246
255
|
selector: any;
|
|
256
|
+
groupId: any;
|
|
247
257
|
} | {
|
|
248
258
|
type: string;
|
|
249
259
|
selector?: undefined;
|
|
260
|
+
groupId?: undefined;
|
|
250
261
|
};
|
|
251
262
|
/**
|
|
252
263
|
* Checks all switch groups against the given path.
|