framework7-vue 7.0.0-beta.10 → 7.0.0-beta.11
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/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/list.d.ts +2 -2
- package/components/list.js +8 -1
- package/components/text-editor.js +2 -2
- 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 +2 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const BreadcrumbsCollapsed: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
},
|
|
9
|
+
() => JSX.Element,
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
ComponentOptionsMixin,
|
|
14
|
+
ComponentOptionsMixin,
|
|
15
|
+
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export default BreadcrumbsCollapsed;
|
|
19
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createVNode as _createVNode, renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
ref: "elRef",
|
|
4
|
+
class: "breadcrumbs-collapsed"
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
const _hoisted_2 = /*#__PURE__*/_createVNode("span", null, null, -1);
|
|
8
|
+
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return _openBlock(), _createBlock("div", _hoisted_1, [_hoisted_2, _renderSlot(_ctx.$slots, "default")], 512);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
import { ref } from 'vue';
|
|
14
|
+
export default {
|
|
15
|
+
name: 'f7-breadcrumbs-collapsed',
|
|
16
|
+
render,
|
|
17
|
+
props: {},
|
|
18
|
+
|
|
19
|
+
setup() {
|
|
20
|
+
const elRef = ref(null);
|
|
21
|
+
return {
|
|
22
|
+
elRef
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const BreadcrumbsItem: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
active: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
() => JSX.Element,
|
|
13
|
+
unknown,
|
|
14
|
+
{},
|
|
15
|
+
{},
|
|
16
|
+
ComponentOptionsMixin,
|
|
17
|
+
ComponentOptionsMixin,
|
|
18
|
+
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
export default BreadcrumbsItem;
|
|
22
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
function render(_ctx, _cache) {
|
|
4
|
+
return _openBlock(), _createBlock("div", {
|
|
5
|
+
ref: "elRef",
|
|
6
|
+
class: {
|
|
7
|
+
'breadcrumbs-item': true,
|
|
8
|
+
'breadcrumbs-item-active': _ctx.active
|
|
9
|
+
}
|
|
10
|
+
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
import { ref } from 'vue';
|
|
14
|
+
export default {
|
|
15
|
+
name: 'f7-breadcrumbs-item',
|
|
16
|
+
render,
|
|
17
|
+
props: {
|
|
18
|
+
active: Boolean
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
setup() {
|
|
22
|
+
const elRef = ref(null);
|
|
23
|
+
return {
|
|
24
|
+
elRef
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const BreadcrumbsSeparator: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
},
|
|
9
|
+
() => JSX.Element,
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
ComponentOptionsMixin,
|
|
14
|
+
ComponentOptionsMixin,
|
|
15
|
+
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export default BreadcrumbsSeparator;
|
|
19
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
ref: "elRef",
|
|
4
|
+
class: "breadcrumbs-separator"
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
function render(_ctx, _cache) {
|
|
8
|
+
return _openBlock(), _createBlock("div", _hoisted_1, null, 512);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
import { ref } from 'vue';
|
|
12
|
+
export default {
|
|
13
|
+
name: 'f7-breadcrumbs-separator',
|
|
14
|
+
render,
|
|
15
|
+
props: {},
|
|
16
|
+
|
|
17
|
+
setup() {
|
|
18
|
+
const elRef = ref(null);
|
|
19
|
+
return {
|
|
20
|
+
elRef
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const Breadcrumbs: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
},
|
|
9
|
+
() => JSX.Element,
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
ComponentOptionsMixin,
|
|
14
|
+
ComponentOptionsMixin,
|
|
15
|
+
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export default Breadcrumbs;
|
|
19
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
ref: "elRef",
|
|
4
|
+
class: "breadcrumbs"
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
function render(_ctx, _cache) {
|
|
8
|
+
return _openBlock(), _createBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")], 512);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
import { ref } from 'vue';
|
|
12
|
+
export default {
|
|
13
|
+
name: 'f7-breadcrumbs',
|
|
14
|
+
render,
|
|
15
|
+
props: {},
|
|
16
|
+
|
|
17
|
+
setup() {
|
|
18
|
+
const elRef = ref(null);
|
|
19
|
+
return {
|
|
20
|
+
elRef
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
};
|
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,7 +50,7 @@ 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
55
|
setup(props, {
|
|
56
56
|
emit,
|
|
@@ -78,12 +78,18 @@ export default {
|
|
|
78
78
|
emit('sortable:sort', sortData);
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
+
const onSortableMove = (el, listEl) => {
|
|
82
|
+
if (elRef.value !== listEl) return;
|
|
83
|
+
emit('sortable:move', el, listEl);
|
|
84
|
+
};
|
|
85
|
+
|
|
81
86
|
useTab(elRef, emit);
|
|
82
87
|
onMounted(() => {
|
|
83
88
|
f7ready(() => {
|
|
84
89
|
f7.on('sortableEnable', onSortableEnable);
|
|
85
90
|
f7.on('sortableDisable', onSortableDisable);
|
|
86
91
|
f7.on('sortableSort', onSortableSort);
|
|
92
|
+
f7.on('sortableMove', onSortableMove);
|
|
87
93
|
if (!props.virtualList) return;
|
|
88
94
|
const vlParams = props.virtualListParams || {};
|
|
89
95
|
if (!vlParams.renderItem && !vlParams.renderExternal) return;
|
|
@@ -120,6 +126,7 @@ export default {
|
|
|
120
126
|
f7.off('sortableEnable', onSortableEnable);
|
|
121
127
|
f7.off('sortableDisable', onSortableDisable);
|
|
122
128
|
f7.off('sortableSort', onSortableSort);
|
|
129
|
+
f7.off('sortableMove', onSortableMove);
|
|
123
130
|
if (!(props.virtualList && f7VirtualList)) return;
|
|
124
131
|
if (f7VirtualList.destroy) f7VirtualList.destroy();
|
|
125
132
|
f7VirtualList = null;
|
|
@@ -104,11 +104,11 @@ export default {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
const onInsertLink = (editor, url) => {
|
|
107
|
-
emit(
|
|
107
|
+
emit('texteditor:insertlink', url);
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
const onInsertImage = (editor, url) => {
|
|
111
|
-
emit(
|
|
111
|
+
emit('texteditor:insertimage', url);
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
watch(() => props.value, newValue => {
|
package/framework7-vue-bundle.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 Vue 7.0.0-beta.
|
|
2
|
+
* Framework7 Vue 7.0.0-beta.11
|
|
3
3
|
* Build full featured iOS & Android apps using Framework7 & Vue
|
|
4
4
|
* https://framework7.io/vue/
|
|
5
5
|
*
|
|
6
|
-
* Copyright 2014-
|
|
6
|
+
* Copyright 2014-2022 Vladimir Kharlampidi
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: February 17, 2022
|
|
11
11
|
*/
|
|
12
12
|
import Framework7Vue from './shared/plugin.js';
|
|
13
13
|
import { f7, f7ready, theme } from './shared/f7.js';
|
|
@@ -29,6 +29,10 @@ import f7BlockFooter from './components/block-footer.js';
|
|
|
29
29
|
import f7BlockHeader from './components/block-header.js';
|
|
30
30
|
import f7BlockTitle from './components/block-title.js';
|
|
31
31
|
import f7Block from './components/block.js';
|
|
32
|
+
import f7BreadcrumbsCollapsed from './components/breadcrumbs-collapsed.js';
|
|
33
|
+
import f7BreadcrumbsItem from './components/breadcrumbs-item.js';
|
|
34
|
+
import f7BreadcrumbsSeparator from './components/breadcrumbs-separator.js';
|
|
35
|
+
import f7Breadcrumbs from './components/breadcrumbs.js';
|
|
32
36
|
import f7Button from './components/button.js';
|
|
33
37
|
import f7CardContent from './components/card-content.js';
|
|
34
38
|
import f7CardFooter from './components/card-footer.js';
|
|
@@ -110,7 +114,7 @@ import f7UseIcon from './components/use-icon.js';
|
|
|
110
114
|
import f7View from './components/view.js';
|
|
111
115
|
import f7Views from './components/views.js';
|
|
112
116
|
|
|
113
|
-
export { f7AccordionContent, f7AccordionItem, f7AccordionToggle, f7Accordion, f7ActionsButton, f7ActionsGroup, f7ActionsLabel, f7Actions, f7App, f7Appbar, f7AreaChart, f7Badge, f7BlockFooter, f7BlockHeader, f7BlockTitle, f7Block, f7Button, f7CardContent, f7CardFooter, f7CardHeader, f7Card, f7Checkbox, f7Chip, f7Col, f7FabBackdrop, f7FabButton, f7FabButtons, f7Fab, f7Gauge, f7Icon, f7Input, f7Link, f7ListButton, f7ListGroup, f7ListIndex, f7ListInput, f7ListItemCell, f7ListItemRow, f7ListItem, f7List, f7LoginScreenTitle, f7LoginScreen, f7MenuDropdownItem, f7MenuDropdown, f7MenuItem, f7Menu, f7Message, f7MessagebarAttachment, f7MessagebarAttachments, f7MessagebarSheetImage, f7MessagebarSheetItem, f7MessagebarSheet, f7Messagebar, f7MessagesTitle, f7Messages, f7NavLeft, f7NavRight, f7NavTitleLarge, f7NavTitle, f7Navbar, f7PageContent, f7Page, f7Panel, f7PhotoBrowser, f7PieChart, f7Popover, f7Popup, f7Preloader, f7Progressbar, f7Radio, f7Range, f7RoutableModals, f7Row, f7Searchbar, f7Segmented, f7Sheet, f7SkeletonAvatar, f7SkeletonBlock, f7SkeletonImage, f7SkeletonText, f7Stepper, f7Subnavbar, f7SwipeoutActions, f7SwipeoutButton, f7SwiperSlide, f7Swiper, f7Tab, f7Tabs, f7TextEditor, f7Toggle, f7Toolbar, f7TreeviewItem, f7Treeview, f7UseIcon, f7View, f7Views }
|
|
117
|
+
export { f7AccordionContent, f7AccordionItem, f7AccordionToggle, f7Accordion, f7ActionsButton, f7ActionsGroup, f7ActionsLabel, f7Actions, f7App, f7Appbar, f7AreaChart, f7Badge, f7BlockFooter, f7BlockHeader, f7BlockTitle, f7Block, f7BreadcrumbsCollapsed, f7BreadcrumbsItem, f7BreadcrumbsSeparator, f7Breadcrumbs, f7Button, f7CardContent, f7CardFooter, f7CardHeader, f7Card, f7Checkbox, f7Chip, f7Col, f7FabBackdrop, f7FabButton, f7FabButtons, f7Fab, f7Gauge, f7Icon, f7Input, f7Link, f7ListButton, f7ListGroup, f7ListIndex, f7ListInput, f7ListItemCell, f7ListItemRow, f7ListItem, f7List, f7LoginScreenTitle, f7LoginScreen, f7MenuDropdownItem, f7MenuDropdown, f7MenuItem, f7Menu, f7Message, f7MessagebarAttachment, f7MessagebarAttachments, f7MessagebarSheetImage, f7MessagebarSheetItem, f7MessagebarSheet, f7Messagebar, f7MessagesTitle, f7Messages, f7NavLeft, f7NavRight, f7NavTitleLarge, f7NavTitle, f7Navbar, f7PageContent, f7Page, f7Panel, f7PhotoBrowser, f7PieChart, f7Popover, f7Popup, f7Preloader, f7Progressbar, f7Radio, f7Range, f7RoutableModals, f7Row, f7Searchbar, f7Segmented, f7Sheet, f7SkeletonAvatar, f7SkeletonBlock, f7SkeletonImage, f7SkeletonText, f7Stepper, f7Subnavbar, f7SwipeoutActions, f7SwipeoutButton, f7SwiperSlide, f7Swiper, f7Tab, f7Tabs, f7TextEditor, f7Toggle, f7Toolbar, f7TreeviewItem, f7Treeview, f7UseIcon, f7View, f7Views }
|
|
114
118
|
export { f7, f7ready, theme, useStore };
|
|
115
119
|
export default Framework7Vue;
|
|
116
120
|
|
|
@@ -131,6 +135,10 @@ function registerComponents(app) {
|
|
|
131
135
|
app.component('f7-block-header', f7BlockHeader);
|
|
132
136
|
app.component('f7-block-title', f7BlockTitle);
|
|
133
137
|
app.component('f7-block', f7Block);
|
|
138
|
+
app.component('f7-breadcrumbs-collapsed', f7BreadcrumbsCollapsed);
|
|
139
|
+
app.component('f7-breadcrumbs-item', f7BreadcrumbsItem);
|
|
140
|
+
app.component('f7-breadcrumbs-separator', f7BreadcrumbsSeparator);
|
|
141
|
+
app.component('f7-breadcrumbs', f7Breadcrumbs);
|
|
134
142
|
app.component('f7-button', f7Button);
|
|
135
143
|
app.component('f7-card-content', f7CardContent);
|
|
136
144
|
app.component('f7-card-footer', f7CardFooter);
|