framework7 7.0.9 → 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
package/components/grid/grid.js
CHANGED
|
@@ -1,227 +1,3 @@
|
|
|
1
|
-
import { getDocument } from 'ssr-window';
|
|
2
|
-
import $ from '../../shared/dom7.js';
|
|
3
|
-
import { extend } from '../../shared/utils.js';
|
|
4
|
-
|
|
5
|
-
function getElMinSize(dimension, $el) {
|
|
6
|
-
let minSize = $el.css(`min-${dimension}`);
|
|
7
|
-
|
|
8
|
-
if (minSize === 'auto' || minSize === 'none') {
|
|
9
|
-
minSize = 0;
|
|
10
|
-
} else if (minSize.indexOf('px') >= 0) {
|
|
11
|
-
minSize = parseFloat(minSize);
|
|
12
|
-
} else if (minSize.indexOf('%') >= 0) {
|
|
13
|
-
minSize = $el.parent()[0][dimension === 'height' ? 'offsetHeight' : 'offsetWidth'] * parseFloat(minSize) / 100;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return minSize;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function getElMaxSize(dimension, $el) {
|
|
20
|
-
let maxSize = $el.css(`max-${dimension}`);
|
|
21
|
-
|
|
22
|
-
if (maxSize === 'auto' || maxSize === 'none') {
|
|
23
|
-
maxSize = null;
|
|
24
|
-
} else if (maxSize.indexOf('px') >= 0) {
|
|
25
|
-
maxSize = parseFloat(maxSize);
|
|
26
|
-
} else if (maxSize.indexOf('%') >= 0) {
|
|
27
|
-
maxSize = $el.parent()[0][dimension === 'height' ? 'offsetHeight' : 'offsetWidth'] * parseFloat(maxSize) / 100;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return maxSize;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const Grid = {
|
|
34
|
-
init() {
|
|
35
|
-
const app = this;
|
|
36
|
-
let isTouched;
|
|
37
|
-
let isMoved;
|
|
38
|
-
let touchStartX;
|
|
39
|
-
let touchStartY;
|
|
40
|
-
let $resizeHandlerEl;
|
|
41
|
-
let $prevResizableEl;
|
|
42
|
-
let $nextResizableEl;
|
|
43
|
-
let prevElSize;
|
|
44
|
-
let prevElMinSize;
|
|
45
|
-
let prevElMaxSize;
|
|
46
|
-
let nextElSize;
|
|
47
|
-
let nextElMinSize;
|
|
48
|
-
let nextElMaxSize;
|
|
49
|
-
let parentSize;
|
|
50
|
-
let itemsInFlow;
|
|
51
|
-
let gapSize;
|
|
52
|
-
let isScrolling;
|
|
53
|
-
|
|
54
|
-
function handleTouchStart(e) {
|
|
55
|
-
if (isTouched || isMoved) return;
|
|
56
|
-
$resizeHandlerEl = $(e.target).closest('.resize-handler');
|
|
57
|
-
touchStartX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
|
|
58
|
-
touchStartY = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
|
|
59
|
-
isTouched = true;
|
|
60
|
-
$prevResizableEl = undefined;
|
|
61
|
-
$nextResizableEl = undefined;
|
|
62
|
-
isScrolling = undefined;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function handleTouchMove(e) {
|
|
66
|
-
if (!isTouched) return;
|
|
67
|
-
const isRow = $resizeHandlerEl.parent('.row').length === 1;
|
|
68
|
-
const sizeProp = isRow ? 'height' : 'width';
|
|
69
|
-
const getSizeProp = isRow ? 'offsetHeight' : 'offsetWidth';
|
|
70
|
-
|
|
71
|
-
if (!isMoved) {
|
|
72
|
-
$prevResizableEl = $resizeHandlerEl.parent(isRow ? '.row' : '.col');
|
|
73
|
-
|
|
74
|
-
if ($prevResizableEl.length && (!$prevResizableEl.hasClass('resizable') || $prevResizableEl.hasClass('resizable-fixed'))) {
|
|
75
|
-
$prevResizableEl = $prevResizableEl.prevAll('.resizable:not(.resizable-fixed)').eq(0);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
$nextResizableEl = $prevResizableEl.next(isRow ? '.row' : '.col');
|
|
79
|
-
|
|
80
|
-
if ($nextResizableEl.length && (!$nextResizableEl.hasClass('resizable') || $nextResizableEl.hasClass('resizable-fixed'))) {
|
|
81
|
-
$nextResizableEl = $nextResizableEl.nextAll('.resizable:not(.resizable-fixed)').eq(0);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if ($prevResizableEl.length) {
|
|
85
|
-
prevElSize = $prevResizableEl[0][getSizeProp];
|
|
86
|
-
prevElMinSize = getElMinSize(sizeProp, $prevResizableEl);
|
|
87
|
-
prevElMaxSize = getElMaxSize(sizeProp, $prevResizableEl);
|
|
88
|
-
parentSize = $prevResizableEl.parent()[0][getSizeProp];
|
|
89
|
-
itemsInFlow = $prevResizableEl.parent().children(isRow ? '.row' : '[class*="col-"], .col').length;
|
|
90
|
-
gapSize = parseFloat($prevResizableEl.css(isRow ? '--f7-grid-row-gap' : '--f7-grid-gap'));
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
if ($nextResizableEl.length) {
|
|
94
|
-
nextElSize = $nextResizableEl[0][getSizeProp];
|
|
95
|
-
nextElMinSize = getElMinSize(sizeProp, $nextResizableEl);
|
|
96
|
-
nextElMaxSize = getElMaxSize(sizeProp, $nextResizableEl);
|
|
97
|
-
|
|
98
|
-
if (!$prevResizableEl.length) {
|
|
99
|
-
parentSize = $nextResizableEl.parent()[0][getSizeProp];
|
|
100
|
-
itemsInFlow = $nextResizableEl.parent().children(isRow ? '.row' : '[class*="col-"], .col').length;
|
|
101
|
-
gapSize = parseFloat($nextResizableEl.css(isRow ? '--f7-grid-row-gap' : '--f7-grid-gap'));
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
isMoved = true;
|
|
107
|
-
const touchCurrentX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
|
|
108
|
-
const touchCurrentY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
|
|
109
|
-
|
|
110
|
-
if (typeof isScrolling === 'undefined' && !isRow) {
|
|
111
|
-
isScrolling = !!(isScrolling || Math.abs(touchCurrentY - touchStartY) > Math.abs(touchCurrentX - touchStartX));
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
if (isScrolling) {
|
|
115
|
-
isTouched = false;
|
|
116
|
-
isMoved = false;
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
const isAbsolute = $prevResizableEl.hasClass('resizable-absolute') || $nextResizableEl.hasClass('resizable-absolute');
|
|
121
|
-
const resizeNextEl = !isRow || isRow && !isAbsolute;
|
|
122
|
-
|
|
123
|
-
if (resizeNextEl && !$nextResizableEl.length || !$prevResizableEl.length) {
|
|
124
|
-
isTouched = false;
|
|
125
|
-
isMoved = false;
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
e.preventDefault();
|
|
130
|
-
let diff = isRow ? touchCurrentY - touchStartY : touchCurrentX - touchStartX;
|
|
131
|
-
let prevElNewSize;
|
|
132
|
-
let nextElNewSize;
|
|
133
|
-
|
|
134
|
-
if ($prevResizableEl.length) {
|
|
135
|
-
prevElNewSize = prevElSize + diff;
|
|
136
|
-
|
|
137
|
-
if (prevElNewSize < prevElMinSize) {
|
|
138
|
-
prevElNewSize = prevElMinSize;
|
|
139
|
-
diff = prevElNewSize - prevElSize;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
if (prevElMaxSize && prevElNewSize > prevElMaxSize) {
|
|
143
|
-
prevElNewSize = prevElMaxSize;
|
|
144
|
-
diff = prevElNewSize - prevElSize;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
if ($nextResizableEl.length && resizeNextEl) {
|
|
149
|
-
nextElNewSize = nextElSize - diff;
|
|
150
|
-
|
|
151
|
-
if (nextElNewSize < nextElMinSize) {
|
|
152
|
-
nextElNewSize = nextElMinSize;
|
|
153
|
-
diff = nextElSize - nextElNewSize;
|
|
154
|
-
prevElNewSize = prevElSize + diff;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
if (nextElMaxSize && nextElNewSize > nextElMaxSize) {
|
|
158
|
-
nextElNewSize = nextElMaxSize;
|
|
159
|
-
diff = nextElSize - nextElNewSize;
|
|
160
|
-
prevElNewSize = prevElSize + diff;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
if (isAbsolute) {
|
|
165
|
-
$prevResizableEl[0].style[sizeProp] = `${prevElNewSize}px`;
|
|
166
|
-
|
|
167
|
-
if (resizeNextEl) {
|
|
168
|
-
$nextResizableEl[0].style[sizeProp] = `${nextElNewSize}px`;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
$prevResizableEl.trigger('grid:resize');
|
|
172
|
-
$nextResizableEl.trigger('grid:resize');
|
|
173
|
-
app.emit('gridResize', $prevResizableEl[0]);
|
|
174
|
-
app.emit('gridResize', $nextResizableEl[0]);
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
const gapAddSize = (itemsInFlow - 1) * gapSize / itemsInFlow;
|
|
179
|
-
const gapAddSizeCSS = isRow ? `${itemsInFlow - 1} * var(--f7-grid-row-gap) / ${itemsInFlow}` : '(var(--f7-cols-per-row) - 1) * var(--f7-grid-gap) / var(--f7-cols-per-row)';
|
|
180
|
-
const prevElNewSizeNormalized = prevElNewSize + gapAddSize;
|
|
181
|
-
const nextElNewSizeNormalized = nextElNewSize + gapAddSize;
|
|
182
|
-
$prevResizableEl[0].style[sizeProp] = `calc(${prevElNewSizeNormalized / parentSize * 100}% - ${gapAddSizeCSS})`;
|
|
183
|
-
$nextResizableEl[0].style[sizeProp] = `calc(${nextElNewSizeNormalized / parentSize * 100}% - ${gapAddSizeCSS})`;
|
|
184
|
-
$prevResizableEl.trigger('grid:resize');
|
|
185
|
-
$nextResizableEl.trigger('grid:resize');
|
|
186
|
-
app.emit('gridResize', $prevResizableEl[0]);
|
|
187
|
-
app.emit('gridResize', $nextResizableEl[0]);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function handleTouchEnd() {
|
|
191
|
-
if (!isTouched) return;
|
|
192
|
-
|
|
193
|
-
if (!isMoved) {
|
|
194
|
-
isTouched = false;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
isTouched = false;
|
|
198
|
-
isMoved = false;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
const document = getDocument();
|
|
202
|
-
$(document).on(app.touchEvents.start, '.col > .resize-handler, .row > .resize-handler', handleTouchStart);
|
|
203
|
-
app.on('touchmove', handleTouchMove);
|
|
204
|
-
app.on('touchend', handleTouchEnd);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
};
|
|
208
1
|
export default {
|
|
209
|
-
name: 'grid'
|
|
210
|
-
|
|
211
|
-
create() {
|
|
212
|
-
const app = this;
|
|
213
|
-
extend(app, {
|
|
214
|
-
grid: {
|
|
215
|
-
init: Grid.init.bind(app)
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
on: {
|
|
221
|
-
init() {
|
|
222
|
-
const app = this;
|
|
223
|
-
app.grid.init();
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
}
|
|
2
|
+
name: 'grid'
|
|
227
3
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function framework7ComponentLoader(e,
|
|
1
|
+
(function framework7ComponentLoader(e,o){void 0===o&&(o=!0);e.$,e.utils,e.getDevice,e.getSupport,e.Class,e.Modal,e.ConstructorMethods,e.ModalMethods,e.$jsx;var t={name:"grid"};if(o){if(e.prototype.modules&&e.prototype.modules[t.name])return;e.use(t),e.instance&&(e.instance.useModuleParams(t,e.instance.params),e.instance.useModule(t))}return t}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))
|
|
@@ -1,200 +1,73 @@
|
|
|
1
1
|
/* === Grid === */
|
|
2
2
|
@import './grid-vars.less';
|
|
3
3
|
|
|
4
|
-
@cols:
|
|
5
|
-
100;
|
|
4
|
+
@cols: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20;
|
|
6
5
|
|
|
7
|
-
.
|
|
8
|
-
display:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
align-items: flex-start;
|
|
12
|
-
--f7-cols-per-row: 1;
|
|
13
|
-
+ .row {
|
|
14
|
-
margin-top: var(--f7-grid-row-gap);
|
|
6
|
+
.grid {
|
|
7
|
+
display: grid;
|
|
8
|
+
&.grid-gap {
|
|
9
|
+
gap: var(--f7-grid-gap);
|
|
15
10
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
(100% - var(--f7-grid-gap) * (var(--f7-cols-per-row) - 1)) / var(--f7-cols-per-row)
|
|
21
|
-
);
|
|
22
|
-
&.resizable {
|
|
23
|
-
position: relative;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
&.resizable {
|
|
27
|
-
position: relative;
|
|
11
|
+
}
|
|
12
|
+
each(@cols, {
|
|
13
|
+
.grid-cols-@{value} {
|
|
14
|
+
grid-template-columns: repeat(@value, minmax(0,1fr));
|
|
28
15
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
});
|
|
17
|
+
each(@cols, {
|
|
18
|
+
.grid-rows-@{value} {
|
|
19
|
+
grid-template-rows: repeat(@value, minmax(0,1fr));
|
|
32
20
|
}
|
|
33
|
-
|
|
21
|
+
});
|
|
22
|
+
@media (min-width: @breakpoints[xsmall]) {
|
|
34
23
|
each(@cols, {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
24
|
+
.xsmall-grid-cols-@{value} {
|
|
25
|
+
grid-template-columns: repeat(@value, minmax(0,1fr));
|
|
26
|
+
}
|
|
27
|
+
.xsmall-grid-rows-@{value} {
|
|
28
|
+
grid-template-rows: repeat(@value, minmax(0,1fr));
|
|
39
29
|
}
|
|
40
30
|
});
|
|
31
|
+
}
|
|
32
|
+
@media (min-width: @breakpoints[small]) {
|
|
41
33
|
each(@cols, {
|
|
42
|
-
.
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
.small-grid-cols-@{value} {
|
|
35
|
+
grid-template-columns: repeat(@value, minmax(0,1fr));
|
|
36
|
+
}
|
|
37
|
+
.small-grid-rows-@{value} {
|
|
38
|
+
grid-template-rows: repeat(@value, minmax(0,1fr));
|
|
45
39
|
}
|
|
46
40
|
});
|
|
47
|
-
|
|
48
|
-
@media (min-width: @breakpoints[xsmall]) {
|
|
49
|
-
each(@cols, {
|
|
50
|
-
@className: floor((@value));
|
|
51
|
-
@n: (100 / @value);
|
|
52
|
-
.xsmall-@{className} {
|
|
53
|
-
--f7-cols-per-row: @n;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
each(@cols, {
|
|
57
|
-
.xsmall-auto:nth-last-of-type(@{index}),
|
|
58
|
-
.xsmall-auto:nth-last-of-type(@{index}) ~ .xsmall-auto {
|
|
59
|
-
--f7-cols-per-row: @index;
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
@media (min-width: @breakpoints[small]) {
|
|
64
|
-
each(@cols, {
|
|
65
|
-
@className: floor((@value));
|
|
66
|
-
@n: (100 / @value);
|
|
67
|
-
.small-@{className} {
|
|
68
|
-
--f7-cols-per-row: @n;
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
each(@cols, {
|
|
72
|
-
.small-auto:nth-last-of-type(@{index}),
|
|
73
|
-
.small-auto:nth-last-of-type(@{index}) ~ .small-auto {
|
|
74
|
-
--f7-cols-per-row: @index;
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
@media (min-width: @breakpoints[medium]) {
|
|
79
|
-
each(@cols, {
|
|
80
|
-
@className: floor((@value));
|
|
81
|
-
@n: (100 / @value);
|
|
82
|
-
.medium-@{className} {
|
|
83
|
-
--f7-cols-per-row: @n;
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
each(@cols, {
|
|
87
|
-
.medium-auto:nth-last-of-type(@{index}),
|
|
88
|
-
.medium-auto:nth-last-of-type(@{index}) ~ .medium-auto {
|
|
89
|
-
--f7-cols-per-row: @index;
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
@media (min-width: @breakpoints[large]) {
|
|
94
|
-
each(@cols, {
|
|
95
|
-
@className: floor((@value));
|
|
96
|
-
@n: (100 / @value);
|
|
97
|
-
.large-@{className} {
|
|
98
|
-
--f7-cols-per-row: @n;
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
each(@cols, {
|
|
102
|
-
.large-auto:nth-last-of-type(@{index}),
|
|
103
|
-
.large-auto:nth-last-of-type(@{index}) ~ .large-auto {
|
|
104
|
-
--f7-cols-per-row: @index;
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
@media (min-width: @breakpoints[xlarge]) {
|
|
109
|
-
each(@cols, {
|
|
110
|
-
@className: floor((@value));
|
|
111
|
-
@n: (100 / @value);
|
|
112
|
-
.xlarge-@{className} {
|
|
113
|
-
--f7-cols-per-row: @n;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
each(@cols, {
|
|
117
|
-
.xlarge-auto:nth-last-of-type(@{index}),
|
|
118
|
-
.xlarge-auto:nth-last-of-type(@{index}) ~ .xlarge-auto {
|
|
119
|
-
--f7-cols-per-row: @index;
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
.row .resize-handler {
|
|
125
|
-
position: absolute;
|
|
126
|
-
user-select: none;
|
|
127
|
-
z-index: 100;
|
|
128
|
-
&:before {
|
|
129
|
-
content: '';
|
|
130
|
-
position: absolute;
|
|
131
|
-
}
|
|
132
|
-
&:after {
|
|
133
|
-
content: '';
|
|
134
|
-
position: absolute;
|
|
135
|
-
border-radius: 4px;
|
|
136
|
-
background: var(--f7-grid-resize-handler-bg-color);
|
|
137
|
-
}
|
|
138
41
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
height: 12px;
|
|
149
|
-
width: 100%;
|
|
150
|
-
min-height: var(--f7-grid-row-gap);
|
|
151
|
-
transform: translateY(-50%);
|
|
152
|
-
}
|
|
153
|
-
&:after {
|
|
154
|
-
height: 4px;
|
|
155
|
-
margin-top: -2px;
|
|
156
|
-
width: 80%;
|
|
157
|
-
max-width: 20px;
|
|
158
|
-
left: 50%;
|
|
159
|
-
top: 50%;
|
|
160
|
-
transform: translateX(-50%);
|
|
161
|
-
}
|
|
42
|
+
@media (min-width: @breakpoints[medium]) {
|
|
43
|
+
each(@cols, {
|
|
44
|
+
.medium-grid-cols-@{value} {
|
|
45
|
+
grid-template-columns: repeat(@value, minmax(0,1fr));
|
|
46
|
+
}
|
|
47
|
+
.medium-grid-rows-@{value} {
|
|
48
|
+
grid-template-rows: repeat(@value, minmax(0,1fr));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
162
51
|
}
|
|
163
|
-
[
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
top: 0;
|
|
173
|
-
height: 100%;
|
|
174
|
-
width: 12px;
|
|
175
|
-
min-width: var(--f7-grid-gap);
|
|
176
|
-
transform: translateX(-50%);
|
|
177
|
-
}
|
|
178
|
-
&:after {
|
|
179
|
-
width: 4px;
|
|
180
|
-
margin-left: -2px;
|
|
181
|
-
height: 80%;
|
|
182
|
-
max-height: 20px;
|
|
183
|
-
border-radius: 4px;
|
|
184
|
-
left: 50%;
|
|
185
|
-
top: 50%;
|
|
186
|
-
transform: translateY(-50%);
|
|
187
|
-
}
|
|
52
|
+
@media (min-width: @breakpoints[large]) {
|
|
53
|
+
each(@cols, {
|
|
54
|
+
.large-grid-cols-@{value} {
|
|
55
|
+
grid-template-columns: repeat(@value, minmax(0,1fr));
|
|
56
|
+
}
|
|
57
|
+
.large-grid-rows-@{value} {
|
|
58
|
+
grid-template-rows: repeat(@value, minmax(0,1fr));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
188
61
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
62
|
+
@media (min-width: @breakpoints[xlarge]) {
|
|
63
|
+
each(@cols, {
|
|
64
|
+
.xlarge-grid-cols-@{value} {
|
|
65
|
+
grid-template-columns: repeat(@value, minmax(0,1fr));
|
|
66
|
+
}
|
|
67
|
+
.xlarge-grid-rows-@{value} {
|
|
68
|
+
grid-template-rows: repeat(@value, minmax(0,1fr));
|
|
69
|
+
}
|
|
70
|
+
});
|
|
198
71
|
}
|
|
199
72
|
|
|
200
73
|
.if-ios-theme({
|
|
@@ -203,6 +76,3 @@
|
|
|
203
76
|
.if-md-theme({
|
|
204
77
|
@import './grid-md.less';
|
|
205
78
|
});
|
|
206
|
-
.if-aurora-theme({
|
|
207
|
-
@import './grid-aurora.less';
|
|
208
|
-
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.infinite-scroll-preloader{margin-left:auto;margin-right:auto;text-align:center}.infinite-scroll-preloader.preloader{display:block}.ios .infinite-scroll-preloader{margin-top:35px;margin-bottom:35px}.ios .infinite-scroll-preloader .preloader,.ios .infinite-scroll-preloader.preloader{width:27px;height:27px}.md .infinite-scroll-preloader{margin-top:32px;margin-bottom:32px}
|
|
1
|
+
.infinite-scroll-preloader{margin-left:auto;margin-right:auto;text-align:center}.infinite-scroll-preloader.preloader{display:block}.ios .infinite-scroll-preloader{margin-top:35px;margin-bottom:35px}.ios .infinite-scroll-preloader .preloader,.ios .infinite-scroll-preloader.preloader{width:27px;height:27px}.md .infinite-scroll-preloader{margin-top:32px;margin-bottom:32px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.infinite-scroll-preloader{margin-left:auto;margin-right:auto;text-align:center}.infinite-scroll-preloader.preloader{display:block}.ios .infinite-scroll-preloader{margin-top:35px;margin-bottom:35px}.ios .infinite-scroll-preloader .preloader,.ios .infinite-scroll-preloader.preloader{width:27px;height:27px}.md .infinite-scroll-preloader{margin-top:32px;margin-bottom:32px}
|
|
1
|
+
.infinite-scroll-preloader{margin-left:auto;margin-right:auto;text-align:center}.infinite-scroll-preloader.preloader{display:block}.ios .infinite-scroll-preloader{margin-top:35px;margin-bottom:35px}.ios .infinite-scroll-preloader .preloader,.ios .infinite-scroll-preloader.preloader{width:27px;height:27px}.md .infinite-scroll-preloader{margin-top:32px;margin-bottom:32px}
|
|
@@ -12,13 +12,10 @@ const InfiniteScroll = {
|
|
|
12
12
|
let virtualList;
|
|
13
13
|
const onTop = $el.hasClass('infinite-scroll-top');
|
|
14
14
|
if (!distance) distance = 50;
|
|
15
|
-
|
|
16
15
|
if (typeof distance === 'string' && distance.indexOf('%') >= 0) {
|
|
17
16
|
distance = parseInt(distance, 10) / 100 * height;
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
if (distance > height) distance = height;
|
|
21
|
-
|
|
22
19
|
if (onTop) {
|
|
23
20
|
if (scrollTop < distance) {
|
|
24
21
|
$el.trigger('infinite', e);
|
|
@@ -27,31 +24,25 @@ const InfiniteScroll = {
|
|
|
27
24
|
} else if (scrollTop + height >= scrollHeight - distance) {
|
|
28
25
|
if (virtualListContainer.length > 0) {
|
|
29
26
|
virtualList = virtualListContainer.eq(-1)[0].f7VirtualList;
|
|
30
|
-
|
|
31
27
|
if (virtualList && !virtualList.reachEnd && !virtualList.params.updatableScroll) {
|
|
32
28
|
return;
|
|
33
29
|
}
|
|
34
30
|
}
|
|
35
|
-
|
|
36
31
|
$el.trigger('infinite', e);
|
|
37
32
|
app.emit('infinite', $el[0], e);
|
|
38
33
|
}
|
|
39
34
|
},
|
|
40
|
-
|
|
41
35
|
create(el) {
|
|
42
36
|
const $el = $(el);
|
|
43
37
|
const app = this;
|
|
44
|
-
|
|
45
38
|
function scrollHandler(e) {
|
|
46
39
|
app.infiniteScroll.handle(this, e);
|
|
47
40
|
}
|
|
48
|
-
|
|
49
41
|
$el.each(element => {
|
|
50
42
|
element.f7InfiniteScrollHandler = scrollHandler;
|
|
51
43
|
element.addEventListener('scroll', element.f7InfiniteScrollHandler);
|
|
52
44
|
});
|
|
53
45
|
},
|
|
54
|
-
|
|
55
46
|
destroy(el) {
|
|
56
47
|
const $el = $(el);
|
|
57
48
|
$el.each(element => {
|
|
@@ -59,18 +50,15 @@ const InfiniteScroll = {
|
|
|
59
50
|
delete element.f7InfiniteScrollHandler;
|
|
60
51
|
});
|
|
61
52
|
}
|
|
62
|
-
|
|
63
53
|
};
|
|
64
54
|
export default {
|
|
65
55
|
name: 'infiniteScroll',
|
|
66
|
-
|
|
67
56
|
create() {
|
|
68
57
|
const app = this;
|
|
69
58
|
bindMethods(app, {
|
|
70
59
|
infiniteScroll: InfiniteScroll
|
|
71
60
|
});
|
|
72
61
|
},
|
|
73
|
-
|
|
74
62
|
on: {
|
|
75
63
|
tabMounted(tabEl) {
|
|
76
64
|
const app = this;
|
|
@@ -81,7 +69,6 @@ export default {
|
|
|
81
69
|
app.infiniteScroll.create(el);
|
|
82
70
|
});
|
|
83
71
|
},
|
|
84
|
-
|
|
85
72
|
tabBeforeRemove(tabEl) {
|
|
86
73
|
const $tabEl = $(tabEl);
|
|
87
74
|
const app = this;
|
|
@@ -91,20 +78,17 @@ export default {
|
|
|
91
78
|
app.infiniteScroll.destroy(el);
|
|
92
79
|
});
|
|
93
80
|
},
|
|
94
|
-
|
|
95
81
|
pageInit(page) {
|
|
96
82
|
const app = this;
|
|
97
83
|
page.$el.find('.infinite-scroll-content').each(el => {
|
|
98
84
|
app.infiniteScroll.create(el);
|
|
99
85
|
});
|
|
100
86
|
},
|
|
101
|
-
|
|
102
87
|
pageBeforeRemove(page) {
|
|
103
88
|
const app = this;
|
|
104
89
|
page.$el.find('.infinite-scroll-content').each(el => {
|
|
105
90
|
app.infiniteScroll.destroy(el);
|
|
106
91
|
});
|
|
107
92
|
}
|
|
108
|
-
|
|
109
93
|
}
|
|
110
94
|
};
|