framework7 7.1.5 → 8.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/accordion.js +2 -16
- package/components/accordion/accordion.less +0 -3
- package/components/actions/actions-class.js +13 -58
- package/components/actions/actions-ios.less +42 -0
- package/components/actions/actions-md.less +12 -0
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions-vars.less +17 -42
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.d.ts +2 -2
- package/components/actions/actions.js +0 -4
- package/components/actions/actions.less +5 -35
- package/components/app/app-class.d.ts +14 -12
- package/components/app/app-class.js +93 -75
- package/components/app/app-ios.less +0 -2
- package/components/app/app-md.less +0 -2
- package/components/app/app-vars.less +13 -96
- package/components/app/app.less +1 -4
- package/components/app/load-module.js +17 -36
- package/components/area-chart/area-chart-class.js +8 -64
- package/components/area-chart/area-chart.js +0 -3
- package/components/area-chart/area-chart.less +0 -3
- package/components/autocomplete/autocomplete-class.js +30 -175
- package/components/autocomplete/autocomplete-ios.less +0 -8
- package/components/autocomplete/autocomplete-rtl.css +1 -1
- package/components/autocomplete/autocomplete-vars.less +8 -22
- package/components/autocomplete/autocomplete.css +1 -1
- package/components/autocomplete/autocomplete.d.ts +1 -3
- package/components/autocomplete/autocomplete.js +1 -6
- package/components/autocomplete/autocomplete.less +6 -18
- package/components/badge/badge-vars.less +3 -6
- package/components/badge/badge.less +1 -3
- package/components/block/block-vars.less +25 -52
- package/components/block/block.less +37 -12
- package/components/breadcrumbs/breadcrumbs-rtl.css +1 -1
- package/components/breadcrumbs/breadcrumbs-vars.less +31 -15
- package/components/breadcrumbs/breadcrumbs.css +1 -1
- package/components/breadcrumbs/breadcrumbs.js +0 -2
- package/components/breadcrumbs/breadcrumbs.less +4 -10
- package/components/button/button-vars.less +42 -43
- package/components/button/button.less +24 -26
- package/components/calendar/calendar-class.js +81 -401
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar-vars.less +32 -46
- package/components/calendar/calendar.css +1 -1
- package/components/calendar/calendar.js +6 -4
- package/components/calendar/calendar.less +10 -21
- package/components/card/card-rtl.css +1 -1
- package/components/card/card-vars.less +41 -44
- package/components/card/card.css +1 -1
- package/components/card/card.js +0 -108
- package/components/card/card.less +18 -24
- package/components/checkbox/checkbox-rtl.css +1 -1
- package/components/checkbox/checkbox-vars.less +0 -8
- package/components/checkbox/checkbox.css +1 -1
- package/components/checkbox/checkbox.less +32 -3
- package/components/chip/chip-ios.less +3 -0
- package/components/chip/chip-md.less +4 -3
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip-vars.less +17 -20
- package/components/chip/chip.css +1 -1
- package/components/chip/chip.less +16 -21
- package/components/color-picker/color-picker-class.js +27 -158
- package/components/color-picker/color-picker-rtl.css +1 -1
- package/components/color-picker/color-picker.css +1 -1
- package/components/color-picker/color-picker.js +0 -4
- package/components/color-picker/color-picker.less +18 -8
- package/components/color-picker/modules/alpha-slider.js +0 -12
- package/components/color-picker/modules/brightness-slider.js +0 -8
- package/components/color-picker/modules/current-color.js +0 -2
- package/components/color-picker/modules/hex.js +0 -12
- package/components/color-picker/modules/hs-spectrum.js +0 -20
- package/components/color-picker/modules/hsb-sliders.js +0 -18
- package/components/color-picker/modules/hue-slider.js +0 -7
- package/components/color-picker/modules/initial-current-colors.js +0 -7
- package/components/color-picker/modules/palette.js +2 -10
- package/components/color-picker/modules/rgb-bars.js +0 -17
- package/components/color-picker/modules/rgb-sliders.js +0 -17
- package/components/color-picker/modules/sb-spectrum.js +0 -20
- package/components/color-picker/modules/wheel.js +0 -28
- package/components/contacts-list/contacts-list-md.less +4 -3
- package/components/contacts-list/contacts-list-rtl.css +1 -1
- package/components/contacts-list/contacts-list-vars.less +3 -15
- package/components/contacts-list/contacts-list.css +1 -1
- package/components/contacts-list/contacts-list.less +0 -3
- package/components/data-table/data-table-class.js +10 -32
- package/components/data-table/data-table-rtl.css +1 -1
- package/components/data-table/data-table-vars.less +6 -39
- package/components/data-table/data-table.css +1 -1
- package/components/data-table/data-table.js +0 -8
- package/components/data-table/data-table.less +0 -3
- package/components/dialog/dialog-class.js +7 -41
- package/components/dialog/dialog-ios.less +0 -3
- package/components/dialog/dialog-md.less +9 -9
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog-vars.less +25 -70
- package/components/dialog/dialog.css +1 -1
- package/components/dialog/dialog.d.ts +2 -2
- package/components/dialog/dialog.js +12 -48
- package/components/dialog/dialog.less +8 -4
- package/components/fab/fab-rtl.css +1 -1
- package/components/fab/fab-vars.less +20 -14
- package/components/fab/fab.css +1 -1
- package/components/fab/fab.js +0 -21
- package/components/fab/fab.less +50 -53
- package/components/form/form.d.ts +4 -4
- package/components/form/form.js +58 -94
- package/components/form/form.less +0 -3
- package/components/gauge/gauge-class.js +4 -20
- package/components/gauge/gauge.js +0 -9
- package/components/gauge/gauge.less +0 -3
- package/components/grid/grid-rtl.css +1 -1
- package/components/grid/grid-vars.less +0 -7
- package/components/grid/grid.css +1 -1
- package/components/grid/grid.d.ts +2 -8
- package/components/grid/grid.js +1 -225
- package/components/grid/grid.less +54 -184
- package/components/icon/icon.less +0 -3
- package/components/infinite-scroll/infinite-scroll-rtl.css +1 -1
- package/components/infinite-scroll/infinite-scroll.css +1 -1
- package/components/infinite-scroll/infinite-scroll.js +0 -16
- package/components/infinite-scroll/infinite-scroll.less +0 -3
- package/components/input/input-ios.less +49 -41
- package/components/input/input-md.less +87 -19
- package/components/input/input-rtl.css +1 -1
- package/components/input/input-vars.less +26 -60
- package/components/input/input.css +1 -1
- package/components/input/input.js +8 -67
- package/components/input/input.less +67 -153
- package/components/link/link-vars.less +0 -5
- package/components/link/link.less +3 -3
- package/components/list/list-md.less +0 -7
- package/components/list/list-vars.less +59 -108
- package/components/list/list.less +122 -90
- package/components/list-index/list-index-class.js +12 -69
- package/components/list-index/list-index-rtl.css +1 -1
- package/components/list-index/list-index-vars.less +0 -7
- package/components/list-index/list-index.css +1 -1
- package/components/list-index/list-index.d.ts +1 -3
- package/components/list-index/list-index.js +0 -8
- package/components/list-index/list-index.less +4 -7
- package/components/login-screen/login-screen-class.js +4 -9
- package/components/login-screen/login-screen-rtl.css +1 -1
- package/components/login-screen/login-screen-vars.less +13 -12
- package/components/login-screen/login-screen.css +1 -1
- package/components/login-screen/login-screen.js +0 -4
- package/components/login-screen/login-screen.less +2 -8
- package/components/messagebar/messagebar-class.js +18 -79
- package/components/messagebar/messagebar-ios.less +36 -0
- package/components/messagebar/messagebar-md.less +96 -16
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar-vars.less +27 -50
- package/components/messagebar/messagebar.css +1 -1
- package/components/messagebar/messagebar.js +0 -8
- package/components/messagebar/messagebar.less +11 -42
- package/components/messages/messages-class.js +17 -110
- package/components/messages/messages-ios.less +9 -0
- package/components/messages/messages-md.less +63 -28
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages-vars.less +43 -50
- package/components/messages/messages.css +1 -1
- package/components/messages/messages.js +0 -8
- package/components/messages/messages.less +0 -11
- package/components/modal/custom-modal-class.js +4 -14
- package/components/modal/modal-class.js +19 -55
- package/components/modal/modal.js +0 -3
- package/components/navbar/navbar-ios.less +3 -39
- package/components/navbar/navbar-md.less +12 -0
- package/components/navbar/navbar-vars.less +20 -49
- package/components/navbar/navbar.d.ts +0 -2
- package/components/navbar/navbar.js +37 -166
- package/components/navbar/navbar.less +4 -26
- package/components/notification/notification-class.js +4 -39
- package/components/notification/notification-md.less +18 -8
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification-vars.less +15 -54
- package/components/notification/notification.css +1 -1
- package/components/notification/notification.js +0 -2
- package/components/notification/notification.less +0 -3
- package/components/page/page-md.less +40 -10
- package/components/page/page-transitions/circle.less +15 -9
- package/components/page/page-transitions/fade.less +17 -11
- package/components/page/page-transitions/flip.less +9 -4
- package/components/page/page-vars.less +3 -19
- package/components/page/page.less +2 -10
- package/components/panel/panel-class.js +27 -132
- package/components/panel/panel-md.less +9 -0
- package/components/panel/panel-rtl.css +1 -1
- package/components/panel/panel-vars.less +7 -21
- package/components/panel/panel.css +1 -1
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +0 -34
- package/components/panel/panel.less +56 -48
- package/components/panel/resizable-panel.js +2 -32
- package/components/panel/swipe-panel.js +16 -71
- package/components/photo-browser/photo-browser-class.js +41 -171
- package/components/photo-browser/photo-browser-rtl.css +1 -1
- package/components/photo-browser/photo-browser-vars.less +0 -3
- package/components/photo-browser/photo-browser.css +1 -1
- package/components/photo-browser/photo-browser.d.ts +2 -4
- package/components/photo-browser/photo-browser.js +1 -6
- package/components/photo-browser/photo-browser.less +0 -4
- package/components/picker/picker-class.js +26 -133
- package/components/picker/picker-column.js +11 -31
- package/components/picker/picker-ios.less +10 -0
- package/components/picker/picker-md.less +6 -0
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker-vars.less +9 -25
- package/components/picker/picker.css +1 -1
- package/components/picker/picker.js +0 -4
- package/components/picker/picker.less +0 -11
- package/components/pie-chart/pie-chart-class.js +8 -31
- package/components/pie-chart/pie-chart.js +0 -3
- package/components/pie-chart/pie-chart.less +0 -3
- package/components/popover/popover-class.js +72 -126
- package/components/popover/popover-ios.less +0 -50
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover-vars.less +6 -23
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.d.ts +2 -0
- package/components/popover/popover.js +1 -12
- package/components/popover/popover.less +62 -5
- package/components/popup/popup-class.js +12 -78
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup-vars.less +7 -9
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.js +0 -4
- package/components/popup/popup.less +4 -4
- package/components/preloader/preloader-ios.less +3 -1
- package/components/preloader/preloader-md.less +5 -1
- package/components/preloader/preloader-rtl.css +1 -1
- package/components/preloader/preloader-vars.less +0 -6
- package/components/preloader/preloader.css +1 -1
- package/components/preloader/preloader.js +8 -25
- package/components/preloader/preloader.less +6 -3
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar-vars.less +2 -12
- package/components/progressbar/progressbar.css +1 -1
- package/components/progressbar/progressbar.js +2 -31
- package/components/progressbar/progressbar.less +0 -3
- package/components/pull-to-refresh/pull-to-refresh-class.js +15 -107
- package/components/pull-to-refresh/pull-to-refresh-md.less +2 -1
- package/components/pull-to-refresh/pull-to-refresh-rtl.css +1 -1
- package/components/pull-to-refresh/pull-to-refresh-vars.less +0 -4
- package/components/pull-to-refresh/pull-to-refresh.css +1 -1
- package/components/pull-to-refresh/pull-to-refresh.js +0 -8
- package/components/pull-to-refresh/pull-to-refresh.less +0 -3
- package/components/radio/radio-rtl.css +1 -1
- package/components/radio/radio-vars.less +0 -7
- package/components/radio/radio.css +1 -1
- package/components/radio/radio.less +12 -5
- package/components/range/range-class.js +27 -112
- package/components/range/range-rtl.css +1 -1
- package/components/range/range-vars.less +10 -32
- package/components/range/range.css +1 -1
- package/components/range/range.js +0 -12
- package/components/range/range.less +0 -3
- package/components/searchbar/remove-diacritics.js +0 -4
- package/components/searchbar/searchbar-class.js +17 -138
- package/components/searchbar/searchbar-md.less +41 -16
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar-vars.less +25 -76
- package/components/searchbar/searchbar.css +1 -1
- package/components/searchbar/searchbar.d.ts +2 -2
- package/components/searchbar/searchbar.js +0 -15
- package/components/searchbar/searchbar.less +14 -28
- package/components/sheet/sheet-class.js +15 -110
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet-vars.less +17 -6
- package/components/sheet/sheet.css +1 -1
- package/components/sheet/sheet.js +0 -9
- package/components/sheet/sheet.less +10 -3
- package/components/skeleton/skeleton.less +0 -3
- package/components/smart-select/smart-select-class.js +39 -176
- package/components/smart-select/smart-select.d.ts +3 -3
- package/components/smart-select/smart-select.js +2 -14
- package/components/smart-select/smart-select.less +0 -3
- package/components/sortable/sortable-rtl.css +1 -1
- package/components/sortable/sortable-vars.less +8 -8
- package/components/sortable/sortable.css +1 -1
- package/components/sortable/sortable.js +0 -44
- package/components/sortable/sortable.less +0 -3
- package/components/statusbar/statusbar.js +0 -36
- package/components/statusbar/statusbar.less +0 -3
- package/components/stepper/stepper-class.js +10 -83
- package/components/stepper/stepper-rtl.css +1 -1
- package/components/stepper/stepper-vars.less +12 -24
- package/components/stepper/stepper.css +1 -1
- package/components/stepper/stepper.js +0 -12
- package/components/stepper/stepper.less +12 -23
- package/components/subnavbar/subnavbar-vars.less +3 -18
- package/components/subnavbar/subnavbar.js +0 -3
- package/components/subnavbar/subnavbar.less +1 -11
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout-vars.less +7 -6
- package/components/swipeout/swipeout.css +1 -1
- package/components/swipeout/swipeout.js +2 -99
- package/components/swipeout/swipeout.less +2 -7
- package/components/swiper/swiper-rtl.css +1 -1
- package/components/swiper/swiper.css +1 -1
- package/components/swiper/swiper.js +15 -48
- package/components/swiper/swiper.less +0 -15
- package/components/tabs/tabs-rtl.css +1 -1
- package/components/tabs/tabs.css +1 -1
- package/components/tabs/tabs.js +23 -60
- package/components/tabs/tabs.less +1 -3
- package/components/text-editor/text-editor-class.js +16 -102
- package/components/text-editor/text-editor-rtl.css +1 -1
- package/components/text-editor/text-editor-vars.less +12 -16
- package/components/text-editor/text-editor.css +1 -1
- package/components/text-editor/text-editor.js +0 -8
- package/components/text-editor/text-editor.less +0 -6
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline-vars.less +13 -47
- package/components/timeline/timeline.css +1 -1
- package/components/timeline/timeline.less +2 -9
- package/components/toast/toast-class.js +2 -16
- package/components/toast/toast-rtl.css +1 -1
- package/components/toast/toast-vars.less +5 -9
- package/components/toast/toast.css +1 -1
- package/components/toast/toast.js +0 -3
- package/components/toast/toast.less +0 -3
- package/components/toggle/toggle-class.js +6 -30
- package/components/toggle/toggle-ios.less +5 -1
- package/components/toggle/toggle-md.less +27 -11
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle-vars.less +19 -21
- package/components/toggle/toggle.css +1 -1
- package/components/toggle/toggle.js +0 -8
- package/components/toggle/toggle.less +0 -4
- package/components/toolbar/toolbar-ios.less +2 -2
- package/components/toolbar/toolbar-md.less +28 -4
- package/components/toolbar/toolbar-vars.less +17 -52
- package/components/toolbar/toolbar.js +5 -43
- package/components/toolbar/toolbar.less +27 -45
- package/components/tooltip/tooltip-class.js +10 -64
- package/components/tooltip/tooltip-rtl.css +1 -1
- package/components/tooltip/tooltip-vars.less +12 -3
- package/components/tooltip/tooltip.css +1 -1
- package/components/tooltip/tooltip.js +0 -15
- package/components/tooltip/tooltip.less +0 -3
- package/components/touch-ripple/touch-ripple-class.js +0 -13
- package/components/touch-ripple/touch-ripple.js +0 -4
- package/components/touch-ripple/touch-ripple.less +1 -5
- package/components/treeview/treeview-rtl.css +1 -1
- package/components/treeview/treeview-vars.less +0 -3
- package/components/treeview/treeview.css +1 -1
- package/components/treeview/treeview.js +2 -11
- package/components/treeview/treeview.less +0 -3
- package/components/typography/typography-rtl.css +1 -1
- package/components/typography/typography.css +1 -1
- package/components/typography/typography.less +25 -3
- package/components/view/resizable-view.js +2 -24
- package/components/view/view-class.js +28 -53
- package/components/view/view.d.ts +0 -14
- package/components/view/view.js +8 -32
- package/components/view/view.less +1 -4
- package/components/virtual-list/virtual-list-class.js +58 -146
- package/components/virtual-list/virtual-list.d.ts +1 -1
- package/components/virtual-list/virtual-list.js +0 -2
- package/components/virtual-list/virtual-list.less +0 -3
- package/framework7-bundle-rtl.css +3064 -6057
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +3063 -6059
- package/framework7-bundle.esm.js +4 -10
- package/framework7-bundle.js +6442 -12377
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -27
- package/framework7-bundle.min.css +3 -3
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +4 -10
- package/framework7-lite.esm.js +4 -6
- package/framework7-rtl.css +803 -1591
- package/framework7-rtl.min.css +3 -3
- package/framework7-types.d.ts +1 -32
- package/framework7.css +803 -1594
- package/framework7.d.ts +1 -32
- package/framework7.esm.js +4 -6
- package/framework7.less +2 -23
- package/framework7.min.css +3 -3
- package/less/mixins.less +7 -88
- package/modules/clicks/clicks.js +10 -22
- package/modules/component/$h.js +0 -3
- package/modules/component/$jsx.js +0 -5
- package/modules/component/component-class.js +13 -66
- package/modules/component/component.d.ts +1 -2
- package/modules/component/component.js +0 -8
- package/modules/component/eventslisteners.js +12 -20
- package/modules/component/parse-component.js +18 -20
- package/modules/component/snabbdom/h.js +3 -12
- package/modules/component/snabbdom/helpers/attachto.js +9 -14
- package/modules/component/snabbdom/htmldomapi.js +0 -16
- package/modules/component/snabbdom/modules/attributes.js +7 -11
- package/modules/component/snabbdom/modules/class.js +4 -8
- package/modules/component/snabbdom/modules/dataset.js +3 -7
- package/modules/component/snabbdom/modules/eventlisteners.js +16 -22
- package/modules/component/snabbdom/modules/hero.js +4 -44
- package/modules/component/snabbdom/modules/props.js +5 -9
- package/modules/component/snabbdom/modules/style.js +13 -30
- package/modules/component/snabbdom/snabbdom.bundle.js +0 -6
- package/modules/component/snabbdom/snabbdom.js +13 -72
- package/modules/component/snabbdom/thunk.js +3 -11
- package/modules/component/snabbdom/tovnode.js +1 -6
- package/modules/component/vdom.js +4 -62
- package/modules/demo-module.js +0 -8
- package/modules/device/device.js +6 -11
- package/modules/history/history.js +0 -1
- package/modules/resize/resize.js +8 -11
- package/modules/router/async-component.js +0 -3
- package/modules/router/back.js +86 -275
- package/modules/router/clear-previous-history.js +5 -18
- package/modules/router/component-loader.js +4 -25
- package/modules/router/modal.js +16 -43
- package/modules/router/navigate.js +80 -250
- package/modules/router/process-route-queue.js +0 -12
- package/modules/router/redirect.js +0 -8
- package/modules/router/router-class.js +92 -315
- package/modules/router/router.d.ts +3 -5
- package/modules/router/router.js +0 -3
- package/modules/router/swipe-back.js +35 -139
- package/modules/router/tab.js +14 -43
- package/modules/service-worker/service-worker.js +0 -11
- package/modules/store/create-store.js +10 -29
- package/modules/touch/touch.d.ts +2 -4
- package/modules/touch/touch.js +13 -108
- package/package.json +3 -14
- package/shared/$jsx.js +0 -6
- package/shared/class.js +18 -43
- package/shared/constructor-methods.js +0 -11
- package/shared/events-class.js +0 -17
- package/shared/get-device.js +18 -34
- package/shared/get-support.js +2 -8
- package/shared/history.js +2 -30
- package/shared/material-color-utils.js +728 -0
- package/shared/material-colors.js +75 -0
- package/shared/modal-methods.js +0 -18
- package/shared/utils.d.ts +0 -4
- package/shared/utils.js +191 -71
- package/components/accordion/accordion-aurora.less +0 -2
- package/components/accordion/accordion.lazy.js +0 -1
- package/components/actions/actions-aurora.less +0 -9
- package/components/actions/actions.lazy.js +0 -1
- package/components/app/app-aurora.less +0 -10
- package/components/appbar/appbar-aurora.less +0 -2
- package/components/appbar/appbar-ios.less +0 -2
- package/components/appbar/appbar-md.less +0 -2
- package/components/appbar/appbar-rtl.css +0 -1
- package/components/appbar/appbar-vars.less +0 -28
- package/components/appbar/appbar.css +0 -1
- package/components/appbar/appbar.d.ts +0 -14
- package/components/appbar/appbar.js +0 -3
- package/components/appbar/appbar.lazy.js +0 -1
- package/components/appbar/appbar.less +0 -106
- package/components/area-chart/area-chart-aurora.less +0 -2
- package/components/area-chart/area-chart.lazy.js +0 -1
- package/components/autocomplete/autocomplete-aurora.less +0 -17
- package/components/autocomplete/autocomplete.lazy.js +0 -1
- package/components/badge/badge-aurora.less +0 -2
- package/components/block/block-aurora.less +0 -2
- package/components/breadcrumbs/breadcrumbs-aurora.less +0 -2
- package/components/breadcrumbs/breadcrumbs.lazy.js +0 -1
- package/components/button/button-aurora.less +0 -25
- package/components/calendar/calendar-aurora.less +0 -2
- package/components/calendar/calendar.lazy.js +0 -1
- package/components/card/card-aurora.less +0 -2
- package/components/card/card.lazy.js +0 -1
- package/components/checkbox/checkbox-aurora.less +0 -39
- package/components/checkbox/checkbox.lazy.js +0 -1
- package/components/chip/chip-aurora.less +0 -14
- package/components/chip/chip.lazy.js +0 -1
- package/components/color-picker/color-picker-aurora.less +0 -2
- package/components/color-picker/color-picker.lazy.js +0 -1
- package/components/contacts-list/contacts-list-aurora.less +0 -2
- package/components/contacts-list/contacts-list.lazy.js +0 -1
- package/components/data-table/data-table-aurora.less +0 -64
- package/components/data-table/data-table.lazy.js +0 -1
- package/components/dialog/dialog-aurora.less +0 -112
- package/components/dialog/dialog.lazy.js +0 -1
- package/components/elevation/elevation-aurora.less +0 -2
- package/components/elevation/elevation-ios.less +0 -2
- package/components/elevation/elevation-md.less +0 -2
- package/components/elevation/elevation-rtl.css +0 -1
- package/components/elevation/elevation-vars.less +0 -51
- package/components/elevation/elevation.css +0 -1
- package/components/elevation/elevation.d.ts +0 -14
- package/components/elevation/elevation.js +0 -3
- package/components/elevation/elevation.lazy.js +0 -1
- package/components/elevation/elevation.less +0 -54
- package/components/fab/fab-aurora.less +0 -2
- package/components/fab/fab.lazy.js +0 -1
- package/components/form/form-aurora.less +0 -0
- package/components/form/form.lazy.js +0 -1
- package/components/gauge/gauge-aurora.less +0 -2
- package/components/gauge/gauge.lazy.js +0 -1
- package/components/grid/grid-aurora.less +0 -2
- package/components/grid/grid.lazy.js +0 -1
- package/components/icon/icon-aurora.less +0 -49
- package/components/infinite-scroll/infinite-scroll-aurora.less +0 -6
- package/components/infinite-scroll/infinite-scroll.lazy.js +0 -1
- package/components/input/input-aurora.less +0 -120
- package/components/input/input.lazy.js +0 -1
- package/components/lazy/lazy-aurora.less +0 -2
- package/components/lazy/lazy-ios.less +0 -2
- package/components/lazy/lazy-md.less +0 -2
- package/components/lazy/lazy-rtl.css +0 -1
- package/components/lazy/lazy.css +0 -1
- package/components/lazy/lazy.d.ts +0 -57
- package/components/lazy/lazy.js +0 -283
- package/components/lazy/lazy.lazy.js +0 -1
- package/components/lazy/lazy.less +0 -23
- package/components/link/link-aurora.less +0 -15
- package/components/list/list-aurora.less +0 -25
- package/components/list-index/list-index-aurora.less +0 -21
- package/components/list-index/list-index.lazy.js +0 -1
- package/components/login-screen/login-screen-aurora.less +0 -2
- package/components/login-screen/login-screen.lazy.js +0 -1
- package/components/menu/menu-aurora.less +0 -8
- package/components/menu/menu-ios.less +0 -2
- package/components/menu/menu-md.less +0 -2
- package/components/menu/menu-rtl.css +0 -1
- package/components/menu/menu-vars.less +0 -27
- package/components/menu/menu.css +0 -1
- package/components/menu/menu.d.ts +0 -32
- package/components/menu/menu.js +0 -87
- package/components/menu/menu.lazy.js +0 -1
- package/components/menu/menu.less +0 -232
- package/components/messagebar/messagebar-aurora.less +0 -53
- package/components/messagebar/messagebar.lazy.js +0 -1
- package/components/messages/messages-aurora.less +0 -137
- package/components/messages/messages.lazy.js +0 -1
- package/components/navbar/navbar-aurora.less +0 -70
- package/components/notification/notification-aurora.less +0 -59
- package/components/notification/notification.lazy.js +0 -1
- package/components/page/page-aurora.less +0 -49
- package/components/panel/panel-aurora.less +0 -2
- package/components/panel/panel.lazy.js +0 -1
- package/components/photo-browser/photo-browser-aurora.less +0 -2
- package/components/photo-browser/photo-browser.lazy.js +0 -1
- package/components/picker/picker-aurora.less +0 -2
- package/components/picker/picker.lazy.js +0 -1
- package/components/pie-chart/pie-chart-aurora.less +0 -2
- package/components/pie-chart/pie-chart.lazy.js +0 -1
- package/components/popover/popover-aurora.less +0 -56
- package/components/popover/popover.lazy.js +0 -1
- package/components/popup/popup-aurora.less +0 -2
- package/components/popup/popup.lazy.js +0 -1
- package/components/preloader/preloader-aurora.less +0 -53
- package/components/preloader/preloader.lazy.js +0 -1
- package/components/progressbar/progressbar-aurora.less +0 -72
- package/components/progressbar/progressbar.lazy.js +0 -1
- package/components/pull-to-refresh/pull-to-refresh-aurora.less +0 -122
- package/components/pull-to-refresh/pull-to-refresh.lazy.js +0 -1
- package/components/radio/radio-aurora.less +0 -86
- package/components/radio/radio.lazy.js +0 -1
- package/components/range/range-aurora.less +0 -9
- package/components/range/range.lazy.js +0 -1
- package/components/searchbar/searchbar-aurora.less +0 -86
- package/components/searchbar/searchbar.lazy.js +0 -1
- package/components/sheet/sheet-aurora.less +0 -2
- package/components/sheet/sheet.lazy.js +0 -1
- package/components/skeleton/skeleton-aurora.less +0 -2
- package/components/skeleton/skeleton.lazy.js +0 -1
- package/components/smart-select/smart-select-aurora.less +0 -2
- package/components/smart-select/smart-select.lazy.js +0 -1
- package/components/sortable/sortable-aurora.less +0 -7
- package/components/sortable/sortable.lazy.js +0 -1
- package/components/statusbar/statusbar-aurora.less +0 -2
- package/components/stepper/stepper-aurora.less +0 -32
- package/components/stepper/stepper.lazy.js +0 -1
- package/components/subnavbar/subnavbar-aurora.less +0 -51
- package/components/swipeout/swipeout-aurora.less +0 -2
- package/components/swipeout/swipeout.lazy.js +0 -1
- package/components/swiper/swiper-aurora.less +0 -2
- package/components/swiper/swiper.lazy.js +0 -1
- package/components/tabs/tabs-aurora.less +0 -2
- package/components/tabs/tabs.lazy.js +0 -1
- package/components/text-editor/text-editor-aurora.less +0 -9
- package/components/text-editor/text-editor.lazy.js +0 -1
- package/components/timeline/timeline-aurora.less +0 -7
- package/components/timeline/timeline.lazy.js +0 -1
- package/components/toast/toast-aurora.less +0 -64
- package/components/toast/toast.lazy.js +0 -1
- package/components/toggle/toggle-aurora.less +0 -26
- package/components/toggle/toggle.lazy.js +0 -1
- package/components/toolbar/toolbar-aurora.less +0 -43
- package/components/tooltip/tooltip-aurora.less +0 -2
- package/components/tooltip/tooltip.lazy.js +0 -1
- package/components/touch-ripple/touch-ripple-aurora.less +0 -2
- package/components/treeview/treeview-aurora.less +0 -31
- package/components/treeview/treeview.lazy.js +0 -1
- package/components/typography/typography-aurora.less +0 -2
- package/components/typography/typography.lazy.js +0 -1
- package/components/view/view-aurora.less +0 -2
- package/components/virtual-list/virtual-list-aurora.less +0 -2
- package/components/virtual-list/virtual-list.lazy.js +0 -1
- package/framework7.js +0 -14715
- package/framework7.js.map +0 -1
- package/framework7.min.js +0 -14
- package/framework7.min.js.map +0 -1
- package/modules/request/request.d.ts +0 -15
- package/modules/request/request.js +0 -11
- package/shared/request.d.ts +0 -115
- package/shared/request.js +0 -512
|
@@ -61,7 +61,7 @@ export namespace SmartSelect {
|
|
|
61
61
|
searchbarPlaceholder?: string;
|
|
62
62
|
/** Searchbar "cancel" link text. Has effect only in iOS theme (default 'Cancel') */
|
|
63
63
|
searchbarDisableText?: string;
|
|
64
|
-
/** Enables searchbar disable button.
|
|
64
|
+
/** Enables searchbar disable button. (default true) */
|
|
65
65
|
searchbarDisableButton?: boolean;
|
|
66
66
|
/** Value of "spellcheck" attribute on searchbar input (default false) */
|
|
67
67
|
searchbarSpellcheck?: boolean;
|
|
@@ -93,8 +93,8 @@ export namespace SmartSelect {
|
|
|
93
93
|
optionIconIos?: string;
|
|
94
94
|
/** Same as `optionIcon` but will apply only when MD theme is active */
|
|
95
95
|
optionIconMd?: string;
|
|
96
|
-
/**
|
|
97
|
-
|
|
96
|
+
/** Specify checkbox/radio icon position, can be 'start' or 'end' (default 'start') */
|
|
97
|
+
inputIconPosition?: string;
|
|
98
98
|
|
|
99
99
|
/** Function to render smart select page, must return full page HTML string */
|
|
100
100
|
renderPage?: (items: any[]) => string;
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
searchbar: false,
|
|
29
29
|
searchbarPlaceholder: 'Search',
|
|
30
30
|
searchbarDisableText: 'Cancel',
|
|
31
|
-
searchbarDisableButton:
|
|
31
|
+
searchbarDisableButton: true,
|
|
32
32
|
searchbarSpellcheck: false,
|
|
33
33
|
closeOnSelect: false,
|
|
34
34
|
virtualList: false,
|
|
@@ -38,8 +38,8 @@ export default {
|
|
|
38
38
|
navbarColorTheme: undefined,
|
|
39
39
|
routableModals: false,
|
|
40
40
|
url: 'select/',
|
|
41
|
+
inputIconPosition: 'start',
|
|
41
42
|
cssClass: '',
|
|
42
|
-
|
|
43
43
|
/*
|
|
44
44
|
Custom render functions
|
|
45
45
|
*/
|
|
@@ -55,7 +55,6 @@ export default {
|
|
|
55
55
|
static: {
|
|
56
56
|
SmartSelect
|
|
57
57
|
},
|
|
58
|
-
|
|
59
58
|
create() {
|
|
60
59
|
const app = this;
|
|
61
60
|
app.smartSelect = extend(ConstructorMethods({
|
|
@@ -69,16 +68,13 @@ export default {
|
|
|
69
68
|
if (ss && ss.open) return ss.open();
|
|
70
69
|
return undefined;
|
|
71
70
|
},
|
|
72
|
-
|
|
73
71
|
close(smartSelectEl) {
|
|
74
72
|
const ss = app.smartSelect.get(smartSelectEl);
|
|
75
73
|
if (ss && ss.close) return ss.close();
|
|
76
74
|
return undefined;
|
|
77
75
|
}
|
|
78
|
-
|
|
79
76
|
});
|
|
80
77
|
},
|
|
81
|
-
|
|
82
78
|
on: {
|
|
83
79
|
tabMounted(tabEl) {
|
|
84
80
|
const app = this;
|
|
@@ -88,7 +84,6 @@ export default {
|
|
|
88
84
|
}, $(smartSelectEl).dataset()));
|
|
89
85
|
});
|
|
90
86
|
},
|
|
91
|
-
|
|
92
87
|
tabBeforeRemove(tabEl) {
|
|
93
88
|
$(tabEl).find('.smart-select-init').each(smartSelectEl => {
|
|
94
89
|
if (smartSelectEl.f7SmartSelect && smartSelectEl.f7SmartSelect.destroy) {
|
|
@@ -96,7 +91,6 @@ export default {
|
|
|
96
91
|
}
|
|
97
92
|
});
|
|
98
93
|
},
|
|
99
|
-
|
|
100
94
|
pageInit(page) {
|
|
101
95
|
const app = this;
|
|
102
96
|
page.$el.find('.smart-select-init').each(smartSelectEl => {
|
|
@@ -105,7 +99,6 @@ export default {
|
|
|
105
99
|
}, $(smartSelectEl).dataset()));
|
|
106
100
|
});
|
|
107
101
|
},
|
|
108
|
-
|
|
109
102
|
pageBeforeRemove(page) {
|
|
110
103
|
page.$el.find('.smart-select-init').each(smartSelectEl => {
|
|
111
104
|
if (smartSelectEl.f7SmartSelect && smartSelectEl.f7SmartSelect.destroy) {
|
|
@@ -113,12 +106,10 @@ export default {
|
|
|
113
106
|
}
|
|
114
107
|
});
|
|
115
108
|
}
|
|
116
|
-
|
|
117
109
|
},
|
|
118
110
|
clicks: {
|
|
119
111
|
'.smart-select': function open($clickedEl, data) {
|
|
120
112
|
const app = this;
|
|
121
|
-
|
|
122
113
|
if (!$clickedEl[0].f7SmartSelect) {
|
|
123
114
|
const ss = app.smartSelect.create(extend({
|
|
124
115
|
el: $clickedEl
|
|
@@ -136,15 +127,12 @@ export default {
|
|
|
136
127
|
el: smartSelectEl
|
|
137
128
|
}, $(smartSelectEl).dataset()));
|
|
138
129
|
},
|
|
139
|
-
|
|
140
130
|
destroy(vnode) {
|
|
141
131
|
const smartSelectEl = vnode.elm;
|
|
142
|
-
|
|
143
132
|
if (smartSelectEl.f7SmartSelect && smartSelectEl.f7SmartSelect.destroy) {
|
|
144
133
|
smartSelectEl.f7SmartSelect.destroy();
|
|
145
134
|
}
|
|
146
135
|
}
|
|
147
|
-
|
|
148
136
|
}
|
|
149
137
|
}
|
|
150
138
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.ios{--f7-sortable-handler-width:36px;--f7-sortable-sorting-item-box-shadow:0px 2px 8px rgba(0, 0, 0, 0.6);--f7-sortable-handler-color:rgba(0, 0, 0, 0.22);--f7-sortable-sorting-item-bg-color:rgba(255, 255, 255, 0.8)}.ios .dark,.ios.dark{--f7-sortable-sorting-item-bg-color:rgba(50, 50, 50, 0.8);--f7-sortable-handler-color:rgba(255, 255, 255, 0.55)}.md{--f7-sortable-handler-width:42px;--f7-sortable-sorting-item-box-shadow:none}.md,.md .dark,.md [class*=color-]{--f7-sortable-handler-color:var(--f7-md-on-surface-variant);--f7-sortable-sorting-item-bg-color:var(--f7-md-surface-3)}.sortable .sortable-handler{width:var(--f7-sortable-handler-width);height:100%;position:absolute;top:0;z-index:10;opacity:0;pointer-events:none;cursor:move;transition-duration:.3s;display:flex;align-items:center;justify-content:center;overflow:hidden;left:var(--f7-safe-area-left)}.sortable .sortable-handler:after{font-family:framework7-core-icons;font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga';text-align:center;display:block;width:100%;height:100%;font-size:20px;transition-duration:.3s;transform:translateX(10px);color:var(--f7-sortable-handler-color);overflow:hidden;height:20px;width:18px}.sortable li.sorting{z-index:50;background:var(--f7-sortable-sorting-item-bg-color);transition-duration:0s;box-shadow:var(--f7-sortable-sorting-item-box-shadow)}.sortable li.sorting .item-inner:after{display:none!important}.sortable-opposite .sortable-handler{right:var(--f7-safe-area-left);left:auto}.sortable-opposite .sortable-handler:after{transform:translateX(-10px)}.sortable-opposite .item-content,.sortable-opposite.links-list li a,.sortable.simple-list li,.sortable:not(.sortable-opposite) .item-inner{transition-duration:.3s;transition-property:all}.sortable-sorting li{transition-duration:.3s}.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) .sortable-handler{pointer-events:auto;opacity:1}.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) .sortable-handler:after{transform:translateX(0px)}.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-inner:before,.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-title-row:before,.sortable-enabled:not(.sortable-opposite).links-list li:not(.no-sorting):not(.disallow-sorting)>a:before{display:none}.links-list.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) a,.no-chevron .sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-inner,.simple-list.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting),.sortable-enabled :not(.sortable-opposite).no-chevron .item-link .item-inner,.sortable-enabled.no-chevron:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-inner,.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-inner,.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-inner,.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link.no-chevron .item-inner{padding-left:calc(var(--f7-sortable-handler-width) + var(--f7-safe-area-right))}.links-list.sortable-opposite.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) a,.simple-list.sortable-opposite.sortable-enabled li:not(.no-sorting):not(.disallow-sorting),.sortable-opposite.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) .item-content{padding-right:calc(var(--f7-sortable-handler-width) + var(--f7-safe-area-right))}.ios .sortable-handler:after{content:'sort_ios'}.md .sortable-handler:after{content:'sort_md'}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
}
|
|
3
|
+
.ios-vars({
|
|
4
|
+
--f7-sortable-handler-width: 36px;
|
|
5
|
+
--f7-sortable-sorting-item-box-shadow: 0px 2px 8px rgba(0,0,0,0.6);
|
|
2
6
|
.light-vars({
|
|
3
7
|
--f7-sortable-handler-color: rgba(0,0,0,0.22);
|
|
4
8
|
--f7-sortable-sorting-item-bg-color: rgba(255,255,255,0.8);
|
|
@@ -7,16 +11,12 @@
|
|
|
7
11
|
--f7-sortable-sorting-item-bg-color: rgba(50, 50, 50, 0.8);
|
|
8
12
|
--f7-sortable-handler-color: rgba(255,255,255,0.55);
|
|
9
13
|
});
|
|
10
|
-
}
|
|
11
|
-
.ios-vars({
|
|
12
|
-
--f7-sortable-handler-width: 36px;
|
|
13
|
-
--f7-sortable-sorting-item-box-shadow: 0px 2px 8px rgba(0,0,0,0.6);
|
|
14
14
|
});
|
|
15
15
|
.md-vars({
|
|
16
16
|
--f7-sortable-handler-width: 42px;
|
|
17
|
-
--f7-sortable-sorting-item-box-shadow:
|
|
17
|
+
--f7-sortable-sorting-item-box-shadow: none;
|
|
18
18
|
});
|
|
19
|
-
.
|
|
20
|
-
--f7-sortable-handler-
|
|
21
|
-
--f7-sortable-sorting-item-
|
|
19
|
+
.md-color-vars({
|
|
20
|
+
--f7-sortable-handler-color: var(--f7-md-on-surface-variant);
|
|
21
|
+
--f7-sortable-sorting-item-bg-color: var(--f7-md-surface-3);
|
|
22
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.ios{--f7-sortable-handler-width:36px;--f7-sortable-sorting-item-box-shadow:0px 2px 8px rgba(0, 0, 0, 0.6);--f7-sortable-handler-color:rgba(0, 0, 0, 0.22);--f7-sortable-sorting-item-bg-color:rgba(255, 255, 255, 0.8)}.ios .dark,.ios.dark{--f7-sortable-sorting-item-bg-color:rgba(50, 50, 50, 0.8);--f7-sortable-handler-color:rgba(255, 255, 255, 0.55)}.md{--f7-sortable-handler-width:42px;--f7-sortable-sorting-item-box-shadow:none}.md,.md .dark,.md [class*=color-]{--f7-sortable-handler-color:var(--f7-md-on-surface-variant);--f7-sortable-sorting-item-bg-color:var(--f7-md-surface-3)}.sortable .sortable-handler{width:var(--f7-sortable-handler-width);height:100%;position:absolute;top:0;z-index:10;opacity:0;pointer-events:none;cursor:move;transition-duration:.3s;display:flex;align-items:center;justify-content:center;overflow:hidden;right:var(--f7-safe-area-right)}.sortable .sortable-handler:after{font-family:framework7-core-icons;font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga';text-align:center;display:block;width:100%;height:100%;font-size:20px;transition-duration:.3s;transform:translateX(10px);color:var(--f7-sortable-handler-color);overflow:hidden;height:20px;width:18px}.sortable li.sorting{z-index:50;background:var(--f7-sortable-sorting-item-bg-color);transition-duration:0s;box-shadow:var(--f7-sortable-sorting-item-box-shadow)}.sortable li.sorting .item-inner:after{display:none!important}.sortable-opposite .sortable-handler{left:var(--f7-safe-area-right);right:auto}.sortable-opposite .sortable-handler:after{transform:translateX(-10px)}.sortable-opposite .item-content,.sortable-opposite.links-list li a,.sortable.simple-list li,.sortable:not(.sortable-opposite) .item-inner{transition-duration:.3s;transition-property:all}.sortable-sorting li{transition-duration:.3s}.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) .sortable-handler{pointer-events:auto;opacity:1}.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) .sortable-handler:after{transform:translateX(0px)}.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-inner:before,.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-title-row:before,.sortable-enabled:not(.sortable-opposite).links-list li:not(.no-sorting):not(.disallow-sorting)>a:before{display:none}.links-list.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) a,.no-chevron .sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-inner,.simple-list.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting),.sortable-enabled :not(.sortable-opposite).no-chevron .item-link .item-inner,.sortable-enabled.no-chevron:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-inner,.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-inner,.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-inner,.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link.no-chevron .item-inner{padding-right:calc(var(--f7-sortable-handler-width) + var(--f7-safe-area-right))}.links-list.sortable-opposite.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) a,.simple-list.sortable-opposite.sortable-enabled li:not(.no-sorting):not(.disallow-sorting),.sortable-opposite.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) .item-content{padding-left:calc(var(--f7-sortable-handler-width) + var(--f7-safe-area-right))}.ios .sortable-handler:after{content:'sort_ios'}.md .sortable-handler:after{content:'sort_md'}
|
|
@@ -27,7 +27,6 @@ const Sortable = {
|
|
|
27
27
|
let sortingElOffsetTop;
|
|
28
28
|
let initialScrollTop;
|
|
29
29
|
let wasTapHold;
|
|
30
|
-
|
|
31
30
|
function handleTouchStart(e, isTapHold) {
|
|
32
31
|
isMoved = false;
|
|
33
32
|
isTouched = true;
|
|
@@ -37,26 +36,21 @@ const Sortable = {
|
|
|
37
36
|
indexFrom = $sortingEl.index();
|
|
38
37
|
$sortableContainer = $sortingEl.parents('.sortable');
|
|
39
38
|
const $listGroup = $sortingEl.parents('.list-group');
|
|
40
|
-
|
|
41
39
|
if ($listGroup.length && $listGroup.parents($sortableContainer).length) {
|
|
42
40
|
$sortableContainer = $listGroup;
|
|
43
41
|
}
|
|
44
|
-
|
|
45
42
|
$sortingItems = $sortableContainer.children('ul').children('li:not(.disallow-sorting):not(.no-sorting)');
|
|
46
43
|
if (app.panel) app.panel.allowOpen = false;
|
|
47
44
|
if (app.swipeout) app.swipeout.allow = false;
|
|
48
|
-
|
|
49
45
|
if (isTapHold) {
|
|
50
46
|
$sortingEl.addClass('sorting');
|
|
51
47
|
$sortableContainer.addClass('sortable-sorting');
|
|
52
48
|
wasTapHold = true;
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
|
-
|
|
56
51
|
function handleTouchMove(e) {
|
|
57
52
|
if (!isTouched || !$sortingEl) return;
|
|
58
53
|
const pageY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
|
|
59
|
-
|
|
60
54
|
if (!isMoved) {
|
|
61
55
|
$pageEl = $sortingEl.parents('.page');
|
|
62
56
|
$pageContentEl = $sortingEl.parents('.page-content');
|
|
@@ -73,7 +67,6 @@ const Sortable = {
|
|
|
73
67
|
sortingElHeight = $sortingEl[0].offsetHeight;
|
|
74
68
|
sortingElOffsetTop = $sortingEl.offset().top;
|
|
75
69
|
}
|
|
76
|
-
|
|
77
70
|
isMoved = true;
|
|
78
71
|
e.preventDefault();
|
|
79
72
|
e.f7PreventSwipePanel = true;
|
|
@@ -83,35 +76,28 @@ const Sortable = {
|
|
|
83
76
|
$sortingEl.transform(`translate3d(0,${translate}px,0)`);
|
|
84
77
|
const scrollAddition = 44;
|
|
85
78
|
let allowScroll = true;
|
|
86
|
-
|
|
87
79
|
if (touchesDiff + translateScrollOffset + scrollAddition < -minTop) {
|
|
88
80
|
allowScroll = false;
|
|
89
81
|
}
|
|
90
|
-
|
|
91
82
|
if (touchesDiff + translateScrollOffset - scrollAddition > maxTop) {
|
|
92
83
|
allowScroll = false;
|
|
93
84
|
}
|
|
94
|
-
|
|
95
85
|
$insertBeforeEl = undefined;
|
|
96
86
|
$insertAfterEl = undefined;
|
|
97
87
|
let scrollDiff;
|
|
98
|
-
|
|
99
88
|
if (allowScroll) {
|
|
100
89
|
if (sortingElOffsetTop + touchesDiff + sortingElHeight + scrollAddition > pageOffset + pageHeight) {
|
|
101
90
|
// To Bottom
|
|
102
91
|
scrollDiff = sortingElOffsetTop + touchesDiff + sortingElHeight + scrollAddition - (pageOffset + pageHeight);
|
|
103
92
|
}
|
|
104
|
-
|
|
105
93
|
if (sortingElOffsetTop + touchesDiff < pageOffset + scrollAddition) {
|
|
106
94
|
// To Top
|
|
107
95
|
scrollDiff = sortingElOffsetTop + touchesDiff - pageOffset - scrollAddition;
|
|
108
96
|
}
|
|
109
|
-
|
|
110
97
|
if (scrollDiff) {
|
|
111
98
|
$pageContentEl[0].scrollTop += scrollDiff;
|
|
112
99
|
}
|
|
113
100
|
}
|
|
114
|
-
|
|
115
101
|
$sortingItems.each(el => {
|
|
116
102
|
const $currentEl = $(el);
|
|
117
103
|
if ($currentEl[0] === $sortingEl[0]) return;
|
|
@@ -120,7 +106,6 @@ const Sortable = {
|
|
|
120
106
|
const sortingElOffset = sortingElOffsetLocal + translate;
|
|
121
107
|
let currentTranslate;
|
|
122
108
|
const prevTranslate = $currentEl[0].f7Translate;
|
|
123
|
-
|
|
124
109
|
if (sortingElOffset >= currentElOffset - currentElHeight / 2 && $sortingEl.index() < $currentEl.index()) {
|
|
125
110
|
currentTranslate = -sortingElHeight;
|
|
126
111
|
$currentEl.transform(`translate3d(0, ${currentTranslate}px,0)`);
|
|
@@ -136,33 +121,27 @@ const Sortable = {
|
|
|
136
121
|
currentTranslate = undefined;
|
|
137
122
|
$currentEl.transform('translate3d(0, 0%,0)');
|
|
138
123
|
}
|
|
139
|
-
|
|
140
124
|
if (prevTranslate !== currentTranslate) {
|
|
141
125
|
$currentEl.trigger('sortable:move');
|
|
142
126
|
app.emit('sortableMove', $currentEl[0], $sortableContainer[0]);
|
|
143
127
|
}
|
|
144
|
-
|
|
145
128
|
$currentEl[0].f7Translate = currentTranslate;
|
|
146
129
|
});
|
|
147
130
|
}
|
|
148
|
-
|
|
149
131
|
function handleTouchEnd() {
|
|
150
132
|
if (!isTouched || !isMoved) {
|
|
151
133
|
if (isTouched && !isMoved) {
|
|
152
134
|
if (app.panel) app.panel.allowOpen = true;
|
|
153
135
|
if (app.swipeout) app.swipeout.allow = true;
|
|
154
|
-
|
|
155
136
|
if (wasTapHold) {
|
|
156
137
|
$sortingEl.removeClass('sorting');
|
|
157
138
|
$sortableContainer.removeClass('sortable-sorting');
|
|
158
139
|
}
|
|
159
140
|
}
|
|
160
|
-
|
|
161
141
|
isTouched = false;
|
|
162
142
|
isMoved = false;
|
|
163
143
|
return;
|
|
164
144
|
}
|
|
165
|
-
|
|
166
145
|
if (app.panel) app.panel.allowOpen = true;
|
|
167
146
|
if (app.swipeout) app.swipeout.allow = true;
|
|
168
147
|
$sortingItems.transform('');
|
|
@@ -171,25 +150,20 @@ const Sortable = {
|
|
|
171
150
|
let indexTo;
|
|
172
151
|
if ($insertAfterEl) indexTo = $insertAfterEl.index();else if ($insertBeforeEl) indexTo = $insertBeforeEl.index();
|
|
173
152
|
let moveElements = $sortableContainer.dataset().sortableMoveElements;
|
|
174
|
-
|
|
175
153
|
if (typeof moveElements === 'undefined') {
|
|
176
154
|
moveElements = app.params.sortable.moveElements;
|
|
177
155
|
}
|
|
178
|
-
|
|
179
156
|
if (moveElements) {
|
|
180
157
|
if ($insertAfterEl) {
|
|
181
158
|
$sortingEl.insertAfter($insertAfterEl);
|
|
182
159
|
}
|
|
183
|
-
|
|
184
160
|
if ($insertBeforeEl) {
|
|
185
161
|
$sortingEl.insertBefore($insertBeforeEl);
|
|
186
162
|
}
|
|
187
163
|
}
|
|
188
|
-
|
|
189
164
|
if (($insertAfterEl || $insertBeforeEl) && $sortableContainer.hasClass('virtual-list')) {
|
|
190
165
|
indexFrom = $sortingEl[0].f7VirtualListIndex;
|
|
191
166
|
if (typeof indexFrom === 'undefined') indexFrom = $sortingEl.attr('data-virtual-list-index');
|
|
192
|
-
|
|
193
167
|
if ($insertBeforeEl) {
|
|
194
168
|
indexTo = $insertBeforeEl[0].f7VirtualListIndex;
|
|
195
169
|
if (typeof indexTo === 'undefined') indexTo = $insertBeforeEl.attr('data-virtual-list-index');
|
|
@@ -197,14 +171,12 @@ const Sortable = {
|
|
|
197
171
|
indexTo = $insertAfterEl[0].f7VirtualListIndex;
|
|
198
172
|
if (typeof indexTo === 'undefined') indexTo = $insertAfterEl.attr('data-virtual-list-index');
|
|
199
173
|
}
|
|
200
|
-
|
|
201
174
|
if (indexTo !== null) indexTo = parseInt(indexTo, 10);else indexTo = undefined;
|
|
202
175
|
const virtualList = $sortableContainer[0].f7VirtualList;
|
|
203
176
|
if (indexFrom) indexFrom = parseInt(indexFrom, 10);
|
|
204
177
|
if (indexTo) indexTo = parseInt(indexTo, 10);
|
|
205
178
|
if (virtualList) virtualList.moveItem(indexFrom, indexTo);
|
|
206
179
|
}
|
|
207
|
-
|
|
208
180
|
if (typeof indexTo !== 'undefined' && !Number.isNaN(indexTo) && indexTo !== indexFrom) {
|
|
209
181
|
$sortingEl.trigger('sortable:sort', {
|
|
210
182
|
from: indexFrom,
|
|
@@ -216,13 +188,11 @@ const Sortable = {
|
|
|
216
188
|
el: $sortingEl[0]
|
|
217
189
|
}, $sortableContainer[0]);
|
|
218
190
|
}
|
|
219
|
-
|
|
220
191
|
$insertBeforeEl = undefined;
|
|
221
192
|
$insertAfterEl = undefined;
|
|
222
193
|
isTouched = false;
|
|
223
194
|
isMoved = false;
|
|
224
195
|
}
|
|
225
|
-
|
|
226
196
|
const activeListener = getSupport().passiveListener ? {
|
|
227
197
|
passive: false,
|
|
228
198
|
capture: false
|
|
@@ -234,12 +204,10 @@ const Sortable = {
|
|
|
234
204
|
handleTouchStart(pointerEvent, true);
|
|
235
205
|
});
|
|
236
206
|
},
|
|
237
|
-
|
|
238
207
|
enable(el) {
|
|
239
208
|
if (el === void 0) {
|
|
240
209
|
el = '.list.sortable';
|
|
241
210
|
}
|
|
242
|
-
|
|
243
211
|
const app = this;
|
|
244
212
|
const $el = $(el);
|
|
245
213
|
if ($el.length === 0) return;
|
|
@@ -247,12 +215,10 @@ const Sortable = {
|
|
|
247
215
|
$el.trigger('sortable:enable');
|
|
248
216
|
app.emit('sortableEnable', $el[0]);
|
|
249
217
|
},
|
|
250
|
-
|
|
251
218
|
disable(el) {
|
|
252
219
|
if (el === void 0) {
|
|
253
220
|
el = '.list.sortable';
|
|
254
221
|
}
|
|
255
|
-
|
|
256
222
|
const app = this;
|
|
257
223
|
const $el = $(el);
|
|
258
224
|
if ($el.length === 0) return;
|
|
@@ -260,23 +226,19 @@ const Sortable = {
|
|
|
260
226
|
$el.trigger('sortable:disable');
|
|
261
227
|
app.emit('sortableDisable', $el[0]);
|
|
262
228
|
},
|
|
263
|
-
|
|
264
229
|
toggle(el) {
|
|
265
230
|
if (el === void 0) {
|
|
266
231
|
el = '.list.sortable';
|
|
267
232
|
}
|
|
268
|
-
|
|
269
233
|
const app = this;
|
|
270
234
|
const $el = $(el);
|
|
271
235
|
if ($el.length === 0) return;
|
|
272
|
-
|
|
273
236
|
if ($el.hasClass('sortable-enabled')) {
|
|
274
237
|
app.sortable.disable($el);
|
|
275
238
|
} else {
|
|
276
239
|
app.sortable.enable($el);
|
|
277
240
|
}
|
|
278
241
|
}
|
|
279
|
-
|
|
280
242
|
};
|
|
281
243
|
export default {
|
|
282
244
|
name: 'sortable',
|
|
@@ -285,28 +247,24 @@ export default {
|
|
|
285
247
|
moveElements: true
|
|
286
248
|
}
|
|
287
249
|
},
|
|
288
|
-
|
|
289
250
|
create() {
|
|
290
251
|
const app = this;
|
|
291
252
|
bindMethods(app, {
|
|
292
253
|
sortable: Sortable
|
|
293
254
|
});
|
|
294
255
|
},
|
|
295
|
-
|
|
296
256
|
on: {
|
|
297
257
|
init() {
|
|
298
258
|
const app = this;
|
|
299
259
|
if (!app.params.sortable) return;
|
|
300
260
|
app.sortable.init();
|
|
301
261
|
}
|
|
302
|
-
|
|
303
262
|
},
|
|
304
263
|
clicks: {
|
|
305
264
|
'.sortable-enable': function enable($clickedEl, data) {
|
|
306
265
|
if (data === void 0) {
|
|
307
266
|
data = {};
|
|
308
267
|
}
|
|
309
|
-
|
|
310
268
|
const app = this;
|
|
311
269
|
app.sortable.enable(data.sortable);
|
|
312
270
|
},
|
|
@@ -314,7 +272,6 @@ export default {
|
|
|
314
272
|
if (data === void 0) {
|
|
315
273
|
data = {};
|
|
316
274
|
}
|
|
317
|
-
|
|
318
275
|
const app = this;
|
|
319
276
|
app.sortable.disable(data.sortable);
|
|
320
277
|
},
|
|
@@ -322,7 +279,6 @@ export default {
|
|
|
322
279
|
if (data === void 0) {
|
|
323
280
|
data = {};
|
|
324
281
|
}
|
|
325
|
-
|
|
326
282
|
const app = this;
|
|
327
283
|
app.sortable.toggle(data.sortable);
|
|
328
284
|
}
|
|
@@ -2,43 +2,34 @@ import { getWindow } from 'ssr-window';
|
|
|
2
2
|
import $ from '../../shared/dom7.js';
|
|
3
3
|
import { bindMethods } from '../../shared/utils.js';
|
|
4
4
|
import { getDevice } from '../../shared/get-device.js';
|
|
5
|
-
|
|
6
5
|
const isCapacitor = () => {
|
|
7
6
|
const window = getWindow();
|
|
8
7
|
return window.Capacitor && window.Capacitor.isNative && window.Capacitor.Plugins && window.Capacitor.Plugins.StatusBar;
|
|
9
8
|
};
|
|
10
|
-
|
|
11
9
|
const Statusbar = {
|
|
12
10
|
hide() {
|
|
13
11
|
const window = getWindow();
|
|
14
12
|
const device = getDevice();
|
|
15
|
-
|
|
16
13
|
if (device.cordova && window.StatusBar) {
|
|
17
14
|
window.StatusBar.hide();
|
|
18
15
|
}
|
|
19
|
-
|
|
20
16
|
if (isCapacitor()) {
|
|
21
17
|
window.Capacitor.Plugins.StatusBar.hide();
|
|
22
18
|
}
|
|
23
19
|
},
|
|
24
|
-
|
|
25
20
|
show() {
|
|
26
21
|
const window = getWindow();
|
|
27
22
|
const device = getDevice();
|
|
28
|
-
|
|
29
23
|
if (device.cordova && window.StatusBar) {
|
|
30
24
|
window.StatusBar.show();
|
|
31
25
|
}
|
|
32
|
-
|
|
33
26
|
if (isCapacitor()) {
|
|
34
27
|
window.Capacitor.Plugins.StatusBar.show();
|
|
35
28
|
}
|
|
36
29
|
},
|
|
37
|
-
|
|
38
30
|
onClick() {
|
|
39
31
|
const app = this;
|
|
40
32
|
let pageContent;
|
|
41
|
-
|
|
42
33
|
if ($('.popup.modal-in').length > 0) {
|
|
43
34
|
// Check for opened popup
|
|
44
35
|
pageContent = $('.popup.modal-in').find('.page:not(.page-previous):not(.page-next):not(.cached)').find('.page-content');
|
|
@@ -53,21 +44,17 @@ const Statusbar = {
|
|
|
53
44
|
} else {
|
|
54
45
|
pageContent = app.$el.children('.view').find('.page:not(.page-previous):not(.page-next):not(.cached)').find('.page-content');
|
|
55
46
|
}
|
|
56
|
-
|
|
57
47
|
if (pageContent && pageContent.length > 0) {
|
|
58
48
|
// Check for tab
|
|
59
49
|
if (pageContent.hasClass('tab')) {
|
|
60
50
|
pageContent = pageContent.parent('.tabs').children('.page-content.tab-active');
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
if (pageContent.length > 0) pageContent.scrollTop(0, 300);
|
|
64
53
|
}
|
|
65
54
|
},
|
|
66
|
-
|
|
67
55
|
setTextColor(color) {
|
|
68
56
|
const window = getWindow();
|
|
69
57
|
const device = getDevice();
|
|
70
|
-
|
|
71
58
|
if (device.cordova && window.StatusBar) {
|
|
72
59
|
if (color === 'white') {
|
|
73
60
|
window.StatusBar.styleLightContent();
|
|
@@ -75,7 +62,6 @@ const Statusbar = {
|
|
|
75
62
|
window.StatusBar.styleDefault();
|
|
76
63
|
}
|
|
77
64
|
}
|
|
78
|
-
|
|
79
65
|
if (isCapacitor()) {
|
|
80
66
|
if (color === 'white') {
|
|
81
67
|
window.Capacitor.Plugins.StatusBar.setStyle({
|
|
@@ -88,22 +74,18 @@ const Statusbar = {
|
|
|
88
74
|
}
|
|
89
75
|
}
|
|
90
76
|
},
|
|
91
|
-
|
|
92
77
|
setBackgroundColor(color) {
|
|
93
78
|
const window = getWindow();
|
|
94
79
|
const device = getDevice();
|
|
95
|
-
|
|
96
80
|
if (device.cordova && window.StatusBar) {
|
|
97
81
|
window.StatusBar.backgroundColorByHexString(color);
|
|
98
82
|
}
|
|
99
|
-
|
|
100
83
|
if (isCapacitor()) {
|
|
101
84
|
window.Capacitor.Plugins.StatusBar.setBackgroundColor({
|
|
102
85
|
color
|
|
103
86
|
});
|
|
104
87
|
}
|
|
105
88
|
},
|
|
106
|
-
|
|
107
89
|
isVisible() {
|
|
108
90
|
const window = getWindow();
|
|
109
91
|
const device = getDevice();
|
|
@@ -111,36 +93,29 @@ const Statusbar = {
|
|
|
111
93
|
if (device.cordova && window.StatusBar) {
|
|
112
94
|
resolve(window.StatusBar.isVisible);
|
|
113
95
|
}
|
|
114
|
-
|
|
115
96
|
if (isCapacitor()) {
|
|
116
97
|
window.Capacitor.Plugins.StatusBar.getInfo().then(info => {
|
|
117
98
|
resolve(info.visible);
|
|
118
99
|
});
|
|
119
100
|
}
|
|
120
|
-
|
|
121
101
|
resolve(false);
|
|
122
102
|
});
|
|
123
103
|
},
|
|
124
|
-
|
|
125
104
|
overlaysWebView(overlays) {
|
|
126
105
|
if (overlays === void 0) {
|
|
127
106
|
overlays = true;
|
|
128
107
|
}
|
|
129
|
-
|
|
130
108
|
const window = getWindow();
|
|
131
109
|
const device = getDevice();
|
|
132
|
-
|
|
133
110
|
if (device.cordova && window.StatusBar) {
|
|
134
111
|
window.StatusBar.overlaysWebView(overlays);
|
|
135
112
|
}
|
|
136
|
-
|
|
137
113
|
if (isCapacitor()) {
|
|
138
114
|
window.Capacitor.Plugins.StatusBar.setOverlaysWebView({
|
|
139
115
|
overlay: overlays
|
|
140
116
|
});
|
|
141
117
|
}
|
|
142
118
|
},
|
|
143
|
-
|
|
144
119
|
init() {
|
|
145
120
|
const app = this;
|
|
146
121
|
const window = getWindow();
|
|
@@ -149,33 +124,28 @@ const Statusbar = {
|
|
|
149
124
|
if (!params.enabled) return;
|
|
150
125
|
const isCordova = device.cordova && window.StatusBar;
|
|
151
126
|
const isCap = isCapacitor();
|
|
152
|
-
|
|
153
127
|
if (isCordova || isCap) {
|
|
154
128
|
if (params.scrollTopOnClick) {
|
|
155
129
|
$(window).on('statusTap', Statusbar.onClick.bind(app));
|
|
156
130
|
}
|
|
157
|
-
|
|
158
131
|
if (device.ios) {
|
|
159
132
|
if (params.iosOverlaysWebView) {
|
|
160
133
|
Statusbar.overlaysWebView(true);
|
|
161
134
|
} else {
|
|
162
135
|
Statusbar.overlaysWebView(false);
|
|
163
136
|
}
|
|
164
|
-
|
|
165
137
|
if (params.iosTextColor === 'white') {
|
|
166
138
|
Statusbar.setTextColor('white');
|
|
167
139
|
} else {
|
|
168
140
|
Statusbar.setTextColor('black');
|
|
169
141
|
}
|
|
170
142
|
}
|
|
171
|
-
|
|
172
143
|
if (device.android) {
|
|
173
144
|
if (params.androidOverlaysWebView) {
|
|
174
145
|
Statusbar.overlaysWebView(true);
|
|
175
146
|
} else {
|
|
176
147
|
Statusbar.overlaysWebView(false);
|
|
177
148
|
}
|
|
178
|
-
|
|
179
149
|
if (params.androidTextColor === 'white') {
|
|
180
150
|
Statusbar.setTextColor('white');
|
|
181
151
|
} else {
|
|
@@ -183,16 +153,13 @@ const Statusbar = {
|
|
|
183
153
|
}
|
|
184
154
|
}
|
|
185
155
|
}
|
|
186
|
-
|
|
187
156
|
if (params.iosBackgroundColor && device.ios) {
|
|
188
157
|
Statusbar.setBackgroundColor(params.iosBackgroundColor);
|
|
189
158
|
}
|
|
190
|
-
|
|
191
159
|
if (params.androidBackgroundColor && device.android) {
|
|
192
160
|
Statusbar.setBackgroundColor(params.androidBackgroundColor);
|
|
193
161
|
}
|
|
194
162
|
}
|
|
195
|
-
|
|
196
163
|
};
|
|
197
164
|
export default {
|
|
198
165
|
name: 'statusbar',
|
|
@@ -208,19 +175,16 @@ export default {
|
|
|
208
175
|
androidBackgroundColor: null
|
|
209
176
|
}
|
|
210
177
|
},
|
|
211
|
-
|
|
212
178
|
create() {
|
|
213
179
|
const app = this;
|
|
214
180
|
bindMethods(app, {
|
|
215
181
|
statusbar: Statusbar
|
|
216
182
|
});
|
|
217
183
|
},
|
|
218
|
-
|
|
219
184
|
on: {
|
|
220
185
|
init() {
|
|
221
186
|
const app = this;
|
|
222
187
|
Statusbar.init.call(app);
|
|
223
188
|
}
|
|
224
|
-
|
|
225
189
|
}
|
|
226
190
|
};
|