framework7-vue 7.1.5 → 8.0.0-beta.2
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 +2 -5
- package/components/accordion-item.js +0 -13
- package/components/accordion-toggle.js +2 -5
- package/components/accordion.js +0 -4
- package/components/actions-button.d.ts +1 -1
- package/components/actions-button.js +2 -9
- package/components/actions-group.js +2 -5
- package/components/actions-label.d.ts +1 -1
- package/components/actions-label.js +2 -8
- package/components/actions.js +2 -14
- package/components/app.d.ts +7 -12
- package/components/app.js +11 -24
- package/components/appbar.js +0 -4
- package/components/area-chart.js +4 -41
- package/components/badge.js +0 -4
- package/components/block-footer.js +2 -5
- package/components/block-header.js +2 -5
- package/components/block-title.js +0 -4
- package/components/block.d.ts +61 -9
- package/components/block.js +52 -17
- package/components/breadcrumbs-collapsed.js +0 -5
- package/components/breadcrumbs-item.js +0 -4
- package/components/breadcrumbs-separator.js +0 -4
- package/components/breadcrumbs.js +0 -4
- package/components/button.d.ts +9 -25
- package/components/button.js +9 -25
- package/components/card-content.js +0 -4
- package/components/card-footer.js +2 -5
- package/components/card-header.js +2 -5
- package/components/card.d.ts +17 -5
- package/components/card.js +10 -20
- package/components/checkbox.js +0 -7
- package/components/chip.d.ts +0 -4
- package/components/chip.js +0 -7
- package/components/col.js +0 -6
- package/components/fab-backdrop.js +2 -5
- package/components/fab-button.js +0 -6
- package/components/fab-buttons.js +0 -4
- package/components/fab.js +0 -9
- package/components/gauge.js +0 -4
- package/components/icon.d.ts +0 -4
- package/components/icon.js +1 -18
- package/components/input.js +0 -56
- package/components/link.d.ts +0 -4
- package/components/link.js +4 -13
- package/components/list-button.js +0 -6
- package/components/list-group.js +0 -4
- package/components/list-index.d.ts +0 -5
- package/components/list-index.js +0 -14
- package/components/list-input.d.ts +0 -4
- package/components/list-input.js +0 -53
- package/components/list-item-cell.js +2 -5
- package/components/list-item-row.js +2 -5
- package/components/list-item.d.ts +4 -4
- package/components/list-item.js +12 -52
- package/components/list.d.ts +71 -23
- package/components/list.js +42 -33
- package/components/login-screen-title.js +2 -5
- package/components/login-screen.js +2 -17
- package/components/menu-dropdown-item.js +0 -6
- package/components/menu-dropdown.js +0 -4
- package/components/menu-item.js +0 -14
- package/components/menu.js +2 -5
- package/components/message.js +0 -16
- package/components/messagebar-attachment.js +0 -7
- package/components/messagebar-attachments.js +2 -5
- package/components/messagebar-sheet-image.js +7 -15
- package/components/messagebar-sheet-item.js +2 -5
- package/components/messagebar-sheet.js +2 -5
- package/components/messagebar.js +0 -16
- package/components/messages-title.js +2 -5
- package/components/messages.js +0 -13
- package/components/nav-left.js +0 -9
- package/components/nav-right.js +0 -4
- package/components/nav-title-large.js +2 -5
- package/components/nav-title.js +0 -4
- package/components/navbar.d.ts +5 -8
- package/components/navbar.js +6 -29
- package/components/page-content.js +0 -16
- package/components/page.d.ts +0 -4
- package/components/page.js +2 -67
- package/components/panel.d.ts +4 -0
- package/components/panel.js +2 -23
- package/components/photo-browser.js +2 -18
- package/components/pie-chart.js +4 -20
- package/components/popover.d.ts +5 -0
- package/components/popover.js +8 -16
- package/components/popup.js +3 -19
- package/components/preloader.js +4 -23
- package/components/progressbar.js +0 -6
- package/components/radio.js +0 -7
- package/components/range.js +0 -7
- package/components/routable-modals.js +0 -7
- package/components/row.js +0 -6
- package/components/searchbar.d.ts +5 -8
- package/components/searchbar.js +7 -28
- package/components/segmented.d.ts +0 -12
- package/components/segmented.js +2 -12
- package/components/sheet.js +2 -18
- package/components/stepper.d.ts +0 -20
- package/components/stepper.js +1 -27
- package/components/subnavbar.js +0 -4
- package/components/swipeout-actions.js +0 -6
- package/components/swipeout-button.js +0 -6
- package/components/tab.js +2 -15
- package/components/tabs.js +0 -4
- package/components/text-editor.js +0 -17
- package/components/toggle.js +0 -9
- package/components/toolbar.d.ts +4 -21
- package/components/toolbar.js +12 -34
- package/components/treeview-item.d.ts +0 -4
- package/components/treeview-item.js +0 -13
- package/components/treeview.js +2 -5
- package/components/use-icon.js +0 -4
- package/components/view.d.ts +0 -28
- package/components/view.js +7 -51
- package/components/views.js +0 -4
- package/framework7-vue-bundle.js +1 -34
- package/framework7-vue-web-types.json +1 -1
- package/framework7-vue.d.ts +2 -14
- package/framework7-vue.js +3 -14
- package/package.json +1 -1
- package/shared/components-router.js +0 -32
- package/shared/f7.js +5 -19
- package/shared/get-router-initial-component.js +0 -4
- package/shared/mixins.js +3 -15
- package/shared/plugin.js +2 -8
- package/shared/router-open-in.js +4 -13
- package/shared/use-icon.js +1 -6
- package/shared/use-smart-select.js +0 -1
- package/shared/use-store.js +2 -6
- package/shared/use-tab.js +0 -2
- package/shared/use-theme.js +0 -2
- package/shared/use-tooltip.js +0 -2
- package/shared/utils.js +0 -14
- package/components/appbar.d.ts +0 -67
- package/components/col.d.ts +0 -94
- package/components/list-item-cell.d.ts +0 -46
- package/components/list-item-row.d.ts +0 -46
- package/components/menu-dropdown-item.d.ts +0 -223
- package/components/menu-dropdown.d.ts +0 -66
- package/components/menu-item.d.ts +0 -267
- package/components/menu.d.ts +0 -46
- package/components/row.d.ts +0 -73
- package/components/swiper-slide.d.ts +0 -5
- package/components/swiper.d.ts +0 -5
package/components/messages.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
return _openBlock(), _createElementBlock("div", {
|
|
5
4
|
ref: "elRef",
|
|
6
5
|
class: _normalizeClass(_ctx.classes)
|
|
7
6
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
import { computed, ref, onMounted, onBeforeUnmount, onBeforeUpdate, onUpdated, watch } from 'vue';
|
|
11
9
|
import { classNames, getChildren, noUndefinedProps } from '../shared/utils.js';
|
|
12
10
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -21,11 +19,9 @@ export default {
|
|
|
21
19
|
},
|
|
22
20
|
messages: {
|
|
23
21
|
type: Array,
|
|
24
|
-
|
|
25
22
|
default() {
|
|
26
23
|
return [];
|
|
27
24
|
}
|
|
28
|
-
|
|
29
25
|
},
|
|
30
26
|
newMessagesFirst: {
|
|
31
27
|
type: Boolean,
|
|
@@ -58,7 +54,6 @@ export default {
|
|
|
58
54
|
},
|
|
59
55
|
...colorProps
|
|
60
56
|
},
|
|
61
|
-
|
|
62
57
|
setup(props, _ref) {
|
|
63
58
|
let {
|
|
64
59
|
slots
|
|
@@ -86,7 +81,6 @@ export default {
|
|
|
86
81
|
customClassMessageRule: props.customClassMessageRule,
|
|
87
82
|
renderMessage: props.renderMessage
|
|
88
83
|
}));
|
|
89
|
-
|
|
90
84
|
if (f7Messages && props.typing) {
|
|
91
85
|
f7Messages.showTyping();
|
|
92
86
|
}
|
|
@@ -97,13 +91,10 @@ export default {
|
|
|
97
91
|
const children = elRef.value.children;
|
|
98
92
|
if (!children) return;
|
|
99
93
|
childrenBeforeUpdated = children.length;
|
|
100
|
-
|
|
101
94
|
for (let i = 0; i < children.length; i += 1) {
|
|
102
95
|
children[i].classList.add('message-appeared');
|
|
103
96
|
}
|
|
104
|
-
|
|
105
97
|
const childrenAfterUpdate = getChildren(slots);
|
|
106
|
-
|
|
107
98
|
if (f7Messages && props.scrollMessages && childrenBeforeUpdated !== childrenAfterUpdate) {
|
|
108
99
|
f7Messages.setScrollData();
|
|
109
100
|
}
|
|
@@ -114,17 +105,14 @@ export default {
|
|
|
114
105
|
const children = elRef.value.children;
|
|
115
106
|
if (!children) return;
|
|
116
107
|
const childerAftterUpdated = children.length;
|
|
117
|
-
|
|
118
108
|
for (let i = 0; i < children.length; i += 1) {
|
|
119
109
|
if (!children[i].classList.contains('message-appeared')) {
|
|
120
110
|
children[i].classList.add('message-appear-from-bottom');
|
|
121
111
|
}
|
|
122
112
|
}
|
|
123
|
-
|
|
124
113
|
if (f7Messages && f7Messages.layout && props.autoLayout) {
|
|
125
114
|
f7Messages.layout();
|
|
126
115
|
}
|
|
127
|
-
|
|
128
116
|
if (childerAftterUpdated !== childrenBeforeUpdated && f7Messages && f7Messages.scroll && f7Messages.scrollData && props.scrollMessages) {
|
|
129
117
|
f7Messages.scrollWithEdgeCheck(true);
|
|
130
118
|
}
|
|
@@ -143,5 +131,4 @@ export default {
|
|
|
143
131
|
classes
|
|
144
132
|
};
|
|
145
133
|
}
|
|
146
|
-
|
|
147
134
|
};
|
package/components/nav-left.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
const _component_f7_link = _resolveComponent("f7-link");
|
|
5
|
-
|
|
6
4
|
return _openBlock(), _createElementBlock("div", {
|
|
7
5
|
class: _normalizeClass(_ctx.classes)
|
|
8
6
|
}, [_ctx.backLink ? (_openBlock(), _createBlock(_component_f7_link, {
|
|
@@ -16,7 +14,6 @@ function render(_ctx, _cache) {
|
|
|
16
14
|
onClick: _ctx.onBackClick
|
|
17
15
|
}, null, 8, ["href", "force", "class", "text", "onClick"])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2);
|
|
18
16
|
}
|
|
19
|
-
|
|
20
17
|
import { computed } from 'vue';
|
|
21
18
|
import { classNames } from '../shared/utils.js';
|
|
22
19
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -40,26 +37,21 @@ export default {
|
|
|
40
37
|
...colorProps
|
|
41
38
|
},
|
|
42
39
|
emits: ['back:click', 'click:back'],
|
|
43
|
-
|
|
44
40
|
setup(props, _ref) {
|
|
45
41
|
let {
|
|
46
42
|
emit
|
|
47
43
|
} = _ref;
|
|
48
|
-
|
|
49
44
|
const onBackClick = event => {
|
|
50
45
|
emit('back:click', event);
|
|
51
46
|
emit('click:back', event);
|
|
52
47
|
};
|
|
53
|
-
|
|
54
48
|
const theme = useTheme();
|
|
55
49
|
const text = computed(() => {
|
|
56
50
|
let needBackLinkText = props.backLinkShowText;
|
|
57
51
|
if (typeof needBackLinkText === 'undefined') needBackLinkText = !theme.value.md;
|
|
58
|
-
|
|
59
52
|
if (props.backLink) {
|
|
60
53
|
return props.backLink !== true && needBackLinkText ? props.backLink : undefined;
|
|
61
54
|
}
|
|
62
|
-
|
|
63
55
|
return undefined;
|
|
64
56
|
});
|
|
65
57
|
const classes = computed(() => classNames('left', {
|
|
@@ -71,5 +63,4 @@ export default {
|
|
|
71
63
|
text
|
|
72
64
|
};
|
|
73
65
|
}
|
|
74
|
-
|
|
75
66
|
};
|
package/components/nav-right.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
return _openBlock(), _createElementBlock("div", {
|
|
5
4
|
class: _normalizeClass(_ctx.classes)
|
|
6
5
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
7
6
|
}
|
|
8
|
-
|
|
9
7
|
import { computed } from 'vue';
|
|
10
8
|
import { classNames } from '../shared/utils.js';
|
|
11
9
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -16,7 +14,6 @@ export default {
|
|
|
16
14
|
sliding: Boolean,
|
|
17
15
|
...colorProps
|
|
18
16
|
},
|
|
19
|
-
|
|
20
17
|
setup(props) {
|
|
21
18
|
const classes = computed(() => classNames('right', {
|
|
22
19
|
sliding: props.sliding
|
|
@@ -25,5 +22,4 @@ export default {
|
|
|
25
22
|
classes
|
|
26
23
|
};
|
|
27
24
|
}
|
|
28
|
-
|
|
29
25
|
};
|
|
@@ -2,27 +2,24 @@ import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, n
|
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
class: "title-large-text"
|
|
4
4
|
};
|
|
5
|
-
|
|
6
5
|
function render(_ctx, _cache) {
|
|
7
6
|
return _openBlock(), _createElementBlock("div", {
|
|
8
7
|
class: _normalizeClass(_ctx.classes)
|
|
9
8
|
}, [_createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])], 2);
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
import { computed } from 'vue';
|
|
13
11
|
import { classNames } from '../shared/utils.js';
|
|
14
12
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
15
13
|
export default {
|
|
16
14
|
name: 'f7-nav-title-large',
|
|
17
15
|
render,
|
|
18
|
-
props: {
|
|
16
|
+
props: {
|
|
17
|
+
...colorProps
|
|
19
18
|
},
|
|
20
|
-
|
|
21
19
|
setup(props) {
|
|
22
20
|
const classes = computed(() => classNames('title-large', colorClasses(props)));
|
|
23
21
|
return {
|
|
24
22
|
classes
|
|
25
23
|
};
|
|
26
24
|
}
|
|
27
|
-
|
|
28
25
|
};
|
package/components/nav-title.js
CHANGED
|
@@ -3,13 +3,11 @@ const _hoisted_1 = {
|
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "subtitle"
|
|
5
5
|
};
|
|
6
|
-
|
|
7
6
|
function render(_ctx, _cache) {
|
|
8
7
|
return _openBlock(), _createElementBlock("div", {
|
|
9
8
|
class: _normalizeClass(_ctx.classes)
|
|
10
9
|
}, [_renderSlot(_ctx.$slots, "default"), _createTextVNode(" " + _toDisplayString(_ctx.title) + " ", 1), _ctx.subtitle ? (_openBlock(), _createElementBlock("span", _hoisted_1, _toDisplayString(_ctx.subtitle), 1)) : _createCommentVNode("", true)], 2);
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
import { computed } from 'vue';
|
|
14
12
|
import { classNames } from '../shared/utils.js';
|
|
15
13
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -22,7 +20,6 @@ export default {
|
|
|
22
20
|
sliding: Boolean,
|
|
23
21
|
...colorProps
|
|
24
22
|
},
|
|
25
|
-
|
|
26
23
|
setup(props) {
|
|
27
24
|
const classes = computed(() => classNames('title', {
|
|
28
25
|
sliding: props.sliding
|
|
@@ -31,5 +28,4 @@ export default {
|
|
|
31
28
|
classes
|
|
32
29
|
};
|
|
33
30
|
}
|
|
34
|
-
|
|
35
31
|
};
|
package/components/navbar.d.ts
CHANGED
|
@@ -29,14 +29,6 @@ declare const Navbar: DefineComponent<
|
|
|
29
29
|
type: BooleanConstructor;
|
|
30
30
|
},
|
|
31
31
|
|
|
32
|
-
noShadow: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
noHairline: {
|
|
37
|
-
type: BooleanConstructor;
|
|
38
|
-
},
|
|
39
|
-
|
|
40
32
|
innerClass: {
|
|
41
33
|
type: StringConstructor;
|
|
42
34
|
},
|
|
@@ -71,6 +63,11 @@ declare const Navbar: DefineComponent<
|
|
|
71
63
|
default: boolean;
|
|
72
64
|
},
|
|
73
65
|
|
|
66
|
+
outline: {
|
|
67
|
+
type: any;
|
|
68
|
+
default: boolean;
|
|
69
|
+
},
|
|
70
|
+
|
|
74
71
|
color: {
|
|
75
72
|
type: StringConstructor;
|
|
76
73
|
},
|
package/components/navbar.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
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
|
-
|
|
3
2
|
const _hoisted_1 = /*#__PURE__*/_createElementVNode("div", {
|
|
4
3
|
class: "navbar-bg"
|
|
5
4
|
}, null, -1);
|
|
6
|
-
|
|
7
5
|
const _hoisted_2 = {
|
|
8
6
|
key: 3,
|
|
9
7
|
className: "title-large"
|
|
@@ -11,14 +9,10 @@ const _hoisted_2 = {
|
|
|
11
9
|
const _hoisted_3 = {
|
|
12
10
|
className: "title-large-text"
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
function render(_ctx, _cache) {
|
|
16
13
|
const _component_f7_nav_left = _resolveComponent("f7-nav-left");
|
|
17
|
-
|
|
18
14
|
const _component_f7_nav_title = _resolveComponent("f7-nav-title");
|
|
19
|
-
|
|
20
15
|
const _component_f7_nav_right = _resolveComponent("f7-nav-right");
|
|
21
|
-
|
|
22
16
|
return _openBlock(), _createElementBlock("div", {
|
|
23
17
|
ref: "elRef",
|
|
24
18
|
class: _normalizeClass(_ctx.classes)
|
|
@@ -48,7 +42,6 @@ function render(_ctx, _cache) {
|
|
|
48
42
|
_: 3
|
|
49
43
|
})) : _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
44
|
}
|
|
51
|
-
|
|
52
45
|
import { computed, ref, onMounted, onBeforeUnmount } from 'vue';
|
|
53
46
|
import { classNames } from '../shared/utils.js';
|
|
54
47
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -80,8 +73,10 @@ export default {
|
|
|
80
73
|
title: String,
|
|
81
74
|
subtitle: String,
|
|
82
75
|
hidden: Boolean,
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
outline: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: true
|
|
79
|
+
},
|
|
85
80
|
innerClass: String,
|
|
86
81
|
innerClassName: String,
|
|
87
82
|
large: Boolean,
|
|
@@ -91,7 +86,6 @@ export default {
|
|
|
91
86
|
...colorProps
|
|
92
87
|
},
|
|
93
88
|
emits: ['navbar:hide', 'navbar:show', 'navbar:expand', 'navbar:collapse', 'navbar:transparentshow', 'navbar:transparenthide', 'click:back', 'back:click'],
|
|
94
|
-
|
|
95
89
|
setup(props, _ref) {
|
|
96
90
|
let {
|
|
97
91
|
emit,
|
|
@@ -105,82 +99,67 @@ export default {
|
|
|
105
99
|
let transparentVisible = false;
|
|
106
100
|
const elRef = ref(null);
|
|
107
101
|
const theme = useTheme();
|
|
108
|
-
|
|
109
102
|
const onHide = navbarEl => {
|
|
110
103
|
if (elRef.value !== navbarEl) return;
|
|
111
104
|
emit('navbar:hide');
|
|
112
105
|
};
|
|
113
|
-
|
|
114
106
|
const onShow = navbarEl => {
|
|
115
107
|
if (elRef.value !== navbarEl) return;
|
|
116
108
|
emit('navbar:show');
|
|
117
109
|
};
|
|
118
|
-
|
|
119
110
|
const onExpand = navbarEl => {
|
|
120
111
|
if (elRef.value !== navbarEl) return;
|
|
121
112
|
largeCollapsed = false;
|
|
122
113
|
emit('navbar:expand');
|
|
123
114
|
};
|
|
124
|
-
|
|
125
115
|
const onCollapse = navbarEl => {
|
|
126
116
|
if (elRef.value !== navbarEl) return;
|
|
127
117
|
largeCollapsed = true;
|
|
128
118
|
emit('navbar:collapse');
|
|
129
119
|
};
|
|
130
|
-
|
|
131
120
|
const onNavbarTransparentShow = navbarEl => {
|
|
132
121
|
if (elRef.value !== navbarEl) return;
|
|
133
122
|
transparentVisible = true;
|
|
134
123
|
emit('navbar:transparentshow');
|
|
135
124
|
};
|
|
136
|
-
|
|
137
125
|
const onNavbarTransparentHide = navbarEl => {
|
|
138
126
|
if (elRef.value !== navbarEl) return;
|
|
139
127
|
transparentVisible = false;
|
|
140
128
|
emit('navbar:transparenthide');
|
|
141
129
|
};
|
|
142
|
-
|
|
143
130
|
const onNavbarPosition = (navbarEl, position) => {
|
|
144
131
|
if (elRef.value !== navbarEl) return;
|
|
145
132
|
routerPositionClass = position ? `navbar-${position}` : '';
|
|
146
133
|
};
|
|
147
|
-
|
|
148
134
|
const onNavbarRole = (navbarEl, rolesData) => {
|
|
149
135
|
if (elRef.value !== navbarEl) return;
|
|
150
136
|
routerNavbarRole = rolesData.role;
|
|
151
137
|
routerNavbarRoleDetailRoot = rolesData.detailRoot;
|
|
152
138
|
};
|
|
153
|
-
|
|
154
139
|
const onNavbarMasterStack = navbarEl => {
|
|
155
140
|
if (elRef.value !== navbarEl) return;
|
|
156
141
|
routerNavbarMasterStack = true;
|
|
157
142
|
};
|
|
158
|
-
|
|
159
143
|
const onNavbarMasterUnstack = navbarEl => {
|
|
160
144
|
if (elRef.value !== navbarEl) return;
|
|
161
145
|
routerNavbarMasterStack = false;
|
|
162
146
|
};
|
|
163
|
-
|
|
164
147
|
const hide = animate => {
|
|
165
148
|
if (!f7) return;
|
|
166
149
|
f7.navbar.hide(elRef.value, animate);
|
|
167
150
|
};
|
|
168
|
-
|
|
169
151
|
const show = animate => {
|
|
170
152
|
if (!f7) return;
|
|
171
153
|
f7.navbar.show(elRef.value, animate);
|
|
172
154
|
};
|
|
173
|
-
|
|
174
155
|
const size = () => {
|
|
175
156
|
if (!f7) return;
|
|
176
157
|
f7.navbar.size(elRef.value);
|
|
177
158
|
};
|
|
178
|
-
|
|
179
159
|
const onBackClick = event => {
|
|
180
160
|
emit('back:click', event);
|
|
181
161
|
emit('click:back', event);
|
|
182
162
|
};
|
|
183
|
-
|
|
184
163
|
onMounted(() => {
|
|
185
164
|
if (!elRef.value) return;
|
|
186
165
|
f7ready(() => {
|
|
@@ -211,7 +190,7 @@ export default {
|
|
|
211
190
|
f7.off('navbarTransparentHide', onNavbarTransparentHide);
|
|
212
191
|
});
|
|
213
192
|
const addLeftTitleClass = computed(() => theme.value && theme.value.ios && f7 && !f7.params.navbar.iosCenterTitle);
|
|
214
|
-
const addCenterTitleClass = computed(() => theme.value && theme.value.md && f7 && f7.params.navbar.mdCenterTitle
|
|
193
|
+
const addCenterTitleClass = computed(() => theme.value && theme.value.md && f7 && f7.params.navbar.mdCenterTitle);
|
|
215
194
|
const isLarge = computed(() => props.large || props.largeTransparent);
|
|
216
195
|
const isTransparent = computed(() => props.transparent || isLarge.value && props.largeTransparent);
|
|
217
196
|
const isTransparentVisible = computed(() => isTransparent.value && transparentVisible);
|
|
@@ -225,8 +204,7 @@ export default {
|
|
|
225
204
|
'navbar-master-detail': routerNavbarRole === 'detail',
|
|
226
205
|
'navbar-master-detail-root': routerNavbarRoleDetailRoot === true,
|
|
227
206
|
'navbar-master-stacked': routerNavbarMasterStack === true,
|
|
228
|
-
'no-
|
|
229
|
-
'no-hairline': props.noHairline
|
|
207
|
+
'no-outline': !props.outline
|
|
230
208
|
}, colorClasses(props)));
|
|
231
209
|
const largeTitle = computed(() => {
|
|
232
210
|
let largeTitleText = props.titleLarge;
|
|
@@ -267,5 +245,4 @@ export default {
|
|
|
267
245
|
onBackClick
|
|
268
246
|
};
|
|
269
247
|
}
|
|
270
|
-
|
|
271
248
|
};
|
|
@@ -4,23 +4,18 @@ const _hoisted_2 = {
|
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "ptr-preloader"
|
|
6
6
|
};
|
|
7
|
-
|
|
8
7
|
const _hoisted_3 = /*#__PURE__*/_createElementVNode("div", {
|
|
9
8
|
class: "ptr-arrow"
|
|
10
9
|
}, null, -1);
|
|
11
|
-
|
|
12
10
|
const _hoisted_4 = {
|
|
13
11
|
key: 3,
|
|
14
12
|
class: "ptr-preloader"
|
|
15
13
|
};
|
|
16
|
-
|
|
17
14
|
const _hoisted_5 = /*#__PURE__*/_createElementVNode("div", {
|
|
18
15
|
class: "ptr-arrow"
|
|
19
16
|
}, null, -1);
|
|
20
|
-
|
|
21
17
|
function render(_ctx, _cache) {
|
|
22
18
|
const _component_f7_preloader = _resolveComponent("f7-preloader");
|
|
23
|
-
|
|
24
19
|
return _openBlock(), _createElementBlock("div", {
|
|
25
20
|
ref: "elRef",
|
|
26
21
|
class: _normalizeClass(_ctx.classes),
|
|
@@ -35,7 +30,6 @@ function render(_ctx, _cache) {
|
|
|
35
30
|
class: "infinite-scroll-preloader"
|
|
36
31
|
})) : _createCommentVNode("", true), _ctx.ptr && _ctx.ptrPreloader && _ctx.ptrBottom ? (_openBlock(), _createElementBlock("div", _hoisted_4, [_createVNode(_component_f7_preloader), _hoisted_5])) : _createCommentVNode("", true)], 10, _hoisted_1);
|
|
37
32
|
}
|
|
38
|
-
|
|
39
33
|
import { computed, ref, onMounted, onBeforeUnmount } from 'vue';
|
|
40
34
|
import { classNames } from '../shared/utils.js';
|
|
41
35
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -74,48 +68,40 @@ export default {
|
|
|
74
68
|
...colorProps
|
|
75
69
|
},
|
|
76
70
|
emits: ['ptr:pullstart', 'ptr:pullmove', 'ptr:pullend', 'ptr:refresh', 'ptr:done', 'infinite', 'ptrPullStart', 'ptrPullMove', 'ptrPullEnd', 'ptrRefresh', 'ptrDone', 'tab:hide', 'tab:show'],
|
|
77
|
-
|
|
78
71
|
setup(props, _ref) {
|
|
79
72
|
let {
|
|
80
73
|
emit
|
|
81
74
|
} = _ref;
|
|
82
75
|
const elRef = ref(null);
|
|
83
|
-
|
|
84
76
|
const onPtrPullStart = el => {
|
|
85
77
|
if (elRef.value !== el) return;
|
|
86
78
|
emit('ptr:pullstart');
|
|
87
79
|
emit('ptrPullStart');
|
|
88
80
|
};
|
|
89
|
-
|
|
90
81
|
const onPtrPullMove = el => {
|
|
91
82
|
if (elRef.value !== el) return;
|
|
92
83
|
emit('ptr:pullmove');
|
|
93
84
|
emit('ptrPullMove');
|
|
94
85
|
};
|
|
95
|
-
|
|
96
86
|
const onPtrPullEnd = el => {
|
|
97
87
|
if (elRef.value !== el) return;
|
|
98
88
|
emit('ptr:pullend');
|
|
99
89
|
emit('ptrPullEnd');
|
|
100
90
|
};
|
|
101
|
-
|
|
102
91
|
const onPtrRefresh = (el, done) => {
|
|
103
92
|
if (elRef.value !== el) return;
|
|
104
93
|
emit('ptr:refresh', done);
|
|
105
94
|
emit('ptrRefresh', done);
|
|
106
95
|
};
|
|
107
|
-
|
|
108
96
|
const onPtrDone = el => {
|
|
109
97
|
if (elRef.value !== el) return;
|
|
110
98
|
emit('ptr:done');
|
|
111
99
|
emit('ptrDone');
|
|
112
100
|
};
|
|
113
|
-
|
|
114
101
|
const onInfinite = el => {
|
|
115
102
|
if (elRef.value !== el) return;
|
|
116
103
|
emit('infinite');
|
|
117
104
|
};
|
|
118
|
-
|
|
119
105
|
useTab(elRef, emit);
|
|
120
106
|
onMounted(() => {
|
|
121
107
|
f7ready(() => {
|
|
@@ -126,7 +112,6 @@ export default {
|
|
|
126
112
|
f7.on('ptrRefresh', onPtrRefresh);
|
|
127
113
|
f7.on('ptrDone', onPtrDone);
|
|
128
114
|
}
|
|
129
|
-
|
|
130
115
|
if (props.infinite) {
|
|
131
116
|
f7.on('infinite', onInfinite);
|
|
132
117
|
}
|
|
@@ -159,5 +144,4 @@ export default {
|
|
|
159
144
|
classes
|
|
160
145
|
};
|
|
161
146
|
}
|
|
162
|
-
|
|
163
147
|
};
|