@base-framework/base 3.7.34 → 3.7.35

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.
@@ -265,6 +265,15 @@ export class Router {
265
265
  * @returns {void}
266
266
  */
267
267
  select(route: object): void;
268
+ /**
269
+ * This will scroll to a target element by CSS selector.
270
+ * If the current scroll position is at or below the target,
271
+ * it scrolls the target to the top of the viewport.
272
+ *
273
+ * @param {string} selector
274
+ * @returns {void}
275
+ */
276
+ scrollToTarget(selector: string): void;
268
277
  /**
269
278
  * This will check to scroll to the top of the page.
270
279
  *
@@ -35,6 +35,7 @@ export class Route extends BasicData {
35
35
  callBack: any;
36
36
  title: any;
37
37
  preventScroll: any;
38
+ scrollTo: any;
38
39
  /**
39
40
  * This will setup the route settings.
40
41
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.7.34",
3
+ "version": "3.7.35",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",