├── .github ├── issue_template.md └── pull_request_template.md ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── demo-ng ├── App_Resources │ ├── Android │ │ ├── app.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── res │ │ │ ├── drawable-hdpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-ldpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-mdpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-nodpi │ │ │ └── splash_screen.xml │ │ │ ├── drawable-xhdpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-xxhdpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-xxxhdpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── values-v21 │ │ │ ├── colors.xml │ │ │ └── styles.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ └── styles.xml │ └── iOS │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── icon-1024.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 │ │ ├── LaunchImage.launchimage │ │ │ ├── Contents.json │ │ │ ├── Default-1125h.png │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-667h@2x.png │ │ │ ├── Default-736h@3x.png │ │ │ ├── Default-Landscape-X.png │ │ │ ├── Default-Landscape.png │ │ │ ├── Default-Landscape@2x.png │ │ │ ├── Default-Landscape@3x.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Default-Portrait@2x.png │ │ │ ├── Default.png │ │ │ └── Default@2x.png │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ └── LaunchScreen.Center.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-Center.png │ │ │ └── LaunchScreen-Center@2x.png │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ └── build.xcconfig ├── README.md ├── angular.json ├── nsconfig.json ├── package.json ├── src │ ├── app.css │ ├── app │ │ ├── app.component.html │ │ ├── app.component.ts │ │ ├── app.module.ts │ │ ├── app.routing.ts │ │ ├── main │ │ │ ├── main.component.html │ │ │ └── main.component.ts │ │ └── multi │ │ │ ├── multi.component.html │ │ │ └── multi.component.ts │ ├── images │ │ ├── a9ff17db85f8136619feb0d5a200c0e4.png │ │ ├── batman.jpg │ │ ├── f29.png │ │ ├── shazam.jpg │ │ ├── strider.png │ │ └── svg.jpg │ ├── main.ts │ └── package.json ├── tsconfig.json └── tsconfig.tns.json ├── demo-vue ├── .gitignore ├── README.md ├── app │ ├── App_Resources │ │ ├── Android │ │ │ ├── app.gradle │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── res │ │ │ │ ├── drawable-hdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-ldpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-mdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-nodpi │ │ │ │ └── splash_screen.xml │ │ │ │ ├── drawable-xhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── values-v21 │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ └── iOS │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── icon-1024.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 │ │ │ ├── LaunchImage.launchimage │ │ │ │ ├── Contents.json │ │ │ │ ├── Default-1125h.png │ │ │ │ ├── Default-568h@2x.png │ │ │ │ ├── Default-667h@2x.png │ │ │ │ ├── Default-736h@3x.png │ │ │ │ ├── Default-Landscape-X.png │ │ │ │ ├── Default-Landscape.png │ │ │ │ ├── Default-Landscape@2x.png │ │ │ │ ├── Default-Landscape@3x.png │ │ │ │ ├── Default-Portrait.png │ │ │ │ ├── Default-Portrait@2x.png │ │ │ │ ├── Default.png │ │ │ │ └── Default@2x.png │ │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ │ └── LaunchScreen.Center.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ └── LaunchScreen-Center@2x.png │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ └── build.xcconfig │ ├── app.scss │ ├── assets │ │ └── images │ │ │ ├── NativeScript-Vue.png │ │ │ ├── a9ff17db85f8136619feb0d5a200c0e4.png │ │ │ ├── batman.jpg │ │ │ ├── f29.png │ │ │ ├── shazam.jpg │ │ │ ├── strider.png │ │ │ └── svg.jpg │ ├── components │ │ ├── App.vue │ │ └── Multi.vue │ ├── fonts │ │ └── .gitkeep │ └── package.json └── package.json ├── demo ├── app │ ├── App_Resources │ │ ├── Android │ │ │ ├── app.gradle │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── res │ │ │ │ ├── drawable-hdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-ldpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-mdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-nodpi │ │ │ │ └── splash_screen.xml │ │ │ │ ├── drawable-xhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── values-v21 │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ └── iOS │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── icon-29.png │ │ │ │ ├── icon-29@2x.png │ │ │ │ ├── icon-29@3x.png │ │ │ │ ├── icon-40.png │ │ │ │ ├── icon-40@2x.png │ │ │ │ ├── icon-40@3x.png │ │ │ │ ├── icon-50.png │ │ │ │ ├── icon-50@2x.png │ │ │ │ ├── icon-57.png │ │ │ │ ├── icon-57@2x.png │ │ │ │ ├── icon-60@2x.png │ │ │ │ ├── icon-60@3x.png │ │ │ │ ├── icon-72.png │ │ │ │ ├── icon-72@2x.png │ │ │ │ ├── icon-76.png │ │ │ │ ├── icon-76@2x.png │ │ │ │ └── icon-83.5@2x.png │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.launchimage │ │ │ │ ├── Contents.json │ │ │ │ ├── Default-568h@2x.png │ │ │ │ ├── Default-667h@2x.png │ │ │ │ ├── Default-736h@3x.png │ │ │ │ ├── Default-Landscape.png │ │ │ │ ├── Default-Landscape@2x.png │ │ │ │ ├── Default-Landscape@3x.png │ │ │ │ ├── Default-Portrait.png │ │ │ │ ├── Default-Portrait@2x.png │ │ │ │ ├── Default.png │ │ │ │ └── Default@2x.png │ │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ │ └── LaunchScreen.Center.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ └── LaunchScreen-Center@2x.png │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ └── build.xcconfig │ ├── app.css │ ├── app.ts │ ├── images │ │ ├── a9ff17db85f8136619feb0d5a200c0e4.png │ │ ├── batman.jpg │ │ ├── f29.png │ │ ├── shazam.jpg │ │ ├── strider.png │ │ └── svg.jpg │ ├── main-page.ts │ ├── main-page.xml │ ├── main-view-model.ts │ ├── multi │ │ ├── multi-page.ts │ │ ├── multi-page.xml │ │ └── multi-view-model.ts │ ├── package.json │ └── tests │ │ └── tests.js ├── karma.conf.js ├── package.json ├── references.d.ts └── tsconfig.json ├── publish ├── pack.sh ├── package.json └── publish.sh ├── src ├── .npmignore ├── accordion.android.ts ├── accordion.common.d.ts ├── accordion.common.ts ├── accordion.ios.ts ├── angular │ ├── index.d.ts │ ├── index.ts │ └── package.json ├── index.d.ts ├── package.json ├── references.d.ts ├── scripts │ └── build-native.js ├── tsconfig.json └── vue │ ├── accordion.js │ ├── index.js │ └── package.json ├── ss ├── android.gif └── ios.gif └── tslint.json /.github/issue_template.md: -------------------------------------------------------------------------------- 1 | ### Make sure to check the demo app(s) for sample usage 2 | 3 | ### Make sure to check the existing issues in this repository 4 | 5 | ### If the demo apps cannot help and there is no issue for your problem, tell us about it 6 | Please, ensure your title is less than 63 characters long and starts with a capital 7 | letter. 8 | 9 | ### Which platform(s) does your issue occur on? 10 | - iOS/Android/Both 11 | - iOS/Android versions 12 | - emulator or device. What type of device? 13 | 14 | ### Please, provide the following version numbers that your issue occurs with: 15 | 16 | - CLI: (run `tns --version` to fetch it) 17 | - Cross-platform modules: (check the 'version' attribute in the 18 | `node_modules/tns-core-modules/package.json` file in your project) 19 | - Runtime(s): (look for the `"tns-android"` and `"tns-ios"` properties in the `package.json` file of your project) 20 | - Plugin(s): (look for the version numbers in the `package.json` file of your 21 | project and paste your dependencies and devDependencies here) 22 | 23 | ### Please, tell us how to recreate the issue in as much detail as possible. 24 | Describe the steps to reproduce it. 25 | 26 | ### Is there any code involved? 27 | - provide a code example to recreate the problem 28 | - (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible. 29 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | ## PR Checklist 11 | 12 | - [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages. 13 | - [ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it. 14 | - [ ] All existing tests are passing 15 | - [ ] Tests for the changes are included 16 | 17 | ## What is the current behavior? 18 | 19 | 20 | ## What is the new behavior? 21 | 22 | 23 | Fixes/Implements/Closes #[Issue Number]. 24 | 25 | 26 | 27 | 36 | 37 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | .idea 3 | .DS_Store 4 | *.esm.json 5 | *.js 6 | *.js.map 7 | *.log 8 | src/*.d.ts 9 | !src/index.d.ts 10 | !src/references.d.ts 11 | !src/scripts/*.js 12 | !seed-tests/*.js 13 | seed-tests/seed-copy/**/*.* 14 | seed-tests/seed-copy-new-git-repo/**/*.* 15 | !demo/karma.conf.js 16 | !demo/app/tests/*.js 17 | demo/*.d.ts 18 | !demo/references.d.ts 19 | demo/lib 20 | demo/platforms 21 | demo/report/report.html 22 | demo/report/stats.json 23 | node_modules 24 | publish/src 25 | publish/package 26 | !src/vue/*.js 27 | !src/demo-vue/*.js 28 | demo-ng/*.d.ts 29 | !demo-ng/references.d.ts 30 | demo-ng/lib 31 | demo-ng/platforms 32 | demo-ng/report/report.html 33 | demo-ng/report/stats.json 34 | demo-vue/lib 35 | demo-vue/platforms 36 | demo-vue/report/report.html 37 | demo-vue/report/stats.json 38 | package-lock.json 39 | *.metadata.json -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | matrix: 2 | include: 3 | - stage: "Lint" 4 | language: node_js 5 | os: linux 6 | node_js: "8" 7 | script: cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint 8 | - stage: "WebPack, Build and Test" 9 | os: osx 10 | env: 11 | - WebPack="iOS" 12 | osx_image: xcode9.2 13 | language: node_js 14 | node_js: "8" 15 | jdk: oraclejdk8 16 | script: cd demo && npm run build.plugin && npm i && tns build ios --bundle --env.uglify 17 | - language: android 18 | os: linux 19 | env: 20 | - WebPack="Android" 21 | jdk: oraclejdk8 22 | before_install: nvm install 8 23 | script: cd demo && npm run build.plugin && npm i && tns build android --bundle --env.uglify --env.snapshot 24 | - language: android 25 | env: 26 | - BuildAndroid="26" 27 | os: linux 28 | jdk: oraclejdk8 29 | before_install: nvm install stable 30 | script: 31 | - cd src && npm i && npm run tsc && cd ../demo && tns build android 32 | - os: osx 33 | env: 34 | - BuildiOS="11" 35 | - Xcode="9.2" 36 | osx_image: xcode9.2 37 | language: node_js 38 | node_js: "8" 39 | jdk: oraclejdk8 40 | script: 41 | - cd src && npm i && npm run tsc && cd ../demo && tns build ios 42 | - os: linux 43 | language: android 44 | dist: precise 45 | sudo: required 46 | jdk: oraclejdk8 47 | before_script: 48 | - echo no | android create avd --force -n test -t android-21 -b armeabi-v7a 49 | - emulator -avd test -no-audio -no-window & 50 | - android-wait-for-emulator 51 | before_install: 52 | - nvm install 8 53 | script: cd src && npm run test.android 54 | - os: osx 55 | language: node_js 56 | node_js: "8" 57 | jdk: oraclejdk8 58 | osx_image: xcode9.2 59 | script: cd src && npm run test.ios 60 | 61 | android: 62 | components: 63 | - tools 64 | - platform-tools 65 | - build-tools-26.0.1 66 | - android-26 67 | - android-23 68 | - extra-android-m2repository 69 | - sys-img-armeabi-v7a-android-21 70 | 71 | install: 72 | - echo no | npm install -g nativescript 73 | - tns usage-reporting disable 74 | - tns error-reporting disable -------------------------------------------------------------------------------- /demo-ng/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 | generatedDensities = [] 15 | } 16 | aaptOptions { 17 | additionalParameters "--no-version-vectors" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 28 | 29 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/background.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/background.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /demo-ng/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-ng/App_Resources/Android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /demo-ng/App_Resources/Android/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 18 | 19 | 21 | 22 | 23 | 31 | 32 | 34 | 35 | 36 | 42 | 43 | 45 | 46 | -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "icon-29.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "icon-29@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29@3x.png", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "icon-40@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "icon-40@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "icon-60@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "icon-60@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "29x29", 47 | "idiom" : "ipad", 48 | "filename" : "icon-29.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "29x29", 53 | "idiom" : "ipad", 54 | "filename" : "icon-29@2x.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "40x40", 59 | "idiom" : "ipad", 60 | "filename" : "icon-40.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "40x40", 65 | "idiom" : "ipad", 66 | "filename" : "icon-40@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "76x76", 71 | "idiom" : "ipad", 72 | "filename" : "icon-76.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "76x76", 77 | "idiom" : "ipad", 78 | "filename" : "icon-76@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "83.5x83.5", 83 | "idiom" : "ipad", 84 | "filename" : "icon-83.5@2x.png", 85 | "scale" : "2x" 86 | }, 87 | { 88 | "size" : "1024x1024", 89 | "idiom" : "ios-marketing", 90 | "filename" : "icon-1024.png", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "subtype" : "2436h", 7 | "filename" : "Default-1125h.png", 8 | "minimum-system-version" : "11.0", 9 | "orientation" : "portrait", 10 | "scale" : "3x" 11 | }, 12 | { 13 | "orientation" : "landscape", 14 | "idiom" : "iphone", 15 | "extent" : "full-screen", 16 | "filename" : "Default-Landscape-X.png", 17 | "minimum-system-version" : "11.0", 18 | "subtype" : "2436h", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "extent" : "full-screen", 23 | "idiom" : "iphone", 24 | "subtype" : "736h", 25 | "filename" : "Default-736h@3x.png", 26 | "minimum-system-version" : "8.0", 27 | "orientation" : "portrait", 28 | "scale" : "3x" 29 | }, 30 | { 31 | "extent" : "full-screen", 32 | "idiom" : "iphone", 33 | "subtype" : "736h", 34 | "filename" : "Default-Landscape@3x.png", 35 | "minimum-system-version" : "8.0", 36 | "orientation" : "landscape", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "extent" : "full-screen", 41 | "idiom" : "iphone", 42 | "subtype" : "667h", 43 | "filename" : "Default-667h@2x.png", 44 | "minimum-system-version" : "8.0", 45 | "orientation" : "portrait", 46 | "scale" : "2x" 47 | }, 48 | { 49 | "orientation" : "portrait", 50 | "idiom" : "iphone", 51 | "filename" : "Default@2x.png", 52 | "extent" : "full-screen", 53 | "minimum-system-version" : "7.0", 54 | "scale" : "2x" 55 | }, 56 | { 57 | "extent" : "full-screen", 58 | "idiom" : "iphone", 59 | "subtype" : "retina4", 60 | "filename" : "Default-568h@2x.png", 61 | "minimum-system-version" : "7.0", 62 | "orientation" : "portrait", 63 | "scale" : "2x" 64 | }, 65 | { 66 | "orientation" : "portrait", 67 | "idiom" : "ipad", 68 | "filename" : "Default-Portrait.png", 69 | "extent" : "full-screen", 70 | "minimum-system-version" : "7.0", 71 | "scale" : "1x" 72 | }, 73 | { 74 | "orientation" : "landscape", 75 | "idiom" : "ipad", 76 | "filename" : "Default-Landscape.png", 77 | "extent" : "full-screen", 78 | "minimum-system-version" : "7.0", 79 | "scale" : "1x" 80 | }, 81 | { 82 | "orientation" : "portrait", 83 | "idiom" : "ipad", 84 | "filename" : "Default-Portrait@2x.png", 85 | "extent" : "full-screen", 86 | "minimum-system-version" : "7.0", 87 | "scale" : "2x" 88 | }, 89 | { 90 | "orientation" : "landscape", 91 | "idiom" : "ipad", 92 | "filename" : "Default-Landscape@2x.png", 93 | "extent" : "full-screen", 94 | "minimum-system-version" : "7.0", 95 | "scale" : "2x" 96 | }, 97 | { 98 | "orientation" : "portrait", 99 | "idiom" : "iphone", 100 | "filename" : "Default.png", 101 | "extent" : "full-screen", 102 | "scale" : "1x" 103 | }, 104 | { 105 | "orientation" : "portrait", 106 | "idiom" : "iphone", 107 | "filename" : "Default@2x.png", 108 | "extent" : "full-screen", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "orientation" : "portrait", 113 | "idiom" : "iphone", 114 | "filename" : "Default-568h@2x.png", 115 | "extent" : "full-screen", 116 | "subtype" : "retina4", 117 | "scale" : "2x" 118 | }, 119 | { 120 | "orientation" : "portrait", 121 | "idiom" : "ipad", 122 | "extent" : "to-status-bar", 123 | "scale" : "1x" 124 | }, 125 | { 126 | "orientation" : "portrait", 127 | "idiom" : "ipad", 128 | "filename" : "Default-Portrait.png", 129 | "extent" : "full-screen", 130 | "scale" : "1x" 131 | }, 132 | { 133 | "orientation" : "landscape", 134 | "idiom" : "ipad", 135 | "extent" : "to-status-bar", 136 | "scale" : "1x" 137 | }, 138 | { 139 | "orientation" : "landscape", 140 | "idiom" : "ipad", 141 | "filename" : "Default-Landscape.png", 142 | "extent" : "full-screen", 143 | "scale" : "1x" 144 | }, 145 | { 146 | "orientation" : "portrait", 147 | "idiom" : "ipad", 148 | "extent" : "to-status-bar", 149 | "scale" : "2x" 150 | }, 151 | { 152 | "orientation" : "portrait", 153 | "idiom" : "ipad", 154 | "filename" : "Default-Portrait@2x.png", 155 | "extent" : "full-screen", 156 | "scale" : "2x" 157 | }, 158 | { 159 | "orientation" : "landscape", 160 | "idiom" : "ipad", 161 | "extent" : "to-status-bar", 162 | "scale" : "2x" 163 | }, 164 | { 165 | "orientation" : "landscape", 166 | "idiom" : "ipad", 167 | "filename" : "Default-Landscape@2x.png", 168 | "extent" : "full-screen", 169 | "scale" : "2x" 170 | } 171 | ], 172 | "info" : { 173 | "version" : 1, 174 | "author" : "xcode" 175 | } 176 | } -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /demo-ng/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 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /demo-ng/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 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /demo-ng/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 | NSAppTransportSecurity 47 | 48 | 49 | NSAllowsArbitraryLoads 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /demo-ng/App_Resources/iOS/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /demo-ng/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 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /demo-ng/README.md: -------------------------------------------------------------------------------- 1 | # NativeScript Angular Template 2 | 3 | This template creates a "Hello, world" NativeScript app using TypeScript and Angular. 4 | 5 | You can create a new app that uses this template with either the `--template` option. 6 | 7 | ``` 8 | tns create my-app-name --template tns-template-hello-world-ng 9 | ``` 10 | 11 | Or the `--ng` shorthand. 12 | 13 | ``` 14 | tns create my-app-name --ng 15 | ``` 16 | 17 | > Note: Both commands will create a new NativeScript app that uses the latest version of this template published to [npm] (https://www.npmjs.com/package/tns-template-hello-world-ng). 18 | 19 | If you want to create a new app that uses the source of the template from the `master` branch, you can execute the following: 20 | 21 | ``` 22 | tns create my-app-name --template https://github.com/NativeScript/template-hello-world-ng.git#master 23 | ``` 24 | 25 | **NB:** Please, have in mind that the master branch may refer to dependencies that are not on NPM yet! 26 | 27 | # Issues 28 | 29 | Issues related to `template-hello-world-ng` template should be logged in the https://github.com/NativeScript/NativeScript repository. 30 | -------------------------------------------------------------------------------- /demo-ng/angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "version": 1, 4 | "newProjectRoot": "projects", 5 | "cli": { 6 | "defaultCollection": "@nativescript/schematics" 7 | }, 8 | "projects": { 9 | "hello-world": { 10 | "root": "", 11 | "sourceRoot": "src", 12 | "projectType": "application", 13 | "prefix": "ns" 14 | } 15 | }, 16 | "defaultProject": "hello-world" 17 | } 18 | -------------------------------------------------------------------------------- /demo-ng/nsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "appResourcesPath": "App_Resources", 3 | "appPath": "src" 4 | } 5 | -------------------------------------------------------------------------------- /demo-ng/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "nativescript": { 3 | "id": "org.nativescript.demong", 4 | "tns-android": { 5 | "version": "4.2.0" 6 | }, 7 | "tns-ios": { 8 | "version": "4.2.0" 9 | } 10 | }, 11 | "description": "NativeScript Application", 12 | "license": "SEE LICENSE IN ", 13 | "repository": "", 14 | "dependencies": { 15 | "@angular/animations": "~6.1.0", 16 | "@angular/common": "~6.1.0", 17 | "@angular/compiler": "~6.1.0", 18 | "@angular/core": "~6.1.0", 19 | "@angular/forms": "~6.1.0", 20 | "@angular/http": "~6.1.0", 21 | "@angular/platform-browser": "~6.1.0", 22 | "@angular/platform-browser-dynamic": "~6.1.0", 23 | "@angular/router": "~6.1.0", 24 | "nativescript-accordion": "file:../src", 25 | "nativescript-angular": "~6.1.0", 26 | "nativescript-theme-core": "~1.0.4", 27 | "reflect-metadata": "~0.1.8", 28 | "rxjs": "~6.2.0", 29 | "tns-core-modules": "~4.2.0", 30 | "zone.js": "^0.8.26" 31 | }, 32 | "devDependencies": { 33 | "@angular/compiler-cli": "~6.1.0", 34 | "@nativescript/schematics": "~0.3.0", 35 | "@ngtools/webpack": "~6.2.0", 36 | "nativescript-dev-typescript": "~0.7.0", 37 | "nativescript-dev-webpack": "^0.16.2", 38 | "typescript": "~2.7.2" 39 | }, 40 | "readme": "NativeScript Application" 41 | } -------------------------------------------------------------------------------- /demo-ng/src/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 | */ 12 | @import '~nativescript-theme-core/css/core.light.css'; 13 | -------------------------------------------------------------------------------- /demo-ng/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /demo-ng/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from "@angular/core"; 2 | 3 | @Component({ 4 | selector: "ns-app", 5 | moduleId: module.id, 6 | templateUrl: "./app.component.html", 7 | }) 8 | export class AppComponent { } 9 | -------------------------------------------------------------------------------- /demo-ng/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; 2 | import { NativeScriptModule } from 'nativescript-angular/nativescript.module'; 3 | import { AppRoutingModule } from './app.routing'; 4 | import { AppComponent } from './app.component'; 5 | import { MainComponent } from '~/app/main/main.component'; 6 | import { MultiComponent } from '~/app/multi/multi.component'; 7 | import { AccordionModule } from 'nativescript-accordion/angular'; 8 | 9 | 10 | @NgModule({ 11 | bootstrap: [ 12 | AppComponent 13 | ], 14 | imports: [ 15 | NativeScriptModule, 16 | AppRoutingModule, 17 | AccordionModule 18 | ], 19 | declarations: [ 20 | AppComponent, 21 | MainComponent, 22 | MultiComponent 23 | ], 24 | schemas: [ 25 | NO_ERRORS_SCHEMA 26 | ] 27 | }) 28 | /* 29 | Pass your application module to the bootstrapModule function located in main.ts to start your app 30 | */ 31 | export class AppModule { 32 | } 33 | -------------------------------------------------------------------------------- /demo-ng/src/app/app.routing.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { NativeScriptRouterModule } from 'nativescript-angular/router'; 3 | import { Routes } from '@angular/router'; 4 | import { MainComponent } from '~/app/main/main.component'; 5 | import { MultiComponent } from '~/app/multi/multi.component'; 6 | 7 | 8 | const routes: Routes = [ 9 | {path: '', redirectTo: '/main', pathMatch: 'full'}, 10 | {path: 'main', component: MainComponent}, 11 | {path: 'multi', component: MultiComponent}, 12 | ]; 13 | 14 | @NgModule({ 15 | imports: [NativeScriptRouterModule.forRoot(routes)], 16 | exports: [NativeScriptRouterModule] 17 | }) 18 | export class AppRoutingModule { 19 | } -------------------------------------------------------------------------------- /demo-ng/src/app/main/main.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /demo-ng/src/app/main/main.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | 4 | @Component({ 5 | moduleId: module.id, 6 | selector: 'ac-main', 7 | templateUrl: 'main.component.html' 8 | }) 9 | export class MainComponent implements OnInit { 10 | public items: any[]; 11 | public selectedIndexes = [0, 1]; 12 | constructor(private router: Router) { 13 | 14 | } 15 | 16 | goToMulti() { 17 | this.router.navigate(['multi']); 18 | } 19 | 20 | ngOnInit(): void { 21 | this.items = [ 22 | { 23 | title: '1', 24 | footer: '10', 25 | headerText: 'First', 26 | footerText: '4', 27 | image: 'http://placehold.it/120x120&text=First', 28 | items: [{image: '~/images/a9ff17db85f8136619feb0d5a200c0e4.png', text: 'Stop'}, { 29 | text: 'Drop', 30 | image: '~/images/shazam.jpg' 31 | }] 32 | }, 33 | { 34 | title: '2', 35 | footer: '20', 36 | headerText: 'Second', 37 | footerText: '5', 38 | image: 'http://placehold.it/120x120&text=Second', 39 | items: [{ 40 | text: 'Drop', 41 | image: '~/images/batman.jpg' 42 | }, {text: 'Drop', image: '~/images/f29.png'}] 43 | }, 44 | { 45 | title: '3', 46 | footer: '30', 47 | headerText: 'Third', 48 | footerText: '6', 49 | image: 'http://placehold.it/120x120&text=Third', 50 | items: [{text: 'Drop', image: '~/images/strider.png'}, { 51 | text: 'Drop', 52 | image: '~/images/f29.png' 53 | }] 54 | } 55 | ]; 56 | } 57 | 58 | } -------------------------------------------------------------------------------- /demo-ng/src/app/multi/multi.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 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 | 66 | 67 | -------------------------------------------------------------------------------- /demo-ng/src/app/multi/multi.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; 2 | import { RouterExtensions } from 'nativescript-angular'; 3 | 4 | @Component({ 5 | moduleId: module.id, 6 | selector: 'ac-multi', 7 | templateUrl: 'multi.component.html' 8 | }) 9 | 10 | export class MultiComponent implements OnInit { 11 | items: any[]; 12 | public selectedIndexes = [0, 2]; 13 | @ViewChild('accordion') accordion: ElementRef; 14 | 15 | constructor(private router: RouterExtensions) { 16 | } 17 | 18 | expandAll() { 19 | this.accordion.nativeElement.expandAll(); 20 | } 21 | 22 | collapseAll() { 23 | this.accordion.nativeElement.collapseAll(); 24 | } 25 | 26 | public headerTemplateSelector = (item: any, index: number, items: any) => { 27 | return index % 2 === 0 ? 'header-odd' : 'header-even'; 28 | } 29 | 30 | public itemHeaderTemplateSelector = (item: any, index: number, items: any) => { 31 | return index % 2 === 0 ? 'title-even' : 'title-odd'; 32 | } 33 | 34 | public itemContentTemplateSelector = (item: any, index: number, items: any) => { 35 | return index % 2 === 0 ? 'content-even' : 'content-odd'; 36 | } 37 | 38 | public footerTemplateSelector = (item: any, index: number, items: any) => { 39 | return index % 2 === 0 ? 'footer-even' : 'footer-odd'; 40 | } 41 | 42 | goBack() { 43 | this.router.back(); 44 | } 45 | 46 | ngOnInit(): void { 47 | this.items = [ 48 | { 49 | title: '1', 50 | footer: '10', 51 | headerText: 'First', 52 | footerText: '4', 53 | image: 'http://placehold.it/120x120&text=First', 54 | children: [ 55 | {image: '~/images/a9ff17db85f8136619feb0d5a200c0e4.png', text: 'Someone'}, 56 | { 57 | text: 'Help', 58 | image: '~/images/svg.jpg' 59 | } 60 | ] 61 | }, 62 | { 63 | title: '2', 64 | footer: '20', 65 | headerText: 'Second', 66 | footerText: '5', 67 | image: 'http://placehold.it/120x120&text=Second', 68 | children: [{ 69 | text: 'Me', 70 | image: '~/images/shazam.jpg' 71 | }, {text: 'Stop', image: '~/images/f29.png'}] 72 | }, 73 | { 74 | title: '3', 75 | footer: '30', 76 | headerText: 'Third', 77 | footerText: '6', 78 | image: 'http://placehold.it/120x120&text=Third', 79 | children: [{text: 'This', image: '~/images/a9ff17db85f8136619feb0d5a200c0e4.png'}, { 80 | text: 'Thing', 81 | image: '~/images/shazam.jpg' 82 | }] 83 | }, 84 | { 85 | title: '4', 86 | footer: '40', 87 | headerText: 'Fourth', 88 | footerText: '7', 89 | image: 'http://placehold.it/120x120&text=Fourth', 90 | children: [{text: 'Now', image: '~/images/batman.png'}, { 91 | text: 'Please', 92 | image: '~/images/batman.jpg' 93 | }] 94 | } 95 | ]; 96 | } 97 | 98 | } -------------------------------------------------------------------------------- /demo-ng/src/images/a9ff17db85f8136619feb0d5a200c0e4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/src/images/a9ff17db85f8136619feb0d5a200c0e4.png -------------------------------------------------------------------------------- /demo-ng/src/images/batman.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/src/images/batman.jpg -------------------------------------------------------------------------------- /demo-ng/src/images/f29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/src/images/f29.png -------------------------------------------------------------------------------- /demo-ng/src/images/shazam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/src/images/shazam.jpg -------------------------------------------------------------------------------- /demo-ng/src/images/strider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/src/images/strider.png -------------------------------------------------------------------------------- /demo-ng/src/images/svg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-ng/src/images/svg.jpg -------------------------------------------------------------------------------- /demo-ng/src/main.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScriptDynamic } from "nativescript-angular/platform"; 3 | 4 | import { AppModule } from "./app/app.module"; 5 | 6 | // A traditional NativeScript application starts by initializing global objects, setting up global CSS rules, creating, and navigating to the main page. 7 | // Angular applications need to take care of their own initialization: modules, components, directives, routes, DI providers. 8 | // A NativeScript Angular app needs to make both paradigms work together, so we provide a wrapper platform object, platformNativeScriptDynamic, 9 | // that sets up a NativeScript application and can bootstrap the Angular framework. 10 | platformNativeScriptDynamic().bootstrapModule(AppModule); 11 | -------------------------------------------------------------------------------- /demo-ng/src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "main.js", 3 | "android": { 4 | "v8Flags": "--expose_gc" 5 | } 6 | } -------------------------------------------------------------------------------- /demo-ng/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "lib": [ 10 | "es6", 11 | "dom", 12 | "es2015.iterable" 13 | ], 14 | "baseUrl": ".", 15 | "paths": { 16 | "~/*": [ 17 | "src/*" 18 | ], 19 | "*": [ 20 | "./node_modules/tns-core-modules/*", 21 | "./node_modules/*" 22 | ] 23 | } 24 | }, 25 | "include": [ 26 | "../src", 27 | "**/*" 28 | ], 29 | "exclude": [ 30 | "node_modules", 31 | "../src/node_modules", 32 | "platforms", 33 | "**/*.spec.ts" 34 | ] 35 | } -------------------------------------------------------------------------------- /demo-ng/tsconfig.tns.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "es2015", 5 | "moduleResolution": "node" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /demo-vue/.gitignore: -------------------------------------------------------------------------------- 1 | # JetBrains project files 2 | .idea 3 | 4 | # NPM 5 | node_modules 6 | 7 | # NativeScript application 8 | hooks 9 | platforms 10 | -------------------------------------------------------------------------------- /demo-vue/README.md: -------------------------------------------------------------------------------- 1 | # NativeScript-Vue Application 2 | 3 | > A native application built with NativeScript-Vue 4 | 5 | ## Usage 6 | 7 | ``` bash 8 | # Install dependencies 9 | npm install 10 | 11 | # Build for production 12 | tns build --bundle 13 | 14 | # Build, watch for changes and debug the application 15 | tns debug --bundle 16 | 17 | # Build, watch for changes and run the application 18 | tns run --bundle 19 | ``` -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | android { 4 | defaultConfig { 5 | generatedDensities = [] 6 | applicationId = "org.nativescript.application" 7 | } 8 | aaptOptions { 9 | additionalParameters "--no-version-vectors" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/values-v21/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | NativeScript-Vue Application 4 | NativeScript-Vue Application 5 | 6 | -------------------------------------------------------------------------------- /demo-vue/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-vue/app/App_Resources/Android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #53ba82 5 | #33B5E5 6 | #272734 7 | 8 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | NativeScript-Vue Application 4 | NativeScript-Vue Application 5 | 6 | -------------------------------------------------------------------------------- /demo-vue/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-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "icon-29.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "icon-29@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29@3x.png", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "icon-40@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "icon-40@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "icon-60@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "icon-60@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "29x29", 47 | "idiom" : "ipad", 48 | "filename" : "icon-29.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "29x29", 53 | "idiom" : "ipad", 54 | "filename" : "icon-29@2x.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "40x40", 59 | "idiom" : "ipad", 60 | "filename" : "icon-40.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "40x40", 65 | "idiom" : "ipad", 66 | "filename" : "icon-40@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "76x76", 71 | "idiom" : "ipad", 72 | "filename" : "icon-76.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "76x76", 77 | "idiom" : "ipad", 78 | "filename" : "icon-76@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "83.5x83.5", 83 | "idiom" : "ipad", 84 | "filename" : "icon-83.5@2x.png", 85 | "scale" : "2x" 86 | }, 87 | { 88 | "size" : "1024x1024", 89 | "idiom" : "ios-marketing", 90 | "filename" : "icon-1024.png", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "subtype" : "2436h", 7 | "filename" : "Default-1125h.png", 8 | "minimum-system-version" : "11.0", 9 | "orientation" : "portrait", 10 | "scale" : "3x" 11 | }, 12 | { 13 | "orientation" : "landscape", 14 | "idiom" : "iphone", 15 | "extent" : "full-screen", 16 | "filename" : "Default-Landscape-X.png", 17 | "minimum-system-version" : "11.0", 18 | "subtype" : "2436h", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "extent" : "full-screen", 23 | "idiom" : "iphone", 24 | "subtype" : "736h", 25 | "filename" : "Default-736h@3x.png", 26 | "minimum-system-version" : "8.0", 27 | "orientation" : "portrait", 28 | "scale" : "3x" 29 | }, 30 | { 31 | "extent" : "full-screen", 32 | "idiom" : "iphone", 33 | "subtype" : "736h", 34 | "filename" : "Default-Landscape@3x.png", 35 | "minimum-system-version" : "8.0", 36 | "orientation" : "landscape", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "extent" : "full-screen", 41 | "idiom" : "iphone", 42 | "subtype" : "667h", 43 | "filename" : "Default-667h@2x.png", 44 | "minimum-system-version" : "8.0", 45 | "orientation" : "portrait", 46 | "scale" : "2x" 47 | }, 48 | { 49 | "orientation" : "portrait", 50 | "idiom" : "iphone", 51 | "filename" : "Default@2x.png", 52 | "extent" : "full-screen", 53 | "minimum-system-version" : "7.0", 54 | "scale" : "2x" 55 | }, 56 | { 57 | "extent" : "full-screen", 58 | "idiom" : "iphone", 59 | "subtype" : "retina4", 60 | "filename" : "Default-568h@2x.png", 61 | "minimum-system-version" : "7.0", 62 | "orientation" : "portrait", 63 | "scale" : "2x" 64 | }, 65 | { 66 | "orientation" : "portrait", 67 | "idiom" : "ipad", 68 | "filename" : "Default-Portrait.png", 69 | "extent" : "full-screen", 70 | "minimum-system-version" : "7.0", 71 | "scale" : "1x" 72 | }, 73 | { 74 | "orientation" : "landscape", 75 | "idiom" : "ipad", 76 | "filename" : "Default-Landscape.png", 77 | "extent" : "full-screen", 78 | "minimum-system-version" : "7.0", 79 | "scale" : "1x" 80 | }, 81 | { 82 | "orientation" : "portrait", 83 | "idiom" : "ipad", 84 | "filename" : "Default-Portrait@2x.png", 85 | "extent" : "full-screen", 86 | "minimum-system-version" : "7.0", 87 | "scale" : "2x" 88 | }, 89 | { 90 | "orientation" : "landscape", 91 | "idiom" : "ipad", 92 | "filename" : "Default-Landscape@2x.png", 93 | "extent" : "full-screen", 94 | "minimum-system-version" : "7.0", 95 | "scale" : "2x" 96 | }, 97 | { 98 | "orientation" : "portrait", 99 | "idiom" : "iphone", 100 | "filename" : "Default.png", 101 | "extent" : "full-screen", 102 | "scale" : "1x" 103 | }, 104 | { 105 | "orientation" : "portrait", 106 | "idiom" : "iphone", 107 | "filename" : "Default@2x.png", 108 | "extent" : "full-screen", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "orientation" : "portrait", 113 | "idiom" : "iphone", 114 | "filename" : "Default-568h@2x.png", 115 | "extent" : "full-screen", 116 | "subtype" : "retina4", 117 | "scale" : "2x" 118 | }, 119 | { 120 | "orientation" : "portrait", 121 | "idiom" : "ipad", 122 | "extent" : "to-status-bar", 123 | "scale" : "1x" 124 | }, 125 | { 126 | "orientation" : "portrait", 127 | "idiom" : "ipad", 128 | "filename" : "Default-Portrait.png", 129 | "extent" : "full-screen", 130 | "scale" : "1x" 131 | }, 132 | { 133 | "orientation" : "landscape", 134 | "idiom" : "ipad", 135 | "extent" : "to-status-bar", 136 | "scale" : "1x" 137 | }, 138 | { 139 | "orientation" : "landscape", 140 | "idiom" : "ipad", 141 | "filename" : "Default-Landscape.png", 142 | "extent" : "full-screen", 143 | "scale" : "1x" 144 | }, 145 | { 146 | "orientation" : "portrait", 147 | "idiom" : "ipad", 148 | "extent" : "to-status-bar", 149 | "scale" : "2x" 150 | }, 151 | { 152 | "orientation" : "portrait", 153 | "idiom" : "ipad", 154 | "filename" : "Default-Portrait@2x.png", 155 | "extent" : "full-screen", 156 | "scale" : "2x" 157 | }, 158 | { 159 | "orientation" : "landscape", 160 | "idiom" : "ipad", 161 | "extent" : "to-status-bar", 162 | "scale" : "2x" 163 | }, 164 | { 165 | "orientation" : "landscape", 166 | "idiom" : "ipad", 167 | "filename" : "Default-Landscape@2x.png", 168 | "extent" : "full-screen", 169 | "scale" : "2x" 170 | } 171 | ], 172 | "info" : { 173 | "version" : 1, 174 | "author" : "xcode" 175 | } 176 | } -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /demo-vue/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 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /demo-vue/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 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | NativeScript-Vue Application 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0.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 | NSAppTransportSecurity 47 | 48 | 49 | NSAllowsArbitraryLoads 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /demo-vue/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 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /demo-vue/app/app.scss: -------------------------------------------------------------------------------- 1 | // NativeScript core theme 2 | // @see https://docs.nativescript.org/ui/theme 3 | @import '~nativescript-theme-core/scss/aqua'; 4 | 5 | // Override variables here 6 | 7 | @import '~nativescript-theme-core/scss/index'; 8 | 9 | // Global SCSS styling 10 | // @see https://docs.nativescript.org/ui/styling 11 | -------------------------------------------------------------------------------- /demo-vue/app/assets/images/NativeScript-Vue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/assets/images/NativeScript-Vue.png -------------------------------------------------------------------------------- /demo-vue/app/assets/images/a9ff17db85f8136619feb0d5a200c0e4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/assets/images/a9ff17db85f8136619feb0d5a200c0e4.png -------------------------------------------------------------------------------- /demo-vue/app/assets/images/batman.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/assets/images/batman.jpg -------------------------------------------------------------------------------- /demo-vue/app/assets/images/f29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/assets/images/f29.png -------------------------------------------------------------------------------- /demo-vue/app/assets/images/shazam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/assets/images/shazam.jpg -------------------------------------------------------------------------------- /demo-vue/app/assets/images/strider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/assets/images/strider.png -------------------------------------------------------------------------------- /demo-vue/app/assets/images/svg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/assets/images/svg.jpg -------------------------------------------------------------------------------- /demo-vue/app/components/App.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 88 | 89 | 102 | -------------------------------------------------------------------------------- /demo-vue/app/components/Multi.vue: -------------------------------------------------------------------------------- 1 | 66 | 67 | 135 | 136 | -------------------------------------------------------------------------------- /demo-vue/app/fonts/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo-vue/app/fonts/.gitkeep -------------------------------------------------------------------------------- /demo-vue/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "android": { 3 | "v8Flags": "--expose_gc" 4 | }, 5 | "main": "main", 6 | "name": "demo-vue", 7 | "version": "1.0.0" 8 | } 9 | -------------------------------------------------------------------------------- /demo-vue/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "demo-vue", 3 | "version": "1.0.0", 4 | "description": "A native application built with NativeScript-Vue", 5 | "author": "Osei Fortune ", 6 | "license": "MIT", 7 | "nativescript": { 8 | "id": "org.nativescript.application", 9 | "tns-ios": { 10 | "version": "4.2.0" 11 | }, 12 | "tns-android": { 13 | "version": "4.2.0" 14 | } 15 | }, 16 | "dependencies": { 17 | "nativescript-accordion": "file:../src", 18 | "nativescript-theme-core": "^1.0.4", 19 | "nativescript-vue": "^2.0.0", 20 | "tns-core-modules": "^4.2.0" 21 | }, 22 | "devDependencies": { 23 | "@babel/core": "^7.0.0", 24 | "@babel/preset-env": "^7.0.0", 25 | "babel-loader": "^8.0.2", 26 | "babel-traverse": "6.26.0", 27 | "babel-types": "6.26.0", 28 | "babylon": "6.18.0", 29 | "clean-webpack-plugin": "^0.1.19", 30 | "copy-webpack-plugin": "^4.5.2", 31 | "css-loader": "^1.0.0", 32 | "lazy": "1.0.11", 33 | "nativescript-dev-webpack": "next", 34 | "nativescript-vue-template-compiler": "^2.0.0", 35 | "nativescript-worker-loader": "~0.9.0", 36 | "node-sass": "^4.9.2", 37 | "sass-loader": "^7.1.0", 38 | "terser-webpack-plugin": "^1.1.0", 39 | "vue-loader": "^15.2.6", 40 | "webpack": "^4.16.4", 41 | "webpack-bundle-analyzer": "~2.13.1", 42 | "webpack-cli": "^3.1.0" 43 | } 44 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // compile 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | android { 9 | defaultConfig { 10 | generatedDensities = [] 11 | applicationId = "org.nativescript.demo" 12 | } 13 | aaptOptions { 14 | additionalParameters "--no-version-vectors" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 28 | 29 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.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 | 18 | 19 | 21 | 22 | 23 | 31 | 32 | 34 | 35 | 36 | 42 | 43 | 45 | 46 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "icon-29.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "icon-29@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29@3x.png", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "icon-40@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "icon-40@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "57x57", 35 | "idiom" : "iphone", 36 | "filename" : "icon-57.png", 37 | "scale" : "1x" 38 | }, 39 | { 40 | "size" : "57x57", 41 | "idiom" : "iphone", 42 | "filename" : "icon-57@2x.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "icon-60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "icon-60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "29x29", 59 | "idiom" : "ipad", 60 | "filename" : "icon-29.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "29x29", 65 | "idiom" : "ipad", 66 | "filename" : "icon-29@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "40x40", 71 | "idiom" : "ipad", 72 | "filename" : "icon-40.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "40x40", 77 | "idiom" : "ipad", 78 | "filename" : "icon-40@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "50x50", 83 | "idiom" : "ipad", 84 | "filename" : "icon-50.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "50x50", 89 | "idiom" : "ipad", 90 | "filename" : "icon-50@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "72x72", 95 | "idiom" : "ipad", 96 | "filename" : "icon-72.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "72x72", 101 | "idiom" : "ipad", 102 | "filename" : "icon-72@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "76x76", 107 | "idiom" : "ipad", 108 | "filename" : "icon-76.png", 109 | "scale" : "1x" 110 | }, 111 | { 112 | "size" : "76x76", 113 | "idiom" : "ipad", 114 | "filename" : "icon-76@2x.png", 115 | "scale" : "2x" 116 | }, 117 | { 118 | "size" : "83.5x83.5", 119 | "idiom" : "ipad", 120 | "filename" : "icon-83.5@2x.png", 121 | "scale" : "2x" 122 | } 123 | ], 124 | "info" : { 125 | "version" : 1, 126 | "author" : "xcode" 127 | } 128 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "subtype" : "736h", 7 | "filename" : "Default-736h@3x.png", 8 | "minimum-system-version" : "8.0", 9 | "orientation" : "portrait", 10 | "scale" : "3x" 11 | }, 12 | { 13 | "extent" : "full-screen", 14 | "idiom" : "iphone", 15 | "subtype" : "736h", 16 | "filename" : "Default-Landscape@3x.png", 17 | "minimum-system-version" : "8.0", 18 | "orientation" : "landscape", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "extent" : "full-screen", 23 | "idiom" : "iphone", 24 | "subtype" : "667h", 25 | "filename" : "Default-667h@2x.png", 26 | "minimum-system-version" : "8.0", 27 | "orientation" : "portrait", 28 | "scale" : "2x" 29 | }, 30 | { 31 | "orientation" : "portrait", 32 | "idiom" : "iphone", 33 | "filename" : "Default@2x.png", 34 | "extent" : "full-screen", 35 | "minimum-system-version" : "7.0", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "extent" : "full-screen", 40 | "idiom" : "iphone", 41 | "subtype" : "retina4", 42 | "filename" : "Default-568h@2x.png", 43 | "minimum-system-version" : "7.0", 44 | "orientation" : "portrait", 45 | "scale" : "2x" 46 | }, 47 | { 48 | "orientation" : "portrait", 49 | "idiom" : "ipad", 50 | "filename" : "Default-Portrait.png", 51 | "extent" : "full-screen", 52 | "minimum-system-version" : "7.0", 53 | "scale" : "1x" 54 | }, 55 | { 56 | "orientation" : "landscape", 57 | "idiom" : "ipad", 58 | "filename" : "Default-Landscape.png", 59 | "extent" : "full-screen", 60 | "minimum-system-version" : "7.0", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "orientation" : "portrait", 65 | "idiom" : "ipad", 66 | "filename" : "Default-Portrait@2x.png", 67 | "extent" : "full-screen", 68 | "minimum-system-version" : "7.0", 69 | "scale" : "2x" 70 | }, 71 | { 72 | "orientation" : "landscape", 73 | "idiom" : "ipad", 74 | "filename" : "Default-Landscape@2x.png", 75 | "extent" : "full-screen", 76 | "minimum-system-version" : "7.0", 77 | "scale" : "2x" 78 | }, 79 | { 80 | "orientation" : "portrait", 81 | "idiom" : "iphone", 82 | "filename" : "Default.png", 83 | "extent" : "full-screen", 84 | "scale" : "1x" 85 | }, 86 | { 87 | "orientation" : "portrait", 88 | "idiom" : "iphone", 89 | "filename" : "Default@2x.png", 90 | "extent" : "full-screen", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "orientation" : "portrait", 95 | "idiom" : "iphone", 96 | "filename" : "Default-568h@2x.png", 97 | "extent" : "full-screen", 98 | "subtype" : "retina4", 99 | "scale" : "2x" 100 | }, 101 | { 102 | "orientation" : "portrait", 103 | "idiom" : "ipad", 104 | "extent" : "to-status-bar", 105 | "scale" : "1x" 106 | }, 107 | { 108 | "orientation" : "portrait", 109 | "idiom" : "ipad", 110 | "filename" : "Default-Portrait.png", 111 | "extent" : "full-screen", 112 | "scale" : "1x" 113 | }, 114 | { 115 | "orientation" : "landscape", 116 | "idiom" : "ipad", 117 | "extent" : "to-status-bar", 118 | "scale" : "1x" 119 | }, 120 | { 121 | "orientation" : "landscape", 122 | "idiom" : "ipad", 123 | "filename" : "Default-Landscape.png", 124 | "extent" : "full-screen", 125 | "scale" : "1x" 126 | }, 127 | { 128 | "orientation" : "portrait", 129 | "idiom" : "ipad", 130 | "extent" : "to-status-bar", 131 | "scale" : "2x" 132 | }, 133 | { 134 | "orientation" : "portrait", 135 | "idiom" : "ipad", 136 | "filename" : "Default-Portrait@2x.png", 137 | "extent" : "full-screen", 138 | "scale" : "2x" 139 | }, 140 | { 141 | "orientation" : "landscape", 142 | "idiom" : "ipad", 143 | "extent" : "to-status-bar", 144 | "scale" : "2x" 145 | }, 146 | { 147 | "orientation" : "landscape", 148 | "idiom" : "ipad", 149 | "filename" : "Default-Landscape@2x.png", 150 | "extent" : "full-screen", 151 | "scale" : "2x" 152 | } 153 | ], 154 | "info" : { 155 | "version" : 1, 156 | "author" : "xcode" 157 | } 158 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /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 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.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 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/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/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.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 | NSAppTransportSecurity 47 | 48 | 49 | NSAllowsArbitraryLoads 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /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 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 5 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 6 | -------------------------------------------------------------------------------- /demo/app/app.css: -------------------------------------------------------------------------------- 1 | @import '~nativescript-theme-core/css/core.light.css'; 2 | -------------------------------------------------------------------------------- /demo/app/app.ts: -------------------------------------------------------------------------------- 1 | import * as application from 'tns-core-modules/application'; 2 | application.start({ moduleName: "main-page" }); 3 | -------------------------------------------------------------------------------- /demo/app/images/a9ff17db85f8136619feb0d5a200c0e4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/images/a9ff17db85f8136619feb0d5a200c0e4.png -------------------------------------------------------------------------------- /demo/app/images/batman.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/images/batman.jpg -------------------------------------------------------------------------------- /demo/app/images/f29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/images/f29.png -------------------------------------------------------------------------------- /demo/app/images/shazam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/images/shazam.jpg -------------------------------------------------------------------------------- /demo/app/images/strider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/images/strider.png -------------------------------------------------------------------------------- /demo/app/images/svg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/demo/app/images/svg.jpg -------------------------------------------------------------------------------- /demo/app/main-page.ts: -------------------------------------------------------------------------------- 1 | import * as observable from 'tns-core-modules/data/observable'; 2 | import * as pages from 'tns-core-modules/ui/page'; 3 | import { HelloWorldModel } from './main-view-model'; 4 | import { topmost } from 'tns-core-modules/ui/frame'; 5 | 6 | // Event handler for Page 'loaded' event attached in main-page.xml 7 | export function pageLoaded(args: observable.EventData) { 8 | // Get the event sender 9 | let page = args.object; 10 | page.bindingContext = new HelloWorldModel(); 11 | } 12 | 13 | export function goToMulti(args) { 14 | topmost().navigate('multi/multi-page'); 15 | } -------------------------------------------------------------------------------- /demo/app/main-page.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 14 | 15 | 20 | 21 | 26 | 27 | 28 | 29 | 30 | 35 | 36 | 42 | 43 | 44 | 45 | 51 | 52 | 58 | 59 | 60 | 61 | 66 | 67 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /demo/app/multi/multi-view-model.ts: -------------------------------------------------------------------------------- 1 | import { Observable } from 'tns-core-modules/data/observable'; 2 | import { ObservableArray } from 'tns-core-modules/data/observable-array'; 3 | 4 | export class MultiViewModel extends Observable { 5 | public items: ObservableArray; 6 | public selectedIndexes = [0, 2]; 7 | public expanded: ObservableArray; 8 | 9 | constructor() { 10 | super(); 11 | this.expanded = new ObservableArray(); 12 | this.items = new ObservableArray([ 13 | { 14 | title: '1', 15 | footer: '10', 16 | headerText: 'First', 17 | footerText: '4', 18 | image: 'http://placehold.it/120x120&text=First', 19 | children: [ 20 | {image: '~/images/a9ff17db85f8136619feb0d5a200c0e4.png', text: 'Someone'}, 21 | { 22 | text: 'Help', 23 | image: '~/images/svg.jpg' 24 | } 25 | ] 26 | }, 27 | { 28 | title: '2', 29 | footer: '20', 30 | headerText: 'Second', 31 | footerText: '5', 32 | image: 'http://placehold.it/120x120&text=Second', 33 | children: [{ 34 | text: 'Me', 35 | image: '~/images/shazam.jpg' 36 | }, {text: 'Stop', image: '~/images/f29.png'}] 37 | }, 38 | { 39 | title: '3', 40 | footer: '30', 41 | headerText: 'Third', 42 | footerText: '6', 43 | image: 'http://placehold.it/120x120&text=Third', 44 | children: [{text: 'This', image: '~/images/a9ff17db85f8136619feb0d5a200c0e4.png'}, { 45 | text: 'Thing', 46 | image: '~/images/shazam.jpg' 47 | }] 48 | }, 49 | { 50 | title: '4', 51 | footer: '40', 52 | headerText: 'Fourth', 53 | footerText: '7', 54 | image: 'http://placehold.it/120x120&text=Fourth', 55 | children: [{text: 'Now', image: '~/images/batman.png'}, { 56 | text: 'Please', 57 | image: '~/images/batman.jpg' 58 | }] 59 | } 60 | ]); 61 | } 62 | } -------------------------------------------------------------------------------- /demo/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tns-template-hello-world-ts", 3 | "main": "app.js", 4 | "version": "1.6.0", 5 | "author": { 6 | "name": "Telerik", 7 | "email": "support@telerik.com" 8 | }, 9 | "description": "Nativescript hello-world-ts project template", 10 | "license": "Apache-2.0", 11 | "keywords": [ 12 | "telerik", 13 | "mobile", 14 | "nativescript", 15 | "{N}", 16 | "tns", 17 | "appbuilder", 18 | "template" 19 | ], 20 | "repository": { 21 | "type": "git", 22 | "url": "git+ssh://git@github.com/NativeScript/template-hello-world-ts.git" 23 | }, 24 | "bugs": { 25 | "url": "https://github.com/NativeScript/template-hello-world-ts/issues" 26 | }, 27 | "homepage": "https://github.com/NativeScript/template-hello-world-ts", 28 | "android": { 29 | "v8Flags": "--expose_gc", 30 | "requireModules": ["nativescript-accordion"] 31 | }, 32 | "devDependencies": { 33 | "nativescript-dev-typescript": "^0.3.0" 34 | }, 35 | "_id": "tns-template-hello-world-ts@1.6.0", 36 | "_shasum": "a567c2b9a56024818c06596dab9629d155c5b8a8", 37 | "_resolved": "https://registry.npmjs.org/tns-template-hello-world-ts/-/tns-template-hello-world-ts-1.6.0.tgz", 38 | "_from": "tns-template-hello-world-ts@latest", 39 | "scripts": { 40 | "build.plugin": "cd ../src && npm run build", 41 | "ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'" 42 | }, 43 | "_npmVersion": "2.14.7", 44 | "_nodeVersion": "4.2.2", 45 | "_npmUser": { 46 | "name": "enchev", 47 | "email": "vladimir.enchev@gmail.com" 48 | }, 49 | "dist": { 50 | "shasum": "a567c2b9a56024818c06596dab9629d155c5b8a8", 51 | "tarball": "http://registry.npmjs.org/tns-template-hello-world-ts/-/tns-template-hello-world-ts-1.6.0.tgz" 52 | }, 53 | "maintainers": [ 54 | { 55 | "name": "enchev", 56 | "email": "vladimir.enchev@gmail.com" 57 | }, 58 | { 59 | "name": "erjangavalji", 60 | "email": "erjan.gavalji@gmail.com" 61 | }, 62 | { 63 | "name": "fatme", 64 | "email": "hfatme@gmail.com" 65 | }, 66 | { 67 | "name": "hdeshev", 68 | "email": "hristo@deshev.com" 69 | }, 70 | { 71 | "name": "kerezov", 72 | "email": "d.kerezov@gmail.com" 73 | }, 74 | { 75 | "name": "ligaz", 76 | "email": "stefan.dobrev@gmail.com" 77 | }, 78 | { 79 | "name": "nsndeck", 80 | "email": "nedyalko.nikolov@telerik.com" 81 | }, 82 | { 83 | "name": "rosen-vladimirov", 84 | "email": "rosen.vladimirov.91@gmail.com" 85 | }, 86 | { 87 | "name": "sdobrev", 88 | "email": "stefan.dobrev@gmail.com" 89 | }, 90 | { 91 | "name": "tailsu", 92 | "email": "tailsu@gmail.com" 93 | }, 94 | { 95 | "name": "teobugslayer", 96 | "email": "teobugslayer@gmail.com" 97 | }, 98 | { 99 | "name": "valio.stoychev", 100 | "email": "valio.stoychev@gmail.com" 101 | } 102 | ], 103 | "_npmOperationalInternal": { 104 | "host": "packages-5-east.internal.npmjs.com", 105 | "tmp": "tmp/tns-template-hello-world-ts-1.6.0.tgz_1455717516189_0.6427943941671401" 106 | }, 107 | "directories": {}, 108 | "readme": "ERROR: No README data found!" 109 | } 110 | -------------------------------------------------------------------------------- /demo/app/tests/tests.js: -------------------------------------------------------------------------------- 1 | var Accordion = require("nativescript-accordion").Accordion; 2 | var accordion = new Accordion(); 3 | 4 | describe("greet function", function() { 5 | it("exists", function() { 6 | expect(accordion.greet).toBeDefined(); 7 | }); 8 | 9 | it("returns a string", function() { 10 | expect(accordion.greet()).toEqual("Hello, NS"); 11 | }); 12 | }); -------------------------------------------------------------------------------- /demo/karma.conf.js: -------------------------------------------------------------------------------- 1 | module.exports = function(config) { 2 | config.set({ 3 | 4 | // base path that will be used to resolve all patterns (eg. files, exclude) 5 | basePath: '', 6 | 7 | 8 | // frameworks to use 9 | // available frameworks: https://npmjs.org/browse/keyword/karma-adapter 10 | frameworks: ['jasmine'], 11 | 12 | 13 | // list of files / patterns to load in the browser 14 | files: [ 15 | 'app/**/*.js' 16 | ], 17 | 18 | 19 | // list of files to exclude 20 | exclude: [ 21 | ], 22 | 23 | 24 | // preprocess matching files before serving them to the browser 25 | // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor 26 | preprocessors: { 27 | }, 28 | 29 | 30 | // test results reporter to use 31 | // possible values: 'dots', 'progress' 32 | // available reporters: https://npmjs.org/browse/keyword/karma-reporter 33 | reporters: ['progress'], 34 | 35 | 36 | // web server port 37 | port: 9876, 38 | 39 | 40 | // enable / disable colors in the output (reporters and logs) 41 | colors: true, 42 | 43 | 44 | // level of logging 45 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG 46 | logLevel: config.LOG_INFO, 47 | 48 | 49 | // enable / disable watching file and executing tests whenever any file changes 50 | autoWatch: true, 51 | 52 | 53 | // start these browsers 54 | // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher 55 | browsers: [], 56 | 57 | customLaunchers: { 58 | android: { 59 | base: 'NS', 60 | platform: 'android' 61 | }, 62 | ios: { 63 | base: 'NS', 64 | platform: 'ios' 65 | }, 66 | ios_simulator: { 67 | base: 'NS', 68 | platform: 'ios', 69 | arguments: ['--emulator'] 70 | } 71 | }, 72 | 73 | // Continuous Integration mode 74 | // if true, Karma captures browsers, runs the tests and exits 75 | singleRun: true 76 | }); 77 | }; 78 | -------------------------------------------------------------------------------- /demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "nativescript": { 3 | "id": "org.nativescript.demo", 4 | "tns-android": { 5 | "version": "5.0.0-rc-2018-10-15-143937-09" 6 | }, 7 | "tns-ios": { 8 | "version": "5.0.0-rc-2018-10-17-161243-01" 9 | } 10 | }, 11 | "dependencies": { 12 | "nativescript-theme-core": "^1.0.4", 13 | "nativescript-unit-test-runner": "^0.3.4", 14 | "nativescript-accordion": "file:../src", 15 | "tns-core-modules": "^4.2.0" 16 | }, 17 | "devDependencies": { 18 | "jasmine-core": "^2.5.2", 19 | "karma": "^1.3.0", 20 | "karma-jasmine": "^1.0.2", 21 | "karma-nativescript-launcher": "^0.4.0", 22 | "nativescript-css-loader": "~0.26.1", 23 | "nativescript-dev-typescript": "~0.7.2", 24 | "nativescript-dev-webpack": "~0.15.1", 25 | "tns-platform-declarations": "^4.2.0", 26 | "tslint": "~5.4.3", 27 | "typescript": "~2.8.2" 28 | }, 29 | "scripts": { 30 | "build.plugin": "cd ../src && npm run build", 31 | "ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'" 32 | } 33 | } -------------------------------------------------------------------------------- /demo/references.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /demo/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "module": "commonjs", 5 | "declaration": false, 6 | "removeComments": true, 7 | "noLib": false, 8 | "emitDecoratorMetadata": true, 9 | "experimentalDecorators": true, 10 | "lib": [ 11 | "es6", 12 | "dom" 13 | ], 14 | "pretty": true, 15 | "allowUnreachableCode": false, 16 | "allowUnusedLabels": false, 17 | "noEmitHelpers": true, 18 | "noEmitOnError": false, 19 | "noImplicitAny": false, 20 | "noImplicitReturns": true, 21 | "noImplicitUseStrict": false, 22 | "noFallthroughCasesInSwitch": true, 23 | "baseUrl": ".", 24 | "paths": { 25 | "*": [ 26 | "./node_modules/*" 27 | ], 28 | "~/*": [ 29 | "app/*" 30 | ] 31 | } 32 | }, 33 | "include": [ 34 | "../src", 35 | "**/*" 36 | ], 37 | "exclude": [ 38 | "../src/node_modules", 39 | "node_modules", 40 | "platforms" 41 | ], 42 | "compileOnSave": false 43 | } -------------------------------------------------------------------------------- /publish/pack.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SOURCE_DIR=../src; 4 | TO_SOURCE_DIR=src; 5 | PACK_DIR=package; 6 | ROOT_DIR=..; 7 | PUBLISH=--publish 8 | 9 | install(){ 10 | npm i 11 | } 12 | 13 | pack() { 14 | 15 | echo 'Clearing /src and /package...' 16 | node_modules/.bin/rimraf "$TO_SOURCE_DIR" 17 | node_modules/.bin/rimraf "$PACK_DIR" 18 | 19 | # copy src 20 | echo 'Copying src...' 21 | node_modules/.bin/ncp "$SOURCE_DIR" "$TO_SOURCE_DIR" 22 | 23 | # copy README & LICENSE to src 24 | echo 'Copying README and LICENSE to /src...' 25 | node_modules/.bin/ncp "$ROOT_DIR"/LICENSE "$TO_SOURCE_DIR"/LICENSE 26 | node_modules/.bin/ncp "$ROOT_DIR"/README.md "$TO_SOURCE_DIR"/README.md 27 | 28 | # compile package and copy files required by npm 29 | echo 'Building /src...' 30 | cd "$TO_SOURCE_DIR" 31 | node_modules/.bin/ngc 32 | cd .. 33 | 34 | echo 'Creating package...' 35 | # create package dir 36 | mkdir "$PACK_DIR" 37 | 38 | # create the package 39 | cd "$PACK_DIR" 40 | npm pack ../"$TO_SOURCE_DIR" 41 | 42 | # delete source directory used to create the package 43 | cd .. 44 | node_modules/.bin/rimraf "$TO_SOURCE_DIR" 45 | } 46 | 47 | install && pack -------------------------------------------------------------------------------- /publish/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nativescript-publish", 3 | "version": "1.0.0", 4 | "description": "Publish helper", 5 | "devDependencies": { 6 | "ncp": "^2.0.0", 7 | "rimraf": "^2.5.0" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /publish/publish.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PACK_DIR=package; 4 | 5 | publish() { 6 | cd $PACK_DIR 7 | echo 'Publishing to npm...' 8 | npm publish *.tgz 9 | } 10 | 11 | ./pack.sh && publish -------------------------------------------------------------------------------- /src/.npmignore: -------------------------------------------------------------------------------- 1 | *.map 2 | *.ts 3 | !*.d.ts 4 | tsconfig.json 5 | scripts/* 6 | platforms/android/* 7 | !platforms/android/include.gradle 8 | !platforms/android/*.aar 9 | !platforms/android/*.jar -------------------------------------------------------------------------------- /src/accordion.common.d.ts: -------------------------------------------------------------------------------- 1 | import { CoercibleProperty, CssProperty, KeyedTemplate, Length, Property, Style, Template, View, ContainerView } from 'tns-core-modules/ui/core/view'; 2 | import { ChangedData } from 'tns-core-modules/data/observable-array'; 3 | export declare module knownCollections { 4 | const items = "items"; 5 | } 6 | export declare module knownTemplates { 7 | const itemHeaderTemplate = "itemHeaderTemplate"; 8 | const itemContentTemplate = "itemContentTemplate"; 9 | const headerTemplate = "headerTemplate"; 10 | const footerTemplate = "footerTemplate"; 11 | } 12 | export declare module knownMultiTemplates { 13 | const itemHeaderTemplates = "itemHeaderTemplates"; 14 | const itemContentTemplates = "itemContentTemplates"; 15 | const headerTemplates = "headerTemplates"; 16 | const footerTemplates = "footerTemplates"; 17 | } 18 | export interface ItemsSource { 19 | length: number; 20 | getItem(index: number): any; 21 | } 22 | export declare abstract class AccordionBase extends ContainerView { 23 | static headerLoadingEvent: string; 24 | static footerLoadingEvent: string; 25 | static itemHeaderLoadingEvent: string; 26 | static itemContentLoadingEvent: string; 27 | static itemHeaderTapEvent: string; 28 | static itemContentTapEvent: string; 29 | static loadMoreItemsEvent: string; 30 | private _allowMultiple; 31 | _effectiveHeaderRowHeight: number; 32 | _effectiveItemHeaderRowHeight: number; 33 | _effectiveItemContentRowHeight: number; 34 | _effectiveFooterRowHeight: number; 35 | headerRowHeight: Length; 36 | itemHeaderRowHeight: Length; 37 | itemContentRowHeight: Length; 38 | footerRowHeight: Length; 39 | iosEstimatedHeaderRowHeight: Length; 40 | iosEstimatedItemHeaderRowHeight: Length; 41 | iosEstimatedItemContentRowHeight: Length; 42 | iosEstimatedFooterRowHeight: Length; 43 | static selectedIndexesChangedEvent: string; 44 | static knownFunctions: string[]; 45 | items: any[] | ItemsSource; 46 | itemHeaderTemplate: string | Template; 47 | itemHeaderTemplates: string | Array; 48 | itemContentTemplate: string | Template; 49 | itemContentTemplates: string | Array; 50 | headerTemplate: string | Template; 51 | headerTemplates: string | Array; 52 | footerTemplate: string | Template; 53 | footerTemplates: string | Array; 54 | selectedIndexes: any; 55 | childItems: string; 56 | private _itemIdGenerator; 57 | itemIdGenerator: (item: any, index: number, items: any) => number; 58 | private _childIdGenerator; 59 | childIdGenerator: (item: any, index: number, childIndex: number, items: any) => number; 60 | private _headerTemplateSelector; 61 | private _headerTemplateSelectorBindable; 62 | _defaultHeaderTemplate: KeyedTemplate; 63 | _headerTemplatesInternal: KeyedTemplate[]; 64 | private _itemHeaderTemplateSelector; 65 | private _itemHeaderTemplateSelectorBindable; 66 | _defaultItemHeaderTemplate: KeyedTemplate; 67 | _itemHeaderTemplatesInternal: KeyedTemplate[]; 68 | private _itemContentTemplateSelector; 69 | private _itemContentTemplateSelectorBindable; 70 | _defaultItemContentTemplate: KeyedTemplate; 71 | _itemContentTemplatesInternal: KeyedTemplate[]; 72 | private _footerTemplateSelector; 73 | private _footerTemplateSelectorBindable; 74 | _defaultFooterTemplate: KeyedTemplate; 75 | _footerTemplatesInternal: KeyedTemplate[]; 76 | headerTemplateSelector: string | ((item: any, index: number, items: any) => string); 77 | itemHeaderTemplateSelector: string | ((item: any, index: number, items: any) => string); 78 | itemContentTemplateSelector: string | ((item: any, parentIndex: number, index: number, items: any) => string); 79 | footerTemplateSelector: string | ((item: any, index: number, items: any) => string); 80 | _getHeaderTemplate(index: number): KeyedTemplate; 81 | _getItemHeaderTemplate(index: number): KeyedTemplate; 82 | _getHasHeader: () => boolean; 83 | _getHasFooter: () => boolean; 84 | _getItemContentTemplate(index: number, childIndex: number): KeyedTemplate; 85 | _getFooterTemplate(index: number): KeyedTemplate; 86 | _getDefaultHeaderContent(index: number): View; 87 | _getDefaultItemHeaderContent(index: number): View; 88 | _getDefaultItemContentContent(index: number, childIndex: number): View; 89 | _getDefaultFooterContent(index: number): View; 90 | _prepareHeaderItem(item: View, index: number): void; 91 | _prepareItemHeader(item: View, index: number): void; 92 | _prepareItemContent(item: View, index: number, childIndex: number): void; 93 | _prepareFooterItem(item: View, index: number): void; 94 | _onHeaderRowHeightPropertyChanged(oldValue: Length, newValue: Length): void; 95 | _onItemHeaderRowHeightPropertyChanged(oldValue: Length, newValue: Length): void; 96 | _onItemContentRowHeightPropertyChanged(oldValue: Length, newValue: Length): void; 97 | _onFooterRowHeightPropertyChanged(oldValue: Length, newValue: Length): void; 98 | protected updateEffectiveItemHeaderRowHeight(): void; 99 | protected updateEffectiveItemContentRowHeight(): void; 100 | _getParentData(parentIndex: number): any; 101 | _getChildData(parentIndex: number, childIndex: number): any; 102 | allowMultiple: boolean; 103 | separatorColor: any; 104 | abstract refresh(): void; 105 | _onItemsChanged(args: ChangedData): void; 106 | abstract updateNativeItems(oldItems: Array, newItems: Array): void; 107 | abstract updateNativeIndexes(oldData: any, newData: any): void; 108 | abstract itemCollapsed(index: number): void; 109 | abstract itemExpanded(index: number): void; 110 | abstract itemIsExpanded(index: number): boolean; 111 | abstract expandAll(): void; 112 | abstract collapseAll(): void; 113 | abstract expandItem(index: number): void; 114 | abstract collapseItem(index: number): void; 115 | } 116 | export declare const separatorColorProperty: CssProperty; 117 | export declare const headerTemplateProperty: Property; 118 | export declare const headerTemplatesProperty: Property; 119 | export declare const itemHeaderTemplateProperty: Property; 120 | export declare const itemHeaderTemplatesProperty: Property; 121 | export declare const itemContentTemplateProperty: Property; 122 | export declare const itemContentTemplatesProperty: Property; 123 | export declare const footerTemplateProperty: Property; 124 | export declare const footerTemplatesProperty: Property; 125 | export declare const itemsProperty: Property; 126 | export declare const selectedIndexesProperty: Property; 127 | export declare const headerRowHeightProperty: CoercibleProperty; 128 | export declare const itemHeaderRowHeightProperty: CoercibleProperty; 129 | export declare const itemContentRowHeightProperty: CoercibleProperty; 130 | export declare const footerRowHeightProperty: CoercibleProperty; 131 | export declare const iosEstimatedHeaderRowHeightProperty: Property; 132 | export declare const iosEstimatedItemHeaderRowHeightProperty: Property; 133 | export declare const iosEstimatedItemContentRowHeightProperty: Property; 134 | export declare const iosEstimatedFooterRowHeightProperty: Property; 135 | -------------------------------------------------------------------------------- /src/angular/index.d.ts: -------------------------------------------------------------------------------- 1 | import { AfterContentInit, DoCheck, ElementRef, EmbeddedViewRef, EventEmitter, InjectionToken, IterableDiffer, IterableDiffers, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core'; 2 | import { ItemEventData, ItemsSource } from 'tns-core-modules/ui/list-view'; 3 | import { EventData, KeyedTemplate, Template, View } from 'tns-core-modules/ui/core/view'; 4 | import { Accordion } from '../'; 5 | export declare class ItemContext { 6 | $implicit?: any; 7 | item?: any; 8 | index?: number; 9 | even?: boolean; 10 | odd?: boolean; 11 | constructor($implicit?: any, item?: any, index?: number, even?: boolean, odd?: boolean); 12 | } 13 | export declare class ChildItemContext { 14 | $implicit?: any; 15 | item?: any; 16 | parentIndex?: number; 17 | index?: number; 18 | even?: boolean; 19 | odd?: boolean; 20 | constructor($implicit?: any, item?: any, parentIndex?: number, index?: number, even?: boolean, odd?: boolean); 21 | } 22 | export interface SetupItemViewArgs { 23 | view: EmbeddedViewRef; 24 | data: any; 25 | index: number; 26 | context: ItemContext; 27 | } 28 | export interface AccordionItemsView { 29 | items: any[] | ItemsSource; 30 | headerTemplate: string | Template; 31 | headerTemplates?: string | Array; 32 | itemHeaderTemplate: string | Template; 33 | itemHeaderTemplates?: string | Array; 34 | itemContentTemplate: string | Template; 35 | itemContentTemplates?: string | Array; 36 | footerTemplate: string | Template; 37 | footerTemplates?: string | Array; 38 | childItems: string; 39 | headerTemplateSelector: string | ((item: any, index: number, items: any) => string); 40 | itemHeaderTemplateSelector: string | ((item: any, index: number, items: any) => string); 41 | itemContentTemplateSelector: string | ((item: any, parentIndex: number, index: number, items: any) => string); 42 | footerTemplateSelector: string | ((item: any, index: number, items: any) => string); 43 | _getHasHeader: any; 44 | _getHasFooter: any; 45 | refresh(): void; 46 | on(event: 'headerLoading', callback: (args: EventData) => void, thisArg?: any): any; 47 | off(event: 'headerLoading', callback: (args: EventData) => void, thisArg?: any): any; 48 | on(event: 'itemHeaderLoading', callback: (args: EventData) => void, thisArg?: any): any; 49 | off(event: 'itemHeaderLoading', callback: (args: EventData) => void, thisArg?: any): any; 50 | on(event: 'itemContentLoading', callback: (args: EventData) => void, thisArg?: any): any; 51 | off(event: 'itemContentLoading', callback: (args: EventData) => void, thisArg?: any): any; 52 | on(event: 'footerLoading', callback: (args: EventData) => void, thisArg?: any): any; 53 | off(event: 'footerLoading', callback: (args: EventData) => void, thisArg?: any): any; 54 | } 55 | export declare abstract class AccordionItemsComponent implements DoCheck, OnDestroy, AfterContentInit { 56 | private _iterableDiffers; 57 | abstract readonly nativeElement: any; 58 | protected accordionItemsView: any; 59 | protected _items: any; 60 | protected _differ: IterableDiffer; 61 | protected _templateHeaderMap: Map; 62 | protected _templateItemHeaderMap: Map; 63 | protected _templateItemContentMap: Map; 64 | protected _templateFooterMap: Map; 65 | loader: ViewContainerRef; 66 | setupItemView: EventEmitter; 67 | itemTemplateQuery: TemplateRef; 68 | headerTemplate: TemplateRef; 69 | itemHeaderTemplate: TemplateRef; 70 | itemContentTemplate: TemplateRef; 71 | footerTemplate: TemplateRef; 72 | items: any; 73 | constructor(_elementRef: ElementRef, _iterableDiffers: IterableDiffers); 74 | ngAfterContentInit(): void; 75 | ngOnDestroy(): void; 76 | private setItemTemplates; 77 | registerTemplate(key: string, template: TemplateRef): void; 78 | onHeaderLoading(args: ItemEventData): void; 79 | onItemHeaderLoading(args: ItemEventData): void; 80 | onItemContentLoading(args: ItemEventData): void; 81 | onFooterLoading(args: ItemEventData): void; 82 | setupViewRef(viewRef: EmbeddedViewRef, data: any, index: number): void; 83 | setupChildViewRef(viewRef: EmbeddedViewRef, data: any, parentIndex: number, index: number): void; 84 | protected getItemTemplateViewFactory(template: TemplateRef): () => View; 85 | protected getChildItemTemplateViewFactory(template: TemplateRef): () => View; 86 | private detectChangesOnChild; 87 | ngDoCheck(): void; 88 | } 89 | export interface ComponentView { 90 | rootNodes: Array; 91 | destroy(): void; 92 | } 93 | export declare type RootLocator = (nodes: Array, nestLevel: number) => View; 94 | export declare function getItemViewRoot(viewRef: ComponentView, rootLocator?: RootLocator): View; 95 | export declare const ACCORDION_ITEMS_COMPONENT: InjectionToken; 96 | export declare class TemplateKeyDirective { 97 | private templateRef; 98 | private comp; 99 | constructor(templateRef: TemplateRef, comp: AccordionItemsComponent); 100 | acTemplateKey: any; 101 | } 102 | export declare class AccordionComponent extends AccordionItemsComponent { 103 | readonly nativeElement: Accordion; 104 | protected accordionItemsView: Accordion; 105 | constructor(_elementRef: ElementRef, _iterableDiffers: IterableDiffers); 106 | } 107 | export declare class AccordionModule { 108 | } 109 | -------------------------------------------------------------------------------- /src/angular/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "index" 3 | } -------------------------------------------------------------------------------- /src/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './accordion'; -------------------------------------------------------------------------------- /src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nativescript-accordion", 3 | "version": "6.0.0-beta.2", 4 | "description": "A layout which supports expanding and collapsing child views", 5 | "main": "accordion", 6 | "typings": "index.d.ts", 7 | "nativescript": { 8 | "platforms": { 9 | "android": "5.0.0", 10 | "ios": "5.0.0" 11 | } 12 | }, 13 | "scripts": { 14 | "tsc": "tsc", 15 | "build": "npm run tsc && npm run build.native", 16 | "build.native": "node scripts/build-native.js", 17 | "postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && npx rimraf -- package-lock.json && cd ../src", 18 | "test.android": "npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch", 19 | "test.ios": "npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch", 20 | "tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"", 21 | "plugin.tscwatch": "npm run tsc -- -w", 22 | "demo.ios": "npm run tsc && cd ../demo && tns run ios --syncAllFiles", 23 | "demo.android": "npm run tsc && cd ../demo && tns run android --syncAllFiles", 24 | "demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json", 25 | "plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-accordion && tns plugin add ../src", 26 | "clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i", 27 | "ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'", 28 | "prepack": "npm run build.native", 29 | "ngc": "npm run ngc.clean && node --max-old-space-size=8192 ./node_modules/.bin/ngc -p tsconfig.json", 30 | "ngc.clean": "find ./ angular/ -name '*.metadata.json' -delete" 31 | }, 32 | "keywords": [ 33 | "NativeScript", 34 | "JavaScript", 35 | "Android", 36 | "iOS" 37 | ], 38 | "author": { 39 | "name": "Osei Fortune", 40 | "email": "fortune.osei@yahoo.com" 41 | }, 42 | "bugs": { 43 | "url": "https://github.com/triniwiz/nativescript-accordion/issues" 44 | }, 45 | "license": "Apache-2.0", 46 | "homepage": "https://github.com/triniwiz/nativescript-accordion", 47 | "readmeFilename": "README.md", 48 | "devDependencies": { 49 | "@angular/core": "~6.1.0", 50 | "@angular/compiler": "~6.1.0", 51 | "@angular/compiler-cli": "~6.1.0", 52 | "@angular/platform-server": "~6.1.0", 53 | "@angular/animations": "~6.1.0", 54 | "@angular/common": "~6.1.0", 55 | "@angular/platform-browser": "~6.1.0", 56 | "@angular/forms": "~6.1.0", 57 | "@angular/http": "~6.1.0", 58 | "@angular/router": "~6.1.0", 59 | "rxjs": "~6.0.0", 60 | "zone.js": "^0.8.4", 61 | "nativescript-angular": "~6.1.0", 62 | "nativescript-vue": "^2.0.2", 63 | "tns-core-modules": "^5.0.0", 64 | "tns-platform-declarations": "^5.0.0", 65 | "typescript": "~2.9.2", 66 | "prompt": "^1.0.0", 67 | "rimraf": "^2.6.2", 68 | "tslint": "^5.11.0", 69 | "semver": "^5.5.0", 70 | "vue": "^2.5.17" 71 | }, 72 | "bootstrapper": "nativescript-plugin-seed" 73 | } 74 | -------------------------------------------------------------------------------- /src/references.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /src/scripts/build-native.js: -------------------------------------------------------------------------------- 1 | const { exec } = require('child_process'); 2 | const semver = require('semver'); 3 | 4 | exec('tns --version', (err, stdout, stderr) => { 5 | if (err) { 6 | // node couldn't execute the command 7 | console.log(`tns --version err: ${err}`); 8 | return; 9 | } 10 | 11 | const tnsVersion = semver.major(stdout); 12 | 13 | // execute 'tns plugin build' for {N} version > 4. This command builds .aar in platforms/android folder. 14 | if (tnsVersion >= 4) { 15 | console.log(`executing 'tns plugin build'`); 16 | exec('tns plugin build', (err, stdout, stderr) => { 17 | if (err) { 18 | // node couldn't execute the command 19 | console.log(`${err}`); 20 | return; 21 | } 22 | }); 23 | } 24 | }); 25 | -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "module": "commonjs", 5 | "declaration": true, 6 | "removeComments": true, 7 | "noLib": false, 8 | "emitDecoratorMetadata": true, 9 | "experimentalDecorators": true, 10 | "skipLibCheck": true, 11 | "lib": ["es6", "dom"], 12 | "sourceMap": true, 13 | "pretty": true, 14 | "allowUnreachableCode": false, 15 | "allowUnusedLabels": false, 16 | "noEmitHelpers": true, 17 | "noEmitOnError": false, 18 | "noImplicitAny": false, 19 | "noImplicitReturns": true, 20 | "noImplicitUseStrict": false, 21 | "noFallthroughCasesInSwitch": true 22 | }, 23 | "files": [ 24 | "node_modules/tns-platform-declarations/android.d.ts", 25 | "node_modules/tns-platform-declarations/ios.d.ts", 26 | "angular/index.ts", 27 | "accordion.android.ts", 28 | "accordion.ios.ts", 29 | "accordion.common.ts" 30 | ], 31 | "compileOnSave": false, 32 | "angularCompilerOptions": { 33 | "skipTemplateCodegen": true 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/vue/accordion.js: -------------------------------------------------------------------------------- 1 | module.exports = function accordion(Vue) { 2 | return { 3 | model: { 4 | prop: 'selectedIndexes', 5 | event: 'selectedIndexesChange' 6 | }, 7 | props: { 8 | items: { 9 | type: Array, 10 | required: true 11 | }, 12 | '+alias': { 13 | type: String, 14 | default: 'item' 15 | }, 16 | '+index': { 17 | type: String, 18 | default: '$index' 19 | }, 20 | selectedIndexes: { 21 | type: Array, 22 | default: function () { 23 | return [] 24 | } 25 | } 26 | }, 27 | template: ` 28 | 38 | 39 | 40 | `, 41 | watch: { 42 | items: { 43 | handler(newVal) { 44 | this.$refs.accordion.setAttribute('items', newVal); 45 | this.$refs.accordion.nativeView.refresh(); 46 | }, 47 | deep: true 48 | } 49 | }, 50 | computed: { 51 | listeners() { 52 | return Object.assign({}, this.$listeners, { 53 | selectedIndexesChange: this.onSelectedIndexesChange 54 | }) 55 | } 56 | }, 57 | mounted() { 58 | this.getItemContext = (item, index) => 59 | getItemContext(item, index, this.$props[ '+alias' ], this.$props[ '+index' ]); 60 | 61 | this.getChildItemContext = (item, parentIndex, index) => 62 | getChildItemContext(item, parentIndex, index, this.$props[ '+alias' ], this.$props[ '+index' ]); 63 | 64 | this.selectorFn = (item, type) => selectorFn(this.$templates, item, type); 65 | 66 | this.$refs.accordion.setAttribute('items', this.items); 67 | 68 | const headerTemplates = this.$templates.getKeyedTemplates().filter(item => { 69 | if (item.key === 'header') { 70 | return item; 71 | } 72 | if (item.key.startsWith('header-')) { 73 | return item; 74 | } 75 | }); 76 | 77 | if (headerTemplates.length > 0) { 78 | this.$refs.accordion.setAttribute('_getHasHeader', () => { 79 | return false; 80 | }); 81 | } 82 | const itemContentTemplates = this.$templates.getKeyedTemplates().filter(item => { 83 | if (item.key === 'content') { 84 | return item; 85 | } 86 | 87 | if (item.key.startsWith('content-')) { 88 | return item; 89 | } 90 | }); 91 | 92 | const itemHeaderTemplates = this.$templates.getKeyedTemplates().filter(item => { 93 | if (item.key === 'title') { 94 | return item; 95 | } 96 | if (item.key.startsWith('title-')) { 97 | return item; 98 | } 99 | }); 100 | 101 | const footerTemplates = this.$templates.getKeyedTemplates().filter(item => { 102 | if (item.key === 'footer') { 103 | return item; 104 | } 105 | 106 | if (item.key.startsWith('footer-')) { 107 | return item; 108 | } 109 | }); 110 | 111 | if (footerTemplates.length > 0) { 112 | this.$refs.accordion.setAttribute('_getHasFooter', () => { 113 | return false; 114 | }); 115 | } 116 | 117 | 118 | this.$refs.accordion.setAttribute( 119 | '_headerTemplatesInternal', 120 | headerTemplates 121 | ); 122 | 123 | this.$refs.accordion.setAttribute( 124 | '_headerTemplateSelector', 125 | (item, index) => { 126 | return this.selectorFn(this.getItemContext(item, index), 'header'); 127 | } 128 | ); 129 | 130 | this.$refs.accordion.setAttribute( 131 | '_itemHeaderTemplatesInternal', 132 | itemHeaderTemplates 133 | ); 134 | 135 | 136 | this.$refs.accordion.setAttribute( 137 | '_itemHeaderTemplateSelector', 138 | (item, index) => { 139 | return this.selectorFn(this.getItemContext(item, index), 'title'); 140 | } 141 | ); 142 | 143 | this.$refs.accordion.setAttribute( 144 | '_itemContentTemplatesInternal', 145 | itemContentTemplates 146 | ); 147 | this.$refs.accordion.setAttribute( 148 | '_itemContentTemplateSelector', 149 | (item, parentIndex, index) => { 150 | return this.selectorFn(this.getChildItemContext(item, parentIndex, index), 'content'); 151 | } 152 | ); 153 | 154 | this.$refs.accordion.setAttribute( 155 | '_footerTemplatesInternal', 156 | footerTemplates 157 | ); 158 | this.$refs.accordion.setAttribute( 159 | '_footerTemplateSelector', 160 | (item, index) => { 161 | return this.selectorFn(this.getItemContext(item, index), 'footer'); 162 | } 163 | ); 164 | 165 | }, 166 | methods: { 167 | onHeaderLoading(args) { 168 | const index = args.index; 169 | const items = args.object.items; 170 | let currentItem = 171 | typeof items.getItem === 'function' 172 | ? items.getItem(index) 173 | : items[ index ]; 174 | 175 | let name = args.object._headerTemplateSelector(currentItem, index, items); 176 | 177 | if (name === 'default') { 178 | name = 'header' 179 | } 180 | 181 | const context = this.getItemContext(currentItem, index); 182 | const oldVnode = args.view && args.view[ Vue.VUE_VIEW ]; 183 | args.view = this.$templates.patchTemplate(name, context, oldVnode); 184 | }, 185 | onFooterLoading(args) { 186 | const index = args.index; 187 | const items = args.object.items; 188 | let currentItem = 189 | typeof items.getItem === 'function' 190 | ? items.getItem(index) 191 | : items[ index ]; 192 | 193 | let name = args.object._footerTemplateSelector(currentItem, index, items); 194 | 195 | if (name === 'default') { 196 | name = 'footer' 197 | } 198 | 199 | 200 | const context = this.getItemContext(currentItem, index); 201 | const oldVnode = args.view && args.view[ Vue.VUE_VIEW ]; 202 | args.view = this.$templates.patchTemplate(name, context, oldVnode); 203 | }, 204 | onItemHeaderLoading(args) { 205 | const index = args.index; 206 | const items = args.object.items; 207 | let currentItem = 208 | typeof items.getItem === 'function' 209 | ? items.getItem(index) 210 | : items[ index ]; 211 | 212 | let name = args.object._itemHeaderTemplateSelector(currentItem, index, items); 213 | 214 | if (name === 'default') { 215 | name = 'title' 216 | } 217 | 218 | const context = this.getItemContext(currentItem, index); 219 | const oldVnode = args.view && args.view[ Vue.VUE_VIEW ]; 220 | 221 | args.view = this.$templates.patchTemplate(name, context, oldVnode); 222 | }, 223 | onItemContentLoading(args) { 224 | const index = args.index; 225 | const childIndex = args.childIndex; 226 | const items = args.object.items; 227 | const childItems = this.$refs.accordion.getAttribute('childItems'); 228 | let currentItem = 229 | typeof items.getItem === 'function' 230 | ? items.getItem(index)[ childItems ][ childIndex ] 231 | : items[ index ][ childItems ][ childIndex ]; 232 | 233 | 234 | let name = args.object._itemContentTemplateSelector(currentItem, index, items); 235 | 236 | if (name === 'default') { 237 | name = 'content' 238 | } 239 | 240 | const context = this.getChildItemContext(currentItem, index, childIndex); 241 | const oldVnode = args.view && args.view[ Vue.VUE_VIEW ]; 242 | args.view = this.$templates.patchTemplate(name, context, oldVnode); 243 | }, 244 | onSelectedIndexesChange({ value }) { 245 | this.$emit('selectedIndexesChange', value) 246 | } 247 | } 248 | }; 249 | 250 | function getItemContext(item, index, alias, index_alias) { 251 | return { 252 | [ alias ]: item, 253 | [ index_alias ]: index, 254 | $even: index % 2 === 0, 255 | $odd: index % 2 !== 0 256 | }; 257 | } 258 | 259 | function getChildItemContext(item, parentIndex, index, alias, index_alias) { 260 | return { 261 | [ alias ]: item, 262 | [ index_alias ]: index, 263 | $even: index % 2 === 0, 264 | $odd: index % 2 !== 0, 265 | $parentIndex: parentIndex 266 | }; 267 | } 268 | 269 | function selectorFn(templates, item, type) { 270 | const templateMap = templates._templateMap; 271 | let iterator = templateMap.entries(); 272 | let curr; 273 | while ((curr = iterator.next().value)) { 274 | let name = curr[ 0 ]; 275 | let conditionFn = curr[ 1 ].conditionFn; 276 | try { 277 | if (conditionFn(item) && (name === type || name.startsWith(`${type}-`))) { 278 | return name 279 | } 280 | } catch (err) { 281 | } 282 | } 283 | return 'default' 284 | } 285 | } -------------------------------------------------------------------------------- /src/vue/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function install(Vue) { 3 | Vue.registerElement('NativeAccordion', () => require('../').Accordion); 4 | Vue.component('Accordion', require('./accordion')(Vue)) 5 | } -------------------------------------------------------------------------------- /src/vue/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "index" 3 | } -------------------------------------------------------------------------------- /ss/android.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/ss/android.gif -------------------------------------------------------------------------------- /ss/ios.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/triniwiz/nativescript-accordion/457a9956f5282475b67d4ed51d4f9c5561427c04/ss/ios.gif -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "class-name": true, 4 | "comment-format": [ 5 | true, 6 | "check-space" 7 | ], 8 | "indent": [ 9 | true, 10 | "spaces" 11 | ], 12 | "no-duplicate-variable": true, 13 | "no-eval": true, 14 | "no-internal-module": true, 15 | "no-trailing-whitespace": true, 16 | "no-var-keyword": true, 17 | "one-line": [ 18 | true, 19 | "check-open-brace", 20 | "check-whitespace" 21 | ], 22 | "quotemark": [ 23 | false, 24 | "double" 25 | ], 26 | "semicolon": [ 27 | true, 28 | "always" 29 | ], 30 | "triple-equals": [ 31 | true, 32 | "allow-null-check" 33 | ], 34 | "typedef-whitespace": [ 35 | true, 36 | { 37 | "call-signature": "nospace", 38 | "index-signature": "nospace", 39 | "parameter": "nospace", 40 | "property-declaration": "nospace", 41 | "variable-declaration": "nospace" 42 | } 43 | ], 44 | "variable-name": [ 45 | true, 46 | "ban-keywords" 47 | ], 48 | "whitespace": [ 49 | true, 50 | "check-branch", 51 | "check-decl", 52 | "check-operator", 53 | "check-separator", 54 | "check-type" 55 | ] 56 | } 57 | } --------------------------------------------------------------------------------