@xenknight/framework7 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +32 -0
- package/components/accordion/accordion-ios.less +2 -0
- package/components/accordion/accordion-md.less +2 -0
- package/components/accordion/accordion-rtl.css +1 -0
- package/components/accordion/accordion-vars.less +0 -0
- package/components/accordion/accordion.css +1 -0
- package/components/accordion/accordion.d.ts +55 -0
- package/components/accordion/accordion.js +118 -0
- package/components/accordion/accordion.less +215 -0
- package/components/actions/actions-class.js +325 -0
- package/components/actions/actions-ios.less +51 -0
- package/components/actions/actions-md.less +24 -0
- package/components/actions/actions-rtl.css +1 -0
- package/components/actions/actions-vars.less +72 -0
- package/components/actions/actions.css +1 -0
- package/components/actions/actions.d.ts +164 -0
- package/components/actions/actions.js +47 -0
- package/components/actions/actions.less +182 -0
- package/components/app/app-class.d.ts +189 -0
- package/components/app/app-class.js +349 -0
- package/components/app/app-ios.less +23 -0
- package/components/app/app-md.less +8 -0
- package/components/app/app-vars.less +122 -0
- package/components/app/app.less +121 -0
- package/components/app/load-module.js +125 -0
- package/components/area-chart/area-chart-class.js +467 -0
- package/components/area-chart/area-chart-ios.less +2 -0
- package/components/area-chart/area-chart-md.less +2 -0
- package/components/area-chart/area-chart-rtl.css +1 -0
- package/components/area-chart/area-chart-vars.less +35 -0
- package/components/area-chart/area-chart.css +1 -0
- package/components/area-chart/area-chart.d.ts +128 -0
- package/components/area-chart/area-chart.js +44 -0
- package/components/area-chart/area-chart.less +131 -0
- package/components/autocomplete/autocomplete-class.js +813 -0
- package/components/autocomplete/autocomplete-ios.less +9 -0
- package/components/autocomplete/autocomplete-md.less +30 -0
- package/components/autocomplete/autocomplete-rtl.css +1 -0
- package/components/autocomplete/autocomplete-vars.less +36 -0
- package/components/autocomplete/autocomplete.css +1 -0
- package/components/autocomplete/autocomplete.d.ts +193 -0
- package/components/autocomplete/autocomplete.js +81 -0
- package/components/autocomplete/autocomplete.less +102 -0
- package/components/badge/badge-ios.less +2 -0
- package/components/badge/badge-md.less +2 -0
- package/components/badge/badge-vars.less +18 -0
- package/components/badge/badge.d.ts +14 -0
- package/components/badge/badge.js +3 -0
- package/components/badge/badge.less +45 -0
- package/components/block/block-ios.less +2 -0
- package/components/block/block-md.less +2 -0
- package/components/block/block-vars.less +77 -0
- package/components/block/block.d.ts +14 -0
- package/components/block/block.js +3 -0
- package/components/block/block.less +209 -0
- package/components/breadcrumbs/breadcrumbs-ios.less +2 -0
- package/components/breadcrumbs/breadcrumbs-md.less +2 -0
- package/components/breadcrumbs/breadcrumbs-rtl.css +1 -0
- package/components/breadcrumbs/breadcrumbs-vars.less +52 -0
- package/components/breadcrumbs/breadcrumbs.css +1 -0
- package/components/breadcrumbs/breadcrumbs.d.ts +15 -0
- package/components/breadcrumbs/breadcrumbs.js +11 -0
- package/components/breadcrumbs/breadcrumbs.less +91 -0
- package/components/button/button-ios.less +21 -0
- package/components/button/button-md.less +11 -0
- package/components/button/button-vars.less +114 -0
- package/components/button/button.d.ts +14 -0
- package/components/button/button.js +3 -0
- package/components/button/button.less +421 -0
- package/components/calendar/calendar-class.js +1872 -0
- package/components/calendar/calendar-ios.less +2 -0
- package/components/calendar/calendar-md.less +2 -0
- package/components/calendar/calendar-rtl.css +1 -0
- package/components/calendar/calendar-vars.less +108 -0
- package/components/calendar/calendar.css +1 -0
- package/components/calendar/calendar.d.ts +312 -0
- package/components/calendar/calendar.js +118 -0
- package/components/calendar/calendar.less +448 -0
- package/components/card/card-ios.less +2 -0
- package/components/card/card-md.less +2 -0
- package/components/card/card-rtl.css +1 -0
- package/components/card/card-vars.less +80 -0
- package/components/card/card.css +1 -0
- package/components/card/card.d.ts +69 -0
- package/components/card/card.js +504 -0
- package/components/card/card.less +307 -0
- package/components/checkbox/checkbox-ios.less +23 -0
- package/components/checkbox/checkbox-md.less +17 -0
- package/components/checkbox/checkbox-rtl.css +1 -0
- package/components/checkbox/checkbox-vars.less +25 -0
- package/components/checkbox/checkbox.css +1 -0
- package/components/checkbox/checkbox.d.ts +14 -0
- package/components/checkbox/checkbox.js +3 -0
- package/components/checkbox/checkbox.less +155 -0
- package/components/chip/chip-ios.less +25 -0
- package/components/chip/chip-md.less +30 -0
- package/components/chip/chip-rtl.css +1 -0
- package/components/chip/chip-vars.less +42 -0
- package/components/chip/chip.css +1 -0
- package/components/chip/chip.d.ts +14 -0
- package/components/chip/chip.js +3 -0
- package/components/chip/chip.less +106 -0
- package/components/color-picker/color-picker-class.js +871 -0
- package/components/color-picker/color-picker-ios.less +2 -0
- package/components/color-picker/color-picker-md.less +2 -0
- package/components/color-picker/color-picker-rtl.css +1 -0
- package/components/color-picker/color-picker-vars.less +39 -0
- package/components/color-picker/color-picker.css +1 -0
- package/components/color-picker/color-picker.d.ts +233 -0
- package/components/color-picker/color-picker.js +92 -0
- package/components/color-picker/color-picker.less +557 -0
- package/components/color-picker/modules/alpha-slider.js +91 -0
- package/components/color-picker/modules/brightness-slider.js +80 -0
- package/components/color-picker/modules/current-color.js +14 -0
- package/components/color-picker/modules/hex.js +71 -0
- package/components/color-picker/modules/hs-spectrum.js +118 -0
- package/components/color-picker/modules/hsb-sliders.js +191 -0
- package/components/color-picker/modules/hue-slider.js +73 -0
- package/components/color-picker/modules/initial-current-colors.js +43 -0
- package/components/color-picker/modules/palette.js +46 -0
- package/components/color-picker/modules/rgb-bars.js +183 -0
- package/components/color-picker/modules/rgb-sliders.js +185 -0
- package/components/color-picker/modules/sb-spectrum.js +119 -0
- package/components/color-picker/modules/wheel.js +173 -0
- package/components/contacts-list/contacts-list-ios.less +2 -0
- package/components/contacts-list/contacts-list-md.less +21 -0
- package/components/contacts-list/contacts-list-rtl.css +1 -0
- package/components/contacts-list/contacts-list-vars.less +24 -0
- package/components/contacts-list/contacts-list.css +1 -0
- package/components/contacts-list/contacts-list.d.ts +14 -0
- package/components/contacts-list/contacts-list.js +3 -0
- package/components/contacts-list/contacts-list.less +26 -0
- package/components/data-table/data-table-class.js +141 -0
- package/components/data-table/data-table-ios.less +70 -0
- package/components/data-table/data-table-md.less +88 -0
- package/components/data-table/data-table-rtl.css +1 -0
- package/components/data-table/data-table-vars.less +77 -0
- package/components/data-table/data-table.css +1 -0
- package/components/data-table/data-table.d.ts +61 -0
- package/components/data-table/data-table.js +64 -0
- package/components/data-table/data-table.less +429 -0
- package/components/dialog/dialog-class.js +196 -0
- package/components/dialog/dialog-ios.less +94 -0
- package/components/dialog/dialog-md.less +86 -0
- package/components/dialog/dialog-rtl.css +1 -0
- package/components/dialog/dialog-vars.less +93 -0
- package/components/dialog/dialog.css +1 -0
- package/components/dialog/dialog.d.ts +245 -0
- package/components/dialog/dialog.js +242 -0
- package/components/dialog/dialog.less +142 -0
- package/components/fab/fab-ios.less +9 -0
- package/components/fab/fab-md.less +11 -0
- package/components/fab/fab-rtl.css +1 -0
- package/components/fab/fab-vars.less +46 -0
- package/components/fab/fab.css +1 -0
- package/components/fab/fab.d.ts +32 -0
- package/components/fab/fab.js +172 -0
- package/components/fab/fab.less +523 -0
- package/components/form/form-ios.less +0 -0
- package/components/form/form-md.less +0 -0
- package/components/form/form-rtl.css +0 -0
- package/components/form/form.css +0 -0
- package/components/form/form.d.ts +64 -0
- package/components/form/form.js +311 -0
- package/components/form/form.less +7 -0
- package/components/gauge/gauge-class.js +298 -0
- package/components/gauge/gauge-ios.less +2 -0
- package/components/gauge/gauge-md.less +2 -0
- package/components/gauge/gauge-rtl.css +1 -0
- package/components/gauge/gauge.css +1 -0
- package/components/gauge/gauge.d.ts +100 -0
- package/components/gauge/gauge.js +90 -0
- package/components/gauge/gauge.less +24 -0
- package/components/grid/grid-ios.less +2 -0
- package/components/grid/grid-md.less +2 -0
- package/components/grid/grid-rtl.css +1 -0
- package/components/grid/grid-vars.less +3 -0
- package/components/grid/grid.css +1 -0
- package/components/grid/grid.d.ts +15 -0
- package/components/grid/grid.js +3 -0
- package/components/grid/grid.less +78 -0
- package/components/icon/icon-ios.less +44 -0
- package/components/icon/icon-md.less +56 -0
- package/components/icon/icon.d.ts +14 -0
- package/components/icon/icon.js +3 -0
- package/components/icon/icon.less +33 -0
- package/components/infinite-scroll/infinite-scroll-ios.less +11 -0
- package/components/infinite-scroll/infinite-scroll-md.less +6 -0
- package/components/infinite-scroll/infinite-scroll-rtl.css +1 -0
- package/components/infinite-scroll/infinite-scroll.css +1 -0
- package/components/infinite-scroll/infinite-scroll.d.ts +27 -0
- package/components/infinite-scroll/infinite-scroll.js +94 -0
- package/components/infinite-scroll/infinite-scroll.less +15 -0
- package/components/input/input-ios.less +129 -0
- package/components/input/input-md.less +171 -0
- package/components/input/input-rtl.css +1 -0
- package/components/input/input-vars.less +94 -0
- package/components/input/input.css +1 -0
- package/components/input/input.d.ts +60 -0
- package/components/input/input.js +339 -0
- package/components/input/input.less +355 -0
- package/components/link/link-ios.less +9 -0
- package/components/link/link-md.less +2 -0
- package/components/link/link-vars.less +9 -0
- package/components/link/link.d.ts +14 -0
- package/components/link/link.js +3 -0
- package/components/link/link.less +37 -0
- package/components/list/list-ios.less +15 -0
- package/components/list/list-md.less +5 -0
- package/components/list/list-vars.less +184 -0
- package/components/list/list.d.ts +14 -0
- package/components/list/list.js +3 -0
- package/components/list/list.less +718 -0
- package/components/list-index/list-index-class.js +333 -0
- package/components/list-index/list-index-ios.less +21 -0
- package/components/list-index/list-index-md.less +7 -0
- package/components/list-index/list-index-rtl.css +1 -0
- package/components/list-index/list-index-vars.less +25 -0
- package/components/list-index/list-index.css +1 -0
- package/components/list-index/list-index.d.ts +101 -0
- package/components/list-index/list-index.js +65 -0
- package/components/list-index/list-index.less +130 -0
- package/components/login-screen/login-screen-class.js +38 -0
- package/components/login-screen/login-screen-ios.less +2 -0
- package/components/login-screen/login-screen-md.less +2 -0
- package/components/login-screen/login-screen-rtl.css +1 -0
- package/components/login-screen/login-screen-vars.less +33 -0
- package/components/login-screen/login-screen.css +1 -0
- package/components/login-screen/login-screen.d.ts +99 -0
- package/components/login-screen/login-screen.js +32 -0
- package/components/login-screen/login-screen.less +100 -0
- package/components/messagebar/messagebar-class.js +367 -0
- package/components/messagebar/messagebar-ios.less +88 -0
- package/components/messagebar/messagebar-md.less +114 -0
- package/components/messagebar/messagebar-rtl.css +1 -0
- package/components/messagebar/messagebar-vars.less +75 -0
- package/components/messagebar/messagebar.css +1 -0
- package/components/messagebar/messagebar.d.ts +165 -0
- package/components/messagebar/messagebar.js +66 -0
- package/components/messagebar/messagebar.less +162 -0
- package/components/messages/messages-class.js +487 -0
- package/components/messages/messages-ios.less +165 -0
- package/components/messages/messages-md.less +140 -0
- package/components/messages/messages-rtl.css +1 -0
- package/components/messages/messages-vars.less +82 -0
- package/components/messages/messages.css +1 -0
- package/components/messages/messages.d.ts +162 -0
- package/components/messages/messages.js +65 -0
- package/components/messages/messages.less +218 -0
- package/components/modal/custom-modal-class.js +66 -0
- package/components/modal/modal-class.js +224 -0
- package/components/modal/modal.d.ts +82 -0
- package/components/modal/modal.js +22 -0
- package/components/modal/modal.less +14 -0
- package/components/navbar/navbar-ios.less +755 -0
- package/components/navbar/navbar-md.less +65 -0
- package/components/navbar/navbar-vars.less +74 -0
- package/components/navbar/navbar.d.ts +77 -0
- package/components/navbar/navbar.js +712 -0
- package/components/navbar/navbar.less +311 -0
- package/components/notification/notification-class.js +212 -0
- package/components/notification/notification-ios.less +55 -0
- package/components/notification/notification-md.less +87 -0
- package/components/notification/notification-rtl.css +1 -0
- package/components/notification/notification-vars.less +75 -0
- package/components/notification/notification.css +1 -0
- package/components/notification/notification.d.ts +122 -0
- package/components/notification/notification.js +33 -0
- package/components/notification/notification.less +94 -0
- package/components/page/page-ios.less +154 -0
- package/components/page/page-md.less +83 -0
- package/components/page/page-transitions/circle.less +107 -0
- package/components/page/page-transitions/cover-v.less +61 -0
- package/components/page/page-transitions/cover.less +71 -0
- package/components/page/page-transitions/dive.less +77 -0
- package/components/page/page-transitions/fade.less +53 -0
- package/components/page/page-transitions/flip.less +91 -0
- package/components/page/page-transitions/parallax.less +75 -0
- package/components/page/page-transitions/push.less +75 -0
- package/components/page/page-vars.less +47 -0
- package/components/page/page.d.ts +14 -0
- package/components/page/page.js +3 -0
- package/components/page/page.less +204 -0
- package/components/panel/panel-class.js +556 -0
- package/components/panel/panel-ios.less +2 -0
- package/components/panel/panel-md.less +11 -0
- package/components/panel/panel-rtl.css +3 -0
- package/components/panel/panel-vars.less +24 -0
- package/components/panel/panel.css +3 -0
- package/components/panel/panel.d.ts +198 -0
- package/components/panel/panel.js +189 -0
- package/components/panel/panel.less +403 -0
- package/components/panel/resizable-panel.js +160 -0
- package/components/panel/swipe-panel.js +311 -0
- package/components/photo-browser/photo-browser-class.js +734 -0
- package/components/photo-browser/photo-browser-ios.less +2 -0
- package/components/photo-browser/photo-browser-md.less +2 -0
- package/components/photo-browser/photo-browser-rtl.css +1 -0
- package/components/photo-browser/photo-browser-vars.less +16 -0
- package/components/photo-browser/photo-browser.css +1 -0
- package/components/photo-browser/photo-browser.d.ts +204 -0
- package/components/photo-browser/photo-browser.js +73 -0
- package/components/photo-browser/photo-browser.less +358 -0
- package/components/picker/picker-class.js +588 -0
- package/components/picker/picker-column.js +121 -0
- package/components/picker/picker-ios.less +12 -0
- package/components/picker/picker-md.less +8 -0
- package/components/picker/picker-rtl.css +1 -0
- package/components/picker/picker-vars.less +35 -0
- package/components/picker/picker.css +1 -0
- package/components/picker/picker.d.ts +209 -0
- package/components/picker/picker.js +59 -0
- package/components/picker/picker.less +180 -0
- package/components/pie-chart/pie-chart-class.js +250 -0
- package/components/pie-chart/pie-chart-ios.less +2 -0
- package/components/pie-chart/pie-chart-md.less +2 -0
- package/components/pie-chart/pie-chart-rtl.css +1 -0
- package/components/pie-chart/pie-chart.css +1 -0
- package/components/pie-chart/pie-chart.d.ts +99 -0
- package/components/pie-chart/pie-chart.js +32 -0
- package/components/pie-chart/pie-chart.less +43 -0
- package/components/popover/popover-class.js +293 -0
- package/components/popover/popover-ios.less +6 -0
- package/components/popover/popover-md.less +41 -0
- package/components/popover/popover-rtl.css +1 -0
- package/components/popover/popover-vars.less +25 -0
- package/components/popover/popover.css +1 -0
- package/components/popover/popover.d.ts +137 -0
- package/components/popover/popover.js +75 -0
- package/components/popover/popover.less +168 -0
- package/components/popup/popup-class.js +329 -0
- package/components/popup/popup-ios.less +2 -0
- package/components/popup/popup-md.less +2 -0
- package/components/popup/popup-rtl.css +1 -0
- package/components/popup/popup-vars.less +21 -0
- package/components/popup/popup.css +1 -0
- package/components/popup/popup.d.ts +143 -0
- package/components/popup/popup.js +46 -0
- package/components/popup/popup.less +204 -0
- package/components/preloader/preloader-ios.less +57 -0
- package/components/preloader/preloader-md.less +114 -0
- package/components/preloader/preloader-rtl.css +1 -0
- package/components/preloader/preloader-vars.less +16 -0
- package/components/preloader/preloader.css +1 -0
- package/components/preloader/preloader.d.ts +26 -0
- package/components/preloader/preloader.js +106 -0
- package/components/preloader/preloader.less +60 -0
- package/components/progressbar/progressbar-ios.less +59 -0
- package/components/progressbar/progressbar-md.less +141 -0
- package/components/progressbar/progressbar-rtl.css +1 -0
- package/components/progressbar/progressbar-vars.less +22 -0
- package/components/progressbar/progressbar.css +1 -0
- package/components/progressbar/progressbar.d.ts +31 -0
- package/components/progressbar/progressbar.js +150 -0
- package/components/progressbar/progressbar.less +111 -0
- package/components/pull-to-refresh/pull-to-refresh-class.js +512 -0
- package/components/pull-to-refresh/pull-to-refresh-ios.less +88 -0
- package/components/pull-to-refresh/pull-to-refresh-md.less +129 -0
- package/components/pull-to-refresh/pull-to-refresh-rtl.css +1 -0
- package/components/pull-to-refresh/pull-to-refresh-vars.less +14 -0
- package/components/pull-to-refresh/pull-to-refresh.css +1 -0
- package/components/pull-to-refresh/pull-to-refresh.d.ts +103 -0
- package/components/pull-to-refresh/pull-to-refresh.js +62 -0
- package/components/pull-to-refresh/pull-to-refresh.less +38 -0
- package/components/radio/radio-ios.less +61 -0
- package/components/radio/radio-md.less +64 -0
- package/components/radio/radio-rtl.css +1 -0
- package/components/radio/radio-vars.less +24 -0
- package/components/radio/radio.css +1 -0
- package/components/radio/radio.d.ts +14 -0
- package/components/radio/radio.js +3 -0
- package/components/radio/radio.less +64 -0
- package/components/range/range-class.js +577 -0
- package/components/range/range-ios.less +9 -0
- package/components/range/range-md.less +41 -0
- package/components/range/range-rtl.css +1 -0
- package/components/range/range-vars.less +61 -0
- package/components/range/range.css +1 -0
- package/components/range/range.d.ts +143 -0
- package/components/range/range.js +75 -0
- package/components/range/range.less +235 -0
- package/components/searchbar/remove-diacritics.js +271 -0
- package/components/searchbar/searchbar-class.js +592 -0
- package/components/searchbar/searchbar-ios.less +107 -0
- package/components/searchbar/searchbar-md.less +147 -0
- package/components/searchbar/searchbar-rtl.css +1 -0
- package/components/searchbar/searchbar-vars.less +77 -0
- package/components/searchbar/searchbar.css +1 -0
- package/components/searchbar/searchbar.d.ts +161 -0
- package/components/searchbar/searchbar.js +122 -0
- package/components/searchbar/searchbar.less +322 -0
- package/components/sheet/sheet-class.js +673 -0
- package/components/sheet/sheet-ios.less +2 -0
- package/components/sheet/sheet-md.less +9 -0
- package/components/sheet/sheet-rtl.css +1 -0
- package/components/sheet/sheet-vars.less +27 -0
- package/components/sheet/sheet.css +1 -0
- package/components/sheet/sheet.d.ts +170 -0
- package/components/sheet/sheet.js +76 -0
- package/components/sheet/sheet.less +196 -0
- package/components/skeleton/skeleton-ios.less +2 -0
- package/components/skeleton/skeleton-md.less +2 -0
- package/components/skeleton/skeleton-rtl.css +1 -0
- package/components/skeleton/skeleton-vars.less +8 -0
- package/components/skeleton/skeleton.css +1 -0
- package/components/skeleton/skeleton.d.ts +14 -0
- package/components/skeleton/skeleton.js +3 -0
- package/components/skeleton/skeleton.less +11 -0
- package/components/smart-select/smart-select-class.js +874 -0
- package/components/smart-select/smart-select-ios.less +2 -0
- package/components/smart-select/smart-select-md.less +2 -0
- package/components/smart-select/smart-select-rtl.css +1 -0
- package/components/smart-select/smart-select-vars.less +6 -0
- package/components/smart-select/smart-select.css +1 -0
- package/components/smart-select/smart-select.d.ts +204 -0
- package/components/smart-select/smart-select.js +138 -0
- package/components/smart-select/smart-select.less +42 -0
- package/components/sortable/sortable-ios.less +7 -0
- package/components/sortable/sortable-md.less +7 -0
- package/components/sortable/sortable-rtl.css +1 -0
- package/components/sortable/sortable-vars.less +22 -0
- package/components/sortable/sortable.css +1 -0
- package/components/sortable/sortable.d.ts +50 -0
- package/components/sortable/sortable.js +286 -0
- package/components/sortable/sortable.less +133 -0
- package/components/statusbar/statusbar-ios.less +2 -0
- package/components/statusbar/statusbar-md.less +2 -0
- package/components/statusbar/statusbar.d.ts +54 -0
- package/components/statusbar/statusbar.js +190 -0
- package/components/statusbar/statusbar.less +7 -0
- package/components/stepper/stepper-class.js +403 -0
- package/components/stepper/stepper-ios.less +36 -0
- package/components/stepper/stepper-md.less +16 -0
- package/components/stepper/stepper-rtl.css +1 -0
- package/components/stepper/stepper-vars.less +40 -0
- package/components/stepper/stepper.css +1 -0
- package/components/stepper/stepper.d.ts +121 -0
- package/components/stepper/stepper.js +82 -0
- package/components/stepper/stepper.less +178 -0
- package/components/subnavbar/subnavbar-ios.less +51 -0
- package/components/subnavbar/subnavbar-md.less +47 -0
- package/components/subnavbar/subnavbar-vars.less +36 -0
- package/components/subnavbar/subnavbar.d.ts +11 -0
- package/components/subnavbar/subnavbar.js +17 -0
- package/components/subnavbar/subnavbar.less +128 -0
- package/components/swipeout/swipeout-ios.less +2 -0
- package/components/swipeout/swipeout-md.less +2 -0
- package/components/swipeout/swipeout-rtl.css +1 -0
- package/components/swipeout/swipeout-vars.less +24 -0
- package/components/swipeout/swipeout.css +1 -0
- package/components/swipeout/swipeout.d.ts +68 -0
- package/components/swipeout/swipeout.js +513 -0
- package/components/swipeout/swipeout.less +109 -0
- package/components/swiper/swiper-ios.less +2 -0
- package/components/swiper/swiper-md.less +2 -0
- package/components/swiper/swiper-rtl.css +1 -0
- package/components/swiper/swiper.css +1 -0
- package/components/swiper/swiper.d.ts +25 -0
- package/components/swiper/swiper.js +141 -0
- package/components/swiper/swiper.less +5 -0
- package/components/tabs/tabs-ios.less +2 -0
- package/components/tabs/tabs-md.less +2 -0
- package/components/tabs/tabs-rtl.css +1 -0
- package/components/tabs/tabs.css +1 -0
- package/components/tabs/tabs.d.ts +39 -0
- package/components/tabs/tabs.js +243 -0
- package/components/tabs/tabs.less +45 -0
- package/components/text-editor/text-editor-class.js +516 -0
- package/components/text-editor/text-editor-ios.less +9 -0
- package/components/text-editor/text-editor-md.less +11 -0
- package/components/text-editor/text-editor-rtl.css +1 -0
- package/components/text-editor/text-editor-vars.less +51 -0
- package/components/text-editor/text-editor.css +1 -0
- package/components/text-editor/text-editor.d.ts +166 -0
- package/components/text-editor/text-editor.js +81 -0
- package/components/text-editor/text-editor.less +153 -0
- package/components/timeline/timeline-ios.less +11 -0
- package/components/timeline/timeline-md.less +7 -0
- package/components/timeline/timeline-rtl.css +1 -0
- package/components/timeline/timeline-vars.less +64 -0
- package/components/timeline/timeline.css +1 -0
- package/components/timeline/timeline.d.ts +14 -0
- package/components/timeline/timeline.js +3 -0
- package/components/timeline/timeline.less +413 -0
- package/components/toast/toast-class.js +105 -0
- package/components/toast/toast-ios.less +81 -0
- package/components/toast/toast-md.less +72 -0
- package/components/toast/toast-rtl.css +1 -0
- package/components/toast/toast-vars.less +24 -0
- package/components/toast/toast.css +1 -0
- package/components/toast/toast.d.ts +121 -0
- package/components/toast/toast.js +40 -0
- package/components/toast/toast.less +62 -0
- package/components/toggle/toggle-class.js +165 -0
- package/components/toggle/toggle-ios.less +70 -0
- package/components/toggle/toggle-md.less +44 -0
- package/components/toggle/toggle-rtl.css +1 -0
- package/components/toggle/toggle-vars.less +30 -0
- package/components/toggle/toggle.css +1 -0
- package/components/toggle/toggle.d.ts +73 -0
- package/components/toggle/toggle.js +57 -0
- package/components/toggle/toggle.less +52 -0
- package/components/toolbar/toolbar-ios.less +47 -0
- package/components/toolbar/toolbar-md.less +77 -0
- package/components/toolbar/toolbar-vars.less +71 -0
- package/components/toolbar/toolbar.d.ts +43 -0
- package/components/toolbar/toolbar.js +198 -0
- package/components/toolbar/toolbar.less +306 -0
- package/components/tooltip/tooltip-class.js +336 -0
- package/components/tooltip/tooltip-ios.less +2 -0
- package/components/tooltip/tooltip-md.less +2 -0
- package/components/tooltip/tooltip-rtl.css +1 -0
- package/components/tooltip/tooltip-vars.less +19 -0
- package/components/tooltip/tooltip.css +1 -0
- package/components/tooltip/tooltip.d.ts +105 -0
- package/components/tooltip/tooltip.js +129 -0
- package/components/tooltip/tooltip.less +39 -0
- package/components/touch-ripple/touch-ripple-class.js +85 -0
- package/components/touch-ripple/touch-ripple-ios.less +2 -0
- package/components/touch-ripple/touch-ripple-md.less +2 -0
- package/components/touch-ripple/touch-ripple-vars.less +8 -0
- package/components/touch-ripple/touch-ripple.d.ts +25 -0
- package/components/touch-ripple/touch-ripple.js +18 -0
- package/components/touch-ripple/touch-ripple.less +114 -0
- package/components/treeview/treeview-ios.less +2 -0
- package/components/treeview/treeview-md.less +2 -0
- package/components/treeview/treeview-rtl.css +1 -0
- package/components/treeview/treeview-vars.less +38 -0
- package/components/treeview/treeview.css +1 -0
- package/components/treeview/treeview.d.ts +42 -0
- package/components/treeview/treeview.js +74 -0
- package/components/treeview/treeview.less +160 -0
- package/components/typography/typography-ios.less +2 -0
- package/components/typography/typography-md.less +2 -0
- package/components/typography/typography-rtl.css +1 -0
- package/components/typography/typography-vars.less +4 -0
- package/components/typography/typography.css +1 -0
- package/components/typography/typography.d.ts +14 -0
- package/components/typography/typography.js +3 -0
- package/components/typography/typography.less +220 -0
- package/components/view/resizable-view.js +125 -0
- package/components/view/view-class.js +206 -0
- package/components/view/view-ios.less +2 -0
- package/components/view/view-md.less +2 -0
- package/components/view/view.d.ts +199 -0
- package/components/view/view.js +173 -0
- package/components/view/view.less +35 -0
- package/components/virtual-list/virtual-list-class.js +583 -0
- package/components/virtual-list/virtual-list-ios.less +2 -0
- package/components/virtual-list/virtual-list-md.less +2 -0
- package/components/virtual-list/virtual-list-rtl.css +0 -0
- package/components/virtual-list/virtual-list.css +0 -0
- package/components/virtual-list/virtual-list.d.ts +142 -0
- package/components/virtual-list/virtual-list.js +17 -0
- package/components/virtual-list/virtual-list.less +7 -0
- package/framework7-bundle-rtl.css +19821 -0
- package/framework7-bundle-rtl.min.css +19 -0
- package/framework7-bundle.css +19802 -0
- package/framework7-bundle.esm.js +93 -0
- package/framework7-bundle.js +48416 -0
- package/framework7-bundle.js.map +1 -0
- package/framework7-bundle.less +92 -0
- package/framework7-bundle.min.css +19 -0
- package/framework7-bundle.min.js +14 -0
- package/framework7-bundle.min.js.map +1 -0
- package/framework7-lite-bundle.esm.js +86 -0
- package/framework7-lite.esm.js +37 -0
- package/framework7-lite.js +31 -0
- package/framework7-rtl.css +5252 -0
- package/framework7-rtl.min.css +17 -0
- package/framework7-types.d.ts +336 -0
- package/framework7.css +5245 -0
- package/framework7.d.ts +322 -0
- package/framework7.esm.js +41 -0
- package/framework7.js +42 -0
- package/framework7.less +41 -0
- package/framework7.min.css +17 -0
- package/less/mixins.less +281 -0
- package/less/plugin.js +15 -0
- package/less/vars.less +7 -0
- package/modules/clicks/clicks.d.ts +19 -0
- package/modules/clicks/clicks.js +94 -0
- package/modules/component/$h.js +15 -0
- package/modules/component/$jsx.js +17 -0
- package/modules/component/component-class.js +517 -0
- package/modules/component/component.d.ts +111 -0
- package/modules/component/component.js +44 -0
- package/modules/component/custom-components.js +1 -0
- package/modules/component/eventslisteners.js +74 -0
- package/modules/component/parse-component.js +79 -0
- package/modules/component/patch.js +8 -0
- package/modules/component/snabbdom/h.d.ts +10 -0
- package/modules/component/snabbdom/h.js +50 -0
- package/modules/component/snabbdom/helpers/attachto.d.ts +9 -0
- package/modules/component/snabbdom/helpers/attachto.js +49 -0
- package/modules/component/snabbdom/hooks.d.ts +23 -0
- package/modules/component/snabbdom/hooks.js +0 -0
- package/modules/component/snabbdom/htmldomapi.d.ts +19 -0
- package/modules/component/snabbdom/htmldomapi.js +67 -0
- package/modules/component/snabbdom/is.d.ts +2 -0
- package/modules/component/snabbdom/is.js +4 -0
- package/modules/component/snabbdom/modules/attributes.d.ts +4 -0
- package/modules/component/snabbdom/modules/attributes.js +51 -0
- package/modules/component/snabbdom/modules/class.d.ts +4 -0
- package/modules/component/snabbdom/modules/class.js +27 -0
- package/modules/component/snabbdom/modules/dataset.d.ts +4 -0
- package/modules/component/snabbdom/modules/dataset.js +37 -0
- package/modules/component/snabbdom/modules/eventlisteners.d.ts +8 -0
- package/modules/component/snabbdom/modules/eventlisteners.js +93 -0
- package/modules/component/snabbdom/modules/hero.d.ts +6 -0
- package/modules/component/snabbdom/modules/hero.js +147 -0
- package/modules/component/snabbdom/modules/module.d.ts +9 -0
- package/modules/component/snabbdom/modules/module.js +0 -0
- package/modules/component/snabbdom/modules/props.d.ts +4 -0
- package/modules/component/snabbdom/modules/props.js +29 -0
- package/modules/component/snabbdom/modules/style.d.ts +7 -0
- package/modules/component/snabbdom/modules/style.js +93 -0
- package/modules/component/snabbdom/snabbdom.bundle.d.ts +5 -0
- package/modules/component/snabbdom/snabbdom.bundle.js +13 -0
- package/modules/component/snabbdom/snabbdom.d.ts +6 -0
- package/modules/component/snabbdom/snabbdom.js +282 -0
- package/modules/component/snabbdom/thunk.d.ts +14 -0
- package/modules/component/snabbdom/thunk.js +50 -0
- package/modules/component/snabbdom/tovnode.d.ts +4 -0
- package/modules/component/snabbdom/tovnode.js +40 -0
- package/modules/component/snabbdom/vnode.d.ts +36 -0
- package/modules/component/snabbdom/vnode.js +12 -0
- package/modules/component/vdom.js +319 -0
- package/modules/demo-module.js +44 -0
- package/modules/device/device.d.ts +14 -0
- package/modules/device/device.js +44 -0
- package/modules/history/history.js +12 -0
- package/modules/resize/resize.d.ts +25 -0
- package/modules/resize/resize.js +62 -0
- package/modules/router/app-router-check.js +5 -0
- package/modules/router/async-component.js +27 -0
- package/modules/router/back.js +723 -0
- package/modules/router/clear-previous-history.js +31 -0
- package/modules/router/component-loader.js +200 -0
- package/modules/router/modal.js +223 -0
- package/modules/router/navigate.js +814 -0
- package/modules/router/process-route-queue.js +66 -0
- package/modules/router/redirect.js +38 -0
- package/modules/router/router-class.js +1268 -0
- package/modules/router/router.d.ts +354 -0
- package/modules/router/router.js +26 -0
- package/modules/router/swipe-back.js +589 -0
- package/modules/router/tab.js +230 -0
- package/modules/service-worker/service-worker.d.ts +38 -0
- package/modules/service-worker/service-worker.js +86 -0
- package/modules/store/create-store.js +138 -0
- package/modules/store/store.d.ts +40 -0
- package/modules/store/store.js +11 -0
- package/modules/support/support.d.ts +15 -0
- package/modules/support/support.js +7 -0
- package/modules/touch/touch.d.ts +60 -0
- package/modules/touch/touch.js +482 -0
- package/modules/utils/utils.d.ts +15 -0
- package/modules/utils/utils.js +10 -0
- package/package.json +458 -0
- package/shared/$jsx.js +21 -0
- package/shared/class.js +146 -0
- package/shared/constructor-methods.js +52 -0
- package/shared/dom7.js +7 -0
- package/shared/events-class.js +95 -0
- package/shared/get-device.d.ts +52 -0
- package/shared/get-device.js +147 -0
- package/shared/get-support.d.ts +12 -0
- package/shared/get-support.js +35 -0
- package/shared/history.js +171 -0
- package/shared/material-color-utils.js +1377 -0
- package/shared/material-colors.js +75 -0
- package/shared/modal-methods.js +80 -0
- package/shared/utils.d.ts +88 -0
- package/shared/utils.js +535 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import $ from '../../shared/dom7.js';
|
|
2
|
+
import { extend } from '../../shared/utils.js';
|
|
3
|
+
import Stepper from './stepper-class.js';
|
|
4
|
+
import ConstructorMethods from '../../shared/constructor-methods.js';
|
|
5
|
+
export default {
|
|
6
|
+
name: 'stepper',
|
|
7
|
+
create() {
|
|
8
|
+
const app = this;
|
|
9
|
+
app.stepper = extend(ConstructorMethods({
|
|
10
|
+
defaultSelector: '.stepper',
|
|
11
|
+
constructor: Stepper,
|
|
12
|
+
app,
|
|
13
|
+
domProp: 'f7Stepper'
|
|
14
|
+
}), {
|
|
15
|
+
getValue(el) {
|
|
16
|
+
if (el === void 0) {
|
|
17
|
+
el = '.stepper';
|
|
18
|
+
}
|
|
19
|
+
const stepper = app.stepper.get(el);
|
|
20
|
+
if (stepper) return stepper.getValue();
|
|
21
|
+
return undefined;
|
|
22
|
+
},
|
|
23
|
+
setValue(el, value) {
|
|
24
|
+
if (el === void 0) {
|
|
25
|
+
el = '.stepper';
|
|
26
|
+
}
|
|
27
|
+
const stepper = app.stepper.get(el);
|
|
28
|
+
if (stepper) return stepper.setValue(value);
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
static: {
|
|
34
|
+
Stepper
|
|
35
|
+
},
|
|
36
|
+
on: {
|
|
37
|
+
tabMounted(tabEl) {
|
|
38
|
+
const app = this;
|
|
39
|
+
$(tabEl).find('.stepper-init').each(stepperEl => {
|
|
40
|
+
const dataset = $(stepperEl).dataset();
|
|
41
|
+
app.stepper.create(extend({
|
|
42
|
+
el: stepperEl
|
|
43
|
+
}, dataset || {}));
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
tabBeforeRemove(tabEl) {
|
|
47
|
+
$(tabEl).find('.stepper-init').each(stepperEl => {
|
|
48
|
+
if (stepperEl.f7Stepper) stepperEl.f7Stepper.destroy();
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
pageInit(page) {
|
|
52
|
+
const app = this;
|
|
53
|
+
page.$el.find('.stepper-init').each(stepperEl => {
|
|
54
|
+
const dataset = $(stepperEl).dataset();
|
|
55
|
+
app.stepper.create(extend({
|
|
56
|
+
el: stepperEl
|
|
57
|
+
}, dataset || {}));
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
pageBeforeRemove(page) {
|
|
61
|
+
page.$el.find('.stepper-init').each(stepperEl => {
|
|
62
|
+
if (stepperEl.f7Stepper) stepperEl.f7Stepper.destroy();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
vnode: {
|
|
67
|
+
'stepper-init': {
|
|
68
|
+
insert(vnode) {
|
|
69
|
+
const app = this;
|
|
70
|
+
const stepperEl = vnode.elm;
|
|
71
|
+
const dataset = $(stepperEl).dataset();
|
|
72
|
+
app.stepper.create(extend({
|
|
73
|
+
el: stepperEl
|
|
74
|
+
}, dataset || {}));
|
|
75
|
+
},
|
|
76
|
+
destroy(vnode) {
|
|
77
|
+
const stepperEl = vnode.elm;
|
|
78
|
+
if (stepperEl.f7Stepper) stepperEl.f7Stepper.destroy();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/* === Stepper === */
|
|
2
|
+
@import './stepper-vars.less';
|
|
3
|
+
|
|
4
|
+
.stepper {
|
|
5
|
+
--f7-touch-ripple-color: rgba(var(--f7-theme-color-rgb), 0.25);
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: stretch;
|
|
8
|
+
height: var(--f7-stepper-height);
|
|
9
|
+
border-radius: var(--f7-stepper-border-radius);
|
|
10
|
+
.rtl({
|
|
11
|
+
flex-direction: row-reverse;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.stepper-button,
|
|
16
|
+
.stepper-button-minus,
|
|
17
|
+
.stepper-button-plus {
|
|
18
|
+
background-color: var(--f7-stepper-button-bg-color);
|
|
19
|
+
width: 40px;
|
|
20
|
+
border-radius: var(--f7-stepper-border-radius);
|
|
21
|
+
border: var(--f7-stepper-border-width) solid var(--f7-stepper-border-color);
|
|
22
|
+
color: var(--f7-stepper-button-text-color, var(--f7-theme-color));
|
|
23
|
+
line-height: calc(var(--f7-stepper-height) - var(--f7-stepper-border-width, 0px));
|
|
24
|
+
text-align: center;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-content: center;
|
|
28
|
+
align-items: center;
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
position: relative;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
&.active-state {
|
|
34
|
+
background-color: var(
|
|
35
|
+
--f7-stepper-button-pressed-bg-color,
|
|
36
|
+
rgba(var(--f7-theme-color-rgb), 0.15)
|
|
37
|
+
);
|
|
38
|
+
color: var(
|
|
39
|
+
--f7-stepper-button-pressed-text-color,
|
|
40
|
+
var(--f7-stepper-button-text-color, var(--f7-theme-color))
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
&:first-child {
|
|
44
|
+
border-radius: var(--f7-stepper-border-radius) 0 0 var(--f7-stepper-border-radius);
|
|
45
|
+
}
|
|
46
|
+
&:last-child {
|
|
47
|
+
border-radius: 0 var(--f7-stepper-border-radius) var(--f7-stepper-border-radius) 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.icon {
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
+ .stepper-button,
|
|
54
|
+
+ .stepper-button-minus,
|
|
55
|
+
+ .stepper-button-plus {
|
|
56
|
+
border-left: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.stepper-button-plus,
|
|
60
|
+
.stepper-button-minus {
|
|
61
|
+
user-select: none;
|
|
62
|
+
&:after,
|
|
63
|
+
&:before {
|
|
64
|
+
content: '';
|
|
65
|
+
position: absolute;
|
|
66
|
+
left: 50%;
|
|
67
|
+
top: 50%;
|
|
68
|
+
transform: translate(-50%, -50%);
|
|
69
|
+
background-color: var(--f7-stepper-button-text-color, var(--f7-theme-color));
|
|
70
|
+
border-radius: 2px;
|
|
71
|
+
}
|
|
72
|
+
&:after {
|
|
73
|
+
width: 15px;
|
|
74
|
+
height: 2px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.stepper-button-plus {
|
|
78
|
+
&:before {
|
|
79
|
+
height: 15px;
|
|
80
|
+
width: 2px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.stepper-value {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-content: center;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
}
|
|
89
|
+
.stepper-input-wrap,
|
|
90
|
+
.stepper-value {
|
|
91
|
+
flex-shrink: 1;
|
|
92
|
+
text-align: center;
|
|
93
|
+
border-top: var(--f7-stepper-border-width) solid var(--f7-stepper-border-color);
|
|
94
|
+
border-bottom: var(--f7-stepper-border-width) solid var(--f7-stepper-border-color);
|
|
95
|
+
}
|
|
96
|
+
.stepper .stepper-input-wrap input,
|
|
97
|
+
.stepper-value {
|
|
98
|
+
width: 45px;
|
|
99
|
+
color: var(--f7-stepper-value-text-color, var(--f7-theme-color));
|
|
100
|
+
font-size: var(--f7-stepper-value-font-size);
|
|
101
|
+
font-weight: var(--f7-stepper-value-font-weight);
|
|
102
|
+
text-align: center;
|
|
103
|
+
}
|
|
104
|
+
.stepper .stepper-input-wrap input {
|
|
105
|
+
height: 100%;
|
|
106
|
+
}
|
|
107
|
+
.stepper-round,
|
|
108
|
+
.ios .stepper-round-ios,
|
|
109
|
+
.md .stepper-round-md {
|
|
110
|
+
--f7-stepper-border-radius: var(--f7-stepper-height);
|
|
111
|
+
}
|
|
112
|
+
.stepper-fill,
|
|
113
|
+
.ios .stepper-fill-ios,
|
|
114
|
+
.md .stepper-fill-md {
|
|
115
|
+
--f7-stepper-border-color: var(--f7-stepper-fill-button-bg-color, var(--f7-theme-color));
|
|
116
|
+
--f7-stepper-button-bg-color: var(--f7-stepper-fill-button-bg-color, var(--f7-theme-color));
|
|
117
|
+
--f7-stepper-button-text-color: var(--f7-stepper-fill-button-text-color);
|
|
118
|
+
--f7-touch-ripple-color: var(--f7-touch-ripple-white);
|
|
119
|
+
}
|
|
120
|
+
.stepper-fill,
|
|
121
|
+
.ios .stepper-fill-ios,
|
|
122
|
+
.md .stepper-fill-md,
|
|
123
|
+
.stepper-raised,
|
|
124
|
+
.ios .stepper-raised-ios,
|
|
125
|
+
.md .stepper-raised-md {
|
|
126
|
+
.stepper-button + .stepper-button,
|
|
127
|
+
.stepper-button-minus + .stepper-button-plus {
|
|
128
|
+
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.stepper-fill,
|
|
132
|
+
.ios .stepper-fill-ios,
|
|
133
|
+
.md .stepper-fill-md {
|
|
134
|
+
.stepper-button + .stepper-button,
|
|
135
|
+
.stepper-button-minus + .stepper-button-plus {
|
|
136
|
+
&.active-state {
|
|
137
|
+
border-left-color: var(--f7-stepper-button-pressed-bg-color);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
.stepper-raised:not(.stepper-fill),
|
|
142
|
+
.ios .stepper-raised-ios:not(.stepper-fill-ios):not(.stepper-fill),
|
|
143
|
+
.md .stepper-raised-md:not(.stepper-fill-md):not(.stepper-fill) {
|
|
144
|
+
.stepper-input-wrap,
|
|
145
|
+
.stepper-value {
|
|
146
|
+
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
147
|
+
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.stepper-large,
|
|
151
|
+
.ios .stepper-large-ios,
|
|
152
|
+
.md .stepper-large-md {
|
|
153
|
+
--f7-stepper-height: var(--f7-stepper-large-height);
|
|
154
|
+
}
|
|
155
|
+
.stepper-small,
|
|
156
|
+
.ios .stepper-small-ios,
|
|
157
|
+
.md .stepper-small-md {
|
|
158
|
+
--f7-stepper-border-width: var(--f7-stepper-small-border-width);
|
|
159
|
+
--f7-stepper-height: var(--f7-stepper-small-height);
|
|
160
|
+
}
|
|
161
|
+
.ios .stepper-fill.stepper-small-ios,
|
|
162
|
+
.ios .stepper-fill.stepper-small {
|
|
163
|
+
--f7-stepper-button-pressed-bg-color: transparent;
|
|
164
|
+
--f7-stepper-button-pressed-text-color: var(--f7-theme-color);
|
|
165
|
+
}
|
|
166
|
+
.stepper-raised,
|
|
167
|
+
.ios .stepper-raised-ios,
|
|
168
|
+
.md .stepper-raised-md {
|
|
169
|
+
--f7-stepper-border-width: 0;
|
|
170
|
+
box-shadow: var(--f7-stepper-raised-box-shadow);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.if-ios-theme({
|
|
174
|
+
@import './stepper-ios.less';
|
|
175
|
+
});
|
|
176
|
+
.if-md-theme({
|
|
177
|
+
@import './stepper-md.less';
|
|
178
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.ios {
|
|
2
|
+
.subnavbar {
|
|
3
|
+
height: calc(var(--f7-subnavbar-height) + 1px);
|
|
4
|
+
margin-top: -1px;
|
|
5
|
+
padding-top: 1px;
|
|
6
|
+
.title {
|
|
7
|
+
align-self: flex-start;
|
|
8
|
+
flex-shrink: 10;
|
|
9
|
+
}
|
|
10
|
+
.ltr({
|
|
11
|
+
.left, .right {
|
|
12
|
+
a + a {
|
|
13
|
+
margin-left: 16px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.left {
|
|
17
|
+
margin-right: 10px;
|
|
18
|
+
}
|
|
19
|
+
.right {
|
|
20
|
+
margin-left: 10px;
|
|
21
|
+
}
|
|
22
|
+
.right:first-child {
|
|
23
|
+
right: 8px;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
.rtl({
|
|
27
|
+
.left, .right {
|
|
28
|
+
a + a {
|
|
29
|
+
margin-right: 16px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.left {
|
|
33
|
+
margin-left: 10px;
|
|
34
|
+
}
|
|
35
|
+
.right {
|
|
36
|
+
margin-right: 10px;
|
|
37
|
+
}
|
|
38
|
+
.right:first-child {
|
|
39
|
+
left: 8px;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
a.link {
|
|
44
|
+
justify-content: flex-start;
|
|
45
|
+
}
|
|
46
|
+
a.icon-only {
|
|
47
|
+
justify-content: center;
|
|
48
|
+
margin: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.md {
|
|
2
|
+
.subnavbar {
|
|
3
|
+
height: var(--f7-subnavbar-height);
|
|
4
|
+
.ltr ({
|
|
5
|
+
.right {
|
|
6
|
+
margin-left: auto;
|
|
7
|
+
}
|
|
8
|
+
.right:first-child {
|
|
9
|
+
right: 16px;
|
|
10
|
+
}
|
|
11
|
+
});;
|
|
12
|
+
.rtl ({
|
|
13
|
+
.right {
|
|
14
|
+
margin-right: auto;
|
|
15
|
+
}
|
|
16
|
+
.right:first-child {
|
|
17
|
+
left: 16px;
|
|
18
|
+
}
|
|
19
|
+
});;
|
|
20
|
+
a.link {
|
|
21
|
+
justify-content: center;
|
|
22
|
+
padding: 0 12px;
|
|
23
|
+
}
|
|
24
|
+
a.icon-only {
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
padding: 0 12px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.subnavbar-inner {
|
|
30
|
+
.ltr({
|
|
31
|
+
> a.link:first-child {
|
|
32
|
+
margin-left: calc(-1 * var(--f7-subnavbar-inner-padding-left));
|
|
33
|
+
}
|
|
34
|
+
> a.link:last-child {
|
|
35
|
+
margin-right: calc(-1 * var(--f7-subnavbar-inner-padding-right));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
.rtl({
|
|
39
|
+
> a.link:first-child {
|
|
40
|
+
margin-right: calc(-1 * var(--f7-subnavbar-inner-padding-right));
|
|
41
|
+
}
|
|
42
|
+
> a.link:last-child {
|
|
43
|
+
margin-left: calc(-1 * var(--f7-subnavbar-inner-padding-left));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/*
|
|
3
|
+
--f7-subnavbar-bg-color: var(--f7-bars-bg-color);
|
|
4
|
+
--f7-subnavbar-bg-color-rgb: var(--f7-bars-bg-color-rgb);
|
|
5
|
+
--f7-subnavbar-border-color: var(--f7-bars-border-color);
|
|
6
|
+
--f7-subnavbar-link-color: var(--f7-bars-link-color);
|
|
7
|
+
--f7-subnavbar-text-color: var(--f7-bars-text-color);
|
|
8
|
+
*/
|
|
9
|
+
--f7-subnavbar-title-line-height: 1.2;
|
|
10
|
+
}
|
|
11
|
+
.ios-vars({
|
|
12
|
+
--f7-subnavbar-height: 44px;
|
|
13
|
+
--f7-subnavbar-inner-padding-left: 8px;
|
|
14
|
+
--f7-subnavbar-inner-padding-right: 8px;
|
|
15
|
+
--f7-subnavbar-title-font-size: 34px;
|
|
16
|
+
--f7-subnavbar-title-font-weight: 700;
|
|
17
|
+
--f7-subnavbar-title-letter-spacing: -0.03em;
|
|
18
|
+
--f7-subnavbar-title-margin-left: 8px;
|
|
19
|
+
/*
|
|
20
|
+
--f7-subnavbar-link-height: var(--f7-subnavbar-height);
|
|
21
|
+
--f7-subnavbar-link-line-height: var(--f7-subnavbar-height);
|
|
22
|
+
*/
|
|
23
|
+
});
|
|
24
|
+
.md-vars({
|
|
25
|
+
--f7-subnavbar-height: 64px;
|
|
26
|
+
--f7-subnavbar-inner-padding-left: 16px;
|
|
27
|
+
--f7-subnavbar-inner-padding-right: 16px;
|
|
28
|
+
--f7-subnavbar-title-font-size: 22px;
|
|
29
|
+
--f7-subnavbar-title-font-weight: 400;
|
|
30
|
+
--f7-subnavbar-title-letter-spacing: 0;
|
|
31
|
+
--f7-subnavbar-title-margin-left: 0px;
|
|
32
|
+
/*
|
|
33
|
+
--f7-subnavbar-link-height: var(--f7-subnavbar-height);
|
|
34
|
+
--f7-subnavbar-link-line-height: var(--f7-subnavbar-height);
|
|
35
|
+
*/
|
|
36
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Framework7Plugin } from '../app/app-class.js';
|
|
2
|
+
|
|
3
|
+
export namespace Subnavbar {
|
|
4
|
+
interface AppMethods {}
|
|
5
|
+
interface AppParams {}
|
|
6
|
+
interface AppEvents {}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare const SubnavbarComponent: Framework7Plugin;
|
|
10
|
+
|
|
11
|
+
export default SubnavbarComponent;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import $ from '../../shared/dom7.js';
|
|
2
|
+
export default {
|
|
3
|
+
name: 'subnavbar',
|
|
4
|
+
on: {
|
|
5
|
+
pageInit(page) {
|
|
6
|
+
if (page.$navbarEl && page.$navbarEl.length && page.$navbarEl.find('.subnavbar').length) {
|
|
7
|
+
page.$el.addClass('page-with-subnavbar');
|
|
8
|
+
}
|
|
9
|
+
const $innerSubnavbars = page.$el.find('.subnavbar').filter(subnavbarEl => {
|
|
10
|
+
return $(subnavbarEl).parents('.page')[0] === page.$el[0];
|
|
11
|
+
});
|
|
12
|
+
if ($innerSubnavbars.length) {
|
|
13
|
+
page.$el.addClass('page-with-subnavbar');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* === Subnavbar === */
|
|
2
|
+
@import './subnavbar-vars.less';
|
|
3
|
+
.subnavbar {
|
|
4
|
+
width: 100%;
|
|
5
|
+
position: absolute;
|
|
6
|
+
left: 0;
|
|
7
|
+
top: 0;
|
|
8
|
+
z-index: 600;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
background-color: var(--f7-subnavbar-bg-color, var(--f7-bars-bg-color));
|
|
14
|
+
color: var(--f7-subnavbar-text-color, var(--f7-bars-text-color));
|
|
15
|
+
.ios-translucent-bars(var(--f7-subnavbar-bg-color-rgb, var(--f7-bars-bg-color-rgb)));
|
|
16
|
+
.subnavbar-title {
|
|
17
|
+
position: relative;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
text-overflow: ellpsis;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
font-size: var(--f7-subnavbar-title-font-size);
|
|
22
|
+
font-weight: var(--f7-subnavbar-title-font-weight);
|
|
23
|
+
text-align: left;
|
|
24
|
+
display: inline-block;
|
|
25
|
+
line-height: var(--f7-subnavbar-title-line-height);
|
|
26
|
+
letter-spacing: var(--f7-subnavbar-title-letter-spacing);
|
|
27
|
+
.ltr({
|
|
28
|
+
margin-left: var(--f7-subnavbar-title-margin-left);
|
|
29
|
+
});
|
|
30
|
+
.rtl({
|
|
31
|
+
margin-right: var(--f7-subnavbar-title-margin-left);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
.left,
|
|
35
|
+
.right {
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: flex-start;
|
|
39
|
+
align-items: center;
|
|
40
|
+
}
|
|
41
|
+
.right:first-child {
|
|
42
|
+
position: absolute;
|
|
43
|
+
height: 100%;
|
|
44
|
+
}
|
|
45
|
+
a {
|
|
46
|
+
color: var(--f7-subnavbar-link-color, var(--f7-bars-link-color, var(--f7-theme-color)));
|
|
47
|
+
}
|
|
48
|
+
a.link {
|
|
49
|
+
line-height: var(--f7-subnavbar-link-line-height, var(--f7-subnavbar-height));
|
|
50
|
+
height: var(--f7-subnavbar-link-height, var(--f7-subnavbar-height));
|
|
51
|
+
}
|
|
52
|
+
a.icon-only {
|
|
53
|
+
min-width: var(--f7-subnavbar-height);
|
|
54
|
+
}
|
|
55
|
+
&.no-outline {
|
|
56
|
+
&:after {
|
|
57
|
+
display: none !important;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
&.navbar-hidden {
|
|
61
|
+
&:before {
|
|
62
|
+
display: none !important;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
&:after,
|
|
66
|
+
&:before {
|
|
67
|
+
backface-visibility: hidden;
|
|
68
|
+
}
|
|
69
|
+
.hairline(bottom, var(--f7-subnavbar-border-color, var(--f7-bars-border-color)));
|
|
70
|
+
}
|
|
71
|
+
.subnavbar-inner {
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 100%;
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
justify-content: space-between;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
padding: 0 calc(var(--f7-subnavbar-inner-padding-left) + var(--f7-safe-area-right)) 0
|
|
80
|
+
calc(var(--f7-subnavbar-inner-padding-right) + var(--f7-safe-area-left));
|
|
81
|
+
}
|
|
82
|
+
.navbar .subnavbar {
|
|
83
|
+
top: 100%;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.views,
|
|
87
|
+
.view,
|
|
88
|
+
.page {
|
|
89
|
+
> .subnavbar {
|
|
90
|
+
position: absolute;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.navbar ~ * .subnavbar,
|
|
94
|
+
.navbars ~ * .subnavbar,
|
|
95
|
+
.page-with-subnavbar .navbar ~ .subnavbar,
|
|
96
|
+
.page-with-subnavbar .navbar ~ * .subnavbar,
|
|
97
|
+
.navbar ~ .page-with-subnavbar:not(.no-navbar) .subnavbar,
|
|
98
|
+
.navbar ~ .subnavbar,
|
|
99
|
+
.navbars ~ .page-with-subnavbar:not(.no-navbar) .subnavbar,
|
|
100
|
+
.navbars ~ .subnavbar {
|
|
101
|
+
top: calc(var(--f7-navbar-height) + var(--f7-safe-area-top));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.navbar ~ .page-with-navbar-large:not(.no-navbar) .subnavbar,
|
|
105
|
+
.navbars ~ .page-with-navbar-large:not(.no-navbar) .subnavbar,
|
|
106
|
+
.page-with-subnavbar.page-with-navbar-large .navbar ~ .subnavbar,
|
|
107
|
+
.page-with-subnavbar.page-with-navbar-large .navbar ~ * .subnavbar,
|
|
108
|
+
.navbar .title-large ~ .subnavbar {
|
|
109
|
+
top: calc(
|
|
110
|
+
var(--f7-navbar-height) + var(--f7-navbar-large-title-height) + var(--f7-safe-area-top)
|
|
111
|
+
);
|
|
112
|
+
transform: translate3d(
|
|
113
|
+
0,
|
|
114
|
+
calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)),
|
|
115
|
+
0
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
.page-with-subnavbar,
|
|
119
|
+
.subnavbar ~ * {
|
|
120
|
+
--f7-page-subnavbar-offset: var(--f7-subnavbar-height);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.if-ios-theme({
|
|
124
|
+
@import './subnavbar-ios.less';
|
|
125
|
+
});
|
|
126
|
+
.if-md-theme({
|
|
127
|
+
@import './subnavbar-md.less';
|
|
128
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--f7-swipeout-delete-button-bg-color:#ff3b30;--f7-swipeout-button-text-color:#fff;--f7-swipeout-button-padding-vertical:0px;--f7-swipeout-button-bg-color:rgba(0, 0, 0, 0.22)}:root .dark,:root.dark{--f7-swipeout-button-bg-color:rgba(255, 255, 255, 0.55)}.ios{--f7-swipeout-button-padding-horizontal:30px;--f7-swipeout-button-font-size:inherit;--f7-swipeout-button-font-weight:inherit}.md{--f7-swipeout-button-padding-horizontal:24px;--f7-swipeout-button-font-size:14px;--f7-swipeout-button-font-weight:500}.md .dark,.md.dark{--f7-swipeout-button-text-color:#000}.swipeout{overflow:hidden;transform-style:preserve-3d}.swipeout-deleting{transition-duration:.3s}.swipeout-deleting .swipeout-content{transform:translateX(-100%)}.swipeout-transitioning .swipeout-actions-left a,.swipeout-transitioning .swipeout-actions-right a,.swipeout-transitioning .swipeout-content,.swipeout-transitioning .swipeout-overswipe{transition-duration:.3s;transition-property:transform,left}.swipeout-content{position:relative;z-index:10}.swipeout-overswipe{transition-duration:.2s;transition-property:left}.swipeout-actions-left,.swipeout-actions-right{position:absolute;top:0;height:100%;display:flex;direction:ltr}.swipeout-actions-left>a,.swipeout-actions-left>button,.swipeout-actions-left>div,.swipeout-actions-left>span,.swipeout-actions-right>a,.swipeout-actions-right>button,.swipeout-actions-right>div,.swipeout-actions-right>span{color:var(--f7-swipeout-button-text-color);background:var(--f7-swipeout-button-bg-color);padding:var(--f7-swipeout-button-padding-vertical) var(--f7-swipeout-button-padding-horizontal);display:flex;align-items:center;position:relative;left:0;font-size:var(--f7-swipeout-button-font-size);font-weight:var(--f7-swipeout-button-font-weight)}.swipeout-actions-left>a:after,.swipeout-actions-left>button:after,.swipeout-actions-left>div:after,.swipeout-actions-left>span:after,.swipeout-actions-right>a:after,.swipeout-actions-right>button:after,.swipeout-actions-right>div:after,.swipeout-actions-right>span:after{content:'';position:absolute;top:0;width:600%;height:100%;background:inherit;z-index:-1;transform:translate3d(0,0,0);pointer-events:none}.swipeout-actions-left .swipeout-delete,.swipeout-actions-right .swipeout-delete{background:var(--f7-swipeout-delete-button-bg-color)}.swipeout-actions-right{right:0%;transform:translateX(calc(100% + 1px))}.swipeout-actions-right>a:after,.swipeout-actions-right>button:after,.swipeout-actions-right>div:after,.swipeout-actions-right>span:after{left:100%}.swipeout-actions-right>a:last-child,.swipeout-actions-right>button:last-child,.swipeout-actions-right>div:last-child,.swipeout-actions-right>span:last-child{padding-right:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-right))}.swipeout-actions-left{left:0%;transform:translateX(calc(-100% - 1px))}.swipeout-actions-left>a:after,.swipeout-actions-left>button:after,.swipeout-actions-left>div:after,.swipeout-actions-left>span:after{right:100%}.swipeout-actions-left>a:first-child,.swipeout-actions-left>button:first-child,.swipeout-actions-left>div:first-child,.swipeout-actions-left>span:first-child{padding-left:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-left))}.swipeout-actions-left [class*=color-],.swipeout-actions-right [class*=color-]{--f7-swipeout-button-bg-color:var(--f7-theme-color)}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--f7-swipeout-delete-button-bg-color: #ff3b30;
|
|
3
|
+
--f7-swipeout-button-text-color: #fff;
|
|
4
|
+
--f7-swipeout-button-padding-vertical: 0px;
|
|
5
|
+
.light-vars({
|
|
6
|
+
--f7-swipeout-button-bg-color: rgba(0,0,0,0.22);
|
|
7
|
+
});
|
|
8
|
+
.dark-vars({
|
|
9
|
+
--f7-swipeout-button-bg-color: rgba(255,255,255,0.55);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
.ios-vars({
|
|
13
|
+
--f7-swipeout-button-padding-horizontal: 30px;
|
|
14
|
+
--f7-swipeout-button-font-size: inherit;
|
|
15
|
+
--f7-swipeout-button-font-weight: inherit;
|
|
16
|
+
});
|
|
17
|
+
.md-vars({
|
|
18
|
+
--f7-swipeout-button-padding-horizontal: 24px;
|
|
19
|
+
--f7-swipeout-button-font-size: 14px;
|
|
20
|
+
--f7-swipeout-button-font-weight: 500;
|
|
21
|
+
.dark-vars({
|
|
22
|
+
--f7-swipeout-button-text-color: #000;
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--f7-swipeout-delete-button-bg-color:#ff3b30;--f7-swipeout-button-text-color:#fff;--f7-swipeout-button-padding-vertical:0px;--f7-swipeout-button-bg-color:rgba(0, 0, 0, 0.22)}:root .dark,:root.dark{--f7-swipeout-button-bg-color:rgba(255, 255, 255, 0.55)}.ios{--f7-swipeout-button-padding-horizontal:30px;--f7-swipeout-button-font-size:inherit;--f7-swipeout-button-font-weight:inherit}.md{--f7-swipeout-button-padding-horizontal:24px;--f7-swipeout-button-font-size:14px;--f7-swipeout-button-font-weight:500}.md .dark,.md.dark{--f7-swipeout-button-text-color:#000}.swipeout{overflow:hidden;transform-style:preserve-3d}.swipeout-deleting{transition-duration:.3s}.swipeout-deleting .swipeout-content{transform:translateX(-100%)}.swipeout-transitioning .swipeout-actions-left a,.swipeout-transitioning .swipeout-actions-right a,.swipeout-transitioning .swipeout-content,.swipeout-transitioning .swipeout-overswipe{transition-duration:.3s;transition-property:transform,left}.swipeout-content{position:relative;z-index:10}.swipeout-overswipe{transition-duration:.2s;transition-property:left}.swipeout-actions-left,.swipeout-actions-right{position:absolute;top:0;height:100%;display:flex;direction:ltr}.swipeout-actions-left>a,.swipeout-actions-left>button,.swipeout-actions-left>div,.swipeout-actions-left>span,.swipeout-actions-right>a,.swipeout-actions-right>button,.swipeout-actions-right>div,.swipeout-actions-right>span{color:var(--f7-swipeout-button-text-color);background:var(--f7-swipeout-button-bg-color);padding:var(--f7-swipeout-button-padding-vertical) var(--f7-swipeout-button-padding-horizontal);display:flex;align-items:center;position:relative;left:0;font-size:var(--f7-swipeout-button-font-size);font-weight:var(--f7-swipeout-button-font-weight)}.swipeout-actions-left>a:after,.swipeout-actions-left>button:after,.swipeout-actions-left>div:after,.swipeout-actions-left>span:after,.swipeout-actions-right>a:after,.swipeout-actions-right>button:after,.swipeout-actions-right>div:after,.swipeout-actions-right>span:after{content:'';position:absolute;top:0;width:600%;height:100%;background:inherit;z-index:-1;transform:translate3d(0,0,0);pointer-events:none}.swipeout-actions-left .swipeout-delete,.swipeout-actions-right .swipeout-delete{background:var(--f7-swipeout-delete-button-bg-color)}.swipeout-actions-right{right:0%;transform:translateX(calc(100% + 1px))}.swipeout-actions-right>a:after,.swipeout-actions-right>button:after,.swipeout-actions-right>div:after,.swipeout-actions-right>span:after{left:100%}.swipeout-actions-right>a:last-child,.swipeout-actions-right>button:last-child,.swipeout-actions-right>div:last-child,.swipeout-actions-right>span:last-child{padding-right:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-right))}.swipeout-actions-left{left:0%;transform:translateX(calc(-100% - 1px))}.swipeout-actions-left>a:after,.swipeout-actions-left>button:after,.swipeout-actions-left>div:after,.swipeout-actions-left>span:after{right:100%}.swipeout-actions-left>a:first-child,.swipeout-actions-left>button:first-child,.swipeout-actions-left>div:first-child,.swipeout-actions-left>span:first-child{padding-left:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-left))}.swipeout-actions-left [class*=color-],.swipeout-actions-right [class*=color-]{--f7-swipeout-button-bg-color:var(--f7-theme-color)}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { CSSSelector, Framework7Plugin } from '../app/app-class.js';
|
|
2
|
+
|
|
3
|
+
export namespace Swipeout {
|
|
4
|
+
interface DomEvents {
|
|
5
|
+
/** Event will be triggered while you move swipeout element. event.detail contains current opening progress percentage */
|
|
6
|
+
swipeout: (event: any) => void;
|
|
7
|
+
/** Event will be triggered when swipeout element starts its opening animation */
|
|
8
|
+
'swipeout:open': (event: any) => void;
|
|
9
|
+
/** Event will be triggered after swipeout element completes its opening animation */
|
|
10
|
+
'swipeout:opened': (event: any) => void;
|
|
11
|
+
/** Event will be triggered when swipeout element starts its closing animation */
|
|
12
|
+
'swipeout:close': (event: any) => void;
|
|
13
|
+
/** Event will be triggered after swipeout element completes its closing animation */
|
|
14
|
+
'swipeout:closed': (event: any) => void;
|
|
15
|
+
/** Event will be triggered after swipeout element starts its delete animation */
|
|
16
|
+
'swipeout:delete': (event: any) => void;
|
|
17
|
+
/** Event will be triggered after swipeout element completes its delete animation right before it will be removed from DOM */
|
|
18
|
+
'swipeout:deleted': (event: any) => void;
|
|
19
|
+
}
|
|
20
|
+
interface AppMethods {
|
|
21
|
+
swipeout: {
|
|
22
|
+
/** Currently opened swipeout HTMLElement. Or undefined if there is no opened swipeout element */
|
|
23
|
+
el: HTMLElement | CSSSelector | undefined;
|
|
24
|
+
/** reveal swipeout actions on specified element */
|
|
25
|
+
open(el: HTMLElement | CSSSelector, side?: 'left' | 'right', callback?: Function): void;
|
|
26
|
+
/** close swipeout actions on specified element */
|
|
27
|
+
close(el: HTMLElement | CSSSelector, callback?: Function): void;
|
|
28
|
+
/** delete specified swipeout element */
|
|
29
|
+
delete(el: HTMLElement | CSSSelector, callback?: Function): void;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
interface AppParams {
|
|
33
|
+
swipeout?:
|
|
34
|
+
| {
|
|
35
|
+
/** Fallback option for potentially better performance on old/slow devices. If you enable it, then swipeout item will not follow your finger during touch, it will be automatically opened/closed on swipe left/right. (default false) */
|
|
36
|
+
noFollow?: boolean;
|
|
37
|
+
/** When disabled, then framework will not remove swipeout element from DOM on "swipeout-delete" click. Useful to enable if you use another library like Vue or React to manage (remove) swipeout items (default true) */
|
|
38
|
+
removeElements?: boolean;
|
|
39
|
+
/** When enabled, then framework will remove swipeout element from DOM on "swipeout-delete" click after specified delay (default false) */
|
|
40
|
+
removeElementsWithTimeout?: boolean;
|
|
41
|
+
/** Delay in ms to remove swipeout item if removeElementsWithTimeout is enabled */
|
|
42
|
+
removeElementsTimeout?: number;
|
|
43
|
+
/** Defines how much/hard needed to swipe to trigger overswipe (defaults to 1.2) */
|
|
44
|
+
overswipeRatio?: number;
|
|
45
|
+
}
|
|
46
|
+
| undefined;
|
|
47
|
+
}
|
|
48
|
+
interface AppEvents {
|
|
49
|
+
/** Event will be triggered while you move swipeout element */
|
|
50
|
+
swipeout: (progress: number) => void;
|
|
51
|
+
/** Event will be triggered when swipeout element starts its opening animation */
|
|
52
|
+
swipeoutOpen: (swipeoutEl: HTMLElement) => void;
|
|
53
|
+
/** Event will be triggered after swipeout element completes its opening animation */
|
|
54
|
+
swipeoutOpened: (swipeoutEl: HTMLElement) => void;
|
|
55
|
+
/** Event will be triggered when swipeout element starts its closing animation */
|
|
56
|
+
swipeoutClose: (swipeoutEl: HTMLElement) => void;
|
|
57
|
+
/** Event will be triggered after swipeout element completes its closing animation */
|
|
58
|
+
swipeoutClosed: (swipeoutEl: HTMLElement) => void;
|
|
59
|
+
/** Event will be triggered after swipeout element starts its delete animation */
|
|
60
|
+
swipeoutDelete: (swipeoutEl: HTMLElement) => void;
|
|
61
|
+
/** Event will be triggered after swipeout element completes its delete animation right before it will be removed from DOM */
|
|
62
|
+
swipeoutDeleted: (swipeoutEl: HTMLElement) => void;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare const SwipeoutComponent: Framework7Plugin;
|
|
67
|
+
|
|
68
|
+
export default SwipeoutComponent;
|