framework7 7.0.0-beta.1 → 7.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/accordion.js +2 -2
- package/components/accordion/{accordion.umd.js → accordion.lazy.js} +0 -0
- package/components/actions/actions-class.js +5 -5
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.js +2 -2
- package/components/actions/{actions.umd.js → actions.lazy.js} +0 -0
- package/components/app/app-class.d.ts +10 -10
- package/components/app/app-class.js +28 -28
- package/components/app/app.less +3 -3
- package/components/app/load-module.js +4 -4
- package/components/appbar/{appbar.umd.js → appbar.lazy.js} +0 -0
- package/components/area-chart/area-chart-class.js +4 -4
- 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 +3 -3
- package/components/area-chart/{area-chart.umd.js → area-chart.lazy.js} +0 -0
- package/components/autocomplete/autocomplete-class.js +5 -5
- package/components/autocomplete/autocomplete-rtl.css +1 -1
- package/components/autocomplete/autocomplete.css +1 -1
- package/components/autocomplete/autocomplete.js +3 -3
- package/components/autocomplete/{autocomplete.umd.js → autocomplete.lazy.js} +0 -0
- package/components/calendar/calendar-class.js +6 -6
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar.css +1 -1
- package/components/calendar/calendar.js +3 -3
- package/components/calendar/{calendar.umd.js → calendar.lazy.js} +0 -0
- package/components/card/card-rtl.css +1 -1
- package/components/card/card.css +1 -1
- package/components/card/card.js +4 -4
- package/components/card/{card.umd.js → card.lazy.js} +0 -0
- package/components/checkbox/checkbox-rtl.css +1 -1
- package/components/checkbox/checkbox.css +1 -1
- package/components/checkbox/{checkbox.umd.js → checkbox.lazy.js} +0 -0
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip.css +1 -1
- package/components/chip/{chip.umd.js → chip.lazy.js} +0 -0
- package/components/color-picker/color-picker-class.js +18 -18
- 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 +3 -3
- package/components/color-picker/{color-picker.umd.js → color-picker.lazy.js} +0 -0
- package/components/color-picker/modules/alpha-slider.js +1 -1
- package/components/color-picker/modules/brightness-slider.js +2 -2
- package/components/color-picker/modules/current-color.js +1 -1
- package/components/color-picker/modules/hex.js +1 -1
- package/components/color-picker/modules/hs-spectrum.js +4 -4
- package/components/color-picker/modules/hsb-sliders.js +3 -3
- package/components/color-picker/modules/hue-slider.js +1 -1
- package/components/color-picker/modules/initial-current-colors.js +1 -1
- package/components/color-picker/modules/palette.js +2 -2
- package/components/color-picker/modules/rgb-bars.js +2 -2
- package/components/color-picker/modules/rgb-sliders.js +2 -2
- package/components/color-picker/modules/sb-spectrum.js +3 -3
- package/components/color-picker/modules/wheel.js +3 -3
- 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.umd.js → contacts-list.lazy.js} +0 -0
- package/components/data-table/data-table-class.js +3 -3
- 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 +3 -3
- package/components/data-table/{data-table.umd.js → data-table.lazy.js} +0 -0
- package/components/dialog/dialog-class.js +5 -5
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog.css +1 -1
- package/components/dialog/dialog.js +3 -3
- package/components/dialog/{dialog.umd.js → dialog.lazy.js} +0 -0
- package/components/elevation/{elevation.umd.js → elevation.lazy.js} +0 -0
- package/components/fab/fab.js +2 -2
- package/components/fab/{fab.umd.js → fab.lazy.js} +0 -0
- package/components/form/form.js +2 -2
- package/components/form/{form.umd.js → form.lazy.js} +0 -0
- package/components/gauge/gauge-class.js +4 -4
- package/components/gauge/gauge.js +4 -4
- package/components/gauge/{gauge.umd.js → gauge.lazy.js} +0 -0
- package/components/grid/grid-rtl.css +1 -1
- package/components/grid/grid.css +1 -1
- package/components/grid/grid.js +2 -2
- package/components/grid/{grid.umd.js → grid.lazy.js} +0 -0
- package/components/infinite-scroll/infinite-scroll.js +2 -2
- package/components/infinite-scroll/{infinite-scroll.umd.js → infinite-scroll.lazy.js} +0 -0
- package/components/input/input-rtl.css +1 -1
- package/components/input/input.css +1 -1
- package/components/input/input.js +3 -3
- package/components/input/{input.umd.js → input.lazy.js} +0 -0
- package/components/input/input.less +1 -1
- package/components/lazy/lazy.js +3 -3
- package/components/lazy/{lazy.umd.js → lazy.lazy.js} +0 -0
- package/components/list-index/list-index-class.js +4 -4
- package/components/list-index/list-index.js +4 -4
- package/components/list-index/{list-index.umd.js → list-index.lazy.js} +0 -0
- package/components/login-screen/login-screen-class.js +3 -3
- 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 +2 -2
- package/components/login-screen/{login-screen.umd.js → login-screen.lazy.js} +0 -0
- package/components/login-screen/login-screen.less +1 -1
- package/components/menu/menu.js +2 -2
- package/components/menu/{menu.umd.js → menu.lazy.js} +0 -0
- package/components/messagebar/messagebar-class.js +3 -3
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar.css +1 -1
- package/components/messagebar/messagebar.js +4 -4
- package/components/messagebar/{messagebar.umd.js → messagebar.lazy.js} +0 -0
- package/components/messages/messages-class.js +4 -4
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages.css +1 -1
- package/components/messages/messages.js +3 -3
- package/components/messages/{messages.umd.js → messages.lazy.js} +0 -0
- package/components/modal/custom-modal-class.js +3 -3
- package/components/modal/modal-class.js +3 -3
- package/components/modal/modal.js +2 -2
- package/components/navbar/navbar.js +3 -3
- package/components/notification/notification-aurora.less +1 -1
- package/components/notification/notification-class.js +4 -4
- 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 +3 -3
- package/components/notification/{notification.umd.js → notification.lazy.js} +0 -0
- package/components/page/page-vars.less +1 -1
- package/components/panel/panel-class.js +5 -5
- package/components/panel/panel.js +3 -3
- package/components/panel/{panel.umd.js → panel.lazy.js} +0 -0
- package/components/panel/resizable-panel.js +3 -3
- package/components/panel/swipe-panel.js +2 -2
- package/components/photo-browser/photo-browser-class.js +4 -4
- package/components/photo-browser/photo-browser.js +2 -2
- package/components/photo-browser/{photo-browser.umd.js → photo-browser.lazy.js} +0 -0
- package/components/picker/picker-class.js +6 -6
- package/components/picker/picker-column.js +3 -3
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker.css +1 -1
- package/components/picker/picker.js +3 -3
- package/components/picker/{picker.umd.js → picker.lazy.js} +0 -0
- package/components/pie-chart/pie-chart-class.js +4 -4
- package/components/pie-chart/pie-chart.js +3 -3
- package/components/pie-chart/{pie-chart.umd.js → pie-chart.lazy.js} +0 -0
- package/components/popover/popover-class.js +4 -4
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.js +4 -4
- package/components/popover/{popover.umd.js → popover.lazy.js} +0 -0
- package/components/popup/popup-class.js +5 -5
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.js +2 -2
- package/components/popup/{popup.umd.js → popup.lazy.js} +0 -0
- package/components/popup/popup.less +21 -21
- package/components/preloader/preloader.js +2 -2
- package/components/preloader/{preloader.umd.js → preloader.lazy.js} +0 -0
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar.css +1 -1
- package/components/progressbar/progressbar.js +2 -2
- package/components/progressbar/{progressbar.umd.js → progressbar.lazy.js} +0 -0
- package/components/pull-to-refresh/pull-to-refresh-class.js +5 -5
- package/components/pull-to-refresh/pull-to-refresh.js +4 -4
- package/components/pull-to-refresh/{pull-to-refresh.umd.js → pull-to-refresh.lazy.js} +0 -0
- package/components/radio/radio-rtl.css +1 -1
- package/components/radio/radio.css +1 -1
- package/components/radio/{radio.umd.js → radio.lazy.js} +0 -0
- package/components/range/range-class.js +4 -4
- package/components/range/range.js +4 -4
- package/components/range/{range.umd.js → range.lazy.js} +0 -0
- package/components/searchbar/searchbar-class.js +5 -5
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar.css +1 -1
- package/components/searchbar/searchbar.js +4 -4
- package/components/searchbar/{searchbar.umd.js → searchbar.lazy.js} +0 -0
- package/components/searchbar/searchbar.less +1 -1
- package/components/sheet/sheet-class.js +5 -5
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet.css +1 -1
- package/components/sheet/sheet.js +4 -4
- package/components/sheet/{sheet.umd.js → sheet.lazy.js} +0 -0
- package/components/sheet/sheet.less +16 -16
- 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.umd.js → skeleton.lazy.js} +0 -0
- package/components/smart-select/smart-select-class.js +4 -4
- package/components/smart-select/smart-select.js +4 -4
- package/components/smart-select/{smart-select.umd.js → smart-select.lazy.js} +0 -0
- package/components/sortable/sortable-rtl.css +1 -1
- package/components/sortable/sortable.css +1 -1
- package/components/sortable/sortable.js +3 -3
- package/components/sortable/{sortable.umd.js → sortable.lazy.js} +0 -0
- package/components/statusbar/statusbar.js +3 -3
- package/components/stepper/stepper-class.js +3 -3
- package/components/stepper/stepper.js +4 -4
- package/components/stepper/{stepper.umd.js → stepper.lazy.js} +0 -0
- package/components/subnavbar/subnavbar.js +1 -1
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout.css +1 -1
- package/components/swipeout/swipeout.js +3 -3
- package/components/swipeout/{swipeout.umd.js → swipeout.lazy.js} +0 -0
- package/components/swiper/swiper.js +2 -2
- package/components/swiper/{swiper.umd.js → swiper.lazy.js} +0 -0
- package/components/tabs/tabs.js +2 -2
- package/components/tabs/{tabs.umd.js → tabs.lazy.js} +0 -0
- package/components/text-editor/text-editor-class.js +5 -5
- 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 +4 -4
- package/components/text-editor/{text-editor.umd.js → text-editor.lazy.js} +1 -1
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline.css +1 -1
- package/components/timeline/{timeline.umd.js → timeline.lazy.js} +0 -0
- package/components/toast/toast-class.js +4 -4
- package/components/toast/toast.js +3 -3
- package/components/toast/{toast.umd.js → toast.lazy.js} +0 -0
- package/components/toggle/toggle-class.js +4 -4
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle.css +1 -1
- package/components/toggle/toggle.js +3 -3
- package/components/toggle/{toggle.umd.js → toggle.lazy.js} +0 -0
- package/components/toolbar/toolbar.js +2 -2
- package/components/tooltip/tooltip-class.js +4 -4
- package/components/tooltip/tooltip.js +3 -3
- package/components/tooltip/{tooltip.umd.js → tooltip.lazy.js} +0 -0
- package/components/touch-ripple/touch-ripple-class.js +1 -1
- package/components/touch-ripple/touch-ripple-vars.less +1 -1
- package/components/touch-ripple/touch-ripple.js +1 -1
- package/components/treeview/treeview-rtl.css +1 -1
- package/components/treeview/treeview.css +1 -1
- package/components/treeview/treeview.js +2 -2
- package/components/treeview/{treeview.umd.js → treeview.lazy.js} +0 -0
- package/components/typography/{typography.umd.js → typography.lazy.js} +0 -0
- package/components/view/resizable-view.js +3 -3
- package/components/view/view-class.js +5 -5
- package/components/view/view.js +3 -3
- package/components/virtual-list/virtual-list-class.js +4 -4
- package/components/virtual-list/virtual-list.js +2 -2
- package/components/virtual-list/{virtual-list.umd.js → virtual-list.lazy.js} +0 -0
- package/framework7-bundle-rtl.css +263 -263
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +263 -263
- package/framework7-bundle.esm.js +84 -84
- package/framework7-bundle.js +71 -71
- 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/framework7-lite-bundle.esm.js +78 -78
- package/framework7-lite.esm.js +26 -26
- package/framework7-rtl.css +51 -51
- package/framework7-rtl.min.css +3 -3
- package/framework7.css +51 -51
- package/framework7.esm.js +29 -29
- package/framework7.js +70 -70
- 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/modules/clicks/clicks.js +2 -2
- package/modules/component/$h.js +1 -1
- package/modules/component/$jsx.js +1 -1
- package/modules/component/component-class.js +5 -5
- package/modules/component/component.js +4 -4
- package/modules/component/eventslisteners.js +1 -1
- package/modules/component/parse-component.js +2 -2
- package/modules/component/patch.js +5 -5
- package/modules/component/snabbdom/h.js +1 -1
- package/modules/component/snabbdom/snabbdom.bundle.js +7 -7
- package/modules/component/snabbdom/snabbdom.js +3 -3
- package/modules/component/snabbdom/thunk.js +1 -1
- package/modules/component/snabbdom/tovnode.js +2 -2
- package/modules/component/vdom.js +3 -3
- package/modules/device/device.js +1 -1
- package/modules/history/history.js +1 -1
- package/modules/request/request.js +1 -1
- package/modules/resize/resize.js +1 -1
- package/modules/router/back.js +8 -8
- package/modules/router/clear-previous-history.js +2 -2
- package/modules/router/component-loader.js +47 -1
- package/modules/router/modal.js +3 -3
- package/modules/router/navigate.js +8 -54
- package/modules/router/redirect.js +1 -1
- package/modules/router/router-class.js +11 -11
- package/modules/router/router.js +1 -1
- package/modules/router/swipe-back.js +5 -5
- package/modules/router/tab.js +4 -4
- package/modules/service-worker/service-worker.js +1 -1
- package/modules/store/create-store.js +1 -1
- package/modules/store/store.js +1 -1
- package/modules/support/support.js +1 -1
- package/modules/touch/touch.js +4 -4
- package/modules/utils/utils.js +1 -1
- package/package.json +2 -1
- package/shared/class.js +2 -2
- package/shared/constructor-methods.js +1 -1
- package/shared/get-device.js +1 -1
- package/shared/history.js +2 -2
- package/shared/modal-methods.js +3 -3
- package/shared/request.js +1 -1
package/framework7-bundle.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 7.0.0-beta.
|
|
2
|
+
* Framework7 7.0.0-beta.5
|
|
3
3
|
* Full featured mobile HTML framework for building iOS & Android apps
|
|
4
4
|
* https://framework7.io/
|
|
5
5
|
*
|
|
@@ -7,91 +7,91 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on: October
|
|
10
|
+
* Released on: October 13, 2021
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import $ from './shared/dom7';
|
|
14
|
-
import Framework7 from './components/app/app-class';
|
|
15
|
-
import request from './shared/request';
|
|
16
|
-
import * as utils from './shared/utils';
|
|
17
|
-
import { getSupport } from './shared/get-support';
|
|
18
|
-
import { getDevice } from './shared/get-device';
|
|
19
|
-
import DeviceModule from './modules/device/device';
|
|
20
|
-
import SupportModule from './modules/support/support';
|
|
21
|
-
import UtilsModule from './modules/utils/utils';
|
|
22
|
-
import ResizeModule from './modules/resize/resize';
|
|
23
|
-
import RequestModule from './modules/request/request';
|
|
24
|
-
import TouchModule from './modules/touch/touch';
|
|
25
|
-
import ClicksModule from './modules/clicks/clicks';
|
|
26
|
-
import RouterModule from './modules/router/router';
|
|
27
|
-
import RouterComponentLoaderModule from './modules/router/component-loader';
|
|
28
|
-
import ComponentModule, { Component, $jsx } from './modules/component/component';
|
|
29
|
-
import HistoryModule from './modules/history/history';
|
|
30
|
-
import ServiceWorkerModule from './modules/service-worker/service-worker';
|
|
31
|
-
import StoreModule, { createStore } from './modules/store/store';
|
|
32
|
-
import Statusbar from './components/statusbar/statusbar';
|
|
33
|
-
import View from './components/view/view';
|
|
34
|
-
import Navbar from './components/navbar/navbar';
|
|
35
|
-
import Toolbar from './components/toolbar/toolbar';
|
|
36
|
-
import Subnavbar from './components/subnavbar/subnavbar';
|
|
37
|
-
import TouchRipple from './components/touch-ripple/touch-ripple';
|
|
38
|
-
import Modal from './components/modal/modal';
|
|
39
|
-
import Router from './modules/router/router-class';
|
|
40
|
-
import Appbar from './components/appbar/appbar';
|
|
41
|
-
import Dialog from './components/dialog/dialog';
|
|
42
|
-
import Popup from './components/popup/popup';
|
|
43
|
-
import LoginScreen from './components/login-screen/login-screen';
|
|
44
|
-
import Popover from './components/popover/popover';
|
|
45
|
-
import Actions from './components/actions/actions';
|
|
46
|
-
import Sheet from './components/sheet/sheet';
|
|
47
|
-
import Toast from './components/toast/toast';
|
|
48
|
-
import Preloader from './components/preloader/preloader';
|
|
49
|
-
import Progressbar from './components/progressbar/progressbar';
|
|
50
|
-
import Sortable from './components/sortable/sortable';
|
|
51
|
-
import Swipeout from './components/swipeout/swipeout';
|
|
52
|
-
import Accordion from './components/accordion/accordion';
|
|
53
|
-
import ContactsList from './components/contacts-list/contacts-list';
|
|
54
|
-
import VirtualList from './components/virtual-list/virtual-list';
|
|
55
|
-
import ListIndex from './components/list-index/list-index';
|
|
56
|
-
import Timeline from './components/timeline/timeline';
|
|
57
|
-
import Tabs from './components/tabs/tabs';
|
|
58
|
-
import Panel from './components/panel/panel';
|
|
59
|
-
import Card from './components/card/card';
|
|
60
|
-
import Chip from './components/chip/chip';
|
|
61
|
-
import Form from './components/form/form';
|
|
62
|
-
import Input from './components/input/input';
|
|
63
|
-
import Checkbox from './components/checkbox/checkbox';
|
|
64
|
-
import Radio from './components/radio/radio';
|
|
65
|
-
import Toggle from './components/toggle/toggle';
|
|
66
|
-
import Range from './components/range/range';
|
|
67
|
-
import Stepper from './components/stepper/stepper';
|
|
68
|
-
import SmartSelect from './components/smart-select/smart-select';
|
|
69
|
-
import Grid from './components/grid/grid';
|
|
70
|
-
import Calendar from './components/calendar/calendar';
|
|
71
|
-
import Picker from './components/picker/picker';
|
|
72
|
-
import InfiniteScroll from './components/infinite-scroll/infinite-scroll';
|
|
73
|
-
import PullToRefresh from './components/pull-to-refresh/pull-to-refresh';
|
|
74
|
-
import Lazy from './components/lazy/lazy';
|
|
75
|
-
import DataTable from './components/data-table/data-table';
|
|
76
|
-
import Fab from './components/fab/fab';
|
|
77
|
-
import Searchbar from './components/searchbar/searchbar';
|
|
78
|
-
import Messages from './components/messages/messages';
|
|
79
|
-
import Messagebar from './components/messagebar/messagebar';
|
|
80
|
-
import Swiper from './components/swiper/swiper';
|
|
81
|
-
import PhotoBrowser from './components/photo-browser/photo-browser';
|
|
82
|
-
import Notification from './components/notification/notification';
|
|
83
|
-
import Autocomplete from './components/autocomplete/autocomplete';
|
|
84
|
-
import Tooltip from './components/tooltip/tooltip';
|
|
85
|
-
import Gauge from './components/gauge/gauge';
|
|
86
|
-
import Skeleton from './components/skeleton/skeleton';
|
|
87
|
-
import Menu from './components/menu/menu';
|
|
88
|
-
import ColorPicker from './components/color-picker/color-picker';
|
|
89
|
-
import Treeview from './components/treeview/treeview';
|
|
90
|
-
import TextEditor from './components/text-editor/text-editor';
|
|
91
|
-
import PieChart from './components/pie-chart/pie-chart';
|
|
92
|
-
import AreaChart from './components/area-chart/area-chart';
|
|
93
|
-
import Elevation from './components/elevation/elevation';
|
|
94
|
-
import Typography from './components/typography/typography';
|
|
13
|
+
import $ from './shared/dom7.js';
|
|
14
|
+
import Framework7 from './components/app/app-class.js';
|
|
15
|
+
import request from './shared/request.js';
|
|
16
|
+
import * as utils from './shared/utils.js';
|
|
17
|
+
import { getSupport } from './shared/get-support.js';
|
|
18
|
+
import { getDevice } from './shared/get-device.js';
|
|
19
|
+
import DeviceModule from './modules/device/device.js';
|
|
20
|
+
import SupportModule from './modules/support/support.js';
|
|
21
|
+
import UtilsModule from './modules/utils/utils.js';
|
|
22
|
+
import ResizeModule from './modules/resize/resize.js';
|
|
23
|
+
import RequestModule from './modules/request/request.js';
|
|
24
|
+
import TouchModule from './modules/touch/touch.js';
|
|
25
|
+
import ClicksModule from './modules/clicks/clicks.js';
|
|
26
|
+
import RouterModule from './modules/router/router.js';
|
|
27
|
+
import RouterComponentLoaderModule from './modules/router/component-loader.js';
|
|
28
|
+
import ComponentModule, { Component, $jsx } from './modules/component/component.js';
|
|
29
|
+
import HistoryModule from './modules/history/history.js';
|
|
30
|
+
import ServiceWorkerModule from './modules/service-worker/service-worker.js';
|
|
31
|
+
import StoreModule, { createStore } from './modules/store/store.js';
|
|
32
|
+
import Statusbar from './components/statusbar/statusbar.js';
|
|
33
|
+
import View from './components/view/view.js';
|
|
34
|
+
import Navbar from './components/navbar/navbar.js';
|
|
35
|
+
import Toolbar from './components/toolbar/toolbar.js';
|
|
36
|
+
import Subnavbar from './components/subnavbar/subnavbar.js';
|
|
37
|
+
import TouchRipple from './components/touch-ripple/touch-ripple.js';
|
|
38
|
+
import Modal from './components/modal/modal.js';
|
|
39
|
+
import Router from './modules/router/router-class.js';
|
|
40
|
+
import Appbar from './components/appbar/appbar.js';
|
|
41
|
+
import Dialog from './components/dialog/dialog.js';
|
|
42
|
+
import Popup from './components/popup/popup.js';
|
|
43
|
+
import LoginScreen from './components/login-screen/login-screen.js';
|
|
44
|
+
import Popover from './components/popover/popover.js';
|
|
45
|
+
import Actions from './components/actions/actions.js';
|
|
46
|
+
import Sheet from './components/sheet/sheet.js';
|
|
47
|
+
import Toast from './components/toast/toast.js';
|
|
48
|
+
import Preloader from './components/preloader/preloader.js';
|
|
49
|
+
import Progressbar from './components/progressbar/progressbar.js';
|
|
50
|
+
import Sortable from './components/sortable/sortable.js';
|
|
51
|
+
import Swipeout from './components/swipeout/swipeout.js';
|
|
52
|
+
import Accordion from './components/accordion/accordion.js';
|
|
53
|
+
import ContactsList from './components/contacts-list/contacts-list.js';
|
|
54
|
+
import VirtualList from './components/virtual-list/virtual-list.js';
|
|
55
|
+
import ListIndex from './components/list-index/list-index.js';
|
|
56
|
+
import Timeline from './components/timeline/timeline.js';
|
|
57
|
+
import Tabs from './components/tabs/tabs.js';
|
|
58
|
+
import Panel from './components/panel/panel.js';
|
|
59
|
+
import Card from './components/card/card.js';
|
|
60
|
+
import Chip from './components/chip/chip.js';
|
|
61
|
+
import Form from './components/form/form.js';
|
|
62
|
+
import Input from './components/input/input.js';
|
|
63
|
+
import Checkbox from './components/checkbox/checkbox.js';
|
|
64
|
+
import Radio from './components/radio/radio.js';
|
|
65
|
+
import Toggle from './components/toggle/toggle.js';
|
|
66
|
+
import Range from './components/range/range.js';
|
|
67
|
+
import Stepper from './components/stepper/stepper.js';
|
|
68
|
+
import SmartSelect from './components/smart-select/smart-select.js';
|
|
69
|
+
import Grid from './components/grid/grid.js';
|
|
70
|
+
import Calendar from './components/calendar/calendar.js';
|
|
71
|
+
import Picker from './components/picker/picker.js';
|
|
72
|
+
import InfiniteScroll from './components/infinite-scroll/infinite-scroll.js';
|
|
73
|
+
import PullToRefresh from './components/pull-to-refresh/pull-to-refresh.js';
|
|
74
|
+
import Lazy from './components/lazy/lazy.js';
|
|
75
|
+
import DataTable from './components/data-table/data-table.js';
|
|
76
|
+
import Fab from './components/fab/fab.js';
|
|
77
|
+
import Searchbar from './components/searchbar/searchbar.js';
|
|
78
|
+
import Messages from './components/messages/messages.js';
|
|
79
|
+
import Messagebar from './components/messagebar/messagebar.js';
|
|
80
|
+
import Swiper from './components/swiper/swiper.js';
|
|
81
|
+
import PhotoBrowser from './components/photo-browser/photo-browser.js';
|
|
82
|
+
import Notification from './components/notification/notification.js';
|
|
83
|
+
import Autocomplete from './components/autocomplete/autocomplete.js';
|
|
84
|
+
import Tooltip from './components/tooltip/tooltip.js';
|
|
85
|
+
import Gauge from './components/gauge/gauge.js';
|
|
86
|
+
import Skeleton from './components/skeleton/skeleton.js';
|
|
87
|
+
import Menu from './components/menu/menu.js';
|
|
88
|
+
import ColorPicker from './components/color-picker/color-picker.js';
|
|
89
|
+
import Treeview from './components/treeview/treeview.js';
|
|
90
|
+
import TextEditor from './components/text-editor/text-editor.js';
|
|
91
|
+
import PieChart from './components/pie-chart/pie-chart.js';
|
|
92
|
+
import AreaChart from './components/area-chart/area-chart.js';
|
|
93
|
+
import Elevation from './components/elevation/elevation.js';
|
|
94
|
+
import Typography from './components/typography/typography.js';
|
|
95
95
|
Router.use([RouterComponentLoaderModule]);
|
|
96
96
|
Framework7.use([DeviceModule, SupportModule, UtilsModule, ResizeModule, RequestModule, TouchModule, ClicksModule, RouterModule, HistoryModule, ComponentModule, ServiceWorkerModule, StoreModule, Statusbar, View, Navbar, Toolbar, Subnavbar, TouchRipple, Modal, Appbar, Dialog, Popup, LoginScreen, Popover, Actions, Sheet, Toast, Preloader, Progressbar, Sortable, Swipeout, Accordion, ContactsList, VirtualList, ListIndex, Timeline, Tabs, Panel, Card, Chip, Form, Input, Checkbox, Radio, Toggle, Range, Stepper, SmartSelect, Grid, Calendar, Picker, InfiniteScroll, PullToRefresh, Lazy, DataTable, Fab, Searchbar, Messages, Messagebar, Swiper, PhotoBrowser, Notification, Autocomplete, Tooltip, Gauge, Skeleton, Menu, ColorPicker, Treeview, TextEditor, PieChart, AreaChart, Elevation, Typography]);
|
|
97
97
|
export { Component, $jsx, $ as Dom7, request, utils, getDevice, getSupport, createStore };
|
package/framework7-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 7.0.0-beta.
|
|
2
|
+
* Framework7 7.0.0-beta.5
|
|
3
3
|
* Full featured mobile HTML framework for building iOS & Android apps
|
|
4
4
|
* https://framework7.io/
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on: October
|
|
10
|
+
* Released on: October 13, 2021
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function (global, factory) {
|
|
@@ -2758,7 +2758,7 @@
|
|
|
2758
2758
|
return;
|
|
2759
2759
|
}
|
|
2760
2760
|
|
|
2761
|
-
modulePath = `${app.params.lazyModulesPath}/${moduleToLoad}/${moduleToLoad}.js`;
|
|
2761
|
+
modulePath = `${app.params.lazyModulesPath}/${moduleToLoad}/${moduleToLoad}.lazy.js`;
|
|
2762
2762
|
} else {
|
|
2763
2763
|
modulePath = moduleToLoad;
|
|
2764
2764
|
}
|
|
@@ -2845,7 +2845,7 @@
|
|
|
2845
2845
|
});
|
|
2846
2846
|
});
|
|
2847
2847
|
const styleLoad = new Promise(resolveStyle => {
|
|
2848
|
-
Framework7.request.get(modulePath.replace('.js', app.rtl ? '.rtl.css' : '.css'), styleContent => {
|
|
2848
|
+
Framework7.request.get(modulePath.replace('.lazy.js', app.rtl ? '.rtl.css' : '.css').replace('.js', app.rtl ? '.rtl.css' : '.css'), styleContent => {
|
|
2849
2849
|
const styleEl = document.createElement('style');
|
|
2850
2850
|
styleEl.innerHTML = styleContent;
|
|
2851
2851
|
$('head').append(styleEl);
|
|
@@ -2897,7 +2897,7 @@
|
|
|
2897
2897
|
lazyModulesPath: null,
|
|
2898
2898
|
initOnDeviceReady: true,
|
|
2899
2899
|
init: true,
|
|
2900
|
-
|
|
2900
|
+
autoDarkMode: false,
|
|
2901
2901
|
iosTranslucentBars: true,
|
|
2902
2902
|
iosTranslucentModals: true,
|
|
2903
2903
|
component: undefined,
|
|
@@ -2970,7 +2970,7 @@
|
|
|
2970
2970
|
app.el = app.$el[0];
|
|
2971
2971
|
app.el.f7 = app;
|
|
2972
2972
|
app.rtl = $rootEl.css('direction') === 'rtl';
|
|
2973
|
-
} // Auto Dark
|
|
2973
|
+
} // Auto Dark Mode
|
|
2974
2974
|
|
|
2975
2975
|
|
|
2976
2976
|
const DARK = '(prefers-color-scheme: dark)';
|
|
@@ -2993,13 +2993,13 @@
|
|
|
2993
2993
|
const html = document.querySelector('html');
|
|
2994
2994
|
|
|
2995
2995
|
if (media === DARK) {
|
|
2996
|
-
html.classList.add('
|
|
2997
|
-
app.
|
|
2998
|
-
app.emit('
|
|
2996
|
+
html.classList.add('dark');
|
|
2997
|
+
app.darkMode = true;
|
|
2998
|
+
app.emit('darkModeChange', true);
|
|
2999
2999
|
} else if (media === LIGHT) {
|
|
3000
|
-
html.classList.remove('
|
|
3001
|
-
app.
|
|
3002
|
-
app.emit('
|
|
3000
|
+
html.classList.remove('dark');
|
|
3001
|
+
app.darkMode = false;
|
|
3002
|
+
app.emit('darkModeChange', false);
|
|
3003
3003
|
}
|
|
3004
3004
|
};
|
|
3005
3005
|
|
|
@@ -3016,7 +3016,7 @@
|
|
|
3016
3016
|
}
|
|
3017
3017
|
}
|
|
3018
3018
|
|
|
3019
|
-
|
|
3019
|
+
enableAutoDarkMode() {
|
|
3020
3020
|
const window = getWindow();
|
|
3021
3021
|
const document = getDocument();
|
|
3022
3022
|
if (!window.matchMedia) return;
|
|
@@ -3029,17 +3029,17 @@
|
|
|
3029
3029
|
}
|
|
3030
3030
|
|
|
3031
3031
|
if (app.mq.dark && app.mq.dark.matches) {
|
|
3032
|
-
html.classList.add('
|
|
3033
|
-
app.
|
|
3034
|
-
app.emit('
|
|
3032
|
+
html.classList.add('dark');
|
|
3033
|
+
app.darkMode = true;
|
|
3034
|
+
app.emit('darkModeChange', true);
|
|
3035
3035
|
} else if (app.mq.light && app.mq.light.matches) {
|
|
3036
|
-
html.classList.remove('
|
|
3037
|
-
app.
|
|
3038
|
-
app.emit('
|
|
3036
|
+
html.classList.remove('dark');
|
|
3037
|
+
app.darkMode = false;
|
|
3038
|
+
app.emit('darkModeChange', false);
|
|
3039
3039
|
}
|
|
3040
3040
|
}
|
|
3041
3041
|
|
|
3042
|
-
|
|
3042
|
+
disableAutoDarkMode() {
|
|
3043
3043
|
const window = getWindow();
|
|
3044
3044
|
if (!window.matchMedia) return;
|
|
3045
3045
|
const app = this;
|
|
@@ -3072,11 +3072,11 @@
|
|
|
3072
3072
|
|
|
3073
3073
|
if (app.rtl) {
|
|
3074
3074
|
$('html').attr('dir', 'rtl');
|
|
3075
|
-
} // Auto Dark
|
|
3075
|
+
} // Auto Dark Mode
|
|
3076
3076
|
|
|
3077
3077
|
|
|
3078
|
-
if (app.params.
|
|
3079
|
-
app.
|
|
3078
|
+
if (app.params.autoDarkMode) {
|
|
3079
|
+
app.enableAutoDarkMode();
|
|
3080
3080
|
} // Watch for online/offline state
|
|
3081
3081
|
|
|
3082
3082
|
|
|
@@ -6631,52 +6631,6 @@
|
|
|
6631
6631
|
return router;
|
|
6632
6632
|
}
|
|
6633
6633
|
|
|
6634
|
-
function openIn(router, url, options) {
|
|
6635
|
-
const navigateOptions = {
|
|
6636
|
-
url,
|
|
6637
|
-
route: {
|
|
6638
|
-
path: url,
|
|
6639
|
-
options: { ...options,
|
|
6640
|
-
openIn: undefined
|
|
6641
|
-
}
|
|
6642
|
-
}
|
|
6643
|
-
};
|
|
6644
|
-
const params = { ...options
|
|
6645
|
-
};
|
|
6646
|
-
|
|
6647
|
-
if (options.openIn === 'popup') {
|
|
6648
|
-
params.content = `<div class="popup popup-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
6649
|
-
navigateOptions.route.popup = params;
|
|
6650
|
-
}
|
|
6651
|
-
|
|
6652
|
-
if (options.openIn === 'loginScreen') {
|
|
6653
|
-
params.content = `<div class="login-screen login-screen-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
6654
|
-
navigateOptions.route.loginScreen = params;
|
|
6655
|
-
}
|
|
6656
|
-
|
|
6657
|
-
if (options.openIn === 'sheet') {
|
|
6658
|
-
params.content = `<div class="sheet-modal sheet-modal-router-open-in" data-url="${url}"><div class="sheet-modal-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
|
|
6659
|
-
navigateOptions.route.sheet = params;
|
|
6660
|
-
}
|
|
6661
|
-
|
|
6662
|
-
if (options.openIn === 'popover') {
|
|
6663
|
-
params.targetEl = options.clickedEl || options.targetEl;
|
|
6664
|
-
params.content = `<div class="popover popover-router-open-in" data-url="${url}"><div class="popover-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
|
|
6665
|
-
navigateOptions.route.popover = params;
|
|
6666
|
-
}
|
|
6667
|
-
|
|
6668
|
-
if (options.openIn.indexOf('panel') >= 0) {
|
|
6669
|
-
const parts = options.openIn.split(':');
|
|
6670
|
-
const side = parts[1] || 'left';
|
|
6671
|
-
const effect = parts[2] || 'cover';
|
|
6672
|
-
params.targetEl = options.clickedEl || options.targetEl;
|
|
6673
|
-
params.content = `<div class="panel panel-router-open-in panel-${side} panel-${effect}" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
6674
|
-
navigateOptions.route.panel = params;
|
|
6675
|
-
}
|
|
6676
|
-
|
|
6677
|
-
return router.navigate(navigateOptions);
|
|
6678
|
-
}
|
|
6679
|
-
|
|
6680
6634
|
function navigate(navigateParams, navigateOptions = {}) {
|
|
6681
6635
|
const router = this;
|
|
6682
6636
|
if (router.swipeBackActive) return router;
|
|
@@ -6766,7 +6720,7 @@
|
|
|
6766
6720
|
}
|
|
6767
6721
|
|
|
6768
6722
|
if (options.openIn && (!router.params.ignoreOpenIn || router.params.ignoreOpenIn && router.history.length > 0)) {
|
|
6769
|
-
return openIn(router, navigateUrl, options);
|
|
6723
|
+
return router.openIn(router, navigateUrl, options);
|
|
6770
6724
|
}
|
|
6771
6725
|
|
|
6772
6726
|
options.route = route;
|
|
@@ -10240,6 +10194,52 @@
|
|
|
10240
10194
|
var RouterComponentLoaderModule = {
|
|
10241
10195
|
name: 'routerComponentLoader',
|
|
10242
10196
|
proto: {
|
|
10197
|
+
openIn(router, url, options) {
|
|
10198
|
+
const navigateOptions = {
|
|
10199
|
+
url,
|
|
10200
|
+
route: {
|
|
10201
|
+
path: url,
|
|
10202
|
+
options: { ...options,
|
|
10203
|
+
openIn: undefined
|
|
10204
|
+
}
|
|
10205
|
+
}
|
|
10206
|
+
};
|
|
10207
|
+
const params = { ...options
|
|
10208
|
+
};
|
|
10209
|
+
|
|
10210
|
+
if (options.openIn === 'popup') {
|
|
10211
|
+
params.content = `<div class="popup popup-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
10212
|
+
navigateOptions.route.popup = params;
|
|
10213
|
+
}
|
|
10214
|
+
|
|
10215
|
+
if (options.openIn === 'loginScreen') {
|
|
10216
|
+
params.content = `<div class="login-screen login-screen-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
10217
|
+
navigateOptions.route.loginScreen = params;
|
|
10218
|
+
}
|
|
10219
|
+
|
|
10220
|
+
if (options.openIn === 'sheet') {
|
|
10221
|
+
params.content = `<div class="sheet-modal sheet-modal-router-open-in" data-url="${url}"><div class="sheet-modal-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
|
|
10222
|
+
navigateOptions.route.sheet = params;
|
|
10223
|
+
}
|
|
10224
|
+
|
|
10225
|
+
if (options.openIn === 'popover') {
|
|
10226
|
+
params.targetEl = options.clickedEl || options.targetEl;
|
|
10227
|
+
params.content = `<div class="popover popover-router-open-in" data-url="${url}"><div class="popover-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
|
|
10228
|
+
navigateOptions.route.popover = params;
|
|
10229
|
+
}
|
|
10230
|
+
|
|
10231
|
+
if (options.openIn.indexOf('panel') >= 0) {
|
|
10232
|
+
const parts = options.openIn.split(':');
|
|
10233
|
+
const side = parts[1] || 'left';
|
|
10234
|
+
const effect = parts[2] || 'cover';
|
|
10235
|
+
params.targetEl = options.clickedEl || options.targetEl;
|
|
10236
|
+
params.content = `<div class="panel panel-router-open-in panel-${side} panel-${effect}" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
10237
|
+
navigateOptions.route.panel = params;
|
|
10238
|
+
}
|
|
10239
|
+
|
|
10240
|
+
return router.navigate(navigateOptions);
|
|
10241
|
+
},
|
|
10242
|
+
|
|
10243
10243
|
componentLoader(component, componentUrl, options = {}, resolve, reject) {
|
|
10244
10244
|
const router = this;
|
|
10245
10245
|
const {
|
|
@@ -49174,7 +49174,7 @@
|
|
|
49174
49174
|
const self = this;
|
|
49175
49175
|
self.popover = self.app.popover.create({
|
|
49176
49176
|
content: `
|
|
49177
|
-
<div class="popover
|
|
49177
|
+
<div class="popover dark text-editor-popover">
|
|
49178
49178
|
<div class="popover-inner">${self.renderButtons()}</div>
|
|
49179
49179
|
</div>
|
|
49180
49180
|
`,
|