framework7 6.3.4 → 7.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/accordion.js +132 -1
- package/components/accordion/accordion.umd.js +1 -0
- package/components/actions/actions-class.js +365 -0
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.js +42 -1
- package/components/actions/actions.umd.js +1 -0
- package/components/app/app-class.d.ts +10 -10
- package/{esm/components → components}/app/app-class.js +107 -140
- package/components/app/app.less +3 -3
- package/{esm/components → components}/app/load-module.js +32 -32
- package/components/appbar/appbar.js +3 -1
- package/components/appbar/appbar.umd.js +1 -0
- package/components/area-chart/area-chart-class.js +507 -0
- package/components/area-chart/area-chart-rtl.css +1 -1
- package/components/area-chart/area-chart.css +1 -1
- package/components/area-chart/area-chart.js +47 -1
- package/components/area-chart/area-chart.umd.js +1 -0
- package/{esm/components → components}/autocomplete/autocomplete-class.js +241 -253
- package/components/autocomplete/autocomplete-rtl.css +1 -1
- package/components/autocomplete/autocomplete.css +1 -1
- package/components/autocomplete/autocomplete.js +86 -1
- package/components/autocomplete/autocomplete.umd.js +1 -0
- package/{esm/components → components}/badge/badge.js +0 -0
- package/{esm/components → components}/block/block.js +0 -0
- package/{esm/components → components}/button/button.js +0 -0
- package/{esm/components → components}/calendar/calendar-class.js +676 -643
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar.css +1 -1
- package/components/calendar/calendar.js +111 -1
- package/components/calendar/calendar.umd.js +1 -0
- package/components/card/card-rtl.css +1 -1
- package/components/card/card.css +1 -1
- package/components/card/card.js +592 -1
- package/components/card/card.umd.js +1 -0
- package/components/checkbox/checkbox-rtl.css +1 -1
- package/components/checkbox/checkbox.css +1 -1
- package/components/checkbox/checkbox.js +3 -1
- package/components/checkbox/checkbox.umd.js +1 -0
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip.css +1 -1
- package/components/chip/chip.js +3 -1
- package/components/chip/chip.umd.js +1 -0
- package/{esm/components → components}/color-picker/color-picker-class.js +336 -349
- package/components/color-picker/color-picker-rtl.css +1 -1
- package/components/color-picker/color-picker.css +1 -1
- package/components/color-picker/color-picker.js +92 -1
- package/components/color-picker/color-picker.umd.js +1 -0
- package/{esm/components → components}/color-picker/modules/alpha-slider.js +30 -19
- package/{esm/components → components}/color-picker/modules/brightness-slider.js +35 -24
- package/{esm/components → components}/color-picker/modules/current-color.js +4 -2
- package/{esm/components → components}/color-picker/modules/hex.js +27 -16
- package/{esm/components → components}/color-picker/modules/hs-spectrum.js +37 -25
- package/{esm/components → components}/color-picker/modules/hsb-sliders.js +54 -41
- package/{esm/components → components}/color-picker/modules/hue-slider.js +29 -18
- package/{esm/components → components}/color-picker/modules/initial-current-colors.js +14 -9
- package/{esm/components → components}/color-picker/modules/palette.js +14 -11
- package/{esm/components → components}/color-picker/modules/rgb-bars.js +42 -29
- package/{esm/components → components}/color-picker/modules/rgb-sliders.js +47 -34
- package/{esm/components → components}/color-picker/modules/sb-spectrum.js +38 -26
- package/{esm/components → components}/color-picker/modules/wheel.js +59 -47
- package/components/contacts-list/contacts-list-rtl.css +1 -1
- package/components/contacts-list/contacts-list.css +1 -1
- package/components/contacts-list/contacts-list.js +3 -1
- package/components/contacts-list/contacts-list.umd.js +1 -0
- package/{esm/components → components}/data-table/data-table-class.js +40 -59
- package/components/data-table/data-table-rtl.css +1 -1
- package/components/data-table/data-table.css +1 -1
- package/components/data-table/data-table.js +72 -1
- package/components/data-table/data-table.umd.js +1 -0
- package/{esm/components → components}/dialog/dialog-class.js +58 -67
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog.css +1 -1
- package/components/dialog/dialog.js +254 -1
- package/components/dialog/dialog.umd.js +1 -0
- package/components/elevation/elevation.js +3 -1
- package/components/elevation/elevation.umd.js +1 -0
- package/components/fab/fab.js +181 -1
- package/components/fab/fab.umd.js +1 -0
- package/components/form/form.js +347 -1
- package/components/form/form.umd.js +1 -0
- package/components/gauge/gauge-class.js +306 -0
- package/components/gauge/gauge.js +99 -1
- package/components/gauge/gauge.umd.js +1 -0
- package/components/grid/grid-rtl.css +1 -1
- package/components/grid/grid.css +1 -1
- package/components/grid/grid.js +227 -1
- package/components/grid/grid.umd.js +1 -0
- package/{esm/components → components}/icon/icon.js +0 -0
- package/components/infinite-scroll/infinite-scroll.js +110 -1
- package/components/infinite-scroll/infinite-scroll.umd.js +1 -0
- package/components/input/input-rtl.css +1 -1
- package/components/input/input.css +1 -1
- package/components/input/input.js +394 -1
- package/components/input/input.less +1 -1
- package/components/input/input.umd.js +1 -0
- package/components/lazy/lazy.js +283 -1
- package/components/lazy/lazy.umd.js +1 -0
- package/{esm/components → components}/link/link.js +0 -0
- package/{esm/components → components}/list/list.js +0 -0
- package/{esm/components → components}/list-index/list-index-class.js +113 -121
- package/components/list-index/list-index-rtl.css +1 -1
- package/components/list-index/list-index.css +1 -1
- package/components/list-index/list-index.js +73 -1
- package/components/list-index/list-index.umd.js +1 -0
- package/components/login-screen/login-screen-class.js +43 -0
- package/components/login-screen/login-screen-rtl.css +1 -1
- package/components/login-screen/login-screen.css +1 -1
- package/components/login-screen/login-screen.js +28 -1
- package/components/login-screen/login-screen.less +1 -1
- package/components/login-screen/login-screen.umd.js +1 -0
- package/components/menu/menu.js +79 -1
- package/components/menu/menu.umd.js +1 -0
- package/{esm/components → components}/messagebar/messagebar-class.js +124 -152
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar.css +1 -1
- package/components/messagebar/messagebar.js +74 -1
- package/components/messagebar/messagebar.umd.js +1 -0
- package/{esm/components → components}/messages/messages-class.js +162 -242
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages.css +1 -1
- package/components/messages/messages.js +73 -1
- package/components/messages/messages.umd.js +1 -0
- package/{esm/components → components}/modal/custom-modal-class.js +16 -29
- package/{esm/components → components}/modal/modal-class.js +68 -83
- package/{esm/components → components}/modal/modal.js +8 -5
- package/{esm/components → components}/navbar/navbar.js +166 -171
- package/components/notification/notification-aurora.less +1 -1
- package/{esm/components → components}/notification/notification-class.js +65 -78
- package/components/notification/notification-ios.less +1 -1
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification.css +1 -1
- package/components/notification/notification.js +35 -1
- package/components/notification/notification.umd.js +1 -0
- package/components/page/page-vars.less +1 -1
- package/{esm/components → components}/page/page.js +0 -0
- package/{esm/components → components}/panel/panel-class.js +183 -214
- package/components/panel/panel-rtl.css +1 -1
- package/components/panel/panel.css +1 -1
- package/components/panel/panel.js +190 -1
- package/components/panel/panel.umd.js +1 -0
- package/{esm/components → components}/panel/resizable-panel.js +30 -28
- package/{esm/components → components}/panel/swipe-panel.js +46 -44
- package/{esm/components → components}/photo-browser/photo-browser-class.js +206 -234
- package/components/photo-browser/photo-browser.js +73 -1
- package/components/photo-browser/photo-browser.umd.js +1 -0
- package/{esm/components → components}/picker/picker-class.js +233 -233
- package/{esm/components → components}/picker/picker-column.js +70 -72
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker.css +1 -1
- package/components/picker/picker.js +64 -1
- package/components/picker/picker.umd.js +1 -0
- package/components/pie-chart/pie-chart-class.js +264 -0
- package/components/pie-chart/pie-chart.js +35 -1
- package/components/pie-chart/pie-chart.umd.js +1 -0
- package/{esm/components → components}/popover/popover-class.js +72 -97
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.js +76 -1
- package/components/popover/popover.umd.js +1 -0
- package/{esm/components → components}/popup/popup-class.js +66 -81
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.js +41 -1
- package/components/popup/popup.less +21 -21
- package/components/popup/popup.umd.js +1 -0
- package/components/preloader/preloader.js +115 -1
- package/components/preloader/preloader.umd.js +1 -0
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar.css +1 -1
- package/components/progressbar/progressbar.js +166 -1
- package/components/progressbar/progressbar.umd.js +1 -0
- package/{esm/components → components}/pull-to-refresh/pull-to-refresh-class.js +101 -118
- package/components/pull-to-refresh/pull-to-refresh.js +70 -1
- package/components/pull-to-refresh/pull-to-refresh.umd.js +1 -0
- package/components/radio/radio-rtl.css +1 -1
- package/components/radio/radio.css +1 -1
- package/components/radio/radio.js +3 -1
- package/components/radio/radio.umd.js +1 -0
- package/{esm/components → components}/range/range-class.js +191 -192
- package/components/range/range-rtl.css +1 -1
- package/components/range/range.css +1 -1
- package/components/range/range.js +79 -1
- package/components/range/range.umd.js +1 -0
- package/components/searchbar/remove-diacritics.js +275 -0
- package/{esm/components → components}/searchbar/searchbar-class.js +129 -146
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar.css +1 -1
- package/components/searchbar/searchbar.js +121 -1
- package/components/searchbar/searchbar.less +1 -1
- package/components/searchbar/searchbar.umd.js +1 -0
- package/{esm/components → components}/sheet/sheet-class.js +87 -106
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet.css +1 -1
- package/components/sheet/sheet.js +68 -1
- package/components/sheet/sheet.less +16 -16
- package/components/sheet/sheet.umd.js +1 -0
- package/components/skeleton/skeleton-rtl.css +1 -1
- package/components/skeleton/skeleton-vars.less +1 -1
- package/components/skeleton/skeleton.css +1 -1
- package/components/skeleton/skeleton.js +3 -1
- package/components/skeleton/skeleton.less +1 -1
- package/components/skeleton/skeleton.umd.js +1 -0
- package/{esm/components → components}/smart-select/smart-select-class.js +284 -296
- package/components/smart-select/smart-select.js +149 -1
- package/components/smart-select/smart-select.umd.js +1 -0
- package/components/sortable/sortable-rtl.css +1 -1
- package/components/sortable/sortable.css +1 -1
- package/components/sortable/sortable.js +293 -1
- package/components/sortable/sortable.umd.js +1 -0
- package/{esm/components → components}/statusbar/statusbar.js +48 -41
- package/{esm/components → components}/stepper/stepper-class.js +104 -115
- package/components/stepper/stepper-rtl.css +1 -1
- package/components/stepper/stepper.css +1 -1
- package/components/stepper/stepper.js +86 -1
- package/components/stepper/stepper.umd.js +1 -0
- package/{esm/components → components}/subnavbar/subnavbar.js +3 -2
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout.css +1 -1
- package/components/swipeout/swipeout.js +597 -1
- package/components/swipeout/swipeout.umd.js +1 -0
- package/components/swiper/swiper-rtl.css +1 -1
- package/components/swiper/swiper.css +1 -1
- package/components/swiper/swiper.js +191 -1
- package/components/swiper/swiper.less +1 -1
- package/components/swiper/swiper.umd.js +1 -0
- package/components/tabs/tabs.js +272 -1
- package/components/tabs/tabs.umd.js +1 -0
- package/{esm/components → components}/text-editor/text-editor-class.js +170 -182
- package/components/text-editor/text-editor-rtl.css +1 -1
- package/components/text-editor/text-editor.css +1 -1
- package/components/text-editor/text-editor.js +89 -1
- package/components/text-editor/text-editor.umd.js +1 -0
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline.css +1 -1
- package/components/timeline/timeline.js +3 -1
- package/components/timeline/timeline.umd.js +1 -0
- package/components/toast/toast-class.js +119 -0
- package/components/toast/toast.js +43 -1
- package/components/toast/toast.umd.js +1 -0
- package/{esm/components → components}/toggle/toggle-class.js +46 -63
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle.css +1 -1
- package/components/toggle/toggle.js +65 -1
- package/components/toggle/toggle.umd.js +1 -0
- package/{esm/components → components}/toolbar/toolbar.js +63 -59
- package/{esm/components → components}/tooltip/tooltip-class.js +95 -106
- package/components/tooltip/tooltip.js +144 -1
- package/components/tooltip/tooltip.umd.js +1 -0
- package/components/touch-ripple/touch-ripple-class.js +98 -0
- package/components/touch-ripple/touch-ripple-vars.less +1 -1
- package/components/touch-ripple/touch-ripple.js +18 -0
- package/components/treeview/treeview-rtl.css +1 -1
- package/components/treeview/treeview.css +1 -1
- package/components/treeview/treeview.js +83 -1
- package/components/treeview/treeview.umd.js +1 -0
- package/components/typography/typography.js +3 -1
- package/components/typography/typography.umd.js +1 -0
- package/{esm/components → components}/view/resizable-view.js +23 -21
- package/{esm/components → components}/view/view-class.js +48 -67
- package/{esm/components → components}/view/view.js +37 -28
- package/{esm/components → components}/virtual-list/virtual-list-class.js +153 -170
- package/components/virtual-list/virtual-list.js +19 -1
- package/components/virtual-list/virtual-list.umd.js +1 -0
- package/framework7-bundle-rtl.css +268 -852
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +268 -852
- package/{esm/framework7-bundle.js → framework7-bundle.esm.js} +2 -2
- package/framework7-bundle.js +30782 -31429
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +3 -3
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/{esm/framework7-lite-bundle.js → framework7-lite-bundle.esm.js} +2 -2
- package/{esm/framework7-lite.js → framework7-lite.esm.js} +2 -2
- package/framework7-rtl.css +52 -56
- package/framework7-rtl.min.css +3 -3
- package/{types/types.d.ts → framework7-types.d.ts} +0 -0
- package/framework7.css +52 -56
- package/framework7.d.ts +81 -81
- package/{esm/framework7.js → framework7.esm.js} +2 -2
- package/framework7.js +3386 -4049
- package/framework7.js.map +1 -1
- package/framework7.less +2 -2
- package/framework7.min.css +3 -3
- package/framework7.min.js +3 -3
- package/framework7.min.js.map +1 -1
- package/less/mixins.less +2 -2
- package/{esm/modules → modules}/clicks/clicks.js +17 -16
- package/modules/component/$h.js +14 -0
- package/modules/component/$jsx.js +18 -0
- package/modules/component/component-class.js +382 -0
- package/modules/component/component.d.ts +2 -0
- package/{esm/modules → modules}/component/component.js +23 -17
- package/{esm/modules → modules}/component/custom-components.js +0 -0
- package/{esm/modules → modules}/component/eventslisteners.js +14 -18
- package/modules/component/parse-component.js +80 -0
- package/{esm/modules → modules}/component/patch.js +1 -1
- package/{esm/modules → modules}/component/snabbdom/h.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/helpers/attachto.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/hooks.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/htmldomapi.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/is.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/attributes.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/class.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/dataset.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/eventlisteners.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/hero.js +1 -1
- package/{esm/modules → modules}/component/snabbdom/modules/module.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/props.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/style.js +1 -1
- package/{esm/modules → modules}/component/snabbdom/snabbdom.bundle.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/snabbdom.js +6 -18
- package/{esm/modules → modules}/component/snabbdom/thunk.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/tovnode.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/vnode.js +0 -0
- package/{esm/modules → modules}/component/vdom.js +106 -130
- package/{esm/modules → modules}/demo-module.js +15 -7
- package/{esm/modules → modules}/device/device.js +12 -11
- package/{esm/modules → modules}/history/history.js +2 -1
- package/{esm/modules → modules}/request/request.js +2 -2
- package/modules/resize/resize.js +65 -0
- package/{esm/modules → modules}/router/app-router-check.js +1 -1
- package/{esm/modules → modules}/router/async-component.js +3 -3
- package/{esm/modules → modules}/router/back.js +117 -117
- package/{esm/modules → modules}/router/clear-previous-history.js +8 -8
- package/modules/router/component-loader.js +174 -0
- package/{esm/modules → modules}/router/modal.js +49 -49
- package/{esm/modules → modules}/router/navigate.js +140 -221
- package/{esm/modules → modules}/router/process-route-queue.js +20 -17
- package/{esm/modules → modules}/router/redirect.js +7 -11
- package/{esm/modules → modules}/router/router-class.js +411 -432
- package/{esm/modules → modules}/router/router.js +5 -3
- package/{esm/modules → modules}/router/swipe-back.js +143 -177
- package/{esm/modules → modules}/router/tab.js +46 -46
- package/{esm/modules → modules}/service-worker/service-worker.js +41 -37
- package/modules/store/create-store.js +149 -0
- package/{esm/modules → modules}/store/store.js +2 -2
- package/{esm/modules → modules}/support/support.js +1 -1
- package/{esm/modules → modules}/touch/touch.js +71 -70
- package/{esm/modules → modules}/utils/utils.js +2 -2
- package/package.json +252 -11
- package/shared/$jsx.js +22 -0
- package/shared/class.js +143 -0
- package/shared/constructor-methods.js +42 -0
- package/{esm/shared → shared}/dom7.js +2 -1
- package/shared/events-class.js +100 -0
- package/{types/shared → shared}/get-device.d.ts +0 -0
- package/{esm/shared → shared}/get-device.js +32 -37
- package/{types/shared → shared}/get-support.d.ts +0 -0
- package/{esm/shared → shared}/get-support.js +7 -6
- package/{esm/shared → shared}/history.js +61 -47
- package/shared/modal-methods.js +90 -0
- package/{types/shared → shared}/request.d.ts +0 -0
- package/shared/request.js +474 -0
- package/{types/shared → shared}/utils.d.ts +0 -0
- package/{esm/shared → shared}/utils.js +125 -162
- package/bundle/package.json +0 -8
- package/cjs/components/accordion/accordion.js +0 -136
- package/cjs/components/actions/actions-class.js +0 -383
- package/cjs/components/actions/actions.js +0 -58
- package/cjs/components/app/app-class.js +0 -378
- package/cjs/components/app/load-module.js +0 -155
- package/cjs/components/appbar/appbar.js +0 -8
- package/cjs/components/area-chart/area-chart-class.js +0 -526
- package/cjs/components/area-chart/area-chart.js +0 -56
- package/cjs/components/autocomplete/autocomplete-class.js +0 -975
- package/cjs/components/autocomplete/autocomplete.js +0 -93
- package/cjs/components/badge/badge.js +0 -8
- package/cjs/components/block/block.js +0 -8
- package/cjs/components/button/button.js +0 -8
- package/cjs/components/calendar/calendar-class.js +0 -2078
- package/cjs/components/calendar/calendar.js +0 -124
- package/cjs/components/card/card.js +0 -625
- package/cjs/components/checkbox/checkbox.js +0 -8
- package/cjs/components/chip/chip.js +0 -8
- package/cjs/components/color-picker/color-picker-class.js +0 -1022
- package/cjs/components/color-picker/color-picker.js +0 -105
- package/cjs/components/color-picker/modules/alpha-slider.js +0 -101
- package/cjs/components/color-picker/modules/brightness-slider.js +0 -86
- package/cjs/components/color-picker/modules/current-color.js +0 -23
- package/cjs/components/color-picker/modules/hex.js +0 -81
- package/cjs/components/color-picker/modules/hs-spectrum.js +0 -137
- package/cjs/components/color-picker/modules/hsb-sliders.js +0 -206
- package/cjs/components/color-picker/modules/hue-slider.js +0 -78
- package/cjs/components/color-picker/modules/initial-current-colors.js +0 -54
- package/cjs/components/color-picker/modules/palette.js +0 -61
- package/cjs/components/color-picker/modules/rgb-bars.js +0 -196
- package/cjs/components/color-picker/modules/rgb-sliders.js +0 -198
- package/cjs/components/color-picker/modules/sb-spectrum.js +0 -137
- package/cjs/components/color-picker/modules/wheel.js +0 -198
- package/cjs/components/contacts-list/contacts-list.js +0 -8
- package/cjs/components/data-table/data-table-class.js +0 -188
- package/cjs/components/data-table/data-table.js +0 -75
- package/cjs/components/dialog/dialog-class.js +0 -250
- package/cjs/components/dialog/dialog.js +0 -297
- package/cjs/components/elevation/elevation.js +0 -8
- package/cjs/components/fab/fab.js +0 -195
- package/cjs/components/form/form.js +0 -341
- package/cjs/components/gauge/gauge-class.js +0 -332
- package/cjs/components/gauge/gauge.js +0 -103
- package/cjs/components/grid/grid.js +0 -233
- package/cjs/components/icon/icon.js +0 -8
- package/cjs/components/infinite-scroll/infinite-scroll.js +0 -111
- package/cjs/components/input/input.js +0 -396
- package/cjs/components/lazy/lazy.js +0 -283
- package/cjs/components/link/link.js +0 -8
- package/cjs/components/list/list.js +0 -8
- package/cjs/components/list-index/list-index-class.js +0 -405
- package/cjs/components/list-index/list-index.js +0 -77
- package/cjs/components/login-screen/login-screen-class.js +0 -68
- package/cjs/components/login-screen/login-screen.js +0 -44
- package/cjs/components/menu/menu.js +0 -92
- package/cjs/components/messagebar/messagebar-class.js +0 -446
- package/cjs/components/messagebar/messagebar.js +0 -78
- package/cjs/components/messages/messages-class.js +0 -633
- package/cjs/components/messages/messages.js +0 -76
- package/cjs/components/modal/custom-modal-class.js +0 -99
- package/cjs/components/modal/modal-class.js +0 -277
- package/cjs/components/modal/modal.js +0 -32
- package/cjs/components/navbar/navbar.js +0 -833
- package/cjs/components/notification/notification-class.js +0 -269
- package/cjs/components/notification/notification.js +0 -44
- package/cjs/components/page/page.js +0 -8
- package/cjs/components/panel/panel-class.js +0 -660
- package/cjs/components/panel/panel.js +0 -219
- package/cjs/components/panel/resizable-panel.js +0 -197
- package/cjs/components/panel/swipe-panel.js +0 -363
- package/cjs/components/photo-browser/photo-browser-class.js +0 -781
- package/cjs/components/photo-browser/photo-browser.js +0 -78
- package/cjs/components/picker/picker-class.js +0 -704
- package/cjs/components/picker/picker-column.js +0 -389
- package/cjs/components/picker/picker.js +0 -77
- package/cjs/components/pie-chart/pie-chart-class.js +0 -290
- package/cjs/components/pie-chart/pie-chart.js +0 -44
- package/cjs/components/popover/popover-class.js +0 -365
- package/cjs/components/popover/popover.js +0 -93
- package/cjs/components/popup/popup-class.js +0 -416
- package/cjs/components/popup/popup.js +0 -57
- package/cjs/components/preloader/preloader.js +0 -111
- package/cjs/components/progressbar/progressbar.js +0 -185
- package/cjs/components/pull-to-refresh/pull-to-refresh-class.js +0 -627
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +0 -74
- package/cjs/components/radio/radio.js +0 -8
- package/cjs/components/range/range-class.js +0 -674
- package/cjs/components/range/range.js +0 -93
- package/cjs/components/searchbar/remove-diacritics.js +0 -283
- package/cjs/components/searchbar/searchbar-class.js +0 -739
- package/cjs/components/searchbar/searchbar.js +0 -141
- package/cjs/components/sheet/sheet-class.js +0 -583
- package/cjs/components/sheet/sheet.js +0 -83
- package/cjs/components/skeleton/skeleton.js +0 -8
- package/cjs/components/smart-select/smart-select-class.js +0 -1005
- package/cjs/components/smart-select/smart-select.js +0 -151
- package/cjs/components/sortable/sortable.js +0 -322
- package/cjs/components/statusbar/statusbar.js +0 -226
- package/cjs/components/stepper/stepper-class.js +0 -497
- package/cjs/components/stepper/stepper.js +0 -96
- package/cjs/components/subnavbar/subnavbar.js +0 -28
- package/cjs/components/swipeout/swipeout.js +0 -618
- package/cjs/components/swiper/swiper.js +0 -189
- package/cjs/components/tabs/tabs.js +0 -296
- package/cjs/components/text-editor/text-editor-class.js +0 -627
- package/cjs/components/text-editor/text-editor.js +0 -93
- package/cjs/components/timeline/timeline.js +0 -8
- package/cjs/components/toast/toast-class.js +0 -142
- package/cjs/components/toast/toast.js +0 -51
- package/cjs/components/toggle/toggle-class.js +0 -213
- package/cjs/components/toggle/toggle.js +0 -72
- package/cjs/components/toolbar/toolbar.js +0 -234
- package/cjs/components/tooltip/tooltip-class.js +0 -409
- package/cjs/components/tooltip/tooltip.js +0 -146
- package/cjs/components/touch-ripple/touch-ripple-class.js +0 -110
- package/cjs/components/touch-ripple/touch-ripple.js +0 -34
- package/cjs/components/treeview/treeview.js +0 -88
- package/cjs/components/typography/typography.js +0 -8
- package/cjs/components/view/resizable-view.js +0 -155
- package/cjs/components/view/view-class.js +0 -251
- package/cjs/components/view/view.js +0 -196
- package/cjs/components/virtual-list/virtual-list-class.js +0 -654
- package/cjs/components/virtual-list/virtual-list.js +0 -27
- package/cjs/framework7-bundle.js +0 -208
- package/cjs/framework7-lite-bundle.js +0 -191
- package/cjs/framework7-lite.js +0 -87
- package/cjs/framework7.js +0 -98
- package/cjs/modules/clicks/clicks.js +0 -115
- package/cjs/modules/component/$h.js +0 -31
- package/cjs/modules/component/$jsx.js +0 -31
- package/cjs/modules/component/component-class.js +0 -415
- package/cjs/modules/component/component.js +0 -58
- package/cjs/modules/component/custom-components.js +0 -6
- package/cjs/modules/component/eventslisteners.js +0 -90
- package/cjs/modules/component/parse-component.js +0 -80
- package/cjs/modules/component/patch.js +0 -21
- package/cjs/modules/component/snabbdom/h.js +0 -72
- package/cjs/modules/component/snabbdom/helpers/attachto.js +0 -62
- package/cjs/modules/component/snabbdom/hooks.js +0 -1
- package/cjs/modules/component/snabbdom/htmldomapi.js +0 -90
- package/cjs/modules/component/snabbdom/is.js +0 -11
- package/cjs/modules/component/snabbdom/modules/attributes.js +0 -61
- package/cjs/modules/component/snabbdom/modules/class.js +0 -38
- package/cjs/modules/component/snabbdom/modules/dataset.js +0 -47
- package/cjs/modules/component/snabbdom/modules/eventlisteners.js +0 -106
- package/cjs/modules/component/snabbdom/modules/hero.js +0 -193
- package/cjs/modules/component/snabbdom/modules/module.js +0 -1
- package/cjs/modules/component/snabbdom/modules/props.js +0 -40
- package/cjs/modules/component/snabbdom/modules/style.js +0 -116
- package/cjs/modules/component/snabbdom/snabbdom.bundle.js +0 -33
- package/cjs/modules/component/snabbdom/snabbdom.js +0 -374
- package/cjs/modules/component/snabbdom/thunk.js +0 -66
- package/cjs/modules/component/snabbdom/tovnode.js +0 -57
- package/cjs/modules/component/snabbdom/vnode.js +0 -20
- package/cjs/modules/component/vdom.js +0 -393
- package/cjs/modules/demo-module.js +0 -49
- package/cjs/modules/device/device.js +0 -56
- package/cjs/modules/history/history.js +0 -21
- package/cjs/modules/request/request.js +0 -20
- package/cjs/modules/resize/resize.js +0 -72
- package/cjs/modules/router/app-router-check.js +0 -10
- package/cjs/modules/router/async-component.js +0 -33
- package/cjs/modules/router/back.js +0 -899
- package/cjs/modules/router/clear-previous-history.js +0 -50
- package/cjs/modules/router/component-loader.js +0 -140
- package/cjs/modules/router/modal.js +0 -254
- package/cjs/modules/router/navigate.js +0 -1054
- package/cjs/modules/router/process-route-queue.js +0 -80
- package/cjs/modules/router/redirect.js +0 -52
- package/cjs/modules/router/router-class.js +0 -1500
- package/cjs/modules/router/router.js +0 -36
- package/cjs/modules/router/swipe-back.js +0 -735
- package/cjs/modules/router/tab.js +0 -264
- package/cjs/modules/service-worker/service-worker.js +0 -101
- package/cjs/modules/store/create-store.js +0 -169
- package/cjs/modules/store/store.js +0 -21
- package/cjs/modules/support/support.js +0 -14
- package/cjs/modules/touch/touch.js +0 -585
- package/cjs/modules/utils/utils.js +0 -21
- package/cjs/shared/$jsx.js +0 -39
- package/cjs/shared/class.js +0 -206
- package/cjs/shared/constructor-methods.js +0 -73
- package/cjs/shared/dom7.js +0 -17
- package/cjs/shared/events-class.js +0 -125
- package/cjs/shared/get-device.js +0 -157
- package/cjs/shared/get-support.js +0 -44
- package/cjs/shared/history.js +0 -185
- package/cjs/shared/modal-methods.js +0 -105
- package/cjs/shared/request.js +0 -552
- package/cjs/shared/utils.js +0 -472
- package/components/accordion/package.json +0 -9
- package/components/actions/package.json +0 -9
- package/components/app/package.json +0 -9
- package/components/appbar/package.json +0 -9
- package/components/area-chart/package.json +0 -9
- package/components/autocomplete/package.json +0 -9
- package/components/badge/package.json +0 -9
- package/components/block/package.json +0 -9
- package/components/button/package.json +0 -9
- package/components/calendar/package.json +0 -9
- package/components/card/package.json +0 -9
- package/components/checkbox/package.json +0 -9
- package/components/chip/package.json +0 -9
- package/components/color-picker/package.json +0 -9
- package/components/contacts-list/package.json +0 -9
- package/components/data-table/package.json +0 -9
- package/components/dialog/package.json +0 -9
- package/components/elevation/package.json +0 -9
- package/components/fab/package.json +0 -9
- package/components/form/package.json +0 -9
- package/components/gauge/package.json +0 -9
- package/components/grid/package.json +0 -9
- package/components/icon/package.json +0 -9
- package/components/infinite-scroll/package.json +0 -9
- package/components/input/package.json +0 -9
- package/components/lazy/package.json +0 -9
- package/components/link/package.json +0 -9
- package/components/list/package.json +0 -9
- package/components/list-index/package.json +0 -9
- package/components/login-screen/package.json +0 -9
- package/components/menu/package.json +0 -9
- package/components/messagebar/package.json +0 -9
- package/components/messages/package.json +0 -9
- package/components/modal/package.json +0 -9
- package/components/navbar/package.json +0 -9
- package/components/notification/package.json +0 -9
- package/components/page/package.json +0 -9
- package/components/panel/package.json +0 -9
- package/components/photo-browser/package.json +0 -9
- package/components/picker/package.json +0 -9
- package/components/pie-chart/package.json +0 -9
- package/components/popover/package.json +0 -9
- package/components/popup/package.json +0 -9
- package/components/preloader/package.json +0 -9
- package/components/progressbar/package.json +0 -9
- package/components/pull-to-refresh/package.json +0 -9
- package/components/radio/package.json +0 -9
- package/components/range/package.json +0 -9
- package/components/searchbar/package.json +0 -9
- package/components/sheet/package.json +0 -9
- package/components/skeleton/package.json +0 -9
- package/components/smart-select/package.json +0 -9
- package/components/sortable/package.json +0 -9
- package/components/statusbar/package.json +0 -9
- package/components/stepper/package.json +0 -9
- package/components/subnavbar/package.json +0 -9
- package/components/swipeout/package.json +0 -9
- package/components/swiper/package.json +0 -9
- package/components/tabs/package.json +0 -9
- package/components/text-editor/package.json +0 -9
- package/components/timeline/package.json +0 -9
- package/components/toast/package.json +0 -9
- package/components/toggle/package.json +0 -9
- package/components/toolbar/package.json +0 -9
- package/components/tooltip/package.json +0 -9
- package/components/touch-ripple/package.json +0 -9
- package/components/treeview/package.json +0 -9
- package/components/typography/package.json +0 -9
- package/components/view/package.json +0 -9
- package/components/virtual-list/package.json +0 -9
- package/core/package.json +0 -8
- package/esm/components/accordion/accordion.js +0 -126
- package/esm/components/actions/actions-class.js +0 -373
- package/esm/components/actions/actions.js +0 -48
- package/esm/components/appbar/appbar.js +0 -3
- package/esm/components/area-chart/area-chart-class.js +0 -517
- package/esm/components/area-chart/area-chart.js +0 -45
- package/esm/components/autocomplete/autocomplete.js +0 -82
- package/esm/components/calendar/calendar.js +0 -113
- package/esm/components/card/card.js +0 -612
- package/esm/components/checkbox/checkbox.js +0 -3
- package/esm/components/chip/chip.js +0 -3
- package/esm/components/color-picker/color-picker.js +0 -94
- package/esm/components/contacts-list/contacts-list.js +0 -3
- package/esm/components/data-table/data-table.js +0 -64
- package/esm/components/dialog/dialog.js +0 -286
- package/esm/components/elevation/elevation.js +0 -3
- package/esm/components/fab/fab.js +0 -185
- package/esm/components/form/form.js +0 -330
- package/esm/components/gauge/gauge-class.js +0 -323
- package/esm/components/gauge/gauge.js +0 -91
- package/esm/components/grid/grid.js +0 -223
- package/esm/components/infinite-scroll/infinite-scroll.js +0 -101
- package/esm/components/input/input.js +0 -384
- package/esm/components/lazy/lazy.js +0 -271
- package/esm/components/list-index/list-index.js +0 -65
- package/esm/components/login-screen/login-screen-class.js +0 -58
- package/esm/components/login-screen/login-screen.js +0 -34
- package/esm/components/menu/menu.js +0 -82
- package/esm/components/messagebar/messagebar.js +0 -66
- package/esm/components/messages/messages.js +0 -65
- package/esm/components/notification/notification.js +0 -33
- package/esm/components/panel/panel.js +0 -208
- package/esm/components/photo-browser/photo-browser.js +0 -68
- package/esm/components/picker/picker.js +0 -66
- package/esm/components/pie-chart/pie-chart-class.js +0 -281
- package/esm/components/pie-chart/pie-chart.js +0 -33
- package/esm/components/popover/popover.js +0 -81
- package/esm/components/popup/popup.js +0 -47
- package/esm/components/preloader/preloader.js +0 -101
- package/esm/components/progressbar/progressbar.js +0 -175
- package/esm/components/pull-to-refresh/pull-to-refresh.js +0 -62
- package/esm/components/radio/radio.js +0 -3
- package/esm/components/range/range.js +0 -81
- package/esm/components/searchbar/remove-diacritics.js +0 -277
- package/esm/components/searchbar/searchbar.js +0 -129
- package/esm/components/sheet/sheet.js +0 -71
- package/esm/components/skeleton/skeleton.js +0 -3
- package/esm/components/smart-select/smart-select.js +0 -139
- package/esm/components/sortable/sortable.js +0 -310
- package/esm/components/stepper/stepper.js +0 -84
- package/esm/components/swipeout/swipeout.js +0 -606
- package/esm/components/swiper/swiper.js +0 -177
- package/esm/components/tabs/tabs.js +0 -286
- package/esm/components/text-editor/text-editor.js +0 -81
- package/esm/components/timeline/timeline.js +0 -3
- package/esm/components/toast/toast-class.js +0 -132
- package/esm/components/toast/toast.js +0 -40
- package/esm/components/toggle/toggle.js +0 -61
- package/esm/components/tooltip/tooltip.js +0 -135
- package/esm/components/touch-ripple/touch-ripple-class.js +0 -103
- package/esm/components/touch-ripple/touch-ripple.js +0 -25
- package/esm/components/treeview/treeview.js +0 -78
- package/esm/components/typography/typography.js +0 -3
- package/esm/components/virtual-list/virtual-list.js +0 -17
- package/esm/modules/component/$h.js +0 -20
- package/esm/modules/component/$jsx.js +0 -24
- package/esm/modules/component/component-class.js +0 -402
- package/esm/modules/component/parse-component.js +0 -70
- package/esm/modules/resize/resize.js +0 -64
- package/esm/modules/router/component-loader.js +0 -133
- package/esm/modules/store/create-store.js +0 -164
- package/esm/shared/$jsx.js +0 -33
- package/esm/shared/class.js +0 -197
- package/esm/shared/constructor-methods.js +0 -65
- package/esm/shared/events-class.js +0 -119
- package/esm/shared/modal-methods.js +0 -95
- package/esm/shared/request.js +0 -545
- package/lite/package.json +0 -8
- package/lite-bundle/package.json +0 -8
- package/modules/clicks/package.json +0 -9
- package/modules/component/package.json +0 -9
- package/modules/device/package.json +0 -9
- package/modules/history/package.json +0 -9
- package/modules/request/package.json +0 -9
- package/modules/resize/package.json +0 -9
- package/modules/router/package.json +0 -9
- package/modules/service-worker/package.json +0 -9
- package/modules/store/package.json +0 -9
- package/modules/support/package.json +0 -9
- package/modules/touch/package.json +0 -9
- package/modules/utils/package.json +0 -9
- package/types/components/accordion/accordion.d.ts +0 -55
- package/types/components/actions/actions.d.ts +0 -158
- package/types/components/app/app-class.d.ts +0 -196
- package/types/components/appbar/appbar.d.ts +0 -10
- package/types/components/area-chart/area-chart.d.ts +0 -124
- package/types/components/autocomplete/autocomplete.d.ts +0 -191
- package/types/components/badge/badge.d.ts +0 -10
- package/types/components/block/block.d.ts +0 -10
- package/types/components/button/button.d.ts +0 -10
- package/types/components/calendar/calendar.d.ts +0 -304
- package/types/components/card/card.d.ts +0 -65
- package/types/components/checkbox/checkbox.d.ts +0 -10
- package/types/components/chip/chip.d.ts +0 -10
- package/types/components/color-picker/color-picker.d.ts +0 -229
- package/types/components/contacts-list/contacts-list.d.ts +0 -10
- package/types/components/data-table/data-table.d.ts +0 -57
- package/types/components/dialog/dialog.d.ts +0 -241
- package/types/components/elevation/elevation.d.ts +0 -10
- package/types/components/fab/fab.d.ts +0 -28
- package/types/components/form/form.d.ts +0 -60
- package/types/components/gauge/gauge.d.ts +0 -96
- package/types/components/grid/grid.d.ts +0 -17
- package/types/components/icon/icon.d.ts +0 -10
- package/types/components/infinite-scroll/infinite-scroll.d.ts +0 -23
- package/types/components/input/input.d.ts +0 -56
- package/types/components/lazy/lazy.d.ts +0 -53
- package/types/components/link/link.d.ts +0 -10
- package/types/components/list/list.d.ts +0 -10
- package/types/components/list-index/list-index.d.ts +0 -99
- package/types/components/login-screen/login-screen.d.ts +0 -95
- package/types/components/menu/menu.d.ts +0 -28
- package/types/components/messagebar/messagebar.d.ts +0 -161
- package/types/components/messages/messages.d.ts +0 -158
- package/types/components/modal/modal.d.ts +0 -78
- package/types/components/navbar/navbar.d.ts +0 -75
- package/types/components/notification/notification.d.ts +0 -118
- package/types/components/page/page.d.ts +0 -10
- package/types/components/panel/panel.d.ts +0 -194
- package/types/components/photo-browser/photo-browser.d.ts +0 -194
- package/types/components/picker/picker.d.ts +0 -216
- package/types/components/pie-chart/pie-chart.d.ts +0 -95
- package/types/components/popover/popover.d.ts +0 -127
- package/types/components/popup/popup.d.ts +0 -135
- package/types/components/preloader/preloader.d.ts +0 -18
- package/types/components/progressbar/progressbar.d.ts +0 -27
- package/types/components/pull-to-refresh/pull-to-refresh.d.ts +0 -99
- package/types/components/radio/radio.d.ts +0 -10
- package/types/components/range/range.d.ts +0 -121
- package/types/components/searchbar/searchbar.d.ts +0 -157
- package/types/components/sheet/sheet.d.ts +0 -149
- package/types/components/skeleton/skeleton.d.ts +0 -10
- package/types/components/smart-select/smart-select.d.ts +0 -199
- package/types/components/sortable/sortable.d.ts +0 -46
- package/types/components/statusbar/statusbar.d.ts +0 -50
- package/types/components/stepper/stepper.d.ts +0 -117
- package/types/components/subnavbar/subnavbar.d.ts +0 -11
- package/types/components/swipeout/swipeout.d.ts +0 -68
- package/types/components/swiper/swiper.d.ts +0 -21
- package/types/components/tabs/tabs.d.ts +0 -39
- package/types/components/text-editor/text-editor.d.ts +0 -162
- package/types/components/timeline/timeline.d.ts +0 -10
- package/types/components/toast/toast.d.ts +0 -117
- package/types/components/toggle/toggle.d.ts +0 -69
- package/types/components/toolbar/toolbar.d.ts +0 -43
- package/types/components/tooltip/tooltip.d.ts +0 -101
- package/types/components/touch-ripple/touch-ripple.d.ts +0 -21
- package/types/components/treeview/treeview.d.ts +0 -38
- package/types/components/typography/typography.d.ts +0 -10
- package/types/components/view/view.d.ts +0 -205
- package/types/components/virtual-list/virtual-list.d.ts +0 -138
- package/types/modules/clicks/clicks.d.ts +0 -19
- package/types/modules/component/component.d.ts +0 -94
- package/types/modules/component/snabbdom/h.d.ts +0 -10
- package/types/modules/component/snabbdom/helpers/attachto.d.ts +0 -9
- package/types/modules/component/snabbdom/hooks.d.ts +0 -23
- package/types/modules/component/snabbdom/htmldomapi.d.ts +0 -19
- package/types/modules/component/snabbdom/is.d.ts +0 -2
- package/types/modules/component/snabbdom/modules/attributes.d.ts +0 -4
- package/types/modules/component/snabbdom/modules/class.d.ts +0 -4
- package/types/modules/component/snabbdom/modules/dataset.d.ts +0 -4
- package/types/modules/component/snabbdom/modules/eventlisteners.d.ts +0 -8
- package/types/modules/component/snabbdom/modules/hero.d.ts +0 -6
- package/types/modules/component/snabbdom/modules/module.d.ts +0 -9
- package/types/modules/component/snabbdom/modules/props.d.ts +0 -4
- package/types/modules/component/snabbdom/modules/style.d.ts +0 -7
- package/types/modules/component/snabbdom/snabbdom.bundle.d.ts +0 -5
- package/types/modules/component/snabbdom/snabbdom.d.ts +0 -6
- package/types/modules/component/snabbdom/thunk.d.ts +0 -14
- package/types/modules/component/snabbdom/tovnode.d.ts +0 -4
- package/types/modules/component/snabbdom/vnode.d.ts +0 -36
- package/types/modules/device/device.d.ts +0 -14
- package/types/modules/request/request.d.ts +0 -15
- package/types/modules/resize/resize.d.ts +0 -25
- package/types/modules/router/router.d.ts +0 -356
- package/types/modules/service-worker/service-worker.d.ts +0 -38
- package/types/modules/store/store.d.ts +0 -40
- package/types/modules/support/support.d.ts +0 -15
- package/types/modules/touch/touch.d.ts +0 -62
- package/types/modules/utils/utils.d.ts +0 -15
- package/types/package.json +0 -6
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Hooks } from './hooks';
|
|
2
|
-
import { AttachData } from './helpers/attachto';
|
|
3
|
-
import { VNodeStyle } from './modules/style';
|
|
4
|
-
import { On } from './modules/eventlisteners';
|
|
5
|
-
import { Attrs } from './modules/attributes';
|
|
6
|
-
import { Classes } from './modules/class';
|
|
7
|
-
import { Props } from './modules/props';
|
|
8
|
-
import { Dataset } from './modules/dataset';
|
|
9
|
-
import { Hero } from './modules/hero';
|
|
10
|
-
export declare type Key = string | number;
|
|
11
|
-
export interface VNode {
|
|
12
|
-
sel: string | undefined;
|
|
13
|
-
data: VNodeData | undefined;
|
|
14
|
-
children: Array<VNode | string> | undefined;
|
|
15
|
-
elm: Node | undefined;
|
|
16
|
-
text: string | undefined;
|
|
17
|
-
key: Key | undefined;
|
|
18
|
-
}
|
|
19
|
-
export interface VNodeData {
|
|
20
|
-
props?: Props;
|
|
21
|
-
attrs?: Attrs;
|
|
22
|
-
class?: Classes;
|
|
23
|
-
style?: VNodeStyle;
|
|
24
|
-
dataset?: Dataset;
|
|
25
|
-
on?: On;
|
|
26
|
-
hero?: Hero;
|
|
27
|
-
attachData?: AttachData;
|
|
28
|
-
hook?: Hooks;
|
|
29
|
-
key?: Key;
|
|
30
|
-
ns?: string;
|
|
31
|
-
fn?: () => VNode;
|
|
32
|
-
args?: Array<any>;
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
}
|
|
35
|
-
export declare function vnode(sel: string | undefined, data: any | undefined, children: Array<VNode | string> | undefined, text: string | undefined, elm: Element | Text | undefined): VNode;
|
|
36
|
-
export default vnode;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Device } from '../../shared/get-device';
|
|
2
|
-
import Framework7, { Framework7Plugin } from '../../components/app/app-class';
|
|
3
|
-
|
|
4
|
-
export namespace Device {
|
|
5
|
-
interface AppMethods {
|
|
6
|
-
/** Object with properties about device */
|
|
7
|
-
device: Device;
|
|
8
|
-
}
|
|
9
|
-
interface AppParams {}
|
|
10
|
-
interface AppEvents {}
|
|
11
|
-
}
|
|
12
|
-
declare const DeviceModule: Framework7Plugin;
|
|
13
|
-
|
|
14
|
-
export default DeviceModule;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Request } from '../../shared/request';
|
|
2
|
-
import Framework7, { Framework7Plugin } from '../../components/app/app-class';
|
|
3
|
-
|
|
4
|
-
export namespace Request {
|
|
5
|
-
interface AppMethods {
|
|
6
|
-
/** Object with properties about supported features */
|
|
7
|
-
request: Request;
|
|
8
|
-
}
|
|
9
|
-
interface AppParams {}
|
|
10
|
-
interface AppEvents {}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const RequestModule: Framework7Plugin;
|
|
14
|
-
|
|
15
|
-
export default RequestModule;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Framework7, { Framework7Plugin } from '../../components/app/app-class';
|
|
2
|
-
|
|
3
|
-
export namespace Resize {
|
|
4
|
-
interface AppMethods {
|
|
5
|
-
/** App width in px */
|
|
6
|
-
width: number;
|
|
7
|
-
/** App height in px */
|
|
8
|
-
height: number;
|
|
9
|
-
/** App left offset in px */
|
|
10
|
-
left: number;
|
|
11
|
-
/** App top offset in px */
|
|
12
|
-
top: number;
|
|
13
|
-
}
|
|
14
|
-
interface AppParams {}
|
|
15
|
-
interface AppEvents {
|
|
16
|
-
/** Event will be fired on app resize (window resize). */
|
|
17
|
-
resize: () => void;
|
|
18
|
-
/** Event will be fired on app orientation change (window orientantion change). */
|
|
19
|
-
orientationchange: () => void;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare const ResizeModule: Framework7Plugin;
|
|
24
|
-
|
|
25
|
-
export default ResizeModule;
|
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
import Framework7, {
|
|
2
|
-
Framework7EventsClass,
|
|
3
|
-
Framework7Plugin,
|
|
4
|
-
CSSSelector,
|
|
5
|
-
} from '../../components/app/app-class';
|
|
6
|
-
import { Dom7, Dom7Array } from 'dom7';
|
|
7
|
-
import { View } from '../../components/view/view';
|
|
8
|
-
|
|
9
|
-
import { ComponentFunction as Component } from '../../modules/component/component';
|
|
10
|
-
import { Actions } from '../../components/actions/actions';
|
|
11
|
-
import { Popup } from '../../components/popup/popup';
|
|
12
|
-
import { LoginScreen } from '../../components/login-screen/login-screen';
|
|
13
|
-
import { Popover } from '../../components/popover/popover';
|
|
14
|
-
import { Modal } from '../../components/modal/modal';
|
|
15
|
-
import { Sheet } from '../../components/sheet/sheet';
|
|
16
|
-
import { Panel } from '../../components/panel/panel';
|
|
17
|
-
|
|
18
|
-
export namespace Router {
|
|
19
|
-
interface ModalRouteParameters {
|
|
20
|
-
/** Creates dynamic page from specified content string */
|
|
21
|
-
content?: string | HTMLElement | Dom7Array | HTMLElement[];
|
|
22
|
-
/** Load page content via Ajax. */
|
|
23
|
-
url?: string;
|
|
24
|
-
/** Load page from passed Framework7 Router Component */
|
|
25
|
-
component?: Component | Function | object;
|
|
26
|
-
/** load pages as a component via Ajax */
|
|
27
|
-
componentUrl?: string;
|
|
28
|
-
/** Do required asynchronous manipulation and the return required route content and options */
|
|
29
|
-
async?(routeTo: Route, routeFrom: Route, resolve: Function, reject: Function): void;
|
|
30
|
-
/** Function that should return Promise resolved with Component or ES module with `.default` property containing Component */
|
|
31
|
-
asyncComponent?(): Promise<any>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface RouteCallbackCtx {
|
|
35
|
-
app: Framework7;
|
|
36
|
-
to: Route;
|
|
37
|
-
from: Route;
|
|
38
|
-
resolve: Function;
|
|
39
|
-
reject: Function;
|
|
40
|
-
router: Router;
|
|
41
|
-
direction?: 'forward' | 'backward';
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface RouteParameters {
|
|
45
|
-
/** Route name, e.g. home */
|
|
46
|
-
name?: string;
|
|
47
|
-
/** Route path. Means this route will be loaded when we click link that match to this path, or can be loaded by this path using API */
|
|
48
|
-
path: string;
|
|
49
|
-
/** View name where this route will be forced to load */
|
|
50
|
-
viewName?: string;
|
|
51
|
-
/** Object with additional route options (optional) */
|
|
52
|
-
options?: RouteOptions;
|
|
53
|
-
/** Array with nested routes */
|
|
54
|
-
routes?: RouteParameters[];
|
|
55
|
-
/** Modules to load */
|
|
56
|
-
modules?: any[];
|
|
57
|
-
/** Load page from DOM by passed HTMLElement */
|
|
58
|
-
el?: HTMLElement | CSSSelector;
|
|
59
|
-
/** Load page from DOM that has same data-name attribute */
|
|
60
|
-
pageName?: string;
|
|
61
|
-
/** Creates dynamic page from specified content string */
|
|
62
|
-
content?: string | HTMLElement | Dom7Array | HTMLElement[];
|
|
63
|
-
/** Load page content via Ajax. */
|
|
64
|
-
url?: string;
|
|
65
|
-
/** Load page from passed Framework7 Router Component */
|
|
66
|
-
component?: Component | Function | object;
|
|
67
|
-
/** load pages as a component via Ajax */
|
|
68
|
-
componentUrl?: string;
|
|
69
|
-
/** Do required asynchronous manipulation and the return required route content and options */
|
|
70
|
-
async?(ctx: RouteCallbackCtx): void;
|
|
71
|
-
/** Function that should return Promise resolved with Component or ES module with `.default` property containing Component */
|
|
72
|
-
asyncComponent?(): Promise<any>;
|
|
73
|
-
|
|
74
|
-
/** tab id */
|
|
75
|
-
id?: string;
|
|
76
|
-
/** Array with tab routes */
|
|
77
|
-
tabs?: RouteParameters[];
|
|
78
|
-
/** Action Sheet route */
|
|
79
|
-
actions?: Actions.Parameters & ModalRouteParameters;
|
|
80
|
-
/** Popup route */
|
|
81
|
-
popup?: Popup.Parameters & ModalRouteParameters;
|
|
82
|
-
/** Login screen route */
|
|
83
|
-
loginScreen?: LoginScreen.Parameters & ModalRouteParameters;
|
|
84
|
-
/** Popover route */
|
|
85
|
-
popover?: Popover.Parameters & ModalRouteParameters;
|
|
86
|
-
/** Sheet route */
|
|
87
|
-
sheet?: Sheet.Parameters & ModalRouteParameters;
|
|
88
|
-
/** Panel route */
|
|
89
|
-
panel?: Panel.Parameters & ModalRouteParameters;
|
|
90
|
-
|
|
91
|
-
/** Route alias, or array with route aliases. We need to specify here alias path */
|
|
92
|
-
alias?: string | any[];
|
|
93
|
-
/** Route redirect. We need to specify here redirect url (not path) */
|
|
94
|
-
redirect?: string | ((ctx: RouteCallbackCtx) => void);
|
|
95
|
-
/** Function (or array of functions) that will be executed before route load/enter. To proceed route loading resolve must be called. In case of array then every function in array must be resolved to proceed */
|
|
96
|
-
beforeEnter?: Function[] | ((ctx: RouteCallbackCtx) => void);
|
|
97
|
-
/** Function (or array of functions) that will be executed before route unload/leave. To proceed navigation resolve must be called. In case of array then every function in array must be resolved to proceed */
|
|
98
|
-
beforeLeave?: Function[] | ((ctx: RouteCallbackCtx) => void);
|
|
99
|
-
/** When enabled then once loaded page and its component (Vue, React or Router component) will be never destroyed. Instead, it will be detached from DOM and reused again when required */
|
|
100
|
-
keepAlive?: boolean;
|
|
101
|
-
/** Enables master route for Master-Detail view */
|
|
102
|
-
master?: boolean | ((f7: Framework7, router: Router) => boolean);
|
|
103
|
-
/** Detail routes this master route */
|
|
104
|
-
detailRoutes?: RouteParameters[];
|
|
105
|
-
/** Route page events */
|
|
106
|
-
on?: { [event: string]: (e: Event, page: any) => void };
|
|
107
|
-
}
|
|
108
|
-
interface RouteOptions {
|
|
109
|
-
/** whether the page should be animated or not (overwrites default router settings) */
|
|
110
|
-
animate?: boolean;
|
|
111
|
-
/** whether the page should be saved in router history */
|
|
112
|
-
history?: boolean;
|
|
113
|
-
/** whether the page should be saved in browser state. In case you are using browserHistory, then you can pass here false to prevent route getting in browser history */
|
|
114
|
-
browserHistory?: boolean;
|
|
115
|
-
/** replace the current page with the new one from route */
|
|
116
|
-
reloadCurrent?: boolean;
|
|
117
|
-
/** replace the previous page in history with the new one from route */
|
|
118
|
-
reloadPrevious?: boolean;
|
|
119
|
-
/** load new page and remove all previous pages from history and DOM */
|
|
120
|
-
reloadAll?: boolean;
|
|
121
|
-
/** previous pages history will be cleared after reloading/navigate to the specified route */
|
|
122
|
-
clearPreviousHistory?: boolean;
|
|
123
|
-
/** If set to `true` then it will ignore if such URL in cache and reload it using XHR again */
|
|
124
|
-
ignoreCache?: boolean;
|
|
125
|
-
/** if set to `true` then it will ignore previous page in history and load specified one */
|
|
126
|
-
force?: boolean;
|
|
127
|
-
/** pass React/Vue component props */
|
|
128
|
-
props?: object;
|
|
129
|
-
/** custom page transition name */
|
|
130
|
-
transition?: string;
|
|
131
|
-
/** Allows open page route as modal or panel */
|
|
132
|
-
openIn?: 'popup' | 'loginScreen' | 'sheet' | 'popover' | 'panel';
|
|
133
|
-
}
|
|
134
|
-
interface NavigateParameters {
|
|
135
|
-
query?: { [queryParameter: string]: number | string | undefined };
|
|
136
|
-
/** route params. If we have matching route with `/page/user/:userId/post/:postId/` path and url of the page is `/page/user/55/post/12/` then it will be the following object `{userId: '55', postId: '12'}` */
|
|
137
|
-
params?: { [routeParameter: string]: number | string | undefined };
|
|
138
|
-
/** route name */
|
|
139
|
-
name?: string;
|
|
140
|
-
/** route path */
|
|
141
|
-
path?: string;
|
|
142
|
-
}
|
|
143
|
-
interface Route {
|
|
144
|
-
/** route URL */
|
|
145
|
-
url: string;
|
|
146
|
-
/** route path */
|
|
147
|
-
path: string;
|
|
148
|
-
/** object with route query. If the url is `/page/?id=5&foo=bar` then it will contain the following object `{id: '5', foo: 'bar'}` */
|
|
149
|
-
query: { [queryParameter: string]: string | undefined };
|
|
150
|
-
/** route params. If we have matching route with `/page/user/:userId/post/:postId/` path and url of the page is `/page/user/55/post/12/` then it will be the following object `{userId: '55', postId: '12'}` */
|
|
151
|
-
params: { [routeParameter: string]: string | undefined };
|
|
152
|
-
/** route name */
|
|
153
|
-
name: string;
|
|
154
|
-
/** route URL hash */
|
|
155
|
-
hash: string;
|
|
156
|
-
/** object with matching route from available routes */
|
|
157
|
-
route: RouteParameters;
|
|
158
|
-
/** props that were passed to the route */
|
|
159
|
-
props: object;
|
|
160
|
-
}
|
|
161
|
-
interface Page {
|
|
162
|
-
/** Initialized app instance */
|
|
163
|
-
app: Framework7;
|
|
164
|
-
/** View instance that contains this page (if this View was initialized) */
|
|
165
|
-
view: View.View;
|
|
166
|
-
/** Router instance that contains this page (if this View was initialized). Same as page.view.router */
|
|
167
|
-
router: Router.Router;
|
|
168
|
-
/** Value of page's data-name attribute */
|
|
169
|
-
name: string;
|
|
170
|
-
/** Page element */
|
|
171
|
-
el: HTMLElement;
|
|
172
|
-
/** Dom7 instance with Page element */
|
|
173
|
-
$el: Dom7Array;
|
|
174
|
-
/** Related navbar element for this page. Available only in iOS theme with dynamic navbar enabled. */
|
|
175
|
-
navbarEl: HTMLElement;
|
|
176
|
-
/** Dom7 instance with related navbar element for this page. Available only in iOS theme with dynamic navbar enabled. */
|
|
177
|
-
$navbarEl: Dom7Array;
|
|
178
|
-
/** Page position before transition or direction of where this Page comes from. It will be next if you load new page, previous - if you go back to this page, or current if this page replaces the currently active one. */
|
|
179
|
-
from: string;
|
|
180
|
-
/** New page position or where this page goes to. Can be same next, previous or current */
|
|
181
|
-
to: string;
|
|
182
|
-
/** Alias for page.from */
|
|
183
|
-
position: string;
|
|
184
|
-
/** Direction of page transition (if applicable). Can be forward or backward */
|
|
185
|
-
direction: string;
|
|
186
|
-
/** Route associated with this page, object with current route data that was used to load this page. It has the following properties */
|
|
187
|
-
route: Route;
|
|
188
|
-
/** Page data of the page that was currently active before this new page. */
|
|
189
|
-
pageFrom: Page;
|
|
190
|
-
}
|
|
191
|
-
interface Router extends Framework7EventsClass<Events> {
|
|
192
|
-
/** Link to global app instance */
|
|
193
|
-
app: Framework7;
|
|
194
|
-
/** Link to related View instance */
|
|
195
|
-
view: View.View;
|
|
196
|
-
/** Object with router initialization parameters */
|
|
197
|
-
params: View.Parameters;
|
|
198
|
-
/** Router's view HTML element */
|
|
199
|
-
el: HTMLElement;
|
|
200
|
-
/** Dom7 instance with router's view HTML element */
|
|
201
|
-
$el: Dom7Array;
|
|
202
|
-
/** Array with available router's routes */
|
|
203
|
-
routes: RouteParameters[];
|
|
204
|
-
/** Array with router's view history */
|
|
205
|
-
history: string[];
|
|
206
|
-
|
|
207
|
-
/** Object with current route data */
|
|
208
|
-
currentRoute: Route;
|
|
209
|
-
/** Object with previously active route data */
|
|
210
|
-
previousRoute: Route;
|
|
211
|
-
/** Boolean property indicating is it allowed to change page / navigate or not */
|
|
212
|
-
allowPageChange: boolean;
|
|
213
|
-
/** Generate route url based on a given route name */
|
|
214
|
-
generateUrl(parameters: {
|
|
215
|
-
/** route name */
|
|
216
|
-
name: string;
|
|
217
|
-
/** route params */
|
|
218
|
-
params: any;
|
|
219
|
-
/** route query */
|
|
220
|
-
query: any;
|
|
221
|
-
}): string;
|
|
222
|
-
/** Navigate to (load) new page */
|
|
223
|
-
navigate(url: string, options?: RouteOptions): Router;
|
|
224
|
-
/** Navigate to (load) new page by parameters. This method allows to navigate to route by its name */
|
|
225
|
-
navigate(parameters: NavigateParameters, options?: RouteOptions): Router;
|
|
226
|
-
/** Go back to previous page, going back in View history */
|
|
227
|
-
back(url?: string, options?: RouteOptions): Router;
|
|
228
|
-
/** Refresh/reload current page */
|
|
229
|
-
refreshPage(): Router;
|
|
230
|
-
/** Clear router previous pages history and remove all previous pages from DOM */
|
|
231
|
-
clearPreviousHistory(): Router;
|
|
232
|
-
/** Updates current route url, and updates `router.currentRoute` properties (query, params, hash, etc.) based on passed url. This method doesn't load or reload any content. It just changes current route url */
|
|
233
|
-
updateCurrentUrl(url: string): Router;
|
|
234
|
-
}
|
|
235
|
-
interface SwipeBackData {
|
|
236
|
-
percentage: number;
|
|
237
|
-
currentPageEl: HTMLElement;
|
|
238
|
-
previousPageEl: HTMLElement;
|
|
239
|
-
currentNavbarEl: HTMLElement;
|
|
240
|
-
previousNavbarEl: HTMLElement;
|
|
241
|
-
}
|
|
242
|
-
interface Events {
|
|
243
|
-
/** Event will be fired on current route change */
|
|
244
|
-
routeChange(newRoute: Route, previousRoute: Route, router: Router): void;
|
|
245
|
-
/** Event will be fired on current route change and after page transitions */
|
|
246
|
-
routeChanged(newRoute: Route, previousRoute: Route, router: Router): void;
|
|
247
|
-
/** Event will be fired when router.updateCurrentUrl method called */
|
|
248
|
-
routeUrlUpdate(newRoute: Route, router: Router): void;
|
|
249
|
-
|
|
250
|
-
/** Event will be fired after router XHR opened and before XHR send. Can be used to modify the XHR object before it is sent. Use this callback to set custom headers, etc. As an arguments receives XHR object and navigating options object */
|
|
251
|
-
routerAjaxStart(xhr: XMLHttpRequest, options: RouteOptions): void;
|
|
252
|
-
/** Event will be fired when the request succeeds. As an arguments receives XHR object and navigating options object */
|
|
253
|
-
routerAjaxSuccess(xhr: XMLHttpRequest, options: RouteOptions): void;
|
|
254
|
-
/** Event will be fired if the request fails. As an arguments receives XHR object and navigating options object */
|
|
255
|
-
routerAjaxError(xhr: XMLHttpRequest, options: RouteOptions): void;
|
|
256
|
-
/** Event will be fired when the request finishes. As an arguments receives XHR object and navigating options object */
|
|
257
|
-
routerAjaxComplete(xhr: XMLHttpRequest, options: RouteOptions): void;
|
|
258
|
-
|
|
259
|
-
/** Event will be triggered during swipe back move */
|
|
260
|
-
swipebackMove(data: SwipeBackData): void;
|
|
261
|
-
/** Event will be triggered right before swipe back animation to previous page when you release it */
|
|
262
|
-
swipebackBeforeChange(data: SwipeBackData): void;
|
|
263
|
-
/** Event will be triggered after swipe back animation to previous page when you release it */
|
|
264
|
-
swipebackAfterChange(data: SwipeBackData): void;
|
|
265
|
-
/** Event will be triggered right before swipe back animation to current page when you release it */
|
|
266
|
-
swipebackBeforeReset(data: SwipeBackData): void;
|
|
267
|
-
/** Event will be triggered after swipe back animation to current page when you release it */
|
|
268
|
-
swipebackAfterReset(data: SwipeBackData): void;
|
|
269
|
-
|
|
270
|
-
/** Event will be triggered when new page just inserted to DOM. As an argument event receives Page Data */
|
|
271
|
-
pageMounted(page: Page): void;
|
|
272
|
-
/** Event will be triggered after Router initialize required page's components and navbar. As an argument event receives Page Data */
|
|
273
|
-
pageInit(page: Page): void;
|
|
274
|
-
/** This event will be triggered in case of navigating to the page that was already initialized. As an argument event receives Page Data */
|
|
275
|
-
pageReinit(page: Page): void;
|
|
276
|
-
/** Event will be triggered when everything initialized and page is ready to be transitioned into view (into active/current position). As an argument event receives Page Data */
|
|
277
|
-
pageBeforeIn(page: Page): void;
|
|
278
|
-
/** Event will be triggered after page transitioned into view. As an argument event receives Page Data */
|
|
279
|
-
pageAfterIn(page: Page): void;
|
|
280
|
-
/** Event will be triggered right before page is going to be transitioned out of view. As an argument event receives Page Data */
|
|
281
|
-
pageBeforeOut(page: Page): void;
|
|
282
|
-
/** Event will be triggered after page transitioned out of view. As an argument event receives Page Data */
|
|
283
|
-
pageAfterOut(page: Page): void;
|
|
284
|
-
/** Event will be triggered right before Page will be removed from DOM. This event could be very useful if you need to detach some events / destroy some plugins to free memory. As an argument event receives Page Data */
|
|
285
|
-
pageBeforeRemove(page: Page): void;
|
|
286
|
-
|
|
287
|
-
/** Event will be triggered on page's parent View-Tab show */
|
|
288
|
-
pageTabShow(pageEl: HTMLElement): void;
|
|
289
|
-
/** Event will be triggered on page's parent View-Tab hide */
|
|
290
|
-
pageTabHide(pageEl: HTMLElement): void;
|
|
291
|
-
|
|
292
|
-
/** Event will be triggered right after routable Tab content will be loaded */
|
|
293
|
-
tabInit(newTabEl: HTMLElement, tabRoute: Route): void;
|
|
294
|
-
/** Event will be triggered right after routable Tab content will be loaded */
|
|
295
|
-
tabMounted(newTabEl: HTMLElement, tabRoute: Route): void;
|
|
296
|
-
/** Event will be triggered right before routable Tab content will be removed */
|
|
297
|
-
tabBeforeRemove(oldTabEl: HTMLElement, newTabEl: HTMLElement, tabRoute: Route): void;
|
|
298
|
-
|
|
299
|
-
/** Event will be triggered right after routable modal content will be loaded and added to DOM */
|
|
300
|
-
modalInit(modalEl: HTMLElement, modalRoute: Route, modal: any): void;
|
|
301
|
-
/** Event will be triggered right after routable modal content will be loaded and added to DOM */
|
|
302
|
-
modalMounted(modalEl: HTMLElement, modalRoute: Route, modal: any): void;
|
|
303
|
-
/** Event will be triggered right before routable modal will be removed from DOM and destroyed */
|
|
304
|
-
modalBeforeRemove(modalEl: HTMLElement, modalRoute: Route, modal: any): void;
|
|
305
|
-
}
|
|
306
|
-
interface DomEvents {
|
|
307
|
-
/** Event will be triggered during swipe back move */
|
|
308
|
-
'swipeback:move': () => void;
|
|
309
|
-
/** Event will be triggered right before swipe back animation to previous page when you release it */
|
|
310
|
-
'swipeback:beforechange': () => void;
|
|
311
|
-
/** Event will be triggered after swipe back animation to previous page when you release it */
|
|
312
|
-
'swipeback:afterchange': () => void;
|
|
313
|
-
/** Event will be triggered right before swipe back animation to current page when you release it */
|
|
314
|
-
'swipeback:beforereset': () => void;
|
|
315
|
-
/** Event will be triggered after swipe back animation to current page when you release it */
|
|
316
|
-
'swipeback:afterreset': () => void;
|
|
317
|
-
/** Event will be triggered when new page just inserted to DOM */
|
|
318
|
-
'page:mounted': () => void;
|
|
319
|
-
/** Event will be triggered after Framework7 initialize required page's components and navbar */
|
|
320
|
-
'page:init': () => void;
|
|
321
|
-
/** This event will be triggered in case of navigating to the page that was already initialized. */
|
|
322
|
-
'page:reinit': () => void;
|
|
323
|
-
/** Event will be triggered when everything initialized and page is ready to be transitioned into view (into active/current position) */
|
|
324
|
-
'page:beforein': () => void;
|
|
325
|
-
/** Event will be triggered after page transitioned into view */
|
|
326
|
-
'page:afterin': () => void;
|
|
327
|
-
/** Event will be triggered right before page is going to be transitioned out of view */
|
|
328
|
-
'page:beforeout': () => void;
|
|
329
|
-
/** Event will be triggered after page transitioned out of view */
|
|
330
|
-
'page:afterout': () => void;
|
|
331
|
-
/** Event will be triggered right before Page will be removed from DOM. This event could be very useful if you need to detach some events / destroy some plugins to free memory */
|
|
332
|
-
'page:beforeremove': () => void;
|
|
333
|
-
/** Event will be triggered on page's parent View-Tab show */
|
|
334
|
-
'page:tabshow': () => void;
|
|
335
|
-
/** Event will be triggered on page's parent View-Tab hide */
|
|
336
|
-
'page:tabhide': () => void;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
interface AppMethods {
|
|
340
|
-
/** Object with router/view cache data */
|
|
341
|
-
cache: {
|
|
342
|
-
xhr: object[];
|
|
343
|
-
templates: object[];
|
|
344
|
-
components: object[];
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
interface AppParams {
|
|
348
|
-
/** Set to false to disable the router. */
|
|
349
|
-
router?: false;
|
|
350
|
-
}
|
|
351
|
-
interface AppEvents {}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
declare const RouterModule: Framework7Plugin;
|
|
355
|
-
|
|
356
|
-
export default RouterModule;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import Framework7, { Framework7Plugin } from '../../components/app/app-class';
|
|
2
|
-
|
|
3
|
-
export namespace ServiceWorker {
|
|
4
|
-
interface AppMethods {
|
|
5
|
-
serviceWorker: {
|
|
6
|
-
/** Service worker container (navigator.serviceWorker) */
|
|
7
|
-
container: ServiceWorkerContainer;
|
|
8
|
-
/** Array with service workers registrations */
|
|
9
|
-
registrations: ServiceWorkerRegistration[];
|
|
10
|
-
/** Register service worker */
|
|
11
|
-
register(path: string, scope?: string): Promise<any>;
|
|
12
|
-
/** Unregister service worker */
|
|
13
|
-
unregister(registration?: ServiceWorkerRegistration): Promise<any>;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
interface AppParams {
|
|
17
|
-
/** Object with service worker parameters */
|
|
18
|
-
serviceWorker?: {
|
|
19
|
-
/** Service worker to register path (or array with paths) */
|
|
20
|
-
path?: string | string[];
|
|
21
|
-
/** Default service worker scope */
|
|
22
|
-
scope?: string;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
interface AppEvents {
|
|
26
|
-
/** Event will be triggered when service worker successfully registered */
|
|
27
|
-
serviceWorkerRegisterSuccess: (registration: ServiceWorkerRegistration) => void;
|
|
28
|
-
/** Event will be triggered when service worker registration failed */
|
|
29
|
-
serviceWorkerRegisterError: (error: Error) => void;
|
|
30
|
-
/** Event will be triggered when service worker successfully unregistered */
|
|
31
|
-
serviceWorkerUnregisterSuccess: (registration: ServiceWorkerRegistration) => void;
|
|
32
|
-
/** Event will be triggered when service worker unregister failed */
|
|
33
|
-
serviceWorkerUnregisterError: (registration: ServiceWorkerRegistration, error: Error) => void;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
declare const ServiceWorkerModule: Framework7Plugin;
|
|
37
|
-
|
|
38
|
-
export default ServiceWorkerModule;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Framework7Plugin } from '../../components/app/app-class';
|
|
2
|
-
|
|
3
|
-
interface StoreGetterValue {
|
|
4
|
-
value: any;
|
|
5
|
-
onUpdated: (value: any) => any;
|
|
6
|
-
__callback: any;
|
|
7
|
-
}
|
|
8
|
-
export interface StoreObject {
|
|
9
|
-
state: any;
|
|
10
|
-
getters: any;
|
|
11
|
-
dispatch: (name: string, data: any) => Promise<any>;
|
|
12
|
-
__removeCallback: (callback: any) => void;
|
|
13
|
-
}
|
|
14
|
-
export interface StoreParameters {
|
|
15
|
-
state: object;
|
|
16
|
-
actions?: object;
|
|
17
|
-
getters?: object;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/** Create new store */
|
|
21
|
-
interface createStore {
|
|
22
|
-
(storeParameters: StoreParameters): StoreObject;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export const createStore: createStore;
|
|
26
|
-
|
|
27
|
-
export namespace Store {
|
|
28
|
-
interface AppMethods {
|
|
29
|
-
/** Create new store */
|
|
30
|
-
createStore: (storeParameters: StoreParameters) => StoreObject;
|
|
31
|
-
}
|
|
32
|
-
interface AppParams {
|
|
33
|
-
/** Store */
|
|
34
|
-
store?: StoreParameters | StoreObject;
|
|
35
|
-
}
|
|
36
|
-
interface AppEvents {}
|
|
37
|
-
}
|
|
38
|
-
declare const StoreModule: Framework7Plugin;
|
|
39
|
-
|
|
40
|
-
export default StoreModule;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Support } from '../../shared/get-support';
|
|
2
|
-
import Framework7, { Framework7Plugin } from '../../components/app/app-class';
|
|
3
|
-
|
|
4
|
-
export namespace Support {
|
|
5
|
-
interface AppMethods {
|
|
6
|
-
/** Object with properties about supported features */
|
|
7
|
-
support: Support;
|
|
8
|
-
}
|
|
9
|
-
interface AppParams {}
|
|
10
|
-
interface AppEvents {}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const SupportModule: Framework7Plugin;
|
|
14
|
-
|
|
15
|
-
export default SupportModule;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import Framework7, { Framework7Plugin } from '../../components/app/app-class';
|
|
2
|
-
|
|
3
|
-
export namespace Touch {
|
|
4
|
-
interface AppMethods {
|
|
5
|
-
touchEvents: {
|
|
6
|
-
start: string;
|
|
7
|
-
move: string;
|
|
8
|
-
end: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
interface AppParams {
|
|
12
|
-
/** Object with touch-module related parameters */
|
|
13
|
-
touch?:
|
|
14
|
-
| {
|
|
15
|
-
/** Distance threshold (in px) to prevent short swipes. So if tap/move distance is larger than this value then "click" will not be triggered. (default 5) */
|
|
16
|
-
touchClicksDistanceThreshold?: number;
|
|
17
|
-
/** . (default true) */
|
|
18
|
-
disableContextMenu?: boolean;
|
|
19
|
-
/** Enables tap hold. (default false) */
|
|
20
|
-
tapHold?: boolean;
|
|
21
|
-
/** Determines how long (in ms) the user must hold their tap before the taphold event is fired on the target element. (default 750) */
|
|
22
|
-
tapHoldDelay?: number;
|
|
23
|
-
/** When enabled (by default), then click event will not be fired after tap hold event. (default true) */
|
|
24
|
-
tapHoldPreventClicks?: boolean;
|
|
25
|
-
/** When enabled, app will add "active-state" class to currently touched (:active) element.. (default true) */
|
|
26
|
-
activeState?: boolean;
|
|
27
|
-
/** CSS selector of elements where enabled activeState will add appropriate active class. (default a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .menu-item, .link, .item-link) */
|
|
28
|
-
activeStateElements?: string;
|
|
29
|
-
/** Enables MD-theme specific touch ripple effect. (default true) */
|
|
30
|
-
mdTouchRipple?: boolean;
|
|
31
|
-
/** Enables iOS-theme specific touch ripple effect. (default false) */
|
|
32
|
-
iosTouchRipple?: boolean;
|
|
33
|
-
/** Enables Aurora-theme specific touch ripple effect. (default false) */
|
|
34
|
-
auroraTouchRipple?: boolean;
|
|
35
|
-
/** CSS selector of elements to apply touch ripple effect on click. (default .ripple, .link, .item-link, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .menu-item-content) */
|
|
36
|
-
touchRippleElements?: string;
|
|
37
|
-
/** CSS selector of elements to with inset touch ripple effect. (default .ripple-inset, .icon-only, .searchbar-disable-button, .input-clear-button, .notification-close-button, .md .navbar .link.back) */
|
|
38
|
-
touchRippleInsetElements?: string;
|
|
39
|
-
}
|
|
40
|
-
| undefined;
|
|
41
|
-
}
|
|
42
|
-
interface AppEvents {
|
|
43
|
-
/** Event will be fired on app click */
|
|
44
|
-
click: (event: Event) => void;
|
|
45
|
-
/** Event will be fired on touch start (mousedown) event added as active listener (possible to prevent default) */
|
|
46
|
-
'touchstart:active': (event: Event) => void;
|
|
47
|
-
/** Event will be fired on touch move (mousemove) event added as active listener (possible to prevent default) */
|
|
48
|
-
'touchmove:active': (event: Event) => void;
|
|
49
|
-
/** Event will be fired on touch end (mouseup) event added as active listener (possible to prevent default) */
|
|
50
|
-
'touchend:active': (event: Event) => void;
|
|
51
|
-
/** Event will be fired on touch start (mousedown) event added as passive listener (impossible to prevent default) */
|
|
52
|
-
'touchstart:passive': (event: Event) => void;
|
|
53
|
-
/** Event will be fired on touch move (mousemove) event added as passive listener (impossible to prevent default) */
|
|
54
|
-
'touchmove:passive': (event: Event) => void;
|
|
55
|
-
/** Event will be fired on touch end (mouseup) event added as passive listener (impossible to prevent default) */
|
|
56
|
-
'touchend:passive': (event: Event) => void;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
declare const TouchModule: Framework7Plugin;
|
|
61
|
-
|
|
62
|
-
export default TouchModule;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Utils } from '../../shared/utils';
|
|
2
|
-
import Framework7, { Framework7Plugin } from '../../components/app/app-class';
|
|
3
|
-
|
|
4
|
-
export namespace Utils {
|
|
5
|
-
interface AppMethods {
|
|
6
|
-
/** Object with set of helper methods */
|
|
7
|
-
utils: Utils;
|
|
8
|
-
}
|
|
9
|
-
interface AppParams {}
|
|
10
|
-
interface AppEvents {}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const UtilsModule: Framework7Plugin;
|
|
14
|
-
|
|
15
|
-
export default UtilsModule;
|