framework7-vue 7.0.0-beta.2 → 7.0.0-beta.20
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 +5 -5
- package/components/accordion-item.js +10 -9
- package/components/accordion-toggle.js +5 -5
- package/components/accordion.js +5 -5
- package/components/actions-button.js +15 -12
- package/components/actions-group.js +5 -5
- package/components/actions-label.js +13 -9
- package/components/actions.js +11 -10
- package/components/app.d.ts +1 -1
- package/components/app.js +8 -8
- package/components/appbar.js +7 -7
- package/components/area-chart.js +50 -43
- package/components/badge.js +6 -6
- package/components/block-footer.js +5 -5
- package/components/block-header.js +5 -5
- package/components/block-title.js +7 -6
- package/components/block.js +10 -9
- 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 +12 -12
- package/components/card-content.js +5 -5
- package/components/card-footer.js +5 -5
- package/components/card-header.js +5 -5
- package/components/card.js +16 -14
- package/components/checkbox.js +16 -12
- package/components/chip.js +19 -16
- package/components/col.js +10 -9
- package/components/fab-backdrop.js +5 -5
- package/components/fab-button.js +16 -12
- package/components/fab-buttons.js +5 -5
- package/components/fab.js +8 -7
- package/components/gauge.js +16 -9
- package/components/icon.js +9 -9
- package/components/input.js +31 -14
- package/components/link.js +16 -15
- package/components/list-button.js +13 -10
- package/components/list-group.js +7 -6
- package/components/list-index.js +10 -9
- package/components/list-input.js +29 -12
- package/components/list-item-cell.js +5 -5
- package/components/list-item-row.js +5 -5
- package/components/list-item.js +25 -23
- package/components/list.d.ts +2 -2
- package/components/list.js +17 -9
- package/components/login-screen-title.js +5 -5
- package/components/login-screen.js +11 -10
- package/components/menu-dropdown-item.js +12 -9
- package/components/menu-dropdown.js +8 -8
- package/components/menu-item.js +14 -13
- package/components/menu.js +6 -6
- package/components/message.js +49 -31
- package/components/messagebar-attachment.js +19 -12
- package/components/messagebar-attachments.js +5 -5
- package/components/messagebar-sheet-image.js +18 -13
- package/components/messagebar-sheet-item.js +5 -5
- package/components/messagebar-sheet.js +5 -5
- package/components/messagebar.js +10 -9
- package/components/messages-title.js +5 -5
- package/components/messages.js +10 -9
- package/components/nav-left.js +13 -11
- package/components/nav-right.js +5 -5
- package/components/nav-title-large.js +6 -6
- package/components/nav-title.js +6 -6
- package/components/navbar.js +19 -18
- package/components/page-content.js +19 -17
- package/components/page.js +9 -8
- package/components/panel.js +16 -11
- package/components/photo-browser.js +6 -5
- package/components/pie-chart.js +27 -23
- package/components/popover.js +13 -12
- package/components/popup.js +11 -10
- package/components/preloader.js +18 -15
- package/components/progressbar.js +10 -9
- package/components/radio.js +16 -12
- package/components/range.js +13 -11
- package/components/routable-modals.js +1 -1
- package/components/row.js +10 -9
- package/components/searchbar.js +32 -18
- package/components/segmented.js +5 -5
- package/components/sheet.js +15 -8
- package/components/skeleton-avatar.d.ts +1 -0
- package/components/skeleton-avatar.js +1 -0
- package/components/skeleton-block.d.ts +1 -0
- package/components/skeleton-block.js +1 -0
- package/components/skeleton-image.d.ts +1 -0
- package/components/skeleton-image.js +1 -0
- package/components/skeleton-text.d.ts +1 -0
- package/components/skeleton-text.js +1 -0
- package/components/stepper.js +27 -17
- package/components/subnavbar.js +6 -6
- package/components/swipeout-actions.js +5 -5
- package/components/swipeout-button.js +15 -10
- package/components/tab.js +11 -10
- package/components/tabs.js +9 -9
- package/components/text-editor.js +13 -12
- package/components/toggle.js +18 -14
- package/components/toolbar.js +12 -11
- package/components/treeview-item.js +16 -15
- package/components/treeview.js +5 -5
- package/components/use-icon.js +6 -6
- package/components/view.d.ts +5 -0
- package/components/view.js +16 -10
- package/components/views.js +5 -5
- package/framework7-vue-bundle.js +111 -103
- package/framework7-vue-web-types.json +16682 -0
- package/framework7-vue.d.ts +5 -1
- package/framework7-vue.js +107 -103
- package/package.json +3 -1
- package/shared/components-router.js +30 -22
- package/shared/f7.js +10 -2
- package/shared/get-router-initial-component.js +1 -1
- package/shared/mixins.js +4 -4
- package/shared/modal-state-classes.js +5 -4
- package/shared/plugin.js +7 -3
- package/shared/router-open-in.js +114 -0
- package/shared/use-icon.js +5 -1
- package/shared/use-route-props.js +4 -3
- package/shared/use-smart-select.js +2 -2
- package/shared/use-store.js +6 -6
- package/shared/use-tab.js +1 -1
- package/shared/use-theme.js +1 -1
- package/shared/use-tooltip.js +1 -1
- package/shared/utils.js +16 -3
package/framework7-vue.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ import f7BlockFooter from './components/block-footer';
|
|
|
17
17
|
import f7BlockHeader from './components/block-header';
|
|
18
18
|
import f7BlockTitle from './components/block-title';
|
|
19
19
|
import f7Block from './components/block';
|
|
20
|
+
import f7BreadcrumbsCollapsed from './components/breadcrumbs-collapsed';
|
|
21
|
+
import f7BreadcrumbsItem from './components/breadcrumbs-item';
|
|
22
|
+
import f7BreadcrumbsSeparator from './components/breadcrumbs-separator';
|
|
23
|
+
import f7Breadcrumbs from './components/breadcrumbs';
|
|
20
24
|
import f7Button from './components/button';
|
|
21
25
|
import f7CardContent from './components/card-content';
|
|
22
26
|
import f7CardFooter from './components/card-footer';
|
|
@@ -124,6 +128,6 @@ interface useStore {
|
|
|
124
128
|
|
|
125
129
|
declare const useStore: useStore;
|
|
126
130
|
|
|
127
|
-
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 }
|
|
131
|
+
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 }
|
|
128
132
|
export { f7, f7ready, theme, registerComponents, useStore };
|
|
129
133
|
export default Framework7Vue;
|
package/framework7-vue.js
CHANGED
|
@@ -1,115 +1,119 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 Vue 7.0.0-beta.
|
|
2
|
+
* Framework7 Vue 7.0.0-beta.20
|
|
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: April 15, 2022
|
|
11
11
|
*/
|
|
12
|
-
import Framework7Vue from './shared/plugin';
|
|
13
|
-
import { f7, f7ready, theme } from './shared/f7';
|
|
14
|
-
import { useStore } from './shared/use-store';
|
|
12
|
+
import Framework7Vue from './shared/plugin.js';
|
|
13
|
+
import { f7, f7ready, theme } from './shared/f7.js';
|
|
14
|
+
import { useStore } from './shared/use-store.js';
|
|
15
15
|
|
|
16
|
-
import f7AccordionContent from './components/accordion-content';
|
|
17
|
-
import f7AccordionItem from './components/accordion-item';
|
|
18
|
-
import f7AccordionToggle from './components/accordion-toggle';
|
|
19
|
-
import f7Accordion from './components/accordion';
|
|
20
|
-
import f7ActionsButton from './components/actions-button';
|
|
21
|
-
import f7ActionsGroup from './components/actions-group';
|
|
22
|
-
import f7ActionsLabel from './components/actions-label';
|
|
23
|
-
import f7Actions from './components/actions';
|
|
24
|
-
import f7App from './components/app';
|
|
25
|
-
import f7Appbar from './components/appbar';
|
|
26
|
-
import f7AreaChart from './components/area-chart';
|
|
27
|
-
import f7Badge from './components/badge';
|
|
28
|
-
import f7BlockFooter from './components/block-footer';
|
|
29
|
-
import f7BlockHeader from './components/block-header';
|
|
30
|
-
import f7BlockTitle from './components/block-title';
|
|
31
|
-
import f7Block from './components/block';
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import
|
|
100
|
-
import
|
|
101
|
-
import
|
|
102
|
-
import
|
|
103
|
-
import
|
|
104
|
-
import
|
|
105
|
-
import
|
|
106
|
-
import
|
|
107
|
-
import
|
|
108
|
-
import
|
|
109
|
-
import
|
|
110
|
-
import
|
|
111
|
-
import
|
|
16
|
+
import f7AccordionContent from './components/accordion-content.js';
|
|
17
|
+
import f7AccordionItem from './components/accordion-item.js';
|
|
18
|
+
import f7AccordionToggle from './components/accordion-toggle.js';
|
|
19
|
+
import f7Accordion from './components/accordion.js';
|
|
20
|
+
import f7ActionsButton from './components/actions-button.js';
|
|
21
|
+
import f7ActionsGroup from './components/actions-group.js';
|
|
22
|
+
import f7ActionsLabel from './components/actions-label.js';
|
|
23
|
+
import f7Actions from './components/actions.js';
|
|
24
|
+
import f7App from './components/app.js';
|
|
25
|
+
import f7Appbar from './components/appbar.js';
|
|
26
|
+
import f7AreaChart from './components/area-chart.js';
|
|
27
|
+
import f7Badge from './components/badge.js';
|
|
28
|
+
import f7BlockFooter from './components/block-footer.js';
|
|
29
|
+
import f7BlockHeader from './components/block-header.js';
|
|
30
|
+
import f7BlockTitle from './components/block-title.js';
|
|
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';
|
|
36
|
+
import f7Button from './components/button.js';
|
|
37
|
+
import f7CardContent from './components/card-content.js';
|
|
38
|
+
import f7CardFooter from './components/card-footer.js';
|
|
39
|
+
import f7CardHeader from './components/card-header.js';
|
|
40
|
+
import f7Card from './components/card.js';
|
|
41
|
+
import f7Checkbox from './components/checkbox.js';
|
|
42
|
+
import f7Chip from './components/chip.js';
|
|
43
|
+
import f7Col from './components/col.js';
|
|
44
|
+
import f7FabBackdrop from './components/fab-backdrop.js';
|
|
45
|
+
import f7FabButton from './components/fab-button.js';
|
|
46
|
+
import f7FabButtons from './components/fab-buttons.js';
|
|
47
|
+
import f7Fab from './components/fab.js';
|
|
48
|
+
import f7Gauge from './components/gauge.js';
|
|
49
|
+
import f7Icon from './components/icon.js';
|
|
50
|
+
import f7Input from './components/input.js';
|
|
51
|
+
import f7Link from './components/link.js';
|
|
52
|
+
import f7ListButton from './components/list-button.js';
|
|
53
|
+
import f7ListGroup from './components/list-group.js';
|
|
54
|
+
import f7ListIndex from './components/list-index.js';
|
|
55
|
+
import f7ListInput from './components/list-input.js';
|
|
56
|
+
import f7ListItemCell from './components/list-item-cell.js';
|
|
57
|
+
import f7ListItemRow from './components/list-item-row.js';
|
|
58
|
+
import f7ListItem from './components/list-item.js';
|
|
59
|
+
import f7List from './components/list.js';
|
|
60
|
+
import f7LoginScreenTitle from './components/login-screen-title.js';
|
|
61
|
+
import f7LoginScreen from './components/login-screen.js';
|
|
62
|
+
import f7MenuDropdownItem from './components/menu-dropdown-item.js';
|
|
63
|
+
import f7MenuDropdown from './components/menu-dropdown.js';
|
|
64
|
+
import f7MenuItem from './components/menu-item.js';
|
|
65
|
+
import f7Menu from './components/menu.js';
|
|
66
|
+
import f7Message from './components/message.js';
|
|
67
|
+
import f7MessagebarAttachment from './components/messagebar-attachment.js';
|
|
68
|
+
import f7MessagebarAttachments from './components/messagebar-attachments.js';
|
|
69
|
+
import f7MessagebarSheetImage from './components/messagebar-sheet-image.js';
|
|
70
|
+
import f7MessagebarSheetItem from './components/messagebar-sheet-item.js';
|
|
71
|
+
import f7MessagebarSheet from './components/messagebar-sheet.js';
|
|
72
|
+
import f7Messagebar from './components/messagebar.js';
|
|
73
|
+
import f7MessagesTitle from './components/messages-title.js';
|
|
74
|
+
import f7Messages from './components/messages.js';
|
|
75
|
+
import f7NavLeft from './components/nav-left.js';
|
|
76
|
+
import f7NavRight from './components/nav-right.js';
|
|
77
|
+
import f7NavTitleLarge from './components/nav-title-large.js';
|
|
78
|
+
import f7NavTitle from './components/nav-title.js';
|
|
79
|
+
import f7Navbar from './components/navbar.js';
|
|
80
|
+
import f7PageContent from './components/page-content.js';
|
|
81
|
+
import f7Page from './components/page.js';
|
|
82
|
+
import f7Panel from './components/panel.js';
|
|
83
|
+
import f7PhotoBrowser from './components/photo-browser.js';
|
|
84
|
+
import f7PieChart from './components/pie-chart.js';
|
|
85
|
+
import f7Popover from './components/popover.js';
|
|
86
|
+
import f7Popup from './components/popup.js';
|
|
87
|
+
import f7Preloader from './components/preloader.js';
|
|
88
|
+
import f7Progressbar from './components/progressbar.js';
|
|
89
|
+
import f7Radio from './components/radio.js';
|
|
90
|
+
import f7Range from './components/range.js';
|
|
91
|
+
import f7RoutableModals from './components/routable-modals.js';
|
|
92
|
+
import f7Row from './components/row.js';
|
|
93
|
+
import f7Searchbar from './components/searchbar.js';
|
|
94
|
+
import f7Segmented from './components/segmented.js';
|
|
95
|
+
import f7Sheet from './components/sheet.js';
|
|
96
|
+
import f7SkeletonAvatar from './components/skeleton-avatar.js';
|
|
97
|
+
import f7SkeletonBlock from './components/skeleton-block.js';
|
|
98
|
+
import f7SkeletonImage from './components/skeleton-image.js';
|
|
99
|
+
import f7SkeletonText from './components/skeleton-text.js';
|
|
100
|
+
import f7Stepper from './components/stepper.js';
|
|
101
|
+
import f7Subnavbar from './components/subnavbar.js';
|
|
102
|
+
import f7SwipeoutActions from './components/swipeout-actions.js';
|
|
103
|
+
import f7SwipeoutButton from './components/swipeout-button.js';
|
|
104
|
+
import f7SwiperSlide from './components/swiper-slide.js';
|
|
105
|
+
import f7Swiper from './components/swiper.js';
|
|
106
|
+
import f7Tab from './components/tab.js';
|
|
107
|
+
import f7Tabs from './components/tabs.js';
|
|
108
|
+
import f7TextEditor from './components/text-editor.js';
|
|
109
|
+
import f7Toggle from './components/toggle.js';
|
|
110
|
+
import f7Toolbar from './components/toolbar.js';
|
|
111
|
+
import f7TreeviewItem from './components/treeview-item.js';
|
|
112
|
+
import f7Treeview from './components/treeview.js';
|
|
113
|
+
import f7UseIcon from './components/use-icon.js';
|
|
114
|
+
import f7View from './components/view.js';
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framework7-vue",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.20",
|
|
4
4
|
"description": "Build full featured iOS & Android apps using Framework7 & Vue",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"./components/*": "./components/*"
|
|
10
10
|
},
|
|
11
11
|
"typings": "framework7-vue.d.ts",
|
|
12
|
+
"web-types": "framework7-vue-web-types.json",
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
|
14
15
|
"url": "https://github.com/framework7io/framework7.git"
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
"ipad",
|
|
26
27
|
"apple",
|
|
27
28
|
"phonegap",
|
|
29
|
+
"capacitor",
|
|
28
30
|
"native",
|
|
29
31
|
"touch",
|
|
30
32
|
"appstore",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint no-underscore-dangle: "off" */
|
|
2
|
-
import { f7events, f7routers } from './f7';
|
|
3
|
-
import { extend, getComponentId } from './utils';
|
|
2
|
+
import { f7events, f7routers } from './f7.js';
|
|
3
|
+
import { extend, getComponentId } from './utils.js';
|
|
4
|
+
import { routerOpenIn } from './router-open-in.js';
|
|
4
5
|
|
|
5
6
|
const getChildrenArray = el => {
|
|
6
7
|
const arr = [];
|
|
@@ -21,13 +22,18 @@ const hasSameChildren = (childrenBefore, childrenAfter) => {
|
|
|
21
22
|
|
|
22
23
|
export default {
|
|
23
24
|
proto: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
openIn(router, navigateUrl, options) {
|
|
26
|
+
return routerOpenIn(router, navigateUrl, options);
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
pageComponentLoader(_ref) {
|
|
30
|
+
let {
|
|
31
|
+
routerEl,
|
|
32
|
+
component,
|
|
33
|
+
options,
|
|
34
|
+
resolve,
|
|
35
|
+
reject
|
|
36
|
+
} = _ref;
|
|
31
37
|
const router = this;
|
|
32
38
|
const routerId = router.id;
|
|
33
39
|
const el = routerEl;
|
|
@@ -112,13 +118,14 @@ export default {
|
|
|
112
118
|
}
|
|
113
119
|
},
|
|
114
120
|
|
|
115
|
-
tabComponentLoader({
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
tabComponentLoader(_temp) {
|
|
122
|
+
let {
|
|
123
|
+
tabEl,
|
|
124
|
+
component,
|
|
125
|
+
options,
|
|
126
|
+
resolve,
|
|
127
|
+
reject
|
|
128
|
+
} = _temp === void 0 ? {} : _temp;
|
|
122
129
|
const router = this;
|
|
123
130
|
if (!tabEl) reject();
|
|
124
131
|
let tabRouter;
|
|
@@ -174,12 +181,13 @@ export default {
|
|
|
174
181
|
tabRouter.setTabContent(null);
|
|
175
182
|
},
|
|
176
183
|
|
|
177
|
-
modalComponentLoader({
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
184
|
+
modalComponentLoader(_temp2) {
|
|
185
|
+
let {
|
|
186
|
+
component,
|
|
187
|
+
options,
|
|
188
|
+
resolve,
|
|
189
|
+
reject
|
|
190
|
+
} = _temp2 === void 0 ? {} : _temp2;
|
|
183
191
|
const router = this;
|
|
184
192
|
const modalsRouter = f7routers.modals;
|
|
185
193
|
|
package/shared/f7.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable import/no-mutable-exports */
|
|
2
2
|
import Framework7 from 'framework7/lite';
|
|
3
|
-
import { extend, unsetRouterIds } from './utils';
|
|
3
|
+
import { extend, unsetRouterIds } from './utils.js';
|
|
4
4
|
let f7;
|
|
5
5
|
let f7events;
|
|
6
6
|
const theme = {};
|
|
@@ -31,7 +31,15 @@ const f7initEvents = () => {
|
|
|
31
31
|
f7events = new Framework7.Events();
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
const f7init = (rootEl, params
|
|
34
|
+
const f7init = function (rootEl, params, init) {
|
|
35
|
+
if (params === void 0) {
|
|
36
|
+
params = {};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (init === void 0) {
|
|
40
|
+
init = true;
|
|
41
|
+
}
|
|
42
|
+
|
|
35
43
|
const f7Params = extend({}, params, {
|
|
36
44
|
el: rootEl,
|
|
37
45
|
init
|
package/shared/mixins.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isStringProp } from './utils';
|
|
1
|
+
import { isStringProp } from './utils.js';
|
|
2
2
|
export function colorClasses(props) {
|
|
3
3
|
const {
|
|
4
4
|
color,
|
|
@@ -7,10 +7,10 @@ export function colorClasses(props) {
|
|
|
7
7
|
bgColor,
|
|
8
8
|
borderColor,
|
|
9
9
|
rippleColor,
|
|
10
|
-
|
|
10
|
+
dark
|
|
11
11
|
} = props;
|
|
12
12
|
return {
|
|
13
|
-
|
|
13
|
+
dark,
|
|
14
14
|
[`color-${color}`]: color,
|
|
15
15
|
[`color-theme-${colorTheme}`]: colorTheme,
|
|
16
16
|
[`text-color-${textColor}`]: textColor,
|
|
@@ -26,7 +26,7 @@ export const colorProps = {
|
|
|
26
26
|
bgColor: String,
|
|
27
27
|
borderColor: String,
|
|
28
28
|
rippleColor: String,
|
|
29
|
-
|
|
29
|
+
dark: Boolean
|
|
30
30
|
};
|
|
31
31
|
export const iconProps = {
|
|
32
32
|
icon: String,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export const modalStateClasses = ({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export const modalStateClasses = function (_temp) {
|
|
2
|
+
let {
|
|
3
|
+
isOpened,
|
|
4
|
+
isClosing
|
|
5
|
+
} = _temp === void 0 ? {} : _temp;
|
|
5
6
|
return {
|
|
6
7
|
'modal-in': isOpened && !isClosing,
|
|
7
8
|
'modal-out': isClosing
|
package/shared/plugin.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import Framework7 from 'framework7/lite';
|
|
2
|
-
import componentsRouter from './components-router';
|
|
3
|
-
import { f7, f7ready, theme, f7initEvents, setTheme } from './f7';
|
|
2
|
+
import componentsRouter from './components-router.js';
|
|
3
|
+
import { f7, f7ready, theme, f7initEvents, setTheme } from './f7.js';
|
|
4
4
|
const Framework7Vue = {
|
|
5
5
|
name: 'vuePlugin',
|
|
6
6
|
installed: false,
|
|
7
7
|
|
|
8
|
-
install(params
|
|
8
|
+
install(params) {
|
|
9
|
+
if (params === void 0) {
|
|
10
|
+
params = {};
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
if (Framework7Vue.installed) return;
|
|
10
14
|
Framework7Vue.installed = true;
|
|
11
15
|
f7initEvents();
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { h } from 'vue';
|
|
2
|
+
import Popup from '../components/popup.js';
|
|
3
|
+
import View from '../components/view.js';
|
|
4
|
+
import LoginScreen from '../components/login-screen.js';
|
|
5
|
+
import Sheet from '../components/sheet.js';
|
|
6
|
+
import Popover from '../components/popover.js';
|
|
7
|
+
import Panel from '../components/panel.js';
|
|
8
|
+
export const routerOpenIn = (router, url, options) => {
|
|
9
|
+
const navigateOptions = {
|
|
10
|
+
url,
|
|
11
|
+
route: {
|
|
12
|
+
path: url,
|
|
13
|
+
options: { ...options,
|
|
14
|
+
openIn: undefined
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const params = { ...options
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
if (options.openIn === 'popup') {
|
|
22
|
+
params.component = {
|
|
23
|
+
setup() {
|
|
24
|
+
return () => h(Popup, {
|
|
25
|
+
class: 'popup-router-open-in',
|
|
26
|
+
'data-url': url
|
|
27
|
+
}, [h(View, {
|
|
28
|
+
linksView: router.view.selector,
|
|
29
|
+
url,
|
|
30
|
+
ignoreOpenIn: true
|
|
31
|
+
})]);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
};
|
|
35
|
+
navigateOptions.route.popup = params;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (options.openIn === 'loginScreen') {
|
|
39
|
+
params.component = {
|
|
40
|
+
setup() {
|
|
41
|
+
return () => h(LoginScreen, {
|
|
42
|
+
class: 'login-screen-router-open-in',
|
|
43
|
+
'data-url': url
|
|
44
|
+
}, [h(View, {
|
|
45
|
+
linksView: router.view.selector,
|
|
46
|
+
url,
|
|
47
|
+
ignoreOpenIn: true
|
|
48
|
+
})]);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
};
|
|
52
|
+
navigateOptions.route.loginScreen = params;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (options.openIn === 'sheet') {
|
|
56
|
+
params.component = {
|
|
57
|
+
setup() {
|
|
58
|
+
return () => h(Sheet, {
|
|
59
|
+
class: 'sheet-modal-router-open-in',
|
|
60
|
+
'data-url': url
|
|
61
|
+
}, [h(View, {
|
|
62
|
+
linksView: router.view.selector,
|
|
63
|
+
url,
|
|
64
|
+
ignoreOpenIn: true
|
|
65
|
+
})]);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
};
|
|
69
|
+
navigateOptions.route.sheet = params;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (options.openIn === 'popover') {
|
|
73
|
+
params.targetEl = options.clickedEl || options.targetEl;
|
|
74
|
+
params.component = {
|
|
75
|
+
setup() {
|
|
76
|
+
return () => h(Popover, {
|
|
77
|
+
class: 'popover-router-open-in',
|
|
78
|
+
'data-url': url,
|
|
79
|
+
targetEl: options.clickedEl || options.targetEl
|
|
80
|
+
}, [h(View, {
|
|
81
|
+
linksView: router.view.selector,
|
|
82
|
+
url,
|
|
83
|
+
ignoreOpenIn: true
|
|
84
|
+
})]);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
};
|
|
88
|
+
navigateOptions.route.popover = params;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (options.openIn.indexOf('panel') >= 0) {
|
|
92
|
+
const parts = options.openIn.split(':');
|
|
93
|
+
const side = parts[1] || 'left';
|
|
94
|
+
const effect = parts[2] || 'cover';
|
|
95
|
+
params.component = {
|
|
96
|
+
setup() {
|
|
97
|
+
return () => h(Panel, {
|
|
98
|
+
class: 'panel-router-open-in',
|
|
99
|
+
'data-url': url,
|
|
100
|
+
side,
|
|
101
|
+
effect
|
|
102
|
+
}, [h(View, {
|
|
103
|
+
linksView: router.view.selector,
|
|
104
|
+
url,
|
|
105
|
+
ignoreOpenIn: true
|
|
106
|
+
})]);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
};
|
|
110
|
+
navigateOptions.route.panel = params;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return router.navigate(navigateOptions);
|
|
114
|
+
};
|
package/shared/use-icon.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { onMounted, onUpdated } from 'vue';
|
|
2
|
-
export const useRouteProps = (elRef, {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export const useRouteProps = function (elRef, _temp) {
|
|
3
|
+
let {
|
|
4
|
+
routeProps
|
|
5
|
+
} = _temp === void 0 ? {} : _temp;
|
|
5
6
|
onMounted(() => {
|
|
6
7
|
if (elRef.value && routeProps) {
|
|
7
8
|
elRef.value.f7RouteProps = routeProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { onMounted, onBeforeUnmount } from 'vue';
|
|
2
|
-
import { f7ready, f7 } from './f7';
|
|
3
|
-
import { extend } from './utils';
|
|
2
|
+
import { f7ready, f7 } from './f7.js';
|
|
3
|
+
import { extend } from './utils.js';
|
|
4
4
|
export const useSmartSelect = (props, setInstance, getEl) => {
|
|
5
5
|
let f7SmartSelect;
|
|
6
6
|
onMounted(() => {
|
package/shared/use-store.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { onBeforeUnmount, ref } from 'vue';
|
|
2
|
-
import { f7 } from './f7';
|
|
3
|
-
export const useStore = (
|
|
2
|
+
import { f7 } from './f7.js';
|
|
3
|
+
export const useStore = function () {
|
|
4
4
|
// (store, getter)
|
|
5
|
-
let store =
|
|
6
|
-
let getter =
|
|
5
|
+
let store = arguments.length <= 0 ? undefined : arguments[0];
|
|
6
|
+
let getter = arguments.length <= 1 ? undefined : arguments[1];
|
|
7
7
|
|
|
8
|
-
if (
|
|
8
|
+
if (arguments.length === 1) {
|
|
9
9
|
// (getter)
|
|
10
10
|
store = f7.store;
|
|
11
|
-
getter =
|
|
11
|
+
getter = arguments.length <= 0 ? undefined : arguments[0];
|
|
12
12
|
} // eslint-disable-next-line
|
|
13
13
|
|
|
14
14
|
|
package/shared/use-tab.js
CHANGED
package/shared/use-theme.js
CHANGED
package/shared/use-tooltip.js
CHANGED