Skip to content

Commit

Permalink
Merge 86ab751 into b1b2bc0
Browse files Browse the repository at this point in the history
  • Loading branch information
varnastadeus committed Jul 8, 2019
2 parents b1b2bc0 + 86ab751 commit a5e9526
Show file tree
Hide file tree
Showing 277 changed files with 8,020 additions and 14,542 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -2,7 +2,7 @@ dist: trusty
sudo: required
language: node_js
node_js:
- '8'
- '10'
cache:
directories:
- node_modules
Expand All @@ -25,14 +25,13 @@ script:
- yarn run lint
- yarn run test
- npm run-script coveralls
- yarn run integration
- yarn run build:demo
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == false ]; then node_modules/.bin/gh-pages-travis; fi

env:
global:
- DEPLOY_BRANCH="master"
- SOURCE_DIR="dist"
- SOURCE_DIR="dist/demo"
- TARGET_BRANCH="gh-pages"
- SSH_KEY="travis_rsa"
- GIT_NAME="travis"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -126,7 +126,6 @@ map: {
| [clearOnBackspace] | `boolean` | `true` | no | Clear selected values one by one when clicking backspace. Default `true`|
| [compareWith] | `(a: any, b: any) => boolean` | `(a, b) => a === b` | no | A function to compare the option values with the selected values. The first argument is a value from an option. The second is a value from the selection(model). A boolean should be returned. |
| dropdownPosition | `bottom` \| `top` \| `auto` | `auto` | no | Set the dropdown position on open |
| [excludeGroupsFromDefaultSelection] | `boolean` | false | no | Exclude group from default selection when `selectableGroup` is `true`. Default `false`. |
| [groupBy] | `string` \| `Function` | null | no | Allow to group items by key or function expression |
| [groupValue] | `(groupKey: string, cildren: any[]) => Object` | - | no | Function expression to provide group value |
| [selectableGroup] | `boolean` | false | no | Allow to select group when groupBy is used |
Expand All @@ -151,8 +150,8 @@ map: {
| [typeahead] | `Subject` | `-` | no | Custom autocomplete or advanced filter. |
| typeToSearchText | `string` | `Type to search` | no | Set custom text when using Typeahead |
| [virtualScroll] | `boolean` | false | no | Enable virtual scroll for better performance when rendering a lot of data |
| autoCorrect | `string` | `off` | no | Allows control of the `autocorrect` attribute. |
| autoCapitalize | `string` | `off` | no | Allows control of the `autocapitalize` attribute. |
| [inputAttrs] | `{ [key: string]: string }` | `-` | no | Pass custom attributes to underlying `input` element |
| [tabIndex] | `number` | `-` | no | Set tabindex on ng-select |

### Outputs

Expand All @@ -177,6 +176,7 @@ map: {
| open | Opens the select dropdown panel |
| close | Closes the select dropdown panel |
| focus | Focuses the select element |
| blur | Blurs the select element |

### Other
Name | Type | Description |
Expand Down
176 changes: 176 additions & 0 deletions angular.json
@@ -0,0 +1,176 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "src",
"projects": {
"ng-select": {
"projectType": "library",
"root": "src/ng-select",
"sourceRoot": "src/ng-select",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "src/ng-select/tsconfig.lib.json",
"project": "src/ng-select/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/ng-select/test.ts",
"tsConfig": "src/ng-select/tsconfig.spec.json",
"karmaConfig": "src/ng-select/karma.conf.js",
"watch": false,
"codeCoverageExclude": [
"src/ng-select/testing/*",
"src/ng-select/*.ts",
"src/ng-select/lib/console.service.ts",
"src/ng-select/lib/search-helper.ts",
"src/ng-select/lib/ng-templates.directive.ts"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/ng-select/tsconfig.lib.json",
"src/ng-select/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"demo": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss",
"skipTests": true
},
"@schematics/angular:class": {
"skipTests": true
},
"@schematics/angular:directive": {
"skipTests": true
},
"@schematics/angular:guard": {
"skipTests": true
},
"@schematics/angular:module": {
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true
},
"@schematics/angular:service": {
"skipTests": true
}
},
"root": "src/demo",
"sourceRoot": "src/demo",
"prefix": "",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/demo",
"showCircularDependencies": false,
"index": "src/demo/index.html",
"main": "src/demo/main.ts",
"polyfills": "src/demo/polyfills.ts",
"tsConfig": "src/demo/tsconfig.app.json",
"aot": false,
"extractCss": true,
"assets": [
"src/demo/favicon.ico",
"src/demo/assets"
],
"styles": [
"src/demo/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/demo/environments/environment.ts",
"with": "src/demo/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "demo:build"
},
"configurations": {
"production": {
"browserTarget": "demo:build:production"
}
}
}
}
},
"ng-option-highlight": {
"projectType": "library",
"root": "src/ng-option-highlight",
"sourceRoot": "src/ng-option-highlight",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "src/ng-option-highlight/tsconfig.lib.json",
"project": "src/ng-option-highlight/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/ng-option-highlight/test.ts",
"tsConfig": "src/ng-option-highlight/tsconfig.spec.json",
"karmaConfig": "src/ng-option-highlight/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/ng-option-highlight/tsconfig.lib.json",
"src/ng-option-highlight/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "demo"
}
24 changes: 0 additions & 24 deletions demo/app/app.component.html

This file was deleted.

100 changes: 0 additions & 100 deletions demo/app/app.module.ts

This file was deleted.

0 comments on commit a5e9526

Please sign in to comment.