framework7 6.3.11 → 6.3.16
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/cjs/components/calendar/calendar-class.js +37 -20
- package/cjs/components/progressbar/progressbar.js +1 -1
- package/cjs/components/tabs/tabs.js +4 -5
- package/cjs/components/toolbar/toolbar.js +1 -1
- package/cjs/framework7-bundle.js +3 -3
- package/cjs/framework7-lite-bundle.js +3 -3
- package/cjs/framework7-lite.js +3 -3
- package/cjs/framework7.js +3 -3
- package/cjs/modules/router/back.js +10 -1
- package/components/calendar/calendar.js +1 -1
- package/components/list-index/list-index.d.ts +1 -1
- package/components/notification/notification.d.ts +4 -4
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.d.ts +2 -0
- package/components/popup/popup.less +1 -0
- package/components/progressbar/progressbar-aurora.less +32 -13
- package/components/progressbar/progressbar-ios.less +19 -7
- package/components/progressbar/progressbar-md.less +64 -28
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar.css +1 -1
- package/components/progressbar/progressbar.js +1 -1
- package/components/progressbar/progressbar.less +16 -4
- package/components/range/range.d.ts +23 -5
- package/components/tabs/tabs.js +1 -1
- package/components/toast/toast.d.ts +2 -2
- package/components/toolbar/toolbar-aurora.less +0 -13
- package/components/toolbar/toolbar-md.less +0 -13
- package/components/toolbar/toolbar.less +13 -0
- package/esm/components/calendar/calendar-class.js +37 -20
- package/esm/components/progressbar/progressbar.js +1 -1
- package/esm/components/tabs/tabs.js +4 -5
- package/esm/components/toolbar/toolbar.js +1 -1
- package/esm/framework7-bundle.js +3 -3
- package/esm/framework7-lite-bundle.js +3 -3
- package/esm/framework7-lite.js +3 -3
- package/esm/framework7.js +3 -3
- package/esm/modules/router/back.js +11 -1
- package/framework7-bundle-rtl.css +31 -39
- package/framework7-bundle-rtl.min.css +4 -4
- package/framework7-bundle.css +16 -23
- package/framework7-bundle.js +57 -31
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +3 -3
- package/framework7-bundle.min.css +4 -4
- package/framework7-bundle.min.js +4 -4
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-rtl.css +12 -21
- package/framework7-rtl.min.css +4 -4
- package/framework7.css +11 -19
- package/framework7.js +15 -5
- package/framework7.js.map +1 -1
- package/framework7.less +3 -3
- package/framework7.min.css +4 -4
- package/framework7.min.js +4 -4
- package/framework7.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/list-index/list-index.d.ts +1 -1
- package/types/components/notification/notification.d.ts +4 -4
- package/types/components/popup/popup.d.ts +2 -0
- package/types/components/range/range.d.ts +23 -5
- package/types/components/toast/toast.d.ts +2 -2
package/framework7-bundle.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 6.3.
|
|
2
|
+
* Framework7 6.3.16
|
|
3
3
|
* Full featured mobile HTML framework for building iOS & Android apps
|
|
4
4
|
* https://framework7.io/
|
|
5
5
|
*
|
|
6
|
-
* Copyright 2014-
|
|
6
|
+
* Copyright 2014-2022 Vladimir Kharlampidi
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: February 10, 2022
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/*====================
|
|
@@ -3116,6 +3116,14 @@ html.device-full-viewport body {
|
|
|
3116
3116
|
height: var(--f7-tabbar-icon-size);
|
|
3117
3117
|
line-height: var(--f7-tabbar-icon-size);
|
|
3118
3118
|
}
|
|
3119
|
+
.tabbar .tab-link-highlight,
|
|
3120
|
+
.tabbar-labels .tab-link-highlight {
|
|
3121
|
+
position: absolute;
|
|
3122
|
+
height: 2px;
|
|
3123
|
+
background: var(--f7-tabbar-link-active-border-color, var(--f7-theme-color));
|
|
3124
|
+
transition-duration: 300ms;
|
|
3125
|
+
left: 0;
|
|
3126
|
+
}
|
|
3119
3127
|
.tabbar-labels {
|
|
3120
3128
|
--f7-toolbar-height: var(--f7-tabbar-labels-height);
|
|
3121
3129
|
}
|
|
@@ -3376,14 +3384,6 @@ html.device-full-viewport body {
|
|
|
3376
3384
|
overflow: hidden;
|
|
3377
3385
|
position: relative;
|
|
3378
3386
|
}
|
|
3379
|
-
.md .tabbar .tab-link-highlight,
|
|
3380
|
-
.md .tabbar-labels .tab-link-highlight {
|
|
3381
|
-
position: absolute;
|
|
3382
|
-
height: 2px;
|
|
3383
|
-
background: var(--f7-tabbar-link-active-border-color, var(--f7-theme-color));
|
|
3384
|
-
transition-duration: 300ms;
|
|
3385
|
-
left: 0;
|
|
3386
|
-
}
|
|
3387
3387
|
.md .tabbar-labels .tab-link,
|
|
3388
3388
|
.md .tabbar-labels .link {
|
|
3389
3389
|
padding-top: 7px;
|
|
@@ -3408,14 +3408,6 @@ html.device-full-viewport body {
|
|
|
3408
3408
|
align-items: center;
|
|
3409
3409
|
margin: 0;
|
|
3410
3410
|
}
|
|
3411
|
-
.aurora .tabbar .tab-link-highlight,
|
|
3412
|
-
.aurora .tabbar-labels .tab-link-highlight {
|
|
3413
|
-
position: absolute;
|
|
3414
|
-
height: 2px;
|
|
3415
|
-
background: var(--f7-tabbar-link-active-border-color, var(--f7-theme-color));
|
|
3416
|
-
transition-duration: 300ms;
|
|
3417
|
-
left: 0;
|
|
3418
|
-
}
|
|
3419
3411
|
.aurora .tabbar .toolbar-inner,
|
|
3420
3412
|
.aurora .tabbar-labels .toolbar-inner {
|
|
3421
3413
|
padding-left: 0;
|
|
@@ -6774,6 +6766,7 @@ html.with-modal-dialog .page-content {
|
|
|
6774
6766
|
}
|
|
6775
6767
|
.popup:not(.popup-tablet-fullscreen).popup-behind {
|
|
6776
6768
|
transform: translate3d(0, 0, 0) scale(0.9);
|
|
6769
|
+
pointer-events: none;
|
|
6777
6770
|
}
|
|
6778
6771
|
.popup:not(.popup-tablet-fullscreen).popup-behind.modal-out {
|
|
6779
6772
|
transform: translate3d(0, 100vh, 0) scale(0.9);
|
|
@@ -8535,10 +8528,10 @@ html.with-modal-preloader .page-content,
|
|
|
8535
8528
|
width: 100%;
|
|
8536
8529
|
height: 100%;
|
|
8537
8530
|
position: absolute;
|
|
8538
|
-
left: 0;
|
|
8539
8531
|
top: 0;
|
|
8540
|
-
transform: translate3d(-100%, 0, 0);
|
|
8541
8532
|
transition-duration: 150ms;
|
|
8533
|
+
left: 0;
|
|
8534
|
+
transform: translate3d(-100%, 0, 0);
|
|
8542
8535
|
}
|
|
8543
8536
|
.progressbar-infinite {
|
|
8544
8537
|
z-index: 15000;
|
|
@@ -8547,14 +8540,14 @@ html.with-modal-preloader .page-content,
|
|
|
8547
8540
|
.progressbar-infinite:after {
|
|
8548
8541
|
content: '';
|
|
8549
8542
|
position: absolute;
|
|
8550
|
-
left: 0;
|
|
8551
8543
|
top: 0;
|
|
8552
8544
|
width: 100%;
|
|
8553
8545
|
height: 100%;
|
|
8554
|
-
transform-origin: left center;
|
|
8555
8546
|
transform: translate3d(0, 0, 0);
|
|
8556
8547
|
display: block;
|
|
8557
8548
|
background-color: var(--f7-progressbar-progress-color, var(--f7-theme-color));
|
|
8549
|
+
left: 0;
|
|
8550
|
+
transform-origin: left center;
|
|
8558
8551
|
}
|
|
8559
8552
|
.progressbar-infinite.color-multi {
|
|
8560
8553
|
background: none !important;
|
package/framework7-bundle.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 6.3.
|
|
2
|
+
* Framework7 6.3.16
|
|
3
3
|
* Full featured mobile HTML framework for building iOS & Android apps
|
|
4
4
|
* https://framework7.io/
|
|
5
5
|
*
|
|
6
|
-
* Copyright 2014-
|
|
6
|
+
* Copyright 2014-2022 Vladimir Kharlampidi
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: February 10, 2022
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function (global, factory) {
|
|
@@ -9501,7 +9501,7 @@
|
|
|
9501
9501
|
var $el = $(el);
|
|
9502
9502
|
var app = router.app;
|
|
9503
9503
|
var view = router.view;
|
|
9504
|
-
var options = extend$1({
|
|
9504
|
+
var options = extend$1(false, {
|
|
9505
9505
|
animate: router.params.animate,
|
|
9506
9506
|
browserHistory: true,
|
|
9507
9507
|
replaceState: false
|
|
@@ -10209,6 +10209,16 @@
|
|
|
10209
10209
|
}
|
|
10210
10210
|
|
|
10211
10211
|
var previousPageRoute = $previousPage[0].f7Page.route;
|
|
10212
|
+
|
|
10213
|
+
if (navigateOptions.preload && $previousPage.hasClass('stacked')) {
|
|
10214
|
+
loadBack(router, {
|
|
10215
|
+
el: $previousPage
|
|
10216
|
+
}, extend$1(navigateOptions, {
|
|
10217
|
+
route: previousPageRoute
|
|
10218
|
+
}));
|
|
10219
|
+
return router;
|
|
10220
|
+
}
|
|
10221
|
+
|
|
10212
10222
|
processRouteQueue.call(router, previousPageRoute, router.currentRoute, function () {
|
|
10213
10223
|
loadBack(router, {
|
|
10214
10224
|
el: $previousPage
|
|
@@ -15796,8 +15806,8 @@
|
|
|
15796
15806
|
var Toolbar = {
|
|
15797
15807
|
setHighlight: function setHighlight(tabbarEl) {
|
|
15798
15808
|
var app = this;
|
|
15799
|
-
if (app.theme === 'ios') return;
|
|
15800
15809
|
var $tabbarEl = $(tabbarEl);
|
|
15810
|
+
if (app.theme === 'ios' && !$tabbarEl.hasClass('tabbar-highlight')) return;
|
|
15801
15811
|
if ($tabbarEl.length === 0 || !($tabbarEl.hasClass('tabbar') || $tabbarEl.hasClass('tabbar-labels'))) return;
|
|
15802
15812
|
var $highlightEl = $tabbarEl.find('.tab-link-highlight');
|
|
15803
15813
|
var tabLinksCount = $tabbarEl.find('.tab-link').length;
|
|
@@ -19316,7 +19326,7 @@
|
|
|
19316
19326
|
$progressbarEl.append($progressbarLine);
|
|
19317
19327
|
}
|
|
19318
19328
|
|
|
19319
|
-
$progressbarLine.transition(typeof duration !== 'undefined' ? duration : '').transform("translate3d(" + (-100 + progressNormalized) + "%,0,0)");
|
|
19329
|
+
$progressbarLine.transition(typeof duration !== 'undefined' ? duration : '').transform("translate3d(" + (-100 + progressNormalized) * (app.rtl ? -1 : 1) + "%,0,0)");
|
|
19320
19330
|
return $progressbarEl[0];
|
|
19321
19331
|
},
|
|
19322
19332
|
show: function show() {
|
|
@@ -21816,12 +21826,11 @@
|
|
|
21816
21826
|
if ($tabLinkEl && $tabLinkEl.length > 0) {
|
|
21817
21827
|
$tabLinkEl.addClass('tab-link-active'); // Material Highlight
|
|
21818
21828
|
|
|
21819
|
-
|
|
21820
|
-
|
|
21829
|
+
var $tabbarEl = $tabLinkEl.parents('.tabbar, .tabbar-labels');
|
|
21830
|
+
var hasHighlight = app.toolbar && $tabbarEl.length > 0 && ($tabbarEl.hasClass('tabbar-highlight') || app.theme !== 'ios');
|
|
21821
21831
|
|
|
21822
|
-
|
|
21823
|
-
|
|
21824
|
-
}
|
|
21832
|
+
if (hasHighlight) {
|
|
21833
|
+
app.toolbar.setHighlight($tabbarEl);
|
|
21825
21834
|
}
|
|
21826
21835
|
}
|
|
21827
21836
|
}
|
|
@@ -27496,17 +27505,34 @@
|
|
|
27496
27505
|
allowTouchMove: true,
|
|
27497
27506
|
hasTimePicker: calendar.params.timePicker && !calendar.params.rangePicker && !calendar.params.multiple
|
|
27498
27507
|
});
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
|
|
27502
|
-
|
|
27503
|
-
|
|
27504
|
-
|
|
27505
|
-
|
|
27506
|
-
|
|
27507
|
-
|
|
27508
|
-
|
|
27509
|
-
|
|
27508
|
+
|
|
27509
|
+
calendar.dayFormatter = function (date) {
|
|
27510
|
+
var formatter = new Intl.DateTimeFormat(calendar.params.locale, {
|
|
27511
|
+
day: 'numeric'
|
|
27512
|
+
});
|
|
27513
|
+
return formatter.format(date).replace(/日/, '');
|
|
27514
|
+
};
|
|
27515
|
+
|
|
27516
|
+
calendar.monthFormatter = function (date) {
|
|
27517
|
+
var formatter = new Intl.DateTimeFormat(calendar.params.locale, {
|
|
27518
|
+
month: 'long'
|
|
27519
|
+
});
|
|
27520
|
+
return formatter.format(date);
|
|
27521
|
+
};
|
|
27522
|
+
|
|
27523
|
+
calendar.yearFormatter = function (date) {
|
|
27524
|
+
var formatter = new Intl.DateTimeFormat(calendar.params.locale, {
|
|
27525
|
+
year: 'numeric'
|
|
27526
|
+
});
|
|
27527
|
+
return formatter.format(date);
|
|
27528
|
+
};
|
|
27529
|
+
|
|
27530
|
+
calendar.timeSelectorFormatter = function (date) {
|
|
27531
|
+
var formatter = new Intl.DateTimeFormat(calendar.params.locale, calendar.params.timePickerFormat);
|
|
27532
|
+
return formatter.format(date);
|
|
27533
|
+
};
|
|
27534
|
+
|
|
27535
|
+
var timeFormatCheckDate = calendar.timeSelectorFormatter(new Date()).toLowerCase();
|
|
27510
27536
|
calendar.is12HoursFormat = timeFormatCheckDate.indexOf('pm') >= 0 || timeFormatCheckDate.indexOf('am') >= 0; // Auto names
|
|
27511
27537
|
|
|
27512
27538
|
var _calendar$params = calendar.params,
|
|
@@ -27911,7 +27937,7 @@
|
|
|
27911
27937
|
|
|
27912
27938
|
for (var i = 0; i < 24; i += 1) {
|
|
27913
27939
|
var date = new Date().setMonth(i, 1);
|
|
27914
|
-
var currentYear = calendar.yearFormatter
|
|
27940
|
+
var currentYear = calendar.yearFormatter(date);
|
|
27915
27941
|
|
|
27916
27942
|
if (year && currentYear !== year) {
|
|
27917
27943
|
if (yearStarted) yearEnded = true;
|
|
@@ -28210,7 +28236,7 @@
|
|
|
28210
28236
|
}
|
|
28211
28237
|
|
|
28212
28238
|
if ($el && $el.length > 0 && calendar.hasTimePicker) {
|
|
28213
|
-
$el.find('.calendar-time-selector a').text(value && value.length ? calendar.timeSelectorFormatter
|
|
28239
|
+
$el.find('.calendar-time-selector a').text(value && value.length ? calendar.timeSelectorFormatter(value[0]) : calendar.params.timePickerPlaceholder);
|
|
28214
28240
|
}
|
|
28215
28241
|
|
|
28216
28242
|
if ($inputEl && $inputEl.length || params.header) {
|
|
@@ -28641,9 +28667,9 @@
|
|
|
28641
28667
|
var date = new Date(d);
|
|
28642
28668
|
var year = date.getFullYear();
|
|
28643
28669
|
var month = date.getMonth();
|
|
28644
|
-
var localeMonth = calendar.monthNames.indexOf(calendar.monthFormatter
|
|
28670
|
+
var localeMonth = calendar.monthNames.indexOf(calendar.monthFormatter(date));
|
|
28645
28671
|
if (localeMonth < 0) localeMonth = month;
|
|
28646
|
-
var localeYear = calendar.yearFormatter
|
|
28672
|
+
var localeYear = calendar.yearFormatter(date);
|
|
28647
28673
|
|
|
28648
28674
|
if (offset === 'next') {
|
|
28649
28675
|
if (month === 11) date = new Date(year + 1, 0);else date = new Date(year, month + 1, 1);
|
|
@@ -28656,9 +28682,9 @@
|
|
|
28656
28682
|
if (offset === 'next' || offset === 'prev') {
|
|
28657
28683
|
month = date.getMonth();
|
|
28658
28684
|
year = date.getFullYear();
|
|
28659
|
-
localeMonth = calendar.monthNames.indexOf(calendar.monthFormatter
|
|
28685
|
+
localeMonth = calendar.monthNames.indexOf(calendar.monthFormatter(date));
|
|
28660
28686
|
if (localeMonth < 0) localeMonth = month;
|
|
28661
|
-
localeYear = calendar.yearFormatter
|
|
28687
|
+
localeYear = calendar.yearFormatter(date);
|
|
28662
28688
|
}
|
|
28663
28689
|
|
|
28664
28690
|
var currentValues = [];
|
|
@@ -28803,7 +28829,7 @@
|
|
|
28803
28829
|
dayDate = new Date(dayDate);
|
|
28804
28830
|
var dayYear = dayDate.getFullYear();
|
|
28805
28831
|
var dayMonth = dayDate.getMonth();
|
|
28806
|
-
var dayNumberDisplay = calendar.dayFormatter
|
|
28832
|
+
var dayNumberDisplay = calendar.dayFormatter(dayDate); // prettier-ignore
|
|
28807
28833
|
|
|
28808
28834
|
rowHtml += ("\n <div data-year=\"" + dayYear + "\" data-month=\"" + dayMonth + "\" data-day=\"" + dayNumber + "\" class=\"calendar-day" + addClass + "\" data-date=\"" + dayYear + "-" + dayMonth + "-" + dayNumber + "\">\n <span class=\"calendar-day-number\">" + dayNumberDisplay + eventsHtml + "</span>\n </div>").trim();
|
|
28809
28835
|
};
|
|
@@ -28927,7 +28953,7 @@
|
|
|
28927
28953
|
return $jsx("div", {
|
|
28928
28954
|
"data-year": year,
|
|
28929
28955
|
class: "calendar-year-picker-item " + (year === currentYear ? 'calendar-year-picker-item-current' : '')
|
|
28930
|
-
}, $jsx("span", null, calendar.yearFormatter
|
|
28956
|
+
}, $jsx("span", null, calendar.yearFormatter(new Date().setFullYear(year))));
|
|
28931
28957
|
}));
|
|
28932
28958
|
} // eslint-disable-next-line
|
|
28933
28959
|
;
|
|
@@ -28936,7 +28962,7 @@
|
|
|
28936
28962
|
var calendar = this;
|
|
28937
28963
|
var value = calendar.value && calendar.value[0];
|
|
28938
28964
|
var timeString;
|
|
28939
|
-
if (value) timeString = calendar.timeSelectorFormatter
|
|
28965
|
+
if (value) timeString = calendar.timeSelectorFormatter(value);
|
|
28940
28966
|
return $jsx("div", {
|
|
28941
28967
|
class: "calendar-time-selector"
|
|
28942
28968
|
}, $jsx("a", {
|