framework7-vue 6.3.4 → 7.0.0-beta.3
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/accordion-content.d.ts → accordion-content.d.ts} +0 -0
- package/components/accordion-content.js +25 -0
- package/components/{accordion-item/accordion-item.d.ts → accordion-item.d.ts} +0 -0
- package/{esm/components → components}/accordion-item.js +27 -31
- package/components/{accordion-toggle/accordion-toggle.d.ts → accordion-toggle.d.ts} +0 -0
- package/components/accordion-toggle.js +25 -0
- package/components/{accordion/accordion.d.ts → accordion.d.ts} +0 -0
- package/components/accordion.js +27 -0
- package/components/{actions-button/actions-button.d.ts → actions-button.d.ts} +0 -0
- package/{esm/components → components}/actions-button.js +25 -29
- package/components/{actions-group/actions-group.d.ts → actions-group.d.ts} +0 -0
- package/components/actions-group.js +25 -0
- package/components/{actions-label/actions-label.d.ts → actions-label.d.ts} +0 -0
- package/components/actions-label.js +38 -0
- package/components/{actions/actions.d.ts → actions.d.ts} +0 -0
- package/{esm/components → components}/actions.js +44 -44
- package/components/{app/app.d.ts → app.d.ts} +1 -1
- package/components/app.js +292 -0
- package/components/{appbar/appbar.d.ts → appbar.d.ts} +0 -0
- package/{esm/components → components}/appbar.js +15 -18
- package/components/{area-chart/area-chart.d.ts → area-chart.d.ts} +0 -0
- package/{esm/components → components}/area-chart.js +149 -161
- package/components/{badge/badge.d.ts → badge.d.ts} +0 -0
- package/components/badge.js +33 -0
- package/components/{block-footer/block-footer.d.ts → block-footer.d.ts} +0 -0
- package/components/block-footer.js +25 -0
- package/components/{block-header/block-header.d.ts → block-header.d.ts} +0 -0
- package/components/block-header.js +25 -0
- package/components/{block-title/block-title.d.ts → block-title.d.ts} +0 -0
- package/{esm/components → components}/block-title.js +14 -11
- package/components/{block/block.d.ts → block.d.ts} +0 -0
- package/{esm/components → components}/block.js +35 -31
- package/components/{button/button.d.ts → button.d.ts} +0 -0
- package/{esm/components → components}/button.js +83 -81
- package/components/{card-content/card-content.d.ts → card-content.d.ts} +0 -0
- package/components/card-content.js +32 -0
- package/components/{card-footer/card-footer.d.ts → card-footer.d.ts} +0 -0
- package/components/card-footer.js +25 -0
- package/components/{card-header/card-header.d.ts → card-header.d.ts} +0 -0
- package/components/card-header.js +25 -0
- package/components/{card/card.d.ts → card.d.ts} +0 -0
- package/{esm/components → components}/card.js +47 -61
- package/components/{checkbox/checkbox.d.ts → checkbox.d.ts} +0 -0
- package/{esm/components → components}/checkbox.js +23 -27
- package/components/{chip/chip.d.ts → chip.d.ts} +0 -0
- package/{esm/components → components}/chip.js +32 -37
- package/components/{col/col.d.ts → col.d.ts} +0 -0
- package/components/col.js +96 -0
- package/components/{fab-backdrop/fab-backdrop.d.ts → fab-backdrop.d.ts} +0 -0
- package/components/fab-backdrop.js +25 -0
- package/components/{fab-button/fab-button.d.ts → fab-button.d.ts} +0 -0
- package/{esm/components → components}/fab-button.js +21 -23
- package/components/{fab-buttons/fab-buttons.d.ts → fab-buttons.d.ts} +0 -0
- package/components/fab-buttons.js +30 -0
- package/components/{fab/fab.d.ts → fab.d.ts} +0 -0
- package/{esm/components → components}/fab.js +29 -25
- package/components/{gauge/gauge.d.ts → gauge.d.ts} +0 -0
- package/{esm/components → components}/gauge.js +19 -25
- package/components/{icon/icon.d.ts → icon.d.ts} +0 -0
- package/{esm/components → components}/icon.js +40 -35
- package/components/{input/input.d.ts → input.d.ts} +0 -0
- package/{esm/components → components}/input.js +96 -110
- package/components/{link/link.d.ts → link.d.ts} +0 -0
- package/{esm/components → components}/link.js +55 -50
- package/components/{list-button/list-button.d.ts → list-button.d.ts} +0 -0
- package/{esm/components → components}/list-button.js +32 -25
- package/components/{list-group/list-group.d.ts → list-group.d.ts} +0 -0
- package/components/list-group.js +56 -0
- package/components/{list-index/list-index.d.ts → list-index.d.ts} +0 -0
- package/{esm/components → components}/list-index.js +25 -26
- package/components/{list-input/list-input.d.ts → list-input.d.ts} +0 -0
- package/{esm/components → components}/list-input.js +83 -99
- package/components/{list-item-cell/list-item-cell.d.ts → list-item-cell.d.ts} +0 -0
- package/components/list-item-cell.js +25 -0
- package/components/{list-item-row/list-item-row.d.ts → list-item-row.d.ts} +0 -0
- package/components/list-item-row.js +25 -0
- package/components/{list-item/list-item.d.ts → list-item.d.ts} +0 -0
- package/{esm/components → components}/list-item.js +156 -179
- package/components/{list/list.d.ts → list.d.ts} +0 -0
- package/{esm/components → components}/list.js +85 -83
- package/components/{login-screen-title/login-screen-title.d.ts → login-screen-title.d.ts} +0 -0
- package/components/login-screen-title.js +25 -0
- package/components/{login-screen/login-screen.d.ts → login-screen.d.ts} +0 -0
- package/{esm/components → components}/login-screen.js +29 -31
- package/components/{menu-dropdown-item/menu-dropdown-item.d.ts → menu-dropdown-item.d.ts} +0 -0
- package/{esm/components → components}/menu-dropdown-item.js +30 -30
- package/components/{menu-dropdown/menu-dropdown.d.ts → menu-dropdown.d.ts} +0 -0
- package/{esm/components → components}/menu-dropdown.js +12 -11
- package/components/{menu-item/menu-item.d.ts → menu-item.d.ts} +0 -0
- package/{esm/components → components}/menu-item.js +49 -50
- package/components/{menu/menu.d.ts → menu.d.ts} +0 -0
- package/components/menu.js +28 -0
- package/components/{message/message.d.ts → message.d.ts} +0 -0
- package/components/message.js +167 -0
- package/components/{messagebar-attachment/messagebar-attachment.d.ts → messagebar-attachment.d.ts} +0 -0
- package/{esm/components → components}/messagebar-attachment.js +17 -22
- package/components/{messagebar-attachments/messagebar-attachments.d.ts → messagebar-attachments.d.ts} +0 -0
- package/components/messagebar-attachments.js +25 -0
- package/components/{messagebar-sheet-image/messagebar-sheet-image.d.ts → messagebar-sheet-image.d.ts} +0 -0
- package/components/messagebar-sheet-image.js +51 -0
- package/components/{messagebar-sheet-item/messagebar-sheet-item.d.ts → messagebar-sheet-item.d.ts} +0 -0
- package/components/messagebar-sheet-item.js +25 -0
- package/components/{messagebar-sheet/messagebar-sheet.d.ts → messagebar-sheet.d.ts} +0 -0
- package/components/messagebar-sheet.js +25 -0
- package/components/{messagebar/messagebar.d.ts → messagebar.d.ts} +0 -0
- package/{esm/components → components}/messagebar.js +63 -64
- package/components/{messages-title/messages-title.d.ts → messages-title.d.ts} +0 -0
- package/components/messages-title.js +25 -0
- package/components/{messages/messages.d.ts → messages.d.ts} +0 -0
- package/{esm/components → components}/messages.js +31 -31
- package/components/{nav-left/nav-left.d.ts → nav-left.d.ts} +0 -0
- package/{esm/components → components}/nav-left.js +21 -22
- package/components/{nav-right/nav-right.d.ts → nav-right.d.ts} +0 -0
- package/components/nav-right.js +29 -0
- package/components/{nav-title-large/nav-title-large.d.ts → nav-title-large.d.ts} +0 -0
- package/{esm/components → components}/nav-title-large.js +9 -10
- package/components/{nav-title/nav-title.d.ts → nav-title.d.ts} +0 -0
- package/{esm/components → components}/nav-title.js +13 -14
- package/components/{navbar/navbar.d.ts → navbar.d.ts} +0 -0
- package/{esm/components → components}/navbar.js +86 -102
- package/components/{page-content/page-content.d.ts → page-content.d.ts} +0 -0
- package/{esm/components → components}/page-content.js +41 -41
- package/components/{page/page.d.ts → page.d.ts} +0 -0
- package/{esm/components → components}/page.js +92 -94
- package/components/{panel/panel.d.ts → panel.d.ts} +0 -0
- package/{esm/components → components}/panel.js +46 -52
- package/components/{photo-browser/photo-browser.d.ts → photo-browser.d.ts} +0 -0
- package/{esm/components → components}/photo-browser.js +37 -31
- package/components/{pie-chart/pie-chart.d.ts → pie-chart.d.ts} +0 -0
- package/components/pie-chart.js +184 -0
- package/components/{popover/popover.d.ts → popover.d.ts} +0 -0
- package/{esm/components → components}/popover.js +40 -40
- package/components/{popup/popup.d.ts → popup.d.ts} +0 -0
- package/{esm/components → components}/popup.js +46 -46
- package/components/{preloader/preloader.d.ts → preloader.d.ts} +0 -0
- package/{esm/components → components}/preloader.js +26 -27
- package/components/{progressbar/progressbar.d.ts → progressbar.d.ts} +0 -0
- package/components/progressbar.js +49 -0
- package/components/{radio/radio.d.ts → radio.d.ts} +0 -0
- package/{esm/components → components}/radio.js +21 -23
- package/components/{range/range.d.ts → range.d.ts} +0 -0
- package/{esm/components → components}/range.js +33 -33
- package/components/{routable-modals/routable-modals.d.ts → routable-modals.d.ts} +0 -0
- package/components/routable-modals.js +65 -0
- package/components/{row/row.d.ts → row.d.ts} +0 -0
- package/components/row.js +72 -0
- package/components/{searchbar/searchbar.d.ts → searchbar.d.ts} +0 -0
- package/{esm/components → components}/searchbar.js +80 -92
- package/components/{segmented/segmented.d.ts → segmented.d.ts} +0 -0
- package/components/segmented.js +63 -0
- package/components/{sheet/sheet.d.ts → sheet.d.ts} +0 -0
- package/{esm/components → components}/sheet.js +49 -49
- package/components/{skeleton-avatar/skeleton-avatar.d.ts → skeleton-avatar.d.ts} +0 -0
- package/{esm/components → components}/skeleton-avatar.js +0 -0
- package/components/{skeleton-block/skeleton-block.d.ts → skeleton-block.d.ts} +0 -0
- package/{esm/components → components}/skeleton-block.js +0 -0
- package/components/{skeleton-image/skeleton-image.d.ts → skeleton-image.d.ts} +0 -0
- package/{esm/components → components}/skeleton-image.js +0 -0
- package/components/{skeleton-text/skeleton-text.d.ts → skeleton-text.d.ts} +0 -0
- package/{esm/components → components}/skeleton-text.js +0 -0
- package/components/{stepper/stepper.d.ts → stepper.d.ts} +0 -0
- package/{esm/components → components}/stepper.js +65 -74
- package/components/{subnavbar/subnavbar.d.ts → subnavbar.d.ts} +0 -0
- package/{esm/components → components}/subnavbar.js +14 -15
- package/components/{swipeout-actions/swipeout-actions.d.ts → swipeout-actions.d.ts} +0 -0
- package/{esm/components → components}/swipeout-actions.js +12 -13
- package/components/{swipeout-button/swipeout-button.d.ts → swipeout-button.d.ts} +0 -0
- package/{esm/components → components}/swipeout-button.js +18 -21
- package/components/{swiper-slide/swiper-slide.d.ts → swiper-slide.d.ts} +0 -0
- package/{esm/components → components}/swiper-slide.js +0 -0
- package/components/{swiper/swiper.d.ts → swiper.d.ts} +0 -0
- package/{esm/components → components}/swiper.js +0 -0
- package/components/{tab/tab.d.ts → tab.d.ts} +0 -0
- package/components/tab.js +130 -0
- package/components/{tabs/tabs.d.ts → tabs.d.ts} +0 -0
- package/{esm/components → components}/tabs.js +24 -29
- package/components/{text-editor/text-editor.d.ts → text-editor.d.ts} +0 -0
- package/{esm/components → components}/text-editor.js +32 -34
- package/components/{toggle/toggle.d.ts → toggle.d.ts} +0 -0
- package/{esm/components → components}/toggle.js +28 -31
- package/components/{toolbar/toolbar.d.ts → toolbar.d.ts} +0 -0
- package/{esm/components → components}/toolbar.js +46 -44
- package/components/{treeview-item/treeview-item.d.ts → treeview-item.d.ts} +0 -0
- package/components/treeview-item.js +152 -0
- package/components/{treeview/treeview.d.ts → treeview.d.ts} +0 -0
- package/components/treeview.js +25 -0
- package/components/{use-icon/use-icon.d.ts → use-icon.d.ts} +0 -0
- package/{esm/components → components}/use-icon.js +11 -15
- package/components/{view/view.d.ts → view.d.ts} +0 -0
- package/{esm/components → components}/view.js +81 -81
- package/components/{views/views.d.ts → views.d.ts} +0 -0
- package/components/views.js +29 -0
- package/{esm/framework7-vue-bundle.js → framework7-vue-bundle.js} +2 -2
- package/{esm/framework7-vue.js → framework7-vue.js} +2 -2
- package/package.json +7 -4
- package/{esm/shared → shared}/components-router.js +76 -66
- package/{esm/shared → shared}/f7.js +14 -22
- package/shared/get-router-initial-component.js +39 -0
- package/{esm/shared → shared}/mixins.js +95 -81
- package/shared/modal-state-classes.js +9 -0
- package/{esm/shared → shared}/plugin.js +11 -12
- package/shared/router-open-in.js +114 -0
- package/shared/use-icon.js +38 -0
- package/{esm/shared → shared}/use-route-props.js +5 -6
- package/{esm/shared → shared}/use-smart-select.js +6 -6
- package/shared/use-store.js +28 -0
- package/{esm/shared → shared}/use-tab.js +6 -6
- package/{esm/shared → shared}/use-theme.js +3 -3
- package/{esm/shared → shared}/use-tooltip.js +10 -10
- package/{esm/shared → shared}/utils.js +29 -43
- package/bundle/package.json +0 -8
- package/cjs/components/accordion-content.js +0 -33
- package/cjs/components/accordion-item.js +0 -111
- package/cjs/components/accordion-toggle.js +0 -33
- package/cjs/components/accordion.js +0 -35
- package/cjs/components/actions-button.js +0 -75
- package/cjs/components/actions-group.js +0 -33
- package/cjs/components/actions-label.js +0 -48
- package/cjs/components/actions.js +0 -177
- package/cjs/components/app.js +0 -393
- package/cjs/components/appbar.js +0 -54
- package/cjs/components/area-chart.js +0 -414
- package/cjs/components/badge.js +0 -42
- package/cjs/components/block-footer.js +0 -33
- package/cjs/components/block-header.js +0 -33
- package/cjs/components/block-title.js +0 -42
- package/cjs/components/block.js +0 -91
- package/cjs/components/button.js +0 -211
- package/cjs/components/card-content.js +0 -40
- package/cjs/components/card-footer.js +0 -33
- package/cjs/components/card-header.js +0 -33
- package/cjs/components/card.js +0 -237
- package/cjs/components/checkbox.js +0 -84
- package/cjs/components/chip.js +0 -103
- package/cjs/components/col.js +0 -100
- package/cjs/components/fab-backdrop.js +0 -33
- package/cjs/components/fab-button.js +0 -65
- package/cjs/components/fab-buttons.js +0 -38
- package/cjs/components/fab.js +0 -92
- package/cjs/components/gauge.js +0 -160
- package/cjs/components/icon.js +0 -120
- package/cjs/components/input.js +0 -478
- package/cjs/components/link.js +0 -147
- package/cjs/components/list-button.js +0 -76
- package/cjs/components/list-group.js +0 -66
- package/cjs/components/list-index.js +0 -118
- package/cjs/components/list-input.js +0 -480
- package/cjs/components/list-item-cell.js +0 -33
- package/cjs/components/list-item-row.js +0 -33
- package/cjs/components/list-item.js +0 -555
- package/cjs/components/list.js +0 -221
- package/cjs/components/login-screen-title.js +0 -33
- package/cjs/components/login-screen.js +0 -129
- package/cjs/components/menu-dropdown-item.js +0 -79
- package/cjs/components/menu-dropdown.js +0 -48
- package/cjs/components/menu-item.js +0 -150
- package/cjs/components/menu.js +0 -37
- package/cjs/components/message.js +0 -208
- package/cjs/components/messagebar-attachment.js +0 -64
- package/cjs/components/messagebar-attachments.js +0 -33
- package/cjs/components/messagebar-sheet-image.js +0 -63
- package/cjs/components/messagebar-sheet-item.js +0 -33
- package/cjs/components/messagebar-sheet.js +0 -33
- package/cjs/components/messagebar.js +0 -223
- package/cjs/components/messages-title.js +0 -33
- package/cjs/components/messages.js +0 -154
- package/cjs/components/nav-left.js +0 -85
- package/cjs/components/nav-right.js +0 -37
- package/cjs/components/nav-title-large.js +0 -37
- package/cjs/components/nav-title.js +0 -44
- package/cjs/components/navbar.js +0 -323
- package/cjs/components/page-content.js +0 -184
- package/cjs/components/page.js +0 -451
- package/cjs/components/panel.js +0 -224
- package/cjs/components/photo-browser.js +0 -185
- package/cjs/components/pie-chart.js +0 -204
- package/cjs/components/popover.js +0 -166
- package/cjs/components/popup.js +0 -185
- package/cjs/components/preloader.js +0 -91
- package/cjs/components/progressbar.js +0 -61
- package/cjs/components/radio.js +0 -71
- package/cjs/components/range.js +0 -152
- package/cjs/components/routable-modals.js +0 -71
- package/cjs/components/row.js +0 -83
- package/cjs/components/searchbar.js +0 -313
- package/cjs/components/segmented.js +0 -74
- package/cjs/components/sheet.js +0 -211
- package/cjs/components/skeleton-avatar.js +0 -9
- package/cjs/components/skeleton-block.js +0 -9
- package/cjs/components/skeleton-image.js +0 -9
- package/cjs/components/skeleton-text.js +0 -9
- package/cjs/components/stepper.js +0 -264
- package/cjs/components/subnavbar.js +0 -53
- package/cjs/components/swipeout-actions.js +0 -47
- package/cjs/components/swipeout-button.js +0 -59
- package/cjs/components/swiper-slide.js +0 -9
- package/cjs/components/swiper.js +0 -9
- package/cjs/components/tab.js +0 -142
- package/cjs/components/tabs.js +0 -71
- package/cjs/components/text-editor.js +0 -174
- package/cjs/components/toggle.js +0 -106
- package/cjs/components/toolbar.js +0 -168
- package/cjs/components/treeview-item.js +0 -179
- package/cjs/components/treeview.js +0 -33
- package/cjs/components/use-icon.js +0 -45
- package/cjs/components/view.js +0 -424
- package/cjs/components/views.js +0 -37
- package/cjs/framework7-vue-bundle.js +0 -515
- package/cjs/framework7-vue.js +0 -416
- package/cjs/shared/components-router.js +0 -243
- package/cjs/shared/f7.js +0 -105
- package/cjs/shared/get-router-initial-component.js +0 -48
- package/cjs/shared/mixins.js +0 -254
- package/cjs/shared/modal-state-classes.js +0 -17
- package/cjs/shared/plugin.js +0 -56
- package/cjs/shared/use-icon.js +0 -48
- package/cjs/shared/use-route-props.js +0 -26
- package/cjs/shared/use-smart-select.js +0 -35
- package/cjs/shared/use-store.js +0 -37
- package/cjs/shared/use-tab.js +0 -38
- package/cjs/shared/use-theme.js +0 -22
- package/cjs/shared/use-tooltip.js +0 -54
- package/cjs/shared/utils.js +0 -150
- package/components/accordion/package.json +0 -9
- package/components/accordion-content/package.json +0 -9
- package/components/accordion-item/package.json +0 -9
- package/components/accordion-toggle/package.json +0 -9
- package/components/actions/package.json +0 -9
- package/components/actions-button/package.json +0 -9
- package/components/actions-group/package.json +0 -9
- package/components/actions-label/package.json +0 -9
- package/components/app/package.json +0 -9
- package/components/appbar/package.json +0 -9
- package/components/area-chart/package.json +0 -9
- package/components/badge/package.json +0 -9
- package/components/block/package.json +0 -9
- package/components/block-footer/package.json +0 -9
- package/components/block-header/package.json +0 -9
- package/components/block-title/package.json +0 -9
- package/components/button/package.json +0 -9
- package/components/card/package.json +0 -9
- package/components/card-content/package.json +0 -9
- package/components/card-footer/package.json +0 -9
- package/components/card-header/package.json +0 -9
- package/components/checkbox/package.json +0 -9
- package/components/chip/package.json +0 -9
- package/components/col/package.json +0 -9
- package/components/fab/package.json +0 -9
- package/components/fab-backdrop/package.json +0 -9
- package/components/fab-button/package.json +0 -9
- package/components/fab-buttons/package.json +0 -9
- package/components/gauge/package.json +0 -9
- package/components/icon/package.json +0 -9
- package/components/input/package.json +0 -9
- package/components/link/package.json +0 -9
- package/components/list/package.json +0 -9
- package/components/list-button/package.json +0 -9
- package/components/list-group/package.json +0 -9
- package/components/list-index/package.json +0 -9
- package/components/list-input/package.json +0 -9
- package/components/list-item/package.json +0 -9
- package/components/list-item-cell/package.json +0 -9
- package/components/list-item-row/package.json +0 -9
- package/components/login-screen/package.json +0 -9
- package/components/login-screen-title/package.json +0 -9
- package/components/menu/package.json +0 -9
- package/components/menu-dropdown/package.json +0 -9
- package/components/menu-dropdown-item/package.json +0 -9
- package/components/menu-item/package.json +0 -9
- package/components/message/package.json +0 -9
- package/components/messagebar/package.json +0 -9
- package/components/messagebar-attachment/package.json +0 -9
- package/components/messagebar-attachments/package.json +0 -9
- package/components/messagebar-sheet/package.json +0 -9
- package/components/messagebar-sheet-image/package.json +0 -9
- package/components/messagebar-sheet-item/package.json +0 -9
- package/components/messages/package.json +0 -9
- package/components/messages-title/package.json +0 -9
- package/components/nav-left/package.json +0 -9
- package/components/nav-right/package.json +0 -9
- package/components/nav-title/package.json +0 -9
- package/components/nav-title-large/package.json +0 -9
- package/components/navbar/package.json +0 -9
- package/components/page/package.json +0 -9
- package/components/page-content/package.json +0 -9
- package/components/panel/package.json +0 -9
- package/components/photo-browser/package.json +0 -9
- package/components/pie-chart/package.json +0 -9
- package/components/popover/package.json +0 -9
- package/components/popup/package.json +0 -9
- package/components/preloader/package.json +0 -9
- package/components/progressbar/package.json +0 -9
- package/components/radio/package.json +0 -9
- package/components/range/package.json +0 -9
- package/components/routable-modals/package.json +0 -9
- package/components/row/package.json +0 -9
- package/components/searchbar/package.json +0 -9
- package/components/segmented/package.json +0 -9
- package/components/sheet/package.json +0 -9
- package/components/skeleton-avatar/package.json +0 -9
- package/components/skeleton-block/package.json +0 -9
- package/components/skeleton-image/package.json +0 -9
- package/components/skeleton-text/package.json +0 -9
- package/components/stepper/package.json +0 -9
- package/components/subnavbar/package.json +0 -9
- package/components/swipeout-actions/package.json +0 -9
- package/components/swipeout-button/package.json +0 -9
- package/components/swiper/package.json +0 -9
- package/components/swiper-slide/package.json +0 -9
- package/components/tab/package.json +0 -9
- package/components/tabs/package.json +0 -9
- package/components/text-editor/package.json +0 -9
- package/components/toggle/package.json +0 -9
- package/components/toolbar/package.json +0 -9
- package/components/treeview/package.json +0 -9
- package/components/treeview-item/package.json +0 -9
- package/components/use-icon/package.json +0 -9
- package/components/view/package.json +0 -9
- package/components/views/package.json +0 -9
- package/esm/components/accordion-content.js +0 -26
- package/esm/components/accordion-toggle.js +0 -26
- package/esm/components/accordion.js +0 -28
- package/esm/components/actions-group.js +0 -26
- package/esm/components/actions-label.js +0 -41
- package/esm/components/app.js +0 -381
- package/esm/components/badge.js +0 -34
- package/esm/components/block-footer.js +0 -26
- package/esm/components/block-header.js +0 -26
- package/esm/components/card-content.js +0 -33
- package/esm/components/card-footer.js +0 -26
- package/esm/components/card-header.js +0 -26
- package/esm/components/col.js +0 -91
- package/esm/components/fab-backdrop.js +0 -26
- package/esm/components/fab-buttons.js +0 -31
- package/esm/components/list-group.js +0 -59
- package/esm/components/list-item-cell.js +0 -26
- package/esm/components/list-item-row.js +0 -26
- package/esm/components/login-screen-title.js +0 -26
- package/esm/components/menu.js +0 -29
- package/esm/components/message.js +0 -200
- package/esm/components/messagebar-attachments.js +0 -26
- package/esm/components/messagebar-sheet-image.js +0 -56
- package/esm/components/messagebar-sheet-item.js +0 -26
- package/esm/components/messagebar-sheet.js +0 -26
- package/esm/components/messages-title.js +0 -26
- package/esm/components/nav-right.js +0 -30
- package/esm/components/pie-chart.js +0 -197
- package/esm/components/progressbar.js +0 -52
- package/esm/components/routable-modals.js +0 -62
- package/esm/components/row.js +0 -74
- package/esm/components/segmented.js +0 -66
- package/esm/components/tab.js +0 -128
- package/esm/components/treeview-item.js +0 -161
- package/esm/components/treeview.js +0 -26
- package/esm/components/views.js +0 -30
- package/esm/shared/get-router-initial-component.js +0 -40
- package/esm/shared/modal-state-classes.js +0 -10
- package/esm/shared/use-icon.js +0 -41
- package/esm/shared/use-store.js +0 -28
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString } from "vue";
|
|
4
|
-
|
|
2
|
+
const _hoisted_1 = {
|
|
5
3
|
key: 0,
|
|
6
4
|
class: "stepper-input-wrap"
|
|
7
5
|
};
|
|
8
|
-
|
|
6
|
+
const _hoisted_2 = {
|
|
9
7
|
key: 1,
|
|
10
8
|
class: "stepper-value"
|
|
11
9
|
};
|
|
@@ -16,9 +14,7 @@ function render(_ctx, _cache) {
|
|
|
16
14
|
class: _ctx.classes
|
|
17
15
|
}, [_createVNode("div", {
|
|
18
16
|
class: "stepper-button-minus",
|
|
19
|
-
onClick: _cache[1] || (_cache[1] =
|
|
20
|
-
return _ctx.onMinusClick && _ctx.onMinusClick.apply(_ctx, arguments);
|
|
21
|
-
})
|
|
17
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onMinusClick && _ctx.onMinusClick(...args))
|
|
22
18
|
}), _ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createBlock("div", _hoisted_1, [_createVNode("input", {
|
|
23
19
|
id: _ctx.inputId,
|
|
24
20
|
name: _ctx.name,
|
|
@@ -28,17 +24,11 @@ function render(_ctx, _cache) {
|
|
|
28
24
|
step: _ctx.inputType === 'number' ? _ctx.step : undefined,
|
|
29
25
|
value: _ctx.value,
|
|
30
26
|
readonly: _ctx.inputReadonly,
|
|
31
|
-
onInput: _cache[2] || (_cache[2] =
|
|
32
|
-
|
|
33
|
-
}),
|
|
34
|
-
onChange: _cache[3] || (_cache[3] = function () {
|
|
35
|
-
return _ctx.onChange && _ctx.onChange.apply(_ctx, arguments);
|
|
36
|
-
})
|
|
27
|
+
onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
28
|
+
onChange: _cache[3] || (_cache[3] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
37
29
|
}, null, 40, ["id", "name", "type", "min", "max", "step", "value", "readonly"])])) : _createCommentVNode("", true), !_ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createBlock("div", _hoisted_2, _toDisplayString(_ctx.value), 1)) : _createCommentVNode("", true), _createVNode("div", {
|
|
38
30
|
class: "stepper-button-plus",
|
|
39
|
-
onClick: _cache[4] || (_cache[4] =
|
|
40
|
-
return _ctx.onPlusClick && _ctx.onPlusClick.apply(_ctx, arguments);
|
|
41
|
-
})
|
|
31
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.onPlusClick && _ctx.onPlusClick(...args))
|
|
42
32
|
})], 2);
|
|
43
33
|
}
|
|
44
34
|
|
|
@@ -48,8 +38,8 @@ import { colorClasses, colorProps } from '../shared/mixins';
|
|
|
48
38
|
import { f7ready, f7 } from '../shared/f7';
|
|
49
39
|
export default {
|
|
50
40
|
name: 'f7-stepper',
|
|
51
|
-
render
|
|
52
|
-
props:
|
|
41
|
+
render,
|
|
42
|
+
props: {
|
|
53
43
|
init: {
|
|
54
44
|
type: Boolean,
|
|
55
45
|
default: true
|
|
@@ -130,29 +120,32 @@ export default {
|
|
|
130
120
|
raised: Boolean,
|
|
131
121
|
raisedMd: Boolean,
|
|
132
122
|
raisedIos: Boolean,
|
|
133
|
-
raisedAurora: Boolean
|
|
134
|
-
|
|
123
|
+
raisedAurora: Boolean,
|
|
124
|
+
...colorProps
|
|
125
|
+
},
|
|
135
126
|
emits: ['input', 'change', 'stepper:minusclick', 'stepper:plusclick', 'stepper:change', 'update:value'],
|
|
136
|
-
setup: function setup(props, _ref) {
|
|
137
|
-
var emit = _ref.emit;
|
|
138
|
-
var f7Stepper = null;
|
|
139
|
-
var elRef = ref(null);
|
|
140
127
|
|
|
141
|
-
|
|
128
|
+
setup(props, {
|
|
129
|
+
emit
|
|
130
|
+
}) {
|
|
131
|
+
let f7Stepper = null;
|
|
132
|
+
const elRef = ref(null);
|
|
133
|
+
|
|
134
|
+
const increment = () => {
|
|
142
135
|
if (!f7Stepper) return;
|
|
143
136
|
f7Stepper.increment();
|
|
144
137
|
};
|
|
145
138
|
|
|
146
|
-
|
|
139
|
+
const decrement = () => {
|
|
147
140
|
if (!f7Stepper) return;
|
|
148
141
|
f7Stepper.decrement();
|
|
149
142
|
};
|
|
150
143
|
|
|
151
|
-
|
|
144
|
+
const setValue = newValue => {
|
|
152
145
|
if (f7Stepper && f7Stepper.setValue) f7Stepper.setValue(newValue);
|
|
153
146
|
};
|
|
154
147
|
|
|
155
|
-
|
|
148
|
+
const getValue = () => {
|
|
156
149
|
if (f7Stepper && f7Stepper.getValue) {
|
|
157
150
|
return f7Stepper.getValue();
|
|
158
151
|
}
|
|
@@ -160,30 +153,28 @@ export default {
|
|
|
160
153
|
return undefined;
|
|
161
154
|
};
|
|
162
155
|
|
|
163
|
-
|
|
156
|
+
const onInput = event => {
|
|
164
157
|
emit('input', event, f7Stepper);
|
|
165
158
|
};
|
|
166
159
|
|
|
167
|
-
|
|
160
|
+
const onChange = event => {
|
|
168
161
|
emit('change', event, f7Stepper);
|
|
169
162
|
};
|
|
170
163
|
|
|
171
|
-
|
|
164
|
+
const onMinusClick = event => {
|
|
172
165
|
emit('stepper:minusclick', event, f7Stepper);
|
|
173
166
|
};
|
|
174
167
|
|
|
175
|
-
|
|
168
|
+
const onPlusClick = event => {
|
|
176
169
|
emit('stepper:plusclick', event, f7Stepper);
|
|
177
170
|
};
|
|
178
171
|
|
|
179
|
-
watch(
|
|
180
|
-
return props.value;
|
|
181
|
-
}, function (newValue) {
|
|
172
|
+
watch(() => props.value, newValue => {
|
|
182
173
|
if (!f7Stepper) return;
|
|
183
174
|
f7Stepper.setValue(newValue);
|
|
184
175
|
});
|
|
185
|
-
onMounted(
|
|
186
|
-
f7ready(
|
|
176
|
+
onMounted(() => {
|
|
177
|
+
f7ready(() => {
|
|
187
178
|
if (!props.init || !elRef.value) return;
|
|
188
179
|
f7Stepper = f7.stepper.create(noUndefinedProps({
|
|
189
180
|
el: elRef.value,
|
|
@@ -199,57 +190,57 @@ export default {
|
|
|
199
190
|
decimalPoint: props.decimalPoint,
|
|
200
191
|
buttonsEndInputMode: props.buttonsEndInputMode,
|
|
201
192
|
on: {
|
|
202
|
-
change
|
|
193
|
+
change(stepper, newValue) {
|
|
203
194
|
emit('stepper:change', newValue);
|
|
204
195
|
emit('update:value', newValue);
|
|
205
196
|
}
|
|
197
|
+
|
|
206
198
|
}
|
|
207
199
|
}));
|
|
208
200
|
});
|
|
209
201
|
});
|
|
210
|
-
onBeforeUnmount(
|
|
202
|
+
onBeforeUnmount(() => {
|
|
211
203
|
if (f7Stepper && f7Stepper.destroy) {
|
|
212
204
|
f7Stepper.destroy();
|
|
213
205
|
}
|
|
214
206
|
|
|
215
207
|
f7Stepper = null;
|
|
216
208
|
});
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}, colorClasses(props));
|
|
241
|
-
});
|
|
209
|
+
const classes = computed(() => classNames('stepper', {
|
|
210
|
+
disabled: props.disabled,
|
|
211
|
+
'stepper-round': props.round,
|
|
212
|
+
'stepper-round-ios': props.roundIos,
|
|
213
|
+
'stepper-round-md': props.roundMd,
|
|
214
|
+
'stepper-round-aurora': props.roundAurora,
|
|
215
|
+
'stepper-fill': props.fill,
|
|
216
|
+
'stepper-fill-ios': props.fillIos,
|
|
217
|
+
'stepper-fill-md': props.fillMd,
|
|
218
|
+
'stepper-fill-aurora': props.fillAurora,
|
|
219
|
+
'stepper-large': props.large,
|
|
220
|
+
'stepper-large-ios': props.largeIos,
|
|
221
|
+
'stepper-large-md': props.largeMd,
|
|
222
|
+
'stepper-large-aurora': props.largeAurora,
|
|
223
|
+
'stepper-small': props.small,
|
|
224
|
+
'stepper-small-ios': props.smallIos,
|
|
225
|
+
'stepper-small-md': props.smallMd,
|
|
226
|
+
'stepper-small-aurora': props.smallAurora,
|
|
227
|
+
'stepper-raised': props.raised,
|
|
228
|
+
'stepper-raised-ios': props.raisedIos,
|
|
229
|
+
'stepper-raised-md': props.raisedMd,
|
|
230
|
+
'stepper-raised-aurora': props.raisedAurora
|
|
231
|
+
}, colorClasses(props)));
|
|
242
232
|
return {
|
|
243
|
-
elRef
|
|
244
|
-
classes
|
|
245
|
-
increment
|
|
246
|
-
decrement
|
|
247
|
-
setValue
|
|
248
|
-
getValue
|
|
249
|
-
onInput
|
|
250
|
-
onChange
|
|
251
|
-
onMinusClick
|
|
252
|
-
onPlusClick
|
|
233
|
+
elRef,
|
|
234
|
+
classes,
|
|
235
|
+
increment,
|
|
236
|
+
decrement,
|
|
237
|
+
setValue,
|
|
238
|
+
getValue,
|
|
239
|
+
onInput,
|
|
240
|
+
onChange,
|
|
241
|
+
onMinusClick,
|
|
242
|
+
onPlusClick
|
|
253
243
|
};
|
|
254
244
|
}
|
|
245
|
+
|
|
255
246
|
};
|
|
File without changes
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import { toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot } from "vue";
|
|
4
|
-
|
|
2
|
+
const _hoisted_1 = {
|
|
5
3
|
key: 0,
|
|
6
4
|
class: "subnavbar-inner"
|
|
7
5
|
};
|
|
8
|
-
|
|
6
|
+
const _hoisted_2 = {
|
|
9
7
|
key: 0,
|
|
10
8
|
class: "subnavbar-title"
|
|
11
9
|
};
|
|
@@ -23,23 +21,24 @@ import { classNames } from '../shared/utils';
|
|
|
23
21
|
import { colorClasses, colorProps } from '../shared/mixins';
|
|
24
22
|
export default {
|
|
25
23
|
name: 'f7-subnavbar',
|
|
26
|
-
render
|
|
27
|
-
props:
|
|
24
|
+
render,
|
|
25
|
+
props: {
|
|
28
26
|
sliding: Boolean,
|
|
29
27
|
title: String,
|
|
30
28
|
inner: {
|
|
31
29
|
type: Boolean,
|
|
32
30
|
default: true
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
});
|
|
31
|
+
},
|
|
32
|
+
...colorProps
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
setup(props) {
|
|
36
|
+
const classes = computed(() => classNames('subnavbar', {
|
|
37
|
+
sliding: props.sliding
|
|
38
|
+
}, colorClasses(props)));
|
|
41
39
|
return {
|
|
42
|
-
classes
|
|
40
|
+
classes
|
|
43
41
|
};
|
|
44
42
|
}
|
|
43
|
+
|
|
45
44
|
};
|
|
File without changes
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
4
2
|
|
|
5
3
|
function render(_ctx, _cache) {
|
|
@@ -13,15 +11,17 @@ import { classNames } from '../shared/utils';
|
|
|
13
11
|
import { colorClasses, colorProps } from '../shared/mixins';
|
|
14
12
|
export default {
|
|
15
13
|
name: 'f7-swipeout-actions',
|
|
16
|
-
render
|
|
17
|
-
props:
|
|
14
|
+
render,
|
|
15
|
+
props: {
|
|
18
16
|
left: Boolean,
|
|
19
17
|
right: Boolean,
|
|
20
|
-
side: String
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
side: String,
|
|
19
|
+
...colorProps
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
setup(props) {
|
|
23
|
+
const side = computed(() => {
|
|
24
|
+
let sideComputed = props.side;
|
|
25
25
|
|
|
26
26
|
if (!sideComputed) {
|
|
27
27
|
if (props.left) sideComputed = 'left';
|
|
@@ -30,11 +30,10 @@ export default {
|
|
|
30
30
|
|
|
31
31
|
return sideComputed;
|
|
32
32
|
});
|
|
33
|
-
|
|
34
|
-
return classNames("swipeout-actions-" + side.value, colorClasses(props));
|
|
35
|
-
});
|
|
33
|
+
const classes = computed(() => classNames(`swipeout-actions-${side.value}`, colorClasses(props)));
|
|
36
34
|
return {
|
|
37
|
-
classes
|
|
35
|
+
classes
|
|
38
36
|
};
|
|
39
37
|
}
|
|
38
|
+
|
|
40
39
|
};
|
|
File without changes
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
4
2
|
|
|
5
3
|
function render(_ctx, _cache) {
|
|
@@ -8,9 +6,7 @@ function render(_ctx, _cache) {
|
|
|
8
6
|
"data-confirm": _ctx.confirmText || undefined,
|
|
9
7
|
"data-confirm-title": _ctx.confirmTitle || undefined,
|
|
10
8
|
class: _ctx.classes,
|
|
11
|
-
onClick: _cache[1] || (_cache[1] =
|
|
12
|
-
return _ctx.onClick && _ctx.onClick.apply(_ctx, arguments);
|
|
13
|
-
})
|
|
9
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
14
10
|
}, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 10, ["href", "data-confirm", "data-confirm-title"]);
|
|
15
11
|
}
|
|
16
12
|
|
|
@@ -19,34 +15,35 @@ import { classNames } from '../shared/utils';
|
|
|
19
15
|
import { colorClasses, colorProps } from '../shared/mixins';
|
|
20
16
|
export default {
|
|
21
17
|
name: 'f7-swipeout-button',
|
|
22
|
-
render
|
|
23
|
-
props:
|
|
18
|
+
render,
|
|
19
|
+
props: {
|
|
24
20
|
text: String,
|
|
25
21
|
confirmTitle: String,
|
|
26
22
|
confirmText: String,
|
|
27
23
|
overswipe: Boolean,
|
|
28
24
|
close: Boolean,
|
|
29
25
|
delete: Boolean,
|
|
30
|
-
href: String
|
|
31
|
-
|
|
26
|
+
href: String,
|
|
27
|
+
...colorProps
|
|
28
|
+
},
|
|
32
29
|
emits: ['click'],
|
|
33
|
-
setup: function setup(props, _ref) {
|
|
34
|
-
var emit = _ref.emit;
|
|
35
30
|
|
|
36
|
-
|
|
31
|
+
setup(props, {
|
|
32
|
+
emit
|
|
33
|
+
}) {
|
|
34
|
+
const onClick = e => {
|
|
37
35
|
emit('click', e);
|
|
38
36
|
};
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}, colorClasses(props));
|
|
46
|
-
});
|
|
38
|
+
const classes = computed(() => classNames({
|
|
39
|
+
'swipeout-overswipe': props.overswipe,
|
|
40
|
+
'swipeout-delete': props.delete,
|
|
41
|
+
'swipeout-close': props.close
|
|
42
|
+
}, colorClasses(props)));
|
|
47
43
|
return {
|
|
48
|
-
classes
|
|
49
|
-
onClick
|
|
44
|
+
classes,
|
|
45
|
+
onClick
|
|
50
46
|
};
|
|
51
47
|
}
|
|
48
|
+
|
|
52
49
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot } from "vue";
|
|
2
|
+
|
|
3
|
+
function render(_ctx, _cache) {
|
|
4
|
+
return _openBlock(), _createBlock("div", {
|
|
5
|
+
ref: "elRef",
|
|
6
|
+
class: _ctx.classes
|
|
7
|
+
}, [_ctx.tabContent ? (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.getComponent(_ctx.tabContent)), _mergeProps({
|
|
8
|
+
key: 0,
|
|
9
|
+
key: _ctx.tabContent.id
|
|
10
|
+
}, _ctx.getProps(_ctx.tabContent)), null, 16)) : _renderSlot(_ctx.$slots, "default", {
|
|
11
|
+
key: 1
|
|
12
|
+
})], 2);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
import { computed, ref, inject, onMounted, onBeforeUnmount, onUpdated, toRaw } from 'vue';
|
|
16
|
+
import { classNames, getComponentId } from '../shared/utils';
|
|
17
|
+
import { colorClasses, colorProps } from '../shared/mixins';
|
|
18
|
+
import { f7ready, f7routers, f7, f7events } from '../shared/f7';
|
|
19
|
+
import { useTab } from '../shared/use-tab';
|
|
20
|
+
export default {
|
|
21
|
+
name: 'f7-tab',
|
|
22
|
+
render,
|
|
23
|
+
props: {
|
|
24
|
+
tabActive: Boolean,
|
|
25
|
+
...colorProps
|
|
26
|
+
},
|
|
27
|
+
emits: ['tab:show', 'tab:hide'],
|
|
28
|
+
|
|
29
|
+
setup(props, {
|
|
30
|
+
emit
|
|
31
|
+
}) {
|
|
32
|
+
const elRef = ref(null);
|
|
33
|
+
const routerData = ref(null);
|
|
34
|
+
const route = inject('f7route', null);
|
|
35
|
+
const router = inject('f7route', null);
|
|
36
|
+
let initialTabContent = null;
|
|
37
|
+
|
|
38
|
+
if (!routerData.value && route && route.route && route.route.tab && route.route.tab.id === props.id) {
|
|
39
|
+
const {
|
|
40
|
+
component,
|
|
41
|
+
asyncComponent,
|
|
42
|
+
options: tabRouteOptions
|
|
43
|
+
} = route.route.tab;
|
|
44
|
+
|
|
45
|
+
if (component || asyncComponent) {
|
|
46
|
+
const parentProps = route.route.options && route.route.options.props;
|
|
47
|
+
initialTabContent = {
|
|
48
|
+
id: getComponentId(),
|
|
49
|
+
component: component || asyncComponent,
|
|
50
|
+
isAsync: !!asyncComponent,
|
|
51
|
+
props: { ...(parentProps || {}),
|
|
52
|
+
...(tabRouteOptions && tabRouteOptions.props || {}),
|
|
53
|
+
f7router: router,
|
|
54
|
+
f7route: route,
|
|
55
|
+
...route.params
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const tabContent = ref(initialTabContent || null);
|
|
62
|
+
|
|
63
|
+
const setTabContent = newContent => {
|
|
64
|
+
tabContent.value = newContent;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
if (f7 && !routerData.value) {
|
|
68
|
+
routerData.value = {
|
|
69
|
+
setTabContent
|
|
70
|
+
};
|
|
71
|
+
f7routers.tabs.push(routerData.value);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
onMounted(() => {
|
|
75
|
+
if (elRef.value && initialTabContent) {
|
|
76
|
+
elRef.value.f7RouterTabLoaded = true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
f7ready(() => {
|
|
80
|
+
if (!routerData.value) {
|
|
81
|
+
routerData.value = {
|
|
82
|
+
el: elRef.value,
|
|
83
|
+
setTabContent
|
|
84
|
+
};
|
|
85
|
+
f7routers.tabs.push(routerData.value);
|
|
86
|
+
} else {
|
|
87
|
+
routerData.value.el = elRef.value;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
onBeforeUnmount(() => {
|
|
92
|
+
if (!routerData.value) return;
|
|
93
|
+
f7routers.tabs.splice(f7routers.tabs.indexOf(routerData.value), 1);
|
|
94
|
+
routerData.value = null;
|
|
95
|
+
});
|
|
96
|
+
onUpdated(() => {
|
|
97
|
+
if (!routerData.value || !f7) return;
|
|
98
|
+
f7events.emit('tabRouterDidUpdate', routerData.value);
|
|
99
|
+
});
|
|
100
|
+
useTab(elRef, emit);
|
|
101
|
+
const classes = computed(() => classNames('tab', {
|
|
102
|
+
'tab-active': props.tabActive
|
|
103
|
+
}, colorClasses(props)));
|
|
104
|
+
|
|
105
|
+
const getComponent = content => toRaw(content.component);
|
|
106
|
+
|
|
107
|
+
const getProps = content => {
|
|
108
|
+
const {
|
|
109
|
+
component: tabComponent,
|
|
110
|
+
props: tabProps
|
|
111
|
+
} = content;
|
|
112
|
+
let keys = [];
|
|
113
|
+
const passProps = {};
|
|
114
|
+
if (tabComponent && tabComponent.props) keys = Object.keys(tabComponent.props);
|
|
115
|
+
keys.forEach(key => {
|
|
116
|
+
if (key in tabProps) passProps[key] = tabProps[key];
|
|
117
|
+
});
|
|
118
|
+
return passProps;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
return {
|
|
122
|
+
elRef,
|
|
123
|
+
classes,
|
|
124
|
+
tabContent,
|
|
125
|
+
getComponent,
|
|
126
|
+
getProps
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
};
|
|
File without changes
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import { renderSlot as _renderSlot, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
|
|
4
2
|
|
|
5
3
|
function render(_ctx, _cache) {
|
|
@@ -21,44 +19,41 @@ import { classNames } from '../shared/utils';
|
|
|
21
19
|
import { colorClasses, colorProps } from '../shared/mixins';
|
|
22
20
|
export default {
|
|
23
21
|
name: 'f7-tabs',
|
|
24
|
-
render
|
|
25
|
-
props:
|
|
22
|
+
render,
|
|
23
|
+
props: {
|
|
26
24
|
animated: Boolean,
|
|
27
25
|
swipeable: Boolean,
|
|
28
26
|
routable: Boolean,
|
|
29
27
|
swiperParams: {
|
|
30
28
|
type: Object,
|
|
31
29
|
default: undefined
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
},
|
|
31
|
+
...colorProps
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
setup(props) {
|
|
35
|
+
const elRef = ref(null);
|
|
36
|
+
onMounted(() => {
|
|
37
37
|
if (!props.swipeable || !props.swiperParams) return;
|
|
38
38
|
if (!elRef.value) return;
|
|
39
39
|
elRef.value.f7SwiperParams = props.swiperParams;
|
|
40
40
|
});
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
});
|
|
50
|
-
var tabsClasses = computed(function () {
|
|
51
|
-
return classNames({
|
|
52
|
-
tabs: true,
|
|
53
|
-
'tabs-routable': props.routable
|
|
54
|
-
});
|
|
55
|
-
});
|
|
41
|
+
const classes = computed(() => classNames(colorClasses(props)));
|
|
42
|
+
const wrapClasses = computed(() => classNames({
|
|
43
|
+
'tabs-animated-wrap': props.animated,
|
|
44
|
+
'tabs-swipeable-wrap': props.swipeable
|
|
45
|
+
}));
|
|
46
|
+
const tabsClasses = computed(() => classNames({
|
|
47
|
+
tabs: true,
|
|
48
|
+
'tabs-routable': props.routable
|
|
49
|
+
}));
|
|
56
50
|
return {
|
|
57
|
-
elRef
|
|
58
|
-
classes
|
|
59
|
-
wrapClasses
|
|
60
|
-
tabsClasses
|
|
61
|
-
classNames
|
|
51
|
+
elRef,
|
|
52
|
+
classes,
|
|
53
|
+
wrapClasses,
|
|
54
|
+
tabsClasses,
|
|
55
|
+
classNames
|
|
62
56
|
};
|
|
63
57
|
}
|
|
58
|
+
|
|
64
59
|
};
|
|
File without changes
|