framework7-vue 7.0.0-beta.15 → 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 +3 -3
- package/components/accordion-item.js +7 -6
- package/components/accordion-toggle.js +3 -3
- package/components/accordion.js +3 -3
- package/components/actions-button.js +12 -9
- package/components/actions-group.js +3 -3
- package/components/actions-label.js +11 -7
- package/components/actions.js +7 -6
- package/components/app.js +3 -3
- package/components/appbar.js +5 -5
- package/components/area-chart.js +48 -41
- package/components/badge.js +3 -3
- package/components/block-footer.js +3 -3
- package/components/block-header.js +3 -3
- package/components/block-title.js +5 -4
- package/components/block.js +7 -6
- package/components/breadcrumbs-collapsed.js +3 -3
- package/components/breadcrumbs-item.js +4 -4
- package/components/breadcrumbs-separator.js +2 -2
- package/components/breadcrumbs.js +2 -2
- package/components/button.js +5 -5
- package/components/card-content.js +3 -3
- package/components/card-footer.js +3 -3
- package/components/card-header.js +3 -3
- package/components/card.js +10 -8
- package/components/checkbox.js +14 -10
- package/components/chip.js +14 -11
- package/components/col.js +7 -6
- package/components/fab-backdrop.js +3 -3
- package/components/fab-button.js +13 -9
- package/components/fab-buttons.js +3 -3
- package/components/fab.js +5 -4
- package/components/gauge.js +16 -9
- package/components/icon.js +5 -5
- package/components/input.js +25 -8
- package/components/link.js +8 -7
- package/components/list-button.js +9 -6
- package/components/list-group.js +5 -4
- package/components/list-index.js +7 -6
- package/components/list-input.js +25 -8
- package/components/list-item-cell.js +3 -3
- package/components/list-item-row.js +3 -3
- package/components/list-item.js +17 -15
- package/components/list.js +5 -4
- package/components/login-screen-title.js +3 -3
- package/components/login-screen.js +7 -6
- package/components/menu-dropdown-item.js +9 -6
- package/components/menu-dropdown.js +6 -6
- package/components/menu-item.js +7 -6
- package/components/menu.js +4 -4
- package/components/message.js +47 -29
- package/components/messagebar-attachment.js +17 -10
- package/components/messagebar-attachments.js +3 -3
- package/components/messagebar-sheet-image.js +16 -11
- package/components/messagebar-sheet-item.js +3 -3
- package/components/messagebar-sheet.js +3 -3
- package/components/messagebar.js +5 -4
- package/components/messages-title.js +3 -3
- package/components/messages.js +7 -6
- package/components/nav-left.js +9 -7
- package/components/nav-right.js +3 -3
- package/components/nav-title-large.js +4 -4
- package/components/nav-title.js +4 -4
- package/components/navbar.js +12 -11
- package/components/page-content.js +14 -12
- package/components/page.js +5 -4
- package/components/panel.js +13 -8
- package/components/photo-browser.js +4 -3
- package/components/pie-chart.js +25 -21
- package/components/popover.js +9 -8
- package/components/popup.js +7 -6
- package/components/preloader.js +15 -12
- package/components/progressbar.js +7 -6
- package/components/radio.js +14 -10
- package/components/range.js +10 -8
- package/components/row.js +7 -6
- package/components/searchbar.js +29 -15
- package/components/segmented.js +3 -3
- package/components/sheet.js +5 -4
- package/components/stepper.js +24 -14
- package/components/subnavbar.js +4 -4
- package/components/swipeout-actions.js +3 -3
- package/components/swipeout-button.js +13 -8
- package/components/tab.js +7 -6
- package/components/tabs.js +7 -7
- package/components/text-editor.js +8 -7
- package/components/toggle.js +14 -10
- package/components/toolbar.js +8 -7
- package/components/treeview-item.js +11 -10
- package/components/treeview.js +3 -3
- package/components/use-icon.js +4 -4
- package/components/view.js +5 -4
- package/components/views.js +3 -3
- package/framework7-vue-bundle.js +2 -2
- package/framework7-vue-web-types.json +1 -1
- package/framework7-vue.js +2 -2
- package/package.json +1 -1
- package/shared/components-router.js +23 -20
- package/shared/f7.js +9 -1
- package/shared/modal-state-classes.js +5 -4
- package/shared/plugin.js +5 -1
- package/shared/use-icon.js +5 -1
- package/shared/use-route-props.js +4 -3
- package/shared/use-store.js +5 -5
- package/shared/utils.js +16 -3
package/components/sheet.js
CHANGED
|
@@ -55,10 +55,11 @@ export default {
|
|
|
55
55
|
},
|
|
56
56
|
emits: ['sheet:stepprogress', 'sheet:stepopen', 'sheet:stepclose', 'sheet:open', 'sheet:opened', 'sheet:close', 'sheet:closed', 'update:opened'],
|
|
57
57
|
|
|
58
|
-
setup(props, {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
setup(props, _ref) {
|
|
59
|
+
let {
|
|
60
|
+
emit,
|
|
61
|
+
slots
|
|
62
|
+
} = _ref;
|
|
62
63
|
let f7Sheet = null; // eslint-disable-next-line
|
|
63
64
|
|
|
64
65
|
let isOpened = props.opened;
|
package/components/stepper.js
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "stepper-input-wrap"
|
|
5
5
|
};
|
|
6
|
-
const _hoisted_2 =
|
|
6
|
+
const _hoisted_2 = ["id", "name", "type", "min", "max", "step", "value", "readonly"];
|
|
7
|
+
const _hoisted_3 = {
|
|
7
8
|
key: 1,
|
|
8
9
|
class: "stepper-value"
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
function render(_ctx, _cache) {
|
|
12
|
-
return _openBlock(),
|
|
13
|
+
return _openBlock(), _createElementBlock("div", {
|
|
13
14
|
ref: "elRef",
|
|
14
|
-
class: _ctx.classes
|
|
15
|
-
}, [
|
|
15
|
+
class: _normalizeClass(_ctx.classes)
|
|
16
|
+
}, [_createElementVNode("div", {
|
|
16
17
|
class: "stepper-button-minus",
|
|
17
|
-
onClick: _cache[
|
|
18
|
-
|
|
18
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
19
|
+
return _ctx.onMinusClick && _ctx.onMinusClick(...arguments);
|
|
20
|
+
})
|
|
21
|
+
}), _ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("input", {
|
|
19
22
|
id: _ctx.inputId,
|
|
20
23
|
name: _ctx.name,
|
|
21
24
|
type: _ctx.inputType,
|
|
@@ -24,11 +27,17 @@ function render(_ctx, _cache) {
|
|
|
24
27
|
step: _ctx.inputType === 'number' ? _ctx.step : undefined,
|
|
25
28
|
value: _ctx.value,
|
|
26
29
|
readonly: _ctx.inputReadonly,
|
|
27
|
-
onInput: _cache[
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
onInput: _cache[1] || (_cache[1] = function () {
|
|
31
|
+
return _ctx.onInput && _ctx.onInput(...arguments);
|
|
32
|
+
}),
|
|
33
|
+
onChange: _cache[2] || (_cache[2] = function () {
|
|
34
|
+
return _ctx.onChange && _ctx.onChange(...arguments);
|
|
35
|
+
})
|
|
36
|
+
}, null, 40, _hoisted_2)])) : _createCommentVNode("", true), !_ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createElementBlock("div", _hoisted_3, _toDisplayString(_ctx.value), 1)) : _createCommentVNode("", true), _createElementVNode("div", {
|
|
30
37
|
class: "stepper-button-plus",
|
|
31
|
-
onClick: _cache[
|
|
38
|
+
onClick: _cache[3] || (_cache[3] = function () {
|
|
39
|
+
return _ctx.onPlusClick && _ctx.onPlusClick(...arguments);
|
|
40
|
+
})
|
|
32
41
|
})], 2);
|
|
33
42
|
}
|
|
34
43
|
|
|
@@ -125,9 +134,10 @@ export default {
|
|
|
125
134
|
},
|
|
126
135
|
emits: ['input', 'change', 'stepper:minusclick', 'stepper:plusclick', 'stepper:change', 'update:value'],
|
|
127
136
|
|
|
128
|
-
setup(props, {
|
|
129
|
-
|
|
130
|
-
|
|
137
|
+
setup(props, _ref) {
|
|
138
|
+
let {
|
|
139
|
+
emit
|
|
140
|
+
} = _ref;
|
|
131
141
|
let f7Stepper = null;
|
|
132
142
|
const elRef = ref(null);
|
|
133
143
|
|
package/components/subnavbar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toDisplayString as _toDisplayString, openBlock as _openBlock,
|
|
1
|
+
import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "subnavbar-inner"
|
|
@@ -9,9 +9,9 @@ const _hoisted_2 = {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
function render(_ctx, _cache) {
|
|
12
|
-
return _openBlock(),
|
|
13
|
-
class: _ctx.classes
|
|
14
|
-
}, [_ctx.inner ? (_openBlock(),
|
|
12
|
+
return _openBlock(), _createElementBlock("div", {
|
|
13
|
+
class: _normalizeClass(_ctx.classes)
|
|
14
|
+
}, [_ctx.inner ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_ctx.title ? (_openBlock(), _createElementBlock("div", _hoisted_2, _toDisplayString(_ctx.title), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")])) : _renderSlot(_ctx.$slots, "default", {
|
|
15
15
|
key: 1
|
|
16
16
|
})], 2);
|
|
17
17
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, openBlock as _openBlock,
|
|
1
|
+
import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = ["href", "data-confirm", "data-confirm-title"];
|
|
2
3
|
|
|
3
4
|
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(),
|
|
5
|
+
return _openBlock(), _createElementBlock("a", {
|
|
5
6
|
href: _ctx.href || '#',
|
|
6
7
|
"data-confirm": _ctx.confirmText || undefined,
|
|
7
8
|
"data-confirm-title": _ctx.confirmTitle || undefined,
|
|
8
|
-
class: _ctx.classes,
|
|
9
|
-
onClick: _cache[
|
|
10
|
-
|
|
9
|
+
class: _normalizeClass(_ctx.classes),
|
|
10
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
11
|
+
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
12
|
+
})
|
|
13
|
+
}, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
import { computed } from 'vue';
|
|
@@ -28,9 +31,11 @@ export default {
|
|
|
28
31
|
},
|
|
29
32
|
emits: ['click'],
|
|
30
33
|
|
|
31
|
-
setup(props, {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
setup(props, _ref) {
|
|
35
|
+
let {
|
|
36
|
+
emit
|
|
37
|
+
} = _ref;
|
|
38
|
+
|
|
34
39
|
const onClick = e => {
|
|
35
40
|
emit('click', e);
|
|
36
41
|
};
|
package/components/tab.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot } from "vue";
|
|
1
|
+
import { resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
|
|
3
3
|
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(),
|
|
4
|
+
return _openBlock(), _createElementBlock("div", {
|
|
5
5
|
ref: "elRef",
|
|
6
|
-
class: _ctx.classes
|
|
6
|
+
class: _normalizeClass(_ctx.classes)
|
|
7
7
|
}, [_ctx.tabContent ? (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.getComponent(_ctx.tabContent)), _mergeProps({
|
|
8
8
|
key: 0,
|
|
9
9
|
key: _ctx.tabContent.id
|
|
@@ -26,9 +26,10 @@ export default {
|
|
|
26
26
|
},
|
|
27
27
|
emits: ['tab:show', 'tab:hide'],
|
|
28
28
|
|
|
29
|
-
setup(props, {
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
setup(props, _ref) {
|
|
30
|
+
let {
|
|
31
|
+
emit
|
|
32
|
+
} = _ref;
|
|
32
33
|
const elRef = ref(null);
|
|
33
34
|
const routerData = ref(null);
|
|
34
35
|
const route = inject('f7route', null);
|
package/components/tabs.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot,
|
|
1
|
+
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from "vue";
|
|
2
2
|
|
|
3
3
|
function render(_ctx, _cache) {
|
|
4
|
-
return _ctx.animated || _ctx.swipeable ? (_openBlock(),
|
|
4
|
+
return _ctx.animated || _ctx.swipeable ? (_openBlock(), _createElementBlock("div", {
|
|
5
5
|
key: 0,
|
|
6
6
|
ref: "elRef",
|
|
7
|
-
class: _ctx.classNames(_ctx.wrapClasses, _ctx.classes)
|
|
8
|
-
}, [
|
|
9
|
-
class: _ctx.tabsClasses
|
|
10
|
-
}, [_renderSlot(_ctx.$slots, "default")], 2)], 2)) : (_openBlock(),
|
|
7
|
+
class: _normalizeClass(_ctx.classNames(_ctx.wrapClasses, _ctx.classes))
|
|
8
|
+
}, [_createElementVNode("div", {
|
|
9
|
+
class: _normalizeClass(_ctx.tabsClasses)
|
|
10
|
+
}, [_renderSlot(_ctx.$slots, "default")], 2)], 2)) : (_openBlock(), _createElementBlock("div", {
|
|
11
11
|
key: 1,
|
|
12
12
|
ref: "elRef",
|
|
13
|
-
class: _ctx.classNames(_ctx.tabsClasses, _ctx.classes)
|
|
13
|
+
class: _normalizeClass(_ctx.classNames(_ctx.tabsClasses, _ctx.classes))
|
|
14
14
|
}, [_renderSlot(_ctx.$slots, "default")], 2));
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -1,14 +1,14 @@
|
|
|
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';
|
|
@@ -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
|
|
package/components/toggle.js
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
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';
|
|
@@ -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,14 +1,14 @@
|
|
|
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
|
}
|
|
@@ -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,20 +17,20 @@ 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';
|
|
@@ -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,8 +1,8 @@
|
|
|
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
|
|
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)]),
|
package/components/view.js
CHANGED
|
@@ -185,10 +185,11 @@ export default {
|
|
|
185
185
|
},
|
|
186
186
|
emits: ['view:init', 'view:resize', 'swipeback:move', 'swipeback:beforechange', 'swipeback:afterchange', 'swipeback:beforereset', 'swipeback:afterreset', 'tab:hide', 'tab:show'],
|
|
187
187
|
|
|
188
|
-
setup(props, {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
setup(props, _ref) {
|
|
189
|
+
let {
|
|
190
|
+
emit,
|
|
191
|
+
slots
|
|
192
|
+
} = _ref;
|
|
192
193
|
// const childrenArray = React.Children.toArray(children);
|
|
193
194
|
// const initialPageComponent = childrenArray.filter((c) => c.props && c.props.initialPage)[0];
|
|
194
195
|
// const restChildren = childrenArray.filter((c) => !c.props || !c.props.initialPage);
|
package/components/views.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
package/framework7-vue-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on: April
|
|
10
|
+
* Released on: April 15, 2022
|
|
11
11
|
*/
|
|
12
12
|
import Framework7Vue from './shared/plugin.js';
|
|
13
13
|
import { f7, f7ready, theme } from './shared/f7.js';
|
package/framework7-vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on: April
|
|
10
|
+
* Released on: April 15, 2022
|
|
11
11
|
*/
|
|
12
12
|
import Framework7Vue from './shared/plugin.js';
|
|
13
13
|
import { f7, f7ready, theme } from './shared/f7.js';
|
package/package.json
CHANGED
|
@@ -26,13 +26,14 @@ export default {
|
|
|
26
26
|
return routerOpenIn(router, navigateUrl, options);
|
|
27
27
|
},
|
|
28
28
|
|
|
29
|
-
pageComponentLoader({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
pageComponentLoader(_ref) {
|
|
30
|
+
let {
|
|
31
|
+
routerEl,
|
|
32
|
+
component,
|
|
33
|
+
options,
|
|
34
|
+
resolve,
|
|
35
|
+
reject
|
|
36
|
+
} = _ref;
|
|
36
37
|
const router = this;
|
|
37
38
|
const routerId = router.id;
|
|
38
39
|
const el = routerEl;
|
|
@@ -117,13 +118,14 @@ export default {
|
|
|
117
118
|
}
|
|
118
119
|
},
|
|
119
120
|
|
|
120
|
-
tabComponentLoader({
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
121
|
+
tabComponentLoader(_temp) {
|
|
122
|
+
let {
|
|
123
|
+
tabEl,
|
|
124
|
+
component,
|
|
125
|
+
options,
|
|
126
|
+
resolve,
|
|
127
|
+
reject
|
|
128
|
+
} = _temp === void 0 ? {} : _temp;
|
|
127
129
|
const router = this;
|
|
128
130
|
if (!tabEl) reject();
|
|
129
131
|
let tabRouter;
|
|
@@ -179,12 +181,13 @@ export default {
|
|
|
179
181
|
tabRouter.setTabContent(null);
|
|
180
182
|
},
|
|
181
183
|
|
|
182
|
-
modalComponentLoader({
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
184
|
+
modalComponentLoader(_temp2) {
|
|
185
|
+
let {
|
|
186
|
+
component,
|
|
187
|
+
options,
|
|
188
|
+
resolve,
|
|
189
|
+
reject
|
|
190
|
+
} = _temp2 === void 0 ? {} : _temp2;
|
|
188
191
|
const router = this;
|
|
189
192
|
const modalsRouter = f7routers.modals;
|
|
190
193
|
|
package/shared/f7.js
CHANGED
|
@@ -31,7 +31,15 @@ const f7initEvents = () => {
|
|
|
31
31
|
f7events = new Framework7.Events();
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
const f7init = (rootEl, params
|
|
34
|
+
const f7init = function (rootEl, params, init) {
|
|
35
|
+
if (params === void 0) {
|
|
36
|
+
params = {};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (init === void 0) {
|
|
40
|
+
init = true;
|
|
41
|
+
}
|
|
42
|
+
|
|
35
43
|
const f7Params = extend({}, params, {
|
|
36
44
|
el: rootEl,
|
|
37
45
|
init
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export const modalStateClasses = ({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export const modalStateClasses = function (_temp) {
|
|
2
|
+
let {
|
|
3
|
+
isOpened,
|
|
4
|
+
isClosing
|
|
5
|
+
} = _temp === void 0 ? {} : _temp;
|
|
5
6
|
return {
|
|
6
7
|
'modal-in': isOpened && !isClosing,
|
|
7
8
|
'modal-out': isClosing
|
package/shared/plugin.js
CHANGED
package/shared/use-icon.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { onMounted, onUpdated } from 'vue';
|
|
2
|
-
export const useRouteProps = (elRef, {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export const useRouteProps = function (elRef, _temp) {
|
|
3
|
+
let {
|
|
4
|
+
routeProps
|
|
5
|
+
} = _temp === void 0 ? {} : _temp;
|
|
5
6
|
onMounted(() => {
|
|
6
7
|
if (elRef.value && routeProps) {
|
|
7
8
|
elRef.value.f7RouteProps = routeProps;
|