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.
- package/components/accordion/accordion.lazy.js +1 -1
- package/components/actions/actions.js +10 -2
- package/components/actions/actions.lazy.js +1 -1
- package/components/app/app-class.js +15 -9
- package/components/area-chart/area-chart-class.js +34 -18
- package/components/area-chart/area-chart.lazy.js +1 -1
- package/components/autocomplete/autocomplete-class.js +5 -1
- package/components/autocomplete/autocomplete.lazy.js +1 -1
- package/components/calendar/calendar-class.js +10 -2
- package/components/calendar/calendar.js +5 -1
- package/components/calendar/calendar.lazy.js +1 -1
- package/components/card/card.js +23 -3
- package/components/card/card.lazy.js +1 -1
- package/components/color-picker/color-picker-class.js +19 -3
- package/components/color-picker/color-picker.js +5 -1
- package/components/color-picker/color-picker.lazy.js +1 -1
- package/components/data-table/data-table-class.js +5 -1
- package/components/data-table/data-table.lazy.js +1 -1
- package/components/dialog/dialog.js +30 -6
- package/components/dialog/dialog.lazy.js +1 -1
- package/components/fab/fab-rtl.css +1 -1
- package/components/fab/fab.css +1 -1
- package/components/fab/fab.js +15 -3
- package/components/fab/fab.lazy.js +1 -1
- package/components/form/form.lazy.js +1 -1
- package/components/gauge/gauge-class.js +10 -2
- package/components/gauge/gauge.lazy.js +1 -1
- package/components/input/input.js +5 -1
- package/components/input/input.lazy.js +1 -1
- package/components/list-index/list-index-class.js +5 -1
- package/components/list-index/list-index.lazy.js +1 -1
- package/components/login-screen/login-screen.js +10 -2
- package/components/login-screen/login-screen.lazy.js +1 -1
- package/components/menu/menu.js +10 -2
- package/components/menu/menu.lazy.js +1 -1
- package/components/messagebar/messagebar-class.js +25 -5
- package/components/messagebar/messagebar.lazy.js +1 -1
- package/components/messages/messages-class.js +60 -24
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages.css +1 -1
- package/components/messages/messages.lazy.js +1 -1
- package/components/navbar/navbar.js +26 -2
- package/components/panel/panel-class.js +35 -7
- package/components/panel/panel.js +40 -8
- package/components/panel/panel.lazy.js +1 -1
- package/components/photo-browser/photo-browser-class.js +42 -8
- package/components/photo-browser/photo-browser.lazy.js +1 -1
- package/components/picker/picker-class.js +5 -1
- package/components/picker/picker.js +5 -1
- package/components/picker/picker.lazy.js +1 -1
- package/components/pie-chart/pie-chart-class.js +16 -7
- package/components/pie-chart/pie-chart.lazy.js +1 -1
- package/components/popover/popover-class.js +5 -1
- package/components/popover/popover.js +10 -2
- package/components/popover/popover.lazy.js +1 -1
- package/components/popup/popup.js +10 -2
- package/components/popup/popup.lazy.js +1 -1
- package/components/preloader/preloader-rtl.css +1 -1
- package/components/preloader/preloader.css +1 -1
- package/components/preloader/preloader.js +10 -2
- package/components/preloader/preloader.lazy.js +1 -1
- package/components/progressbar/progressbar.js +16 -3
- package/components/progressbar/progressbar.lazy.js +1 -1
- package/components/pull-to-refresh/pull-to-refresh-class.js +5 -1
- package/components/pull-to-refresh/pull-to-refresh.lazy.js +1 -1
- package/components/range/range.js +10 -2
- package/components/range/range.lazy.js +1 -1
- package/components/searchbar/searchbar-class.js +5 -1
- package/components/searchbar/searchbar.js +20 -4
- package/components/searchbar/searchbar.lazy.js +1 -1
- package/components/sheet/sheet-class.js +5 -1
- package/components/sheet/sheet.js +10 -2
- package/components/sheet/sheet.lazy.js +1 -1
- package/components/smart-select/smart-select-class.js +15 -3
- package/components/smart-select/smart-select.lazy.js +1 -1
- package/components/sortable/sortable.js +30 -6
- package/components/sortable/sortable.lazy.js +1 -1
- package/components/statusbar/statusbar.js +5 -1
- package/components/stepper/stepper.js +10 -2
- package/components/stepper/stepper.lazy.js +1 -1
- package/components/swipeout/swipeout.js +16 -3
- package/components/swipeout/swipeout.lazy.js +1 -1
- package/components/swiper/swiper.lazy.js +1 -1
- package/components/tabs/tabs.js +10 -2
- package/components/tabs/tabs.lazy.js +1 -1
- package/components/toggle/toggle-class.js +5 -1
- package/components/toggle/toggle.lazy.js +1 -1
- package/components/toolbar/toolbar.js +10 -2
- package/components/tooltip/tooltip-class.js +5 -1
- package/components/tooltip/tooltip.lazy.js +1 -1
- package/components/touch-ripple/touch-ripple.js +5 -1
- package/components/treeview/treeview.lazy.js +1 -1
- package/components/view/view-class.js +5 -1
- package/components/virtual-list/virtual-list-class.js +10 -2
- package/components/virtual-list/virtual-list.lazy.js +1 -1
- package/framework7-bundle-rtl.css +4 -4
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +4 -4
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +1646 -461
- 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-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 +562 -174
- 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/modules/component/$h.js +5 -1
- package/modules/component/$jsx.js +5 -1
- package/modules/component/component-class.js +35 -22
- package/modules/component/component.js +7 -6
- package/modules/component/eventslisteners.js +5 -1
- package/modules/component/snabbdom/h.js +1 -1
- package/modules/component/vdom.js +32 -17
- package/modules/router/back.js +5 -5
- package/modules/router/component-loader.js +34 -23
- package/modules/router/modal.js +5 -1
- package/modules/router/navigate.js +19 -3
- package/modules/router/redirect.js +5 -1
- package/modules/router/router-class.js +39 -10
- package/modules/router/swipe-back.js +7 -6
- package/modules/router/tab.js +5 -1
- package/modules/store/create-store.js +10 -2
- package/package.json +3 -2
- package/shared/$jsx.js +6 -1
- package/shared/class.js +33 -5
- package/shared/constructor-methods.js +25 -4
- package/shared/events-class.js +15 -3
- package/shared/get-device.js +9 -4
- package/shared/modal-methods.js +10 -2
- package/shared/request.js +45 -7
- package/shared/utils.js +47 -10
package/framework7-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 7.0.0-beta.
|
|
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
|
|
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$2(target
|
|
36
|
+
function extend$2(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$2(src[key]) && isObject$2(target[key]) && Object.keys(src[key]).length > 0) {
|
|
39
47
|
extend$2(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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
1041
|
+
function append() {
|
|
992
1042
|
let newChild;
|
|
993
1043
|
const document = getDocument();
|
|
994
1044
|
|
|
995
|
-
for (let k = 0; k <
|
|
996
|
-
newChild =
|
|
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(
|
|
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(
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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$1(mask
|
|
1851
|
+
function id$1(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$1(callback, delay
|
|
1913
|
+
function nextTick$1(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$1(el, axis
|
|
1950
|
+
function getTranslate$1(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
|
-
|
|
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
|
-
|
|
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$1(o) {
|
|
1959
2054
|
return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object;
|
|
1960
2055
|
}
|
|
1961
|
-
function merge(
|
|
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$1(
|
|
2084
|
+
function extend$1() {
|
|
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(
|
|
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(
|
|
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$1({
|
|
2221
|
-
|
|
2222
|
-
|
|
2332
|
+
function calcDevice$1(_temp) {
|
|
2333
|
+
let {
|
|
2334
|
+
userAgent
|
|
2335
|
+
} = _temp === void 0 ? {} : _temp;
|
|
2223
2336
|
const support = getSupport$1();
|
|
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$1(overrides
|
|
2466
|
+
function getDevice$1(overrides, reset) {
|
|
2467
|
+
if (overrides === void 0) {
|
|
2468
|
+
overrides = {};
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2354
2471
|
if (!deviceCalculated || reset) {
|
|
2355
2472
|
deviceCalculated = calcDevice$1(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(
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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$1()}`;
|
|
@@ -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
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
2990
|
-
|
|
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(
|
|
3134
|
-
return Framework7.loadModule(...
|
|
3325
|
+
loadModule() {
|
|
3326
|
+
return Framework7.loadModule(...arguments);
|
|
3135
3327
|
} // eslint-disable-next-line
|
|
3136
3328
|
|
|
3137
3329
|
|
|
3138
|
-
loadModules(
|
|
3139
|
-
return Framework7.loadModules(...
|
|
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
|
|
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
|
|
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: (
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
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 = () => {
|
|
@@ -5356,12 +5586,13 @@
|
|
|
5356
5586
|
return els;
|
|
5357
5587
|
}
|
|
5358
5588
|
|
|
5359
|
-
function setAnimatableNavElements({
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5589
|
+
function setAnimatableNavElements(_temp) {
|
|
5590
|
+
let {
|
|
5591
|
+
progress,
|
|
5592
|
+
reset,
|
|
5593
|
+
transition,
|
|
5594
|
+
reflow
|
|
5595
|
+
} = _temp === void 0 ? {} : _temp;
|
|
5365
5596
|
const styles = ['overflow', 'transform', 'transform-origin', 'opacity'];
|
|
5366
5597
|
|
|
5367
5598
|
if (transition === true || transition === false) {
|
|
@@ -5766,7 +5997,11 @@
|
|
|
5766
5997
|
options.history = true; // eslint-disable-line
|
|
5767
5998
|
}
|
|
5768
5999
|
|
|
5769
|
-
function redirectResolve(redirectUrl, redirectOptions
|
|
6000
|
+
function redirectResolve(redirectUrl, redirectOptions) {
|
|
6001
|
+
if (redirectOptions === void 0) {
|
|
6002
|
+
redirectOptions = {};
|
|
6003
|
+
}
|
|
6004
|
+
|
|
5770
6005
|
router.allowPageChange = true;
|
|
5771
6006
|
router[method](redirectUrl, extend$1({}, options, redirectOptions));
|
|
5772
6007
|
}
|
|
@@ -5920,7 +6155,11 @@
|
|
|
5920
6155
|
});
|
|
5921
6156
|
}
|
|
5922
6157
|
|
|
5923
|
-
function forward(router, el, forwardOptions
|
|
6158
|
+
function forward(router, el, forwardOptions) {
|
|
6159
|
+
if (forwardOptions === void 0) {
|
|
6160
|
+
forwardOptions = {};
|
|
6161
|
+
}
|
|
6162
|
+
|
|
5924
6163
|
const document = getDocument();
|
|
5925
6164
|
const $el = $(el);
|
|
5926
6165
|
const app = router.app;
|
|
@@ -6519,7 +6758,15 @@
|
|
|
6519
6758
|
return router;
|
|
6520
6759
|
}
|
|
6521
6760
|
|
|
6522
|
-
function load(router, loadParams
|
|
6761
|
+
function load(router, loadParams, loadOptions, ignorePageChange) {
|
|
6762
|
+
if (loadParams === void 0) {
|
|
6763
|
+
loadParams = {};
|
|
6764
|
+
}
|
|
6765
|
+
|
|
6766
|
+
if (loadOptions === void 0) {
|
|
6767
|
+
loadOptions = {};
|
|
6768
|
+
}
|
|
6769
|
+
|
|
6523
6770
|
if (!router.allowPageChange && !ignorePageChange) return router;
|
|
6524
6771
|
const params = loadParams;
|
|
6525
6772
|
const options = loadOptions;
|
|
@@ -6634,7 +6881,11 @@
|
|
|
6634
6881
|
return router;
|
|
6635
6882
|
}
|
|
6636
6883
|
|
|
6637
|
-
function navigate(navigateParams, navigateOptions
|
|
6884
|
+
function navigate(navigateParams, navigateOptions) {
|
|
6885
|
+
if (navigateOptions === void 0) {
|
|
6886
|
+
navigateOptions = {};
|
|
6887
|
+
}
|
|
6888
|
+
|
|
6638
6889
|
const router = this;
|
|
6639
6890
|
if (router.swipeBackActive) return router;
|
|
6640
6891
|
let url;
|
|
@@ -6859,7 +7110,11 @@
|
|
|
6859
7110
|
return router;
|
|
6860
7111
|
}
|
|
6861
7112
|
|
|
6862
|
-
function tabLoad(tabRoute, loadOptions
|
|
7113
|
+
function tabLoad(tabRoute, loadOptions) {
|
|
7114
|
+
if (loadOptions === void 0) {
|
|
7115
|
+
loadOptions = {};
|
|
7116
|
+
}
|
|
7117
|
+
|
|
6863
7118
|
const router = this;
|
|
6864
7119
|
const options = extend$1({
|
|
6865
7120
|
animate: router.params.animate,
|
|
@@ -7108,7 +7363,11 @@
|
|
|
7108
7363
|
router.removeTabContent($oldTabEl[0], tabRoute);
|
|
7109
7364
|
}
|
|
7110
7365
|
|
|
7111
|
-
function modalLoad(modalType, route, loadOptions
|
|
7366
|
+
function modalLoad(modalType, route, loadOptions, direction) {
|
|
7367
|
+
if (loadOptions === void 0) {
|
|
7368
|
+
loadOptions = {};
|
|
7369
|
+
}
|
|
7370
|
+
|
|
7112
7371
|
const router = this;
|
|
7113
7372
|
const app = router.app;
|
|
7114
7373
|
const isPanel = modalType === 'panel';
|
|
@@ -7899,7 +8158,7 @@
|
|
|
7899
8158
|
return router;
|
|
7900
8159
|
}
|
|
7901
8160
|
|
|
7902
|
-
function back(
|
|
8161
|
+
function back() {
|
|
7903
8162
|
const router = this;
|
|
7904
8163
|
const device = getDevice$1();
|
|
7905
8164
|
if (router.swipeBackActive) return router;
|
|
@@ -7907,11 +8166,11 @@
|
|
|
7907
8166
|
let navigateOptions;
|
|
7908
8167
|
let route;
|
|
7909
8168
|
|
|
7910
|
-
if (typeof
|
|
7911
|
-
navigateOptions =
|
|
8169
|
+
if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'object') {
|
|
8170
|
+
navigateOptions = (arguments.length <= 0 ? undefined : arguments[0]) || {};
|
|
7912
8171
|
} else {
|
|
7913
|
-
navigateUrl =
|
|
7914
|
-
navigateOptions =
|
|
8172
|
+
navigateUrl = arguments.length <= 0 ? undefined : arguments[0];
|
|
8173
|
+
navigateOptions = (arguments.length <= 1 ? undefined : arguments[1]) || {};
|
|
7915
8174
|
}
|
|
7916
8175
|
|
|
7917
8176
|
const {
|
|
@@ -8316,7 +8575,11 @@
|
|
|
8316
8575
|
enumerable: true,
|
|
8317
8576
|
configurable: true,
|
|
8318
8577
|
|
|
8319
|
-
set(newRoute
|
|
8578
|
+
set(newRoute) {
|
|
8579
|
+
if (newRoute === void 0) {
|
|
8580
|
+
newRoute = {};
|
|
8581
|
+
}
|
|
8582
|
+
|
|
8320
8583
|
previousRoute = extend$1({}, currentRoute);
|
|
8321
8584
|
currentRoute = newRoute;
|
|
8322
8585
|
if (!currentRoute) return;
|
|
@@ -8721,7 +8984,11 @@
|
|
|
8721
8984
|
return undefined;
|
|
8722
8985
|
}
|
|
8723
8986
|
|
|
8724
|
-
flattenRoutes(routes
|
|
8987
|
+
flattenRoutes(routes) {
|
|
8988
|
+
if (routes === void 0) {
|
|
8989
|
+
routes = this.routes;
|
|
8990
|
+
}
|
|
8991
|
+
|
|
8725
8992
|
const router = this;
|
|
8726
8993
|
let flattenedRoutes = [];
|
|
8727
8994
|
routes.forEach(route => {
|
|
@@ -8789,7 +9056,11 @@
|
|
|
8789
9056
|
};
|
|
8790
9057
|
}
|
|
8791
9058
|
|
|
8792
|
-
generateUrl(parameters
|
|
9059
|
+
generateUrl(parameters) {
|
|
9060
|
+
if (parameters === void 0) {
|
|
9061
|
+
parameters = {};
|
|
9062
|
+
}
|
|
9063
|
+
|
|
8793
9064
|
if (typeof parameters === 'string') {
|
|
8794
9065
|
return parameters;
|
|
8795
9066
|
}
|
|
@@ -8829,10 +9100,11 @@
|
|
|
8829
9100
|
} // eslint-disable-next-line
|
|
8830
9101
|
|
|
8831
9102
|
|
|
8832
|
-
constructRouteUrl(route, {
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
9103
|
+
constructRouteUrl(route, _temp) {
|
|
9104
|
+
let {
|
|
9105
|
+
params,
|
|
9106
|
+
query
|
|
9107
|
+
} = _temp === void 0 ? {} : _temp;
|
|
8836
9108
|
const {
|
|
8837
9109
|
path
|
|
8838
9110
|
} = route;
|
|
@@ -8953,7 +9225,15 @@
|
|
|
8953
9225
|
} // eslint-disable-next-line
|
|
8954
9226
|
|
|
8955
9227
|
|
|
8956
|
-
replaceRequestUrlParams(url
|
|
9228
|
+
replaceRequestUrlParams(url, options) {
|
|
9229
|
+
if (url === void 0) {
|
|
9230
|
+
url = '';
|
|
9231
|
+
}
|
|
9232
|
+
|
|
9233
|
+
if (options === void 0) {
|
|
9234
|
+
options = {};
|
|
9235
|
+
}
|
|
9236
|
+
|
|
8957
9237
|
let compiledUrl = url;
|
|
8958
9238
|
|
|
8959
9239
|
if (typeof compiledUrl === 'string' && compiledUrl.indexOf('{{') >= 0 && options && options.route && options.route.params && Object.keys(options.route.params).length) {
|
|
@@ -9116,7 +9396,11 @@
|
|
|
9116
9396
|
$(el).find(toRemove).remove();
|
|
9117
9397
|
}
|
|
9118
9398
|
|
|
9119
|
-
getPageData(pageEl, navbarEl, from, to, route
|
|
9399
|
+
getPageData(pageEl, navbarEl, from, to, route, pageFromEl) {
|
|
9400
|
+
if (route === void 0) {
|
|
9401
|
+
route = {};
|
|
9402
|
+
}
|
|
9403
|
+
|
|
9120
9404
|
const router = this;
|
|
9121
9405
|
const $pageEl = $(pageEl).eq(0);
|
|
9122
9406
|
const $navbarEl = $(navbarEl).eq(0);
|
|
@@ -9163,7 +9447,11 @@
|
|
|
9163
9447
|
} // Callbacks
|
|
9164
9448
|
|
|
9165
9449
|
|
|
9166
|
-
pageCallback(callback, pageEl, navbarEl, from, to, options
|
|
9450
|
+
pageCallback(callback, pageEl, navbarEl, from, to, options, pageFromEl) {
|
|
9451
|
+
if (options === void 0) {
|
|
9452
|
+
options = {};
|
|
9453
|
+
}
|
|
9454
|
+
|
|
9167
9455
|
if (!pageEl) return;
|
|
9168
9456
|
const router = this;
|
|
9169
9457
|
const $pageEl = $(pageEl);
|
|
@@ -9888,7 +10176,11 @@
|
|
|
9888
10176
|
}
|
|
9889
10177
|
|
|
9890
10178
|
class View$1 extends Framework7Class {
|
|
9891
|
-
constructor(app, el, viewParams
|
|
10179
|
+
constructor(app, el, viewParams) {
|
|
10180
|
+
if (viewParams === void 0) {
|
|
10181
|
+
viewParams = {};
|
|
10182
|
+
}
|
|
10183
|
+
|
|
9892
10184
|
super(viewParams, [app]);
|
|
9893
10185
|
const view = this;
|
|
9894
10186
|
const ssr = view.params.routerId;
|
|
@@ -10260,7 +10552,11 @@
|
|
|
10260
10552
|
return router.navigate(navigateOptions);
|
|
10261
10553
|
},
|
|
10262
10554
|
|
|
10263
|
-
componentLoader(component, componentUrl, options
|
|
10555
|
+
componentLoader(component, componentUrl, options, resolve, reject) {
|
|
10556
|
+
if (options === void 0) {
|
|
10557
|
+
options = {};
|
|
10558
|
+
}
|
|
10559
|
+
|
|
10264
10560
|
const router = this;
|
|
10265
10561
|
const {
|
|
10266
10562
|
app
|
|
@@ -10343,41 +10639,48 @@
|
|
|
10343
10639
|
}
|
|
10344
10640
|
},
|
|
10345
10641
|
|
|
10346
|
-
modalComponentLoader({
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10642
|
+
modalComponentLoader(_temp) {
|
|
10643
|
+
let {
|
|
10644
|
+
component,
|
|
10645
|
+
componentUrl,
|
|
10646
|
+
options,
|
|
10647
|
+
resolve,
|
|
10648
|
+
reject
|
|
10649
|
+
} = _temp === void 0 ? {} : _temp;
|
|
10353
10650
|
const router = this;
|
|
10354
10651
|
router.componentLoader(component, componentUrl, options, el => {
|
|
10355
10652
|
resolve(el);
|
|
10356
10653
|
}, reject);
|
|
10357
10654
|
},
|
|
10358
10655
|
|
|
10359
|
-
tabComponentLoader({
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10656
|
+
tabComponentLoader(_temp2) {
|
|
10657
|
+
let {
|
|
10658
|
+
component,
|
|
10659
|
+
componentUrl,
|
|
10660
|
+
options,
|
|
10661
|
+
resolve,
|
|
10662
|
+
reject
|
|
10663
|
+
} = _temp2 === void 0 ? {} : _temp2;
|
|
10366
10664
|
const router = this;
|
|
10367
10665
|
router.componentLoader(component, componentUrl, options, el => {
|
|
10368
10666
|
resolve(el);
|
|
10369
10667
|
}, reject);
|
|
10370
10668
|
},
|
|
10371
10669
|
|
|
10372
|
-
pageComponentLoader({
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10670
|
+
pageComponentLoader(_temp3) {
|
|
10671
|
+
let {
|
|
10672
|
+
component,
|
|
10673
|
+
componentUrl,
|
|
10674
|
+
options,
|
|
10675
|
+
resolve,
|
|
10676
|
+
reject
|
|
10677
|
+
} = _temp3 === void 0 ? {} : _temp3;
|
|
10379
10678
|
const router = this;
|
|
10380
|
-
router.componentLoader(component, componentUrl, options, (el, newOptions
|
|
10679
|
+
router.componentLoader(component, componentUrl, options, function (el, newOptions) {
|
|
10680
|
+
if (newOptions === void 0) {
|
|
10681
|
+
newOptions = {};
|
|
10682
|
+
}
|
|
10683
|
+
|
|
10381
10684
|
resolve(el, newOptions);
|
|
10382
10685
|
}, reject);
|
|
10383
10686
|
}
|
|
@@ -10416,7 +10719,11 @@
|
|
|
10416
10719
|
|
|
10417
10720
|
const ignoreChildren$1 = [false, null, '', undefined];
|
|
10418
10721
|
|
|
10419
|
-
const h$1 = (type, props
|
|
10722
|
+
const h$1 = function (type, props) {
|
|
10723
|
+
for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
10724
|
+
children[_key - 2] = arguments[_key];
|
|
10725
|
+
}
|
|
10726
|
+
|
|
10420
10727
|
return {
|
|
10421
10728
|
type,
|
|
10422
10729
|
props: props || {},
|
|
@@ -10517,9 +10824,18 @@
|
|
|
10517
10824
|
}).join('');
|
|
10518
10825
|
};
|
|
10519
10826
|
|
|
10520
|
-
const propsFromAttrs = (
|
|
10827
|
+
const propsFromAttrs = function () {
|
|
10521
10828
|
const context = {};
|
|
10522
|
-
|
|
10829
|
+
|
|
10830
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10831
|
+
args[_key] = arguments[_key];
|
|
10832
|
+
}
|
|
10833
|
+
|
|
10834
|
+
args.forEach(function (obj) {
|
|
10835
|
+
if (obj === void 0) {
|
|
10836
|
+
obj = {};
|
|
10837
|
+
}
|
|
10838
|
+
|
|
10523
10839
|
Object.keys(obj).forEach(key => {
|
|
10524
10840
|
context[toCamelCase(key)] = obj[key];
|
|
10525
10841
|
});
|
|
@@ -10527,12 +10843,13 @@
|
|
|
10527
10843
|
return context;
|
|
10528
10844
|
};
|
|
10529
10845
|
|
|
10530
|
-
const createCustomComponent =
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10846
|
+
const createCustomComponent = _ref => {
|
|
10847
|
+
let {
|
|
10848
|
+
f7,
|
|
10849
|
+
treeNode,
|
|
10850
|
+
vnode,
|
|
10851
|
+
data
|
|
10852
|
+
} = _ref;
|
|
10536
10853
|
const component = typeof treeNode.type === 'function' ? treeNode.type : customComponents[treeNode.type];
|
|
10537
10854
|
f7.component.create(component, propsFromAttrs(data.attrs || {}, data.props || {}), {
|
|
10538
10855
|
el: vnode.elm,
|
|
@@ -10676,20 +10993,21 @@
|
|
|
10676
10993
|
return hooks;
|
|
10677
10994
|
}
|
|
10678
10995
|
|
|
10679
|
-
const getEventHandler = (eventHandler, {
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
|
|
10683
|
-
|
|
10996
|
+
const getEventHandler = function (eventHandler, _temp) {
|
|
10997
|
+
let {
|
|
10998
|
+
stop,
|
|
10999
|
+
prevent,
|
|
11000
|
+
once
|
|
11001
|
+
} = _temp === void 0 ? {} : _temp;
|
|
10684
11002
|
let fired = false;
|
|
10685
11003
|
|
|
10686
|
-
function handler(
|
|
10687
|
-
const e =
|
|
11004
|
+
function handler() {
|
|
11005
|
+
const e = arguments.length <= 0 ? undefined : arguments[0];
|
|
10688
11006
|
if (once && fired) return;
|
|
10689
11007
|
if (stop) e.stopPropagation();
|
|
10690
11008
|
if (prevent) e.preventDefault();
|
|
10691
11009
|
fired = true;
|
|
10692
|
-
eventHandler(...
|
|
11010
|
+
eventHandler(...arguments);
|
|
10693
11011
|
}
|
|
10694
11012
|
|
|
10695
11013
|
return handler;
|
|
@@ -10855,7 +11173,11 @@
|
|
|
10855
11173
|
return h(getTagName(treeNode), data, children);
|
|
10856
11174
|
};
|
|
10857
11175
|
|
|
10858
|
-
function vdom(tree
|
|
11176
|
+
function vdom(tree, component, initial) {
|
|
11177
|
+
if (tree === void 0) {
|
|
11178
|
+
tree = {};
|
|
11179
|
+
}
|
|
11180
|
+
|
|
10859
11181
|
return treeNodeToVNode(tree, component, component.f7, initial, true);
|
|
10860
11182
|
}
|
|
10861
11183
|
|
|
@@ -11549,7 +11871,11 @@
|
|
|
11549
11871
|
}
|
|
11550
11872
|
|
|
11551
11873
|
function createListener() {
|
|
11552
|
-
return function handler(event
|
|
11874
|
+
return function handler(event) {
|
|
11875
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
11876
|
+
args[_key - 1] = arguments[_key];
|
|
11877
|
+
}
|
|
11878
|
+
|
|
11553
11879
|
handleEvent(event, args, handler.vnode);
|
|
11554
11880
|
};
|
|
11555
11881
|
}
|
|
@@ -11615,11 +11941,16 @@
|
|
|
11615
11941
|
/* eslint no-underscore-dangle: "off" */
|
|
11616
11942
|
|
|
11617
11943
|
class Component {
|
|
11618
|
-
constructor(app, component, props
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
|
|
11622
|
-
|
|
11944
|
+
constructor(app, component, props, _temp) {
|
|
11945
|
+
if (props === void 0) {
|
|
11946
|
+
props = {};
|
|
11947
|
+
}
|
|
11948
|
+
|
|
11949
|
+
let {
|
|
11950
|
+
el,
|
|
11951
|
+
context,
|
|
11952
|
+
children
|
|
11953
|
+
} = _temp === void 0 ? {} : _temp;
|
|
11623
11954
|
const document = getDocument();
|
|
11624
11955
|
merge(this, {
|
|
11625
11956
|
f7: app,
|
|
@@ -11827,17 +12158,19 @@
|
|
|
11827
12158
|
} = this;
|
|
11828
12159
|
if (!this.__eventHandlers) return;
|
|
11829
12160
|
|
|
11830
|
-
this.__eventHandlers.forEach(
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
12161
|
+
this.__eventHandlers.forEach(_ref => {
|
|
12162
|
+
let {
|
|
12163
|
+
eventName,
|
|
12164
|
+
handler
|
|
12165
|
+
} = _ref;
|
|
11834
12166
|
$el.on(eventNameToColonCase(eventName), handler);
|
|
11835
12167
|
});
|
|
11836
12168
|
|
|
11837
|
-
this.__onceEventHandlers.forEach(
|
|
11838
|
-
|
|
11839
|
-
|
|
11840
|
-
|
|
12169
|
+
this.__onceEventHandlers.forEach(_ref2 => {
|
|
12170
|
+
let {
|
|
12171
|
+
eventName,
|
|
12172
|
+
handler
|
|
12173
|
+
} = _ref2;
|
|
11841
12174
|
$el.once(eventNameToColonCase(eventName), handler);
|
|
11842
12175
|
});
|
|
11843
12176
|
}
|
|
@@ -11848,17 +12181,19 @@
|
|
|
11848
12181
|
} = this;
|
|
11849
12182
|
if (!this.__eventHandlers) return;
|
|
11850
12183
|
|
|
11851
|
-
this.__eventHandlers.forEach(
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
12184
|
+
this.__eventHandlers.forEach(_ref3 => {
|
|
12185
|
+
let {
|
|
12186
|
+
eventName,
|
|
12187
|
+
handler
|
|
12188
|
+
} = _ref3;
|
|
11855
12189
|
$el.on(eventNameToColonCase(eventName), handler);
|
|
11856
12190
|
});
|
|
11857
12191
|
|
|
11858
|
-
this.__onceEventHandlers.forEach(
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
12192
|
+
this.__onceEventHandlers.forEach(_ref4 => {
|
|
12193
|
+
let {
|
|
12194
|
+
eventName,
|
|
12195
|
+
handler
|
|
12196
|
+
} = _ref4;
|
|
11862
12197
|
$el.once(eventNameToColonCase(eventName), handler);
|
|
11863
12198
|
});
|
|
11864
12199
|
}
|
|
@@ -11978,7 +12313,11 @@
|
|
|
11978
12313
|
this.__destroyed = true;
|
|
11979
12314
|
}
|
|
11980
12315
|
|
|
11981
|
-
hook(name
|
|
12316
|
+
hook(name) {
|
|
12317
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
12318
|
+
args[_key - 1] = arguments[_key];
|
|
12319
|
+
}
|
|
12320
|
+
|
|
11982
12321
|
if (this.__destroyed) return;
|
|
11983
12322
|
this[`__${name}`].forEach(handler => {
|
|
11984
12323
|
handler(...args);
|
|
@@ -12064,7 +12403,11 @@
|
|
|
12064
12403
|
|
|
12065
12404
|
const ignoreChildren = [false, null, '', undefined];
|
|
12066
12405
|
|
|
12067
|
-
const $jsx$1 = (type, props
|
|
12406
|
+
const $jsx$1 = function (type, props) {
|
|
12407
|
+
for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
12408
|
+
children[_key - 2] = arguments[_key];
|
|
12409
|
+
}
|
|
12410
|
+
|
|
12068
12411
|
const flatChildren = flattenArray((children || []).filter(child => ignoreChildren.indexOf(child) < 0));
|
|
12069
12412
|
|
|
12070
12413
|
if (type === 'Fragment') {
|
|
@@ -12103,12 +12446,13 @@
|
|
|
12103
12446
|
return parseComponent(componentString);
|
|
12104
12447
|
},
|
|
12105
12448
|
|
|
12106
|
-
create(component, props, {
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12449
|
+
create(component, props, _ref) {
|
|
12450
|
+
let {
|
|
12451
|
+
root,
|
|
12452
|
+
el,
|
|
12453
|
+
context,
|
|
12454
|
+
children
|
|
12455
|
+
} = _ref;
|
|
12112
12456
|
return new Component(app, component, props, {
|
|
12113
12457
|
root,
|
|
12114
12458
|
el,
|
|
@@ -12233,7 +12577,11 @@
|
|
|
12233
12577
|
|
|
12234
12578
|
/* eslint-disable no-underscore-dangle */
|
|
12235
12579
|
|
|
12236
|
-
function createStore(storeParams
|
|
12580
|
+
function createStore(storeParams) {
|
|
12581
|
+
if (storeParams === void 0) {
|
|
12582
|
+
storeParams = {};
|
|
12583
|
+
}
|
|
12584
|
+
|
|
12237
12585
|
const store = {
|
|
12238
12586
|
__store: true
|
|
12239
12587
|
};
|
|
@@ -12299,7 +12647,11 @@
|
|
|
12299
12647
|
removeGetterCallback(callback);
|
|
12300
12648
|
};
|
|
12301
12649
|
|
|
12302
|
-
const getterValue = (getterKey, addCallback
|
|
12650
|
+
const getterValue = function (getterKey, addCallback) {
|
|
12651
|
+
if (addCallback === void 0) {
|
|
12652
|
+
addCallback = true;
|
|
12653
|
+
}
|
|
12654
|
+
|
|
12303
12655
|
if (getterKey === 'constructor') return undefined;
|
|
12304
12656
|
propsQueue = [];
|
|
12305
12657
|
const value = getGetterValue(getterKey);
|
|
@@ -12507,7 +12859,11 @@
|
|
|
12507
12859
|
});
|
|
12508
12860
|
},
|
|
12509
12861
|
|
|
12510
|
-
overlaysWebView(overlays
|
|
12862
|
+
overlaysWebView(overlays) {
|
|
12863
|
+
if (overlays === void 0) {
|
|
12864
|
+
overlays = true;
|
|
12865
|
+
}
|
|
12866
|
+
|
|
12511
12867
|
const window = getWindow();
|
|
12512
12868
|
const device = getDevice$1();
|
|
12513
12869
|
|
|
@@ -12953,7 +13309,19 @@
|
|
|
12953
13309
|
}
|
|
12954
13310
|
},
|
|
12955
13311
|
|
|
12956
|
-
hide(el, animate
|
|
13312
|
+
hide(el, animate, hideStatusbar, hideOnlyCurrent) {
|
|
13313
|
+
if (animate === void 0) {
|
|
13314
|
+
animate = true;
|
|
13315
|
+
}
|
|
13316
|
+
|
|
13317
|
+
if (hideStatusbar === void 0) {
|
|
13318
|
+
hideStatusbar = false;
|
|
13319
|
+
}
|
|
13320
|
+
|
|
13321
|
+
if (hideOnlyCurrent === void 0) {
|
|
13322
|
+
hideOnlyCurrent = false;
|
|
13323
|
+
}
|
|
13324
|
+
|
|
12957
13325
|
const app = this;
|
|
12958
13326
|
let $el = $(el);
|
|
12959
13327
|
const isDynamic = $el.hasClass('navbar') && $el.parent('.navbars').length && !hideOnlyCurrent;
|
|
@@ -12987,7 +13355,19 @@
|
|
|
12987
13355
|
}
|
|
12988
13356
|
},
|
|
12989
13357
|
|
|
12990
|
-
show(el
|
|
13358
|
+
show(el, animate, hideOnlyCurrent) {
|
|
13359
|
+
if (el === void 0) {
|
|
13360
|
+
el = '.navbar-hidden';
|
|
13361
|
+
}
|
|
13362
|
+
|
|
13363
|
+
if (animate === void 0) {
|
|
13364
|
+
animate = true;
|
|
13365
|
+
}
|
|
13366
|
+
|
|
13367
|
+
if (hideOnlyCurrent === void 0) {
|
|
13368
|
+
hideOnlyCurrent = false;
|
|
13369
|
+
}
|
|
13370
|
+
|
|
12991
13371
|
const app = this;
|
|
12992
13372
|
let $el = $(el);
|
|
12993
13373
|
const isDynamic = $el.hasClass('navbar') && $el.parent('.navbars').length && !hideOnlyCurrent;
|
|
@@ -13659,7 +14039,11 @@
|
|
|
13659
14039
|
app.toolbar.setHighlight(tabbarEl);
|
|
13660
14040
|
},
|
|
13661
14041
|
|
|
13662
|
-
hide(el, animate
|
|
14042
|
+
hide(el, animate) {
|
|
14043
|
+
if (animate === void 0) {
|
|
14044
|
+
animate = true;
|
|
14045
|
+
}
|
|
14046
|
+
|
|
13663
14047
|
const app = this;
|
|
13664
14048
|
const $el = $(el);
|
|
13665
14049
|
if ($el.hasClass('toolbar-hidden')) return;
|
|
@@ -13672,7 +14056,11 @@
|
|
|
13672
14056
|
app.emit('toolbarHide', $el[0]);
|
|
13673
14057
|
},
|
|
13674
14058
|
|
|
13675
|
-
show(el, animate
|
|
14059
|
+
show(el, animate) {
|
|
14060
|
+
if (animate === void 0) {
|
|
14061
|
+
animate = true;
|
|
14062
|
+
}
|
|
14063
|
+
|
|
13676
14064
|
const app = this;
|
|
13677
14065
|
const $el = $(el);
|
|
13678
14066
|
if (!$el.hasClass('toolbar-hidden')) return;
|
|
@@ -13969,7 +14357,11 @@
|
|
|
13969
14357
|
create() {
|
|
13970
14358
|
const app = this;
|
|
13971
14359
|
app.touchRipple = {
|
|
13972
|
-
create(
|
|
14360
|
+
create() {
|
|
14361
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
14362
|
+
args[_key] = arguments[_key];
|
|
14363
|
+
}
|
|
14364
|
+
|
|
13973
14365
|
return new TouchRipple$1(...args);
|
|
13974
14366
|
}
|
|
13975
14367
|
|
|
@@ -14333,8 +14725,13 @@
|
|
|
14333
14725
|
};
|
|
14334
14726
|
|
|
14335
14727
|
/* eslint-disable prefer-rest-params */
|
|
14336
|
-
const $jsx = (tag, props
|
|
14728
|
+
const $jsx = function (tag, props) {
|
|
14337
14729
|
const attrs = props || {};
|
|
14730
|
+
|
|
14731
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
14732
|
+
args[_key - 2] = arguments[_key];
|
|
14733
|
+
}
|
|
14734
|
+
|
|
14338
14735
|
const children = args || [];
|
|
14339
14736
|
const attrsString = Object.keys(attrs).map(attr => {
|
|
14340
14737
|
if (attr[0] === '_') {
|
|
@@ -14619,7 +15016,11 @@
|
|
|
14619
15016
|
defaultSelector: '.dialog.modal-in'
|
|
14620
15017
|
}), {
|
|
14621
15018
|
// Shortcuts
|
|
14622
|
-
alert(
|
|
15019
|
+
alert() {
|
|
15020
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
15021
|
+
args[_key] = arguments[_key];
|
|
15022
|
+
}
|
|
15023
|
+
|
|
14623
15024
|
let [text, title, callbackOk] = args;
|
|
14624
15025
|
|
|
14625
15026
|
if (args.length === 2 && typeof args[1] === 'function') {
|
|
@@ -14639,7 +15040,11 @@
|
|
|
14639
15040
|
}).open();
|
|
14640
15041
|
},
|
|
14641
15042
|
|
|
14642
|
-
prompt(
|
|
15043
|
+
prompt() {
|
|
15044
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
15045
|
+
args[_key2] = arguments[_key2];
|
|
15046
|
+
}
|
|
15047
|
+
|
|
14643
15048
|
let [text, title, callbackOk, callbackCancel, defaultValue] = args;
|
|
14644
15049
|
|
|
14645
15050
|
if (typeof args[1] === 'function') {
|
|
@@ -14672,7 +15077,11 @@
|
|
|
14672
15077
|
}).open();
|
|
14673
15078
|
},
|
|
14674
15079
|
|
|
14675
|
-
confirm(
|
|
15080
|
+
confirm() {
|
|
15081
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
15082
|
+
args[_key3] = arguments[_key3];
|
|
15083
|
+
}
|
|
15084
|
+
|
|
14676
15085
|
let [text, title, callbackOk, callbackCancel] = args;
|
|
14677
15086
|
|
|
14678
15087
|
if (typeof args[1] === 'function') {
|
|
@@ -14697,7 +15106,11 @@
|
|
|
14697
15106
|
}).open();
|
|
14698
15107
|
},
|
|
14699
15108
|
|
|
14700
|
-
login(
|
|
15109
|
+
login() {
|
|
15110
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
15111
|
+
args[_key4] = arguments[_key4];
|
|
15112
|
+
}
|
|
15113
|
+
|
|
14701
15114
|
let [text, title, callbackOk, callbackCancel] = args;
|
|
14702
15115
|
|
|
14703
15116
|
if (typeof args[1] === 'function') {
|
|
@@ -14737,7 +15150,11 @@
|
|
|
14737
15150
|
}).open();
|
|
14738
15151
|
},
|
|
14739
15152
|
|
|
14740
|
-
password(
|
|
15153
|
+
password() {
|
|
15154
|
+
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
15155
|
+
args[_key5] = arguments[_key5];
|
|
15156
|
+
}
|
|
15157
|
+
|
|
14741
15158
|
let [text, title, callbackOk, callbackCancel] = args;
|
|
14742
15159
|
|
|
14743
15160
|
if (typeof args[1] === 'function') {
|
|
@@ -14789,7 +15206,11 @@
|
|
|
14789
15206
|
}).open();
|
|
14790
15207
|
},
|
|
14791
15208
|
|
|
14792
|
-
progress(
|
|
15209
|
+
progress() {
|
|
15210
|
+
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
15211
|
+
args[_key6] = arguments[_key6];
|
|
15212
|
+
}
|
|
15213
|
+
|
|
14793
15214
|
let [title, progress, color] = args;
|
|
14794
15215
|
|
|
14795
15216
|
if (args.length === 2) {
|
|
@@ -15240,11 +15661,19 @@
|
|
|
15240
15661
|
},
|
|
15241
15662
|
|
|
15242
15663
|
clicks: {
|
|
15243
|
-
'.popup-open': function openPopup($clickedEl, data
|
|
15664
|
+
'.popup-open': function openPopup($clickedEl, data) {
|
|
15665
|
+
if (data === void 0) {
|
|
15666
|
+
data = {};
|
|
15667
|
+
}
|
|
15668
|
+
|
|
15244
15669
|
const app = this;
|
|
15245
15670
|
app.popup.open(data.popup, data.animate, $clickedEl);
|
|
15246
15671
|
},
|
|
15247
|
-
'.popup-close': function closePopup($clickedEl, data
|
|
15672
|
+
'.popup-close': function closePopup($clickedEl, data) {
|
|
15673
|
+
if (data === void 0) {
|
|
15674
|
+
data = {};
|
|
15675
|
+
}
|
|
15676
|
+
|
|
15248
15677
|
const app = this;
|
|
15249
15678
|
app.popup.close(data.popup, data.animate, $clickedEl);
|
|
15250
15679
|
}
|
|
@@ -15305,11 +15734,19 @@
|
|
|
15305
15734
|
},
|
|
15306
15735
|
|
|
15307
15736
|
clicks: {
|
|
15308
|
-
'.login-screen-open': function openLoginScreen($clickedEl, data
|
|
15737
|
+
'.login-screen-open': function openLoginScreen($clickedEl, data) {
|
|
15738
|
+
if (data === void 0) {
|
|
15739
|
+
data = {};
|
|
15740
|
+
}
|
|
15741
|
+
|
|
15309
15742
|
const app = this;
|
|
15310
15743
|
app.loginScreen.open(data.loginScreen, data.animate, $clickedEl);
|
|
15311
15744
|
},
|
|
15312
|
-
'.login-screen-close': function closeLoginScreen($clickedEl, data
|
|
15745
|
+
'.login-screen-close': function closeLoginScreen($clickedEl, data) {
|
|
15746
|
+
if (data === void 0) {
|
|
15747
|
+
data = {};
|
|
15748
|
+
}
|
|
15749
|
+
|
|
15313
15750
|
const app = this;
|
|
15314
15751
|
app.loginScreen.close(data.loginScreen, data.animate, $clickedEl);
|
|
15315
15752
|
}
|
|
@@ -15394,7 +15831,11 @@
|
|
|
15394
15831
|
type: 'popover',
|
|
15395
15832
|
forceBackdropUnique,
|
|
15396
15833
|
|
|
15397
|
-
open(
|
|
15834
|
+
open() {
|
|
15835
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
15836
|
+
args[_key] = arguments[_key];
|
|
15837
|
+
}
|
|
15838
|
+
|
|
15398
15839
|
let [targetEl, animate] = args;
|
|
15399
15840
|
if (typeof args[0] === 'boolean') [animate, targetEl] = args;
|
|
15400
15841
|
|
|
@@ -15713,11 +16154,19 @@
|
|
|
15713
16154
|
},
|
|
15714
16155
|
|
|
15715
16156
|
clicks: {
|
|
15716
|
-
'.popover-open': function openPopover($clickedEl, data
|
|
16157
|
+
'.popover-open': function openPopover($clickedEl, data) {
|
|
16158
|
+
if (data === void 0) {
|
|
16159
|
+
data = {};
|
|
16160
|
+
}
|
|
16161
|
+
|
|
15717
16162
|
const app = this;
|
|
15718
16163
|
app.popover.open(data.popover, $clickedEl, data.animate);
|
|
15719
16164
|
},
|
|
15720
|
-
'.popover-close': function closePopover($clickedEl, data
|
|
16165
|
+
'.popover-close': function closePopover($clickedEl, data) {
|
|
16166
|
+
if (data === void 0) {
|
|
16167
|
+
data = {};
|
|
16168
|
+
}
|
|
16169
|
+
|
|
15721
16170
|
const app = this;
|
|
15722
16171
|
app.popover.close(data.popover, data.animate, $clickedEl);
|
|
15723
16172
|
}
|
|
@@ -16116,11 +16565,19 @@
|
|
|
16116
16565
|
},
|
|
16117
16566
|
|
|
16118
16567
|
clicks: {
|
|
16119
|
-
'.actions-open': function openActions($clickedEl, data
|
|
16568
|
+
'.actions-open': function openActions($clickedEl, data) {
|
|
16569
|
+
if (data === void 0) {
|
|
16570
|
+
data = {};
|
|
16571
|
+
}
|
|
16572
|
+
|
|
16120
16573
|
const app = this;
|
|
16121
16574
|
app.actions.open(data.actions, data.animate, $clickedEl);
|
|
16122
16575
|
},
|
|
16123
|
-
'.actions-close': function closeActions($clickedEl, data
|
|
16576
|
+
'.actions-close': function closeActions($clickedEl, data) {
|
|
16577
|
+
if (data === void 0) {
|
|
16578
|
+
data = {};
|
|
16579
|
+
}
|
|
16580
|
+
|
|
16124
16581
|
const app = this;
|
|
16125
16582
|
app.actions.close(data.actions, data.animate, $clickedEl);
|
|
16126
16583
|
}
|
|
@@ -16540,7 +16997,11 @@
|
|
|
16540
16997
|
}
|
|
16541
16998
|
}
|
|
16542
16999
|
|
|
16543
|
-
sheet.setSwipeStep = function setSwipeStep(byResize
|
|
17000
|
+
sheet.setSwipeStep = function setSwipeStep(byResize) {
|
|
17001
|
+
if (byResize === void 0) {
|
|
17002
|
+
byResize = true;
|
|
17003
|
+
}
|
|
17004
|
+
|
|
16544
17005
|
const $swipeStepEl = $el.find('.sheet-modal-swipe-step').eq(0);
|
|
16545
17006
|
if (!$swipeStepEl.length) return;
|
|
16546
17007
|
|
|
@@ -16735,7 +17196,11 @@
|
|
|
16735
17196
|
},
|
|
16736
17197
|
|
|
16737
17198
|
clicks: {
|
|
16738
|
-
'.sheet-open': function openSheet($clickedEl, data
|
|
17199
|
+
'.sheet-open': function openSheet($clickedEl, data) {
|
|
17200
|
+
if (data === void 0) {
|
|
17201
|
+
data = {};
|
|
17202
|
+
}
|
|
17203
|
+
|
|
16739
17204
|
const app = this;
|
|
16740
17205
|
|
|
16741
17206
|
if ($('.sheet-modal.modal-in').length > 0 && data.sheet && $(data.sheet)[0] !== $('.sheet-modal.modal-in')[0]) {
|
|
@@ -16744,7 +17209,11 @@
|
|
|
16744
17209
|
|
|
16745
17210
|
app.sheet.open(data.sheet, data.animate, $clickedEl);
|
|
16746
17211
|
},
|
|
16747
|
-
'.sheet-close': function closeSheet($clickedEl, data
|
|
17212
|
+
'.sheet-close': function closeSheet($clickedEl, data) {
|
|
17213
|
+
if (data === void 0) {
|
|
17214
|
+
data = {};
|
|
17215
|
+
}
|
|
17216
|
+
|
|
16748
17217
|
const app = this;
|
|
16749
17218
|
app.sheet.close(data.sheet, data.animate, $clickedEl);
|
|
16750
17219
|
}
|
|
@@ -16918,7 +17387,11 @@
|
|
|
16918
17387
|
// Modal
|
|
16919
17388
|
visible: false,
|
|
16920
17389
|
|
|
16921
|
-
show(color
|
|
17390
|
+
show(color) {
|
|
17391
|
+
if (color === void 0) {
|
|
17392
|
+
color = 'white';
|
|
17393
|
+
}
|
|
17394
|
+
|
|
16922
17395
|
const app = this;
|
|
16923
17396
|
if (Preloader.visible) return;
|
|
16924
17397
|
const preloaders = {
|
|
@@ -16938,7 +17411,11 @@
|
|
|
16938
17411
|
Preloader.visible = true;
|
|
16939
17412
|
},
|
|
16940
17413
|
|
|
16941
|
-
showIn(el, color
|
|
17414
|
+
showIn(el, color) {
|
|
17415
|
+
if (color === void 0) {
|
|
17416
|
+
color = 'white';
|
|
17417
|
+
}
|
|
17418
|
+
|
|
16942
17419
|
const app = this;
|
|
16943
17420
|
const preloaders = {
|
|
16944
17421
|
iosPreloaderContent,
|
|
@@ -17017,8 +17494,13 @@
|
|
|
17017
17494
|
};
|
|
17018
17495
|
|
|
17019
17496
|
const Progressbar = {
|
|
17020
|
-
set(
|
|
17497
|
+
set() {
|
|
17021
17498
|
const app = this;
|
|
17499
|
+
|
|
17500
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
17501
|
+
args[_key] = arguments[_key];
|
|
17502
|
+
}
|
|
17503
|
+
|
|
17022
17504
|
let [el, progress, duration] = args;
|
|
17023
17505
|
|
|
17024
17506
|
if (typeof args[0] === 'number') {
|
|
@@ -17055,9 +17537,13 @@
|
|
|
17055
17537
|
return $progressbarEl[0];
|
|
17056
17538
|
},
|
|
17057
17539
|
|
|
17058
|
-
show(
|
|
17540
|
+
show() {
|
|
17059
17541
|
const app = this; // '.page', 50, 'multi'
|
|
17060
17542
|
|
|
17543
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
17544
|
+
args[_key2] = arguments[_key2];
|
|
17545
|
+
}
|
|
17546
|
+
|
|
17061
17547
|
let [el, progress, color] = args;
|
|
17062
17548
|
let type = 'determined';
|
|
17063
17549
|
|
|
@@ -17110,7 +17596,11 @@
|
|
|
17110
17596
|
return $progressbarEl[0];
|
|
17111
17597
|
},
|
|
17112
17598
|
|
|
17113
|
-
hide(el, removeAfterHide
|
|
17599
|
+
hide(el, removeAfterHide) {
|
|
17600
|
+
if (removeAfterHide === void 0) {
|
|
17601
|
+
removeAfterHide = true;
|
|
17602
|
+
}
|
|
17603
|
+
|
|
17114
17604
|
const app = this;
|
|
17115
17605
|
const $el = $(el || app.$el);
|
|
17116
17606
|
if ($el.length === 0) return undefined;
|
|
@@ -17414,7 +17904,11 @@
|
|
|
17414
17904
|
});
|
|
17415
17905
|
},
|
|
17416
17906
|
|
|
17417
|
-
enable(el
|
|
17907
|
+
enable(el) {
|
|
17908
|
+
if (el === void 0) {
|
|
17909
|
+
el = '.list.sortable';
|
|
17910
|
+
}
|
|
17911
|
+
|
|
17418
17912
|
const app = this;
|
|
17419
17913
|
const $el = $(el);
|
|
17420
17914
|
if ($el.length === 0) return;
|
|
@@ -17423,7 +17917,11 @@
|
|
|
17423
17917
|
app.emit('sortableEnable', $el[0]);
|
|
17424
17918
|
},
|
|
17425
17919
|
|
|
17426
|
-
disable(el
|
|
17920
|
+
disable(el) {
|
|
17921
|
+
if (el === void 0) {
|
|
17922
|
+
el = '.list.sortable';
|
|
17923
|
+
}
|
|
17924
|
+
|
|
17427
17925
|
const app = this;
|
|
17428
17926
|
const $el = $(el);
|
|
17429
17927
|
if ($el.length === 0) return;
|
|
@@ -17432,7 +17930,11 @@
|
|
|
17432
17930
|
app.emit('sortableDisable', $el[0]);
|
|
17433
17931
|
},
|
|
17434
17932
|
|
|
17435
|
-
toggle(el
|
|
17933
|
+
toggle(el) {
|
|
17934
|
+
if (el === void 0) {
|
|
17935
|
+
el = '.list.sortable';
|
|
17936
|
+
}
|
|
17937
|
+
|
|
17436
17938
|
const app = this;
|
|
17437
17939
|
const $el = $(el);
|
|
17438
17940
|
if ($el.length === 0) return;
|
|
@@ -17469,15 +17971,27 @@
|
|
|
17469
17971
|
|
|
17470
17972
|
},
|
|
17471
17973
|
clicks: {
|
|
17472
|
-
'.sortable-enable': function enable($clickedEl, data
|
|
17974
|
+
'.sortable-enable': function enable($clickedEl, data) {
|
|
17975
|
+
if (data === void 0) {
|
|
17976
|
+
data = {};
|
|
17977
|
+
}
|
|
17978
|
+
|
|
17473
17979
|
const app = this;
|
|
17474
17980
|
app.sortable.enable(data.sortable);
|
|
17475
17981
|
},
|
|
17476
|
-
'.sortable-disable': function disable($clickedEl, data
|
|
17982
|
+
'.sortable-disable': function disable($clickedEl, data) {
|
|
17983
|
+
if (data === void 0) {
|
|
17984
|
+
data = {};
|
|
17985
|
+
}
|
|
17986
|
+
|
|
17477
17987
|
const app = this;
|
|
17478
17988
|
app.sortable.disable(data.sortable);
|
|
17479
17989
|
},
|
|
17480
|
-
'.sortable-toggle': function toggle($clickedEl, data
|
|
17990
|
+
'.sortable-toggle': function toggle($clickedEl, data) {
|
|
17991
|
+
if (data === void 0) {
|
|
17992
|
+
data = {};
|
|
17993
|
+
}
|
|
17994
|
+
|
|
17481
17995
|
const app = this;
|
|
17482
17996
|
app.sortable.toggle(data.sortable);
|
|
17483
17997
|
}
|
|
@@ -17883,8 +18397,13 @@
|
|
|
17883
18397
|
allow: true,
|
|
17884
18398
|
el: undefined,
|
|
17885
18399
|
|
|
17886
|
-
open(
|
|
18400
|
+
open() {
|
|
17887
18401
|
const app = this;
|
|
18402
|
+
|
|
18403
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18404
|
+
args[_key] = arguments[_key];
|
|
18405
|
+
}
|
|
18406
|
+
|
|
17888
18407
|
let [el, side, callback] = args;
|
|
17889
18408
|
|
|
17890
18409
|
if (typeof args[1] === 'function') {
|
|
@@ -18040,7 +18559,11 @@
|
|
|
18040
18559
|
},
|
|
18041
18560
|
|
|
18042
18561
|
clicks: {
|
|
18043
|
-
'.swipeout-open': function openSwipeout($clickedEl, data
|
|
18562
|
+
'.swipeout-open': function openSwipeout($clickedEl, data) {
|
|
18563
|
+
if (data === void 0) {
|
|
18564
|
+
data = {};
|
|
18565
|
+
}
|
|
18566
|
+
|
|
18044
18567
|
const app = this;
|
|
18045
18568
|
app.swipeout.open(data.swipeout, data.side);
|
|
18046
18569
|
},
|
|
@@ -18050,7 +18573,11 @@
|
|
|
18050
18573
|
if ($swipeoutEl.length === 0) return;
|
|
18051
18574
|
app.swipeout.close($swipeoutEl);
|
|
18052
18575
|
},
|
|
18053
|
-
'.swipeout-delete': function deleteSwipeout($clickedEl, data
|
|
18576
|
+
'.swipeout-delete': function deleteSwipeout($clickedEl, data) {
|
|
18577
|
+
if (data === void 0) {
|
|
18578
|
+
data = {};
|
|
18579
|
+
}
|
|
18580
|
+
|
|
18054
18581
|
const app = this;
|
|
18055
18582
|
const $swipeoutEl = $clickedEl.closest('.swipeout');
|
|
18056
18583
|
if ($swipeoutEl.length === 0) return;
|
|
@@ -18214,7 +18741,11 @@
|
|
|
18214
18741
|
};
|
|
18215
18742
|
|
|
18216
18743
|
class VirtualList$1 extends Framework7Class {
|
|
18217
|
-
constructor(app, params
|
|
18744
|
+
constructor(app, params) {
|
|
18745
|
+
if (params === void 0) {
|
|
18746
|
+
params = {};
|
|
18747
|
+
}
|
|
18748
|
+
|
|
18218
18749
|
super(params, [app]);
|
|
18219
18750
|
const vl = this;
|
|
18220
18751
|
const device = getDevice$1();
|
|
@@ -18583,7 +19114,11 @@
|
|
|
18583
19114
|
} // Filter
|
|
18584
19115
|
|
|
18585
19116
|
|
|
18586
|
-
filterItems(indexes, resetScrollTop
|
|
19117
|
+
filterItems(indexes, resetScrollTop) {
|
|
19118
|
+
if (resetScrollTop === void 0) {
|
|
19119
|
+
resetScrollTop = true;
|
|
19120
|
+
}
|
|
19121
|
+
|
|
18587
19122
|
const vl = this;
|
|
18588
19123
|
vl.filteredItems = [];
|
|
18589
19124
|
|
|
@@ -18887,7 +19422,11 @@
|
|
|
18887
19422
|
};
|
|
18888
19423
|
|
|
18889
19424
|
class ListIndex$1 extends Framework7Class {
|
|
18890
|
-
constructor(app, params
|
|
19425
|
+
constructor(app, params) {
|
|
19426
|
+
if (params === void 0) {
|
|
19427
|
+
params = {};
|
|
19428
|
+
}
|
|
19429
|
+
|
|
18891
19430
|
super(params, [app]);
|
|
18892
19431
|
const index = this;
|
|
18893
19432
|
const defaults = {
|
|
@@ -19341,7 +19880,7 @@
|
|
|
19341
19880
|
};
|
|
19342
19881
|
|
|
19343
19882
|
const Tab = {
|
|
19344
|
-
show(
|
|
19883
|
+
show() {
|
|
19345
19884
|
const app = this;
|
|
19346
19885
|
let tabEl;
|
|
19347
19886
|
let tabLinkEl;
|
|
@@ -19349,6 +19888,10 @@
|
|
|
19349
19888
|
let tabRoute;
|
|
19350
19889
|
let animatedInit;
|
|
19351
19890
|
|
|
19891
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
19892
|
+
args[_key] = arguments[_key];
|
|
19893
|
+
}
|
|
19894
|
+
|
|
19352
19895
|
if (args.length === 1 && args[0] && args[0].constructor === Object) {
|
|
19353
19896
|
tabEl = args[0].tabEl;
|
|
19354
19897
|
tabLinkEl = args[0].tabLinkEl;
|
|
@@ -19597,7 +20140,11 @@
|
|
|
19597
20140
|
}
|
|
19598
20141
|
},
|
|
19599
20142
|
clicks: {
|
|
19600
|
-
'.tab-link': function tabLinkClick($clickedEl, data
|
|
20143
|
+
'.tab-link': function tabLinkClick($clickedEl, data) {
|
|
20144
|
+
if (data === void 0) {
|
|
20145
|
+
data = {};
|
|
20146
|
+
}
|
|
20147
|
+
|
|
19601
20148
|
if ($clickedEl.attr('href') && $clickedEl.attr('href').indexOf('#') === 0 || $clickedEl.attr('data-tab')) {
|
|
19602
20149
|
const app = this;
|
|
19603
20150
|
app.tab.show({
|
|
@@ -20147,7 +20694,11 @@
|
|
|
20147
20694
|
}
|
|
20148
20695
|
|
|
20149
20696
|
class Panel$1 extends Framework7Class {
|
|
20150
|
-
constructor(app, params
|
|
20697
|
+
constructor(app, params) {
|
|
20698
|
+
if (params === void 0) {
|
|
20699
|
+
params = {};
|
|
20700
|
+
}
|
|
20701
|
+
|
|
20151
20702
|
const extendedParams = extend$1({
|
|
20152
20703
|
on: {}
|
|
20153
20704
|
}, app.params.panel, params);
|
|
@@ -20279,7 +20830,11 @@
|
|
|
20279
20830
|
return panel;
|
|
20280
20831
|
}
|
|
20281
20832
|
|
|
20282
|
-
setVisibleBreakpoint(emitEvents
|
|
20833
|
+
setVisibleBreakpoint(emitEvents) {
|
|
20834
|
+
if (emitEvents === void 0) {
|
|
20835
|
+
emitEvents = true;
|
|
20836
|
+
}
|
|
20837
|
+
|
|
20283
20838
|
const panel = this;
|
|
20284
20839
|
const app = panel.app;
|
|
20285
20840
|
|
|
@@ -20362,7 +20917,11 @@
|
|
|
20362
20917
|
return panel;
|
|
20363
20918
|
}
|
|
20364
20919
|
|
|
20365
|
-
setCollapsedBreakpoint(emitEvents
|
|
20920
|
+
setCollapsedBreakpoint(emitEvents) {
|
|
20921
|
+
if (emitEvents === void 0) {
|
|
20922
|
+
emitEvents = true;
|
|
20923
|
+
}
|
|
20924
|
+
|
|
20366
20925
|
const panel = this;
|
|
20367
20926
|
const app = panel.app;
|
|
20368
20927
|
|
|
@@ -20444,7 +21003,11 @@
|
|
|
20444
21003
|
return panel;
|
|
20445
21004
|
}
|
|
20446
21005
|
|
|
20447
|
-
onOpen(modifyHtmlClasses
|
|
21006
|
+
onOpen(modifyHtmlClasses) {
|
|
21007
|
+
if (modifyHtmlClasses === void 0) {
|
|
21008
|
+
modifyHtmlClasses = true;
|
|
21009
|
+
}
|
|
21010
|
+
|
|
20448
21011
|
const panel = this;
|
|
20449
21012
|
const app = panel.app;
|
|
20450
21013
|
panel.opened = true;
|
|
@@ -20500,7 +21063,11 @@
|
|
|
20500
21063
|
panel.emit('local::closed panelClosed', panel);
|
|
20501
21064
|
}
|
|
20502
21065
|
|
|
20503
|
-
toggle(animate
|
|
21066
|
+
toggle(animate) {
|
|
21067
|
+
if (animate === void 0) {
|
|
21068
|
+
animate = true;
|
|
21069
|
+
}
|
|
21070
|
+
|
|
20504
21071
|
const panel = this;
|
|
20505
21072
|
const breakpoint = panel.params.visibleBreakpoint;
|
|
20506
21073
|
const app = panel.app;
|
|
@@ -20550,7 +21117,11 @@
|
|
|
20550
21117
|
}
|
|
20551
21118
|
}
|
|
20552
21119
|
|
|
20553
|
-
open(animate
|
|
21120
|
+
open(animate) {
|
|
21121
|
+
if (animate === void 0) {
|
|
21122
|
+
animate = true;
|
|
21123
|
+
}
|
|
21124
|
+
|
|
20554
21125
|
const panel = this;
|
|
20555
21126
|
const app = panel.app;
|
|
20556
21127
|
if (!app.panel.allowOpen) return false;
|
|
@@ -20631,7 +21202,11 @@
|
|
|
20631
21202
|
return true;
|
|
20632
21203
|
}
|
|
20633
21204
|
|
|
20634
|
-
close(animate
|
|
21205
|
+
close(animate) {
|
|
21206
|
+
if (animate === void 0) {
|
|
21207
|
+
animate = true;
|
|
21208
|
+
}
|
|
21209
|
+
|
|
20635
21210
|
const panel = this;
|
|
20636
21211
|
const {
|
|
20637
21212
|
effect,
|
|
@@ -20795,7 +21370,11 @@
|
|
|
20795
21370
|
return new Panel$1(app, params);
|
|
20796
21371
|
},
|
|
20797
21372
|
|
|
20798
|
-
get(el
|
|
21373
|
+
get(el) {
|
|
21374
|
+
if (el === void 0) {
|
|
21375
|
+
el = '.panel';
|
|
21376
|
+
}
|
|
21377
|
+
|
|
20799
21378
|
if (el instanceof Panel$1) return el;
|
|
20800
21379
|
if (el === 'left' || el === 'right') el = `.panel-${el}`; // eslint-disable-line
|
|
20801
21380
|
|
|
@@ -20804,13 +21383,21 @@
|
|
|
20804
21383
|
return $el[0].f7Panel;
|
|
20805
21384
|
},
|
|
20806
21385
|
|
|
20807
|
-
destroy(el
|
|
21386
|
+
destroy(el) {
|
|
21387
|
+
if (el === void 0) {
|
|
21388
|
+
el = '.panel';
|
|
21389
|
+
}
|
|
21390
|
+
|
|
20808
21391
|
const panel = app.panel.get(el);
|
|
20809
21392
|
if (panel && panel.destroy) return panel.destroy();
|
|
20810
21393
|
return undefined;
|
|
20811
21394
|
},
|
|
20812
21395
|
|
|
20813
|
-
open(el
|
|
21396
|
+
open(el, animate) {
|
|
21397
|
+
if (el === void 0) {
|
|
21398
|
+
el = '.panel';
|
|
21399
|
+
}
|
|
21400
|
+
|
|
20814
21401
|
if (el === 'left' || el === 'right') el = `.panel-${el}`; // eslint-disable-line
|
|
20815
21402
|
|
|
20816
21403
|
let panel = app.panel.get(el);
|
|
@@ -20826,7 +21413,11 @@
|
|
|
20826
21413
|
return undefined;
|
|
20827
21414
|
},
|
|
20828
21415
|
|
|
20829
|
-
close(el
|
|
21416
|
+
close(el, animate) {
|
|
21417
|
+
if (el === void 0) {
|
|
21418
|
+
el = '.panel-in';
|
|
21419
|
+
}
|
|
21420
|
+
|
|
20830
21421
|
if (el === 'left' || el === 'right') el = `.panel-${el}`; // eslint-disable-line
|
|
20831
21422
|
|
|
20832
21423
|
let panel = app.panel.get(el);
|
|
@@ -20842,7 +21433,11 @@
|
|
|
20842
21433
|
return undefined;
|
|
20843
21434
|
},
|
|
20844
21435
|
|
|
20845
|
-
toggle(el
|
|
21436
|
+
toggle(el, animate) {
|
|
21437
|
+
if (el === void 0) {
|
|
21438
|
+
el = '.panel';
|
|
21439
|
+
}
|
|
21440
|
+
|
|
20846
21441
|
if (el === 'left' || el === 'right') el = `.panel-${el}`; // eslint-disable-line
|
|
20847
21442
|
|
|
20848
21443
|
let panel = app.panel.get(el);
|
|
@@ -20913,15 +21508,27 @@
|
|
|
20913
21508
|
}
|
|
20914
21509
|
},
|
|
20915
21510
|
clicks: {
|
|
20916
|
-
'.panel-open': function open(clickedEl, data
|
|
21511
|
+
'.panel-open': function open(clickedEl, data) {
|
|
21512
|
+
if (data === void 0) {
|
|
21513
|
+
data = {};
|
|
21514
|
+
}
|
|
21515
|
+
|
|
20917
21516
|
const app = this;
|
|
20918
21517
|
app.panel.open(data.panel, data.animate);
|
|
20919
21518
|
},
|
|
20920
|
-
'.panel-close': function close(clickedEl, data
|
|
21519
|
+
'.panel-close': function close(clickedEl, data) {
|
|
21520
|
+
if (data === void 0) {
|
|
21521
|
+
data = {};
|
|
21522
|
+
}
|
|
21523
|
+
|
|
20921
21524
|
const app = this;
|
|
20922
21525
|
app.panel.close(data.panel, data.animate);
|
|
20923
21526
|
},
|
|
20924
|
-
'.panel-toggle': function close(clickedEl, data
|
|
21527
|
+
'.panel-toggle': function close(clickedEl, data) {
|
|
21528
|
+
if (data === void 0) {
|
|
21529
|
+
data = {};
|
|
21530
|
+
}
|
|
21531
|
+
|
|
20925
21532
|
const app = this;
|
|
20926
21533
|
app.panel.toggle(data.panel, data.animate);
|
|
20927
21534
|
},
|
|
@@ -20944,7 +21551,15 @@
|
|
|
20944
21551
|
|
|
20945
21552
|
/* eslint no-param-reassign: "off" */
|
|
20946
21553
|
const CardExpandable = {
|
|
20947
|
-
open(cardEl
|
|
21554
|
+
open(cardEl, animate) {
|
|
21555
|
+
if (cardEl === void 0) {
|
|
21556
|
+
cardEl = '.card-expandable';
|
|
21557
|
+
}
|
|
21558
|
+
|
|
21559
|
+
if (animate === void 0) {
|
|
21560
|
+
animate = true;
|
|
21561
|
+
}
|
|
21562
|
+
|
|
20948
21563
|
const app = this;
|
|
20949
21564
|
const device = getDevice$1();
|
|
20950
21565
|
const document = getDocument();
|
|
@@ -21312,7 +21927,15 @@
|
|
|
21312
21927
|
}
|
|
21313
21928
|
},
|
|
21314
21929
|
|
|
21315
|
-
close(cardEl
|
|
21930
|
+
close(cardEl, animate) {
|
|
21931
|
+
if (cardEl === void 0) {
|
|
21932
|
+
cardEl = '.card-expandable.card-opened';
|
|
21933
|
+
}
|
|
21934
|
+
|
|
21935
|
+
if (animate === void 0) {
|
|
21936
|
+
animate = true;
|
|
21937
|
+
}
|
|
21938
|
+
|
|
21316
21939
|
const app = this;
|
|
21317
21940
|
const device = getDevice$1();
|
|
21318
21941
|
const $cardEl = $(cardEl).eq(0);
|
|
@@ -21437,7 +22060,11 @@
|
|
|
21437
22060
|
}
|
|
21438
22061
|
},
|
|
21439
22062
|
|
|
21440
|
-
toggle(cardEl
|
|
22063
|
+
toggle(cardEl, animate) {
|
|
22064
|
+
if (cardEl === void 0) {
|
|
22065
|
+
cardEl = '.card-expandable';
|
|
22066
|
+
}
|
|
22067
|
+
|
|
21441
22068
|
const app = this;
|
|
21442
22069
|
const $cardEl = $(cardEl).eq(0);
|
|
21443
22070
|
if (!$cardEl.length) return;
|
|
@@ -22066,7 +22693,11 @@
|
|
|
22066
22693
|
}
|
|
22067
22694
|
},
|
|
22068
22695
|
|
|
22069
|
-
scrollIntoView(inputEl, duration
|
|
22696
|
+
scrollIntoView(inputEl, duration, centered, force) {
|
|
22697
|
+
if (duration === void 0) {
|
|
22698
|
+
duration = 0;
|
|
22699
|
+
}
|
|
22700
|
+
|
|
22070
22701
|
const $inputEl = $(inputEl);
|
|
22071
22702
|
const $scrollableEl = $inputEl.parents('.page-content, .panel, .card-expandable .card-content').eq(0);
|
|
22072
22703
|
|
|
@@ -22278,7 +22909,11 @@
|
|
|
22278
22909
|
};
|
|
22279
22910
|
|
|
22280
22911
|
class Toggle$1 extends Framework7Class {
|
|
22281
|
-
constructor(app, params
|
|
22912
|
+
constructor(app, params) {
|
|
22913
|
+
if (params === void 0) {
|
|
22914
|
+
params = {};
|
|
22915
|
+
}
|
|
22916
|
+
|
|
22282
22917
|
super(params, [app]);
|
|
22283
22918
|
const toggle = this;
|
|
22284
22919
|
const support = getSupport$1();
|
|
@@ -23186,13 +23821,21 @@
|
|
|
23186
23821
|
app,
|
|
23187
23822
|
domProp: 'f7Range'
|
|
23188
23823
|
}), {
|
|
23189
|
-
getValue(el
|
|
23824
|
+
getValue(el) {
|
|
23825
|
+
if (el === void 0) {
|
|
23826
|
+
el = '.range-slider';
|
|
23827
|
+
}
|
|
23828
|
+
|
|
23190
23829
|
const range = app.range.get(el);
|
|
23191
23830
|
if (range) return range.getValue();
|
|
23192
23831
|
return undefined;
|
|
23193
23832
|
},
|
|
23194
23833
|
|
|
23195
|
-
setValue(el
|
|
23834
|
+
setValue(el, value) {
|
|
23835
|
+
if (el === void 0) {
|
|
23836
|
+
el = '.range-slider';
|
|
23837
|
+
}
|
|
23838
|
+
|
|
23196
23839
|
const range = app.range.get(el);
|
|
23197
23840
|
if (range) return range.setValue(value);
|
|
23198
23841
|
return undefined;
|
|
@@ -23733,13 +24376,21 @@
|
|
|
23733
24376
|
app,
|
|
23734
24377
|
domProp: 'f7Stepper'
|
|
23735
24378
|
}), {
|
|
23736
|
-
getValue(el
|
|
24379
|
+
getValue(el) {
|
|
24380
|
+
if (el === void 0) {
|
|
24381
|
+
el = '.stepper';
|
|
24382
|
+
}
|
|
24383
|
+
|
|
23737
24384
|
const stepper = app.stepper.get(el);
|
|
23738
24385
|
if (stepper) return stepper.getValue();
|
|
23739
24386
|
return undefined;
|
|
23740
24387
|
},
|
|
23741
24388
|
|
|
23742
|
-
setValue(el
|
|
24389
|
+
setValue(el, value) {
|
|
24390
|
+
if (el === void 0) {
|
|
24391
|
+
el = '.stepper';
|
|
24392
|
+
}
|
|
24393
|
+
|
|
23743
24394
|
const stepper = app.stepper.get(el);
|
|
23744
24395
|
if (stepper) return stepper.setValue(value);
|
|
23745
24396
|
return undefined;
|
|
@@ -23806,7 +24457,11 @@
|
|
|
23806
24457
|
};
|
|
23807
24458
|
|
|
23808
24459
|
class SmartSelect$1 extends Framework7Class {
|
|
23809
|
-
constructor(app, params
|
|
24460
|
+
constructor(app, params) {
|
|
24461
|
+
if (params === void 0) {
|
|
24462
|
+
params = {};
|
|
24463
|
+
}
|
|
24464
|
+
|
|
23810
24465
|
super(params, [app]);
|
|
23811
24466
|
const ss = this;
|
|
23812
24467
|
const defaults = extend$1({
|
|
@@ -24196,7 +24851,11 @@
|
|
|
24196
24851
|
const ss = this;
|
|
24197
24852
|
if (ss.params.renderItem) return ss.params.renderItem.call(ss, item, index);
|
|
24198
24853
|
|
|
24199
|
-
function getIconContent(iconValue
|
|
24854
|
+
function getIconContent(iconValue) {
|
|
24855
|
+
if (iconValue === void 0) {
|
|
24856
|
+
iconValue = '';
|
|
24857
|
+
}
|
|
24858
|
+
|
|
24200
24859
|
if (iconValue.indexOf(':') >= 0) {
|
|
24201
24860
|
return iconValue.split(':')[1];
|
|
24202
24861
|
}
|
|
@@ -24204,7 +24863,11 @@
|
|
|
24204
24863
|
return '';
|
|
24205
24864
|
}
|
|
24206
24865
|
|
|
24207
|
-
function getIconClass(iconValue
|
|
24866
|
+
function getIconClass(iconValue) {
|
|
24867
|
+
if (iconValue === void 0) {
|
|
24868
|
+
iconValue = '';
|
|
24869
|
+
}
|
|
24870
|
+
|
|
24208
24871
|
if (iconValue.indexOf(':') >= 0) {
|
|
24209
24872
|
let className = iconValue.split(':')[0];
|
|
24210
24873
|
if (className === 'f7') className = 'f7-icons';
|
|
@@ -25152,7 +25815,11 @@
|
|
|
25152
25815
|
};
|
|
25153
25816
|
|
|
25154
25817
|
class Calendar$1 extends Framework7Class {
|
|
25155
|
-
constructor(app, params
|
|
25818
|
+
constructor(app, params) {
|
|
25819
|
+
if (params === void 0) {
|
|
25820
|
+
params = {};
|
|
25821
|
+
}
|
|
25822
|
+
|
|
25156
25823
|
super(params, [app]);
|
|
25157
25824
|
const calendar = this;
|
|
25158
25825
|
calendar.params = extend$1({}, app.params.calendar, params);
|
|
@@ -26154,7 +26821,11 @@
|
|
|
26154
26821
|
}
|
|
26155
26822
|
}
|
|
26156
26823
|
|
|
26157
|
-
resetMonth(transition
|
|
26824
|
+
resetMonth(transition) {
|
|
26825
|
+
if (transition === void 0) {
|
|
26826
|
+
transition = '';
|
|
26827
|
+
}
|
|
26828
|
+
|
|
26158
26829
|
const calendar = this;
|
|
26159
26830
|
const {
|
|
26160
26831
|
$wrapperEl,
|
|
@@ -27340,7 +28011,11 @@
|
|
|
27340
28011
|
domProp: 'f7Calendar'
|
|
27341
28012
|
});
|
|
27342
28013
|
|
|
27343
|
-
app.calendar.close = function close(el
|
|
28014
|
+
app.calendar.close = function close(el) {
|
|
28015
|
+
if (el === void 0) {
|
|
28016
|
+
el = '.calendar';
|
|
28017
|
+
}
|
|
28018
|
+
|
|
27344
28019
|
const $el = $(el);
|
|
27345
28020
|
if ($el.length === 0) return;
|
|
27346
28021
|
const calendar = $el[0].f7Calendar;
|
|
@@ -27577,7 +28252,11 @@
|
|
|
27577
28252
|
}
|
|
27578
28253
|
|
|
27579
28254
|
class Picker$1 extends Framework7Class {
|
|
27580
|
-
constructor(app, params
|
|
28255
|
+
constructor(app, params) {
|
|
28256
|
+
if (params === void 0) {
|
|
28257
|
+
params = {};
|
|
28258
|
+
}
|
|
28259
|
+
|
|
27581
28260
|
super(params, [app]);
|
|
27582
28261
|
const picker = this;
|
|
27583
28262
|
const device = getDevice$1();
|
|
@@ -28271,7 +28950,11 @@
|
|
|
28271
28950
|
domProp: 'f7Picker'
|
|
28272
28951
|
});
|
|
28273
28952
|
|
|
28274
|
-
app.picker.close = function close(el
|
|
28953
|
+
app.picker.close = function close(el) {
|
|
28954
|
+
if (el === void 0) {
|
|
28955
|
+
el = '.picker';
|
|
28956
|
+
}
|
|
28957
|
+
|
|
28275
28958
|
const $el = $(el);
|
|
28276
28959
|
if ($el.length === 0) return;
|
|
28277
28960
|
const picker = $el[0].f7Picker;
|
|
@@ -28519,7 +29202,11 @@
|
|
|
28519
29202
|
triggerDistance = 38;
|
|
28520
29203
|
}
|
|
28521
29204
|
|
|
28522
|
-
function setPreloaderProgress(progress
|
|
29205
|
+
function setPreloaderProgress(progress) {
|
|
29206
|
+
if (progress === void 0) {
|
|
29207
|
+
progress = 0;
|
|
29208
|
+
}
|
|
29209
|
+
|
|
28523
29210
|
const $bars = $preloaderEl.find('.preloader-inner-line');
|
|
28524
29211
|
const perBarProgress = 1 / $bars.length;
|
|
28525
29212
|
$bars.forEach((barEl, barIndex) => {
|
|
@@ -29361,7 +30048,11 @@
|
|
|
29361
30048
|
};
|
|
29362
30049
|
|
|
29363
30050
|
class DataTable$1 extends Framework7Class {
|
|
29364
|
-
constructor(app, params
|
|
30051
|
+
constructor(app, params) {
|
|
30052
|
+
if (params === void 0) {
|
|
30053
|
+
params = {};
|
|
30054
|
+
}
|
|
30055
|
+
|
|
29365
30056
|
super(params, [app]);
|
|
29366
30057
|
const table = this;
|
|
29367
30058
|
const defaults = {}; // Extend defaults with modules params
|
|
@@ -29705,7 +30396,11 @@
|
|
|
29705
30396
|
$fabEl.trigger('fab:open');
|
|
29706
30397
|
},
|
|
29707
30398
|
|
|
29708
|
-
close(fabEl
|
|
30399
|
+
close(fabEl) {
|
|
30400
|
+
if (fabEl === void 0) {
|
|
30401
|
+
fabEl = '.fab-opened';
|
|
30402
|
+
}
|
|
30403
|
+
|
|
29709
30404
|
const app = this;
|
|
29710
30405
|
const $fabEl = $(fabEl).eq(0);
|
|
29711
30406
|
const $buttonsEl = $fabEl.find('.fab-buttons');
|
|
@@ -29749,11 +30444,19 @@
|
|
|
29749
30444
|
const app = this;
|
|
29750
30445
|
app.fab.toggle($clickedEl.parents('.fab'));
|
|
29751
30446
|
},
|
|
29752
|
-
'.fab-open': function open($clickedEl, data
|
|
30447
|
+
'.fab-open': function open($clickedEl, data) {
|
|
30448
|
+
if (data === void 0) {
|
|
30449
|
+
data = {};
|
|
30450
|
+
}
|
|
30451
|
+
|
|
29753
30452
|
const app = this;
|
|
29754
30453
|
app.fab.open(data.fab);
|
|
29755
30454
|
},
|
|
29756
|
-
'.fab-close': function close($clickedEl, data
|
|
30455
|
+
'.fab-close': function close($clickedEl, data) {
|
|
30456
|
+
if (data === void 0) {
|
|
30457
|
+
data = {};
|
|
30458
|
+
}
|
|
30459
|
+
|
|
29757
30460
|
const app = this;
|
|
29758
30461
|
app.fab.close(data.fab);
|
|
29759
30462
|
},
|
|
@@ -30039,7 +30742,11 @@
|
|
|
30039
30742
|
}
|
|
30040
30743
|
|
|
30041
30744
|
class Searchbar$1 extends Framework7Class {
|
|
30042
|
-
constructor(app, params
|
|
30745
|
+
constructor(app, params) {
|
|
30746
|
+
if (params === void 0) {
|
|
30747
|
+
params = {};
|
|
30748
|
+
}
|
|
30749
|
+
|
|
30043
30750
|
super(params, [app]);
|
|
30044
30751
|
const sb = this;
|
|
30045
30752
|
const defaults = {
|
|
@@ -30813,22 +31520,38 @@
|
|
|
30813
31520
|
|
|
30814
31521
|
},
|
|
30815
31522
|
clicks: {
|
|
30816
|
-
'.searchbar-clear': function clear($clickedEl, data
|
|
31523
|
+
'.searchbar-clear': function clear($clickedEl, data) {
|
|
31524
|
+
if (data === void 0) {
|
|
31525
|
+
data = {};
|
|
31526
|
+
}
|
|
31527
|
+
|
|
30817
31528
|
const app = this;
|
|
30818
31529
|
const sb = app.searchbar.get(data.searchbar);
|
|
30819
31530
|
if (sb) sb.clear();
|
|
30820
31531
|
},
|
|
30821
|
-
'.searchbar-enable': function enable($clickedEl, data
|
|
31532
|
+
'.searchbar-enable': function enable($clickedEl, data) {
|
|
31533
|
+
if (data === void 0) {
|
|
31534
|
+
data = {};
|
|
31535
|
+
}
|
|
31536
|
+
|
|
30822
31537
|
const app = this;
|
|
30823
31538
|
const sb = app.searchbar.get(data.searchbar);
|
|
30824
31539
|
if (sb) sb.enable(true);
|
|
30825
31540
|
},
|
|
30826
|
-
'.searchbar-disable': function disable($clickedEl, data
|
|
31541
|
+
'.searchbar-disable': function disable($clickedEl, data) {
|
|
31542
|
+
if (data === void 0) {
|
|
31543
|
+
data = {};
|
|
31544
|
+
}
|
|
31545
|
+
|
|
30827
31546
|
const app = this;
|
|
30828
31547
|
const sb = app.searchbar.get(data.searchbar);
|
|
30829
31548
|
if (sb) sb.disable();
|
|
30830
31549
|
},
|
|
30831
|
-
'.searchbar-toggle': function toggle($clickedEl, data
|
|
31550
|
+
'.searchbar-toggle': function toggle($clickedEl, data) {
|
|
31551
|
+
if (data === void 0) {
|
|
31552
|
+
data = {};
|
|
31553
|
+
}
|
|
31554
|
+
|
|
30832
31555
|
const app = this;
|
|
30833
31556
|
const sb = app.searchbar.get(data.searchbar);
|
|
30834
31557
|
if (sb) sb.toggle();
|
|
@@ -30857,48 +31580,348 @@
|
|
|
30857
31580
|
}
|
|
30858
31581
|
};
|
|
30859
31582
|
|
|
30860
|
-
|
|
31583
|
+
function createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) {
|
|
31584
|
+
return {
|
|
31585
|
+
getMetadata: function (key) {
|
|
31586
|
+
assertNotFinished(decoratorFinishedRef, "getMetadata"), assertMetadataKey(key);
|
|
31587
|
+
var metadataForKey = metadataMap[key];
|
|
31588
|
+
if (void 0 !== metadataForKey) if (1 === kind) {
|
|
31589
|
+
var pub = metadataForKey.public;
|
|
31590
|
+
if (void 0 !== pub) return pub[property];
|
|
31591
|
+
} else if (2 === kind) {
|
|
31592
|
+
var priv = metadataForKey.private;
|
|
31593
|
+
if (void 0 !== priv) return priv.get(property);
|
|
31594
|
+
} else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) return metadataForKey.constructor;
|
|
31595
|
+
},
|
|
31596
|
+
setMetadata: function (key, value) {
|
|
31597
|
+
assertNotFinished(decoratorFinishedRef, "setMetadata"), assertMetadataKey(key);
|
|
31598
|
+
var metadataForKey = metadataMap[key];
|
|
31599
|
+
|
|
31600
|
+
if (void 0 === metadataForKey && (metadataForKey = metadataMap[key] = {}), 1 === kind) {
|
|
31601
|
+
var pub = metadataForKey.public;
|
|
31602
|
+
void 0 === pub && (pub = metadataForKey.public = {}), pub[property] = value;
|
|
31603
|
+
} else if (2 === kind) {
|
|
31604
|
+
var priv = metadataForKey.priv;
|
|
31605
|
+
void 0 === priv && (priv = metadataForKey.private = new Map()), priv.set(property, value);
|
|
31606
|
+
} else metadataForKey.constructor = value;
|
|
31607
|
+
}
|
|
31608
|
+
};
|
|
31609
|
+
}
|
|
30861
31610
|
|
|
30862
|
-
function
|
|
30863
|
-
|
|
30864
|
-
|
|
31611
|
+
function convertMetadataMapToFinal(obj, metadataMap) {
|
|
31612
|
+
var parentMetadataMap = obj[Symbol.metadata || Symbol.for("Symbol.metadata")],
|
|
31613
|
+
metadataKeys = Object.getOwnPropertySymbols(metadataMap);
|
|
31614
|
+
|
|
31615
|
+
if (0 !== metadataKeys.length) {
|
|
31616
|
+
for (var i = 0; i < metadataKeys.length; i++) {
|
|
31617
|
+
var key = metadataKeys[i],
|
|
31618
|
+
metaForKey = metadataMap[key],
|
|
31619
|
+
parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null,
|
|
31620
|
+
pub = metaForKey.public,
|
|
31621
|
+
parentPub = parentMetaForKey ? parentMetaForKey.public : null;
|
|
31622
|
+
pub && parentPub && Object.setPrototypeOf(pub, parentPub);
|
|
31623
|
+
var priv = metaForKey.private;
|
|
31624
|
+
|
|
31625
|
+
if (priv) {
|
|
31626
|
+
var privArr = Array.from(priv.values()),
|
|
31627
|
+
parentPriv = parentMetaForKey ? parentMetaForKey.private : null;
|
|
31628
|
+
parentPriv && (privArr = privArr.concat(parentPriv)), metaForKey.private = privArr;
|
|
31629
|
+
}
|
|
31630
|
+
|
|
31631
|
+
parentMetaForKey && Object.setPrototypeOf(metaForKey, parentMetaForKey);
|
|
31632
|
+
}
|
|
31633
|
+
|
|
31634
|
+
parentMetadataMap && Object.setPrototypeOf(metadataMap, parentMetadataMap), obj[Symbol.metadata || Symbol.for("Symbol.metadata")] = metadataMap;
|
|
30865
31635
|
}
|
|
31636
|
+
}
|
|
30866
31637
|
|
|
30867
|
-
|
|
30868
|
-
|
|
31638
|
+
function createAddInitializerMethod(initializers, decoratorFinishedRef) {
|
|
31639
|
+
return function (initializer) {
|
|
31640
|
+
assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer);
|
|
31641
|
+
};
|
|
31642
|
+
}
|
|
30869
31643
|
|
|
30870
|
-
|
|
30871
|
-
|
|
30872
|
-
|
|
30873
|
-
|
|
31644
|
+
function memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) {
|
|
31645
|
+
var kindStr;
|
|
31646
|
+
|
|
31647
|
+
switch (kind) {
|
|
31648
|
+
case 1:
|
|
31649
|
+
kindStr = "accessor";
|
|
31650
|
+
break;
|
|
31651
|
+
|
|
31652
|
+
case 2:
|
|
31653
|
+
kindStr = "method";
|
|
31654
|
+
break;
|
|
31655
|
+
|
|
31656
|
+
case 3:
|
|
31657
|
+
kindStr = "getter";
|
|
31658
|
+
break;
|
|
31659
|
+
|
|
31660
|
+
case 4:
|
|
31661
|
+
kindStr = "setter";
|
|
31662
|
+
break;
|
|
31663
|
+
|
|
31664
|
+
default:
|
|
31665
|
+
kindStr = "field";
|
|
31666
|
+
}
|
|
31667
|
+
|
|
31668
|
+
var metadataKind,
|
|
31669
|
+
metadataName,
|
|
31670
|
+
ctx = {
|
|
31671
|
+
kind: kindStr,
|
|
31672
|
+
name: isPrivate ? "#" + name : name,
|
|
31673
|
+
isStatic: isStatic,
|
|
31674
|
+
isPrivate: isPrivate
|
|
31675
|
+
},
|
|
31676
|
+
decoratorFinishedRef = {
|
|
31677
|
+
v: !1
|
|
31678
|
+
};
|
|
31679
|
+
|
|
31680
|
+
if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate) {
|
|
31681
|
+
metadataKind = 2, metadataName = Symbol(name);
|
|
31682
|
+
var access = {};
|
|
31683
|
+
0 === kind ? (access.get = desc.get, access.set = desc.set) : 2 === kind ? access.get = function () {
|
|
31684
|
+
return desc.value;
|
|
31685
|
+
} : (1 !== kind && 3 !== kind || (access.get = function () {
|
|
31686
|
+
return desc.get.call(this);
|
|
31687
|
+
}), 1 !== kind && 4 !== kind || (access.set = function (v) {
|
|
31688
|
+
desc.set.call(this, v);
|
|
31689
|
+
})), ctx.access = access;
|
|
31690
|
+
} else metadataKind = 1, metadataName = name;
|
|
31691
|
+
|
|
31692
|
+
try {
|
|
31693
|
+
return dec(value, Object.assign(ctx, createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef)));
|
|
31694
|
+
} finally {
|
|
31695
|
+
decoratorFinishedRef.v = !0;
|
|
30874
31696
|
}
|
|
31697
|
+
}
|
|
30875
31698
|
|
|
30876
|
-
|
|
30877
|
-
|
|
30878
|
-
|
|
30879
|
-
|
|
31699
|
+
function assertNotFinished(decoratorFinishedRef, fnName) {
|
|
31700
|
+
if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished");
|
|
31701
|
+
}
|
|
31702
|
+
|
|
31703
|
+
function assertMetadataKey(key) {
|
|
31704
|
+
if ("symbol" != typeof key) throw new TypeError("Metadata keys must be symbols, received: " + key);
|
|
31705
|
+
}
|
|
30880
31706
|
|
|
30881
|
-
|
|
30882
|
-
|
|
31707
|
+
function assertCallable(fn, hint) {
|
|
31708
|
+
if ("function" != typeof fn) throw new TypeError(hint + " must be a function");
|
|
31709
|
+
}
|
|
31710
|
+
|
|
31711
|
+
function assertValidReturnValue(kind, value) {
|
|
31712
|
+
var type = typeof value;
|
|
31713
|
+
|
|
31714
|
+
if (1 === kind) {
|
|
31715
|
+
if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
31716
|
+
void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"), void 0 !== value.initializer && assertCallable(value.initializer, "accessor.initializer");
|
|
31717
|
+
} else if ("function" !== type) {
|
|
31718
|
+
var hint;
|
|
31719
|
+
throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0");
|
|
31720
|
+
}
|
|
31721
|
+
}
|
|
31722
|
+
|
|
31723
|
+
function getInit(desc) {
|
|
31724
|
+
var initializer;
|
|
31725
|
+
return null == (initializer = desc.init) && (initializer = desc.initializer) && "undefined" != typeof console && console.warn(".initializer has been renamed to .init as of March 2022"), initializer;
|
|
31726
|
+
}
|
|
31727
|
+
|
|
31728
|
+
function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) {
|
|
31729
|
+
var desc,
|
|
31730
|
+
initializer,
|
|
31731
|
+
value,
|
|
31732
|
+
newValue,
|
|
31733
|
+
get,
|
|
31734
|
+
set,
|
|
31735
|
+
decs = decInfo[0];
|
|
31736
|
+
if (isPrivate ? desc = 0 === kind || 1 === kind ? {
|
|
31737
|
+
get: decInfo[3],
|
|
31738
|
+
set: decInfo[4]
|
|
31739
|
+
} : 3 === kind ? {
|
|
31740
|
+
get: decInfo[3]
|
|
31741
|
+
} : 4 === kind ? {
|
|
31742
|
+
set: decInfo[3]
|
|
31743
|
+
} : {
|
|
31744
|
+
value: decInfo[3]
|
|
31745
|
+
} : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = {
|
|
31746
|
+
get: desc.get,
|
|
31747
|
+
set: desc.set
|
|
31748
|
+
} : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? initializer = newValue : 1 === kind ? (initializer = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
|
31749
|
+
get: get,
|
|
31750
|
+
set: set
|
|
31751
|
+
}) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) {
|
|
31752
|
+
var newInit;
|
|
31753
|
+
if (void 0 !== (newValue = memberDec(decs[i], name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
|
31754
|
+
get: get,
|
|
31755
|
+
set: set
|
|
31756
|
+
}) : value = newValue, void 0 !== newInit && (void 0 === initializer ? initializer = newInit : "function" == typeof initializer ? initializer = [initializer, newInit] : initializer.push(newInit));
|
|
31757
|
+
}
|
|
31758
|
+
|
|
31759
|
+
if (0 === kind || 1 === kind) {
|
|
31760
|
+
if (void 0 === initializer) initializer = function (instance, init) {
|
|
31761
|
+
return init;
|
|
31762
|
+
};else if ("function" != typeof initializer) {
|
|
31763
|
+
var ownInitializers = initializer;
|
|
31764
|
+
|
|
31765
|
+
initializer = function (instance, init) {
|
|
31766
|
+
for (var value = init, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
|
|
31767
|
+
|
|
31768
|
+
return value;
|
|
31769
|
+
};
|
|
31770
|
+
} else {
|
|
31771
|
+
var originalInitializer = initializer;
|
|
31772
|
+
|
|
31773
|
+
initializer = function (instance, init) {
|
|
31774
|
+
return originalInitializer.call(instance, init);
|
|
31775
|
+
};
|
|
30883
31776
|
}
|
|
31777
|
+
ret.push(initializer);
|
|
31778
|
+
}
|
|
30884
31779
|
|
|
30885
|
-
|
|
31780
|
+
0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) {
|
|
31781
|
+
return value.get.call(instance, args);
|
|
31782
|
+
}), ret.push(function (instance, args) {
|
|
31783
|
+
return value.set.call(instance, args);
|
|
31784
|
+
})) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) {
|
|
31785
|
+
return value.call(instance, args);
|
|
31786
|
+
}) : Object.defineProperty(base, name, desc));
|
|
31787
|
+
}
|
|
31788
|
+
|
|
31789
|
+
function applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) {
|
|
31790
|
+
for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) {
|
|
31791
|
+
var decInfo = decInfos[i];
|
|
31792
|
+
|
|
31793
|
+
if (Array.isArray(decInfo)) {
|
|
31794
|
+
var base,
|
|
31795
|
+
metadataMap,
|
|
31796
|
+
initializers,
|
|
31797
|
+
kind = decInfo[1],
|
|
31798
|
+
name = decInfo[2],
|
|
31799
|
+
isPrivate = decInfo.length > 3,
|
|
31800
|
+
isStatic = kind >= 5;
|
|
31801
|
+
|
|
31802
|
+
if (isStatic ? (base = Class, metadataMap = staticMetadataMap, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, metadataMap = protoMetadataMap, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) {
|
|
31803
|
+
var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields,
|
|
31804
|
+
existingKind = existingNonFields.get(name) || 0;
|
|
31805
|
+
if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
|
|
31806
|
+
!existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0);
|
|
31807
|
+
}
|
|
31808
|
+
|
|
31809
|
+
applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers);
|
|
31810
|
+
}
|
|
30886
31811
|
}
|
|
30887
31812
|
|
|
30888
|
-
|
|
30889
|
-
|
|
30890
|
-
|
|
30891
|
-
|
|
31813
|
+
pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers);
|
|
31814
|
+
}
|
|
31815
|
+
|
|
31816
|
+
function pushInitializers(ret, initializers) {
|
|
31817
|
+
initializers && ret.push(function (instance) {
|
|
31818
|
+
for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
|
|
31819
|
+
|
|
31820
|
+
return instance;
|
|
31821
|
+
});
|
|
31822
|
+
}
|
|
31823
|
+
|
|
31824
|
+
function applyClassDecs(ret, targetClass, metadataMap, classDecs) {
|
|
31825
|
+
if (classDecs.length > 0) {
|
|
31826
|
+
for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) {
|
|
31827
|
+
var decoratorFinishedRef = {
|
|
31828
|
+
v: !1
|
|
31829
|
+
};
|
|
31830
|
+
|
|
31831
|
+
try {
|
|
31832
|
+
var ctx = Object.assign({
|
|
31833
|
+
kind: "class",
|
|
31834
|
+
name: name,
|
|
31835
|
+
addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
|
|
31836
|
+
}, createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef)),
|
|
31837
|
+
nextNewClass = classDecs[i](newClass, ctx);
|
|
31838
|
+
} finally {
|
|
31839
|
+
decoratorFinishedRef.v = !0;
|
|
30892
31840
|
}
|
|
31841
|
+
|
|
31842
|
+
void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
|
|
30893
31843
|
}
|
|
30894
|
-
|
|
30895
|
-
|
|
31844
|
+
|
|
31845
|
+
ret.push(newClass, function () {
|
|
31846
|
+
for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
|
|
31847
|
+
});
|
|
31848
|
+
}
|
|
31849
|
+
}
|
|
31850
|
+
|
|
31851
|
+
function _applyDecs(targetClass, memberDecs, classDecs) {
|
|
31852
|
+
var ret = [],
|
|
31853
|
+
staticMetadataMap = {},
|
|
31854
|
+
protoMetadataMap = {};
|
|
31855
|
+
return applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs), convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap), applyClassDecs(ret, targetClass, staticMetadataMap, classDecs), convertMetadataMapToFinal(targetClass, staticMetadataMap), ret;
|
|
31856
|
+
}
|
|
31857
|
+
|
|
31858
|
+
function _asyncIterator(iterable) {
|
|
31859
|
+
var method,
|
|
31860
|
+
async,
|
|
31861
|
+
sync,
|
|
31862
|
+
retry = 2;
|
|
31863
|
+
|
|
31864
|
+
for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
|
|
31865
|
+
if (async && null != (method = iterable[async])) return method.call(iterable);
|
|
31866
|
+
if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable));
|
|
31867
|
+
async = "@@asyncIterator", sync = "@@iterator";
|
|
31868
|
+
}
|
|
31869
|
+
|
|
31870
|
+
throw new TypeError("Object is not async iterable");
|
|
31871
|
+
}
|
|
31872
|
+
|
|
31873
|
+
function AsyncFromSyncIterator(s) {
|
|
31874
|
+
function AsyncFromSyncIteratorContinuation(r) {
|
|
31875
|
+
if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object."));
|
|
31876
|
+
var done = r.done;
|
|
31877
|
+
return Promise.resolve(r.value).then(function (value) {
|
|
31878
|
+
return {
|
|
31879
|
+
value: value,
|
|
31880
|
+
done: done
|
|
31881
|
+
};
|
|
31882
|
+
});
|
|
30896
31883
|
}
|
|
30897
31884
|
|
|
31885
|
+
return AsyncFromSyncIterator = function (s) {
|
|
31886
|
+
this.s = s, this.n = s.next;
|
|
31887
|
+
}, AsyncFromSyncIterator.prototype = {
|
|
31888
|
+
s: null,
|
|
31889
|
+
n: null,
|
|
31890
|
+
next: function () {
|
|
31891
|
+
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
|
|
31892
|
+
},
|
|
31893
|
+
return: function (value) {
|
|
31894
|
+
var ret = this.s.return;
|
|
31895
|
+
return void 0 === ret ? Promise.resolve({
|
|
31896
|
+
value: value,
|
|
31897
|
+
done: !0
|
|
31898
|
+
}) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
|
|
31899
|
+
},
|
|
31900
|
+
throw: function (value) {
|
|
31901
|
+
var thr = this.s.return;
|
|
31902
|
+
return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
|
|
31903
|
+
}
|
|
31904
|
+
}, new AsyncFromSyncIterator(s);
|
|
31905
|
+
}
|
|
31906
|
+
|
|
31907
|
+
var REACT_ELEMENT_TYPE;
|
|
31908
|
+
|
|
31909
|
+
function _jsx(type, props, key, children) {
|
|
31910
|
+
REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103);
|
|
31911
|
+
var defaultProps = type && type.defaultProps,
|
|
31912
|
+
childrenLength = arguments.length - 3;
|
|
31913
|
+
if (props || 0 === childrenLength || (props = {
|
|
31914
|
+
children: void 0
|
|
31915
|
+
}), 1 === childrenLength) props.children = children;else if (childrenLength > 1) {
|
|
31916
|
+
for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3];
|
|
31917
|
+
|
|
31918
|
+
props.children = childArray;
|
|
31919
|
+
}
|
|
31920
|
+
if (props && defaultProps) for (var propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]);else props || (props = defaultProps || {});
|
|
30898
31921
|
return {
|
|
30899
31922
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
30900
31923
|
type: type,
|
|
30901
|
-
key:
|
|
31924
|
+
key: void 0 === key ? null : "" + key,
|
|
30902
31925
|
ref: null,
|
|
30903
31926
|
props: props,
|
|
30904
31927
|
_owner: null
|
|
@@ -30910,14 +31933,9 @@
|
|
|
30910
31933
|
|
|
30911
31934
|
if (Object.getOwnPropertySymbols) {
|
|
30912
31935
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
30913
|
-
|
|
30914
|
-
|
|
30915
|
-
|
|
30916
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
30917
|
-
});
|
|
30918
|
-
}
|
|
30919
|
-
|
|
30920
|
-
keys.push.apply(keys, symbols);
|
|
31936
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
31937
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
31938
|
+
})), keys.push.apply(keys, symbols);
|
|
30921
31939
|
}
|
|
30922
31940
|
|
|
30923
31941
|
return keys;
|
|
@@ -30925,19 +31943,12 @@
|
|
|
30925
31943
|
|
|
30926
31944
|
function _objectSpread2(target) {
|
|
30927
31945
|
for (var i = 1; i < arguments.length; i++) {
|
|
30928
|
-
var source = arguments[i]
|
|
30929
|
-
|
|
30930
|
-
|
|
30931
|
-
|
|
30932
|
-
|
|
30933
|
-
|
|
30934
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
30935
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
30936
|
-
} else {
|
|
30937
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
30938
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
30939
|
-
});
|
|
30940
|
-
}
|
|
31946
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
31947
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
31948
|
+
_defineProperty(target, key, source[key]);
|
|
31949
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
31950
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
31951
|
+
});
|
|
30941
31952
|
}
|
|
30942
31953
|
|
|
30943
31954
|
return target;
|
|
@@ -30946,94 +31957,59 @@
|
|
|
30946
31957
|
function _typeof(obj) {
|
|
30947
31958
|
"@babel/helpers - typeof";
|
|
30948
31959
|
|
|
30949
|
-
|
|
30950
|
-
|
|
30951
|
-
|
|
30952
|
-
|
|
30953
|
-
}
|
|
30954
|
-
_typeof = function (obj) {
|
|
30955
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
30956
|
-
};
|
|
30957
|
-
}
|
|
30958
|
-
|
|
30959
|
-
return _typeof(obj);
|
|
31960
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
31961
|
+
return typeof obj;
|
|
31962
|
+
} : function (obj) {
|
|
31963
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
31964
|
+
}, _typeof(obj);
|
|
30960
31965
|
}
|
|
30961
31966
|
|
|
30962
31967
|
function _wrapRegExp() {
|
|
30963
31968
|
_wrapRegExp = function (re, groups) {
|
|
30964
|
-
return new BabelRegExp(re,
|
|
31969
|
+
return new BabelRegExp(re, void 0, groups);
|
|
30965
31970
|
};
|
|
30966
31971
|
|
|
30967
|
-
var _super = RegExp.prototype
|
|
30968
|
-
|
|
30969
|
-
var _groups = new WeakMap();
|
|
31972
|
+
var _super = RegExp.prototype,
|
|
31973
|
+
_groups = new WeakMap();
|
|
30970
31974
|
|
|
30971
31975
|
function BabelRegExp(re, flags, groups) {
|
|
30972
31976
|
var _this = new RegExp(re, flags);
|
|
30973
31977
|
|
|
30974
|
-
_groups.set(_this, groups || _groups.get(re));
|
|
30975
|
-
|
|
30976
|
-
return _setPrototypeOf(_this, BabelRegExp.prototype);
|
|
31978
|
+
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
|
|
30977
31979
|
}
|
|
30978
31980
|
|
|
30979
|
-
|
|
31981
|
+
function buildGroups(result, re) {
|
|
31982
|
+
var g = _groups.get(re);
|
|
30980
31983
|
|
|
30981
|
-
|
|
30982
|
-
|
|
31984
|
+
return Object.keys(g).reduce(function (groups, name) {
|
|
31985
|
+
return groups[name] = result[g[name]], groups;
|
|
31986
|
+
}, Object.create(null));
|
|
31987
|
+
}
|
|
30983
31988
|
|
|
30984
|
-
|
|
30985
|
-
|
|
30986
|
-
};
|
|
31989
|
+
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
|
31990
|
+
var result = _super.exec.call(this, str);
|
|
30987
31991
|
|
|
30988
|
-
|
|
30989
|
-
|
|
31992
|
+
return result && (result.groups = buildGroups(result, this)), result;
|
|
31993
|
+
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
|
31994
|
+
if ("string" == typeof substitution) {
|
|
30990
31995
|
var groups = _groups.get(this);
|
|
30991
31996
|
|
|
30992
31997
|
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
|
30993
31998
|
return "$" + groups[name];
|
|
30994
31999
|
}));
|
|
30995
|
-
}
|
|
32000
|
+
}
|
|
32001
|
+
|
|
32002
|
+
if ("function" == typeof substitution) {
|
|
30996
32003
|
var _this = this;
|
|
30997
32004
|
|
|
30998
32005
|
return _super[Symbol.replace].call(this, str, function () {
|
|
30999
32006
|
var args = arguments;
|
|
31000
|
-
|
|
31001
|
-
if (typeof args[args.length - 1] !== "object") {
|
|
31002
|
-
args = [].slice.call(args);
|
|
31003
|
-
args.push(buildGroups(args, _this));
|
|
31004
|
-
}
|
|
31005
|
-
|
|
31006
|
-
return substitution.apply(this, args);
|
|
32007
|
+
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
|
|
31007
32008
|
});
|
|
31008
|
-
} else {
|
|
31009
|
-
return _super[Symbol.replace].call(this, str, substitution);
|
|
31010
32009
|
}
|
|
31011
|
-
};
|
|
31012
|
-
|
|
31013
|
-
function buildGroups(result, re) {
|
|
31014
|
-
var g = _groups.get(re);
|
|
31015
|
-
|
|
31016
|
-
return Object.keys(g).reduce(function (groups, name) {
|
|
31017
|
-
groups[name] = result[g[name]];
|
|
31018
|
-
return groups;
|
|
31019
|
-
}, Object.create(null));
|
|
31020
|
-
}
|
|
31021
|
-
|
|
31022
|
-
return _wrapRegExp.apply(this, arguments);
|
|
31023
|
-
}
|
|
31024
|
-
|
|
31025
|
-
function _asyncIterator(iterable) {
|
|
31026
|
-
var method;
|
|
31027
|
-
|
|
31028
|
-
if (typeof Symbol !== "undefined") {
|
|
31029
|
-
if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator];
|
|
31030
|
-
if (method == null && Symbol.iterator) method = iterable[Symbol.iterator];
|
|
31031
|
-
}
|
|
31032
32010
|
|
|
31033
|
-
|
|
31034
|
-
|
|
31035
|
-
if (method == null) throw new TypeError("Object is not async iterable");
|
|
31036
|
-
return method.call(iterable);
|
|
32011
|
+
return _super[Symbol.replace].call(this, str, substitution);
|
|
32012
|
+
}, _wrapRegExp.apply(this, arguments);
|
|
31037
32013
|
}
|
|
31038
32014
|
|
|
31039
32015
|
function _AwaitValue(value) {
|
|
@@ -31255,6 +32231,9 @@
|
|
|
31255
32231
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
31256
32232
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
31257
32233
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
32234
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
32235
|
+
writable: false
|
|
32236
|
+
});
|
|
31258
32237
|
return Constructor;
|
|
31259
32238
|
}
|
|
31260
32239
|
|
|
@@ -31335,7 +32314,7 @@
|
|
|
31335
32314
|
var ownKeys = Object.keys(source);
|
|
31336
32315
|
|
|
31337
32316
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
31338
|
-
ownKeys
|
|
32317
|
+
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
31339
32318
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
31340
32319
|
}));
|
|
31341
32320
|
}
|
|
@@ -31360,6 +32339,9 @@
|
|
|
31360
32339
|
configurable: true
|
|
31361
32340
|
}
|
|
31362
32341
|
});
|
|
32342
|
+
Object.defineProperty(subClass, "prototype", {
|
|
32343
|
+
writable: false
|
|
32344
|
+
});
|
|
31363
32345
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
31364
32346
|
}
|
|
31365
32347
|
|
|
@@ -31575,6 +32557,8 @@
|
|
|
31575
32557
|
function _possibleConstructorReturn(self, call) {
|
|
31576
32558
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
31577
32559
|
return call;
|
|
32560
|
+
} else if (call !== void 0) {
|
|
32561
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
31578
32562
|
}
|
|
31579
32563
|
|
|
31580
32564
|
return _assertThisInitialized(self);
|
|
@@ -31608,7 +32592,7 @@
|
|
|
31608
32592
|
return object;
|
|
31609
32593
|
}
|
|
31610
32594
|
|
|
31611
|
-
function _get(
|
|
32595
|
+
function _get() {
|
|
31612
32596
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
31613
32597
|
_get = Reflect.get;
|
|
31614
32598
|
} else {
|
|
@@ -31619,14 +32603,14 @@
|
|
|
31619
32603
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
31620
32604
|
|
|
31621
32605
|
if (desc.get) {
|
|
31622
|
-
return desc.get.call(receiver);
|
|
32606
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
31623
32607
|
}
|
|
31624
32608
|
|
|
31625
32609
|
return desc.value;
|
|
31626
32610
|
};
|
|
31627
32611
|
}
|
|
31628
32612
|
|
|
31629
|
-
return _get(
|
|
32613
|
+
return _get.apply(this, arguments);
|
|
31630
32614
|
}
|
|
31631
32615
|
|
|
31632
32616
|
function set(target, property, value, receiver) {
|
|
@@ -31760,7 +32744,7 @@
|
|
|
31760
32744
|
}
|
|
31761
32745
|
|
|
31762
32746
|
function _iterableToArrayLimit(arr, i) {
|
|
31763
|
-
var _i = arr
|
|
32747
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
31764
32748
|
|
|
31765
32749
|
if (_i == null) return;
|
|
31766
32750
|
var _arr = [];
|
|
@@ -32513,12 +33497,38 @@
|
|
|
32513
33497
|
return fn;
|
|
32514
33498
|
}
|
|
32515
33499
|
|
|
33500
|
+
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
33501
|
+
if (privateCollection.has(obj)) {
|
|
33502
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
33503
|
+
}
|
|
33504
|
+
}
|
|
33505
|
+
|
|
33506
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
33507
|
+
_checkPrivateRedeclaration(obj, privateMap);
|
|
33508
|
+
|
|
33509
|
+
privateMap.set(obj, value);
|
|
33510
|
+
}
|
|
33511
|
+
|
|
33512
|
+
function _classPrivateMethodInitSpec(obj, privateSet) {
|
|
33513
|
+
_checkPrivateRedeclaration(obj, privateSet);
|
|
33514
|
+
|
|
33515
|
+
privateSet.add(obj);
|
|
33516
|
+
}
|
|
33517
|
+
|
|
32516
33518
|
function _classPrivateMethodSet() {
|
|
32517
33519
|
throw new TypeError("attempted to reassign private method");
|
|
32518
33520
|
}
|
|
32519
33521
|
|
|
33522
|
+
function _identity(x) {
|
|
33523
|
+
return x;
|
|
33524
|
+
}
|
|
33525
|
+
|
|
32520
33526
|
class Messages$1 extends Framework7Class {
|
|
32521
|
-
constructor(app, params
|
|
33527
|
+
constructor(app, params) {
|
|
33528
|
+
if (params === void 0) {
|
|
33529
|
+
params = {};
|
|
33530
|
+
}
|
|
33531
|
+
|
|
32522
33532
|
super(params, [app]);
|
|
32523
33533
|
const m = this;
|
|
32524
33534
|
const defaults = {
|
|
@@ -32657,57 +33667,65 @@
|
|
|
32657
33667
|
}, message.footer)));
|
|
32658
33668
|
}
|
|
32659
33669
|
|
|
32660
|
-
renderMessages(messagesToRender
|
|
33670
|
+
renderMessages(messagesToRender, method) {
|
|
33671
|
+
if (messagesToRender === void 0) {
|
|
33672
|
+
messagesToRender = this.messages;
|
|
33673
|
+
}
|
|
33674
|
+
|
|
33675
|
+
if (method === void 0) {
|
|
33676
|
+
method = this.params.newMessagesFirst ? 'prepend' : 'append';
|
|
33677
|
+
}
|
|
33678
|
+
|
|
32661
33679
|
const m = this;
|
|
32662
33680
|
const html = messagesToRender.map(message => m.renderMessage(message)).join('');
|
|
32663
33681
|
m.$el[method](html);
|
|
32664
33682
|
}
|
|
32665
33683
|
|
|
32666
|
-
isFirstMessage(
|
|
33684
|
+
isFirstMessage() {
|
|
32667
33685
|
const m = this;
|
|
32668
|
-
if (m.params.firstMessageRule) return m.params.firstMessageRule(...
|
|
33686
|
+
if (m.params.firstMessageRule) return m.params.firstMessageRule(...arguments);
|
|
32669
33687
|
return false;
|
|
32670
33688
|
}
|
|
32671
33689
|
|
|
32672
|
-
isLastMessage(
|
|
33690
|
+
isLastMessage() {
|
|
32673
33691
|
const m = this;
|
|
32674
|
-
if (m.params.lastMessageRule) return m.params.lastMessageRule(...
|
|
33692
|
+
if (m.params.lastMessageRule) return m.params.lastMessageRule(...arguments);
|
|
32675
33693
|
return false;
|
|
32676
33694
|
}
|
|
32677
33695
|
|
|
32678
|
-
isTailMessage(
|
|
33696
|
+
isTailMessage() {
|
|
32679
33697
|
const m = this;
|
|
32680
|
-
if (m.params.tailMessageRule) return m.params.tailMessageRule(...
|
|
33698
|
+
if (m.params.tailMessageRule) return m.params.tailMessageRule(...arguments);
|
|
32681
33699
|
return false;
|
|
32682
33700
|
}
|
|
32683
33701
|
|
|
32684
|
-
isSameNameMessage(
|
|
33702
|
+
isSameNameMessage() {
|
|
32685
33703
|
const m = this;
|
|
32686
|
-
if (m.params.sameNameMessageRule) return m.params.sameNameMessageRule(...
|
|
33704
|
+
if (m.params.sameNameMessageRule) return m.params.sameNameMessageRule(...arguments);
|
|
32687
33705
|
return false;
|
|
32688
33706
|
}
|
|
32689
33707
|
|
|
32690
|
-
isSameHeaderMessage(
|
|
33708
|
+
isSameHeaderMessage() {
|
|
32691
33709
|
const m = this;
|
|
32692
|
-
if (m.params.sameHeaderMessageRule) return m.params.sameHeaderMessageRule(...
|
|
33710
|
+
if (m.params.sameHeaderMessageRule) return m.params.sameHeaderMessageRule(...arguments);
|
|
32693
33711
|
return false;
|
|
32694
33712
|
}
|
|
32695
33713
|
|
|
32696
|
-
isSameFooterMessage(
|
|
33714
|
+
isSameFooterMessage() {
|
|
32697
33715
|
const m = this;
|
|
32698
|
-
if (m.params.sameFooterMessageRule) return m.params.sameFooterMessageRule(...
|
|
33716
|
+
if (m.params.sameFooterMessageRule) return m.params.sameFooterMessageRule(...arguments);
|
|
32699
33717
|
return false;
|
|
32700
33718
|
}
|
|
32701
33719
|
|
|
32702
|
-
isSameAvatarMessage(
|
|
33720
|
+
isSameAvatarMessage() {
|
|
32703
33721
|
const m = this;
|
|
32704
|
-
if (m.params.sameAvatarMessageRule) return m.params.sameAvatarMessageRule(...
|
|
33722
|
+
if (m.params.sameAvatarMessageRule) return m.params.sameAvatarMessageRule(...arguments);
|
|
32705
33723
|
return false;
|
|
32706
33724
|
}
|
|
32707
33725
|
|
|
32708
|
-
isCustomClassMessage(
|
|
33726
|
+
isCustomClassMessage() {
|
|
32709
33727
|
const m = this;
|
|
32710
|
-
if (m.params.customClassMessageRule) return m.params.customClassMessageRule(...
|
|
33728
|
+
if (m.params.customClassMessageRule) return m.params.customClassMessageRule(...arguments);
|
|
32711
33729
|
return undefined;
|
|
32712
33730
|
}
|
|
32713
33731
|
|
|
@@ -32778,7 +33796,11 @@
|
|
|
32778
33796
|
m.$el.html('');
|
|
32779
33797
|
}
|
|
32780
33798
|
|
|
32781
|
-
removeMessage(messageToRemove, layout
|
|
33799
|
+
removeMessage(messageToRemove, layout) {
|
|
33800
|
+
if (layout === void 0) {
|
|
33801
|
+
layout = true;
|
|
33802
|
+
}
|
|
33803
|
+
|
|
32782
33804
|
const m = this; // Index or El
|
|
32783
33805
|
|
|
32784
33806
|
let index;
|
|
@@ -32805,7 +33827,11 @@
|
|
|
32805
33827
|
return m;
|
|
32806
33828
|
}
|
|
32807
33829
|
|
|
32808
|
-
removeMessages(messagesToRemove, layout
|
|
33830
|
+
removeMessages(messagesToRemove, layout) {
|
|
33831
|
+
if (layout === void 0) {
|
|
33832
|
+
layout = true;
|
|
33833
|
+
}
|
|
33834
|
+
|
|
32809
33835
|
const m = this;
|
|
32810
33836
|
|
|
32811
33837
|
if (Array.isArray(messagesToRemove)) {
|
|
@@ -32826,12 +33852,16 @@
|
|
|
32826
33852
|
return m;
|
|
32827
33853
|
}
|
|
32828
33854
|
|
|
32829
|
-
addMessage(
|
|
33855
|
+
addMessage() {
|
|
32830
33856
|
const m = this;
|
|
32831
33857
|
let messageToAdd;
|
|
32832
33858
|
let animate;
|
|
32833
33859
|
let method;
|
|
32834
33860
|
|
|
33861
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33862
|
+
args[_key] = arguments[_key];
|
|
33863
|
+
}
|
|
33864
|
+
|
|
32835
33865
|
if (typeof args[1] === 'boolean') {
|
|
32836
33866
|
[messageToAdd, animate, method] = args;
|
|
32837
33867
|
} else {
|
|
@@ -32867,12 +33897,16 @@
|
|
|
32867
33897
|
};
|
|
32868
33898
|
}
|
|
32869
33899
|
|
|
32870
|
-
addMessages(
|
|
33900
|
+
addMessages() {
|
|
32871
33901
|
const m = this;
|
|
32872
33902
|
let messagesToAdd;
|
|
32873
33903
|
let animate;
|
|
32874
33904
|
let method;
|
|
32875
33905
|
|
|
33906
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
33907
|
+
args[_key2] = arguments[_key2];
|
|
33908
|
+
}
|
|
33909
|
+
|
|
32876
33910
|
if (typeof args[1] === 'boolean') {
|
|
32877
33911
|
[messagesToAdd, animate, method] = args;
|
|
32878
33912
|
} else {
|
|
@@ -32943,7 +33977,11 @@
|
|
|
32943
33977
|
return m;
|
|
32944
33978
|
}
|
|
32945
33979
|
|
|
32946
|
-
showTyping(message
|
|
33980
|
+
showTyping(message) {
|
|
33981
|
+
if (message === void 0) {
|
|
33982
|
+
message = {};
|
|
33983
|
+
}
|
|
33984
|
+
|
|
32947
33985
|
const m = this;
|
|
32948
33986
|
const typingMessage = m.messages.filter(el => el.isTyping)[0];
|
|
32949
33987
|
|
|
@@ -33009,7 +34047,11 @@
|
|
|
33009
34047
|
}
|
|
33010
34048
|
}
|
|
33011
34049
|
|
|
33012
|
-
scroll(duration
|
|
34050
|
+
scroll(duration, scrollTop) {
|
|
34051
|
+
if (duration === void 0) {
|
|
34052
|
+
duration = 300;
|
|
34053
|
+
}
|
|
34054
|
+
|
|
33013
34055
|
const m = this;
|
|
33014
34056
|
const currentScroll = m.pageContentEl.scrollTop;
|
|
33015
34057
|
let newScrollTop;
|
|
@@ -33123,7 +34165,11 @@
|
|
|
33123
34165
|
};
|
|
33124
34166
|
|
|
33125
34167
|
class Messagebar$1 extends Framework7Class {
|
|
33126
|
-
constructor(app, params
|
|
34168
|
+
constructor(app, params) {
|
|
34169
|
+
if (params === void 0) {
|
|
34170
|
+
params = {};
|
|
34171
|
+
}
|
|
34172
|
+
|
|
33127
34173
|
super(params, [app]);
|
|
33128
34174
|
const messagebar = this;
|
|
33129
34175
|
const defaults = {
|
|
@@ -33364,7 +34410,11 @@
|
|
|
33364
34410
|
}
|
|
33365
34411
|
}
|
|
33366
34412
|
|
|
33367
|
-
attachmentsCreate(innerHTML
|
|
34413
|
+
attachmentsCreate(innerHTML) {
|
|
34414
|
+
if (innerHTML === void 0) {
|
|
34415
|
+
innerHTML = '';
|
|
34416
|
+
}
|
|
34417
|
+
|
|
33368
34418
|
const messagebar = this;
|
|
33369
34419
|
const $attachmentsEl = $(`<div class="messagebar-attachments">${innerHTML}</div>`);
|
|
33370
34420
|
$attachmentsEl.insertBefore(messagebar.$textareaEl);
|
|
@@ -33375,7 +34425,11 @@
|
|
|
33375
34425
|
return messagebar;
|
|
33376
34426
|
}
|
|
33377
34427
|
|
|
33378
|
-
attachmentsShow(innerHTML
|
|
34428
|
+
attachmentsShow(innerHTML) {
|
|
34429
|
+
if (innerHTML === void 0) {
|
|
34430
|
+
innerHTML = '';
|
|
34431
|
+
}
|
|
34432
|
+
|
|
33379
34433
|
const messagebar = this;
|
|
33380
34434
|
messagebar.$attachmentsEl = messagebar.$el.find('.messagebar-attachments');
|
|
33381
34435
|
|
|
@@ -33449,7 +34503,11 @@
|
|
|
33449
34503
|
}
|
|
33450
34504
|
}
|
|
33451
34505
|
|
|
33452
|
-
sheetCreate(innerHTML
|
|
34506
|
+
sheetCreate(innerHTML) {
|
|
34507
|
+
if (innerHTML === void 0) {
|
|
34508
|
+
innerHTML = '';
|
|
34509
|
+
}
|
|
34510
|
+
|
|
33453
34511
|
const messagebar = this;
|
|
33454
34512
|
const $sheetEl = $(`<div class="messagebar-sheet">${innerHTML}</div>`);
|
|
33455
34513
|
messagebar.$el.append($sheetEl);
|
|
@@ -33460,7 +34518,11 @@
|
|
|
33460
34518
|
return messagebar;
|
|
33461
34519
|
}
|
|
33462
34520
|
|
|
33463
|
-
sheetShow(innerHTML
|
|
34521
|
+
sheetShow(innerHTML) {
|
|
34522
|
+
if (innerHTML === void 0) {
|
|
34523
|
+
innerHTML = '';
|
|
34524
|
+
}
|
|
34525
|
+
|
|
33464
34526
|
const messagebar = this;
|
|
33465
34527
|
messagebar.$sheetEl = messagebar.$el.find('.messagebar-sheet');
|
|
33466
34528
|
|
|
@@ -33717,14 +34779,14 @@
|
|
|
33717
34779
|
// Latest Chrome and webkits Fix
|
|
33718
34780
|
if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41; // Crazy IE10 Matrix
|
|
33719
34781
|
else if (matrix.length === 16) curTransform = parseFloat(matrix[12]); // Normal Browsers
|
|
33720
|
-
|
|
34782
|
+
else curTransform = parseFloat(matrix[4]);
|
|
33721
34783
|
}
|
|
33722
34784
|
|
|
33723
34785
|
if (axis === 'y') {
|
|
33724
34786
|
// Latest Chrome and webkits Fix
|
|
33725
34787
|
if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42; // Crazy IE10 Matrix
|
|
33726
34788
|
else if (matrix.length === 16) curTransform = parseFloat(matrix[13]); // Normal Browsers
|
|
33727
|
-
|
|
34789
|
+
else curTransform = parseFloat(matrix[5]);
|
|
33728
34790
|
}
|
|
33729
34791
|
|
|
33730
34792
|
return curTransform || 0;
|
|
@@ -35779,8 +36841,6 @@
|
|
|
35779
36841
|
if (swiper.support.touch || !swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;
|
|
35780
36842
|
const el = swiper.params.touchEventsTarget === 'container' ? swiper.el : swiper.wrapperEl;
|
|
35781
36843
|
el.style.cursor = 'move';
|
|
35782
|
-
el.style.cursor = moving ? '-webkit-grabbing' : '-webkit-grab';
|
|
35783
|
-
el.style.cursor = moving ? '-moz-grabbin' : '-moz-grab';
|
|
35784
36844
|
el.style.cursor = moving ? 'grabbing' : 'grab';
|
|
35785
36845
|
}
|
|
35786
36846
|
|
|
@@ -36382,7 +37442,7 @@
|
|
|
36382
37442
|
} // eslint-disable-next-line
|
|
36383
37443
|
|
|
36384
37444
|
|
|
36385
|
-
if (swiper.translate ===
|
|
37445
|
+
if (swiper.translate === 0) swiper.translate = 0;
|
|
36386
37446
|
swiper.updateActiveIndex();
|
|
36387
37447
|
swiper.updateSlidesClasses();
|
|
36388
37448
|
let newProgress;
|
|
@@ -37562,7 +38622,8 @@
|
|
|
37562
38622
|
let {
|
|
37563
38623
|
swiper,
|
|
37564
38624
|
extendParams,
|
|
37565
|
-
on
|
|
38625
|
+
on,
|
|
38626
|
+
emit
|
|
37566
38627
|
} = _ref;
|
|
37567
38628
|
extendParams({
|
|
37568
38629
|
virtual: {
|
|
@@ -37653,6 +38714,8 @@
|
|
|
37653
38714
|
if (swiper.lazy && swiper.params.lazy.enabled) {
|
|
37654
38715
|
swiper.lazy.load();
|
|
37655
38716
|
}
|
|
38717
|
+
|
|
38718
|
+
emit('virtualUpdate');
|
|
37656
38719
|
}
|
|
37657
38720
|
|
|
37658
38721
|
if (previousFrom === from && previousTo === to && !force) {
|
|
@@ -37661,6 +38724,7 @@
|
|
|
37661
38724
|
}
|
|
37662
38725
|
|
|
37663
38726
|
swiper.updateProgress();
|
|
38727
|
+
emit('virtualUpdate');
|
|
37664
38728
|
return;
|
|
37665
38729
|
}
|
|
37666
38730
|
|
|
@@ -37682,6 +38746,8 @@
|
|
|
37682
38746
|
|
|
37683
38747
|
if (swiper.params.virtual.renderExternalUpdate) {
|
|
37684
38748
|
onRendered();
|
|
38749
|
+
} else {
|
|
38750
|
+
emit('virtualUpdate');
|
|
37685
38751
|
}
|
|
37686
38752
|
|
|
37687
38753
|
return;
|
|
@@ -38908,7 +39974,7 @@
|
|
|
38908
39974
|
}
|
|
38909
39975
|
|
|
38910
39976
|
$el.addClass(params.modifierClass + params.type);
|
|
38911
|
-
$el.addClass(params.
|
|
39977
|
+
$el.addClass(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);
|
|
38912
39978
|
|
|
38913
39979
|
if (params.type === 'bullets' && params.dynamicBullets) {
|
|
38914
39980
|
$el.addClass(`${params.modifierClass}${params.type}-dynamic`);
|
|
@@ -38948,7 +40014,7 @@
|
|
|
38948
40014
|
const $el = swiper.pagination.$el;
|
|
38949
40015
|
$el.removeClass(params.hiddenClass);
|
|
38950
40016
|
$el.removeClass(params.modifierClass + params.type);
|
|
38951
|
-
$el.removeClass(params.
|
|
40017
|
+
$el.removeClass(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);
|
|
38952
40018
|
if (swiper.pagination.bullets && swiper.pagination.bullets.removeClass) swiper.pagination.bullets.removeClass(params.bulletActiveClass);
|
|
38953
40019
|
|
|
38954
40020
|
if (params.clickable) {
|
|
@@ -40614,7 +41680,8 @@
|
|
|
40614
41680
|
containerMessage: null,
|
|
40615
41681
|
containerRoleDescriptionMessage: null,
|
|
40616
41682
|
itemRoleDescriptionMessage: null,
|
|
40617
|
-
slideRole: 'group'
|
|
41683
|
+
slideRole: 'group',
|
|
41684
|
+
id: null
|
|
40618
41685
|
}
|
|
40619
41686
|
});
|
|
40620
41687
|
let liveRegion = null;
|
|
@@ -40806,7 +41873,7 @@
|
|
|
40806
41873
|
|
|
40807
41874
|
|
|
40808
41875
|
const $wrapperEl = swiper.$wrapperEl;
|
|
40809
|
-
const wrapperId = $wrapperEl.attr('id') || `swiper-wrapper-${getRandomNumber(16)}`;
|
|
41876
|
+
const wrapperId = params.id || $wrapperEl.attr('id') || `swiper-wrapper-${getRandomNumber(16)}`;
|
|
40810
41877
|
const live = swiper.params.autoplay && swiper.params.autoplay.enabled ? 'off' : 'polite';
|
|
40811
41878
|
addElId($wrapperEl, wrapperId);
|
|
40812
41879
|
addElLive($wrapperEl, live); // Slide
|
|
@@ -41395,7 +42462,7 @@
|
|
|
41395
42462
|
|
|
41396
42463
|
function onThumbClick() {
|
|
41397
42464
|
const thumbsSwiper = swiper.thumbs.swiper;
|
|
41398
|
-
if (!thumbsSwiper) return;
|
|
42465
|
+
if (!thumbsSwiper || thumbsSwiper.destroyed) return;
|
|
41399
42466
|
const clickedIndex = thumbsSwiper.clickedIndex;
|
|
41400
42467
|
const clickedSlide = thumbsSwiper.clickedSlide;
|
|
41401
42468
|
if (clickedSlide && $$1(clickedSlide).hasClass(swiper.params.thumbs.slideThumbActiveClass)) return;
|
|
@@ -41461,7 +42528,7 @@
|
|
|
41461
42528
|
|
|
41462
42529
|
function update(initial) {
|
|
41463
42530
|
const thumbsSwiper = swiper.thumbs.swiper;
|
|
41464
|
-
if (!thumbsSwiper) return;
|
|
42531
|
+
if (!thumbsSwiper || thumbsSwiper.destroyed) return;
|
|
41465
42532
|
const slidesPerView = thumbsSwiper.params.slidesPerView === 'auto' ? thumbsSwiper.slidesPerViewDynamic() : thumbsSwiper.params.slidesPerView;
|
|
41466
42533
|
const autoScrollOffset = swiper.params.thumbs.autoScrollOffset;
|
|
41467
42534
|
const useOffset = autoScrollOffset && !thumbsSwiper.params.loop;
|
|
@@ -41554,19 +42621,18 @@
|
|
|
41554
42621
|
update(true);
|
|
41555
42622
|
});
|
|
41556
42623
|
on('slideChange update resize observerUpdate', () => {
|
|
41557
|
-
if (!swiper.thumbs.swiper) return;
|
|
41558
42624
|
update();
|
|
41559
42625
|
});
|
|
41560
42626
|
on('setTransition', (_s, duration) => {
|
|
41561
42627
|
const thumbsSwiper = swiper.thumbs.swiper;
|
|
41562
|
-
if (!thumbsSwiper) return;
|
|
42628
|
+
if (!thumbsSwiper || thumbsSwiper.destroyed) return;
|
|
41563
42629
|
thumbsSwiper.setTransition(duration);
|
|
41564
42630
|
});
|
|
41565
42631
|
on('beforeDestroy', () => {
|
|
41566
42632
|
const thumbsSwiper = swiper.thumbs.swiper;
|
|
41567
|
-
if (!thumbsSwiper) return;
|
|
42633
|
+
if (!thumbsSwiper || thumbsSwiper.destroyed) return;
|
|
41568
42634
|
|
|
41569
|
-
if (swiperCreated
|
|
42635
|
+
if (swiperCreated) {
|
|
41570
42636
|
thumbsSwiper.destroy();
|
|
41571
42637
|
}
|
|
41572
42638
|
});
|
|
@@ -42182,6 +43248,19 @@
|
|
|
42182
43248
|
if (swiper.params.effect !== effect) return;
|
|
42183
43249
|
setTransition(duration);
|
|
42184
43250
|
});
|
|
43251
|
+
let requireUpdateOnVirtual;
|
|
43252
|
+
on('virtualUpdate', () => {
|
|
43253
|
+
if (!swiper.slides.length) {
|
|
43254
|
+
requireUpdateOnVirtual = true;
|
|
43255
|
+
}
|
|
43256
|
+
|
|
43257
|
+
requestAnimationFrame(() => {
|
|
43258
|
+
if (requireUpdateOnVirtual && swiper.slides && swiper.slides.length) {
|
|
43259
|
+
setTranslate();
|
|
43260
|
+
requireUpdateOnVirtual = false;
|
|
43261
|
+
}
|
|
43262
|
+
});
|
|
43263
|
+
});
|
|
42185
43264
|
}
|
|
42186
43265
|
|
|
42187
43266
|
function effectTarget(effectParams, $slideEl) {
|
|
@@ -42630,7 +43709,8 @@
|
|
|
42630
43709
|
const $slideEl = slides.eq(i);
|
|
42631
43710
|
const slideSize = slidesSizesGrid[i];
|
|
42632
43711
|
const slideOffset = $slideEl[0].swiperSlideOffset;
|
|
42633
|
-
const
|
|
43712
|
+
const centerOffset = (center - slideOffset - slideSize / 2) / slideSize;
|
|
43713
|
+
const offsetMultiplier = typeof params.modifier === 'function' ? params.modifier(centerOffset) : centerOffset * params.modifier;
|
|
42634
43714
|
let rotateY = isHorizontal ? rotate * offsetMultiplier : 0;
|
|
42635
43715
|
let rotateX = isHorizontal ? 0 : rotate * offsetMultiplier; // var rotateZ = 0
|
|
42636
43716
|
|
|
@@ -42857,7 +43937,8 @@
|
|
|
42857
43937
|
extendParams({
|
|
42858
43938
|
cardsEffect: {
|
|
42859
43939
|
slideShadows: true,
|
|
42860
|
-
transformEl: null
|
|
43940
|
+
transformEl: null,
|
|
43941
|
+
rotate: true
|
|
42861
43942
|
}
|
|
42862
43943
|
});
|
|
42863
43944
|
|
|
@@ -42893,8 +43974,9 @@
|
|
|
42893
43974
|
let scale = 1;
|
|
42894
43975
|
let rotate = -2 * progress;
|
|
42895
43976
|
let tXAdd = 8 - Math.abs(progress) * 0.75;
|
|
42896
|
-
const
|
|
42897
|
-
const
|
|
43977
|
+
const slideIndex = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.from + i : i;
|
|
43978
|
+
const isSwipeToNext = (slideIndex === activeIndex || slideIndex === activeIndex - 1) && progress > 0 && progress < 1 && (isTouched || swiper.params.cssMode) && currentTranslate < startTranslate;
|
|
43979
|
+
const isSwipeToPrev = (slideIndex === activeIndex || slideIndex === activeIndex + 1) && progress < 0 && progress > -1 && (isTouched || swiper.params.cssMode) && currentTranslate > startTranslate;
|
|
42898
43980
|
|
|
42899
43981
|
if (isSwipeToNext || isSwipeToPrev) {
|
|
42900
43982
|
const subProgress = (1 - Math.abs((Math.abs(progress) - 0.5) / 0.5)) ** 0.5;
|
|
@@ -42923,7 +44005,7 @@
|
|
|
42923
44005
|
const scaleString = progress < 0 ? `${1 + (1 - scale) * progress}` : `${1 - (1 - scale) * progress}`;
|
|
42924
44006
|
const transform = `
|
|
42925
44007
|
translate3d(${tX}, ${tY}, ${tZ}px)
|
|
42926
|
-
rotateZ(${rotate}deg)
|
|
44008
|
+
rotateZ(${params.rotate ? rotate : 0}deg)
|
|
42927
44009
|
scale(${scaleString})
|
|
42928
44010
|
`;
|
|
42929
44011
|
|
|
@@ -42972,7 +44054,7 @@
|
|
|
42972
44054
|
}
|
|
42973
44055
|
|
|
42974
44056
|
/**
|
|
42975
|
-
* Swiper 8.0
|
|
44057
|
+
* Swiper 8.1.0
|
|
42976
44058
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
42977
44059
|
* https://swiperjs.com
|
|
42978
44060
|
*
|
|
@@ -42980,7 +44062,7 @@
|
|
|
42980
44062
|
*
|
|
42981
44063
|
* Released under the MIT License
|
|
42982
44064
|
*
|
|
42983
|
-
* Released on:
|
|
44065
|
+
* Released on: April 8, 2022
|
|
42984
44066
|
*/
|
|
42985
44067
|
|
|
42986
44068
|
const modules = [Virtual, Keyboard, Mousewheel, Navigation, Pagination, Scrollbar, Parallax, Zoom, Lazy, Controller, A11y, History, HashNavigation, Autoplay, Thumb, freeMode, Grid, Manipulation, EffectFade, EffectCube, EffectFlip, EffectCoverflow, EffectCreative, EffectCards];
|
|
@@ -43186,7 +44268,11 @@
|
|
|
43186
44268
|
/* eslint indent: ["off"] */
|
|
43187
44269
|
|
|
43188
44270
|
class PhotoBrowser$1 extends Framework7Class {
|
|
43189
|
-
constructor(app, params
|
|
44271
|
+
constructor(app, params) {
|
|
44272
|
+
if (params === void 0) {
|
|
44273
|
+
params = {};
|
|
44274
|
+
}
|
|
44275
|
+
|
|
43190
44276
|
super(params, [app]);
|
|
43191
44277
|
const pb = this;
|
|
43192
44278
|
pb.app = app;
|
|
@@ -43550,35 +44636,65 @@
|
|
|
43550
44636
|
pb.emit('local::doubleClick', e);
|
|
43551
44637
|
},
|
|
43552
44638
|
|
|
43553
|
-
slideChange(
|
|
44639
|
+
slideChange() {
|
|
43554
44640
|
const swiper = this;
|
|
43555
44641
|
pb.onSlideChange(swiper);
|
|
44642
|
+
|
|
44643
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
44644
|
+
args[_key] = arguments[_key];
|
|
44645
|
+
}
|
|
44646
|
+
|
|
43556
44647
|
pb.emit('local::slideChange', ...args);
|
|
43557
44648
|
},
|
|
43558
44649
|
|
|
43559
|
-
transitionStart(
|
|
44650
|
+
transitionStart() {
|
|
44651
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
44652
|
+
args[_key2] = arguments[_key2];
|
|
44653
|
+
}
|
|
44654
|
+
|
|
43560
44655
|
pb.emit('local::transitionStart', ...args);
|
|
43561
44656
|
},
|
|
43562
44657
|
|
|
43563
|
-
transitionEnd(
|
|
44658
|
+
transitionEnd() {
|
|
44659
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
44660
|
+
args[_key3] = arguments[_key3];
|
|
44661
|
+
}
|
|
44662
|
+
|
|
43564
44663
|
pb.emit('local::transitionEnd', ...args);
|
|
43565
44664
|
},
|
|
43566
44665
|
|
|
43567
|
-
slideChangeTransitionStart(
|
|
44666
|
+
slideChangeTransitionStart() {
|
|
43568
44667
|
const swiper = this;
|
|
43569
44668
|
pb.onSlideChange(swiper);
|
|
44669
|
+
|
|
44670
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
44671
|
+
args[_key4] = arguments[_key4];
|
|
44672
|
+
}
|
|
44673
|
+
|
|
43570
44674
|
pb.emit('local::slideChangeTransitionStart', ...args);
|
|
43571
44675
|
},
|
|
43572
44676
|
|
|
43573
|
-
slideChangeTransitionEnd(
|
|
44677
|
+
slideChangeTransitionEnd() {
|
|
44678
|
+
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
44679
|
+
args[_key5] = arguments[_key5];
|
|
44680
|
+
}
|
|
44681
|
+
|
|
43574
44682
|
pb.emit('local::slideChangeTransitionEnd', ...args);
|
|
43575
44683
|
},
|
|
43576
44684
|
|
|
43577
|
-
lazyImageLoad(
|
|
44685
|
+
lazyImageLoad() {
|
|
44686
|
+
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
44687
|
+
args[_key6] = arguments[_key6];
|
|
44688
|
+
}
|
|
44689
|
+
|
|
43578
44690
|
pb.emit('local::lazyImageLoad', ...args);
|
|
43579
44691
|
},
|
|
43580
44692
|
|
|
43581
|
-
lazyImageReady(
|
|
44693
|
+
lazyImageReady() {
|
|
44694
|
+
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
44695
|
+
args[_key7] = arguments[_key7];
|
|
44696
|
+
}
|
|
44697
|
+
|
|
43582
44698
|
const slideEl = args[0];
|
|
43583
44699
|
$(slideEl).removeClass('photo-browser-slide-lazy');
|
|
43584
44700
|
pb.emit('local::lazyImageReady', ...args);
|
|
@@ -44266,7 +45382,11 @@
|
|
|
44266
45382
|
/* eslint "no-useless-escape": "off" */
|
|
44267
45383
|
|
|
44268
45384
|
class Autocomplete$1 extends Framework7Class {
|
|
44269
|
-
constructor(app, params
|
|
45385
|
+
constructor(app, params) {
|
|
45386
|
+
if (params === void 0) {
|
|
45387
|
+
params = {};
|
|
45388
|
+
}
|
|
45389
|
+
|
|
44270
45390
|
super(params, [app]);
|
|
44271
45391
|
const ac = this;
|
|
44272
45392
|
ac.app = app;
|
|
@@ -45294,7 +46414,11 @@
|
|
|
45294
46414
|
};
|
|
45295
46415
|
|
|
45296
46416
|
class Tooltip$1 extends Framework7Class {
|
|
45297
|
-
constructor(app, params
|
|
46417
|
+
constructor(app, params) {
|
|
46418
|
+
if (params === void 0) {
|
|
46419
|
+
params = {};
|
|
46420
|
+
}
|
|
46421
|
+
|
|
45298
46422
|
super(params, [app]);
|
|
45299
46423
|
const tooltip = this;
|
|
45300
46424
|
const support = getSupport$1();
|
|
@@ -45817,7 +46941,11 @@
|
|
|
45817
46941
|
/* eslint no-nested-ternary: off */
|
|
45818
46942
|
|
|
45819
46943
|
class Gauge$1 extends Framework7Class {
|
|
45820
|
-
constructor(app, params
|
|
46944
|
+
constructor(app, params) {
|
|
46945
|
+
if (params === void 0) {
|
|
46946
|
+
params = {};
|
|
46947
|
+
}
|
|
46948
|
+
|
|
45821
46949
|
super(params, [app]);
|
|
45822
46950
|
const self = this;
|
|
45823
46951
|
const defaults = extend$1({}, app.params.gauge); // Extend defaults with modules params
|
|
@@ -45943,7 +47071,11 @@
|
|
|
45943
47071
|
}, labelText));
|
|
45944
47072
|
}
|
|
45945
47073
|
|
|
45946
|
-
update(newParams
|
|
47074
|
+
update(newParams) {
|
|
47075
|
+
if (newParams === void 0) {
|
|
47076
|
+
newParams = {};
|
|
47077
|
+
}
|
|
47078
|
+
|
|
45947
47079
|
const self = this;
|
|
45948
47080
|
const document = getDocument();
|
|
45949
47081
|
const {
|
|
@@ -46213,7 +47345,11 @@
|
|
|
46213
47345
|
};
|
|
46214
47346
|
|
|
46215
47347
|
const Menu = {
|
|
46216
|
-
open(el
|
|
47348
|
+
open(el) {
|
|
47349
|
+
if (el === void 0) {
|
|
47350
|
+
el = '.menu-item-dropdown';
|
|
47351
|
+
}
|
|
47352
|
+
|
|
46217
47353
|
const app = this;
|
|
46218
47354
|
if (!el) return;
|
|
46219
47355
|
const $el = $(el).closest('.menu-item-dropdown');
|
|
@@ -46231,7 +47367,11 @@
|
|
|
46231
47367
|
app.emit('menuOpened', $el.eq(0)[0]);
|
|
46232
47368
|
},
|
|
46233
47369
|
|
|
46234
|
-
close(el
|
|
47370
|
+
close(el) {
|
|
47371
|
+
if (el === void 0) {
|
|
47372
|
+
el = '.menu-item-dropdown-opened';
|
|
47373
|
+
}
|
|
47374
|
+
|
|
46235
47375
|
const app = this;
|
|
46236
47376
|
if (!el) return;
|
|
46237
47377
|
const $el = $(el).closest('.menu-item-dropdown-opened');
|
|
@@ -47824,7 +48964,11 @@
|
|
|
47824
48964
|
};
|
|
47825
48965
|
|
|
47826
48966
|
class ColorPicker$1 extends Framework7Class {
|
|
47827
|
-
constructor(app, params
|
|
48967
|
+
constructor(app, params) {
|
|
48968
|
+
if (params === void 0) {
|
|
48969
|
+
params = {};
|
|
48970
|
+
}
|
|
48971
|
+
|
|
47828
48972
|
super(params, [app]);
|
|
47829
48973
|
const self = this;
|
|
47830
48974
|
self.params = extend$1({}, app.params.colorPicker, params);
|
|
@@ -48065,7 +49209,15 @@
|
|
|
48065
49209
|
return [Math.floor(arr[0] * 10) / 10, Math.floor(arr[1] * 1000) / 1000, Math.floor(arr[2] * 1000) / 1000];
|
|
48066
49210
|
}
|
|
48067
49211
|
|
|
48068
|
-
setValue(value
|
|
49212
|
+
setValue(value, updateModules) {
|
|
49213
|
+
if (value === void 0) {
|
|
49214
|
+
value = {};
|
|
49215
|
+
}
|
|
49216
|
+
|
|
49217
|
+
if (updateModules === void 0) {
|
|
49218
|
+
updateModules = true;
|
|
49219
|
+
}
|
|
49220
|
+
|
|
48069
49221
|
const self = this;
|
|
48070
49222
|
if (typeof value === 'undefined') return;
|
|
48071
49223
|
let {
|
|
@@ -48203,7 +49355,11 @@
|
|
|
48203
49355
|
return self.value;
|
|
48204
49356
|
}
|
|
48205
49357
|
|
|
48206
|
-
updateValue(fireEvents
|
|
49358
|
+
updateValue(fireEvents) {
|
|
49359
|
+
if (fireEvents === void 0) {
|
|
49360
|
+
fireEvents = true;
|
|
49361
|
+
}
|
|
49362
|
+
|
|
48207
49363
|
const self = this;
|
|
48208
49364
|
const {
|
|
48209
49365
|
$inputEl,
|
|
@@ -48802,7 +49958,11 @@
|
|
|
48802
49958
|
domProp: 'f7ColorPicker'
|
|
48803
49959
|
});
|
|
48804
49960
|
|
|
48805
|
-
app.colorPicker.close = function close(el
|
|
49961
|
+
app.colorPicker.close = function close(el) {
|
|
49962
|
+
if (el === void 0) {
|
|
49963
|
+
el = '.color-picker';
|
|
49964
|
+
}
|
|
49965
|
+
|
|
48806
49966
|
const $el = $(el);
|
|
48807
49967
|
if ($el.length === 0) return;
|
|
48808
49968
|
const colorPicker = $el[0].f7ColorPicker;
|
|
@@ -49642,7 +50802,11 @@
|
|
|
49642
50802
|
};
|
|
49643
50803
|
|
|
49644
50804
|
class PieChart$1 extends Framework7Class {
|
|
49645
|
-
constructor(app, params
|
|
50805
|
+
constructor(app, params) {
|
|
50806
|
+
if (params === void 0) {
|
|
50807
|
+
params = {};
|
|
50808
|
+
}
|
|
50809
|
+
|
|
49646
50810
|
super(params, [app]);
|
|
49647
50811
|
const self = this;
|
|
49648
50812
|
const defaults = extend$1({}, app.params.pieChart); // Extend defaults with modules params
|
|
@@ -49697,11 +50861,12 @@
|
|
|
49697
50861
|
return [x, y];
|
|
49698
50862
|
}
|
|
49699
50863
|
|
|
49700
|
-
datasets.forEach(
|
|
49701
|
-
|
|
49702
|
-
|
|
49703
|
-
|
|
49704
|
-
|
|
50864
|
+
datasets.forEach(_ref => {
|
|
50865
|
+
let {
|
|
50866
|
+
value,
|
|
50867
|
+
label,
|
|
50868
|
+
color
|
|
50869
|
+
} = _ref;
|
|
49705
50870
|
const percentage = value / this.getSummValue();
|
|
49706
50871
|
const [startX, startY] = getCoordinatesForPercentage(cumulativePercentage);
|
|
49707
50872
|
cumulativePercentage += percentage;
|
|
@@ -49811,7 +50976,11 @@
|
|
|
49811
50976
|
})));
|
|
49812
50977
|
}
|
|
49813
50978
|
|
|
49814
|
-
update(newParams
|
|
50979
|
+
update(newParams) {
|
|
50980
|
+
if (newParams === void 0) {
|
|
50981
|
+
newParams = {};
|
|
50982
|
+
}
|
|
50983
|
+
|
|
49815
50984
|
const self = this;
|
|
49816
50985
|
const {
|
|
49817
50986
|
params
|
|
@@ -49931,7 +51100,11 @@
|
|
|
49931
51100
|
};
|
|
49932
51101
|
|
|
49933
51102
|
class AreaChart$1 extends Framework7Class {
|
|
49934
|
-
constructor(app, params
|
|
51103
|
+
constructor(app, params) {
|
|
51104
|
+
if (params === void 0) {
|
|
51105
|
+
params = {};
|
|
51106
|
+
}
|
|
51107
|
+
|
|
49935
51108
|
super(params, [app]);
|
|
49936
51109
|
const self = this;
|
|
49937
51110
|
const defaults = extend$1({}, app.params.areaChart); // Extend defaults with modules params
|
|
@@ -49984,9 +51157,10 @@
|
|
|
49984
51157
|
hiddenDatasets
|
|
49985
51158
|
} = this;
|
|
49986
51159
|
const summValues = [];
|
|
49987
|
-
datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(
|
|
49988
|
-
|
|
49989
|
-
|
|
51160
|
+
datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(_ref => {
|
|
51161
|
+
let {
|
|
51162
|
+
values
|
|
51163
|
+
} = _ref;
|
|
49990
51164
|
values.forEach((value, valueIndex) => {
|
|
49991
51165
|
if (!summValues[valueIndex]) summValues[valueIndex] = 0;
|
|
49992
51166
|
summValues[valueIndex] += value;
|
|
@@ -50015,9 +51189,10 @@
|
|
|
50015
51189
|
let maxValue = 0;
|
|
50016
51190
|
|
|
50017
51191
|
if (lineChart) {
|
|
50018
|
-
datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(
|
|
50019
|
-
|
|
50020
|
-
|
|
51192
|
+
datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(_ref2 => {
|
|
51193
|
+
let {
|
|
51194
|
+
values
|
|
51195
|
+
} = _ref2;
|
|
50021
51196
|
const datasetMaxValue = Math.max(...values);
|
|
50022
51197
|
if (datasetMaxValue > maxValue) maxValue = datasetMaxValue;
|
|
50023
51198
|
});
|
|
@@ -50025,11 +51200,12 @@
|
|
|
50025
51200
|
maxValue = Math.max(...this.getSummValues());
|
|
50026
51201
|
}
|
|
50027
51202
|
|
|
50028
|
-
datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(
|
|
50029
|
-
|
|
50030
|
-
|
|
50031
|
-
|
|
50032
|
-
|
|
51203
|
+
datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(_ref3 => {
|
|
51204
|
+
let {
|
|
51205
|
+
label,
|
|
51206
|
+
values,
|
|
51207
|
+
color
|
|
51208
|
+
} = _ref3;
|
|
50033
51209
|
const points = values.map((originalValue, valueIndex) => {
|
|
50034
51210
|
lastValues[valueIndex] += originalValue;
|
|
50035
51211
|
const value = lineChart ? originalValue : lastValues[valueIndex];
|
|
@@ -50164,11 +51340,12 @@
|
|
|
50164
51340
|
|
|
50165
51341
|
const datasetsText = currentValues.length > 0 ? `
|
|
50166
51342
|
<ul class="area-chart-tooltip-list">
|
|
50167
|
-
${currentValues.map(
|
|
50168
|
-
|
|
50169
|
-
|
|
50170
|
-
|
|
50171
|
-
|
|
51343
|
+
${currentValues.map(_ref4 => {
|
|
51344
|
+
let {
|
|
51345
|
+
label,
|
|
51346
|
+
color,
|
|
51347
|
+
value
|
|
51348
|
+
} = _ref4;
|
|
50172
51349
|
const valueText = formatTooltipDataset ? formatTooltipDataset.call(self, label, value, color) : `${label ? `${label}: ` : ''}${value}`;
|
|
50173
51350
|
return `
|
|
50174
51351
|
<li><span style="background-color: ${color};"></span>${valueText}</li>
|
|
@@ -50347,7 +51524,15 @@
|
|
|
50347
51524
|
}), self.formatLegendLabel(dataset.label)))));
|
|
50348
51525
|
}
|
|
50349
51526
|
|
|
50350
|
-
update(newParams
|
|
51527
|
+
update(newParams, onlySvg) {
|
|
51528
|
+
if (newParams === void 0) {
|
|
51529
|
+
newParams = {};
|
|
51530
|
+
}
|
|
51531
|
+
|
|
51532
|
+
if (onlySvg === void 0) {
|
|
51533
|
+
onlySvg = false;
|
|
51534
|
+
}
|
|
51535
|
+
|
|
50351
51536
|
const self = this;
|
|
50352
51537
|
const {
|
|
50353
51538
|
params
|
|
@@ -50506,5 +51691,5 @@
|
|
|
50506
51691
|
|
|
50507
51692
|
return Framework7;
|
|
50508
51693
|
|
|
50509
|
-
}))
|
|
51694
|
+
}));
|
|
50510
51695
|
//# sourceMappingURL=framework7-bundle.js.map
|