@base-framework/base 3.7.70 → 3.7.71
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/dist/base.js +1 -1
- package/dist/base.js.map +3 -3
- package/dist/types/modules/router/router.d.ts +15 -13
- package/package.json +1 -1
|
@@ -155,6 +155,21 @@ export class Router {
|
|
|
155
155
|
* @returns {number} the switch id.
|
|
156
156
|
*/
|
|
157
157
|
resumeSwitch(group: Array<object>, container: object): number;
|
|
158
|
+
/**
|
|
159
|
+
* Runs `checkGroup` for a switch group that is being registered
|
|
160
|
+
* mid-render (after `checkActiveRoutes` has already applied its
|
|
161
|
+
* scroll intent). Any scroll intent produced here is consumed
|
|
162
|
+
* silently — we only use it to seed `lastScrollGroup` so the
|
|
163
|
+
* very first sibling-tab click on this page is recognized as a
|
|
164
|
+
* sibling switch instead of being treated as fresh navigation.
|
|
165
|
+
*
|
|
166
|
+
* @protected
|
|
167
|
+
* @param {*} id
|
|
168
|
+
* @param {object[]} switchArray
|
|
169
|
+
* @returns {void}
|
|
170
|
+
*/
|
|
171
|
+
protected checkGroupForRegistration(id: any, switchArray: object[]): void;
|
|
172
|
+
scrollIntent: any;
|
|
158
173
|
/**
|
|
159
174
|
* This will get a switch group by id.
|
|
160
175
|
*
|
|
@@ -246,19 +261,6 @@ export class Router {
|
|
|
246
261
|
* @param {string} [path]
|
|
247
262
|
*/
|
|
248
263
|
protected checkActiveRoutes(path?: string): void;
|
|
249
|
-
/**
|
|
250
|
-
* Reset scroll intent before checking routes.
|
|
251
|
-
* Routes will set this during select().
|
|
252
|
-
*/
|
|
253
|
-
scrollIntent: {
|
|
254
|
-
type: string;
|
|
255
|
-
selector: any;
|
|
256
|
-
groupId: any;
|
|
257
|
-
} | {
|
|
258
|
-
type: string;
|
|
259
|
-
selector?: undefined;
|
|
260
|
-
groupId?: undefined;
|
|
261
|
-
};
|
|
262
264
|
/**
|
|
263
265
|
* Checks all switch groups against the given path.
|
|
264
266
|
* Activates the first matching route or falls back to the first route in the group if none match.
|