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,43 @@
1
- (function framework7ComponentLoader(o,e){void 0===e&&(e=!0);var t=o.$,n=o.utils,r=o.getDevice,a=(o.getSupport,o.Class,o.Modal),s=(o.ConstructorMethods,o.ModalMethods);function i(o){this.wrapped=o}function c(o){var e,t;function n(e,t){try{var a=o[e](t),s=a.value,c=s instanceof i;Promise.resolve(c?s.wrapped:s).then((function(o){c?n("return"===e?"return":"next",o):r(a.done?"return":"normal",o)}),(function(o){n("throw",o)}))}catch(o){r("throw",o)}}function r(o,r){switch(o){case"return":e.resolve({value:r,done:!0});break;case"throw":e.reject(r);break;default:e.resolve({value:r,done:!1})}(e=e.next)?n(e.key,e.arg):t=null}this._invoke=function(o,r){return new Promise((function(a,s){var i={key:o,arg:r,resolve:a,reject:s,next:null};t?t=t.next=i:(e=t=i,n(o,r))}))},"function"!=typeof o.return&&(this.return=void 0)}function l(o,e){return(l=Object.setPrototypeOf||function(o,e){return o.__proto__=e,o})(o,e)}function p(o){if(void 0===o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}c.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(o){return this._invoke("next",o)},c.prototype.throw=function(o){return this._invoke("throw",o)},c.prototype.return=function(o){return this._invoke("return",o)};var d=n.extend,u=n.nextTick,m=function(o){var e,n;function a(e,n){var a,s,i,c,l=d({on:{}},e.params.actions,n),m=p(a=o.call(this,e,l)||this),f=r();if(m.params=l,m.params.buttons&&(s=m.params.buttons,Array.isArray(s[0])||(s=[s])),m.groups=s,m.params.el?i=t(m.params.el).eq(0):m.params.content?i=t(m.params.content).filter((function(o){return 1===o.nodeType})).eq(0):m.params.buttons&&(m.params.convertToPopover&&(m.popoverHtml=m.renderPopover()),m.actionsHtml=m.render()),i&&i.length>0&&i[0].f7Modal)return i[0].f7Modal||p(a);if(i&&0===i.length&&!m.actionsHtml&&!m.popoverHtml)return m.destroy()||p(a);m.params.backdrop&&m.params.backdropEl?c=t(m.params.backdropEl):m.params.backdrop&&0===(c=m.$containerEl.children(".actions-backdrop")).length&&(c=t('<div class="actions-backdrop"></div>'),m.$containerEl.append(c));var v,b=m.open,h=m.close;function k(o){var e,n,r=t(this);if(r.hasClass("list-button")||r.hasClass("item-link")?(e=r.parents("li").index(),n=r.parents(".list").index()):(e=r.index(),n=r.parents(".actions-group").index()),void 0!==s){var a=s[n][e];a.onClick&&a.onClick(m,o),m.params.onClick&&m.params.onClick(m,o),!1!==a.close&&m.close()}}function y(o){var e=o.target,n=t(e);!f.desktop&&f.cordova&&(window.Keyboard&&window.Keyboard.isVisible||window.cordova.plugins&&window.cordova.plugins.Keyboard&&window.cordova.plugins.Keyboard.isVisible)||0===n.closest(m.el).length&&(m.params.closeByBackdropClick&&m.params.backdrop&&m.backdropEl&&m.backdropEl===e||m.params.closeByOutsideClick)&&m.close()}function $(o){27===o.keyCode&&m.params.closeOnEscape&&m.close()}return m.open=function(o){var n=!1,r=m.params,a=r.targetEl,s=r.targetX,i=r.targetY,c=r.targetWidth,l=r.targetHeight;return m.params.convertToPopover&&(a||void 0!==s&&void 0!==i)&&(m.params.forceToPopover||f.ios&&f.ipad||e.width>=768||f.desktop&&"aurora"===e.theme)&&(n=!0),n&&m.popoverHtml?((v=e.popover.create({containerEl:m.params.containerEl,content:m.popoverHtml,backdrop:m.params.backdrop,targetEl:a,targetX:s,targetY:i,targetWidth:c,targetHeight:l,on:{open:function(){m.$el||(m.$el=v.$el),m.$el.trigger("modal:open "+m.type.toLowerCase()+":open"),m.emit("local::open modalOpen "+m.type+"Open",m)},opened:function(){m.$el||(m.$el=v.$el),m.$el.trigger("modal:opened "+m.type.toLowerCase()+":opened"),m.emit("local::opened modalOpened "+m.type+"Opened",m)},close:function(){m.$el||(m.$el=v.$el),m.$el.trigger("modal:close "+m.type.toLowerCase()+":close"),m.emit("local::close modalClose "+m.type+"Close",m)},closed:function(){m.$el||(m.$el=v.$el),m.$el.trigger("modal:closed "+m.type.toLowerCase()+":closed"),m.emit("local::closed modalClosed "+m.type+"Closed",m)}}})).open(o),v.once("popoverOpened",(function(){v.$el.find(".list-button, .item-link").each((function(o){t(o).on("click",k)}))})),v.once("popoverClosed",(function(){v.$el.find(".list-button, .item-link").each((function(o){t(o).off("click",k)})),u((function(){v.destroy(),v=void 0}))}))):(m.$el=m.actionsHtml?t(m.actionsHtml):m.$el,m.$el[0].f7Modal=m,m.groups&&(m.$el.find(".actions-button").each((function(o){t(o).on("click",k)})),m.once("actionsClosed",(function(){m.$el.find(".actions-button").each((function(o){t(o).off("click",k)}))}))),m.el=m.$el[0],b.call(m,o)),m},m.close=function(o){return v?v.close(o):h.call(m,o),m},d(m,{app:e,$el:i,el:i?i[0]:void 0,$backdropEl:c,backdropEl:c&&c[0],type:"actions"}),m.params.closeOnEscape&&(m.on("open",(function(){t(document).on("keydown",$)})),m.on("close",(function(){t(document).off("keydown",$)}))),m.on("opened",(function(){(m.params.closeByBackdropClick||m.params.closeByOutsideClick)&&e.on("click",y)})),m.on("close",(function(){(m.params.closeByBackdropClick||m.params.closeByOutsideClick)&&e.off("click",y)})),i&&(i[0].f7Modal=m),m||p(a)}n=o,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,l(e,n);var s=a.prototype;return s.render=function(){var o=this;if(o.params.render)return o.params.render.call(o,o);var e=o.groups,t=o.params.cssClass;return $jsx("div",{class:"actions-modal"+(o.params.grid?" actions-grid":"")+" "+(t||"")},e.map((function(o){return $jsx("div",{class:"actions-group"},o.map((function(o){var e=["actions-"+(o.label?"label":"button")],t=o.color,n=o.bg,r=o.bold,a=o.disabled,s=o.label,i=o.text,c=o.icon;return t&&e.push("color-"+t),n&&e.push("bg-color-"+n),r&&e.push("actions-button-bold"),a&&e.push("disabled"),s?$jsx("div",{class:e.join(" ")},i):$jsx("div",{class:e.join(" ")},c&&$jsx("div",{class:"actions-button-media"},c),$jsx("div",{class:"actions-button-text"},i))})))})))},s.renderPopover=function(){var o=this;if(o.params.renderPopover)return o.params.renderPopover.call(o,o);var e=o.groups,t=o.params.cssClass;return $jsx("div",{class:"popover popover-from-actions "+(t||"")},$jsx("div",{class:"popover-inner"},e.map((function(o){return $jsx("div",{class:"list"},$jsx("ul",null,o.map((function(o){var e=[],t=o.color,n=o.bg,r=o.bold,a=o.disabled,s=o.label,i=o.text,c=o.icon;return t&&e.push("color-"+t),n&&e.push("bg-color-"+n),r&&e.push("popover-from-actions-bold"),a&&e.push("disabled"),s?(e.push("popover-from-actions-label"),'<li class="'+e.join(" ")+'">'+i+"</li>"):c?(e.push("item-link item-content"),$jsx("li",null,$jsx("a",{class:e.join(" ")},$jsx("div",{class:"item-media"},c),$jsx("div",{class:"item-inner"},$jsx("div",{class:"item-title"},i))))):(e.push("list-button"),$jsx("li",null,$jsx("a",{class:e.join(" ")},i)))}))))}))))},a}(a),f={name:"actions",params:{actions:{convertToPopover:!0,forceToPopover:!1,backdrop:!0,backdropEl:void 0,cssClass:null,closeByBackdropClick:!0,closeOnEscape:!1,render:null,renderPopover:null,containerEl:null}},static:{Actions:m},create:function(){this.actions=s({app:this,constructor:m,defaultSelector:".actions-modal.modal-in"})},clicks:{".actions-open":function(o,e){void 0===e&&(e={});this.actions.open(e.actions,e.animate,o)},".actions-close":function(o,e){void 0===e&&(e={});this.actions.close(e.actions,e.animate,o)}}};if(e){if(o.prototype.modules&&o.prototype.modules[f.name])return;o.use(f),o.instance&&(o.instance.useModuleParams(f,o.instance.params),o.instance.useModule(f))}return f}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))
1
+ import Actions from './actions-class.js';
2
+ import ModalMethods from '../../shared/modal-methods.js';
3
+ export default {
4
+ name: 'actions',
5
+ params: {
6
+ actions: {
7
+ convertToPopover: true,
8
+ forceToPopover: false,
9
+ backdrop: true,
10
+ backdropEl: undefined,
11
+ backdropUnique: false,
12
+ cssClass: null,
13
+ closeByBackdropClick: true,
14
+ closeOnEscape: false,
15
+ render: null,
16
+ renderPopover: null,
17
+ containerEl: null
18
+ }
19
+ },
20
+ static: {
21
+ Actions
22
+ },
23
+
24
+ create() {
25
+ const app = this;
26
+ app.actions = ModalMethods({
27
+ app,
28
+ constructor: Actions,
29
+ defaultSelector: '.actions-modal.modal-in'
30
+ });
31
+ },
32
+
33
+ clicks: {
34
+ '.actions-open': function openActions($clickedEl, data = {}) {
35
+ const app = this;
36
+ app.actions.open(data.actions, data.animate, $clickedEl);
37
+ },
38
+ '.actions-close': function closeActions($clickedEl, data = {}) {
39
+ const app = this;
40
+ app.actions.close(data.actions, data.animate, $clickedEl);
41
+ }
42
+ }
43
+ };
@@ -0,0 +1 @@
1
+ (function framework7ComponentLoader(o,e){void 0===e&&(e=!0);var s=o.$,a=o.utils,t=o.getDevice,l=(o.getSupport,o.Class,o.Modal),n=(o.ConstructorMethods,o.ModalMethods),r=a.extend,c=a.nextTick;class i extends l{constructor(o,e){const a=r({on:{}},o.params.actions,e);super(o,a);const l=this,n=t(),i=getWindow(),p=getDocument();let d,m,u;if(l.params=a,l.params.buttons&&(d=l.params.buttons,Array.isArray(d[0])||(d=[d])),l.groups=d,l.params.el?m=s(l.params.el).eq(0):l.params.content?m=s(l.params.content).filter((o=>1===o.nodeType)).eq(0):l.params.buttons&&(l.params.convertToPopover&&(l.popoverHtml=l.renderPopover()),l.actionsHtml=l.render()),m&&m.length>0&&m[0].f7Modal)return m[0].f7Modal;if(m&&0===m.length&&!l.actionsHtml&&!l.popoverHtml)return l.destroy();l.params.backdrop&&l.params.backdropEl?u=s(l.params.backdropEl):l.params.backdrop&&(l.params.backdropUnique?(u=s('<div class="popup-backdrop popup-backdrop-unique"></div>'),l.$containerEl.append(u)):u=l.$containerEl.children(".actions-backdrop"),0===u.length&&(u=s('<div class="actions-backdrop"></div>'),l.$containerEl.append(u)));const $=l.open,b=l.close;let v;function k(o){const e=s(this);let a,t;if(e.hasClass("list-button")||e.hasClass("item-link")?(a=e.parents("li").index(),t=e.parents(".list").index()):(a=e.index(),t=e.parents(".actions-group").index()),void 0!==d){const e=d[t][a];e.onClick&&e.onClick(l,o),l.params.onClick&&l.params.onClick(l,o),!1!==e.close&&l.close()}}function g(o){const e=o.target,a=s(e);!n.desktop&&n.cordova&&(i.Keyboard&&i.Keyboard.isVisible||i.cordova.plugins&&i.cordova.plugins.Keyboard&&i.cordova.plugins.Keyboard.isVisible)||0===a.closest(l.el).length&&(l.params.closeByBackdropClick&&l.params.backdrop&&l.backdropEl&&l.backdropEl===e||l.params.closeByOutsideClick)&&l.close()}function f(o){27===o.keyCode&&l.params.closeOnEscape&&l.close()}return l.open=function(e){let a=!1;const{targetEl:t,targetX:r,targetY:i,targetWidth:p,targetHeight:d}=l.params;return l.params.convertToPopover&&(t||void 0!==r&&void 0!==i)&&(l.params.forceToPopover||n.ios&&n.ipad||o.width>=768||n.desktop&&"aurora"===o.theme)&&(a=!0),a&&l.popoverHtml?(v=o.popover.create({containerEl:l.params.containerEl,content:l.popoverHtml,backdrop:l.params.backdrop,targetEl:t,targetX:r,targetY:i,targetWidth:p,targetHeight:d,on:{open(){l.$el||(l.$el=v.$el),l.$el.trigger(`modal:open ${l.type.toLowerCase()}:open`),l.emit(`local::open modalOpen ${l.type}Open`,l)},opened(){l.$el||(l.$el=v.$el),l.$el.trigger(`modal:opened ${l.type.toLowerCase()}:opened`),l.emit(`local::opened modalOpened ${l.type}Opened`,l)},close(){l.$el||(l.$el=v.$el),l.$el.trigger(`modal:close ${l.type.toLowerCase()}:close`),l.emit(`local::close modalClose ${l.type}Close`,l)},closed(){l.$el||(l.$el=v.$el),l.$el.trigger(`modal:closed ${l.type.toLowerCase()}:closed`),l.emit(`local::closed modalClosed ${l.type}Closed`,l)}}}),v.open(e),v.once("popoverOpened",(()=>{v.$el.find(".list-button, .item-link").each((o=>{s(o).on("click",k)}))})),v.once("popoverClosed",(()=>{v.$el.find(".list-button, .item-link").each((o=>{s(o).off("click",k)})),c((()=>{v.destroy(),v=void 0}))}))):(l.$el=l.actionsHtml?s(l.actionsHtml):l.$el,l.$el[0].f7Modal=l,l.groups&&(l.$el.find(".actions-button").each((o=>{s(o).on("click",k)})),l.once("actionsClosed",(()=>{l.$el.find(".actions-button").each((o=>{s(o).off("click",k)}))}))),l.el=l.$el[0],$.call(l,e)),l},l.close=function(o){return v?v.close(o):b.call(l,o),l},r(l,{app:o,$el:m,el:m?m[0]:void 0,$backdropEl:u,backdropEl:u&&u[0],type:"actions"}),l.params.closeOnEscape&&(l.on("open",(()=>{s(p).on("keydown",f)})),l.on("close",(()=>{s(p).off("keydown",f)}))),l.on("opened",(()=>{(l.params.closeByBackdropClick||l.params.closeByOutsideClick)&&o.on("click",g)})),l.on("close",(()=>{(l.params.closeByBackdropClick||l.params.closeByOutsideClick)&&o.off("click",g)})),m&&(m[0].f7Modal=l),l}render(){const o=this;if(o.params.render)return o.params.render.call(o,o);const{groups:e}=o,s=o.params.cssClass;return $jsx("div",{class:`actions-modal${o.params.grid?" actions-grid":""} ${s||""}`},e.map((o=>$jsx("div",{class:"actions-group"},o.map((o=>{const e=["actions-"+(o.label?"label":"button")],{color:s,bg:a,bold:t,disabled:l,label:n,text:r,icon:c}=o;return s&&e.push(`color-${s}`),a&&e.push(`bg-color-${a}`),t&&e.push("actions-button-bold"),l&&e.push("disabled"),n?$jsx("div",{class:e.join(" ")},r):$jsx("div",{class:e.join(" ")},c&&$jsx("div",{class:"actions-button-media"},c),$jsx("div",{class:"actions-button-text"},r))}))))))}renderPopover(){const o=this;if(o.params.renderPopover)return o.params.renderPopover.call(o,o);const{groups:e}=o,s=o.params.cssClass;return $jsx("div",{class:`popover popover-from-actions ${s||""}`},$jsx("div",{class:"popover-inner"},e.map((o=>$jsx("div",{class:"list"},$jsx("ul",null,o.map((o=>{const e=[],{color:s,bg:a,bold:t,disabled:l,label:n,text:r,icon:c}=o;return s&&e.push(`color-${s}`),a&&e.push(`bg-color-${a}`),t&&e.push("popover-from-actions-bold"),l&&e.push("disabled"),n?(e.push("popover-from-actions-label"),`<li class="${e.join(" ")}">${r}</li>`):c?(e.push("item-link item-content"),$jsx("li",null,$jsx("a",{class:e.join(" ")},$jsx("div",{class:"item-media"},c),$jsx("div",{class:"item-inner"},$jsx("div",{class:"item-title"},r))))):(e.push("list-button"),$jsx("li",null,$jsx("a",{class:e.join(" ")},r)))}))))))))}}var p={name:"actions",params:{actions:{convertToPopover:!0,forceToPopover:!1,backdrop:!0,backdropEl:void 0,backdropUnique:!1,cssClass:null,closeByBackdropClick:!0,closeOnEscape:!1,render:null,renderPopover:null,containerEl:null}},static:{Actions:i},create(){this.actions=n({app:this,constructor:i,defaultSelector:".actions-modal.modal-in"})},clicks:{".actions-open":function(o,e={}){this.actions.open(e.actions,e.animate,o)},".actions-close":function(o,e={}){this.actions.close(e.actions,e.animate,o)}}};if(e){if(o.prototype.modules&&o.prototype.modules[p.name])return;o.use(p),o.instance&&(o.instance.useModuleParams(p,o.instance.params),o.instance.useModule(p))}return p}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))
@@ -1,6 +1,9 @@
1
1
  /* === Actions === */
2
2
  @import './actions-vars.less';
3
3
  .actions-backdrop {
4
+ &-unique {
5
+ z-index: 13500;
6
+ }
4
7
  }
5
8
  .actions-modal {
6
9
  position: absolute;
@@ -53,8 +53,8 @@ export interface Framework7Parameters {
53
53
  language?: string;
54
54
  /** Array with default routes to all views.. (default []) */
55
55
  routes?: Router.RouteParameters[];
56
- /** Enables auto dark theme */
57
- autoDarkTheme?: boolean;
56
+ /** Enables auto dark mode */
57
+ autoDarkMode?: boolean;
58
58
  /** Lazy modules path */
59
59
  lazyModulesPath?: string;
60
60
  /** By default Framework7 will be initialized automatically when you call new Framework7(). If you want to prevent this behavior you can disable it with this option and then initialize it manually with init() when you need it.. (default true) */
@@ -116,8 +116,8 @@ export interface Framework7Plugin {
116
116
  export interface Framework7Events {
117
117
  /** Event will be fired on app initialization. Automatically after new Framework7() or after app.init() if you disabled auto init. */
118
118
  init: () => void;
119
- /** Event will be fired on device preferred color scheme change. It has effect only when `autoDarkTheme` enabled */
120
- darkThemeChange: (isDark: boolean) => void;
119
+ /** Event will be fired on device preferred color scheme change. It has effect only when `autoDarkMode` enabled */
120
+ darkModeChange: (isDark: boolean) => void;
121
121
  /** Event will be fired when app goes online */
122
122
  online: () => void;
123
123
  /** Event will be fired when app goes offline */
@@ -145,8 +145,8 @@ interface Framework7 extends Framework7Class<Framework7Events> {
145
145
  rtl: boolean;
146
146
  /** Current app theme. Can be md, ios or aurora */
147
147
  theme: string;
148
- /** Indicates whether the dark theme active or not. This property has effect only when `autoDarkTheme` enabled */
149
- darkTheme: boolean;
148
+ /** Indicates whether the dark mode active or not. This property has effect only when `autoDarkMode` enabled */
149
+ darkMode: boolean;
150
150
  /** Object with app root data passed on intialization */
151
151
  data: any;
152
152
  /** Object with app root methods */
@@ -159,10 +159,10 @@ interface Framework7 extends Framework7Class<Framework7Events> {
159
159
  $: Dom7;
160
160
  /** App parameters */
161
161
  params: Framework7Parameters;
162
- /** Enables auto dark theme detection */
163
- enableAutoDarkTheme(): void;
164
- /** Disables auto dark theme detection */
165
- disableAutoDarkTheme(): void;
162
+ /** Enables auto dark mode detection */
163
+ enableAutoDarkMode(): void;
164
+ /** Disables auto dark mode detection */
165
+ disableAutoDarkMode(): void;
166
166
  /** Initialize app. In case you disabled auto initialization with init: false parameter */
167
167
  init(): void;
168
168
  /** Load module */
@@ -1,56 +1,37 @@
1
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2
-
3
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4
-
5
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6
-
7
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
8
-
9
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
10
-
11
1
  /* eslint-disable no-underscore-dangle */
12
2
  import { getWindow, getDocument } from 'ssr-window';
13
- import { extend, nextFrame } from '../../shared/utils';
14
- import { getDevice } from '../../shared/get-device';
15
- import { getSupport } from '../../shared/get-support';
16
- import Framework7Class from '../../shared/class';
17
- import EventsClass from '../../shared/events-class';
18
- import ConstructorMethods from '../../shared/constructor-methods';
19
- import ModalMethods from '../../shared/modal-methods';
20
- import $ from '../../shared/dom7';
21
- import loadModule from './load-module';
22
-
23
- var Framework7 = /*#__PURE__*/function (_Framework7Class) {
24
- _inheritsLoose(Framework7, _Framework7Class);
25
-
26
- function Framework7(params) {
27
- var _this;
28
-
29
- if (params === void 0) {
30
- params = {};
31
- }
32
-
33
- _this = _Framework7Class.call(this, params) || this; // eslint-disable-next-line
3
+ import { extend, nextFrame } from '../../shared/utils.js';
4
+ import { getDevice } from '../../shared/get-device.js';
5
+ import { getSupport } from '../../shared/get-support.js';
6
+ import Framework7Class from '../../shared/class.js';
7
+ import EventsClass from '../../shared/events-class.js';
8
+ import ConstructorMethods from '../../shared/constructor-methods.js';
9
+ import ModalMethods from '../../shared/modal-methods.js';
10
+ import $ from '../../shared/dom7.js';
11
+ import loadModule from './load-module.js';
12
+
13
+ class Framework7 extends Framework7Class {
14
+ constructor(params = {}) {
15
+ super(params); // eslint-disable-next-line
34
16
 
35
17
  if (Framework7.instance && typeof window !== 'undefined') {
36
18
  throw new Error("Framework7 is already initialized and can't be initialized more than once");
37
19
  }
38
20
 
39
- var device = getDevice({
21
+ const device = getDevice({
40
22
  userAgent: params.userAgent || undefined
41
23
  });
42
- var support = getSupport();
43
- var passedParams = extend({}, params); // App Instance
44
-
45
- var app = _assertThisInitialized(_this);
24
+ const support = getSupport();
25
+ const passedParams = extend({}, params); // App Instance
46
26
 
27
+ const app = this;
47
28
  app.device = device;
48
29
  app.support = support;
49
- var w = getWindow();
50
- var d = getDocument();
30
+ const w = getWindow();
31
+ const d = getDocument();
51
32
  Framework7.instance = app; // Default
52
33
 
53
- var defaults = {
34
+ const defaults = {
54
35
  version: '1.0.0',
55
36
  id: 'io.framework7.myapp',
56
37
  el: 'body',
@@ -61,7 +42,7 @@ var Framework7 = /*#__PURE__*/function (_Framework7Class) {
61
42
  lazyModulesPath: null,
62
43
  initOnDeviceReady: true,
63
44
  init: true,
64
- autoDarkTheme: false,
45
+ autoDarkMode: false,
65
46
  iosTranslucentBars: true,
66
47
  iosTranslucentModals: true,
67
48
  component: undefined,
@@ -95,7 +76,7 @@ var Framework7 = /*#__PURE__*/function (_Framework7Class) {
95
76
  return app.params.theme;
96
77
  }(),
97
78
  // Initially passed parameters
98
- passedParams: passedParams,
79
+ passedParams,
99
80
  online: w.navigator.onLine
100
81
  });
101
82
  if (params.store) app.params.store = params.store; // Save Root
@@ -111,7 +92,7 @@ var Framework7 = /*#__PURE__*/function (_Framework7Class) {
111
92
 
112
93
  if (app.params.init) {
113
94
  if (device.cordova && app.params.initOnDeviceReady) {
114
- $(d).on('deviceready', function () {
95
+ $(d).on('deviceready', () => {
115
96
  app.init();
116
97
  });
117
98
  } else {
@@ -120,27 +101,25 @@ var Framework7 = /*#__PURE__*/function (_Framework7Class) {
120
101
  } // Return app instance
121
102
 
122
103
 
123
- return app || _assertThisInitialized(_this);
104
+ return app;
124
105
  }
125
106
 
126
- var _proto = Framework7.prototype;
127
-
128
- _proto.mount = function mount(rootEl) {
129
- var app = this;
130
- var window = getWindow();
131
- var document = getDocument();
132
- var $rootEl = $(rootEl || app.params.el).eq(0);
107
+ mount(rootEl) {
108
+ const app = this;
109
+ const window = getWindow();
110
+ const document = getDocument();
111
+ const $rootEl = $(rootEl || app.params.el).eq(0);
133
112
  app.$el = $rootEl;
134
113
 
135
114
  if (app.$el && app.$el[0]) {
136
115
  app.el = app.$el[0];
137
116
  app.el.f7 = app;
138
117
  app.rtl = $rootEl.css('direction') === 'rtl';
139
- } // Auto Dark Theme
118
+ } // Auto Dark Mode
140
119
 
141
120
 
142
- var DARK = '(prefers-color-scheme: dark)';
143
- var LIGHT = '(prefers-color-scheme: light)';
121
+ const DARK = '(prefers-color-scheme: dark)';
122
+ const LIGHT = '(prefers-color-scheme: light)';
144
123
  app.mq = {};
145
124
 
146
125
  if (window.matchMedia) {
@@ -148,46 +127,46 @@ var Framework7 = /*#__PURE__*/function (_Framework7Class) {
148
127
  app.mq.light = window.matchMedia(LIGHT);
149
128
  }
150
129
 
151
- app.colorSchemeListener = function colorSchemeListener(_ref) {
152
- var matches = _ref.matches,
153
- media = _ref.media;
154
-
130
+ app.colorSchemeListener = function colorSchemeListener({
131
+ matches,
132
+ media
133
+ }) {
155
134
  if (!matches) {
156
135
  return;
157
136
  }
158
137
 
159
- var html = document.querySelector('html');
138
+ const html = document.querySelector('html');
160
139
 
161
140
  if (media === DARK) {
162
- html.classList.add('theme-dark');
163
- app.darkTheme = true;
164
- app.emit('darkThemeChange', true);
141
+ html.classList.add('dark');
142
+ app.darkMode = true;
143
+ app.emit('darkModeChange', true);
165
144
  } else if (media === LIGHT) {
166
- html.classList.remove('theme-dark');
167
- app.darkTheme = false;
168
- app.emit('darkThemeChange', false);
145
+ html.classList.remove('dark');
146
+ app.darkMode = false;
147
+ app.emit('darkModeChange', false);
169
148
  }
170
149
  };
171
150
 
172
151
  app.emit('mount');
173
- };
152
+ }
174
153
 
175
- _proto.initStore = function initStore() {
176
- var app = this;
154
+ initStore() {
155
+ const app = this;
177
156
 
178
157
  if (typeof app.params.store !== 'undefined' && app.params.store.__store) {
179
158
  app.store = app.params.store;
180
159
  } else {
181
160
  app.store = app.createStore(app.params.store);
182
161
  }
183
- };
162
+ }
184
163
 
185
- _proto.enableAutoDarkTheme = function enableAutoDarkTheme() {
186
- var window = getWindow();
187
- var document = getDocument();
164
+ enableAutoDarkMode() {
165
+ const window = getWindow();
166
+ const document = getDocument();
188
167
  if (!window.matchMedia) return;
189
- var app = this;
190
- var html = document.querySelector('html');
168
+ const app = this;
169
+ const html = document.querySelector('html');
191
170
 
192
171
  if (app.mq.dark && app.mq.light) {
193
172
  app.mq.dark.addListener(app.colorSchemeListener);
@@ -195,64 +174,64 @@ var Framework7 = /*#__PURE__*/function (_Framework7Class) {
195
174
  }
196
175
 
197
176
  if (app.mq.dark && app.mq.dark.matches) {
198
- html.classList.add('theme-dark');
199
- app.darkTheme = true;
200
- app.emit('darkThemeChange', true);
177
+ html.classList.add('dark');
178
+ app.darkMode = true;
179
+ app.emit('darkModeChange', true);
201
180
  } else if (app.mq.light && app.mq.light.matches) {
202
- html.classList.remove('theme-dark');
203
- app.darkTheme = false;
204
- app.emit('darkThemeChange', false);
181
+ html.classList.remove('dark');
182
+ app.darkMode = false;
183
+ app.emit('darkModeChange', false);
205
184
  }
206
- };
185
+ }
207
186
 
208
- _proto.disableAutoDarkTheme = function disableAutoDarkTheme() {
209
- var window = getWindow();
187
+ disableAutoDarkMode() {
188
+ const window = getWindow();
210
189
  if (!window.matchMedia) return;
211
- var app = this;
190
+ const app = this;
212
191
  if (app.mq.dark) app.mq.dark.removeListener(app.colorSchemeListener);
213
192
  if (app.mq.light) app.mq.light.removeListener(app.colorSchemeListener);
214
- };
193
+ }
215
194
 
216
- _proto.initAppComponent = function initAppComponent(callback) {
217
- var app = this;
195
+ initAppComponent(callback) {
196
+ const app = this;
218
197
  app.router.componentLoader(app.params.component, app.params.componentUrl, {
219
198
  componentOptions: {
220
199
  el: app.$el[0]
221
200
  }
222
- }, function (el) {
201
+ }, el => {
223
202
  app.$el = $(el);
224
203
  app.$el[0].f7 = app;
225
204
  app.$elComponent = el.f7Component;
226
205
  app.el = app.$el[0];
227
206
  if (callback) callback();
228
- }, function () {});
229
- };
207
+ }, () => {});
208
+ }
230
209
 
231
- _proto.init = function init(rootEl) {
232
- var app = this;
210
+ init(rootEl) {
211
+ const app = this;
233
212
  app.mount(rootEl);
234
213
 
235
- var init = function init() {
214
+ const init = () => {
236
215
  if (app.initialized) return;
237
216
  app.$el.addClass('framework7-initializing'); // RTL attr
238
217
 
239
218
  if (app.rtl) {
240
219
  $('html').attr('dir', 'rtl');
241
- } // Auto Dark Theme
220
+ } // Auto Dark Mode
242
221
 
243
222
 
244
- if (app.params.autoDarkTheme) {
245
- app.enableAutoDarkTheme();
223
+ if (app.params.autoDarkMode) {
224
+ app.enableAutoDarkMode();
246
225
  } // Watch for online/offline state
247
226
 
248
227
 
249
- var window = getWindow();
250
- window.addEventListener('offline', function () {
228
+ const window = getWindow();
229
+ window.addEventListener('offline', () => {
251
230
  app.online = false;
252
231
  app.emit('offline');
253
232
  app.emit('connection', false);
254
233
  });
255
- window.addEventListener('online', function () {
234
+ window.addEventListener('online', () => {
256
235
  app.online = true;
257
236
  app.emit('online');
258
237
  app.emit('connection', true);
@@ -262,7 +241,7 @@ var Framework7 = /*#__PURE__*/function (_Framework7Class) {
262
241
 
263
242
  $('html').removeClass('ios md aurora').addClass(app.theme); // iOS Translucent
264
243
 
265
- var device = app.device;
244
+ const device = app.device;
266
245
 
267
246
  if (app.params.iosTranslucentBars && app.theme === 'ios' && device.ios) {
268
247
  $('html').addClass('ios-translucent-bars');
@@ -273,7 +252,7 @@ var Framework7 = /*#__PURE__*/function (_Framework7Class) {
273
252
  } // Init class
274
253
 
275
254
 
276
- nextFrame(function () {
255
+ nextFrame(() => {
277
256
  app.$el.removeClass('framework7-initializing');
278
257
  }); // Emit, init other modules
279
258
 
@@ -282,7 +261,7 @@ var Framework7 = /*#__PURE__*/function (_Framework7Class) {
282
261
  };
283
262
 
284
263
  if (app.params.component || app.params.componentUrl) {
285
- app.initAppComponent(function () {
264
+ app.initAppComponent(() => {
286
265
  init();
287
266
  });
288
267
  } else {
@@ -291,72 +270,60 @@ var Framework7 = /*#__PURE__*/function (_Framework7Class) {
291
270
 
292
271
  return app;
293
272
  } // eslint-disable-next-line
294
- ;
295
273
 
296
- _proto.loadModule = function loadModule() {
297
- return Framework7.loadModule.apply(Framework7, arguments);
274
+
275
+ loadModule(...args) {
276
+ return Framework7.loadModule(...args);
298
277
  } // eslint-disable-next-line
299
- ;
300
278
 
301
- _proto.loadModules = function loadModules() {
302
- return Framework7.loadModules.apply(Framework7, arguments);
303
- };
304
279
 
305
- _proto.getVnodeHooks = function getVnodeHooks(hook, id) {
306
- var app = this;
280
+ loadModules(...args) {
281
+ return Framework7.loadModules(...args);
282
+ }
283
+
284
+ getVnodeHooks(hook, id) {
285
+ const app = this;
307
286
  if (!app.vnodeHooks || !app.vnodeHooks[hook]) return [];
308
287
  return app.vnodeHooks[hook][id] || [];
309
288
  } // eslint-disable-next-line
310
- ;
311
289
 
312
- _createClass(Framework7, [{
313
- key: "$",
314
- get: function get() {
315
- return $;
316
- }
317
- }], [{
318
- key: "Dom7",
319
- get: function get() {
320
- return $;
321
- }
322
- }, {
323
- key: "$",
324
- get: function get() {
325
- return $;
326
- }
327
- }, {
328
- key: "device",
329
- get: function get() {
330
- return getDevice();
331
- }
332
- }, {
333
- key: "support",
334
- get: function get() {
335
- return getSupport();
336
- }
337
- }, {
338
- key: "Class",
339
- get: function get() {
340
- return Framework7Class;
341
- }
342
- }, {
343
- key: "Events",
344
- get: function get() {
345
- return EventsClass;
346
- }
347
- }]);
348
290
 
349
- return Framework7;
350
- }(Framework7Class);
291
+ get $() {
292
+ return $;
293
+ }
294
+
295
+ static get Dom7() {
296
+ return $;
297
+ }
298
+
299
+ static get $() {
300
+ return $;
301
+ }
302
+
303
+ static get device() {
304
+ return getDevice();
305
+ }
306
+
307
+ static get support() {
308
+ return getSupport();
309
+ }
310
+
311
+ static get Class() {
312
+ return Framework7Class;
313
+ }
314
+
315
+ static get Events() {
316
+ return EventsClass;
317
+ }
318
+
319
+ }
351
320
 
352
321
  Framework7.ModalMethods = ModalMethods;
353
322
  Framework7.ConstructorMethods = ConstructorMethods;
354
323
  Framework7.loadModule = loadModule;
355
324
 
356
325
  Framework7.loadModules = function loadModules(modules) {
357
- return Promise.all(modules.map(function (module) {
358
- return Framework7.loadModule(module);
359
- }));
326
+ return Promise.all(modules.map(module => Framework7.loadModule(module)));
360
327
  };
361
328
 
362
329
  export default Framework7;
@@ -34,11 +34,11 @@ body {
34
34
  line-height: var(--f7-line-height);
35
35
  color: var(--f7-text-color);
36
36
  }
37
- .theme-dark body,
38
- body.theme-dark {
37
+ .dark body,
38
+ body.dark {
39
39
  background: #000;
40
40
  }
41
- .theme-dark {
41
+ .dark {
42
42
  color: var(--f7-text-color);
43
43
  }
44
44
  .framework7-root {