{"_id":"@4soft/ngxs-action-time-plugin","_rev":"1-eb02e78c817e28f5c0b13533d623600a","name":"@4soft/ngxs-action-time-plugin","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@4soft/ngxs-action-time-plugin","version":"0.0.1","peerDependencies":{"@angular/common":"^17.2.0","@angular/core":"^17.2.0","@ngxs/store":"3.8.2"},"dependencies":{"tslib":"^2.3.0"},"main":"src/public-api.ts","sideEffects":false,"module":"fesm2022/4soft-ngxs-action-time-plugin.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/4soft-ngxs-action-time-plugin.mjs","esm":"./esm2022/4soft-ngxs-action-time-plugin.mjs","default":"./fesm2022/4soft-ngxs-action-time-plugin.mjs"}},"_id":"@4soft/ngxs-action-time-plugin@0.0.1","gitHead":"e06e2012a2a12cf405ac92fb40e4c765c1069215","description":"This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.0.","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-cfPDh6t1FGscbEQ5nZWzT2u1Nv2Gs+vtBmKm1qp5ExO7JmVcJjx+Vr4nfuenSApsoeQhaPDPD47nRSsxqBFatg==","shasum":"edeb9af1f1760f691a6793bc17e0654df2909c02","tarball":"https://registry.npmjs.org/@4soft/ngxs-action-time-plugin/-/ngxs-action-time-plugin-0.0.1.tgz","fileCount":10,"unpackedSize":34855,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKxvczkRWuyg7azdK222b2XIB5UrAI6vPNK7xzwx6s9AiEA7+kNoK08u9PNtl+Ug1aMomuEP0K5J7LYgbvWz0AyyMU="}]},"_npmUser":{"name":"hutzelknecht","email":"micha@immerdieses.de"},"directories":{},"maintainers":[{"name":"hutzelknecht","email":"micha@immerdieses.de"},{"name":"takebene","email":"benedikt.linke@me.com"},{"name":"andreasrimmel","email":"andreas.rimmel@4soft.de"},{"name":"rainer.ganss","email":"ganss@4soft.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngxs-action-time-plugin_0.0.1_1712136763426_0.33381222320777315"},"_hasShrinkwrap":false},"0.0.2":{"name":"@4soft/ngxs-action-time-plugin","version":"0.0.2","license":"MIT","author":{"name":"Michael Sinner"},"repository":{"type":"git","url":"git+https://github.com/4Soft-de/ngxs-action-time-plugin.git"},"bugs":{"url":"https://github.com/4Soft-de/ngxs-action-time-plugin/issues"},"homepage":"https://github.com/4Soft-de/ngxs-action-time-plugin#README.md","peerDependencies":{"@angular/common":"^17.2.0","@angular/core":"^17.2.0","@ngxs/store":"3.8.2"},"dependencies":{"tslib":"^2.3.0"},"main":"src/public-api.ts","sideEffects":false,"module":"fesm2022/4soft-ngxs-action-time-plugin.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/4soft-ngxs-action-time-plugin.mjs","esm":"./esm2022/4soft-ngxs-action-time-plugin.mjs","default":"./fesm2022/4soft-ngxs-action-time-plugin.mjs"}},"_id":"@4soft/ngxs-action-time-plugin@0.0.2","gitHead":"138515cd0846fe80109d7151605c05975c9c05f9","description":"An [Ngxs-Plugin](https://www.ngxs.io/plugins/intro) that provides a decorator to indicate if one or more actions are still running.","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-3L/WCTNOJRfjNEAyPxTPn3mcr5mSE+Onwx+/myvVLNKTTKJaJbDL/81gGOYLX9N1IOf/iHxs843KlKsMn/ZmhA==","shasum":"bb2cbef10f2d1f572d9c45d25ad29addbcdbb5f4","tarball":"https://registry.npmjs.org/@4soft/ngxs-action-time-plugin/-/ngxs-action-time-plugin-0.0.2.tgz","fileCount":10,"unpackedSize":35591,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBhlDj063JMzaXDWxw+ktWpoOlWclbgBCxYSAH5HX0ZwIhAJ33YJKCFnzZOYz3ybwyMTo82n2awNuaGESeUY1s84YT"}]},"_npmUser":{"name":"hutzelknecht","email":"micha@immerdieses.de"},"directories":{},"maintainers":[{"name":"hutzelknecht","email":"micha@immerdieses.de"},{"name":"takebene","email":"benedikt.linke@me.com"},{"name":"andreasrimmel","email":"andreas.rimmel@4soft.de"},{"name":"rainer.ganss","email":"ganss@4soft.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngxs-action-time-plugin_0.0.2_1712144035286_0.7250372022962268"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-03T09:32:43.314Z","0.0.1":"2024-04-03T09:32:43.696Z","modified":"2024-04-03T11:33:55.736Z","0.0.2":"2024-04-03T11:33:55.508Z"},"maintainers":[{"name":"hutzelknecht","email":"micha@immerdieses.de"},{"name":"takebene","email":"benedikt.linke@me.com"},{"name":"andreasrimmel","email":"andreas.rimmel@4soft.de"},{"name":"rainer.ganss","email":"ganss@4soft.de"}],"description":"An [Ngxs-Plugin](https://www.ngxs.io/plugins/intro) that provides a decorator to indicate if one or more actions are still running.","readme":"# NgxsActionTimePlugin\n\nAn [Ngxs-Plugin](https://www.ngxs.io/plugins/intro) that provides a decorator to indicate if one or more actions are still running.\n\n## usage\n\nInstall\n`npm i @4soft/ngxs-action-time-plugin`\n\nInitialize in `app.config.ts`:\n```\nimport { ActionTimePluginModule } from '@4soft/ngxs-action-time-plugin';\nexport const appConfig: ApplicationConfig = {\n  providers: [\n    importProvidersFrom(NgxsModule.forRoot([SomeState])),\n    importProvidersFrom(ActionTimePluginModule.forRoot()), // here\n    ...\n  ]\n};\n```\n\nUse in component (loading$ shall be true as long as the Action _Load_ is running):\n```\nimport { Running } from '@4soft/ngxs-action-time-plugin';\n@Component({\n  selector: 'app-root',\n  standalone: true,\n  imports: [AsyncPipe],\n  template: `@if (loading$ | async) { <div class=\"loading-spinner\"></div> }`,\n  styleUrl: './app.component.scss'\n})\nexport class AppComponent {\n  @Running([SomeActions.Load, SomeActions.Save]) public readonly loading$!: Observable<boolean>;\n}\n```\n\n## Development\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.\n\n## Build\n\nRun `ng build:lib` to build the library. The build artifacts will be stored in the `dist/` directory.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Jest](https://jestjs.io/).\n\n## Further help\n\nTo get more help on this project contact [4soft](https://www.4soft.de/callback/).\n","readmeFilename":"README.md","homepage":"https://github.com/4Soft-de/ngxs-action-time-plugin#README.md","repository":{"type":"git","url":"git+https://github.com/4Soft-de/ngxs-action-time-plugin.git"},"author":{"name":"Michael Sinner"},"bugs":{"url":"https://github.com/4Soft-de/ngxs-action-time-plugin/issues"},"license":"MIT"}