├── demo-app ├── static │ ├── robots.txt │ ├── logo.png │ ├── favicon.ico │ ├── favicon.png │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── mstile-150x150.png │ ├── apple-touch-icon.png │ ├── assets │ │ ├── img │ │ │ ├── madison.jpg │ │ │ ├── logo-512.png │ │ │ ├── pwa-download.png │ │ │ ├── safari-bar.png │ │ │ ├── great-success.png │ │ │ ├── ionic │ │ │ │ ├── boniver.jpeg │ │ │ │ ├── kimbra.jpeg │ │ │ │ ├── avatar-ben.png │ │ │ │ ├── avatar-finn.png │ │ │ │ ├── avatar-han.png │ │ │ │ ├── avatar-leia.png │ │ │ │ ├── avatar-luke.png │ │ │ │ ├── avatar-poe.png │ │ │ │ ├── avatar-rey.png │ │ │ │ ├── avatar-yoda.png │ │ │ │ ├── ironwine.jpeg │ │ │ │ ├── pinkfloyd.jpeg │ │ │ │ ├── thebeatles.jpeg │ │ │ │ ├── chancetherapper.jpeg │ │ │ │ ├── childishgambino.jpeg │ │ │ │ ├── porterrobinson.jpeg │ │ │ │ └── avatar.svg │ │ │ ├── slides │ │ │ │ ├── slide-1.png │ │ │ │ ├── slide-2.png │ │ │ │ ├── slide-3.png │ │ │ │ ├── slide-4.png │ │ │ │ ├── svelte.png │ │ │ │ └── slide-22.png │ │ │ └── safari-share-options.png │ │ ├── svelte-ionic-logo.png │ │ ├── src │ │ │ ├── components │ │ │ │ ├── tabs │ │ │ │ │ ├── blabla │ │ │ │ │ │ └── +page.svelte │ │ │ │ │ ├── +page.svelte │ │ │ │ │ ├── controllers │ │ │ │ │ │ └── +page.svelte │ │ │ │ │ ├── explain │ │ │ │ │ │ └── +page.svelte │ │ │ │ │ ├── [tab] │ │ │ │ │ │ ├── +page.ts │ │ │ │ │ │ └── +page.svelte │ │ │ │ │ ├── +page.ts │ │ │ │ │ └── +layout.svelte │ │ │ │ ├── Nav │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Inputs │ │ │ │ │ ├── account.interface.ts │ │ │ │ │ └── +page.server.ts │ │ │ │ ├── Toast │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Loading │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Splash │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Popover │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Text │ │ │ │ │ └── +page.svelte │ │ │ │ ├── ProgressBar │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Badge │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Range │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Spinner │ │ │ │ │ └── +page.svelte │ │ │ │ ├── SvelteTweened │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Actionsheet │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Page │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Button │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Datetime │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Picker │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Radio │ │ │ │ │ └── +page.svelte │ │ │ │ ├── Grid │ │ │ │ │ └── +page.svelte │ │ │ │ └── SvelteSpring │ │ │ │ │ └── +page.svelte │ │ │ └── ionic-docs │ │ │ │ └── api │ │ │ │ ├── card-header.md │ │ │ │ ├── card-subtitle.md │ │ │ │ ├── card-content.md │ │ │ │ ├── refresher-content.md │ │ │ │ ├── card-title.md │ │ │ │ ├── menu-button.md │ │ │ │ ├── app.md │ │ │ │ ├── item-option.md │ │ │ │ ├── nav-link.md │ │ │ │ ├── slide.md │ │ │ │ ├── tab.md │ │ │ │ ├── accordion-group.md │ │ │ │ ├── col.md │ │ │ │ ├── router-link.md │ │ │ │ ├── row.md │ │ │ │ ├── breadcrumb.md │ │ │ │ ├── item-options.md │ │ │ │ └── nav.md │ │ └── json │ │ │ └── api-mappings.json │ ├── android-chrome-192x192.png │ ├── android-chrome-512x512.png │ ├── browserconfig.xml │ └── manifest.webmanifest ├── src │ ├── routes │ │ ├── +layout.ts │ │ ├── components │ │ │ ├── tabs │ │ │ │ ├── blabla │ │ │ │ │ └── +page.svelte │ │ │ │ ├── controllers │ │ │ │ │ └── +page.svelte │ │ │ │ ├── explain │ │ │ │ │ └── +page.svelte │ │ │ │ ├── +page.ts │ │ │ │ └── +layout.svelte │ │ │ ├── Nav │ │ │ │ └── +page.svelte │ │ │ ├── Inputs │ │ │ │ └── account.interface.ts │ │ │ ├── Toast │ │ │ │ └── +page.svelte │ │ │ ├── Loading │ │ │ │ └── +page.svelte │ │ │ ├── Splash │ │ │ │ └── +page.svelte │ │ │ ├── Popover │ │ │ │ └── +page.svelte │ │ │ ├── Text │ │ │ │ └── +page.svelte │ │ │ ├── ProgressBar │ │ │ │ └── +page.svelte │ │ │ ├── Badge │ │ │ │ └── +page.svelte │ │ │ ├── Range │ │ │ │ └── +page.svelte │ │ │ ├── Spinner │ │ │ │ └── +page.svelte │ │ │ ├── SvelteTweened │ │ │ │ └── +page.svelte │ │ │ ├── Actionsheet │ │ │ │ └── +page.svelte │ │ │ ├── Page │ │ │ │ └── +page.svelte │ │ │ ├── Button │ │ │ │ └── +page.svelte │ │ │ ├── Datetime │ │ │ │ └── +page.svelte │ │ │ ├── Picker │ │ │ │ └── +page.svelte │ │ │ ├── Radio │ │ │ │ └── +page.svelte │ │ │ ├── Grid │ │ │ │ └── +page.svelte │ │ │ └── SvelteSpring │ │ │ │ └── +page.svelte │ │ ├── +page.ts │ │ └── +layout.svelte │ ├── lib │ │ ├── services │ │ │ ├── menu.ts │ │ │ └── techs.ts │ │ ├── components │ │ │ ├── NavDetail.svelte │ │ │ ├── AltDetails.svelte │ │ │ ├── SomeOtherTab.svelte │ │ │ ├── SourceButton.svelte │ │ │ ├── TabsExplain.svelte │ │ │ ├── PopoverExtra.svelte │ │ │ ├── ModalExtra.svelte │ │ │ ├── IOSInstall.svelte │ │ │ └── NavHome.svelte │ │ └── IonTabsLegacy.svelte │ ├── app.d.ts │ └── app.html ├── copysourcetostatic.bat ├── screenshots │ ├── Ionic Svelte.fig │ ├── svelte-ionic-logo.png │ ├── favicon_package_v0.16.zip │ ├── favicon_package_v0.16 │ │ ├── favicon.ico │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── apple-touch-icon.png │ │ ├── mstile-150x150.png │ │ ├── android-chrome-192x192.png │ │ ├── android-chrome-512x512.png │ │ ├── browserconfig.xml │ │ └── site.webmanifest │ ├── localhost_3000_folder_Inbox(iPhone SE).png │ ├── localhost_3000_components_Badge(iPhone XR).png │ ├── localhost_3000_components_Card(iPhone SE).png │ ├── localhost_3000_folder_Inbox(iPhone SE) (1).png │ ├── localhost_3000_folder_Inbox(iPhone SE) (2).png │ └── localhost_3000_components_Card(iPhone SE) (1).png ├── repository-open-graph-template.png ├── .gitignore ├── vite.config.ts ├── svelte.config.js ├── tsconfig.json ├── LICENSE.md ├── MIGRATION.md ├── package.json └── pwa-configuration.ts ├── starterfiles ├── +layout.ts ├── +page.svelte └── +layout.svelte ├── .npmignore ├── scripts ├── package.json └── archived │ ├── typemap.xlsx │ ├── slotTemplate.js.old │ ├── sveltetemplate.js │ ├── ioncomponents.json │ └── importkeys.json ├── packages ├── create-ionic-svelte-app │ ├── .gitignore │ ├── README.md │ ├── LICENSE │ └── package.json └── create-capacitor-svelte-app │ ├── .gitignore │ ├── README.md │ ├── LICENSE │ └── package.json ├── components ├── ion-app.js ├── ion-col.js ├── ion-fab.js ├── ion-img.js ├── ion-nav.js ├── ion-row.js ├── ion-tab.js ├── ion-alert.js ├── ion-avatar.js ├── ion-badge.js ├── ion-button.js ├── ion-card.js ├── ion-chip.js ├── ion-footer.js ├── ion-grid.js ├── ion-header.js ├── ion-input.js ├── ion-item.js ├── ion-label.js ├── ion-list.js ├── ion-menu.js ├── ion-modal.js ├── ion-note.js ├── ion-picker.js ├── ion-radio.js ├── ion-range.js ├── ion-route.js ├── ion-router.js ├── ion-select.js ├── ion-tabs.js ├── ion-text.js ├── ion-title.js ├── ion-toast.js ├── ion-toggle.js ├── ion-backdrop.js ├── ion-buttons.js ├── ion-checkbox.js ├── ion-content.js ├── ion-datetime.js ├── ion-fab-list.js ├── ion-loading.js ├── ion-nav-link.js ├── ion-popover.js ├── ion-reorder.js ├── ion-segment.js ├── ion-spinner.js ├── ion-tab-bar.js ├── ion-textarea.js ├── ion-toolbar.js ├── ion-accordion.js ├── ion-back-button.js ├── ion-breadcrumb.js ├── ion-breadcrumbs.js ├── ion-card-header.js ├── ion-card-title.js ├── ion-fab-button.js ├── ion-item-group.js ├── ion-item-option.js ├── ion-list-header.js ├── ion-menu-button.js ├── ion-menu-toggle.js ├── ion-radio-group.js ├── ion-refresher.js ├── ion-router-link.js ├── ion-searchbar.js ├── ion-split-pane.js ├── ion-tab-button.js ├── ion-thumbnail.js ├── ion-action-sheet.js ├── ion-card-content.js ├── ion-card-subtitle.js ├── ion-item-divider.js ├── ion-item-options.js ├── ion-item-sliding.js ├── ion-picker-column.js ├── ion-picker-legacy.js ├── ion-progress-bar.js ├── ion-reorder-group.js ├── ion-ripple-effect.js ├── ion-router-outlet.js ├── ion-select-option.js ├── ion-skeleton-text.js ├── ion-accordion-group.js ├── ion-datetime-button.js ├── ion-infinite-scroll.js ├── ion-route-redirect.js ├── ion-segment-button.js ├── ion-refresher-content.js ├── ion-input-password-toggle.js ├── ion-picker-column-option.js ├── ion-infinite-scroll-content.js ├── NavEmpty.svelte ├── TabsEmpty.svelte ├── PageEmpty.svelte ├── IonPage.svelte └── IonNav.svelte ├── .gitignore ├── package.json ├── package.json.bak └── src ├── IonPage.svelte ├── IonNav.svelte ├── IonTabs.svelte └── IonTabsLegacy.svelte /demo-app/static/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Allow: / -------------------------------------------------------------------------------- /starterfiles/+layout.ts: -------------------------------------------------------------------------------- 1 | export const ssr = false; 2 | -------------------------------------------------------------------------------- /demo-app/src/routes/+layout.ts: -------------------------------------------------------------------------------- 1 | export const ssr = false; 2 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | scripts 2 | packages 3 | starterfiles 4 | experimental_index.d.ts 5 | demo-app -------------------------------------------------------------------------------- /scripts/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "https": "^1.0.0" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /demo-app/copysourcetostatic.bat: -------------------------------------------------------------------------------- 1 | xcopy src\routes\components static\assets\src\components /e 2 | -------------------------------------------------------------------------------- /packages/create-ionic-svelte-app/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | dist 4 | package 5 | .turbo -------------------------------------------------------------------------------- /packages/create-capacitor-svelte-app/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | dist 4 | package 5 | .turbo -------------------------------------------------------------------------------- /demo-app/static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/logo.png -------------------------------------------------------------------------------- /demo-app/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/favicon.ico -------------------------------------------------------------------------------- /demo-app/static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/favicon.png -------------------------------------------------------------------------------- /components/ion-app.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-app'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-col.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-col'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-fab.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-fab'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-img.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-img'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-nav.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-nav'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-row.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-row'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-tab.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-tab'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /scripts/archived/typemap.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/scripts/archived/typemap.xlsx -------------------------------------------------------------------------------- /components/ion-alert.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-alert'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-avatar.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-avatar'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-badge.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-badge'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-button.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-button'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-card.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-card'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-chip.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-chip'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-footer.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-footer'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-grid.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-grid'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-header.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-header'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-input.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-input'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-item.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-item'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-label.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-label'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-list.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-list'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-menu.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-menu'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-modal.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-modal'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-note.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-note'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-picker.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-picker'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-radio.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-radio'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-range.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-range'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-route.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-route'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-router.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-router'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-select.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-select'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-tabs.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-tabs'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-text.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-text'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-title.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-title'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-toast.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-toast'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-toggle.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-toggle'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /demo-app/src/lib/services/menu.ts: -------------------------------------------------------------------------------- 1 | import { writable } from 'svelte/store'; 2 | 3 | export const showMenu = writable(true); 4 | -------------------------------------------------------------------------------- /demo-app/static/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/favicon-16x16.png -------------------------------------------------------------------------------- /demo-app/static/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/favicon-32x32.png -------------------------------------------------------------------------------- /components/ion-backdrop.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-backdrop'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-buttons.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-buttons'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-checkbox.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-checkbox'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-content.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-content'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-datetime.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-datetime'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-fab-list.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-fab-list'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-loading.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-loading'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-nav-link.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-nav-link'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-popover.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-popover'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-reorder.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-reorder'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-segment.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-segment'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-spinner.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-spinner'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-tab-bar.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-tab-bar'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-textarea.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-textarea'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-toolbar.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-toolbar'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /demo-app/static/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/mstile-150x150.png -------------------------------------------------------------------------------- /components/ion-accordion.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-accordion'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-back-button.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-back-button'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-breadcrumb.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-breadcrumb'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-breadcrumbs.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-breadcrumbs'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-card-header.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-card-header'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-card-title.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-card-title'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-fab-button.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-fab-button'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-item-group.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-item-group'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-item-option.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-item-option'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-list-header.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-list-header'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-menu-button.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-menu-button'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-menu-toggle.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-menu-toggle'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-radio-group.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-radio-group'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-refresher.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-refresher'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-router-link.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-router-link'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-searchbar.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-searchbar'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-split-pane.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-split-pane'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-tab-button.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-tab-button'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-thumbnail.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-thumbnail'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /demo-app/screenshots/Ionic Svelte.fig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/Ionic Svelte.fig -------------------------------------------------------------------------------- /demo-app/static/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/apple-touch-icon.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/madison.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/madison.jpg -------------------------------------------------------------------------------- /components/ion-action-sheet.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-action-sheet'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-card-content.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-card-content'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-card-subtitle.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-card-subtitle'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-item-divider.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-item-divider'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-item-options.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-item-options'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-item-sliding.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-item-sliding'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-picker-column.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-picker-column'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-picker-legacy.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-picker-legacy'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-progress-bar.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-progress-bar'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-reorder-group.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-reorder-group'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-ripple-effect.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-ripple-effect'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-router-outlet.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-router-outlet'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-select-option.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-select-option'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-skeleton-text.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-skeleton-text'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /demo-app/static/assets/img/logo-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/logo-512.png -------------------------------------------------------------------------------- /components/ion-accordion-group.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-accordion-group'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-datetime-button.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-datetime-button'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-infinite-scroll.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-infinite-scroll'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-route-redirect.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-route-redirect'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-segment-button.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-segment-button'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /demo-app/repository-open-graph-template.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/repository-open-graph-template.png -------------------------------------------------------------------------------- /demo-app/screenshots/svelte-ionic-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/svelte-ionic-logo.png -------------------------------------------------------------------------------- /demo-app/static/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/android-chrome-192x192.png -------------------------------------------------------------------------------- /demo-app/static/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/android-chrome-512x512.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/pwa-download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/pwa-download.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/safari-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/safari-bar.png -------------------------------------------------------------------------------- /components/ion-refresher-content.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-refresher-content'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /demo-app/static/assets/img/great-success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/great-success.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/boniver.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/boniver.jpeg -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/kimbra.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/kimbra.jpeg -------------------------------------------------------------------------------- /demo-app/static/assets/img/slides/slide-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/slides/slide-1.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/slides/slide-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/slides/slide-2.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/slides/slide-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/slides/slide-3.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/slides/slide-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/slides/slide-4.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/slides/svelte.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/slides/svelte.png -------------------------------------------------------------------------------- /demo-app/static/assets/svelte-ionic-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/svelte-ionic-logo.png -------------------------------------------------------------------------------- /components/ion-input-password-toggle.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-input-password-toggle'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /components/ion-picker-column-option.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-picker-column-option'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /demo-app/screenshots/favicon_package_v0.16.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/favicon_package_v0.16.zip -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/avatar-ben.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/avatar-ben.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/avatar-finn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/avatar-finn.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/avatar-han.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/avatar-han.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/avatar-leia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/avatar-leia.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/avatar-luke.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/avatar-luke.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/avatar-poe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/avatar-poe.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/avatar-rey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/avatar-rey.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/avatar-yoda.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/avatar-yoda.png -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/ironwine.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/ironwine.jpeg -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/pinkfloyd.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/pinkfloyd.jpeg -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/thebeatles.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/thebeatles.jpeg -------------------------------------------------------------------------------- /demo-app/static/assets/img/slides/slide-22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/slides/slide-22.png -------------------------------------------------------------------------------- /components/ion-infinite-scroll-content.js: -------------------------------------------------------------------------------- 1 | import { defineCustomElement } from '@ionic/core/components/ion-infinite-scroll-content'; 2 | defineCustomElement(); 3 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/tabs/blabla/+page.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/chancetherapper.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/chancetherapper.jpeg -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/childishgambino.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/childishgambino.jpeg -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/porterrobinson.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/ionic/porterrobinson.jpeg -------------------------------------------------------------------------------- /demo-app/static/assets/img/safari-share-options.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/static/assets/img/safari-share-options.png -------------------------------------------------------------------------------- /demo-app/screenshots/favicon_package_v0.16/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/favicon_package_v0.16/favicon.ico -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/tabs/blabla/+page.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/tabs/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /demo-app/screenshots/favicon_package_v0.16/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/favicon_package_v0.16/favicon-16x16.png -------------------------------------------------------------------------------- /demo-app/screenshots/favicon_package_v0.16/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/favicon_package_v0.16/favicon-32x32.png -------------------------------------------------------------------------------- /demo-app/screenshots/favicon_package_v0.16/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/favicon_package_v0.16/apple-touch-icon.png -------------------------------------------------------------------------------- /demo-app/screenshots/favicon_package_v0.16/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/favicon_package_v0.16/mstile-150x150.png -------------------------------------------------------------------------------- /demo-app/screenshots/localhost_3000_folder_Inbox(iPhone SE).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/localhost_3000_folder_Inbox(iPhone SE).png -------------------------------------------------------------------------------- /demo-app/src/routes/components/tabs/controllers/+page.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/tabs/explain/+page.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/tabs/controllers/+page.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/tabs/explain/+page.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /demo-app/screenshots/localhost_3000_components_Badge(iPhone XR).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/localhost_3000_components_Badge(iPhone XR).png -------------------------------------------------------------------------------- /demo-app/screenshots/localhost_3000_components_Card(iPhone SE).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/localhost_3000_components_Card(iPhone SE).png -------------------------------------------------------------------------------- /demo-app/screenshots/localhost_3000_folder_Inbox(iPhone SE) (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/localhost_3000_folder_Inbox(iPhone SE) (1).png -------------------------------------------------------------------------------- /demo-app/screenshots/localhost_3000_folder_Inbox(iPhone SE) (2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/localhost_3000_folder_Inbox(iPhone SE) (2).png -------------------------------------------------------------------------------- /demo-app/screenshots/favicon_package_v0.16/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/favicon_package_v0.16/android-chrome-192x192.png -------------------------------------------------------------------------------- /demo-app/screenshots/favicon_package_v0.16/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/favicon_package_v0.16/android-chrome-512x512.png -------------------------------------------------------------------------------- /demo-app/screenshots/localhost_3000_components_Card(iPhone SE) (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tommertom/svelte-ionic-app/HEAD/demo-app/screenshots/localhost_3000_components_Card(iPhone SE) (1).png -------------------------------------------------------------------------------- /components/NavEmpty.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /components/TabsEmpty.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/tabs/[tab]/+page.ts: -------------------------------------------------------------------------------- 1 | import type { PageLoad } from './$types'; 2 | 3 | export const load: PageLoad = async ({ params }) => { 4 | const { tab } = params; 5 | return { tab }; 6 | }; 7 | -------------------------------------------------------------------------------- /components/PageEmpty.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /demo-app/src/routes/+page.ts: -------------------------------------------------------------------------------- 1 | import { redirect } from '@sveltejs/kit'; 2 | import type { PageLoad } from './$types'; 3 | 4 | export const load: PageLoad = async () => { 5 | throw redirect(301, '/components/Slides'); 6 | }; 7 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/tabs/+page.ts: -------------------------------------------------------------------------------- 1 | import { redirect } from '@sveltejs/kit'; 2 | import type { PageLoad } from './$types'; 3 | 4 | export const load: PageLoad = async () => { 5 | console.log('Doing a redirect on tabs'); 6 | throw redirect(301, 'tabs/test1'); 7 | }; 8 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/tabs/+page.ts: -------------------------------------------------------------------------------- 1 | import { redirect } from '@sveltejs/kit'; 2 | import type { PageLoad } from './$types'; 3 | 4 | export const load: PageLoad = async () => { 5 | console.log('Doing a redirect on tabs'); 6 | throw redirect(301, 'tabs/test1'); 7 | }; 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /build 4 | /.svelte-kit 5 | /package 6 | .env 7 | .env.* 8 | !.env.example 9 | /.firebase 10 | .firebaserc 11 | .npmrc 12 | .prettierignore 13 | .prettierrc 14 | .eslintignore 15 | .eslintrc.cjs 16 | firebase.json 17 | package-lock.json 18 | 19 | -------------------------------------------------------------------------------- /demo-app/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /build 4 | /.svelte-kit 5 | /package 6 | .env 7 | .env.* 8 | !.env.example 9 | /.firebase 10 | .firebaserc 11 | .npmrc 12 | .prettierignore 13 | .prettierrc 14 | .eslintignore 15 | .eslintrc.cjs 16 | firebase.json 17 | package-lock.json 18 | -------------------------------------------------------------------------------- /demo-app/src/app.d.ts: -------------------------------------------------------------------------------- 1 | // See https://kit.svelte.dev/docs/types#app 2 | // for information about these interfaces 3 | // and what to do when importing types 4 | declare namespace App { 5 | // interface Locals {} 6 | // interface PageData {} 7 | // interface Error {} 8 | // interface Platform {} 9 | } 10 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Nav/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Ionic Companion - Nav 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Nav/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Ionic Companion - Nav 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /demo-app/static/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | #da532c 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /demo-app/static/assets/img/ionic/avatar.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo-app/screenshots/favicon_package_v0.16/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | #da532c 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /demo-app/vite.config.ts: -------------------------------------------------------------------------------- 1 | import type { UserConfig } from 'vite'; 2 | 3 | import { sveltekit } from '@sveltejs/kit/vite'; 4 | import { VitePWA } from 'vite-plugin-pwa'; 5 | import { pwaConfiguration } from './pwa-configuration.js'; 6 | 7 | const config: UserConfig = { 8 | plugins: [VitePWA(pwaConfiguration), sveltekit()] 9 | }; 10 | 11 | export default config; 12 | -------------------------------------------------------------------------------- /demo-app/static/manifest.webmanifest: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xxxxx", 3 | "short_name": "xxxxx", 4 | "start_url": "/", 5 | "display": "standalone", 6 | "background_color": "#ffffff", 7 | "lang": "en", 8 | "scope": "/", 9 | "description": "THIS MANIFEST WILL BE OVERWRITTEN IN BUILT SO DONT WORRY CHANGING IT. NEEDED TO REMOVE DEV ERROR", 10 | "theme_color": "#ffffff", 11 | "icons": [] 12 | } 13 | -------------------------------------------------------------------------------- /demo-app/static/assets/json/api-mappings.json: -------------------------------------------------------------------------------- 1 | { 2 | "checkbox": "checkbox", 3 | "infinitescroll": "infinite-scroll", 4 | "slide": "slides", 5 | "inputs": "input", 6 | "icon": "https://ionicons.com/", 7 | "skeleton": "skeleton-text", 8 | "progressbar": "progress-bar", 9 | "splash": "https://www.youtube.com/watch?v=QTmkibc3WcI", 10 | "controller": "https://ionicframework.com/docs/api", 11 | "actionsheet": "action-sheet" 12 | } 13 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Inputs/account.interface.ts: -------------------------------------------------------------------------------- 1 | // https://zod.dev/ 2 | // https://morioh.com/p/cc9d89e8a10b 3 | import { z } from 'zod'; 4 | 5 | export const accountSchema = z.object({ 6 | firstName: z.string().trim().min(3, { message: 'first_name_too_short' }), 7 | lastName: z.string().trim().min(5, { message: 'last_name_too_short' }) 8 | }); 9 | 10 | // not used 11 | export type Account = z.infer; 12 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Inputs/account.interface.ts: -------------------------------------------------------------------------------- 1 | // https://zod.dev/ 2 | // https://morioh.com/p/cc9d89e8a10b 3 | import { z } from 'zod'; 4 | 5 | export const accountSchema = z.object({ 6 | firstName: z.string().trim().min(3, { message: 'first_name_too_short' }), 7 | lastName: z.string().trim().min(5, { message: 'last_name_too_short' }) 8 | }); 9 | 10 | // not used 11 | export type Account = z.infer; 12 | -------------------------------------------------------------------------------- /demo-app/screenshots/favicon_package_v0.16/site.webmanifest: -------------------------------------------------------------------------------- 1 | { 2 | "name": "", 3 | "short_name": "", 4 | "icons": [ 5 | { 6 | "src": "/android-chrome-192x192.png", 7 | "sizes": "192x192", 8 | "type": "image/png" 9 | }, 10 | { 11 | "src": "/android-chrome-512x512.png", 12 | "sizes": "512x512", 13 | "type": "image/png" 14 | } 15 | ], 16 | "theme_color": "#ffffff", 17 | "background_color": "#ffffff", 18 | "display": "standalone" 19 | } 20 | -------------------------------------------------------------------------------- /demo-app/svelte.config.js: -------------------------------------------------------------------------------- 1 | import adapter from '@sveltejs/adapter-static'; 2 | import preprocess from 'svelte-preprocess'; 3 | 4 | const config = { 5 | // Consult https://github.com/sveltejs/svelte-preprocess 6 | // for more information about preprocessors 7 | preprocess: preprocess(), 8 | 9 | kit: { 10 | adapter: adapter({ 11 | pages: 'build', 12 | assets: 'build', 13 | fallback: 'index.html', 14 | precompress: false 15 | }), 16 | alias: { 17 | $ionic: 'src/lib/ionic' 18 | } 19 | } 20 | }; 21 | 22 | export default config; 23 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/tabs/+layout.svelte: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/tabs/+layout.svelte: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /demo-app/src/lib/components/NavDetail.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | {tech.title} 15 | 16 | 17 | 18 | 19 |

{tech.description}

20 |
21 | -------------------------------------------------------------------------------- /demo-app/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./.svelte-kit/tsconfig.json", 3 | "compilerOptions": { 4 | "allowJs": true, 5 | "checkJs": true, 6 | "esModuleInterop": true, 7 | "forceConsistentCasingInFileNames": true, 8 | "resolveJsonModule": true, 9 | "skipLibCheck": true, 10 | "sourceMap": true, 11 | "strict": true, 12 | "typeRoots": ["./node_modules/ionic-svelte"], 13 | "types": ["ionic-svelte"], 14 | "verbatimModuleSyntax": true 15 | } 16 | // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias 17 | // 18 | // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes 19 | // from the referenced tsconfig.json - TypeScript does not merge them in 20 | } 21 | -------------------------------------------------------------------------------- /starterfiles/+page.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | A button 7 | Card 8 | 9 | 10 | 11 | 12 | 13 | 14 | Card Subtitle 15 | Card Title 16 | 17 | 18 | 19 | Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or 20 | spend a week in the woods. Wash your spirit clean. 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /packages/create-ionic-svelte-app/README.md: -------------------------------------------------------------------------------- 1 | # Create Ionic Svelte App 2 | 3 | This is the CLI tool for setting up a new Ionic App that uses [Ionic](https://ionic.io/), [SvelteKit](https://kit.svelte.dev/). 4 | 5 | `npm create ionic-svelte-app@latest` 6 | 7 | Is all you need to get started. It also supports using `npm`, `pnpm` and `yarn`. 8 | 9 | # Report an Issue 10 | 11 | - [Submit Issue](https://github.com/Tommertom/svelte-ionic-npm/issues) 12 | 13 | # Visit Ionic Svelte project 14 | 15 | https://ionic-svelte.firebaseapp.com/ 16 | 17 | # Acknownledgement 18 | 19 | This starter code is copied from Create Skeleton App. https://github.com/skeletonlabs/create-skeleton-app 20 | 21 | Support Skeleton! 22 | 23 | [![Skeleton](https://user-images.githubusercontent.com/1509726/199282306-7454adcb-b765-4618-8438-67655a7dee47.png)](https://www.skeleton.dev/) 24 | 25 | [![license](https://img.shields.io/badge/license-MIT-%23bada55)](https://github.com/Brain-Bones/skeleton/blob/master/LICENSE) 26 | -------------------------------------------------------------------------------- /demo-app/src/lib/components/AltDetails.svelte: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | Ionic Companion - AltDetail 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | {tech.title} 25 | 26 | 27 | 28 | 29 |

{tech.description}

30 |
31 | -------------------------------------------------------------------------------- /scripts/archived/slotTemplate.js.old: -------------------------------------------------------------------------------- 1 | module.exports = 2 | ` 3 | 4 | < 5 | this={tag} 6 | 7 | 8 | {...$$props} 9 | on:focus 10 | on:blur 11 | on:fullscreenchange 12 | on:fullscreenerror 13 | on:scroll 14 | on:cut 15 | on:copy 16 | on:paste 17 | on:keydown 18 | on:keypress 19 | on:keyup 20 | on:auxclick 21 | on:contextmenu 22 | on:dblclick 23 | on:mousedown 24 | on:mouseenter 25 | on:mouseleave 26 | on:mousemove 27 | on:mouseover 28 | on:mouseout 29 | on:mouseup 30 | on:pointerlockchange 31 | on:pointerlockerror 32 | on:select 33 | on:wheel 34 | on:drag 35 | on:dragend 36 | on:dragenter 37 | on:dragstart 38 | on:dragleave 39 | on:dragover 40 | on:drop 41 | on:touchcancel 42 | on:touchend 43 | on:touchmove 44 | on:touchstart 45 | on:pointerover 46 | on:pointerenter 47 | on:pointerdown 48 | on:pointermove 49 | on:pointerup 50 | on:pointercancel 51 | on:pointerout 52 | on:pointerleave 53 | on:gotpointercapture 54 | on:lostpointercapture 55 | on:click> > 56 | ` 57 | -------------------------------------------------------------------------------- /packages/create-capacitor-svelte-app/README.md: -------------------------------------------------------------------------------- 1 | # Create Capacitor Svelte App 2 | 3 | This is the CLI tool for setting up a new Capacitor App that uses [Capacitor](https://capacitorjs.com/), [SvelteKit](https://kit.svelte.dev/). 4 | 5 | `npm create capacitor-svelte-app@latest` 6 | 7 | Is all you need to get started. It also supports using `npm`, `pnpm` and `yarn`. 8 | 9 | # Report an Issue 10 | 11 | - [Submit Issue](https://github.com/Tommertom/svelte-ionic-npm/issues) 12 | 13 | # Visit Ionic Svelte project 14 | 15 | https://ionic-svelte.firebaseapp.com/ 16 | 17 | # Acknownledgement 18 | 19 | This starter code is copied from Create Skeleton App. https://github.com/skeletonlabs/create-skeleton-app 20 | 21 | Support Skeleton! 22 | 23 | [![Skeleton](https://user-images.githubusercontent.com/1509726/199282306-7454adcb-b765-4618-8438-67655a7dee47.png)](https://www.skeleton.dev/) 24 | 25 | [![license](https://img.shields.io/badge/license-MIT-%23bada55)](https://github.com/Brain-Bones/skeleton/blob/master/LICENSE) 26 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ionic-svelte", 3 | "version": "0.5.85", 4 | "private": false, 5 | "homepage": "https://ionic-svelte.firebaseapp.com", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/Tommertom/svelte-ionic-app.git" 9 | }, 10 | "keywords": [ 11 | "ui library", 12 | "ui", 13 | "ionic", 14 | "svelte", 15 | "sveltekit", 16 | "vite" 17 | ], 18 | "main": "index.ts", 19 | "module": "index.ts", 20 | "types": "index.d.ts", 21 | "bugs": { 22 | "url": "https://github.com/Tommertom/svelte-ionic-app/issues" 23 | }, 24 | "description": "The NPM library to implement Ionic in any Svelte project - supporting SvelteKit and Svelte with Vite", 25 | "scripts": { 26 | "lint": "prettier --check . && eslint .", 27 | "format": "prettier --write ." 28 | }, 29 | "type": "module", 30 | "devDependencies": { 31 | "prettier-plugin-svelte": "^3.2.6", 32 | "svelte": "^4.0.5" 33 | }, 34 | "dependencies": { 35 | "@ionic/core": "^8.2.2", 36 | "swiper": "^9.2.4" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /package.json.bak: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ionic-svelte", 3 | "version": "0.5.83", 4 | "private": false, 5 | "homepage": "https://ionic-svelte.firebaseapp.com", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/Tommertom/svelte-ionic-app.git" 9 | }, 10 | "keywords": [ 11 | "ui library", 12 | "ui", 13 | "ionic", 14 | "svelte", 15 | "sveltekit", 16 | "vite" 17 | ], 18 | "main": "index.ts", 19 | "module": "index.ts", 20 | "types": "index.d.ts", 21 | "bugs": { 22 | "url": "https://github.com/Tommertom/svelte-ionic-app/issues" 23 | }, 24 | "description": "The NPM library to implement Ionic in any Svelte project - supporting SvelteKit and Svelte with Vite", 25 | "scripts": { 26 | "lint": "prettier --plugin-search-dir . --check . && eslint .", 27 | "format": "prettier --plugin-search-dir . --write ." 28 | }, 29 | "type": "module", 30 | "devDependencies": { 31 | "svelte": "^4.0.5" 32 | }, 33 | "dependencies": { 34 | "@ionic/core": "^8.2.2", 35 | "swiper": "^9.2.4" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /demo-app/src/routes/+layout.svelte: -------------------------------------------------------------------------------- 1 | 33 | 34 | 35 | 36 | 37 |
38 | 39 |
40 | 41 | 42 | -------------------------------------------------------------------------------- /demo-app/src/lib/components/SomeOtherTab.svelte: -------------------------------------------------------------------------------- 1 | 20 | 21 | 22 |
23 |
24 |
25 |
26 | 27 |
28 | {#key show} 29 | Great success 33 | 34 |
Great success!
35 | {/key} 36 |
37 |
38 | 39 | 46 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Toast/+page.svelte: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | Ionic Companion - Toast 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | Toast 33 | 34 | 35 | 36 | 37 | Click me! 38 | 39 | 40 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Toast/+page.svelte: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | Ionic Companion - Toast 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | Toast 33 | 34 | 35 | 36 | 37 | Click me! 38 | 39 | 40 | -------------------------------------------------------------------------------- /demo-app/LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright 2019-present Tom Gruintjes 2 | 3 | MIT License 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Loading/+page.svelte: -------------------------------------------------------------------------------- 1 | 21 | 22 | 23 | Ionic Companion - Loading 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | Loading 36 | 37 | 38 | 39 | 40 | Click me! 41 | 42 | 43 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Loading/+page.svelte: -------------------------------------------------------------------------------- 1 | 21 | 22 | 23 | Ionic Companion - Loading 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | Loading 36 | 37 | 38 | 39 | 40 | Click me! 41 | 42 | 43 | -------------------------------------------------------------------------------- /packages/create-ionic-svelte-app/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Skeleton Labs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/create-capacitor-svelte-app/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Skeleton Labs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /scripts/archived/sveltetemplate.js: -------------------------------------------------------------------------------- 1 | module.exports = ` 11 | 12 | < 13 | 14 | 15 | {...$$props} 16 | on:focus 17 | on:blur 18 | on:fullscreenchange 19 | on:fullscreenerror 20 | on:scroll 21 | on:cut 22 | on:copy 23 | on:paste 24 | on:keydown 25 | on:keypress 26 | on:keyup 27 | on:auxclick 28 | on:contextmenu 29 | on:dblclick 30 | on:mousedown 31 | on:mouseenter 32 | on:mouseleave 33 | on:mousemove 34 | on:mouseover 35 | on:mouseout 36 | on:mouseup 37 | on:pointerlockchange 38 | on:pointerlockerror 39 | on:select 40 | on:wheel 41 | on:drag 42 | on:dragend 43 | on:dragenter 44 | on:dragstart 45 | on:dragleave 46 | on:dragover 47 | on:drop 48 | on:touchcancel 49 | on:touchend 50 | on:touchmove 51 | on:touchstart 52 | on:pointerover 53 | on:pointerenter 54 | on:pointerdown 55 | on:pointermove 56 | on:pointerup 57 | on:pointercancel 58 | on:pointerout 59 | on:pointerleave 60 | on:gotpointercapture 61 | on:lostpointercapture 62 | on:click> > 63 | `; 64 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/card-header.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-card-header' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/card-header/props.md'; 10 | import Events from '@site/static/auto-generated/card-header/events.md'; 11 | import Methods from '@site/static/auto-generated/card-header/methods.md'; 12 | import Parts from '@site/static/auto-generated/card-header/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/card-header/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/card-header/slots.md'; 15 | 16 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 17 | import APITOCInline from '@components/page/api/APITOCInline'; 18 | 19 | 20 | 21 |

Contents

22 | 23 | 28 | 29 | `ion-card-header` is a header component for `ion-card`. 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /starterfiles/+layout.svelte: -------------------------------------------------------------------------------- 1 | 30 | 31 | 32 | 33 | 34 |
35 | 36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/card-subtitle.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-card-subtitle' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/card-subtitle/props.md'; 10 | import Events from '@site/static/auto-generated/card-subtitle/events.md'; 11 | import Methods from '@site/static/auto-generated/card-subtitle/methods.md'; 12 | import Parts from '@site/static/auto-generated/card-subtitle/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/card-subtitle/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/card-subtitle/slots.md'; 15 | 16 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 17 | import APITOCInline from '@components/page/api/APITOCInline'; 18 | 19 | 20 | 21 |

Contents

22 | 23 | 28 | 29 | `ion-card-subtitle` is a child component of `ion-card` 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /src/IonPage.svelte: -------------------------------------------------------------------------------- 1 | 35 | 36 |
37 | 38 |
39 | -------------------------------------------------------------------------------- /demo-app/src/lib/components/SourceButton.svelte: -------------------------------------------------------------------------------- 1 | 22 | 23 |
24 | 25 |
26 | 27 | { 30 | isOpen = false; 31 | }}> 32 | 33 | 34 | 35 | 59 | -------------------------------------------------------------------------------- /demo-app/src/lib/components/TabsExplain.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Ionic Companion - Tabs Explain 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Explanation 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |

Explanation of TABS

23 | 24 |

25 | Tabs are a real joy working within Svelte since we are now able to use SvelteKit routing and 26 | layouts to create nested routeroutlets. This demo app itself has not yet been upgraded to this, 27 | but there is a HOWTO-you can look at to see how it works. 28 |

29 | 30 |

31 | Use a href to navigate to other tabs 32 | explain 33 |

34 | 35 |

This also solves some earlier issues and eases the DX.

36 |

37 | https://github.com/Tommertom/ionic-svelte-tabs-howto 39 |

40 |
41 | -------------------------------------------------------------------------------- /demo-app/src/lib/components/PopoverExtra.svelte: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 | Ionic Companion - Popover extra 18 | 19 | 20 | Ionic 21 | { 24 | closeOverlay('Learn Ionic'); 25 | }}> 26 | Learn Ionic 27 | 28 | { 31 | closeOverlay('Documentation'); 32 | }}> 33 | Documentation 34 | 35 | { 38 | closeOverlay('Showcase'); 39 | }}> 40 | Showcase 41 | 42 | { 45 | closeOverlay('Github'); 46 | }}> 47 | GitHub Repo 48 | 49 | 50 | 51 | { 54 | closeOverlay(undefined); 55 | }}> 56 | Close 57 | 58 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/card-content.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-card-content' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/card-content/props.md'; 10 | import Events from '@site/static/auto-generated/card-content/events.md'; 11 | import Methods from '@site/static/auto-generated/card-content/methods.md'; 12 | import Parts from '@site/static/auto-generated/card-content/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/card-content/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/card-content/slots.md'; 15 | 16 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 17 | import APITOCInline from '@components/page/api/APITOCInline'; 18 | 19 |

Contents

20 | 21 | 26 | 27 | `ion-card-content` is child component of `ion-card` that adds some content padding. 28 | It is recommended that any text content for a card should be placed in an `ion-card-content`. 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /components/IonPage.svelte: -------------------------------------------------------------------------------- 1 | 37 | 38 |
39 | 40 |
41 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/tabs/[tab]/+page.svelte: -------------------------------------------------------------------------------- 1 | 32 | 33 | 40 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Splash/+page.svelte: -------------------------------------------------------------------------------- 1 | 27 | 28 | 29 | 30 |
31 |

32 |
33 |
34 |
35 | Great success 39 |


40 |
Great success!
41 |
42 |
43 | 44 | 55 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Splash/+page.svelte: -------------------------------------------------------------------------------- 1 | 27 | 28 | 29 | 30 |
31 |

32 |
33 |
34 |
35 | Great success 39 |


40 |
Great success!
41 |
42 |
43 | 44 | 55 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Popover/+page.svelte: -------------------------------------------------------------------------------- 1 | 27 | 28 | 29 | Ionic Companion - Popovers 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | Popovers 42 | 43 | 44 | 45 | 46 | Click me! 47 | 48 | 49 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Popover/+page.svelte: -------------------------------------------------------------------------------- 1 | 27 | 28 | 29 | Ionic Companion - Popovers 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | Popovers 42 | 43 | 44 | 45 | 46 | Click me! 47 | 48 | 49 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Inputs/+page.server.ts: -------------------------------------------------------------------------------- 1 | import type { PageServerLoad } from './$types'; 2 | import type { Actions } from './$types'; 3 | 4 | import { accountSchema } from './account.interface'; 5 | 6 | export const load = (async () => { 7 | return {}; 8 | }) satisfies PageServerLoad; 9 | 10 | export const actions = { 11 | default: async ({ request }) => { 12 | let success = true; 13 | let errors = {}; 14 | 15 | const formBody = await request.formData(); 16 | let formAsObject = Object.fromEntries(formBody); 17 | 18 | const result = accountSchema.safeParse(formAsObject); 19 | console.log('newAccountSchema.safeParse result', formAsObject, result); 20 | if (!result.success) { 21 | /* 22 | Taken from - https://www.okupter.com/blog/sveltekit-form-validation-with-zod 23 | 24 | Errors will be placed in an array of: 25 | {field:'name', message:'the message'} 26 | */ 27 | errors = result.error.errors.map((error) => { 28 | return { 29 | field: error.path[0], 30 | message: error.message 31 | }; 32 | }); 33 | console.log('newAccountSchema.safeParse errors', errors); 34 | success = false; 35 | } 36 | 37 | if (result.success) { 38 | formAsObject = result.data; 39 | } 40 | 41 | console.log('Logging to vite window', formAsObject, errors, success); 42 | return { success, errors, formData: formAsObject }; 43 | } 44 | } satisfies Actions; 45 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/refresher-content.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-refresher-content' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/refresher-content/props.md'; 10 | import Events from '@site/static/auto-generated/refresher-content/events.md'; 11 | import Methods from '@site/static/auto-generated/refresher-content/methods.md'; 12 | import Parts from '@site/static/auto-generated/refresher-content/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/refresher-content/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/refresher-content/slots.md'; 15 | 16 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 17 | import APITOCInline from '@components/page/api/APITOCInline'; 18 | 19 |

Contents

20 | 21 | 26 | 27 | The refresher content contains the text, icon and spinner to display during a pull-to-refresh. Ionic provides the pulling icon and refreshing spinner based on the platform. However, the default icon, spinner, and text can be customized based on the state of the refresher. 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /demo-app/MIGRATION.md: -------------------------------------------------------------------------------- 1 | # Migrating to Ionic 7 from Ionic 6 2 | 3 | So these are the steps I took to migrate the Ionic demo from Ionic 6 to Ionic 7: 4 | 5 | - npm i ionic-svelte@0.5.77 6 | - npm i @ionic/core@7.0.2 7 | (or take the latest version as you can see https://www.npmjs.com/package/ionic-svelte) 8 | - npm cache clean --force - possibly not necessary ion your end, but it was on mine 9 | - update ionic components as per https://ionicframework.com/docs/updating/7-0 10 | - but even better - look at the breaking changes https://github.com/ionic-team/ionic-framework/blob/main/BREAKING.md#version-7x 11 | - and the warnings you get especially on the forms-related components - see https://ionicframework.com/docs/api/input#migrating-from-legacy-input-syntax 12 | - implemented Slides via Swiper 9 (webcomponents) - https://swiperjs.com/element: 13 | 14 | - npm install swiper 15 | - configure as ion-slides was doing https://ionicframework.com/docs/angular/slides 16 | - styling https://ionicframework.com/docs/angular/slides#additional-ion-slides-styles 17 | - fix styling problem - add `flex-direction: column;` for `swiper-slide` 18 | - check events https://ionicframework.com/docs/angular/slides#events 19 | 20 | - started implementing superforms as forms library https://superforms.vercel.app/, see Inputs. Issues: 21 | - input in form fields are not detected 22 | - hence likely the client side validation fails 23 | - how to do do the multi-input item with ion-label (now giving Ionic warning) 24 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/card-title.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-card-title' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/card-title/props.md'; 10 | import Events from '@site/static/auto-generated/card-title/events.md'; 11 | import Methods from '@site/static/auto-generated/card-title/methods.md'; 12 | import Parts from '@site/static/auto-generated/card-title/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/card-title/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/card-title/slots.md'; 15 | 16 | 17 | ion-card-title | Ionic App Card Title Component and Properties 18 | 19 | 20 | 21 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 22 | import APITOCInline from '@components/page/api/APITOCInline'; 23 | 24 | 25 | 26 |

Contents

27 | 28 | 33 | 34 | `ion-card-title` is a child component of `ion-card` 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/menu-button.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-menu-button' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/menu-button/props.md'; 10 | import Events from '@site/static/auto-generated/menu-button/events.md'; 11 | import Methods from '@site/static/auto-generated/menu-button/methods.md'; 12 | import Parts from '@site/static/auto-generated/menu-button/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/menu-button/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/menu-button/slots.md'; 15 | 16 | 17 | Menu Button | ion-menu-button to Open an App Menu on A Page 18 | 19 | 20 | 21 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 22 | import APITOCInline from '@components/page/api/APITOCInline'; 23 | 24 | 25 | 26 |

Contents

27 | 28 | 33 | 34 | Menu Button is component that automatically creates the icon and functionality to open a menu on a page. 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /demo-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "IonicSvelteKit", 3 | "version": "0.0.1", 4 | "private": true, 5 | "homepage": "https://ionic-svelte.firebaseapp.com", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/Tommertom/svelte-ionic-npm.git" 9 | }, 10 | "scripts": { 11 | "dev": "vite dev --host", 12 | "build": "vite build", 13 | "preview": "vite preview", 14 | "deploy": "vite build && firebase deploy", 15 | "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", 16 | "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", 17 | "lint": "prettier --plugin-search-dir . --check . && eslint .", 18 | "format": "prettier --plugin-search-dir . --write .", 19 | "doctoc": "doctoc README.md" 20 | }, 21 | "devDependencies": { 22 | "@sveltejs/adapter-static": "^3", 23 | "@sveltejs/kit": "^2", 24 | "@typescript-eslint/eslint-plugin": "^6", 25 | "@typescript-eslint/parser": "^6", 26 | "eslint": "^8.28.0", 27 | "eslint-config-prettier": "^9", 28 | "eslint-plugin-svelte": "^2", 29 | "ionicons": "^7", 30 | "prettier": "^3", 31 | "prettier-plugin-svelte": "^3", 32 | "svelte": "^4", 33 | "svelte-check": "^3", 34 | "svelte-highlight": "^7.1.2", 35 | "svelte-preprocess": "^6", 36 | "sveltekit-superforms": "^2", 37 | "tslib": "^2.4.1", 38 | "typescript": "^5", 39 | "vite": "^5", 40 | "vite-plugin-pwa": "^0.20", 41 | "zod": "^3.21.4" 42 | }, 43 | "type": "module", 44 | "dependencies": { 45 | "@ionic/core": "^7.0.2", 46 | "ionic-svelte": "^0.5.77", 47 | "localforage": "^1.10.0" 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /packages/create-ionic-svelte-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "create-ionic-svelte-app", 3 | "version": "0.0.38", 4 | "description": "Use this CLI app to setup a new Ionic application in a new SvelteKit project.", 5 | "keywords": [ 6 | "ionic", 7 | "svelte", 8 | "sveltekit", 9 | "svelte-kit" 10 | ], 11 | "homepage": "https://ionic-svelte.firebaseapp.com", 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/Tommertom/svelte-ionic-npm", 15 | "directory": "packages/create-ionic-svelte-app/" 16 | }, 17 | "license": "MIT", 18 | "author": "Tommertom", 19 | "type": "module", 20 | "main": "./src/index.js", 21 | "bin": { 22 | "create-ionic-svelte-app": "./src/index.js" 23 | }, 24 | "files": [ 25 | "src/**" 26 | ], 27 | "engines": { 28 | "node": ">=14.16" 29 | }, 30 | "scripts": { 31 | "dev": "node src/index.js", 32 | "long": "node src/index.js --types=typescript --prettier --eslint --playwright=false -f svelte-kit --ionicons=false", 33 | "pub:beta": "npm publish --tag beta", 34 | "pub:next": "npm publish --tag next", 35 | "pub:release": "npm publish", 36 | "release": "npm publish", 37 | "start": "node dist/index.js" 38 | }, 39 | "dependencies": { 40 | "create-svelte": "^6.3.5", 41 | "fs-extra": "^10.1.0", 42 | "ip": "^1.1.8", 43 | "kleur": "^4.1.5", 44 | "mri": "^1.2.0", 45 | "prompts": "^2.4.2" 46 | }, 47 | "devDependencies": { 48 | "bumpp": "^8.2.1", 49 | "eslint": "^8.28.0", 50 | "standard-version": "^9.5.0", 51 | "svelte": "^4.2.7" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/create-capacitor-svelte-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "create-capacitor-svelte-app", 3 | "version": "0.0.25", 4 | "description": "Use this CLI app to setup a new Capacitor application in a new SvelteKit project.", 5 | "keywords": [ 6 | "capacitor", 7 | "ionic", 8 | "svelte", 9 | "sveltekit", 10 | "svelte-kit" 11 | ], 12 | "homepage": "https://ionic-svelte.firebaseapp.com", 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/Tommertom/svelte-ionic-npm", 16 | "directory": "packages/create-capacitor-svelte-app/" 17 | }, 18 | "license": "MIT", 19 | "author": "Tommertom", 20 | "type": "module", 21 | "main": "./src/index.js", 22 | "bin": { 23 | "create-ionic-svelte-app": "./src/index.js" 24 | }, 25 | "files": [ 26 | "src/**" 27 | ], 28 | "engines": { 29 | "node": ">=14.16" 30 | }, 31 | "scripts": { 32 | "dev": "node src/index.js", 33 | "long": "node src/index.js --types=typescript --prettier --eslint --playwright=false -f svelte-kit --ionicons=false", 34 | "pub:beta": "npm publish --tag beta", 35 | "pub:next": "npm publish --tag next", 36 | "pub:release": "npm publish", 37 | "release": "npm publish", 38 | "start": "node dist/index.js" 39 | }, 40 | "dependencies": { 41 | "create-svelte": "^6.3.5", 42 | "fs-extra": "^10.1.0", 43 | "ip": "^1.1.8", 44 | "kleur": "^4.1.5", 45 | "mri": "^1.2.0", 46 | "prompts": "^2.4.2" 47 | }, 48 | "devDependencies": { 49 | "bumpp": "^8.2.1", 50 | "eslint": "^8.28.0", 51 | "fs": "^0.0.1-security", 52 | "path": "^0.12.7", 53 | "standard-version": "^9.5.0", 54 | "svelte": "^4.2.7" 55 | } 56 | } -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/app.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-app' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/app/props.md'; 10 | import Events from '@site/static/auto-generated/app/events.md'; 11 | import Methods from '@site/static/auto-generated/app/methods.md'; 12 | import Parts from '@site/static/auto-generated/app/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/app/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/app/slots.md'; 15 | 16 | 17 | ion-app: Container Element for an Ionic Application 18 | 19 | 20 | 21 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 22 | import APITOCInline from '@components/page/api/APITOCInline'; 23 | 24 |

Contents

25 | 26 | 31 | 32 | App is a container element for an Ionic application. There should only be one `` element per project. An app can have many Ionic components including menus, headers, content, and footers. The overlay components get appended to the `` when they are presented. 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/item-option.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-item-option' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/item-option/props.md'; 10 | import Events from '@site/static/auto-generated/item-option/events.md'; 11 | import Methods from '@site/static/auto-generated/item-option/methods.md'; 12 | import Parts from '@site/static/auto-generated/item-option/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/item-option/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/item-option/slots.md'; 15 | 16 | 17 | ion-item-options: Option Button Components for Ionic Apps 18 | 19 | 20 | 21 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 22 | import APITOCInline from '@components/page/api/APITOCInline'; 23 | 24 | 25 | 26 |

Contents

27 | 28 | 33 | 34 | The option button for an `ion-item-sliding`. Must be placed inside of an ``. 35 | You can combine the `ionSwipe` event and the `expandable` directive to create a full swipe 36 | action for the item. 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/nav-link.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-nav-link' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/nav-link/props.md'; 10 | import Events from '@site/static/auto-generated/nav-link/events.md'; 11 | import Methods from '@site/static/auto-generated/nav-link/methods.md'; 12 | import Parts from '@site/static/auto-generated/nav-link/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/nav-link/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/nav-link/slots.md'; 15 | 16 | 17 | ion-nav-link: The Element for Navigation to a Specified Component 18 | 19 | 20 | 21 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 22 | import APITOCInline from '@components/page/api/APITOCInline'; 23 | 24 |

Contents

25 | 26 | 31 | 32 | A navigation link is used to navigate to a specified component. The component can be navigated to by going `forward`, `back` or as a `root` component. 33 | 34 | It is the element form of calling the `push()`, `pop()`, and `setRoot()` methods on the navigation controller. 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/slide.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-slide' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/slide/props.md'; 10 | import Events from '@site/static/auto-generated/slide/events.md'; 11 | import Methods from '@site/static/auto-generated/slide/methods.md'; 12 | import Parts from '@site/static/auto-generated/slide/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/slide/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/slide/slots.md'; 15 | 16 | 17 | ion-slide | Slide API Component for Ionic Framework Apps 18 | 19 | 20 | 21 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 22 | import APITOCInline from '@components/page/api/APITOCInline'; 23 | 24 |

Contents

25 | 26 | 31 | 32 | The Slide component is a child component of [Slides](slides.md). The template 33 | should be written as `ion-slide`. Any slide content should be written 34 | in this component and it should be used in conjunction with [Slides](slides.md). 35 | 36 | See the [Slides API Docs](slides.md) for more usage information. 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/IonNav.svelte: -------------------------------------------------------------------------------- 1 | 48 | 49 | 59 | -------------------------------------------------------------------------------- /components/IonNav.svelte: -------------------------------------------------------------------------------- 1 | 63 | 64 | 74 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Text/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Text 16 | 17 | 18 | 19 | 20 | 21 |

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

22 |
23 | 24 | 25 |

Nam rutrum justo massa, maximus elementum leo dignissim ac.

26 |
27 | 28 | 29 |

Vestibulum eleifend lorem nec neque interdum varius.

30 |
31 | 32 | 33 |

Sed in neque at nibh congue tincidunt.

34 |
35 | 36 | 37 |
38 | Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; 39 |
40 |
41 | 42 | 43 |
Suspendisse potenti.
44 |
45 | 46 |

47 | Donec magna odio, 48 | semper 49 | ac nibh et, vestibulum eleifend felis. Donec 50 | pulvinar 51 | ex non quam vulputate malesuada in a magna. Praesent massa arcu, 52 | vehicula 53 | id pharetra et, cursus at lectus. 54 |

55 |
56 |
57 | 58 | 63 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Text/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Text 16 | 17 | 18 | 19 | 20 | 21 |

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

22 |
23 | 24 | 25 |

Nam rutrum justo massa, maximus elementum leo dignissim ac.

26 |
27 | 28 | 29 |

Vestibulum eleifend lorem nec neque interdum varius.

30 |
31 | 32 | 33 |

Sed in neque at nibh congue tincidunt.

34 |
35 | 36 | 37 |
38 | Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; 39 |
40 |
41 | 42 | 43 |
Suspendisse potenti.
44 |
45 | 46 |

47 | Donec magna odio, 48 | semper 49 | ac nibh et, vestibulum eleifend felis. Donec 50 | pulvinar 51 | ex non quam vulputate malesuada in a magna. Praesent massa arcu, 52 | vehicula 53 | id pharetra et, cursus at lectus. 54 |

55 |
56 |
57 | 58 | 63 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/ProgressBar/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Ionic Companion - Progressbar 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Progress Bar 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | Default 28 | 29 | 30 | 31 | 32 | 33 | 34 | Default at 50% 35 | 36 | 37 | 38 | 39 | 40 | 41 | Colorized 42 | 43 | 44 | 45 | 46 | 47 | 48 | Indeterminate 49 | 50 | 51 | 52 | 53 | Indeterminate (reversed) 54 | 55 | 56 | 57 | 58 | Buffer 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/ProgressBar/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Ionic Companion - Progressbar 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Progress Bar 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | Default 28 | 29 | 30 | 31 | 32 | 33 | 34 | Default at 50% 35 | 36 | 37 | 38 | 39 | 40 | 41 | Colorized 42 | 43 | 44 | 45 | 46 | 47 | 48 | Indeterminate 49 | 50 | 51 | 52 | 53 | Indeterminate (reversed) 54 | 55 | 56 | 57 | 58 | Buffer 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /demo-app/src/lib/services/techs.ts: -------------------------------------------------------------------------------- 1 | export interface Tech { 2 | title: string; 3 | icon: string; 4 | description: string; 5 | color: string; 6 | } 7 | 8 | export const techs = [ 9 | { 10 | title: 'Angular', 11 | icon: 'logoAngular', 12 | description: 13 | 'A powerful Javascript framework for building single page apps. Angular is open source, and maintained by Google.', 14 | color: '#E63135' 15 | }, 16 | { 17 | title: 'CSS3', 18 | icon: 'logoCss3', 19 | description: 'The latest version of cascading stylesheets - the styling language of the web!', 20 | color: '#0CA9EA' 21 | }, 22 | { 23 | title: 'HTML5', 24 | icon: 'logoHtml5', 25 | description: "The latest version of the web's markup language.", 26 | color: '#F46529' 27 | }, 28 | { 29 | title: 'JavaScript', 30 | icon: 'logoJavascript', 31 | description: 'One of the most popular programming languages on the Web!', 32 | color: '#FFD439' 33 | }, 34 | { 35 | title: 'Sass', 36 | icon: 'logoSass', 37 | description: 38 | 'Syntactically Awesome Stylesheets - a mature, stable, and powerful professional grade CSS extension.', 39 | color: '#CE6296' 40 | }, 41 | { 42 | title: 'NodeJS', 43 | icon: 'logoNodejs', 44 | description: 45 | 'An open-source, cross-platform runtime environment for developing server-side Web applications.', 46 | color: '#78BD43' 47 | }, 48 | { 49 | title: 'Python', 50 | icon: 'logoPython', 51 | description: 'A clear and powerful object-oriented programming language!', 52 | color: '#3575AC' 53 | }, 54 | { 55 | title: 'Markdown', 56 | icon: 'logoMarkdown', 57 | description: 58 | 'A super simple way to add formatting like headers, bold, bulleted lists, and so on to plain text.', 59 | color: '#412159' 60 | }, 61 | { 62 | title: 'Tux', 63 | icon: 'logoTux', 64 | description: 'The official mascot of the Linux kernel!', 65 | color: '#000' 66 | } 67 | ]; 68 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Badge/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Badges 16 | 17 | 18 | 19 | 20 | 21 | Badges 22 | 23 | Followers 24 | 22k 25 | 26 | 27 | Likes 28 | 118k 29 | 30 | 31 | Stars 32 | 34k 33 | 34 | 35 | Completed 36 | 80 37 | 38 | 39 | Warnings 40 | 70 41 | 42 | 43 | Notifications 44 | 1000 45 | 46 | 47 | Unread 48 | 24 49 | 50 | 51 | Drafts 52 | 14 53 | 54 | 55 | Deleted 56 | 4 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /demo-app/src/app.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 40 | 41 | Ionic + SvelteKit 42 | %sveltekit.head% 43 | 44 | 45 | 46 |
%sveltekit.body%
47 | 48 | 49 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Badge/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Badges 16 | 17 | 18 | 19 | 20 | 21 | Badges 22 | 23 | Followers 24 | 22k 25 | 26 | 27 | Likes 28 | 118k 29 | 30 | 31 | Stars 32 | 34k 33 | 34 | 35 | Completed 36 | 80 37 | 38 | 39 | Warnings 40 | 70 41 | 42 | 43 | Notifications 44 | 1000 45 | 46 | 47 | Unread 48 | 24 49 | 50 | 51 | Drafts 52 | 14 53 | 54 | 55 | Deleted 56 | 4 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/tab.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-tab' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/tab/props.md'; 10 | import Events from '@site/static/auto-generated/tab/events.md'; 11 | import Methods from '@site/static/auto-generated/tab/methods.md'; 12 | import Parts from '@site/static/auto-generated/tab/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/tab/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/tab/slots.md'; 15 | 16 | 17 | ion-tab - Ionic Framework Application Component 18 | 19 | 20 | 21 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 22 | import APITOCInline from '@components/page/api/APITOCInline'; 23 | 24 | 25 | 26 |

Contents

27 | 28 | 33 | 34 | The tab component is a child component of [tabs](tabs.md). Each tab can contain a top level navigation stack for an app or a single view. An app can have many tabs, all with their own independent navigation. 35 | 36 | :::note 37 | Note: This component should only be used with vanilla or Stencil JavaScript projects. For Angular, React, and Vue apps you do not need to use `ion-tab` to declare your tab components. 38 | ::: 39 | 40 | See the [tabs documentation](tabs.md) for more details on configuring tabs. 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /scripts/archived/ioncomponents.json: -------------------------------------------------------------------------------- 1 | [ 2 | "ion-accordion", 3 | "ion-accordion-group", 4 | "ion-app", 5 | "ion-avatar", 6 | "ion-backdrop", 7 | "ion-badge", 8 | "ion-breadcrumb", 9 | "ion-breadcrumbs", 10 | "ion-button", 11 | "ion-buttons", 12 | "ion-card", 13 | "ion-card-content", 14 | "ion-card-header", 15 | "ion-card-subtitle", 16 | "ion-card-title", 17 | "ion-checkbox", 18 | "ion-chip", 19 | "ion-col", 20 | "ion-content", 21 | "ion-datetime", 22 | "ion-fab", 23 | "ion-fab-button", 24 | "ion-fab-list", 25 | "ion-footer", 26 | "ion-grid", 27 | "ion-header", 28 | "ion-icon", 29 | "ion-img", 30 | "ion-infinite-scroll", 31 | "ion-infinite-scroll-content", 32 | "ion-input", 33 | "ion-item", 34 | "ion-item-divider", 35 | "ion-item-group", 36 | "ion-item-option", 37 | "ion-item-options", 38 | "ion-item-sliding", 39 | "ion-label", 40 | "ion-list", 41 | "ion-list-header", 42 | "ion-menu", 43 | "ion-menu-button", 44 | "ion-menu-toggle", 45 | "ion-nav", 46 | "ion-nav-link", 47 | "ion-note", 48 | "ion-progress-bar", 49 | "ion-popover", 50 | "ion-radio", 51 | "ion-radio-group", 52 | "ion-range", 53 | "ion-refresher", 54 | "ion-refresher-content", 55 | "ion-reorder", 56 | "ion-reorder-group", 57 | "ion-ripple-effect", 58 | "ion-row", 59 | "ion-searchbar", 60 | "ion-segment", 61 | "ion-segment-button", 62 | "ion-select", 63 | "ion-select-option", 64 | "ion-select-popover", 65 | "ion-skeleton-text", 66 | "ion-slide", 67 | "ion-slides", 68 | "ion-spinner", 69 | "ion-split-pane", 70 | "ion-tab", 71 | "ion-tab-bar", 72 | "ion-tab-button", 73 | "ion-text", 74 | "ion-textarea", 75 | "ion-thumbnail", 76 | "ion-title", 77 | "ion-toggle", 78 | "ion-toolbar", 79 | "ion-virtual-scroll", 80 | "ion-action-sheet", 81 | "ion-alert", 82 | "ion-loading", 83 | "ion-modal", 84 | "ion-picker", 85 | "ion-picker-column", 86 | "ion-picker-column-internal", 87 | "ion-picker-internal", 88 | "ion-toast" 89 | ] 90 | -------------------------------------------------------------------------------- /demo-app/src/lib/components/ModalExtra.svelte: -------------------------------------------------------------------------------- 1 | 21 | 22 | 23 | Ionic Companion - Modal Extra 24 | 25 | 26 | 27 | Modal Content 28 | 29 | Close 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |

Gollum

41 |

Sneaky little hobbitses!

42 |
43 |
44 | 45 | 46 | 47 | 48 | 49 |

Frodo

50 |

Go back, Sam! I'm going to Mordor alone!

51 |
52 |
53 | 54 | 55 | 56 | 57 | 58 |

Samwise

59 |

What we need is a few good taters.

60 |
61 |
62 |
63 |
64 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Range/+page.svelte: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | Ionic Companion - Range 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | Range 28 | 29 | 30 | 31 | 32 | 33 | Adjust Display 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Range/+page.svelte: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | Ionic Companion - Range 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | Range 28 | 29 | 30 | 31 | 32 | 33 | Adjust Display 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/accordion-group.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-accordion-group' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/accordion-group/props.md'; 10 | import Events from '@site/static/auto-generated/accordion-group/events.md'; 11 | import Methods from '@site/static/auto-generated/accordion-group/methods.md'; 12 | import Parts from '@site/static/auto-generated/accordion-group/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/accordion-group/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/accordion-group/slots.md'; 15 | 16 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 17 | import APITOCInline from '@components/page/api/APITOCInline'; 18 | 19 | 20 | 21 |

Contents

22 | 23 | 28 | 29 | Accordion group is a container for accordion instances. It manages the state of the accordions and provides keyboard navigation. 30 | 31 | For more information as well as usage, see the [Accordion Documentation](./accordion) 32 | 33 | ## Interfaces 34 | 35 | ### AccordionGroupChangeEventDetail 36 | 37 | ```typescript 38 | interface AccordionGroupChangeEventDetail { 39 | value: T; 40 | } 41 | ``` 42 | 43 | ### AccordionGroupCustomEvent 44 | 45 | While not required, this interface can be used in place of the `CustomEvent` interface for stronger typing with Ionic events emitted from this component. 46 | 47 | ```typescript 48 | interface AccordionGroupCustomEvent extends CustomEvent { 49 | detail: AccordionGroupChangeEventDetail; 50 | target: HTMLIonAccordionGroupElement; 51 | } 52 | ``` 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/col.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-col' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/col/props.md'; 10 | import Events from '@site/static/auto-generated/col/events.md'; 11 | import Methods from '@site/static/auto-generated/col/methods.md'; 12 | import Parts from '@site/static/auto-generated/col/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/col/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/col/slots.md'; 15 | 16 | 17 | ion-col: Column Component Padding, Size and Other Properties 18 | 19 | 20 | 21 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 22 | import APITOCInline from '@components/page/api/APITOCInline'; 23 | 24 | 25 | 26 |

Contents

27 | 28 | 33 | 34 | Columns are cellular components of the [grid](grid.md) system and go inside of a [row](row.md). 35 | They will expand to fill their row. All content within a grid should go inside of a column. 36 | 37 | See [Grid Layout](/docs/layout/grid) for more information. 38 | 39 | ## Column Alignment 40 | 41 | By default, columns will stretch to fill the entire height of the row. Columns are [flex items](https://developer.mozilla.org/en-US/docs/Glossary/Flex_Item), so there are several [CSS classes](/docs/layout/css-utilities#flex-item-properties) that can be applied to a column to customize this behavior. 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Spinner/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Ionic Companion - Spinner 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Spinner 20 | 21 | 22 | 23 | 24 | 25 | Default 26 | 27 | 28 | 29 | 30 | Lines 31 | 32 | 33 | 34 | 35 | Lines Small 36 | 37 | 38 | 39 | 40 | Dots 41 | 42 | 43 | 44 | 45 | Bubbles 46 | 47 | 48 | 49 | 50 | Circles 51 | 52 | 53 | 54 | 55 | Crescent 56 | 57 | 58 | 59 | 60 | Paused 61 | 62 | 63 | 64 | 65 | Primary 66 | 67 | 68 | 69 | 70 | Secondary 71 | 72 | 73 | 74 | 75 | Tertiary 76 | 77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/SvelteTweened/+page.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | Ionic Companion - Svelte Tweened 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | Svelte Tweened 27 | 28 | 29 | 30 | 31 |

32 | Svelte tweened is part of Svelte's nifty runtime features to easily add animation to DOM 33 | elements.This code comes from the Svelte Tutorial on https://svelte.dev/tutorial/tweened 37 | 38 |

39 | "Setting values and watching the DOM update automatically is cool. Know what's even cooler? Tweening 40 | those values. Svelte includes tools to help you build slick user interfaces that use animation to 41 | communicate changes." 42 |

Click the percentages to see the transition 43 |

44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 |
56 |
57 | 58 | 64 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/router-link.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-router-link' 3 | hide_table_of_contents: true 4 | demoUrl: '/docs/demos/api/router-link/index.html' 5 | demoSourceUrl: 'https://github.com/ionic-team/ionic-docs/tree/main/static/demos/api/router-link/index.html' 6 | --- 7 | 8 | import Tabs from '@theme/Tabs'; 9 | import TabItem from '@theme/TabItem'; 10 | 11 | import Props from '@site/static/auto-generated/router-link/props.md'; 12 | import Events from '@site/static/auto-generated/router-link/events.md'; 13 | import Methods from '@site/static/auto-generated/router-link/methods.md'; 14 | import Parts from '@site/static/auto-generated/router-link/parts.md'; 15 | import CustomProps from '@site/static/auto-generated/router-link/custom-props.md'; 16 | import Slots from '@site/static/auto-generated/router-link/slots.md'; 17 | 18 | 19 | Router Link | Navigating The ion-router-link Component 20 | 21 | 22 | 23 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 24 | import APITOCInline from '@components/page/api/APITOCInline'; 25 | 26 | 27 | 28 |

Contents

29 | 30 | 35 | 36 | The router link component is used for navigating to a specified link. Similar to the browser's anchor tag, it can accept a href for the location, and a direction for the transition animation. 37 | 38 | :::note 39 | Note: this component should only be used with vanilla and Stencil JavaScript projects. For Angular projects, use an `` and `routerLink` with the Angular router. 40 | ::: 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/row.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-row' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/row/props.md'; 10 | import Events from '@site/static/auto-generated/row/events.md'; 11 | import Methods from '@site/static/auto-generated/row/methods.md'; 12 | import Parts from '@site/static/auto-generated/row/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/row/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/row/slots.md'; 15 | 16 | 17 | ion-row: Horizontal Row Components and Alignment | Ionic API Docs 18 | 19 | 20 | 21 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 22 | import APITOCInline from '@components/page/api/APITOCInline'; 23 | 24 | 25 | 26 |

Contents

27 | 28 | 33 | 34 | Rows are horizontal components of the [grid](grid.md) system and contain varying numbers of 35 | [columns](col.md). They ensure the columns are positioned properly. 36 | 37 | See [Grid Layout](/docs/layout/grid) for more information. 38 | 39 | ## Row Alignment 40 | 41 | By default, columns will stretch to fill the entire height of the row and wrap when necessary. Rows are [flex containers](https://developer.mozilla.org/en-US/docs/Glossary/Flex_Container), so there are several [CSS classes](/docs/layout/css-utilities#flex-container-properties) that can be applied to a row to customize this behavior. 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Spinner/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Ionic Companion - Spinner 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Spinner 20 | 21 | 22 | 23 | 24 | 25 | Default 26 | 27 | 28 | 29 | 30 | Lines 31 | 32 | 33 | 34 | 35 | Lines Small 36 | 37 | 38 | 39 | 40 | Dots 41 | 42 | 43 | 44 | 45 | Bubbles 46 | 47 | 48 | 49 | 50 | Circles 51 | 52 | 53 | 54 | 55 | Crescent 56 | 57 | 58 | 59 | 60 | Paused 61 | 62 | 63 | 64 | 65 | Primary 66 | 67 | 68 | 69 | 70 | Secondary 71 | 72 | 73 | 74 | 75 | Tertiary 76 | 77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/SvelteTweened/+page.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | Ionic Companion - Svelte Tweened 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | Svelte Tweened 27 | 28 | 29 | 30 | 31 |

32 | Svelte tweened is part of Svelte's nifty runtime features to easily add animation to DOM 33 | elements.This code comes from the Svelte Tutorial on https://svelte.dev/tutorial/tweened 37 | 38 |

39 | "Setting values and watching the DOM update automatically is cool. Know what's even cooler? Tweening 40 | those values. Svelte includes tools to help you build slick user interfaces that use animation to 41 | communicate changes." 42 |

Click the percentages to see the transition 43 |

44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 64 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/breadcrumb.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-breadcrumb' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/breadcrumb/props.md'; 10 | import Events from '@site/static/auto-generated/breadcrumb/events.md'; 11 | import Methods from '@site/static/auto-generated/breadcrumb/methods.md'; 12 | import Parts from '@site/static/auto-generated/breadcrumb/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/breadcrumb/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/breadcrumb/slots.md'; 15 | 16 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 17 | import APITOCInline from '@components/page/api/APITOCInline'; 18 | 19 | 20 | 21 |

Contents

22 | 23 | 28 | 29 | A Breadcrumb is a single navigation item that is a child of the Breadcrumbs component. A breadcrumb can link elsewhere in an app or it can be plain text. Each breadcrumb has a separator between it and the next breadcrumb and can optionally contain an icon. 30 | 31 | For usage examples, see the [Breadcrumbs](/docs/api/breadcrumbs) documentation. 32 | 33 | ## Interfaces 34 | 35 | ### BreadcrumbCollapsedClickEventDetail 36 | 37 | ```typescript 38 | interface BreadcrumbCollapsedClickEventDetail { 39 | collapsedBreadcrumbs?: HTMLIonBreadcrumbElement[]; 40 | } 41 | ``` 42 | 43 | ### BreadcrumbCustomEvent 44 | 45 | While not required, this interface can be used in place of the `CustomEvent` interface for stronger typing . 46 | 47 | ```typescript 48 | interface BreadcrumbCustomEvent extends CustomEvent { 49 | detail: BreadcrumbCollapsedClickEventDetail; 50 | target: HTMLIonBreadcrumbElement; 51 | } 52 | ``` 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Actionsheet/+page.svelte: -------------------------------------------------------------------------------- 1 | 60 | 61 | 62 | Ionic Companion - Action Sheet 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | Action sheet 75 | 76 | 77 | 78 | 79 | Click me! 80 | 81 | 82 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Page/+page.svelte: -------------------------------------------------------------------------------- 1 | 31 | 32 | 33 | Ionic Companion - Page 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | Page 46 | 47 | 48 | 49 | 50 | 51 |

API specs for IonPage

52 | 53 | This intends to show the working of the IonPage component. This components the lifecycle 54 | hooks and proper animation for a page shown in your app. The following lifecycle hooks are 55 | provided for: 56 |
57 |
58 |   ionViewWillEnter
59 |   ionViewDidEnter
60 |   ionViewWillLeave
61 |   ionViewDidLeave
62 | 
63 | You can bind the hook using simple function binding. 64 |
65 |   {ionPageSyntax}
66 | 
67 | 68 | Easy does it! 69 |
70 |
71 |
72 |
73 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Actionsheet/+page.svelte: -------------------------------------------------------------------------------- 1 | 60 | 61 | 62 | Ionic Companion - Action Sheet 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | Action sheet 75 | 76 | 77 | 78 | 79 | Click me! 80 | 81 | 82 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Page/+page.svelte: -------------------------------------------------------------------------------- 1 | 31 | 32 | 33 | Ionic Companion - Page 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | Page 46 | 47 | 48 | 49 | 50 | 51 |

API specs for IonPage

52 | 53 | This intends to show the working of the IonPage component. This components the lifecycle 54 | hooks and proper animation for a page shown in your app. The following lifecycle hooks are 55 | provided for: 56 |
57 |
58 |   ionViewWillEnter
59 |   ionViewDidEnter
60 |   ionViewWillLeave
61 |   ionViewDidLeave
62 | 
63 | You can bind the hook using simple function binding. 64 |
65 |   {ionPageSyntax}
66 | 
67 | 68 | Easy does it! 69 |
70 |
71 |
72 |
73 | -------------------------------------------------------------------------------- /demo-app/src/lib/components/IOSInstall.svelte: -------------------------------------------------------------------------------- 1 | 31 | 32 | 33 | Welcom to install 34 | 35 | 36 | 37 |
38 | Ionic Svelte 39 |

Hey there!

40 | {#if !isSafari} 41 |

42 |

You are not running safari.

43 |

Open this site again with Safari.

44 |
45 |

Why? Safari on iPhone does the Add-to-Home-Screen correctly

46 |

47 | Bummer - will do that! 48 | {/if} 49 | 50 | {#if isSafari} 51 |

Great! The next step is to add this site to your home screen.

52 | 53 |

Select the share option in Safari and then select Add to Home Screen

54 | Safari Bar 55 |
56 | Safari Share Options
57 | Yup - done that! 58 | {/if} 59 |
60 | 61 | 75 | -------------------------------------------------------------------------------- /demo-app/src/lib/components/NavHome.svelte: -------------------------------------------------------------------------------- 1 | 44 | 45 | 46 | Ionic Companion - Nav 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | Nav element 58 | 59 | 60 | 61 | 62 | 63 | {#each techs as tech} 64 | { 67 | showDetail(tech); 68 | }}> 69 | 70 | 71 |

{tech.title}

72 |
73 |
74 | {/each} 75 |
76 |
77 | -------------------------------------------------------------------------------- /scripts/archived/importkeys.json: -------------------------------------------------------------------------------- 1 | [ 2 | "RouterDirection", 3 | "AnimationBuilder", 4 | "Color", 5 | "AlertInput", 6 | "AlertButton", 7 | "IonicSafeString", 8 | "AlertAttributes", 9 | "ActionSheetButton", 10 | "Animation", 11 | "AnimationBuilder", 12 | "AnimationCallbackOptions", 13 | "AnimationDirection", 14 | "AnimationFill", 15 | "AnimationKeyFrames", 16 | "AnimationLifecycle", 17 | "Gesture", 18 | "GestureConfig", 19 | "GestureDetail", 20 | "NavComponentWithProps", 21 | "SpinnerTypes", 22 | "AccordionGroupCustomEvent", 23 | "AccordionGroupChangeEventDetail", 24 | "BreadcrumbCustomEvent", 25 | "BreadcrumbCollapsedClickEventDetail", 26 | "ActionSheetOptions", 27 | "ActionSheetButton", 28 | "AlertOptions", 29 | "AlertInput", 30 | "AlertTextareaAttributes", 31 | "AlertInputAttributes", 32 | "AlertButton", 33 | "BackButtonEvent", 34 | "CheckboxCustomEvent", 35 | "CheckboxChangeEventDetail", 36 | "DatetimeCustomEvent", 37 | "DatetimeChangeEventDetail", 38 | "InfiniteScrollCustomEvent", 39 | "InputCustomEvent", 40 | "InputChangeEventDetail", 41 | "ItemReorderEventDetail", 42 | "ItemReorderCustomEvent", 43 | "ItemSlidingCustomEvent", 44 | "IonicSafeString", 45 | "LoadingOptions", 46 | "MenuCustomEvent", 47 | "MenuI", 48 | "ModalOptions", 49 | "NavCustomEvent", 50 | "PickerOptions", 51 | "PickerButton", 52 | "PickerColumn", 53 | "PickerColumnOption", 54 | "PopoverOptions", 55 | "RadioGroupCustomEvent", 56 | "RadioGroupChangeEventDetail", 57 | "RangeCustomEvent", 58 | "RangeChangeEventDetail", 59 | "RangeKnobMoveStartEventDetail", 60 | "RangeKnobMoveEndEventDetail", 61 | "RefresherCustomEvent", 62 | "RefresherEventDetail", 63 | "RouterEventDetail", 64 | "RouterCustomEvent", 65 | "ScrollBaseCustomEvent", 66 | "ScrollBaseDetail", 67 | "ScrollDetail", 68 | "ScrollCustomEvent", 69 | "SearchbarCustomEvent", 70 | "SearchbarChangeEventDetail", 71 | "SegmentChangeEventDetail", 72 | "SegmentCustomEvent", 73 | "SelectChangeEventDetail", 74 | "SelectCustomEvent", 75 | "TabsCustomEvent", 76 | "TextareaChangeEventDetail", 77 | "TextareaCustomEvent", 78 | "ToastOptions", 79 | "ToastButton", 80 | "ToggleChangeEventDetail", 81 | "ToggleCustomEvent" 82 | ] 83 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Button/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Ionic Companion - Buttons 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Button 20 | 21 | 22 | 23 |
24 |
Small Size
25 | Default 26 | Secondary 27 | Tertiary 28 |
29 | 30 |
31 |
Default Size
32 | Success 33 | Warning 34 | Danger 35 |
36 | 37 |
38 |
Large Size
39 | Light 40 | Medium 41 | Dark 42 |
43 | 44 |
45 |
Block Width
46 | A block button 47 |
48 | 49 |
50 |
Full Width
51 | A full-width button 52 |
53 |
54 |
55 | 56 | 77 | -------------------------------------------------------------------------------- /demo-app/pwa-configuration.ts: -------------------------------------------------------------------------------- 1 | const pwaManifest = { 2 | name: 'Ionic Svelte', 3 | short_name: 'Ionic Svelte Demo', 4 | description: 'Coolness in Vite Svelte and Ionic', 5 | theme_color: '#ffffff', 6 | icons: [ 7 | { 8 | src: '/android-chrome-192x192.png', 9 | sizes: '192x192', 10 | type: 'image/png', 11 | purpose: 'maskable any' 12 | }, 13 | { 14 | src: '/android-chrome-512x512.png', 15 | sizes: '512x512', 16 | type: 'image/png', 17 | purpose: 'maskable any' 18 | } 19 | ] 20 | }; 21 | 22 | const componentList = [ 23 | 'Accordion', 24 | 'Actionsheet', 25 | 'Alert', 26 | 'Animations', 27 | 'Avatar', 28 | 'Badge', 29 | 'Breadcrumb', 30 | 'Button', 31 | 'Card', 32 | 'Checkbox', 33 | 'Chip', 34 | 'Controllers', 35 | 'Datetime', 36 | 'Fab', 37 | 'Gesture', 38 | 'Grid', 39 | 'Icon', 40 | 'Infinitescroll', 41 | 'Inputs', 42 | 'Item', 43 | 'List', 44 | 'Loading', 45 | 'Modal', 46 | 'Nav', 47 | 'Note', 48 | 'Page', 49 | 'Picker', 50 | 'Platform', 51 | 'Popover', 52 | 'ProgressBar', 53 | 'Radio', 54 | 'Range', 55 | 'Refresher', 56 | 'Reorder', 57 | 'Searchbar', 58 | 'Segment', 59 | 'Select', 60 | 'Skeleton', 61 | 'Slides', 62 | 'Spinner', 63 | 'Splash', 64 | 'SvelteAnimate', 65 | 'SvelteSpring', 66 | 'SvelteTransition', 67 | 'SvelteTweened', 68 | 'tabs', 69 | 'Text', 70 | 'Thumbnails', 71 | 'Toast', 72 | 'Toggle', 73 | 'Toolbar' 74 | ].map((item) => { 75 | return `assets/src/components/${item}/*`; 76 | }); 77 | 78 | const ionicSvelteDirectories = [ 79 | 'assets/json/*', 80 | 'assets/img/*', 81 | 'assets/img/slides/*', 82 | 'assets/img/ionic/*', 83 | 'assets/src/ionic-docs/api/*', 84 | ...componentList 85 | ]; 86 | 87 | const pwaConfiguration = { 88 | srcDir: './build', 89 | outDir: './build', // to ensure sw.js and workbox are in build - not according to docs, but works nevertheless? 90 | includeAssets: [ 91 | 'favicon.svg', 92 | 'favicon.ico', 93 | 'robots.txt', 94 | 'apple-touch-icon.png', 95 | 'assets/*', 96 | ...ionicSvelteDirectories 97 | ], 98 | base: '/', 99 | scope: '/', 100 | manifest: pwaManifest 101 | }; 102 | 103 | export { pwaConfiguration }; 104 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Button/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Ionic Companion - Buttons 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Button 20 | 21 | 22 | 23 |
24 |
Small Size
25 | Default 26 | Secondary 27 | Tertiary 28 |
29 | 30 |
31 |
Default Size
32 | Success 33 | Warning 34 | Danger 35 |
36 | 37 |
38 |
Large Size
39 | Light 40 | Medium 41 | Dark 42 |
43 | 44 |
45 |
Block Width
46 | A block button 47 |
48 | 49 |
50 |
Full Width
51 | A full-width button 52 |
53 |
54 |
55 | 56 | 77 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Datetime/+page.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | Ionic Companion - Datetime 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | DateTime 26 | 27 | 28 | 29 | 30 | { 33 | modalOpen = true; 34 | }}>Open Datetime Modal 35 | 36 | 37 | 38 | { 41 | modalOpen = false; 42 | }}>Close 43 | 44 | 45 | 46 | 47 | Start Date 48 | 49 | 50 | 51 | Start Time 52 | 57 | 58 | 59 | Ends 60 | 61 | 62 | 63 | Repeat 64 | 65 | 66 | 67 | Travel Time 68 | 69 | 70 | 71 | 72 | Alert 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Datetime/+page.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | Ionic Companion - Datetime 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | DateTime 26 | 27 | 28 | 29 | 30 | { 33 | modalOpen = true; 34 | }}>Open Datetime Modal 35 | 36 | 37 | 38 | { 41 | modalOpen = false; 42 | }}>Close 43 | 44 | 45 | 46 | 47 | Start Date 48 | 49 | 50 | 51 | Start Time 52 | 57 | 58 | 59 | Ends 60 | 61 | 62 | 63 | Repeat 64 | 65 | 66 | 67 | Travel Time 68 | 69 | 70 | 71 | 72 | Alert 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/item-options.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-item-options' 3 | hide_table_of_contents: true 4 | --- 5 | 6 | import Tabs from '@theme/Tabs'; 7 | import TabItem from '@theme/TabItem'; 8 | 9 | import Props from '@site/static/auto-generated/item-options/props.md'; 10 | import Events from '@site/static/auto-generated/item-options/events.md'; 11 | import Methods from '@site/static/auto-generated/item-options/methods.md'; 12 | import Parts from '@site/static/auto-generated/item-options/parts.md'; 13 | import CustomProps from '@site/static/auto-generated/item-options/custom-props.md'; 14 | import Slots from '@site/static/auto-generated/item-options/slots.md'; 15 | 16 | 17 | ion-item-options: Option Button Components for Ionic Apps 18 | 19 | 20 | 21 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 22 | import APITOCInline from '@components/page/api/APITOCInline'; 23 | 24 |

Contents

25 | 26 | 31 | 32 | The option buttons for an `ion-item-sliding`. These buttons can be placed either on the [start or end side](#side-description). 33 | You can combine the `ionSwipe` event plus the `expandable` directive to create a full swipe action for the item. 34 | 35 | ## Side Description 36 | 37 | | Side | Position | Swipe Direction | 38 | | ------- | --------------------------------------------------------------- | ----------------------------------------------------------------- | 39 | | `start` | To the `left` of the content in LTR, and to the `right` in RTL. | From `left` to `right` in LTR, and from `right` to `left` in RTL. | 40 | | `end` | To the `right` of the content in LTR, and to the `left` in RTL. | From `right` to `left` in LTR, and from `left` to `right` in RTL. | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Picker/+page.svelte: -------------------------------------------------------------------------------- 1 | 62 | 63 | 64 | Ionic Companion - Picker 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | Picker 77 | 78 | 79 | 80 | 81 | Show Picker 82 | 83 | 84 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Picker/+page.svelte: -------------------------------------------------------------------------------- 1 | 62 | 63 | 64 | Ionic Companion - Picker 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | Picker 77 | 78 | 79 | 80 | 81 | Show Picker 82 | 83 | 84 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/ionic-docs/api/nav.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'ion-nav' 3 | hide_table_of_contents: true 4 | demoUrl: '/docs/demos/api/nav/index.html' 5 | demoSourceUrl: 'https://github.com/ionic-team/ionic-docs/tree/main/static/demos/api/nav/index.html' 6 | --- 7 | 8 | import Tabs from '@theme/Tabs'; 9 | import TabItem from '@theme/TabItem'; 10 | 11 | import Props from '@site/static/auto-generated/nav/props.md'; 12 | import Events from '@site/static/auto-generated/nav/events.md'; 13 | import Methods from '@site/static/auto-generated/nav/methods.md'; 14 | import Parts from '@site/static/auto-generated/nav/parts.md'; 15 | import CustomProps from '@site/static/auto-generated/nav/custom-props.md'; 16 | import Slots from '@site/static/auto-generated/nav/slots.md'; 17 | 18 | 19 | ion-nav | Nav View Component for Ionic Framework Apps 20 | 21 | 22 | 23 | import EncapsulationPill from '@components/page/api/EncapsulationPill'; 24 | import APITOCInline from '@components/page/api/APITOCInline'; 25 | 26 | 27 | 28 |

Contents

29 | 30 | 35 | 36 | Nav is a standalone component for loading arbitrary components and pushing new components on to the stack. 37 | 38 | Unlike Router Outlet, Nav is not tied to a particular router. This means that if we load a Nav component, and push other components to the stack, they will not affect the app's overall router. This fits use cases where you could have a modal, which needs its own sub-navigation, without making it tied to the apps URL. 39 | 40 | ## Interfaces 41 | 42 | ### NavCustomEvent 43 | 44 | While not required, this interface can be used in place of the `CustomEvent` interface for stronger typing with Ionic events emitted from this component. 45 | 46 | ```typescript 47 | interface NavCustomEvent extends CustomEvent { 48 | target: HTMLIonNavElement; 49 | } 50 | ``` 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/IonTabs.svelte: -------------------------------------------------------------------------------- 1 | 45 | 46 | 51 | 52 | 53 | {#if slot === 'bottom' || slot === ''} 54 | 55 | {#each tabs as tab} 56 | { 59 | tabBarClick(tab.tab); 60 | }} 61 | on:click={() => { 62 | tabBarClick(tab.tab); 63 | }} 64 | > 65 | {tab.label} 66 | 67 | 68 | {/each} 69 | 70 | {/if} 71 | 72 | {#if slot === 'top'} 73 | 74 | {#each tabs as tab} 75 | { 78 | tabBarClick(tab.tab); 79 | }} 80 | on:click={() => { 81 | tabBarClick(tab.tab); 82 | }} 83 | > 84 | {tab.label} 85 | 86 | 87 | {/each} 88 | 89 | {/if} 90 | 91 | -------------------------------------------------------------------------------- /demo-app/src/lib/IonTabsLegacy.svelte: -------------------------------------------------------------------------------- 1 | 50 | 51 | 56 | {#each tabs as tab} 57 | 58 | 59 | 60 | {/each} 61 | 62 | {#if slot === 'bottom' || slot === ''} 63 | 64 | {#each tabs as tab} 65 | 66 | {tab.label} 67 | 68 | 69 | {/each} 70 | 71 | {/if} 72 | 73 | {#if slot === 'top'} 74 | 75 | {#each tabs as tab} 76 | 77 | {tab.label} 78 | 79 | 80 | {/each} 81 | 82 | {/if} 83 | 84 | -------------------------------------------------------------------------------- /src/IonTabsLegacy.svelte: -------------------------------------------------------------------------------- 1 | 50 | 51 | 57 | {#each tabs as tab} 58 | 59 | 60 | 61 | {/each} 62 | 63 | {#if slot === 'bottom' || slot === ''} 64 | 65 | {#each tabs as tab} 66 | 67 | {tab.label} 68 | 69 | 70 | {/each} 71 | 72 | {/if} 73 | 74 | {#if slot === 'top'} 75 | 76 | {#each tabs as tab} 77 | 78 | {tab.label} 79 | 80 | 81 | {/each} 82 | 83 | {/if} 84 | 85 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Radio/+page.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | Ionic Companion - Radios 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Radio 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Fruit 32 | 33 | 34 | Apple 35 | 36 | 37 | 38 | 39 | Grape 40 | 41 | 42 | 43 | 44 | Cherry 45 | 46 | 47 | 48 | 49 | 50 | 51 | Pizza Topping 52 | 53 | 54 | Beef 55 | 56 | 57 | 58 | 59 | Anchovies 60 | 61 | 62 | 63 | 64 | Sausage 65 | 66 | 67 | 68 | 69 | Bellpepper 70 | 71 | 72 | 73 | 74 | Tomato 75 | 76 | 77 | 78 | 79 | Pepperoni 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Radio/+page.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | Ionic Companion - Radios 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Radio 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Fruit 32 | 33 | 34 | Apple 35 | 36 | 37 | 38 | 39 | Grape 40 | 41 | 42 | 43 | 44 | Cherry 45 | 46 | 47 | 48 | 49 | 50 | 51 | Pizza Topping 52 | 53 | 54 | Beef 55 | 56 | 57 | 58 | 59 | Anchovies 60 | 61 | 62 | 63 | 64 | Sausage 65 | 66 | 67 | 68 | 69 | Bellpepper 70 | 71 | 72 | 73 | 74 | Tomato 75 | 76 | 77 | 78 | 79 | Pepperoni 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/Grid/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Ionic Companion - Grid 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Grid 20 | 21 | 22 | 23 | 24 | 25 | 26 |
1 of 2
27 |
28 | 29 |
2 of 2
30 |
31 |
32 | 33 | 34 |
1 of 3
35 |
36 | 37 |
2 of 3
38 |
39 | 40 |
3 of 3
41 |
42 |
43 | 44 | 45 |
1 of 3
46 |
47 | 48 |
2 of 3
49 |
50 | 51 |
3 of 3
52 |
53 |
54 | 55 | 56 |
1 of 3
57 |
58 | 59 |
2 of 3
60 |
61 | 62 |
3 of 3
63 |
64 |
65 | 66 | 67 |
1 of 2
68 |
69 | 70 |
2 of 2
71 |
72 |
73 | 74 | 75 |
1 of 2
76 |
77 | 78 |
2 of 2
79 |
80 |
81 | 82 | 83 |
1 of 4
84 |
85 | 86 |
2 of 4
87 |
88 | 89 |
3 of 4
90 |
91 | 92 |
4 of 4
93 |
94 |
95 |
96 |
97 |
98 | 99 | 110 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/Grid/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Ionic Companion - Grid 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Grid 20 | 21 | 22 | 23 | 24 | 25 | 26 |
1 of 2
27 |
28 | 29 |
2 of 2
30 |
31 |
32 | 33 | 34 |
1 of 3
35 |
36 | 37 |
2 of 3
38 |
39 | 40 |
3 of 3
41 |
42 |
43 | 44 | 45 |
1 of 3
46 |
47 | 48 |
2 of 3
49 |
50 | 51 |
3 of 3
52 |
53 |
54 | 55 | 56 |
1 of 3
57 |
58 | 59 |
2 of 3
60 |
61 | 62 |
3 of 3
63 |
64 |
65 | 66 | 67 |
1 of 2
68 |
69 | 70 |
2 of 2
71 |
72 |
73 | 74 | 75 |
1 of 2
76 |
77 | 78 |
2 of 2
79 |
80 |
81 | 82 | 83 |
1 of 4
84 |
85 | 86 |
2 of 4
87 |
88 | 89 |
3 of 4
90 |
91 | 92 |
4 of 4
93 |
94 |
95 |
96 |
97 |
98 | 99 | 110 | -------------------------------------------------------------------------------- /demo-app/src/routes/components/SvelteSpring/+page.svelte: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | Ionic Companion - Svelte Spring 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Svelte Spring 31 | 32 | 33 | 34 | 35 |

36 | Svelte spring is part of Svelte's nifty runtime features to easily add animation to DOM 37 | elements.This code comes from the Svelte Tutorial on https://svelte.dev/tutorial/spring 41 | 42 |

43 | "The spring function is an alternative to tweened that often works better for values that are frequently 44 | changing. In this example we have two stores — one representing the circle's coordinates, and one 45 | representing its size. Let's convert them to springs." 46 |

Waggle your mouse around, and try dragging the sliders to get a feel for how they 47 | affect the spring's behaviour. Notice that you can adjust the values while the spring is still 48 | in motion. 49 |

50 | 51 |
52 | 56 | 57 | 61 |
62 | 63 | { 65 | console.log('Coords', e); 66 | coords.set({ x: e.clientX, y: e.clientY }); 67 | }} 68 | on:mousedown={() => size.set(30)} 69 | on:mouseup={() => size.set(10)}> 70 | 71 | 72 |
73 |
74 | 75 | 85 | -------------------------------------------------------------------------------- /demo-app/static/assets/src/components/SvelteSpring/+page.svelte: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | Ionic Companion - Svelte Spring 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Svelte Spring 31 | 32 | 33 | 34 | 35 |

36 | Svelte spring is part of Svelte's nifty runtime features to easily add animation to DOM 37 | elements.This code comes from the Svelte Tutorial on https://svelte.dev/tutorial/spring 41 | 42 |

43 | "The spring function is an alternative to tweened that often works better for values that are frequently 44 | changing. In this example we have two stores — one representing the circle's coordinates, and one 45 | representing its size. Let's convert them to springs." 46 |

Waggle your mouse around, and try dragging the sliders to get a feel for how they 47 | affect the spring's behaviour. Notice that you can adjust the values while the spring is still 48 | in motion. 49 |

50 | 51 |
52 | 56 | 57 | 61 |
62 | 63 | { 65 | console.log('Coords', e); 66 | coords.set({ x: e.clientX, y: e.clientY }); 67 | }} 68 | on:mousedown={() => size.set(30)} 69 | on:mouseup={() => size.set(10)}> 70 | 71 | 72 |
73 |
74 | 75 | 85 | --------------------------------------------------------------------------------