├── .gitignore
├── .npmignore
├── LICENSE
├── README.md
├── demo-ng
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── app.gradle
│ │ │ ├── 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-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-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.component.html
│ ├── app.component.ts
│ ├── app.css
│ ├── app.module.ts
│ ├── app.routing.ts
│ ├── item
│ │ ├── item-detail.component.html
│ │ ├── item-detail.component.ts
│ │ ├── item.service.ts
│ │ ├── item.ts
│ │ ├── items.component.html
│ │ └── items.component.ts
│ ├── main.aot.ts
│ ├── main.ts
│ └── package.json
├── package.json
└── tsconfig.json
├── demo-webpack
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── app.gradle
│ │ │ ├── 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-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
│ ├── README.md
│ ├── app.css
│ ├── app.ts
│ ├── bundle-config.ts
│ ├── main-page.ts
│ ├── main-page.xml
│ ├── main-view-model.ts
│ └── package.json
├── package.json
└── tsconfig.json
├── demo
├── .DS_Store
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── app.gradle
│ │ │ ├── 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
│ ├── countries.json
│ ├── font-awesome.css
│ ├── fonts
│ │ └── fontawesome-webfont.ttf
│ ├── icon.png
│ ├── main-page.css
│ ├── main-page.ts
│ ├── main-page.xml
│ ├── main-view-model.ts
│ ├── package.json
│ ├── pages
│ │ └── label
│ │ │ ├── label-view-model.ts
│ │ │ ├── label.css
│ │ │ ├── label.ts
│ │ │ └── label.xml
│ └── tests
│ │ └── tests.js
├── package-lock.json
├── package.json
└── tsconfig.json
├── filter-select.android.d.ts
├── filter-select.android.ts
├── filter-select.common.d.ts
├── filter-select.common.ts
├── filter-select.ios.d.ts
├── filter-select.ios.ts
├── index.d.ts
├── package.json
├── screenshots
├── android-filter-select.gif
└── ios-filter-select.gif
├── scripts
└── postclone.js
├── styles.css
└── tsconfig.json
/.gitignore:
--------------------------------------------------------------------------------
1 | *.js
2 | *.js.map
3 | *.log
4 | !scripts/*.js
5 | demo/app/*.js
6 | !demo/karma.conf.js
7 | !demo/app/tests/*.js
8 | demo/*.d.ts
9 | !demo/references.d.ts
10 | demo/lib
11 | demo/platforms
12 | demo/node_modules
13 | node_modules
14 | demo-ng/app/*.js
15 | !demo-ng/karma.conf.js
16 | !demo-ng/app/tests/*.js
17 | demo-ng/*.d.ts
18 | !demo-ng/references.d.ts
19 | demo-ng/lib
20 | demo-ng/platforms
21 | demo-ng/node_modules
22 | *.d.ts
23 | .DS_Store
24 | demo/.nsbuildinfo
25 | demo/.nslivesyncinfo
26 | demo/app/tns_modules/
27 |
28 |
29 | demo-webpack/app/*.js
30 | !demo-webpack/karma.conf.js
31 | !demo-webpack/app/tests/*.js
32 | demo-webpack/*.d.ts
33 | !demo-webpack/references.d.ts
34 | demo-webpack/platforms
35 | demo-webpack/node_modules
36 | demo-webpack/app/vendor*
37 | demo-webpack/report
38 |
39 | .tmp_backup
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | demo/
2 | demo-ng/
3 | demo-webpack/
4 | screenshots/
5 | node_modules/
6 | scripts/
7 | *.gif
8 | *.png
9 | *.log
10 | *.map
11 | *.ts
12 | !*.d.ts
13 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | nativescript-yourplugin
4 | Copyright (c) 2016, Your Name
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.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | # No active maintinance please go to https://www.npmjs.com/package/@ticnat/nativescript-searchable-select
4 | # FilterSelect
5 | [](https://www.npmjs.com/package/nativescript-filter-select)
6 | [](https://www.npmjs.com/package/nativescript-filter-select)
7 |
8 | A NativeScript plugin to provide an listview widget to select AND filter items.
9 | ## Sample Screenshots
10 |
11 | #### Android and ios
12 |
13 | Sample 1 | Sample 2
14 | -------- | ---------
15 |  | 
16 | ## Installation
17 |
18 | ##### NativeScript 4.x
19 | - `tns plugin add nativescript-filter-select`
20 |
21 | ## import css
22 | ` @import 'nativescript-filter-select/styles.css'; `
23 |
24 | *Be sure to run a new build after adding plugins to avoid any issues
25 | ## Vanilla NativeScript
26 |
27 | IMPORTANT: *Make sure you include `xmlns:FS="nativescript-filter-select"` on the Page element*
28 |
29 | ### XML
30 | ```XML
31 |
32 |
33 |
40 |
41 |
42 | ```
43 | ## Angular NativeScript
44 | ### Regiter plugin in Component class
45 |
46 | ```JAVASCRIPT
47 |
48 | import { registerElement } from 'nativescript-angular/element-registry';
49 | import { FilterSelect } from 'nativescript-filter-select';
50 | registerElement('FilterSelect', () => FilterSelect);
51 |
52 | ```
53 |
54 | ### HTML
55 | ```HTML
56 |
63 |
64 |
65 | ```
66 |
67 |
68 |
69 |
70 | ## Attributes
71 |
72 | ### see [demo](https://github.com/moayadnajd/nativescript-filter-select/tree/master/demo) examples for more information
73 |
74 | | Attribute | Description |Default
75 | | ------------- | ------------------------------------------------------- |--------
76 | | render | to render "tags" or "label" or "drop" | string : tags
77 | | multiple | to limit the options selected to one if set to false | boolean : true
78 | |search_param| index of the string value in the items object to search on it |string : name
79 | |item_template|xml template for the listview items | string : ``
80 | |change| change event treger when select is done | function : optional `change(args)` and selected item can be accessed as `args.selected`
81 | |modal_title|title of the filter modal | String : `Please select items`
82 | |hint|string to show when no items selected |`Please select some items`
83 | |items|array of objects to populate the list of options | ObservableArray :[]
84 | |primary_key|unique index of the items object | string : `id`
85 | |selected|array of objects to mark some options as selected and it will be the result when select is done | Array: []
86 | |disabled| to disable select botton | boolean : false
87 | |allowSearch| to enable/disable search bar in the modal | boolean : true
88 | |refresh| to refresh the filter select with new values good with remote data | function
89 | |searchHint | search placeholder or hint in the items modal | "Search for item"
90 | |xbtn| remove tag text you can use tag icon here | "x"
91 | |closeText| close button text | "Close"
92 | |doneText| done button text | "Done"
93 | |clearText| clear button text | "Clear"
94 | |selectText| select button text | "Select"
95 | | autofocus | keyboard up when you open modal so you can start search | false
96 | | open() | open modal programmatically | function
97 | |close| close event treger when modal is closed | you can get the selected array by `args.selected` if the modal closed without any selection the array will be empty
98 |
99 |
100 | ### CSS core-theme styles is required for modal page if you dont have them just make your own
101 |
102 | see [styles.css](https://github.com/moayadnajd/nativescript-filter-select/blob/master/styles.css) so you can override or make your own
103 |
104 | * and don't forget to share with us your nice styles :D
105 |
106 | ### font icons
107 |
108 | * font icons are required if you are using dropdown render
109 |
110 | and you can add fontawsome icon as a select triger ( hint="{{'fa-list-ul' | fonticon}}" )
111 |
112 | see [demo](https://github.com/moayadnajd/nativescript-filter-select/tree/master/demo)
113 |
114 | ### For contributing
115 | just do a pull request with description of your changes or open issue with your ideas
116 |
117 | ### i need help with [this issue](https://github.com/moayadnajd/nativescript-filter-select/issues/5)
118 |
119 |
120 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/demo-ng/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 = "__PACKAGE__"
12 | }
13 | aaptOptions {
14 | additionalParameters "--no-version-vectors"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/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/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 | "info" : {
89 | "version" : 1,
90 | "author" : "xcode"
91 | }
92 | }
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo-ng/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-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/demo-ng/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-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/demo-ng/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-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiresFullScreen
28 |
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/demo-ng/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-ng/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-ng/app/app.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/demo-ng/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from "@angular/core";
2 |
3 | @Component({
4 | selector: "ns-app",
5 | templateUrl: "app.component.html",
6 | })
7 |
8 | export class AppComponent { }
9 |
--------------------------------------------------------------------------------
/demo-ng/app/app.css:
--------------------------------------------------------------------------------
1 | /*
2 | In NativeScript, the app.css file is where you place CSS rules that
3 | you would like to apply to your entire application. Check out
4 | http://docs.nativescript.org/ui/styling for a full list of the CSS
5 | selectors and properties you can use to style UI components.
6 |
7 | /*
8 | In many cases you may want to use the NativeScript core theme instead
9 | of writing your own CSS rules. For a full list of class names in the theme
10 | refer to http://docs.nativescript.org/ui/theme.
11 | */
12 | @import 'nativescript-theme-core/css/core.light.css';
13 | @import 'nativescript-filter-select/styles.css';
--------------------------------------------------------------------------------
/demo-ng/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 |
6 | import { ItemService } from "./item/item.service";
7 | import { ItemsComponent } from "./item/items.component";
8 | import { ItemDetailComponent } from "./item/item-detail.component";
9 |
10 | // Uncomment and add to NgModule imports if you need to use two-way binding
11 | // import { NativeScriptFormsModule } from "nativescript-angular/forms";
12 |
13 | // Uncomment and add to NgModule imports if you need to use the HTTP wrapper
14 | // import { NativeScriptHttpModule } from "nativescript-angular/http";
15 |
16 | @NgModule({
17 | bootstrap: [
18 | AppComponent
19 | ],
20 | imports: [
21 | NativeScriptModule,
22 | AppRoutingModule
23 | ],
24 | declarations: [
25 | AppComponent,
26 | ItemsComponent,
27 | ItemDetailComponent
28 | ],
29 | providers: [
30 | ItemService
31 | ],
32 | schemas: [
33 | NO_ERRORS_SCHEMA
34 | ]
35 | })
36 | /*
37 | Pass your application module to the bootstrapModule function located in main.ts to start your app
38 | */
39 | export class AppModule { }
40 |
--------------------------------------------------------------------------------
/demo-ng/app/app.routing.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from "@angular/core";
2 | import { NativeScriptRouterModule } from "nativescript-angular/router";
3 | import { Routes } from "@angular/router";
4 |
5 | import { ItemsComponent } from "./item/items.component";
6 | import { ItemDetailComponent } from "./item/item-detail.component";
7 |
8 | const routes: Routes = [
9 | { path: "", redirectTo: "/items", pathMatch: "full" },
10 | { path: "items", component: ItemsComponent },
11 | { path: "item/:id", component: ItemDetailComponent },
12 | ];
13 |
14 | @NgModule({
15 | imports: [NativeScriptRouterModule.forRoot(routes)],
16 | exports: [NativeScriptRouterModule]
17 | })
18 | export class AppRoutingModule { }
--------------------------------------------------------------------------------
/demo-ng/app/item/item-detail.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/demo-ng/app/item/item-detail.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit } from "@angular/core";
2 | import { ActivatedRoute } from "@angular/router";
3 |
4 | import { Item } from "./item";
5 | import { ItemService } from "./item.service";
6 |
7 | @Component({
8 | selector: "ns-details",
9 | moduleId: module.id,
10 | templateUrl: "./item-detail.component.html",
11 | })
12 | export class ItemDetailComponent implements OnInit {
13 | item: Item;
14 |
15 | constructor(
16 | private itemService: ItemService,
17 | private route: ActivatedRoute
18 | ) { }
19 |
20 | ngOnInit(): void {
21 | const id = +this.route.snapshot.params["id"];
22 | this.item = this.itemService.getItem(id);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/demo-ng/app/item/item.service.ts:
--------------------------------------------------------------------------------
1 | import { Injectable } from "@angular/core";
2 |
3 | import { Item } from "./item";
4 |
5 | @Injectable()
6 | export class ItemService {
7 | private items = new Array- (
8 | { id: 1, name: "Ter Stegen", role: "Goalkeeper" },
9 | { id: 3, name: "Piqué", role: "Defender" },
10 | { id: 4, name: "I. Rakitic", role: "Midfielder" },
11 | { id: 5, name: "Sergio", role: "Midfielder" },
12 | { id: 6, name: "Denis Suárez", role: "Midfielder" },
13 | { id: 7, name: "Arda", role: "Midfielder" },
14 | { id: 8, name: "A. Iniesta", role: "Midfielder" },
15 | { id: 9, name: "Suárez", role: "Forward" },
16 | { id: 10, name: "Messi", role: "Forward" },
17 | { id: 11, name: "Neymar", role: "Forward" },
18 | { id: 12, name: "Rafinha", role: "Midfielder" },
19 | { id: 13, name: "Cillessen", role: "Goalkeeper" },
20 | { id: 14, name: "Mascherano", role: "Defender" },
21 | { id: 17, name: "Paco Alcácer", role: "Forward" },
22 | { id: 18, name: "Jordi Alba", role: "Defender" },
23 | { id: 19, name: "Digne", role: "Defender" },
24 | { id: 20, name: "Sergi Roberto", role: "Midfielder" },
25 | { id: 21, name: "André Gomes", role: "Midfielder" },
26 | { id: 22, name: "Aleix Vidal", role: "Midfielder" },
27 | { id: 23, name: "Umtiti", role: "Defender" },
28 | { id: 24, name: "Mathieu", role: "Defender" },
29 | { id: 25, name: "Masip", role: "Goalkeeper" },
30 | );
31 |
32 | getItems(): Item[] {
33 | return this.items;
34 | }
35 |
36 | getItem(id: number): Item {
37 | return this.items.filter(item => item.id === id)[0];
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/demo-ng/app/item/item.ts:
--------------------------------------------------------------------------------
1 | export class Item {
2 | id: number;
3 | name: string;
4 | role: string;
5 | }
6 |
--------------------------------------------------------------------------------
/demo-ng/app/item/items.component.html:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
14 |
15 |
16 |
26 |
27 |
33 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/demo-ng/app/item/items.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit } from "@angular/core";
2 |
3 | import { Item } from "./item";
4 | import { ItemService } from "./item.service";
5 |
6 | import * as elementRegistryModule from 'nativescript-angular/element-registry';
7 | elementRegistryModule.registerElement("FilterSelect", () => require("nativescript-filter-select").FilterSelect);
8 |
9 |
10 | @Component({
11 | selector: "ns-items",
12 | moduleId: module.id,
13 | templateUrl: "./items.component.html",
14 | })
15 |
16 |
17 | export class ItemsComponent implements OnInit {
18 | items: Item[];
19 | onitemselected(args) {
20 | console.log('this is the selected array => '+JSON.stringify(args.selected));
21 | };
22 |
23 | // This pattern makes use of Angular’s dependency injection implementation to inject an instance of the ItemService service into this class.
24 | // Angular knows about this service because it is included in your app’s main NgModule, defined in app.module.ts.
25 | constructor(private itemService: ItemService) { }
26 |
27 | ngOnInit(): void {
28 | this.items = this.itemService.getItems();
29 | }
30 | }
--------------------------------------------------------------------------------
/demo-ng/app/main.aot.ts:
--------------------------------------------------------------------------------
1 | // this import should be first in order to load some required settings (like globals and reflect-metadata)
2 | import { platformNativeScript } from "nativescript-angular/platform-static";
3 |
4 | import { AppModuleNgFactory } from "./app.module.ngfactory";
5 |
6 | platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory);
7 |
--------------------------------------------------------------------------------
/demo-ng/app/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.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/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "android": {
3 | "v8Flags": "--expose_gc"
4 | },
5 | "main": "main.js",
6 | "name": "tns-template-hello-world-ng",
7 | "version": "3.1.2"
8 | }
--------------------------------------------------------------------------------
/demo-ng/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "NativeScript Application",
3 | "license": "SEE LICENSE IN ",
4 | "readme": "NativeScript Application",
5 | "repository": "",
6 | "nativescript": {
7 | "id": "org.nativescript.demong",
8 | "tns-ios": {
9 | "version": "3.0.1"
10 | }
11 | },
12 | "dependencies": {
13 | "@angular/animations": "~4.2.0",
14 | "@angular/common": "~4.2.0",
15 | "@angular/compiler": "~4.2.0",
16 | "@angular/core": "~4.2.0",
17 | "@angular/forms": "~4.2.0",
18 | "@angular/http": "~4.2.0",
19 | "@angular/platform-browser": "~4.2.0",
20 | "@angular/router": "~4.2.0",
21 | "nativescript-angular": "~4.2.0",
22 | "nativescript-filter-select": "^1.1.1",
23 | "nativescript-theme-core": "~1.0.2",
24 | "reflect-metadata": "~0.1.8",
25 | "rxjs": "~5.4.2",
26 | "tns-core-modules": "~3.1.0",
27 | "zone.js": "~0.8.2"
28 | },
29 | "devDependencies": {
30 | "nativescript-dev-typescript": "~0.5.0",
31 | "typescript": "~2.4.2"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/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 | "./node_modules/tns-core-modules/*",
18 | "./node_modules/*"
19 | ]
20 | }
21 | },
22 | "exclude": [
23 | "node_modules",
24 | "platforms",
25 | "**/*.aot.ts"
26 | ]
27 | }
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/demo-webpack/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.demowebpack"
12 | }
13 | aaptOptions {
14 | additionalParameters "--no-version-vectors"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 |
-
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/Android/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/Android/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
21 |
22 |
23 |
31 |
32 |
34 |
35 |
36 |
42 |
43 |
45 |
46 |
--------------------------------------------------------------------------------
/demo-webpack/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-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo-webpack/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-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/demo-webpack/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-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/demo-webpack/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-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo-webpack/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo-webpack/app/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiresFullScreen
28 |
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/demo-webpack/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-webpack/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-webpack/app/README.md:
--------------------------------------------------------------------------------
1 | # NativeScript TypeScript Template
2 |
3 | This template creates a NativeScript app with the NativeScript hello world example,
4 | however, in this template the example is built with TypeScript.
5 |
6 | You can create a new app that uses this template with either the `--template` option.
7 |
8 | ```
9 | tns create my-app-name --template tns-template-hello-world-ts
10 | ```
11 |
12 | Or the `--tsc` shorthand.
13 |
14 | ```
15 | tns create my-app-name --tsc
16 | ```
17 |
18 | > 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-ts).
19 |
20 | If you want to create a new app that uses the source of the template from the `master` branch, you can execute the following:
21 |
22 | ```
23 | tns create my-app-name --template https://github.com/NativeScript/template-hello-world-ts.git#master
24 | ```
25 |
--------------------------------------------------------------------------------
/demo-webpack/app/app.css:
--------------------------------------------------------------------------------
1 | /*
2 | In NativeScript, the app.css file is where you place CSS rules that
3 | you would like to apply to your entire application. Check out
4 | http://docs.nativescript.org/ui/styling for a full list of the CSS
5 | selectors and properties you can use to style UI components.
6 |
7 | /*
8 | In many cases you may want to use the NativeScript core theme instead
9 | of writing your own CSS rules. For a full list of class names in the theme
10 | refer to http://docs.nativescript.org/ui/theme.
11 | The imported CSS rules must precede all other types of rules.
12 | */
13 | @import 'nativescript-theme-core/css/core.light.css';
14 | @import 'nativescript-filter-select/styles.css';
--------------------------------------------------------------------------------
/demo-webpack/app/app.ts:
--------------------------------------------------------------------------------
1 | /*
2 | In NativeScript, the app.ts file is the entry point to your application.
3 | You can use this file to perform app-level initialization, but the primary
4 | purpose of the file is to pass control to the app’s first module.
5 | */
6 |
7 | import "./bundle-config";
8 | import * as app from 'application';
9 |
10 | app.start({ moduleName: 'main-page' });
11 |
12 | /*
13 | Do not place any code after the application has been started as it will not
14 | be executed on iOS.
15 | */
16 |
--------------------------------------------------------------------------------
/demo-webpack/app/bundle-config.ts:
--------------------------------------------------------------------------------
1 | if ((global).TNS_WEBPACK) {
2 | //registers tns-core-modules UI framework modules
3 | require("bundle-entry-points");
4 | global.registerModule("nativescript-filter-select", () => require("nativescript-filter-select"));
5 | //register application modules
6 | global.registerModule("main-page", () => require("./main-page"));
7 | }
8 |
--------------------------------------------------------------------------------
/demo-webpack/app/main-page.ts:
--------------------------------------------------------------------------------
1 | /*
2 | In NativeScript, a file with the same name as an XML file is known as
3 | a code-behind file. The code-behind is a great place to place your view
4 | logic, and to set up your page’s data binding.
5 | */
6 |
7 | import { EventData } from 'data/observable';
8 | import { Page } from 'ui/page';
9 | import { HelloWorldModel } from './main-view-model';
10 |
11 | // Event handler for Page "navigatingTo" event attached in main-page.xml
12 | export function navigatingTo(args: EventData) {
13 | /*
14 | This gets a reference this page’s UI component. You can
15 | view the API reference of the Page to see what’s available at
16 | https://docs.nativescript.org/api-reference/classes/_ui_page_.page.html
17 | */
18 | let page = args.object;
19 |
20 | /*
21 | A page’s bindingContext is an object that should be used to perform
22 | data binding between XML markup and TypeScript code. Properties
23 | on the bindingContext can be accessed using the {{ }} syntax in XML.
24 | In this example, the {{ message }} and {{ onTap }} bindings are resolved
25 | against the object returned by createViewModel().
26 |
27 | You can learn more about data binding in NativeScript at
28 | https://docs.nativescript.org/core-concepts/data-binding.
29 | */
30 | page.bindingContext = new HelloWorldModel();
31 | }
--------------------------------------------------------------------------------
/demo-webpack/app/main-page.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
12 |
13 |
14 |
15 |
16 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/demo-webpack/app/main-view-model.ts:
--------------------------------------------------------------------------------
1 | import {Observable} from 'data/observable';
2 |
3 | export class HelloWorldModel extends Observable {
4 |
5 | private _counter: number;
6 | private _message: string;
7 | public items = [{ "name": "Afghanistan", "code": "AF" }, { "name": "Albania", "code": "AL" }, { "name": "United Kingdom", "code": "GB" }, { "name": "Tunisia", "code": "TN" }, { "name": "Tanzania, United Republic of", "code": "TZ" }];
8 |
9 | constructor() {
10 | super();
11 |
12 | // Initialize default values.
13 | this._counter = 42;
14 | this.updateMessage();
15 | }
16 |
17 | get message(): string {
18 | return this._message;
19 | }
20 |
21 | set message(value: string) {
22 | if (this._message !== value) {
23 | this._message = value;
24 | this.notifyPropertyChange('message', value)
25 | }
26 | }
27 |
28 | public onTap() {
29 | this._counter--;
30 | this.updateMessage();
31 | }
32 |
33 | private updateMessage() {
34 | if (this._counter <= 0) {
35 | this.message = 'Hoorraaay! You unlocked the NativeScript clicker achievement!';
36 | } else {
37 | this.message = `${this._counter} taps left`;
38 | }
39 | }
40 | }
--------------------------------------------------------------------------------
/demo-webpack/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "android": {
3 | "v8Flags": "--expose_gc"
4 | },
5 | "main": "app.js",
6 | "name": "tns-template-hello-world-ts",
7 | "version": "3.3.0"
8 | }
--------------------------------------------------------------------------------
/demo-webpack/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "NativeScript Application",
3 | "license": "SEE LICENSE IN ",
4 | "readme": "NativeScript Application",
5 | "repository": "",
6 | "nativescript": {
7 | "id": "org.nativescript.demowebpack",
8 | "tns-ios": {
9 | "version": "3.3.0"
10 | },
11 | "tns-android": {
12 | "version": "3.3.1"
13 | }
14 | },
15 | "dependencies": {
16 | "nativescript-filter-select": "*",
17 | "nativescript-theme-core": "~1.0.2",
18 | "tns-core-modules": "~3.3.0"
19 | },
20 | "devDependencies": {
21 | "awesome-typescript-loader": "~3.1.3",
22 | "babel-traverse": "6.26.0",
23 | "babel-types": "6.26.0",
24 | "babylon": "6.18.0",
25 | "copy-webpack-plugin": "~4.0.1",
26 | "extract-text-webpack-plugin": "~3.0.0",
27 | "lazy": "1.0.11",
28 | "nativescript-css-loader": "~0.26.0",
29 | "nativescript-dev-typescript": "~0.5.0",
30 | "nativescript-dev-webpack": "^0.8.0",
31 | "nativescript-worker-loader": "~0.8.1",
32 | "raw-loader": "~0.5.1",
33 | "resolve-url-loader": "~2.1.0",
34 | "typescript": "~2.4.2",
35 | "webpack": "~3.2.0",
36 | "webpack-bundle-analyzer": "^2.8.2",
37 | "webpack-sources": "~1.0.1"
38 | },
39 | "scripts": {
40 | "ns-bundle": "ns-bundle",
41 | "publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
42 | "generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install",
43 | "start-android-bundle": "npm run ns-bundle --android --run-app",
44 | "start-ios-bundle": "npm run ns-bundle --ios --run-app",
45 | "build-android-bundle": "npm run ns-bundle --android --build-app",
46 | "build-ios-bundle": "npm run ns-bundle --ios --build-app"
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/demo-webpack/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 | ],
13 | "baseUrl": ".",
14 | "paths": {
15 | "*": [
16 | "./node_modules/tns-core-modules/*",
17 | "./node_modules/*"
18 | ]
19 | }
20 | },
21 | "exclude": [
22 | "node_modules",
23 | "platforms",
24 | "**/*.aot.ts"
25 | ]
26 | }
--------------------------------------------------------------------------------
/demo/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/.DS_Store
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
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 = "com.codeobia.filterselectdemo"
12 | }
13 | aaptOptions {
14 | additionalParameters "--no-version-vectors"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/App_Resources/Android/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/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 |
47 |
48 |
--------------------------------------------------------------------------------
/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 | @import 'nativescript-filter-select/styles.css';
--------------------------------------------------------------------------------
/demo/app/app.ts:
--------------------------------------------------------------------------------
1 | import * as application from 'application';
2 | application.getResources();
3 | var resources = [];
4 | resources['flags'] = function (value) {
5 | return 'http://flags.fmcdn.net/data/flags/h80/' + value.toLocaleLowerCase() + '.png';
6 | };
7 |
8 | import {TNSFontIcon, fonticon} from 'nativescript-fonticon';
9 |
10 | TNSFontIcon.debug = false;
11 | TNSFontIcon.paths = {
12 | 'fa': 'font-awesome.css',
13 | 'ion': 'ionicons.css'
14 | };
15 | TNSFontIcon.loadCss();
16 |
17 | resources['fonticon']=fonticon;
18 |
19 | application.setResources(resources);
20 | var imageCache = require("nativescript-web-image-cache");
21 | if(application.android)
22 | application.on(application.launchEvent, function (args: application.ApplicationEventData) {
23 | try {
24 | imageCache.initialize();
25 | } catch (error) {
26 | console.error('error', error)
27 | }
28 | });
29 |
30 |
31 |
32 | application.start({ moduleName: "main-page" });
33 |
--------------------------------------------------------------------------------
/demo/app/countries.json:
--------------------------------------------------------------------------------
1 | [
2 | {"name": "Afghanistan", "code": "AF"},
3 | {"name": "Åland Islands", "code": "AX"},
4 | {"name": "Albania", "code": "AL"},
5 | {"name": "Algeria", "code": "DZ"},
6 | {"name": "American Samoa", "code": "AS"},
7 | {"name": "AndorrA", "code": "AD"},
8 | {"name": "Angola", "code": "AO"},
9 | {"name": "Anguilla", "code": "AI"},
10 | {"name": "Antarctica", "code": "AQ"},
11 | {"name": "Antigua and Barbuda", "code": "AG"},
12 | {"name": "Argentina", "code": "AR"},
13 | {"name": "Armenia", "code": "AM"},
14 | {"name": "Aruba", "code": "AW"},
15 | {"name": "Australia", "code": "AU"},
16 | {"name": "Austria", "code": "AT"},
17 | {"name": "Azerbaijan", "code": "AZ"},
18 | {"name": "Bahamas", "code": "BS"},
19 | {"name": "Bahrain", "code": "BH"},
20 | {"name": "Bangladesh", "code": "BD"},
21 | {"name": "Barbados", "code": "BB"},
22 | {"name": "Belarus", "code": "BY"},
23 | {"name": "Belgium", "code": "BE"},
24 | {"name": "Belize", "code": "BZ"},
25 | {"name": "Benin", "code": "BJ"},
26 | {"name": "Bermuda", "code": "BM"},
27 | {"name": "Bhutan", "code": "BT"},
28 | {"name": "Bolivia", "code": "BO"},
29 | {"name": "Bosnia and Herzegovina", "code": "BA"},
30 | {"name": "Botswana", "code": "BW"},
31 | {"name": "Bouvet Island", "code": "BV"},
32 | {"name": "Brazil", "code": "BR"},
33 | {"name": "British Indian Ocean Territory", "code": "IO"},
34 | {"name": "Brunei Darussalam", "code": "BN"},
35 | {"name": "Bulgaria", "code": "BG"},
36 | {"name": "Burkina Faso", "code": "BF"},
37 | {"name": "Burundi", "code": "BI"},
38 | {"name": "Cambodia", "code": "KH"},
39 | {"name": "Cameroon", "code": "CM"},
40 | {"name": "Canada", "code": "CA"},
41 | {"name": "Cape Verde", "code": "CV"},
42 | {"name": "Cayman Islands", "code": "KY"},
43 | {"name": "Central African Republic", "code": "CF"},
44 | {"name": "Chad", "code": "TD"},
45 | {"name": "Chile", "code": "CL"},
46 | {"name": "China", "code": "CN"},
47 | {"name": "Christmas Island", "code": "CX"},
48 | {"name": "Cocos (Keeling) Islands", "code": "CC"},
49 | {"name": "Colombia", "code": "CO"},
50 | {"name": "Comoros", "code": "KM"},
51 | {"name": "Congo", "code": "CG"},
52 | {"name": "Congo, The Democratic Republic of the", "code": "CD"},
53 | {"name": "Cook Islands", "code": "CK"},
54 | {"name": "Costa Rica", "code": "CR"},
55 | {"name": "Cote D\"Ivoire", "code": "CI"},
56 | {"name": "Croatia", "code": "HR"},
57 | {"name": "Cuba", "code": "CU"},
58 | {"name": "Cyprus", "code": "CY"},
59 | {"name": "Czech Republic", "code": "CZ"},
60 | {"name": "Denmark", "code": "DK"},
61 | {"name": "Djibouti", "code": "DJ"},
62 | {"name": "Dominica", "code": "DM"},
63 | {"name": "Dominican Republic", "code": "DO"},
64 | {"name": "Ecuador", "code": "EC"},
65 | {"name": "Egypt", "code": "EG"},
66 | {"name": "El Salvador", "code": "SV"},
67 | {"name": "Equatorial Guinea", "code": "GQ"},
68 | {"name": "Eritrea", "code": "ER"},
69 | {"name": "Estonia", "code": "EE"},
70 | {"name": "Ethiopia", "code": "ET"},
71 | {"name": "Falkland Islands (Malvinas)", "code": "FK"},
72 | {"name": "Faroe Islands", "code": "FO"},
73 | {"name": "Fiji", "code": "FJ"},
74 | {"name": "Finland", "code": "FI"},
75 | {"name": "France", "code": "FR"},
76 | {"name": "French Guiana", "code": "GF"},
77 | {"name": "French Polynesia", "code": "PF"},
78 | {"name": "French Southern Territories", "code": "TF"},
79 | {"name": "Gabon", "code": "GA"},
80 | {"name": "Gambia", "code": "GM"},
81 | {"name": "Georgia", "code": "GE"},
82 | {"name": "Germany", "code": "DE"},
83 | {"name": "Ghana", "code": "GH"},
84 | {"name": "Gibraltar", "code": "GI"},
85 | {"name": "Greece", "code": "GR"},
86 | {"name": "Greenland", "code": "GL"},
87 | {"name": "Grenada", "code": "GD"},
88 | {"name": "Guadeloupe", "code": "GP"},
89 | {"name": "Guam", "code": "GU"},
90 | {"name": "Guatemala", "code": "GT"},
91 | {"name": "Guernsey", "code": "GG"},
92 | {"name": "Guinea", "code": "GN"},
93 | {"name": "Guinea-Bissau", "code": "GW"},
94 | {"name": "Guyana", "code": "GY"},
95 | {"name": "Haiti", "code": "HT"},
96 | {"name": "Heard Island and Mcdonald Islands", "code": "HM"},
97 | {"name": "Holy See (Vatican City State)", "code": "VA"},
98 | {"name": "Honduras", "code": "HN"},
99 | {"name": "Hong Kong", "code": "HK"},
100 | {"name": "Hungary", "code": "HU"},
101 | {"name": "Iceland", "code": "IS"},
102 | {"name": "India", "code": "IN"},
103 | {"name": "Indonesia", "code": "ID"},
104 | {"name": "Iran, Islamic Republic Of", "code": "IR"},
105 | {"name": "Iraq", "code": "IQ"},
106 | {"name": "Ireland", "code": "IE"},
107 | {"name": "Isle of Man", "code": "IM"},
108 | {"name": "Israel", "code": "IL"},
109 | {"name": "Italy", "code": "IT"},
110 | {"name": "Jamaica", "code": "JM"},
111 | {"name": "Japan", "code": "JP"},
112 | {"name": "Jersey", "code": "JE"},
113 | {"name": "Jordan", "code": "JO"},
114 | {"name": "Kazakhstan", "code": "KZ"},
115 | {"name": "Kenya", "code": "KE"},
116 | {"name": "Kiribati", "code": "KI"},
117 | {"name": "Korea, Democratic People\"S Republic of", "code": "KP"},
118 | {"name": "Korea, Republic of", "code": "KR"},
119 | {"name": "Kuwait", "code": "KW"},
120 | {"name": "Kyrgyzstan", "code": "KG"},
121 | {"name": "Lao People\"S Democratic Republic", "code": "LA"},
122 | {"name": "Latvia", "code": "LV"},
123 | {"name": "Lebanon", "code": "LB"},
124 | {"name": "Lesotho", "code": "LS"},
125 | {"name": "Liberia", "code": "LR"},
126 | {"name": "Libyan Arab Jamahiriya", "code": "LY"},
127 | {"name": "Liechtenstein", "code": "LI"},
128 | {"name": "Lithuania", "code": "LT"},
129 | {"name": "Luxembourg", "code": "LU"},
130 | {"name": "Macao", "code": "MO"},
131 | {"name": "Macedonia, The Former Yugoslav Republic of", "code": "MK"},
132 | {"name": "Madagascar", "code": "MG"},
133 | {"name": "Malawi", "code": "MW"},
134 | {"name": "Malaysia", "code": "MY"},
135 | {"name": "Maldives", "code": "MV"},
136 | {"name": "Mali", "code": "ML"},
137 | {"name": "Malta", "code": "MT"},
138 | {"name": "Marshall Islands", "code": "MH"},
139 | {"name": "Martinique", "code": "MQ"},
140 | {"name": "Mauritania", "code": "MR"},
141 | {"name": "Mauritius", "code": "MU"},
142 | {"name": "Mayotte", "code": "YT"},
143 | {"name": "Mexico", "code": "MX"},
144 | {"name": "Micronesia, Federated States of", "code": "FM"},
145 | {"name": "Moldova, Republic of", "code": "MD"},
146 | {"name": "Monaco", "code": "MC"},
147 | {"name": "Mongolia", "code": "MN"},
148 | {"name": "Montserrat", "code": "MS"},
149 | {"name": "Morocco", "code": "MA"},
150 | {"name": "Mozambique", "code": "MZ"},
151 | {"name": "Myanmar", "code": "MM"},
152 | {"name": "Namibia", "code": "NA"},
153 | {"name": "Nauru", "code": "NR"},
154 | {"name": "Nepal", "code": "NP"},
155 | {"name": "Netherlands", "code": "NL"},
156 | {"name": "Netherlands Antilles", "code": "AN"},
157 | {"name": "New Caledonia", "code": "NC"},
158 | {"name": "New Zealand", "code": "NZ"},
159 | {"name": "Nicaragua", "code": "NI"},
160 | {"name": "Niger", "code": "NE"},
161 | {"name": "Nigeria", "code": "NG"},
162 | {"name": "Niue", "code": "NU"},
163 | {"name": "Norfolk Island", "code": "NF"},
164 | {"name": "Northern Mariana Islands", "code": "MP"},
165 | {"name": "Norway", "code": "NO"},
166 | {"name": "Oman", "code": "OM"},
167 | {"name": "Pakistan", "code": "PK"},
168 | {"name": "Palau", "code": "PW"},
169 | {"name": "Palestinian Territory, Occupied", "code": "PS"},
170 | {"name": "Panama", "code": "PA"},
171 | {"name": "Papua New Guinea", "code": "PG"},
172 | {"name": "Paraguay", "code": "PY"},
173 | {"name": "Peru", "code": "PE"},
174 | {"name": "Philippines", "code": "PH"},
175 | {"name": "Pitcairn", "code": "PN"},
176 | {"name": "Poland", "code": "PL"},
177 | {"name": "Portugal", "code": "PT"},
178 | {"name": "Puerto Rico", "code": "PR"},
179 | {"name": "Qatar", "code": "QA"},
180 | {"name": "Reunion", "code": "RE"},
181 | {"name": "Romania", "code": "RO"},
182 | {"name": "Russian Federation", "code": "RU"},
183 | {"name": "RWANDA", "code": "RW"},
184 | {"name": "Saint Helena", "code": "SH"},
185 | {"name": "Saint Kitts and Nevis", "code": "KN"},
186 | {"name": "Saint Lucia", "code": "LC"},
187 | {"name": "Saint Pierre and Miquelon", "code": "PM"},
188 | {"name": "Saint Vincent and the Grenadines", "code": "VC"},
189 | {"name": "Samoa", "code": "WS"},
190 | {"name": "San Marino", "code": "SM"},
191 | {"name": "Sao Tome and Principe", "code": "ST"},
192 | {"name": "Saudi Arabia", "code": "SA"},
193 | {"name": "Senegal", "code": "SN"},
194 | {"name": "Serbia and Montenegro", "code": "CS"},
195 | {"name": "Seychelles", "code": "SC"},
196 | {"name": "Sierra Leone", "code": "SL"},
197 | {"name": "Singapore", "code": "SG"},
198 | {"name": "Slovakia", "code": "SK"},
199 | {"name": "Slovenia", "code": "SI"},
200 | {"name": "Solomon Islands", "code": "SB"},
201 | {"name": "Somalia", "code": "SO"},
202 | {"name": "South Africa", "code": "ZA"},
203 | {"name": "South Georgia and the South Sandwich Islands", "code": "GS"},
204 | {"name": "Spain", "code": "ES"},
205 | {"name": "Sri Lanka", "code": "LK"},
206 | {"name": "Sudan", "code": "SD"},
207 | {"name": "Suriname", "code": "SR"},
208 | {"name": "Svalbard and Jan Mayen", "code": "SJ"},
209 | {"name": "Swaziland", "code": "SZ"},
210 | {"name": "Sweden", "code": "SE"},
211 | {"name": "Switzerland", "code": "CH"},
212 | {"name": "Syrian Arab Republic", "code": "SY"},
213 | {"name": "Taiwan, Province of China", "code": "TW"},
214 | {"name": "Tajikistan", "code": "TJ"},
215 | {"name": "Tanzania, United Republic of", "code": "TZ"},
216 | {"name": "Thailand", "code": "TH"},
217 | {"name": "Timor-Leste", "code": "TL"},
218 | {"name": "Togo", "code": "TG"},
219 | {"name": "Tokelau", "code": "TK"},
220 | {"name": "Tonga", "code": "TO"},
221 | {"name": "Trinidad and Tobago", "code": "TT"},
222 | {"name": "Tunisia", "code": "TN"},
223 | {"name": "Turkey", "code": "TR"},
224 | {"name": "Turkmenistan", "code": "TM"},
225 | {"name": "Turks and Caicos Islands", "code": "TC"},
226 | {"name": "Tuvalu", "code": "TV"},
227 | {"name": "Uganda", "code": "UG"},
228 | {"name": "Ukraine", "code": "UA"},
229 | {"name": "United Arab Emirates", "code": "AE"},
230 | {"name": "United Kingdom", "code": "GB"},
231 | {"name": "United States", "code": "US"},
232 | {"name": "United States Minor Outlying Islands", "code": "UM"},
233 | {"name": "Uruguay", "code": "UY"},
234 | {"name": "Uzbekistan", "code": "UZ"},
235 | {"name": "Vanuatu", "code": "VU"},
236 | {"name": "Venezuela", "code": "VE"},
237 | {"name": "Viet Nam", "code": "VN"},
238 | {"name": "Virgin Islands, British", "code": "VG"},
239 | {"name": "Virgin Islands, U.S.", "code": "VI"},
240 | {"name": "Wallis and Futuna", "code": "WF"},
241 | {"name": "Western Sahara", "code": "EH"},
242 | {"name": "Yemen", "code": "YE"},
243 | {"name": "Zambia", "code": "ZM"},
244 | {"name": "Zimbabwe", "code": "ZW"}
245 | ]
--------------------------------------------------------------------------------
/demo/app/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/demo/app/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/icon.png
--------------------------------------------------------------------------------
/demo/app/main-page.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/demo/app/main-page.css
--------------------------------------------------------------------------------
/demo/app/main-page.ts:
--------------------------------------------------------------------------------
1 | import * as observable from 'data/observable';
2 | import * as pages from 'ui/page';
3 | import {HelloWorldModel} from './main-view-model';
4 |
5 | export function pageLoaded(args: observable.EventData) {
6 | let page = args.object;
7 | page.bindingContext = new HelloWorldModel();
8 | page.bindingContext.init();
9 | page.bindingContext.page=page;
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/demo/app/main-page.xml:
--------------------------------------------------------------------------------
1 |
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 |
--------------------------------------------------------------------------------
/demo/app/main-view-model.ts:
--------------------------------------------------------------------------------
1 | import { Observable } from 'data/observable';
2 | import { ObservableArray } from 'data/observable-array';
3 | import * as fs from 'file-system';
4 | import { StackLayout } from 'tns-core-modules/ui/layouts/stack-layout';
5 | import frameModule = require("tns-core-modules/ui/frame");
6 | var documents = fs.knownFolders.currentApp();
7 |
8 | class FileReader {
9 | static readJSON(path: string) {
10 | var jsonFile = documents.getFile(path);
11 | return new Promise((resolve, reject) => {
12 | try {
13 | jsonFile.readText().then((content: string) => {
14 | let data = JSON.parse(content);
15 | resolve(data);
16 | });
17 | }
18 | catch (err) {
19 | reject(err);
20 | }
21 | });
22 | }
23 | }
24 | export class HelloWorldModel extends Observable {
25 | public page: StackLayout;
26 | private _countries: any[] = [];
27 | public remote_countries: ObservableArray = new ObservableArray([]);
28 | public get countries(): any[] {
29 | return this._countries;
30 | }
31 |
32 | public set countries(value: any[]) {
33 | this._countries = value;
34 | }
35 |
36 | public selected = [{ "name": "Afghanistan", "code": "AF" }, { "name": "Albania", "code": "AL" }, { "name": "United Kingdom", "code": "GB" }, { "name": "Tunisia", "code": "TN" }, { "name": "Tanzania, United Republic of", "code": "TZ" }];
37 |
38 | public item_template = `
39 |
40 |
43 |
44 |
45 |
46 |
47 | `;
48 |
49 | public onSelect(args) {
50 | console.log('selected array is => ' + JSON.stringify(args.selected));
51 | }
52 |
53 | constructor() {
54 | super();
55 | FileReader.readJSON('countries.json').then((data: any) => {
56 | this.countries = data;
57 | this.Refresh('countries');
58 | });
59 | }
60 |
61 | init() {
62 | setTimeout(() => {
63 | FileReader.readJSON('countries.json').then((data: any) => {
64 | data.forEach((item) => {
65 | this.remote_countries.push(item);
66 | });
67 | });
68 | }, 3000)
69 |
70 | }
71 |
72 | public closeModal(args){
73 | console.log('on close selected array is => ' + JSON.stringify(args.selected));
74 | }
75 | public clear() {
76 | let myFilterSelectToClear = this.page.getViewById('myFilterSelectToClear');
77 | myFilterSelectToClear.Clear();
78 | }
79 | public Refresh(key = null) {
80 | var self = this;
81 | this.notify({
82 | object: self,
83 | eventName: Observable.propertyChangeEvent,
84 | propertyName: key,
85 | value: self[key]
86 | });
87 |
88 |
89 | }
90 |
91 | public openmodal(args) {
92 | let myFilterSelect = this.page.getViewById('myFilterSelect');
93 |
94 | myFilterSelect.open();
95 | }
96 | public openpage(args) {
97 | var navigationEntry = {
98 | moduleName: args.object.pageName,
99 | context: this,
100 | animated: true
101 | };
102 |
103 | frameModule.topmost().navigate(navigationEntry);
104 | }
105 |
106 | }
--------------------------------------------------------------------------------
/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 | },
31 | "devDependencies": {
32 | "nativescript-dev-typescript": "^0.3.0"
33 | },
34 | "_id": "tns-template-hello-world-ts@1.6.0",
35 | "_shasum": "a567c2b9a56024818c06596dab9629d155c5b8a8",
36 | "_resolved": "https://registry.npmjs.org/tns-template-hello-world-ts/-/tns-template-hello-world-ts-1.6.0.tgz",
37 | "_from": "tns-template-hello-world-ts@latest",
38 | "scripts": {},
39 | "_npmVersion": "2.14.7",
40 | "_nodeVersion": "4.2.2",
41 | "_npmUser": {
42 | "name": "enchev",
43 | "email": "vladimir.enchev@gmail.com"
44 | },
45 | "dist": {
46 | "shasum": "a567c2b9a56024818c06596dab9629d155c5b8a8",
47 | "tarball": "http://registry.npmjs.org/tns-template-hello-world-ts/-/tns-template-hello-world-ts-1.6.0.tgz"
48 | },
49 | "maintainers": [
50 | {
51 | "name": "enchev",
52 | "email": "vladimir.enchev@gmail.com"
53 | },
54 | {
55 | "name": "erjangavalji",
56 | "email": "erjan.gavalji@gmail.com"
57 | },
58 | {
59 | "name": "fatme",
60 | "email": "hfatme@gmail.com"
61 | },
62 | {
63 | "name": "hdeshev",
64 | "email": "hristo@deshev.com"
65 | },
66 | {
67 | "name": "kerezov",
68 | "email": "d.kerezov@gmail.com"
69 | },
70 | {
71 | "name": "ligaz",
72 | "email": "stefan.dobrev@gmail.com"
73 | },
74 | {
75 | "name": "nsndeck",
76 | "email": "nedyalko.nikolov@telerik.com"
77 | },
78 | {
79 | "name": "rosen-vladimirov",
80 | "email": "rosen.vladimirov.91@gmail.com"
81 | },
82 | {
83 | "name": "sdobrev",
84 | "email": "stefan.dobrev@gmail.com"
85 | },
86 | {
87 | "name": "tailsu",
88 | "email": "tailsu@gmail.com"
89 | },
90 | {
91 | "name": "teobugslayer",
92 | "email": "teobugslayer@gmail.com"
93 | },
94 | {
95 | "name": "valio.stoychev",
96 | "email": "valio.stoychev@gmail.com"
97 | }
98 | ],
99 | "_npmOperationalInternal": {
100 | "host": "packages-5-east.internal.npmjs.com",
101 | "tmp": "tmp/tns-template-hello-world-ts-1.6.0.tgz_1455717516189_0.6427943941671401"
102 | },
103 | "directories": {},
104 | "readme": "ERROR: No README data found!"
105 | }
106 |
--------------------------------------------------------------------------------
/demo/app/pages/label/label-view-model.ts:
--------------------------------------------------------------------------------
1 | import { Observable } from 'data/observable';
2 | import * as fs from 'file-system';
3 | import { Page } from 'ui/page';
4 | var documents = fs.knownFolders.currentApp();
5 |
6 | class FileReader {
7 | static readJSON(path: string) {
8 | var jsonFile = documents.getFile(path);
9 | return new Promise((resolve, reject) => {
10 | try {
11 | jsonFile.readText().then((content: string) => {
12 | let data = JSON.parse(content);
13 | resolve(data);
14 | });
15 | }
16 | catch (err) {
17 | reject(err);
18 | }
19 | });
20 | }
21 | }
22 | export class LabelModel extends Observable {
23 | public count = 0;
24 | private _countries: any[] = [];
25 | public hint = "please select ";
26 |
27 | public get countries(): any[] {
28 | return this._countries;
29 | }
30 |
31 | public set countries(value: any[]) {
32 | this._countries = value;
33 | }
34 | public selected = [{ "name": "Jordan", "code": "JO" }];
35 |
36 | public item_template = `
37 |
38 |
41 |
42 |
43 |
44 |
45 | `;
46 |
47 | public onSelect(args) {
48 | console.log('selected array is => ' + JSON.stringify(args.selected));
49 | }
50 |
51 | constructor() {
52 | super();
53 | FileReader.readJSON('countries.json').then((data: any) => {
54 | this.countries = data;
55 | this.Refresh('countries');
56 | });
57 |
58 |
59 |
60 | }
61 | public init(page: Page) {
62 | let refreshLabel = page.getViewById('refreshLabel');
63 | this.changeText(refreshLabel);
64 | }
65 | public changeText(refreshLabel) {
66 | let self = this;
67 | console.log("please select => " + self.count);
68 | setInterval(function () {
69 | self.hint = "please select => " + self.count
70 | self.count = self.count + 1;
71 | self.Refresh('hint');
72 | console.log(self.hint);
73 | refreshLabel.refresh();
74 | }, 1000);
75 |
76 | }
77 |
78 | public Refresh(key = null) {
79 | var self = this;
80 | this.notify({
81 | object: self,
82 | eventName: Observable.propertyChangeEvent,
83 | propertyName: key,
84 | value: self[key]
85 | });
86 |
87 |
88 | }
89 |
90 |
91 | }
--------------------------------------------------------------------------------
/demo/app/pages/label/label.css:
--------------------------------------------------------------------------------
1 | FilterSelect{
2 | text-align: center;
3 | }
4 |
5 |
--------------------------------------------------------------------------------
/demo/app/pages/label/label.ts:
--------------------------------------------------------------------------------
1 | import * as observable from 'data/observable';
2 | import * as pages from 'ui/page';
3 | import {LabelModel} from './label-view-model';
4 |
5 |
6 | export function pageLoaded(args: observable.EventData) {
7 | let page = args.object;
8 | page.bindingContext = new LabelModel();
9 | page.bindingContext.init(page);
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/demo/app/pages/label/label.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/demo/app/tests/tests.js:
--------------------------------------------------------------------------------
1 | var FilterSelect = require("nativescript-filter-select").FilterSelect;
2 | var filterSelect = new FilterSelect();
3 |
4 | // TODO replace 'functionname' with an acual function name of your plugin class and run with 'npm test '
5 | describe("functionname", function() {
6 | it("exists", function() {
7 | expect(filterSelect.functionname).toBeDefined();
8 | });
9 |
10 | it("returns a promise", function() {
11 | expect(filterSelect.functionname()).toEqual(jasmine.any(Promise));
12 | });
13 | });
--------------------------------------------------------------------------------
/demo/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "requires": true,
3 | "lockfileVersion": 1,
4 | "dependencies": {
5 | "adm-zip": {
6 | "version": "0.4.9",
7 | "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.9.tgz",
8 | "integrity": "sha512-eknaJ3Io/JasGGinVeqY5TsPlQgHbiNlHnK5zdFPRNs9XRggDykKz8zPesneOMEZJxWji7G3CfsUW0Ds9Dw0Bw==",
9 | "dev": true
10 | },
11 | "ansi-regex": {
12 | "version": "2.1.1",
13 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
14 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
15 | "dev": true
16 | },
17 | "ansi-styles": {
18 | "version": "2.2.1",
19 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
20 | "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
21 | "dev": true
22 | },
23 | "babel-code-frame": {
24 | "version": "6.26.0",
25 | "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz",
26 | "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=",
27 | "dev": true,
28 | "requires": {
29 | "chalk": "1.1.3",
30 | "esutils": "2.0.2",
31 | "js-tokens": "3.0.2"
32 | }
33 | },
34 | "babel-messages": {
35 | "version": "6.23.0",
36 | "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz",
37 | "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=",
38 | "dev": true,
39 | "requires": {
40 | "babel-runtime": "6.26.0"
41 | }
42 | },
43 | "babel-runtime": {
44 | "version": "6.26.0",
45 | "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
46 | "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
47 | "dev": true,
48 | "requires": {
49 | "core-js": "2.5.5",
50 | "regenerator-runtime": "0.11.1"
51 | }
52 | },
53 | "babel-traverse": {
54 | "version": "6.24.1",
55 | "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.24.1.tgz",
56 | "integrity": "sha1-qzZnP9NW+aCUhlnnszjV/q2zFpU=",
57 | "dev": true,
58 | "requires": {
59 | "babel-code-frame": "6.26.0",
60 | "babel-messages": "6.23.0",
61 | "babel-runtime": "6.26.0",
62 | "babel-types": "6.24.1",
63 | "babylon": "6.17.1",
64 | "debug": "2.6.9",
65 | "globals": "9.18.0",
66 | "invariant": "2.2.4",
67 | "lodash": "4.17.10"
68 | }
69 | },
70 | "babel-types": {
71 | "version": "6.24.1",
72 | "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz",
73 | "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=",
74 | "dev": true,
75 | "requires": {
76 | "babel-runtime": "6.26.0",
77 | "esutils": "2.0.2",
78 | "lodash": "4.17.10",
79 | "to-fast-properties": "1.0.3"
80 | }
81 | },
82 | "babylon": {
83 | "version": "6.17.1",
84 | "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.17.1.tgz",
85 | "integrity": "sha1-F/FP3fNhtpWYH+Z5OF5PHAHr2G8=",
86 | "dev": true
87 | },
88 | "balanced-match": {
89 | "version": "1.0.0",
90 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
91 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
92 | "dev": true
93 | },
94 | "brace-expansion": {
95 | "version": "1.1.11",
96 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
97 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
98 | "dev": true,
99 | "requires": {
100 | "balanced-match": "1.0.0",
101 | "concat-map": "0.0.1"
102 | }
103 | },
104 | "chalk": {
105 | "version": "1.1.3",
106 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
107 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
108 | "dev": true,
109 | "requires": {
110 | "ansi-styles": "2.2.1",
111 | "escape-string-regexp": "1.0.5",
112 | "has-ansi": "2.0.0",
113 | "strip-ansi": "3.0.1",
114 | "supports-color": "2.0.0"
115 | }
116 | },
117 | "concat-map": {
118 | "version": "0.0.1",
119 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
120 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
121 | "dev": true
122 | },
123 | "core-js": {
124 | "version": "2.5.5",
125 | "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.5.tgz",
126 | "integrity": "sha1-sU3ek2xkDAV5prUMq8wTLdYSfjs=",
127 | "dev": true
128 | },
129 | "debug": {
130 | "version": "2.6.9",
131 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
132 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
133 | "dev": true,
134 | "requires": {
135 | "ms": "2.0.0"
136 | }
137 | },
138 | "escape-string-regexp": {
139 | "version": "1.0.5",
140 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
141 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
142 | "dev": true
143 | },
144 | "esutils": {
145 | "version": "2.0.2",
146 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz",
147 | "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=",
148 | "dev": true
149 | },
150 | "glob": {
151 | "version": "6.0.4",
152 | "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz",
153 | "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=",
154 | "dev": true,
155 | "requires": {
156 | "inflight": "1.0.6",
157 | "inherits": "2.0.3",
158 | "minimatch": "3.0.4",
159 | "once": "1.4.0",
160 | "path-is-absolute": "1.0.1"
161 | }
162 | },
163 | "globals": {
164 | "version": "9.18.0",
165 | "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz",
166 | "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==",
167 | "dev": true
168 | },
169 | "has-ansi": {
170 | "version": "2.0.0",
171 | "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
172 | "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
173 | "dev": true,
174 | "requires": {
175 | "ansi-regex": "2.1.1"
176 | }
177 | },
178 | "inflight": {
179 | "version": "1.0.6",
180 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
181 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
182 | "dev": true,
183 | "requires": {
184 | "once": "1.4.0",
185 | "wrappy": "1.0.2"
186 | }
187 | },
188 | "inherits": {
189 | "version": "2.0.3",
190 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
191 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
192 | "dev": true
193 | },
194 | "invariant": {
195 | "version": "2.2.4",
196 | "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
197 | "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
198 | "dev": true,
199 | "requires": {
200 | "loose-envify": "1.3.1"
201 | }
202 | },
203 | "js-tokens": {
204 | "version": "3.0.2",
205 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
206 | "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
207 | "dev": true
208 | },
209 | "lazy": {
210 | "version": "1.0.11",
211 | "resolved": "https://registry.npmjs.org/lazy/-/lazy-1.0.11.tgz",
212 | "integrity": "sha1-2qBoIGKCVCwIgojpdcKXwa53tpA=",
213 | "dev": true
214 | },
215 | "lodash": {
216 | "version": "4.17.10",
217 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz",
218 | "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==",
219 | "dev": true
220 | },
221 | "loose-envify": {
222 | "version": "1.3.1",
223 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz",
224 | "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=",
225 | "dev": true,
226 | "requires": {
227 | "js-tokens": "3.0.2"
228 | }
229 | },
230 | "minimatch": {
231 | "version": "3.0.4",
232 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
233 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
234 | "dev": true,
235 | "requires": {
236 | "brace-expansion": "1.1.11"
237 | }
238 | },
239 | "minimist": {
240 | "version": "0.0.8",
241 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
242 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
243 | "dev": true
244 | },
245 | "mkdirp": {
246 | "version": "0.5.1",
247 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
248 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
249 | "dev": true,
250 | "requires": {
251 | "minimist": "0.0.8"
252 | }
253 | },
254 | "ms": {
255 | "version": "2.0.0",
256 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
257 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
258 | "dev": true
259 | },
260 | "nativescript-dev-android-snapshot": {
261 | "version": "0.0.11",
262 | "resolved": "https://registry.npmjs.org/nativescript-dev-android-snapshot/-/nativescript-dev-android-snapshot-0.0.11.tgz",
263 | "integrity": "sha512-0qOj63c+Wu/JfZ7Cbkf6QiqQtHV8wxlymsBb3EkCZEXnuqm9EjBp0+otW1WpYKDKWaZ9+zSp1qiofkfJbBdXkw==",
264 | "dev": true,
265 | "requires": {
266 | "adm-zip": "0.4.9",
267 | "nativescript-hook": "0.2.4",
268 | "semver": "5.5.0",
269 | "shelljs": "0.6.1"
270 | }
271 | },
272 | "nativescript-dev-typescript": {
273 | "version": "0.4.6",
274 | "resolved": "https://registry.npmjs.org/nativescript-dev-typescript/-/nativescript-dev-typescript-0.4.6.tgz",
275 | "integrity": "sha1-o3nlfyIG/rpLUy0hUHdXGCDTj6A=",
276 | "dev": true,
277 | "requires": {
278 | "nativescript-hook": "0.2.4"
279 | }
280 | },
281 | "nativescript-filter-select": {
282 | "version": "1.2.6",
283 | "resolved": "https://registry.npmjs.org/nativescript-filter-select/-/nativescript-filter-select-1.2.6.tgz",
284 | "integrity": "sha1-g/swTcw1NlFNTek4Dt3pm7kUXnA="
285 | },
286 | "nativescript-fonticon": {
287 | "version": "1.1.1",
288 | "resolved": "https://registry.npmjs.org/nativescript-fonticon/-/nativescript-fonticon-1.1.1.tgz",
289 | "integrity": "sha1-H/mB4V27Q4Lv7uJ4c5IXuTHBHcw="
290 | },
291 | "nativescript-hook": {
292 | "version": "0.2.4",
293 | "resolved": "https://registry.npmjs.org/nativescript-hook/-/nativescript-hook-0.2.4.tgz",
294 | "integrity": "sha1-5ZHh2a1BWotPMwnBVzFXevRKPdQ=",
295 | "dev": true,
296 | "requires": {
297 | "glob": "6.0.4",
298 | "mkdirp": "0.5.1"
299 | }
300 | },
301 | "nativescript-theme-core": {
302 | "version": "1.0.4",
303 | "resolved": "https://registry.npmjs.org/nativescript-theme-core/-/nativescript-theme-core-1.0.4.tgz",
304 | "integrity": "sha1-zyiAx/vy/l9D4iNdMJdQeQgD7+E="
305 | },
306 | "nativescript-unit-test-runner": {
307 | "version": "0.3.4",
308 | "resolved": "https://registry.npmjs.org/nativescript-unit-test-runner/-/nativescript-unit-test-runner-0.3.4.tgz",
309 | "integrity": "sha1-9t5SPUcyNlWcoOQgLRLVIXmNaBE="
310 | },
311 | "nativescript-web-image-cache": {
312 | "version": "4.2.4",
313 | "resolved": "https://registry.npmjs.org/nativescript-web-image-cache/-/nativescript-web-image-cache-4.2.4.tgz",
314 | "integrity": "sha512-zIFzI09vBuQcODCdxuDgtBWmtTxNSxm06win+IU7t2zblk2ItdGawDbwd0ZLX9RN+moUf/ytTj+MMoBgowdt6Q=="
315 | },
316 | "once": {
317 | "version": "1.4.0",
318 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
319 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
320 | "dev": true,
321 | "requires": {
322 | "wrappy": "1.0.2"
323 | }
324 | },
325 | "path-is-absolute": {
326 | "version": "1.0.1",
327 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
328 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
329 | "dev": true
330 | },
331 | "regenerator-runtime": {
332 | "version": "0.11.1",
333 | "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
334 | "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==",
335 | "dev": true
336 | },
337 | "semver": {
338 | "version": "5.5.0",
339 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz",
340 | "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==",
341 | "dev": true
342 | },
343 | "shelljs": {
344 | "version": "0.6.1",
345 | "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.6.1.tgz",
346 | "integrity": "sha1-7GIRvtGSBEIIj+D3Cyg3Iy7SyKg=",
347 | "dev": true
348 | },
349 | "strip-ansi": {
350 | "version": "3.0.1",
351 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
352 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
353 | "dev": true,
354 | "requires": {
355 | "ansi-regex": "2.1.1"
356 | }
357 | },
358 | "supports-color": {
359 | "version": "2.0.0",
360 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
361 | "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
362 | "dev": true
363 | },
364 | "tns-core-modules": {
365 | "version": "4.0.0",
366 | "resolved": "https://registry.npmjs.org/tns-core-modules/-/tns-core-modules-4.0.0.tgz",
367 | "integrity": "sha1-lBcSJOrIKqW1hzp4qjCa7NPmNGo=",
368 | "requires": {
369 | "tns-core-modules-widgets": "4.0.0"
370 | }
371 | },
372 | "tns-core-modules-widgets": {
373 | "version": "4.0.0",
374 | "resolved": "https://registry.npmjs.org/tns-core-modules-widgets/-/tns-core-modules-widgets-4.0.0.tgz",
375 | "integrity": "sha512-8moobfg3GtdYkiH3UZyqTQVF7+zxuAAv29viXDR73x7KmQ6EMXuoiN/isytDr9C2m/aE2iPlzpKS4Dm8OkWBIA=="
376 | },
377 | "to-fast-properties": {
378 | "version": "1.0.3",
379 | "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz",
380 | "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=",
381 | "dev": true
382 | },
383 | "typescript": {
384 | "version": "2.3.2",
385 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.3.2.tgz",
386 | "integrity": "sha1-8PBF4Zb2mnLwayX9O9OdAcPOmYQ=",
387 | "dev": true
388 | },
389 | "wrappy": {
390 | "version": "1.0.2",
391 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
392 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
393 | "dev": true
394 | }
395 | }
396 | }
397 |
--------------------------------------------------------------------------------
/demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "nativescript": {
3 | "id": "com.codeobia.filterselectdemo",
4 | "tns-ios": {
5 | "version": "4.0.1"
6 | },
7 | "tns-android": {
8 | "version": "4.0.1"
9 | }
10 | },
11 | "dependencies": {
12 | "nativescript-filter-select": "*",
13 | "nativescript-fonticon": "^1.1.1",
14 | "nativescript-theme-core": "^1.0.4",
15 | "nativescript-unit-test-runner": "^0.3.4",
16 | "nativescript-web-image-cache": "^4.2.2",
17 | "tns-core-modules": "^4.0.0"
18 | },
19 | "devDependencies": {
20 | "babel-traverse": "6.24.1",
21 | "babel-types": "6.24.1",
22 | "babylon": "6.17.1",
23 | "lazy": "1.0.11",
24 | "nativescript-dev-android-snapshot": "^0.*.*",
25 | "nativescript-dev-typescript": "^0.4.5",
26 | "typescript": "2.3.2"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/demo/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es5",
5 | "experimentalDecorators": true,
6 | "emitDecoratorMetadata": true,
7 | "noEmitHelpers": true,
8 | "noEmitOnError": false,
9 | "lib": [
10 | "es6",
11 | "dom"
12 | ],
13 | "baseUrl": ".",
14 | "paths": {
15 | "*": [
16 | "./node_modules/tns-core-modules/*",
17 | "./node_modules/*"
18 | ]
19 | }
20 | },
21 | "exclude": [
22 | "node_modules",
23 | "platforms",
24 | "**/*.aot.ts"
25 | ]
26 | }
--------------------------------------------------------------------------------
/filter-select.android.d.ts:
--------------------------------------------------------------------------------
1 | import { Common } from './filter-select.common';
2 | export declare class FilterSelect extends Common {
3 | }
4 |
--------------------------------------------------------------------------------
/filter-select.android.ts:
--------------------------------------------------------------------------------
1 | import { Common } from './filter-select.common';
2 |
3 | export class FilterSelect extends Common {
4 |
5 | }
--------------------------------------------------------------------------------
/filter-select.common.d.ts:
--------------------------------------------------------------------------------
1 | import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout";
2 | import { FlexboxLayout } from "tns-core-modules/ui/layouts/flexbox-layout";
3 | import { ObservableArray } from "tns-core-modules/data/observable-array";
4 | import { SearchBar } from "tns-core-modules/ui/search-bar";
5 | export declare class Common extends GridLayout {
6 | searchHint: string;
7 | searchBar: SearchBar;
8 | autofocus: any;
9 | xbtn: any;
10 | private _items;
11 | selected: Array;
12 | disabled: any;
13 | private _selected_items;
14 | private _selected_layout;
15 | private _primary_key;
16 | private _gridBase;
17 | private _search_param;
18 | private _item_template;
19 | private _filterd;
20 | private _term;
21 | private _lastTerm;
22 | labelselect: any;
23 | private currentPage;
24 | render: string;
25 | private filterselect;
26 | private _modal_title;
27 | private _hint;
28 | private _selected_flag;
29 | private multiple;
30 | private allowSearch;
31 | doneText: string;
32 | clearText: string;
33 | selectText: string;
34 | closeText: string;
35 | static changeEvent: string;
36 | static closeEvent: string;
37 | selected_flag: string;
38 | search_param: string;
39 | filterd: ObservableArray;
40 | term: string;
41 | item_template: any;
42 | gridBase: any;
43 | selected_layout: any;
44 | private modalPage;
45 | modal_title: string;
46 | hint: string;
47 | private closeCallback;
48 | selected_items: Array;
49 | items: any[];
50 | primary_key: any;
51 | constructor();
52 | private isFunction;
53 | renderTags(): FlexboxLayout;
54 | init(): void;
55 | open(): void;
56 | closeModal(): void;
57 | renderTagsHolder(): GridLayout;
58 | tagsDone(): void;
59 | labelDone(): void;
60 | tagsClear(): void;
61 | refresh(): void;
62 | private doneSelect;
63 | Clear(clear?: boolean): void;
64 | private clearSelect;
65 | private Modal;
66 | onSubmit(): void;
67 | private listnToSearch;
68 | private parseOptions;
69 | }
70 |
--------------------------------------------------------------------------------
/filter-select.ios.d.ts:
--------------------------------------------------------------------------------
1 | import { Common } from './filter-select.common';
2 | export declare class FilterSelect extends Common {
3 | }
4 |
--------------------------------------------------------------------------------
/filter-select.ios.ts:
--------------------------------------------------------------------------------
1 | import {Common} from './filter-select.common';
2 |
3 | export class FilterSelect extends Common {
4 |
5 | }
--------------------------------------------------------------------------------
/index.d.ts:
--------------------------------------------------------------------------------
1 | import { Common } from './filter-select.common';
2 | export declare class FilterSelect extends Common {
3 | // define your typings manually
4 | // or..
5 | // use take the ios or android .d.ts files and copy/paste them here
6 | }
7 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-filter-select",
3 | "version": "1.3.0",
4 | "description": "Your awesome NativeScript plugin for select and filter items for a list.",
5 | "main": "filter-select",
6 | "typings": "index.d.ts",
7 | "nativescript": {
8 | "platforms": {
9 | "android": "4.0.0",
10 | "ios": "4.0.0"
11 | },
12 | "tns-ios": {
13 | "version": "4.0.0"
14 | }
15 | },
16 | "scripts": {
17 | "build": "tsc",
18 | "demo.ios": "npm run preparedemo && cd demo && tns run ios --emulator",
19 | "demo.ios.device": "npm run preparedemo && cd demo && tns run ios",
20 | "demo.android": "npm run preparedemo && cd demo && tns run android --emulator",
21 | "test.ios": "cd demo && tns test ios --emulator",
22 | "test.ios.device": "cd demo && tns test ios",
23 | "test.android": "cd demo && tns test android",
24 | "preparedemo": "npm run build && cd demo && tns plugin remove nativescript-filter-select && tns plugin add .. && tns install",
25 | "setup": "npm i && cd demo && npm i && cd .. && npm run build && cd demo && tns plugin add .. && cd ..",
26 | "postclone": "npm i && node scripts/postclone.js"
27 | },
28 | "repository": {
29 | "type": "git",
30 | "url": "https://github.com/moayadnajd/nativescript-filter-select.git"
31 | },
32 | "keywords": [
33 | "NativeScript",
34 | "JavaScript",
35 | "Android",
36 | "iOS",
37 | "filter",
38 | "select",
39 | "CodeObia",
40 | "tags",
41 | "angular",
42 | "search"
43 | ],
44 | "author": {
45 | "name": "Moayad Al-Najdawi",
46 | "email": "moayad@codeobia.com"
47 | },
48 | "bugs": {
49 | "url": "https://github.com/moayadnajd/nativescript-filter-select/issues"
50 | },
51 | "license": "MIT",
52 | "homepage": "https://github.com/moayadnajd/nativescript-filter-select",
53 | "readmeFilename": "README.md",
54 | "devDependencies": {
55 | "tns-core-modules": "^4.0.0",
56 | "tns-platform-declarations": "^4.0.1",
57 | "typescript": "~2.2.1",
58 | "prompt": "~1.0.0",
59 | "rimraf": "~2.5.0"
60 | },
61 | "dependencies": {}
62 | }
63 |
--------------------------------------------------------------------------------
/screenshots/android-filter-select.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/screenshots/android-filter-select.gif
--------------------------------------------------------------------------------
/screenshots/ios-filter-select.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moayadnajd/nativescript-filter-select/58b75abb7d3f01abe36e785b5db8c7052f614f7c/screenshots/ios-filter-select.gif
--------------------------------------------------------------------------------
/scripts/postclone.js:
--------------------------------------------------------------------------------
1 | var fs = require('fs');
2 | var prompt = require('prompt');
3 | var rimraf = require('rimraf');
4 | var exec = require('child_process').exec;
5 |
6 | var plugin_name,
7 | class_name,
8 | github_username,
9 | seed_plugin_name = "yourplugin",
10 | seed_class_name = "YourPlugin",
11 | seed_demo_property_name = "yourPlugin",
12 | seed_github_username = "YourName",
13 | demo_folder = "demo",
14 | init_git;
15 |
16 | console.log('NativeScript Plugin Seed Configuration');
17 | prompt.start();
18 | askGithubUsername();
19 |
20 | function askGithubUsername() {
21 | prompt.get({
22 | name: 'github_username',
23 | description: 'What is your GitHub username (used for updating package.json)? Example: NathanWalker / EddyVerbruggen'
24 | }, function (err, result) {
25 | if (err) {
26 | return console.log(err);
27 | }
28 | if (!result.github_username) {
29 | return console.log("Dude, the GitHub username is mandatory!");
30 | }
31 | github_username = result.github_username;
32 | askPluginName();
33 | });
34 | }
35 |
36 | function askPluginName() {
37 | prompt.get({
38 | name: 'plugin_name',
39 | description: 'What will be the name of your plugin? Use lowercase characters and dashes only. Example: yourplugin / google-maps / bluetooth'
40 | }, function (err, result) {
41 | if (err) {
42 | return console.log(err);
43 | }
44 | if (!result.plugin_name) {
45 | return console.log("Dude, the plugin name is mandatory!");
46 | }
47 | plugin_name = result.plugin_name;
48 | generateClassName();
49 | });
50 | }
51 |
52 | function generateClassName() {
53 | // the classname becomes 'GoogleMaps' when plugin_name is 'google_maps'
54 | class_name = "";
55 | var plugin_name_parts = plugin_name.split("-");
56 | for (var p in plugin_name_parts) {
57 | var part = plugin_name_parts[p];
58 | class_name += (part[0].toUpperCase() + part.substr(1));
59 | }
60 | console.log('Using ' + class_name + ' as the TypeScript Class name..');
61 | renameFiles();
62 | }
63 |
64 | function renameFiles() {
65 | console.log('Will now rename some files..');
66 | var files = fs.readdirSync(".");
67 | for (var f in files) {
68 | var file = files[f];
69 | if (file.indexOf(seed_plugin_name) === 0) {
70 | var newName = plugin_name + file.substr(file.indexOf("."));
71 | fs.renameSync(file, newName);
72 | }
73 | }
74 |
75 | adjustScripts();
76 | }
77 |
78 | function adjustScripts() {
79 | console.log('Adjusting scripts..');
80 |
81 | // add all files in the root
82 | var files = fs.readdirSync(".");
83 |
84 | // add demo's package.json
85 | files.push(demo_folder + "/package.json");
86 |
87 | // add the demo files
88 | var demoFiles = fs.readdirSync(demo_folder + "/app/");
89 | for (var d in demoFiles) {
90 | var demoFile = demoFiles[d];
91 | files.push(demo_folder + "/app/" + demoFile);
92 | }
93 | // add the tests
94 | files.push(demo_folder + "/app/tests/tests.js");
95 |
96 | // prepare and cache a few Regexp thingies
97 | var regexp_seed_plugin_name = new RegExp(seed_plugin_name, "g");
98 | var regexp_seed_class_name = new RegExp(seed_class_name, "g");
99 | var regexp_seed_demo_property_name = new RegExp(seed_demo_property_name, "g");
100 | var regexp_seed_github_username = new RegExp(seed_github_username, "g");
101 |
102 | for (var f in files) {
103 | var file = files[f];
104 | if (file.indexOf(".") > 0) {
105 | var contents = fs.readFileSync(file, 'utf8');
106 | var result = contents.replace(regexp_seed_plugin_name, plugin_name);
107 | result = result.replace(regexp_seed_class_name, class_name);
108 | result = result.replace(regexp_seed_demo_property_name, class_name[0].toLowerCase() + class_name.substr(1));
109 | result = result.replace(regexp_seed_github_username, github_username);
110 | fs.writeFileSync(file, result);
111 | }
112 | }
113 |
114 | initGit();
115 | }
116 |
117 | function initGit() {
118 | prompt.get({
119 | name: 'init_git',
120 | description: 'Do you want to init a fresh local git project? If you previously \'git clone\'d this repo that would be wise (y/n)',
121 | default: 'y'
122 | }, function (err, result) {
123 | if (err) {
124 | return console.log(err);
125 | }
126 | if (result.init_git && result.init_git.toLowerCase() === 'y') {
127 | rimraf.sync('.git');
128 | exec('git init -q .', function(err, stdout, stderr) {
129 | if (err) {
130 | console.log(err);
131 | } else {
132 | exec("git add '*' '.*'", function(err, stdout, stderr) {
133 | if (err) {
134 | console.log(err);
135 | }
136 | });
137 | }
138 | });
139 | }
140 | console.log("Configuration finished! If you're not happy with the result please clone the seed again and rerun this script.");
141 | console.log("You can now run 'npm run setup' and start cracking!");
142 | });
143 | }
--------------------------------------------------------------------------------
/styles.css:
--------------------------------------------------------------------------------
1 | FilterSelect{
2 | border-style: solid;
3 | padding: 3;
4 | border-width: 1;
5 | border-color: #ccc;
6 | border-radius: 5;
7 | }
8 | .btn-filter-select{
9 | vertical-align: top;
10 | align-content: center;
11 | margin: 0;
12 | padding: 1;
13 | }
14 | .fa {
15 | font-family: FontAwesome, fontawesome-webfont;
16 | }
17 |
18 | .filter-select-tag-delete{
19 | padding: 0;
20 | margin: 0;
21 | background-color: white;
22 | height:20;
23 | width: 20;
24 | text-align: center;
25 | border-color: white;
26 | color:red;
27 | }
28 |
29 |
30 | .filter-select-tag{
31 | margin:5;
32 | margin-left: 8;
33 | border-width: 1;
34 | border-color: #ccc;
35 | padding: 6;
36 | height: auto;
37 | border-radius: 20;
38 | border-color: #ccc;
39 | border-width: 1;
40 | }
41 | .filter-select-tag-label{
42 | horizontal-align: right;
43 | }
44 |
45 |
46 | .filter-select-list label{
47 | padding: 20;
48 | }
49 |
50 | .filter-select-list{
51 | margin: 2;
52 | }
53 | .filter-select-hint{
54 | vertical-align: middle;
55 | text-align: center;
56 | margin-top: 8;
57 | }
58 |
59 | FilterSelect.disabled{
60 | background-color:#ccc;
61 | }
62 |
63 | .item.filter-select-selected{
64 | border-width: 1;
65 | border-color: green;
66 | }
67 |
68 |
69 | .filter-select-label{
70 | height: auto;
71 | padding: 5;
72 | }
73 | .filter-select-label.hint{
74 | color:rgb(82, 82, 82);
75 | }
76 | .filter-select-label.selected{
77 | color:black;
78 | }
79 | .filter-select-icon{
80 | margin-left:10;
81 | width: 10;
82 | horizontal-align:left;
83 | }
84 |
85 | FilterSelect.disabled{
86 | background-color:#ccc;
87 | }
--------------------------------------------------------------------------------
/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 | "lib": [
11 | "es6",
12 | "dom"
13 | ],
14 | "baseUrl": ".",
15 | "paths": {
16 | "*": [
17 | "./node_modules/tns-core-modules/*",
18 | "./node_modules/*"
19 | ]
20 | },
21 | "sourceMap": true,
22 | "pretty": true,
23 | "allowUnreachableCode": false,
24 | "allowUnusedLabels": false,
25 | "noEmitHelpers": true,
26 | "noEmitOnError": false,
27 | "noImplicitAny": false,
28 | "noImplicitReturns": true,
29 | "noImplicitUseStrict": false,
30 | "noFallthroughCasesInSwitch": true,
31 | "typeRoots": [
32 | "./node_modules/@types",
33 | "./node_modules"
34 | ],
35 | "types": [
36 | ]
37 | },
38 | "exclude": [
39 | "demo",
40 | "demo-ng",
41 | "demo-webpack",
42 | "node_modules"
43 | ],
44 | "compileOnSave": false
45 | }
46 |
--------------------------------------------------------------------------------