Skip to content

Commit ff7999b

Browse files
committed
5.1.1 release
1 parent 9bdc59d commit ff7999b

File tree

225 files changed

+26117
-30490
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+26117
-30490
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
# Change Log
44

5+
# [v5.1.1](https://github.com/framework7io/framework7/compare/v5.1.0...v5.1.1) - November 3, 2019
6+
* Core
7+
* Calendar
8+
* Fixed `d`, `m`, `D`, `M` tokens parsing in custom date format
9+
* Photo Browser
10+
* Fixed issue when opening PhotoBrowser on not first slide can cause empty text in its Navbar
11+
* Router Component
12+
* New syntax to use custom components in strict HTML layout using `component` attribute, e.g. `<tr component="my-table-row"></tr>` instead of `<my-table-row></my-table-row>`
13+
* Minor fixes
14+
515
# [v5.1.0](https://github.com/framework7io/framework7/compare/v5.0.5...v5.1.0) - October 27, 2019
616
* Core
717
* Grid

packages/core/components/calendar.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/components/calendar/calendar-class.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,16 @@ class Calendar extends Framework7Class {
499499
.replace(/yy/g, String(year).substring(2))
500500
.replace(/mm/g, month1 < 10 ? `0${month1}` : month1)
501501
.replace(/m(\W+)/g, `${month1}$1`)
502+
.replace(/(\W+)m/g, `$1${month1}`)
502503
.replace(/MM/g, monthNames[month])
503504
.replace(/M(\W+)/g, `${monthNamesShort[month]}$1`)
505+
.replace(/(\W+)M/g, `$1${monthNamesShort[month]}`)
504506
.replace(/dd/g, day < 10 ? `0${day}` : day)
505507
.replace(/d(\W+)/g, `${day}$1`)
508+
.replace(/(\W+)d/g, `$1${day}`)
506509
.replace(/DD/g, dayNames[weekDay])
507-
.replace(/D(\W+)/g, `${dayNamesShort[weekDay]}$1`);
510+
.replace(/D(\W+)/g, `${dayNamesShort[weekDay]}$1`)
511+
.replace(/(\W+)D/g, `$1${dayNamesShort[weekDay]}`);
508512
}
509513
if (typeof dateFormat === 'function') {
510514
return dateFormat(date);

packages/core/components/photo-browser.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/components/photo-browser/photo-browser-class.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,6 @@ class PhotoBrowser extends Framework7Class {
372372
pb.emit('local::doubleClick', e);
373373
},
374374
slideChange(...args) {
375-
const swiper = this;
376-
pb.onSlideChange(swiper);
377375
pb.emit('local::slideChange', ...args);
378376
},
379377
transitionStart(...args) {
@@ -383,6 +381,8 @@ class PhotoBrowser extends Framework7Class {
383381
pb.emit('local::transitionEnd', ...args);
384382
},
385383
slideChangeTransitionStart(...args) {
384+
const swiper = this;
385+
pb.onSlideChange(swiper);
386386
pb.emit('local::slideChangeTransitionStart', ...args);
387387
},
388388
slideChangeTransitionEnd(...args) {

packages/core/css/framework7.bundle.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
2-
* Framework7 5.1.0
2+
* Framework7 5.1.1
33
* Full featured mobile HTML framework for building iOS & Android apps
44
* http://framework7.io/
55
*
66
* Copyright 2014-2019 Vladimir Kharlampidi
77
*
88
* Released under the MIT License
99
*
10-
* Released on: October 27, 2019
10+
* Released on: November 3, 2019
1111
*/
1212

1313
/*====================

packages/core/css/framework7.bundle.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/css/framework7.bundle.rtl.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
2-
* Framework7 5.1.0
2+
* Framework7 5.1.1
33
* Full featured mobile HTML framework for building iOS & Android apps
44
* http://framework7.io/
55
*
66
* Copyright 2014-2019 Vladimir Kharlampidi
77
*
88
* Released under the MIT License
99
*
10-
* Released on: October 27, 2019
10+
* Released on: November 3, 2019
1111
*/
1212

1313
/*====================

packages/core/css/framework7.bundle.rtl.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/css/framework7.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
2-
* Framework7 5.1.0
2+
* Framework7 5.1.1
33
* Full featured mobile HTML framework for building iOS & Android apps
44
* http://framework7.io/
55
*
66
* Copyright 2014-2019 Vladimir Kharlampidi
77
*
88
* Released under the MIT License
99
*
10-
* Released on: October 27, 2019
10+
* Released on: November 3, 2019
1111
*/
1212

1313
/*====================

0 commit comments

Comments
 (0)