framework7 6.3.10 → 6.3.15
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/sortable/sortable.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/components/calendar/calendar.js +1 -1
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup.css +1 -1
- 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/sortable/sortable.d.ts +2 -0
- package/components/sortable/sortable.js +1 -1
- package/components/tabs/tabs.js +1 -1
- 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/sortable/sortable.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/framework7-bundle-rtl.css +31 -39
- package/framework7-bundle-rtl.min.css +4 -4
- package/framework7-bundle.css +16 -23
- package/framework7-bundle.js +47 -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 +4 -4
- 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/range/range.d.ts +23 -5
- package/types/components/sortable/sortable.d.ts +2 -0
package/framework7-bundle.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 6.3.
|
|
2
|
+
* Framework7 6.3.15
|
|
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: January 19, 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.15
|
|
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: January 19, 2022
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function (global, factory) {
|
|
@@ -15796,8 +15796,8 @@
|
|
|
15796
15796
|
var Toolbar = {
|
|
15797
15797
|
setHighlight: function setHighlight(tabbarEl) {
|
|
15798
15798
|
var app = this;
|
|
15799
|
-
if (app.theme === 'ios') return;
|
|
15800
15799
|
var $tabbarEl = $(tabbarEl);
|
|
15800
|
+
if (app.theme === 'ios' && !$tabbarEl.hasClass('tabbar-highlight')) return;
|
|
15801
15801
|
if ($tabbarEl.length === 0 || !($tabbarEl.hasClass('tabbar') || $tabbarEl.hasClass('tabbar-labels'))) return;
|
|
15802
15802
|
var $highlightEl = $tabbarEl.find('.tab-link-highlight');
|
|
15803
15803
|
var tabLinksCount = $tabbarEl.find('.tab-link').length;
|
|
@@ -19316,7 +19316,7 @@
|
|
|
19316
19316
|
$progressbarEl.append($progressbarLine);
|
|
19317
19317
|
}
|
|
19318
19318
|
|
|
19319
|
-
$progressbarLine.transition(typeof duration !== 'undefined' ? duration : '').transform("translate3d(" + (-100 + progressNormalized) + "%,0,0)");
|
|
19319
|
+
$progressbarLine.transition(typeof duration !== 'undefined' ? duration : '').transform("translate3d(" + (-100 + progressNormalized) * (app.rtl ? -1 : 1) + "%,0,0)");
|
|
19320
19320
|
return $progressbarEl[0];
|
|
19321
19321
|
},
|
|
19322
19322
|
show: function show() {
|
|
@@ -19584,7 +19584,7 @@
|
|
|
19584
19584
|
|
|
19585
19585
|
if (prevTranslate !== currentTranslate) {
|
|
19586
19586
|
$currentEl.trigger('sortable:move');
|
|
19587
|
-
app.emit('sortableMove', $
|
|
19587
|
+
app.emit('sortableMove', $currentEl[0], $sortableContainer[0]);
|
|
19588
19588
|
}
|
|
19589
19589
|
|
|
19590
19590
|
$currentEl[0].f7Translate = currentTranslate;
|
|
@@ -21816,12 +21816,11 @@
|
|
|
21816
21816
|
if ($tabLinkEl && $tabLinkEl.length > 0) {
|
|
21817
21817
|
$tabLinkEl.addClass('tab-link-active'); // Material Highlight
|
|
21818
21818
|
|
|
21819
|
-
|
|
21820
|
-
|
|
21819
|
+
var $tabbarEl = $tabLinkEl.parents('.tabbar, .tabbar-labels');
|
|
21820
|
+
var hasHighlight = app.toolbar && $tabbarEl.length > 0 && ($tabbarEl.hasClass('tabbar-highlight') || app.theme !== 'ios');
|
|
21821
21821
|
|
|
21822
|
-
|
|
21823
|
-
|
|
21824
|
-
}
|
|
21822
|
+
if (hasHighlight) {
|
|
21823
|
+
app.toolbar.setHighlight($tabbarEl);
|
|
21825
21824
|
}
|
|
21826
21825
|
}
|
|
21827
21826
|
}
|
|
@@ -27496,17 +27495,34 @@
|
|
|
27496
27495
|
allowTouchMove: true,
|
|
27497
27496
|
hasTimePicker: calendar.params.timePicker && !calendar.params.rangePicker && !calendar.params.multiple
|
|
27498
27497
|
});
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
|
|
27502
|
-
|
|
27503
|
-
|
|
27504
|
-
|
|
27505
|
-
|
|
27506
|
-
|
|
27507
|
-
|
|
27508
|
-
|
|
27509
|
-
|
|
27498
|
+
|
|
27499
|
+
calendar.dayFormatter = function (date) {
|
|
27500
|
+
var formatter = new Intl.DateTimeFormat(calendar.params.locale, {
|
|
27501
|
+
day: 'numeric'
|
|
27502
|
+
});
|
|
27503
|
+
return formatter.format(date).replace(/日/, '');
|
|
27504
|
+
};
|
|
27505
|
+
|
|
27506
|
+
calendar.monthFormatter = function (date) {
|
|
27507
|
+
var formatter = new Intl.DateTimeFormat(calendar.params.locale, {
|
|
27508
|
+
month: 'long'
|
|
27509
|
+
});
|
|
27510
|
+
return formatter.format(date);
|
|
27511
|
+
};
|
|
27512
|
+
|
|
27513
|
+
calendar.yearFormatter = function (date) {
|
|
27514
|
+
var formatter = new Intl.DateTimeFormat(calendar.params.locale, {
|
|
27515
|
+
year: 'numeric'
|
|
27516
|
+
});
|
|
27517
|
+
return formatter.format(date);
|
|
27518
|
+
};
|
|
27519
|
+
|
|
27520
|
+
calendar.timeSelectorFormatter = function (date) {
|
|
27521
|
+
var formatter = new Intl.DateTimeFormat(calendar.params.locale, calendar.params.timePickerFormat);
|
|
27522
|
+
return formatter.format(date);
|
|
27523
|
+
};
|
|
27524
|
+
|
|
27525
|
+
var timeFormatCheckDate = calendar.timeSelectorFormatter(new Date()).toLowerCase();
|
|
27510
27526
|
calendar.is12HoursFormat = timeFormatCheckDate.indexOf('pm') >= 0 || timeFormatCheckDate.indexOf('am') >= 0; // Auto names
|
|
27511
27527
|
|
|
27512
27528
|
var _calendar$params = calendar.params,
|
|
@@ -27911,7 +27927,7 @@
|
|
|
27911
27927
|
|
|
27912
27928
|
for (var i = 0; i < 24; i += 1) {
|
|
27913
27929
|
var date = new Date().setMonth(i, 1);
|
|
27914
|
-
var currentYear = calendar.yearFormatter
|
|
27930
|
+
var currentYear = calendar.yearFormatter(date);
|
|
27915
27931
|
|
|
27916
27932
|
if (year && currentYear !== year) {
|
|
27917
27933
|
if (yearStarted) yearEnded = true;
|
|
@@ -28210,7 +28226,7 @@
|
|
|
28210
28226
|
}
|
|
28211
28227
|
|
|
28212
28228
|
if ($el && $el.length > 0 && calendar.hasTimePicker) {
|
|
28213
|
-
$el.find('.calendar-time-selector a').text(value && value.length ? calendar.timeSelectorFormatter
|
|
28229
|
+
$el.find('.calendar-time-selector a').text(value && value.length ? calendar.timeSelectorFormatter(value[0]) : calendar.params.timePickerPlaceholder);
|
|
28214
28230
|
}
|
|
28215
28231
|
|
|
28216
28232
|
if ($inputEl && $inputEl.length || params.header) {
|
|
@@ -28641,9 +28657,9 @@
|
|
|
28641
28657
|
var date = new Date(d);
|
|
28642
28658
|
var year = date.getFullYear();
|
|
28643
28659
|
var month = date.getMonth();
|
|
28644
|
-
var localeMonth = calendar.monthNames.indexOf(calendar.monthFormatter
|
|
28660
|
+
var localeMonth = calendar.monthNames.indexOf(calendar.monthFormatter(date));
|
|
28645
28661
|
if (localeMonth < 0) localeMonth = month;
|
|
28646
|
-
var localeYear = calendar.yearFormatter
|
|
28662
|
+
var localeYear = calendar.yearFormatter(date);
|
|
28647
28663
|
|
|
28648
28664
|
if (offset === 'next') {
|
|
28649
28665
|
if (month === 11) date = new Date(year + 1, 0);else date = new Date(year, month + 1, 1);
|
|
@@ -28656,9 +28672,9 @@
|
|
|
28656
28672
|
if (offset === 'next' || offset === 'prev') {
|
|
28657
28673
|
month = date.getMonth();
|
|
28658
28674
|
year = date.getFullYear();
|
|
28659
|
-
localeMonth = calendar.monthNames.indexOf(calendar.monthFormatter
|
|
28675
|
+
localeMonth = calendar.monthNames.indexOf(calendar.monthFormatter(date));
|
|
28660
28676
|
if (localeMonth < 0) localeMonth = month;
|
|
28661
|
-
localeYear = calendar.yearFormatter
|
|
28677
|
+
localeYear = calendar.yearFormatter(date);
|
|
28662
28678
|
}
|
|
28663
28679
|
|
|
28664
28680
|
var currentValues = [];
|
|
@@ -28803,7 +28819,7 @@
|
|
|
28803
28819
|
dayDate = new Date(dayDate);
|
|
28804
28820
|
var dayYear = dayDate.getFullYear();
|
|
28805
28821
|
var dayMonth = dayDate.getMonth();
|
|
28806
|
-
var dayNumberDisplay = calendar.dayFormatter
|
|
28822
|
+
var dayNumberDisplay = calendar.dayFormatter(dayDate); // prettier-ignore
|
|
28807
28823
|
|
|
28808
28824
|
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
28825
|
};
|
|
@@ -28927,7 +28943,7 @@
|
|
|
28927
28943
|
return $jsx("div", {
|
|
28928
28944
|
"data-year": year,
|
|
28929
28945
|
class: "calendar-year-picker-item " + (year === currentYear ? 'calendar-year-picker-item-current' : '')
|
|
28930
|
-
}, $jsx("span", null, calendar.yearFormatter
|
|
28946
|
+
}, $jsx("span", null, calendar.yearFormatter(new Date().setFullYear(year))));
|
|
28931
28947
|
}));
|
|
28932
28948
|
} // eslint-disable-next-line
|
|
28933
28949
|
;
|
|
@@ -28936,7 +28952,7 @@
|
|
|
28936
28952
|
var calendar = this;
|
|
28937
28953
|
var value = calendar.value && calendar.value[0];
|
|
28938
28954
|
var timeString;
|
|
28939
|
-
if (value) timeString = calendar.timeSelectorFormatter
|
|
28955
|
+
if (value) timeString = calendar.timeSelectorFormatter(value);
|
|
28940
28956
|
return $jsx("div", {
|
|
28941
28957
|
class: "calendar-time-selector"
|
|
28942
28958
|
}, $jsx("a", {
|