{"_id":"@angay/logout-modal","name":"@angay/logout-modal","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@angay/logout-modal","version":"0.0.1","description":"A lightweight Angular logout confirmation modal with service support.","author":{"name":"Angay"},"license":"MIT","peerDependencies":{"@angular/common":"^17.0.0","@angular/core":"^17.0.0"},"dependencies":{"tslib":"^2.3.0"},"sideEffects":false,"module":"fesm2022/angay-logout-modal.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/angay-logout-modal.mjs","esm":"./esm2022/angay-logout-modal.mjs","default":"./fesm2022/angay-logout-modal.mjs"}},"_id":"@angay/logout-modal@0.0.1","_nodeVersion":"22.18.0","_npmVersion":"11.5.2","dist":{"integrity":"sha512-QAX7Kx/VWAYJpwISYSiO0Hk4p4ZbLi1xhwzoqjRcRf2MBYsKSVIMU1c5WULbp62208C6LVy+F/MDSEf0UDDcfg==","shasum":"1a4ad6a4c5482757b3dadab7111863a96437901a","tarball":"https://registry.npmjs.org/@angay/logout-modal/-/logout-modal-0.0.1.tgz","fileCount":12,"unpackedSize":33035,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCfRStJFZNPV019AZXxUKw61uu8q+3JyWqmWow8iebUSwIhAOU6WMl5sEqce/VhsCS7kqkKktu7GJuG87gzVRpVl5Hj"}]},"_npmUser":{"name":"angay","email":"angayarkannibalasubramaniand@gmail.com"},"directories":{},"maintainers":[{"name":"angay","email":"angayarkannibalasubramaniand@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/logout-modal_0.0.1_1756540152634_0.42725069165000384"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-30T07:49:12.526Z","0.0.1":"2025-08-30T07:49:12.815Z","modified":"2025-08-30T07:49:13.117Z"},"maintainers":[{"name":"angay","email":"angayarkannibalasubramaniand@gmail.com"}],"description":"A lightweight Angular logout confirmation modal with service support.","author":{"name":"Angay"},"license":"MIT","readme":"\r\n## 📄 README.md\r\n\r\n````markdown\r\n# 🚪 @angay/logout-modal\r\n\r\nA lightweight **Angular logout confirmation modal** library with a clean UI, animations, and reusable service for easy integration.\r\n\r\n---\r\n\r\n## 🚀 Installation\r\n\r\n```bash\r\nnpm install @angay/logout-modal\r\n````\r\n\r\nMake sure you are using **Angular v17+** in your project.\r\n\r\n---\r\n\r\n## 📦 Usage\r\n\r\n### 1. Import the component\r\n\r\nSince this is a **standalone component**, you can directly import it where needed:\r\n\r\n```ts\r\nimport { Component } from '@angular/core';\r\nimport { LogoutModalComponent } from '@angay/logout-modal';\r\n\r\n@Component({\r\n  selector: 'app-root',\r\n  standalone: true,\r\n  imports: [LogoutModalComponent],\r\n  template: `\r\n    <button (click)=\"openModal()\">Logout</button>\r\n    <angay-logout-modal></angay-logout-modal>\r\n  `\r\n})\r\nexport class AppComponent {\r\n  constructor(private logoutModal: LogoutModalService) {}\r\n\r\n  openModal() {\r\n    this.logoutModal.open(() => {\r\n      console.log(\"✅ User confirmed logout\");\r\n      // your logout logic here\r\n    });\r\n  }\r\n}\r\n```\r\n\r\n---\r\n\r\n### 2. Service Methods\r\n\r\n* **`open(callback?: () => void)`** → Opens the modal. If a callback is provided, it will be executed on confirm.\r\n* **`close()`** → Closes the modal.\r\n* **`confirm()`** → Executes the callback (if any) and closes the modal.\r\n\r\n---\r\n\r\n## ⚙️ Customization via Inputs\r\n\r\nThe modal supports customization through inputs:\r\n\r\n```html\r\n<angay-logout-modal\r\n  [heading]=\"'Logout Now?'\"\r\n  [message]=\"'Do you really want to log out of your account?'\"\r\n  [confirmButtonText]=\"'Yes, Logout'\"\r\n  [cancelButtonText]=\"'Cancel'\">\r\n</angay-logout-modal>\r\n```\r\n\r\n---\r\n\r\n## 🎨 Styling\r\n\r\nThe modal comes with a default **modern look** (with animations).\r\nYou can override the styles in your project using Angular’s global styles.\r\n\r\n---\r\n\r\n## 🛠️ Supported Angular Versions\r\n\r\n* Angular `^17.0.0`\r\n\r\n---\r\n\r\n## 📜 License\r\n\r\nMIT © Angay\r\n\r\n---\r\n","readmeFilename":"README.md","_rev":"1-a98bb3273aef78acca96ba3b91cf2bf3"}