framework7 7.0.0-beta.2 → 7.0.0-beta.3
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/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions.css +1 -1
- package/components/app/app-class.d.ts +10 -10
- package/components/app/app-class.js +17 -17
- package/components/app/app.less +3 -3
- package/components/area-chart/area-chart-rtl.css +1 -1
- package/components/area-chart/area-chart.css +1 -1
- package/components/autocomplete/autocomplete-rtl.css +1 -1
- package/components/autocomplete/autocomplete.css +1 -1
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar.css +1 -1
- package/components/card/card-rtl.css +1 -1
- package/components/card/card.css +1 -1
- package/components/checkbox/checkbox-rtl.css +1 -1
- package/components/checkbox/checkbox.css +1 -1
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip.css +1 -1
- package/components/color-picker/color-picker-rtl.css +1 -1
- package/components/color-picker/color-picker.css +1 -1
- package/components/contacts-list/contacts-list-rtl.css +1 -1
- package/components/contacts-list/contacts-list.css +1 -1
- package/components/data-table/data-table-rtl.css +1 -1
- package/components/data-table/data-table.css +1 -1
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog.css +1 -1
- package/components/grid/grid-rtl.css +1 -1
- package/components/grid/grid.css +1 -1
- package/components/input/input-rtl.css +1 -1
- package/components/input/input.css +1 -1
- package/components/input/input.less +1 -1
- package/components/login-screen/login-screen-rtl.css +1 -1
- package/components/login-screen/login-screen.css +1 -1
- package/components/login-screen/login-screen.less +1 -1
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar.css +1 -1
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages.css +1 -1
- package/components/notification/notification-aurora.less +1 -1
- package/components/notification/notification-ios.less +1 -1
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification.css +1 -1
- package/components/page/page-vars.less +1 -1
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker.css +1 -1
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover.css +1 -1
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.less +21 -21
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar.css +1 -1
- package/components/radio/radio-rtl.css +1 -1
- package/components/radio/radio.css +1 -1
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar.css +1 -1
- package/components/searchbar/searchbar.less +1 -1
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet.css +1 -1
- package/components/sheet/sheet.less +16 -16
- package/components/skeleton/skeleton-rtl.css +1 -1
- package/components/skeleton/skeleton-vars.less +1 -1
- package/components/skeleton/skeleton.css +1 -1
- package/components/sortable/sortable-rtl.css +1 -1
- package/components/sortable/sortable.css +1 -1
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout.css +1 -1
- package/components/text-editor/text-editor-class.js +1 -1
- package/components/text-editor/text-editor-rtl.css +1 -1
- package/components/text-editor/text-editor.css +1 -1
- package/components/text-editor/text-editor.umd.js +1 -1
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline.css +1 -1
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle.css +1 -1
- package/components/touch-ripple/touch-ripple-vars.less +1 -1
- package/components/treeview/treeview-rtl.css +1 -1
- package/components/treeview/treeview.css +1 -1
- package/framework7-bundle-rtl.css +263 -263
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +263 -263
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +67 -67
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +3 -3
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +2 -2
- package/framework7-lite.esm.js +2 -2
- package/framework7-rtl.css +51 -51
- package/framework7-rtl.min.css +3 -3
- package/framework7.css +51 -51
- package/framework7.esm.js +2 -2
- package/framework7.js +66 -66
- package/framework7.js.map +1 -1
- package/framework7.less +2 -2
- package/framework7.min.css +3 -3
- package/framework7.min.js +3 -3
- package/framework7.min.js.map +1 -1
- package/less/mixins.less +2 -2
- package/modules/router/component-loader.js +46 -0
- package/modules/router/navigate.js +1 -47
- package/package.json +1 -1
package/framework7-bundle.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 7.0.0-beta.
|
|
2
|
+
* Framework7 7.0.0-beta.3
|
|
3
3
|
* Full featured mobile HTML framework for building iOS & Android apps
|
|
4
4
|
* https://framework7.io/
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on: October
|
|
10
|
+
* Released on: October 5, 2021
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import $ from './shared/dom7';
|
package/framework7-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 7.0.0-beta.
|
|
2
|
+
* Framework7 7.0.0-beta.3
|
|
3
3
|
* Full featured mobile HTML framework for building iOS & Android apps
|
|
4
4
|
* https://framework7.io/
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on: October
|
|
10
|
+
* Released on: October 5, 2021
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function (global, factory) {
|
|
@@ -2897,7 +2897,7 @@
|
|
|
2897
2897
|
lazyModulesPath: null,
|
|
2898
2898
|
initOnDeviceReady: true,
|
|
2899
2899
|
init: true,
|
|
2900
|
-
|
|
2900
|
+
autoDarkMode: false,
|
|
2901
2901
|
iosTranslucentBars: true,
|
|
2902
2902
|
iosTranslucentModals: true,
|
|
2903
2903
|
component: undefined,
|
|
@@ -2993,13 +2993,13 @@
|
|
|
2993
2993
|
const html = document.querySelector('html');
|
|
2994
2994
|
|
|
2995
2995
|
if (media === DARK) {
|
|
2996
|
-
html.classList.add('
|
|
2997
|
-
app.
|
|
2998
|
-
app.emit('
|
|
2996
|
+
html.classList.add('dark');
|
|
2997
|
+
app.darkMode = true;
|
|
2998
|
+
app.emit('darkModeChange', true);
|
|
2999
2999
|
} else if (media === LIGHT) {
|
|
3000
|
-
html.classList.remove('
|
|
3001
|
-
app.
|
|
3002
|
-
app.emit('
|
|
3000
|
+
html.classList.remove('dark');
|
|
3001
|
+
app.darkMode = false;
|
|
3002
|
+
app.emit('darkModeChange', false);
|
|
3003
3003
|
}
|
|
3004
3004
|
};
|
|
3005
3005
|
|
|
@@ -3016,7 +3016,7 @@
|
|
|
3016
3016
|
}
|
|
3017
3017
|
}
|
|
3018
3018
|
|
|
3019
|
-
|
|
3019
|
+
enableAutoDarkMode() {
|
|
3020
3020
|
const window = getWindow();
|
|
3021
3021
|
const document = getDocument();
|
|
3022
3022
|
if (!window.matchMedia) return;
|
|
@@ -3029,17 +3029,17 @@
|
|
|
3029
3029
|
}
|
|
3030
3030
|
|
|
3031
3031
|
if (app.mq.dark && app.mq.dark.matches) {
|
|
3032
|
-
html.classList.add('
|
|
3033
|
-
app.
|
|
3034
|
-
app.emit('
|
|
3032
|
+
html.classList.add('dark');
|
|
3033
|
+
app.darkMode = true;
|
|
3034
|
+
app.emit('darkModeChange', true);
|
|
3035
3035
|
} else if (app.mq.light && app.mq.light.matches) {
|
|
3036
|
-
html.classList.remove('
|
|
3037
|
-
app.
|
|
3038
|
-
app.emit('
|
|
3036
|
+
html.classList.remove('dark');
|
|
3037
|
+
app.darkMode = false;
|
|
3038
|
+
app.emit('darkModeChange', false);
|
|
3039
3039
|
}
|
|
3040
3040
|
}
|
|
3041
3041
|
|
|
3042
|
-
|
|
3042
|
+
disableAutoDarkMode() {
|
|
3043
3043
|
const window = getWindow();
|
|
3044
3044
|
if (!window.matchMedia) return;
|
|
3045
3045
|
const app = this;
|
|
@@ -3075,8 +3075,8 @@
|
|
|
3075
3075
|
} // Auto Dark Theme
|
|
3076
3076
|
|
|
3077
3077
|
|
|
3078
|
-
if (app.params.
|
|
3079
|
-
app.
|
|
3078
|
+
if (app.params.autoDarkMode) {
|
|
3079
|
+
app.enableAutoDarkMode();
|
|
3080
3080
|
} // Watch for online/offline state
|
|
3081
3081
|
|
|
3082
3082
|
|
|
@@ -6631,52 +6631,6 @@
|
|
|
6631
6631
|
return router;
|
|
6632
6632
|
}
|
|
6633
6633
|
|
|
6634
|
-
function openIn(router, url, options) {
|
|
6635
|
-
const navigateOptions = {
|
|
6636
|
-
url,
|
|
6637
|
-
route: {
|
|
6638
|
-
path: url,
|
|
6639
|
-
options: { ...options,
|
|
6640
|
-
openIn: undefined
|
|
6641
|
-
}
|
|
6642
|
-
}
|
|
6643
|
-
};
|
|
6644
|
-
const params = { ...options
|
|
6645
|
-
};
|
|
6646
|
-
|
|
6647
|
-
if (options.openIn === 'popup') {
|
|
6648
|
-
params.content = `<div class="popup popup-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
6649
|
-
navigateOptions.route.popup = params;
|
|
6650
|
-
}
|
|
6651
|
-
|
|
6652
|
-
if (options.openIn === 'loginScreen') {
|
|
6653
|
-
params.content = `<div class="login-screen login-screen-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
6654
|
-
navigateOptions.route.loginScreen = params;
|
|
6655
|
-
}
|
|
6656
|
-
|
|
6657
|
-
if (options.openIn === 'sheet') {
|
|
6658
|
-
params.content = `<div class="sheet-modal sheet-modal-router-open-in" data-url="${url}"><div class="sheet-modal-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
|
|
6659
|
-
navigateOptions.route.sheet = params;
|
|
6660
|
-
}
|
|
6661
|
-
|
|
6662
|
-
if (options.openIn === 'popover') {
|
|
6663
|
-
params.targetEl = options.clickedEl || options.targetEl;
|
|
6664
|
-
params.content = `<div class="popover popover-router-open-in" data-url="${url}"><div class="popover-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
|
|
6665
|
-
navigateOptions.route.popover = params;
|
|
6666
|
-
}
|
|
6667
|
-
|
|
6668
|
-
if (options.openIn.indexOf('panel') >= 0) {
|
|
6669
|
-
const parts = options.openIn.split(':');
|
|
6670
|
-
const side = parts[1] || 'left';
|
|
6671
|
-
const effect = parts[2] || 'cover';
|
|
6672
|
-
params.targetEl = options.clickedEl || options.targetEl;
|
|
6673
|
-
params.content = `<div class="panel panel-router-open-in panel-${side} panel-${effect}" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
6674
|
-
navigateOptions.route.panel = params;
|
|
6675
|
-
}
|
|
6676
|
-
|
|
6677
|
-
return router.navigate(navigateOptions);
|
|
6678
|
-
}
|
|
6679
|
-
|
|
6680
6634
|
function navigate(navigateParams, navigateOptions = {}) {
|
|
6681
6635
|
const router = this;
|
|
6682
6636
|
if (router.swipeBackActive) return router;
|
|
@@ -6766,7 +6720,7 @@
|
|
|
6766
6720
|
}
|
|
6767
6721
|
|
|
6768
6722
|
if (options.openIn && (!router.params.ignoreOpenIn || router.params.ignoreOpenIn && router.history.length > 0)) {
|
|
6769
|
-
return openIn(router, navigateUrl, options);
|
|
6723
|
+
return router.openIn(router, navigateUrl, options);
|
|
6770
6724
|
}
|
|
6771
6725
|
|
|
6772
6726
|
options.route = route;
|
|
@@ -10240,6 +10194,52 @@
|
|
|
10240
10194
|
var RouterComponentLoaderModule = {
|
|
10241
10195
|
name: 'routerComponentLoader',
|
|
10242
10196
|
proto: {
|
|
10197
|
+
openIn(router, url, options) {
|
|
10198
|
+
const navigateOptions = {
|
|
10199
|
+
url,
|
|
10200
|
+
route: {
|
|
10201
|
+
path: url,
|
|
10202
|
+
options: { ...options,
|
|
10203
|
+
openIn: undefined
|
|
10204
|
+
}
|
|
10205
|
+
}
|
|
10206
|
+
};
|
|
10207
|
+
const params = { ...options
|
|
10208
|
+
};
|
|
10209
|
+
|
|
10210
|
+
if (options.openIn === 'popup') {
|
|
10211
|
+
params.content = `<div class="popup popup-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
10212
|
+
navigateOptions.route.popup = params;
|
|
10213
|
+
}
|
|
10214
|
+
|
|
10215
|
+
if (options.openIn === 'loginScreen') {
|
|
10216
|
+
params.content = `<div class="login-screen login-screen-router-open-in" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
10217
|
+
navigateOptions.route.loginScreen = params;
|
|
10218
|
+
}
|
|
10219
|
+
|
|
10220
|
+
if (options.openIn === 'sheet') {
|
|
10221
|
+
params.content = `<div class="sheet-modal sheet-modal-router-open-in" data-url="${url}"><div class="sheet-modal-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
|
|
10222
|
+
navigateOptions.route.sheet = params;
|
|
10223
|
+
}
|
|
10224
|
+
|
|
10225
|
+
if (options.openIn === 'popover') {
|
|
10226
|
+
params.targetEl = options.clickedEl || options.targetEl;
|
|
10227
|
+
params.content = `<div class="popover popover-router-open-in" data-url="${url}"><div class="popover-inner"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div></div>`;
|
|
10228
|
+
navigateOptions.route.popover = params;
|
|
10229
|
+
}
|
|
10230
|
+
|
|
10231
|
+
if (options.openIn.indexOf('panel') >= 0) {
|
|
10232
|
+
const parts = options.openIn.split(':');
|
|
10233
|
+
const side = parts[1] || 'left';
|
|
10234
|
+
const effect = parts[2] || 'cover';
|
|
10235
|
+
params.targetEl = options.clickedEl || options.targetEl;
|
|
10236
|
+
params.content = `<div class="panel panel-router-open-in panel-${side} panel-${effect}" data-url="${url}"><div class="view view-init" data-links-view="${router.view.selector}" data-url="${url}" data-ignore-open-in="true"></div></div>`;
|
|
10237
|
+
navigateOptions.route.panel = params;
|
|
10238
|
+
}
|
|
10239
|
+
|
|
10240
|
+
return router.navigate(navigateOptions);
|
|
10241
|
+
},
|
|
10242
|
+
|
|
10243
10243
|
componentLoader(component, componentUrl, options = {}, resolve, reject) {
|
|
10244
10244
|
const router = this;
|
|
10245
10245
|
const {
|
|
@@ -49174,7 +49174,7 @@
|
|
|
49174
49174
|
const self = this;
|
|
49175
49175
|
self.popover = self.app.popover.create({
|
|
49176
49176
|
content: `
|
|
49177
|
-
<div class="popover
|
|
49177
|
+
<div class="popover dark text-editor-popover">
|
|
49178
49178
|
<div class="popover-inner">${self.renderButtons()}</div>
|
|
49179
49179
|
</div>
|
|
49180
49180
|
`,
|