framework7 7.0.8 → 7.1.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/panel/panel-class.js +11 -2
- package/components/panel/panel.lazy.js +1 -1
- package/components/photo-browser/photo-browser-class.js +1 -0
- package/components/photo-browser/photo-browser.d.ts +2 -0
- package/components/photo-browser/photo-browser.js +1 -0
- package/components/photo-browser/photo-browser.lazy.js +1 -1
- package/components/skeleton/skeleton.less +1 -1
- package/components/smart-select/smart-select-class.js +18 -4
- package/components/smart-select/smart-select.d.ts +2 -1
- package/components/smart-select/smart-select.js +1 -0
- package/components/smart-select/smart-select.lazy.js +1 -1
- 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/swiper/swiper.less +1 -1
- package/framework7-bundle-rtl.css +640 -5
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +640 -5
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +386 -127
- 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 +2 -2
- package/framework7-lite.esm.js +2 -2
- package/framework7-lite.js +26 -0
- package/framework7-rtl.css +2 -2
- package/framework7-rtl.min.css +2 -2
- package/framework7.css +2 -2
- package/framework7.esm.js +2 -2
- package/framework7.js +45 -32
- package/framework7.js.map +1 -1
- package/framework7.less +2 -2
- package/framework7.min.css +2 -2
- package/framework7.min.js +3 -3
- package/framework7.min.js.map +1 -1
- package/less/plugin.js +18 -0
- package/modules/router/back.js +1 -0
- package/modules/router/navigate.js +7 -2
- package/modules/router/router.d.ts +1 -1
- package/package.json +5 -8
- package/postinstall.js +0 -3
package/less/plugin.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
|
|
3
|
+
function base64Encode(file) {
|
|
4
|
+
// read binary data
|
|
5
|
+
const bitmap = fs.readFileSync(file); // convert binary data to base64 encoded string
|
|
6
|
+
|
|
7
|
+
return Buffer.from(bitmap).toString('base64');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
install(less, pluginManager, functions) {
|
|
12
|
+
functions.add('framework7_coreIconsFont', () => {
|
|
13
|
+
const iconsFontBase64 = base64Encode('./src/core/icons/font/framework7-core-icons.woff');
|
|
14
|
+
return iconsFontBase64;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
};
|
package/modules/router/back.js
CHANGED
|
@@ -496,6 +496,7 @@ function loadBack(router, backParams, backOptions, ignorePageChange) {
|
|
|
496
496
|
} = params;
|
|
497
497
|
|
|
498
498
|
if (options.route.url && router.url === options.route.url && !(options.reloadCurrent || options.reloadPrevious) && !router.params.allowDuplicateUrls) {
|
|
499
|
+
router.allowPageChange = true;
|
|
499
500
|
return false;
|
|
500
501
|
}
|
|
501
502
|
|
|
@@ -7,12 +7,17 @@ import processRouteQueue from './process-route-queue.js';
|
|
|
7
7
|
import appRouterCheck from './app-router-check.js';
|
|
8
8
|
import asyncComponent from './async-component.js';
|
|
9
9
|
|
|
10
|
-
function refreshPage() {
|
|
10
|
+
function refreshPage(props) {
|
|
11
|
+
if (props === void 0) {
|
|
12
|
+
props = {};
|
|
13
|
+
}
|
|
14
|
+
|
|
11
15
|
const router = this;
|
|
12
16
|
appRouterCheck(router, 'refreshPage');
|
|
13
17
|
return router.navigate(router.currentRoute.url, {
|
|
14
18
|
ignoreCache: true,
|
|
15
|
-
reloadCurrent: true
|
|
19
|
+
reloadCurrent: true,
|
|
20
|
+
props
|
|
16
21
|
});
|
|
17
22
|
}
|
|
18
23
|
|
|
@@ -226,7 +226,7 @@ export namespace Router {
|
|
|
226
226
|
/** Go back to previous page, going back in View history */
|
|
227
227
|
back(url?: string, options?: RouteOptions): Router;
|
|
228
228
|
/** Refresh/reload current page */
|
|
229
|
-
refreshPage(): Router;
|
|
229
|
+
refreshPage(props?: any): Router;
|
|
230
230
|
/** Clear router previous pages history and remove all previous pages from DOM */
|
|
231
231
|
clearPreviousHistory(): Router;
|
|
232
232
|
/** Updates current route url, and updates `router.currentRoute` properties (query, params, hash, etc.) based on passed url. This method doesn't load or reload any content. It just changes current route url */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framework7",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "Full featured mobile HTML framework for building iOS & Android apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -421,9 +421,6 @@
|
|
|
421
421
|
"*.css",
|
|
422
422
|
"shared/dom7.js"
|
|
423
423
|
],
|
|
424
|
-
"scripts": {
|
|
425
|
-
"postinstall": "node postinstall.js"
|
|
426
|
-
},
|
|
427
424
|
"repository": {
|
|
428
425
|
"type": "git",
|
|
429
426
|
"url": "https://github.com/framework7io/framework7.git"
|
|
@@ -461,10 +458,10 @@
|
|
|
461
458
|
},
|
|
462
459
|
"dependencies": {
|
|
463
460
|
"dom7": "^4.0.4",
|
|
464
|
-
"htm": "^3.1.
|
|
465
|
-
"path-to-regexp": "^6.2.
|
|
466
|
-
"skeleton-elements": "^4.0.
|
|
461
|
+
"htm": "^3.1.1",
|
|
462
|
+
"path-to-regexp": "^6.2.1",
|
|
463
|
+
"skeleton-elements": "^4.0.1",
|
|
467
464
|
"ssr-window": "^4.0.2",
|
|
468
|
-
"swiper": "^8.
|
|
465
|
+
"swiper": "^8.4.5"
|
|
469
466
|
}
|
|
470
467
|
}
|
package/postinstall.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
console.log('\u001b[35m\u001b[1m','Love Framework7? Support Vladimir\'s work by donating or pledging:');
|
|
2
|
-
console.log('\u001b[22m\u001b[39m\u001b[32m','> On Patreon https://patreon.com/framework7');
|
|
3
|
-
console.log('\u001b[22m\u001b[39m\u001b[32m','> On Open Collective http://opencollective.com/framework7');
|