framework7 7.0.0-beta.1 → 7.0.0-beta.5

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 (299) hide show
  1. package/components/accordion/accordion.js +2 -2
  2. package/components/accordion/{accordion.umd.js → accordion.lazy.js} +0 -0
  3. package/components/actions/actions-class.js +5 -5
  4. package/components/actions/actions-rtl.css +1 -1
  5. package/components/actions/actions.css +1 -1
  6. package/components/actions/actions.js +2 -2
  7. package/components/actions/{actions.umd.js → actions.lazy.js} +0 -0
  8. package/components/app/app-class.d.ts +10 -10
  9. package/components/app/app-class.js +28 -28
  10. package/components/app/app.less +3 -3
  11. package/components/app/load-module.js +4 -4
  12. package/components/appbar/{appbar.umd.js → appbar.lazy.js} +0 -0
  13. package/components/area-chart/area-chart-class.js +4 -4
  14. package/components/area-chart/area-chart-rtl.css +1 -1
  15. package/components/area-chart/area-chart.css +1 -1
  16. package/components/area-chart/area-chart.js +3 -3
  17. package/components/area-chart/{area-chart.umd.js → area-chart.lazy.js} +0 -0
  18. package/components/autocomplete/autocomplete-class.js +5 -5
  19. package/components/autocomplete/autocomplete-rtl.css +1 -1
  20. package/components/autocomplete/autocomplete.css +1 -1
  21. package/components/autocomplete/autocomplete.js +3 -3
  22. package/components/autocomplete/{autocomplete.umd.js → autocomplete.lazy.js} +0 -0
  23. package/components/calendar/calendar-class.js +6 -6
  24. package/components/calendar/calendar-rtl.css +1 -1
  25. package/components/calendar/calendar.css +1 -1
  26. package/components/calendar/calendar.js +3 -3
  27. package/components/calendar/{calendar.umd.js → calendar.lazy.js} +0 -0
  28. package/components/card/card-rtl.css +1 -1
  29. package/components/card/card.css +1 -1
  30. package/components/card/card.js +4 -4
  31. package/components/card/{card.umd.js → card.lazy.js} +0 -0
  32. package/components/checkbox/checkbox-rtl.css +1 -1
  33. package/components/checkbox/checkbox.css +1 -1
  34. package/components/checkbox/{checkbox.umd.js → checkbox.lazy.js} +0 -0
  35. package/components/chip/chip-rtl.css +1 -1
  36. package/components/chip/chip.css +1 -1
  37. package/components/chip/{chip.umd.js → chip.lazy.js} +0 -0
  38. package/components/color-picker/color-picker-class.js +18 -18
  39. package/components/color-picker/color-picker-rtl.css +1 -1
  40. package/components/color-picker/color-picker.css +1 -1
  41. package/components/color-picker/color-picker.js +3 -3
  42. package/components/color-picker/{color-picker.umd.js → color-picker.lazy.js} +0 -0
  43. package/components/color-picker/modules/alpha-slider.js +1 -1
  44. package/components/color-picker/modules/brightness-slider.js +2 -2
  45. package/components/color-picker/modules/current-color.js +1 -1
  46. package/components/color-picker/modules/hex.js +1 -1
  47. package/components/color-picker/modules/hs-spectrum.js +4 -4
  48. package/components/color-picker/modules/hsb-sliders.js +3 -3
  49. package/components/color-picker/modules/hue-slider.js +1 -1
  50. package/components/color-picker/modules/initial-current-colors.js +1 -1
  51. package/components/color-picker/modules/palette.js +2 -2
  52. package/components/color-picker/modules/rgb-bars.js +2 -2
  53. package/components/color-picker/modules/rgb-sliders.js +2 -2
  54. package/components/color-picker/modules/sb-spectrum.js +3 -3
  55. package/components/color-picker/modules/wheel.js +3 -3
  56. package/components/contacts-list/contacts-list-rtl.css +1 -1
  57. package/components/contacts-list/contacts-list.css +1 -1
  58. package/components/contacts-list/{contacts-list.umd.js → contacts-list.lazy.js} +0 -0
  59. package/components/data-table/data-table-class.js +3 -3
  60. package/components/data-table/data-table-rtl.css +1 -1
  61. package/components/data-table/data-table.css +1 -1
  62. package/components/data-table/data-table.js +3 -3
  63. package/components/data-table/{data-table.umd.js → data-table.lazy.js} +0 -0
  64. package/components/dialog/dialog-class.js +5 -5
  65. package/components/dialog/dialog-rtl.css +1 -1
  66. package/components/dialog/dialog.css +1 -1
  67. package/components/dialog/dialog.js +3 -3
  68. package/components/dialog/{dialog.umd.js → dialog.lazy.js} +0 -0
  69. package/components/elevation/{elevation.umd.js → elevation.lazy.js} +0 -0
  70. package/components/fab/fab.js +2 -2
  71. package/components/fab/{fab.umd.js → fab.lazy.js} +0 -0
  72. package/components/form/form.js +2 -2
  73. package/components/form/{form.umd.js → form.lazy.js} +0 -0
  74. package/components/gauge/gauge-class.js +4 -4
  75. package/components/gauge/gauge.js +4 -4
  76. package/components/gauge/{gauge.umd.js → gauge.lazy.js} +0 -0
  77. package/components/grid/grid-rtl.css +1 -1
  78. package/components/grid/grid.css +1 -1
  79. package/components/grid/grid.js +2 -2
  80. package/components/grid/{grid.umd.js → grid.lazy.js} +0 -0
  81. package/components/infinite-scroll/infinite-scroll.js +2 -2
  82. package/components/infinite-scroll/{infinite-scroll.umd.js → infinite-scroll.lazy.js} +0 -0
  83. package/components/input/input-rtl.css +1 -1
  84. package/components/input/input.css +1 -1
  85. package/components/input/input.js +3 -3
  86. package/components/input/{input.umd.js → input.lazy.js} +0 -0
  87. package/components/input/input.less +1 -1
  88. package/components/lazy/lazy.js +3 -3
  89. package/components/lazy/{lazy.umd.js → lazy.lazy.js} +0 -0
  90. package/components/list-index/list-index-class.js +4 -4
  91. package/components/list-index/list-index.js +4 -4
  92. package/components/list-index/{list-index.umd.js → list-index.lazy.js} +0 -0
  93. package/components/login-screen/login-screen-class.js +3 -3
  94. package/components/login-screen/login-screen-rtl.css +1 -1
  95. package/components/login-screen/login-screen.css +1 -1
  96. package/components/login-screen/login-screen.js +2 -2
  97. package/components/login-screen/{login-screen.umd.js → login-screen.lazy.js} +0 -0
  98. package/components/login-screen/login-screen.less +1 -1
  99. package/components/menu/menu.js +2 -2
  100. package/components/menu/{menu.umd.js → menu.lazy.js} +0 -0
  101. package/components/messagebar/messagebar-class.js +3 -3
  102. package/components/messagebar/messagebar-rtl.css +1 -1
  103. package/components/messagebar/messagebar.css +1 -1
  104. package/components/messagebar/messagebar.js +4 -4
  105. package/components/messagebar/{messagebar.umd.js → messagebar.lazy.js} +0 -0
  106. package/components/messages/messages-class.js +4 -4
  107. package/components/messages/messages-rtl.css +1 -1
  108. package/components/messages/messages.css +1 -1
  109. package/components/messages/messages.js +3 -3
  110. package/components/messages/{messages.umd.js → messages.lazy.js} +0 -0
  111. package/components/modal/custom-modal-class.js +3 -3
  112. package/components/modal/modal-class.js +3 -3
  113. package/components/modal/modal.js +2 -2
  114. package/components/navbar/navbar.js +3 -3
  115. package/components/notification/notification-aurora.less +1 -1
  116. package/components/notification/notification-class.js +4 -4
  117. package/components/notification/notification-ios.less +1 -1
  118. package/components/notification/notification-rtl.css +1 -1
  119. package/components/notification/notification.css +1 -1
  120. package/components/notification/notification.js +3 -3
  121. package/components/notification/{notification.umd.js → notification.lazy.js} +0 -0
  122. package/components/page/page-vars.less +1 -1
  123. package/components/panel/panel-class.js +5 -5
  124. package/components/panel/panel.js +3 -3
  125. package/components/panel/{panel.umd.js → panel.lazy.js} +0 -0
  126. package/components/panel/resizable-panel.js +3 -3
  127. package/components/panel/swipe-panel.js +2 -2
  128. package/components/photo-browser/photo-browser-class.js +4 -4
  129. package/components/photo-browser/photo-browser.js +2 -2
  130. package/components/photo-browser/{photo-browser.umd.js → photo-browser.lazy.js} +0 -0
  131. package/components/picker/picker-class.js +6 -6
  132. package/components/picker/picker-column.js +3 -3
  133. package/components/picker/picker-rtl.css +1 -1
  134. package/components/picker/picker.css +1 -1
  135. package/components/picker/picker.js +3 -3
  136. package/components/picker/{picker.umd.js → picker.lazy.js} +0 -0
  137. package/components/pie-chart/pie-chart-class.js +4 -4
  138. package/components/pie-chart/pie-chart.js +3 -3
  139. package/components/pie-chart/{pie-chart.umd.js → pie-chart.lazy.js} +0 -0
  140. package/components/popover/popover-class.js +4 -4
  141. package/components/popover/popover-rtl.css +1 -1
  142. package/components/popover/popover.css +1 -1
  143. package/components/popover/popover.js +4 -4
  144. package/components/popover/{popover.umd.js → popover.lazy.js} +0 -0
  145. package/components/popup/popup-class.js +5 -5
  146. package/components/popup/popup-rtl.css +1 -1
  147. package/components/popup/popup.css +1 -1
  148. package/components/popup/popup.js +2 -2
  149. package/components/popup/{popup.umd.js → popup.lazy.js} +0 -0
  150. package/components/popup/popup.less +21 -21
  151. package/components/preloader/preloader.js +2 -2
  152. package/components/preloader/{preloader.umd.js → preloader.lazy.js} +0 -0
  153. package/components/progressbar/progressbar-rtl.css +1 -1
  154. package/components/progressbar/progressbar.css +1 -1
  155. package/components/progressbar/progressbar.js +2 -2
  156. package/components/progressbar/{progressbar.umd.js → progressbar.lazy.js} +0 -0
  157. package/components/pull-to-refresh/pull-to-refresh-class.js +5 -5
  158. package/components/pull-to-refresh/pull-to-refresh.js +4 -4
  159. package/components/pull-to-refresh/{pull-to-refresh.umd.js → pull-to-refresh.lazy.js} +0 -0
  160. package/components/radio/radio-rtl.css +1 -1
  161. package/components/radio/radio.css +1 -1
  162. package/components/radio/{radio.umd.js → radio.lazy.js} +0 -0
  163. package/components/range/range-class.js +4 -4
  164. package/components/range/range.js +4 -4
  165. package/components/range/{range.umd.js → range.lazy.js} +0 -0
  166. package/components/searchbar/searchbar-class.js +5 -5
  167. package/components/searchbar/searchbar-rtl.css +1 -1
  168. package/components/searchbar/searchbar.css +1 -1
  169. package/components/searchbar/searchbar.js +4 -4
  170. package/components/searchbar/{searchbar.umd.js → searchbar.lazy.js} +0 -0
  171. package/components/searchbar/searchbar.less +1 -1
  172. package/components/sheet/sheet-class.js +5 -5
  173. package/components/sheet/sheet-rtl.css +1 -1
  174. package/components/sheet/sheet.css +1 -1
  175. package/components/sheet/sheet.js +4 -4
  176. package/components/sheet/{sheet.umd.js → sheet.lazy.js} +0 -0
  177. package/components/sheet/sheet.less +16 -16
  178. package/components/skeleton/skeleton-rtl.css +1 -1
  179. package/components/skeleton/skeleton-vars.less +1 -1
  180. package/components/skeleton/skeleton.css +1 -1
  181. package/components/skeleton/{skeleton.umd.js → skeleton.lazy.js} +0 -0
  182. package/components/smart-select/smart-select-class.js +4 -4
  183. package/components/smart-select/smart-select.js +4 -4
  184. package/components/smart-select/{smart-select.umd.js → smart-select.lazy.js} +0 -0
  185. package/components/sortable/sortable-rtl.css +1 -1
  186. package/components/sortable/sortable.css +1 -1
  187. package/components/sortable/sortable.js +3 -3
  188. package/components/sortable/{sortable.umd.js → sortable.lazy.js} +0 -0
  189. package/components/statusbar/statusbar.js +3 -3
  190. package/components/stepper/stepper-class.js +3 -3
  191. package/components/stepper/stepper.js +4 -4
  192. package/components/stepper/{stepper.umd.js → stepper.lazy.js} +0 -0
  193. package/components/subnavbar/subnavbar.js +1 -1
  194. package/components/swipeout/swipeout-rtl.css +1 -1
  195. package/components/swipeout/swipeout.css +1 -1
  196. package/components/swipeout/swipeout.js +3 -3
  197. package/components/swipeout/{swipeout.umd.js → swipeout.lazy.js} +0 -0
  198. package/components/swiper/swiper.js +2 -2
  199. package/components/swiper/{swiper.umd.js → swiper.lazy.js} +0 -0
  200. package/components/tabs/tabs.js +2 -2
  201. package/components/tabs/{tabs.umd.js → tabs.lazy.js} +0 -0
  202. package/components/text-editor/text-editor-class.js +5 -5
  203. package/components/text-editor/text-editor-rtl.css +1 -1
  204. package/components/text-editor/text-editor.css +1 -1
  205. package/components/text-editor/text-editor.js +4 -4
  206. package/components/text-editor/{text-editor.umd.js → text-editor.lazy.js} +1 -1
  207. package/components/timeline/timeline-rtl.css +1 -1
  208. package/components/timeline/timeline.css +1 -1
  209. package/components/timeline/{timeline.umd.js → timeline.lazy.js} +0 -0
  210. package/components/toast/toast-class.js +4 -4
  211. package/components/toast/toast.js +3 -3
  212. package/components/toast/{toast.umd.js → toast.lazy.js} +0 -0
  213. package/components/toggle/toggle-class.js +4 -4
  214. package/components/toggle/toggle-rtl.css +1 -1
  215. package/components/toggle/toggle.css +1 -1
  216. package/components/toggle/toggle.js +3 -3
  217. package/components/toggle/{toggle.umd.js → toggle.lazy.js} +0 -0
  218. package/components/toolbar/toolbar.js +2 -2
  219. package/components/tooltip/tooltip-class.js +4 -4
  220. package/components/tooltip/tooltip.js +3 -3
  221. package/components/tooltip/{tooltip.umd.js → tooltip.lazy.js} +0 -0
  222. package/components/touch-ripple/touch-ripple-class.js +1 -1
  223. package/components/touch-ripple/touch-ripple-vars.less +1 -1
  224. package/components/touch-ripple/touch-ripple.js +1 -1
  225. package/components/treeview/treeview-rtl.css +1 -1
  226. package/components/treeview/treeview.css +1 -1
  227. package/components/treeview/treeview.js +2 -2
  228. package/components/treeview/{treeview.umd.js → treeview.lazy.js} +0 -0
  229. package/components/typography/{typography.umd.js → typography.lazy.js} +0 -0
  230. package/components/view/resizable-view.js +3 -3
  231. package/components/view/view-class.js +5 -5
  232. package/components/view/view.js +3 -3
  233. package/components/virtual-list/virtual-list-class.js +4 -4
  234. package/components/virtual-list/virtual-list.js +2 -2
  235. package/components/virtual-list/{virtual-list.umd.js → virtual-list.lazy.js} +0 -0
  236. package/framework7-bundle-rtl.css +263 -263
  237. package/framework7-bundle-rtl.min.css +3 -3
  238. package/framework7-bundle.css +263 -263
  239. package/framework7-bundle.esm.js +84 -84
  240. package/framework7-bundle.js +71 -71
  241. package/framework7-bundle.js.map +1 -1
  242. package/framework7-bundle.less +2 -2
  243. package/framework7-bundle.min.css +3 -3
  244. package/framework7-bundle.min.js +3 -3
  245. package/framework7-bundle.min.js.map +1 -1
  246. package/framework7-lite-bundle.esm.js +78 -78
  247. package/framework7-lite.esm.js +26 -26
  248. package/framework7-rtl.css +51 -51
  249. package/framework7-rtl.min.css +3 -3
  250. package/framework7.css +51 -51
  251. package/framework7.esm.js +29 -29
  252. package/framework7.js +70 -70
  253. package/framework7.js.map +1 -1
  254. package/framework7.less +2 -2
  255. package/framework7.min.css +3 -3
  256. package/framework7.min.js +3 -3
  257. package/framework7.min.js.map +1 -1
  258. package/less/mixins.less +2 -2
  259. package/modules/clicks/clicks.js +2 -2
  260. package/modules/component/$h.js +1 -1
  261. package/modules/component/$jsx.js +1 -1
  262. package/modules/component/component-class.js +5 -5
  263. package/modules/component/component.js +4 -4
  264. package/modules/component/eventslisteners.js +1 -1
  265. package/modules/component/parse-component.js +2 -2
  266. package/modules/component/patch.js +5 -5
  267. package/modules/component/snabbdom/h.js +1 -1
  268. package/modules/component/snabbdom/snabbdom.bundle.js +7 -7
  269. package/modules/component/snabbdom/snabbdom.js +3 -3
  270. package/modules/component/snabbdom/thunk.js +1 -1
  271. package/modules/component/snabbdom/tovnode.js +2 -2
  272. package/modules/component/vdom.js +3 -3
  273. package/modules/device/device.js +1 -1
  274. package/modules/history/history.js +1 -1
  275. package/modules/request/request.js +1 -1
  276. package/modules/resize/resize.js +1 -1
  277. package/modules/router/back.js +8 -8
  278. package/modules/router/clear-previous-history.js +2 -2
  279. package/modules/router/component-loader.js +47 -1
  280. package/modules/router/modal.js +3 -3
  281. package/modules/router/navigate.js +8 -54
  282. package/modules/router/redirect.js +1 -1
  283. package/modules/router/router-class.js +11 -11
  284. package/modules/router/router.js +1 -1
  285. package/modules/router/swipe-back.js +5 -5
  286. package/modules/router/tab.js +4 -4
  287. package/modules/service-worker/service-worker.js +1 -1
  288. package/modules/store/create-store.js +1 -1
  289. package/modules/store/store.js +1 -1
  290. package/modules/support/support.js +1 -1
  291. package/modules/touch/touch.js +4 -4
  292. package/modules/utils/utils.js +1 -1
  293. package/package.json +2 -1
  294. package/shared/class.js +2 -2
  295. package/shared/constructor-methods.js +1 -1
  296. package/shared/get-device.js +1 -1
  297. package/shared/history.js +2 -2
  298. package/shared/modal-methods.js +3 -3
  299. package/shared/request.js +1 -1
package/less/mixins.less CHANGED
@@ -53,8 +53,8 @@
53
53
  }
54
54
  .dark-vars(@ruleset) {
55
55
  & when (@includeDarkTheme) {
56
- .theme-dark,
57
- &.theme-dark {
56
+ .dark,
57
+ &.dark {
58
58
  @ruleset();
59
59
  }
60
60
  }
@@ -1,6 +1,6 @@
1
1
  import { getWindow } from 'ssr-window';
2
- import $ from '../../shared/dom7';
3
- import ViewClass from '../../components/view/view-class';
2
+ import $ from '../../shared/dom7.js';
3
+ import ViewClass from '../../components/view/view-class.js';
4
4
 
5
5
  function initClicks(app) {
6
6
  function handleClicks(e) {
@@ -1,5 +1,5 @@
1
1
  import htm from 'htm';
2
- import { flattenArray } from '../../shared/utils';
2
+ import { flattenArray } from '../../shared/utils.js';
3
3
  const ignoreChildren = [false, null, '', undefined];
4
4
 
5
5
  const h = (type, props, ...children) => {
@@ -1,4 +1,4 @@
1
- import { flattenArray } from '../../shared/utils';
1
+ import { flattenArray } from '../../shared/utils.js';
2
2
  const ignoreChildren = [false, null, '', undefined];
3
3
 
4
4
  const $jsx = (type, props, ...children) => {
@@ -1,10 +1,10 @@
1
1
  /* eslint no-underscore-dangle: "off" */
2
2
  import { getWindow, getDocument } from 'ssr-window';
3
- import $ from '../../shared/dom7';
4
- import $h from './$h';
5
- import { id as generateId, merge, eventNameToColonCase, deleteProps } from '../../shared/utils';
6
- import vdom from './vdom';
7
- import patch from './patch';
3
+ import $ from '../../shared/dom7.js';
4
+ import $h from './$h.js';
5
+ import { id as generateId, merge, eventNameToColonCase, deleteProps } from '../../shared/utils.js';
6
+ import vdom from './vdom.js';
7
+ import patch from './patch.js';
8
8
 
9
9
  class Component {
10
10
  constructor(app, component, props = {}, {
@@ -1,7 +1,7 @@
1
- import Component from './component-class';
2
- import parseComponent from './parse-component';
3
- import customComponents from './custom-components';
4
- import $jsx from './$jsx';
1
+ import Component from './component-class.js';
2
+ import parseComponent from './parse-component.js';
3
+ import customComponents from './custom-components.js';
4
+ import $jsx from './$jsx.js';
5
5
 
6
6
  function registerComponent(tagName, component) {
7
7
  customComponents[tagName] = component;
@@ -1,4 +1,4 @@
1
- import $ from '../../shared/dom7';
1
+ import $ from '../../shared/dom7.js';
2
2
 
3
3
  function invokeHandler(handler, event, args) {
4
4
  if (typeof handler === 'function') {
@@ -1,6 +1,6 @@
1
1
  import { getWindow, getDocument } from 'ssr-window';
2
- import $ from '../../shared/dom7';
3
- import { id } from '../../shared/utils';
2
+ import $ from '../../shared/dom7.js';
3
+ import { id } from '../../shared/utils.js';
4
4
 
5
5
  function parseComponent(componentString) {
6
6
  const window = getWindow();
@@ -1,8 +1,8 @@
1
1
  /* eslint import/no-named-as-default: off */
2
- import { init } from './snabbdom/snabbdom';
3
- import attributesModule from './snabbdom/modules/attributes';
4
- import propsModule from './snabbdom/modules/props';
5
- import styleModule from './snabbdom/modules/style';
6
- import eventListenersModule from './eventslisteners';
2
+ import { init } from './snabbdom/snabbdom.js';
3
+ import attributesModule from './snabbdom/modules/attributes.js';
4
+ import propsModule from './snabbdom/modules/props.js';
5
+ import styleModule from './snabbdom/modules/style.js';
6
+ import eventListenersModule from './eventslisteners.js';
7
7
  const patch = init([attributesModule, propsModule, styleModule, eventListenersModule]);
8
8
  export default patch;
@@ -1,4 +1,4 @@
1
- import { vnode } from './vnode';
1
+ import { vnode } from './vnode.js';
2
2
  import * as is from './is';
3
3
 
4
4
  function addNS(data, children, sel) {
@@ -1,15 +1,15 @@
1
- import { init } from './snabbdom';
2
- import { attributesModule } from './modules/attributes'; // for setting attributes on DOM elements
1
+ import { init } from './snabbdom.js';
2
+ import { attributesModule } from './modules/attributes.js'; // for setting attributes on DOM elements
3
3
 
4
- import { classModule } from './modules/class'; // makes it easy to toggle classes
4
+ import { classModule } from './modules/class.js'; // makes it easy to toggle classes
5
5
 
6
- import { propsModule } from './modules/props'; // for setting properties on DOM elements
6
+ import { propsModule } from './modules/props.js'; // for setting properties on DOM elements
7
7
 
8
- import { styleModule } from './modules/style'; // handles styling on elements with support for animations
8
+ import { styleModule } from './modules/style.js'; // handles styling on elements with support for animations
9
9
 
10
- import { eventListenersModule } from './modules/eventlisteners'; // attaches event listeners
10
+ import { eventListenersModule } from './modules/eventlisteners.js'; // attaches event listeners
11
11
 
12
- import { h } from './h'; // helper function for creating vnodes
12
+ import { h } from './h.js'; // helper function for creating vnodes
13
13
 
14
14
  var patch = init([attributesModule, classModule, propsModule, styleModule, eventListenersModule]);
15
15
  export var snabbdomBundle = {
@@ -1,6 +1,6 @@
1
- import vnode from './vnode';
2
- import * as is from './is';
3
- import htmlDomApi from './htmldomapi';
1
+ import vnode from './vnode.js';
2
+ import * as is from './is.js';
3
+ import htmlDomApi from './htmldomapi.js';
4
4
 
5
5
  function isUndef(s) {
6
6
  return s === undefined;
@@ -1,4 +1,4 @@
1
- import { h } from './h';
1
+ import { h } from './h.js';
2
2
 
3
3
  function copyToThunk(vnode, thunk) {
4
4
  thunk.elm = vnode.elm;
@@ -1,5 +1,5 @@
1
- import vnode from './vnode';
2
- import htmlDomApi from './htmldomapi';
1
+ import vnode from './vnode.js';
2
+ import htmlDomApi from './htmldomapi.js';
3
3
  export function toVNode(node, domApi) {
4
4
  var api = domApi !== undefined ? domApi : htmlDomApi;
5
5
  var text;
@@ -1,9 +1,9 @@
1
1
  /* eslint no-use-before-define: "off" */
2
2
 
3
3
  /* eslint import/no-named-as-default: "off" */
4
- import h from './snabbdom/h';
5
- import customComponents from './custom-components';
6
- import { isObject, eventNameToColonCase } from '../../shared/utils';
4
+ import h from './snabbdom/h.js';
5
+ import customComponents from './custom-components.js';
6
+ import { isObject, eventNameToColonCase } from '../../shared/utils.js';
7
7
  const SELF_CLOSING = 'area base br col command embed hr img input keygen link menuitem meta param source track wbr'.split(' ');
8
8
  const PROPS_ATTRS = 'hidden checked disabled readonly selected autofocus autoplay required multiple value indeterminate routeProps innerHTML'.split(' ');
9
9
  const BOOLEAN_PROPS = 'hidden checked disabled readonly selected autofocus autoplay required multiple readOnly indeterminate'.split(' ');
@@ -1,5 +1,5 @@
1
1
  import { getDocument } from 'ssr-window';
2
- import { getDevice } from '../../shared/get-device';
2
+ import { getDevice } from '../../shared/get-device.js';
3
3
  export default {
4
4
  name: 'device',
5
5
  static: {
@@ -1,4 +1,4 @@
1
- import History from '../../shared/history';
1
+ import History from '../../shared/history.js';
2
2
  export default {
3
3
  name: 'history',
4
4
  static: {
@@ -1,5 +1,5 @@
1
1
  /* eslint no-param-reassign: "off" */
2
- import request from '../../shared/request';
2
+ import request from '../../shared/request.js';
3
3
  export default {
4
4
  name: 'request',
5
5
  proto: {
@@ -1,5 +1,5 @@
1
1
  import { getWindow, getDocument } from 'ssr-window';
2
- import { getDevice } from '../../shared/get-device';
2
+ import { getDevice } from '../../shared/get-device.js';
3
3
  export default {
4
4
  name: 'resize',
5
5
 
@@ -1,12 +1,12 @@
1
1
  import { getDocument } from 'ssr-window';
2
- import $ from '../../shared/dom7';
3
- import { extend, parseUrlQuery } from '../../shared/utils';
4
- import { getDevice } from '../../shared/get-device';
5
- import History from '../../shared/history';
6
- import redirect from './redirect';
7
- import processRouteQueue from './process-route-queue';
8
- import appRouterCheck from './app-router-check';
9
- import asyncComponent from './async-component';
2
+ import $ from '../../shared/dom7.js';
3
+ import { extend, parseUrlQuery } from '../../shared/utils.js';
4
+ import { getDevice } from '../../shared/get-device.js';
5
+ import History from '../../shared/history.js';
6
+ import redirect from './redirect.js';
7
+ import processRouteQueue from './process-route-queue.js';
8
+ import appRouterCheck from './app-router-check.js';
9
+ import asyncComponent from './async-component.js';
10
10
 
11
11
  function backward(router, el, backwardOptions) {
12
12
  const device = getDevice();
@@ -1,5 +1,5 @@
1
- import $ from '../../shared/dom7';
2
- import appRouterCheck from './app-router-check';
1
+ import $ from '../../shared/dom7.js';
2
+ import appRouterCheck from './app-router-check.js';
3
3
 
4
4
  function clearPreviousPages(router) {
5
5
  appRouterCheck(router, 'clearPreviousPages');
@@ -1,7 +1,53 @@
1
- import { merge } from '../../shared/utils';
1
+ import { merge } from '../../shared/utils.js';
2
2
  export default {
3
3
  name: 'routerComponentLoader',
4
4
  proto: {
5
+ openIn(router, url, options) {
6
+ const navigateOptions = {
7
+ url,
8
+ route: {
9
+ path: url,
10
+ options: { ...options,
11
+ openIn: undefined
12
+ }
13
+ }
14
+ };
15
+ const params = { ...options
16
+ };
17
+
18
+ if (options.openIn === 'popup') {
19
+ params.content = `<div class="popup popup-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
20
+ navigateOptions.route.popup = params;
21
+ }
22
+
23
+ if (options.openIn === 'loginScreen') {
24
+ params.content = `<div class="login-screen login-screen-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
25
+ navigateOptions.route.loginScreen = params;
26
+ }
27
+
28
+ if (options.openIn === 'sheet') {
29
+ params.content = `<div class="sheet-modal sheet-modal-router-open-in" data-url="${url}"><div class="sheet-modal-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
30
+ navigateOptions.route.sheet = params;
31
+ }
32
+
33
+ if (options.openIn === 'popover') {
34
+ params.targetEl = options.clickedEl || options.targetEl;
35
+ params.content = `<div class="popover popover-router-open-in" data-url="${url}"><div class="popover-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
36
+ navigateOptions.route.popover = params;
37
+ }
38
+
39
+ if (options.openIn.indexOf('panel') >= 0) {
40
+ const parts = options.openIn.split(':');
41
+ const side = parts[1] || 'left';
42
+ const effect = parts[2] || 'cover';
43
+ params.targetEl = options.clickedEl || options.targetEl;
44
+ params.content = `<div class="panel panel-router-open-in panel-${side} panel-${effect}" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
45
+ navigateOptions.route.panel = params;
46
+ }
47
+
48
+ return router.navigate(navigateOptions);
49
+ },
50
+
5
51
  componentLoader(component, componentUrl, options = {}, resolve, reject) {
6
52
  const router = this;
7
53
  const {
@@ -1,6 +1,6 @@
1
- import { extend, nextTick } from '../../shared/utils';
2
- import History from '../../shared/history';
3
- import asyncComponent from './async-component';
1
+ import { extend, nextTick } from '../../shared/utils.js';
2
+ import History from '../../shared/history.js';
3
+ import asyncComponent from './async-component.js';
4
4
 
5
5
  function modalLoad(modalType, route, loadOptions = {}, direction) {
6
6
  const router = this;
@@ -1,11 +1,11 @@
1
1
  import { getDocument } from 'ssr-window';
2
- import $ from '../../shared/dom7';
3
- import { extend, parseUrlQuery } from '../../shared/utils';
4
- import History from '../../shared/history';
5
- import redirect from './redirect';
6
- import processRouteQueue from './process-route-queue';
7
- import appRouterCheck from './app-router-check';
8
- import asyncComponent from './async-component';
2
+ import $ from '../../shared/dom7.js';
3
+ import { extend, parseUrlQuery } from '../../shared/utils.js';
4
+ import History from '../../shared/history.js';
5
+ import redirect from './redirect.js';
6
+ import processRouteQueue from './process-route-queue.js';
7
+ import appRouterCheck from './app-router-check.js';
8
+ import asyncComponent from './async-component.js';
9
9
 
10
10
  function refreshPage() {
11
11
  const router = this;
@@ -730,52 +730,6 @@ function load(router, loadParams = {}, loadOptions = {}, ignorePageChange) {
730
730
  return router;
731
731
  }
732
732
 
733
- function openIn(router, url, options) {
734
- const navigateOptions = {
735
- url,
736
- route: {
737
- path: url,
738
- options: { ...options,
739
- openIn: undefined
740
- }
741
- }
742
- };
743
- const params = { ...options
744
- };
745
-
746
- if (options.openIn === 'popup') {
747
- params.content = `<div class="popup popup-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
748
- navigateOptions.route.popup = params;
749
- }
750
-
751
- if (options.openIn === 'loginScreen') {
752
- params.content = `<div class="login-screen login-screen-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
753
- navigateOptions.route.loginScreen = params;
754
- }
755
-
756
- if (options.openIn === 'sheet') {
757
- params.content = `<div class="sheet-modal sheet-modal-router-open-in" data-url="${url}"><div class="sheet-modal-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
758
- navigateOptions.route.sheet = params;
759
- }
760
-
761
- if (options.openIn === 'popover') {
762
- params.targetEl = options.clickedEl || options.targetEl;
763
- params.content = `<div class="popover popover-router-open-in" data-url="${url}"><div class="popover-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
764
- navigateOptions.route.popover = params;
765
- }
766
-
767
- if (options.openIn.indexOf('panel') >= 0) {
768
- const parts = options.openIn.split(':');
769
- const side = parts[1] || 'left';
770
- const effect = parts[2] || 'cover';
771
- params.targetEl = options.clickedEl || options.targetEl;
772
- params.content = `<div class="panel panel-router-open-in panel-${side} panel-${effect}" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
773
- navigateOptions.route.panel = params;
774
- }
775
-
776
- return router.navigate(navigateOptions);
777
- }
778
-
779
733
  function navigate(navigateParams, navigateOptions = {}) {
780
734
  const router = this;
781
735
  if (router.swipeBackActive) return router;
@@ -865,7 +819,7 @@ function navigate(navigateParams, navigateOptions = {}) {
865
819
  }
866
820
 
867
821
  if (options.openIn && (!router.params.ignoreOpenIn || router.params.ignoreOpenIn && router.history.length > 0)) {
868
- return openIn(router, navigateUrl, options);
822
+ return router.openIn(router, navigateUrl, options);
869
823
  }
870
824
 
871
825
  options.route = route;
@@ -1,4 +1,4 @@
1
- import { extend } from '../../shared/utils';
1
+ import { extend } from '../../shared/utils.js';
2
2
  export default function redirect(direction, route, options) {
3
3
  const router = this;
4
4
  const r = route.route.redirect;
@@ -1,16 +1,16 @@
1
1
  import { getWindow, getDocument } from 'ssr-window';
2
2
  import { pathToRegexp, compile } from 'path-to-regexp';
3
- import $ from '../../shared/dom7';
4
- import Framework7Class from '../../shared/class';
5
- import { extend, nextFrame, parseUrlQuery, serializeObject, now, eventNameToColonCase } from '../../shared/utils';
6
- import History from '../../shared/history';
7
- import SwipeBack from './swipe-back';
8
- import { refreshPage, navigate } from './navigate';
9
- import { tabLoad, tabRemove } from './tab';
10
- import { modalLoad, modalRemove } from './modal';
11
- import { back } from './back';
12
- import { clearPreviousHistory } from './clear-previous-history';
13
- import appRouterCheck from './app-router-check';
3
+ import $ from '../../shared/dom7.js';
4
+ import Framework7Class from '../../shared/class.js';
5
+ import { extend, nextFrame, parseUrlQuery, serializeObject, now, eventNameToColonCase } from '../../shared/utils.js';
6
+ import History from '../../shared/history.js';
7
+ import SwipeBack from './swipe-back.js';
8
+ import { refreshPage, navigate } from './navigate.js';
9
+ import { tabLoad, tabRemove } from './tab.js';
10
+ import { modalLoad, modalRemove } from './modal.js';
11
+ import { back } from './back.js';
12
+ import { clearPreviousHistory } from './clear-previous-history.js';
13
+ import appRouterCheck from './app-router-check.js';
14
14
 
15
15
  class Router extends Framework7Class {
16
16
  constructor(app, view) {
@@ -1,4 +1,4 @@
1
- import Router from './router-class';
1
+ import Router from './router-class.js';
2
2
  export default {
3
3
  name: 'router',
4
4
  static: {
@@ -1,8 +1,8 @@
1
- import $ from '../../shared/dom7';
2
- import History from '../../shared/history';
3
- import { getSupport } from '../../shared/get-support';
4
- import { getDevice } from '../../shared/get-device';
5
- import { now } from '../../shared/utils';
1
+ import $ from '../../shared/dom7.js';
2
+ import History from '../../shared/history.js';
3
+ import { getSupport } from '../../shared/get-support.js';
4
+ import { getDevice } from '../../shared/get-device.js';
5
+ import { now } from '../../shared/utils.js';
6
6
 
7
7
  function SwipeBack(r) {
8
8
  const router = r;
@@ -1,7 +1,7 @@
1
- import $ from '../../shared/dom7';
2
- import { extend } from '../../shared/utils';
3
- import History from '../../shared/history';
4
- import asyncComponent from './async-component';
1
+ import $ from '../../shared/dom7.js';
2
+ import { extend } from '../../shared/utils.js';
3
+ import History from '../../shared/history.js';
4
+ import asyncComponent from './async-component.js';
5
5
 
6
6
  function tabLoad(tabRoute, loadOptions = {}) {
7
7
  const router = this;
@@ -1,5 +1,5 @@
1
1
  import { getWindow } from 'ssr-window';
2
- import { extend } from '../../shared/utils';
2
+ import { extend } from '../../shared/utils.js';
3
3
  const SW = {
4
4
  registrations: [],
5
5
 
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable no-underscore-dangle */
2
- import { extend } from '../../shared/utils';
2
+ import { extend } from '../../shared/utils.js';
3
3
 
4
4
  function createStore(storeParams = {}) {
5
5
  const store = {
@@ -1,4 +1,4 @@
1
- import createStore from './create-store';
1
+ import createStore from './create-store.js';
2
2
  export { createStore };
3
3
  export default {
4
4
  name: 'store',
@@ -1,4 +1,4 @@
1
- import { getSupport } from '../../shared/get-support';
1
+ import { getSupport } from '../../shared/get-support.js';
2
2
  export default {
3
3
  name: 'support',
4
4
  static: {
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable no-nested-ternary */
2
2
  import { getWindow, getDocument } from 'ssr-window';
3
- import $ from '../../shared/dom7';
4
- import { getSupport } from '../../shared/get-support';
5
- import { getDevice } from '../../shared/get-device';
6
- import { extend } from '../../shared/utils';
3
+ import $ from '../../shared/dom7.js';
4
+ import { getSupport } from '../../shared/get-support.js';
5
+ import { getDevice } from '../../shared/get-device.js';
6
+ import { extend } from '../../shared/utils.js';
7
7
 
8
8
  function initTouch() {
9
9
  const app = this;
@@ -1,4 +1,4 @@
1
- import * as utils from '../../shared/utils';
1
+ import * as utils from '../../shared/utils.js';
2
2
  export default {
3
3
  name: 'utils',
4
4
  proto: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7",
3
- "version": "7.0.0-beta.1",
3
+ "version": "7.0.0-beta.5",
4
4
  "description": "Full featured mobile HTML framework for building iOS & Android apps",
5
5
  "type": "module",
6
6
  "exports": {
@@ -8,6 +8,7 @@
8
8
  "./core": "./framework7.esm.js",
9
9
  "./bundle": "./framework7-bundle.esm.js",
10
10
  "./lite": "./framework7-lite.esm.js",
11
+ "./lite/bundle": "./framework7-lite-bundle.esm.js",
11
12
  "./lite-bundle": "./framework7-lite-bundle.esm.js",
12
13
  "./less": "./framework7.less",
13
14
  "./css": "./framework7.css",
package/shared/class.js CHANGED
@@ -1,5 +1,5 @@
1
- import { extend, now } from './utils';
2
- import EventsClass from './events-class';
1
+ import { extend, now } from './utils.js';
2
+ import EventsClass from './events-class.js';
3
3
 
4
4
  class Framework7Class extends EventsClass {
5
5
  constructor(params = {}, parents = []) {
@@ -1,4 +1,4 @@
1
- import $ from './dom7';
1
+ import $ from './dom7.js';
2
2
  export default function ConstructorMethods(parameters = {}) {
3
3
  const {
4
4
  defaultSelector,
@@ -1,5 +1,5 @@
1
1
  import { getWindow } from 'ssr-window';
2
- import { getSupport } from './get-support';
2
+ import { getSupport } from './get-support.js';
3
3
  let deviceCalculated;
4
4
 
5
5
  function calcDevice({
package/shared/history.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { getWindow, getDocument } from 'ssr-window';
2
- import $ from './dom7';
3
- import { extend } from './utils';
2
+ import $ from './dom7.js';
3
+ import { extend } from './utils.js';
4
4
  const History = {
5
5
  queue: [],
6
6
 
@@ -1,6 +1,6 @@
1
- import $ from './dom7';
2
- import { extend } from './utils';
3
- import ConstructorMethods from './constructor-methods';
1
+ import $ from './dom7.js';
2
+ import { extend } from './utils.js';
3
+ import ConstructorMethods from './constructor-methods.js';
4
4
  export default function ModalMethods(parameters = {}) {
5
5
  const {
6
6
  defaultSelector,
package/shared/request.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable max-classes-per-file */
2
2
  import { getWindow, getDocument } from 'ssr-window';
3
- import { extend, serializeObject } from './utils';
3
+ import { extend, serializeObject } from './utils.js';
4
4
  const globals = {};
5
5
  let jsonpRequests = 0;
6
6