{"_id":"@darrenmothersele/simple-dialog","_rev":"1-881731900ecb3e0757a44e7ce5f5e6db","name":"@darrenmothersele/simple-dialog","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@darrenmothersele/simple-dialog","version":"0.0.1","peerDependencies":{"@angular/common":"^9.0.0-rc.9","@angular/core":"^9.0.0-rc.9","@angular/cdk":"^8.2.3","tslib":"^1.10.0"},"main":"bundles/simple-dialog.umd.js","module":"fesm5/simple-dialog.js","es2015":"fesm2015/simple-dialog.js","esm5":"esm5/simple-dialog.js","esm2015":"esm2015/simple-dialog.js","fesm5":"fesm5/simple-dialog.js","fesm2015":"fesm2015/simple-dialog.js","typings":"simple-dialog.d.ts","sideEffects":false,"__processed_by_ivy_ngcc__":{"es2015":"9.0.0-rc.11","esm2015":"9.0.0-rc.11","esm5":"9.0.0-rc.11","fesm2015":"9.0.0-rc.11","fesm5":"9.0.0-rc.11","main":"9.0.0-rc.11","module":"9.0.0-rc.11"},"repository":{"type":"git","url":"git+https://github.com/darrenmothersele/simple-dialog.git"},"license":"MIT","author":{"name":"Darren Mothersele","email":"darren@darrenmothersele.com","url":"https://daz.is"},"description":"A very simple dialog service, made using Angular's CDK.","bugs":{"url":"https://github.com/darrenmothersele/simple-dialog/issues"},"homepage":"https://github.com/darrenmothersele/simple-dialog#readme","_id":"@darrenmothersele/simple-dialog@0.0.1","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-M+m/hrGoyl8dL1T+Sq+SnONeL+h++mgDEO3zjT6jtjZPbAO9JB5vYX4CadyIDJ/+VosNLU5gVlMBBy4DDw521w==","shasum":"93d44dd3db4ab2e8deb92b23087894bf10815486","tarball":"https://registry.npmjs.org/@darrenmothersele/simple-dialog/-/simple-dialog-0.0.1.tgz","fileCount":31,"unpackedSize":60505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMHZqCRA9TVsSAnZWagAANQ0P+gMPa5vwP6Wd2NVIylTS\n/0NtVWt+ARuq0s2uSof7ulnc7Q7SjGQbTIpAZV/JBtmJ0PYuCJNodZJK2TN6\nSidevoWZUoGwDtKncLMeBmXaZHdRRYOsr3SgEoEigNCcHigOA0uvD/FFCGks\nkHKyptpUBBlf5n4BGfLsb3slLiR3dHJbB3JJGP/hM3NHGiVxX/lPX3SPODN8\nmgZTwJtBHPlXwkRMQ5zGFv/koL0I7J/x5RBytrzj78h1eGwTV/dmqJGbE79d\nmndiD6Wedigx8sqXYCuxbcfks8+DHjyju7q3yxpy1HnQJtWbOdU4oiosWhbr\nfpkMC9XUj+VbVtBM7MEWHh4xu8FR7xUHw8YYj5ARc+DJ6hWm1i0VWfsYI73s\nGjqquQg5d8n8uZ1qh0xnwG2FDqFuOFJWzCnNVFFQRXsypMt39tkk4+J9LRx2\ng05oMrFvLriUCTq0YKYy+ispTPDC4nLeAMubLUH7nAsfqwaFJTf64X49VQ6u\nXz4lSOw1TVdyXXuZX1hPxsy3w4ByXTmT0Nzdv4dPDg2k0hckRr+BvX4xyLp4\ndMbrsUp7cjqlGrPnYTsmmd2PToRU7f+TtlHVele1HVcPqO4pq/wBuzbmdl4X\nB7EezxMzYdkb5Kn3VnOQ5w0o7wS//I6xEsxr8OYTK32ljTu35xfNuwzYEFPS\nBUCQ\r\n=wAt3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9n0y/Jby43GKMh/A4Kjtq0G3jo7CBUlKSvI3NolGyWAiAC6/ND93Vbr6dnd/a8c8vsjliRZEwe+9qtJSEeEJ5ttg=="}]},"maintainers":[{"name":"darrenmothersele","email":"npm@daz.is"}],"_npmUser":{"name":"darrenmothersele","email":"npm@daz.is"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-dialog_0.0.1_1580234345743_0.1655276135175452"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-28T17:59:05.708Z","0.0.1":"2020-01-28T17:59:05.924Z","modified":"2022-04-05T02:45:56.689Z"},"maintainers":[{"name":"darrenmothersele","email":"npm@daz.is"}],"description":"A very simple dialog service, made using Angular's CDK.","homepage":"https://github.com/darrenmothersele/simple-dialog#readme","repository":{"type":"git","url":"git+https://github.com/darrenmothersele/simple-dialog.git"},"author":{"name":"Darren Mothersele","email":"darren@darrenmothersele.com","url":"https://daz.is"},"bugs":{"url":"https://github.com/darrenmothersele/simple-dialog/issues"},"license":"MIT","readme":"# Simple Dialog\n\nA very simple dialog service, made using Angular's CDK.\n\n## Installation\n\n    npm install --save ngx-simple-dialog\n\nThen import the module in `app.module.ts`:\n\n    imports: [\n        ...\n        SimpleDialogModule\n    ]\n\nThen use it in a component:\n\n    import { SimpleDialogService } from 'simple-dialog';\n\nIn the template:\n\n    <button type=\"button\" (click)=\"openDialog()\">Open Dialog</button>\n    \nIn the component class:\n\n      async openDialog() {\n        const result = await this.dialog.open(ExampleDialogComponent, {\n          data: {\n            message: 'Hello world!'\n          },\n          closeOnBackdropClick: true\n        });\n        console.log({ result });\n      }\n\nYou can pass arbitrary data into the dialog. Access this data by using \nconstructor injection:\n\n    import { Component, Inject } from '@angular/core';\n    import { DIALOG_DATA, DialogRef } from 'simple-dialog';\n    \n    @Component({\n      selector: 'app-load-form',\n      template: `\n          <div class=\"bg-white p-4 rounded shadow\">\n              <p class=\"mb-2\">This is the load form dialog!</p>\n              <div class=\"flex justify-end mt-4\">\n                  <button class=\"btn mr-2\" type=\"button\" (click)=\"dialog.close()\">Cancel</button>\n                  <button class=\"btn\" type=\"button\" (click)=\"dialog.close('ok')\">OK</button>\n              </div>\n          </div>\n      `\n    })\n    export class ExampleDialogComponent {\n    \n        constructor(\n            public readonly dialog: DialogRef,\n            @Inject(DIALOG_DATA) data: any\n        ) {\n        }\n    }\n","readmeFilename":"README.md"}