framework7-vue 7.0.0-beta.7 → 7.0.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-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.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 +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.d.ts +2 -2
- package/components/list.js +13 -5
- 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 +11 -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 +10 -9
- 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.d.ts +5 -0
- package/components/view.js +11 -5
- package/components/views.js +3 -3
- package/framework7-vue-bundle.js +12 -4
- package/framework7-vue-web-types.json +16682 -0
- package/framework7-vue.d.ts +5 -1
- package/framework7-vue.js +8 -4
- package/package.json +3 -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/router-open-in.js +6 -6
- 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/row.js
CHANGED
|
@@ -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, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "resize-handler"
|
|
@@ -7,9 +7,9 @@ const _hoisted_1 = {
|
|
|
7
7
|
function render(_ctx, _cache) {
|
|
8
8
|
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
|
|
9
9
|
ref: "elRef",
|
|
10
|
-
class: _ctx.classes
|
|
10
|
+
class: _normalizeClass(_ctx.classes)
|
|
11
11
|
}, {
|
|
12
|
-
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(),
|
|
12
|
+
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
|
|
13
13
|
_: 3
|
|
14
14
|
}, 8, ["class"]);
|
|
15
15
|
}
|
|
@@ -38,9 +38,10 @@ export default {
|
|
|
38
38
|
},
|
|
39
39
|
emits: ['grid:resize'],
|
|
40
40
|
|
|
41
|
-
setup(props, {
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
setup(props, _ref) {
|
|
42
|
+
let {
|
|
43
|
+
emit
|
|
44
|
+
} = _ref;
|
|
44
45
|
const elRef = ref(null);
|
|
45
46
|
|
|
46
47
|
const onResize = el => {
|
package/components/searchbar.js
CHANGED
|
@@ -1,38 +1,51 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot,
|
|
1
|
+
import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
class: "searchbar-inner"
|
|
4
4
|
};
|
|
5
5
|
const _hoisted_2 = {
|
|
6
6
|
class: "searchbar-input-wrap"
|
|
7
7
|
};
|
|
8
|
+
const _hoisted_3 = ["value", "placeholder", "spellcheck"];
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
+
const _hoisted_4 = /*#__PURE__*/_createElementVNode("i", {
|
|
10
11
|
class: "searchbar-icon"
|
|
11
12
|
}, null, -1);
|
|
12
13
|
|
|
13
14
|
function render(_ctx, _cache) {
|
|
14
15
|
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
|
|
15
16
|
ref: "elRef",
|
|
16
|
-
class: _ctx.classes,
|
|
17
|
+
class: _normalizeClass(_ctx.classes),
|
|
17
18
|
onSubmit: _ctx.onSubmit
|
|
18
19
|
}, {
|
|
19
|
-
default: _withCtx(() => [_renderSlot(_ctx.$slots, "before-inner"),
|
|
20
|
+
default: _withCtx(() => [_renderSlot(_ctx.$slots, "before-inner"), _createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "inner-start"), _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "input-wrap-start"), _createElementVNode("input", {
|
|
20
21
|
value: _ctx.value,
|
|
21
22
|
placeholder: _ctx.placeholder,
|
|
22
23
|
spellcheck: _ctx.spellcheck,
|
|
23
24
|
type: "search",
|
|
24
|
-
onInput: _cache[
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
onInput: _cache[0] || (_cache[0] = function () {
|
|
26
|
+
return _ctx.onInput && _ctx.onInput(...arguments);
|
|
27
|
+
}),
|
|
28
|
+
onChange: _cache[1] || (_cache[1] = function () {
|
|
29
|
+
return _ctx.onChange && _ctx.onChange(...arguments);
|
|
30
|
+
}),
|
|
31
|
+
onFocus: _cache[2] || (_cache[2] = function () {
|
|
32
|
+
return _ctx.onFocus && _ctx.onFocus(...arguments);
|
|
33
|
+
}),
|
|
34
|
+
onBlur: _cache[3] || (_cache[3] = function () {
|
|
35
|
+
return _ctx.onBlur && _ctx.onBlur(...arguments);
|
|
36
|
+
})
|
|
37
|
+
}, null, 40, _hoisted_3), _hoisted_4, _ctx.clearButton ? (_openBlock(), _createElementBlock("span", {
|
|
29
38
|
key: 0,
|
|
30
39
|
class: "input-clear-button",
|
|
31
|
-
onClick: _cache[
|
|
32
|
-
|
|
40
|
+
onClick: _cache[4] || (_cache[4] = function () {
|
|
41
|
+
return _ctx.onClearButtonClick && _ctx.onClearButtonClick(...arguments);
|
|
42
|
+
})
|
|
43
|
+
})) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "input-wrap-end")]), _ctx.disableButton ? (_openBlock(), _createElementBlock("span", {
|
|
33
44
|
key: 0,
|
|
34
45
|
class: "searchbar-disable-button",
|
|
35
|
-
onClick: _cache[
|
|
46
|
+
onClick: _cache[5] || (_cache[5] = function () {
|
|
47
|
+
return _ctx.onDisableButtonClick && _ctx.onDisableButtonClick(...arguments);
|
|
48
|
+
})
|
|
36
49
|
}, _toDisplayString(_ctx.disableButtonText), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "inner-end"), _renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "after-inner")]),
|
|
37
50
|
_: 3
|
|
38
51
|
}, 8, ["class", "onSubmit"]);
|
|
@@ -147,9 +160,10 @@ export default {
|
|
|
147
160
|
},
|
|
148
161
|
emits: ['change', 'input', 'focus', 'blur', 'submit', 'click:clear', 'click:disable', 'searchbar:search', 'searchbar:clear', 'searchbar:enable', 'searchbar:disable', 'update:value'],
|
|
149
162
|
|
|
150
|
-
setup(props, {
|
|
151
|
-
|
|
152
|
-
|
|
163
|
+
setup(props, _ref) {
|
|
164
|
+
let {
|
|
165
|
+
emit
|
|
166
|
+
} = _ref;
|
|
153
167
|
let f7Searchbar = null;
|
|
154
168
|
const elRef = ref(null);
|
|
155
169
|
|
package/components/segmented.js
CHANGED
|
@@ -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, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "segmented-highlight"
|
|
@@ -6,9 +6,9 @@ const _hoisted_1 = {
|
|
|
6
6
|
|
|
7
7
|
function render(_ctx, _cache) {
|
|
8
8
|
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
|
|
9
|
-
class: _ctx.classes
|
|
9
|
+
class: _normalizeClass(_ctx.classes)
|
|
10
10
|
}, {
|
|
11
|
-
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.strong || _ctx.strongIos || _ctx.strongMd || _ctx.strongAurora ? (_openBlock(),
|
|
11
|
+
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.strong || _ctx.strongIos || _ctx.strongMd || _ctx.strongAurora ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
|
|
12
12
|
_: 3
|
|
13
13
|
}, 8, ["class"]);
|
|
14
14
|
}
|
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;
|
|
@@ -160,6 +161,12 @@ export default {
|
|
|
160
161
|
f7Sheet.close();
|
|
161
162
|
}
|
|
162
163
|
});
|
|
164
|
+
['closeByBackdropClick', 'closeByOutsideClick', 'closeOnEscape', 'swipeToClose'].forEach(propName => {
|
|
165
|
+
watch(() => props[propName], propValue => {
|
|
166
|
+
if (!f7Sheet) return;
|
|
167
|
+
f7Sheet.params[propName] = propValue;
|
|
168
|
+
});
|
|
169
|
+
});
|
|
163
170
|
const classes = computed(() => {
|
|
164
171
|
let positionComputed = 'bottom';
|
|
165
172
|
if (props.position) positionComputed = props.position;else if (props.top) positionComputed = 'top';else if (props.bottom) positionComputed = 'bottom';
|
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
|
|
|
@@ -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,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.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
|
@@ -10,6 +10,10 @@ export default {
|
|
|
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,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
|
|