framework7 7.0.0-beta.10 → 7.0.0-beta.15
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/actions/actions-class.js +6 -1
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.d.ts +2 -0
- package/components/actions/actions.js +1 -0
- package/components/actions/actions.lazy.js +1 -1
- package/components/actions/actions.less +3 -0
- package/components/breadcrumbs/breadcrumbs-aurora.less +2 -0
- package/components/breadcrumbs/breadcrumbs-ios.less +2 -0
- package/components/breadcrumbs/breadcrumbs-md.less +2 -0
- package/components/breadcrumbs/breadcrumbs-rtl.css +1 -0
- package/components/breadcrumbs/breadcrumbs-vars.less +36 -0
- package/components/breadcrumbs/breadcrumbs.css +1 -0
- package/components/breadcrumbs/breadcrumbs.d.ts +15 -0
- package/components/breadcrumbs/breadcrumbs.js +13 -0
- package/components/breadcrumbs/breadcrumbs.lazy.js +1 -0
- package/components/breadcrumbs/breadcrumbs.less +100 -0
- package/components/calendar/calendar-class.js +206 -122
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar-vars.less +6 -10
- package/components/calendar/calendar.css +1 -1
- package/components/calendar/calendar.d.ts +2 -0
- package/components/calendar/calendar.js +1 -0
- package/components/calendar/calendar.lazy.js +1 -1
- package/components/calendar/calendar.less +20 -16
- package/components/list-index/list-index.d.ts +1 -1
- package/components/modal/modal-class.js +10 -0
- package/components/notification/notification.d.ts +4 -4
- package/components/picker/picker-class.js +6 -6
- package/components/picker/picker-column.js +34 -270
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker.css +1 -1
- package/components/picker/picker.d.ts +2 -13
- package/components/picker/picker.js +0 -5
- package/components/picker/picker.lazy.js +1 -1
- package/components/picker/picker.less +28 -10
- package/components/popover/popover-class.js +15 -2
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.d.ts +2 -0
- package/components/popover/popover.js +1 -0
- package/components/popover/popover.lazy.js +1 -1
- package/components/popover/popover.less +3 -0
- package/components/popup/popup-class.js +6 -1
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.d.ts +4 -0
- package/components/popup/popup.js +1 -0
- package/components/popup/popup.lazy.js +1 -1
- package/components/popup/popup.less +4 -0
- package/components/preloader/preloader-ios.less +3 -0
- package/components/preloader/preloader-rtl.css +1 -1
- package/components/preloader/preloader.css +1 -1
- package/components/preloader/preloader.d.ts +4 -0
- package/components/progressbar/progressbar-aurora.less +32 -13
- package/components/progressbar/progressbar-ios.less +19 -7
- package/components/progressbar/progressbar-md.less +64 -28
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar.css +1 -1
- package/components/progressbar/progressbar.js +1 -1
- package/components/progressbar/progressbar.lazy.js +1 -1
- package/components/progressbar/progressbar.less +16 -4
- package/components/range/range.d.ts +23 -5
- package/components/sheet/sheet-class.js +6 -1
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet.css +1 -1
- package/components/sheet/sheet.d.ts +2 -0
- package/components/sheet/sheet.js +1 -0
- package/components/sheet/sheet.lazy.js +1 -1
- package/components/sheet/sheet.less +3 -0
- package/components/sortable/sortable.d.ts +5 -1
- package/components/sortable/sortable.js +15 -2
- package/components/sortable/sortable.lazy.js +1 -1
- package/components/statusbar/statusbar.d.ts +9 -9
- package/components/swiper/swiper-rtl.css +1 -1
- package/components/swiper/swiper.css +1 -1
- package/components/swiper/swiper.lazy.js +1 -1
- package/components/tabs/tabs.js +4 -5
- package/components/tabs/tabs.lazy.js +1 -1
- package/components/toast/toast.d.ts +2 -2
- package/components/toolbar/toolbar-aurora.less +0 -13
- package/components/toolbar/toolbar-md.less +0 -13
- package/components/toolbar/toolbar.js +1 -1
- package/components/toolbar/toolbar.less +13 -0
- package/components/view/view-class.js +8 -1
- package/components/view/view.d.ts +5 -1
- package/components/view/view.js +2 -0
- package/components/virtual-list/virtual-list-class.js +44 -7
- package/components/virtual-list/virtual-list.d.ts +2 -2
- package/components/virtual-list/virtual-list.lazy.js +1 -1
- package/framework7-bundle-rtl.css +252 -150
- package/framework7-bundle-rtl.min.css +4 -4
- package/framework7-bundle.css +237 -134
- package/framework7-bundle.esm.js +5 -4
- package/framework7-bundle.js +982 -724
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +4 -3
- package/framework7-bundle.min.css +4 -4
- package/framework7-bundle.min.js +4 -4
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +5 -4
- package/framework7-lite.esm.js +3 -3
- package/framework7-rtl.css +12 -21
- package/framework7-rtl.min.css +4 -4
- package/framework7-types.d.ts +5 -1
- package/framework7.css +11 -19
- package/framework7.d.ts +4 -0
- package/framework7.esm.js +3 -3
- package/framework7.js +49 -17
- package/framework7.js.map +1 -1
- package/framework7.less +3 -3
- package/framework7.min.css +4 -4
- package/framework7.min.js +4 -4
- package/framework7.min.js.map +1 -1
- package/modules/component/component.d.ts +2 -2
- package/modules/device/device.js +1 -1
- package/modules/router/back.js +11 -1
- package/modules/router/tab.js +1 -1
- package/package.json +10 -5
- package/shared/get-device.d.ts +0 -2
- package/shared/get-device.js +1 -2
|
@@ -46,9 +46,9 @@ export interface ComponentContext {
|
|
|
46
46
|
/** Render function */
|
|
47
47
|
$render: ComponentRender;
|
|
48
48
|
/** Attach event handler to component root DOM element */
|
|
49
|
-
$on: (eventName, handler: () => void) => void;
|
|
49
|
+
$on: (eventName: string, handler: () => void) => void;
|
|
50
50
|
/** Attach event handler to component root DOM element that will be executed only once */
|
|
51
|
-
$once: (eventName, handler: () => void) => void;
|
|
51
|
+
$once: (eventName: string, handler: () => void) => void;
|
|
52
52
|
/** Hook called right before component will be added to DOM */
|
|
53
53
|
$onBeforeMount: (callback: () => void) => void;
|
|
54
54
|
/** Hook called right after component has been added to DOM */
|
package/modules/device/device.js
CHANGED
package/modules/router/back.js
CHANGED
|
@@ -14,7 +14,7 @@ function backward(router, el, backwardOptions) {
|
|
|
14
14
|
const $el = $(el);
|
|
15
15
|
const app = router.app;
|
|
16
16
|
const view = router.view;
|
|
17
|
-
const options = extend({
|
|
17
|
+
const options = extend(false, {
|
|
18
18
|
animate: router.params.animate,
|
|
19
19
|
browserHistory: true,
|
|
20
20
|
replaceState: false
|
|
@@ -722,6 +722,16 @@ function back(...args) {
|
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
const previousPageRoute = $previousPage[0].f7Page.route;
|
|
725
|
+
|
|
726
|
+
if (navigateOptions.preload && $previousPage.hasClass('stacked')) {
|
|
727
|
+
loadBack(router, {
|
|
728
|
+
el: $previousPage
|
|
729
|
+
}, extend(navigateOptions, {
|
|
730
|
+
route: previousPageRoute
|
|
731
|
+
}));
|
|
732
|
+
return router;
|
|
733
|
+
}
|
|
734
|
+
|
|
725
735
|
processRouteQueue.call(router, previousPageRoute, router.currentRoute, () => {
|
|
726
736
|
loadBack(router, {
|
|
727
737
|
el: $previousPage
|
package/modules/router/tab.js
CHANGED
|
@@ -33,7 +33,7 @@ function tabLoad(tabRoute, loadOptions = {}) {
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
if (router.params.browserHistory && options.browserHistory && !options.reloadPrevious) {
|
|
36
|
-
History.
|
|
36
|
+
History[router.params.browserHistoryTabs](router.view.id, {
|
|
37
37
|
url: options.route.url
|
|
38
38
|
}, (router.params.browserHistoryRoot || '') + router.params.browserHistorySeparator + options.route.url);
|
|
39
39
|
} // Update Router History
|
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.15",
|
|
4
4
|
"description": "Full featured mobile HTML framework for building iOS & Android apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -235,7 +235,11 @@
|
|
|
235
235
|
"./components/typography": "./components/typography/typography.js",
|
|
236
236
|
"./components/typography/less": "./components/typography/typography.less",
|
|
237
237
|
"./components/typography/css": "./components/typography/typography.css",
|
|
238
|
-
"./components/typography/css/rtl": "./components/typography/typography-rtl.css"
|
|
238
|
+
"./components/typography/css/rtl": "./components/typography/typography-rtl.css",
|
|
239
|
+
"./components/breadcrumbs": "./components/breadcrumbs/breadcrumbs.js",
|
|
240
|
+
"./components/breadcrumbs/less": "./components/breadcrumbs/breadcrumbs.less",
|
|
241
|
+
"./components/breadcrumbs/css": "./components/breadcrumbs/breadcrumbs.css",
|
|
242
|
+
"./components/breadcrumbs/css/rtl": "./components/breadcrumbs/breadcrumbs-rtl.css"
|
|
239
243
|
},
|
|
240
244
|
"typings": "framework7.d.ts",
|
|
241
245
|
"typesVersions": {
|
|
@@ -270,6 +274,7 @@
|
|
|
270
274
|
"ipad",
|
|
271
275
|
"apple",
|
|
272
276
|
"phonegap",
|
|
277
|
+
"capacitor",
|
|
273
278
|
"native",
|
|
274
279
|
"touch",
|
|
275
280
|
"appstore",
|
|
@@ -291,11 +296,11 @@
|
|
|
291
296
|
"url": "https://www.patreon.com/framework7"
|
|
292
297
|
},
|
|
293
298
|
"dependencies": {
|
|
294
|
-
"dom7": "^4.0.
|
|
299
|
+
"dom7": "^4.0.4",
|
|
295
300
|
"htm": "^3.1.0",
|
|
296
301
|
"path-to-regexp": "^6.2.0",
|
|
297
302
|
"skeleton-elements": "^4.0.0",
|
|
298
|
-
"ssr-window": "^4.0.
|
|
299
|
-
"swiper": "^
|
|
303
|
+
"ssr-window": "^4.0.2",
|
|
304
|
+
"swiper": "^8.0.6"
|
|
300
305
|
}
|
|
301
306
|
}
|
package/shared/get-device.d.ts
CHANGED
|
@@ -31,8 +31,6 @@ export interface Device {
|
|
|
31
31
|
electron: boolean;
|
|
32
32
|
/** true when app is running under NW.js environment */
|
|
33
33
|
nwjs: boolean;
|
|
34
|
-
/** true when app running in cordova environment */
|
|
35
|
-
phonegap: boolean;
|
|
36
34
|
/** true if app runs in web view - webapp installed to home screen */
|
|
37
35
|
webView: boolean;
|
|
38
36
|
/** true if app runs in web view - webapp installed to home screen */
|
package/shared/get-device.js
CHANGED
|
@@ -22,8 +22,7 @@ function calcDevice({
|
|
|
22
22
|
firefox: false,
|
|
23
23
|
macos: false,
|
|
24
24
|
windows: false,
|
|
25
|
-
cordova: !!
|
|
26
|
-
phonegap: !!(window.cordova || window.phonegap),
|
|
25
|
+
cordova: !!window.cordova,
|
|
27
26
|
electron: false,
|
|
28
27
|
capacitor: !!window.Capacitor,
|
|
29
28
|
nwjs: false
|