{"_id":"@bjranario/sweet-toast","_rev":"3-09eefe28966d04bae6b1bf8f01600ddd","name":"@bjranario/sweet-toast","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@bjranario/sweet-toast","version":"0.0.1","peerDependencies":{"@angular/common":"^16.0.0","@angular/core":"^16.0.0"},"dependencies":{"tslib":"^2.3.0"},"sideEffects":false,"module":"fesm2022/bjranario-sweet-toast.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/bjranario-sweet-toast.mjs","esm":"./esm2022/bjranario-sweet-toast.mjs","default":"./fesm2022/bjranario-sweet-toast.mjs"}},"description":"This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.","_id":"@bjranario/sweet-toast@0.0.1","_integrity":"sha512-wV91f5E2LhNDHucrNtxbwUUyKoglgHiZc6W7Z3LW5o4gjG4fY3Ilwi2RIsWGQaMGtO4gbTGXMba/TPcNfhWp6A==","_resolved":"/Users/billyjoelranario/Projects/PERSONAL/npmjs-projects/angular-sweet-toast/dist/sweet-toast/bjranario-sweet-toast-0.0.1.tgz","_from":"file:bjranario-sweet-toast-0.0.1.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-wV91f5E2LhNDHucrNtxbwUUyKoglgHiZc6W7Z3LW5o4gjG4fY3Ilwi2RIsWGQaMGtO4gbTGXMba/TPcNfhWp6A==","shasum":"d2500a20d96e44eeff4a77bdfe49620d38169c9b","tarball":"https://registry.npmjs.org/@bjranario/sweet-toast/-/sweet-toast-0.0.1.tgz","fileCount":14,"unpackedSize":37226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSUdcO6zj4n+ofk/mCxnT01Jm5yBKxqwpD6Q64/BIa4gIhAOY6vy2NZGCut2dODXO+riNrkjvDJcH3VuwZAwQJgP9l"}]},"_npmUser":{"name":"billyranario2022","email":"billyranario@gmail.com"},"directories":{},"maintainers":[{"name":"billyranario2022","email":"billyranario@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sweet-toast_0.0.1_1694353620113_0.7448831818629349"},"_hasShrinkwrap":false},"0.0.2":{"name":"@bjranario/sweet-toast","version":"0.0.2","peerDependencies":{"@angular/common":"^16.0.0","@angular/core":"^16.0.0"},"dependencies":{"tslib":"^2.3.0"},"sideEffects":false,"module":"fesm2022/bjranario-sweet-toast.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/bjranario-sweet-toast.mjs","esm":"./esm2022/bjranario-sweet-toast.mjs","default":"./fesm2022/bjranario-sweet-toast.mjs"}},"gitHead":"69f9527f881a0830afb1f1e05d458262424a42fa","description":"Sweet Toast is a package for toast notifications using SweetAlert2 for Angular. This package is build using typescript.","_id":"@bjranario/sweet-toast@0.0.2","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-i9V5EkmJwOtOFwgGHjNBSLgZTZTBmXJEws6AJvtgYs5ju4VpRh8lTUu9vFFF1/ZTGpUeUu2jnfXcuYk7x4pfaw==","shasum":"00db2f56ea84b77116da11d3a469aa3dae64e045","tarball":"https://registry.npmjs.org/@bjranario/sweet-toast/-/sweet-toast-0.0.2.tgz","fileCount":14,"unpackedSize":36579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFpPom2w913oDjvilM2ovt2+Up0gtlUFH2ELJ3PGNRDwIhAO4xbon0lkQji6oK8hdzJO2D3ENC2vynqBc9PqZAqCUr"}]},"_npmUser":{"name":"billyranario2022","email":"billyranario@gmail.com"},"directories":{},"maintainers":[{"name":"billyranario2022","email":"billyranario@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sweet-toast_0.0.2_1694354397690_0.6452075961653352"},"_hasShrinkwrap":false},"0.0.3":{"name":"@bjranario/sweet-toast","version":"0.0.3","peerDependencies":{"@angular/common":"^16.0.0","@angular/core":"^16.0.0"},"dependencies":{"tslib":"^2.3.0"},"sideEffects":false,"module":"fesm2022/bjranario-sweet-toast.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/bjranario-sweet-toast.mjs","esm":"./esm2022/bjranario-sweet-toast.mjs","default":"./fesm2022/bjranario-sweet-toast.mjs"}},"gitHead":"69f9527f881a0830afb1f1e05d458262424a42fa","description":"Sweet Toast is a package for toast notifications using SweetAlert2 for Angular. This package is build using typescript.","_id":"@bjranario/sweet-toast@0.0.3","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-La4e9esvkfODTD5Iw5lDXtPdTQWd9jO3kOt/E+QKrfjhHyG4r1SJJq1rwsR645q5vwupX1ByNfCPkgQsggYMmw==","shasum":"7adc4c201f47f448f395027714289d8d13f20806","tarball":"https://registry.npmjs.org/@bjranario/sweet-toast/-/sweet-toast-0.0.3.tgz","fileCount":15,"unpackedSize":44869,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG6cxBXr7IsiJGlQDqwUBxYffkL7JB5s1tezbcnw2OpAIhALj8kV5+CccvFa7zHYCIY+eoPWFE61FF3/8RZxpXDpDW"}]},"_npmUser":{"name":"billyranario2022","email":"billyranario@gmail.com"},"directories":{},"maintainers":[{"name":"billyranario2022","email":"billyranario@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sweet-toast_0.0.3_1694356594140_0.3198548023296026"},"_hasShrinkwrap":false},"0.0.4":{"name":"@bjranario/sweet-toast","version":"0.0.4","peerDependencies":{"@angular/common":"^16.0.0","@angular/core":"^16.0.0"},"dependencies":{"tslib":"^2.3.0"},"sideEffects":false,"module":"fesm2022/bjranario-sweet-toast.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/bjranario-sweet-toast.mjs","esm":"./esm2022/bjranario-sweet-toast.mjs","default":"./fesm2022/bjranario-sweet-toast.mjs"}},"gitHead":"ba60132ee945e2e0cf5b9312f6c1e1ba18436e30","description":"Sweet Toast is a package for toast notifications using SweetAlert2 for Angular. This package is build using typescript.","_id":"@bjranario/sweet-toast@0.0.4","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-EIcWp1EX9O6uRTY1wrRyLKkAUscG6SJgfczT3Oht99s4VpG754EbBQdDSeew6nBd2vCPVPeBuMY5R8tqu5Lk/g==","shasum":"aabc3a7b5fa5bb4d7a639f3099d0060a51da67ce","tarball":"https://registry.npmjs.org/@bjranario/sweet-toast/-/sweet-toast-0.0.4.tgz","fileCount":15,"unpackedSize":45073,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC19lPttjQ+5Dd7b+5oCkEnzMsaStZGeX+sPmSfZJQNfwIhANSkuzdfYxChbWOHO0oGSx+a8g2D9gu2TbtRQxPZohEy"}]},"_npmUser":{"name":"billyranario2022","email":"billyranario@gmail.com"},"directories":{},"maintainers":[{"name":"billyranario2022","email":"billyranario@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sweet-toast_0.0.4_1694358622873_0.5495010130534694"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-10T13:46:59.992Z","0.0.1":"2023-09-10T13:47:00.292Z","modified":"2023-09-10T15:10:23.272Z","0.0.2":"2023-09-10T13:59:57.934Z","0.0.3":"2023-09-10T14:36:34.391Z","0.0.4":"2023-09-10T15:10:23.081Z"},"maintainers":[{"name":"billyranario2022","email":"billyranario@gmail.com"}],"description":"Sweet Toast is a package for toast notifications using SweetAlert2 for Angular. This package is build using typescript.","readme":"# SweetToast\n\nSweet Toast is a package for toast notifications using SweetAlert2 for Angular. This package is build using typescript.\n\nThis library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.\n\n\n## Installation\n\nYou can install Sweet Toast using npm:\n\n```shell\nnpm i @bjranario/sweet-toast sweetalert2\n```\n\n## Usage\n\nimport scss file in your main scss file\n```scss\n@import \"node_modules/@bjranario/sweet-toast/src/lib/styles/sweet-toast.scss\";\n```\n\ninclude `SweetToastModule` in your app.module.ts\n```typescript\nimport { SweetToastModule } from \"@bjranario/sweet-toast\";\n\n@NgModule({\n  declarations: [],\n  imports: [SweetToastModule], // <-- here\n  bootstrap: [],\n})\nexport class AppModule {}\n```\n\nto use the method, import `SweetToastService` to your component\n\n```typescript\nimport { SweetToastService } from \"@bjranario/sweet-toast\";\n\nconst sweetToastService = new SweetToastService();\n\n// Show a toast notification\nSweetToastService.show({\n  title: \"Hello world!\",\n  text: \"This is a toast notification\",\n  icon: \"success\",\n});\n```\n\n\n## Options\n\nThe `SweetToastService` allows you to display toast notifications using SweetAlert2 with customizable options. Below are the available parameters you can pass to the `show` method of the `SweetToastService`:\n\n- **title** (optional): The title of the toast notification, as HTML. (Default: `''`)\n\n- **text** (optional): A description for the toast notification. (Default: `''`)\n\n- **icon** (optional): The icon of the toast notification. Can be one of 'warning', 'error', 'success', 'info', 'question', or custom HTML content. (Default: `undefined`)\n\n- **position** (optional): The position of the toast notification. (Default: 'top-end')\n\n- **timer** (optional): Auto-close timer for the toast notification in milliseconds. (Default: `undefined`)\n\n- **showConfirmButton** (optional): Whether to show the confirmation button. (Default: `true`)\n\n- **showCloseButton** (optional): Whether to show the close button. (Default: `false`)\n\n- **width** (optional): Popup width, including paddings. (Default: `undefined`)\n\n- **customClass** (optional): A custom CSS class for the toast notification. (Default: `undefined`)\n\n- **iconColor** (optional): Use this to change the color of the icon. (Default: `undefined`)\n\n- **iconHtml** (optional): The custom HTML content for an icon. (Default: `undefined`)\n\n- **footer** (optional): The footer of the toast notification, as HTML. (Default: `''`)\n\n- **template** (optional): Declarative template for the toast notification. (Default: `undefined`)\n\n- **backdrop** (optional): Whether to show a backdrop behind the toast notification. (Default: `true`)\n\n- **toast** (optional): Whether the toast notification should be treated as a toast. (Default: `false`)\n\n- **target** (optional): The container element for adding the toast notification. (Default: 'body')\n\n- **input** (optional): Input field type, e.g., 'text', 'email', 'password', etc. (Default: `undefined`)\n\n- **inputLabel** (optional): Input field label. (Default: `''`)\n\n- **inputPlaceholder** (optional): Input field placeholder. (Default: `''`)\n\n- **inputValue** (optional): Input field initial value. (Default: `undefined`)\n\n- **inputOptions** (optional): Options for select or radio input types. (Default: `{}`)\n\n- **inputAutoFocus** (optional): Whether to automatically focus the input field. (Default: `true`)\n\n- **inputAutoTrim** (optional): Whether to automatically trim the input value. (Default: `true`)\n\n- **inputAttributes** (optional): HTML input attributes. (Default: `{}`)\n\n- **inputValidator** (optional): Validator function for the input field. (Default: `undefined`)\n\n- **returnInputValueOnDeny** (optional): Whether to return the input value when denying. (Default: `false`)\n\n- **validationMessage** (optional): A custom validation message for default validators. (Default: `undefined`)\n\n- **showDenyButton** (optional): Whether to show the deny button. (Default: `false`)\n\n- **denyButtonText** (optional): Text for the deny button. (Default: `'No'`)\n\n- **denyButtonColor** (optional): Background color of the deny button. (Default: `undefined`)\n\n- **denyButtonAriaLabel** (optional): Aria-label for the deny button. (Default: `''`)\n\n- **heightAuto** (optional): Whether to adjust the body padding for scrollbars. (Default: `true`)\n\n- **allowOutsideClick** (optional): Whether to allow dismissing by clicking outside. (Default: `true`)\n\n- **allowEscapeKey** (optional): Whether to allow dismissing by pressing the Escape key. (Default: `true`)\n\n- **allowEnterKey** (optional): Whether to allow confirming by pressing Enter or Space. (Default: `true`)\n\n- **stopKeydownPropagation** (optional): Whether to stop keydown events propagation. (Default: `true`)\n\n- **keydownListenerCapture** (optional): Whether to capture keydown events. (Default: `false`)\n\n- **buttonsStyling** (optional): Whether to apply default button styling. (Default: `true`)\n\n- **reverseButtons** (optional): Whether to invert default buttons' positions. (Default: `false`)\n\n- **focusConfirm** (optional): Whether to focus the Confirm button by default. (Default: `true`)\n\n- **focusDeny** (optional): Whether to focus the Deny button by default. (Default: `false`)\n\n- **focusCancel** (optional): Whether to focus the Cancel button by default. (Default: `false`)\n\n- **returnFocus** (optional): Whether to return focus to the invoking element after closing. (Default: `true`)\n\n- **showCloseButton** (optional): Whether to show the close button. (Default: `false`)\n\n- **closeButtonHtml** (optional): HTML content of the close button. (Default: `&times;`)\n\n- **closeButtonAriaLabel** (optional): Aria-label for the close button. (Default: `'Close this dialog'`)\n\n- **loaderHtml** (optional): HTML content for the loader. (Default: `''`)\n\n- **showLoaderOnConfirm** (optional): Whether to show the loader on Confirm button click. (Default: `false`)\n\n- **showLoaderOnDeny** (optional): Whether to show the loader on Deny button click. (Default: `false`)\n\n- **preConfirm** (optional): Function to execute before confirming. (Default: `undefined`)\n\n- **preDeny** (optional): Function to execute before denying. (Default: `undefined`)\n\n- **imageUrl** (optional): URL or path to an image to display in the toast. (Default: `undefined`)\n\n- **imageWidth** (optional): Width of the image. (Default: `undefined`)\n\n- **imageHeight** (optional): Height of the image. (Default: `undefined`)\n\n- **imageAlt** (optional): Alternative text for the custom image icon. (Default: `''`)\n\n- **progressSteps** (optional): Progress steps for popup queues. (Default: `[]`)\n\n- **currentProgressStep** (optional): Current active progress step. (Default: `undefined`)\n\n- **progressStepsDistance** (optional): Distance between progress steps. (Default: `undefined`)\n\n- **willOpen** (optional): Callback function to run before showing the popup. (Default: `undefined`)\n\n- **didOpen** (optional): Callback function to run after showing the popup. (Default: `undefined`)\n\n- **didRender** (optional): Callback function to run after updating the popup DOM. (Default: `undefined`)\n\n- **willClose** (optional): Callback function to run before closing the popup. (Default: `undefined`)\n\n- **didClose** (optional): Callback function to run after closing the popup. (Default: `undefined`)\n\n- **didDestroy** (optional): Callback function to run after destroying the popup. (Default: `undefined`)\n\n- **scrollbarPadding** (optional): Whether to adjust body padding when scrollbar is present. (Default: `true`)\n\nFor more details on each parameter and its usage, please refer to the SweetAlert2 documentation for `SweetAlertOptions` [here](https://sweetalert2.github.io/#sweetalertoptions).\n\n## Contributing\n\nContributions are welcome. Please submit a PR or open an issue.\n\n## License\n\nThis package is open-source and licensed under the MIT License.","readmeFilename":"README.md"}