├── .gitignore ├── .yarnrc.yml ├── CHANGELOG.md ├── LICENSE ├── Readme.md ├── demo ├── .editorconfig ├── .gitignore ├── app │ ├── App.svelte │ ├── App_Resources │ │ ├── Android │ │ │ ├── app.gradle │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── res │ │ │ │ ├── drawable-hdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── menu.png │ │ │ │ ├── drawable-ldpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-mdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── menu.png │ │ │ │ ├── drawable-nodpi │ │ │ │ └── splash_screen.xml │ │ │ │ ├── drawable-xhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── menu.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── menu.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── menu.png │ │ │ │ ├── values-v21 │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ └── iOS │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── icon-1024.png │ │ │ │ ├── icon-20.png │ │ │ │ ├── icon-20@2x.png │ │ │ │ ├── icon-20@3x.png │ │ │ │ ├── icon-29.png │ │ │ │ ├── icon-29@2x.png │ │ │ │ ├── icon-29@3x.png │ │ │ │ ├── icon-40.png │ │ │ │ ├── icon-40@2x.png │ │ │ │ ├── icon-40@3x.png │ │ │ │ ├── icon-60@2x.png │ │ │ │ ├── icon-60@3x.png │ │ │ │ ├── icon-76.png │ │ │ │ ├── icon-76@2x.png │ │ │ │ └── icon-83.5@2x.png │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ ├── LaunchScreen-AspectFill@2x.png │ │ │ │ └── LaunchScreen-AspectFill@3x.png │ │ │ └── LaunchScreen.Center.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ ├── LaunchScreen-Center@2x.png │ │ │ │ └── LaunchScreen-Center@3x.png │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ ├── build.xcconfig │ │ │ ├── menu.png │ │ │ ├── menu@2x.png │ │ │ └── menu@3x.png │ ├── Header.svelte │ ├── Nav.ts │ ├── app.css │ ├── app.ts │ ├── font-awesome.css │ ├── fonts │ │ ├── LICENSE.txt │ │ ├── fa-brands-400.ttf │ │ ├── fa-regular-400.ttf │ │ └── fa-solid-900.ttf │ ├── pages │ │ ├── FormattedStringPage.svelte │ │ ├── ListViewPage.svelte │ │ ├── SegmentedBarPage.svelte │ │ └── TextNodePage.svelte │ └── tests │ │ ├── components │ │ ├── Template.ts │ │ └── TemplateHarness.svelte │ │ ├── dom │ │ ├── ListViewMultiTemplate.svelte │ │ ├── ListViewNode.ts │ │ ├── MountChild.svelte │ │ ├── MountParent.svelte │ │ ├── NativeElement.ts │ │ ├── NativeElementHarness.svelte │ │ ├── PropDirective.ts │ │ ├── PropDirectiveHarness.svelte │ │ ├── PropertyNode.ts │ │ └── PropertyNodeHarness.svelte │ │ └── start.ts ├── assets │ └── icons │ │ ├── LICENSE │ │ └── menu.svg ├── build-assets.js ├── karma.conf.js ├── nativescript.config.ts ├── package-lock.json ├── package.json ├── svelte-native.webpack.config.js ├── svelte.config.js ├── tsconfig.json └── tsfmt.json ├── docs_src ├── .env.default ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── content │ ├── blog │ │ ├── 2019-02-28-svelte-goes-native.md │ │ ├── 2019-03-04-svelte-native-quick-start.md │ │ ├── 2019-09-19-hot-module-reloading.md │ │ └── 2021-10-29-svelte-native-turns-1.md │ ├── docs │ │ ├── 0-important-note.md │ │ ├── 00-introduction.md │ │ ├── 01-getting-started.md │ │ ├── 10-routing.md │ │ ├── 20-utilities.md │ │ ├── 30-layouts.md │ │ ├── 35-action-bars.md │ │ ├── 37-tab-navigation.md │ │ ├── 40-components.md │ │ ├── 50-dialogs.md │ │ └── 99-still-to-come.md │ ├── examples │ │ └── 00-examples │ │ │ ├── 00-hello-world │ │ │ ├── App.svelte │ │ │ └── meta.json │ │ │ └── meta.json │ └── tutorial │ │ └── 05-todo-app-example.md ├── cypress.json ├── cypress │ ├── fixtures │ │ └── example.json │ ├── integration │ │ └── spec.js │ ├── plugins │ │ └── index.js │ └── support │ │ ├── commands.js │ │ └── index.js ├── deploy │ ├── develop.bat │ ├── develop.yml │ ├── docker-compose.yml │ ├── production.yml │ └── readme.md ├── package-lock.json ├── package.json ├── rollup.config.js ├── src │ ├── client.js │ ├── components │ │ ├── Example.svelte │ │ ├── Icon.svelte │ │ ├── InlineSvg.svelte │ │ ├── IntersectionObserver.svelte │ │ ├── PreloadingIndicator.svelte │ │ └── Repl │ │ │ ├── CodeMirror.svelte │ │ │ ├── Input │ │ │ ├── ComponentSelector.svelte │ │ │ └── ModuleEditor.svelte │ │ │ ├── InputOutputToggle.svelte │ │ │ ├── Message.svelte │ │ │ ├── Output │ │ │ ├── Compiler.js │ │ │ ├── CompilerOptions.svelte │ │ │ ├── QRCode.svelte │ │ │ ├── ReplProxy.js │ │ │ ├── Viewer.svelte │ │ │ ├── getLocationFromStack.js │ │ │ ├── index.svelte │ │ │ └── previewService.js │ │ │ ├── SplitPane.svelte │ │ │ ├── _codemirror.js │ │ │ ├── codemirror.css │ │ │ └── index.svelte │ ├── routes │ │ ├── _error.svelte │ │ ├── _layout.svelte │ │ ├── about.svelte │ │ ├── api │ │ │ └── blog │ │ │ │ ├── [slug].js │ │ │ │ ├── _posts.js │ │ │ │ └── get.js │ │ ├── auth │ │ │ └── me.json.js │ │ ├── blog │ │ │ ├── [slug].svelte │ │ │ └── index.svelte │ │ ├── chat.js │ │ ├── docs │ │ │ ├── index.json.js │ │ │ └── index.svelte │ │ ├── examples │ │ │ ├── [slug].json.js │ │ │ ├── _examples.js │ │ │ ├── index.json.js │ │ │ └── index.svelte │ │ ├── gist │ │ │ ├── [id].js │ │ │ ├── _utils.js │ │ │ └── create.js │ │ ├── index.svelte │ │ ├── repl │ │ │ ├── _components │ │ │ │ └── AppControls │ │ │ │ │ ├── UserMenu.svelte │ │ │ │ │ └── index.svelte │ │ │ ├── _utils │ │ │ │ ├── downloadBlob.js │ │ │ │ └── process_example.js │ │ │ ├── index.svelte │ │ │ ├── local.js │ │ │ └── syncfiles.js │ │ └── tutorial │ │ │ ├── index.json.js │ │ │ └── index.svelte │ ├── server.js │ ├── service-worker.js │ ├── template.html │ ├── user.js │ └── utils │ │ ├── _sections.js │ │ ├── events.js │ │ └── markdown.js └── static │ ├── CNAME │ ├── curl.js │ ├── favicon.png │ ├── fonts │ ├── fira-mono │ │ └── fira-mono-latin-400.woff2 │ ├── overpass │ │ ├── overpass-latin-100.woff2 │ │ ├── overpass-latin-300.woff2 │ │ ├── overpass-latin-400.woff2 │ │ ├── overpass-latin-600.woff2 │ │ └── overpass-latin-700.woff2 │ └── roboto │ │ ├── roboto-latin-400.woff2 │ │ ├── roboto-latin-400italic.woff2 │ │ ├── roboto-latin-500.woff2 │ │ └── roboto-latin-500italic.woff2 │ ├── icons │ ├── arrow-right.svg │ ├── check.svg │ ├── chevron.svg │ ├── collapse.svg │ ├── download.svg │ ├── dropdown.svg │ ├── expand.svg │ ├── flip.svg │ ├── fork.svg │ ├── link.svg │ ├── play.svg │ ├── preview.svg │ ├── save.svg │ └── tip.svg │ ├── images │ ├── svelte-android-chrome-192.png │ ├── svelte-android-chrome-512.png │ ├── svelte-apple-touch-icon.png │ ├── svelte-mstile-150.png │ └── twitter-card.png │ ├── logo.svg │ ├── logo2.svg │ ├── logos_combined.svg │ ├── manifest.json │ ├── media │ ├── app-store.png │ ├── blog │ │ └── squiggles.png │ ├── docs │ │ └── layouts │ │ │ ├── absolute_layout_grid.svg │ │ │ ├── absolute_layout_overlap.svg │ │ │ ├── dock_layout_all_sides_and_stretch.svg │ │ │ ├── dock_layout_multiple_on_same_side.svg │ │ │ ├── dock_layout_no_stretch.svg │ │ │ ├── dock_layout_stretch.svg │ │ │ ├── flexbox_layout_column_reverse_space_around_align_self.svg │ │ │ ├── flexbox_layout_column_stretch.svg │ │ │ ├── flexbox_layout_row_custom_order.svg │ │ │ ├── flexbox_layout_row_flex-start.svg │ │ │ ├── flexbox_layout_row_stretch.svg │ │ │ ├── flexbox_layout_wrap.svg │ │ │ ├── grid_layout.svg │ │ │ ├── grid_layout_complex.svg │ │ │ ├── grid_layout_fixed_auto.svg │ │ │ ├── grid_layout_star_sizing.svg │ │ │ ├── stack_layout_horizontal.svg │ │ │ ├── stack_layout_horizontal_align_children.svg │ │ │ ├── stack_layout_vertical.svg │ │ │ ├── stack_layout_vertical_align_children.svg │ │ │ ├── wrap_layout_horizontal.svg │ │ │ └── wrap_layout_vertical.svg │ ├── google-play.png │ ├── nativescript-svelte-todo.gif │ ├── quick-start-screenshot.png │ ├── svelte-hmr-2.gif │ ├── tns-success.png │ └── todoapp │ │ ├── nativescript-svelte-todo3.gif │ │ ├── todo-add-item.png │ │ ├── todo-basic-design-1.png │ │ ├── todo-mark-complete.png │ │ ├── todo-styled-button.png │ │ ├── todo-styled-list1.png │ │ └── todo-styled-list2.png │ ├── pako_deflate.min.js │ ├── prism.css │ ├── qrcode.js │ ├── repl-runner.js │ ├── repl-viewer.css │ ├── svelte-native-logo-horizontal-full.svg │ ├── svelte-native-logo-horizontal.svg │ ├── svelte-native-logo-outline.svg │ ├── svelte-native-logo-vertical-full.svg │ ├── svelte-native-logo-vertical.svg │ ├── svelte-native-logo.svg │ ├── svelte-native-logotype.svg │ └── workers │ ├── bundler.js │ └── compiler.js ├── nativescript-svelte-todo.gif ├── package-lock.json ├── package.json ├── repl-workers ├── bundler │ ├── commonjs.js │ └── index.js ├── package-lock.json ├── package.json └── rollup.config.js ├── rollup.config.mjs ├── scripts └── create-pkg.js ├── src ├── ambient.d.ts ├── components │ ├── AsComponent.svelte │ ├── SlotComponent.svelte │ ├── Template.svelte │ ├── Template.svelte.d.ts │ ├── android.svelte │ ├── index.ts │ └── ios.svelte ├── dom │ ├── basicdom │ │ ├── CommentNode.ts │ │ ├── DocumentNode.ts │ │ ├── ElementNode.ts │ │ ├── LICENSE │ │ ├── Logger.ts │ │ ├── PropertyNode.ts │ │ ├── Readme.txt │ │ ├── TextNode.ts │ │ ├── ViewNode.ts │ │ ├── element-registry.ts │ │ └── index.ts │ ├── index.ts │ ├── native │ │ ├── AbsoluteLayoutElement.ts │ │ ├── ActionBarElement.ts │ │ ├── ActivityIndicatorElement.ts │ │ ├── ButtonElement.ts │ │ ├── ContentViewElement.ts │ │ ├── DatePickerElement.ts │ │ ├── DockLayoutElement.ts │ │ ├── FlexboxLayoutElement.ts │ │ ├── FormattedStringElement.ts │ │ ├── FrameElement.ts │ │ ├── GridLayoutElement.ts │ │ ├── HtmlViewElement.ts │ │ ├── ImageElement.ts │ │ ├── LabelElement.ts │ │ ├── ListPickerElement.ts │ │ ├── ListViewElement.ts │ │ ├── NativeElementNode.ts │ │ ├── NativeViewElementNode.ts │ │ ├── PageElement.ts │ │ ├── PlaceholderElement.ts │ │ ├── ProgressElement.ts │ │ ├── ProxyViewContainerElement.ts │ │ ├── RootLayoutElement.ts │ │ ├── ScrollViewElement.ts │ │ ├── SearchBarElement.ts │ │ ├── SegmentedBarElement.ts │ │ ├── SliderElement.ts │ │ ├── StackLayoutElement.ts │ │ ├── SwitchElement.ts │ │ ├── TabViewElement.ts │ │ ├── TextFieldElement.ts │ │ ├── TextViewElement.ts │ │ ├── TimePickerElement.ts │ │ ├── WebViewElement.ts │ │ └── WrapLayoutElement.ts │ ├── nativescript-elements.ts │ ├── navigation.ts │ ├── svelte-elements.ts │ └── svelte │ │ ├── HeadElement.ts │ │ ├── StyleElement.ts │ │ ├── SvelteNativeDocument.ts │ │ ├── TemplateElement.ts │ │ └── style-scope.d.ts ├── index.ts ├── jsx │ ├── shims.d.ts │ └── svelte-native-jsx-nativescript-core.d.ts └── transitions │ ├── bezier.ts │ ├── easing.ts │ └── index.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | .rpt2_cache 2 | node_modules 3 | dist 4 | .vscode 5 | docs_src/.sessions/ 6 | /.yarn/install-state.gz 7 | -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | compressionLevel: mixed 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 David Pershouse 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 | -------------------------------------------------------------------------------- /demo/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | trim_trailing_whitespace = true 7 | charset = utf-8 8 | 9 | [*.json] 10 | indent_style = space 11 | indent_size = 2 12 | 13 | [*.ts] 14 | indent_style = space 15 | indent_size = 4 16 | -------------------------------------------------------------------------------- /demo/.gitignore: -------------------------------------------------------------------------------- 1 | # NativeScript 2 | hooks/ 3 | node_modules/ 4 | platforms/ 5 | 6 | # NativeScript Template 7 | *.js.map 8 | 9 | # Logs 10 | logs 11 | *.log 12 | npm-debug.log* 13 | yarn-debug.log* 14 | yarn-error.log* 15 | 16 | # General 17 | .DS_Store 18 | .AppleDouble 19 | .LSOverride 20 | .idea 21 | .cloud 22 | .project 23 | tmp/ 24 | typings/ 25 | 26 | # Visual Studio Code 27 | .vscode/* 28 | !.vscode/settings.json 29 | !.vscode/tasks.json 30 | !.vscode/launch.json 31 | !.vscode/extensions.json 32 | 33 | webpack.config.js 34 | -------------------------------------------------------------------------------- /demo/app/App.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 41 | 42 | 47 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // implementation 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | // If you want to add something to be applied before applying plugins' include.gradle files 9 | // e.g. project.ext.googlePlayServicesVersion = "15.0.1" 10 | // create a file named before-plugins.gradle in the current directory and place it there 11 | 12 | android { 13 | defaultConfig { 14 | minSdkVersion 17 15 | generatedDensities = [] 16 | } 17 | aaptOptions { 18 | additionalParameters "--no-version-vectors" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 14 | 15 | 16 | 17 | 23 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-mdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | 14 | 15 | 16 | 19 | 20 | 23 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 17 | 18 | 20 | 21 | 22 | 29 | 30 | 32 | 33 | 34 | 39 | 40 | 42 | 43 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchScreen-AspectFill@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchScreen-Center@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiresFullScreen 28 | 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with XCode you need to specify your development team. 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/menu@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/menu@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/menu@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/App_Resources/iOS/menu@3x.png -------------------------------------------------------------------------------- /demo/app/Header.svelte: -------------------------------------------------------------------------------- 1 | 2 | {#if isAndroid} 3 | 4 | {:else} 5 | 6 | {/if} 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /demo/app/Nav.ts: -------------------------------------------------------------------------------- 1 | import { navigate } from 'svelte-native' 2 | import { writable } from 'svelte/store' 3 | import RadSideDrawerElement from 'svelte-native-nativescript-ui/sidedrawer'; 4 | import { Trace } from '@nativescript/core' 5 | 6 | 7 | export let current_page = writable(null); 8 | let nav_frame; 9 | let drawer: RadSideDrawerElement; 10 | 11 | export function init(navFrame, navDrawer: RadSideDrawerElement, startPage) { 12 | nav_frame = navFrame; 13 | drawer = navDrawer; 14 | current_page.set(startPage) 15 | } 16 | 17 | export function goto(view, props) { 18 | current_page.set(view); 19 | navigate({ 20 | page: view, 21 | props: props, 22 | clearHistory: true, 23 | frame: nav_frame 24 | }); 25 | } 26 | 27 | export function toggleDrawer() { 28 | drawer.toggleDrawerState(); 29 | } 30 | 31 | -------------------------------------------------------------------------------- /demo/app/app.css: -------------------------------------------------------------------------------- 1 | /* 2 | In NativeScript, the app.css file is where you place CSS rules that 3 | you would like to apply to your entire application. Check out 4 | http://docs.nativescript.org/ui/styling for a full list of the CSS 5 | selectors and properties you can use to style UI components. 6 | 7 | /* 8 | In many cases you may want to use the NativeScript core theme instead 9 | of writing your own CSS rules. For a full list of class names in the theme 10 | refer to http://docs.nativescript.org/ui/theme. 11 | The imported CSS rules must precede all other types of rules. 12 | */ 13 | @import '@nativescript/theme/css/core.css'; 14 | @import '@nativescript/theme/css/default.css'; 15 | @import './font-awesome.css'; 16 | 17 | -------------------------------------------------------------------------------- /demo/app/app.ts: -------------------------------------------------------------------------------- 1 | import { svelteNativeNoFrame } from "svelte-native"; 2 | import RadSideDrawerElement from "svelte-native-nativescript-ui/sidedrawer" 3 | 4 | RadSideDrawerElement.register(); 5 | 6 | //import * as trace from "@nativescript/core/trace" 7 | //trace.enable(); 8 | //trace.addCategories(DomTraceCategory); 9 | 10 | import App from "./App.svelte"; 11 | svelteNativeNoFrame(App as typeof SvelteComponent, {}); 12 | -------------------------------------------------------------------------------- /demo/app/font-awesome.css: -------------------------------------------------------------------------------- 1 | /* https://fontawesome.com/icons?d=gallery&m=free */ 2 | 3 | .far { 4 | font-family: "Font Awesome 5 Free", "fa-regular-400"; 5 | font-weight: 400; 6 | } 7 | 8 | .fas { 9 | font-family: "Font Awesome 5 Free", "fa-solid-900"; 10 | font-weight: 900; 11 | } 12 | 13 | .fab { 14 | font-family: "Font Awesome 5 Brands", "fa-brands-400"; 15 | font-weight: 400; 16 | } 17 | -------------------------------------------------------------------------------- /demo/app/fonts/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Font Awesome Free License 2 | ------------------------- 3 | 4 | Font Awesome Free is free, open source, and GPL friendly. You can use it for 5 | commercial projects, open source projects, or really almost whatever you want. 6 | Full Font Awesome Free license: https://fontawesome.com/license/free. 7 | 8 | # Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/) 9 | In the Font Awesome Free download, the CC BY 4.0 license applies to all icons 10 | packaged as SVG and JS file types. 11 | 12 | # Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL) 13 | In the Font Awesome Free download, the SIL OFL license applies to all icons 14 | packaged as web and desktop font files. 15 | 16 | # Code: MIT License (https://opensource.org/licenses/MIT) 17 | In the Font Awesome Free download, the MIT license applies to all non-font and 18 | non-icon files. 19 | 20 | # Attribution 21 | Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font 22 | Awesome Free files already contain embedded comments with sufficient 23 | attribution, so you shouldn't need to do anything additional when using these 24 | files normally. 25 | 26 | We've kept attribution comments terse, so we ask that you do not actively work 27 | to remove them from files, especially code. They're a great way for folks to 28 | learn about Font Awesome. 29 | 30 | # Brand Icons 31 | All brand icons are trademarks of their respective owners. The use of these 32 | trademarks does not indicate endorsement of the trademark holder by Font 33 | Awesome, nor vice versa. **Please do not use brand logos for any purpose except 34 | to represent the company, product, or service to which they refer.** 35 | -------------------------------------------------------------------------------- /demo/app/fonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/fonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /demo/app/fonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/fonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /demo/app/fonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nativescript-community/svelte-native/85b107730a2fc0bd418ed7a60644da9fc42da442/demo/app/fonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /demo/app/pages/FormattedStringPage.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /demo/app/pages/SegmentedBarPage.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 |
8 | 9 | 10 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /demo/app/tests/components/TemplateHarness.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/app/tests/dom/ListViewMultiTemplate.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 10 | 11 | 12 | 23 | -------------------------------------------------------------------------------- /demo/app/tests/dom/ListViewNode.ts: -------------------------------------------------------------------------------- 1 | import { createElement, NativeViewElementNode } from 'svelte-native/dom' 2 | import { ListView } from '@nativescript/core/ui/list-view' 3 | 4 | import ListViewMultiTemplate from './ListViewMultiTemplate.svelte' 5 | 6 | describe('ListViewNode', function () { 7 | let test_subject: NativeViewElementNode 8 | 9 | 10 | before(async function () { 11 | let el = createElement('fragment'); 12 | let harness = new ListViewMultiTemplate({ target: el as any }); 13 | test_subject = (harness as any).test_subject 14 | assert.isNotNull(test_subject) 15 | }) 16 | 17 | it('detects keyed templates', async function () { 18 | let listview = test_subject.nativeView; 19 | assert.equal(listview.itemTemplates.length, 2, `expected 2 keyed item templates`) 20 | }) 21 | 22 | it('sets the item template selector', async function () { 23 | let listview = test_subject.nativeView; 24 | assert.isDefined(listview.itemTemplateSelector) 25 | assert.isNotNull(listview.itemTemplateSelector) 26 | }) 27 | 28 | }); -------------------------------------------------------------------------------- /demo/app/tests/dom/MountChild.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 |