framework7 7.0.0-beta.2 → 7.0.0-beta.20

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 (384) hide show
  1. package/components/accordion/accordion.js +2 -2
  2. package/components/accordion/{accordion.umd.js → accordion.lazy.js} +1 -1
  3. package/components/actions/actions-class.js +11 -6
  4. package/components/actions/actions-rtl.css +1 -1
  5. package/components/actions/actions.css +1 -1
  6. package/components/actions/actions.d.ts +2 -0
  7. package/components/actions/actions.js +13 -4
  8. package/components/actions/actions.lazy.js +1 -0
  9. package/components/actions/actions.less +3 -0
  10. package/components/app/app-class.d.ts +10 -10
  11. package/components/app/app-class.js +43 -37
  12. package/components/app/app.less +3 -3
  13. package/components/app/load-module.js +4 -4
  14. package/components/appbar/{appbar.umd.js → appbar.lazy.js} +0 -0
  15. package/components/area-chart/area-chart-class.js +38 -22
  16. package/components/area-chart/area-chart-rtl.css +1 -1
  17. package/components/area-chart/area-chart.css +1 -1
  18. package/components/area-chart/area-chart.js +3 -3
  19. package/components/area-chart/area-chart.lazy.js +1 -0
  20. package/components/autocomplete/autocomplete-class.js +10 -6
  21. package/components/autocomplete/autocomplete-rtl.css +1 -1
  22. package/components/autocomplete/autocomplete.css +1 -1
  23. package/components/autocomplete/autocomplete.js +3 -3
  24. package/components/autocomplete/autocomplete.lazy.js +1 -0
  25. package/components/breadcrumbs/breadcrumbs-aurora.less +2 -0
  26. package/components/breadcrumbs/breadcrumbs-ios.less +2 -0
  27. package/components/breadcrumbs/breadcrumbs-md.less +2 -0
  28. package/components/breadcrumbs/breadcrumbs-rtl.css +1 -0
  29. package/components/breadcrumbs/breadcrumbs-vars.less +36 -0
  30. package/components/breadcrumbs/breadcrumbs.css +1 -0
  31. package/components/breadcrumbs/breadcrumbs.d.ts +15 -0
  32. package/components/breadcrumbs/breadcrumbs.js +13 -0
  33. package/components/breadcrumbs/breadcrumbs.lazy.js +1 -0
  34. package/components/breadcrumbs/breadcrumbs.less +100 -0
  35. package/components/calendar/calendar-class.js +222 -130
  36. package/components/calendar/calendar-rtl.css +1 -1
  37. package/components/calendar/calendar-vars.less +6 -10
  38. package/components/calendar/calendar.css +1 -1
  39. package/components/calendar/calendar.d.ts +2 -0
  40. package/components/calendar/calendar.js +9 -4
  41. package/components/calendar/calendar.lazy.js +1 -0
  42. package/components/calendar/calendar.less +20 -16
  43. package/components/card/card-rtl.css +1 -1
  44. package/components/card/card.css +1 -1
  45. package/components/card/card.js +27 -7
  46. package/components/card/card.lazy.js +1 -0
  47. package/components/checkbox/checkbox-rtl.css +1 -1
  48. package/components/checkbox/checkbox.css +1 -1
  49. package/components/checkbox/{checkbox.umd.js → checkbox.lazy.js} +0 -0
  50. package/components/chip/chip-rtl.css +1 -1
  51. package/components/chip/chip.css +1 -1
  52. package/components/chip/{chip.umd.js → chip.lazy.js} +0 -0
  53. package/components/color-picker/color-picker-class.js +37 -21
  54. package/components/color-picker/color-picker-rtl.css +1 -1
  55. package/components/color-picker/color-picker.css +1 -1
  56. package/components/color-picker/color-picker.js +8 -4
  57. package/components/color-picker/{color-picker.umd.js → color-picker.lazy.js} +1 -1
  58. package/components/color-picker/modules/alpha-slider.js +1 -1
  59. package/components/color-picker/modules/brightness-slider.js +2 -2
  60. package/components/color-picker/modules/current-color.js +1 -1
  61. package/components/color-picker/modules/hex.js +1 -1
  62. package/components/color-picker/modules/hs-spectrum.js +4 -4
  63. package/components/color-picker/modules/hsb-sliders.js +3 -3
  64. package/components/color-picker/modules/hue-slider.js +1 -1
  65. package/components/color-picker/modules/initial-current-colors.js +1 -1
  66. package/components/color-picker/modules/palette.js +2 -2
  67. package/components/color-picker/modules/rgb-bars.js +2 -2
  68. package/components/color-picker/modules/rgb-sliders.js +2 -2
  69. package/components/color-picker/modules/sb-spectrum.js +3 -3
  70. package/components/color-picker/modules/wheel.js +3 -3
  71. package/components/contacts-list/contacts-list-rtl.css +1 -1
  72. package/components/contacts-list/contacts-list.css +1 -1
  73. package/components/contacts-list/{contacts-list.umd.js → contacts-list.lazy.js} +0 -0
  74. package/components/data-table/data-table-class.js +8 -4
  75. package/components/data-table/data-table-rtl.css +1 -1
  76. package/components/data-table/data-table.css +1 -1
  77. package/components/data-table/data-table.js +3 -3
  78. package/components/data-table/data-table.lazy.js +1 -0
  79. package/components/dialog/dialog-class.js +5 -5
  80. package/components/dialog/dialog-rtl.css +1 -1
  81. package/components/dialog/dialog.css +1 -1
  82. package/components/dialog/dialog.js +33 -9
  83. package/components/dialog/dialog.lazy.js +1 -0
  84. package/components/elevation/{elevation.umd.js → elevation.lazy.js} +0 -0
  85. package/components/fab/fab-rtl.css +1 -1
  86. package/components/fab/fab.css +1 -1
  87. package/components/fab/fab.js +17 -5
  88. package/components/fab/fab.lazy.js +1 -0
  89. package/components/form/form.js +2 -2
  90. package/components/form/{form.umd.js → form.lazy.js} +1 -1
  91. package/components/gauge/gauge-class.js +14 -6
  92. package/components/gauge/gauge.d.ts +2 -2
  93. package/components/gauge/gauge.js +4 -4
  94. package/components/gauge/gauge.lazy.js +1 -0
  95. package/components/grid/grid-rtl.css +1 -1
  96. package/components/grid/grid.css +1 -1
  97. package/components/grid/grid.js +2 -2
  98. package/components/grid/{grid.umd.js → grid.lazy.js} +0 -0
  99. package/components/infinite-scroll/infinite-scroll.js +2 -2
  100. package/components/infinite-scroll/{infinite-scroll.umd.js → infinite-scroll.lazy.js} +0 -0
  101. package/components/input/input-rtl.css +1 -1
  102. package/components/input/input.css +1 -1
  103. package/components/input/input.js +8 -4
  104. package/components/input/input.lazy.js +1 -0
  105. package/components/input/input.less +1 -1
  106. package/components/lazy/lazy.js +3 -3
  107. package/components/lazy/{lazy.umd.js → lazy.lazy.js} +0 -0
  108. package/components/list-index/list-index-class.js +9 -5
  109. package/components/list-index/list-index.d.ts +1 -1
  110. package/components/list-index/list-index.js +4 -4
  111. package/components/list-index/list-index.lazy.js +1 -0
  112. package/components/login-screen/login-screen-class.js +3 -3
  113. package/components/login-screen/login-screen-rtl.css +1 -1
  114. package/components/login-screen/login-screen.css +1 -1
  115. package/components/login-screen/login-screen.js +12 -4
  116. package/components/login-screen/login-screen.lazy.js +1 -0
  117. package/components/login-screen/login-screen.less +1 -1
  118. package/components/menu/menu.js +12 -4
  119. package/components/menu/menu.lazy.js +1 -0
  120. package/components/messagebar/messagebar-class.js +28 -8
  121. package/components/messagebar/messagebar-rtl.css +1 -1
  122. package/components/messagebar/messagebar.css +1 -1
  123. package/components/messagebar/messagebar.js +4 -4
  124. package/components/messagebar/messagebar.lazy.js +1 -0
  125. package/components/messages/messages-class.js +64 -28
  126. package/components/messages/messages-rtl.css +1 -1
  127. package/components/messages/messages.css +1 -1
  128. package/components/messages/messages.js +3 -3
  129. package/components/messages/messages.lazy.js +1 -0
  130. package/components/modal/custom-modal-class.js +3 -3
  131. package/components/modal/modal-class.js +13 -3
  132. package/components/modal/modal.js +2 -2
  133. package/components/navbar/navbar.js +29 -5
  134. package/components/notification/notification-aurora.less +1 -1
  135. package/components/notification/notification-class.js +4 -4
  136. package/components/notification/notification-ios.less +1 -1
  137. package/components/notification/notification-rtl.css +1 -1
  138. package/components/notification/notification.css +1 -1
  139. package/components/notification/notification.d.ts +4 -4
  140. package/components/notification/notification.js +3 -3
  141. package/components/notification/{notification.umd.js → notification.lazy.js} +0 -0
  142. package/components/page/page-vars.less +1 -1
  143. package/components/panel/panel-class.js +40 -12
  144. package/components/panel/panel.js +43 -11
  145. package/components/panel/panel.lazy.js +1 -0
  146. package/components/panel/resizable-panel.js +3 -3
  147. package/components/panel/swipe-panel.js +2 -2
  148. package/components/photo-browser/photo-browser-class.js +46 -12
  149. package/components/photo-browser/photo-browser.js +2 -2
  150. package/components/photo-browser/photo-browser.lazy.js +1 -0
  151. package/components/picker/picker-class.js +17 -13
  152. package/components/picker/picker-column.js +35 -271
  153. package/components/picker/picker-rtl.css +1 -1
  154. package/components/picker/picker.css +1 -1
  155. package/components/picker/picker.d.ts +2 -13
  156. package/components/picker/picker.js +8 -9
  157. package/components/picker/picker.lazy.js +1 -0
  158. package/components/picker/picker.less +28 -10
  159. package/components/pie-chart/pie-chart-class.js +20 -11
  160. package/components/pie-chart/pie-chart.js +3 -3
  161. package/components/pie-chart/pie-chart.lazy.js +1 -0
  162. package/components/popover/popover-class.js +24 -7
  163. package/components/popover/popover-rtl.css +1 -1
  164. package/components/popover/popover.css +1 -1
  165. package/components/popover/popover.d.ts +2 -0
  166. package/components/popover/popover.js +15 -6
  167. package/components/popover/popover.lazy.js +1 -0
  168. package/components/popover/popover.less +3 -0
  169. package/components/popup/popup-class.js +11 -6
  170. package/components/popup/popup-rtl.css +1 -1
  171. package/components/popup/popup.css +1 -1
  172. package/components/popup/popup.d.ts +4 -0
  173. package/components/popup/popup.js +13 -4
  174. package/components/popup/popup.lazy.js +1 -0
  175. package/components/popup/popup.less +25 -21
  176. package/components/preloader/preloader-ios.less +3 -0
  177. package/components/preloader/preloader-rtl.css +1 -1
  178. package/components/preloader/preloader.css +1 -1
  179. package/components/preloader/preloader.d.ts +4 -0
  180. package/components/preloader/preloader.js +12 -4
  181. package/components/preloader/preloader.lazy.js +1 -0
  182. package/components/progressbar/progressbar-aurora.less +32 -13
  183. package/components/progressbar/progressbar-ios.less +19 -7
  184. package/components/progressbar/progressbar-md.less +64 -28
  185. package/components/progressbar/progressbar-rtl.css +1 -1
  186. package/components/progressbar/progressbar.css +1 -1
  187. package/components/progressbar/progressbar.js +19 -6
  188. package/components/progressbar/progressbar.lazy.js +1 -0
  189. package/components/progressbar/progressbar.less +16 -4
  190. package/components/pull-to-refresh/pull-to-refresh-class.js +10 -6
  191. package/components/pull-to-refresh/pull-to-refresh.js +4 -4
  192. package/components/pull-to-refresh/pull-to-refresh.lazy.js +1 -0
  193. package/components/radio/radio-rtl.css +1 -1
  194. package/components/radio/radio.css +1 -1
  195. package/components/radio/{radio.umd.js → radio.lazy.js} +0 -0
  196. package/components/range/range-class.js +4 -4
  197. package/components/range/range.d.ts +23 -5
  198. package/components/range/range.js +14 -6
  199. package/components/range/{range.umd.js → range.lazy.js} +1 -1
  200. package/components/searchbar/searchbar-class.js +11 -7
  201. package/components/searchbar/searchbar-rtl.css +1 -1
  202. package/components/searchbar/searchbar.css +1 -1
  203. package/components/searchbar/searchbar.js +24 -8
  204. package/components/searchbar/searchbar.lazy.js +1 -0
  205. package/components/searchbar/searchbar.less +1 -1
  206. package/components/sheet/sheet-class.js +26 -7
  207. package/components/sheet/sheet-rtl.css +1 -1
  208. package/components/sheet/sheet.css +1 -1
  209. package/components/sheet/sheet.d.ts +2 -0
  210. package/components/sheet/sheet.js +15 -6
  211. package/components/sheet/sheet.lazy.js +1 -0
  212. package/components/sheet/sheet.less +19 -16
  213. package/components/skeleton/skeleton-rtl.css +1 -1
  214. package/components/skeleton/skeleton-vars.less +1 -1
  215. package/components/skeleton/skeleton.css +1 -1
  216. package/components/skeleton/{skeleton.umd.js → skeleton.lazy.js} +0 -0
  217. package/components/smart-select/smart-select-class.js +19 -7
  218. package/components/smart-select/smart-select.js +4 -4
  219. package/components/smart-select/smart-select.lazy.js +1 -0
  220. package/components/sortable/sortable-rtl.css +1 -1
  221. package/components/sortable/sortable.css +1 -1
  222. package/components/sortable/sortable.d.ts +5 -1
  223. package/components/sortable/sortable.js +48 -11
  224. package/components/sortable/sortable.lazy.js +1 -0
  225. package/components/statusbar/statusbar.d.ts +9 -9
  226. package/components/statusbar/statusbar.js +8 -4
  227. package/components/stepper/stepper-class.js +3 -3
  228. package/components/stepper/stepper.js +14 -6
  229. package/components/stepper/{stepper.umd.js → stepper.lazy.js} +1 -1
  230. package/components/subnavbar/subnavbar.js +1 -1
  231. package/components/swipeout/swipeout-rtl.css +1 -1
  232. package/components/swipeout/swipeout.css +1 -1
  233. package/components/swipeout/swipeout.js +19 -6
  234. package/components/swipeout/{swipeout.umd.js → swipeout.lazy.js} +1 -1
  235. package/components/swiper/swiper-rtl.css +1 -1
  236. package/components/swiper/swiper.css +1 -1
  237. package/components/swiper/swiper.js +2 -2
  238. package/components/swiper/swiper.lazy.js +1 -0
  239. package/components/tabs/tabs.js +16 -9
  240. package/components/tabs/tabs.lazy.js +1 -0
  241. package/components/text-editor/text-editor-class.js +5 -5
  242. package/components/text-editor/text-editor-rtl.css +1 -1
  243. package/components/text-editor/text-editor.css +1 -1
  244. package/components/text-editor/text-editor.js +4 -4
  245. package/components/text-editor/{text-editor.umd.js → text-editor.lazy.js} +1 -1
  246. package/components/timeline/timeline-rtl.css +1 -1
  247. package/components/timeline/timeline.css +1 -1
  248. package/components/timeline/{timeline.umd.js → timeline.lazy.js} +0 -0
  249. package/components/toast/toast-class.js +4 -4
  250. package/components/toast/toast.d.ts +2 -2
  251. package/components/toast/toast.js +3 -3
  252. package/components/toast/{toast.umd.js → toast.lazy.js} +0 -0
  253. package/components/toggle/toggle-class.js +9 -5
  254. package/components/toggle/toggle-rtl.css +1 -1
  255. package/components/toggle/toggle.css +1 -1
  256. package/components/toggle/toggle.js +3 -3
  257. package/components/toggle/toggle.lazy.js +1 -0
  258. package/components/toolbar/toolbar-aurora.less +0 -13
  259. package/components/toolbar/toolbar-md.less +0 -13
  260. package/components/toolbar/toolbar.js +13 -5
  261. package/components/toolbar/toolbar.less +13 -0
  262. package/components/tooltip/tooltip-class.js +9 -5
  263. package/components/tooltip/tooltip.js +3 -3
  264. package/components/tooltip/tooltip.lazy.js +1 -0
  265. package/components/touch-ripple/touch-ripple-class.js +1 -1
  266. package/components/touch-ripple/touch-ripple-vars.less +1 -1
  267. package/components/touch-ripple/touch-ripple.js +6 -2
  268. package/components/treeview/treeview-rtl.css +1 -1
  269. package/components/treeview/treeview.css +1 -1
  270. package/components/treeview/treeview.js +2 -2
  271. package/components/treeview/{treeview.umd.js → treeview.lazy.js} +1 -1
  272. package/components/typography/{typography.umd.js → typography.lazy.js} +0 -0
  273. package/components/view/resizable-view.js +3 -3
  274. package/components/view/view-class.js +18 -7
  275. package/components/view/view.d.ts +5 -1
  276. package/components/view/view.js +5 -3
  277. package/components/virtual-list/virtual-list-class.js +58 -13
  278. package/components/virtual-list/virtual-list.d.ts +2 -2
  279. package/components/virtual-list/virtual-list.js +2 -2
  280. package/components/virtual-list/virtual-list.lazy.js +1 -0
  281. package/framework7-bundle-rtl.css +513 -411
  282. package/framework7-bundle-rtl.min.css +4 -4
  283. package/framework7-bundle.css +498 -395
  284. package/framework7-bundle.esm.js +87 -86
  285. package/framework7-bundle.js +2728 -1257
  286. package/framework7-bundle.js.map +1 -1
  287. package/framework7-bundle.less +4 -3
  288. package/framework7-bundle.min.css +4 -4
  289. package/framework7-bundle.min.js +4 -4
  290. package/framework7-bundle.min.js.map +1 -1
  291. package/framework7-lite-bundle.esm.js +81 -80
  292. package/framework7-lite.esm.js +27 -27
  293. package/framework7-rtl.css +61 -70
  294. package/framework7-rtl.min.css +4 -4
  295. package/framework7-types.d.ts +5 -1
  296. package/framework7.css +60 -68
  297. package/framework7.d.ts +4 -0
  298. package/framework7.esm.js +30 -30
  299. package/framework7.js +675 -255
  300. package/framework7.js.map +1 -1
  301. package/framework7.less +3 -3
  302. package/framework7.min.css +4 -4
  303. package/framework7.min.js +4 -4
  304. package/framework7.min.js.map +1 -1
  305. package/less/mixins.less +2 -2
  306. package/modules/clicks/clicks.js +2 -2
  307. package/modules/component/$h.js +6 -2
  308. package/modules/component/$jsx.js +6 -2
  309. package/modules/component/component-class.js +40 -27
  310. package/modules/component/component.d.ts +2 -2
  311. package/modules/component/component.js +11 -10
  312. package/modules/component/eventslisteners.js +6 -2
  313. package/modules/component/parse-component.js +2 -2
  314. package/modules/component/patch.js +5 -5
  315. package/modules/component/snabbdom/h.js +2 -2
  316. package/modules/component/snabbdom/snabbdom.bundle.js +7 -7
  317. package/modules/component/snabbdom/snabbdom.js +3 -3
  318. package/modules/component/snabbdom/thunk.js +1 -1
  319. package/modules/component/snabbdom/tovnode.js +2 -2
  320. package/modules/component/vdom.js +35 -20
  321. package/modules/device/device.js +2 -2
  322. package/modules/history/history.js +1 -1
  323. package/modules/request/request.js +1 -1
  324. package/modules/resize/resize.js +1 -1
  325. package/modules/router/back.js +24 -14
  326. package/modules/router/clear-previous-history.js +2 -2
  327. package/modules/router/component-loader.js +81 -24
  328. package/modules/router/modal.js +8 -4
  329. package/modules/router/navigate.js +25 -55
  330. package/modules/router/redirect.js +6 -2
  331. package/modules/router/router-class.js +50 -21
  332. package/modules/router/router.js +1 -1
  333. package/modules/router/swipe-back.js +12 -11
  334. package/modules/router/tab.js +10 -6
  335. package/modules/service-worker/service-worker.js +1 -1
  336. package/modules/store/create-store.js +11 -3
  337. package/modules/store/store.js +1 -1
  338. package/modules/support/support.js +1 -1
  339. package/modules/touch/touch.js +4 -4
  340. package/modules/utils/utils.js +1 -1
  341. package/package.json +12 -6
  342. package/shared/$jsx.js +6 -1
  343. package/shared/class.js +35 -7
  344. package/shared/constructor-methods.js +26 -5
  345. package/shared/events-class.js +15 -3
  346. package/shared/get-device.d.ts +0 -2
  347. package/shared/get-device.js +11 -7
  348. package/shared/history.js +2 -2
  349. package/shared/modal-methods.js +13 -5
  350. package/shared/request.js +46 -8
  351. package/shared/utils.js +47 -10
  352. package/components/actions/actions.umd.js +0 -1
  353. package/components/area-chart/area-chart.umd.js +0 -1
  354. package/components/autocomplete/autocomplete.umd.js +0 -1
  355. package/components/calendar/calendar.umd.js +0 -1
  356. package/components/card/card.umd.js +0 -1
  357. package/components/data-table/data-table.umd.js +0 -1
  358. package/components/dialog/dialog.umd.js +0 -1
  359. package/components/fab/fab.umd.js +0 -1
  360. package/components/gauge/gauge.umd.js +0 -1
  361. package/components/input/input.umd.js +0 -1
  362. package/components/list-index/list-index.umd.js +0 -1
  363. package/components/login-screen/login-screen.umd.js +0 -1
  364. package/components/menu/menu.umd.js +0 -1
  365. package/components/messagebar/messagebar.umd.js +0 -1
  366. package/components/messages/messages.umd.js +0 -1
  367. package/components/panel/panel.umd.js +0 -1
  368. package/components/photo-browser/photo-browser.umd.js +0 -1
  369. package/components/picker/picker.umd.js +0 -1
  370. package/components/pie-chart/pie-chart.umd.js +0 -1
  371. package/components/popover/popover.umd.js +0 -1
  372. package/components/popup/popup.umd.js +0 -1
  373. package/components/preloader/preloader.umd.js +0 -1
  374. package/components/progressbar/progressbar.umd.js +0 -1
  375. package/components/pull-to-refresh/pull-to-refresh.umd.js +0 -1
  376. package/components/searchbar/searchbar.umd.js +0 -1
  377. package/components/sheet/sheet.umd.js +0 -1
  378. package/components/smart-select/smart-select.umd.js +0 -1
  379. package/components/sortable/sortable.umd.js +0 -1
  380. package/components/swiper/swiper.umd.js +0 -1
  381. package/components/tabs/tabs.umd.js +0 -1
  382. package/components/toggle/toggle.umd.js +0 -1
  383. package/components/tooltip/tooltip.umd.js +0 -1
  384. package/components/virtual-list/virtual-list.umd.js +0 -1
package/framework7.js CHANGED
@@ -1,23 +1,23 @@
1
1
  /**
2
- * Framework7 7.0.0-beta.2
2
+ * Framework7 7.0.0-beta.20
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
6
- * Copyright 2014-2021 Vladimir Kharlampidi
6
+ * Copyright 2014-2022 Vladimir Kharlampidi
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: October 4, 2021
10
+ * Released on: April 15, 2022
11
11
  */
12
12
 
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
15
15
  typeof define === 'function' && define.amd ? define(factory) :
16
16
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Framework7 = factory());
17
- }(this, (function () { 'use strict';
17
+ })(this, (function () { 'use strict';
18
18
 
19
19
  /**
20
- * SSR Window 4.0.0
20
+ * SSR Window 4.0.2
21
21
  * Better handling for window object in SSR environment
22
22
  * https://github.com/nolimits4web/ssr-window
23
23
  *
@@ -25,7 +25,7 @@
25
25
  *
26
26
  * Licensed under MIT
27
27
  *
28
- * Released on: August 25, 2021
28
+ * Released on: December 13, 2021
29
29
  */
30
30
 
31
31
  /* eslint-disable no-param-reassign */
@@ -33,7 +33,15 @@
33
33
  return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;
34
34
  }
35
35
 
36
- function extend$1(target = {}, src = {}) {
36
+ function extend$1(target, src) {
37
+ if (target === void 0) {
38
+ target = {};
39
+ }
40
+
41
+ if (src === void 0) {
42
+ src = {};
43
+ }
44
+
37
45
  Object.keys(src).forEach(key => {
38
46
  if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject$1(src[key]) && isObject$1(target[key]) && Object.keys(src[key]).length > 0) {
39
47
  extend$1(target[key], src[key]);
@@ -196,15 +204,15 @@
196
204
  }
197
205
 
198
206
  /**
199
- * Dom7 4.0.0
207
+ * Dom7 4.0.4
200
208
  * Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API
201
209
  * https://framework7.io/docs/dom7.html
202
210
  *
203
- * Copyright 2021, Vladimir Kharlampidi
211
+ * Copyright 2022, Vladimir Kharlampidi
204
212
  *
205
213
  * Licensed under MIT
206
214
  *
207
- * Released on: August 25, 2021
215
+ * Released on: January 11, 2022
208
216
  */
209
217
  /* eslint-disable no-proto */
210
218
 
@@ -224,13 +232,21 @@
224
232
 
225
233
  class Dom7 extends Array {
226
234
  constructor(items) {
227
- super(...(items || []));
228
- makeReactive(this);
235
+ if (typeof items === 'number') {
236
+ super(items);
237
+ } else {
238
+ super(...(items || []));
239
+ makeReactive(this);
240
+ }
229
241
  }
230
242
 
231
243
  }
232
244
 
233
- function arrayFlat(arr = []) {
245
+ function arrayFlat(arr) {
246
+ if (arr === void 0) {
247
+ arr = [];
248
+ }
249
+
234
250
  const res = [];
235
251
  arr.forEach(el => {
236
252
  if (Array.isArray(el)) {
@@ -321,7 +337,11 @@
321
337
 
322
338
  $$1.fn = Dom7.prototype; // eslint-disable-next-line
323
339
 
324
- function addClass(...classes) {
340
+ function addClass() {
341
+ for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
342
+ classes[_key] = arguments[_key];
343
+ }
344
+
325
345
  const classNames = arrayFlat(classes.map(c => c.split(' ')));
326
346
  this.forEach(el => {
327
347
  el.classList.add(...classNames);
@@ -329,7 +349,11 @@
329
349
  return this;
330
350
  }
331
351
 
332
- function removeClass(...classes) {
352
+ function removeClass() {
353
+ for (var _len2 = arguments.length, classes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
354
+ classes[_key2] = arguments[_key2];
355
+ }
356
+
333
357
  const classNames = arrayFlat(classes.map(c => c.split(' ')));
334
358
  this.forEach(el => {
335
359
  el.classList.remove(...classNames);
@@ -337,7 +361,11 @@
337
361
  return this;
338
362
  }
339
363
 
340
- function toggleClass(...classes) {
364
+ function toggleClass() {
365
+ for (var _len3 = arguments.length, classes = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
366
+ classes[_key3] = arguments[_key3];
367
+ }
368
+
341
369
  const classNames = arrayFlat(classes.map(c => c.split(' ')));
342
370
  this.forEach(el => {
343
371
  classNames.forEach(className => {
@@ -346,7 +374,11 @@
346
374
  });
347
375
  }
348
376
 
349
- function hasClass(...classes) {
377
+ function hasClass() {
378
+ for (var _len4 = arguments.length, classes = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
379
+ classes[_key4] = arguments[_key4];
380
+ }
381
+
350
382
  const classNames = arrayFlat(classes.map(c => c.split(' ')));
351
383
  return arrayFilter(this, el => {
352
384
  return classNames.filter(className => el.classList.contains(className)).length > 0;
@@ -531,7 +563,11 @@
531
563
  return this;
532
564
  }
533
565
 
534
- function on(...args) {
566
+ function on() {
567
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
568
+ args[_key5] = arguments[_key5];
569
+ }
570
+
535
571
  let [eventType, targetSelector, listener, capture] = args;
536
572
 
537
573
  if (typeof args[1] === 'function') {
@@ -604,7 +640,11 @@
604
640
  return this;
605
641
  }
606
642
 
607
- function off(...args) {
643
+ function off() {
644
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
645
+ args[_key6] = arguments[_key6];
646
+ }
647
+
608
648
  let [eventType, targetSelector, listener, capture] = args;
609
649
 
610
650
  if (typeof args[1] === 'function') {
@@ -650,8 +690,13 @@
650
690
  return this;
651
691
  }
652
692
 
653
- function once(...args) {
693
+ function once() {
654
694
  const dom = this;
695
+
696
+ for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
697
+ args[_key7] = arguments[_key7];
698
+ }
699
+
655
700
  let [eventName, targetSelector, listener, capture] = args;
656
701
 
657
702
  if (typeof args[1] === 'function') {
@@ -659,7 +704,11 @@
659
704
  targetSelector = undefined;
660
705
  }
661
706
 
662
- function onceHandler(...eventArgs) {
707
+ function onceHandler() {
708
+ for (var _len8 = arguments.length, eventArgs = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
709
+ eventArgs[_key8] = arguments[_key8];
710
+ }
711
+
663
712
  listener.apply(this, eventArgs);
664
713
  dom.off(eventName, targetSelector, onceHandler, capture);
665
714
 
@@ -672,8 +721,13 @@
672
721
  return dom.on(eventName, targetSelector, onceHandler, capture);
673
722
  }
674
723
 
675
- function trigger(...args) {
724
+ function trigger() {
676
725
  const window = getWindow();
726
+
727
+ for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
728
+ args[_key9] = arguments[_key9];
729
+ }
730
+
677
731
  const events = args[0].split(' ');
678
732
  const eventData = args[1];
679
733
 
@@ -984,12 +1038,12 @@
984
1038
  return $$1([this[index]]);
985
1039
  }
986
1040
 
987
- function append(...els) {
1041
+ function append() {
988
1042
  let newChild;
989
1043
  const document = getDocument();
990
1044
 
991
- for (let k = 0; k < els.length; k += 1) {
992
- newChild = els[k];
1045
+ for (let k = 0; k < arguments.length; k += 1) {
1046
+ newChild = k < 0 || arguments.length <= k ? undefined : arguments[k];
993
1047
 
994
1048
  for (let i = 0; i < this.length; i += 1) {
995
1049
  if (typeof newChild === 'string') {
@@ -1243,11 +1297,15 @@
1243
1297
  return this.remove();
1244
1298
  }
1245
1299
 
1246
- function add(...els) {
1300
+ function add() {
1247
1301
  const dom = this;
1248
1302
  let i;
1249
1303
  let j;
1250
1304
 
1305
+ for (var _len10 = arguments.length, els = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
1306
+ els[_key10] = arguments[_key10];
1307
+ }
1308
+
1251
1309
  for (i = 0; i < els.length; i += 1) {
1252
1310
  const toAdd = $$1(els[i]);
1253
1311
 
@@ -1278,8 +1336,13 @@
1278
1336
  } // eslint-disable-next-line
1279
1337
 
1280
1338
 
1281
- function scrollTo(...args) {
1339
+ function scrollTo() {
1282
1340
  const window = getWindow();
1341
+
1342
+ for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
1343
+ args[_key11] = arguments[_key11];
1344
+ }
1345
+
1283
1346
  let [left, top, duration, easing, callback] = args;
1284
1347
 
1285
1348
  if (args.length === 4 && typeof easing === 'function') {
@@ -1339,7 +1402,11 @@
1339
1402
  if (animateTop && newTop === currentTop) animateTop = false;
1340
1403
  if (animateLeft && newLeft === currentLeft) animateLeft = false;
1341
1404
 
1342
- function render(time = new Date().getTime()) {
1405
+ function render(time) {
1406
+ if (time === void 0) {
1407
+ time = new Date().getTime();
1408
+ }
1409
+
1343
1410
  if (startTime === null) {
1344
1411
  startTime = time;
1345
1412
  }
@@ -1385,7 +1452,11 @@
1385
1452
  } // scrollTop(top, duration, easing, callback) {
1386
1453
 
1387
1454
 
1388
- function scrollTop(...args) {
1455
+ function scrollTop() {
1456
+ for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
1457
+ args[_key12] = arguments[_key12];
1458
+ }
1459
+
1389
1460
  let [top, duration, easing, callback] = args;
1390
1461
 
1391
1462
  if (args.length === 3 && typeof easing === 'function') {
@@ -1402,7 +1473,11 @@
1402
1473
  return dom.scrollTo(undefined, top, duration, easing, callback);
1403
1474
  }
1404
1475
 
1405
- function scrollLeft(...args) {
1476
+ function scrollLeft() {
1477
+ for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
1478
+ args[_key13] = arguments[_key13];
1479
+ }
1480
+
1406
1481
  let [left, duration, easing, callback] = args;
1407
1482
 
1408
1483
  if (args.length === 3 && typeof easing === 'function') {
@@ -1626,7 +1701,11 @@
1626
1701
  const noTrigger = 'resize scroll'.split(' ');
1627
1702
 
1628
1703
  function shortcut(name) {
1629
- function eventHandler(...args) {
1704
+ function eventHandler() {
1705
+ for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
1706
+ args[_key14] = arguments[_key14];
1707
+ }
1708
+
1630
1709
  if (typeof args[0] === 'undefined') {
1631
1710
  for (let i = 0; i < this.length; i += 1) {
1632
1711
  if (noTrigger.indexOf(name) < 0) {
@@ -1769,7 +1848,15 @@
1769
1848
  uniqueNum += 1;
1770
1849
  return uniqueNum;
1771
1850
  }
1772
- function id(mask = 'xxxxxxxxxx', map = '0123456789abcdef') {
1851
+ function id(mask, map) {
1852
+ if (mask === void 0) {
1853
+ mask = 'xxxxxxxxxx';
1854
+ }
1855
+
1856
+ if (map === void 0) {
1857
+ map = '0123456789abcdef';
1858
+ }
1859
+
1773
1860
  const length = map.length;
1774
1861
  return mask.replace(/x/g, () => map[Math.floor(Math.random() * length)]);
1775
1862
  }
@@ -1823,7 +1910,11 @@
1823
1910
  const window = getWindow();
1824
1911
  return window.cancelAnimationFrame(frameId);
1825
1912
  }
1826
- function nextTick(callback, delay = 0) {
1913
+ function nextTick(callback, delay) {
1914
+ if (delay === void 0) {
1915
+ delay = 0;
1916
+ }
1917
+
1827
1918
  return setTimeout(callback, delay);
1828
1919
  }
1829
1920
  function nextFrame$1(callback) {
@@ -1856,7 +1947,11 @@
1856
1947
 
1857
1948
  return query;
1858
1949
  }
1859
- function getTranslate(el, axis = 'x') {
1950
+ function getTranslate(el, axis) {
1951
+ if (axis === void 0) {
1952
+ axis = 'x';
1953
+ }
1954
+
1860
1955
  const window = getWindow();
1861
1956
  let matrix;
1862
1957
  let curTransform;
@@ -1882,19 +1977,23 @@
1882
1977
  // Latest Chrome and webkits Fix
1883
1978
  if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41; // Crazy IE10 Matrix
1884
1979
  else if (matrix.length === 16) curTransform = parseFloat(matrix[12]); // Normal Browsers
1885
- else curTransform = parseFloat(matrix[4]);
1980
+ else curTransform = parseFloat(matrix[4]);
1886
1981
  }
1887
1982
 
1888
1983
  if (axis === 'y') {
1889
1984
  // Latest Chrome and webkits Fix
1890
1985
  if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42; // Crazy IE10 Matrix
1891
1986
  else if (matrix.length === 16) curTransform = parseFloat(matrix[13]); // Normal Browsers
1892
- else curTransform = parseFloat(matrix[5]);
1987
+ else curTransform = parseFloat(matrix[5]);
1893
1988
  }
1894
1989
 
1895
1990
  return curTransform || 0;
1896
1991
  }
1897
- function serializeObject(obj, parents = []) {
1992
+ function serializeObject(obj, parents) {
1993
+ if (parents === void 0) {
1994
+ parents = [];
1995
+ }
1996
+
1898
1997
  if (typeof obj === 'string') return obj;
1899
1998
  const resultArray = [];
1900
1999
  const separator = '&';
@@ -1954,7 +2053,11 @@
1954
2053
  function isObject(o) {
1955
2054
  return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object;
1956
2055
  }
1957
- function merge(...args) {
2056
+ function merge() {
2057
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2058
+ args[_key] = arguments[_key];
2059
+ }
2060
+
1958
2061
  const to = args[0];
1959
2062
  args.splice(0, 1);
1960
2063
  const from = args;
@@ -1978,11 +2081,15 @@
1978
2081
 
1979
2082
  return to;
1980
2083
  }
1981
- function extend(...args) {
2084
+ function extend() {
1982
2085
  let deep = true;
1983
2086
  let to;
1984
2087
  let from;
1985
2088
 
2089
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2090
+ args[_key2] = arguments[_key2];
2091
+ }
2092
+
1986
2093
  if (typeof args[0] === 'boolean') {
1987
2094
  deep = args[0];
1988
2095
  to = args[1];
@@ -2095,10 +2202,14 @@
2095
2202
  HSB.s = HSL.l > 0 ? 2 * t / HSB.b : HSB.s;
2096
2203
  return [HSB.h, HSB.s, HSB.b];
2097
2204
  }
2098
- function colorThemeCSSProperties(...args) {
2205
+ function colorThemeCSSProperties() {
2099
2206
  let hex;
2100
2207
  let rgb;
2101
2208
 
2209
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
2210
+ args[_key3] = arguments[_key3];
2211
+ }
2212
+
2102
2213
  if (args.length === 1) {
2103
2214
  hex = args[0];
2104
2215
  rgb = colorHexToRgb(hex);
@@ -2133,8 +2244,13 @@
2133
2244
  instance[key] = obj[key];
2134
2245
  });
2135
2246
  }
2136
- function flattenArray(...args) {
2247
+ function flattenArray() {
2137
2248
  const arr = [];
2249
+
2250
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
2251
+ args[_key4] = arguments[_key4];
2252
+ }
2253
+
2138
2254
  args.forEach(arg => {
2139
2255
  if (Array.isArray(arg)) arr.push(...flattenArray(...arg));else arr.push(arg);
2140
2256
  });
@@ -2213,9 +2329,10 @@
2213
2329
 
2214
2330
  let deviceCalculated;
2215
2331
 
2216
- function calcDevice({
2217
- userAgent
2218
- } = {}) {
2332
+ function calcDevice(_temp) {
2333
+ let {
2334
+ userAgent
2335
+ } = _temp === void 0 ? {} : _temp;
2219
2336
  const support = getSupport();
2220
2337
  const window = getWindow();
2221
2338
  const platform = window.navigator.platform;
@@ -2233,8 +2350,7 @@
2233
2350
  firefox: false,
2234
2351
  macos: false,
2235
2352
  windows: false,
2236
- cordova: !!(window.cordova || window.phonegap),
2237
- phonegap: !!(window.cordova || window.phonegap),
2353
+ cordova: !!window.cordova,
2238
2354
  electron: false,
2239
2355
  capacitor: !!window.Capacitor,
2240
2356
  nwjs: false
@@ -2347,7 +2463,11 @@
2347
2463
  return device;
2348
2464
  }
2349
2465
 
2350
- function getDevice(overrides = {}, reset) {
2466
+ function getDevice(overrides, reset) {
2467
+ if (overrides === void 0) {
2468
+ overrides = {};
2469
+ }
2470
+
2351
2471
  if (!deviceCalculated || reset) {
2352
2472
  deviceCalculated = calcDevice(overrides);
2353
2473
  }
@@ -2356,7 +2476,11 @@
2356
2476
  }
2357
2477
 
2358
2478
  class EventsClass {
2359
- constructor(parents = []) {
2479
+ constructor(parents) {
2480
+ if (parents === void 0) {
2481
+ parents = [];
2482
+ }
2483
+
2360
2484
  const self = this;
2361
2485
  self.eventsParents = parents;
2362
2486
  self.eventsListeners = {};
@@ -2377,13 +2501,17 @@
2377
2501
  const self = this;
2378
2502
  if (typeof handler !== 'function') return self;
2379
2503
 
2380
- function onceHandler(...args) {
2504
+ function onceHandler() {
2381
2505
  self.off(events, onceHandler);
2382
2506
 
2383
2507
  if (onceHandler.f7proxy) {
2384
2508
  delete onceHandler.f7proxy;
2385
2509
  }
2386
2510
 
2511
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2512
+ args[_key] = arguments[_key];
2513
+ }
2514
+
2387
2515
  handler.apply(self, args);
2388
2516
  }
2389
2517
 
@@ -2408,7 +2536,7 @@
2408
2536
  return self;
2409
2537
  }
2410
2538
 
2411
- emit(...args) {
2539
+ emit() {
2412
2540
  const self = this;
2413
2541
  if (!self.eventsListeners) return self;
2414
2542
  let events;
@@ -2416,6 +2544,10 @@
2416
2544
  let context;
2417
2545
  let eventsParents;
2418
2546
 
2547
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2548
+ args[_key2] = arguments[_key2];
2549
+ }
2550
+
2419
2551
  if (typeof args[0] === 'string' || Array.isArray(args[0])) {
2420
2552
  events = args[0];
2421
2553
  data = args.slice(1, args.length);
@@ -2455,7 +2587,15 @@
2455
2587
  }
2456
2588
 
2457
2589
  class Framework7Class extends EventsClass {
2458
- constructor(params = {}, parents = []) {
2590
+ constructor(params, parents) {
2591
+ if (params === void 0) {
2592
+ params = {};
2593
+ }
2594
+
2595
+ if (parents === void 0) {
2596
+ parents = [];
2597
+ }
2598
+
2459
2599
  super(parents);
2460
2600
  const self = this;
2461
2601
  self.params = params;
@@ -2494,7 +2634,15 @@
2494
2634
  });
2495
2635
  }
2496
2636
 
2497
- useModule(moduleName = '', moduleParams = {}) {
2637
+ useModule(moduleName, moduleParams) {
2638
+ if (moduleName === void 0) {
2639
+ moduleName = '';
2640
+ }
2641
+
2642
+ if (moduleParams === void 0) {
2643
+ moduleParams = {};
2644
+ }
2645
+
2498
2646
  const instance = this;
2499
2647
  if (!instance.modules) return;
2500
2648
  const module = typeof moduleName === 'string' ? instance.modules[moduleName] : moduleName;
@@ -2538,7 +2686,11 @@
2538
2686
  }
2539
2687
  }
2540
2688
 
2541
- useModules(modulesParams = {}) {
2689
+ useModules(modulesParams) {
2690
+ if (modulesParams === void 0) {
2691
+ modulesParams = {};
2692
+ }
2693
+
2542
2694
  const instance = this;
2543
2695
  if (!instance.modules) return;
2544
2696
  Object.keys(instance.modules).forEach(moduleName => {
@@ -2553,7 +2705,7 @@
2553
2705
  Class.use(components);
2554
2706
  }
2555
2707
 
2556
- static installModule(module, ...params) {
2708
+ static installModule(module) {
2557
2709
  const Class = this;
2558
2710
  if (!Class.prototype.modules) Class.prototype.modules = {};
2559
2711
  const name = module.name || `${Object.keys(Class.prototype.modules).length}_${now()}`;
@@ -2574,13 +2726,17 @@
2574
2726
 
2575
2727
 
2576
2728
  if (module.install) {
2729
+ for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2730
+ params[_key - 1] = arguments[_key];
2731
+ }
2732
+
2577
2733
  module.install.apply(Class, params);
2578
2734
  }
2579
2735
 
2580
2736
  return Class;
2581
2737
  }
2582
2738
 
2583
- static use(module, ...params) {
2739
+ static use(module) {
2584
2740
  const Class = this;
2585
2741
 
2586
2742
  if (Array.isArray(module)) {
@@ -2588,12 +2744,20 @@
2588
2744
  return Class;
2589
2745
  }
2590
2746
 
2747
+ for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2748
+ params[_key2 - 1] = arguments[_key2];
2749
+ }
2750
+
2591
2751
  return Class.installModule(module, ...params);
2592
2752
  }
2593
2753
 
2594
2754
  }
2595
2755
 
2596
- function ConstructorMethods(parameters = {}) {
2756
+ function ConstructorMethods(parameters) {
2757
+ if (parameters === void 0) {
2758
+ parameters = {};
2759
+ }
2760
+
2597
2761
  const {
2598
2762
  defaultSelector,
2599
2763
  constructor: Constructor,
@@ -2602,12 +2766,20 @@
2602
2766
  addMethods
2603
2767
  } = parameters;
2604
2768
  const methods = {
2605
- create(...args) {
2769
+ create() {
2770
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2771
+ args[_key] = arguments[_key];
2772
+ }
2773
+
2606
2774
  if (app) return new Constructor(app, ...args);
2607
2775
  return new Constructor(...args);
2608
2776
  },
2609
2777
 
2610
- get(el = defaultSelector) {
2778
+ get(el) {
2779
+ if (el === void 0) {
2780
+ el = defaultSelector;
2781
+ }
2782
+
2611
2783
  if (el instanceof Constructor) return el;
2612
2784
  const $el = $(el);
2613
2785
  if ($el.length === 0) return undefined;
@@ -2624,8 +2796,17 @@
2624
2796
 
2625
2797
  if (addMethods && Array.isArray(addMethods)) {
2626
2798
  addMethods.forEach(methodName => {
2627
- methods[methodName] = (el = defaultSelector, ...args) => {
2799
+ methods[methodName] = function (el) {
2800
+ if (el === void 0) {
2801
+ el = defaultSelector;
2802
+ }
2803
+
2628
2804
  const instance = methods.get(el);
2805
+
2806
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2807
+ args[_key2 - 1] = arguments[_key2];
2808
+ }
2809
+
2629
2810
  if (instance && instance[methodName]) return instance[methodName](...args);
2630
2811
  return undefined;
2631
2812
  };
@@ -2635,7 +2816,11 @@
2635
2816
  return methods;
2636
2817
  }
2637
2818
 
2638
- function ModalMethods(parameters = {}) {
2819
+ function ModalMethods(parameters) {
2820
+ if (parameters === void 0) {
2821
+ parameters = {};
2822
+ }
2823
+
2639
2824
  const {
2640
2825
  defaultSelector,
2641
2826
  constructor: Constructor,
@@ -2683,7 +2868,11 @@
2683
2868
  return instance.open(animate);
2684
2869
  },
2685
2870
 
2686
- close(el = defaultSelector, animate, targetEl) {
2871
+ close(el, animate, targetEl) {
2872
+ if (el === void 0) {
2873
+ el = defaultSelector;
2874
+ }
2875
+
2687
2876
  let $el = $(el);
2688
2877
  if (!$el.length) return undefined;
2689
2878
 
@@ -2758,7 +2947,7 @@
2758
2947
  return;
2759
2948
  }
2760
2949
 
2761
- modulePath = `${app.params.lazyModulesPath}/${moduleToLoad}/${moduleToLoad}.js`;
2950
+ modulePath = `${app.params.lazyModulesPath}/${moduleToLoad}/${moduleToLoad}.lazy.js`;
2762
2951
  } else {
2763
2952
  modulePath = moduleToLoad;
2764
2953
  }
@@ -2845,7 +3034,7 @@
2845
3034
  });
2846
3035
  });
2847
3036
  const styleLoad = new Promise(resolveStyle => {
2848
- Framework7.request.get(modulePath.replace('.js', app.rtl ? '.rtl.css' : '.css'), styleContent => {
3037
+ Framework7.request.get(modulePath.replace('.lazy.js', app.rtl ? '.rtl.css' : '.css').replace('.js', app.rtl ? '.rtl.css' : '.css'), styleContent => {
2849
3038
  const styleEl = document.createElement('style');
2850
3039
  styleEl.innerHTML = styleContent;
2851
3040
  $('head').append(styleEl);
@@ -2866,7 +3055,11 @@
2866
3055
  /* eslint-disable no-underscore-dangle */
2867
3056
 
2868
3057
  class Framework7 extends Framework7Class {
2869
- constructor(params = {}) {
3058
+ constructor(params) {
3059
+ if (params === void 0) {
3060
+ params = {};
3061
+ }
3062
+
2870
3063
  super(params); // eslint-disable-next-line
2871
3064
 
2872
3065
  if (Framework7.instance && typeof window !== 'undefined') {
@@ -2897,7 +3090,7 @@
2897
3090
  lazyModulesPath: null,
2898
3091
  initOnDeviceReady: true,
2899
3092
  init: true,
2900
- autoDarkTheme: false,
3093
+ autoDarkMode: false,
2901
3094
  iosTranslucentBars: true,
2902
3095
  iosTranslucentModals: true,
2903
3096
  component: undefined,
@@ -2970,7 +3163,7 @@
2970
3163
  app.el = app.$el[0];
2971
3164
  app.el.f7 = app;
2972
3165
  app.rtl = $rootEl.css('direction') === 'rtl';
2973
- } // Auto Dark Theme
3166
+ } // Auto Dark Mode
2974
3167
 
2975
3168
 
2976
3169
  const DARK = '(prefers-color-scheme: dark)';
@@ -2982,10 +3175,12 @@
2982
3175
  app.mq.light = window.matchMedia(LIGHT);
2983
3176
  }
2984
3177
 
2985
- app.colorSchemeListener = function colorSchemeListener({
2986
- matches,
2987
- media
2988
- }) {
3178
+ app.colorSchemeListener = function colorSchemeListener(_ref) {
3179
+ let {
3180
+ matches,
3181
+ media
3182
+ } = _ref;
3183
+
2989
3184
  if (!matches) {
2990
3185
  return;
2991
3186
  }
@@ -2993,13 +3188,13 @@
2993
3188
  const html = document.querySelector('html');
2994
3189
 
2995
3190
  if (media === DARK) {
2996
- html.classList.add('theme-dark');
2997
- app.darkTheme = true;
2998
- app.emit('darkThemeChange', true);
3191
+ html.classList.add('dark');
3192
+ app.darkMode = true;
3193
+ app.emit('darkModeChange', true);
2999
3194
  } else if (media === LIGHT) {
3000
- html.classList.remove('theme-dark');
3001
- app.darkTheme = false;
3002
- app.emit('darkThemeChange', false);
3195
+ html.classList.remove('dark');
3196
+ app.darkMode = false;
3197
+ app.emit('darkModeChange', false);
3003
3198
  }
3004
3199
  };
3005
3200
 
@@ -3016,7 +3211,7 @@
3016
3211
  }
3017
3212
  }
3018
3213
 
3019
- enableAutoDarkTheme() {
3214
+ enableAutoDarkMode() {
3020
3215
  const window = getWindow();
3021
3216
  const document = getDocument();
3022
3217
  if (!window.matchMedia) return;
@@ -3029,17 +3224,17 @@
3029
3224
  }
3030
3225
 
3031
3226
  if (app.mq.dark && app.mq.dark.matches) {
3032
- html.classList.add('theme-dark');
3033
- app.darkTheme = true;
3034
- app.emit('darkThemeChange', true);
3227
+ html.classList.add('dark');
3228
+ app.darkMode = true;
3229
+ app.emit('darkModeChange', true);
3035
3230
  } else if (app.mq.light && app.mq.light.matches) {
3036
- html.classList.remove('theme-dark');
3037
- app.darkTheme = false;
3038
- app.emit('darkThemeChange', false);
3231
+ html.classList.remove('dark');
3232
+ app.darkMode = false;
3233
+ app.emit('darkModeChange', false);
3039
3234
  }
3040
3235
  }
3041
3236
 
3042
- disableAutoDarkTheme() {
3237
+ disableAutoDarkMode() {
3043
3238
  const window = getWindow();
3044
3239
  if (!window.matchMedia) return;
3045
3240
  const app = this;
@@ -3072,11 +3267,11 @@
3072
3267
 
3073
3268
  if (app.rtl) {
3074
3269
  $('html').attr('dir', 'rtl');
3075
- } // Auto Dark Theme
3270
+ } // Auto Dark Mode
3076
3271
 
3077
3272
 
3078
- if (app.params.autoDarkTheme) {
3079
- app.enableAutoDarkTheme();
3273
+ if (app.params.autoDarkMode) {
3274
+ app.enableAutoDarkMode();
3080
3275
  } // Watch for online/offline state
3081
3276
 
3082
3277
 
@@ -3127,13 +3322,13 @@
3127
3322
  } // eslint-disable-next-line
3128
3323
 
3129
3324
 
3130
- loadModule(...args) {
3131
- return Framework7.loadModule(...args);
3325
+ loadModule() {
3326
+ return Framework7.loadModule(...arguments);
3132
3327
  } // eslint-disable-next-line
3133
3328
 
3134
3329
 
3135
- loadModules(...args) {
3136
- return Framework7.loadModules(...args);
3330
+ loadModules() {
3331
+ return Framework7.loadModules(...arguments);
3137
3332
  }
3138
3333
 
3139
3334
  getVnodeHooks(hook, id) {
@@ -3212,7 +3407,7 @@
3212
3407
  }
3213
3408
  }
3214
3409
 
3215
- if (device.cordova || device.phonegap) {
3410
+ if (device.cordova) {
3216
3411
  classNames.push('device-cordova');
3217
3412
  }
3218
3413
 
@@ -3369,7 +3564,7 @@
3369
3564
  } // Function to run XHR callbacks and events
3370
3565
 
3371
3566
 
3372
- function fireCallback(callbackName, ...data) {
3567
+ function fireCallback(callbackName) {
3373
3568
  /*
3374
3569
  Callbacks:
3375
3570
  beforeCreate (options),
@@ -3383,6 +3578,10 @@
3383
3578
  let globalCallbackValue;
3384
3579
  let optionCallbackValue;
3385
3580
 
3581
+ for (var _len = arguments.length, data = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
3582
+ data[_key - 1] = arguments[_key];
3583
+ }
3584
+
3386
3585
  if (globals[callbackName]) {
3387
3586
  globalCallbackValue = globals[callbackName](...data);
3388
3587
  }
@@ -3712,9 +3911,13 @@
3712
3911
  xhr.send(postData);
3713
3912
  });
3714
3913
 
3715
- function requestShortcut(method, ...args) {
3914
+ function requestShortcut(method) {
3716
3915
  let [url, data, success, error, dataType] = [];
3717
3916
 
3917
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
3918
+ args[_key2 - 1] = arguments[_key2];
3919
+ }
3920
+
3718
3921
  if (typeof args[1] === 'function') {
3719
3922
  [url, success, error, dataType] = args;
3720
3923
  } else {
@@ -3750,11 +3953,41 @@
3750
3953
  }
3751
3954
 
3752
3955
  Object.assign(request, {
3753
- get: (...args) => requestShortcut('get', ...args),
3754
- post: (...args) => requestShortcut('post', ...args),
3755
- json: (...args) => requestShortcut('json', ...args),
3756
- getJSON: (...args) => requestShortcut('json', ...args),
3757
- postJSON: (...args) => requestShortcut('postJSON', ...args)
3956
+ get: function () {
3957
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
3958
+ args[_key3] = arguments[_key3];
3959
+ }
3960
+
3961
+ return requestShortcut('get', ...args);
3962
+ },
3963
+ post: function () {
3964
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
3965
+ args[_key4] = arguments[_key4];
3966
+ }
3967
+
3968
+ return requestShortcut('post', ...args);
3969
+ },
3970
+ json: function () {
3971
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
3972
+ args[_key5] = arguments[_key5];
3973
+ }
3974
+
3975
+ return requestShortcut('json', ...args);
3976
+ },
3977
+ getJSON: function () {
3978
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
3979
+ args[_key6] = arguments[_key6];
3980
+ }
3981
+
3982
+ return requestShortcut('json', ...args);
3983
+ },
3984
+ postJSON: function () {
3985
+ for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
3986
+ args[_key7] = arguments[_key7];
3987
+ }
3988
+
3989
+ return requestShortcut('postJSON', ...args);
3990
+ }
3758
3991
  });
3759
3992
 
3760
3993
  request.abortController = () => {
@@ -5299,12 +5532,13 @@
5299
5532
  return els;
5300
5533
  }
5301
5534
 
5302
- function setAnimatableNavElements({
5303
- progress,
5304
- reset,
5305
- transition,
5306
- reflow
5307
- } = {}) {
5535
+ function setAnimatableNavElements(_temp) {
5536
+ let {
5537
+ progress,
5538
+ reset,
5539
+ transition,
5540
+ reflow
5541
+ } = _temp === void 0 ? {} : _temp;
5308
5542
  const styles = ['overflow', 'transform', 'transform-origin', 'opacity'];
5309
5543
 
5310
5544
  if (transition === true || transition === false) {
@@ -5709,7 +5943,11 @@
5709
5943
  options.history = true; // eslint-disable-line
5710
5944
  }
5711
5945
 
5712
- function redirectResolve(redirectUrl, redirectOptions = {}) {
5946
+ function redirectResolve(redirectUrl, redirectOptions) {
5947
+ if (redirectOptions === void 0) {
5948
+ redirectOptions = {};
5949
+ }
5950
+
5713
5951
  router.allowPageChange = true;
5714
5952
  router[method](redirectUrl, extend({}, options, redirectOptions));
5715
5953
  }
@@ -5863,7 +6101,11 @@
5863
6101
  });
5864
6102
  }
5865
6103
 
5866
- function forward(router, el, forwardOptions = {}) {
6104
+ function forward(router, el, forwardOptions) {
6105
+ if (forwardOptions === void 0) {
6106
+ forwardOptions = {};
6107
+ }
6108
+
5867
6109
  const document = getDocument();
5868
6110
  const $el = $(el);
5869
6111
  const app = router.app;
@@ -6462,7 +6704,15 @@
6462
6704
  return router;
6463
6705
  }
6464
6706
 
6465
- function load(router, loadParams = {}, loadOptions = {}, ignorePageChange) {
6707
+ function load(router, loadParams, loadOptions, ignorePageChange) {
6708
+ if (loadParams === void 0) {
6709
+ loadParams = {};
6710
+ }
6711
+
6712
+ if (loadOptions === void 0) {
6713
+ loadOptions = {};
6714
+ }
6715
+
6466
6716
  if (!router.allowPageChange && !ignorePageChange) return router;
6467
6717
  const params = loadParams;
6468
6718
  const options = loadOptions;
@@ -6577,53 +6827,11 @@
6577
6827
  return router;
6578
6828
  }
6579
6829
 
6580
- function openIn(router, url, options) {
6581
- const navigateOptions = {
6582
- url,
6583
- route: {
6584
- path: url,
6585
- options: { ...options,
6586
- openIn: undefined
6587
- }
6588
- }
6589
- };
6590
- const params = { ...options
6591
- };
6592
-
6593
- if (options.openIn === 'popup') {
6594
- 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>`;
6595
- navigateOptions.route.popup = params;
6596
- }
6597
-
6598
- if (options.openIn === 'loginScreen') {
6599
- 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>`;
6600
- navigateOptions.route.loginScreen = params;
6601
- }
6602
-
6603
- if (options.openIn === 'sheet') {
6604
- 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>`;
6605
- navigateOptions.route.sheet = params;
6606
- }
6607
-
6608
- if (options.openIn === 'popover') {
6609
- params.targetEl = options.clickedEl || options.targetEl;
6610
- 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>`;
6611
- navigateOptions.route.popover = params;
6830
+ function navigate(navigateParams, navigateOptions) {
6831
+ if (navigateOptions === void 0) {
6832
+ navigateOptions = {};
6612
6833
  }
6613
6834
 
6614
- if (options.openIn.indexOf('panel') >= 0) {
6615
- const parts = options.openIn.split(':');
6616
- const side = parts[1] || 'left';
6617
- const effect = parts[2] || 'cover';
6618
- params.targetEl = options.clickedEl || options.targetEl;
6619
- 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>`;
6620
- navigateOptions.route.panel = params;
6621
- }
6622
-
6623
- return router.navigate(navigateOptions);
6624
- }
6625
-
6626
- function navigate(navigateParams, navigateOptions = {}) {
6627
6835
  const router = this;
6628
6836
  if (router.swipeBackActive) return router;
6629
6837
  let url;
@@ -6712,7 +6920,7 @@
6712
6920
  }
6713
6921
 
6714
6922
  if (options.openIn && (!router.params.ignoreOpenIn || router.params.ignoreOpenIn && router.history.length > 0)) {
6715
- return openIn(router, navigateUrl, options);
6923
+ return router.openIn(router, navigateUrl, options);
6716
6924
  }
6717
6925
 
6718
6926
  options.route = route;
@@ -6848,7 +7056,11 @@
6848
7056
  return router;
6849
7057
  }
6850
7058
 
6851
- function tabLoad(tabRoute, loadOptions = {}) {
7059
+ function tabLoad(tabRoute, loadOptions) {
7060
+ if (loadOptions === void 0) {
7061
+ loadOptions = {};
7062
+ }
7063
+
6852
7064
  const router = this;
6853
7065
  const options = extend({
6854
7066
  animate: router.params.animate,
@@ -6878,7 +7090,7 @@
6878
7090
 
6879
7091
 
6880
7092
  if (router.params.browserHistory && options.browserHistory && !options.reloadPrevious) {
6881
- History.replace(router.view.id, {
7093
+ History[router.params.browserHistoryTabs](router.view.id, {
6882
7094
  url: options.route.url
6883
7095
  }, (router.params.browserHistoryRoot || '') + router.params.browserHistorySeparator + options.route.url);
6884
7096
  } // Update Router History
@@ -7097,7 +7309,11 @@
7097
7309
  router.removeTabContent($oldTabEl[0], tabRoute);
7098
7310
  }
7099
7311
 
7100
- function modalLoad(modalType, route, loadOptions = {}, direction) {
7312
+ function modalLoad(modalType, route, loadOptions, direction) {
7313
+ if (loadOptions === void 0) {
7314
+ loadOptions = {};
7315
+ }
7316
+
7101
7317
  const router = this;
7102
7318
  const app = router.app;
7103
7319
  const isPanel = modalType === 'panel';
@@ -7344,7 +7560,7 @@
7344
7560
  const $el = $(el);
7345
7561
  const app = router.app;
7346
7562
  const view = router.view;
7347
- const options = extend({
7563
+ const options = extend(false, {
7348
7564
  animate: router.params.animate,
7349
7565
  browserHistory: true,
7350
7566
  replaceState: false
@@ -7888,7 +8104,7 @@
7888
8104
  return router;
7889
8105
  }
7890
8106
 
7891
- function back(...args) {
8107
+ function back() {
7892
8108
  const router = this;
7893
8109
  const device = getDevice();
7894
8110
  if (router.swipeBackActive) return router;
@@ -7896,11 +8112,11 @@
7896
8112
  let navigateOptions;
7897
8113
  let route;
7898
8114
 
7899
- if (typeof args[0] === 'object') {
7900
- navigateOptions = args[0] || {};
8115
+ if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'object') {
8116
+ navigateOptions = (arguments.length <= 0 ? undefined : arguments[0]) || {};
7901
8117
  } else {
7902
- navigateUrl = args[0];
7903
- navigateOptions = args[1] || {};
8118
+ navigateUrl = arguments.length <= 0 ? undefined : arguments[0];
8119
+ navigateOptions = (arguments.length <= 1 ? undefined : arguments[1]) || {};
7904
8120
  }
7905
8121
 
7906
8122
  const {
@@ -8052,6 +8268,16 @@
8052
8268
  }
8053
8269
 
8054
8270
  const previousPageRoute = $previousPage[0].f7Page.route;
8271
+
8272
+ if (navigateOptions.preload && $previousPage.hasClass('stacked')) {
8273
+ loadBack(router, {
8274
+ el: $previousPage
8275
+ }, extend(navigateOptions, {
8276
+ route: previousPageRoute
8277
+ }));
8278
+ return router;
8279
+ }
8280
+
8055
8281
  processRouteQueue.call(router, previousPageRoute, router.currentRoute, () => {
8056
8282
  loadBack(router, {
8057
8283
  el: $previousPage
@@ -8295,7 +8521,11 @@
8295
8521
  enumerable: true,
8296
8522
  configurable: true,
8297
8523
 
8298
- set(newRoute = {}) {
8524
+ set(newRoute) {
8525
+ if (newRoute === void 0) {
8526
+ newRoute = {};
8527
+ }
8528
+
8299
8529
  previousRoute = extend({}, currentRoute);
8300
8530
  currentRoute = newRoute;
8301
8531
  if (!currentRoute) return;
@@ -8700,7 +8930,11 @@
8700
8930
  return undefined;
8701
8931
  }
8702
8932
 
8703
- flattenRoutes(routes = this.routes) {
8933
+ flattenRoutes(routes) {
8934
+ if (routes === void 0) {
8935
+ routes = this.routes;
8936
+ }
8937
+
8704
8938
  const router = this;
8705
8939
  let flattenedRoutes = [];
8706
8940
  routes.forEach(route => {
@@ -8768,7 +9002,11 @@
8768
9002
  };
8769
9003
  }
8770
9004
 
8771
- generateUrl(parameters = {}) {
9005
+ generateUrl(parameters) {
9006
+ if (parameters === void 0) {
9007
+ parameters = {};
9008
+ }
9009
+
8772
9010
  if (typeof parameters === 'string') {
8773
9011
  return parameters;
8774
9012
  }
@@ -8808,10 +9046,11 @@
8808
9046
  } // eslint-disable-next-line
8809
9047
 
8810
9048
 
8811
- constructRouteUrl(route, {
8812
- params,
8813
- query
8814
- } = {}) {
9049
+ constructRouteUrl(route, _temp) {
9050
+ let {
9051
+ params,
9052
+ query
9053
+ } = _temp === void 0 ? {} : _temp;
8815
9054
  const {
8816
9055
  path
8817
9056
  } = route;
@@ -8932,7 +9171,15 @@
8932
9171
  } // eslint-disable-next-line
8933
9172
 
8934
9173
 
8935
- replaceRequestUrlParams(url = '', options = {}) {
9174
+ replaceRequestUrlParams(url, options) {
9175
+ if (url === void 0) {
9176
+ url = '';
9177
+ }
9178
+
9179
+ if (options === void 0) {
9180
+ options = {};
9181
+ }
9182
+
8936
9183
  let compiledUrl = url;
8937
9184
 
8938
9185
  if (typeof compiledUrl === 'string' && compiledUrl.indexOf('{{') >= 0 && options && options.route && options.route.params && Object.keys(options.route.params).length) {
@@ -9095,7 +9342,11 @@
9095
9342
  $(el).find(toRemove).remove();
9096
9343
  }
9097
9344
 
9098
- getPageData(pageEl, navbarEl, from, to, route = {}, pageFromEl) {
9345
+ getPageData(pageEl, navbarEl, from, to, route, pageFromEl) {
9346
+ if (route === void 0) {
9347
+ route = {};
9348
+ }
9349
+
9099
9350
  const router = this;
9100
9351
  const $pageEl = $(pageEl).eq(0);
9101
9352
  const $navbarEl = $(navbarEl).eq(0);
@@ -9142,7 +9393,11 @@
9142
9393
  } // Callbacks
9143
9394
 
9144
9395
 
9145
- pageCallback(callback, pageEl, navbarEl, from, to, options = {}, pageFromEl) {
9396
+ pageCallback(callback, pageEl, navbarEl, from, to, options, pageFromEl) {
9397
+ if (options === void 0) {
9398
+ options = {};
9399
+ }
9400
+
9146
9401
  if (!pageEl) return;
9147
9402
  const router = this;
9148
9403
  const $pageEl = $(pageEl);
@@ -9867,7 +10122,11 @@
9867
10122
  }
9868
10123
 
9869
10124
  class View$1 extends Framework7Class {
9870
- constructor(app, el, viewParams = {}) {
10125
+ constructor(app, el, viewParams) {
10126
+ if (viewParams === void 0) {
10127
+ viewParams = {};
10128
+ }
10129
+
9871
10130
  super(viewParams, [app]);
9872
10131
  const view = this;
9873
10132
  const ssr = view.params.routerId;
@@ -10069,7 +10328,14 @@
10069
10328
  view.initMasterDetail();
10070
10329
  }
10071
10330
 
10072
- view.router.init();
10331
+ if (view.params.initRouterOnTabShow && view.$el.hasClass('tab') && !view.$el.hasClass('tab-active')) {
10332
+ view.$el.once('tab:show', () => {
10333
+ view.router.init();
10334
+ });
10335
+ } else {
10336
+ view.router.init();
10337
+ }
10338
+
10073
10339
  view.$el.trigger('view:init');
10074
10340
  view.emit('local::init viewInit', view);
10075
10341
  }
@@ -10186,7 +10452,57 @@
10186
10452
  var RouterComponentLoaderModule = {
10187
10453
  name: 'routerComponentLoader',
10188
10454
  proto: {
10189
- componentLoader(component, componentUrl, options = {}, resolve, reject) {
10455
+ openIn(router, url, options) {
10456
+ const navigateOptions = {
10457
+ url,
10458
+ route: {
10459
+ path: url,
10460
+ options: { ...options,
10461
+ openIn: undefined
10462
+ }
10463
+ }
10464
+ };
10465
+ const params = { ...options
10466
+ };
10467
+
10468
+ if (options.openIn === 'popup') {
10469
+ 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>`;
10470
+ navigateOptions.route.popup = params;
10471
+ }
10472
+
10473
+ if (options.openIn === 'loginScreen') {
10474
+ 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>`;
10475
+ navigateOptions.route.loginScreen = params;
10476
+ }
10477
+
10478
+ if (options.openIn === 'sheet') {
10479
+ 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>`;
10480
+ navigateOptions.route.sheet = params;
10481
+ }
10482
+
10483
+ if (options.openIn === 'popover') {
10484
+ params.targetEl = options.clickedEl || options.targetEl;
10485
+ 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>`;
10486
+ navigateOptions.route.popover = params;
10487
+ }
10488
+
10489
+ if (options.openIn.indexOf('panel') >= 0) {
10490
+ const parts = options.openIn.split(':');
10491
+ const side = parts[1] || 'left';
10492
+ const effect = parts[2] || 'cover';
10493
+ params.targetEl = options.clickedEl || options.targetEl;
10494
+ 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>`;
10495
+ navigateOptions.route.panel = params;
10496
+ }
10497
+
10498
+ return router.navigate(navigateOptions);
10499
+ },
10500
+
10501
+ componentLoader(component, componentUrl, options, resolve, reject) {
10502
+ if (options === void 0) {
10503
+ options = {};
10504
+ }
10505
+
10190
10506
  const router = this;
10191
10507
  const {
10192
10508
  app
@@ -10269,41 +10585,48 @@
10269
10585
  }
10270
10586
  },
10271
10587
 
10272
- modalComponentLoader({
10273
- component,
10274
- componentUrl,
10275
- options,
10276
- resolve,
10277
- reject
10278
- } = {}) {
10588
+ modalComponentLoader(_temp) {
10589
+ let {
10590
+ component,
10591
+ componentUrl,
10592
+ options,
10593
+ resolve,
10594
+ reject
10595
+ } = _temp === void 0 ? {} : _temp;
10279
10596
  const router = this;
10280
10597
  router.componentLoader(component, componentUrl, options, el => {
10281
10598
  resolve(el);
10282
10599
  }, reject);
10283
10600
  },
10284
10601
 
10285
- tabComponentLoader({
10286
- component,
10287
- componentUrl,
10288
- options,
10289
- resolve,
10290
- reject
10291
- } = {}) {
10602
+ tabComponentLoader(_temp2) {
10603
+ let {
10604
+ component,
10605
+ componentUrl,
10606
+ options,
10607
+ resolve,
10608
+ reject
10609
+ } = _temp2 === void 0 ? {} : _temp2;
10292
10610
  const router = this;
10293
10611
  router.componentLoader(component, componentUrl, options, el => {
10294
10612
  resolve(el);
10295
10613
  }, reject);
10296
10614
  },
10297
10615
 
10298
- pageComponentLoader({
10299
- component,
10300
- componentUrl,
10301
- options,
10302
- resolve,
10303
- reject
10304
- } = {}) {
10616
+ pageComponentLoader(_temp3) {
10617
+ let {
10618
+ component,
10619
+ componentUrl,
10620
+ options,
10621
+ resolve,
10622
+ reject
10623
+ } = _temp3 === void 0 ? {} : _temp3;
10305
10624
  const router = this;
10306
- router.componentLoader(component, componentUrl, options, (el, newOptions = {}) => {
10625
+ router.componentLoader(component, componentUrl, options, function (el, newOptions) {
10626
+ if (newOptions === void 0) {
10627
+ newOptions = {};
10628
+ }
10629
+
10307
10630
  resolve(el, newOptions);
10308
10631
  }, reject);
10309
10632
  }
@@ -10342,7 +10665,11 @@
10342
10665
 
10343
10666
  const ignoreChildren = [false, null, '', undefined];
10344
10667
 
10345
- const h$1 = (type, props, ...children) => {
10668
+ const h$1 = function (type, props) {
10669
+ for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
10670
+ children[_key - 2] = arguments[_key];
10671
+ }
10672
+
10346
10673
  return {
10347
10674
  type,
10348
10675
  props: props || {},
@@ -10442,9 +10769,18 @@
10442
10769
  }).join('');
10443
10770
  };
10444
10771
 
10445
- const propsFromAttrs = (...args) => {
10772
+ const propsFromAttrs = function () {
10446
10773
  const context = {};
10447
- args.forEach((obj = {}) => {
10774
+
10775
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10776
+ args[_key] = arguments[_key];
10777
+ }
10778
+
10779
+ args.forEach(function (obj) {
10780
+ if (obj === void 0) {
10781
+ obj = {};
10782
+ }
10783
+
10448
10784
  Object.keys(obj).forEach(key => {
10449
10785
  context[toCamelCase(key)] = obj[key];
10450
10786
  });
@@ -10452,12 +10788,13 @@
10452
10788
  return context;
10453
10789
  };
10454
10790
 
10455
- const createCustomComponent = ({
10456
- f7,
10457
- treeNode,
10458
- vnode,
10459
- data
10460
- }) => {
10791
+ const createCustomComponent = _ref => {
10792
+ let {
10793
+ f7,
10794
+ treeNode,
10795
+ vnode,
10796
+ data
10797
+ } = _ref;
10461
10798
  const component = typeof treeNode.type === 'function' ? treeNode.type : customComponents[treeNode.type];
10462
10799
  f7.component.create(component, propsFromAttrs(data.attrs || {}, data.props || {}), {
10463
10800
  el: vnode.elm,
@@ -10601,20 +10938,21 @@
10601
10938
  return hooks;
10602
10939
  }
10603
10940
 
10604
- const getEventHandler = (eventHandler, {
10605
- stop,
10606
- prevent,
10607
- once
10608
- } = {}) => {
10941
+ const getEventHandler = function (eventHandler, _temp) {
10942
+ let {
10943
+ stop,
10944
+ prevent,
10945
+ once
10946
+ } = _temp === void 0 ? {} : _temp;
10609
10947
  let fired = false;
10610
10948
 
10611
- function handler(...args) {
10612
- const e = args[0];
10949
+ function handler() {
10950
+ const e = arguments.length <= 0 ? undefined : arguments[0];
10613
10951
  if (once && fired) return;
10614
10952
  if (stop) e.stopPropagation();
10615
10953
  if (prevent) e.preventDefault();
10616
10954
  fired = true;
10617
- eventHandler(...args);
10955
+ eventHandler(...arguments);
10618
10956
  }
10619
10957
 
10620
10958
  return handler;
@@ -10780,7 +11118,11 @@
10780
11118
  return h(getTagName(treeNode), data, children);
10781
11119
  };
10782
11120
 
10783
- function vdom(tree = {}, component, initial) {
11121
+ function vdom(tree, component, initial) {
11122
+ if (tree === void 0) {
11123
+ tree = {};
11124
+ }
11125
+
10784
11126
  return treeNodeToVNode(tree, component, component.f7, initial, true);
10785
11127
  }
10786
11128
 
@@ -11418,7 +11760,11 @@
11418
11760
  }
11419
11761
 
11420
11762
  function createListener() {
11421
- return function handler(event, ...args) {
11763
+ return function handler(event) {
11764
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
11765
+ args[_key - 1] = arguments[_key];
11766
+ }
11767
+
11422
11768
  handleEvent(event, args, handler.vnode);
11423
11769
  };
11424
11770
  }
@@ -11484,11 +11830,16 @@
11484
11830
  /* eslint no-underscore-dangle: "off" */
11485
11831
 
11486
11832
  class Component {
11487
- constructor(app, component, props = {}, {
11488
- el,
11489
- context,
11490
- children
11491
- } = {}) {
11833
+ constructor(app, component, props, _temp) {
11834
+ if (props === void 0) {
11835
+ props = {};
11836
+ }
11837
+
11838
+ let {
11839
+ el,
11840
+ context,
11841
+ children
11842
+ } = _temp === void 0 ? {} : _temp;
11492
11843
  const document = getDocument();
11493
11844
  merge(this, {
11494
11845
  f7: app,
@@ -11696,17 +12047,19 @@
11696
12047
  } = this;
11697
12048
  if (!this.__eventHandlers) return;
11698
12049
 
11699
- this.__eventHandlers.forEach(({
11700
- eventName,
11701
- handler
11702
- }) => {
12050
+ this.__eventHandlers.forEach(_ref => {
12051
+ let {
12052
+ eventName,
12053
+ handler
12054
+ } = _ref;
11703
12055
  $el.on(eventNameToColonCase(eventName), handler);
11704
12056
  });
11705
12057
 
11706
- this.__onceEventHandlers.forEach(({
11707
- eventName,
11708
- handler
11709
- }) => {
12058
+ this.__onceEventHandlers.forEach(_ref2 => {
12059
+ let {
12060
+ eventName,
12061
+ handler
12062
+ } = _ref2;
11710
12063
  $el.once(eventNameToColonCase(eventName), handler);
11711
12064
  });
11712
12065
  }
@@ -11717,17 +12070,19 @@
11717
12070
  } = this;
11718
12071
  if (!this.__eventHandlers) return;
11719
12072
 
11720
- this.__eventHandlers.forEach(({
11721
- eventName,
11722
- handler
11723
- }) => {
12073
+ this.__eventHandlers.forEach(_ref3 => {
12074
+ let {
12075
+ eventName,
12076
+ handler
12077
+ } = _ref3;
11724
12078
  $el.on(eventNameToColonCase(eventName), handler);
11725
12079
  });
11726
12080
 
11727
- this.__onceEventHandlers.forEach(({
11728
- eventName,
11729
- handler
11730
- }) => {
12081
+ this.__onceEventHandlers.forEach(_ref4 => {
12082
+ let {
12083
+ eventName,
12084
+ handler
12085
+ } = _ref4;
11731
12086
  $el.once(eventNameToColonCase(eventName), handler);
11732
12087
  });
11733
12088
  }
@@ -11847,7 +12202,11 @@
11847
12202
  this.__destroyed = true;
11848
12203
  }
11849
12204
 
11850
- hook(name, ...args) {
12205
+ hook(name) {
12206
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
12207
+ args[_key - 1] = arguments[_key];
12208
+ }
12209
+
11851
12210
  if (this.__destroyed) return;
11852
12211
  this[`__${name}`].forEach(handler => {
11853
12212
  handler(...args);
@@ -11956,12 +12315,13 @@
11956
12315
  return parseComponent(componentString);
11957
12316
  },
11958
12317
 
11959
- create(component, props, {
11960
- root,
11961
- el,
11962
- context,
11963
- children
11964
- }) {
12318
+ create(component, props, _ref) {
12319
+ let {
12320
+ root,
12321
+ el,
12322
+ context,
12323
+ children
12324
+ } = _ref;
11965
12325
  return new Component(app, component, props, {
11966
12326
  root,
11967
12327
  el,
@@ -12086,7 +12446,11 @@
12086
12446
 
12087
12447
  /* eslint-disable no-underscore-dangle */
12088
12448
 
12089
- function createStore(storeParams = {}) {
12449
+ function createStore(storeParams) {
12450
+ if (storeParams === void 0) {
12451
+ storeParams = {};
12452
+ }
12453
+
12090
12454
  const store = {
12091
12455
  __store: true
12092
12456
  };
@@ -12152,7 +12516,11 @@
12152
12516
  removeGetterCallback(callback);
12153
12517
  };
12154
12518
 
12155
- const getterValue = (getterKey, addCallback = true) => {
12519
+ const getterValue = function (getterKey, addCallback) {
12520
+ if (addCallback === void 0) {
12521
+ addCallback = true;
12522
+ }
12523
+
12156
12524
  if (getterKey === 'constructor') return undefined;
12157
12525
  propsQueue = [];
12158
12526
  const value = getGetterValue(getterKey);
@@ -12360,7 +12728,11 @@
12360
12728
  });
12361
12729
  },
12362
12730
 
12363
- overlaysWebView(overlays = true) {
12731
+ overlaysWebView(overlays) {
12732
+ if (overlays === void 0) {
12733
+ overlays = true;
12734
+ }
12735
+
12364
12736
  const window = getWindow();
12365
12737
  const device = getDevice();
12366
12738
 
@@ -12504,6 +12876,7 @@
12504
12876
  params: {
12505
12877
  view: {
12506
12878
  init: true,
12879
+ initRouterOnTabShow: false,
12507
12880
  name: undefined,
12508
12881
  main: false,
12509
12882
  router: true,
@@ -12554,6 +12927,7 @@
12554
12927
  browserHistoryOnLoad: true,
12555
12928
  browserHistoryInitialMatch: false,
12556
12929
  browserHistoryStoreHistory: true,
12930
+ browserHistoryTabs: 'replace',
12557
12931
  // Animate Pages
12558
12932
  animate: true,
12559
12933
  // iOS Dynamic Navbar
@@ -12803,7 +13177,19 @@
12803
13177
  }
12804
13178
  },
12805
13179
 
12806
- hide(el, animate = true, hideStatusbar = false, hideOnlyCurrent = false) {
13180
+ hide(el, animate, hideStatusbar, hideOnlyCurrent) {
13181
+ if (animate === void 0) {
13182
+ animate = true;
13183
+ }
13184
+
13185
+ if (hideStatusbar === void 0) {
13186
+ hideStatusbar = false;
13187
+ }
13188
+
13189
+ if (hideOnlyCurrent === void 0) {
13190
+ hideOnlyCurrent = false;
13191
+ }
13192
+
12807
13193
  const app = this;
12808
13194
  let $el = $(el);
12809
13195
  const isDynamic = $el.hasClass('navbar') && $el.parent('.navbars').length && !hideOnlyCurrent;
@@ -12837,7 +13223,19 @@
12837
13223
  }
12838
13224
  },
12839
13225
 
12840
- show(el = '.navbar-hidden', animate = true, hideOnlyCurrent = false) {
13226
+ show(el, animate, hideOnlyCurrent) {
13227
+ if (el === void 0) {
13228
+ el = '.navbar-hidden';
13229
+ }
13230
+
13231
+ if (animate === void 0) {
13232
+ animate = true;
13233
+ }
13234
+
13235
+ if (hideOnlyCurrent === void 0) {
13236
+ hideOnlyCurrent = false;
13237
+ }
13238
+
12841
13239
  const app = this;
12842
13240
  let $el = $(el);
12843
13241
  const isDynamic = $el.hasClass('navbar') && $el.parent('.navbars').length && !hideOnlyCurrent;
@@ -13468,8 +13866,8 @@
13468
13866
  const Toolbar = {
13469
13867
  setHighlight(tabbarEl) {
13470
13868
  const app = this;
13471
- if (app.theme === 'ios') return;
13472
13869
  const $tabbarEl = $(tabbarEl);
13870
+ if (app.theme === 'ios' && !$tabbarEl.hasClass('tabbar-highlight')) return;
13473
13871
  if ($tabbarEl.length === 0 || !($tabbarEl.hasClass('tabbar') || $tabbarEl.hasClass('tabbar-labels'))) return;
13474
13872
  let $highlightEl = $tabbarEl.find('.tab-link-highlight');
13475
13873
  const tabLinksCount = $tabbarEl.find('.tab-link').length;
@@ -13509,7 +13907,11 @@
13509
13907
  app.toolbar.setHighlight(tabbarEl);
13510
13908
  },
13511
13909
 
13512
- hide(el, animate = true) {
13910
+ hide(el, animate) {
13911
+ if (animate === void 0) {
13912
+ animate = true;
13913
+ }
13914
+
13513
13915
  const app = this;
13514
13916
  const $el = $(el);
13515
13917
  if ($el.hasClass('toolbar-hidden')) return;
@@ -13522,7 +13924,11 @@
13522
13924
  app.emit('toolbarHide', $el[0]);
13523
13925
  },
13524
13926
 
13525
- show(el, animate = true) {
13927
+ show(el, animate) {
13928
+ if (animate === void 0) {
13929
+ animate = true;
13930
+ }
13931
+
13526
13932
  const app = this;
13527
13933
  const $el = $(el);
13528
13934
  if (!$el.hasClass('toolbar-hidden')) return;
@@ -13819,7 +14225,11 @@
13819
14225
  create() {
13820
14226
  const app = this;
13821
14227
  app.touchRipple = {
13822
- create(...args) {
14228
+ create() {
14229
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14230
+ args[_key] = arguments[_key];
14231
+ }
14232
+
13823
14233
  return new TouchRipple$1(...args);
13824
14234
  }
13825
14235
 
@@ -13885,6 +14295,11 @@
13885
14295
  if (!modal.type || !modal.$el) return;
13886
14296
  modal.$el.removeClass('modal-out');
13887
14297
  modal.$el.hide();
14298
+
14299
+ if (modal.params.backdrop && (modal.params.backdropUnique || modal.forceBackdropUnique) && modal.$backdropEl) {
14300
+ modal.$backdropEl.remove();
14301
+ }
14302
+
13888
14303
  modal.$el.trigger(`modal:closed ${modal.type.toLowerCase()}:closed`);
13889
14304
  modal.emit(`local::closed modalClosed ${modal.type}Closed`, modal);
13890
14305
  }
@@ -13942,8 +14357,13 @@
13942
14357
 
13943
14358
 
13944
14359
  $el.show();
14360
+
14361
+ if (modal.params.backdrop && (modal.params.backdropUnique || modal.forceBackdropUnique) && modal.$backdropEl) {
14362
+ modal.$backdropEl.insertBefore($el);
14363
+ }
13945
14364
  /* eslint no-underscore-dangle: ["error", { "allow": ["_clientLeft"] }] */
13946
14365
 
14366
+
13947
14367
  modal._clientLeft = $el[0].clientLeft; // Modal
13948
14368
 
13949
14369
  function transitionEnd() {
@@ -14179,5 +14599,5 @@
14179
14599
 
14180
14600
  return Framework7;
14181
14601
 
14182
- })));
14602
+ }));
14183
14603
  //# sourceMappingURL=framework7.js.map