├── src ├── platforms │ ├── ios │ │ └── Podfile │ └── android │ │ └── include.gradle ├── common.ts ├── .npmignore ├── tsconfig.json ├── package.json ├── index.d.ts ├── fancyalert.android.ts ├── fancyalert.ios.ts └── typings │ └── objc!SCLAlertView_Objective_C.d.ts ├── screenshots ├── alert.gif └── alert-android.gif ├── demo ├── app │ ├── app.css │ ├── app.ts │ ├── App_Resources │ │ ├── iOS │ │ │ ├── bell.mp3 │ │ │ ├── icon.png │ │ │ ├── Default.png │ │ │ ├── icon-40.png │ │ │ ├── icon-60.png │ │ │ ├── icon-72.png │ │ │ ├── icon-76.png │ │ │ ├── icon@2x.png │ │ │ ├── switch.png │ │ │ ├── Default@2x.png │ │ │ ├── Icon-Small.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-72@2x.png │ │ │ ├── icon-76@2x.png │ │ │ ├── nativescript.png │ │ │ ├── Icon-Small-50.png │ │ │ ├── Icon-Small@2x.png │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-667h@2x.png │ │ │ ├── Default-736h@3x.png │ │ │ ├── Default-Landscape.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Icon-Small-50@2x.png │ │ │ ├── Default-Portrait@2x.png │ │ │ ├── Default-Landscape@2x.png │ │ │ ├── Default-Landscape@3x.png │ │ │ ├── Default-Landscape-568h@2x.png │ │ │ ├── Default-Landscape-667h@2x.png │ │ │ └── Info.plist │ │ └── Android │ │ │ ├── drawable-hdpi │ │ │ ├── icon.png │ │ │ └── customimage.jpg │ │ │ ├── drawable-ldpi │ │ │ ├── icon.png │ │ │ └── customimage.jpg │ │ │ ├── drawable-mdpi │ │ │ ├── icon.png │ │ │ └── customimage.jpg │ │ │ ├── drawable-nodpi │ │ │ └── splashscreen.9.png │ │ │ ├── app.gradle │ │ │ └── AndroidManifest.xml │ ├── vendor-platform.ios.ts │ ├── vendor.ts │ ├── main-page.ts │ ├── vendor-platform.android.ts │ ├── main-page.xml │ ├── package.json │ └── main-view-model.ts ├── references.d.ts ├── tsconfig.esm.json ├── package.json ├── tsconfig.json └── webpack.config.js ├── demo-vue ├── .gitignore ├── .babelrc ├── template │ ├── app │ │ ├── App_Resources │ │ │ ├── iOS │ │ │ │ ├── Assets.xcassets │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ │ ├── icon-1024.png │ │ │ │ │ │ ├── icon-29.png │ │ │ │ │ │ ├── icon-40.png │ │ │ │ │ │ ├── icon-76.png │ │ │ │ │ │ ├── icon-29@2x.png │ │ │ │ │ │ ├── icon-29@3x.png │ │ │ │ │ │ ├── icon-40@2x.png │ │ │ │ │ │ ├── icon-40@3x.png │ │ │ │ │ │ ├── icon-60@2x.png │ │ │ │ │ │ ├── icon-60@3x.png │ │ │ │ │ │ ├── icon-76@2x.png │ │ │ │ │ │ ├── icon-83.5@2x.png │ │ │ │ │ │ └── Contents.json │ │ │ │ │ ├── LaunchImage.launchimage │ │ │ │ │ │ ├── Default.png │ │ │ │ │ │ ├── Default@2x.png │ │ │ │ │ │ ├── Default-1125h.png │ │ │ │ │ │ ├── Default-568h@2x.png │ │ │ │ │ │ ├── Default-667h@2x.png │ │ │ │ │ │ ├── Default-736h@3x.png │ │ │ │ │ │ ├── Default-Portrait.png │ │ │ │ │ │ ├── Default-Landscape-X.png │ │ │ │ │ │ ├── Default-Landscape.png │ │ │ │ │ │ ├── Default-Portrait@2x.png │ │ │ │ │ │ ├── Default-Landscape@2x.png │ │ │ │ │ │ ├── Default-Landscape@3x.png │ │ │ │ │ │ └── Contents.json │ │ │ │ │ ├── LaunchScreen.Center.imageset │ │ │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ │ │ ├── LaunchScreen-Center@2x.png │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── LaunchScreen.AspectFill.imageset │ │ │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ │ │ ├── LaunchScreen-AspectFill@2x.png │ │ │ │ │ │ └── Contents.json │ │ │ │ ├── build.xcconfig │ │ │ │ ├── Info.plist │ │ │ │ └── LaunchScreen.storyboard │ │ │ └── Android │ │ │ │ ├── values-v21 │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ │ ├── drawable-hdpi │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── background.png │ │ │ │ ├── drawable-ldpi │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── background.png │ │ │ │ ├── drawable-mdpi │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── background.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── background.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── background.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ └── background.png │ │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ │ ├── app.gradle │ │ │ │ ├── drawable-nodpi │ │ │ │ └── splash_screen.xml │ │ │ │ └── AndroidManifest.xml │ │ └── package.json │ └── package.json ├── README.md ├── src │ └── main.js └── package.json ├── .gitignore ├── LICENSE └── README.md /src/platforms/ios/Podfile: -------------------------------------------------------------------------------- 1 | pod 'SCLAlertView-Objective-C' -------------------------------------------------------------------------------- /screenshots/alert.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/screenshots/alert.gif -------------------------------------------------------------------------------- /demo/app/app.css: -------------------------------------------------------------------------------- 1 | Button { 2 | font-size: 20; 3 | horizontal-align: center; 4 | padding:10; 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /demo/app/app.ts: -------------------------------------------------------------------------------- 1 | import * as application from 'tns-core-modules/application'; 2 | application.start({ moduleName: 'main-page' }); 3 | -------------------------------------------------------------------------------- /screenshots/alert-android.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/screenshots/alert-android.gif -------------------------------------------------------------------------------- /demo-vue/.gitignore: -------------------------------------------------------------------------------- 1 | # JetBrains project files 2 | .idea 3 | 4 | # NPM 5 | node_modules 6 | 7 | # NativeScript application 8 | /dist 9 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/bell.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/bell.mp3 -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/icon.png -------------------------------------------------------------------------------- /demo-vue/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "cacheDirectory": true }] 4 | ], 5 | "plugins": ["transform-object-rest-spread"] 6 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/icon-40.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/icon-60.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/icon-72.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/icon-76.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/icon@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/switch.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Icon-Small.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/icon-40@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/icon-60@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/icon-72@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/icon-76@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/nativescript.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/nativescript.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Icon-Small-50.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Icon-Small@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default-568h@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default-667h@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default-736h@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default-Landscape.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default-Portrait.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Icon-Small-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Icon-Small-50@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default-Portrait@2x.png -------------------------------------------------------------------------------- /demo/references.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/Android/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/Android/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/Android/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default-Landscape@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default-Landscape@3x.png -------------------------------------------------------------------------------- /demo/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "es2015", 5 | "moduleResolution": "node" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /demo-vue/template/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "android": { 3 | "v8Flags": "--expose_gc" 4 | }, 5 | "main": "app.js", 6 | "name": "demo-vue", 7 | "version": "1.0.0" 8 | } 9 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default-Landscape-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default-Landscape-568h@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Default-Landscape-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/iOS/Default-Landscape-667h@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/drawable-hdpi/customimage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/Android/drawable-hdpi/customimage.jpg -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/drawable-ldpi/customimage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/Android/drawable-ldpi/customimage.jpg -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/drawable-mdpi/customimage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/Android/drawable-mdpi/customimage.jpg -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/drawable-nodpi/splashscreen.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo/app/App_Resources/Android/drawable-nodpi/splashscreen.9.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-hdpi/background.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-ldpi/background.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-mdpi/background.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /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 | //} -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/Android/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /demo/app/vendor-platform.ios.ts: -------------------------------------------------------------------------------- 1 | // There is a bug in angular: https://github.com/angular/angular-cli/pull/8589/files 2 | // Legendary stuff, its webpack plugin pretty much doesn't work with empty TypeScript files in v1.8.3 3 | void 0; 4 | -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /src/platforms/android/include.gradle: -------------------------------------------------------------------------------- 1 | android { 2 | 3 | } 4 | 5 | repositories { 6 | maven { 7 | url "https://jitpack.io" 8 | } 9 | } 10 | 11 | dependencies { 12 | compile 'com.github.Rahul1d:ColorDialog:1.1.0' 13 | } -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | NativeScript-Vue Application 4 | NativeScript-Vue Application 5 | 6 | -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/values-v21/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | NativeScript-Vue Application 4 | NativeScript-Vue Application 5 | 6 | -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NathanWalker/nativescript-fancyalert/HEAD/demo-vue/template/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | android { 4 | defaultConfig { 5 | generatedDensities = [] 6 | applicationId = "__PACKAGE__" 7 | } 8 | aaptOptions { 9 | additionalParameters "--no-version-vectors" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /src/common.ts: -------------------------------------------------------------------------------- 1 | export class TNSFancyAlertButton { 2 | public label: string; 3 | public action: Function; 4 | public applyStyle: (btn: any) => void; 5 | 6 | constructor(model?: any) { 7 | if (model) { 8 | this.label = model.label; 9 | this.action = model.action; 10 | this.applyStyle = model.applyStyle; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/.npmignore: -------------------------------------------------------------------------------- 1 | demo/ 2 | screenshots/ 3 | *.png 4 | *.log 5 | *.ts 6 | !*.d.ts 7 | tsconfig.json 8 | package-lock.json 9 | 10 | 11 | node_modules/ 12 | 13 | *.ts 14 | !*.d.ts 15 | *.map 16 | tsconfig.json 17 | scripts/* 18 | platforms/android/* 19 | !platforms/android/include.gradle 20 | !platforms/android/*.aar 21 | !platforms/android/*.jar 22 | references.d.ts -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | src/*.js 2 | src/*.js.map 3 | src/*.log 4 | src/*.d.ts 5 | !index.d.ts 6 | demo/package-lock.json 7 | demo/app/*.js 8 | demo/*.d.ts 9 | demo/lib 10 | demo/hooks 11 | demo/platforms 12 | demo/node_modules 13 | demo-vue/package-lock.json 14 | demo-vue/platforms 15 | demo-vue/node_modules 16 | src/node_modules 17 | !demo/references.d.ts 18 | !src/fancyalert.d.ts 19 | src/package-lock.json 20 | -------------------------------------------------------------------------------- /demo/app/vendor.ts: -------------------------------------------------------------------------------- 1 | // Snapshot the ~/app.css and the theme 2 | const application = require("application"); 3 | require("ui/styling/style-scope"); 4 | const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/); 5 | global.registerWebpackModules(appCssContext); 6 | application.loadAppCss(); 7 | 8 | require("./vendor-platform"); 9 | 10 | require("bundle-entry-points"); 11 | -------------------------------------------------------------------------------- /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 | 5 | // Event handler for Page "loaded" event attached in main-page.xml 6 | export function pageLoaded(args: observable.EventData) { 7 | // Get the event sender 8 | var page = args.object; 9 | page.bindingContext = new HelloWorldModel(); 10 | } 11 | -------------------------------------------------------------------------------- /demo/app/vendor-platform.android.ts: -------------------------------------------------------------------------------- 1 | require("application"); 2 | if (!global["__snapshot"]) { 3 | // In case snapshot generation is enabled these modules will get into the bundle 4 | // but will not be required/evaluated. 5 | // The snapshot webpack plugin will add them to the tns-java-classes.js bundle file. 6 | // This way, they will be evaluated on app start as early as possible. 7 | require("ui/frame"); 8 | require("ui/frame/activity"); 9 | } 10 | -------------------------------------------------------------------------------- /demo-vue/template/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/template/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/template/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/template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "demo-vue", 3 | "description": "A native application built with NativeScript-Vue", 4 | "license": "MIT", 5 | "readme": "NativeScript-Vue Application", 6 | "nativescript": { 7 | "id": "org.nativescript.demo" 8 | }, 9 | "dependencies": { 10 | "nativescript-theme-core": "^1.0.4", 11 | "nativescript-vue": "^2.0.0-alpha.1", 12 | "tns-core-modules": "~4.1.0", 13 | "nativescript-fancyalert": "file:../../src" 14 | }, 15 | "devDependencies": { 16 | "babel-traverse": "6.26.0", 17 | "babel-types": "6.26.0", 18 | "babylon": "6.18.0", 19 | "lazy": "1.0.11" 20 | } 21 | } -------------------------------------------------------------------------------- /demo-vue/README.md: -------------------------------------------------------------------------------- 1 | # NativeScript-Vue Demo 2 | 3 | > Demo app for nativescript-fancyalert plugin made with NativeScript-Vue 4 | 5 | ## Usage 6 | 7 | * Install dependencies 8 | 9 | ``` bash 10 | npm install 11 | ``` 12 | 13 | * Compile the `nativescript-fancyalert` plugin 14 | 15 | ``` bash 16 | npm run build.plugin 17 | ``` 18 | 19 | * Run the demo: 20 | 21 | ``` bash 22 | # Build, watch for changes and debug the application 23 | npm run debug 24 | npm run debug: 25 | 26 | # Build, watch for changes and run the application 27 | npm run watch 28 | npm run watch: 29 | ``` 30 | 31 | * Clean the NativeScript application instance (i.e. rm -rf dist) 32 | 33 | ``` bash 34 | npm run clean 35 | ``` 36 | -------------------------------------------------------------------------------- /src/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 | "skipLibCheck": true, 11 | "lib": ["es5", "es6", "dom", "es2015.iterable"], 12 | "baseUrl": ".", 13 | "paths": { 14 | "*": ["./node_modules/tns-core-modules/*", "./node_modules/*"] 15 | }, 16 | "sourceMap": true, 17 | "pretty": true, 18 | "allowUnreachableCode": false, 19 | "allowUnusedLabels": false, 20 | "noEmitHelpers": true, 21 | "noEmitOnError": false, 22 | "noImplicitAny": false, 23 | "noImplicitReturns": true, 24 | "noImplicitUseStrict": false, 25 | "noFallthroughCasesInSwitch": true, 26 | "typeRoots": ["./node_modules/@types", "./node_modules"], 27 | "types": [] 28 | }, 29 | "exclude": ["node_modules", "demo"], 30 | "compileOnSave": false 31 | } 32 | -------------------------------------------------------------------------------- /demo-vue/template/app/App_Resources/Android/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | 14 | 15 | 16 | 19 | 20 | 23 | -------------------------------------------------------------------------------- /demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "nativescript": { 3 | "id": "org.nativescript.demo", 4 | "tns-android": { 5 | "version": "4.2.0" 6 | }, 7 | "tns-ios": { 8 | "version": "4.2.0" 9 | } 10 | }, 11 | "dependencies": { 12 | "nativescript-fancyalert": "file:../src", 13 | "tns-core-modules": "^4.2.0" 14 | }, 15 | "devDependencies": { 16 | "babel-traverse": "6.12.0", 17 | "babel-types": "6.11.1", 18 | "babylon": "6.8.4", 19 | "copy-webpack-plugin": "~4.0.1", 20 | "css-loader": "~0.28.7", 21 | "extract-text-webpack-plugin": "~3.0.0", 22 | "filewalker": "0.1.2", 23 | "lazy": "1.0.11", 24 | "nativescript-css-loader": "~0.26.0", 25 | "nativescript-dev-typescript": "^0.7.3", 26 | "nativescript-dev-webpack": "^0.15.1", 27 | "nativescript-worker-loader": "~0.9.1", 28 | "raw-loader": "~0.5.1", 29 | "resolve-url-loader": "~2.3.0", 30 | "tns-platform-declarations": "^4.2.0", 31 | "typescript": "~2.9.0" 32 | }, 33 | "scripts": { 34 | "build.plugin": "cd ../src && npm run build" 35 | } 36 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | nativescript-fancyalert 4 | Copyright (c) 2016, Nathan Walker 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | the Software, and to permit persons to whom the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /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 | "skipLibCheck": true, 11 | "lib": [ 12 | "dom", 13 | "es6" 14 | ], 15 | "pretty": true, 16 | "allowUnreachableCode": false, 17 | "allowUnusedLabels": false, 18 | "noEmitHelpers": true, 19 | "noEmitOnError": false, 20 | "noImplicitAny": false, 21 | "noImplicitReturns": true, 22 | "noImplicitUseStrict": false, 23 | "noFallthroughCasesInSwitch": true, 24 | "typeRoots": [ 25 | "./node_modules/@types", 26 | "./node_modules" 27 | ], 28 | "types": [], 29 | "baseUrl": ".", 30 | "paths": { 31 | "*": [ 32 | "./node_modules/tns-core-modules/*", 33 | "./node_modules/*" 34 | ], 35 | "~/*": [ 36 | "app/*" 37 | ] 38 | } 39 | }, 40 | "exclude": [ 41 | "node_modules", 42 | "platforms" 43 | ], 44 | "compileOnSave": false 45 | } -------------------------------------------------------------------------------- /demo-vue/src/main.js: -------------------------------------------------------------------------------- 1 | import * as app from "tns-core-modules/application" 2 | 3 | import Vue from 'nativescript-vue' 4 | import { isIOS, isAndroid } from 'tns-core-modules/platform' 5 | import { TNSFancyAlert, TNSFancyAlertButton } from 'nativescript-fancyalert' 6 | 7 | const Page = { 8 | template: ` 9 | 10 | 11 | 12 | 13 |