framework7 7.0.1 → 7.0.4

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 (40) hide show
  1. package/components/calendar/calendar.d.ts +2 -2
  2. package/components/data-table/data-table.less +1 -1
  3. package/components/popover/popover-class.js +8 -6
  4. package/components/popover/popover.d.ts +2 -0
  5. package/components/popover/popover.js +1 -0
  6. package/components/popover/popover.lazy.js +1 -1
  7. package/components/searchbar/searchbar.lazy.js +1 -1
  8. package/components/smart-select/smart-select-class.js +2 -1
  9. package/components/smart-select/smart-select.lazy.js +1 -1
  10. package/components/swiper/swiper-rtl.css +1 -1
  11. package/components/swiper/swiper.css +1 -1
  12. package/components/swiper/swiper.lazy.js +1 -1
  13. package/framework7-bundle-rtl.css +5 -5
  14. package/framework7-bundle-rtl.min.css +3 -3
  15. package/framework7-bundle.css +5 -5
  16. package/framework7-bundle.esm.js +2 -2
  17. package/framework7-bundle.js +413 -337
  18. package/framework7-bundle.js.map +1 -1
  19. package/framework7-bundle.less +2 -2
  20. package/framework7-bundle.min.css +3 -3
  21. package/framework7-bundle.min.js +3 -3
  22. package/framework7-bundle.min.js.map +1 -1
  23. package/framework7-lite-bundle.esm.js +2 -2
  24. package/framework7-lite.esm.js +2 -2
  25. package/framework7-rtl.css +2 -2
  26. package/framework7-rtl.min.css +2 -2
  27. package/framework7.css +2 -2
  28. package/framework7.d.ts +7 -7
  29. package/framework7.esm.js +2 -2
  30. package/framework7.js +38 -5
  31. package/framework7.js.map +1 -1
  32. package/framework7.less +2 -2
  33. package/framework7.min.css +2 -2
  34. package/framework7.min.js +3 -3
  35. package/framework7.min.js.map +1 -1
  36. package/modules/component/component-class.js +2 -0
  37. package/modules/component/snabbdom/snabbdom.js +2 -2
  38. package/package.json +2 -2
  39. package/shared/history.js +12 -1
  40. package/shared/request.d.ts +1 -1
@@ -5,6 +5,7 @@ import $h from './$h.js';
5
5
  import { id as generateId, merge, eventNameToColonCase, deleteProps } from '../../shared/utils.js';
6
6
  import vdom from './vdom.js';
7
7
  import patch from './patch.js';
8
+ import $jsx from './$jsx.js';
8
9
 
9
10
  class Component {
10
11
  constructor(app, component, props, _temp) {
@@ -392,4 +393,5 @@ class Component {
392
393
 
393
394
  }
394
395
 
396
+ Component.$jsx = $jsx;
395
397
  export default Component;
@@ -39,8 +39,8 @@ function createKeyToOldIdx(children, beginIdx, endIdx) {
39
39
  }
40
40
 
41
41
  var hooks = ['create', 'update', 'remove', 'destroy', 'pre', 'post'];
42
- export { h } from './h';
43
- export { thunk } from './thunk';
42
+ export { h } from './h.js';
43
+ export { thunk } from './thunk.js';
44
44
  export function init(modules, domApi) {
45
45
  var i,
46
46
  j,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7",
3
- "version": "7.0.1",
3
+ "version": "7.0.4",
4
4
  "description": "Full featured mobile HTML framework for building iOS & Android apps",
5
5
  "type": "module",
6
6
  "exports": {
@@ -302,6 +302,6 @@
302
302
  "path-to-regexp": "^6.2.0",
303
303
  "skeleton-elements": "^4.0.0",
304
304
  "ssr-window": "^4.0.2",
305
- "swiper": "^8.1.1"
305
+ "swiper": "^8.1.4"
306
306
  }
307
307
  }
package/shared/history.js CHANGED
@@ -106,11 +106,22 @@ const History = {
106
106
 
107
107
  push(viewId, viewState, url) {
108
108
  const window = getWindow();
109
+ const document = getDocument();
110
+ /* eslint-disable no-param-reassign */
109
111
 
110
112
  if (url.substr(-3) === '#!/') {
111
- // eslint-disable-next-line
112
113
  url = url.replace('#!/', '');
114
+
115
+ if (url === '') {
116
+ url = document.location.href;
117
+
118
+ if (url.includes('#!/')) {
119
+ url = document.location.href.split('#!/')[0];
120
+ }
121
+ }
113
122
  }
123
+ /* eslint-enable no-param-reassign */
124
+
114
125
 
115
126
  if (!History.allowChange) {
116
127
  History.queue.push(() => {
@@ -50,7 +50,7 @@ export interface RequestParameters {
50
50
  /** An object of fieldName-fieldValue pairs to set on the native XHR object */
51
51
  xhrFields?: { [key: string]: any };
52
52
  /** A username to be used with XMLHttpRequest in response to an HTTP access authentication request */
53
- username?: string;
53
+ user?: string;
54
54
  /** A password to be used with XMLHttpRequest in response to an HTTP access authentication request */
55
55
  password?: string;
56
56
  /** Set a timeout (in milliseconds) for the request */