{"_id":"@csiro-geoanalytics/angular-switchery-ios","_rev":"1-c336758cfbb9670ba37f0b5f2d191ad6","name":"@csiro-geoanalytics/angular-switchery-ios","dist-tags":{"latest":"2.9.12"},"versions":{"1.0.0":{"name":"@csiro-geoanalytics/angular-switchery-ios","version":"1.0.0","peerDependencies":{"@angular/common":">=12.2.0","@angular/core":">=12.2.0"},"dependencies":{"tslib":"^2.3.0"},"repository":{"type":"git","url":"git+https://gitlab.com/csiro-geoanalytics/npm/angular-switchery-ios.git"},"author":{"name":"Zain Zafar","email":"zainzafar90@gmail.com"},"maintainers":[{"name":"ntaherifar","email":"n.taherifar@gmail.com"},{"name":"peterwarren","email":"peter.warren@csiro.au"},{"name":"immotus","email":"immotus@outlook.com"},{"name":"hil340","email":"john.hille@csiro.au"},{"name":"samuelbradley","email":"sam.bradley@csiro.au"},{"name":"riniangreani","email":"rini.angreani@csiro.au"},{"name":"stuwoodman","email":"stuart.woodman@data61.csiro.au"},{"name":"vfazio","email":"vincent.fazio@csiro.au"},{"name":"squireg","email":"geoffrey.squire@csiro.au"}],"keywords":["switchery","ng switchery","angular switch","angular toggle","ios switch angular"],"license":"MIT","bugs":{"url":"https://gitlab.com/csiro-geoanalytics/npm/angular-switchery-ios"},"module":"fesm2015/csiro-geoanalytics-angular-switchery-ios.mjs","es2020":"fesm2020/csiro-geoanalytics-angular-switchery-ios.mjs","esm2020":"esm2020/csiro-geoanalytics-angular-switchery-ios.mjs","fesm2020":"fesm2020/csiro-geoanalytics-angular-switchery-ios.mjs","fesm2015":"fesm2015/csiro-geoanalytics-angular-switchery-ios.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2020":"./esm2020/csiro-geoanalytics-angular-switchery-ios.mjs","es2020":"./fesm2020/csiro-geoanalytics-angular-switchery-ios.mjs","es2015":"./fesm2015/csiro-geoanalytics-angular-switchery-ios.mjs","node":"./fesm2015/csiro-geoanalytics-angular-switchery-ios.mjs","default":"./fesm2020/csiro-geoanalytics-angular-switchery-ios.mjs"}},"sideEffects":false,"gitHead":"7972122a613f8019a23db68a85e771b34be21942","description":"[![npm version](https://badge.fury.io/js/angular-switchery-ios.svg)](https://badge.fury.io/js/angular-switchery-ios) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/zainzafar90/angular-switchery-ios/blob/master/LICE","homepage":"https://gitlab.com/csiro-geoanalytics/npm/angular-switchery-ios#readme","_id":"@csiro-geoanalytics/angular-switchery-ios@1.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-17B7XQp2xXFWOubR0AHvttmW1fyD0hD0r1ZO6V8KnzY5AmZhm1CIrMuruRiwRPsFHTA1H2vjyuJ8Dd2yVss61Q==","shasum":"2cc1cfdec8b9d9e8453f466c0e5a9b2dbb20acea","tarball":"https://registry.npmjs.org/@csiro-geoanalytics/angular-switchery-ios/-/angular-switchery-ios-1.0.0.tgz","fileCount":15,"unpackedSize":63189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv36utADSmmhAGUJsxW8qhTHfv/2OezsPrc+AMoMx8BQIhAKTTteJQUTOZ4BA9kqtPZJpsnVNWz7/hCAXKTDoMko+C"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi788nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHZw//SyD6lK+2xRE+WSHr+aU6Y4YC9Vm863zP/sj4mIRssbrSEx1w\r\nALnS2g2AXcBB6H/BgKsPT0ldBDKkveU+FTpos5THWP0iIHIPo8OJE3/PKy2A\r\navurJHEKnfdvixOim5uBdoT4DTcm5iMbHRSd3TPAQcDp2eAZLbubDgjVASGS\r\nPgvDFHahFjUTg3ATM0btS9Masrt0gBFE4CjrLqloC5j7Ex/MbFI4EfjY91B0\r\nCna6jMZlwOf1Xy4bbDvAyIAsGd2QRsSTwcIGBJTxCwtfTtbPg/czCDAePxe2\r\nuWRLnqc0i+z37wunTRxaN2gVHXOpOf+NIX6Fgk1cAESQng6bDjx9Z6MQyFSS\r\nvNsUD04raJRr5WvcW5evHI9vwMw2Pf/CR7zbu7b9Cu9+MUZU4h23TNoSeqr+\r\nXDs50Pnfc/XayClK9StXvPjGhejaXxFGXYNnnLCMASR6I6crHJ/MrvxJ4ZZX\r\n51yHcUPTNkz/Mrxqrcabka2m4bRmLmUyGPPDEO5qd9NncO4R42BCx2Kfq6Q8\r\nVT8eHfZxaZUEbwwGREc4Wq6W4bBNvZI68o+t0S+wekH0A4wfsxwT7RGszBzA\r\nc4xCnfAm26vK2eQQo7z44LzmoF2Et5ouwGzDXMt3AH3g7dfLu+RkhJEkj1rG\r\nVZvz8IYahQ6rZ/xdIu3N3IVNw0vlA0wLHZ4=\r\n=l/lQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"immotus","email":"immotus@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/angular-switchery-ios_1.0.0_1659883303612_0.2457254647349052"},"_hasShrinkwrap":false},"2.9.12":{"name":"@csiro-geoanalytics/angular-switchery-ios","version":"2.9.12","peerDependencies":{"@angular/common":">=12.2.0","@angular/core":">=12.2.0"},"dependencies":{"tslib":"^2.3.0"},"repository":{"type":"git","url":"git+https://gitlab.com/csiro-geoanalytics/npm/angular-switchery-ios.git"},"author":{"name":"Zain Zafar","email":"zainzafar90@gmail.com"},"maintainers":[{"name":"ntaherifar","email":"n.taherifar@gmail.com"},{"name":"peterwarren","email":"peter.warren@csiro.au"},{"name":"immotus","email":"immotus@outlook.com"},{"name":"hil340","email":"john.hille@csiro.au"},{"name":"samuelbradley","email":"sam.bradley@csiro.au"},{"name":"riniangreani","email":"rini.angreani@csiro.au"},{"name":"stuwoodman","email":"stuart.woodman@data61.csiro.au"},{"name":"vfazio","email":"vincent.fazio@csiro.au"},{"name":"squireg","email":"geoffrey.squire@csiro.au"}],"keywords":["switchery","ng switchery","angular switch","angular toggle","ios switch angular"],"license":"MIT","bugs":{"url":"https://gitlab.com/csiro-geoanalytics/npm/angular-switchery-ios"},"module":"fesm2015/csiro-geoanalytics-angular-switchery-ios.mjs","es2020":"fesm2020/csiro-geoanalytics-angular-switchery-ios.mjs","esm2020":"esm2020/csiro-geoanalytics-angular-switchery-ios.mjs","fesm2020":"fesm2020/csiro-geoanalytics-angular-switchery-ios.mjs","fesm2015":"fesm2015/csiro-geoanalytics-angular-switchery-ios.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2020":"./esm2020/csiro-geoanalytics-angular-switchery-ios.mjs","es2020":"./fesm2020/csiro-geoanalytics-angular-switchery-ios.mjs","es2015":"./fesm2015/csiro-geoanalytics-angular-switchery-ios.mjs","node":"./fesm2015/csiro-geoanalytics-angular-switchery-ios.mjs","default":"./fesm2020/csiro-geoanalytics-angular-switchery-ios.mjs"}},"sideEffects":false,"gitHead":"b76024ec64fbac0da59044c85c0dd94f0eb626b1","description":"[![npm version](https://badge.fury.io/js/angular-switchery-ios.svg)](https://badge.fury.io/js/angular-switchery-ios) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/zainzafar90/angular-switchery-ios/blob/master/LICE","homepage":"https://gitlab.com/csiro-geoanalytics/npm/angular-switchery-ios#readme","_id":"@csiro-geoanalytics/angular-switchery-ios@2.9.12","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-dlZSevb7kb5VTRosqUeEdC+Du8XIekFXsb8PyNRqxrUhJmpFcOkRuLvVkpspQ7I780xOI21GbfSsMjtjgKngcw==","shasum":"d62fb23b8a77aaacde28031bdf2b935cd3696ccd","tarball":"https://registry.npmjs.org/@csiro-geoanalytics/angular-switchery-ios/-/angular-switchery-ios-2.9.12.tgz","fileCount":15,"unpackedSize":63190,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMh77oaliyk9DteunrCjUQrwcJi0A1M2HKtaAz2Rm5qwIhAPRmHrbw9jqVw0YK+Cp9Xuo87wk6b6+zKZIIROEfGmm6"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8T/rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWiQ//Q6dag8nDccehBSaMEFYIz79sgUR3CHMhB443In2QbCg0I6sM\r\nc70spWSts/QB0JISG/J9JxLodaHOQPdtUi5uZ5LNRoLZ8Q+Xb71iRBqbnNWj\r\nNEtM/VKZ1+/LK5Nc7MIoYOltPD//JrUqg4WGH6m1TSgCYwVu4A+kypPka9h4\r\nzXDGp2WviUpJ891UuP84AHiMSHOgHqJcgeJgZbbPlY6GGSdPXcoOkMkx8VFE\r\nzQIwiIHFKU/H2e6Nv75jahh+QH1H+HcluuxP4k0+SolUAmeCF3hsJ0k90Fh+\r\nVOdBqUKVsK1Pm77X9cr28k2Ca4PXJfo/xeGdiYspY12Oj8Ds3lF62OPlMWvN\r\nyy+sZlNqdn90rk0nNvMlejO8x/akzhrCufI2KyNsqwh+lV28NmvlVWnyuiLO\r\nQKPJPztqXj16n1mPpbIhsVMor6ORT0x4IzSChdikDOc8iy3CrWYKKf9dQEZ1\r\nGV2mRt3wi7x5YWhPzRi1fAbN2SI6luyJzF1Ma1wegb4SrPxXzYUnTsycG1f5\r\nD8m0OpPFv72nNPLr/8mfyMYLD4jcICIS8WCeEpSlzOCMi08cY69ctdNNFGPB\r\nED7lZbQhsQW64wvsHMAlWwuvymA3xQZxOkg6DiCdiTGLDH37iGVNPhuj57dc\r\n1sVFlZQ140gry4CrSw+S5MYk7O7Z1ZctSwI=\r\n=BCx2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"immotus","email":"immotus@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/angular-switchery-ios_2.9.12_1659977707746_0.9111389649190815"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-07T14:41:43.548Z","1.0.0":"2022-08-07T14:41:43.768Z","modified":"2022-08-08T16:55:08.093Z","2.9.12":"2022-08-08T16:55:07.912Z"},"maintainers":[{"name":"ntaherifar","email":"n.taherifar@gmail.com"},{"name":"peterwarren","email":"peter.warren@csiro.au"},{"name":"immotus","email":"immotus@outlook.com"},{"name":"hil340","email":"john.hille@csiro.au"},{"name":"samuelbradley","email":"sam.bradley@csiro.au"},{"name":"riniangreani","email":"rini.angreani@csiro.au"},{"name":"stuwoodman","email":"stuart.woodman@data61.csiro.au"},{"name":"vfazio","email":"vincent.fazio@csiro.au"},{"name":"squireg","email":"geoffrey.squire@csiro.au"}],"description":"[![npm version](https://badge.fury.io/js/angular-switchery-ios.svg)](https://badge.fury.io/js/angular-switchery-ios) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/zainzafar90/angular-switchery-ios/blob/master/LICE","homepage":"https://gitlab.com/csiro-geoanalytics/npm/angular-switchery-ios#readme","keywords":["switchery","ng switchery","angular switch","angular toggle","ios switch angular"],"repository":{"type":"git","url":"git+https://gitlab.com/csiro-geoanalytics/npm/angular-switchery-ios.git"},"author":{"name":"Zain Zafar","email":"zainzafar90@gmail.com"},"bugs":{"url":"https://gitlab.com/csiro-geoanalytics/npm/angular-switchery-ios"},"license":"MIT","readme":"# Angular Switchery IOS\n\n[![npm version](https://badge.fury.io/js/angular-switchery-ios.svg)](https://badge.fury.io/js/angular-switchery-ios) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/zainzafar90/angular-switchery-ios/blob/master/LICENSE)\n\n## Description\n\nThis package is an angular based component that helps you use beautiful switchery controls WITHOUT any external JavaScript dependency. Number of customizations are available to suit your needs including colors, sizes, labels & positioning.\n\nSupported by all modern browsers: Chrome, Firefox, Opera, Safari, Edge\n\n[![Preview](https://i.imgur.com/iJWeY23.png)](https://zainzafar90.github.io/angular-switchery-ios/)\n\n[Live Preview](https://zainzafar90.github.io/angular-switchery-ios/)\n\n\n## Fork notes\n\nThe project is forked from the original https://zainzafar90.github.io/angular-switchery-ios and republished as\n`@csiro-geoanalytics/angular-switchery-ios` .\nThis new version is upgraded to Angular 14 CLI/core/material.\n\n## Installation\n\nTo install this library, run:\n\n```bash\n$ npm install @csiro-geoanalytics/angular-switchery-ios --save\n```\n\n\n## Consuming your library\n\nYou can import library in Angular `AppModule` by the following method:\n\n```typescript\nimport { BrowserModule } from \"@angular/platform-browser\";\nimport { NgModule } from \"@angular/core\";\n\nimport { AppComponent } from \"./app.component\";\n\nimport { NgSwitcheryModule } from \"`@csiro-geoanalytics/angular-switchery-ios\";\n\n@NgModule({\n  declarations: [AppComponent],\n  imports: [\n    BrowserModule,\n\n    // Specify your library as an import\n    NgSwitcheryModule,\n  ],\n  providers: [],\n  bootstrap: [AppComponent],\n})\nexport class AppModule {}\n```\n\nOnce your library is imported, you can use Switchery in your Angular application:\n\n## Usage\n\n## Settings and Defaults\n\n- `color` : color of the switch element (default is primary, switchery-info, switchery-success, switchery-warning, switchery-danger)\n- `size` : size of the switch element (switchery-lg, switchery-sm, switchery-xs)\n- `disabled` : you can enable/disable states the state of the switch by adding disabled property (boolean value)\n- `onLabel` : specify label for your switch\n- `offLabel` : specify label for your switch\n- `sticked` : position your switch to stick to right (boolean value)\n\n## Examples\n\n## Default\n\n```html\n<!-- Default Switch -->\n<ng-switchery [(ngModel)]=\"truthyValue\"></ng-switchery>\n```\n\n## Template Driven Froms\n\nUsing ng-switchery withing a template driven form or with NgModel\n\n```html\n<!-- Template Driven Form -->\n\n<form #form=\"ngForm\">\n  <ng-switchery [(ngModel)]=\"truthyValue\" name=\"switchery-check\"></ng-switchery>\n</form>\n```\n\n## Reactive Forms\n\nUsing ng-switchery within a Reactive Forms\n\n```html\n<form [formGroup]=\"reactiveForm\">\n  <ng-switchery formControlName=\"value\"></ng-switchery>\n</form>\n```\n\n## Disable\n\nEnable/Disable states by adding disabled property\n\n```html\n<!-- Checked Disabled -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  disabled\n  onLabel=\"Checked Disabled\"\n></ng-switchery>\n\n<!-- Unchecked Disabled -->\n<ng-switchery\n  [(ngModel)]=\"falsyValue\"\n  disabled\n  onLabel=\"Unchecked Disabled\"\n></ng-switchery>\n```\n\n## Colored\n\nChange the default color of the switch to fit your design perfectly. According to the color system, any of its color can be applied to the switchery.\n\n```html\n<!-- No class specified -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Checked in Primary\"\n></ng-switchery>\n\n<!-- color = switchery-info -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Checked in Info\"\n  color=\"switchery-info\"\n></ng-switchery>\n\n<!-- color = switchery-success -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Checked in Success\"\n  color=\"switchery-success\"\n></ng-switchery>\n\n<!-- color = switchery-warning -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Checked in Warning\"\n  color=\"switchery-warning\"\n></ng-switchery>\n\n<!-- color = switchery-danger -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Checked in Danger\"\n  color=\"switchery-danger\"\n></ng-switchery>\n```\n\n## Sized\n\nChoose one of 4 main Switch sizes - large ( .switchery-lg), default, small ( .switchery-sm) and mini ( .switchery-xs). Just add proper size as input.\n\n```html\n<!-- size = switchery-lg -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Large in size\"\n  size=\"switchery-lg\"\n></ng-switchery>\n\n<!-- No size specified -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Default in size\"\n></ng-switchery>\n\n<!-- size = switchery-sm -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Small in size\"\n  size=\"switchery-sm\"\n></ng-switchery>\n\n<!-- size = switchery-xs -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Mini in size\"\n  size=\"switchery-xs\"\n></ng-switchery>\n```\n\n## Labels\n\nSwitchery can be used with single label or with multiple labels. For single label use onLabel=\"Single Label\", for double specify an extra property offLabel=\"Double Label\"\n\n```html\n<!-- Specify onLabel  -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Single Label Switch\"\n></ng-switchery>\n\n<!-- Specify both onLabel & offLabel -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Option 1\"\n  offLabel=\"Option 2\"\n></ng-switchery>\n```\n\n## Right Sticked\n\nSometimes it's very useful to have switches on the right side of the container. Just add [sticked]=\"true\" to the Switchery\n\n```html\n<!-- Set sticked = true -->\n<ng-switchery\n  [(ngModel)]=\"truthyValue\"\n  onLabel=\"Option 1\"\n  sticked=\"true\"\n></ng-switchery>\n```\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT) © [Zain Zafar](mailto:zainzafar90@gmail.com)\n","readmeFilename":"README.md"}