framework7-vue 6.3.15 → 7.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{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 +30 -34
- 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/components/actions-button.js +62 -0
- 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 +48 -48
- 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/components/appbar.js +44 -0
- package/components/{area-chart/area-chart.d.ts → area-chart.d.ts} +0 -0
- package/components/area-chart.js +394 -0
- 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/components/block-title.js +38 -0
- package/components/{block/block.d.ts → block.d.ts} +0 -0
- package/components/block.js +87 -0
- package/components/breadcrumbs-collapsed.d.ts +19 -0
- package/components/breadcrumbs-collapsed.js +26 -0
- package/components/breadcrumbs-item.d.ts +22 -0
- package/components/breadcrumbs-item.js +28 -0
- package/components/breadcrumbs-separator.d.ts +19 -0
- package/components/breadcrumbs-separator.js +24 -0
- package/components/breadcrumbs.d.ts +19 -0
- package/components/breadcrumbs.js +24 -0
- package/components/{button/button.d.ts → button.d.ts} +0 -0
- package/components/button.js +198 -0
- 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 +53 -67
- package/components/{checkbox/checkbox.d.ts → checkbox.d.ts} +0 -0
- package/{esm/components → components}/checkbox.js +25 -29
- package/components/{chip/chip.d.ts → chip.d.ts} +0 -0
- package/{esm/components → components}/chip.js +37 -42
- 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/components/fab-button.js +54 -0
- 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 +32 -28
- 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 +44 -39
- package/components/{input/input.d.ts → input.d.ts} +0 -0
- package/{esm/components → components}/input.js +102 -116
- package/components/{link/link.d.ts → link.d.ts} +0 -0
- package/{esm/components → components}/link.js +63 -58
- package/components/{list-button/list-button.d.ts → list-button.d.ts} +0 -0
- package/{esm/components → components}/list-button.js +36 -29
- 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 +28 -29
- package/components/{list-input/list-input.d.ts → list-input.d.ts} +0 -0
- package/{esm/components → components}/list-input.js +87 -103
- 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 +164 -187
- package/components/{list/list.d.ts → list.d.ts} +0 -0
- package/{esm/components → components}/list.js +90 -88
- 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 +33 -35
- 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 +33 -33
- package/components/{menu-dropdown/menu-dropdown.d.ts → menu-dropdown.d.ts} +0 -0
- package/{esm/components → components}/menu-dropdown.js +14 -13
- package/components/{menu-item/menu-item.d.ts → menu-item.d.ts} +0 -0
- package/components/menu-item.js +132 -0
- 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/components/messagebar-attachment.js +52 -0
- 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 +68 -69
- 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 +34 -34
- package/components/{nav-left/nav-left.d.ts → nav-left.d.ts} +0 -0
- package/{esm/components → components}/nav-left.js +25 -26
- 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/components/nav-title-large.js +28 -0
- package/components/{nav-title/nav-title.d.ts → nav-title.d.ts} +0 -0
- package/{esm/components → components}/nav-title.js +15 -16
- package/components/{navbar/navbar.d.ts → navbar.d.ts} +0 -0
- package/{esm/components → components}/navbar.js +93 -109
- package/components/{page-content/page-content.d.ts → page-content.d.ts} +0 -0
- package/{esm/components → components}/page-content.js +46 -46
- package/components/{page/page.d.ts → page.d.ts} +0 -0
- package/{esm/components → components}/page.js +96 -98
- package/components/{panel/panel.d.ts → panel.d.ts} +0 -0
- package/{esm/components → components}/panel.js +49 -55
- package/components/{photo-browser/photo-browser.d.ts → photo-browser.d.ts} +0 -0
- package/{esm/components → components}/photo-browser.js +39 -33
- 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 +44 -44
- package/components/{popup/popup.d.ts → popup.d.ts} +0 -0
- package/{esm/components → components}/popup.js +50 -50
- package/components/{preloader/preloader.d.ts → preloader.d.ts} +0 -0
- package/components/preloader.js +81 -0
- 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/components/radio.js +62 -0
- package/components/{range/range.d.ts → range.d.ts} +0 -0
- package/{esm/components → components}/range.js +36 -36
- 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 +83 -95
- 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 +55 -57
- package/components/{skeleton-avatar/skeleton-avatar.d.ts → skeleton-avatar.d.ts} +1 -0
- package/components/skeleton-avatar.js +3 -0
- package/components/{skeleton-block/skeleton-block.d.ts → skeleton-block.d.ts} +1 -0
- package/components/skeleton-block.js +3 -0
- package/components/{skeleton-image/skeleton-image.d.ts → skeleton-image.d.ts} +1 -0
- package/components/skeleton-image.js +3 -0
- package/components/{skeleton-text/skeleton-text.d.ts → skeleton-text.d.ts} +1 -0
- package/components/skeleton-text.js +3 -0
- package/components/{stepper/stepper.d.ts → stepper.d.ts} +0 -0
- package/{esm/components → components}/stepper.js +68 -77
- package/components/{subnavbar/subnavbar.d.ts → subnavbar.d.ts} +0 -0
- package/{esm/components → components}/subnavbar.js +16 -17
- package/components/{swipeout-actions/swipeout-actions.d.ts → swipeout-actions.d.ts} +0 -0
- package/components/swipeout-actions.js +39 -0
- package/components/{swipeout-button/swipeout-button.d.ts → swipeout-button.d.ts} +0 -0
- package/components/swipeout-button.js +49 -0
- 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/components/tabs.js +59 -0
- package/components/{text-editor/text-editor.d.ts → text-editor.d.ts} +0 -0
- package/{esm/components → components}/text-editor.js +35 -37
- package/components/{toggle/toggle.d.ts → toggle.d.ts} +0 -0
- package/{esm/components → components}/toggle.js +32 -35
- package/components/{toolbar/toolbar.d.ts → toolbar.d.ts} +0 -0
- package/{esm/components → components}/toolbar.js +50 -48
- 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/components/use-icon.js +31 -0
- package/components/{view/view.d.ts → view.d.ts} +0 -0
- package/{esm/components → components}/view.js +86 -86
- package/components/{views/views.d.ts → views.d.ts} +0 -0
- package/components/views.js +29 -0
- package/framework7-vue-bundle.js +223 -0
- package/framework7-vue-web-types.json +1 -1
- package/framework7-vue.d.ts +5 -1
- package/framework7-vue.js +119 -0
- package/package.json +7 -4
- package/{esm/shared → shared}/components-router.js +78 -68
- package/{esm/shared → shared}/f7.js +15 -23
- package/shared/get-router-initial-component.js +39 -0
- package/{esm/shared → shared}/mixins.js +96 -82
- package/shared/modal-state-classes.js +9 -0
- package/{esm/shared → shared}/plugin.js +13 -14
- 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 +8 -8
- package/shared/use-store.js +28 -0
- package/{esm/shared → shared}/use-tab.js +7 -7
- package/shared/use-theme.js +13 -0
- package/{esm/shared → shared}/use-tooltip.js +11 -11
- 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 -230
- 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 -219
- 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-button.js +0 -66
- 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/appbar.js +0 -47
- package/esm/components/area-chart.js +0 -406
- 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/block-title.js +0 -35
- package/esm/components/block.js +0 -83
- package/esm/components/button.js +0 -196
- 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-button.js +0 -56
- 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-item.js +0 -133
- package/esm/components/menu.js +0 -29
- package/esm/components/message.js +0 -200
- package/esm/components/messagebar-attachment.js +0 -57
- 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/nav-title-large.js +0 -29
- package/esm/components/pie-chart.js +0 -197
- package/esm/components/preloader.js +0 -82
- package/esm/components/progressbar.js +0 -52
- package/esm/components/radio.js +0 -64
- 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/skeleton-avatar.js +0 -2
- package/esm/components/skeleton-block.js +0 -2
- package/esm/components/skeleton-image.js +0 -2
- package/esm/components/skeleton-text.js +0 -2
- package/esm/components/swipeout-actions.js +0 -40
- package/esm/components/swipeout-button.js +0 -52
- package/esm/components/tab.js +0 -128
- package/esm/components/tabs.js +0 -64
- package/esm/components/treeview-item.js +0 -161
- package/esm/components/treeview.js +0 -26
- package/esm/components/use-icon.js +0 -35
- package/esm/components/views.js +0 -30
- package/esm/framework7-vue-bundle.js +0 -215
- package/esm/framework7-vue.js +0 -115
- 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
- package/esm/shared/use-theme.js +0 -13
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
function render(_ctx, _cache) {
|
|
4
|
+
return _openBlock(), _createBlock("div", {
|
|
5
|
+
ref: "elRef",
|
|
6
|
+
class: {
|
|
7
|
+
'breadcrumbs-item': true,
|
|
8
|
+
'breadcrumbs-item-active': _ctx.active
|
|
9
|
+
}
|
|
10
|
+
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
import { ref } from 'vue';
|
|
14
|
+
export default {
|
|
15
|
+
name: 'f7-breadcrumbs-item',
|
|
16
|
+
render,
|
|
17
|
+
props: {
|
|
18
|
+
active: Boolean
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
setup() {
|
|
22
|
+
const elRef = ref(null);
|
|
23
|
+
return {
|
|
24
|
+
elRef
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const BreadcrumbsSeparator: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
},
|
|
9
|
+
() => JSX.Element,
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
ComponentOptionsMixin,
|
|
14
|
+
ComponentOptionsMixin,
|
|
15
|
+
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export default BreadcrumbsSeparator;
|
|
19
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
ref: "elRef",
|
|
4
|
+
class: "breadcrumbs-separator"
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
function render(_ctx, _cache) {
|
|
8
|
+
return _openBlock(), _createBlock("div", _hoisted_1, null, 512);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
import { ref } from 'vue';
|
|
12
|
+
export default {
|
|
13
|
+
name: 'f7-breadcrumbs-separator',
|
|
14
|
+
render,
|
|
15
|
+
props: {},
|
|
16
|
+
|
|
17
|
+
setup() {
|
|
18
|
+
const elRef = ref(null);
|
|
19
|
+
return {
|
|
20
|
+
elRef
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const Breadcrumbs: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
},
|
|
9
|
+
() => JSX.Element,
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
ComponentOptionsMixin,
|
|
14
|
+
ComponentOptionsMixin,
|
|
15
|
+
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export default Breadcrumbs;
|
|
19
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
ref: "elRef",
|
|
4
|
+
class: "breadcrumbs"
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
function render(_ctx, _cache) {
|
|
8
|
+
return _openBlock(), _createBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")], 512);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
import { ref } from 'vue';
|
|
12
|
+
export default {
|
|
13
|
+
name: 'f7-breadcrumbs',
|
|
14
|
+
render,
|
|
15
|
+
props: {},
|
|
16
|
+
|
|
17
|
+
setup() {
|
|
18
|
+
const elRef = ref(null);
|
|
19
|
+
return {
|
|
20
|
+
elRef
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, renderSlot as _renderSlot, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
key: 1
|
|
4
|
+
};
|
|
5
|
+
const _hoisted_2 = {
|
|
6
|
+
key: 1
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
const _component_f7_preloader = _resolveComponent("f7-preloader");
|
|
11
|
+
|
|
12
|
+
const _component_f7_use_icon = _resolveComponent("f7-use-icon");
|
|
13
|
+
|
|
14
|
+
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), _mergeProps({
|
|
15
|
+
ref: "elRef",
|
|
16
|
+
class: _ctx.classesComputed
|
|
17
|
+
}, _ctx.attrs), {
|
|
18
|
+
default: _withCtx(() => [_ctx.preloader ? (_openBlock(), _createBlock(_Fragment, {
|
|
19
|
+
key: 0
|
|
20
|
+
}, [_createVNode(_component_f7_preloader, {
|
|
21
|
+
size: _ctx.preloaderSize,
|
|
22
|
+
color: _ctx.preloaderColor
|
|
23
|
+
}, null, 8, ["size", "color"]), _createVNode("span", null, [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
|
|
24
|
+
key: 0,
|
|
25
|
+
icon: _ctx.icon
|
|
26
|
+
}, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createBlock("span", _hoisted_1, _toDisplayString(_ctx.text), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")])], 64)) : (_openBlock(), _createBlock(_Fragment, {
|
|
27
|
+
key: 1
|
|
28
|
+
}, [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
|
|
29
|
+
key: 0,
|
|
30
|
+
icon: _ctx.icon
|
|
31
|
+
}, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createBlock("span", _hoisted_2, _toDisplayString(_ctx.text), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 64))]),
|
|
32
|
+
_: 3
|
|
33
|
+
}, 16, ["class"]);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
import { ref, computed } from 'vue';
|
|
37
|
+
import { classNames, extend, isStringProp } from '../shared/utils.js';
|
|
38
|
+
import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses, iconProps, colorProps, actionsProps, routerProps } from '../shared/mixins.js';
|
|
39
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
40
|
+
import { useIcon } from '../shared/use-icon.js';
|
|
41
|
+
import { useRouteProps } from '../shared/use-route-props.js';
|
|
42
|
+
import f7Preloader from './preloader.js';
|
|
43
|
+
import f7UseIcon from './use-icon.js';
|
|
44
|
+
export default {
|
|
45
|
+
name: 'f7-button',
|
|
46
|
+
render,
|
|
47
|
+
components: {
|
|
48
|
+
f7Preloader,
|
|
49
|
+
f7UseIcon
|
|
50
|
+
},
|
|
51
|
+
props: {
|
|
52
|
+
text: String,
|
|
53
|
+
tabLink: [Boolean, String],
|
|
54
|
+
tabLinkActive: Boolean,
|
|
55
|
+
type: String,
|
|
56
|
+
href: {
|
|
57
|
+
type: [String, Boolean],
|
|
58
|
+
default: '#'
|
|
59
|
+
},
|
|
60
|
+
target: String,
|
|
61
|
+
round: Boolean,
|
|
62
|
+
roundMd: Boolean,
|
|
63
|
+
roundIos: Boolean,
|
|
64
|
+
roundAurora: Boolean,
|
|
65
|
+
fill: Boolean,
|
|
66
|
+
fillMd: Boolean,
|
|
67
|
+
fillIos: Boolean,
|
|
68
|
+
fillAurora: Boolean,
|
|
69
|
+
large: Boolean,
|
|
70
|
+
largeMd: Boolean,
|
|
71
|
+
largeIos: Boolean,
|
|
72
|
+
largeAurora: Boolean,
|
|
73
|
+
small: Boolean,
|
|
74
|
+
smallMd: Boolean,
|
|
75
|
+
smallIos: Boolean,
|
|
76
|
+
smallAurora: Boolean,
|
|
77
|
+
raised: Boolean,
|
|
78
|
+
raisedMd: Boolean,
|
|
79
|
+
raisedIos: Boolean,
|
|
80
|
+
raisedAurora: Boolean,
|
|
81
|
+
outline: Boolean,
|
|
82
|
+
outlineMd: Boolean,
|
|
83
|
+
outlineIos: Boolean,
|
|
84
|
+
outlineAurora: Boolean,
|
|
85
|
+
active: Boolean,
|
|
86
|
+
disabled: Boolean,
|
|
87
|
+
tooltip: String,
|
|
88
|
+
tooltipTrigger: String,
|
|
89
|
+
preloader: Boolean,
|
|
90
|
+
preloaderSize: [Number, String],
|
|
91
|
+
preloaderColor: String,
|
|
92
|
+
loading: Boolean,
|
|
93
|
+
...iconProps,
|
|
94
|
+
...colorProps,
|
|
95
|
+
...actionsProps,
|
|
96
|
+
...routerProps
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
setup(props) {
|
|
100
|
+
const elRef = ref(null);
|
|
101
|
+
useTooltip(elRef, props);
|
|
102
|
+
useRouteProps(elRef, props);
|
|
103
|
+
const icon = computed(() => useIcon(props));
|
|
104
|
+
const tag = computed(() => props.type === 'submit' || props.type === 'reset' || props.type === 'button' ? 'button' : 'a');
|
|
105
|
+
const attrs = computed(() => {
|
|
106
|
+
const {
|
|
107
|
+
href,
|
|
108
|
+
tabLink,
|
|
109
|
+
target,
|
|
110
|
+
type
|
|
111
|
+
} = props;
|
|
112
|
+
let hrefComputed = href;
|
|
113
|
+
if (href === true) hrefComputed = '#';
|
|
114
|
+
if (href === false || tag.value === 'button') hrefComputed = undefined; // no href attribute
|
|
115
|
+
|
|
116
|
+
return extend({
|
|
117
|
+
href: hrefComputed,
|
|
118
|
+
target,
|
|
119
|
+
type,
|
|
120
|
+
'data-tab': isStringProp(tabLink) && tabLink || undefined
|
|
121
|
+
}, routerAttrs(props), actionsAttrs(props));
|
|
122
|
+
});
|
|
123
|
+
const classesComputed = computed(() => {
|
|
124
|
+
const {
|
|
125
|
+
tabLink,
|
|
126
|
+
tabLinkActive,
|
|
127
|
+
round,
|
|
128
|
+
roundMd,
|
|
129
|
+
roundIos,
|
|
130
|
+
roundAurora,
|
|
131
|
+
fill,
|
|
132
|
+
fillMd,
|
|
133
|
+
fillIos,
|
|
134
|
+
fillAurora,
|
|
135
|
+
large,
|
|
136
|
+
largeMd,
|
|
137
|
+
largeIos,
|
|
138
|
+
largeAurora,
|
|
139
|
+
small,
|
|
140
|
+
smallMd,
|
|
141
|
+
smallIos,
|
|
142
|
+
smallAurora,
|
|
143
|
+
raised,
|
|
144
|
+
raisedMd,
|
|
145
|
+
raisedIos,
|
|
146
|
+
raisedAurora,
|
|
147
|
+
outline,
|
|
148
|
+
outlineMd,
|
|
149
|
+
outlineIos,
|
|
150
|
+
outlineAurora,
|
|
151
|
+
active,
|
|
152
|
+
disabled,
|
|
153
|
+
preloader,
|
|
154
|
+
loading
|
|
155
|
+
} = props;
|
|
156
|
+
return classNames('button', {
|
|
157
|
+
'tab-link': tabLink || tabLink === '',
|
|
158
|
+
'tab-link-active': tabLinkActive,
|
|
159
|
+
'button-round': round,
|
|
160
|
+
'button-round-ios': roundIos,
|
|
161
|
+
'button-round-aurora': roundAurora,
|
|
162
|
+
'button-round-md': roundMd,
|
|
163
|
+
'button-fill': fill,
|
|
164
|
+
'button-fill-ios': fillIos,
|
|
165
|
+
'button-fill-aurora': fillAurora,
|
|
166
|
+
'button-fill-md': fillMd,
|
|
167
|
+
'button-large': large,
|
|
168
|
+
'button-large-ios': largeIos,
|
|
169
|
+
'button-large-aurora': largeAurora,
|
|
170
|
+
'button-large-md': largeMd,
|
|
171
|
+
'button-small': small,
|
|
172
|
+
'button-small-ios': smallIos,
|
|
173
|
+
'button-small-aurora': smallAurora,
|
|
174
|
+
'button-small-md': smallMd,
|
|
175
|
+
'button-raised': raised,
|
|
176
|
+
'button-raised-ios': raisedIos,
|
|
177
|
+
'button-raised-aurora': raisedAurora,
|
|
178
|
+
'button-raised-md': raisedMd,
|
|
179
|
+
'button-active': active,
|
|
180
|
+
'button-outline': outline,
|
|
181
|
+
'button-outline-ios': outlineIos,
|
|
182
|
+
'button-outline-aurora': outlineAurora,
|
|
183
|
+
'button-outline-md': outlineMd,
|
|
184
|
+
'button-preloader': preloader,
|
|
185
|
+
'button-loading': loading,
|
|
186
|
+
disabled
|
|
187
|
+
}, colorClasses(props), routerClasses(props), actionsClasses(props));
|
|
188
|
+
});
|
|
189
|
+
return {
|
|
190
|
+
tag,
|
|
191
|
+
elRef,
|
|
192
|
+
attrs,
|
|
193
|
+
classesComputed,
|
|
194
|
+
icon
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
function render(_ctx, _cache) {
|
|
4
|
+
return _openBlock(), _createBlock("div", {
|
|
5
|
+
class: _ctx.classes
|
|
6
|
+
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
import { computed } from 'vue';
|
|
10
|
+
import { classNames } from '../shared/utils.js';
|
|
11
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
12
|
+
export default {
|
|
13
|
+
name: 'f7-card-content',
|
|
14
|
+
render,
|
|
15
|
+
props: {
|
|
16
|
+
padding: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: true
|
|
19
|
+
},
|
|
20
|
+
...colorProps
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
setup(props) {
|
|
24
|
+
const classes = computed(() => classNames('card-content', {
|
|
25
|
+
'card-content-padding': props.padding
|
|
26
|
+
}, colorClasses(props)));
|
|
27
|
+
return {
|
|
28
|
+
classes
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
function render(_ctx, _cache) {
|
|
4
|
+
return _openBlock(), _createBlock("div", {
|
|
5
|
+
class: _ctx.classes
|
|
6
|
+
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
import { computed } from 'vue';
|
|
10
|
+
import { classNames } from '../shared/utils.js';
|
|
11
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
12
|
+
export default {
|
|
13
|
+
name: 'f7-card-footer',
|
|
14
|
+
render,
|
|
15
|
+
props: { ...colorProps
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
setup(props) {
|
|
19
|
+
const classes = computed(() => classNames('card-footer', colorClasses(props)));
|
|
20
|
+
return {
|
|
21
|
+
classes
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
function render(_ctx, _cache) {
|
|
4
|
+
return _openBlock(), _createBlock("div", {
|
|
5
|
+
class: _ctx.classes
|
|
6
|
+
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
import { computed } from 'vue';
|
|
10
|
+
import { classNames } from '../shared/utils.js';
|
|
11
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
12
|
+
export default {
|
|
13
|
+
name: 'f7-card-header',
|
|
14
|
+
render,
|
|
15
|
+
props: { ...colorProps
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
setup(props) {
|
|
19
|
+
const classes = computed(() => classNames('card-header', colorClasses(props)));
|
|
20
|
+
return {
|
|
21
|
+
classes
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
};
|
|
File without changes
|
|
@@ -1,13 +1,11 @@
|
|
|
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, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
|
|
4
2
|
|
|
5
3
|
function render(_ctx, _cache) {
|
|
6
|
-
|
|
4
|
+
const _component_f7_card_header = _resolveComponent("f7-card-header");
|
|
7
5
|
|
|
8
|
-
|
|
6
|
+
const _component_f7_card_content = _resolveComponent("f7-card-content");
|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
const _component_f7_card_footer = _resolveComponent("f7-card-footer");
|
|
11
9
|
|
|
12
10
|
return _openBlock(), _createBlock("div", {
|
|
13
11
|
ref: "elRef",
|
|
@@ -24,44 +22,38 @@ function render(_ctx, _cache) {
|
|
|
24
22
|
}, [_ctx.hasHeader ? (_openBlock(), _createBlock(_component_f7_card_header, {
|
|
25
23
|
key: 0
|
|
26
24
|
}, {
|
|
27
|
-
default: _withCtx(
|
|
28
|
-
return [_createTextVNode(_toDisplayString(_ctx.title) + " ", 1), _renderSlot(_ctx.$slots, "header")];
|
|
29
|
-
}),
|
|
25
|
+
default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.title) + " ", 1), _renderSlot(_ctx.$slots, "header")]),
|
|
30
26
|
_: 3
|
|
31
27
|
})) : _createCommentVNode("", true), _ctx.hasContent ? (_openBlock(), _createBlock(_component_f7_card_content, {
|
|
32
28
|
key: 1,
|
|
33
29
|
padding: _ctx.padding
|
|
34
30
|
}, {
|
|
35
|
-
default: _withCtx(
|
|
36
|
-
return [_createTextVNode(_toDisplayString(_ctx.content) + " ", 1), _renderSlot(_ctx.$slots, "content")];
|
|
37
|
-
}),
|
|
31
|
+
default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.content) + " ", 1), _renderSlot(_ctx.$slots, "content")]),
|
|
38
32
|
_: 3
|
|
39
33
|
}, 8, ["padding"])) : _createCommentVNode("", true), _ctx.hasFooter ? (_openBlock(), _createBlock(_component_f7_card_footer, {
|
|
40
34
|
key: 2
|
|
41
35
|
}, {
|
|
42
|
-
default: _withCtx(
|
|
43
|
-
return [_createTextVNode(_toDisplayString(_ctx.footer) + " ", 1), _renderSlot(_ctx.$slots, "footer")];
|
|
44
|
-
}),
|
|
36
|
+
default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.footer) + " ", 1), _renderSlot(_ctx.$slots, "footer")]),
|
|
45
37
|
_: 3
|
|
46
38
|
})) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 10, ["data-animate", "data-hide-navbar-on-open", "data-hide-toolbar-on-open", "data-hide-statusbar-on-open", "data-scrollable-el", "data-swipe-to-close", "data-close-by-backdrop-click", "data-backdrop", "data-backdrop-el"]);
|
|
47
39
|
}
|
|
48
40
|
|
|
49
41
|
import { computed, ref, onMounted, onBeforeUnmount, watch } from 'vue';
|
|
50
|
-
import { classNames } from '../shared/utils';
|
|
51
|
-
import { colorClasses, colorProps } from '../shared/mixins';
|
|
52
|
-
import { f7, f7ready } from '../shared/f7';
|
|
53
|
-
import f7CardHeader from './card-header';
|
|
54
|
-
import f7CardContent from './card-content';
|
|
55
|
-
import f7CardFooter from './card-footer';
|
|
42
|
+
import { classNames } from '../shared/utils.js';
|
|
43
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
44
|
+
import { f7, f7ready } from '../shared/f7.js';
|
|
45
|
+
import f7CardHeader from './card-header.js';
|
|
46
|
+
import f7CardContent from './card-content.js';
|
|
47
|
+
import f7CardFooter from './card-footer.js';
|
|
56
48
|
export default {
|
|
57
49
|
name: 'f7-card',
|
|
58
|
-
render
|
|
50
|
+
render,
|
|
59
51
|
components: {
|
|
60
|
-
f7CardHeader
|
|
61
|
-
f7CardContent
|
|
62
|
-
f7CardFooter
|
|
52
|
+
f7CardHeader,
|
|
53
|
+
f7CardContent,
|
|
54
|
+
f7CardFooter
|
|
63
55
|
},
|
|
64
|
-
props:
|
|
56
|
+
props: {
|
|
65
57
|
title: [String, Number],
|
|
66
58
|
content: [String, Number],
|
|
67
59
|
footer: [String, Number],
|
|
@@ -110,54 +102,57 @@ export default {
|
|
|
110
102
|
padding: {
|
|
111
103
|
type: Boolean,
|
|
112
104
|
default: true
|
|
113
|
-
}
|
|
114
|
-
|
|
105
|
+
},
|
|
106
|
+
...colorProps
|
|
107
|
+
},
|
|
115
108
|
emits: ['card:beforeopen', 'card:open', 'card:opened', 'card:close', 'card:closed', 'update:expandableOpened'],
|
|
116
|
-
setup: function setup(props, _ref) {
|
|
117
|
-
var emit = _ref.emit,
|
|
118
|
-
slots = _ref.slots;
|
|
119
|
-
var elRef = ref(null);
|
|
120
109
|
|
|
121
|
-
|
|
110
|
+
setup(props, {
|
|
111
|
+
emit,
|
|
112
|
+
slots
|
|
113
|
+
}) {
|
|
114
|
+
const elRef = ref(null);
|
|
115
|
+
|
|
116
|
+
const open = () => {
|
|
122
117
|
if (!elRef.value) return;
|
|
123
118
|
f7.card.open(elRef.value);
|
|
124
119
|
};
|
|
125
120
|
|
|
126
|
-
|
|
121
|
+
const close = () => {
|
|
127
122
|
if (!elRef.value) return;
|
|
128
123
|
f7.card.close(elRef.value);
|
|
129
124
|
};
|
|
130
125
|
|
|
131
|
-
|
|
126
|
+
const onBeforeOpen = (el, prevent) => {
|
|
132
127
|
if (elRef.value !== el) return;
|
|
133
128
|
emit('card:beforeopen', el, prevent);
|
|
134
129
|
};
|
|
135
130
|
|
|
136
|
-
|
|
131
|
+
const onOpen = el => {
|
|
137
132
|
if (elRef.value !== el) return;
|
|
138
133
|
emit('card:open', el);
|
|
139
134
|
emit('update:expandableOpened', true);
|
|
140
135
|
};
|
|
141
136
|
|
|
142
|
-
|
|
137
|
+
const onOpened = (el, pageEl) => {
|
|
143
138
|
if (elRef.value !== el) return;
|
|
144
139
|
emit('card:opened', el, pageEl);
|
|
145
140
|
};
|
|
146
141
|
|
|
147
|
-
|
|
142
|
+
const onClose = el => {
|
|
148
143
|
if (elRef.value !== el) return;
|
|
149
144
|
emit('card:close', el);
|
|
150
145
|
};
|
|
151
146
|
|
|
152
|
-
|
|
147
|
+
const onClosed = (el, pageEl) => {
|
|
153
148
|
if (elRef.value !== el) return;
|
|
154
149
|
emit('card:closed', el, pageEl);
|
|
155
150
|
emit('update:expandableOpened', false);
|
|
156
151
|
};
|
|
157
152
|
|
|
158
|
-
onMounted(
|
|
153
|
+
onMounted(() => {
|
|
159
154
|
if (!props.expandable || !elRef.value) return;
|
|
160
|
-
f7ready(
|
|
155
|
+
f7ready(() => {
|
|
161
156
|
if (props.expandable && props.expandableOpened) {
|
|
162
157
|
f7.card.open(elRef.value, false);
|
|
163
158
|
}
|
|
@@ -169,46 +164,37 @@ export default {
|
|
|
169
164
|
f7.on('cardClosed', onClosed);
|
|
170
165
|
});
|
|
171
166
|
});
|
|
172
|
-
onBeforeUnmount(
|
|
167
|
+
onBeforeUnmount(() => {
|
|
173
168
|
f7.off('cardBeforeOpen', onBeforeOpen);
|
|
174
169
|
f7.off('cardOpen', onOpen);
|
|
175
170
|
f7.off('cardOpened', onOpened);
|
|
176
171
|
f7.off('cardClose', onClose);
|
|
177
172
|
f7.off('cardClosed', onClosed);
|
|
178
173
|
});
|
|
179
|
-
watch(
|
|
180
|
-
return props.expandableOpened;
|
|
181
|
-
}, function (value) {
|
|
174
|
+
watch(() => props.expandableOpened, value => {
|
|
182
175
|
if (value) {
|
|
183
176
|
open();
|
|
184
177
|
} else {
|
|
185
178
|
close();
|
|
186
179
|
}
|
|
187
180
|
});
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
return classNames('card', {
|
|
199
|
-
'card-outline': props.outline,
|
|
200
|
-
'card-expandable': props.expandable,
|
|
201
|
-
'card-expandable-animate-width': props.expandableAnimateWidth,
|
|
202
|
-
'no-shadow': props.noShadow,
|
|
203
|
-
'no-border': props.noBorder
|
|
204
|
-
}, colorClasses(props));
|
|
205
|
-
});
|
|
181
|
+
const hasHeader = computed(() => props.title || slots.header);
|
|
182
|
+
const hasContent = computed(() => props.content || slots.content);
|
|
183
|
+
const hasFooter = computed(() => props.footer || slots.footer);
|
|
184
|
+
const classes = computed(() => classNames('card', {
|
|
185
|
+
'card-outline': props.outline,
|
|
186
|
+
'card-expandable': props.expandable,
|
|
187
|
+
'card-expandable-animate-width': props.expandableAnimateWidth,
|
|
188
|
+
'no-shadow': props.noShadow,
|
|
189
|
+
'no-border': props.noBorder
|
|
190
|
+
}, colorClasses(props)));
|
|
206
191
|
return {
|
|
207
|
-
elRef
|
|
208
|
-
classes
|
|
209
|
-
hasHeader
|
|
210
|
-
hasContent
|
|
211
|
-
hasFooter
|
|
192
|
+
elRef,
|
|
193
|
+
classes,
|
|
194
|
+
hasHeader,
|
|
195
|
+
hasContent,
|
|
196
|
+
hasFooter
|
|
212
197
|
};
|
|
213
198
|
}
|
|
199
|
+
|
|
214
200
|
};
|
|
File without changes
|