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,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
4
2
|
|
|
5
3
|
function render(_ctx, _cache) {
|
|
@@ -15,8 +13,8 @@ import { colorClasses, colorProps } from '../shared/mixins';
|
|
|
15
13
|
import { useTab } from '../shared/use-tab';
|
|
16
14
|
export default {
|
|
17
15
|
name: 'f7-block',
|
|
18
|
-
render
|
|
19
|
-
props:
|
|
16
|
+
render,
|
|
17
|
+
props: {
|
|
20
18
|
inset: Boolean,
|
|
21
19
|
xsmallInset: Boolean,
|
|
22
20
|
smallInset: Boolean,
|
|
@@ -32,32 +30,37 @@ export default {
|
|
|
32
30
|
noHairlines: Boolean,
|
|
33
31
|
noHairlinesMd: Boolean,
|
|
34
32
|
noHairlinesIos: Boolean,
|
|
35
|
-
noHairlinesAurora: Boolean
|
|
36
|
-
|
|
33
|
+
noHairlinesAurora: Boolean,
|
|
34
|
+
...colorProps
|
|
35
|
+
},
|
|
37
36
|
emits: ['tab:hide', 'tab:show'],
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
|
|
38
|
+
setup(props, {
|
|
39
|
+
emit
|
|
40
|
+
}) {
|
|
41
|
+
const elRef = ref(null);
|
|
41
42
|
useTab(elRef, emit);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
43
|
+
const classes = computed(() => {
|
|
44
|
+
const {
|
|
45
|
+
inset,
|
|
46
|
+
xsmallInset,
|
|
47
|
+
smallInset,
|
|
48
|
+
mediumInset,
|
|
49
|
+
largeInset,
|
|
50
|
+
xlargeInset,
|
|
51
|
+
strong,
|
|
52
|
+
accordionList,
|
|
53
|
+
accordionOpposite,
|
|
54
|
+
tabs,
|
|
55
|
+
tab,
|
|
56
|
+
tabActive,
|
|
57
|
+
noHairlines,
|
|
58
|
+
noHairlinesMd,
|
|
59
|
+
noHairlinesIos,
|
|
60
|
+
noHairlinesAurora
|
|
61
|
+
} = props;
|
|
59
62
|
return classNames('block', {
|
|
60
|
-
inset
|
|
63
|
+
inset,
|
|
61
64
|
'xsmall-inset': xsmallInset,
|
|
62
65
|
'small-inset': smallInset,
|
|
63
66
|
'medium-inset': mediumInset,
|
|
@@ -66,8 +69,8 @@ export default {
|
|
|
66
69
|
'block-strong': strong,
|
|
67
70
|
'accordion-list': accordionList,
|
|
68
71
|
'accordion-opposite': accordionOpposite,
|
|
69
|
-
tabs
|
|
70
|
-
tab
|
|
72
|
+
tabs,
|
|
73
|
+
tab,
|
|
71
74
|
'tab-active': tabActive,
|
|
72
75
|
'no-hairlines': noHairlines,
|
|
73
76
|
'no-hairlines-md': noHairlinesMd,
|
|
@@ -76,8 +79,9 @@ export default {
|
|
|
76
79
|
}, colorClasses(props));
|
|
77
80
|
});
|
|
78
81
|
return {
|
|
79
|
-
elRef
|
|
80
|
-
classes
|
|
82
|
+
elRef,
|
|
83
|
+
classes
|
|
81
84
|
};
|
|
82
85
|
}
|
|
86
|
+
|
|
83
87
|
};
|
|
File without changes
|
|
@@ -1,38 +1,34 @@
|
|
|
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 { 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";
|
|
4
|
-
|
|
2
|
+
const _hoisted_1 = {
|
|
5
3
|
key: 1
|
|
6
4
|
};
|
|
7
|
-
|
|
5
|
+
const _hoisted_2 = {
|
|
8
6
|
key: 1
|
|
9
7
|
};
|
|
10
8
|
|
|
11
9
|
function render(_ctx, _cache) {
|
|
12
|
-
|
|
10
|
+
const _component_f7_preloader = _resolveComponent("f7-preloader");
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
const _component_f7_use_icon = _resolveComponent("f7-use-icon");
|
|
15
13
|
|
|
16
14
|
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), _mergeProps({
|
|
17
15
|
ref: "elRef",
|
|
18
16
|
class: _ctx.classesComputed
|
|
19
17
|
}, _ctx.attrs), {
|
|
20
|
-
default: _withCtx(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createBlock("span", _hoisted_2, _toDisplayString(_ctx.text), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 64))];
|
|
35
|
-
}),
|
|
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))]),
|
|
36
32
|
_: 3
|
|
37
33
|
}, 16, ["class"]);
|
|
38
34
|
}
|
|
@@ -47,12 +43,12 @@ import f7Preloader from './preloader';
|
|
|
47
43
|
import f7UseIcon from './use-icon';
|
|
48
44
|
export default {
|
|
49
45
|
name: 'f7-button',
|
|
50
|
-
render
|
|
46
|
+
render,
|
|
51
47
|
components: {
|
|
52
|
-
f7Preloader
|
|
53
|
-
f7UseIcon
|
|
48
|
+
f7Preloader,
|
|
49
|
+
f7UseIcon
|
|
54
50
|
},
|
|
55
|
-
props:
|
|
51
|
+
props: {
|
|
56
52
|
text: String,
|
|
57
53
|
tabLink: [Boolean, String],
|
|
58
54
|
tabLinkActive: Boolean,
|
|
@@ -93,65 +89,70 @@ export default {
|
|
|
93
89
|
preloader: Boolean,
|
|
94
90
|
preloaderSize: [Number, String],
|
|
95
91
|
preloaderColor: String,
|
|
96
|
-
loading: Boolean
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
loading: Boolean,
|
|
93
|
+
...iconProps,
|
|
94
|
+
...colorProps,
|
|
95
|
+
...actionsProps,
|
|
96
|
+
...routerProps
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
setup(props) {
|
|
100
|
+
const elRef = ref(null);
|
|
100
101
|
useTooltip(elRef, props);
|
|
101
102
|
useRouteProps(elRef, props);
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
type = props.type;
|
|
113
|
-
var hrefComputed = href;
|
|
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;
|
|
114
113
|
if (href === true) hrefComputed = '#';
|
|
115
114
|
if (href === false || tag.value === 'button') hrefComputed = undefined; // no href attribute
|
|
116
115
|
|
|
117
116
|
return extend({
|
|
118
117
|
href: hrefComputed,
|
|
119
|
-
target
|
|
120
|
-
type
|
|
118
|
+
target,
|
|
119
|
+
type,
|
|
121
120
|
'data-tab': isStringProp(tabLink) && tabLink || undefined
|
|
122
121
|
}, routerAttrs(props), actionsAttrs(props));
|
|
123
122
|
});
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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;
|
|
155
156
|
return classNames('button', {
|
|
156
157
|
'tab-link': tabLink || tabLink === '',
|
|
157
158
|
'tab-link-active': tabLinkActive,
|
|
@@ -182,15 +183,16 @@ export default {
|
|
|
182
183
|
'button-outline-md': outlineMd,
|
|
183
184
|
'button-preloader': preloader,
|
|
184
185
|
'button-loading': loading,
|
|
185
|
-
disabled
|
|
186
|
+
disabled
|
|
186
187
|
}, colorClasses(props), routerClasses(props), actionsClasses(props));
|
|
187
188
|
});
|
|
188
189
|
return {
|
|
189
|
-
tag
|
|
190
|
-
elRef
|
|
191
|
-
attrs
|
|
192
|
-
classesComputed
|
|
193
|
-
icon
|
|
190
|
+
tag,
|
|
191
|
+
elRef,
|
|
192
|
+
attrs,
|
|
193
|
+
classesComputed,
|
|
194
|
+
icon
|
|
194
195
|
};
|
|
195
196
|
}
|
|
197
|
+
|
|
196
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';
|
|
11
|
+
import { colorClasses, colorProps } from '../shared/mixins';
|
|
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';
|
|
11
|
+
import { colorClasses, colorProps } from '../shared/mixins';
|
|
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';
|
|
11
|
+
import { colorClasses, colorProps } from '../shared/mixins';
|
|
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,24 +22,18 @@ 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
|
}
|
|
@@ -55,13 +47,13 @@ import f7CardContent from './card-content';
|
|
|
55
47
|
import f7CardFooter from './card-footer';
|
|
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
|