framework7 6.3.11 → 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.
Files changed (62) hide show
  1. package/cjs/components/calendar/calendar-class.js +37 -20
  2. package/cjs/components/progressbar/progressbar.js +1 -1
  3. package/cjs/components/tabs/tabs.js +4 -5
  4. package/cjs/components/toolbar/toolbar.js +1 -1
  5. package/cjs/framework7-bundle.js +3 -3
  6. package/cjs/framework7-lite-bundle.js +3 -3
  7. package/cjs/framework7-lite.js +3 -3
  8. package/cjs/framework7.js +3 -3
  9. package/cjs/modules/router/back.js +10 -1
  10. package/components/calendar/calendar.js +1 -1
  11. package/components/list-index/list-index.d.ts +1 -1
  12. package/components/notification/notification.d.ts +4 -4
  13. package/components/popup/popup-rtl.css +1 -1
  14. package/components/popup/popup.css +1 -1
  15. package/components/popup/popup.d.ts +2 -0
  16. package/components/popup/popup.less +1 -0
  17. package/components/progressbar/progressbar-aurora.less +32 -13
  18. package/components/progressbar/progressbar-ios.less +19 -7
  19. package/components/progressbar/progressbar-md.less +64 -28
  20. package/components/progressbar/progressbar-rtl.css +1 -1
  21. package/components/progressbar/progressbar.css +1 -1
  22. package/components/progressbar/progressbar.js +1 -1
  23. package/components/progressbar/progressbar.less +16 -4
  24. package/components/range/range.d.ts +23 -5
  25. package/components/tabs/tabs.js +1 -1
  26. package/components/toast/toast.d.ts +2 -2
  27. package/components/toolbar/toolbar-aurora.less +0 -13
  28. package/components/toolbar/toolbar-md.less +0 -13
  29. package/components/toolbar/toolbar.less +13 -0
  30. package/esm/components/calendar/calendar-class.js +37 -20
  31. package/esm/components/progressbar/progressbar.js +1 -1
  32. package/esm/components/tabs/tabs.js +4 -5
  33. package/esm/components/toolbar/toolbar.js +1 -1
  34. package/esm/framework7-bundle.js +3 -3
  35. package/esm/framework7-lite-bundle.js +3 -3
  36. package/esm/framework7-lite.js +3 -3
  37. package/esm/framework7.js +3 -3
  38. package/esm/modules/router/back.js +11 -1
  39. package/framework7-bundle-rtl.css +31 -39
  40. package/framework7-bundle-rtl.min.css +4 -4
  41. package/framework7-bundle.css +16 -23
  42. package/framework7-bundle.js +57 -31
  43. package/framework7-bundle.js.map +1 -1
  44. package/framework7-bundle.less +3 -3
  45. package/framework7-bundle.min.css +4 -4
  46. package/framework7-bundle.min.js +4 -4
  47. package/framework7-bundle.min.js.map +1 -1
  48. package/framework7-rtl.css +12 -21
  49. package/framework7-rtl.min.css +4 -4
  50. package/framework7.css +11 -19
  51. package/framework7.js +15 -5
  52. package/framework7.js.map +1 -1
  53. package/framework7.less +3 -3
  54. package/framework7.min.css +4 -4
  55. package/framework7.min.js +4 -4
  56. package/framework7.min.js.map +1 -1
  57. package/package.json +1 -1
  58. package/types/components/list-index/list-index.d.ts +1 -1
  59. package/types/components/notification/notification.d.ts +4 -4
  60. package/types/components/popup/popup.d.ts +2 -0
  61. package/types/components/range/range.d.ts +23 -5
  62. package/types/components/toast/toast.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7",
3
- "version": "6.3.11",
3
+ "version": "6.3.16",
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?: {
@@ -13,6 +13,8 @@ export namespace Range {
13
13
  step?: number;
14
14
  /** Enables additional label around range slider knob (default false) */
15
15
  label?: boolean;
16
+ /** Method must return formatted range knob label text. As an argument it receives label value */
17
+ formatLabel?: (value: number) => string;
16
18
  /** Minimum value */
17
19
  min?: number;
18
20
  /** Maximum value */
@@ -21,11 +23,19 @@ export namespace Range {
21
23
  value?: number | number[];
22
24
  /** When enabled it is also possible to interact with range slider (change value) on range bar click and swipe (default true) */
23
25
  draggableBar?: boolean;
24
- /** Enables vertical range slider */
26
+ /** Enables vertical range slider (default false) */
25
27
  vertical?: boolean;
26
- /** Makes vertical range slider reversed */
28
+ /** Makes vertical range slider reversed (default false) */
27
29
  verticalReversed?: boolean;
28
- /** Limit knob position to the size of range bar */
30
+ /** Enables range slider scale (default false) */
31
+ scale?: boolean;
32
+ /** Number of scale steps (default 5) */
33
+ scaleSteps?: number;
34
+ /** Number of scale sub steps (each step will be divided by this value) (default 0) */
35
+ scaleSubSteps?: number;
36
+ /** Method must return formatted scale value. As an argument it receives currect scale step value. This method will be called as for each scale step. */
37
+ formatScaleLabel?: (value: number) => string;
38
+ /** Limit knob position to the size of range bar. By default enabled from iOS theme */
29
39
  limitKnobPosition?: boolean;
30
40
  /** Object with events handlers.. */
31
41
  on?: {
@@ -55,13 +65,21 @@ export namespace Range {
55
65
  max: number;
56
66
  /** Range value */
57
67
  value: number | number[];
68
+ /** Boolean property indicating whether scale is enabled or not */
69
+ scale: boolean;
70
+ /** Number of scale steps */
71
+ scaleSteps: number;
72
+ /** Number of scale sub steps */
73
+ scaleSubSteps: number;
74
+ /** Dom7 instance with generated scale HTML element */
75
+ $scaleEl: Dom7Array;
58
76
  /** Array where each element represents HTMLElement of created range knob (2 knobs in case of dual slider) */
59
77
  knobs: HTMLElement[];
60
78
  /** Array where each element represent HTMLElement of created range knob label (2 labels in case of dual slider) */
61
79
  labels: HTMLElement[];
62
- /** Boolean property indicating whether it is vertical or not */
80
+ /** Boolean property indicating whether it is vertical or not */
63
81
  vertical: boolean;
64
- /** Boolean property indicating whether it is vertical and reversed or not */
82
+ /** Boolean property indicating whether it is vertical and reversed or not */
65
83
  verticalReversed: boolean;
66
84
  /** Range parameters */
67
85
  params: Parameters;
@@ -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
  }