framework7 8.0.0-beta.2 → 8.0.0-beta.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.
- package/components/app/app-class.js +6 -2
- package/components/preloader/preloader-ios.less +3 -1
- package/components/preloader/preloader-rtl.css +1 -1
- package/components/preloader/preloader.css +1 -1
- package/components/smart-select/smart-select-class.js +4 -4
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline.css +1 -1
- package/components/timeline/timeline.less +35 -11
- package/components/toolbar/toolbar-ios.less +1 -0
- package/framework7-bundle-rtl.css +329 -92
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +329 -92
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +16 -12
- 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 +31 -0
- package/framework7-rtl.css +3 -2
- package/framework7-rtl.min.css +3 -3
- package/framework7.css +3 -2
- package/framework7.esm.js +2 -2
- package/framework7.js +42 -0
- package/framework7.less +2 -2
- package/framework7.min.css +3 -3
- package/less/plugin.js +15 -0
- package/modules/router/router-class.js +4 -4
- package/package.json +3 -19
package/less/plugin.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
function base64Encode(file) {
|
|
3
|
+
// read binary data
|
|
4
|
+
const bitmap = fs.readFileSync(file);
|
|
5
|
+
// convert binary data to base64 encoded string
|
|
6
|
+
return Buffer.from(bitmap).toString('base64');
|
|
7
|
+
}
|
|
8
|
+
module.exports = {
|
|
9
|
+
install(less, pluginManager, functions) {
|
|
10
|
+
functions.add('framework7_coreIconsFont', () => {
|
|
11
|
+
const iconsFontBase64 = base64Encode('./src/core/icons/font/framework7-core-icons.woff');
|
|
12
|
+
return iconsFontBase64;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -574,7 +574,7 @@ class Router extends Framework7Class {
|
|
|
574
574
|
flattenedRoutes.forEach(route => {
|
|
575
575
|
if (matchingRoute) return;
|
|
576
576
|
const keys = [];
|
|
577
|
-
const pathsToMatch = [route.path];
|
|
577
|
+
const pathsToMatch = [route.path || '/'];
|
|
578
578
|
if (route.alias) {
|
|
579
579
|
if (typeof route.alias === 'string') pathsToMatch.push(route.alias);else if (Array.isArray(route.alias)) {
|
|
580
580
|
route.alias.forEach(aliasPath => {
|
|
@@ -585,7 +585,7 @@ class Router extends Framework7Class {
|
|
|
585
585
|
let matched;
|
|
586
586
|
pathsToMatch.forEach(pathToMatch => {
|
|
587
587
|
if (matched) return;
|
|
588
|
-
matched = pathToRegexp(pathToMatch, keys).exec(path);
|
|
588
|
+
matched = pathToRegexp(pathToMatch, keys).exec(path || '/');
|
|
589
589
|
});
|
|
590
590
|
if (matched) {
|
|
591
591
|
keys.forEach((keyObj, index) => {
|
|
@@ -599,14 +599,14 @@ class Router extends Framework7Class {
|
|
|
599
599
|
});
|
|
600
600
|
let parentPath;
|
|
601
601
|
if (route.parentPath) {
|
|
602
|
-
parentPath = path.split('/').slice(0, route.parentPath.split('/').length - 1).join('/');
|
|
602
|
+
parentPath = (path || '/').split('/').slice(0, route.parentPath.split('/').length - 1).join('/');
|
|
603
603
|
}
|
|
604
604
|
matchingRoute = {
|
|
605
605
|
query,
|
|
606
606
|
hash,
|
|
607
607
|
params,
|
|
608
608
|
url,
|
|
609
|
-
path,
|
|
609
|
+
path: path || '/',
|
|
610
610
|
parentPath,
|
|
611
611
|
route,
|
|
612
612
|
name: route.name
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framework7",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.4",
|
|
4
4
|
"description": "Full featured mobile HTML framework for building iOS & Android apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -150,10 +150,6 @@
|
|
|
150
150
|
"./components/pull-to-refresh/less": "./components/pull-to-refresh/pull-to-refresh.less",
|
|
151
151
|
"./components/pull-to-refresh/css": "./components/pull-to-refresh/pull-to-refresh.css",
|
|
152
152
|
"./components/pull-to-refresh/css/rtl": "./components/pull-to-refresh/pull-to-refresh-rtl.css",
|
|
153
|
-
"./components/lazy": "./components/lazy/lazy.js",
|
|
154
|
-
"./components/lazy/less": "./components/lazy/lazy.less",
|
|
155
|
-
"./components/lazy/css": "./components/lazy/lazy.css",
|
|
156
|
-
"./components/lazy/css/rtl": "./components/lazy/lazy-rtl.css",
|
|
157
153
|
"./components/data-table": "./components/data-table/data-table.js",
|
|
158
154
|
"./components/data-table/less": "./components/data-table/data-table.less",
|
|
159
155
|
"./components/data-table/css": "./components/data-table/data-table.css",
|
|
@@ -202,10 +198,6 @@
|
|
|
202
198
|
"./components/skeleton/less": "./components/skeleton/skeleton.less",
|
|
203
199
|
"./components/skeleton/css": "./components/skeleton/skeleton.css",
|
|
204
200
|
"./components/skeleton/css/rtl": "./components/skeleton/skeleton-rtl.css",
|
|
205
|
-
"./components/menu": "./components/menu/menu.js",
|
|
206
|
-
"./components/menu/less": "./components/menu/menu.less",
|
|
207
|
-
"./components/menu/css": "./components/menu/menu.css",
|
|
208
|
-
"./components/menu/css/rtl": "./components/menu/menu-rtl.css",
|
|
209
201
|
"./components/color-picker": "./components/color-picker/color-picker.js",
|
|
210
202
|
"./components/color-picker/less": "./components/color-picker/color-picker.less",
|
|
211
203
|
"./components/color-picker/css": "./components/color-picker/color-picker.css",
|
|
@@ -340,9 +332,6 @@
|
|
|
340
332
|
"components/pull-to-refresh": [
|
|
341
333
|
"./components/pull-to-refresh/pull-to-refresh"
|
|
342
334
|
],
|
|
343
|
-
"components/lazy": [
|
|
344
|
-
"./components/lazy/lazy.d.ts"
|
|
345
|
-
],
|
|
346
335
|
"components/data-table": [
|
|
347
336
|
"./components/data-table/data-table.d.ts"
|
|
348
337
|
],
|
|
@@ -376,9 +365,6 @@
|
|
|
376
365
|
"components/skeleton": [
|
|
377
366
|
"./components/skeleton/skeleton.d.ts"
|
|
378
367
|
],
|
|
379
|
-
"components/menu": [
|
|
380
|
-
"./components/menu/menu.d.ts"
|
|
381
|
-
],
|
|
382
368
|
"components/color-picker": [
|
|
383
369
|
"./components/color-picker/color-picker.d.ts"
|
|
384
370
|
],
|
|
@@ -388,9 +374,6 @@
|
|
|
388
374
|
"components/text-editor": [
|
|
389
375
|
"./components/text-editor/text-editor.d.ts"
|
|
390
376
|
],
|
|
391
|
-
"components/elevation": [
|
|
392
|
-
"./components/elevation/elevation.d.ts"
|
|
393
|
-
],
|
|
394
377
|
"components/typography": [
|
|
395
378
|
"./components/typography/typography.d.ts"
|
|
396
379
|
],
|
|
@@ -452,5 +435,6 @@
|
|
|
452
435
|
"skeleton-elements": "^4.0.1",
|
|
453
436
|
"ssr-window": "^4.0.2",
|
|
454
437
|
"swiper": "^9.0.3"
|
|
455
|
-
}
|
|
438
|
+
},
|
|
439
|
+
"releaseDate": "March 14, 2023"
|
|
456
440
|
}
|