framework7 7.0.0-beta.1 → 7.0.0-beta.10
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/accordion/accordion.js +2 -2
- package/components/accordion/{accordion.umd.js → accordion.lazy.js} +0 -0
- package/components/actions/actions-class.js +5 -5
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.js +2 -2
- package/components/actions/{actions.umd.js → actions.lazy.js} +0 -0
- package/components/app/app-class.d.ts +10 -10
- package/components/app/app-class.js +28 -28
- package/components/app/app.less +3 -3
- package/components/app/load-module.js +4 -4
- package/components/appbar/{appbar.umd.js → appbar.lazy.js} +0 -0
- package/components/area-chart/area-chart-class.js +4 -4
- package/components/area-chart/area-chart-rtl.css +1 -1
- package/components/area-chart/area-chart.css +1 -1
- package/components/area-chart/area-chart.js +3 -3
- package/components/area-chart/{area-chart.umd.js → area-chart.lazy.js} +0 -0
- package/components/autocomplete/autocomplete-class.js +5 -5
- package/components/autocomplete/autocomplete-rtl.css +1 -1
- package/components/autocomplete/autocomplete.css +1 -1
- package/components/autocomplete/autocomplete.js +3 -3
- package/components/autocomplete/{autocomplete.umd.js → autocomplete.lazy.js} +0 -0
- package/components/calendar/calendar-class.js +6 -6
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar.css +1 -1
- package/components/calendar/calendar.js +3 -3
- package/components/calendar/{calendar.umd.js → calendar.lazy.js} +0 -0
- package/components/card/card-rtl.css +1 -1
- package/components/card/card.css +1 -1
- package/components/card/card.js +4 -4
- package/components/card/{card.umd.js → card.lazy.js} +0 -0
- package/components/checkbox/checkbox-rtl.css +1 -1
- package/components/checkbox/checkbox.css +1 -1
- package/components/checkbox/{checkbox.umd.js → checkbox.lazy.js} +0 -0
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip.css +1 -1
- package/components/chip/{chip.umd.js → chip.lazy.js} +0 -0
- package/components/color-picker/color-picker-class.js +18 -18
- package/components/color-picker/color-picker-rtl.css +1 -1
- package/components/color-picker/color-picker.css +1 -1
- package/components/color-picker/color-picker.js +3 -3
- package/components/color-picker/{color-picker.umd.js → color-picker.lazy.js} +0 -0
- package/components/color-picker/modules/alpha-slider.js +1 -1
- package/components/color-picker/modules/brightness-slider.js +2 -2
- package/components/color-picker/modules/current-color.js +1 -1
- package/components/color-picker/modules/hex.js +1 -1
- package/components/color-picker/modules/hs-spectrum.js +4 -4
- package/components/color-picker/modules/hsb-sliders.js +3 -3
- package/components/color-picker/modules/hue-slider.js +1 -1
- package/components/color-picker/modules/initial-current-colors.js +1 -1
- package/components/color-picker/modules/palette.js +2 -2
- package/components/color-picker/modules/rgb-bars.js +2 -2
- package/components/color-picker/modules/rgb-sliders.js +2 -2
- package/components/color-picker/modules/sb-spectrum.js +3 -3
- package/components/color-picker/modules/wheel.js +3 -3
- package/components/contacts-list/contacts-list-rtl.css +1 -1
- package/components/contacts-list/contacts-list.css +1 -1
- package/components/contacts-list/{contacts-list.umd.js → contacts-list.lazy.js} +0 -0
- package/components/data-table/data-table-class.js +3 -3
- package/components/data-table/data-table-rtl.css +1 -1
- package/components/data-table/data-table.css +1 -1
- package/components/data-table/data-table.js +3 -3
- package/components/data-table/{data-table.umd.js → data-table.lazy.js} +0 -0
- package/components/dialog/dialog-class.js +5 -5
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog.css +1 -1
- package/components/dialog/dialog.js +3 -3
- package/components/dialog/{dialog.umd.js → dialog.lazy.js} +0 -0
- package/components/elevation/{elevation.umd.js → elevation.lazy.js} +0 -0
- package/components/fab/fab.js +2 -2
- package/components/fab/{fab.umd.js → fab.lazy.js} +0 -0
- package/components/form/form.js +2 -2
- package/components/form/{form.umd.js → form.lazy.js} +0 -0
- package/components/gauge/gauge-class.js +4 -4
- package/components/gauge/gauge.d.ts +2 -2
- package/components/gauge/gauge.js +4 -4
- package/components/gauge/{gauge.umd.js → gauge.lazy.js} +0 -0
- package/components/grid/grid-rtl.css +1 -1
- package/components/grid/grid.css +1 -1
- package/components/grid/grid.js +2 -2
- package/components/grid/{grid.umd.js → grid.lazy.js} +0 -0
- package/components/infinite-scroll/infinite-scroll.js +2 -2
- package/components/infinite-scroll/{infinite-scroll.umd.js → infinite-scroll.lazy.js} +0 -0
- package/components/input/input-rtl.css +1 -1
- package/components/input/input.css +1 -1
- package/components/input/input.js +3 -3
- package/components/input/{input.umd.js → input.lazy.js} +0 -0
- package/components/input/input.less +1 -1
- package/components/lazy/lazy.js +3 -3
- package/components/lazy/{lazy.umd.js → lazy.lazy.js} +0 -0
- package/components/list-index/list-index-class.js +4 -4
- package/components/list-index/list-index.js +4 -4
- package/components/list-index/{list-index.umd.js → list-index.lazy.js} +0 -0
- package/components/login-screen/login-screen-class.js +3 -3
- 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.js +2 -2
- package/components/login-screen/{login-screen.umd.js → login-screen.lazy.js} +0 -0
- package/components/login-screen/login-screen.less +1 -1
- package/components/menu/menu.js +2 -2
- package/components/menu/{menu.umd.js → menu.lazy.js} +0 -0
- package/components/messagebar/messagebar-class.js +3 -3
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar.css +1 -1
- package/components/messagebar/messagebar.js +4 -4
- package/components/messagebar/{messagebar.umd.js → messagebar.lazy.js} +0 -0
- package/components/messages/messages-class.js +4 -4
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages.css +1 -1
- package/components/messages/messages.js +3 -3
- package/components/messages/{messages.umd.js → messages.lazy.js} +0 -0
- package/components/modal/custom-modal-class.js +3 -3
- package/components/modal/modal-class.js +3 -3
- package/components/modal/modal.js +2 -2
- package/components/navbar/navbar.js +3 -3
- package/components/notification/notification-aurora.less +1 -1
- package/components/notification/notification-class.js +4 -4
- 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/notification/notification.js +3 -3
- package/components/notification/{notification.umd.js → notification.lazy.js} +0 -0
- package/components/page/page-vars.less +1 -1
- package/components/panel/panel-class.js +5 -5
- package/components/panel/panel.js +3 -3
- package/components/panel/{panel.umd.js → panel.lazy.js} +0 -0
- package/components/panel/resizable-panel.js +3 -3
- package/components/panel/swipe-panel.js +2 -2
- package/components/photo-browser/photo-browser-class.js +4 -4
- package/components/photo-browser/photo-browser.js +2 -2
- package/components/photo-browser/{photo-browser.umd.js → photo-browser.lazy.js} +0 -0
- package/components/picker/picker-class.js +6 -6
- package/components/picker/picker-column.js +3 -3
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker.css +1 -1
- package/components/picker/picker.js +3 -3
- package/components/picker/{picker.umd.js → picker.lazy.js} +0 -0
- package/components/pie-chart/pie-chart-class.js +4 -4
- package/components/pie-chart/pie-chart.js +3 -3
- package/components/pie-chart/{pie-chart.umd.js → pie-chart.lazy.js} +0 -0
- package/components/popover/popover-class.js +4 -4
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.js +4 -4
- package/components/popover/{popover.umd.js → popover.lazy.js} +0 -0
- package/components/popup/popup-class.js +5 -5
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.js +2 -2
- package/components/popup/{popup.umd.js → popup.lazy.js} +0 -0
- package/components/popup/popup.less +21 -21
- package/components/preloader/preloader.js +2 -2
- package/components/preloader/{preloader.umd.js → preloader.lazy.js} +0 -0
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar.css +1 -1
- package/components/progressbar/progressbar.js +2 -2
- package/components/progressbar/{progressbar.umd.js → progressbar.lazy.js} +0 -0
- package/components/pull-to-refresh/pull-to-refresh-class.js +5 -5
- package/components/pull-to-refresh/pull-to-refresh.js +4 -4
- package/components/pull-to-refresh/{pull-to-refresh.umd.js → pull-to-refresh.lazy.js} +0 -0
- package/components/radio/radio-rtl.css +1 -1
- package/components/radio/radio.css +1 -1
- package/components/radio/{radio.umd.js → radio.lazy.js} +0 -0
- package/components/range/range-class.js +4 -4
- package/components/range/range.js +4 -4
- package/components/range/{range.umd.js → range.lazy.js} +0 -0
- package/components/searchbar/searchbar-class.js +6 -6
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar.css +1 -1
- package/components/searchbar/searchbar.js +4 -4
- package/components/searchbar/{searchbar.umd.js → searchbar.lazy.js} +1 -1
- package/components/searchbar/searchbar.less +1 -1
- package/components/sheet/sheet-class.js +15 -5
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet.css +1 -1
- package/components/sheet/sheet.js +4 -4
- package/components/sheet/sheet.lazy.js +1 -0
- 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/skeleton/{skeleton.umd.js → skeleton.lazy.js} +0 -0
- package/components/smart-select/smart-select-class.js +4 -4
- package/components/smart-select/smart-select.js +4 -4
- package/components/smart-select/{smart-select.umd.js → smart-select.lazy.js} +0 -0
- package/components/sortable/sortable-rtl.css +1 -1
- package/components/sortable/sortable.css +1 -1
- package/components/sortable/sortable.js +3 -3
- package/components/sortable/{sortable.umd.js → sortable.lazy.js} +0 -0
- package/components/statusbar/statusbar.js +3 -3
- package/components/stepper/stepper-class.js +3 -3
- package/components/stepper/stepper.js +4 -4
- package/components/stepper/{stepper.umd.js → stepper.lazy.js} +0 -0
- package/components/subnavbar/subnavbar.js +1 -1
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout.css +1 -1
- package/components/swipeout/swipeout.js +3 -3
- package/components/swipeout/{swipeout.umd.js → swipeout.lazy.js} +0 -0
- package/components/swiper/swiper.js +2 -2
- package/components/swiper/swiper.lazy.js +1 -0
- package/components/tabs/tabs.js +2 -2
- package/components/tabs/{tabs.umd.js → tabs.lazy.js} +0 -0
- package/components/text-editor/text-editor-class.js +5 -5
- 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.js +4 -4
- package/components/text-editor/{text-editor.umd.js → text-editor.lazy.js} +1 -1
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline.css +1 -1
- package/components/timeline/{timeline.umd.js → timeline.lazy.js} +0 -0
- package/components/toast/toast-class.js +4 -4
- package/components/toast/toast.js +3 -3
- package/components/toast/{toast.umd.js → toast.lazy.js} +0 -0
- package/components/toggle/toggle-class.js +4 -4
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle.css +1 -1
- package/components/toggle/toggle.js +3 -3
- package/components/toggle/{toggle.umd.js → toggle.lazy.js} +0 -0
- package/components/toolbar/toolbar.js +2 -2
- package/components/tooltip/tooltip-class.js +4 -4
- package/components/tooltip/tooltip.js +3 -3
- package/components/tooltip/{tooltip.umd.js → tooltip.lazy.js} +0 -0
- package/components/touch-ripple/touch-ripple-class.js +1 -1
- package/components/touch-ripple/touch-ripple-vars.less +1 -1
- package/components/touch-ripple/touch-ripple.js +1 -1
- package/components/treeview/treeview-rtl.css +1 -1
- package/components/treeview/treeview.css +1 -1
- package/components/treeview/treeview.js +2 -2
- package/components/treeview/{treeview.umd.js → treeview.lazy.js} +0 -0
- package/components/typography/{typography.umd.js → typography.lazy.js} +0 -0
- package/components/view/resizable-view.js +3 -3
- package/components/view/view-class.js +5 -5
- package/components/view/view.js +3 -3
- package/components/virtual-list/virtual-list-class.js +4 -4
- package/components/virtual-list/virtual-list.js +2 -2
- package/components/virtual-list/{virtual-list.umd.js → virtual-list.lazy.js} +0 -0
- package/framework7-bundle-rtl.css +265 -265
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +265 -265
- package/framework7-bundle.esm.js +84 -84
- package/framework7-bundle.js +116 -88
- 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 +78 -78
- package/framework7-lite.esm.js +26 -26
- package/framework7-rtl.css +51 -51
- package/framework7-rtl.min.css +3 -3
- package/framework7.css +51 -51
- package/framework7.esm.js +29 -29
- package/framework7.js +74 -74
- 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/clicks/clicks.js +2 -2
- package/modules/component/$h.js +1 -1
- package/modules/component/$jsx.js +1 -1
- package/modules/component/component-class.js +5 -5
- package/modules/component/component.js +4 -4
- package/modules/component/eventslisteners.js +1 -1
- package/modules/component/parse-component.js +2 -2
- package/modules/component/patch.js +5 -5
- package/modules/component/snabbdom/h.js +1 -1
- package/modules/component/snabbdom/snabbdom.bundle.js +7 -7
- package/modules/component/snabbdom/snabbdom.js +3 -3
- package/modules/component/snabbdom/thunk.js +1 -1
- package/modules/component/snabbdom/tovnode.js +2 -2
- package/modules/component/vdom.js +3 -3
- package/modules/device/device.js +1 -1
- package/modules/history/history.js +1 -1
- package/modules/request/request.js +1 -1
- package/modules/resize/resize.js +1 -1
- package/modules/router/back.js +8 -8
- package/modules/router/clear-previous-history.js +2 -2
- package/modules/router/component-loader.js +47 -1
- package/modules/router/modal.js +3 -3
- package/modules/router/navigate.js +8 -54
- package/modules/router/redirect.js +1 -1
- package/modules/router/router-class.js +11 -11
- package/modules/router/router.js +1 -1
- package/modules/router/swipe-back.js +5 -5
- package/modules/router/tab.js +4 -4
- package/modules/service-worker/service-worker.js +1 -1
- package/modules/store/create-store.js +1 -1
- package/modules/store/store.js +1 -1
- package/modules/support/support.js +1 -1
- package/modules/touch/touch.js +4 -4
- package/modules/utils/utils.js +1 -1
- package/package.json +4 -3
- package/shared/class.js +2 -2
- package/shared/constructor-methods.js +1 -1
- package/shared/get-device.js +1 -1
- package/shared/history.js +2 -2
- package/shared/modal-methods.js +3 -3
- package/shared/request.js +1 -1
- package/components/sheet/sheet.umd.js +0 -1
- package/components/swiper/swiper.umd.js +0 -1
package/framework7-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 7.0.0-beta.
|
|
2
|
+
* Framework7 7.0.0-beta.10
|
|
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 28, 2021
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function (global, factory) {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}(this, (function () { 'use strict';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* SSR Window 4.0.
|
|
20
|
+
* SSR Window 4.0.1
|
|
21
21
|
* Better handling for window object in SSR environment
|
|
22
22
|
* https://github.com/nolimits4web/ssr-window
|
|
23
23
|
*
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
*
|
|
26
26
|
* Licensed under MIT
|
|
27
27
|
*
|
|
28
|
-
* Released on:
|
|
28
|
+
* Released on: October 27, 2021
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
/* eslint-disable no-param-reassign */
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* Dom7 4.0.
|
|
199
|
+
* Dom7 4.0.1
|
|
200
200
|
* Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API
|
|
201
201
|
* https://framework7.io/docs/dom7.html
|
|
202
202
|
*
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
*
|
|
205
205
|
* Licensed under MIT
|
|
206
206
|
*
|
|
207
|
-
* Released on:
|
|
207
|
+
* Released on: October 27, 2021
|
|
208
208
|
*/
|
|
209
209
|
/* eslint-disable no-proto */
|
|
210
210
|
|
|
@@ -2758,7 +2758,7 @@
|
|
|
2758
2758
|
return;
|
|
2759
2759
|
}
|
|
2760
2760
|
|
|
2761
|
-
modulePath = `${app.params.lazyModulesPath}/${moduleToLoad}/${moduleToLoad}.js`;
|
|
2761
|
+
modulePath = `${app.params.lazyModulesPath}/${moduleToLoad}/${moduleToLoad}.lazy.js`;
|
|
2762
2762
|
} else {
|
|
2763
2763
|
modulePath = moduleToLoad;
|
|
2764
2764
|
}
|
|
@@ -2845,7 +2845,7 @@
|
|
|
2845
2845
|
});
|
|
2846
2846
|
});
|
|
2847
2847
|
const styleLoad = new Promise(resolveStyle => {
|
|
2848
|
-
Framework7.request.get(modulePath.replace('.js', app.rtl ? '.rtl.css' : '.css'), styleContent => {
|
|
2848
|
+
Framework7.request.get(modulePath.replace('.lazy.js', app.rtl ? '.rtl.css' : '.css').replace('.js', app.rtl ? '.rtl.css' : '.css'), styleContent => {
|
|
2849
2849
|
const styleEl = document.createElement('style');
|
|
2850
2850
|
styleEl.innerHTML = styleContent;
|
|
2851
2851
|
$('head').append(styleEl);
|
|
@@ -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,
|
|
@@ -2970,7 +2970,7 @@
|
|
|
2970
2970
|
app.el = app.$el[0];
|
|
2971
2971
|
app.el.f7 = app;
|
|
2972
2972
|
app.rtl = $rootEl.css('direction') === 'rtl';
|
|
2973
|
-
} // Auto Dark
|
|
2973
|
+
} // Auto Dark Mode
|
|
2974
2974
|
|
|
2975
2975
|
|
|
2976
2976
|
const DARK = '(prefers-color-scheme: dark)';
|
|
@@ -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;
|
|
@@ -3072,11 +3072,11 @@
|
|
|
3072
3072
|
|
|
3073
3073
|
if (app.rtl) {
|
|
3074
3074
|
$('html').attr('dir', 'rtl');
|
|
3075
|
-
} // Auto Dark
|
|
3075
|
+
} // Auto Dark Mode
|
|
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 {
|
|
@@ -16386,6 +16386,7 @@
|
|
|
16386
16386
|
$el.removeClass('modal-in-swipe-step');
|
|
16387
16387
|
$el.trigger('sheet:stepprogress', 1);
|
|
16388
16388
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 1);
|
|
16389
|
+
sheet.emit('local::_swipeStep', false);
|
|
16389
16390
|
$el.trigger('sheet:stepopen');
|
|
16390
16391
|
sheet.emit('local::stepOpen sheetStepOpen', sheet);
|
|
16391
16392
|
|
|
@@ -16404,6 +16405,7 @@
|
|
|
16404
16405
|
$el.addClass('modal-in-swipe-step');
|
|
16405
16406
|
$el.trigger('sheet:stepprogress', 0);
|
|
16406
16407
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 0);
|
|
16408
|
+
sheet.emit('local::_swipeStep', true);
|
|
16407
16409
|
$el.trigger('sheet:stepclose');
|
|
16408
16410
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
16409
16411
|
|
|
@@ -16419,6 +16421,7 @@
|
|
|
16419
16421
|
$el.addClass('modal-in-swipe-step');
|
|
16420
16422
|
$el.trigger('sheet:stepprogress', 0);
|
|
16421
16423
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 0);
|
|
16424
|
+
sheet.emit('local::_swipeStep', true);
|
|
16422
16425
|
$el.trigger('sheet:stepclose');
|
|
16423
16426
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
16424
16427
|
|
|
@@ -16440,6 +16443,7 @@
|
|
|
16440
16443
|
$el.removeClass('modal-in-swipe-step');
|
|
16441
16444
|
$el.trigger('sheet:stepprogress', 1);
|
|
16442
16445
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 1);
|
|
16446
|
+
sheet.emit('local::_swipeStep', false);
|
|
16443
16447
|
$el.trigger('sheet:stepopen');
|
|
16444
16448
|
sheet.emit('local::stepOpen sheetStepOpen', sheet);
|
|
16445
16449
|
|
|
@@ -16460,6 +16464,7 @@
|
|
|
16460
16464
|
$el.addClass('modal-in-swipe-step');
|
|
16461
16465
|
$el.trigger('sheet:stepprogress', 0);
|
|
16462
16466
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 0);
|
|
16467
|
+
sheet.emit('local::_swipeStep', true);
|
|
16463
16468
|
$el.trigger('sheet:stepclose');
|
|
16464
16469
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
16465
16470
|
|
|
@@ -16486,6 +16491,7 @@
|
|
|
16486
16491
|
|
|
16487
16492
|
if (!byResize) {
|
|
16488
16493
|
$el.addClass('modal-in-swipe-step');
|
|
16494
|
+
sheet.emit('local::_swipeStep', true);
|
|
16489
16495
|
}
|
|
16490
16496
|
};
|
|
16491
16497
|
|
|
@@ -16550,6 +16556,7 @@
|
|
|
16550
16556
|
sheet.on('close', () => {
|
|
16551
16557
|
if (sheet.params.swipeToStep) {
|
|
16552
16558
|
$el.removeClass('modal-in-swipe-step');
|
|
16559
|
+
sheet.emit('local::_swipeStep', false);
|
|
16553
16560
|
app.off('resize', onResize);
|
|
16554
16561
|
}
|
|
16555
16562
|
|
|
@@ -16581,6 +16588,7 @@
|
|
|
16581
16588
|
|
|
16582
16589
|
sheet.stepOpen = function stepOpen() {
|
|
16583
16590
|
$el.removeClass('modal-in-swipe-step');
|
|
16591
|
+
sheet.emit('local::_swipeStep', false);
|
|
16584
16592
|
|
|
16585
16593
|
if (sheet.push) {
|
|
16586
16594
|
if (!pushOffset) {
|
|
@@ -16596,6 +16604,7 @@
|
|
|
16596
16604
|
|
|
16597
16605
|
sheet.stepClose = function stepClose() {
|
|
16598
16606
|
$el.addClass('modal-in-swipe-step');
|
|
16607
|
+
sheet.emit('local::_swipeStep', true);
|
|
16599
16608
|
|
|
16600
16609
|
if (sheet.push) {
|
|
16601
16610
|
sheet.$htmlEl[0].style.removeProperty('--f7-sheet-push-scale');
|
|
@@ -16604,6 +16613,7 @@
|
|
|
16604
16613
|
|
|
16605
16614
|
sheet.stepToggle = function stepToggle() {
|
|
16606
16615
|
$el.toggleClass('modal-in-swipe-step');
|
|
16616
|
+
sheet.emit('local::_swipeStep', $el.hasClass('modal-in-swipe-step'));
|
|
16607
16617
|
};
|
|
16608
16618
|
|
|
16609
16619
|
$el[0].f7Modal = sheet;
|
|
@@ -30650,7 +30660,7 @@
|
|
|
30650
30660
|
foundItems = sb.virtualList.params.searchAll(vlQuery, sb.virtualList.items) || [];
|
|
30651
30661
|
} else if (sb.virtualList.params.searchByItem) {
|
|
30652
30662
|
for (let i = 0; i < sb.virtualList.items.length; i += 1) {
|
|
30653
|
-
if (sb.virtualList.params.searchByItem(vlQuery, sb.virtualList.
|
|
30663
|
+
if (sb.virtualList.params.searchByItem(vlQuery, sb.virtualList.items[i], i)) {
|
|
30654
30664
|
foundItems.push(i);
|
|
30655
30665
|
}
|
|
30656
30666
|
}
|
|
@@ -34642,7 +34652,8 @@
|
|
|
34642
34652
|
const params = swiper.params;
|
|
34643
34653
|
const {
|
|
34644
34654
|
slides,
|
|
34645
|
-
rtlTranslate: rtl
|
|
34655
|
+
rtlTranslate: rtl,
|
|
34656
|
+
snapGrid
|
|
34646
34657
|
} = swiper;
|
|
34647
34658
|
if (slides.length === 0) return;
|
|
34648
34659
|
if (typeof slides[0].swiperSlideOffset === 'undefined') swiper.updateSlidesOffset();
|
|
@@ -34662,6 +34673,7 @@
|
|
|
34662
34673
|
}
|
|
34663
34674
|
|
|
34664
34675
|
const slideProgress = (offsetCenter + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + params.spaceBetween);
|
|
34676
|
+
const originalSlideProgress = (offsetCenter - snapGrid[0] + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + params.spaceBetween);
|
|
34665
34677
|
const slideBefore = -(offsetCenter - slideOffset);
|
|
34666
34678
|
const slideAfter = slideBefore + swiper.slidesSizesGrid[i];
|
|
34667
34679
|
const isVisible = slideBefore >= 0 && slideBefore < swiper.size - 1 || slideAfter > 1 && slideAfter <= swiper.size || slideBefore <= 0 && slideAfter >= swiper.size;
|
|
@@ -34673,6 +34685,7 @@
|
|
|
34673
34685
|
}
|
|
34674
34686
|
|
|
34675
34687
|
slide.progress = rtl ? -slideProgress : slideProgress;
|
|
34688
|
+
slide.originalProgress = rtl ? -originalSlideProgress : originalSlideProgress;
|
|
34676
34689
|
}
|
|
34677
34690
|
|
|
34678
34691
|
swiper.visibleSlides = $$1(swiper.visibleSlides);
|
|
@@ -35552,8 +35565,9 @@
|
|
|
35552
35565
|
$wrapperEl
|
|
35553
35566
|
} = swiper; // Remove duplicated slides
|
|
35554
35567
|
|
|
35555
|
-
$wrapperEl.children(
|
|
35556
|
-
|
|
35568
|
+
const $selector = $$1($wrapperEl.children()[0].parentNode);
|
|
35569
|
+
$selector.children(`.${params.slideClass}.${params.slideDuplicateClass}`).remove();
|
|
35570
|
+
let slides = $selector.children(`.${params.slideClass}`);
|
|
35557
35571
|
|
|
35558
35572
|
if (params.loopFillGroupWithBlank) {
|
|
35559
35573
|
const blankSlidesNum = params.slidesPerGroup - slides.length % params.slidesPerGroup;
|
|
@@ -35561,10 +35575,10 @@
|
|
|
35561
35575
|
if (blankSlidesNum !== params.slidesPerGroup) {
|
|
35562
35576
|
for (let i = 0; i < blankSlidesNum; i += 1) {
|
|
35563
35577
|
const blankNode = $$1(document.createElement('div')).addClass(`${params.slideClass} ${params.slideBlankClass}`);
|
|
35564
|
-
$
|
|
35578
|
+
$selector.append(blankNode);
|
|
35565
35579
|
}
|
|
35566
35580
|
|
|
35567
|
-
slides = $
|
|
35581
|
+
slides = $selector.children(`.${params.slideClass}`);
|
|
35568
35582
|
}
|
|
35569
35583
|
}
|
|
35570
35584
|
|
|
@@ -35593,11 +35607,11 @@
|
|
|
35593
35607
|
});
|
|
35594
35608
|
|
|
35595
35609
|
for (let i = 0; i < appendSlides.length; i += 1) {
|
|
35596
|
-
$
|
|
35610
|
+
$selector.append($$1(appendSlides[i].cloneNode(true)).addClass(params.slideDuplicateClass));
|
|
35597
35611
|
}
|
|
35598
35612
|
|
|
35599
35613
|
for (let i = prependSlides.length - 1; i >= 0; i -= 1) {
|
|
35600
|
-
$
|
|
35614
|
+
$selector.prepend($$1(prependSlides[i].cloneNode(true)).addClass(params.slideDuplicateClass));
|
|
35601
35615
|
}
|
|
35602
35616
|
}
|
|
35603
35617
|
|
|
@@ -42473,17 +42487,31 @@
|
|
|
42473
42487
|
|
|
42474
42488
|
const setTranslate = () => {
|
|
42475
42489
|
const {
|
|
42476
|
-
slides
|
|
42490
|
+
slides,
|
|
42491
|
+
$wrapperEl,
|
|
42492
|
+
slidesSizesGrid
|
|
42477
42493
|
} = swiper;
|
|
42478
42494
|
const params = swiper.params.creativeEffect;
|
|
42479
42495
|
const {
|
|
42480
42496
|
progressMultiplier: multiplier
|
|
42481
42497
|
} = params;
|
|
42498
|
+
const isCenteredSlides = swiper.params.centeredSlides;
|
|
42499
|
+
|
|
42500
|
+
if (isCenteredSlides) {
|
|
42501
|
+
const margin = slidesSizesGrid[0] / 2 - swiper.params.slidesOffsetBefore || 0;
|
|
42502
|
+
$wrapperEl.transform(`translateX(calc(50% - ${margin}px))`);
|
|
42503
|
+
}
|
|
42482
42504
|
|
|
42483
42505
|
for (let i = 0; i < slides.length; i += 1) {
|
|
42484
42506
|
const $slideEl = slides.eq(i);
|
|
42485
42507
|
const slideProgress = $slideEl[0].progress;
|
|
42486
42508
|
const progress = Math.min(Math.max($slideEl[0].progress, -params.limitProgress), params.limitProgress);
|
|
42509
|
+
let originalProgress = progress;
|
|
42510
|
+
|
|
42511
|
+
if (!isCenteredSlides) {
|
|
42512
|
+
originalProgress = Math.min(Math.max($slideEl[0].originalProgress, -params.limitProgress), params.limitProgress);
|
|
42513
|
+
}
|
|
42514
|
+
|
|
42487
42515
|
const offset = $slideEl[0].swiperSlideOffset;
|
|
42488
42516
|
const t = [swiper.params.cssMode ? -offset - swiper.translate : -offset, 0, 0];
|
|
42489
42517
|
const r = [0, 0, 0];
|
|
@@ -42520,8 +42548,8 @@
|
|
|
42520
42548
|
$slideEl[0].style.zIndex = -Math.abs(Math.round(slideProgress)) + slides.length;
|
|
42521
42549
|
const translateString = t.join(', ');
|
|
42522
42550
|
const rotateString = `rotateX(${r[0]}deg) rotateY(${r[1]}deg) rotateZ(${r[2]}deg)`;
|
|
42523
|
-
const scaleString =
|
|
42524
|
-
const opacityString =
|
|
42551
|
+
const scaleString = originalProgress < 0 ? `scale(${1 + (1 - data.scale) * originalProgress * multiplier})` : `scale(${1 - (1 - data.scale) * originalProgress * multiplier})`;
|
|
42552
|
+
const opacityString = originalProgress < 0 ? 1 + (1 - data.opacity) * originalProgress * multiplier : 1 - (1 - data.opacity) * originalProgress * multiplier;
|
|
42525
42553
|
const transform = `translate3d(${translateString}) ${rotateString} ${scaleString}`; // Set shadows
|
|
42526
42554
|
|
|
42527
42555
|
if (custom && data.shadow || !custom) {
|
|
@@ -42699,7 +42727,7 @@
|
|
|
42699
42727
|
}
|
|
42700
42728
|
|
|
42701
42729
|
/**
|
|
42702
|
-
* Swiper 7.0
|
|
42730
|
+
* Swiper 7.2.0
|
|
42703
42731
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
42704
42732
|
* https://swiperjs.com
|
|
42705
42733
|
*
|
|
@@ -42707,7 +42735,7 @@
|
|
|
42707
42735
|
*
|
|
42708
42736
|
* Released under the MIT License
|
|
42709
42737
|
*
|
|
42710
|
-
* Released on: October
|
|
42738
|
+
* Released on: October 27, 2021
|
|
42711
42739
|
*/
|
|
42712
42740
|
|
|
42713
42741
|
const modules = [Virtual, Keyboard, Mousewheel, Navigation, Pagination, Scrollbar, Parallax, Zoom, Lazy, Controller, A11y, History, HashNavigation, Autoplay, Thumb, freeMode, Grid, Manipulation, EffectFade, EffectCube, EffectFlip, EffectCoverflow, EffectCreative, EffectCards];
|
|
@@ -49174,7 +49202,7 @@
|
|
|
49174
49202
|
const self = this;
|
|
49175
49203
|
self.popover = self.app.popover.create({
|
|
49176
49204
|
content: `
|
|
49177
|
-
<div class="popover
|
|
49205
|
+
<div class="popover dark text-editor-popover">
|
|
49178
49206
|
<div class="popover-inner">${self.renderButtons()}</div>
|
|
49179
49207
|
</div>
|
|
49180
49208
|
`,
|