framework7 7.0.9 → 7.1.1
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/framework7.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 7.
|
|
2
|
+
* Framework7 7.1.1
|
|
3
3
|
* Full featured mobile HTML framework for building iOS & Android apps
|
|
4
4
|
* https://framework7.io/
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: December 16, 2022
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function (global, factory) {
|
|
@@ -4687,7 +4687,7 @@
|
|
|
4687
4687
|
break;
|
|
4688
4688
|
}
|
|
4689
4689
|
|
|
4690
|
-
if (!name) throw new TypeError("Missing parameter name at "
|
|
4690
|
+
if (!name) throw new TypeError("Missing parameter name at ".concat(i));
|
|
4691
4691
|
tokens.push({
|
|
4692
4692
|
type: "NAME",
|
|
4693
4693
|
index: i,
|
|
@@ -4703,7 +4703,7 @@
|
|
|
4703
4703
|
var j = i + 1;
|
|
4704
4704
|
|
|
4705
4705
|
if (str[j] === "?") {
|
|
4706
|
-
throw new TypeError("Pattern cannot start with \"?\" at "
|
|
4706
|
+
throw new TypeError("Pattern cannot start with \"?\" at ".concat(j));
|
|
4707
4707
|
}
|
|
4708
4708
|
|
|
4709
4709
|
while (j < str.length) {
|
|
@@ -4723,15 +4723,15 @@
|
|
|
4723
4723
|
count++;
|
|
4724
4724
|
|
|
4725
4725
|
if (str[j + 1] !== "?") {
|
|
4726
|
-
throw new TypeError("Capturing groups are not allowed at "
|
|
4726
|
+
throw new TypeError("Capturing groups are not allowed at ".concat(j));
|
|
4727
4727
|
}
|
|
4728
4728
|
}
|
|
4729
4729
|
|
|
4730
4730
|
pattern += str[j++];
|
|
4731
4731
|
}
|
|
4732
4732
|
|
|
4733
|
-
if (count) throw new TypeError("Unbalanced pattern at "
|
|
4734
|
-
if (!pattern) throw new TypeError("Missing pattern at "
|
|
4733
|
+
if (count) throw new TypeError("Unbalanced pattern at ".concat(i));
|
|
4734
|
+
if (!pattern) throw new TypeError("Missing pattern at ".concat(i));
|
|
4735
4735
|
tokens.push({
|
|
4736
4736
|
type: "PATTERN",
|
|
4737
4737
|
index: i,
|
|
@@ -4768,7 +4768,7 @@
|
|
|
4768
4768
|
var tokens = lexer(str);
|
|
4769
4769
|
var _a = options.prefixes,
|
|
4770
4770
|
prefixes = _a === void 0 ? "./" : _a;
|
|
4771
|
-
var defaultPattern = "[^"
|
|
4771
|
+
var defaultPattern = "[^".concat(escapeString(options.delimiter || "/#?"), "]+?");
|
|
4772
4772
|
var result = [];
|
|
4773
4773
|
var key = 0;
|
|
4774
4774
|
var i = 0;
|
|
@@ -4784,12 +4784,12 @@
|
|
|
4784
4784
|
var _a = tokens[i],
|
|
4785
4785
|
nextType = _a.type,
|
|
4786
4786
|
index = _a.index;
|
|
4787
|
-
throw new TypeError("Unexpected "
|
|
4787
|
+
throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type));
|
|
4788
4788
|
};
|
|
4789
4789
|
|
|
4790
4790
|
var consumeText = function () {
|
|
4791
4791
|
var result = "";
|
|
4792
|
-
var value;
|
|
4792
|
+
var value;
|
|
4793
4793
|
|
|
4794
4794
|
while (value = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) {
|
|
4795
4795
|
result += value;
|
|
@@ -4887,7 +4887,7 @@
|
|
|
4887
4887
|
|
|
4888
4888
|
var matches = tokens.map(function (token) {
|
|
4889
4889
|
if (typeof token === "object") {
|
|
4890
|
-
return new RegExp("^(?:"
|
|
4890
|
+
return new RegExp("^(?:".concat(token.pattern, ")$"), reFlags);
|
|
4891
4891
|
}
|
|
4892
4892
|
});
|
|
4893
4893
|
return function (data) {
|
|
@@ -4907,19 +4907,19 @@
|
|
|
4907
4907
|
|
|
4908
4908
|
if (Array.isArray(value)) {
|
|
4909
4909
|
if (!repeat) {
|
|
4910
|
-
throw new TypeError("Expected \""
|
|
4910
|
+
throw new TypeError("Expected \"".concat(token.name, "\" to not repeat, but got an array"));
|
|
4911
4911
|
}
|
|
4912
4912
|
|
|
4913
4913
|
if (value.length === 0) {
|
|
4914
4914
|
if (optional) continue;
|
|
4915
|
-
throw new TypeError("Expected \""
|
|
4915
|
+
throw new TypeError("Expected \"".concat(token.name, "\" to not be empty"));
|
|
4916
4916
|
}
|
|
4917
4917
|
|
|
4918
4918
|
for (var j = 0; j < value.length; j++) {
|
|
4919
4919
|
var segment = encode(value[j], token);
|
|
4920
4920
|
|
|
4921
4921
|
if (validate && !matches[i].test(segment)) {
|
|
4922
|
-
throw new TypeError("Expected all \""
|
|
4922
|
+
throw new TypeError("Expected all \"".concat(token.name, "\" to match \"").concat(token.pattern, "\", but got \"").concat(segment, "\""));
|
|
4923
4923
|
}
|
|
4924
4924
|
|
|
4925
4925
|
path += token.prefix + segment + token.suffix;
|
|
@@ -4932,7 +4932,7 @@
|
|
|
4932
4932
|
var segment = encode(String(value), token);
|
|
4933
4933
|
|
|
4934
4934
|
if (validate && !matches[i].test(segment)) {
|
|
4935
|
-
throw new TypeError("Expected \""
|
|
4935
|
+
throw new TypeError("Expected \"".concat(token.name, "\" to match \"").concat(token.pattern, "\", but got \"").concat(segment, "\""));
|
|
4936
4936
|
}
|
|
4937
4937
|
|
|
4938
4938
|
path += token.prefix + segment + token.suffix;
|
|
@@ -4941,7 +4941,7 @@
|
|
|
4941
4941
|
|
|
4942
4942
|
if (optional) continue;
|
|
4943
4943
|
var typeOfMessage = repeat ? "an array" : "a string";
|
|
4944
|
-
throw new TypeError("Expected \""
|
|
4944
|
+
throw new TypeError("Expected \"".concat(token.name, "\" to be ").concat(typeOfMessage));
|
|
4945
4945
|
}
|
|
4946
4946
|
|
|
4947
4947
|
return path;
|
|
@@ -4996,7 +4996,7 @@
|
|
|
4996
4996
|
var parts = paths.map(function (path) {
|
|
4997
4997
|
return pathToRegexp(path, keys, options).source;
|
|
4998
4998
|
});
|
|
4999
|
-
return new RegExp("(?:"
|
|
4999
|
+
return new RegExp("(?:".concat(parts.join("|"), ")"), flags(options));
|
|
5000
5000
|
}
|
|
5001
5001
|
/**
|
|
5002
5002
|
* Create a path regexp from string input.
|
|
@@ -5025,9 +5025,13 @@
|
|
|
5025
5025
|
_d = options.encode,
|
|
5026
5026
|
encode = _d === void 0 ? function (x) {
|
|
5027
5027
|
return x;
|
|
5028
|
-
} : _d
|
|
5029
|
-
|
|
5030
|
-
|
|
5028
|
+
} : _d,
|
|
5029
|
+
_e = options.delimiter,
|
|
5030
|
+
delimiter = _e === void 0 ? "/#?" : _e,
|
|
5031
|
+
_f = options.endsWith,
|
|
5032
|
+
endsWith = _f === void 0 ? "" : _f;
|
|
5033
|
+
var endsWithRe = "[".concat(escapeString(endsWith), "]|$");
|
|
5034
|
+
var delimiterRe = "[".concat(escapeString(delimiter), "]");
|
|
5031
5035
|
var route = start ? "^" : ""; // Iterate over the tokens and create our regexp string.
|
|
5032
5036
|
|
|
5033
5037
|
for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
|
|
@@ -5045,33 +5049,36 @@
|
|
|
5045
5049
|
if (prefix || suffix) {
|
|
5046
5050
|
if (token.modifier === "+" || token.modifier === "*") {
|
|
5047
5051
|
var mod = token.modifier === "*" ? "?" : "";
|
|
5048
|
-
route += "(?:"
|
|
5052
|
+
route += "(?:".concat(prefix, "((?:").concat(token.pattern, ")(?:").concat(suffix).concat(prefix, "(?:").concat(token.pattern, "))*)").concat(suffix, ")").concat(mod);
|
|
5049
5053
|
} else {
|
|
5050
|
-
route += "(?:"
|
|
5054
|
+
route += "(?:".concat(prefix, "(").concat(token.pattern, ")").concat(suffix, ")").concat(token.modifier);
|
|
5051
5055
|
}
|
|
5052
5056
|
} else {
|
|
5053
|
-
|
|
5057
|
+
if (token.modifier === "+" || token.modifier === "*") {
|
|
5058
|
+
route += "((?:".concat(token.pattern, ")").concat(token.modifier, ")");
|
|
5059
|
+
} else {
|
|
5060
|
+
route += "(".concat(token.pattern, ")").concat(token.modifier);
|
|
5061
|
+
}
|
|
5054
5062
|
}
|
|
5055
5063
|
} else {
|
|
5056
|
-
route += "(?:"
|
|
5064
|
+
route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
|
|
5057
5065
|
}
|
|
5058
5066
|
}
|
|
5059
5067
|
}
|
|
5060
5068
|
|
|
5061
5069
|
if (end) {
|
|
5062
|
-
if (!strict) route +=
|
|
5063
|
-
route += !options.endsWith ? "$" : "(?="
|
|
5070
|
+
if (!strict) route += "".concat(delimiterRe, "?");
|
|
5071
|
+
route += !options.endsWith ? "$" : "(?=".concat(endsWithRe, ")");
|
|
5064
5072
|
} else {
|
|
5065
5073
|
var endToken = tokens[tokens.length - 1];
|
|
5066
|
-
var isEndDelimited = typeof endToken === "string" ?
|
|
5067
|
-
endToken === undefined;
|
|
5074
|
+
var isEndDelimited = typeof endToken === "string" ? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1 : endToken === undefined;
|
|
5068
5075
|
|
|
5069
5076
|
if (!strict) {
|
|
5070
|
-
route += "(?:"
|
|
5077
|
+
route += "(?:".concat(delimiterRe, "(?=").concat(endsWithRe, "))?");
|
|
5071
5078
|
}
|
|
5072
5079
|
|
|
5073
5080
|
if (!isEndDelimited) {
|
|
5074
|
-
route += "(?="
|
|
5081
|
+
route += "(?=".concat(delimiterRe, "|").concat(endsWithRe, ")");
|
|
5075
5082
|
}
|
|
5076
5083
|
}
|
|
5077
5084
|
|
|
@@ -6130,12 +6137,17 @@
|
|
|
6130
6137
|
}
|
|
6131
6138
|
}
|
|
6132
6139
|
|
|
6133
|
-
function refreshPage() {
|
|
6140
|
+
function refreshPage(props) {
|
|
6141
|
+
if (props === void 0) {
|
|
6142
|
+
props = {};
|
|
6143
|
+
}
|
|
6144
|
+
|
|
6134
6145
|
const router = this;
|
|
6135
6146
|
appRouterCheck(router, 'refreshPage');
|
|
6136
6147
|
return router.navigate(router.currentRoute.url, {
|
|
6137
6148
|
ignoreCache: true,
|
|
6138
|
-
reloadCurrent: true
|
|
6149
|
+
reloadCurrent: true,
|
|
6150
|
+
props
|
|
6139
6151
|
});
|
|
6140
6152
|
}
|
|
6141
6153
|
|
|
@@ -8080,6 +8092,7 @@
|
|
|
8080
8092
|
} = params;
|
|
8081
8093
|
|
|
8082
8094
|
if (options.route.url && router.url === options.route.url && !(options.reloadCurrent || options.reloadPrevious) && !router.params.allowDuplicateUrls) {
|
|
8095
|
+
router.allowPageChange = true;
|
|
8083
8096
|
return false;
|
|
8084
8097
|
}
|
|
8085
8098
|
|