@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,286 @@
|
|
|
1
|
+
import { getDocument } from 'ssr-window';
|
|
2
|
+
import $ from '../../shared/dom7.js';
|
|
3
|
+
import { bindMethods } from '../../shared/utils.js';
|
|
4
|
+
import { getSupport } from '../../shared/get-support.js';
|
|
5
|
+
const Sortable = {
|
|
6
|
+
init() {
|
|
7
|
+
const app = this;
|
|
8
|
+
const document = getDocument();
|
|
9
|
+
let isTouched;
|
|
10
|
+
let isMoved;
|
|
11
|
+
let touchStartY;
|
|
12
|
+
let touchesDiff;
|
|
13
|
+
let $sortingEl;
|
|
14
|
+
let $sortingItems;
|
|
15
|
+
let $sortableContainer;
|
|
16
|
+
let sortingElHeight;
|
|
17
|
+
let minTop;
|
|
18
|
+
let maxTop;
|
|
19
|
+
let $insertAfterEl;
|
|
20
|
+
let $insertBeforeEl;
|
|
21
|
+
let indexFrom;
|
|
22
|
+
let $pageEl;
|
|
23
|
+
let $pageContentEl;
|
|
24
|
+
let pageHeight;
|
|
25
|
+
let pageOffset;
|
|
26
|
+
let sortingElOffsetLocal;
|
|
27
|
+
let sortingElOffsetTop;
|
|
28
|
+
let initialScrollTop;
|
|
29
|
+
let wasTapHold;
|
|
30
|
+
function handleTouchStart(e, isTapHold) {
|
|
31
|
+
isMoved = false;
|
|
32
|
+
isTouched = true;
|
|
33
|
+
wasTapHold = false;
|
|
34
|
+
touchStartY = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
|
|
35
|
+
$sortingEl = $(e.target).closest('li').eq(0);
|
|
36
|
+
indexFrom = $sortingEl.index();
|
|
37
|
+
$sortableContainer = $sortingEl.parents('.sortable');
|
|
38
|
+
const $listGroup = $sortingEl.parents('.list-group');
|
|
39
|
+
if ($listGroup.length && $listGroup.parents($sortableContainer).length) {
|
|
40
|
+
$sortableContainer = $listGroup;
|
|
41
|
+
}
|
|
42
|
+
$sortingItems = $sortableContainer.children('ul').children('li:not(.disallow-sorting):not(.no-sorting)');
|
|
43
|
+
if (app.panel) app.panel.allowOpen = false;
|
|
44
|
+
if (app.swipeout) app.swipeout.allow = false;
|
|
45
|
+
if (isTapHold) {
|
|
46
|
+
$sortingEl.addClass('sorting');
|
|
47
|
+
$sortableContainer.addClass('sortable-sorting');
|
|
48
|
+
wasTapHold = true;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function handleTouchMove(e) {
|
|
52
|
+
if (!isTouched || !$sortingEl) return;
|
|
53
|
+
const pageY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
|
|
54
|
+
if (!isMoved) {
|
|
55
|
+
$pageEl = $sortingEl.parents('.page');
|
|
56
|
+
$pageContentEl = $sortingEl.parents('.page-content');
|
|
57
|
+
const paddingTop = parseInt($pageContentEl.css('padding-top'), 10);
|
|
58
|
+
const paddingBottom = parseInt($pageContentEl.css('padding-bottom'), 10);
|
|
59
|
+
initialScrollTop = $pageContentEl[0].scrollTop;
|
|
60
|
+
pageOffset = $pageEl.offset().top + paddingTop;
|
|
61
|
+
pageHeight = $pageEl.height() - paddingTop - paddingBottom;
|
|
62
|
+
$sortingEl.addClass('sorting');
|
|
63
|
+
$sortableContainer.addClass('sortable-sorting');
|
|
64
|
+
sortingElOffsetLocal = $sortingEl[0].offsetTop;
|
|
65
|
+
minTop = $sortingEl[0].offsetTop;
|
|
66
|
+
maxTop = $sortingEl.parent().height() - sortingElOffsetLocal - $sortingEl.height();
|
|
67
|
+
sortingElHeight = $sortingEl[0].offsetHeight;
|
|
68
|
+
sortingElOffsetTop = $sortingEl.offset().top;
|
|
69
|
+
}
|
|
70
|
+
isMoved = true;
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
e.f7PreventSwipePanel = true;
|
|
73
|
+
touchesDiff = pageY - touchStartY;
|
|
74
|
+
const translateScrollOffset = $pageContentEl[0].scrollTop - initialScrollTop;
|
|
75
|
+
const translate = Math.min(Math.max(touchesDiff + translateScrollOffset, -minTop), maxTop);
|
|
76
|
+
$sortingEl.transform(`translate3d(0,${translate}px,0)`);
|
|
77
|
+
const scrollAddition = 44;
|
|
78
|
+
let allowScroll = true;
|
|
79
|
+
if (touchesDiff + translateScrollOffset + scrollAddition < -minTop) {
|
|
80
|
+
allowScroll = false;
|
|
81
|
+
}
|
|
82
|
+
if (touchesDiff + translateScrollOffset - scrollAddition > maxTop) {
|
|
83
|
+
allowScroll = false;
|
|
84
|
+
}
|
|
85
|
+
$insertBeforeEl = undefined;
|
|
86
|
+
$insertAfterEl = undefined;
|
|
87
|
+
let scrollDiff;
|
|
88
|
+
if (allowScroll) {
|
|
89
|
+
if (sortingElOffsetTop + touchesDiff + sortingElHeight + scrollAddition > pageOffset + pageHeight) {
|
|
90
|
+
// To Bottom
|
|
91
|
+
scrollDiff = sortingElOffsetTop + touchesDiff + sortingElHeight + scrollAddition - (pageOffset + pageHeight);
|
|
92
|
+
}
|
|
93
|
+
if (sortingElOffsetTop + touchesDiff < pageOffset + scrollAddition) {
|
|
94
|
+
// To Top
|
|
95
|
+
scrollDiff = sortingElOffsetTop + touchesDiff - pageOffset - scrollAddition;
|
|
96
|
+
}
|
|
97
|
+
if (scrollDiff) {
|
|
98
|
+
$pageContentEl[0].scrollTop += scrollDiff;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
$sortingItems.each(el => {
|
|
102
|
+
const $currentEl = $(el);
|
|
103
|
+
if ($currentEl[0] === $sortingEl[0]) return;
|
|
104
|
+
const currentElOffset = $currentEl[0].offsetTop;
|
|
105
|
+
const currentElHeight = $currentEl.height();
|
|
106
|
+
const sortingElOffset = sortingElOffsetLocal + translate;
|
|
107
|
+
let currentTranslate;
|
|
108
|
+
const prevTranslate = $currentEl[0].f7Translate;
|
|
109
|
+
if (sortingElOffset >= currentElOffset - currentElHeight / 2 && $sortingEl.index() < $currentEl.index()) {
|
|
110
|
+
currentTranslate = -sortingElHeight;
|
|
111
|
+
$currentEl.transform(`translate3d(0, ${currentTranslate}px,0)`);
|
|
112
|
+
$insertAfterEl = $currentEl;
|
|
113
|
+
$insertBeforeEl = undefined;
|
|
114
|
+
} else if (sortingElOffset <= currentElOffset + currentElHeight / 2 && $sortingEl.index() > $currentEl.index()) {
|
|
115
|
+
currentTranslate = sortingElHeight;
|
|
116
|
+
$currentEl[0].f7Translate = currentTranslate;
|
|
117
|
+
$currentEl.transform(`translate3d(0, ${currentTranslate}px,0)`);
|
|
118
|
+
$insertAfterEl = undefined;
|
|
119
|
+
if (!$insertBeforeEl) $insertBeforeEl = $currentEl;
|
|
120
|
+
} else {
|
|
121
|
+
currentTranslate = undefined;
|
|
122
|
+
$currentEl.transform('translate3d(0, 0%,0)');
|
|
123
|
+
}
|
|
124
|
+
if (prevTranslate !== currentTranslate) {
|
|
125
|
+
$currentEl.trigger('sortable:move');
|
|
126
|
+
app.emit('sortableMove', $currentEl[0], $sortableContainer[0]);
|
|
127
|
+
}
|
|
128
|
+
$currentEl[0].f7Translate = currentTranslate;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function handleTouchEnd() {
|
|
132
|
+
if (!isTouched || !isMoved) {
|
|
133
|
+
if (isTouched && !isMoved) {
|
|
134
|
+
if (app.panel) app.panel.allowOpen = true;
|
|
135
|
+
if (app.swipeout) app.swipeout.allow = true;
|
|
136
|
+
if (wasTapHold) {
|
|
137
|
+
$sortingEl.removeClass('sorting');
|
|
138
|
+
$sortableContainer.removeClass('sortable-sorting');
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
isTouched = false;
|
|
142
|
+
isMoved = false;
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (app.panel) app.panel.allowOpen = true;
|
|
146
|
+
if (app.swipeout) app.swipeout.allow = true;
|
|
147
|
+
$sortingItems.transform('');
|
|
148
|
+
$sortingEl.removeClass('sorting');
|
|
149
|
+
$sortableContainer.removeClass('sortable-sorting');
|
|
150
|
+
let indexTo;
|
|
151
|
+
if ($insertAfterEl) indexTo = $insertAfterEl.index();else if ($insertBeforeEl) indexTo = $insertBeforeEl.index();
|
|
152
|
+
let moveElements = $sortableContainer.dataset().sortableMoveElements;
|
|
153
|
+
if (typeof moveElements === 'undefined') {
|
|
154
|
+
moveElements = app.params.sortable.moveElements;
|
|
155
|
+
}
|
|
156
|
+
if (moveElements) {
|
|
157
|
+
if ($insertAfterEl) {
|
|
158
|
+
$sortingEl.insertAfter($insertAfterEl);
|
|
159
|
+
}
|
|
160
|
+
if ($insertBeforeEl) {
|
|
161
|
+
$sortingEl.insertBefore($insertBeforeEl);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
if (($insertAfterEl || $insertBeforeEl) && $sortableContainer.hasClass('virtual-list')) {
|
|
165
|
+
indexFrom = $sortingEl[0].f7VirtualListIndex;
|
|
166
|
+
if (typeof indexFrom === 'undefined') indexFrom = $sortingEl.attr('data-virtual-list-index');
|
|
167
|
+
if ($insertBeforeEl) {
|
|
168
|
+
indexTo = $insertBeforeEl[0].f7VirtualListIndex;
|
|
169
|
+
if (typeof indexTo === 'undefined') indexTo = $insertBeforeEl.attr('data-virtual-list-index');
|
|
170
|
+
} else {
|
|
171
|
+
indexTo = $insertAfterEl[0].f7VirtualListIndex;
|
|
172
|
+
if (typeof indexTo === 'undefined') indexTo = $insertAfterEl.attr('data-virtual-list-index');
|
|
173
|
+
}
|
|
174
|
+
if (indexTo !== null) indexTo = parseInt(indexTo, 10);else indexTo = undefined;
|
|
175
|
+
const virtualList = $sortableContainer[0].f7VirtualList;
|
|
176
|
+
if (indexFrom) indexFrom = parseInt(indexFrom, 10);
|
|
177
|
+
if (indexTo) indexTo = parseInt(indexTo, 10);
|
|
178
|
+
if (virtualList) virtualList.moveItem(indexFrom, indexTo);
|
|
179
|
+
}
|
|
180
|
+
if (typeof indexTo !== 'undefined' && !Number.isNaN(indexTo) && indexTo !== indexFrom) {
|
|
181
|
+
$sortingEl.trigger('sortable:sort', {
|
|
182
|
+
from: indexFrom,
|
|
183
|
+
to: indexTo
|
|
184
|
+
});
|
|
185
|
+
app.emit('sortableSort', $sortingEl[0], {
|
|
186
|
+
from: indexFrom,
|
|
187
|
+
to: indexTo,
|
|
188
|
+
el: $sortingEl[0]
|
|
189
|
+
}, $sortableContainer[0]);
|
|
190
|
+
}
|
|
191
|
+
$insertBeforeEl = undefined;
|
|
192
|
+
$insertAfterEl = undefined;
|
|
193
|
+
isTouched = false;
|
|
194
|
+
isMoved = false;
|
|
195
|
+
}
|
|
196
|
+
const activeListener = getSupport().passiveListener ? {
|
|
197
|
+
passive: false,
|
|
198
|
+
capture: false
|
|
199
|
+
} : false;
|
|
200
|
+
$(document).on(app.touchEvents.start, '.list.sortable .sortable-handler', handleTouchStart, activeListener);
|
|
201
|
+
app.on('touchmove:active', handleTouchMove);
|
|
202
|
+
app.on('touchend:passive', handleTouchEnd);
|
|
203
|
+
$(document).on('taphold', '.sortable-tap-hold', (e, pointerEvent) => {
|
|
204
|
+
handleTouchStart(pointerEvent, true);
|
|
205
|
+
});
|
|
206
|
+
},
|
|
207
|
+
enable(el) {
|
|
208
|
+
if (el === void 0) {
|
|
209
|
+
el = '.list.sortable';
|
|
210
|
+
}
|
|
211
|
+
const app = this;
|
|
212
|
+
const $el = $(el);
|
|
213
|
+
if ($el.length === 0) return;
|
|
214
|
+
$el.addClass('sortable-enabled');
|
|
215
|
+
$el.trigger('sortable:enable');
|
|
216
|
+
app.emit('sortableEnable', $el[0]);
|
|
217
|
+
},
|
|
218
|
+
disable(el) {
|
|
219
|
+
if (el === void 0) {
|
|
220
|
+
el = '.list.sortable';
|
|
221
|
+
}
|
|
222
|
+
const app = this;
|
|
223
|
+
const $el = $(el);
|
|
224
|
+
if ($el.length === 0) return;
|
|
225
|
+
$el.removeClass('sortable-enabled');
|
|
226
|
+
$el.trigger('sortable:disable');
|
|
227
|
+
app.emit('sortableDisable', $el[0]);
|
|
228
|
+
},
|
|
229
|
+
toggle(el) {
|
|
230
|
+
if (el === void 0) {
|
|
231
|
+
el = '.list.sortable';
|
|
232
|
+
}
|
|
233
|
+
const app = this;
|
|
234
|
+
const $el = $(el);
|
|
235
|
+
if ($el.length === 0) return;
|
|
236
|
+
if ($el.hasClass('sortable-enabled')) {
|
|
237
|
+
app.sortable.disable($el);
|
|
238
|
+
} else {
|
|
239
|
+
app.sortable.enable($el);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
export default {
|
|
244
|
+
name: 'sortable',
|
|
245
|
+
params: {
|
|
246
|
+
sortable: {
|
|
247
|
+
moveElements: true
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
create() {
|
|
251
|
+
const app = this;
|
|
252
|
+
bindMethods(app, {
|
|
253
|
+
sortable: Sortable
|
|
254
|
+
});
|
|
255
|
+
},
|
|
256
|
+
on: {
|
|
257
|
+
init() {
|
|
258
|
+
const app = this;
|
|
259
|
+
if (!app.params.sortable) return;
|
|
260
|
+
app.sortable.init();
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
clicks: {
|
|
264
|
+
'.sortable-enable': function enable($clickedEl, data) {
|
|
265
|
+
if (data === void 0) {
|
|
266
|
+
data = {};
|
|
267
|
+
}
|
|
268
|
+
const app = this;
|
|
269
|
+
app.sortable.enable(data.sortable);
|
|
270
|
+
},
|
|
271
|
+
'.sortable-disable': function disable($clickedEl, data) {
|
|
272
|
+
if (data === void 0) {
|
|
273
|
+
data = {};
|
|
274
|
+
}
|
|
275
|
+
const app = this;
|
|
276
|
+
app.sortable.disable(data.sortable);
|
|
277
|
+
},
|
|
278
|
+
'.sortable-toggle': function toggle($clickedEl, data) {
|
|
279
|
+
if (data === void 0) {
|
|
280
|
+
data = {};
|
|
281
|
+
}
|
|
282
|
+
const app = this;
|
|
283
|
+
app.sortable.toggle(data.sortable);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* === Sortable === */
|
|
2
|
+
@import './sortable-vars.less';
|
|
3
|
+
|
|
4
|
+
.sortable {
|
|
5
|
+
.sortable-handler {
|
|
6
|
+
width: var(--f7-sortable-handler-width);
|
|
7
|
+
height: 100%;
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 0;
|
|
10
|
+
z-index: 10;
|
|
11
|
+
opacity: 0;
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
cursor: move;
|
|
14
|
+
transition-duration: 300ms;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
&:after {
|
|
20
|
+
.core-icons-font();
|
|
21
|
+
transition-duration: 300ms;
|
|
22
|
+
transform: translateX(10px);
|
|
23
|
+
color: var(--f7-sortable-handler-color);
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
height: 20px;
|
|
26
|
+
width: 18px;
|
|
27
|
+
}
|
|
28
|
+
.ltr({
|
|
29
|
+
right: var(--f7-safe-area-right);
|
|
30
|
+
});
|
|
31
|
+
.rtl({
|
|
32
|
+
left: var(--f7-safe-area-left);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
li.sorting {
|
|
36
|
+
z-index: 50;
|
|
37
|
+
background: var(--f7-sortable-sorting-item-bg-color);
|
|
38
|
+
transition-duration: 0ms;
|
|
39
|
+
box-shadow: var(--f7-sortable-sorting-item-box-shadow);
|
|
40
|
+
.item-inner {
|
|
41
|
+
.hairline-remove(bottom);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
.sortable-opposite {
|
|
46
|
+
.sortable-handler {
|
|
47
|
+
.ltr({
|
|
48
|
+
left: var(--f7-safe-area-right);
|
|
49
|
+
right: auto;
|
|
50
|
+
});
|
|
51
|
+
.rtl({
|
|
52
|
+
right: var(--f7-safe-area-left);
|
|
53
|
+
left: auto;
|
|
54
|
+
});
|
|
55
|
+
&:after {
|
|
56
|
+
transform: translateX(-10px);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.sortable:not(.sortable-opposite) .item-inner,
|
|
61
|
+
.sortable-opposite .item-content,
|
|
62
|
+
.sortable.simple-list li,
|
|
63
|
+
.sortable-opposite.links-list li a {
|
|
64
|
+
transition-duration: 300ms;
|
|
65
|
+
transition-property: all;
|
|
66
|
+
}
|
|
67
|
+
.sortable-sorting li {
|
|
68
|
+
transition-duration: 300ms;
|
|
69
|
+
}
|
|
70
|
+
.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) {
|
|
71
|
+
.sortable-handler {
|
|
72
|
+
pointer-events: auto;
|
|
73
|
+
touch-action: none;
|
|
74
|
+
opacity: 1;
|
|
75
|
+
&:after {
|
|
76
|
+
transform: translateX(0px);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.sortable-enabled {
|
|
81
|
+
&:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-inner,
|
|
82
|
+
&:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-link .item-title-row,
|
|
83
|
+
&:not(.sortable-opposite).links-list li:not(.no-sorting):not(.disallow-sorting) > a {
|
|
84
|
+
&:before {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) .item-inner,
|
|
90
|
+
.sortable-enabled:not(.sortable-opposite)
|
|
91
|
+
li:not(.no-sorting):not(.disallow-sorting)
|
|
92
|
+
.item-link
|
|
93
|
+
.item-inner,
|
|
94
|
+
.sortable-enabled:not(.sortable-opposite)
|
|
95
|
+
li:not(.no-sorting):not(.disallow-sorting)
|
|
96
|
+
.item-link.no-chevron
|
|
97
|
+
.item-inner,
|
|
98
|
+
.sortable-enabled.no-chevron:not(.sortable-opposite)
|
|
99
|
+
li:not(.no-sorting):not(.disallow-sorting)
|
|
100
|
+
.item-link
|
|
101
|
+
.item-inner,
|
|
102
|
+
.sortable-enabled :not(.sortable-opposite).no-chevron .item-link .item-inner,
|
|
103
|
+
.no-chevron
|
|
104
|
+
.sortable-enabled:not(.sortable-opposite)
|
|
105
|
+
li:not(.no-sorting):not(.disallow-sorting)
|
|
106
|
+
.item-link
|
|
107
|
+
.item-inner,
|
|
108
|
+
.simple-list.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting),
|
|
109
|
+
.links-list.sortable-enabled:not(.sortable-opposite) li:not(.no-sorting):not(.disallow-sorting) a {
|
|
110
|
+
.ltr({
|
|
111
|
+
padding-right: calc(var(--f7-sortable-handler-width) + var(--f7-safe-area-right));
|
|
112
|
+
});
|
|
113
|
+
.rtl({
|
|
114
|
+
padding-left: calc(var(--f7-sortable-handler-width) + var(--f7-safe-area-right));
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
.sortable-opposite.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) .item-content,
|
|
118
|
+
.simple-list.sortable-opposite.sortable-enabled li:not(.no-sorting):not(.disallow-sorting),
|
|
119
|
+
.links-list.sortable-opposite.sortable-enabled li:not(.no-sorting):not(.disallow-sorting) a {
|
|
120
|
+
.ltr({
|
|
121
|
+
padding-left: calc(var(--f7-sortable-handler-width) + var(--f7-safe-area-right));
|
|
122
|
+
});
|
|
123
|
+
.rtl({
|
|
124
|
+
padding-right: calc(var(--f7-sortable-handler-width) + var(--f7-safe-area-right));
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.if-ios-theme({
|
|
129
|
+
@import './sortable-ios.less';
|
|
130
|
+
});
|
|
131
|
+
.if-md-theme({
|
|
132
|
+
@import './sortable-md.less';
|
|
133
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import Framework7, {
|
|
2
|
+
CSSSelector,
|
|
3
|
+
Framework7EventsClass,
|
|
4
|
+
Framework7Plugin,
|
|
5
|
+
} from '../app/app-class.js';
|
|
6
|
+
|
|
7
|
+
export namespace Statusbar {
|
|
8
|
+
interface AppParams {
|
|
9
|
+
/** Statusbar parameters */
|
|
10
|
+
statusbar?:
|
|
11
|
+
| {
|
|
12
|
+
/** Enables statusbar handling by Framework7. Disable it if you don't want Framework7 to handle statusbar behavior */
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
/** If enabled, then click on statusbar overlay will scroll top page content to the top.This functionality is only available when app is running under cordova/capacitor environment with installed cordova-plugin-statusbar */
|
|
15
|
+
scrollTopOnClick?: boolean;
|
|
16
|
+
/** Hex string (#RRGGBB) with background color when app running under iOS device. If passed then it will override CSS value */
|
|
17
|
+
iosBackgroundColor?: string;
|
|
18
|
+
/** Makes the statusbar overlay or not overlay the WebView. This functionality is only available when app is running on iOS device under cordova/capacitor environment with installed cordova-plugin-statusbar*/
|
|
19
|
+
iosOverlaysWebView?: boolean;
|
|
20
|
+
/** Statusbar text color. Can be white or black. This functionality is only available when app is running on iOS under cordova/capacitor environment with installed cordova-plugin-statusbar */
|
|
21
|
+
iosTextColor?: string;
|
|
22
|
+
/** Hex string (#RRGGBB) with background color when app running on Android device. If passed then it will override CSS value */
|
|
23
|
+
androidBackgroundColor?: string;
|
|
24
|
+
/** Makes the statusbar overlay or not overlay the WebView. This functionality is only available when app is running on Android and under cordova/capacitor environment with installed cordova-plugin-statusbar
|
|
25
|
+
*/
|
|
26
|
+
androidOverlaysWebView?: boolean;
|
|
27
|
+
/** Statusbar text color. Can be white or black. This functionality is only available when app is running on Android and under cordova/capacitor environment with installed cordova-plugin-statusbar */
|
|
28
|
+
androidTextColor?: string;
|
|
29
|
+
}
|
|
30
|
+
| undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface AppMethods {
|
|
34
|
+
/** Statusbar methods and properties */
|
|
35
|
+
statusbar: {
|
|
36
|
+
/** Hide statusbar. In webapp it just hides statusbar overlay, but in cordova app it will hide statusbar at all. Hiding device statusbar is available when app is running under cordova/capacitor environment with installed cordova-plugin-statusbar */
|
|
37
|
+
hide(): void;
|
|
38
|
+
/** Show statusbar */
|
|
39
|
+
show(): void;
|
|
40
|
+
/** Makes the statusbar overlay or not overlay the WebView. This functionality is only available when app is running under cordova/capacitor environment with installed cordova-plugin-statusbar */
|
|
41
|
+
overlaysWebView(overlays: boolean): void;
|
|
42
|
+
/** "Set/change statusbar text color. "color" can be white or black. This functionality is only available when app is running under cordova/capacitor environment with installed cordova-plugin-statusbar" */
|
|
43
|
+
setTextColor(color: string): void;
|
|
44
|
+
/** Set/change statusbar background colorhex - string - Hex string (#RRGGBB) with background color */
|
|
45
|
+
setBackgroundColor(hex: string): void;
|
|
46
|
+
/** Returns Promise resolved with "true" if system statusbar is visible and false when it is not visible. This functionality is only available when app is running under cordova/capacitor/capacitor environment with installed cordova-plugin-statusbar */
|
|
47
|
+
isVisible(): Promise<boolean>;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
interface AppEvents {}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare const StatusbarComponent: Framework7Plugin;
|
|
54
|
+
export default StatusbarComponent;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { getWindow } from 'ssr-window';
|
|
2
|
+
import $ from '../../shared/dom7.js';
|
|
3
|
+
import { bindMethods } from '../../shared/utils.js';
|
|
4
|
+
import { getDevice } from '../../shared/get-device.js';
|
|
5
|
+
const isCapacitor = () => {
|
|
6
|
+
const window = getWindow();
|
|
7
|
+
return window.Capacitor && window.Capacitor.isNative && window.Capacitor.Plugins && window.Capacitor.Plugins.StatusBar;
|
|
8
|
+
};
|
|
9
|
+
const Statusbar = {
|
|
10
|
+
hide() {
|
|
11
|
+
const window = getWindow();
|
|
12
|
+
const device = getDevice();
|
|
13
|
+
if (device.cordova && window.StatusBar) {
|
|
14
|
+
window.StatusBar.hide();
|
|
15
|
+
}
|
|
16
|
+
if (isCapacitor()) {
|
|
17
|
+
window.Capacitor.Plugins.StatusBar.hide();
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
show() {
|
|
21
|
+
const window = getWindow();
|
|
22
|
+
const device = getDevice();
|
|
23
|
+
if (device.cordova && window.StatusBar) {
|
|
24
|
+
window.StatusBar.show();
|
|
25
|
+
}
|
|
26
|
+
if (isCapacitor()) {
|
|
27
|
+
window.Capacitor.Plugins.StatusBar.show();
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
onClick() {
|
|
31
|
+
const app = this;
|
|
32
|
+
let pageContent;
|
|
33
|
+
if ($('.popup.modal-in').length > 0) {
|
|
34
|
+
// Check for opened popup
|
|
35
|
+
pageContent = $('.popup.modal-in').find('.page:not(.page-previous):not(.page-next):not(.cached)').find('.page-content');
|
|
36
|
+
} else if ($('.panel.panel-in').length > 0) {
|
|
37
|
+
// Check for opened panel
|
|
38
|
+
pageContent = $('.panel.panel-in').find('.page:not(.page-previous):not(.page-next):not(.cached)').find('.page-content');
|
|
39
|
+
} else if ($('.views > .view.tab-active').length > 0) {
|
|
40
|
+
// View in tab bar app layout
|
|
41
|
+
pageContent = $('.views > .view.tab-active').find('.page:not(.page-previous):not(.page-next):not(.cached)').find('.page-content');
|
|
42
|
+
} else if ($('.views').length > 0) {
|
|
43
|
+
pageContent = $('.views').find('.page:not(.page-previous):not(.page-next):not(.cached)').find('.page-content');
|
|
44
|
+
} else {
|
|
45
|
+
pageContent = app.$el.children('.view').find('.page:not(.page-previous):not(.page-next):not(.cached)').find('.page-content');
|
|
46
|
+
}
|
|
47
|
+
if (pageContent && pageContent.length > 0) {
|
|
48
|
+
// Check for tab
|
|
49
|
+
if (pageContent.hasClass('tab')) {
|
|
50
|
+
pageContent = pageContent.parent('.tabs').children('.page-content.tab-active');
|
|
51
|
+
}
|
|
52
|
+
if (pageContent.length > 0) pageContent.scrollTop(0, 300);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
setTextColor(color) {
|
|
56
|
+
const window = getWindow();
|
|
57
|
+
const device = getDevice();
|
|
58
|
+
if (device.cordova && window.StatusBar) {
|
|
59
|
+
if (color === 'white') {
|
|
60
|
+
window.StatusBar.styleLightContent();
|
|
61
|
+
} else {
|
|
62
|
+
window.StatusBar.styleDefault();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (isCapacitor()) {
|
|
66
|
+
if (color === 'white') {
|
|
67
|
+
window.Capacitor.Plugins.StatusBar.setStyle({
|
|
68
|
+
style: 'DARK'
|
|
69
|
+
});
|
|
70
|
+
} else {
|
|
71
|
+
window.Capacitor.Plugins.StatusBar.setStyle({
|
|
72
|
+
style: 'LIGHT'
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
setBackgroundColor(color) {
|
|
78
|
+
const window = getWindow();
|
|
79
|
+
const device = getDevice();
|
|
80
|
+
if (device.cordova && window.StatusBar) {
|
|
81
|
+
window.StatusBar.backgroundColorByHexString(color);
|
|
82
|
+
}
|
|
83
|
+
if (isCapacitor()) {
|
|
84
|
+
window.Capacitor.Plugins.StatusBar.setBackgroundColor({
|
|
85
|
+
color
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
isVisible() {
|
|
90
|
+
const window = getWindow();
|
|
91
|
+
const device = getDevice();
|
|
92
|
+
return new Promise(resolve => {
|
|
93
|
+
if (device.cordova && window.StatusBar) {
|
|
94
|
+
resolve(window.StatusBar.isVisible);
|
|
95
|
+
}
|
|
96
|
+
if (isCapacitor()) {
|
|
97
|
+
window.Capacitor.Plugins.StatusBar.getInfo().then(info => {
|
|
98
|
+
resolve(info.visible);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
resolve(false);
|
|
102
|
+
});
|
|
103
|
+
},
|
|
104
|
+
overlaysWebView(overlays) {
|
|
105
|
+
if (overlays === void 0) {
|
|
106
|
+
overlays = true;
|
|
107
|
+
}
|
|
108
|
+
const window = getWindow();
|
|
109
|
+
const device = getDevice();
|
|
110
|
+
if (device.cordova && window.StatusBar) {
|
|
111
|
+
window.StatusBar.overlaysWebView(overlays);
|
|
112
|
+
}
|
|
113
|
+
if (isCapacitor()) {
|
|
114
|
+
window.Capacitor.Plugins.StatusBar.setOverlaysWebView({
|
|
115
|
+
overlay: overlays
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
init() {
|
|
120
|
+
const app = this;
|
|
121
|
+
const window = getWindow();
|
|
122
|
+
const device = getDevice();
|
|
123
|
+
const params = app.params.statusbar;
|
|
124
|
+
if (!params.enabled) return;
|
|
125
|
+
const isCordova = device.cordova && window.StatusBar;
|
|
126
|
+
const isCap = isCapacitor();
|
|
127
|
+
if (isCordova || isCap) {
|
|
128
|
+
if (params.scrollTopOnClick) {
|
|
129
|
+
$(window).on('statusTap', Statusbar.onClick.bind(app));
|
|
130
|
+
}
|
|
131
|
+
if (device.ios) {
|
|
132
|
+
if (params.iosOverlaysWebView) {
|
|
133
|
+
Statusbar.overlaysWebView(true);
|
|
134
|
+
} else {
|
|
135
|
+
Statusbar.overlaysWebView(false);
|
|
136
|
+
}
|
|
137
|
+
if (params.iosTextColor === 'white') {
|
|
138
|
+
Statusbar.setTextColor('white');
|
|
139
|
+
} else {
|
|
140
|
+
Statusbar.setTextColor('black');
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if (device.android) {
|
|
144
|
+
if (params.androidOverlaysWebView) {
|
|
145
|
+
Statusbar.overlaysWebView(true);
|
|
146
|
+
} else {
|
|
147
|
+
Statusbar.overlaysWebView(false);
|
|
148
|
+
}
|
|
149
|
+
if (params.androidTextColor === 'white') {
|
|
150
|
+
Statusbar.setTextColor('white');
|
|
151
|
+
} else {
|
|
152
|
+
Statusbar.setTextColor('black');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (params.iosBackgroundColor && device.ios) {
|
|
157
|
+
Statusbar.setBackgroundColor(params.iosBackgroundColor);
|
|
158
|
+
}
|
|
159
|
+
if (params.androidBackgroundColor && device.android) {
|
|
160
|
+
Statusbar.setBackgroundColor(params.androidBackgroundColor);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
export default {
|
|
165
|
+
name: 'statusbar',
|
|
166
|
+
params: {
|
|
167
|
+
statusbar: {
|
|
168
|
+
enabled: true,
|
|
169
|
+
scrollTopOnClick: true,
|
|
170
|
+
iosOverlaysWebView: true,
|
|
171
|
+
iosTextColor: 'black',
|
|
172
|
+
iosBackgroundColor: null,
|
|
173
|
+
androidOverlaysWebView: false,
|
|
174
|
+
androidTextColor: 'black',
|
|
175
|
+
androidBackgroundColor: null
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
create() {
|
|
179
|
+
const app = this;
|
|
180
|
+
bindMethods(app, {
|
|
181
|
+
statusbar: Statusbar
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
on: {
|
|
185
|
+
init() {
|
|
186
|
+
const app = this;
|
|
187
|
+
Statusbar.init.call(app);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
};
|