framework7-vue 7.0.0-beta.2 → 7.0.0-beta.20
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-content.js +5 -5
- package/components/accordion-item.js +10 -9
- package/components/accordion-toggle.js +5 -5
- package/components/accordion.js +5 -5
- package/components/actions-button.js +15 -12
- package/components/actions-group.js +5 -5
- package/components/actions-label.js +13 -9
- package/components/actions.js +11 -10
- package/components/app.d.ts +1 -1
- package/components/app.js +8 -8
- package/components/appbar.js +7 -7
- package/components/area-chart.js +50 -43
- package/components/badge.js +6 -6
- package/components/block-footer.js +5 -5
- package/components/block-header.js +5 -5
- package/components/block-title.js +7 -6
- package/components/block.js +10 -9
- package/components/breadcrumbs-collapsed.d.ts +19 -0
- package/components/breadcrumbs-collapsed.js +26 -0
- package/components/breadcrumbs-item.d.ts +22 -0
- package/components/breadcrumbs-item.js +28 -0
- package/components/breadcrumbs-separator.d.ts +19 -0
- package/components/breadcrumbs-separator.js +24 -0
- package/components/breadcrumbs.d.ts +19 -0
- package/components/breadcrumbs.js +24 -0
- package/components/button.js +12 -12
- package/components/card-content.js +5 -5
- package/components/card-footer.js +5 -5
- package/components/card-header.js +5 -5
- package/components/card.js +16 -14
- package/components/checkbox.js +16 -12
- package/components/chip.js +19 -16
- package/components/col.js +10 -9
- package/components/fab-backdrop.js +5 -5
- package/components/fab-button.js +16 -12
- package/components/fab-buttons.js +5 -5
- package/components/fab.js +8 -7
- package/components/gauge.js +16 -9
- package/components/icon.js +9 -9
- package/components/input.js +31 -14
- package/components/link.js +16 -15
- package/components/list-button.js +13 -10
- package/components/list-group.js +7 -6
- package/components/list-index.js +10 -9
- package/components/list-input.js +29 -12
- package/components/list-item-cell.js +5 -5
- package/components/list-item-row.js +5 -5
- package/components/list-item.js +25 -23
- package/components/list.d.ts +2 -2
- package/components/list.js +17 -9
- package/components/login-screen-title.js +5 -5
- package/components/login-screen.js +11 -10
- package/components/menu-dropdown-item.js +12 -9
- package/components/menu-dropdown.js +8 -8
- package/components/menu-item.js +14 -13
- package/components/menu.js +6 -6
- package/components/message.js +49 -31
- package/components/messagebar-attachment.js +19 -12
- package/components/messagebar-attachments.js +5 -5
- package/components/messagebar-sheet-image.js +18 -13
- package/components/messagebar-sheet-item.js +5 -5
- package/components/messagebar-sheet.js +5 -5
- package/components/messagebar.js +10 -9
- package/components/messages-title.js +5 -5
- package/components/messages.js +10 -9
- package/components/nav-left.js +13 -11
- package/components/nav-right.js +5 -5
- package/components/nav-title-large.js +6 -6
- package/components/nav-title.js +6 -6
- package/components/navbar.js +19 -18
- package/components/page-content.js +19 -17
- package/components/page.js +9 -8
- package/components/panel.js +16 -11
- package/components/photo-browser.js +6 -5
- package/components/pie-chart.js +27 -23
- package/components/popover.js +13 -12
- package/components/popup.js +11 -10
- package/components/preloader.js +18 -15
- package/components/progressbar.js +10 -9
- package/components/radio.js +16 -12
- package/components/range.js +13 -11
- package/components/routable-modals.js +1 -1
- package/components/row.js +10 -9
- package/components/searchbar.js +32 -18
- package/components/segmented.js +5 -5
- package/components/sheet.js +15 -8
- package/components/skeleton-avatar.d.ts +1 -0
- package/components/skeleton-avatar.js +1 -0
- package/components/skeleton-block.d.ts +1 -0
- package/components/skeleton-block.js +1 -0
- package/components/skeleton-image.d.ts +1 -0
- package/components/skeleton-image.js +1 -0
- package/components/skeleton-text.d.ts +1 -0
- package/components/skeleton-text.js +1 -0
- package/components/stepper.js +27 -17
- package/components/subnavbar.js +6 -6
- package/components/swipeout-actions.js +5 -5
- package/components/swipeout-button.js +15 -10
- package/components/tab.js +11 -10
- package/components/tabs.js +9 -9
- package/components/text-editor.js +13 -12
- package/components/toggle.js +18 -14
- package/components/toolbar.js +12 -11
- package/components/treeview-item.js +16 -15
- package/components/treeview.js +5 -5
- package/components/use-icon.js +6 -6
- package/components/view.d.ts +5 -0
- package/components/view.js +16 -10
- package/components/views.js +5 -5
- package/framework7-vue-bundle.js +111 -103
- package/framework7-vue-web-types.json +16682 -0
- package/framework7-vue.d.ts +5 -1
- package/framework7-vue.js +107 -103
- package/package.json +3 -1
- package/shared/components-router.js +30 -22
- package/shared/f7.js +10 -2
- package/shared/get-router-initial-component.js +1 -1
- package/shared/mixins.js +4 -4
- package/shared/modal-state-classes.js +5 -4
- package/shared/plugin.js +7 -3
- package/shared/router-open-in.js +114 -0
- package/shared/use-icon.js +5 -1
- package/shared/use-route-props.js +4 -3
- package/shared/use-smart-select.js +2 -2
- package/shared/use-store.js +6 -6
- package/shared/use-tab.js +1 -1
- package/shared/use-theme.js +1 -1
- package/shared/use-tooltip.js +1 -1
- package/shared/utils.js +16 -3
package/components/nav-right.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
|
|
3
3
|
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(),
|
|
5
|
-
class: _ctx.classes
|
|
4
|
+
return _openBlock(), _createElementBlock("div", {
|
|
5
|
+
class: _normalizeClass(_ctx.classes)
|
|
6
6
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
import { computed } from 'vue';
|
|
10
|
-
import { classNames } from '../shared/utils';
|
|
11
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
10
|
+
import { classNames } from '../shared/utils.js';
|
|
11
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
12
12
|
export default {
|
|
13
13
|
name: 'f7-nav-right',
|
|
14
14
|
render,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot,
|
|
1
|
+
import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
class: "title-large-text"
|
|
4
4
|
};
|
|
5
5
|
|
|
6
6
|
function render(_ctx, _cache) {
|
|
7
|
-
return _openBlock(),
|
|
8
|
-
class: _ctx.classes
|
|
9
|
-
}, [
|
|
7
|
+
return _openBlock(), _createElementBlock("div", {
|
|
8
|
+
class: _normalizeClass(_ctx.classes)
|
|
9
|
+
}, [_createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])], 2);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
import { computed } from 'vue';
|
|
13
|
-
import { classNames } from '../shared/utils';
|
|
14
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
13
|
+
import { classNames } from '../shared/utils.js';
|
|
14
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
15
15
|
export default {
|
|
16
16
|
name: 'f7-nav-title-large',
|
|
17
17
|
render,
|
package/components/nav-title.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "subtitle"
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
function render(_ctx, _cache) {
|
|
8
|
-
return _openBlock(),
|
|
9
|
-
class: _ctx.classes
|
|
10
|
-
}, [_renderSlot(_ctx.$slots, "default"), _createTextVNode(" " + _toDisplayString(_ctx.title) + " ", 1), _ctx.subtitle ? (_openBlock(),
|
|
8
|
+
return _openBlock(), _createElementBlock("div", {
|
|
9
|
+
class: _normalizeClass(_ctx.classes)
|
|
10
|
+
}, [_renderSlot(_ctx.$slots, "default"), _createTextVNode(" " + _toDisplayString(_ctx.title) + " ", 1), _ctx.subtitle ? (_openBlock(), _createElementBlock("span", _hoisted_1, _toDisplayString(_ctx.subtitle), 1)) : _createCommentVNode("", true)], 2);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
import { computed } from 'vue';
|
|
14
|
-
import { classNames } from '../shared/utils';
|
|
15
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
14
|
+
import { classNames } from '../shared/utils.js';
|
|
15
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
16
16
|
export default {
|
|
17
17
|
name: 'f7-nav-title',
|
|
18
18
|
render,
|
package/components/navbar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass } from "vue";
|
|
2
2
|
|
|
3
|
-
const _hoisted_1 = /*#__PURE__*/
|
|
3
|
+
const _hoisted_1 = /*#__PURE__*/_createElementVNode("div", {
|
|
4
4
|
class: "navbar-bg"
|
|
5
5
|
}, null, -1);
|
|
6
6
|
|
|
@@ -19,11 +19,11 @@ function render(_ctx, _cache) {
|
|
|
19
19
|
|
|
20
20
|
const _component_f7_nav_right = _resolveComponent("f7-nav-right");
|
|
21
21
|
|
|
22
|
-
return _openBlock(),
|
|
22
|
+
return _openBlock(), _createElementBlock("div", {
|
|
23
23
|
ref: "elRef",
|
|
24
|
-
class: _ctx.classes
|
|
25
|
-
}, [_hoisted_1, _renderSlot(_ctx.$slots, "before-inner"),
|
|
26
|
-
class: _ctx.innerClasses
|
|
24
|
+
class: _normalizeClass(_ctx.classes)
|
|
25
|
+
}, [_hoisted_1, _renderSlot(_ctx.$slots, "before-inner"), _createElementVNode("div", {
|
|
26
|
+
class: _normalizeClass(_ctx.innerClasses)
|
|
27
27
|
}, [_ctx.hasLeft ? (_openBlock(), _createBlock(_component_f7_nav_left, {
|
|
28
28
|
key: 0,
|
|
29
29
|
"back-link": _ctx.backLink,
|
|
@@ -46,17 +46,17 @@ function render(_ctx, _cache) {
|
|
|
46
46
|
}, {
|
|
47
47
|
default: _withCtx(() => [_renderSlot(_ctx.$slots, "nav-right"), _renderSlot(_ctx.$slots, "right")]),
|
|
48
48
|
_: 3
|
|
49
|
-
})) : _createCommentVNode("", true), _ctx.hasLargeTitle ? (_openBlock(),
|
|
49
|
+
})) : _createCommentVNode("", true), _ctx.hasLargeTitle ? (_openBlock(), _createElementBlock("div", _hoisted_2, [_createElementVNode("div", _hoisted_3, [_createTextVNode(_toDisplayString(_ctx.largeTitle) + " ", 1), _renderSlot(_ctx.$slots, "title-large")])])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2), _renderSlot(_ctx.$slots, "after-inner")], 2);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
import { computed, ref, onMounted, onBeforeUnmount } from 'vue';
|
|
53
|
-
import { classNames } from '../shared/utils';
|
|
54
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
55
|
-
import { f7ready, f7 } from '../shared/f7';
|
|
56
|
-
import { useTheme } from '../shared/use-theme';
|
|
57
|
-
import f7NavLeft from './nav-left';
|
|
58
|
-
import f7NavTitle from './nav-title';
|
|
59
|
-
import f7NavRight from './nav-right';
|
|
53
|
+
import { classNames } from '../shared/utils.js';
|
|
54
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
55
|
+
import { f7ready, f7 } from '../shared/f7.js';
|
|
56
|
+
import { useTheme } from '../shared/use-theme.js';
|
|
57
|
+
import f7NavLeft from './nav-left.js';
|
|
58
|
+
import f7NavTitle from './nav-title.js';
|
|
59
|
+
import f7NavRight from './nav-right.js';
|
|
60
60
|
export default {
|
|
61
61
|
name: 'f7-navbar',
|
|
62
62
|
render,
|
|
@@ -92,10 +92,11 @@ export default {
|
|
|
92
92
|
},
|
|
93
93
|
emits: ['navbar:hide', 'navbar:show', 'navbar:expand', 'navbar:collapse', 'navbar:transparentshow', 'navbar:transparenthide', 'click:back', 'back:click'],
|
|
94
94
|
|
|
95
|
-
setup(props, {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
setup(props, _ref) {
|
|
96
|
+
let {
|
|
97
|
+
emit,
|
|
98
|
+
slots
|
|
99
|
+
} = _ref;
|
|
99
100
|
let routerPositionClass = '';
|
|
100
101
|
let largeCollapsed = false;
|
|
101
102
|
let routerNavbarRole = null;
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock,
|
|
2
|
-
const _hoisted_1 =
|
|
1
|
+
import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, renderSlot as _renderSlot, normalizeClass as _normalizeClass } from "vue";
|
|
2
|
+
const _hoisted_1 = ["data-ptr-distance", "data-ptr-mousewheel", "data-infinite-distance"];
|
|
3
|
+
const _hoisted_2 = {
|
|
3
4
|
key: 0,
|
|
4
5
|
class: "ptr-preloader"
|
|
5
6
|
};
|
|
6
7
|
|
|
7
|
-
const
|
|
8
|
+
const _hoisted_3 = /*#__PURE__*/_createElementVNode("div", {
|
|
8
9
|
class: "ptr-arrow"
|
|
9
10
|
}, null, -1);
|
|
10
11
|
|
|
11
|
-
const
|
|
12
|
+
const _hoisted_4 = {
|
|
12
13
|
key: 3,
|
|
13
14
|
class: "ptr-preloader"
|
|
14
15
|
};
|
|
15
16
|
|
|
16
|
-
const
|
|
17
|
+
const _hoisted_5 = /*#__PURE__*/_createElementVNode("div", {
|
|
17
18
|
class: "ptr-arrow"
|
|
18
19
|
}, null, -1);
|
|
19
20
|
|
|
20
21
|
function render(_ctx, _cache) {
|
|
21
22
|
const _component_f7_preloader = _resolveComponent("f7-preloader");
|
|
22
23
|
|
|
23
|
-
return _openBlock(),
|
|
24
|
+
return _openBlock(), _createElementBlock("div", {
|
|
24
25
|
ref: "elRef",
|
|
25
|
-
class: _ctx.classes,
|
|
26
|
+
class: _normalizeClass(_ctx.classes),
|
|
26
27
|
"data-ptr-distance": _ctx.ptrDistance || undefined,
|
|
27
28
|
"data-ptr-mousewheel": _ctx.ptrMousewheel || undefined,
|
|
28
29
|
"data-infinite-distance": _ctx.infiniteDistance || undefined
|
|
29
|
-
}, [_ctx.ptr && _ctx.ptrPreloader && !_ctx.ptrBottom ? (_openBlock(),
|
|
30
|
+
}, [_ctx.ptr && _ctx.ptrPreloader && !_ctx.ptrBottom ? (_openBlock(), _createElementBlock("div", _hoisted_2, [_createVNode(_component_f7_preloader), _hoisted_3])) : _createCommentVNode("", true), _ctx.infinite && _ctx.infinitePreloader && _ctx.infiniteTop ? (_openBlock(), _createBlock(_component_f7_preloader, {
|
|
30
31
|
key: 1,
|
|
31
32
|
class: "infinite-scroll-preloader"
|
|
32
33
|
})) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default"), _ctx.infinite && _ctx.infinitePreloader && !_ctx.infiniteTop ? (_openBlock(), _createBlock(_component_f7_preloader, {
|
|
33
34
|
key: 2,
|
|
34
35
|
class: "infinite-scroll-preloader"
|
|
35
|
-
})) : _createCommentVNode("", true), _ctx.ptr && _ctx.ptrPreloader && _ctx.ptrBottom ? (_openBlock(),
|
|
36
|
+
})) : _createCommentVNode("", true), _ctx.ptr && _ctx.ptrPreloader && _ctx.ptrBottom ? (_openBlock(), _createElementBlock("div", _hoisted_4, [_createVNode(_component_f7_preloader), _hoisted_5])) : _createCommentVNode("", true)], 10, _hoisted_1);
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
import { computed, ref, onMounted, onBeforeUnmount } from 'vue';
|
|
39
|
-
import { classNames } from '../shared/utils';
|
|
40
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
41
|
-
import f7Preloader from './preloader';
|
|
42
|
-
import { useTab } from '../shared/use-tab';
|
|
43
|
-
import { f7ready, f7 } from '../shared/f7';
|
|
40
|
+
import { classNames } from '../shared/utils.js';
|
|
41
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
42
|
+
import f7Preloader from './preloader.js';
|
|
43
|
+
import { useTab } from '../shared/use-tab.js';
|
|
44
|
+
import { f7ready, f7 } from '../shared/f7.js';
|
|
44
45
|
export default {
|
|
45
46
|
name: 'f7-page-content',
|
|
46
47
|
render,
|
|
@@ -74,9 +75,10 @@ export default {
|
|
|
74
75
|
},
|
|
75
76
|
emits: ['ptr:pullstart', 'ptr:pullmove', 'ptr:pullend', 'ptr:refresh', 'ptr:done', 'infinite', 'ptrPullStart', 'ptrPullMove', 'ptrPullEnd', 'ptrRefresh', 'ptrDone', 'tab:hide', 'tab:show'],
|
|
76
77
|
|
|
77
|
-
setup(props, {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
setup(props, _ref) {
|
|
79
|
+
let {
|
|
80
|
+
emit
|
|
81
|
+
} = _ref;
|
|
80
82
|
const elRef = ref(null);
|
|
81
83
|
|
|
82
84
|
const onPtrPullStart = el => {
|
package/components/page.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, ref, onMounted, onBeforeUnmount, h } from 'vue';
|
|
2
|
-
import { classNames } from '../shared/utils';
|
|
3
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
4
|
-
import { f7ready, f7 } from '../shared/f7';
|
|
5
|
-
import f7PageContent from './page-content';
|
|
2
|
+
import { classNames } from '../shared/utils.js';
|
|
3
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
4
|
+
import { f7ready, f7 } from '../shared/f7.js';
|
|
5
|
+
import f7PageContent from './page-content.js';
|
|
6
6
|
export default {
|
|
7
7
|
name: 'f7-page',
|
|
8
8
|
props: {
|
|
@@ -57,10 +57,11 @@ export default {
|
|
|
57
57
|
},
|
|
58
58
|
emits: ['page:mounted', 'page:init', 'page:reinit', 'page:beforein', 'page:beforeout', 'page:afterout', 'page:afterin', 'page:beforeremove', 'page:beforeunmount', 'page:tabshow', 'page:tabhide', 'ptr:pullstart', 'ptr:pullmove', 'ptr:pullend', 'ptr:refresh', 'ptr:done', 'infinite'],
|
|
59
59
|
|
|
60
|
-
setup(props, {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
setup(props, _ref) {
|
|
61
|
+
let {
|
|
62
|
+
emit,
|
|
63
|
+
slots
|
|
64
|
+
} = _ref;
|
|
64
65
|
let hasSubnavbar = false;
|
|
65
66
|
let hasNavbarLarge = false;
|
|
66
67
|
let hasNavbarLargeCollapsed = false;
|
package/components/panel.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "panel-resize-handler"
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
function render(_ctx, _cache) {
|
|
8
|
-
return _openBlock(),
|
|
8
|
+
return _openBlock(), _createElementBlock("div", {
|
|
9
9
|
ref: "elRef",
|
|
10
|
-
class: _ctx.classes
|
|
11
|
-
}, [_renderSlot(_ctx.$slots, "default"), _ctx.resizable ? (_openBlock(),
|
|
10
|
+
class: _normalizeClass(_ctx.classes)
|
|
11
|
+
}, [_renderSlot(_ctx.$slots, "default"), _ctx.resizable ? (_openBlock(), _createElementBlock("div", _hoisted_1)) : _createCommentVNode("", true)], 2);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
15
|
-
import { classNames, noUndefinedProps } from '../shared/utils';
|
|
16
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
17
|
-
import { f7ready, f7 } from '../shared/f7';
|
|
15
|
+
import { classNames, noUndefinedProps } from '../shared/utils.js';
|
|
16
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
17
|
+
import { f7ready, f7 } from '../shared/f7.js';
|
|
18
18
|
export default {
|
|
19
19
|
name: 'f7-panel',
|
|
20
20
|
render,
|
|
@@ -63,9 +63,10 @@ export default {
|
|
|
63
63
|
},
|
|
64
64
|
emits: ['panel:open', 'panel:opened', 'panel:close', 'panel:closed', 'click', 'panel:backdropclick', 'panel:swipe', 'panel:swipeopen', 'panel:breakpoint', 'panel:collapsedbreakpoint', 'panel:resize', 'update:opened'],
|
|
65
65
|
|
|
66
|
-
setup(props, {
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
setup(props, _ref) {
|
|
67
|
+
let {
|
|
68
|
+
emit
|
|
69
|
+
} = _ref;
|
|
69
70
|
let f7Panel = null;
|
|
70
71
|
const elRef = ref(null);
|
|
71
72
|
let isOpened = false;
|
|
@@ -121,7 +122,11 @@ export default {
|
|
|
121
122
|
emit('panel:collapsedbreakpoint', event);
|
|
122
123
|
};
|
|
123
124
|
|
|
124
|
-
const onResize = (
|
|
125
|
+
const onResize = function () {
|
|
126
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
127
|
+
args[_key] = arguments[_key];
|
|
128
|
+
}
|
|
129
|
+
|
|
125
130
|
emit('panel:resize', ...args);
|
|
126
131
|
};
|
|
127
132
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { watch, onMounted, onBeforeUnmount } from 'vue';
|
|
2
|
-
import { extend } from '../shared/utils';
|
|
3
|
-
import { f7ready, f7 } from '../shared/f7';
|
|
2
|
+
import { extend } from '../shared/utils.js';
|
|
3
|
+
import { f7ready, f7 } from '../shared/f7.js';
|
|
4
4
|
export default {
|
|
5
5
|
name: 'f7-photo-browser',
|
|
6
6
|
props: {
|
|
@@ -85,9 +85,10 @@ export default {
|
|
|
85
85
|
},
|
|
86
86
|
emits: ['photobrowser:open', 'photobrowser:close', 'photobrowser:opened', 'photobrowser:closed', 'photobrowser:swipetoclose'],
|
|
87
87
|
|
|
88
|
-
setup(props, {
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
setup(props, _ref) {
|
|
89
|
+
let {
|
|
90
|
+
emit
|
|
91
|
+
} = _ref;
|
|
91
92
|
let f7PhotoBrowser = null;
|
|
92
93
|
|
|
93
94
|
const open = index => {
|
package/components/pie-chart.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock,
|
|
1
|
+
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, renderSlot as _renderSlot } from "vue";
|
|
2
|
+
const _hoisted_1 = ["width", "height", "viewBox"];
|
|
3
|
+
const _hoisted_2 = ["d", "fill", "data-index", "onClick", "onMouseenter"];
|
|
2
4
|
|
|
3
5
|
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(),
|
|
6
|
+
return _openBlock(), _createElementBlock("div", {
|
|
5
7
|
ref: "elRef",
|
|
6
|
-
class: _ctx.classes
|
|
7
|
-
}, [(_openBlock(),
|
|
8
|
+
class: _normalizeClass(_ctx.classes)
|
|
9
|
+
}, [(_openBlock(), _createElementBlock("svg", {
|
|
8
10
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
11
|
width: _ctx.size,
|
|
10
12
|
height: _ctx.size,
|
|
11
13
|
viewBox: `-${_ctx.size / 3} -${_ctx.size / 3} ${_ctx.size * 2 / 3} ${_ctx.size * 2 / 3}`,
|
|
12
|
-
style: {
|
|
14
|
+
style: _normalizeStyle({
|
|
13
15
|
transform: 'rotate(-90deg)'
|
|
14
|
-
}
|
|
15
|
-
}, [(_openBlock(true),
|
|
16
|
-
return _openBlock(),
|
|
16
|
+
})
|
|
17
|
+
}, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.paths, (path, index) => {
|
|
18
|
+
return _openBlock(), _createElementBlock("path", {
|
|
17
19
|
key: path.label || index,
|
|
18
20
|
d: path.points,
|
|
19
21
|
fill: path.color,
|
|
20
22
|
"data-index": index,
|
|
21
|
-
class: _ctx.classNames({
|
|
23
|
+
class: _normalizeClass(_ctx.classNames({
|
|
22
24
|
'pie-chart-hidden': _ctx.currentIndex !== null && _ctx.currentIndex !== index
|
|
23
|
-
}),
|
|
25
|
+
})),
|
|
24
26
|
onClick: $event => _ctx.setCurrentIndex(index),
|
|
25
27
|
onMouseenter: $event => _ctx.setCurrentIndex(index),
|
|
26
|
-
onMouseleave: _cache[
|
|
27
|
-
}, null, 42,
|
|
28
|
-
}), 128))], 12,
|
|
28
|
+
onMouseleave: _cache[0] || (_cache[0] = $event => _ctx.setCurrentIndex(null))
|
|
29
|
+
}, null, 42, _hoisted_2);
|
|
30
|
+
}), 128))], 12, _hoisted_1)), _renderSlot(_ctx.$slots, "default")], 2);
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
import { computed, onBeforeUnmount, ref, watch } from 'vue';
|
|
32
|
-
import { classNames } from '../shared/utils';
|
|
33
|
-
import { f7 } from '../shared/f7';
|
|
34
|
+
import { classNames } from '../shared/utils.js';
|
|
35
|
+
import { f7 } from '../shared/f7.js';
|
|
34
36
|
export default {
|
|
35
37
|
name: 'f7-pie-chart',
|
|
36
38
|
render,
|
|
@@ -48,9 +50,10 @@ export default {
|
|
|
48
50
|
},
|
|
49
51
|
emits: ['select'],
|
|
50
52
|
|
|
51
|
-
setup(props, {
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
setup(props, _ref) {
|
|
54
|
+
let {
|
|
55
|
+
emit
|
|
56
|
+
} = _ref;
|
|
54
57
|
const elRef = ref(null);
|
|
55
58
|
let f7Tooltip = null;
|
|
56
59
|
const currentIndex = ref(null);
|
|
@@ -76,11 +79,12 @@ export default {
|
|
|
76
79
|
return [x, y];
|
|
77
80
|
}
|
|
78
81
|
|
|
79
|
-
props.datasets.forEach(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
props.datasets.forEach(_ref2 => {
|
|
83
|
+
let {
|
|
84
|
+
value,
|
|
85
|
+
label,
|
|
86
|
+
color
|
|
87
|
+
} = _ref2;
|
|
84
88
|
const percentage = value / summValue.value;
|
|
85
89
|
const [startX, startY] = getCoordinatesForPercentage(cumulativePercentage);
|
|
86
90
|
cumulativePercentage += percentage;
|
package/components/popover.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
|
|
3
|
-
const _hoisted_1 = /*#__PURE__*/
|
|
3
|
+
const _hoisted_1 = /*#__PURE__*/_createElementVNode("div", {
|
|
4
4
|
class: "popover-angle"
|
|
5
5
|
}, null, -1);
|
|
6
6
|
|
|
@@ -9,17 +9,17 @@ const _hoisted_2 = {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
function render(_ctx, _cache) {
|
|
12
|
-
return _openBlock(),
|
|
12
|
+
return _openBlock(), _createElementBlock("div", {
|
|
13
13
|
ref: "elRef",
|
|
14
|
-
class: _ctx.classes
|
|
15
|
-
}, [_hoisted_1,
|
|
14
|
+
class: _normalizeClass(_ctx.classes)
|
|
15
|
+
}, [_hoisted_1, _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "default")])], 2);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
19
|
-
import { classNames } from '../shared/utils';
|
|
20
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
21
|
-
import { f7ready, f7 } from '../shared/f7';
|
|
22
|
-
import { modalStateClasses } from '../shared/modal-state-classes';
|
|
19
|
+
import { classNames } from '../shared/utils.js';
|
|
20
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
21
|
+
import { f7ready, f7 } from '../shared/f7.js';
|
|
22
|
+
import { modalStateClasses } from '../shared/modal-state-classes.js';
|
|
23
23
|
export default {
|
|
24
24
|
name: 'f7-popover',
|
|
25
25
|
render,
|
|
@@ -61,9 +61,10 @@ export default {
|
|
|
61
61
|
},
|
|
62
62
|
emits: ['popover:open', 'popover:opened', 'popover:close', 'popover:closed', 'update:opened'],
|
|
63
63
|
|
|
64
|
-
setup(props, {
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
setup(props, _ref) {
|
|
65
|
+
let {
|
|
66
|
+
emit
|
|
67
|
+
} = _ref;
|
|
67
68
|
const f7Popover = ref(null); // eslint-disable-next-line
|
|
68
69
|
|
|
69
70
|
let isOpened = props.opened;
|
package/components/popup.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
|
|
3
3
|
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(),
|
|
4
|
+
return _openBlock(), _createElementBlock("div", {
|
|
5
5
|
ref: "elRef",
|
|
6
|
-
class: _ctx.classes
|
|
6
|
+
class: _normalizeClass(_ctx.classes)
|
|
7
7
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
11
|
-
import { classNames } from '../shared/utils';
|
|
12
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
13
|
-
import { f7ready, f7 } from '../shared/f7';
|
|
14
|
-
import { modalStateClasses } from '../shared/modal-state-classes';
|
|
11
|
+
import { classNames } from '../shared/utils.js';
|
|
12
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
13
|
+
import { f7ready, f7 } from '../shared/f7.js';
|
|
14
|
+
import { modalStateClasses } from '../shared/modal-state-classes.js';
|
|
15
15
|
export default {
|
|
16
16
|
name: 'f7-popup',
|
|
17
17
|
render,
|
|
@@ -55,9 +55,10 @@ export default {
|
|
|
55
55
|
},
|
|
56
56
|
emits: ['popup:swipestart', 'popup:swipemove', 'popup:swipeend', 'popup:swipeclose', 'popup:open', 'popup:opened', 'popup:close', 'popup:closed', 'update:opened'],
|
|
57
57
|
|
|
58
|
-
setup(props, {
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
setup(props, _ref) {
|
|
59
|
+
let {
|
|
60
|
+
emit
|
|
61
|
+
} = _ref;
|
|
61
62
|
const f7Popup = ref(null); // eslint-disable-next-line
|
|
62
63
|
|
|
63
64
|
let isOpened = props.opened;
|
package/components/preloader.js
CHANGED
|
@@ -1,49 +1,52 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createStaticVNode as _createStaticVNode } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "preloader-inner"
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
const _hoisted_2 = /*#__PURE__*/
|
|
7
|
+
const _hoisted_2 = /*#__PURE__*/_createElementVNode("svg", {
|
|
8
8
|
viewBox: "0 0 36 36"
|
|
9
|
-
}, [/*#__PURE__*/
|
|
9
|
+
}, [/*#__PURE__*/_createElementVNode("circle", {
|
|
10
10
|
cx: "18",
|
|
11
11
|
cy: "18",
|
|
12
12
|
r: "16"
|
|
13
13
|
})], -1);
|
|
14
14
|
|
|
15
|
-
const _hoisted_3 =
|
|
15
|
+
const _hoisted_3 = [_hoisted_2];
|
|
16
|
+
const _hoisted_4 = {
|
|
16
17
|
key: 1,
|
|
17
18
|
class: "preloader-inner"
|
|
18
19
|
};
|
|
19
20
|
|
|
20
|
-
const
|
|
21
|
+
const _hoisted_5 = /*#__PURE__*/_createStaticVNode("<span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span>", 8);
|
|
21
22
|
|
|
22
|
-
const
|
|
23
|
+
const _hoisted_13 = [_hoisted_5];
|
|
24
|
+
const _hoisted_14 = {
|
|
23
25
|
key: 2,
|
|
24
26
|
class: "preloader-inner"
|
|
25
27
|
};
|
|
26
28
|
|
|
27
|
-
const
|
|
29
|
+
const _hoisted_15 = /*#__PURE__*/_createElementVNode("span", {
|
|
28
30
|
class: "preloader-inner-circle"
|
|
29
31
|
}, null, -1);
|
|
30
32
|
|
|
31
|
-
const
|
|
33
|
+
const _hoisted_16 = [_hoisted_15];
|
|
34
|
+
const _hoisted_17 = {
|
|
32
35
|
key: 3,
|
|
33
36
|
class: "preloader-inner"
|
|
34
37
|
};
|
|
35
38
|
|
|
36
39
|
function render(_ctx, _cache) {
|
|
37
|
-
return _openBlock(),
|
|
38
|
-
class: _ctx.classes,
|
|
39
|
-
style: _ctx.style
|
|
40
|
-
}, [_ctx.theme && _ctx.theme.md ? (_openBlock(),
|
|
40
|
+
return _openBlock(), _createElementBlock("div", {
|
|
41
|
+
class: _normalizeClass(_ctx.classes),
|
|
42
|
+
style: _normalizeStyle(_ctx.style)
|
|
43
|
+
}, [_ctx.theme && _ctx.theme.md ? (_openBlock(), _createElementBlock("span", _hoisted_1, _hoisted_3)) : _ctx.theme && _ctx.theme.ios ? (_openBlock(), _createElementBlock("span", _hoisted_4, _hoisted_13)) : _ctx.theme && _ctx.theme.aurora ? (_openBlock(), _createElementBlock("span", _hoisted_14, _hoisted_16)) : !_ctx.theme ? (_openBlock(), _createElementBlock("span", _hoisted_17)) : _createCommentVNode("", true)], 6);
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
import { computed } from 'vue';
|
|
44
|
-
import { classNames } from '../shared/utils';
|
|
45
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
46
|
-
import { useTheme } from '../shared/use-theme';
|
|
47
|
+
import { classNames } from '../shared/utils.js';
|
|
48
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
49
|
+
import { useTheme } from '../shared/use-theme.js';
|
|
47
50
|
export default {
|
|
48
51
|
name: 'f7-preloader',
|
|
49
52
|
render,
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = ["data-progress"];
|
|
2
3
|
|
|
3
4
|
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(),
|
|
5
|
+
return _openBlock(), _createElementBlock("span", {
|
|
5
6
|
ref: "elRef",
|
|
6
|
-
class: _ctx.classes,
|
|
7
|
+
class: _normalizeClass(_ctx.classes),
|
|
7
8
|
"data-progress": _ctx.progress
|
|
8
|
-
}, [
|
|
9
|
-
style: _ctx.transformStyle
|
|
10
|
-
}, null, 4)], 10,
|
|
9
|
+
}, [_createElementVNode("span", {
|
|
10
|
+
style: _normalizeStyle(_ctx.transformStyle)
|
|
11
|
+
}, null, 4)], 10, _hoisted_1);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
import { computed, ref } from 'vue';
|
|
14
|
-
import { classNames } from '../shared/utils';
|
|
15
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
16
|
-
import { f7 } from '../shared/f7';
|
|
15
|
+
import { classNames } from '../shared/utils.js';
|
|
16
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
17
|
+
import { f7 } from '../shared/f7.js';
|
|
17
18
|
export default {
|
|
18
19
|
name: 'f7-progressbar',
|
|
19
20
|
render,
|