framework7 6.3.15 → 6.3.16

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 6.3.15
2
+ * Framework7 6.3.16
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 19, 2022
10
+ * Released on: February 10, 2022
11
11
  */
12
12
 
13
13
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 6.3.15
2
+ * Framework7 6.3.16
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 19, 2022
10
+ * Released on: February 10, 2022
11
11
  */
12
12
 
13
13
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 6.3.15
2
+ * Framework7 6.3.16
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 19, 2022
10
+ * Released on: February 10, 2022
11
11
  */
12
12
 
13
13
  "use strict";
package/cjs/framework7.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 6.3.15
2
+ * Framework7 6.3.16
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 19, 2022
10
+ * Released on: February 10, 2022
11
11
  */
12
12
 
13
13
  "use strict";
@@ -29,7 +29,7 @@ function backward(router, el, backwardOptions) {
29
29
  var $el = (0, _dom.default)(el);
30
30
  var app = router.app;
31
31
  var view = router.view;
32
- var options = (0, _utils.extend)({
32
+ var options = (0, _utils.extend)(false, {
33
33
  animate: router.params.animate,
34
34
  browserHistory: true,
35
35
  replaceState: false
@@ -739,6 +739,15 @@ function back() {
739
739
 
740
740
  var previousPageRoute = $previousPage[0].f7Page.route;
741
741
 
742
+ if (navigateOptions.preload && $previousPage.hasClass('stacked')) {
743
+ loadBack(router, {
744
+ el: $previousPage
745
+ }, (0, _utils.extend)(navigateOptions, {
746
+ route: previousPageRoute
747
+ }));
748
+ return router;
749
+ }
750
+
742
751
  _processRouteQueue.default.call(router, previousPageRoute, router.currentRoute, function () {
743
752
  loadBack(router, {
744
753
  el: $previousPage
@@ -36,7 +36,7 @@ export namespace ListIndex {
36
36
  /** Related List View element. HTMLElement or string with CSS selector of List View element. */
37
37
  listEl?: HTMLElement | CSSSelector;
38
38
  /** Array with indexes. If not passed then it will automatically generate it based on item-divider and list-group-title elements inside of passed List View element in listEl parameter. (default auto) */
39
- indexes?: number[] | string; // ??
39
+ indexes?: string[] | string; // ??
40
40
  /** Will automatically scroll related List View to the selected index. (default true) */
41
41
  scrollList?: boolean;
42
42
  /** Enables label bubble with selected index when you swipe over list index. (default false) */
@@ -13,9 +13,9 @@ export namespace Notification {
13
13
  params: Parameters;
14
14
 
15
15
  /** Open notification */
16
- open(): Notification;
16
+ open(animate?: boolean): Notification;
17
17
  /** Close notification */
18
- close(): Notification;
18
+ close(animate?: boolean): Notification;
19
19
  }
20
20
 
21
21
  interface Parameters {
@@ -88,10 +88,10 @@ export namespace Notification {
88
88
  get(el: HTMLElement | CSSSelector): Notification;
89
89
 
90
90
  /** open Notification */
91
- open(el: HTMLElement | CSSSelector): Notification;
91
+ open(el: HTMLElement | CSSSelector, animate?: boolean): Notification;
92
92
 
93
93
  /** closes Notification */
94
- close(el: HTMLElement | CSSSelector): Notification;
94
+ close(el: HTMLElement | CSSSelector, animate?: boolean): Notification;
95
95
  };
96
96
  }
97
97
  interface AppParams {
@@ -43,6 +43,8 @@ export namespace Popup {
43
43
  swipeHandler?: HTMLElement | CSSSelector;
44
44
  /** When enabled it will push view behind on open. Works only when top safe area is in place. It can also be enabled by adding `popup-push` class to Popup element. (default false) */
45
45
  push?: boolean;
46
+ /** Element to mount modal to. (default app.el) */
47
+ containerEl?: HTMLElement | CSSSelector;
46
48
 
47
49
  /** Object with events handlers.. */
48
50
  on?: {
@@ -60,9 +60,9 @@ export namespace Toast {
60
60
  params: Parameters;
61
61
 
62
62
  /** Open toast */
63
- open(): Toast;
63
+ open(animate?: boolean): Toast;
64
64
  /** Close toast */
65
- close(): Toast;
65
+ close(animate?: boolean): Toast;
66
66
  /** Destroy toast */
67
67
  destroy(): void;
68
68
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 6.3.15
2
+ * Framework7 6.3.16
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 19, 2022
10
+ * Released on: February 10, 2022
11
11
  */
12
12
 
13
13
  import $ from './shared/dom7';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 6.3.15
2
+ * Framework7 6.3.16
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 19, 2022
10
+ * Released on: February 10, 2022
11
11
  */
12
12
 
13
13
  import $ from './shared/dom7';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 6.3.15
2
+ * Framework7 6.3.16
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 19, 2022
10
+ * Released on: February 10, 2022
11
11
  */
12
12
 
13
13
  import $ from './shared/dom7';
package/esm/framework7.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 6.3.15
2
+ * Framework7 6.3.16
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 19, 2022
10
+ * Released on: February 10, 2022
11
11
  */
12
12
 
13
13
  import $ from './shared/dom7';
@@ -14,7 +14,7 @@ function backward(router, el, backwardOptions) {
14
14
  var $el = $(el);
15
15
  var app = router.app;
16
16
  var view = router.view;
17
- var options = extend({
17
+ var options = extend(false, {
18
18
  animate: router.params.animate,
19
19
  browserHistory: true,
20
20
  replaceState: false
@@ -722,6 +722,16 @@ function back() {
722
722
  }
723
723
 
724
724
  var previousPageRoute = $previousPage[0].f7Page.route;
725
+
726
+ if (navigateOptions.preload && $previousPage.hasClass('stacked')) {
727
+ loadBack(router, {
728
+ el: $previousPage
729
+ }, extend(navigateOptions, {
730
+ route: previousPageRoute
731
+ }));
732
+ return router;
733
+ }
734
+
725
735
  processRouteQueue.call(router, previousPageRoute, router.currentRoute, function () {
726
736
  loadBack(router, {
727
737
  el: $previousPage
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 6.3.15
2
+ * Framework7 6.3.16
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 19, 2022
10
+ * Released on: February 10, 2022
11
11
  */
12
12
 
13
13
  /*====================