framework7-vue 7.0.0-beta.6 → 7.0.0
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/list-input.js
CHANGED
|
@@ -85,10 +85,11 @@ export default {
|
|
|
85
85
|
},
|
|
86
86
|
emits: ['textarea:resize', 'input:notempty', 'input:empty', 'input:clear', 'texteditor:change', 'calendar:change', 'colorpicker:change', 'change', 'focus', 'blur', 'input', 'update:value'],
|
|
87
87
|
|
|
88
|
-
setup(props, {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
setup(props, _ref) {
|
|
89
|
+
let {
|
|
90
|
+
emit,
|
|
91
|
+
slots
|
|
92
|
+
} = _ref;
|
|
92
93
|
const inputInvalid = ref(false);
|
|
93
94
|
const inputFocused = ref(false);
|
|
94
95
|
const ListContext = inject('ListContext', {
|
|
@@ -156,7 +157,11 @@ export default {
|
|
|
156
157
|
emit('input:clear', event);
|
|
157
158
|
};
|
|
158
159
|
|
|
159
|
-
const onInput = (
|
|
160
|
+
const onInput = function () {
|
|
161
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
162
|
+
args[_key] = arguments[_key];
|
|
163
|
+
}
|
|
164
|
+
|
|
160
165
|
emit('input', ...args);
|
|
161
166
|
|
|
162
167
|
if (inputElRef.value) {
|
|
@@ -172,12 +177,20 @@ export default {
|
|
|
172
177
|
}
|
|
173
178
|
};
|
|
174
179
|
|
|
175
|
-
const onFocus = (
|
|
180
|
+
const onFocus = function () {
|
|
181
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
182
|
+
args[_key2] = arguments[_key2];
|
|
183
|
+
}
|
|
184
|
+
|
|
176
185
|
emit('focus', ...args);
|
|
177
186
|
inputFocused.value = true;
|
|
178
187
|
};
|
|
179
188
|
|
|
180
|
-
const onBlur = (
|
|
189
|
+
const onBlur = function () {
|
|
190
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
191
|
+
args[_key3] = arguments[_key3];
|
|
192
|
+
}
|
|
193
|
+
|
|
181
194
|
emit('blur', ...args);
|
|
182
195
|
|
|
183
196
|
if ((props.validate || props.validate === '' || props.validateOnBlur || props.validateOnBlur === '') && inputElRef.value) {
|
|
@@ -187,7 +200,11 @@ export default {
|
|
|
187
200
|
inputFocused.value = false;
|
|
188
201
|
};
|
|
189
202
|
|
|
190
|
-
const onChange = (
|
|
203
|
+
const onChange = function () {
|
|
204
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
205
|
+
args[_key4] = arguments[_key4];
|
|
206
|
+
}
|
|
207
|
+
|
|
191
208
|
emit('change', ...args);
|
|
192
209
|
|
|
193
210
|
if (props.type === 'texteditor') {
|
|
@@ -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,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/list-item.js
CHANGED
|
@@ -7,17 +7,18 @@ import { useTooltip } from '../shared/use-tooltip.js';
|
|
|
7
7
|
import { f7ready, f7 } from '../shared/f7.js';
|
|
8
8
|
import f7Badge from './badge.js';
|
|
9
9
|
|
|
10
|
-
const ListItemContent = ({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
const ListItemContent = function (_temp) {
|
|
11
|
+
let {
|
|
12
|
+
props,
|
|
13
|
+
slots,
|
|
14
|
+
inputElRef,
|
|
15
|
+
onChange,
|
|
16
|
+
onClick,
|
|
17
|
+
isMediaComputed,
|
|
18
|
+
isSortableComputed,
|
|
19
|
+
isSortableOppositeComputed,
|
|
20
|
+
itemContentClasses
|
|
21
|
+
} = _temp === void 0 ? {} : _temp;
|
|
21
22
|
const {
|
|
22
23
|
radio,
|
|
23
24
|
checkbox,
|
|
@@ -219,10 +220,11 @@ export default {
|
|
|
219
220
|
},
|
|
220
221
|
emits: ['click', 'swipeout', 'swipeout:overswipeenter', 'swipeout:overswipeexit', 'swipeout:deleted', 'swipeout:delete', 'swipeout:close', 'swipeout:closed', 'swipeout:open', 'swipeout:opened', 'accordion:beforeclose', 'accordion:close', 'accordion:closed', 'accordion:beforeopen', 'accordion:open', 'accordion:opened', 'change', 'update:checked'],
|
|
221
222
|
|
|
222
|
-
setup(props, {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
setup(props, _ref) {
|
|
224
|
+
let {
|
|
225
|
+
slots,
|
|
226
|
+
emit
|
|
227
|
+
} = _ref;
|
|
226
228
|
const ListContext = inject('ListContext', {
|
|
227
229
|
value: {
|
|
228
230
|
listIsMedia: false,
|
package/components/list.d.ts
CHANGED
|
@@ -180,8 +180,8 @@ declare const List: DefineComponent<
|
|
|
180
180
|
{},
|
|
181
181
|
ComponentOptionsMixin,
|
|
182
182
|
ComponentOptionsMixin,
|
|
183
|
-
("submit" | "sortable:enable" | "sortable:disable" | "sortable:sort" | "virtual:itembeforeinsert" | "virtual:beforeclear" | "virtual:itemsbeforeinsert" | "virtual:itemsafterinsert" | "tab:hide" | "tab:show")[],
|
|
184
|
-
"submit" | "sortable:enable" | "sortable:disable" | "sortable:sort" | "virtual:itembeforeinsert" | "virtual:beforeclear" | "virtual:itemsbeforeinsert" | "virtual:itemsafterinsert" | "tab:hide" | "tab:show"
|
|
183
|
+
("submit" | "sortable:enable" | "sortable:disable" | "sortable:sort" | "sortable:move" | "virtual:itembeforeinsert" | "virtual:beforeclear" | "virtual:itemsbeforeinsert" | "virtual:itemsafterinsert" | "tab:hide" | "tab:show")[],
|
|
184
|
+
"submit" | "sortable:enable" | "sortable:disable" | "sortable:sort" | "sortable:move" | "virtual:itembeforeinsert" | "virtual:beforeclear" | "virtual:itemsbeforeinsert" | "virtual:itemsafterinsert" | "tab:hide" | "tab:show"
|
|
185
185
|
>;
|
|
186
186
|
|
|
187
187
|
export default List;
|
package/components/list.js
CHANGED
|
@@ -50,12 +50,13 @@ export default {
|
|
|
50
50
|
virtualListParams: Object,
|
|
51
51
|
...colorProps
|
|
52
52
|
},
|
|
53
|
-
emits: ['submit', 'sortable:enable', 'sortable:disable', 'sortable:sort', 'virtual:itembeforeinsert', 'virtual:beforeclear', 'virtual:itemsbeforeinsert', 'virtual:itemsafterinsert', 'tab:hide', 'tab:show'],
|
|
53
|
+
emits: ['submit', 'sortable:enable', 'sortable:disable', 'sortable:sort', 'sortable:move', 'virtual:itembeforeinsert', 'virtual:beforeclear', 'virtual:itemsbeforeinsert', 'virtual:itemsafterinsert', 'tab:hide', 'tab:show'],
|
|
54
54
|
|
|
55
|
-
setup(props, {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
setup(props, _ref) {
|
|
56
|
+
let {
|
|
57
|
+
emit,
|
|
58
|
+
slots
|
|
59
|
+
} = _ref;
|
|
59
60
|
let f7VirtualList = null;
|
|
60
61
|
const elRef = ref(null);
|
|
61
62
|
|
|
@@ -78,12 +79,18 @@ export default {
|
|
|
78
79
|
emit('sortable:sort', sortData);
|
|
79
80
|
};
|
|
80
81
|
|
|
82
|
+
const onSortableMove = (el, listEl) => {
|
|
83
|
+
if (elRef.value !== listEl) return;
|
|
84
|
+
emit('sortable:move', el, listEl);
|
|
85
|
+
};
|
|
86
|
+
|
|
81
87
|
useTab(elRef, emit);
|
|
82
88
|
onMounted(() => {
|
|
83
89
|
f7ready(() => {
|
|
84
90
|
f7.on('sortableEnable', onSortableEnable);
|
|
85
91
|
f7.on('sortableDisable', onSortableDisable);
|
|
86
92
|
f7.on('sortableSort', onSortableSort);
|
|
93
|
+
f7.on('sortableMove', onSortableMove);
|
|
87
94
|
if (!props.virtualList) return;
|
|
88
95
|
const vlParams = props.virtualListParams || {};
|
|
89
96
|
if (!vlParams.renderItem && !vlParams.renderExternal) return;
|
|
@@ -120,6 +127,7 @@ export default {
|
|
|
120
127
|
f7.off('sortableEnable', onSortableEnable);
|
|
121
128
|
f7.off('sortableDisable', onSortableDisable);
|
|
122
129
|
f7.off('sortableSort', onSortableSort);
|
|
130
|
+
f7.off('sortableMove', onSortableMove);
|
|
123
131
|
if (!(props.virtualList && f7VirtualList)) return;
|
|
124
132
|
if (f7VirtualList.destroy) f7VirtualList.destroy();
|
|
125
133
|
f7VirtualList = null;
|
|
@@ -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,9 +1,9 @@
|
|
|
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(),
|
|
4
|
+
return _openBlock(), _createElementBlock("div", {
|
|
5
5
|
ref: "elRef",
|
|
6
|
-
class: _ctx.classes
|
|
6
|
+
class: _normalizeClass(_ctx.classes)
|
|
7
7
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -29,9 +29,10 @@ export default {
|
|
|
29
29
|
},
|
|
30
30
|
emits: ['loginscreen:open', 'loginscreen:opened', 'loginscreen:close', 'loginscreen:closed', 'update:opened'],
|
|
31
31
|
|
|
32
|
-
setup(props, {
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
setup(props, _ref) {
|
|
33
|
+
let {
|
|
34
|
+
emit
|
|
35
|
+
} = _ref;
|
|
35
36
|
const f7LoginScreen = ref(null); // eslint-disable-next-line
|
|
36
37
|
|
|
37
38
|
let isOpened = props.opened;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, mergeProps as _mergeProps, openBlock as _openBlock,
|
|
1
|
+
import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
|
|
3
3
|
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(),
|
|
4
|
+
return _openBlock(), _createElementBlock("div", _mergeProps({
|
|
5
5
|
ref: "elRef",
|
|
6
6
|
class: _ctx.classes
|
|
7
7
|
}, _ctx.attrs, {
|
|
8
|
-
onClick: _cache[
|
|
8
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
9
|
+
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
10
|
+
})
|
|
9
11
|
}), [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 16);
|
|
10
12
|
}
|
|
11
13
|
|
|
@@ -28,9 +30,10 @@ export default {
|
|
|
28
30
|
},
|
|
29
31
|
emits: ['click'],
|
|
30
32
|
|
|
31
|
-
setup(props, {
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
setup(props, _ref) {
|
|
34
|
+
let {
|
|
35
|
+
emit
|
|
36
|
+
} = _ref;
|
|
34
37
|
const elRef = ref(null);
|
|
35
38
|
|
|
36
39
|
const onClick = e => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot,
|
|
1
|
+
import { renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, 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
|
|
6
|
-
}, [
|
|
4
|
+
return _openBlock(), _createElementBlock("div", {
|
|
5
|
+
class: _normalizeClass(_ctx.classes)
|
|
6
|
+
}, [_createElementVNode("div", {
|
|
7
7
|
class: "menu-dropdown-content",
|
|
8
|
-
style: {
|
|
8
|
+
style: _normalizeStyle({
|
|
9
9
|
height: _ctx.contentHeight
|
|
10
|
-
}
|
|
10
|
+
})
|
|
11
11
|
}, [_renderSlot(_ctx.$slots, "default")], 4)], 2);
|
|
12
12
|
}
|
|
13
13
|
|
package/components/menu-item.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createTextVNode as _createTextVNode, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx } from "vue";
|
|
1
|
+
import { toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createTextVNode as _createTextVNode, createElementBlock as _createElementBlock, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "menu-item-content"
|
|
@@ -13,7 +13,7 @@ function render(_ctx, _cache) {
|
|
|
13
13
|
}, _ctx.attrs, {
|
|
14
14
|
onClick: _ctx.onClick
|
|
15
15
|
}), {
|
|
16
|
-
default: _withCtx(() => [_ctx.text || _ctx.$slots.text || _ctx.icon ? (_openBlock(),
|
|
16
|
+
default: _withCtx(() => [_ctx.text || _ctx.$slots.text || _ctx.icon ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
|
|
17
17
|
key: 0,
|
|
18
18
|
icon: _ctx.icon
|
|
19
19
|
}, null, 8, ["icon"])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "text")])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")]),
|
|
@@ -51,10 +51,11 @@ export default {
|
|
|
51
51
|
},
|
|
52
52
|
emits: ['click', 'menu:opened', 'menu:closed'],
|
|
53
53
|
|
|
54
|
-
setup(props, {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
setup(props, _ref) {
|
|
55
|
+
let {
|
|
56
|
+
slots,
|
|
57
|
+
emit
|
|
58
|
+
} = _ref;
|
|
58
59
|
const elRef = ref(null);
|
|
59
60
|
useTooltip(elRef, props);
|
|
60
61
|
|
package/components/menu.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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: "menu-inner"
|
|
4
4
|
};
|
|
5
5
|
|
|
6
6
|
function render(_ctx, _cache) {
|
|
7
|
-
return _openBlock(),
|
|
8
|
-
class: _ctx.classes
|
|
9
|
-
}, [
|
|
7
|
+
return _openBlock(), _createElementBlock("div", {
|
|
8
|
+
class: _normalizeClass(_ctx.classes)
|
|
9
|
+
}, [_createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])], 2);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
import { computed } from 'vue';
|
package/components/message.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
class: "message-content"
|
|
4
4
|
};
|
|
@@ -6,58 +6,74 @@ const _hoisted_2 = {
|
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "message-image"
|
|
8
8
|
};
|
|
9
|
-
const _hoisted_3 =
|
|
9
|
+
const _hoisted_3 = ["src"];
|
|
10
|
+
const _hoisted_4 = {
|
|
10
11
|
key: 1,
|
|
11
12
|
class: "message-text-header"
|
|
12
13
|
};
|
|
13
|
-
const
|
|
14
|
+
const _hoisted_5 = {
|
|
14
15
|
key: 0,
|
|
15
16
|
class: "message-typing-indicator"
|
|
16
17
|
};
|
|
17
18
|
|
|
18
|
-
const
|
|
19
|
+
const _hoisted_6 = /*#__PURE__*/_createElementVNode("div", null, null, -1);
|
|
19
20
|
|
|
20
|
-
const
|
|
21
|
+
const _hoisted_7 = /*#__PURE__*/_createElementVNode("div", null, null, -1);
|
|
21
22
|
|
|
22
|
-
const
|
|
23
|
+
const _hoisted_8 = /*#__PURE__*/_createElementVNode("div", null, null, -1);
|
|
23
24
|
|
|
24
|
-
const
|
|
25
|
+
const _hoisted_9 = [_hoisted_6, _hoisted_7, _hoisted_8];
|
|
26
|
+
const _hoisted_10 = {
|
|
25
27
|
key: 3,
|
|
26
28
|
class: "message-text-footer"
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
function render(_ctx, _cache) {
|
|
30
|
-
return _openBlock(),
|
|
31
|
-
class: _ctx.classes,
|
|
32
|
-
onClick: _cache[
|
|
33
|
-
|
|
32
|
+
return _openBlock(), _createElementBlock("div", {
|
|
33
|
+
class: _normalizeClass(_ctx.classes),
|
|
34
|
+
onClick: _cache[6] || (_cache[6] = function () {
|
|
35
|
+
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
36
|
+
})
|
|
37
|
+
}, [_renderSlot(_ctx.$slots, "start"), _ctx.hasAvatar ? (_openBlock(), _createElementBlock("div", {
|
|
34
38
|
key: 0,
|
|
35
39
|
class: "message-avatar",
|
|
36
|
-
style: {
|
|
40
|
+
style: _normalizeStyle({
|
|
37
41
|
backgroundImage: _ctx.avatar && `url(${_ctx.avatar})`
|
|
38
|
-
},
|
|
39
|
-
onClick: _cache[
|
|
40
|
-
|
|
42
|
+
}),
|
|
43
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
44
|
+
return _ctx.onAvatarClick && _ctx.onAvatarClick(...arguments);
|
|
45
|
+
})
|
|
46
|
+
}, [_renderSlot(_ctx.$slots, "avatar")], 4)) : _createCommentVNode("", true), _createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "content-start"), _ctx.hasName ? (_openBlock(), _createElementBlock("div", {
|
|
41
47
|
key: 0,
|
|
42
48
|
class: "message-name",
|
|
43
|
-
onClick: _cache[
|
|
44
|
-
|
|
49
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
50
|
+
return _ctx.onNameClick && _ctx.onNameClick(...arguments);
|
|
51
|
+
})
|
|
52
|
+
}, [_createTextVNode(_toDisplayString(_ctx.name) + " ", 1), _renderSlot(_ctx.$slots, "name")])) : _createCommentVNode("", true), _ctx.hasHeader ? (_openBlock(), _createElementBlock("div", {
|
|
45
53
|
key: 1,
|
|
46
54
|
class: "message-header",
|
|
47
|
-
onClick: _cache[
|
|
48
|
-
|
|
55
|
+
onClick: _cache[2] || (_cache[2] = function () {
|
|
56
|
+
return _ctx.onHeaderClick && _ctx.onHeaderClick(...arguments);
|
|
57
|
+
})
|
|
58
|
+
}, [_createTextVNode(_toDisplayString(_ctx.header) + " ", 1), _renderSlot(_ctx.$slots, "header")])) : _createCommentVNode("", true), _createElementVNode("div", {
|
|
49
59
|
class: "message-bubble",
|
|
50
|
-
onClick: _cache[
|
|
51
|
-
|
|
60
|
+
onClick: _cache[4] || (_cache[4] = function () {
|
|
61
|
+
return _ctx.onBubbleClick && _ctx.onBubbleClick(...arguments);
|
|
62
|
+
})
|
|
63
|
+
}, [_renderSlot(_ctx.$slots, "bubble-start"), _ctx.hasImage ? (_openBlock(), _createElementBlock("div", _hoisted_2, [_renderSlot(_ctx.$slots, "image", {}, () => [_createElementVNode("img", {
|
|
52
64
|
src: _ctx.image
|
|
53
|
-
}, null, 8,
|
|
65
|
+
}, null, 8, _hoisted_3)])])) : _createCommentVNode("", true), _ctx.hasTextHeader ? (_openBlock(), _createElementBlock("div", _hoisted_4, [_createTextVNode(_toDisplayString(_ctx.textHeader) + " ", 1), _renderSlot(_ctx.$slots, "text-header")])) : _createCommentVNode("", true), _ctx.hasText ? (_openBlock(), _createElementBlock("div", {
|
|
54
66
|
key: 2,
|
|
55
67
|
class: "message-text",
|
|
56
|
-
onClick: _cache[
|
|
57
|
-
|
|
68
|
+
onClick: _cache[3] || (_cache[3] = function () {
|
|
69
|
+
return _ctx.onTextClick && _ctx.onTextClick(...arguments);
|
|
70
|
+
})
|
|
71
|
+
}, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "text"), _ctx.typing ? (_openBlock(), _createElementBlock("div", _hoisted_5, _hoisted_9)) : _createCommentVNode("", true)])) : _createCommentVNode("", true), _ctx.hasTextFooter ? (_openBlock(), _createElementBlock("div", _hoisted_10, [_createTextVNode(_toDisplayString(_ctx.textFooter) + " ", 1), _renderSlot(_ctx.$slots, "text-footer")])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "bubble-end"), _renderSlot(_ctx.$slots, "default")]), _ctx.hasFooter ? (_openBlock(), _createElementBlock("div", {
|
|
58
72
|
key: 2,
|
|
59
73
|
class: "message-footer",
|
|
60
|
-
onClick: _cache[
|
|
74
|
+
onClick: _cache[5] || (_cache[5] = function () {
|
|
75
|
+
return _ctx.onFooterClick && _ctx.onFooterClick(...arguments);
|
|
76
|
+
})
|
|
61
77
|
}, [_createTextVNode(_toDisplayString(_ctx.footer) + " ", 1), _renderSlot(_ctx.$slots, "footer")])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "content-end")]), _renderSlot(_ctx.$slots, "end")], 2);
|
|
62
78
|
}
|
|
63
79
|
|
|
@@ -92,10 +108,12 @@ export default {
|
|
|
92
108
|
},
|
|
93
109
|
emits: ['click', 'click:name', 'click:text', 'click:avatar', 'click:header', 'click:footer', 'click:bubble'],
|
|
94
110
|
|
|
95
|
-
setup(props, {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
111
|
+
setup(props, _ref) {
|
|
112
|
+
let {
|
|
113
|
+
emit,
|
|
114
|
+
slots
|
|
115
|
+
} = _ref;
|
|
116
|
+
|
|
99
117
|
const onClick = event => {
|
|
100
118
|
emit('click', event);
|
|
101
119
|
};
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { openBlock as _openBlock,
|
|
1
|
+
import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass } from "vue";
|
|
2
|
+
const _hoisted_1 = ["src"];
|
|
2
3
|
|
|
3
4
|
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(),
|
|
5
|
-
class: _ctx.classes,
|
|
6
|
-
onClick: _cache[
|
|
7
|
-
|
|
5
|
+
return _openBlock(), _createElementBlock("div", {
|
|
6
|
+
class: _normalizeClass(_ctx.classes),
|
|
7
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
8
|
+
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
9
|
+
})
|
|
10
|
+
}, [_ctx.image ? (_openBlock(), _createElementBlock("img", {
|
|
8
11
|
key: 0,
|
|
9
12
|
src: _ctx.image
|
|
10
|
-
}, null, 8,
|
|
13
|
+
}, null, 8, _hoisted_1)) : _createCommentVNode("", true), _ctx.deletable ? (_openBlock(), _createElementBlock("span", {
|
|
11
14
|
key: 1,
|
|
12
15
|
class: "messagebar-attachment-delete",
|
|
13
|
-
onClick: _cache[
|
|
16
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
17
|
+
return _ctx.onDeleteClick && _ctx.onDeleteClick(...arguments);
|
|
18
|
+
})
|
|
14
19
|
})) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2);
|
|
15
20
|
}
|
|
16
21
|
|
|
@@ -30,9 +35,11 @@ export default {
|
|
|
30
35
|
},
|
|
31
36
|
emits: ['attachment:click', 'attachment:delete'],
|
|
32
37
|
|
|
33
|
-
setup(props, {
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
setup(props, _ref) {
|
|
39
|
+
let {
|
|
40
|
+
emit
|
|
41
|
+
} = _ref;
|
|
42
|
+
|
|
36
43
|
const onClick = event => {
|
|
37
44
|
emit('attachment:click', event);
|
|
38
45
|
};
|
|
@@ -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,18 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = ["checked"];
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
+
const _hoisted_2 = /*#__PURE__*/_createElementVNode("i", {
|
|
4
5
|
class: "icon icon-checkbox"
|
|
5
6
|
}, null, -1);
|
|
6
7
|
|
|
7
8
|
function render(_ctx, _cache) {
|
|
8
|
-
return _openBlock(),
|
|
9
|
-
class: _ctx.classes,
|
|
10
|
-
style: _ctx.styles
|
|
11
|
-
}, [
|
|
9
|
+
return _openBlock(), _createElementBlock("label", {
|
|
10
|
+
class: _normalizeClass(_ctx.classes),
|
|
11
|
+
style: _normalizeStyle(_ctx.styles)
|
|
12
|
+
}, [_createElementVNode("input", {
|
|
12
13
|
type: "checkbox",
|
|
13
14
|
checked: _ctx.checked,
|
|
14
|
-
onChange: _cache[
|
|
15
|
-
|
|
15
|
+
onChange: _cache[0] || (_cache[0] = function () {
|
|
16
|
+
return _ctx.onChange && _ctx.onChange(...arguments);
|
|
17
|
+
})
|
|
18
|
+
}, null, 40, _hoisted_1), _hoisted_2, _renderSlot(_ctx.$slots, "default")], 6);
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
import { computed } from 'vue';
|
|
@@ -28,9 +31,11 @@ export default {
|
|
|
28
31
|
},
|
|
29
32
|
emits: ['checked', 'unchecked', 'change', 'update:checked'],
|
|
30
33
|
|
|
31
|
-
setup(props, {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
setup(props, _ref) {
|
|
35
|
+
let {
|
|
36
|
+
emit
|
|
37
|
+
} = _ref;
|
|
38
|
+
|
|
34
39
|
const onChange = event => {
|
|
35
40
|
if (event.target.checked) emit('checked', event);else emit('unchecked', event);
|
|
36
41
|
emit('update:checked', event.target.checked);
|
|
@@ -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,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/messagebar.js
CHANGED
|
@@ -45,10 +45,11 @@ export default {
|
|
|
45
45
|
},
|
|
46
46
|
emits: ['change', 'input', 'focus', 'blur', 'submit', 'send', 'click', 'messagebar:attachmentdelete', 'messagebar:attachmentclick', 'messagebar:resizepage', 'update:value'],
|
|
47
47
|
|
|
48
|
-
setup(props, {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
setup(props, _ref) {
|
|
49
|
+
let {
|
|
50
|
+
emit,
|
|
51
|
+
slots
|
|
52
|
+
} = _ref;
|
|
52
53
|
const elRef = ref(null);
|
|
53
54
|
const areaElRef = ref(null);
|
|
54
55
|
let f7Messagebar = null;
|
|
@@ -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
|
|