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/less/mixins.less
CHANGED
package/modules/clicks/clicks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getWindow } from 'ssr-window';
|
|
2
|
-
import $ from '../../shared/dom7';
|
|
3
|
-
import ViewClass from '../../components/view/view-class';
|
|
2
|
+
import $ from '../../shared/dom7.js';
|
|
3
|
+
import ViewClass from '../../components/view/view-class.js';
|
|
4
4
|
|
|
5
5
|
function initClicks(app) {
|
|
6
6
|
function handleClicks(e) {
|
package/modules/component/$h.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint no-underscore-dangle: "off" */
|
|
2
2
|
import { getWindow, getDocument } from 'ssr-window';
|
|
3
|
-
import $ from '../../shared/dom7';
|
|
4
|
-
import $h from './$h';
|
|
5
|
-
import { id as generateId, merge, eventNameToColonCase, deleteProps } from '../../shared/utils';
|
|
6
|
-
import vdom from './vdom';
|
|
7
|
-
import patch from './patch';
|
|
3
|
+
import $ from '../../shared/dom7.js';
|
|
4
|
+
import $h from './$h.js';
|
|
5
|
+
import { id as generateId, merge, eventNameToColonCase, deleteProps } from '../../shared/utils.js';
|
|
6
|
+
import vdom from './vdom.js';
|
|
7
|
+
import patch from './patch.js';
|
|
8
8
|
|
|
9
9
|
class Component {
|
|
10
10
|
constructor(app, component, props = {}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Component from './component-class';
|
|
2
|
-
import parseComponent from './parse-component';
|
|
3
|
-
import customComponents from './custom-components';
|
|
4
|
-
import $jsx from './$jsx';
|
|
1
|
+
import Component from './component-class.js';
|
|
2
|
+
import parseComponent from './parse-component.js';
|
|
3
|
+
import customComponents from './custom-components.js';
|
|
4
|
+
import $jsx from './$jsx.js';
|
|
5
5
|
|
|
6
6
|
function registerComponent(tagName, component) {
|
|
7
7
|
customComponents[tagName] = component;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getWindow, getDocument } from 'ssr-window';
|
|
2
|
-
import $ from '../../shared/dom7';
|
|
3
|
-
import { id } from '../../shared/utils';
|
|
2
|
+
import $ from '../../shared/dom7.js';
|
|
3
|
+
import { id } from '../../shared/utils.js';
|
|
4
4
|
|
|
5
5
|
function parseComponent(componentString) {
|
|
6
6
|
const window = getWindow();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint import/no-named-as-default: off */
|
|
2
|
-
import { init } from './snabbdom/snabbdom';
|
|
3
|
-
import attributesModule from './snabbdom/modules/attributes';
|
|
4
|
-
import propsModule from './snabbdom/modules/props';
|
|
5
|
-
import styleModule from './snabbdom/modules/style';
|
|
6
|
-
import eventListenersModule from './eventslisteners';
|
|
2
|
+
import { init } from './snabbdom/snabbdom.js';
|
|
3
|
+
import attributesModule from './snabbdom/modules/attributes.js';
|
|
4
|
+
import propsModule from './snabbdom/modules/props.js';
|
|
5
|
+
import styleModule from './snabbdom/modules/style.js';
|
|
6
|
+
import eventListenersModule from './eventslisteners.js';
|
|
7
7
|
const patch = init([attributesModule, propsModule, styleModule, eventListenersModule]);
|
|
8
8
|
export default patch;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { init } from './snabbdom';
|
|
2
|
-
import { attributesModule } from './modules/attributes'; // for setting attributes on DOM elements
|
|
1
|
+
import { init } from './snabbdom.js';
|
|
2
|
+
import { attributesModule } from './modules/attributes.js'; // for setting attributes on DOM elements
|
|
3
3
|
|
|
4
|
-
import { classModule } from './modules/class'; // makes it easy to toggle classes
|
|
4
|
+
import { classModule } from './modules/class.js'; // makes it easy to toggle classes
|
|
5
5
|
|
|
6
|
-
import { propsModule } from './modules/props'; // for setting properties on DOM elements
|
|
6
|
+
import { propsModule } from './modules/props.js'; // for setting properties on DOM elements
|
|
7
7
|
|
|
8
|
-
import { styleModule } from './modules/style'; // handles styling on elements with support for animations
|
|
8
|
+
import { styleModule } from './modules/style.js'; // handles styling on elements with support for animations
|
|
9
9
|
|
|
10
|
-
import { eventListenersModule } from './modules/eventlisteners'; // attaches event listeners
|
|
10
|
+
import { eventListenersModule } from './modules/eventlisteners.js'; // attaches event listeners
|
|
11
11
|
|
|
12
|
-
import { h } from './h'; // helper function for creating vnodes
|
|
12
|
+
import { h } from './h.js'; // helper function for creating vnodes
|
|
13
13
|
|
|
14
14
|
var patch = init([attributesModule, classModule, propsModule, styleModule, eventListenersModule]);
|
|
15
15
|
export var snabbdomBundle = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint no-use-before-define: "off" */
|
|
2
2
|
|
|
3
3
|
/* eslint import/no-named-as-default: "off" */
|
|
4
|
-
import h from './snabbdom/h';
|
|
5
|
-
import customComponents from './custom-components';
|
|
6
|
-
import { isObject, eventNameToColonCase } from '../../shared/utils';
|
|
4
|
+
import h from './snabbdom/h.js';
|
|
5
|
+
import customComponents from './custom-components.js';
|
|
6
|
+
import { isObject, eventNameToColonCase } from '../../shared/utils.js';
|
|
7
7
|
const SELF_CLOSING = 'area base br col command embed hr img input keygen link menuitem meta param source track wbr'.split(' ');
|
|
8
8
|
const PROPS_ATTRS = 'hidden checked disabled readonly selected autofocus autoplay required multiple value indeterminate routeProps innerHTML'.split(' ');
|
|
9
9
|
const BOOLEAN_PROPS = 'hidden checked disabled readonly selected autofocus autoplay required multiple readOnly indeterminate'.split(' ');
|
package/modules/device/device.js
CHANGED
package/modules/resize/resize.js
CHANGED
package/modules/router/back.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getDocument } from 'ssr-window';
|
|
2
|
-
import $ from '../../shared/dom7';
|
|
3
|
-
import { extend, parseUrlQuery } from '../../shared/utils';
|
|
4
|
-
import { getDevice } from '../../shared/get-device';
|
|
5
|
-
import History from '../../shared/history';
|
|
6
|
-
import redirect from './redirect';
|
|
7
|
-
import processRouteQueue from './process-route-queue';
|
|
8
|
-
import appRouterCheck from './app-router-check';
|
|
9
|
-
import asyncComponent from './async-component';
|
|
2
|
+
import $ from '../../shared/dom7.js';
|
|
3
|
+
import { extend, parseUrlQuery } from '../../shared/utils.js';
|
|
4
|
+
import { getDevice } from '../../shared/get-device.js';
|
|
5
|
+
import History from '../../shared/history.js';
|
|
6
|
+
import redirect from './redirect.js';
|
|
7
|
+
import processRouteQueue from './process-route-queue.js';
|
|
8
|
+
import appRouterCheck from './app-router-check.js';
|
|
9
|
+
import asyncComponent from './async-component.js';
|
|
10
10
|
|
|
11
11
|
function backward(router, el, backwardOptions) {
|
|
12
12
|
const device = getDevice();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import $ from '../../shared/dom7';
|
|
2
|
-
import appRouterCheck from './app-router-check';
|
|
1
|
+
import $ from '../../shared/dom7.js';
|
|
2
|
+
import appRouterCheck from './app-router-check.js';
|
|
3
3
|
|
|
4
4
|
function clearPreviousPages(router) {
|
|
5
5
|
appRouterCheck(router, 'clearPreviousPages');
|
|
@@ -1,7 +1,53 @@
|
|
|
1
|
-
import { merge } from '../../shared/utils';
|
|
1
|
+
import { merge } from '../../shared/utils.js';
|
|
2
2
|
export default {
|
|
3
3
|
name: 'routerComponentLoader',
|
|
4
4
|
proto: {
|
|
5
|
+
openIn(router, url, options) {
|
|
6
|
+
const navigateOptions = {
|
|
7
|
+
url,
|
|
8
|
+
route: {
|
|
9
|
+
path: url,
|
|
10
|
+
options: { ...options,
|
|
11
|
+
openIn: undefined
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const params = { ...options
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
if (options.openIn === 'popup') {
|
|
19
|
+
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>`;
|
|
20
|
+
navigateOptions.route.popup = params;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (options.openIn === 'loginScreen') {
|
|
24
|
+
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>`;
|
|
25
|
+
navigateOptions.route.loginScreen = params;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (options.openIn === 'sheet') {
|
|
29
|
+
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>`;
|
|
30
|
+
navigateOptions.route.sheet = params;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (options.openIn === 'popover') {
|
|
34
|
+
params.targetEl = options.clickedEl || options.targetEl;
|
|
35
|
+
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>`;
|
|
36
|
+
navigateOptions.route.popover = params;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (options.openIn.indexOf('panel') >= 0) {
|
|
40
|
+
const parts = options.openIn.split(':');
|
|
41
|
+
const side = parts[1] || 'left';
|
|
42
|
+
const effect = parts[2] || 'cover';
|
|
43
|
+
params.targetEl = options.clickedEl || options.targetEl;
|
|
44
|
+
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>`;
|
|
45
|
+
navigateOptions.route.panel = params;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return router.navigate(navigateOptions);
|
|
49
|
+
},
|
|
50
|
+
|
|
5
51
|
componentLoader(component, componentUrl, options = {}, resolve, reject) {
|
|
6
52
|
const router = this;
|
|
7
53
|
const {
|
package/modules/router/modal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { extend, nextTick } from '../../shared/utils';
|
|
2
|
-
import History from '../../shared/history';
|
|
3
|
-
import asyncComponent from './async-component';
|
|
1
|
+
import { extend, nextTick } from '../../shared/utils.js';
|
|
2
|
+
import History from '../../shared/history.js';
|
|
3
|
+
import asyncComponent from './async-component.js';
|
|
4
4
|
|
|
5
5
|
function modalLoad(modalType, route, loadOptions = {}, direction) {
|
|
6
6
|
const router = this;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getDocument } from 'ssr-window';
|
|
2
|
-
import $ from '../../shared/dom7';
|
|
3
|
-
import { extend, parseUrlQuery } from '../../shared/utils';
|
|
4
|
-
import History from '../../shared/history';
|
|
5
|
-
import redirect from './redirect';
|
|
6
|
-
import processRouteQueue from './process-route-queue';
|
|
7
|
-
import appRouterCheck from './app-router-check';
|
|
8
|
-
import asyncComponent from './async-component';
|
|
2
|
+
import $ from '../../shared/dom7.js';
|
|
3
|
+
import { extend, parseUrlQuery } from '../../shared/utils.js';
|
|
4
|
+
import History from '../../shared/history.js';
|
|
5
|
+
import redirect from './redirect.js';
|
|
6
|
+
import processRouteQueue from './process-route-queue.js';
|
|
7
|
+
import appRouterCheck from './app-router-check.js';
|
|
8
|
+
import asyncComponent from './async-component.js';
|
|
9
9
|
|
|
10
10
|
function refreshPage() {
|
|
11
11
|
const router = this;
|
|
@@ -730,52 +730,6 @@ function load(router, loadParams = {}, loadOptions = {}, ignorePageChange) {
|
|
|
730
730
|
return router;
|
|
731
731
|
}
|
|
732
732
|
|
|
733
|
-
function openIn(router, url, options) {
|
|
734
|
-
const navigateOptions = {
|
|
735
|
-
url,
|
|
736
|
-
route: {
|
|
737
|
-
path: url,
|
|
738
|
-
options: { ...options,
|
|
739
|
-
openIn: undefined
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
const params = { ...options
|
|
744
|
-
};
|
|
745
|
-
|
|
746
|
-
if (options.openIn === 'popup') {
|
|
747
|
-
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>`;
|
|
748
|
-
navigateOptions.route.popup = params;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
if (options.openIn === 'loginScreen') {
|
|
752
|
-
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>`;
|
|
753
|
-
navigateOptions.route.loginScreen = params;
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
if (options.openIn === 'sheet') {
|
|
757
|
-
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>`;
|
|
758
|
-
navigateOptions.route.sheet = params;
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
if (options.openIn === 'popover') {
|
|
762
|
-
params.targetEl = options.clickedEl || options.targetEl;
|
|
763
|
-
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>`;
|
|
764
|
-
navigateOptions.route.popover = params;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
if (options.openIn.indexOf('panel') >= 0) {
|
|
768
|
-
const parts = options.openIn.split(':');
|
|
769
|
-
const side = parts[1] || 'left';
|
|
770
|
-
const effect = parts[2] || 'cover';
|
|
771
|
-
params.targetEl = options.clickedEl || options.targetEl;
|
|
772
|
-
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>`;
|
|
773
|
-
navigateOptions.route.panel = params;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
return router.navigate(navigateOptions);
|
|
777
|
-
}
|
|
778
|
-
|
|
779
733
|
function navigate(navigateParams, navigateOptions = {}) {
|
|
780
734
|
const router = this;
|
|
781
735
|
if (router.swipeBackActive) return router;
|
|
@@ -865,7 +819,7 @@ function navigate(navigateParams, navigateOptions = {}) {
|
|
|
865
819
|
}
|
|
866
820
|
|
|
867
821
|
if (options.openIn && (!router.params.ignoreOpenIn || router.params.ignoreOpenIn && router.history.length > 0)) {
|
|
868
|
-
return openIn(router, navigateUrl, options);
|
|
822
|
+
return router.openIn(router, navigateUrl, options);
|
|
869
823
|
}
|
|
870
824
|
|
|
871
825
|
options.route = route;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { getWindow, getDocument } from 'ssr-window';
|
|
2
2
|
import { pathToRegexp, compile } from 'path-to-regexp';
|
|
3
|
-
import $ from '../../shared/dom7';
|
|
4
|
-
import Framework7Class from '../../shared/class';
|
|
5
|
-
import { extend, nextFrame, parseUrlQuery, serializeObject, now, eventNameToColonCase } from '../../shared/utils';
|
|
6
|
-
import History from '../../shared/history';
|
|
7
|
-
import SwipeBack from './swipe-back';
|
|
8
|
-
import { refreshPage, navigate } from './navigate';
|
|
9
|
-
import { tabLoad, tabRemove } from './tab';
|
|
10
|
-
import { modalLoad, modalRemove } from './modal';
|
|
11
|
-
import { back } from './back';
|
|
12
|
-
import { clearPreviousHistory } from './clear-previous-history';
|
|
13
|
-
import appRouterCheck from './app-router-check';
|
|
3
|
+
import $ from '../../shared/dom7.js';
|
|
4
|
+
import Framework7Class from '../../shared/class.js';
|
|
5
|
+
import { extend, nextFrame, parseUrlQuery, serializeObject, now, eventNameToColonCase } from '../../shared/utils.js';
|
|
6
|
+
import History from '../../shared/history.js';
|
|
7
|
+
import SwipeBack from './swipe-back.js';
|
|
8
|
+
import { refreshPage, navigate } from './navigate.js';
|
|
9
|
+
import { tabLoad, tabRemove } from './tab.js';
|
|
10
|
+
import { modalLoad, modalRemove } from './modal.js';
|
|
11
|
+
import { back } from './back.js';
|
|
12
|
+
import { clearPreviousHistory } from './clear-previous-history.js';
|
|
13
|
+
import appRouterCheck from './app-router-check.js';
|
|
14
14
|
|
|
15
15
|
class Router extends Framework7Class {
|
|
16
16
|
constructor(app, view) {
|
package/modules/router/router.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import $ from '../../shared/dom7';
|
|
2
|
-
import History from '../../shared/history';
|
|
3
|
-
import { getSupport } from '../../shared/get-support';
|
|
4
|
-
import { getDevice } from '../../shared/get-device';
|
|
5
|
-
import { now } from '../../shared/utils';
|
|
1
|
+
import $ from '../../shared/dom7.js';
|
|
2
|
+
import History from '../../shared/history.js';
|
|
3
|
+
import { getSupport } from '../../shared/get-support.js';
|
|
4
|
+
import { getDevice } from '../../shared/get-device.js';
|
|
5
|
+
import { now } from '../../shared/utils.js';
|
|
6
6
|
|
|
7
7
|
function SwipeBack(r) {
|
|
8
8
|
const router = r;
|
package/modules/router/tab.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import $ from '../../shared/dom7';
|
|
2
|
-
import { extend } from '../../shared/utils';
|
|
3
|
-
import History from '../../shared/history';
|
|
4
|
-
import asyncComponent from './async-component';
|
|
1
|
+
import $ from '../../shared/dom7.js';
|
|
2
|
+
import { extend } from '../../shared/utils.js';
|
|
3
|
+
import History from '../../shared/history.js';
|
|
4
|
+
import asyncComponent from './async-component.js';
|
|
5
5
|
|
|
6
6
|
function tabLoad(tabRoute, loadOptions = {}) {
|
|
7
7
|
const router = this;
|
package/modules/store/store.js
CHANGED
package/modules/touch/touch.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable no-nested-ternary */
|
|
2
2
|
import { getWindow, getDocument } from 'ssr-window';
|
|
3
|
-
import $ from '../../shared/dom7';
|
|
4
|
-
import { getSupport } from '../../shared/get-support';
|
|
5
|
-
import { getDevice } from '../../shared/get-device';
|
|
6
|
-
import { extend } from '../../shared/utils';
|
|
3
|
+
import $ from '../../shared/dom7.js';
|
|
4
|
+
import { getSupport } from '../../shared/get-support.js';
|
|
5
|
+
import { getDevice } from '../../shared/get-device.js';
|
|
6
|
+
import { extend } from '../../shared/utils.js';
|
|
7
7
|
|
|
8
8
|
function initTouch() {
|
|
9
9
|
const app = this;
|
package/modules/utils/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framework7",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.5",
|
|
4
4
|
"description": "Full featured mobile HTML framework for building iOS & Android apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"./core": "./framework7.esm.js",
|
|
9
9
|
"./bundle": "./framework7-bundle.esm.js",
|
|
10
10
|
"./lite": "./framework7-lite.esm.js",
|
|
11
|
+
"./lite/bundle": "./framework7-lite-bundle.esm.js",
|
|
11
12
|
"./lite-bundle": "./framework7-lite-bundle.esm.js",
|
|
12
13
|
"./less": "./framework7.less",
|
|
13
14
|
"./css": "./framework7.css",
|
package/shared/class.js
CHANGED
package/shared/get-device.js
CHANGED
package/shared/history.js
CHANGED
package/shared/modal-methods.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import $ from './dom7';
|
|
2
|
-
import { extend } from './utils';
|
|
3
|
-
import ConstructorMethods from './constructor-methods';
|
|
1
|
+
import $ from './dom7.js';
|
|
2
|
+
import { extend } from './utils.js';
|
|
3
|
+
import ConstructorMethods from './constructor-methods.js';
|
|
4
4
|
export default function ModalMethods(parameters = {}) {
|
|
5
5
|
const {
|
|
6
6
|
defaultSelector,
|
package/shared/request.js
CHANGED