framework7 6.3.14 → 6.3.17

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.
Files changed (51) hide show
  1. package/cjs/components/progressbar/progressbar.js +1 -1
  2. package/cjs/framework7-bundle.js +3 -3
  3. package/cjs/framework7-lite-bundle.js +3 -3
  4. package/cjs/framework7-lite.js +3 -3
  5. package/cjs/framework7.js +3 -3
  6. package/cjs/modules/router/back.js +10 -1
  7. package/components/list-index/list-index.d.ts +1 -1
  8. package/components/notification/notification.d.ts +4 -4
  9. package/components/popup/popup.d.ts +2 -0
  10. package/components/preloader/preloader-ios.less +3 -0
  11. package/components/preloader/preloader-rtl.css +1 -1
  12. package/components/preloader/preloader.css +1 -1
  13. package/components/progressbar/progressbar-aurora.less +32 -13
  14. package/components/progressbar/progressbar-ios.less +19 -7
  15. package/components/progressbar/progressbar-md.less +64 -28
  16. package/components/progressbar/progressbar-rtl.css +1 -1
  17. package/components/progressbar/progressbar.css +1 -1
  18. package/components/progressbar/progressbar.js +1 -1
  19. package/components/progressbar/progressbar.less +16 -4
  20. package/components/toast/toast.d.ts +2 -2
  21. package/esm/components/progressbar/progressbar.js +1 -1
  22. package/esm/framework7-bundle.js +3 -3
  23. package/esm/framework7-lite-bundle.js +3 -3
  24. package/esm/framework7-lite.js +3 -3
  25. package/esm/framework7.js +3 -3
  26. package/esm/modules/router/back.js +11 -1
  27. package/framework7-bundle-rtl.css +24 -21
  28. package/framework7-bundle-rtl.min.css +4 -4
  29. package/framework7-bundle.css +10 -7
  30. package/framework7-bundle.js +15 -5
  31. package/framework7-bundle.js.map +1 -1
  32. package/framework7-bundle.less +3 -3
  33. package/framework7-bundle.min.css +4 -4
  34. package/framework7-bundle.min.js +4 -4
  35. package/framework7-bundle.min.js.map +1 -1
  36. package/framework7-rtl.css +3 -3
  37. package/framework7-rtl.min.css +3 -3
  38. package/framework7.css +3 -3
  39. package/framework7.js +14 -4
  40. package/framework7.js.map +1 -1
  41. package/framework7.less +3 -3
  42. package/framework7.min.css +3 -3
  43. package/framework7.min.js +4 -4
  44. package/framework7.min.js.map +1 -1
  45. package/modules/component/component.d.ts +2 -2
  46. package/package.json +1 -1
  47. package/types/components/list-index/list-index.d.ts +1 -1
  48. package/types/components/notification/notification.d.ts +4 -4
  49. package/types/components/popup/popup.d.ts +2 -0
  50. package/types/components/toast/toast.d.ts +2 -2
  51. package/types/modules/component/component.d.ts +2 -2
@@ -46,9 +46,9 @@ export interface ComponentContext {
46
46
  /** Render function */
47
47
  $render: ComponentRender;
48
48
  /** Attach event handler to component root DOM element */
49
- $on: (eventName, handler: () => void) => void;
49
+ $on: (eventName: string, handler: () => void) => void;
50
50
  /** Attach event handler to component root DOM element that will be executed only once */
51
- $once: (eventName, handler: () => void) => void;
51
+ $once: (eventName: string, handler: () => void) => void;
52
52
  /** Hook called right before component will be added to DOM */
53
53
  $onBeforeMount: (callback: () => void) => void;
54
54
  /** Hook called right after component has been added to DOM */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7",
3
- "version": "6.3.14",
3
+ "version": "6.3.17",
4
4
  "description": "Full featured mobile HTML framework for building iOS & Android apps",
5
5
  "main": "cjs/framework7.js",
6
6
  "module": "esm/framework7.js",
@@ -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
  }
@@ -46,9 +46,9 @@ export interface ComponentContext {
46
46
  /** Render function */
47
47
  $render: ComponentRender;
48
48
  /** Attach event handler to component root DOM element */
49
- $on: (eventName, handler: () => void) => void;
49
+ $on: (eventName: string, handler: () => void) => void;
50
50
  /** Attach event handler to component root DOM element that will be executed only once */
51
- $once: (eventName, handler: () => void) => void;
51
+ $once: (eventName: string, handler: () => void) => void;
52
52
  /** Hook called right before component will be added to DOM */
53
53
  $onBeforeMount: (callback: () => void) => void;
54
54
  /** Hook called right after component has been added to DOM */