framework7-vue 7.0.8 → 8.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-content.js +2 -5
- package/components/accordion-item.js +0 -13
- package/components/accordion-toggle.js +2 -5
- package/components/accordion.js +0 -4
- package/components/actions-button.d.ts +1 -1
- package/components/actions-button.js +2 -9
- package/components/actions-group.js +2 -5
- package/components/actions-label.d.ts +1 -1
- package/components/actions-label.js +2 -8
- package/components/actions.js +2 -14
- package/components/app.d.ts +7 -12
- package/components/app.js +11 -24
- package/components/appbar.js +2 -5
- package/components/area-chart.js +4 -41
- package/components/badge.js +0 -4
- package/components/block-footer.js +2 -5
- package/components/block-header.js +2 -5
- package/components/block-title.js +0 -4
- package/components/block.d.ts +61 -9
- package/components/block.js +52 -17
- package/components/breadcrumbs-collapsed.js +0 -5
- package/components/breadcrumbs-item.js +0 -4
- package/components/breadcrumbs-separator.js +0 -4
- package/components/breadcrumbs.js +0 -4
- package/components/button.d.ts +9 -25
- package/components/button.js +9 -25
- package/components/card-content.js +0 -4
- package/components/card-footer.js +2 -5
- package/components/card-header.js +2 -5
- package/components/card.d.ts +17 -5
- package/components/card.js +10 -20
- package/components/checkbox.js +0 -7
- package/components/chip.d.ts +0 -4
- package/components/chip.js +0 -7
- package/components/col.js +3 -9
- package/components/fab-backdrop.js +2 -5
- package/components/fab-button.js +0 -6
- package/components/fab-buttons.js +0 -4
- package/components/fab.js +0 -9
- package/components/gauge.js +0 -4
- package/components/icon.d.ts +0 -4
- package/components/icon.js +1 -18
- package/components/input.js +0 -56
- package/components/link.d.ts +0 -4
- package/components/link.js +4 -13
- package/components/list-button.js +0 -6
- package/components/list-group.js +0 -4
- package/components/list-index.d.ts +0 -5
- package/components/list-index.js +0 -14
- package/components/list-input.d.ts +0 -4
- package/components/list-input.js +0 -53
- package/components/list-item-cell.js +3 -5
- package/components/list-item-row.js +3 -5
- package/components/list-item.d.ts +0 -4
- package/components/list-item.js +9 -52
- package/components/list.d.ts +71 -23
- package/components/list.js +42 -33
- package/components/login-screen-title.js +2 -5
- package/components/login-screen.js +2 -17
- package/components/menu-dropdown-item.js +1 -6
- package/components/menu-dropdown.js +1 -4
- package/components/menu-item.js +4 -18
- package/components/menu.js +3 -5
- package/components/message.js +0 -16
- package/components/messagebar-attachment.js +0 -7
- package/components/messagebar-attachments.js +2 -5
- package/components/messagebar-sheet-image.js +7 -15
- package/components/messagebar-sheet-item.js +2 -5
- package/components/messagebar-sheet.js +2 -5
- package/components/messagebar.js +0 -16
- package/components/messages-title.js +2 -5
- package/components/messages.js +0 -13
- package/components/nav-left.js +0 -9
- package/components/nav-right.js +0 -4
- package/components/nav-title-large.js +2 -5
- package/components/nav-title.js +0 -4
- package/components/navbar.d.ts +5 -8
- package/components/navbar.js +6 -29
- package/components/page-content.js +0 -16
- package/components/page.d.ts +0 -4
- package/components/page.js +2 -67
- package/components/panel.d.ts +4 -0
- package/components/panel.js +2 -23
- package/components/photo-browser.js +2 -18
- package/components/pie-chart.js +4 -20
- package/components/popover.d.ts +5 -0
- package/components/popover.js +8 -16
- package/components/popup.js +3 -19
- package/components/preloader.js +4 -23
- package/components/progressbar.js +0 -6
- package/components/radio.js +0 -7
- package/components/range.js +0 -7
- package/components/routable-modals.js +0 -7
- package/components/row.js +3 -9
- package/components/searchbar.d.ts +5 -8
- package/components/searchbar.js +7 -28
- package/components/segmented.d.ts +0 -12
- package/components/segmented.js +2 -12
- package/components/sheet.js +2 -18
- package/components/stepper.d.ts +0 -20
- package/components/stepper.js +1 -27
- package/components/subnavbar.js +0 -4
- package/components/swipeout-actions.js +0 -6
- package/components/swipeout-button.js +0 -6
- package/components/tab.js +2 -15
- package/components/tabs.js +0 -4
- package/components/text-editor.js +0 -17
- package/components/toggle.js +0 -9
- package/components/toolbar.d.ts +4 -21
- package/components/toolbar.js +12 -34
- package/components/treeview-item.d.ts +0 -4
- package/components/treeview-item.js +0 -13
- package/components/treeview.js +2 -5
- package/components/use-icon.js +0 -4
- package/components/view.d.ts +0 -28
- package/components/view.js +4 -50
- package/components/views.js +0 -4
- package/framework7-vue-bundle.js +3 -21
- package/framework7-vue-web-types.json +1 -94
- package/framework7-vue.d.ts +3 -15
- package/framework7-vue.js +3 -12
- package/package.json +8 -1
- package/shared/components-router.js +0 -32
- package/shared/f7.js +5 -19
- package/shared/get-router-initial-component.js +0 -4
- package/shared/mixins.js +3 -15
- package/shared/plugin.js +2 -8
- package/shared/router-open-in.js +4 -13
- package/shared/use-icon.js +1 -6
- package/shared/use-smart-select.js +0 -1
- package/shared/use-store.js +2 -6
- package/shared/use-tab.js +0 -2
- package/shared/use-theme.js +0 -2
- package/shared/use-tooltip.js +0 -2
- package/shared/utils.js +0 -14
- package/components/appbar.d.ts +0 -67
- package/components/col.d.ts +0 -94
- package/components/list-item-cell.d.ts +0 -46
- package/components/list-item-row.d.ts +0 -46
- package/components/menu-dropdown-item.d.ts +0 -223
- package/components/menu-dropdown.d.ts +0 -66
- package/components/menu-item.d.ts +0 -267
- package/components/menu.d.ts +0 -46
- package/components/row.d.ts +0 -73
package/components/popover.js
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
-
|
|
3
2
|
const _hoisted_1 = /*#__PURE__*/_createElementVNode("div", {
|
|
4
3
|
class: "popover-angle"
|
|
5
4
|
}, null, -1);
|
|
6
|
-
|
|
7
5
|
const _hoisted_2 = {
|
|
8
6
|
class: "popover-inner"
|
|
9
7
|
};
|
|
10
|
-
|
|
11
8
|
function render(_ctx, _cache) {
|
|
12
9
|
return _openBlock(), _createElementBlock("div", {
|
|
13
10
|
ref: "elRef",
|
|
14
11
|
class: _normalizeClass(_ctx.classes)
|
|
15
12
|
}, [_hoisted_1, _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "default")])], 2);
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
19
15
|
import { classNames } from '../shared/utils.js';
|
|
20
16
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -33,6 +29,10 @@ export default {
|
|
|
33
29
|
type: [String, Object],
|
|
34
30
|
default: undefined
|
|
35
31
|
},
|
|
32
|
+
angle: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: undefined
|
|
35
|
+
},
|
|
36
36
|
backdrop: {
|
|
37
37
|
type: Boolean,
|
|
38
38
|
default: undefined
|
|
@@ -64,43 +64,36 @@ export default {
|
|
|
64
64
|
...colorProps
|
|
65
65
|
},
|
|
66
66
|
emits: ['popover:open', 'popover:opened', 'popover:close', 'popover:closed', 'update:opened'],
|
|
67
|
-
|
|
68
67
|
setup(props, _ref) {
|
|
69
68
|
let {
|
|
70
69
|
emit
|
|
71
70
|
} = _ref;
|
|
72
|
-
const f7Popover = ref(null);
|
|
73
|
-
|
|
71
|
+
const f7Popover = ref(null);
|
|
72
|
+
// eslint-disable-next-line
|
|
74
73
|
let isOpened = props.opened;
|
|
75
74
|
let isClosing = false;
|
|
76
75
|
const elRef = ref(null);
|
|
77
|
-
|
|
78
76
|
const onOpen = instance => {
|
|
79
77
|
isOpened = true;
|
|
80
78
|
isClosing = false;
|
|
81
79
|
emit('popover:open', instance);
|
|
82
80
|
emit('update:opened', true);
|
|
83
81
|
};
|
|
84
|
-
|
|
85
82
|
const onOpened = instance => {
|
|
86
83
|
emit('popover:opened', instance);
|
|
87
84
|
};
|
|
88
|
-
|
|
89
85
|
const onClose = instance => {
|
|
90
86
|
isOpened = false;
|
|
91
87
|
isClosing = true;
|
|
92
88
|
emit('popover:close', instance);
|
|
93
89
|
};
|
|
94
|
-
|
|
95
90
|
const onClosed = instance => {
|
|
96
91
|
isClosing = false;
|
|
97
92
|
emit('popover:closed', instance);
|
|
98
93
|
emit('update:opened', false);
|
|
99
94
|
};
|
|
100
|
-
|
|
101
95
|
watch(() => props.opened, value => {
|
|
102
96
|
if (!f7Popover.value) return;
|
|
103
|
-
|
|
104
97
|
if (value) {
|
|
105
98
|
f7Popover.value.open();
|
|
106
99
|
} else {
|
|
@@ -123,6 +116,7 @@ export default {
|
|
|
123
116
|
closeByBackdropClick,
|
|
124
117
|
closeByOutsideClick,
|
|
125
118
|
closeOnEscape,
|
|
119
|
+
angle,
|
|
126
120
|
backdrop,
|
|
127
121
|
backdropEl,
|
|
128
122
|
containerEl,
|
|
@@ -132,13 +126,13 @@ export default {
|
|
|
132
126
|
if (typeof closeByBackdropClick !== 'undefined') popoverParams.closeByBackdropClick = closeByBackdropClick;
|
|
133
127
|
if (typeof closeByOutsideClick !== 'undefined') popoverParams.closeByOutsideClick = closeByOutsideClick;
|
|
134
128
|
if (typeof closeOnEscape !== 'undefined') popoverParams.closeOnEscape = closeOnEscape;
|
|
129
|
+
if (typeof angle !== 'undefined') popoverParams.angle = angle;
|
|
135
130
|
if (typeof backdrop !== 'undefined') popoverParams.backdrop = backdrop;
|
|
136
131
|
if (typeof backdropEl !== 'undefined') popoverParams.backdropEl = backdropEl;
|
|
137
132
|
if (typeof containerEl !== 'undefined') popoverParams.containerEl = containerEl;
|
|
138
133
|
if (typeof verticalPosition !== 'undefined') popoverParams.verticalPosition = verticalPosition;
|
|
139
134
|
f7ready(() => {
|
|
140
135
|
f7Popover.value = f7.popover.create(popoverParams);
|
|
141
|
-
|
|
142
136
|
if (props.opened) {
|
|
143
137
|
f7Popover.value.open(targetEl, false);
|
|
144
138
|
}
|
|
@@ -148,7 +142,6 @@ export default {
|
|
|
148
142
|
if (f7Popover.value) {
|
|
149
143
|
f7Popover.value.destroy();
|
|
150
144
|
}
|
|
151
|
-
|
|
152
145
|
f7Popover.value = null;
|
|
153
146
|
});
|
|
154
147
|
const classes = computed(() => classNames('popover', modalStateClasses({
|
|
@@ -160,5 +153,4 @@ export default {
|
|
|
160
153
|
classes
|
|
161
154
|
};
|
|
162
155
|
}
|
|
163
|
-
|
|
164
156
|
};
|
package/components/popup.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
return _openBlock(), _createElementBlock("div", {
|
|
5
4
|
ref: "elRef",
|
|
6
5
|
class: _normalizeClass(_ctx.classes)
|
|
7
6
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
11
9
|
import { classNames } from '../shared/utils.js';
|
|
12
10
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -54,59 +52,48 @@ export default {
|
|
|
54
52
|
...colorProps
|
|
55
53
|
},
|
|
56
54
|
emits: ['popup:swipestart', 'popup:swipemove', 'popup:swipeend', 'popup:swipeclose', 'popup:open', 'popup:opened', 'popup:close', 'popup:closed', 'update:opened'],
|
|
57
|
-
|
|
58
55
|
setup(props, _ref) {
|
|
59
56
|
let {
|
|
60
57
|
emit
|
|
61
58
|
} = _ref;
|
|
62
|
-
const f7Popup = ref(null);
|
|
63
|
-
|
|
59
|
+
const f7Popup = ref(null);
|
|
60
|
+
// eslint-disable-next-line
|
|
64
61
|
let isOpened = props.opened;
|
|
65
62
|
let isClosing = false;
|
|
66
63
|
const elRef = ref(null);
|
|
67
|
-
|
|
68
64
|
const onSwipeStart = instance => {
|
|
69
65
|
emit('popup:swipestart', instance);
|
|
70
66
|
};
|
|
71
|
-
|
|
72
67
|
const onSwipeMove = instance => {
|
|
73
68
|
emit('popup:swipemove', instance);
|
|
74
69
|
};
|
|
75
|
-
|
|
76
70
|
const onSwipeEnd = instance => {
|
|
77
71
|
emit('popup:swipeend', instance);
|
|
78
72
|
};
|
|
79
|
-
|
|
80
73
|
const onSwipeClose = instance => {
|
|
81
74
|
emit('popup:swipeclose', instance);
|
|
82
75
|
};
|
|
83
|
-
|
|
84
76
|
const onOpen = instance => {
|
|
85
77
|
isOpened = true;
|
|
86
78
|
isClosing = false;
|
|
87
79
|
emit('popup:open', instance);
|
|
88
80
|
emit('update:opened', true);
|
|
89
81
|
};
|
|
90
|
-
|
|
91
82
|
const onOpened = instance => {
|
|
92
83
|
emit('popup:opened', instance);
|
|
93
84
|
};
|
|
94
|
-
|
|
95
85
|
const onClose = instance => {
|
|
96
86
|
isOpened = false;
|
|
97
87
|
isClosing = true;
|
|
98
88
|
emit('popup:close', instance);
|
|
99
89
|
};
|
|
100
|
-
|
|
101
90
|
const onClosed = instance => {
|
|
102
91
|
isClosing = false;
|
|
103
92
|
emit('popup:closed', instance);
|
|
104
93
|
emit('update:opened', false);
|
|
105
94
|
};
|
|
106
|
-
|
|
107
95
|
watch(() => props.opened, value => {
|
|
108
96
|
if (!f7Popup.value) return;
|
|
109
|
-
|
|
110
97
|
if (value) {
|
|
111
98
|
f7Popup.value.open();
|
|
112
99
|
} else {
|
|
@@ -148,9 +135,8 @@ export default {
|
|
|
148
135
|
if (typeof containerEl !== 'undefined') popupParams.containerEl = containerEl;
|
|
149
136
|
f7ready(() => {
|
|
150
137
|
f7Popup.value = f7.popup.create(popupParams);
|
|
151
|
-
|
|
152
138
|
if (props.opened) {
|
|
153
|
-
f7Popup.value.open(false);
|
|
139
|
+
f7Popup.value.open(false, true);
|
|
154
140
|
}
|
|
155
141
|
});
|
|
156
142
|
});
|
|
@@ -158,7 +144,6 @@ export default {
|
|
|
158
144
|
if (f7Popup.value) {
|
|
159
145
|
f7Popup.value.destroy();
|
|
160
146
|
}
|
|
161
|
-
|
|
162
147
|
f7Popup.value = null;
|
|
163
148
|
});
|
|
164
149
|
const classes = computed(() => classNames('popup', {
|
|
@@ -173,5 +158,4 @@ export default {
|
|
|
173
158
|
classes
|
|
174
159
|
};
|
|
175
160
|
}
|
|
176
|
-
|
|
177
161
|
};
|
package/components/preloader.js
CHANGED
|
@@ -3,7 +3,6 @@ const _hoisted_1 = {
|
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "preloader-inner"
|
|
5
5
|
};
|
|
6
|
-
|
|
7
6
|
const _hoisted_2 = /*#__PURE__*/_createElementVNode("svg", {
|
|
8
7
|
viewBox: "0 0 36 36"
|
|
9
8
|
}, [/*#__PURE__*/_createElementVNode("circle", {
|
|
@@ -11,38 +10,23 @@ const _hoisted_2 = /*#__PURE__*/_createElementVNode("svg", {
|
|
|
11
10
|
cy: "18",
|
|
12
11
|
r: "16"
|
|
13
12
|
})], -1);
|
|
14
|
-
|
|
15
13
|
const _hoisted_3 = [_hoisted_2];
|
|
16
14
|
const _hoisted_4 = {
|
|
17
15
|
key: 1,
|
|
18
16
|
class: "preloader-inner"
|
|
19
17
|
};
|
|
20
|
-
|
|
21
18
|
const _hoisted_5 = /*#__PURE__*/_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);
|
|
22
|
-
|
|
23
19
|
const _hoisted_13 = [_hoisted_5];
|
|
24
20
|
const _hoisted_14 = {
|
|
25
21
|
key: 2,
|
|
26
22
|
class: "preloader-inner"
|
|
27
23
|
};
|
|
28
|
-
|
|
29
|
-
const _hoisted_15 = /*#__PURE__*/_createElementVNode("span", {
|
|
30
|
-
class: "preloader-inner-circle"
|
|
31
|
-
}, null, -1);
|
|
32
|
-
|
|
33
|
-
const _hoisted_16 = [_hoisted_15];
|
|
34
|
-
const _hoisted_17 = {
|
|
35
|
-
key: 3,
|
|
36
|
-
class: "preloader-inner"
|
|
37
|
-
};
|
|
38
|
-
|
|
39
24
|
function render(_ctx, _cache) {
|
|
40
25
|
return _openBlock(), _createElementBlock("div", {
|
|
41
26
|
class: _normalizeClass(_ctx.classes),
|
|
42
27
|
style: _normalizeStyle(_ctx.style)
|
|
43
|
-
}, [_ctx.theme && _ctx.theme.md ? (_openBlock(), _createElementBlock("span", _hoisted_1, _hoisted_3)) : _ctx.theme && _ctx.theme.ios ? (_openBlock(), _createElementBlock("span", _hoisted_4, _hoisted_13)) : _ctx.theme
|
|
28
|
+
}, [_ctx.theme && _ctx.theme.md ? (_openBlock(), _createElementBlock("span", _hoisted_1, _hoisted_3)) : _ctx.theme && _ctx.theme.ios ? (_openBlock(), _createElementBlock("span", _hoisted_4, _hoisted_13)) : !_ctx.theme ? (_openBlock(), _createElementBlock("span", _hoisted_14)) : _createCommentVNode("", true)], 6);
|
|
44
29
|
}
|
|
45
|
-
|
|
46
30
|
import { computed } from 'vue';
|
|
47
31
|
import { classNames } from '../shared/utils.js';
|
|
48
32
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -54,24 +38,22 @@ export default {
|
|
|
54
38
|
size: [Number, String],
|
|
55
39
|
...colorProps
|
|
56
40
|
},
|
|
57
|
-
|
|
58
41
|
setup(props) {
|
|
59
42
|
const theme = useTheme();
|
|
60
|
-
const classes = computed(() => classNames('preloader',
|
|
43
|
+
const classes = computed(() => classNames('preloader', {
|
|
44
|
+
preloader: true
|
|
45
|
+
}, colorClasses(props)));
|
|
61
46
|
const style = computed(() => {
|
|
62
47
|
const preloaderStyle = {};
|
|
63
48
|
let sizeComputed = props.size;
|
|
64
|
-
|
|
65
49
|
if (sizeComputed && typeof sizeComputed === 'string' && sizeComputed.indexOf('px') >= 0) {
|
|
66
50
|
sizeComputed = sizeComputed.replace('px', '');
|
|
67
51
|
}
|
|
68
|
-
|
|
69
52
|
if (sizeComputed) {
|
|
70
53
|
preloaderStyle.width = `${sizeComputed}px`;
|
|
71
54
|
preloaderStyle.height = `${sizeComputed}px`;
|
|
72
55
|
preloaderStyle['--f7-preloader-size'] = `${sizeComputed}px`;
|
|
73
56
|
}
|
|
74
|
-
|
|
75
57
|
return preloaderStyle;
|
|
76
58
|
});
|
|
77
59
|
return {
|
|
@@ -80,5 +62,4 @@ export default {
|
|
|
80
62
|
theme
|
|
81
63
|
};
|
|
82
64
|
}
|
|
83
|
-
|
|
84
65
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = ["data-progress"];
|
|
3
|
-
|
|
4
3
|
function render(_ctx, _cache) {
|
|
5
4
|
return _openBlock(), _createElementBlock("span", {
|
|
6
5
|
ref: "elRef",
|
|
@@ -10,7 +9,6 @@ function render(_ctx, _cache) {
|
|
|
10
9
|
style: _normalizeStyle(_ctx.transformStyle)
|
|
11
10
|
}, null, 4)], 10, _hoisted_1);
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
import { computed, ref } from 'vue';
|
|
15
13
|
import { classNames } from '../shared/utils.js';
|
|
16
14
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -23,15 +21,12 @@ export default {
|
|
|
23
21
|
infinite: Boolean,
|
|
24
22
|
...colorProps
|
|
25
23
|
},
|
|
26
|
-
|
|
27
24
|
setup(props) {
|
|
28
25
|
const elRef = ref(null);
|
|
29
|
-
|
|
30
26
|
const set = (newProgress, speed) => {
|
|
31
27
|
if (!f7) return;
|
|
32
28
|
f7.progressbar.set(elRef.value, newProgress, speed);
|
|
33
29
|
};
|
|
34
|
-
|
|
35
30
|
const transformStyle = computed(() => ({
|
|
36
31
|
transform: props.progress ? `translate3d(${-100 + props.progress}%, 0, 0)` : '',
|
|
37
32
|
WebkitTransform: props.progress ? `translate3d(${-100 + props.progress}%, 0, 0)` : ''
|
|
@@ -46,5 +41,4 @@ export default {
|
|
|
46
41
|
elRef
|
|
47
42
|
};
|
|
48
43
|
}
|
|
49
|
-
|
|
50
44
|
};
|
package/components/radio.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
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
|
-
|
|
4
3
|
const _hoisted_2 = /*#__PURE__*/_createElementVNode("i", {
|
|
5
4
|
class: "icon-radio"
|
|
6
5
|
}, null, -1);
|
|
7
|
-
|
|
8
6
|
function render(_ctx, _cache) {
|
|
9
7
|
return _openBlock(), _createElementBlock("label", {
|
|
10
8
|
class: _normalizeClass(_ctx.classes)
|
|
@@ -21,7 +19,6 @@ function render(_ctx, _cache) {
|
|
|
21
19
|
})
|
|
22
20
|
}, null, 40, _hoisted_1), _hoisted_2, _renderSlot(_ctx.$slots, "default")], 2);
|
|
23
21
|
}
|
|
24
|
-
|
|
25
22
|
import { ref, computed } from 'vue';
|
|
26
23
|
import { classNames } from '../shared/utils.js';
|
|
27
24
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -40,18 +37,15 @@ export default {
|
|
|
40
37
|
...colorProps
|
|
41
38
|
},
|
|
42
39
|
emits: ['update:checked', 'change'],
|
|
43
|
-
|
|
44
40
|
setup(props, _ref) {
|
|
45
41
|
let {
|
|
46
42
|
emit
|
|
47
43
|
} = _ref;
|
|
48
44
|
const inputElRef = ref(null);
|
|
49
|
-
|
|
50
45
|
const onChange = event => {
|
|
51
46
|
emit('update:checked', event.target.checked);
|
|
52
47
|
emit('change', event);
|
|
53
48
|
};
|
|
54
|
-
|
|
55
49
|
const classes = computed(() => classNames({
|
|
56
50
|
radio: true,
|
|
57
51
|
disabled: props.disabled
|
|
@@ -62,5 +56,4 @@ export default {
|
|
|
62
56
|
onChange
|
|
63
57
|
};
|
|
64
58
|
}
|
|
65
|
-
|
|
66
59
|
};
|
package/components/range.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass } from "vue";
|
|
2
2
|
const _hoisted_1 = ["name"];
|
|
3
|
-
|
|
4
3
|
function render(_ctx, _cache) {
|
|
5
4
|
return _openBlock(), _createElementBlock("div", {
|
|
6
5
|
ref: "elRef",
|
|
@@ -12,7 +11,6 @@ function render(_ctx, _cache) {
|
|
|
12
11
|
name: _ctx.name
|
|
13
12
|
}, null, 8, _hoisted_1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2);
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
import { computed, ref, onMounted, onBeforeUnmount, watch } from 'vue';
|
|
17
15
|
import { classNames, noUndefinedProps } from '../shared/utils.js';
|
|
18
16
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -86,7 +84,6 @@ export default {
|
|
|
86
84
|
...colorProps
|
|
87
85
|
},
|
|
88
86
|
emits: ['range:change', 'range:changed', 'rangeChange', 'rangeChanged', 'update:value'],
|
|
89
|
-
|
|
90
87
|
setup(props, _ref) {
|
|
91
88
|
let {
|
|
92
89
|
emit
|
|
@@ -96,7 +93,6 @@ export default {
|
|
|
96
93
|
watch(() => props.value, newValue => {
|
|
97
94
|
if (!f7Range) return;
|
|
98
95
|
const rangeValue = f7Range.value;
|
|
99
|
-
|
|
100
96
|
if (Array.isArray(newValue) && Array.isArray(rangeValue)) {
|
|
101
97
|
if (rangeValue[0] !== newValue[0] || rangeValue[1] !== newValue[1]) {
|
|
102
98
|
f7Range.setValue(newValue);
|
|
@@ -116,13 +112,11 @@ export default {
|
|
|
116
112
|
emit('range:change', val);
|
|
117
113
|
emit('rangeChange', val);
|
|
118
114
|
},
|
|
119
|
-
|
|
120
115
|
changed(range, val) {
|
|
121
116
|
emit('range:changed', val);
|
|
122
117
|
emit('rangeChanged', val);
|
|
123
118
|
emit('update:value', val);
|
|
124
119
|
}
|
|
125
|
-
|
|
126
120
|
}
|
|
127
121
|
}));
|
|
128
122
|
});
|
|
@@ -142,5 +136,4 @@ export default {
|
|
|
142
136
|
classes
|
|
143
137
|
};
|
|
144
138
|
}
|
|
145
|
-
|
|
146
139
|
};
|
|
@@ -2,7 +2,6 @@ import { ref, onMounted, onBeforeUnmount, onUpdated, toRaw, h } from 'vue';
|
|
|
2
2
|
import { f7events, f7routers, f7 } from '../shared/f7.js';
|
|
3
3
|
export default {
|
|
4
4
|
name: 'f7-routable-modals',
|
|
5
|
-
|
|
6
5
|
setup() {
|
|
7
6
|
const elRef = ref(null);
|
|
8
7
|
const modals = ref([]);
|
|
@@ -11,7 +10,6 @@ export default {
|
|
|
11
10
|
routerData.value = {
|
|
12
11
|
modals,
|
|
13
12
|
el: elRef.value,
|
|
14
|
-
|
|
15
13
|
setModals(newModals) {
|
|
16
14
|
newModals.forEach(modal => {
|
|
17
15
|
// eslint-disable-next-line
|
|
@@ -19,7 +17,6 @@ export default {
|
|
|
19
17
|
});
|
|
20
18
|
modals.value = [...newModals];
|
|
21
19
|
}
|
|
22
|
-
|
|
23
20
|
};
|
|
24
21
|
f7routers.modals = routerData.value;
|
|
25
22
|
});
|
|
@@ -32,9 +29,7 @@ export default {
|
|
|
32
29
|
f7routers.modals = null;
|
|
33
30
|
routerData.value = null;
|
|
34
31
|
});
|
|
35
|
-
|
|
36
32
|
const getComponent = modal => toRaw(modal.component);
|
|
37
|
-
|
|
38
33
|
const getProps = modal => {
|
|
39
34
|
const {
|
|
40
35
|
component: modalComponent,
|
|
@@ -48,7 +43,6 @@ export default {
|
|
|
48
43
|
});
|
|
49
44
|
return passProps;
|
|
50
45
|
};
|
|
51
|
-
|
|
52
46
|
return () => {
|
|
53
47
|
return h('div', {
|
|
54
48
|
ref: elRef,
|
|
@@ -61,5 +55,4 @@ export default {
|
|
|
61
55
|
})]);
|
|
62
56
|
};
|
|
63
57
|
}
|
|
64
|
-
|
|
65
58
|
};
|
package/components/row.js
CHANGED
|
@@ -3,17 +3,15 @@ const _hoisted_1 = {
|
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "resize-handler"
|
|
5
5
|
};
|
|
6
|
-
|
|
7
6
|
function render(_ctx, _cache) {
|
|
8
7
|
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
|
|
9
8
|
ref: "elRef",
|
|
10
9
|
class: _normalizeClass(_ctx.classes)
|
|
11
10
|
}, {
|
|
12
|
-
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
|
|
13
|
-
_: 3
|
|
14
|
-
}, 8
|
|
11
|
+
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("v-if", true)]),
|
|
12
|
+
_: 3 /* FORWARDED */
|
|
13
|
+
}, 8 /* PROPS */, ["class"]);
|
|
15
14
|
}
|
|
16
|
-
|
|
17
15
|
import { ref, computed, onBeforeUnmount, onMounted } from 'vue';
|
|
18
16
|
import { classNames } from '../shared/utils.js';
|
|
19
17
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -37,19 +35,16 @@ export default {
|
|
|
37
35
|
...colorProps
|
|
38
36
|
},
|
|
39
37
|
emits: ['grid:resize'],
|
|
40
|
-
|
|
41
38
|
setup(props, _ref) {
|
|
42
39
|
let {
|
|
43
40
|
emit
|
|
44
41
|
} = _ref;
|
|
45
42
|
const elRef = ref(null);
|
|
46
|
-
|
|
47
43
|
const onResize = el => {
|
|
48
44
|
if (el === elRef.value) {
|
|
49
45
|
emit('grid:resize');
|
|
50
46
|
}
|
|
51
47
|
};
|
|
52
|
-
|
|
53
48
|
onMounted(() => {
|
|
54
49
|
f7ready(() => {
|
|
55
50
|
f7.on('gridResize', onResize);
|
|
@@ -69,5 +64,4 @@ export default {
|
|
|
69
64
|
elRef
|
|
70
65
|
};
|
|
71
66
|
}
|
|
72
|
-
|
|
73
67
|
};
|
|
@@ -5,14 +5,6 @@ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
|
5
5
|
declare const Searchbar: DefineComponent<
|
|
6
6
|
{
|
|
7
7
|
|
|
8
|
-
noShadow: {
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
noHairline: {
|
|
13
|
-
type: BooleanConstructor;
|
|
14
|
-
},
|
|
15
|
-
|
|
16
8
|
value: {
|
|
17
9
|
type: StringConstructor | NumberConstructor | ArrayConstructor;
|
|
18
10
|
},
|
|
@@ -33,6 +25,11 @@ declare const Searchbar: DefineComponent<
|
|
|
33
25
|
type: StringConstructor | ObjectConstructor;
|
|
34
26
|
},
|
|
35
27
|
|
|
28
|
+
outline: {
|
|
29
|
+
type: any;
|
|
30
|
+
default: boolean;
|
|
31
|
+
},
|
|
32
|
+
|
|
36
33
|
form: {
|
|
37
34
|
type: BooleanConstructor;
|
|
38
35
|
default: boolean;
|
package/components/searchbar.js
CHANGED
|
@@ -6,11 +6,9 @@ const _hoisted_2 = {
|
|
|
6
6
|
class: "searchbar-input-wrap"
|
|
7
7
|
};
|
|
8
8
|
const _hoisted_3 = ["value", "placeholder", "spellcheck"];
|
|
9
|
-
|
|
10
9
|
const _hoisted_4 = /*#__PURE__*/_createElementVNode("i", {
|
|
11
10
|
class: "searchbar-icon"
|
|
12
11
|
}, null, -1);
|
|
13
|
-
|
|
14
12
|
function render(_ctx, _cache) {
|
|
15
13
|
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
|
|
16
14
|
ref: "elRef",
|
|
@@ -48,9 +46,8 @@ function render(_ctx, _cache) {
|
|
|
48
46
|
})
|
|
49
47
|
}, _toDisplayString(_ctx.disableButtonText), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "inner-end"), _renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "after-inner")]),
|
|
50
48
|
_: 3
|
|
51
|
-
},
|
|
49
|
+
}, 40, ["class", "onSubmit"]);
|
|
52
50
|
}
|
|
53
|
-
|
|
54
51
|
import { computed, ref, onMounted, onBeforeUnmount } from 'vue';
|
|
55
52
|
import { classNames, noUndefinedProps } from '../shared/utils.js';
|
|
56
53
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -59,8 +56,10 @@ export default {
|
|
|
59
56
|
name: 'f7-searchbar',
|
|
60
57
|
render,
|
|
61
58
|
props: {
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
outline: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: true
|
|
62
|
+
},
|
|
64
63
|
form: {
|
|
65
64
|
type: Boolean,
|
|
66
65
|
default: true
|
|
@@ -109,7 +108,7 @@ export default {
|
|
|
109
108
|
},
|
|
110
109
|
searchGroupTitle: {
|
|
111
110
|
type: String,
|
|
112
|
-
default: '.
|
|
111
|
+
default: '.list-group-title'
|
|
113
112
|
},
|
|
114
113
|
foundEl: {
|
|
115
114
|
type: [String, Object],
|
|
@@ -159,68 +158,54 @@ export default {
|
|
|
159
158
|
...colorProps
|
|
160
159
|
},
|
|
161
160
|
emits: ['change', 'input', 'focus', 'blur', 'submit', 'click:clear', 'click:disable', 'searchbar:search', 'searchbar:clear', 'searchbar:enable', 'searchbar:disable', 'update:value'],
|
|
162
|
-
|
|
163
161
|
setup(props, _ref) {
|
|
164
162
|
let {
|
|
165
163
|
emit
|
|
166
164
|
} = _ref;
|
|
167
165
|
let f7Searchbar = null;
|
|
168
166
|
const elRef = ref(null);
|
|
169
|
-
|
|
170
167
|
const search = query => {
|
|
171
168
|
if (!f7Searchbar) return undefined;
|
|
172
169
|
return f7Searchbar.search(query);
|
|
173
170
|
};
|
|
174
|
-
|
|
175
171
|
const enable = () => {
|
|
176
172
|
if (!f7Searchbar) return undefined;
|
|
177
173
|
return f7Searchbar.enable();
|
|
178
174
|
};
|
|
179
|
-
|
|
180
175
|
const disable = () => {
|
|
181
176
|
if (!f7Searchbar) return undefined;
|
|
182
177
|
return f7Searchbar.disable();
|
|
183
178
|
};
|
|
184
|
-
|
|
185
179
|
const toggle = () => {
|
|
186
180
|
if (!f7Searchbar) return undefined;
|
|
187
181
|
return f7Searchbar.toggle();
|
|
188
182
|
};
|
|
189
|
-
|
|
190
183
|
const clear = () => {
|
|
191
184
|
if (!f7Searchbar) return undefined;
|
|
192
185
|
return f7Searchbar.clear();
|
|
193
186
|
};
|
|
194
|
-
|
|
195
187
|
const onChange = event => {
|
|
196
188
|
emit('change', event);
|
|
197
189
|
};
|
|
198
|
-
|
|
199
190
|
const onInput = event => {
|
|
200
191
|
emit('input', event);
|
|
201
192
|
emit('update:value', event.target.value);
|
|
202
193
|
};
|
|
203
|
-
|
|
204
194
|
const onFocus = event => {
|
|
205
195
|
emit('focus', event);
|
|
206
196
|
};
|
|
207
|
-
|
|
208
197
|
const onBlur = event => {
|
|
209
198
|
emit('blur', event);
|
|
210
199
|
};
|
|
211
|
-
|
|
212
200
|
const onSubmit = event => {
|
|
213
201
|
emit('submit', event);
|
|
214
202
|
};
|
|
215
|
-
|
|
216
203
|
const onClearButtonClick = event => {
|
|
217
204
|
emit('click:clear', event);
|
|
218
205
|
};
|
|
219
|
-
|
|
220
206
|
const onDisableButtonClick = event => {
|
|
221
207
|
emit('click:disable', event);
|
|
222
208
|
};
|
|
223
|
-
|
|
224
209
|
onMounted(() => {
|
|
225
210
|
if (!props.init) return;
|
|
226
211
|
f7ready(() => {
|
|
@@ -250,19 +235,15 @@ export default {
|
|
|
250
235
|
search(searchbar, query, previousQuery) {
|
|
251
236
|
emit('searchbar:search', searchbar, query, previousQuery);
|
|
252
237
|
},
|
|
253
|
-
|
|
254
238
|
clear(searchbar, previousQuery) {
|
|
255
239
|
emit('searchbar:clear', searchbar, previousQuery);
|
|
256
240
|
},
|
|
257
|
-
|
|
258
241
|
enable(searchbar) {
|
|
259
242
|
emit('searchbar:enable', searchbar);
|
|
260
243
|
},
|
|
261
|
-
|
|
262
244
|
disable(searchbar) {
|
|
263
245
|
emit('searchbar:disable', searchbar);
|
|
264
246
|
}
|
|
265
|
-
|
|
266
247
|
}
|
|
267
248
|
});
|
|
268
249
|
Object.keys(params).forEach(key => {
|
|
@@ -279,8 +260,7 @@ export default {
|
|
|
279
260
|
});
|
|
280
261
|
const classes = computed(() => classNames('searchbar', {
|
|
281
262
|
'searchbar-inline': props.inline,
|
|
282
|
-
'no-
|
|
283
|
-
'no-hairline': props.noHairline,
|
|
263
|
+
'no-outline': !props.outline,
|
|
284
264
|
'searchbar-expandable': props.expandable
|
|
285
265
|
}, colorClasses(props)));
|
|
286
266
|
const tag = computed(() => props.form ? 'form' : 'div');
|
|
@@ -302,5 +282,4 @@ export default {
|
|
|
302
282
|
onDisableButtonClick
|
|
303
283
|
};
|
|
304
284
|
}
|
|
305
|
-
|
|
306
285
|
};
|