framework7 6.3.16 → 7.0.0-beta.12

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 (846) hide show
  1. package/components/accordion/accordion.js +132 -1
  2. package/components/accordion/accordion.lazy.js +1 -0
  3. package/components/actions/actions-class.js +370 -0
  4. package/components/actions/actions-rtl.css +1 -1
  5. package/components/actions/actions.css +1 -1
  6. package/components/actions/actions.d.ts +2 -0
  7. package/components/actions/actions.js +43 -1
  8. package/components/actions/actions.lazy.js +1 -0
  9. package/components/actions/actions.less +3 -0
  10. package/components/app/app-class.d.ts +10 -10
  11. package/{esm/components → components}/app/app-class.js +119 -152
  12. package/components/app/app.less +3 -3
  13. package/{esm/components → components}/app/load-module.js +34 -34
  14. package/components/appbar/appbar.js +3 -1
  15. package/components/appbar/appbar.lazy.js +1 -0
  16. package/components/area-chart/area-chart-class.js +507 -0
  17. package/components/area-chart/area-chart-rtl.css +1 -1
  18. package/components/area-chart/area-chart.css +1 -1
  19. package/components/area-chart/area-chart.js +47 -1
  20. package/components/area-chart/area-chart.lazy.js +1 -0
  21. package/{esm/components → components}/autocomplete/autocomplete-class.js +246 -258
  22. package/components/autocomplete/autocomplete-rtl.css +1 -1
  23. package/components/autocomplete/autocomplete.css +1 -1
  24. package/components/autocomplete/autocomplete.js +86 -1
  25. package/components/autocomplete/autocomplete.lazy.js +1 -0
  26. package/{esm/components → components}/badge/badge.js +0 -0
  27. package/{esm/components → components}/block/block.js +0 -0
  28. package/components/breadcrumbs/breadcrumbs-aurora.less +2 -0
  29. package/components/breadcrumbs/breadcrumbs-ios.less +2 -0
  30. package/components/breadcrumbs/breadcrumbs-md.less +2 -0
  31. package/components/breadcrumbs/breadcrumbs-rtl.css +1 -0
  32. package/components/breadcrumbs/breadcrumbs-vars.less +36 -0
  33. package/components/breadcrumbs/breadcrumbs.css +1 -0
  34. package/components/breadcrumbs/breadcrumbs.d.ts +15 -0
  35. package/components/breadcrumbs/breadcrumbs.js +13 -0
  36. package/components/breadcrumbs/breadcrumbs.lazy.js +1 -0
  37. package/components/breadcrumbs/breadcrumbs.less +100 -0
  38. package/{esm/components → components}/button/button.js +0 -0
  39. package/{esm/components → components}/calendar/calendar-class.js +828 -728
  40. package/components/calendar/calendar-rtl.css +1 -1
  41. package/components/calendar/calendar-vars.less +6 -10
  42. package/components/calendar/calendar.css +1 -1
  43. package/components/calendar/calendar.d.ts +2 -0
  44. package/components/calendar/calendar.js +112 -1
  45. package/components/calendar/calendar.lazy.js +1 -0
  46. package/components/calendar/calendar.less +20 -16
  47. package/components/card/card-rtl.css +1 -1
  48. package/components/card/card.css +1 -1
  49. package/components/card/card.js +592 -1
  50. package/components/card/card.lazy.js +1 -0
  51. package/components/checkbox/checkbox-rtl.css +1 -1
  52. package/components/checkbox/checkbox.css +1 -1
  53. package/components/checkbox/checkbox.js +3 -1
  54. package/components/checkbox/checkbox.lazy.js +1 -0
  55. package/components/chip/chip-rtl.css +1 -1
  56. package/components/chip/chip.css +1 -1
  57. package/components/chip/chip.js +3 -1
  58. package/components/chip/chip.lazy.js +1 -0
  59. package/{esm/components → components}/color-picker/color-picker-class.js +354 -367
  60. package/components/color-picker/color-picker-rtl.css +1 -1
  61. package/components/color-picker/color-picker.css +1 -1
  62. package/components/color-picker/color-picker.js +92 -1
  63. package/components/color-picker/color-picker.lazy.js +1 -0
  64. package/{esm/components → components}/color-picker/modules/alpha-slider.js +31 -20
  65. package/{esm/components → components}/color-picker/modules/brightness-slider.js +37 -26
  66. package/{esm/components → components}/color-picker/modules/current-color.js +5 -3
  67. package/{esm/components → components}/color-picker/modules/hex.js +28 -17
  68. package/{esm/components → components}/color-picker/modules/hs-spectrum.js +41 -29
  69. package/{esm/components → components}/color-picker/modules/hsb-sliders.js +57 -44
  70. package/{esm/components → components}/color-picker/modules/hue-slider.js +30 -19
  71. package/{esm/components → components}/color-picker/modules/initial-current-colors.js +15 -10
  72. package/{esm/components → components}/color-picker/modules/palette.js +16 -13
  73. package/{esm/components → components}/color-picker/modules/rgb-bars.js +44 -31
  74. package/{esm/components → components}/color-picker/modules/rgb-sliders.js +49 -36
  75. package/{esm/components → components}/color-picker/modules/sb-spectrum.js +41 -29
  76. package/{esm/components → components}/color-picker/modules/wheel.js +62 -50
  77. package/components/contacts-list/contacts-list-rtl.css +1 -1
  78. package/components/contacts-list/contacts-list.css +1 -1
  79. package/components/contacts-list/contacts-list.js +3 -1
  80. package/components/contacts-list/contacts-list.lazy.js +1 -0
  81. package/{esm/components → components}/data-table/data-table-class.js +43 -62
  82. package/components/data-table/data-table-rtl.css +1 -1
  83. package/components/data-table/data-table.css +1 -1
  84. package/components/data-table/data-table.js +72 -1
  85. package/components/data-table/data-table.lazy.js +1 -0
  86. package/{esm/components → components}/dialog/dialog-class.js +63 -72
  87. package/components/dialog/dialog-rtl.css +1 -1
  88. package/components/dialog/dialog.css +1 -1
  89. package/components/dialog/dialog.js +254 -1
  90. package/components/dialog/dialog.lazy.js +1 -0
  91. package/components/elevation/elevation.js +3 -1
  92. package/components/elevation/elevation.lazy.js +1 -0
  93. package/components/fab/fab.js +181 -1
  94. package/components/fab/fab.lazy.js +1 -0
  95. package/components/form/form.js +347 -1
  96. package/components/form/form.lazy.js +1 -0
  97. package/components/gauge/gauge-class.js +306 -0
  98. package/components/gauge/gauge.js +99 -1
  99. package/components/gauge/gauge.lazy.js +1 -0
  100. package/components/grid/grid-rtl.css +1 -1
  101. package/components/grid/grid.css +1 -1
  102. package/components/grid/grid.js +227 -1
  103. package/components/grid/grid.lazy.js +1 -0
  104. package/{esm/components → components}/icon/icon.js +0 -0
  105. package/components/infinite-scroll/infinite-scroll.js +110 -1
  106. package/components/infinite-scroll/infinite-scroll.lazy.js +1 -0
  107. package/components/input/input-rtl.css +1 -1
  108. package/components/input/input.css +1 -1
  109. package/components/input/input.js +394 -1
  110. package/components/input/input.lazy.js +1 -0
  111. package/components/input/input.less +1 -1
  112. package/components/lazy/lazy.js +283 -1
  113. package/components/lazy/lazy.lazy.js +1 -0
  114. package/{esm/components → components}/link/link.js +0 -0
  115. package/{esm/components → components}/list/list.js +0 -0
  116. package/{esm/components → components}/list-index/list-index-class.js +118 -126
  117. package/components/list-index/list-index-rtl.css +1 -1
  118. package/components/list-index/list-index.css +1 -1
  119. package/components/list-index/list-index.js +73 -1
  120. package/components/list-index/list-index.lazy.js +1 -0
  121. package/components/login-screen/login-screen-class.js +43 -0
  122. package/components/login-screen/login-screen-rtl.css +1 -1
  123. package/components/login-screen/login-screen.css +1 -1
  124. package/components/login-screen/login-screen.js +28 -1
  125. package/components/login-screen/login-screen.lazy.js +1 -0
  126. package/components/login-screen/login-screen.less +1 -1
  127. package/components/menu/menu.js +79 -1
  128. package/components/menu/menu.lazy.js +1 -0
  129. package/{esm/components → components}/messagebar/messagebar-class.js +128 -156
  130. package/components/messagebar/messagebar-rtl.css +1 -1
  131. package/components/messagebar/messagebar.css +1 -1
  132. package/components/messagebar/messagebar.js +74 -1
  133. package/components/messagebar/messagebar.lazy.js +1 -0
  134. package/{esm/components → components}/messages/messages-class.js +166 -246
  135. package/components/messages/messages-rtl.css +1 -1
  136. package/components/messages/messages.css +1 -1
  137. package/components/messages/messages.js +73 -1
  138. package/components/messages/messages.lazy.js +1 -0
  139. package/components/modal/custom-modal-class.js +76 -0
  140. package/{esm/components → components}/modal/modal-class.js +81 -86
  141. package/components/modal/modal.js +25 -0
  142. package/{esm/components → components}/navbar/navbar.js +169 -174
  143. package/components/notification/notification-aurora.less +1 -1
  144. package/{esm/components → components}/notification/notification-class.js +69 -82
  145. package/components/notification/notification-ios.less +1 -1
  146. package/components/notification/notification-rtl.css +1 -1
  147. package/components/notification/notification.css +1 -1
  148. package/components/notification/notification.js +35 -1
  149. package/components/notification/notification.lazy.js +1 -0
  150. package/components/page/page-vars.less +1 -1
  151. package/{esm/components → components}/page/page.js +0 -0
  152. package/{esm/components → components}/panel/panel-class.js +189 -220
  153. package/components/panel/panel-rtl.css +1 -1
  154. package/components/panel/panel.css +1 -1
  155. package/components/panel/panel.js +190 -1
  156. package/components/panel/panel.lazy.js +1 -0
  157. package/{esm/components → components}/panel/resizable-panel.js +33 -31
  158. package/{esm/components → components}/panel/swipe-panel.js +48 -46
  159. package/{esm/components → components}/photo-browser/photo-browser-class.js +210 -238
  160. package/components/photo-browser/photo-browser.js +73 -1
  161. package/components/photo-browser/photo-browser.lazy.js +1 -0
  162. package/{esm/components → components}/picker/picker-class.js +244 -244
  163. package/components/picker/picker-column.js +141 -0
  164. package/components/picker/picker-rtl.css +1 -1
  165. package/components/picker/picker.css +1 -1
  166. package/components/picker/picker.d.ts +2 -13
  167. package/components/picker/picker.js +59 -1
  168. package/components/picker/picker.lazy.js +1 -0
  169. package/components/picker/picker.less +28 -10
  170. package/components/pie-chart/pie-chart-class.js +264 -0
  171. package/components/pie-chart/pie-chart.js +35 -1
  172. package/components/pie-chart/pie-chart.lazy.js +1 -0
  173. package/{esm/components → components}/popover/popover-class.js +92 -104
  174. package/components/popover/popover-rtl.css +1 -1
  175. package/components/popover/popover.css +1 -1
  176. package/components/popover/popover.d.ts +2 -0
  177. package/components/popover/popover.js +77 -1
  178. package/components/popover/popover.lazy.js +1 -0
  179. package/components/popover/popover.less +3 -0
  180. package/{esm/components → components}/popup/popup-class.js +78 -88
  181. package/components/popup/popup-rtl.css +1 -1
  182. package/components/popup/popup.css +1 -1
  183. package/components/popup/popup.d.ts +2 -0
  184. package/components/popup/popup.js +42 -1
  185. package/components/popup/popup.lazy.js +1 -0
  186. package/components/popup/popup.less +24 -21
  187. package/components/preloader/preloader.js +115 -1
  188. package/components/preloader/preloader.lazy.js +1 -0
  189. package/components/progressbar/progressbar-rtl.css +1 -1
  190. package/components/progressbar/progressbar.css +1 -1
  191. package/components/progressbar/progressbar.js +166 -1
  192. package/components/progressbar/progressbar.lazy.js +1 -0
  193. package/{esm/components → components}/pull-to-refresh/pull-to-refresh-class.js +107 -124
  194. package/components/pull-to-refresh/pull-to-refresh.js +70 -1
  195. package/components/pull-to-refresh/pull-to-refresh.lazy.js +1 -0
  196. package/components/radio/radio-rtl.css +1 -1
  197. package/components/radio/radio.css +1 -1
  198. package/components/radio/radio.js +3 -1
  199. package/components/radio/radio.lazy.js +1 -0
  200. package/{esm/components → components}/range/range-class.js +196 -197
  201. package/components/range/range-rtl.css +1 -1
  202. package/components/range/range.css +1 -1
  203. package/components/range/range.js +79 -1
  204. package/components/range/range.lazy.js +1 -0
  205. package/components/searchbar/remove-diacritics.js +275 -0
  206. package/{esm/components → components}/searchbar/searchbar-class.js +135 -152
  207. package/components/searchbar/searchbar-rtl.css +1 -1
  208. package/components/searchbar/searchbar.css +1 -1
  209. package/components/searchbar/searchbar.js +121 -1
  210. package/components/searchbar/searchbar.lazy.js +1 -0
  211. package/components/searchbar/searchbar.less +1 -1
  212. package/{esm/components → components}/sheet/sheet-class.js +99 -113
  213. package/components/sheet/sheet-rtl.css +1 -1
  214. package/components/sheet/sheet.css +1 -1
  215. package/components/sheet/sheet.d.ts +2 -0
  216. package/components/sheet/sheet.js +69 -1
  217. package/components/sheet/sheet.lazy.js +1 -0
  218. package/components/sheet/sheet.less +19 -16
  219. package/components/skeleton/skeleton-rtl.css +1 -1
  220. package/components/skeleton/skeleton-vars.less +1 -1
  221. package/components/skeleton/skeleton.css +1 -1
  222. package/components/skeleton/skeleton.js +3 -1
  223. package/components/skeleton/skeleton.lazy.js +1 -0
  224. package/components/skeleton/skeleton.less +1 -1
  225. package/{esm/components → components}/smart-select/smart-select-class.js +288 -300
  226. package/components/smart-select/smart-select.js +149 -1
  227. package/components/smart-select/smart-select.lazy.js +1 -0
  228. package/components/sortable/sortable-rtl.css +1 -1
  229. package/components/sortable/sortable.css +1 -1
  230. package/components/sortable/sortable.js +306 -1
  231. package/components/sortable/sortable.lazy.js +1 -0
  232. package/components/statusbar/statusbar.d.ts +9 -9
  233. package/{esm/components → components}/statusbar/statusbar.js +51 -44
  234. package/{esm/components → components}/stepper/stepper-class.js +108 -119
  235. package/components/stepper/stepper-rtl.css +1 -1
  236. package/components/stepper/stepper.css +1 -1
  237. package/components/stepper/stepper.js +86 -1
  238. package/components/stepper/stepper.lazy.js +1 -0
  239. package/{esm/components → components}/subnavbar/subnavbar.js +4 -3
  240. package/components/swipeout/swipeout-rtl.css +1 -1
  241. package/components/swipeout/swipeout.css +1 -1
  242. package/components/swipeout/swipeout.js +597 -1
  243. package/components/swipeout/swipeout.lazy.js +1 -0
  244. package/components/swiper/swiper-rtl.css +1 -1
  245. package/components/swiper/swiper.css +1 -1
  246. package/components/swiper/swiper.js +191 -1
  247. package/components/swiper/swiper.lazy.js +1 -0
  248. package/components/swiper/swiper.less +1 -1
  249. package/components/tabs/tabs.js +271 -1
  250. package/components/tabs/tabs.lazy.js +1 -0
  251. package/{esm/components → components}/text-editor/text-editor-class.js +174 -186
  252. package/components/text-editor/text-editor-rtl.css +1 -1
  253. package/components/text-editor/text-editor.css +1 -1
  254. package/components/text-editor/text-editor.js +89 -1
  255. package/components/text-editor/text-editor.lazy.js +1 -0
  256. package/components/timeline/timeline-rtl.css +1 -1
  257. package/components/timeline/timeline.css +1 -1
  258. package/components/timeline/timeline.js +3 -1
  259. package/components/timeline/timeline.lazy.js +1 -0
  260. package/components/toast/toast-class.js +119 -0
  261. package/components/toast/toast.js +43 -1
  262. package/components/toast/toast.lazy.js +1 -0
  263. package/{esm/components → components}/toggle/toggle-class.js +51 -68
  264. package/components/toggle/toggle-rtl.css +1 -1
  265. package/components/toggle/toggle.css +1 -1
  266. package/components/toggle/toggle.js +65 -1
  267. package/components/toggle/toggle.lazy.js +1 -0
  268. package/{esm/components → components}/toolbar/toolbar.js +65 -61
  269. package/{esm/components → components}/tooltip/tooltip-class.js +100 -111
  270. package/components/tooltip/tooltip.js +144 -1
  271. package/components/tooltip/tooltip.lazy.js +1 -0
  272. package/components/touch-ripple/touch-ripple-class.js +98 -0
  273. package/components/touch-ripple/touch-ripple-vars.less +1 -1
  274. package/components/touch-ripple/touch-ripple.js +18 -0
  275. package/components/treeview/treeview-rtl.css +1 -1
  276. package/components/treeview/treeview.css +1 -1
  277. package/components/treeview/treeview.js +83 -1
  278. package/components/treeview/treeview.lazy.js +1 -0
  279. package/components/typography/typography.js +3 -1
  280. package/components/typography/typography.lazy.js +1 -0
  281. package/{esm/components → components}/view/resizable-view.js +26 -24
  282. package/{esm/components → components}/view/view-class.js +54 -73
  283. package/components/view/view.d.ts +3 -1
  284. package/{esm/components → components}/view/view.js +41 -31
  285. package/{esm/components → components}/virtual-list/virtual-list-class.js +158 -175
  286. package/components/virtual-list/virtual-list.js +19 -1
  287. package/components/virtual-list/virtual-list.lazy.js +1 -0
  288. package/framework7-bundle-rtl.css +544 -1021
  289. package/framework7-bundle-rtl.min.css +3 -3
  290. package/framework7-bundle.css +544 -1021
  291. package/framework7-bundle.esm.js +99 -0
  292. package/framework7-bundle.js +34567 -35041
  293. package/framework7-bundle.js.map +1 -1
  294. package/framework7-bundle.less +3 -2
  295. package/framework7-bundle.min.css +3 -3
  296. package/framework7-bundle.min.js +3 -3
  297. package/framework7-bundle.min.js.map +1 -1
  298. package/framework7-lite-bundle.esm.js +92 -0
  299. package/framework7-lite.esm.js +39 -0
  300. package/framework7-rtl.css +52 -56
  301. package/framework7-rtl.min.css +3 -3
  302. package/{types/types.d.ts → framework7-types.d.ts} +5 -1
  303. package/framework7.css +52 -56
  304. package/framework7.d.ts +85 -81
  305. package/framework7.esm.js +43 -0
  306. package/framework7.js +3395 -4063
  307. package/framework7.js.map +1 -1
  308. package/framework7.less +2 -2
  309. package/framework7.min.css +3 -3
  310. package/framework7.min.js +3 -3
  311. package/framework7.min.js.map +1 -1
  312. package/less/mixins.less +2 -2
  313. package/{esm/modules → modules}/clicks/clicks.js +19 -18
  314. package/modules/component/$h.js +14 -0
  315. package/modules/component/$jsx.js +18 -0
  316. package/modules/component/component-class.js +382 -0
  317. package/modules/component/component.js +50 -0
  318. package/{esm/modules → modules}/component/custom-components.js +0 -0
  319. package/{esm/modules → modules}/component/eventslisteners.js +15 -19
  320. package/modules/component/parse-component.js +80 -0
  321. package/modules/component/patch.js +8 -0
  322. package/{esm/modules → modules}/component/snabbdom/h.js +1 -1
  323. package/{esm/modules → modules}/component/snabbdom/helpers/attachto.js +0 -0
  324. package/{esm/modules → modules}/component/snabbdom/hooks.js +0 -0
  325. package/{esm/modules → modules}/component/snabbdom/htmldomapi.js +0 -0
  326. package/{esm/modules → modules}/component/snabbdom/is.js +0 -0
  327. package/{esm/modules → modules}/component/snabbdom/modules/attributes.js +0 -0
  328. package/{esm/modules → modules}/component/snabbdom/modules/class.js +0 -0
  329. package/{esm/modules → modules}/component/snabbdom/modules/dataset.js +0 -0
  330. package/{esm/modules → modules}/component/snabbdom/modules/eventlisteners.js +0 -0
  331. package/{esm/modules → modules}/component/snabbdom/modules/hero.js +1 -1
  332. package/{esm/modules → modules}/component/snabbdom/modules/module.js +0 -0
  333. package/{esm/modules → modules}/component/snabbdom/modules/props.js +0 -0
  334. package/{esm/modules → modules}/component/snabbdom/modules/style.js +1 -1
  335. package/modules/component/snabbdom/snabbdom.bundle.js +19 -0
  336. package/{esm/modules → modules}/component/snabbdom/snabbdom.js +9 -21
  337. package/{esm/modules → modules}/component/snabbdom/thunk.js +1 -1
  338. package/{esm/modules → modules}/component/snabbdom/tovnode.js +2 -2
  339. package/{esm/modules → modules}/component/snabbdom/vnode.js +0 -0
  340. package/{esm/modules → modules}/component/vdom.js +110 -134
  341. package/{esm/modules → modules}/demo-module.js +15 -7
  342. package/{esm/modules → modules}/device/device.js +14 -13
  343. package/{esm/modules → modules}/history/history.js +3 -2
  344. package/{esm/modules → modules}/request/request.js +3 -3
  345. package/modules/resize/resize.js +65 -0
  346. package/{esm/modules → modules}/router/app-router-check.js +1 -1
  347. package/{esm/modules → modules}/router/async-component.js +3 -3
  348. package/{esm/modules → modules}/router/back.js +125 -125
  349. package/{esm/modules → modules}/router/clear-previous-history.js +10 -10
  350. package/modules/router/component-loader.js +174 -0
  351. package/{esm/modules → modules}/router/modal.js +53 -53
  352. package/{esm/modules → modules}/router/navigate.js +147 -228
  353. package/{esm/modules → modules}/router/process-route-queue.js +20 -17
  354. package/{esm/modules → modules}/router/redirect.js +8 -12
  355. package/{esm/modules → modules}/router/router-class.js +423 -444
  356. package/{esm/modules → modules}/router/router.js +6 -4
  357. package/{esm/modules → modules}/router/swipe-back.js +148 -182
  358. package/{esm/modules → modules}/router/tab.js +52 -52
  359. package/{esm/modules → modules}/service-worker/service-worker.js +42 -38
  360. package/modules/store/create-store.js +149 -0
  361. package/modules/store/store.js +11 -0
  362. package/modules/support/support.js +7 -0
  363. package/{esm/modules → modules}/touch/touch.js +75 -74
  364. package/modules/utils/utils.js +10 -0
  365. package/package.json +256 -11
  366. package/shared/$jsx.js +22 -0
  367. package/shared/class.js +143 -0
  368. package/shared/constructor-methods.js +42 -0
  369. package/{esm/shared → shared}/dom7.js +2 -1
  370. package/shared/events-class.js +100 -0
  371. package/{types/shared → shared}/get-device.d.ts +0 -2
  372. package/{esm/shared → shared}/get-device.js +34 -40
  373. package/{types/shared → shared}/get-support.d.ts +0 -0
  374. package/{esm/shared → shared}/get-support.js +7 -6
  375. package/{esm/shared → shared}/history.js +63 -49
  376. package/shared/modal-methods.js +90 -0
  377. package/{types/shared → shared}/request.d.ts +0 -0
  378. package/shared/request.js +474 -0
  379. package/{types/shared → shared}/utils.d.ts +0 -0
  380. package/{esm/shared → shared}/utils.js +125 -162
  381. package/bundle/package.json +0 -8
  382. package/cjs/components/accordion/accordion.js +0 -136
  383. package/cjs/components/actions/actions-class.js +0 -383
  384. package/cjs/components/actions/actions.js +0 -58
  385. package/cjs/components/app/app-class.js +0 -378
  386. package/cjs/components/app/load-module.js +0 -155
  387. package/cjs/components/appbar/appbar.js +0 -8
  388. package/cjs/components/area-chart/area-chart-class.js +0 -526
  389. package/cjs/components/area-chart/area-chart.js +0 -56
  390. package/cjs/components/autocomplete/autocomplete-class.js +0 -975
  391. package/cjs/components/autocomplete/autocomplete.js +0 -93
  392. package/cjs/components/badge/badge.js +0 -8
  393. package/cjs/components/block/block.js +0 -8
  394. package/cjs/components/button/button.js +0 -8
  395. package/cjs/components/calendar/calendar-class.js +0 -2095
  396. package/cjs/components/calendar/calendar.js +0 -124
  397. package/cjs/components/card/card.js +0 -625
  398. package/cjs/components/checkbox/checkbox.js +0 -8
  399. package/cjs/components/chip/chip.js +0 -8
  400. package/cjs/components/color-picker/color-picker-class.js +0 -1022
  401. package/cjs/components/color-picker/color-picker.js +0 -105
  402. package/cjs/components/color-picker/modules/alpha-slider.js +0 -101
  403. package/cjs/components/color-picker/modules/brightness-slider.js +0 -86
  404. package/cjs/components/color-picker/modules/current-color.js +0 -23
  405. package/cjs/components/color-picker/modules/hex.js +0 -81
  406. package/cjs/components/color-picker/modules/hs-spectrum.js +0 -137
  407. package/cjs/components/color-picker/modules/hsb-sliders.js +0 -206
  408. package/cjs/components/color-picker/modules/hue-slider.js +0 -78
  409. package/cjs/components/color-picker/modules/initial-current-colors.js +0 -54
  410. package/cjs/components/color-picker/modules/palette.js +0 -61
  411. package/cjs/components/color-picker/modules/rgb-bars.js +0 -196
  412. package/cjs/components/color-picker/modules/rgb-sliders.js +0 -198
  413. package/cjs/components/color-picker/modules/sb-spectrum.js +0 -137
  414. package/cjs/components/color-picker/modules/wheel.js +0 -198
  415. package/cjs/components/contacts-list/contacts-list.js +0 -8
  416. package/cjs/components/data-table/data-table-class.js +0 -188
  417. package/cjs/components/data-table/data-table.js +0 -75
  418. package/cjs/components/dialog/dialog-class.js +0 -250
  419. package/cjs/components/dialog/dialog.js +0 -297
  420. package/cjs/components/elevation/elevation.js +0 -8
  421. package/cjs/components/fab/fab.js +0 -195
  422. package/cjs/components/form/form.js +0 -341
  423. package/cjs/components/gauge/gauge-class.js +0 -332
  424. package/cjs/components/gauge/gauge.js +0 -103
  425. package/cjs/components/grid/grid.js +0 -233
  426. package/cjs/components/icon/icon.js +0 -8
  427. package/cjs/components/infinite-scroll/infinite-scroll.js +0 -111
  428. package/cjs/components/input/input.js +0 -396
  429. package/cjs/components/lazy/lazy.js +0 -283
  430. package/cjs/components/link/link.js +0 -8
  431. package/cjs/components/list/list.js +0 -8
  432. package/cjs/components/list-index/list-index-class.js +0 -405
  433. package/cjs/components/list-index/list-index.js +0 -77
  434. package/cjs/components/login-screen/login-screen-class.js +0 -68
  435. package/cjs/components/login-screen/login-screen.js +0 -44
  436. package/cjs/components/menu/menu.js +0 -92
  437. package/cjs/components/messagebar/messagebar-class.js +0 -446
  438. package/cjs/components/messagebar/messagebar.js +0 -78
  439. package/cjs/components/messages/messages-class.js +0 -633
  440. package/cjs/components/messages/messages.js +0 -76
  441. package/cjs/components/modal/custom-modal-class.js +0 -99
  442. package/cjs/components/modal/modal-class.js +0 -277
  443. package/cjs/components/modal/modal.js +0 -32
  444. package/cjs/components/navbar/navbar.js +0 -833
  445. package/cjs/components/notification/notification-class.js +0 -269
  446. package/cjs/components/notification/notification.js +0 -44
  447. package/cjs/components/page/page.js +0 -8
  448. package/cjs/components/panel/panel-class.js +0 -660
  449. package/cjs/components/panel/panel.js +0 -219
  450. package/cjs/components/panel/resizable-panel.js +0 -197
  451. package/cjs/components/panel/swipe-panel.js +0 -363
  452. package/cjs/components/photo-browser/photo-browser-class.js +0 -781
  453. package/cjs/components/photo-browser/photo-browser.js +0 -78
  454. package/cjs/components/picker/picker-class.js +0 -704
  455. package/cjs/components/picker/picker-column.js +0 -389
  456. package/cjs/components/picker/picker.js +0 -77
  457. package/cjs/components/pie-chart/pie-chart-class.js +0 -290
  458. package/cjs/components/pie-chart/pie-chart.js +0 -44
  459. package/cjs/components/popover/popover-class.js +0 -365
  460. package/cjs/components/popover/popover.js +0 -93
  461. package/cjs/components/popup/popup-class.js +0 -416
  462. package/cjs/components/popup/popup.js +0 -57
  463. package/cjs/components/preloader/preloader.js +0 -111
  464. package/cjs/components/progressbar/progressbar.js +0 -185
  465. package/cjs/components/pull-to-refresh/pull-to-refresh-class.js +0 -627
  466. package/cjs/components/pull-to-refresh/pull-to-refresh.js +0 -74
  467. package/cjs/components/radio/radio.js +0 -8
  468. package/cjs/components/range/range-class.js +0 -674
  469. package/cjs/components/range/range.js +0 -93
  470. package/cjs/components/searchbar/remove-diacritics.js +0 -283
  471. package/cjs/components/searchbar/searchbar-class.js +0 -739
  472. package/cjs/components/searchbar/searchbar.js +0 -141
  473. package/cjs/components/sheet/sheet-class.js +0 -593
  474. package/cjs/components/sheet/sheet.js +0 -83
  475. package/cjs/components/skeleton/skeleton.js +0 -8
  476. package/cjs/components/smart-select/smart-select-class.js +0 -1005
  477. package/cjs/components/smart-select/smart-select.js +0 -151
  478. package/cjs/components/sortable/sortable.js +0 -335
  479. package/cjs/components/statusbar/statusbar.js +0 -226
  480. package/cjs/components/stepper/stepper-class.js +0 -497
  481. package/cjs/components/stepper/stepper.js +0 -96
  482. package/cjs/components/subnavbar/subnavbar.js +0 -28
  483. package/cjs/components/swipeout/swipeout.js +0 -618
  484. package/cjs/components/swiper/swiper.js +0 -189
  485. package/cjs/components/tabs/tabs.js +0 -295
  486. package/cjs/components/text-editor/text-editor-class.js +0 -627
  487. package/cjs/components/text-editor/text-editor.js +0 -93
  488. package/cjs/components/timeline/timeline.js +0 -8
  489. package/cjs/components/toast/toast-class.js +0 -142
  490. package/cjs/components/toast/toast.js +0 -51
  491. package/cjs/components/toggle/toggle-class.js +0 -213
  492. package/cjs/components/toggle/toggle.js +0 -72
  493. package/cjs/components/toolbar/toolbar.js +0 -234
  494. package/cjs/components/tooltip/tooltip-class.js +0 -409
  495. package/cjs/components/tooltip/tooltip.js +0 -146
  496. package/cjs/components/touch-ripple/touch-ripple-class.js +0 -110
  497. package/cjs/components/touch-ripple/touch-ripple.js +0 -34
  498. package/cjs/components/treeview/treeview.js +0 -88
  499. package/cjs/components/typography/typography.js +0 -8
  500. package/cjs/components/view/resizable-view.js +0 -155
  501. package/cjs/components/view/view-class.js +0 -251
  502. package/cjs/components/view/view.js +0 -196
  503. package/cjs/components/virtual-list/virtual-list-class.js +0 -654
  504. package/cjs/components/virtual-list/virtual-list.js +0 -27
  505. package/cjs/framework7-bundle.js +0 -208
  506. package/cjs/framework7-lite-bundle.js +0 -191
  507. package/cjs/framework7-lite.js +0 -87
  508. package/cjs/framework7.js +0 -98
  509. package/cjs/modules/clicks/clicks.js +0 -115
  510. package/cjs/modules/component/$h.js +0 -31
  511. package/cjs/modules/component/$jsx.js +0 -31
  512. package/cjs/modules/component/component-class.js +0 -434
  513. package/cjs/modules/component/component.js +0 -58
  514. package/cjs/modules/component/custom-components.js +0 -6
  515. package/cjs/modules/component/eventslisteners.js +0 -90
  516. package/cjs/modules/component/parse-component.js +0 -80
  517. package/cjs/modules/component/patch.js +0 -21
  518. package/cjs/modules/component/snabbdom/h.js +0 -72
  519. package/cjs/modules/component/snabbdom/helpers/attachto.js +0 -62
  520. package/cjs/modules/component/snabbdom/hooks.js +0 -1
  521. package/cjs/modules/component/snabbdom/htmldomapi.js +0 -90
  522. package/cjs/modules/component/snabbdom/is.js +0 -11
  523. package/cjs/modules/component/snabbdom/modules/attributes.js +0 -61
  524. package/cjs/modules/component/snabbdom/modules/class.js +0 -38
  525. package/cjs/modules/component/snabbdom/modules/dataset.js +0 -47
  526. package/cjs/modules/component/snabbdom/modules/eventlisteners.js +0 -106
  527. package/cjs/modules/component/snabbdom/modules/hero.js +0 -193
  528. package/cjs/modules/component/snabbdom/modules/module.js +0 -1
  529. package/cjs/modules/component/snabbdom/modules/props.js +0 -40
  530. package/cjs/modules/component/snabbdom/modules/style.js +0 -116
  531. package/cjs/modules/component/snabbdom/snabbdom.bundle.js +0 -33
  532. package/cjs/modules/component/snabbdom/snabbdom.js +0 -374
  533. package/cjs/modules/component/snabbdom/thunk.js +0 -66
  534. package/cjs/modules/component/snabbdom/tovnode.js +0 -57
  535. package/cjs/modules/component/snabbdom/vnode.js +0 -20
  536. package/cjs/modules/component/vdom.js +0 -393
  537. package/cjs/modules/demo-module.js +0 -49
  538. package/cjs/modules/device/device.js +0 -56
  539. package/cjs/modules/history/history.js +0 -21
  540. package/cjs/modules/request/request.js +0 -20
  541. package/cjs/modules/resize/resize.js +0 -72
  542. package/cjs/modules/router/app-router-check.js +0 -10
  543. package/cjs/modules/router/async-component.js +0 -33
  544. package/cjs/modules/router/back.js +0 -908
  545. package/cjs/modules/router/clear-previous-history.js +0 -50
  546. package/cjs/modules/router/component-loader.js +0 -140
  547. package/cjs/modules/router/modal.js +0 -254
  548. package/cjs/modules/router/navigate.js +0 -1054
  549. package/cjs/modules/router/process-route-queue.js +0 -80
  550. package/cjs/modules/router/redirect.js +0 -52
  551. package/cjs/modules/router/router-class.js +0 -1500
  552. package/cjs/modules/router/router.js +0 -36
  553. package/cjs/modules/router/swipe-back.js +0 -735
  554. package/cjs/modules/router/tab.js +0 -264
  555. package/cjs/modules/service-worker/service-worker.js +0 -101
  556. package/cjs/modules/store/create-store.js +0 -169
  557. package/cjs/modules/store/store.js +0 -21
  558. package/cjs/modules/support/support.js +0 -14
  559. package/cjs/modules/touch/touch.js +0 -585
  560. package/cjs/modules/utils/utils.js +0 -21
  561. package/cjs/shared/$jsx.js +0 -39
  562. package/cjs/shared/class.js +0 -206
  563. package/cjs/shared/constructor-methods.js +0 -73
  564. package/cjs/shared/dom7.js +0 -17
  565. package/cjs/shared/events-class.js +0 -125
  566. package/cjs/shared/get-device.js +0 -157
  567. package/cjs/shared/get-support.js +0 -44
  568. package/cjs/shared/history.js +0 -185
  569. package/cjs/shared/modal-methods.js +0 -105
  570. package/cjs/shared/request.js +0 -552
  571. package/cjs/shared/utils.js +0 -472
  572. package/components/accordion/package.json +0 -9
  573. package/components/actions/package.json +0 -9
  574. package/components/app/package.json +0 -9
  575. package/components/appbar/package.json +0 -9
  576. package/components/area-chart/package.json +0 -9
  577. package/components/autocomplete/package.json +0 -9
  578. package/components/badge/package.json +0 -9
  579. package/components/block/package.json +0 -9
  580. package/components/button/package.json +0 -9
  581. package/components/calendar/package.json +0 -9
  582. package/components/card/package.json +0 -9
  583. package/components/checkbox/package.json +0 -9
  584. package/components/chip/package.json +0 -9
  585. package/components/color-picker/package.json +0 -9
  586. package/components/contacts-list/package.json +0 -9
  587. package/components/data-table/package.json +0 -9
  588. package/components/dialog/package.json +0 -9
  589. package/components/elevation/package.json +0 -9
  590. package/components/fab/package.json +0 -9
  591. package/components/form/package.json +0 -9
  592. package/components/gauge/package.json +0 -9
  593. package/components/grid/package.json +0 -9
  594. package/components/icon/package.json +0 -9
  595. package/components/infinite-scroll/package.json +0 -9
  596. package/components/input/package.json +0 -9
  597. package/components/lazy/package.json +0 -9
  598. package/components/link/package.json +0 -9
  599. package/components/list/package.json +0 -9
  600. package/components/list-index/package.json +0 -9
  601. package/components/login-screen/package.json +0 -9
  602. package/components/menu/package.json +0 -9
  603. package/components/messagebar/package.json +0 -9
  604. package/components/messages/package.json +0 -9
  605. package/components/modal/package.json +0 -9
  606. package/components/navbar/package.json +0 -9
  607. package/components/notification/package.json +0 -9
  608. package/components/page/package.json +0 -9
  609. package/components/panel/package.json +0 -9
  610. package/components/photo-browser/package.json +0 -9
  611. package/components/picker/package.json +0 -9
  612. package/components/pie-chart/package.json +0 -9
  613. package/components/popover/package.json +0 -9
  614. package/components/popup/package.json +0 -9
  615. package/components/preloader/package.json +0 -9
  616. package/components/progressbar/package.json +0 -9
  617. package/components/pull-to-refresh/package.json +0 -9
  618. package/components/radio/package.json +0 -9
  619. package/components/range/package.json +0 -9
  620. package/components/searchbar/package.json +0 -9
  621. package/components/sheet/package.json +0 -9
  622. package/components/skeleton/package.json +0 -9
  623. package/components/smart-select/package.json +0 -9
  624. package/components/sortable/package.json +0 -9
  625. package/components/statusbar/package.json +0 -9
  626. package/components/stepper/package.json +0 -9
  627. package/components/subnavbar/package.json +0 -9
  628. package/components/swipeout/package.json +0 -9
  629. package/components/swiper/package.json +0 -9
  630. package/components/tabs/package.json +0 -9
  631. package/components/text-editor/package.json +0 -9
  632. package/components/timeline/package.json +0 -9
  633. package/components/toast/package.json +0 -9
  634. package/components/toggle/package.json +0 -9
  635. package/components/toolbar/package.json +0 -9
  636. package/components/tooltip/package.json +0 -9
  637. package/components/touch-ripple/package.json +0 -9
  638. package/components/treeview/package.json +0 -9
  639. package/components/typography/package.json +0 -9
  640. package/components/view/package.json +0 -9
  641. package/components/virtual-list/package.json +0 -9
  642. package/core/package.json +0 -8
  643. package/esm/components/accordion/accordion.js +0 -126
  644. package/esm/components/actions/actions-class.js +0 -373
  645. package/esm/components/actions/actions.js +0 -48
  646. package/esm/components/appbar/appbar.js +0 -3
  647. package/esm/components/area-chart/area-chart-class.js +0 -517
  648. package/esm/components/area-chart/area-chart.js +0 -45
  649. package/esm/components/autocomplete/autocomplete.js +0 -82
  650. package/esm/components/calendar/calendar.js +0 -113
  651. package/esm/components/card/card.js +0 -612
  652. package/esm/components/checkbox/checkbox.js +0 -3
  653. package/esm/components/chip/chip.js +0 -3
  654. package/esm/components/color-picker/color-picker.js +0 -94
  655. package/esm/components/contacts-list/contacts-list.js +0 -3
  656. package/esm/components/data-table/data-table.js +0 -64
  657. package/esm/components/dialog/dialog.js +0 -286
  658. package/esm/components/elevation/elevation.js +0 -3
  659. package/esm/components/fab/fab.js +0 -185
  660. package/esm/components/form/form.js +0 -330
  661. package/esm/components/gauge/gauge-class.js +0 -323
  662. package/esm/components/gauge/gauge.js +0 -91
  663. package/esm/components/grid/grid.js +0 -223
  664. package/esm/components/infinite-scroll/infinite-scroll.js +0 -101
  665. package/esm/components/input/input.js +0 -384
  666. package/esm/components/lazy/lazy.js +0 -271
  667. package/esm/components/list-index/list-index.js +0 -65
  668. package/esm/components/login-screen/login-screen-class.js +0 -58
  669. package/esm/components/login-screen/login-screen.js +0 -34
  670. package/esm/components/menu/menu.js +0 -82
  671. package/esm/components/messagebar/messagebar.js +0 -66
  672. package/esm/components/messages/messages.js +0 -65
  673. package/esm/components/modal/custom-modal-class.js +0 -89
  674. package/esm/components/modal/modal.js +0 -22
  675. package/esm/components/notification/notification.js +0 -33
  676. package/esm/components/panel/panel.js +0 -208
  677. package/esm/components/photo-browser/photo-browser.js +0 -68
  678. package/esm/components/picker/picker-column.js +0 -379
  679. package/esm/components/picker/picker.js +0 -66
  680. package/esm/components/pie-chart/pie-chart-class.js +0 -281
  681. package/esm/components/pie-chart/pie-chart.js +0 -33
  682. package/esm/components/popover/popover.js +0 -81
  683. package/esm/components/popup/popup.js +0 -47
  684. package/esm/components/preloader/preloader.js +0 -101
  685. package/esm/components/progressbar/progressbar.js +0 -175
  686. package/esm/components/pull-to-refresh/pull-to-refresh.js +0 -62
  687. package/esm/components/radio/radio.js +0 -3
  688. package/esm/components/range/range.js +0 -81
  689. package/esm/components/searchbar/remove-diacritics.js +0 -277
  690. package/esm/components/searchbar/searchbar.js +0 -129
  691. package/esm/components/sheet/sheet.js +0 -71
  692. package/esm/components/skeleton/skeleton.js +0 -3
  693. package/esm/components/smart-select/smart-select.js +0 -139
  694. package/esm/components/sortable/sortable.js +0 -323
  695. package/esm/components/stepper/stepper.js +0 -84
  696. package/esm/components/swipeout/swipeout.js +0 -606
  697. package/esm/components/swiper/swiper.js +0 -177
  698. package/esm/components/tabs/tabs.js +0 -285
  699. package/esm/components/text-editor/text-editor.js +0 -81
  700. package/esm/components/timeline/timeline.js +0 -3
  701. package/esm/components/toast/toast-class.js +0 -132
  702. package/esm/components/toast/toast.js +0 -40
  703. package/esm/components/toggle/toggle.js +0 -61
  704. package/esm/components/tooltip/tooltip.js +0 -135
  705. package/esm/components/touch-ripple/touch-ripple-class.js +0 -103
  706. package/esm/components/touch-ripple/touch-ripple.js +0 -25
  707. package/esm/components/treeview/treeview.js +0 -78
  708. package/esm/components/typography/typography.js +0 -3
  709. package/esm/components/virtual-list/virtual-list.js +0 -17
  710. package/esm/framework7-bundle.js +0 -98
  711. package/esm/framework7-lite-bundle.js +0 -91
  712. package/esm/framework7-lite.js +0 -39
  713. package/esm/framework7.js +0 -43
  714. package/esm/modules/component/$h.js +0 -20
  715. package/esm/modules/component/$jsx.js +0 -24
  716. package/esm/modules/component/component-class.js +0 -421
  717. package/esm/modules/component/component.js +0 -44
  718. package/esm/modules/component/parse-component.js +0 -70
  719. package/esm/modules/component/patch.js +0 -8
  720. package/esm/modules/component/snabbdom/snabbdom.bundle.js +0 -19
  721. package/esm/modules/resize/resize.js +0 -64
  722. package/esm/modules/router/component-loader.js +0 -133
  723. package/esm/modules/store/create-store.js +0 -164
  724. package/esm/modules/store/store.js +0 -11
  725. package/esm/modules/support/support.js +0 -7
  726. package/esm/modules/utils/utils.js +0 -10
  727. package/esm/shared/$jsx.js +0 -33
  728. package/esm/shared/class.js +0 -197
  729. package/esm/shared/constructor-methods.js +0 -65
  730. package/esm/shared/events-class.js +0 -119
  731. package/esm/shared/modal-methods.js +0 -95
  732. package/esm/shared/request.js +0 -545
  733. package/lite/package.json +0 -8
  734. package/lite-bundle/package.json +0 -8
  735. package/modules/clicks/package.json +0 -9
  736. package/modules/component/package.json +0 -9
  737. package/modules/device/package.json +0 -9
  738. package/modules/history/package.json +0 -9
  739. package/modules/request/package.json +0 -9
  740. package/modules/resize/package.json +0 -9
  741. package/modules/router/package.json +0 -9
  742. package/modules/service-worker/package.json +0 -9
  743. package/modules/store/package.json +0 -9
  744. package/modules/support/package.json +0 -9
  745. package/modules/touch/package.json +0 -9
  746. package/modules/utils/package.json +0 -9
  747. package/types/components/accordion/accordion.d.ts +0 -55
  748. package/types/components/actions/actions.d.ts +0 -158
  749. package/types/components/app/app-class.d.ts +0 -196
  750. package/types/components/appbar/appbar.d.ts +0 -10
  751. package/types/components/area-chart/area-chart.d.ts +0 -124
  752. package/types/components/autocomplete/autocomplete.d.ts +0 -191
  753. package/types/components/badge/badge.d.ts +0 -10
  754. package/types/components/block/block.d.ts +0 -10
  755. package/types/components/button/button.d.ts +0 -10
  756. package/types/components/calendar/calendar.d.ts +0 -304
  757. package/types/components/card/card.d.ts +0 -65
  758. package/types/components/checkbox/checkbox.d.ts +0 -10
  759. package/types/components/chip/chip.d.ts +0 -10
  760. package/types/components/color-picker/color-picker.d.ts +0 -229
  761. package/types/components/contacts-list/contacts-list.d.ts +0 -10
  762. package/types/components/data-table/data-table.d.ts +0 -57
  763. package/types/components/dialog/dialog.d.ts +0 -241
  764. package/types/components/elevation/elevation.d.ts +0 -10
  765. package/types/components/fab/fab.d.ts +0 -28
  766. package/types/components/form/form.d.ts +0 -60
  767. package/types/components/gauge/gauge.d.ts +0 -96
  768. package/types/components/grid/grid.d.ts +0 -17
  769. package/types/components/icon/icon.d.ts +0 -10
  770. package/types/components/infinite-scroll/infinite-scroll.d.ts +0 -23
  771. package/types/components/input/input.d.ts +0 -56
  772. package/types/components/lazy/lazy.d.ts +0 -53
  773. package/types/components/link/link.d.ts +0 -10
  774. package/types/components/list/list.d.ts +0 -10
  775. package/types/components/list-index/list-index.d.ts +0 -99
  776. package/types/components/login-screen/login-screen.d.ts +0 -95
  777. package/types/components/menu/menu.d.ts +0 -28
  778. package/types/components/messagebar/messagebar.d.ts +0 -161
  779. package/types/components/messages/messages.d.ts +0 -158
  780. package/types/components/modal/modal.d.ts +0 -78
  781. package/types/components/navbar/navbar.d.ts +0 -75
  782. package/types/components/notification/notification.d.ts +0 -118
  783. package/types/components/page/page.d.ts +0 -10
  784. package/types/components/panel/panel.d.ts +0 -194
  785. package/types/components/photo-browser/photo-browser.d.ts +0 -194
  786. package/types/components/picker/picker.d.ts +0 -216
  787. package/types/components/pie-chart/pie-chart.d.ts +0 -95
  788. package/types/components/popover/popover.d.ts +0 -127
  789. package/types/components/popup/popup.d.ts +0 -137
  790. package/types/components/preloader/preloader.d.ts +0 -22
  791. package/types/components/progressbar/progressbar.d.ts +0 -27
  792. package/types/components/pull-to-refresh/pull-to-refresh.d.ts +0 -99
  793. package/types/components/radio/radio.d.ts +0 -10
  794. package/types/components/range/range.d.ts +0 -139
  795. package/types/components/searchbar/searchbar.d.ts +0 -157
  796. package/types/components/sheet/sheet.d.ts +0 -149
  797. package/types/components/skeleton/skeleton.d.ts +0 -10
  798. package/types/components/smart-select/smart-select.d.ts +0 -199
  799. package/types/components/sortable/sortable.d.ts +0 -50
  800. package/types/components/statusbar/statusbar.d.ts +0 -50
  801. package/types/components/stepper/stepper.d.ts +0 -117
  802. package/types/components/subnavbar/subnavbar.d.ts +0 -11
  803. package/types/components/swipeout/swipeout.d.ts +0 -68
  804. package/types/components/swiper/swiper.d.ts +0 -21
  805. package/types/components/tabs/tabs.d.ts +0 -39
  806. package/types/components/text-editor/text-editor.d.ts +0 -162
  807. package/types/components/timeline/timeline.d.ts +0 -10
  808. package/types/components/toast/toast.d.ts +0 -117
  809. package/types/components/toggle/toggle.d.ts +0 -69
  810. package/types/components/toolbar/toolbar.d.ts +0 -43
  811. package/types/components/tooltip/tooltip.d.ts +0 -101
  812. package/types/components/touch-ripple/touch-ripple.d.ts +0 -21
  813. package/types/components/treeview/treeview.d.ts +0 -38
  814. package/types/components/typography/typography.d.ts +0 -10
  815. package/types/components/view/view.d.ts +0 -205
  816. package/types/components/virtual-list/virtual-list.d.ts +0 -138
  817. package/types/modules/clicks/clicks.d.ts +0 -19
  818. package/types/modules/component/component.d.ts +0 -96
  819. package/types/modules/component/snabbdom/h.d.ts +0 -10
  820. package/types/modules/component/snabbdom/helpers/attachto.d.ts +0 -9
  821. package/types/modules/component/snabbdom/hooks.d.ts +0 -23
  822. package/types/modules/component/snabbdom/htmldomapi.d.ts +0 -19
  823. package/types/modules/component/snabbdom/is.d.ts +0 -2
  824. package/types/modules/component/snabbdom/modules/attributes.d.ts +0 -4
  825. package/types/modules/component/snabbdom/modules/class.d.ts +0 -4
  826. package/types/modules/component/snabbdom/modules/dataset.d.ts +0 -4
  827. package/types/modules/component/snabbdom/modules/eventlisteners.d.ts +0 -8
  828. package/types/modules/component/snabbdom/modules/hero.d.ts +0 -6
  829. package/types/modules/component/snabbdom/modules/module.d.ts +0 -9
  830. package/types/modules/component/snabbdom/modules/props.d.ts +0 -4
  831. package/types/modules/component/snabbdom/modules/style.d.ts +0 -7
  832. package/types/modules/component/snabbdom/snabbdom.bundle.d.ts +0 -5
  833. package/types/modules/component/snabbdom/snabbdom.d.ts +0 -6
  834. package/types/modules/component/snabbdom/thunk.d.ts +0 -14
  835. package/types/modules/component/snabbdom/tovnode.d.ts +0 -4
  836. package/types/modules/component/snabbdom/vnode.d.ts +0 -36
  837. package/types/modules/device/device.d.ts +0 -14
  838. package/types/modules/request/request.d.ts +0 -15
  839. package/types/modules/resize/resize.d.ts +0 -25
  840. package/types/modules/router/router.d.ts +0 -356
  841. package/types/modules/service-worker/service-worker.d.ts +0 -38
  842. package/types/modules/store/store.d.ts +0 -40
  843. package/types/modules/support/support.d.ts +0 -15
  844. package/types/modules/touch/touch.d.ts +0 -62
  845. package/types/modules/utils/utils.d.ts +0 -15
  846. package/types/package.json +0 -6
@@ -1 +1,597 @@
1
- (function framework7ComponentLoader(e,t){void 0===t&&(t=!0);var o=e.$,s=e.utils,i=(e.getDevice,e.getSupport),n=(e.Class,e.Modal,e.ConstructorMethods,e.ModalMethods,s.bindMethods),a=s.nextFrame,r={init:function(){var e,t,s,n,a,p,l,u,f,w,d,c,h,v,g,m,C,x,O,M,E,T=this,L={};var S=!!i().passiveListener&&{passive:!0};T.on("touchstart",(function(e){if(r.el){var t=o(e.target);o(r.el).is(t[0])||t.parents(".swipeout").is(r.el)||t.hasClass("modal-in")||(t.attr("class")||"").indexOf("-backdrop")>0||t.hasClass("actions-modal")||t.parents(".actions-modal.modal-in, .dialog.modal-in").length>0||T.swipeout.close(r.el)}})),o(document).on(T.touchEvents.start,"li.swipeout",(function(i){T.swipeout.allow&&(t=!1,e=!0,s=void 0,L.x="touchstart"===i.type?i.targetTouches[0].pageX:i.pageX,L.y="touchstart"===i.type?i.targetTouches[0].pageY:i.pageY,n=(new Date).getTime(),p=o(this))}),S),T.on("touchmove:active",(function(i){if(e){var n="touchmove"===i.type?i.targetTouches[0].pageX:i.pageX,r="touchmove"===i.type?i.targetTouches[0].pageY:i.pageY;if(void 0===s&&(s=!!(s||Math.abs(r-L.y)>Math.abs(n-L.x))),s)e=!1;else{if(!t){if(o(".list.sortable-opened").length>0)return;l=p.find(".swipeout-content"),u=p.find(".swipeout-actions-right"),f=p.find(".swipeout-actions-left"),w=null,d=null,g=null,m=null,O=null,x=null,f.length>0&&(w=f.outerWidth(),g=f.children("a"),x=f.find(".swipeout-overswipe")),u.length>0&&(d=u.outerWidth(),m=u.children("a"),O=u.find(".swipeout-overswipe")),(h=p.hasClass("swipeout-opened"))&&(v=p.find(".swipeout-actions-left.swipeout-actions-opened").length>0?"left":"right"),p.removeClass("swipeout-transitioning"),T.params.swipeout.noFollow||(p.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),p.removeClass("swipeout-opened"))}if(t=!0,i.cancelable&&i.preventDefault(),a=n-L.x,c=a,h&&("right"===v?c-=d:c+=w),c>0&&0===f.length||c<0&&0===u.length){if(!h)return e=!1,t=!1,l.transform(""),m&&m.length>0&&m.transform(""),void(g&&g.length>0&&g.transform(""));c=0}var S,y;if(c<0?C="to-left":c>0?C="to-right":C||(C="to-left"),i.f7PreventSwipePanel=!0,T.params.swipeout.noFollow)return h?("right"===v&&a>0&&T.swipeout.close(p),"left"===v&&a<0&&T.swipeout.close(p)):(a<0&&u.length>0&&T.swipeout.open(p,"right"),a>0&&f.length>0&&T.swipeout.open(p,"left")),e=!1,void(t=!1);if(M=!1,E=!1,u.length>0){var B=c;if(y=B/d,B<-d){var W=B/-d;B=-d-Math.pow(-B-d,.8),c=B,O.length>0&&W>T.params.swipeout.overswipeRatio&&(E=!0)}"to-left"!==C&&(y=0,B=0),m.each((function(e){var t=o(e);void 0===e.f7SwipeoutButtonOffset&&(t[0].f7SwipeoutButtonOffset=e.offsetLeft),S=e.f7SwipeoutButtonOffset,O.length>0&&t.hasClass("swipeout-overswipe")&&"to-left"===C&&(t.css({left:(E?-S:0)+"px"}),E?(t.hasClass("swipeout-overswipe-active")||(p.trigger("swipeout:overswipeenter"),T.emit("swipeoutOverswipeEnter",p[0])),t.addClass("swipeout-overswipe-active")):(t.hasClass("swipeout-overswipe-active")&&(p.trigger("swipeout:overswipeexit"),T.emit("swipeoutOverswipeExit",p[0])),t.removeClass("swipeout-overswipe-active"))),t.transform("translate3d("+(B-S*(1+Math.max(y,-1)))+"px,0,0)")}))}if(f.length>0){var b=c;if(y=b/w,b>w){var D=b/d;b=w+Math.pow(b-w,.8),c=b,x.length>0&&D>T.params.swipeout.overswipeRatio&&(M=!0)}"to-right"!==C&&(b=0,y=0),g.each((function(e,t){var s=o(e);void 0===e.f7SwipeoutButtonOffset&&(s[0].f7SwipeoutButtonOffset=w-e.offsetLeft-e.offsetWidth),S=e.f7SwipeoutButtonOffset,x.length>0&&s.hasClass("swipeout-overswipe")&&"to-right"===C&&(s.css({left:(M?S:0)+"px"}),M?(s.hasClass("swipeout-overswipe-active")||(p.trigger("swipeout:overswipeenter"),T.emit("swipeoutOverswipeEnter",p[0])),s.addClass("swipeout-overswipe-active")):(s.hasClass("swipeout-overswipe-active")&&(p.trigger("swipeout:overswipeexit"),T.emit("swipeoutOverswipeExit",p[0])),s.removeClass("swipeout-overswipe-active"))),g.length>1&&s.css("z-index",g.length-t),s.transform("translate3d("+(b+S*(1-Math.min(y,1)))+"px,0,0)")}))}p.trigger("swipeout",y),T.emit("swipeout",p[0],y),l.transform("translate3d("+c+"px,0,0)")}}})),T.on("touchend:passive",(function(){if(!e||!t)return e=!1,void(t=!1);e=!1,t=!1;var s,i,v,x,O=(new Date).getTime()-n,L="to-left"===C?u:f,S="to-left"===C?d:w;if(s=O<300&&(a<-10&&"to-left"===C||a>10&&"to-right"===C)||O>=300&&Math.abs(c)>S/2?"open":"close",O<300&&(0===Math.abs(c)&&(s="close"),Math.abs(c)===S&&(s="open")),"open"===s){r.el=p[0],p.trigger("swipeout:open"),T.emit("swipeoutOpen",p[0]),p.addClass("swipeout-opened swipeout-transitioning");var y="to-left"===C?-S:S;if(l.transform("translate3d("+y+"px,0,0)"),L.addClass("swipeout-actions-opened"),i="to-left"===C?m:g)for(v=0;v<i.length;v+=1)o(i[v]).transform("translate3d("+y+"px,0,0)");E&&u.find(".swipeout-overswipe").trigger("click","f7Overswipe"),M&&f.find(".swipeout-overswipe").trigger("click","f7Overswipe")}else p.trigger("swipeout:close"),T.emit("swipeoutClose",p[0]),r.el=void 0,p.addClass("swipeout-transitioning").removeClass("swipeout-opened"),l.transform(""),L.removeClass("swipeout-actions-opened");g&&g.length>0&&g!==i&&g.each((function(e){var t=o(e);void 0===(x=e.f7SwipeoutButtonOffset)&&(t[0].f7SwipeoutButtonOffset=w-e.offsetLeft-e.offsetWidth),t.transform("translate3d("+x+"px,0,0)")})),m&&m.length>0&&m!==i&&m.each((function(e){var t=o(e);void 0===(x=e.f7SwipeoutButtonOffset)&&(t[0].f7SwipeoutButtonOffset=e.offsetLeft),t.transform("translate3d("+-x+"px,0,0)")})),l.transitionEnd((function(){h&&"open"===s||!h&&"close"===s||(p.trigger("open"===s?"swipeout:opened":"swipeout:closed"),T.emit("open"===s?"swipeoutOpened":"swipeoutClosed",p[0]),p.removeClass("swipeout-transitioning"),h&&"close"===s&&(u.length>0&&m.transform(""),f.length>0&&g.transform("")))}))}))},allow:!0,el:void 0,open:function(){for(var e=this,t=arguments.length,s=new Array(t),i=0;i<t;i++)s[i]=arguments[i];var n=s[0],p=s[1],l=s[2];"function"==typeof s[1]&&(n=s[0],l=s[1],p=s[2]);var u=o(n).eq(0);if(0!==u.length&&u.hasClass("swipeout")&&!u.hasClass("swipeout-opened")){p||(p=u.find(".swipeout-actions-right").length>0?"right":"left");var f=u.find(".swipeout-actions-"+p),w=u.find(".swipeout-content");if(0!==f.length){u.trigger("swipeout:open").addClass("swipeout-opened").removeClass("swipeout-transitioning"),e.emit("swipeoutOpen",u[0]),f.addClass("swipeout-actions-opened");var d=f.children("a"),c=f.outerWidth(),h="right"===p?-c:c;d.length>1&&d.each((function(e,t){var s=o(e);"right"===p?s.transform("translate3d("+-e.offsetLeft+"px,0,0)"):s.css("z-index",d.length-t).transform("translate3d("+(c-e.offsetWidth-e.offsetLeft)+"px,0,0)")})),u.addClass("swipeout-transitioning"),w.transitionEnd((function(){u.trigger("swipeout:opened"),e.emit("swipeoutOpened",u[0]),l&&l.call(u[0])})),a((function(){d.transform("translate3d("+h+"px,0,0)"),w.transform("translate3d("+h+"px,0,0)")})),r.el=u[0]}}},close:function(e,t){var s=this,i=o(e).eq(0);if(0!==i.length&&i.hasClass("swipeout-opened")){var n,a=i.find(".swipeout-actions-opened").hasClass("swipeout-actions-right")?"right":"left",p=i.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),l=p.children("a"),u=p.outerWidth();s.swipeout.allow=!1,i.trigger("swipeout:close"),s.emit("swipeoutClose",i[0]),i.removeClass("swipeout-opened").addClass("swipeout-transitioning"),i.find(".swipeout-content").transform("").transitionEnd(f),n=setTimeout(f,500),l.each((function(e){var t=o(e);"right"===a?t.transform("translate3d("+-e.offsetLeft+"px,0,0)"):t.transform("translate3d("+(u-e.offsetWidth-e.offsetLeft)+"px,0,0)"),t.css({left:"0px"}).removeClass("swipeout-overswipe-active")})),r.el&&r.el===i[0]&&(r.el=void 0)}function f(){s.swipeout.allow=!0,i.hasClass("swipeout-opened")||(i.removeClass("swipeout-transitioning"),l.transform(""),i.trigger("swipeout:closed"),s.emit("swipeoutClosed",i[0]),t&&t.call(i[0]),n&&clearTimeout(n))}},delete:function(e,t){var s=this,i=o(e).eq(0);0!==i.length&&(r.el=void 0,i.trigger("swipeout:delete"),s.emit("swipeoutDelete",i[0]),i.css({height:i.outerHeight()+"px"}),i.transitionEnd((function(){if(i.trigger("swipeout:deleted"),s.emit("swipeoutDeleted",i[0]),t&&t.call(i[0]),i.parents(".virtual-list").length>0){var e=i.parents(".virtual-list")[0].f7VirtualList,o=i[0].f7VirtualListIndex;e&&void 0!==o&&e.deleteItem(o)}else s.params.swipeout.removeElements?s.params.swipeout.removeElementsWithTimeout?setTimeout((function(){i.remove()}),s.params.swipeout.removeElementsTimeout):i.remove():i.removeClass("swipeout-deleting swipeout-transitioning")})),a((function(){i.addClass("swipeout-deleting swipeout-transitioning").css({height:"0px"}).find(".swipeout-content").transform("translate3d(-100%,0,0)")})))}},p={name:"swipeout",params:{swipeout:{actionsNoFold:!1,noFollow:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,overswipeRatio:1.2}},create:function(){n(this,{swipeout:r})},clicks:{".swipeout-open":function(e,t){void 0===t&&(t={});this.swipeout.open(t.swipeout,t.side)},".swipeout-close":function(e){var t=e.closest(".swipeout");0!==t.length&&this.swipeout.close(t)},".swipeout-delete":function(e,t){void 0===t&&(t={});var o=this,s=e.closest(".swipeout");if(0!==s.length){var i=t,n=i.confirm,a=i.confirmTitle;t.confirm?o.dialog.confirm(n,a,(function(){o.swipeout.delete(s)})):o.swipeout.delete(s)}}},on:{init:function(){this.params.swipeout&&this.swipeout.init()}}};if(t){if(e.prototype.modules&&e.prototype.modules[p.name])return;e.use(p),e.instance&&(e.instance.useModuleParams(p,e.instance.params),e.instance.useModule(p))}return p}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))
1
+ import { getDocument } from 'ssr-window';
2
+ import $ from '../../shared/dom7.js';
3
+ import { nextFrame, bindMethods } from '../../shared/utils.js';
4
+ import { getSupport } from '../../shared/get-support.js';
5
+ const Swipeout = {
6
+ init() {
7
+ const app = this;
8
+ const document = getDocument();
9
+ const touchesStart = {};
10
+ let isTouched;
11
+ let isMoved;
12
+ let isScrolling;
13
+ let touchStartTime;
14
+ let touchesDiff;
15
+ let $swipeoutEl;
16
+ let $swipeoutContent;
17
+ let $actionsRight;
18
+ let $actionsLeft;
19
+ let actionsLeftWidth;
20
+ let actionsRightWidth;
21
+ let translate;
22
+ let opened;
23
+ let openedActionsSide;
24
+ let $leftButtons;
25
+ let $rightButtons;
26
+ let direction;
27
+ let $overswipeLeftButton;
28
+ let $overswipeRightButton;
29
+ let overswipeLeft;
30
+ let overswipeRight;
31
+
32
+ function handleTouchStart(e) {
33
+ if (!app.swipeout.allow) return;
34
+ isMoved = false;
35
+ isTouched = true;
36
+ isScrolling = undefined;
37
+ touchesStart.x = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
38
+ touchesStart.y = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
39
+ touchStartTime = new Date().getTime();
40
+ $swipeoutEl = $(this);
41
+ }
42
+
43
+ function handleTouchMove(e) {
44
+ if (!isTouched) return;
45
+ const pageX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
46
+ const pageY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
47
+
48
+ if (typeof isScrolling === 'undefined') {
49
+ isScrolling = !!(isScrolling || Math.abs(pageY - touchesStart.y) > Math.abs(pageX - touchesStart.x));
50
+ }
51
+
52
+ if (isScrolling) {
53
+ isTouched = false;
54
+ return;
55
+ }
56
+
57
+ if (!isMoved) {
58
+ if ($('.list.sortable-opened').length > 0) return;
59
+ $swipeoutContent = $swipeoutEl.find('.swipeout-content');
60
+ $actionsRight = $swipeoutEl.find('.swipeout-actions-right');
61
+ $actionsLeft = $swipeoutEl.find('.swipeout-actions-left');
62
+ actionsLeftWidth = null;
63
+ actionsRightWidth = null;
64
+ $leftButtons = null;
65
+ $rightButtons = null;
66
+ $overswipeRightButton = null;
67
+ $overswipeLeftButton = null;
68
+
69
+ if ($actionsLeft.length > 0) {
70
+ actionsLeftWidth = $actionsLeft.outerWidth();
71
+ $leftButtons = $actionsLeft.children('a');
72
+ $overswipeLeftButton = $actionsLeft.find('.swipeout-overswipe');
73
+ }
74
+
75
+ if ($actionsRight.length > 0) {
76
+ actionsRightWidth = $actionsRight.outerWidth();
77
+ $rightButtons = $actionsRight.children('a');
78
+ $overswipeRightButton = $actionsRight.find('.swipeout-overswipe');
79
+ }
80
+
81
+ opened = $swipeoutEl.hasClass('swipeout-opened');
82
+
83
+ if (opened) {
84
+ openedActionsSide = $swipeoutEl.find('.swipeout-actions-left.swipeout-actions-opened').length > 0 ? 'left' : 'right';
85
+ }
86
+
87
+ $swipeoutEl.removeClass('swipeout-transitioning');
88
+
89
+ if (!app.params.swipeout.noFollow) {
90
+ $swipeoutEl.find('.swipeout-actions-opened').removeClass('swipeout-actions-opened');
91
+ $swipeoutEl.removeClass('swipeout-opened');
92
+ }
93
+ }
94
+
95
+ isMoved = true;
96
+
97
+ if (e.cancelable) {
98
+ e.preventDefault();
99
+ }
100
+
101
+ touchesDiff = pageX - touchesStart.x;
102
+ translate = touchesDiff;
103
+
104
+ if (opened) {
105
+ if (openedActionsSide === 'right') translate -= actionsRightWidth;else translate += actionsLeftWidth;
106
+ }
107
+
108
+ if (translate > 0 && $actionsLeft.length === 0 || translate < 0 && $actionsRight.length === 0) {
109
+ if (!opened) {
110
+ isTouched = false;
111
+ isMoved = false;
112
+ $swipeoutContent.transform('');
113
+
114
+ if ($rightButtons && $rightButtons.length > 0) {
115
+ $rightButtons.transform('');
116
+ }
117
+
118
+ if ($leftButtons && $leftButtons.length > 0) {
119
+ $leftButtons.transform('');
120
+ }
121
+
122
+ return;
123
+ }
124
+
125
+ translate = 0;
126
+ }
127
+
128
+ if (translate < 0) direction = 'to-left';else if (translate > 0) direction = 'to-right';else if (!direction) direction = 'to-left';
129
+ let buttonOffset;
130
+ let progress;
131
+ e.f7PreventSwipePanel = true;
132
+
133
+ if (app.params.swipeout.noFollow) {
134
+ if (opened) {
135
+ if (openedActionsSide === 'right' && touchesDiff > 0) {
136
+ app.swipeout.close($swipeoutEl);
137
+ }
138
+
139
+ if (openedActionsSide === 'left' && touchesDiff < 0) {
140
+ app.swipeout.close($swipeoutEl);
141
+ }
142
+ } else {
143
+ if (touchesDiff < 0 && $actionsRight.length > 0) {
144
+ app.swipeout.open($swipeoutEl, 'right');
145
+ }
146
+
147
+ if (touchesDiff > 0 && $actionsLeft.length > 0) {
148
+ app.swipeout.open($swipeoutEl, 'left');
149
+ }
150
+ }
151
+
152
+ isTouched = false;
153
+ isMoved = false;
154
+ return;
155
+ }
156
+
157
+ overswipeLeft = false;
158
+ overswipeRight = false;
159
+
160
+ if ($actionsRight.length > 0) {
161
+ // Show right actions
162
+ let buttonTranslate = translate;
163
+ progress = buttonTranslate / actionsRightWidth;
164
+
165
+ if (buttonTranslate < -actionsRightWidth) {
166
+ const ratio = buttonTranslate / -actionsRightWidth;
167
+ buttonTranslate = -actionsRightWidth - (-buttonTranslate - actionsRightWidth) ** 0.8;
168
+ translate = buttonTranslate;
169
+
170
+ if ($overswipeRightButton.length > 0 && ratio > app.params.swipeout.overswipeRatio) {
171
+ overswipeRight = true;
172
+ }
173
+ }
174
+
175
+ if (direction !== 'to-left') {
176
+ progress = 0;
177
+ buttonTranslate = 0;
178
+ }
179
+
180
+ $rightButtons.each(buttonEl => {
181
+ const $buttonEl = $(buttonEl);
182
+
183
+ if (typeof buttonEl.f7SwipeoutButtonOffset === 'undefined') {
184
+ $buttonEl[0].f7SwipeoutButtonOffset = buttonEl.offsetLeft;
185
+ }
186
+
187
+ buttonOffset = buttonEl.f7SwipeoutButtonOffset;
188
+
189
+ if ($overswipeRightButton.length > 0 && $buttonEl.hasClass('swipeout-overswipe') && direction === 'to-left') {
190
+ $buttonEl.css({
191
+ left: `${overswipeRight ? -buttonOffset : 0}px`
192
+ });
193
+
194
+ if (overswipeRight) {
195
+ if (!$buttonEl.hasClass('swipeout-overswipe-active')) {
196
+ $swipeoutEl.trigger('swipeout:overswipeenter');
197
+ app.emit('swipeoutOverswipeEnter', $swipeoutEl[0]);
198
+ }
199
+
200
+ $buttonEl.addClass('swipeout-overswipe-active');
201
+ } else {
202
+ if ($buttonEl.hasClass('swipeout-overswipe-active')) {
203
+ $swipeoutEl.trigger('swipeout:overswipeexit');
204
+ app.emit('swipeoutOverswipeExit', $swipeoutEl[0]);
205
+ }
206
+
207
+ $buttonEl.removeClass('swipeout-overswipe-active');
208
+ }
209
+ }
210
+
211
+ $buttonEl.transform(`translate3d(${buttonTranslate - buttonOffset * (1 + Math.max(progress, -1))}px,0,0)`);
212
+ });
213
+ }
214
+
215
+ if ($actionsLeft.length > 0) {
216
+ // Show left actions
217
+ let buttonTranslate = translate;
218
+ progress = buttonTranslate / actionsLeftWidth;
219
+
220
+ if (buttonTranslate > actionsLeftWidth) {
221
+ const ratio = buttonTranslate / actionsRightWidth;
222
+ buttonTranslate = actionsLeftWidth + (buttonTranslate - actionsLeftWidth) ** 0.8;
223
+ translate = buttonTranslate;
224
+
225
+ if ($overswipeLeftButton.length > 0 && ratio > app.params.swipeout.overswipeRatio) {
226
+ overswipeLeft = true;
227
+ }
228
+ }
229
+
230
+ if (direction !== 'to-right') {
231
+ buttonTranslate = 0;
232
+ progress = 0;
233
+ }
234
+
235
+ $leftButtons.each((buttonEl, index) => {
236
+ const $buttonEl = $(buttonEl);
237
+
238
+ if (typeof buttonEl.f7SwipeoutButtonOffset === 'undefined') {
239
+ $buttonEl[0].f7SwipeoutButtonOffset = actionsLeftWidth - buttonEl.offsetLeft - buttonEl.offsetWidth;
240
+ }
241
+
242
+ buttonOffset = buttonEl.f7SwipeoutButtonOffset;
243
+
244
+ if ($overswipeLeftButton.length > 0 && $buttonEl.hasClass('swipeout-overswipe') && direction === 'to-right') {
245
+ $buttonEl.css({
246
+ left: `${overswipeLeft ? buttonOffset : 0}px`
247
+ });
248
+
249
+ if (overswipeLeft) {
250
+ if (!$buttonEl.hasClass('swipeout-overswipe-active')) {
251
+ $swipeoutEl.trigger('swipeout:overswipeenter');
252
+ app.emit('swipeoutOverswipeEnter', $swipeoutEl[0]);
253
+ }
254
+
255
+ $buttonEl.addClass('swipeout-overswipe-active');
256
+ } else {
257
+ if ($buttonEl.hasClass('swipeout-overswipe-active')) {
258
+ $swipeoutEl.trigger('swipeout:overswipeexit');
259
+ app.emit('swipeoutOverswipeExit', $swipeoutEl[0]);
260
+ }
261
+
262
+ $buttonEl.removeClass('swipeout-overswipe-active');
263
+ }
264
+ }
265
+
266
+ if ($leftButtons.length > 1) {
267
+ $buttonEl.css('z-index', $leftButtons.length - index);
268
+ }
269
+
270
+ $buttonEl.transform(`translate3d(${buttonTranslate + buttonOffset * (1 - Math.min(progress, 1))}px,0,0)`);
271
+ });
272
+ }
273
+
274
+ $swipeoutEl.trigger('swipeout', progress);
275
+ app.emit('swipeout', $swipeoutEl[0], progress);
276
+ $swipeoutContent.transform(`translate3d(${translate}px,0,0)`);
277
+ }
278
+
279
+ function handleTouchEnd() {
280
+ if (!isTouched || !isMoved) {
281
+ isTouched = false;
282
+ isMoved = false;
283
+ return;
284
+ }
285
+
286
+ isTouched = false;
287
+ isMoved = false;
288
+ const timeDiff = new Date().getTime() - touchStartTime;
289
+ const $actions = direction === 'to-left' ? $actionsRight : $actionsLeft;
290
+ const actionsWidth = direction === 'to-left' ? actionsRightWidth : actionsLeftWidth;
291
+ let action;
292
+ let $buttons;
293
+ let i;
294
+
295
+ if (timeDiff < 300 && (touchesDiff < -10 && direction === 'to-left' || touchesDiff > 10 && direction === 'to-right') || timeDiff >= 300 && Math.abs(translate) > actionsWidth / 2) {
296
+ action = 'open';
297
+ } else {
298
+ action = 'close';
299
+ }
300
+
301
+ if (timeDiff < 300) {
302
+ if (Math.abs(translate) === 0) action = 'close';
303
+ if (Math.abs(translate) === actionsWidth) action = 'open';
304
+ }
305
+
306
+ if (action === 'open') {
307
+ Swipeout.el = $swipeoutEl[0];
308
+ $swipeoutEl.trigger('swipeout:open');
309
+ app.emit('swipeoutOpen', $swipeoutEl[0]);
310
+ $swipeoutEl.addClass('swipeout-opened swipeout-transitioning');
311
+ const newTranslate = direction === 'to-left' ? -actionsWidth : actionsWidth;
312
+ $swipeoutContent.transform(`translate3d(${newTranslate}px,0,0)`);
313
+ $actions.addClass('swipeout-actions-opened');
314
+ $buttons = direction === 'to-left' ? $rightButtons : $leftButtons;
315
+
316
+ if ($buttons) {
317
+ for (i = 0; i < $buttons.length; i += 1) {
318
+ $($buttons[i]).transform(`translate3d(${newTranslate}px,0,0)`);
319
+ }
320
+ }
321
+
322
+ if (overswipeRight) {
323
+ $actionsRight.find('.swipeout-overswipe').trigger('click', 'f7Overswipe');
324
+ }
325
+
326
+ if (overswipeLeft) {
327
+ $actionsLeft.find('.swipeout-overswipe').trigger('click', 'f7Overswipe');
328
+ }
329
+ } else {
330
+ $swipeoutEl.trigger('swipeout:close');
331
+ app.emit('swipeoutClose', $swipeoutEl[0]);
332
+ Swipeout.el = undefined;
333
+ $swipeoutEl.addClass('swipeout-transitioning').removeClass('swipeout-opened');
334
+ $swipeoutContent.transform('');
335
+ $actions.removeClass('swipeout-actions-opened');
336
+ }
337
+
338
+ let buttonOffset;
339
+
340
+ if ($leftButtons && $leftButtons.length > 0 && $leftButtons !== $buttons) {
341
+ $leftButtons.each(buttonEl => {
342
+ const $buttonEl = $(buttonEl);
343
+ buttonOffset = buttonEl.f7SwipeoutButtonOffset;
344
+
345
+ if (typeof buttonOffset === 'undefined') {
346
+ $buttonEl[0].f7SwipeoutButtonOffset = actionsLeftWidth - buttonEl.offsetLeft - buttonEl.offsetWidth;
347
+ }
348
+
349
+ $buttonEl.transform(`translate3d(${buttonOffset}px,0,0)`);
350
+ });
351
+ }
352
+
353
+ if ($rightButtons && $rightButtons.length > 0 && $rightButtons !== $buttons) {
354
+ $rightButtons.each(buttonEl => {
355
+ const $buttonEl = $(buttonEl);
356
+ buttonOffset = buttonEl.f7SwipeoutButtonOffset;
357
+
358
+ if (typeof buttonOffset === 'undefined') {
359
+ $buttonEl[0].f7SwipeoutButtonOffset = buttonEl.offsetLeft;
360
+ }
361
+
362
+ $buttonEl.transform(`translate3d(${-buttonOffset}px,0,0)`);
363
+ });
364
+ }
365
+
366
+ $swipeoutContent.transitionEnd(() => {
367
+ if (opened && action === 'open' || !opened && action === 'close') return;
368
+ $swipeoutEl.trigger(action === 'open' ? 'swipeout:opened' : 'swipeout:closed');
369
+ app.emit(action === 'open' ? 'swipeoutOpened' : 'swipeoutClosed', $swipeoutEl[0]);
370
+ $swipeoutEl.removeClass('swipeout-transitioning');
371
+
372
+ if (opened && action === 'close') {
373
+ if ($actionsRight.length > 0) {
374
+ $rightButtons.transform('');
375
+ }
376
+
377
+ if ($actionsLeft.length > 0) {
378
+ $leftButtons.transform('');
379
+ }
380
+ }
381
+ });
382
+ }
383
+
384
+ const passiveListener = getSupport().passiveListener ? {
385
+ passive: true
386
+ } : false;
387
+ app.on('touchstart', e => {
388
+ if (Swipeout.el) {
389
+ const $targetEl = $(e.target);
390
+
391
+ if (!($(Swipeout.el).is($targetEl[0]) || $targetEl.parents('.swipeout').is(Swipeout.el) || $targetEl.hasClass('modal-in') || ($targetEl.attr('class') || '').indexOf('-backdrop') > 0 || $targetEl.hasClass('actions-modal') || $targetEl.parents('.actions-modal.modal-in, .dialog.modal-in').length > 0)) {
392
+ app.swipeout.close(Swipeout.el);
393
+ }
394
+ }
395
+ });
396
+ $(document).on(app.touchEvents.start, 'li.swipeout', handleTouchStart, passiveListener);
397
+ app.on('touchmove:active', handleTouchMove);
398
+ app.on('touchend:passive', handleTouchEnd);
399
+ },
400
+
401
+ allow: true,
402
+ el: undefined,
403
+
404
+ open(...args) {
405
+ const app = this;
406
+ let [el, side, callback] = args;
407
+
408
+ if (typeof args[1] === 'function') {
409
+ [el, callback, side] = args;
410
+ }
411
+
412
+ const $el = $(el).eq(0);
413
+ if ($el.length === 0) return;
414
+ if (!$el.hasClass('swipeout') || $el.hasClass('swipeout-opened')) return;
415
+
416
+ if (!side) {
417
+ if ($el.find('.swipeout-actions-right').length > 0) side = 'right';else side = 'left';
418
+ }
419
+
420
+ const $swipeoutActions = $el.find(`.swipeout-actions-${side}`);
421
+ const $swipeoutContent = $el.find('.swipeout-content');
422
+ if ($swipeoutActions.length === 0) return;
423
+ $el.trigger('swipeout:open').addClass('swipeout-opened').removeClass('swipeout-transitioning');
424
+ app.emit('swipeoutOpen', $el[0]);
425
+ $swipeoutActions.addClass('swipeout-actions-opened');
426
+ const $buttons = $swipeoutActions.children('a');
427
+ const swipeoutActionsWidth = $swipeoutActions.outerWidth();
428
+ const translate = side === 'right' ? -swipeoutActionsWidth : swipeoutActionsWidth;
429
+
430
+ if ($buttons.length > 1) {
431
+ $buttons.each((buttonEl, buttonIndex) => {
432
+ const $buttonEl = $(buttonEl);
433
+
434
+ if (side === 'right') {
435
+ $buttonEl.transform(`translate3d(${-buttonEl.offsetLeft}px,0,0)`);
436
+ } else {
437
+ $buttonEl.css('z-index', $buttons.length - buttonIndex).transform(`translate3d(${swipeoutActionsWidth - buttonEl.offsetWidth - buttonEl.offsetLeft}px,0,0)`);
438
+ }
439
+ });
440
+ }
441
+
442
+ $el.addClass('swipeout-transitioning');
443
+ $swipeoutContent.transitionEnd(() => {
444
+ $el.trigger('swipeout:opened');
445
+ app.emit('swipeoutOpened', $el[0]);
446
+ if (callback) callback.call($el[0]);
447
+ });
448
+ nextFrame(() => {
449
+ $buttons.transform(`translate3d(${translate}px,0,0)`);
450
+ $swipeoutContent.transform(`translate3d(${translate}px,0,0)`);
451
+ });
452
+ Swipeout.el = $el[0];
453
+ },
454
+
455
+ close(el, callback) {
456
+ const app = this;
457
+ const $el = $(el).eq(0);
458
+ if ($el.length === 0) return;
459
+ if (!$el.hasClass('swipeout-opened')) return;
460
+ const side = $el.find('.swipeout-actions-opened').hasClass('swipeout-actions-right') ? 'right' : 'left';
461
+ const $swipeoutActions = $el.find('.swipeout-actions-opened').removeClass('swipeout-actions-opened');
462
+ const $buttons = $swipeoutActions.children('a');
463
+ const swipeoutActionsWidth = $swipeoutActions.outerWidth();
464
+ app.swipeout.allow = false;
465
+ $el.trigger('swipeout:close');
466
+ app.emit('swipeoutClose', $el[0]);
467
+ $el.removeClass('swipeout-opened').addClass('swipeout-transitioning');
468
+ let closeTimeout;
469
+
470
+ function onSwipeoutClose() {
471
+ app.swipeout.allow = true;
472
+ if ($el.hasClass('swipeout-opened')) return;
473
+ $el.removeClass('swipeout-transitioning');
474
+ $buttons.transform('');
475
+ $el.trigger('swipeout:closed');
476
+ app.emit('swipeoutClosed', $el[0]);
477
+ if (callback) callback.call($el[0]);
478
+ if (closeTimeout) clearTimeout(closeTimeout);
479
+ }
480
+
481
+ $el.find('.swipeout-content').transform('').transitionEnd(onSwipeoutClose);
482
+ closeTimeout = setTimeout(onSwipeoutClose, 500);
483
+ $buttons.each(buttonEl => {
484
+ const $buttonEl = $(buttonEl);
485
+
486
+ if (side === 'right') {
487
+ $buttonEl.transform(`translate3d(${-buttonEl.offsetLeft}px,0,0)`);
488
+ } else {
489
+ $buttonEl.transform(`translate3d(${swipeoutActionsWidth - buttonEl.offsetWidth - buttonEl.offsetLeft}px,0,0)`);
490
+ }
491
+
492
+ $buttonEl.css({
493
+ left: '0px'
494
+ }).removeClass('swipeout-overswipe-active');
495
+ });
496
+ if (Swipeout.el && Swipeout.el === $el[0]) Swipeout.el = undefined;
497
+ },
498
+
499
+ delete(el, callback) {
500
+ const app = this;
501
+ const $el = $(el).eq(0);
502
+ if ($el.length === 0) return;
503
+ Swipeout.el = undefined;
504
+ $el.trigger('swipeout:delete');
505
+ app.emit('swipeoutDelete', $el[0]);
506
+ $el.css({
507
+ height: `${$el.outerHeight()}px`
508
+ });
509
+ $el.transitionEnd(() => {
510
+ $el.trigger('swipeout:deleted');
511
+ app.emit('swipeoutDeleted', $el[0]);
512
+ if (callback) callback.call($el[0]);
513
+
514
+ if ($el.parents('.virtual-list').length > 0) {
515
+ const virtualList = $el.parents('.virtual-list')[0].f7VirtualList;
516
+ const virtualIndex = $el[0].f7VirtualListIndex;
517
+ if (virtualList && typeof virtualIndex !== 'undefined') virtualList.deleteItem(virtualIndex);
518
+ } else if (app.params.swipeout.removeElements) {
519
+ if (app.params.swipeout.removeElementsWithTimeout) {
520
+ setTimeout(() => {
521
+ $el.remove();
522
+ }, app.params.swipeout.removeElementsTimeout);
523
+ } else {
524
+ $el.remove();
525
+ }
526
+ } else {
527
+ $el.removeClass('swipeout-deleting swipeout-transitioning');
528
+ }
529
+ }); // eslint-disable-next-line
530
+ // $el[0]._clientLeft = $el[0].clientLeft;
531
+
532
+ nextFrame(() => {
533
+ $el.addClass('swipeout-deleting swipeout-transitioning').css({
534
+ height: '0px'
535
+ }).find('.swipeout-content').transform('translate3d(-100%,0,0)');
536
+ });
537
+ }
538
+
539
+ };
540
+ export default {
541
+ name: 'swipeout',
542
+ params: {
543
+ swipeout: {
544
+ actionsNoFold: false,
545
+ noFollow: false,
546
+ removeElements: true,
547
+ removeElementsWithTimeout: false,
548
+ removeElementsTimeout: 0,
549
+ overswipeRatio: 1.2
550
+ }
551
+ },
552
+
553
+ create() {
554
+ const app = this;
555
+ bindMethods(app, {
556
+ swipeout: Swipeout
557
+ });
558
+ },
559
+
560
+ clicks: {
561
+ '.swipeout-open': function openSwipeout($clickedEl, data = {}) {
562
+ const app = this;
563
+ app.swipeout.open(data.swipeout, data.side);
564
+ },
565
+ '.swipeout-close': function closeSwipeout($clickedEl) {
566
+ const app = this;
567
+ const $swipeoutEl = $clickedEl.closest('.swipeout');
568
+ if ($swipeoutEl.length === 0) return;
569
+ app.swipeout.close($swipeoutEl);
570
+ },
571
+ '.swipeout-delete': function deleteSwipeout($clickedEl, data = {}) {
572
+ const app = this;
573
+ const $swipeoutEl = $clickedEl.closest('.swipeout');
574
+ if ($swipeoutEl.length === 0) return;
575
+ const {
576
+ confirm,
577
+ confirmTitle
578
+ } = data;
579
+
580
+ if (data.confirm) {
581
+ app.dialog.confirm(confirm, confirmTitle, () => {
582
+ app.swipeout.delete($swipeoutEl);
583
+ });
584
+ } else {
585
+ app.swipeout.delete($swipeoutEl);
586
+ }
587
+ }
588
+ },
589
+ on: {
590
+ init() {
591
+ const app = this;
592
+ if (!app.params.swipeout) return;
593
+ app.swipeout.init();
594
+ }
595
+
596
+ }
597
+ };
@@ -0,0 +1 @@
1
+ (function framework7ComponentLoader(e,t){void 0===t&&(t=!0);var s=e.$,o=e.utils,i=(e.getDevice,e.getSupport),n=(e.Class,e.Modal,e.ConstructorMethods,e.ModalMethods,o.bindMethods),a=o.nextFrame;const r={init(){const e=this,t=getDocument(),o={};let n,a,p,l,u,w,f,d,c,h,g,m,v,C,x,O,$,E,M,T,L;const S=!!i().passiveListener&&{passive:!0};e.on("touchstart",(t=>{if(r.el){const o=s(t.target);s(r.el).is(o[0])||o.parents(".swipeout").is(r.el)||o.hasClass("modal-in")||(o.attr("class")||"").indexOf("-backdrop")>0||o.hasClass("actions-modal")||o.parents(".actions-modal.modal-in, .dialog.modal-in").length>0||e.swipeout.close(r.el)}})),s(t).on(e.touchEvents.start,"li.swipeout",(function(t){e.swipeout.allow&&(a=!1,n=!0,p=void 0,o.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,o.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,l=(new Date).getTime(),w=s(this))}),S),e.on("touchmove:active",(function(t){if(!n)return;const i="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,r="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY;if(void 0===p&&(p=!!(p||Math.abs(r-o.y)>Math.abs(i-o.x))),p)return void(n=!1);if(!a){if(s(".list.sortable-opened").length>0)return;f=w.find(".swipeout-content"),d=w.find(".swipeout-actions-right"),c=w.find(".swipeout-actions-left"),h=null,g=null,x=null,O=null,M=null,E=null,c.length>0&&(h=c.outerWidth(),x=c.children("a"),E=c.find(".swipeout-overswipe")),d.length>0&&(g=d.outerWidth(),O=d.children("a"),M=d.find(".swipeout-overswipe")),v=w.hasClass("swipeout-opened"),v&&(C=w.find(".swipeout-actions-left.swipeout-actions-opened").length>0?"left":"right"),w.removeClass("swipeout-transitioning"),e.params.swipeout.noFollow||(w.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),w.removeClass("swipeout-opened"))}if(a=!0,t.cancelable&&t.preventDefault(),u=i-o.x,m=u,v&&("right"===C?m-=g:m+=h),m>0&&0===c.length||m<0&&0===d.length){if(!v)return n=!1,a=!1,f.transform(""),O&&O.length>0&&O.transform(""),void(x&&x.length>0&&x.transform(""));m=0}let l,S;if(m<0?$="to-left":m>0?$="to-right":$||($="to-left"),t.f7PreventSwipePanel=!0,e.params.swipeout.noFollow)return v?("right"===C&&u>0&&e.swipeout.close(w),"left"===C&&u<0&&e.swipeout.close(w)):(u<0&&d.length>0&&e.swipeout.open(w,"right"),u>0&&c.length>0&&e.swipeout.open(w,"left")),n=!1,void(a=!1);if(T=!1,L=!1,d.length>0){let t=m;if(S=t/g,t<-g){const s=t/-g;t=-g-(-t-g)**.8,m=t,M.length>0&&s>e.params.swipeout.overswipeRatio&&(L=!0)}"to-left"!==$&&(S=0,t=0),O.each((o=>{const i=s(o);void 0===o.f7SwipeoutButtonOffset&&(i[0].f7SwipeoutButtonOffset=o.offsetLeft),l=o.f7SwipeoutButtonOffset,M.length>0&&i.hasClass("swipeout-overswipe")&&"to-left"===$&&(i.css({left:(L?-l:0)+"px"}),L?(i.hasClass("swipeout-overswipe-active")||(w.trigger("swipeout:overswipeenter"),e.emit("swipeoutOverswipeEnter",w[0])),i.addClass("swipeout-overswipe-active")):(i.hasClass("swipeout-overswipe-active")&&(w.trigger("swipeout:overswipeexit"),e.emit("swipeoutOverswipeExit",w[0])),i.removeClass("swipeout-overswipe-active"))),i.transform(`translate3d(${t-l*(1+Math.max(S,-1))}px,0,0)`)}))}if(c.length>0){let t=m;if(S=t/h,t>h){const s=t/g;t=h+(t-h)**.8,m=t,E.length>0&&s>e.params.swipeout.overswipeRatio&&(T=!0)}"to-right"!==$&&(t=0,S=0),x.each(((o,i)=>{const n=s(o);void 0===o.f7SwipeoutButtonOffset&&(n[0].f7SwipeoutButtonOffset=h-o.offsetLeft-o.offsetWidth),l=o.f7SwipeoutButtonOffset,E.length>0&&n.hasClass("swipeout-overswipe")&&"to-right"===$&&(n.css({left:`${T?l:0}px`}),T?(n.hasClass("swipeout-overswipe-active")||(w.trigger("swipeout:overswipeenter"),e.emit("swipeoutOverswipeEnter",w[0])),n.addClass("swipeout-overswipe-active")):(n.hasClass("swipeout-overswipe-active")&&(w.trigger("swipeout:overswipeexit"),e.emit("swipeoutOverswipeExit",w[0])),n.removeClass("swipeout-overswipe-active"))),x.length>1&&n.css("z-index",x.length-i),n.transform(`translate3d(${t+l*(1-Math.min(S,1))}px,0,0)`)}))}w.trigger("swipeout",S),e.emit("swipeout",w[0],S),f.transform(`translate3d(${m}px,0,0)`)})),e.on("touchend:passive",(function(){if(!n||!a)return n=!1,void(a=!1);n=!1,a=!1;const t=(new Date).getTime()-l,o="to-left"===$?d:c,i="to-left"===$?g:h;let p,C,E,M;if(p=t<300&&(u<-10&&"to-left"===$||u>10&&"to-right"===$)||t>=300&&Math.abs(m)>i/2?"open":"close",t<300&&(0===Math.abs(m)&&(p="close"),Math.abs(m)===i&&(p="open")),"open"===p){r.el=w[0],w.trigger("swipeout:open"),e.emit("swipeoutOpen",w[0]),w.addClass("swipeout-opened swipeout-transitioning");const t="to-left"===$?-i:i;if(f.transform(`translate3d(${t}px,0,0)`),o.addClass("swipeout-actions-opened"),C="to-left"===$?O:x,C)for(E=0;E<C.length;E+=1)s(C[E]).transform(`translate3d(${t}px,0,0)`);L&&d.find(".swipeout-overswipe").trigger("click","f7Overswipe"),T&&c.find(".swipeout-overswipe").trigger("click","f7Overswipe")}else w.trigger("swipeout:close"),e.emit("swipeoutClose",w[0]),r.el=void 0,w.addClass("swipeout-transitioning").removeClass("swipeout-opened"),f.transform(""),o.removeClass("swipeout-actions-opened");x&&x.length>0&&x!==C&&x.each((e=>{const t=s(e);M=e.f7SwipeoutButtonOffset,void 0===M&&(t[0].f7SwipeoutButtonOffset=h-e.offsetLeft-e.offsetWidth),t.transform(`translate3d(${M}px,0,0)`)})),O&&O.length>0&&O!==C&&O.each((e=>{const t=s(e);M=e.f7SwipeoutButtonOffset,void 0===M&&(t[0].f7SwipeoutButtonOffset=e.offsetLeft),t.transform(`translate3d(${-M}px,0,0)`)})),f.transitionEnd((()=>{v&&"open"===p||!v&&"close"===p||(w.trigger("open"===p?"swipeout:opened":"swipeout:closed"),e.emit("open"===p?"swipeoutOpened":"swipeoutClosed",w[0]),w.removeClass("swipeout-transitioning"),v&&"close"===p&&(d.length>0&&O.transform(""),c.length>0&&x.transform("")))}))}))},allow:!0,el:void 0,open(...e){const t=this;let[o,i,n]=e;"function"==typeof e[1]&&([o,n,i]=e);const p=s(o).eq(0);if(0===p.length)return;if(!p.hasClass("swipeout")||p.hasClass("swipeout-opened"))return;i||(i=p.find(".swipeout-actions-right").length>0?"right":"left");const l=p.find(`.swipeout-actions-${i}`),u=p.find(".swipeout-content");if(0===l.length)return;p.trigger("swipeout:open").addClass("swipeout-opened").removeClass("swipeout-transitioning"),t.emit("swipeoutOpen",p[0]),l.addClass("swipeout-actions-opened");const w=l.children("a"),f=l.outerWidth(),d="right"===i?-f:f;w.length>1&&w.each(((e,t)=>{const o=s(e);"right"===i?o.transform(`translate3d(${-e.offsetLeft}px,0,0)`):o.css("z-index",w.length-t).transform(`translate3d(${f-e.offsetWidth-e.offsetLeft}px,0,0)`)})),p.addClass("swipeout-transitioning"),u.transitionEnd((()=>{p.trigger("swipeout:opened"),t.emit("swipeoutOpened",p[0]),n&&n.call(p[0])})),a((()=>{w.transform(`translate3d(${d}px,0,0)`),u.transform(`translate3d(${d}px,0,0)`)})),r.el=p[0]},close(e,t){const o=this,i=s(e).eq(0);if(0===i.length)return;if(!i.hasClass("swipeout-opened"))return;const n=i.find(".swipeout-actions-opened").hasClass("swipeout-actions-right")?"right":"left",a=i.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),p=a.children("a"),l=a.outerWidth();let u;function w(){o.swipeout.allow=!0,i.hasClass("swipeout-opened")||(i.removeClass("swipeout-transitioning"),p.transform(""),i.trigger("swipeout:closed"),o.emit("swipeoutClosed",i[0]),t&&t.call(i[0]),u&&clearTimeout(u))}o.swipeout.allow=!1,i.trigger("swipeout:close"),o.emit("swipeoutClose",i[0]),i.removeClass("swipeout-opened").addClass("swipeout-transitioning"),i.find(".swipeout-content").transform("").transitionEnd(w),u=setTimeout(w,500),p.each((e=>{const t=s(e);"right"===n?t.transform(`translate3d(${-e.offsetLeft}px,0,0)`):t.transform(`translate3d(${l-e.offsetWidth-e.offsetLeft}px,0,0)`),t.css({left:"0px"}).removeClass("swipeout-overswipe-active")})),r.el&&r.el===i[0]&&(r.el=void 0)},delete(e,t){const o=this,i=s(e).eq(0);0!==i.length&&(r.el=void 0,i.trigger("swipeout:delete"),o.emit("swipeoutDelete",i[0]),i.css({height:`${i.outerHeight()}px`}),i.transitionEnd((()=>{if(i.trigger("swipeout:deleted"),o.emit("swipeoutDeleted",i[0]),t&&t.call(i[0]),i.parents(".virtual-list").length>0){const e=i.parents(".virtual-list")[0].f7VirtualList,t=i[0].f7VirtualListIndex;e&&void 0!==t&&e.deleteItem(t)}else o.params.swipeout.removeElements?o.params.swipeout.removeElementsWithTimeout?setTimeout((()=>{i.remove()}),o.params.swipeout.removeElementsTimeout):i.remove():i.removeClass("swipeout-deleting swipeout-transitioning")})),a((()=>{i.addClass("swipeout-deleting swipeout-transitioning").css({height:"0px"}).find(".swipeout-content").transform("translate3d(-100%,0,0)")})))}};var p={name:"swipeout",params:{swipeout:{actionsNoFold:!1,noFollow:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,overswipeRatio:1.2}},create(){n(this,{swipeout:r})},clicks:{".swipeout-open":function(e,t={}){this.swipeout.open(t.swipeout,t.side)},".swipeout-close":function(e){const t=e.closest(".swipeout");0!==t.length&&this.swipeout.close(t)},".swipeout-delete":function(e,t={}){const s=this,o=e.closest(".swipeout");if(0===o.length)return;const{confirm:i,confirmTitle:n}=t;t.confirm?s.dialog.confirm(i,n,(()=>{s.swipeout.delete(o)})):s.swipeout.delete(o)}},on:{init(){this.params.swipeout&&this.swipeout.init()}}};if(t){if(e.prototype.modules&&e.prototype.modules[p.name])return;e.use(p),e.instance&&(e.instance.useModuleParams(p,e.instance.params),e.instance.useModule(p))}return p}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))