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
|
@@ -1,20 +1,20 @@
|
|
|
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: "text-editor-content",
|
|
4
4
|
contenteditable: ""
|
|
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, "root-start"),
|
|
10
|
+
class: _normalizeClass(_ctx.classes)
|
|
11
|
+
}, [_renderSlot(_ctx.$slots, "root-start"), _createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "root-end"), _renderSlot(_ctx.$slots, "root")], 2);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
import { computed, ref, onMounted, onBeforeUnmount, watch } 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-text-editor',
|
|
20
20
|
render,
|
|
@@ -57,9 +57,10 @@ export default {
|
|
|
57
57
|
},
|
|
58
58
|
emits: ['texteditor:change', 'texteditor:input', 'texteditor:focus', 'texteditor:blur', 'texteditor:buttonclick', 'texteditor:keyboardopen', 'texteditor:keyboardclose', 'texteditor:popoveropen', 'texteditor:popoverclose', 'texteditor:insertlink', 'texteditor:insertimage', 'texteditorChange', 'texteditorInput', 'texteditorFocus', 'texteditorBlur'],
|
|
59
59
|
|
|
60
|
-
setup(props, {
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
setup(props, _ref) {
|
|
61
|
+
let {
|
|
62
|
+
emit
|
|
63
|
+
} = _ref;
|
|
63
64
|
let f7TextEditor = null;
|
|
64
65
|
const elRef = ref(null);
|
|
65
66
|
|
|
@@ -104,11 +105,11 @@ export default {
|
|
|
104
105
|
};
|
|
105
106
|
|
|
106
107
|
const onInsertLink = (editor, url) => {
|
|
107
|
-
emit(
|
|
108
|
+
emit('texteditor:insertlink', url);
|
|
108
109
|
};
|
|
109
110
|
|
|
110
111
|
const onInsertImage = (editor, url) => {
|
|
111
|
-
emit(
|
|
112
|
+
emit('texteditor:insertimage', url);
|
|
112
113
|
};
|
|
113
114
|
|
|
114
115
|
watch(() => props.value, newValue => {
|
package/components/toggle.js
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = ["name", "disabled", "readonly", "checked", "value"];
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
+
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", {
|
|
4
5
|
class: "toggle-icon"
|
|
5
6
|
}, null, -1);
|
|
6
7
|
|
|
7
8
|
function render(_ctx, _cache) {
|
|
8
|
-
return _openBlock(),
|
|
9
|
+
return _openBlock(), _createElementBlock("label", {
|
|
9
10
|
ref: "elRef",
|
|
10
|
-
class: _ctx.classes
|
|
11
|
-
}, [
|
|
11
|
+
class: _normalizeClass(_ctx.classes)
|
|
12
|
+
}, [_createElementVNode("input", {
|
|
12
13
|
type: "checkbox",
|
|
13
14
|
name: _ctx.name,
|
|
14
15
|
disabled: _ctx.disabled,
|
|
15
16
|
readonly: _ctx.readonly,
|
|
16
17
|
checked: _ctx.checked,
|
|
17
18
|
value: _ctx.value,
|
|
18
|
-
onChange: _cache[
|
|
19
|
-
|
|
19
|
+
onChange: _cache[0] || (_cache[0] = function () {
|
|
20
|
+
return _ctx.onChange && _ctx.onChange(...arguments);
|
|
21
|
+
})
|
|
22
|
+
}, null, 40, _hoisted_1), _hoisted_2], 2);
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
23
|
-
import { classNames } from '../shared/utils';
|
|
24
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
25
|
-
import { f7ready, f7 } from '../shared/f7';
|
|
26
|
-
import { useTooltip } from '../shared/use-tooltip';
|
|
26
|
+
import { classNames } from '../shared/utils.js';
|
|
27
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
28
|
+
import { f7ready, f7 } from '../shared/f7.js';
|
|
29
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
27
30
|
export default {
|
|
28
31
|
name: 'f7-toggle',
|
|
29
32
|
render,
|
|
@@ -43,9 +46,10 @@ export default {
|
|
|
43
46
|
},
|
|
44
47
|
emits: ['change', 'toggle:change', 'update:checked'],
|
|
45
48
|
|
|
46
|
-
setup(props, {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
setup(props, _ref) {
|
|
50
|
+
let {
|
|
51
|
+
emit
|
|
52
|
+
} = _ref;
|
|
49
53
|
let f7Toggle = null;
|
|
50
54
|
const elRef = ref(null);
|
|
51
55
|
useTooltip(elRef, props);
|
package/components/toolbar.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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
|
className: "toolbar-inner"
|
|
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, "before-inner"), _ctx.inner ? (_openBlock(),
|
|
10
|
+
class: _normalizeClass(_ctx.classes)
|
|
11
|
+
}, [_renderSlot(_ctx.$slots, "before-inner"), _ctx.inner ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])) : _renderSlot(_ctx.$slots, "default", {
|
|
12
12
|
key: 1
|
|
13
13
|
}), _renderSlot(_ctx.$slots, "after-inner")], 2);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
import { computed, ref, provide, onMounted, onBeforeUnmount } from 'vue';
|
|
17
|
-
import { classNames } from '../shared/utils';
|
|
18
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
19
|
-
import { f7 } from '../shared/f7';
|
|
20
|
-
import { useTheme } from '../shared/use-theme';
|
|
17
|
+
import { classNames } from '../shared/utils.js';
|
|
18
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
19
|
+
import { f7 } from '../shared/f7.js';
|
|
20
|
+
import { useTheme } from '../shared/use-theme.js';
|
|
21
21
|
export default {
|
|
22
22
|
name: 'f7-toolbar',
|
|
23
23
|
render,
|
|
@@ -73,9 +73,10 @@ export default {
|
|
|
73
73
|
},
|
|
74
74
|
emits: ['toolbar:hide', 'toolbar:show'],
|
|
75
75
|
|
|
76
|
-
setup(props, {
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
setup(props, _ref) {
|
|
77
|
+
let {
|
|
78
|
+
emit
|
|
79
|
+
} = _ref;
|
|
79
80
|
const elRef = ref(null);
|
|
80
81
|
const theme = useTheme();
|
|
81
82
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createBlock as _createBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx, normalizeClass as _normalizeClass } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
className: "treeview-toggle"
|
|
@@ -17,28 +17,28 @@ const _hoisted_4 = {
|
|
|
17
17
|
function render(_ctx, _cache) {
|
|
18
18
|
const _component_f7_use_icon = _resolveComponent("f7-use-icon");
|
|
19
19
|
|
|
20
|
-
return _openBlock(),
|
|
20
|
+
return _openBlock(), _createElementBlock("div", {
|
|
21
21
|
ref: "elRef",
|
|
22
|
-
class: _ctx.classes
|
|
22
|
+
class: _normalizeClass(_ctx.classes)
|
|
23
23
|
}, [(_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.itemRootTag), _mergeProps({
|
|
24
24
|
class: _ctx.itemRootClasses
|
|
25
25
|
}, _ctx.itemRootAttrs, {
|
|
26
26
|
onClick: _ctx.onClick
|
|
27
27
|
}), {
|
|
28
|
-
default: _withCtx(() => [_renderSlot(_ctx.$slots, "root-start"), _ctx.needToggle ? (_openBlock(),
|
|
28
|
+
default: _withCtx(() => [_renderSlot(_ctx.$slots, "root-start"), _ctx.needToggle ? (_openBlock(), _createElementBlock("div", _hoisted_1)) : _createCommentVNode("", true), _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "content-start"), _ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
|
|
29
29
|
key: 0,
|
|
30
30
|
icon: _ctx.icon
|
|
31
|
-
}, null, 8, ["icon"])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "media"),
|
|
31
|
+
}, null, 8, ["icon"])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "media"), _createElementVNode("div", _hoisted_3, [_renderSlot(_ctx.$slots, "label-start"), _createTextVNode(" " + _toDisplayString(_ctx.label) + " ", 1), _renderSlot(_ctx.$slots, "label")]), _renderSlot(_ctx.$slots, "content"), _renderSlot(_ctx.$slots, "content-end")]), _renderSlot(_ctx.$slots, "root"), _renderSlot(_ctx.$slots, "root-end")]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16, ["class", "onClick"])), _ctx.hasChildren ? (_openBlock(),
|
|
33
|
+
}, 16, ["class", "onClick"])), _ctx.hasChildren ? (_openBlock(), _createElementBlock("div", _hoisted_4, [_renderSlot(_ctx.$slots, "children-start"), _renderSlot(_ctx.$slots, "default"), _renderSlot(_ctx.$slots, "children")])) : _createCommentVNode("", true)], 2);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
import { computed, ref, onMounted, onBeforeUnmount } from 'vue';
|
|
37
|
-
import { classNames } from '../shared/utils';
|
|
38
|
-
import { colorClasses, colorProps, actionsAttrs, actionsProps, actionsClasses, routerAttrs, routerProps, routerClasses, iconProps } from '../shared/mixins';
|
|
39
|
-
import { useIcon } from '../shared/use-icon';
|
|
40
|
-
import { f7ready, f7 } from '../shared/f7';
|
|
41
|
-
import f7UseIcon from './use-icon';
|
|
37
|
+
import { classNames } from '../shared/utils.js';
|
|
38
|
+
import { colorClasses, colorProps, actionsAttrs, actionsProps, actionsClasses, routerAttrs, routerProps, routerClasses, iconProps } from '../shared/mixins.js';
|
|
39
|
+
import { useIcon } from '../shared/use-icon.js';
|
|
40
|
+
import { f7ready, f7 } from '../shared/f7.js';
|
|
41
|
+
import f7UseIcon from './use-icon.js';
|
|
42
42
|
export default {
|
|
43
43
|
name: 'f7-treeview-item',
|
|
44
44
|
render,
|
|
@@ -67,10 +67,11 @@ export default {
|
|
|
67
67
|
},
|
|
68
68
|
emits: ['click', 'treeview:open', 'treeview:close', 'treeview:loadchildren'],
|
|
69
69
|
|
|
70
|
-
setup(props, {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
setup(props, _ref) {
|
|
71
|
+
let {
|
|
72
|
+
slots,
|
|
73
|
+
emit
|
|
74
|
+
} = _ref;
|
|
74
75
|
const elRef = ref(null);
|
|
75
76
|
const hasChildren = computed(() => {
|
|
76
77
|
return slots.default || slots.children || slots['children-start'];
|
package/components/treeview.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-treeview',
|
|
14
14
|
render,
|
package/components/use-icon.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, mergeProps as _mergeProps, createCommentVNode as _createCommentVNode } from "vue";
|
|
1
|
+
import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, mergeProps as _mergeProps, createCommentVNode as _createCommentVNode } from "vue";
|
|
2
2
|
|
|
3
3
|
function render(_ctx, _cache) {
|
|
4
4
|
const _component_f7_badge = _resolveComponent("f7-badge");
|
|
5
5
|
|
|
6
6
|
const _component_f7_icon = _resolveComponent("f7-icon");
|
|
7
7
|
|
|
8
|
-
return _openBlock(), _createBlock(_component_f7_icon, _ctx.icon.props, {
|
|
9
|
-
default: _withCtx(() => [_ctx.icon.badge ? (_openBlock(), _createBlock(_component_f7_badge, _mergeProps({
|
|
8
|
+
return _openBlock(), _createBlock(_component_f7_icon, _normalizeProps(_guardReactiveProps(_ctx.icon.props)), {
|
|
9
|
+
default: _withCtx(() => [_ctx.icon.badge ? (_openBlock(), _createBlock(_component_f7_badge, _normalizeProps(_mergeProps({
|
|
10
10
|
key: 0
|
|
11
|
-
}, _ctx.icon.badge.props), {
|
|
11
|
+
}, _ctx.icon.badge.props)), {
|
|
12
12
|
default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.icon.badge.content), 1)]),
|
|
13
13
|
_: 1
|
|
14
14
|
}, 16)) : _createCommentVNode("", true)]),
|
|
@@ -16,8 +16,8 @@ function render(_ctx, _cache) {
|
|
|
16
16
|
}, 16);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
import f7Icon from './icon';
|
|
20
|
-
import f7Badge from './badge';
|
|
19
|
+
import f7Icon from './icon.js';
|
|
20
|
+
import f7Badge from './badge.js';
|
|
21
21
|
export default {
|
|
22
22
|
name: 'f7-use-icon',
|
|
23
23
|
render,
|
package/components/view.d.ts
CHANGED
|
@@ -97,6 +97,11 @@ declare const View: DefineComponent<
|
|
|
97
97
|
type: PropType<FunctionConstructor | ArrayConstructor>;
|
|
98
98
|
},
|
|
99
99
|
|
|
100
|
+
initRouterOnTabShow: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: undefined;
|
|
103
|
+
},
|
|
104
|
+
|
|
100
105
|
router: {
|
|
101
106
|
type: BooleanConstructor;
|
|
102
107
|
default: boolean;
|
package/components/view.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { computed, ref, onMounted, onBeforeUnmount, onUpdated, toRaw, h } from 'vue';
|
|
2
|
-
import { classNames, noUndefinedProps, getRouterId } from '../shared/utils';
|
|
3
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
4
|
-
import { f7ready, f7routers, f7, f7events } from '../shared/f7';
|
|
5
|
-
import { useTab } from '../shared/use-tab';
|
|
6
|
-
import { getRouterInitialComponent } from '../shared/get-router-initial-component';
|
|
2
|
+
import { classNames, noUndefinedProps, getRouterId } from '../shared/utils.js';
|
|
3
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
4
|
+
import { f7ready, f7routers, f7, f7events } from '../shared/f7.js';
|
|
5
|
+
import { useTab } from '../shared/use-tab.js';
|
|
6
|
+
import { getRouterInitialComponent } from '../shared/get-router-initial-component.js';
|
|
7
7
|
export default {
|
|
8
8
|
name: 'f7-view',
|
|
9
9
|
props: {
|
|
10
10
|
tab: Boolean,
|
|
11
11
|
tabActive: Boolean,
|
|
12
12
|
name: String,
|
|
13
|
+
initRouterOnTabShow: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: undefined
|
|
16
|
+
},
|
|
13
17
|
router: {
|
|
14
18
|
type: Boolean,
|
|
15
19
|
default: true
|
|
@@ -181,14 +185,16 @@ export default {
|
|
|
181
185
|
},
|
|
182
186
|
emits: ['view:init', 'view:resize', 'swipeback:move', 'swipeback:beforechange', 'swipeback:afterchange', 'swipeback:beforereset', 'swipeback:afterreset', 'tab:hide', 'tab:show'],
|
|
183
187
|
|
|
184
|
-
setup(props, {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
setup(props, _ref) {
|
|
189
|
+
let {
|
|
190
|
+
emit,
|
|
191
|
+
slots
|
|
192
|
+
} = _ref;
|
|
188
193
|
// const childrenArray = React.Children.toArray(children);
|
|
189
194
|
// const initialPageComponent = childrenArray.filter((c) => c.props && c.props.initialPage)[0];
|
|
190
195
|
// const restChildren = childrenArray.filter((c) => !c.props || !c.props.initialPage);
|
|
191
196
|
const initialPageComponent = null;
|
|
197
|
+
const shouldInitRouter = !(props.initRouterOnTabShow && props.tab && !props.tabActive);
|
|
192
198
|
let f7View = null;
|
|
193
199
|
const elRef = ref(null);
|
|
194
200
|
let routerData = null;
|
|
@@ -228,7 +234,7 @@ export default {
|
|
|
228
234
|
};
|
|
229
235
|
f7routers.views.push(routerData);
|
|
230
236
|
|
|
231
|
-
if (f7View && f7View.router && (props.url || props.main)) {
|
|
237
|
+
if (shouldInitRouter && f7View && f7View.router && (props.url || props.main)) {
|
|
232
238
|
const initialData = getRouterInitialComponent(f7View.router, initialPageComponent);
|
|
233
239
|
initialPage = initialData.initialPage;
|
|
234
240
|
initialRoute = initialData.initialRoute;
|
package/components/views.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-views',
|
|
14
14
|
render,
|
package/framework7-vue-bundle.js
CHANGED
|
@@ -1,116 +1,120 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 Vue 7.0.0-beta.
|
|
2
|
+
* Framework7 Vue 7.0.0-beta.20
|
|
3
3
|
* Build full featured iOS & Android apps using Framework7 & Vue
|
|
4
4
|
* https://framework7.io/vue/
|
|
5
5
|
*
|
|
6
|
-
* Copyright 2014-
|
|
6
|
+
* Copyright 2014-2022 Vladimir Kharlampidi
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: April 15, 2022
|
|
11
11
|
*/
|
|
12
|
-
import Framework7Vue from './shared/plugin';
|
|
13
|
-
import { f7, f7ready, theme } from './shared/f7';
|
|
14
|
-
import { useStore } from './shared/use-store';
|
|
12
|
+
import Framework7Vue from './shared/plugin.js';
|
|
13
|
+
import { f7, f7ready, theme } from './shared/f7.js';
|
|
14
|
+
import { useStore } from './shared/use-store.js';
|
|
15
15
|
|
|
16
|
-
import f7AccordionContent from './components/accordion-content';
|
|
17
|
-
import f7AccordionItem from './components/accordion-item';
|
|
18
|
-
import f7AccordionToggle from './components/accordion-toggle';
|
|
19
|
-
import f7Accordion from './components/accordion';
|
|
20
|
-
import f7ActionsButton from './components/actions-button';
|
|
21
|
-
import f7ActionsGroup from './components/actions-group';
|
|
22
|
-
import f7ActionsLabel from './components/actions-label';
|
|
23
|
-
import f7Actions from './components/actions';
|
|
24
|
-
import f7App from './components/app';
|
|
25
|
-
import f7Appbar from './components/appbar';
|
|
26
|
-
import f7AreaChart from './components/area-chart';
|
|
27
|
-
import f7Badge from './components/badge';
|
|
28
|
-
import f7BlockFooter from './components/block-footer';
|
|
29
|
-
import f7BlockHeader from './components/block-header';
|
|
30
|
-
import f7BlockTitle from './components/block-title';
|
|
31
|
-
import f7Block from './components/block';
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import
|
|
100
|
-
import
|
|
101
|
-
import
|
|
102
|
-
import
|
|
103
|
-
import
|
|
104
|
-
import
|
|
105
|
-
import
|
|
106
|
-
import
|
|
107
|
-
import
|
|
108
|
-
import
|
|
109
|
-
import
|
|
110
|
-
import
|
|
111
|
-
import
|
|
16
|
+
import f7AccordionContent from './components/accordion-content.js';
|
|
17
|
+
import f7AccordionItem from './components/accordion-item.js';
|
|
18
|
+
import f7AccordionToggle from './components/accordion-toggle.js';
|
|
19
|
+
import f7Accordion from './components/accordion.js';
|
|
20
|
+
import f7ActionsButton from './components/actions-button.js';
|
|
21
|
+
import f7ActionsGroup from './components/actions-group.js';
|
|
22
|
+
import f7ActionsLabel from './components/actions-label.js';
|
|
23
|
+
import f7Actions from './components/actions.js';
|
|
24
|
+
import f7App from './components/app.js';
|
|
25
|
+
import f7Appbar from './components/appbar.js';
|
|
26
|
+
import f7AreaChart from './components/area-chart.js';
|
|
27
|
+
import f7Badge from './components/badge.js';
|
|
28
|
+
import f7BlockFooter from './components/block-footer.js';
|
|
29
|
+
import f7BlockHeader from './components/block-header.js';
|
|
30
|
+
import f7BlockTitle from './components/block-title.js';
|
|
31
|
+
import f7Block from './components/block.js';
|
|
32
|
+
import f7BreadcrumbsCollapsed from './components/breadcrumbs-collapsed.js';
|
|
33
|
+
import f7BreadcrumbsItem from './components/breadcrumbs-item.js';
|
|
34
|
+
import f7BreadcrumbsSeparator from './components/breadcrumbs-separator.js';
|
|
35
|
+
import f7Breadcrumbs from './components/breadcrumbs.js';
|
|
36
|
+
import f7Button from './components/button.js';
|
|
37
|
+
import f7CardContent from './components/card-content.js';
|
|
38
|
+
import f7CardFooter from './components/card-footer.js';
|
|
39
|
+
import f7CardHeader from './components/card-header.js';
|
|
40
|
+
import f7Card from './components/card.js';
|
|
41
|
+
import f7Checkbox from './components/checkbox.js';
|
|
42
|
+
import f7Chip from './components/chip.js';
|
|
43
|
+
import f7Col from './components/col.js';
|
|
44
|
+
import f7FabBackdrop from './components/fab-backdrop.js';
|
|
45
|
+
import f7FabButton from './components/fab-button.js';
|
|
46
|
+
import f7FabButtons from './components/fab-buttons.js';
|
|
47
|
+
import f7Fab from './components/fab.js';
|
|
48
|
+
import f7Gauge from './components/gauge.js';
|
|
49
|
+
import f7Icon from './components/icon.js';
|
|
50
|
+
import f7Input from './components/input.js';
|
|
51
|
+
import f7Link from './components/link.js';
|
|
52
|
+
import f7ListButton from './components/list-button.js';
|
|
53
|
+
import f7ListGroup from './components/list-group.js';
|
|
54
|
+
import f7ListIndex from './components/list-index.js';
|
|
55
|
+
import f7ListInput from './components/list-input.js';
|
|
56
|
+
import f7ListItemCell from './components/list-item-cell.js';
|
|
57
|
+
import f7ListItemRow from './components/list-item-row.js';
|
|
58
|
+
import f7ListItem from './components/list-item.js';
|
|
59
|
+
import f7List from './components/list.js';
|
|
60
|
+
import f7LoginScreenTitle from './components/login-screen-title.js';
|
|
61
|
+
import f7LoginScreen from './components/login-screen.js';
|
|
62
|
+
import f7MenuDropdownItem from './components/menu-dropdown-item.js';
|
|
63
|
+
import f7MenuDropdown from './components/menu-dropdown.js';
|
|
64
|
+
import f7MenuItem from './components/menu-item.js';
|
|
65
|
+
import f7Menu from './components/menu.js';
|
|
66
|
+
import f7Message from './components/message.js';
|
|
67
|
+
import f7MessagebarAttachment from './components/messagebar-attachment.js';
|
|
68
|
+
import f7MessagebarAttachments from './components/messagebar-attachments.js';
|
|
69
|
+
import f7MessagebarSheetImage from './components/messagebar-sheet-image.js';
|
|
70
|
+
import f7MessagebarSheetItem from './components/messagebar-sheet-item.js';
|
|
71
|
+
import f7MessagebarSheet from './components/messagebar-sheet.js';
|
|
72
|
+
import f7Messagebar from './components/messagebar.js';
|
|
73
|
+
import f7MessagesTitle from './components/messages-title.js';
|
|
74
|
+
import f7Messages from './components/messages.js';
|
|
75
|
+
import f7NavLeft from './components/nav-left.js';
|
|
76
|
+
import f7NavRight from './components/nav-right.js';
|
|
77
|
+
import f7NavTitleLarge from './components/nav-title-large.js';
|
|
78
|
+
import f7NavTitle from './components/nav-title.js';
|
|
79
|
+
import f7Navbar from './components/navbar.js';
|
|
80
|
+
import f7PageContent from './components/page-content.js';
|
|
81
|
+
import f7Page from './components/page.js';
|
|
82
|
+
import f7Panel from './components/panel.js';
|
|
83
|
+
import f7PhotoBrowser from './components/photo-browser.js';
|
|
84
|
+
import f7PieChart from './components/pie-chart.js';
|
|
85
|
+
import f7Popover from './components/popover.js';
|
|
86
|
+
import f7Popup from './components/popup.js';
|
|
87
|
+
import f7Preloader from './components/preloader.js';
|
|
88
|
+
import f7Progressbar from './components/progressbar.js';
|
|
89
|
+
import f7Radio from './components/radio.js';
|
|
90
|
+
import f7Range from './components/range.js';
|
|
91
|
+
import f7RoutableModals from './components/routable-modals.js';
|
|
92
|
+
import f7Row from './components/row.js';
|
|
93
|
+
import f7Searchbar from './components/searchbar.js';
|
|
94
|
+
import f7Segmented from './components/segmented.js';
|
|
95
|
+
import f7Sheet from './components/sheet.js';
|
|
96
|
+
import f7SkeletonAvatar from './components/skeleton-avatar.js';
|
|
97
|
+
import f7SkeletonBlock from './components/skeleton-block.js';
|
|
98
|
+
import f7SkeletonImage from './components/skeleton-image.js';
|
|
99
|
+
import f7SkeletonText from './components/skeleton-text.js';
|
|
100
|
+
import f7Stepper from './components/stepper.js';
|
|
101
|
+
import f7Subnavbar from './components/subnavbar.js';
|
|
102
|
+
import f7SwipeoutActions from './components/swipeout-actions.js';
|
|
103
|
+
import f7SwipeoutButton from './components/swipeout-button.js';
|
|
104
|
+
import f7SwiperSlide from './components/swiper-slide.js';
|
|
105
|
+
import f7Swiper from './components/swiper.js';
|
|
106
|
+
import f7Tab from './components/tab.js';
|
|
107
|
+
import f7Tabs from './components/tabs.js';
|
|
108
|
+
import f7TextEditor from './components/text-editor.js';
|
|
109
|
+
import f7Toggle from './components/toggle.js';
|
|
110
|
+
import f7Toolbar from './components/toolbar.js';
|
|
111
|
+
import f7TreeviewItem from './components/treeview-item.js';
|
|
112
|
+
import f7Treeview from './components/treeview.js';
|
|
113
|
+
import f7UseIcon from './components/use-icon.js';
|
|
114
|
+
import f7View from './components/view.js';
|
|
115
|
+
import f7Views from './components/views.js';
|
|
112
116
|
|
|
113
|
-
export { f7AccordionContent, f7AccordionItem, f7AccordionToggle, f7Accordion, f7ActionsButton, f7ActionsGroup, f7ActionsLabel, f7Actions, f7App, f7Appbar, f7AreaChart, f7Badge, f7BlockFooter, f7BlockHeader, f7BlockTitle, f7Block, f7Button, f7CardContent, f7CardFooter, f7CardHeader, f7Card, f7Checkbox, f7Chip, f7Col, f7FabBackdrop, f7FabButton, f7FabButtons, f7Fab, f7Gauge, f7Icon, f7Input, f7Link, f7ListButton, f7ListGroup, f7ListIndex, f7ListInput, f7ListItemCell, f7ListItemRow, f7ListItem, f7List, f7LoginScreenTitle, f7LoginScreen, f7MenuDropdownItem, f7MenuDropdown, f7MenuItem, f7Menu, f7Message, f7MessagebarAttachment, f7MessagebarAttachments, f7MessagebarSheetImage, f7MessagebarSheetItem, f7MessagebarSheet, f7Messagebar, f7MessagesTitle, f7Messages, f7NavLeft, f7NavRight, f7NavTitleLarge, f7NavTitle, f7Navbar, f7PageContent, f7Page, f7Panel, f7PhotoBrowser, f7PieChart, f7Popover, f7Popup, f7Preloader, f7Progressbar, f7Radio, f7Range, f7RoutableModals, f7Row, f7Searchbar, f7Segmented, f7Sheet, f7SkeletonAvatar, f7SkeletonBlock, f7SkeletonImage, f7SkeletonText, f7Stepper, f7Subnavbar, f7SwipeoutActions, f7SwipeoutButton, f7SwiperSlide, f7Swiper, f7Tab, f7Tabs, f7TextEditor, f7Toggle, f7Toolbar, f7TreeviewItem, f7Treeview, f7UseIcon, f7View, f7Views }
|
|
117
|
+
export { f7AccordionContent, f7AccordionItem, f7AccordionToggle, f7Accordion, f7ActionsButton, f7ActionsGroup, f7ActionsLabel, f7Actions, f7App, f7Appbar, f7AreaChart, f7Badge, f7BlockFooter, f7BlockHeader, f7BlockTitle, f7Block, f7BreadcrumbsCollapsed, f7BreadcrumbsItem, f7BreadcrumbsSeparator, f7Breadcrumbs, f7Button, f7CardContent, f7CardFooter, f7CardHeader, f7Card, f7Checkbox, f7Chip, f7Col, f7FabBackdrop, f7FabButton, f7FabButtons, f7Fab, f7Gauge, f7Icon, f7Input, f7Link, f7ListButton, f7ListGroup, f7ListIndex, f7ListInput, f7ListItemCell, f7ListItemRow, f7ListItem, f7List, f7LoginScreenTitle, f7LoginScreen, f7MenuDropdownItem, f7MenuDropdown, f7MenuItem, f7Menu, f7Message, f7MessagebarAttachment, f7MessagebarAttachments, f7MessagebarSheetImage, f7MessagebarSheetItem, f7MessagebarSheet, f7Messagebar, f7MessagesTitle, f7Messages, f7NavLeft, f7NavRight, f7NavTitleLarge, f7NavTitle, f7Navbar, f7PageContent, f7Page, f7Panel, f7PhotoBrowser, f7PieChart, f7Popover, f7Popup, f7Preloader, f7Progressbar, f7Radio, f7Range, f7RoutableModals, f7Row, f7Searchbar, f7Segmented, f7Sheet, f7SkeletonAvatar, f7SkeletonBlock, f7SkeletonImage, f7SkeletonText, f7Stepper, f7Subnavbar, f7SwipeoutActions, f7SwipeoutButton, f7SwiperSlide, f7Swiper, f7Tab, f7Tabs, f7TextEditor, f7Toggle, f7Toolbar, f7TreeviewItem, f7Treeview, f7UseIcon, f7View, f7Views }
|
|
114
118
|
export { f7, f7ready, theme, useStore };
|
|
115
119
|
export default Framework7Vue;
|
|
116
120
|
|
|
@@ -131,6 +135,10 @@ function registerComponents(app) {
|
|
|
131
135
|
app.component('f7-block-header', f7BlockHeader);
|
|
132
136
|
app.component('f7-block-title', f7BlockTitle);
|
|
133
137
|
app.component('f7-block', f7Block);
|
|
138
|
+
app.component('f7-breadcrumbs-collapsed', f7BreadcrumbsCollapsed);
|
|
139
|
+
app.component('f7-breadcrumbs-item', f7BreadcrumbsItem);
|
|
140
|
+
app.component('f7-breadcrumbs-separator', f7BreadcrumbsSeparator);
|
|
141
|
+
app.component('f7-breadcrumbs', f7Breadcrumbs);
|
|
134
142
|
app.component('f7-button', f7Button);
|
|
135
143
|
app.component('f7-card-content', f7CardContent);
|
|
136
144
|
app.component('f7-card-footer', f7CardFooter);
|