framework7 6.3.4 → 7.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/accordion.js +132 -1
- package/components/accordion/accordion.umd.js +1 -0
- package/components/actions/actions-class.js +365 -0
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.js +42 -1
- package/components/actions/actions.umd.js +1 -0
- package/components/app/app-class.d.ts +10 -10
- package/{esm/components → components}/app/app-class.js +107 -140
- package/components/app/app.less +3 -3
- package/{esm/components → components}/app/load-module.js +32 -32
- package/components/appbar/appbar.js +3 -1
- package/components/appbar/appbar.umd.js +1 -0
- package/components/area-chart/area-chart-class.js +507 -0
- package/components/area-chart/area-chart-rtl.css +1 -1
- package/components/area-chart/area-chart.css +1 -1
- package/components/area-chart/area-chart.js +47 -1
- package/components/area-chart/area-chart.umd.js +1 -0
- package/{esm/components → components}/autocomplete/autocomplete-class.js +241 -253
- package/components/autocomplete/autocomplete-rtl.css +1 -1
- package/components/autocomplete/autocomplete.css +1 -1
- package/components/autocomplete/autocomplete.js +86 -1
- package/components/autocomplete/autocomplete.umd.js +1 -0
- package/{esm/components → components}/badge/badge.js +0 -0
- package/{esm/components → components}/block/block.js +0 -0
- package/{esm/components → components}/button/button.js +0 -0
- package/{esm/components → components}/calendar/calendar-class.js +676 -643
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar.css +1 -1
- package/components/calendar/calendar.js +111 -1
- package/components/calendar/calendar.umd.js +1 -0
- package/components/card/card-rtl.css +1 -1
- package/components/card/card.css +1 -1
- package/components/card/card.js +592 -1
- package/components/card/card.umd.js +1 -0
- package/components/checkbox/checkbox-rtl.css +1 -1
- package/components/checkbox/checkbox.css +1 -1
- package/components/checkbox/checkbox.js +3 -1
- package/components/checkbox/checkbox.umd.js +1 -0
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip.css +1 -1
- package/components/chip/chip.js +3 -1
- package/components/chip/chip.umd.js +1 -0
- package/{esm/components → components}/color-picker/color-picker-class.js +336 -349
- package/components/color-picker/color-picker-rtl.css +1 -1
- package/components/color-picker/color-picker.css +1 -1
- package/components/color-picker/color-picker.js +92 -1
- package/components/color-picker/color-picker.umd.js +1 -0
- package/{esm/components → components}/color-picker/modules/alpha-slider.js +30 -19
- package/{esm/components → components}/color-picker/modules/brightness-slider.js +35 -24
- package/{esm/components → components}/color-picker/modules/current-color.js +4 -2
- package/{esm/components → components}/color-picker/modules/hex.js +27 -16
- package/{esm/components → components}/color-picker/modules/hs-spectrum.js +37 -25
- package/{esm/components → components}/color-picker/modules/hsb-sliders.js +54 -41
- package/{esm/components → components}/color-picker/modules/hue-slider.js +29 -18
- package/{esm/components → components}/color-picker/modules/initial-current-colors.js +14 -9
- package/{esm/components → components}/color-picker/modules/palette.js +14 -11
- package/{esm/components → components}/color-picker/modules/rgb-bars.js +42 -29
- package/{esm/components → components}/color-picker/modules/rgb-sliders.js +47 -34
- package/{esm/components → components}/color-picker/modules/sb-spectrum.js +38 -26
- package/{esm/components → components}/color-picker/modules/wheel.js +59 -47
- package/components/contacts-list/contacts-list-rtl.css +1 -1
- package/components/contacts-list/contacts-list.css +1 -1
- package/components/contacts-list/contacts-list.js +3 -1
- package/components/contacts-list/contacts-list.umd.js +1 -0
- package/{esm/components → components}/data-table/data-table-class.js +40 -59
- package/components/data-table/data-table-rtl.css +1 -1
- package/components/data-table/data-table.css +1 -1
- package/components/data-table/data-table.js +72 -1
- package/components/data-table/data-table.umd.js +1 -0
- package/{esm/components → components}/dialog/dialog-class.js +58 -67
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog.css +1 -1
- package/components/dialog/dialog.js +254 -1
- package/components/dialog/dialog.umd.js +1 -0
- package/components/elevation/elevation.js +3 -1
- package/components/elevation/elevation.umd.js +1 -0
- package/components/fab/fab.js +181 -1
- package/components/fab/fab.umd.js +1 -0
- package/components/form/form.js +347 -1
- package/components/form/form.umd.js +1 -0
- package/components/gauge/gauge-class.js +306 -0
- package/components/gauge/gauge.js +99 -1
- package/components/gauge/gauge.umd.js +1 -0
- package/components/grid/grid-rtl.css +1 -1
- package/components/grid/grid.css +1 -1
- package/components/grid/grid.js +227 -1
- package/components/grid/grid.umd.js +1 -0
- package/{esm/components → components}/icon/icon.js +0 -0
- package/components/infinite-scroll/infinite-scroll.js +110 -1
- package/components/infinite-scroll/infinite-scroll.umd.js +1 -0
- package/components/input/input-rtl.css +1 -1
- package/components/input/input.css +1 -1
- package/components/input/input.js +394 -1
- package/components/input/input.less +1 -1
- package/components/input/input.umd.js +1 -0
- package/components/lazy/lazy.js +283 -1
- package/components/lazy/lazy.umd.js +1 -0
- package/{esm/components → components}/link/link.js +0 -0
- package/{esm/components → components}/list/list.js +0 -0
- package/{esm/components → components}/list-index/list-index-class.js +113 -121
- package/components/list-index/list-index-rtl.css +1 -1
- package/components/list-index/list-index.css +1 -1
- package/components/list-index/list-index.js +73 -1
- package/components/list-index/list-index.umd.js +1 -0
- package/components/login-screen/login-screen-class.js +43 -0
- package/components/login-screen/login-screen-rtl.css +1 -1
- package/components/login-screen/login-screen.css +1 -1
- package/components/login-screen/login-screen.js +28 -1
- package/components/login-screen/login-screen.less +1 -1
- package/components/login-screen/login-screen.umd.js +1 -0
- package/components/menu/menu.js +79 -1
- package/components/menu/menu.umd.js +1 -0
- package/{esm/components → components}/messagebar/messagebar-class.js +124 -152
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar.css +1 -1
- package/components/messagebar/messagebar.js +74 -1
- package/components/messagebar/messagebar.umd.js +1 -0
- package/{esm/components → components}/messages/messages-class.js +162 -242
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages.css +1 -1
- package/components/messages/messages.js +73 -1
- package/components/messages/messages.umd.js +1 -0
- package/{esm/components → components}/modal/custom-modal-class.js +16 -29
- package/{esm/components → components}/modal/modal-class.js +68 -83
- package/{esm/components → components}/modal/modal.js +8 -5
- package/{esm/components → components}/navbar/navbar.js +166 -171
- package/components/notification/notification-aurora.less +1 -1
- package/{esm/components → components}/notification/notification-class.js +65 -78
- package/components/notification/notification-ios.less +1 -1
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification.css +1 -1
- package/components/notification/notification.js +35 -1
- package/components/notification/notification.umd.js +1 -0
- package/components/page/page-vars.less +1 -1
- package/{esm/components → components}/page/page.js +0 -0
- package/{esm/components → components}/panel/panel-class.js +183 -214
- package/components/panel/panel-rtl.css +1 -1
- package/components/panel/panel.css +1 -1
- package/components/panel/panel.js +190 -1
- package/components/panel/panel.umd.js +1 -0
- package/{esm/components → components}/panel/resizable-panel.js +30 -28
- package/{esm/components → components}/panel/swipe-panel.js +46 -44
- package/{esm/components → components}/photo-browser/photo-browser-class.js +206 -234
- package/components/photo-browser/photo-browser.js +73 -1
- package/components/photo-browser/photo-browser.umd.js +1 -0
- package/{esm/components → components}/picker/picker-class.js +233 -233
- package/{esm/components → components}/picker/picker-column.js +70 -72
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker.css +1 -1
- package/components/picker/picker.js +64 -1
- package/components/picker/picker.umd.js +1 -0
- package/components/pie-chart/pie-chart-class.js +264 -0
- package/components/pie-chart/pie-chart.js +35 -1
- package/components/pie-chart/pie-chart.umd.js +1 -0
- package/{esm/components → components}/popover/popover-class.js +72 -97
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.js +76 -1
- package/components/popover/popover.umd.js +1 -0
- package/{esm/components → components}/popup/popup-class.js +66 -81
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.js +41 -1
- package/components/popup/popup.less +21 -21
- package/components/popup/popup.umd.js +1 -0
- package/components/preloader/preloader.js +115 -1
- package/components/preloader/preloader.umd.js +1 -0
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar.css +1 -1
- package/components/progressbar/progressbar.js +166 -1
- package/components/progressbar/progressbar.umd.js +1 -0
- package/{esm/components → components}/pull-to-refresh/pull-to-refresh-class.js +101 -118
- package/components/pull-to-refresh/pull-to-refresh.js +70 -1
- package/components/pull-to-refresh/pull-to-refresh.umd.js +1 -0
- package/components/radio/radio-rtl.css +1 -1
- package/components/radio/radio.css +1 -1
- package/components/radio/radio.js +3 -1
- package/components/radio/radio.umd.js +1 -0
- package/{esm/components → components}/range/range-class.js +191 -192
- package/components/range/range-rtl.css +1 -1
- package/components/range/range.css +1 -1
- package/components/range/range.js +79 -1
- package/components/range/range.umd.js +1 -0
- package/components/searchbar/remove-diacritics.js +275 -0
- package/{esm/components → components}/searchbar/searchbar-class.js +129 -146
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar.css +1 -1
- package/components/searchbar/searchbar.js +121 -1
- package/components/searchbar/searchbar.less +1 -1
- package/components/searchbar/searchbar.umd.js +1 -0
- package/{esm/components → components}/sheet/sheet-class.js +87 -106
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet.css +1 -1
- package/components/sheet/sheet.js +68 -1
- package/components/sheet/sheet.less +16 -16
- package/components/sheet/sheet.umd.js +1 -0
- package/components/skeleton/skeleton-rtl.css +1 -1
- package/components/skeleton/skeleton-vars.less +1 -1
- package/components/skeleton/skeleton.css +1 -1
- package/components/skeleton/skeleton.js +3 -1
- package/components/skeleton/skeleton.less +1 -1
- package/components/skeleton/skeleton.umd.js +1 -0
- package/{esm/components → components}/smart-select/smart-select-class.js +284 -296
- package/components/smart-select/smart-select.js +149 -1
- package/components/smart-select/smart-select.umd.js +1 -0
- package/components/sortable/sortable-rtl.css +1 -1
- package/components/sortable/sortable.css +1 -1
- package/components/sortable/sortable.js +293 -1
- package/components/sortable/sortable.umd.js +1 -0
- package/{esm/components → components}/statusbar/statusbar.js +48 -41
- package/{esm/components → components}/stepper/stepper-class.js +104 -115
- package/components/stepper/stepper-rtl.css +1 -1
- package/components/stepper/stepper.css +1 -1
- package/components/stepper/stepper.js +86 -1
- package/components/stepper/stepper.umd.js +1 -0
- package/{esm/components → components}/subnavbar/subnavbar.js +3 -2
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout.css +1 -1
- package/components/swipeout/swipeout.js +597 -1
- package/components/swipeout/swipeout.umd.js +1 -0
- package/components/swiper/swiper-rtl.css +1 -1
- package/components/swiper/swiper.css +1 -1
- package/components/swiper/swiper.js +191 -1
- package/components/swiper/swiper.less +1 -1
- package/components/swiper/swiper.umd.js +1 -0
- package/components/tabs/tabs.js +272 -1
- package/components/tabs/tabs.umd.js +1 -0
- package/{esm/components → components}/text-editor/text-editor-class.js +170 -182
- package/components/text-editor/text-editor-rtl.css +1 -1
- package/components/text-editor/text-editor.css +1 -1
- package/components/text-editor/text-editor.js +89 -1
- package/components/text-editor/text-editor.umd.js +1 -0
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline.css +1 -1
- package/components/timeline/timeline.js +3 -1
- package/components/timeline/timeline.umd.js +1 -0
- package/components/toast/toast-class.js +119 -0
- package/components/toast/toast.js +43 -1
- package/components/toast/toast.umd.js +1 -0
- package/{esm/components → components}/toggle/toggle-class.js +46 -63
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle.css +1 -1
- package/components/toggle/toggle.js +65 -1
- package/components/toggle/toggle.umd.js +1 -0
- package/{esm/components → components}/toolbar/toolbar.js +63 -59
- package/{esm/components → components}/tooltip/tooltip-class.js +95 -106
- package/components/tooltip/tooltip.js +144 -1
- package/components/tooltip/tooltip.umd.js +1 -0
- package/components/touch-ripple/touch-ripple-class.js +98 -0
- package/components/touch-ripple/touch-ripple-vars.less +1 -1
- package/components/touch-ripple/touch-ripple.js +18 -0
- package/components/treeview/treeview-rtl.css +1 -1
- package/components/treeview/treeview.css +1 -1
- package/components/treeview/treeview.js +83 -1
- package/components/treeview/treeview.umd.js +1 -0
- package/components/typography/typography.js +3 -1
- package/components/typography/typography.umd.js +1 -0
- package/{esm/components → components}/view/resizable-view.js +23 -21
- package/{esm/components → components}/view/view-class.js +48 -67
- package/{esm/components → components}/view/view.js +37 -28
- package/{esm/components → components}/virtual-list/virtual-list-class.js +153 -170
- package/components/virtual-list/virtual-list.js +19 -1
- package/components/virtual-list/virtual-list.umd.js +1 -0
- package/framework7-bundle-rtl.css +268 -852
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +268 -852
- package/{esm/framework7-bundle.js → framework7-bundle.esm.js} +2 -2
- package/framework7-bundle.js +30782 -31429
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +3 -3
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/{esm/framework7-lite-bundle.js → framework7-lite-bundle.esm.js} +2 -2
- package/{esm/framework7-lite.js → framework7-lite.esm.js} +2 -2
- package/framework7-rtl.css +52 -56
- package/framework7-rtl.min.css +3 -3
- package/{types/types.d.ts → framework7-types.d.ts} +0 -0
- package/framework7.css +52 -56
- package/framework7.d.ts +81 -81
- package/{esm/framework7.js → framework7.esm.js} +2 -2
- package/framework7.js +3386 -4049
- package/framework7.js.map +1 -1
- package/framework7.less +2 -2
- package/framework7.min.css +3 -3
- package/framework7.min.js +3 -3
- package/framework7.min.js.map +1 -1
- package/less/mixins.less +2 -2
- package/{esm/modules → modules}/clicks/clicks.js +17 -16
- package/modules/component/$h.js +14 -0
- package/modules/component/$jsx.js +18 -0
- package/modules/component/component-class.js +382 -0
- package/modules/component/component.d.ts +2 -0
- package/{esm/modules → modules}/component/component.js +23 -17
- package/{esm/modules → modules}/component/custom-components.js +0 -0
- package/{esm/modules → modules}/component/eventslisteners.js +14 -18
- package/modules/component/parse-component.js +80 -0
- package/{esm/modules → modules}/component/patch.js +1 -1
- package/{esm/modules → modules}/component/snabbdom/h.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/helpers/attachto.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/hooks.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/htmldomapi.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/is.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/attributes.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/class.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/dataset.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/eventlisteners.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/hero.js +1 -1
- package/{esm/modules → modules}/component/snabbdom/modules/module.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/props.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/modules/style.js +1 -1
- package/{esm/modules → modules}/component/snabbdom/snabbdom.bundle.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/snabbdom.js +6 -18
- package/{esm/modules → modules}/component/snabbdom/thunk.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/tovnode.js +0 -0
- package/{esm/modules → modules}/component/snabbdom/vnode.js +0 -0
- package/{esm/modules → modules}/component/vdom.js +106 -130
- package/{esm/modules → modules}/demo-module.js +15 -7
- package/{esm/modules → modules}/device/device.js +12 -11
- package/{esm/modules → modules}/history/history.js +2 -1
- package/{esm/modules → modules}/request/request.js +2 -2
- package/modules/resize/resize.js +65 -0
- package/{esm/modules → modules}/router/app-router-check.js +1 -1
- package/{esm/modules → modules}/router/async-component.js +3 -3
- package/{esm/modules → modules}/router/back.js +117 -117
- package/{esm/modules → modules}/router/clear-previous-history.js +8 -8
- package/modules/router/component-loader.js +174 -0
- package/{esm/modules → modules}/router/modal.js +49 -49
- package/{esm/modules → modules}/router/navigate.js +140 -221
- package/{esm/modules → modules}/router/process-route-queue.js +20 -17
- package/{esm/modules → modules}/router/redirect.js +7 -11
- package/{esm/modules → modules}/router/router-class.js +411 -432
- package/{esm/modules → modules}/router/router.js +5 -3
- package/{esm/modules → modules}/router/swipe-back.js +143 -177
- package/{esm/modules → modules}/router/tab.js +46 -46
- package/{esm/modules → modules}/service-worker/service-worker.js +41 -37
- package/modules/store/create-store.js +149 -0
- package/{esm/modules → modules}/store/store.js +2 -2
- package/{esm/modules → modules}/support/support.js +1 -1
- package/{esm/modules → modules}/touch/touch.js +71 -70
- package/{esm/modules → modules}/utils/utils.js +2 -2
- package/package.json +252 -11
- package/shared/$jsx.js +22 -0
- package/shared/class.js +143 -0
- package/shared/constructor-methods.js +42 -0
- package/{esm/shared → shared}/dom7.js +2 -1
- package/shared/events-class.js +100 -0
- package/{types/shared → shared}/get-device.d.ts +0 -0
- package/{esm/shared → shared}/get-device.js +32 -37
- package/{types/shared → shared}/get-support.d.ts +0 -0
- package/{esm/shared → shared}/get-support.js +7 -6
- package/{esm/shared → shared}/history.js +61 -47
- package/shared/modal-methods.js +90 -0
- package/{types/shared → shared}/request.d.ts +0 -0
- package/shared/request.js +474 -0
- package/{types/shared → shared}/utils.d.ts +0 -0
- package/{esm/shared → shared}/utils.js +125 -162
- package/bundle/package.json +0 -8
- package/cjs/components/accordion/accordion.js +0 -136
- package/cjs/components/actions/actions-class.js +0 -383
- package/cjs/components/actions/actions.js +0 -58
- package/cjs/components/app/app-class.js +0 -378
- package/cjs/components/app/load-module.js +0 -155
- package/cjs/components/appbar/appbar.js +0 -8
- package/cjs/components/area-chart/area-chart-class.js +0 -526
- package/cjs/components/area-chart/area-chart.js +0 -56
- package/cjs/components/autocomplete/autocomplete-class.js +0 -975
- package/cjs/components/autocomplete/autocomplete.js +0 -93
- package/cjs/components/badge/badge.js +0 -8
- package/cjs/components/block/block.js +0 -8
- package/cjs/components/button/button.js +0 -8
- package/cjs/components/calendar/calendar-class.js +0 -2078
- package/cjs/components/calendar/calendar.js +0 -124
- package/cjs/components/card/card.js +0 -625
- package/cjs/components/checkbox/checkbox.js +0 -8
- package/cjs/components/chip/chip.js +0 -8
- package/cjs/components/color-picker/color-picker-class.js +0 -1022
- package/cjs/components/color-picker/color-picker.js +0 -105
- package/cjs/components/color-picker/modules/alpha-slider.js +0 -101
- package/cjs/components/color-picker/modules/brightness-slider.js +0 -86
- package/cjs/components/color-picker/modules/current-color.js +0 -23
- package/cjs/components/color-picker/modules/hex.js +0 -81
- package/cjs/components/color-picker/modules/hs-spectrum.js +0 -137
- package/cjs/components/color-picker/modules/hsb-sliders.js +0 -206
- package/cjs/components/color-picker/modules/hue-slider.js +0 -78
- package/cjs/components/color-picker/modules/initial-current-colors.js +0 -54
- package/cjs/components/color-picker/modules/palette.js +0 -61
- package/cjs/components/color-picker/modules/rgb-bars.js +0 -196
- package/cjs/components/color-picker/modules/rgb-sliders.js +0 -198
- package/cjs/components/color-picker/modules/sb-spectrum.js +0 -137
- package/cjs/components/color-picker/modules/wheel.js +0 -198
- package/cjs/components/contacts-list/contacts-list.js +0 -8
- package/cjs/components/data-table/data-table-class.js +0 -188
- package/cjs/components/data-table/data-table.js +0 -75
- package/cjs/components/dialog/dialog-class.js +0 -250
- package/cjs/components/dialog/dialog.js +0 -297
- package/cjs/components/elevation/elevation.js +0 -8
- package/cjs/components/fab/fab.js +0 -195
- package/cjs/components/form/form.js +0 -341
- package/cjs/components/gauge/gauge-class.js +0 -332
- package/cjs/components/gauge/gauge.js +0 -103
- package/cjs/components/grid/grid.js +0 -233
- package/cjs/components/icon/icon.js +0 -8
- package/cjs/components/infinite-scroll/infinite-scroll.js +0 -111
- package/cjs/components/input/input.js +0 -396
- package/cjs/components/lazy/lazy.js +0 -283
- package/cjs/components/link/link.js +0 -8
- package/cjs/components/list/list.js +0 -8
- package/cjs/components/list-index/list-index-class.js +0 -405
- package/cjs/components/list-index/list-index.js +0 -77
- package/cjs/components/login-screen/login-screen-class.js +0 -68
- package/cjs/components/login-screen/login-screen.js +0 -44
- package/cjs/components/menu/menu.js +0 -92
- package/cjs/components/messagebar/messagebar-class.js +0 -446
- package/cjs/components/messagebar/messagebar.js +0 -78
- package/cjs/components/messages/messages-class.js +0 -633
- package/cjs/components/messages/messages.js +0 -76
- package/cjs/components/modal/custom-modal-class.js +0 -99
- package/cjs/components/modal/modal-class.js +0 -277
- package/cjs/components/modal/modal.js +0 -32
- package/cjs/components/navbar/navbar.js +0 -833
- package/cjs/components/notification/notification-class.js +0 -269
- package/cjs/components/notification/notification.js +0 -44
- package/cjs/components/page/page.js +0 -8
- package/cjs/components/panel/panel-class.js +0 -660
- package/cjs/components/panel/panel.js +0 -219
- package/cjs/components/panel/resizable-panel.js +0 -197
- package/cjs/components/panel/swipe-panel.js +0 -363
- package/cjs/components/photo-browser/photo-browser-class.js +0 -781
- package/cjs/components/photo-browser/photo-browser.js +0 -78
- package/cjs/components/picker/picker-class.js +0 -704
- package/cjs/components/picker/picker-column.js +0 -389
- package/cjs/components/picker/picker.js +0 -77
- package/cjs/components/pie-chart/pie-chart-class.js +0 -290
- package/cjs/components/pie-chart/pie-chart.js +0 -44
- package/cjs/components/popover/popover-class.js +0 -365
- package/cjs/components/popover/popover.js +0 -93
- package/cjs/components/popup/popup-class.js +0 -416
- package/cjs/components/popup/popup.js +0 -57
- package/cjs/components/preloader/preloader.js +0 -111
- package/cjs/components/progressbar/progressbar.js +0 -185
- package/cjs/components/pull-to-refresh/pull-to-refresh-class.js +0 -627
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +0 -74
- package/cjs/components/radio/radio.js +0 -8
- package/cjs/components/range/range-class.js +0 -674
- package/cjs/components/range/range.js +0 -93
- package/cjs/components/searchbar/remove-diacritics.js +0 -283
- package/cjs/components/searchbar/searchbar-class.js +0 -739
- package/cjs/components/searchbar/searchbar.js +0 -141
- package/cjs/components/sheet/sheet-class.js +0 -583
- package/cjs/components/sheet/sheet.js +0 -83
- package/cjs/components/skeleton/skeleton.js +0 -8
- package/cjs/components/smart-select/smart-select-class.js +0 -1005
- package/cjs/components/smart-select/smart-select.js +0 -151
- package/cjs/components/sortable/sortable.js +0 -322
- package/cjs/components/statusbar/statusbar.js +0 -226
- package/cjs/components/stepper/stepper-class.js +0 -497
- package/cjs/components/stepper/stepper.js +0 -96
- package/cjs/components/subnavbar/subnavbar.js +0 -28
- package/cjs/components/swipeout/swipeout.js +0 -618
- package/cjs/components/swiper/swiper.js +0 -189
- package/cjs/components/tabs/tabs.js +0 -296
- package/cjs/components/text-editor/text-editor-class.js +0 -627
- package/cjs/components/text-editor/text-editor.js +0 -93
- package/cjs/components/timeline/timeline.js +0 -8
- package/cjs/components/toast/toast-class.js +0 -142
- package/cjs/components/toast/toast.js +0 -51
- package/cjs/components/toggle/toggle-class.js +0 -213
- package/cjs/components/toggle/toggle.js +0 -72
- package/cjs/components/toolbar/toolbar.js +0 -234
- package/cjs/components/tooltip/tooltip-class.js +0 -409
- package/cjs/components/tooltip/tooltip.js +0 -146
- package/cjs/components/touch-ripple/touch-ripple-class.js +0 -110
- package/cjs/components/touch-ripple/touch-ripple.js +0 -34
- package/cjs/components/treeview/treeview.js +0 -88
- package/cjs/components/typography/typography.js +0 -8
- package/cjs/components/view/resizable-view.js +0 -155
- package/cjs/components/view/view-class.js +0 -251
- package/cjs/components/view/view.js +0 -196
- package/cjs/components/virtual-list/virtual-list-class.js +0 -654
- package/cjs/components/virtual-list/virtual-list.js +0 -27
- package/cjs/framework7-bundle.js +0 -208
- package/cjs/framework7-lite-bundle.js +0 -191
- package/cjs/framework7-lite.js +0 -87
- package/cjs/framework7.js +0 -98
- package/cjs/modules/clicks/clicks.js +0 -115
- package/cjs/modules/component/$h.js +0 -31
- package/cjs/modules/component/$jsx.js +0 -31
- package/cjs/modules/component/component-class.js +0 -415
- package/cjs/modules/component/component.js +0 -58
- package/cjs/modules/component/custom-components.js +0 -6
- package/cjs/modules/component/eventslisteners.js +0 -90
- package/cjs/modules/component/parse-component.js +0 -80
- package/cjs/modules/component/patch.js +0 -21
- package/cjs/modules/component/snabbdom/h.js +0 -72
- package/cjs/modules/component/snabbdom/helpers/attachto.js +0 -62
- package/cjs/modules/component/snabbdom/hooks.js +0 -1
- package/cjs/modules/component/snabbdom/htmldomapi.js +0 -90
- package/cjs/modules/component/snabbdom/is.js +0 -11
- package/cjs/modules/component/snabbdom/modules/attributes.js +0 -61
- package/cjs/modules/component/snabbdom/modules/class.js +0 -38
- package/cjs/modules/component/snabbdom/modules/dataset.js +0 -47
- package/cjs/modules/component/snabbdom/modules/eventlisteners.js +0 -106
- package/cjs/modules/component/snabbdom/modules/hero.js +0 -193
- package/cjs/modules/component/snabbdom/modules/module.js +0 -1
- package/cjs/modules/component/snabbdom/modules/props.js +0 -40
- package/cjs/modules/component/snabbdom/modules/style.js +0 -116
- package/cjs/modules/component/snabbdom/snabbdom.bundle.js +0 -33
- package/cjs/modules/component/snabbdom/snabbdom.js +0 -374
- package/cjs/modules/component/snabbdom/thunk.js +0 -66
- package/cjs/modules/component/snabbdom/tovnode.js +0 -57
- package/cjs/modules/component/snabbdom/vnode.js +0 -20
- package/cjs/modules/component/vdom.js +0 -393
- package/cjs/modules/demo-module.js +0 -49
- package/cjs/modules/device/device.js +0 -56
- package/cjs/modules/history/history.js +0 -21
- package/cjs/modules/request/request.js +0 -20
- package/cjs/modules/resize/resize.js +0 -72
- package/cjs/modules/router/app-router-check.js +0 -10
- package/cjs/modules/router/async-component.js +0 -33
- package/cjs/modules/router/back.js +0 -899
- package/cjs/modules/router/clear-previous-history.js +0 -50
- package/cjs/modules/router/component-loader.js +0 -140
- package/cjs/modules/router/modal.js +0 -254
- package/cjs/modules/router/navigate.js +0 -1054
- package/cjs/modules/router/process-route-queue.js +0 -80
- package/cjs/modules/router/redirect.js +0 -52
- package/cjs/modules/router/router-class.js +0 -1500
- package/cjs/modules/router/router.js +0 -36
- package/cjs/modules/router/swipe-back.js +0 -735
- package/cjs/modules/router/tab.js +0 -264
- package/cjs/modules/service-worker/service-worker.js +0 -101
- package/cjs/modules/store/create-store.js +0 -169
- package/cjs/modules/store/store.js +0 -21
- package/cjs/modules/support/support.js +0 -14
- package/cjs/modules/touch/touch.js +0 -585
- package/cjs/modules/utils/utils.js +0 -21
- package/cjs/shared/$jsx.js +0 -39
- package/cjs/shared/class.js +0 -206
- package/cjs/shared/constructor-methods.js +0 -73
- package/cjs/shared/dom7.js +0 -17
- package/cjs/shared/events-class.js +0 -125
- package/cjs/shared/get-device.js +0 -157
- package/cjs/shared/get-support.js +0 -44
- package/cjs/shared/history.js +0 -185
- package/cjs/shared/modal-methods.js +0 -105
- package/cjs/shared/request.js +0 -552
- package/cjs/shared/utils.js +0 -472
- package/components/accordion/package.json +0 -9
- package/components/actions/package.json +0 -9
- package/components/app/package.json +0 -9
- package/components/appbar/package.json +0 -9
- package/components/area-chart/package.json +0 -9
- package/components/autocomplete/package.json +0 -9
- package/components/badge/package.json +0 -9
- package/components/block/package.json +0 -9
- package/components/button/package.json +0 -9
- package/components/calendar/package.json +0 -9
- package/components/card/package.json +0 -9
- package/components/checkbox/package.json +0 -9
- package/components/chip/package.json +0 -9
- package/components/color-picker/package.json +0 -9
- package/components/contacts-list/package.json +0 -9
- package/components/data-table/package.json +0 -9
- package/components/dialog/package.json +0 -9
- package/components/elevation/package.json +0 -9
- package/components/fab/package.json +0 -9
- package/components/form/package.json +0 -9
- package/components/gauge/package.json +0 -9
- package/components/grid/package.json +0 -9
- package/components/icon/package.json +0 -9
- package/components/infinite-scroll/package.json +0 -9
- package/components/input/package.json +0 -9
- package/components/lazy/package.json +0 -9
- package/components/link/package.json +0 -9
- package/components/list/package.json +0 -9
- package/components/list-index/package.json +0 -9
- package/components/login-screen/package.json +0 -9
- package/components/menu/package.json +0 -9
- package/components/messagebar/package.json +0 -9
- package/components/messages/package.json +0 -9
- package/components/modal/package.json +0 -9
- package/components/navbar/package.json +0 -9
- package/components/notification/package.json +0 -9
- package/components/page/package.json +0 -9
- package/components/panel/package.json +0 -9
- package/components/photo-browser/package.json +0 -9
- package/components/picker/package.json +0 -9
- package/components/pie-chart/package.json +0 -9
- package/components/popover/package.json +0 -9
- package/components/popup/package.json +0 -9
- package/components/preloader/package.json +0 -9
- package/components/progressbar/package.json +0 -9
- package/components/pull-to-refresh/package.json +0 -9
- package/components/radio/package.json +0 -9
- package/components/range/package.json +0 -9
- package/components/searchbar/package.json +0 -9
- package/components/sheet/package.json +0 -9
- package/components/skeleton/package.json +0 -9
- package/components/smart-select/package.json +0 -9
- package/components/sortable/package.json +0 -9
- package/components/statusbar/package.json +0 -9
- package/components/stepper/package.json +0 -9
- package/components/subnavbar/package.json +0 -9
- package/components/swipeout/package.json +0 -9
- package/components/swiper/package.json +0 -9
- package/components/tabs/package.json +0 -9
- package/components/text-editor/package.json +0 -9
- package/components/timeline/package.json +0 -9
- package/components/toast/package.json +0 -9
- package/components/toggle/package.json +0 -9
- package/components/toolbar/package.json +0 -9
- package/components/tooltip/package.json +0 -9
- package/components/touch-ripple/package.json +0 -9
- package/components/treeview/package.json +0 -9
- package/components/typography/package.json +0 -9
- package/components/view/package.json +0 -9
- package/components/virtual-list/package.json +0 -9
- package/core/package.json +0 -8
- package/esm/components/accordion/accordion.js +0 -126
- package/esm/components/actions/actions-class.js +0 -373
- package/esm/components/actions/actions.js +0 -48
- package/esm/components/appbar/appbar.js +0 -3
- package/esm/components/area-chart/area-chart-class.js +0 -517
- package/esm/components/area-chart/area-chart.js +0 -45
- package/esm/components/autocomplete/autocomplete.js +0 -82
- package/esm/components/calendar/calendar.js +0 -113
- package/esm/components/card/card.js +0 -612
- package/esm/components/checkbox/checkbox.js +0 -3
- package/esm/components/chip/chip.js +0 -3
- package/esm/components/color-picker/color-picker.js +0 -94
- package/esm/components/contacts-list/contacts-list.js +0 -3
- package/esm/components/data-table/data-table.js +0 -64
- package/esm/components/dialog/dialog.js +0 -286
- package/esm/components/elevation/elevation.js +0 -3
- package/esm/components/fab/fab.js +0 -185
- package/esm/components/form/form.js +0 -330
- package/esm/components/gauge/gauge-class.js +0 -323
- package/esm/components/gauge/gauge.js +0 -91
- package/esm/components/grid/grid.js +0 -223
- package/esm/components/infinite-scroll/infinite-scroll.js +0 -101
- package/esm/components/input/input.js +0 -384
- package/esm/components/lazy/lazy.js +0 -271
- package/esm/components/list-index/list-index.js +0 -65
- package/esm/components/login-screen/login-screen-class.js +0 -58
- package/esm/components/login-screen/login-screen.js +0 -34
- package/esm/components/menu/menu.js +0 -82
- package/esm/components/messagebar/messagebar.js +0 -66
- package/esm/components/messages/messages.js +0 -65
- package/esm/components/notification/notification.js +0 -33
- package/esm/components/panel/panel.js +0 -208
- package/esm/components/photo-browser/photo-browser.js +0 -68
- package/esm/components/picker/picker.js +0 -66
- package/esm/components/pie-chart/pie-chart-class.js +0 -281
- package/esm/components/pie-chart/pie-chart.js +0 -33
- package/esm/components/popover/popover.js +0 -81
- package/esm/components/popup/popup.js +0 -47
- package/esm/components/preloader/preloader.js +0 -101
- package/esm/components/progressbar/progressbar.js +0 -175
- package/esm/components/pull-to-refresh/pull-to-refresh.js +0 -62
- package/esm/components/radio/radio.js +0 -3
- package/esm/components/range/range.js +0 -81
- package/esm/components/searchbar/remove-diacritics.js +0 -277
- package/esm/components/searchbar/searchbar.js +0 -129
- package/esm/components/sheet/sheet.js +0 -71
- package/esm/components/skeleton/skeleton.js +0 -3
- package/esm/components/smart-select/smart-select.js +0 -139
- package/esm/components/sortable/sortable.js +0 -310
- package/esm/components/stepper/stepper.js +0 -84
- package/esm/components/swipeout/swipeout.js +0 -606
- package/esm/components/swiper/swiper.js +0 -177
- package/esm/components/tabs/tabs.js +0 -286
- package/esm/components/text-editor/text-editor.js +0 -81
- package/esm/components/timeline/timeline.js +0 -3
- package/esm/components/toast/toast-class.js +0 -132
- package/esm/components/toast/toast.js +0 -40
- package/esm/components/toggle/toggle.js +0 -61
- package/esm/components/tooltip/tooltip.js +0 -135
- package/esm/components/touch-ripple/touch-ripple-class.js +0 -103
- package/esm/components/touch-ripple/touch-ripple.js +0 -25
- package/esm/components/treeview/treeview.js +0 -78
- package/esm/components/typography/typography.js +0 -3
- package/esm/components/virtual-list/virtual-list.js +0 -17
- package/esm/modules/component/$h.js +0 -20
- package/esm/modules/component/$jsx.js +0 -24
- package/esm/modules/component/component-class.js +0 -402
- package/esm/modules/component/parse-component.js +0 -70
- package/esm/modules/resize/resize.js +0 -64
- package/esm/modules/router/component-loader.js +0 -133
- package/esm/modules/store/create-store.js +0 -164
- package/esm/shared/$jsx.js +0 -33
- package/esm/shared/class.js +0 -197
- package/esm/shared/constructor-methods.js +0 -65
- package/esm/shared/events-class.js +0 -119
- package/esm/shared/modal-methods.js +0 -95
- package/esm/shared/request.js +0 -545
- package/lite/package.json +0 -8
- package/lite-bundle/package.json +0 -8
- package/modules/clicks/package.json +0 -9
- package/modules/component/package.json +0 -9
- package/modules/device/package.json +0 -9
- package/modules/history/package.json +0 -9
- package/modules/request/package.json +0 -9
- package/modules/resize/package.json +0 -9
- package/modules/router/package.json +0 -9
- package/modules/service-worker/package.json +0 -9
- package/modules/store/package.json +0 -9
- package/modules/support/package.json +0 -9
- package/modules/touch/package.json +0 -9
- package/modules/utils/package.json +0 -9
- package/types/components/accordion/accordion.d.ts +0 -55
- package/types/components/actions/actions.d.ts +0 -158
- package/types/components/app/app-class.d.ts +0 -196
- package/types/components/appbar/appbar.d.ts +0 -10
- package/types/components/area-chart/area-chart.d.ts +0 -124
- package/types/components/autocomplete/autocomplete.d.ts +0 -191
- package/types/components/badge/badge.d.ts +0 -10
- package/types/components/block/block.d.ts +0 -10
- package/types/components/button/button.d.ts +0 -10
- package/types/components/calendar/calendar.d.ts +0 -304
- package/types/components/card/card.d.ts +0 -65
- package/types/components/checkbox/checkbox.d.ts +0 -10
- package/types/components/chip/chip.d.ts +0 -10
- package/types/components/color-picker/color-picker.d.ts +0 -229
- package/types/components/contacts-list/contacts-list.d.ts +0 -10
- package/types/components/data-table/data-table.d.ts +0 -57
- package/types/components/dialog/dialog.d.ts +0 -241
- package/types/components/elevation/elevation.d.ts +0 -10
- package/types/components/fab/fab.d.ts +0 -28
- package/types/components/form/form.d.ts +0 -60
- package/types/components/gauge/gauge.d.ts +0 -96
- package/types/components/grid/grid.d.ts +0 -17
- package/types/components/icon/icon.d.ts +0 -10
- package/types/components/infinite-scroll/infinite-scroll.d.ts +0 -23
- package/types/components/input/input.d.ts +0 -56
- package/types/components/lazy/lazy.d.ts +0 -53
- package/types/components/link/link.d.ts +0 -10
- package/types/components/list/list.d.ts +0 -10
- package/types/components/list-index/list-index.d.ts +0 -99
- package/types/components/login-screen/login-screen.d.ts +0 -95
- package/types/components/menu/menu.d.ts +0 -28
- package/types/components/messagebar/messagebar.d.ts +0 -161
- package/types/components/messages/messages.d.ts +0 -158
- package/types/components/modal/modal.d.ts +0 -78
- package/types/components/navbar/navbar.d.ts +0 -75
- package/types/components/notification/notification.d.ts +0 -118
- package/types/components/page/page.d.ts +0 -10
- package/types/components/panel/panel.d.ts +0 -194
- package/types/components/photo-browser/photo-browser.d.ts +0 -194
- package/types/components/picker/picker.d.ts +0 -216
- package/types/components/pie-chart/pie-chart.d.ts +0 -95
- package/types/components/popover/popover.d.ts +0 -127
- package/types/components/popup/popup.d.ts +0 -135
- package/types/components/preloader/preloader.d.ts +0 -18
- package/types/components/progressbar/progressbar.d.ts +0 -27
- package/types/components/pull-to-refresh/pull-to-refresh.d.ts +0 -99
- package/types/components/radio/radio.d.ts +0 -10
- package/types/components/range/range.d.ts +0 -121
- package/types/components/searchbar/searchbar.d.ts +0 -157
- package/types/components/sheet/sheet.d.ts +0 -149
- package/types/components/skeleton/skeleton.d.ts +0 -10
- package/types/components/smart-select/smart-select.d.ts +0 -199
- package/types/components/sortable/sortable.d.ts +0 -46
- package/types/components/statusbar/statusbar.d.ts +0 -50
- package/types/components/stepper/stepper.d.ts +0 -117
- package/types/components/subnavbar/subnavbar.d.ts +0 -11
- package/types/components/swipeout/swipeout.d.ts +0 -68
- package/types/components/swiper/swiper.d.ts +0 -21
- package/types/components/tabs/tabs.d.ts +0 -39
- package/types/components/text-editor/text-editor.d.ts +0 -162
- package/types/components/timeline/timeline.d.ts +0 -10
- package/types/components/toast/toast.d.ts +0 -117
- package/types/components/toggle/toggle.d.ts +0 -69
- package/types/components/toolbar/toolbar.d.ts +0 -43
- package/types/components/tooltip/tooltip.d.ts +0 -101
- package/types/components/touch-ripple/touch-ripple.d.ts +0 -21
- package/types/components/treeview/treeview.d.ts +0 -38
- package/types/components/typography/typography.d.ts +0 -10
- package/types/components/view/view.d.ts +0 -205
- package/types/components/virtual-list/virtual-list.d.ts +0 -138
- package/types/modules/clicks/clicks.d.ts +0 -19
- package/types/modules/component/component.d.ts +0 -94
- package/types/modules/component/snabbdom/h.d.ts +0 -10
- package/types/modules/component/snabbdom/helpers/attachto.d.ts +0 -9
- package/types/modules/component/snabbdom/hooks.d.ts +0 -23
- package/types/modules/component/snabbdom/htmldomapi.d.ts +0 -19
- package/types/modules/component/snabbdom/is.d.ts +0 -2
- package/types/modules/component/snabbdom/modules/attributes.d.ts +0 -4
- package/types/modules/component/snabbdom/modules/class.d.ts +0 -4
- package/types/modules/component/snabbdom/modules/dataset.d.ts +0 -4
- package/types/modules/component/snabbdom/modules/eventlisteners.d.ts +0 -8
- package/types/modules/component/snabbdom/modules/hero.d.ts +0 -6
- package/types/modules/component/snabbdom/modules/module.d.ts +0 -9
- package/types/modules/component/snabbdom/modules/props.d.ts +0 -4
- package/types/modules/component/snabbdom/modules/style.d.ts +0 -7
- package/types/modules/component/snabbdom/snabbdom.bundle.d.ts +0 -5
- package/types/modules/component/snabbdom/snabbdom.d.ts +0 -6
- package/types/modules/component/snabbdom/thunk.d.ts +0 -14
- package/types/modules/component/snabbdom/tovnode.d.ts +0 -4
- package/types/modules/component/snabbdom/vnode.d.ts +0 -36
- package/types/modules/device/device.d.ts +0 -14
- package/types/modules/request/request.d.ts +0 -15
- package/types/modules/resize/resize.d.ts +0 -25
- package/types/modules/router/router.d.ts +0 -356
- package/types/modules/service-worker/service-worker.d.ts +0 -38
- package/types/modules/store/store.d.ts +0 -40
- package/types/modules/support/support.d.ts +0 -15
- package/types/modules/touch/touch.d.ts +0 -62
- package/types/modules/utils/utils.d.ts +0 -15
- package/types/package.json +0 -6
|
@@ -1,781 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
|
|
6
|
-
var _ssrWindow = require("ssr-window");
|
|
7
|
-
|
|
8
|
-
var _dom = _interopRequireDefault(require("../../shared/dom7"));
|
|
9
|
-
|
|
10
|
-
var _utils = require("../../shared/utils");
|
|
11
|
-
|
|
12
|
-
var _class = _interopRequireDefault(require("../../shared/class"));
|
|
13
|
-
|
|
14
|
-
var _$jsx = _interopRequireDefault(require("../../shared/$jsx"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
|
-
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
21
|
-
|
|
22
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23
|
-
|
|
24
|
-
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
25
|
-
|
|
26
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
|
-
|
|
28
|
-
var PhotoBrowser = /*#__PURE__*/function (_Framework7Class) {
|
|
29
|
-
_inheritsLoose(PhotoBrowser, _Framework7Class);
|
|
30
|
-
|
|
31
|
-
function PhotoBrowser(app, params) {
|
|
32
|
-
var _this;
|
|
33
|
-
|
|
34
|
-
if (params === void 0) {
|
|
35
|
-
params = {};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
_this = _Framework7Class.call(this, params, [app]) || this;
|
|
39
|
-
|
|
40
|
-
var pb = _assertThisInitialized(_this);
|
|
41
|
-
|
|
42
|
-
pb.app = app;
|
|
43
|
-
var defaults = (0, _utils.extend)({
|
|
44
|
-
on: {}
|
|
45
|
-
}, app.params.photoBrowser); // Extend defaults with modules params
|
|
46
|
-
|
|
47
|
-
pb.useModulesParams(defaults);
|
|
48
|
-
pb.params = (0, _utils.extend)(defaults, params);
|
|
49
|
-
(0, _utils.extend)(pb, {
|
|
50
|
-
exposed: false,
|
|
51
|
-
opened: false,
|
|
52
|
-
activeIndex: pb.params.swiper.initialSlide,
|
|
53
|
-
url: pb.params.url,
|
|
54
|
-
swipeToClose: {
|
|
55
|
-
allow: true,
|
|
56
|
-
isTouched: false,
|
|
57
|
-
diff: undefined,
|
|
58
|
-
start: undefined,
|
|
59
|
-
current: undefined,
|
|
60
|
-
started: false,
|
|
61
|
-
activeSlide: undefined,
|
|
62
|
-
timeStart: undefined
|
|
63
|
-
}
|
|
64
|
-
}); // Install Modules
|
|
65
|
-
|
|
66
|
-
pb.useModules(); // Init
|
|
67
|
-
|
|
68
|
-
pb.init();
|
|
69
|
-
return _this;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
var _proto = PhotoBrowser.prototype;
|
|
73
|
-
|
|
74
|
-
_proto.onSlideChange = function onSlideChange(swiper) {
|
|
75
|
-
var pb = this;
|
|
76
|
-
pb.activeIndex = swiper.activeIndex;
|
|
77
|
-
var current = swiper.activeIndex + 1;
|
|
78
|
-
var total = pb.params.virtualSlides ? pb.params.photos.length : swiper.slides.length;
|
|
79
|
-
|
|
80
|
-
if (swiper.params.loop) {
|
|
81
|
-
total -= 2;
|
|
82
|
-
current -= swiper.loopedSlides;
|
|
83
|
-
if (current < 1) current = total + current;
|
|
84
|
-
if (current > total) current -= total;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
var $activeSlideEl = pb.params.virtualSlides ? swiper.$wrapperEl.find(".swiper-slide[data-swiper-slide-index=\"" + swiper.activeIndex + "\"]") : swiper.slides.eq(swiper.activeIndex);
|
|
88
|
-
var $previousSlideEl = pb.params.virtualSlides ? swiper.$wrapperEl.find(".swiper-slide[data-swiper-slide-index=\"" + swiper.previousIndex + "\"]") : swiper.slides.eq(swiper.previousIndex);
|
|
89
|
-
var $currentEl = pb.$el.find('.photo-browser-current');
|
|
90
|
-
var $totalEl = pb.$el.find('.photo-browser-total');
|
|
91
|
-
var navbarEl;
|
|
92
|
-
|
|
93
|
-
if (pb.params.type === 'page' && pb.params.navbar && $currentEl.length === 0 && pb.app.theme === 'ios') {
|
|
94
|
-
navbarEl = pb.app.navbar.getElByPage(pb.$el);
|
|
95
|
-
|
|
96
|
-
if (navbarEl) {
|
|
97
|
-
$currentEl = (0, _dom.default)(navbarEl).find('.photo-browser-current');
|
|
98
|
-
$totalEl = (0, _dom.default)(navbarEl).find('.photo-browser-total');
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if ($currentEl.length && $totalEl.length) {
|
|
103
|
-
$currentEl.text(current);
|
|
104
|
-
$totalEl.text(total);
|
|
105
|
-
if (!navbarEl) navbarEl = $currentEl.parents('.navbar')[0];
|
|
106
|
-
|
|
107
|
-
if (navbarEl) {
|
|
108
|
-
pb.app.navbar.size(navbarEl);
|
|
109
|
-
}
|
|
110
|
-
} // Update captions
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
if (pb.captions.length > 0) {
|
|
114
|
-
var captionIndex = swiper.params.loop ? $activeSlideEl.attr('data-swiper-slide-index') : pb.activeIndex;
|
|
115
|
-
pb.$captionsContainerEl.find('.photo-browser-caption-active').removeClass('photo-browser-caption-active');
|
|
116
|
-
pb.$captionsContainerEl.find("[data-caption-index=\"" + captionIndex + "\"]").addClass('photo-browser-caption-active');
|
|
117
|
-
} // Stop Video
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
var previousSlideVideo = $previousSlideEl.find('video');
|
|
121
|
-
|
|
122
|
-
if (previousSlideVideo.length > 0) {
|
|
123
|
-
if ('pause' in previousSlideVideo[0]) previousSlideVideo[0].pause();
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
_proto.onTouchStart = function onTouchStart() {
|
|
128
|
-
var pb = this;
|
|
129
|
-
var swipeToClose = pb.swipeToClose;
|
|
130
|
-
if (!swipeToClose.allow) return;
|
|
131
|
-
swipeToClose.isTouched = true;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
_proto.onTouchMove = function onTouchMove(e) {
|
|
135
|
-
var pb = this;
|
|
136
|
-
var swipeToClose = pb.swipeToClose;
|
|
137
|
-
if (!swipeToClose.isTouched) return;
|
|
138
|
-
|
|
139
|
-
if (!swipeToClose.started) {
|
|
140
|
-
swipeToClose.started = true;
|
|
141
|
-
swipeToClose.start = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
|
|
142
|
-
|
|
143
|
-
if (pb.params.virtualSlides) {
|
|
144
|
-
swipeToClose.activeSlide = pb.swiper.$wrapperEl.children('.swiper-slide-active');
|
|
145
|
-
} else {
|
|
146
|
-
swipeToClose.activeSlide = pb.swiper.slides.eq(pb.swiper.activeIndex);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
swipeToClose.timeStart = (0, _utils.now)();
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
e.preventDefault();
|
|
153
|
-
swipeToClose.current = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
|
|
154
|
-
swipeToClose.diff = swipeToClose.start - swipeToClose.current;
|
|
155
|
-
pb.$el.transition(0).transform("translate3d(0," + -swipeToClose.diff + "px,0)");
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
_proto.onTouchEnd = function onTouchEnd() {
|
|
159
|
-
var pb = this;
|
|
160
|
-
var swipeToClose = pb.swipeToClose;
|
|
161
|
-
swipeToClose.isTouched = false;
|
|
162
|
-
|
|
163
|
-
if (!swipeToClose.started) {
|
|
164
|
-
swipeToClose.started = false;
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
swipeToClose.started = false;
|
|
169
|
-
swipeToClose.allow = false;
|
|
170
|
-
var diff = Math.abs(swipeToClose.diff);
|
|
171
|
-
var timeDiff = new Date().getTime() - swipeToClose.timeStart;
|
|
172
|
-
|
|
173
|
-
if (timeDiff < 300 && diff > 20 || timeDiff >= 300 && diff > 100) {
|
|
174
|
-
(0, _utils.nextTick)(function () {
|
|
175
|
-
if (pb.$el) {
|
|
176
|
-
if (swipeToClose.diff < 0) pb.$el.addClass('swipe-close-to-bottom');else pb.$el.addClass('swipe-close-to-top');
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
pb.emit('local::swipeToClose', pb);
|
|
180
|
-
pb.$el.transform('').transition('');
|
|
181
|
-
pb.close();
|
|
182
|
-
swipeToClose.allow = true;
|
|
183
|
-
});
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
if (diff !== 0) {
|
|
188
|
-
pb.$el.addClass('photo-browser-transitioning').transitionEnd(function () {
|
|
189
|
-
swipeToClose.allow = true;
|
|
190
|
-
pb.$el.removeClass('photo-browser-transitioning');
|
|
191
|
-
});
|
|
192
|
-
} else {
|
|
193
|
-
swipeToClose.allow = true;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
(0, _utils.nextTick)(function () {
|
|
197
|
-
pb.$el.transform('').transition('');
|
|
198
|
-
});
|
|
199
|
-
} // Render Functions
|
|
200
|
-
;
|
|
201
|
-
|
|
202
|
-
_proto.renderNavbar = function renderNavbar() {
|
|
203
|
-
var pb = this;
|
|
204
|
-
if (pb.params.renderNavbar) return pb.params.renderNavbar.call(pb);
|
|
205
|
-
var iconsColor = pb.params.iconsColor;
|
|
206
|
-
if (!pb.params.iconsColor && pb.params.theme === 'dark') iconsColor = 'white';
|
|
207
|
-
var pageBackLinkText = (pb.app.theme === 'ios' || pb.app.theme === 'aurora') && pb.params.pageBackLinkText ? pb.params.pageBackLinkText : '';
|
|
208
|
-
var renderNavbarCount = typeof pb.params.navbarShowCount === 'undefined' ? pb.params.photos.length > 1 : pb.params.navbarShowCount;
|
|
209
|
-
var isPopup = pb.params.type !== 'page';
|
|
210
|
-
return (0, _$jsx.default)("div", {
|
|
211
|
-
class: "navbar navbar-photo-browser " + (pb.params.theme === 'dark' ? 'navbar-photo-browser-dark' : '')
|
|
212
|
-
}, (0, _$jsx.default)("div", {
|
|
213
|
-
class: "navbar-bg"
|
|
214
|
-
}), (0, _$jsx.default)("div", {
|
|
215
|
-
class: "navbar-inner navbar-inner-centered-title sliding"
|
|
216
|
-
}, !isPopup && (0, _$jsx.default)("div", {
|
|
217
|
-
class: "left"
|
|
218
|
-
}, (0, _$jsx.default)("a", {
|
|
219
|
-
class: "link " + (!pageBackLinkText ? 'icon-only' : '') + " back"
|
|
220
|
-
}, (0, _$jsx.default)("i", {
|
|
221
|
-
class: "icon icon-back " + (iconsColor ? "color-" + iconsColor : '')
|
|
222
|
-
}), pageBackLinkText && (0, _$jsx.default)("span", null, pageBackLinkText))), renderNavbarCount && (0, _$jsx.default)("div", {
|
|
223
|
-
class: "title"
|
|
224
|
-
}, (0, _$jsx.default)("span", {
|
|
225
|
-
class: "photo-browser-current"
|
|
226
|
-
}), (0, _$jsx.default)("span", {
|
|
227
|
-
class: "photo-browser-of"
|
|
228
|
-
}, pb.params.navbarOfText), (0, _$jsx.default)("span", {
|
|
229
|
-
class: "photo-browser-total"
|
|
230
|
-
})), isPopup && (0, _$jsx.default)("div", {
|
|
231
|
-
class: "right"
|
|
232
|
-
}, (0, _$jsx.default)("a", {
|
|
233
|
-
class: "link popup-close",
|
|
234
|
-
"data-popup": ".photo-browser-popup"
|
|
235
|
-
}, (0, _$jsx.default)("span", null, pb.params.popupCloseLinkText)))));
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
_proto.renderToolbar = function renderToolbar() {
|
|
239
|
-
var pb = this;
|
|
240
|
-
if (pb.params.renderToolbar) return pb.params.renderToolbar.call(pb);
|
|
241
|
-
var iconsColor = pb.params.iconsColor;
|
|
242
|
-
if (!pb.params.iconsColor && pb.params.theme === 'dark') iconsColor = 'white';
|
|
243
|
-
return (0, _$jsx.default)("div", {
|
|
244
|
-
class: "toolbar toolbar-bottom tabbar"
|
|
245
|
-
}, (0, _$jsx.default)("div", {
|
|
246
|
-
class: "toolbar-inner"
|
|
247
|
-
}, (0, _$jsx.default)("a", {
|
|
248
|
-
class: "link photo-browser-prev"
|
|
249
|
-
}, (0, _$jsx.default)("i", {
|
|
250
|
-
class: "icon icon-back " + (iconsColor ? "color-" + iconsColor : '')
|
|
251
|
-
})), (0, _$jsx.default)("a", {
|
|
252
|
-
class: "link photo-browser-next"
|
|
253
|
-
}, (0, _$jsx.default)("i", {
|
|
254
|
-
class: "icon icon-forward " + (iconsColor ? "color-" + iconsColor : '')
|
|
255
|
-
}))));
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
_proto.renderCaption = function renderCaption(caption, index) {
|
|
259
|
-
var pb = this;
|
|
260
|
-
if (pb.params.renderCaption) return pb.params.renderCaption.call(pb, caption, index);
|
|
261
|
-
return (0, _$jsx.default)("div", {
|
|
262
|
-
class: "photo-browser-caption",
|
|
263
|
-
"data-caption-index": index
|
|
264
|
-
}, caption);
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
_proto.renderObject = function renderObject(photo, index) {
|
|
268
|
-
var pb = this;
|
|
269
|
-
if (pb.params.renderObject) return pb.params.renderObject.call(pb, photo, index);
|
|
270
|
-
return (0, _$jsx.default)("div", {
|
|
271
|
-
class: "photo-browser-slide photo-browser-object-slide swiper-slide",
|
|
272
|
-
"data-swiper-slide-index": index
|
|
273
|
-
}, photo.html ? photo.html : photo);
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
_proto.renderLazyPhoto = function renderLazyPhoto(photo, index) {
|
|
277
|
-
var pb = this;
|
|
278
|
-
if (pb.params.renderLazyPhoto) return pb.params.renderLazyPhoto.call(pb, photo, index);
|
|
279
|
-
return (0, _$jsx.default)("div", {
|
|
280
|
-
class: "photo-browser-slide photo-browser-slide-lazy swiper-slide",
|
|
281
|
-
"data-swiper-slide-index": index
|
|
282
|
-
}, (0, _$jsx.default)("div", {
|
|
283
|
-
class: "swiper-lazy-preloader"
|
|
284
|
-
}), (0, _$jsx.default)("span", {
|
|
285
|
-
class: "swiper-zoom-container"
|
|
286
|
-
}, (0, _$jsx.default)("img", {
|
|
287
|
-
"data-src": photo.url ? photo.url : photo,
|
|
288
|
-
class: "swiper-lazy"
|
|
289
|
-
})));
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
_proto.renderPhoto = function renderPhoto(photo, index) {
|
|
293
|
-
var pb = this;
|
|
294
|
-
if (pb.params.renderPhoto) return pb.params.renderPhoto.call(pb, photo, index);
|
|
295
|
-
return (0, _$jsx.default)("div", {
|
|
296
|
-
class: "photo-browser-slide swiper-slide",
|
|
297
|
-
"data-swiper-slide-index": index
|
|
298
|
-
}, (0, _$jsx.default)("span", {
|
|
299
|
-
class: "swiper-zoom-container"
|
|
300
|
-
}, (0, _$jsx.default)("img", {
|
|
301
|
-
src: photo.url ? photo.url : photo
|
|
302
|
-
})));
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
_proto.render = function render() {
|
|
306
|
-
var pb = this;
|
|
307
|
-
if (pb.params.render) return pb.params.render.call(pb, pb.params);
|
|
308
|
-
return (0, _$jsx.default)("div", {
|
|
309
|
-
class: "photo-browser photo-browser-" + pb.params.theme
|
|
310
|
-
}, (0, _$jsx.default)("div", {
|
|
311
|
-
class: "view"
|
|
312
|
-
}, (0, _$jsx.default)("div", {
|
|
313
|
-
class: "page photo-browser-page photo-browser-page-" + pb.params.theme + " no-toolbar " + (!pb.params.navbar ? 'no-navbar' : ''),
|
|
314
|
-
"data-name": "photo-browser-page"
|
|
315
|
-
}, pb.params.navbar && pb.renderNavbar(), pb.params.toolbar && pb.renderToolbar(), (0, _$jsx.default)("div", {
|
|
316
|
-
class: "photo-browser-captions photo-browser-captions-" + (pb.params.captionsTheme || pb.params.theme)
|
|
317
|
-
}, pb.params.photos.map(function (photo, index) {
|
|
318
|
-
if (photo.caption) return pb.renderCaption(photo.caption, index);
|
|
319
|
-
return '';
|
|
320
|
-
})), (0, _$jsx.default)("div", {
|
|
321
|
-
class: "photo-browser-swiper-container swiper-container"
|
|
322
|
-
}, (0, _$jsx.default)("div", {
|
|
323
|
-
class: "photo-browser-swiper-wrapper swiper-wrapper"
|
|
324
|
-
}, !pb.params.virtualSlides && pb.params.photos.map(function (photo, index) {
|
|
325
|
-
if (photo.html || (typeof photo === 'string' || photo instanceof String) && photo.indexOf('<') >= 0 && photo.indexOf('>') >= 0) {
|
|
326
|
-
return pb.renderObject(photo, index);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
if (pb.params.swiper.lazy === true || pb.params.swiper.lazy && pb.params.swiper.lazy.enabled) {
|
|
330
|
-
return pb.renderLazyPhoto(photo, index);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return pb.renderPhoto(photo, index);
|
|
334
|
-
}))))));
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
_proto.renderStandalone = function renderStandalone() {
|
|
338
|
-
var pb = this;
|
|
339
|
-
if (pb.params.renderStandalone) return pb.params.renderStandalone.call(pb);
|
|
340
|
-
var standaloneHtml = "<div class=\"popup photo-browser-popup photo-browser-standalone popup-tablet-fullscreen\">" + pb.render() + "</div>";
|
|
341
|
-
return standaloneHtml;
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
_proto.renderPage = function renderPage() {
|
|
345
|
-
var pb = this;
|
|
346
|
-
if (pb.params.renderPage) return pb.params.renderPage.call(pb);
|
|
347
|
-
var pageHtml = pb.render();
|
|
348
|
-
return pageHtml;
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
_proto.renderPopup = function renderPopup() {
|
|
352
|
-
var pb = this;
|
|
353
|
-
if (pb.params.renderPopup) return pb.params.renderPopup.call(pb);
|
|
354
|
-
var popupHtml = "<div class=\"popup photo-browser-popup\">" + pb.render() + "</div>";
|
|
355
|
-
return popupHtml;
|
|
356
|
-
} // Callbacks
|
|
357
|
-
;
|
|
358
|
-
|
|
359
|
-
_proto.onOpen = function onOpen(type, el) {
|
|
360
|
-
var pb = this;
|
|
361
|
-
var app = pb.app;
|
|
362
|
-
var $el = (0, _dom.default)(el);
|
|
363
|
-
$el[0].f7PhotoBrowser = pb;
|
|
364
|
-
pb.$el = $el;
|
|
365
|
-
pb.el = $el[0];
|
|
366
|
-
pb.openedIn = type;
|
|
367
|
-
pb.opened = true;
|
|
368
|
-
pb.$swiperContainerEl = pb.$el.find('.photo-browser-swiper-container');
|
|
369
|
-
pb.$swiperWrapperEl = pb.$el.find('.photo-browser-swiper-wrapper');
|
|
370
|
-
pb.slides = pb.$el.find('.photo-browser-slide');
|
|
371
|
-
pb.$captionsContainerEl = pb.$el.find('.photo-browser-captions');
|
|
372
|
-
pb.captions = pb.$el.find('.photo-browser-caption'); // Init Swiper
|
|
373
|
-
|
|
374
|
-
var clickTimeout;
|
|
375
|
-
var swiperParams = (0, _utils.extend)({}, pb.params.swiper, {
|
|
376
|
-
initialSlide: pb.activeIndex,
|
|
377
|
-
on: {
|
|
378
|
-
click: function click(e) {
|
|
379
|
-
clearTimeout(clickTimeout);
|
|
380
|
-
|
|
381
|
-
if (pb.params.exposition) {
|
|
382
|
-
clickTimeout = setTimeout(function () {
|
|
383
|
-
pb.expositionToggle();
|
|
384
|
-
}, 350);
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
pb.emit('local::tap', e);
|
|
388
|
-
pb.emit('local::click', e);
|
|
389
|
-
},
|
|
390
|
-
doubleClick: function doubleClick(e) {
|
|
391
|
-
clearTimeout(clickTimeout);
|
|
392
|
-
pb.emit('local::doubleTap', e);
|
|
393
|
-
pb.emit('local::doubleClick', e);
|
|
394
|
-
},
|
|
395
|
-
slideChange: function slideChange() {
|
|
396
|
-
var swiper = this;
|
|
397
|
-
pb.onSlideChange(swiper);
|
|
398
|
-
|
|
399
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
400
|
-
args[_key] = arguments[_key];
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
pb.emit.apply(pb, ['local::slideChange'].concat(args));
|
|
404
|
-
},
|
|
405
|
-
transitionStart: function transitionStart() {
|
|
406
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
407
|
-
args[_key2] = arguments[_key2];
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
pb.emit.apply(pb, ['local::transitionStart'].concat(args));
|
|
411
|
-
},
|
|
412
|
-
transitionEnd: function transitionEnd() {
|
|
413
|
-
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
414
|
-
args[_key3] = arguments[_key3];
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
pb.emit.apply(pb, ['local::transitionEnd'].concat(args));
|
|
418
|
-
},
|
|
419
|
-
slideChangeTransitionStart: function slideChangeTransitionStart() {
|
|
420
|
-
var swiper = this;
|
|
421
|
-
pb.onSlideChange(swiper);
|
|
422
|
-
|
|
423
|
-
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
424
|
-
args[_key4] = arguments[_key4];
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
pb.emit.apply(pb, ['local::slideChangeTransitionStart'].concat(args));
|
|
428
|
-
},
|
|
429
|
-
slideChangeTransitionEnd: function slideChangeTransitionEnd() {
|
|
430
|
-
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
431
|
-
args[_key5] = arguments[_key5];
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
pb.emit.apply(pb, ['local::slideChangeTransitionEnd'].concat(args));
|
|
435
|
-
},
|
|
436
|
-
lazyImageLoad: function lazyImageLoad() {
|
|
437
|
-
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
438
|
-
args[_key6] = arguments[_key6];
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
pb.emit.apply(pb, ['local::lazyImageLoad'].concat(args));
|
|
442
|
-
},
|
|
443
|
-
lazyImageReady: function lazyImageReady() {
|
|
444
|
-
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
445
|
-
args[_key7] = arguments[_key7];
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
var slideEl = args[0];
|
|
449
|
-
(0, _dom.default)(slideEl).removeClass('photo-browser-slide-lazy');
|
|
450
|
-
pb.emit.apply(pb, ['local::lazyImageReady'].concat(args));
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
});
|
|
454
|
-
|
|
455
|
-
if (pb.params.swipeToClose && pb.params.type !== 'page') {
|
|
456
|
-
(0, _utils.extend)(swiperParams.on, {
|
|
457
|
-
touchStart: function touchStart(swiper, e) {
|
|
458
|
-
pb.onTouchStart(e);
|
|
459
|
-
pb.emit('local::touchStart', e);
|
|
460
|
-
},
|
|
461
|
-
touchMoveOpposite: function touchMoveOpposite(swiper, e) {
|
|
462
|
-
pb.onTouchMove(e);
|
|
463
|
-
pb.emit('local::touchMoveOpposite', e);
|
|
464
|
-
},
|
|
465
|
-
touchEnd: function touchEnd(swiper, e) {
|
|
466
|
-
pb.onTouchEnd(e);
|
|
467
|
-
pb.emit('local::touchEnd', e);
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
if (pb.params.virtualSlides) {
|
|
473
|
-
(0, _utils.extend)(swiperParams, {
|
|
474
|
-
virtual: {
|
|
475
|
-
slides: pb.params.photos,
|
|
476
|
-
renderSlide: function renderSlide(photo, index) {
|
|
477
|
-
if (photo.html || (typeof photo === 'string' || photo instanceof String) && photo.indexOf('<') >= 0 && photo.indexOf('>') >= 0) {
|
|
478
|
-
return pb.renderObject(photo, index);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
if (pb.params.swiper.lazy === true || pb.params.swiper.lazy && pb.params.swiper.lazy.enabled) {
|
|
482
|
-
return pb.renderLazyPhoto(photo, index);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
return pb.renderPhoto(photo, index);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
var window = (0, _ssrWindow.getWindow)();
|
|
492
|
-
pb.swiper = app.swiper ? app.swiper.create(pb.$swiperContainerEl, swiperParams) : new window.Swiper(pb.$swiperContainerEl, swiperParams);
|
|
493
|
-
|
|
494
|
-
if (pb.activeIndex === 0) {
|
|
495
|
-
pb.onSlideChange(pb.swiper);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
if (pb.$el) {
|
|
499
|
-
pb.$el.trigger('photobrowser:open');
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
pb.emit('local::open photoBrowserOpen', pb);
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
_proto.onOpened = function onOpened() {
|
|
506
|
-
var pb = this;
|
|
507
|
-
|
|
508
|
-
if (pb.$el && pb.params.type === 'standalone') {
|
|
509
|
-
pb.$el.css('animation', 'none');
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
if (pb.$el) {
|
|
513
|
-
pb.$el.trigger('photobrowser:opened');
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
pb.emit('local::opened photoBrowserOpened', pb);
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
_proto.onClose = function onClose() {
|
|
520
|
-
var pb = this;
|
|
521
|
-
if (pb.destroyed) return; // Destroy Swiper
|
|
522
|
-
|
|
523
|
-
if (pb.swiper && pb.swiper.destroy) {
|
|
524
|
-
pb.swiper.destroy(true, false);
|
|
525
|
-
pb.swiper = null;
|
|
526
|
-
delete pb.swiper;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
if (pb.$el) {
|
|
530
|
-
pb.$el.trigger('photobrowser:close');
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
pb.emit('local::close photoBrowserClose', pb);
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
_proto.onClosed = function onClosed() {
|
|
537
|
-
var pb = this;
|
|
538
|
-
if (pb.destroyed) return;
|
|
539
|
-
pb.opened = false;
|
|
540
|
-
pb.$el = null;
|
|
541
|
-
pb.el = null;
|
|
542
|
-
delete pb.$el;
|
|
543
|
-
delete pb.el;
|
|
544
|
-
|
|
545
|
-
if (pb.$el) {
|
|
546
|
-
pb.$el.trigger('photobrowser:closed');
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
pb.emit('local::closed photoBrowserClosed', pb);
|
|
550
|
-
} // Open
|
|
551
|
-
;
|
|
552
|
-
|
|
553
|
-
_proto.openPage = function openPage() {
|
|
554
|
-
var pb = this;
|
|
555
|
-
if (pb.opened) return pb;
|
|
556
|
-
var pageHtml = pb.renderPage();
|
|
557
|
-
pb.view.router.navigate({
|
|
558
|
-
url: pb.url,
|
|
559
|
-
route: {
|
|
560
|
-
content: pageHtml,
|
|
561
|
-
path: pb.url,
|
|
562
|
-
on: {
|
|
563
|
-
pageBeforeIn: function pageBeforeIn(e, page) {
|
|
564
|
-
pb.view.$el.addClass("with-photo-browser-page with-photo-browser-page-" + pb.params.theme);
|
|
565
|
-
pb.onOpen('page', page.el);
|
|
566
|
-
},
|
|
567
|
-
pageAfterIn: function pageAfterIn(e, page) {
|
|
568
|
-
pb.onOpened('page', page.el);
|
|
569
|
-
},
|
|
570
|
-
pageBeforeOut: function pageBeforeOut(e, page) {
|
|
571
|
-
pb.view.$el.removeClass("with-photo-browser-page with-photo-browser-page-exposed with-photo-browser-page-" + pb.params.theme);
|
|
572
|
-
pb.onClose('page', page.el);
|
|
573
|
-
},
|
|
574
|
-
pageAfterOut: function pageAfterOut(e, page) {
|
|
575
|
-
pb.onClosed('page', page.el);
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
});
|
|
580
|
-
return pb;
|
|
581
|
-
};
|
|
582
|
-
|
|
583
|
-
_proto.openStandalone = function openStandalone() {
|
|
584
|
-
var pb = this;
|
|
585
|
-
if (pb.opened) return pb;
|
|
586
|
-
var standaloneHtml = pb.renderStandalone();
|
|
587
|
-
var popupParams = {
|
|
588
|
-
backdrop: false,
|
|
589
|
-
content: standaloneHtml,
|
|
590
|
-
on: {
|
|
591
|
-
popupOpen: function popupOpen(popup) {
|
|
592
|
-
pb.onOpen('popup', popup.el);
|
|
593
|
-
},
|
|
594
|
-
popupOpened: function popupOpened(popup) {
|
|
595
|
-
pb.onOpened('popup', popup.el);
|
|
596
|
-
},
|
|
597
|
-
popupClose: function popupClose(popup) {
|
|
598
|
-
pb.onClose('popup', popup.el);
|
|
599
|
-
},
|
|
600
|
-
popupClosed: function popupClosed(popup) {
|
|
601
|
-
pb.onClosed('popup', popup.el);
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
};
|
|
605
|
-
|
|
606
|
-
if (pb.params.routableModals && pb.view) {
|
|
607
|
-
pb.view.router.navigate({
|
|
608
|
-
url: pb.url,
|
|
609
|
-
route: {
|
|
610
|
-
path: pb.url,
|
|
611
|
-
popup: popupParams
|
|
612
|
-
}
|
|
613
|
-
});
|
|
614
|
-
} else {
|
|
615
|
-
pb.modal = pb.app.popup.create(popupParams).open();
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
return pb;
|
|
619
|
-
};
|
|
620
|
-
|
|
621
|
-
_proto.openPopup = function openPopup() {
|
|
622
|
-
var pb = this;
|
|
623
|
-
if (pb.opened) return pb;
|
|
624
|
-
var popupHtml = pb.renderPopup();
|
|
625
|
-
var popupParams = {
|
|
626
|
-
content: popupHtml,
|
|
627
|
-
push: pb.params.popupPush,
|
|
628
|
-
on: {
|
|
629
|
-
popupOpen: function popupOpen(popup) {
|
|
630
|
-
pb.onOpen('popup', popup.el);
|
|
631
|
-
},
|
|
632
|
-
popupOpened: function popupOpened(popup) {
|
|
633
|
-
pb.onOpened('popup', popup.el);
|
|
634
|
-
},
|
|
635
|
-
popupClose: function popupClose(popup) {
|
|
636
|
-
pb.onClose('popup', popup.el);
|
|
637
|
-
},
|
|
638
|
-
popupClosed: function popupClosed(popup) {
|
|
639
|
-
pb.onClosed('popup', popup.el);
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
if (pb.params.routableModals && pb.view) {
|
|
645
|
-
pb.view.router.navigate({
|
|
646
|
-
url: pb.url,
|
|
647
|
-
route: {
|
|
648
|
-
path: pb.url,
|
|
649
|
-
popup: popupParams
|
|
650
|
-
}
|
|
651
|
-
});
|
|
652
|
-
} else {
|
|
653
|
-
pb.modal = pb.app.popup.create(popupParams).open();
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
return pb;
|
|
657
|
-
} // Exposition
|
|
658
|
-
;
|
|
659
|
-
|
|
660
|
-
_proto.expositionEnable = function expositionEnable() {
|
|
661
|
-
var pb = this;
|
|
662
|
-
|
|
663
|
-
if (pb.params.type === 'page') {
|
|
664
|
-
pb.view.$el.addClass('with-photo-browser-page-exposed');
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
if (pb.$el) pb.$el.addClass('photo-browser-exposed');
|
|
668
|
-
if (pb.params.expositionHideCaptions) pb.$captionsContainerEl.addClass('photo-browser-captions-exposed');
|
|
669
|
-
pb.exposed = true;
|
|
670
|
-
return pb;
|
|
671
|
-
};
|
|
672
|
-
|
|
673
|
-
_proto.expositionDisable = function expositionDisable() {
|
|
674
|
-
var pb = this;
|
|
675
|
-
|
|
676
|
-
if (pb.params.type === 'page') {
|
|
677
|
-
pb.view.$el.removeClass('with-photo-browser-page-exposed');
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
if (pb.$el) pb.$el.removeClass('photo-browser-exposed');
|
|
681
|
-
if (pb.params.expositionHideCaptions) pb.$captionsContainerEl.removeClass('photo-browser-captions-exposed');
|
|
682
|
-
pb.exposed = false;
|
|
683
|
-
return pb;
|
|
684
|
-
};
|
|
685
|
-
|
|
686
|
-
_proto.expositionToggle = function expositionToggle() {
|
|
687
|
-
var pb = this;
|
|
688
|
-
|
|
689
|
-
if (pb.params.type === 'page') {
|
|
690
|
-
pb.view.$el.toggleClass('with-photo-browser-page-exposed');
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
if (pb.$el) pb.$el.toggleClass('photo-browser-exposed');
|
|
694
|
-
if (pb.params.expositionHideCaptions) pb.$captionsContainerEl.toggleClass('photo-browser-captions-exposed');
|
|
695
|
-
pb.exposed = !pb.exposed;
|
|
696
|
-
return pb;
|
|
697
|
-
};
|
|
698
|
-
|
|
699
|
-
_proto.open = function open(index) {
|
|
700
|
-
var pb = this;
|
|
701
|
-
var type = pb.params.type;
|
|
702
|
-
|
|
703
|
-
if (pb.opened) {
|
|
704
|
-
if (pb.swiper && typeof index !== 'undefined') {
|
|
705
|
-
pb.swiper.slideTo(parseInt(index, 10));
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
return pb;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
if (typeof index !== 'undefined') {
|
|
712
|
-
pb.activeIndex = index;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
if (type === 'standalone') {
|
|
716
|
-
pb.openStandalone();
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
if (type === 'page') {
|
|
720
|
-
pb.openPage();
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
if (type === 'popup') {
|
|
724
|
-
pb.openPopup();
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
return pb;
|
|
728
|
-
};
|
|
729
|
-
|
|
730
|
-
_proto.close = function close() {
|
|
731
|
-
var pb = this;
|
|
732
|
-
if (!pb.opened) return pb;
|
|
733
|
-
|
|
734
|
-
if (pb.params.routableModals && pb.view || pb.openedIn === 'page') {
|
|
735
|
-
pb.view.router.back();
|
|
736
|
-
} else {
|
|
737
|
-
pb.modal.once('modalClosed', function () {
|
|
738
|
-
(0, _utils.nextTick)(function () {
|
|
739
|
-
if (pb.destroyed) return;
|
|
740
|
-
pb.modal.destroy();
|
|
741
|
-
delete pb.modal;
|
|
742
|
-
});
|
|
743
|
-
});
|
|
744
|
-
pb.modal.close();
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
return pb;
|
|
748
|
-
} // eslint-disable-next-line
|
|
749
|
-
;
|
|
750
|
-
|
|
751
|
-
_proto.init = function init() {};
|
|
752
|
-
|
|
753
|
-
_proto.destroy = function destroy() {
|
|
754
|
-
var pb = this;
|
|
755
|
-
pb.emit('local::beforeDestroy photoBrowserBeforeDestroy', pb);
|
|
756
|
-
|
|
757
|
-
if (pb.$el) {
|
|
758
|
-
pb.$el.trigger('photobrowser:beforedestroy');
|
|
759
|
-
pb.$el[0].f7PhotoBrowser = null;
|
|
760
|
-
delete pb.$el[0].f7PhotoBrowser;
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
(0, _utils.deleteProps)(pb);
|
|
764
|
-
pb.destroyed = true;
|
|
765
|
-
pb = null;
|
|
766
|
-
};
|
|
767
|
-
|
|
768
|
-
_createClass(PhotoBrowser, [{
|
|
769
|
-
key: "view",
|
|
770
|
-
get: function get() {
|
|
771
|
-
var params = this.params,
|
|
772
|
-
app = this.app;
|
|
773
|
-
return params.view || app.views.main;
|
|
774
|
-
}
|
|
775
|
-
}]);
|
|
776
|
-
|
|
777
|
-
return PhotoBrowser;
|
|
778
|
-
}(_class.default);
|
|
779
|
-
|
|
780
|
-
var _default = PhotoBrowser;
|
|
781
|
-
exports.default = _default;
|