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,26 +0,0 @@
|
|
|
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
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
4
|
-
|
|
5
|
-
function render(_ctx, _cache) {
|
|
6
|
-
return _openBlock(), _createBlock("div", {
|
|
7
|
-
class: _ctx.classes
|
|
8
|
-
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
import { computed } from 'vue';
|
|
12
|
-
import { classNames } from '../shared/utils';
|
|
13
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
14
|
-
export default {
|
|
15
|
-
name: 'f7-messages-title',
|
|
16
|
-
render: render,
|
|
17
|
-
props: _extends({}, colorProps),
|
|
18
|
-
setup: function setup(props) {
|
|
19
|
-
var classes = computed(function () {
|
|
20
|
-
return classNames('messages-title', colorClasses(props));
|
|
21
|
-
});
|
|
22
|
-
return {
|
|
23
|
-
classes: classes
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
4
|
-
|
|
5
|
-
function render(_ctx, _cache) {
|
|
6
|
-
return _openBlock(), _createBlock("div", {
|
|
7
|
-
class: _ctx.classes
|
|
8
|
-
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
import { computed } from 'vue';
|
|
12
|
-
import { classNames } from '../shared/utils';
|
|
13
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
14
|
-
export default {
|
|
15
|
-
name: 'f7-nav-right',
|
|
16
|
-
render: render,
|
|
17
|
-
props: _extends({
|
|
18
|
-
sliding: Boolean
|
|
19
|
-
}, colorProps),
|
|
20
|
-
setup: function setup(props) {
|
|
21
|
-
var classes = computed(function () {
|
|
22
|
-
return classNames('right', {
|
|
23
|
-
sliding: props.sliding
|
|
24
|
-
}, colorClasses(props));
|
|
25
|
-
});
|
|
26
|
-
return {
|
|
27
|
-
classes: classes
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
};
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, renderSlot as _renderSlot } from "vue";
|
|
2
|
-
|
|
3
|
-
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(), _createBlock("div", {
|
|
5
|
-
ref: "elRef",
|
|
6
|
-
class: _ctx.classes
|
|
7
|
-
}, [(_openBlock(), _createBlock("svg", {
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
width: _ctx.size,
|
|
10
|
-
height: _ctx.size,
|
|
11
|
-
viewBox: "-" + _ctx.size / 3 + " -" + _ctx.size / 3 + " " + _ctx.size * 2 / 3 + " " + _ctx.size * 2 / 3,
|
|
12
|
-
style: {
|
|
13
|
-
transform: 'rotate(-90deg)'
|
|
14
|
-
}
|
|
15
|
-
}, [(_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.paths, function (path, index) {
|
|
16
|
-
return _openBlock(), _createBlock("path", {
|
|
17
|
-
key: path.label || index,
|
|
18
|
-
d: path.points,
|
|
19
|
-
fill: path.color,
|
|
20
|
-
"data-index": index,
|
|
21
|
-
class: _ctx.classNames({
|
|
22
|
-
'pie-chart-hidden': _ctx.currentIndex !== null && _ctx.currentIndex !== index
|
|
23
|
-
}),
|
|
24
|
-
onClick: function onClick($event) {
|
|
25
|
-
return _ctx.setCurrentIndex(index);
|
|
26
|
-
},
|
|
27
|
-
onMouseenter: function onMouseenter($event) {
|
|
28
|
-
return _ctx.setCurrentIndex(index);
|
|
29
|
-
},
|
|
30
|
-
onMouseleave: _cache[1] || (_cache[1] = function ($event) {
|
|
31
|
-
return _ctx.setCurrentIndex(null);
|
|
32
|
-
})
|
|
33
|
-
}, null, 42, ["d", "fill", "data-index", "onClick", "onMouseenter"]);
|
|
34
|
-
}), 128))], 12, ["width", "height", "viewBox"])), _renderSlot(_ctx.$slots, "default")], 2);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
import { computed, onBeforeUnmount, ref, watch } from 'vue';
|
|
38
|
-
import { classNames } from '../shared/utils';
|
|
39
|
-
import { f7 } from '../shared/f7';
|
|
40
|
-
export default {
|
|
41
|
-
name: 'f7-pie-chart',
|
|
42
|
-
render: render,
|
|
43
|
-
props: {
|
|
44
|
-
size: {
|
|
45
|
-
type: Number,
|
|
46
|
-
default: 320
|
|
47
|
-
},
|
|
48
|
-
tooltip: Boolean,
|
|
49
|
-
datasets: {
|
|
50
|
-
type: Array,
|
|
51
|
-
default: function _default() {
|
|
52
|
-
return [];
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
formatTooltip: Function
|
|
56
|
-
},
|
|
57
|
-
emits: ['select'],
|
|
58
|
-
setup: function setup(props, _ref) {
|
|
59
|
-
var emit = _ref.emit;
|
|
60
|
-
var elRef = ref(null);
|
|
61
|
-
var f7Tooltip = null;
|
|
62
|
-
var currentIndex = ref(null);
|
|
63
|
-
|
|
64
|
-
var setCurrentIndex = function setCurrentIndex(index) {
|
|
65
|
-
currentIndex.value = index;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
var summValue = computed(function () {
|
|
69
|
-
var summ = 0;
|
|
70
|
-
props.datasets.map(function (d) {
|
|
71
|
-
return d.value || 0;
|
|
72
|
-
}).forEach(function (value) {
|
|
73
|
-
summ += value;
|
|
74
|
-
});
|
|
75
|
-
return summ;
|
|
76
|
-
});
|
|
77
|
-
var paths = computed(function () {
|
|
78
|
-
var p = [];
|
|
79
|
-
var cumulativePercentage = 0;
|
|
80
|
-
|
|
81
|
-
function getCoordinatesForPercentage(percentage) {
|
|
82
|
-
var x = Math.cos(2 * Math.PI * percentage) * (props.size / 3);
|
|
83
|
-
var y = Math.sin(2 * Math.PI * percentage) * (props.size / 3);
|
|
84
|
-
return [x, y];
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
props.datasets.forEach(function (_ref2) {
|
|
88
|
-
var value = _ref2.value,
|
|
89
|
-
label = _ref2.label,
|
|
90
|
-
color = _ref2.color;
|
|
91
|
-
var percentage = value / summValue.value;
|
|
92
|
-
|
|
93
|
-
var _getCoordinatesForPer = getCoordinatesForPercentage(cumulativePercentage),
|
|
94
|
-
startX = _getCoordinatesForPer[0],
|
|
95
|
-
startY = _getCoordinatesForPer[1];
|
|
96
|
-
|
|
97
|
-
cumulativePercentage += percentage;
|
|
98
|
-
|
|
99
|
-
var _getCoordinatesForPer2 = getCoordinatesForPercentage(cumulativePercentage),
|
|
100
|
-
endX = _getCoordinatesForPer2[0],
|
|
101
|
-
endY = _getCoordinatesForPer2[1];
|
|
102
|
-
|
|
103
|
-
var largeArcFlag = percentage > 0.5 ? 1 : 0;
|
|
104
|
-
var points = ["M " + startX + " " + startY, // Move
|
|
105
|
-
"A " + props.size / 3 + " " + props.size / 3 + " 0 " + largeArcFlag + " 1 " + endX + " " + endY, // Arc
|
|
106
|
-
'L 0 0' // Line
|
|
107
|
-
].join(' ');
|
|
108
|
-
p.push({
|
|
109
|
-
points: points,
|
|
110
|
-
label: label,
|
|
111
|
-
color: color
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
return p;
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
var formatTooltipText = function formatTooltipText() {
|
|
118
|
-
if (currentIndex.value === null) return '';
|
|
119
|
-
var _props$datasets$curre = props.datasets[currentIndex.value],
|
|
120
|
-
value = _props$datasets$curre.value,
|
|
121
|
-
label = _props$datasets$curre.label,
|
|
122
|
-
color = _props$datasets$curre.color;
|
|
123
|
-
var percentage = value / summValue.value * 100;
|
|
124
|
-
|
|
125
|
-
var round = function round(v) {
|
|
126
|
-
if (parseInt(v, 10) === v) return v;
|
|
127
|
-
return Math.round(v * 100) / 100;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
if (props.formatTooltip) {
|
|
131
|
-
return props.formatTooltip({
|
|
132
|
-
index: currentIndex.value,
|
|
133
|
-
value: value,
|
|
134
|
-
label: label,
|
|
135
|
-
color: color,
|
|
136
|
-
percentage: percentage
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
var tooltipText = "" + (label ? label + ": " : '') + round(value) + " (" + round(percentage) + "%)";
|
|
141
|
-
return "\n <div class=\"pie-chart-tooltip-label\">\n <span class=\"pie-chart-tooltip-color\" style=\"background-color: " + color + ";\"></span> " + tooltipText + "\n </div>\n ";
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
var setTooltip = function setTooltip() {
|
|
145
|
-
var index = currentIndex.value;
|
|
146
|
-
if (index === null && !f7Tooltip) return;
|
|
147
|
-
if (!props.tooltip || !elRef.value || !f7) return;
|
|
148
|
-
|
|
149
|
-
if (index !== null && !f7Tooltip) {
|
|
150
|
-
f7Tooltip = f7.tooltip.create({
|
|
151
|
-
trigger: 'manual',
|
|
152
|
-
containerEl: elRef.value,
|
|
153
|
-
targetEl: elRef.value.querySelector("path[data-index=\"" + index + "\"]"),
|
|
154
|
-
text: formatTooltipText(),
|
|
155
|
-
cssClass: 'pie-chart-tooltip'
|
|
156
|
-
});
|
|
157
|
-
f7Tooltip.show();
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (!f7Tooltip) return;
|
|
162
|
-
|
|
163
|
-
if (index !== null) {
|
|
164
|
-
f7Tooltip.setText(formatTooltipText());
|
|
165
|
-
f7Tooltip.setTargetEl(elRef.value.querySelector("path[data-index=\"" + index + "\"]"));
|
|
166
|
-
f7Tooltip.show();
|
|
167
|
-
} else {
|
|
168
|
-
f7Tooltip.hide();
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
watch(function () {
|
|
173
|
-
return currentIndex.value;
|
|
174
|
-
}, function () {
|
|
175
|
-
emit('select', currentIndex.value, props.datasets[currentIndex.value]);
|
|
176
|
-
setTooltip();
|
|
177
|
-
});
|
|
178
|
-
onBeforeUnmount(function () {
|
|
179
|
-
if (f7Tooltip && f7Tooltip.destroy) {
|
|
180
|
-
f7Tooltip.destroy();
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
f7Tooltip = null;
|
|
184
|
-
});
|
|
185
|
-
var classes = computed(function () {
|
|
186
|
-
return classNames('pie-chart');
|
|
187
|
-
});
|
|
188
|
-
return {
|
|
189
|
-
elRef: elRef,
|
|
190
|
-
currentIndex: currentIndex,
|
|
191
|
-
classes: classes,
|
|
192
|
-
paths: paths,
|
|
193
|
-
classNames: classNames,
|
|
194
|
-
setCurrentIndex: setCurrentIndex
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
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
|
-
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
4
|
-
|
|
5
|
-
function render(_ctx, _cache) {
|
|
6
|
-
return _openBlock(), _createBlock("span", {
|
|
7
|
-
ref: "elRef",
|
|
8
|
-
class: _ctx.classes,
|
|
9
|
-
"data-progress": _ctx.progress
|
|
10
|
-
}, [_createVNode("span", {
|
|
11
|
-
style: _ctx.transformStyle
|
|
12
|
-
}, null, 4)], 10, ["data-progress"]);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
import { computed, ref } from 'vue';
|
|
16
|
-
import { classNames } from '../shared/utils';
|
|
17
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
18
|
-
import { f7 } from '../shared/f7';
|
|
19
|
-
export default {
|
|
20
|
-
name: 'f7-progressbar',
|
|
21
|
-
render: render,
|
|
22
|
-
props: _extends({
|
|
23
|
-
progress: Number,
|
|
24
|
-
infinite: Boolean
|
|
25
|
-
}, colorProps),
|
|
26
|
-
setup: function setup(props) {
|
|
27
|
-
var elRef = ref(null);
|
|
28
|
-
|
|
29
|
-
var set = function set(newProgress, speed) {
|
|
30
|
-
if (!f7) return;
|
|
31
|
-
f7.progressbar.set(elRef.value, newProgress, speed);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
var transformStyle = computed(function () {
|
|
35
|
-
return {
|
|
36
|
-
transform: props.progress ? "translate3d(" + (-100 + props.progress) + "%, 0, 0)" : '',
|
|
37
|
-
WebkitTransform: props.progress ? "translate3d(" + (-100 + props.progress) + "%, 0, 0)" : ''
|
|
38
|
-
};
|
|
39
|
-
});
|
|
40
|
-
var classes = computed(function () {
|
|
41
|
-
return classNames('progressbar', {
|
|
42
|
-
'progressbar-infinite': props.infinite
|
|
43
|
-
}, colorClasses(props));
|
|
44
|
-
});
|
|
45
|
-
return {
|
|
46
|
-
classes: classes,
|
|
47
|
-
set: set,
|
|
48
|
-
transformStyle: transformStyle,
|
|
49
|
-
elRef: elRef
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
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
|
-
import { ref, onMounted, onBeforeUnmount, onUpdated, toRaw, h } from 'vue';
|
|
4
|
-
import { f7events, f7routers, f7 } from '../shared/f7';
|
|
5
|
-
export default {
|
|
6
|
-
name: 'f7-routable-modals',
|
|
7
|
-
setup: function setup() {
|
|
8
|
-
var elRef = ref(null);
|
|
9
|
-
var modals = ref([]);
|
|
10
|
-
var routerData = ref(null);
|
|
11
|
-
onMounted(function () {
|
|
12
|
-
routerData.value = {
|
|
13
|
-
modals: modals,
|
|
14
|
-
el: elRef.value,
|
|
15
|
-
setModals: function setModals(newModals) {
|
|
16
|
-
newModals.forEach(function (modal) {
|
|
17
|
-
// eslint-disable-next-line
|
|
18
|
-
modal.component = toRaw(modal.component);
|
|
19
|
-
});
|
|
20
|
-
modals.value = [].concat(newModals);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
f7routers.modals = routerData.value;
|
|
24
|
-
});
|
|
25
|
-
onUpdated(function () {
|
|
26
|
-
if (!routerData.value || !f7) return;
|
|
27
|
-
f7events.emit('modalsRouterDidUpdate', routerData.value);
|
|
28
|
-
});
|
|
29
|
-
onBeforeUnmount(function () {
|
|
30
|
-
if (!routerData.value) return;
|
|
31
|
-
f7routers.modals = null;
|
|
32
|
-
routerData.value = null;
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
var getComponent = function getComponent(modal) {
|
|
36
|
-
return toRaw(modal.component);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var getProps = function getProps(modal) {
|
|
40
|
-
var modalComponent = modal.component,
|
|
41
|
-
modalProps = modal.props;
|
|
42
|
-
var keys = [];
|
|
43
|
-
var passProps = {};
|
|
44
|
-
if (modalComponent && modalComponent.props) keys = Object.keys(modalComponent.props);
|
|
45
|
-
keys.forEach(function (key) {
|
|
46
|
-
if (key in modalProps) passProps[key] = modalProps[key];
|
|
47
|
-
});
|
|
48
|
-
return passProps;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
return function () {
|
|
52
|
-
return h('div', {
|
|
53
|
-
ref: elRef,
|
|
54
|
-
class: 'framework7-modals'
|
|
55
|
-
}, [].concat(modals.value.map(function (modal) {
|
|
56
|
-
return h(getComponent(modal), _extends({
|
|
57
|
-
key: modal.id
|
|
58
|
-
}, getProps(modal)));
|
|
59
|
-
})));
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
};
|
package/esm/components/row.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
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
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx } from "vue";
|
|
4
|
-
var _hoisted_1 = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "resize-handler"
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
function render(_ctx, _cache) {
|
|
10
|
-
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
|
|
11
|
-
ref: "elRef",
|
|
12
|
-
class: _ctx.classes
|
|
13
|
-
}, {
|
|
14
|
-
default: _withCtx(function () {
|
|
15
|
-
return [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createBlock("span", _hoisted_1)) : _createCommentVNode("", true)];
|
|
16
|
-
}),
|
|
17
|
-
_: 3
|
|
18
|
-
}, 8, ["class"]);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
import { ref, computed, onBeforeUnmount, onMounted } from 'vue';
|
|
22
|
-
import { classNames } from '../shared/utils';
|
|
23
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
24
|
-
import { f7ready, f7 } from '../shared/f7';
|
|
25
|
-
export default {
|
|
26
|
-
name: 'f7-row',
|
|
27
|
-
render: render,
|
|
28
|
-
props: _extends({
|
|
29
|
-
noGap: Boolean,
|
|
30
|
-
tag: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: 'div'
|
|
33
|
-
},
|
|
34
|
-
resizable: Boolean,
|
|
35
|
-
resizableFixed: Boolean,
|
|
36
|
-
resizableAbsolute: Boolean,
|
|
37
|
-
resizableHandler: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: true
|
|
40
|
-
}
|
|
41
|
-
}, colorProps),
|
|
42
|
-
emits: ['grid:resize'],
|
|
43
|
-
setup: function setup(props, _ref) {
|
|
44
|
-
var emit = _ref.emit;
|
|
45
|
-
var elRef = ref(null);
|
|
46
|
-
|
|
47
|
-
var onResize = function onResize(el) {
|
|
48
|
-
if (el === elRef.value) {
|
|
49
|
-
emit('grid:resize');
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
onMounted(function () {
|
|
54
|
-
f7ready(function () {
|
|
55
|
-
f7.on('gridResize', onResize);
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
onBeforeUnmount(function () {
|
|
59
|
-
f7.off('gridResize', onResize);
|
|
60
|
-
});
|
|
61
|
-
var classes = computed(function () {
|
|
62
|
-
return classNames('row', {
|
|
63
|
-
'no-gap': props.noGap,
|
|
64
|
-
resizable: props.resizable,
|
|
65
|
-
'resizable-fixed': props.resizableFixed,
|
|
66
|
-
'resizable-absolute': props.resizableAbsolute
|
|
67
|
-
}, colorClasses(props));
|
|
68
|
-
});
|
|
69
|
-
return {
|
|
70
|
-
classes: classes,
|
|
71
|
-
elRef: elRef
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
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
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx } from "vue";
|
|
4
|
-
var _hoisted_1 = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "segmented-highlight"
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
function render(_ctx, _cache) {
|
|
10
|
-
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
|
|
11
|
-
class: _ctx.classes
|
|
12
|
-
}, {
|
|
13
|
-
default: _withCtx(function () {
|
|
14
|
-
return [_renderSlot(_ctx.$slots, "default"), _ctx.strong || _ctx.strongIos || _ctx.strongMd || _ctx.strongAurora ? (_openBlock(), _createBlock("span", _hoisted_1)) : _createCommentVNode("", true)];
|
|
15
|
-
}),
|
|
16
|
-
_: 3
|
|
17
|
-
}, 8, ["class"]);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
import { computed } from 'vue';
|
|
21
|
-
import { classNames } from '../shared/utils';
|
|
22
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
23
|
-
export default {
|
|
24
|
-
name: 'f7-segmented',
|
|
25
|
-
render: render,
|
|
26
|
-
props: _extends({
|
|
27
|
-
raised: Boolean,
|
|
28
|
-
raisedIos: Boolean,
|
|
29
|
-
raisedMd: Boolean,
|
|
30
|
-
raisedAurora: Boolean,
|
|
31
|
-
round: Boolean,
|
|
32
|
-
roundIos: Boolean,
|
|
33
|
-
roundMd: Boolean,
|
|
34
|
-
roundAurora: Boolean,
|
|
35
|
-
strong: Boolean,
|
|
36
|
-
strongIos: Boolean,
|
|
37
|
-
strongMd: Boolean,
|
|
38
|
-
strongAurora: Boolean,
|
|
39
|
-
tag: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: 'div'
|
|
42
|
-
}
|
|
43
|
-
}, colorProps),
|
|
44
|
-
setup: function setup(props) {
|
|
45
|
-
var classes = computed(function () {
|
|
46
|
-
return classNames({
|
|
47
|
-
segmented: true,
|
|
48
|
-
'segmented-raised': props.raised,
|
|
49
|
-
'segmented-raised-ios': props.raisedIos,
|
|
50
|
-
'segmented-raised-aurora': props.raisedAurora,
|
|
51
|
-
'segmented-raised-md': props.raisedMd,
|
|
52
|
-
'segmented-round': props.round,
|
|
53
|
-
'segmented-round-ios': props.roundIos,
|
|
54
|
-
'segmented-round-aurora': props.roundAurora,
|
|
55
|
-
'segmented-round-md': props.roundMd,
|
|
56
|
-
'segmented-strong': props.strong,
|
|
57
|
-
'segmented-strong-ios': props.strongIos,
|
|
58
|
-
'segmented-strong-md': props.strongMd,
|
|
59
|
-
'segmented-strong-aurora': props.strongAurora
|
|
60
|
-
}, colorClasses(props));
|
|
61
|
-
});
|
|
62
|
-
return {
|
|
63
|
-
classes: classes
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
};
|
package/esm/components/tab.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
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
|
-
import { resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot } from "vue";
|
|
4
|
-
|
|
5
|
-
function render(_ctx, _cache) {
|
|
6
|
-
var _mergeProps2;
|
|
7
|
-
|
|
8
|
-
return _openBlock(), _createBlock("div", {
|
|
9
|
-
ref: "elRef",
|
|
10
|
-
class: _ctx.classes
|
|
11
|
-
}, [_ctx.tabContent ? (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.getComponent(_ctx.tabContent)), _mergeProps((_mergeProps2 = {
|
|
12
|
-
key: 0
|
|
13
|
-
}, _mergeProps2["key"] = _ctx.tabContent.id, _mergeProps2), _ctx.getProps(_ctx.tabContent)), null, 16)) : _renderSlot(_ctx.$slots, "default", {
|
|
14
|
-
key: 1
|
|
15
|
-
})], 2);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
import { computed, ref, inject, onMounted, onBeforeUnmount, onUpdated, toRaw } from 'vue';
|
|
19
|
-
import { classNames, getComponentId } from '../shared/utils';
|
|
20
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
21
|
-
import { f7ready, f7routers, f7, f7events } from '../shared/f7';
|
|
22
|
-
import { useTab } from '../shared/use-tab';
|
|
23
|
-
export default {
|
|
24
|
-
name: 'f7-tab',
|
|
25
|
-
render: render,
|
|
26
|
-
props: _extends({
|
|
27
|
-
tabActive: Boolean
|
|
28
|
-
}, colorProps),
|
|
29
|
-
emits: ['tab:show', 'tab:hide'],
|
|
30
|
-
setup: function setup(props, _ref) {
|
|
31
|
-
var emit = _ref.emit;
|
|
32
|
-
var elRef = ref(null);
|
|
33
|
-
var routerData = ref(null);
|
|
34
|
-
var route = inject('f7route', null);
|
|
35
|
-
var router = inject('f7route', null);
|
|
36
|
-
var initialTabContent = null;
|
|
37
|
-
|
|
38
|
-
if (!routerData.value && route && route.route && route.route.tab && route.route.tab.id === props.id) {
|
|
39
|
-
var _route$route$tab = route.route.tab,
|
|
40
|
-
component = _route$route$tab.component,
|
|
41
|
-
asyncComponent = _route$route$tab.asyncComponent,
|
|
42
|
-
tabRouteOptions = _route$route$tab.options;
|
|
43
|
-
|
|
44
|
-
if (component || asyncComponent) {
|
|
45
|
-
var parentProps = route.route.options && route.route.options.props;
|
|
46
|
-
initialTabContent = {
|
|
47
|
-
id: getComponentId(),
|
|
48
|
-
component: component || asyncComponent,
|
|
49
|
-
isAsync: !!asyncComponent,
|
|
50
|
-
props: _extends({}, parentProps || {}, tabRouteOptions && tabRouteOptions.props || {}, {
|
|
51
|
-
f7router: router,
|
|
52
|
-
f7route: route
|
|
53
|
-
}, route.params)
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
var tabContent = ref(initialTabContent || null);
|
|
59
|
-
|
|
60
|
-
var setTabContent = function setTabContent(newContent) {
|
|
61
|
-
tabContent.value = newContent;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
if (f7 && !routerData.value) {
|
|
65
|
-
routerData.value = {
|
|
66
|
-
setTabContent: setTabContent
|
|
67
|
-
};
|
|
68
|
-
f7routers.tabs.push(routerData.value);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
onMounted(function () {
|
|
72
|
-
if (elRef.value && initialTabContent) {
|
|
73
|
-
elRef.value.f7RouterTabLoaded = true;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
f7ready(function () {
|
|
77
|
-
if (!routerData.value) {
|
|
78
|
-
routerData.value = {
|
|
79
|
-
el: elRef.value,
|
|
80
|
-
setTabContent: setTabContent
|
|
81
|
-
};
|
|
82
|
-
f7routers.tabs.push(routerData.value);
|
|
83
|
-
} else {
|
|
84
|
-
routerData.value.el = elRef.value;
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
onBeforeUnmount(function () {
|
|
89
|
-
if (!routerData.value) return;
|
|
90
|
-
f7routers.tabs.splice(f7routers.tabs.indexOf(routerData.value), 1);
|
|
91
|
-
routerData.value = null;
|
|
92
|
-
});
|
|
93
|
-
onUpdated(function () {
|
|
94
|
-
if (!routerData.value || !f7) return;
|
|
95
|
-
f7events.emit('tabRouterDidUpdate', routerData.value);
|
|
96
|
-
});
|
|
97
|
-
useTab(elRef, emit);
|
|
98
|
-
var classes = computed(function () {
|
|
99
|
-
return classNames('tab', {
|
|
100
|
-
'tab-active': props.tabActive
|
|
101
|
-
}, colorClasses(props));
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
var getComponent = function getComponent(content) {
|
|
105
|
-
return toRaw(content.component);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
var getProps = function getProps(content) {
|
|
109
|
-
var tabComponent = content.component,
|
|
110
|
-
tabProps = content.props;
|
|
111
|
-
var keys = [];
|
|
112
|
-
var passProps = {};
|
|
113
|
-
if (tabComponent && tabComponent.props) keys = Object.keys(tabComponent.props);
|
|
114
|
-
keys.forEach(function (key) {
|
|
115
|
-
if (key in tabProps) passProps[key] = tabProps[key];
|
|
116
|
-
});
|
|
117
|
-
return passProps;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
return {
|
|
121
|
-
elRef: elRef,
|
|
122
|
-
classes: classes,
|
|
123
|
-
tabContent: tabContent,
|
|
124
|
-
getComponent: getComponent,
|
|
125
|
-
getProps: getProps
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
};
|