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.
Files changed (125) hide show
  1. package/components/accordion/accordion-rtl.css +1 -1
  2. package/components/accordion/accordion.css +1 -1
  3. package/components/actions/actions-rtl.css +1 -1
  4. package/components/actions/actions.css +1 -1
  5. package/components/area-chart/area-chart-rtl.css +1 -1
  6. package/components/area-chart/area-chart.css +1 -1
  7. package/components/autocomplete/autocomplete-rtl.css +1 -1
  8. package/components/autocomplete/autocomplete.css +1 -1
  9. package/components/breadcrumbs/breadcrumbs-rtl.css +1 -1
  10. package/components/breadcrumbs/breadcrumbs.css +1 -1
  11. package/components/calendar/calendar-rtl.css +1 -1
  12. package/components/calendar/calendar.css +1 -1
  13. package/components/card/card-rtl.css +1 -1
  14. package/components/card/card.css +1 -1
  15. package/components/checkbox/checkbox-rtl.css +1 -1
  16. package/components/checkbox/checkbox.css +1 -1
  17. package/components/chip/chip-rtl.css +1 -1
  18. package/components/chip/chip.css +1 -1
  19. package/components/color-picker/color-picker-rtl.css +1 -1
  20. package/components/color-picker/color-picker.css +1 -1
  21. package/components/contacts-list/contacts-list-rtl.css +1 -1
  22. package/components/contacts-list/contacts-list.css +1 -1
  23. package/components/data-table/data-table-rtl.css +1 -1
  24. package/components/data-table/data-table.css +1 -1
  25. package/components/dialog/dialog-rtl.css +1 -1
  26. package/components/dialog/dialog.css +1 -1
  27. package/components/fab/fab-rtl.css +1 -1
  28. package/components/fab/fab.css +1 -1
  29. package/components/gauge/gauge-rtl.css +1 -1
  30. package/components/gauge/gauge.css +1 -1
  31. package/components/infinite-scroll/infinite-scroll-rtl.css +1 -1
  32. package/components/infinite-scroll/infinite-scroll.css +1 -1
  33. package/components/input/input-rtl.css +1 -1
  34. package/components/input/input.css +1 -1
  35. package/components/list-index/list-index-rtl.css +1 -1
  36. package/components/list-index/list-index.css +1 -1
  37. package/components/login-screen/login-screen-rtl.css +1 -1
  38. package/components/login-screen/login-screen.css +1 -1
  39. package/components/messagebar/messagebar-rtl.css +1 -1
  40. package/components/messagebar/messagebar.css +1 -1
  41. package/components/messages/messages-rtl.css +1 -1
  42. package/components/messages/messages.css +1 -1
  43. package/components/navbar/navbar-ios.less +6 -2
  44. package/components/notification/notification-rtl.css +1 -1
  45. package/components/notification/notification.css +1 -1
  46. package/components/panel/panel-rtl.css +1 -3
  47. package/components/panel/panel.css +1 -3
  48. package/components/photo-browser/photo-browser-rtl.css +1 -1
  49. package/components/photo-browser/photo-browser.css +1 -1
  50. package/components/picker/picker-rtl.css +1 -1
  51. package/components/picker/picker.css +1 -1
  52. package/components/pie-chart/pie-chart-rtl.css +1 -1
  53. package/components/pie-chart/pie-chart.css +1 -1
  54. package/components/popover/popover-rtl.css +1 -1
  55. package/components/popover/popover.css +1 -1
  56. package/components/popup/popup-rtl.css +1 -1
  57. package/components/popup/popup.css +1 -1
  58. package/components/preloader/preloader-rtl.css +1 -1
  59. package/components/preloader/preloader.css +1 -1
  60. package/components/progressbar/progressbar-rtl.css +1 -1
  61. package/components/progressbar/progressbar.css +1 -1
  62. package/components/pull-to-refresh/pull-to-refresh-rtl.css +1 -1
  63. package/components/pull-to-refresh/pull-to-refresh.css +1 -1
  64. package/components/radio/radio-rtl.css +1 -1
  65. package/components/radio/radio.css +1 -1
  66. package/components/range/range-rtl.css +1 -1
  67. package/components/range/range.css +1 -1
  68. package/components/searchbar/searchbar-rtl.css +1 -1
  69. package/components/searchbar/searchbar.css +1 -1
  70. package/components/sheet/sheet-rtl.css +1 -1
  71. package/components/sheet/sheet.css +1 -1
  72. package/components/skeleton/skeleton-rtl.css +1 -1
  73. package/components/skeleton/skeleton.css +1 -1
  74. package/components/smart-select/smart-select-rtl.css +1 -1
  75. package/components/smart-select/smart-select.css +1 -1
  76. package/components/sortable/sortable-rtl.css +1 -1
  77. package/components/sortable/sortable.css +1 -1
  78. package/components/statusbar/statusbar.js +1 -1
  79. package/components/stepper/stepper-rtl.css +1 -1
  80. package/components/stepper/stepper.css +1 -1
  81. package/components/subnavbar/subnavbar-md.less +4 -4
  82. package/components/swipeout/swipeout-rtl.css +1 -1
  83. package/components/swipeout/swipeout.css +1 -1
  84. package/components/swiper/swiper-rtl.css +1 -1
  85. package/components/swiper/swiper.css +1 -1
  86. package/components/tabs/tabs-rtl.css +1 -1
  87. package/components/tabs/tabs.css +1 -1
  88. package/components/text-editor/text-editor-rtl.css +1 -1
  89. package/components/text-editor/text-editor.css +1 -1
  90. package/components/timeline/timeline-rtl.css +1 -1
  91. package/components/timeline/timeline.css +1 -1
  92. package/components/toast/toast-rtl.css +1 -1
  93. package/components/toast/toast.css +1 -1
  94. package/components/toggle/toggle-rtl.css +1 -1
  95. package/components/toggle/toggle.css +1 -1
  96. package/components/toolbar/toolbar-ios.less +12 -4
  97. package/components/tooltip/tooltip-rtl.css +1 -1
  98. package/components/tooltip/tooltip.css +1 -1
  99. package/components/treeview/treeview-rtl.css +1 -1
  100. package/components/treeview/treeview.css +1 -1
  101. package/components/typography/typography-rtl.css +1 -1
  102. package/components/typography/typography.css +1 -1
  103. package/framework7-bundle-rtl.css +8 -8
  104. package/framework7-bundle-rtl.min.css +3 -11
  105. package/framework7-bundle.css +8 -8
  106. package/framework7-bundle.esm.js +2 -2
  107. package/framework7-bundle.js +12 -10
  108. package/framework7-bundle.js.map +1 -1
  109. package/framework7-bundle.less +2 -2
  110. package/framework7-bundle.min.css +3 -11
  111. package/framework7-bundle.min.js +3 -3
  112. package/framework7-bundle.min.js.map +1 -1
  113. package/framework7-lite-bundle.esm.js +2 -2
  114. package/framework7-lite.esm.js +2 -2
  115. package/framework7-rtl.css +8 -8
  116. package/framework7-rtl.min.css +3 -9
  117. package/framework7.css +8 -8
  118. package/framework7.esm.js +2 -2
  119. package/framework7.less +2 -2
  120. package/framework7.min.css +3 -9
  121. package/modules/router/router-class.js +7 -5
  122. package/modules/router/router.d.ts +2 -0
  123. package/modules/service-worker/service-worker.js +1 -1
  124. package/modules/touch/touch.js +1 -1
  125. 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;
@@ -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-beta.1",
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 10, 2025"
457
+ "releaseDate": "November 25, 2025"
458
458
  }