framework7 7.1.5 → 8.0.0-beta.2
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 +2 -16
- package/components/accordion/accordion.less +0 -3
- package/components/actions/actions-class.js +13 -58
- package/components/actions/actions-ios.less +42 -0
- package/components/actions/actions-md.less +12 -0
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions-vars.less +17 -42
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.d.ts +2 -2
- package/components/actions/actions.js +0 -4
- package/components/actions/actions.less +5 -35
- package/components/app/app-class.d.ts +14 -12
- package/components/app/app-class.js +93 -75
- package/components/app/app-ios.less +0 -2
- package/components/app/app-md.less +0 -2
- package/components/app/app-vars.less +13 -96
- package/components/app/app.less +1 -4
- package/components/app/load-module.js +17 -36
- package/components/area-chart/area-chart-class.js +8 -64
- package/components/area-chart/area-chart.js +0 -3
- package/components/area-chart/area-chart.less +0 -3
- package/components/autocomplete/autocomplete-class.js +30 -175
- package/components/autocomplete/autocomplete-ios.less +0 -8
- package/components/autocomplete/autocomplete-rtl.css +1 -1
- package/components/autocomplete/autocomplete-vars.less +8 -22
- package/components/autocomplete/autocomplete.css +1 -1
- package/components/autocomplete/autocomplete.d.ts +1 -3
- package/components/autocomplete/autocomplete.js +1 -6
- package/components/autocomplete/autocomplete.less +6 -18
- package/components/badge/badge-vars.less +3 -6
- package/components/badge/badge.less +1 -3
- package/components/block/block-vars.less +25 -52
- package/components/block/block.less +37 -12
- package/components/breadcrumbs/breadcrumbs-rtl.css +1 -1
- package/components/breadcrumbs/breadcrumbs-vars.less +31 -15
- package/components/breadcrumbs/breadcrumbs.css +1 -1
- package/components/breadcrumbs/breadcrumbs.js +0 -2
- package/components/breadcrumbs/breadcrumbs.less +4 -10
- package/components/button/button-vars.less +42 -43
- package/components/button/button.less +24 -26
- package/components/calendar/calendar-class.js +81 -401
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar-vars.less +32 -46
- package/components/calendar/calendar.css +1 -1
- package/components/calendar/calendar.js +6 -4
- package/components/calendar/calendar.less +10 -21
- package/components/card/card-rtl.css +1 -1
- package/components/card/card-vars.less +41 -44
- package/components/card/card.css +1 -1
- package/components/card/card.js +0 -108
- package/components/card/card.less +18 -24
- package/components/checkbox/checkbox-rtl.css +1 -1
- package/components/checkbox/checkbox-vars.less +0 -8
- package/components/checkbox/checkbox.css +1 -1
- package/components/checkbox/checkbox.less +32 -3
- package/components/chip/chip-ios.less +3 -0
- package/components/chip/chip-md.less +4 -3
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip-vars.less +17 -20
- package/components/chip/chip.css +1 -1
- package/components/chip/chip.less +16 -21
- package/components/color-picker/color-picker-class.js +27 -158
- 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 +0 -4
- package/components/color-picker/color-picker.less +18 -8
- package/components/color-picker/modules/alpha-slider.js +0 -12
- package/components/color-picker/modules/brightness-slider.js +0 -8
- package/components/color-picker/modules/current-color.js +0 -2
- package/components/color-picker/modules/hex.js +0 -12
- package/components/color-picker/modules/hs-spectrum.js +0 -20
- package/components/color-picker/modules/hsb-sliders.js +0 -18
- package/components/color-picker/modules/hue-slider.js +0 -7
- package/components/color-picker/modules/initial-current-colors.js +0 -7
- package/components/color-picker/modules/palette.js +2 -10
- package/components/color-picker/modules/rgb-bars.js +0 -17
- package/components/color-picker/modules/rgb-sliders.js +0 -17
- package/components/color-picker/modules/sb-spectrum.js +0 -20
- package/components/color-picker/modules/wheel.js +0 -28
- package/components/contacts-list/contacts-list-md.less +4 -3
- package/components/contacts-list/contacts-list-rtl.css +1 -1
- package/components/contacts-list/contacts-list-vars.less +3 -15
- package/components/contacts-list/contacts-list.css +1 -1
- package/components/contacts-list/contacts-list.less +0 -3
- package/components/data-table/data-table-class.js +10 -32
- package/components/data-table/data-table-rtl.css +1 -1
- package/components/data-table/data-table-vars.less +6 -39
- package/components/data-table/data-table.css +1 -1
- package/components/data-table/data-table.js +0 -8
- package/components/data-table/data-table.less +0 -3
- package/components/dialog/dialog-class.js +7 -41
- package/components/dialog/dialog-ios.less +0 -3
- package/components/dialog/dialog-md.less +9 -9
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog-vars.less +25 -70
- package/components/dialog/dialog.css +1 -1
- package/components/dialog/dialog.d.ts +2 -2
- package/components/dialog/dialog.js +12 -48
- package/components/dialog/dialog.less +8 -4
- package/components/fab/fab-rtl.css +1 -1
- package/components/fab/fab-vars.less +20 -14
- package/components/fab/fab.css +1 -1
- package/components/fab/fab.js +0 -21
- package/components/fab/fab.less +50 -53
- package/components/form/form.d.ts +4 -4
- package/components/form/form.js +58 -94
- package/components/form/form.less +0 -3
- package/components/gauge/gauge-class.js +4 -20
- package/components/gauge/gauge.js +0 -9
- package/components/gauge/gauge.less +0 -3
- package/components/grid/grid-rtl.css +1 -1
- package/components/grid/grid-vars.less +0 -7
- package/components/grid/grid.css +1 -1
- package/components/grid/grid.d.ts +2 -8
- package/components/grid/grid.js +1 -225
- package/components/grid/grid.less +54 -184
- package/components/icon/icon.less +0 -3
- package/components/infinite-scroll/infinite-scroll-rtl.css +1 -1
- package/components/infinite-scroll/infinite-scroll.css +1 -1
- package/components/infinite-scroll/infinite-scroll.js +0 -16
- package/components/infinite-scroll/infinite-scroll.less +0 -3
- package/components/input/input-ios.less +49 -41
- package/components/input/input-md.less +87 -19
- package/components/input/input-rtl.css +1 -1
- package/components/input/input-vars.less +26 -60
- package/components/input/input.css +1 -1
- package/components/input/input.js +8 -67
- package/components/input/input.less +67 -153
- package/components/link/link-vars.less +0 -5
- package/components/link/link.less +3 -3
- package/components/list/list-md.less +0 -7
- package/components/list/list-vars.less +59 -108
- package/components/list/list.less +122 -90
- package/components/list-index/list-index-class.js +12 -69
- package/components/list-index/list-index-rtl.css +1 -1
- package/components/list-index/list-index-vars.less +0 -7
- package/components/list-index/list-index.css +1 -1
- package/components/list-index/list-index.d.ts +1 -3
- package/components/list-index/list-index.js +0 -8
- package/components/list-index/list-index.less +4 -7
- package/components/login-screen/login-screen-class.js +4 -9
- package/components/login-screen/login-screen-rtl.css +1 -1
- package/components/login-screen/login-screen-vars.less +13 -12
- package/components/login-screen/login-screen.css +1 -1
- package/components/login-screen/login-screen.js +0 -4
- package/components/login-screen/login-screen.less +2 -8
- package/components/messagebar/messagebar-class.js +18 -79
- package/components/messagebar/messagebar-ios.less +36 -0
- package/components/messagebar/messagebar-md.less +96 -16
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar-vars.less +27 -50
- package/components/messagebar/messagebar.css +1 -1
- package/components/messagebar/messagebar.js +0 -8
- package/components/messagebar/messagebar.less +11 -42
- package/components/messages/messages-class.js +17 -110
- package/components/messages/messages-ios.less +9 -0
- package/components/messages/messages-md.less +63 -28
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages-vars.less +43 -50
- package/components/messages/messages.css +1 -1
- package/components/messages/messages.js +0 -8
- package/components/messages/messages.less +0 -11
- package/components/modal/custom-modal-class.js +4 -14
- package/components/modal/modal-class.js +19 -55
- package/components/modal/modal.js +0 -3
- package/components/navbar/navbar-ios.less +3 -39
- package/components/navbar/navbar-md.less +12 -0
- package/components/navbar/navbar-vars.less +20 -49
- package/components/navbar/navbar.d.ts +0 -2
- package/components/navbar/navbar.js +37 -166
- package/components/navbar/navbar.less +4 -26
- package/components/notification/notification-class.js +4 -39
- package/components/notification/notification-md.less +18 -8
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification-vars.less +15 -54
- package/components/notification/notification.css +1 -1
- package/components/notification/notification.js +0 -2
- package/components/notification/notification.less +0 -3
- package/components/page/page-md.less +40 -10
- package/components/page/page-transitions/circle.less +15 -9
- package/components/page/page-transitions/fade.less +17 -11
- package/components/page/page-transitions/flip.less +9 -4
- package/components/page/page-vars.less +3 -19
- package/components/page/page.less +2 -10
- package/components/panel/panel-class.js +27 -132
- package/components/panel/panel-md.less +9 -0
- package/components/panel/panel-rtl.css +1 -1
- package/components/panel/panel-vars.less +7 -21
- package/components/panel/panel.css +1 -1
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +0 -34
- package/components/panel/panel.less +56 -48
- package/components/panel/resizable-panel.js +2 -32
- package/components/panel/swipe-panel.js +16 -71
- package/components/photo-browser/photo-browser-class.js +41 -171
- package/components/photo-browser/photo-browser-rtl.css +1 -1
- package/components/photo-browser/photo-browser-vars.less +0 -3
- package/components/photo-browser/photo-browser.css +1 -1
- package/components/photo-browser/photo-browser.d.ts +2 -4
- package/components/photo-browser/photo-browser.js +1 -6
- package/components/photo-browser/photo-browser.less +0 -4
- package/components/picker/picker-class.js +26 -133
- package/components/picker/picker-column.js +11 -31
- package/components/picker/picker-ios.less +10 -0
- package/components/picker/picker-md.less +6 -0
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker-vars.less +9 -25
- package/components/picker/picker.css +1 -1
- package/components/picker/picker.js +0 -4
- package/components/picker/picker.less +0 -11
- package/components/pie-chart/pie-chart-class.js +8 -31
- package/components/pie-chart/pie-chart.js +0 -3
- package/components/pie-chart/pie-chart.less +0 -3
- package/components/popover/popover-class.js +72 -126
- package/components/popover/popover-ios.less +0 -50
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover-vars.less +6 -23
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.d.ts +2 -0
- package/components/popover/popover.js +1 -12
- package/components/popover/popover.less +62 -5
- package/components/popup/popup-class.js +12 -78
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup-vars.less +7 -9
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.js +0 -4
- package/components/popup/popup.less +4 -4
- package/components/preloader/preloader-ios.less +3 -1
- package/components/preloader/preloader-md.less +5 -1
- package/components/preloader/preloader-rtl.css +1 -1
- package/components/preloader/preloader-vars.less +0 -6
- package/components/preloader/preloader.css +1 -1
- package/components/preloader/preloader.js +8 -25
- package/components/preloader/preloader.less +6 -3
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar-vars.less +2 -12
- package/components/progressbar/progressbar.css +1 -1
- package/components/progressbar/progressbar.js +2 -31
- package/components/progressbar/progressbar.less +0 -3
- package/components/pull-to-refresh/pull-to-refresh-class.js +15 -107
- package/components/pull-to-refresh/pull-to-refresh-md.less +2 -1
- package/components/pull-to-refresh/pull-to-refresh-rtl.css +1 -1
- package/components/pull-to-refresh/pull-to-refresh-vars.less +0 -4
- package/components/pull-to-refresh/pull-to-refresh.css +1 -1
- package/components/pull-to-refresh/pull-to-refresh.js +0 -8
- package/components/pull-to-refresh/pull-to-refresh.less +0 -3
- package/components/radio/radio-rtl.css +1 -1
- package/components/radio/radio-vars.less +0 -7
- package/components/radio/radio.css +1 -1
- package/components/radio/radio.less +12 -5
- package/components/range/range-class.js +27 -112
- package/components/range/range-rtl.css +1 -1
- package/components/range/range-vars.less +10 -32
- package/components/range/range.css +1 -1
- package/components/range/range.js +0 -12
- package/components/range/range.less +0 -3
- package/components/searchbar/remove-diacritics.js +0 -4
- package/components/searchbar/searchbar-class.js +17 -138
- package/components/searchbar/searchbar-md.less +41 -16
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar-vars.less +25 -76
- package/components/searchbar/searchbar.css +1 -1
- package/components/searchbar/searchbar.d.ts +2 -2
- package/components/searchbar/searchbar.js +0 -15
- package/components/searchbar/searchbar.less +14 -28
- package/components/sheet/sheet-class.js +15 -110
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet-vars.less +17 -6
- package/components/sheet/sheet.css +1 -1
- package/components/sheet/sheet.js +0 -9
- package/components/sheet/sheet.less +10 -3
- package/components/skeleton/skeleton.less +0 -3
- package/components/smart-select/smart-select-class.js +39 -176
- package/components/smart-select/smart-select.d.ts +3 -3
- package/components/smart-select/smart-select.js +2 -14
- package/components/smart-select/smart-select.less +0 -3
- package/components/sortable/sortable-rtl.css +1 -1
- package/components/sortable/sortable-vars.less +8 -8
- package/components/sortable/sortable.css +1 -1
- package/components/sortable/sortable.js +0 -44
- package/components/sortable/sortable.less +0 -3
- package/components/statusbar/statusbar.js +0 -36
- package/components/statusbar/statusbar.less +0 -3
- package/components/stepper/stepper-class.js +10 -83
- package/components/stepper/stepper-rtl.css +1 -1
- package/components/stepper/stepper-vars.less +12 -24
- package/components/stepper/stepper.css +1 -1
- package/components/stepper/stepper.js +0 -12
- package/components/stepper/stepper.less +12 -23
- package/components/subnavbar/subnavbar-vars.less +3 -18
- package/components/subnavbar/subnavbar.js +0 -3
- package/components/subnavbar/subnavbar.less +1 -11
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout-vars.less +7 -6
- package/components/swipeout/swipeout.css +1 -1
- package/components/swipeout/swipeout.js +2 -99
- package/components/swipeout/swipeout.less +2 -7
- package/components/swiper/swiper-rtl.css +1 -1
- package/components/swiper/swiper.css +1 -1
- package/components/swiper/swiper.js +15 -48
- package/components/swiper/swiper.less +0 -15
- package/components/tabs/tabs-rtl.css +1 -1
- package/components/tabs/tabs.css +1 -1
- package/components/tabs/tabs.js +23 -60
- package/components/tabs/tabs.less +1 -3
- package/components/text-editor/text-editor-class.js +16 -102
- package/components/text-editor/text-editor-rtl.css +1 -1
- package/components/text-editor/text-editor-vars.less +12 -16
- package/components/text-editor/text-editor.css +1 -1
- package/components/text-editor/text-editor.js +0 -8
- package/components/text-editor/text-editor.less +0 -6
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline-vars.less +13 -47
- package/components/timeline/timeline.css +1 -1
- package/components/timeline/timeline.less +2 -9
- package/components/toast/toast-class.js +2 -16
- package/components/toast/toast-rtl.css +1 -1
- package/components/toast/toast-vars.less +5 -9
- package/components/toast/toast.css +1 -1
- package/components/toast/toast.js +0 -3
- package/components/toast/toast.less +0 -3
- package/components/toggle/toggle-class.js +6 -30
- package/components/toggle/toggle-ios.less +5 -1
- package/components/toggle/toggle-md.less +27 -11
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle-vars.less +19 -21
- package/components/toggle/toggle.css +1 -1
- package/components/toggle/toggle.js +0 -8
- package/components/toggle/toggle.less +0 -4
- package/components/toolbar/toolbar-ios.less +2 -2
- package/components/toolbar/toolbar-md.less +28 -4
- package/components/toolbar/toolbar-vars.less +17 -52
- package/components/toolbar/toolbar.js +5 -43
- package/components/toolbar/toolbar.less +27 -45
- package/components/tooltip/tooltip-class.js +10 -64
- package/components/tooltip/tooltip-rtl.css +1 -1
- package/components/tooltip/tooltip-vars.less +12 -3
- package/components/tooltip/tooltip.css +1 -1
- package/components/tooltip/tooltip.js +0 -15
- package/components/tooltip/tooltip.less +0 -3
- package/components/touch-ripple/touch-ripple-class.js +0 -13
- package/components/touch-ripple/touch-ripple.js +0 -4
- package/components/touch-ripple/touch-ripple.less +1 -5
- package/components/treeview/treeview-rtl.css +1 -1
- package/components/treeview/treeview-vars.less +0 -3
- package/components/treeview/treeview.css +1 -1
- package/components/treeview/treeview.js +2 -11
- package/components/treeview/treeview.less +0 -3
- package/components/typography/typography-rtl.css +1 -1
- package/components/typography/typography.css +1 -1
- package/components/typography/typography.less +25 -3
- package/components/view/resizable-view.js +2 -24
- package/components/view/view-class.js +28 -53
- package/components/view/view.d.ts +0 -14
- package/components/view/view.js +8 -32
- package/components/view/view.less +1 -4
- package/components/virtual-list/virtual-list-class.js +58 -146
- package/components/virtual-list/virtual-list.d.ts +1 -1
- package/components/virtual-list/virtual-list.js +0 -2
- package/components/virtual-list/virtual-list.less +0 -3
- package/framework7-bundle-rtl.css +3064 -6057
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +3063 -6059
- package/framework7-bundle.esm.js +4 -10
- package/framework7-bundle.js +6442 -12377
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -27
- package/framework7-bundle.min.css +3 -3
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +4 -10
- package/framework7-lite.esm.js +4 -6
- package/framework7-rtl.css +803 -1591
- package/framework7-rtl.min.css +3 -3
- package/framework7-types.d.ts +1 -32
- package/framework7.css +803 -1594
- package/framework7.d.ts +1 -32
- package/framework7.esm.js +4 -6
- package/framework7.less +2 -23
- package/framework7.min.css +3 -3
- package/less/mixins.less +7 -88
- package/modules/clicks/clicks.js +10 -22
- package/modules/component/$h.js +0 -3
- package/modules/component/$jsx.js +0 -5
- package/modules/component/component-class.js +13 -66
- package/modules/component/component.d.ts +1 -2
- package/modules/component/component.js +0 -8
- package/modules/component/eventslisteners.js +12 -20
- package/modules/component/parse-component.js +18 -20
- package/modules/component/snabbdom/h.js +3 -12
- package/modules/component/snabbdom/helpers/attachto.js +9 -14
- package/modules/component/snabbdom/htmldomapi.js +0 -16
- package/modules/component/snabbdom/modules/attributes.js +7 -11
- package/modules/component/snabbdom/modules/class.js +4 -8
- package/modules/component/snabbdom/modules/dataset.js +3 -7
- package/modules/component/snabbdom/modules/eventlisteners.js +16 -22
- package/modules/component/snabbdom/modules/hero.js +4 -44
- package/modules/component/snabbdom/modules/props.js +5 -9
- package/modules/component/snabbdom/modules/style.js +13 -30
- package/modules/component/snabbdom/snabbdom.bundle.js +0 -6
- package/modules/component/snabbdom/snabbdom.js +13 -72
- package/modules/component/snabbdom/thunk.js +3 -11
- package/modules/component/snabbdom/tovnode.js +1 -6
- package/modules/component/vdom.js +4 -62
- package/modules/demo-module.js +0 -8
- package/modules/device/device.js +6 -11
- package/modules/history/history.js +0 -1
- package/modules/resize/resize.js +8 -11
- package/modules/router/async-component.js +0 -3
- package/modules/router/back.js +86 -275
- package/modules/router/clear-previous-history.js +5 -18
- package/modules/router/component-loader.js +4 -25
- package/modules/router/modal.js +16 -43
- package/modules/router/navigate.js +80 -250
- package/modules/router/process-route-queue.js +0 -12
- package/modules/router/redirect.js +0 -8
- package/modules/router/router-class.js +92 -315
- package/modules/router/router.d.ts +3 -5
- package/modules/router/router.js +0 -3
- package/modules/router/swipe-back.js +35 -139
- package/modules/router/tab.js +14 -43
- package/modules/service-worker/service-worker.js +0 -11
- package/modules/store/create-store.js +10 -29
- package/modules/touch/touch.d.ts +2 -4
- package/modules/touch/touch.js +13 -108
- package/package.json +3 -14
- package/shared/$jsx.js +0 -6
- package/shared/class.js +18 -43
- package/shared/constructor-methods.js +0 -11
- package/shared/events-class.js +0 -17
- package/shared/get-device.js +18 -34
- package/shared/get-support.js +2 -8
- package/shared/history.js +2 -30
- package/shared/material-color-utils.js +728 -0
- package/shared/material-colors.js +75 -0
- package/shared/modal-methods.js +0 -18
- package/shared/utils.d.ts +0 -4
- package/shared/utils.js +191 -71
- package/components/accordion/accordion-aurora.less +0 -2
- package/components/accordion/accordion.lazy.js +0 -1
- package/components/actions/actions-aurora.less +0 -9
- package/components/actions/actions.lazy.js +0 -1
- package/components/app/app-aurora.less +0 -10
- package/components/appbar/appbar-aurora.less +0 -2
- package/components/appbar/appbar-ios.less +0 -2
- package/components/appbar/appbar-md.less +0 -2
- package/components/appbar/appbar-rtl.css +0 -1
- package/components/appbar/appbar-vars.less +0 -28
- package/components/appbar/appbar.css +0 -1
- package/components/appbar/appbar.d.ts +0 -14
- package/components/appbar/appbar.js +0 -3
- package/components/appbar/appbar.lazy.js +0 -1
- package/components/appbar/appbar.less +0 -106
- package/components/area-chart/area-chart-aurora.less +0 -2
- package/components/area-chart/area-chart.lazy.js +0 -1
- package/components/autocomplete/autocomplete-aurora.less +0 -17
- package/components/autocomplete/autocomplete.lazy.js +0 -1
- package/components/badge/badge-aurora.less +0 -2
- package/components/block/block-aurora.less +0 -2
- package/components/breadcrumbs/breadcrumbs-aurora.less +0 -2
- package/components/breadcrumbs/breadcrumbs.lazy.js +0 -1
- package/components/button/button-aurora.less +0 -25
- package/components/calendar/calendar-aurora.less +0 -2
- package/components/calendar/calendar.lazy.js +0 -1
- package/components/card/card-aurora.less +0 -2
- package/components/card/card.lazy.js +0 -1
- package/components/checkbox/checkbox-aurora.less +0 -39
- package/components/checkbox/checkbox.lazy.js +0 -1
- package/components/chip/chip-aurora.less +0 -14
- package/components/chip/chip.lazy.js +0 -1
- package/components/color-picker/color-picker-aurora.less +0 -2
- package/components/color-picker/color-picker.lazy.js +0 -1
- package/components/contacts-list/contacts-list-aurora.less +0 -2
- package/components/contacts-list/contacts-list.lazy.js +0 -1
- package/components/data-table/data-table-aurora.less +0 -64
- package/components/data-table/data-table.lazy.js +0 -1
- package/components/dialog/dialog-aurora.less +0 -112
- package/components/dialog/dialog.lazy.js +0 -1
- package/components/elevation/elevation-aurora.less +0 -2
- package/components/elevation/elevation-ios.less +0 -2
- package/components/elevation/elevation-md.less +0 -2
- package/components/elevation/elevation-rtl.css +0 -1
- package/components/elevation/elevation-vars.less +0 -51
- package/components/elevation/elevation.css +0 -1
- package/components/elevation/elevation.d.ts +0 -14
- package/components/elevation/elevation.js +0 -3
- package/components/elevation/elevation.lazy.js +0 -1
- package/components/elevation/elevation.less +0 -54
- package/components/fab/fab-aurora.less +0 -2
- package/components/fab/fab.lazy.js +0 -1
- package/components/form/form-aurora.less +0 -0
- package/components/form/form.lazy.js +0 -1
- package/components/gauge/gauge-aurora.less +0 -2
- package/components/gauge/gauge.lazy.js +0 -1
- package/components/grid/grid-aurora.less +0 -2
- package/components/grid/grid.lazy.js +0 -1
- package/components/icon/icon-aurora.less +0 -49
- package/components/infinite-scroll/infinite-scroll-aurora.less +0 -6
- package/components/infinite-scroll/infinite-scroll.lazy.js +0 -1
- package/components/input/input-aurora.less +0 -120
- package/components/input/input.lazy.js +0 -1
- package/components/lazy/lazy-aurora.less +0 -2
- package/components/lazy/lazy-ios.less +0 -2
- package/components/lazy/lazy-md.less +0 -2
- package/components/lazy/lazy-rtl.css +0 -1
- package/components/lazy/lazy.css +0 -1
- package/components/lazy/lazy.d.ts +0 -57
- package/components/lazy/lazy.js +0 -283
- package/components/lazy/lazy.lazy.js +0 -1
- package/components/lazy/lazy.less +0 -23
- package/components/link/link-aurora.less +0 -15
- package/components/list/list-aurora.less +0 -25
- package/components/list-index/list-index-aurora.less +0 -21
- package/components/list-index/list-index.lazy.js +0 -1
- package/components/login-screen/login-screen-aurora.less +0 -2
- package/components/login-screen/login-screen.lazy.js +0 -1
- package/components/menu/menu-aurora.less +0 -8
- package/components/menu/menu-ios.less +0 -2
- package/components/menu/menu-md.less +0 -2
- package/components/menu/menu-rtl.css +0 -1
- package/components/menu/menu-vars.less +0 -27
- package/components/menu/menu.css +0 -1
- package/components/menu/menu.d.ts +0 -32
- package/components/menu/menu.js +0 -87
- package/components/menu/menu.lazy.js +0 -1
- package/components/menu/menu.less +0 -232
- package/components/messagebar/messagebar-aurora.less +0 -53
- package/components/messagebar/messagebar.lazy.js +0 -1
- package/components/messages/messages-aurora.less +0 -137
- package/components/messages/messages.lazy.js +0 -1
- package/components/navbar/navbar-aurora.less +0 -70
- package/components/notification/notification-aurora.less +0 -59
- package/components/notification/notification.lazy.js +0 -1
- package/components/page/page-aurora.less +0 -49
- package/components/panel/panel-aurora.less +0 -2
- package/components/panel/panel.lazy.js +0 -1
- package/components/photo-browser/photo-browser-aurora.less +0 -2
- package/components/photo-browser/photo-browser.lazy.js +0 -1
- package/components/picker/picker-aurora.less +0 -2
- package/components/picker/picker.lazy.js +0 -1
- package/components/pie-chart/pie-chart-aurora.less +0 -2
- package/components/pie-chart/pie-chart.lazy.js +0 -1
- package/components/popover/popover-aurora.less +0 -56
- package/components/popover/popover.lazy.js +0 -1
- package/components/popup/popup-aurora.less +0 -2
- package/components/popup/popup.lazy.js +0 -1
- package/components/preloader/preloader-aurora.less +0 -53
- package/components/preloader/preloader.lazy.js +0 -1
- package/components/progressbar/progressbar-aurora.less +0 -72
- package/components/progressbar/progressbar.lazy.js +0 -1
- package/components/pull-to-refresh/pull-to-refresh-aurora.less +0 -122
- package/components/pull-to-refresh/pull-to-refresh.lazy.js +0 -1
- package/components/radio/radio-aurora.less +0 -86
- package/components/radio/radio.lazy.js +0 -1
- package/components/range/range-aurora.less +0 -9
- package/components/range/range.lazy.js +0 -1
- package/components/searchbar/searchbar-aurora.less +0 -86
- package/components/searchbar/searchbar.lazy.js +0 -1
- package/components/sheet/sheet-aurora.less +0 -2
- package/components/sheet/sheet.lazy.js +0 -1
- package/components/skeleton/skeleton-aurora.less +0 -2
- package/components/skeleton/skeleton.lazy.js +0 -1
- package/components/smart-select/smart-select-aurora.less +0 -2
- package/components/smart-select/smart-select.lazy.js +0 -1
- package/components/sortable/sortable-aurora.less +0 -7
- package/components/sortable/sortable.lazy.js +0 -1
- package/components/statusbar/statusbar-aurora.less +0 -2
- package/components/stepper/stepper-aurora.less +0 -32
- package/components/stepper/stepper.lazy.js +0 -1
- package/components/subnavbar/subnavbar-aurora.less +0 -51
- package/components/swipeout/swipeout-aurora.less +0 -2
- package/components/swipeout/swipeout.lazy.js +0 -1
- package/components/swiper/swiper-aurora.less +0 -2
- package/components/swiper/swiper.lazy.js +0 -1
- package/components/tabs/tabs-aurora.less +0 -2
- package/components/tabs/tabs.lazy.js +0 -1
- package/components/text-editor/text-editor-aurora.less +0 -9
- package/components/text-editor/text-editor.lazy.js +0 -1
- package/components/timeline/timeline-aurora.less +0 -7
- package/components/timeline/timeline.lazy.js +0 -1
- package/components/toast/toast-aurora.less +0 -64
- package/components/toast/toast.lazy.js +0 -1
- package/components/toggle/toggle-aurora.less +0 -26
- package/components/toggle/toggle.lazy.js +0 -1
- package/components/toolbar/toolbar-aurora.less +0 -43
- package/components/tooltip/tooltip-aurora.less +0 -2
- package/components/tooltip/tooltip.lazy.js +0 -1
- package/components/touch-ripple/touch-ripple-aurora.less +0 -2
- package/components/treeview/treeview-aurora.less +0 -31
- package/components/treeview/treeview.lazy.js +0 -1
- package/components/typography/typography-aurora.less +0 -2
- package/components/typography/typography.lazy.js +0 -1
- package/components/view/view-aurora.less +0 -2
- package/components/virtual-list/virtual-list-aurora.less +0 -2
- package/components/virtual-list/virtual-list.lazy.js +0 -1
- package/framework7.js +0 -14715
- package/framework7.js.map +0 -1
- package/framework7.min.js +0 -14
- package/framework7.min.js.map +0 -1
- package/modules/request/request.d.ts +0 -15
- package/modules/request/request.js +0 -11
- package/shared/request.d.ts +0 -115
- package/shared/request.js +0 -512
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
z-index: 13500;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
.popover {
|
|
9
10
|
width: var(--f7-popover-width);
|
|
10
11
|
z-index: 13500;
|
|
@@ -17,7 +18,6 @@
|
|
|
17
18
|
transition-duration: 300ms;
|
|
18
19
|
background-color: var(--f7-popover-bg-color);
|
|
19
20
|
border-radius: var(--f7-popover-border-radius);
|
|
20
|
-
box-shadow: var(--f7-popover-box-shadow);
|
|
21
21
|
will-change: transform, opacity;
|
|
22
22
|
--f7-safe-area-top: 0px;
|
|
23
23
|
--f7-safe-area-left: 0px;
|
|
@@ -73,6 +73,10 @@
|
|
|
73
73
|
transition-duration: 0ms;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
+
.popover,
|
|
77
|
+
.popover-backdrop {
|
|
78
|
+
transition-timing-function: var(--f7-popover-transition-timing-function);
|
|
79
|
+
}
|
|
76
80
|
.popover-inner {
|
|
77
81
|
.scrollable();
|
|
78
82
|
}
|
|
@@ -83,9 +87,12 @@
|
|
|
83
87
|
font-size: var(--f7-popover-actions-icon-size);
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
|
-
.popover-from-actions-
|
|
90
|
+
.ios .popover-from-actions-strong {
|
|
87
91
|
font-weight: 600;
|
|
88
92
|
}
|
|
93
|
+
.md .popover-from-actions-strong {
|
|
94
|
+
font-weight: 500;
|
|
95
|
+
}
|
|
89
96
|
.popover-from-actions-label {
|
|
90
97
|
line-height: 1.3;
|
|
91
98
|
position: relative;
|
|
@@ -99,6 +106,59 @@
|
|
|
99
106
|
&:last-child {
|
|
100
107
|
.hairline-remove(bottom);
|
|
101
108
|
}
|
|
109
|
+
.md & {
|
|
110
|
+
justify-content: center;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.popover-angle {
|
|
114
|
+
width: 26px;
|
|
115
|
+
height: 26px;
|
|
116
|
+
position: absolute;
|
|
117
|
+
left: -26px;
|
|
118
|
+
top: 0;
|
|
119
|
+
z-index: 100;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
&:after {
|
|
122
|
+
content: '';
|
|
123
|
+
background: var(--f7-popover-bg-color);
|
|
124
|
+
width: 26px;
|
|
125
|
+
height: 26px;
|
|
126
|
+
position: absolute;
|
|
127
|
+
left: 0;
|
|
128
|
+
top: 0;
|
|
129
|
+
border-radius: 3px;
|
|
130
|
+
transform: rotate(45deg);
|
|
131
|
+
}
|
|
132
|
+
&.on-left {
|
|
133
|
+
left: -26px;
|
|
134
|
+
&:after {
|
|
135
|
+
left: 19px;
|
|
136
|
+
top: 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
&.on-right {
|
|
140
|
+
left: 100%;
|
|
141
|
+
&:after {
|
|
142
|
+
left: -19px;
|
|
143
|
+
top: 0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
&.on-top {
|
|
147
|
+
left: 0;
|
|
148
|
+
top: -26px;
|
|
149
|
+
&:after {
|
|
150
|
+
left: 0;
|
|
151
|
+
top: 19px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
&.on-bottom {
|
|
155
|
+
left: 0;
|
|
156
|
+
top: 100%;
|
|
157
|
+
&:after {
|
|
158
|
+
left: 0;
|
|
159
|
+
top: -19px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
102
162
|
}
|
|
103
163
|
.if-ios-theme({
|
|
104
164
|
@import './popover-ios.less';
|
|
@@ -106,6 +166,3 @@
|
|
|
106
166
|
.if-md-theme({
|
|
107
167
|
@import './popover-md.less';
|
|
108
168
|
});
|
|
109
|
-
.if-aurora-theme({
|
|
110
|
-
@import './popover-aurora.less';
|
|
111
|
-
});
|
|
@@ -4,39 +4,35 @@ import { extend, now, nextTick } from '../../shared/utils.js';
|
|
|
4
4
|
import { getSupport } from '../../shared/get-support.js';
|
|
5
5
|
import { getDevice } from '../../shared/get-device.js';
|
|
6
6
|
import Modal from '../modal/modal-class.js';
|
|
7
|
-
|
|
8
7
|
class Popup extends Modal {
|
|
9
8
|
constructor(app, params) {
|
|
10
9
|
const extendedParams = extend({
|
|
11
10
|
on: {}
|
|
12
|
-
}, app.params.popup, params);
|
|
11
|
+
}, app.params.popup, params);
|
|
13
12
|
|
|
13
|
+
// Extends with open/close Modal methods;
|
|
14
14
|
super(app, extendedParams);
|
|
15
15
|
const popup = this;
|
|
16
16
|
const window = getWindow();
|
|
17
17
|
const document = getDocument();
|
|
18
18
|
const support = getSupport();
|
|
19
19
|
const device = getDevice();
|
|
20
|
-
popup.params = extendedParams;
|
|
20
|
+
popup.params = extendedParams;
|
|
21
21
|
|
|
22
|
+
// Find Element
|
|
22
23
|
let $el;
|
|
23
|
-
|
|
24
24
|
if (!popup.params.el) {
|
|
25
25
|
$el = $(popup.params.content).filter(node => node.nodeType === 1).eq(0);
|
|
26
26
|
} else {
|
|
27
27
|
$el = $(popup.params.el).eq(0);
|
|
28
28
|
}
|
|
29
|
-
|
|
30
29
|
if ($el && $el.length > 0 && $el[0].f7Modal) {
|
|
31
30
|
return $el[0].f7Modal;
|
|
32
31
|
}
|
|
33
|
-
|
|
34
32
|
if ($el.length === 0) {
|
|
35
33
|
return popup.destroy();
|
|
36
34
|
}
|
|
37
|
-
|
|
38
35
|
let $backdropEl;
|
|
39
|
-
|
|
40
36
|
if (popup.params.backdrop && popup.params.backdropEl) {
|
|
41
37
|
$backdropEl = $(popup.params.backdropEl);
|
|
42
38
|
} else if (popup.params.backdrop) {
|
|
@@ -46,13 +42,11 @@ class Popup extends Modal {
|
|
|
46
42
|
} else {
|
|
47
43
|
$backdropEl = popup.$containerEl.children('.popup-backdrop');
|
|
48
44
|
}
|
|
49
|
-
|
|
50
45
|
if ($backdropEl.length === 0) {
|
|
51
46
|
$backdropEl = $('<div class="popup-backdrop"></div>');
|
|
52
47
|
popup.$containerEl.append($backdropEl);
|
|
53
48
|
}
|
|
54
49
|
}
|
|
55
|
-
|
|
56
50
|
extend(popup, {
|
|
57
51
|
app,
|
|
58
52
|
push: $el.hasClass('popup-push') || popup.params.push,
|
|
@@ -63,51 +57,41 @@ class Popup extends Modal {
|
|
|
63
57
|
type: 'popup',
|
|
64
58
|
$htmlEl: $('html')
|
|
65
59
|
});
|
|
66
|
-
|
|
67
60
|
if (popup.params.push) {
|
|
68
61
|
$el.addClass('popup-push');
|
|
69
62
|
}
|
|
70
|
-
|
|
71
63
|
function handleClick(e) {
|
|
72
64
|
const target = e.target;
|
|
73
65
|
const $target = $(target);
|
|
74
66
|
const keyboardOpened = !device.desktop && device.cordova && (window.Keyboard && window.Keyboard.isVisible || window.cordova.plugins && window.cordova.plugins.Keyboard && window.cordova.plugins.Keyboard.isVisible);
|
|
75
67
|
if (keyboardOpened) return;
|
|
76
|
-
|
|
77
68
|
if ($target.closest(popup.el).length === 0) {
|
|
78
69
|
if (popup.params && popup.params.closeByBackdropClick && popup.params.backdrop && popup.backdropEl && popup.backdropEl === target) {
|
|
79
70
|
let needToClose = true;
|
|
80
71
|
popup.$el.nextAll('.popup.modal-in').each(popupEl => {
|
|
81
72
|
const popupInstance = popupEl.f7Modal;
|
|
82
73
|
if (!popupInstance) return;
|
|
83
|
-
|
|
84
74
|
if (popupInstance.params.closeByBackdropClick && popupInstance.params.backdrop && popupInstance.backdropEl === popup.backdropEl) {
|
|
85
75
|
needToClose = false;
|
|
86
76
|
}
|
|
87
77
|
});
|
|
88
|
-
|
|
89
78
|
if (needToClose) {
|
|
90
79
|
popup.close();
|
|
91
80
|
}
|
|
92
81
|
}
|
|
93
82
|
}
|
|
94
83
|
}
|
|
95
|
-
|
|
96
84
|
function onKeyDown(e) {
|
|
97
85
|
const keyCode = e.keyCode;
|
|
98
|
-
|
|
99
86
|
if (keyCode === 27 && popup.params.closeOnEscape) {
|
|
100
87
|
popup.close();
|
|
101
88
|
}
|
|
102
89
|
}
|
|
103
|
-
|
|
104
90
|
let pushOffset;
|
|
105
91
|
let isPush;
|
|
106
|
-
|
|
107
92
|
function pushViewScale(offset) {
|
|
108
93
|
return (app.height - offset * 2) / app.height;
|
|
109
94
|
}
|
|
110
|
-
|
|
111
95
|
let allowSwipeToClose = true;
|
|
112
96
|
let isTouched = false;
|
|
113
97
|
let startTouch;
|
|
@@ -122,14 +106,11 @@ class Popup extends Modal {
|
|
|
122
106
|
let pageContentScrollHeight;
|
|
123
107
|
let popupHeight;
|
|
124
108
|
let $pushEl;
|
|
125
|
-
|
|
126
109
|
function handleTouchStart(e) {
|
|
127
110
|
if (isTouched || !allowSwipeToClose || !popup.params.swipeToClose) return;
|
|
128
|
-
|
|
129
111
|
if (popup.params.swipeHandler && $(e.target).closest(popup.params.swipeHandler).length === 0) {
|
|
130
112
|
return;
|
|
131
113
|
}
|
|
132
|
-
|
|
133
114
|
isTouched = true;
|
|
134
115
|
isMoved = false;
|
|
135
116
|
startTouch = {
|
|
@@ -138,59 +119,47 @@ class Popup extends Modal {
|
|
|
138
119
|
};
|
|
139
120
|
touchStartTime = now();
|
|
140
121
|
isScrolling = undefined;
|
|
141
|
-
|
|
142
122
|
if (!popup.params.swipeHandler && e.type === 'touchstart') {
|
|
143
123
|
pageContentEl = $(e.target).closest('.page-content')[0];
|
|
144
124
|
}
|
|
145
125
|
}
|
|
146
|
-
|
|
147
126
|
function handleTouchMove(e) {
|
|
148
127
|
if (!isTouched) return;
|
|
149
128
|
currentTouch = {
|
|
150
129
|
x: e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX,
|
|
151
130
|
y: e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY
|
|
152
131
|
};
|
|
153
|
-
|
|
154
132
|
if (typeof isScrolling === 'undefined') {
|
|
155
133
|
isScrolling = !!(isScrolling || Math.abs(currentTouch.x - startTouch.x) > Math.abs(currentTouch.y - startTouch.y));
|
|
156
134
|
}
|
|
157
|
-
|
|
158
135
|
if (isScrolling) {
|
|
159
136
|
isTouched = false;
|
|
160
137
|
isMoved = false;
|
|
161
138
|
return;
|
|
162
139
|
}
|
|
163
|
-
|
|
164
140
|
touchesDiff = startTouch.y - currentTouch.y;
|
|
165
|
-
|
|
166
141
|
if (isPush && pushOffset && touchesDiff > 0) {
|
|
167
142
|
touchesDiff = 0;
|
|
168
143
|
}
|
|
169
|
-
|
|
170
144
|
const direction = touchesDiff < 0 ? 'to-bottom' : 'to-top';
|
|
171
145
|
$el.transition(0);
|
|
172
|
-
|
|
173
146
|
if (typeof popup.params.swipeToClose === 'string' && direction !== popup.params.swipeToClose) {
|
|
174
147
|
$el.transform('');
|
|
175
148
|
$el.transition('');
|
|
176
149
|
return;
|
|
177
150
|
}
|
|
178
|
-
|
|
179
151
|
if (!isMoved) {
|
|
180
152
|
if (isPush && pushOffset) {
|
|
181
153
|
popupHeight = $el[0].offsetHeight;
|
|
182
154
|
$pushEl = $el.prevAll('.popup.modal-in').eq(0);
|
|
183
|
-
|
|
184
155
|
if ($pushEl.length === 0) {
|
|
185
156
|
$pushEl = app.$el.children('.view, .views');
|
|
186
157
|
}
|
|
187
158
|
}
|
|
188
|
-
|
|
189
159
|
if (pageContentEl) {
|
|
190
160
|
pageContentScrollTop = pageContentEl.scrollTop;
|
|
191
161
|
pageContentScrollHeight = pageContentEl.scrollHeight;
|
|
192
162
|
pageContentOffsetHeight = pageContentEl.offsetHeight;
|
|
193
|
-
|
|
194
163
|
if (!(pageContentScrollHeight === pageContentOffsetHeight) && !(direction === 'to-bottom' && pageContentScrollTop === 0) && !(direction === 'to-top' && pageContentScrollTop === pageContentScrollHeight - pageContentOffsetHeight)) {
|
|
195
164
|
$el.transform('');
|
|
196
165
|
$el.transition('');
|
|
@@ -199,7 +168,6 @@ class Popup extends Modal {
|
|
|
199
168
|
return;
|
|
200
169
|
}
|
|
201
170
|
}
|
|
202
|
-
|
|
203
171
|
isMoved = true;
|
|
204
172
|
popup.emit('local::swipeStart popupSwipeStart', popup);
|
|
205
173
|
popup.$el.trigger('popup:swipestart');
|
|
@@ -207,13 +175,10 @@ class Popup extends Modal {
|
|
|
207
175
|
popup.emit('local::swipeMove popupSwipeMove', popup);
|
|
208
176
|
popup.$el.trigger('popup:swipemove');
|
|
209
177
|
}
|
|
210
|
-
|
|
211
178
|
e.preventDefault();
|
|
212
|
-
|
|
213
179
|
if (isPush && pushOffset) {
|
|
214
180
|
const pushProgress = 1 - Math.abs(touchesDiff / popupHeight);
|
|
215
181
|
const scale = 1 - (1 - pushViewScale(pushOffset)) * pushProgress;
|
|
216
|
-
|
|
217
182
|
if ($pushEl.hasClass('popup')) {
|
|
218
183
|
if ($pushEl.hasClass('popup-push')) {
|
|
219
184
|
$pushEl.transition(0).forEach(el => {
|
|
@@ -230,38 +195,29 @@ class Popup extends Modal {
|
|
|
230
195
|
});
|
|
231
196
|
}
|
|
232
197
|
}
|
|
233
|
-
|
|
234
198
|
$el.transition(0).transform(`translate3d(0,${-touchesDiff}px,0)`);
|
|
235
199
|
}
|
|
236
|
-
|
|
237
200
|
function handleTouchEnd() {
|
|
238
201
|
isTouched = false;
|
|
239
|
-
|
|
240
202
|
if (!isMoved) {
|
|
241
203
|
return;
|
|
242
204
|
}
|
|
243
|
-
|
|
244
205
|
popup.emit('local::swipeEnd popupSwipeEnd', popup);
|
|
245
206
|
popup.$el.trigger('popup:swipeend');
|
|
246
207
|
isMoved = false;
|
|
247
208
|
allowSwipeToClose = false;
|
|
248
209
|
$el.transition('');
|
|
249
|
-
|
|
250
210
|
if (isPush && pushOffset) {
|
|
251
211
|
$pushEl.transition('').transform('');
|
|
252
212
|
}
|
|
253
|
-
|
|
254
213
|
const direction = touchesDiff <= 0 ? 'to-bottom' : 'to-top';
|
|
255
|
-
|
|
256
214
|
if (typeof popup.params.swipeToClose === 'string' && direction !== popup.params.swipeToClose) {
|
|
257
215
|
$el.transform('');
|
|
258
216
|
allowSwipeToClose = true;
|
|
259
217
|
return;
|
|
260
218
|
}
|
|
261
|
-
|
|
262
219
|
const diff = Math.abs(touchesDiff);
|
|
263
220
|
const timeDiff = new Date().getTime() - touchStartTime;
|
|
264
|
-
|
|
265
221
|
if (timeDiff < 300 && diff > 20 || timeDiff >= 300 && diff > 100) {
|
|
266
222
|
nextTick(() => {
|
|
267
223
|
if (direction === 'to-bottom') {
|
|
@@ -269,7 +225,6 @@ class Popup extends Modal {
|
|
|
269
225
|
} else {
|
|
270
226
|
$el.addClass('swipe-close-to-top');
|
|
271
227
|
}
|
|
272
|
-
|
|
273
228
|
$el.transform('');
|
|
274
229
|
popup.emit('local::swipeclose popupSwipeClose', popup);
|
|
275
230
|
popup.$el.trigger('popup:swipeclose');
|
|
@@ -278,15 +233,12 @@ class Popup extends Modal {
|
|
|
278
233
|
});
|
|
279
234
|
return;
|
|
280
235
|
}
|
|
281
|
-
|
|
282
236
|
allowSwipeToClose = true;
|
|
283
237
|
$el.transform('');
|
|
284
238
|
}
|
|
285
|
-
|
|
286
239
|
const passive = support.passiveListener ? {
|
|
287
240
|
passive: true
|
|
288
241
|
} : false;
|
|
289
|
-
|
|
290
242
|
if (popup.params.swipeToClose) {
|
|
291
243
|
$el.on(app.touchEvents.start, handleTouchStart, passive);
|
|
292
244
|
app.on('touchmove', handleTouchMove);
|
|
@@ -297,16 +249,12 @@ class Popup extends Modal {
|
|
|
297
249
|
app.off('touchend:passive', handleTouchEnd);
|
|
298
250
|
});
|
|
299
251
|
}
|
|
300
|
-
|
|
301
252
|
let hasPreviousPushPopup;
|
|
302
|
-
|
|
303
253
|
const updatePushOffset = () => {
|
|
304
254
|
const wasPush = isPush;
|
|
305
|
-
|
|
306
255
|
if (popup.push) {
|
|
307
256
|
isPush = popup.push && (app.width < 630 || app.height < 630 || $el.hasClass('popup-tablet-fullscreen'));
|
|
308
257
|
}
|
|
309
|
-
|
|
310
258
|
if (isPush && !wasPush) {
|
|
311
259
|
// eslint-disable-next-line
|
|
312
260
|
setPushOffset();
|
|
@@ -317,77 +265,63 @@ class Popup extends Modal {
|
|
|
317
265
|
popup.$htmlEl[0].style.removeProperty('--f7-popup-push-scale');
|
|
318
266
|
}
|
|
319
267
|
};
|
|
320
|
-
|
|
321
268
|
const setPushOffset = () => {
|
|
322
269
|
app.off('resize', updatePushOffset);
|
|
323
|
-
|
|
324
270
|
if (popup.push) {
|
|
325
271
|
isPush = popup.push && (app.width < 630 || app.height < 630 || $el.hasClass('popup-tablet-fullscreen'));
|
|
326
272
|
}
|
|
327
|
-
|
|
328
273
|
if (isPush) {
|
|
329
274
|
pushOffset = parseInt($el.css('--f7-popup-push-offset'), 10);
|
|
330
|
-
if (Number.isNaN(pushOffset))
|
|
331
|
-
|
|
332
|
-
if (pushOffset) {
|
|
333
|
-
$el.addClass('popup-push');
|
|
334
|
-
popup.$htmlEl.addClass('with-modal-popup-push');
|
|
335
|
-
popup.$htmlEl[0].style.setProperty('--f7-popup-push-scale', pushViewScale(pushOffset));
|
|
275
|
+
if (Number.isNaN(pushOffset)) {
|
|
276
|
+
pushOffset = 0;
|
|
336
277
|
}
|
|
278
|
+
if (!pushOffset) pushOffset = app.theme === 'ios' ? 44 : 48;
|
|
279
|
+
popup.$htmlEl[0].style.setProperty('--f7-popup-push-offset', `${pushOffset}px`);
|
|
280
|
+
$el.addClass('popup-push');
|
|
281
|
+
popup.$htmlEl.addClass('with-modal-popup-push');
|
|
282
|
+
popup.$htmlEl[0].style.setProperty('--f7-popup-push-scale', pushViewScale(pushOffset));
|
|
337
283
|
}
|
|
338
|
-
|
|
339
284
|
app.on('resize', updatePushOffset);
|
|
340
285
|
};
|
|
341
|
-
|
|
342
286
|
popup.on('open', () => {
|
|
343
287
|
hasPreviousPushPopup = false;
|
|
344
|
-
|
|
345
288
|
if (popup.params.closeOnEscape) {
|
|
346
289
|
$(document).on('keydown', onKeyDown);
|
|
347
290
|
}
|
|
348
|
-
|
|
349
291
|
$el.prevAll('.popup.modal-in').addClass('popup-behind');
|
|
350
292
|
setPushOffset();
|
|
351
293
|
});
|
|
352
294
|
popup.on('opened', () => {
|
|
353
295
|
$el.removeClass('swipe-close-to-bottom swipe-close-to-top');
|
|
354
|
-
|
|
355
296
|
if (popup.params.closeByBackdropClick) {
|
|
356
297
|
app.on('click', handleClick);
|
|
357
298
|
}
|
|
358
299
|
});
|
|
359
300
|
popup.on('close', () => {
|
|
360
301
|
hasPreviousPushPopup = popup.$el.prevAll('.popup-push.modal-in').length > 0;
|
|
361
|
-
|
|
362
302
|
if (popup.params.closeOnEscape) {
|
|
363
303
|
$(document).off('keydown', onKeyDown);
|
|
364
304
|
}
|
|
365
|
-
|
|
366
305
|
if (popup.params.closeByBackdropClick) {
|
|
367
306
|
app.off('click', handleClick);
|
|
368
307
|
}
|
|
369
|
-
|
|
370
308
|
$el.prevAll('.popup.modal-in').eq(0).removeClass('popup-behind');
|
|
371
|
-
|
|
372
309
|
if (isPush && pushOffset && !hasPreviousPushPopup) {
|
|
373
310
|
popup.$htmlEl.removeClass('with-modal-popup-push');
|
|
374
311
|
popup.$htmlEl.addClass('with-modal-popup-push-closing');
|
|
375
312
|
}
|
|
376
|
-
|
|
377
313
|
app.off('resize', updatePushOffset);
|
|
378
314
|
});
|
|
379
315
|
popup.on('closed', () => {
|
|
380
316
|
$el.removeClass('popup-behind');
|
|
381
|
-
|
|
382
317
|
if (isPush && pushOffset && !hasPreviousPushPopup) {
|
|
383
318
|
popup.$htmlEl.removeClass('with-modal-popup-push-closing');
|
|
384
319
|
popup.$htmlEl[0].style.removeProperty('--f7-popup-push-scale');
|
|
320
|
+
popup.$htmlEl[0].style.removeProperty('--f7-popup-push-offset');
|
|
385
321
|
}
|
|
386
322
|
});
|
|
387
323
|
$el[0].f7Modal = popup;
|
|
388
324
|
return popup;
|
|
389
325
|
}
|
|
390
|
-
|
|
391
326
|
}
|
|
392
|
-
|
|
393
327
|
export default Popup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--f7-popup-border-radius:0px;--f7-popup-tablet-width:630px;--f7-popup-tablet-height:630px;--f7-popup-
|
|
1
|
+
:root{--f7-popup-border-radius:0px;--f7-popup-tablet-width:630px;--f7-popup-tablet-height:630px;--f7-popup-push-offset:var(--f7-safe-area-top)}.ios{--f7-popup-tablet-border-radius:5px;--f7-popup-transition-duration:400ms;--f7-popup-transition-timing-function:initial;--f7-popup-push-border-radius:10px}.md{--f7-popup-tablet-border-radius:28px;--f7-popup-transition-duration:600ms;--f7-popup-transition-timing-function:cubic-bezier(0, 1, 0.2, 1);--f7-popup-push-border-radius:28px}.popup-backdrop{z-index:10500}.popup-backdrop-unique{z-index:11000}.popup{position:absolute;left:0;top:0px;width:100%;height:100%;display:none;box-sizing:border-box;transition-property:transform;transition-timing-function:var(--f7-popup-transition-timing-function);transform:translate3d(0,100vh,0);background:#fff;z-index:11000;overflow:hidden;border-radius:var(--f7-popup-border-radius)}.dark .popup,.popup.dark{background:#000}.popup.modal-in,.popup.modal-out{transition-duration:var(--f7-popup-transition-duration)}.popup.not-animated{transition-duration:0s}.popup.modal-in{display:block;transform:translate3d(0,0,0)}.popup.modal-out{transform:translate3d(0,100vh,0)}.popup.swipe-close-to-top.modal-out{transform:translate3d(0,-100vh,0)}@media (min-width:630px) and (min-height:630px){.popup:not(.popup-tablet-fullscreen){--f7-safe-area-top:0px;--f7-safe-area-bottom:0px;width:var(--f7-popup-tablet-width);height:var(--f7-popup-tablet-height);left:50%;top:50%;margin-left:calc(-1 * var(--f7-popup-tablet-width)/ 2);margin-top:calc(-1 * var(--f7-popup-tablet-height)/ 2);transform:translate3d(0,100vh,0);border-radius:var(--f7-popup-tablet-border-radius,var(--f7-popup-border-radius))}.popup:not(.popup-tablet-fullscreen).modal-in{transform:translate3d(0,0,0)}.popup:not(.popup-tablet-fullscreen).modal-out{transform:translate3d(0,100vh,0)}.popup:not(.popup-tablet-fullscreen).swipe-close-to-top.modal-out{transform:translate3d(0,-100vh,0)}.popup:not(.popup-tablet-fullscreen).popup-behind{transform:translate3d(0,0,0) scale(.9);pointer-events:none}.popup:not(.popup-tablet-fullscreen).popup-behind.modal-out{transform:translate3d(0,100vh,0) scale(.9)}}html.with-modal-popup .framework7-root>.panel .page-content,html.with-modal-popup .framework7-root>.view .page-content,html.with-modal-popup .framework7-root>.views .page-content{overflow:hidden;-webkit-overflow-scrolling:auto}html.with-modal-popup-push .popup-push,html.with-modal-popup-push-closing .popup-push{top:calc(var(--f7-popup-push-offset) + 10px);height:calc(100% - var(--f7-popup-push-offset) - 10px);border-radius:var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0;--f7-safe-area-top:0px}html.with-modal-popup-push .popup-push .page,html.with-modal-popup-push .popup-push .view,html.with-modal-popup-push-closing .popup-push .page,html.with-modal-popup-push-closing .popup-push .view{--f7-safe-area-top:0px}html.with-modal-popup-push .framework7-root,html.with-modal-popup-push-closing .framework7-root{background:#000}html.with-modal-popup-push .framework7-root>.view,html.with-modal-popup-push .framework7-root>.views,html.with-modal-popup-push-closing .framework7-root>.view,html.with-modal-popup-push-closing .framework7-root>.views{transition-duration:var(--f7-popup-transition-duration);transition-timing-function:var(--f7-popup-transition-timing-function)}html.with-modal-popup-push .dark .framework7-root>.view:after,html.with-modal-popup-push .dark .framework7-root>.views:after,html.with-modal-popup-push .dark.framework7-root>.view:after,html.with-modal-popup-push .dark.framework7-root>.views:after,html.with-modal-popup-push .framework7-root>.view.dark:after,html.with-modal-popup-push .framework7-root>.views.dark:after,html.with-modal-popup-push-closing .dark .framework7-root>.view:after,html.with-modal-popup-push-closing .dark .framework7-root>.views:after,html.with-modal-popup-push-closing .dark.framework7-root>.view:after,html.with-modal-popup-push-closing .dark.framework7-root>.views:after,html.with-modal-popup-push-closing .framework7-root>.view.dark:after,html.with-modal-popup-push-closing .framework7-root>.views.dark:after,html.with-modal-popup-push-closing.dark .framework7-root>.view:after,html.with-modal-popup-push-closing.dark .framework7-root>.views:after,html.with-modal-popup-push.dark .framework7-root>.view:after,html.with-modal-popup-push.dark .framework7-root>.views:after{content:'';position:absolute;pointer-events:none;left:0;top:0;width:100%;height:100%;background:rgba(255,255,255,.1);z-index:13000;border-radius:var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0;opacity:1;animation:popup-dark-push-overlay-fade-in var(--f7-popup-transition-duration) forwards}html.with-modal-popup-push .framework7-root>.view,html.with-modal-popup-push .framework7-root>.views{border-radius:var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0;transform:translate3d(0,0,0px) scale(var(--f7-popup-push-scale,1))!important}html.with-modal-popup-push .popup:after{content:'';pointer-events:none;position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.4);z-index:13000;transition-duration:var(--f7-popup-transition-duration);transition-timing-function:var(--f7-popup-transition-timing-function);border-radius:var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0;opacity:0}html.with-modal-popup-push .dark .popup:after,html.with-modal-popup-push .dark.popup:after,html.with-modal-popup-push.dark .popup:after{background:rgba(255,255,255,.05)}html.with-modal-popup-push .popup-behind{transform:translate3d(0,0px,0px) scale(var(--f7-popup-push-scale,1))}html.with-modal-popup-push .popup-behind.modal-out{transform:translate3d(0,100vh,0) scale(var(--f7-popup-push-scale,1))}html.with-modal-popup-push .popup-behind:not(.popup-push){border-radius:var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0}html.with-modal-popup-push .popup-behind.popup-push{transform:translate3d(0,calc(0px - var(--f7-popup-push-offset) - 10px),0px) scale(var(--f7-popup-push-scale,1))}html.with-modal-popup-push .popup-behind.popup-push.modal-out{transform:translate3d(0,calc(0px - var(--f7-popup-push-offset) - 10px + 100vh),0px) scale(var(--f7-popup-push-scale,1))}html.with-modal-popup-push .popup-behind:after{opacity:1;pointer-events:auto}html.with-modal-popup-push-closing .dark .framework7-root>.view:after,html.with-modal-popup-push-closing .dark .framework7-root>.views:after,html.with-modal-popup-push-closing .dark.framework7-root>.view:after,html.with-modal-popup-push-closing .dark.framework7-root>.views:after,html.with-modal-popup-push-closing .framework7-root>.view.dark:after,html.with-modal-popup-push-closing .framework7-root>.views.dark:after,html.with-modal-popup-push-closing.dark .framework7-root>.view:after,html.with-modal-popup-push-closing.dark .framework7-root>.views:after{animation:popup-dark-push-overlay-fade-out var(--f7-popup-transition-duration) forwards;animation-timing-function:var(--f7-popup-transition-timing-function)}@keyframes popup-dark-push-overlay-fade-in{from{opacity:0}to{opacity:1}}@keyframes popup-dark-push-overlay-fade-out{from{opacity:1}to{opacity:0}}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
--f7-popup-border-radius: 0px;
|
|
3
3
|
--f7-popup-tablet-width: 630px;
|
|
4
4
|
--f7-popup-tablet-height: 630px;
|
|
5
|
-
--f7-popup-transition-duration: 400ms;
|
|
6
|
-
--f7-popup-push-border-radius: 10px;
|
|
7
5
|
--f7-popup-push-offset: var(--f7-safe-area-top);
|
|
8
6
|
/*
|
|
9
7
|
--f7-popup-tablet-border-radius: var(--f7-popup-border-radius);
|
|
@@ -11,13 +9,13 @@
|
|
|
11
9
|
}
|
|
12
10
|
.ios-vars({
|
|
13
11
|
--f7-popup-tablet-border-radius: 5px;
|
|
14
|
-
--f7-popup-
|
|
12
|
+
--f7-popup-transition-duration: 400ms;
|
|
13
|
+
--f7-popup-transition-timing-function: initial;
|
|
14
|
+
--f7-popup-push-border-radius: 10px;
|
|
15
15
|
});
|
|
16
16
|
.md-vars({
|
|
17
|
-
--f7-popup-tablet-border-radius:
|
|
18
|
-
--f7-popup-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
--f7-popup-tablet-border-radius: 8px;
|
|
22
|
-
--f7-popup-box-shadow: 0px 20px 44px rgba(0,0,0,0.5);
|
|
17
|
+
--f7-popup-tablet-border-radius: 28px;
|
|
18
|
+
--f7-popup-transition-duration: 600ms;
|
|
19
|
+
--f7-popup-transition-timing-function: cubic-bezier(0, 1, 0.2, 1);
|
|
20
|
+
--f7-popup-push-border-radius: 28px;
|
|
23
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--f7-popup-border-radius:0px;--f7-popup-tablet-width:630px;--f7-popup-tablet-height:630px;--f7-popup-
|
|
1
|
+
:root{--f7-popup-border-radius:0px;--f7-popup-tablet-width:630px;--f7-popup-tablet-height:630px;--f7-popup-push-offset:var(--f7-safe-area-top)}.ios{--f7-popup-tablet-border-radius:5px;--f7-popup-transition-duration:400ms;--f7-popup-transition-timing-function:initial;--f7-popup-push-border-radius:10px}.md{--f7-popup-tablet-border-radius:28px;--f7-popup-transition-duration:600ms;--f7-popup-transition-timing-function:cubic-bezier(0, 1, 0.2, 1);--f7-popup-push-border-radius:28px}.popup-backdrop{z-index:10500}.popup-backdrop-unique{z-index:11000}.popup{position:absolute;left:0;top:0px;width:100%;height:100%;display:none;box-sizing:border-box;transition-property:transform;transition-timing-function:var(--f7-popup-transition-timing-function);transform:translate3d(0,100vh,0);background:#fff;z-index:11000;overflow:hidden;border-radius:var(--f7-popup-border-radius)}.dark .popup,.popup.dark{background:#000}.popup.modal-in,.popup.modal-out{transition-duration:var(--f7-popup-transition-duration)}.popup.not-animated{transition-duration:0s}.popup.modal-in{display:block;transform:translate3d(0,0,0)}.popup.modal-out{transform:translate3d(0,100vh,0)}.popup.swipe-close-to-top.modal-out{transform:translate3d(0,-100vh,0)}@media (min-width:630px) and (min-height:630px){.popup:not(.popup-tablet-fullscreen){--f7-safe-area-top:0px;--f7-safe-area-bottom:0px;width:var(--f7-popup-tablet-width);height:var(--f7-popup-tablet-height);left:50%;top:50%;margin-left:calc(-1 * var(--f7-popup-tablet-width)/ 2);margin-top:calc(-1 * var(--f7-popup-tablet-height)/ 2);transform:translate3d(0,100vh,0);border-radius:var(--f7-popup-tablet-border-radius,var(--f7-popup-border-radius))}.popup:not(.popup-tablet-fullscreen).modal-in{transform:translate3d(0,0,0)}.popup:not(.popup-tablet-fullscreen).modal-out{transform:translate3d(0,100vh,0)}.popup:not(.popup-tablet-fullscreen).swipe-close-to-top.modal-out{transform:translate3d(0,-100vh,0)}.popup:not(.popup-tablet-fullscreen).popup-behind{transform:translate3d(0,0,0) scale(.9);pointer-events:none}.popup:not(.popup-tablet-fullscreen).popup-behind.modal-out{transform:translate3d(0,100vh,0) scale(.9)}}html.with-modal-popup .framework7-root>.panel .page-content,html.with-modal-popup .framework7-root>.view .page-content,html.with-modal-popup .framework7-root>.views .page-content{overflow:hidden;-webkit-overflow-scrolling:auto}html.with-modal-popup-push .popup-push,html.with-modal-popup-push-closing .popup-push{top:calc(var(--f7-popup-push-offset) + 10px);height:calc(100% - var(--f7-popup-push-offset) - 10px);border-radius:var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0;--f7-safe-area-top:0px}html.with-modal-popup-push .popup-push .page,html.with-modal-popup-push .popup-push .view,html.with-modal-popup-push-closing .popup-push .page,html.with-modal-popup-push-closing .popup-push .view{--f7-safe-area-top:0px}html.with-modal-popup-push .framework7-root,html.with-modal-popup-push-closing .framework7-root{background:#000}html.with-modal-popup-push .framework7-root>.view,html.with-modal-popup-push .framework7-root>.views,html.with-modal-popup-push-closing .framework7-root>.view,html.with-modal-popup-push-closing .framework7-root>.views{transition-duration:var(--f7-popup-transition-duration);transition-timing-function:var(--f7-popup-transition-timing-function)}html.with-modal-popup-push .dark .framework7-root>.view:after,html.with-modal-popup-push .dark .framework7-root>.views:after,html.with-modal-popup-push .dark.framework7-root>.view:after,html.with-modal-popup-push .dark.framework7-root>.views:after,html.with-modal-popup-push .framework7-root>.view.dark:after,html.with-modal-popup-push .framework7-root>.views.dark:after,html.with-modal-popup-push-closing .dark .framework7-root>.view:after,html.with-modal-popup-push-closing .dark .framework7-root>.views:after,html.with-modal-popup-push-closing .dark.framework7-root>.view:after,html.with-modal-popup-push-closing .dark.framework7-root>.views:after,html.with-modal-popup-push-closing .framework7-root>.view.dark:after,html.with-modal-popup-push-closing .framework7-root>.views.dark:after,html.with-modal-popup-push-closing.dark .framework7-root>.view:after,html.with-modal-popup-push-closing.dark .framework7-root>.views:after,html.with-modal-popup-push.dark .framework7-root>.view:after,html.with-modal-popup-push.dark .framework7-root>.views:after{content:'';position:absolute;pointer-events:none;left:0;top:0;width:100%;height:100%;background:rgba(255,255,255,.1);z-index:13000;border-radius:var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0;opacity:1;animation:popup-dark-push-overlay-fade-in var(--f7-popup-transition-duration) forwards}html.with-modal-popup-push .framework7-root>.view,html.with-modal-popup-push .framework7-root>.views{border-radius:var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0;transform:translate3d(0,0,0px) scale(var(--f7-popup-push-scale,1))!important}html.with-modal-popup-push .popup:after{content:'';pointer-events:none;position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.4);z-index:13000;transition-duration:var(--f7-popup-transition-duration);transition-timing-function:var(--f7-popup-transition-timing-function);border-radius:var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0;opacity:0}html.with-modal-popup-push .dark .popup:after,html.with-modal-popup-push .dark.popup:after,html.with-modal-popup-push.dark .popup:after{background:rgba(255,255,255,.05)}html.with-modal-popup-push .popup-behind{transform:translate3d(0,0px,0px) scale(var(--f7-popup-push-scale,1))}html.with-modal-popup-push .popup-behind.modal-out{transform:translate3d(0,100vh,0) scale(var(--f7-popup-push-scale,1))}html.with-modal-popup-push .popup-behind:not(.popup-push){border-radius:var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0}html.with-modal-popup-push .popup-behind.popup-push{transform:translate3d(0,calc(0px - var(--f7-popup-push-offset) - 10px),0px) scale(var(--f7-popup-push-scale,1))}html.with-modal-popup-push .popup-behind.popup-push.modal-out{transform:translate3d(0,calc(0px - var(--f7-popup-push-offset) - 10px + 100vh),0px) scale(var(--f7-popup-push-scale,1))}html.with-modal-popup-push .popup-behind:after{opacity:1;pointer-events:auto}html.with-modal-popup-push-closing .dark .framework7-root>.view:after,html.with-modal-popup-push-closing .dark .framework7-root>.views:after,html.with-modal-popup-push-closing .dark.framework7-root>.view:after,html.with-modal-popup-push-closing .dark.framework7-root>.views:after,html.with-modal-popup-push-closing .framework7-root>.view.dark:after,html.with-modal-popup-push-closing .framework7-root>.views.dark:after,html.with-modal-popup-push-closing.dark .framework7-root>.view:after,html.with-modal-popup-push-closing.dark .framework7-root>.views:after{animation:popup-dark-push-overlay-fade-out var(--f7-popup-transition-duration) forwards;animation-timing-function:var(--f7-popup-transition-timing-function)}@keyframes popup-dark-push-overlay-fade-in{from{opacity:0}to{opacity:1}}@keyframes popup-dark-push-overlay-fade-out{from{opacity:1}to{opacity:0}}
|
|
@@ -18,7 +18,6 @@ export default {
|
|
|
18
18
|
static: {
|
|
19
19
|
Popup
|
|
20
20
|
},
|
|
21
|
-
|
|
22
21
|
create() {
|
|
23
22
|
const app = this;
|
|
24
23
|
app.popup = ModalMethods({
|
|
@@ -28,13 +27,11 @@ export default {
|
|
|
28
27
|
parentSelector: '.popup'
|
|
29
28
|
});
|
|
30
29
|
},
|
|
31
|
-
|
|
32
30
|
clicks: {
|
|
33
31
|
'.popup-open': function openPopup($clickedEl, data) {
|
|
34
32
|
if (data === void 0) {
|
|
35
33
|
data = {};
|
|
36
34
|
}
|
|
37
|
-
|
|
38
35
|
const app = this;
|
|
39
36
|
app.popup.open(data.popup, data.animate, $clickedEl);
|
|
40
37
|
},
|
|
@@ -42,7 +39,6 @@ export default {
|
|
|
42
39
|
if (data === void 0) {
|
|
43
40
|
data = {};
|
|
44
41
|
}
|
|
45
|
-
|
|
46
42
|
const app = this;
|
|
47
43
|
app.popup.close(data.popup, data.animate, $clickedEl);
|
|
48
44
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
display: none;
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
transition-property: transform;
|
|
19
|
+
transition-timing-function: var(--f7-popup-transition-timing-function);
|
|
19
20
|
transform: translate3d(0, 100vh, 0);
|
|
20
21
|
background: #fff;
|
|
21
22
|
z-index: 11000;
|
|
@@ -56,7 +57,6 @@
|
|
|
56
57
|
margin-left: calc(-1 * var(--f7-popup-tablet-width) / 2);
|
|
57
58
|
margin-top: calc(-1 * var(--f7-popup-tablet-height) / 2);
|
|
58
59
|
transform: translate3d(0, 100vh, 0);
|
|
59
|
-
box-shadow: var(--f7-popup-box-shadow);
|
|
60
60
|
border-radius: var(--f7-popup-tablet-border-radius, var(--f7-popup-border-radius));
|
|
61
61
|
&.modal-in {
|
|
62
62
|
transform: translate3d(0, 0, 0);
|
|
@@ -105,6 +105,7 @@ html.with-modal-popup-push-closing {
|
|
|
105
105
|
> .views,
|
|
106
106
|
> .view {
|
|
107
107
|
transition-duration: var(--f7-popup-transition-duration);
|
|
108
|
+
transition-timing-function: var(--f7-popup-transition-timing-function);
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
|
|
@@ -155,6 +156,7 @@ html.with-modal-popup-push {
|
|
|
155
156
|
background: rgba(0, 0, 0, 0.4);
|
|
156
157
|
z-index: 13000;
|
|
157
158
|
transition-duration: var(--f7-popup-transition-duration);
|
|
159
|
+
transition-timing-function: var(--f7-popup-transition-timing-function);
|
|
158
160
|
border-radius: var(--f7-popup-push-border-radius) var(--f7-popup-push-border-radius) 0 0;
|
|
159
161
|
opacity: 0;
|
|
160
162
|
}
|
|
@@ -201,6 +203,7 @@ html.with-modal-popup-push {
|
|
|
201
203
|
.framework7-root > .view.dark {
|
|
202
204
|
&:after {
|
|
203
205
|
animation: popup-dark-push-overlay-fade-out var(--f7-popup-transition-duration) forwards;
|
|
206
|
+
animation-timing-function: var(--f7-popup-transition-timing-function);
|
|
204
207
|
}
|
|
205
208
|
}
|
|
206
209
|
}
|
|
@@ -229,6 +232,3 @@ html.with-modal-popup-push {
|
|
|
229
232
|
.if-md-theme({
|
|
230
233
|
@import './popup-md.less';
|
|
231
234
|
});
|
|
232
|
-
.if-aurora-theme({
|
|
233
|
-
@import './popup-aurora.less';
|
|
234
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.ios {
|
|
2
|
+
color: var(--f7-preloader-color);
|
|
2
3
|
.preloader-inner {
|
|
3
4
|
animation: ios-preloader-spin 1s steps(8, end) infinite;
|
|
4
5
|
}
|
|
@@ -7,12 +8,13 @@
|
|
|
7
8
|
width: 11.6%;
|
|
8
9
|
height: 33.33%;
|
|
9
10
|
border-radius: 100px;
|
|
10
|
-
background:
|
|
11
|
+
background: currentColor;
|
|
11
12
|
position: absolute;
|
|
12
13
|
left: 50%;
|
|
13
14
|
top: 50%;
|
|
14
15
|
transform-origin: center 150%;
|
|
15
16
|
}
|
|
17
|
+
.preloader-multi-color .preloader-inner-line,
|
|
16
18
|
.preloader.color-multi .preloader-inner-line {
|
|
17
19
|
animation: ios-preloader-multicolor 3s linear infinite;
|
|
18
20
|
}
|