framework7 6.3.4 → 7.0.0-beta.3

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 (811) hide show
  1. package/components/accordion/accordion.js +132 -1
  2. package/components/accordion/accordion.umd.js +1 -0
  3. package/components/actions/actions-class.js +365 -0
  4. package/components/actions/actions-rtl.css +1 -1
  5. package/components/actions/actions.css +1 -1
  6. package/components/actions/actions.js +42 -1
  7. package/components/actions/actions.umd.js +1 -0
  8. package/components/app/app-class.d.ts +10 -10
  9. package/{esm/components → components}/app/app-class.js +107 -140
  10. package/components/app/app.less +3 -3
  11. package/{esm/components → components}/app/load-module.js +32 -32
  12. package/components/appbar/appbar.js +3 -1
  13. package/components/appbar/appbar.umd.js +1 -0
  14. package/components/area-chart/area-chart-class.js +507 -0
  15. package/components/area-chart/area-chart-rtl.css +1 -1
  16. package/components/area-chart/area-chart.css +1 -1
  17. package/components/area-chart/area-chart.js +47 -1
  18. package/components/area-chart/area-chart.umd.js +1 -0
  19. package/{esm/components → components}/autocomplete/autocomplete-class.js +241 -253
  20. package/components/autocomplete/autocomplete-rtl.css +1 -1
  21. package/components/autocomplete/autocomplete.css +1 -1
  22. package/components/autocomplete/autocomplete.js +86 -1
  23. package/components/autocomplete/autocomplete.umd.js +1 -0
  24. package/{esm/components → components}/badge/badge.js +0 -0
  25. package/{esm/components → components}/block/block.js +0 -0
  26. package/{esm/components → components}/button/button.js +0 -0
  27. package/{esm/components → components}/calendar/calendar-class.js +676 -643
  28. package/components/calendar/calendar-rtl.css +1 -1
  29. package/components/calendar/calendar.css +1 -1
  30. package/components/calendar/calendar.js +111 -1
  31. package/components/calendar/calendar.umd.js +1 -0
  32. package/components/card/card-rtl.css +1 -1
  33. package/components/card/card.css +1 -1
  34. package/components/card/card.js +592 -1
  35. package/components/card/card.umd.js +1 -0
  36. package/components/checkbox/checkbox-rtl.css +1 -1
  37. package/components/checkbox/checkbox.css +1 -1
  38. package/components/checkbox/checkbox.js +3 -1
  39. package/components/checkbox/checkbox.umd.js +1 -0
  40. package/components/chip/chip-rtl.css +1 -1
  41. package/components/chip/chip.css +1 -1
  42. package/components/chip/chip.js +3 -1
  43. package/components/chip/chip.umd.js +1 -0
  44. package/{esm/components → components}/color-picker/color-picker-class.js +336 -349
  45. package/components/color-picker/color-picker-rtl.css +1 -1
  46. package/components/color-picker/color-picker.css +1 -1
  47. package/components/color-picker/color-picker.js +92 -1
  48. package/components/color-picker/color-picker.umd.js +1 -0
  49. package/{esm/components → components}/color-picker/modules/alpha-slider.js +30 -19
  50. package/{esm/components → components}/color-picker/modules/brightness-slider.js +35 -24
  51. package/{esm/components → components}/color-picker/modules/current-color.js +4 -2
  52. package/{esm/components → components}/color-picker/modules/hex.js +27 -16
  53. package/{esm/components → components}/color-picker/modules/hs-spectrum.js +37 -25
  54. package/{esm/components → components}/color-picker/modules/hsb-sliders.js +54 -41
  55. package/{esm/components → components}/color-picker/modules/hue-slider.js +29 -18
  56. package/{esm/components → components}/color-picker/modules/initial-current-colors.js +14 -9
  57. package/{esm/components → components}/color-picker/modules/palette.js +14 -11
  58. package/{esm/components → components}/color-picker/modules/rgb-bars.js +42 -29
  59. package/{esm/components → components}/color-picker/modules/rgb-sliders.js +47 -34
  60. package/{esm/components → components}/color-picker/modules/sb-spectrum.js +38 -26
  61. package/{esm/components → components}/color-picker/modules/wheel.js +59 -47
  62. package/components/contacts-list/contacts-list-rtl.css +1 -1
  63. package/components/contacts-list/contacts-list.css +1 -1
  64. package/components/contacts-list/contacts-list.js +3 -1
  65. package/components/contacts-list/contacts-list.umd.js +1 -0
  66. package/{esm/components → components}/data-table/data-table-class.js +40 -59
  67. package/components/data-table/data-table-rtl.css +1 -1
  68. package/components/data-table/data-table.css +1 -1
  69. package/components/data-table/data-table.js +72 -1
  70. package/components/data-table/data-table.umd.js +1 -0
  71. package/{esm/components → components}/dialog/dialog-class.js +58 -67
  72. package/components/dialog/dialog-rtl.css +1 -1
  73. package/components/dialog/dialog.css +1 -1
  74. package/components/dialog/dialog.js +254 -1
  75. package/components/dialog/dialog.umd.js +1 -0
  76. package/components/elevation/elevation.js +3 -1
  77. package/components/elevation/elevation.umd.js +1 -0
  78. package/components/fab/fab.js +181 -1
  79. package/components/fab/fab.umd.js +1 -0
  80. package/components/form/form.js +347 -1
  81. package/components/form/form.umd.js +1 -0
  82. package/components/gauge/gauge-class.js +306 -0
  83. package/components/gauge/gauge.js +99 -1
  84. package/components/gauge/gauge.umd.js +1 -0
  85. package/components/grid/grid-rtl.css +1 -1
  86. package/components/grid/grid.css +1 -1
  87. package/components/grid/grid.js +227 -1
  88. package/components/grid/grid.umd.js +1 -0
  89. package/{esm/components → components}/icon/icon.js +0 -0
  90. package/components/infinite-scroll/infinite-scroll.js +110 -1
  91. package/components/infinite-scroll/infinite-scroll.umd.js +1 -0
  92. package/components/input/input-rtl.css +1 -1
  93. package/components/input/input.css +1 -1
  94. package/components/input/input.js +394 -1
  95. package/components/input/input.less +1 -1
  96. package/components/input/input.umd.js +1 -0
  97. package/components/lazy/lazy.js +283 -1
  98. package/components/lazy/lazy.umd.js +1 -0
  99. package/{esm/components → components}/link/link.js +0 -0
  100. package/{esm/components → components}/list/list.js +0 -0
  101. package/{esm/components → components}/list-index/list-index-class.js +113 -121
  102. package/components/list-index/list-index-rtl.css +1 -1
  103. package/components/list-index/list-index.css +1 -1
  104. package/components/list-index/list-index.js +73 -1
  105. package/components/list-index/list-index.umd.js +1 -0
  106. package/components/login-screen/login-screen-class.js +43 -0
  107. package/components/login-screen/login-screen-rtl.css +1 -1
  108. package/components/login-screen/login-screen.css +1 -1
  109. package/components/login-screen/login-screen.js +28 -1
  110. package/components/login-screen/login-screen.less +1 -1
  111. package/components/login-screen/login-screen.umd.js +1 -0
  112. package/components/menu/menu.js +79 -1
  113. package/components/menu/menu.umd.js +1 -0
  114. package/{esm/components → components}/messagebar/messagebar-class.js +124 -152
  115. package/components/messagebar/messagebar-rtl.css +1 -1
  116. package/components/messagebar/messagebar.css +1 -1
  117. package/components/messagebar/messagebar.js +74 -1
  118. package/components/messagebar/messagebar.umd.js +1 -0
  119. package/{esm/components → components}/messages/messages-class.js +162 -242
  120. package/components/messages/messages-rtl.css +1 -1
  121. package/components/messages/messages.css +1 -1
  122. package/components/messages/messages.js +73 -1
  123. package/components/messages/messages.umd.js +1 -0
  124. package/{esm/components → components}/modal/custom-modal-class.js +16 -29
  125. package/{esm/components → components}/modal/modal-class.js +68 -83
  126. package/{esm/components → components}/modal/modal.js +8 -5
  127. package/{esm/components → components}/navbar/navbar.js +166 -171
  128. package/components/notification/notification-aurora.less +1 -1
  129. package/{esm/components → components}/notification/notification-class.js +65 -78
  130. package/components/notification/notification-ios.less +1 -1
  131. package/components/notification/notification-rtl.css +1 -1
  132. package/components/notification/notification.css +1 -1
  133. package/components/notification/notification.js +35 -1
  134. package/components/notification/notification.umd.js +1 -0
  135. package/components/page/page-vars.less +1 -1
  136. package/{esm/components → components}/page/page.js +0 -0
  137. package/{esm/components → components}/panel/panel-class.js +183 -214
  138. package/components/panel/panel-rtl.css +1 -1
  139. package/components/panel/panel.css +1 -1
  140. package/components/panel/panel.js +190 -1
  141. package/components/panel/panel.umd.js +1 -0
  142. package/{esm/components → components}/panel/resizable-panel.js +30 -28
  143. package/{esm/components → components}/panel/swipe-panel.js +46 -44
  144. package/{esm/components → components}/photo-browser/photo-browser-class.js +206 -234
  145. package/components/photo-browser/photo-browser.js +73 -1
  146. package/components/photo-browser/photo-browser.umd.js +1 -0
  147. package/{esm/components → components}/picker/picker-class.js +233 -233
  148. package/{esm/components → components}/picker/picker-column.js +70 -72
  149. package/components/picker/picker-rtl.css +1 -1
  150. package/components/picker/picker.css +1 -1
  151. package/components/picker/picker.js +64 -1
  152. package/components/picker/picker.umd.js +1 -0
  153. package/components/pie-chart/pie-chart-class.js +264 -0
  154. package/components/pie-chart/pie-chart.js +35 -1
  155. package/components/pie-chart/pie-chart.umd.js +1 -0
  156. package/{esm/components → components}/popover/popover-class.js +72 -97
  157. package/components/popover/popover-rtl.css +1 -1
  158. package/components/popover/popover.css +1 -1
  159. package/components/popover/popover.js +76 -1
  160. package/components/popover/popover.umd.js +1 -0
  161. package/{esm/components → components}/popup/popup-class.js +66 -81
  162. package/components/popup/popup-rtl.css +1 -1
  163. package/components/popup/popup.css +1 -1
  164. package/components/popup/popup.js +41 -1
  165. package/components/popup/popup.less +21 -21
  166. package/components/popup/popup.umd.js +1 -0
  167. package/components/preloader/preloader.js +115 -1
  168. package/components/preloader/preloader.umd.js +1 -0
  169. package/components/progressbar/progressbar-rtl.css +1 -1
  170. package/components/progressbar/progressbar.css +1 -1
  171. package/components/progressbar/progressbar.js +166 -1
  172. package/components/progressbar/progressbar.umd.js +1 -0
  173. package/{esm/components → components}/pull-to-refresh/pull-to-refresh-class.js +101 -118
  174. package/components/pull-to-refresh/pull-to-refresh.js +70 -1
  175. package/components/pull-to-refresh/pull-to-refresh.umd.js +1 -0
  176. package/components/radio/radio-rtl.css +1 -1
  177. package/components/radio/radio.css +1 -1
  178. package/components/radio/radio.js +3 -1
  179. package/components/radio/radio.umd.js +1 -0
  180. package/{esm/components → components}/range/range-class.js +191 -192
  181. package/components/range/range-rtl.css +1 -1
  182. package/components/range/range.css +1 -1
  183. package/components/range/range.js +79 -1
  184. package/components/range/range.umd.js +1 -0
  185. package/components/searchbar/remove-diacritics.js +275 -0
  186. package/{esm/components → components}/searchbar/searchbar-class.js +129 -146
  187. package/components/searchbar/searchbar-rtl.css +1 -1
  188. package/components/searchbar/searchbar.css +1 -1
  189. package/components/searchbar/searchbar.js +121 -1
  190. package/components/searchbar/searchbar.less +1 -1
  191. package/components/searchbar/searchbar.umd.js +1 -0
  192. package/{esm/components → components}/sheet/sheet-class.js +87 -106
  193. package/components/sheet/sheet-rtl.css +1 -1
  194. package/components/sheet/sheet.css +1 -1
  195. package/components/sheet/sheet.js +68 -1
  196. package/components/sheet/sheet.less +16 -16
  197. package/components/sheet/sheet.umd.js +1 -0
  198. package/components/skeleton/skeleton-rtl.css +1 -1
  199. package/components/skeleton/skeleton-vars.less +1 -1
  200. package/components/skeleton/skeleton.css +1 -1
  201. package/components/skeleton/skeleton.js +3 -1
  202. package/components/skeleton/skeleton.less +1 -1
  203. package/components/skeleton/skeleton.umd.js +1 -0
  204. package/{esm/components → components}/smart-select/smart-select-class.js +284 -296
  205. package/components/smart-select/smart-select.js +149 -1
  206. package/components/smart-select/smart-select.umd.js +1 -0
  207. package/components/sortable/sortable-rtl.css +1 -1
  208. package/components/sortable/sortable.css +1 -1
  209. package/components/sortable/sortable.js +293 -1
  210. package/components/sortable/sortable.umd.js +1 -0
  211. package/{esm/components → components}/statusbar/statusbar.js +48 -41
  212. package/{esm/components → components}/stepper/stepper-class.js +104 -115
  213. package/components/stepper/stepper-rtl.css +1 -1
  214. package/components/stepper/stepper.css +1 -1
  215. package/components/stepper/stepper.js +86 -1
  216. package/components/stepper/stepper.umd.js +1 -0
  217. package/{esm/components → components}/subnavbar/subnavbar.js +3 -2
  218. package/components/swipeout/swipeout-rtl.css +1 -1
  219. package/components/swipeout/swipeout.css +1 -1
  220. package/components/swipeout/swipeout.js +597 -1
  221. package/components/swipeout/swipeout.umd.js +1 -0
  222. package/components/swiper/swiper-rtl.css +1 -1
  223. package/components/swiper/swiper.css +1 -1
  224. package/components/swiper/swiper.js +191 -1
  225. package/components/swiper/swiper.less +1 -1
  226. package/components/swiper/swiper.umd.js +1 -0
  227. package/components/tabs/tabs.js +272 -1
  228. package/components/tabs/tabs.umd.js +1 -0
  229. package/{esm/components → components}/text-editor/text-editor-class.js +170 -182
  230. package/components/text-editor/text-editor-rtl.css +1 -1
  231. package/components/text-editor/text-editor.css +1 -1
  232. package/components/text-editor/text-editor.js +89 -1
  233. package/components/text-editor/text-editor.umd.js +1 -0
  234. package/components/timeline/timeline-rtl.css +1 -1
  235. package/components/timeline/timeline.css +1 -1
  236. package/components/timeline/timeline.js +3 -1
  237. package/components/timeline/timeline.umd.js +1 -0
  238. package/components/toast/toast-class.js +119 -0
  239. package/components/toast/toast.js +43 -1
  240. package/components/toast/toast.umd.js +1 -0
  241. package/{esm/components → components}/toggle/toggle-class.js +46 -63
  242. package/components/toggle/toggle-rtl.css +1 -1
  243. package/components/toggle/toggle.css +1 -1
  244. package/components/toggle/toggle.js +65 -1
  245. package/components/toggle/toggle.umd.js +1 -0
  246. package/{esm/components → components}/toolbar/toolbar.js +63 -59
  247. package/{esm/components → components}/tooltip/tooltip-class.js +95 -106
  248. package/components/tooltip/tooltip.js +144 -1
  249. package/components/tooltip/tooltip.umd.js +1 -0
  250. package/components/touch-ripple/touch-ripple-class.js +98 -0
  251. package/components/touch-ripple/touch-ripple-vars.less +1 -1
  252. package/components/touch-ripple/touch-ripple.js +18 -0
  253. package/components/treeview/treeview-rtl.css +1 -1
  254. package/components/treeview/treeview.css +1 -1
  255. package/components/treeview/treeview.js +83 -1
  256. package/components/treeview/treeview.umd.js +1 -0
  257. package/components/typography/typography.js +3 -1
  258. package/components/typography/typography.umd.js +1 -0
  259. package/{esm/components → components}/view/resizable-view.js +23 -21
  260. package/{esm/components → components}/view/view-class.js +48 -67
  261. package/{esm/components → components}/view/view.js +37 -28
  262. package/{esm/components → components}/virtual-list/virtual-list-class.js +153 -170
  263. package/components/virtual-list/virtual-list.js +19 -1
  264. package/components/virtual-list/virtual-list.umd.js +1 -0
  265. package/framework7-bundle-rtl.css +268 -852
  266. package/framework7-bundle-rtl.min.css +3 -3
  267. package/framework7-bundle.css +268 -852
  268. package/{esm/framework7-bundle.js → framework7-bundle.esm.js} +2 -2
  269. package/framework7-bundle.js +30782 -31429
  270. package/framework7-bundle.js.map +1 -1
  271. package/framework7-bundle.less +2 -2
  272. package/framework7-bundle.min.css +3 -3
  273. package/framework7-bundle.min.js +3 -3
  274. package/framework7-bundle.min.js.map +1 -1
  275. package/{esm/framework7-lite-bundle.js → framework7-lite-bundle.esm.js} +2 -2
  276. package/{esm/framework7-lite.js → framework7-lite.esm.js} +2 -2
  277. package/framework7-rtl.css +52 -56
  278. package/framework7-rtl.min.css +3 -3
  279. package/{types/types.d.ts → framework7-types.d.ts} +0 -0
  280. package/framework7.css +52 -56
  281. package/framework7.d.ts +81 -81
  282. package/{esm/framework7.js → framework7.esm.js} +2 -2
  283. package/framework7.js +3386 -4049
  284. package/framework7.js.map +1 -1
  285. package/framework7.less +2 -2
  286. package/framework7.min.css +3 -3
  287. package/framework7.min.js +3 -3
  288. package/framework7.min.js.map +1 -1
  289. package/less/mixins.less +2 -2
  290. package/{esm/modules → modules}/clicks/clicks.js +17 -16
  291. package/modules/component/$h.js +14 -0
  292. package/modules/component/$jsx.js +18 -0
  293. package/modules/component/component-class.js +382 -0
  294. package/modules/component/component.d.ts +2 -0
  295. package/{esm/modules → modules}/component/component.js +23 -17
  296. package/{esm/modules → modules}/component/custom-components.js +0 -0
  297. package/{esm/modules → modules}/component/eventslisteners.js +14 -18
  298. package/modules/component/parse-component.js +80 -0
  299. package/{esm/modules → modules}/component/patch.js +1 -1
  300. package/{esm/modules → modules}/component/snabbdom/h.js +0 -0
  301. package/{esm/modules → modules}/component/snabbdom/helpers/attachto.js +0 -0
  302. package/{esm/modules → modules}/component/snabbdom/hooks.js +0 -0
  303. package/{esm/modules → modules}/component/snabbdom/htmldomapi.js +0 -0
  304. package/{esm/modules → modules}/component/snabbdom/is.js +0 -0
  305. package/{esm/modules → modules}/component/snabbdom/modules/attributes.js +0 -0
  306. package/{esm/modules → modules}/component/snabbdom/modules/class.js +0 -0
  307. package/{esm/modules → modules}/component/snabbdom/modules/dataset.js +0 -0
  308. package/{esm/modules → modules}/component/snabbdom/modules/eventlisteners.js +0 -0
  309. package/{esm/modules → modules}/component/snabbdom/modules/hero.js +1 -1
  310. package/{esm/modules → modules}/component/snabbdom/modules/module.js +0 -0
  311. package/{esm/modules → modules}/component/snabbdom/modules/props.js +0 -0
  312. package/{esm/modules → modules}/component/snabbdom/modules/style.js +1 -1
  313. package/{esm/modules → modules}/component/snabbdom/snabbdom.bundle.js +0 -0
  314. package/{esm/modules → modules}/component/snabbdom/snabbdom.js +6 -18
  315. package/{esm/modules → modules}/component/snabbdom/thunk.js +0 -0
  316. package/{esm/modules → modules}/component/snabbdom/tovnode.js +0 -0
  317. package/{esm/modules → modules}/component/snabbdom/vnode.js +0 -0
  318. package/{esm/modules → modules}/component/vdom.js +106 -130
  319. package/{esm/modules → modules}/demo-module.js +15 -7
  320. package/{esm/modules → modules}/device/device.js +12 -11
  321. package/{esm/modules → modules}/history/history.js +2 -1
  322. package/{esm/modules → modules}/request/request.js +2 -2
  323. package/modules/resize/resize.js +65 -0
  324. package/{esm/modules → modules}/router/app-router-check.js +1 -1
  325. package/{esm/modules → modules}/router/async-component.js +3 -3
  326. package/{esm/modules → modules}/router/back.js +117 -117
  327. package/{esm/modules → modules}/router/clear-previous-history.js +8 -8
  328. package/modules/router/component-loader.js +174 -0
  329. package/{esm/modules → modules}/router/modal.js +49 -49
  330. package/{esm/modules → modules}/router/navigate.js +140 -221
  331. package/{esm/modules → modules}/router/process-route-queue.js +20 -17
  332. package/{esm/modules → modules}/router/redirect.js +7 -11
  333. package/{esm/modules → modules}/router/router-class.js +411 -432
  334. package/{esm/modules → modules}/router/router.js +5 -3
  335. package/{esm/modules → modules}/router/swipe-back.js +143 -177
  336. package/{esm/modules → modules}/router/tab.js +46 -46
  337. package/{esm/modules → modules}/service-worker/service-worker.js +41 -37
  338. package/modules/store/create-store.js +149 -0
  339. package/{esm/modules → modules}/store/store.js +2 -2
  340. package/{esm/modules → modules}/support/support.js +1 -1
  341. package/{esm/modules → modules}/touch/touch.js +71 -70
  342. package/{esm/modules → modules}/utils/utils.js +2 -2
  343. package/package.json +252 -11
  344. package/shared/$jsx.js +22 -0
  345. package/shared/class.js +143 -0
  346. package/shared/constructor-methods.js +42 -0
  347. package/{esm/shared → shared}/dom7.js +2 -1
  348. package/shared/events-class.js +100 -0
  349. package/{types/shared → shared}/get-device.d.ts +0 -0
  350. package/{esm/shared → shared}/get-device.js +32 -37
  351. package/{types/shared → shared}/get-support.d.ts +0 -0
  352. package/{esm/shared → shared}/get-support.js +7 -6
  353. package/{esm/shared → shared}/history.js +61 -47
  354. package/shared/modal-methods.js +90 -0
  355. package/{types/shared → shared}/request.d.ts +0 -0
  356. package/shared/request.js +474 -0
  357. package/{types/shared → shared}/utils.d.ts +0 -0
  358. package/{esm/shared → shared}/utils.js +125 -162
  359. package/bundle/package.json +0 -8
  360. package/cjs/components/accordion/accordion.js +0 -136
  361. package/cjs/components/actions/actions-class.js +0 -383
  362. package/cjs/components/actions/actions.js +0 -58
  363. package/cjs/components/app/app-class.js +0 -378
  364. package/cjs/components/app/load-module.js +0 -155
  365. package/cjs/components/appbar/appbar.js +0 -8
  366. package/cjs/components/area-chart/area-chart-class.js +0 -526
  367. package/cjs/components/area-chart/area-chart.js +0 -56
  368. package/cjs/components/autocomplete/autocomplete-class.js +0 -975
  369. package/cjs/components/autocomplete/autocomplete.js +0 -93
  370. package/cjs/components/badge/badge.js +0 -8
  371. package/cjs/components/block/block.js +0 -8
  372. package/cjs/components/button/button.js +0 -8
  373. package/cjs/components/calendar/calendar-class.js +0 -2078
  374. package/cjs/components/calendar/calendar.js +0 -124
  375. package/cjs/components/card/card.js +0 -625
  376. package/cjs/components/checkbox/checkbox.js +0 -8
  377. package/cjs/components/chip/chip.js +0 -8
  378. package/cjs/components/color-picker/color-picker-class.js +0 -1022
  379. package/cjs/components/color-picker/color-picker.js +0 -105
  380. package/cjs/components/color-picker/modules/alpha-slider.js +0 -101
  381. package/cjs/components/color-picker/modules/brightness-slider.js +0 -86
  382. package/cjs/components/color-picker/modules/current-color.js +0 -23
  383. package/cjs/components/color-picker/modules/hex.js +0 -81
  384. package/cjs/components/color-picker/modules/hs-spectrum.js +0 -137
  385. package/cjs/components/color-picker/modules/hsb-sliders.js +0 -206
  386. package/cjs/components/color-picker/modules/hue-slider.js +0 -78
  387. package/cjs/components/color-picker/modules/initial-current-colors.js +0 -54
  388. package/cjs/components/color-picker/modules/palette.js +0 -61
  389. package/cjs/components/color-picker/modules/rgb-bars.js +0 -196
  390. package/cjs/components/color-picker/modules/rgb-sliders.js +0 -198
  391. package/cjs/components/color-picker/modules/sb-spectrum.js +0 -137
  392. package/cjs/components/color-picker/modules/wheel.js +0 -198
  393. package/cjs/components/contacts-list/contacts-list.js +0 -8
  394. package/cjs/components/data-table/data-table-class.js +0 -188
  395. package/cjs/components/data-table/data-table.js +0 -75
  396. package/cjs/components/dialog/dialog-class.js +0 -250
  397. package/cjs/components/dialog/dialog.js +0 -297
  398. package/cjs/components/elevation/elevation.js +0 -8
  399. package/cjs/components/fab/fab.js +0 -195
  400. package/cjs/components/form/form.js +0 -341
  401. package/cjs/components/gauge/gauge-class.js +0 -332
  402. package/cjs/components/gauge/gauge.js +0 -103
  403. package/cjs/components/grid/grid.js +0 -233
  404. package/cjs/components/icon/icon.js +0 -8
  405. package/cjs/components/infinite-scroll/infinite-scroll.js +0 -111
  406. package/cjs/components/input/input.js +0 -396
  407. package/cjs/components/lazy/lazy.js +0 -283
  408. package/cjs/components/link/link.js +0 -8
  409. package/cjs/components/list/list.js +0 -8
  410. package/cjs/components/list-index/list-index-class.js +0 -405
  411. package/cjs/components/list-index/list-index.js +0 -77
  412. package/cjs/components/login-screen/login-screen-class.js +0 -68
  413. package/cjs/components/login-screen/login-screen.js +0 -44
  414. package/cjs/components/menu/menu.js +0 -92
  415. package/cjs/components/messagebar/messagebar-class.js +0 -446
  416. package/cjs/components/messagebar/messagebar.js +0 -78
  417. package/cjs/components/messages/messages-class.js +0 -633
  418. package/cjs/components/messages/messages.js +0 -76
  419. package/cjs/components/modal/custom-modal-class.js +0 -99
  420. package/cjs/components/modal/modal-class.js +0 -277
  421. package/cjs/components/modal/modal.js +0 -32
  422. package/cjs/components/navbar/navbar.js +0 -833
  423. package/cjs/components/notification/notification-class.js +0 -269
  424. package/cjs/components/notification/notification.js +0 -44
  425. package/cjs/components/page/page.js +0 -8
  426. package/cjs/components/panel/panel-class.js +0 -660
  427. package/cjs/components/panel/panel.js +0 -219
  428. package/cjs/components/panel/resizable-panel.js +0 -197
  429. package/cjs/components/panel/swipe-panel.js +0 -363
  430. package/cjs/components/photo-browser/photo-browser-class.js +0 -781
  431. package/cjs/components/photo-browser/photo-browser.js +0 -78
  432. package/cjs/components/picker/picker-class.js +0 -704
  433. package/cjs/components/picker/picker-column.js +0 -389
  434. package/cjs/components/picker/picker.js +0 -77
  435. package/cjs/components/pie-chart/pie-chart-class.js +0 -290
  436. package/cjs/components/pie-chart/pie-chart.js +0 -44
  437. package/cjs/components/popover/popover-class.js +0 -365
  438. package/cjs/components/popover/popover.js +0 -93
  439. package/cjs/components/popup/popup-class.js +0 -416
  440. package/cjs/components/popup/popup.js +0 -57
  441. package/cjs/components/preloader/preloader.js +0 -111
  442. package/cjs/components/progressbar/progressbar.js +0 -185
  443. package/cjs/components/pull-to-refresh/pull-to-refresh-class.js +0 -627
  444. package/cjs/components/pull-to-refresh/pull-to-refresh.js +0 -74
  445. package/cjs/components/radio/radio.js +0 -8
  446. package/cjs/components/range/range-class.js +0 -674
  447. package/cjs/components/range/range.js +0 -93
  448. package/cjs/components/searchbar/remove-diacritics.js +0 -283
  449. package/cjs/components/searchbar/searchbar-class.js +0 -739
  450. package/cjs/components/searchbar/searchbar.js +0 -141
  451. package/cjs/components/sheet/sheet-class.js +0 -583
  452. package/cjs/components/sheet/sheet.js +0 -83
  453. package/cjs/components/skeleton/skeleton.js +0 -8
  454. package/cjs/components/smart-select/smart-select-class.js +0 -1005
  455. package/cjs/components/smart-select/smart-select.js +0 -151
  456. package/cjs/components/sortable/sortable.js +0 -322
  457. package/cjs/components/statusbar/statusbar.js +0 -226
  458. package/cjs/components/stepper/stepper-class.js +0 -497
  459. package/cjs/components/stepper/stepper.js +0 -96
  460. package/cjs/components/subnavbar/subnavbar.js +0 -28
  461. package/cjs/components/swipeout/swipeout.js +0 -618
  462. package/cjs/components/swiper/swiper.js +0 -189
  463. package/cjs/components/tabs/tabs.js +0 -296
  464. package/cjs/components/text-editor/text-editor-class.js +0 -627
  465. package/cjs/components/text-editor/text-editor.js +0 -93
  466. package/cjs/components/timeline/timeline.js +0 -8
  467. package/cjs/components/toast/toast-class.js +0 -142
  468. package/cjs/components/toast/toast.js +0 -51
  469. package/cjs/components/toggle/toggle-class.js +0 -213
  470. package/cjs/components/toggle/toggle.js +0 -72
  471. package/cjs/components/toolbar/toolbar.js +0 -234
  472. package/cjs/components/tooltip/tooltip-class.js +0 -409
  473. package/cjs/components/tooltip/tooltip.js +0 -146
  474. package/cjs/components/touch-ripple/touch-ripple-class.js +0 -110
  475. package/cjs/components/touch-ripple/touch-ripple.js +0 -34
  476. package/cjs/components/treeview/treeview.js +0 -88
  477. package/cjs/components/typography/typography.js +0 -8
  478. package/cjs/components/view/resizable-view.js +0 -155
  479. package/cjs/components/view/view-class.js +0 -251
  480. package/cjs/components/view/view.js +0 -196
  481. package/cjs/components/virtual-list/virtual-list-class.js +0 -654
  482. package/cjs/components/virtual-list/virtual-list.js +0 -27
  483. package/cjs/framework7-bundle.js +0 -208
  484. package/cjs/framework7-lite-bundle.js +0 -191
  485. package/cjs/framework7-lite.js +0 -87
  486. package/cjs/framework7.js +0 -98
  487. package/cjs/modules/clicks/clicks.js +0 -115
  488. package/cjs/modules/component/$h.js +0 -31
  489. package/cjs/modules/component/$jsx.js +0 -31
  490. package/cjs/modules/component/component-class.js +0 -415
  491. package/cjs/modules/component/component.js +0 -58
  492. package/cjs/modules/component/custom-components.js +0 -6
  493. package/cjs/modules/component/eventslisteners.js +0 -90
  494. package/cjs/modules/component/parse-component.js +0 -80
  495. package/cjs/modules/component/patch.js +0 -21
  496. package/cjs/modules/component/snabbdom/h.js +0 -72
  497. package/cjs/modules/component/snabbdom/helpers/attachto.js +0 -62
  498. package/cjs/modules/component/snabbdom/hooks.js +0 -1
  499. package/cjs/modules/component/snabbdom/htmldomapi.js +0 -90
  500. package/cjs/modules/component/snabbdom/is.js +0 -11
  501. package/cjs/modules/component/snabbdom/modules/attributes.js +0 -61
  502. package/cjs/modules/component/snabbdom/modules/class.js +0 -38
  503. package/cjs/modules/component/snabbdom/modules/dataset.js +0 -47
  504. package/cjs/modules/component/snabbdom/modules/eventlisteners.js +0 -106
  505. package/cjs/modules/component/snabbdom/modules/hero.js +0 -193
  506. package/cjs/modules/component/snabbdom/modules/module.js +0 -1
  507. package/cjs/modules/component/snabbdom/modules/props.js +0 -40
  508. package/cjs/modules/component/snabbdom/modules/style.js +0 -116
  509. package/cjs/modules/component/snabbdom/snabbdom.bundle.js +0 -33
  510. package/cjs/modules/component/snabbdom/snabbdom.js +0 -374
  511. package/cjs/modules/component/snabbdom/thunk.js +0 -66
  512. package/cjs/modules/component/snabbdom/tovnode.js +0 -57
  513. package/cjs/modules/component/snabbdom/vnode.js +0 -20
  514. package/cjs/modules/component/vdom.js +0 -393
  515. package/cjs/modules/demo-module.js +0 -49
  516. package/cjs/modules/device/device.js +0 -56
  517. package/cjs/modules/history/history.js +0 -21
  518. package/cjs/modules/request/request.js +0 -20
  519. package/cjs/modules/resize/resize.js +0 -72
  520. package/cjs/modules/router/app-router-check.js +0 -10
  521. package/cjs/modules/router/async-component.js +0 -33
  522. package/cjs/modules/router/back.js +0 -899
  523. package/cjs/modules/router/clear-previous-history.js +0 -50
  524. package/cjs/modules/router/component-loader.js +0 -140
  525. package/cjs/modules/router/modal.js +0 -254
  526. package/cjs/modules/router/navigate.js +0 -1054
  527. package/cjs/modules/router/process-route-queue.js +0 -80
  528. package/cjs/modules/router/redirect.js +0 -52
  529. package/cjs/modules/router/router-class.js +0 -1500
  530. package/cjs/modules/router/router.js +0 -36
  531. package/cjs/modules/router/swipe-back.js +0 -735
  532. package/cjs/modules/router/tab.js +0 -264
  533. package/cjs/modules/service-worker/service-worker.js +0 -101
  534. package/cjs/modules/store/create-store.js +0 -169
  535. package/cjs/modules/store/store.js +0 -21
  536. package/cjs/modules/support/support.js +0 -14
  537. package/cjs/modules/touch/touch.js +0 -585
  538. package/cjs/modules/utils/utils.js +0 -21
  539. package/cjs/shared/$jsx.js +0 -39
  540. package/cjs/shared/class.js +0 -206
  541. package/cjs/shared/constructor-methods.js +0 -73
  542. package/cjs/shared/dom7.js +0 -17
  543. package/cjs/shared/events-class.js +0 -125
  544. package/cjs/shared/get-device.js +0 -157
  545. package/cjs/shared/get-support.js +0 -44
  546. package/cjs/shared/history.js +0 -185
  547. package/cjs/shared/modal-methods.js +0 -105
  548. package/cjs/shared/request.js +0 -552
  549. package/cjs/shared/utils.js +0 -472
  550. package/components/accordion/package.json +0 -9
  551. package/components/actions/package.json +0 -9
  552. package/components/app/package.json +0 -9
  553. package/components/appbar/package.json +0 -9
  554. package/components/area-chart/package.json +0 -9
  555. package/components/autocomplete/package.json +0 -9
  556. package/components/badge/package.json +0 -9
  557. package/components/block/package.json +0 -9
  558. package/components/button/package.json +0 -9
  559. package/components/calendar/package.json +0 -9
  560. package/components/card/package.json +0 -9
  561. package/components/checkbox/package.json +0 -9
  562. package/components/chip/package.json +0 -9
  563. package/components/color-picker/package.json +0 -9
  564. package/components/contacts-list/package.json +0 -9
  565. package/components/data-table/package.json +0 -9
  566. package/components/dialog/package.json +0 -9
  567. package/components/elevation/package.json +0 -9
  568. package/components/fab/package.json +0 -9
  569. package/components/form/package.json +0 -9
  570. package/components/gauge/package.json +0 -9
  571. package/components/grid/package.json +0 -9
  572. package/components/icon/package.json +0 -9
  573. package/components/infinite-scroll/package.json +0 -9
  574. package/components/input/package.json +0 -9
  575. package/components/lazy/package.json +0 -9
  576. package/components/link/package.json +0 -9
  577. package/components/list/package.json +0 -9
  578. package/components/list-index/package.json +0 -9
  579. package/components/login-screen/package.json +0 -9
  580. package/components/menu/package.json +0 -9
  581. package/components/messagebar/package.json +0 -9
  582. package/components/messages/package.json +0 -9
  583. package/components/modal/package.json +0 -9
  584. package/components/navbar/package.json +0 -9
  585. package/components/notification/package.json +0 -9
  586. package/components/page/package.json +0 -9
  587. package/components/panel/package.json +0 -9
  588. package/components/photo-browser/package.json +0 -9
  589. package/components/picker/package.json +0 -9
  590. package/components/pie-chart/package.json +0 -9
  591. package/components/popover/package.json +0 -9
  592. package/components/popup/package.json +0 -9
  593. package/components/preloader/package.json +0 -9
  594. package/components/progressbar/package.json +0 -9
  595. package/components/pull-to-refresh/package.json +0 -9
  596. package/components/radio/package.json +0 -9
  597. package/components/range/package.json +0 -9
  598. package/components/searchbar/package.json +0 -9
  599. package/components/sheet/package.json +0 -9
  600. package/components/skeleton/package.json +0 -9
  601. package/components/smart-select/package.json +0 -9
  602. package/components/sortable/package.json +0 -9
  603. package/components/statusbar/package.json +0 -9
  604. package/components/stepper/package.json +0 -9
  605. package/components/subnavbar/package.json +0 -9
  606. package/components/swipeout/package.json +0 -9
  607. package/components/swiper/package.json +0 -9
  608. package/components/tabs/package.json +0 -9
  609. package/components/text-editor/package.json +0 -9
  610. package/components/timeline/package.json +0 -9
  611. package/components/toast/package.json +0 -9
  612. package/components/toggle/package.json +0 -9
  613. package/components/toolbar/package.json +0 -9
  614. package/components/tooltip/package.json +0 -9
  615. package/components/touch-ripple/package.json +0 -9
  616. package/components/treeview/package.json +0 -9
  617. package/components/typography/package.json +0 -9
  618. package/components/view/package.json +0 -9
  619. package/components/virtual-list/package.json +0 -9
  620. package/core/package.json +0 -8
  621. package/esm/components/accordion/accordion.js +0 -126
  622. package/esm/components/actions/actions-class.js +0 -373
  623. package/esm/components/actions/actions.js +0 -48
  624. package/esm/components/appbar/appbar.js +0 -3
  625. package/esm/components/area-chart/area-chart-class.js +0 -517
  626. package/esm/components/area-chart/area-chart.js +0 -45
  627. package/esm/components/autocomplete/autocomplete.js +0 -82
  628. package/esm/components/calendar/calendar.js +0 -113
  629. package/esm/components/card/card.js +0 -612
  630. package/esm/components/checkbox/checkbox.js +0 -3
  631. package/esm/components/chip/chip.js +0 -3
  632. package/esm/components/color-picker/color-picker.js +0 -94
  633. package/esm/components/contacts-list/contacts-list.js +0 -3
  634. package/esm/components/data-table/data-table.js +0 -64
  635. package/esm/components/dialog/dialog.js +0 -286
  636. package/esm/components/elevation/elevation.js +0 -3
  637. package/esm/components/fab/fab.js +0 -185
  638. package/esm/components/form/form.js +0 -330
  639. package/esm/components/gauge/gauge-class.js +0 -323
  640. package/esm/components/gauge/gauge.js +0 -91
  641. package/esm/components/grid/grid.js +0 -223
  642. package/esm/components/infinite-scroll/infinite-scroll.js +0 -101
  643. package/esm/components/input/input.js +0 -384
  644. package/esm/components/lazy/lazy.js +0 -271
  645. package/esm/components/list-index/list-index.js +0 -65
  646. package/esm/components/login-screen/login-screen-class.js +0 -58
  647. package/esm/components/login-screen/login-screen.js +0 -34
  648. package/esm/components/menu/menu.js +0 -82
  649. package/esm/components/messagebar/messagebar.js +0 -66
  650. package/esm/components/messages/messages.js +0 -65
  651. package/esm/components/notification/notification.js +0 -33
  652. package/esm/components/panel/panel.js +0 -208
  653. package/esm/components/photo-browser/photo-browser.js +0 -68
  654. package/esm/components/picker/picker.js +0 -66
  655. package/esm/components/pie-chart/pie-chart-class.js +0 -281
  656. package/esm/components/pie-chart/pie-chart.js +0 -33
  657. package/esm/components/popover/popover.js +0 -81
  658. package/esm/components/popup/popup.js +0 -47
  659. package/esm/components/preloader/preloader.js +0 -101
  660. package/esm/components/progressbar/progressbar.js +0 -175
  661. package/esm/components/pull-to-refresh/pull-to-refresh.js +0 -62
  662. package/esm/components/radio/radio.js +0 -3
  663. package/esm/components/range/range.js +0 -81
  664. package/esm/components/searchbar/remove-diacritics.js +0 -277
  665. package/esm/components/searchbar/searchbar.js +0 -129
  666. package/esm/components/sheet/sheet.js +0 -71
  667. package/esm/components/skeleton/skeleton.js +0 -3
  668. package/esm/components/smart-select/smart-select.js +0 -139
  669. package/esm/components/sortable/sortable.js +0 -310
  670. package/esm/components/stepper/stepper.js +0 -84
  671. package/esm/components/swipeout/swipeout.js +0 -606
  672. package/esm/components/swiper/swiper.js +0 -177
  673. package/esm/components/tabs/tabs.js +0 -286
  674. package/esm/components/text-editor/text-editor.js +0 -81
  675. package/esm/components/timeline/timeline.js +0 -3
  676. package/esm/components/toast/toast-class.js +0 -132
  677. package/esm/components/toast/toast.js +0 -40
  678. package/esm/components/toggle/toggle.js +0 -61
  679. package/esm/components/tooltip/tooltip.js +0 -135
  680. package/esm/components/touch-ripple/touch-ripple-class.js +0 -103
  681. package/esm/components/touch-ripple/touch-ripple.js +0 -25
  682. package/esm/components/treeview/treeview.js +0 -78
  683. package/esm/components/typography/typography.js +0 -3
  684. package/esm/components/virtual-list/virtual-list.js +0 -17
  685. package/esm/modules/component/$h.js +0 -20
  686. package/esm/modules/component/$jsx.js +0 -24
  687. package/esm/modules/component/component-class.js +0 -402
  688. package/esm/modules/component/parse-component.js +0 -70
  689. package/esm/modules/resize/resize.js +0 -64
  690. package/esm/modules/router/component-loader.js +0 -133
  691. package/esm/modules/store/create-store.js +0 -164
  692. package/esm/shared/$jsx.js +0 -33
  693. package/esm/shared/class.js +0 -197
  694. package/esm/shared/constructor-methods.js +0 -65
  695. package/esm/shared/events-class.js +0 -119
  696. package/esm/shared/modal-methods.js +0 -95
  697. package/esm/shared/request.js +0 -545
  698. package/lite/package.json +0 -8
  699. package/lite-bundle/package.json +0 -8
  700. package/modules/clicks/package.json +0 -9
  701. package/modules/component/package.json +0 -9
  702. package/modules/device/package.json +0 -9
  703. package/modules/history/package.json +0 -9
  704. package/modules/request/package.json +0 -9
  705. package/modules/resize/package.json +0 -9
  706. package/modules/router/package.json +0 -9
  707. package/modules/service-worker/package.json +0 -9
  708. package/modules/store/package.json +0 -9
  709. package/modules/support/package.json +0 -9
  710. package/modules/touch/package.json +0 -9
  711. package/modules/utils/package.json +0 -9
  712. package/types/components/accordion/accordion.d.ts +0 -55
  713. package/types/components/actions/actions.d.ts +0 -158
  714. package/types/components/app/app-class.d.ts +0 -196
  715. package/types/components/appbar/appbar.d.ts +0 -10
  716. package/types/components/area-chart/area-chart.d.ts +0 -124
  717. package/types/components/autocomplete/autocomplete.d.ts +0 -191
  718. package/types/components/badge/badge.d.ts +0 -10
  719. package/types/components/block/block.d.ts +0 -10
  720. package/types/components/button/button.d.ts +0 -10
  721. package/types/components/calendar/calendar.d.ts +0 -304
  722. package/types/components/card/card.d.ts +0 -65
  723. package/types/components/checkbox/checkbox.d.ts +0 -10
  724. package/types/components/chip/chip.d.ts +0 -10
  725. package/types/components/color-picker/color-picker.d.ts +0 -229
  726. package/types/components/contacts-list/contacts-list.d.ts +0 -10
  727. package/types/components/data-table/data-table.d.ts +0 -57
  728. package/types/components/dialog/dialog.d.ts +0 -241
  729. package/types/components/elevation/elevation.d.ts +0 -10
  730. package/types/components/fab/fab.d.ts +0 -28
  731. package/types/components/form/form.d.ts +0 -60
  732. package/types/components/gauge/gauge.d.ts +0 -96
  733. package/types/components/grid/grid.d.ts +0 -17
  734. package/types/components/icon/icon.d.ts +0 -10
  735. package/types/components/infinite-scroll/infinite-scroll.d.ts +0 -23
  736. package/types/components/input/input.d.ts +0 -56
  737. package/types/components/lazy/lazy.d.ts +0 -53
  738. package/types/components/link/link.d.ts +0 -10
  739. package/types/components/list/list.d.ts +0 -10
  740. package/types/components/list-index/list-index.d.ts +0 -99
  741. package/types/components/login-screen/login-screen.d.ts +0 -95
  742. package/types/components/menu/menu.d.ts +0 -28
  743. package/types/components/messagebar/messagebar.d.ts +0 -161
  744. package/types/components/messages/messages.d.ts +0 -158
  745. package/types/components/modal/modal.d.ts +0 -78
  746. package/types/components/navbar/navbar.d.ts +0 -75
  747. package/types/components/notification/notification.d.ts +0 -118
  748. package/types/components/page/page.d.ts +0 -10
  749. package/types/components/panel/panel.d.ts +0 -194
  750. package/types/components/photo-browser/photo-browser.d.ts +0 -194
  751. package/types/components/picker/picker.d.ts +0 -216
  752. package/types/components/pie-chart/pie-chart.d.ts +0 -95
  753. package/types/components/popover/popover.d.ts +0 -127
  754. package/types/components/popup/popup.d.ts +0 -135
  755. package/types/components/preloader/preloader.d.ts +0 -18
  756. package/types/components/progressbar/progressbar.d.ts +0 -27
  757. package/types/components/pull-to-refresh/pull-to-refresh.d.ts +0 -99
  758. package/types/components/radio/radio.d.ts +0 -10
  759. package/types/components/range/range.d.ts +0 -121
  760. package/types/components/searchbar/searchbar.d.ts +0 -157
  761. package/types/components/sheet/sheet.d.ts +0 -149
  762. package/types/components/skeleton/skeleton.d.ts +0 -10
  763. package/types/components/smart-select/smart-select.d.ts +0 -199
  764. package/types/components/sortable/sortable.d.ts +0 -46
  765. package/types/components/statusbar/statusbar.d.ts +0 -50
  766. package/types/components/stepper/stepper.d.ts +0 -117
  767. package/types/components/subnavbar/subnavbar.d.ts +0 -11
  768. package/types/components/swipeout/swipeout.d.ts +0 -68
  769. package/types/components/swiper/swiper.d.ts +0 -21
  770. package/types/components/tabs/tabs.d.ts +0 -39
  771. package/types/components/text-editor/text-editor.d.ts +0 -162
  772. package/types/components/timeline/timeline.d.ts +0 -10
  773. package/types/components/toast/toast.d.ts +0 -117
  774. package/types/components/toggle/toggle.d.ts +0 -69
  775. package/types/components/toolbar/toolbar.d.ts +0 -43
  776. package/types/components/tooltip/tooltip.d.ts +0 -101
  777. package/types/components/touch-ripple/touch-ripple.d.ts +0 -21
  778. package/types/components/treeview/treeview.d.ts +0 -38
  779. package/types/components/typography/typography.d.ts +0 -10
  780. package/types/components/view/view.d.ts +0 -205
  781. package/types/components/virtual-list/virtual-list.d.ts +0 -138
  782. package/types/modules/clicks/clicks.d.ts +0 -19
  783. package/types/modules/component/component.d.ts +0 -94
  784. package/types/modules/component/snabbdom/h.d.ts +0 -10
  785. package/types/modules/component/snabbdom/helpers/attachto.d.ts +0 -9
  786. package/types/modules/component/snabbdom/hooks.d.ts +0 -23
  787. package/types/modules/component/snabbdom/htmldomapi.d.ts +0 -19
  788. package/types/modules/component/snabbdom/is.d.ts +0 -2
  789. package/types/modules/component/snabbdom/modules/attributes.d.ts +0 -4
  790. package/types/modules/component/snabbdom/modules/class.d.ts +0 -4
  791. package/types/modules/component/snabbdom/modules/dataset.d.ts +0 -4
  792. package/types/modules/component/snabbdom/modules/eventlisteners.d.ts +0 -8
  793. package/types/modules/component/snabbdom/modules/hero.d.ts +0 -6
  794. package/types/modules/component/snabbdom/modules/module.d.ts +0 -9
  795. package/types/modules/component/snabbdom/modules/props.d.ts +0 -4
  796. package/types/modules/component/snabbdom/modules/style.d.ts +0 -7
  797. package/types/modules/component/snabbdom/snabbdom.bundle.d.ts +0 -5
  798. package/types/modules/component/snabbdom/snabbdom.d.ts +0 -6
  799. package/types/modules/component/snabbdom/thunk.d.ts +0 -14
  800. package/types/modules/component/snabbdom/tovnode.d.ts +0 -4
  801. package/types/modules/component/snabbdom/vnode.d.ts +0 -36
  802. package/types/modules/device/device.d.ts +0 -14
  803. package/types/modules/request/request.d.ts +0 -15
  804. package/types/modules/resize/resize.d.ts +0 -25
  805. package/types/modules/router/router.d.ts +0 -356
  806. package/types/modules/service-worker/service-worker.d.ts +0 -38
  807. package/types/modules/store/store.d.ts +0 -40
  808. package/types/modules/support/support.d.ts +0 -15
  809. package/types/modules/touch/touch.d.ts +0 -62
  810. package/types/modules/utils/utils.d.ts +0 -15
  811. package/types/package.json +0 -6
@@ -1,9 +1,3 @@
1
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2
-
3
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
4
-
5
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
6
-
7
1
  import { getWindow, getDocument } from 'ssr-window';
8
2
  import $ from '../../shared/dom7';
9
3
  import { extend, now, getTranslate } from '../../shared/utils';
@@ -11,24 +5,18 @@ import { getSupport } from '../../shared/get-support';
11
5
  import { getDevice } from '../../shared/get-device';
12
6
  import Modal from '../modal/modal-class';
13
7
 
14
- var Sheet = /*#__PURE__*/function (_Modal) {
15
- _inheritsLoose(Sheet, _Modal);
16
-
17
- function Sheet(app, params) {
18
- var _this;
19
-
20
- var extendedParams = extend({
8
+ class Sheet extends Modal {
9
+ constructor(app, params) {
10
+ const extendedParams = extend({
21
11
  on: {}
22
12
  }, app.params.sheet, params); // Extends with open/close Modal methods;
23
13
 
24
- _this = _Modal.call(this, app, extendedParams) || this;
25
-
26
- var sheet = _assertThisInitialized(_this);
27
-
28
- var window = getWindow();
29
- var document = getDocument();
30
- var support = getSupport();
31
- var device = getDevice();
14
+ super(app, extendedParams);
15
+ const sheet = this;
16
+ const window = getWindow();
17
+ const document = getDocument();
18
+ const support = getSupport();
19
+ const device = getDevice();
32
20
  sheet.params = extendedParams;
33
21
 
34
22
  if (typeof sheet.params.backdrop === 'undefined') {
@@ -36,25 +24,23 @@ var Sheet = /*#__PURE__*/function (_Modal) {
36
24
  } // Find Element
37
25
 
38
26
 
39
- var $el;
27
+ let $el;
40
28
 
41
29
  if (!sheet.params.el) {
42
- $el = $(sheet.params.content).filter(function (node) {
43
- return node.nodeType === 1;
44
- }).eq(0);
30
+ $el = $(sheet.params.content).filter(node => node.nodeType === 1).eq(0);
45
31
  } else {
46
32
  $el = $(sheet.params.el).eq(0);
47
33
  }
48
34
 
49
35
  if ($el && $el.length > 0 && $el[0].f7Modal) {
50
- return $el[0].f7Modal || _assertThisInitialized(_this);
36
+ return $el[0].f7Modal;
51
37
  }
52
38
 
53
39
  if ($el.length === 0) {
54
- return sheet.destroy() || _assertThisInitialized(_this);
40
+ return sheet.destroy();
55
41
  }
56
42
 
57
- var $backdropEl;
43
+ let $backdropEl;
58
44
 
59
45
  if (sheet.params.backdrop && sheet.params.backdropEl) {
60
46
  $backdropEl = $(sheet.params.backdropEl);
@@ -68,11 +54,11 @@ var Sheet = /*#__PURE__*/function (_Modal) {
68
54
  }
69
55
 
70
56
  extend(sheet, {
71
- app: app,
57
+ app,
72
58
  push: $el.hasClass('sheet-modal-push') || sheet.params.push,
73
- $el: $el,
59
+ $el,
74
60
  el: $el[0],
75
- $backdropEl: $backdropEl,
61
+ $backdropEl,
76
62
  backdropEl: $backdropEl && $backdropEl[0],
77
63
  type: 'sheet',
78
64
  $htmlEl: $('html')
@@ -82,23 +68,23 @@ var Sheet = /*#__PURE__*/function (_Modal) {
82
68
  $el.addClass('sheet-modal-push');
83
69
  }
84
70
 
85
- var $pageContentEl;
71
+ let $pageContentEl;
86
72
 
87
73
  function scrollToElementOnOpen() {
88
- var $scrollEl = $(sheet.params.scrollToEl).eq(0);
74
+ const $scrollEl = $(sheet.params.scrollToEl).eq(0);
89
75
  if ($scrollEl.length === 0) return;
90
76
  $pageContentEl = $scrollEl.parents('.page-content');
91
77
  if ($pageContentEl.length === 0) return;
92
- var paddingTop = parseInt($pageContentEl.css('padding-top'), 10);
93
- var paddingBottom = parseInt($pageContentEl.css('padding-bottom'), 10);
94
- var pageHeight = $pageContentEl[0].offsetHeight - paddingTop - $el.height();
95
- var pageScrollHeight = $pageContentEl[0].scrollHeight - paddingTop - $el.height();
96
- var pageScroll = $pageContentEl.scrollTop();
97
- var newPaddingBottom;
98
- var scrollElTop = $scrollEl.offset().top - paddingTop + $scrollEl[0].offsetHeight;
78
+ const paddingTop = parseInt($pageContentEl.css('padding-top'), 10);
79
+ const paddingBottom = parseInt($pageContentEl.css('padding-bottom'), 10);
80
+ const pageHeight = $pageContentEl[0].offsetHeight - paddingTop - $el.height();
81
+ const pageScrollHeight = $pageContentEl[0].scrollHeight - paddingTop - $el.height();
82
+ const pageScroll = $pageContentEl.scrollTop();
83
+ let newPaddingBottom;
84
+ const scrollElTop = $scrollEl.offset().top - paddingTop + $scrollEl[0].offsetHeight;
99
85
 
100
86
  if (scrollElTop > pageHeight) {
101
- var scrollTop = pageScroll + scrollElTop - pageHeight;
87
+ const scrollTop = pageScroll + scrollElTop - pageHeight;
102
88
 
103
89
  if (scrollTop + pageHeight > pageScrollHeight) {
104
90
  newPaddingBottom = scrollTop + pageHeight - pageScrollHeight + paddingBottom;
@@ -108,7 +94,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
108
94
  }
109
95
 
110
96
  $pageContentEl.css({
111
- 'padding-bottom': newPaddingBottom + "px"
97
+ 'padding-bottom': `${newPaddingBottom}px`
112
98
  });
113
99
  }
114
100
 
@@ -125,9 +111,9 @@ var Sheet = /*#__PURE__*/function (_Modal) {
125
111
  }
126
112
 
127
113
  function handleClick(e) {
128
- var target = e.target;
129
- var $target = $(target);
130
- var keyboardOpened = !device.desktop && device.cordova && (window.Keyboard && window.Keyboard.isVisible || window.cordova.plugins && window.cordova.plugins.Keyboard && window.cordova.plugins.Keyboard.isVisible);
114
+ const target = e.target;
115
+ const $target = $(target);
116
+ const keyboardOpened = !device.desktop && device.cordova && (window.Keyboard && window.Keyboard.isVisible || window.cordova.plugins && window.cordova.plugins.Keyboard && window.cordova.plugins.Keyboard.isVisible);
131
117
  if (keyboardOpened) return;
132
118
 
133
119
  if ($target.closest(sheet.el).length === 0) {
@@ -140,39 +126,39 @@ var Sheet = /*#__PURE__*/function (_Modal) {
140
126
  }
141
127
 
142
128
  function onKeyDown(e) {
143
- var keyCode = e.keyCode;
129
+ const keyCode = e.keyCode;
144
130
 
145
131
  if (keyCode === 27 && sheet.params.closeOnEscape) {
146
132
  sheet.close();
147
133
  }
148
134
  }
149
135
 
150
- var pushOffset;
136
+ let pushOffset;
151
137
 
152
138
  function pushViewScale(offset) {
153
139
  return (app.height - offset * 2) / app.height;
154
140
  }
155
141
 
156
- var isTouched = false;
157
- var startTouch;
158
- var currentTouch;
159
- var isScrolling;
160
- var touchStartTime;
161
- var touchesDiff;
162
- var isMoved = false;
163
- var isTopSheetModal;
164
- var swipeStepTranslate;
165
- var startTranslate;
166
- var currentTranslate;
167
- var sheetElOffsetHeight;
168
- var minTranslate;
169
- var maxTranslate;
170
- var $pushViewEl;
171
- var pushBorderRadius;
172
- var sheetPageContentEl;
173
- var sheetPageContentScrollTop;
174
- var sheetPageContentScrollHeight;
175
- var sheetPageContentOffsetHeight;
142
+ let isTouched = false;
143
+ let startTouch;
144
+ let currentTouch;
145
+ let isScrolling;
146
+ let touchStartTime;
147
+ let touchesDiff;
148
+ let isMoved = false;
149
+ let isTopSheetModal;
150
+ let swipeStepTranslate;
151
+ let startTranslate;
152
+ let currentTranslate;
153
+ let sheetElOffsetHeight;
154
+ let minTranslate;
155
+ let maxTranslate;
156
+ let $pushViewEl;
157
+ let pushBorderRadius;
158
+ let sheetPageContentEl;
159
+ let sheetPageContentScrollTop;
160
+ let sheetPageContentScrollHeight;
161
+ let sheetPageContentOffsetHeight;
176
162
 
177
163
  function handleTouchStart(e) {
178
164
  if (isTouched || !(sheet.params.swipeToClose || sheet.params.swipeToStep)) return;
@@ -214,7 +200,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
214
200
  }
215
201
 
216
202
  touchesDiff = startTouch.y - currentTouch.y;
217
- var direction = touchesDiff < 0 ? 'to-bottom' : 'to-top';
203
+ const direction = touchesDiff < 0 ? 'to-bottom' : 'to-top';
218
204
 
219
205
  if (!isMoved) {
220
206
  if (sheetPageContentEl && !$el.hasClass('modal-in-swipe-step')) {
@@ -253,7 +239,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
253
239
  e.preventDefault();
254
240
 
255
241
  if (sheet.push && pushOffset) {
256
- var progress = (currentTranslate - startTranslate) / sheetElOffsetHeight;
242
+ let progress = (currentTranslate - startTranslate) / sheetElOffsetHeight;
257
243
 
258
244
  if (sheet.params.swipeToStep) {
259
245
  if (isTopSheetModal) {
@@ -265,31 +251,31 @@ var Sheet = /*#__PURE__*/function (_Modal) {
265
251
 
266
252
  progress = Math.abs(progress);
267
253
  progress = Math.min(Math.max(progress, 0), 1);
268
- var pushProgress = 1 - progress;
269
- var scale = 1 - (1 - pushViewScale(pushOffset)) * pushProgress;
270
- $pushViewEl.transition(0).forEach(function (el) {
271
- el.style.setProperty('transform', "translate3d(0,0,0) scale(" + scale + ")", 'important');
254
+ const pushProgress = 1 - progress;
255
+ const scale = 1 - (1 - pushViewScale(pushOffset)) * pushProgress;
256
+ $pushViewEl.transition(0).forEach(el => {
257
+ el.style.setProperty('transform', `translate3d(0,0,0) scale(${scale})`, 'important');
272
258
  });
273
259
 
274
260
  if (sheet.params.swipeToStep) {
275
- $pushViewEl.css('border-radius', pushBorderRadius * pushProgress + "px");
261
+ $pushViewEl.css('border-radius', `${pushBorderRadius * pushProgress}px`);
276
262
  }
277
263
  }
278
264
 
279
- $el.transition(0).transform("translate3d(0," + currentTranslate + "px,0)");
265
+ $el.transition(0).transform(`translate3d(0,${currentTranslate}px,0)`);
280
266
 
281
267
  if (sheet.params.swipeToStep) {
282
- var _progress;
268
+ let progress;
283
269
 
284
270
  if (isTopSheetModal) {
285
- _progress = 1 - currentTranslate / swipeStepTranslate;
271
+ progress = 1 - currentTranslate / swipeStepTranslate;
286
272
  } else {
287
- _progress = (swipeStepTranslate - currentTranslate) / swipeStepTranslate;
273
+ progress = (swipeStepTranslate - currentTranslate) / swipeStepTranslate;
288
274
  }
289
275
 
290
- _progress = Math.min(Math.max(_progress, 0), 1);
291
- $el.trigger('sheet:stepprogress', _progress);
292
- sheet.emit('local::stepProgress sheetStepProgress', sheet, _progress);
276
+ progress = Math.min(Math.max(progress, 0), 1);
277
+ $el.trigger('sheet:stepprogress', progress);
278
+ sheet.emit('local::stepProgress sheetStepProgress', sheet, progress);
293
279
  }
294
280
  }
295
281
 
@@ -308,10 +294,10 @@ var Sheet = /*#__PURE__*/function (_Modal) {
308
294
  $pushViewEl.css('border-radius', '');
309
295
  }
310
296
 
311
- var direction = touchesDiff < 0 ? 'to-bottom' : 'to-top';
312
- var diff = Math.abs(touchesDiff);
297
+ const direction = touchesDiff < 0 ? 'to-bottom' : 'to-top';
298
+ const diff = Math.abs(touchesDiff);
313
299
  if (diff === 0 || currentTranslate === startTranslate) return;
314
- var timeDiff = new Date().getTime() - touchStartTime;
300
+ const timeDiff = new Date().getTime() - touchStartTime;
315
301
 
316
302
  if (!sheet.params.swipeToStep) {
317
303
  if (direction !== (isTopSheetModal ? 'to-top' : 'to-bottom')) {
@@ -325,10 +311,10 @@ var Sheet = /*#__PURE__*/function (_Modal) {
325
311
  return;
326
312
  }
327
313
 
328
- var openDirection = isTopSheetModal ? 'to-bottom' : 'to-top';
329
- var closeDirection = isTopSheetModal ? 'to-top' : 'to-bottom';
330
- var absCurrentTranslate = Math.abs(currentTranslate);
331
- var absSwipeStepTranslate = Math.abs(swipeStepTranslate);
314
+ const openDirection = isTopSheetModal ? 'to-bottom' : 'to-top';
315
+ const closeDirection = isTopSheetModal ? 'to-top' : 'to-bottom';
316
+ const absCurrentTranslate = Math.abs(currentTranslate);
317
+ const absSwipeStepTranslate = Math.abs(swipeStepTranslate);
332
318
 
333
319
  if (timeDiff < 300 && diff > 10) {
334
320
  if (direction === openDirection && absCurrentTranslate < absSwipeStepTranslate) {
@@ -382,7 +368,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
382
368
  }
383
369
 
384
370
  if (timeDiff >= 300) {
385
- var stepOpened = !$el.hasClass('modal-in-swipe-step');
371
+ const stepOpened = !$el.hasClass('modal-in-swipe-step');
386
372
 
387
373
  if (!stepOpened) {
388
374
  if (absCurrentTranslate < absSwipeStepTranslate / 2) {
@@ -422,12 +408,8 @@ var Sheet = /*#__PURE__*/function (_Modal) {
422
408
  }
423
409
  }
424
410
 
425
- sheet.setSwipeStep = function setSwipeStep(byResize) {
426
- if (byResize === void 0) {
427
- byResize = true;
428
- }
429
-
430
- var $swipeStepEl = $el.find('.sheet-modal-swipe-step').eq(0);
411
+ sheet.setSwipeStep = function setSwipeStep(byResize = true) {
412
+ const $swipeStepEl = $el.find('.sheet-modal-swipe-step').eq(0);
431
413
  if (!$swipeStepEl.length) return;
432
414
 
433
415
  if ($el.hasClass('sheet-modal-top')) {
@@ -436,7 +418,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
436
418
  swipeStepTranslate = $el[0].offsetHeight - ($swipeStepEl.offset().top - $el.offset().top + $swipeStepEl[0].offsetHeight);
437
419
  }
438
420
 
439
- $el[0].style.setProperty('--f7-sheet-swipe-step', swipeStepTranslate + "px");
421
+ $el[0].style.setProperty('--f7-sheet-swipe-step', `${swipeStepTranslate}px`);
440
422
 
441
423
  if (!byResize) {
442
424
  $el.addClass('modal-in-swipe-step');
@@ -447,7 +429,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
447
429
  sheet.setSwipeStep(true);
448
430
  }
449
431
 
450
- var passive = support.passiveListener ? {
432
+ const passive = support.passiveListener ? {
451
433
  passive: true
452
434
  } : false;
453
435
 
@@ -455,14 +437,14 @@ var Sheet = /*#__PURE__*/function (_Modal) {
455
437
  $el.on(app.touchEvents.start, handleTouchStart, passive);
456
438
  app.on('touchmove', handleTouchMove);
457
439
  app.on('touchend:passive', handleTouchEnd);
458
- sheet.once('sheetDestroy', function () {
440
+ sheet.once('sheetDestroy', () => {
459
441
  $el.off(app.touchEvents.start, handleTouchStart, passive);
460
442
  app.off('touchmove', handleTouchMove);
461
443
  app.off('touchend:passive', handleTouchEnd);
462
444
  });
463
445
  }
464
446
 
465
- sheet.on('open', function () {
447
+ sheet.on('open', () => {
466
448
  if (sheet.params.closeOnEscape) {
467
449
  $(document).on('keydown', onKeyDown);
468
450
  }
@@ -490,18 +472,18 @@ var Sheet = /*#__PURE__*/function (_Modal) {
490
472
  sheet.$htmlEl[0].style.setProperty('--f7-sheet-push-scale', pushViewScale(pushOffset));
491
473
  } else {
492
474
  $pushViewEl = app.$el.children('.view, .views');
493
- pushBorderRadius = parseFloat($el.css("border-" + (isTopSheetModal ? 'bottom' : 'top') + "-left-radius"));
475
+ pushBorderRadius = parseFloat($el.css(`border-${isTopSheetModal ? 'bottom' : 'top'}-left-radius`));
494
476
  $pushViewEl.css('border-radius', '0px');
495
477
  }
496
478
  }
497
479
  }
498
480
  });
499
- sheet.on('opened', function () {
481
+ sheet.on('opened', () => {
500
482
  if (sheet.params.closeByOutsideClick || sheet.params.closeByBackdropClick) {
501
483
  app.on('click', handleClick);
502
484
  }
503
485
  });
504
- sheet.on('close', function () {
486
+ sheet.on('close', () => {
505
487
  if (sheet.params.swipeToStep) {
506
488
  $el.removeClass('modal-in-swipe-step');
507
489
  app.off('resize', onResize);
@@ -526,7 +508,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
526
508
  sheet.$htmlEl.addClass('with-modal-sheet-push-closing');
527
509
  }
528
510
  });
529
- sheet.on('closed', function () {
511
+ sheet.on('closed', () => {
530
512
  if (sheet.push && pushOffset) {
531
513
  sheet.$htmlEl.removeClass('with-modal-sheet-push-closing');
532
514
  sheet.$htmlEl[0].style.removeProperty('--f7-sheet-push-scale');
@@ -561,10 +543,9 @@ var Sheet = /*#__PURE__*/function (_Modal) {
561
543
  };
562
544
 
563
545
  $el[0].f7Modal = sheet;
564
- return sheet || _assertThisInitialized(_this);
546
+ return sheet;
565
547
  }
566
548
 
567
- return Sheet;
568
- }(Modal);
549
+ }
569
550
 
570
551
  export default Sheet;
@@ -1 +1 @@
1
- :root{--f7-sheet-height:260px;--f7-sheet-border-color:transparent;--f7-sheet-transition-duration:300ms;--f7-sheet-push-border-radius:10px;--f7-sheet-push-offset:var(--f7-safe-area-top);--f7-sheet-bg-color:#fff}:root .theme-dark,:root.theme-dark{--f7-sheet-bg-color:#202020}.ios{--f7-sheet-border-color:var(--f7-bars-border-color)}.sheet-backdrop{z-index:11000}.sheet-modal{position:absolute;left:0;bottom:0;width:100%;height:var(--f7-sheet-height);display:none;box-sizing:border-box;transition-property:transform;transform:translate3d(0,100%,0);background:var(--f7-sheet-bg-color);z-index:12500;will-change:transform,opacity}.sheet-modal.modal-in,.sheet-modal.modal-out{transition-duration:var(--f7-sheet-transition-duration)}.sheet-modal.not-animated{transition-duration:0s}.sheet-modal.modal-in{display:block;transform:translate3d(0,0,0)}.sheet-modal.modal-in-swipe-step{display:block;transform:translate3d(0,var(--f7-sheet-swipe-step,0),0)}.sheet-modal.modal-out{transform:translate3d(0,100%,0)}.sheet-modal .sheet-modal-inner{height:100%;position:relative;overflow:hidden}.sheet-modal .toolbar{--f7-safe-area-bottom:0px;position:relative;width:100%}.sheet-modal .toolbar:after,.sheet-modal .toolbar:before{display:none}.sheet-modal .toolbar+.sheet-modal-inner{height:calc(100% - var(--f7-toolbar-height))}.sheet-modal .toolbar+.sheet-modal-inner .page-content{--f7-page-toolbar-top-offset:0px;--f7-page-toolbar-bottom-offset:0px}.sheet-modal-top:after{content:'';position:absolute;background-color:var(--f7-sheet-border-color);display:block;z-index:15;top:auto;right:auto;bottom:0;left:0;height:1px;width:100%;transform-origin:50% 100%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.sheet-modal-top:after{z-index:700;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-style:preserve-3d}.sheet-modal-bottom,.sheet-modal:not(.sheet-modal-top){--f7-safe-area-top:0px}.sheet-modal-bottom:before,.sheet-modal:not(.sheet-modal-top):before{content:'';position:absolute;background-color:var(--f7-sheet-border-color);display:block;z-index:15;top:0;right:auto;bottom:auto;left:0;height:1px;width:100%;transform-origin:50% 0%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.sheet-modal-bottom:before,.sheet-modal:not(.sheet-modal-top):before{z-index:700;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-style:preserve-3d}.sheet-modal-top{--f7-safe-area-bottom:0px;bottom:auto;top:0;transform:translate3d(0,-100%,0)}.sheet-modal-top.modal-out{transform:translate3d(0,-100%,0)}.sheet-modal-top .toolbar-bottom{position:absolute}.sheet-modal-top .page-content{padding-top:var(--f7-safe-area-top)}html.with-modal-sheet-push .sheet-modal-push,html.with-modal-sheet-push-closing .sheet-modal-push{--f7-sheet-border-color:transparent;border-radius:var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius) 0 0;overflow:hidden}html.with-modal-sheet-push .sheet-modal-push .page,html.with-modal-sheet-push .sheet-modal-push .view,html.with-modal-sheet-push-closing .sheet-modal-push .page,html.with-modal-sheet-push-closing .sheet-modal-push .view{--f7-safe-area-top:0px}html.with-modal-sheet-push .sheet-modal-push.sheet-modal-top,html.with-modal-sheet-push-closing .sheet-modal-push.sheet-modal-top{border-radius:0 0 var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius)}html.with-modal-sheet-push .framework7-root,html.with-modal-sheet-push-closing .framework7-root{background:#000}html.with-modal-sheet-push .framework7-root>.view,html.with-modal-sheet-push .framework7-root>.views,html.with-modal-sheet-push-closing .framework7-root>.view,html.with-modal-sheet-push-closing .framework7-root>.views{transition-duration:var(--f7-sheet-transition-duration)}html.with-modal-sheet-push .framework7-root>.view.theme-dark:after,html.with-modal-sheet-push .framework7-root>.views.theme-dark:after,html.with-modal-sheet-push .theme-dark .framework7-root>.view:after,html.with-modal-sheet-push .theme-dark .framework7-root>.views:after,html.with-modal-sheet-push .theme-dark.framework7-root>.view:after,html.with-modal-sheet-push .theme-dark.framework7-root>.views:after,html.with-modal-sheet-push-closing .framework7-root>.view.theme-dark:after,html.with-modal-sheet-push-closing .framework7-root>.views.theme-dark:after,html.with-modal-sheet-push-closing .theme-dark .framework7-root>.view:after,html.with-modal-sheet-push-closing .theme-dark .framework7-root>.views:after,html.with-modal-sheet-push-closing .theme-dark.framework7-root>.view:after,html.with-modal-sheet-push-closing .theme-dark.framework7-root>.views:after,html.with-modal-sheet-push-closing.theme-dark .framework7-root>.view:after,html.with-modal-sheet-push-closing.theme-dark .framework7-root>.views:after,html.with-modal-sheet-push.theme-dark .framework7-root>.view:after,html.with-modal-sheet-push.theme-dark .framework7-root>.views:after{content:'';position:absolute;pointer-events:none;left:0;top:0;width:100%;height:100%;background:rgba(255,255,255,.1);z-index:13000;border-radius:var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius) 0 0;opacity:1;animation:sheet-dark-push-overlay-fade-in var(--f7-sheet-transition-duration) forwards}html.with-modal-sheet-push .framework7-root>.view,html.with-modal-sheet-push .framework7-root>.views{border-radius:var(--f7-sheet-push-border-radius);transform:translate3d(0,0,0px) scale(var(--f7-sheet-push-scale,1))!important}html.with-modal-sheet-push-closing .framework7-root>.view.theme-dark:after,html.with-modal-sheet-push-closing .framework7-root>.views.theme-dark:after,html.with-modal-sheet-push-closing .theme-dark .framework7-root>.view:after,html.with-modal-sheet-push-closing .theme-dark .framework7-root>.views:after,html.with-modal-sheet-push-closing .theme-dark.framework7-root>.view:after,html.with-modal-sheet-push-closing .theme-dark.framework7-root>.views:after,html.with-modal-sheet-push-closing.theme-dark .framework7-root>.view:after,html.with-modal-sheet-push-closing.theme-dark .framework7-root>.views:after{animation:sheet-dark-push-overlay-fade-out var(--f7-sheet-transition-duration) forwards}@keyframes sheet-dark-push-overlay-fade-in{from{opacity:0}to{opacity:1}}@keyframes sheet-dark-push-overlay-fade-out{from{opacity:1}to{opacity:0}}.md .sheet-modal .toolbar a.link:not(.tab-link){flex-shrink:0}
1
+ :root{--f7-sheet-height:260px;--f7-sheet-border-color:transparent;--f7-sheet-transition-duration:300ms;--f7-sheet-push-border-radius:10px;--f7-sheet-push-offset:var(--f7-safe-area-top);--f7-sheet-bg-color:#fff}:root .dark,:root.dark{--f7-sheet-bg-color:#202020}.ios{--f7-sheet-border-color:var(--f7-bars-border-color)}.sheet-backdrop{z-index:11000}.sheet-modal{position:absolute;left:0;bottom:0;width:100%;height:var(--f7-sheet-height);display:none;box-sizing:border-box;transition-property:transform;transform:translate3d(0,100%,0);background:var(--f7-sheet-bg-color);z-index:12500;will-change:transform,opacity}.sheet-modal.modal-in,.sheet-modal.modal-out{transition-duration:var(--f7-sheet-transition-duration)}.sheet-modal.not-animated{transition-duration:0s}.sheet-modal.modal-in{display:block;transform:translate3d(0,0,0)}.sheet-modal.modal-in-swipe-step{display:block;transform:translate3d(0,var(--f7-sheet-swipe-step,0),0)}.sheet-modal.modal-out{transform:translate3d(0,100%,0)}.sheet-modal .sheet-modal-inner{height:100%;position:relative;overflow:hidden}.sheet-modal .toolbar{--f7-safe-area-bottom:0px;position:relative;width:100%}.sheet-modal .toolbar:after,.sheet-modal .toolbar:before{display:none}.sheet-modal .toolbar+.sheet-modal-inner{height:calc(100% - var(--f7-toolbar-height))}.sheet-modal .toolbar+.sheet-modal-inner .page-content{--f7-page-toolbar-top-offset:0px;--f7-page-toolbar-bottom-offset:0px}.sheet-modal-top:after{content:'';position:absolute;background-color:var(--f7-sheet-border-color);display:block;z-index:15;top:auto;right:auto;bottom:0;left:0;height:1px;width:100%;transform-origin:50% 100%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.sheet-modal-top:after{z-index:700;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-style:preserve-3d}.sheet-modal-bottom,.sheet-modal:not(.sheet-modal-top){--f7-safe-area-top:0px}.sheet-modal-bottom:before,.sheet-modal:not(.sheet-modal-top):before{content:'';position:absolute;background-color:var(--f7-sheet-border-color);display:block;z-index:15;top:0;right:auto;bottom:auto;left:0;height:1px;width:100%;transform-origin:50% 0%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.sheet-modal-bottom:before,.sheet-modal:not(.sheet-modal-top):before{z-index:700;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-style:preserve-3d}.sheet-modal-top{--f7-safe-area-bottom:0px;bottom:auto;top:0;transform:translate3d(0,-100%,0)}.sheet-modal-top.modal-out{transform:translate3d(0,-100%,0)}.sheet-modal-top .toolbar-bottom{position:absolute}.sheet-modal-top .page-content{padding-top:var(--f7-safe-area-top)}html.with-modal-sheet-push .sheet-modal-push,html.with-modal-sheet-push-closing .sheet-modal-push{--f7-sheet-border-color:transparent;border-radius:var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius) 0 0;overflow:hidden}html.with-modal-sheet-push .sheet-modal-push .page,html.with-modal-sheet-push .sheet-modal-push .view,html.with-modal-sheet-push-closing .sheet-modal-push .page,html.with-modal-sheet-push-closing .sheet-modal-push .view{--f7-safe-area-top:0px}html.with-modal-sheet-push .sheet-modal-push.sheet-modal-top,html.with-modal-sheet-push-closing .sheet-modal-push.sheet-modal-top{border-radius:0 0 var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius)}html.with-modal-sheet-push .framework7-root,html.with-modal-sheet-push-closing .framework7-root{background:#000}html.with-modal-sheet-push .framework7-root>.view,html.with-modal-sheet-push .framework7-root>.views,html.with-modal-sheet-push-closing .framework7-root>.view,html.with-modal-sheet-push-closing .framework7-root>.views{transition-duration:var(--f7-sheet-transition-duration)}html.with-modal-sheet-push .dark .framework7-root>.view:after,html.with-modal-sheet-push .dark .framework7-root>.views:after,html.with-modal-sheet-push .dark.framework7-root>.view:after,html.with-modal-sheet-push .dark.framework7-root>.views:after,html.with-modal-sheet-push .framework7-root>.view.dark:after,html.with-modal-sheet-push .framework7-root>.views.dark:after,html.with-modal-sheet-push-closing .dark .framework7-root>.view:after,html.with-modal-sheet-push-closing .dark .framework7-root>.views:after,html.with-modal-sheet-push-closing .dark.framework7-root>.view:after,html.with-modal-sheet-push-closing .dark.framework7-root>.views:after,html.with-modal-sheet-push-closing .framework7-root>.view.dark:after,html.with-modal-sheet-push-closing .framework7-root>.views.dark:after,html.with-modal-sheet-push-closing.dark .framework7-root>.view:after,html.with-modal-sheet-push-closing.dark .framework7-root>.views:after,html.with-modal-sheet-push.dark .framework7-root>.view:after,html.with-modal-sheet-push.dark .framework7-root>.views:after{content:'';position:absolute;pointer-events:none;left:0;top:0;width:100%;height:100%;background:rgba(255,255,255,.1);z-index:13000;border-radius:var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius) 0 0;opacity:1;animation:sheet-dark-push-overlay-fade-in var(--f7-sheet-transition-duration) forwards}html.with-modal-sheet-push .framework7-root>.view,html.with-modal-sheet-push .framework7-root>.views{border-radius:var(--f7-sheet-push-border-radius);transform:translate3d(0,0,0px) scale(var(--f7-sheet-push-scale,1))!important}html.with-modal-sheet-push-closing .dark .framework7-root>.view:after,html.with-modal-sheet-push-closing .dark .framework7-root>.views:after,html.with-modal-sheet-push-closing .dark.framework7-root>.view:after,html.with-modal-sheet-push-closing .dark.framework7-root>.views:after,html.with-modal-sheet-push-closing .framework7-root>.view.dark:after,html.with-modal-sheet-push-closing .framework7-root>.views.dark:after,html.with-modal-sheet-push-closing.dark .framework7-root>.view:after,html.with-modal-sheet-push-closing.dark .framework7-root>.views:after{animation:sheet-dark-push-overlay-fade-out var(--f7-sheet-transition-duration) forwards}@keyframes sheet-dark-push-overlay-fade-in{from{opacity:0}to{opacity:1}}@keyframes sheet-dark-push-overlay-fade-out{from{opacity:1}to{opacity:0}}.md .sheet-modal .toolbar a.link:not(.tab-link){flex-shrink:0}
@@ -1 +1 @@
1
- :root{--f7-sheet-height:260px;--f7-sheet-border-color:transparent;--f7-sheet-transition-duration:300ms;--f7-sheet-push-border-radius:10px;--f7-sheet-push-offset:var(--f7-safe-area-top);--f7-sheet-bg-color:#fff}:root .theme-dark,:root.theme-dark{--f7-sheet-bg-color:#202020}.ios{--f7-sheet-border-color:var(--f7-bars-border-color)}.sheet-backdrop{z-index:11000}.sheet-modal{position:absolute;left:0;bottom:0;width:100%;height:var(--f7-sheet-height);display:none;box-sizing:border-box;transition-property:transform;transform:translate3d(0,100%,0);background:var(--f7-sheet-bg-color);z-index:12500;will-change:transform,opacity}.sheet-modal.modal-in,.sheet-modal.modal-out{transition-duration:var(--f7-sheet-transition-duration)}.sheet-modal.not-animated{transition-duration:0s}.sheet-modal.modal-in{display:block;transform:translate3d(0,0,0)}.sheet-modal.modal-in-swipe-step{display:block;transform:translate3d(0,var(--f7-sheet-swipe-step,0),0)}.sheet-modal.modal-out{transform:translate3d(0,100%,0)}.sheet-modal .sheet-modal-inner{height:100%;position:relative;overflow:hidden}.sheet-modal .toolbar{--f7-safe-area-bottom:0px;position:relative;width:100%}.sheet-modal .toolbar:after,.sheet-modal .toolbar:before{display:none}.sheet-modal .toolbar+.sheet-modal-inner{height:calc(100% - var(--f7-toolbar-height))}.sheet-modal .toolbar+.sheet-modal-inner .page-content{--f7-page-toolbar-top-offset:0px;--f7-page-toolbar-bottom-offset:0px}.sheet-modal-top:after{content:'';position:absolute;background-color:var(--f7-sheet-border-color);display:block;z-index:15;top:auto;right:auto;bottom:0;left:0;height:1px;width:100%;transform-origin:50% 100%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.sheet-modal-top:after{z-index:700;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-style:preserve-3d}.sheet-modal-bottom,.sheet-modal:not(.sheet-modal-top){--f7-safe-area-top:0px}.sheet-modal-bottom:before,.sheet-modal:not(.sheet-modal-top):before{content:'';position:absolute;background-color:var(--f7-sheet-border-color);display:block;z-index:15;top:0;right:auto;bottom:auto;left:0;height:1px;width:100%;transform-origin:50% 0%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.sheet-modal-bottom:before,.sheet-modal:not(.sheet-modal-top):before{z-index:700;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-style:preserve-3d}.sheet-modal-top{--f7-safe-area-bottom:0px;bottom:auto;top:0;transform:translate3d(0,-100%,0)}.sheet-modal-top.modal-out{transform:translate3d(0,-100%,0)}.sheet-modal-top .toolbar-bottom{position:absolute}.sheet-modal-top .page-content{padding-top:var(--f7-safe-area-top)}html.with-modal-sheet-push .sheet-modal-push,html.with-modal-sheet-push-closing .sheet-modal-push{--f7-sheet-border-color:transparent;border-radius:var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius) 0 0;overflow:hidden}html.with-modal-sheet-push .sheet-modal-push .page,html.with-modal-sheet-push .sheet-modal-push .view,html.with-modal-sheet-push-closing .sheet-modal-push .page,html.with-modal-sheet-push-closing .sheet-modal-push .view{--f7-safe-area-top:0px}html.with-modal-sheet-push .sheet-modal-push.sheet-modal-top,html.with-modal-sheet-push-closing .sheet-modal-push.sheet-modal-top{border-radius:0 0 var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius)}html.with-modal-sheet-push .framework7-root,html.with-modal-sheet-push-closing .framework7-root{background:#000}html.with-modal-sheet-push .framework7-root>.view,html.with-modal-sheet-push .framework7-root>.views,html.with-modal-sheet-push-closing .framework7-root>.view,html.with-modal-sheet-push-closing .framework7-root>.views{transition-duration:var(--f7-sheet-transition-duration)}html.with-modal-sheet-push .framework7-root>.view.theme-dark:after,html.with-modal-sheet-push .framework7-root>.views.theme-dark:after,html.with-modal-sheet-push .theme-dark .framework7-root>.view:after,html.with-modal-sheet-push .theme-dark .framework7-root>.views:after,html.with-modal-sheet-push .theme-dark.framework7-root>.view:after,html.with-modal-sheet-push .theme-dark.framework7-root>.views:after,html.with-modal-sheet-push-closing .framework7-root>.view.theme-dark:after,html.with-modal-sheet-push-closing .framework7-root>.views.theme-dark:after,html.with-modal-sheet-push-closing .theme-dark .framework7-root>.view:after,html.with-modal-sheet-push-closing .theme-dark .framework7-root>.views:after,html.with-modal-sheet-push-closing .theme-dark.framework7-root>.view:after,html.with-modal-sheet-push-closing .theme-dark.framework7-root>.views:after,html.with-modal-sheet-push-closing.theme-dark .framework7-root>.view:after,html.with-modal-sheet-push-closing.theme-dark .framework7-root>.views:after,html.with-modal-sheet-push.theme-dark .framework7-root>.view:after,html.with-modal-sheet-push.theme-dark .framework7-root>.views:after{content:'';position:absolute;pointer-events:none;left:0;top:0;width:100%;height:100%;background:rgba(255,255,255,.1);z-index:13000;border-radius:var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius) 0 0;opacity:1;animation:sheet-dark-push-overlay-fade-in var(--f7-sheet-transition-duration) forwards}html.with-modal-sheet-push .framework7-root>.view,html.with-modal-sheet-push .framework7-root>.views{border-radius:var(--f7-sheet-push-border-radius);transform:translate3d(0,0,0px) scale(var(--f7-sheet-push-scale,1))!important}html.with-modal-sheet-push-closing .framework7-root>.view.theme-dark:after,html.with-modal-sheet-push-closing .framework7-root>.views.theme-dark:after,html.with-modal-sheet-push-closing .theme-dark .framework7-root>.view:after,html.with-modal-sheet-push-closing .theme-dark .framework7-root>.views:after,html.with-modal-sheet-push-closing .theme-dark.framework7-root>.view:after,html.with-modal-sheet-push-closing .theme-dark.framework7-root>.views:after,html.with-modal-sheet-push-closing.theme-dark .framework7-root>.view:after,html.with-modal-sheet-push-closing.theme-dark .framework7-root>.views:after{animation:sheet-dark-push-overlay-fade-out var(--f7-sheet-transition-duration) forwards}@keyframes sheet-dark-push-overlay-fade-in{from{opacity:0}to{opacity:1}}@keyframes sheet-dark-push-overlay-fade-out{from{opacity:1}to{opacity:0}}.md .sheet-modal .toolbar a.link:not(.tab-link){flex-shrink:0}
1
+ :root{--f7-sheet-height:260px;--f7-sheet-border-color:transparent;--f7-sheet-transition-duration:300ms;--f7-sheet-push-border-radius:10px;--f7-sheet-push-offset:var(--f7-safe-area-top);--f7-sheet-bg-color:#fff}:root .dark,:root.dark{--f7-sheet-bg-color:#202020}.ios{--f7-sheet-border-color:var(--f7-bars-border-color)}.sheet-backdrop{z-index:11000}.sheet-modal{position:absolute;left:0;bottom:0;width:100%;height:var(--f7-sheet-height);display:none;box-sizing:border-box;transition-property:transform;transform:translate3d(0,100%,0);background:var(--f7-sheet-bg-color);z-index:12500;will-change:transform,opacity}.sheet-modal.modal-in,.sheet-modal.modal-out{transition-duration:var(--f7-sheet-transition-duration)}.sheet-modal.not-animated{transition-duration:0s}.sheet-modal.modal-in{display:block;transform:translate3d(0,0,0)}.sheet-modal.modal-in-swipe-step{display:block;transform:translate3d(0,var(--f7-sheet-swipe-step,0),0)}.sheet-modal.modal-out{transform:translate3d(0,100%,0)}.sheet-modal .sheet-modal-inner{height:100%;position:relative;overflow:hidden}.sheet-modal .toolbar{--f7-safe-area-bottom:0px;position:relative;width:100%}.sheet-modal .toolbar:after,.sheet-modal .toolbar:before{display:none}.sheet-modal .toolbar+.sheet-modal-inner{height:calc(100% - var(--f7-toolbar-height))}.sheet-modal .toolbar+.sheet-modal-inner .page-content{--f7-page-toolbar-top-offset:0px;--f7-page-toolbar-bottom-offset:0px}.sheet-modal-top:after{content:'';position:absolute;background-color:var(--f7-sheet-border-color);display:block;z-index:15;top:auto;right:auto;bottom:0;left:0;height:1px;width:100%;transform-origin:50% 100%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.sheet-modal-top:after{z-index:700;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-style:preserve-3d}.sheet-modal-bottom,.sheet-modal:not(.sheet-modal-top){--f7-safe-area-top:0px}.sheet-modal-bottom:before,.sheet-modal:not(.sheet-modal-top):before{content:'';position:absolute;background-color:var(--f7-sheet-border-color);display:block;z-index:15;top:0;right:auto;bottom:auto;left:0;height:1px;width:100%;transform-origin:50% 0%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.sheet-modal-bottom:before,.sheet-modal:not(.sheet-modal-top):before{z-index:700;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-style:preserve-3d}.sheet-modal-top{--f7-safe-area-bottom:0px;bottom:auto;top:0;transform:translate3d(0,-100%,0)}.sheet-modal-top.modal-out{transform:translate3d(0,-100%,0)}.sheet-modal-top .toolbar-bottom{position:absolute}.sheet-modal-top .page-content{padding-top:var(--f7-safe-area-top)}html.with-modal-sheet-push .sheet-modal-push,html.with-modal-sheet-push-closing .sheet-modal-push{--f7-sheet-border-color:transparent;border-radius:var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius) 0 0;overflow:hidden}html.with-modal-sheet-push .sheet-modal-push .page,html.with-modal-sheet-push .sheet-modal-push .view,html.with-modal-sheet-push-closing .sheet-modal-push .page,html.with-modal-sheet-push-closing .sheet-modal-push .view{--f7-safe-area-top:0px}html.with-modal-sheet-push .sheet-modal-push.sheet-modal-top,html.with-modal-sheet-push-closing .sheet-modal-push.sheet-modal-top{border-radius:0 0 var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius)}html.with-modal-sheet-push .framework7-root,html.with-modal-sheet-push-closing .framework7-root{background:#000}html.with-modal-sheet-push .framework7-root>.view,html.with-modal-sheet-push .framework7-root>.views,html.with-modal-sheet-push-closing .framework7-root>.view,html.with-modal-sheet-push-closing .framework7-root>.views{transition-duration:var(--f7-sheet-transition-duration)}html.with-modal-sheet-push .dark .framework7-root>.view:after,html.with-modal-sheet-push .dark .framework7-root>.views:after,html.with-modal-sheet-push .dark.framework7-root>.view:after,html.with-modal-sheet-push .dark.framework7-root>.views:after,html.with-modal-sheet-push .framework7-root>.view.dark:after,html.with-modal-sheet-push .framework7-root>.views.dark:after,html.with-modal-sheet-push-closing .dark .framework7-root>.view:after,html.with-modal-sheet-push-closing .dark .framework7-root>.views:after,html.with-modal-sheet-push-closing .dark.framework7-root>.view:after,html.with-modal-sheet-push-closing .dark.framework7-root>.views:after,html.with-modal-sheet-push-closing .framework7-root>.view.dark:after,html.with-modal-sheet-push-closing .framework7-root>.views.dark:after,html.with-modal-sheet-push-closing.dark .framework7-root>.view:after,html.with-modal-sheet-push-closing.dark .framework7-root>.views:after,html.with-modal-sheet-push.dark .framework7-root>.view:after,html.with-modal-sheet-push.dark .framework7-root>.views:after{content:'';position:absolute;pointer-events:none;left:0;top:0;width:100%;height:100%;background:rgba(255,255,255,.1);z-index:13000;border-radius:var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius) 0 0;opacity:1;animation:sheet-dark-push-overlay-fade-in var(--f7-sheet-transition-duration) forwards}html.with-modal-sheet-push .framework7-root>.view,html.with-modal-sheet-push .framework7-root>.views{border-radius:var(--f7-sheet-push-border-radius);transform:translate3d(0,0,0px) scale(var(--f7-sheet-push-scale,1))!important}html.with-modal-sheet-push-closing .dark .framework7-root>.view:after,html.with-modal-sheet-push-closing .dark .framework7-root>.views:after,html.with-modal-sheet-push-closing .dark.framework7-root>.view:after,html.with-modal-sheet-push-closing .dark.framework7-root>.views:after,html.with-modal-sheet-push-closing .framework7-root>.view.dark:after,html.with-modal-sheet-push-closing .framework7-root>.views.dark:after,html.with-modal-sheet-push-closing.dark .framework7-root>.view:after,html.with-modal-sheet-push-closing.dark .framework7-root>.views:after{animation:sheet-dark-push-overlay-fade-out var(--f7-sheet-transition-duration) forwards}@keyframes sheet-dark-push-overlay-fade-in{from{opacity:0}to{opacity:1}}@keyframes sheet-dark-push-overlay-fade-out{from{opacity:1}to{opacity:0}}.md .sheet-modal .toolbar a.link:not(.tab-link){flex-shrink:0}
@@ -1 +1,68 @@
1
- (function framework7ComponentLoader(e,s){void 0===s&&(s=!0);var t=e.$,o=e.utils,r=e.getDevice,a=e.getSupport,p=(e.Class,e.Modal),n=(e.ConstructorMethods,e.ModalMethods),l=o.extend,i=o.now,c=o.getTranslate;function h(e){this.wrapped=e}function d(e){var s,t;function o(s,t){try{var a=e[s](t),p=a.value,n=p instanceof h;Promise.resolve(n?p.wrapped:p).then((function(e){n?o("return"===s?"return":"next",e):r(a.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":s.resolve({value:r,done:!0});break;case"throw":s.reject(r);break;default:s.resolve({value:r,done:!1})}(s=s.next)?o(s.key,s.arg):t=null}this._invoke=function(e,r){return new Promise((function(a,p){var n={key:e,arg:r,resolve:a,reject:p,next:null};t?t=t.next=n:(s=t=n,o(e,r))}))},"function"!=typeof e.return&&(this.return=void 0)}function u(e,s){return(u=Object.setPrototypeOf||function(e,s){return e.__proto__=s,e})(e,s)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}d.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},d.prototype.next=function(e){return this._invoke("next",e)},d.prototype.throw=function(e){return this._invoke("throw",e)},d.prototype.return=function(e){return this._invoke("return",e)};var f=function(e){var s,o;function p(s,o){var p,n,h,d,u,f=l({on:{}},s.params.sheet,o),g=m(p=e.call(this,s,f)||this),v=a(),w=r();if(g.params=f,void 0===g.params.backdrop&&(g.params.backdrop="ios"!==s.theme),(n=g.params.el?t(g.params.el).eq(0):t(g.params.content).filter((function(e){return 1===e.nodeType})).eq(0))&&n.length>0&&n[0].f7Modal)return n[0].f7Modal||m(p);if(0===n.length)return g.destroy()||m(p);function y(e){var s=e.target,o=t(s);!w.desktop&&w.cordova&&(window.Keyboard&&window.Keyboard.isVisible||window.cordova.plugins&&window.cordova.plugins.Keyboard&&window.cordova.plugins.Keyboard.isVisible)||0===o.closest(g.el).length&&(g.params.closeByBackdropClick&&g.params.backdrop&&g.backdropEl&&g.backdropEl===s||g.params.closeByOutsideClick)&&g.close()}function b(e){27===e.keyCode&&g.params.closeOnEscape&&g.close()}function C(e){return(s.height-2*e)/s.height}g.params.backdrop&&g.params.backdropEl?h=t(g.params.backdropEl):g.params.backdrop&&0===(h=g.$containerEl.children(".sheet-backdrop")).length&&(h=t('<div class="sheet-backdrop"></div>'),g.$containerEl.append(h)),l(g,{app:s,push:n.hasClass("sheet-modal-push")||g.params.push,$el:n,el:n[0],$backdropEl:h,backdropEl:h&&h[0],type:"sheet",$htmlEl:t("html")}),g.params.push&&n.addClass("sheet-modal-push");var k,E,T,S,P,x,M,$,O,H,B,_,I,N,q,j,D,K,X=!1,Y=!1;function z(e){X||!g.params.swipeToClose&&!g.params.swipeToStep||g.params.swipeHandler&&0===t(e.target).closest(g.params.swipeHandler).length||(X=!0,Y=!1,k={x:"touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y:"touchstart"===e.type?e.targetTouches[0].pageY:e.pageY},S=i(),T=void 0,x=n.hasClass("sheet-modal-top"),g.params.swipeHandler||"touchstart"!==e.type||(q=t(e.target).closest(".page-content")[0]))}function A(e){if(X){if(E={x:"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,y:"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY},void 0===T&&(T=!!(T||Math.abs(E.x-k.x)>Math.abs(E.y-k.y))),T)return X=!1,void(Y=!1);var t,o=(P=k.y-E.y)<0?"to-bottom":"to-top";if(!Y){if(q&&!n.hasClass("modal-in-swipe-step")&&(j=q.scrollTop,D=q.scrollHeight,K=q.offsetHeight,!(D===K||"to-bottom"===o&&0===j||"to-top"===o&&j===D-K)))return n.transform(""),X=!1,void(Y=!1);g.push&&u&&(I=s.$el.children(".view, .views")),H=n[0].offsetHeight,$=c(n[0],"y"),x?(B=g.params.swipeToClose?-H:-M,_=0):(B=0,_=g.params.swipeToClose?H:M),Y=!0}if(O=$-P,O=Math.min(Math.max(O,B),_),e.preventDefault(),g.push&&u){var r=(O-$)/H;g.params.swipeToStep&&(r=x?O/M:1-(M-O)/M),r=Math.abs(r);var a=1-(r=Math.min(Math.max(r,0),1)),p=1-(1-C(u))*a;I.transition(0).forEach((function(e){e.style.setProperty("transform","translate3d(0,0,0) scale("+p+")","important")})),g.params.swipeToStep&&I.css("border-radius",N*a+"px")}if(n.transition(0).transform("translate3d(0,"+O+"px,0)"),g.params.swipeToStep)t=x?1-O/M:(M-O)/M,t=Math.min(Math.max(t,0),1),n.trigger("sheet:stepprogress",t),g.emit("local::stepProgress sheetStepProgress",g,t)}}function L(){if(X=!1,Y){Y=!1,n.transform("").transition(""),g.push&&u&&(I.transition("").transform(""),I.css("border-radius",""));var e=P<0?"to-bottom":"to-top",s=Math.abs(P);if(0!==s&&O!==$){var t=(new Date).getTime()-S;if(g.params.swipeToStep){var o=x?"to-bottom":"to-top",r=x?"to-top":"to-bottom",a=Math.abs(O),p=Math.abs(M);if(t<300&&s>10)return e===o&&a<p&&(n.removeClass("modal-in-swipe-step"),n.trigger("sheet:stepprogress",1),g.emit("local::stepProgress sheetStepProgress",g,1),n.trigger("sheet:stepopen"),g.emit("local::stepOpen sheetStepOpen",g),g.push&&u&&(g.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",C(u)),I.css("border-radius",""))),e===r&&a>p&&(g.params.swipeToClose?g.close():(n.addClass("modal-in-swipe-step"),n.trigger("sheet:stepprogress",0),g.emit("local::stepProgress sheetStepProgress",g,0),n.trigger("sheet:stepclose"),g.emit("local::stepClose sheetStepClose",g),g.push&&u&&(g.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),I.css("border-radius","0px")))),void(e===r&&a<=p&&(n.addClass("modal-in-swipe-step"),n.trigger("sheet:stepprogress",0),g.emit("local::stepProgress sheetStepProgress",g,0),n.trigger("sheet:stepclose"),g.emit("local::stepClose sheetStepClose",g),g.push&&u&&(g.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),I.css("border-radius","0px"))));if(t>=300){var l=!n.hasClass("modal-in-swipe-step");l?l&&(a>p+(H-p)/2?g.params.swipeToClose&&g.close():a>p/2&&(n.addClass("modal-in-swipe-step"),n.trigger("sheet:stepprogress",0),g.emit("local::stepProgress sheetStepProgress",g,0),n.trigger("sheet:stepclose"),g.emit("local::stepClose sheetStepClose",g),g.push&&u&&(g.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),I.css("border-radius","0px")))):a<p/2?(n.removeClass("modal-in-swipe-step"),n.trigger("sheet:stepprogress",1),g.emit("local::stepProgress sheetStepProgress",g,1),n.trigger("sheet:stepopen"),g.emit("local::stepOpen sheetStepOpen",g),g.push&&u&&(g.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",C(u)),I.css("border-radius",""))):a-p>(H-p)/2&&g.params.swipeToClose&&g.close()}}else{if(e!==(x?"to-top":"to-bottom"))return;(t<300&&s>20||t>=300&&s>H/2)&&g.close()}}}}function V(){g.setSwipeStep(!0)}g.setSwipeStep=function(e){void 0===e&&(e=!0);var s=n.find(".sheet-modal-swipe-step").eq(0);s.length&&(M=n.hasClass("sheet-modal-top")?-(s.offset().top-n.offset().top+s[0].offsetHeight):n[0].offsetHeight-(s.offset().top-n.offset().top+s[0].offsetHeight),n[0].style.setProperty("--f7-sheet-swipe-step",M+"px"),e||n.addClass("modal-in-swipe-step"))};var F=!!v.passiveListener&&{passive:!0};return(g.params.swipeToClose||g.params.swipeToStep)&&(n.on(s.touchEvents.start,z,F),s.on("touchmove",A),s.on("touchend:passive",L),g.once("sheetDestroy",(function(){n.off(s.touchEvents.start,z,F),s.off("touchmove",A),s.off("touchend:passive",L)}))),g.on("open",(function(){g.params.closeOnEscape&&t(document).on("keydown",b),n.prevAll(".popup.modal-in").addClass("popup-behind"),g.params.swipeToStep&&(g.setSwipeStep(!1),s.on("resize",V)),g.params.scrollToEl&&function(){var e=t(g.params.scrollToEl).eq(0);if(0!==e.length&&0!==(d=e.parents(".page-content")).length){var s,o=parseInt(d.css("padding-top"),10),r=parseInt(d.css("padding-bottom"),10),a=d[0].offsetHeight-o-n.height(),p=d[0].scrollHeight-o-n.height(),l=d.scrollTop(),i=e.offset().top-o+e[0].offsetHeight;if(i>a){var c=l+i-a;c+a>p&&(s=c+a-p+r,a===p&&(s=n.height()),d.css({"padding-bottom":s+"px"})),d.scrollTop(c,300)}}}(),g.push&&(u=parseInt(n.css("--f7-sheet-push-offset"),10),Number.isNaN(u)&&(u=0),u&&(n.addClass("sheet-modal-push"),g.$htmlEl.addClass("with-modal-sheet-push"),g.params.swipeToStep?(I=s.$el.children(".view, .views"),N=parseFloat(n.css("border-"+(x?"bottom":"top")+"-left-radius")),I.css("border-radius","0px")):g.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",C(u))))})),g.on("opened",(function(){(g.params.closeByOutsideClick||g.params.closeByBackdropClick)&&s.on("click",y)})),g.on("close",(function(){g.params.swipeToStep&&(n.removeClass("modal-in-swipe-step"),s.off("resize",V)),g.params.closeOnEscape&&t(document).off("keydown",b),g.params.scrollToEl&&d&&d.length>0&&d.css({"padding-bottom":""}),(g.params.closeByOutsideClick||g.params.closeByBackdropClick)&&s.off("click",y),n.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),g.push&&u&&(g.$htmlEl.removeClass("with-modal-sheet-push"),g.$htmlEl.addClass("with-modal-sheet-push-closing"))})),g.on("closed",(function(){g.push&&u&&(g.$htmlEl.removeClass("with-modal-sheet-push-closing"),g.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"))})),g.stepOpen=function(){n.removeClass("modal-in-swipe-step"),g.push&&(u||(u=parseInt(n.css("--f7-sheet-push-offset"),10),Number.isNaN(u)&&(u=0)),u&&g.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",C(u)))},g.stepClose=function(){n.addClass("modal-in-swipe-step"),g.push&&g.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale")},g.stepToggle=function(){n.toggleClass("modal-in-swipe-step")},n[0].f7Modal=g,g||m(p)}return o=e,(s=p).prototype=Object.create(o.prototype),s.prototype.constructor=s,u(s,o),p}(p),g={name:"sheet",params:{sheet:{push:!1,backdrop:void 0,backdropEl:void 0,closeByBackdropClick:!0,closeByOutsideClick:!1,closeOnEscape:!1,swipeToClose:!1,swipeToStep:!1,swipeHandler:null,containerEl:null}},static:{Sheet:f},create:function(){var e=this;e.sheet=l({},n({app:e,constructor:f,defaultSelector:".sheet-modal.modal-in"}),{stepOpen:function(s){var t=e.sheet.get(s);if(t&&t.stepOpen)return t.stepOpen()},stepClose:function(s){var t=e.sheet.get(s);if(t&&t.stepClose)return t.stepClose()},stepToggle:function(s){var t=e.sheet.get(s);if(t&&t.stepToggle)return t.stepToggle()}})},clicks:{".sheet-open":function(e,s){void 0===s&&(s={});t(".sheet-modal.modal-in").length>0&&s.sheet&&t(s.sheet)[0]!==t(".sheet-modal.modal-in")[0]&&this.sheet.close(".sheet-modal.modal-in"),this.sheet.open(s.sheet,s.animate,e)},".sheet-close":function(e,s){void 0===s&&(s={});this.sheet.close(s.sheet,s.animate,e)}}};if(s){if(e.prototype.modules&&e.prototype.modules[g.name])return;e.use(g),e.instance&&(e.instance.useModuleParams(g,e.instance.params),e.instance.useModule(g))}return g}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))
1
+ import $ from '../../shared/dom7';
2
+ import { extend } from '../../shared/utils';
3
+ import Sheet from './sheet-class';
4
+ import ModalMethods from '../../shared/modal-methods';
5
+ export default {
6
+ name: 'sheet',
7
+ params: {
8
+ sheet: {
9
+ push: false,
10
+ backdrop: undefined,
11
+ backdropEl: undefined,
12
+ closeByBackdropClick: true,
13
+ closeByOutsideClick: false,
14
+ closeOnEscape: false,
15
+ swipeToClose: false,
16
+ swipeToStep: false,
17
+ swipeHandler: null,
18
+ containerEl: null
19
+ }
20
+ },
21
+ static: {
22
+ Sheet
23
+ },
24
+
25
+ create() {
26
+ const app = this;
27
+ app.sheet = extend({}, ModalMethods({
28
+ app,
29
+ constructor: Sheet,
30
+ defaultSelector: '.sheet-modal.modal-in'
31
+ }), {
32
+ stepOpen(sheet) {
33
+ const sheetInstance = app.sheet.get(sheet);
34
+ if (sheetInstance && sheetInstance.stepOpen) return sheetInstance.stepOpen();
35
+ return undefined;
36
+ },
37
+
38
+ stepClose(sheet) {
39
+ const sheetInstance = app.sheet.get(sheet);
40
+ if (sheetInstance && sheetInstance.stepClose) return sheetInstance.stepClose();
41
+ return undefined;
42
+ },
43
+
44
+ stepToggle(sheet) {
45
+ const sheetInstance = app.sheet.get(sheet);
46
+ if (sheetInstance && sheetInstance.stepToggle) return sheetInstance.stepToggle();
47
+ return undefined;
48
+ }
49
+
50
+ });
51
+ },
52
+
53
+ clicks: {
54
+ '.sheet-open': function openSheet($clickedEl, data = {}) {
55
+ const app = this;
56
+
57
+ if ($('.sheet-modal.modal-in').length > 0 && data.sheet && $(data.sheet)[0] !== $('.sheet-modal.modal-in')[0]) {
58
+ app.sheet.close('.sheet-modal.modal-in');
59
+ }
60
+
61
+ app.sheet.open(data.sheet, data.animate, $clickedEl);
62
+ },
63
+ '.sheet-close': function closeSheet($clickedEl, data = {}) {
64
+ const app = this;
65
+ app.sheet.close(data.sheet, data.animate, $clickedEl);
66
+ }
67
+ }
68
+ };
@@ -112,14 +112,14 @@ html.with-modal-sheet-push-closing {
112
112
  }
113
113
  }
114
114
  .if-dark-theme({
115
- &.theme-dark .framework7-root > .views,
116
- &.theme-dark .framework7-root > .view,
117
- .theme-dark .framework7-root > .views,
118
- .theme-dark .framework7-root > .view,
119
- .theme-dark.framework7-root > .views,
120
- .theme-dark.framework7-root > .view,
121
- .framework7-root > .views.theme-dark,
122
- .framework7-root > .view.theme-dark {
115
+ &.dark .framework7-root > .views,
116
+ &.dark .framework7-root > .view,
117
+ .dark .framework7-root > .views,
118
+ .dark .framework7-root > .view,
119
+ .dark.framework7-root > .views,
120
+ .dark.framework7-root > .view,
121
+ .framework7-root > .views.dark,
122
+ .framework7-root > .view.dark {
123
123
  &:after {
124
124
  content: '';
125
125
  position: absolute;
@@ -149,14 +149,14 @@ html.with-modal-sheet-push {
149
149
 
150
150
  .if-dark-theme({
151
151
  html.with-modal-sheet-push-closing {
152
- &.theme-dark .framework7-root > .views,
153
- &.theme-dark .framework7-root > .view,
154
- .theme-dark .framework7-root > .views,
155
- .theme-dark .framework7-root > .view,
156
- .theme-dark.framework7-root > .views,
157
- .theme-dark.framework7-root > .view,
158
- .framework7-root > .views.theme-dark,
159
- .framework7-root > .view.theme-dark {
152
+ &.dark .framework7-root > .views,
153
+ &.dark .framework7-root > .view,
154
+ .dark .framework7-root > .views,
155
+ .dark .framework7-root > .view,
156
+ .dark.framework7-root > .views,
157
+ .dark.framework7-root > .view,
158
+ .framework7-root > .views.dark,
159
+ .framework7-root > .view.dark {
160
160
  &:after {
161
161
  animation: sheet-dark-push-overlay-fade-out var(--f7-sheet-transition-duration) forwards;
162
162
  }
@@ -0,0 +1 @@
1
+ (function framework7ComponentLoader(e,s){void 0===s&&(s=!0);var t=e.$,o=e.utils,a=e.getDevice,p=e.getSupport,r=(e.Class,e.Modal),l=(e.ConstructorMethods,e.ModalMethods),i=o.extend,n=o.now,h=o.getTranslate;class c extends r{constructor(e,s){const o=i({on:{}},e.params.sheet,s);super(e,o);const r=this,l=getWindow(),c=getDocument(),d=p(),m=a();let u,g,f,y;if(r.params=o,void 0===r.params.backdrop&&(r.params.backdrop="ios"!==e.theme),u=r.params.el?t(r.params.el).eq(0):t(r.params.content).filter((e=>1===e.nodeType)).eq(0),u&&u.length>0&&u[0].f7Modal)return u[0].f7Modal;if(0===u.length)return r.destroy();function w(e){const s=e.target,o=t(s);!m.desktop&&m.cordova&&(l.Keyboard&&l.Keyboard.isVisible||l.cordova.plugins&&l.cordova.plugins.Keyboard&&l.cordova.plugins.Keyboard.isVisible)||0===o.closest(r.el).length&&(r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl&&r.backdropEl===s||r.params.closeByOutsideClick)&&r.close()}function C(e){27===e.keyCode&&r.params.closeOnEscape&&r.close()}function b(s){return(e.height-2*s)/e.height}r.params.backdrop&&r.params.backdropEl?g=t(r.params.backdropEl):r.params.backdrop&&(g=r.$containerEl.children(".sheet-backdrop"),0===g.length&&(g=t('<div class="sheet-backdrop"></div>'),r.$containerEl.append(g))),i(r,{app:e,push:u.hasClass("sheet-modal-push")||r.params.push,$el:u,el:u[0],$backdropEl:g,backdropEl:g&&g[0],type:"sheet",$htmlEl:t("html")}),r.params.push&&u.addClass("sheet-modal-push");let v,k,T,E,S,$,P,M,x,O,H,B,N,q,D,I,K,X,Y=!1,z=!1;function A(e){Y||!r.params.swipeToClose&&!r.params.swipeToStep||r.params.swipeHandler&&0===t(e.target).closest(r.params.swipeHandler).length||(Y=!0,z=!1,v={x:"touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y:"touchstart"===e.type?e.targetTouches[0].pageY:e.pageY},E=n(),T=void 0,$=u.hasClass("sheet-modal-top"),r.params.swipeHandler||"touchstart"!==e.type||(D=t(e.target).closest(".page-content")[0]))}function L(s){if(!Y)return;if(k={x:"touchmove"===s.type?s.targetTouches[0].pageX:s.pageX,y:"touchmove"===s.type?s.targetTouches[0].pageY:s.pageY},void 0===T&&(T=!!(T||Math.abs(k.x-v.x)>Math.abs(k.y-v.y))),T)return Y=!1,void(z=!1);S=v.y-k.y;const t=S<0?"to-bottom":"to-top";if(!z){if(D&&!u.hasClass("modal-in-swipe-step")&&(I=D.scrollTop,K=D.scrollHeight,X=D.offsetHeight,!(K===X||"to-bottom"===t&&0===I||"to-top"===t&&I===K-X)))return u.transform(""),Y=!1,void(z=!1);r.push&&y&&(N=e.$el.children(".view, .views")),O=u[0].offsetHeight,M=h(u[0],"y"),$?(H=r.params.swipeToClose?-O:-P,B=0):(H=0,B=r.params.swipeToClose?O:P),z=!0}if(x=M-S,x=Math.min(Math.max(x,H),B),s.preventDefault(),r.push&&y){let e=(x-M)/O;r.params.swipeToStep&&(e=$?x/P:1-(P-x)/P),e=Math.abs(e),e=Math.min(Math.max(e,0),1);const s=1-e,t=1-(1-b(y))*s;N.transition(0).forEach((e=>{e.style.setProperty("transform",`translate3d(0,0,0) scale(${t})`,"important")})),r.params.swipeToStep&&N.css("border-radius",q*s+"px")}if(u.transition(0).transform(`translate3d(0,${x}px,0)`),r.params.swipeToStep){let e;e=$?1-x/P:(P-x)/P,e=Math.min(Math.max(e,0),1),u.trigger("sheet:stepprogress",e),r.emit("local::stepProgress sheetStepProgress",r,e)}}function V(){if(Y=!1,!z)return;z=!1,u.transform("").transition(""),r.push&&y&&(N.transition("").transform(""),N.css("border-radius",""));const e=S<0?"to-bottom":"to-top",s=Math.abs(S);if(0===s||x===M)return;const t=(new Date).getTime()-E;if(!r.params.swipeToStep){if(e!==($?"to-top":"to-bottom"))return;return void((t<300&&s>20||t>=300&&s>O/2)&&r.close())}const o=$?"to-bottom":"to-top",a=$?"to-top":"to-bottom",p=Math.abs(x),l=Math.abs(P);if(t<300&&s>10)return e===o&&p<l&&(u.removeClass("modal-in-swipe-step"),u.trigger("sheet:stepprogress",1),r.emit("local::stepProgress sheetStepProgress",r,1),u.trigger("sheet:stepopen"),r.emit("local::stepOpen sheetStepOpen",r),r.push&&y&&(r.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",b(y)),N.css("border-radius",""))),e===a&&p>l&&(r.params.swipeToClose?r.close():(u.addClass("modal-in-swipe-step"),u.trigger("sheet:stepprogress",0),r.emit("local::stepProgress sheetStepProgress",r,0),u.trigger("sheet:stepclose"),r.emit("local::stepClose sheetStepClose",r),r.push&&y&&(r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),N.css("border-radius","0px")))),void(e===a&&p<=l&&(u.addClass("modal-in-swipe-step"),u.trigger("sheet:stepprogress",0),r.emit("local::stepProgress sheetStepProgress",r,0),u.trigger("sheet:stepclose"),r.emit("local::stepClose sheetStepClose",r),r.push&&y&&(r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),N.css("border-radius","0px"))));if(t>=300){const e=!u.hasClass("modal-in-swipe-step");e?e&&(p>l+(O-l)/2?r.params.swipeToClose&&r.close():p>l/2&&(u.addClass("modal-in-swipe-step"),u.trigger("sheet:stepprogress",0),r.emit("local::stepProgress sheetStepProgress",r,0),u.trigger("sheet:stepclose"),r.emit("local::stepClose sheetStepClose",r),r.push&&y&&(r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),N.css("border-radius","0px")))):p<l/2?(u.removeClass("modal-in-swipe-step"),u.trigger("sheet:stepprogress",1),r.emit("local::stepProgress sheetStepProgress",r,1),u.trigger("sheet:stepopen"),r.emit("local::stepOpen sheetStepOpen",r),r.push&&y&&(r.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",b(y)),N.css("border-radius",""))):p-l>(O-l)/2&&r.params.swipeToClose&&r.close()}}function F(){r.setSwipeStep(!0)}r.setSwipeStep=function(e=!0){const s=u.find(".sheet-modal-swipe-step").eq(0);s.length&&(P=u.hasClass("sheet-modal-top")?-(s.offset().top-u.offset().top+s[0].offsetHeight):u[0].offsetHeight-(s.offset().top-u.offset().top+s[0].offsetHeight),u[0].style.setProperty("--f7-sheet-swipe-step",`${P}px`),e||u.addClass("modal-in-swipe-step"))};const W=!!d.passiveListener&&{passive:!0};return(r.params.swipeToClose||r.params.swipeToStep)&&(u.on(e.touchEvents.start,A,W),e.on("touchmove",L),e.on("touchend:passive",V),r.once("sheetDestroy",(()=>{u.off(e.touchEvents.start,A,W),e.off("touchmove",L),e.off("touchend:passive",V)}))),r.on("open",(()=>{r.params.closeOnEscape&&t(c).on("keydown",C),u.prevAll(".popup.modal-in").addClass("popup-behind"),r.params.swipeToStep&&(r.setSwipeStep(!1),e.on("resize",F)),r.params.scrollToEl&&function(){const e=t(r.params.scrollToEl).eq(0);if(0===e.length)return;if(f=e.parents(".page-content"),0===f.length)return;const s=parseInt(f.css("padding-top"),10),o=parseInt(f.css("padding-bottom"),10),a=f[0].offsetHeight-s-u.height(),p=f[0].scrollHeight-s-u.height(),l=f.scrollTop();let i;const n=e.offset().top-s+e[0].offsetHeight;if(n>a){const e=l+n-a;e+a>p&&(i=e+a-p+o,a===p&&(i=u.height()),f.css({"padding-bottom":`${i}px`})),f.scrollTop(e,300)}}(),r.push&&(y=parseInt(u.css("--f7-sheet-push-offset"),10),Number.isNaN(y)&&(y=0),y&&(u.addClass("sheet-modal-push"),r.$htmlEl.addClass("with-modal-sheet-push"),r.params.swipeToStep?(N=e.$el.children(".view, .views"),q=parseFloat(u.css(`border-${$?"bottom":"top"}-left-radius`)),N.css("border-radius","0px")):r.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",b(y))))})),r.on("opened",(()=>{(r.params.closeByOutsideClick||r.params.closeByBackdropClick)&&e.on("click",w)})),r.on("close",(()=>{r.params.swipeToStep&&(u.removeClass("modal-in-swipe-step"),e.off("resize",F)),r.params.closeOnEscape&&t(c).off("keydown",C),r.params.scrollToEl&&f&&f.length>0&&f.css({"padding-bottom":""}),(r.params.closeByOutsideClick||r.params.closeByBackdropClick)&&e.off("click",w),u.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),r.push&&y&&(r.$htmlEl.removeClass("with-modal-sheet-push"),r.$htmlEl.addClass("with-modal-sheet-push-closing"))})),r.on("closed",(()=>{r.push&&y&&(r.$htmlEl.removeClass("with-modal-sheet-push-closing"),r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"))})),r.stepOpen=function(){u.removeClass("modal-in-swipe-step"),r.push&&(y||(y=parseInt(u.css("--f7-sheet-push-offset"),10),Number.isNaN(y)&&(y=0)),y&&r.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",b(y)))},r.stepClose=function(){u.addClass("modal-in-swipe-step"),r.push&&r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale")},r.stepToggle=function(){u.toggleClass("modal-in-swipe-step")},u[0].f7Modal=r,r}}var d={name:"sheet",params:{sheet:{push:!1,backdrop:void 0,backdropEl:void 0,closeByBackdropClick:!0,closeByOutsideClick:!1,closeOnEscape:!1,swipeToClose:!1,swipeToStep:!1,swipeHandler:null,containerEl:null}},static:{Sheet:c},create(){const e=this;e.sheet=i({},l({app:e,constructor:c,defaultSelector:".sheet-modal.modal-in"}),{stepOpen(s){const t=e.sheet.get(s);if(t&&t.stepOpen)return t.stepOpen()},stepClose(s){const t=e.sheet.get(s);if(t&&t.stepClose)return t.stepClose()},stepToggle(s){const t=e.sheet.get(s);if(t&&t.stepToggle)return t.stepToggle()}})},clicks:{".sheet-open":function(e,s={}){const o=this;t(".sheet-modal.modal-in").length>0&&s.sheet&&t(s.sheet)[0]!==t(".sheet-modal.modal-in")[0]&&o.sheet.close(".sheet-modal.modal-in"),o.sheet.open(s.sheet,s.animate,e)},".sheet-close":function(e,s={}){this.sheet.close(s.sheet,s.animate,e)}}};if(s){if(e.prototype.modules&&e.prototype.modules[d.name])return;e.use(d),e.instance&&(e.instance.useModuleParams(d,e.instance.params),e.instance.useModule(d))}return d}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))