Skip to content

Commit 440649b

Browse files
committed
5.3.0 release
1 parent dfccf3c commit 440649b

File tree

77 files changed

+712
-306
lines changed

Some content is hidden

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

77 files changed

+712
-306
lines changed

CHANGELOG.md

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

33
# Change Log
44

5+
# [v5.3.0](https://github.com/framework7io/framework7/compare/v5.2.0...v5.3.0) - January 3, 2019
6+
* Core
7+
* Card
8+
* Increased default `z-index` for expandable card
9+
* Dialog
10+
* Added support for `backdrop` parameter to be able to disable backdrop
11+
* Sheet
12+
* New `sheet.setSwipeSet()` method to update swipe step position if content was modified manually
13+
* Tooltip
14+
* New `offset` parameter to add extra offset to tooltip position
15+
* Touch
16+
* New `touch.activeStateOnMouseMove` boolean app parameter. If enabled it will not remove "active state" from clicked elements on mouse move
17+
* Router Component
18+
* Fixed issue with parsing CSS media queries in scoped styles
19+
* Now it is possible to use whole app layout as a component
20+
* Main app component can be specified in app `component` or `componentUrl` parameter
21+
* `app.rootComponent` now refers to main app component instance
22+
* If main app component is used, then `$root` in components refers to main app component instance
23+
* Minor fixes
24+
525
# [v5.2.0](https://github.com/framework7io/framework7/compare/v5.1.3...v5.2.0) - December 8, 2019
626
* Core
727
* Accordion

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint indent: ["off"] */
22
import $ from 'dom7';
3+
import { window, document } from 'ssr-window';
34
import Utils from '../../utils/utils';
45
import Modal from '../modal/modal-class';
56

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class Framework7 extends Framework7Class {
3838
autoDarkTheme: false,
3939
iosTranslucentBars: true,
4040
iosTranslucentModals: true,
41+
component: undefined,
42+
componentUrl: undefined,
4143
};
4244

4345
// Extend defaults with modules params
@@ -108,7 +110,7 @@ class Framework7 extends Framework7Class {
108110
}
109111
};
110112
// Init
111-
if (app.params.init) {
113+
function init() {
112114
if (Device.cordova && app.params.initOnDeviceReady) {
113115
$(document).on('deviceready', () => {
114116
app.init();
@@ -117,6 +119,22 @@ class Framework7 extends Framework7Class {
117119
app.init();
118120
}
119121
}
122+
if (app.params.component || app.params.componentUrl) {
123+
app.router.componentLoader(
124+
app.params.component,
125+
app.params.componentUrl,
126+
{ componentOptions: { el: app.root[0] } },
127+
(el) => {
128+
app.root = $(el);
129+
app.root[0].f7 = app;
130+
app.rootComponent = el.f7Component;
131+
if (app.params.init) init();
132+
}
133+
);
134+
} else if (app.params.init) {
135+
init();
136+
}
137+
120138
// Return app instance
121139
return app;
122140
}

packages/core/components/app/load-module.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import $ from 'dom7';
2+
import { window, document } from 'ssr-window';
23
import Utils from '../../utils/utils';
34

45
const fetchedModules = [];

0 commit comments

Comments
 (0)