@base-framework/base 3.0.207 → 3.0.209
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.
|
@@ -208,7 +208,8 @@ export class Router {
|
|
|
208
208
|
*/
|
|
209
209
|
protected checkActiveRoutes(path?: string): void;
|
|
210
210
|
/**
|
|
211
|
-
*
|
|
211
|
+
* Checks all switch groups against the given path.
|
|
212
|
+
* Activates the first matching route or falls back to the first route in the group if none match.
|
|
212
213
|
*
|
|
213
214
|
* @protected
|
|
214
215
|
* @param {string} [path]
|
|
@@ -216,14 +217,16 @@ export class Router {
|
|
|
216
217
|
*/
|
|
217
218
|
protected checkSwitches(path?: string): void;
|
|
218
219
|
/**
|
|
219
|
-
*
|
|
220
|
+
* Checks a single group of routes against the path.
|
|
221
|
+
* Selects the first matching route if any; otherwise selects the first route.
|
|
222
|
+
* Deactivates previously active routes if changed.
|
|
220
223
|
*
|
|
221
224
|
* @protected
|
|
222
|
-
* @param {object} group
|
|
225
|
+
* @param {object[]} group
|
|
223
226
|
* @param {string} path
|
|
224
227
|
* @returns {void}
|
|
225
228
|
*/
|
|
226
|
-
protected checkGroup(group: object, path: string): void;
|
|
229
|
+
protected checkGroup(group: object[], path: string): void;
|
|
227
230
|
/**
|
|
228
231
|
* This will check if a route matches the path.
|
|
229
232
|
*
|