framework7 7.0.0-beta.15 → 7.0.0-beta.20

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.
Files changed (142) hide show
  1. package/components/accordion/accordion.lazy.js +1 -1
  2. package/components/actions/actions.js +10 -2
  3. package/components/actions/actions.lazy.js +1 -1
  4. package/components/app/app-class.js +15 -9
  5. package/components/area-chart/area-chart-class.js +34 -18
  6. package/components/area-chart/area-chart.lazy.js +1 -1
  7. package/components/autocomplete/autocomplete-class.js +5 -1
  8. package/components/autocomplete/autocomplete.lazy.js +1 -1
  9. package/components/calendar/calendar-class.js +10 -2
  10. package/components/calendar/calendar.js +5 -1
  11. package/components/calendar/calendar.lazy.js +1 -1
  12. package/components/card/card.js +23 -3
  13. package/components/card/card.lazy.js +1 -1
  14. package/components/color-picker/color-picker-class.js +19 -3
  15. package/components/color-picker/color-picker.js +5 -1
  16. package/components/color-picker/color-picker.lazy.js +1 -1
  17. package/components/data-table/data-table-class.js +5 -1
  18. package/components/data-table/data-table.lazy.js +1 -1
  19. package/components/dialog/dialog.js +30 -6
  20. package/components/dialog/dialog.lazy.js +1 -1
  21. package/components/fab/fab-rtl.css +1 -1
  22. package/components/fab/fab.css +1 -1
  23. package/components/fab/fab.js +15 -3
  24. package/components/fab/fab.lazy.js +1 -1
  25. package/components/form/form.lazy.js +1 -1
  26. package/components/gauge/gauge-class.js +10 -2
  27. package/components/gauge/gauge.lazy.js +1 -1
  28. package/components/input/input.js +5 -1
  29. package/components/input/input.lazy.js +1 -1
  30. package/components/list-index/list-index-class.js +5 -1
  31. package/components/list-index/list-index.lazy.js +1 -1
  32. package/components/login-screen/login-screen.js +10 -2
  33. package/components/login-screen/login-screen.lazy.js +1 -1
  34. package/components/menu/menu.js +10 -2
  35. package/components/menu/menu.lazy.js +1 -1
  36. package/components/messagebar/messagebar-class.js +25 -5
  37. package/components/messagebar/messagebar.lazy.js +1 -1
  38. package/components/messages/messages-class.js +60 -24
  39. package/components/messages/messages-rtl.css +1 -1
  40. package/components/messages/messages.css +1 -1
  41. package/components/messages/messages.lazy.js +1 -1
  42. package/components/navbar/navbar.js +26 -2
  43. package/components/panel/panel-class.js +35 -7
  44. package/components/panel/panel.js +40 -8
  45. package/components/panel/panel.lazy.js +1 -1
  46. package/components/photo-browser/photo-browser-class.js +42 -8
  47. package/components/photo-browser/photo-browser.lazy.js +1 -1
  48. package/components/picker/picker-class.js +5 -1
  49. package/components/picker/picker.js +5 -1
  50. package/components/picker/picker.lazy.js +1 -1
  51. package/components/pie-chart/pie-chart-class.js +16 -7
  52. package/components/pie-chart/pie-chart.lazy.js +1 -1
  53. package/components/popover/popover-class.js +5 -1
  54. package/components/popover/popover.js +10 -2
  55. package/components/popover/popover.lazy.js +1 -1
  56. package/components/popup/popup.js +10 -2
  57. package/components/popup/popup.lazy.js +1 -1
  58. package/components/preloader/preloader-rtl.css +1 -1
  59. package/components/preloader/preloader.css +1 -1
  60. package/components/preloader/preloader.js +10 -2
  61. package/components/preloader/preloader.lazy.js +1 -1
  62. package/components/progressbar/progressbar.js +16 -3
  63. package/components/progressbar/progressbar.lazy.js +1 -1
  64. package/components/pull-to-refresh/pull-to-refresh-class.js +5 -1
  65. package/components/pull-to-refresh/pull-to-refresh.lazy.js +1 -1
  66. package/components/range/range.js +10 -2
  67. package/components/range/range.lazy.js +1 -1
  68. package/components/searchbar/searchbar-class.js +5 -1
  69. package/components/searchbar/searchbar.js +20 -4
  70. package/components/searchbar/searchbar.lazy.js +1 -1
  71. package/components/sheet/sheet-class.js +5 -1
  72. package/components/sheet/sheet.js +10 -2
  73. package/components/sheet/sheet.lazy.js +1 -1
  74. package/components/smart-select/smart-select-class.js +15 -3
  75. package/components/smart-select/smart-select.lazy.js +1 -1
  76. package/components/sortable/sortable.js +30 -6
  77. package/components/sortable/sortable.lazy.js +1 -1
  78. package/components/statusbar/statusbar.js +5 -1
  79. package/components/stepper/stepper.js +10 -2
  80. package/components/stepper/stepper.lazy.js +1 -1
  81. package/components/swipeout/swipeout.js +16 -3
  82. package/components/swipeout/swipeout.lazy.js +1 -1
  83. package/components/swiper/swiper.lazy.js +1 -1
  84. package/components/tabs/tabs.js +10 -2
  85. package/components/tabs/tabs.lazy.js +1 -1
  86. package/components/toggle/toggle-class.js +5 -1
  87. package/components/toggle/toggle.lazy.js +1 -1
  88. package/components/toolbar/toolbar.js +10 -2
  89. package/components/tooltip/tooltip-class.js +5 -1
  90. package/components/tooltip/tooltip.lazy.js +1 -1
  91. package/components/touch-ripple/touch-ripple.js +5 -1
  92. package/components/treeview/treeview.lazy.js +1 -1
  93. package/components/view/view-class.js +5 -1
  94. package/components/virtual-list/virtual-list-class.js +10 -2
  95. package/components/virtual-list/virtual-list.lazy.js +1 -1
  96. package/framework7-bundle-rtl.css +4 -4
  97. package/framework7-bundle-rtl.min.css +3 -3
  98. package/framework7-bundle.css +4 -4
  99. package/framework7-bundle.esm.js +2 -2
  100. package/framework7-bundle.js +1646 -461
  101. package/framework7-bundle.js.map +1 -1
  102. package/framework7-bundle.less +2 -2
  103. package/framework7-bundle.min.css +3 -3
  104. package/framework7-bundle.min.js +3 -3
  105. package/framework7-bundle.min.js.map +1 -1
  106. package/framework7-lite-bundle.esm.js +2 -2
  107. package/framework7-lite.esm.js +2 -2
  108. package/framework7-rtl.css +2 -2
  109. package/framework7-rtl.min.css +2 -2
  110. package/framework7.css +2 -2
  111. package/framework7.esm.js +2 -2
  112. package/framework7.js +562 -174
  113. package/framework7.js.map +1 -1
  114. package/framework7.less +2 -2
  115. package/framework7.min.css +2 -2
  116. package/framework7.min.js +3 -3
  117. package/framework7.min.js.map +1 -1
  118. package/modules/component/$h.js +5 -1
  119. package/modules/component/$jsx.js +5 -1
  120. package/modules/component/component-class.js +35 -22
  121. package/modules/component/component.js +7 -6
  122. package/modules/component/eventslisteners.js +5 -1
  123. package/modules/component/snabbdom/h.js +1 -1
  124. package/modules/component/vdom.js +32 -17
  125. package/modules/router/back.js +5 -5
  126. package/modules/router/component-loader.js +34 -23
  127. package/modules/router/modal.js +5 -1
  128. package/modules/router/navigate.js +19 -3
  129. package/modules/router/redirect.js +5 -1
  130. package/modules/router/router-class.js +39 -10
  131. package/modules/router/swipe-back.js +7 -6
  132. package/modules/router/tab.js +5 -1
  133. package/modules/store/create-store.js +10 -2
  134. package/package.json +3 -2
  135. package/shared/$jsx.js +6 -1
  136. package/shared/class.js +33 -5
  137. package/shared/constructor-methods.js +25 -4
  138. package/shared/events-class.js +15 -3
  139. package/shared/get-device.js +9 -4
  140. package/shared/modal-methods.js +10 -2
  141. package/shared/request.js +45 -7
  142. package/shared/utils.js +47 -10
package/framework7.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 7.0.0-beta.15
2
+ * Framework7 7.0.0-beta.20
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,14 +7,14 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: April 11, 2022
10
+ * Released on: April 15, 2022
11
11
  */
12
12
 
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
15
15
  typeof define === 'function' && define.amd ? define(factory) :
16
16
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Framework7 = factory());
17
- }(this, (function () { 'use strict';
17
+ })(this, (function () { 'use strict';
18
18
 
19
19
  /**
20
20
  * SSR Window 4.0.2
@@ -33,7 +33,15 @@
33
33
  return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;
34
34
  }
35
35
 
36
- function extend$1(target = {}, src = {}) {
36
+ function extend$1(target, src) {
37
+ if (target === void 0) {
38
+ target = {};
39
+ }
40
+
41
+ if (src === void 0) {
42
+ src = {};
43
+ }
44
+
37
45
  Object.keys(src).forEach(key => {
38
46
  if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject$1(src[key]) && isObject$1(target[key]) && Object.keys(src[key]).length > 0) {
39
47
  extend$1(target[key], src[key]);
@@ -234,7 +242,11 @@
234
242
 
235
243
  }
236
244
 
237
- function arrayFlat(arr = []) {
245
+ function arrayFlat(arr) {
246
+ if (arr === void 0) {
247
+ arr = [];
248
+ }
249
+
238
250
  const res = [];
239
251
  arr.forEach(el => {
240
252
  if (Array.isArray(el)) {
@@ -325,7 +337,11 @@
325
337
 
326
338
  $$1.fn = Dom7.prototype; // eslint-disable-next-line
327
339
 
328
- function addClass(...classes) {
340
+ function addClass() {
341
+ for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
342
+ classes[_key] = arguments[_key];
343
+ }
344
+
329
345
  const classNames = arrayFlat(classes.map(c => c.split(' ')));
330
346
  this.forEach(el => {
331
347
  el.classList.add(...classNames);
@@ -333,7 +349,11 @@
333
349
  return this;
334
350
  }
335
351
 
336
- function removeClass(...classes) {
352
+ function removeClass() {
353
+ for (var _len2 = arguments.length, classes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
354
+ classes[_key2] = arguments[_key2];
355
+ }
356
+
337
357
  const classNames = arrayFlat(classes.map(c => c.split(' ')));
338
358
  this.forEach(el => {
339
359
  el.classList.remove(...classNames);
@@ -341,7 +361,11 @@
341
361
  return this;
342
362
  }
343
363
 
344
- function toggleClass(...classes) {
364
+ function toggleClass() {
365
+ for (var _len3 = arguments.length, classes = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
366
+ classes[_key3] = arguments[_key3];
367
+ }
368
+
345
369
  const classNames = arrayFlat(classes.map(c => c.split(' ')));
346
370
  this.forEach(el => {
347
371
  classNames.forEach(className => {
@@ -350,7 +374,11 @@
350
374
  });
351
375
  }
352
376
 
353
- function hasClass(...classes) {
377
+ function hasClass() {
378
+ for (var _len4 = arguments.length, classes = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
379
+ classes[_key4] = arguments[_key4];
380
+ }
381
+
354
382
  const classNames = arrayFlat(classes.map(c => c.split(' ')));
355
383
  return arrayFilter(this, el => {
356
384
  return classNames.filter(className => el.classList.contains(className)).length > 0;
@@ -535,7 +563,11 @@
535
563
  return this;
536
564
  }
537
565
 
538
- function on(...args) {
566
+ function on() {
567
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
568
+ args[_key5] = arguments[_key5];
569
+ }
570
+
539
571
  let [eventType, targetSelector, listener, capture] = args;
540
572
 
541
573
  if (typeof args[1] === 'function') {
@@ -608,7 +640,11 @@
608
640
  return this;
609
641
  }
610
642
 
611
- function off(...args) {
643
+ function off() {
644
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
645
+ args[_key6] = arguments[_key6];
646
+ }
647
+
612
648
  let [eventType, targetSelector, listener, capture] = args;
613
649
 
614
650
  if (typeof args[1] === 'function') {
@@ -654,8 +690,13 @@
654
690
  return this;
655
691
  }
656
692
 
657
- function once(...args) {
693
+ function once() {
658
694
  const dom = this;
695
+
696
+ for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
697
+ args[_key7] = arguments[_key7];
698
+ }
699
+
659
700
  let [eventName, targetSelector, listener, capture] = args;
660
701
 
661
702
  if (typeof args[1] === 'function') {
@@ -663,7 +704,11 @@
663
704
  targetSelector = undefined;
664
705
  }
665
706
 
666
- function onceHandler(...eventArgs) {
707
+ function onceHandler() {
708
+ for (var _len8 = arguments.length, eventArgs = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
709
+ eventArgs[_key8] = arguments[_key8];
710
+ }
711
+
667
712
  listener.apply(this, eventArgs);
668
713
  dom.off(eventName, targetSelector, onceHandler, capture);
669
714
 
@@ -676,8 +721,13 @@
676
721
  return dom.on(eventName, targetSelector, onceHandler, capture);
677
722
  }
678
723
 
679
- function trigger(...args) {
724
+ function trigger() {
680
725
  const window = getWindow();
726
+
727
+ for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
728
+ args[_key9] = arguments[_key9];
729
+ }
730
+
681
731
  const events = args[0].split(' ');
682
732
  const eventData = args[1];
683
733
 
@@ -988,12 +1038,12 @@
988
1038
  return $$1([this[index]]);
989
1039
  }
990
1040
 
991
- function append(...els) {
1041
+ function append() {
992
1042
  let newChild;
993
1043
  const document = getDocument();
994
1044
 
995
- for (let k = 0; k < els.length; k += 1) {
996
- newChild = els[k];
1045
+ for (let k = 0; k < arguments.length; k += 1) {
1046
+ newChild = k < 0 || arguments.length <= k ? undefined : arguments[k];
997
1047
 
998
1048
  for (let i = 0; i < this.length; i += 1) {
999
1049
  if (typeof newChild === 'string') {
@@ -1247,11 +1297,15 @@
1247
1297
  return this.remove();
1248
1298
  }
1249
1299
 
1250
- function add(...els) {
1300
+ function add() {
1251
1301
  const dom = this;
1252
1302
  let i;
1253
1303
  let j;
1254
1304
 
1305
+ for (var _len10 = arguments.length, els = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
1306
+ els[_key10] = arguments[_key10];
1307
+ }
1308
+
1255
1309
  for (i = 0; i < els.length; i += 1) {
1256
1310
  const toAdd = $$1(els[i]);
1257
1311
 
@@ -1282,8 +1336,13 @@
1282
1336
  } // eslint-disable-next-line
1283
1337
 
1284
1338
 
1285
- function scrollTo(...args) {
1339
+ function scrollTo() {
1286
1340
  const window = getWindow();
1341
+
1342
+ for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
1343
+ args[_key11] = arguments[_key11];
1344
+ }
1345
+
1287
1346
  let [left, top, duration, easing, callback] = args;
1288
1347
 
1289
1348
  if (args.length === 4 && typeof easing === 'function') {
@@ -1343,7 +1402,11 @@
1343
1402
  if (animateTop && newTop === currentTop) animateTop = false;
1344
1403
  if (animateLeft && newLeft === currentLeft) animateLeft = false;
1345
1404
 
1346
- function render(time = new Date().getTime()) {
1405
+ function render(time) {
1406
+ if (time === void 0) {
1407
+ time = new Date().getTime();
1408
+ }
1409
+
1347
1410
  if (startTime === null) {
1348
1411
  startTime = time;
1349
1412
  }
@@ -1389,7 +1452,11 @@
1389
1452
  } // scrollTop(top, duration, easing, callback) {
1390
1453
 
1391
1454
 
1392
- function scrollTop(...args) {
1455
+ function scrollTop() {
1456
+ for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
1457
+ args[_key12] = arguments[_key12];
1458
+ }
1459
+
1393
1460
  let [top, duration, easing, callback] = args;
1394
1461
 
1395
1462
  if (args.length === 3 && typeof easing === 'function') {
@@ -1406,7 +1473,11 @@
1406
1473
  return dom.scrollTo(undefined, top, duration, easing, callback);
1407
1474
  }
1408
1475
 
1409
- function scrollLeft(...args) {
1476
+ function scrollLeft() {
1477
+ for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
1478
+ args[_key13] = arguments[_key13];
1479
+ }
1480
+
1410
1481
  let [left, duration, easing, callback] = args;
1411
1482
 
1412
1483
  if (args.length === 3 && typeof easing === 'function') {
@@ -1630,7 +1701,11 @@
1630
1701
  const noTrigger = 'resize scroll'.split(' ');
1631
1702
 
1632
1703
  function shortcut(name) {
1633
- function eventHandler(...args) {
1704
+ function eventHandler() {
1705
+ for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
1706
+ args[_key14] = arguments[_key14];
1707
+ }
1708
+
1634
1709
  if (typeof args[0] === 'undefined') {
1635
1710
  for (let i = 0; i < this.length; i += 1) {
1636
1711
  if (noTrigger.indexOf(name) < 0) {
@@ -1773,7 +1848,15 @@
1773
1848
  uniqueNum += 1;
1774
1849
  return uniqueNum;
1775
1850
  }
1776
- function id(mask = 'xxxxxxxxxx', map = '0123456789abcdef') {
1851
+ function id(mask, map) {
1852
+ if (mask === void 0) {
1853
+ mask = 'xxxxxxxxxx';
1854
+ }
1855
+
1856
+ if (map === void 0) {
1857
+ map = '0123456789abcdef';
1858
+ }
1859
+
1777
1860
  const length = map.length;
1778
1861
  return mask.replace(/x/g, () => map[Math.floor(Math.random() * length)]);
1779
1862
  }
@@ -1827,7 +1910,11 @@
1827
1910
  const window = getWindow();
1828
1911
  return window.cancelAnimationFrame(frameId);
1829
1912
  }
1830
- function nextTick(callback, delay = 0) {
1913
+ function nextTick(callback, delay) {
1914
+ if (delay === void 0) {
1915
+ delay = 0;
1916
+ }
1917
+
1831
1918
  return setTimeout(callback, delay);
1832
1919
  }
1833
1920
  function nextFrame$1(callback) {
@@ -1860,7 +1947,11 @@
1860
1947
 
1861
1948
  return query;
1862
1949
  }
1863
- function getTranslate(el, axis = 'x') {
1950
+ function getTranslate(el, axis) {
1951
+ if (axis === void 0) {
1952
+ axis = 'x';
1953
+ }
1954
+
1864
1955
  const window = getWindow();
1865
1956
  let matrix;
1866
1957
  let curTransform;
@@ -1886,19 +1977,23 @@
1886
1977
  // Latest Chrome and webkits Fix
1887
1978
  if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41; // Crazy IE10 Matrix
1888
1979
  else if (matrix.length === 16) curTransform = parseFloat(matrix[12]); // Normal Browsers
1889
- else curTransform = parseFloat(matrix[4]);
1980
+ else curTransform = parseFloat(matrix[4]);
1890
1981
  }
1891
1982
 
1892
1983
  if (axis === 'y') {
1893
1984
  // Latest Chrome and webkits Fix
1894
1985
  if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42; // Crazy IE10 Matrix
1895
1986
  else if (matrix.length === 16) curTransform = parseFloat(matrix[13]); // Normal Browsers
1896
- else curTransform = parseFloat(matrix[5]);
1987
+ else curTransform = parseFloat(matrix[5]);
1897
1988
  }
1898
1989
 
1899
1990
  return curTransform || 0;
1900
1991
  }
1901
- function serializeObject(obj, parents = []) {
1992
+ function serializeObject(obj, parents) {
1993
+ if (parents === void 0) {
1994
+ parents = [];
1995
+ }
1996
+
1902
1997
  if (typeof obj === 'string') return obj;
1903
1998
  const resultArray = [];
1904
1999
  const separator = '&';
@@ -1958,7 +2053,11 @@
1958
2053
  function isObject(o) {
1959
2054
  return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object;
1960
2055
  }
1961
- function merge(...args) {
2056
+ function merge() {
2057
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2058
+ args[_key] = arguments[_key];
2059
+ }
2060
+
1962
2061
  const to = args[0];
1963
2062
  args.splice(0, 1);
1964
2063
  const from = args;
@@ -1982,11 +2081,15 @@
1982
2081
 
1983
2082
  return to;
1984
2083
  }
1985
- function extend(...args) {
2084
+ function extend() {
1986
2085
  let deep = true;
1987
2086
  let to;
1988
2087
  let from;
1989
2088
 
2089
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2090
+ args[_key2] = arguments[_key2];
2091
+ }
2092
+
1990
2093
  if (typeof args[0] === 'boolean') {
1991
2094
  deep = args[0];
1992
2095
  to = args[1];
@@ -2099,10 +2202,14 @@
2099
2202
  HSB.s = HSL.l > 0 ? 2 * t / HSB.b : HSB.s;
2100
2203
  return [HSB.h, HSB.s, HSB.b];
2101
2204
  }
2102
- function colorThemeCSSProperties(...args) {
2205
+ function colorThemeCSSProperties() {
2103
2206
  let hex;
2104
2207
  let rgb;
2105
2208
 
2209
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
2210
+ args[_key3] = arguments[_key3];
2211
+ }
2212
+
2106
2213
  if (args.length === 1) {
2107
2214
  hex = args[0];
2108
2215
  rgb = colorHexToRgb(hex);
@@ -2137,8 +2244,13 @@
2137
2244
  instance[key] = obj[key];
2138
2245
  });
2139
2246
  }
2140
- function flattenArray(...args) {
2247
+ function flattenArray() {
2141
2248
  const arr = [];
2249
+
2250
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
2251
+ args[_key4] = arguments[_key4];
2252
+ }
2253
+
2142
2254
  args.forEach(arg => {
2143
2255
  if (Array.isArray(arg)) arr.push(...flattenArray(...arg));else arr.push(arg);
2144
2256
  });
@@ -2217,9 +2329,10 @@
2217
2329
 
2218
2330
  let deviceCalculated;
2219
2331
 
2220
- function calcDevice({
2221
- userAgent
2222
- } = {}) {
2332
+ function calcDevice(_temp) {
2333
+ let {
2334
+ userAgent
2335
+ } = _temp === void 0 ? {} : _temp;
2223
2336
  const support = getSupport();
2224
2337
  const window = getWindow();
2225
2338
  const platform = window.navigator.platform;
@@ -2350,7 +2463,11 @@
2350
2463
  return device;
2351
2464
  }
2352
2465
 
2353
- function getDevice(overrides = {}, reset) {
2466
+ function getDevice(overrides, reset) {
2467
+ if (overrides === void 0) {
2468
+ overrides = {};
2469
+ }
2470
+
2354
2471
  if (!deviceCalculated || reset) {
2355
2472
  deviceCalculated = calcDevice(overrides);
2356
2473
  }
@@ -2359,7 +2476,11 @@
2359
2476
  }
2360
2477
 
2361
2478
  class EventsClass {
2362
- constructor(parents = []) {
2479
+ constructor(parents) {
2480
+ if (parents === void 0) {
2481
+ parents = [];
2482
+ }
2483
+
2363
2484
  const self = this;
2364
2485
  self.eventsParents = parents;
2365
2486
  self.eventsListeners = {};
@@ -2380,13 +2501,17 @@
2380
2501
  const self = this;
2381
2502
  if (typeof handler !== 'function') return self;
2382
2503
 
2383
- function onceHandler(...args) {
2504
+ function onceHandler() {
2384
2505
  self.off(events, onceHandler);
2385
2506
 
2386
2507
  if (onceHandler.f7proxy) {
2387
2508
  delete onceHandler.f7proxy;
2388
2509
  }
2389
2510
 
2511
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2512
+ args[_key] = arguments[_key];
2513
+ }
2514
+
2390
2515
  handler.apply(self, args);
2391
2516
  }
2392
2517
 
@@ -2411,7 +2536,7 @@
2411
2536
  return self;
2412
2537
  }
2413
2538
 
2414
- emit(...args) {
2539
+ emit() {
2415
2540
  const self = this;
2416
2541
  if (!self.eventsListeners) return self;
2417
2542
  let events;
@@ -2419,6 +2544,10 @@
2419
2544
  let context;
2420
2545
  let eventsParents;
2421
2546
 
2547
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2548
+ args[_key2] = arguments[_key2];
2549
+ }
2550
+
2422
2551
  if (typeof args[0] === 'string' || Array.isArray(args[0])) {
2423
2552
  events = args[0];
2424
2553
  data = args.slice(1, args.length);
@@ -2458,7 +2587,15 @@
2458
2587
  }
2459
2588
 
2460
2589
  class Framework7Class extends EventsClass {
2461
- constructor(params = {}, parents = []) {
2590
+ constructor(params, parents) {
2591
+ if (params === void 0) {
2592
+ params = {};
2593
+ }
2594
+
2595
+ if (parents === void 0) {
2596
+ parents = [];
2597
+ }
2598
+
2462
2599
  super(parents);
2463
2600
  const self = this;
2464
2601
  self.params = params;
@@ -2497,7 +2634,15 @@
2497
2634
  });
2498
2635
  }
2499
2636
 
2500
- useModule(moduleName = '', moduleParams = {}) {
2637
+ useModule(moduleName, moduleParams) {
2638
+ if (moduleName === void 0) {
2639
+ moduleName = '';
2640
+ }
2641
+
2642
+ if (moduleParams === void 0) {
2643
+ moduleParams = {};
2644
+ }
2645
+
2501
2646
  const instance = this;
2502
2647
  if (!instance.modules) return;
2503
2648
  const module = typeof moduleName === 'string' ? instance.modules[moduleName] : moduleName;
@@ -2541,7 +2686,11 @@
2541
2686
  }
2542
2687
  }
2543
2688
 
2544
- useModules(modulesParams = {}) {
2689
+ useModules(modulesParams) {
2690
+ if (modulesParams === void 0) {
2691
+ modulesParams = {};
2692
+ }
2693
+
2545
2694
  const instance = this;
2546
2695
  if (!instance.modules) return;
2547
2696
  Object.keys(instance.modules).forEach(moduleName => {
@@ -2556,7 +2705,7 @@
2556
2705
  Class.use(components);
2557
2706
  }
2558
2707
 
2559
- static installModule(module, ...params) {
2708
+ static installModule(module) {
2560
2709
  const Class = this;
2561
2710
  if (!Class.prototype.modules) Class.prototype.modules = {};
2562
2711
  const name = module.name || `${Object.keys(Class.prototype.modules).length}_${now()}`;
@@ -2577,13 +2726,17 @@
2577
2726
 
2578
2727
 
2579
2728
  if (module.install) {
2729
+ for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2730
+ params[_key - 1] = arguments[_key];
2731
+ }
2732
+
2580
2733
  module.install.apply(Class, params);
2581
2734
  }
2582
2735
 
2583
2736
  return Class;
2584
2737
  }
2585
2738
 
2586
- static use(module, ...params) {
2739
+ static use(module) {
2587
2740
  const Class = this;
2588
2741
 
2589
2742
  if (Array.isArray(module)) {
@@ -2591,12 +2744,20 @@
2591
2744
  return Class;
2592
2745
  }
2593
2746
 
2747
+ for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2748
+ params[_key2 - 1] = arguments[_key2];
2749
+ }
2750
+
2594
2751
  return Class.installModule(module, ...params);
2595
2752
  }
2596
2753
 
2597
2754
  }
2598
2755
 
2599
- function ConstructorMethods(parameters = {}) {
2756
+ function ConstructorMethods(parameters) {
2757
+ if (parameters === void 0) {
2758
+ parameters = {};
2759
+ }
2760
+
2600
2761
  const {
2601
2762
  defaultSelector,
2602
2763
  constructor: Constructor,
@@ -2605,12 +2766,20 @@
2605
2766
  addMethods
2606
2767
  } = parameters;
2607
2768
  const methods = {
2608
- create(...args) {
2769
+ create() {
2770
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2771
+ args[_key] = arguments[_key];
2772
+ }
2773
+
2609
2774
  if (app) return new Constructor(app, ...args);
2610
2775
  return new Constructor(...args);
2611
2776
  },
2612
2777
 
2613
- get(el = defaultSelector) {
2778
+ get(el) {
2779
+ if (el === void 0) {
2780
+ el = defaultSelector;
2781
+ }
2782
+
2614
2783
  if (el instanceof Constructor) return el;
2615
2784
  const $el = $(el);
2616
2785
  if ($el.length === 0) return undefined;
@@ -2627,8 +2796,17 @@
2627
2796
 
2628
2797
  if (addMethods && Array.isArray(addMethods)) {
2629
2798
  addMethods.forEach(methodName => {
2630
- methods[methodName] = (el = defaultSelector, ...args) => {
2799
+ methods[methodName] = function (el) {
2800
+ if (el === void 0) {
2801
+ el = defaultSelector;
2802
+ }
2803
+
2631
2804
  const instance = methods.get(el);
2805
+
2806
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2807
+ args[_key2 - 1] = arguments[_key2];
2808
+ }
2809
+
2632
2810
  if (instance && instance[methodName]) return instance[methodName](...args);
2633
2811
  return undefined;
2634
2812
  };
@@ -2638,7 +2816,11 @@
2638
2816
  return methods;
2639
2817
  }
2640
2818
 
2641
- function ModalMethods(parameters = {}) {
2819
+ function ModalMethods(parameters) {
2820
+ if (parameters === void 0) {
2821
+ parameters = {};
2822
+ }
2823
+
2642
2824
  const {
2643
2825
  defaultSelector,
2644
2826
  constructor: Constructor,
@@ -2686,7 +2868,11 @@
2686
2868
  return instance.open(animate);
2687
2869
  },
2688
2870
 
2689
- close(el = defaultSelector, animate, targetEl) {
2871
+ close(el, animate, targetEl) {
2872
+ if (el === void 0) {
2873
+ el = defaultSelector;
2874
+ }
2875
+
2690
2876
  let $el = $(el);
2691
2877
  if (!$el.length) return undefined;
2692
2878
 
@@ -2869,7 +3055,11 @@
2869
3055
  /* eslint-disable no-underscore-dangle */
2870
3056
 
2871
3057
  class Framework7 extends Framework7Class {
2872
- constructor(params = {}) {
3058
+ constructor(params) {
3059
+ if (params === void 0) {
3060
+ params = {};
3061
+ }
3062
+
2873
3063
  super(params); // eslint-disable-next-line
2874
3064
 
2875
3065
  if (Framework7.instance && typeof window !== 'undefined') {
@@ -2985,10 +3175,12 @@
2985
3175
  app.mq.light = window.matchMedia(LIGHT);
2986
3176
  }
2987
3177
 
2988
- app.colorSchemeListener = function colorSchemeListener({
2989
- matches,
2990
- media
2991
- }) {
3178
+ app.colorSchemeListener = function colorSchemeListener(_ref) {
3179
+ let {
3180
+ matches,
3181
+ media
3182
+ } = _ref;
3183
+
2992
3184
  if (!matches) {
2993
3185
  return;
2994
3186
  }
@@ -3130,13 +3322,13 @@
3130
3322
  } // eslint-disable-next-line
3131
3323
 
3132
3324
 
3133
- loadModule(...args) {
3134
- return Framework7.loadModule(...args);
3325
+ loadModule() {
3326
+ return Framework7.loadModule(...arguments);
3135
3327
  } // eslint-disable-next-line
3136
3328
 
3137
3329
 
3138
- loadModules(...args) {
3139
- return Framework7.loadModules(...args);
3330
+ loadModules() {
3331
+ return Framework7.loadModules(...arguments);
3140
3332
  }
3141
3333
 
3142
3334
  getVnodeHooks(hook, id) {
@@ -3372,7 +3564,7 @@
3372
3564
  } // Function to run XHR callbacks and events
3373
3565
 
3374
3566
 
3375
- function fireCallback(callbackName, ...data) {
3567
+ function fireCallback(callbackName) {
3376
3568
  /*
3377
3569
  Callbacks:
3378
3570
  beforeCreate (options),
@@ -3386,6 +3578,10 @@
3386
3578
  let globalCallbackValue;
3387
3579
  let optionCallbackValue;
3388
3580
 
3581
+ for (var _len = arguments.length, data = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
3582
+ data[_key - 1] = arguments[_key];
3583
+ }
3584
+
3389
3585
  if (globals[callbackName]) {
3390
3586
  globalCallbackValue = globals[callbackName](...data);
3391
3587
  }
@@ -3715,9 +3911,13 @@
3715
3911
  xhr.send(postData);
3716
3912
  });
3717
3913
 
3718
- function requestShortcut(method, ...args) {
3914
+ function requestShortcut(method) {
3719
3915
  let [url, data, success, error, dataType] = [];
3720
3916
 
3917
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
3918
+ args[_key2 - 1] = arguments[_key2];
3919
+ }
3920
+
3721
3921
  if (typeof args[1] === 'function') {
3722
3922
  [url, success, error, dataType] = args;
3723
3923
  } else {
@@ -3753,11 +3953,41 @@
3753
3953
  }
3754
3954
 
3755
3955
  Object.assign(request, {
3756
- get: (...args) => requestShortcut('get', ...args),
3757
- post: (...args) => requestShortcut('post', ...args),
3758
- json: (...args) => requestShortcut('json', ...args),
3759
- getJSON: (...args) => requestShortcut('json', ...args),
3760
- postJSON: (...args) => requestShortcut('postJSON', ...args)
3956
+ get: function () {
3957
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
3958
+ args[_key3] = arguments[_key3];
3959
+ }
3960
+
3961
+ return requestShortcut('get', ...args);
3962
+ },
3963
+ post: function () {
3964
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
3965
+ args[_key4] = arguments[_key4];
3966
+ }
3967
+
3968
+ return requestShortcut('post', ...args);
3969
+ },
3970
+ json: function () {
3971
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
3972
+ args[_key5] = arguments[_key5];
3973
+ }
3974
+
3975
+ return requestShortcut('json', ...args);
3976
+ },
3977
+ getJSON: function () {
3978
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
3979
+ args[_key6] = arguments[_key6];
3980
+ }
3981
+
3982
+ return requestShortcut('json', ...args);
3983
+ },
3984
+ postJSON: function () {
3985
+ for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
3986
+ args[_key7] = arguments[_key7];
3987
+ }
3988
+
3989
+ return requestShortcut('postJSON', ...args);
3990
+ }
3761
3991
  });
3762
3992
 
3763
3993
  request.abortController = () => {
@@ -5302,12 +5532,13 @@
5302
5532
  return els;
5303
5533
  }
5304
5534
 
5305
- function setAnimatableNavElements({
5306
- progress,
5307
- reset,
5308
- transition,
5309
- reflow
5310
- } = {}) {
5535
+ function setAnimatableNavElements(_temp) {
5536
+ let {
5537
+ progress,
5538
+ reset,
5539
+ transition,
5540
+ reflow
5541
+ } = _temp === void 0 ? {} : _temp;
5311
5542
  const styles = ['overflow', 'transform', 'transform-origin', 'opacity'];
5312
5543
 
5313
5544
  if (transition === true || transition === false) {
@@ -5712,7 +5943,11 @@
5712
5943
  options.history = true; // eslint-disable-line
5713
5944
  }
5714
5945
 
5715
- function redirectResolve(redirectUrl, redirectOptions = {}) {
5946
+ function redirectResolve(redirectUrl, redirectOptions) {
5947
+ if (redirectOptions === void 0) {
5948
+ redirectOptions = {};
5949
+ }
5950
+
5716
5951
  router.allowPageChange = true;
5717
5952
  router[method](redirectUrl, extend({}, options, redirectOptions));
5718
5953
  }
@@ -5866,7 +6101,11 @@
5866
6101
  });
5867
6102
  }
5868
6103
 
5869
- function forward(router, el, forwardOptions = {}) {
6104
+ function forward(router, el, forwardOptions) {
6105
+ if (forwardOptions === void 0) {
6106
+ forwardOptions = {};
6107
+ }
6108
+
5870
6109
  const document = getDocument();
5871
6110
  const $el = $(el);
5872
6111
  const app = router.app;
@@ -6465,7 +6704,15 @@
6465
6704
  return router;
6466
6705
  }
6467
6706
 
6468
- function load(router, loadParams = {}, loadOptions = {}, ignorePageChange) {
6707
+ function load(router, loadParams, loadOptions, ignorePageChange) {
6708
+ if (loadParams === void 0) {
6709
+ loadParams = {};
6710
+ }
6711
+
6712
+ if (loadOptions === void 0) {
6713
+ loadOptions = {};
6714
+ }
6715
+
6469
6716
  if (!router.allowPageChange && !ignorePageChange) return router;
6470
6717
  const params = loadParams;
6471
6718
  const options = loadOptions;
@@ -6580,7 +6827,11 @@
6580
6827
  return router;
6581
6828
  }
6582
6829
 
6583
- function navigate(navigateParams, navigateOptions = {}) {
6830
+ function navigate(navigateParams, navigateOptions) {
6831
+ if (navigateOptions === void 0) {
6832
+ navigateOptions = {};
6833
+ }
6834
+
6584
6835
  const router = this;
6585
6836
  if (router.swipeBackActive) return router;
6586
6837
  let url;
@@ -6805,7 +7056,11 @@
6805
7056
  return router;
6806
7057
  }
6807
7058
 
6808
- function tabLoad(tabRoute, loadOptions = {}) {
7059
+ function tabLoad(tabRoute, loadOptions) {
7060
+ if (loadOptions === void 0) {
7061
+ loadOptions = {};
7062
+ }
7063
+
6809
7064
  const router = this;
6810
7065
  const options = extend({
6811
7066
  animate: router.params.animate,
@@ -7054,7 +7309,11 @@
7054
7309
  router.removeTabContent($oldTabEl[0], tabRoute);
7055
7310
  }
7056
7311
 
7057
- function modalLoad(modalType, route, loadOptions = {}, direction) {
7312
+ function modalLoad(modalType, route, loadOptions, direction) {
7313
+ if (loadOptions === void 0) {
7314
+ loadOptions = {};
7315
+ }
7316
+
7058
7317
  const router = this;
7059
7318
  const app = router.app;
7060
7319
  const isPanel = modalType === 'panel';
@@ -7845,7 +8104,7 @@
7845
8104
  return router;
7846
8105
  }
7847
8106
 
7848
- function back(...args) {
8107
+ function back() {
7849
8108
  const router = this;
7850
8109
  const device = getDevice();
7851
8110
  if (router.swipeBackActive) return router;
@@ -7853,11 +8112,11 @@
7853
8112
  let navigateOptions;
7854
8113
  let route;
7855
8114
 
7856
- if (typeof args[0] === 'object') {
7857
- navigateOptions = args[0] || {};
8115
+ if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'object') {
8116
+ navigateOptions = (arguments.length <= 0 ? undefined : arguments[0]) || {};
7858
8117
  } else {
7859
- navigateUrl = args[0];
7860
- navigateOptions = args[1] || {};
8118
+ navigateUrl = arguments.length <= 0 ? undefined : arguments[0];
8119
+ navigateOptions = (arguments.length <= 1 ? undefined : arguments[1]) || {};
7861
8120
  }
7862
8121
 
7863
8122
  const {
@@ -8262,7 +8521,11 @@
8262
8521
  enumerable: true,
8263
8522
  configurable: true,
8264
8523
 
8265
- set(newRoute = {}) {
8524
+ set(newRoute) {
8525
+ if (newRoute === void 0) {
8526
+ newRoute = {};
8527
+ }
8528
+
8266
8529
  previousRoute = extend({}, currentRoute);
8267
8530
  currentRoute = newRoute;
8268
8531
  if (!currentRoute) return;
@@ -8667,7 +8930,11 @@
8667
8930
  return undefined;
8668
8931
  }
8669
8932
 
8670
- flattenRoutes(routes = this.routes) {
8933
+ flattenRoutes(routes) {
8934
+ if (routes === void 0) {
8935
+ routes = this.routes;
8936
+ }
8937
+
8671
8938
  const router = this;
8672
8939
  let flattenedRoutes = [];
8673
8940
  routes.forEach(route => {
@@ -8735,7 +9002,11 @@
8735
9002
  };
8736
9003
  }
8737
9004
 
8738
- generateUrl(parameters = {}) {
9005
+ generateUrl(parameters) {
9006
+ if (parameters === void 0) {
9007
+ parameters = {};
9008
+ }
9009
+
8739
9010
  if (typeof parameters === 'string') {
8740
9011
  return parameters;
8741
9012
  }
@@ -8775,10 +9046,11 @@
8775
9046
  } // eslint-disable-next-line
8776
9047
 
8777
9048
 
8778
- constructRouteUrl(route, {
8779
- params,
8780
- query
8781
- } = {}) {
9049
+ constructRouteUrl(route, _temp) {
9050
+ let {
9051
+ params,
9052
+ query
9053
+ } = _temp === void 0 ? {} : _temp;
8782
9054
  const {
8783
9055
  path
8784
9056
  } = route;
@@ -8899,7 +9171,15 @@
8899
9171
  } // eslint-disable-next-line
8900
9172
 
8901
9173
 
8902
- replaceRequestUrlParams(url = '', options = {}) {
9174
+ replaceRequestUrlParams(url, options) {
9175
+ if (url === void 0) {
9176
+ url = '';
9177
+ }
9178
+
9179
+ if (options === void 0) {
9180
+ options = {};
9181
+ }
9182
+
8903
9183
  let compiledUrl = url;
8904
9184
 
8905
9185
  if (typeof compiledUrl === 'string' && compiledUrl.indexOf('{{') >= 0 && options && options.route && options.route.params && Object.keys(options.route.params).length) {
@@ -9062,7 +9342,11 @@
9062
9342
  $(el).find(toRemove).remove();
9063
9343
  }
9064
9344
 
9065
- getPageData(pageEl, navbarEl, from, to, route = {}, pageFromEl) {
9345
+ getPageData(pageEl, navbarEl, from, to, route, pageFromEl) {
9346
+ if (route === void 0) {
9347
+ route = {};
9348
+ }
9349
+
9066
9350
  const router = this;
9067
9351
  const $pageEl = $(pageEl).eq(0);
9068
9352
  const $navbarEl = $(navbarEl).eq(0);
@@ -9109,7 +9393,11 @@
9109
9393
  } // Callbacks
9110
9394
 
9111
9395
 
9112
- pageCallback(callback, pageEl, navbarEl, from, to, options = {}, pageFromEl) {
9396
+ pageCallback(callback, pageEl, navbarEl, from, to, options, pageFromEl) {
9397
+ if (options === void 0) {
9398
+ options = {};
9399
+ }
9400
+
9113
9401
  if (!pageEl) return;
9114
9402
  const router = this;
9115
9403
  const $pageEl = $(pageEl);
@@ -9834,7 +10122,11 @@
9834
10122
  }
9835
10123
 
9836
10124
  class View$1 extends Framework7Class {
9837
- constructor(app, el, viewParams = {}) {
10125
+ constructor(app, el, viewParams) {
10126
+ if (viewParams === void 0) {
10127
+ viewParams = {};
10128
+ }
10129
+
9838
10130
  super(viewParams, [app]);
9839
10131
  const view = this;
9840
10132
  const ssr = view.params.routerId;
@@ -10206,7 +10498,11 @@
10206
10498
  return router.navigate(navigateOptions);
10207
10499
  },
10208
10500
 
10209
- componentLoader(component, componentUrl, options = {}, resolve, reject) {
10501
+ componentLoader(component, componentUrl, options, resolve, reject) {
10502
+ if (options === void 0) {
10503
+ options = {};
10504
+ }
10505
+
10210
10506
  const router = this;
10211
10507
  const {
10212
10508
  app
@@ -10289,41 +10585,48 @@
10289
10585
  }
10290
10586
  },
10291
10587
 
10292
- modalComponentLoader({
10293
- component,
10294
- componentUrl,
10295
- options,
10296
- resolve,
10297
- reject
10298
- } = {}) {
10588
+ modalComponentLoader(_temp) {
10589
+ let {
10590
+ component,
10591
+ componentUrl,
10592
+ options,
10593
+ resolve,
10594
+ reject
10595
+ } = _temp === void 0 ? {} : _temp;
10299
10596
  const router = this;
10300
10597
  router.componentLoader(component, componentUrl, options, el => {
10301
10598
  resolve(el);
10302
10599
  }, reject);
10303
10600
  },
10304
10601
 
10305
- tabComponentLoader({
10306
- component,
10307
- componentUrl,
10308
- options,
10309
- resolve,
10310
- reject
10311
- } = {}) {
10602
+ tabComponentLoader(_temp2) {
10603
+ let {
10604
+ component,
10605
+ componentUrl,
10606
+ options,
10607
+ resolve,
10608
+ reject
10609
+ } = _temp2 === void 0 ? {} : _temp2;
10312
10610
  const router = this;
10313
10611
  router.componentLoader(component, componentUrl, options, el => {
10314
10612
  resolve(el);
10315
10613
  }, reject);
10316
10614
  },
10317
10615
 
10318
- pageComponentLoader({
10319
- component,
10320
- componentUrl,
10321
- options,
10322
- resolve,
10323
- reject
10324
- } = {}) {
10616
+ pageComponentLoader(_temp3) {
10617
+ let {
10618
+ component,
10619
+ componentUrl,
10620
+ options,
10621
+ resolve,
10622
+ reject
10623
+ } = _temp3 === void 0 ? {} : _temp3;
10325
10624
  const router = this;
10326
- router.componentLoader(component, componentUrl, options, (el, newOptions = {}) => {
10625
+ router.componentLoader(component, componentUrl, options, function (el, newOptions) {
10626
+ if (newOptions === void 0) {
10627
+ newOptions = {};
10628
+ }
10629
+
10327
10630
  resolve(el, newOptions);
10328
10631
  }, reject);
10329
10632
  }
@@ -10362,7 +10665,11 @@
10362
10665
 
10363
10666
  const ignoreChildren = [false, null, '', undefined];
10364
10667
 
10365
- const h$1 = (type, props, ...children) => {
10668
+ const h$1 = function (type, props) {
10669
+ for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
10670
+ children[_key - 2] = arguments[_key];
10671
+ }
10672
+
10366
10673
  return {
10367
10674
  type,
10368
10675
  props: props || {},
@@ -10462,9 +10769,18 @@
10462
10769
  }).join('');
10463
10770
  };
10464
10771
 
10465
- const propsFromAttrs = (...args) => {
10772
+ const propsFromAttrs = function () {
10466
10773
  const context = {};
10467
- args.forEach((obj = {}) => {
10774
+
10775
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10776
+ args[_key] = arguments[_key];
10777
+ }
10778
+
10779
+ args.forEach(function (obj) {
10780
+ if (obj === void 0) {
10781
+ obj = {};
10782
+ }
10783
+
10468
10784
  Object.keys(obj).forEach(key => {
10469
10785
  context[toCamelCase(key)] = obj[key];
10470
10786
  });
@@ -10472,12 +10788,13 @@
10472
10788
  return context;
10473
10789
  };
10474
10790
 
10475
- const createCustomComponent = ({
10476
- f7,
10477
- treeNode,
10478
- vnode,
10479
- data
10480
- }) => {
10791
+ const createCustomComponent = _ref => {
10792
+ let {
10793
+ f7,
10794
+ treeNode,
10795
+ vnode,
10796
+ data
10797
+ } = _ref;
10481
10798
  const component = typeof treeNode.type === 'function' ? treeNode.type : customComponents[treeNode.type];
10482
10799
  f7.component.create(component, propsFromAttrs(data.attrs || {}, data.props || {}), {
10483
10800
  el: vnode.elm,
@@ -10621,20 +10938,21 @@
10621
10938
  return hooks;
10622
10939
  }
10623
10940
 
10624
- const getEventHandler = (eventHandler, {
10625
- stop,
10626
- prevent,
10627
- once
10628
- } = {}) => {
10941
+ const getEventHandler = function (eventHandler, _temp) {
10942
+ let {
10943
+ stop,
10944
+ prevent,
10945
+ once
10946
+ } = _temp === void 0 ? {} : _temp;
10629
10947
  let fired = false;
10630
10948
 
10631
- function handler(...args) {
10632
- const e = args[0];
10949
+ function handler() {
10950
+ const e = arguments.length <= 0 ? undefined : arguments[0];
10633
10951
  if (once && fired) return;
10634
10952
  if (stop) e.stopPropagation();
10635
10953
  if (prevent) e.preventDefault();
10636
10954
  fired = true;
10637
- eventHandler(...args);
10955
+ eventHandler(...arguments);
10638
10956
  }
10639
10957
 
10640
10958
  return handler;
@@ -10800,7 +11118,11 @@
10800
11118
  return h(getTagName(treeNode), data, children);
10801
11119
  };
10802
11120
 
10803
- function vdom(tree = {}, component, initial) {
11121
+ function vdom(tree, component, initial) {
11122
+ if (tree === void 0) {
11123
+ tree = {};
11124
+ }
11125
+
10804
11126
  return treeNodeToVNode(tree, component, component.f7, initial, true);
10805
11127
  }
10806
11128
 
@@ -11438,7 +11760,11 @@
11438
11760
  }
11439
11761
 
11440
11762
  function createListener() {
11441
- return function handler(event, ...args) {
11763
+ return function handler(event) {
11764
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
11765
+ args[_key - 1] = arguments[_key];
11766
+ }
11767
+
11442
11768
  handleEvent(event, args, handler.vnode);
11443
11769
  };
11444
11770
  }
@@ -11504,11 +11830,16 @@
11504
11830
  /* eslint no-underscore-dangle: "off" */
11505
11831
 
11506
11832
  class Component {
11507
- constructor(app, component, props = {}, {
11508
- el,
11509
- context,
11510
- children
11511
- } = {}) {
11833
+ constructor(app, component, props, _temp) {
11834
+ if (props === void 0) {
11835
+ props = {};
11836
+ }
11837
+
11838
+ let {
11839
+ el,
11840
+ context,
11841
+ children
11842
+ } = _temp === void 0 ? {} : _temp;
11512
11843
  const document = getDocument();
11513
11844
  merge(this, {
11514
11845
  f7: app,
@@ -11716,17 +12047,19 @@
11716
12047
  } = this;
11717
12048
  if (!this.__eventHandlers) return;
11718
12049
 
11719
- this.__eventHandlers.forEach(({
11720
- eventName,
11721
- handler
11722
- }) => {
12050
+ this.__eventHandlers.forEach(_ref => {
12051
+ let {
12052
+ eventName,
12053
+ handler
12054
+ } = _ref;
11723
12055
  $el.on(eventNameToColonCase(eventName), handler);
11724
12056
  });
11725
12057
 
11726
- this.__onceEventHandlers.forEach(({
11727
- eventName,
11728
- handler
11729
- }) => {
12058
+ this.__onceEventHandlers.forEach(_ref2 => {
12059
+ let {
12060
+ eventName,
12061
+ handler
12062
+ } = _ref2;
11730
12063
  $el.once(eventNameToColonCase(eventName), handler);
11731
12064
  });
11732
12065
  }
@@ -11737,17 +12070,19 @@
11737
12070
  } = this;
11738
12071
  if (!this.__eventHandlers) return;
11739
12072
 
11740
- this.__eventHandlers.forEach(({
11741
- eventName,
11742
- handler
11743
- }) => {
12073
+ this.__eventHandlers.forEach(_ref3 => {
12074
+ let {
12075
+ eventName,
12076
+ handler
12077
+ } = _ref3;
11744
12078
  $el.on(eventNameToColonCase(eventName), handler);
11745
12079
  });
11746
12080
 
11747
- this.__onceEventHandlers.forEach(({
11748
- eventName,
11749
- handler
11750
- }) => {
12081
+ this.__onceEventHandlers.forEach(_ref4 => {
12082
+ let {
12083
+ eventName,
12084
+ handler
12085
+ } = _ref4;
11751
12086
  $el.once(eventNameToColonCase(eventName), handler);
11752
12087
  });
11753
12088
  }
@@ -11867,7 +12202,11 @@
11867
12202
  this.__destroyed = true;
11868
12203
  }
11869
12204
 
11870
- hook(name, ...args) {
12205
+ hook(name) {
12206
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
12207
+ args[_key - 1] = arguments[_key];
12208
+ }
12209
+
11871
12210
  if (this.__destroyed) return;
11872
12211
  this[`__${name}`].forEach(handler => {
11873
12212
  handler(...args);
@@ -11976,12 +12315,13 @@
11976
12315
  return parseComponent(componentString);
11977
12316
  },
11978
12317
 
11979
- create(component, props, {
11980
- root,
11981
- el,
11982
- context,
11983
- children
11984
- }) {
12318
+ create(component, props, _ref) {
12319
+ let {
12320
+ root,
12321
+ el,
12322
+ context,
12323
+ children
12324
+ } = _ref;
11985
12325
  return new Component(app, component, props, {
11986
12326
  root,
11987
12327
  el,
@@ -12106,7 +12446,11 @@
12106
12446
 
12107
12447
  /* eslint-disable no-underscore-dangle */
12108
12448
 
12109
- function createStore(storeParams = {}) {
12449
+ function createStore(storeParams) {
12450
+ if (storeParams === void 0) {
12451
+ storeParams = {};
12452
+ }
12453
+
12110
12454
  const store = {
12111
12455
  __store: true
12112
12456
  };
@@ -12172,7 +12516,11 @@
12172
12516
  removeGetterCallback(callback);
12173
12517
  };
12174
12518
 
12175
- const getterValue = (getterKey, addCallback = true) => {
12519
+ const getterValue = function (getterKey, addCallback) {
12520
+ if (addCallback === void 0) {
12521
+ addCallback = true;
12522
+ }
12523
+
12176
12524
  if (getterKey === 'constructor') return undefined;
12177
12525
  propsQueue = [];
12178
12526
  const value = getGetterValue(getterKey);
@@ -12380,7 +12728,11 @@
12380
12728
  });
12381
12729
  },
12382
12730
 
12383
- overlaysWebView(overlays = true) {
12731
+ overlaysWebView(overlays) {
12732
+ if (overlays === void 0) {
12733
+ overlays = true;
12734
+ }
12735
+
12384
12736
  const window = getWindow();
12385
12737
  const device = getDevice();
12386
12738
 
@@ -12825,7 +13177,19 @@
12825
13177
  }
12826
13178
  },
12827
13179
 
12828
- hide(el, animate = true, hideStatusbar = false, hideOnlyCurrent = false) {
13180
+ hide(el, animate, hideStatusbar, hideOnlyCurrent) {
13181
+ if (animate === void 0) {
13182
+ animate = true;
13183
+ }
13184
+
13185
+ if (hideStatusbar === void 0) {
13186
+ hideStatusbar = false;
13187
+ }
13188
+
13189
+ if (hideOnlyCurrent === void 0) {
13190
+ hideOnlyCurrent = false;
13191
+ }
13192
+
12829
13193
  const app = this;
12830
13194
  let $el = $(el);
12831
13195
  const isDynamic = $el.hasClass('navbar') && $el.parent('.navbars').length && !hideOnlyCurrent;
@@ -12859,7 +13223,19 @@
12859
13223
  }
12860
13224
  },
12861
13225
 
12862
- show(el = '.navbar-hidden', animate = true, hideOnlyCurrent = false) {
13226
+ show(el, animate, hideOnlyCurrent) {
13227
+ if (el === void 0) {
13228
+ el = '.navbar-hidden';
13229
+ }
13230
+
13231
+ if (animate === void 0) {
13232
+ animate = true;
13233
+ }
13234
+
13235
+ if (hideOnlyCurrent === void 0) {
13236
+ hideOnlyCurrent = false;
13237
+ }
13238
+
12863
13239
  const app = this;
12864
13240
  let $el = $(el);
12865
13241
  const isDynamic = $el.hasClass('navbar') && $el.parent('.navbars').length && !hideOnlyCurrent;
@@ -13531,7 +13907,11 @@
13531
13907
  app.toolbar.setHighlight(tabbarEl);
13532
13908
  },
13533
13909
 
13534
- hide(el, animate = true) {
13910
+ hide(el, animate) {
13911
+ if (animate === void 0) {
13912
+ animate = true;
13913
+ }
13914
+
13535
13915
  const app = this;
13536
13916
  const $el = $(el);
13537
13917
  if ($el.hasClass('toolbar-hidden')) return;
@@ -13544,7 +13924,11 @@
13544
13924
  app.emit('toolbarHide', $el[0]);
13545
13925
  },
13546
13926
 
13547
- show(el, animate = true) {
13927
+ show(el, animate) {
13928
+ if (animate === void 0) {
13929
+ animate = true;
13930
+ }
13931
+
13548
13932
  const app = this;
13549
13933
  const $el = $(el);
13550
13934
  if (!$el.hasClass('toolbar-hidden')) return;
@@ -13841,7 +14225,11 @@
13841
14225
  create() {
13842
14226
  const app = this;
13843
14227
  app.touchRipple = {
13844
- create(...args) {
14228
+ create() {
14229
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14230
+ args[_key] = arguments[_key];
14231
+ }
14232
+
13845
14233
  return new TouchRipple$1(...args);
13846
14234
  }
13847
14235
 
@@ -14211,5 +14599,5 @@
14211
14599
 
14212
14600
  return Framework7;
14213
14601
 
14214
- })));
14602
+ }));
14215
14603
  //# sourceMappingURL=framework7.js.map