Skip to content

Commit e11ae3a

Browse files
committed
5.7.5 release
1 parent ff493ee commit e11ae3a

File tree

102 files changed

+1670
-538
lines changed

Some content is hidden

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

102 files changed

+1670
-538
lines changed

CHANGELOG.md

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

33
# Change Log
44

5+
# [v5.7.5](https://github.com/framework7io/framework7/compare/v5.7.2...v5.7.5) - May 16, 2020
6+
* Core
7+
* Input
8+
* Now `app.input.validate()` and `app.input.validateInputs()` should correctly work with readonly inputs (like in Calendar, Picker, Color Picker, etc.)
9+
* Range
10+
* Added support for `scaleSteps: 1`
11+
* Fixed issue when it didn't update size in parent resizable panel
12+
* Swiper updated to latest 5.4.0
13+
* Hash Navigation
14+
* Added `hashChange` and `hashSet` events (#3557)
15+
* Lazy
16+
* Added support for `<picture>` lazy loading (#3560)
17+
* Mousewheel
18+
* Potentially improved vertical scrolling issues on Windows/Linux
19+
* `History` and `Hash Navigation` modules are now included in Framework7 version of Swiper
20+
* Toast
21+
* Added `horizontalPosition` parameter - to set horizontal alignment on wide screen
22+
* Touch
23+
* Tweaked touch events detection
24+
* React/Vue/Svelte
25+
* Fab
26+
* Fixed issue when it rendered not correctly without icon
27+
* Chip
28+
* Now it has default slot which goes to text label
29+
530
# [v5.7.2](https://github.com/framework7io/framework7/compare/v5.7.1...v5.7.2) - May 9, 2020
631
* Core
732
* Autocomplete

packages/core/components/calendar.css

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.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.rtl.css

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: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,19 @@ class Calendar extends Framework7Class {
9696
calendar.$inputEl.on('input:clear', onInputClear);
9797
if (calendar.params.inputReadOnly) {
9898
calendar.$inputEl.on('focus mousedown', onInputFocus);
99+
if (calendar.$inputEl[0]) {
100+
calendar.$inputEl[0].f7ValidateReadonly = true;
101+
}
99102
}
100103
},
101104
detachInputEvents() {
102105
calendar.$inputEl.off('click', onInputClick);
103106
calendar.$inputEl.off('input:clear', onInputClear);
104107
if (calendar.params.inputReadOnly) {
105108
calendar.$inputEl.off('focus mousedown', onInputFocus);
109+
if (calendar.$inputEl[0]) {
110+
delete calendar.$inputEl[0].f7ValidateReadonly;
111+
}
106112
}
107113
},
108114
attachHtmlEvents() {
@@ -1613,8 +1619,16 @@ class Calendar extends Framework7Class {
16131619
calendar.opening = false;
16141620
calendar.closing = true;
16151621

1616-
if (calendar.$inputEl && app.theme === 'md') {
1617-
calendar.$inputEl.trigger('blur');
1622+
if (calendar.$inputEl) {
1623+
if (app.theme === 'md') {
1624+
calendar.$inputEl.trigger('blur');
1625+
} else {
1626+
const validate = calendar.$inputEl.attr('validate');
1627+
const required = calendar.$inputEl.attr('required');
1628+
if (validate && required) {
1629+
app.input.validate(calendar.$inputEl);
1630+
}
1631+
}
16181632
}
16191633
if (calendar.detachCalendarEvents) {
16201634
calendar.detachCalendarEvents();

packages/core/components/calendar/calendar.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464
position: relative;
6565
z-index: 1;
6666
}
67+
.calendar-month-picker,
68+
.calendar-year-picker,
69+
.calendar-time-picker {
70+
border-radius: var(--f7-popover-border-radius);
71+
}
6772
}
6873
.calendar-header {
6974
width: 100%;

packages/core/components/color-picker.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/color-picker/color-picker-class.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,18 @@ class ColorPicker extends Framework7Class {
9999
self.$inputEl.on('click', onInputClick);
100100
if (self.params.inputReadOnly) {
101101
self.$inputEl.on('focus mousedown', onInputFocus);
102+
if (self.$inputEl[0]) {
103+
self.$inputEl[0].f7ValidateReadonly = true;
104+
}
102105
}
103106
},
104107
detachInputEvents() {
105108
self.$inputEl.off('click', onInputClick);
106109
if (self.params.inputReadOnly) {
107110
self.$inputEl.off('focus mousedown', onInputFocus);
111+
if (self.$inputEl[0]) {
112+
delete self.$inputEl[0].f7ValidateReadonly;
113+
}
108114
}
109115
},
110116
attachTargetEvents() {
@@ -626,8 +632,16 @@ class ColorPicker extends Framework7Class {
626632
// Detach events
627633
self.detachEvents();
628634

629-
if (self.$inputEl && app.theme === 'md') {
630-
self.$inputEl.trigger('blur');
635+
if (self.$inputEl) {
636+
if (app.theme === 'md') {
637+
self.$inputEl.trigger('blur');
638+
} else {
639+
const validate = self.$inputEl.attr('validate');
640+
const required = self.$inputEl.attr('required');
641+
if (validate && required) {
642+
app.input.validate(self.$inputEl);
643+
}
644+
}
631645
}
632646
params.modules.forEach((m) => {
633647
if (typeof m === 'string' && modules[m] && modules[m].destroy) {

0 commit comments

Comments
 (0)