framework7-vue 8.3.4 → 9.0.0
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-item.js +3 -4
- package/components/actions-button.js +5 -8
- package/components/actions-label.js +4 -7
- package/components/actions.js +3 -4
- package/components/app.d.ts +5 -0
- package/components/app.js +4 -0
- package/components/area-chart.js +19 -24
- package/components/block.js +3 -4
- package/components/breadcrumbs-collapsed.js +1 -2
- package/components/card.js +4 -5
- package/components/checkbox.js +7 -11
- package/components/chip.js +5 -8
- package/components/fab-button.js +4 -7
- package/components/fab.js +4 -5
- package/components/input.js +8 -21
- package/components/link.js +3 -4
- package/components/list-button.js +4 -7
- package/components/list-index.js +3 -4
- package/components/list-input.js +8 -21
- package/components/list-item.js +15 -17
- package/components/list.js +4 -5
- package/components/login-screen.js +3 -4
- package/components/message.js +13 -32
- package/components/messagebar-attachment.js +5 -10
- package/components/messagebar-sheet-image.js +9 -13
- package/components/messagebar.d.ts +6 -6
- package/components/messagebar.js +9 -8
- package/components/messages.js +3 -4
- package/components/nav-left.d.ts +0 -4
- package/components/nav-left.js +5 -13
- package/components/nav-right.d.ts +0 -4
- package/components/nav-right.js +1 -4
- package/components/nav-title.d.ts +0 -4
- package/components/nav-title.js +1 -4
- package/components/navbar.d.ts +0 -5
- package/components/navbar.js +10 -43
- package/components/page-content.js +10 -13
- package/components/page.js +4 -5
- package/components/panel.js +4 -8
- package/components/photo-browser.d.ts +0 -5
- package/components/photo-browser.js +3 -8
- package/components/pie-chart.js +12 -14
- package/components/popover.d.ts +0 -5
- package/components/popover.js +5 -16
- package/components/popup.js +3 -4
- package/components/preloader.js +9 -13
- package/components/radio.js +7 -11
- package/components/range.js +3 -4
- package/components/searchbar.js +18 -27
- package/components/sheet.js +4 -5
- package/components/stepper.js +7 -16
- package/components/subnavbar.d.ts +0 -4
- package/components/subnavbar.js +1 -4
- package/components/swipeout-button.js +4 -7
- package/components/tab.js +3 -4
- package/components/text-editor.js +3 -4
- package/components/toggle.js +7 -11
- package/components/toolbar-pane.d.ts +19 -0
- package/components/toolbar-pane.js +22 -0
- package/components/toolbar.js +3 -4
- package/components/treeview-item.js +4 -5
- package/components/view.d.ts +0 -10
- package/components/view.js +4 -15
- package/framework7-vue-bundle.js +3 -1
- package/framework7-vue.d.ts +2 -1
- package/framework7-vue.js +5 -4
- package/package.json +2 -2
- package/shared/components-router.js +20 -23
- package/shared/f7.js +1 -7
- package/shared/modal-state-classes.js +4 -5
- package/shared/plugin.js +1 -4
- package/shared/use-icon.js +1 -4
- package/shared/use-route-props.js +3 -4
- package/shared/use-store.js +5 -5
- package/shared/utils.js +3 -12
- package/framework7-vue-web-types.json +0 -14296
package/components/message.js
CHANGED
|
@@ -15,60 +15,42 @@ const _hoisted_5 = {
|
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "message-typing-indicator"
|
|
17
17
|
};
|
|
18
|
-
const _hoisted_6 =
|
|
19
|
-
const _hoisted_7 = /*#__PURE__*/_createElementVNode("div", null, null, -1);
|
|
20
|
-
const _hoisted_8 = /*#__PURE__*/_createElementVNode("div", null, null, -1);
|
|
21
|
-
const _hoisted_9 = [_hoisted_6, _hoisted_7, _hoisted_8];
|
|
22
|
-
const _hoisted_10 = {
|
|
18
|
+
const _hoisted_6 = {
|
|
23
19
|
key: 3,
|
|
24
20
|
class: "message-text-footer"
|
|
25
21
|
};
|
|
26
22
|
function render(_ctx, _cache) {
|
|
27
23
|
return _openBlock(), _createElementBlock("div", {
|
|
28
24
|
class: _normalizeClass(_ctx.classes),
|
|
29
|
-
onClick: _cache[6] || (_cache[6] =
|
|
30
|
-
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
31
|
-
})
|
|
25
|
+
onClick: _cache[6] || (_cache[6] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
32
26
|
}, [_renderSlot(_ctx.$slots, "start"), _ctx.hasAvatar ? (_openBlock(), _createElementBlock("div", {
|
|
33
27
|
key: 0,
|
|
34
28
|
class: "message-avatar",
|
|
35
29
|
style: _normalizeStyle({
|
|
36
30
|
backgroundImage: _ctx.avatar && `url(${_ctx.avatar})`
|
|
37
31
|
}),
|
|
38
|
-
onClick: _cache[0] || (_cache[0] =
|
|
39
|
-
return _ctx.onAvatarClick && _ctx.onAvatarClick(...arguments);
|
|
40
|
-
})
|
|
32
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onAvatarClick && _ctx.onAvatarClick(...args))
|
|
41
33
|
}, [_renderSlot(_ctx.$slots, "avatar")], 4)) : _createCommentVNode("", true), _createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "content-start"), _ctx.hasName ? (_openBlock(), _createElementBlock("div", {
|
|
42
34
|
key: 0,
|
|
43
35
|
class: "message-name",
|
|
44
|
-
onClick: _cache[1] || (_cache[1] =
|
|
45
|
-
return _ctx.onNameClick && _ctx.onNameClick(...arguments);
|
|
46
|
-
})
|
|
36
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onNameClick && _ctx.onNameClick(...args))
|
|
47
37
|
}, [_createTextVNode(_toDisplayString(_ctx.name) + " ", 1), _renderSlot(_ctx.$slots, "name")])) : _createCommentVNode("", true), _ctx.hasHeader ? (_openBlock(), _createElementBlock("div", {
|
|
48
38
|
key: 1,
|
|
49
39
|
class: "message-header",
|
|
50
|
-
onClick: _cache[2] || (_cache[2] =
|
|
51
|
-
return _ctx.onHeaderClick && _ctx.onHeaderClick(...arguments);
|
|
52
|
-
})
|
|
40
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onHeaderClick && _ctx.onHeaderClick(...args))
|
|
53
41
|
}, [_createTextVNode(_toDisplayString(_ctx.header) + " ", 1), _renderSlot(_ctx.$slots, "header")])) : _createCommentVNode("", true), _createElementVNode("div", {
|
|
54
42
|
class: "message-bubble",
|
|
55
|
-
onClick: _cache[4] || (_cache[4] =
|
|
56
|
-
return _ctx.onBubbleClick && _ctx.onBubbleClick(...arguments);
|
|
57
|
-
})
|
|
43
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.onBubbleClick && _ctx.onBubbleClick(...args))
|
|
58
44
|
}, [_renderSlot(_ctx.$slots, "bubble-start"), _ctx.hasImage ? (_openBlock(), _createElementBlock("div", _hoisted_2, [_renderSlot(_ctx.$slots, "image", {}, () => [_createElementVNode("img", {
|
|
59
45
|
src: _ctx.image
|
|
60
46
|
}, null, 8, _hoisted_3)])])) : _createCommentVNode("", true), _ctx.hasTextHeader ? (_openBlock(), _createElementBlock("div", _hoisted_4, [_createTextVNode(_toDisplayString(_ctx.textHeader) + " ", 1), _renderSlot(_ctx.$slots, "text-header")])) : _createCommentVNode("", true), _ctx.hasText ? (_openBlock(), _createElementBlock("div", {
|
|
61
47
|
key: 2,
|
|
62
48
|
class: "message-text",
|
|
63
|
-
onClick: _cache[3] || (_cache[3] =
|
|
64
|
-
|
|
65
|
-
})
|
|
66
|
-
}, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "text"), _ctx.typing ? (_openBlock(), _createElementBlock("div", _hoisted_5, _hoisted_9)) : _createCommentVNode("", true)])) : _createCommentVNode("", true), _ctx.hasTextFooter ? (_openBlock(), _createElementBlock("div", _hoisted_10, [_createTextVNode(_toDisplayString(_ctx.textFooter) + " ", 1), _renderSlot(_ctx.$slots, "text-footer")])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "bubble-end"), _renderSlot(_ctx.$slots, "default")]), _ctx.hasFooter ? (_openBlock(), _createElementBlock("div", {
|
|
49
|
+
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onTextClick && _ctx.onTextClick(...args))
|
|
50
|
+
}, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "text"), _ctx.typing ? (_openBlock(), _createElementBlock("div", _hoisted_5, [...(_cache[7] || (_cache[7] = [_createElementVNode("div", null, null, -1), _createElementVNode("div", null, null, -1), _createElementVNode("div", null, null, -1)]))])) : _createCommentVNode("", true)])) : _createCommentVNode("", true), _ctx.hasTextFooter ? (_openBlock(), _createElementBlock("div", _hoisted_6, [_createTextVNode(_toDisplayString(_ctx.textFooter) + " ", 1), _renderSlot(_ctx.$slots, "text-footer")])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "bubble-end"), _renderSlot(_ctx.$slots, "default")]), _ctx.hasFooter ? (_openBlock(), _createElementBlock("div", {
|
|
67
51
|
key: 2,
|
|
68
52
|
class: "message-footer",
|
|
69
|
-
onClick: _cache[5] || (_cache[5] =
|
|
70
|
-
return _ctx.onFooterClick && _ctx.onFooterClick(...arguments);
|
|
71
|
-
})
|
|
53
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onFooterClick && _ctx.onFooterClick(...args))
|
|
72
54
|
}, [_createTextVNode(_toDisplayString(_ctx.footer) + " ", 1), _renderSlot(_ctx.$slots, "footer")])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "content-end")]), _renderSlot(_ctx.$slots, "end")], 2);
|
|
73
55
|
}
|
|
74
56
|
import { computed } from 'vue';
|
|
@@ -101,11 +83,10 @@ export default {
|
|
|
101
83
|
...colorProps
|
|
102
84
|
},
|
|
103
85
|
emits: ['click', 'click:name', 'click:text', 'click:avatar', 'click:header', 'click:footer', 'click:bubble'],
|
|
104
|
-
setup(props,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
} = _ref;
|
|
86
|
+
setup(props, {
|
|
87
|
+
emit,
|
|
88
|
+
slots
|
|
89
|
+
}) {
|
|
109
90
|
const onClick = event => {
|
|
110
91
|
emit('click', event);
|
|
111
92
|
};
|
|
@@ -3,18 +3,14 @@ const _hoisted_1 = ["src"];
|
|
|
3
3
|
function render(_ctx, _cache) {
|
|
4
4
|
return _openBlock(), _createElementBlock("div", {
|
|
5
5
|
class: _normalizeClass(_ctx.classes),
|
|
6
|
-
onClick: _cache[1] || (_cache[1] =
|
|
7
|
-
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
8
|
-
})
|
|
6
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
9
7
|
}, [_ctx.image ? (_openBlock(), _createElementBlock("img", {
|
|
10
8
|
key: 0,
|
|
11
9
|
src: _ctx.image
|
|
12
10
|
}, null, 8, _hoisted_1)) : _createCommentVNode("", true), _ctx.deletable ? (_openBlock(), _createElementBlock("span", {
|
|
13
11
|
key: 1,
|
|
14
12
|
class: "messagebar-attachment-delete",
|
|
15
|
-
onClick: _cache[0] || (_cache[0] =
|
|
16
|
-
return _ctx.onDeleteClick && _ctx.onDeleteClick(...arguments);
|
|
17
|
-
})
|
|
13
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onDeleteClick && _ctx.onDeleteClick(...args))
|
|
18
14
|
})) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2);
|
|
19
15
|
}
|
|
20
16
|
import { computed } from 'vue';
|
|
@@ -32,10 +28,9 @@ export default {
|
|
|
32
28
|
...colorProps
|
|
33
29
|
},
|
|
34
30
|
emits: ['attachment:click', 'attachment:delete'],
|
|
35
|
-
setup(props,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} = _ref;
|
|
31
|
+
setup(props, {
|
|
32
|
+
emit
|
|
33
|
+
}) {
|
|
39
34
|
const onClick = event => {
|
|
40
35
|
emit('attachment:click', event);
|
|
41
36
|
};
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass } from "vue";
|
|
2
2
|
const _hoisted_1 = ["checked"];
|
|
3
|
-
const _hoisted_2 =
|
|
4
|
-
class: "icon icon-checkbox"
|
|
5
|
-
}, null, -1);
|
|
6
|
-
const _hoisted_3 = ["src"];
|
|
3
|
+
const _hoisted_2 = ["src"];
|
|
7
4
|
function render(_ctx, _cache) {
|
|
8
5
|
return _openBlock(), _createElementBlock("label", {
|
|
9
6
|
class: _normalizeClass(_ctx.classes)
|
|
10
7
|
}, [_createElementVNode("input", {
|
|
11
8
|
type: "checkbox",
|
|
12
9
|
checked: _ctx.checked,
|
|
13
|
-
onChange: _cache[0] || (_cache[0] =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}, null,
|
|
10
|
+
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
11
|
+
}, null, 40, _hoisted_1), _cache[1] || (_cache[1] = _createElementVNode("i", {
|
|
12
|
+
class: "icon icon-checkbox"
|
|
13
|
+
}, null, -1)), _ctx.image ? (_openBlock(), _createElementBlock("img", {
|
|
17
14
|
key: 0,
|
|
18
15
|
src: _ctx.image
|
|
19
|
-
}, null, 8,
|
|
16
|
+
}, null, 8, _hoisted_2)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2);
|
|
20
17
|
}
|
|
21
18
|
import { computed } from 'vue';
|
|
22
19
|
import { classNames } from '../shared/utils.js';
|
|
@@ -30,10 +27,9 @@ export default {
|
|
|
30
27
|
...colorProps
|
|
31
28
|
},
|
|
32
29
|
emits: ['checked', 'unchecked', 'change', 'update:checked'],
|
|
33
|
-
setup(props,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} = _ref;
|
|
30
|
+
setup(props, {
|
|
31
|
+
emit
|
|
32
|
+
}) {
|
|
37
33
|
const onChange = event => {
|
|
38
34
|
if (event.target.checked) emit('checked', event);else emit('unchecked', event);
|
|
39
35
|
emit('update:checked', event.target.checked);
|
|
@@ -46,32 +46,32 @@ declare const Messagebar: DefineComponent<
|
|
|
46
46
|
},
|
|
47
47
|
|
|
48
48
|
resizable: {
|
|
49
|
-
type:
|
|
49
|
+
type: any;
|
|
50
50
|
default: boolean;
|
|
51
51
|
},
|
|
52
52
|
|
|
53
53
|
bottomOffset: {
|
|
54
|
-
type:
|
|
54
|
+
type: any;
|
|
55
55
|
default: number;
|
|
56
56
|
},
|
|
57
57
|
|
|
58
58
|
topOffset: {
|
|
59
|
-
type:
|
|
59
|
+
type: any;
|
|
60
60
|
default: number;
|
|
61
61
|
},
|
|
62
62
|
|
|
63
63
|
resizePage: {
|
|
64
|
-
type:
|
|
64
|
+
type: any;
|
|
65
65
|
default: boolean;
|
|
66
66
|
},
|
|
67
67
|
|
|
68
68
|
placeholder: {
|
|
69
|
-
type:
|
|
69
|
+
type: any;
|
|
70
70
|
default: string;
|
|
71
71
|
},
|
|
72
72
|
|
|
73
73
|
init: {
|
|
74
|
-
type:
|
|
74
|
+
type: any;
|
|
75
75
|
default: boolean;
|
|
76
76
|
},
|
|
77
77
|
|
package/components/messagebar.js
CHANGED
|
@@ -4,6 +4,7 @@ import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
|
4
4
|
import { f7ready, f7 } from '../shared/f7.js';
|
|
5
5
|
import Link from './link.js';
|
|
6
6
|
import Input from './input.js';
|
|
7
|
+
import ToolbarPane from './toolbar-pane.js';
|
|
7
8
|
export default {
|
|
8
9
|
name: 'f7-messagebar',
|
|
9
10
|
props: {
|
|
@@ -44,11 +45,10 @@ export default {
|
|
|
44
45
|
...colorProps
|
|
45
46
|
},
|
|
46
47
|
emits: ['change', 'input', 'focus', 'blur', 'submit', 'send', 'click', 'messagebar:attachmentdelete', 'messagebar:attachmentclick', 'messagebar:resizepage', 'update:value'],
|
|
47
|
-
setup(props,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} = _ref;
|
|
48
|
+
setup(props, {
|
|
49
|
+
emit,
|
|
50
|
+
slots
|
|
51
|
+
}) {
|
|
52
52
|
const elRef = ref(null);
|
|
53
53
|
const areaElRef = ref(null);
|
|
54
54
|
let f7Messagebar = null;
|
|
@@ -163,12 +163,13 @@ export default {
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
+
const hasInnerEnd = props.sendLink && props.sendLink.length > 0 || slotsSendLink || slotsInnerEnd;
|
|
166
167
|
return h('div', {
|
|
167
168
|
class: classes.value,
|
|
168
169
|
ref: elRef
|
|
169
170
|
}, [slotsBeforeInner && slotsBeforeInner(), h('div', {
|
|
170
171
|
class: 'toolbar-inner'
|
|
171
|
-
}, [slotsInnerStart && slotsInnerStart(), h('div', {
|
|
172
|
+
}, [slotsInnerStart && h(ToolbarPane, null, slotsInnerStart()), h('div', {
|
|
172
173
|
class: 'messagebar-area'
|
|
173
174
|
}, [slotsBeforeArea && slotsBeforeArea(), messagebarAttachmentsEl, h(Input, {
|
|
174
175
|
inputId: props.textareaId,
|
|
@@ -185,9 +186,9 @@ export default {
|
|
|
185
186
|
onFocus,
|
|
186
187
|
onBlur,
|
|
187
188
|
...valueProps
|
|
188
|
-
}), slotsAfterArea && slotsAfterArea()]), (props.sendLink && props.sendLink.length > 0 || slotsSendLink) && h(Link, {
|
|
189
|
+
}), slotsAfterArea && slotsAfterArea()]), hasInnerEnd && h(ToolbarPane, null, [(props.sendLink && props.sendLink.length > 0 || slotsSendLink) && h(Link, {
|
|
189
190
|
onClick
|
|
190
|
-
}, [slotsSendLink ? slotsSendLink() : props.sendLink]), slotsInnerEnd && slotsInnerEnd(), innerEndEls]), slotsAfterInner && slotsAfterInner(), messagebarSheetEl]);
|
|
191
|
+
}, [slotsSendLink ? slotsSendLink() : props.sendLink]), slotsInnerEnd && slotsInnerEnd()]), innerEndEls]), slotsAfterInner && slotsAfterInner(), messagebarSheetEl]);
|
|
191
192
|
};
|
|
192
193
|
}
|
|
193
194
|
};
|
package/components/messages.js
CHANGED
package/components/nav-left.d.ts
CHANGED
package/components/nav-left.js
CHANGED
|
@@ -17,7 +17,6 @@ function render(_ctx, _cache) {
|
|
|
17
17
|
import { computed } from 'vue';
|
|
18
18
|
import { classNames } from '../shared/utils.js';
|
|
19
19
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
20
|
-
import { useTheme } from '../shared/use-theme.js';
|
|
21
20
|
import f7Link from './link.js';
|
|
22
21
|
export default {
|
|
23
22
|
name: 'f7-nav-left',
|
|
@@ -33,30 +32,23 @@ export default {
|
|
|
33
32
|
type: Boolean,
|
|
34
33
|
default: undefined
|
|
35
34
|
},
|
|
36
|
-
sliding: Boolean,
|
|
37
35
|
...colorProps
|
|
38
36
|
},
|
|
39
37
|
emits: ['back:click', 'click:back'],
|
|
40
|
-
setup(props,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} = _ref;
|
|
38
|
+
setup(props, {
|
|
39
|
+
emit
|
|
40
|
+
}) {
|
|
44
41
|
const onBackClick = event => {
|
|
45
42
|
emit('back:click', event);
|
|
46
43
|
emit('click:back', event);
|
|
47
44
|
};
|
|
48
|
-
const theme = useTheme();
|
|
49
45
|
const text = computed(() => {
|
|
50
|
-
let needBackLinkText = props.backLinkShowText;
|
|
51
|
-
if (typeof needBackLinkText === 'undefined') needBackLinkText = !theme.value.md;
|
|
52
46
|
if (props.backLink) {
|
|
53
|
-
return props.backLink !== true &&
|
|
47
|
+
return props.backLink !== true && props.backLinkShowText ? props.backLink : undefined;
|
|
54
48
|
}
|
|
55
49
|
return undefined;
|
|
56
50
|
});
|
|
57
|
-
const classes = computed(() => classNames('left', {
|
|
58
|
-
sliding: props.sliding
|
|
59
|
-
}, colorClasses(props)));
|
|
51
|
+
const classes = computed(() => classNames('left', {}, colorClasses(props)));
|
|
60
52
|
return {
|
|
61
53
|
classes,
|
|
62
54
|
onBackClick,
|
package/components/nav-right.js
CHANGED
|
@@ -11,13 +11,10 @@ export default {
|
|
|
11
11
|
name: 'f7-nav-right',
|
|
12
12
|
render,
|
|
13
13
|
props: {
|
|
14
|
-
sliding: Boolean,
|
|
15
14
|
...colorProps
|
|
16
15
|
},
|
|
17
16
|
setup(props) {
|
|
18
|
-
const classes = computed(() => classNames('right', {
|
|
19
|
-
sliding: props.sliding
|
|
20
|
-
}, colorClasses(props)));
|
|
17
|
+
const classes = computed(() => classNames('right', {}, colorClasses(props)));
|
|
21
18
|
return {
|
|
22
19
|
classes
|
|
23
20
|
};
|
package/components/nav-title.js
CHANGED
|
@@ -17,13 +17,10 @@ export default {
|
|
|
17
17
|
props: {
|
|
18
18
|
title: String,
|
|
19
19
|
subtitle: String,
|
|
20
|
-
sliding: Boolean,
|
|
21
20
|
...colorProps
|
|
22
21
|
},
|
|
23
22
|
setup(props) {
|
|
24
|
-
const classes = computed(() => classNames('title', {
|
|
25
|
-
sliding: props.sliding
|
|
26
|
-
}, colorClasses(props)));
|
|
23
|
+
const classes = computed(() => classNames('title', {}, colorClasses(props)));
|
|
27
24
|
return {
|
|
28
25
|
classes
|
|
29
26
|
};
|
package/components/navbar.d.ts
CHANGED
package/components/navbar.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
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
|
-
const _hoisted_1 =
|
|
3
|
-
class: "navbar-bg"
|
|
4
|
-
}, null, -1);
|
|
5
|
-
const _hoisted_2 = {
|
|
2
|
+
const _hoisted_1 = {
|
|
6
3
|
key: 3,
|
|
7
4
|
className: "title-large"
|
|
8
5
|
};
|
|
9
|
-
const
|
|
6
|
+
const _hoisted_2 = {
|
|
10
7
|
className: "title-large-text"
|
|
11
8
|
};
|
|
12
9
|
function render(_ctx, _cache) {
|
|
@@ -16,7 +13,9 @@ function render(_ctx, _cache) {
|
|
|
16
13
|
return _openBlock(), _createElementBlock("div", {
|
|
17
14
|
ref: "elRef",
|
|
18
15
|
class: _normalizeClass(_ctx.classes)
|
|
19
|
-
}, [
|
|
16
|
+
}, [_cache[0] || (_cache[0] = _createElementVNode("div", {
|
|
17
|
+
class: "navbar-bg"
|
|
18
|
+
}, null, -1)), _renderSlot(_ctx.$slots, "before-inner"), _createElementVNode("div", {
|
|
20
19
|
class: _normalizeClass(_ctx.innerClasses)
|
|
21
20
|
}, [_ctx.hasLeft ? (_openBlock(), _createBlock(_component_f7_nav_left, {
|
|
22
21
|
key: 0,
|
|
@@ -40,7 +39,7 @@ function render(_ctx, _cache) {
|
|
|
40
39
|
}, {
|
|
41
40
|
default: _withCtx(() => [_renderSlot(_ctx.$slots, "nav-right"), _renderSlot(_ctx.$slots, "right")]),
|
|
42
41
|
_: 3
|
|
43
|
-
})) : _createCommentVNode("", true), _ctx.hasLargeTitle ? (_openBlock(), _createElementBlock("div",
|
|
42
|
+
})) : _createCommentVNode("", true), _ctx.hasLargeTitle ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("div", _hoisted_2, [_createTextVNode(_toDisplayString(_ctx.largeTitle) + " ", 1), _renderSlot(_ctx.$slots, "title-large")])])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2), _renderSlot(_ctx.$slots, "after-inner")], 2);
|
|
44
43
|
}
|
|
45
44
|
import { computed, ref, onMounted, onBeforeUnmount } from 'vue';
|
|
46
45
|
import { classNames } from '../shared/utils.js';
|
|
@@ -66,10 +65,6 @@ export default {
|
|
|
66
65
|
type: Boolean,
|
|
67
66
|
default: undefined
|
|
68
67
|
},
|
|
69
|
-
sliding: {
|
|
70
|
-
type: Boolean,
|
|
71
|
-
default: true
|
|
72
|
-
},
|
|
73
68
|
title: String,
|
|
74
69
|
subtitle: String,
|
|
75
70
|
hidden: Boolean,
|
|
@@ -86,16 +81,12 @@ export default {
|
|
|
86
81
|
...colorProps
|
|
87
82
|
},
|
|
88
83
|
emits: ['navbar:hide', 'navbar:show', 'navbar:expand', 'navbar:collapse', 'navbar:transparentshow', 'navbar:transparenthide', 'click:back', 'back:click'],
|
|
89
|
-
setup(props,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
} = _ref;
|
|
84
|
+
setup(props, {
|
|
85
|
+
emit,
|
|
86
|
+
slots
|
|
87
|
+
}) {
|
|
94
88
|
let routerPositionClass = '';
|
|
95
89
|
let largeCollapsed = false;
|
|
96
|
-
let routerNavbarRole = null;
|
|
97
|
-
let routerNavbarRoleDetailRoot = false;
|
|
98
|
-
let routerNavbarMasterStack = false;
|
|
99
90
|
let transparentVisible = false;
|
|
100
91
|
const elRef = ref(null);
|
|
101
92
|
const theme = useTheme();
|
|
@@ -131,19 +122,6 @@ export default {
|
|
|
131
122
|
if (elRef.value !== navbarEl) return;
|
|
132
123
|
routerPositionClass = position ? `navbar-${position}` : '';
|
|
133
124
|
};
|
|
134
|
-
const onNavbarRole = (navbarEl, rolesData) => {
|
|
135
|
-
if (elRef.value !== navbarEl) return;
|
|
136
|
-
routerNavbarRole = rolesData.role;
|
|
137
|
-
routerNavbarRoleDetailRoot = rolesData.detailRoot;
|
|
138
|
-
};
|
|
139
|
-
const onNavbarMasterStack = navbarEl => {
|
|
140
|
-
if (elRef.value !== navbarEl) return;
|
|
141
|
-
routerNavbarMasterStack = true;
|
|
142
|
-
};
|
|
143
|
-
const onNavbarMasterUnstack = navbarEl => {
|
|
144
|
-
if (elRef.value !== navbarEl) return;
|
|
145
|
-
routerNavbarMasterStack = false;
|
|
146
|
-
};
|
|
147
125
|
const hide = animate => {
|
|
148
126
|
if (!f7) return;
|
|
149
127
|
f7.navbar.hide(elRef.value, animate);
|
|
@@ -169,9 +147,6 @@ export default {
|
|
|
169
147
|
f7.on('navbarCollapse', onCollapse);
|
|
170
148
|
f7.on('navbarExpand', onExpand);
|
|
171
149
|
f7.on('navbarPosition', onNavbarPosition);
|
|
172
|
-
f7.on('navbarRole', onNavbarRole);
|
|
173
|
-
f7.on('navbarMasterStack', onNavbarMasterStack);
|
|
174
|
-
f7.on('navbarMasterUnstack', onNavbarMasterUnstack);
|
|
175
150
|
f7.on('navbarTransparentShow', onNavbarTransparentShow);
|
|
176
151
|
f7.on('navbarTransparentHide', onNavbarTransparentHide);
|
|
177
152
|
});
|
|
@@ -183,9 +158,6 @@ export default {
|
|
|
183
158
|
f7.off('navbarCollapse', onCollapse);
|
|
184
159
|
f7.off('navbarExpand', onExpand);
|
|
185
160
|
f7.off('navbarPosition', onNavbarPosition);
|
|
186
|
-
f7.off('navbarRole', onNavbarRole);
|
|
187
|
-
f7.off('navbarMasterStack', onNavbarMasterStack);
|
|
188
|
-
f7.off('navbarMasterUnstack', onNavbarMasterUnstack);
|
|
189
161
|
f7.off('navbarTransparentShow', onNavbarTransparentShow);
|
|
190
162
|
f7.off('navbarTransparentHide', onNavbarTransparentHide);
|
|
191
163
|
});
|
|
@@ -200,10 +172,6 @@ export default {
|
|
|
200
172
|
'navbar-large-collapsed': isLarge.value && largeCollapsed,
|
|
201
173
|
'navbar-transparent': isTransparent.value,
|
|
202
174
|
'navbar-transparent-visible': isTransparentVisible.value,
|
|
203
|
-
'navbar-master': routerNavbarRole === 'master',
|
|
204
|
-
'navbar-master-detail': routerNavbarRole === 'detail',
|
|
205
|
-
'navbar-master-detail-root': routerNavbarRoleDetailRoot === true,
|
|
206
|
-
'navbar-master-stacked': routerNavbarMasterStack === true,
|
|
207
175
|
'no-outline': !props.outline
|
|
208
176
|
}, colorClasses(props)));
|
|
209
177
|
const largeTitle = computed(() => {
|
|
@@ -225,7 +193,6 @@ export default {
|
|
|
225
193
|
});
|
|
226
194
|
const innerClasses = computed(() => {
|
|
227
195
|
return classNames('navbar-inner', props.innerClass, props.innerClassName, {
|
|
228
|
-
sliding: props.sliding,
|
|
229
196
|
'navbar-inner-left-title': addLeftTitleClass.value,
|
|
230
197
|
'navbar-inner-centered-title': addCenterTitleClass.value
|
|
231
198
|
});
|
|
@@ -4,16 +4,10 @@ const _hoisted_2 = {
|
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "ptr-preloader"
|
|
6
6
|
};
|
|
7
|
-
const _hoisted_3 =
|
|
8
|
-
class: "ptr-arrow"
|
|
9
|
-
}, null, -1);
|
|
10
|
-
const _hoisted_4 = {
|
|
7
|
+
const _hoisted_3 = {
|
|
11
8
|
key: 3,
|
|
12
9
|
class: "ptr-preloader"
|
|
13
10
|
};
|
|
14
|
-
const _hoisted_5 = /*#__PURE__*/_createElementVNode("div", {
|
|
15
|
-
class: "ptr-arrow"
|
|
16
|
-
}, null, -1);
|
|
17
11
|
function render(_ctx, _cache) {
|
|
18
12
|
const _component_f7_preloader = _resolveComponent("f7-preloader");
|
|
19
13
|
return _openBlock(), _createElementBlock("div", {
|
|
@@ -22,13 +16,17 @@ function render(_ctx, _cache) {
|
|
|
22
16
|
"data-ptr-distance": _ctx.ptrDistance || undefined,
|
|
23
17
|
"data-ptr-mousewheel": _ctx.ptrMousewheel || undefined,
|
|
24
18
|
"data-infinite-distance": _ctx.infiniteDistance || undefined
|
|
25
|
-
}, [_ctx.ptr && _ctx.ptrPreloader && !_ctx.ptrBottom ? (_openBlock(), _createElementBlock("div", _hoisted_2, [_createVNode(_component_f7_preloader),
|
|
19
|
+
}, [_ctx.ptr && _ctx.ptrPreloader && !_ctx.ptrBottom ? (_openBlock(), _createElementBlock("div", _hoisted_2, [_createVNode(_component_f7_preloader), _cache[0] || (_cache[0] = _createElementVNode("div", {
|
|
20
|
+
class: "ptr-arrow"
|
|
21
|
+
}, null, -1))])) : _createCommentVNode("", true), _ctx.infinite && _ctx.infinitePreloader && _ctx.infiniteTop ? (_openBlock(), _createBlock(_component_f7_preloader, {
|
|
26
22
|
key: 1,
|
|
27
23
|
class: "infinite-scroll-preloader"
|
|
28
24
|
})) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default"), _ctx.infinite && _ctx.infinitePreloader && !_ctx.infiniteTop ? (_openBlock(), _createBlock(_component_f7_preloader, {
|
|
29
25
|
key: 2,
|
|
30
26
|
class: "infinite-scroll-preloader"
|
|
31
|
-
})) : _createCommentVNode("", true), _ctx.ptr && _ctx.ptrPreloader && _ctx.ptrBottom ? (_openBlock(), _createElementBlock("div",
|
|
27
|
+
})) : _createCommentVNode("", true), _ctx.ptr && _ctx.ptrPreloader && _ctx.ptrBottom ? (_openBlock(), _createElementBlock("div", _hoisted_3, [_createVNode(_component_f7_preloader), _cache[1] || (_cache[1] = _createElementVNode("div", {
|
|
28
|
+
class: "ptr-arrow"
|
|
29
|
+
}, null, -1))])) : _createCommentVNode("", true)], 10, _hoisted_1);
|
|
32
30
|
}
|
|
33
31
|
import { computed, ref, onMounted, onBeforeUnmount } from 'vue';
|
|
34
32
|
import { classNames } from '../shared/utils.js';
|
|
@@ -68,10 +66,9 @@ export default {
|
|
|
68
66
|
...colorProps
|
|
69
67
|
},
|
|
70
68
|
emits: ['ptr:pullstart', 'ptr:pullmove', 'ptr:pullend', 'ptr:refresh', 'ptr:done', 'infinite', 'ptrPullStart', 'ptrPullMove', 'ptrPullEnd', 'ptrRefresh', 'ptrDone', 'tab:hide', 'tab:show'],
|
|
71
|
-
setup(props,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
} = _ref;
|
|
69
|
+
setup(props, {
|
|
70
|
+
emit
|
|
71
|
+
}) {
|
|
75
72
|
const elRef = ref(null);
|
|
76
73
|
const onPtrPullStart = el => {
|
|
77
74
|
if (elRef.value !== el) return;
|
package/components/page.js
CHANGED
|
@@ -55,11 +55,10 @@ export default {
|
|
|
55
55
|
...colorProps
|
|
56
56
|
},
|
|
57
57
|
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'],
|
|
58
|
-
setup(props,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} = _ref;
|
|
58
|
+
setup(props, {
|
|
59
|
+
emit,
|
|
60
|
+
slots
|
|
61
|
+
}) {
|
|
63
62
|
let hasSubnavbar = false;
|
|
64
63
|
let hasNavbarLarge = false;
|
|
65
64
|
let hasNavbarLargeCollapsed = false;
|
package/components/panel.js
CHANGED
|
@@ -65,10 +65,9 @@ export default {
|
|
|
65
65
|
...colorProps
|
|
66
66
|
},
|
|
67
67
|
emits: ['panel:open', 'panel:opened', 'panel:close', 'panel:closed', 'click', 'panel:backdropclick', 'panel:swipe', 'panel:swipeopen', 'panel:breakpoint', 'panel:collapsedbreakpoint', 'panel:resize', 'update:opened'],
|
|
68
|
-
setup(props,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
} = _ref;
|
|
68
|
+
setup(props, {
|
|
69
|
+
emit
|
|
70
|
+
}) {
|
|
72
71
|
let f7Panel = null;
|
|
73
72
|
const elRef = ref(null);
|
|
74
73
|
let isOpened = false;
|
|
@@ -114,10 +113,7 @@ export default {
|
|
|
114
113
|
isCollapsed = true;
|
|
115
114
|
emit('panel:collapsedbreakpoint', event);
|
|
116
115
|
};
|
|
117
|
-
const onResize =
|
|
118
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
119
|
-
args[_key] = arguments[_key];
|
|
120
|
-
}
|
|
116
|
+
const onResize = (...args) => {
|
|
121
117
|
emit('panel:resize', ...args);
|
|
122
118
|
};
|
|
123
119
|
watch(() => props.resizable, newValue => {
|
|
@@ -112,11 +112,6 @@ declare const PhotoBrowser: DefineComponent<
|
|
|
112
112
|
default: undefined;
|
|
113
113
|
},
|
|
114
114
|
|
|
115
|
-
popupCloseLinkIcon: {
|
|
116
|
-
type: BooleanConstructor;
|
|
117
|
-
default: undefined;
|
|
118
|
-
},
|
|
119
|
-
|
|
120
115
|
popupCloseLinkText: {
|
|
121
116
|
type: StringConstructor;
|
|
122
117
|
default: undefined;
|
|
@@ -47,10 +47,6 @@ export default {
|
|
|
47
47
|
type: String,
|
|
48
48
|
default: undefined
|
|
49
49
|
},
|
|
50
|
-
popupCloseLinkIcon: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: undefined
|
|
53
|
-
},
|
|
54
50
|
popupCloseLinkText: {
|
|
55
51
|
type: String,
|
|
56
52
|
default: undefined
|
|
@@ -90,10 +86,9 @@ export default {
|
|
|
90
86
|
renderThumb: Function
|
|
91
87
|
},
|
|
92
88
|
emits: ['photobrowser:open', 'photobrowser:close', 'photobrowser:opened', 'photobrowser:closed', 'photobrowser:swipetoclose'],
|
|
93
|
-
setup(props,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
} = _ref;
|
|
89
|
+
setup(props, {
|
|
90
|
+
emit
|
|
91
|
+
}) {
|
|
97
92
|
let f7PhotoBrowser = null;
|
|
98
93
|
const open = index => {
|
|
99
94
|
return f7PhotoBrowser.open(index);
|