framework7-vue 7.1.5 → 8.0.0-beta.2
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 +0 -4
- 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 +0 -6
- 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 +2 -5
- package/components/list-item-row.js +2 -5
- package/components/list-item.d.ts +4 -4
- package/components/list-item.js +12 -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 +0 -6
- package/components/menu-dropdown.js +0 -4
- package/components/menu-item.js +0 -14
- package/components/menu.js +2 -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 +0 -6
- 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 +7 -51
- package/components/views.js +0 -4
- package/framework7-vue-bundle.js +1 -34
- package/framework7-vue-web-types.json +1 -1
- package/framework7-vue.d.ts +2 -14
- package/framework7-vue.js +3 -14
- package/package.json +1 -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/swiper-slide.d.ts +0 -5
- package/components/swiper.d.ts +0 -5
|
@@ -17,10 +17,6 @@ declare const Segmented: DefineComponent<
|
|
|
17
17
|
type: BooleanConstructor;
|
|
18
18
|
},
|
|
19
19
|
|
|
20
|
-
raisedAurora: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
},
|
|
23
|
-
|
|
24
20
|
round: {
|
|
25
21
|
type: BooleanConstructor;
|
|
26
22
|
},
|
|
@@ -33,10 +29,6 @@ declare const Segmented: DefineComponent<
|
|
|
33
29
|
type: BooleanConstructor;
|
|
34
30
|
},
|
|
35
31
|
|
|
36
|
-
roundAurora: {
|
|
37
|
-
type: BooleanConstructor;
|
|
38
|
-
},
|
|
39
|
-
|
|
40
32
|
strong: {
|
|
41
33
|
type: BooleanConstructor;
|
|
42
34
|
},
|
|
@@ -49,10 +41,6 @@ declare const Segmented: DefineComponent<
|
|
|
49
41
|
type: BooleanConstructor;
|
|
50
42
|
},
|
|
51
43
|
|
|
52
|
-
strongAurora: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
},
|
|
55
|
-
|
|
56
44
|
tag: {
|
|
57
45
|
type: StringConstructor;
|
|
58
46
|
default: string;
|
package/components/segmented.js
CHANGED
|
@@ -3,16 +3,14 @@ const _hoisted_1 = {
|
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "segmented-highlight"
|
|
5
5
|
};
|
|
6
|
-
|
|
7
6
|
function render(_ctx, _cache) {
|
|
8
7
|
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
|
|
9
8
|
class: _normalizeClass(_ctx.classes)
|
|
10
9
|
}, {
|
|
11
|
-
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.strong || _ctx.strongIos || _ctx.strongMd
|
|
10
|
+
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.strong || _ctx.strongIos || _ctx.strongMd ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
|
|
12
11
|
_: 3
|
|
13
12
|
}, 8, ["class"]);
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
import { computed } from 'vue';
|
|
17
15
|
import { classNames } from '../shared/utils.js';
|
|
18
16
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -23,41 +21,33 @@ export default {
|
|
|
23
21
|
raised: Boolean,
|
|
24
22
|
raisedIos: Boolean,
|
|
25
23
|
raisedMd: Boolean,
|
|
26
|
-
raisedAurora: Boolean,
|
|
27
24
|
round: Boolean,
|
|
28
25
|
roundIos: Boolean,
|
|
29
26
|
roundMd: Boolean,
|
|
30
|
-
roundAurora: Boolean,
|
|
31
27
|
strong: Boolean,
|
|
32
28
|
strongIos: Boolean,
|
|
33
29
|
strongMd: Boolean,
|
|
34
|
-
strongAurora: Boolean,
|
|
35
30
|
tag: {
|
|
36
31
|
type: String,
|
|
37
32
|
default: 'div'
|
|
38
33
|
},
|
|
39
34
|
...colorProps
|
|
40
35
|
},
|
|
41
|
-
|
|
42
36
|
setup(props) {
|
|
43
37
|
const classes = computed(() => classNames({
|
|
44
38
|
segmented: true,
|
|
45
39
|
'segmented-raised': props.raised,
|
|
46
40
|
'segmented-raised-ios': props.raisedIos,
|
|
47
|
-
'segmented-raised-aurora': props.raisedAurora,
|
|
48
41
|
'segmented-raised-md': props.raisedMd,
|
|
49
42
|
'segmented-round': props.round,
|
|
50
43
|
'segmented-round-ios': props.roundIos,
|
|
51
|
-
'segmented-round-aurora': props.roundAurora,
|
|
52
44
|
'segmented-round-md': props.roundMd,
|
|
53
45
|
'segmented-strong': props.strong,
|
|
54
46
|
'segmented-strong-ios': props.strongIos,
|
|
55
|
-
'segmented-strong-md': props.strongMd
|
|
56
|
-
'segmented-strong-aurora': props.strongAurora
|
|
47
|
+
'segmented-strong-md': props.strongMd
|
|
57
48
|
}, colorClasses(props)));
|
|
58
49
|
return {
|
|
59
50
|
classes
|
|
60
51
|
};
|
|
61
52
|
}
|
|
62
|
-
|
|
63
53
|
};
|
package/components/sheet.js
CHANGED
|
@@ -54,53 +54,44 @@ export default {
|
|
|
54
54
|
...colorProps
|
|
55
55
|
},
|
|
56
56
|
emits: ['sheet:stepprogress', 'sheet:stepopen', 'sheet:stepclose', 'sheet:open', 'sheet:opened', 'sheet:close', 'sheet:closed', 'update:opened'],
|
|
57
|
-
|
|
58
57
|
setup(props, _ref) {
|
|
59
58
|
let {
|
|
60
59
|
emit,
|
|
61
60
|
slots
|
|
62
61
|
} = _ref;
|
|
63
|
-
let f7Sheet = null;
|
|
64
|
-
|
|
62
|
+
let f7Sheet = null;
|
|
63
|
+
// eslint-disable-next-line
|
|
65
64
|
let isOpened = props.opened;
|
|
66
65
|
let isClosing = false;
|
|
67
66
|
const elRef = ref(null);
|
|
68
|
-
|
|
69
67
|
const onStepProgress = (instance, progress) => {
|
|
70
68
|
emit('sheet:stepprogress', instance, progress);
|
|
71
69
|
};
|
|
72
|
-
|
|
73
70
|
const onStepOpen = instance => {
|
|
74
71
|
emit('sheet:stepopen', instance);
|
|
75
72
|
};
|
|
76
|
-
|
|
77
73
|
const onStepClose = instance => {
|
|
78
74
|
emit('sheet:stepclose', instance);
|
|
79
75
|
};
|
|
80
|
-
|
|
81
76
|
const onOpen = instance => {
|
|
82
77
|
isOpened = true;
|
|
83
78
|
isClosing = false;
|
|
84
79
|
emit('sheet:open', instance);
|
|
85
80
|
emit('update:opened', true);
|
|
86
81
|
};
|
|
87
|
-
|
|
88
82
|
const onOpened = instance => {
|
|
89
83
|
emit('sheet:opened', instance);
|
|
90
84
|
};
|
|
91
|
-
|
|
92
85
|
const onClose = instance => {
|
|
93
86
|
isOpened = false;
|
|
94
87
|
isClosing = true;
|
|
95
88
|
emit('sheet:close', instance);
|
|
96
89
|
};
|
|
97
|
-
|
|
98
90
|
const onClosed = instance => {
|
|
99
91
|
isClosing = false;
|
|
100
92
|
emit('sheet:closed', instance);
|
|
101
93
|
emit('update:opened', false);
|
|
102
94
|
};
|
|
103
|
-
|
|
104
95
|
onMounted(() => {
|
|
105
96
|
if (!elRef.value) return;
|
|
106
97
|
const sheetParams = {
|
|
@@ -139,7 +130,6 @@ export default {
|
|
|
139
130
|
if (typeof containerEl !== 'undefined') sheetParams.containerEl = containerEl;
|
|
140
131
|
f7ready(() => {
|
|
141
132
|
f7Sheet = f7.sheet.create(sheetParams);
|
|
142
|
-
|
|
143
133
|
if (props.opened) {
|
|
144
134
|
f7Sheet.open(false);
|
|
145
135
|
}
|
|
@@ -149,12 +139,10 @@ export default {
|
|
|
149
139
|
if (f7Sheet) {
|
|
150
140
|
f7Sheet.destroy();
|
|
151
141
|
}
|
|
152
|
-
|
|
153
142
|
f7Sheet = null;
|
|
154
143
|
});
|
|
155
144
|
watch(() => props.opened, value => {
|
|
156
145
|
if (!f7Sheet) return;
|
|
157
|
-
|
|
158
146
|
if (value) {
|
|
159
147
|
f7Sheet.open();
|
|
160
148
|
} else {
|
|
@@ -181,12 +169,10 @@ export default {
|
|
|
181
169
|
return () => {
|
|
182
170
|
const fixedList = [];
|
|
183
171
|
const staticList = [];
|
|
184
|
-
|
|
185
172
|
if (slots.default) {
|
|
186
173
|
slots.default().forEach(vnode => {
|
|
187
174
|
if (typeof vnode === 'undefined') return;
|
|
188
175
|
const tag = vnode.type && vnode.type.name ? vnode.type.name : vnode.type;
|
|
189
|
-
|
|
190
176
|
if (fixedTags.indexOf(tag) >= 0) {
|
|
191
177
|
fixedList.push(vnode);
|
|
192
178
|
} else {
|
|
@@ -194,7 +180,6 @@ export default {
|
|
|
194
180
|
}
|
|
195
181
|
});
|
|
196
182
|
}
|
|
197
|
-
|
|
198
183
|
return h('div', {
|
|
199
184
|
class: classes.value,
|
|
200
185
|
ref: elRef
|
|
@@ -203,5 +188,4 @@ export default {
|
|
|
203
188
|
}, [staticList, slots.static && slots.static()])]);
|
|
204
189
|
};
|
|
205
190
|
}
|
|
206
|
-
|
|
207
191
|
};
|
package/components/stepper.d.ts
CHANGED
|
@@ -37,10 +37,6 @@ declare const Stepper: DefineComponent<
|
|
|
37
37
|
type: BooleanConstructor;
|
|
38
38
|
},
|
|
39
39
|
|
|
40
|
-
roundAurora: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
},
|
|
43
|
-
|
|
44
40
|
fill: {
|
|
45
41
|
type: BooleanConstructor;
|
|
46
42
|
},
|
|
@@ -53,10 +49,6 @@ declare const Stepper: DefineComponent<
|
|
|
53
49
|
type: BooleanConstructor;
|
|
54
50
|
},
|
|
55
51
|
|
|
56
|
-
fillAurora: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
},
|
|
59
|
-
|
|
60
52
|
large: {
|
|
61
53
|
type: BooleanConstructor;
|
|
62
54
|
},
|
|
@@ -69,10 +61,6 @@ declare const Stepper: DefineComponent<
|
|
|
69
61
|
type: BooleanConstructor;
|
|
70
62
|
},
|
|
71
63
|
|
|
72
|
-
largeAurora: {
|
|
73
|
-
type: BooleanConstructor;
|
|
74
|
-
},
|
|
75
|
-
|
|
76
64
|
small: {
|
|
77
65
|
type: BooleanConstructor;
|
|
78
66
|
},
|
|
@@ -85,10 +73,6 @@ declare const Stepper: DefineComponent<
|
|
|
85
73
|
type: BooleanConstructor;
|
|
86
74
|
},
|
|
87
75
|
|
|
88
|
-
smallAurora: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
},
|
|
91
|
-
|
|
92
76
|
raised: {
|
|
93
77
|
type: BooleanConstructor;
|
|
94
78
|
},
|
|
@@ -101,10 +85,6 @@ declare const Stepper: DefineComponent<
|
|
|
101
85
|
type: BooleanConstructor;
|
|
102
86
|
},
|
|
103
87
|
|
|
104
|
-
raisedAurora: {
|
|
105
|
-
type: BooleanConstructor;
|
|
106
|
-
},
|
|
107
|
-
|
|
108
88
|
init: {
|
|
109
89
|
type: BooleanConstructor;
|
|
110
90
|
default: boolean;
|
package/components/stepper.js
CHANGED
|
@@ -8,7 +8,6 @@ const _hoisted_3 = {
|
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "stepper-value"
|
|
10
10
|
};
|
|
11
|
-
|
|
12
11
|
function render(_ctx, _cache) {
|
|
13
12
|
return _openBlock(), _createElementBlock("div", {
|
|
14
13
|
ref: "elRef",
|
|
@@ -40,7 +39,6 @@ function render(_ctx, _cache) {
|
|
|
40
39
|
})
|
|
41
40
|
})], 2);
|
|
42
41
|
}
|
|
43
|
-
|
|
44
42
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
45
43
|
import { classNames, noUndefinedProps } from '../shared/utils.js';
|
|
46
44
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -113,72 +111,56 @@ export default {
|
|
|
113
111
|
round: Boolean,
|
|
114
112
|
roundMd: Boolean,
|
|
115
113
|
roundIos: Boolean,
|
|
116
|
-
roundAurora: Boolean,
|
|
117
114
|
fill: Boolean,
|
|
118
115
|
fillMd: Boolean,
|
|
119
116
|
fillIos: Boolean,
|
|
120
|
-
fillAurora: Boolean,
|
|
121
117
|
large: Boolean,
|
|
122
118
|
largeMd: Boolean,
|
|
123
119
|
largeIos: Boolean,
|
|
124
|
-
largeAurora: Boolean,
|
|
125
120
|
small: Boolean,
|
|
126
121
|
smallMd: Boolean,
|
|
127
122
|
smallIos: Boolean,
|
|
128
|
-
smallAurora: Boolean,
|
|
129
123
|
raised: Boolean,
|
|
130
124
|
raisedMd: Boolean,
|
|
131
125
|
raisedIos: Boolean,
|
|
132
|
-
raisedAurora: Boolean,
|
|
133
126
|
...colorProps
|
|
134
127
|
},
|
|
135
128
|
emits: ['input', 'change', 'stepper:minusclick', 'stepper:plusclick', 'stepper:change', 'update:value'],
|
|
136
|
-
|
|
137
129
|
setup(props, _ref) {
|
|
138
130
|
let {
|
|
139
131
|
emit
|
|
140
132
|
} = _ref;
|
|
141
133
|
let f7Stepper = null;
|
|
142
134
|
const elRef = ref(null);
|
|
143
|
-
|
|
144
135
|
const increment = () => {
|
|
145
136
|
if (!f7Stepper) return;
|
|
146
137
|
f7Stepper.increment();
|
|
147
138
|
};
|
|
148
|
-
|
|
149
139
|
const decrement = () => {
|
|
150
140
|
if (!f7Stepper) return;
|
|
151
141
|
f7Stepper.decrement();
|
|
152
142
|
};
|
|
153
|
-
|
|
154
143
|
const setValue = newValue => {
|
|
155
144
|
if (f7Stepper && f7Stepper.setValue) f7Stepper.setValue(newValue);
|
|
156
145
|
};
|
|
157
|
-
|
|
158
146
|
const getValue = () => {
|
|
159
147
|
if (f7Stepper && f7Stepper.getValue) {
|
|
160
148
|
return f7Stepper.getValue();
|
|
161
149
|
}
|
|
162
|
-
|
|
163
150
|
return undefined;
|
|
164
151
|
};
|
|
165
|
-
|
|
166
152
|
const onInput = event => {
|
|
167
153
|
emit('input', event, f7Stepper);
|
|
168
154
|
};
|
|
169
|
-
|
|
170
155
|
const onChange = event => {
|
|
171
156
|
emit('change', event, f7Stepper);
|
|
172
157
|
};
|
|
173
|
-
|
|
174
158
|
const onMinusClick = event => {
|
|
175
159
|
emit('stepper:minusclick', event, f7Stepper);
|
|
176
160
|
};
|
|
177
|
-
|
|
178
161
|
const onPlusClick = event => {
|
|
179
162
|
emit('stepper:plusclick', event, f7Stepper);
|
|
180
163
|
};
|
|
181
|
-
|
|
182
164
|
watch(() => props.value, newValue => {
|
|
183
165
|
if (!f7Stepper) return;
|
|
184
166
|
f7Stepper.setValue(newValue);
|
|
@@ -204,7 +186,6 @@ export default {
|
|
|
204
186
|
emit('stepper:change', newValue);
|
|
205
187
|
emit('update:value', newValue);
|
|
206
188
|
}
|
|
207
|
-
|
|
208
189
|
}
|
|
209
190
|
}));
|
|
210
191
|
});
|
|
@@ -213,7 +194,6 @@ export default {
|
|
|
213
194
|
if (f7Stepper && f7Stepper.destroy) {
|
|
214
195
|
f7Stepper.destroy();
|
|
215
196
|
}
|
|
216
|
-
|
|
217
197
|
f7Stepper = null;
|
|
218
198
|
});
|
|
219
199
|
const classes = computed(() => classNames('stepper', {
|
|
@@ -221,23 +201,18 @@ export default {
|
|
|
221
201
|
'stepper-round': props.round,
|
|
222
202
|
'stepper-round-ios': props.roundIos,
|
|
223
203
|
'stepper-round-md': props.roundMd,
|
|
224
|
-
'stepper-round-aurora': props.roundAurora,
|
|
225
204
|
'stepper-fill': props.fill,
|
|
226
205
|
'stepper-fill-ios': props.fillIos,
|
|
227
206
|
'stepper-fill-md': props.fillMd,
|
|
228
|
-
'stepper-fill-aurora': props.fillAurora,
|
|
229
207
|
'stepper-large': props.large,
|
|
230
208
|
'stepper-large-ios': props.largeIos,
|
|
231
209
|
'stepper-large-md': props.largeMd,
|
|
232
|
-
'stepper-large-aurora': props.largeAurora,
|
|
233
210
|
'stepper-small': props.small,
|
|
234
211
|
'stepper-small-ios': props.smallIos,
|
|
235
212
|
'stepper-small-md': props.smallMd,
|
|
236
|
-
'stepper-small-aurora': props.smallAurora,
|
|
237
213
|
'stepper-raised': props.raised,
|
|
238
214
|
'stepper-raised-ios': props.raisedIos,
|
|
239
|
-
'stepper-raised-md': props.raisedMd
|
|
240
|
-
'stepper-raised-aurora': props.raisedAurora
|
|
215
|
+
'stepper-raised-md': props.raisedMd
|
|
241
216
|
}, colorClasses(props)));
|
|
242
217
|
return {
|
|
243
218
|
elRef,
|
|
@@ -252,5 +227,4 @@ export default {
|
|
|
252
227
|
onPlusClick
|
|
253
228
|
};
|
|
254
229
|
}
|
|
255
|
-
|
|
256
230
|
};
|
package/components/subnavbar.js
CHANGED
|
@@ -7,7 +7,6 @@ const _hoisted_2 = {
|
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "subnavbar-title"
|
|
9
9
|
};
|
|
10
|
-
|
|
11
10
|
function render(_ctx, _cache) {
|
|
12
11
|
return _openBlock(), _createElementBlock("div", {
|
|
13
12
|
class: _normalizeClass(_ctx.classes)
|
|
@@ -15,7 +14,6 @@ function render(_ctx, _cache) {
|
|
|
15
14
|
key: 1
|
|
16
15
|
})], 2);
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
import { computed } from 'vue';
|
|
20
18
|
import { classNames } from '../shared/utils.js';
|
|
21
19
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -31,7 +29,6 @@ export default {
|
|
|
31
29
|
},
|
|
32
30
|
...colorProps
|
|
33
31
|
},
|
|
34
|
-
|
|
35
32
|
setup(props) {
|
|
36
33
|
const classes = computed(() => classNames('subnavbar', {
|
|
37
34
|
sliding: props.sliding
|
|
@@ -40,5 +37,4 @@ export default {
|
|
|
40
37
|
classes
|
|
41
38
|
};
|
|
42
39
|
}
|
|
43
|
-
|
|
44
40
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
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
|
class: _normalizeClass(_ctx.classes)
|
|
6
5
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
7
6
|
}
|
|
8
|
-
|
|
9
7
|
import { computed } from 'vue';
|
|
10
8
|
import { classNames } from '../shared/utils.js';
|
|
11
9
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -18,16 +16,13 @@ export default {
|
|
|
18
16
|
side: String,
|
|
19
17
|
...colorProps
|
|
20
18
|
},
|
|
21
|
-
|
|
22
19
|
setup(props) {
|
|
23
20
|
const side = computed(() => {
|
|
24
21
|
let sideComputed = props.side;
|
|
25
|
-
|
|
26
22
|
if (!sideComputed) {
|
|
27
23
|
if (props.left) sideComputed = 'left';
|
|
28
24
|
if (props.right) sideComputed = 'right';
|
|
29
25
|
}
|
|
30
|
-
|
|
31
26
|
return sideComputed;
|
|
32
27
|
});
|
|
33
28
|
const classes = computed(() => classNames(`swipeout-actions-${side.value}`, colorClasses(props)));
|
|
@@ -35,5 +30,4 @@ export default {
|
|
|
35
30
|
classes
|
|
36
31
|
};
|
|
37
32
|
}
|
|
38
|
-
|
|
39
33
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = ["href", "data-confirm", "data-confirm-title"];
|
|
3
|
-
|
|
4
3
|
function render(_ctx, _cache) {
|
|
5
4
|
return _openBlock(), _createElementBlock("a", {
|
|
6
5
|
href: _ctx.href || '#',
|
|
@@ -12,7 +11,6 @@ function render(_ctx, _cache) {
|
|
|
12
11
|
})
|
|
13
12
|
}, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
import { computed } from 'vue';
|
|
17
15
|
import { classNames } from '../shared/utils.js';
|
|
18
16
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -30,16 +28,13 @@ export default {
|
|
|
30
28
|
...colorProps
|
|
31
29
|
},
|
|
32
30
|
emits: ['click'],
|
|
33
|
-
|
|
34
31
|
setup(props, _ref) {
|
|
35
32
|
let {
|
|
36
33
|
emit
|
|
37
34
|
} = _ref;
|
|
38
|
-
|
|
39
35
|
const onClick = e => {
|
|
40
36
|
emit('click', e);
|
|
41
37
|
};
|
|
42
|
-
|
|
43
38
|
const classes = computed(() => classNames({
|
|
44
39
|
'swipeout-overswipe': props.overswipe,
|
|
45
40
|
'swipeout-delete': props.delete,
|
|
@@ -50,5 +45,4 @@ export default {
|
|
|
50
45
|
onClick
|
|
51
46
|
};
|
|
52
47
|
}
|
|
53
|
-
|
|
54
48
|
};
|
package/components/tab.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
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
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
return _openBlock(), _createElementBlock("div", {
|
|
5
4
|
ref: "elRef",
|
|
@@ -11,7 +10,6 @@ function render(_ctx, _cache) {
|
|
|
11
10
|
key: 1
|
|
12
11
|
})], 2);
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
import { computed, ref, inject, onMounted, onBeforeUnmount, onUpdated, toRaw } from 'vue';
|
|
16
14
|
import { classNames, getComponentId } from '../shared/utils.js';
|
|
17
15
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -25,7 +23,6 @@ export default {
|
|
|
25
23
|
...colorProps
|
|
26
24
|
},
|
|
27
25
|
emits: ['tab:show', 'tab:hide'],
|
|
28
|
-
|
|
29
26
|
setup(props, _ref) {
|
|
30
27
|
let {
|
|
31
28
|
emit
|
|
@@ -35,21 +32,20 @@ export default {
|
|
|
35
32
|
const route = inject('f7route', null);
|
|
36
33
|
const router = inject('f7route', null);
|
|
37
34
|
let initialTabContent = null;
|
|
38
|
-
|
|
39
35
|
if (!routerData.value && route && route.route && route.route.tab && route.route.tab.id === props.id) {
|
|
40
36
|
const {
|
|
41
37
|
component,
|
|
42
38
|
asyncComponent,
|
|
43
39
|
options: tabRouteOptions
|
|
44
40
|
} = route.route.tab;
|
|
45
|
-
|
|
46
41
|
if (component || asyncComponent) {
|
|
47
42
|
const parentProps = route.route.options && route.route.options.props;
|
|
48
43
|
initialTabContent = {
|
|
49
44
|
id: getComponentId(),
|
|
50
45
|
component: component || asyncComponent,
|
|
51
46
|
isAsync: !!asyncComponent,
|
|
52
|
-
props: {
|
|
47
|
+
props: {
|
|
48
|
+
...(parentProps || {}),
|
|
53
49
|
...(tabRouteOptions && tabRouteOptions.props || {}),
|
|
54
50
|
f7router: router,
|
|
55
51
|
f7route: route,
|
|
@@ -58,25 +54,20 @@ export default {
|
|
|
58
54
|
};
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
|
-
|
|
62
57
|
const tabContent = ref(initialTabContent || null);
|
|
63
|
-
|
|
64
58
|
const setTabContent = newContent => {
|
|
65
59
|
tabContent.value = newContent;
|
|
66
60
|
};
|
|
67
|
-
|
|
68
61
|
if (f7 && !routerData.value) {
|
|
69
62
|
routerData.value = {
|
|
70
63
|
setTabContent
|
|
71
64
|
};
|
|
72
65
|
f7routers.tabs.push(routerData.value);
|
|
73
66
|
}
|
|
74
|
-
|
|
75
67
|
onMounted(() => {
|
|
76
68
|
if (elRef.value && initialTabContent) {
|
|
77
69
|
elRef.value.f7RouterTabLoaded = true;
|
|
78
70
|
}
|
|
79
|
-
|
|
80
71
|
f7ready(() => {
|
|
81
72
|
if (!routerData.value) {
|
|
82
73
|
routerData.value = {
|
|
@@ -102,9 +93,7 @@ export default {
|
|
|
102
93
|
const classes = computed(() => classNames('tab', {
|
|
103
94
|
'tab-active': props.tabActive
|
|
104
95
|
}, colorClasses(props)));
|
|
105
|
-
|
|
106
96
|
const getComponent = content => toRaw(content.component);
|
|
107
|
-
|
|
108
97
|
const getProps = content => {
|
|
109
98
|
const {
|
|
110
99
|
component: tabComponent,
|
|
@@ -118,7 +107,6 @@ export default {
|
|
|
118
107
|
});
|
|
119
108
|
return passProps;
|
|
120
109
|
};
|
|
121
|
-
|
|
122
110
|
return {
|
|
123
111
|
elRef,
|
|
124
112
|
classes,
|
|
@@ -127,5 +115,4 @@ export default {
|
|
|
127
115
|
getProps
|
|
128
116
|
};
|
|
129
117
|
}
|
|
130
|
-
|
|
131
118
|
};
|
package/components/tabs.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from "vue";
|
|
2
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
return _ctx.animated || _ctx.swipeable ? (_openBlock(), _createElementBlock("div", {
|
|
5
4
|
key: 0,
|
|
@@ -13,7 +12,6 @@ function render(_ctx, _cache) {
|
|
|
13
12
|
class: _normalizeClass(_ctx.classNames(_ctx.tabsClasses, _ctx.classes))
|
|
14
13
|
}, [_renderSlot(_ctx.$slots, "default")], 2));
|
|
15
14
|
}
|
|
16
|
-
|
|
17
15
|
import { computed, ref, onMounted } from 'vue';
|
|
18
16
|
import { classNames } from '../shared/utils.js';
|
|
19
17
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -30,7 +28,6 @@ export default {
|
|
|
30
28
|
},
|
|
31
29
|
...colorProps
|
|
32
30
|
},
|
|
33
|
-
|
|
34
31
|
setup(props) {
|
|
35
32
|
const elRef = ref(null);
|
|
36
33
|
onMounted(() => {
|
|
@@ -55,5 +52,4 @@ export default {
|
|
|
55
52
|
classNames
|
|
56
53
|
};
|
|
57
54
|
}
|
|
58
|
-
|
|
59
55
|
};
|
|
@@ -3,14 +3,12 @@ const _hoisted_1 = {
|
|
|
3
3
|
class: "text-editor-content",
|
|
4
4
|
contenteditable: ""
|
|
5
5
|
};
|
|
6
|
-
|
|
7
6
|
function render(_ctx, _cache) {
|
|
8
7
|
return _openBlock(), _createElementBlock("div", {
|
|
9
8
|
ref: "elRef",
|
|
10
9
|
class: _normalizeClass(_ctx.classes)
|
|
11
10
|
}, [_renderSlot(_ctx.$slots, "root-start"), _createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "root-end"), _renderSlot(_ctx.$slots, "root")], 2);
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
import { computed, ref, onMounted, onBeforeUnmount, watch } from 'vue';
|
|
15
13
|
import { classNames, noUndefinedProps } from '../shared/utils.js';
|
|
16
14
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -56,62 +54,49 @@ export default {
|
|
|
56
54
|
...colorProps
|
|
57
55
|
},
|
|
58
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'],
|
|
59
|
-
|
|
60
57
|
setup(props, _ref) {
|
|
61
58
|
let {
|
|
62
59
|
emit
|
|
63
60
|
} = _ref;
|
|
64
61
|
let f7TextEditor = null;
|
|
65
62
|
const elRef = ref(null);
|
|
66
|
-
|
|
67
63
|
const onChange = (editor, editorValue) => {
|
|
68
64
|
emit('texteditor:change', editorValue);
|
|
69
65
|
emit('texteditorChange', editorValue);
|
|
70
66
|
};
|
|
71
|
-
|
|
72
67
|
const onInput = (editor, editorValue) => {
|
|
73
68
|
emit('texteditor:input', editorValue);
|
|
74
69
|
emit('texteditorInput', editorValue);
|
|
75
70
|
};
|
|
76
|
-
|
|
77
71
|
const onFocus = () => {
|
|
78
72
|
emit('texteditor:focus');
|
|
79
73
|
emit('texteditorFocus');
|
|
80
74
|
};
|
|
81
|
-
|
|
82
75
|
const onBlur = () => {
|
|
83
76
|
emit('texteditor:blur');
|
|
84
77
|
emit('texteditorBlur');
|
|
85
78
|
};
|
|
86
|
-
|
|
87
79
|
const onButtonClick = (editor, button) => {
|
|
88
80
|
emit('texteditor:buttonclick', button);
|
|
89
81
|
};
|
|
90
|
-
|
|
91
82
|
const onKeyboardOpen = () => {
|
|
92
83
|
emit('texteditor:keyboardopen');
|
|
93
84
|
};
|
|
94
|
-
|
|
95
85
|
const onKeyboardClose = () => {
|
|
96
86
|
emit('texteditor:keyboardclose');
|
|
97
87
|
};
|
|
98
|
-
|
|
99
88
|
const onPopoverOpen = () => {
|
|
100
89
|
emit('texteditor:popoveropen');
|
|
101
90
|
};
|
|
102
|
-
|
|
103
91
|
const onPopoverClose = () => {
|
|
104
92
|
emit('texteditor:popoverclose');
|
|
105
93
|
};
|
|
106
|
-
|
|
107
94
|
const onInsertLink = (editor, url) => {
|
|
108
95
|
emit('texteditor:insertlink', url);
|
|
109
96
|
};
|
|
110
|
-
|
|
111
97
|
const onInsertImage = (editor, url) => {
|
|
112
98
|
emit('texteditor:insertimage', url);
|
|
113
99
|
};
|
|
114
|
-
|
|
115
100
|
watch(() => props.value, newValue => {
|
|
116
101
|
if (f7TextEditor) {
|
|
117
102
|
f7TextEditor.setValue(newValue);
|
|
@@ -151,7 +136,6 @@ export default {
|
|
|
151
136
|
if (f7TextEditor && f7TextEditor.destroy) {
|
|
152
137
|
f7TextEditor.destroy();
|
|
153
138
|
}
|
|
154
|
-
|
|
155
139
|
f7TextEditor = null;
|
|
156
140
|
});
|
|
157
141
|
const classes = computed(() => classNames('text-editor', props.resizable && 'text-editor-resizable', colorClasses(props)));
|
|
@@ -160,5 +144,4 @@ export default {
|
|
|
160
144
|
classes
|
|
161
145
|
};
|
|
162
146
|
}
|
|
163
|
-
|
|
164
147
|
};
|