angular-switchery
Advanced tools
Comparing version 0.7.1 to 15.0.4
112
package.json
{ | ||
"name": "angular-switchery", | ||
"version": "0.7.1", | ||
"description": "Angular Switchery, an Angular library", | ||
"main": "./bundles/angular-switchery.umd.js", | ||
"scripts": { | ||
"test": "node ./tasks/test", | ||
"build": "node ./tasks/build", | ||
"g": "node ./node_modules/angular-librarian", | ||
"lint": "tslint ./src/**/*.ts", | ||
"postbuild": "rimraf build", | ||
"prebuild": "rimraf dist out-tsc", | ||
"pretagVersion": "npm run build", | ||
"start": "webpack-dev-server --open --config ./webpack/webpack.dev.js", | ||
"tagVersion": "cd dist && np" | ||
"version": "15.0.4", | ||
"peerDependencies": { | ||
"@angular/common": "^15.0.0", | ||
"@angular/core": "^15.0.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/stevermeister/angular-switchery" | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
}, | ||
"keywords": [ | ||
"angular", | ||
"switchery" | ||
], | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/stevermeister/angular-switchery/issues" | ||
"module": "fesm2015/angular-switchery.mjs", | ||
"es2020": "fesm2020/angular-switchery.mjs", | ||
"esm2020": "esm2020/angular-switchery.mjs", | ||
"fesm2020": "fesm2020/angular-switchery.mjs", | ||
"fesm2015": "fesm2015/angular-switchery.mjs", | ||
"typings": "index.d.ts", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./index.d.ts", | ||
"esm2020": "./esm2020/angular-switchery.mjs", | ||
"es2020": "./fesm2020/angular-switchery.mjs", | ||
"es2015": "./fesm2015/angular-switchery.mjs", | ||
"node": "./fesm2015/angular-switchery.mjs", | ||
"default": "./fesm2020/angular-switchery.mjs" | ||
} | ||
}, | ||
"homepage": "https://github.com/stevermeister/angular-switchery#readme", | ||
"devDependencies": { | ||
"angular-librarian": "1.0.0-beta.5", | ||
"@angular/compiler-cli": "^4.0.0", | ||
"@types/jasmine": "2.5.38", | ||
"@types/node": "^6.0.42", | ||
"angular2-template-loader": "0.6.0", | ||
"awesome-typescript-loader": "^3.0.0", | ||
"codelyzer": "~2.0.0-beta.1", | ||
"css-loader": "^0.26.1", | ||
"css-to-string-loader": "^0.1.3", | ||
"extract-text-webpack-plugin": "^2.1.0", | ||
"file-loader": "^0.8.5", | ||
"fs-extra": "^2.1.2", | ||
"html-webpack-plugin": "^2.19.0", | ||
"istanbul-instrumenter-loader": "^1.2.0", | ||
"jasmine-core": "2.5.2", | ||
"jasmine-spec-reporter": "2.5.0", | ||
"karma": "1.2.0", | ||
"karma-chrome-launcher": "^2.0.0", | ||
"karma-coverage-istanbul-reporter": "^0.2.0", | ||
"karma-jasmine": "^1.0.2", | ||
"karma-phantomjs-launcher": "^1.0.2", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^2.0.0", | ||
"node-sass": "^4.1.1", | ||
"np": "^2.12.0", | ||
"phantomjs-prebuilt": "^2.1.7", | ||
"raw-loader": "^0.5.1", | ||
"rimraf": "^2.5.3", | ||
"rollup": "0.43.0", | ||
"rollup-plugin-sourcemaps": "0.4.2", | ||
"rollup-plugin-uglify": "2.0.1", | ||
"sass-loader": "^4.0.1", | ||
"script-loader": "^0.7.0", | ||
"source-map-loader": "^0.1.5", | ||
"style-loader": "^0.13.1", | ||
"tslint": "^4.0.2", | ||
"tslint-loader": "^3.3.0", | ||
"typescript": "~2.2.1", | ||
"typings": "^0.8.1", | ||
"url-loader": "^0.5.7", | ||
"webpack": "^2.2.0", | ||
"webpack-dev-server": "^2.2.0", | ||
"webpack-merge": "^0.14.0", | ||
"webpack-node-externals": "^1.5.4" | ||
}, | ||
"module": "./angular-switchery.es5.js", | ||
"es2015": "./angular-switchery.js", | ||
"typings": "./angular-switchery.d.ts", | ||
"dependencies": { | ||
"@angular/common": "^4.0.0", | ||
"@angular/compiler": "^4.0.0", | ||
"@angular/core": "^4.0.0", | ||
"@angular/forms": "^4.0.0", | ||
"@angular/platform-browser": "^4.0.0", | ||
"@angular/platform-browser-dynamic": "^4.0.0", | ||
"core-js": "^2.4.1", | ||
"rxjs": "^5.0.1", | ||
"zone.js": "^0.8.7" | ||
} | ||
} | ||
"sideEffects": false | ||
} |
@@ -7,2 +7,4 @@ # Angular Switchery | ||
[Demo](https://stackblitz.com/edit/angular-fcr9gv) | ||
## Description | ||
@@ -14,3 +16,3 @@ | ||
![Preview](http://i.imgur.com/0PcuTbO.jpg) | ||
![screen shot 2017-08-25 at 15 15 15](https://user-images.githubusercontent.com/1526680/29715591-4ed60646-89a8-11e7-8d6b-2712e6dd4e85.png) | ||
@@ -60,34 +62,17 @@ ## Installation | ||
##### NgModel | ||
## Development | ||
```html | ||
<angular-switchery [(ngModel)]="swticherModel"></angular-switchery> | ||
<angular-switchery [(ngModel)]="swticherModel"></angular-switchery> | ||
Switcher: {{swticherModel? 'ON' : 'OFF'}} | ||
``` | ||
If you've decided to go in development mode and tweak all of this a bit, there are few things you should do. | ||
##### Reactive approach | ||
After you clone the repository, do this in your terminal ([NPM](http://npmjs.org/) required): | ||
```shell | ||
$ npm install | ||
```html | ||
<angular-switchery #f="ngForm" [formControl]="switcheryControl"></angular-switchery> | ||
switcheryControl.value : {{f.value}} | ||
``` | ||
## License | ||
The MIT License (MIT) | ||
Copyright (c) 2017 Stepan Suvorov | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
You can play with all the examples [here](https://stackblitz.com/edit/angular-fcr9gv) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
44544
3
0
14
369
1
2
75
1
+ Addedtslib@^2.3.0
+ Added@angular/common@15.2.10(transitive)
+ Added@angular/core@15.2.10(transitive)
+ Addedrxjs@7.8.1(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedzone.js@0.13.3(transitive)
- Removed@angular/common@^4.0.0
- Removed@angular/compiler@^4.0.0
- Removed@angular/core@^4.0.0
- Removed@angular/forms@^4.0.0
- Removed@angular/platform-browser@^4.0.0
- Removedcore-js@^2.4.1
- Removedrxjs@^5.0.1
- Removedzone.js@^0.8.7
- Removed@angular/common@4.4.7(transitive)
- Removed@angular/compiler@4.4.7(transitive)
- Removed@angular/core@4.4.7(transitive)
- Removed@angular/forms@4.4.7(transitive)
- Removed@angular/platform-browser@4.4.7(transitive)
- Removed@angular/platform-browser-dynamic@4.4.7(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedrxjs@5.5.12(transitive)
- Removedsymbol-observable@1.0.1(transitive)
- Removedtslib@1.14.1(transitive)
- Removedzone.js@0.8.29(transitive)