framework7 8.0.2 → 8.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.
- package/components/area-chart/area-chart-rtl.css +1 -1
- package/components/area-chart/area-chart-vars.less +7 -1
- package/components/area-chart/area-chart.css +1 -1
- package/components/button/button-vars.less +2 -0
- package/components/calendar/calendar-class.js +4 -4
- package/components/card/card.js +4 -4
- package/components/chip/chip-ios.less +8 -0
- package/components/chip/chip-md.less +8 -0
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip.css +1 -1
- package/components/chip/chip.less +6 -10
- package/components/input/input-rtl.css +1 -1
- package/components/input/input.css +1 -1
- package/components/input/input.less +0 -3
- package/components/popup/popup-class.js +4 -3
- package/components/pull-to-refresh/pull-to-refresh-class.js +3 -1
- package/components/sheet/sheet-class.js +2 -2
- package/framework7-bundle-rtl.css +16 -7
- package/framework7-bundle-rtl.min.css +4 -4
- package/framework7-bundle.css +16 -7
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +28 -19
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +4 -4
- 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-rtl.css +4 -2
- package/framework7-rtl.min.css +3 -3
- package/framework7.css +4 -2
- package/framework7.esm.js +2 -2
- package/framework7.less +2 -2
- package/framework7.min.css +3 -3
- package/modules/router/swipe-back.js +4 -1
- package/modules/touch/touch.js +3 -0
- package/package.json +2 -2
- package/shared/utils.js +2 -2
package/framework7-bundle.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 8.0.
|
|
2
|
+
* Framework7 8.0.4
|
|
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: May 3, 2023
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/*====================
|
|
@@ -4535,7 +4535,9 @@ li.list-group-title:after,
|
|
|
4535
4535
|
--f7-button-border-radius: 4px;
|
|
4536
4536
|
--f7-button-font-weight: 600;
|
|
4537
4537
|
--f7-button-letter-spacing: 0;
|
|
4538
|
+
/*
|
|
4538
4539
|
--f7-button-outline-border-color: var(--f7-theme-color);
|
|
4540
|
+
*/
|
|
4539
4541
|
--f7-button-outline-border-width: 2px;
|
|
4540
4542
|
/*
|
|
4541
4543
|
--f7-button-pressed-bg-color: rgba(var(--f7-theme-color-rgb), .15);
|
|
@@ -10046,7 +10048,6 @@ html.with-modal-sheet-push-closing .framework7-root > .panel-in.panel-push.panel
|
|
|
10046
10048
|
color: #fff;
|
|
10047
10049
|
font-size: var(--f7-chip-media-font-size);
|
|
10048
10050
|
vertical-align: middle;
|
|
10049
|
-
margin-left: calc(-1 * var(--f7-chip-padding-horizontal) + 4px);
|
|
10050
10051
|
}
|
|
10051
10052
|
.chip-media i.icon {
|
|
10052
10053
|
font-size: calc(var(--f7-chip-media-size) - 8px);
|
|
@@ -10122,6 +10123,9 @@ html.with-modal-sheet-push-closing .framework7-root > .panel-in.panel-push.panel
|
|
|
10122
10123
|
--f7-chip-outline-border-color: var(--f7-theme-color);
|
|
10123
10124
|
--f7-chip-outline-text-color: var(--f7-theme-color);
|
|
10124
10125
|
}
|
|
10126
|
+
.ios .chip-media {
|
|
10127
|
+
margin-left: calc(-1 * var(--f7-chip-padding-horizontal));
|
|
10128
|
+
}
|
|
10125
10129
|
.ios .chip-delete {
|
|
10126
10130
|
margin-right: calc(-1 * var(--f7-chip-padding-horizontal));
|
|
10127
10131
|
}
|
|
@@ -10131,6 +10135,9 @@ html.with-modal-sheet-push-closing .framework7-root > .panel-in.panel-push.panel
|
|
|
10131
10135
|
.ios .chip-delete:after {
|
|
10132
10136
|
font-size: 10px;
|
|
10133
10137
|
}
|
|
10138
|
+
.md .chip-media {
|
|
10139
|
+
margin-left: calc(-1 * var(--f7-chip-padding-horizontal) + 4px);
|
|
10140
|
+
}
|
|
10134
10141
|
.md .chip-label + .chip-delete {
|
|
10135
10142
|
margin-left: 4px;
|
|
10136
10143
|
}
|
|
@@ -10370,9 +10377,6 @@ textarea:-webkit-autofill-and-obscured {
|
|
|
10370
10377
|
.list textarea.resizable {
|
|
10371
10378
|
height: calc(var(--f7-input-height) + var(--f7-textarea-padding-vertical) * 2);
|
|
10372
10379
|
}
|
|
10373
|
-
.list input[type='datetime-local'] {
|
|
10374
|
-
max-width: 50vw;
|
|
10375
|
-
}
|
|
10376
10380
|
.list input[type='time'],
|
|
10377
10381
|
.list input[type='date'],
|
|
10378
10382
|
.list input[type='month'],
|
|
@@ -19054,7 +19058,6 @@ button.text-editor-button .material-icons sub {
|
|
|
19054
19058
|
--f7-area-chart-axis-font-size: 10px;
|
|
19055
19059
|
--f7-area-chart-axis-font-weight: 500;
|
|
19056
19060
|
--f7-area-chart-tooltip-font-size: 12px;
|
|
19057
|
-
--f7-area-chart-tooltip-total-label-text-color: rgba(255, 255, 255, 0.75);
|
|
19058
19061
|
--f7-area-chart-tooltip-total-font-size: 16px;
|
|
19059
19062
|
--f7-area-chart-tooltip-total-font-weight: bold;
|
|
19060
19063
|
--f7-area-chart-tooltip-color-size: 10px;
|
|
@@ -19073,6 +19076,12 @@ button.text-editor-button .material-icons sub {
|
|
|
19073
19076
|
--f7-area-chart-axis-bg-color: rgba(255, 255, 255, 0.15);
|
|
19074
19077
|
--f7-area-chart-legend-disabled-text-color: rgba(255, 255, 255, 0.22);
|
|
19075
19078
|
}
|
|
19079
|
+
.ios {
|
|
19080
|
+
--f7-area-chart-tooltip-total-label-text-color: rgba(255, 255, 255, 0.75);
|
|
19081
|
+
}
|
|
19082
|
+
.md {
|
|
19083
|
+
--f7-area-chart-tooltip-total-label-text-color: inherit;
|
|
19084
|
+
}
|
|
19076
19085
|
.area-chart {
|
|
19077
19086
|
position: relative;
|
|
19078
19087
|
}
|
package/framework7-bundle.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 8.0.
|
|
2
|
+
* Framework7 8.0.4
|
|
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: May 3, 2023
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import $ from './shared/dom7.js';
|
package/framework7-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 8.0.
|
|
2
|
+
* Framework7 8.0.4
|
|
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: May 3, 2023
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function (global, factory) {
|
|
@@ -2780,7 +2780,7 @@
|
|
|
2780
2780
|
return res;
|
|
2781
2781
|
};
|
|
2782
2782
|
const colorVars = colorThemeCSSProperties(colors.primary);
|
|
2783
|
-
const primary = [`:root{`, stringifyObject(colorVars.light), `--swiper-theme-color:var(--f7-theme-color);`, ...Object.keys(colors).map(colorName => `--f7-color-${colorName}: ${colors[colorName]};`), `}`, `.dark{`, stringifyObject(colorVars.dark), `}`, `.ios{`, stringifyObject(colorVars.ios), '}', `.md{`, stringifyObject(colorVars.md), '}'].join('');
|
|
2783
|
+
const primary = [`:root{`, stringifyObject(colorVars.light), `--swiper-theme-color:var(--f7-theme-color);`, ...Object.keys(colors).map(colorName => `--f7-color-${colorName}: ${colors[colorName]};`), `}`, `.dark{`, stringifyObject(colorVars.dark), `}`, `.ios, .ios .dark{`, stringifyObject(colorVars.ios), '}', `.md, .md .dark{`, stringifyObject(colorVars.md), '}'].join('');
|
|
2784
2784
|
const restVars = {};
|
|
2785
2785
|
Object.keys(colors).forEach(colorName => {
|
|
2786
2786
|
const colorValue = colors[colorName];
|
|
@@ -2876,7 +2876,7 @@
|
|
|
2876
2876
|
const lightString = colorName === 'white' ? whiteColorVars : colorName === 'black' ? blackColorVars : stringifyObject(light);
|
|
2877
2877
|
const darkString = colorName === 'white' ? whiteColorVars : colorName === 'black' ? blackColorVars : stringifyObject(dark);
|
|
2878
2878
|
/* eslint-enable */
|
|
2879
|
-
rest += [`.color-${colorName} {`, lightString, `--swiper-theme-color: var(--f7-theme-color);`, `}`, `.color-${colorName}.dark, .color-${colorName} .dark, .dark .color-${colorName} {`, darkString, `--swiper-theme-color: var(--f7-theme-color);`, `}`, `.ios .color-${colorName}, .ios.color-${colorName} {`, stringifyObject(ios), `}`, `.md .color-${colorName}, .md.color-${colorName} {`, stringifyObject(md), `}`,
|
|
2879
|
+
rest += [`.color-${colorName} {`, lightString, `--swiper-theme-color: var(--f7-theme-color);`, `}`, `.color-${colorName}.dark, .color-${colorName} .dark, .dark .color-${colorName} {`, darkString, `--swiper-theme-color: var(--f7-theme-color);`, `}`, `.ios .color-${colorName}, .ios.color-${colorName}, .ios .dark .color-${colorName}, .ios .dark.color-${colorName} {`, stringifyObject(ios), `}`, `.md .color-${colorName}, .md.color-${colorName}, .md .dark .color-${colorName}, .md .dark.color-${colorName} {`, stringifyObject(md), `}`,
|
|
2880
2880
|
// text color
|
|
2881
2881
|
`.text-color-${colorName} {`, `--f7-theme-color-text-color: ${colors[colorName]};`, `}`,
|
|
2882
2882
|
// bg color
|
|
@@ -4239,6 +4239,7 @@
|
|
|
4239
4239
|
let isTouchMoveActivable = false;
|
|
4240
4240
|
let touchmoveActivableEl = null;
|
|
4241
4241
|
function handleTouchStart(e) {
|
|
4242
|
+
if (!e.isTrusted) return true;
|
|
4242
4243
|
isMoved = false;
|
|
4243
4244
|
tapHoldFired = false;
|
|
4244
4245
|
preventClick = false;
|
|
@@ -4283,6 +4284,7 @@
|
|
|
4283
4284
|
return true;
|
|
4284
4285
|
}
|
|
4285
4286
|
function handleTouchMove(e) {
|
|
4287
|
+
if (!e.isTrusted) return;
|
|
4286
4288
|
let touch;
|
|
4287
4289
|
let distance;
|
|
4288
4290
|
let shouldRemoveActive = true;
|
|
@@ -4343,6 +4345,7 @@
|
|
|
4343
4345
|
}
|
|
4344
4346
|
}
|
|
4345
4347
|
function handleTouchEnd(e) {
|
|
4348
|
+
if (!e.isTrusted) return true;
|
|
4346
4349
|
isScrolling = undefined;
|
|
4347
4350
|
isSegmentedStrong = false;
|
|
4348
4351
|
segmentedStrongEl = null;
|
|
@@ -5430,6 +5433,7 @@
|
|
|
5430
5433
|
}
|
|
5431
5434
|
}
|
|
5432
5435
|
function handleTouchStart(e) {
|
|
5436
|
+
if (!e.isTrusted) return;
|
|
5433
5437
|
const swipeBackEnabled = params[`${app.theme}SwipeBack`];
|
|
5434
5438
|
if (!allowViewTouchMove || !swipeBackEnabled || isTouched || app.swipeout && app.swipeout.el || !router.allowPageChange) return;
|
|
5435
5439
|
if ($(e.target).closest('.range-slider, .calendar-months').length > 0) return;
|
|
@@ -5443,6 +5447,7 @@
|
|
|
5443
5447
|
dynamicNavbar = router.dynamicNavbar;
|
|
5444
5448
|
}
|
|
5445
5449
|
function handleTouchMove(e) {
|
|
5450
|
+
if (!e.isTrusted) return;
|
|
5446
5451
|
if (!isTouched) return;
|
|
5447
5452
|
const pageX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
|
|
5448
5453
|
const pageY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
|
|
@@ -5563,7 +5568,8 @@
|
|
|
5563
5568
|
progress: percentage
|
|
5564
5569
|
});
|
|
5565
5570
|
}
|
|
5566
|
-
function handleTouchEnd() {
|
|
5571
|
+
function handleTouchEnd(e) {
|
|
5572
|
+
if (!e.isTrusted) return;
|
|
5567
5573
|
app.preventSwipePanelBySwipeBack = false;
|
|
5568
5574
|
if (!isTouched || !isMoved) {
|
|
5569
5575
|
isTouched = false;
|
|
@@ -13883,7 +13889,7 @@
|
|
|
13883
13889
|
let popupHeight;
|
|
13884
13890
|
let $pushEl;
|
|
13885
13891
|
function handleTouchStart(e) {
|
|
13886
|
-
if (isTouched || !allowSwipeToClose || !popup.params.swipeToClose) return;
|
|
13892
|
+
if (isTouched || !allowSwipeToClose || !popup.params.swipeToClose || !e.isTrusted) return;
|
|
13887
13893
|
if (popup.params.swipeHandler && $(e.target).closest(popup.params.swipeHandler).length === 0) {
|
|
13888
13894
|
return;
|
|
13889
13895
|
}
|
|
@@ -13900,7 +13906,7 @@
|
|
|
13900
13906
|
}
|
|
13901
13907
|
}
|
|
13902
13908
|
function handleTouchMove(e) {
|
|
13903
|
-
if (!isTouched) return;
|
|
13909
|
+
if (!isTouched || !e.isTrusted) return;
|
|
13904
13910
|
currentTouch = {
|
|
13905
13911
|
x: e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX,
|
|
13906
13912
|
y: e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY
|
|
@@ -13973,7 +13979,8 @@
|
|
|
13973
13979
|
}
|
|
13974
13980
|
$el.transition(0).transform(`translate3d(0,${-touchesDiff}px,0)`);
|
|
13975
13981
|
}
|
|
13976
|
-
function handleTouchEnd() {
|
|
13982
|
+
function handleTouchEnd(e) {
|
|
13983
|
+
if (!e.isTrusted) return;
|
|
13977
13984
|
isTouched = false;
|
|
13978
13985
|
if (!isMoved) {
|
|
13979
13986
|
return;
|
|
@@ -15073,7 +15080,7 @@
|
|
|
15073
15080
|
let sheetPageContentScrollHeight;
|
|
15074
15081
|
let sheetPageContentOffsetHeight;
|
|
15075
15082
|
function handleTouchStart(e) {
|
|
15076
|
-
if (isTouched || !(sheet.params.swipeToClose || sheet.params.swipeToStep)) return;
|
|
15083
|
+
if (isTouched || !(sheet.params.swipeToClose || sheet.params.swipeToStep) || !e.isTrusted) return;
|
|
15077
15084
|
if (sheet.params.swipeHandler && $(e.target).closest(sheet.params.swipeHandler).length === 0) {
|
|
15078
15085
|
return;
|
|
15079
15086
|
}
|
|
@@ -15091,7 +15098,7 @@
|
|
|
15091
15098
|
}
|
|
15092
15099
|
}
|
|
15093
15100
|
function handleTouchMove(e) {
|
|
15094
|
-
if (!isTouched) return;
|
|
15101
|
+
if (!isTouched || !e.isTrusted) return;
|
|
15095
15102
|
currentTouch = {
|
|
15096
15103
|
x: e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX,
|
|
15097
15104
|
y: e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY
|
|
@@ -19431,7 +19438,7 @@
|
|
|
19431
19438
|
let isH;
|
|
19432
19439
|
let $cardScrollableEl;
|
|
19433
19440
|
function onTouchStart(e) {
|
|
19434
|
-
if (!$(e.target).closest($cardEl).length) return;
|
|
19441
|
+
if (!$(e.target).closest($cardEl).length || !e.isTrusted) return;
|
|
19435
19442
|
if (!$cardEl.hasClass('card-opened')) return;
|
|
19436
19443
|
$cardScrollableEl = $cardEl.find(cardParams.scrollableEl);
|
|
19437
19444
|
if ($cardScrollableEl[0] && $cardScrollableEl[0] !== $cardContentEl[0] && !$cardScrollableEl[0].contains(e.target)) {
|
|
@@ -19447,7 +19454,7 @@
|
|
|
19447
19454
|
isH = false;
|
|
19448
19455
|
}
|
|
19449
19456
|
function onTouchMove(e) {
|
|
19450
|
-
if (!isTouched) return;
|
|
19457
|
+
if (!isTouched || !e.isTrusted) return;
|
|
19451
19458
|
touchEndX = e.targetTouches[0].pageX;
|
|
19452
19459
|
touchEndY = e.targetTouches[0].pageY;
|
|
19453
19460
|
if (typeof isScrolling === 'undefined') {
|
|
@@ -19486,8 +19493,8 @@
|
|
|
19486
19493
|
$cardEl.transform(`translate3d(${app.rtl ? -translateX : translateX}px, ${translateY}px, 0) scale(${scaleX * (1 - progress * 0.2)}, ${scaleY * (1 - progress * 0.2)})`);
|
|
19487
19494
|
}
|
|
19488
19495
|
}
|
|
19489
|
-
function onTouchEnd() {
|
|
19490
|
-
if (!isTouched || !isMoved) return;
|
|
19496
|
+
function onTouchEnd(e) {
|
|
19497
|
+
if (!isTouched || !isMoved || !e.isTrusted) return;
|
|
19491
19498
|
isTouched = false;
|
|
19492
19499
|
isMoved = false;
|
|
19493
19500
|
if (device.ios) {
|
|
@@ -23142,7 +23149,7 @@
|
|
|
23142
23149
|
$wrapperEl
|
|
23143
23150
|
} = calendar;
|
|
23144
23151
|
function handleTouchStart(e) {
|
|
23145
|
-
if (isMoved || isTouched) return;
|
|
23152
|
+
if (isMoved || isTouched || !e.isTrusted) return;
|
|
23146
23153
|
isTouched = true;
|
|
23147
23154
|
touchStartX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
|
|
23148
23155
|
touchCurrentX = touchStartX;
|
|
@@ -23155,7 +23162,7 @@
|
|
|
23155
23162
|
currentTranslate = calendar.monthsTranslate;
|
|
23156
23163
|
}
|
|
23157
23164
|
function handleTouchMove(e) {
|
|
23158
|
-
if (!isTouched) return;
|
|
23165
|
+
if (!isTouched || !e.isTrusted) return;
|
|
23159
23166
|
const {
|
|
23160
23167
|
isHorizontal: isH
|
|
23161
23168
|
} = calendar;
|
|
@@ -23188,8 +23195,8 @@
|
|
|
23188
23195
|
// Transform wrapper
|
|
23189
23196
|
$wrapperEl.transform(`translate3d(${isH ? currentTranslate : 0}%, ${isH ? 0 : currentTranslate}%, 0)`);
|
|
23190
23197
|
}
|
|
23191
|
-
function handleTouchEnd() {
|
|
23192
|
-
if (!isTouched || !isMoved) {
|
|
23198
|
+
function handleTouchEnd(e) {
|
|
23199
|
+
if (!isTouched || !isMoved || !e.isTrusted) {
|
|
23193
23200
|
isTouched = false;
|
|
23194
23201
|
isMoved = false;
|
|
23195
23202
|
return;
|
|
@@ -25914,6 +25921,7 @@
|
|
|
25914
25921
|
$preloaderEl.find('.preloader-inner-line').css('opacity', '');
|
|
25915
25922
|
}
|
|
25916
25923
|
function handleTouchStart(e) {
|
|
25924
|
+
if (!e.isTrusted) return;
|
|
25917
25925
|
if (isTouched) {
|
|
25918
25926
|
if (device.os === 'android') {
|
|
25919
25927
|
if ('targetTouches' in e && e.targetTouches.length > 1) return;
|
|
@@ -25933,7 +25941,7 @@
|
|
|
25933
25941
|
touchesStart.y = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
|
|
25934
25942
|
}
|
|
25935
25943
|
function handleTouchMove(e) {
|
|
25936
|
-
if (!isTouched) return;
|
|
25944
|
+
if (!isTouched || !e.isTrusted) return;
|
|
25937
25945
|
let pageX;
|
|
25938
25946
|
let pageY;
|
|
25939
25947
|
let touch;
|
|
@@ -26075,6 +26083,7 @@
|
|
|
26075
26083
|
}
|
|
26076
26084
|
}
|
|
26077
26085
|
function handleTouchEnd(e) {
|
|
26086
|
+
if (!e.isTrusted) return;
|
|
26078
26087
|
if (e.type === 'touchend' && e.changedTouches && e.changedTouches.length > 0 && touchId) {
|
|
26079
26088
|
if (e.changedTouches[0].identifier !== touchId) {
|
|
26080
26089
|
isTouched = false;
|