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
|
@@ -12,7 +12,6 @@ export default {
|
|
|
12
12
|
class: "color-picker-current-color"
|
|
13
13
|
})));
|
|
14
14
|
},
|
|
15
|
-
|
|
16
15
|
init(self) {
|
|
17
16
|
function handleInitialColorClick() {
|
|
18
17
|
if (self.initialValue) {
|
|
@@ -26,25 +25,19 @@ export default {
|
|
|
26
25
|
});
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
|
-
|
|
30
28
|
self.$el.on('click', '.color-picker-initial-color', handleInitialColorClick);
|
|
31
|
-
|
|
32
29
|
self.destroyInitialCurrentEvents = function destroyInitialCurrentEvents() {
|
|
33
30
|
self.$el.off('click', '.color-picker-initial-color', handleInitialColorClick);
|
|
34
31
|
};
|
|
35
32
|
},
|
|
36
|
-
|
|
37
33
|
update(self) {
|
|
38
34
|
self.$el.find('.color-picker-module-initial-current-colors .color-picker-initial-color').css('background-color', self.initialValue.hex);
|
|
39
35
|
self.$el.find('.color-picker-module-initial-current-colors .color-picker-current-color').css('background-color', self.value.hex);
|
|
40
36
|
},
|
|
41
|
-
|
|
42
37
|
destroy(self) {
|
|
43
38
|
if (self.destroyInitialCurrentEvents) {
|
|
44
39
|
self.destroyInitialCurrentEvents();
|
|
45
40
|
}
|
|
46
|
-
|
|
47
41
|
delete self.destroyInitialCurrentEvents;
|
|
48
42
|
}
|
|
49
|
-
|
|
50
43
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint indent: ["off"] */
|
|
2
2
|
import $ from '../../../shared/dom7.js';
|
|
3
3
|
/** @jsx $jsx */
|
|
4
|
-
|
|
5
4
|
import $jsx from '../../../shared/$jsx.js';
|
|
6
5
|
export default {
|
|
7
6
|
render(self) {
|
|
@@ -11,15 +10,14 @@ export default {
|
|
|
11
10
|
class: "color-picker-palette"
|
|
12
11
|
}, self.params.palette.map(p => {
|
|
13
12
|
if (Array.isArray(p)) {
|
|
14
|
-
let row = '<div class="color-picker-palette-row">';
|
|
15
|
-
|
|
13
|
+
let row = '<div class="color-picker-palette-row">';
|
|
14
|
+
// prettier-ignore
|
|
16
15
|
row += p.map(c => `
|
|
17
16
|
<div class="color-picker-palette-value" data-palette-color="${c}" style="background-color: ${c}"></div>
|
|
18
17
|
`).join('');
|
|
19
18
|
row += '</div>';
|
|
20
19
|
return row;
|
|
21
20
|
}
|
|
22
|
-
|
|
23
21
|
return $jsx("div", {
|
|
24
22
|
class: "color-picker-palette-value",
|
|
25
23
|
"data-palette-color": p,
|
|
@@ -27,7 +25,6 @@ export default {
|
|
|
27
25
|
});
|
|
28
26
|
})));
|
|
29
27
|
},
|
|
30
|
-
|
|
31
28
|
init(self) {
|
|
32
29
|
function handlePaletteClick(e) {
|
|
33
30
|
const hex = $(e.target).attr('data-palette-color');
|
|
@@ -35,20 +32,15 @@ export default {
|
|
|
35
32
|
hex
|
|
36
33
|
});
|
|
37
34
|
}
|
|
38
|
-
|
|
39
35
|
self.$el.on('click', '.color-picker-module-palette .color-picker-palette-value', handlePaletteClick);
|
|
40
|
-
|
|
41
36
|
self.destroyPaletteEvents = function destroyPaletteEvents() {
|
|
42
37
|
self.$el.off('click', '.color-picker-module-hex input', handlePaletteClick);
|
|
43
38
|
};
|
|
44
39
|
},
|
|
45
|
-
|
|
46
40
|
destroy(self) {
|
|
47
41
|
if (self.destroyPaletteEvents) {
|
|
48
42
|
self.destroyPaletteEvents();
|
|
49
43
|
}
|
|
50
|
-
|
|
51
44
|
delete self.destroyPaletteEvents;
|
|
52
45
|
}
|
|
53
|
-
|
|
54
46
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import $ from '../../../shared/dom7.js';
|
|
2
2
|
/** @jsx $jsx */
|
|
3
|
-
|
|
4
3
|
import $jsx from '../../../shared/$jsx.js';
|
|
5
4
|
export default {
|
|
6
5
|
render(self) {
|
|
@@ -67,7 +66,6 @@ export default {
|
|
|
67
66
|
class: "color-picker-value-bar-blue"
|
|
68
67
|
}))));
|
|
69
68
|
},
|
|
70
|
-
|
|
71
69
|
init(self) {
|
|
72
70
|
self.redBar = self.app.range.create({
|
|
73
71
|
el: self.$el.find('.color-picker-bar-red'),
|
|
@@ -82,7 +80,6 @@ export default {
|
|
|
82
80
|
rgb: [value, self.value.rgb[1], self.value.rgb[2]]
|
|
83
81
|
});
|
|
84
82
|
}
|
|
85
|
-
|
|
86
83
|
}
|
|
87
84
|
});
|
|
88
85
|
self.greenBar = self.app.range.create({
|
|
@@ -98,7 +95,6 @@ export default {
|
|
|
98
95
|
rgb: [self.value.rgb[0], value, self.value.rgb[2]]
|
|
99
96
|
});
|
|
100
97
|
}
|
|
101
|
-
|
|
102
98
|
}
|
|
103
99
|
});
|
|
104
100
|
self.blueBar = self.app.range.create({
|
|
@@ -114,34 +110,27 @@ export default {
|
|
|
114
110
|
rgb: [self.value.rgb[0], self.value.rgb[1], value]
|
|
115
111
|
});
|
|
116
112
|
}
|
|
117
|
-
|
|
118
113
|
}
|
|
119
114
|
});
|
|
120
|
-
|
|
121
115
|
function handleInputChange(e) {
|
|
122
116
|
const rgb = [...self.value.rgb];
|
|
123
117
|
const index = parseInt($(e.target).attr('data-color-index'), 10);
|
|
124
118
|
let value = parseInt(e.target.value, 10);
|
|
125
|
-
|
|
126
119
|
if (Number.isNaN(value)) {
|
|
127
120
|
e.target.value = rgb[index];
|
|
128
121
|
return;
|
|
129
122
|
}
|
|
130
|
-
|
|
131
123
|
value = Math.max(0, Math.min(255, value));
|
|
132
124
|
rgb[index] = value;
|
|
133
125
|
self.setValue({
|
|
134
126
|
rgb
|
|
135
127
|
});
|
|
136
128
|
}
|
|
137
|
-
|
|
138
129
|
self.$el.on('change', '.color-picker-module-rgb-bars input', handleInputChange);
|
|
139
|
-
|
|
140
130
|
self.destroyRgbBarsEvents = function destroyRgbBarsEvents() {
|
|
141
131
|
self.$el.off('change', '.color-picker-module-rgb-bars input', handleInputChange);
|
|
142
132
|
};
|
|
143
133
|
},
|
|
144
|
-
|
|
145
134
|
update(self) {
|
|
146
135
|
const {
|
|
147
136
|
value,
|
|
@@ -165,7 +154,6 @@ export default {
|
|
|
165
154
|
redBar.$el.find('.range-bar').css('background-image', `linear-gradient(to top, rgb(0, ${rgb[1]}, ${rgb[2]}), rgb(255, ${rgb[1]}, ${rgb[2]}))`);
|
|
166
155
|
greenBar.$el.find('.range-bar').css('background-image', `linear-gradient(to top, rgb(${rgb[0]}, 0, ${rgb[2]}), rgb(${rgb[0]}, 255, ${rgb[2]}))`);
|
|
167
156
|
blueBar.$el.find('.range-bar').css('background-image', `linear-gradient(to top, rgb(${rgb[0]}, ${rgb[1]}, 0), rgb(${rgb[0]}, ${rgb[1]}, 255))`);
|
|
168
|
-
|
|
169
157
|
if (barValue && barValueEditable) {
|
|
170
158
|
self.$el.find('input.color-picker-value-bar-red').val(rgb[0]);
|
|
171
159
|
self.$el.find('input.color-picker-value-bar-green').val(rgb[1]);
|
|
@@ -176,25 +164,20 @@ export default {
|
|
|
176
164
|
self.$el.find('span.color-picker-value-bar-blue').text(rgb[2]);
|
|
177
165
|
}
|
|
178
166
|
},
|
|
179
|
-
|
|
180
167
|
destroy(self) {
|
|
181
168
|
if (self.redBar && self.redBar.destroy) {
|
|
182
169
|
self.redBar.destroy();
|
|
183
170
|
}
|
|
184
|
-
|
|
185
171
|
if (self.greenBar && self.greenBar.destroy) {
|
|
186
172
|
self.greenBar.destroy();
|
|
187
173
|
}
|
|
188
|
-
|
|
189
174
|
if (self.blueBar && self.blueBar.destroy) {
|
|
190
175
|
self.blueBar.destroy();
|
|
191
176
|
}
|
|
192
|
-
|
|
193
177
|
delete self.redBar;
|
|
194
178
|
delete self.greenBar;
|
|
195
179
|
delete self.blueBar;
|
|
196
180
|
if (self.destroyRgbBarsEvents) self.destroyRgbBarsEvents();
|
|
197
181
|
delete self.destroyRgbBarsEvents;
|
|
198
182
|
}
|
|
199
|
-
|
|
200
183
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import $ from '../../../shared/dom7.js';
|
|
2
2
|
/** @jsx $jsx */
|
|
3
|
-
|
|
4
3
|
import $jsx from '../../../shared/$jsx.js';
|
|
5
4
|
export default {
|
|
6
5
|
render(self) {
|
|
@@ -67,7 +66,6 @@ export default {
|
|
|
67
66
|
class: "color-picker-value-blue"
|
|
68
67
|
}))));
|
|
69
68
|
},
|
|
70
|
-
|
|
71
69
|
init(self) {
|
|
72
70
|
self.redRangeSlider = self.app.range.create({
|
|
73
71
|
el: self.$el.find('.color-picker-slider-red'),
|
|
@@ -81,7 +79,6 @@ export default {
|
|
|
81
79
|
rgb: [value, self.value.rgb[1], self.value.rgb[2]]
|
|
82
80
|
});
|
|
83
81
|
}
|
|
84
|
-
|
|
85
82
|
}
|
|
86
83
|
});
|
|
87
84
|
self.greenRangeSlider = self.app.range.create({
|
|
@@ -96,7 +93,6 @@ export default {
|
|
|
96
93
|
rgb: [self.value.rgb[0], value, self.value.rgb[2]]
|
|
97
94
|
});
|
|
98
95
|
}
|
|
99
|
-
|
|
100
96
|
}
|
|
101
97
|
});
|
|
102
98
|
self.blueRangeSlider = self.app.range.create({
|
|
@@ -111,34 +107,27 @@ export default {
|
|
|
111
107
|
rgb: [self.value.rgb[0], self.value.rgb[1], value]
|
|
112
108
|
});
|
|
113
109
|
}
|
|
114
|
-
|
|
115
110
|
}
|
|
116
111
|
});
|
|
117
|
-
|
|
118
112
|
function handleInputChange(e) {
|
|
119
113
|
const rgb = [...self.value.rgb];
|
|
120
114
|
const index = parseInt($(e.target).attr('data-color-index'), 10);
|
|
121
115
|
let value = parseInt(e.target.value, 10);
|
|
122
|
-
|
|
123
116
|
if (Number.isNaN(value)) {
|
|
124
117
|
e.target.value = rgb[index];
|
|
125
118
|
return;
|
|
126
119
|
}
|
|
127
|
-
|
|
128
120
|
value = Math.max(0, Math.min(255, value));
|
|
129
121
|
rgb[index] = value;
|
|
130
122
|
self.setValue({
|
|
131
123
|
rgb
|
|
132
124
|
});
|
|
133
125
|
}
|
|
134
|
-
|
|
135
126
|
self.$el.on('change', '.color-picker-module-rgb-sliders input', handleInputChange);
|
|
136
|
-
|
|
137
127
|
self.destroyRgbSlidersEvents = function destroyRgbSlidersEvents() {
|
|
138
128
|
self.$el.off('change', '.color-picker-module-rgb-sliders input', handleInputChange);
|
|
139
129
|
};
|
|
140
130
|
},
|
|
141
|
-
|
|
142
131
|
update(self) {
|
|
143
132
|
const {
|
|
144
133
|
app,
|
|
@@ -167,7 +156,6 @@ export default {
|
|
|
167
156
|
redRangeSlider.$el.find('.range-bar').css('background-image', `linear-gradient(${direction}, rgb(0, ${rgb[1]}, ${rgb[2]}), rgb(255, ${rgb[1]}, ${rgb[2]}))`);
|
|
168
157
|
greenRangeSlider.$el.find('.range-bar').css('background-image', `linear-gradient(${direction}, rgb(${rgb[0]}, 0, ${rgb[2]}), rgb(${rgb[0]}, 255, ${rgb[2]}))`);
|
|
169
158
|
blueRangeSlider.$el.find('.range-bar').css('background-image', `linear-gradient(${direction}, rgb(${rgb[0]}, ${rgb[1]}, 0), rgb(${rgb[0]}, ${rgb[1]}, 255))`);
|
|
170
|
-
|
|
171
159
|
if (sliderValue && sliderValueEditable) {
|
|
172
160
|
self.$el.find('input.color-picker-value-red').val(rgb[0]);
|
|
173
161
|
self.$el.find('input.color-picker-value-green').val(rgb[1]);
|
|
@@ -178,25 +166,20 @@ export default {
|
|
|
178
166
|
self.$el.find('span.color-picker-value-blue').text(rgb[2]);
|
|
179
167
|
}
|
|
180
168
|
},
|
|
181
|
-
|
|
182
169
|
destroy(self) {
|
|
183
170
|
if (self.redRangeSlider && self.redRangeSlider.destroy) {
|
|
184
171
|
self.redRangeSlider.destroy();
|
|
185
172
|
}
|
|
186
|
-
|
|
187
173
|
if (self.greenRangeSlider && self.greenRangeSlider.destroy) {
|
|
188
174
|
self.greenRangeSlider.destroy();
|
|
189
175
|
}
|
|
190
|
-
|
|
191
176
|
if (self.blueRangeSlider && self.blueRangeSlider.destroy) {
|
|
192
177
|
self.blueRangeSlider.destroy();
|
|
193
178
|
}
|
|
194
|
-
|
|
195
179
|
delete self.redRangeSlider;
|
|
196
180
|
delete self.greenRangeSlider;
|
|
197
181
|
delete self.blueRangeSlider;
|
|
198
182
|
if (self.destroyRgbSlidersEvents) self.destroyRgbSlidersEvents();
|
|
199
183
|
delete self.destroyRgbSlidersEvents;
|
|
200
184
|
}
|
|
201
|
-
|
|
202
185
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import $ from '../../../shared/dom7.js';
|
|
2
2
|
import { getSupport } from '../../../shared/get-support.js';
|
|
3
3
|
/** @jsx $jsx */
|
|
4
|
-
|
|
5
4
|
import $jsx from '../../../shared/$jsx.js';
|
|
6
5
|
export default {
|
|
7
6
|
render() {
|
|
@@ -14,7 +13,6 @@ export default {
|
|
|
14
13
|
class: "color-picker-sb-spectrum-handle"
|
|
15
14
|
})));
|
|
16
15
|
},
|
|
17
|
-
|
|
18
16
|
init(self) {
|
|
19
17
|
const {
|
|
20
18
|
app
|
|
@@ -31,7 +29,6 @@ export default {
|
|
|
31
29
|
const {
|
|
32
30
|
$el
|
|
33
31
|
} = self;
|
|
34
|
-
|
|
35
32
|
function setSBFromSpecterCoords(x, y) {
|
|
36
33
|
let s = (x - specterRect.left) / specterRect.width;
|
|
37
34
|
let b = (y - specterRect.top) / specterRect.height;
|
|
@@ -41,7 +38,6 @@ export default {
|
|
|
41
38
|
hsb: [self.value.hue, s, b]
|
|
42
39
|
});
|
|
43
40
|
}
|
|
44
|
-
|
|
45
41
|
function handleTouchStart(e) {
|
|
46
42
|
if (isMoved || isTouched) return;
|
|
47
43
|
touchStartX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
|
|
@@ -50,56 +46,44 @@ export default {
|
|
|
50
46
|
touchCurrentY = touchStartY;
|
|
51
47
|
const $targetEl = $(e.target);
|
|
52
48
|
specterHandleIsTouched = $targetEl.closest('.color-picker-sb-spectrum-handle').length > 0;
|
|
53
|
-
|
|
54
49
|
if (!specterHandleIsTouched) {
|
|
55
50
|
specterIsTouched = $targetEl.closest('.color-picker-sb-spectrum').length > 0;
|
|
56
51
|
}
|
|
57
|
-
|
|
58
52
|
if (specterIsTouched) {
|
|
59
53
|
specterRect = $el.find('.color-picker-sb-spectrum')[0].getBoundingClientRect();
|
|
60
54
|
setSBFromSpecterCoords(touchStartX, touchStartY);
|
|
61
55
|
}
|
|
62
|
-
|
|
63
56
|
if (specterHandleIsTouched || specterIsTouched) {
|
|
64
57
|
$el.find('.color-picker-sb-spectrum-handle').addClass('color-picker-sb-spectrum-handle-pressed');
|
|
65
58
|
}
|
|
66
59
|
}
|
|
67
|
-
|
|
68
60
|
function handleTouchMove(e) {
|
|
69
61
|
if (!(specterIsTouched || specterHandleIsTouched)) return;
|
|
70
62
|
touchCurrentX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
|
|
71
63
|
touchCurrentY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
|
|
72
64
|
e.preventDefault();
|
|
73
|
-
|
|
74
65
|
if (!isMoved) {
|
|
75
66
|
// First move
|
|
76
67
|
isMoved = true;
|
|
77
|
-
|
|
78
68
|
if (specterHandleIsTouched) {
|
|
79
69
|
specterRect = $el.find('.color-picker-sb-spectrum')[0].getBoundingClientRect();
|
|
80
70
|
}
|
|
81
71
|
}
|
|
82
|
-
|
|
83
72
|
if (specterIsTouched || specterHandleIsTouched) {
|
|
84
73
|
setSBFromSpecterCoords(touchCurrentX, touchCurrentY);
|
|
85
74
|
}
|
|
86
75
|
}
|
|
87
|
-
|
|
88
76
|
function handleTouchEnd() {
|
|
89
77
|
isMoved = false;
|
|
90
|
-
|
|
91
78
|
if (specterIsTouched || specterHandleIsTouched) {
|
|
92
79
|
$el.find('.color-picker-sb-spectrum-handle').removeClass('color-picker-sb-spectrum-handle-pressed');
|
|
93
80
|
}
|
|
94
|
-
|
|
95
81
|
specterIsTouched = false;
|
|
96
82
|
specterHandleIsTouched = false;
|
|
97
83
|
}
|
|
98
|
-
|
|
99
84
|
function handleResize() {
|
|
100
85
|
self.modules['sb-spectrum'].update(self);
|
|
101
86
|
}
|
|
102
|
-
|
|
103
87
|
const passiveListener = app.touchEvents.start === 'touchstart' && getSupport().passiveListener ? {
|
|
104
88
|
passive: true,
|
|
105
89
|
capture: false
|
|
@@ -108,7 +92,6 @@ export default {
|
|
|
108
92
|
app.on('touchmove:active', handleTouchMove);
|
|
109
93
|
app.on('touchend:passive', handleTouchEnd);
|
|
110
94
|
app.on('resize', handleResize);
|
|
111
|
-
|
|
112
95
|
self.destroySpectrumEvents = function destroySpectrumEvents() {
|
|
113
96
|
self.$el.off(app.touchEvents.start, handleTouchStart, passiveListener);
|
|
114
97
|
app.off('touchmove:active', handleTouchMove);
|
|
@@ -116,7 +99,6 @@ export default {
|
|
|
116
99
|
app.off('resize', handleResize);
|
|
117
100
|
};
|
|
118
101
|
},
|
|
119
|
-
|
|
120
102
|
update(self) {
|
|
121
103
|
const {
|
|
122
104
|
value
|
|
@@ -130,10 +112,8 @@ export default {
|
|
|
130
112
|
self.$el.find('.color-picker-sb-spectrum').css('background-color', `hsl(${hsl[0]}, 100%, 50%)`);
|
|
131
113
|
self.$el.find('.color-picker-sb-spectrum-handle').css('background-color', `hsl(${hsl[0]}, ${hsl[1] * 100}%, ${hsl[2] * 100}%)`).transform(`translate(${specterWidth * hsb[1]}px, ${specterHeight * (1 - hsb[2])}px)`);
|
|
132
114
|
},
|
|
133
|
-
|
|
134
115
|
destroy(self) {
|
|
135
116
|
if (self.destroySpectrumEvents) self.destroySpectrumEvents();
|
|
136
117
|
delete self.destroySpectrumEvents;
|
|
137
118
|
}
|
|
138
|
-
|
|
139
119
|
};
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import $ from '../../../shared/dom7.js';
|
|
2
2
|
import { getSupport } from '../../../shared/get-support.js';
|
|
3
3
|
/** @jsx $jsx */
|
|
4
|
-
|
|
5
4
|
import $jsx from '../../../shared/$jsx.js';
|
|
6
|
-
|
|
7
5
|
function svgWheelCircles() {
|
|
8
6
|
const total = 256;
|
|
9
7
|
let circles = '';
|
|
10
|
-
|
|
11
8
|
for (let i = total; i > 0; i -= 1) {
|
|
12
9
|
const angle = i * Math.PI / (total / 2);
|
|
13
10
|
const hue = 360 / total * i;
|
|
14
11
|
circles += `<circle cx="${150 - Math.sin(angle) * 125}" cy="${150 - Math.cos(angle) * 125}" r="25" fill="hsl(${hue}, 100%, 50%)"></circle>`;
|
|
15
12
|
}
|
|
16
|
-
|
|
17
13
|
return circles;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
15
|
export default {
|
|
21
16
|
render() {
|
|
22
17
|
return $jsx("div", {
|
|
@@ -36,7 +31,6 @@ export default {
|
|
|
36
31
|
class: "color-picker-sb-spectrum-handle"
|
|
37
32
|
}))));
|
|
38
33
|
},
|
|
39
|
-
|
|
40
34
|
init(self) {
|
|
41
35
|
const {
|
|
42
36
|
app
|
|
@@ -56,7 +50,6 @@ export default {
|
|
|
56
50
|
const {
|
|
57
51
|
$el
|
|
58
52
|
} = self;
|
|
59
|
-
|
|
60
53
|
function setHueFromWheelCoords(x, y) {
|
|
61
54
|
const wheelCenterX = wheelRect.left + wheelRect.width / 2;
|
|
62
55
|
const wheelCenterY = wheelRect.top + wheelRect.height / 2;
|
|
@@ -68,7 +61,6 @@ export default {
|
|
|
68
61
|
hue: angleDeg
|
|
69
62
|
});
|
|
70
63
|
}
|
|
71
|
-
|
|
72
64
|
function setSBFromSpecterCoords(x, y) {
|
|
73
65
|
let s = (x - specterRect.left) / specterRect.width;
|
|
74
66
|
let b = (y - specterRect.top) / specterRect.height;
|
|
@@ -78,7 +70,6 @@ export default {
|
|
|
78
70
|
hsb: [self.value.hue, s, b]
|
|
79
71
|
});
|
|
80
72
|
}
|
|
81
|
-
|
|
82
73
|
function handleTouchStart(e) {
|
|
83
74
|
if (isMoved || isTouched) return;
|
|
84
75
|
touchStartX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
|
|
@@ -89,71 +80,56 @@ export default {
|
|
|
89
80
|
wheelHandleIsTouched = $targetEl.closest('.color-picker-wheel-handle').length > 0;
|
|
90
81
|
wheelIsTouched = $targetEl.closest('circle').length > 0;
|
|
91
82
|
specterHandleIsTouched = $targetEl.closest('.color-picker-sb-spectrum-handle').length > 0;
|
|
92
|
-
|
|
93
83
|
if (!specterHandleIsTouched) {
|
|
94
84
|
specterIsTouched = $targetEl.closest('.color-picker-sb-spectrum').length > 0;
|
|
95
85
|
}
|
|
96
|
-
|
|
97
86
|
if (wheelIsTouched) {
|
|
98
87
|
wheelRect = $el.find('.color-picker-wheel')[0].getBoundingClientRect();
|
|
99
88
|
setHueFromWheelCoords(touchStartX, touchStartY);
|
|
100
89
|
}
|
|
101
|
-
|
|
102
90
|
if (specterIsTouched) {
|
|
103
91
|
specterRect = $el.find('.color-picker-sb-spectrum')[0].getBoundingClientRect();
|
|
104
92
|
setSBFromSpecterCoords(touchStartX, touchStartY);
|
|
105
93
|
}
|
|
106
|
-
|
|
107
94
|
if (specterHandleIsTouched || specterIsTouched) {
|
|
108
95
|
$el.find('.color-picker-sb-spectrum-handle').addClass('color-picker-sb-spectrum-handle-pressed');
|
|
109
96
|
}
|
|
110
97
|
}
|
|
111
|
-
|
|
112
98
|
function handleTouchMove(e) {
|
|
113
99
|
if (!(wheelIsTouched || wheelHandleIsTouched) && !(specterIsTouched || specterHandleIsTouched)) return;
|
|
114
100
|
touchCurrentX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
|
|
115
101
|
touchCurrentY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
|
|
116
102
|
e.preventDefault();
|
|
117
|
-
|
|
118
103
|
if (!isMoved) {
|
|
119
104
|
// First move
|
|
120
105
|
isMoved = true;
|
|
121
|
-
|
|
122
106
|
if (wheelHandleIsTouched) {
|
|
123
107
|
wheelRect = $el.find('.color-picker-wheel')[0].getBoundingClientRect();
|
|
124
108
|
}
|
|
125
|
-
|
|
126
109
|
if (specterHandleIsTouched) {
|
|
127
110
|
specterRect = $el.find('.color-picker-sb-spectrum')[0].getBoundingClientRect();
|
|
128
111
|
}
|
|
129
112
|
}
|
|
130
|
-
|
|
131
113
|
if (wheelIsTouched || wheelHandleIsTouched) {
|
|
132
114
|
setHueFromWheelCoords(touchCurrentX, touchCurrentY);
|
|
133
115
|
}
|
|
134
|
-
|
|
135
116
|
if (specterIsTouched || specterHandleIsTouched) {
|
|
136
117
|
setSBFromSpecterCoords(touchCurrentX, touchCurrentY);
|
|
137
118
|
}
|
|
138
119
|
}
|
|
139
|
-
|
|
140
120
|
function handleTouchEnd() {
|
|
141
121
|
isMoved = false;
|
|
142
|
-
|
|
143
122
|
if (specterIsTouched || specterHandleIsTouched) {
|
|
144
123
|
$el.find('.color-picker-sb-spectrum-handle').removeClass('color-picker-sb-spectrum-handle-pressed');
|
|
145
124
|
}
|
|
146
|
-
|
|
147
125
|
wheelIsTouched = false;
|
|
148
126
|
wheelHandleIsTouched = false;
|
|
149
127
|
specterIsTouched = false;
|
|
150
128
|
specterHandleIsTouched = false;
|
|
151
129
|
}
|
|
152
|
-
|
|
153
130
|
function handleResize() {
|
|
154
131
|
self.modules.wheel.update(self);
|
|
155
132
|
}
|
|
156
|
-
|
|
157
133
|
const passiveListener = app.touchEvents.start === 'touchstart' && getSupport().passiveListener ? {
|
|
158
134
|
passive: true,
|
|
159
135
|
capture: false
|
|
@@ -162,7 +138,6 @@ export default {
|
|
|
162
138
|
app.on('touchmove:active', handleTouchMove);
|
|
163
139
|
app.on('touchend:passive', handleTouchEnd);
|
|
164
140
|
app.on('resize', handleResize);
|
|
165
|
-
|
|
166
141
|
self.destroyWheelEvents = function destroyWheelEvents() {
|
|
167
142
|
self.$el.off(app.touchEvents.start, handleTouchStart, passiveListener);
|
|
168
143
|
app.off('touchmove:active', handleTouchMove);
|
|
@@ -170,7 +145,6 @@ export default {
|
|
|
170
145
|
app.off('resize', handleResize);
|
|
171
146
|
};
|
|
172
147
|
},
|
|
173
|
-
|
|
174
148
|
update(self) {
|
|
175
149
|
const {
|
|
176
150
|
value
|
|
@@ -192,10 +166,8 @@ export default {
|
|
|
192
166
|
self.$el.find('.color-picker-sb-spectrum').css('background-color', `hsl(${hsl[0]}, 100%, 50%)`);
|
|
193
167
|
self.$el.find('.color-picker-sb-spectrum-handle').css('background-color', `hsl(${hsl[0]}, ${hsl[1] * 100}%, ${hsl[2] * 100}%)`).transform(`translate(${specterWidth * hsb[1]}px, ${specterHeight * (1 - hsb[2])}px)`);
|
|
194
168
|
},
|
|
195
|
-
|
|
196
169
|
destroy(self) {
|
|
197
170
|
if (self.destroyWheelEvents) self.destroyWheelEvents();
|
|
198
171
|
delete self.destroyWheelEvents;
|
|
199
172
|
}
|
|
200
|
-
|
|
201
173
|
};
|
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
.list-group-title {
|
|
4
4
|
pointer-events: none;
|
|
5
5
|
overflow: visible;
|
|
6
|
-
width:
|
|
6
|
+
width: 40px;
|
|
7
7
|
+ li {
|
|
8
8
|
margin-top: calc(var(--f7-contacts-list-title-height) * -1);
|
|
9
9
|
}
|
|
10
|
+
.hairline-remove(top);
|
|
10
11
|
}
|
|
11
12
|
li:not(.list-group-title) {
|
|
12
13
|
.ltr({
|
|
13
|
-
padding-left:
|
|
14
|
+
padding-left: 40px;
|
|
14
15
|
});
|
|
15
16
|
.rtl({
|
|
16
|
-
padding-right:
|
|
17
|
+
padding-right: 40px;
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.ios{--f7-contacts-list-title-font-size:inherit;--f7-contacts-list-title-font-weight:600;--f7-contacts-list-title-height:22px;--f7-contacts-list-title-text-color:#000;--f7-contacts-list-title-bg-color:#f7f7f7}.ios .dark,.ios.dark{--f7-contacts-list-title-text-color:#fff;--f7-contacts-list-title-bg-color:#323234}.md{--f7-contacts-list-title-font-size:20px;--f7-contacts-list-title-font-weight:500;--f7-contacts-list-title-height:48px;--f7-contacts-list-title-bg-color:transparent}.md,.md .dark,.md [class*=color-]{--f7-contacts-list-title-text-color:var(--f7-theme-color)}.contacts-list{--f7-list-margin-vertical:0px}.contacts-list .list-group-title,.contacts-list li.list-group-title{background-color:var(--f7-contacts-list-title-bg-color,var(--f7-list-group-title-bg-color));font-weight:var(--f7-contacts-list-title-font-weight,var(--f7-list-group-title-font-weight));font-size:var(--f7-contacts-list-title-font-size, var(--f7-list-group-title-font-size));color:var(--f7-contacts-list-title-text-color,var(--f7-theme-color));line-height:var(--f7-contacts-list-title-height, var(--f7-list-group-title-height));height:var(--f7-contacts-list-title-height,var(--f7-list-group-title-height))}.contacts-list .list-group:first-child ul:before{display:none!important}.contacts-list .list-group:last-child ul:after{display:none!important}.md .contacts-list .list-group-title{pointer-events:none;overflow:visible;width:40px}.md .contacts-list .list-group-title+li{margin-top:calc(var(--f7-contacts-list-title-height) * -1)}.md .contacts-list .list-group-title:before{display:none!important}.md .contacts-list li:not(.list-group-title){padding-right:40px}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
.dark-vars({
|
|
3
|
-
--f7-contacts-list-title-text-color: #fff;
|
|
4
|
-
});
|
|
5
2
|
}
|
|
6
3
|
.ios-vars({
|
|
7
4
|
--f7-contacts-list-title-font-size: inherit;
|
|
@@ -12,25 +9,16 @@
|
|
|
12
9
|
--f7-contacts-list-title-bg-color: #f7f7f7;
|
|
13
10
|
});
|
|
14
11
|
.dark-vars({
|
|
12
|
+
--f7-contacts-list-title-text-color: #fff;
|
|
15
13
|
--f7-contacts-list-title-bg-color: #323234;
|
|
16
14
|
});
|
|
17
15
|
});
|
|
18
16
|
.md-vars({
|
|
19
17
|
--f7-contacts-list-title-font-size: 20px;
|
|
20
18
|
--f7-contacts-list-title-font-weight: 500;
|
|
21
|
-
/*
|
|
22
|
-
--f7-contacts-list-title-text-color: var(--f7-theme-color);
|
|
23
|
-
*/
|
|
24
19
|
--f7-contacts-list-title-height: 48px;
|
|
25
20
|
--f7-contacts-list-title-bg-color: transparent;
|
|
26
21
|
});
|
|
27
|
-
.
|
|
28
|
-
--f7-contacts-list-title-
|
|
29
|
-
--f7-contacts-list-title-text-color: #000;
|
|
30
|
-
/*
|
|
31
|
-
--f7-contacts-list-title-bg-color: var(--f7-list-group-title-bg-color);
|
|
32
|
-
--f7-contacts-list-title-font-size: var(--f7-list-group-title-font-size);
|
|
33
|
-
--f7-contacts-list-title-line-height: var(--f7-list-group-title-height);
|
|
34
|
-
--f7-contacts-list-title-height: var(--f7-list-group-title-height);
|
|
35
|
-
*/
|
|
22
|
+
.md-color-vars({
|
|
23
|
+
--f7-contacts-list-title-text-color: var(--f7-theme-color);
|
|
36
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.ios{--f7-contacts-list-title-font-size:inherit;--f7-contacts-list-title-font-weight:600;--f7-contacts-list-title-height:22px;--f7-contacts-list-title-text-color:#000;--f7-contacts-list-title-bg-color:#f7f7f7}.ios .dark,.ios.dark{--f7-contacts-list-title-text-color:#fff;--f7-contacts-list-title-bg-color:#323234}.md{--f7-contacts-list-title-font-size:20px;--f7-contacts-list-title-font-weight:500;--f7-contacts-list-title-height:48px;--f7-contacts-list-title-bg-color:transparent}.md,.md .dark,.md [class*=color-]{--f7-contacts-list-title-text-color:var(--f7-theme-color)}.contacts-list{--f7-list-margin-vertical:0px}.contacts-list .list-group-title,.contacts-list li.list-group-title{background-color:var(--f7-contacts-list-title-bg-color,var(--f7-list-group-title-bg-color));font-weight:var(--f7-contacts-list-title-font-weight,var(--f7-list-group-title-font-weight));font-size:var(--f7-contacts-list-title-font-size, var(--f7-list-group-title-font-size));color:var(--f7-contacts-list-title-text-color,var(--f7-theme-color));line-height:var(--f7-contacts-list-title-height, var(--f7-list-group-title-height));height:var(--f7-contacts-list-title-height,var(--f7-list-group-title-height))}.contacts-list .list-group:first-child ul:before{display:none!important}.contacts-list .list-group:last-child ul:after{display:none!important}.md .contacts-list .list-group-title{pointer-events:none;overflow:visible;width:40px}.md .contacts-list .list-group-title+li{margin-top:calc(var(--f7-contacts-list-title-height) * -1)}.md .contacts-list .list-group-title:before{display:none!important}.md .contacts-list li:not(.list-group-title){padding-left:40px}
|