framework7 9.0.0-beta.1 → 9.0.0
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-rtl.css +1 -1
- package/components/accordion/accordion.css +1 -1
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions.css +1 -1
- package/components/area-chart/area-chart-rtl.css +1 -1
- package/components/area-chart/area-chart.css +1 -1
- package/components/autocomplete/autocomplete-rtl.css +1 -1
- package/components/autocomplete/autocomplete.css +1 -1
- package/components/breadcrumbs/breadcrumbs-rtl.css +1 -1
- package/components/breadcrumbs/breadcrumbs.css +1 -1
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar.css +1 -1
- package/components/card/card-rtl.css +1 -1
- package/components/card/card.css +1 -1
- package/components/checkbox/checkbox-rtl.css +1 -1
- package/components/checkbox/checkbox.css +1 -1
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip.css +1 -1
- package/components/color-picker/color-picker-rtl.css +1 -1
- package/components/color-picker/color-picker.css +1 -1
- package/components/contacts-list/contacts-list-rtl.css +1 -1
- package/components/contacts-list/contacts-list.css +1 -1
- package/components/data-table/data-table-rtl.css +1 -1
- package/components/data-table/data-table.css +1 -1
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog.css +1 -1
- package/components/fab/fab-rtl.css +1 -1
- package/components/fab/fab.css +1 -1
- package/components/gauge/gauge-rtl.css +1 -1
- package/components/gauge/gauge.css +1 -1
- package/components/infinite-scroll/infinite-scroll-rtl.css +1 -1
- package/components/infinite-scroll/infinite-scroll.css +1 -1
- package/components/input/input-rtl.css +1 -1
- package/components/input/input.css +1 -1
- package/components/list-index/list-index-rtl.css +1 -1
- package/components/list-index/list-index.css +1 -1
- package/components/login-screen/login-screen-rtl.css +1 -1
- package/components/login-screen/login-screen.css +1 -1
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar.css +1 -1
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages.css +1 -1
- package/components/navbar/navbar-ios.less +6 -2
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification.css +1 -1
- package/components/panel/panel-rtl.css +1 -3
- package/components/panel/panel.css +1 -3
- package/components/photo-browser/photo-browser-rtl.css +1 -1
- package/components/photo-browser/photo-browser.css +1 -1
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker.css +1 -1
- package/components/pie-chart/pie-chart-rtl.css +1 -1
- package/components/pie-chart/pie-chart.css +1 -1
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover.css +1 -1
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup.css +1 -1
- package/components/preloader/preloader-rtl.css +1 -1
- package/components/preloader/preloader.css +1 -1
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar.css +1 -1
- package/components/pull-to-refresh/pull-to-refresh-rtl.css +1 -1
- package/components/pull-to-refresh/pull-to-refresh.css +1 -1
- package/components/radio/radio-rtl.css +1 -1
- package/components/radio/radio.css +1 -1
- package/components/range/range-rtl.css +1 -1
- package/components/range/range.css +1 -1
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar.css +1 -1
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet.css +1 -1
- package/components/skeleton/skeleton-rtl.css +1 -1
- package/components/skeleton/skeleton.css +1 -1
- package/components/smart-select/smart-select-rtl.css +1 -1
- package/components/smart-select/smart-select.css +1 -1
- package/components/sortable/sortable-rtl.css +1 -1
- package/components/sortable/sortable.css +1 -1
- package/components/statusbar/statusbar.js +1 -1
- package/components/stepper/stepper-rtl.css +1 -1
- package/components/stepper/stepper.css +1 -1
- package/components/subnavbar/subnavbar-md.less +4 -4
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout.css +1 -1
- package/components/swiper/swiper-rtl.css +1 -1
- package/components/swiper/swiper.css +1 -1
- package/components/tabs/tabs-rtl.css +1 -1
- package/components/tabs/tabs.css +1 -1
- package/components/text-editor/text-editor-rtl.css +1 -1
- package/components/text-editor/text-editor.css +1 -1
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline.css +1 -1
- package/components/toast/toast-rtl.css +1 -1
- package/components/toast/toast.css +1 -1
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle.css +1 -1
- package/components/toolbar/toolbar-ios.less +12 -4
- package/components/tooltip/tooltip-rtl.css +1 -1
- package/components/tooltip/tooltip.css +1 -1
- package/components/treeview/treeview-rtl.css +1 -1
- package/components/treeview/treeview.css +1 -1
- package/components/typography/typography-rtl.css +1 -1
- package/components/typography/typography.css +1 -1
- package/framework7-bundle-rtl.css +8 -8
- package/framework7-bundle-rtl.min.css +3 -11
- package/framework7-bundle.css +8 -8
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +12 -10
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +3 -11
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +2 -2
- package/framework7-lite.esm.js +2 -2
- package/framework7-rtl.css +8 -8
- package/framework7-rtl.min.css +3 -9
- package/framework7.css +8 -8
- package/framework7.esm.js +2 -2
- package/framework7.less +2 -2
- package/framework7.min.css +3 -9
- package/modules/router/router-class.js +7 -5
- package/modules/router/router.d.ts +2 -0
- package/modules/service-worker/service-worker.js +1 -1
- package/modules/touch/touch.js +1 -1
- package/package.json +2 -2
|
@@ -476,11 +476,13 @@ class Router extends Framework7Class {
|
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
router.xhrAbortController = new AbortController();
|
|
479
|
+
const fetchOptions = {
|
|
480
|
+
method: 'GET',
|
|
481
|
+
signal: router.xhrAbortController.signal
|
|
482
|
+
};
|
|
483
|
+
router.emit('routerAjaxStart', options, fetchOptions);
|
|
479
484
|
let fetchRes;
|
|
480
|
-
fetch(url, {
|
|
481
|
-
signal: router.xhrAbortController.signal,
|
|
482
|
-
method: 'GET'
|
|
483
|
-
}).then(res => {
|
|
485
|
+
fetch(url, fetchOptions).then(res => {
|
|
484
486
|
fetchRes = res;
|
|
485
487
|
return res.text();
|
|
486
488
|
}).then(responseText => {
|
|
@@ -779,7 +781,7 @@ class Router extends Framework7Class {
|
|
|
779
781
|
let {
|
|
780
782
|
browserHistoryRoot
|
|
781
783
|
} = router.params;
|
|
782
|
-
if ((window.cordova || window.Capacitor && window.Capacitor.isNative) && browserHistory && !browserHistorySeparator && !browserHistoryRoot && location.pathname.indexOf('index.html')) {
|
|
784
|
+
if ((window.cordova || window.Capacitor && (window.Capacitor.isNative || window.Capacitor.isNativePlatform && window.Capacitor.isNativePlatform())) && browserHistory && !browserHistorySeparator && !browserHistoryRoot && location.pathname.indexOf('index.html')) {
|
|
783
785
|
// eslint-disable-next-line
|
|
784
786
|
console.warn('Framework7: wrong or not complete browserHistory configuration, trying to guess browserHistoryRoot');
|
|
785
787
|
browserHistoryRoot = location.pathname.split('index.html')[0];
|
|
@@ -247,6 +247,8 @@ export namespace Router {
|
|
|
247
247
|
/** Event will be fired when router.updateCurrentUrl method called */
|
|
248
248
|
routeUrlUpdate(newRoute: Route, router: Router): void;
|
|
249
249
|
|
|
250
|
+
/** Event will be fired when the request starts. As an arguments receives navigating options object and request init object */
|
|
251
|
+
routerAjaxStart(options: RouteOptions, requestInit: RequestInit): void;
|
|
250
252
|
/** Event will be fired when the request succeeds. As an arguments receives XHR object and navigating options object */
|
|
251
253
|
routerAjaxSuccess(response: Response, options: RouteOptions): void;
|
|
252
254
|
/** Event will be fired if the request fails. As an arguments receives XHR object and navigating options object */
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
const window = getWindow();
|
|
73
73
|
if (!('serviceWorker' in window.navigator)) return;
|
|
74
74
|
const app = this;
|
|
75
|
-
if (app.device.cordova || window.Capacitor && window.Capacitor.isNative) return;
|
|
75
|
+
if (app.device.cordova || window.Capacitor && (window.Capacitor.isNative || window.Capacitor.isNativePlatform && window.Capacitor.isNativePlatform())) return;
|
|
76
76
|
if (!app.serviceWorker.container) return;
|
|
77
77
|
const paths = app.params.serviceWorker.path;
|
|
78
78
|
const scope = app.params.serviceWorker.scope;
|
package/modules/touch/touch.js
CHANGED
|
@@ -419,7 +419,7 @@ function initTouch() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
document.addEventListener('contextmenu', e => {
|
|
422
|
-
if (params.disableContextMenu && (device.ios || device.android || device.cordova || window.Capacitor && window.Capacitor.isNative)) {
|
|
422
|
+
if (params.disableContextMenu && (device.ios || device.android || device.cordova || window.Capacitor && (window.Capacitor.isNative || window.Capacitor.isNativePlatform && window.Capacitor.isNativePlatform()))) {
|
|
423
423
|
e.preventDefault();
|
|
424
424
|
}
|
|
425
425
|
if (useRipple) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framework7",
|
|
3
|
-
"version": "9.0.0
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Full featured mobile HTML framework for building iOS & Android apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -454,5 +454,5 @@
|
|
|
454
454
|
"ssr-window": "^5.0.1",
|
|
455
455
|
"swiper": "^12.0.3"
|
|
456
456
|
},
|
|
457
|
-
"releaseDate": "November
|
|
457
|
+
"releaseDate": "November 25, 2025"
|
|
458
458
|
}
|