@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,513 @@
|
|
|
1
|
+
import { getDocument } from 'ssr-window';
|
|
2
|
+
import $ from '../../shared/dom7.js';
|
|
3
|
+
import { nextFrame, bindMethods } from '../../shared/utils.js';
|
|
4
|
+
import { getSupport } from '../../shared/get-support.js';
|
|
5
|
+
const Swipeout = {
|
|
6
|
+
init() {
|
|
7
|
+
const app = this;
|
|
8
|
+
const document = getDocument();
|
|
9
|
+
const touchesStart = {};
|
|
10
|
+
let isTouched;
|
|
11
|
+
let isMoved;
|
|
12
|
+
let isScrolling;
|
|
13
|
+
let touchStartTime;
|
|
14
|
+
let touchesDiff;
|
|
15
|
+
let $swipeoutEl;
|
|
16
|
+
let $swipeoutContent;
|
|
17
|
+
let $actionsRight;
|
|
18
|
+
let $actionsLeft;
|
|
19
|
+
let actionsLeftWidth;
|
|
20
|
+
let actionsRightWidth;
|
|
21
|
+
let translate;
|
|
22
|
+
let opened;
|
|
23
|
+
let openedActionsSide;
|
|
24
|
+
let $leftButtons;
|
|
25
|
+
let $rightButtons;
|
|
26
|
+
let direction;
|
|
27
|
+
let $overswipeLeftButton;
|
|
28
|
+
let $overswipeRightButton;
|
|
29
|
+
let overswipeLeft;
|
|
30
|
+
let overswipeRight;
|
|
31
|
+
function handleTouchStart(e) {
|
|
32
|
+
if (!app.swipeout.allow) return;
|
|
33
|
+
isMoved = false;
|
|
34
|
+
isTouched = true;
|
|
35
|
+
isScrolling = undefined;
|
|
36
|
+
touchesStart.x = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
|
|
37
|
+
touchesStart.y = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
|
|
38
|
+
touchStartTime = new Date().getTime();
|
|
39
|
+
$swipeoutEl = $(this);
|
|
40
|
+
}
|
|
41
|
+
function handleTouchMove(e) {
|
|
42
|
+
if (!isTouched) return;
|
|
43
|
+
const pageX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
|
|
44
|
+
const pageY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
|
|
45
|
+
if (typeof isScrolling === 'undefined') {
|
|
46
|
+
isScrolling = !!(isScrolling || Math.abs(pageY - touchesStart.y) > Math.abs(pageX - touchesStart.x));
|
|
47
|
+
}
|
|
48
|
+
if (isScrolling) {
|
|
49
|
+
isTouched = false;
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (!isMoved) {
|
|
53
|
+
if ($('.list.sortable-opened').length > 0) return;
|
|
54
|
+
$swipeoutContent = $swipeoutEl.find('.swipeout-content');
|
|
55
|
+
$actionsRight = $swipeoutEl.find('.swipeout-actions-right');
|
|
56
|
+
$actionsLeft = $swipeoutEl.find('.swipeout-actions-left');
|
|
57
|
+
actionsLeftWidth = null;
|
|
58
|
+
actionsRightWidth = null;
|
|
59
|
+
$leftButtons = null;
|
|
60
|
+
$rightButtons = null;
|
|
61
|
+
$overswipeRightButton = null;
|
|
62
|
+
$overswipeLeftButton = null;
|
|
63
|
+
if ($actionsLeft.length > 0) {
|
|
64
|
+
actionsLeftWidth = $actionsLeft.outerWidth();
|
|
65
|
+
$leftButtons = $actionsLeft.children('a');
|
|
66
|
+
$overswipeLeftButton = $actionsLeft.find('.swipeout-overswipe');
|
|
67
|
+
}
|
|
68
|
+
if ($actionsRight.length > 0) {
|
|
69
|
+
actionsRightWidth = $actionsRight.outerWidth();
|
|
70
|
+
$rightButtons = $actionsRight.children('a');
|
|
71
|
+
$overswipeRightButton = $actionsRight.find('.swipeout-overswipe');
|
|
72
|
+
}
|
|
73
|
+
opened = $swipeoutEl.hasClass('swipeout-opened');
|
|
74
|
+
if (opened) {
|
|
75
|
+
openedActionsSide = $swipeoutEl.find('.swipeout-actions-left.swipeout-actions-opened').length > 0 ? 'left' : 'right';
|
|
76
|
+
}
|
|
77
|
+
$swipeoutEl.removeClass('swipeout-transitioning');
|
|
78
|
+
if (!app.params.swipeout.noFollow) {
|
|
79
|
+
$swipeoutEl.find('.swipeout-actions-opened').removeClass('swipeout-actions-opened');
|
|
80
|
+
$swipeoutEl.removeClass('swipeout-opened');
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
isMoved = true;
|
|
84
|
+
if (e.cancelable) {
|
|
85
|
+
e.preventDefault();
|
|
86
|
+
}
|
|
87
|
+
touchesDiff = pageX - touchesStart.x;
|
|
88
|
+
translate = touchesDiff;
|
|
89
|
+
if (opened) {
|
|
90
|
+
if (openedActionsSide === 'right') translate -= actionsRightWidth;else translate += actionsLeftWidth;
|
|
91
|
+
}
|
|
92
|
+
if (translate > 0 && $actionsLeft.length === 0 || translate < 0 && $actionsRight.length === 0) {
|
|
93
|
+
if (!opened) {
|
|
94
|
+
isTouched = false;
|
|
95
|
+
isMoved = false;
|
|
96
|
+
$swipeoutContent.transform('');
|
|
97
|
+
if ($rightButtons && $rightButtons.length > 0) {
|
|
98
|
+
$rightButtons.transform('');
|
|
99
|
+
}
|
|
100
|
+
if ($leftButtons && $leftButtons.length > 0) {
|
|
101
|
+
$leftButtons.transform('');
|
|
102
|
+
}
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
translate = 0;
|
|
106
|
+
}
|
|
107
|
+
if (translate < 0) direction = 'to-left';else if (translate > 0) direction = 'to-right';else if (!direction) direction = 'to-left';
|
|
108
|
+
let buttonOffset;
|
|
109
|
+
let progress;
|
|
110
|
+
e.f7PreventSwipePanel = true;
|
|
111
|
+
if (app.params.swipeout.noFollow) {
|
|
112
|
+
if (opened) {
|
|
113
|
+
if (openedActionsSide === 'right' && touchesDiff > 0) {
|
|
114
|
+
app.swipeout.close($swipeoutEl);
|
|
115
|
+
}
|
|
116
|
+
if (openedActionsSide === 'left' && touchesDiff < 0) {
|
|
117
|
+
app.swipeout.close($swipeoutEl);
|
|
118
|
+
}
|
|
119
|
+
} else {
|
|
120
|
+
if (touchesDiff < 0 && $actionsRight.length > 0) {
|
|
121
|
+
app.swipeout.open($swipeoutEl, 'right');
|
|
122
|
+
}
|
|
123
|
+
if (touchesDiff > 0 && $actionsLeft.length > 0) {
|
|
124
|
+
app.swipeout.open($swipeoutEl, 'left');
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
isTouched = false;
|
|
128
|
+
isMoved = false;
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
overswipeLeft = false;
|
|
132
|
+
overswipeRight = false;
|
|
133
|
+
if ($actionsRight.length > 0) {
|
|
134
|
+
// Show right actions
|
|
135
|
+
let buttonTranslate = translate;
|
|
136
|
+
progress = buttonTranslate / actionsRightWidth;
|
|
137
|
+
if (buttonTranslate < -actionsRightWidth) {
|
|
138
|
+
const ratio = buttonTranslate / -actionsRightWidth;
|
|
139
|
+
buttonTranslate = -actionsRightWidth - (-buttonTranslate - actionsRightWidth) ** 0.8;
|
|
140
|
+
translate = buttonTranslate;
|
|
141
|
+
if ($overswipeRightButton.length > 0 && ratio > app.params.swipeout.overswipeRatio) {
|
|
142
|
+
overswipeRight = true;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (direction !== 'to-left') {
|
|
146
|
+
progress = 0;
|
|
147
|
+
buttonTranslate = 0;
|
|
148
|
+
}
|
|
149
|
+
$rightButtons.each(buttonEl => {
|
|
150
|
+
const $buttonEl = $(buttonEl);
|
|
151
|
+
if (typeof buttonEl.f7SwipeoutButtonOffset === 'undefined') {
|
|
152
|
+
$buttonEl[0].f7SwipeoutButtonOffset = buttonEl.offsetLeft;
|
|
153
|
+
}
|
|
154
|
+
buttonOffset = buttonEl.f7SwipeoutButtonOffset;
|
|
155
|
+
if ($overswipeRightButton.length > 0 && $buttonEl.hasClass('swipeout-overswipe') && direction === 'to-left') {
|
|
156
|
+
$buttonEl.css({
|
|
157
|
+
left: `${overswipeRight ? -buttonOffset : 0}px`
|
|
158
|
+
});
|
|
159
|
+
if (overswipeRight) {
|
|
160
|
+
if (!$buttonEl.hasClass('swipeout-overswipe-active')) {
|
|
161
|
+
$swipeoutEl.trigger('swipeout:overswipeenter');
|
|
162
|
+
app.emit('swipeoutOverswipeEnter', $swipeoutEl[0]);
|
|
163
|
+
}
|
|
164
|
+
$buttonEl.addClass('swipeout-overswipe-active');
|
|
165
|
+
} else {
|
|
166
|
+
if ($buttonEl.hasClass('swipeout-overswipe-active')) {
|
|
167
|
+
$swipeoutEl.trigger('swipeout:overswipeexit');
|
|
168
|
+
app.emit('swipeoutOverswipeExit', $swipeoutEl[0]);
|
|
169
|
+
}
|
|
170
|
+
$buttonEl.removeClass('swipeout-overswipe-active');
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
$buttonEl.transform(`translate3d(${buttonTranslate - buttonOffset * (1 + Math.max(progress, -1))}px,0,0)`);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
if ($actionsLeft.length > 0) {
|
|
177
|
+
// Show left actions
|
|
178
|
+
let buttonTranslate = translate;
|
|
179
|
+
progress = buttonTranslate / actionsLeftWidth;
|
|
180
|
+
if (buttonTranslate > actionsLeftWidth) {
|
|
181
|
+
const ratio = buttonTranslate / actionsRightWidth;
|
|
182
|
+
buttonTranslate = actionsLeftWidth + (buttonTranslate - actionsLeftWidth) ** 0.8;
|
|
183
|
+
translate = buttonTranslate;
|
|
184
|
+
if ($overswipeLeftButton.length > 0 && ratio > app.params.swipeout.overswipeRatio) {
|
|
185
|
+
overswipeLeft = true;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (direction !== 'to-right') {
|
|
189
|
+
buttonTranslate = 0;
|
|
190
|
+
progress = 0;
|
|
191
|
+
}
|
|
192
|
+
$leftButtons.each((buttonEl, index) => {
|
|
193
|
+
const $buttonEl = $(buttonEl);
|
|
194
|
+
if (typeof buttonEl.f7SwipeoutButtonOffset === 'undefined') {
|
|
195
|
+
$buttonEl[0].f7SwipeoutButtonOffset = actionsLeftWidth - buttonEl.offsetLeft - buttonEl.offsetWidth;
|
|
196
|
+
}
|
|
197
|
+
buttonOffset = buttonEl.f7SwipeoutButtonOffset;
|
|
198
|
+
if ($overswipeLeftButton.length > 0 && $buttonEl.hasClass('swipeout-overswipe') && direction === 'to-right') {
|
|
199
|
+
$buttonEl.css({
|
|
200
|
+
left: `${overswipeLeft ? buttonOffset : 0}px`
|
|
201
|
+
});
|
|
202
|
+
if (overswipeLeft) {
|
|
203
|
+
if (!$buttonEl.hasClass('swipeout-overswipe-active')) {
|
|
204
|
+
$swipeoutEl.trigger('swipeout:overswipeenter');
|
|
205
|
+
app.emit('swipeoutOverswipeEnter', $swipeoutEl[0]);
|
|
206
|
+
}
|
|
207
|
+
$buttonEl.addClass('swipeout-overswipe-active');
|
|
208
|
+
} else {
|
|
209
|
+
if ($buttonEl.hasClass('swipeout-overswipe-active')) {
|
|
210
|
+
$swipeoutEl.trigger('swipeout:overswipeexit');
|
|
211
|
+
app.emit('swipeoutOverswipeExit', $swipeoutEl[0]);
|
|
212
|
+
}
|
|
213
|
+
$buttonEl.removeClass('swipeout-overswipe-active');
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
if ($leftButtons.length > 1) {
|
|
217
|
+
$buttonEl.css('z-index', $leftButtons.length - index);
|
|
218
|
+
}
|
|
219
|
+
$buttonEl.transform(`translate3d(${buttonTranslate + buttonOffset * (1 - Math.min(progress, 1))}px,0,0)`);
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
$swipeoutEl.trigger('swipeout', progress);
|
|
223
|
+
app.emit('swipeout', $swipeoutEl[0], progress);
|
|
224
|
+
$swipeoutContent.transform(`translate3d(${translate}px,0,0)`);
|
|
225
|
+
}
|
|
226
|
+
function handleTouchEnd() {
|
|
227
|
+
if (!isTouched || !isMoved) {
|
|
228
|
+
isTouched = false;
|
|
229
|
+
isMoved = false;
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
isTouched = false;
|
|
233
|
+
isMoved = false;
|
|
234
|
+
const timeDiff = new Date().getTime() - touchStartTime;
|
|
235
|
+
const $actions = direction === 'to-left' ? $actionsRight : $actionsLeft;
|
|
236
|
+
const actionsWidth = direction === 'to-left' ? actionsRightWidth : actionsLeftWidth;
|
|
237
|
+
let action;
|
|
238
|
+
let $buttons;
|
|
239
|
+
let i;
|
|
240
|
+
if (timeDiff < 300 && (touchesDiff < -10 && direction === 'to-left' || touchesDiff > 10 && direction === 'to-right') || timeDiff >= 300 && Math.abs(translate) > actionsWidth / 2) {
|
|
241
|
+
action = 'open';
|
|
242
|
+
} else {
|
|
243
|
+
action = 'close';
|
|
244
|
+
}
|
|
245
|
+
if (timeDiff < 300) {
|
|
246
|
+
if (Math.abs(translate) === 0) action = 'close';
|
|
247
|
+
if (Math.abs(translate) === actionsWidth) action = 'open';
|
|
248
|
+
}
|
|
249
|
+
if (action === 'open') {
|
|
250
|
+
Swipeout.el = $swipeoutEl[0];
|
|
251
|
+
$swipeoutEl.trigger('swipeout:open');
|
|
252
|
+
app.emit('swipeoutOpen', $swipeoutEl[0]);
|
|
253
|
+
$swipeoutEl.addClass('swipeout-opened swipeout-transitioning');
|
|
254
|
+
const newTranslate = direction === 'to-left' ? -actionsWidth : actionsWidth;
|
|
255
|
+
$swipeoutContent.transform(`translate3d(${newTranslate}px,0,0)`);
|
|
256
|
+
$actions.addClass('swipeout-actions-opened');
|
|
257
|
+
$buttons = direction === 'to-left' ? $rightButtons : $leftButtons;
|
|
258
|
+
if ($buttons) {
|
|
259
|
+
for (i = 0; i < $buttons.length; i += 1) {
|
|
260
|
+
$($buttons[i]).transform(`translate3d(${newTranslate}px,0,0)`);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (overswipeRight) {
|
|
264
|
+
$actionsRight.find('.swipeout-overswipe').trigger('click', 'f7Overswipe');
|
|
265
|
+
}
|
|
266
|
+
if (overswipeLeft) {
|
|
267
|
+
$actionsLeft.find('.swipeout-overswipe').trigger('click', 'f7Overswipe');
|
|
268
|
+
}
|
|
269
|
+
} else {
|
|
270
|
+
$swipeoutEl.trigger('swipeout:close');
|
|
271
|
+
app.emit('swipeoutClose', $swipeoutEl[0]);
|
|
272
|
+
Swipeout.el = undefined;
|
|
273
|
+
$swipeoutEl.addClass('swipeout-transitioning').removeClass('swipeout-opened');
|
|
274
|
+
$swipeoutContent.transform('');
|
|
275
|
+
$actions.removeClass('swipeout-actions-opened');
|
|
276
|
+
}
|
|
277
|
+
let buttonOffset;
|
|
278
|
+
if ($leftButtons && $leftButtons.length > 0 && $leftButtons !== $buttons) {
|
|
279
|
+
$leftButtons.each(buttonEl => {
|
|
280
|
+
const $buttonEl = $(buttonEl);
|
|
281
|
+
buttonOffset = buttonEl.f7SwipeoutButtonOffset;
|
|
282
|
+
if (typeof buttonOffset === 'undefined') {
|
|
283
|
+
$buttonEl[0].f7SwipeoutButtonOffset = actionsLeftWidth - buttonEl.offsetLeft - buttonEl.offsetWidth;
|
|
284
|
+
}
|
|
285
|
+
$buttonEl.transform(`translate3d(${buttonOffset}px,0,0)`);
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
if ($rightButtons && $rightButtons.length > 0 && $rightButtons !== $buttons) {
|
|
289
|
+
$rightButtons.each(buttonEl => {
|
|
290
|
+
const $buttonEl = $(buttonEl);
|
|
291
|
+
buttonOffset = buttonEl.f7SwipeoutButtonOffset;
|
|
292
|
+
if (typeof buttonOffset === 'undefined') {
|
|
293
|
+
$buttonEl[0].f7SwipeoutButtonOffset = buttonEl.offsetLeft;
|
|
294
|
+
}
|
|
295
|
+
$buttonEl.transform(`translate3d(${-buttonOffset}px,0,0)`);
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
$swipeoutContent.transitionEnd(() => {
|
|
299
|
+
if (opened && action === 'open' || !opened && action === 'close') return;
|
|
300
|
+
$swipeoutEl.trigger(action === 'open' ? 'swipeout:opened' : 'swipeout:closed');
|
|
301
|
+
app.emit(action === 'open' ? 'swipeoutOpened' : 'swipeoutClosed', $swipeoutEl[0]);
|
|
302
|
+
$swipeoutEl.removeClass('swipeout-transitioning');
|
|
303
|
+
if (opened && action === 'close') {
|
|
304
|
+
if ($actionsRight.length > 0) {
|
|
305
|
+
$rightButtons.transform('');
|
|
306
|
+
}
|
|
307
|
+
if ($actionsLeft.length > 0) {
|
|
308
|
+
$leftButtons.transform('');
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
const passiveListener = getSupport().passiveListener ? {
|
|
314
|
+
passive: true
|
|
315
|
+
} : false;
|
|
316
|
+
app.on('touchstart', e => {
|
|
317
|
+
if (Swipeout.el) {
|
|
318
|
+
const $targetEl = $(e.target);
|
|
319
|
+
if (!($(Swipeout.el).is($targetEl[0]) || $targetEl.parents('.swipeout').is(Swipeout.el) || $targetEl.hasClass('modal-in') || ($targetEl.attr('class') || '').indexOf('-backdrop') > 0 || $targetEl.hasClass('actions-modal') || $targetEl.parents('.actions-modal.modal-in, .dialog.modal-in').length > 0)) {
|
|
320
|
+
app.swipeout.close(Swipeout.el);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
$(document).on(app.touchEvents.start, 'li.swipeout', handleTouchStart, passiveListener);
|
|
325
|
+
app.on('touchmove:active', handleTouchMove);
|
|
326
|
+
app.on('touchend:passive', handleTouchEnd);
|
|
327
|
+
},
|
|
328
|
+
allow: true,
|
|
329
|
+
el: undefined,
|
|
330
|
+
open() {
|
|
331
|
+
const app = this;
|
|
332
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
333
|
+
args[_key] = arguments[_key];
|
|
334
|
+
}
|
|
335
|
+
let [el, side, callback] = args;
|
|
336
|
+
if (typeof args[1] === 'function') {
|
|
337
|
+
[el, callback, side] = args;
|
|
338
|
+
}
|
|
339
|
+
const $el = $(el).eq(0);
|
|
340
|
+
if ($el.length === 0) return;
|
|
341
|
+
if (!$el.hasClass('swipeout') || $el.hasClass('swipeout-opened')) return;
|
|
342
|
+
if (!side) {
|
|
343
|
+
if ($el.find('.swipeout-actions-right').length > 0) side = 'right';else side = 'left';
|
|
344
|
+
}
|
|
345
|
+
const $swipeoutActions = $el.find(`.swipeout-actions-${side}`);
|
|
346
|
+
const $swipeoutContent = $el.find('.swipeout-content');
|
|
347
|
+
if ($swipeoutActions.length === 0) return;
|
|
348
|
+
$el.trigger('swipeout:open').addClass('swipeout-opened').removeClass('swipeout-transitioning');
|
|
349
|
+
app.emit('swipeoutOpen', $el[0]);
|
|
350
|
+
$swipeoutActions.addClass('swipeout-actions-opened');
|
|
351
|
+
const $buttons = $swipeoutActions.children('a');
|
|
352
|
+
const swipeoutActionsWidth = $swipeoutActions.outerWidth();
|
|
353
|
+
const translate = side === 'right' ? -swipeoutActionsWidth : swipeoutActionsWidth;
|
|
354
|
+
if ($buttons.length > 1) {
|
|
355
|
+
$buttons.each((buttonEl, buttonIndex) => {
|
|
356
|
+
const $buttonEl = $(buttonEl);
|
|
357
|
+
if (side === 'right') {
|
|
358
|
+
$buttonEl.transform(`translate3d(${-buttonEl.offsetLeft}px,0,0)`);
|
|
359
|
+
} else {
|
|
360
|
+
$buttonEl.css('z-index', $buttons.length - buttonIndex).transform(`translate3d(${swipeoutActionsWidth - buttonEl.offsetWidth - buttonEl.offsetLeft}px,0,0)`);
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
$el.addClass('swipeout-transitioning');
|
|
365
|
+
$swipeoutContent.transitionEnd(() => {
|
|
366
|
+
$el.trigger('swipeout:opened');
|
|
367
|
+
app.emit('swipeoutOpened', $el[0]);
|
|
368
|
+
if (callback) callback.call($el[0]);
|
|
369
|
+
});
|
|
370
|
+
nextFrame(() => {
|
|
371
|
+
$buttons.transform(`translate3d(${translate}px,0,0)`);
|
|
372
|
+
$swipeoutContent.transform(`translate3d(${translate}px,0,0)`);
|
|
373
|
+
});
|
|
374
|
+
Swipeout.el = $el[0];
|
|
375
|
+
},
|
|
376
|
+
close(el, callback) {
|
|
377
|
+
const app = this;
|
|
378
|
+
const $el = $(el).eq(0);
|
|
379
|
+
if ($el.length === 0) return;
|
|
380
|
+
if (!$el.hasClass('swipeout-opened')) return;
|
|
381
|
+
const side = $el.find('.swipeout-actions-opened').hasClass('swipeout-actions-right') ? 'right' : 'left';
|
|
382
|
+
const $swipeoutActions = $el.find('.swipeout-actions-opened').removeClass('swipeout-actions-opened');
|
|
383
|
+
const $buttons = $swipeoutActions.children('a');
|
|
384
|
+
const swipeoutActionsWidth = $swipeoutActions.outerWidth();
|
|
385
|
+
app.swipeout.allow = false;
|
|
386
|
+
$el.trigger('swipeout:close');
|
|
387
|
+
app.emit('swipeoutClose', $el[0]);
|
|
388
|
+
$el.removeClass('swipeout-opened').addClass('swipeout-transitioning');
|
|
389
|
+
let closeTimeout;
|
|
390
|
+
function onSwipeoutClose() {
|
|
391
|
+
app.swipeout.allow = true;
|
|
392
|
+
if ($el.hasClass('swipeout-opened')) return;
|
|
393
|
+
$el.removeClass('swipeout-transitioning');
|
|
394
|
+
$buttons.transform('');
|
|
395
|
+
$el.trigger('swipeout:closed');
|
|
396
|
+
app.emit('swipeoutClosed', $el[0]);
|
|
397
|
+
if (callback) callback.call($el[0]);
|
|
398
|
+
if (closeTimeout) clearTimeout(closeTimeout);
|
|
399
|
+
}
|
|
400
|
+
$el.find('.swipeout-content').transform('').transitionEnd(onSwipeoutClose);
|
|
401
|
+
closeTimeout = setTimeout(onSwipeoutClose, 500);
|
|
402
|
+
$buttons.each(buttonEl => {
|
|
403
|
+
const $buttonEl = $(buttonEl);
|
|
404
|
+
if (side === 'right') {
|
|
405
|
+
$buttonEl.transform(`translate3d(${-buttonEl.offsetLeft}px,0,0)`);
|
|
406
|
+
} else {
|
|
407
|
+
$buttonEl.transform(`translate3d(${swipeoutActionsWidth - buttonEl.offsetWidth - buttonEl.offsetLeft}px,0,0)`);
|
|
408
|
+
}
|
|
409
|
+
$buttonEl.css({
|
|
410
|
+
left: '0px'
|
|
411
|
+
}).removeClass('swipeout-overswipe-active');
|
|
412
|
+
});
|
|
413
|
+
if (Swipeout.el && Swipeout.el === $el[0]) Swipeout.el = undefined;
|
|
414
|
+
},
|
|
415
|
+
delete(el, callback) {
|
|
416
|
+
const app = this;
|
|
417
|
+
const $el = $(el).eq(0);
|
|
418
|
+
if ($el.length === 0) return;
|
|
419
|
+
Swipeout.el = undefined;
|
|
420
|
+
$el.trigger('swipeout:delete');
|
|
421
|
+
app.emit('swipeoutDelete', $el[0]);
|
|
422
|
+
$el.css({
|
|
423
|
+
height: `${$el.outerHeight()}px`
|
|
424
|
+
});
|
|
425
|
+
$el.transitionEnd(() => {
|
|
426
|
+
$el.trigger('swipeout:deleted');
|
|
427
|
+
app.emit('swipeoutDeleted', $el[0]);
|
|
428
|
+
if (callback) callback.call($el[0]);
|
|
429
|
+
if ($el.parents('.virtual-list').length > 0) {
|
|
430
|
+
const virtualList = $el.parents('.virtual-list')[0].f7VirtualList;
|
|
431
|
+
const virtualIndex = $el[0].f7VirtualListIndex;
|
|
432
|
+
if (virtualList && typeof virtualIndex !== 'undefined') virtualList.deleteItem(virtualIndex);
|
|
433
|
+
} else if (app.params.swipeout.removeElements) {
|
|
434
|
+
if (app.params.swipeout.removeElementsWithTimeout) {
|
|
435
|
+
setTimeout(() => {
|
|
436
|
+
$el.remove();
|
|
437
|
+
}, app.params.swipeout.removeElementsTimeout);
|
|
438
|
+
} else {
|
|
439
|
+
$el.remove();
|
|
440
|
+
}
|
|
441
|
+
} else {
|
|
442
|
+
$el.removeClass('swipeout-deleting swipeout-transitioning');
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
// eslint-disable-next-line
|
|
446
|
+
// $el[0]._clientLeft = $el[0].clientLeft;
|
|
447
|
+
nextFrame(() => {
|
|
448
|
+
$el.addClass('swipeout-deleting swipeout-transitioning').css({
|
|
449
|
+
height: '0px'
|
|
450
|
+
}).find('.swipeout-content').transform('translate3d(-100%,0,0)');
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
export default {
|
|
455
|
+
name: 'swipeout',
|
|
456
|
+
params: {
|
|
457
|
+
swipeout: {
|
|
458
|
+
actionsNoFold: false,
|
|
459
|
+
noFollow: false,
|
|
460
|
+
removeElements: true,
|
|
461
|
+
removeElementsWithTimeout: false,
|
|
462
|
+
removeElementsTimeout: 0,
|
|
463
|
+
overswipeRatio: 1.2
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
create() {
|
|
467
|
+
const app = this;
|
|
468
|
+
bindMethods(app, {
|
|
469
|
+
swipeout: Swipeout
|
|
470
|
+
});
|
|
471
|
+
},
|
|
472
|
+
clicks: {
|
|
473
|
+
'.swipeout-open': function openSwipeout($clickedEl, data) {
|
|
474
|
+
if (data === void 0) {
|
|
475
|
+
data = {};
|
|
476
|
+
}
|
|
477
|
+
const app = this;
|
|
478
|
+
app.swipeout.open(data.swipeout, data.side);
|
|
479
|
+
},
|
|
480
|
+
'.swipeout-close': function closeSwipeout($clickedEl) {
|
|
481
|
+
const app = this;
|
|
482
|
+
const $swipeoutEl = $clickedEl.closest('.swipeout');
|
|
483
|
+
if ($swipeoutEl.length === 0) return;
|
|
484
|
+
app.swipeout.close($swipeoutEl);
|
|
485
|
+
},
|
|
486
|
+
'.swipeout-delete': function deleteSwipeout($clickedEl, data) {
|
|
487
|
+
if (data === void 0) {
|
|
488
|
+
data = {};
|
|
489
|
+
}
|
|
490
|
+
const app = this;
|
|
491
|
+
const $swipeoutEl = $clickedEl.closest('.swipeout');
|
|
492
|
+
if ($swipeoutEl.length === 0) return;
|
|
493
|
+
const {
|
|
494
|
+
confirm,
|
|
495
|
+
confirmTitle
|
|
496
|
+
} = data;
|
|
497
|
+
if (data.confirm) {
|
|
498
|
+
app.dialog.confirm(confirm, confirmTitle, () => {
|
|
499
|
+
app.swipeout.delete($swipeoutEl);
|
|
500
|
+
});
|
|
501
|
+
} else {
|
|
502
|
+
app.swipeout.delete($swipeoutEl);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
on: {
|
|
507
|
+
init() {
|
|
508
|
+
const app = this;
|
|
509
|
+
if (!app.params.swipeout) return;
|
|
510
|
+
app.swipeout.init();
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* === Swipeout === */
|
|
2
|
+
@import './swipeout-vars.less';
|
|
3
|
+
|
|
4
|
+
.swipeout {
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
transform-style: preserve-3d;
|
|
7
|
+
}
|
|
8
|
+
.swipeout-deleting {
|
|
9
|
+
transition-duration: 300ms;
|
|
10
|
+
.swipeout-content {
|
|
11
|
+
transform: translateX(-100%);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.swipeout-transitioning {
|
|
15
|
+
.swipeout-content,
|
|
16
|
+
.swipeout-actions-right a,
|
|
17
|
+
.swipeout-actions-left a,
|
|
18
|
+
.swipeout-overswipe {
|
|
19
|
+
transition-duration: 300ms;
|
|
20
|
+
transition-property: transform, left;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.swipeout-content {
|
|
24
|
+
position: relative;
|
|
25
|
+
z-index: 10;
|
|
26
|
+
}
|
|
27
|
+
.swipeout-overswipe {
|
|
28
|
+
transition-duration: 200ms;
|
|
29
|
+
transition-property: left;
|
|
30
|
+
}
|
|
31
|
+
.swipeout-actions-left,
|
|
32
|
+
.swipeout-actions-right {
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
height: 100%;
|
|
36
|
+
display: flex;
|
|
37
|
+
direction: ltr;
|
|
38
|
+
> a,
|
|
39
|
+
> button,
|
|
40
|
+
> span,
|
|
41
|
+
> div {
|
|
42
|
+
color: var(--f7-swipeout-button-text-color);
|
|
43
|
+
background: var(--f7-swipeout-button-bg-color);
|
|
44
|
+
padding: var(--f7-swipeout-button-padding-vertical) var(--f7-swipeout-button-padding-horizontal);
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
position: relative;
|
|
48
|
+
left: 0;
|
|
49
|
+
font-size: var(--f7-swipeout-button-font-size);
|
|
50
|
+
font-weight: var(--f7-swipeout-button-font-weight);
|
|
51
|
+
&:after {
|
|
52
|
+
content: '';
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 0;
|
|
56
|
+
width: 600%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
background: inherit;
|
|
59
|
+
z-index: -1;
|
|
60
|
+
transform: translate3d(0, 0, 0);
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.swipeout-delete {
|
|
65
|
+
background: var(--f7-swipeout-delete-button-bg-color);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
.swipeout-actions-right {
|
|
69
|
+
right: 0%;
|
|
70
|
+
transform: translateX(calc(100% + 1px));
|
|
71
|
+
> a,
|
|
72
|
+
> button,
|
|
73
|
+
> span,
|
|
74
|
+
> div {
|
|
75
|
+
&:after {
|
|
76
|
+
left: 100%;
|
|
77
|
+
}
|
|
78
|
+
&:last-child {
|
|
79
|
+
padding-right: calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-right));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.swipeout-actions-left {
|
|
84
|
+
left: 0%;
|
|
85
|
+
transform: translateX(calc(-100% - 1px));
|
|
86
|
+
> a,
|
|
87
|
+
> button,
|
|
88
|
+
> span,
|
|
89
|
+
> div {
|
|
90
|
+
&:after {
|
|
91
|
+
right: 100%;
|
|
92
|
+
}
|
|
93
|
+
&:first-child {
|
|
94
|
+
padding-left: calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-left));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
.swipeout-actions-left,
|
|
99
|
+
.swipeout-actions-right {
|
|
100
|
+
[class*='color-'] {
|
|
101
|
+
--f7-swipeout-button-bg-color: var(--f7-theme-color);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.if-ios-theme({
|
|
105
|
+
@import './swipeout-ios.less';
|
|
106
|
+
});
|
|
107
|
+
.if-md-theme({
|
|
108
|
+
@import './swipeout-md.less';
|
|
109
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;overflow:clip;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active{pointer-events:auto}.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}
|