framework7 7.0.8 → 8.0.0-beta.1
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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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 +10 -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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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 +23 -127
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- package/components/sheet/sheet.less +10 -3
- package/components/skeleton/skeleton.less +1 -4
- package/components/smart-select/smart-select-class.js +36 -173
- package/components/smart-select/smart-select.d.ts +1 -3
- package/components/smart-select/smart-select.js +1 -14
- package/components/smart-select/smart-select.lazy.js +1 -1
- 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 +9 -30
- package/components/swiper/swiper.lazy.js +1 -1
- package/components/swiper/swiper.less +1 -16
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- 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.lazy.js +1 -1
- package/components/virtual-list/virtual-list.less +0 -3
- package/framework7-bundle-rtl.css +3593 -5977
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +3591 -5978
- package/framework7-bundle.esm.js +4 -10
- package/framework7-bundle.js +6063 -12044
- 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-lite.js +31 -0
- 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.js +1770 -3407
- package/framework7.js.map +1 -1
- package/framework7.less +2 -23
- package/framework7.min.css +3 -3
- package/framework7.min.js +3 -3
- package/framework7.min.js.map +1 -1
- package/less/mixins.less +7 -88
- package/less/plugin.js +15 -0
- 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 -249
- 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 +4 -18
- 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/actions/actions-aurora.less +0 -9
- 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/autocomplete/autocomplete-aurora.less +0 -17
- 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/button/button-aurora.less +0 -25
- package/components/calendar/calendar-aurora.less +0 -2
- package/components/card/card-aurora.less +0 -2
- package/components/checkbox/checkbox-aurora.less +0 -39
- package/components/chip/chip-aurora.less +0 -14
- package/components/color-picker/color-picker-aurora.less +0 -2
- package/components/contacts-list/contacts-list-aurora.less +0 -2
- package/components/data-table/data-table-aurora.less +0 -64
- package/components/dialog/dialog-aurora.less +0 -112
- 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/form/form-aurora.less +0 -0
- package/components/gauge/gauge-aurora.less +0 -2
- package/components/grid/grid-aurora.less +0 -2
- package/components/icon/icon-aurora.less +0 -49
- package/components/infinite-scroll/infinite-scroll-aurora.less +0 -6
- package/components/input/input-aurora.less +0 -120
- 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/login-screen/login-screen-aurora.less +0 -2
- 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/messages/messages-aurora.less +0 -137
- package/components/navbar/navbar-aurora.less +0 -70
- package/components/notification/notification-aurora.less +0 -59
- package/components/page/page-aurora.less +0 -49
- package/components/panel/panel-aurora.less +0 -2
- package/components/photo-browser/photo-browser-aurora.less +0 -2
- package/components/picker/picker-aurora.less +0 -2
- package/components/pie-chart/pie-chart-aurora.less +0 -2
- package/components/popover/popover-aurora.less +0 -56
- package/components/popup/popup-aurora.less +0 -2
- package/components/preloader/preloader-aurora.less +0 -53
- package/components/progressbar/progressbar-aurora.less +0 -72
- package/components/pull-to-refresh/pull-to-refresh-aurora.less +0 -122
- package/components/radio/radio-aurora.less +0 -86
- package/components/range/range-aurora.less +0 -9
- package/components/searchbar/searchbar-aurora.less +0 -86
- package/components/sheet/sheet-aurora.less +0 -2
- package/components/skeleton/skeleton-aurora.less +0 -2
- package/components/smart-select/smart-select-aurora.less +0 -2
- package/components/sortable/sortable-aurora.less +0 -7
- package/components/statusbar/statusbar-aurora.less +0 -2
- package/components/stepper/stepper-aurora.less +0 -32
- package/components/subnavbar/subnavbar-aurora.less +0 -51
- package/components/swipeout/swipeout-aurora.less +0 -2
- package/components/swiper/swiper-aurora.less +0 -2
- package/components/tabs/tabs-aurora.less +0 -2
- package/components/text-editor/text-editor-aurora.less +0 -9
- package/components/timeline/timeline-aurora.less +0 -7
- package/components/toast/toast-aurora.less +0 -64
- package/components/toggle/toggle-aurora.less +0 -26
- package/components/toolbar/toolbar-aurora.less +0 -43
- package/components/tooltip/tooltip-aurora.less +0 -2
- package/components/touch-ripple/touch-ripple-aurora.less +0 -2
- package/components/treeview/treeview-aurora.less +0 -31
- package/components/typography/typography-aurora.less +0 -2
- package/components/view/view-aurora.less +0 -2
- package/components/virtual-list/virtual-list-aurora.less +0 -2
- package/modules/request/request.d.ts +0 -15
- package/modules/request/request.js +0 -11
- package/postinstall.js +0 -3
- package/shared/request.d.ts +0 -115
- package/shared/request.js +0 -512
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
position: relative;
|
|
11
11
|
z-index: 200;
|
|
12
12
|
height: var(--f7-searchbar-height);
|
|
13
|
-
background-image: var(--f7-searchbar-bg-image, var(--f7-bars-bg-image));
|
|
14
13
|
background-color: var(--f7-searchbar-bg-color, var(--f7-bars-bg-color));
|
|
15
14
|
input[type='search']::-webkit-search-decoration {
|
|
16
15
|
display: none;
|
|
@@ -21,22 +20,16 @@
|
|
|
21
20
|
backdrop-filter: none;
|
|
22
21
|
.hairline-remove(bottom);
|
|
23
22
|
}
|
|
24
|
-
&.no-
|
|
25
|
-
&.no-border {
|
|
23
|
+
&.no-outline {
|
|
26
24
|
&:after {
|
|
27
25
|
display: none !important;
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
|
-
|
|
31
|
-
&:before {
|
|
32
|
-
display: none !important;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
28
|
+
|
|
35
29
|
.hairline(bottom, var(--f7-searchbar-border-color, var(--f7-bars-border-color)));
|
|
36
30
|
|
|
37
31
|
.page > &:not(.searchbar-inline) {
|
|
38
32
|
z-index: 600;
|
|
39
|
-
.bar-shadow-bottom(var(--f7-searchbar-shadow-image));
|
|
40
33
|
}
|
|
41
34
|
input[type='text'],
|
|
42
35
|
input[type='search'] {
|
|
@@ -121,8 +114,8 @@
|
|
|
121
114
|
.subnavbar .searchbar.searchbar-expandable {
|
|
122
115
|
--f7-searchbar-expandable-size: var(--f7-subnavbar-height);
|
|
123
116
|
}
|
|
124
|
-
.tabbar-
|
|
125
|
-
--f7-searchbar-expandable-size: var(--f7-tabbar-
|
|
117
|
+
.tabbar-icons .searchbar.searchbar-expandable {
|
|
118
|
+
--f7-searchbar-expandable-size: var(--f7-tabbar-icons-height);
|
|
126
119
|
}
|
|
127
120
|
.searchbar-inner {
|
|
128
121
|
position: absolute;
|
|
@@ -253,34 +246,30 @@
|
|
|
253
246
|
// Toolbar
|
|
254
247
|
.page > .toolbar-top,
|
|
255
248
|
.ios .page > .toolbar-top-ios,
|
|
256
|
-
.md .page > .toolbar-top-md
|
|
257
|
-
.aurora .page > .toolbar-top-aurora {
|
|
249
|
+
.md .page > .toolbar-top-md {
|
|
258
250
|
~ .searchbar {
|
|
259
251
|
top: var(--f7-toolbar-height);
|
|
260
252
|
}
|
|
261
253
|
}
|
|
262
|
-
.page > .tabbar-
|
|
263
|
-
.ios .page > .tabbar-
|
|
264
|
-
.md .page > .tabbar-
|
|
265
|
-
.aurora .page > .tabbar-labels.toolbar-top-aurora {
|
|
254
|
+
.page > .tabbar-icons.toolbar-top,
|
|
255
|
+
.ios .page > .tabbar-icons.toolbar-top-ios,
|
|
256
|
+
.md .page > .tabbar-icons.toolbar-top-md {
|
|
266
257
|
~ .searchbar {
|
|
267
|
-
top: var(--f7-tabbar-
|
|
258
|
+
top: var(--f7-tabbar-icons-height);
|
|
268
259
|
}
|
|
269
260
|
}
|
|
270
261
|
.page > .navbar ~ .toolbar-top,
|
|
271
262
|
.ios .page > .navbar ~ .toolbar-top-ios,
|
|
272
|
-
.md .page > .navbar ~ .toolbar-top-md
|
|
273
|
-
.aurora .page > .navbar ~ .toolbar-top-aurora {
|
|
263
|
+
.md .page > .navbar ~ .toolbar-top-md {
|
|
274
264
|
~ .searchbar {
|
|
275
265
|
top: calc(var(--f7-navbar-height) + var(--f7-toolbar-height) + var(--f7-safe-area-top));
|
|
276
266
|
}
|
|
277
267
|
}
|
|
278
|
-
.page > .navbar ~ .tabbar-
|
|
279
|
-
.ios .page > .navbar ~ .tabbar-
|
|
280
|
-
.md .page > .navbar ~ .tabbar-
|
|
281
|
-
.aurora .page > .navbar ~ .tabbar-labels.toolbar-top-aurora {
|
|
268
|
+
.page > .navbar ~ .tabbar-icons.toolbar-top,
|
|
269
|
+
.ios .page > .navbar ~ .tabbar-icons.toolbar-top-ios,
|
|
270
|
+
.md .page > .navbar ~ .tabbar-icons.toolbar-top-md {
|
|
282
271
|
~ .searchbar {
|
|
283
|
-
top: calc(var(--f7-navbar-height) + var(--f7-tabbar-
|
|
272
|
+
top: calc(var(--f7-navbar-height) + var(--f7-tabbar-icons-height) + var(--f7-safe-area-top));
|
|
284
273
|
}
|
|
285
274
|
}
|
|
286
275
|
|
|
@@ -327,6 +316,3 @@
|
|
|
327
316
|
.if-md-theme({
|
|
328
317
|
@import './searchbar-md.less';
|
|
329
318
|
});
|
|
330
|
-
.if-aurora-theme({
|
|
331
|
-
@import './searchbar-aurora.less';
|
|
332
|
-
});
|
|
@@ -4,13 +4,13 @@ import { extend, now, getTranslate } 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 Sheet extends Modal {
|
|
9
8
|
constructor(app, params) {
|
|
10
9
|
const extendedParams = extend({
|
|
11
10
|
on: {}
|
|
12
|
-
}, app.params.sheet, params);
|
|
11
|
+
}, app.params.sheet, params);
|
|
13
12
|
|
|
13
|
+
// Extends with open/close Modal methods;
|
|
14
14
|
super(app, extendedParams);
|
|
15
15
|
const sheet = this;
|
|
16
16
|
const window = getWindow();
|
|
@@ -18,30 +18,24 @@ class Sheet extends Modal {
|
|
|
18
18
|
const support = getSupport();
|
|
19
19
|
const device = getDevice();
|
|
20
20
|
sheet.params = extendedParams;
|
|
21
|
-
|
|
22
21
|
if (typeof sheet.params.backdrop === 'undefined') {
|
|
23
22
|
sheet.params.backdrop = app.theme !== 'ios';
|
|
24
|
-
}
|
|
25
|
-
|
|
23
|
+
}
|
|
26
24
|
|
|
25
|
+
// Find Element
|
|
27
26
|
let $el;
|
|
28
|
-
|
|
29
27
|
if (!sheet.params.el) {
|
|
30
28
|
$el = $(sheet.params.content).filter(node => node.nodeType === 1).eq(0);
|
|
31
29
|
} else {
|
|
32
30
|
$el = $(sheet.params.el).eq(0);
|
|
33
31
|
}
|
|
34
|
-
|
|
35
32
|
if ($el && $el.length > 0 && $el[0].f7Modal) {
|
|
36
33
|
return $el[0].f7Modal;
|
|
37
34
|
}
|
|
38
|
-
|
|
39
35
|
if ($el.length === 0) {
|
|
40
36
|
return sheet.destroy();
|
|
41
37
|
}
|
|
42
|
-
|
|
43
38
|
let $backdropEl;
|
|
44
|
-
|
|
45
39
|
if (sheet.params.backdrop && sheet.params.backdropEl) {
|
|
46
40
|
$backdropEl = $(sheet.params.backdropEl);
|
|
47
41
|
} else if (sheet.params.backdrop) {
|
|
@@ -51,13 +45,11 @@ class Sheet extends Modal {
|
|
|
51
45
|
} else {
|
|
52
46
|
$backdropEl = sheet.$containerEl.children('.sheet-backdrop');
|
|
53
47
|
}
|
|
54
|
-
|
|
55
48
|
if ($backdropEl.length === 0) {
|
|
56
49
|
$backdropEl = $('<div class="sheet-backdrop"></div>');
|
|
57
50
|
sheet.$containerEl.append($backdropEl);
|
|
58
51
|
}
|
|
59
52
|
}
|
|
60
|
-
|
|
61
53
|
extend(sheet, {
|
|
62
54
|
app,
|
|
63
55
|
push: $el.hasClass('sheet-modal-push') || sheet.params.push,
|
|
@@ -68,13 +60,10 @@ class Sheet extends Modal {
|
|
|
68
60
|
type: 'sheet',
|
|
69
61
|
$htmlEl: $('html')
|
|
70
62
|
});
|
|
71
|
-
|
|
72
63
|
if (sheet.params.push) {
|
|
73
64
|
$el.addClass('sheet-modal-push');
|
|
74
65
|
}
|
|
75
|
-
|
|
76
66
|
let $pageContentEl;
|
|
77
|
-
|
|
78
67
|
function scrollToElementOnOpen() {
|
|
79
68
|
const $scrollEl = $(sheet.params.scrollToEl).eq(0);
|
|
80
69
|
if ($scrollEl.length === 0) return;
|
|
@@ -87,26 +76,20 @@ class Sheet extends Modal {
|
|
|
87
76
|
const pageScroll = $pageContentEl.scrollTop();
|
|
88
77
|
let newPaddingBottom;
|
|
89
78
|
const scrollElTop = $scrollEl.offset().top - paddingTop + $scrollEl[0].offsetHeight;
|
|
90
|
-
|
|
91
79
|
if (scrollElTop > pageHeight) {
|
|
92
80
|
const scrollTop = pageScroll + scrollElTop - pageHeight;
|
|
93
|
-
|
|
94
81
|
if (scrollTop + pageHeight > pageScrollHeight) {
|
|
95
82
|
newPaddingBottom = scrollTop + pageHeight - pageScrollHeight + paddingBottom;
|
|
96
|
-
|
|
97
83
|
if (pageHeight === pageScrollHeight) {
|
|
98
84
|
newPaddingBottom = $el.height();
|
|
99
85
|
}
|
|
100
|
-
|
|
101
86
|
$pageContentEl.css({
|
|
102
87
|
'padding-bottom': `${newPaddingBottom}px`
|
|
103
88
|
});
|
|
104
89
|
}
|
|
105
|
-
|
|
106
90
|
$pageContentEl.scrollTop(scrollTop, 300);
|
|
107
91
|
}
|
|
108
92
|
}
|
|
109
|
-
|
|
110
93
|
function scrollToElementOnClose() {
|
|
111
94
|
if ($pageContentEl && $pageContentEl.length > 0) {
|
|
112
95
|
$pageContentEl.css({
|
|
@@ -114,13 +97,11 @@ class Sheet extends Modal {
|
|
|
114
97
|
});
|
|
115
98
|
}
|
|
116
99
|
}
|
|
117
|
-
|
|
118
100
|
function handleClick(e) {
|
|
119
101
|
const target = e.target;
|
|
120
102
|
const $target = $(target);
|
|
121
103
|
const keyboardOpened = !device.desktop && device.cordova && (window.Keyboard && window.Keyboard.isVisible || window.cordova.plugins && window.cordova.plugins.Keyboard && window.cordova.plugins.Keyboard.isVisible);
|
|
122
104
|
if (keyboardOpened) return;
|
|
123
|
-
|
|
124
105
|
if ($target.closest(sheet.el).length === 0) {
|
|
125
106
|
if (sheet.params.closeByBackdropClick && sheet.params.backdrop && sheet.backdropEl && sheet.backdropEl === target) {
|
|
126
107
|
sheet.close();
|
|
@@ -129,21 +110,16 @@ class Sheet extends Modal {
|
|
|
129
110
|
}
|
|
130
111
|
}
|
|
131
112
|
}
|
|
132
|
-
|
|
133
113
|
function onKeyDown(e) {
|
|
134
114
|
const keyCode = e.keyCode;
|
|
135
|
-
|
|
136
115
|
if (keyCode === 27 && sheet.params.closeOnEscape) {
|
|
137
116
|
sheet.close();
|
|
138
117
|
}
|
|
139
118
|
}
|
|
140
|
-
|
|
141
119
|
let pushOffset;
|
|
142
|
-
|
|
143
120
|
function pushViewScale(offset) {
|
|
144
121
|
return (app.height - offset * 2) / app.height;
|
|
145
122
|
}
|
|
146
|
-
|
|
147
123
|
let isTouched = false;
|
|
148
124
|
let startTouch;
|
|
149
125
|
let currentTouch;
|
|
@@ -164,14 +140,11 @@ class Sheet extends Modal {
|
|
|
164
140
|
let sheetPageContentScrollTop;
|
|
165
141
|
let sheetPageContentScrollHeight;
|
|
166
142
|
let sheetPageContentOffsetHeight;
|
|
167
|
-
|
|
168
143
|
function handleTouchStart(e) {
|
|
169
144
|
if (isTouched || !(sheet.params.swipeToClose || sheet.params.swipeToStep)) return;
|
|
170
|
-
|
|
171
145
|
if (sheet.params.swipeHandler && $(e.target).closest(sheet.params.swipeHandler).length === 0) {
|
|
172
146
|
return;
|
|
173
147
|
}
|
|
174
|
-
|
|
175
148
|
isTouched = true;
|
|
176
149
|
isMoved = false;
|
|
177
150
|
startTouch = {
|
|
@@ -181,38 +154,31 @@ class Sheet extends Modal {
|
|
|
181
154
|
touchStartTime = now();
|
|
182
155
|
isScrolling = undefined;
|
|
183
156
|
isTopSheetModal = $el.hasClass('sheet-modal-top');
|
|
184
|
-
|
|
185
157
|
if (!sheet.params.swipeHandler && e.type === 'touchstart') {
|
|
186
158
|
sheetPageContentEl = $(e.target).closest('.page-content')[0];
|
|
187
159
|
}
|
|
188
160
|
}
|
|
189
|
-
|
|
190
161
|
function handleTouchMove(e) {
|
|
191
162
|
if (!isTouched) return;
|
|
192
163
|
currentTouch = {
|
|
193
164
|
x: e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX,
|
|
194
165
|
y: e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY
|
|
195
166
|
};
|
|
196
|
-
|
|
197
167
|
if (typeof isScrolling === 'undefined') {
|
|
198
168
|
isScrolling = !!(isScrolling || Math.abs(currentTouch.x - startTouch.x) > Math.abs(currentTouch.y - startTouch.y));
|
|
199
169
|
}
|
|
200
|
-
|
|
201
170
|
if (isScrolling) {
|
|
202
171
|
isTouched = false;
|
|
203
172
|
isMoved = false;
|
|
204
173
|
return;
|
|
205
174
|
}
|
|
206
|
-
|
|
207
175
|
touchesDiff = startTouch.y - currentTouch.y;
|
|
208
176
|
const direction = touchesDiff < 0 ? 'to-bottom' : 'to-top';
|
|
209
|
-
|
|
210
177
|
if (!isMoved) {
|
|
211
178
|
if (sheetPageContentEl && !$el.hasClass('modal-in-swipe-step')) {
|
|
212
179
|
sheetPageContentScrollTop = sheetPageContentEl.scrollTop;
|
|
213
180
|
sheetPageContentScrollHeight = sheetPageContentEl.scrollHeight;
|
|
214
181
|
sheetPageContentOffsetHeight = sheetPageContentEl.offsetHeight;
|
|
215
|
-
|
|
216
182
|
if (!(sheetPageContentScrollHeight === sheetPageContentOffsetHeight) && !(direction === 'to-bottom' && sheetPageContentScrollTop === 0) && !(direction === 'to-top' && sheetPageContentScrollTop === sheetPageContentScrollHeight - sheetPageContentOffsetHeight)) {
|
|
217
183
|
$el.transform('');
|
|
218
184
|
isTouched = false;
|
|
@@ -220,14 +186,11 @@ class Sheet extends Modal {
|
|
|
220
186
|
return;
|
|
221
187
|
}
|
|
222
188
|
}
|
|
223
|
-
|
|
224
189
|
if (sheet.push && pushOffset) {
|
|
225
190
|
$pushViewEl = app.$el.children('.view, .views');
|
|
226
191
|
}
|
|
227
|
-
|
|
228
192
|
sheetElOffsetHeight = $el[0].offsetHeight;
|
|
229
193
|
startTranslate = getTranslate($el[0], 'y');
|
|
230
|
-
|
|
231
194
|
if (isTopSheetModal) {
|
|
232
195
|
minTranslate = sheet.params.swipeToClose ? -sheetElOffsetHeight : -swipeStepTranslate;
|
|
233
196
|
maxTranslate = 0;
|
|
@@ -235,17 +198,13 @@ class Sheet extends Modal {
|
|
|
235
198
|
minTranslate = 0;
|
|
236
199
|
maxTranslate = sheet.params.swipeToClose ? sheetElOffsetHeight : swipeStepTranslate;
|
|
237
200
|
}
|
|
238
|
-
|
|
239
201
|
isMoved = true;
|
|
240
202
|
}
|
|
241
|
-
|
|
242
203
|
currentTranslate = startTranslate - touchesDiff;
|
|
243
204
|
currentTranslate = Math.min(Math.max(currentTranslate, minTranslate), maxTranslate);
|
|
244
205
|
e.preventDefault();
|
|
245
|
-
|
|
246
206
|
if (sheet.push && pushOffset) {
|
|
247
207
|
let progress = (currentTranslate - startTranslate) / sheetElOffsetHeight;
|
|
248
|
-
|
|
249
208
|
if (sheet.params.swipeToStep) {
|
|
250
209
|
if (isTopSheetModal) {
|
|
251
210
|
progress = currentTranslate / swipeStepTranslate;
|
|
@@ -253,7 +212,6 @@ class Sheet extends Modal {
|
|
|
253
212
|
progress = 1 - (swipeStepTranslate - currentTranslate) / swipeStepTranslate;
|
|
254
213
|
}
|
|
255
214
|
}
|
|
256
|
-
|
|
257
215
|
progress = Math.abs(progress);
|
|
258
216
|
progress = Math.min(Math.max(progress, 0), 1);
|
|
259
217
|
const pushProgress = 1 - progress;
|
|
@@ -261,66 +219,51 @@ class Sheet extends Modal {
|
|
|
261
219
|
$pushViewEl.transition(0).forEach(el => {
|
|
262
220
|
el.style.setProperty('transform', `translate3d(0,0,0) scale(${scale})`, 'important');
|
|
263
221
|
});
|
|
264
|
-
|
|
265
222
|
if (sheet.params.swipeToStep) {
|
|
266
223
|
$pushViewEl.css('border-radius', `${pushBorderRadius * pushProgress}px`);
|
|
267
224
|
}
|
|
268
225
|
}
|
|
269
|
-
|
|
270
226
|
$el.transition(0).transform(`translate3d(0,${currentTranslate}px,0)`);
|
|
271
|
-
|
|
272
227
|
if (sheet.params.swipeToStep) {
|
|
273
228
|
let progress;
|
|
274
|
-
|
|
275
229
|
if (isTopSheetModal) {
|
|
276
230
|
progress = 1 - currentTranslate / swipeStepTranslate;
|
|
277
231
|
} else {
|
|
278
232
|
progress = (swipeStepTranslate - currentTranslate) / swipeStepTranslate;
|
|
279
233
|
}
|
|
280
|
-
|
|
281
234
|
progress = Math.min(Math.max(progress, 0), 1);
|
|
282
235
|
$el.trigger('sheet:stepprogress', progress);
|
|
283
236
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, progress);
|
|
284
237
|
}
|
|
285
238
|
}
|
|
286
|
-
|
|
287
239
|
function handleTouchEnd() {
|
|
288
240
|
isTouched = false;
|
|
289
|
-
|
|
290
241
|
if (!isMoved) {
|
|
291
242
|
return;
|
|
292
243
|
}
|
|
293
|
-
|
|
294
244
|
isMoved = false;
|
|
295
245
|
$el.transform('').transition('');
|
|
296
|
-
|
|
297
246
|
if (sheet.push && pushOffset) {
|
|
298
247
|
$pushViewEl.transition('').transform('');
|
|
299
248
|
$pushViewEl.css('border-radius', '');
|
|
300
249
|
}
|
|
301
|
-
|
|
302
250
|
const direction = touchesDiff < 0 ? 'to-bottom' : 'to-top';
|
|
303
251
|
const diff = Math.abs(touchesDiff);
|
|
304
252
|
if (diff === 0 || currentTranslate === startTranslate) return;
|
|
305
253
|
const timeDiff = new Date().getTime() - touchStartTime;
|
|
306
|
-
|
|
307
254
|
if (!sheet.params.swipeToStep) {
|
|
308
255
|
if (direction !== (isTopSheetModal ? 'to-top' : 'to-bottom')) {
|
|
309
256
|
return;
|
|
310
257
|
}
|
|
311
|
-
|
|
312
258
|
if (timeDiff < 300 && diff > 20 || timeDiff >= 300 && diff > sheetElOffsetHeight / 2) {
|
|
313
259
|
sheet.close();
|
|
314
260
|
}
|
|
315
|
-
|
|
316
261
|
return;
|
|
317
262
|
}
|
|
318
|
-
|
|
319
263
|
const openDirection = isTopSheetModal ? 'to-bottom' : 'to-top';
|
|
320
264
|
const closeDirection = isTopSheetModal ? 'to-top' : 'to-bottom';
|
|
321
265
|
const absCurrentTranslate = Math.abs(currentTranslate);
|
|
322
266
|
const absSwipeStepTranslate = Math.abs(swipeStepTranslate);
|
|
323
|
-
|
|
324
267
|
if (timeDiff < 300 && diff > 10) {
|
|
325
268
|
if (direction === openDirection && absCurrentTranslate < absSwipeStepTranslate) {
|
|
326
269
|
// open step
|
|
@@ -330,13 +273,11 @@ class Sheet extends Modal {
|
|
|
330
273
|
sheet.emit('local::_swipeStep', false);
|
|
331
274
|
$el.trigger('sheet:stepopen');
|
|
332
275
|
sheet.emit('local::stepOpen sheetStepOpen', sheet);
|
|
333
|
-
|
|
334
276
|
if (sheet.push && pushOffset) {
|
|
335
277
|
sheet.$htmlEl[0].style.setProperty('--f7-sheet-push-scale', pushViewScale(pushOffset));
|
|
336
278
|
$pushViewEl.css('border-radius', '');
|
|
337
279
|
}
|
|
338
280
|
}
|
|
339
|
-
|
|
340
281
|
if (direction === closeDirection && absCurrentTranslate > absSwipeStepTranslate) {
|
|
341
282
|
// close sheet
|
|
342
283
|
if (sheet.params.swipeToClose) {
|
|
@@ -349,14 +290,12 @@ class Sheet extends Modal {
|
|
|
349
290
|
sheet.emit('local::_swipeStep', true);
|
|
350
291
|
$el.trigger('sheet:stepclose');
|
|
351
292
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
352
|
-
|
|
353
293
|
if (sheet.push && pushOffset) {
|
|
354
294
|
sheet.$htmlEl[0].style.removeProperty('--f7-sheet-push-scale');
|
|
355
295
|
$pushViewEl.css('border-radius', '0px');
|
|
356
296
|
}
|
|
357
297
|
}
|
|
358
298
|
}
|
|
359
|
-
|
|
360
299
|
if (direction === closeDirection && absCurrentTranslate <= absSwipeStepTranslate) {
|
|
361
300
|
// close step
|
|
362
301
|
$el.addClass('modal-in-swipe-step');
|
|
@@ -365,19 +304,15 @@ class Sheet extends Modal {
|
|
|
365
304
|
sheet.emit('local::_swipeStep', true);
|
|
366
305
|
$el.trigger('sheet:stepclose');
|
|
367
306
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
368
|
-
|
|
369
307
|
if (sheet.push && pushOffset) {
|
|
370
308
|
sheet.$htmlEl[0].style.removeProperty('--f7-sheet-push-scale');
|
|
371
309
|
$pushViewEl.css('border-radius', '0px');
|
|
372
310
|
}
|
|
373
311
|
}
|
|
374
|
-
|
|
375
312
|
return;
|
|
376
313
|
}
|
|
377
|
-
|
|
378
314
|
if (timeDiff >= 300) {
|
|
379
315
|
const stepOpened = !$el.hasClass('modal-in-swipe-step');
|
|
380
|
-
|
|
381
316
|
if (!stepOpened) {
|
|
382
317
|
if (absCurrentTranslate < absSwipeStepTranslate / 2) {
|
|
383
318
|
// open step
|
|
@@ -387,7 +322,6 @@ class Sheet extends Modal {
|
|
|
387
322
|
sheet.emit('local::_swipeStep', false);
|
|
388
323
|
$el.trigger('sheet:stepopen');
|
|
389
324
|
sheet.emit('local::stepOpen sheetStepOpen', sheet);
|
|
390
|
-
|
|
391
325
|
if (sheet.push && pushOffset) {
|
|
392
326
|
sheet.$htmlEl[0].style.setProperty('--f7-sheet-push-scale', pushViewScale(pushOffset));
|
|
393
327
|
$pushViewEl.css('border-radius', '');
|
|
@@ -408,7 +342,6 @@ class Sheet extends Modal {
|
|
|
408
342
|
sheet.emit('local::_swipeStep', true);
|
|
409
343
|
$el.trigger('sheet:stepclose');
|
|
410
344
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
411
|
-
|
|
412
345
|
if (sheet.push && pushOffset) {
|
|
413
346
|
sheet.$htmlEl[0].style.removeProperty('--f7-sheet-push-scale');
|
|
414
347
|
$pushViewEl.css('border-radius', '0px');
|
|
@@ -417,37 +350,29 @@ class Sheet extends Modal {
|
|
|
417
350
|
}
|
|
418
351
|
}
|
|
419
352
|
}
|
|
420
|
-
|
|
421
353
|
sheet.setSwipeStep = function setSwipeStep(byResize) {
|
|
422
354
|
if (byResize === void 0) {
|
|
423
355
|
byResize = true;
|
|
424
356
|
}
|
|
425
|
-
|
|
426
357
|
const $swipeStepEl = $el.find('.sheet-modal-swipe-step').eq(0);
|
|
427
358
|
if (!$swipeStepEl.length) return;
|
|
428
|
-
|
|
429
359
|
if ($el.hasClass('sheet-modal-top')) {
|
|
430
360
|
swipeStepTranslate = -($swipeStepEl.offset().top - $el.offset().top + $swipeStepEl[0].offsetHeight);
|
|
431
361
|
} else {
|
|
432
362
|
swipeStepTranslate = $el[0].offsetHeight - ($swipeStepEl.offset().top - $el.offset().top + $swipeStepEl[0].offsetHeight);
|
|
433
363
|
}
|
|
434
|
-
|
|
435
364
|
$el[0].style.setProperty('--f7-sheet-swipe-step', `${swipeStepTranslate}px`);
|
|
436
|
-
|
|
437
365
|
if (!byResize) {
|
|
438
366
|
$el.addClass('modal-in-swipe-step');
|
|
439
367
|
sheet.emit('local::_swipeStep', true);
|
|
440
368
|
}
|
|
441
369
|
};
|
|
442
|
-
|
|
443
370
|
function onResize() {
|
|
444
371
|
sheet.setSwipeStep(true);
|
|
445
372
|
}
|
|
446
|
-
|
|
447
373
|
const passive = support.passiveListener ? {
|
|
448
374
|
passive: true
|
|
449
375
|
} : false;
|
|
450
|
-
|
|
451
376
|
if (sheet.params.swipeToClose || sheet.params.swipeToStep) {
|
|
452
377
|
$el.on(app.touchEvents.start, handleTouchStart, passive);
|
|
453
378
|
app.on('touchmove', handleTouchMove);
|
|
@@ -458,38 +383,31 @@ class Sheet extends Modal {
|
|
|
458
383
|
app.off('touchend:passive', handleTouchEnd);
|
|
459
384
|
});
|
|
460
385
|
}
|
|
461
|
-
|
|
462
386
|
sheet.on('open', () => {
|
|
463
387
|
if (sheet.params.closeOnEscape) {
|
|
464
388
|
$(document).on('keydown', onKeyDown);
|
|
465
389
|
}
|
|
466
|
-
|
|
467
390
|
$el.prevAll('.popup.modal-in').addClass('popup-behind');
|
|
468
|
-
|
|
469
391
|
if (sheet.params.swipeToStep) {
|
|
470
392
|
sheet.setSwipeStep(false);
|
|
471
393
|
app.on('resize', onResize);
|
|
472
394
|
}
|
|
473
|
-
|
|
474
395
|
if (sheet.params.scrollToEl) {
|
|
475
396
|
scrollToElementOnOpen();
|
|
476
397
|
}
|
|
477
|
-
|
|
478
398
|
if (sheet.push) {
|
|
479
399
|
pushOffset = parseInt($el.css('--f7-sheet-push-offset'), 10);
|
|
480
400
|
if (Number.isNaN(pushOffset)) pushOffset = 0;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
$pushViewEl.css('border-radius', '0px');
|
|
492
|
-
}
|
|
401
|
+
if (!pushOffset) pushOffset = app.theme === 'ios' ? 44 : 48;
|
|
402
|
+
sheet.$htmlEl[0].style.setProperty('--f7-sheet-push-offset', `${pushOffset}px`);
|
|
403
|
+
$el.addClass('sheet-modal-push');
|
|
404
|
+
sheet.$htmlEl.addClass('with-modal-sheet-push');
|
|
405
|
+
if (!sheet.params.swipeToStep) {
|
|
406
|
+
sheet.$htmlEl[0].style.setProperty('--f7-sheet-push-scale', pushViewScale(pushOffset));
|
|
407
|
+
} else {
|
|
408
|
+
$pushViewEl = app.$el.children('.view, .views');
|
|
409
|
+
pushBorderRadius = parseFloat($el.css(`border-${isTopSheetModal ? 'bottom' : 'top'}-left-radius`));
|
|
410
|
+
$pushViewEl.css('border-radius', '0px');
|
|
493
411
|
}
|
|
494
412
|
}
|
|
495
413
|
});
|
|
@@ -504,21 +422,16 @@ class Sheet extends Modal {
|
|
|
504
422
|
sheet.emit('local::_swipeStep', false);
|
|
505
423
|
app.off('resize', onResize);
|
|
506
424
|
}
|
|
507
|
-
|
|
508
425
|
if (sheet.params.closeOnEscape) {
|
|
509
426
|
$(document).off('keydown', onKeyDown);
|
|
510
427
|
}
|
|
511
|
-
|
|
512
428
|
if (sheet.params.scrollToEl) {
|
|
513
429
|
scrollToElementOnClose();
|
|
514
430
|
}
|
|
515
|
-
|
|
516
431
|
if (sheet.params.closeByOutsideClick || sheet.params.closeByBackdropClick) {
|
|
517
432
|
app.off('click', handleClick);
|
|
518
433
|
}
|
|
519
|
-
|
|
520
434
|
$el.prevAll('.popup.modal-in').eq(0).removeClass('popup-behind');
|
|
521
|
-
|
|
522
435
|
if (sheet.push && pushOffset) {
|
|
523
436
|
sheet.$htmlEl.removeClass('with-modal-sheet-push');
|
|
524
437
|
sheet.$htmlEl.addClass('with-modal-sheet-push-closing');
|
|
@@ -528,43 +441,35 @@ class Sheet extends Modal {
|
|
|
528
441
|
if (sheet.push && pushOffset) {
|
|
529
442
|
sheet.$htmlEl.removeClass('with-modal-sheet-push-closing');
|
|
530
443
|
sheet.$htmlEl[0].style.removeProperty('--f7-sheet-push-scale');
|
|
444
|
+
sheet.$htmlEl[0].style.removeProperty('--f7-sheet-push-offset');
|
|
531
445
|
}
|
|
532
446
|
});
|
|
533
|
-
|
|
534
447
|
sheet.stepOpen = function stepOpen() {
|
|
535
448
|
$el.removeClass('modal-in-swipe-step');
|
|
536
449
|
sheet.emit('local::_swipeStep', false);
|
|
537
|
-
|
|
538
450
|
if (sheet.push) {
|
|
539
451
|
if (!pushOffset) {
|
|
540
452
|
pushOffset = parseInt($el.css('--f7-sheet-push-offset'), 10);
|
|
541
453
|
if (Number.isNaN(pushOffset)) pushOffset = 0;
|
|
542
454
|
}
|
|
543
|
-
|
|
544
455
|
if (pushOffset) {
|
|
545
456
|
sheet.$htmlEl[0].style.setProperty('--f7-sheet-push-scale', pushViewScale(pushOffset));
|
|
546
457
|
}
|
|
547
458
|
}
|
|
548
459
|
};
|
|
549
|
-
|
|
550
460
|
sheet.stepClose = function stepClose() {
|
|
551
461
|
$el.addClass('modal-in-swipe-step');
|
|
552
462
|
sheet.emit('local::_swipeStep', true);
|
|
553
|
-
|
|
554
463
|
if (sheet.push) {
|
|
555
464
|
sheet.$htmlEl[0].style.removeProperty('--f7-sheet-push-scale');
|
|
556
465
|
}
|
|
557
466
|
};
|
|
558
|
-
|
|
559
467
|
sheet.stepToggle = function stepToggle() {
|
|
560
468
|
$el.toggleClass('modal-in-swipe-step');
|
|
561
469
|
sheet.emit('local::_swipeStep', $el.hasClass('modal-in-swipe-step'));
|
|
562
470
|
};
|
|
563
|
-
|
|
564
471
|
$el[0].f7Modal = sheet;
|
|
565
472
|
return sheet;
|
|
566
473
|
}
|
|
567
|
-
|
|
568
474
|
}
|
|
569
|
-
|
|
570
475
|
export default Sheet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--f7-sheet-height:260px;--f7-sheet-border-color:
|
|
1
|
+
:root{--f7-sheet-height:260px;--f7-sheet-push-offset:var(--f7-safe-area-top)}.ios{--f7-sheet-border-radius:0px;--f7-sheet-border-color:var(--f7-bars-border-color);--f7-sheet-transition-timing-function:initial;--f7-sheet-push-border-radius:10px;--f7-sheet-transition-duration:300ms;--f7-sheet-bg-color:#fff}.ios .dark,.ios.dark{--f7-sheet-bg-color:#202020}.md{--f7-sheet-border-radius:16px;--f7-sheet-push-border-radius:16px;--f7-sheet-border-color:transparent;--f7-sheet-transition-timing-function:cubic-bezier(0, 0.8, 0.34, 1);--f7-sheet-transition-duration:400ms}.md,.md .dark,.md [class*=color-]{--f7-sheet-bg-color:var(--f7-md-surface)}.sheet-backdrop{z-index:11000}.sheet-backdrop-unique{z-index:12500}.sheet-modal{overflow:hidden;position:absolute;left:0;bottom:0;width:100%;height:var(--f7-sheet-height);display:none;box-sizing:border-box;transition-property:transform;transform:translate3d(0,100%,0);background:var(--f7-sheet-bg-color);z-index:12500;will-change:transform,opacity}.sheet-modal.modal-in,.sheet-modal.modal-out{transition-duration:var(--f7-sheet-transition-duration)}.sheet-modal.not-animated{transition-duration:0s}.sheet-modal.modal-in{display:block;transform:translate3d(0,0,0)}.sheet-modal.modal-in-swipe-step{display:block;transform:translate3d(0,var(--f7-sheet-swipe-step,0),0)}.sheet-modal.modal-out{transform:translate3d(0,100%,0)}.sheet-modal .sheet-modal-inner{height:100%;position:relative;overflow:hidden}.sheet-modal .toolbar{--f7-safe-area-bottom:0px;position:relative;width:100%}.sheet-modal .toolbar:after,.sheet-modal .toolbar:before{display:none}.sheet-modal .toolbar+.sheet-modal-inner{height:calc(100% - var(--f7-toolbar-height))}.sheet-modal .toolbar+.sheet-modal-inner .page-content{--f7-page-toolbar-top-offset:0px;--f7-page-toolbar-bottom-offset:0px}.sheet-backdrop,.sheet-modal{transition-timing-function:var(--f7-sheet-transition-timing-function)}.sheet-modal-top{border-radius:0 0 var(--f7-sheet-border-radius) var(--f7-sheet-border-radius)}.sheet-modal-top:after{content:'';position:absolute;background-color:var(--f7-sheet-border-color);display:block;z-index:15;top:auto;right:auto;bottom:0;left:0;height:1px;width:100%;transform-origin:50% 100%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.sheet-modal-top:after{z-index:700;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-style:preserve-3d}.sheet-modal-bottom,.sheet-modal:not(.sheet-modal-top){--f7-safe-area-top:0px;border-radius:var(--f7-sheet-border-radius) var(--f7-sheet-border-radius) 0 0}.sheet-modal-bottom:before,.sheet-modal:not(.sheet-modal-top):before{content:'';position:absolute;background-color:var(--f7-sheet-border-color);display:block;z-index:15;top:0;right:auto;bottom:auto;left:0;height:1px;width:100%;transform-origin:50% 0%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.sheet-modal-bottom:before,.sheet-modal:not(.sheet-modal-top):before{z-index:700;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-style:preserve-3d}.sheet-modal-top{--f7-safe-area-bottom:0px;bottom:auto;top:0;transform:translate3d(0,-100%,0)}.sheet-modal-top.modal-out{transform:translate3d(0,-100%,0)}.sheet-modal-top .toolbar-bottom{position:absolute}.sheet-modal-top .page-content{padding-top:var(--f7-safe-area-top)}html.with-modal-sheet-push .sheet-modal-push,html.with-modal-sheet-push-closing .sheet-modal-push{--f7-sheet-border-color:transparent;border-radius:var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius) 0 0;overflow:hidden}html.with-modal-sheet-push .sheet-modal-push .page,html.with-modal-sheet-push .sheet-modal-push .view,html.with-modal-sheet-push-closing .sheet-modal-push .page,html.with-modal-sheet-push-closing .sheet-modal-push .view{--f7-safe-area-top:0px}html.with-modal-sheet-push .sheet-modal-push.sheet-modal-top,html.with-modal-sheet-push-closing .sheet-modal-push.sheet-modal-top{border-radius:0 0 var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius)}html.with-modal-sheet-push .framework7-root,html.with-modal-sheet-push-closing .framework7-root{background:#000}html.with-modal-sheet-push .framework7-root>.view,html.with-modal-sheet-push .framework7-root>.views,html.with-modal-sheet-push-closing .framework7-root>.view,html.with-modal-sheet-push-closing .framework7-root>.views{transition-duration:var(--f7-sheet-transition-duration);transition-timing-function:var(--f7-sheet-transition-timing-function)}html.with-modal-sheet-push .dark .framework7-root>.view:after,html.with-modal-sheet-push .dark .framework7-root>.views:after,html.with-modal-sheet-push .dark.framework7-root>.view:after,html.with-modal-sheet-push .dark.framework7-root>.views:after,html.with-modal-sheet-push .framework7-root>.view.dark:after,html.with-modal-sheet-push .framework7-root>.views.dark:after,html.with-modal-sheet-push-closing .dark .framework7-root>.view:after,html.with-modal-sheet-push-closing .dark .framework7-root>.views:after,html.with-modal-sheet-push-closing .dark.framework7-root>.view:after,html.with-modal-sheet-push-closing .dark.framework7-root>.views:after,html.with-modal-sheet-push-closing .framework7-root>.view.dark:after,html.with-modal-sheet-push-closing .framework7-root>.views.dark:after,html.with-modal-sheet-push-closing.dark .framework7-root>.view:after,html.with-modal-sheet-push-closing.dark .framework7-root>.views:after,html.with-modal-sheet-push.dark .framework7-root>.view:after,html.with-modal-sheet-push.dark .framework7-root>.views:after{content:'';position:absolute;pointer-events:none;left:0;top:0;width:100%;height:100%;background:rgba(255,255,255,.1);z-index:13000;border-radius:var(--f7-sheet-push-border-radius) var(--f7-sheet-push-border-radius) 0 0;opacity:1;animation:sheet-dark-push-overlay-fade-in var(--f7-sheet-transition-duration) forwards;animation-timing-function:var(--f7-sheet-transition-timing-function)}html.with-modal-sheet-push .framework7-root>.view,html.with-modal-sheet-push .framework7-root>.views{border-radius:var(--f7-sheet-push-border-radius);transform:translate3d(0,0,0px) scale(var(--f7-sheet-push-scale,1))!important}html.with-modal-sheet-push-closing .dark .framework7-root>.view:after,html.with-modal-sheet-push-closing .dark .framework7-root>.views:after,html.with-modal-sheet-push-closing .dark.framework7-root>.view:after,html.with-modal-sheet-push-closing .dark.framework7-root>.views:after,html.with-modal-sheet-push-closing .framework7-root>.view.dark:after,html.with-modal-sheet-push-closing .framework7-root>.views.dark:after,html.with-modal-sheet-push-closing.dark .framework7-root>.view:after,html.with-modal-sheet-push-closing.dark .framework7-root>.views:after{animation:sheet-dark-push-overlay-fade-out var(--f7-sheet-transition-duration) forwards;animation-timing-function:var(--f7-sheet-transition-timing-function)}@keyframes sheet-dark-push-overlay-fade-in{from{opacity:0}to{opacity:1}}@keyframes sheet-dark-push-overlay-fade-out{from{opacity:1}to{opacity:0}}.md .sheet-modal .toolbar a.link:not(.tab-link){flex-shrink:0}
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--f7-sheet-height: 260px;
|
|
3
|
-
--f7-sheet-border-color: transparent;
|
|
4
|
-
--f7-sheet-transition-duration: 300ms;
|
|
5
|
-
--f7-sheet-push-border-radius: 10px;
|
|
6
3
|
--f7-sheet-push-offset: var(--f7-safe-area-top);
|
|
4
|
+
}
|
|
5
|
+
.ios-vars({
|
|
6
|
+
--f7-sheet-border-radius: 0px;
|
|
7
|
+
--f7-sheet-border-color: var(--f7-bars-border-color);
|
|
8
|
+
--f7-sheet-transition-timing-function: initial;
|
|
9
|
+
--f7-sheet-push-border-radius: 10px;
|
|
10
|
+
--f7-sheet-transition-duration: 300ms;
|
|
7
11
|
.light-vars({
|
|
8
12
|
--f7-sheet-bg-color: #fff;
|
|
9
13
|
});
|
|
10
14
|
.dark-vars({
|
|
11
15
|
--f7-sheet-bg-color: #202020;
|
|
12
16
|
});
|
|
13
|
-
}
|
|
14
|
-
.
|
|
15
|
-
--f7-sheet-border-
|
|
17
|
+
});
|
|
18
|
+
.md-vars({
|
|
19
|
+
--f7-sheet-border-radius: 16px;
|
|
20
|
+
--f7-sheet-push-border-radius: 16px;
|
|
21
|
+
--f7-sheet-border-color: transparent;
|
|
22
|
+
--f7-sheet-transition-timing-function: cubic-bezier(0, 0.8, 0.34, 1);
|
|
23
|
+
--f7-sheet-transition-duration: 400ms;
|
|
24
|
+
});
|
|
25
|
+
.md-color-vars({
|
|
26
|
+
--f7-sheet-bg-color: var(--f7-md-surface);
|
|
16
27
|
});
|