framework7-vue 8.3.4 → 9.0.0-beta.1
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/pie-chart.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass,
|
|
1
|
+
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, renderSlot as _renderSlot } from "vue";
|
|
2
2
|
const _hoisted_1 = ["width", "height", "viewBox"];
|
|
3
3
|
const _hoisted_2 = ["d", "fill", "data-index", "onClick", "onMouseenter"];
|
|
4
4
|
function render(_ctx, _cache) {
|
|
@@ -10,9 +10,9 @@ function render(_ctx, _cache) {
|
|
|
10
10
|
width: _ctx.size,
|
|
11
11
|
height: _ctx.size,
|
|
12
12
|
viewBox: `-${_ctx.size / 3} -${_ctx.size / 3} ${_ctx.size * 2 / 3} ${_ctx.size * 2 / 3}`,
|
|
13
|
-
style:
|
|
13
|
+
style: {
|
|
14
14
|
transform: 'rotate(-90deg)'
|
|
15
|
-
}
|
|
15
|
+
}
|
|
16
16
|
}, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.paths, (path, index) => {
|
|
17
17
|
return _openBlock(), _createElementBlock("path", {
|
|
18
18
|
key: path.label || index,
|
|
@@ -26,7 +26,7 @@ function render(_ctx, _cache) {
|
|
|
26
26
|
onMouseenter: $event => _ctx.setCurrentIndex(index),
|
|
27
27
|
onMouseleave: _cache[0] || (_cache[0] = $event => _ctx.setCurrentIndex(null))
|
|
28
28
|
}, null, 42, _hoisted_2);
|
|
29
|
-
}), 128))],
|
|
29
|
+
}), 128))], 8, _hoisted_1)), _renderSlot(_ctx.$slots, "default")], 2);
|
|
30
30
|
}
|
|
31
31
|
import { computed, onBeforeUnmount, ref, watch } from 'vue';
|
|
32
32
|
import { classNames } from '../shared/utils.js';
|
|
@@ -47,10 +47,9 @@ export default {
|
|
|
47
47
|
formatTooltip: Function
|
|
48
48
|
},
|
|
49
49
|
emits: ['select'],
|
|
50
|
-
setup(props,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} = _ref;
|
|
50
|
+
setup(props, {
|
|
51
|
+
emit
|
|
52
|
+
}) {
|
|
54
53
|
const elRef = ref(null);
|
|
55
54
|
let f7Tooltip = null;
|
|
56
55
|
const currentIndex = ref(null);
|
|
@@ -72,12 +71,11 @@ export default {
|
|
|
72
71
|
const y = Math.sin(2 * Math.PI * percentage) * (props.size / 3);
|
|
73
72
|
return [x, y];
|
|
74
73
|
}
|
|
75
|
-
props.datasets.forEach(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
} = _ref2;
|
|
74
|
+
props.datasets.forEach(({
|
|
75
|
+
value,
|
|
76
|
+
label,
|
|
77
|
+
color
|
|
78
|
+
}) => {
|
|
81
79
|
const percentage = value / summValue.value;
|
|
82
80
|
const [startX, startY] = getCoordinatesForPercentage(cumulativePercentage);
|
|
83
81
|
cumulativePercentage += percentage;
|
package/components/popover.d.ts
CHANGED
package/components/popover.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import {
|
|
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
|
-
key: 0,
|
|
4
|
-
class: "popover-arrow"
|
|
5
|
-
};
|
|
6
|
-
const _hoisted_2 = {
|
|
7
3
|
class: "popover-inner"
|
|
8
4
|
};
|
|
9
5
|
function render(_ctx, _cache) {
|
|
10
6
|
return _openBlock(), _createElementBlock("div", {
|
|
11
7
|
ref: "elRef",
|
|
12
8
|
class: _normalizeClass(_ctx.classes)
|
|
13
|
-
}, [
|
|
9
|
+
}, [_createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])], 2);
|
|
14
10
|
}
|
|
15
11
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
16
12
|
import { classNames } from '../shared/utils.js';
|
|
@@ -30,10 +26,6 @@ export default {
|
|
|
30
26
|
type: [String, Object],
|
|
31
27
|
default: undefined
|
|
32
28
|
},
|
|
33
|
-
arrow: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: undefined
|
|
36
|
-
},
|
|
37
29
|
backdrop: {
|
|
38
30
|
type: Boolean,
|
|
39
31
|
default: undefined
|
|
@@ -65,10 +57,9 @@ export default {
|
|
|
65
57
|
...colorProps
|
|
66
58
|
},
|
|
67
59
|
emits: ['popover:open', 'popover:opened', 'popover:close', 'popover:closed', 'update:opened'],
|
|
68
|
-
setup(props,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
} = _ref;
|
|
60
|
+
setup(props, {
|
|
61
|
+
emit
|
|
62
|
+
}) {
|
|
72
63
|
const f7Popover = ref(null);
|
|
73
64
|
// eslint-disable-next-line
|
|
74
65
|
let isOpened = props.opened;
|
|
@@ -117,7 +108,6 @@ export default {
|
|
|
117
108
|
closeByBackdropClick,
|
|
118
109
|
closeByOutsideClick,
|
|
119
110
|
closeOnEscape,
|
|
120
|
-
arrow,
|
|
121
111
|
backdrop,
|
|
122
112
|
backdropEl,
|
|
123
113
|
containerEl,
|
|
@@ -127,7 +117,6 @@ export default {
|
|
|
127
117
|
if (typeof closeByBackdropClick !== 'undefined') popoverParams.closeByBackdropClick = closeByBackdropClick;
|
|
128
118
|
if (typeof closeByOutsideClick !== 'undefined') popoverParams.closeByOutsideClick = closeByOutsideClick;
|
|
129
119
|
if (typeof closeOnEscape !== 'undefined') popoverParams.closeOnEscape = closeOnEscape;
|
|
130
|
-
if (typeof arrow !== 'undefined') popoverParams.arrow = arrow;
|
|
131
120
|
if (typeof backdrop !== 'undefined') popoverParams.backdrop = backdrop;
|
|
132
121
|
if (typeof backdropEl !== 'undefined') popoverParams.backdropEl = backdropEl;
|
|
133
122
|
if (typeof containerEl !== 'undefined') popoverParams.containerEl = containerEl;
|
package/components/popup.js
CHANGED
|
@@ -52,10 +52,9 @@ export default {
|
|
|
52
52
|
...colorProps
|
|
53
53
|
},
|
|
54
54
|
emits: ['popup:swipestart', 'popup:swipemove', 'popup:swipeend', 'popup:swipeclose', 'popup:open', 'popup:opened', 'popup:close', 'popup:closed', 'update:opened'],
|
|
55
|
-
setup(props,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} = _ref;
|
|
55
|
+
setup(props, {
|
|
56
|
+
emit
|
|
57
|
+
}) {
|
|
59
58
|
const f7Popup = ref(null);
|
|
60
59
|
// eslint-disable-next-line
|
|
61
60
|
let isOpened = props.opened;
|
package/components/preloader.js
CHANGED
|
@@ -3,21 +3,11 @@ const _hoisted_1 = {
|
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "preloader-inner"
|
|
5
5
|
};
|
|
6
|
-
const _hoisted_2 =
|
|
7
|
-
viewBox: "0 0 36 36"
|
|
8
|
-
}, [/*#__PURE__*/_createElementVNode("circle", {
|
|
9
|
-
cx: "18",
|
|
10
|
-
cy: "18",
|
|
11
|
-
r: "16"
|
|
12
|
-
})], -1);
|
|
13
|
-
const _hoisted_3 = [_hoisted_2];
|
|
14
|
-
const _hoisted_4 = {
|
|
6
|
+
const _hoisted_2 = {
|
|
15
7
|
key: 1,
|
|
16
8
|
class: "preloader-inner"
|
|
17
9
|
};
|
|
18
|
-
const
|
|
19
|
-
const _hoisted_13 = [_hoisted_5];
|
|
20
|
-
const _hoisted_14 = {
|
|
10
|
+
const _hoisted_3 = {
|
|
21
11
|
key: 2,
|
|
22
12
|
class: "preloader-inner"
|
|
23
13
|
};
|
|
@@ -25,7 +15,13 @@ function render(_ctx, _cache) {
|
|
|
25
15
|
return _openBlock(), _createElementBlock("div", {
|
|
26
16
|
class: _normalizeClass(_ctx.classes),
|
|
27
17
|
style: _normalizeStyle(_ctx.style)
|
|
28
|
-
}, [_ctx.theme && _ctx.theme.md ? (_openBlock(), _createElementBlock("span", _hoisted_1,
|
|
18
|
+
}, [_ctx.theme && _ctx.theme.md ? (_openBlock(), _createElementBlock("span", _hoisted_1, [...(_cache[0] || (_cache[0] = [_createElementVNode("svg", {
|
|
19
|
+
viewBox: "0 0 36 36"
|
|
20
|
+
}, [_createElementVNode("circle", {
|
|
21
|
+
cx: "18",
|
|
22
|
+
cy: "18",
|
|
23
|
+
r: "16"
|
|
24
|
+
})], -1)]))])) : _ctx.theme && _ctx.theme.ios ? (_openBlock(), _createElementBlock("span", _hoisted_2, [...(_cache[1] || (_cache[1] = [_createStaticVNode("<span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span>", 8)]))])) : !_ctx.theme ? (_openBlock(), _createElementBlock("span", _hoisted_3)) : _createCommentVNode("", true)], 6);
|
|
29
25
|
}
|
|
30
26
|
import { computed } from 'vue';
|
|
31
27
|
import { classNames } from '../shared/utils.js';
|
package/components/radio.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = ["name", "value", "disabled", "readonly", "checked"];
|
|
3
|
-
const _hoisted_2 = /*#__PURE__*/_createElementVNode("i", {
|
|
4
|
-
class: "icon-radio"
|
|
5
|
-
}, null, -1);
|
|
6
3
|
function render(_ctx, _cache) {
|
|
7
4
|
return _openBlock(), _createElementBlock("label", {
|
|
8
5
|
class: _normalizeClass(_ctx.classes)
|
|
@@ -14,10 +11,10 @@ function render(_ctx, _cache) {
|
|
|
14
11
|
disabled: _ctx.disabled,
|
|
15
12
|
readonly: _ctx.readonly,
|
|
16
13
|
checked: _ctx.checked,
|
|
17
|
-
onChange: _cache[0] || (_cache[0] =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}, null,
|
|
14
|
+
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
15
|
+
}, null, 40, _hoisted_1), _cache[1] || (_cache[1] = _createElementVNode("i", {
|
|
16
|
+
class: "icon-radio"
|
|
17
|
+
}, null, -1)), _renderSlot(_ctx.$slots, "default")], 2);
|
|
21
18
|
}
|
|
22
19
|
import { ref, computed } from 'vue';
|
|
23
20
|
import { classNames } from '../shared/utils.js';
|
|
@@ -37,10 +34,9 @@ export default {
|
|
|
37
34
|
...colorProps
|
|
38
35
|
},
|
|
39
36
|
emits: ['update:checked', 'change'],
|
|
40
|
-
setup(props,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} = _ref;
|
|
37
|
+
setup(props, {
|
|
38
|
+
emit
|
|
39
|
+
}) {
|
|
44
40
|
const inputElRef = ref(null);
|
|
45
41
|
const onChange = event => {
|
|
46
42
|
emit('update:checked', event.target.checked);
|
package/components/range.js
CHANGED
|
@@ -84,10 +84,9 @@ export default {
|
|
|
84
84
|
...colorProps
|
|
85
85
|
},
|
|
86
86
|
emits: ['range:change', 'range:changed', 'rangeChange', 'rangeChanged', 'update:value'],
|
|
87
|
-
setup(props,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
} = _ref;
|
|
87
|
+
setup(props, {
|
|
88
|
+
emit
|
|
89
|
+
}) {
|
|
91
90
|
let f7Range = null;
|
|
92
91
|
const elRef = ref(null);
|
|
93
92
|
watch(() => props.value, newValue => {
|
package/components/searchbar.js
CHANGED
|
@@ -6,9 +6,9 @@ const _hoisted_2 = {
|
|
|
6
6
|
class: "searchbar-input-wrap"
|
|
7
7
|
};
|
|
8
8
|
const _hoisted_3 = ["value", "placeholder", "spellcheck"];
|
|
9
|
-
const _hoisted_4 =
|
|
10
|
-
|
|
11
|
-
}
|
|
9
|
+
const _hoisted_4 = {
|
|
10
|
+
key: 0
|
|
11
|
+
};
|
|
12
12
|
function render(_ctx, _cache) {
|
|
13
13
|
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
|
|
14
14
|
ref: "elRef",
|
|
@@ -20,31 +20,23 @@ function render(_ctx, _cache) {
|
|
|
20
20
|
placeholder: _ctx.placeholder,
|
|
21
21
|
spellcheck: _ctx.spellcheck,
|
|
22
22
|
type: "search",
|
|
23
|
-
onInput: _cache[0] || (_cache[0] =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return _ctx.onFocus && _ctx.onFocus(...arguments);
|
|
31
|
-
}),
|
|
32
|
-
onBlur: _cache[3] || (_cache[3] = function () {
|
|
33
|
-
return _ctx.onBlur && _ctx.onBlur(...arguments);
|
|
34
|
-
})
|
|
35
|
-
}, null, 40, _hoisted_3), _hoisted_4, _ctx.clearButton ? (_openBlock(), _createElementBlock("span", {
|
|
23
|
+
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
24
|
+
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args)),
|
|
25
|
+
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
|
|
26
|
+
onBlur: _cache[3] || (_cache[3] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
|
|
27
|
+
}, null, 40, _hoisted_3), _cache[6] || (_cache[6] = _createElementVNode("i", {
|
|
28
|
+
class: "searchbar-icon"
|
|
29
|
+
}, null, -1)), _ctx.clearButton ? (_openBlock(), _createElementBlock("span", {
|
|
36
30
|
key: 0,
|
|
37
31
|
class: "input-clear-button",
|
|
38
|
-
onClick: _cache[4] || (_cache[4] =
|
|
39
|
-
return _ctx.onClearButtonClick && _ctx.onClearButtonClick(...arguments);
|
|
40
|
-
})
|
|
32
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.onClearButtonClick && _ctx.onClearButtonClick(...args))
|
|
41
33
|
})) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "input-wrap-end")]), _ctx.disableButton ? (_openBlock(), _createElementBlock("span", {
|
|
42
34
|
key: 0,
|
|
43
35
|
class: "searchbar-disable-button",
|
|
44
|
-
onClick: _cache[5] || (_cache[5] =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, _toDisplayString(_ctx.disableButtonText), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "inner-end"), _renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "after-inner")]),
|
|
36
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onDisableButtonClick && _ctx.onDisableButtonClick(...args))
|
|
37
|
+
}, [_cache[7] || (_cache[7] = _createElementVNode("i", {
|
|
38
|
+
class: "icon icon-close"
|
|
39
|
+
}, null, -1)), _ctx.disableButtonText ? (_openBlock(), _createElementBlock("span", _hoisted_4, _toDisplayString(_ctx.disableButtonText), 1)) : _createCommentVNode("", true)])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "inner-end"), _renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "after-inner")]),
|
|
48
40
|
_: 3
|
|
49
41
|
}, 40, ["class", "onSubmit"]);
|
|
50
42
|
}
|
|
@@ -158,10 +150,9 @@ export default {
|
|
|
158
150
|
...colorProps
|
|
159
151
|
},
|
|
160
152
|
emits: ['change', 'input', 'focus', 'blur', 'submit', 'click:clear', 'click:disable', 'searchbar:search', 'searchbar:clear', 'searchbar:enable', 'searchbar:disable', 'update:value'],
|
|
161
|
-
setup(props,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
} = _ref;
|
|
153
|
+
setup(props, {
|
|
154
|
+
emit
|
|
155
|
+
}) {
|
|
165
156
|
let f7Searchbar = null;
|
|
166
157
|
const elRef = ref(null);
|
|
167
158
|
const search = query => {
|
package/components/sheet.js
CHANGED
|
@@ -66,11 +66,10 @@ export default {
|
|
|
66
66
|
...colorProps
|
|
67
67
|
},
|
|
68
68
|
emits: ['sheet:stepprogress', 'sheet:stepopen', 'sheet:stepclose', 'sheet:open', 'sheet:opened', 'sheet:close', 'sheet:closed', 'sheet:breakpoint', 'update:opened'],
|
|
69
|
-
setup(props,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
} = _ref;
|
|
69
|
+
setup(props, {
|
|
70
|
+
emit,
|
|
71
|
+
slots
|
|
72
|
+
}) {
|
|
74
73
|
let f7Sheet = null;
|
|
75
74
|
// eslint-disable-next-line
|
|
76
75
|
let isOpened = props.opened;
|
package/components/stepper.js
CHANGED
|
@@ -14,9 +14,7 @@ function render(_ctx, _cache) {
|
|
|
14
14
|
class: _normalizeClass(_ctx.classes)
|
|
15
15
|
}, [_createElementVNode("div", {
|
|
16
16
|
class: "stepper-button-minus",
|
|
17
|
-
onClick: _cache[0] || (_cache[0] =
|
|
18
|
-
return _ctx.onMinusClick && _ctx.onMinusClick(...arguments);
|
|
19
|
-
})
|
|
17
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onMinusClick && _ctx.onMinusClick(...args))
|
|
20
18
|
}), _ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("input", {
|
|
21
19
|
id: _ctx.inputId,
|
|
22
20
|
name: _ctx.name,
|
|
@@ -26,17 +24,11 @@ function render(_ctx, _cache) {
|
|
|
26
24
|
step: _ctx.inputType === 'number' ? _ctx.step : undefined,
|
|
27
25
|
value: _ctx.value,
|
|
28
26
|
readonly: _ctx.inputReadonly,
|
|
29
|
-
onInput: _cache[1] || (_cache[1] =
|
|
30
|
-
|
|
31
|
-
}),
|
|
32
|
-
onChange: _cache[2] || (_cache[2] = function () {
|
|
33
|
-
return _ctx.onChange && _ctx.onChange(...arguments);
|
|
34
|
-
})
|
|
27
|
+
onInput: _cache[1] || (_cache[1] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
28
|
+
onChange: _cache[2] || (_cache[2] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
35
29
|
}, null, 40, _hoisted_2)])) : _createCommentVNode("", true), !_ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createElementBlock("div", _hoisted_3, _toDisplayString(_ctx.value), 1)) : _createCommentVNode("", true), _createElementVNode("div", {
|
|
36
30
|
class: "stepper-button-plus",
|
|
37
|
-
onClick: _cache[3] || (_cache[3] =
|
|
38
|
-
return _ctx.onPlusClick && _ctx.onPlusClick(...arguments);
|
|
39
|
-
})
|
|
31
|
+
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onPlusClick && _ctx.onPlusClick(...args))
|
|
40
32
|
})], 2);
|
|
41
33
|
}
|
|
42
34
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
@@ -126,10 +118,9 @@ export default {
|
|
|
126
118
|
...colorProps
|
|
127
119
|
},
|
|
128
120
|
emits: ['input', 'change', 'stepper:minusclick', 'stepper:plusclick', 'stepper:change', 'update:value'],
|
|
129
|
-
setup(props,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
} = _ref;
|
|
121
|
+
setup(props, {
|
|
122
|
+
emit
|
|
123
|
+
}) {
|
|
133
124
|
let f7Stepper = null;
|
|
134
125
|
const elRef = ref(null);
|
|
135
126
|
const increment = () => {
|
package/components/subnavbar.js
CHANGED
|
@@ -21,7 +21,6 @@ export default {
|
|
|
21
21
|
name: 'f7-subnavbar',
|
|
22
22
|
render,
|
|
23
23
|
props: {
|
|
24
|
-
sliding: Boolean,
|
|
25
24
|
title: String,
|
|
26
25
|
inner: {
|
|
27
26
|
type: Boolean,
|
|
@@ -30,9 +29,7 @@ export default {
|
|
|
30
29
|
...colorProps
|
|
31
30
|
},
|
|
32
31
|
setup(props) {
|
|
33
|
-
const classes = computed(() => classNames('subnavbar', {
|
|
34
|
-
sliding: props.sliding
|
|
35
|
-
}, colorClasses(props)));
|
|
32
|
+
const classes = computed(() => classNames('subnavbar', {}, colorClasses(props)));
|
|
36
33
|
return {
|
|
37
34
|
classes
|
|
38
35
|
};
|
|
@@ -6,9 +6,7 @@ function render(_ctx, _cache) {
|
|
|
6
6
|
"data-confirm": _ctx.confirmText || undefined,
|
|
7
7
|
"data-confirm-title": _ctx.confirmTitle || undefined,
|
|
8
8
|
class: _normalizeClass(_ctx.classes),
|
|
9
|
-
onClick: _cache[0] || (_cache[0] =
|
|
10
|
-
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
11
|
-
})
|
|
9
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
12
10
|
}, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
|
|
13
11
|
}
|
|
14
12
|
import { computed } from 'vue';
|
|
@@ -28,10 +26,9 @@ export default {
|
|
|
28
26
|
...colorProps
|
|
29
27
|
},
|
|
30
28
|
emits: ['click'],
|
|
31
|
-
setup(props,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} = _ref;
|
|
29
|
+
setup(props, {
|
|
30
|
+
emit
|
|
31
|
+
}) {
|
|
35
32
|
const onClick = e => {
|
|
36
33
|
emit('click', e);
|
|
37
34
|
};
|
package/components/tab.js
CHANGED
|
@@ -31,10 +31,9 @@ export default {
|
|
|
31
31
|
...colorProps
|
|
32
32
|
},
|
|
33
33
|
emits: ['tab:show', 'tab:hide'],
|
|
34
|
-
setup(props,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} = _ref;
|
|
34
|
+
setup(props, {
|
|
35
|
+
emit
|
|
36
|
+
}) {
|
|
38
37
|
const elRef = ref(null);
|
|
39
38
|
const routerData = ref(null);
|
|
40
39
|
const route = inject('f7route', null);
|
|
@@ -54,10 +54,9 @@ export default {
|
|
|
54
54
|
...colorProps
|
|
55
55
|
},
|
|
56
56
|
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'],
|
|
57
|
-
setup(props,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
} = _ref;
|
|
57
|
+
setup(props, {
|
|
58
|
+
emit
|
|
59
|
+
}) {
|
|
61
60
|
let f7TextEditor = null;
|
|
62
61
|
const elRef = ref(null);
|
|
63
62
|
const onChange = (editor, editorValue) => {
|
package/components/toggle.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = ["name", "disabled", "readonly", "checked", "value"];
|
|
3
|
-
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", {
|
|
4
|
-
class: "toggle-icon"
|
|
5
|
-
}, null, -1);
|
|
6
3
|
function render(_ctx, _cache) {
|
|
7
4
|
return _openBlock(), _createElementBlock("label", {
|
|
8
5
|
ref: "elRef",
|
|
@@ -14,10 +11,10 @@ function render(_ctx, _cache) {
|
|
|
14
11
|
readonly: _ctx.readonly,
|
|
15
12
|
checked: _ctx.checked,
|
|
16
13
|
value: _ctx.value,
|
|
17
|
-
onChange: _cache[0] || (_cache[0] =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}, null,
|
|
14
|
+
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
15
|
+
}, null, 40, _hoisted_1), _cache[1] || (_cache[1] = _createElementVNode("span", {
|
|
16
|
+
class: "toggle-icon"
|
|
17
|
+
}, null, -1))], 2);
|
|
21
18
|
}
|
|
22
19
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
23
20
|
import { classNames } from '../shared/utils.js';
|
|
@@ -42,10 +39,9 @@ export default {
|
|
|
42
39
|
...colorProps
|
|
43
40
|
},
|
|
44
41
|
emits: ['change', 'toggle:change', 'update:checked'],
|
|
45
|
-
setup(props,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} = _ref;
|
|
42
|
+
setup(props, {
|
|
43
|
+
emit
|
|
44
|
+
}) {
|
|
49
45
|
let f7Toggle = null;
|
|
50
46
|
const elRef = ref(null);
|
|
51
47
|
useTooltip(elRef, props);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const ToolbarPane: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
},
|
|
9
|
+
() => JSX.Element,
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
ComponentOptionsMixin,
|
|
14
|
+
ComponentOptionsMixin,
|
|
15
|
+
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export default ToolbarPane;
|
|
19
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
function render(_ctx, _cache) {
|
|
3
|
+
return _openBlock(), _createElementBlock("div", {
|
|
4
|
+
ref: "elRef",
|
|
5
|
+
class: _normalizeClass(_ctx.classes)
|
|
6
|
+
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
7
|
+
}
|
|
8
|
+
import { computed } from 'vue';
|
|
9
|
+
import { classNames } from '../shared/utils.js';
|
|
10
|
+
export default {
|
|
11
|
+
name: 'f7-toolbar-pane',
|
|
12
|
+
render,
|
|
13
|
+
props: {},
|
|
14
|
+
setup() {
|
|
15
|
+
const classes = computed(() => {
|
|
16
|
+
return classNames('toolbar-pane');
|
|
17
|
+
});
|
|
18
|
+
return {
|
|
19
|
+
classes
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
};
|
package/components/toolbar.js
CHANGED
|
@@ -63,10 +63,9 @@ export default {
|
|
|
63
63
|
...colorProps
|
|
64
64
|
},
|
|
65
65
|
emits: ['toolbar:hide', 'toolbar:show'],
|
|
66
|
-
setup(props,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} = _ref;
|
|
66
|
+
setup(props, {
|
|
67
|
+
emit
|
|
68
|
+
}) {
|
|
70
69
|
const elRef = ref(null);
|
|
71
70
|
const theme = useTheme();
|
|
72
71
|
const onHide = toolbarEl => {
|
|
@@ -63,11 +63,10 @@ export default {
|
|
|
63
63
|
...routerProps
|
|
64
64
|
},
|
|
65
65
|
emits: ['click', 'treeview:open', 'treeview:close', 'treeview:loadchildren'],
|
|
66
|
-
setup(props,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
} = _ref;
|
|
66
|
+
setup(props, {
|
|
67
|
+
slots,
|
|
68
|
+
emit
|
|
69
|
+
}) {
|
|
71
70
|
const elRef = ref(null);
|
|
72
71
|
const hasChildren = computed(() => {
|
|
73
72
|
return slots.default || slots.children || slots['children-start'];
|
package/components/view.d.ts
CHANGED
|
@@ -224,16 +224,6 @@ declare const View: DefineComponent<
|
|
|
224
224
|
default: undefined;
|
|
225
225
|
},
|
|
226
226
|
|
|
227
|
-
iosDynamicNavbar: {
|
|
228
|
-
type: BooleanConstructor;
|
|
229
|
-
default: undefined;
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
iosAnimateNavbarBackIcon: {
|
|
233
|
-
type: BooleanConstructor;
|
|
234
|
-
default: undefined;
|
|
235
|
-
},
|
|
236
|
-
|
|
237
227
|
passRouteQueryToRequest: {
|
|
238
228
|
type: BooleanConstructor;
|
|
239
229
|
default: undefined;
|
package/components/view.js
CHANGED
|
@@ -134,16 +134,6 @@ export default {
|
|
|
134
134
|
default: undefined
|
|
135
135
|
},
|
|
136
136
|
transition: String,
|
|
137
|
-
// iOS Dynamic Navbar
|
|
138
|
-
iosDynamicNavbar: {
|
|
139
|
-
type: Boolean,
|
|
140
|
-
default: undefined
|
|
141
|
-
},
|
|
142
|
-
// Animate iOS Navbar Back Icon
|
|
143
|
-
iosAnimateNavbarBackIcon: {
|
|
144
|
-
type: Boolean,
|
|
145
|
-
default: undefined
|
|
146
|
-
},
|
|
147
137
|
// MD Theme delay
|
|
148
138
|
materialPageLoadDelay: Number,
|
|
149
139
|
passRouteQueryToRequest: {
|
|
@@ -170,11 +160,10 @@ export default {
|
|
|
170
160
|
...colorProps
|
|
171
161
|
},
|
|
172
162
|
emits: ['view:init', 'view:resize', 'swipeback:move', 'swipeback:beforechange', 'swipeback:afterchange', 'swipeback:beforereset', 'swipeback:afterreset', 'tab:hide', 'tab:show'],
|
|
173
|
-
setup(props,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
} = _ref;
|
|
163
|
+
setup(props, {
|
|
164
|
+
emit,
|
|
165
|
+
slots
|
|
166
|
+
}) {
|
|
178
167
|
// const childrenArray = React.Children.toArray(children);
|
|
179
168
|
// const initialPageComponent = childrenArray.filter((c) => c.props && c.props.initialPage)[0];
|
|
180
169
|
// const restChildren = childrenArray.filter((c) => !c.props || !c.props.initialPage);
|