framework7 7.0.8 → 8.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/accordion.js +2 -16
- package/components/accordion/accordion.less +0 -3
- package/components/actions/actions-class.js +13 -58
- package/components/actions/actions-ios.less +42 -0
- package/components/actions/actions-md.less +12 -0
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions-vars.less +17 -42
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.d.ts +2 -2
- package/components/actions/actions.js +0 -4
- package/components/actions/actions.lazy.js +1 -1
- package/components/actions/actions.less +5 -35
- package/components/app/app-class.d.ts +14 -12
- package/components/app/app-class.js +93 -75
- package/components/app/app-ios.less +0 -2
- package/components/app/app-md.less +0 -2
- package/components/app/app-vars.less +13 -96
- package/components/app/app.less +1 -4
- package/components/app/load-module.js +17 -36
- package/components/area-chart/area-chart-class.js +8 -64
- package/components/area-chart/area-chart.js +0 -3
- package/components/area-chart/area-chart.less +0 -3
- package/components/autocomplete/autocomplete-class.js +30 -175
- package/components/autocomplete/autocomplete-ios.less +0 -8
- package/components/autocomplete/autocomplete-rtl.css +1 -1
- package/components/autocomplete/autocomplete-vars.less +8 -22
- package/components/autocomplete/autocomplete.css +1 -1
- package/components/autocomplete/autocomplete.d.ts +1 -3
- package/components/autocomplete/autocomplete.js +1 -6
- package/components/autocomplete/autocomplete.lazy.js +1 -1
- package/components/autocomplete/autocomplete.less +6 -18
- package/components/badge/badge-vars.less +3 -6
- package/components/badge/badge.less +1 -3
- package/components/block/block-vars.less +25 -52
- package/components/block/block.less +37 -12
- package/components/breadcrumbs/breadcrumbs-rtl.css +1 -1
- package/components/breadcrumbs/breadcrumbs-vars.less +31 -15
- package/components/breadcrumbs/breadcrumbs.css +1 -1
- package/components/breadcrumbs/breadcrumbs.js +0 -2
- package/components/breadcrumbs/breadcrumbs.less +4 -10
- package/components/button/button-vars.less +42 -43
- package/components/button/button.less +24 -26
- package/components/calendar/calendar-class.js +81 -401
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar-vars.less +32 -46
- package/components/calendar/calendar.css +1 -1
- package/components/calendar/calendar.js +6 -4
- package/components/calendar/calendar.lazy.js +1 -1
- package/components/calendar/calendar.less +10 -21
- package/components/card/card-rtl.css +1 -1
- package/components/card/card-vars.less +41 -44
- package/components/card/card.css +1 -1
- package/components/card/card.js +0 -108
- package/components/card/card.less +18 -24
- package/components/checkbox/checkbox-rtl.css +1 -1
- package/components/checkbox/checkbox-vars.less +0 -8
- package/components/checkbox/checkbox.css +1 -1
- package/components/checkbox/checkbox.less +10 -3
- package/components/chip/chip-ios.less +3 -0
- package/components/chip/chip-md.less +4 -3
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip-vars.less +17 -20
- package/components/chip/chip.css +1 -1
- package/components/chip/chip.less +16 -21
- package/components/color-picker/color-picker-class.js +27 -158
- package/components/color-picker/color-picker-rtl.css +1 -1
- package/components/color-picker/color-picker.css +1 -1
- package/components/color-picker/color-picker.js +0 -4
- package/components/color-picker/color-picker.lazy.js +1 -1
- package/components/color-picker/color-picker.less +18 -8
- package/components/color-picker/modules/alpha-slider.js +0 -12
- package/components/color-picker/modules/brightness-slider.js +0 -8
- package/components/color-picker/modules/current-color.js +0 -2
- package/components/color-picker/modules/hex.js +0 -12
- package/components/color-picker/modules/hs-spectrum.js +0 -20
- package/components/color-picker/modules/hsb-sliders.js +0 -18
- package/components/color-picker/modules/hue-slider.js +0 -7
- package/components/color-picker/modules/initial-current-colors.js +0 -7
- package/components/color-picker/modules/palette.js +2 -10
- package/components/color-picker/modules/rgb-bars.js +0 -17
- package/components/color-picker/modules/rgb-sliders.js +0 -17
- package/components/color-picker/modules/sb-spectrum.js +0 -20
- package/components/color-picker/modules/wheel.js +0 -28
- package/components/contacts-list/contacts-list-md.less +4 -3
- package/components/contacts-list/contacts-list-rtl.css +1 -1
- package/components/contacts-list/contacts-list-vars.less +3 -15
- package/components/contacts-list/contacts-list.css +1 -1
- package/components/contacts-list/contacts-list.less +0 -3
- package/components/data-table/data-table-class.js +10 -32
- package/components/data-table/data-table-rtl.css +1 -1
- package/components/data-table/data-table-vars.less +6 -39
- package/components/data-table/data-table.css +1 -1
- package/components/data-table/data-table.js +0 -8
- package/components/data-table/data-table.less +0 -3
- package/components/dialog/dialog-class.js +7 -41
- package/components/dialog/dialog-ios.less +0 -3
- package/components/dialog/dialog-md.less +9 -9
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog-vars.less +25 -70
- package/components/dialog/dialog.css +1 -1
- package/components/dialog/dialog.d.ts +2 -2
- package/components/dialog/dialog.js +12 -48
- package/components/dialog/dialog.lazy.js +1 -1
- package/components/dialog/dialog.less +8 -4
- package/components/fab/fab-rtl.css +1 -1
- package/components/fab/fab-vars.less +20 -14
- package/components/fab/fab.css +1 -1
- package/components/fab/fab.js +0 -21
- package/components/fab/fab.less +50 -53
- package/components/form/form.d.ts +4 -4
- package/components/form/form.js +58 -94
- package/components/form/form.lazy.js +1 -1
- package/components/form/form.less +0 -3
- package/components/gauge/gauge-class.js +4 -20
- package/components/gauge/gauge.js +0 -9
- package/components/gauge/gauge.less +0 -3
- package/components/grid/grid-rtl.css +1 -1
- package/components/grid/grid-vars.less +0 -7
- package/components/grid/grid.css +1 -1
- package/components/grid/grid.d.ts +2 -8
- package/components/grid/grid.js +1 -225
- package/components/grid/grid.lazy.js +1 -1
- package/components/grid/grid.less +54 -184
- package/components/icon/icon.less +0 -3
- package/components/infinite-scroll/infinite-scroll-rtl.css +1 -1
- package/components/infinite-scroll/infinite-scroll.css +1 -1
- package/components/infinite-scroll/infinite-scroll.js +0 -16
- package/components/infinite-scroll/infinite-scroll.less +0 -3
- package/components/input/input-ios.less +49 -41
- package/components/input/input-md.less +87 -19
- package/components/input/input-rtl.css +1 -1
- package/components/input/input-vars.less +26 -60
- package/components/input/input.css +1 -1
- package/components/input/input.js +8 -67
- package/components/input/input.less +67 -153
- package/components/link/link-vars.less +0 -5
- package/components/link/link.less +3 -3
- package/components/list/list-md.less +0 -7
- package/components/list/list-vars.less +59 -108
- package/components/list/list.less +122 -90
- package/components/list-index/list-index-class.js +12 -69
- package/components/list-index/list-index-rtl.css +1 -1
- package/components/list-index/list-index-vars.less +0 -7
- package/components/list-index/list-index.css +1 -1
- package/components/list-index/list-index.d.ts +1 -3
- package/components/list-index/list-index.js +0 -8
- package/components/list-index/list-index.lazy.js +1 -1
- package/components/list-index/list-index.less +4 -7
- package/components/login-screen/login-screen-class.js +4 -9
- package/components/login-screen/login-screen-rtl.css +1 -1
- package/components/login-screen/login-screen-vars.less +13 -12
- package/components/login-screen/login-screen.css +1 -1
- package/components/login-screen/login-screen.js +0 -4
- package/components/login-screen/login-screen.less +2 -8
- package/components/messagebar/messagebar-class.js +18 -79
- package/components/messagebar/messagebar-ios.less +36 -0
- package/components/messagebar/messagebar-md.less +96 -16
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar-vars.less +27 -50
- package/components/messagebar/messagebar.css +1 -1
- package/components/messagebar/messagebar.js +0 -8
- package/components/messagebar/messagebar.less +11 -42
- package/components/messages/messages-class.js +17 -110
- package/components/messages/messages-ios.less +9 -0
- package/components/messages/messages-md.less +63 -28
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages-vars.less +43 -50
- package/components/messages/messages.css +1 -1
- package/components/messages/messages.js +0 -8
- package/components/messages/messages.lazy.js +1 -1
- package/components/messages/messages.less +0 -11
- package/components/modal/custom-modal-class.js +4 -14
- package/components/modal/modal-class.js +19 -55
- package/components/modal/modal.js +0 -3
- package/components/navbar/navbar-ios.less +3 -39
- package/components/navbar/navbar-md.less +12 -0
- package/components/navbar/navbar-vars.less +20 -49
- package/components/navbar/navbar.d.ts +0 -2
- package/components/navbar/navbar.js +37 -166
- package/components/navbar/navbar.less +4 -26
- package/components/notification/notification-class.js +4 -39
- package/components/notification/notification-md.less +18 -8
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification-vars.less +15 -54
- package/components/notification/notification.css +1 -1
- package/components/notification/notification.js +0 -2
- package/components/notification/notification.lazy.js +1 -1
- package/components/notification/notification.less +0 -3
- package/components/page/page-md.less +40 -10
- package/components/page/page-transitions/circle.less +15 -9
- package/components/page/page-transitions/fade.less +17 -11
- package/components/page/page-transitions/flip.less +9 -4
- package/components/page/page-vars.less +3 -19
- package/components/page/page.less +2 -10
- package/components/panel/panel-class.js +23 -127
- package/components/panel/panel-md.less +9 -0
- package/components/panel/panel-rtl.css +1 -1
- package/components/panel/panel-vars.less +7 -21
- package/components/panel/panel.css +1 -1
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +0 -34
- package/components/panel/panel.lazy.js +1 -1
- package/components/panel/panel.less +56 -48
- package/components/panel/resizable-panel.js +2 -32
- package/components/panel/swipe-panel.js +16 -71
- package/components/photo-browser/photo-browser-class.js +41 -171
- package/components/photo-browser/photo-browser-rtl.css +1 -1
- package/components/photo-browser/photo-browser-vars.less +0 -3
- package/components/photo-browser/photo-browser.css +1 -1
- package/components/photo-browser/photo-browser.d.ts +2 -4
- package/components/photo-browser/photo-browser.js +1 -6
- package/components/photo-browser/photo-browser.lazy.js +1 -1
- package/components/photo-browser/photo-browser.less +0 -4
- package/components/picker/picker-class.js +26 -133
- package/components/picker/picker-column.js +11 -31
- package/components/picker/picker-ios.less +10 -0
- package/components/picker/picker-md.less +6 -0
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker-vars.less +9 -25
- package/components/picker/picker.css +1 -1
- package/components/picker/picker.js +0 -4
- package/components/picker/picker.lazy.js +1 -1
- package/components/picker/picker.less +0 -11
- package/components/pie-chart/pie-chart-class.js +8 -31
- package/components/pie-chart/pie-chart.js +0 -3
- package/components/pie-chart/pie-chart.less +0 -3
- package/components/popover/popover-class.js +72 -126
- package/components/popover/popover-ios.less +0 -50
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover-vars.less +6 -23
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.d.ts +2 -0
- package/components/popover/popover.js +1 -12
- package/components/popover/popover.lazy.js +1 -1
- package/components/popover/popover.less +62 -5
- package/components/popup/popup-class.js +12 -78
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup-vars.less +7 -9
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.js +0 -4
- package/components/popup/popup.lazy.js +1 -1
- package/components/popup/popup.less +4 -4
- package/components/preloader/preloader-ios.less +3 -1
- package/components/preloader/preloader-md.less +5 -1
- package/components/preloader/preloader-rtl.css +1 -1
- package/components/preloader/preloader-vars.less +0 -6
- package/components/preloader/preloader.css +1 -1
- package/components/preloader/preloader.js +8 -25
- package/components/preloader/preloader.lazy.js +1 -1
- package/components/preloader/preloader.less +6 -3
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar-vars.less +2 -12
- package/components/progressbar/progressbar.css +1 -1
- package/components/progressbar/progressbar.js +2 -31
- package/components/progressbar/progressbar.less +0 -3
- package/components/pull-to-refresh/pull-to-refresh-class.js +15 -107
- package/components/pull-to-refresh/pull-to-refresh-md.less +2 -1
- package/components/pull-to-refresh/pull-to-refresh-rtl.css +1 -1
- package/components/pull-to-refresh/pull-to-refresh-vars.less +0 -4
- package/components/pull-to-refresh/pull-to-refresh.css +1 -1
- package/components/pull-to-refresh/pull-to-refresh.js +0 -8
- package/components/pull-to-refresh/pull-to-refresh.lazy.js +1 -1
- package/components/pull-to-refresh/pull-to-refresh.less +0 -3
- package/components/radio/radio-rtl.css +1 -1
- package/components/radio/radio-vars.less +0 -7
- package/components/radio/radio.css +1 -1
- package/components/radio/radio.less +12 -5
- package/components/range/range-class.js +27 -112
- package/components/range/range-rtl.css +1 -1
- package/components/range/range-vars.less +10 -32
- package/components/range/range.css +1 -1
- package/components/range/range.js +0 -12
- package/components/range/range.less +0 -3
- package/components/searchbar/remove-diacritics.js +0 -4
- package/components/searchbar/searchbar-class.js +17 -138
- package/components/searchbar/searchbar-md.less +41 -16
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar-vars.less +25 -76
- package/components/searchbar/searchbar.css +1 -1
- package/components/searchbar/searchbar.d.ts +2 -2
- package/components/searchbar/searchbar.js +0 -15
- package/components/searchbar/searchbar.lazy.js +1 -1
- package/components/searchbar/searchbar.less +14 -28
- package/components/sheet/sheet-class.js +15 -110
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet-vars.less +17 -6
- package/components/sheet/sheet.css +1 -1
- package/components/sheet/sheet.js +0 -9
- package/components/sheet/sheet.lazy.js +1 -1
- package/components/sheet/sheet.less +10 -3
- package/components/skeleton/skeleton.less +1 -4
- package/components/smart-select/smart-select-class.js +36 -173
- package/components/smart-select/smart-select.d.ts +1 -3
- package/components/smart-select/smart-select.js +1 -14
- package/components/smart-select/smart-select.lazy.js +1 -1
- package/components/smart-select/smart-select.less +0 -3
- package/components/sortable/sortable-rtl.css +1 -1
- package/components/sortable/sortable-vars.less +8 -8
- package/components/sortable/sortable.css +1 -1
- package/components/sortable/sortable.js +0 -44
- package/components/sortable/sortable.less +0 -3
- package/components/statusbar/statusbar.js +0 -36
- package/components/statusbar/statusbar.less +0 -3
- package/components/stepper/stepper-class.js +10 -83
- package/components/stepper/stepper-rtl.css +1 -1
- package/components/stepper/stepper-vars.less +12 -24
- package/components/stepper/stepper.css +1 -1
- package/components/stepper/stepper.js +0 -12
- package/components/stepper/stepper.less +12 -23
- package/components/subnavbar/subnavbar-vars.less +3 -18
- package/components/subnavbar/subnavbar.js +0 -3
- package/components/subnavbar/subnavbar.less +1 -11
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout-vars.less +7 -6
- package/components/swipeout/swipeout.css +1 -1
- package/components/swipeout/swipeout.js +2 -99
- package/components/swipeout/swipeout.less +2 -7
- package/components/swiper/swiper-rtl.css +1 -1
- package/components/swiper/swiper.css +1 -1
- package/components/swiper/swiper.js +9 -30
- package/components/swiper/swiper.lazy.js +1 -1
- package/components/swiper/swiper.less +1 -16
- package/components/tabs/tabs-rtl.css +1 -1
- package/components/tabs/tabs.css +1 -1
- package/components/tabs/tabs.js +23 -60
- package/components/tabs/tabs.lazy.js +1 -1
- package/components/tabs/tabs.less +1 -3
- package/components/text-editor/text-editor-class.js +16 -102
- package/components/text-editor/text-editor-rtl.css +1 -1
- package/components/text-editor/text-editor-vars.less +12 -16
- package/components/text-editor/text-editor.css +1 -1
- package/components/text-editor/text-editor.js +0 -8
- package/components/text-editor/text-editor.lazy.js +1 -1
- package/components/text-editor/text-editor.less +0 -6
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline-vars.less +13 -47
- package/components/timeline/timeline.css +1 -1
- package/components/timeline/timeline.less +2 -9
- package/components/toast/toast-class.js +2 -16
- package/components/toast/toast-rtl.css +1 -1
- package/components/toast/toast-vars.less +5 -9
- package/components/toast/toast.css +1 -1
- package/components/toast/toast.js +0 -3
- package/components/toast/toast.less +0 -3
- package/components/toggle/toggle-class.js +6 -30
- package/components/toggle/toggle-ios.less +5 -1
- package/components/toggle/toggle-md.less +27 -11
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle-vars.less +19 -21
- package/components/toggle/toggle.css +1 -1
- package/components/toggle/toggle.js +0 -8
- package/components/toggle/toggle.less +0 -4
- package/components/toolbar/toolbar-ios.less +2 -2
- package/components/toolbar/toolbar-md.less +28 -4
- package/components/toolbar/toolbar-vars.less +17 -52
- package/components/toolbar/toolbar.js +5 -43
- package/components/toolbar/toolbar.less +27 -45
- package/components/tooltip/tooltip-class.js +10 -64
- package/components/tooltip/tooltip-rtl.css +1 -1
- package/components/tooltip/tooltip-vars.less +12 -3
- package/components/tooltip/tooltip.css +1 -1
- package/components/tooltip/tooltip.js +0 -15
- package/components/tooltip/tooltip.less +0 -3
- package/components/touch-ripple/touch-ripple-class.js +0 -13
- package/components/touch-ripple/touch-ripple.js +0 -4
- package/components/touch-ripple/touch-ripple.less +1 -5
- package/components/treeview/treeview-rtl.css +1 -1
- package/components/treeview/treeview-vars.less +0 -3
- package/components/treeview/treeview.css +1 -1
- package/components/treeview/treeview.js +2 -11
- package/components/treeview/treeview.lazy.js +1 -1
- package/components/treeview/treeview.less +0 -3
- package/components/typography/typography-rtl.css +1 -1
- package/components/typography/typography.css +1 -1
- package/components/typography/typography.less +25 -3
- package/components/view/resizable-view.js +2 -24
- package/components/view/view-class.js +28 -53
- package/components/view/view.d.ts +0 -14
- package/components/view/view.js +8 -32
- package/components/view/view.less +1 -4
- package/components/virtual-list/virtual-list-class.js +58 -146
- package/components/virtual-list/virtual-list.d.ts +1 -1
- package/components/virtual-list/virtual-list.js +0 -2
- package/components/virtual-list/virtual-list.lazy.js +1 -1
- package/components/virtual-list/virtual-list.less +0 -3
- package/framework7-bundle-rtl.css +3593 -5977
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +3591 -5978
- package/framework7-bundle.esm.js +4 -10
- package/framework7-bundle.js +6063 -12044
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -27
- package/framework7-bundle.min.css +3 -3
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +4 -10
- package/framework7-lite.esm.js +4 -6
- package/framework7-lite.js +31 -0
- package/framework7-rtl.css +803 -1591
- package/framework7-rtl.min.css +3 -3
- package/framework7-types.d.ts +1 -32
- package/framework7.css +803 -1594
- package/framework7.d.ts +1 -32
- package/framework7.esm.js +4 -6
- package/framework7.js +1770 -3407
- package/framework7.js.map +1 -1
- package/framework7.less +2 -23
- package/framework7.min.css +3 -3
- package/framework7.min.js +3 -3
- package/framework7.min.js.map +1 -1
- package/less/mixins.less +7 -88
- package/less/plugin.js +15 -0
- package/modules/clicks/clicks.js +10 -22
- package/modules/component/$h.js +0 -3
- package/modules/component/$jsx.js +0 -5
- package/modules/component/component-class.js +13 -66
- package/modules/component/component.d.ts +1 -2
- package/modules/component/component.js +0 -8
- package/modules/component/eventslisteners.js +12 -20
- package/modules/component/parse-component.js +18 -20
- package/modules/component/snabbdom/h.js +3 -12
- package/modules/component/snabbdom/helpers/attachto.js +9 -14
- package/modules/component/snabbdom/htmldomapi.js +0 -16
- package/modules/component/snabbdom/modules/attributes.js +7 -11
- package/modules/component/snabbdom/modules/class.js +4 -8
- package/modules/component/snabbdom/modules/dataset.js +3 -7
- package/modules/component/snabbdom/modules/eventlisteners.js +16 -22
- package/modules/component/snabbdom/modules/hero.js +4 -44
- package/modules/component/snabbdom/modules/props.js +5 -9
- package/modules/component/snabbdom/modules/style.js +13 -30
- package/modules/component/snabbdom/snabbdom.bundle.js +0 -6
- package/modules/component/snabbdom/snabbdom.js +13 -72
- package/modules/component/snabbdom/thunk.js +3 -11
- package/modules/component/snabbdom/tovnode.js +1 -6
- package/modules/component/vdom.js +4 -62
- package/modules/demo-module.js +0 -8
- package/modules/device/device.js +6 -11
- package/modules/history/history.js +0 -1
- package/modules/resize/resize.js +8 -11
- package/modules/router/async-component.js +0 -3
- package/modules/router/back.js +86 -275
- package/modules/router/clear-previous-history.js +5 -18
- package/modules/router/component-loader.js +4 -25
- package/modules/router/modal.js +16 -43
- package/modules/router/navigate.js +80 -249
- package/modules/router/process-route-queue.js +0 -12
- package/modules/router/redirect.js +0 -8
- package/modules/router/router-class.js +92 -315
- package/modules/router/router.d.ts +3 -5
- package/modules/router/router.js +0 -3
- package/modules/router/swipe-back.js +35 -139
- package/modules/router/tab.js +14 -43
- package/modules/service-worker/service-worker.js +0 -11
- package/modules/store/create-store.js +10 -29
- package/modules/touch/touch.d.ts +2 -4
- package/modules/touch/touch.js +13 -108
- package/package.json +4 -18
- package/shared/$jsx.js +0 -6
- package/shared/class.js +18 -43
- package/shared/constructor-methods.js +0 -11
- package/shared/events-class.js +0 -17
- package/shared/get-device.js +18 -34
- package/shared/get-support.js +2 -8
- package/shared/history.js +2 -30
- package/shared/material-color-utils.js +728 -0
- package/shared/material-colors.js +75 -0
- package/shared/modal-methods.js +0 -18
- package/shared/utils.d.ts +0 -4
- package/shared/utils.js +191 -71
- package/components/accordion/accordion-aurora.less +0 -2
- package/components/actions/actions-aurora.less +0 -9
- package/components/app/app-aurora.less +0 -10
- package/components/appbar/appbar-aurora.less +0 -2
- package/components/appbar/appbar-ios.less +0 -2
- package/components/appbar/appbar-md.less +0 -2
- package/components/appbar/appbar-rtl.css +0 -1
- package/components/appbar/appbar-vars.less +0 -28
- package/components/appbar/appbar.css +0 -1
- package/components/appbar/appbar.d.ts +0 -14
- package/components/appbar/appbar.js +0 -3
- package/components/appbar/appbar.lazy.js +0 -1
- package/components/appbar/appbar.less +0 -106
- package/components/area-chart/area-chart-aurora.less +0 -2
- package/components/autocomplete/autocomplete-aurora.less +0 -17
- package/components/badge/badge-aurora.less +0 -2
- package/components/block/block-aurora.less +0 -2
- package/components/breadcrumbs/breadcrumbs-aurora.less +0 -2
- package/components/button/button-aurora.less +0 -25
- package/components/calendar/calendar-aurora.less +0 -2
- package/components/card/card-aurora.less +0 -2
- package/components/checkbox/checkbox-aurora.less +0 -39
- package/components/chip/chip-aurora.less +0 -14
- package/components/color-picker/color-picker-aurora.less +0 -2
- package/components/contacts-list/contacts-list-aurora.less +0 -2
- package/components/data-table/data-table-aurora.less +0 -64
- package/components/dialog/dialog-aurora.less +0 -112
- package/components/elevation/elevation-aurora.less +0 -2
- package/components/elevation/elevation-ios.less +0 -2
- package/components/elevation/elevation-md.less +0 -2
- package/components/elevation/elevation-rtl.css +0 -1
- package/components/elevation/elevation-vars.less +0 -51
- package/components/elevation/elevation.css +0 -1
- package/components/elevation/elevation.d.ts +0 -14
- package/components/elevation/elevation.js +0 -3
- package/components/elevation/elevation.lazy.js +0 -1
- package/components/elevation/elevation.less +0 -54
- package/components/fab/fab-aurora.less +0 -2
- package/components/form/form-aurora.less +0 -0
- package/components/gauge/gauge-aurora.less +0 -2
- package/components/grid/grid-aurora.less +0 -2
- package/components/icon/icon-aurora.less +0 -49
- package/components/infinite-scroll/infinite-scroll-aurora.less +0 -6
- package/components/input/input-aurora.less +0 -120
- package/components/lazy/lazy-aurora.less +0 -2
- package/components/lazy/lazy-ios.less +0 -2
- package/components/lazy/lazy-md.less +0 -2
- package/components/lazy/lazy-rtl.css +0 -1
- package/components/lazy/lazy.css +0 -1
- package/components/lazy/lazy.d.ts +0 -57
- package/components/lazy/lazy.js +0 -283
- package/components/lazy/lazy.lazy.js +0 -1
- package/components/lazy/lazy.less +0 -23
- package/components/link/link-aurora.less +0 -15
- package/components/list/list-aurora.less +0 -25
- package/components/list-index/list-index-aurora.less +0 -21
- package/components/login-screen/login-screen-aurora.less +0 -2
- package/components/menu/menu-aurora.less +0 -8
- package/components/menu/menu-ios.less +0 -2
- package/components/menu/menu-md.less +0 -2
- package/components/menu/menu-rtl.css +0 -1
- package/components/menu/menu-vars.less +0 -27
- package/components/menu/menu.css +0 -1
- package/components/menu/menu.d.ts +0 -32
- package/components/menu/menu.js +0 -87
- package/components/menu/menu.lazy.js +0 -1
- package/components/menu/menu.less +0 -232
- package/components/messagebar/messagebar-aurora.less +0 -53
- package/components/messages/messages-aurora.less +0 -137
- package/components/navbar/navbar-aurora.less +0 -70
- package/components/notification/notification-aurora.less +0 -59
- package/components/page/page-aurora.less +0 -49
- package/components/panel/panel-aurora.less +0 -2
- package/components/photo-browser/photo-browser-aurora.less +0 -2
- package/components/picker/picker-aurora.less +0 -2
- package/components/pie-chart/pie-chart-aurora.less +0 -2
- package/components/popover/popover-aurora.less +0 -56
- package/components/popup/popup-aurora.less +0 -2
- package/components/preloader/preloader-aurora.less +0 -53
- package/components/progressbar/progressbar-aurora.less +0 -72
- package/components/pull-to-refresh/pull-to-refresh-aurora.less +0 -122
- package/components/radio/radio-aurora.less +0 -86
- package/components/range/range-aurora.less +0 -9
- package/components/searchbar/searchbar-aurora.less +0 -86
- package/components/sheet/sheet-aurora.less +0 -2
- package/components/skeleton/skeleton-aurora.less +0 -2
- package/components/smart-select/smart-select-aurora.less +0 -2
- package/components/sortable/sortable-aurora.less +0 -7
- package/components/statusbar/statusbar-aurora.less +0 -2
- package/components/stepper/stepper-aurora.less +0 -32
- package/components/subnavbar/subnavbar-aurora.less +0 -51
- package/components/swipeout/swipeout-aurora.less +0 -2
- package/components/swiper/swiper-aurora.less +0 -2
- package/components/tabs/tabs-aurora.less +0 -2
- package/components/text-editor/text-editor-aurora.less +0 -9
- package/components/timeline/timeline-aurora.less +0 -7
- package/components/toast/toast-aurora.less +0 -64
- package/components/toggle/toggle-aurora.less +0 -26
- package/components/toolbar/toolbar-aurora.less +0 -43
- package/components/tooltip/tooltip-aurora.less +0 -2
- package/components/touch-ripple/touch-ripple-aurora.less +0 -2
- package/components/treeview/treeview-aurora.less +0 -31
- package/components/typography/typography-aurora.less +0 -2
- package/components/view/view-aurora.less +0 -2
- package/components/virtual-list/virtual-list-aurora.less +0 -2
- package/modules/request/request.d.ts +0 -15
- package/modules/request/request.js +0 -11
- package/postinstall.js +0 -3
- package/shared/request.d.ts +0 -115
- package/shared/request.js +0 -512
|
@@ -4,7 +4,6 @@ import { bindMethods } from '../../shared/utils.js';
|
|
|
4
4
|
import { getDevice } from '../../shared/get-device.js';
|
|
5
5
|
const Input = {
|
|
6
6
|
ignoreTypes: ['checkbox', 'button', 'submit', 'range', 'radio', 'image'],
|
|
7
|
-
|
|
8
7
|
createTextareaResizableShadow() {
|
|
9
8
|
const document = getDocument();
|
|
10
9
|
const $shadowEl = $(document.createElement('textarea'));
|
|
@@ -15,34 +14,26 @@ const Input = {
|
|
|
15
14
|
});
|
|
16
15
|
Input.textareaResizableShadow = $shadowEl;
|
|
17
16
|
},
|
|
18
|
-
|
|
19
17
|
textareaResizableShadow: undefined,
|
|
20
|
-
|
|
21
18
|
resizeTextarea(textareaEl) {
|
|
22
19
|
const app = this;
|
|
23
20
|
const window = getWindow();
|
|
24
21
|
const $textareaEl = $(textareaEl);
|
|
25
|
-
|
|
26
22
|
if (!Input.textareaResizableShadow) {
|
|
27
23
|
Input.createTextareaResizableShadow();
|
|
28
24
|
}
|
|
29
|
-
|
|
30
25
|
const $shadowEl = Input.textareaResizableShadow;
|
|
31
26
|
if (!$textareaEl.length) return;
|
|
32
27
|
if (!$textareaEl.hasClass('resizable')) return;
|
|
33
|
-
|
|
34
28
|
if (Input.textareaResizableShadow.parents().length === 0) {
|
|
35
29
|
app.$el.append($shadowEl);
|
|
36
30
|
}
|
|
37
|
-
|
|
38
31
|
const styles = window.getComputedStyle($textareaEl[0]);
|
|
39
32
|
'padding-top padding-bottom padding-left padding-right margin-left margin-right margin-top margin-bottom width font-size font-family font-style font-weight line-height font-variant text-transform letter-spacing border box-sizing display'.split(' ').forEach(style => {
|
|
40
33
|
let styleValue = styles[style];
|
|
41
|
-
|
|
42
34
|
if ('font-size line-height letter-spacing width'.split(' ').indexOf(style) >= 0) {
|
|
43
35
|
styleValue = styleValue.replace(',', '.');
|
|
44
36
|
}
|
|
45
|
-
|
|
46
37
|
$shadowEl.css(style, styleValue);
|
|
47
38
|
});
|
|
48
39
|
const currentHeight = $textareaEl[0].clientHeight;
|
|
@@ -51,14 +42,12 @@ const Input = {
|
|
|
51
42
|
$shadowEl.val($textareaEl.val());
|
|
52
43
|
$shadowEl.css('height', 0);
|
|
53
44
|
const scrollHeight = $shadowEl[0].scrollHeight;
|
|
54
|
-
|
|
55
45
|
if (currentHeight !== scrollHeight) {
|
|
56
46
|
if (scrollHeight > initialHeight) {
|
|
57
47
|
$textareaEl.css('height', `${scrollHeight}px`);
|
|
58
48
|
} else if (scrollHeight < currentHeight) {
|
|
59
49
|
$textareaEl.css('height', '');
|
|
60
50
|
}
|
|
61
|
-
|
|
62
51
|
if (scrollHeight > initialHeight || scrollHeight < currentHeight) {
|
|
63
52
|
$textareaEl.trigger('textarea:resize', {
|
|
64
53
|
initialHeight,
|
|
@@ -73,71 +62,58 @@ const Input = {
|
|
|
73
62
|
}
|
|
74
63
|
}
|
|
75
64
|
},
|
|
76
|
-
|
|
77
65
|
validate(inputEl) {
|
|
78
66
|
const $inputEl = $(inputEl);
|
|
79
67
|
if (!$inputEl.length) return true;
|
|
80
68
|
const $itemInputEl = $inputEl.parents('.item-input');
|
|
81
69
|
const $inputWrapEl = $inputEl.parents('.input');
|
|
82
|
-
|
|
83
70
|
function unsetReadonly() {
|
|
84
71
|
if ($inputEl[0].f7ValidateReadonly) {
|
|
85
72
|
$inputEl[0].readOnly = false;
|
|
86
73
|
}
|
|
87
74
|
}
|
|
88
|
-
|
|
89
75
|
function setReadonly() {
|
|
90
76
|
if ($inputEl[0].f7ValidateReadonly) {
|
|
91
77
|
$inputEl[0].readOnly = true;
|
|
92
78
|
}
|
|
93
79
|
}
|
|
94
|
-
|
|
95
80
|
unsetReadonly();
|
|
96
81
|
const validity = $inputEl[0].validity;
|
|
97
82
|
const validationMessage = $inputEl.dataset().errorMessage || $inputEl[0].validationMessage || '';
|
|
98
|
-
|
|
99
83
|
if (!validity) {
|
|
100
84
|
setReadonly();
|
|
101
85
|
return true;
|
|
102
86
|
}
|
|
103
|
-
|
|
104
87
|
if (!validity.valid) {
|
|
105
88
|
let $errorEl = $inputEl.nextAll('.item-input-error-message, .input-error-message');
|
|
106
|
-
|
|
107
89
|
if (validationMessage) {
|
|
108
90
|
if ($errorEl.length === 0) {
|
|
109
91
|
$errorEl = $(`<div class="${$inputWrapEl.length ? 'input-error-message' : 'item-input-error-message'}"></div>`);
|
|
110
92
|
$errorEl.insertAfter($inputEl);
|
|
111
93
|
}
|
|
112
|
-
|
|
113
94
|
$errorEl.text(validationMessage);
|
|
114
95
|
}
|
|
115
|
-
|
|
116
96
|
if ($errorEl.length > 0) {
|
|
117
97
|
$itemInputEl.addClass('item-input-with-error-message');
|
|
118
98
|
$inputWrapEl.addClass('input-with-error-message');
|
|
119
99
|
}
|
|
120
|
-
|
|
121
100
|
$itemInputEl.addClass('item-input-invalid');
|
|
122
101
|
$inputWrapEl.addClass('input-invalid');
|
|
123
102
|
$inputEl.addClass('input-invalid');
|
|
124
103
|
setReadonly();
|
|
125
104
|
return false;
|
|
126
105
|
}
|
|
127
|
-
|
|
128
106
|
$itemInputEl.removeClass('item-input-invalid item-input-with-error-message');
|
|
129
107
|
$inputWrapEl.removeClass('input-invalid input-with-error-message');
|
|
130
108
|
$inputEl.removeClass('input-invalid');
|
|
131
109
|
setReadonly();
|
|
132
110
|
return true;
|
|
133
111
|
},
|
|
134
|
-
|
|
135
112
|
validateInputs(el) {
|
|
136
113
|
const app = this;
|
|
137
114
|
const validates = $(el).find('input, textarea, select').map(inputEl => app.input.validate(inputEl));
|
|
138
115
|
return validates.indexOf(false) < 0;
|
|
139
116
|
},
|
|
140
|
-
|
|
141
117
|
focus(inputEl) {
|
|
142
118
|
const $inputEl = $(inputEl);
|
|
143
119
|
const type = $inputEl.attr('type');
|
|
@@ -146,35 +122,28 @@ const Input = {
|
|
|
146
122
|
$inputEl.parents('.input').addClass('input-focused');
|
|
147
123
|
$inputEl.addClass('input-focused');
|
|
148
124
|
},
|
|
149
|
-
|
|
150
125
|
blur(inputEl) {
|
|
151
126
|
const $inputEl = $(inputEl);
|
|
152
127
|
$inputEl.parents('.item-input').removeClass('item-input-focused');
|
|
153
128
|
$inputEl.parents('.input').removeClass('input-focused');
|
|
154
129
|
$inputEl.removeClass('input-focused');
|
|
155
130
|
},
|
|
156
|
-
|
|
157
131
|
checkEmptyState(inputEl) {
|
|
158
132
|
const app = this;
|
|
159
133
|
let $inputEl = $(inputEl);
|
|
160
|
-
|
|
161
134
|
if (!$inputEl.is('input, select, textarea, .item-input [contenteditable]')) {
|
|
162
135
|
$inputEl = $inputEl.find('input, select, textarea, .item-input [contenteditable]').eq(0);
|
|
163
136
|
}
|
|
164
|
-
|
|
165
137
|
if (!$inputEl.length) return;
|
|
166
138
|
const isContentEditable = $inputEl[0].hasAttribute('contenteditable');
|
|
167
139
|
let value;
|
|
168
|
-
|
|
169
140
|
if (isContentEditable) {
|
|
170
141
|
if ($inputEl.find('.text-editor-placeholder').length) value = '';else value = $inputEl.html();
|
|
171
142
|
} else {
|
|
172
143
|
value = $inputEl.val();
|
|
173
144
|
}
|
|
174
|
-
|
|
175
145
|
const $itemInputEl = $inputEl.parents('.item-input');
|
|
176
146
|
const $inputWrapEl = $inputEl.parents('.input');
|
|
177
|
-
|
|
178
147
|
if (value && typeof value === 'string' && value.trim() !== '' || Array.isArray(value) && value.length > 0) {
|
|
179
148
|
$itemInputEl.addClass('item-input-with-value');
|
|
180
149
|
$inputWrapEl.addClass('input-with-value');
|
|
@@ -189,19 +158,15 @@ const Input = {
|
|
|
189
158
|
app.emit('inputEmpty', $inputEl[0]);
|
|
190
159
|
}
|
|
191
160
|
},
|
|
192
|
-
|
|
193
161
|
scrollIntoView(inputEl, duration, centered, force) {
|
|
194
162
|
if (duration === void 0) {
|
|
195
163
|
duration = 0;
|
|
196
164
|
}
|
|
197
|
-
|
|
198
165
|
const $inputEl = $(inputEl);
|
|
199
166
|
const $scrollableEl = $inputEl.parents('.page-content, .panel, .card-expandable .card-content').eq(0);
|
|
200
|
-
|
|
201
167
|
if (!$scrollableEl.length) {
|
|
202
168
|
return false;
|
|
203
169
|
}
|
|
204
|
-
|
|
205
170
|
const contentHeight = $scrollableEl[0].offsetHeight;
|
|
206
171
|
const contentScrollTop = $scrollableEl[0].scrollTop;
|
|
207
172
|
const contentPaddingTop = parseInt($scrollableEl.css('padding-top'), 10);
|
|
@@ -212,34 +177,27 @@ const Input = {
|
|
|
212
177
|
const min = inputOffsetTop + contentScrollTop - contentPaddingTop;
|
|
213
178
|
const max = inputOffsetTop + contentScrollTop - contentHeight + contentPaddingBottom + inputHeight;
|
|
214
179
|
const centeredPosition = min + (max - min) / 2;
|
|
215
|
-
|
|
216
180
|
if (contentScrollTop > min) {
|
|
217
181
|
$scrollableEl.scrollTop(centered ? centeredPosition : min, duration);
|
|
218
182
|
return true;
|
|
219
183
|
}
|
|
220
|
-
|
|
221
184
|
if (contentScrollTop < max) {
|
|
222
185
|
$scrollableEl.scrollTop(centered ? centeredPosition : max, duration);
|
|
223
186
|
return true;
|
|
224
187
|
}
|
|
225
|
-
|
|
226
188
|
if (force) {
|
|
227
189
|
$scrollableEl.scrollTop(centered ? centeredPosition : max, duration);
|
|
228
190
|
}
|
|
229
|
-
|
|
230
191
|
return false;
|
|
231
192
|
},
|
|
232
|
-
|
|
233
193
|
init() {
|
|
234
194
|
const app = this;
|
|
235
195
|
const device = getDevice();
|
|
236
196
|
const window = getWindow();
|
|
237
197
|
const document = getDocument();
|
|
238
198
|
Input.createTextareaResizableShadow();
|
|
239
|
-
|
|
240
199
|
function onFocus() {
|
|
241
200
|
const inputEl = this;
|
|
242
|
-
|
|
243
201
|
if (app.params.input.scrollIntoViewOnFocus) {
|
|
244
202
|
if (device.android) {
|
|
245
203
|
$(window).once('resize', () => {
|
|
@@ -251,54 +209,48 @@ const Input = {
|
|
|
251
209
|
app.input.scrollIntoView(inputEl, app.params.input.scrollIntoViewDuration, app.params.input.scrollIntoViewCentered, app.params.input.scrollIntoViewAlways);
|
|
252
210
|
}
|
|
253
211
|
}
|
|
254
|
-
|
|
255
212
|
app.input.focus(inputEl);
|
|
256
213
|
}
|
|
257
|
-
|
|
258
214
|
function onBlur() {
|
|
259
215
|
const $inputEl = $(this);
|
|
260
216
|
const tag = $inputEl[0].nodeName.toLowerCase();
|
|
261
217
|
app.input.blur($inputEl);
|
|
262
|
-
|
|
263
218
|
if ($inputEl.dataset().validate || $inputEl.attr('validate') !== null || $inputEl.attr('data-validate-on-blur') !== null) {
|
|
264
219
|
app.input.validate($inputEl);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
220
|
+
}
|
|
221
|
+
// Resize textarea
|
|
268
222
|
if (tag === 'textarea' && $inputEl.hasClass('resizable')) {
|
|
269
223
|
if (Input.textareaResizableShadow) Input.textareaResizableShadow.remove();
|
|
270
224
|
}
|
|
271
225
|
}
|
|
272
|
-
|
|
273
226
|
function onChange() {
|
|
274
227
|
const $inputEl = $(this);
|
|
275
228
|
const type = $inputEl.attr('type');
|
|
276
229
|
const tag = $inputEl[0].nodeName.toLowerCase();
|
|
277
230
|
const isContentEditable = $inputEl[0].hasAttribute('contenteditable');
|
|
278
|
-
if (Input.ignoreTypes.indexOf(type) >= 0) return;
|
|
231
|
+
if (Input.ignoreTypes.indexOf(type) >= 0) return;
|
|
279
232
|
|
|
233
|
+
// Check Empty State
|
|
280
234
|
app.input.checkEmptyState($inputEl);
|
|
281
|
-
if (isContentEditable) return;
|
|
235
|
+
if (isContentEditable) return;
|
|
282
236
|
|
|
237
|
+
// Check validation
|
|
283
238
|
if ($inputEl.attr('data-validate-on-blur') === null && ($inputEl.dataset().validate || $inputEl.attr('validate') !== null)) {
|
|
284
239
|
app.input.validate($inputEl);
|
|
285
|
-
}
|
|
286
|
-
|
|
240
|
+
}
|
|
287
241
|
|
|
242
|
+
// Resize textarea
|
|
288
243
|
if (tag === 'textarea' && $inputEl.hasClass('resizable')) {
|
|
289
244
|
app.input.resizeTextarea($inputEl);
|
|
290
245
|
}
|
|
291
246
|
}
|
|
292
|
-
|
|
293
247
|
function onInvalid(e) {
|
|
294
248
|
const $inputEl = $(this);
|
|
295
|
-
|
|
296
249
|
if ($inputEl.attr('data-validate-on-blur') === null && ($inputEl.dataset().validate || $inputEl.attr('validate') !== null)) {
|
|
297
250
|
e.preventDefault();
|
|
298
251
|
app.input.validate($inputEl);
|
|
299
252
|
}
|
|
300
253
|
}
|
|
301
|
-
|
|
302
254
|
function clearInput() {
|
|
303
255
|
const $clicked = $(this);
|
|
304
256
|
const $inputEl = $clicked.siblings('input, textarea').eq(0);
|
|
@@ -306,11 +258,9 @@ const Input = {
|
|
|
306
258
|
$inputEl.val('').trigger('input change').focus().trigger('input:clear', previousValue);
|
|
307
259
|
app.emit('inputClear', previousValue);
|
|
308
260
|
}
|
|
309
|
-
|
|
310
261
|
function preventDefault(e) {
|
|
311
262
|
e.preventDefault();
|
|
312
263
|
}
|
|
313
|
-
|
|
314
264
|
$(document).on('click', '.input-clear-button', clearInput);
|
|
315
265
|
$(document).on('mousedown', '.input-clear-button', preventDefault);
|
|
316
266
|
$(document).on('change input', 'input, textarea, select, .item-input [contenteditable]', onChange, true);
|
|
@@ -318,7 +268,6 @@ const Input = {
|
|
|
318
268
|
$(document).on('blur', 'input, textarea, select, .item-input [contenteditable]', onBlur, true);
|
|
319
269
|
$(document).on('invalid', 'input, textarea, select', onInvalid, true);
|
|
320
270
|
}
|
|
321
|
-
|
|
322
271
|
};
|
|
323
272
|
export default {
|
|
324
273
|
name: 'input',
|
|
@@ -330,25 +279,20 @@ export default {
|
|
|
330
279
|
scrollIntoViewAlways: false
|
|
331
280
|
}
|
|
332
281
|
},
|
|
333
|
-
|
|
334
282
|
create() {
|
|
335
283
|
const app = this;
|
|
336
|
-
|
|
337
284
|
if (typeof app.params.input.scrollIntoViewOnFocus === 'undefined') {
|
|
338
285
|
app.params.input.scrollIntoViewOnFocus = getDevice().android;
|
|
339
286
|
}
|
|
340
|
-
|
|
341
287
|
bindMethods(app, {
|
|
342
288
|
input: Input
|
|
343
289
|
});
|
|
344
290
|
},
|
|
345
|
-
|
|
346
291
|
on: {
|
|
347
292
|
init() {
|
|
348
293
|
const app = this;
|
|
349
294
|
app.input.init();
|
|
350
295
|
},
|
|
351
|
-
|
|
352
296
|
tabMounted(tabEl) {
|
|
353
297
|
const app = this;
|
|
354
298
|
const $tabEl = $(tabEl);
|
|
@@ -364,7 +308,6 @@ export default {
|
|
|
364
308
|
app.input.resizeTextarea(textareaEl);
|
|
365
309
|
});
|
|
366
310
|
},
|
|
367
|
-
|
|
368
311
|
pageInit(page) {
|
|
369
312
|
const app = this;
|
|
370
313
|
const $pageEl = page.$el;
|
|
@@ -380,10 +323,8 @@ export default {
|
|
|
380
323
|
app.input.resizeTextarea(textareaEl);
|
|
381
324
|
});
|
|
382
325
|
},
|
|
383
|
-
|
|
384
326
|
'panelBreakpoint panelCollapsedBreakpoint panelResize panelOpen panelSwipeOpen resize viewMasterDetailBreakpoint': function onPanelOpen(instance) {
|
|
385
327
|
const app = this;
|
|
386
|
-
|
|
387
328
|
if (instance && instance.$el) {
|
|
388
329
|
instance.$el.find('textarea.resizable').each(textareaEl => {
|
|
389
330
|
app.input.resizeTextarea(textareaEl);
|
|
@@ -28,6 +28,15 @@ textarea {
|
|
|
28
28
|
resize: none;
|
|
29
29
|
font-size: inherit;
|
|
30
30
|
color: inherit;
|
|
31
|
+
&:-internal-autofill-selected {
|
|
32
|
+
background-color: transparent !important;
|
|
33
|
+
transition: background-color 5000s ease-in-out 0s !important;
|
|
34
|
+
}
|
|
35
|
+
&:autofill,
|
|
36
|
+
&:-webkit-autofill-and-obscured {
|
|
37
|
+
background-color: transparent !important;
|
|
38
|
+
transition: background-color 5000s ease-in-out 0s !important;
|
|
39
|
+
}
|
|
31
40
|
}
|
|
32
41
|
.textarea-resizable-shadow {
|
|
33
42
|
opacity: 0;
|
|
@@ -78,7 +87,7 @@ textarea {
|
|
|
78
87
|
color: var(--f7-input-placeholder-color);
|
|
79
88
|
}
|
|
80
89
|
&.resizable {
|
|
81
|
-
height: var(--f7-input-height);
|
|
90
|
+
height: calc(var(--f7-input-height) + var(--f7-textarea-padding-vertical) * 2);
|
|
82
91
|
}
|
|
83
92
|
}
|
|
84
93
|
input[type='datetime-local'] {
|
|
@@ -101,22 +110,18 @@ textarea {
|
|
|
101
110
|
});
|
|
102
111
|
.item-label,
|
|
103
112
|
.item-floating-label {
|
|
104
|
-
width:
|
|
113
|
+
width: auto;
|
|
105
114
|
vertical-align: top;
|
|
106
115
|
flex-shrink: 0;
|
|
107
116
|
font-size: var(--f7-label-font-size);
|
|
108
117
|
font-weight: var(--f7-label-font-weight);
|
|
109
|
-
line-height: var(--f7-label-
|
|
118
|
+
line-height: var(--f7-label-height);
|
|
110
119
|
color: var(--f7-label-text-color);
|
|
111
120
|
transition-duration: 200ms;
|
|
112
121
|
transition-property: transform, color;
|
|
113
122
|
}
|
|
114
123
|
.item-floating-label {
|
|
115
|
-
--label-height: calc(var(--f7-label-font-size) * var(--f7-label-line-height));
|
|
116
|
-
transform: scale(var(--f7-floating-label-scale))
|
|
117
|
-
translateY(calc((var(--f7-input-height) / 2 + 50%) / var(--f7-floating-label-scale)));
|
|
118
124
|
color: var(--f7-input-placeholder-color);
|
|
119
|
-
width: auto;
|
|
120
125
|
max-width: calc(100% / var(--f7-floating-label-scale));
|
|
121
126
|
pointer-events: none;
|
|
122
127
|
.ltr({
|
|
@@ -148,7 +153,7 @@ textarea {
|
|
|
148
153
|
}
|
|
149
154
|
.item-input-with-value .item-floating-label,
|
|
150
155
|
.item-input-focused .item-floating-label {
|
|
151
|
-
transform: scale(1) translateY(0);
|
|
156
|
+
transform: scale(1) translateY(0) !important;
|
|
152
157
|
}
|
|
153
158
|
.item-input-wrap {
|
|
154
159
|
width: 100%;
|
|
@@ -156,10 +161,16 @@ textarea {
|
|
|
156
161
|
position: relative;
|
|
157
162
|
}
|
|
158
163
|
}
|
|
164
|
+
.item-input,
|
|
165
|
+
.input {
|
|
166
|
+
position: relative;
|
|
167
|
+
}
|
|
168
|
+
|
|
159
169
|
.item-input .item-inner {
|
|
160
170
|
display: flex;
|
|
161
171
|
flex-direction: column;
|
|
162
172
|
align-items: flex-start;
|
|
173
|
+
justify-content: center;
|
|
163
174
|
}
|
|
164
175
|
.item-input-error-message,
|
|
165
176
|
.input-error-message {
|
|
@@ -187,30 +198,7 @@ textarea {
|
|
|
187
198
|
display: none;
|
|
188
199
|
}
|
|
189
200
|
}
|
|
190
|
-
|
|
191
|
-
.inline-label {
|
|
192
|
-
.item-inner {
|
|
193
|
-
display: flex;
|
|
194
|
-
align-items: center;
|
|
195
|
-
flex-direction: row;
|
|
196
|
-
}
|
|
197
|
-
.item-label,
|
|
198
|
-
.item-floating-label {
|
|
199
|
-
padding-top: var(--f7-inline-label-padding-top);
|
|
200
|
-
align-self: flex-start;
|
|
201
|
-
width: 35%;
|
|
202
|
-
font-size: var(--f7-inline-label-font-size);
|
|
203
|
-
line-height: var(--f7-inline-label-line-height);
|
|
204
|
-
+ .item-input-wrap {
|
|
205
|
-
.ltr({
|
|
206
|
-
margin-left: 8px;
|
|
207
|
-
});
|
|
208
|
-
.rtl({
|
|
209
|
-
margin-right: 8px;
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
201
|
+
|
|
214
202
|
.input {
|
|
215
203
|
position: relative;
|
|
216
204
|
input,
|
|
@@ -300,131 +288,60 @@ textarea {
|
|
|
300
288
|
}
|
|
301
289
|
}
|
|
302
290
|
|
|
303
|
-
.input-outline
|
|
304
|
-
.item-input-outline
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
transition-duration: 200ms;
|
|
315
|
-
pointer-events: none;
|
|
316
|
-
}
|
|
317
|
-
.input-outline.input-focused:after,
|
|
318
|
-
.item-input-outline.item-input-focused .item-input-wrap:after {
|
|
319
|
-
border-width: 2px;
|
|
320
|
-
border-color: var(--f7-input-outline-focused-border-color, var(--f7-theme-color));
|
|
321
|
-
}
|
|
322
|
-
.input-outline.input-invalid:after,
|
|
323
|
-
.item-input-outline.item-input-invalid .item-input-wrap:after {
|
|
324
|
-
border-width: 2px;
|
|
325
|
-
border-color: var(--f7-input-outline-invalid-border-color, var(--f7-input-error-text-color));
|
|
326
|
-
}
|
|
327
|
-
.input-outline,
|
|
328
|
-
.item-input-outline,
|
|
329
|
-
.list .item-input-outline {
|
|
330
|
-
input,
|
|
331
|
-
textarea,
|
|
332
|
-
select {
|
|
291
|
+
.item-input-outline .item-content,
|
|
292
|
+
.item-input-outline.item-content,
|
|
293
|
+
.input-outline {
|
|
294
|
+
&::after {
|
|
295
|
+
content: '';
|
|
296
|
+
position: absolute;
|
|
297
|
+
left: 0;
|
|
298
|
+
right: 0;
|
|
299
|
+
top: 8px;
|
|
300
|
+
bottom: 8px;
|
|
301
|
+
border: 1px solid var(--f7-input-outline-border-color);
|
|
333
302
|
border-radius: var(--f7-input-outline-border-radius);
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
.input-outline.input-dropdown,
|
|
339
|
-
.item-input-outline .input-dropdown-wrap {
|
|
340
|
-
&:before {
|
|
341
|
-
.ltr({
|
|
342
|
-
right: 8px;
|
|
343
|
-
});
|
|
344
|
-
.rtl({
|
|
345
|
-
left: 8px;
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
input,
|
|
349
|
-
textarea,
|
|
350
|
-
select {
|
|
351
|
-
.ltr({
|
|
352
|
-
padding-right: 20px;
|
|
353
|
-
});
|
|
354
|
-
.rtl({
|
|
355
|
-
padding-left: 20px;
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
.input-outline,
|
|
360
|
-
.item-input-outline {
|
|
361
|
-
.input-clear-button {
|
|
362
|
-
.ltr({
|
|
363
|
-
right: 8px;
|
|
364
|
-
});
|
|
365
|
-
.rtl({
|
|
366
|
-
left: 8px;
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
.item-input-outline {
|
|
371
|
-
--f7-input-height: var(--f7-input-outline-height);
|
|
372
|
-
.item-inner:after {
|
|
373
|
-
display: none !important;
|
|
374
|
-
}
|
|
375
|
-
.item-label {
|
|
376
|
-
.ltr({
|
|
377
|
-
left: var(--f7-input-outline-padding-horizontal);
|
|
378
|
-
});
|
|
379
|
-
.rtl({
|
|
380
|
-
right: var(--f7-input-outline-padding-horizontal);
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
.inline-labels & .item-label,
|
|
384
|
-
.inline-label & .item-label,
|
|
385
|
-
.inline-label .item-label,
|
|
386
|
-
.inline-label.item-label {
|
|
387
|
-
.ltr({
|
|
388
|
-
left: 0;
|
|
389
|
-
});
|
|
390
|
-
.rtl({
|
|
391
|
-
right: 0;
|
|
392
|
-
});
|
|
303
|
+
pointer-events: none;
|
|
304
|
+
box-sizing: border-box;
|
|
305
|
+
transition-duration: 200ms;
|
|
393
306
|
}
|
|
307
|
+
.item-label,
|
|
394
308
|
.item-floating-label {
|
|
395
|
-
|
|
396
|
-
left: calc(var(--f7-input-outline-padding-horizontal) - 4px);
|
|
397
|
-
});
|
|
398
|
-
.rtl({
|
|
399
|
-
right: calc(var(--f7-input-outline-padding-horizontal) - 4px);
|
|
400
|
-
});
|
|
401
|
-
padding-left: 4px;
|
|
402
|
-
padding-right: 4px;
|
|
309
|
+
pointer-events: none;
|
|
403
310
|
background: var(--f7-page-bg-color);
|
|
404
|
-
z-index:
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
&.item-input-
|
|
408
|
-
&.
|
|
409
|
-
|
|
311
|
+
z-index: 1;
|
|
312
|
+
padding: 4px;
|
|
313
|
+
}
|
|
314
|
+
&.item-input-focused,
|
|
315
|
+
&.input-focused {
|
|
316
|
+
&::after {
|
|
317
|
+
border-width: 2px;
|
|
318
|
+
border-color: var(--f7-input-outline-invalid-border-color, var(--f7-theme-color));
|
|
319
|
+
}
|
|
410
320
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
padding-right: var(--f7-input-outline-padding-horizontal);
|
|
418
|
-
});
|
|
321
|
+
&.item-input-invalid,
|
|
322
|
+
&.input-invalid {
|
|
323
|
+
&::after {
|
|
324
|
+
border-width: 2px;
|
|
325
|
+
border-color: var(--f7-input-outline-invalid-border-color, var(--f7-input-error-text-color));
|
|
326
|
+
}
|
|
419
327
|
}
|
|
420
328
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
329
|
+
|
|
330
|
+
.block-strong .item-input-outline .item-label,
|
|
331
|
+
.block-strong .item-input-outline .item-floating-label,
|
|
332
|
+
.ios .block-strong-ios .item-input-outline .item-label,
|
|
333
|
+
.ios .block-strong-ios .item-input-outline .item-floating-label,
|
|
334
|
+
.md .block-strong-md .item-input-outline .item-label,
|
|
335
|
+
.md .block-strong-md .item-input-outline .item-floating-label {
|
|
336
|
+
background: var(--f7-block-strong-bg-color) !important;
|
|
337
|
+
}
|
|
338
|
+
.list-strong .item-input-outline .item-floating-label,
|
|
339
|
+
.list-strong .item-input-outline .item-label,
|
|
340
|
+
.ios .list-strong-ios .item-input-outline .item-floating-label,
|
|
341
|
+
.ios .list-strong-ios .item-input-outline .item-label,
|
|
342
|
+
.md .list-strong-md .item-input-outline .item-floating-label,
|
|
343
|
+
.md .list-strong-md .item-input-outline .item-label {
|
|
344
|
+
background: var(--f7-list-strong-bg-color) !important;
|
|
428
345
|
}
|
|
429
346
|
|
|
430
347
|
.if-dark-theme({
|
|
@@ -439,6 +356,3 @@ textarea {
|
|
|
439
356
|
.if-md-theme({
|
|
440
357
|
@import './input-md.less';
|
|
441
358
|
});
|
|
442
|
-
.if-aurora-theme({
|
|
443
|
-
@import './input-aurora.less';
|
|
444
|
-
});
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
.link[class*='color-'] {
|
|
29
|
+
color: var(--f7-theme-color);
|
|
30
|
+
}
|
|
28
31
|
|
|
29
32
|
.if-ios-theme({
|
|
30
33
|
@import './link-ios.less';
|
|
@@ -32,6 +35,3 @@
|
|
|
32
35
|
.if-md-theme({
|
|
33
36
|
@import './link-md.less';
|
|
34
37
|
});
|
|
35
|
-
.if-aurora-theme({
|
|
36
|
-
@import './link-aurora.less';
|
|
37
|
-
});
|