@xenknight/framework7 0.0.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/LICENSE +20 -0
- package/README.md +32 -0
- package/components/accordion/accordion-ios.less +2 -0
- package/components/accordion/accordion-md.less +2 -0
- package/components/accordion/accordion-rtl.css +1 -0
- package/components/accordion/accordion-vars.less +0 -0
- package/components/accordion/accordion.css +1 -0
- package/components/accordion/accordion.d.ts +55 -0
- package/components/accordion/accordion.js +118 -0
- package/components/accordion/accordion.less +215 -0
- package/components/actions/actions-class.js +325 -0
- package/components/actions/actions-ios.less +51 -0
- package/components/actions/actions-md.less +24 -0
- package/components/actions/actions-rtl.css +1 -0
- package/components/actions/actions-vars.less +72 -0
- package/components/actions/actions.css +1 -0
- package/components/actions/actions.d.ts +164 -0
- package/components/actions/actions.js +47 -0
- package/components/actions/actions.less +182 -0
- package/components/app/app-class.d.ts +189 -0
- package/components/app/app-class.js +349 -0
- package/components/app/app-ios.less +23 -0
- package/components/app/app-md.less +8 -0
- package/components/app/app-vars.less +122 -0
- package/components/app/app.less +121 -0
- package/components/app/load-module.js +125 -0
- package/components/area-chart/area-chart-class.js +467 -0
- package/components/area-chart/area-chart-ios.less +2 -0
- package/components/area-chart/area-chart-md.less +2 -0
- package/components/area-chart/area-chart-rtl.css +1 -0
- package/components/area-chart/area-chart-vars.less +35 -0
- package/components/area-chart/area-chart.css +1 -0
- package/components/area-chart/area-chart.d.ts +128 -0
- package/components/area-chart/area-chart.js +44 -0
- package/components/area-chart/area-chart.less +131 -0
- package/components/autocomplete/autocomplete-class.js +813 -0
- package/components/autocomplete/autocomplete-ios.less +9 -0
- package/components/autocomplete/autocomplete-md.less +30 -0
- package/components/autocomplete/autocomplete-rtl.css +1 -0
- package/components/autocomplete/autocomplete-vars.less +36 -0
- package/components/autocomplete/autocomplete.css +1 -0
- package/components/autocomplete/autocomplete.d.ts +193 -0
- package/components/autocomplete/autocomplete.js +81 -0
- package/components/autocomplete/autocomplete.less +102 -0
- package/components/badge/badge-ios.less +2 -0
- package/components/badge/badge-md.less +2 -0
- package/components/badge/badge-vars.less +18 -0
- package/components/badge/badge.d.ts +14 -0
- package/components/badge/badge.js +3 -0
- package/components/badge/badge.less +45 -0
- package/components/block/block-ios.less +2 -0
- package/components/block/block-md.less +2 -0
- package/components/block/block-vars.less +77 -0
- package/components/block/block.d.ts +14 -0
- package/components/block/block.js +3 -0
- package/components/block/block.less +209 -0
- package/components/breadcrumbs/breadcrumbs-ios.less +2 -0
- package/components/breadcrumbs/breadcrumbs-md.less +2 -0
- package/components/breadcrumbs/breadcrumbs-rtl.css +1 -0
- package/components/breadcrumbs/breadcrumbs-vars.less +52 -0
- package/components/breadcrumbs/breadcrumbs.css +1 -0
- package/components/breadcrumbs/breadcrumbs.d.ts +15 -0
- package/components/breadcrumbs/breadcrumbs.js +11 -0
- package/components/breadcrumbs/breadcrumbs.less +91 -0
- package/components/button/button-ios.less +21 -0
- package/components/button/button-md.less +11 -0
- package/components/button/button-vars.less +114 -0
- package/components/button/button.d.ts +14 -0
- package/components/button/button.js +3 -0
- package/components/button/button.less +421 -0
- package/components/calendar/calendar-class.js +1872 -0
- package/components/calendar/calendar-ios.less +2 -0
- package/components/calendar/calendar-md.less +2 -0
- package/components/calendar/calendar-rtl.css +1 -0
- package/components/calendar/calendar-vars.less +108 -0
- package/components/calendar/calendar.css +1 -0
- package/components/calendar/calendar.d.ts +312 -0
- package/components/calendar/calendar.js +118 -0
- package/components/calendar/calendar.less +448 -0
- package/components/card/card-ios.less +2 -0
- package/components/card/card-md.less +2 -0
- package/components/card/card-rtl.css +1 -0
- package/components/card/card-vars.less +80 -0
- package/components/card/card.css +1 -0
- package/components/card/card.d.ts +69 -0
- package/components/card/card.js +504 -0
- package/components/card/card.less +307 -0
- package/components/checkbox/checkbox-ios.less +23 -0
- package/components/checkbox/checkbox-md.less +17 -0
- package/components/checkbox/checkbox-rtl.css +1 -0
- package/components/checkbox/checkbox-vars.less +25 -0
- package/components/checkbox/checkbox.css +1 -0
- package/components/checkbox/checkbox.d.ts +14 -0
- package/components/checkbox/checkbox.js +3 -0
- package/components/checkbox/checkbox.less +155 -0
- package/components/chip/chip-ios.less +25 -0
- package/components/chip/chip-md.less +30 -0
- package/components/chip/chip-rtl.css +1 -0
- package/components/chip/chip-vars.less +42 -0
- package/components/chip/chip.css +1 -0
- package/components/chip/chip.d.ts +14 -0
- package/components/chip/chip.js +3 -0
- package/components/chip/chip.less +106 -0
- package/components/color-picker/color-picker-class.js +871 -0
- package/components/color-picker/color-picker-ios.less +2 -0
- package/components/color-picker/color-picker-md.less +2 -0
- package/components/color-picker/color-picker-rtl.css +1 -0
- package/components/color-picker/color-picker-vars.less +39 -0
- package/components/color-picker/color-picker.css +1 -0
- package/components/color-picker/color-picker.d.ts +233 -0
- package/components/color-picker/color-picker.js +92 -0
- package/components/color-picker/color-picker.less +557 -0
- package/components/color-picker/modules/alpha-slider.js +91 -0
- package/components/color-picker/modules/brightness-slider.js +80 -0
- package/components/color-picker/modules/current-color.js +14 -0
- package/components/color-picker/modules/hex.js +71 -0
- package/components/color-picker/modules/hs-spectrum.js +118 -0
- package/components/color-picker/modules/hsb-sliders.js +191 -0
- package/components/color-picker/modules/hue-slider.js +73 -0
- package/components/color-picker/modules/initial-current-colors.js +43 -0
- package/components/color-picker/modules/palette.js +46 -0
- package/components/color-picker/modules/rgb-bars.js +183 -0
- package/components/color-picker/modules/rgb-sliders.js +185 -0
- package/components/color-picker/modules/sb-spectrum.js +119 -0
- package/components/color-picker/modules/wheel.js +173 -0
- package/components/contacts-list/contacts-list-ios.less +2 -0
- package/components/contacts-list/contacts-list-md.less +21 -0
- package/components/contacts-list/contacts-list-rtl.css +1 -0
- package/components/contacts-list/contacts-list-vars.less +24 -0
- package/components/contacts-list/contacts-list.css +1 -0
- package/components/contacts-list/contacts-list.d.ts +14 -0
- package/components/contacts-list/contacts-list.js +3 -0
- package/components/contacts-list/contacts-list.less +26 -0
- package/components/data-table/data-table-class.js +141 -0
- package/components/data-table/data-table-ios.less +70 -0
- package/components/data-table/data-table-md.less +88 -0
- package/components/data-table/data-table-rtl.css +1 -0
- package/components/data-table/data-table-vars.less +77 -0
- package/components/data-table/data-table.css +1 -0
- package/components/data-table/data-table.d.ts +61 -0
- package/components/data-table/data-table.js +64 -0
- package/components/data-table/data-table.less +429 -0
- package/components/dialog/dialog-class.js +196 -0
- package/components/dialog/dialog-ios.less +94 -0
- package/components/dialog/dialog-md.less +86 -0
- package/components/dialog/dialog-rtl.css +1 -0
- package/components/dialog/dialog-vars.less +93 -0
- package/components/dialog/dialog.css +1 -0
- package/components/dialog/dialog.d.ts +245 -0
- package/components/dialog/dialog.js +242 -0
- package/components/dialog/dialog.less +142 -0
- package/components/fab/fab-ios.less +9 -0
- package/components/fab/fab-md.less +11 -0
- package/components/fab/fab-rtl.css +1 -0
- package/components/fab/fab-vars.less +46 -0
- package/components/fab/fab.css +1 -0
- package/components/fab/fab.d.ts +32 -0
- package/components/fab/fab.js +172 -0
- package/components/fab/fab.less +523 -0
- package/components/form/form-ios.less +0 -0
- package/components/form/form-md.less +0 -0
- package/components/form/form-rtl.css +0 -0
- package/components/form/form.css +0 -0
- package/components/form/form.d.ts +64 -0
- package/components/form/form.js +311 -0
- package/components/form/form.less +7 -0
- package/components/gauge/gauge-class.js +298 -0
- package/components/gauge/gauge-ios.less +2 -0
- package/components/gauge/gauge-md.less +2 -0
- package/components/gauge/gauge-rtl.css +1 -0
- package/components/gauge/gauge.css +1 -0
- package/components/gauge/gauge.d.ts +100 -0
- package/components/gauge/gauge.js +90 -0
- package/components/gauge/gauge.less +24 -0
- package/components/grid/grid-ios.less +2 -0
- package/components/grid/grid-md.less +2 -0
- package/components/grid/grid-rtl.css +1 -0
- package/components/grid/grid-vars.less +3 -0
- package/components/grid/grid.css +1 -0
- package/components/grid/grid.d.ts +15 -0
- package/components/grid/grid.js +3 -0
- package/components/grid/grid.less +78 -0
- package/components/icon/icon-ios.less +44 -0
- package/components/icon/icon-md.less +56 -0
- package/components/icon/icon.d.ts +14 -0
- package/components/icon/icon.js +3 -0
- package/components/icon/icon.less +33 -0
- package/components/infinite-scroll/infinite-scroll-ios.less +11 -0
- package/components/infinite-scroll/infinite-scroll-md.less +6 -0
- package/components/infinite-scroll/infinite-scroll-rtl.css +1 -0
- package/components/infinite-scroll/infinite-scroll.css +1 -0
- package/components/infinite-scroll/infinite-scroll.d.ts +27 -0
- package/components/infinite-scroll/infinite-scroll.js +94 -0
- package/components/infinite-scroll/infinite-scroll.less +15 -0
- package/components/input/input-ios.less +129 -0
- package/components/input/input-md.less +171 -0
- package/components/input/input-rtl.css +1 -0
- package/components/input/input-vars.less +94 -0
- package/components/input/input.css +1 -0
- package/components/input/input.d.ts +60 -0
- package/components/input/input.js +339 -0
- package/components/input/input.less +355 -0
- package/components/link/link-ios.less +9 -0
- package/components/link/link-md.less +2 -0
- package/components/link/link-vars.less +9 -0
- package/components/link/link.d.ts +14 -0
- package/components/link/link.js +3 -0
- package/components/link/link.less +37 -0
- package/components/list/list-ios.less +15 -0
- package/components/list/list-md.less +5 -0
- package/components/list/list-vars.less +184 -0
- package/components/list/list.d.ts +14 -0
- package/components/list/list.js +3 -0
- package/components/list/list.less +718 -0
- package/components/list-index/list-index-class.js +333 -0
- package/components/list-index/list-index-ios.less +21 -0
- package/components/list-index/list-index-md.less +7 -0
- package/components/list-index/list-index-rtl.css +1 -0
- package/components/list-index/list-index-vars.less +25 -0
- package/components/list-index/list-index.css +1 -0
- package/components/list-index/list-index.d.ts +101 -0
- package/components/list-index/list-index.js +65 -0
- package/components/list-index/list-index.less +130 -0
- package/components/login-screen/login-screen-class.js +38 -0
- package/components/login-screen/login-screen-ios.less +2 -0
- package/components/login-screen/login-screen-md.less +2 -0
- package/components/login-screen/login-screen-rtl.css +1 -0
- package/components/login-screen/login-screen-vars.less +33 -0
- package/components/login-screen/login-screen.css +1 -0
- package/components/login-screen/login-screen.d.ts +99 -0
- package/components/login-screen/login-screen.js +32 -0
- package/components/login-screen/login-screen.less +100 -0
- package/components/messagebar/messagebar-class.js +367 -0
- package/components/messagebar/messagebar-ios.less +88 -0
- package/components/messagebar/messagebar-md.less +114 -0
- package/components/messagebar/messagebar-rtl.css +1 -0
- package/components/messagebar/messagebar-vars.less +75 -0
- package/components/messagebar/messagebar.css +1 -0
- package/components/messagebar/messagebar.d.ts +165 -0
- package/components/messagebar/messagebar.js +66 -0
- package/components/messagebar/messagebar.less +162 -0
- package/components/messages/messages-class.js +487 -0
- package/components/messages/messages-ios.less +165 -0
- package/components/messages/messages-md.less +140 -0
- package/components/messages/messages-rtl.css +1 -0
- package/components/messages/messages-vars.less +82 -0
- package/components/messages/messages.css +1 -0
- package/components/messages/messages.d.ts +162 -0
- package/components/messages/messages.js +65 -0
- package/components/messages/messages.less +218 -0
- package/components/modal/custom-modal-class.js +66 -0
- package/components/modal/modal-class.js +224 -0
- package/components/modal/modal.d.ts +82 -0
- package/components/modal/modal.js +22 -0
- package/components/modal/modal.less +14 -0
- package/components/navbar/navbar-ios.less +755 -0
- package/components/navbar/navbar-md.less +65 -0
- package/components/navbar/navbar-vars.less +74 -0
- package/components/navbar/navbar.d.ts +77 -0
- package/components/navbar/navbar.js +712 -0
- package/components/navbar/navbar.less +311 -0
- package/components/notification/notification-class.js +212 -0
- package/components/notification/notification-ios.less +55 -0
- package/components/notification/notification-md.less +87 -0
- package/components/notification/notification-rtl.css +1 -0
- package/components/notification/notification-vars.less +75 -0
- package/components/notification/notification.css +1 -0
- package/components/notification/notification.d.ts +122 -0
- package/components/notification/notification.js +33 -0
- package/components/notification/notification.less +94 -0
- package/components/page/page-ios.less +154 -0
- package/components/page/page-md.less +83 -0
- package/components/page/page-transitions/circle.less +107 -0
- package/components/page/page-transitions/cover-v.less +61 -0
- package/components/page/page-transitions/cover.less +71 -0
- package/components/page/page-transitions/dive.less +77 -0
- package/components/page/page-transitions/fade.less +53 -0
- package/components/page/page-transitions/flip.less +91 -0
- package/components/page/page-transitions/parallax.less +75 -0
- package/components/page/page-transitions/push.less +75 -0
- package/components/page/page-vars.less +47 -0
- package/components/page/page.d.ts +14 -0
- package/components/page/page.js +3 -0
- package/components/page/page.less +204 -0
- package/components/panel/panel-class.js +556 -0
- package/components/panel/panel-ios.less +2 -0
- package/components/panel/panel-md.less +11 -0
- package/components/panel/panel-rtl.css +3 -0
- package/components/panel/panel-vars.less +24 -0
- package/components/panel/panel.css +3 -0
- package/components/panel/panel.d.ts +198 -0
- package/components/panel/panel.js +189 -0
- package/components/panel/panel.less +403 -0
- package/components/panel/resizable-panel.js +160 -0
- package/components/panel/swipe-panel.js +311 -0
- package/components/photo-browser/photo-browser-class.js +734 -0
- package/components/photo-browser/photo-browser-ios.less +2 -0
- package/components/photo-browser/photo-browser-md.less +2 -0
- package/components/photo-browser/photo-browser-rtl.css +1 -0
- package/components/photo-browser/photo-browser-vars.less +16 -0
- package/components/photo-browser/photo-browser.css +1 -0
- package/components/photo-browser/photo-browser.d.ts +204 -0
- package/components/photo-browser/photo-browser.js +73 -0
- package/components/photo-browser/photo-browser.less +358 -0
- package/components/picker/picker-class.js +588 -0
- package/components/picker/picker-column.js +121 -0
- package/components/picker/picker-ios.less +12 -0
- package/components/picker/picker-md.less +8 -0
- package/components/picker/picker-rtl.css +1 -0
- package/components/picker/picker-vars.less +35 -0
- package/components/picker/picker.css +1 -0
- package/components/picker/picker.d.ts +209 -0
- package/components/picker/picker.js +59 -0
- package/components/picker/picker.less +180 -0
- package/components/pie-chart/pie-chart-class.js +250 -0
- package/components/pie-chart/pie-chart-ios.less +2 -0
- package/components/pie-chart/pie-chart-md.less +2 -0
- package/components/pie-chart/pie-chart-rtl.css +1 -0
- package/components/pie-chart/pie-chart.css +1 -0
- package/components/pie-chart/pie-chart.d.ts +99 -0
- package/components/pie-chart/pie-chart.js +32 -0
- package/components/pie-chart/pie-chart.less +43 -0
- package/components/popover/popover-class.js +293 -0
- package/components/popover/popover-ios.less +6 -0
- package/components/popover/popover-md.less +41 -0
- package/components/popover/popover-rtl.css +1 -0
- package/components/popover/popover-vars.less +25 -0
- package/components/popover/popover.css +1 -0
- package/components/popover/popover.d.ts +137 -0
- package/components/popover/popover.js +75 -0
- package/components/popover/popover.less +168 -0
- package/components/popup/popup-class.js +329 -0
- package/components/popup/popup-ios.less +2 -0
- package/components/popup/popup-md.less +2 -0
- package/components/popup/popup-rtl.css +1 -0
- package/components/popup/popup-vars.less +21 -0
- package/components/popup/popup.css +1 -0
- package/components/popup/popup.d.ts +143 -0
- package/components/popup/popup.js +46 -0
- package/components/popup/popup.less +204 -0
- package/components/preloader/preloader-ios.less +57 -0
- package/components/preloader/preloader-md.less +114 -0
- package/components/preloader/preloader-rtl.css +1 -0
- package/components/preloader/preloader-vars.less +16 -0
- package/components/preloader/preloader.css +1 -0
- package/components/preloader/preloader.d.ts +26 -0
- package/components/preloader/preloader.js +106 -0
- package/components/preloader/preloader.less +60 -0
- package/components/progressbar/progressbar-ios.less +59 -0
- package/components/progressbar/progressbar-md.less +141 -0
- package/components/progressbar/progressbar-rtl.css +1 -0
- package/components/progressbar/progressbar-vars.less +22 -0
- package/components/progressbar/progressbar.css +1 -0
- package/components/progressbar/progressbar.d.ts +31 -0
- package/components/progressbar/progressbar.js +150 -0
- package/components/progressbar/progressbar.less +111 -0
- package/components/pull-to-refresh/pull-to-refresh-class.js +512 -0
- package/components/pull-to-refresh/pull-to-refresh-ios.less +88 -0
- package/components/pull-to-refresh/pull-to-refresh-md.less +129 -0
- package/components/pull-to-refresh/pull-to-refresh-rtl.css +1 -0
- package/components/pull-to-refresh/pull-to-refresh-vars.less +14 -0
- package/components/pull-to-refresh/pull-to-refresh.css +1 -0
- package/components/pull-to-refresh/pull-to-refresh.d.ts +103 -0
- package/components/pull-to-refresh/pull-to-refresh.js +62 -0
- package/components/pull-to-refresh/pull-to-refresh.less +38 -0
- package/components/radio/radio-ios.less +61 -0
- package/components/radio/radio-md.less +64 -0
- package/components/radio/radio-rtl.css +1 -0
- package/components/radio/radio-vars.less +24 -0
- package/components/radio/radio.css +1 -0
- package/components/radio/radio.d.ts +14 -0
- package/components/radio/radio.js +3 -0
- package/components/radio/radio.less +64 -0
- package/components/range/range-class.js +577 -0
- package/components/range/range-ios.less +9 -0
- package/components/range/range-md.less +41 -0
- package/components/range/range-rtl.css +1 -0
- package/components/range/range-vars.less +61 -0
- package/components/range/range.css +1 -0
- package/components/range/range.d.ts +143 -0
- package/components/range/range.js +75 -0
- package/components/range/range.less +235 -0
- package/components/searchbar/remove-diacritics.js +271 -0
- package/components/searchbar/searchbar-class.js +592 -0
- package/components/searchbar/searchbar-ios.less +107 -0
- package/components/searchbar/searchbar-md.less +147 -0
- package/components/searchbar/searchbar-rtl.css +1 -0
- package/components/searchbar/searchbar-vars.less +77 -0
- package/components/searchbar/searchbar.css +1 -0
- package/components/searchbar/searchbar.d.ts +161 -0
- package/components/searchbar/searchbar.js +122 -0
- package/components/searchbar/searchbar.less +322 -0
- package/components/sheet/sheet-class.js +673 -0
- package/components/sheet/sheet-ios.less +2 -0
- package/components/sheet/sheet-md.less +9 -0
- package/components/sheet/sheet-rtl.css +1 -0
- package/components/sheet/sheet-vars.less +27 -0
- package/components/sheet/sheet.css +1 -0
- package/components/sheet/sheet.d.ts +170 -0
- package/components/sheet/sheet.js +76 -0
- package/components/sheet/sheet.less +196 -0
- package/components/skeleton/skeleton-ios.less +2 -0
- package/components/skeleton/skeleton-md.less +2 -0
- package/components/skeleton/skeleton-rtl.css +1 -0
- package/components/skeleton/skeleton-vars.less +8 -0
- package/components/skeleton/skeleton.css +1 -0
- package/components/skeleton/skeleton.d.ts +14 -0
- package/components/skeleton/skeleton.js +3 -0
- package/components/skeleton/skeleton.less +11 -0
- package/components/smart-select/smart-select-class.js +874 -0
- package/components/smart-select/smart-select-ios.less +2 -0
- package/components/smart-select/smart-select-md.less +2 -0
- package/components/smart-select/smart-select-rtl.css +1 -0
- package/components/smart-select/smart-select-vars.less +6 -0
- package/components/smart-select/smart-select.css +1 -0
- package/components/smart-select/smart-select.d.ts +204 -0
- package/components/smart-select/smart-select.js +138 -0
- package/components/smart-select/smart-select.less +42 -0
- package/components/sortable/sortable-ios.less +7 -0
- package/components/sortable/sortable-md.less +7 -0
- package/components/sortable/sortable-rtl.css +1 -0
- package/components/sortable/sortable-vars.less +22 -0
- package/components/sortable/sortable.css +1 -0
- package/components/sortable/sortable.d.ts +50 -0
- package/components/sortable/sortable.js +286 -0
- package/components/sortable/sortable.less +133 -0
- package/components/statusbar/statusbar-ios.less +2 -0
- package/components/statusbar/statusbar-md.less +2 -0
- package/components/statusbar/statusbar.d.ts +54 -0
- package/components/statusbar/statusbar.js +190 -0
- package/components/statusbar/statusbar.less +7 -0
- package/components/stepper/stepper-class.js +403 -0
- package/components/stepper/stepper-ios.less +36 -0
- package/components/stepper/stepper-md.less +16 -0
- package/components/stepper/stepper-rtl.css +1 -0
- package/components/stepper/stepper-vars.less +40 -0
- package/components/stepper/stepper.css +1 -0
- package/components/stepper/stepper.d.ts +121 -0
- package/components/stepper/stepper.js +82 -0
- package/components/stepper/stepper.less +178 -0
- package/components/subnavbar/subnavbar-ios.less +51 -0
- package/components/subnavbar/subnavbar-md.less +47 -0
- package/components/subnavbar/subnavbar-vars.less +36 -0
- package/components/subnavbar/subnavbar.d.ts +11 -0
- package/components/subnavbar/subnavbar.js +17 -0
- package/components/subnavbar/subnavbar.less +128 -0
- package/components/swipeout/swipeout-ios.less +2 -0
- package/components/swipeout/swipeout-md.less +2 -0
- package/components/swipeout/swipeout-rtl.css +1 -0
- package/components/swipeout/swipeout-vars.less +24 -0
- package/components/swipeout/swipeout.css +1 -0
- package/components/swipeout/swipeout.d.ts +68 -0
- package/components/swipeout/swipeout.js +513 -0
- package/components/swipeout/swipeout.less +109 -0
- package/components/swiper/swiper-ios.less +2 -0
- package/components/swiper/swiper-md.less +2 -0
- package/components/swiper/swiper-rtl.css +1 -0
- package/components/swiper/swiper.css +1 -0
- package/components/swiper/swiper.d.ts +25 -0
- package/components/swiper/swiper.js +141 -0
- package/components/swiper/swiper.less +5 -0
- package/components/tabs/tabs-ios.less +2 -0
- package/components/tabs/tabs-md.less +2 -0
- package/components/tabs/tabs-rtl.css +1 -0
- package/components/tabs/tabs.css +1 -0
- package/components/tabs/tabs.d.ts +39 -0
- package/components/tabs/tabs.js +243 -0
- package/components/tabs/tabs.less +45 -0
- package/components/text-editor/text-editor-class.js +516 -0
- package/components/text-editor/text-editor-ios.less +9 -0
- package/components/text-editor/text-editor-md.less +11 -0
- package/components/text-editor/text-editor-rtl.css +1 -0
- package/components/text-editor/text-editor-vars.less +51 -0
- package/components/text-editor/text-editor.css +1 -0
- package/components/text-editor/text-editor.d.ts +166 -0
- package/components/text-editor/text-editor.js +81 -0
- package/components/text-editor/text-editor.less +153 -0
- package/components/timeline/timeline-ios.less +11 -0
- package/components/timeline/timeline-md.less +7 -0
- package/components/timeline/timeline-rtl.css +1 -0
- package/components/timeline/timeline-vars.less +64 -0
- package/components/timeline/timeline.css +1 -0
- package/components/timeline/timeline.d.ts +14 -0
- package/components/timeline/timeline.js +3 -0
- package/components/timeline/timeline.less +413 -0
- package/components/toast/toast-class.js +105 -0
- package/components/toast/toast-ios.less +81 -0
- package/components/toast/toast-md.less +72 -0
- package/components/toast/toast-rtl.css +1 -0
- package/components/toast/toast-vars.less +24 -0
- package/components/toast/toast.css +1 -0
- package/components/toast/toast.d.ts +121 -0
- package/components/toast/toast.js +40 -0
- package/components/toast/toast.less +62 -0
- package/components/toggle/toggle-class.js +165 -0
- package/components/toggle/toggle-ios.less +70 -0
- package/components/toggle/toggle-md.less +44 -0
- package/components/toggle/toggle-rtl.css +1 -0
- package/components/toggle/toggle-vars.less +30 -0
- package/components/toggle/toggle.css +1 -0
- package/components/toggle/toggle.d.ts +73 -0
- package/components/toggle/toggle.js +57 -0
- package/components/toggle/toggle.less +52 -0
- package/components/toolbar/toolbar-ios.less +47 -0
- package/components/toolbar/toolbar-md.less +77 -0
- package/components/toolbar/toolbar-vars.less +71 -0
- package/components/toolbar/toolbar.d.ts +43 -0
- package/components/toolbar/toolbar.js +198 -0
- package/components/toolbar/toolbar.less +306 -0
- package/components/tooltip/tooltip-class.js +336 -0
- package/components/tooltip/tooltip-ios.less +2 -0
- package/components/tooltip/tooltip-md.less +2 -0
- package/components/tooltip/tooltip-rtl.css +1 -0
- package/components/tooltip/tooltip-vars.less +19 -0
- package/components/tooltip/tooltip.css +1 -0
- package/components/tooltip/tooltip.d.ts +105 -0
- package/components/tooltip/tooltip.js +129 -0
- package/components/tooltip/tooltip.less +39 -0
- package/components/touch-ripple/touch-ripple-class.js +85 -0
- package/components/touch-ripple/touch-ripple-ios.less +2 -0
- package/components/touch-ripple/touch-ripple-md.less +2 -0
- package/components/touch-ripple/touch-ripple-vars.less +8 -0
- package/components/touch-ripple/touch-ripple.d.ts +25 -0
- package/components/touch-ripple/touch-ripple.js +18 -0
- package/components/touch-ripple/touch-ripple.less +114 -0
- package/components/treeview/treeview-ios.less +2 -0
- package/components/treeview/treeview-md.less +2 -0
- package/components/treeview/treeview-rtl.css +1 -0
- package/components/treeview/treeview-vars.less +38 -0
- package/components/treeview/treeview.css +1 -0
- package/components/treeview/treeview.d.ts +42 -0
- package/components/treeview/treeview.js +74 -0
- package/components/treeview/treeview.less +160 -0
- package/components/typography/typography-ios.less +2 -0
- package/components/typography/typography-md.less +2 -0
- package/components/typography/typography-rtl.css +1 -0
- package/components/typography/typography-vars.less +4 -0
- package/components/typography/typography.css +1 -0
- package/components/typography/typography.d.ts +14 -0
- package/components/typography/typography.js +3 -0
- package/components/typography/typography.less +220 -0
- package/components/view/resizable-view.js +125 -0
- package/components/view/view-class.js +206 -0
- package/components/view/view-ios.less +2 -0
- package/components/view/view-md.less +2 -0
- package/components/view/view.d.ts +199 -0
- package/components/view/view.js +173 -0
- package/components/view/view.less +35 -0
- package/components/virtual-list/virtual-list-class.js +583 -0
- package/components/virtual-list/virtual-list-ios.less +2 -0
- package/components/virtual-list/virtual-list-md.less +2 -0
- package/components/virtual-list/virtual-list-rtl.css +0 -0
- package/components/virtual-list/virtual-list.css +0 -0
- package/components/virtual-list/virtual-list.d.ts +142 -0
- package/components/virtual-list/virtual-list.js +17 -0
- package/components/virtual-list/virtual-list.less +7 -0
- package/framework7-bundle-rtl.css +19821 -0
- package/framework7-bundle-rtl.min.css +19 -0
- package/framework7-bundle.css +19802 -0
- package/framework7-bundle.esm.js +93 -0
- package/framework7-bundle.js +48416 -0
- package/framework7-bundle.js.map +1 -0
- package/framework7-bundle.less +92 -0
- package/framework7-bundle.min.css +19 -0
- package/framework7-bundle.min.js +14 -0
- package/framework7-bundle.min.js.map +1 -0
- package/framework7-lite-bundle.esm.js +86 -0
- package/framework7-lite.esm.js +37 -0
- package/framework7-lite.js +31 -0
- package/framework7-rtl.css +5252 -0
- package/framework7-rtl.min.css +17 -0
- package/framework7-types.d.ts +336 -0
- package/framework7.css +5245 -0
- package/framework7.d.ts +322 -0
- package/framework7.esm.js +41 -0
- package/framework7.js +42 -0
- package/framework7.less +41 -0
- package/framework7.min.css +17 -0
- package/less/mixins.less +281 -0
- package/less/plugin.js +15 -0
- package/less/vars.less +7 -0
- package/modules/clicks/clicks.d.ts +19 -0
- package/modules/clicks/clicks.js +94 -0
- package/modules/component/$h.js +15 -0
- package/modules/component/$jsx.js +17 -0
- package/modules/component/component-class.js +517 -0
- package/modules/component/component.d.ts +111 -0
- package/modules/component/component.js +44 -0
- package/modules/component/custom-components.js +1 -0
- package/modules/component/eventslisteners.js +74 -0
- package/modules/component/parse-component.js +79 -0
- package/modules/component/patch.js +8 -0
- package/modules/component/snabbdom/h.d.ts +10 -0
- package/modules/component/snabbdom/h.js +50 -0
- package/modules/component/snabbdom/helpers/attachto.d.ts +9 -0
- package/modules/component/snabbdom/helpers/attachto.js +49 -0
- package/modules/component/snabbdom/hooks.d.ts +23 -0
- package/modules/component/snabbdom/hooks.js +0 -0
- package/modules/component/snabbdom/htmldomapi.d.ts +19 -0
- package/modules/component/snabbdom/htmldomapi.js +67 -0
- package/modules/component/snabbdom/is.d.ts +2 -0
- package/modules/component/snabbdom/is.js +4 -0
- package/modules/component/snabbdom/modules/attributes.d.ts +4 -0
- package/modules/component/snabbdom/modules/attributes.js +51 -0
- package/modules/component/snabbdom/modules/class.d.ts +4 -0
- package/modules/component/snabbdom/modules/class.js +27 -0
- package/modules/component/snabbdom/modules/dataset.d.ts +4 -0
- package/modules/component/snabbdom/modules/dataset.js +37 -0
- package/modules/component/snabbdom/modules/eventlisteners.d.ts +8 -0
- package/modules/component/snabbdom/modules/eventlisteners.js +93 -0
- package/modules/component/snabbdom/modules/hero.d.ts +6 -0
- package/modules/component/snabbdom/modules/hero.js +147 -0
- package/modules/component/snabbdom/modules/module.d.ts +9 -0
- package/modules/component/snabbdom/modules/module.js +0 -0
- package/modules/component/snabbdom/modules/props.d.ts +4 -0
- package/modules/component/snabbdom/modules/props.js +29 -0
- package/modules/component/snabbdom/modules/style.d.ts +7 -0
- package/modules/component/snabbdom/modules/style.js +93 -0
- package/modules/component/snabbdom/snabbdom.bundle.d.ts +5 -0
- package/modules/component/snabbdom/snabbdom.bundle.js +13 -0
- package/modules/component/snabbdom/snabbdom.d.ts +6 -0
- package/modules/component/snabbdom/snabbdom.js +282 -0
- package/modules/component/snabbdom/thunk.d.ts +14 -0
- package/modules/component/snabbdom/thunk.js +50 -0
- package/modules/component/snabbdom/tovnode.d.ts +4 -0
- package/modules/component/snabbdom/tovnode.js +40 -0
- package/modules/component/snabbdom/vnode.d.ts +36 -0
- package/modules/component/snabbdom/vnode.js +12 -0
- package/modules/component/vdom.js +319 -0
- package/modules/demo-module.js +44 -0
- package/modules/device/device.d.ts +14 -0
- package/modules/device/device.js +44 -0
- package/modules/history/history.js +12 -0
- package/modules/resize/resize.d.ts +25 -0
- package/modules/resize/resize.js +62 -0
- package/modules/router/app-router-check.js +5 -0
- package/modules/router/async-component.js +27 -0
- package/modules/router/back.js +723 -0
- package/modules/router/clear-previous-history.js +31 -0
- package/modules/router/component-loader.js +200 -0
- package/modules/router/modal.js +223 -0
- package/modules/router/navigate.js +814 -0
- package/modules/router/process-route-queue.js +66 -0
- package/modules/router/redirect.js +38 -0
- package/modules/router/router-class.js +1268 -0
- package/modules/router/router.d.ts +354 -0
- package/modules/router/router.js +26 -0
- package/modules/router/swipe-back.js +589 -0
- package/modules/router/tab.js +230 -0
- package/modules/service-worker/service-worker.d.ts +38 -0
- package/modules/service-worker/service-worker.js +86 -0
- package/modules/store/create-store.js +138 -0
- package/modules/store/store.d.ts +40 -0
- package/modules/store/store.js +11 -0
- package/modules/support/support.d.ts +15 -0
- package/modules/support/support.js +7 -0
- package/modules/touch/touch.d.ts +60 -0
- package/modules/touch/touch.js +482 -0
- package/modules/utils/utils.d.ts +15 -0
- package/modules/utils/utils.js +10 -0
- package/package.json +458 -0
- package/shared/$jsx.js +21 -0
- package/shared/class.js +146 -0
- package/shared/constructor-methods.js +52 -0
- package/shared/dom7.js +7 -0
- package/shared/events-class.js +95 -0
- package/shared/get-device.d.ts +52 -0
- package/shared/get-device.js +147 -0
- package/shared/get-support.d.ts +12 -0
- package/shared/get-support.js +35 -0
- package/shared/history.js +171 -0
- package/shared/material-color-utils.js +1377 -0
- package/shared/material-colors.js +75 -0
- package/shared/modal-methods.js +80 -0
- package/shared/utils.d.ts +88 -0
- package/shared/utils.js +535 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/* === Popover === */
|
|
2
|
+
@import './popover-vars.less';
|
|
3
|
+
.popover-backdrop {
|
|
4
|
+
&-unique {
|
|
5
|
+
z-index: 13500;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.popover {
|
|
10
|
+
width: var(--f7-popover-width);
|
|
11
|
+
z-index: 13500;
|
|
12
|
+
margin: 0;
|
|
13
|
+
top: 0;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
position: absolute;
|
|
17
|
+
display: none;
|
|
18
|
+
transition-duration: 300ms;
|
|
19
|
+
background-color: var(--f7-popover-bg-color);
|
|
20
|
+
border-radius: var(--f7-popover-border-radius);
|
|
21
|
+
will-change: transform, opacity;
|
|
22
|
+
--f7-safe-area-top: 0px;
|
|
23
|
+
--f7-safe-area-left: 0px;
|
|
24
|
+
--f7-safe-area-right: 0px;
|
|
25
|
+
--f7-safe-area-bottom: 0px;
|
|
26
|
+
.list {
|
|
27
|
+
margin: 0;
|
|
28
|
+
ul {
|
|
29
|
+
background: none;
|
|
30
|
+
}
|
|
31
|
+
&:first-child ul {
|
|
32
|
+
.hairline-remove(top);
|
|
33
|
+
}
|
|
34
|
+
&:last-child ul {
|
|
35
|
+
.hairline-remove(bottom);
|
|
36
|
+
}
|
|
37
|
+
&:first-child {
|
|
38
|
+
ul {
|
|
39
|
+
border-radius: var(--f7-popover-border-radius) var(--f7-popover-border-radius) 0 0;
|
|
40
|
+
}
|
|
41
|
+
li:first-child,
|
|
42
|
+
li:first-child a,
|
|
43
|
+
li:first-child > label {
|
|
44
|
+
border-radius: var(--f7-popover-border-radius) var(--f7-popover-border-radius) 0 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
&:last-child {
|
|
48
|
+
ul {
|
|
49
|
+
border-radius: 0 0 var(--f7-popover-border-radius) var(--f7-popover-border-radius);
|
|
50
|
+
}
|
|
51
|
+
li:last-child,
|
|
52
|
+
li:last-child a,
|
|
53
|
+
li:last-child > label {
|
|
54
|
+
border-radius: 0 0 var(--f7-popover-border-radius) var(--f7-popover-border-radius);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&:first-child:last-child {
|
|
58
|
+
li:first-child:last-child,
|
|
59
|
+
li:first-child:last-child a,
|
|
60
|
+
li:first-child:last-child > label,
|
|
61
|
+
ul {
|
|
62
|
+
border-radius: var(--f7-popover-border-radius);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
+ .list {
|
|
66
|
+
margin-top: var(--f7-list-margin-vertical);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
&.modal-in {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
}
|
|
72
|
+
&.not-animated {
|
|
73
|
+
transition-duration: 0ms;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.popover,
|
|
77
|
+
.popover-backdrop {
|
|
78
|
+
transition-timing-function: var(--f7-popover-transition-timing-function);
|
|
79
|
+
}
|
|
80
|
+
.popover-inner {
|
|
81
|
+
.scrollable();
|
|
82
|
+
}
|
|
83
|
+
.popover-from-actions {
|
|
84
|
+
.item-link i.icon {
|
|
85
|
+
width: var(--f7-popover-actions-icon-size);
|
|
86
|
+
height: var(--f7-popover-actions-icon-size);
|
|
87
|
+
font-size: var(--f7-popover-actions-icon-size);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
.ios .popover-from-actions-strong {
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
}
|
|
93
|
+
.md .popover-from-actions-strong {
|
|
94
|
+
font-weight: 500;
|
|
95
|
+
}
|
|
96
|
+
.popover-from-actions-label {
|
|
97
|
+
line-height: 1.3;
|
|
98
|
+
position: relative;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
padding: var(--f7-actions-label-padding);
|
|
102
|
+
color: var(--f7-popover-actions-label-text-color);
|
|
103
|
+
font-size: var(--f7-actions-label-font-size);
|
|
104
|
+
justify-content: var(--f7-actions-label-justify-content);
|
|
105
|
+
.hairline(bottom, var(--f7-list-item-border-color));
|
|
106
|
+
&:last-child {
|
|
107
|
+
.hairline-remove(bottom);
|
|
108
|
+
}
|
|
109
|
+
.md & {
|
|
110
|
+
justify-content: center;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.popover-arrow {
|
|
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
|
+
}
|
|
162
|
+
}
|
|
163
|
+
.if-ios-theme({
|
|
164
|
+
@import './popover-ios.less';
|
|
165
|
+
});
|
|
166
|
+
.if-md-theme({
|
|
167
|
+
@import './popover-md.less';
|
|
168
|
+
});
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { getWindow, getDocument } from 'ssr-window';
|
|
2
|
+
import $ from '../../shared/dom7.js';
|
|
3
|
+
import { extend, now, nextTick } from '../../shared/utils.js';
|
|
4
|
+
import { getSupport } from '../../shared/get-support.js';
|
|
5
|
+
import { getDevice } from '../../shared/get-device.js';
|
|
6
|
+
import Modal from '../modal/modal-class.js';
|
|
7
|
+
class Popup extends Modal {
|
|
8
|
+
constructor(app, params) {
|
|
9
|
+
const extendedParams = extend({
|
|
10
|
+
on: {}
|
|
11
|
+
}, app.params.popup, params);
|
|
12
|
+
|
|
13
|
+
// Extends with open/close Modal methods;
|
|
14
|
+
super(app, extendedParams);
|
|
15
|
+
const popup = this;
|
|
16
|
+
const window = getWindow();
|
|
17
|
+
const document = getDocument();
|
|
18
|
+
const support = getSupport();
|
|
19
|
+
const device = getDevice();
|
|
20
|
+
popup.params = extendedParams;
|
|
21
|
+
|
|
22
|
+
// Find Element
|
|
23
|
+
let $el;
|
|
24
|
+
if (!popup.params.el) {
|
|
25
|
+
$el = $(popup.params.content).filter(node => node.nodeType === 1).eq(0);
|
|
26
|
+
} else {
|
|
27
|
+
$el = $(popup.params.el).eq(0);
|
|
28
|
+
}
|
|
29
|
+
if ($el && $el.length > 0 && $el[0].f7Modal) {
|
|
30
|
+
return $el[0].f7Modal;
|
|
31
|
+
}
|
|
32
|
+
if ($el.length === 0) {
|
|
33
|
+
return popup.destroy();
|
|
34
|
+
}
|
|
35
|
+
let $backdropEl;
|
|
36
|
+
if (popup.params.backdrop && popup.params.backdropEl) {
|
|
37
|
+
$backdropEl = $(popup.params.backdropEl);
|
|
38
|
+
} else if (popup.params.backdrop) {
|
|
39
|
+
if (popup.params.backdropUnique) {
|
|
40
|
+
$backdropEl = $('<div class="popup-backdrop popup-backdrop-unique"></div>');
|
|
41
|
+
popup.$containerEl.append($backdropEl);
|
|
42
|
+
} else {
|
|
43
|
+
$backdropEl = popup.$containerEl.children('.popup-backdrop');
|
|
44
|
+
}
|
|
45
|
+
if ($backdropEl.length === 0) {
|
|
46
|
+
$backdropEl = $('<div class="popup-backdrop"></div>');
|
|
47
|
+
popup.$containerEl.append($backdropEl);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
extend(popup, {
|
|
51
|
+
app,
|
|
52
|
+
push: $el.hasClass('popup-push') || popup.params.push,
|
|
53
|
+
$el,
|
|
54
|
+
el: $el[0],
|
|
55
|
+
$backdropEl,
|
|
56
|
+
backdropEl: $backdropEl && $backdropEl[0],
|
|
57
|
+
type: 'popup',
|
|
58
|
+
$htmlEl: $('html')
|
|
59
|
+
});
|
|
60
|
+
if (popup.params.push) {
|
|
61
|
+
$el.addClass('popup-push');
|
|
62
|
+
}
|
|
63
|
+
function handleClick(e) {
|
|
64
|
+
const target = e.target;
|
|
65
|
+
const $target = $(target);
|
|
66
|
+
const keyboardOpened = !device.desktop && device.cordova && (window.Keyboard && window.Keyboard.isVisible || window.cordova.plugins && window.cordova.plugins.Keyboard && window.cordova.plugins.Keyboard.isVisible);
|
|
67
|
+
if (keyboardOpened) return;
|
|
68
|
+
if ($target.closest(popup.el).length === 0) {
|
|
69
|
+
if (popup.params && popup.params.closeByBackdropClick && popup.params.backdrop && popup.backdropEl && popup.backdropEl === target) {
|
|
70
|
+
let needToClose = true;
|
|
71
|
+
popup.$el.nextAll('.popup.modal-in').each(popupEl => {
|
|
72
|
+
const popupInstance = popupEl.f7Modal;
|
|
73
|
+
if (!popupInstance) return;
|
|
74
|
+
if (popupInstance.params.closeByBackdropClick && popupInstance.params.backdrop && popupInstance.backdropEl === popup.backdropEl) {
|
|
75
|
+
needToClose = false;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
if (needToClose) {
|
|
79
|
+
popup.close();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function onKeyDown(e) {
|
|
85
|
+
const keyCode = e.keyCode;
|
|
86
|
+
if (keyCode === 27 && popup.params.closeOnEscape) {
|
|
87
|
+
popup.close();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
let pushOffset;
|
|
91
|
+
let isPush;
|
|
92
|
+
function pushViewScale(offset) {
|
|
93
|
+
return (app.height - offset * 2) / app.height;
|
|
94
|
+
}
|
|
95
|
+
let allowSwipeToClose = true;
|
|
96
|
+
let isTouched = false;
|
|
97
|
+
let startTouch;
|
|
98
|
+
let currentTouch;
|
|
99
|
+
let isScrolling;
|
|
100
|
+
let touchStartTime;
|
|
101
|
+
let touchesDiff;
|
|
102
|
+
let isMoved = false;
|
|
103
|
+
let pageContentEl;
|
|
104
|
+
let pageContentScrollTop;
|
|
105
|
+
let pageContentOffsetHeight;
|
|
106
|
+
let pageContentScrollHeight;
|
|
107
|
+
let popupHeight;
|
|
108
|
+
let $pushEl;
|
|
109
|
+
function handleTouchStart(e) {
|
|
110
|
+
if (isTouched || !allowSwipeToClose || !popup.params.swipeToClose || !e.isTrusted) return;
|
|
111
|
+
if (popup.params.swipeHandler && $(e.target).closest(popup.params.swipeHandler).length === 0) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if ($(e.target).closest('.sortable-handler').length > 0) return;
|
|
115
|
+
isTouched = true;
|
|
116
|
+
isMoved = false;
|
|
117
|
+
startTouch = {
|
|
118
|
+
x: e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX,
|
|
119
|
+
y: e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY
|
|
120
|
+
};
|
|
121
|
+
touchStartTime = now();
|
|
122
|
+
isScrolling = undefined;
|
|
123
|
+
if (!popup.params.swipeHandler && e.type === 'touchstart') {
|
|
124
|
+
pageContentEl = $(e.target).closest('.page-content')[0];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function handleTouchMove(e) {
|
|
128
|
+
if (!isTouched || !e.isTrusted) return;
|
|
129
|
+
currentTouch = {
|
|
130
|
+
x: e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX,
|
|
131
|
+
y: e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY
|
|
132
|
+
};
|
|
133
|
+
if (typeof isScrolling === 'undefined') {
|
|
134
|
+
isScrolling = !!(isScrolling || Math.abs(currentTouch.x - startTouch.x) > Math.abs(currentTouch.y - startTouch.y));
|
|
135
|
+
}
|
|
136
|
+
if (isScrolling) {
|
|
137
|
+
isTouched = false;
|
|
138
|
+
isMoved = false;
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
touchesDiff = startTouch.y - currentTouch.y;
|
|
142
|
+
if (isPush && pushOffset && touchesDiff > 0) {
|
|
143
|
+
touchesDiff = 0;
|
|
144
|
+
}
|
|
145
|
+
const direction = touchesDiff < 0 ? 'to-bottom' : 'to-top';
|
|
146
|
+
$el.transition(0);
|
|
147
|
+
if (typeof popup.params.swipeToClose === 'string' && direction !== popup.params.swipeToClose) {
|
|
148
|
+
$el.transform('');
|
|
149
|
+
$el.transition('');
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (!isMoved) {
|
|
153
|
+
if (isPush && pushOffset) {
|
|
154
|
+
popupHeight = $el[0].offsetHeight;
|
|
155
|
+
$pushEl = $el.prevAll('.popup.modal-in').eq(0);
|
|
156
|
+
if ($pushEl.length === 0) {
|
|
157
|
+
$pushEl = app.$el.children('.view, .views');
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
if (pageContentEl) {
|
|
161
|
+
pageContentScrollTop = pageContentEl.scrollTop;
|
|
162
|
+
pageContentScrollHeight = pageContentEl.scrollHeight;
|
|
163
|
+
pageContentOffsetHeight = pageContentEl.offsetHeight;
|
|
164
|
+
if (!(pageContentScrollHeight === pageContentOffsetHeight) && !(direction === 'to-bottom' && pageContentScrollTop === 0) && !(direction === 'to-top' && pageContentScrollTop === pageContentScrollHeight - pageContentOffsetHeight)) {
|
|
165
|
+
$el.transform('');
|
|
166
|
+
$el.transition('');
|
|
167
|
+
isTouched = false;
|
|
168
|
+
isMoved = false;
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
isMoved = true;
|
|
173
|
+
popup.emit('local::swipeStart popupSwipeStart', popup);
|
|
174
|
+
popup.$el.trigger('popup:swipestart');
|
|
175
|
+
} else {
|
|
176
|
+
popup.emit('local::swipeMove popupSwipeMove', popup);
|
|
177
|
+
popup.$el.trigger('popup:swipemove');
|
|
178
|
+
}
|
|
179
|
+
e.preventDefault();
|
|
180
|
+
if (isPush && pushOffset) {
|
|
181
|
+
const pushProgress = 1 - Math.abs(touchesDiff / popupHeight);
|
|
182
|
+
const scale = 1 - (1 - pushViewScale(pushOffset)) * pushProgress;
|
|
183
|
+
if ($pushEl.hasClass('popup')) {
|
|
184
|
+
if ($pushEl.hasClass('popup-push')) {
|
|
185
|
+
$pushEl.transition(0).forEach(el => {
|
|
186
|
+
el.style.setProperty('transform', `translate3d(0, calc(-1 * ${pushProgress} * (var(--f7-popup-push-offset) + 10px)) , 0px) scale(${scale})`, 'important');
|
|
187
|
+
});
|
|
188
|
+
} else {
|
|
189
|
+
$pushEl.transition(0).forEach(el => {
|
|
190
|
+
el.style.setProperty('transform', `translate3d(0, 0px , 0px) scale(${scale})`, 'important');
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
} else {
|
|
194
|
+
$pushEl.transition(0).forEach(el => {
|
|
195
|
+
el.style.setProperty('transform', `translate3d(0,0,0) scale(${scale})`, 'important');
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
$el.transition(0).transform(`translate3d(0,${-touchesDiff}px,0)`);
|
|
200
|
+
}
|
|
201
|
+
function handleTouchEnd(e) {
|
|
202
|
+
if (!e.isTrusted) return;
|
|
203
|
+
isTouched = false;
|
|
204
|
+
if (!isMoved) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
popup.emit('local::swipeEnd popupSwipeEnd', popup);
|
|
208
|
+
popup.$el.trigger('popup:swipeend');
|
|
209
|
+
isMoved = false;
|
|
210
|
+
allowSwipeToClose = false;
|
|
211
|
+
$el.transition('');
|
|
212
|
+
if (isPush && pushOffset) {
|
|
213
|
+
$pushEl.transition('').transform('');
|
|
214
|
+
}
|
|
215
|
+
const direction = touchesDiff <= 0 ? 'to-bottom' : 'to-top';
|
|
216
|
+
if (typeof popup.params.swipeToClose === 'string' && direction !== popup.params.swipeToClose) {
|
|
217
|
+
$el.transform('');
|
|
218
|
+
allowSwipeToClose = true;
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
const diff = Math.abs(touchesDiff);
|
|
222
|
+
const timeDiff = new Date().getTime() - touchStartTime;
|
|
223
|
+
if (timeDiff < 300 && diff > 20 || timeDiff >= 300 && diff > 100) {
|
|
224
|
+
nextTick(() => {
|
|
225
|
+
if (direction === 'to-bottom') {
|
|
226
|
+
$el.addClass('swipe-close-to-bottom');
|
|
227
|
+
} else {
|
|
228
|
+
$el.addClass('swipe-close-to-top');
|
|
229
|
+
}
|
|
230
|
+
$el.transform('');
|
|
231
|
+
popup.emit('local::swipeclose popupSwipeClose', popup);
|
|
232
|
+
popup.$el.trigger('popup:swipeclose');
|
|
233
|
+
popup.close();
|
|
234
|
+
allowSwipeToClose = true;
|
|
235
|
+
});
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
allowSwipeToClose = true;
|
|
239
|
+
$el.transform('');
|
|
240
|
+
}
|
|
241
|
+
const passive = support.passiveListener ? {
|
|
242
|
+
passive: true
|
|
243
|
+
} : false;
|
|
244
|
+
if (popup.params.swipeToClose) {
|
|
245
|
+
$el.on(app.touchEvents.start, handleTouchStart, passive);
|
|
246
|
+
app.on('touchmove', handleTouchMove);
|
|
247
|
+
app.on('touchend:passive', handleTouchEnd);
|
|
248
|
+
popup.once('popupDestroy', () => {
|
|
249
|
+
$el.off(app.touchEvents.start, handleTouchStart, passive);
|
|
250
|
+
app.off('touchmove', handleTouchMove);
|
|
251
|
+
app.off('touchend:passive', handleTouchEnd);
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
let hasPreviousPushPopup;
|
|
255
|
+
const updatePushOffset = () => {
|
|
256
|
+
const wasPush = isPush;
|
|
257
|
+
if (popup.push) {
|
|
258
|
+
isPush = popup.push && (app.width < 630 || app.height < 630 || $el.hasClass('popup-tablet-fullscreen'));
|
|
259
|
+
}
|
|
260
|
+
if (isPush && !wasPush) {
|
|
261
|
+
// eslint-disable-next-line
|
|
262
|
+
setPushOffset();
|
|
263
|
+
} else if (isPush && wasPush) {
|
|
264
|
+
popup.$htmlEl[0].style.setProperty('--f7-popup-push-scale', pushViewScale(pushOffset));
|
|
265
|
+
} else if (!isPush && wasPush) {
|
|
266
|
+
popup.$htmlEl.removeClass('with-modal-popup-push');
|
|
267
|
+
popup.$htmlEl[0].style.removeProperty('--f7-popup-push-scale');
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
const setPushOffset = () => {
|
|
271
|
+
app.off('resize', updatePushOffset);
|
|
272
|
+
if (popup.push) {
|
|
273
|
+
isPush = popup.push && (app.width < 630 || app.height < 630 || $el.hasClass('popup-tablet-fullscreen'));
|
|
274
|
+
}
|
|
275
|
+
if (isPush) {
|
|
276
|
+
pushOffset = parseInt($el.css('--f7-popup-push-offset'), 10);
|
|
277
|
+
if (Number.isNaN(pushOffset)) {
|
|
278
|
+
pushOffset = 0;
|
|
279
|
+
}
|
|
280
|
+
if (!pushOffset) pushOffset = app.theme === 'ios' ? 44 : 48;
|
|
281
|
+
popup.$htmlEl[0].style.setProperty('--f7-popup-push-offset', `${pushOffset}px`);
|
|
282
|
+
$el.addClass('popup-push');
|
|
283
|
+
popup.$htmlEl.addClass('with-modal-popup-push');
|
|
284
|
+
popup.$htmlEl[0].style.setProperty('--f7-popup-push-scale', pushViewScale(pushOffset));
|
|
285
|
+
}
|
|
286
|
+
app.on('resize', updatePushOffset);
|
|
287
|
+
};
|
|
288
|
+
popup.on('open', () => {
|
|
289
|
+
hasPreviousPushPopup = false;
|
|
290
|
+
if (popup.params.closeOnEscape) {
|
|
291
|
+
$(document).on('keydown', onKeyDown);
|
|
292
|
+
}
|
|
293
|
+
$el.prevAll('.popup.modal-in').addClass('popup-behind');
|
|
294
|
+
setPushOffset();
|
|
295
|
+
});
|
|
296
|
+
popup.on('opened', () => {
|
|
297
|
+
$el.removeClass('swipe-close-to-bottom swipe-close-to-top');
|
|
298
|
+
if (popup.params.closeByBackdropClick) {
|
|
299
|
+
app.on('click', handleClick);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
popup.on('close', () => {
|
|
303
|
+
hasPreviousPushPopup = popup.$el.prevAll('.popup-push.modal-in').length > 0;
|
|
304
|
+
if (popup.params.closeOnEscape) {
|
|
305
|
+
$(document).off('keydown', onKeyDown);
|
|
306
|
+
}
|
|
307
|
+
if (popup.params.closeByBackdropClick) {
|
|
308
|
+
app.off('click', handleClick);
|
|
309
|
+
}
|
|
310
|
+
$el.prevAll('.popup.modal-in').eq(0).removeClass('popup-behind');
|
|
311
|
+
if (isPush && pushOffset && !hasPreviousPushPopup) {
|
|
312
|
+
popup.$htmlEl.removeClass('with-modal-popup-push');
|
|
313
|
+
popup.$htmlEl.addClass('with-modal-popup-push-closing');
|
|
314
|
+
}
|
|
315
|
+
app.off('resize', updatePushOffset);
|
|
316
|
+
});
|
|
317
|
+
popup.on('closed', () => {
|
|
318
|
+
$el.removeClass('popup-behind');
|
|
319
|
+
if (isPush && pushOffset && !hasPreviousPushPopup) {
|
|
320
|
+
popup.$htmlEl.removeClass('with-modal-popup-push-closing');
|
|
321
|
+
popup.$htmlEl[0].style.removeProperty('--f7-popup-push-scale');
|
|
322
|
+
popup.$htmlEl[0].style.removeProperty('--f7-popup-push-offset');
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
$el[0].f7Modal = popup;
|
|
326
|
+
return popup;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
export default Popup;
|
|
@@ -0,0 +1 @@
|
|
|
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)}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}}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--f7-popup-border-radius: 0px;
|
|
3
|
+
--f7-popup-tablet-width: 630px;
|
|
4
|
+
--f7-popup-tablet-height: 630px;
|
|
5
|
+
--f7-popup-push-offset: var(--f7-safe-area-top);
|
|
6
|
+
/*
|
|
7
|
+
--f7-popup-tablet-border-radius: var(--f7-popup-border-radius);
|
|
8
|
+
*/
|
|
9
|
+
}
|
|
10
|
+
.ios-vars({
|
|
11
|
+
--f7-popup-tablet-border-radius: 5px;
|
|
12
|
+
--f7-popup-transition-duration: 400ms;
|
|
13
|
+
--f7-popup-transition-timing-function: initial;
|
|
14
|
+
--f7-popup-push-border-radius: 10px;
|
|
15
|
+
});
|
|
16
|
+
.md-vars({
|
|
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;
|
|
21
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
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)}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}}
|