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/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,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 Vue 7.0.0
|
|
2
|
+
* Framework7 Vue 7.0.0
|
|
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
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,6 +114,6 @@ 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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framework7-vue",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
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",
|
|
@@ -26,13 +26,14 @@ export default {
|
|
|
26
26
|
return routerOpenIn(router, navigateUrl, options);
|
|
27
27
|
},
|
|
28
28
|
|
|
29
|
-
pageComponentLoader({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
pageComponentLoader(_ref) {
|
|
30
|
+
let {
|
|
31
|
+
routerEl,
|
|
32
|
+
component,
|
|
33
|
+
options,
|
|
34
|
+
resolve,
|
|
35
|
+
reject
|
|
36
|
+
} = _ref;
|
|
36
37
|
const router = this;
|
|
37
38
|
const routerId = router.id;
|
|
38
39
|
const el = routerEl;
|
|
@@ -117,13 +118,14 @@ export default {
|
|
|
117
118
|
}
|
|
118
119
|
},
|
|
119
120
|
|
|
120
|
-
tabComponentLoader({
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
121
|
+
tabComponentLoader(_temp) {
|
|
122
|
+
let {
|
|
123
|
+
tabEl,
|
|
124
|
+
component,
|
|
125
|
+
options,
|
|
126
|
+
resolve,
|
|
127
|
+
reject
|
|
128
|
+
} = _temp === void 0 ? {} : _temp;
|
|
127
129
|
const router = this;
|
|
128
130
|
if (!tabEl) reject();
|
|
129
131
|
let tabRouter;
|
|
@@ -179,12 +181,13 @@ export default {
|
|
|
179
181
|
tabRouter.setTabContent(null);
|
|
180
182
|
},
|
|
181
183
|
|
|
182
|
-
modalComponentLoader({
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
184
|
+
modalComponentLoader(_temp2) {
|
|
185
|
+
let {
|
|
186
|
+
component,
|
|
187
|
+
options,
|
|
188
|
+
resolve,
|
|
189
|
+
reject
|
|
190
|
+
} = _temp2 === void 0 ? {} : _temp2;
|
|
188
191
|
const router = this;
|
|
189
192
|
const modalsRouter = f7routers.modals;
|
|
190
193
|
|
package/shared/f7.js
CHANGED
|
@@ -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
|
|
@@ -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
package/shared/router-open-in.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h } from 'vue';
|
|
2
|
-
import Popup from '../components/popup';
|
|
3
|
-
import View from '../components/view';
|
|
4
|
-
import LoginScreen from '../components/login-screen';
|
|
5
|
-
import Sheet from '../components/sheet';
|
|
6
|
-
import Popover from '../components/popover';
|
|
7
|
-
import Panel from '../components/panel';
|
|
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
8
|
export const routerOpenIn = (router, url, options) => {
|
|
9
9
|
const navigateOptions = {
|
|
10
10
|
url,
|
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;
|
package/shared/use-store.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { onBeforeUnmount, ref } from 'vue';
|
|
2
2
|
import { f7 } from './f7.js';
|
|
3
|
-
export const useStore = (
|
|
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/utils.js
CHANGED
|
@@ -15,11 +15,15 @@ export function isObject(o) {
|
|
|
15
15
|
export function now() {
|
|
16
16
|
return Date.now();
|
|
17
17
|
}
|
|
18
|
-
export function extend(
|
|
18
|
+
export function extend() {
|
|
19
19
|
let deep = true;
|
|
20
20
|
let to;
|
|
21
21
|
let from;
|
|
22
22
|
|
|
23
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
24
|
+
args[_key] = arguments[_key];
|
|
25
|
+
}
|
|
26
|
+
|
|
23
27
|
if (typeof args[0] === 'boolean') {
|
|
24
28
|
[deep, to] = args;
|
|
25
29
|
args.splice(0, 2);
|
|
@@ -58,8 +62,13 @@ export function extend(...args) {
|
|
|
58
62
|
|
|
59
63
|
return to;
|
|
60
64
|
}
|
|
61
|
-
export function classNames(
|
|
65
|
+
export function classNames() {
|
|
62
66
|
const classes = [];
|
|
67
|
+
|
|
68
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
69
|
+
args[_key2] = arguments[_key2];
|
|
70
|
+
}
|
|
71
|
+
|
|
63
72
|
args.forEach(arg => {
|
|
64
73
|
if (typeof arg === 'object' && arg.constructor === Object) {
|
|
65
74
|
Object.keys(arg).forEach(key => {
|
|
@@ -87,7 +96,11 @@ export function getComponentId() {
|
|
|
87
96
|
routerComponentIdCounter += 1;
|
|
88
97
|
return `${now()}_${routerComponentIdCounter}`;
|
|
89
98
|
}
|
|
90
|
-
export function getChildren(slots, slotName
|
|
99
|
+
export function getChildren(slots, slotName) {
|
|
100
|
+
if (slotName === void 0) {
|
|
101
|
+
slotName = 'default';
|
|
102
|
+
}
|
|
103
|
+
|
|
91
104
|
const result = [];
|
|
92
105
|
|
|
93
106
|
const getElementsChildren = els => {
|