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,394 @@
|
|
|
1
|
+
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, resolveDynamicComponent as _resolveDynamicComponent, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, renderSlot as _renderSlot } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "area-chart-axis"
|
|
5
|
+
};
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
key: 0
|
|
8
|
+
};
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "area-chart-legend"
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function render(_ctx, _cache) {
|
|
15
|
+
return _openBlock(), _createBlock("div", {
|
|
16
|
+
ref: "elRef",
|
|
17
|
+
class: _ctx.classes
|
|
18
|
+
}, [(_openBlock(), _createBlock("svg", {
|
|
19
|
+
ref: "svgElRef",
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
+
width: _ctx.width,
|
|
22
|
+
height: _ctx.height,
|
|
23
|
+
viewBox: `0 0 ${_ctx.width} ${_ctx.height}`,
|
|
24
|
+
preserveAspectRatio: "none"
|
|
25
|
+
}, [(_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.chartData, (data, index) => {
|
|
26
|
+
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.ChartTag), {
|
|
27
|
+
key: `${_ctx.ChartTag}-${index}`,
|
|
28
|
+
fill: _ctx.lineChart ? undefined : data.color,
|
|
29
|
+
stroke: _ctx.lineChart ? data.color : undefined,
|
|
30
|
+
"fill-rule": "evenodd",
|
|
31
|
+
points: _ctx.lineChart ? undefined : data.points,
|
|
32
|
+
d: _ctx.lineChart ? data.points : undefined
|
|
33
|
+
}, null, 8, ["fill", "stroke", "points", "d"]);
|
|
34
|
+
}), 128)), (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.verticalLines, (line, index) => {
|
|
35
|
+
return _openBlock(), _createBlock("line", {
|
|
36
|
+
key: `line-${index}`,
|
|
37
|
+
"data-index": index,
|
|
38
|
+
fill: "#000",
|
|
39
|
+
x1: line,
|
|
40
|
+
y1: 0,
|
|
41
|
+
x2: line,
|
|
42
|
+
y2: _ctx.height,
|
|
43
|
+
class: _ctx.classNames({
|
|
44
|
+
'area-chart-current-line': _ctx.currentIndex === index
|
|
45
|
+
})
|
|
46
|
+
}, null, 10, ["data-index", "x1", "x2", "y2"]);
|
|
47
|
+
}), 128))], 8, ["width", "height", "viewBox"])), _ctx.axis ? (_openBlock(), _createBlock("div", _hoisted_1, [(_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.axisLabels, (label, index) => {
|
|
48
|
+
return _openBlock(), _createBlock("span", {
|
|
49
|
+
key: index
|
|
50
|
+
}, [_ctx.visibleLegends.includes(label) ? (_openBlock(), _createBlock("span", _hoisted_2, _toDisplayString(_ctx.formatAxisLabelMethod(label)), 1)) : _createCommentVNode("", true)]);
|
|
51
|
+
}), 128))])) : _createCommentVNode("", true), _ctx.legend ? (_openBlock(), _createBlock("div", _hoisted_3, [(_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.datasets, (dataset, index) => {
|
|
52
|
+
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.LegendItemTag), {
|
|
53
|
+
key: index,
|
|
54
|
+
class: _ctx.classNames('area-chart-legend-item', {
|
|
55
|
+
'area-chart-legend-item-hidden': _ctx.hiddenDatasets.includes(index),
|
|
56
|
+
'area-chart-legend-button': _ctx.toggleDatasets
|
|
57
|
+
}),
|
|
58
|
+
type: _ctx.toggleDatasets ? 'button' : undefined,
|
|
59
|
+
onClick: $event => _ctx.toggleDataset(index)
|
|
60
|
+
}, {
|
|
61
|
+
default: _withCtx(() => [_createVNode("span", {
|
|
62
|
+
style: {
|
|
63
|
+
backgroundColor: dataset.color
|
|
64
|
+
}
|
|
65
|
+
}, null, 4), _createTextVNode(" " + _toDisplayString(_ctx.formatLegendLabelMethod(dataset.label)), 1)]),
|
|
66
|
+
_: 2
|
|
67
|
+
}, 1032, ["class", "type", "onClick"]);
|
|
68
|
+
}), 128))])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
|
72
|
+
import { classNames } from '../shared/utils.js';
|
|
73
|
+
import { f7 } from '../shared/f7.js';
|
|
74
|
+
export default {
|
|
75
|
+
name: 'f7-area-chart',
|
|
76
|
+
render,
|
|
77
|
+
props: {
|
|
78
|
+
lineChart: Boolean,
|
|
79
|
+
datasets: {
|
|
80
|
+
type: Array,
|
|
81
|
+
default: () => []
|
|
82
|
+
},
|
|
83
|
+
axis: Boolean,
|
|
84
|
+
axisLabels: {
|
|
85
|
+
type: Array,
|
|
86
|
+
default: () => []
|
|
87
|
+
},
|
|
88
|
+
tooltip: Boolean,
|
|
89
|
+
legend: Boolean,
|
|
90
|
+
toggleDatasets: Boolean,
|
|
91
|
+
width: {
|
|
92
|
+
type: Number,
|
|
93
|
+
default: 640
|
|
94
|
+
},
|
|
95
|
+
height: {
|
|
96
|
+
type: Number,
|
|
97
|
+
default: 320
|
|
98
|
+
},
|
|
99
|
+
maxAxisLabels: {
|
|
100
|
+
type: Number,
|
|
101
|
+
default: 8
|
|
102
|
+
},
|
|
103
|
+
formatAxisLabel: Function,
|
|
104
|
+
formatLegendLabel: Function,
|
|
105
|
+
formatTooltip: Function,
|
|
106
|
+
formatTooltipAxisLabel: Function,
|
|
107
|
+
formatTooltipTotal: Function,
|
|
108
|
+
formatTooltipDataset: Function
|
|
109
|
+
},
|
|
110
|
+
emits: ['select'],
|
|
111
|
+
|
|
112
|
+
setup(props, {
|
|
113
|
+
emit
|
|
114
|
+
}) {
|
|
115
|
+
let f7Tooltip = null;
|
|
116
|
+
const currentIndex = ref(null);
|
|
117
|
+
const hiddenDatasets = ref([]);
|
|
118
|
+
const elRef = ref(null);
|
|
119
|
+
const svgElRef = ref(null);
|
|
120
|
+
const linesOffsets = ref(null);
|
|
121
|
+
const visibleLegends = computed(() => {
|
|
122
|
+
if (!props.maxAxisLabels || props.axisLabels.length <= props.maxAxisLabels) return props.axisLabels;
|
|
123
|
+
const skipStep = Math.ceil(props.axisLabels.length / props.maxAxisLabels);
|
|
124
|
+
const filtered = props.axisLabels.filter((label, index) => index % skipStep === 0);
|
|
125
|
+
return filtered;
|
|
126
|
+
});
|
|
127
|
+
const summValues = computed(() => {
|
|
128
|
+
const summ = [];
|
|
129
|
+
props.datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(({
|
|
130
|
+
values
|
|
131
|
+
}) => {
|
|
132
|
+
values.forEach((value, valueIndex) => {
|
|
133
|
+
if (!summ[valueIndex]) summ[valueIndex] = 0;
|
|
134
|
+
summ[valueIndex] += value;
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
return summ;
|
|
138
|
+
});
|
|
139
|
+
const chartData = computed(() => {
|
|
140
|
+
const {
|
|
141
|
+
datasets,
|
|
142
|
+
lineChart,
|
|
143
|
+
width,
|
|
144
|
+
height
|
|
145
|
+
} = props;
|
|
146
|
+
const data = [];
|
|
147
|
+
|
|
148
|
+
if (!datasets.length) {
|
|
149
|
+
return data;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const lastValues = datasets[0].values.map(() => 0);
|
|
153
|
+
let maxValue = 0;
|
|
154
|
+
|
|
155
|
+
if (lineChart) {
|
|
156
|
+
datasets.forEach(({
|
|
157
|
+
values
|
|
158
|
+
}) => {
|
|
159
|
+
const datasetMaxValue = Math.max(...values);
|
|
160
|
+
if (datasetMaxValue > maxValue) maxValue = datasetMaxValue;
|
|
161
|
+
});
|
|
162
|
+
} else {
|
|
163
|
+
maxValue = Math.max(...summValues.value);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(({
|
|
167
|
+
label,
|
|
168
|
+
values,
|
|
169
|
+
color
|
|
170
|
+
}) => {
|
|
171
|
+
const points = values.map((originalValue, valueIndex) => {
|
|
172
|
+
lastValues[valueIndex] += originalValue;
|
|
173
|
+
const value = lineChart ? originalValue : lastValues[valueIndex];
|
|
174
|
+
const x = valueIndex / (values.length - 1) * width;
|
|
175
|
+
const y = height - value / maxValue * height;
|
|
176
|
+
|
|
177
|
+
if (lineChart) {
|
|
178
|
+
return `${valueIndex === 0 ? 'M' : 'L'}${x},${y}`;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return `${x} ${y}`;
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
if (!lineChart) {
|
|
185
|
+
points.push(`${width} ${height} 0 ${height}`);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
data.push({
|
|
189
|
+
label,
|
|
190
|
+
points: points.join(' '),
|
|
191
|
+
color
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
return data.reverse();
|
|
195
|
+
});
|
|
196
|
+
const verticalLines = computed(() => {
|
|
197
|
+
const lines = [];
|
|
198
|
+
|
|
199
|
+
if (!props.datasets.length) {
|
|
200
|
+
return lines;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const values = props.datasets[0].values;
|
|
204
|
+
values.forEach((value, valueIndex) => {
|
|
205
|
+
const x = valueIndex / (values.length - 1) * props.width;
|
|
206
|
+
lines.push(x);
|
|
207
|
+
});
|
|
208
|
+
return lines;
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
const toggleDataset = index => {
|
|
212
|
+
if (!props.toggleDatasets) return;
|
|
213
|
+
|
|
214
|
+
if (hiddenDatasets.value.includes(index)) {
|
|
215
|
+
hiddenDatasets.value.splice(hiddenDatasets.value.indexOf(index), 1);
|
|
216
|
+
} else {
|
|
217
|
+
hiddenDatasets.value.push(index);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
hiddenDatasets.value = [...hiddenDatasets.value];
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
const formatAxisLabelMethod = label => {
|
|
224
|
+
if (props.formatAxisLabel) return props.formatAxisLabel(label);
|
|
225
|
+
return label;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
const formatLegendLabelMethod = label => {
|
|
229
|
+
if (props.formatLegendLabel) return props.formatLegendLabel(label);
|
|
230
|
+
return label;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
const calcLinesOffsets = () => {
|
|
234
|
+
const lines = svgElRef.value.querySelectorAll('line');
|
|
235
|
+
linesOffsets.value = [];
|
|
236
|
+
|
|
237
|
+
for (let i = 0; i < lines.length; i += 1) {
|
|
238
|
+
linesOffsets.value.push(lines[i].getBoundingClientRect().left);
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
const formatTooltip = () => {
|
|
243
|
+
const index = currentIndex.value;
|
|
244
|
+
if (index === null) return '';
|
|
245
|
+
let total = 0;
|
|
246
|
+
const currentValues = props.datasets.filter((dataset, i) => !hiddenDatasets.value.includes(i)).map(dataset => ({
|
|
247
|
+
color: dataset.color,
|
|
248
|
+
label: dataset.label,
|
|
249
|
+
value: dataset.values[index]
|
|
250
|
+
}));
|
|
251
|
+
currentValues.forEach(dataset => {
|
|
252
|
+
total += dataset.value;
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
if (props.formatTooltip) {
|
|
256
|
+
return props.formatTooltip({
|
|
257
|
+
index,
|
|
258
|
+
total,
|
|
259
|
+
datasets: currentValues
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
let labelText = props.formatTooltipAxisLabel ? props.formatTooltipAxisLabel(props.axisLabels[index]) : formatAxisLabelMethod(props.axisLabels[index]);
|
|
264
|
+
if (!labelText) labelText = '';
|
|
265
|
+
const totalText = props.formatTooltipTotal ? props.formatTooltipTotal(total) : total; // prettier-ignore
|
|
266
|
+
|
|
267
|
+
const datasetsText = currentValues.length > 0 ? `
|
|
268
|
+
<ul class="area-chart-tooltip-list">
|
|
269
|
+
${currentValues.map(({
|
|
270
|
+
label,
|
|
271
|
+
color,
|
|
272
|
+
value
|
|
273
|
+
}) => {
|
|
274
|
+
const valueText = props.formatTooltipDataset ? props.formatTooltipDataset(label, value, color) : `${label}: ${value}`;
|
|
275
|
+
return `
|
|
276
|
+
<li><span style="background-color: ${color};"></span>${valueText}</li>
|
|
277
|
+
`;
|
|
278
|
+
}).join('')}
|
|
279
|
+
</ul>` : ''; // prettier-ignore
|
|
280
|
+
|
|
281
|
+
return `
|
|
282
|
+
<div class="area-chart-tooltip-label">${labelText}</div>
|
|
283
|
+
<div class="area-chart-tooltip-total">${totalText}</div>
|
|
284
|
+
${datasetsText}
|
|
285
|
+
`;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
const setTooltip = () => {
|
|
289
|
+
const {
|
|
290
|
+
tooltip,
|
|
291
|
+
datasets
|
|
292
|
+
} = props;
|
|
293
|
+
const index = currentIndex.value;
|
|
294
|
+
if (!tooltip) return;
|
|
295
|
+
const hasVisibleDataSets = datasets.filter((dataset, i) => !hiddenDatasets.value.includes(i)).length > 0;
|
|
296
|
+
|
|
297
|
+
if (!hasVisibleDataSets) {
|
|
298
|
+
if (f7Tooltip && f7Tooltip.hide) f7Tooltip.hide();
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (index !== null && !f7Tooltip) {
|
|
303
|
+
f7Tooltip = f7.tooltip.create({
|
|
304
|
+
trigger: 'manual',
|
|
305
|
+
containerEl: elRef.value,
|
|
306
|
+
targetEl: svgElRef.value.querySelector(`line[data-index="${index}"]`),
|
|
307
|
+
text: formatTooltip(),
|
|
308
|
+
cssClass: 'area-chart-tooltip'
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
if (f7Tooltip && f7Tooltip.show) {
|
|
312
|
+
f7Tooltip.show();
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (!f7Tooltip || !f7Tooltip.hide || !f7Tooltip.show) {
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (index !== null) {
|
|
323
|
+
f7Tooltip.setText(formatTooltip());
|
|
324
|
+
f7Tooltip.setTargetEl(svgElRef.value.querySelector(`line[data-index="${index}"]`));
|
|
325
|
+
f7Tooltip.show();
|
|
326
|
+
} else {
|
|
327
|
+
f7Tooltip.hide();
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
const onMouseEnter = () => {
|
|
332
|
+
calcLinesOffsets();
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
const onMouseMove = e => {
|
|
336
|
+
if (!linesOffsets.value) {
|
|
337
|
+
calcLinesOffsets();
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
let currentLeft = e.pageX;
|
|
341
|
+
if (typeof currentLeft === 'undefined') currentLeft = 0;
|
|
342
|
+
const distances = linesOffsets.value.map(left => Math.abs(currentLeft - left));
|
|
343
|
+
const minDistance = Math.min(...distances);
|
|
344
|
+
const closestIndex = distances.indexOf(minDistance);
|
|
345
|
+
currentIndex.value = closestIndex;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
const onMouseLeave = () => {
|
|
349
|
+
currentIndex.value = null;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
watch(() => currentIndex.value, () => {
|
|
353
|
+
emit('select', currentIndex.value);
|
|
354
|
+
setTooltip();
|
|
355
|
+
});
|
|
356
|
+
onMounted(() => {
|
|
357
|
+
if (!svgElRef.value) return;
|
|
358
|
+
svgElRef.value.addEventListener('mouseenter', onMouseEnter);
|
|
359
|
+
svgElRef.value.addEventListener('mousemove', onMouseMove);
|
|
360
|
+
svgElRef.value.addEventListener('mouseleave', onMouseLeave);
|
|
361
|
+
});
|
|
362
|
+
onBeforeUnmount(() => {
|
|
363
|
+
if (f7Tooltip && f7Tooltip.destroy) {
|
|
364
|
+
f7Tooltip.destroy();
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
f7Tooltip = null;
|
|
368
|
+
if (!svgElRef.value) return;
|
|
369
|
+
svgElRef.value.removeEventListener('mouseenter', onMouseEnter);
|
|
370
|
+
svgElRef.value.removeEventListener('mousemove', onMouseMove);
|
|
371
|
+
svgElRef.value.removeEventListener('mouseleave', onMouseLeave);
|
|
372
|
+
});
|
|
373
|
+
const classes = computed(() => classNames('area-chart'));
|
|
374
|
+
const LegendItemTag = computed(() => props.toggleDatasets ? 'button' : 'span');
|
|
375
|
+
const ChartTag = computed(() => props.lineChart ? 'path' : 'polygon');
|
|
376
|
+
return {
|
|
377
|
+
currentIndex,
|
|
378
|
+
hiddenDatasets,
|
|
379
|
+
visibleLegends,
|
|
380
|
+
chartData,
|
|
381
|
+
verticalLines,
|
|
382
|
+
elRef,
|
|
383
|
+
svgElRef,
|
|
384
|
+
classes,
|
|
385
|
+
toggleDataset,
|
|
386
|
+
formatAxisLabelMethod,
|
|
387
|
+
formatLegendLabelMethod,
|
|
388
|
+
LegendItemTag,
|
|
389
|
+
ChartTag,
|
|
390
|
+
classNames
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
function render(_ctx, _cache) {
|
|
4
|
+
return _openBlock(), _createBlock("span", {
|
|
5
|
+
ref: "elRef",
|
|
6
|
+
class: _ctx.classes
|
|
7
|
+
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
import { computed, ref } from 'vue';
|
|
11
|
+
import { classNames } from '../shared/utils.js';
|
|
12
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
13
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
14
|
+
export default {
|
|
15
|
+
name: 'f7-badge',
|
|
16
|
+
render,
|
|
17
|
+
props: {
|
|
18
|
+
tooltip: String,
|
|
19
|
+
tooltipTrigger: String,
|
|
20
|
+
...colorProps
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
setup(props) {
|
|
24
|
+
const elRef = ref(null);
|
|
25
|
+
useTooltip(elRef, props);
|
|
26
|
+
const classes = computed(() => classNames('badge', colorClasses(props)));
|
|
27
|
+
return {
|
|
28
|
+
elRef,
|
|
29
|
+
classes
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
};
|
|
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-block-footer',
|
|
14
|
+
render,
|
|
15
|
+
props: { ...colorProps
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
setup(props) {
|
|
19
|
+
const classes = computed(() => classNames('block-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-block-header',
|
|
14
|
+
render,
|
|
15
|
+
props: { ...colorProps
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
setup(props) {
|
|
19
|
+
const classes = computed(() => classNames('block-header', colorClasses(props)));
|
|
20
|
+
return {
|
|
21
|
+
classes
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
medium: _ctx.medium
|
|
7
|
+
}, [_renderSlot(_ctx.$slots, "default")], 10, ["medium"]);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
import { computed } from 'vue';
|
|
11
|
+
import { classNames } from '../shared/utils.js';
|
|
12
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
13
|
+
export default {
|
|
14
|
+
name: 'f7-block-title',
|
|
15
|
+
render,
|
|
16
|
+
props: {
|
|
17
|
+
large: Boolean,
|
|
18
|
+
medium: Boolean,
|
|
19
|
+
...colorProps
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
setup(props) {
|
|
23
|
+
const classes = computed(() => {
|
|
24
|
+
const {
|
|
25
|
+
large,
|
|
26
|
+
medium
|
|
27
|
+
} = props;
|
|
28
|
+
return classNames('block-title', {
|
|
29
|
+
'block-title-large': large,
|
|
30
|
+
'block-title-medium': medium
|
|
31
|
+
}, colorClasses(props));
|
|
32
|
+
});
|
|
33
|
+
return {
|
|
34
|
+
classes
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,87 @@
|
|
|
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: _ctx.classes
|
|
7
|
+
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
import { ref, computed } from 'vue';
|
|
11
|
+
import { classNames } from '../shared/utils.js';
|
|
12
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
13
|
+
import { useTab } from '../shared/use-tab.js';
|
|
14
|
+
export default {
|
|
15
|
+
name: 'f7-block',
|
|
16
|
+
render,
|
|
17
|
+
props: {
|
|
18
|
+
inset: Boolean,
|
|
19
|
+
xsmallInset: Boolean,
|
|
20
|
+
smallInset: Boolean,
|
|
21
|
+
mediumInset: Boolean,
|
|
22
|
+
largeInset: Boolean,
|
|
23
|
+
xlargeInset: Boolean,
|
|
24
|
+
strong: Boolean,
|
|
25
|
+
tabs: Boolean,
|
|
26
|
+
tab: Boolean,
|
|
27
|
+
tabActive: Boolean,
|
|
28
|
+
accordionList: Boolean,
|
|
29
|
+
accordionOpposite: Boolean,
|
|
30
|
+
noHairlines: Boolean,
|
|
31
|
+
noHairlinesMd: Boolean,
|
|
32
|
+
noHairlinesIos: Boolean,
|
|
33
|
+
noHairlinesAurora: Boolean,
|
|
34
|
+
...colorProps
|
|
35
|
+
},
|
|
36
|
+
emits: ['tab:hide', 'tab:show'],
|
|
37
|
+
|
|
38
|
+
setup(props, {
|
|
39
|
+
emit
|
|
40
|
+
}) {
|
|
41
|
+
const elRef = ref(null);
|
|
42
|
+
useTab(elRef, emit);
|
|
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;
|
|
62
|
+
return classNames('block', {
|
|
63
|
+
inset,
|
|
64
|
+
'xsmall-inset': xsmallInset,
|
|
65
|
+
'small-inset': smallInset,
|
|
66
|
+
'medium-inset': mediumInset,
|
|
67
|
+
'large-inset': largeInset,
|
|
68
|
+
'xlarge-inset': xlargeInset,
|
|
69
|
+
'block-strong': strong,
|
|
70
|
+
'accordion-list': accordionList,
|
|
71
|
+
'accordion-opposite': accordionOpposite,
|
|
72
|
+
tabs,
|
|
73
|
+
tab,
|
|
74
|
+
'tab-active': tabActive,
|
|
75
|
+
'no-hairlines': noHairlines,
|
|
76
|
+
'no-hairlines-md': noHairlinesMd,
|
|
77
|
+
'no-hairlines-ios': noHairlinesIos,
|
|
78
|
+
'no-hairlines-aurora': noHairlinesAurora
|
|
79
|
+
}, colorClasses(props));
|
|
80
|
+
});
|
|
81
|
+
return {
|
|
82
|
+
elRef,
|
|
83
|
+
classes
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const BreadcrumbsCollapsed: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
},
|
|
9
|
+
() => JSX.Element,
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
ComponentOptionsMixin,
|
|
14
|
+
ComponentOptionsMixin,
|
|
15
|
+
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export default BreadcrumbsCollapsed;
|
|
19
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createVNode as _createVNode, renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
ref: "elRef",
|
|
4
|
+
class: "breadcrumbs-collapsed"
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
const _hoisted_2 = /*#__PURE__*/_createVNode("span", null, null, -1);
|
|
8
|
+
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return _openBlock(), _createBlock("div", _hoisted_1, [_hoisted_2, _renderSlot(_ctx.$slots, "default")], 512);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
import { ref } from 'vue';
|
|
14
|
+
export default {
|
|
15
|
+
name: 'f7-breadcrumbs-collapsed',
|
|
16
|
+
render,
|
|
17
|
+
props: {},
|
|
18
|
+
|
|
19
|
+
setup() {
|
|
20
|
+
const elRef = ref(null);
|
|
21
|
+
return {
|
|
22
|
+
elRef
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const BreadcrumbsItem: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
active: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
() => JSX.Element,
|
|
13
|
+
unknown,
|
|
14
|
+
{},
|
|
15
|
+
{},
|
|
16
|
+
ComponentOptionsMixin,
|
|
17
|
+
ComponentOptionsMixin,
|
|
18
|
+
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
export default BreadcrumbsItem;
|
|
22
|
+
|