framework7 8.0.2 → 8.0.3

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 8.0.2
2
+ * Framework7 8.0.3
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: April 12, 2023
10
+ * Released on: April 17, 2023
11
11
  */
12
12
 
13
13
  /*====================
@@ -10370,9 +10370,6 @@ textarea:-webkit-autofill-and-obscured {
10370
10370
  .list textarea.resizable {
10371
10371
  height: calc(var(--f7-input-height) + var(--f7-textarea-padding-vertical) * 2);
10372
10372
  }
10373
- .list input[type='datetime-local'] {
10374
- max-width: 50vw;
10375
- }
10376
10373
  .list input[type='time'],
10377
10374
  .list input[type='date'],
10378
10375
  .list input[type='month'],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 8.0.2
2
+ * Framework7 8.0.3
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: April 12, 2023
10
+ * Released on: April 17, 2023
11
11
  */
12
12
 
13
13
  import $ from './shared/dom7.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 8.0.2
2
+ * Framework7 8.0.3
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: April 12, 2023
10
+ * Released on: April 17, 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;